:root{font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#18304f;background:#f3f6fc;--blue:#185dd8;--blue2:#0d397f;--border:#e1e8f3;--soft:#f3f7ff;--green:#0a906b;--shadow:0 15px 44px rgba(26,56,111,.085)}*{box-sizing:border-box}html,body{margin:0;min-height:100%}body{display:flex;flex-direction:column}button,input,textarea,select{font:inherit}button{cursor:pointer}.topbar{background:#fff;padding:14px max(26px,calc((100vw - 1230px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10}.brand{font-size:20px;font-weight:900;letter-spacing:.1px;text-decoration:none;color:#112a50;display:flex;gap:11px;align-items:center}.brandIcon{display:grid;place-items:center;background:linear-gradient(145deg,#357df5,#123e92);color:white;height:40px;width:40px;border-radius:12px;font-size:26px;box-shadow:0 8px 15px #3072e944}.brandBlue{color:var(--blue)}.brand small{display:block;font-size:9px;letter-spacing:2.25px;color:#8292aa;margin-top:-3px}.topright{display:flex;gap:15px;align-items:center;font-size:12px;color:#66809f}.badge{display:inline-flex;align-items:center;gap:8px;border:1px solid #d4e9e2;border-radius:30px;background:#effcf6;color:#137b60;padding:8px 14px;font-weight:700}.dot{height:7px;width:7px;border-radius:50%;background:#17b97b;box-shadow:0 0 0 3px #c8f1e2}.shell{width:min(1230px,calc(100% - 36px));margin:30px auto;flex:1}.footer{display:flex;gap:15px;justify-content:space-between;border-top:1px solid var(--border);font-size:12px;color:#8998ae;padding:19px max(24px,calc((100vw - 1230px)/2));background:#fff}.hero{background:linear-gradient(120deg,#102856,#1d5bc5 75%,#268be6);color:#fff;border-radius:22px;min-height:214px;padding:35px 38px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:var(--shadow);position:relative;overflow:hidden}.hero:after{content:"";position:absolute;width:320px;height:320px;border:45px solid #ffffff0c;border-radius:100%;right:-80px;top:-140px}.hero h1{font-size:32px;letter-spacing:-.5px;margin:8px 0}.hero p{color:#d9e8ff;max-width:690px;line-height:1.6;margin:0}.kicker{font-size:11px;text-transform:uppercase;letter-spacing:2px;color:#acd2ff;font-weight:800}.heroIcon{font-size:88px;opacity:.8;filter:drop-shadow(0px 10px 15px #0003)}.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:20px;margin-top:20px}.card{background:#fff;border-radius:17px;border:1px solid var(--border);padding:24px;box-shadow:var(--shadow);min-width:0}.col4{grid-column:span 4}.col5{grid-column:span 5}.col6{grid-column:span 6}.col7{grid-column:span 7}.col8{grid-column:span 8}.col12{grid-column:span 12}.card h2,.card h3{margin:0 0 12px;color:#102e5a}h2{font-size:20px}.muted{font-size:13px;color:#788aa4;line-height:1.55}.btn{background:#185dd8;border:1px solid #185dd8;color:#fff;border-radius:10px;padding:11px 18px;font-weight:750;transition:.15s;display:inline-flex;gap:7px;justify-content:center;align-items:center;text-decoration:none}.btn:hover{filter:brightness(.95);transform:translateY(-1px)}.btn.secondary{background:white;border-color:#ccdaf0;color:#1b4b91}.btn.ghost{background:#f2f6fd;border-color:#e1e9f6;color:#41638c}.btn.success{background:#099c71;border-color:#099c71}.btn.danger{background:#fef2f2;border-color:#f5baba;color:#a92739}.btn.sm{padding:7px 12px;font-size:12px}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.input,label select{width:100%;min-height:43px;padding:11px 13px;background:#fff;border:1px solid #cdd9e9;border-radius:9px;color:#213b5b;outline:none}.input:focus,textarea:focus{border-color:#488ae9;box-shadow:0 0 0 3px #488ae916}textarea.input{min-height:94px;resize:vertical}.field{margin:14px 0}.field>label{display:block;font-size:12px;font-weight:800;margin:0 0 7px;color:#3d5474}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.authWrap{max-width:490px;margin:45px auto}.authWrap .card{padding:35px}.authWrap h1{font-size:29px;margin:8px 0}.eyebrow{font-size:11px;color:#2267d7;letter-spacing:1.6px;font-weight:850;text-transform:uppercase}.tabs{display:flex;gap:8px;flex-wrap:wrap;padding:7px;margin-bottom:19px;background:white;border-radius:13px;border:1px solid var(--border);width:max-content;max-width:100%}.tab{background:transparent;border:none;padding:10px 16px;font-size:13px;font-weight:750;color:#6b7f9a;border-radius:9px}.tab.active{background:#e8f1ff;color:#1255b4}.sectionHead{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:21px 0 15px}.sectionHead h2{margin:0;font-size:22px}.stat{background:#fff;border:1px solid var(--border);border-radius:16px;padding:20px;box-shadow:var(--shadow)}.stat strong{font-size:30px;color:#153c81;display:block}.stat span{font-size:12px;color:#8794a8}.pill{padding:5px 10px;border-radius:20px;font-size:11px;font-weight:800;display:inline-block}.pill.blue{background:#e8f1ff;color:#1263c9}.pill.green{background:#e7f9ef;color:#16885c}.pill.orange{background:#fff5e6;color:#bd6c08}.pill.red{background:#fee9eb;color:#b83548}.tableWrap{overflow:auto}.table{width:100%;border-collapse:collapse;font-size:13px}.table th{background:#f5f8fe;color:#5b7191;text-align:left;font-size:11px;letter-spacing:.4px;font-weight:800;white-space:nowrap}.table th,.table td{padding:13px 11px;border-bottom:1px solid #edf1f6;vertical-align:middle}.table td{color:#34506e}.empty{text-align:center;padding:42px;color:#95a2b3}.filebox{display:flex;justify-content:center;align-items:center;gap:16px;border:2px dashed #c8d9f6;border-radius:14px;padding:28px;text-align:center;background:#f7faff;cursor:pointer}.filebox input{display:none}.notice{font-size:13px;line-height:1.65;background:#fff8e7;color:#8f6112;border:1px solid #f5d792;padding:13px 16px;border-radius:11px;margin:15px 0}.notice.ok{background:#ebfff6;color:#087a58;border-color:#b7efd4}.notice.danger{background:#fff2f3;color:#a72a42;border-color:#ffd0d6}.notice code{color:#174a96}.editorQ{padding:22px;border:1px solid var(--border);border-radius:14px;background:#fff;margin:15px 0}.editorQHead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.qtype{width:170px}.opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}.optedit{display:flex;gap:8px;align-items:center}.optedit .input{flex:1;min-width:0}.qcontent{line-height:1.8;font-size:16px;white-space:normal;overflow-wrap:anywhere}.qcontent math{font-size:1.09em;vertical-align:middle;max-width:100%;overflow:auto}.qcontent img.docimg,.qcontent img{display:block;max-width:100%;width:auto;max-height:310px;object-fit:contain;margin:10px auto}.question{background:#fff;border:1px solid var(--border);border-radius:15px;padding:23px;margin:16px 0}.question h3{font-size:13px;margin:0 0 11px;color:#226ad5}.choice{display:flex;align-items:flex-start;gap:13px;border:1px solid #dce5f2;padding:14px 15px;border-radius:10px;margin:9px 0;cursor:pointer;transition:.12s}.choice:hover{border-color:#76a8ee;background:#f5f9ff}.choice:has(input:checked){border-color:#2d72dc;background:#edf5ff;box-shadow:0 0 0 1px #d5e5ff}.choice .letter{background:#edf2fa;color:#245da7;display:grid;place-items:center;width:27px;height:27px;border-radius:9px;flex-shrink:0;font-weight:850}.choice input{margin-top:7px;accent-color:#215cd4}.choice .qcontent{flex:1}.questionTools{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:0 0 15px}.stickyTop{position:sticky;top:68px;background:#f3f6fcfa;z-index:5;padding:11px 0}.roomCode{font-size:48px;font-weight:900;color:#1c62d3;letter-spacing:11px}.urlbox{background:#eaf2ff;padding:13px;border-radius:9px;font-size:13px;word-break:break-all;color:#21509a}.qr{display:flex;align-items:center;justify-content:center;min-height:204px}.qr canvas{width:194px;height:194px;border:1px solid #dbe5f0;border-radius:8px;padding:3px;background:white}.progressLine{height:8px;background:#e3ecfa;border-radius:40px;overflow:hidden}.progressLine div{height:100%;background:#3787ea;border-radius:40px}.center{text-align:center;padding:28px}.spinner{height:29px;width:29px;border:3px solid #dae5f4;border-top-color:#2f7bdd;border-radius:50%;animation:spin 1s linear infinite;margin:auto}@keyframes spin{to{transform:rotate(360deg)}}#toast{position:fixed;z-index:100;left:50%;bottom:25px;transform:translateX(-50%) translateY(120px);background:#0c2b55;color:white;padding:12px 20px;border-radius:12px;font-size:13px;box-shadow:0 15px 40px #1e356255;transition:transform .2s;max-width:min(550px,90vw);text-align:center}#toast.show{transform:translateX(-50%) translateY(0)}.split{display:grid;grid-template-columns:300px 1fr;gap:20px}.sideList{max-height:520px;overflow:auto}.sideItem{border:1px solid #e3eaf5;border-radius:10px;padding:12px;margin-bottom:7px;cursor:pointer}.sideItem:hover,.sideItem.active{border-color:#9abcf4;background:#f1f7ff}.testnav{display:flex;gap:8px;flex-wrap:wrap}.testnav button{width:40px;height:40px;border:1px solid #cbd9ee;background:white;border-radius:9px;font-weight:800;color:#66809d}.testnav button.done{background:#d5f6e9;color:#076b4c;border-color:#a3e4cb}.testnav button.current{background:#225dd3;color:#fff;border-color:#225dd3}.timer{font-variant-numeric:tabular-nums;font-size:21px;font-weight:900;color:#155ac2}.timer.soon{color:#dc3f51}.studentHeader{display:flex;justify-content:space-between;align-items:center;gap:12px}.studentLayout{max-width:900px;margin:auto}.testCard{min-height:350px}.mobileShow{display:none}@media(max-width:850px){.col4,.col5,.col6,.col7,.col8{grid-column:span 12}.topbar{padding:12px 18px}.shell{width:calc(100% - 24px);margin:16px auto}.hero{padding:25px;min-height:190px}.hero h1{font-size:24px}.heroIcon{font-size:55px}.split{grid-template-columns:1fr}.footer{display:block;text-align:center;line-height:1.8}.badge{display:none}.opts{grid-template-columns:1fr}.topright{font-size:10px}.studentHeader{flex-wrap:wrap}.roomCode{font-size:37px}}

/* LAN EXAM STUDIO v1.2 — dedicated fullscreen examination workspace */
.examApp{width:100%;max-width:1560px;margin:auto}
body:has(.examApp) .shell{width:min(1560px,calc(100% - 36px));margin:17px auto}
body.studentFullscreen .topbar,body.studentFullscreen .footer{display:none}
body.studentFullscreen .shell{margin:0 auto;max-width:none;width:100%;padding:12px 20px}
:fullscreen{background:#f3f6fc}
.examSticky{position:sticky;top:0;z-index:8;background:#fff;border:1px solid #e0e8f4;border-radius:16px;padding:14px 21px;margin-bottom:16px;box-shadow:0 8px 30px #18345411}
.examIdentity{min-width:0;display:flex;flex-direction:column;gap:4px}.examIdentity strong{font-size:16px;color:#173969}.examIdentity .eyebrow{letter-spacing:.7px}
.examClock{background:#eaf3ff;border-radius:10px;padding:9px 13px;font-weight:800;color:#1a60bb;white-space:nowrap}
.examWorkspace{display:grid;grid-template-columns:minmax(0,1fr) 315px;gap:18px;align-items:start}
.examQuestionPane{min-width:0}.examQuestionPane .question{margin:0;border-radius:0 0 17px 17px;min-height:390px;border-top:none;padding:30px 36px;box-shadow:var(--shadow)}
.examQuestionPane .question h3{letter-spacing:.6px;font-size:13px;margin-bottom:18px;color:#1c66cb}.examQuestionPane .qcontent{font-size:17px;line-height:1.85}
.partBanner{background:linear-gradient(105deg,#11478f,#286be1);color:white;padding:17px 25px;border-radius:17px 17px 0 0;display:flex;align-items:center;gap:18px}
.partBanner .partIndex{display:inline-flex;align-items:center;background:#ffffff27;border:1px solid #ffffff35;border-radius:9px;padding:9px 13px;font-weight:900;white-space:nowrap;font-size:13px}
.partBanner strong{font-size:16px}.partBanner p{margin:3px 0 0;font-size:12px;color:#d6e7ff}
.examBottomActions{margin-top:15px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:white;border-radius:14px;padding:17px;border:1px solid var(--border)}
.examSaveHint{font-size:12px;color:#879ab3;text-align:center;margin:12px}
.examSidebar{background:white;border:1px solid var(--border);box-shadow:var(--shadow);border-radius:17px;padding:21px;position:sticky;top:83px;max-height:calc(100dvh - 99px);overflow-y:auto;scrollbar-width:thin}
.sidebarTop{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px;color:#17375e;font-size:14px}.examSidebar .progressLine{height:7px}
.sectionNav{margin-top:13px}.navPart{padding:15px 0;border-bottom:1px solid #e8edf5}.navPartHead{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:11px}.navPartHead>div{display:flex;flex-direction:column;gap:3px}.navPartIndex{color:#236ad6;font-size:11px;font-weight:900;letter-spacing:.8px}.navPartHead strong{font-size:12px;color:#3f5679}.navPartCount{white-space:nowrap;font-size:12px;color:#7387a6;font-weight:800;background:#edf3fa;border-radius:20px;padding:5px 8px}.navPartButtons{display:flex;flex-wrap:wrap;gap:8px}
.navQuestion{width:38px;height:38px;border:1px solid #d1dded;background:#fff;border-radius:10px;color:#607896;font-weight:800}.navQuestion:hover{border-color:#327be0}.navQuestion.done{background:#dff6eb;border-color:#a6e5c8;color:#087650}.navQuestion.current,.navQuestion.current.done{background:#2264d1;border-color:#2264d1;color:#fff;box-shadow:0 4px 11px #1465ce44}
.navEmpty{opacity:.55}.navEmpty .navPartButtons{font-size:11px}.sidebarFoot{padding-top:16px}.legend{display:flex;flex-wrap:wrap;gap:7px;align-items:center;color:#7487a2;font-size:10px;line-height:2}.legendDot{height:9px;width:9px;border-radius:3px;background:#fff;border:1px solid #b7c8db}.legendDot.done{background:#29ba86;border:0}.legendDot.current{background:#2264d1;border:0}.sidebarWarnings{background:#fff2e7;color:#b26613;font-weight:800;font-size:12px;border-radius:9px;padding:9px 12px;margin-top:14px}
.screenGuard[hidden]{display:none!important}.screenGuard{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:linear-gradient(135deg,#0b2555f5,#09294bf2);padding:20px;overflow:auto}.screenGuardCard{width:min(520px,100%);background:#fff;border-radius:24px;padding:32px 36px;box-shadow:0 25px 100px #0005;text-align:center}.guardSymbol{display:grid;place-items:center;font-size:41px;color:#2d6fdc;background:#e8f2ff;border-radius:24px;width:84px;height:84px;margin:0 auto 20px}.screenGuardCard h2{font-size:24px;line-height:1.4;margin:14px 0;color:#16386d}.screenGuardCard p{font-size:14px;line-height:1.7;color:#536a86}.guardWarnings{background:#fff3e8;color:#995b18;border:1px solid #f4d6ac;padding:13px;border-radius:11px;margin:17px 0;font-size:13px}.guardWarnings strong{font-size:23px;margin-left:7px;color:#b33932}.screenGuardCard .btn{width:100%;padding:15px;font-size:16px}.screenGuardCard .guardFoot{font-size:11px;color:#8394ac;margin-bottom:0}
.reviewQuestion{padding:21px 0;border-bottom:1px solid #e3eaf5}.reviewQuestion:last-child{border-bottom:0}.reviewQTitle{display:flex;justify-content:space-between;align-items:center}.reviewPrompt{margin:16px 0 18px}.reviewChoice{display:flex;align-items:flex-start;gap:10px;border:1px solid #e1e8f3;padding:10px 13px;margin-bottom:7px;border-radius:9px}.reviewChoice>div{flex:1;min-width:0}.reviewChoice.isCorrect{border-color:#8ed9ac;background:#e9f9f1}.reviewChoice.isWrong{background:#fff0f1;border-color:#ecb0b8}.reviewChip{font-size:11px;border-radius:6px;padding:5px 8px;white-space:nowrap}.reviewChip.good{background:#c4eed7;color:#05623d}.reviewChip.studentSelect{background:#e6effc;color:#1b5aa2}.reviewTFRow{display:flex;gap:14px;padding:12px 10px;border:1px solid #e1e9f4;border-radius:9px;margin:7px 0;align-items:flex-start}.reviewTFText{flex:1}.reviewTFRow>div:last-child{min-width:130px;text-align:right;font-size:12px}.goodText{color:#0d8e60}.badText{color:#d13a48}.reviewShort{padding:16px;background:#f5f8fe;border-radius:11px}.reviewCorrect{color:#087b54;background:#e5f8ee;padding:11px;border-radius:9px;margin-top:12px}.eventHistory{font-size:12px;line-height:2;color:#617995;margin-top:13px}
@media(max-width:960px){.examWorkspace{grid-template-columns:minmax(0,1fr) 245px}.examSidebar{padding:14px}.examQuestionPane .question{padding:21px}}
@media(max-width:650px){body:has(.examApp) .shell,body.studentFullscreen .shell{width:100%;padding:8px;margin:0}.examWorkspace{display:flex;flex-direction:column}.examQuestionPane,.examSidebar{width:100%}.examSidebar{position:static;max-height:none;order:2}.examSticky{flex-wrap:wrap;border-radius:10px}.examSticky .actions{width:100%;justify-content:space-between}.partBanner{padding:13px}.examQuestionPane .question{padding:18px;min-height:300px}.examBottomActions{gap:5px;padding:10px}.examBottomActions .btn{padding:9px;font-size:12px}.screenGuardCard{padding:25px 19px}.screenGuardCard h2{font-size:21px}.reviewTFRow{flex-wrap:wrap}.reviewTFRow>div:last-child{width:100%;text-align:left}}

.submitConfirm[hidden]{display:none!important}.submitConfirm{position:fixed;inset:0;z-index:900;display:grid;place-items:center;background:#092347ba;padding:19px}.submitConfirmCard{background:#fff;padding:30px;border-radius:22px;text-align:center;max-width:470px;width:100%;box-shadow:0 24px 70px #10244255}.submitConfirmCard h2{font-size:23px;margin:15px 0 5px}.submitConfirmCard p{line-height:1.75;color:#637792}.submitConfirmCard .actions{justify-content:center;margin-top:24px}.submitConfirmCard .guardSymbol{color:#0a8f69;background:#ddf8ed}
/* Keep hidden toast entirely out of long-page screenshots and accessibility hit areas. */
#toast:not(.show){visibility:hidden;pointer-events:none}


/* ===== School branding upgrade v1.3 ===== */
:root{--blue:#0f67b3;--blue2:#0a4d88;--green:#0e9d58;--red:#ef3c3b;--bg:#eef5fb;--bannerShadow:0 18px 42px rgba(16,63,115,.14)}
body{background:linear-gradient(180deg,#eef5fb 0%,#f6fbff 280px,#f3f6fc 100%)}
.schoolTopbar{background:linear-gradient(135deg,#ffffff 0%,#f7fbff 48%,#ecf7ff 100%);padding:14px max(24px,calc((100vw - 1230px)/2));gap:18px;box-shadow:0 8px 30px rgba(16,63,115,.08)}
.brandBanner{display:flex;align-items:center;gap:18px;min-width:0;flex:1}
.brandLogoWrap{width:86px;height:86px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 6px 18px rgba(18,72,124,.12);border:3px solid #dff1e8;flex-shrink:0}
.brandLogo{width:74px;height:74px;object-fit:contain;border-radius:50%}
.brandHeading{min-width:0}
.brandKicker{font-size:12px;letter-spacing:1.8px;font-weight:900;color:#119653;text-transform:uppercase;margin-bottom:4px}
.brandTitle{font-size:30px;line-height:1.1;font-weight:900;color:#0f3d7d;letter-spacing:.2px;text-transform:uppercase}
.brandSubtitle{font-size:13px;color:#4f6687;margin-top:7px;line-height:1.45}
.topMeta{display:flex;flex-direction:column;align-items:flex-end;gap:10px;flex-shrink:0}
#roleLabel{font-size:12px;font-weight:800;color:#0b5f98;background:#eff7ff;border:1px solid #d8e9ff;padding:7px 12px;border-radius:999px;min-height:34px;display:flex;align-items:center}
.badge{background:#eefcf4;border-color:#cbeed9;color:#117d52;box-shadow:0 6px 14px rgba(23,123,96,.08)}
.dot{background:#0fb86f;box-shadow:0 0 0 3px #daf8ea}
.shell{margin:24px auto 32px}
.footer{background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)}
.hero{background:linear-gradient(120deg,#0b5aa2,#1b9ed6 65%,#17b067);border:1px solid rgba(255,255,255,.12);box-shadow:var(--bannerShadow)}
.tabs{background:linear-gradient(180deg,#fff 0%,#f9fbff 100%);box-shadow:var(--shadow)}
.tab.active{background:linear-gradient(180deg,#eaf5ff 0%,#dcebff 100%);color:#0d57b2}
.card,.stat,.question{box-shadow:0 12px 34px rgba(21,72,132,.08)}
.btn{background:linear-gradient(180deg,#0f67b3 0%,#0b5594 100%);border-color:#0b5a9b;box-shadow:0 8px 18px rgba(15,103,179,.18)}
.btn.secondary{box-shadow:none}.btn.success{background:linear-gradient(180deg,#0fa657 0%,#0b8d49 100%);border-color:#0b8d49}.btn.danger{box-shadow:none}
.roomCode{color:#0d5da7;text-shadow:0 6px 16px rgba(13,93,167,.12)}
.partBanner{background:linear-gradient(135deg,#f0fbf5 0%,#e9f5ff 100%);border:1px solid #d6ebf9}
.testShell{background:transparent}
.testAside{background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);border:1px solid #dfe9f6;box-shadow:0 15px 35px rgba(17,64,120,.08)}
.testMain{background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);border:1px solid #dfe9f6;box-shadow:0 15px 35px rgba(17,64,120,.08)}
.testNavSection{border:1px solid #e3edf9;background:#fbfdff}
.testnav button.current{background:linear-gradient(180deg,#0f67b3 0%,#0d589a 100%)}
.testnav button.done{background:linear-gradient(180deg,#13a35a 0%,#0f8d4e 100%)}
.partDot{background:linear-gradient(180deg,#0f67b3 0%,#0e5b9f 100%)}
.fullscreenGate{background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(242,249,255,.98))}
@media (max-width:960px){
  .schoolTopbar{flex-direction:column;align-items:stretch}
  .brandBanner{align-items:flex-start}
  .topMeta{align-items:flex-start}
  .brandTitle{font-size:24px}
}
@media (max-width:640px){
  .brandLogoWrap{width:68px;height:68px}.brandLogo{width:58px;height:58px}
  .brandTitle{font-size:20px}
  .brandKicker{font-size:11px;letter-spacing:1.2px}
  .brandSubtitle{font-size:12px}
  .schoolTopbar{padding:12px 14px}
  .footer{flex-direction:column;align-items:flex-start;padding:16px 14px}
}


/* ===== UI refresh v1.4 ===== */
.modernTabs{display:flex;gap:10px;flex-wrap:wrap;padding:8px 10px;background:linear-gradient(180deg,#fff 0%,#f7fbff 100%);box-shadow:0 12px 28px rgba(16,63,115,.08);border-radius:18px}
.modernTabs .tab{display:flex;align-items:center;gap:8px;padding:11px 16px;border-radius:12px}
.modernTabs .tabIcon{font-size:16px;line-height:1}
.welcomeSchool{display:flex;flex-direction:column;gap:20px}.welcomeHero{display:grid;grid-template-columns:1.7fr .9fr;gap:22px;align-items:stretch}.welcomeCopy,.schoolBadgeCard{background:#fff;border:1px solid var(--border);border-radius:24px;box-shadow:var(--bannerShadow)}
.welcomeCopy{padding:34px;background:linear-gradient(135deg,#ffffff 0%,#f7fbff 55%,#edf7ff 100%)}
.welcomeCopy h1{font-size:38px;line-height:1.12;margin:10px 0 12px;color:#0e3c7a}.welcomeCopy p{font-size:15px;line-height:1.7;color:#4c6485;margin:0}
.welcomeHighlights{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:24px}.miniFeature{display:flex;gap:10px;padding:14px;border-radius:16px;background:#f9fcff;border:1px solid #e5eef9}.miniFeature span{font-size:24px}.miniFeature b{display:block;color:#153f7b}.miniFeature small{display:block;color:#6f84a0;margin-top:3px;line-height:1.45}
.schoolBadgeCard{padding:26px;text-align:center;background:linear-gradient(180deg,#ffffff 0%,#f5fbff 100%)}.schoolBadgeLogo{width:110px;height:110px;border-radius:50%;margin:0 auto 14px;background:#fff;display:grid;place-items:center;box-shadow:0 10px 24px rgba(16,63,115,.1);border:4px solid #e1f2e9}.schoolBadgeLogo img{width:94px;height:94px;object-fit:contain;border-radius:50%}.schoolBadgeCard h3{margin:10px 0;color:#0e3c7a}.schoolBadgeCard ol{text-align:left;color:#4d6584;line-height:1.8;padding-left:22px;margin:12px 0 0}
.rolePanel{position:relative;overflow:hidden}.rolePanel:before{content:'';position:absolute;inset:auto -25px -25px auto;width:110px;height:110px;border-radius:50%;background:linear-gradient(180deg,#ffffff00,#ffffff66)}.teacherPanel{background:linear-gradient(135deg,#ffffff 0%,#f7fbff 100%)}.studentPanel{background:linear-gradient(135deg,#ffffff 0%,#f6fff8 100%)}.roleIcon{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;font-size:28px;background:#edf5ff;margin-bottom:14px}
.featureTile{background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)}.featureTile h3,.infoMiniCard h3{margin:8px 0 4px;color:#103d7a}.featureTileIcon{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;font-size:26px;background:#edf5ff;box-shadow:inset 0 0 0 1px #d8e8fb}
.infoMiniCard{background:#fff;border:1px solid var(--border);border-radius:17px;padding:24px;box-shadow:0 12px 30px rgba(21,72,132,.08)}
.dashboardHero{display:grid;grid-template-columns:1.6fr .8fr;gap:20px;background:linear-gradient(120deg,#0b5aa2,#1aa1d6 60%,#18a564);padding:28px;border-radius:24px;color:#fff;box-shadow:var(--bannerShadow)}
.dashboardHero h1{font-size:34px;margin:8px 0 10px}.dashboardHero p{color:#e4f0ff;line-height:1.7;margin:0}.dashboardHero .btn.secondary{background:#ffffff22;color:#fff;border-color:#ffffff44}.dashboardHero .btn{box-shadow:none}
.heroMiniCard{background:#ffffff18;border:1px solid #ffffff2c;border-radius:20px;padding:20px;backdrop-filter:blur(6px)}.heroMiniCard strong{display:block;font-size:22px;margin:6px 0 8px}.heroMiniCard p{font-size:13px;color:#eef6ff}.heroMiniLabel{font-size:11px;letter-spacing:1.6px;text-transform:uppercase;color:#d4e8ff;font-weight:800}
.statsGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0}.statCard{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--border);border-radius:20px;padding:22px;box-shadow:0 12px 30px rgba(21,72,132,.08)}.statCard strong{display:block;font-size:30px;color:#123f7d}.statCard span{color:#7487a2;font-size:13px}.statIcon{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(180deg,#eff6ff 0%,#e7f4ff 100%);font-size:28px}
.modernCard{background:linear-gradient(180deg,#fff 0%,#fcfdff 100%)}.quickActionsGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.quickAction{display:flex;align-items:center;gap:14px;text-align:left;background:#f8fbff;border:1px solid #dfe9f6;border-radius:18px;padding:16px;cursor:pointer;transition:.15s}.quickAction:hover{transform:translateY(-2px);border-color:#8db7f0;background:#f2f8ff}.quickActionIcon{width:52px;height:52px;border-radius:16px;background:#e9f3ff;display:grid;place-items:center;font-size:26px;flex-shrink:0}.quickAction b{display:block;color:#133f7d}.quickAction small{display:block;color:#70839e;margin-top:3px;line-height:1.45}
.flowSteps{display:flex;gap:14px;flex-wrap:wrap}.flowSteps.vertical{flex-direction:column}.flowStep{display:flex;align-items:center;gap:12px;min-width:0;background:#f9fbff;border:1px solid #e5eef9;border-radius:16px;padding:12px 14px;flex:1}.flowStep span{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(180deg,#0f67b3 0%,#0d589a 100%);color:#fff;font-weight:900;flex-shrink:0}.flowStep b{display:block;color:#113f7c}.flowStep small{display:block;color:#7487a2;margin-top:2px}
.statusList{display:flex;flex-direction:column;gap:14px}.statusItem{display:flex;gap:10px;align-items:flex-start;padding:12px 0;border-bottom:1px dashed #e5eef8}.statusItem:last-child{border-bottom:none}.statusDot{width:12px;height:12px;border-radius:50%;margin-top:4px;flex-shrink:0}.statusDot.good{background:#11a85d;box-shadow:0 0 0 4px #dcf7e8}.statusDot.warn{background:#f0a11d;box-shadow:0 0 0 4px #fff1d7}
@media (max-width:1040px){.welcomeHero,.dashboardHero{grid-template-columns:1fr}.welcomeHighlights,.statsGrid{grid-template-columns:1fr 1fr}.quickActionsGrid{grid-template-columns:1fr}}
@media (max-width:700px){.welcomeCopy h1,.dashboardHero h1{font-size:28px}.welcomeHighlights,.statsGrid{grid-template-columns:1fr}.miniFeature,.flowStep,.statCard,.quickAction{padding:14px}.welcomeCopy{padding:24px}.schoolBadgeCard{padding:20px}}
/* Random question issuance v1.6 */
.samplePanel{border-radius:16px;border:1px solid #c9e5d7;background:linear-gradient(125deg,#f6fff9,#f3f9ff);padding:18px;margin:18px 0}
.sampleCountInput{font-size:24px;font-weight:900;color:#176bb3;max-width:210px}
.samplePartGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.samplePartGrid[hidden]{display:none!important}
.sampleBankStats{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}
@media(max-width:700px){.samplePartGrid{grid-template-columns:1fr}}

/* ===== SCHOOL EDITION v2.0 ===== */
.schoolNav{width:100%;display:flex;justify-content:flex-start;gap:6px;flex-wrap:wrap}.schoolNav .tab{padding:10px 12px;font-size:12px}.schoolMetaGrid{display:grid;grid-template-columns:2fr 1fr 1.3fr;gap:14px}.schoolOverview{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}.schoolCard{min-height:150px}.schoolCard h3{margin:0 0 18px;color:#103c7a}.schoolUser{font-size:12px;font-weight:800;color:#0e5c92}.schoolCard details summary{cursor:pointer;color:#115ba4;font-weight:700}.schoolCard select[multiple]{min-height:126px;padding:8px}.schoolCard textarea{min-height:150px}.schoolCard .tableWrap{max-height:520px;overflow:auto}@media(max-width:800px){.schoolMetaGrid{grid-template-columns:1fr}.schoolNav .tab{padding:9px 10px}.schoolNav{gap:4px}}

/* School Edition 2.1 — Matrix, calendar and analytics */
.matrixCellRow{display:grid;grid-template-columns:1.1fr 1.6fr 1.1fr .65fr auto;gap:12px;align-items:end;padding:16px;margin-bottom:12px;border:1px solid #dfeaf5;border-radius:15px;background:linear-gradient(180deg,#fbfdff,#f4f9ff)}
.matrixCellRow .field{margin:0}.matrixLegend{padding:15px;background:#edf7ff;border:1px solid #d3eafa;color:#315f86;border-radius:12px;font-size:13px;line-height:1.55;margin-bottom:15px}
.matrixCellRow .mcRemove{margin-bottom:0;height:43px}
.advancedReportFilters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto auto;gap:12px;align-items:end}
.advancedReportFilters .field{margin:0}.advancedReportFilters .btn{min-height:43px;white-space:nowrap}
.schoolMetaGrid{align-items:start}
@media(max-width:1050px){.advancedReportFilters{grid-template-columns:repeat(3,minmax(0,1fr))}.advancedReportFilters .btn{width:max-content}.matrixCellRow{grid-template-columns:repeat(2,minmax(0,1fr))}.matrixCellRow .mcRemove{align-self:end}}
@media(max-width:680px){.advancedReportFilters,.matrixCellRow{grid-template-columns:1fr}.matrixCellRow .mcRemove{justify-self:end}.advancedReportFilters .btn{width:100%}}

/* School Edition v2.2 — Excel roster import */
.excelImportCard{background:linear-gradient(140deg,#f1fff8,#f7fbff);border:1px solid #b5e9d0;border-radius:17px;padding:22px;margin:18px 0 10px}.excelImportHeading{display:flex;gap:14px;align-items:center}.excelImportHeading h3{margin:0 0 5px;color:#11553b}.excelImportIcon{display:grid;place-items:center;background:#d9f7e7;border-radius:12px;width:52px;height:52px;font-size:30px;flex-shrink:0}.excelImportSummary{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:14px 0}.excelImportResults{margin-top:17px;padding-top:12px;border-top:1px solid #d3e9df}.excelImportResults .tableWrap{max-height:390px}.excelImportResults ul{margin:8px 0 3px;padding-left:20px}.excelImportApproval{border-radius:14px;margin-top:15px;background:#fff;border:1px solid #cce9db;padding:15px}.excelCheck{display:flex;align-items:flex-start;gap:9px;margin-bottom:14px;font-size:13px;line-height:1.5}.excelCheck input{margin-top:3px}.excelImportApproval .btn{margin-bottom:8px}@media(max-width:700px){.excelImportCard{padding:14px}.excelImportSummary{gap:6px}}

/* School Edition v2.3: management and identity confirmation */
.manageBackdrop{position:fixed;z-index:1000;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(15,33,61,.57);backdrop-filter:blur(4px)}
.manageCard{width:min(600px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:22px;padding:28px;box-shadow:0 30px 100px #08214355}
.manageCard h2{font-size:22px}.manageActions{margin-top:25px;justify-content:flex-end}.confirmCheck{display:flex;align-items:center;gap:12px;color:#21476f;padding:14px 0}
.confirmBadge{display:grid;place-items:center;color:#fff;font-size:27px;font-weight:900;width:60px;height:60px;border-radius:18px;background:linear-gradient(130deg,#1ab56c,#0c8d54);margin:0 0 18px;box-shadow:0 10px 25px #20a86a3f}
.joinConfirmPage{max-width:590px}.joinConfirmPage .card{padding:35px}.confirmDetails{margin:24px 0;border:1px solid #dae7f4;background:linear-gradient(180deg,#f7fbff,#fff);border-radius:16px;padding:7px 19px}.confirmRow{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:13px 0;border-bottom:1px solid #e8eff7;color:#68819d;font-size:14px}.confirmRow:last-child{border-bottom:none}.confirmRow b{color:#153c71;text-align:right;max-width:64%;overflow-wrap:anywhere}.confirmActions{justify-content:space-between}.confirmActions button{min-height:46px}
@media(max-width:630px){.joinConfirmPage .card{padding:22px}.confirmActions{flex-direction:column-reverse}.confirmActions button{width:100%}.confirmRow{font-size:13px}.manageCard{padding:18px}}

/* Gán điểm hàng loạt v2.4 */
.bulkPointsCard{border:1px solid #b9d8f2;background:linear-gradient(135deg,#ffffff,#f3faff);}
.bulkPointsCard h3{margin:0;color:#114b82}.bulkPointsCard .pill{white-space:normal}
.bulkPointsForm{display:grid;grid-template-columns:minmax(140px,1fr) minmax(210px,1.5fr) auto;gap:16px;align-items:end}
.bulkPointsForm .field{margin:0}.bulkPointsForm button{min-height:43px}
.bulkPointsFooter{margin-top:14px;display:flex;flex-direction:column;gap:6px}
#bulkPointsMessage{margin-bottom:0}
@media(max-width:800px){.bulkPointsForm{grid-template-columns:1fr}.bulkPointsForm button{width:100%}.bulkPointsCard .sectionHead{flex-wrap:wrap}}

/* v2.5 - Word tables preserved on narrow student screens */
.qcontent .doc-table-scroll,.reviewPrompt .doc-table-scroll{max-width:100%;width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;margin:12px 0 16px;border:1px solid #d4dfec;border-radius:10px;background:#fff}
.qcontent .doc-table,.reviewPrompt .doc-table{border-collapse:collapse;border-spacing:0;width:max-content;min-width:100%;max-width:none;table-layout:auto;margin:0;font-size:clamp(12px,2.5vw,16px);line-height:1.5;overflow-wrap:normal}
.qcontent .doc-table th,.qcontent .doc-table td,.reviewPrompt .doc-table th,.reviewPrompt .doc-table td{border:1px solid #9eafc5;padding:8px 12px;vertical-align:middle;white-space:normal;min-width:70px;text-align:center}
.qcontent .doc-table th,.reviewPrompt .doc-table th{font-weight:750;background:#f1f6fd;color:#143d74}
.qcontent .doc-table sub,.qcontent .doc-table sup{font-size:.75em;line-height:0}
@media(max-width:650px){.qcontent .doc-table th,.qcontent .doc-table td,.reviewPrompt .doc-table th,.reviewPrompt .doc-table td{padding:7px 10px;min-width:85px}.qcontent .doc-table-scroll{box-shadow:inset -14px 0 15px -18px #224b84}.qcontent .doc-table{font-size:14px}}

.doc-table-hint{display:none;font-size:12px;color:#5377a6;margin:-7px 0 14px;text-align:right}
@media(max-width:650px){.qcontent .doc-table-hint,.reviewPrompt .doc-table-hint{display:block}}

/* Review by examination parts - v2.5.1 */
.reviewPartNav{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 15px}
.reviewPartLink{flex:1 1 185px;display:flex;align-items:center;justify-content:space-between;gap:8px;text-decoration:none;padding:12px 16px;border-radius:12px;background:#edf5ff;border:1px solid #cbdff8;color:#134c91;font-size:13px;font-weight:850}
.reviewPartLink:hover,.reviewPartLink:focus-visible{background:#dcecff;border-color:#8eb8ed;outline-offset:2px}
.reviewPartLink b{font-size:11px;background:#fff;padding:4px 9px;border-radius:15px;white-space:nowrap}
.reviewGrouped{padding:12px 22px 20px}
.reviewPartSection{scroll-margin-top:125px;min-width:0;padding:11px 0 19px}
.reviewPartSection+.reviewPartSection{border-top:2px solid #dce9fa;padding-top:25px}
.reviewPartHeading{display:flex;align-items:center;gap:14px;padding:15px 18px;border:1px solid #d8e5f7;background:linear-gradient(100deg,#eaf4ff 0%,#f3fbf7 100%);border-radius:12px;margin-bottom:6px}
.reviewPartBadge{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;background:#115bb0;color:white;border-radius:8px;padding:9px 13px;font-size:12px;font-weight:850}
.reviewPartHeadingText{flex:1;min-width:0}.reviewPartHeadingText h3{margin:0 0 4px;color:#143c76;font-size:17px}.reviewPartHeadingText p{color:#5d7795;font-size:12px;margin:0}
.reviewPartCount{background:#fff;border:1px solid #d6e5f8;border-radius:20px;color:#235a9c;font-size:12px;font-weight:850;padding:7px 12px;white-space:nowrap}
.reviewPartEmpty{color:#8192a7;padding:14px 12px;font-style:italic;font-size:13px}
@media(max-width:640px){.reviewGrouped{padding:10px 14px}.reviewPartHeading{gap:8px;flex-wrap:wrap;padding:12px}.reviewPartHeadingText h3{font-size:15px}.reviewPartBadge{padding:7px 10px}}

/* Shared passages / reading comprehension / linked-question groups */
.sharedContext{background:#f6faff;border:1px solid #c7dff7;border-left:5px solid #2574cf;border-radius:13px;padding:16px 18px;margin:10px 0 22px;line-height:1.7;overflow-wrap:anywhere}
.sharedContextHead{font-size:12px;font-weight:900;color:#195cb2;letter-spacing:.5px;margin-bottom:10px}
.sharedContext .qcontent{line-height:1.8}
.sharedContext img{max-width:100%;height:auto}
.sharedContext .doc-table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.contextManage{margin:16px 0;background:linear-gradient(160deg,#fff,#f6fbff)}
.contextGroupForm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.contextGroupForm .contextFull{grid-column:span 2}
.contextGroupForm .field{margin:0}
.sharedEditorBadge{background:#eaf7ff;color:#154c8a;border-radius:10px;padding:9px 12px;margin:10px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
@media(max-width:650px){.contextGroupForm{grid-template-columns:1fr}.contextGroupForm .contextFull{grid-column:span 1}.sharedContext{padding:13px 12px}}

/* Legacy Equation Editor/MathType images */
.docimg[data-role=equation]{max-height:3.4em;max-width:100%;width:auto;height:auto;vertical-align:middle;object-fit:contain}

/* ===== v2.8.3 — COMPACT MATH & FIGURE LAYOUT ON THE EXAM SCREEN =====
   In DOCX imports MathType equations are raster previews embedded inside a
   sentence. A previous global `display:block` rule for every Word image broke
   those sentences into many isolated lines. Figure images remain block media. */
.examQuestionPane .qcontent,
.examQuestionPane .sharedContext .qcontent {
  font-size:16px;
  line-height:1.7;
  overflow-wrap:break-word;
}
/* Keep OLE/MathType inline equations on the text baseline. Important: scope
   after the global image rule and distinguish by data-role, not file type. */
.examQuestionPane .qcontent img.docimg[data-role="equation"],
.examQuestionPane .qcontent img[data-role="equation"] {
  display:inline-block;
  vertical-align:-0.27em;
  max-height:2.05em;
  max-width:min(100%,22em);
  width:auto;
  height:auto;
  margin:0 .1em;
  object-fit:contain;
  border:none;
}
.examQuestionPane .qcontent math {
  display:inline-block;
  vertical-align:middle;
  font-size:1em;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
}
/* Full-sized graph, variation table and geometry drawings have their own
   limits and are centered without occupying most of a long exam page. */
.examQuestionPane .qcontent img.docimg[data-role="figure"],
.examQuestionPane .qcontent img[data-role="figure"] {
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:min(285px,42vh);
  object-fit:contain;
  margin:9px auto 12px;
}
/* If old stored questions lack data-role, preserve existing safe rendering. */
.examQuestionPane .question.testCard {min-height:0;}
.examQuestionPane .question .choice {
  align-items:center;
  gap:10px;
  padding:10px 12px;
  min-height:48px;
  margin:7px 0;
}
.examQuestionPane .choice input {margin-top:0;flex-shrink:0;}
.examQuestionPane .choice .letter {width:26px;height:26px;}
.examQuestionPane .choice .qcontent {min-width:0;flex:1;line-height:1.5;}
.examQuestionPane .choice .qcontent img[data-role="equation"] {
  max-height:2.15em;
  vertical-align:-0.3em;
}
.examQuestionPane .choice .qcontent img[data-role="figure"] {
  max-height:140px;
  margin:4px 0;
}
.examQuestionPane .question h3 {margin-bottom:12px;}
.examQuestionPane .question .qcontent > br + br {display:none;}
/* Review screen should also avoid separating math images from prose. */
.reviewPrompt .qcontent img[data-role="equation"],
.reviewChoice .qcontent img[data-role="equation"] {
  display:inline-block;
  max-height:2.1em;
  max-width:100%;
  vertical-align:-.27em;
  margin:0 .1em;
}
.reviewPrompt .qcontent img[data-role="figure"] {
  display:block;
  max-height:300px;
  max-width:100%;
  margin:9px auto;
}
@media(max-width:650px){
  .examQuestionPane .qcontent,
  .examQuestionPane .sharedContext .qcontent{font-size:15px;line-height:1.65;}
  .examQuestionPane .qcontent img.docimg[data-role="equation"],.examQuestionPane .qcontent img[data-role="equation"]{max-height:2.1em;max-width:100%;}
  .examQuestionPane .qcontent img.docimg[data-role="figure"],.examQuestionPane .qcontent img[data-role="figure"]{max-height:min(220px,35vh);}
  .examQuestionPane .question{padding:16px 14px;}
  .examQuestionPane .question .choice{padding:10px 9px;gap:8px;min-height:46px;}
  .examQuestionPane .question h3{margin-bottom:10px;}
}
