:root {
  color-scheme: light;
  --ink: #142747;
  --body: #46576b;
  --border: #d9e2ec;
  --turquoise: #2fbfc1;
  --mint: #e7f8f6;
  --violet: #f3eafb;
  --green: #eaf7ec;
  --white: #fff;
  font-family: "Aptos", "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: #f3f7fb;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible { outline: 3px solid #087c83; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
.site-header { background: var(--ink); color: white; }
.header-inner { max-width: 1136px; margin: auto; padding: 12px 26px; display: flex; align-items: center; justify-content: space-between; min-height: 66px; }
.header-inner > span { font-size: .875rem; color: #daeded; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; letter-spacing: -.035em; }
.brand img { width: 37px; height: 37px; border-radius: 9px; }
.page { max-width: 1136px; margin: auto; padding: 35px 26px 42px; }
.page-heading { margin-bottom: 26px; }
.level { font-size: .875rem; color: #14666a; font-weight: 750; margin-bottom: 7px; }
.level span { margin: 0 4px; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; letter-spacing: -.055em; }
.page-heading > p:last-child { margin-top: 10px; color: var(--body); }
.workspace { display: grid; grid-template-columns: 229px minmax(0, 1fr); gap: 20px; align-items: start; }
.route, .exercise { background: var(--white); border: 1px solid var(--border); border-radius: 22px; }
.route { padding: 20px 14px; }
.route h2 { font-size: 1rem; margin: 0 7px 13px; }
.route ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.step { width: 100%; min-height: 62px; padding: 9px 8px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 13px; background: var(--white); color: var(--ink); text-align: left; }
.step:hover { background: var(--mint); border-color: #a6dfde; }
.step.done { background: var(--green); color: var(--ink); }
.step.current { background: var(--violet); border-color: #d9c1f1; }
.step-number { border-radius: 50%; width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; background: #edf1f6; font-size: .875rem; font-weight: 750; }
.done .step-number { background: #c4ebd1; color: #165a36; }
.current .step-number { color: white; background: #7045a7; }
.step strong, .step small { display: block; }
.step strong { font-size: .875rem; }
.step small { margin-top: 3px; font-size: .8125rem; }
.reset { background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px; color: var(--body); padding: 10px 7px 0; margin-top: 12px; font-size: .875rem; }
.exercise { min-width: 0; min-height: 445px; padding: 26px 30px 21px; box-shadow: 0 10px 32px #14274709; }
.question-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 9px; }
.tag { background: var(--mint); border-radius: 99px; padding: 5px 11px; color: #176569; font-size: .875rem; font-weight: 700; }
.count { color: var(--body); font-size: .875rem; white-space: nowrap; }
progress { width: 100%; height: 7px; display: block; border: 0; border-radius: 99px; background: #e9eff6; appearance: none; overflow: hidden; }
progress::-webkit-progress-bar { background: #e9eff6; }
progress::-webkit-progress-value { background: #2fa9a7; border-radius: 99px; }
progress::-moz-progress-bar { background: #2fa9a7; border-radius: 99px; }
.prompt { font-size: clamp(1.42rem, 3.2vw, 2.05rem); text-align: center; line-height: 1.16; letter-spacing: -.04em; margin: 24px 0 15px; }
.prompt:focus, .interlude h2:focus { outline: none; }
.stimulus { display: flex; flex-direction: column; align-items: center; gap: 9px; margin-bottom: 15px; }
.stimulus img { width: 185px; height: 132px; object-fit: contain; border: 1px solid var(--border); border-radius: 15px; padding: 7px; }
.play { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 15px; border: 1px solid #a6dfde; background: var(--mint); border-radius: 12px; font-weight: 750; }
.play:hover { background: #d1f1f0; }
.play svg { width: 20px; height: 20px; }
.audio-status { font-size: .875rem; text-align: center; margin: 0 auto 12px; color: var(--body); }
.answers { display: grid; grid-template-columns: repeat(var(--columns, 2), minmax(0, 1fr)); gap: 9px; }
.choice { border: 1px solid var(--border); border-radius: 14px; background: white; min-height: 50px; padding: 9px; font-weight: 650; overflow-wrap: anywhere; }
.choice:not(:disabled):hover { border-color: #2c8d90; background: var(--mint); }
.choice img { display: block; height: clamp(74px, 10vw, 117px); width: 100%; object-fit: contain; }
.choice.wrong { border-color: #c75d60; background: #fff0ef; }
.choice.correct { border-color: #55aa77; background: var(--green); box-shadow: inset 0 0 0 1px #55aa77; }
.feedback { min-height: 35px; padding-top: 9px; text-align: center; font-weight: 650; line-height: 1.35; }
.feedback[data-tone="correct"] { color: #17613a; }
.feedback[data-tone="error"] { color: #982f38; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; margin-top: 6px; }
.primary, .secondary { min-height: 46px; padding: 8px 18px; border-radius: 12px; font-weight: 750; border: 1px solid transparent; }
.primary { background: var(--turquoise); }
.primary:not(:disabled):hover { background: #27acaf; }
.primary:disabled { background: #dce7ec; color: #506271; }
.secondary { background: white; border-color: var(--border); }
.secondary:hover { background: #edf4f9; }
.dictation-tools { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.dictation-tools span { margin-right: auto; font-size: .875rem; color: var(--body); }
.dictation-tools button { min-height: 38px; padding: 5px 11px; font-size: .875rem; }
.dictation { grid-column: 1 / -1; min-width: 0; width: 100%; max-width: 556px; margin: auto; }
.dictation label { display: block; font-size: .875rem; margin-bottom: 5px; font-weight: 700; }
.dictation input { width: 100%; border: 1px solid #a9bacb; background: white; border-radius: 12px; padding: 9px 12px; min-height: 44px; color: var(--ink); }
.keypad { display: grid; gap: 4px; margin-top: 8px; }
.key-row { display: flex; justify-content: center; gap: 3px; }
.key { border-radius: 7px; border: 1px solid #cbd9e5; background: #f3f7fb; flex: 1; min-width: 0; padding: 0; height: 34px; font-size: .875rem; font-weight: 700; }
.key:hover { background: var(--mint); }
.key.wide { flex: 2.5; }
.key.space { flex: 4; }
.interlude { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; text-align: center; min-height: 395px; padding: 24px 0; }
.completion-icon { width: 61px; height: 61px; display: grid; place-items: center; border-radius: 20px; background: var(--mint); color: #176569; font-size: 1.85rem; font-weight: 800; }
.interlude-label { color: #176569; font-size: .875rem; font-weight: 750; }
.interlude h2 { font-size: clamp(1.7rem, 4vw, 2.55rem); letter-spacing: -.05em; line-height: 1.07; }
.interlude-text { max-width: 36ch; color: var(--body); line-height: 1.5; }
.review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px auto 20px; max-width: 620px; }
.review-list label { display: flex; align-items: center; gap: 9px; min-height: 45px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.review-list label:has(:checked) { background: var(--mint); border-color: #a6dfde; }
.review-list input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: #176569; }
@media (max-width: 730px) {
  .header-inner { padding: 9px 15px; min-height: 55px; }
  .brand img { width: 31px; height: 31px; }
  .page { padding: 20px 12px 24px; }
  .page-heading { margin: 0 3px 15px; }
  .page-heading > p:last-child { margin-top: 6px; font-size: .9rem; }
  .workspace { grid-template-columns: 1fr; gap: 10px; }
  .route { padding: 6px; border-radius: 15px; }
  .route h2 { position: absolute; clip-path: inset(50%); }
  .route ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
  .step { min-height: 40px; padding: 4px 5px; gap: 4px; border-radius: 9px; }
  .step-number { height: 23px; width: 23px; flex-basis: 23px; font-size: .8rem; }
  .step strong { font-size: .8rem; }
  .step small { display: none; }
  .reset { padding: 0 5px 3px; margin-top: 4px; }
  .exercise { padding: 14px 11px 12px; border-radius: 16px; min-height: 0; }
  .prompt { margin: 16px 0 10px; }
  .answers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stimulus { margin-bottom: 9px; gap: 6px; }
  .stimulus img { width: 125px; height: 82px; border-radius: 10px; }
  .interlude { min-height: 320px; }
}
@media (max-width: 480px) {
  .review-list { grid-template-columns: 1fr; }
}
