
:root {
    color-scheme: light;
    --ink: #183B56;
    --accent: #2563EB;
    --background: #F5F7FA;
    --card: #FFFFFF;
    --correct: #16A34A;
    --incorrect: #DC2626;
    --muted: #51677c;
    --border: #dce5ee;
    --rail: 252px;
    --radius: 18px;
    --topbar: 68px;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--background);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; line-height: 1.5; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.16; }
a { color: var(--accent); text-underline-offset: .2em; }
button { color: inherit; font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip { position: fixed; z-index: 10; top: 8px; left: 12px; padding: 12px; background: white; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.shell.compact { --rail: 80px; }
.rail { position: sticky; top: 0; display: flex; flex-direction: column; height: 100dvh; background: var(--card); border-right: 1px solid var(--border); padding: 24px 14px 18px; overflow: auto; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; padding-inline: 7px; margin-bottom: 38px; font-size: 1.22rem; font-weight: 750; letter-spacing: -.025em; white-space: nowrap; }
.brand-mark { display: inline-flex; align-items: end; justify-content: center; gap: 3px; flex: 0 0 36px; width: 36px; height: 36px; padding-bottom: 9px; border-radius: 11px; background: var(--accent); }
.brand-mark i { width: 4px; border-radius: 2px; background: white; height: 8px; }
.brand-mark i:nth-child(2) { height: 13px; }
.brand-mark i:nth-child(3) { height: 18px; }
.rail nav { display: grid; gap: 5px; }
.rail nav a, .rail-toggle { display: flex; align-items: center; gap: 12px; min-height: 47px; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; text-align: left; }
.rail nav a:hover, .rail-toggle:hover { background: #f0f5fb; color: var(--ink); }
.rail nav a[aria-current] { background: #eaf1ff; color: #184fbd; }
.rail-toggle { margin-top: auto; border: 0; background: transparent; }
.rail nav { margin-bottom: 22px; }
.compact .brand-name, .compact .nav-label { display: none; }
.compact .rail nav a, .compact .rail-toggle { justify-content: center; }
.workspace { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; min-height: var(--topbar); padding: 12px clamp(18px, 3.5vw, 48px); background: var(--card); border-bottom: 1px solid var(--border); font-weight: 650; }
.mobile-menu, .overlay { display: none; }
.content { width: min(100%, 1330px); margin-inline: auto; flex-grow: 1; padding: 30px clamp(18px, 3.5vw, 48px) 44px; }

.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 265px; padding: 32px clamp(22px, 4vw, 52px); border-radius: 22px; color: white; background: linear-gradient(110deg, #183b56 28%, #184572 67%, #1f55a9); }
.hero-copy { z-index: 1; max-width: 37rem; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 4.55rem); letter-spacing: -.058em; font-weight: 750; overflow-wrap: anywhere; }
.hero-subtitle { margin-top: 13px; max-width: 28rem; font-size: clamp(1rem, 1.8vw, 1.26rem); line-height: 1.42; color: #eff6ff; }
.hero-tagline { margin-top: 22px; font-size: .93rem; font-weight: 650; color: #c7deff; }
.hero-art { position: absolute; width: 47%; min-width: 270px; height: 100%; right: 0; top: 0; pointer-events: none; }
.art-grid { position: absolute; inset: 0; opacity: .3; background-image: linear-gradient(#a5caff50 1px, transparent 1px), linear-gradient(90deg, #a5caff50 1px, transparent 1px); background-size: 27px 27px; mask-image: radial-gradient(ellipse, black 25%, transparent 75%); }
.art-sheet { position: absolute; width: 160px; height: 178px; right: 24%; top: 17%; transform: rotate(-13deg); border-radius: 18px; padding: 24px 22px; background: linear-gradient(150deg, #b4d5ff53, #6196f237); border: 1px solid #b8d8ff8c; box-shadow: 12px 16px 35px #0b254b60; }
.art-sheet i { display: block; margin-bottom: 13px; height: 4px; width: 100%; border-radius: 8px; background: #c4deff82; }
.art-sheet i:first-child { width: 55%; height: 10px; margin-bottom: 25px; background: #d8ebff; }
.art-sheet i:last-child { width: 70%; }
.art-seal { position: absolute; top: 47%; right: 15%; width: 83px; height: 83px; transform: rotate(12deg); border: 1px solid #bfd9ff9a; border-radius: 24px; display: grid; place-items: center; background: #4f83e4; box-shadow: 8px 12px 28px #0a2a6a75; }
.art-seal span { width: 35px; height: 20px; margin-top: -10px; transform: rotate(-45deg); border-bottom: 5px solid white; border-left: 5px solid white; border-radius: 3px; }

.metrics, .modes, .topics { display: grid; gap: 14px; }
.metrics, .modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metrics { margin-top: 16px; }
.metric, .mode-card, .topic-card, .notice { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.metric { display: flex; align-items: center; gap: 13px; padding: 13px 16px; }
.metric-copy { display: flex; flex-direction: column-reverse; }
.metric dt { color: var(--muted); font-size: .875rem; }
.metric dd { font-size: 1.72rem; font-weight: 750; line-height: 1.12; letter-spacing: -.04em; }
.section { margin-top: 33px; }
.section h2, .notice h2 { font-size: clamp(1.32rem, 2.5vw, 1.65rem); letter-spacing: -.025em; }
.section > h2, .section-head { margin-bottom: 14px; }
.section-head { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; column-gap: 18px; row-gap: 4px; }
.section-head a, .back-link { font-size: .9rem; font-weight: 650; }
.mode-card, .topic-card { color: inherit; text-decoration: none; transition: border-color .18s, box-shadow .18s, transform .18s; }
.mode-card:hover, .topic-card:hover { border-color: #93b7fb; box-shadow: 0 7px 18px #183b5612; transform: translateY(-2px); }
.mode-card { display: flex; flex-direction: column; align-items: start; padding: 19px; min-height: 217px; }
.mode-card h3 { margin-top: 13px; font-size: 1.13rem; }
.mode-card p { margin: 8px 0 15px; color: var(--muted); font-size: .96rem; }
.mode-action { margin-top: auto; color: #2058c6; font-size: .9rem; font-weight: 700; }
.mode-card:hover .mode-action { text-decoration: underline; text-underline-offset: .22em; }
.topics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.topic-card { display: flex; flex-direction: column; align-items: start; gap: 8px; min-height: 126px; padding: 14px 15px; }
.topic-type { color: var(--muted); font-size: .82rem; }
.topic-card h3 { font-size: 1rem; overflow-wrap: anywhere; }
.topic-count { margin-top: auto; font-size: .875rem; font-weight: 650; color: #2058c6; }
.future { display: flex; align-items: center; gap: 14px; margin-top: 29px; padding: 15px 18px; border: 1px solid #e0ddf5; background: #f3f1fc; border-radius: var(--radius); }
.future h2 { font-size: 1rem; margin-bottom: 4px; }
.future p, .footer { color: var(--muted); font-size: .875rem; }
.footer { border-top: 1px solid var(--border); padding: 18px clamp(18px, 3.5vw, 48px) 23px; }
.page-intro { margin-bottom: 22px; }
.page-intro h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.045em; overflow-wrap: anywhere; }
.page-intro p { margin-top: 10px; color: var(--muted); max-width: 45rem; }
.back-link { display: inline-block; margin-bottom: 14px; }
.notice { max-width: 46rem; padding: 21px; }
.notice .tile { margin-bottom: 13px; }
.notice p { margin: 8px 0; color: var(--muted); }
.notice a { display: inline-block; margin-top: 9px; }
.study-controls, .study-question {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.study-controls { display: grid; gap: 10px; padding: clamp(15px, 3vw, 24px); margin-bottom: 16px; }
.study-controls h2 { font-size: clamp(1.12rem, 2.5vw, 1.5rem); margin-top: 8px; }
.study-controls label { font-weight: 650; }
.study-controls input, .study-controls select {
    width: min(100%, 38rem);
    min-width: 0;
    min-height: 44px;
    padding: 8px 11px;
    border: 1px solid #aebfce;
    border-radius: 9px;
    background: var(--card);
    color: var(--ink);
    font: inherit;
}
.study-actions, .study-neighbors { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.study-actions button {
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #eaf1ff;
    color: #184fbd;
    font-weight: 650;
}
.study-actions button:hover:not(:disabled) { border-color: var(--accent); }
.study-actions button:disabled { opacity: .65; cursor: default; }
.study-count, .study-topic { color: var(--muted); font-size: .9rem; }
.study-question { margin-bottom: 10px; }
.study-question summary { cursor: pointer; font-weight: 650; padding: 15px 18px; overflow-wrap: anywhere; }
.study-question summary::marker { color: var(--accent); }
.study-topic { font-weight: 500; margin-inline: 5px 9px; }
.study-answer { padding: 13px 18px 18px; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.study-answer h3 { font-size: 1rem; margin: 9px 0 5px; }
.study-answer p, .study-answer li { white-space: pre-wrap; }
.study-answer ul { margin: 5px 0 0; padding-left: 20px; }
.study-neighbors { margin-top: 18px; font-weight: 650; }
.practice-card {
    max-width: 58rem;
    padding: clamp(15px, 3vw, 27px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
}
.practice-card fieldset { min-width: 0; padding: 0; margin: 16px 0; border: 0; }
.practice-card legend { padding: 0; margin-bottom: 9px; font-weight: 650; }
.practice-documents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.practice-check, .practice-option {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 12px;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow-wrap: anywhere;
}
.practice-check:has(input:enabled), .practice-option:has(input:enabled) { cursor: pointer; }
.practice-check:has(input:checked), .practice-option:has(input:checked) { background: #eaf1ff; border-color: #a5c3fe; }
.practice-card input { flex: none; accent-color: var(--accent); }
.practice-check strong + span { display: block; color: var(--muted); font-size: .9rem; }
.practice-count { margin-inline-start: auto; align-self: center; color: var(--muted); font-size: .84rem; white-space: nowrap; }
.practice-all { margin-bottom: 9px; }
.practice-limit { font-weight: 650; }
.practice-card select {
    display: block;
    min-height: 44px;
    margin-top: 6px;
    padding: 6px 11px;
    border: 1px solid #aebfce;
    border-radius: 9px;
    background: var(--card);
    color: var(--ink);
    font: inherit;
}
.practice-meta { margin: 8px 0; color: var(--muted); }
.practice-primary, .practice-secondary {
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--accent);
    border-radius: 9px;
    background: var(--accent);
    color: white;
    font-weight: 650;
}
.practice-secondary { background: #eaf1ff; color: #184fbd; border-color: var(--border); }
.practice-primary:disabled, .practice-secondary:disabled { opacity: .62; cursor: default; }
.practice-error { margin: 9px 0; color: #a71717; }
.practice-error:empty { display: none; }
.practice-progress, .practice-buttons { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; }
.practice-card progress { width: 100%; height: 12px; accent-color: var(--accent); }
.practice-question { font-size: clamp(1.08rem, 2.4vw, 1.35rem); }
.practice-option { margin-top: 8px; flex-wrap: wrap; }
.practice-option > span { flex: 1 1 12rem; }
.practice-option strong { font-size: .85rem; }
.practice-option.is-correct { border-color: var(--correct); background: #eaf7ee; color: #14532d; }
.practice-option.is-wrong { border-color: var(--incorrect); background: #fff0f0; color: #991b1b; }
.practice-feedback { margin: 14px 0; border: 1px solid var(--border); border-radius: 10px; background: var(--background); }
.practice-feedback .is-correct { color: #166534; }
.practice-feedback .is-wrong { color: #991b1b; }
.practice-buttons { justify-content: start; }
.practice-result-metrics { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 20px; }
.practice-result-metrics div { padding: 9px 13px; background: var(--background); border-radius: 10px; }
.practice-result-metrics dt { color: var(--muted); font-size: .88rem; }
.practice-result-metrics dd { font-size: 1.2rem; font-weight: 700; }
.practice-result-documents { display: grid; gap: 5px; padding: 0; margin: 8px 0 18px; list-style: none; }
.practice-result-documents li { display: flex; flex-wrap: wrap; gap: 3px 14px; }
.practice-mistakes { max-width: 58rem; margin-top: 21px; }
.practice-mistakes h2 { margin-bottom: 10px; }
.practice-exit {
    width: min(28rem, calc(100% - 32px));
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--ink);
}
.practice-exit p { margin: 10px 0 16px; }
.practice-exit::backdrop { background: #183b5685; }
.assessment-rules { padding-inline-start: 22px; margin: 12px 0; }
.assessment-rules li + li { margin-top: 5px; }
.assessment-questions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 8px;
    max-width: 39rem;
    margin: 14px 0 20px;
}
.assessment-questions button {
    min-height: 44px;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--card);
    color: var(--ink);
    font-weight: 650;
}
.assessment-questions .is-answered { background: #eaf1ff; border-color: #a5c3fe; }
.assessment-questions [aria-current] { background: var(--accent); border-color: var(--accent); color: white; }
[data-assessment-clock] { font-variant-numeric: tabular-nums; }
@media (max-width: 1050px) {
    .practice-documents { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
    .practice-check { flex-wrap: wrap; gap: 4px 8px; }
}
.no-script { padding: 1rem; }

.tile { display: inline-grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; }
.tile-blue { color: #2058c6; background: #eaf1ff; }
.tile-green { color: #11724c; background: #e5f6ee; }
.tile-violet { color: #6645ad; background: #eee9fa; }
.icon { --stroke: 1.6px; position: relative; display: inline-block; flex: 0 0 20px; width: 20px; height: 20px; }
.icon::before, .icon::after { content: ""; position: absolute; }
.icon-home::before { top: 3px; left: 4px; width: 12px; height: 12px; border: solid currentColor; border-width: var(--stroke) 0 0 var(--stroke); transform: rotate(45deg); border-radius: 2px; }
.icon-home::after { inset: 8px 3px 2px; border: solid currentColor; border-width: 0 var(--stroke) var(--stroke); border-radius: 2px; }
.icon-file::before, .icon-checklist::before { inset: 2px 3px; border: var(--stroke) solid; border-radius: 3px; }
.icon-file::after { left: 7px; right: 7px; top: 7px; height: 5px; border-block: var(--stroke) solid; }
.icon-checklist::after { left: 7px; top: 7px; width: 7px; height: 4px; border: solid currentColor; border-width: 0 0 var(--stroke) var(--stroke); transform: rotate(-45deg); }
.icon-book::before, .icon-book::after { width: 9px; height: 13px; top: 4px; border: var(--stroke) solid; }
.icon-book::before { left: 2px; border-radius: 2px 4px 1px 2px; transform: skewY(7deg); }
.icon-book::after { right: 1px; border-radius: 4px 2px 2px 1px; transform: skewY(-7deg); }
.icon-award::before { width: 12px; height: 12px; inset: 1px 4px; border: var(--stroke) solid; border-radius: 50%; background: inherit; }
.icon-award::after { left: 6px; top: 12px; width: 8px; height: 6px; border-inline: var(--stroke) solid; border-bottom: var(--stroke) solid; border-radius: 0 0 2px 2px; }
.icon-info::before { inset: 2px; border: var(--stroke) solid; border-radius: 50%; }
.icon-info::after { width: 2px; height: 5px; top: 9px; left: 9px; background: currentColor; border-radius: 1px; box-shadow: 0 -3.5px 0 -.3px currentColor; }
.icon-panel::before { inset: 3px 1px; border: var(--stroke) solid; border-radius: 3px; }
.icon-panel::after { left: 7px; top: 4px; bottom: 4px; border-left: var(--stroke) solid; }
.icon-menu::before { left: 2px; right: 2px; top: 4px; height: 12px; border-block: var(--stroke) solid; }
.icon-menu::after { left: 2px; right: 2px; top: 9px; border-top: var(--stroke) solid; }
.icon-message::before { inset: 3px 2px 5px; border: var(--stroke) solid; border-radius: 4px; }
.icon-message::after { left: 5px; top: 12px; width: 5px; height: 5px; background: #eee9fa; border: solid currentColor; border-width: 0 0 var(--stroke) var(--stroke); transform: skewY(-37deg); }

@media (max-width: 1050px) {
    .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-art { opacity: .65; }
    .hero-copy { max-width: 72%; }
    .metrics .tile { display: none; }
    .mode-card { padding: 15px; }
}
@media (max-width: 960px) {
    .modes { grid-template-columns: 1fr; }
    .mode-card { min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 12px; }
    .mode-card .tile { grid-row: 1 / span 3; }
    .mode-card h3, .mode-card p, .mode-action { margin: 0; }
    .hero-art { opacity: .45; }
}
@media (max-width: 760px) {
    .shell, .shell.compact { display: block; --rail: min(285px, 84vw); --topbar: 58px; }
    .workspace { min-height: 100vh; }
    .rail { position: fixed; z-index: 4; inset: 0 auto 0 0; width: var(--rail); height: 100dvh; transform: translateX(-100%); visibility: hidden; }
    .drawer-open .rail { transform: none; visibility: visible; }
    .drawer-open .overlay { display: block; position: fixed; z-index: 3; inset: 0; border: 0; background: #183b5673; }
    .shell.drawer-open .workspace { pointer-events: none; }
    .rail-toggle { display: none; }
    .compact .brand-name, .compact .nav-label { display: inline; }
    .compact .rail nav a { justify-content: start; }
    .mobile-menu { display: grid; place-items: center; width: 42px; height: 42px; background: white; border: 1px solid var(--border); border-radius: 10px; }
    .topbar { padding-block: 6px; }
    .content { padding-top: 18px; }
    .hero { min-height: 218px; }
    .hero-copy { max-width: 82%; }
}
@media (max-width: 490px) {
    .hero { padding: 22px 18px; }
    .hero-copy { max-width: none; }
    .hero-art { opacity: .22; right: -125px; }
    .hero-tagline { margin-top: 15px; }
    .metrics { gap: 7px; }
    .metric { padding: 10px 8px; border-radius: 13px; }
    .metric dd { font-size: 1.45rem; }
    .metric dt { font-size: .78rem; overflow-wrap: anywhere; }
    .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .topic-card { padding: 11px; min-height: 118px; overflow-wrap: anywhere; }
    .future { align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
