:root{font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#172844;background:#f5f7fb;font-synthesis:none;--navy:#113269;--navy2:#082651;--gold:#e9b22c;--line:#e0e7f0;--muted:#65738b;--white:#fff;--green:#17805b;--red:#bd3646;--shadow:0 15px 36px rgba(15,47,93,.07)}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:var(--navy)}.hidden{display:none!important}.loading{height:90vh;display:grid;place-content:center;text-align:center;color:var(--muted);gap:12px}.spinner{width:36px;height:36px;border:3px solid #d7e1ed;border-top-color:var(--navy);border-radius:50%;animation:spin 1s linear infinite;margin:auto}@keyframes spin{to{transform:rotate(360deg)}}
.shell{max-width:1260px;margin:0 auto;padding:0 24px}.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:83px}.brand{display:flex;align-items:center;gap:12px}.brand img{width:56px;height:56px;object-fit:contain}.brand b{display:block;font-size:19px;letter-spacing:.1px;color:var(--navy)}.brand small{display:block;color:var(--muted);font-size:11px;max-width:420px;line-height:1.4}.top-actions{display:flex;align-items:center;gap:8px}.identity{font-size:13px;color:#4c5a6e}.page{padding:32px 0 58px}.footer{color:#7e889b;font-size:12px;text-align:center;padding:28px 12px 35px}.footer strong{color:#4b628b}
.btn{border:1px solid transparent;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:650;padding:11px 17px;background:#f0f4fa;color:#1b3760;min-height:43px;transition:background .15s}.btn:hover{filter:brightness(.985)}.btn.primary{background:var(--navy);color:#fff}.btn.gold{background:var(--gold);color:#212c40}.btn.line{background:#fff;border-color:#d8e1ec;color:var(--navy)}.btn.danger{color:#b52d42;background:#fff0f2}.btn.sm{font-size:12px;padding:7px 11px;min-height:32px}.btn.full{width:100%}.btn.ghost{background:transparent;color:var(--navy)}
.card{background:#fff;border:1px solid #e3e9f0;border-radius:17px;padding:24px;box-shadow:var(--shadow)}.card.tight{padding:19px}.card h2,.card h3{margin-top:0}.muted{color:var(--muted)}.small{font-size:13px}.xs{font-size:11px}.badge{display:inline-block;padding:5px 10px;font-size:12px;border-radius:30px;background:#edf3ff;color:var(--navy);font-weight:650}.badge.good{background:#e6f7ee;color:#1b7f54}.badge.bad{background:#ffedf0;color:#ad3247}.badge.gold{background:#fff6dd;color:#98710c}.section-title{font-size:22px;font-weight:800;color:#152f57;letter-spacing:-.3px;margin:0 0 8px}.subtitle{margin:0;color:var(--muted);line-height:1.7}.eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;font-weight:800;color:#4f739c;margin-bottom:8px}.divider{height:1px;background:var(--line);margin:20px 0}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.stack{display:flex;flex-direction:column;gap:16px}.gap8{gap:8px}.mb0{margin-bottom:0}.mb12{margin-bottom:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}.space{height:20px}
input,select,textarea{background:#fff;border:1px solid #cfd9e6;border-radius:10px;padding:11px 12px;width:100%;color:#21334d;outline-color:#315b95;min-height:44px}textarea{resize:vertical}label{display:block;font-size:13px;font-weight:650;margin-bottom:6px;color:#344765}.field{margin-bottom:15px}.error{background:#fff0f2;border:1px solid #ffd2d9;color:#a63247;border-radius:10px;padding:11px;font-size:13px}.help{background:#eff5ff;border:1px solid #d9e6fb;color:#294f83;padding:13px 16px;border-radius:11px;line-height:1.65;font-size:13px}.hint{color:#78879b;font-size:12px}.toast{position:fixed;bottom:25px;right:25px;z-index:999;padding:13px 18px;border-radius:12px;background:#133662;color:#fff;box-shadow:0 18px 35px #10294c50;font-size:14px;opacity:0;pointer-events:none;transition:opacity .2s;max-width:min(420px,90vw)}.toast.visible{opacity:1}
.auth-bg{min-height:100vh;background:radial-gradient(circle at 15% 30%,#244a81 0,#0d2d5c 60%,#092347 100%);padding:30px 16px;display:flex;align-items:center;justify-content:center}.auth-wrap{max-width:980px;width:100%;display:grid;grid-template-columns:1fr 430px;gap:35px;align-items:center}.auth-hero{color:#fff;padding:25px}.auth-hero .auth-logo{width:min(300px,90%);height:260px;object-fit:contain;filter:drop-shadow(0 15px 15px #06182f55)}.auth-hero h1{font-size:34px;line-height:1.15;letter-spacing:-1px;margin:0 0 10px}.auth-hero p{font-size:16px;line-height:1.7;color:#d9e6fa}.auth-card{padding:35px 32px}.auth-card h2{font-size:24px;margin:0 0 9px;color:#19396a}.auth-card p{line-height:1.6}.auth-card .btn{margin-top:6px}.auth-note{margin-top:16px;color:#8b98a8;font-size:12px;line-height:1.6}
.welcome{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:26px}.welcome h1{font-size:30px;letter-spacing:-.8px;margin:0 0 6px}.metric{font-size:29px;font-weight:850;color:var(--navy);line-height:1.2}.metric-card p{font-size:12px;color:var(--muted);margin:7px 0 0}.course{position:relative;overflow:hidden}.course:before{content:'';position:absolute;height:5px;top:0;left:0;right:0;background:linear-gradient(90deg,var(--navy),#4d75bb,var(--gold))}.course-icon{width:45px;height:45px;background:#e9f1fd;border-radius:13px;display:grid;place-items:center;font-size:24px;margin-bottom:14px}.course h3{font-size:18px;line-height:1.35;margin:0 0 10px}.course p{line-height:1.55;color:var(--muted);font-size:13px;min-height:41px}.course-actions{display:flex;gap:8px;margin-top:18px;flex-wrap:wrap}.tablewrap{overflow-x:auto}.table{width:100%;border-collapse:collapse;font-size:13px}.table th{text-align:left;color:#64738b;font-size:12px;font-weight:750;padding:12px 10px;border-bottom:1px solid var(--line);white-space:nowrap}.table td{padding:12px 10px;border-bottom:1px solid #eef1f6;vertical-align:middle}.table tbody tr:hover{background:#fbfdff}.table small{color:#8491a1}.table .btn{white-space:nowrap}.pill{padding:4px 8px;border-radius:20px;font-size:11px;background:#ecf2ff;color:#24466f}
.exam-layout{display:grid;grid-template-columns:minmax(0,1fr) 296px;gap:19px;align-items:start}.exam-panel{position:sticky;top:102px}.exam-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.exam-head h1{font-size:19px;margin:2px 0}.timer{display:flex;align-items:center;gap:6px;background:#eaf1fd;color:#1a4579;border-radius:11px;padding:9px 13px;font-size:18px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}.timer.urgent{background:#ffedf0;color:#b32642}.progress{background:#e9eef5;height:8px;border-radius:20px;overflow:hidden;margin:17px 0 22px}.progress div{background:linear-gradient(90deg,#103875,#d4a127);height:100%;border-radius:20px;transition:width .2s}.stem{font-size:19px;line-height:1.6;font-weight:690;white-space:pre-wrap;margin:12px 0 22px}.answer{display:flex;gap:13px;align-items:flex-start;border:1px solid #dce5ee;padding:15px;border-radius:12px;margin:10px 0;cursor:pointer;line-height:1.55;background:#fff;transition:background .12s,border .12s;font-size:15px}.answer:hover{border-color:#92b0d4;background:#f8fbff}.answer.selected{background:#eef5ff;border:2px solid #2863a1;padding:14px}.answer.correct{border-color:#3ba97d;background:#effaf4}.answer.wrong{border-color:#df5c70;background:#fff0f3}.answer .letter{flex:0 0 31px;height:31px;border-radius:9px;display:grid;place-items:center;background:#edf1f8;font-weight:750;color:#315583}.answer.selected .letter{background:#204f8b;color:#fff}.question-nav{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:15px 0}.number{border:1px solid #dbe3ef;background:#fff;border-radius:9px;min-height:40px;font-size:13px;font-weight:700;color:#45607e}.number.done{background:#dceafc;color:#0e4c92;border-color:#92b5e4}.number.flag{box-shadow:inset 0 -4px #dba82b}.number.current{outline:2px solid var(--navy);outline-offset:1px}.nav-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;color:#768498}.dot{display:inline-block;width:10px;height:10px;border-radius:3px;background:#dceafc;vertical-align:middle}.dot.blank{background:#fff;border:1px solid #cbd6e4}.dot.flag{background:#e8b436}.exam-actions{margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.explanation{background:#f0f6ff;border:1px solid #c9def7;border-radius:12px;padding:15px;margin-top:17px;line-height:1.6;font-size:14px}
.tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:20px;border-bottom:1px solid #dae3ed;padding-bottom:10px}.tab{padding:9px 14px;background:#f3f6fa;border-radius:9px;color:#506782;border:0;font-weight:700;font-size:13px}.tab.active{background:var(--navy);color:#fff}.actionbar{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin:12px 0 17px}.actionbar .field{margin:0}.actionbar .field input{width:230px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}.form-grid .field{margin:0}.modal-bg{position:fixed;inset:0;background:#091b36ad;display:grid;place-items:center;z-index:100;padding:20px}.modal{background:#fff;max-width:740px;width:100%;max-height:88vh;overflow:auto;border-radius:17px;padding:28px;box-shadow:0 25px 55px #0004}.modal h2{margin:0 0 17px}.modal .field textarea{min-height:72px}.results-hero{text-align:center}.results-score{font-size:68px;font-weight:850;letter-spacing:-3px;color:#173968;margin:8px 0}.results-score.good{color:#16805d}.results-score.bad{color:#b5394b}.notice{font-size:12px;line-height:1.6;color:#6e7f94}.admin-brief{padding:9px 12px;border-radius:10px;background:#fffae7;color:#86671e;font-size:12px}.question-preview{max-width:620px;line-height:1.55;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.select-topic{max-width:270px}.tiny-check{accent-color:#1b5c9e}
@media(max-width:1020px){.auth-wrap{grid-template-columns:1fr 420px;gap:10px}.shell{padding:0 18px}.exam-layout{grid-template-columns:minmax(0,1fr) 255px}.question-nav{grid-template-columns:repeat(5,1fr)}}
@media(max-width:760px){.auth-wrap{grid-template-columns:1fr;max-width:470px}.auth-hero{text-align:center;padding:0 12px}.auth-hero .auth-logo{width:150px;height:140px}.auth-hero h1{font-size:24px}.auth-hero p{font-size:13px}.auth-card{padding:26px 22px}.shell{padding:0 14px}.header-inner{min-height:70px}.brand img{height:43px;width:43px}.brand b{font-size:16px}.brand small{font-size:9px;max-width:190px}.top-actions .identity{display:none}.top-actions .btn{padding:6px 10px;min-height:34px;font-size:11px}.grid2,.grid3,.form-grid{grid-template-columns:1fr}.page{padding:20px 0 35px}.welcome{display:block}.welcome h1{font-size:24px}.welcome .btn{margin-top:12px}.card{padding:18px}.section-title{font-size:20px}.exam-layout{grid-template-columns:1fr}.exam-panel{position:static}.exam-head h1{font-size:16px}.timer{font-size:14px;padding:7px 8px}.stem{font-size:17px}.answer{padding:12px;font-size:14px}.answer.selected{padding:11px}.question-nav{grid-template-columns:repeat(10,1fr);gap:5px}.number{min-height:30px;border-radius:6px;font-size:11px}.actionbar .field input{width:100%}.actionbar .field{width:100%}.actionbar .btn{flex:1}.modal{padding:20px}.footer{font-size:10px}}
@media(max-width:400px){.question-nav{grid-template-columns:repeat(8,1fr)}.brand small{display:none}.auth-hero .auth-logo{height:110px}}
