:root {font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17354a;background:#f2f6f8;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:#117b86}a:hover{text-decoration:none}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #7fd0c8;outline-offset:2px}
:root{--ink:#17354a;--muted:#607687;--accent:#087c83;--navy:#11384e;--border:#dce6e9;--paper:#fff;--bg:#f2f6f8;--pale:#e9f5f3}
.screen-loading{padding:8rem 1rem;text-align:center;color:var(--muted)}.wrap{width:min(1100px,calc(100% - 36px));margin:0 auto}.topbar{background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:20}.top-inner{height:70px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--navy)}.brand-symbol{display:grid;place-items:center;height:38px;width:38px;color:#fff;background:var(--navy);border-radius:11px;font-size:18px;font-weight:800}.brand-name{font-weight:900;font-size:19px;letter-spacing:-.6px;line-height:1.1}.brand-name span{color:var(--accent)}.brand-sub{display:block;color:#6b8491;font-size:11px;letter-spacing:.2px;font-weight:600}.top-actions{display:flex;align-items:center;gap:12px}.top-actions button{border:0;background:none;color:var(--muted);font-size:13px}.top-actions .signout{border:1px solid var(--border);padding:7px 11px;border-radius:8px}
main{padding:34px 0 60px;min-height:calc(100vh - 125px)}.eyebrow{font-size:12px;letter-spacing:1.6px;font-weight:850;text-transform:uppercase;color:var(--accent)}h1{font-size:clamp(30px,4.4vw,47px);letter-spacing:-1.6px;line-height:1.09;margin:10px 0 13px}h2{font-size:22px;letter-spacing:-.6px;margin:0 0 12px}h3{font-size:17px;letter-spacing:-.25px;margin:0 0 8px}p{line-height:1.55}p.lead{font-size:17px;color:#547084;max-width:650px}.muted{color:var(--muted)}.small{font-size:12px}.fine{font-size:11px;color:#80909d}.hero{display:grid;grid-template-columns:1.5fr 1fr;gap:28px;align-items:stretch;margin-bottom:26px}.hero-copy{padding:18px 0}.hero-card{background:linear-gradient(160deg,#10364d,#0d6971);color:#fff;border-radius:20px;padding:27px;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center}.hero-card:after{content:"";position:absolute;width:180px;height:180px;border:35px solid #ffffff0c;border-radius:50%;right:-70px;top:-50px}.hero-card .big{font-size:50px;letter-spacing:-2px;font-weight:800}.hero-card p{color:#cce5e5;margin:5px 0 0}.tag{display:inline-flex;border-radius:100px;background:#e8f4f3;color:#197b81;font-size:11px;letter-spacing:.25px;padding:5px 10px;font-weight:750}.tag.light{background:#ffffff22;color:#fff;width:max-content}.paper{background:#fff;border:1px solid var(--border);box-shadow:0 3px 15px #11384e08;border-radius:15px}.panel{padding:25px}.grid-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.feature{padding:23px;display:flex;flex-direction:column;align-items:start;gap:7px}.feature .glyph{font-size:27px}.feature p{margin:0;color:var(--muted);font-size:14px}.feature button{margin-top:8px}.btn{border:1px solid transparent;background:var(--accent);color:#fff;font-weight:750;padding:12px 17px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;transition:filter .13s,transform .13s}.btn:hover{filter:brightness(.94)}.btn:active{transform:scale(.99)}.btn.navy{background:var(--navy)}.btn.outline{border-color:#b8cbd0;background:#fff;color:var(--ink)}.btn.ghost{background:#eaf1f4;color:var(--ink)}.btn.slim{padding:9px 13px;font-size:13px}.btn.danger{background:#9b3838}.btn.full{width:100%}.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0}.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:14px 0}.mini-stat{padding:17px}.mini-stat .metric{font-size:27px;font-weight:850;letter-spacing:-.5px}.mini-stat .small{color:var(--muted)}
.field{display:flex;flex-direction:column;gap:7px;margin-bottom:17px}.field label{font-size:13px;font-weight:760}.field input,.field select{padding:13px;border:1px solid #cbdadf;border-radius:10px;background:#fff;width:100%;color:var(--ink)}.auth-layout{display:grid;grid-template-columns:1fr 430px;gap:40px;align-items:center;min-height:68vh}.auth-card{padding:32px}.auth-card h2{font-size:25px}.link-btn{border:0;background:none;padding:8px 0;color:var(--accent);font-weight:740}.err{padding:12px 15px;background:#fff0ed;color:#973f36;border:1px solid #f0c3bc;border-radius:10px;font-size:13px;margin-bottom:16px}.alert{padding:12px 16px;background:#fff8e7;border:1px solid #efdba5;border-radius:10px;color:#6f5725;font-size:13px;margin-bottom:22px}.select-row{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:17px}.pill-btn{padding:9px 14px;border:1px solid #d3e1e3;border-radius:9px;background:white;color:var(--ink);font-size:13px;font-weight:750}.pill-btn.selected{border-color:var(--accent);background:#e4f5f2;color:#096b72}.setup-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}.check-list{padding-left:20px;line-height:1.9;color:#526d7c}.setup-actions{display:flex;gap:9px;flex-wrap:wrap}
.exam-shell{max-width:1100px;margin:auto}.exam-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#143a50;color:white;padding:15px 20px;border-radius:13px 13px 0 0}.exam-bar .exam-brand{font-size:14px;font-weight:800}.exam-clock{font-weight:800;font-variant-numeric:tabular-nums;background:#ffffff20;border:1px solid #ffffff25;padding:7px 12px;border-radius:7px}.exam-clock.urgent{background:#9f3135}.exam-grid{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:0;align-items:stretch}.exam-main{min-height:510px;border-radius:0 0 0 14px;border-right:0}.exam-side{border-radius:0 0 14px 0;background:#f8fafb;padding:20px;border:1px solid var(--border);border-left:0}.exam-label{font-size:12px;letter-spacing:.5px;text-transform:uppercase;color:#557080;font-weight:800}.exam-stem{font-size:17px;line-height:1.66;color:#152f41;margin:22px 0 25px;font-weight:610}.options{display:flex;flex-direction:column;gap:11px}.option{display:flex;align-items:center;gap:13px;text-align:left;width:100%;padding:14px 13px;border-radius:10px;border:1px solid #cfdce0;background:#fff;color:var(--ink);line-height:1.5}.option:hover{background:#f8fcfc}.option .letter{width:30px;height:30px;border:1px solid #b9ccd1;border-radius:6px;display:grid;place-items:center;font-size:12px;font-weight:800;flex:none}.option.selected{border:2px solid var(--accent);background:#edf8f6;padding:13px 12px}.option.selected .letter{background:var(--accent);color:white;border-color:var(--accent)}.option.struck .opt-text{text-decoration:line-through;color:#9aadb3}.opt-text{flex:1}.exam-tools{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.option .striker{font-size:12px;border:1px solid #d6e2e5;background:#fff;color:#6b7e87;border-radius:6px;width:26px;height:26px;flex:none}.question-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--border);margin-top:30px;padding-top:20px;flex-wrap:wrap}.question-palette{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:14px 0}.qnum{border:1px solid #cbd8dc;color:#305269;background:white;border-radius:5px;height:31px;font-size:12px;font-weight:800}.qnum.answered{background:#d4efec;border-color:#9bd2c8}.qnum.flagged{box-shadow:inset 0 -4px #eeb24d}.qnum.current{outline:2px solid var(--accent);outline-offset:1px}.palette-legend{font-size:12px;color:#6d808b;line-height:1.8}.feedback{background:#f0faf6;border:1px solid #cce5d6;border-radius:12px;padding:18px;margin-top:18px}.feedback.wrong{background:#fff8f0;border-color:#f2dbc1}.feedback h3{margin-bottom:9px}.feedback p{margin:8px 0}.explain{padding-left:19px;font-size:13px;color:#526d7c;line-height:1.6}.explain li{margin:6px 0}.progress-track{background:#e3ebed;border-radius:999px;overflow:hidden;height:7px}.progress-fill{height:100%;background:var(--accent)}.results-head{text-align:center;margin-bottom:25px}.score-circle{margin:15px auto;border:10px solid #cce9e4;border-top-color:var(--accent);border-radius:100%;width:140px;height:140px;display:grid;place-items:center;font-size:41px;font-weight:900}.review-item{margin:10px 0;padding:16px;border:1px solid var(--border);border-radius:10px}.review-item summary{cursor:pointer;font-weight:700}.guide-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.guide-card{padding:23px}.guide-card ul{color:var(--muted);line-height:1.8;padding-left:20px}
.footer{border-top:1px solid var(--border);padding:16px 0 24px;background:#fff;color:#7d929d;font-size:11px}.footer-inner{display:flex;gap:20px;justify-content:space-between}.toast{position:fixed;right:15px;bottom:18px;background:#183c51;color:white;padding:13px 19px;border-radius:10px;box-shadow:0 14px 35px #152e4250;z-index:50;max-width:340px}
@media(max-width:800px){.hero,.auth-layout,.setup-grid{grid-template-columns:1fr}.hero-card{min-height:180px}.auth-layout{min-height:auto}.exam-grid{grid-template-columns:1fr}.exam-main{border-right:1px solid var(--border);border-radius:0}.exam-side{border-left:1px solid var(--border);border-top:0;border-radius:0 0 13px 13px}.exam-main{min-height:auto}.guide-grid{grid-template-columns:1fr}.top-inner{height:62px}}
@media(max-width:560px){.wrap{width:min(100% - 24px,1100px)}main{padding-top:22px}.topbar .brand-name{font-size:17px}.top-actions{gap:4px}.top-actions .small{display:none}.hero h1{font-size:36px}.grid-two,.stats-row{grid-template-columns:1fr}.panel,.auth-card{padding:19px}.feature{padding:20px}.question-palette{grid-template-columns:repeat(10,1fr)}.question-footer{align-items:stretch}.exam-bar{padding:12px}.exam-bar .exam-brand{font-size:12px}.exam-stem{font-size:16px}.option{padding:12px 9px}.option.selected{padding:11px 8px}.footer-inner{flex-direction:column;gap:4px}}

/* Compact exam toolbar: question-level actions without cluttering answer choices */
.exam-tool-row{min-height:40px;display:flex;align-items:center;gap:10px;justify-content:flex-start;margin-top:14px;position:relative;flex-wrap:wrap}
.tools-wrapper{position:relative;z-index:5}.question-tools-btn{border:1px solid #bdcdd3;color:#27465a;border-radius:5px;background:#f5f8fa;padding:7px 12px;font-size:12px;font-weight:800;min-height:34px}.question-tools-btn.open,.question-tools-btn:hover{background:#e7f0f2;border-color:#7699a3}
.tool-menu{position:absolute;top:calc(100% + 4px);left:0;width:210px;background:white;border:1px solid #bdcdd3;border-radius:8px;box-shadow:0 8px 30px #11384e25;padding:5px;z-index:10}
.tool-menu button{font-size:13px;width:100%;text-align:left;background:#fff;border:0;border-radius:5px;padding:9px;color:#24465a}.tool-menu button:hover,.tool-menu button:focus-visible{background:#e7f4f2}
.exam-indicator,.mode-label{font-size:12px;color:#5d6c78}.exam-indicator{color:#8b5a0e}.mode-label{font-weight:750;color:#096b72}
.exam-stem{user-select:text}.exam-highlight{background:#ffeb8a;border-radius:2px;color:inherit;padding:0}
.tool-hint{font-size:12px;color:#557080;margin:0 0 12px}.mini-action{background:#f2f8f8;border:1px solid #c4d7da;color:#075e65;border-radius:5px;padding:5px 7px;font-size:12px;font-weight:750}
.option.strike-target{cursor:crosshair}.option.strike-target:hover{background:#fff8ee;border-color:#bfaa8b}
