:root {
 color-scheme: light;
 --paper: #ffffff; --surface: #ffffff; --ink: #162339; --muted: #48576e;
 --line: #d7dfe9; --accent: #1645a6; --tint: #eef3ff;
 font: 16px/1.55 system-ui, sans-serif;
 color: var(--ink); background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.heading { min-height: 4.65rem; display: flex; align-items: center; justify-content: space-between; gap: .65rem 2rem; }
.brand { display: flex; align-items: baseline; gap: .42rem; font-weight: 800; font-size: 1.3rem; text-decoration: none; letter-spacing: -.04em; color: var(--ink); }
.brand span { font-weight: 550; font-size: .93rem; letter-spacing: 0; color: var(--muted); }
h1, h2, h3 { line-height: 1.19; letter-spacing: -.025em; }
h2 { font-size: 2rem; margin: 0 0 .55rem; }
h3 { font-size: 1.1rem; margin: 0 0 .25rem; }
p { max-width: 72ch; margin: .45rem 0 .85rem; }
a { color: var(--accent); text-underline-offset: .2em; }
.nav { display: flex; flex-wrap: wrap; gap: .1rem 1.45rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; text-decoration: none; font-weight: 600; color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--accent); }
.nav a[aria-current] { border-bottom-color: var(--accent); }
.wrap:has(> .welcome), .site-header .wrap, footer.wrap { max-width: 58rem; }
.welcome { padding: .6rem 0 2.2rem; }
.welcome h1 { font-size: 3rem; font-weight: 750; letter-spacing: -.04em; line-height: 1.08; margin: 0 0 .7rem; }
.welcome p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.study-options { border-top: 2px solid var(--ink); }
.study-row { display: grid; grid-template-columns: minmax(0, 1fr) 10.5rem; align-items: center; gap: .65rem 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.study-row h2 { font-size: 1.2rem; margin: 0; }
.study-row p { margin: .25rem 0 0; color: var(--muted); font-size: .95rem; }
.study-row button { min-width: 9rem; font-size: .94rem; }
.welcome-progress { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; color: var(--muted); font-size: .92rem; padding-top: 1.15rem; }
@media (max-width: 680px) {
 .wrap { width: min(100% - 2rem, 72rem); }
 .heading { flex-wrap: wrap; justify-content: start; padding-block: .6rem 0; }
 .nav { column-gap: 1rem; }
 .welcome { padding-top: .25rem; padding-bottom: 1.45rem; }
 .welcome h1 { font-size: 2.2rem; }
 .welcome p { font-size: 1rem; }
 .study-row { grid-template-columns: 1fr; justify-items: start; }
}
main { padding: clamp(1.5rem, 5vw, 3.75rem) 0 2rem; min-height: 0; }
footer { border-top: 1px solid var(--line); padding: .5rem 0 1.6rem; color: var(--muted); font-size: .88rem; }
button, input, select, textarea { font: inherit; color: inherit; }
button, input, select, textarea { border: 1px solid #738299; background: var(--surface); border-radius: .5rem; padding: .58rem .78rem; }
button { font-weight: 650; cursor: pointer; min-height: 44px; }
button:hover:not(:disabled) { background: var(--tint); }
button:disabled { opacity: .64; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover:not(:disabled) { background: #10357e; }
:focus-visible { outline: 3px solid #1645a6; outline-offset: 3px; }
::selection { background: #d2dfff; color: var(--ink); }
.grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.panel, .aside { background: var(--surface); border: 1px solid var(--line); border-radius: .65rem; padding: clamp(1rem, 3vw, 1.5rem); }
.actions, .filters { display: flex; flex-wrap: wrap; gap: .65rem; align-items: end; margin: 1rem 0; }
.actions:last-child { margin-bottom: 0; }
label { display: grid; gap: .28rem; font-weight: 650; }
label, input, select, textarea { max-width: 100%; }
textarea { width: 100%; min-height: 6rem; resize: vertical; }
select { min-width: min(10rem, 100%); }
.filters label { min-width: 0; max-width: min(100%, 33rem); }
.filters select { width: 100%; }
.small { color: var(--muted); font-size: .92rem; }
.notice { padding: .75rem 1rem; background: var(--tint); border-radius: .5rem; margin: 1rem 0; }
.coverage { margin: 1.2rem 0; }
.coverage div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--line); padding: .48rem 0; }
.coverage strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
details { border-top: 1px solid var(--line); padding: .8rem 0; }
summary { cursor: pointer; font-weight: 650; }
details > div { padding-left: 1.1rem; }
li + li { margin-top: .38rem; }
.choice { display: block; width: 100%; text-align: left; font-weight: 500; margin-bottom: .55rem; }
.choice.correct { background: #dff1e8; border-color: #247559; opacity: 1; }
.choice.incorrect { background: #f7e4e0; border-color: #a14640; opacity: 1; }
.answer { margin: 1.1rem 0; padding: 1rem; background: var(--tint); border-radius: .55rem; }
.answer-correct { background: #e0f1e8; color: #164c35; }
.answer-incorrect { background: #f7e8e4; color: #722e25; }
.answer p:last-child { margin-bottom: 0; }
.meta { color: var(--muted); font-size: .88rem; margin-bottom: .45rem; }
.question { font-size: clamp(1.25rem, 3vw, 1.8rem); max-width: 37ch; }
.ref-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .9rem; }
.status { color: var(--muted); font-size: .82rem; font-weight: 600; }
.plan { margin: 1.6rem 0; padding-left: 1.5rem; }
.plan li { padding-left: .35rem; margin-bottom: 1rem; }
@media (max-width: 680px) { .grid { grid-template-columns: 1fr; } .filters > label { flex: 1 1 11rem; } }
.exam-grid { grid-template-columns: minmax(0, 2.5fr) minmax(14rem, 1fr); }
.exam-choices { margin-top: 1.35rem; }
.choice { display: flex; gap: .75rem; align-items: baseline; min-height: 3rem; }
.choice-letter { font-weight: 750; flex: 0 0 1.15rem; color: var(--accent); }
.choice[aria-pressed="true"] { background: var(--tint); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.exam-numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.75rem, 1fr)); gap: .35rem; max-height: 23rem; overflow: auto; padding: .25rem; }
.exam-numbers button { padding: .25rem; font-variant-numeric: tabular-nums; }
.exam-numbers .answered { background: var(--tint); border-color: var(--accent); }
.exam-numbers [aria-current="step"] { background: var(--accent); color: white; }
.exam-numbers [aria-current="step"]:hover { background: #10357e; }
.exam-review { margin-top: 1.65rem; }
@media (max-width: 680px) {
 .exam-grid { grid-template-columns: 1fr; }
 .exam-numbers { max-height: 10rem; }
}
