/* Portal presentation only. Operational frames and engines retain their styles. */
:root{--accent:#1765b5;--accent-2:#124f8d;--radius:14px;--shadow:0 5px 18px rgba(17,39,69,.045)}
html{color-scheme:light dark}
[hidden]{display:none!important}
a,button{-webkit-tap-highlight-color:transparent}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.skip-link{position:fixed;left:12px;top:-80px;z-index:150;padding:12px 18px;background:var(--surface);border:2px solid var(--accent);border-radius:10px}
.skip-link:focus{top:12px}
.portal .shell{grid-template-columns:244px minmax(0,1fr)}
.portal .sidebar{padding:22px 14px;background:#10263f;height:100dvh}
.portal .brand{padding:0 8px 20px;margin-bottom:22px;gap:10px}
.portal .brand-mark{width:38px;height:38px;flex-shrink:0;font-size:13px;border-radius:11px}
.portal .brand-title{font-size:17px}
.portal .brand-sub{font-size:11px;line-height:1.5;max-width:150px}
.portal .nav-group{margin:22px 0}
.portal .nav-item{min-height:44px;padding:11px 12px;font-size:13px;opacity:.92;border-radius:8px;margin:3px 0;transition:background .15s}
.portal .nav-item.active{background:#214664;box-shadow:inset 3px 0 #8acbff;font-weight:700}
.portal .nav-item:hover{background:#1b3a56}
.portal .nav-label{opacity:.68;font-size:10px;letter-spacing:.1em}
.portal .topbar{min-height:68px;padding:10px 28px;gap:12px;flex-wrap:nowrap}
.portal .page-title{font-size:18px;letter-spacing:-.02em;margin:0}
.portal .user-chip{max-width:48%;border:0;background:transparent;padding:3px;text-decoration:none;gap:9px;min-width:0}
.portal .avatar{width:34px;height:34px;border-radius:50%;flex-shrink:0;background:var(--info-bg);color:var(--info)}
.user-chip-copy{display:flex;flex-direction:column;min-width:0;gap:2px}
.user-chip-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal .content{padding:30px 28px 40px;max-width:1660px}
.workspace-intro{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:0 0 24px}
.eyebrow{margin:0 0 8px;font-size:10px;font-weight:750;letter-spacing:.13em;text-transform:uppercase;color:var(--muted)}
.workspace-intro h1{margin:0;font-size:clamp(25px,2.4vw,34px);line-height:1.2;letter-spacing:-.035em}
.intro-copy{margin:9px 0 0;font-size:13px;line-height:1.55;color:var(--muted)}
.workspace-counts{display:flex;gap:20px;flex-shrink:0;color:var(--muted);font-size:11px}
.workspace-counts span{display:flex;flex-direction:column;gap:5px}
.workspace-counts strong{font-size:25px;font-weight:750;letter-spacing:-.04em;color:var(--text)}
.module-search{display:flex;align-items:center;gap:14px;padding:12px 15px;background:var(--surface);border:1px solid var(--line);border-radius:12px;margin-bottom:22px}
.module-search label{font-size:12px;font-weight:700;white-space:nowrap}
.module-search .input{max-width:430px;background:var(--surface-2);min-width:0;min-height:42px;font-size:13px}
#module-search-summary{font-size:11px;color:var(--muted);margin-left:auto}
.portal .client-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
.client-panel{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}
.client-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:17px 16px;border-bottom:1px solid var(--line)}
.client-panel-head>div{display:flex;align-items:center;gap:9px;min-width:0}
.client-panel-head h2{font-size:16px;letter-spacing:-.02em;margin:0;overflow-wrap:anywhere}
.client-monogram{display:grid;place-items:center;width:30px;height:30px;flex-shrink:0;border-radius:8px;color:var(--info);background:var(--info-bg);font-size:10px;font-weight:800;letter-spacing:.04em}
.client-module-count{font-size:10px;color:var(--muted);white-space:nowrap}
.portal .module-stack{display:grid;gap:0}
.module-tile{padding:15px 16px;border-bottom:1px solid var(--line);background:var(--surface)}
.module-tile:last-child{border-bottom:0}
.module-tile h3{font-size:14px;line-height:1.4;letter-spacing:-.01em;margin:6px 0 11px;font-weight:700;overflow-wrap:anywhere}
.module-type{font-size:10px;line-height:1.4;font-weight:600;color:var(--muted)}
.module-tile-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.portal .btn{min-height:42px;text-decoration:none;border-radius:8px;font-size:12px;padding:9px 13px}
.module-tile .btn.primary{padding:7px 12px;min-height:36px;font-size:11px;gap:24px;background:var(--info-bg);color:var(--info);border-color:transparent}
.module-tile .btn.primary:hover{border-color:var(--accent)}
.module-details{font-size:11px;color:var(--muted);padding:8px 0;text-decoration:none;min-height:36px;display:inline-flex;align-items:center}
.module-details:hover{color:var(--accent);text-decoration:underline}
.monitor-details{border-top:1px solid var(--line);margin:0;background:var(--surface-2)}
.monitor-details>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 16px;font-size:11px;list-style:none;color:var(--muted)}
.monitor-details>summary:before{content:'+';font-size:15px}.monitor-details[open]>summary:before{content:'−'}
.pending-label{margin-left:auto;font-size:10px;border:1px solid var(--line);padding:3px 7px;border-radius:5px;white-space:nowrap}
.monitor-details .health-box{margin:0 12px 12px;padding:10px;border:0;background:var(--surface)}
.monitor-details .health-box p{font-size:11px;line-height:1.5;color:var(--muted);margin:0 0 8px}
.monitor-details .health-line{font-size:10px;gap:10px;line-height:1.5}
.health-line strong{font-weight:500;text-align:right}
.portal .notice{font-size:13px;line-height:1.6;margin-bottom:20px}
.portal details.notice{display:block}.portal details.notice summary{font-size:12px}
.portal .card-pad{padding:20px}
.portal .card h2{letter-spacing:-.02em}
.portal .table-wrap{overscroll-behavior-x:contain}
.portal th{white-space:nowrap}.portal td{line-height:1.55}
.portal td .select{min-width:105px}.portal .toolbar .input{flex:1 1 180px;width:auto;min-width:0}.portal .toolbar .select{flex:1 1 140px;width:auto}
.portal .input,.portal .select{font-size:16px;min-height:44px}
.drawer-close,.nav-backdrop{display:none}
.portal-login .login-page{min-height:100dvh}
.portal-login .login-hero{background:#10263f}
.portal-login .login-hero h1{font-size:clamp(38px,4.5vw,60px);line-height:1.09;max-width:650px}
.portal-login .login-card{border-radius:18px;box-shadow:var(--shadow);padding:30px}
.portal-login .login-card p{font-size:13px;line-height:1.6}
.portal-login .input{font-size:16px;min-height:46px}.portal-login .btn{min-height:46px}
.login-footnote{margin-top:22px!important;font-size:11px!important}
@media(min-width:821px){.portal .mobile-menu{display:none}}
@media(min-width:1450px){.portal .content{padding:36px}.portal .client-grid{gap:22px}}
@media(max-width:1200px){.portal .client-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-counts{gap:14px}}
@media(max-width:1000px){.workspace-intro{align-items:flex-start;flex-direction:column;gap:16px}.workspace-counts{flex-direction:row;gap:20px}.workspace-counts span{flex-direction:row;align-items:baseline;gap:6px}.workspace-counts strong{font-size:18px}}
@media(max-width:820px){
.portal .shell{grid-template-columns:minmax(0,1fr)}
.portal .sidebar{position:fixed;top:0;bottom:0;left:0;width:min(300px,88vw);height:100dvh;z-index:90;transform:translateX(-105%);transition:transform .18s ease;padding-top:30px}
.portal .sidebar.open{transform:translateX(0)}
.portal .topbar{min-height:62px;padding:9px 16px;gap:10px}
.portal .content{padding:24px 16px 32px}
.portal .mobile-menu{display:inline-grid;width:44px;height:44px;flex-shrink:0}
.drawer-close{display:grid;place-items:center;position:absolute;right:10px;top:6px;width:38px;height:38px;border:0;background:transparent;color:#fff;font-size:25px}
.nav-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:rgba(5,17,31,.55);border:0;z-index:80;cursor:pointer}
body.nav-open{overflow:hidden}
.portal .user-chip{max-width:44%}.portal .user-chip-name{font-size:12px}.portal .user-chip-role{font-size:10px}
.portal .btn.small{min-height:42px}
.module-tile .btn.primary,.module-details{min-height:44px}
.portal .table-wrap table{min-width:640px}
.portal-login .login-page{grid-template-columns:minmax(0,1fr)}
.portal-login .login-hero{display:none}
.portal-login .login-side{padding:24px 16px;min-height:100dvh}
.portal-login .login-card{max-width:440px;width:100%}
}
@media(max-width:540px){
.portal .client-grid{grid-template-columns:minmax(0,1fr)}
.portal .page-title{font-size:15px}.portal .topbar-left{gap:8px}
.portal .avatar{width:30px;height:30px;font-size:12px}
.portal .user-chip{max-width:42%;gap:6px}.portal .user-chip-role{display:none}
.workspace-intro h1{font-size:27px}.intro-copy{font-size:12px}
.module-search{flex-wrap:wrap;padding:12px;gap:8px}.module-search label{width:100%}.module-search .input{width:100%;max-width:none}#module-search-summary{margin:0;min-height:0}
.client-panel-head{padding:16px}.module-tile{padding:14px 16px}.module-tile h3{font-size:15px}
.portal .edit-grid{grid-template-columns:minmax(0,1fr)}
.portal .content>h2{font-size:20px;overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
.login-wordmark{font-weight:800;font-size:17px!important;color:var(--text)!important;margin-bottom:24px!important}.login-wordmark span{display:block;font-size:11px;font-weight:500;color:var(--muted);margin-top:2px}
@media(prefers-color-scheme:dark){:root{--accent:#77b6ff;--accent-2:#9ccaff}.portal .btn.primary,.portal-login .btn.primary{color:#10263f}.portal .module-tile .btn.primary{color:var(--info)}}
@media(max-width:820px){.drawer-close{width:44px;height:44px}}
/* Refined corporate support style: WorkLinkX identity, light surfaces and clear hierarchy. */
.portal,.portal-login{--bg:#f6f7f8;--surface:#fff;--surface-2:#f4f6f8;--text:#202b35;--muted:#536575;--line:#d5dde3;--accent:#006bb6;--accent-2:#00538d;--info:#006bb6;--info-bg:#eef6fc;--warning:#775500;--warning-bg:#fff8e6;--danger:#a52424;--danger-bg:#fff1f1;--radius:5px;--shadow:none;color-scheme:light;font-family:"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.5}
.portal .shell{grid-template-columns:224px minmax(0,1fr)}
.portal .sidebar{background:#fff;color:#202b35;border-right:1px solid var(--line);border-top:3px solid #0076ce;padding:22px 12px}
.portal .brand{border-color:var(--line);padding:0 9px 22px;margin-bottom:24px}
.portal .brand-mark{background:#0076ce;color:#fff;border-radius:50%;font-weight:700;font-size:12px;width:36px;height:36px;letter-spacing:-.5px}
.portal .brand-title{font-size:20px;color:#006bb6;font-weight:600;letter-spacing:-.6px}
.portal .brand-sub{font-size:10px;color:var(--muted);opacity:1;line-height:1.5}
.portal .nav-label{color:var(--muted);opacity:1;font-size:10px;font-weight:600}
.portal .nav-item{color:#344757;opacity:1;font-weight:400;border-radius:3px;font-size:13px}
.portal .nav-item.active{color:#006bb6;background:#edf5fa;font-weight:600;box-shadow:inset 3px 0 #0076ce}
.portal .nav-item:hover{background:#f1f5f8;color:#006bb6}
.portal .topbar{border-top:3px solid #0076ce;min-height:67px;background:#fff;backdrop-filter:none;padding:10px 32px}
.portal .page-title{font-size:15px;font-weight:600;color:#536575}
.portal .user-chip-name{font-weight:600;font-size:12px}.portal .avatar{font-weight:600}
.portal .content{max-width:1640px;padding:30px 32px 44px}
.workspace-intro{padding:28px 30px;background:#edf3f7;border:1px solid #e4ebef;border-radius:3px;margin-bottom:16px;align-items:center}
.eyebrow{font-size:10px;font-weight:600;letter-spacing:.08em;color:#536575;margin-bottom:6px}
.workspace-intro h1{font-size:clamp(27px,2.4vw,36px);font-weight:400;letter-spacing:-.025em;color:#233f52;line-height:1.25}
.intro-copy{font-size:14px;color:#536575;margin-top:10px}
.workspace-counts{font-size:11px;gap:24px}.workspace-counts strong{font-size:26px;font-weight:400;color:#233f52}
.module-search{padding:16px 20px;border-radius:3px;background:white;margin-bottom:30px;gap:20px}
.module-search label{font-size:13px;font-weight:600}.module-search .input{max-width:560px;border-radius:2px;background:white;font-size:14px;min-height:42px}
.app-section-heading{margin:0 0 16px;align-items:center}.app-section-heading h2{font-size:22px;font-weight:400;letter-spacing:-.02em}.app-section-heading p{font-size:12px;margin:0}
.portal .client-grid{gap:20px}.client-panel{border-radius:3px;border-color:#d5dde3;box-shadow:none}
.client-panel-head{padding:19px 20px;border-bottom:1px solid var(--line);background:#fff}
.client-panel-head h2{font-size:18px;font-weight:500;letter-spacing:-.3px}.client-monogram{border-radius:50%;background:#f0f5f8;color:#006bb6;width:34px;height:34px;font-size:10px;font-weight:600}
.client-module-count{font-size:11px;color:#536575}
.module-tile{padding:18px 20px;background:#fff}.module-tile h3{font-size:15px;font-weight:500;line-height:1.45;letter-spacing:0;margin:6px 0 14px}
.module-type{font-size:11px;font-weight:400;color:#536575}
.portal .btn{border-radius:2px;font-weight:500;font-size:13px;min-height:40px;padding:8px 15px}
.portal .btn.primary,.portal-login .btn.primary{background:#006bb6;border-color:#006bb6;color:#fff}
.portal .module-tile .btn.primary{background:#fff;color:#006bb6;border-color:#0076ce;border-radius:2px;min-height:36px;padding:6px 13px;font-size:12px;gap:22px}
.portal .module-tile .btn.primary:hover{background:#eef6fc;color:#00538d;border-color:#00538d}
.portal .btn.primary:hover,.portal-login .btn.primary:hover{background:#00538d;color:white}
.module-details{font-size:12px;color:#006bb6;font-weight:400}.monitor-details{background:#f8fafb;border-color:var(--line)}
.monitor-details>summary{font-weight:400;padding:13px 20px;color:#536575;font-size:11px}.pending-label{border-radius:2px;background:white;font-size:10px}
.portal .client-grid[data-client-count="1"]{grid-template-columns:minmax(0,1fr)}
.client-grid[data-client-count="1"] .module-stack{grid-template-columns:repeat(3,minmax(0,1fr))}
.client-grid[data-client-count="1"] .module-tile{border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.client-grid[data-client-count="1"] .module-stack[data-module-count="1"]{grid-template-columns:minmax(0,1fr)}
.client-grid[data-client-count="1"] .module-stack[data-module-count="1"] .module-tile{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:32px;border:0;padding:24px}
.client-grid[data-client-count="1"] .module-stack[data-module-count="1"] .module-tile-actions{grid-column:2;grid-row:1/span 2;gap:28px}
.client-grid[data-client-count="1"] .module-stack[data-module-count="1"] h3{margin:5px 0 0;font-size:18px}
.portal .card{border-radius:4px;box-shadow:none}.portal .card-pad{padding:18px 20px}
.portal details.card>summary{font-size:14px;font-weight:500;line-height:1.6}
.portal .content>h2{font-size:25px;font-weight:400;margin:2px 0 22px;letter-spacing:-.02em}
.portal .input,.portal .select{min-height:40px;border-radius:3px;font-size:14px;padding:8px 10px}
.portal .table-wrap{border-radius:3px;margin-top:18px}.portal table{font-size:13px}.portal th{font-weight:600;font-size:11px;background:#eef2f5;color:#415566;padding:11px 12px}.portal td{padding:10px 12px;line-height:1.4}
.portal tbody tr:nth-child(even){background:#fbfcfd}.portal .effective-note{font-size:10px;line-height:1.5;margin-top:5px}.portal .edit-grid{gap:16px;margin:20px 0}
.permission-guide{margin:10px 0 18px;font-size:12px;color:var(--muted)}.permission-guide>summary{font-weight:400;cursor:pointer}.permission-guide p{max-width:900px;line-height:1.6}
.module-paths{margin:18px 0;padding:16px 18px;border:1px solid #dce6ed;border-left:3px solid #0076ce;background:#f7fafc;border-radius:2px}
.module-paths>div{margin-bottom:12px}.path-label{display:block;font-size:11px;font-weight:600;color:#344757;margin-bottom:7px}
.module-paths code,.module-technical code{display:block;font-size:12px;font-family:Consolas,ui-monospace,monospace;color:#23455d;overflow-wrap:anywhere;white-space:normal;user-select:text;line-height:1.6}
.module-paths p{font-size:11px;color:var(--muted);margin:8px 0 0;line-height:1.6}.module-paths details{margin:0}.module-paths details summary{font-size:11px;color:var(--muted);font-weight:400;cursor:pointer}.module-paths details[open] code{margin-top:12px}
.module-technical{margin:14px 0}.module-technical summary{font-size:12px;color:var(--muted);font-weight:400}.module-technical .path-label{margin-top:14px}
.portal .notice{border-radius:3px}.drawer-close{color:#344757}
.portal-login .login-hero{background:#edf3f7;color:#233f52}.portal-login .login-hero h1{font-weight:400;color:#233f52;font-size:clamp(38px,4.5vw,58px)}.portal-login .login-hero p{color:#536575}.portal-login .login-hero .badge{background:white;color:#006bb6;border:1px solid #d5dde3;border-radius:3px;align-self:flex-start}
.portal-login .login-card{border-radius:4px;padding:32px;border-top:3px solid #0076ce;box-shadow:none}.portal-login .login-card h2{font-size:27px;font-weight:400;color:#233f52}.portal-login .input{border-radius:3px}.portal-login .btn{border-radius:2px;font-weight:500}.login-wordmark{color:#006bb6!important;font-weight:600;font-size:22px!important}
@media(max-width:1200px){.client-grid[data-client-count="1"] .module-stack{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){.workspace-intro{align-items:flex-start}.workspace-counts strong{font-size:18px}}
@media(max-width:820px){.portal .shell{grid-template-columns:minmax(0,1fr)}.portal .sidebar{padding-top:38px;border-top:0}.portal .topbar{padding:9px 16px;min-height:62px}.portal .content{padding:22px 16px 32px}.workspace-intro{padding:22px 20px}.portal .input,.portal .select{font-size:16px;min-height:44px}.module-search .input{font-size:16px}.portal .btn,.portal .module-tile .btn.primary,.module-details{min-height:44px}.portal .mobile-menu{border-radius:3px}.module-paths{padding:13px}.client-grid[data-client-count="1"] .module-stack[data-module-count="1"] .module-tile{padding:20px}}
@media(max-width:540px){.workspace-intro{padding:20px 16px;gap:15px}.workspace-intro h1{font-size:28px}.intro-copy{font-size:13px}.module-search{padding:14px 16px;margin-bottom:24px;gap:9px}.app-section-heading{align-items:flex-start;gap:5px}.app-section-heading h2{font-size:21px}.app-section-heading p{font-size:11px}.client-grid[data-client-count="1"] .module-stack{grid-template-columns:minmax(0,1fr)}.client-grid[data-client-count="1"] .module-stack[data-module-count="1"] .module-tile{display:block}.client-grid[data-client-count="1"] .module-stack[data-module-count="1"] .module-tile-actions{margin-top:16px}.client-panel-head{padding:16px}.module-tile{padding:17px 16px}.portal .card-pad{padding:16px}.workspace-counts{gap:18px}.workspace-counts strong{font-size:18px}}
/* WorkLinkX branding and clean operator views. */
.portal .brand{padding:0 8px 16px}.brand-logo-link{display:flex;flex-direction:column;text-decoration:none;width:100%;align-items:flex-start;gap:1px}
.brand-logo{display:block;width:100%;max-width:192px;height:auto;object-fit:contain}
.portal .brand-logo-link .brand-sub{max-width:none;font-size:10px;line-height:1.5;margin:0}
.login-logo-wrap{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:24px}.login-logo-wrap .brand-logo{max-width:220px}.login-logo-wrap>span{font-size:11px;color:var(--muted)}
.module-description{font-size:12px;line-height:1.65;color:var(--muted);margin:0 0 15px;max-width:660px}
.client-grid[data-client-count="1"] .module-stack[data-module-count="1"] .module-description{grid-column:1;grid-row:3;margin:9px 0 0}
.client-grid[data-client-count="1"] .module-stack[data-module-count="1"] .module-tile-actions{grid-row:1/span 3}
.user-portal .module-tile h3{margin-top:0}.user-portal .workspace-intro .eyebrow{display:none}.user-portal .workspace-intro{padding:23px 26px}.user-portal .client-panel-head{padding:16px 20px}.user-portal .app-section-heading>p{display:none}
.user-launch .module-description{font-size:14px;margin-bottom:20px}.permission-subject{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 16px;margin:12px 0 20px;padding:13px 16px;background:#edf3f7;border-left:3px solid #0076ce;font-size:14px}.permission-subject span{font-size:12px;color:var(--muted)}
.account-login,.account-id{font-size:11px;color:var(--muted)}
@media(max-width:820px){.portal .brand-logo{max-width:216px}.user-portal .workspace-intro{padding:20px}.module-description{font-size:13px}.permission-subject{padding:12px;font-size:13px}.login-logo-wrap .brand-logo{max-width:200px}}
@media(max-width:540px){.client-grid[data-client-count="1"] .module-stack[data-module-count="1"] .module-description{margin:10px 0 16px}.module-tile h3{margin-bottom:10px}}
.topbar-logo{display:none}
@media(max-width:820px){.topbar-logo{display:block;flex-shrink:0;width:112px}.topbar-logo img{display:block;width:100%;height:auto}.portal .topbar-left>.page-title{display:none}.portal .topbar{gap:8px}.portal .user-chip{max-width:42%}}
@media(max-width:360px){.topbar-logo{width:94px}.portal .user-chip{max-width:36%}}
