/* Ebukanga TVC PoE — modern design layer (loads after style/trainee/trainer.css) */
@property --p{syntax:'<number>';initial-value:0;inherits:false}
:root{
  --font:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --bg:#eef2f8;--surface:#fff;--surface-2:#f6f8fc;--hover:#f0f4fa;--line:#e3e9f2;--line-strong:#cfd8e6;
  --ink:#0b1b36;--ink-2:#26344d;--muted:#64748b;
  --brand:#0a4fc4;--brand-hover:#0842a6;--brand-ink:#0a4fc4;--navy:#002855;--cyan:#5ce1e6;--gold:#d9a441;
  --r-sm:8px;--r-md:12px;--r-lg:18px;
  --shadow:0 1px 2px rgba(11,27,54,.05),0 6px 20px rgba(11,27,54,.05);
  --ease:cubic-bezier(.2,.7,.2,1)
}
html[data-theme=dark]{
  --bg:#0a1322;--surface:#111d33;--surface-2:#15233c;--hover:#1a2a46;--line:#1f2f4d;--line-strong:#2b3d5e;
  --ink:#e8eef8;--ink-2:#c6d2e6;--muted:#8da0bd;--brand:#3b82f6;--brand-hover:#5b98f8;--brand-ink:#7db0ff;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px rgba(0,0,0,.25);color-scheme:dark
}
html{scroll-behavior:smooth}
html body,html body input,html body select,html body textarea,html body button{font-family:var(--font)}
html body.admin-body,html body.trainee-portal-body,html body.trainer-portal-body{background:var(--bg);color:var(--ink-2);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
html body strong,html body h1,html body h2,html body h3{color:inherit}
:focus-visible{outline:2px solid var(--cyan);outline-offset:2px;border-radius:6px}
::selection{background:rgba(92,225,230,.35)}

/* ---------- Sidebars (all portals) ---------- */
html body .admin-sidebar,html body .trainee-sidebar,html body .trainer-sidebar{background:linear-gradient(180deg,#002a5c 0%,#001a3a 100%);border-right:1px solid rgba(255,255,255,.06);box-shadow:none}
html body .admin-nav a,html body .trainee-nav a,html body .trainer-nav a{display:flex;align-items:center;gap:12px;padding:10px 12px;margin:2px 0;border-radius:10px;color:#c9d8ec;font-size:13.5px;font-weight:600;position:relative;transition:background .15s,color .15s;transform:none}
html body .admin-nav a:hover,html body .trainee-nav a:hover,html body .trainer-nav a:hover{background:rgba(255,255,255,.07);color:#fff;transform:none}
html body .admin-nav a.active,html body .trainee-nav a.active,html body .trainer-nav a.active{background:rgba(92,225,230,.13);color:#fff;box-shadow:none}
html body .admin-nav a.active::before,html body .trainee-nav a.active::before,html body .trainer-nav a.active::before{content:"";position:absolute;left:-10px;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;background:var(--cyan)}
.nav-dot{display:none}
.ico{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:.85}
a.active .ico{opacity:1;color:var(--cyan)}
html body .trainee-nav-badge{margin-left:auto;background:var(--gold);color:#241a00;font-weight:800}
html body .trainee-identity{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}
html body .trainee-identity span{text-transform:none;font-size:11px;font-weight:600;letter-spacing:0}
html body .trainee-identity strong{font-size:14px}
html body .trainee-identity small{font-size:11px}
html body .admin-sidebar-footer a,html body .trainee-sidebar-footer a,html body .trainer-sidebar-footer a{display:flex;align-items:center;gap:10px;color:#dbe7f5;border-radius:10px;background:transparent;font-size:13px;font-weight:600;padding:10px 12px}
html body .admin-sidebar-footer a:hover,html body .trainee-sidebar-footer a:hover,html body .trainer-sidebar-footer a:hover{background:rgba(255,255,255,.08);color:#fff}

/* ---------- Top bars ---------- */
html body .admin-header,html body .trainee-topbar,html body .trainer-topbar{background:color-mix(in srgb,var(--surface) 85%,transparent);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--line);box-shadow:none;transition:box-shadow .2s}
.scrolled{box-shadow:0 4px 18px rgba(11,27,54,.08)!important}
html body .admin-header-title strong,html body .trainee-topbar-title strong,html body .trainer-topbar-title strong{color:var(--ink);font-size:16px;font-weight:700}
html body .admin-header-title span,html body .trainee-topbar-title span,html body .trainer-topbar-title span{font-size:12px;color:var(--muted)}
html body .admin-account strong,html body .trainee-user strong,html body .trainer-user strong{font-size:13px;color:var(--ink)}
html body .admin-account span,html body .trainee-user span,html body .trainer-user span{font-size:11.5px;color:var(--muted)}
html body .admin-avatar,html body .trainee-avatar,html body .trainer-avatar{background:linear-gradient(135deg,var(--brand),#2b7bff);color:#fff;border:0;font-weight:700;border-radius:12px}
html body .trainee-avatar{border-radius:50%}
.top-tools{display:flex;align-items:center;gap:6px;margin-left:auto}
html body .notification-shortcut{margin-left:0;font-size:12px;border-radius:10px;background:var(--surface-2);color:var(--ink-2);border-color:var(--line)}
html body .notification-shortcut strong{background:var(--gold);color:#241a00}
.tool-btn{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 11px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);color:var(--ink-2);font-size:12.5px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}
.tool-btn:hover{background:var(--hover);border-color:var(--line-strong)}
.tool-btn kbd{font:600 11px var(--font);padding:2px 6px;border-radius:6px;background:var(--surface);border:1px solid var(--line);color:var(--muted)}
.tool-btn .sun,html[data-theme=dark] .tool-btn .moon{display:none}
html[data-theme=dark] .tool-btn .sun{display:block}
@media(max-width:760px){.tool-btn span,.tool-btn kbd{display:none}.tool-btn{width:38px;justify-content:center;padding:0}}

/* ---------- Page headings ---------- */
html body .admin-page-heading h1,html body .trainee-page-heading h1,html body .trainer-page-heading h1{font-size:28px;font-weight:800;letter-spacing:-.025em;color:var(--ink);margin:2px 0 6px}
html body .admin-page-heading p,html body .trainee-page-heading p,html body .trainer-page-heading p{color:var(--muted);max-width:62ch}
html body .eyebrow,html body .panel-kicker{text-transform:none!important;letter-spacing:0!important;font-size:12.5px!important;font-weight:600!important;color:var(--brand-ink)!important}
html body .date-chip{border-radius:10px;background:var(--surface);border-color:var(--line);color:var(--muted);font-weight:600}

/* ---------- Panels & stat cards ---------- */
html body .admin-panel,html body .trainee-panel,html body .trainer-panel,html body .form-panel,html body .admin-stat-card,html body .trainee-stat,html body .trainer-stat,html body .report-stat,html body .profile-stat{border-radius:var(--r-lg);border:1px solid var(--line);box-shadow:var(--shadow)}
html body .panel-heading h2{font-size:17px;font-weight:700;letter-spacing:-.01em;color:var(--ink)}
html body .admin-stat-card strong,html body .trainee-stat strong,html body .trainer-stat strong,html body .report-stat strong,html body .profile-stat strong{font-size:28px;font-weight:800;letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums;line-height:1.1}
html body .admin-stat-card span,html body .trainee-stat span,html body .trainer-stat span,html body .report-stat span,html body .profile-stat span{color:var(--muted);font-size:12.5px;font-weight:500;text-transform:none;letter-spacing:0}
html body .stat-mark{border-radius:12px;background:color-mix(in srgb,var(--brand) 12%,transparent);color:var(--brand-ink);font-size:12px;font-weight:800}
html body .admin-stat-card,html body .trainee-stat,html body .trainer-stat{transition:transform .18s var(--ease),box-shadow .18s}
html body .admin-stat-card:hover,html body .trainee-stat:hover,html body .trainer-stat:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(11,27,54,.09)}
html body .readiness-score{font-size:34px;font-weight:800;color:var(--brand-ink);font-variant-numeric:tabular-nums}
html body .progress-track{height:12px;border-radius:99px;background:var(--surface-2);border:1px solid var(--line);overflow:hidden}
html body .progress-track span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--brand),#28c3d4);transition:width 1s var(--ease)}
html body .status-summary>div{border-radius:14px;background:var(--surface-2);border:1px solid var(--line)}
html body .risk-card{position:relative;overflow:hidden}
html body .risk-card>strong{font-size:44px;font-weight:800;color:var(--gold);letter-spacing:-.03em}
html body .empty-state{color:var(--muted);text-align:center;padding:28px 16px;border:1px dashed var(--line-strong);border-radius:14px;background:var(--surface-2)}
html body td.empty-state{border:0;border-radius:0}
html body .unit-progress-row,html body .recent-evidence-item{border-radius:12px;border:1px solid var(--line);transition:background .15s,border-color .15s}
html body .recent-evidence-item:hover,html body .unit-progress-row:hover{background:var(--hover);border-color:var(--line-strong)}

/* Trainee progress hero — the one bold moment */
html body .trainee-progress-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:28px;padding:30px 34px;margin-bottom:18px;border:0;border-radius:22px;color:#fff;background:linear-gradient(120deg,#002855 0%,#0a4fc4 68%,#1a7ad8 100%);box-shadow:0 18px 40px rgba(0,40,85,.28)}
html body .trainee-progress-hero::after{content:"";position:absolute;right:-60px;top:-90px;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(217,164,65,.35),transparent 65%);pointer-events:none}
html body .trainee-progress-hero span{color:rgba(255,255,255,.75);font-size:14px;font-weight:600;text-transform:none;letter-spacing:0}
html body .trainee-progress-hero .progress-copy strong{display:block;color:#fff;font-size:clamp(44px,7vw,68px);font-weight:800;letter-spacing:-.04em;line-height:1;margin:6px 0 8px;font-variant-numeric:tabular-nums}
html body .trainee-progress-hero p{color:rgba(255,255,255,.82);margin:0}
html body .progress-ring{--p:var(--progress,0);flex:none;width:140px;height:140px;border-radius:50%;display:grid;place-items:center;position:relative;z-index:1;background:conic-gradient(var(--cyan) calc(var(--p)*1%),rgba(255,255,255,.16) 0);animation:ring 1.2s var(--ease) both}
html body .progress-ring>div{width:108px;height:108px;border-radius:50%;background:#00224b;display:grid;place-content:center;text-align:center}
html body .progress-ring strong{color:#fff;font-size:26px;font-weight:800;line-height:1}
html body .progress-ring span{font-size:11px;color:rgba(255,255,255,.7)}
@keyframes ring{from{--p:0}}
@media(max-width:640px){html body .trainee-progress-hero{flex-direction:column;align-items:flex-start;padding:24px}}

/* ---------- Buttons ---------- */
html body .btn,html body .admin-button,html body .trainee-button,html body .trainer-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 18px;border-radius:10px;border:1px solid transparent;background:var(--brand);color:#fff;font-size:14px;font-weight:600;line-height:1;text-decoration:none;cursor:pointer;transition:background .15s,transform .1s,box-shadow .15s;box-shadow:0 1px 2px rgba(10,79,196,.25)}
html body .btn:hover,html body .admin-button:hover,html body .trainee-button:hover,html body .trainer-button:hover{background:var(--brand-hover)}
html body .btn:active,html body .admin-button:active,html body .trainee-button:active,html body .trainer-button:active{transform:translateY(1px)}
html body .admin-button.secondary,html body .trainee-button.secondary,html body .trainer-button.secondary,html body .btn.secondary{background:transparent;color:var(--brand-ink);border-color:var(--line-strong);box-shadow:none}
html body .admin-button.secondary:hover,html body .trainee-button.secondary:hover,html body .trainer-button.secondary:hover,html body .btn.secondary:hover{background:var(--hover)}
html body .table-action{border-radius:8px;font-weight:600}
.is-loading{position:relative;pointer-events:none;opacity:.75}
.is-loading::after{content:"";width:14px;height:14px;margin-left:8px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---------- Forms ---------- */
html body input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),html body select,html body textarea{min-height:42px;padding:9px 12px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface);color:var(--ink);font-size:14px;transition:border-color .15s,box-shadow .15s}
html body textarea{min-height:110px;line-height:1.5}
html body input:focus,html body select:focus,html body textarea:focus{outline:0;border-color:var(--brand);box-shadow:0 0 0 4px color-mix(in srgb,var(--brand) 18%,transparent)}
html body input::placeholder,html body textarea::placeholder{color:var(--muted);opacity:.8}
html body label{font-weight:600;color:var(--ink-2);font-size:13.5px}
html body .helper-text{color:var(--muted);font-size:12.5px}
.upload-field{position:relative;display:block;border:2px dashed var(--line-strong);border-radius:16px;padding:22px;background:var(--surface-2);text-align:center;transition:border-color .15s,background .15s}
.upload-field.drag{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 8%,var(--surface))}
.upload-field input[type=file]{max-width:100%}
.file-chip{display:block;margin-top:10px;font-size:13px;font-weight:600;color:var(--brand-ink)}
.pw{position:relative}.pw input{padding-right:64px!important}
.pw button{position:absolute;right:6px;top:50%;transform:translateY(-50%);height:30px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--brand-ink);font-size:12.5px;font-weight:700;cursor:pointer}
.pw button:hover{background:var(--hover)}

/* ---------- Tables ---------- */
html body .table-scroll{border-radius:14px}
html body table{border-collapse:separate;border-spacing:0}
html body .admin-table thead th,html body .table-scroll table thead th{background:var(--surface-2);color:var(--muted);font-size:12.5px;font-weight:700;text-transform:none;letter-spacing:0;border-bottom:1px solid var(--line);white-space:nowrap}
html body .admin-table td,html body .table-scroll table td{border-bottom:1px solid var(--line);color:var(--ink-2);vertical-align:middle}
html body .admin-table td small,html body .table-scroll table td small{display:block;color:var(--muted)}
html body .admin-table tbody tr,html body .table-scroll table tbody tr{transition:background .12s}
html body .admin-table tbody tr:hover,html body .table-scroll table tbody tr:hover{background:var(--hover)}
tr[hidden]{display:none}
th.sortable{cursor:pointer;user-select:none}
th.sortable::after{content:"";display:inline-block;margin-left:6px;border:4px solid transparent;border-top-color:currentColor;border-bottom:0;opacity:.3;vertical-align:middle}
th[aria-sort=ascending]::after{border-top:0;border-bottom:4px solid currentColor;opacity:.9}
th[aria-sort=descending]::after{opacity:.9}
.tbl-tools{display:flex;align-items:center;gap:12px;margin:0 0 12px;flex-wrap:wrap}
.tbl-tools input{flex:1;min-width:200px;max-width:340px}
.tbl-count{color:var(--muted);font-size:12.5px}

/* ---------- Status badges ---------- */
html body .status-badge,html body .status-chip,html body .simple-pill{--c:#64748b;display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:99px;font-size:12px;font-weight:700;text-transform:none;letter-spacing:0;border:0;background:color-mix(in srgb,var(--c) 14%,transparent);color:color-mix(in srgb,var(--c) 78%,var(--ink))}
html body .status-badge::before,html body .status-chip::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--c)}
.status-approved,.evidence-approved,.status-completed{--c:#16a34a!important}
.status-pending,.evidence-pending{--c:#d97706!important}
.status-under_review,.evidence-under_review,.status-in_progress{--c:#2563eb!important}
.status-correction_required,.evidence-correction_required{--c:#dc2626!important}

/* ---------- Toasts ---------- */
.toasts{position:fixed;top:16px;right:16px;z-index:400;display:grid;gap:10px;width:min(380px,calc(100vw - 32px))}
html body .flash.toast{position:relative;margin:0;max-width:none;padding:14px 40px 14px 16px;border-radius:14px;background:var(--surface);color:var(--ink);border:1px solid var(--line);box-shadow:0 14px 36px rgba(11,27,54,.18);animation:toast-in .3s var(--ease)}
.flash.toast.out{opacity:0;transform:translateX(16px);transition:.2s}
.toast-x{position:absolute;top:8px;right:8px;width:28px;height:28px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:20px;cursor:pointer}
.toast-x:hover{background:var(--hover)}
@keyframes toast-in{from{opacity:0;transform:translateY(-8px) scale(.98)}}

/* ---------- Command palette ---------- */
.cmdk{position:fixed;inset:0;z-index:500;display:grid;place-items:start center;padding-top:14vh;background:rgba(3,12,28,.55);backdrop-filter:blur(3px)}
.cmdk[hidden]{display:none}
.cmdk-box{width:min(560px,calc(100vw - 24px));background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.35);overflow:hidden;animation:toast-in .2s var(--ease)}
.cmdk-box input{width:100%;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;padding:18px 20px!important;font-size:16px!important;box-shadow:none!important;background:transparent!important}
.cmdk-box ul{list-style:none;margin:0;padding:8px;max-height:52vh;overflow:auto}
.cmdk-box li a{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:10px;color:var(--ink-2);text-decoration:none;font-weight:600}
.cmdk-box li a[aria-selected=true]{background:color-mix(in srgb,var(--brand) 12%,transparent);color:var(--brand-ink)}
.cmdk-hint{margin:0;padding:10px 16px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}

/* ---------- Sidebar overlay / misc ---------- */
html body .app-version{color:var(--muted);font-size:11.5px;opacity:.7}
html body .admin-content,html body .trainee-content,html body .trainer-content{animation:page-in .35s var(--ease) both}
@keyframes page-in{from{opacity:0;transform:translateY(6px)}}

/* ---------- Public pages: landing + auth ---------- */
html body.auth-page,html body.landing{background:radial-gradient(1100px 500px at 85% -10%,rgba(10,79,196,.16),transparent 60%),radial-gradient(800px 400px at -5% 110%,rgba(92,225,230,.18),transparent 60%),var(--bg);color:var(--ink-2);min-height:100vh;font-family:var(--font)}
html body.auth-page .topbar{display:none}
html body.auth-page .footer,html body.landing .footer{color:var(--muted);font-size:12.5px}
html body .topbar{background:color-mix(in srgb,var(--navy) 96%,transparent);backdrop-filter:blur(10px)}
.auth-shell{width:min(980px,calc(100% - 28px));margin:6vh auto 3vh;display:grid;grid-template-columns:1.05fr 1fr;border-radius:26px;overflow:hidden;box-shadow:0 30px 70px rgba(0,40,85,.2);background:var(--surface);border:1px solid var(--line)}
.auth-aside{position:relative;padding:44px 40px;color:#fff;background:linear-gradient(150deg,#002855,#0a4fc4 75%,#1a7ad8);display:flex;flex-direction:column;gap:18px;overflow:hidden}
.auth-aside::after{content:"";position:absolute;right:-80px;bottom:-100px;width:320px;height:320px;border-radius:50%;background:radial-gradient(circle,rgba(217,164,65,.4),transparent 65%)}
.auth-aside img{width:64px;height:64px;object-fit:contain;background:#fff;border-radius:16px;padding:5px}
.auth-aside h2{margin:6px 0 0;font-size:28px;line-height:1.2;letter-spacing:-.02em;font-weight:800;color:#fff;max-width:14ch}
.auth-aside p{margin:0;color:rgba(255,255,255,.82);max-width:34ch}
.auth-points{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:12px;position:relative;z-index:1}
.auth-points li{display:flex;gap:10px;align-items:center;font-weight:600;font-size:14px}
.auth-points li::before{content:"";flex:none;width:20px;height:20px;border-radius:50%;background:rgba(92,225,230,.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.7 2.7L14 7.8' fill='none' stroke='%235ce1e6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
html body .auth-card{width:auto;margin:0;padding:44px 40px;border:0;border-radius:0;box-shadow:none;background:var(--surface)}
html body .auth-shell .auth-card{align-self:center}
html body:not(.auth-page) .auth-card{margin:45px auto}
html body .auth-card h1{text-align:left;font-size:26px;font-weight:800;letter-spacing:-.02em;color:var(--ink);margin:0 0 6px}
html body .auth-card .muted{text-align:left;color:var(--muted);margin:0}
html body.auth-page main.auth-card:not(.auth-shell *){width:min(440px,calc(100% - 28px));margin:10vh auto 3vh;border-radius:22px;border:1px solid var(--line);box-shadow:0 24px 60px rgba(0,40,85,.14)}
html body .auth-card .auth-logo{text-align:left}
html body .auth-shell .auth-card .auth-logo{display:none}
html body .auth-card input{width:100%}
html body .auth-card .btn-full{min-height:46px;margin-top:22px}
html body .auth-link{text-align:left}
html body .auth-link a{color:var(--brand-ink);font-weight:600}
@media(max-width:760px){.auth-shell{grid-template-columns:1fr;margin-top:3vh}.auth-aside{padding:28px}.auth-aside h2{font-size:22px}.auth-points{display:none}html body .auth-card{padding:28px 24px}}
html body.landing .hero{max-width:1040px;margin:7vh auto 3vh;padding:56px clamp(24px,5vw,64px);border:1px solid var(--line);border-radius:28px;background:var(--surface);box-shadow:0 30px 70px rgba(0,40,85,.12);text-align:left;display:grid;gap:22px}
html body.landing .hero img{width:84px;height:84px;object-fit:contain;border-radius:18px}
html body.landing .hero h1{margin:0;font-size:clamp(34px,5.4vw,56px);line-height:1.05;letter-spacing:-.035em;font-weight:800;color:var(--ink);max-width:16ch}
html body.landing .hero p{margin:0;font-size:17px;color:var(--muted);max-width:56ch}
html body.landing .hero .btn{justify-self:start;min-height:48px;padding:0 26px;font-size:15px}
.feature-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:10px}
.feature-row div{padding:18px;border-radius:16px;background:var(--surface-2);border:1px solid var(--line)}
.feature-row strong{display:block;color:var(--ink);margin-bottom:4px}
.feature-row span{color:var(--muted);font-size:13.5px}
@media(max-width:760px){.feature-row{grid-template-columns:1fr}}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.toasts,.cmdk,.top-tools{display:none!important}}

/* ---------- Dark theme: generated from the original stylesheets ---------- */
html[data-theme=dark] .admin-panel,
html[data-theme=dark] .admin-stat-card,
html[data-theme=dark] .assessment-metrics div,
html[data-theme=dark] .assessment-unit,
html[data-theme=dark] .dashboard-placeholder,
html[data-theme=dark] .department-card,
html[data-theme=dark] .filter-row a,
html[data-theme=dark] .mini-programme-list span,
html[data-theme=dark] .notification-item,
html[data-theme=dark] .operations-stat-grid>div,
html[data-theme=dark] .portfolio-banner,
html[data-theme=dark] .portfolio-metrics div,
html[data-theme=dark] .portfolio-unit-stats div,
html[data-theme=dark] .profile-stat,
html[data-theme=dark] .programme-tile,
html[data-theme=dark] .report-stat,
html[data-theme=dark] .risk-metrics div,
html[data-theme=dark] .system-stat-grid>div,
html[data-theme=dark] .trainee-panel,
html[data-theme=dark] .trainee-stat,
html[data-theme=dark] .trainer-notification,
html[data-theme=dark] .trainer-panel,
html[data-theme=dark] .trainer-stat,
html[data-theme=dark] .uat-role-grid>div,
html[data-theme=dark] .unit-card-metrics div,
html[data-theme=dark] body.trainee-portal-body{background:var(--surface)}
html[data-theme=dark] .admin-body,
html[data-theme=dark] .catalogue-count,
html[data-theme=dark] .description-box,
html[data-theme=dark] .evidence-card-meta span,
html[data-theme=dark] .evidence-description,
html[data-theme=dark] .import-note,
html[data-theme=dark] .notification-shortcut,
html[data-theme=dark] .security-note,
html[data-theme=dark] .status-summary div,
html[data-theme=dark] .trainer-portal-body{background:var(--surface-2)}
html[data-theme=dark] .admin-page-heading h1,
html[data-theme=dark] .admin-panel h2,
html[data-theme=dark] .admin-stat-card strong,
html[data-theme=dark] .assessment-card-head strong,
html[data-theme=dark] .assessment-metrics strong,
html[data-theme=dark] .competency-summary-grid strong,
html[data-theme=dark] .department-summary-main strong,
html[data-theme=dark] .deployment-checklist strong,
html[data-theme=dark] .evidence-description h3,
html[data-theme=dark] .feedback-item strong,
html[data-theme=dark] .go-live-grid strong,
html[data-theme=dark] .import-note>strong,
html[data-theme=dark] .operations-stat-grid strong,
html[data-theme=dark] .panel-heading h2,
html[data-theme=dark] .portfolio-metrics strong,
html[data-theme=dark] .portfolio-unit-stats strong,
html[data-theme=dark] .profile-stat strong,
html[data-theme=dark] .release-check-grid strong,
html[data-theme=dark] .report-stat strong,
html[data-theme=dark] .section-subtitle,
html[data-theme=dark] .section-title,
html[data-theme=dark] .status-summary strong,
html[data-theme=dark] .system-stat-grid strong,
html[data-theme=dark] .trainee-page-heading h1,
html[data-theme=dark] .trainee-panel h2,
html[data-theme=dark] .trainee-stat strong,
html[data-theme=dark] .trainer-page-heading h1,
html[data-theme=dark] .trainer-stat strong,
html[data-theme=dark] .uat-role-grid strong,
html[data-theme=dark] .unit-card-metrics strong,
html[data-theme=dark] .version-item strong,
html[data-theme=dark] .version-row strong{color:var(--ink)}
html[data-theme=dark] .admin-account strong,
html[data-theme=dark] .admin-body,
html[data-theme=dark] .assessment-unit strong,
html[data-theme=dark] .description-box p,
html[data-theme=dark] .detail-grid strong,
html[data-theme=dark] .evidence-card h3,
html[data-theme=dark] .evidence-description p,
html[data-theme=dark] .feedback-item p,
html[data-theme=dark] .guidance-card li,
html[data-theme=dark] .health-check strong,
html[data-theme=dark] .mini-programme-list span,
html[data-theme=dark] .notification-content p,
html[data-theme=dark] .notification-shortcut,
html[data-theme=dark] .operations-check strong,
html[data-theme=dark] .operations-mini-list li,
html[data-theme=dark] .programme-tile strong,
html[data-theme=dark] .report-bar-label strong,
html[data-theme=dark] .risk-card p,
html[data-theme=dark] .risk-card-head strong,
html[data-theme=dark] .system-info-list strong,
html[data-theme=dark] .trainee-form label>span,
html[data-theme=dark] .trainee-unit-card h3,
html[data-theme=dark] .trainer-notification-content p,
html[data-theme=dark] .trainer-portal-body,
html[data-theme=dark] .trainer-unit-card h3,
html[data-theme=dark] .trainer-user strong,
html[data-theme=dark] .uat-manual-list li,
html[data-theme=dark] .uat-test strong,
html[data-theme=dark] .version-item span,
html[data-theme=dark] body.trainee-portal-body,
html[data-theme=dark] body.trainer-portal-body{color:var(--ink-2)}
html[data-theme=dark] .admin-panel,
html[data-theme=dark] .admin-stat-card,
html[data-theme=dark] .assessment-card,
html[data-theme=dark] .assessment-metrics div,
html[data-theme=dark] .catalogue-count,
html[data-theme=dark] .competency-summary-grid div,
html[data-theme=dark] .dashboard-placeholder,
html[data-theme=dark] .department-card,
html[data-theme=dark] .deployment-checklist>div,
html[data-theme=dark] .description-box,
html[data-theme=dark] .evidence-card,
html[data-theme=dark] .evidence-description,
html[data-theme=dark] .feedback-item,
html[data-theme=dark] .filter-row a,
html[data-theme=dark] .go-live-grid>div,
html[data-theme=dark] .health-check,
html[data-theme=dark] .import-note,
html[data-theme=dark] .mini-programme-list span,
html[data-theme=dark] .notification-item,
html[data-theme=dark] .notification-shortcut,
html[data-theme=dark] .operations-check,
html[data-theme=dark] .operations-stat-grid>div,
html[data-theme=dark] .portfolio-metrics div,
html[data-theme=dark] .portfolio-unit,
html[data-theme=dark] .profile-stat,
html[data-theme=dark] .release-check-grid>div,
html[data-theme=dark] .report-stat,
html[data-theme=dark] .security-note,
html[data-theme=dark] .system-stat-grid>div,
html[data-theme=dark] .trainee-avatar,
html[data-theme=dark] .trainee-panel,
html[data-theme=dark] .trainee-stat,
html[data-theme=dark] .trainee-unit-card,
html[data-theme=dark] .trainer-notification,
html[data-theme=dark] .trainer-panel,
html[data-theme=dark] .trainer-stat,
html[data-theme=dark] .trainer-unit-card,
html[data-theme=dark] .uat-role-grid>div,
html[data-theme=dark] .uat-test,
html[data-theme=dark] .unit-card-metrics div,
html[data-theme=dark] .version-item,
html[data-theme=dark] .version-row{border-color:var(--line)}
html[data-theme=dark] .trainee-progress-hero,html[data-theme=dark] .auth-aside{color:#fff}
html[data-theme=dark] body .admin-avatar,html[data-theme=dark] body .trainee-avatar,html[data-theme=dark] body .trainer-avatar{background:linear-gradient(135deg,var(--brand),#2b7bff);color:#fff}
html[data-theme=dark] body .notification-shortcut strong{background:var(--gold);color:#241a00}

/* Login and registration layout correction */
.auth-page {
    overflow-x: hidden;
}

.auth-page .auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    width: min(1100px, calc(100% - 40px));
    max-width: 1100px;
    margin: 28px auto;
    align-items: stretch;
    box-sizing: border-box;
}

.auth-page .auth-shell > * {
    min-width: 0;
    box-sizing: border-box;
}

.auth-page .auth-aside,
.auth-page .auth-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
}

.auth-page .auth-card input,
.auth-page .auth-card select,
.auth-page .auth-card textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .auth-page .auth-shell {
        grid-template-columns: minmax(0, 1fr);
        width: calc(100% - 24px);
        margin: 12px auto;
    }

    .auth-page .auth-aside,
    .auth-page .auth-card {
        width: 100%;
        min-width: 0;
    }
}
