:root{--bg:#f3f8ff;--panel:#fff;--line:#dce8f6;--text:#172033;--muted:#66768f;--primary:#1677ff;--primary-2:#0f5fd2;--success:#14b87a;--warning:#f6a609;--danger:#ef4444;--soft:#eef6ff;--shadow:0 12px 40px rgba(11, 43, 90, 0.08), 0 4px 12px rgba(11, 43, 90, 0.04);--radius:20px;--transition-smooth:all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1)}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
input,select,textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:11px 13px;background:rgba(255,255,255,0.8);backdrop-filter:blur(4px);color:var(--text);outline:none;transition:all 0.25s ease}
textarea{min-height:90px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(22,119,255,.15);background:#fff}
label{display:grid;gap:7px;font-weight:650;color:#25364d}
code{background:#f3f7fc;border:1px solid #dde9f7;border-radius:8px;padding:2px 5px}
.muted{color:var(--muted)}.center{text-align:center}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.brand-mark{width:44px;height:56px;background:transparent;display:grid;place-items:center;padding:0;overflow:visible}.brand-mark img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;object-position:center;display:block}.brand-mark.big{width:72px;height:92px}.brand-mark.big img{max-width:72px;max-height:92px}.app-shell{min-height:100vh;display:flex;align-items:stretch}.sidebar{position:sticky;top:0;width:250px;min-width:250px;height:100vh;display:flex;flex-direction:column;gap:14px;padding:16px 12px;background:linear-gradient(180deg,#0d4b93 0%,#0f3e7c 48%,#102f5f 100%);color:#fff;box-shadow:18px 0 45px rgba(16,47,95,.18);overflow-y:auto}.side-brand{display:flex;align-items:center;gap:12px;min-width:0;padding:4px 4px 14px;border-bottom:1px solid rgba(255,255,255,.14)}.side-brand.no-pad{padding:0;border-bottom:0}.side-brand>div{min-width:0}.side-brand b{display:block;font-size:14px;line-height:1.25;overflow-wrap:anywhere}.side-brand span{display:block;margin-top:3px;color:rgba(255,255,255,.72);font-size:11px;line-height:1.35}.sidebar nav{display:grid;gap:4px}.sidebar nav a{display:flex;gap:10px;align-items:center;min-width:0;padding:9px 12px;border-radius:10px;font-size:14px;color:rgba(255,255,255,.82);transition:var(--transition-smooth)}.sidebar nav a span{width:22px;flex:0 0 22px;text-align:center}.sidebar nav a:hover,.sidebar nav a.active{background:rgba(255,255,255,.14);color:#fff;transform:translateX(2px)}.side-footer{margin-top:auto;color:rgba(255,255,255,.7);font-size:11px;line-height:1.6}
.main{flex:1;min-width:0;padding:16px 22px 30px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.topbar h1{margin:3px 0 0;font-size:24px}.crumb{color:var(--muted);font-size:12px;display:flex;gap:7px;align-items:center;flex-wrap:wrap}.userbox{display:flex;align-items:center;gap:14px;background:rgba(255, 255, 255, 0.85);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,0.5);border-radius:14px;padding:8px 12px;box-shadow:0 8px 24px rgba(31,64,113,.05);transition:var(--transition-smooth)}.userbox:hover{background:#fff;box-shadow:0 12px 32px rgba(31,64,113,.08);transform:translateY(-1px)}.userbox b,.userbox span{display:block}.userbox span{color:var(--muted);font-size:11px}
.btn{border:0;border-radius:12px;padding:10px 15px;font-weight:800;cursor:pointer;transition:var(--transition-smooth);display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn:hover{transform:translateY(-2px);filter:brightness(1.05);box-shadow:0 6px 16px rgba(0,0,0,0.08)}.btn:active{transform:translateY(0);box-shadow:0 2px 8px rgba(0,0,0,0.05)}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.btn.primary{background:var(--primary);color:#fff}.btn.ghost{background:#eef5ff;color:#175ba7;border:1px solid var(--line)}.btn.warning{background:#fff2d5;color:#9d6100;border:1px solid #ffe0a3}.btn.danger{background:#fff1f0;color:#b42318;border:1px solid #ffd1cc}.btn.full{width:100%}.btn.tiny{padding:7px 10px;border-radius:10px;font-size:12px}
.page-head{display:flex;justify-content:space-between;gap:16px;align-items:center;background:linear-gradient(135deg,rgba(255,255,255,0.9),rgba(238,247,255,0.9));backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,0.6);border-radius:var(--radius);padding:16px 20px;margin-bottom:16px;box-shadow:0 12px 30px rgba(31,64,113,.06);transition:var(--transition-smooth)}.page-head h2{margin:0 0 5px;font-size:20px}.page-head p{margin:0;color:var(--muted);font-size:13px}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.stat-card{display:flex;align-items:center;gap:12px;background:rgba(255,255,255,0.9);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,0.5);border-radius:16px;padding:14px;box-shadow:0 8px 24px rgba(31,64,113,.06);transition:var(--transition-smooth)}.stat-card:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(31,64,113,.1);background:#fff}.stat-icon{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,#eef7ff,#dff1ff);display:grid;place-items:center}.stat-card span,.stat-card em{display:block;color:var(--muted);font-size:11px;font-style:normal}.stat-card strong{display:block;font-size:22px}
.panel{background:rgba(255,255,255,0.95);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,0.6);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow);margin-bottom:16px;transition:var(--transition-smooth)}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.grid{display:grid;gap:14px}.grid.two{grid-template-columns:minmax(300px,420px) 1fr}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.four-report{grid-template-columns:repeat(4,minmax(0,1fr))}.grid.compact{gap:10px}.recap-box{border:1px solid var(--line);border-radius:14px;background:#fbfdff;padding:12px}.recap-box h4{margin:0 0 8px}.span-two{grid-column:1/-1}.form{display:grid;gap:12px;align-content:start}.form.wide{max-width:740px}.filter-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;border:1px solid var(--line);border-radius:12px;background:#f8fbff;padding:10px;margin:10px 0 14px}.filter-form label{display:flex;flex-direction:column;gap:4px;font-size:11px;flex:1 1 160px;min-width:140px}.filter-form input,.filter-form select{min-height:34px;height:34px;padding:6px 10px;border-radius:10px;font-size:13px;width:100%}.filter-actions{display:flex;gap:8px;align-items:center;margin-left:auto}.checks{display:grid;gap:8px}.checks label,.doubt-check{display:flex;align-items:center;gap:9px;font-weight:600}.checks input,.doubt-check input{width:auto}

table{width:100%;border-collapse:collapse}table tbody tr{transition:background 0.2s}table tbody tr:hover td{background:#f4f8fe}th,td{padding:10px 8px;border-bottom:1px solid #edf3fb;text-align:left;vertical-align:middle;font-size:13px}th{font-size:11px;color:#5d6f87;text-transform:uppercase;letter-spacing:.04em;background:#f8fbff;vertical-align:bottom}.table-wrap{overflow:auto}.badge{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800;background:#eff4fb;color:#526070}.badge.primary{background:#e8f2ff;color:#145fbb}.badge.success{background:#e9fbf3;color:#0b7a50}.badge.warning{background:#fff5d8;color:#966000}.badge.danger{background:#fff0ee;color:#b42318}.bar-track{height:9px;background:#edf3fb;border:1px solid #dce8f6;border-radius:999px;overflow:hidden;min-width:120px;margin-bottom:5px}.bar-track span{display:block;height:100%;background:linear-gradient(90deg,#1677ff,#14b87a)}.mini-list{display:grid;gap:8px}.mini-list>div:not(.empty){border:1px solid var(--line);border-radius:12px;background:#f8fbff;padding:10px}.mini-list span,.mini-list em{display:block;color:var(--muted);font-size:11px;font-style:normal}.mini-list b{display:block;margin-top:3px;font-size:13px}.toast{border-radius:14px;padding:12px 14px;margin-bottom:14px;border:1px solid var(--line);background:#f8fbff;font-size:14px}.toast.success{background:#eafbF5;color:#096847;border-color:#b9efd8}.toast.error,.toast.danger{background:#fff1f0;color:#a8071a;border-color:#ffccc7}.toast.warning{background:#fff8e6;color:#8a5a00;border-color:#ffe2a8}
.compact-list{margin:8px 0 0;padding-left:18px;color:#4f6078;font-size:12px;line-height:1.5}details summary{cursor:pointer;color:#175ba7;font-weight:800;margin-top:6px}
.question-pick{max-height:260px;overflow:auto;display:grid;gap:8px;border:1px solid var(--line);border-radius:14px;padding:10px;background:#fbfdff}.question-pick label{display:flex;gap:8px;font-weight:500}.question-pick input{width:auto}.inline{display:inline-flex;gap:6px;align-items:center}.inline select{width:auto;min-width:92px}.inline .review-comment{width:170px;min-width:150px}.incident-form{display:grid;grid-template-columns:minmax(160px,1fr) auto;gap:6px;margin-top:8px}.incident-form input{height:34px;padding:7px 10px;border-radius:10px;font-size:12px}.review-note{display:grid;gap:8px;border:1px solid var(--line);border-radius:14px;background:#f8fbff;padding:12px;margin:10px 0}.review-note>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.review-note p{margin:0;color:#31445f;line-height:1.5}.token{font-size:18px;background:#ecfdf5;color:#047857;padding:5px 8px;border-radius:8px}.empty{text-align:center;color:var(--muted);padding:28px}.analysis-line{display:block;color:#4f6078;font-size:12px;line-height:1.45}.footer{margin-top:24px;color:var(--muted);font-size:12px}.signature{display:flex;justify-content:space-around;padding-top:70px}.print-card{display:none}
.login-bg{background:#f6f8fb}.auth-wrap{position:relative;min-height:100vh;display:grid;grid-template-rows:150px 1fr;overflow:hidden}.auth-wrap:before{content:"";position:absolute;inset:0 0 auto;height:150px;background:linear-gradient(105deg,#1176b8 0%,#2b6b9e 48%,#356b9d 100%)}.auth-wrap:after{content:"";position:absolute;inset:0 0 auto;height:150px;background:linear-gradient(120deg,rgba(255,255,255,.16),rgba(255,255,255,0) 54%);clip-path:polygon(0 0,25% 0,15% 100%,0 68%)}.auth-hero{position:relative;z-index:1;height:150px;color:#fff;display:flex;align-items:center;gap:16px;padding:24px clamp(24px,4vw,58px)}.auth-hero .brand-mark.big{width:62px;height:80px}.auth-hero h1{max-width:520px;margin:0 0 4px;font-size:17px;line-height:1.25;font-weight:900;text-transform:uppercase}.auth-hero p{margin:0;color:#edf7ff;font-size:13px;font-weight:750;text-transform:uppercase}.auth-card{position:relative;z-index:2;align-self:start;justify-self:center;width:min(450px,calc(100% - 32px));margin-top:-30px;background:rgba(255,255,255,0.85);backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,0.7);border-radius:24px;box-shadow:0 30px 80px rgba(17,118,184,.15), 0 0 0 1px rgba(255,255,255,0.4) inset;padding:42px 48px;display:grid;gap:18px;transition:var(--transition-smooth)}.auth-card h2{margin:0;color:#202938;font-size:22px;line-height:1.25;font-weight:850}.auth-card p{margin:0 0 4px;font-size:14px;line-height:1.65}.auth-card label{gap:6px;color:#26364a;font-size:13px;font-weight:800}.auth-card input{border-width:0 0 1px;border-color:#dce5ef;border-radius:0;background:transparent;padding:10px 0 11px;box-shadow:none}.auth-card input:focus{border-color:var(--primary);box-shadow:none}.auth-card .btn{min-height:40px;border-radius:10px}.auth-card .btn.primary{background:#0f80f2}.auth-alt-link{color:#536783;text-align:center;font-size:14px;font-weight:650}.auth-alt-link:hover{color:#0f5fd2}
.tka-bg{background:linear-gradient(180deg,#eef6ff 0,#f8fbff 230px,#f4f7fb 100%)}.tka-top{height:74px;background:linear-gradient(90deg,#0e4ca3,#116de4);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 28px;box-shadow:0 10px 30px rgba(14,76,163,.18)}.top-logout .btn{background:rgba(255,255,255,.14);color:#fff;border-color:rgba(255,255,255,.25)}.tka-main{max-width:860px;margin:34px auto;padding:0 16px}.tka-start-card{background:rgba(255,255,255,0.92);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,0.7);border-radius:24px;box-shadow:0 26px 70px rgba(14,76,163,.1), 0 0 0 1px rgba(255,255,255,0.5) inset;padding:30px 34px;transition:var(--transition-smooth)}.tka-start-card.narrow{max-width:520px;margin:0 auto}.tka-start-card h1{margin:0 0 6px;font-size:30px;line-height:1.2}.tka-start-card p{margin:0;color:#52627a;line-height:1.6}.student-mini{display:grid;gap:4px;border-left:4px solid var(--primary);padding:4px 0 4px 14px;margin:22px 0;color:#25364d}.student-mini span{color:var(--muted)}.simulation-picker{display:grid;gap:16px;margin-top:20px}.picker-grid{display:grid;grid-template-columns:220px 1fr;gap:14px}.empty.compact{padding:14px}.session-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.session-card{display:block;border:1px solid rgba(255,255,255,0.6);border-radius:20px;padding:20px;background:linear-gradient(135deg,rgba(255,255,255,0.95),rgba(243,249,255,0.9));backdrop-filter:blur(10px);box-shadow:0 8px 24px rgba(31,64,113,.04);transition:var(--transition-smooth)}.session-card:hover{transform:translateY(-5px) scale(1.01);box-shadow:0 22px 45px rgba(14,76,163,.12);background:linear-gradient(135deg,#fff,#fff)}.session-card span{display:inline-flex;background:#e8f2ff;color:#145fbb;border-radius:999px;padding:5px 10px;font-weight:800;font-size:12px}.session-card h3{margin:12px 0 4px}.session-card p{color:var(--muted)}.session-card em{font-style:normal;color:#0b7a50;font-weight:800}
.confirm-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px;row-gap:0;margin:22px 0;border-top:1px solid var(--line)}.confirm-list div{border-bottom:1px solid var(--line);padding:12px 0;min-width:0}.confirm-list span{display:block;color:var(--muted);font-size:12px;font-weight:750;text-transform:uppercase;letter-spacing:.03em}.confirm-list b{display:block;margin-top:4px;font-weight:800;overflow-wrap:anywhere}.score-circle{width:142px;height:142px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#1677ff,#20c997);color:#fff;font-size:42px;font-weight:900;margin:20px auto;box-shadow:0 18px 40px rgba(22,119,255,.25)}.review-list{display:grid;gap:10px}.review-item{background:#f8fbff;border:1px solid var(--line);border-radius:14px;padding:14px}.review-item p{margin:6px 0}.review-item span,.review-item em{display:block;color:var(--muted);font-size:13px}.review-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0}.review-columns div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px}.review-columns strong{display:block;margin-top:5px;font-size:13px}
.exam-body{height:100vh;overflow:hidden;background:#f1f5fa}.exam-layout{height:100vh;display:grid;grid-template-columns:270px 1fr;grid-template-rows:74px 1fr 76px;grid-template-areas:"head head" "nums question" "foot foot"}.exam-header{grid-area:head;background:linear-gradient(90deg,#0e4ca3,#116de4);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 22px;box-shadow:0 10px 30px rgba(14,76,163,.18)}.font-tools{display:flex;gap:8px}.font-tools button{border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.14);color:#fff;border-radius:10px;padding:8px 10px;cursor:pointer}.timer,.autosave{background:rgba(255,255,255,.14);padding:9px 13px;border-radius:10px;font-weight:800}.autosave{font-size:12px;font-weight:700;color:#e8f4ff}.autosave[data-state=saving]{background:rgba(255,245,216,.22);color:#fff7dc}.autosave[data-state=saved]{background:rgba(233,251,243,.22);color:#e9fbf3}.autosave[data-state=error]{background:rgba(255,240,238,.24);color:#ffe4e1}.number-panel{grid-area:nums;background:#fff;border-right:1px solid var(--line);padding:18px;overflow:auto}.number-panel h3{margin-top:0}.num-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.num{height:42px;border-radius:10px;display:grid;place-items:center;border:1px solid var(--line);font-weight:900;background:#fff}.num.answered{background:#e9fbf3;color:#067a51;border-color:#b9efd8}.num.doubt{background:#fff5d8;color:#9d6100;border-color:#ffe0a3}.num.active{background:#1677ff;color:#fff;border-color:#1677ff}.legend{display:grid;gap:7px;margin-top:18px;color:var(--muted);font-size:12px}.legend span{display:flex;align-items:center;gap:8px}.l{width:14px;height:14px;border-radius:5px;display:inline-block;border:1px solid var(--line)}.l.answered{background:#e9fbf3}.l.doubt{background:#fff5d8}.l.active{background:#1677ff}.finish-modal{position:fixed;inset:0;z-index:50;display:grid;place-items:center;background:rgba(11,31,62,.52);padding:18px}.finish-modal[hidden]{display:none}.finish-dialog{width:min(520px,100%);background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 28px 80px rgba(11,31,62,.28);padding:24px}.finish-dialog h2{margin:0 0 8px;font-size:24px}.finish-dialog p{margin:0;color:var(--muted)}.finish-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.finish-summary div{border:1px solid var(--line);background:#f8fbff;border-radius:12px;padding:12px}.finish-summary span{display:block;color:var(--muted);font-size:12px}.finish-summary b{display:block;margin-top:4px;font-size:24px}.finish-actions{display:flex;justify-content:flex-end;gap:10px}
.question-panel{grid-area:question;overflow:auto;padding:22px;transition:var(--transition-smooth)}.question-panel.font-lg{font-size:20px}.question-top{display:flex;justify-content:space-between;align-items:center;background:rgba(255,255,255,0.9);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,0.6);border-radius:20px;padding:16px 18px;margin-bottom:14px;box-shadow:0 10px 24px rgba(31,64,113,.06)}.question-top h2{margin:0}.stimulus,.question-media,.question-text,.answers{background:rgba(255,255,255,0.85);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,0.6);border-radius:20px;padding:20px;margin-bottom:14px;line-height:1.7;box-shadow:0 4px 12px rgba(31,64,113,.03)}.stimulus{background:#fbfdff}.question-media{display:grid;gap:12px}.media-card{display:grid;gap:8px}.media-card img{max-width:100%;max-height:420px;object-fit:contain;border-radius:12px;border:1px solid var(--line);background:#f8fbff}.media-card audio{width:100%}.media-caption{margin:0;color:var(--muted);font-size:13px}.media-link{width:max-content}.question-text{font-weight:700}.answers{display:grid;gap:10px}.answer-card{display:flex;align-items:flex-start;gap:12px;border:1px solid var(--line);border-radius:16px;padding:14px;cursor:pointer;transition:var(--transition-smooth);background:#fff;font-weight:600}.answer-card:hover{border-color:var(--primary);box-shadow:0 12px 28px rgba(22,119,255,.12);transform:translateY(-2px)}.answer-card input{width:auto;margin-top:4px}.preview-option{cursor:default}.preview-option:hover{border-color:var(--line);box-shadow:none}.op-label{min-width:34px;height:34px;border-radius:10px;background:#eef6ff;display:grid;place-items:center;font-weight:900;color:#135eb7}.answer-card:has(input:checked){border-color:var(--primary);background:#f0f7ff}.statement-list,.match-list{display:grid;gap:10px}.statement-row{display:grid;grid-template-columns:1fr 120px 120px;gap:10px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:12px;background:#fff}.statement-row div,.match-row span{display:flex;align-items:center;gap:10px}.statement-row label{display:flex;align-items:center;gap:8px;font-weight:700}.statement-row input{width:auto}.match-row{display:grid;grid-template-columns:1fr minmax(180px,320px);gap:12px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:12px;background:#fff}.doubt-check{background:#fff;border:1px solid var(--line);padding:12px 14px;border-radius:14px;margin-bottom:90px}.exam-footer{grid-area:foot;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px;align-items:center;padding:12px 22px}.exam-footer .btn{min-width:130px}.package-preview-shell{display:grid;grid-template-columns:250px 1fr;gap:18px}.preview-number-panel{position:sticky;top:16px;align-self:start;background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:var(--shadow)}.preview-number-panel h3{margin-top:0}.preview-question-list{display:grid;gap:18px}.preview-question-card{background:#edf5ff;border:1px solid var(--line);border-radius:20px;padding:18px}.package-preview-meta{margin:0}
.print-body{background:#fff}.print-head{display:flex;align-items:center;justify-content:space-between;padding:20px 28px;border-bottom:1px solid #ddd}.print-head h1{margin:0}.print-head p{margin:4px 0 0;color:#555}.card-sheet{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;padding:20px}.login-card{border:1px solid #bbb;border-radius:14px;padding:16px;break-inside:avoid}.brand-row{display:flex;gap:10px;align-items:center;margin-bottom:12px}.brand-row span{display:block;font-size:12px;color:#666}.login-card dl{display:grid;grid-template-columns:120px 1fr;gap:6px;margin:0}.login-card dt{color:#666}.login-card dd{margin:0;font-weight:700}.print-document{max-width:1120px;margin:0 auto;padding:26px 34px 46px}.doc-title{text-align:center;margin-bottom:18px}.doc-title h2{margin:0;font-size:24px;letter-spacing:.03em}.doc-title p{margin:6px 0 0;color:#555}.doc-meta,.doc-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.doc-meta div,.doc-summary div{border:1px solid #d8d8d8;border-radius:8px;padding:10px;background:#fff}.doc-meta span,.doc-summary span{display:block;color:#666;font-size:12px}.doc-meta b,.doc-summary b{display:block;margin-top:4px}.token-display{display:grid;place-items:center;border:2px solid #0e4ca3;border-radius:18px;padding:24px;margin:18px auto;max-width:520px;background:#f7fbff}.token-display span{font-size:13px;color:#555;text-transform:uppercase;letter-spacing:.08em}.token-display b{font-size:64px;letter-spacing:.12em;color:#0e4ca3}.doc-paragraph{line-height:1.7;margin:16px 0}.print-table{width:100%;border-collapse:collapse;margin-top:14px}.print-table th,.print-table td{border:1px solid #bdbdbd;padding:8px;font-size:12px}.print-table th{background:#f0f4f8;color:#222}.compact-print th,.compact-print td{padding:7px}.signature-cell{height:36px}.doc-signatures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:52px;text-align:center}.doc-signatures.three{grid-template-columns:repeat(3,minmax(0,1fr))}.doc-signatures span{display:block;margin-bottom:58px}.doc-signatures b{font-weight:600}.incident-lines{display:grid;gap:18px;margin:10px 0 24px}.incident-lines span{display:block;border-bottom:1px solid #bbb;padding-bottom:8px}
@media(max-width:900px){.sidebar{display:none}.main{padding:16px}.stats-grid{grid-template-columns:repeat(2,1fr)}.grid.two,.grid.three,.grid.four-report,.package-preview-shell{grid-template-columns:1fr}.auth-wrap{grid-template-rows:132px 1fr}.auth-wrap:before,.auth-wrap:after{height:132px}.auth-hero{height:132px;padding:22px 18px;gap:12px}.auth-hero .brand-mark.big{width:48px;height:62px}.auth-hero .brand-mark.big img{max-width:48px;max-height:62px}.auth-hero h1{max-width:280px;font-size:13px}.auth-hero p{font-size:11px}.auth-card{width:min(430px,calc(100% - 24px));margin-top:-18px;padding:28px 22px}.session-grid,.picker-grid,.confirm-list,.review-columns,.finish-summary{grid-template-columns:1fr}.exam-layout{grid-template-columns:1fr;grid-template-rows:auto auto 1fr auto;grid-template-areas:"head" "nums" "question" "foot"}.exam-body{overflow:auto}.exam-layout{height:auto;min-height:100vh}.number-panel{border-right:0;border-bottom:1px solid var(--line)}.preview-number-panel{position:static}.num-grid{grid-template-columns:repeat(10,1fr)}.exam-header{gap:12px;flex-wrap:wrap;height:auto;padding:12px}.statement-row,.match-row{grid-template-columns:1fr}.exam-footer{position:sticky;bottom:0;flex-wrap:wrap}.exam-footer .btn{min-width:auto;flex:1}.finish-actions{display:grid}.topbar{display:grid;gap:12px}.stats-grid{grid-template-columns:1fr}.page-head{display:grid}.card-sheet{grid-template-columns:1fr}}

@media print{.sidebar,.topbar,.page-head .actions,.btn,.footer,.no-print{display:none!important}.main{padding:0}.panel{box-shadow:none;border:0}.print-card{display:block}.app-shell{display:block}body{background:#fff}.print-head{display:none}.card-sheet{grid-template-columns:repeat(2,1fr);padding:0}.login-card{border-color:#333}.print-document{max-width:none;padding:0}.doc-meta,.doc-summary{grid-template-columns:repeat(4,1fr)}.print-table th,.print-table td{font-size:11px;padding:6px}}


/* Modern compact UI refresh */
@media screen {
    :root {
        --bg: #eef3f8;
        --panel: #ffffff;
        --line: #d8e2ef;
        --text: #101827;
        --muted: #617089;
        --primary: #0b6fe8;
        --primary-2: #064fb4;
        --success: #07966b;
        --warning: #d98a00;
        --danger: #dc2626;
        --soft: #edf6ff;
        --shadow: 0 10px 26px rgba(15, 45, 86, .08);
        --shadow-strong: 0 18px 46px rgba(15, 45, 86, .14);
        --radius: 12px;
        --transition-smooth: all .18s ease;
    }

    html {
        background: var(--bg);
    }

    body {
        background:
            linear-gradient(180deg, rgba(228, 237, 248, .92), rgba(245, 248, 252, .98) 310px),
            var(--bg);
        color: var(--text);
        font-family: 'Instrument Sans', Inter, 'Segoe UI', Arial, sans-serif;
        font-size: 14px;
        line-height: 1.45;
    }

    input,
    select,
    textarea {
        min-height: 36px;
        border-color: #d4deeb;
        border-radius: 9px;
        padding: 8px 10px;
        background: #fbfdff;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
    }

    textarea {
        min-height: 82px;
    }

    input:focus,
    select:focus,
    textarea:focus {
        border-color: #2b7ff0;
        box-shadow: 0 0 0 3px rgba(11, 111, 232, .13);
    }

    label {
        gap: 5px;
        color: #26364c;
        font-size: 12px;
        font-weight: 750;
    }

    .app-shell {
        background: transparent;
    }

    .sidebar {
        width: 228px;
        min-width: 228px;
        gap: 10px;
        padding: 12px 10px;
        background:
            linear-gradient(180deg, rgba(17, 106, 194, .92), rgba(8, 56, 121, .96)),
            #083879;
        border-right: 1px solid rgba(255, 255, 255, .13);
        box-shadow: 18px 0 38px rgba(19, 50, 94, .18);
    }

    .side-brand {
        gap: 10px;
        padding: 4px 6px 12px;
        border-bottom-color: rgba(255, 255, 255, .16);
    }

    .brand-mark {
        width: 36px;
        height: 46px;
        flex: 0 0 auto;
    }

    .brand-mark.big {
        width: 60px;
        height: 76px;
    }

    .brand-mark.big img {
        max-width: 60px;
        max-height: 76px;
    }

    .side-brand b {
        font-size: 12px;
        font-weight: 900;
        letter-spacing: .01em;
    }

    .side-brand span {
        margin-top: 2px;
        font-size: 10px;
        color: rgba(255, 255, 255, .72);
    }

    .sidebar nav {
        gap: 2px;
    }

    .sidebar nav a {
        gap: 9px;
        min-height: 34px;
        padding: 7px 9px;
        border: 1px solid transparent;
        border-radius: 9px;
        color: rgba(239, 247, 255, .84);
        font-size: 12px;
        font-weight: 750;
    }

    .sidebar nav a span {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        display: grid;
        place-items: center;
        border-radius: 8px;
        background: rgba(255, 255, 255, .09);
        color: #e6f2ff;
        font-size: 13px;
        line-height: 1;
    }

    .sidebar nav a:hover,
    .sidebar nav a.active {
        background: rgba(255, 255, 255, .16);
        border-color: rgba(255, 255, 255, .12);
        color: #fff;
        transform: none;
    }

    .sidebar nav a.active span {
        background: #fff;
        color: #0a5ed0;
        box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
    }

    .side-footer {
        padding: 10px 6px 4px;
        border-top: 1px solid rgba(255, 255, 255, .12);
        font-size: 10px;
        color: rgba(255, 255, 255, .68);
    }

    .main {
        padding: 14px 18px 24px;
    }

    .topbar {
        min-height: 54px;
        margin-bottom: 12px;
        padding: 0 2px;
    }

    .crumb {
        gap: 6px;
        font-size: 11px;
        color: #6e7e94;
    }

    .topbar h1 {
        margin-top: 2px;
        font-size: 21px;
        line-height: 1.2;
        letter-spacing: 0;
    }

    .userbox {
        gap: 10px;
        border-radius: 10px;
        border-color: rgba(213, 224, 238, .9);
        background: rgba(255, 255, 255, .82);
        box-shadow: 0 8px 22px rgba(19, 50, 94, .07);
        padding: 7px 8px 7px 12px;
    }

    .userbox:hover {
        transform: none;
        box-shadow: 0 10px 24px rgba(19, 50, 94, .1);
    }

    .userbox b {
        font-size: 12px;
    }

    .userbox span {
        font-size: 10px;
    }

    .btn {
        min-height: 34px;
        padding: 8px 12px;
        border-radius: 9px;
        font-size: 12px;
        font-weight: 850;
        letter-spacing: 0;
        box-shadow: none;
    }

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(15, 45, 86, .1);
    }

    .btn.primary {
        background: linear-gradient(180deg, #1680ff, #0966db);
    }

    .btn.ghost {
        background: #f3f8ff;
        color: #17529a;
        border: 1px solid #d7e5f6;
    }

    .btn.warning {
        background: #fff7df;
        color: #8c5600;
        border: 1px solid #f4d28a;
    }

    .btn.danger {
        background: #fff0f0;
        color: #af1f1f;
        border: 1px solid #f5c7c7;
    }

    .btn.tiny {
        min-height: 28px;
        padding: 6px 9px;
        border-radius: 8px;
        font-size: 11px;
    }

    .page-head {
        margin-bottom: 12px;
        padding: 13px 16px;
        border-color: rgba(215, 226, 239, .86);
        border-radius: 12px;
        background:
            linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(238, 246, 255, .88));
        box-shadow: var(--shadow);
    }

    .page-head h2 {
        margin-bottom: 3px;
        font-size: 18px;
    }

    .page-head p {
        max-width: 760px;
        font-size: 12px;
    }

    .stats-grid {
        grid-template-columns: repeat(4, minmax(150px, 1fr));
        gap: 10px;
        margin-bottom: 12px;
    }

    .stat-card {
        min-height: 76px;
        gap: 10px;
        border-color: rgba(215, 226, 239, .86);
        border-radius: 12px;
        background: rgba(255, 255, 255, .93);
        padding: 11px 12px;
        box-shadow: var(--shadow);
    }

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-strong);
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: linear-gradient(135deg, #e8f3ff, #dcecff);
        color: #0b6fe8;
        font-size: 15px;
    }

    .stat-card span,
    .stat-card em {
        font-size: 10px;
    }

    .stat-card strong {
        margin-top: 1px;
        font-size: 21px;
        letter-spacing: 0;
    }

    .grid {
        gap: 12px;
    }

    .grid.two {
        grid-template-columns: minmax(300px, .95fr) minmax(360px, 1.05fr);
    }

    .panel {
        margin-bottom: 12px;
        padding: 13px;
        border: 1px solid rgba(215, 226, 239, .9);
        border-radius: 12px;
        background: rgba(255, 255, 255, .95);
        box-shadow: var(--shadow);
    }

    .panel-title {
        min-height: 31px;
        padding-bottom: 8px;
    }

    .panel-title h3 {
        margin: 0;
        font-size: 15px;
        line-height: 1.25;
    }

    .table-wrap {
        border: 1px solid #e2eaf4;
        border-radius: 10px;
        background: #fff;
    }

    table {
        border-collapse: separate;
        border-spacing: 0;
    }

    th,
    td {
        padding: 8px 9px;
        border-bottom-color: #e8eff7;
        font-size: 12px;
    }

    th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: #f5f8fc;
        color: #526176;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: .05em;
    }

    tbody tr:last-child td {
        border-bottom: 0;
    }

    table tbody tr:hover td {
        background: #f7fbff;
    }

    .badge {
        min-height: 22px;
        align-items: center;
        padding: 3px 8px;
        border-radius: 999px;
        font-size: 10px;
        font-weight: 900;
        border: 1px solid transparent;
    }

    .badge.primary {
        background: #e8f3ff;
        color: #0759bb;
        border-color: #c7ddfb;
    }

    .badge.success {
        background: #e8fbf4;
        color: #06714f;
        border-color: #bcebd7;
    }

    .badge.warning {
        background: #fff6de;
        color: #875300;
        border-color: #f1d187;
    }

    .badge.danger {
        background: #fff0f0;
        color: #a31d1d;
        border-color: #f3caca;
    }

    code,
    .token {
        border-color: #d7e5f4;
        border-radius: 7px;
        background: #eef7ff;
        color: #0759bb;
        font-size: 12px;
    }

    .token {
        display: inline-flex;
        align-items: center;
        min-height: 26px;
        font-weight: 900;
    }

    .mini-list {
        gap: 7px;
    }

    .mini-list > div:not(.empty),
    .recap-box {
        border-color: #e1eaf4;
        border-radius: 10px;
        background: #f8fbff;
        padding: 9px 10px;
    }

    .mini-list b {
        font-size: 13px;
    }

    .empty {
        padding: 20px 12px;
        color: #7a8799;
    }

    .toast {
        margin-bottom: 12px;
        border-radius: 10px;
        padding: 10px 12px;
        font-size: 13px;
        box-shadow: var(--shadow);
    }

    .filter-form,
    .review-note,
    .question-pick {
        border-color: #e0e9f3;
        border-radius: 10px;
        background: #f8fbff;
        padding: 10px;
    }

    .filter-form {
        gap: 8px;
        margin: 8px 0 12px;
    }

    .filter-actions {
        align-items: end;
    }

    .compact-list,
    .analysis-line {
        font-size: 11px;
    }

    .login-bg {
        background: #eef3f8;
    }

    .auth-wrap {
        grid-template-rows: 132px 1fr;
    }

    .auth-wrap:before {
        height: 132px;
        background: linear-gradient(100deg, #0d82c4 0%, #176da8 45%, #315d8d 100%);
        box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .16);
    }

    .auth-wrap:after {
        height: 132px;
        background: linear-gradient(120deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 56%);
        clip-path: polygon(0 0, 25% 0, 15% 100%, 0 76%);
    }

    .auth-hero {
        height: 132px;
        gap: 13px;
        padding: 20px clamp(22px, 4vw, 60px);
    }

    .auth-hero > div {
        min-width: 0;
    }

    .auth-hero .brand-mark.big {
        width: 58px;
        height: 74px;
    }

    .auth-hero h1 {
        max-width: 610px;
        font-size: 16px;
        line-height: 1.22;
        letter-spacing: 0;
        overflow-wrap: anywhere;
    }

    .auth-hero p {
        font-size: 12px;
        letter-spacing: 0;
        overflow-wrap: anywhere;
    }

    .auth-card {
        width: min(420px, calc(100% - 32px));
        margin-top: -22px;
        gap: 14px;
        border-radius: 12px;
        border-color: rgba(218, 228, 240, .95);
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 24px 60px rgba(26, 66, 112, .16);
        padding: 32px 38px;
    }

    .auth-card h2 {
        font-size: 22px;
        font-weight: 900;
    }

    .auth-card p {
        font-size: 13px;
    }

    .auth-card input {
        min-height: 38px;
        padding: 8px 0 9px;
        border-bottom-color: #d4deeb;
        background: transparent;
    }

    .auth-card .btn {
        min-height: 42px;
        margin-top: 2px;
        border-radius: 9px;
        font-size: 14px;
    }

    .auth-alt-link {
        font-size: 13px;
    }

    .tka-bg {
        background:
            linear-gradient(180deg, #dfeeff 0, #f5f8fc 240px),
            #f5f8fc;
    }

    .tka-top {
        height: 64px;
        padding: 0 20px;
        background: linear-gradient(90deg, #0b4ca5, #0e72df);
    }

    .tka-main {
        max-width: 820px;
        margin: 24px auto;
    }

    .tka-start-card,
    .session-card,
    .review-item,
    .review-columns div {
        border-color: #dfe8f3;
        border-radius: 12px;
        box-shadow: var(--shadow);
    }

    .tka-start-card {
        padding: 24px 28px;
    }

    .tka-start-card h1 {
        font-size: 26px;
    }

    .session-grid {
        gap: 12px;
    }

    .session-card {
        padding: 16px;
    }

    .session-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-strong);
    }

    .exam-body {
        background: #edf2f8;
    }

    .exam-layout {
        grid-template-columns: 246px 1fr;
        grid-template-rows: 64px 1fr 64px;
    }

    .exam-header {
        padding: 0 16px;
        background: linear-gradient(90deg, #0b4ca5, #0e72df);
    }

    .exam-header .side-brand b {
        font-size: 12px;
    }

    .exam-header .side-brand span {
        font-size: 10px;
    }

    .font-tools {
        gap: 6px;
    }

    .font-tools button,
    .timer,
    .autosave {
        border-radius: 9px;
        background: rgba(255, 255, 255, .13);
        border: 1px solid rgba(255, 255, 255, .22);
    }

    .font-tools button {
        min-width: 34px;
        padding: 7px 8px;
    }

    .timer,
    .autosave {
        padding: 7px 10px;
        font-size: 12px;
    }

    .number-panel {
        padding: 14px;
        background: #ffffff;
    }

    .number-panel h3 {
        margin-bottom: 10px;
        font-size: 15px;
    }

    .num-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
    }

    .num {
        height: 36px;
        border-radius: 9px;
        font-size: 12px;
    }

    .legend {
        margin-top: 14px;
        font-size: 11px;
    }

    .question-panel {
        padding: 16px;
    }

    .question-top,
    .stimulus,
    .question-media,
    .question-text,
    .answers,
    .doubt-check,
    .answer-card,
    .statement-row,
    .match-row,
    .finish-dialog {
        border-color: #dfe8f3;
        border-radius: 12px;
        box-shadow: var(--shadow);
    }

    .question-top {
        padding: 12px 14px;
        margin-bottom: 10px;
    }

    .question-top h2 {
        font-size: 19px;
    }

    .stimulus,
    .question-media,
    .question-text,
    .answers {
        margin-bottom: 10px;
        padding: 15px;
        line-height: 1.62;
        background: rgba(255, 255, 255, .96);
    }

    .answer-card {
        gap: 10px;
        padding: 11px 12px;
    }

    .answer-card:hover {
        transform: translateY(-1px);
    }

    .op-label {
        min-width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 12px;
    }

    .doubt-check {
        margin-bottom: 76px;
        padding: 10px 12px;
    }

    .exam-footer {
        gap: 8px;
        padding: 10px 16px;
        box-shadow: 0 -10px 28px rgba(15, 45, 86, .08);
    }

    .exam-footer .btn {
        min-width: 118px;
    }

    .finish-dialog {
        padding: 20px;
    }

    .finish-dialog h2 {
        font-size: 21px;
    }

    .finish-summary {
        gap: 8px;
    }

    .finish-summary div {
        border-radius: 10px;
        padding: 10px;
    }

    .finish-summary b {
        font-size: 22px;
    }

    @media (max-width: 1180px) {
        .stats-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .grid.two,
        .grid.three,
        .grid.four-report {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 900px) {
        body {
            font-size: 13px;
            overflow-x: hidden;
        }

        html,
        .login-bg,
        .auth-wrap {
            max-width: 100vw;
            overflow-x: hidden;
        }

        .main {
            padding: 12px;
        }

        .page-head,
        .panel,
        .stat-card {
            border-radius: 10px;
        }

        .stats-grid {
            grid-template-columns: 1fr;
        }

        .auth-wrap {
            grid-template-rows: 120px 1fr;
        }

        .auth-wrap:before,
        .auth-wrap:after,
        .auth-hero {
            height: 120px;
        }

        .auth-card {
            box-sizing: border-box;
            justify-self: start;
            width: calc(100vw - 24px) !important;
            max-width: calc(100vw - 24px) !important;
            margin-right: 12px;
            margin-left: 12px;
            margin-top: -22px;
            padding: 26px 22px;
        }

        .auth-card input,
        .auth-card .btn {
            box-sizing: border-box;
            width: 100%;
            max-width: 100%;
            min-width: 0;
        }

        .auth-hero {
            gap: 10px;
            padding: 18px 14px;
        }

        .auth-hero .brand-mark.big {
            width: 44px;
            height: 56px;
        }

        .auth-hero .brand-mark.big img {
            max-width: 44px;
            max-height: 56px;
        }

        .auth-hero h1 {
            max-width: calc(100vw - 92px);
            font-size: 12px;
            line-height: 1.18;
        }

        .auth-hero p {
            max-width: calc(100vw - 92px);
            font-size: 10px;
            line-height: 1.25;
        }

        .exam-layout {
            grid-template-columns: 1fr;
            grid-template-rows: auto auto 1fr auto;
        }

        .exam-header {
            gap: 8px;
            padding: 10px;
        }

        .num-grid {
            grid-template-columns: repeat(10, minmax(30px, 1fr));
        }

        .exam-footer .btn {
            min-width: 0;
        }
    }
}

/* Go template parity helpers.
   The visual values intentionally follow the Laravel reference stylesheet. */
@media screen {
    .page-head h1 {
        margin: 0 0 3px;
        font-size: 18px;
        line-height: 1.25;
        font-weight: 600;
    }

    .form-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 14px;
        align-content: start;
    }

    .form-grid > h2,
    .form-grid > h3 {
        grid-column: 1 / -1;
        margin: 0;
    }

    .form-actions {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        margin-top: 4px;
    }

    .span-2 {
        grid-column: 1 / -1;
    }

    .narrow {
        width: min(100%, 720px);
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .inline-upload {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .inline-upload input[type="file"] {
        width: min(250px, 32vw);
        min-height: 34px;
        padding: 5px 8px;
        font-size: 11px;
    }

    .row-actions {
        display: flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }

    .row-actions form {
        display: inline-flex;
    }

    .actions-column {
        width: 1%;
    }

    .checkbox-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 16px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: #f8fbff;
    }

    .checkbox {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .checkbox input {
        width: 17px;
        min-height: 17px;
        flex: 0 0 auto;
    }

    .options-editor,
    .question-picker,
    .school-picker {
        min-width: 0;
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 12px;
        background: #fbfdff;
    }

    .question-picker,
    .school-picker {
        max-height: 420px;
        overflow: auto;
    }

    .option-edit {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr) minmax(180px, .55fr) auto;
        gap: 8px;
        align-items: start;
        padding: 8px 0;
        border-bottom: 1px solid #e7eef7;
    }

    .option-edit > span,
    .option-key {
        width: 32px;
        height: 32px;
        display: grid;
        place-items: center;
        border-radius: 9px;
        background: #eef6ff;
        color: #135eb7;
        font-weight: 600;
    }

    .media-editor,
    .media-preview,
    .media-existing {
        display: grid;
        gap: 7px;
    }

    .media-preview img,
    .media-existing img {
        max-width: 320px;
        max-height: 220px;
        object-fit: contain;
        border-radius: 8px;
    }

    .question-choice {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
        padding: 9px;
        border-bottom: 1px solid #e7eef7;
        font-weight: 400;
    }

    .question-choice input {
        width: 17px;
        min-height: 17px;
        margin-top: 2px;
        flex: 0 0 auto;
    }

    .review-actions {
        display: grid;
        grid-template-columns: minmax(220px, 1fr) 150px auto;
        gap: 8px;
        align-items: end;
    }

    .badge-row {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .monitor-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .participant-card {
        padding: 13px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .participant-head,
    .section-heading {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }

    .participant-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--line);
    }

    .mini-input {
        width: 64px;
        min-height: 28px;
        padding: 5px 7px;
    }

    .status {
        display: inline-flex;
        padding: 4px 8px;
        border-radius: 999px;
        background: #eff4fb;
        color: #526070;
        font-size: 10px;
        font-weight: 600;
    }

    .status-mengerjakan {
        background: #e8f2ff;
        color: #145fbb;
    }

    .status-selesai {
        background: #e9fbf3;
        color: #0b7a50;
    }

    .status-keluar {
        background: #fff0ee;
        color: #b42318;
    }

    .timeline {
        display: grid;
        gap: 10px;
    }

    .timeline article {
        display: grid;
        grid-template-columns: 12px 1fr;
        gap: 9px;
    }

    .timeline article > span {
        width: 9px;
        height: 9px;
        margin-top: 5px;
        border-radius: 50%;
        background: var(--primary);
    }

    .timeline p {
        margin: 2px 0;
        color: var(--muted);
    }

    .cards-grid,
    .print-token-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .card-brand {
        color: var(--primary);
        font-size: 11px;
        font-weight: 600;
    }

    .compact-dl {
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 5px 10px;
    }

    .info-box,
    .warning-box {
        margin: 12px 0;
        padding: 11px 12px;
        border-radius: 10px;
    }

    .info-box {
        border: 1px solid #c7dff0;
        background: #eef6ff;
        color: #0f5cae;
    }

    .warning-box {
        border: 1px solid #f1dbac;
        background: #fff8e8;
        color: #704800;
    }

    .eyebrow {
        margin: 0 0 5px;
        color: var(--primary);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .08em;
        text-transform: uppercase;
    }
}

@media screen and (max-width: 900px) {
    .form-grid,
    .review-actions,
    .monitor-grid {
        grid-template-columns: 1fr;
    }

    .span-2,
    .form-actions {
        grid-column: 1;
    }

    .option-edit {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .option-edit .media-editor,
    .option-edit > label {
        grid-column: 2;
    }
}

/* Monitoring peserta */
.monitoring-page-head {
    align-items: end;
}

.monitoring-toolbar,
.monitoring-toolbar form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.monitoring-toolbar label {
    min-width: 170px;
    gap: 4px;
    color: var(--muted);
    font-size: 11px;
}

.monitoring-toolbar select {
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 9px;
    font-size: 12px;
}

.monitoring-report-panel {
    display: grid;
    grid-template-columns: minmax(210px, .7fr) minmax(560px, 2fr);
    align-items: end;
    gap: 18px;
}

.monitoring-report-panel h2 {
    margin: 0 0 5px;
    font-size: 17px;
}

.monitoring-report-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.monitoring-report-panel form {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: 9px;
}

.monitoring-report-panel label {
    min-width: 210px;
    flex: 1 1 230px;
    gap: 4px;
    color: var(--muted);
    font-size: 11px;
}

.monitoring-report-panel select {
    min-height: 38px;
    width: 100%;
    padding: 7px 10px;
    border-radius: 9px;
    font-size: 12px;
}

.monitoring-report-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
}

.monitor-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 620px), 1fr));
    gap: 14px;
}

.participant-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    overflow: hidden;
}

.participant-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.participant-identity > div {
    min-width: 0;
}

.participant-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eaf3ff;
    color: #0759bb;
    font-size: 15px;
    font-weight: 800;
}

.participant-identity h3 {
    margin: 6px 0 2px;
    color: #142942;
    font-size: 15px;
    line-height: 1.3;
}

.participant-identity p {
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participant-score {
    min-width: 72px;
    padding: 7px 10px;
    border: 1px solid #cfe0f4;
    border-radius: 10px;
    background: #f5f9ff;
    text-align: right;
}

.participant-score span {
    display: block;
    color: var(--muted);
    font-size: 10px;
}

.participant-score strong {
    display: block;
    margin-top: 2px;
    color: #0759bb;
    font-size: 18px;
}

.participant-metrics {
    display: grid;
    grid-template-columns: minmax(170px, 1.5fr) repeat(3, minmax(115px, 1fr));
    gap: 8px;
}

.participant-metrics > div {
    min-width: 0;
    padding: 10px;
    border: 1px solid #e0e9f3;
    border-radius: 10px;
    background: #f8fbff;
}

.participant-metrics span,
.participant-metrics small {
    display: block;
    color: var(--muted);
    font-size: 10px;
}

.participant-metrics b {
    display: block;
    margin: 4px 0 2px;
    overflow: hidden;
    color: #142942;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participant-metrics .remaining-time {
    color: #0759bb;
    font-variant-numeric: tabular-nums;
}

.participant-actions {
    display: flex;
    min-width: 0;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 0;
    padding-top: 12px;
}

.participant-time-form,
.participant-time-form label,
.participant-action-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.participant-time-form label {
    color: var(--muted);
    font-size: 10px;
}

.participant-time-form .mini-input {
    width: 58px;
}

.participant-time-form label span {
    color: var(--muted);
}

.participant-action-buttons {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.participant-action-buttons form {
    display: inline-flex;
}

.monitor-empty {
    grid-column: 1 / -1;
}

.monitoring-table-panel {
    padding: 0;
}

.monitoring-table {
    min-width: 1080px;
}

.monitoring-table th,
.monitoring-table td {
    vertical-align: middle;
}

.monitoring-table td {
    padding-top: 9px;
    padding-bottom: 9px;
}

.monitor-participant-cell b,
.monitor-session-cell b,
.monitor-participant-cell small,
.monitor-session-cell small,
.monitoring-table td > small {
    display: block;
}

.monitor-participant-cell b,
.monitor-session-cell b {
    color: #142942;
    font-size: 12px;
}

.monitor-participant-cell small,
.monitor-session-cell small,
.monitoring-table td > small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.monitor-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    white-space: nowrap;
}

.monitor-control {
    position: relative;
}

.monitor-control summary {
    list-style: none;
    cursor: pointer;
}

.monitor-control summary::-webkit-details-marker {
    display: none;
}

.monitor-control[open] summary {
    border-color: #86b8f4;
    background: #eaf4ff;
    color: #0759bb;
}

.monitor-control-body {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
    padding: 7px;
    border: 1px solid #dce6f1;
    border-radius: 9px;
    background: #f8fbff;
}

.monitor-control-body form,
.monitor-add-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.monitor-add-time .mini-input {
    width: 52px;
}

.status-belum_login {
    background: #f1f4f8;
    color: #526176;
}

.status-login {
    background: #fff7dc;
    color: #8a5a00;
}

.results-progress-table {
    min-width: 1320px;
}

.results-progress-table td {
    vertical-align: middle;
}

.result-progress {
    min-width: 130px;
}

.result-progress > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 10px;
}

.result-progress > div span {
    color: var(--muted);
}

.result-progress progress {
    width: 100%;
    height: 7px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #e8eef6;
}

.result-progress progress::-webkit-progress-bar {
    border-radius: 999px;
    background: #e8eef6;
}

.result-progress progress::-webkit-progress-value {
    border-radius: 999px;
    background: #0b6fe8;
}

.result-progress progress::-moz-progress-bar {
    border-radius: 999px;
    background: #0b6fe8;
}

.result-counts {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.result-counts b {
    padding: 3px 5px;
    border-radius: 6px;
    background: #f1f4f8;
    color: #526176;
    font-size: 10px;
}

.result-counts .correct {
    background: #e9fbf3;
    color: #0b7a50;
}

.result-counts .wrong {
    background: #fff0ee;
    color: #b42318;
}

.result-times small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}

.result-times small + small {
    margin-top: 3px;
}

@media screen and (max-width: 1500px) {
    .monitoring-page-head {
        align-items: stretch;
        flex-direction: column;
    }

    .monitoring-toolbar,
    .monitoring-toolbar form {
        justify-content: flex-start;
    }
}

@media screen and (max-width: 1180px) {
    .monitoring-report-panel {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .monitoring-report-panel form {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .participant-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .participant-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .participant-action-buttons {
        justify-content: flex-start;
    }
}

@media screen and (max-width: 700px) {
    .monitoring-page-head,
    .monitoring-toolbar,
    .monitoring-toolbar form,
    .participant-time-form {
        align-items: stretch;
    }

    .monitoring-toolbar,
    .monitoring-toolbar form,
    .participant-time-form,
    .monitoring-report-panel form,
    .monitoring-report-actions {
        width: 100%;
        flex-direction: column;
    }

    .monitoring-toolbar label,
    .monitoring-report-panel label {
        min-width: 0;
        width: 100%;
    }

    .monitoring-report-actions .btn {
        width: 100%;
    }

    .participant-metrics {
        grid-template-columns: 1fr;
    }

    .participant-time-form label {
        justify-content: space-between;
    }
}

@media screen and (max-width: 700px) {
    .cards-grid,
    .print-token-grid {
        grid-template-columns: 1fr;
    }
}

/* KTP-size participant login cards: 85.6 × 54 mm, eight cards per A4 page. */
.credential-card-sheet {
    display: grid;
    grid-template-columns: repeat(2, 85.6mm);
    justify-content: center;
    align-items: start;
    gap: 5mm 7mm;
    padding: 10mm;
}

.credential-card {
    box-sizing: border-box;
    width: 85.6mm;
    min-width: 85.6mm;
    max-width: 85.6mm;
    height: 54mm;
    min-height: 54mm;
    max-height: 54mm;
    padding: 3.5mm 4mm;
    overflow: hidden;
    border: .3mm solid #183b66;
    border-radius: 3mm;
    background: #fff;
    color: #10253f;
    box-shadow: 0 2mm 5mm rgba(15, 45, 82, .08);
    break-inside: avoid;
    page-break-inside: avoid;
    font-family: Arial, Helvetica, sans-serif;
}

.credential-card .credential-card-brand {
    display: grid;
    grid-template-columns: 9mm minmax(0, 1fr);
    gap: 2.2mm;
    align-items: center;
    min-height: 9.5mm;
    margin: 0 0 2mm;
    padding: 0 0 1.6mm;
    border-bottom: .25mm solid #a9b8c9;
}

.credential-card .credential-card-brand .brand-mark {
    width: 8mm;
    height: 9mm;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.credential-card .credential-card-brand .brand-mark img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
}

.credential-card .credential-card-brand small,
.credential-card .credential-card-brand b,
.credential-card .credential-card-brand span {
    display: block;
    min-width: 0;
    margin: 0;
}

.credential-card .credential-card-brand small {
    color: #175ba7;
    font-size: 5.5pt;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .08em;
}

.credential-card .credential-card-brand b {
    margin-top: .5mm;
    overflow: hidden;
    color: #10253f;
    font-size: 7.2pt;
    font-weight: 700 !important;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.credential-card .credential-card-brand span {
    margin-top: .5mm;
    overflow: hidden;
    color: #52657b;
    font-size: 5.5pt;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.credential-card .credential-card-data {
    display: grid;
    grid-template-columns: 19mm minmax(0, 1fr);
    column-gap: 1.5mm;
    row-gap: .7mm;
    margin: 0;
}

.credential-card .credential-card-data dt,
.credential-card .credential-card-data dd {
    min-width: 0;
    margin: 0;
    font-size: 6.7pt;
    line-height: 1.18;
}

.credential-card .credential-card-data dt {
    color: #52657b;
}

.credential-card .credential-card-data dt::after {
    content: " :";
    float: right;
}

.credential-card .credential-card-data dd {
    overflow: hidden;
    color: #10253f;
    font-weight: 600 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.credential-card .credential-card-data .credential-code {
    color: #084f9d;
    font-family: Consolas, "Courier New", monospace;
    font-size: 7.3pt;
    font-weight: 700 !important;
    letter-spacing: .025em;
}

@media (max-width: 820px) {
    .credential-card-sheet {
        grid-template-columns: 85.6mm;
        justify-content: start;
        overflow-x: auto;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    .credential-card-sheet {
        grid-template-columns: repeat(2, 85.6mm) !important;
        gap: 5mm 7mm;
        width: 178.2mm;
        margin: 0 auto;
        padding: 0;
    }

    .credential-card {
        width: 85.6mm !important;
        min-width: 85.6mm !important;
        max-width: 85.6mm !important;
        height: 54mm !important;
        min-height: 54mm !important;
        max-height: 54mm !important;
        border-color: #183b66;
        box-shadow: none;
    }
}

/* Formal Grobogan attendance sheet and examination minutes */
.formal-sheet {
    width: min(210mm, calc(100% - 32px));
    max-width: 980px;
    margin: 18px auto 40px;
    padding: 16mm 15mm 18mm;
    background: #fff;
    color: #111;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    line-height: 1.4;
}

.formal-letterhead {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) 78px;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 3px double #111;
}

.formal-logo {
    display: grid;
    place-items: center;
}

.formal-logo img {
    display: block;
    width: 66px;
    height: 76px;
    object-fit: contain;
}

.formal-letterhead-text {
    text-align: center;
}

.formal-letterhead-text span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

.formal-letterhead-text h1 {
    margin: 1px 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: .04em;
}

.formal-letterhead-text p {
    margin: 0;
    font-size: 10px;
    font-weight: 600;
}

.formal-document-title {
    margin: 16px 0 13px;
    text-align: center;
}

.formal-document-title h2 {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.25;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.formal-document-title p {
    margin: 3px 0 0;
    font-size: 11px;
    font-weight: 600;
}

.formal-meta-table,
.formal-detail-table {
    width: 100%;
    margin: 0 0 13px;
    border-collapse: collapse;
}

.formal-meta-table th,
.formal-meta-table td,
.formal-detail-table th,
.formal-detail-table td {
    padding: 2px 3px;
    border: 0;
    vertical-align: top;
    font-size: 10px;
}

.formal-meta-table th {
    width: 14%;
    text-align: left;
    white-space: nowrap;
}

.formal-meta-table td:nth-child(2),
.formal-meta-table td:nth-child(5),
.formal-detail-table td:nth-child(2) {
    width: 8px;
    text-align: center;
}

.formal-meta-table td:nth-child(3),
.formal-meta-table td:nth-child(6),
.formal-detail-table td:nth-child(3) {
    border-bottom: 1px solid #555;
}

.formal-attendance-table {
    table-layout: fixed;
    margin-top: 8px;
}

.formal-attendance-table th,
.formal-attendance-table td {
    padding: 5px 6px;
    border: 1px solid #333;
    font-size: 9.5px;
}

.formal-attendance-table th {
    background: #fff;
    color: #111;
    text-align: center;
    text-transform: none;
}

.formal-attendance-table th:nth-child(1) { width: 5%; }
.formal-attendance-table th:nth-child(2) { width: 16%; }
.formal-attendance-table th:nth-child(3) { width: 27%; }
.formal-attendance-table th:nth-last-child(3) { width: 13%; }
.formal-attendance-table th:nth-last-child(2) { width: 21%; }
.formal-attendance-table th:nth-last-child(1) { width: 18%; }

.formal-attendance-table td small {
    display: block;
    margin-top: 1px;
    font-size: 8px;
}

.participant-signature {
    height: 28px;
}

.participant-signature span {
    display: block;
    width: 48%;
}

.participant-signature.signature-even span {
    margin-left: auto;
}

.formal-attendance-summary {
    width: 310px;
    max-width: 52%;
    margin-top: 10px;
}

.formal-attendance-summary table {
    width: 100%;
    border-collapse: collapse;
}

.formal-attendance-summary th,
.formal-attendance-summary td {
    padding: 2px 3px;
    border: 1px solid #555;
    font-size: 9px;
    text-align: left;
}

.formal-attendance-summary td:nth-child(2) {
    width: 8px;
    text-align: center;
}

.formal-opening,
.formal-closing {
    margin: 10px 0 12px;
    font-size: 11px;
    line-height: 1.65;
    text-align: justify;
}

.formal-numbered-section {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 4px;
    margin: 8px 0 12px;
}

.formal-section-number {
    font-size: 11px;
}

.formal-detail-table {
    margin: 0;
}

.formal-detail-table th {
    width: 215px;
    text-align: left;
    font-weight: 400;
}

.formal-notes-section h3 {
    margin: 0 0 5px;
    font-size: 11px;
    font-weight: 400;
}

.formal-notes-box {
    min-height: 100px;
    padding: 9px 11px;
    border: 1px solid #333;
}

.formal-notes-box p {
    margin: 0 0 6px;
    font-size: 10px;
}

.formal-notes-box > span {
    color: #475569;
    font-size: 10px;
}

.formal-signatures {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 70px;
    margin-top: 24px;
    break-inside: avoid;
}

.formal-signature-block {
    min-width: 0;
    text-align: center;
}

.formal-signature-block p {
    min-height: 16px;
    margin: 0;
    font-size: 10px;
    line-height: 1.45;
}

.formal-signature-space {
    display: block;
    height: 58px;
}

.formal-signature-block strong {
    display: inline-block;
    min-width: 170px;
    padding: 0 5px 2px;
    border-bottom: 1px solid #111;
    font-size: 10px;
}

@media (max-width: 760px) {
    .formal-sheet {
        width: calc(100% - 16px);
        margin: 8px auto 24px;
        padding: 22px 18px 30px;
        overflow-x: auto;
    }

    .formal-letterhead {
        grid-template-columns: 58px minmax(0, 1fr) 58px;
        gap: 7px;
    }

    .formal-logo img {
        width: 52px;
        height: 62px;
    }

    .formal-letterhead-text span {
        font-size: 9px;
    }

    .formal-letterhead-text h1 {
        font-size: 15px;
    }

    .formal-letterhead-text p,
    .formal-meta-table th,
    .formal-meta-table td {
        font-size: 8px;
    }

    .formal-signatures {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .formal-signature-block strong {
        min-width: 120px;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    .formal-sheet {
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .formal-attendance-table th,
    .formal-attendance-table td {
        font-size: 8.5pt;
    }

    .formal-signatures {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Pusat laporan evaluasi */
.report-page-head {
    align-items: center;
}

.report-export-menu {
    position: relative;
}

.report-export-menu summary {
    list-style: none;
    cursor: pointer;
}

.report-export-menu summary::-webkit-details-marker {
    display: none;
}

.report-export-menu > div {
    position: absolute;
    z-index: 40;
    top: calc(100% + 7px);
    right: 0;
    width: 245px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(31, 64, 113, .18);
}

.report-export-menu a {
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--text);
    font-size: 12px;
    font-weight: 650;
}

.report-export-menu a:hover {
    background: #eef5ff;
    color: var(--primary);
}

.report-filter-panel .section-heading {
    margin-bottom: 6px;
}

.report-filter-panel .filter-form {
    margin-bottom: 0;
}

.report-section-nav {
    position: sticky;
    z-index: 16;
    top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 14px;
    padding: 6px;
    border: 1px solid rgba(198, 214, 232, .9);
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 24px rgba(31, 64, 113, .08);
    backdrop-filter: blur(10px);
}

.report-section-nav a {
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.report-section-nav a:hover {
    background: #eaf3ff;
    color: var(--primary);
}

.report-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.report-kpi-grid article {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #d9e6f3;
    border-radius: 14px;
    background: linear-gradient(155deg, #fff, #f5f9fe);
    box-shadow: 0 8px 22px rgba(31, 64, 113, .06);
}

.report-kpi-grid span,
.report-kpi-grid em {
    color: var(--muted);
    font-size: 10px;
    font-style: normal;
}

.report-kpi-grid b {
    overflow: hidden;
    color: #12345a;
    font-size: 23px;
    line-height: 1.05;
    text-overflow: ellipsis;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

.recommendation-grid article {
    padding: 12px 13px;
    border: 1px solid #d9e6f3;
    border-left-width: 4px;
    border-radius: 10px;
    background: #f8fbff;
}

.recommendation-grid article b {
    color: #173a62;
    font-size: 13px;
}

.recommendation-grid article p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.recommendation-grid .recommendation-danger {
    border-left-color: #d92d20;
    background: #fff5f4;
}

.recommendation-grid .recommendation-warning {
    border-left-color: #dc8b08;
    background: #fffbeb;
}

.recommendation-grid .recommendation-success {
    border-left-color: #079455;
    background: #f0fdf4;
}

.recommendation-grid .recommendation-neutral {
    border-left-color: #667085;
}

.report-analysis-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.score-distribution,
.report-aggregate-card {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfdff;
}

.score-distribution {
    grid-column: span 2;
}

.score-distribution h3,
.report-aggregate-card h3 {
    margin: 0 0 10px;
    color: #173a62;
    font-size: 13px;
}

.distribution-row {
    display: grid;
    grid-template-columns: 58px minmax(90px, 1fr) 30px 42px;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    font-size: 11px;
}

.distribution-row progress {
    width: 100%;
    height: 8px;
    appearance: none;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #e5edf6;
}

.distribution-row progress::-webkit-progress-bar {
    border-radius: inherit;
    background: #e5edf6;
}

.distribution-row progress::-webkit-progress-value {
    border-radius: inherit;
    background: linear-gradient(90deg, #1677ff, #56a4ff);
}

.distribution-row progress::-moz-progress-bar {
    border-radius: inherit;
    background: linear-gradient(90deg, #1677ff, #56a4ff);
}

.distribution-row em {
    color: var(--muted);
    font-size: 10px;
    font-style: normal;
    text-align: right;
}

.report-analysis-grid .mini-list {
    max-height: 270px;
    overflow: auto;
}

.report-analysis-grid .mini-list > div {
    grid-template-columns: minmax(0, 1fr) auto;
}

.report-analysis-grid .mini-list em {
    grid-column: 1 / -1;
}

.report-ranking-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(360px, .8fr);
    gap: 14px;
}

.report-ranking-grid td small,
.item-analysis-table td small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.report-ranking-grid td strong {
    color: #0759bb;
}

.item-analysis-table {
    min-width: 1380px;
}

.item-analysis-table th:nth-child(3) {
    min-width: 280px;
}

.item-analysis-table th:nth-child(8) {
    min-width: 180px;
}

.item-analysis-table th:nth-child(9) {
    min-width: 190px;
}

.item-analysis-table td {
    vertical-align: top;
    font-size: 11px;
    line-height: 1.45;
}

@media screen and (max-width: 1380px) {
    .report-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .report-analysis-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 960px) {
    .report-ranking-grid,
    .report-analysis-grid {
        grid-template-columns: 1fr;
    }

    .score-distribution {
        grid-column: auto;
    }
}

@media screen and (max-width: 700px) {
    .report-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-export-menu,
    .report-export-menu summary {
        width: 100%;
    }

    .report-export-menu > div {
        right: auto;
        left: 0;
        width: min(100%, 280px);
    }

    .report-section-nav {
        position: static;
        width: 100%;
    }
}

/* Formal printable attendance and minutes documents */
.report-document {
    color: #111827;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.45;
}

.report-document .print-head {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 28px;
    background: #fff;
    border-bottom-color: #cbd5e1;
}

.report-document .print-head h1 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.report-document .print-head p {
    margin: 2px 0 0;
    font-size: 11px;
    color: #475569;
}

.print-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-document .print-actions .btn {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 11px;
}

.report-document .print-document {
    max-width: 1080px;
    padding: 22px 28px 42px;
}

.report-document .doc-title {
    margin-bottom: 14px;
}

.report-document .doc-title h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: .06em;
}

.report-document .doc-title p {
    margin-top: 4px;
    color: #334155;
    font-size: 11px;
}

.school-identity {
    margin: 0 0 12px;
    padding: 9px 10px;
    border-top: 1px solid #64748b;
    border-bottom: 1px solid #64748b;
}

.school-identity h3 {
    margin: 0 0 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    text-align: center;
    text-transform: uppercase;
}

.school-identity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.school-identity-grid div,
.school-identity p {
    display: flex;
    gap: 6px;
    margin: 0;
    min-width: 0;
}

.school-identity span {
    color: #475569;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.school-identity b,
.school-identity p {
    font-size: 11px;
}

.school-identity p {
    margin-top: 5px;
}

.report-document .doc-meta,
.report-document .doc-summary {
    gap: 6px;
    margin: 12px 0;
}

.report-document .doc-meta div,
.report-document .doc-summary div {
    padding: 7px 8px;
    border-color: #cbd5e1;
    border-radius: 3px;
}

.report-document .doc-meta span,
.report-document .doc-summary span {
    color: #475569;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.report-document .doc-meta b,
.report-document .doc-summary b {
    margin-top: 2px;
    font-size: 11px;
}

.report-document .doc-paragraph {
    margin: 12px 0;
    font-size: 11px;
    line-height: 1.6;
    text-align: justify;
}

.report-document h3 {
    margin: 12px 0 5px;
    font-size: 11px;
}

.report-document .print-table {
    margin-top: 7px;
}

.report-document .print-table th,
.report-document .print-table td {
    padding: 6px;
    border-color: #94a3b8;
    font-size: 10px;
}

.report-document .print-table th {
    background: #f1f5f9;
    font-size: 9px;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.report-document .signature-cell {
    height: 32px;
}

.report-document .doc-signatures {
    gap: 20px;
    margin-top: 34px;
}

.report-document .signature-block > span {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
}

.report-document .signature-space {
    display: block;
    height: 48px;
}

.report-document .signature-block b {
    display: block;
    min-height: 18px;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.report-document .signature-block small {
    display: block;
    margin-top: 5px;
    color: #475569;
    font-size: 9px;
}

.report-document .incident-lines {
    gap: 12px;
    margin: 8px 0 18px;
}

.report-document .incident-lines span {
    padding-bottom: 6px;
}

@media (max-width: 760px) {
    .report-document .print-head {
        align-items: flex-start;
        gap: 12px;
        padding: 12px 16px;
    }

    .report-document .print-document {
        padding: 18px 16px 32px;
    }

    .report-document .doc-meta,
    .report-document .doc-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-document .doc-signatures,
    .report-document .doc-signatures.three {
        grid-template-columns: 1fr;
    }
}

@media print {
    .report-document {
        font-size: 10pt;
    }

    .report-document .print-document {
        padding: 0;
    }

    .report-document .doc-signatures {
        break-inside: avoid;
    }
}

/* Reference-style UI match pass */
@media screen {
    body:not(.login-bg):not(.exam-body):not(.tka-bg) {
        background: #f6faff;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .app-shell {
        min-height: 100vh;
        background: #f7fbff;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .sidebar {
        width: 260px;
        min-width: 260px;
        gap: 0;
        padding: 0 12px 16px;
        background: linear-gradient(180deg, #052a57 0%, #063d7c 42%, #052b58 100%);
        color: #fff;
        box-shadow: none;
        border-right: 1px solid #dbe5f0;
        scrollbar-width: thin;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .side-brand {
        min-height: 68px;
        gap: 12px;
        padding: 14px 4px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, .16);
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .side-brand .brand-mark {
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, .92);
        border-radius: 10px;
        padding: 4px;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .side-brand b {
        color: #fff;
        font-size: 13px;
        line-height: 1.15;
        font-weight: 900;
        text-transform: uppercase;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .side-brand span {
        color: rgba(255, 255, 255, .88);
        font-size: 11px;
        line-height: 1.2;
        font-weight: 700;
        text-transform: uppercase;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .sidebar nav {
        gap: 5px;
        padding: 14px 0;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .sidebar nav a {
        min-height: 38px;
        gap: 12px;
        padding: 0 12px;
        border-radius: 7px;
        border: 0;
        color: rgba(255, 255, 255, .94);
        font-size: 12px;
        font-weight: 800;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .sidebar nav a span {
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
        background: transparent;
        color: currentColor;
        font-size: 15px;
        box-shadow: none;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .sidebar nav a:hover,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .sidebar nav a.active {
        background: #0b78f0;
        color: #fff;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .sidebar nav a.active span {
        background: transparent;
        color: #fff;
        box-shadow: none;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .side-account {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: auto;
        padding: 14px 4px 0;
        border-top: 1px solid rgba(255, 255, 255, .16);
    }

    .avatar {
        width: 38px;
        height: 38px;
        border-radius: 999px;
        display: grid;
        place-items: center;
        background: #e7eef8;
        color: #0d2746;
        font-size: 16px;
        font-weight: 900;
    }

    .avatar.small {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .side-account b,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .side-account span {
        display: block;
        text-transform: none;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .side-account b {
        font-size: 13px;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .side-account span {
        font-size: 11px;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .main {
        min-width: 0;
        padding: 0 0 24px;
        background: #f7fbff;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .topbar {
        height: 56px;
        min-height: 56px;
        margin: 0;
        padding: 0 24px;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 18px;
        background: #fff;
        border-bottom: 1px solid #dde6f1;
        box-shadow: 0 2px 12px rgba(15, 35, 60, .04);
    }

    .topbar-left,
    .topbar-date,
    .topbar-right {
        display: flex;
        align-items: center;
        min-width: 0;
    }

    .topbar-left {
        gap: 22px;
        color: #485a72;
        font-size: 12px;
        font-weight: 700;
    }

    .topbar-date {
        gap: 8px;
        color: #2c3b51;
        font-size: 12px;
        font-weight: 800;
    }

    .topbar-date-icon {
        color: #071c36;
        font-size: 15px;
    }

    .topbar-right {
        justify-content: flex-end;
        gap: 12px;
    }

    .icon-button {
        position: relative;
        width: 34px;
        height: 34px;
        border: 0;
        border-radius: 9px;
        display: inline-grid;
        place-items: center;
        background: transparent;
        color: #071c36;
        font-weight: 900;
        cursor: pointer;
    }

    .icon-button:hover {
        background: #f1f6fd;
    }

    .menu-button {
        font-size: 17px;
    }

    .has-badge span {
        position: absolute;
        top: 2px;
        right: 1px;
        min-width: 16px;
        height: 16px;
        border-radius: 999px;
        display: grid;
        place-items: center;
        background: #1677ff;
        color: #fff;
        font-size: 10px;
        line-height: 1;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .userbox {
        gap: 9px;
        padding: 0 0 0 12px;
        border: 0;
        border-left: 1px solid #dce5f0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .userbox b {
        color: #061832;
        font-size: 12px;
        font-weight: 900;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .userbox span {
        color: #5d6d84;
        font-size: 11px;
    }

    .logout-button {
        width: 28px;
        color: #5d6d84;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .content-title {
        padding: 14px 22px 9px;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 18px;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .content-title h1 {
        margin: 0 0 3px;
        color: #071c36;
        font-size: 24px;
        line-height: 1.15;
        font-weight: 900;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .content-title p {
        margin: 0;
        color: #66758b;
        font-size: 12px;
        font-weight: 600;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .content-title .crumb {
        display: none;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .stats-grid,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .dashboard-main-grid,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .quick-actions-panel,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .main > .grid,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .main > .panel,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .main > .page-head,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .toast {
        margin-left: 22px;
        margin-right: 22px;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .stats-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 16px;
        margin-bottom: 18px;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .stat-card {
        min-height: 110px;
        display: grid;
        grid-template-columns: 54px 1fr;
        align-items: start;
        gap: 14px;
        padding: 17px 16px 13px;
        border: 1px solid #dbe5f0;
        border-radius: 9px;
        background: #fff;
        box-shadow: 0 4px 14px rgba(15, 35, 60, .05);
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .stat-card:hover {
        transform: none;
        box-shadow: 0 6px 18px rgba(15, 35, 60, .08);
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .stat-icon {
        width: 48px;
        height: 48px;
        border-radius: 9px;
        color: #fff;
        font-size: 23px;
    }

    .metric-school .stat-icon { background: linear-gradient(135deg, #2789ff, #075be1); }
    .metric-students .stat-icon { background: linear-gradient(135deg, #24c88f, #07996d); }
    .metric-sessions .stat-icon { background: linear-gradient(135deg, #8367e8, #5844c9); }
    .metric-packages .stat-icon { background: linear-gradient(135deg, #ffb21c, #f08a00); }
    .metric-score .stat-icon { background: linear-gradient(135deg, #16b8a9, #07998a); }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .stat-card span,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .stat-card em {
        display: block;
        color: #65748b;
        font-size: 11px;
        line-height: 1.2;
        font-style: normal;
        font-weight: 650;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .stat-card strong {
        display: block;
        margin-top: 3px;
        color: #0b1f3a;
        font-size: 27px;
        line-height: 1;
        font-weight: 950;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .stat-card a {
        display: block;
        margin-top: 18px;
        padding-top: 10px;
        border-top: 1px solid #e6edf5;
        color: #0b6fe8;
        font-size: 11px;
        font-weight: 850;
    }

    .dashboard-main-grid {
        display: grid;
        grid-template-columns: minmax(620px, 1fr) 405px;
        gap: 16px;
        margin-bottom: 18px;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .panel {
        border: 1px solid #dbe5f0;
        border-radius: 9px;
        background: #fff;
        box-shadow: 0 4px 14px rgba(15, 35, 60, .05);
        padding: 16px;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .panel-title {
        min-height: 28px;
        padding-bottom: 10px;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .panel-title h3 {
        color: #0b1f3a;
        font-size: 14px;
        font-weight: 900;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .table-wrap {
        border: 1px solid #dfe7f1;
        border-radius: 7px;
        box-shadow: none;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) th {
        height: 32px;
        background: #f5f8fc;
        color: #33445c;
        font-size: 10px;
        font-weight: 900;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) td {
        height: 38px;
        color: #1d2d44;
        font-size: 12px;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .bar-track {
        height: 7px;
        min-width: 70px;
        border: 0;
        background: #edf2f7;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .bar-track span {
        background: #14b87a;
    }

    .panel-link {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        margin-top: 12px;
        color: #0b6fe8;
        font-size: 12px;
        font-weight: 850;
    }

    .donut-wrap {
        min-height: 215px;
        display: grid;
        grid-template-columns: 185px 1fr;
        align-items: center;
        gap: 12px;
    }

    .donut-chart {
        width: 155px;
        height: 155px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: conic-gradient(#10b981 0 32%, #1f73f2 32% 59%, #f59e0b 59% 76%, #b8c2cc 76% 100%);
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .03);
    }

    .donut-chart > div {
        width: 78px;
        height: 78px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        align-content: center;
        background: #fff;
        text-align: center;
    }

    .donut-chart b {
        color: #0b1f3a;
        font-size: 18px;
        line-height: 1;
    }

    .donut-chart span {
        margin-top: 4px;
        color: #63728a;
        font-size: 10px;
        font-weight: 750;
    }

    .donut-legend {
        display: grid;
        gap: 13px;
    }

    .donut-legend div {
        display: grid;
        grid-template-columns: 10px 1fr auto;
        align-items: center;
        gap: 8px;
        color: #314158;
        font-size: 11px;
        font-weight: 700;
    }

    .donut-legend i {
        width: 8px;
        height: 8px;
        border-radius: 999px;
    }

    .donut-legend .green { background: #10b981; }
    .donut-legend .blue { background: #1f73f2; }
    .donut-legend .amber { background: #f59e0b; }
    .donut-legend .gray { background: #b8c2cc; }

    .donut-legend b {
        color: #43536b;
        font-weight: 800;
    }

    .quick-actions-panel {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
        margin-bottom: 18px;
        border: 1px solid #dbe5f0;
        border-radius: 9px;
        background: #fff;
        box-shadow: 0 4px 14px rgba(15, 35, 60, .05);
    }

    .quick-actions-panel a {
        min-height: 68px;
        display: grid;
        grid-template-columns: 36px 1fr;
        column-gap: 10px;
        align-items: center;
        padding: 12px 16px;
        border-right: 1px solid #e6edf5;
    }

    .quick-actions-panel a:last-child {
        border-right: 0;
    }

    .quick-actions-panel span {
        width: 30px;
        height: 30px;
        border: 1px solid #dce7f4;
        border-radius: 7px;
        display: grid;
        place-items: center;
        color: #0b6fe8;
        font-size: 16px;
        font-weight: 900;
    }

    .quick-actions-panel b,
    .quick-actions-panel em {
        display: block;
        font-style: normal;
    }

    .quick-actions-panel b {
        color: #0b1f3a;
        font-size: 12px;
        font-weight: 900;
    }

    .quick-actions-panel em {
        margin-top: 2px;
        color: #65748b;
        font-size: 10px;
        font-weight: 650;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .grid.three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .mini-list > div:not(.empty) {
        border: 1px solid #dfe7f1;
        border-radius: 7px;
        background: #f8fbff;
        padding: 11px 12px;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .footer {
        margin: 22px;
        color: #7a879b;
    }

    /* Compact staff polish: square logos, lighter typography, and chart summaries. */
    .brand-mark,
    .brand-mark.big,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .side-brand .brand-mark,
    .auth-hero .brand-mark.big {
        aspect-ratio: 1 / 1 !important;
        width: 44px !important;
        height: 44px !important;
        padding: 3px !important;
        border-radius: 9px !important;
        overflow: hidden;
    }

    .auth-hero .brand-mark.big {
        width: 54px !important;
        height: 54px !important;
    }

    .brand-mark img,
    .brand-mark.big img,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .side-brand .brand-mark img,
    .auth-hero .brand-mark.big img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .side-brand b,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .content-title h1 {
        font-weight: 800;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .sidebar nav a,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .topbar-left,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .topbar-date,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .userbox b,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .side-account b,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) label,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .btn,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .panel-title h3,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) th,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) td b,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .stat-card a,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .quick-actions-panel b,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .panel-link {
        font-weight: 700;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .side-brand span,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .content-title p,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .stat-card span,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .stat-card em,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .quick-actions-panel em,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .donut-legend div {
        font-weight: 500;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .stat-card strong,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .donut-chart b {
        font-weight: 800;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .page-head h2,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) .panel h3 {
        font-weight: 600;
    }

    .login-card dd,
    .login-card b,
    .brand-row b {
        font-weight: 600;
    }

    .login-card dt,
    .brand-row span {
        font-weight: 400;
    }

    body:not(.login-bg):not(.exam-body):not(.tka-bg) .main > .page-head {
        margin-top: 16px;
    }

    .summary-chart {
        min-height: 250px;
        display: grid;
        grid-template-columns: 150px 1fr;
        gap: 20px;
        align-items: center;
        padding: 4px 0;
    }

    .summary-meter {
        width: 136px;
        height: 136px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background:
            conic-gradient(#0b6fe8 0 var(--sd), #14b87a var(--sd) calc(var(--sd) + var(--smp)), #e7eef7 0);
        box-shadow: inset 0 0 0 1px rgba(13, 40, 75, .04);
    }

    .summary-meter > div {
        width: 78px;
        height: 78px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        align-content: center;
        background: #fff;
        text-align: center;
    }

    .summary-meter b {
        color: #0b1f3a;
        font-size: 23px;
        line-height: 1;
        font-weight: 800;
    }

    .summary-meter span {
        margin-top: 4px;
        color: #66758b;
        font-size: 10px;
    }

    .chart-bars {
        display: grid;
        gap: 12px;
    }

    .chart-row {
        display: grid;
        grid-template-columns: 42px 1fr 34px;
        align-items: center;
        gap: 10px;
        color: #314158;
        font-size: 12px;
    }

    .chart-row > div {
        height: 10px;
        overflow: hidden;
        border-radius: 999px;
        background: #edf3fb;
    }

    .chart-row i {
        display: block;
        height: 100%;
        min-width: 4px;
        border-radius: inherit;
    }

    .chart-row .sd { background: #0b6fe8; }
    .chart-row .smp { background: #14b87a; }

    .chart-row b {
        color: #0b1f3a;
        text-align: right;
        font-weight: 700;
    }

    .summary-kpis {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .summary-kpis div {
        position: relative;
        overflow: hidden;
        border: 1px solid #dfe7f1;
        border-radius: 8px;
        padding: 11px 12px 14px;
        background: #f8fbff;
    }

    .summary-kpis span,
    .summary-kpis b {
        position: relative;
        z-index: 1;
        display: block;
    }

    .summary-kpis span {
        color: #66758b;
        font-size: 11px;
    }

    .summary-kpis b {
        margin-top: 2px;
        color: #0b1f3a;
        font-size: 20px;
        font-weight: 800;
    }

    .summary-kpis i {
        position: absolute;
        left: 0;
        bottom: 0;
        height: 3px;
        background: linear-gradient(90deg, #0b6fe8, #14b87a);
    }

    .login-bg {
        background: #f7fbff;
    }

    .auth-wrap {
        min-height: 100vh;
        grid-template-rows: 88px 1fr !important;
        background: linear-gradient(180deg, #fff 0, #f7fbff 260px, #f2f7fc 100%);
    }

    .auth-wrap:before {
        height: 88px !important;
        background: linear-gradient(105deg, #0057b8 0%, #0067ce 46%, #0753a7 100%) !important;
    }

    .auth-wrap:after {
        height: 88px !important;
        clip-path: polygon(0 0, 78% 0, 68% 100%, 0 100%) !important;
        background: linear-gradient(110deg, rgba(0, 36, 94, .16), rgba(255, 255, 255, .08)) !important;
    }

    .auth-hero {
        height: 88px !important;
        padding: 14px clamp(18px, 5vw, 80px) !important;
        gap: 14px;
    }

    .auth-hero .brand-mark.big {
        width: 54px !important;
        height: 54px !important;
        padding: 3px;
        border-radius: 10px;
        background: rgba(255, 255, 255, .92);
    }

    .auth-hero .brand-mark.big img {
        max-width: 48px !important;
        max-height: 48px !important;
    }

    .auth-hero h1 {
        max-width: 620px;
        color: #fff;
        font-size: 16px !important;
        line-height: 1.2 !important;
        font-weight: 900;
    }

    .auth-hero p {
        color: rgba(255, 255, 255, .92);
        font-size: 12px !important;
        line-height: 1.2;
        font-weight: 850;
    }

    .auth-card {
        width: min(334px, calc(100vw - 32px)) !important;
        max-width: 334px !important;
        margin-top: 14px !important;
        justify-self: center !important;
        align-self: start;
        gap: 13px !important;
        border: 1px solid #dde7f2 !important;
        border-radius: 7px !important;
        background: #fff !important;
        box-shadow: 0 18px 45px rgba(14, 43, 77, .08) !important;
        padding: 28px 24px !important;
    }

    .auth-card h2 {
        color: #0b1f3a;
        font-size: 22px !important;
        line-height: 1.2;
        font-weight: 950;
    }

    .auth-card p {
        color: #53647b;
        font-size: 12px !important;
        line-height: 1.45;
    }

    .auth-card label {
        color: #0b1f3a;
        gap: 7px;
        font-size: 10px;
        font-weight: 900;
    }

    .auth-card input {
        height: 34px !important;
        min-height: 34px !important;
        border: 1px solid #d7e1ee !important;
        border-radius: 5px !important;
        background: #fff !important;
        padding: 0 9px !important;
        color: #1d2d44;
        font-size: 11px;
    }

    .auth-card input:focus {
        border-color: #0b6fe8 !important;
        box-shadow: 0 0 0 3px rgba(11, 111, 232, .12) !important;
    }

    .auth-card input::placeholder {
        color: #8492a6;
        font-weight: 700;
    }

    .auth-card .btn {
        height: 38px !important;
        min-height: 38px !important;
        margin-top: 0 !important;
        border-radius: 5px !important;
        background: linear-gradient(180deg, #0b76f6, #075ed3) !important;
        font-size: 12px !important;
        font-weight: 950;
    }

    .auth-alt-link {
        color: #53647b;
        font-size: 12px !important;
        font-weight: 800;
    }

    /* TKA-style auth background: taller blue government header with soft geometric wash. */
    .login-bg {
        background:
            radial-gradient(circle at 18% 24%, rgba(0, 117, 201, .10), transparent 30%),
            linear-gradient(180deg, #f7fbff 0, #eef4fa 46%, #f7fbff 100%) !important;
    }

    .auth-wrap {
        grid-template-rows: 150px 1fr !important;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, .22) 0, rgba(255, 255, 255, 0) 42%),
            radial-gradient(circle at 62% 3%, rgba(13, 95, 180, .16), transparent 32%),
            linear-gradient(180deg, #f7fbff 0, #eef4fa 260px, #f7fbff 100%) !important;
    }

    .auth-wrap:before {
        height: 150px !important;
        background:
            linear-gradient(135deg, rgba(255, 255, 255, .13) 0 18%, transparent 18% 100%),
            linear-gradient(126deg, transparent 0 47%, rgba(255, 255, 255, .08) 47% 58%, transparent 58% 100%),
            linear-gradient(105deg, #0756af 0%, #0c70c9 45%, #2f5f91 100%) !important;
        box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .18) !important;
    }

    .auth-wrap:after {
        height: 150px !important;
        clip-path: polygon(0 0, 34% 0, 19% 100%, 0 68%) !important;
        background: linear-gradient(120deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 62%) !important;
    }

    .auth-hero {
        height: 150px !important;
        padding: 24px clamp(22px, 5vw, 80px) !important;
    }

    .auth-card {
        margin-top: -30px !important;
        box-shadow: 0 26px 70px rgba(20, 57, 98, .14), 0 0 90px rgba(11, 111, 232, .05) !important;
    }

    .auth-card h2 {
        font-weight: 800 !important;
    }

    .auth-card label,
    .auth-card .btn,
    .auth-card input::placeholder {
        font-weight: 650 !important;
    }    html.exam-body, body.exam-body {
        height: 100vh !important;
        height: 100dvh !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .exam-layout {
        display: grid !important;
        grid-template-columns: 300px 1fr !important;
        grid-template-rows: 56px calc(100vh - 118px) 62px !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        background: #f4f7fb !important;
        overflow: hidden !important;
    }

    .exam-header {
        height: 56px;
        padding: 0 20px !important;
        background: linear-gradient(90deg, #0056b8 0%, #006bd8 100%) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .exam-header .side-brand .brand-mark {
        width: 36px;
        height: 36px;
    }

    .exam-header .side-brand b {
        font-size: 13px !important;
        color: #ffffff;
    }

    .exam-header .side-brand span {
        font-size: 11px !important;
        color: #93c5fd;
    }

    .number-panel {
        margin: 14px 0 14px 16px !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px;
        background: #ffffff !important;
        padding: 16px 18px !important;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
        display: flex;
        flex-direction: column;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .number-panel::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .num-panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
    }

    .num-panel-head h3 {
        font-family: var(--font-heading);
        font-size: 14px;
        font-weight: 700;
        color: #0f172a;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .num-panel-close-btn {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        border: 1px solid #cbd5e1;
        background: #f8fafc;
        color: #475569;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

    .num-panel-close-btn:hover {
        background: #eff6ff;
        border-color: #2563eb;
        color: #2563eb;
    }

    .num-toggle-header-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 14px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        color: #ffffff;
        font-family: var(--font-heading);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .num-toggle-header-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: #ffffff;
    }

    body.num-panel-collapsed .exam-layout {
        grid-template-columns: 0px 1fr !important;
    }

    body.num-panel-collapsed .number-panel {
        width: 0 !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        border: 0 !important;
    }


    .num-grid {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-bottom: 16px;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .num {
        width: 100% !important;
        min-width: 0 !important;
        aspect-ratio: 1;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-family: var(--font-heading) !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
        border: 1.5px solid #cbd5e1 !important;
        background: #ffffff !important;
        color: #334155 !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }

    .num:hover {
        border-color: #2563eb !important;
        color: #2563eb !important;
        transform: translateY(-1px);
    }

    .num.active {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
        color: #ffffff !important;
        border-color: #2563eb !important;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
        font-weight: 800 !important;
    }

    .num.answered {
        background: #10b981 !important;
        color: #ffffff !important;
        border-color: #059669 !important;
        font-weight: 800 !important;
        box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25) !important;
    }

    .num.doubt {
        background: #f59e0b !important;
        color: #ffffff !important;
        border-color: #d97706 !important;
        font-weight: 800 !important;
        box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25) !important;
    }

    /* Font Tools in Exam Header */
    .font-tools {
        display: inline-flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        padding: 3px;
        gap: 3px;
    }

    .font-tools button {
        background: transparent;
        border: 0;
        color: #93c5fd;
        font-family: var(--font-heading);
        font-size: 13px;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .font-tools button:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #ffffff;
    }

    .font-tools button.active {
        background: #ffffff !important;
        color: #1d4ed8 !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    }

    .legend {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: auto !important;
        padding-top: 14px !important;
        border-top: 1px solid #f1f5f9 !important;
    }

    .legend span {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #475569 !important;
        white-space: normal !important;
    }

    .legend i.l {
        width: 16px !important;
        height: 16px !important;
        min-height: 16px !important;
        max-height: 16px !important;
        border-radius: 4px !important;
        flex: 0 0 16px !important;
        display: inline-block !important;
        box-sizing: border-box !important;
    }

    .legend i.l.empty { background: #ffffff !important; border: 1.5px solid #cbd5e1 !important; }
    .legend i.l.answered { background: #10b981 !important; border: 1px solid #059669 !important; }
    .legend i.l.doubt { background: #f59e0b !important; border: 1px solid #d97706 !important; }
    .legend i.l.active { background: #2563eb !important; border: 1px solid #1d4ed8 !important; }

    /* Dynamic Question Panel Font Zoom Classes */
    .question-panel.font-sm .stimulus,
    .question-panel.font-sm .question-text { font-size: 13.5px !important; }
    .question-panel.font-sm .option-text { font-size: 13px !important; }

    .question-panel.font-lg .stimulus,
    .question-panel.font-lg .question-text { font-size: 18px !important; }
    .question-panel.font-lg .option-text { font-size: 17px !important; }

    .question-panel {
        padding: 16px 28px !important;
        max-width: 1050px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: 100% !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .question-panel::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }




    .question-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 18px;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
        margin-bottom: 14px;
    }

    .question-top h2 {
        font-size: 17px;
        font-weight: 700;
        color: #0f172a;
        margin: 0;
    }

    .question-top span {
        font-size: 13px;
        font-weight: 600;
        color: #64748b;
    }

    .stimulus,
    .question-text {
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        padding: 16px 20px !important;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
        margin-bottom: 14px;
        font-size: 15px;
        line-height: 1.6;
        color: #0f172a;
    }

    .answers {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        margin-bottom: 14px !important;
        max-width: 900px;
    }

    .answer-card {
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
        border: 1.5px solid #cbd5e1 !important;
        border-radius: 12px !important;
        padding: 12px 18px !important;
        background: #ffffff !important;
        box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02) !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
        cursor: pointer !important;
    }

    .answer-card:hover {
        border-color: #2563eb !important;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12) !important;
        transform: translateY(-1px) !important;
    }

    .answer-card:has(input:checked) {
        border-color: #2563eb !important;
        background: #eff6ff !important;
        box-shadow: 0 0 0 1px #2563eb !important;
    }

    .answer-card input[type="radio"],
    .answer-card input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #2563eb;
        cursor: pointer;
    }

    .op-label {
        width: 32px !important;
        height: 32px !important;
        flex: 0 0 32px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-family: var(--font-heading) !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        border-radius: 8px !important;
        background: #e0e7ff !important;
        color: #3730a3 !important;
    }

    .option-text {
        font-size: 14.5px !important;
        font-weight: 500 !important;
        color: #0f172a !important;
    }

    .doubt-check {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px !important;
        border: 1px solid #fde68a !important;
        border-radius: 10px !important;
        background: #fffbeb !important;
        color: #b45309;
        font-size: 13.5px;
        font-weight: 600;
        cursor: pointer;
    }

    .doubt-check input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #d97706;
    }

    .exam-footer {
        height: 62px;
        padding: 10px 24px !important;
        border-top: 1px solid #e2e8f0 !important;
        background: #ffffff !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.04);
    }

    .exam-footer .btn {
        height: 40px;
        padding: 0 20px;
        font-size: 13.5px;
        font-weight: 600;
        border-radius: 8px;
    }

    .btn.warning {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        color: #ffffff;
        border: 0;
        box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
    }

    .btn.warning:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    }

    .btn.danger {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        color: #ffffff;
        border: 0;
        box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
    }

    .btn.danger:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    }
}

/* Ultra-Responsive Mobile CBT Exam Layout */
@media (max-width: 900px) {
    .exam-layout {
        display: flex !important;
        flex-direction: column !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
    }

    .exam-header {
        height: auto !important;
        min-height: 52px !important;
        padding: 8px 12px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px 10px !important;
    }

    .exam-header .side-brand {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: 50% !important;
    }

    .exam-header .side-brand b {
        font-size: 11.5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }

    .exam-header .side-brand span {
        font-size: 9.5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }

    .num-toggle-header-btn {
        padding: 4px 10px !important;
        font-size: 11.5px !important;
    }

    .font-tools {
        padding: 2px !important;
        gap: 2px !important;
    }

    .font-tools button {
        padding: 3px 7px !important;
        font-size: 11.5px !important;
    }

    .timer {
        padding: 4px 8px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    .autosave {
        padding: 4px 8px !important;
        font-size: 10.5px !important;
        white-space: nowrap !important;
    }

    /* Mobile Floating Drawer for Number Panel */
    .number-panel {
        position: fixed !important;
        z-index: 1000 !important;
        top: 60px !important;
        left: 12px !important;
        right: 12px !important;
        bottom: auto !important;
        max-height: calc(100vh - 130px) !important;
        max-height: calc(100dvh - 130px) !important;
        margin: 0 !important;
        width: auto !important;
        border-radius: 14px !important;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35) !important;
        background: #ffffff !important;
        transition: all 0.22s ease !important;
    }

    body:not(.num-panel-open-mobile) .number-panel,
    body.num-panel-collapsed .number-panel {
        display: none !important;
    }

    body.num-panel-open-mobile .number-panel {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .question-panel {
        flex: 1 1 auto !important;
        height: auto !important;
        padding: 12px 14px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
    }

    .question-top {
        padding: 10px 12px !important;
        margin-bottom: 10px !important;
    }

    .question-top h2 {
        font-size: 14.5px !important;
    }

    .question-top span {
        font-size: 11.5px !important;
    }

    .stimulus,
    .question-text {
        padding: 12px 14px !important;
        font-size: 13.5px !important;
        margin-bottom: 10px !important;
    }

    .answers {
        max-width: 100% !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    .answer-card {
        padding: 10px 12px !important;
        gap: 10px !important;
        border-radius: 10px !important;
    }

    .op-label {
        width: 28px !important;
        height: 28px !important;
        flex: 0 0 28px !important;
        font-size: 12.5px !important;
        border-radius: 6px !important;
    }

    .option-text {
        font-size: 13px !important;
    }

    .exam-footer {
        height: auto !important;
        min-height: 52px !important;
        padding: 8px 12px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        justify-content: space-between !important;
    }

    .exam-footer .btn {
        height: 36px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
        flex: 1 1 calc(50% - 6px) !important;
        min-width: 110px !important;
        border-radius: 6px !important;
    }
}


    @media (max-width: 1180px) {
        body:not(.login-bg):not(.exam-body):not(.tka-bg) .stats-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .dashboard-main-grid,
        body:not(.login-bg):not(.exam-body):not(.tka-bg) .grid.three,
        .quick-actions-panel {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 900px) {
        body:not(.login-bg):not(.exam-body):not(.tka-bg) .sidebar {
            display: none;
        }

        body:not(.login-bg):not(.exam-body):not(.tka-bg) .topbar {
            grid-template-columns: 1fr;
            height: auto;
            padding: 10px 14px;
        }

        .topbar-date,
        .topbar-right {
            display: none;
        }

        body:not(.login-bg):not(.exam-body):not(.tka-bg) .content-title,
        body:not(.login-bg):not(.exam-body):not(.tka-bg) .stats-grid,
        body:not(.login-bg):not(.exam-body):not(.tka-bg) .dashboard-main-grid,
        body:not(.login-bg):not(.exam-body):not(.tka-bg) .quick-actions-panel,
        body:not(.login-bg):not(.exam-body):not(.tka-bg) .main > .grid,
        body:not(.login-bg):not(.exam-body):not(.tka-bg) .main > .panel {
            margin-left: 12px;
            margin-right: 12px;
        }

        body:not(.login-bg):not(.exam-body):not(.tka-bg) .content-title {
            padding: 12px 0 8px;
            display: block;
        }

        body:not(.login-bg):not(.exam-body):not(.tka-bg) .stats-grid {
            grid-template-columns: 1fr;
        }

        .donut-wrap {
            grid-template-columns: 1fr;
            justify-items: center;
        }

        /* Responsive Mobile Dashboard & Metrics Overrides */
        .dashboard-main-grid {
            grid-template-columns: 1fr !important;
            gap: 16px !important;
        }

        .execution-grid {
            grid-template-columns: 1fr !important;
            gap: 14px !important;
        }

        .metrics-grid {
            grid-template-columns: 1fr !important;
            gap: 12px !important;
        }

        .metric-box {
            padding: 12px 14px !important;
        }

        .filter-form.list-filter-form {
            display: flex !important;
            flex-direction: column !important;
            align-items: stretch !important;
            gap: 10px !important;
            padding: 12px 14px !important;
            margin-bottom: 14px !important;
        }

        .filter-form.list-filter-form label {
            display: flex !important;
            flex-direction: column !important;
            gap: 4px !important;
            margin: 0 !important;
            padding: 0 !important;
            width: 100% !important;
            min-width: 0 !important;
            height: auto !important;
            min-height: 0 !important;
        }

        .filter-form.list-filter-form input,
        .filter-form.list-filter-form select {
            height: 38px !important;
            min-height: 38px !important;
            width: 100% !important;
            box-sizing: border-box !important;
            margin: 0 !important;
        }

        .filter-actions {
            margin-left: 0 !important;
            margin-top: 4px !important;
            width: 100% !important;
            display: flex !important;
            align-items: center !important;
            justify-content: flex-end !important;
            gap: 8px !important;
        }

        .filter-actions .btn {
            height: 36px !important;
            padding: 0 16px !important;
            font-size: 12.5px !important;
        }



        .quick-actions-panel a {
            border-right: 0;
            border-bottom: 1px solid #e6edf5;
        }

        .quick-actions-panel a:last-child {
            border-bottom: 0;
        }

        .auth-card {
            width: calc(100vw - 28px) !important;
            max-width: calc(100vw - 28px) !important;
            margin-left: 14px !important;
            margin-right: 14px !important;
            padding: 26px 22px !important;
        }

        .auth-hero {
            padding: 14px 16px !important;
        }

        .auth-hero h1 {
            font-size: 12px !important;
        }

        .auth-hero p {
            font-size: 10px !important;
        }

        .exam-layout {
            grid-template-columns: 1fr !important;
            grid-template-rows: auto auto 1fr auto !important;
        }
    }

    .option-editor {
        display: grid;
        gap: 8px;
        padding: 10px;
        border: 1px solid #e2ebf5;
        border-radius: 8px;
        background: #fbfdff;
    }

    .option-current-media {
        display: grid;
        gap: 8px;
        padding: 8px;
        border: 1px solid #e8eef6;
        border-radius: 7px;
        background: #fff;
    }

    .inline-check {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .inline-check input {
        width: auto;
    }

    .answer-card .option-content,
    .statement-row .option-content,
    .match-row .option-content {
        flex: 1;
        min-width: 0;
    }

    .option-content,
    .option-media {
        display: grid !important;
        gap: 7px;
        align-items: start;
        justify-items: start;
    }

    .option-content-row {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        min-width: 0;
    }

    .option-text {
        white-space: pre-line;
        overflow-wrap: anywhere;
    }

    .option-media {
        max-width: 100%;
    }

    .option-media img {
        max-width: min(360px, 100%);
        max-height: 220px;
        object-fit: contain;
        border: 1px solid #dbe5f0;
        border-radius: 8px;
        background: #f8fbff;
    }

    .option-media audio {
        width: min(360px, 100%);
    }

    .option-media small {
        color: var(--muted);
        font-size: 12px;
        line-height: 1.35;
    }

    /* Softer screen typography so labels and data text do not read as overly bold. */
    body b,
    body strong,
    body:not(.login-bg):not(.exam-body):not(.tka-bg) td b,
    .btn,
    .badge,
    label,
    th,
    details summary,
    .checks label,
    .doubt-check,
    .answer-card,
    .statement-row label,
    .session-card span,
    .session-card em,
    .confirm-list span,
    .confirm-list b,
    .timer,
    .autosave,
    .topbar-left,
    .topbar-date,
    .userbox b,
    .side-account b,
    .panel-link,
    .quick-actions-panel b,
    .donut-legend b,
    .chart-row b,
    .login-card dd,
    .login-card b,
    .brand-row b,
    .auth-card label,
    .auth-card .btn,
    .auth-card input::placeholder,
    .auth-alt-link {
        font-weight: 500 !important;
    }

    h1,
    h2,
    h3,
    .side-brand b,
    .content-title h1,
    .page-head h2,
    .panel-title h3,
    .auth-hero h1,
    .auth-card h2,
    .tka-start-card h1,
    .question-top h2,
    .finish-dialog h2,
    .stat-card strong,
    .donut-chart b,
    .summary-meter b,
    .summary-kpis b,
    .score-circle,
    .finish-summary b,
    .num,
    .op-label,
    .token-display b {
        font-weight: 600 !important;
    }

    .side-brand span,
    .content-title p,
    .stat-card span,
    .stat-card em,
    .quick-actions-panel em,
    .donut-legend div,
    .auth-hero p,
    .auth-card p,
    .question-text,
    .mini-list span,
    .mini-list em,
    .summary-meter span,
    .summary-kpis span {
        font-weight: 400 !important;
    }
}

/* Compact session editor with a dedicated school selection column */
.session-page {
    grid-template-columns: minmax(0, 1fr);
}

.filter-form.session-filter {
    grid-template-columns: minmax(160px, 1.3fr) repeat(5, minmax(90px, 1fr)) auto;
}

.session-form-panel {
    width: 100%;
}

.session-form-layout {
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(500px, 1.1fr);
    gap: 18px;
    align-items: stretch;
}

.session-detail-fields,
.session-school-picker {
    min-width: 0;
}

.session-detail-fields {
    display: grid;
    gap: 10px;
    align-content: start;
}

.session-section-head {
    min-height: 38px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.session-section-head h3,
.session-section-head p {
    margin: 0;
}

.session-section-head p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.session-datetime-grid,
.session-settings-grid,
.session-school-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.session-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 34px;
    align-items: center;
}

.session-checks label {
    line-height: 1.35;
}

.session-save-button {
    width: fit-content;
    min-width: 130px;
    margin-top: 2px;
}

.session-school-picker {
    display: grid;
    grid-template-rows: auto auto auto minmax(230px, 1fr);
    gap: 10px;
    padding: 12px;
    border: 1px solid #dce6f1;
    border-radius: 10px;
    background: #f8fbff;
}

.session-school-count {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid #cfe0f4;
    border-radius: 999px;
    background: #fff;
    color: #526176;
    font-size: 11px;
    white-space: nowrap;
}

.session-school-count b {
    color: #0759bb;
}

.session-school-filters label {
    gap: 4px;
    font-size: 11px;
}

.session-school-filters select {
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.session-school-tools {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 11px;
}

.session-school-tools > div {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.session-school-list {
    display: grid;
    max-height: 390px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 7px;
    padding: 8px;
    background: #fff;
}

.session-school-list .session-school-option {
    min-width: 0;
    min-height: 48px;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 9px;
    border: 1px solid #e0e9f3;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.session-school-list .session-school-option:hover {
    border-color: #b8d3f4;
    background: #f6faff;
}

.session-school-list .session-school-option:has(input:checked) {
    border-color: #86b8f4;
    background: #eaf4ff;
    box-shadow: inset 0 0 0 1px rgba(11, 111, 232, .1);
}

.session-school-list .session-school-option[hidden] {
    display: none !important;
}

.session-school-option input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.session-school-option span,
.session-school-option b,
.session-school-option small {
    min-width: 0;
    display: block;
}

.session-school-option b {
    overflow: hidden;
    color: #142942;
    font-size: 11px;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.session-school-option small {
    margin-top: 2px;
    color: #6c7b90;
    font-size: 10px;
    line-height: 1.3;
}

.session-school-empty {
    grid-column: 1 / -1;
}

.session-school-empty[hidden] {
    display: none;
}

.session-edit-actions {
    padding-top: 2px;
}

.detail-list {
    display: grid;
    gap: 8px;
    margin: 10px 0 14px;
}

.detail-list > div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    padding: 9px 10px;
    border: 1px solid #e1eaf4;
    border-radius: 8px;
    background: #f8fbff;
}

.detail-list dt {
    color: var(--muted);
    font-size: 11px;
}

.detail-list dd {
    min-width: 0;
    margin: 0;
    color: #142942;
    font-size: 12px;
    overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
    .session-form-layout {
        grid-template-columns: 1fr;
    }

    .filter-form.session-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-form.session-filter .filter-actions {
        grid-column: 1 / -1;
    }

    .session-school-list {
        max-height: 330px;
    }
}

@media (max-width: 700px) {
    .filter-form.session-filter,
    .session-datetime-grid,
    .session-settings-grid,
    .session-school-filters,
    .session-checks,
    .session-school-list {
        grid-template-columns: 1fr;
    }

    .session-school-tools {
        align-items: flex-start;
        flex-direction: column;
    }

    .session-school-tools > div {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* Staff mobile navigation drawer */
@media screen {
    .menu-button,
    .sidebar-backdrop,
    .sidebar-close {
        display: none;
    }

    @media (max-width: 900px) {
        .menu-button {
            display: inline-grid;
        }

        body:not(.login-bg):not(.exam-body):not(.tka-bg) .sidebar[data-mobile-sidebar] {
            position: fixed;
            z-index: 1100;
            inset: 0 auto 0 0;
            display: flex;
            width: min(86vw, 300px);
            min-width: 0;
            height: 100vh;
            height: 100dvh;
            max-height: 100vh;
            max-height: 100dvh;
            overflow-y: auto;
            overscroll-behavior: contain;
            visibility: hidden;
            pointer-events: none;
            transform: translateX(-105%);
            transition: transform .22s ease, visibility .22s ease;
        }

        body.sidebar-open:not(.login-bg):not(.exam-body):not(.tka-bg) .sidebar[data-mobile-sidebar] {
            visibility: visible;
            pointer-events: auto;
            transform: translateX(0);
        }

        .sidebar-backdrop {
            position: fixed;
            z-index: 1090;
            inset: 0;
            display: block;
            visibility: hidden;
            background: rgba(5, 22, 43, .52);
            opacity: 0;
            pointer-events: none;
            transition: opacity .22s ease, visibility .22s ease;
        }

        body.sidebar-open .sidebar-backdrop {
            visibility: visible;
            opacity: 1;
            pointer-events: auto;
        }

        .sidebar-close {
            width: 34px;
            height: 34px;
            margin-left: auto;
            flex: 0 0 34px;
            border: 1px solid rgba(255, 255, 255, .18);
            border-radius: 8px;
            display: inline-grid;
            place-items: center;
            background: rgba(255, 255, 255, .1);
            color: #fff;
            font-size: 24px;
            line-height: 1;
            cursor: pointer;
        }

        .menu-button:focus-visible,
        .sidebar-close:focus-visible {
            outline: 3px solid #fbbf24;
            outline-offset: 2px;
        }

        body.sidebar-open {
            overflow: hidden;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        body:not(.login-bg):not(.exam-body):not(.tka-bg) .sidebar[data-mobile-sidebar],
        .sidebar-backdrop {
            transition: none;
        }
    }
}

@media screen and (max-width: 1320px) and (min-width: 901px) {
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
}

.filter-form.list-filter-form {
    grid-template-columns: minmax(240px, 1.5fr) repeat(2, minmax(150px, 1fr)) auto;
}

.list-filter-form .filter-actions {
    align-self: end;
    white-space: nowrap;
}

@media screen and (max-width: 900px) {
    .filter-form.list-filter-form {
        grid-template-columns: 1fr;
    }

    .list-filter-form .filter-actions {
        white-space: normal;
    }
}

/* ==========================================================================
   ✨ State-of-the-Art Visual Refinement & Ultra-Elegant CBT Design System
   ========================================================================== */

@media screen {
    :root {
        --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
        --bg: #f4f7fb;
        --panel: #ffffff;
        --line: #e2e8f0;
        --line-soft: #edf2f7;
        --text: #0f172a;
        --muted: #475569;
        --primary: #2563eb;
        --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        --primary-soft: #eff6ff;
        --primary-border: #bfdbfe;
        --success: #10b981;
        --success-soft: #ecfdf5;
        --success-border: #a7f3d0;
        --warning: #f59e0b;
        --warning-soft: #fffbeb;
        --warning-border: #fde68a;
        --danger: #ef4444;
        --danger-soft: #fef2f2;
        --danger-border: #fecaca;
        --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.03);
        --shadow-md: 0 6px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
        --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.08), 0 6px 14px -2px rgba(15, 23, 42, 0.04);
        --glass-bg: rgba(255, 255, 255, 0.92);
        --glass-border: rgba(255, 255, 255, 0.8);
        --radius: 16px;
    }

    html {
        font-size: clamp(14px, 0.35vw + 12px, 17px);
    }

    body {
        font-family: var(--font-body);
        color: var(--text);
        font-size: 1rem;
        line-height: 1.5;
        letter-spacing: -0.01em;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    h1, h2, h3, h4, h5, h6, .topbar h1, .auth-hero h1, .auth-card h2, .tka-start-card h1 {
        font-family: var(--font-heading);
        letter-spacing: -0.02em;
    }

    /* Proportional Headings */
    h1, .topbar h1, .page-head h2, .page-head h1 {
        font-size: 21px;
        font-weight: 700;
        letter-spacing: -0.015em;
        color: #0f172a;
    }

    .page-head p, .content-title p {
        font-size: 13px;
        font-weight: 400;
        color: #64748b;
        margin-top: 2px;
    }

    /* Glassmorphism Cards & Panels */
    .panel, .stat-card, .tka-start-card, .session-card, .userbox, .page-head {
        background: var(--glass-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid var(--glass-border);
        box-shadow: var(--shadow-md);
        border-radius: 14px;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
    }

    .panel:hover, .stat-card:hover, .session-card:hover {
        box-shadow: var(--shadow-lg);
    }

    /* Sleek Proportional Navigation Sidebar */
    .sidebar {
        width: clamp(230px, 13vw, 270px);
        min-width: clamp(230px, 13vw, 270px);
        padding: 16px 14px;
        background: linear-gradient(185deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 12px 0 32px rgba(15, 23, 42, 0.15);
    }

    .side-brand {
        padding: 10px 12px 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .side-brand b {
        font-family: var(--font-heading);
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.01em;
    }

    .side-brand span {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.75) !important;
        margin-top: 2px;
    }

    .sidebar nav a {
        padding: 8px 12px;
        border-radius: 10px;
        font-size: 13.5px;
        font-weight: 500;
        color: rgba(226, 232, 240, 0.85);
        gap: 10px;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar nav a span {
        width: 24px;
        height: 24px;
        font-size: 14px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 6px;
        color: #93c5fd;
        transition: all 0.2s ease;
    }

    .sidebar nav a:hover {
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
        transform: translateX(3px);
    }

    .sidebar nav a.active {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(29, 78, 216, 0.95));
        color: #ffffff;
        font-weight: 600;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    }

    .sidebar nav a.active span {
        background: #ffffff;
        color: #1d4ed8;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

    .side-account, .userbox {
        position: relative;
        cursor: pointer;
        user-select: none;
        transition: background 0.2s ease, border-color 0.2s ease;
    }

    .side-account:hover, .userbox:hover {
        background: rgba(255, 255, 255, 0.12) !important;
    }

    .side-account b {
        font-size: 13.5px;
    }

    .side-account span {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.75) !important;
    }

    /* Topbar Proportional Scaling */
    .topbar-left span {
        font-size: 13.5px;
        font-weight: 500;
    }

    .topbar-date {
        font-size: 13px;
        font-weight: 500;
    }

    .userbox b {
        font-size: 13.5px;
        font-weight: 600;
    }

    .userbox span {
        font-size: 12px;
        color: var(--muted) !important;
    }

    /* Interactive User Profile Dropdown Popover */
    .user-menu-popover {
        display: none;
        position: absolute;
        bottom: calc(100% + 12px);
        left: 0;
        width: 210px;
        background: #ffffff;
        border: 1px solid #cbd5e1;
        border-radius: 12px;
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
        padding: 10px;
        z-index: 200;
        color: #0f172a;
        animation: popoverFadeIn 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Sidebar Specific Dark Navy Profile Popover */
    .side-account .user-menu-popover {
        background: #1e293b !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
        color: #ffffff !important;
    }

    .side-account .user-menu-header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .side-account .user-menu-header b {
        color: #ffffff !important;
        font-size: 13.5px !important;
    }

    .side-account .user-menu-header span {
        color: #94a3b8 !important;
        font-size: 11.5px !important;
    }

    .side-account .user-menu-logout {
        background: rgba(239, 68, 68, 0.15) !important;
        border: 1px solid rgba(239, 68, 68, 0.35) !important;
        color: #fca5a5 !important;
    }

    .side-account .user-menu-logout:hover {
        background: rgba(239, 68, 68, 0.3) !important;
        border-color: #ef4444 !important;
        color: #ffffff !important;
        transform: translateY(-1px);
    }

    .userbox .user-menu-popover.topbar-popover {
        bottom: auto;
        top: calc(100% + 12px);
        right: 0;
        left: auto;
    }

    [aria-expanded="true"] > .user-menu-popover {
        display: block !important;
    }

    @keyframes popoverFadeIn {
        from { opacity: 0; transform: translateY(6px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .user-menu-header {
        padding: 8px 10px;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 8px;
        text-align: left;
    }

    .user-menu-header b {
        display: block;
        font-size: 13.5px;
        font-weight: 700;
        color: #0f172a;
    }

    .user-menu-header span {
        display: block;
        font-size: 11.5px;
        color: #64748b;
        margin-top: 2px;
    }

    .user-menu-logout {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 8px 12px;
        font-family: var(--font-body);
        font-size: 13px;
        font-weight: 700;
        color: #ef4444;
        background: #fef2f2;
        border: 1px solid #fecaca;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .user-menu-logout:hover {
        background: #fee2e2;
        border-color: #fca5a5;
        color: #dc2626;
        transform: translateY(-1px);
    }



    /* Polished Proportional Stat Cards */
    .stat-card {
        padding: 16px 18px;
        border-radius: 14px;
        gap: 12px;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: var(--primary-soft);
        color: var(--primary);
        font-size: 18px;
        box-shadow: inset 0 0 0 1px var(--primary-border);
    }

    .stats-grid > div:nth-child(1) .stat-icon {
        background: #eff6ff; color: #2563eb; box-shadow: inset 0 0 0 1px #bfdbfe;
    }
    .stats-grid > div:nth-child(2) .stat-icon {
        background: #ecfdf5; color: #059669; box-shadow: inset 0 0 0 1px #a7f3d0;
    }
    .stats-grid > div:nth-child(3) .stat-icon {
        background: #faf5ff; color: #9333ea; box-shadow: inset 0 0 0 1px #e9d5ff;
    }
    .stats-grid > div:nth-child(4) .stat-icon {
        background: #fffbeb; color: #d97706; box-shadow: inset 0 0 0 1px #fde68a;
    }

    .stat-card span,
    .stat-card em {
        font-size: 12.5px !important;
        color: #475569 !important;
        font-weight: 500;
    }

    .stat-card strong {
        font-family: var(--font-heading);
        font-size: 26px;
        font-weight: 700;
        margin-top: 2px;
    }

    /* Dashboard Execution Summary & Bar Chart */
    .dashboard-main-grid {
        display: grid;
        grid-template-columns: 1.6fr 1fr;
        gap: 20px;
        margin-bottom: 24px;
    }

    .panel-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
    }

    .live-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 11.5px;
        font-weight: 700;
        color: #059669;
        background: #ecfdf5;
        border: 1px solid #a7f3d0;
        padding: 3px 10px;
        border-radius: 20px;
    }

    .execution-grid {
        display: grid;
        grid-template-columns: 1fr 1.15fr;
        gap: 16px;
        align-items: stretch;
    }

    .mini-card {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        transition: all 0.2s ease;
    }

    .mini-card:hover {
        border-color: #cbd5e1;
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    }

    .mini-card .mini-icon {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        font-weight: 700;
        flex: 0 0 34px;
    }

    .status-ok .mini-icon { background: #ecfdf5; color: #059669; }
    .status-active .mini-icon { background: #eff6ff; color: #2563eb; }
    .status-done .mini-icon { background: #fffbeb; color: #d97706; }

    .mini-card span { display: block; font-size: 11.5px; font-weight: 600; color: #64748b; }
    .mini-card b { display: block; font-size: 14px; font-weight: 700; color: #0f172a; margin: 2px 0; }
    .mini-card em { display: block; font-size: 11px; color: #94a3b8; font-style: normal; }

    /* Progress Bar Chart Column */
    .execution-chart {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 14px 16px;
        display: flex;
        flex-direction: column;
    }

    .execution-chart h4 {
        font-family: var(--font-heading);
        font-size: 13px;
        font-weight: 700;
        color: #0f172a;
        margin: 0 0 12px 0;
    }

    .chart-progress-bars {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
    }

    .bar-group {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .bar-info {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 11.5px;
        font-weight: 600;
    }

    .bar-info span { color: #475569; }
    .bar-info b { color: #0f172a; }

    .bar-track {
        height: 8px;
        background: #e2e8f0;
        border-radius: 6px;
        overflow: hidden;
        width: 100%;
    }

    .bar-fill {
        height: 100%;
        border-radius: 6px;
        transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .bar-fill.finished { background: linear-gradient(90deg, #f59e0b, #d97706); }
    .bar-fill.working { background: linear-gradient(90deg, #2563eb, #1d4ed8); }
    .bar-fill.pending { background: linear-gradient(90deg, #10b981, #059669); }

    /* Real-time System Metrics Panel */
    .system-metrics-panel {
        margin-bottom: 24px;
    }

    .server-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 11.5px;
        font-weight: 700;
        color: #2563eb;
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        padding: 3px 10px;
        border-radius: 20px;
    }

    .metrics-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        margin-top: 10px;
    }

    .metric-box {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 14px 16px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .metric-header {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .metric-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        flex: 0 0 36px;
    }

    .metric-icon.cpu { background: #eff6ff; color: #2563eb; }
    .metric-icon.ram { background: #faf5ff; color: #9333ea; }
    .metric-icon.storage { background: #ecfdf5; color: #059669; }

    .metric-header b {
        display: block;
        font-size: 13px;
        font-weight: 700;
        color: #0f172a;
    }

    .metric-header span {
        display: block;
        font-size: 11.5px;
        font-weight: 600;
        color: #64748b;
        margin-top: 2px;
    }

    .metric-bar-track {
        height: 8px;
        background: #e2e8f0;
        border-radius: 6px;
        overflow: hidden;
        width: 100%;
    }

    .metric-bar-fill {
        height: 100%;
        border-radius: 6px;
        transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .metric-bar-fill.cpu { background: linear-gradient(90deg, #2563eb, #1d4ed8); }
    .metric-bar-fill.ram { background: linear-gradient(90deg, #a855f7, #7e22ce); }
    .metric-bar-fill.storage { background: linear-gradient(90deg, #10b981, #047857); }



    .stat-card a, .stat-card .btn-link {
        font-size: 12.5px;
        font-weight: 600;
    }

    /* Panel & Recap Box Typography */
    .panel-title h3 {
        font-size: 16px;
        font-weight: 600;
    }

    .recap-box {
        padding: 14px 16px;
    }

    .recap-box h4, .recap-box b {
        font-size: 14px;
        font-weight: 600;
    }

    .recap-box span, .recap-box p {
        font-size: 12.5px;
        color: #475569;
        font-weight: 400;
    }

    /* Tables & Data Lists */
    .table-wrap {
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        box-shadow: var(--shadow-sm);
    }

    th {
        font-family: var(--font-heading);
        font-size: 11.5px !important;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #475569;
        background: #f8fafc;
        padding: 10px 14px;
    }

    td {
        padding: 10px 14px;
        border-bottom: 1px solid #f1f5f9;
        font-size: 13px;
        font-weight: 400;
    }

    table tbody tr:hover td {
        background: #f8fafc;
    }

    /* Standard Professional Buttons */
    .badge {
        font-family: var(--font-body);
        font-weight: 600;
        font-size: 11.5px !important;
        padding: 3px 10px;
        border-radius: 9999px;
    }

    .badge.primary { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
    .badge.success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
    .badge.warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
    .badge.danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

    .btn {
        font-family: var(--font-body);
        font-weight: 600;
        font-size: 13px;
        padding: 7px 14px;
        border-radius: 8px;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        letter-spacing: -0.01em;
    }

    /* Compact Proportional Table Action Buttons */
    td .btn,
    td button,
    td a.btn,
    .table-wrap .btn,
    .table-actions .btn,
    .actions-cell .btn,
    td form .btn {
        padding: 4px 10px !important;
        height: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;
        font-size: 11.5px !important;
        font-weight: 600 !important;
        border-radius: 6px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        box-shadow: none !important;
    }

    /* Student Form Action Button Spacing */
    .student-form-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 18px !important;
        width: 100% !important;
    }

    /* Responsive Multi-Field Filter Bar */

    .filter-form.list-filter-form {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-end !important;
        gap: 12px 14px !important;
        margin-bottom: 16px !important;
        background: #f8fafc;
        padding: 12px 16px;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
    }

    .filter-form.list-filter-form label {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        font-size: 11.5px !important;
        font-weight: 600 !important;
        color: #475569 !important;
        min-width: 140px;
        flex: 1 1 auto;
    }

    .filter-form.list-filter-form input,
    .filter-form.list-filter-form select {
        height: 34px !important;
        padding: 4px 10px !important;
        font-size: 12.5px !important;
        border-radius: 8px !important;
        border: 1px solid #cbd5e1 !important;
        background: #ffffff !important;
    }

    .filter-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
        padding-top: 4px;
    }

    .btn.primary {
        background: var(--primary-gradient);
        color: #ffffff;
        box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
    }


    .btn.primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        filter: brightness(1.05);
    }

    .btn.ghost {
        background: #eff6ff;
        color: #2563eb;
        border: 1px solid #bfdbfe;
    }

    .btn.ghost:hover {
        background: #dbeafe;
        color: #1d4ed8;
    }

    /* Form Controls & Labels */
    label {
        font-family: var(--font-body);
        font-size: 12.5px;
        font-weight: 600;
        color: #475569;
    }

    input, select, textarea {
        font-family: var(--font-body);
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        padding: 6px 11px;
        height: 38px;
        background: #ffffff;
        transition: all 0.2s ease;
        font-size: 13px;
        font-weight: 400;
    }

    input:focus, select:focus, textarea:focus {
        border-color: var(--primary);
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }


    input:focus, select:focus, textarea:focus {
        border-color: var(--primary);
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    }

    /* Login & Auth Screen Glassmorphism */
    .login-bg {
        background: radial-gradient(circle at 50% 0%, #1e3a8a 0%, #0f172a 70%);
    }

    .auth-wrap:before {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(30, 58, 138, 0.4) 100%);
    }

    .auth-card {
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(255, 255, 255, 0.8);
        border-radius: 24px;
        box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
        padding: clamp(30px, 2vw + 20px, 44px) clamp(32px, 2vw + 24px, 48px);
    }

    .auth-card h2 {
        font-size: clamp(22px, 1vw + 16px, 28px);
        font-weight: 800;
        color: #0f172a;
    }

    .auth-card p {
        font-size: clamp(13.5px, 0.35vw + 11px, 15.5px);
    }

    /* CBT Student Exam Layout Polish */
    .exam-header {
        background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .timer {
        background: rgba(37, 99, 235, 0.25);
        border: 1px solid rgba(147, 197, 253, 0.3);
        color: #ffffff;
        border-radius: 12px;
        padding: 8px 14px;
        font-family: var(--font-heading);
        font-size: clamp(15px, 0.4vw + 12px, 18px);
        font-weight: 700;
        letter-spacing: 0.04em;
    }

    .autosave {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        padding: 7px 12px;
        font-size: clamp(12px, 0.3vw + 10px, 14px);
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .autosave::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #10b981;
        box-shadow: 0 0 8px #10b981;
        display: inline-block;
        animation: pulse-dot 2s infinite;
    }

    @keyframes pulse-dot {
        0%, 100% { transform: scale(1); opacity: 1; }
        50% { transform: scale(1.3); opacity: 0.6; }
    }

    .answers .answer-card {
        border: 1.5px solid #e2e8f0;
        border-radius: 14px;
        padding: 14px 18px;
        background: #ffffff;
        box-shadow: var(--shadow-sm);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: clamp(14px, 0.35vw + 11.5px, 16.5px);
    }

    .answers .answer-card:hover {
        border-color: var(--primary);
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

    .answers .answer-card:has(input:checked) {
        border-color: var(--primary);
        background: #eff6ff;
        box-shadow: 0 0 0 1px var(--primary);
    }

    .op-label {
        font-family: var(--font-heading);
        font-weight: 800;
        font-size: clamp(14px, 0.4vw + 11px, 17px);
        border-radius: 8px;
        background: #e0e7ff;
        color: #3730a3;
    }

    /* Number Grid Navigation Pills */
    .num {
        border-radius: 10px;
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: clamp(13.5px, 0.35vw + 11px, 15.5px);
        transition: all 0.2s ease;
        border: 1px solid #cbd5e1;
    }

    .num.active {
        background: var(--primary-gradient);
        color: #ffffff;
        border-color: var(--primary);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    }

    .num.answered {
        background: #ecfdf5;
        color: #047857;
        border-color: #a7f3d0;
    }

    .num.doubt {
        background: #fffbeb;
        color: #b45309;
        border-color: #fde68a;
    }

    /* Score Circle Gradient Glow */
    .score-circle {
        font-family: var(--font-heading);
        background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
        box-shadow: 0 16px 40px rgba(37, 99, 235, 0.3);
    }

    /* Floating Static Footer at Bottom Right Corner */
    .footer {
        position: fixed;
        bottom: 16px;
        right: 24px;
        z-index: 20;
        margin: 0;
        font-size: clamp(11.5px, 0.3vw + 9.5px, 13.5px);
        color: #475569;
        font-weight: 600;
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 6px 14px;
        border-radius: 9999px;
        border: 1px solid rgba(226, 232, 240, 0.8);
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
        pointer-events: none;
    }

    /* Polished Inline File Upload Form */
    .inline-upload {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(241, 245, 249, 0.8);
        border: 1px dashed #cbd5e1;
        border-radius: 12px;
        padding: 3px 6px 3px 12px;
        transition: all 0.2s ease;
    }

    .inline-upload:hover {
        background: #eff6ff;
        border-color: #93c5fd;
    }

    .inline-upload input[type="file"] {
        font-size: clamp(12.5px, 0.3vw + 10.5px, 14px);
        border: 0;
        background: transparent;
        padding: 0;
        box-shadow: none;
        cursor: pointer;
        max-width: 220px;
        color: #475569;
    }

    .inline-upload input[type="file"]::file-selector-button,
    .inline-upload input[type="file"]::-webkit-file-upload-button {
        font-family: var(--font-body);
        font-size: clamp(11.5px, 0.3vw + 9.5px, 13px);
        font-weight: 700;
        color: var(--primary);
        background: #ffffff;
        border: 1px solid var(--primary-border);
        border-radius: 8px;
        padding: 5px 10px;
        margin-right: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .inline-upload input[type="file"]::file-selector-button:hover,
    .inline-upload input[type="file"]::-webkit-file-upload-button:hover {
        background: var(--primary-soft);
        border-color: var(--primary);
    }

    /* Proportional List Filter Form (Flexbox Layout to adapt to variable inputs) */
    .filter-form.list-filter-form {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        align-items: flex-end;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 14px 16px;
        margin-bottom: 16px;
    }

    .filter-form.list-filter-form label {
        flex: 1 1 240px;
        min-width: 200px;
        max-width: 360px;
        font-size: clamp(13px, 0.35vw + 10.5px, 15px);
        font-weight: 700;
        color: #334155;
        gap: 6px;
    }

    .filter-form.list-filter-form input,
    .filter-form.list-filter-form select {
        width: 100%;
        height: 40px;
        font-size: clamp(13.5px, 0.35vw + 11px, 15.5px);
        background: #ffffff;
        border: 1px solid #cbd5e1;
        border-radius: 10px;
    }

    .filter-form.list-filter-form .filter-actions {
        flex: 0 0 auto;
        display: flex;
        gap: 8px;
        align-items: center;
        height: 40px;
    }

    /* Universal Proportional Table System for All Admin & Proktor Pages */
    .table-wrap {
        width: 100%;
        overflow-x: auto;
        border-radius: 14px;
        border: 1px solid #e2e8f0;
        box-shadow: var(--shadow-sm);
        background: #ffffff;
    }

    .table-wrap table {
        width: 100%;
        border-collapse: collapse;
        table-layout: auto;
    }

    .table-wrap th {
        font-family: var(--font-heading);
        font-size: clamp(11.5px, 0.3vw + 9.5px, 13.5px) !important;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #475569;
        background: #f8fafc;
        padding: 13px 18px;
        border-bottom: 2px solid #e2e8f0;
        white-space: nowrap;
        text-align: left;
    }

    .table-wrap td {
        padding: 13px 18px;
        border-bottom: 1px solid #f1f5f9;
        font-size: clamp(13.5px, 0.35vw + 11px, 15.5px);
        color: #1e293b;
        vertical-align: middle;
        white-space: normal;
        line-height: 1.45;
    }

    .table-wrap table tbody tr:hover td {
        background: #f8fafc;
    }

    /* Primary Data Columns (Names, Codes, IDs) */
    .table-wrap td b,
    .table-wrap td strong {
        color: #0f172a;
        font-weight: 700;
    }

    .table-wrap td small {
        display: block;
        font-size: clamp(11.5px, 0.3vw + 9.5px, 13px);
        color: #64748b;
        margin-top: 2px;
        font-weight: 500;
    }

    .table-wrap td:first-child {
        font-weight: 700;
        color: #0f172a;
        font-family: var(--font-heading);
        letter-spacing: 0.01em;
        min-width: 140px;
    }

    /* Actions Column Right-Alignment & Compact Fit */
    .table-wrap th.actions-column,
    .table-wrap td.row-actions {
        text-align: right;
        width: 130px;
        white-space: nowrap;
    }

    .row-actions,
    .monitor-row-actions {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        white-space: nowrap;
    }

    .btn.tiny {
        padding: 6px 12px;
        font-size: clamp(12px, 0.3vw + 10px, 13.5px);
        font-weight: 700;
        border-radius: 8px;
        letter-spacing: -0.01em;
    }

    .bulk-delete-form {
        display: inline-flex;
    }

    .table-wrap th.bulk-select-column,
    .table-wrap td.bulk-select-column {
        width: 44px;
        min-width: 44px;
        padding-left: 12px;
        padding-right: 8px;
        text-align: center;
        font-family: inherit;
    }

    .bulk-select-column input {
        width: 17px;
        height: 17px;
        accent-color: var(--primary);
        cursor: pointer;
    }

    /* Empty Table Cell State */
    .table-wrap td.empty {
        text-align: center !important;
        padding: 40px 16px !important;
        color: #64748b;
        font-size: 14px;
        font-style: italic;
        background: #fafafa;
    }

    @media (max-width: 900px) {
        .footer {
            position: static;
            display: block;
            text-align: center;
            background: transparent;
            border: 0;
            box-shadow: none;
            margin-top: 24px;
            padding: 0;
        }

        .filter-form.list-filter-form label {
            max-width: 100%;
        }
    }

    /* Standardized Enterprise Form Layout System */
    .form-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 20px;
        align-items: start;
    }

    .form-grid .span-2 {
        grid-column: span 2;
    }

    .form {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .panel.narrow {
        max-width: 580px;
        margin: 0 auto;
    }

    .form-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 12px;
        padding-top: 16px;
        border-top: 1px solid #e2e8f0;
    }

    label.checkbox {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        font-weight: 500;
        color: #1e293b;
        cursor: pointer;
        user-select: none;
    }

    label.checkbox input[type="checkbox"] {
        width: 17px;
        height: 17px;
        border-radius: 4px;
        accent-color: #2563eb;
        cursor: pointer;
    }

    /* Fieldsets & Option Editors */
    fieldset {
        border: 1px solid #cbd5e1;
        border-radius: 10px;
        padding: 16px 18px;
        margin: 8px 0;
        background: #f8fafc;
    }

    legend {
        font-family: var(--font-heading);
        font-size: 12.5px;
        font-weight: 700;
        color: #1e293b;
        padding: 2px 8px;
        background: #ffffff;
        border-radius: 6px;
        border: 1px solid #cbd5e1;
    }

    .option-edit {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 14px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        margin-bottom: 12px;
    }

    .option-edit > span {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 14px;
        color: #2563eb;
    }

    textarea {
        font-family: var(--font-body);
        font-size: 13px;
        line-height: 1.5;
        padding: 8px 12px;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        background: #ffffff;
        resize: vertical;
    }

    textarea:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }

    /* Review Cards */
    .review-card {
        padding: 18px 20px;
        margin-bottom: 16px;
        border-radius: 14px;
    }

    .review-card h3 {
        font-size: 15px;
        font-weight: 600;
        color: #0f172a;
        margin: 10px 0 14px;
        line-height: 1.5;
    }

    .review-actions {
        display: flex;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
    }

    .review-actions textarea {
        flex: 1 1 280px;
    }
}


/* ==========================================================================
   🖨️ Ultra-Clean Professional Print & PDF Export Stylesheet
   ========================================================================== */

@media print {
    /* Page setup for clean A4 printing */
    @page {
        size: A4 portrait;
        margin: 10mm 8mm 10mm 8mm;
    }

    /* Force background graphics & crisp borders */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Hide non-printable web elements */
    header,
    nav,
    aside,
    footer,
    .sidebar,
    .topbar,
    .no-print,
    .footer,
    .page-head.no-print,
    .actions,
    .btn,
    .side-brand,
    .userbox {
        display: none !important;
        height: 0 !important;
        width: 0 !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Reset layout containers & remove scrollbars completely */
    html,
    body,
    main,
    .app-wrap,
    .content-area,
    .page-content,
    .table-wrap,
    .panel,
    .card-sheet {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        border: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    ::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    /* 8 Student Cards per A4 Page Grid (2 columns x 4 rows) */
    .card-sheet,
    .credential-card-sheet {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 5mm 6mm !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .login-card,
    .credential-card {
        border: 1px solid #1e293b !important;
        border-radius: 10px !important;
        padding: 10px 14px !important;
        background: #ffffff !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        box-sizing: border-box !important;
        font-size: 11px !important;
    }

    .credential-card-brand {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        border-bottom: 1.5px solid #0f172a !important;
        padding-bottom: 6px !important;
        margin-bottom: 8px !important;
    }

    .credential-card-brand img {
        width: 32px !important;
        height: 32px !important;
        object-fit: contain !important;
    }

    .credential-card-brand small {
        font-size: 9px !important;
        font-weight: 800 !important;
        color: #2563eb !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        display: block !important;
    }

    .credential-card-brand b {
        font-size: 12px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        display: block !important;
    }

    .credential-card-brand span {
        font-size: 9.5px !important;
        color: #475569 !important;
        display: block !important;
    }

    .credential-card-data {
        display: grid !important;
        grid-template-columns: 85px 1fr !important;
        row-gap: 3px !important;
        column-gap: 6px !important;
        margin: 0 !important;
        font-size: 11px !important;
    }

    .credential-card-data dt {
        color: #475569 !important;
        font-weight: 600 !important;
    }

    .credential-card-data dd {
        margin: 0 !important;
        font-weight: 700 !important;
        color: #0f172a !important;
    }

    .credential-card-data dd.credential-code {
        font-family: monospace !important;
        font-size: 12px !important;
        letter-spacing: 0.05em !important;
        color: #1d4ed8 !important;
    }

    /* Print Document Sheets (Daftar Hadir & Berita Acara) */
    .print-document,
    .formal-sheet {
        padding: 0 !important;
        margin: 0 0 15mm 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        page-break-after: always !important;
        break-after: page !important;
    }

    .print-table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-top: 10px !important;
    }

    .print-table th,
    .print-table td {
        border: 1px solid #000000 !important;
        padding: 6px 10px !important;
        font-size: 11px !important;
    }

    .print-table th {
        background: #f1f5f9 !important;
        font-weight: 800 !important;
    }
}

/* Universal Compact Mobile Filter Bar Fix for ALL Menus (Admin, Proktor, Tim Soal) */
@media screen and (max-width: 900px) {
    body .filter-form,
    body form.filter-form,
    body .list-filter-form,
    body .session-filter,
    body .question-filter,
    body .report-filter {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        align-items: stretch !important;
        align-content: flex-start !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        padding: 12px 14px !important;
        margin: 10px 0 14px !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    body .filter-form label,
    body form.filter-form label,
    body .list-filter-form label {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        font-size: 11.5px !important;
        font-weight: 600 !important;
        color: #475569 !important;
    }

    body .filter-form input,
    body .filter-form select,
    body form.filter-form input,
    body form.filter-form select {
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        padding: 6px 10px !important;
        font-size: 12.5px !important;
        border-radius: 8px !important;
        border: 1px solid #cbd5e1 !important;
        background: #ffffff !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    body .filter-form .filter-actions,
    body form.filter-form .filter-actions {
        margin-left: 0 !important;
        margin-top: 4px !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
    }

    body .filter-form .filter-actions .btn,
    body form.filter-form .filter-actions .btn {
        height: 34px !important;
        min-height: 34px !important;
        padding: 0 14px !important;
        font-size: 12px !important;
    }
}

/* Peringatan keamanan saat halaman ujian kehilangan fokus */
.exam-security-backdrop {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(31, 9, 9, .82);
    backdrop-filter: blur(5px);
}

.exam-security-backdrop[hidden] {
    display: none;
}

.exam-security-dialog {
    width: min(520px, 100%);
    padding: 28px;
    border: 3px solid #ef4444;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(127, 29, 29, .45);
    color: #341313;
    text-align: center;
}

.exam-security-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    font-size: 38px;
    font-weight: 900;
    animation: security-warning-pulse .8s ease-in-out infinite alternate;
}

.exam-security-dialog h2 {
    margin: 0 0 9px;
    color: #b91c1c;
    font-size: 24px;
}

.exam-security-dialog p {
    margin: 0;
    color: #5f2626;
    font-size: 15px;
    line-height: 1.55;
}

.exam-security-dialog small {
    display: block;
    margin-top: 14px;
    color: #7f1d1d;
    font-size: 12px;
    line-height: 1.5;
}

.exam-security-countdown {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin: 18px 0 4px;
    color: #b91c1c;
}

.exam-security-countdown strong {
    min-width: 58px;
    font-size: 54px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.exam-security-countdown span {
    font-size: 14px;
    font-weight: 700;
}

.security-activity {
    display: block;
    margin-top: 4px;
    color: #b42318;
    font-weight: 700;
}

@keyframes security-warning-pulse {
    from {
        transform: scale(.94);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, .35);
    }
    to {
        transform: scale(1);
        box-shadow: 0 0 0 12px rgba(220, 38, 38, 0);
    }
}

@media (max-width: 600px) {
    .exam-security-dialog {
        padding: 22px 17px;
    }

    .exam-security-dialog h2 {
        font-size: 20px;
    }

    .exam-security-countdown strong {
        font-size: 46px;
    }
}
