:root {
  color-scheme: light;
  --page: #edf1f5;
  --ink: #11253a;
  --muted: #52667a;
  --line: #dce4ec;
  --paper: #fff;
  --navy: #11283f;
  --navy-mid: #1a3650;
  --lime: #dcf680;
  --focus: #2367ac;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); }
button, select, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:where(button, select, summary, label):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
h1, h2, p, dl, dd { margin: 0; }
h2 { font-size: 1.2rem; letter-spacing: -.02em; }
p { color: var(--muted); line-height: 1.55; }
.shell { width: min(70rem, calc(100% - 3rem)); margin: 0 auto; }
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 4.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 760; letter-spacing: -.025em; }
.brand-icon { display: grid; grid-template-columns: repeat(2, .32rem); gap: .16rem; padding: .55rem; border-radius: .48rem; background: var(--navy); }
.brand-icon i { width: .32rem; height: .32rem; background: var(--lime); border-radius: .06rem; }
.brand-icon i:first-child { background: #fff; }
.top-note { color: var(--muted); font-size: .9rem; }
#app { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.hero, .result-hero { background: var(--navy); color: #fff; border-radius: 1.25rem; position: relative; overflow: hidden; }
.hero {
  display: grid; grid-template-columns: 1.3fr .9fr; align-items: center; gap: 2.5rem;
  padding: clamp(1.5rem, 5.5vw, 4rem);
  background-color: var(--navy);
  background-image: radial-gradient(ellipse at 90% 0%, #2a4b65 0%, transparent 65%),
    linear-gradient(90deg, transparent 49%, #ffffff0e 50%, transparent 52%),
    linear-gradient(0deg, transparent 49%, #ffffff0e 50%, transparent 52%);
  background-size: auto, 2.5rem 2.5rem, 2.5rem 2.5rem;
}
.tag { display: inline-block; padding: .32rem .62rem; border-radius: .3rem; font-size: .875rem; font-weight: 760; letter-spacing: .06em; color: #254054; background: #e8f0f6; }
.hero .tag, .result-hero .tag { color: var(--lime); background: #ffffff16; border: 1px solid #ffffff28; }
.hero h1 { margin: .85rem 0 1.05rem; font-size: clamp(2.7rem, 7vw, 5.15rem); line-height: .96; letter-spacing: -.075em; }
.hero p, .result-hero p { color: #d9e4ed; }
.hero p { max-width: 29rem; }
.hero-button { margin-top: 1.45rem; }
.hero-card { padding: 1.45rem; border: 1px solid #ffffff30; background: #18344de8; border-radius: .85rem; }
.hero-card-title { font-weight: 700; color: #eaf2fa; }
.hero-card dl { margin-top: .75rem; }
.hero-card dl div { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 1rem; padding: .78rem 0; border-top: 1px solid #ffffff29; }
.hero-card dl div:last-child { padding-bottom: 0; }
.hero-card dt { color: #ccdae6; }
.hero-card dd { color: var(--lime); font-weight: 780; font-size: 1.65rem; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.btn { border: 1px solid transparent; border-radius: .5rem; min-height: 2.75rem; padding: .55rem 1rem; font-weight: 730; color: var(--ink); }
.primary { background: var(--lime); border-color: #c8e761; }
.primary:hover { background: #c9ed62; }
.secondary { background: var(--paper); border-color: #b7c7d7; }
.secondary:hover:not(:disabled) { background: #eef4f8; }
.landing-grid, .work-layout, .results-grid { display: grid; gap: 1.25rem; }
.landing-grid { grid-template-columns: 1.3fr 1fr; margin-top: 1.25rem; }
.panel { padding: clamp(1.15rem, 3vw, 1.8rem); border: 1px solid var(--line); background: var(--paper); border-radius: .92rem; min-width: 0; box-shadow: 0 2px 3px #11283f06; }
.section-list, .test-list { list-style: none; padding: 0; margin: .7rem 0 0; }
.section-list li, .test-list li { display: flex; align-items: center; gap: .75rem; border-bottom: 1px solid var(--line); padding: .66rem 0; }
.section-list li:last-child, .test-list li:last-child { border-bottom: 0; }
.step-number { display: grid; place-items: center; flex: 0 0 2rem; height: 2rem; border-radius: .38rem; background: #ebf1f6; color: #31516d; font-size: .9rem; font-weight: 750; }
.section-list strong { font-size: .96rem; }
.section-list small { display: block; margin-top: .13rem; color: var(--muted); font-size: .875rem; }
.duration, .planned { margin-left: auto; white-space: nowrap; font-size: .875rem; }
.duration { color: #30526b; font-variant-numeric: tabular-nums; font-weight: 720; }
.planned { color: var(--muted); }
.test-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
.test-list li { font-size: .875rem; gap: .45rem; }
.test-list li:nth-last-child(2) { border-bottom: 0; }
.library p { margin-top: .55rem; }
footer { text-align: center; padding-top: 1.45rem; color: var(--muted); font-size: .875rem; }
.work-layout { grid-template-columns: minmax(0, 1fr) minmax(13.75rem, 17rem); align-items: start; }
.work-panel { padding: clamp(1.1rem, 4vw, 2.25rem); }
.work-panel h1, .result-hero h1 { margin: .65rem 0 1rem; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.05; letter-spacing: -.06em; }
.work-panel > p { margin-bottom: .7rem; }
.work-panel > .btn { margin-top: .6rem; }
.notice { background: #e8f2fa; border-radius: .4rem; padding: .7rem .85rem; }
.exam-header { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.timer { display: flex; flex-direction: column; align-items: center; min-width: 5.75rem; background: #e8f0f6; border-radius: .55rem; padding: .5rem .75rem; color: #1c4361; }
.timer span, .question-index { font-size: .875rem; font-weight: 690; }
.timer strong { font-weight: 800; font-size: 1.55rem; font-variant-numeric: tabular-nums; }
.timer-low { color: #9a2428; background: #fce8e8; }
.choices { padding: 0; margin: 0; border: 0; min-width: 0; }
.choices legend { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 730; line-height: 1.35; margin-bottom: .9rem; padding: 0; }
.choice { display: flex; gap: .7rem; align-items: center; border: 1px solid #ccd8e3; border-radius: .5rem; margin-bottom: .5rem; padding: .6rem .75rem; cursor: pointer; min-height: 3rem; line-height: 1.4; }
.choice:hover { background: #f3f7fa; }
.choice:has(input:checked) { border-color: #376487; background: #e9f4fb; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice-letter { display: grid; place-items: center; flex: 0 0 1.8rem; height: 1.8rem; border-radius: .3rem; background: #eaf0f5; color: #2b4c68; font-weight: 730; }
.choice:has(input:checked) .choice-letter { background: #244e70; color: white; }
.controls { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }
.exam-controls { margin-top: 1rem; justify-content: space-between; }
.sidebar { display: grid; gap: 1.25rem; }
.navigator p { margin-top: .35rem; }
.question-nav { display: flex; gap: .45rem; margin-top: .8rem; flex-wrap: wrap; }
.q-button { width: 2.55rem; height: 2.55rem; border: 1px solid #ccd8e3; color: var(--ink); background: #fff; border-radius: .42rem; font-weight: 700; }
.q-button.answered { background: #e9f2d0; }
.q-button[aria-current] { border: 2px solid #1d4262; }
.text-button { margin-top: .85rem; padding: .5rem 0; border: 0; background: transparent; color: #234e75; font-weight: 710; text-decoration: underline; }
.exam-map .current .step-number { background: var(--navy); color: white; }
.passage { background: #edf4f8; border-left: 3px solid #6c91ac; border-radius: .4rem; padding: 1rem; margin: .5rem 0 1rem; }
.passage p { margin-top: .5rem; color: #344d63; }
.result-hero { padding: clamp(1.2rem, 5vw, 2.75rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.result-score { text-align: right; }
.result-score strong { font-size: clamp(2.3rem, 7vw, 4rem); color: var(--lime); letter-spacing: -.065em; white-space: nowrap; }
.result-score strong span { color: #ccdae6; font-size: .57em; }
.result-score small { display: block; color: #d9e4ed; font-size: .875rem; }
.results-grid { grid-template-columns: .9fr 1.3fr; margin-top: 1.25rem; align-items: start; }
.breakdown .btn { margin-top: .8rem; }
.review-label { display: block; margin: .75rem 0 .35rem; color: var(--muted); font-size: .875rem; font-weight: 650; }
.review select { width: 100%; background: white; padding: .65rem; border: 1px solid #b7c7d7; border-radius: .45rem; color: var(--ink); }
.review details { border-bottom: 1px solid var(--line); padding: .65rem 0; }
.review summary { cursor: pointer; padding: .35rem 0; }
.review details p { margin-top: .45rem; }
.review-status { float: right; margin-left: .5rem; color: var(--muted); font-size: .875rem; font-weight: 740; }
.review-status.correct { color: #28612e; }
.review-status.incorrect { color: #9c302a; }
dialog { max-width: min(28rem, calc(100% - 2rem)); border: 1px solid var(--line); border-radius: .85rem; padding: 1.35rem; color: var(--ink); }
dialog::backdrop { background: #13273b99; }
dialog p { margin: .65rem 0 1rem; }
@media (max-width: 60rem) { .test-list { grid-template-columns: 1fr; } .test-list li:nth-last-child(2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 46rem) {
  .shell { width: calc(100% - 1.75rem); }
  #app { padding-top: 1.1rem; }
  .hero, .landing-grid, .work-layout, .results-grid { grid-template-columns: 1fr; gap: .9rem; }
  .hero-copy h1 br { display: none; }
  .topbar-inner { min-height: 3.8rem; }
  .top-note { display: none; }
}
@media (max-width: 25rem) {
  .exam-header { flex-wrap: wrap; }
  .timer { flex-direction: row; gap: .5rem; }
}
.quick-practice { margin-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.quick-practice h2 .tag { margin-left: .25rem; vertical-align: middle; }
.quick-practice p { margin-top: .45rem; }
.quick-practice form { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.quick-practice label { color: var(--muted); font-size: .9rem; }
.quick-practice select { min-height: 2.75rem; background: white; color: var(--ink); border: 1px solid #b7c7d7; border-radius: .45rem; padding: .45rem .6rem; }
.test-launch { margin: 0 0 0 auto; white-space: nowrap; }
