:root {
  color-scheme: light;
  --paper:#fff; --foam:#f3f9ff; --ice:#e5f3fe; --surf:#cce8fc;
  --sky:#83c4f3; --shore:#8eb8d8; --line:#d3e4f1;
  --deep:#081e39; --ocean:#102c51; --blue:#1c558e;
  --quiet:#476079; --soft-ink:#314d6a;
  --bg:var(--foam); --ink:var(--ocean); --lilac:var(--surf); --lavender:var(--ice);
  --plum:var(--blue); --plum-dark:var(--ocean); --apricot:var(--ice); --orange:var(--sky);
  --green:var(--surf); --green-ink:var(--ocean);
  --radius:24px; --font: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --title: "Arial Black", "Arial", sans-serif;
}
* {box-sizing:border-box}
[hidden] {display:none!important}
body {margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 var(--font);-webkit-font-smoothing:antialiased}
button,input,textarea,select {font:inherit}
button {color:inherit}
button:not(:disabled) {cursor:pointer}
:focus-visible {outline:3px solid var(--blue);outline-offset:4px}
main:focus, h1:focus, h2:focus {outline:none}
a {color:var(--plum-dark);text-underline-offset:3px}
h1,h2,h3,p {margin:0}
img {display:block;max-width:100%;height:auto}
progress {appearance:none;display:block;width:100%;height:11px;border:0;border-radius:999px;background:var(--ice);overflow:hidden}
progress::-webkit-progress-bar {background:var(--ice);border-radius:999px}
progress::-webkit-progress-value {background:var(--plum);border-radius:999px}
progress::-moz-progress-bar {background:var(--plum);border-radius:999px}
.sprite {display:none}
.icon {width:21px;height:21px;flex:none;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.skip {position:absolute;left:12px;top:-100px;z-index:20;background:var(--paper);padding:10px 14px}
.skip:focus {top:12px}
.eyebrow,.edition,.side-label,.tag,.kicker,.node-number {font-weight:850;letter-spacing:.095em;font-size:.71rem;text-transform:uppercase}
.eyebrow,.side-label {color:var(--plum)}
.eyebrow + h1,.eyebrow + h2 {margin-top:.45rem}
.display,.page-title {font-family:var(--title);font-weight:900;letter-spacing:-.064em;line-height:.98}
.display {font-size:clamp(3.5rem,6.8vw,6.7rem)}
.page-title {font-size:clamp(2.25rem,5vw,4.2rem);line-height:1.02}
.card-title {font-weight:850;letter-spacing:-.028em;line-height:1.15;font-size:1.35rem}
.small {font-size:.86rem;color:var(--quiet)}
.lead {color:var(--soft-ink);font-size:clamp(1rem,1.6vw,1.15rem);max-width:56ch}
.flow > *+* {margin-top:16px}
.flow-tight > *+* {margin-top:9px}
.row {display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.tag {display:inline-flex;align-items:center;gap:6px;color:var(--plum-dark);border-radius:999px;background:var(--lilac);padding:6px 10px;line-height:1.2}
.tag.orange {background:var(--apricot);color:var(--ocean)}
.tag.neutral {background:var(--ice);color:var(--quiet)}
.tag.green {background:var(--green);color:var(--green-ink)}
.topbar {border-bottom:1px solid var(--line);background:var(--bg)}
.top-inner {width:min(1240px,calc(100% - 48px));margin:auto;min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.brand {display:flex;align-items:center;gap:9px;padding:0;border:0;background:none;text-align:left;white-space:nowrap}
.brand-mark {width:39px;height:39px;display:grid;place-items:center;background:var(--plum-dark);color:var(--paper);border-radius:12px}
.brand-name {font-weight:950;letter-spacing:-.077em;font-size:1.55rem;line-height:1}
.brand-name > span:first-child {color:var(--blue)}
.brand-light {font-weight:650;letter-spacing:-.06em}
.top-status {display:flex;align-items:center;gap:10px;color:var(--plum-dark)}
.edition {border:1px solid var(--line);border-radius:999px;padding:7px 11px;white-space:nowrap}
.top-stat {display:flex;align-items:center;gap:5px;padding:5px 8px;border-radius:10px;font-weight:800;font-variant-numeric:tabular-nums}
.top-stat .icon {width:18px;height:18px}
.top-stat.streak {color:var(--blue);background:var(--ice)}
.top-stat.xp {color:var(--plum-dark);background:var(--lavender)}
.app-shell {width:min(1240px,calc(100% - 48px));margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr);min-height:calc(100svh - 163px);padding:26px 0 38px}
.app-shell.with-nav {grid-template-columns:205px minmax(0,1fr);gap:28px}
.sidebar {display:flex;flex-direction:column;align-self:start;position:sticky;top:24px;padding:14px 0;gap:16px;min-width:0}
.navigation {display:grid;gap:7px}
.nav-button {min-width:0;display:flex;align-items:center;gap:12px;border:1px solid transparent;background:none;padding:11px 13px;border-radius:14px;min-height:49px;font-weight:760;text-align:left;color:var(--soft-ink)}
.nav-button:hover {background:var(--ice)}
.nav-button[aria-current=page] {border-color:var(--line);background:var(--lilac);color:var(--plum-dark)}
.nav-button .count {margin-left:auto;border-radius:8px;background:var(--paper);font-size:.75rem;min-width:22px;text-align:center;padding:1px 5px;color:var(--plum-dark)}
.sidebar-note {display:flex;align-items:center;gap:10px;padding-top:14px;margin-top:10px;border-top:1px solid var(--line);font-size:.86rem}
.sidebar-note span {display:block;color:var(--quiet);font-size:.75rem}
.sidebar-note img {border-radius:50%}
#screen {min-width:0}
.site-foot {width:min(1240px,calc(100% - 48px));margin:auto;border-top:1px solid var(--line);padding:16px 0 22px;color:var(--quiet);font-size:.76rem;display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap}
.site-foot div {display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.site-foot div > span:first-child {font-weight:800;color:var(--ink)}
.noscript,.loading {padding:24px}
.button {min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 17px;border-radius:13px;border:1px solid var(--line);background:var(--paper);font-weight:810;text-align:center;line-height:1.2;text-decoration:none;transition:background-color .15s,transform .15s,box-shadow .15s}
.button:hover:not(:disabled) {background:var(--lavender)}
.button:active:not(:disabled) {transform:translateY(1px)}
.button.primary {background:var(--plum-dark);color:var(--paper);border-color:var(--plum-dark);box-shadow:0 3px 0 var(--shore)}
.button.primary:hover:not(:disabled) {background:var(--blue)}
.button.orange {background:var(--orange);border-color:var(--shore);color:var(--ink);box-shadow:0 3px 0 var(--shore)}
.button.orange:hover:not(:disabled) {background:var(--sky)}
.button:disabled {opacity:.52;box-shadow:none}
.button.sm {min-height:42px;padding:8px 12px;font-size:.86rem}
.button .icon {width:18px;height:18px}
.text-btn {background:none;border:0;padding:6px 2px;min-height:42px;font-weight:740;color:var(--plum-dark);text-decoration:underline;text-underline-offset:3px}
.icon-btn {min-height:44px;min-width:44px;display:inline-grid;place-items:center;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.card {background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:clamp(17px,3vw,27px)}
.welcome-hero {display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:10px;background:var(--ice);border:1px solid var(--line);border-radius:32px;padding:clamp(24px,4.6vw,64px);overflow:hidden;position:relative}
.welcome-copy {min-width:0;position:relative;z-index:1}
.welcome-copy .display {max-width:9ch}
.welcome-copy .display em {font-style:normal;color:var(--blue)}
.welcome-copy .lead {max-width:41ch}
.welcome-copy .row {padding-top:7px}
.hero-visual {margin:0;position:relative;min-width:0}
.hero-visual img {width:100%;max-width:540px;margin:auto}
.hero-visual figcaption {position:absolute;bottom:4%;right:7%;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:999px;padding:7px 11px;font-size:.78rem;font-weight:780;transform:rotate(-4deg);box-shadow:0 4px 0 var(--line)}
.hero-micro {display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}
.hero-micro article {padding:16px 18px;display:flex;gap:12px;align-items:flex-start}
.icon-chip {display:grid;place-items:center;background:var(--lilac);color:var(--plum-dark);width:42px;height:42px;flex:none;border-radius:13px}
.icon-chip.orange {background:var(--ice);color:var(--ocean)}
.icon-chip.green {background:var(--ice);color:var(--ocean)}
.hero-micro h2 {font-weight:850;font-size:.99rem;line-height:1.24;margin-bottom:4px}
.narrow {width:min(100%,740px);margin:0 auto}
.wizard-head {display:flex;align-items:center;gap:13px;margin-bottom:20px}
.wizard-head progress {flex:1}
.wizard-head .kicker {white-space:nowrap;color:var(--quiet)}
fieldset {min-width:0;border:0;padding:0;margin:0}
legend {padding:0;margin-bottom:8px;font-weight:820}
.options {display:grid;gap:8px}
.options.cards {grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.option {width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:10px 13px;min-height:52px;background:var(--paper);border:1px solid var(--line);border-radius:13px;font-weight:650;overflow-wrap:anywhere}
.option:hover:not(:disabled) {background:var(--ice);border-color:var(--shore)}
.option[aria-pressed=true] {background:var(--lilac);border-color:var(--plum)}
.option.keyed .key {display:grid;place-items:center;min-width:26px;height:26px;border:1px solid var(--line);border-radius:7px;font-size:.79rem;font-weight:810;color:var(--quiet);background:var(--paper)}
.option.cardslot {display:grid;align-content:start;justify-items:start;gap:9px;padding:12px;min-height:145px}
.option.cardslot span:not(.icon-chip) {line-height:1.28}
.option.cardslot strong {font-size:1.03rem}
.option .option-detail {color:var(--quiet);font-size:.8rem;font-weight:560}
.pill-row {display:flex;flex-wrap:wrap;gap:8px}
.pill {min-height:44px;border:1px solid var(--line);background:var(--paper);border-radius:999px;padding:8px 13px;font-weight:720}
.pill[aria-pressed=true] {background:var(--lilac);color:var(--plum-dark);border-color:var(--plum)}
.coach {display:flex;gap:11px;align-items:center;padding:13px 14px;background:var(--ice);border-radius:15px;color:var(--ocean)}
.coach img {width:42px;height:42px;flex:none}
.coach strong {display:block;color:var(--plum-dark);font-size:.8rem}
.coach p {font-size:.92rem;line-height:1.4}
.course-grid {display:grid;grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr);gap:18px;align-items:start}
.course-banner {padding:25px;border-radius:25px;background:var(--lilac);border:1px solid var(--line);overflow:hidden;position:relative}
.course-banner.work {background:var(--ice);border-color:var(--line)}
.course-banner.media {background:var(--ice);border-color:var(--line)}
.course-banner .lead {max-width:45ch}
.course-banner .row {justify-content:space-between}
.path-list {position:relative;margin:18px 0 0;padding:0;list-style:none;display:grid;gap:8px}
.path-list::before {content:"";position:absolute;left:27px;top:28px;bottom:28px;border-left:2px dashed var(--line)}
.path-list li {position:relative}
.path-node {width:100%;min-height:79px;display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:12px;text-align:left;border:1px solid var(--line);background:var(--paper);border-radius:17px;padding:10px 11px 10px 6px}
.path-node:disabled {background:#ffffff80;color:var(--quiet)}
.path-node.active {border-color:var(--shore);box-shadow:0 3px 0 var(--line);background:var(--ice)}
.path-node:hover:not(:disabled) {border-color:var(--plum)}
.path-node strong {display:block;line-height:1.15;font-size:1rem}
.path-node .small {display:block;margin-top:3px;font-size:.79rem}
.node-bubble {width:44px;height:44px;border-radius:15px;margin:auto;display:grid;place-items:center;color:var(--plum-dark);background:var(--lilac)}
.active .node-bubble {background:var(--plum-dark);color:var(--paper)}
.done .node-bubble {background:var(--green);color:var(--green-ink)}
.path-node:disabled .node-bubble {background:var(--ice);color:var(--quiet)}
.node-number {color:var(--quiet);margin-bottom:3px;display:block;font-size:.64rem}
.side-stack {display:grid;gap:12px}
.cabin {background:var(--ocean);color:var(--paper);border-color:var(--ocean);position:relative;overflow:hidden}
.cabin .eyebrow {color:var(--sky)}
.cabin .small,.cabin .lead {color:var(--surf)}
.cabin .card-title {color:var(--paper)}
.cabin img {max-height:170px;margin:0 auto}
.session-steps {padding:0;list-style:none;display:grid;gap:9px;margin:13px 0 0}
.session-steps li {display:flex;gap:8px;justify-content:space-between;border-top:1px solid var(--line);padding-top:7px;font-size:.85rem}
.session-steps strong {white-space:nowrap;color:var(--plum-dark)}
.lesson-wrap {width:min(100%,735px);margin:auto}
.lesson-top {display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;margin-bottom:16px}
.lesson-top .kicker {color:var(--quiet)}
.lesson-card .page-title {font-size:clamp(1.85rem,4.3vw,3.25rem);letter-spacing:-.048em;line-height:1.1}
.lesson-card .prompt {font-size:clamp(1.26rem,3.5vw,1.9rem);line-height:1.21;font-weight:870;letter-spacing:-.025em}
.lesson-card .scene {padding:15px;background:var(--ice);border-radius:13px;color:var(--ocean)}
.audio-row {display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:var(--ice);padding:10px;border-radius:14px}
.audio-row .small {min-width:5ch}
.tokens {display:flex;gap:8px;flex-wrap:wrap}
.token {border:1px solid var(--shore);border-radius:10px;min-height:44px;background:var(--paper);padding:8px 11px;font-weight:760}
.token:hover:not(:disabled) {background:var(--lilac)}
.token:disabled {opacity:.45}
.answer-line {display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:9px;min-height:60px;border:1px dashed var(--shore);border-radius:12px;background:var(--ice)}
.answer-line > span {color:var(--quiet);font-size:.86rem}
.answer {width:100%;min-height:96px;padding:12px;border:1px solid var(--shore);border-radius:13px;background:var(--paper);color:var(--ink);resize:vertical}
.correction {border-radius:14px;padding:13px 15px;background:var(--green);color:var(--ocean)}
.correction.retry {background:var(--ice);color:var(--ocean)}
.correction .row {align-items:flex-start;gap:8px}
.correction p {margin-top:5px;font-size:.91rem}
.hint {color:var(--ocean);background:var(--ice);border-radius:12px;padding:11px 13px;font-size:.91rem}
.results-card {background:var(--lilac);border-color:var(--line)}
.result-numbers {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.result-numbers div {background:var(--paper);border:1px solid var(--line);border-radius:15px;padding:12px}
.result-numbers strong {display:block;font-size:clamp(1.15rem,4vw,2rem);line-height:1.12}
.result-numbers span {font-size:.78rem;color:var(--quiet);line-height:1.2}
.celebrate {position:relative;isolation:isolate;overflow:hidden}
.celebrate::after {content:"";pointer-events:none;position:absolute;right:7%;top:7%;width:88px;height:88px;background:var(--sky);clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);z-index:-1;opacity:.36;animation:pop .6s cubic-bezier(.2,.8,.2,1)}
@keyframes pop {from {transform:scale(.35) rotate(-35deg);opacity:.05}to {transform:scale(1);opacity:.36}}
.review-list {display:grid;gap:8px;padding:0;list-style:none;margin:0}
.review-line {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:7px;padding:10px 0;border-bottom:1px solid var(--line)}
.review-line strong {display:block}
.settings-row {display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
details > summary {font-weight:800;cursor:pointer;color:var(--plum-dark)}
details > :not(summary) {margin-top:8px}
dialog {max-width:min(480px,calc(100% - 24px));color:var(--ink);border:1px solid var(--line);border-radius:18px;padding:22px;background:var(--paper)}
dialog::backdrop {background:#081e3988}
@media(max-width:1080px) {
  .app-shell.with-nav {grid-template-columns:162px minmax(0,1fr);gap:17px}
  .course-grid {grid-template-columns:minmax(0,1fr) minmax(200px,.65fr);gap:12px}
  .nav-button {gap:8px;padding-inline:10px}
}
@media(max-width:840px) {
  .app-shell.with-nav {display:block}
  .app-shell.with-nav .sidebar {position:fixed;z-index:8;bottom:0;top:auto;left:0;right:0;background:var(--paper);padding:5px max(12px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));border-top:1px solid var(--line)}
  .sidebar .side-label,.sidebar .sidebar-note {display:none}
  .navigation {grid-template-columns:repeat(3,minmax(0,1fr));max-width:560px;margin:auto;width:100%}
  .nav-button {justify-content:center;min-height:45px;gap:5px;padding:4px 7px;font-size:.78rem}
  .nav-button .icon {width:18px;height:18px}
  .nav-button .count {margin-left:0;min-width:17px}
  .app-shell.with-nav ~ .site-foot {padding-bottom:calc(72px + env(safe-area-inset-bottom))}
}
@media(max-width:640px) {
  .top-inner,.app-shell,.site-foot {width:calc(100% - 26px)}
  .top-inner {min-height:61px}
  .app-shell {padding-top:14px}
  .welcome-hero {grid-template-columns:1fr;padding:24px 19px 11px;gap:0;border-radius:23px}
  .hero-visual img {max-width:280px;margin:0 auto}
  .hero-visual figcaption {right:8%;bottom:8%}
  .hero-micro {grid-template-columns:1fr;gap:7px;margin-top:9px}
  .hero-micro article {padding:11px 12px}
  .hero-micro .icon-chip {width:37px;height:37px}
  .course-grid {grid-template-columns:1fr}
  .course-banner {padding:20px 17px}
  .options.cards {grid-template-columns:1fr}
  .option.cardslot {grid-template-columns:42px 1fr;align-items:center;justify-items:start;min-height:58px;padding:8px 11px;gap:8px}
  .option.cardslot .icon-chip {grid-row:span 2}
  .option.cardslot .option-detail {grid-column:2;margin-top:-6px}
  .path-node {min-height:71px;grid-template-columns:46px minmax(0,1fr) auto;gap:8px}
  .path-node .small {font-size:.74rem}
  .path-list::before {left:28px}
  .course-grid .cabin img {max-height:125px}
}
@media(max-width:375px) {
  .top-status {gap:2px}.top-stat {gap:3px;padding:4px}.brand-name {font-size:1.3rem}.brand-mark {width:32px;height:32px}
  .edition {font-size:.62rem}.nav-button {font-size:.73rem}
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.studio-hero {display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,.55fr);align-items:center;gap:12px}
.studio-hero img {width:100%;max-width:240px;margin:auto}
.record-panel {padding:11px 13px;border:1px solid var(--line);border-radius:13px;background:var(--ice)}
.record-panel audio {width:min(100%,355px);display:block;margin-top:8px}
.rehearsal-line {font-size:1.1rem;color:var(--plum-dark);font-weight:730}
.checklist {display:grid;gap:9px}
.checklist label {display:flex;gap:9px;align-items:flex-start;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:10px}
.checklist input {width:18px;height:18px;margin:.2em 0 0;accent-color:var(--plum-dark);flex:none}
.reset-form {margin-top:16px}
@media(max-width:840px) {.navigation {grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:470px) {.studio-hero {grid-template-columns:1fr}.studio-hero img {display:none}}
@media(max-width:350px) {.nav-button {gap:3px;padding-inline:3px}.nav-button .count {display:none}}
.sync-notice:not(:empty) {width:min(740px,calc(100% - 26px));margin:0 auto 18px;border-radius:12px;background:var(--lilac);color:var(--plum-dark);padding:11px 15px;font-size:.9rem}
@media(max-width:360px) {
  .nav-button {flex-direction:column;gap:1px;padding:3px 2px}
  .nav-button .icon {width:17px;height:17px}
}
