    :root {
      --bg: #0d0d11;
      --bg-2: #15151B;
      --card: #17171F;
      --card-2: #1a1a22;
      --text: #ffffff;
      --muted: #a9a9a9;
      --faint: #6a6a6a;
      --accent: #FF5A1F;
      --accent-2: #FFC145;
      --brand: #FF5A1F;
      --brand-2: #FFC145;
      --blue: #4bacc6;
      --ok: #2ee59d;
      --bad: #d64545;
      --line: rgba(255, 255, 255, 0.10);
      --line-2: rgba(255, 255, 255, 0.18);
      --shadow: 0 20px 54px rgba(0, 0, 0, .40);
      --font: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      --display: "Unbounded", Manrope, system-ui, sans-serif;
      --brand-font: Manrope, Arial, system-ui, sans-serif;
      --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      min-height: 100vh;
      color: var(--text);
      font-family: var(--font);
      overflow-x: hidden;
      background:
        radial-gradient(circle at 82% 0%, rgba(255, 90, 31, .08), transparent 38%),
        radial-gradient(circle at 8% 28%, rgba(255, 90, 31, .05), transparent 32%),
        linear-gradient(180deg, #0d0d11 0%, #17171F 100%);
    }

    a { color: inherit; text-decoration: none; }
    button, textarea { font: inherit; }

    /* Topbar/brand/nav — uses canonical from system.css (etalon A) */

    .page {
      width: min(1480px, calc(100% - 32px));
      margin: 0 auto;
      padding: clamp(36px, 6vw, 86px) 0 68px;
    }

    .hero {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
      gap: clamp(28px, 5vw, 76px);
      align-items: end;
      min-height: calc(100vh - 120px);
      padding-bottom: 44px;
      border-bottom: 1px solid var(--line);
      overflow: hidden;
    }

    .eyebrow {
      color: var(--accent);
      font: 700 12px var(--mono);
      letter-spacing: .24em;
      text-transform: uppercase;
      margin-bottom: 22px;
    }

    h1 {
      max-width: 980px;
      margin: 0;
      font-family: var(--display);
      font-size: clamp(54px, 9vw, 142px);
      line-height: .86;
      letter-spacing: -.045em;
      text-transform: uppercase;
    }

    h1 span { color: var(--accent); }

    .lead {
      max-width: 740px;
      margin: 30px 0 0;
      color: var(--muted);
      font-size: clamp(18px, 2vw, 24px);
      line-height: 1.55;
    }

    .hero-actions {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 30px;
    }

    .btn {
      min-height: 48px;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 0 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background: transparent;
      color: var(--text);
      font-weight: 800;
      cursor: pointer;
    }

    .btn.primary {
      border-color: transparent;
      background: var(--accent);
      color: #160904;
    }

    .btn:hover { transform: translateY(-1px); }

    .hero-panel {
      max-width: 100%;
      border: 1px solid var(--line);
      border-radius: 18px;
      background:
        linear-gradient(135deg, rgba(122,95,207,.08), transparent 44%),
        #ffffff;
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .hero-panel-head {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      padding: 18px;
      border-bottom: 1px solid var(--line);
      color: var(--muted);
      font: 11px var(--mono);
      letter-spacing: .16em;
      text-transform: uppercase;
    }

    .aspect-list {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1px;
      background: var(--line);
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .aspect-list li {
      list-style: none;
      display: grid;
      grid-template-columns: 96px 1fr;
      align-items: center;
      min-height: 76px;
      padding: 0 22px;
      background:
        linear-gradient(90deg, var(--aspect-soft), transparent 72%),
        #ffffff;
      border-left: 4px solid var(--aspect);
    }

    .aspect-list li:nth-child(1) { --aspect: #e26a2c; --aspect-soft: rgba(226,106,44,.12); }
    .aspect-list li:nth-child(2) { --aspect: #31849b; --aspect-soft: rgba(49,132,155,.12); }
    .aspect-list li:nth-child(3) { --aspect: #8064a2; --aspect-soft: rgba(128,100,162,.12); }
    .aspect-list li:nth-child(4) { --aspect: #76923c; --aspect-soft: rgba(118,146,60,.12); }
    .aspect-list li:nth-child(5) { --aspect: #c0504d; --aspect-soft: rgba(192,80,77,.12); }

    .aspect-list b {
      color: var(--aspect);
      font-family: var(--display);
      font-size: clamp(42px, 5vw, 72px);
      line-height: .82;
      letter-spacing: -.07em;
    }

    .aspect-list span {
      color: var(--text);
      font-size: 18px;
      font-weight: 800;
      overflow-wrap: anywhere;
    }

    .section {
      padding: clamp(54px, 7vw, 94px) 0 0;
    }

    .section-head {
      display: grid;
      grid-template-columns: 210px minmax(0, .82fr) minmax(280px, .55fr);
      gap: 28px;
      align-items: end;
      margin-bottom: 26px;
    }

    .index-badge {
      display: inline-grid;
      gap: 8px;
      align-content: end;
      min-width: 150px;
    }

    .index-badge strong {
      display: block;
      color: var(--accent);
      font-family: var(--display);
      font-size: clamp(76px, 9vw, 132px);
      line-height: .78;
      letter-spacing: -.08em;
    }

    .index-badge small {
      display: block;
      color: var(--muted);
      font: 700 11px var(--mono);
      letter-spacing: .34em;
      text-transform: uppercase;
      padding-left: 4px;
    }

    .section-kicker {
      color: var(--accent);
      font: 700 12px var(--mono);
      letter-spacing: .22em;
      text-transform: uppercase;
      margin-bottom: 14px;
    }

    h2 {
      margin: 0;
      font-family: var(--display);
      font-size: clamp(36px, 5.6vw, 86px);
      line-height: .94;
      letter-spacing: -.04em;
      text-transform: uppercase;
    }

    .section-copy {
      color: var(--muted);
      font-size: 17px;
      line-height: 1.55;
    }

    .level-nav {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin: 28px 0;
    }

    .level-jump {
      border: 1px solid var(--line);
      border-radius: 12px;
      min-height: 44px;
      padding: 0 14px;
      display: inline-flex;
      align-items: center;
      color: var(--muted);
      font: 700 12px var(--mono);
      letter-spacing: .12em;
      text-transform: uppercase;
    }

    .level-jump.active,
    .level-jump:hover {
      color: var(--accent);
      border-color: rgba(255,155,47,.5);
      background: rgba(255,155,47,.08);
    }

    .level-stack { display: grid; gap: 18px; }

    .level-card {
      border: 1px solid var(--line);
      border-radius: 20px;
      background:
        linear-gradient(135deg, rgba(122,95,207,.07), transparent 42%),
        #ffffff;
      overflow: hidden;
    }

    .level-card.open {
      border-color: rgba(255,155,47,.38);
      box-shadow: 0 24px 70px rgba(40,32,76,.12);
    }

    .level-head {
      display: grid;
      grid-template-columns: 150px 1fr auto;
      gap: 24px;
      align-items: center;
      padding: clamp(18px, 3vw, 30px);
    }

    .level-index {
      display: grid;
      gap: 8px;
      align-content: center;
      min-height: 110px;
    }

    .level-index span {
      color: var(--accent);
      font-family: var(--display);
      font-size: clamp(72px, 7vw, 116px);
      line-height: .78;
      letter-spacing: -.08em;
    }

    .level-index small {
      color: var(--muted);
      font: 700 10px var(--mono);
      letter-spacing: .26em;
      text-transform: uppercase;
      padding-left: 4px;
    }

    .level-title {
      margin: 0 0 8px;
      font-family: var(--display);
      font-size: clamp(26px, 3.5vw, 52px);
      line-height: .95;
      letter-spacing: -.035em;
      text-transform: uppercase;
    }

    .level-desc {
      max-width: 780px;
      margin: 0;
      color: var(--muted);
      line-height: 1.55;
      font-size: 16px;
    }

    .start-btn {
      min-height: 46px;
      border: 0;
      border-radius: 12px;
      padding: 0 18px;
      background: var(--accent);
      color: #150803;
      font-weight: 900;
      cursor: pointer;
      white-space: nowrap;
    }

    .level-actions {
      display: grid;
      gap: 10px;
      justify-items: stretch;
    }

    .level-actions .pdf-link {
      min-height: 42px;
      border-radius: 4px;
      background: #ffffff;
      color: var(--brand-2);
      white-space: nowrap;
    }

    .test-body {
      display: none;
      padding: 0 clamp(18px, 3vw, 30px) clamp(20px, 3vw, 32px);
      border-top: 1px solid var(--line);
    }

    .level-card.open.is-started .test-body { display: block; }

    .test-flow {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding: 18px 0 0;
      position: sticky;
      top: 64px;
      z-index: 3;
      background: linear-gradient(180deg, rgba(247,245,255,.96), rgba(247,245,255,.82));
      backdrop-filter: blur(10px);
    }

    .flow-step,
    .next-section-btn {
      min-height: 38px;
      border: 1px solid var(--line-2);
      border-radius: 4px;
      padding: 0 12px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: #ffffff;
      color: var(--muted);
      font: 800 11px var(--mono);
      letter-spacing: .08em;
      text-transform: uppercase;
      cursor: pointer;
    }

    .flow-step.is-active,
    .flow-step:hover,
    .next-section-btn:hover {
      border-color: rgba(255,155,47,.55);
      color: var(--accent);
      background: rgba(255,155,47,.08);
    }

    .section-grid {
      display: grid;
      grid-template-columns: 190px minmax(0, 1fr);
      gap: 18px;
      padding-top: 22px;
      --skill: var(--accent);
      --skill-soft: rgba(255,155,47,.08);
    }

    .section-grid.is-current .task-card {
      box-shadow: 0 18px 42px rgba(40,32,76,.10);
    }

    .section-grid.skill-reading {
      --skill: #e26a2c;
      --skill-bg: #fff5ee;
      --skill-bg-2: #ffe7d6;
      --skill-line: rgba(226,106,44,.28);
      --skill-soft: rgba(226,106,44,.10);
    }

    .section-grid.skill-listening {
      --skill: #31849b;
      --skill-bg: #eef9fc;
      --skill-bg-2: #ddf2f7;
      --skill-line: rgba(49,132,155,.28);
      --skill-soft: rgba(49,132,155,.12);
    }

    .section-grid.skill-writing {
      --skill: #8064a2;
      --skill-bg: #f6f0ff;
      --skill-bg-2: #eadfff;
      --skill-line: rgba(128,100,162,.28);
      --skill-soft: rgba(128,100,162,.12);
    }

    .section-grid.skill-speaking {
      --skill: #76923c;
      --skill-bg: #f3f8e8;
      --skill-bg-2: #e6f0ce;
      --skill-line: rgba(118,146,60,.28);
      --skill-soft: rgba(118,146,60,.12);
    }

    .section-grid.skill-grammar {
      --skill: #c0504d;
      --skill-bg: #fff0ef;
      --skill-bg-2: #f8dcda;
      --skill-line: rgba(192,80,77,.30);
      --skill-soft: rgba(192,80,77,.12);
    }

    .skill-label {
      display: grid;
      gap: 8px;
      padding-top: 18px;
    }

    .skill-num {
      color: var(--skill);
      font-family: var(--display);
      font-size: clamp(52px, 6vw, 92px);
      line-height: .78;
      letter-spacing: -.08em;
    }

    .skill-name {
      color: var(--skill);
      font: 700 11px var(--mono);
      letter-spacing: .28em;
      text-transform: uppercase;
      padding-left: 2px;
    }

    .task-card {
      border: 1px solid var(--skill-line);
      border-radius: 16px;
      background:
        linear-gradient(135deg, var(--skill-bg-2), transparent 46%),
        var(--skill-bg);
      padding: clamp(18px, 3vw, 28px);
    }

    .task-card h3 {
      margin: 0 0 14px;
      font-size: clamp(22px, 2.2vw, 34px);
      line-height: 1.05;
      letter-spacing: -.02em;
    }

    .task-card p,
    .reading-text,
    .listening-panel {
      color: #312b3c;
      font-size: 16px;
      line-height: 1.75;
    }

    .reading-text,
    .listening-panel {
      padding: 18px;
      border-radius: 14px;
      border: 1px solid var(--skill-line);
      background: rgba(255,255,255,.68);
      margin-bottom: 18px;
    }

    ol, ul {
      margin: 14px 0 0;
      padding-left: 22px;
      color: #40384f;
      line-height: 1.65;
    }

    li + li { margin-top: 8px; }

    .question-grid {
      display: grid;
      gap: 14px;
      margin-top: 18px;
    }

    .question-card {
      display: grid;
      gap: 10px;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 14px;
      background: rgba(255,255,255,.62);
    }

    .question-card strong,
    .answer-field span {
      color: var(--skill);
      font: 700 12px var(--mono);
      letter-spacing: .08em;
    }

    .question-card p {
      margin: 0;
    }

    .answer-field input {
      min-height: 42px;
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 0 12px;
      color: var(--text);
      background: rgba(255,255,255,.82);
      outline: none;
    }

    .answer-field input:focus {
      border-color: var(--skill);
    }

    textarea {
      width: 100%;
      min-height: 150px;
      resize: vertical;
      margin-top: 12px;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 16px;
      color: var(--text);
      background: rgba(255,255,255,.82);
      outline: none;
    }

    textarea:focus { border-color: var(--accent); }

    .choice-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .choice-option,
    .audio-btn,
    .record-btn,
    .pdf-link,
    .finish-btn {
      border: 1px solid var(--line-2);
      border-radius: 999px;
      padding: 9px 13px;
      color: var(--text);
      background: transparent;
      cursor: pointer;
      font-weight: 800;
    }

    .choice-option.is-selected,
    .grammar-option.is-selected,
    .audio-btn:hover,
    .record-btn:hover,
    .pdf-link:hover,
    .finish-btn:hover {
      border-color: var(--skill);
      background: var(--skill-soft);
    }

    .choice-option.is-correct,
    .grammar-option.is-correct {
      border-color: rgba(33, 150, 96, .55);
      background: rgba(46, 229, 157, .18);
      color: #173f2d;
    }

    .choice-option.is-wrong,
    .grammar-option.is-wrong {
      border-color: rgba(214, 69, 69, .52);
      background: rgba(214, 69, 69, .10);
      color: #642020;
    }

    .question-feedback {
      margin-top: 10px;
      min-height: 20px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 800;
    }

    .question-feedback.is-correct { color: #1f7a51; }
    .question-feedback.is-wrong { color: #a13535; }

    .answer-note {
      width: 100%;
      min-height: 40px;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 0 12px;
      background: rgba(255,255,255,.82);
      outline: none;
    }

    .task-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 18px;
    }

    .pdf-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--skill);
      text-decoration: none;
    }

    .listening-panel {
      display: grid;
      gap: 12px;
    }

    .audio-stack {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }

    .audio-stack audio {
      width: min(360px, 100%);
      min-height: 40px;
    }

    .play-audio-btn {
      min-height: 48px;
      border: 0;
      border-radius: 4px;
      padding: 0 18px;
      background: var(--skill);
      color: #fff;
      cursor: pointer;
      font-weight: 900;
    }

    .audio-fallback-btn {
      opacity: .78;
    }

    .audio-note,
    .writing-checklist {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
      font-weight: 700;
    }

    .writing-rubric {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
      margin-top: 14px;
    }

    .writing-rubric span {
      border: 1px solid var(--skill-line);
      padding: 9px 10px;
      background: rgba(255,255,255,.64);
      color: #312b3c;
      font: 800 11px/1.35 var(--mono);
      letter-spacing: .04em;
      text-transform: uppercase;
    }

    .writing-counter {
      margin-top: 8px;
      color: var(--muted);
      font: 800 12px var(--mono);
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .precheck-panel {
      display: grid;
      gap: 10px;
      margin-top: 14px;
      border: 1px solid var(--skill-line);
      padding: 12px;
      background: rgba(255,255,255,.68);
    }

    .precheck-head {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      color: var(--text);
      font: 900 12px var(--mono);
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .precheck-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .precheck-item {
      border: 1px solid var(--line);
      padding: 9px 10px;
      color: var(--muted);
      background: rgba(255,255,255,.62);
      font-size: 13px;
      font-weight: 800;
      line-height: 1.35;
    }

    .precheck-item[data-state="pass"] {
      border-color: rgba(33,150,96,.42);
      color: #1f7a51;
      background: rgba(46,229,157,.13);
    }

    .precheck-item[data-state="warn"] {
      border-color: rgba(255,155,47,.46);
      color: #9a5b00;
      background: rgba(255,155,47,.13);
    }

    .precheck-item[data-state="fail"] {
      border-color: rgba(214,69,69,.38);
      color: #a13535;
      background: rgba(214,69,69,.08);
    }

    .listening-meta {
      color: var(--muted);
      font-weight: 700;
    }

    .recording-controls {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 14px;
    }

    .recording-status {
      color: var(--muted);
      font-weight: 700;
    }

    .recording-timer {
      color: var(--text);
      font: 800 12px var(--mono);
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .speaking-note {
      margin-top: 14px;
      border-left: 3px solid var(--skill);
      padding: 12px 14px;
      color: var(--text);
      background: var(--skill-soft);
      border-radius: 0 12px 12px 0;
      font-weight: 800;
    }

    .grammar-grid {
      display: grid;
      gap: 14px;
      margin-top: 18px;
    }

    .grammar-item {
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 14px;
      background: rgba(255,255,255,.62);
    }

    .grammar-item p {
      margin: 0 0 12px;
      color: #312b3c;
      line-height: 1.5;
    }

    .grammar-options {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .grammar-option {
      border: 1px solid var(--line-2);
      border-radius: 999px;
      padding: 8px 12px;
      color: var(--text);
      background: transparent;
      cursor: pointer;
    }

    .score-line {
      margin-top: 18px;
      color: var(--muted);
      font: 700 12px var(--mono);
      letter-spacing: .12em;
      text-transform: uppercase;
    }

    .diagnostic-score {
      margin-top: 18px;
      border: 1px solid rgba(122,95,207,.24);
      border-radius: 12px;
      padding: 14px 16px;
      background: #fffaf4;
      color: var(--text);
      font-weight: 800;
      line-height: 1.45;
    }

    .diagnostic-score strong {
      color: var(--brand-2);
    }

    .diagnostic-score small {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-weight: 700;
    }

    .score-dashboard {
      display: grid;
      grid-template-columns: 150px minmax(0, 1fr);
      gap: 18px;
      align-items: center;
      margin: 18px 0 24px;
      border: 1px solid rgba(122,95,207,.24);
      border-radius: 0;
      padding: 18px;
      background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(247,245,255,.92)),
        radial-gradient(circle at 100% 0%, rgba(255,90,31,.12), transparent 38%);
    }

    .score-orb {
      --score: 0;
      width: 132px;
      aspect-ratio: 1;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background:
        radial-gradient(circle at 50% 50%, #fff 0 52%, transparent 53%),
        conic-gradient(var(--brand-2) calc(var(--score) * 1%), rgba(122,95,207,.13) 0);
      box-shadow: 0 18px 38px rgba(122,95,207,.16);
    }

    .score-orb strong {
      display: block;
      font: 900 30px/1 var(--display);
      color: var(--text);
      letter-spacing: -.02em;
      text-align: center;
    }

    .score-orb span {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font: 800 10px/1 var(--mono);
      letter-spacing: .12em;
      text-align: center;
      text-transform: uppercase;
    }

    .score-dashboard h3 {
      margin: 0 0 6px;
      color: var(--text);
      font-size: clamp(22px, 2vw, 30px);
      letter-spacing: -.02em;
    }

    .score-dashboard p {
      margin: 0;
      color: var(--muted);
      font-weight: 800;
    }

    .score-metrics {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin-top: 14px;
    }

    .score-metric {
      border: 1px solid var(--line);
      padding: 10px;
      background: rgba(255,255,255,.72);
    }

    .score-metric b {
      display: block;
      color: var(--text);
      font: 900 18px/1.1 var(--display);
    }

    .score-metric span {
      display: block;
      margin-top: 5px;
      color: var(--muted);
      font: 800 10px/1.2 var(--mono);
      letter-spacing: .1em;
      text-transform: uppercase;
    }

    .finish-panel {
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 18px;
      background: rgba(255,255,255,.74);
    }

    .section-grid.skill-finish {
      --skill: #6b6b78;
      --skill-soft: rgba(107,107,120,.10);
      padding-top: 22px;
    }

    .section-grid.skill-finish .finish-panel {
      margin: 0;
    }

    @media (max-width: 960px) {
      .section-grid.skill-finish { grid-template-columns: 1fr; }
    }

    .finish-panel p {
      margin: 0 0 14px;
      color: var(--muted);
    }

    .finish-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin: 14px 0 12px;
    }

    .finish-actions .finish-btn {
      margin: 0;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 16px;
    }

    .finish-actions .finish-btn svg {
      flex-shrink: 0;
      color: var(--accent, #ff5a1f);
    }

    .finish-actions .finish-btn:hover svg {
      color: inherit;
    }

    .finish-hint {
      font-size: 13px;
      color: var(--muted);
      margin-top: 8px;
      line-height: 1.5;
    }
    .finish-hint a {
      color: var(--accent);
      font-weight: 600;
      text-decoration: none;
    }
    .finish-hint a:hover { text-decoration: underline; }

    .listening-placeholder {
      background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
      border: 1px solid #93c5fd;
      border-radius: 14px;
      padding: 32px 24px;
      text-align: center;
      color: #1e40af;
    }
    .listening-placeholder .lp-icon {
      font-size: 44px;
      margin-bottom: 10px;
    }
    .listening-placeholder .lp-title {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 8px;
      color: #1e3a8a;
    }
    .listening-placeholder .lp-note {
      font-size: 14.5px;
      line-height: 1.55;
      max-width: 520px;
      margin: 0 auto;
      opacity: 0.92;
    }

    .after-test {
      margin-top: 42px;
      border: 1px solid var(--line);
      border-radius: 22px;
      padding: clamp(28px, 5vw, 58px);
      background:
        radial-gradient(circle at 100% 0%, rgba(122,95,207,.12), transparent 34%),
        #ffffff;
      text-align: center;
    }

    .after-test h2 {
      font-size: clamp(34px, 5vw, 72px);
    }

    .after-test p {
      max-width: 860px;
      margin: 18px auto 0;
      color: var(--muted);
      font-size: clamp(17px, 2vw, 22px);
      line-height: 1.55;
    }

    footer {
      width: min(1480px, calc(100% - 32px));
      margin: 0 auto;
      padding: 32px 0 54px;
      color: var(--faint);
      border-top: 1px solid var(--line);
      font: 11px var(--mono);
      letter-spacing: .14em;
      text-transform: uppercase;
      text-align: center;
    }

    [data-en-text] { display: none; }
    html[data-lang="en"] [data-ru-text] { display: none; }
    html[data-lang="en"] [data-en-text] { display: initial; }

    /* Academic diagnostic interface */
    body {
      background: var(--bg);
    }

    .page {
      width: min(1240px, calc(100% - 48px));
      padding-top: 42px;
    }

    .hero {
      min-height: 0;
      grid-template-columns: minmax(0, .95fr) minmax(340px, .58fr);
      align-items: stretch;
      gap: 28px;
      padding: 48px 0 52px;
    }

    .hero > div {
      border: 1px solid var(--line);
      border-radius: 0;
      padding: clamp(28px, 4vw, 46px);
      background: #ffffff;
    }

    .eyebrow,
    .section-kicker {
      letter-spacing: .18em;
      margin-bottom: 18px;
    }

    h1 {
      max-width: 780px;
      font-size: clamp(42px, 6vw, 82px);
      line-height: .94;
      letter-spacing: -.045em;
    }

    .lead {
      max-width: 760px;
      margin-top: 26px;
      font-size: clamp(17px, 1.5vw, 20px);
      line-height: 1.7;
    }

    .hero-actions {
      margin-top: 28px;
    }

    .btn,
    .start-btn,
    .grammar-option,
    .answer-field input,
    textarea {
      border-radius: 4px;
    }

    .hero-panel {
      border-radius: 0;
      background: #ffffff;
      box-shadow: none;
    }

    .aspect-list li {
      grid-template-columns: 54px minmax(0, 1fr);
      min-height: 68px;
    }

    .aspect-list b {
      font-family: var(--mono);
      font-size: 13px;
      line-height: 1;
      letter-spacing: .12em;
    }

    .aspect-list span {
      font-size: 16px;
      font-weight: 700;
    }

    .section {
      padding-top: 56px;
    }

    .section-head {
      grid-template-columns: 120px minmax(0, 1fr);
      gap: 24px;
      align-items: start;
    }

    .section-copy {
      grid-column: 2;
      max-width: 760px;
    }

    .index-badge strong {
      font-size: clamp(54px, 7vw, 86px);
    }

    h2 {
      font-size: clamp(30px, 3.2vw, 48px);
      line-height: .98;
    }

    .level-card,
    .task-card,
    .after-test {
      border-radius: 0;
      background: #ffffff;
      box-shadow: none;
    }

    .level-head {
      grid-template-columns: 104px minmax(0, 1fr) auto;
      align-items: start;
    }

    .level-index {
      min-height: auto;
      gap: 6px;
    }

    .level-index span {
      font-size: clamp(46px, 4.5vw, 68px);
      line-height: .86;
    }

    .level-title {
      font-size: clamp(24px, 2.6vw, 38px);
      line-height: 1.05;
    }

    .level-desc {
      max-width: 700px;
    }

    .section-grid {
      grid-template-columns: 130px minmax(0, 1fr);
    }

    .skill-num {
      font-size: clamp(36px, 3.8vw, 54px);
      line-height: .88;
    }

    .skill-name {
      letter-spacing: .18em;
    }

    .task-card h3 {
      font-size: clamp(21px, 1.8vw, 28px);
    }

    .reading-text,
    .listening-panel {
      border-radius: 0;
      background: rgba(255,255,255,.74);
    }

    .after-test {
      text-align: left;
    }

    .after-test h2 {
      font-size: clamp(30px, 3.6vw, 52px);
    }

    .after-test p {
      margin-left: 0;
      margin-right: 0;
      font-size: 18px;
    }

    @media (max-width: 980px) {
      .hero,
      .section-head {
        grid-template-columns: 1fr;
        min-height: 0;
      }

      .level-head {
        grid-template-columns: 112px 1fr;
      }

      .score-dashboard {
        grid-template-columns: 1fr;
      }

      .score-orb {
        width: 124px;
      }

      .score-metrics {
        grid-template-columns: 1fr;
      }

      .start-btn {
        grid-column: 1 / -1;
        width: 100%;
      }

      .section-grid {
        grid-template-columns: 1fr;
      }

      .skill-label { padding-top: 0; }
    }

    @media (max-width: 640px) {
      /* Mobile topbar — uses canonical from system.css */

      .page {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        padding-top: 28px;
      }

      .hero {
        display: block;
      }

      h1 {
        max-width: 9ch;
        font-size: clamp(46px, 12.6vw, 58px);
        overflow-wrap: normal;
      }

      .eyebrow {
        font-size: 10px;
        letter-spacing: .16em;
        overflow-wrap: anywhere;
      }

      .lead {
        max-width: 100%;
        font-size: 18px;
        overflow-wrap: normal;
        word-break: normal;
      }

      .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
      }

      .btn { width: 100%; }

      .hero-panel-head,
      .aspect-list li,
      .level-head,
      .task-card {
        padding-left: 14px;
        padding-right: 14px;
      }

      .aspect-list li {
        grid-template-columns: 84px minmax(0, 1fr);
      }

      .aspect-list b {
        font-size: 13px;
      }
    }

/* === Light theme page override === */
    body {
      --bg: #f7f5ff;
      --bg-2: #ffffff;
      --card: #ffffff;
      --text: #1a1326;
      --muted: #4a4358;
      --line: rgba(122,95,207,.18);
      background:
        radial-gradient(circle at 82% 0%, rgba(122,95,207,.16), transparent 34%),
        radial-gradient(circle at 8% 28%, rgba(255,155,47,.10), transparent 32%),
        linear-gradient(180deg, #f7f5ff 0%, #ffffff 100%) !important;
      color: var(--text) !important;
    }

    .topbar {
      background: #f7f5ff !important;
      border-bottom-color: rgba(122,95,207,.22) !important;
      color: var(--text) !important;
    }

    .brand,
    .brand-name,
    .brand-sub,
    .topnav,
    .lang-btn {
      color: var(--text) !important;
    }

/* === Floating "Back to levels" FAB === */
.back-to-levels {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(255, 90, 31, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 99;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.18s ease;
}
.back-to-levels.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-levels:hover {
  box-shadow: 0 8px 24px rgba(255, 90, 31, 0.5), 0 2px 6px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}
.back-to-levels:focus-visible {
  outline: 2px solid #FFC145;
  outline-offset: 2px;
}
@media (max-width: 540px) {
  .back-to-levels {
    right: 12px;
    bottom: 12px;
    padding: 10px 14px;
    font-size: 12px;
  }
}
