:root{color-scheme:dark;--bg:#0b0d10;--panel:#15191f;--line:#383e49;--text:#f6f3ec;--muted:#c0c6d0;--gold:#ffd15a;--red:#d5293d;--green:#97e5bd}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.55 system-ui,-apple-system,sans-serif}header,main,footer{max-width:1160px;margin:auto;padding:18px 24px}header{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);font-size:.78rem}header span{letter-spacing:.08em}header b{color:var(--muted)}a{color:var(--gold)}button,a,summary{touch-action:manipulation}button{font:inherit;cursor:pointer;color:var(--text);background:#222832;border:1px solid #59616f;border-radius:10px;min-height:44px;padding:10px 14px;text-align:left}button:hover:not(:disabled){border-color:var(--gold);background:#31323a}button:disabled{cursor:default;opacity:.8}button.primary{background:#b51c30;border-color:#f35c6e;color:#fff;font-weight:700}button:focus-visible,a:focus-visible,summary:focus-visible,textarea:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.skip{position:absolute;left:-9999px}.skip:focus{left:16px;top:12px;padding:10px;background:black;z-index:9}.intro{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 0}.intro img{object-fit:contain;width:220px;max-height:150px}.eyebrow,.label{color:var(--gold);font-size:.7rem;letter-spacing:.1em;font-weight:800}h1{font-size:clamp(1.8rem,4vw,2.7rem);line-height:1.12;margin:8px 0}h1 em{color:var(--gold);font-style:normal}.intro p:last-child{color:var(--muted);font-size:.82rem;margin-bottom:0}.workspace{display:grid;grid-template-columns:290px 1fr;gap:18px;align-items:start}aside,.screen{border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:20px}aside{display:grid;gap:10px}.progress-label small{display:block;color:var(--muted);font-size:.72rem;margin-top:4px}progress{width:100%;accent-color:var(--gold);height:8px}aside button{font-size:.82rem}details{border-top:1px solid var(--line);padding-top:10px}summary{cursor:pointer;min-height:35px;font-size:.82rem}details p,details li{font-size:.76rem;color:var(--muted)}details a{display:block;font-size:.76rem;padding:6px 0}.quiet{background:transparent;border:0;color:var(--muted)}.screen{min-height:410px}.screen:focus{outline:none}h2{font-size:clamp(1.2rem,2vw,1.6rem);line-height:1.3;margin:8px 0 16px}h3{font-size:1rem}p{margin:10px 0}.screen p{font-size:.95rem}.muted{color:var(--muted)}.domain-list{display:grid;gap:8px}.domain{display:grid;grid-template-columns:1fr auto;gap:5px 12px;border:1px solid var(--line);border-radius:10px;padding:12px}.domain h3{margin:0;font-size:.91rem}.domain small{color:var(--muted)}.domain .lessons{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}.domain button{font-size:.78rem;padding:7px 10px}.toolbar{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:18px}.toolbar button{font-size:.78rem}.lesson-copy p{margin:15px 0}.example,.feedback{background:#232933;border-left:3px solid var(--gold);padding:12px 15px;border-radius:0 8px 8px 0}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.answers{display:grid;gap:10px}.answers button{width:100%}.answers button.correct{border:2px solid var(--green);background:#163c2b}.answers button.wrong{border:2px solid #ff8f99;background:#51242c}.feedback:empty{display:none}.feedback{margin-top:16px}.feedback strong{display:block}textarea{width:100%;min-height:150px;background:#0e1218;color:var(--text);border:1px solid #697383;border-radius:8px;padding:12px;font:inherit;resize:vertical}label{display:block;margin-bottom:8px}.result-row{border-top:1px solid var(--line);padding:12px 0}.result-row p{margin:4px 0;font-size:.85rem}footer{color:var(--muted);font-size:.72rem} @media(max-width:760px){header span{display:none}header,main,footer{padding:14px 16px}.intro img{width:110px;height:95px}.workspace{grid-template-columns:1fr}aside{grid-template-columns:1fr 1fr;padding:14px}.progress-label,aside progress,aside details{grid-column:1/-1}aside #reset{grid-column:1/-1}.screen{padding:18px}.intro h1{font-size:1.65rem}.intro p:last-child{font-size:.75rem}#review{grid-column:1/-1}.screen p{font-size:.9rem}.toolbar{align-items:start}.toolbar .label{font-size:.64rem}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

select{font:inherit;color:var(--text);background:#222832;border:1px solid #697383;border-radius:10px;min-height:44px;padding:9px;width:100%}.practice-label{font-size:.76rem;margin:3px 0 0}#coverage{font-size:.72rem}select:focus-visible{outline:3px solid var(--gold);outline-offset:3px}@media(max-width:760px){.practice-label,#practice-length,#practice,#coverage{grid-column:1/-1}}

/* Focused mobile-app question experience */
body[data-quiz="active"]{background:#070c15}
body[data-quiz="active"] header,body[data-quiz="active"] .intro,body[data-quiz="active"] aside,body[data-quiz="active"] footer{display:none}
body[data-quiz="active"] main{max-width:none;min-height:100dvh;padding:16px;display:grid;place-items:center}
body[data-quiz="active"] .workspace{display:block;width:min(100%,440px)}
body[data-quiz="active"] .screen{position:relative;isolation:isolate;display:flex;flex-direction:column;max-height:calc(100dvh - 32px);min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#725c39 #101722;padding:18px 22px 0;border:1px solid #aa8350;border-radius:34px;background:#101722;box-shadow:0 0 0 5px #1d2635,0 24px 90px #000c,0 0 65px #b41e3320}
body[data-quiz="active"] .toolbar{order:0;gap:10px;margin:0;padding:0 0 10px;align-items:center;flex-shrink:0}
body[data-quiz="active"] .toolbar .label{font-size:.61rem;line-height:1.6;letter-spacing:.055em;color:#d4dceb;max-width:230px}
body[data-quiz="active"] .toolbar button{min-height:40px;flex-shrink:0;border:1px solid #475975;border-radius:14px;background:#1b293d;font-size:.72rem;padding:8px 11px}
.quiz-art{order:1;height:145px;flex-shrink:0;border-radius:20px;background:#08121a url('assets/ai-quiz-wallpaper.webp') center top/cover no-repeat;border:1px solid #69532d;margin-bottom:13px}
.round-progress{order:2;flex-shrink:0;width:100%;height:6px;margin:0 0 16px;accent-color:#ffcf56}
body[data-quiz="active"] h2{order:3;font-size:clamp(1.05rem,3.8vw,1.24rem);font-weight:720;line-height:1.4;letter-spacing:-.02em;margin:0 0 17px}
body[data-quiz="active"] .answers{order:4;gap:9px}
body[data-quiz="active"] .answers button{position:relative;display:grid;grid-template-columns:28px 1fr;align-items:center;gap:11px;border:1px solid #536784;border-radius:17px;background:#1d2b40;padding:11px 13px;color:#f5f7fd;font-size:.86rem;line-height:1.4;min-height:58px;box-shadow:inset 0 1px 0 #ffffff0d;transition:border-color .15s,background .15s}
body[data-quiz="active"] .answers button:before{content:attr(data-letter);display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#31425d;border:1px solid #5c7191;font-size:.73rem;font-weight:800;color:#f5d47c}
body[data-quiz="active"] .answers button:hover:not(:disabled){border-color:#f6c653;background:#283a53}
body[data-quiz="active"] .answers button:disabled{opacity:1}
body[data-quiz="active"] .answers button.correct{border:2px solid #79e4bb;background:#123c32;color:#edfff8}
body[data-quiz="active"] .answers button.correct:before{content:'✓';color:#bcffe6;background:#23694f;border-color:#79e4bb}
body[data-quiz="active"] .answers button.wrong{border:2px solid #ff879a;background:#462634}
body[data-quiz="active"] .answers button.wrong:before{content:'×';background:#73364a;border-color:#ff879a;color:#fff}
body[data-quiz="active"] .feedback{order:5;border:1px solid #bc9952;border-radius:18px;background:#292a29;margin:16px 0 0;padding:15px;font-size:.84rem}
body[data-quiz="active"] .feedback p{font-size:.84rem;line-height:1.5}
body[data-quiz="active"] .feedback.is-correct{background:#142e2b;border-color:#63bd9b}
body[data-quiz="active"] .feedback strong{color:#ffe5a4;font-size:.9rem}
body[data-quiz="active"] .actions{order:6;position:sticky;bottom:0;z-index:2;margin:0 -1px;padding:15px 0 max(17px,env(safe-area-inset-bottom));background:#101722;flex-shrink:0}
body[data-quiz="active"] .actions button{width:100%;min-height:50px;border-radius:17px;text-align:center;font-weight:800;background:#b5233b;border:1px solid #ff788b;box-shadow:0 4px 16px #ac1c3433}
body[data-quiz="active"] .actions button[hidden]{display:none}
body[data-quiz="active"] .actions:has(button[hidden]){padding-block:8px}
@media(max-width:520px){body[data-quiz="active"] main{padding:0}body[data-quiz="active"] .workspace{width:100%}body[data-quiz="active"] .screen{width:100%;max-height:100dvh;min-height:100dvh;border-radius:0;border:0;padding: max(14px,env(safe-area-inset-top)) 20px 0;box-shadow:none}.quiz-art{height:130px}body[data-quiz="active"] .toolbar .label{font-size:.59rem}}
@media(max-height:740px){.quiz-art{height:95px}body[data-quiz="active"] .answers button{min-height:51px;padding:9px 12px}body[data-quiz="active"] .screen{padding-top:12px}}
@media(prefers-reduced-motion:reduce){body[data-quiz="active"] .answers button{transition:none}}

/* iPhone portrait and landscape: safe areas, Safari chrome, and readable controls. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.screen,.answers,.answers button,.toolbar{min-width:0}
.answers button,h2,.feedback p,.domain h3{overflow-wrap:anywhere}
body[data-quiz="active"] .answers,body[data-quiz="active"] h2,body[data-quiz="active"] .feedback{flex-shrink:0}
@media(max-width:520px){
 header,main,footer{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
 .intro{padding:14px 0}.intro img{width:76px;height:76px}.intro h1{font-size:1.5rem}.intro .eyebrow{font-size:.62rem}
 aside{grid-template-columns:1fr}.progress-label,aside progress,aside button,aside details{grid-column:1/-1}
 select,textarea{font-size:16px}summary,.domain button{min-height:44px}button{-webkit-tap-highlight-color:transparent}
 .domain{grid-template-columns:1fr}.domain .lessons{display:grid;grid-template-columns:1fr}.domain small{grid-column:1}
 body[data-quiz="active"]{height:100vh;height:100dvh;overflow:hidden}
 body[data-quiz="active"] main{height:100vh;height:100dvh;min-height:0;padding:0;display:block}
 body[data-quiz="active"] .workspace{height:100%;width:100%}
 body[data-quiz="active"] .screen{height:100%;min-height:0;max-height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch;border-radius:0;padding:0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));scroll-padding-top:calc(60px + env(safe-area-inset-top));scroll-padding-bottom:calc(90px + env(safe-area-inset-bottom))}
 body[data-quiz="active"] .toolbar{position:sticky;top:0;z-index:3;background:#101722;padding:max(10px,env(safe-area-inset-top)) 0 10px;margin-top:0}
 body[data-quiz="active"] .toolbar button{min-height:44px;font-size:.78rem;padding-inline:12px}
 body[data-quiz="active"] .toolbar .label{font-size:.66rem;line-height:1.5;max-width:none;flex:1}
 body[data-quiz="active"] .quiz-art{height:clamp(72px,13svh,116px);margin-bottom:12px;border-radius:17px}
 body[data-quiz="active"] .round-progress{margin-bottom:14px}
 body[data-quiz="active"] h2{font-size:clamp(1.05rem,4.3vw,1.19rem);line-height:1.4;margin-bottom:14px}
 body[data-quiz="active"] .answers{gap:9px}
 body[data-quiz="active"] .answers button{font-size:1rem;line-height:1.35;min-height:56px;padding:12px;gap:10px;grid-template-columns:28px minmax(0,1fr);border-radius:16px}
 body[data-quiz="active"] .feedback{padding:14px;margin-top:14px}
 body[data-quiz="active"] .feedback p{font-size:.95rem;line-height:1.5}
 body[data-quiz="active"] .actions{position:sticky;bottom:0;margin-top:auto;padding:12px 0 max(12px,env(safe-area-inset-bottom));background:#101722}
 body[data-quiz="active"] .actions button{min-height:52px;font-size:1rem;scroll-margin-block:18px}
}
@media(min-width:420px) and (max-width:520px) and (min-height:780px){
 body[data-quiz="active"] .screen{padding-inline:max(22px,env(safe-area-inset-left)) max(22px,env(safe-area-inset-right))}
 body[data-quiz="active"] .quiz-art{height:126px}
 body[data-quiz="active"] .answers button{min-height:62px}
}
@media(max-width:520px) and (max-height:720px){
 body[data-quiz="active"] .quiz-art{height:68px}
 body[data-quiz="active"] .answers button{min-height:52px;padding-block:10px}
}
@media(orientation:landscape) and (max-height:520px) and (max-width:1100px){
 body[data-quiz="active"]{height:100dvh;overflow:hidden}
 body[data-quiz="active"] main{padding:0;min-height:0;height:100dvh}
 body[data-quiz="active"] .workspace{width:min(100%,760px);height:100%;margin:auto}
 body[data-quiz="active"] .screen{height:100%;min-height:0;max-height:100dvh;border-radius:0;padding:10px max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left));box-shadow:none}
 body[data-quiz="active"] .quiz-art{display:none}
 body[data-quiz="active"] .toolbar button{min-height:44px}
 body[data-quiz="active"] .answers button{font-size:1rem;min-height:48px}
 body[data-quiz="active"] .actions{padding-bottom:max(10px,env(safe-area-inset-bottom))}
}
