:root {
  --ink: #102331;
  --ink-2: #173849;
  --paper: #f7f3ea;
  --paper-2: #fffdf7;
  --acid: #e7ff59;
  --acid-strong: #d5f52c;
  --coral: #ff6b4a;
  --sky: #bfe8ef;
  --muted: #66757d;
  --line: rgba(16, 35, 49, .16);
  --shadow: 0 24px 70px rgba(16, 35, 49, .12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16,35,49,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,35,49,.035) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}
button, input { font: inherit; }
a { color: inherit; }
.speaking-home main { overflow: hidden; }
.eyebrow {
  margin: 0 0 14px;
  color: #477080;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.speaking-hero {
  position: relative;
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .7fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 76px 34px 64px;
}
.speaking-hero::before {
  content: "SPEAK";
  position: absolute;
  z-index: -1;
  right: -10px;
  top: 14px;
  color: rgba(16,35,49,.035);
  font: 900 clamp(110px, 18vw, 250px)/1 Arial, sans-serif;
  letter-spacing: -.08em;
}
.hero-copy h1 {
  margin: 0;
  max-width: 720px;
  font: 700 clamp(54px, 7vw, 96px)/.94 Georgia, "Songti SC", serif;
  letter-spacing: -.055em;
}
.hero-copy h1 em { color: var(--coral); font-style: italic; }
.hero-lead { max-width: 610px; margin: 28px 0 0; color: #435966; font-size: 17px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: white; box-shadow: 7px 7px 0 var(--acid); }
.button-ghost { background: rgba(255,255,255,.35); }
.privacy-note { margin-top: 24px; color: var(--muted); font-size: 13px; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #55a96b; box-shadow: 0 0 0 4px rgba(85,169,107,.12); }
.studio-card {
  position: relative;
  min-height: 400px;
  padding: 26px;
  color: #fff;
  background: var(--ink);
  box-shadow: 18px 18px 0 var(--sky), var(--shadow);
  transform: rotate(1.5deg);
  overflow: hidden;
}
.studio-card::after { content: ""; position: absolute; width: 210px; height: 210px; right: -90px; top: -90px; border: 36px solid rgba(231,255,89,.18); border-radius: 50%; }
.studio-topline { display: flex; justify-content: space-between; color: var(--acid); font: 800 11px/1 monospace; letter-spacing: .18em; }
.mic-orbit { width: 170px; height: 170px; display: grid; place-items: center; margin: 46px auto 30px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; box-shadow: 0 0 0 22px rgba(255,255,255,.035), 0 0 0 44px rgba(255,255,255,.025); }
.mic-core { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--acid); font-size: 25px; box-shadow: 0 0 36px rgba(231,255,89,.35); }
.wave-bars { height: 54px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.wave-bars i { width: 4px; height: 18px; background: var(--sky); animation: wave 1.6s ease-in-out infinite; }
.wave-bars i:nth-child(3n) { height: 42px; animation-delay: -.4s; }
.wave-bars i:nth-child(4n) { height: 28px; animation-delay: -.8s; }
.wave-bars i:nth-child(5n) { height: 50px; animation-delay: -1.1s; }
@keyframes wave { 50% { transform: scaleY(.32); opacity: .55; } }
.studio-readout { display: flex; align-items: end; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px; }
.studio-readout strong { font: 700 28px/1 monospace; color: var(--acid); }.studio-readout span { color: #b9cad2; font-size: 12px; }
.dashboard-strip { display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; max-width: 1160px; margin: 0 auto 110px; border: 1px solid var(--ink); background: var(--paper-2); box-shadow: 9px 9px 0 var(--ink); }
.dashboard-strip > div { min-height: 105px; display: flex; flex-direction: column; justify-content: center; padding: 20px 28px; border-right: 1px solid var(--line); }
.dashboard-strip > div:last-child { border: 0; }.dashboard-strip span { color: var(--muted); font-size: 12px; }.dashboard-strip strong { margin-top: 4px; font: 700 34px/1.1 Georgia, serif; }.dashboard-strip .strip-note { background: var(--acid); }.dashboard-strip .strip-note strong { font-size: 22px; }
.mode-section, .bank-section, .local-section { max-width: 1240px; margin: 0 auto; padding: 0 34px 120px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 36px; }
.section-heading h2, .local-copy h2 { margin: 0; font: 700 clamp(35px, 4vw, 54px)/1.05 Georgia, "Songti SC", serif; letter-spacing: -.035em; }
.section-heading > p { max-width: 440px; margin: 0; color: var(--muted); line-height: 1.7; }
.mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); box-shadow: 10px 10px 0 rgba(16,35,49,.12); }
.mode-card { min-height: 335px; display: flex; flex-direction: column; padding: 26px; border-right: 1px solid var(--ink); text-decoration: none; background: var(--paper-2); transition: transform .22s ease, background .22s ease; }
.mode-card:last-child { border: 0; }.mode-card:hover { position: relative; transform: translateY(-8px); box-shadow: 0 8px 0 var(--ink); }.mode-card h3 { margin: 58px 0 18px; font: 700 31px/1.05 Georgia, serif; }.mode-card p { margin: 0; color: #4e626c; line-height: 1.7; }.mode-card b { margin-top: auto; font-size: 14px; }.mode-index { font: 800 10px/1 monospace; letter-spacing: .11em; }.mode-p2 { background: var(--sky); }.mode-p3 { background: #ffd9ca; }.mode-video { color: white; background: var(--ink); }.mode-video p { color: #c9d5da; }.mode-video b, .mode-video .mode-index { color: var(--acid); }
.mode-reasons { position: relative; grid-column: 1 / -1; min-height: 210px; border-top: 1px solid var(--ink); border-right: 0; background: var(--acid); overflow: hidden; }
.mode-reasons::after { content: "07"; position: absolute; right: 30px; bottom: -42px; color: rgba(16,35,49,.08); font: 900 170px/1 Georgia, serif; pointer-events: none; }
.mode-reasons h3 { max-width: 620px; margin: 34px 0 12px; font-size: 38px; }
.mode-reasons p { max-width: 650px; color: #33434a; }
.mode-reasons b { position: absolute; right: 28px; top: 28px; padding: 10px 13px; border: 1px solid var(--ink); background: rgba(255,255,255,.48); }
.bank-section { max-width: none; padding-top: 105px; background: var(--ink); color: white; }
.bank-section > * { max-width: 1172px; margin-left: auto; margin-right: auto; }.bank-section .eyebrow { color: var(--acid); }.bank-heading { align-items: center; }.bank-tools { display: flex; gap: 10px; }.search-box, .video-filter { height: 45px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); }.search-box { min-width: 280px; padding: 0 14px; }.search-box input { width: 100%; color: white; border: 0; outline: 0; background: transparent; }.search-box input::placeholder { color: #91a4ae; }.video-filter { padding: 0 14px; color: #c4d0d6; font-size: 12px; cursor: pointer; }
.bank-switcher { display: flex; align-items: stretch; width: fit-content; max-width: 100%; margin-bottom: 34px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.045); box-shadow: 7px 7px 0 rgba(0,0,0,.2); }
.bank-tabs { display: flex; margin: 0; border: 0; }.bank-tabs button, .topic-category-filter button { min-height: 54px; padding: 10px 18px; color: #bdcbd1; border: 0; border-right: 1px solid rgba(255,255,255,.18); background: transparent; cursor: pointer; font-size: 13px; font-weight: 900; transition: color .18s ease, background .18s ease; }.bank-tabs button span { margin-left: 7px; color: #81959e; font-size: 10px; font-weight: 600; }.bank-tabs button:hover, .topic-category-filter button:hover { color: white; background: rgba(255,255,255,.09); }.bank-tabs button.is-active, .topic-category-filter button.is-active { color: var(--ink); background: var(--acid); }.bank-tabs button.is-active span { color: #526113; }.bank-tabs button:focus-visible, .topic-category-filter button:focus-visible { position: relative; z-index: 1; outline: 3px solid var(--sky); outline-offset: 3px; }
.topic-category-filter { display: flex; align-items: stretch; width: auto; margin: 0; border-left: 1px solid rgba(255,255,255,.34); background: rgba(0,0,0,.12); }
.topic-category-filter[hidden] { display: none; }
.category-label { display: flex; align-items: center; padding: 0 14px; color: #91a4ae; border-right: 1px solid rgba(255,255,255,.18); font: 800 9px monospace; letter-spacing: .14em; white-space: nowrap; text-transform: uppercase; }
.topic-category-filter button { min-width: 142px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topic-category-filter button:last-child { border-right: 0; }
.topic-category-filter button b { min-width: 27px; padding: 4px 6px; color: var(--ink); background: #d8e2e5; font: 900 10px monospace; text-align: center; }
.topic-category-filter button.is-active b { color: white; background: var(--ink); }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }.topic-card { min-height: 275px; display: flex; flex-direction: column; padding: 23px; color: var(--ink); background: var(--paper-2); animation: card-in .35s both; animation-delay: var(--delay); }.topic-card:nth-child(3n+2) { background: #e8f5f3; }.topic-card:nth-child(3n) { background: #fff0e9; }@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }.topic-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }.topic-meta b { color: inherit; }.topic-card h3 { margin: 30px 0 13px; font: 700 22px/1.15 Georgia, "Songti SC", serif; }.topic-card p { margin: 0; color: #4b5e68; font-size: 13px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }.topic-status { margin: auto 0 14px; color: var(--muted); font-size: 11px; }.topic-status .has-video { color: #3b7463; }.topic-actions { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--line); }.topic-actions a { font-size: 12px; font-weight: 800; text-decoration: none; }.topic-actions .accent { color: #d7472a; }.load-more { display: block; margin-top: 28px; padding: 13px 25px; color: white; border: 1px solid rgba(255,255,255,.45); background: transparent; cursor: pointer; }.empty-bank { grid-column: 1/-1; min-height: 220px; display: grid; place-content: center; text-align: center; border: 1px dashed rgba(255,255,255,.3); }.empty-bank strong { font: 700 24px Georgia, serif; }.empty-bank span { margin-top: 10px; color: #9eb0b9; }
.topic-progress { width: fit-content; min-height: 29px; display: inline-flex; align-items: center; gap: 8px; margin-top: 17px; padding: 6px 9px; border: 1px solid #9ca9ae; background: rgba(255,255,255,.72); font: 900 10px/1 monospace; letter-spacing: .035em; }.topic-progress i { width: 7px; height: 7px; border: 2px solid currentColor; border-radius: 50%; }.topic-progress.is-not-started { color: #687980; }.topic-progress.is-partial { color: #a43e24; border-color: #d88870; background: #fff0e7; }.topic-progress.is-partial i { background: #e8613e; }.topic-progress.is-complete { color: #30420d; border-color: #92a82a; background: var(--acid); }.topic-progress.is-complete i { border-color: var(--ink); background: var(--ink); }.topic-progress + h3 { margin-top: 18px; }
.local-section { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: 80px; padding-top: 100px; }.local-copy p:last-child { color: var(--muted); line-height: 1.8; }.local-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; }.local-flow span { min-height: 92px; display: grid; place-items: center; padding: 12px; border: 1px solid var(--ink); background: white; text-align: center; font-weight: 800; font-size: 12px; }.local-flow span:last-child { background: var(--acid); }.local-flow i { font-style: normal; }
@media (max-width: 1000px) { .speaking-hero { grid-template-columns: 1fr .7fr; gap: 35px; }.mode-grid, .topic-grid { grid-template-columns: repeat(2, 1fr); }.mode-card:nth-child(2) { border-right: 0; }.mode-card { border-bottom: 1px solid var(--ink); }.dashboard-strip { margin-left: 24px; margin-right: 24px; }.local-section { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .speaking-hero { display: block; padding: 52px 20px 50px; }.hero-copy h1 { font-size: 52px; }.studio-card { min-height: 330px; margin: 60px 6px 0 0; }.dashboard-strip { grid-template-columns: 1fr 1fr; box-shadow: 6px 6px 0 var(--ink); }.dashboard-strip > div:nth-child(2) { border-right: 0; }.dashboard-strip > div { min-height: 90px; }.mode-section, .bank-section, .local-section { padding-left: 20px; padding-right: 20px; }.section-heading { display: block; }.section-heading > p { margin-top: 16px; }.mode-grid, .topic-grid { grid-template-columns: 1fr; }.mode-card { min-height: 270px; border-right: 0; }.mode-reasons { min-height: 310px; }.mode-reasons h3 { margin-top: 48px; font-size: 34px; }.mode-reasons b { position: static; width: fit-content; margin-top: auto; }.bank-tools { margin-top: 24px; flex-direction: column; }.search-box { min-width: 0; }.bank-switcher { display: block; width: 100%; }.bank-tabs { width: 100%; overflow: visible; }.bank-tabs button { min-width: 0; flex: 1; padding: 11px 8px; white-space: nowrap; }.bank-tabs button span { display: block; margin: 3px 0 0; }.topic-category-filter { width: 100%; border-top: 1px solid rgba(255,255,255,.34); border-left: 0; }.category-label { width: 66px; justify-content: center; padding: 0 7px; }.topic-category-filter button { min-width: 0; flex: 1; padding: 10px; }.local-flow { grid-template-columns: 1fr; }.local-flow i { transform: rotate(90deg); text-align: center; }.dashboard-strip { margin-bottom: 80px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

/* Practice workbench */
.speaking-practice { min-height: 100vh; background: #ebe7dd; overflow-x: hidden; }
.practice-header { height: 68px; display: grid; grid-template-columns: 260px 1fr 260px; align-items: center; gap: 34px; padding: 0 24px; color: white; background: var(--ink); }
.practice-brand { display: flex; align-items: center; gap: 11px; color: white; text-decoration: none; }.practice-brand span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink); background: var(--acid); font: 900 13px Arial; }.practice-brand b { font-size: 14px; }.practice-progress { height: 4px; background: rgba(255,255,255,.13); overflow: hidden; }.practice-progress i { display: block; height: 100%; width: 0; background: var(--acid); transition: width .3s ease; }.practice-header-meta { display: flex; align-items: center; justify-content: end; gap: 18px; }.practice-header-meta span { color: var(--acid); font: 800 10px monospace; letter-spacing: .12em; }.practice-header-meta button { padding: 9px 13px; color: white; border: 1px solid rgba(255,255,255,.34); background: transparent; cursor: pointer; }
.practice-layout { min-height: calc(100vh - 68px); display: grid; grid-template-columns: minmax(220px, 280px) minmax(420px, 1fr) minmax(280px, 350px); }
.question-rail { position: relative; padding: 30px 24px; border-right: 1px solid var(--line); background: var(--paper); }.rail-heading { display: flex; justify-content: space-between; color: var(--muted); font: 800 10px monospace; letter-spacing: .12em; }.rail-heading span { color: #bd4229; }.question-rail h1 { margin: 28px 0 22px; font: 700 27px/1.12 Georgia, "Songti SC", serif; }.rail-prompt { margin: -8px 0 22px; color: #4e626c; font-size: 12px; line-height: 1.6; }.question-list { max-height: calc(100vh - 280px); margin: 0; padding: 0; list-style: none; overflow-y: auto; }.question-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 14px 8px; border-top: 1px solid var(--line); color: #77838a; cursor: pointer; font-size: 11px; line-height: 1.45; }.question-list li:last-child { border-bottom: 1px solid var(--line); }.question-list li span { color: #8b999f; font: 800 10px monospace; }.question-list li.is-active { color: var(--ink); background: white; font-weight: 700; }.question-list li.is-active span { color: #d14a30; }.question-list li.is-complete::after { content: "✓"; position: absolute; right: 11px; color: #4f9664; }.question-list li { position: relative; }.rail-button { width: 100%; margin-top: 18px; padding: 12px; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-weight: 800; }.rail-privacy { margin: 18px 0 0; color: var(--muted); font-size: 10px; text-align: center; }.rail-privacy i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #5b9f69; }
.prompt-stage { position: relative; display: flex; flex-direction: column; min-width: 0; padding: clamp(28px, 4vw, 54px); background: var(--paper-2); }.stage-kicker { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font: 800 10px monospace; letter-spacing: .13em; }.stage-kicker-tools { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }.stage-kicker-tools > span { color: #4d8d62; }.text-prompt-toggle { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 15px; border: 1px solid var(--ink); color: var(--ink); background: white; box-shadow: 4px 4px 0 #dfe5d1; cursor: pointer; font: 900 13px/1 monospace; letter-spacing: .035em; transition: color .18s, border-color .18s, background .18s, transform .18s, box-shadow .18s; }.text-prompt-toggle[hidden] { display: none; }.text-prompt-toggle i { width: 11px; height: 11px; border: 2px solid currentColor; border-radius: 50%; }.text-prompt-toggle:hover { color: var(--ink); border-color: var(--ink); background: var(--acid); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }.text-prompt-toggle:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }.text-prompt-toggle.is-active { color: white; border-color: var(--ink); background: var(--ink); box-shadow: 4px 4px 0 var(--acid); }.text-prompt-toggle.is-active i { border-color: var(--acid); background: var(--acid); }.video-panel { position: relative; aspect-ratio: 16/8.4; margin: 24px 0 22px; color: white; background: #06131b; overflow: hidden; box-shadow: 8px 8px 0 var(--sky); }.video-panel video { width: 100%; height: 100%; object-fit: contain; }.video-overlay { position: absolute; inset: 0; display: flex; align-items: end; justify-content: space-between; padding: 20px; pointer-events: none; background: linear-gradient(transparent 55%, rgba(4,13,19,.82)); }.video-overlay span { font: 800 10px monospace; letter-spacing: .12em; }.video-overlay button { padding: 10px 14px; color: var(--ink); border: 0; background: var(--acid); cursor: pointer; pointer-events: auto; font-weight: 900; }.video-panel.is-playing .video-overlay button { opacity: 0; pointer-events: none; }.question-paper { flex: 1; min-height: 260px; display: flex; flex-direction: column; justify-content: center; margin: 24px 0; padding: clamp(28px, 5vw, 70px); border: 1px solid var(--ink); background: white; box-shadow: 10px 10px 0 #e2ded4; }.question-paper[hidden] { display: none; }.video-panel:not([hidden]) + .question-paper { flex: none; min-height: 190px; margin-top: 0; padding: 30px 40px; }.question-paper > span { color: #c34229; font: 800 10px monospace; letter-spacing: .14em; }.question-paper h2 { max-width: 830px; margin: 22px 0 0; font: 700 clamp(29px, 3.3vw, 48px)/1.18 Georgia, "Songti SC", serif; letter-spacing: -.025em; }.video-panel:not([hidden]) + .question-paper h2 { font-size: clamp(24px, 2.5vw, 35px); }.cue-points { margin: 24px 0 0; padding: 20px 0 0 20px; border-top: 1px solid var(--line); color: #465b65; line-height: 1.75; }.prep-panel { display: flex; align-items: center; gap: 24px; margin: -10px 0 22px; padding: 17px 20px; color: white; background: var(--ink); }.prep-panel div { min-width: 105px; }.prep-panel span { display: block; color: var(--acid); font: 800 9px monospace; letter-spacing: .1em; }.prep-panel strong { font: 700 25px monospace; }.prep-panel p { margin: 0; color: #c2d0d6; font-size: 12px; }.prep-panel button { margin-left: auto; padding: 9px 12px; color: white; border: 1px solid rgba(255,255,255,.3); background: transparent; cursor: pointer; font-size: 11px; }.stage-tip { display: flex; gap: 20px; padding: 14px 17px; background: #edf4e0; font-size: 12px; }.stage-tip b { white-space: nowrap; }.stage-tip span { color: #55646a; }.stage-nav { display: flex; justify-content: space-between; margin-top: 20px; }.stage-nav button { padding: 10px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; cursor: pointer; font-weight: 800; }.stage-nav button:disabled { opacity: .3; cursor: default; }
.recorder-console { padding: 30px 26px; color: white; background: var(--ink-2); }.console-head { display: flex; justify-content: space-between; color: #b6c9d1; font: 800 10px monospace; letter-spacing: .12em; }.console-head b { color: var(--acid); }.record-clock { margin: 55px 0 14px; color: white; font: 700 56px/1 monospace; text-align: center; letter-spacing: -.07em; }.recorder-console canvas { display: block; width: 100%; height: 70px; }.record-button { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; color: var(--ink); border: 0; background: var(--acid); cursor: pointer; font-weight: 900; }.record-button i { width: 13px; height: 13px; border-radius: 50%; background: #f04432; }.record-button.is-recording { color: white; background: #e94b37; }.record-button.is-recording i { border-radius: 2px; background: white; }.recorder-message { min-height: 36px; margin: 12px 0 0; color: #9db2bb; font-size: 10px; line-height: 1.5; text-align: center; }.playback-panel { margin-top: 18px; }.playback-panel audio { width: 100%; height: 38px; }.take-actions { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 7px; margin-top: 12px; }.take-actions button, .record-again { min-height: 37px; padding: 7px; color: white; border: 1px solid rgba(255,255,255,.3); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }.take-actions .action-primary { color: var(--ink); border-color: var(--acid); background: var(--acid); }.take-actions button:disabled { opacity: .45; }.record-again { width: 100%; margin-top: 7px; border: 0; color: #b9c8ce; }.console-divider { margin: 30px 0; border-top: 1px solid rgba(255,255,255,.15); }.review-prompt span { color: var(--acid); font: 800 10px monospace; letter-spacing: .1em; }.review-prompt ul { margin: 16px 0 0; padding-left: 17px; color: #c2d0d6; font-size: 11px; line-height: 2; }.library-button { width: 100%; display: flex; justify-content: space-between; margin-top: 26px; padding: 13px; color: white; border: 1px solid rgba(255,255,255,.3); background: transparent; cursor: pointer; }.library-button b { min-width: 22px; padding: 2px 5px; color: var(--ink); background: var(--acid); }
.recording-library, .leave-dialog { color: var(--ink); border: 0; background: var(--paper-2); box-shadow: var(--shadow); }.recording-library::backdrop, .leave-dialog::backdrop { background: rgba(6,19,27,.72); }.recording-library { width: min(760px, calc(100vw - 30px)); max-height: 80vh; padding: 30px; }.library-head { display: flex; justify-content: space-between; }.library-head h2, .leave-dialog h2 { margin: 0; font: 700 36px Georgia, serif; }.library-head > button { width: 40px; height: 40px; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-size: 24px; }.library-notice { padding: 12px; color: #566972; background: #eef3e3; font-size: 11px; }.recording-list { display: grid; gap: 10px; margin-top: 18px; }.recording-item { display: grid; grid-template-columns: 1fr 160px auto; gap: 16px; align-items: center; padding: 15px; border: 1px solid var(--line); }.recording-item h3 { margin: 0 0 5px; font: 700 16px Georgia, serif; }.recording-item p { margin: 0; color: var(--muted); font-size: 10px; }.recording-item audio { width: 160px; height: 34px; }.recording-item-actions { display: flex; gap: 4px; }.recording-item-actions button { padding: 8px; border: 1px solid var(--line); background: white; cursor: pointer; font-size: 10px; }.recording-empty { padding: 55px; border: 1px dashed var(--line); text-align: center; color: var(--muted); }.leave-dialog { width: min(440px, calc(100vw - 30px)); padding: 32px; }.leave-dialog p { color: var(--muted); line-height: 1.7; }.leave-dialog div { display: flex; gap: 10px; margin-top: 22px; }.leave-dialog button, .leave-dialog a { flex: 1; padding: 12px; border: 1px solid var(--ink); text-align: center; text-decoration: none; cursor: pointer; font-weight: 800; }.leave-dialog button { background: white; }.leave-dialog a { color: white; background: var(--ink); }
.library-topic-actions { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 22px; margin: 22px 0 10px; padding: 15px 16px; border: 1px solid var(--ink); background: white; box-shadow: 5px 5px 0 var(--sky); }
.library-topic-actions[hidden] { display: none; }
.library-topic-actions div { min-width: 0; }
.library-topic-actions div span { display: block; margin-bottom: 6px; color: #72838b; font: 800 9px monospace; letter-spacing: .13em; }
.library-topic-actions div strong { display: block; overflow: hidden; font: 700 16px Georgia, "Songti SC", serif; text-overflow: ellipsis; white-space: nowrap; }
.library-topic-actions button { min-width: 170px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 14px; border: 1px solid var(--ink); color: var(--ink); background: var(--acid); cursor: pointer; font-weight: 900; }
.library-topic-actions button b { font: 800 9px monospace; letter-spacing: .08em; }
.library-topic-actions button:disabled { cursor: wait; opacity: .6; }
.batch-download-status { min-height: 16px; margin: 0 0 9px; color: #566972; font-size: 10px; line-height: 1.5; }
@media (max-width: 1100px) { .practice-header { grid-template-columns: 200px 1fr 200px; }.practice-layout { grid-template-columns: 220px 1fr; }.recorder-console { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }.console-head, .record-clock, .recorder-console canvas, .record-button, .recorder-message, .playback-panel { grid-column: 1; }.console-divider, .review-prompt, .library-button { grid-column: 2; }.console-divider { margin-top: -190px; } }
@media (max-width: 760px) { .practice-header { grid-template-columns: 1fr auto; height: 60px; }.practice-progress { position: absolute; top: 60px; left: 0; right: 0; }.practice-header-meta span { display: none; }.practice-layout { display: flex; flex-direction: column; }.question-rail { border-right: 0; padding: 24px 20px 14px; }.question-rail h1 { margin: 18px 0 8px; }.question-list, .rail-button, .rail-privacy, .rail-heading b { display: none; }.prompt-stage { padding: 28px 20px; }.question-paper { min-height: 290px; padding: 28px; }.question-paper h2 { font-size: 30px; }.video-panel { margin-top: 22px; }.recorder-console { display: block; padding: 30px 22px; }.console-divider { margin: 30px 0; }.record-clock { margin-top: 38px; }.recording-item { grid-template-columns: 1fr; }.recording-item audio { width: 100%; }.prep-panel { align-items: start; flex-wrap: wrap; }.prep-panel button { margin-left: 0; } }
@media (max-width: 760px) { .stage-kicker { align-items: flex-start; }.stage-kicker-tools { flex-direction: column-reverse; align-items: flex-end; gap: 8px; }.text-prompt-toggle { white-space: nowrap; } }
@media (max-width: 760px) { .recording-library { padding: 22px 18px; }.library-topic-actions { grid-template-columns: 1fr; }.library-topic-actions button { width: 100%; }.library-head h2 { font-size: 32px; } }

/* Recording library selection */
.library-selection-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin-top: 16px; padding: 10px 12px; color: white; background: var(--ink); }
.library-selection-bar[hidden] { display: none; }
.library-select-all { display: inline-flex; align-items: center; gap: 9px; min-height: 34px; cursor: pointer; font: 800 11px monospace; letter-spacing: .06em; }
.library-select-all input, .recording-select input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.library-select-all i, .recording-select i { position: relative; display: inline-block; width: 18px; height: 18px; border: 1px solid currentColor; background: transparent; }
.library-select-all input:focus-visible + i, .recording-select input:focus-visible + i { outline: 3px solid var(--sky); outline-offset: 2px; }
.library-select-all input:checked + i, .library-select-all input:indeterminate + i, .recording-select input:checked + i { color: var(--ink); border-color: var(--acid); background: var(--acid); }
.library-select-all input:checked + i::after, .recording-select input:checked + i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.library-select-all input:indeterminate + i::after { content: ""; position: absolute; left: 4px; right: 4px; top: 8px; border-top: 2px solid currentColor; }
.library-selection-count { display: flex; align-items: baseline; gap: 6px; color: #b9c9cf; font-size: 10px; }
.library-selection-count strong { color: var(--acid); font: 700 20px/1 Georgia, serif; }
.library-selection-actions { display: flex; gap: 7px; }
.library-selection-actions button { min-height: 34px; padding: 7px 12px; color: var(--ink); border: 1px solid white; background: white; cursor: pointer; font-size: 10px; font-weight: 900; }
.library-selection-actions button.is-danger { color: white; border-color: #d55c48; background: transparent; }
.library-selection-actions button:not(:disabled):hover { color: var(--ink); border-color: var(--acid); background: var(--acid); }
.library-selection-actions button:disabled { opacity: .35; cursor: default; }
.recording-item { grid-template-columns: 24px 1fr 160px auto; transition: border-color .15s, background .15s, box-shadow .15s; }
.recording-item.is-selected { border-color: var(--ink); background: #f8f9e9; box-shadow: inset 4px 0 0 var(--acid); }
.recording-select { align-self: stretch; display: flex; align-items: center; justify-content: center; color: #74848a; cursor: pointer; }
.recording-select:hover { color: var(--ink); }

@media (max-width: 760px) { .library-selection-bar { grid-template-columns: auto 1fr; }.library-selection-actions { grid-column: 1 / -1; }.library-selection-actions button { flex: 1; }.recording-item { grid-template-columns: 24px 1fr; }.recording-item audio, .recording-item-actions { grid-column: 2; }.recording-item audio { width: 100%; } }

/* Full-topic progression */
.question-list li.is-locked { cursor: not-allowed; opacity: .42; }
.question-list li.is-locked::after { content: "·"; position: absolute; right: 11px; color: #8b999f; }
.recording-library, .leave-dialog, .session-complete { color: var(--ink); border: 0; background: var(--paper-2); box-shadow: var(--shadow); }
.session-complete::backdrop { background: rgba(6,19,27,.78); }
.session-complete { position: relative; width: min(560px, calc(100vw - 30px)); padding: 44px; overflow: hidden; }
.session-complete::before { content: ""; position: absolute; z-index: -1; width: 210px; height: 210px; right: -90px; top: -90px; border: 35px solid var(--acid); border-radius: 50%; opacity: .75; }
.session-complete .eyebrow { color: #587112; }
.session-complete h2 { max-width: 420px; margin: 0; font: 700 44px/1.05 Georgia, "Songti SC", serif; }
.complete-stamp { position: absolute; right: 28px; bottom: 32px; padding: 7px 10px; color: #55680b; border: 2px solid #718916; transform: rotate(-6deg); font: 900 10px monospace; letter-spacing: .08em; }
.complete-score { display: flex; align-items: end; gap: 16px; margin: 32px 0 13px; padding: 20px; color: white; background: var(--ink); }
.complete-score strong { color: var(--acid); font: 700 38px/1 monospace; }
.complete-score span { max-width: 190px; color: #c8d5da; font-size: 11px; line-height: 1.5; }
.complete-topic { color: var(--muted); }
.complete-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 28px; }
.complete-actions button { min-height: 46px; border: 1px solid var(--ink); background: white; cursor: pointer; font-weight: 900; }
.complete-actions button:last-child { color: var(--ink); background: var(--acid); }
.session-complete > a { display: inline-block; margin-top: 20px; color: var(--muted); font-size: 11px; }
@media (max-width: 520px) { .session-complete { padding: 34px 24px; }.session-complete h2 { font-size: 40px; }.complete-actions { grid-template-columns: 1fr; }.complete-stamp { display: none; } }
