:root{color-scheme:light;--navy:#1c3556;--ink:#15253b;--muted:#637085;--back:#f2f5f9;--line:#dfe5ed;--teal:#087c6b;--white:#fff;--danger:#b54335;--warning:#a36b12;--soft:#edf2f8;font-family:'Segoe UI',Inter,system-ui,-apple-system,sans-serif;letter-spacing:0}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--back);color:var(--ink);font-size:16px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--navy)}.hidden{display:none!important}.site-wrap{width:min(1120px,calc(100% - 36px));margin:auto}.site-header{background:var(--navy);color:#fff}.header-inner{display:flex;align-items:center;gap:14px;min-height:78px}.mark{display:grid;place-items:center;background:#fff2;border:1px solid #ffffff35;color:white;border-radius:13px;width:46px;height:46px;font-family:Georgia,serif;font-size:30px}.brand{display:flex;flex-direction:column;gap:3px}.brand strong{font-size:16px}.brand span{font-size:12px;color:#d3deed}.header-pill{margin-left:auto;border:1px solid #ffffff50;border-radius:99px;padding:6px 12px;font-size:13px;color:#dce6f4}.skip{position:absolute;left:-999px}.skip:focus{left:16px;top:16px;background:#fff;z-index:60;padding:10px}.view{padding:36px 0 52px;min-height:calc(100vh - 160px)}.login-layout{display:grid;grid-template-columns:1.2fr .92fr;gap:72px;align-items:center;min-height:calc(100vh - 172px)}.intro{max-width:590px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:.15em;color:#55738e}.intro h1{font-size:clamp(33px,4vw,53px);line-height:1.13;letter-spacing:-.04em;margin:16px 0 20px;color:#172b44}.intro p{font-size:19px;line-height:1.62;color:#506379}.intro-details{display:flex;flex-wrap:wrap;gap:8px;margin-top:26px}.intro-details span{font-size:12px;color:#314d6b;border:1px solid #d3deea;padding:8px 11px;border-radius:99px;background:white}.panel,.question-card,.tile{background:var(--white);border:1px solid var(--line);border-radius:17px;box-shadow:0 8px 28px #12233a0a}.login-panel{padding:26px}.tabs{display:flex;background:var(--back);padding:5px;border-radius:12px;margin-bottom:26px}.tab{background:transparent;border:0;flex:1;padding:11px;border-radius:9px;color:var(--muted);font-weight:600}.tab.selected{background:white;color:var(--navy);box-shadow:0 2px 8px #15253b12}.stack{display:flex;flex-direction:column;gap:12px}.stack h2{margin:0;font-size:23px}.muted{color:var(--muted);line-height:1.55}.stack p{margin:0 0 8px}.stack label,.form-row label{font-weight:600;color:#34495d;font-size:13px}.stack input,.form-row input,select,textarea{border:1px solid #cbd5e1;border-radius:10px;background:white;padding:12px 13px;min-height:44px;width:100%;outline:none}.stack input:focus,input:focus,select:focus,textarea:focus{border-color:#456d98;box-shadow:0 0 0 3px #b4d1fa66}.btn{border:1px solid #bdc8d6;border-radius:10px;padding:10px 16px;font-weight:650;background:#fff;color:var(--navy);min-height:44px}.btn.primary{background:var(--navy);color:white;border-color:var(--navy)}.btn.danger{border-color:#edceca;color:var(--danger);background:#fff8f6}.btn:focus-visible,.tab:focus-visible,.index-button:focus-visible{outline:3px solid #89add5;outline-offset:2px}.btn:hover:not(:disabled){filter:brightness(.96)}.btn.small{min-height:34px;padding:6px 10px;font-size:13px}.btn-row{display:flex;flex-wrap:wrap;gap:9px}.footer{color:#7b8795;font-size:12px;border-top:1px solid var(--line);padding:18px 0}.page-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.page-top h1{font-size:29px;letter-spacing:-.02em;margin:4px 0}.page-top h2{margin:0;font-size:24px}.overline{font-size:11px;font-weight:750;letter-spacing:.1em;color:#5b7692}.account{font-size:13px;color:var(--muted)}.chip{display:inline-block;padding:5px 9px;border-radius:99px;font-size:12px;border:1px solid #d4dfe8;background:#f5f7fa;color:#456078}.chip.ok{color:#0b7562;background:#e8f6f1;border-color:#bfe3d5}.chip.warn{color:#8c5b10;background:#fff7e8;border-color:#e9d4ab}.chip.bad{color:#a43428;background:#fdf0ef;border-color:#efc5c2}.tile{padding:22px}.tile h2,.panel h2{margin:0 0 10px;font-size:19px}.tile p{margin:5px 0}.tile-actions{display:flex;align-items:center;justify-content:space-between;margin-top:14px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:22px}.stat{background:white;border:1px solid var(--line);padding:16px;border-radius:13px}.stat strong{font-size:25px;display:block;margin-top:8px}.stat span{font-size:12px;color:var(--muted)}.section-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.section-grid .tile{min-height:172px}.section-grid h3{margin:12px 0;font-size:18px}.progress-track{height:7px;border-radius:99px;background:#e1e8f1;overflow:hidden}.progress-track>div{height:100%;background:var(--teal)}.section-toolbar{position:sticky;top:0;z-index:10;background:#ffffffee;border:1px solid var(--line);backdrop-filter:blur(10px);border-radius:13px;box-shadow:0 5px 20px #14294616;padding:14px 16px;margin-bottom:17px}.section-toolbar-row{display:flex;align-items:center;justify-content:space-between;gap:14px}.time{font-variant-numeric:tabular-nums;font-size:22px;font-weight:750;color:var(--navy)}.time.low{color:var(--danger)}.index-bar{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.index-button{width:36px;height:36px;border-radius:9px;border:1px solid #cbd5e1;background:#fff;color:var(--ink);font-weight:650}.index-button.answered{background:#e2f3ed;border-color:#70bca6;color:#116e5c}.question-card{padding:22px 24px;margin-bottom:15px;scroll-margin-top:170px}.question-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.question-header h3{font-size:16px;margin:0}.stem{font-size:17px;line-height:1.72;white-space:pre-wrap;margin:0 0 20px}.question-graphic{display:block;width:min(100%,640px);max-height:400px;object-fit:contain;border:1px solid var(--line);border-radius:9px;margin:12px auto 20px;background:#fff;cursor:zoom-in}.option-list{display:grid;gap:9px}.answer{display:flex;gap:12px;align-items:center;border:1px solid #d9e2ec;border-radius:11px;padding:13px 15px;min-height:52px;line-height:1.5;cursor:pointer;background:white}.answer:hover{border-color:#99afc8;background:#fafcff}.answer:has(input:checked){border-color:#4b7299;background:#eef4fb}.answer input{accent-color:var(--navy);width:18px;height:18px;flex-shrink:0}.letter{display:inline-flex;border:1px solid #aebccc;border-radius:6px;min-width:26px;min-height:26px;align-items:center;justify-content:center;font-weight:750;font-size:13px}.fraction{vertical-align:middle;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.06;font-size:.86em;margin:0 .13em;white-space:nowrap}.fraction .numerator{border-bottom:1px solid currentColor;padding:0 .13em .08em}.fraction .denominator{padding:.08em .13em 0}.exam-actions{display:flex;justify-content:flex-end;align-items:center;gap:14px;margin:22px 0}.save-state{font-size:13px;color:var(--muted)}.save-state.warning{color:#9b6012}.save-state.error{color:var(--danger)}.score-result{font-size:56px;font-weight:760;letter-spacing:-.05em;color:var(--navy);padding:10px 0 24px}.notice{border-radius:11px;padding:12px 14px;background:#eaf3fa;color:#2a4b6f;border:1px solid #cadde9;font-size:14px;line-height:1.5}.notice.warning{background:#fff8e8;border-color:#e7d6ad;color:#745211}.notice.danger{background:#fff1ef;border-color:#efcdc6;color:#8c2b25}.admin-layout{display:grid;grid-template-columns:218px 1fr;gap:22px}.sidebar{background:white;border:1px solid var(--line);padding:12px;border-radius:14px;align-self:start;position:sticky;top:15px}.sidebar button{display:block;width:100%;border:0;background:transparent;padding:12px;border-radius:9px;text-align:left;color:#456078;font-size:14px;font-weight:650}.sidebar button.active{background:#edf2f8;color:var(--navy)}.sidebar button:hover{background:#f1f5f9}.admin-content{min-width:0}.admin-content .panel{padding:20px;margin-bottom:18px}.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-row{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin:15px 0}.form-row label{display:block;margin-bottom:6px}.form-row>*{min-width:160px;flex:1}.form-row .btn{flex:0}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}th,td{border-bottom:1px solid var(--line);padding:11px 8px;vertical-align:middle}th{color:#60758c;font-weight:700;background:#fafbfd}tr:last-child td{border-bottom:0}.inline-check{display:flex;align-items:center;gap:7px}.inline-check input{accent-color:var(--navy)}.empty{padding:30px;text-align:center;color:var(--muted)}.toast{position:fixed;right:20px;bottom:20px;z-index:50;background:#173854;color:white;border-radius:12px;padding:14px 18px;box-shadow:0 15px 40px #1f314250;max-width:480px}dialog{border:0;border-radius:16px;max-width:min(540px,calc(100% - 24px));width:100%;padding:26px;box-shadow:0 25px 80px #12203380;color:var(--ink)}dialog::backdrop{background:#14243a94}dialog h2{margin:0 0 10px}.modal-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:24px}.hr{border:0;border-top:1px solid var(--line);margin:18px 0}.badge-mini{font-size:12px;background:#ebf3f7;color:#345775;border-radius:7px;padding:4px 7px}.small-muted{color:var(--muted);font-size:12px}.code{font-family:ui-monospace,Consolas,monospace;letter-spacing:.08em;font-weight:700}.link{border:0;background:none;color:var(--navy);text-decoration:underline;padding:0}.flex{display:flex;gap:10px;align-items:center;justify-content:space-between}.muted-list{font-size:13px;color:var(--muted)}
@media(max-width:820px){.login-layout{grid-template-columns:1fr;gap:18px;padding-top:30px}.intro h1{font-size:34px}.intro p{font-size:16px}.intro-details{margin-top:12px}.section-grid,.stat-grid,.two{grid-template-columns:1fr 1fr}.admin-layout{grid-template-columns:1fr}.sidebar{position:static;display:flex;flex-wrap:wrap}.sidebar button{width:auto}.site-wrap{width:min(100% - 26px,1120px)}}
@media(max-width:540px){.header-inner{min-height:70px}.brand strong{font-size:13px}.brand span{font-size:10px}.header-pill{display:none}.intro-details{display:none}.section-grid,.stat-grid,.two{grid-template-columns:1fr}.view{padding-top:22px}.page-top{align-items:start;flex-direction:column}.page-top h1{font-size:25px}.section-toolbar{padding:11px;top:0}.question-card{padding:17px 15px}.stem{font-size:16px}.time{font-size:18px}.index-button{width:35px;height:35px}.exam-actions{flex-direction:column}.exam-actions .btn{width:100%}.admin-content .panel{padding:15px}}
