/* Shared employee portal foundation. No data or permission changes. */
html[data-theme="dark"]{--portal-bg:#10141b;--portal-surface:#191f29;--portal-inset:#121821;--portal-text:#f3f5f8;--portal-muted:#b1bbca;--portal-line:#3f4b5e;--portal-link:#a9c3ff;--portal-accent:#ff9b87;--portal-success:#8ce6ba;--portal-danger:#ffb0ae}
html[data-theme="light"]{--portal-bg:#f2f4f7;--portal-surface:#ffffff;--portal-inset:#f3f5f8;--portal-text:#19212e;--portal-muted:#536174;--portal-line:#bdc6d3;--portal-link:#244f99;--portal-accent:#9e3021;--portal-success:#17633e;--portal-danger:#9c242b}
html[data-theme] body.dashboard-body,html[data-theme] body.portal-public-credential{background:var(--portal-bg);color:var(--portal-text)}
html[data-theme] .dashboard-body .dashboard-main{background:var(--portal-bg);color:var(--portal-text);margin-left:260px;min-width:0}
html[data-theme] .dashboard-body .dashboard-sidebar{width:260px;padding:28px 18px 24px;background:#0b0e14;border-color:#343e4f;overflow-y:auto;overscroll-behavior:contain}
.dashboard-sidebar .dashboard-logo{display:block;padding:0 8px}.dashboard-sidebar .dashboard-logo img{width:210px;max-width:100%}.portal-sidebar-caption{font-size:.66rem;letter-spacing:.14em;color:#abb5c4;margin:35px 14px 12px}
.dashboard-body .dashboard-sidebar nav{margin-top:0;gap:5px}.dashboard-body .dashboard-sidebar nav a{padding:13px 14px;color:#c3cbd8;font-size:.88rem;line-height:1.3;border-left:3px solid transparent;border-radius:5px}.dashboard-body .dashboard-sidebar nav a:hover{background:#202835;color:#fff}.dashboard-body .dashboard-sidebar nav a.active{background:#252e3d;color:#fff;border-left-color:#f1806a}.dashboard-body .sidebar-footer{padding:28px 14px 0;gap:16px;margin-top:auto;color:#c3cbd8}.dashboard-body .sidebar-footer a,.dashboard-body .sidebar-footer button{font:inherit;color:#c3cbd8;background:none;border:0;padding:0;text-align:left;cursor:pointer;text-decoration:none}.dashboard-body .sidebar-footer a:hover,.dashboard-body .sidebar-footer button:hover{color:#fff;text-decoration:underline}
html[data-theme] .dashboard-body .dashboard-topbar{height:auto;min-height:76px;gap:14px;padding:15px 28px;background:var(--portal-surface);border-color:var(--portal-line);display:flex;flex-wrap:wrap;position:relative;color:var(--portal-text)}
.dashboard-topbar>div:not(.avatar):not(.portal-breadcrumb),.dashboard-topbar>strong{display:none!important}.dashboard-topbar .portal-breadcrumb{display:flex!important;flex-wrap:wrap;align-items:center;gap:12px;min-width:0;flex:1}.portal-breadcrumb span{font-size:.88rem;font-weight:700}.portal-breadcrumb a{color:var(--portal-link);font-size:.82rem;text-decoration:none}.portal-breadcrumb a:hover{text-decoration:underline}.portal-breadcrumb a:not(:only-child){border-right:1px solid var(--portal-line);padding-right:12px}.dashboard-topbar .avatar{width:34px;height:34px;min-width:34px;background:var(--portal-inset);color:var(--portal-text);border:1px solid var(--portal-line);font-size:.8rem;margin-left:0}.portal-menu{display:none;background:none;border:1px solid var(--portal-line);border-radius:6px;color:var(--portal-text);font-size:1.25rem;width:42px;height:42px;cursor:pointer}.portal-sidebar-backdrop{display:none}
html[data-theme] .theme-toggle{border:1px solid var(--portal-line);background:var(--portal-inset);color:var(--portal-text);min-height:40px;font-size:.8rem;letter-spacing:0;padding:8px 13px}.dashboard-topbar .theme-toggle{margin-left:auto;order:5}.dashboard-topbar .avatar{order:6}.standalone-theme-toggle{top:16px;right:16px;z-index:30}
.dashboard-body .dashboard-content{width:min(1200px,calc(100% - 56px));padding:30px 0 64px}.portal-heading{margin:10px 0 24px}.portal-heading h1,html[data-theme] .dashboard-body h1{font-size:clamp(1.9rem,3.5vw,2.9rem);line-height:1.16;letter-spacing:-.025em;overflow-wrap:anywhere;margin:10px 0 18px}.dashboard-body h2{font-size:1.3rem;line-height:1.35}.dashboard-body h3{font-size:1.05rem;line-height:1.4}.dashboard-body .dashboard-welcome{padding:20px 0 26px;align-items:center}.dashboard-body .dashboard-welcome h1{font-size:clamp(2rem,3.8vw,3rem)}
.portal-lead,.portal-hub-note,.portal-shell-error{color:var(--portal-muted);line-height:1.7;font-size:.95rem}.portal-lead{max-width:760px;margin:0 0 26px}.portal-hub-note{margin-top:24px;font-size:.8rem}.portal-shell-error{margin:20px 28px;padding:16px;border:1px solid var(--portal-danger);border-radius:8px}.portal-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.portal-hub-card{display:flex;flex-direction:column;gap:11px;padding:26px;text-decoration:none;border:1px solid var(--portal-line);border-radius:12px;background:var(--portal-surface);color:var(--portal-text);min-height:152px;transition:border-color .12s,transform .12s}.portal-hub-card:hover{border-color:var(--portal-link);transform:translateY(-2px)}.portal-hub-card strong{font-size:1.08rem}.portal-hub-card span{color:var(--portal-muted);font-size:.9rem;line-height:1.6}.portal-hub-card small{color:var(--portal-link);font-weight:700;margin-top:auto}.portal-home-links{margin:30px 0}.portal-home-links .portal-hub-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
html[data-theme] body.dashboard-body :is(.dashboard-panel,.dashboard-stats article,.handbook-status-card,.security-review-card,.security-metric,.cr-card,.cr-shell fieldset,.directory-count-card,.qualification-summary div,.fleet-control-card,.fleet-vehicle-card,.fleet-dialog,.publication-dialog,.directory-detail,.directory-list){background:var(--portal-surface);color:var(--portal-text);border-color:var(--portal-line);box-shadow:none}
html[data-theme] body.dashboard-body :is(.dashboard-label,.dashboard-welcome p,.dashboard-stats span,.dashboard-stats small,.admin-hero p,.learning-hero p,.security-hero p,.handbook-hero p,.publications-hero p,.profile-list dt,.profile-list dd,.admin-table th,.admin-table td small,.muted-cell,.portal-loading,.portal-empty,.assignment p,.announcement p,.announcement small,.cert-row span,.cert-row small,.directory-person span,.directory-person small,.directory-detail span,.directory-detail small,.handbook-meta span,.handbook-history-row span,.handbook-history-row small,.qualification-record p,.qualification-meta,.required-action p,.fleet-card-specs,.cr-lead,.cr-small,.cr-footer){color:var(--portal-muted)}
html[data-theme] body.dashboard-body :is(.admin-table,.admin-table td,.admin-list-item,.profile-list div,.assignment,.announcement,.cert-row,.qualification-record,.required-action,.directory-person,.handbook-history-row,.publication-row,.security-review-card){border-color:var(--portal-line)}
html[data-theme] body.dashboard-body :is(.handbook-meta,.date-block,.handbook-release-notes,.handbook-admin-intro,.handbook-upload-progress,.identity-photo-frame,.security-review-photo,.resource-grid a,.fleet-duty-state,.fleet-endorsement,.fleet-check-item,.fleet-attestation,.fleet-squawk,.fleet-control-columns>section,.publication-dialog-meta>div,.publication-hero-stat,.directory-toolbar input,.directory-toolbar select){background:var(--portal-inset);color:var(--portal-text);border-color:var(--portal-line)}
html[data-theme] body.dashboard-body :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea),html[data-theme] body.portal-public-credential :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){background:var(--portal-inset);border:1px solid var(--portal-line);color:var(--portal-text);border-radius:7px;max-width:100%;min-height:44px;font:inherit}
html[data-theme] :is(body.dashboard-body,body.portal-public-credential) input::placeholder,html[data-theme] :is(body.dashboard-body,body.portal-public-credential) textarea::placeholder{color:var(--portal-muted);opacity:1}
html[data-theme] :is(body.dashboard-body,body.portal-public-credential) :is(.button-secondary,.table-action,.text-link-inline,.panel-heading a,.cr-footer a,.cr-shell a,.portal-public-back,.back){color:var(--portal-link)}
html[data-theme] body.dashboard-body .button-secondary,html[data-theme] body.portal-public-credential .button-secondary{background:var(--portal-inset);border-color:var(--portal-line)}
html[data-theme] :is(body.dashboard-body,body.portal-public-credential) .button-primary{color:#fff;background:#bb3928;border-color:#bb3928;min-height:44px;font-size:.87rem;letter-spacing:0;line-height:1.4}.dashboard-body .button{white-space:normal}.dashboard-body :is(.admin-grid-2,.admin-grid-3,.fleet-form-grid){gap:18px}.dashboard-body label{line-height:1.5}.dashboard-body .table-wrap{overflow-x:auto;max-width:100%}.dashboard-body .admin-table{min-width:560px}.dashboard-body .status,.dashboard-body .qual-state{font-size:.74rem;line-height:1.4}.dashboard-body .status.operating,.dashboard-body .qual-state.current{color:var(--portal-success);background:var(--portal-inset)}.dashboard-body .status.development,.dashboard-body .qual-state.expired{color:var(--portal-accent);background:var(--portal-inset)}
html[data-theme] :is(body.dashboard-body,body.portal-public-credential) .eyebrow{color:var(--portal-accent)}
.portal-section-nav{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0;border-bottom:1px solid var(--portal-line);padding-bottom:16px}.portal-section-nav a{padding:11px 16px;border:1px solid var(--portal-line);border-radius:7px;color:var(--portal-muted);background:var(--portal-surface);font-size:.86rem;font-weight:600;text-decoration:none}.portal-section-nav a:hover{color:var(--portal-text);border-color:var(--portal-link)}.portal-section-nav a.active{color:var(--portal-link);border-color:var(--portal-link);background:var(--portal-inset)}[data-portal-pane]{display:none}[data-portal-pane][data-active="true"]{display:block}[data-portal-pane]>.dashboard-panel{margin-bottom:20px}html[data-theme] [hidden]{display:none!important}
html[data-theme] body.dashboard-body :is(.fleet-admin-tabs,.aero-admin-tabs){background:var(--portal-bg);border-color:var(--portal-line)}html[data-theme] body.dashboard-body :is(.fleet-admin-tabs button,.aero-admin-tabs button){color:var(--portal-muted)}html[data-theme] body.dashboard-body :is(.fleet-admin-tabs button.active,.aero-admin-tabs button.active){background:var(--portal-surface);color:var(--portal-text);border-color:var(--portal-line)}
.portal-registry-controls{display:grid;grid-template-columns:minmax(0,2fr) minmax(140px,1fr);gap:16px;align-items:end;margin-bottom:20px}.portal-registry-controls label{display:grid;gap:8px;font-size:.85rem}.portal-registry-controls input,.portal-registry-controls select{padding:11px;width:100%}.portal-registry-controls p{grid-column:1/-1;color:var(--portal-muted);font-size:.8rem;margin:0}
html[data-theme] body.dashboard-body .portal-credential-main .cr-shell{max-width:1200px;margin:0 auto;padding:30px 0 64px}.portal-credential-main .cr-shell fieldset{margin-top:24px}.portal-credential-main .cr-shell h1{font-size:clamp(1.9rem,3.5vw,2.9rem)}html[data-theme] :is(body.dashboard-body,body.portal-public-credential) :is(.cr-note,#message,.cr-policy-text){background:var(--portal-inset);color:var(--portal-text);border-color:var(--portal-line)}html[data-theme] :is(body.dashboard-body,body.portal-public-credential) :is(.cr-status,.cr-policy summary){color:var(--portal-link)}html[data-theme] :is(body.dashboard-body,body.portal-public-credential) #message[data-error="true"]{color:var(--portal-danger);border-color:var(--portal-danger)}.portal-credential-main .cr-footer{margin-top:30px;padding:20px 0;max-width:none}
html[data-theme] .portal-public-credential .cr-header{background:#0b0e14;border-color:#343e4f}.portal-public-credential .cr-header span{color:#c3cbd8}html[data-theme] body.portal-public-credential :is(.cr-shell fieldset,.cr-card){background:var(--portal-surface);color:var(--portal-text);border-color:var(--portal-line)}html[data-theme] body.portal-public-credential :is(.cr-lead,.cr-small,.cr-footer){color:var(--portal-muted)}html[data-theme] body.portal-public-credential .cr-shell a{color:var(--portal-link)}.portal-public-back{display:inline-block;margin-bottom:24px;text-decoration:none;font-size:.85rem}.portal-public-credential .cr-shell{margin-top:36px}.portal-public-credential .cr-shell h1{font-size:clamp(2rem,5vw,3rem)}
html[data-theme] :is(.dashboard-body,.portal-public-credential,.portal-body) :focus-visible{outline:3px solid var(--portal-link);outline-offset:3px}
html[data-theme] .portal-body .login-form-panel{background:var(--portal-bg);color:var(--portal-text)}html[data-theme] .portal-body .login-card{background:transparent;color:var(--portal-text)}html[data-theme] .portal-body .login-card input{background:var(--portal-surface);color:var(--portal-text);border-color:var(--portal-line)}html[data-theme] .portal-body :is(.form-caption,.muted-link,.checkbox-label.compact,.login-options label){color:var(--portal-muted)}html[data-theme] .portal-body .checkbox-label.compact span{color:var(--portal-muted)!important}
@media(max-width:1050px){.portal-home-links .portal-hub-grid{grid-template-columns:1fr}.dashboard-body .dashboard-grid{grid-template-columns:1fr}.dashboard-body .dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){html[data-theme] .dashboard-body .dashboard-main{margin-left:0}.dashboard-body .dashboard-sidebar{transform:translateX(-100%);transition:transform .15s;width:260px}.dashboard-body.sidebar-open .dashboard-sidebar{transform:translateX(0);z-index:60}.portal-menu{display:inline-grid;place-items:center}.sidebar-open .portal-sidebar-backdrop{display:block;position:fixed;inset:0;background:rgba(0,0,0,.55);border:0;z-index:50}.dashboard-body .dashboard-content{width:calc(100% - 32px);padding-top:24px}.dashboard-body .dashboard-topbar{padding:12px 16px}.portal-hub-grid{grid-template-columns:1fr}.dashboard-body .dashboard-topbar .theme-toggle{font-size:.75rem;min-height:40px;padding:7px 10px}.dashboard-topbar .avatar{display:none}}
@media(max-width:600px){.portal-breadcrumb span{font-size:.8rem}.portal-breadcrumb a{font-size:.75rem}.dashboard-body .dashboard-stats article{padding:16px}.dashboard-body .dashboard-stats strong{font-size:1.7rem}.dashboard-body .dashboard-panel{padding:18px}.portal-hub-card{padding:22px;min-height:132px}.portal-registry-controls{grid-template-columns:1fr}.portal-section-nav{gap:7px}.portal-section-nav a{padding:10px 12px;font-size:.8rem}.dashboard-body .admin-grid-2,.dashboard-body .admin-grid-3{grid-template-columns:1fr}.portal-public-credential .cr-header{padding:20px 16px}.portal-public-credential .cr-header img{width:160px}.portal-public-credential .cr-shell{padding:0 16px}.portal-credential-main .cr-shell .cr-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.portal-hub-card,.dashboard-body .dashboard-sidebar{transition:none}.portal-hub-card:hover{transform:none}}

/* Keep the dark wordmark legible on either sign-in theme. */
html[data-theme] .portal-body .login-card>img{background:#fff;padding:12px;border-radius:6px;box-sizing:content-box;max-width:calc(100% - 24px)}
