[hidden] { display: none !important; }

    :root {
      --paper: #0a0c0f;
      --surface: #13171c;
      --surface-raised: #191e24;
      --ink: #f1f3f4;
      --muted: #929aa5;
      --line: #2b3139;
      --blue: #65ddbd;
      --blue-dark: #48bfa1;
      --blue-soft: #142c28;
      --green: #72e2b9;
      --green-soft: #123429;
      --red: #ff7d86;
      --red-soft: #3a1c22;
      --amber: #ffc56f;
      --shadow: 0 24px 60px rgba(0, 0, 0, .34);
      --radius: 18px;
      --sans: "Aptos", "Helvetica Neue", Arial, sans-serif;
      --display: "Aptos Display", "Arial Narrow", "Helvetica Neue", sans-serif;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      min-width: 320px;
      background:
        radial-gradient(circle at 12% -10%, rgba(101, 221, 189, .10), transparent 34%),
        var(--paper);
      background-size: auto;
      color: var(--ink);
      font-family: var(--sans);
      -webkit-font-smoothing: antialiased;
    }

    button, textarea { font: inherit; }
    button { color: inherit; }
    a { color: inherit; }
    [hidden] { display: none !important; }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 30;
      border-bottom: 1px solid var(--line);
      background: rgba(10, 12, 15, .9);
      backdrop-filter: blur(18px);
    }

    .topbar-inner {
      width: min(1380px, calc(100% - 40px));
      min-height: 68px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 180px minmax(500px, 1fr) auto auto;
      align-items: center;
      gap: 20px;
    }

    .brand {
      display: inline-flex;
      align-items: baseline;
      gap: 7px;
      width: fit-content;
      text-decoration: none;
      font-weight: 800;
      letter-spacing: -.04em;
      font-size: 20px;
      transition: transform .18s ease, opacity .18s ease;
    }

    .brand:hover { transform: translateY(-1px); opacity: .88; }

    .brand-mark {
      display: inline-grid;
      place-items: center;
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: var(--blue);
      color: white;
      font-family: var(--display);
      font-size: 15px;
      box-shadow: inset 0 0 0 5px rgba(255,255,255,.18);
    }

    .brand em {
      color: var(--blue);
      font-style: normal;
    }

    .exam-tabs {
      align-self: stretch;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      max-width: 700px;
      width: 100%;
      margin: 0 auto;
    }

    .exam-tab {
      position: relative;
      border: 0;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      font-size: 14px;
      font-weight: 800;
      letter-spacing: .01em;
      transition: color .18s ease, background .18s ease;
    }

    .exam-tab::after {
      content: "";
      position: absolute;
      left: 24%;
      right: 24%;
      bottom: 0;
      height: 2px;
      background: transparent;
      transition: left .2s ease, right .2s ease, background .2s ease;
    }

    .exam-tab:hover { color: var(--ink); background: rgba(255,255,255,.018); }
    .exam-tab.active { color: var(--ink); }
    .exam-tab.active::after { left: 12%; right: 12%; background: var(--blue); }

    .writing-subnav {
      border-top: 1px solid rgba(255,255,255,.035);
      border-bottom: 1px solid var(--line);
      padding: 7px 20px;
      background: rgba(7, 9, 11, .58);
      animation: fade .18s ease both;
    }

    .writing-subnav-inner {
      width: min(860px, 100%);
      margin: 0 auto;
    }

    .section-tabs {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      border: 1px solid var(--line);
      border-radius: 14px;
      background: rgba(255, 255, 255, .025);
      padding: 4px;
      overflow: hidden;
    }

    .section-tabs.single { grid-template-columns: 1fr; width: min(340px, 100%); }
    .section-tabs.four { grid-template-columns: repeat(4, 1fr); }
    .section-tabs.speaking { grid-template-columns: repeat(2, 1fr); width: min(620px, 100%); margin: 0 auto; }

    .task-help { position: fixed; right: 22px; bottom: 22px; z-index: 22; width: 42px; height: 42px; border: 1px solid #38434a; border-radius: 50%; background: #151b20; color: var(--blue); box-shadow: 0 10px 30px rgba(0,0,0,.32); cursor: pointer; font-weight: 900; }
    .task-help:hover { border-color: var(--blue); transform: translateY(-2px); }
    .task-help:focus-visible { outline: 3px solid rgba(101,221,189,.32); outline-offset: 3px; }
    .coming-soon { display: inline-flex; margin-top: 20px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--blue); font-size: 13px; font-weight: 800; }

    .section-tab {
      position: relative;
      min-height: 48px;
      padding: 7px 38px 7px 14px;
      border: 0;
      border-radius: 10px;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.15;
      text-align: left;
      transition: background .2s ease, color .2s ease, transform .2s ease;
    }

    .section-tab:hover { color: var(--ink); }
    .section-tab:active { transform: scale(.985); }
    .section-tab.active {
      background: var(--surface-raised);
      color: var(--ink);
      box-shadow: inset 0 -2px 0 var(--blue), 0 8px 18px rgba(0,0,0,.2);
    }

    .tab-count {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      display: grid;
      place-items: center;
      min-width: 24px;
      height: 24px;
      padding: 0 5px;
      border-radius: 999px;
      background: rgba(255,255,255,.07);
      font-size: 10px;
    }

    .section-tab.active .tab-count { background: rgba(255,255,255,.14); }

    .header-status {
      justify-self: end;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
      text-align: right;
    }

    .header-status strong {
      display: block;
      color: var(--ink);
      font-size: 14px;
    }

    .auth-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }

    .pro-nav-action {
      min-height: 34px;
      display: inline-flex;
      align-items: center;
      padding: 7px 12px;
      border: 1px solid rgba(101,221,189,.48);
      border-radius: 9px;
      background: rgba(101,221,189,.1);
      color: var(--blue);
      font-size: 12px;
      font-weight: 850;
      text-decoration: none;
      transition: transform .18s ease, background .18s ease, color .18s ease;
    }
    .pro-nav-action:hover { transform: translateY(-1px); background: var(--blue); color: #07100d; }
    .pro-nav-action.is-active { background: transparent; color: var(--muted); border-color: var(--line); }

    .auth-button {
      min-height: 34px;
      padding: 7px 11px;
      border: 1px solid transparent;
      border-radius: 9px;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      font-size: 12px;
      font-weight: 800;
      transition: color .18s ease, border-color .18s ease, background .18s ease;
    }

    .auth-button:hover { color: var(--ink); background: rgba(255,255,255,.04); }
    .auth-button.signup { border-color: rgba(101,221,189,.42); color: var(--blue); }

    .profile-wrap { position: relative; }

    .profile-button {
      width: 36px;
      height: 36px;
      display: grid;
      place-items: center;
      border: 1px solid var(--line);
      border-radius: 50%;
      background: var(--surface-raised);
      color: var(--ink);
      cursor: pointer;
      transition: border-color .18s ease, transform .18s ease;
    }

    .profile-button:hover, .profile-button[aria-expanded="true"] { border-color: var(--blue); transform: translateY(-1px); }
    .profile-button svg { width: 17px; height: 17px; }

    .profile-menu {
      position: absolute;
      top: calc(100% + 12px);
      right: 0;
      z-index: 50;
      width: 210px;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #151a20;
      box-shadow: 0 22px 60px rgba(0,0,0,.42);
      animation: menuIn .18s ease both;
    }

    .profile-menu-label { padding: 8px 10px 10px; color: var(--muted); font-size: 11px; line-height: 1.45; }
    .profile-menu button { width: 100%; padding: 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 750; text-align: left; }
    .profile-menu button:hover { background: rgba(101,221,189,.08); color: var(--blue); }

    .app-main {
      width: min(1180px, calc(100% - 40px));
      margin: 0 auto;
      padding: 42px 0 58px;
    }

    .workspace-head {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: end;
      gap: 24px;
      margin-bottom: 28px;
      animation: rise .35s ease both;
    }

    .eyebrow {
      margin: 0 0 8px;
      color: var(--blue);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .11em;
      text-transform: uppercase;
    }

    h1, h2, h3, p { margin-top: 0; }
    h1 {
      margin-bottom: 8px;
      font-family: var(--display);
      font-size: clamp(33px, 4vw, 56px);
      font-weight: 500;
      letter-spacing: -.045em;
      line-height: .98;
    }

    .section-description {
      max-width: 680px;
      margin-bottom: 0;
      color: var(--muted);
      font-size: 15px;
      line-height: 1.55;
    }

    .timer {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 162px;
      padding: 12px 16px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--surface);
      font-variant-numeric: tabular-nums;
      box-shadow: 0 8px 25px rgba(22,25,31,.05);
    }

    .timer-stack {
      display: grid;
      justify-items: end;
      gap: 7px;
    }

    .timer-reset {
      padding: 2px 1px;
      border: 0;
      background: transparent;
      color: var(--muted);
      font: inherit;
      font-size: 11px;
      font-weight: 800;
      cursor: pointer;
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .timer-reset:hover,
    .timer-reset:focus-visible { color: var(--blue); }

    .timer-dot {
      width: 10px;
      height: 10px;
      border: 3px solid var(--blue);
      border-radius: 50%;
      box-shadow: 0 0 0 4px var(--blue-soft);
    }

    .timer small {
      display: block;
      color: var(--muted);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .timer strong { font-size: 21px; }
    .timer.urgent { border-color: rgba(180,35,45,.5); color: var(--red); }
    .timer.urgent .timer-dot { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }

    .progress-line {
      height: 3px;
      margin-bottom: 36px;
      background: var(--line);
      overflow: hidden;
    }

    .progress-line span {
      display: block;
      height: 100%;
      background: var(--blue);
      transform-origin: left;
      transition: width .35s ease;
    }

    .question-surface { animation: rise .36s ease both; }

    .exam-placeholder {
      min-height: 520px;
      display: grid;
      align-content: center;
      grid-template-columns: minmax(0, 650px) 1fr;
      gap: 80px;
      padding: 40px 0 90px;
    }

    .exam-placeholder h1 {
      max-width: 600px;
      margin-bottom: 18px;
      font-size: clamp(52px, 8vw, 104px);
      line-height: .88;
    }

    .exam-placeholder p {
      max-width: 520px;
      color: var(--muted);
      font-size: 17px;
      line-height: 1.6;
    }

    .placeholder-index {
      align-self: center;
      justify-self: end;
      color: rgba(101,221,189,.18);
      font-family: var(--display);
      font-size: clamp(130px, 18vw, 260px);
      font-weight: 800;
      line-height: .8;
    }

    .access-loading {
      min-height: 520px;
      display: grid;
      place-items: center;
    }

    .access-loading-mark {
      position: relative;
      width: 58px;
      height: 58px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: var(--blue);
      color: #07100d;
      font-family: var(--display);
      font-size: 22px;
      font-weight: 800;
    }

    .access-loading-mark::after {
      content: "";
      position: absolute;
      inset: -9px;
      border: 2px solid rgba(101,221,189,.18);
      border-top-color: var(--blue);
      border-radius: 50%;
      animation: accessSpin .8s linear infinite;
    }

    @keyframes accessSpin { to { transform: rotate(360deg); } }

    /* Speaking assessment */
    .speaking-head { align-items: end; }
    .speaking-set-nav { display: grid; grid-template-columns: 44px auto 44px; align-items: center; gap: 12px; }
    .speaking-set-nav > span { min-width: 64px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-align: center; }
    .speaking-intro { min-height: 470px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: center; gap: 72px; }
    .speaking-intro-copy { max-width: 720px; }
    .speaking-intro h2, .speaking-recovery h2, .speaking-stage h2, .speaking-finishing h2, .speaking-results h2 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.035em; }
    .speaking-intro h2 { margin: 8px 0 18px; font-size: clamp(40px, 5vw, 68px); line-height: .96; }
    .speaking-intro-copy > p:not(.eyebrow) { max-width: 650px; color: #c8ced4; font-size: 17px; line-height: 1.7; }
    .speaking-rules { display: grid; gap: 10px; margin: 28px 0 30px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
    .speaking-rules li { display: grid; grid-template-columns: 8px 1fr; gap: 12px; align-items: baseline; }
    .speaking-rules li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
    .speaking-start { min-width: 230px; }
    .microphone-check { display: flex; gap: 18px; padding: 26px 0 26px 28px; border-left: 1px solid var(--line); }
    .microphone-check strong { display: block; margin-bottom: 8px; font-family: var(--display); font-size: 20px; }
    .microphone-check p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
    .mic-icon { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 5px; border: 4px solid rgba(101,221,189,.2); border-radius: 50%; color: var(--blue); font-size: 0; box-shadow: 0 0 0 1px var(--blue); }
    .mic-icon.error { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 0 18px; border: 1px solid rgba(255,115,125,.45); background: rgba(180,35,45,.12); color: #ff8b94; font-size: 20px; font-weight: 800; box-shadow: none; }
    .speaking-recovery { min-height: 440px; max-width: 720px; display: grid; align-content: center; justify-items: start; }
    .speaking-recovery h2 { margin: 7px 0 16px; font-size: clamp(38px, 5vw, 62px); }
    .speaking-recovery > p:not(.eyebrow) { max-width: 620px; margin: 0 0 28px; color: var(--muted); font-size: 16px; line-height: 1.65; }

    .speaking-assessment { min-height: 500px; }
    .speaking-scenario-line { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 26px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
    .speaking-scenario-line span:first-child { color: var(--ink); }
    .speaking-stepper { display: grid; grid-template-columns: repeat(var(--speaking-steps, 7), minmax(0, 1fr)); gap: 0; margin: 0 0 46px; padding: 0; list-style: none; }
    .speaking-stepper.four { --speaking-steps: 4; }
    .speaking-stepper li { position: relative; display: grid; place-items: center; }
    .speaking-stepper li:not(:last-child)::after { content: ""; position: absolute; z-index: 0; top: 50%; left: calc(50% + 18px); right: calc(-50% + 18px); height: 1px; background: #343b43; }
    .speaking-stepper li.done:not(:last-child)::after { background: var(--blue); }
    .speaking-stepper span { position: relative; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #3c444d; border-radius: 50%; background: var(--paper); color: #77808a; font-size: 12px; font-weight: 800; }
    .speaking-stepper .active span { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 5px rgba(101,221,189,.08); }
    .speaking-stepper .done span { border-color: var(--blue); background: var(--blue); color: #07110e; }
    .speaking-stage { min-height: 330px; display: grid; align-content: center; justify-items: center; padding: 36px; border: 1px solid var(--line); background: rgba(255,255,255,.012); text-align: center; }
    .speaking-stage h2 { margin: 8px 0 12px; font-size: clamp(34px, 4vw, 54px); }
    .speaking-stage > p:not(.eyebrow) { max-width: 560px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
    .voice-orbit { position: relative; width: 88px; height: 50px; display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 18px; }
    .voice-orbit i { width: 4px; height: 18px; border-radius: 6px; background: #535c65; }
    .voice-orbit i:nth-child(2) { height: 32px; }
    .voice-orbit span { position: absolute; inset: 0; border: 1px solid rgba(101,221,189,.15); border-radius: 50%; opacity: 0; }
    .speaking-stage[data-phase="listening"] .voice-orbit i, .speaking-stage[data-phase="recording"] .voice-orbit i { background: var(--blue); animation: speakingWave .7s ease-in-out infinite alternate; }
    .speaking-stage[data-phase="listening"] .voice-orbit i:nth-child(2), .speaking-stage[data-phase="recording"] .voice-orbit i:nth-child(2) { animation-delay: -.35s; }
    .speaking-stage[data-phase="recording"] .voice-orbit span { animation: speakingPulse 1.4s ease-out infinite; }
    .speaking-response-controls { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
    .speaking-countdown { min-width: 140px; display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 8px; padding: 11px 14px; border: 1px solid var(--line); text-align: left; }
    .speaking-countdown span { grid-column: 1 / -1; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
    .speaking-countdown strong { font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1; }
    .speaking-countdown small { color: var(--muted); font-size: 10px; }
    .speaking-countdown.urgent { border-color: rgba(255,115,125,.55); color: #ff8b94; }
    .speaking-mic-signal { --mic-level: 0; width: 150px; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
    .speaking-mic-signal i { position: relative; height: 5px; overflow: hidden; border-radius: 99px; background: #303840; }
    .speaking-mic-signal i::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(var(--mic-level)); transform-origin: left; transition: transform 90ms linear; }
    .speaking-mic-signal.detected { color: var(--blue); }
    .speaking-privacy { margin: 16px 0 0; color: #707984; font-size: 11px; text-align: center; }
    .speaking-privacy a { color: var(--blue); text-underline-offset: 3px; }
    @keyframes speakingWave { to { height: 38px; } }
    @keyframes speakingPulse { 0% { opacity: .8; transform: scale(.65); } 100% { opacity: 0; transform: scale(1.25); } }

    .speaking-finishing { min-height: 470px; display: grid; align-content: center; justify-items: center; text-align: center; }
    .speaking-finishing .speaking-stepper { width: min(680px, 100%); margin-bottom: 56px; }
    .speaking-finishing h2 { margin: 8px 0 14px; font-size: clamp(36px, 5vw, 60px); }
    .speaking-finishing > p:not(.eyebrow) { max-width: 580px; color: var(--muted); line-height: 1.65; }
    .grading-spinner { width: 42px; height: 42px; margin-bottom: 24px; border: 2px solid #343c44; border-top-color: var(--blue); border-radius: 50%; animation: spin .9s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }
    .speaking-results { padding-bottom: 22px; }
    .speaking-results-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 32px; }
    .speaking-results-head h2 { margin-top: 7px; font-size: clamp(38px, 5vw, 64px); }
    .practice-label { max-width: 260px; padding-left: 18px; border-left: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
    .speaking-score-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; border-block: 1px solid var(--line); }
    .speaking-score-list { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 22px 34px 22px 0; list-style: none; border-right: 1px solid var(--line); }
    .speaking-score-list li { display: flex; justify-content: space-between; gap: 20px; padding: 11px 24px 11px 0; color: var(--muted); font-size: 13px; }
    .speaking-score-list strong { color: var(--ink); font-size: 14px; }
    .speaking-total { display: grid; align-content: center; grid-template-columns: 1fr auto; gap: 8px 18px; padding: 28px; }
    .speaking-total span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
    .speaking-total strong { font-family: var(--display); font-size: 24px; font-weight: 600; }
    .speaking-total small { grid-column: 1 / -1; margin-top: 8px; color: #ff9ba3; line-height: 1.4; }
    .speaking-summary { margin-top: 34px; padding: 28px 0; border-bottom: 1px solid var(--line); }
    .speaking-summary h3, .speaking-result-details > h3 { margin: 0 0 20px; font-family: var(--display); font-size: 23px; }
    .speaking-summary dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 22px; }
    .speaking-summary dl div { padding-right: 22px; border-right: 1px solid var(--line); }
    .speaking-summary dl div + div { padding-left: 22px; }
    .speaking-summary dl div:last-child { border-right: 0; }
    .speaking-summary dt { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
    .speaking-summary dd { margin: 7px 0 0; color: var(--blue); font-family: var(--display); font-size: 21px; }
    .speaking-summary > p { margin: 0; color: #cbd0d5; font-size: 13px; line-height: 1.6; }
    .speaking-result-details { margin-top: 34px; }
    .speaking-result-detail { border-top: 1px solid var(--line); }
    .speaking-result-detail:last-child { border-bottom: 1px solid var(--line); }
    .speaking-result-detail summary { display: flex; justify-content: space-between; padding: 18px 4px; cursor: pointer; font-size: 14px; font-weight: 800; }
    .speaking-result-detail summary strong { color: var(--blue); }
    .speaking-result-detail.error summary strong { color: #ff8b94; }
    .speaking-detail-body { padding: 0 4px 24px; }
    .speaking-detail-body dl { display: grid; gap: 16px; margin: 0; }
    .speaking-detail-body dl div { display: grid; grid-template-columns: 90px 1fr; gap: 18px; }
    .speaking-detail-body dt { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
    .speaking-detail-body dd, .speaking-detail-body p { margin: 0; color: #cbd0d5; font-size: 13px; line-height: 1.6; }
    .speaking-result-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
    @media (max-width: 760px) {
      .speaking-intro { min-height: auto; grid-template-columns: 1fr; gap: 36px; padding: 32px 0; }
      .microphone-check { padding-left: 0; padding-top: 24px; border-left: 0; border-top: 1px solid var(--line); }
      .speaking-set-nav { margin-top: 4px; }
      .speaking-scenario-line, .speaking-results-head { align-items: start; flex-direction: column; }
      .speaking-stage { min-height: 360px; padding: 30px 18px; }
      .speaking-response-controls { flex-wrap: wrap; justify-content: center; }
      .speaking-mic-signal { flex-basis: 100%; width: min(210px, 100%); grid-template-columns: 60px 1fr; }
      .speaking-stepper { margin-bottom: 32px; }
      .speaking-score-grid { grid-template-columns: 1fr; }
      .speaking-score-list { grid-template-columns: 1fr; padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
      .speaking-summary dl { grid-template-columns: 1fr 1fr; gap: 22px 0; }
      .speaking-summary dl div:nth-child(2) { border-right: 0; }
      .speaking-summary dl div:nth-child(3) { padding-left: 0; }
      .speaking-detail-body dl div { grid-template-columns: 1fr; gap: 5px; }
      .speaking-result-actions { flex-direction: column-reverse; }
      .speaking-result-actions .button { width: 100%; }
    }

    .build-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 280px;
      gap: 64px;
      align-items: start;
    }

    .question-context {
      margin-bottom: 26px;
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
    }

    .question-prompt {
      max-width: 820px;
      margin: 0 0 30px;
      font-family: var(--display);
      font-size: clamp(25px, 3vw, 39px);
      font-weight: 500;
      letter-spacing: -.025em;
      line-height: 1.2;
    }

    .instruction {
      margin-bottom: 10px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .composer-zone, .word-bank {
      display: flex;
      flex-wrap: wrap;
      align-content: flex-start;
      gap: 10px;
      min-height: 86px;
      padding: 17px;
      border-radius: var(--radius);
      transition: border-color .2s ease, background .2s ease;
    }

    .composer-zone {
      border: 2px dashed #aeb3bd;
      background: rgba(255,253,248,.62);
    }

    .composer-zone.drag-over, .word-bank.drag-over {
      border-color: var(--blue);
      background: var(--blue-soft);
    }

    .composer-placeholder {
      align-self: center;
      color: #878c95;
      font-family: var(--display);
      font-size: 17px;
      font-style: italic;
    }

    .sentence-punctuation {
      align-self: center;
      font-family: var(--display);
      font-size: 25px;
    }

    .word-bank {
      min-height: 116px;
      margin-top: 18px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.34);
    }

    .word-tile {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 42px;
      padding: 9px 13px;
      border: 1px solid #c9cbd1;
      border-radius: 10px;
      background: var(--surface);
      box-shadow: 0 4px 10px rgba(22,25,31,.06);
      cursor: grab;
      font-size: 15px;
      font-weight: 700;
      transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
    }

    .word-tile::before {
      content: "⠿";
      color: #9a9da5;
      font-size: 14px;
    }

    .word-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(22,25,31,.1); }
    .word-tile:active { cursor: grabbing; transform: scale(.97); }
    .word-tile.correct { border-color: var(--green); background: var(--green-soft); color: #07563e; }
    .word-tile.incorrect { border-color: var(--red); background: var(--red-soft); color: #8a1720; }
    .word-tile.correct::before { content: "✓"; color: var(--green); }
    .word-tile.incorrect::before { content: "×"; color: var(--red); }

    .answer-reveal {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 12px 20px;
      margin-top: 22px;
      padding: 18px 0 0 22px;
      border-left: 3px solid var(--blue);
      animation: rise .25s ease both;
    }

    .answer-reveal small {
      display: block;
      margin-bottom: 6px;
      color: var(--blue);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .09em;
      text-transform: uppercase;
    }

    .answer-reveal p {
      grid-column: 1 / -1;
      margin: 5px 0 0;
      font-family: var(--display);
      font-size: 21px;
      line-height: 1.45;
    }

    .answer-reveal span { color: var(--muted); font-size: 13px; }

    .answer-reveal.correct-answer {
      grid-template-columns: 1fr;
      border-left-color: var(--green);
      color: var(--green);
      font-size: 16px;
      font-weight: 900;
    }

    .cloze-sheet {
      max-width: 1020px;
      margin: 0 auto;
      padding: clamp(28px, 5vw, 62px);
      border: 1px solid var(--line);
      border-radius: 22px;
      background: linear-gradient(135deg, rgba(101,221,189,.045), transparent 34%), var(--surface);
      box-shadow: var(--shadow);
    }

    .cloze-meta, .listening-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 34px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--line);
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .07em;
      text-transform: uppercase;
    }

    .cloze-meta strong, .listening-meta strong { color: var(--blue); }

    .cloze-passage {
      margin: 0;
      font-family: var(--display);
      font-size: clamp(20px, 2.15vw, 29px);
      line-height: 2.15;
      letter-spacing: -.01em;
    }

    .cloze-word { white-space: nowrap; }

    .cloze-letters {
      display: inline-flex;
      align-items: baseline;
      gap: .09em;
      margin: 0 .12em;
      vertical-align: baseline;
    }

    .cloze-char {
      width: 1.08em;
      height: 1.38em;
      margin: 0;
      padding: 0 0 .04em;
      border: 0;
      border-bottom: 2px solid #78838f;
      border-radius: 0;
      outline: 0;
      background: transparent;
      color: var(--ink);
      font: inherit;
      font-size: .8em;
      font-weight: 800;
      line-height: 1.18;
      text-align: center;
      text-transform: lowercase;
      caret-color: var(--blue);
      transition: border-color .18s ease, background .18s ease, color .18s ease;
    }

    .cloze-char:focus { border-color: var(--blue); background: rgba(101,221,189,.08); }
    .cloze-char.correct { border-color: var(--green); background: var(--green-soft); color: #7ce6c2; }
    .cloze-char.incorrect { border-color: var(--red); background: var(--red-soft); color: #ff8a94; }
    .cloze-char.unanswered { border-color: #b17a3d; background: rgba(214,154,83,.08); color: #efb976; }

    .cloze-result-summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      margin: -8px 0 28px;
      padding: 18px 0 20px;
      border-bottom: 1px solid var(--line);
    }

    .cloze-result-summary small,
    .cloze-review-head small {
      display: block;
      margin-bottom: 4px;
      color: var(--blue);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .1em;
      text-transform: uppercase;
    }

    .cloze-result-summary > div > strong { color: var(--ink); font-family: var(--display); font-size: 24px; }
    .cloze-result-summary dl { display: flex; gap: 24px; margin: 0; }
    .cloze-result-summary dl div { display: grid; gap: 3px; text-align: right; }
    .cloze-result-summary dt { color: var(--muted); font-size: 11px; font-weight: 700; }
    .cloze-result-summary dd { margin: 0; color: var(--ink); font-size: 16px; font-weight: 900; }
    .cloze-view-label { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }

    .cloze-summary {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      margin-top: 34px;
      padding-top: 22px;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .cloze-summary strong { color: var(--ink); }

    .cloze-review { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
    .cloze-review-head h3 { margin: 0; color: var(--ink); font-family: var(--display); font-size: clamp(23px, 3vw, 31px); }
    .cloze-review-head p { max-width: 680px; margin: 8px 0 21px; color: var(--muted); font-size: 13px; line-height: 1.55; }
    .cloze-reconstructed { margin: 0; color: #d6dbe1; font-family: var(--display); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.9; }
    .cloze-reviewed-word { display: inline; padding: 0 .08em .04em; border-bottom: 1px solid #65717d; background: rgba(255,255,255,.025); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
    .cloze-reviewed-word.correct { border-bottom-color: var(--green); }
    .cloze-reviewed-word.incorrect { border-bottom-color: var(--red); }
    .cloze-reviewed-word.unanswered { border-bottom-color: #b17a3d; }
    .cloze-correct-ending { color: #7ce6c2; font-weight: 900; }
    .cloze-feedback-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 26px 0 0; padding: 0; list-style: none; }
    .cloze-feedback-list li { display: grid; grid-template-columns: 20px minmax(90px, auto) 1fr; align-items: baseline; gap: 8px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.07); color: var(--muted); font-size: 12px; }
    .cloze-feedback-list li > span:first-child { color: #ff8a94; font-weight: 900; }
    .cloze-feedback-list li.correct > span:first-child { color: #7ce6c2; }
    .cloze-feedback-list li.unanswered > span:first-child { color: #efb976; }
    .cloze-feedback-list strong { color: var(--ink); }
    .cloze-feedback-list b { color: #7ce6c2; }

    .reading-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
      align-items: start;
      gap: clamp(22px, 4vw, 48px);
    }

    .reading-document,
    .reading-question {
      border: 1px solid var(--line);
      border-radius: 22px;
      background: var(--surface);
      box-shadow: var(--shadow);
    }

    .reading-document { overflow: hidden; }
    .reading-document-head { padding: 22px 26px; border-bottom: 1px solid var(--line); background: rgba(101,221,189,.045); }
    .reading-document-head span { display: block; margin-bottom: 7px; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
    .reading-document-head h2 { margin: 0; font-size: clamp(25px, 3vw, 38px); line-height: 1.1; }
    .reading-document-body { padding: clamp(24px, 4vw, 42px); color: #d6dbe1; font-family: var(--display); font-size: 17px; line-height: 1.75; }
    .reading-document-body p { margin: 0 0 1.15em; }
    .reading-document-body p:last-child { margin-bottom: 0; }
    .reading-document-body .subject-line { padding: 12px 15px; border-left: 3px solid var(--blue); background: rgba(101,221,189,.055); color: var(--ink); font-weight: 800; }
    .reading-document-body .chat-line { padding: 13px 15px; border: 1px solid #303842; border-radius: 12px; background: #12171c; }
    .reading-document-body .chat-line strong { color: var(--blue); }

    .reading-question { position: sticky; top: 154px; padding: clamp(24px, 3vw, 38px); }
    .reading-question h2 { margin: 0 0 28px; font-size: clamp(23px, 2.8vw, 34px); line-height: 1.24; }

    .audio-gate {
      min-height: 470px;
      display: grid;
      place-items: center;
      padding: 54px 20px;
      border: 1px solid var(--line);
      border-radius: 22px;
      background: radial-gradient(circle at 50% 38%, rgba(101,221,189,.1), transparent 34%), var(--surface);
      box-shadow: var(--shadow);
      text-align: center;
    }

    .audio-gate-inner { width: min(620px, 100%); }
    .audio-kicker { margin-bottom: 13px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
    .audio-gate h2 { margin: 0 0 12px; font-size: clamp(38px, 6vw, 72px); line-height: .98; }
    .audio-gate p { max-width: 490px; margin: 0 auto 30px; color: var(--muted); line-height: 1.6; }

    .audio-orbit {
      width: 98px;
      height: 98px;
      display: grid;
      place-items: center;
      margin: 0 auto 26px;
      border: 1px solid rgba(101,221,189,.42);
      border-radius: 50%;
      box-shadow: 0 0 0 14px rgba(101,221,189,.04), 0 0 0 28px rgba(101,221,189,.025);
      color: var(--blue);
      font-size: 32px;
      animation: audioPulse 2.8s ease-in-out infinite;
    }

    .audio-note { display: block; margin-top: 16px; color: #737c87; font-size: 11px; }

    .listening-workspace { max-width: 900px; margin: 0 auto; }
    .audio-dock { margin-bottom: 28px; }
    .ursula-player { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 14px; width: min(560px, 100%); margin: 22px auto; padding: 13px 16px; border: 1px solid #303943; border-radius: 16px; background: linear-gradient(135deg, #171d22, #101519); box-shadow: 0 14px 30px rgba(0,0,0,.24); text-align: left; }
    .audio-dock .ursula-player { width: 100%; margin: 0; }
    .player-toggle { width: 46px; height: 46px; border: 1px solid rgba(101,221,189,.5); border-radius: 50%; background: var(--blue-soft); color: var(--blue); cursor: pointer; font-weight: 900; }
    .player-toggle:hover { background: #193b34; }
    .player-toggle:focus-visible { outline: 3px solid rgba(101,221,189,.35); outline-offset: 3px; }
    .player-main { min-width: 0; }
    .player-main strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 13px; }
    .player-track { height: 4px; overflow: hidden; border-radius: 999px; background: #313941; }
    .player-track span { display: block; width: 0; height: 100%; background: var(--blue); transition: width .18s linear; }
    .player-main small { display: flex; justify-content: space-between; margin-top: 7px; color: var(--muted); font-variant-numeric: tabular-nums; }

    .listening-question { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
    .listening-question h2 { max-width: 760px; margin: 0 0 30px; font-size: clamp(25px, 3vw, 38px); line-height: 1.2; }
    .choice-list { display: grid; gap: 11px; }

    .choice-option {
      display: grid;
      grid-template-columns: 36px minmax(0, 1fr);
      align-items: center;
      gap: 14px;
      width: 100%;
      padding: 15px 17px;
      border: 1px solid #363e48;
      border-radius: 13px;
      background: #14191f;
      color: var(--ink);
      cursor: pointer;
      font-size: 15px;
      line-height: 1.45;
      text-align: left;
      transition: transform .16s ease, border-color .16s ease, background .16s ease;
    }

    .choice-option:hover { transform: translateX(3px); border-color: #59636f; }
    .choice-option.selected { border-color: var(--blue); background: rgba(101,221,189,.07); }
    .choice-option.correct { border-color: var(--green); background: var(--green-soft); }
    .choice-option.incorrect { border-color: var(--red); background: var(--red-soft); }
    .choice-letter { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 900; }
    .choice-feedback { margin-top: 22px; padding-left: 16px; border-left: 3px solid var(--blue); color: var(--muted); font-size: 13px; line-height: 1.55; }
    .choice-feedback strong { color: var(--ink); }

    .listening-transcript { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); color: #d6dbe1; }
    .listening-transcript small { display: block; margin-bottom: 4px; color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
    .listening-transcript h3 { margin: 0 0 16px; color: var(--ink); font-family: var(--display); font-size: 24px; }
    .listening-transcript p { margin: 0 0 1em; font-family: var(--display); font-size: 16px; line-height: 1.72; }
    .listening-transcript p:last-child { margin-bottom: 0; }

    .listening-results { width: min(720px, 100%); margin: 0 auto; padding: clamp(28px, 5vw, 52px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
    .listening-results-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
    .listening-results-head .eyebrow { margin-bottom: 7px; }
    .listening-results-head h2 { max-width: 490px; margin: 0; font-family: var(--display); font-size: clamp(31px, 4.5vw, 50px); line-height: 1; }
    .listening-score { color: var(--blue); font-family: var(--display); font-size: clamp(42px, 6vw, 68px); font-weight: 650; letter-spacing: -.05em; line-height: .85; }
    .listening-score-ledger { display: grid; gap: 0; margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
    .listening-score-ledger li { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
    .listening-score-ledger strong { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 15px; }
    .listening-score-ledger .correct { color: var(--green); }
    .listening-score-ledger .incorrect { color: var(--red); }
    .listening-results-note { margin: 24px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
    .listening-result-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }

    @media (max-width: 620px) {
      .listening-results-head { grid-template-columns: 1fr; align-items: start; }
      .listening-result-actions { flex-direction: column-reverse; }
      .listening-result-actions .button { width: 100%; }
    }

    @keyframes audioPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }

    .side-note {
      position: sticky;
      top: 118px;
      padding-top: 8px;
      border-top: 3px solid var(--ink);
    }

    .side-note h3 {
      margin-bottom: 12px;
      font-size: 14px;
      text-transform: uppercase;
      letter-spacing: .07em;
    }

    .side-note p, .side-note li {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .side-note ol { margin: 0; padding-left: 18px; }

    .exam-sheet {
      max-width: 980px;
      min-height: 430px;
      padding: clamp(24px, 4vw, 54px);
      border: 1px solid var(--line);
      border-radius: 22px;
      background:
        linear-gradient(120deg, rgba(101,221,189,.045), transparent 38%),
        var(--surface);
      box-shadow: var(--shadow);
    }

    .exam-instruction {
      margin-bottom: 38px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      letter-spacing: .07em;
      text-transform: uppercase;
    }

    .speaker-row {
      display: grid;
      grid-template-columns: 54px minmax(0, 1fr);
      align-items: center;
      gap: 18px;
      margin-bottom: 28px;
    }

    .speaker-row.response-row { margin-bottom: 32px; }

    .speaker-avatar {
      position: relative;
      width: 50px;
      height: 50px;
      flex: none;
      overflow: hidden;
      border: 2px solid var(--blue);
      border-radius: 50%;
      background: linear-gradient(145deg, #252b33, #101318);
      box-shadow: 0 0 0 5px rgba(101,221,189,.06);
    }

    .speaker-avatar::before {
      content: "";
      position: absolute;
      left: 50%;
      top: 9px;
      width: 15px;
      height: 15px;
      transform: translateX(-50%);
      border-radius: 50%;
      background: #b6bec9;
    }

    .speaker-avatar::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: -6px;
      width: 34px;
      height: 27px;
      transform: translateX(-50%);
      border-radius: 50% 50% 0 0;
      background: #6d7784;
    }

    .speaker-avatar.answerer { border-color: #6c7dff; }
    .speaker-avatar.answerer::before { background: #d8c2ae; }
    .speaker-avatar.answerer::after { background: #5968cf; }

    .speaker-copy {
      margin: 0;
      color: #e7eaed;
      font-size: clamp(16px, 2vw, 19px);
      line-height: 1.55;
    }

    .sentence-pattern {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-end;
      gap: 8px 7px;
      min-height: 44px;
      color: #f6f7f8;
      font-size: clamp(18px, 2.2vw, 23px);
      line-height: 1.65;
    }

    .fixed-fragment { white-space: pre-wrap; }

    .slot-terminal-wrap {
      display: inline-flex;
      align-items: flex-end;
      gap: 2px;
      white-space: nowrap;
    }

    .line-slot {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 48px;
      min-height: 33px;
      padding: 0 5px 3px;
      border: 0;
      border-bottom: 2px solid #727b86;
      border-radius: 0;
      background: transparent;
      color: var(--ink);
      cursor: pointer;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.2;
      transition: border-color .18s ease, color .18s ease, background .18s ease, min-width .18s ease;
    }

    .line-slot:hover, .line-slot.drag-over { border-color: var(--blue); background: rgba(101,221,189,.06); }
    .line-slot.filled { min-width: 64px; border-color: var(--blue); color: var(--blue); cursor: grab; }
    .line-slot.correct { border-color: var(--green); color: var(--green); background: rgba(114,226,185,.07); }
    .line-slot.incorrect { border-color: var(--red); color: var(--red); background: rgba(255,125,134,.07); }
    .line-slot.correct::after, .line-slot.incorrect::after {
      position: absolute;
      right: -7px;
      top: -9px;
      display: grid;
      place-items: center;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      color: #08100d;
      font-size: 10px;
      font-weight: 900;
    }
    .line-slot.correct::after { content: "✓"; background: var(--green); }
    .line-slot.incorrect::after { content: "×"; background: var(--red); }

    .option-bank {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 7px;
      min-height: 66px;
      margin-left: 72px;
      padding: 13px 0;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .option-word {
      padding: 5px 4px;
      border: 0;
      border-radius: 5px;
      background: transparent;
      color: #d9dde2;
      cursor: grab;
      font-size: 15px;
      font-weight: 650;
      transition: color .16s ease, background .16s ease, transform .16s ease;
    }

    .option-word:hover { color: var(--blue); background: rgba(101,221,189,.07); transform: translateY(-1px); }
    .option-separator { color: #555e69; user-select: none; }
    .option-bank.drag-over { border-color: var(--blue); }
    .option-empty { color: var(--muted); font-size: 13px; font-style: italic; }

    .source-note {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 14px 0 0 72px;
      color: var(--muted);
      font-size: 11px;
    }

    .source-note::before { content: "↳"; color: var(--blue); font-size: 16px; }

    .writing-layout {
      display: grid;
      grid-template-columns: minmax(300px, .78fr) minmax(460px, 1.22fr);
      gap: 54px;
      align-items: start;
    }

    .prompt-column {
      padding-top: 4px;
    }

    .prompt-column h2 {
      margin-bottom: 16px;
      font-family: var(--display);
      font-size: 29px;
      font-weight: 500;
      letter-spacing: -.025em;
      line-height: 1.18;
    }

    .prompt-column > p {
      color: #444a54;
      font-size: 15px;
      line-height: 1.65;
    }

    .task-list {
      margin: 24px 0 0;
      padding: 20px 0 0;
      border-top: 1px solid var(--line);
      list-style: none;
      counter-reset: task;
    }

    .task-list li {
      position: relative;
      margin: 0 0 18px;
      padding-left: 42px;
      color: #343943;
      font-size: 17px;
      font-weight: 650;
      line-height: 1.5;
      counter-increment: task;
    }

    .task-list li::before {
      content: counter(task);
      position: absolute;
      left: 0;
      top: -1px;
      display: grid;
      place-items: center;
      width: 29px;
      height: 29px;
      border: 1px solid var(--blue);
      border-radius: 50%;
      color: var(--blue);
      font-size: 13px;
      font-weight: 800;
    }

    .compose-panel {
      border: 1px solid #cfd1d6;
      border-radius: var(--radius);
      background: var(--surface);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .email-meta {
      display: grid;
      grid-template-columns: 88px 1fr;
      border-bottom: 1px solid var(--line);
      font-size: 14px;
    }

    .email-meta div { padding: 12px 16px; }
    .email-meta .label { color: var(--muted); font-weight: 700; }
    .email-meta .value { border-left: 1px solid var(--line); font-weight: 700; }

    .editor-wrap { position: relative; }
    .writing-area {
      display: block;
      width: 100%;
      min-height: 390px;
      padding: 24px 26px 60px;
      resize: vertical;
      border: 0;
      outline: 0;
      background: transparent;
      color: var(--ink);
      font-family: var(--sans);
      font-size: 17px;
      line-height: 1.7;
    }

    .writing-area:focus { box-shadow: inset 0 0 0 2px var(--blue); }
    .editor-status {
      position: absolute;
      right: 18px;
      bottom: 16px;
      display: flex;
      gap: 9px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .04em;
      text-transform: uppercase;
      pointer-events: none;
    }

    .discussion-layout {
      display: grid;
      grid-template-columns: minmax(0, .95fr) minmax(440px, 1.05fr);
      gap: 50px;
      align-items: start;
    }

    .discussion-thread {
      border-left: 2px solid var(--line);
      padding-left: 24px;
    }

    .post {
      position: relative;
      margin-bottom: 24px;
      padding-bottom: 24px;
      border-bottom: 1px solid var(--line);
    }

    .post:last-child { border-bottom: 0; }
    .post::before {
      content: "";
      position: absolute;
      left: -30px;
      top: 4px;
      width: 10px;
      height: 10px;
      border: 2px solid var(--surface);
      border-radius: 50%;
      background: var(--blue);
      box-shadow: 0 0 0 1px var(--blue);
    }

    .post .author {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 9px;
      font-size: 13px;
      font-weight: 800;
    }

    .avatar {
      display: grid;
      place-items: center;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: var(--ink);
      color: #050809;
      font-family: var(--display);
      font-size: 12px;
    }

    .post.professor .avatar { background: var(--blue); }
    .post p { margin-bottom: 0; color: #c8ced5; font-size: 14px; line-height: 1.58; }
    .post.professor p { color: var(--ink); font-family: var(--sans); font-size: 16px; }

    .discussion-compose .compose-label {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      padding: 14px 18px;
      border-bottom: 1px solid var(--line);
      font-size: 13px;
      font-weight: 800;
    }

    .discussion-compose .compose-label span { color: var(--muted); font-size: 11px; }

    .feedback-panel {
      margin-top: 20px;
      border-top: 1px solid var(--line);
      padding-top: 20px;
      animation: rise .3s ease both;
    }

    .evaluation-progress {
      position: relative;
      overflow: hidden;
      display: grid;
      grid-template-columns: 72px minmax(0, 1fr);
      gap: 20px;
      align-items: center;
      min-height: 164px;
      margin-top: 20px;
      padding: 24px;
      border: 1px solid rgba(101,221,189,.24);
      border-radius: 16px;
      background: linear-gradient(120deg, rgba(101,221,189,.07), rgba(255,255,255,.018) 58%);
      animation: rise .3s ease both;
    }
    .evaluation-progress::after {
      content: "";
      position: absolute;
      inset: 0 auto 0 -35%;
      width: 28%;
      background: linear-gradient(90deg, transparent, rgba(101,221,189,.07), transparent);
      transform: skewX(-14deg);
      animation: evaluationSweep 2.8s ease-in-out infinite;
      pointer-events: none;
    }
    .evaluation-mark {
      position: relative;
      z-index: 1;
      width: 64px;
      height: 64px;
      display: grid;
      place-items: center;
      border-radius: 18px;
      background: var(--blue);
      color: #07110e;
      font: 900 26px/1 var(--display);
      box-shadow: 0 0 0 0 rgba(101,221,189,.22);
      animation: evaluationMark 1.8s ease-out infinite;
    }
    .evaluation-mark i {
      position: absolute;
      width: 5px;
      border-radius: 99px;
      background: #07110e;
      transform-origin: bottom;
      animation: evaluationBars .9s ease-in-out infinite alternate;
    }
    .evaluation-mark i:nth-child(2) { right: 13px; bottom: 13px; height: 11px; }
    .evaluation-mark i:nth-child(3) { right: 6px; bottom: 13px; height: 18px; animation-delay: -.3s; }
    .evaluation-copy { position: relative; z-index: 1; min-width: 0; }
    .evaluation-kicker { margin: 0 0 5px; color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
    .evaluation-copy h3 { margin: 0; font-size: clamp(19px, 2.4vw, 26px); }
    .evaluation-copy > p:not(.evaluation-kicker):not(.evaluation-count) { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
    .evaluation-rubric { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
    .evaluation-rubric span {
      padding: 6px 9px;
      border: 1px solid #38444a;
      border-radius: 999px;
      color: #89959a;
      font-size: 10px;
      font-weight: 760;
      animation: evaluationCriterion 4.8s ease-in-out infinite;
    }
    .evaluation-rubric span:nth-child(2) { animation-delay: 1.2s; }
    .evaluation-rubric span:nth-child(3) { animation-delay: 2.4s; }
    .evaluation-rubric span:nth-child(4) { animation-delay: 3.6s; }
    .evaluation-count { margin: 13px 0 0; color: #cbd3d1; font-size: 11px; font-variant-numeric: tabular-nums; }

    .feedback-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 18px; }
    .feedback-columns > div { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
    .feedback-columns ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.55; }
    .feedback-unlock { margin-top: 20px; }
    .feedback-score-head { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
    .feedback-score-head.single-score { grid-template-columns: 1fr; }
    .feedback-score-head > div { padding: 22px; background: rgba(255,255,255,.018); }
    .feedback-score-head > div + div { border-left: 1px solid var(--line); }
    .feedback-score-head span, .feedback-score-head strong, .feedback-score-head small { display: block; }
    .feedback-score-head span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
    .feedback-score-head strong { margin-top: 8px; font-family: var(--display); font-size: 30px; font-weight: 640; }
    .feedback-score-head small { margin-top: 5px; color: var(--muted); font-size: 11px; }
    .feedback-breakdown { margin: 20px 0 0; border-top: 1px solid var(--line); }
    .feedback-breakdown > div { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
    .feedback-breakdown dt { color: #cdd4d8; }
    .feedback-breakdown dd { margin: 0; font-weight: 850; }
    .feedback-priorities { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
    .feedback-priorities section { min-width: 0; padding: 20px; background: rgba(255,255,255,.018); }
    .feedback-priorities section:nth-child(odd) { border-right: 1px solid var(--line); }
    .feedback-priorities section:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .feedback-priorities section > span { display: block; margin-bottom: 10px; color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
    .feedback-priorities p, .feedback-priorities ul { margin: 0; color: var(--muted); line-height: 1.55; }
    .feedback-priorities ul { padding-left: 18px; }
    .feedback-highlights { margin-top: 18px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
    .feedback-highlights summary { padding: 15px 18px; cursor: pointer; font-weight: 820; }
    .feedback-highlights > div { padding: 17px 18px; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.55; }
    .feedback-highlights q { display: block; color: var(--ink); font-weight: 700; }
    .feedback-highlights p { margin: 8px 0; }
    textarea[readonly] { color: #d2d8dd; background: #11161a; cursor: default; }
    button:disabled { cursor: not-allowed; opacity: .58; }

    .score-row {
      display: grid;
      grid-template-columns: 90px 1fr;
      gap: 18px;
      align-items: center;
    }

    .score-dial {
      display: grid;
      place-items: center;
      width: 78px;
      height: 78px;
      border-radius: 50%;
      background: conic-gradient(var(--blue) calc(var(--score) * 20%), #dfe3ec 0);
      position: relative;
    }

    .score-dial.score-0 { --score: 0; }
    .score-dial.score-1 { --score: 1; }
    .score-dial.score-2 { --score: 2; }
    .score-dial.score-3 { --score: 3; }
    .score-dial.score-4 { --score: 4; }
    .score-dial.score-5 { --score: 5; }

    .score-dial::after {
      content: "";
      position: absolute;
      inset: 7px;
      border-radius: 50%;
      background: var(--paper);
    }

    .score-dial strong { position: relative; z-index: 1; font-size: 23px; }
    .score-copy h3 { margin-bottom: 5px; font-size: 16px; }
    .score-copy p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

    .rubric-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 14px;
    }

    .rubric-chip {
      padding: 7px 10px;
      border-radius: 999px;
      background: #e4e3df;
      color: #5a5f68;
      font-size: 11px;
      font-weight: 700;
    }

    .rubric-chip.met { background: var(--green-soft); color: var(--green); }
    .model-answer {
      margin-top: 16px;
      padding: 18px;
      border-radius: 12px;
      background: #e9e7e0;
    }

    .model-answer summary {
      cursor: pointer;
      color: var(--blue);
      font-size: 13px;
      font-weight: 800;
    }

    .model-answer p {
      margin: 14px 0 0;
      white-space: pre-line;
      color: #3f444d;
      font-family: var(--display);
      font-size: 14px;
      line-height: 1.6;
    }

    .question-controls {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 18px;
      margin-top: 42px;
      padding-top: 24px;
      border-top: 1px solid var(--line);
    }

    .control-right { justify-self: end; display: flex; gap: 10px; }
    .control-right.control-centered { justify-self: center; justify-content: center; }
    .control-right.control-start { justify-self: start; justify-content: flex-start; }
    .control-center { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      min-height: 44px;
      padding: 10px 17px;
      border: 1px solid var(--ink);
      border-radius: 11px;
      background: var(--ink);
      color: white;
      cursor: pointer;
      font-size: 13px;
      font-weight: 800;
      transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    }

    .button:hover { transform: translateY(-2px); box-shadow: 0 9px 18px rgba(22,25,31,.15); }
    .button:active { transform: translateY(0) scale(.98); }
    .button.secondary { background: transparent; color: var(--ink); border-color: #afb2b9; }
    .button.primary { background: var(--blue); border-color: var(--blue); }
    .button.primary:hover { background: var(--blue-dark); }
    .button:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }
    .icon-button { min-width: 44px; padding-inline: 13px; font-size: 18px; }

    .site-footer {
      width: min(1180px, calc(100% - 40px));
      margin: 0 auto;
      padding: 22px 0 40px;
      border-top: 1px solid var(--line);
      display: flex;
      justify-content: space-between;
      gap: 24px;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.5;
    }

    .site-footer a { text-underline-offset: 3px; }
    .text-button { border: 0; padding: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 11px; }

    /* Dark examination theme overrides */
    .brand-mark { color: #07110e; box-shadow: inset 0 0 0 5px rgba(5,18,14,.16); }
    .section-tab.active .tab-count { background: rgba(101,221,189,.12); color: var(--blue); }
    .timer, .compose-panel { background: var(--surface-raised); border-color: var(--line); }
    .question-context, .instruction, .section-description, .control-center, .editor-status { color: var(--muted); }
    .composer-zone { border-color: #4c555f; background: rgba(255,255,255,.018); }
    .word-bank { border-color: var(--line); background: rgba(255,255,255,.015); }
    .word-tile { border-color: #3a424c; background: #181d23; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
    .prompt-column > p, .task-list li, .post p { color: #c6cbd1; }
    .email-meta .value { border-color: var(--line); }
    .writing-area { color: var(--ink); caret-color: var(--blue); }
    .feedback-panel, .task-list, .post, .discussion-compose .compose-label { border-color: var(--line); }
    .rubric-chip { background: #232931; color: #aab1ba; }
    .model-answer { background: #181d23; }
    .model-answer p { color: #c3c9d0; }
    .score-dial::after { background: var(--paper); }
    .button { border-color: var(--blue); background: var(--blue); color: #07110e; }
    .button.secondary { border-color: #4c555f; background: transparent; color: var(--ink); }
    .modal { background: var(--surface-raised); }
    .modal-layer { background: rgba(0,0,0,.72); }
    .site-footer { color: #737b86; }

    .modal-layer {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: grid;
      place-items: center;
      padding: 20px;
      background: rgba(13, 17, 28, .58);
      backdrop-filter: blur(8px);
      animation: fade .2s ease both;
    }

    .modal {
      width: min(540px, 100%);
      border-radius: 22px;
      background: var(--surface);
      padding: 34px;
      box-shadow: 0 34px 100px rgba(0,0,0,.3);
      animation: modalIn .28s cubic-bezier(.2,.8,.2,1) both;
    }

    .modal-kicker { margin-bottom: 12px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
    .modal h2 { margin-bottom: 12px; font-family: var(--display); font-size: 31px; font-weight: 600; letter-spacing: -.03em; }
    .modal p { margin-bottom: 24px; color: var(--muted); font-size: 14px; line-height: 1.55; }
    .modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
    .guide-modal-layer { backdrop-filter: none; animation: none; }
    .guide-modal-layer .modal { max-height: calc(100dvh - 40px); overflow-y: auto; animation: none; transform: none; opacity: 1; filter: none; }

    .toast {
      position: fixed;
      left: 50%;
      bottom: 28px;
      z-index: 120;
      transform: translateX(-50%);
      padding: 11px 16px;
      border-radius: 999px;
      background: #f1f4f2;
      color: #090c0e;
      box-shadow: var(--shadow);
      font-size: 12px;
      font-weight: 700;
      animation: toastIn .25s ease both;
    }

    .noscript {
      margin: 40px auto;
      width: min(700px, calc(100% - 40px));
      padding: 20px;
      background: var(--red-soft);
      color: var(--red);
    }

    @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes evaluationSweep { 0%, 18% { left: -35%; } 72%, 100% { left: 118%; } }
    @keyframes evaluationMark { 60%, 100% { box-shadow: 0 0 0 14px rgba(101,221,189,0); } }
    @keyframes evaluationBars { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
    @keyframes evaluationCriterion { 0%, 100% { border-color: #38444a; color: #89959a; background: transparent; } 12%, 28% { border-color: rgba(101,221,189,.48); color: #baf5df; background: rgba(101,221,189,.08); } }
    @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
    @keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
    @keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
    @keyframes menuIn { from { opacity: 0; transform: translateY(-5px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

    @media (max-width: 980px) {
      .topbar-inner { grid-template-columns: 145px 1fr auto; min-height: 70px; }
      .header-status { display: none; }
      .brand { font-size: 17px; }
      .exam-tab { font-size: 12px; }
      .section-tab { padding-left: 10px; font-size: 11px; }
      .build-layout, .writing-layout, .discussion-layout, .reading-layout { grid-template-columns: 1fr; gap: 34px; }
      .reading-question { position: static; }
      .side-note { position: static; display: grid; grid-template-columns: 140px 1fr; gap: 18px; }
      .writing-layout .compose-panel, .discussion-compose { order: 2; }
    }

    @media (max-width: 700px) {
      .topbar-inner { width: 100%; min-height: auto; padding: 12px 14px 10px; grid-template-columns: 1fr auto; gap: 10px; }
      .brand { display: inline-flex; justify-self: start; font-size: 16px; }
      .brand-mark { width: 22px; height: 22px; font-size: 12px; }
      .exam-tabs { grid-column: 1 / -1; min-height: 44px; }
      .auth-actions { grid-column: 2; grid-row: 1; }
      .auth-button { display: none; }
      .pro-nav-action { min-height: 32px; padding-inline: 9px; font-size: 11px; }
      .exam-tab { font-size: 11px; }
      .writing-subnav { padding: 6px 8px; }
      .section-tabs { width: 100%; }
      #readingTabs { grid-template-columns: 1fr; }
      .section-tabs.four { grid-template-columns: repeat(2, 1fr); }
      .section-tab { min-height: 46px; padding: 7px 8px; text-align: center; }
      .section-tab .tab-count { display: none; }
      .app-main { width: min(100% - 28px, 1180px); padding-top: 28px; }
      .workspace-head { grid-template-columns: 1fr; gap: 15px; }
      h1 { font-size: 36px; }
      .timer-stack { justify-items: start; }
      .timer { width: fit-content; }
      .question-prompt { font-size: 28px; }
      .composer-zone, .word-bank { padding: 12px; border-radius: 14px; }
      .word-tile { min-height: 40px; padding: 8px 11px; font-size: 14px; }
      .exam-sheet { padding: 22px 16px 26px; border-radius: 16px; }
      .cloze-sheet, .listening-question { padding: 24px 17px; border-radius: 16px; }
      .cloze-passage { font-size: 18px; line-height: 2.35; }
      .cloze-char { width: 1.08em; }
      .reading-document-head { padding: 18px; }
      .reading-document-body { padding: 22px 18px; font-size: 16px; }
      .cloze-summary { flex-direction: column; gap: 7px; }
      .cloze-result-summary { align-items: flex-start; flex-direction: column; gap: 14px; }
      .cloze-result-summary dl { width: 100%; justify-content: space-between; gap: 12px; }
      .cloze-result-summary dl div { text-align: left; }
      .cloze-feedback-list { grid-template-columns: 1fr; }
      .cloze-feedback-list li { grid-template-columns: 18px minmax(82px, auto) 1fr; }
      .audio-gate { min-height: 430px; padding-inline: 14px; }
      .audio-dock { align-items: flex-start; flex-direction: column; }
      .choice-option { grid-template-columns: 32px minmax(0, 1fr); padding: 13px; }
      .exam-instruction { margin-bottom: 26px; }
      .speaker-row { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; margin-bottom: 24px; }
      .speaker-avatar { width: 40px; height: 40px; }
      .speaker-avatar::before { top: 7px; width: 12px; height: 12px; }
      .speaker-avatar::after { width: 28px; height: 22px; }
      .sentence-pattern { gap: 6px 5px; font-size: 17px; }
      .line-slot { min-width: 38px; min-height: 31px; font-size: 14px; }
      .option-bank { margin-left: 0; gap: 5px; }
      .source-note { margin-left: 0; }
      .exam-placeholder { min-height: 430px; grid-template-columns: 1fr; padding: 30px 0 70px; }
      .exam-placeholder h1 { font-size: 58px; }
      .access-loading { min-height: 430px; }
      .placeholder-index { display: none; }
      .side-note { display: block; }
      .writing-area { min-height: 360px; padding: 20px 18px 56px; }
      .discussion-thread { padding-left: 20px; }
      .question-controls { grid-template-columns: auto 1fr auto; }
      .control-center { font-size: 10px; text-align: center; }
      .button .long-label { display: none; }
      .question-controls.listening-skip-controls, .question-controls.practice-retry-controls { grid-template-columns: auto minmax(0, 1fr); }
      .question-controls.listening-skip-controls .control-right, .question-controls.practice-retry-controls .control-right { grid-column: 1 / -1; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) 49px; }
      .question-controls.listening-skip-controls .control-right .button, .question-controls.practice-retry-controls .control-right .button { width: 100%; min-width: 0; padding-inline: 10px; }
      .question-controls.practice-retry-controls .control-right:has(> :nth-child(4)) { grid-template-columns: repeat(3, minmax(0, 1fr)) 49px; }
      .modal { padding: 26px 22px; }
      .modal-actions { flex-direction: column-reverse; }
      .modal-actions .button { width: 100%; }
      .evaluation-progress { grid-template-columns: 52px minmax(0, 1fr); gap: 15px; padding: 19px; }
      .evaluation-mark { width: 50px; height: 50px; border-radius: 14px; font-size: 21px; }
      .evaluation-mark i:nth-child(2) { right: 10px; bottom: 10px; }
      .evaluation-mark i:nth-child(3) { right: 4px; bottom: 10px; }
      .site-footer { width: min(100% - 28px, 1180px); flex-direction: column; gap: 10px; }
    }

    @media (prefers-reduced-motion: reduce) {
      .access-loading-mark::after { animation: none; border-color: var(--blue); }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
    }
    .question-surface > * { animation: workspaceReveal 260ms cubic-bezier(.2,.8,.2,1) both; }
    .section-tab, .exam-tab { transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
    .section-tab:active, .exam-tab:active { transform: translateY(1px); }
    .toefl-modebar { border-top: 1px solid rgba(255,255,255,.035); border-bottom: 1px solid var(--line); background: #0d1215; }
    .toefl-modebar-inner { width: min(1380px, calc(100% - 48px)); min-height: 54px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
    .toefl-modebar strong { color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
    .toefl-modebar nav { display: flex; align-self: stretch; }
    .toefl-modebar button { position: relative; min-width: 108px; padding: 0 18px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 850; }
    .toefl-modebar button::after { content: ""; position: absolute; right: 18px; bottom: -1px; left: 18px; height: 2px; background: var(--blue); opacity: 0; transform: scaleX(.55); transition: opacity .18s ease, transform .18s ease; }
    .toefl-modebar button:hover, .toefl-modebar button.active { color: var(--text); }
    .toefl-modebar button.active::after { opacity: 1; transform: scaleX(1); }
    .toefl-modebar button:focus-visible { outline: 2px solid var(--blue); outline-offset: -4px; }
    .toefl-modebar button[data-toefl-mode="mock"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
    .mode-count { min-width: 23px; height: 19px; display: inline-grid; place-items: center; padding: 0 6px; border: 1px solid rgba(110,231,183,.3); border-radius: 999px; background: rgba(110,231,183,.09); color: #8aebcb; font-size: 9px; font-weight: 950; line-height: 1; }
    .toefl-modebar button[data-toefl-mode="mock"].active .mode-count,
    .toefl-modebar button[data-toefl-mode="mock"]:hover .mode-count { border-color: rgba(110,231,183,.65); background: rgba(110,231,183,.16); color: #b7f6df; }
    .mock-test-main { width: min(1180px, calc(100% - 48px)); min-height: 70svh; margin: 0 auto; padding: 74px 0 110px; animation: workspaceReveal 260ms cubic-bezier(.2,.8,.2,1) both; }
    .mock-test-head { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(270px, .55fr); gap: clamp(38px, 8vw, 110px); align-items: end; margin-bottom: 68px; }
    .mock-test-head h1 { margin: 10px 0 0; font-family: var(--display); font-size: clamp(48px, 6.5vw, 86px); font-weight: 560; letter-spacing: -.055em; line-height: .92; }
    .mock-test-head > p { max-width: 500px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
    .mock-test-list { border-top: 1px solid var(--line); }
    .mock-test-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 26px; align-items: center; width: 100%; min-height: 156px; padding: 24px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); text-align: left; transition: color .18s ease, background .18s ease; }
    .mock-test-row:hover, .mock-test-row:focus-visible { background: rgba(110, 231, 183, .045); color: var(--text); outline: none; }
    .mock-test-row > span:first-child { color: #667177; font-size: 11px; font-weight: 900; }
    .mock-test-row h2 { margin: 4px 0 13px; color: var(--text); font-family: var(--display); font-size: clamp(24px, 2.4vw, 34px); font-weight: 560; letter-spacing: -.025em; }
    .mock-test-row p { margin: 0; font-size: 13px; }
    .mock-test-type { color: #8aebcb; font-size: 9px !important; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
    .mock-test-meta { display: flex; flex-wrap: wrap; gap: 12px 25px; margin: 0; }
    .mock-test-meta div { display: flex; gap: 7px; }
    .mock-test-meta dt { color: #748085; font-size: 10px; font-weight: 820; text-transform: uppercase; letter-spacing: .06em; }
    .mock-test-meta dd { margin: 0; color: #b8c1c5; font-size: 11px; }
    .mock-progress-note { display: block; margin-top: 7px; color: #748085; font-size: 11px; font-weight: 760; letter-spacing: .02em; }
    .mock-test-row.is-unfinished .mock-progress-note { color: #c6f26a; }
    .mock-test-row.is-complete .mock-progress-note { color: #8aebcb; }
    .mock-test-status { min-height: 52px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; padding: 9px 18px; border: 1px solid #a9d64c; border-radius: 14px; background: #c6f26a; color: #10150c; box-shadow: 0 8px 24px rgba(198,242,106,.08); transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
    .mock-test-status strong { font-size: 11px; font-weight: 950; letter-spacing: .045em; text-transform: uppercase; }
    .mock-test-status small { margin-top: 3px; font-size: 9px; font-weight: 780; opacity: .72; }
    .mock-row-loader { display: inline-flex; align-items: center; gap: 4px; min-height: 13px; }
    .mock-row-loader i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: mockRowPulse .8s ease-in-out infinite; }
    .mock-row-loader i:nth-child(2) { animation-delay: .1s; }
    .mock-row-loader i:nth-child(3) { animation-delay: .2s; }
    @keyframes mockRowPulse { 0%, 70%, 100% { opacity: .3; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-2px); } }
    .mock-test-row:hover .mock-test-status, .mock-test-row:focus-visible .mock-test-status { transform: translateY(-2px); background: #d5ff7c; box-shadow: 0 12px 30px rgba(198,242,106,.18); }
    .mock-test-row.is-complete .mock-test-status { border-color: #60cda8; background: #79e2bd; }
    .mock-test-row.is-complete .mock-test-status strong { letter-spacing: .015em; text-transform: none; }
    @keyframes workspaceReveal { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
    @media (prefers-reduced-motion: reduce) { .question-surface > *, .mock-row-loader i { animation: none; } }
    @media (max-width: 680px) { .feedback-columns, .feedback-priorities { grid-template-columns: 1fr; } .feedback-priorities section:nth-child(odd) { border-right: 0; } .feedback-priorities section:not(:last-child) { border-bottom: 1px solid var(--line); } .feedback-score-head { grid-template-columns: 1fr; } .feedback-score-head > div + div { border-left: 0; border-top: 1px solid var(--line); } .task-help { right: 14px; bottom: 14px; } .toefl-modebar-inner, .mock-test-main { width: min(100% - 28px, 1180px); } .toefl-modebar button { min-width: 92px; padding-inline: 12px; } .mock-test-main { padding: 50px 0 82px; } .mock-test-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 44px; } .mock-test-row { grid-template-columns: 36px minmax(0, 1fr); gap: 15px; padding: 24px 0; } .mock-test-status { grid-column: 2; justify-self: start; max-width: 100%; } .mock-test-meta { display: grid; gap: 7px; } }
    .tour-layer { position: fixed; inset: 0; z-index: 12000; pointer-events: none; }
    .tour-spotlight { position: fixed; top: 0; left: 0; width: 1px; height: 1px; border: 2px solid #7ce6c2; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(3,7,9,.78), 0 0 0 6px rgba(124,230,194,.12); pointer-events: none; transition: left .14s ease, top .14s ease, width .14s ease, height .14s ease; }
    .tour-popover { position: fixed; top: 0; left: 0; width: min(390px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 22px; border: 1px solid #354149; border-radius: 16px; background: #131a1e; color: var(--text); box-shadow: 0 24px 70px rgba(0,0,0,.42); pointer-events: auto; opacity: 1; filter: none; backdrop-filter: none; -webkit-font-smoothing: antialiased; transition: none; }
    .tour-kicker { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 13px; color: #7ce6c2; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
    .tour-popover h2 { margin: 0 0 9px; font-family: var(--display); font-size: 27px; font-weight: 590; letter-spacing: -.025em; line-height: 1.08; }
    .tour-popover p { margin: 0; color: #aab4b8; font-size: 14px; line-height: 1.58; }
    .tour-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
    .tour-actions button { min-height: 38px; padding: 0 13px; border: 1px solid #354149; border-radius: 9px; background: transparent; color: #b8c1c5; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; }
    .tour-actions button:hover, .tour-actions button:focus-visible { border-color: #617078; color: #fff; outline: none; }
    .tour-actions .tour-next { border-color: #7ce6c2; background: #7ce6c2; color: #07100d; }
    .tour-actions .tour-next:hover, .tour-actions .tour-next:focus-visible { border-color: #adf3da; background: #adf3da; color: #07100d; }
    @media (max-width: 540px) { .tour-popover { padding: 18px; } .tour-popover h2 { font-size: 23px; } .tour-actions { gap: 6px; } .tour-actions button { padding-inline: 10px; } }
    @media (prefers-reduced-motion: reduce) { .tour-spotlight, .tour-popover { transition: none; } }
