/* =========================================================
   SPEAK / LAB — editorial exam studio
   ========================================================= */

:root {
  --bg: #0b0d0c;
  --bg2: #111511;
  --card: #141915;
  --card2: #1a201b;
  --ink: #f2efe4;
  --muted: #979d92;
  --line: rgba(242, 239, 228, .12);
  --line-strong: rgba(242, 239, 228, .26);
  --lime: #d8ff4f;
  --lime-soft: rgba(216, 255, 79, .12);
  --coral: #ff7a59;
  --coral-soft: rgba(255, 122, 89, .12);
  --gold: #e6c36a;
  --btn-bg: #d8ff4f;
  --btn-ink: #11150e;
  --ticket-bg: #e9e3d2;
  --ticket-ink: #141712;
  --paper-bg: #f1ecdc;
  --paper-ink: #161a14;
  --bg-glass: rgba(11, 13, 12, .84);
  --shadow: 0 28px 70px rgba(0, 0, 0, .38);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", "Songti SC", serif;
  --sans: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  --r: 20px;
}

html[data-theme="light"] {
  --bg: #f2efe4;
  --bg2: #eae6d8;
  --card: #faf7ec;
  --card2: #f0ecdf;
  --ink: #151814;
  --muted: #63685e;
  --line: rgba(21, 24, 20, .14);
  --line-strong: rgba(21, 24, 20, .32);
  --lime: #6f8f00;
  --lime-soft: rgba(111, 143, 0, .13);
  --coral: #cf4f30;
  --coral-soft: rgba(207, 79, 48, .11);
  --gold: #8a6a00;
  --btn-bg: #171b15;
  --btn-ink: #f4f1e6;
  --ticket-bg: #171b15;
  --ticket-ink: #f1ecdc;
  --bg-glass: rgba(242, 239, 228, .86);
  --shadow: 0 26px 60px rgba(48, 44, 30, .16);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 82% 4%, rgba(216, 255, 79, .085), transparent 62%),
    radial-gradient(55vw 55vw at 4% 80%, rgba(255, 122, 89, .06), transparent 60%);
}

html[data-theme="light"] body::before {
  background:
    radial-gradient(60vw 60vw at 82% 4%, rgba(111, 143, 0, .13), transparent 62%),
    radial-gradient(55vw 55vw at 4% 80%, rgba(207, 79, 48, .07), transparent 60%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: .035;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html[data-theme="light"] .grain { opacity: .05; }

::selection { background: var(--lime); color: #11150e; }

a { color: inherit; }

button, input, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; }

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--btn-bg);
  color: var(--btn-ink);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: var(--bg-glass);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.topbar-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--lime); padding: 0 2px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 11px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: var(--bg2); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
  transform: translateX(-50%);
}

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.exam-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  height: 36px;
  padding: 0 13px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  transition: border-color .2s;
  white-space: nowrap;
}
.exam-chip:hover { border-color: var(--line-strong); }
.exam-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-soft);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: border-color .2s, background .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--bg2); transform: rotate(8deg); }

/* ---------- layout ---------- */

#view {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px 90px;
  outline: none;
}
#view.view-enter > * { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }

.site-foot {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 28px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- shared ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  flex: none;
}
.eyebrow.plain::before { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 21px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s, filter .18s, background .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--bg2); }
.btn-danger { background: transparent; color: var(--coral); border-color: var(--coral); }
.btn-danger:hover { background: var(--coral); color: #1a0f0b; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 12px; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}
.link-btn:hover { color: var(--ink); border-color: var(--ink); }

.tag, .mode-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 54px 0 34px;
  flex-wrap: wrap;
}
.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.025em;
  margin: 0 0 14px;
}
.page-head h1 em { font-style: italic; color: var(--lime); }
.page-desc { max-width: 620px; color: var(--muted); font-size: 14.5px; margin: 0; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  padding: 22px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.card-head h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.card-head span { font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: .08em; }

.empty {
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  padding: 44px 24px;
  text-align: center;
  color: var(--muted);
}
.empty strong { display: block; font-family: var(--serif); font-size: 24px; color: var(--ink); font-weight: 400; margin-bottom: 6px; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  align-items: center;
  gap: 60px;
  min-height: 540px;
  padding: 70px 0 56px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(58px, 7.6vw, 102px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.04em;
  margin: 18px 0 26px;
}
.hero h1 em { font-style: italic; color: var(--lime); }
.lede { max-width: 520px; color: var(--muted); font-size: 16.5px; line-height: 1.75; margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-top: 30px; }
.hero-sub { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.hero-sub .link-btn { font-size: 9.5px; }
.micro {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 18px 0 0;
}
.micro::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  flex: none;
}

.ticket {
  position: relative;
  width: min(100%, 360px);
  margin-left: auto;
  background: var(--ticket-bg);
  color: var(--ticket-ink);
  border-radius: 16px;
  padding: 24px 28px 20px;
  transform: rotate(2.2deg);
  box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  cursor: pointer;
  user-select: none;
}
.ticket:hover { transform: rotate(0deg) translateY(-4px); }
.ticket:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.ticket::before, .ticket::after {
  content: "";
  position: absolute;
  top: 58%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  transform: translateY(-50%);
}
.ticket::before { left: -10px; }
.ticket::after { right: -10px; }
.ticket-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  border-bottom: 1px dashed rgba(20, 23, 18, .3);
  padding-bottom: 13px;
}
.ticket-days {
  font-family: var(--serif);
  font-size: clamp(84px, 9vw, 116px);
  line-height: .95;
  letter-spacing: -.05em;
  margin: 14px 0 6px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.ticket-days small { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; opacity: .7; }
.ticket-date { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; opacity: .75; }
.ticket-barcode {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 32px;
  margin: 16px 0 12px;
  overflow: hidden;
  opacity: .8;
}
.ticket-barcode i { display: block; width: 2px; background: currentColor; flex: none; }
.ticket-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  border-top: 1px dashed rgba(20, 23, 18, .3);
  padding-top: 11px;
  opacity: .75;
}

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 6px;
}
.stat { padding: 21px 26px; border-right: 1px solid var(--line); min-width: 0; }
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 7px;
}
.stat b small { font-size: 14px; color: var(--muted); margin-left: 3px; }
.stat span { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- sections / mode cards ---------- */

.section { margin-top: 64px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
}
.section-head h2 em { font-style: italic; color: var(--lime); }
.section-head p { margin: 0; color: var(--muted); font-size: 13px; max-width: 420px; }
.section-head .link-btn { margin-bottom: 5px; }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 218px;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(155deg, var(--card), transparent 115%);
  color: inherit;
  text-align: left;
  overflow: hidden;
  transition: border-color .22s, transform .22s, background .22s;
}
.mode-card::before {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--lime-soft), transparent 68%);
  opacity: 0;
  transition: opacity .25s;
}
.mode-card:hover { border-color: var(--lime); transform: translateY(-3px); }
.mode-card:hover::before { opacity: 1; }

.mode-feature {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background:
    radial-gradient(120% 180% at 0% 0%, var(--lime-soft), transparent 55%),
    linear-gradient(120deg, var(--card), transparent 80%);
  color: inherit;
  text-align: left;
  overflow: hidden;
  transition: border-color .22s, transform .22s, background .22s;
}
.mode-feature:hover { border-color: var(--lime); transform: translateY(-2px); }
.mf-main { display: flex; align-items: flex-start; gap: 20px; min-width: 0; }
.mf-main .mode-num { padding-top: 5px; flex: none; }
.mode-feature h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 0;
}
.mode-feature h3 span {
  display: block;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .16em;
  color: var(--muted);
  margin-top: 7px;
}
.mode-feature p { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin: 9px 0 0; max-width: 560px; }
.mf-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  flex: none;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .06em;
  color: var(--muted);
}
.mf-meta span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; white-space: nowrap; }
.mf-meta .mode-arrow { border: 0; padding: 0 0 0 4px; font-size: 16px; }
.mode-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mode-num { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.mode-arrow { font-size: 15px; color: var(--muted); transition: color .2s, transform .2s; }
.mode-card:hover .mode-arrow { color: var(--lime); transform: translate(2px, -2px); }
.mode-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: auto 0 0;
}
.mode-card h3 span {
  display: block;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .16em;
  color: var(--muted);
  margin-top: 7px;
}
.mode-card p { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin: 11px 0 16px; }
.mode-meta {
  display: flex;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 11px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .06em;
  color: var(--muted);
  margin-top: auto;
}

.ticker {
  margin-top: 58px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 15px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-in {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.ticker span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  white-space: nowrap;
}
.ticker span::after { content: "✳"; font-style: normal; font-size: 9px; margin-left: 38px; color: var(--lime); }

.home-lower {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: start;
}

.recent { display: flex; flex-direction: column; }
.recent-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto 62px;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.recent-row:first-child { border-top: 1px solid var(--line); }
.recent-mode { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.recent-label { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-meta { font-family: var(--mono); font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.recent-score {
  justify-self: end;
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--muted);
}
.recent-score.hot { color: var(--btn-ink); background: var(--lime); border-color: var(--lime); }

.advice { display: grid; gap: 10px; }
.advice-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  background: var(--card);
}
.advice-item b { font-family: var(--mono); font-size: 10px; color: var(--lime); font-weight: 400; padding-top: 2px; }
.advice-item h3 { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; }
.advice-item p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ---------- practice ---------- */

.practice { padding-top: 26px; }
.practice-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: border-color .2s, background .2s;
  flex: none;
}
.back-btn:hover { border-color: var(--line-strong); background: var(--bg2); }
.practice-head { min-width: 0; flex: 1; }
.practice-head .eyebrow { margin: 0 0 3px; }
.practice-head h1 { font-family: var(--serif); font-size: 24px; font-weight: 400; margin: 0; line-height: 1.2; }
.practice-progress { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.segments { display: flex; gap: 4px; }
.segments i { width: 20px; height: 3px; border-radius: 2px; background: var(--line); }
.segments i.done { background: var(--ink); opacity: .45; }
.segments i.on { background: var(--lime); }

.practice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 16px;
  align-items: start;
}

.prompt-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  padding: 30px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
}
.prompt-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.prompt-text {
  font-family: var(--serif);
  font-size: clamp(27px, 2.9vw, 39px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.018em;
  margin: 20px 0 14px;
}
.prompt-zh { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin: 0; }
.cue-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 9px; }
.cue-list li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.cue-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  flex: none;
  margin-top: 8px;
}
.prompt-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11.5px;
  color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}
.chip-btn:hover { color: var(--ink); border-color: var(--line-strong); background: var(--bg2); }
.phrase-drawer { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.phrase-drawer[hidden] { display: none; }
.hint-drawer {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg2);
  padding: 12px 15px;
}
.hint-drawer[hidden] { display: none; }
.hint-drawer h4 {
  margin: 0 0 7px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.hint-drawer ol { margin: 0; padding-left: 17px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.phrase-chip {
  border: 1px solid var(--line);
  background: var(--bg2);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  color: var(--muted);
  transition: color .2s, border-color .2s;
}
.phrase-chip:hover { color: var(--ink); border-color: var(--lime); }

.notes-wrap { margin-top: 16px; }
.notes-wrap label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.notes {
  width: 100%;
  min-height: 64px;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  resize: vertical;
  line-height: 1.6;
}
.notes::placeholder { color: var(--muted); opacity: .65; }

.console {
  position: sticky;
  top: 84px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  padding: 24px 26px 22px;
  text-align: center;
}
.console-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.phase-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--ink);
}
.phase-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.phase-pill.prep::before { background: var(--gold); }
.phase-pill.speaking::before { background: var(--coral); animation: pulse 1.1s infinite; }
.phase-pill.done::before { background: var(--muted); }

.timer {
  position: relative;
  width: min(300px, 82%);
  aspect-ratio: 1;
  margin: 16px auto 6px;
}
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 2; }
.ring-fg {
  fill: none;
  stroke: var(--lime);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke .25s;
}
.console.speaking .ring-fg { stroke: var(--coral); }
.console.prep .ring-fg { stroke: var(--gold); }
.console.warn .ring-fg { stroke: var(--coral); }
.timer-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#timerText {
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 66px);
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
#timerLabel {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.wave { display: block; width: 100%; height: 54px; margin: 2px 0 8px; }
.live-stats {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}
.live-stats > div { padding: 0 18px; border-right: 1px solid var(--line); min-width: 66px; }
.live-stats > div:last-child { border-right: 0; }
.live-stats b { display: block; font-family: var(--mono); font-size: 16px; font-weight: 500; line-height: 1.3; }
.live-stats span { font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.live-caption {
  min-height: 62px;
  max-height: 108px;
  overflow: auto;
  margin: 13px 0;
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--bg2);
  text-align: left;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.live-caption .interim { color: var(--ink); }
.live-caption .ghost { opacity: .7; }
.caret {
  display: inline-block;
  width: 5px;
  height: 13px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--lime);
  animation: blink 1s steps(1) infinite;
}
.console-actions { display: flex; flex-direction: column; gap: 8px; }
.console-hint {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .05em;
  color: var(--muted);
}
.notice {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 122, 89, .3);
  background: var(--coral-soft);
  color: var(--coral);
  font-size: 11.5px;
  line-height: 1.55;
  text-align: left;
}
.notice[hidden] { display: none; }

.spinner {
  width: 26px;
  height: 26px;
  border: 2px solid var(--line);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 14px;
}
.finishing-box { padding: 46px 0 30px; }
.finishing-box p { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- review ---------- */

.review { padding-top: 6px; }
.review-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.score-hero {
  display: flex;
  align-items: center;
  gap: clamp(26px, 5vw, 64px);
  padding: 20px 0 34px;
  border-bottom: 1px solid var(--line);
}
.score-big {
  font-family: var(--serif);
  font-size: clamp(92px, 12vw, 144px);
  line-height: .82;
  letter-spacing: -.06em;
  color: var(--lime);
  white-space: nowrap;
}
.score-big.na {
  font-size: clamp(40px, 6vw, 62px);
  color: var(--muted);
  letter-spacing: -.03em;
  line-height: 1.15;
  padding: 18px 0 8px;
}
.score-big small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
  margin-left: 10px;
  vertical-align: top;
}
.score-copy { max-width: 680px; }
.score-copy h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 4px 0 9px;
}
.score-copy p { margin: 0; color: var(--muted); font-size: 13.5px; }
.score-copy .disclaimer { font-family: var(--mono); font-size: 9px; margin-top: 12px; letter-spacing: .03em; opacity: .75; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.metric { padding: 18px 20px 20px; border-right: 1px solid var(--line); min-width: 0; }
.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; }
.metric-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.metric-label { font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.metric-val { font-family: var(--mono); font-size: 11.5px; }
.metric-bar { height: 3px; border-radius: 2px; background: var(--line); margin: 11px 0 8px; overflow: hidden; }
.metric-bar i { display: block; height: 100%; background: var(--lime); border-radius: 2px; }
.metric-note { font-size: 10.5px; color: var(--muted); line-height: 1.5; }

.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.review-grid .span-2 { grid-column: span 2; }

.tips-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.tips-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}
.tips-list li b { font-family: var(--mono); font-size: 9px; color: var(--coral); font-weight: 400; padding-top: 2px; }

.grammar-item { padding-left: 12px; border-left: 2px solid var(--coral); margin-bottom: 15px; }
.grammar-item:last-child { margin-bottom: 0; }
.grammar-item .wrong { margin: 0; font-size: 12.5px; color: var(--coral); text-decoration: line-through; text-decoration-thickness: 1px; }
.grammar-item .right { margin: 4px 0 3px; font-size: 12.5px; }
.grammar-item .note { margin: 0; font-size: 11px; color: var(--muted); }
.good-note { font-size: 12.5px; color: var(--muted); margin: 0; }
.good-note strong { color: var(--ink); font-weight: 600; }

.transcript-text {
  font-size: 13.5px;
  line-height: 1.8;
  max-height: 240px;
  overflow: auto;
  padding-right: 4px;
}
.transcript-text mark { background: var(--coral-soft); color: var(--coral); padding: 1px 3px; border-radius: 4px; }
.audio-row { margin-top: 12px; }
.audio-row audio { width: 100%; height: 34px; }

.sample-text { font-family: var(--serif); font-size: 18.5px; line-height: 1.72; }
.sample-text .sent { cursor: pointer; border-radius: 3px; transition: background .18s; }
.sample-text .sent:hover { background: var(--bg2); }
.sample-text .sent.speaking { background: var(--lime-soft); box-shadow: 0 0 0 2px var(--lime-soft); }
.outline { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.outline h4 { margin: 0 0 7px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.outline ol { margin: 0; padding-left: 17px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.chips .phrase-chip { font-size: 10.5px; }

.followup-list { display: grid; gap: 7px; }
.followup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.followup-row:last-child { border-bottom: 0; }
.followup-row span { color: var(--muted); }
.followup-row button {
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}
.followup-row button:hover { color: var(--lime); border-color: var(--lime); }

.self-card .self-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.self-card .self-row:last-of-type { border-bottom: 0; }
.self-row span { font-size: 12.5px; color: var(--muted); }
.self-scale { display: flex; gap: 4px; }
.self-scale button {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}
.self-scale button.on { background: var(--lime); border-color: var(--lime); color: #11150e; }
.self-card .btn { margin-top: 14px; }

.review-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.review-actions .right { display: flex; gap: 9px; flex-wrap: wrap; }

/* ---------- mock ---------- */

.exam-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.exam-card {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 18px;
  transition: border-color .2s, transform .2s, background .2s;
  min-height: 150px;
}
.exam-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.exam-card.on { border-color: var(--lime); background: linear-gradient(155deg, var(--lime-soft), var(--card) 70%); }
.exam-card .num { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--muted); }
.exam-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; margin: 24px 0 3px; line-height: 1.1; }
.exam-card .en { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; color: var(--muted); margin-bottom: 9px; }
.exam-card p { font-size: 11.5px; color: var(--muted); line-height: 1.55; margin: 0; }

.mock-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; margin-top: 30px; }
.mock-timeline { border-top: 1px solid var(--line); margin-top: 12px; }
.mock-part {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.mock-part .n { font-family: var(--mono); font-size: 9px; color: var(--muted); }
.mock-part .t { font-size: 13px; }
.mock-part .t small { display: block; color: var(--muted); font-size: 10.5px; margin-top: 2px; }
.mock-part .d { font-family: var(--mono); font-size: 9px; color: var(--muted); white-space: nowrap; }
.mock-note {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--bg2);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 20px;
}
.mock-note b { color: var(--ink); font-weight: 600; }

.part-done { max-width: 640px; margin: 8vh auto 6vh; text-align: center; }
.stamp {
  display: inline-block;
  border: 1px solid var(--lime);
  color: var(--lime);
  border-radius: 6px;
  padding: 7px 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  transform: rotate(-4deg);
  margin-bottom: 26px;
}
.part-done h1 { font-family: var(--serif); font-size: clamp(42px, 6vw, 72px); font-weight: 400; line-height: .95; margin: 8px 0 16px; letter-spacing: -.03em; }
.part-done p { color: var(--muted); font-size: 13.5px; margin: 0 auto 8px; max-width: 460px; }
.part-done .actions { margin-top: 28px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.summary-hero { display: flex; align-items: flex-end; gap: 40px; padding: 30px 0 34px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.summary-hero h1 { font-family: var(--serif); font-size: clamp(42px, 6vw, 76px); font-weight: 400; line-height: .94; letter-spacing: -.035em; margin: 6px 0 0; }
.summary-hero h1 em { color: var(--lime); font-style: italic; }
.summary-score { margin-left: auto; text-align: right; }
.summary-score b { display: block; font-family: var(--serif); font-size: 92px; line-height: .8; color: var(--lime); font-weight: 400; letter-spacing: -.05em; }
.summary-score span { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--muted); }
.summary-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.summary-stats > div { padding: 17px 20px; border-right: 1px solid var(--line); }
.summary-stats > div:first-child { padding-left: 0; }
.summary-stats > div:last-child { border-right: 0; }
.summary-stats b { display: block; font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1.1; }
.summary-stats span { font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.part-results { display: grid; gap: 10px; margin-top: 24px; }
.part-result { display: grid; grid-template-columns: 34px minmax(0, 1fr) 90px; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.part-result .n { font-family: var(--mono); font-size: 9px; color: var(--muted); padding-top: 3px; }
.part-result h4 { margin: 0 0 3px; font-size: 13.5px; font-weight: 600; }
.part-result .prompt { margin: 0 0 7px; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.part-result .meta { font-family: var(--mono); font-size: 8.5px; color: var(--muted); letter-spacing: .04em; }
.part-result .score { justify-self: end; font-family: var(--serif); font-size: 30px; line-height: 1; }
.part-result details { margin-top: 7px; }
.part-result summary { cursor: pointer; font-family: var(--mono); font-size: 8.5px; color: var(--muted); letter-spacing: .06em; }
.part-result details p { margin: 7px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.65; }
.part-result audio { width: 100%; height: 30px; margin-top: 7px; }
.summary-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.weakness {
  margin-top: 24px;
  border: 1px solid var(--lime);
  border-radius: 16px;
  padding: 18px 22px;
  background: var(--lime-soft);
}
.weakness .eyebrow { margin-bottom: 6px; }
.weakness p { margin: 0; font-size: 13px; color: var(--muted); }
.weakness strong { color: var(--ink); font-weight: 600; }

/* ---------- read / shadowing ---------- */

.read-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}
.read-guide div { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--card); }
.read-guide b { font-family: var(--mono); font-size: 9px; color: var(--lime); font-weight: 400; letter-spacing: .1em; }
.read-guide h3 { margin: 7px 0 4px; font-size: 13px; font-weight: 600; }
.read-guide p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.6; }

.read-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.read-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 20px;
  text-align: left;
  transition: border-color .2s, transform .2s;
}
.read-card:hover { border-color: var(--lime); transform: translateY(-2px); }
.read-card .top { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 8.5px; color: var(--muted); letter-spacing: .08em; }
.read-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.1; margin: 18px 0 3px; }
.read-card .zh { color: var(--muted); font-size: 11.5px; margin: 0 0 14px; }
.read-card .bottom { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 11px; font-family: var(--mono); font-size: 8.5px; color: var(--muted); }
.read-card .best { color: var(--lime); }

.read-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 16px; align-items: start; }
.passage-card { border: 1px solid var(--line); border-radius: 24px; background: var(--card); padding: clamp(24px, 3.2vw, 40px); }
.passage-card .passage-meta { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.passage-text { font-family: var(--serif); font-size: clamp(19px, 2.2vw, 26px); line-height: 1.9; letter-spacing: .002em; }
.passage-text .rw { cursor: pointer; border-radius: 3px; transition: background .15s, color .15s; }
.passage-text .rw:hover { background: var(--lime-soft); }
.passage-text .rw.miss { color: var(--coral); text-decoration: underline wavy; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.passage-text .rw.sub { color: var(--gold); text-decoration: underline dotted; text-underline-offset: 4px; }
.passage-text .rsent { border-radius: 5px; transition: background .2s; }
.passage-text .rsent.speaking { background: var(--lime-soft); }

.read-side { position: sticky; top: 84px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); padding: 22px; }
.read-side .eyebrow { margin-bottom: 14px; }
.read-clock { font-family: var(--serif); font-size: 54px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.read-clock small { font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: .06em; margin-left: 8px; }
.read-clock-label { font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 7px 0 16px; }
.read-wave { width: 100%; height: 48px; display: block; margin-bottom: 12px; }
.read-caption { min-height: 54px; max-height: 90px; overflow: auto; background: var(--bg2); border-radius: 10px; padding: 9px 11px; font-size: 11.5px; color: var(--muted); margin-bottom: 12px; }
.read-actions { display: grid; gap: 8px; }
.read-tips { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.read-tips h4 { margin: 0 0 9px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.read-tip { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.read-tip:last-child { border-bottom: 0; }
.read-tip b { font-size: 12px; font-weight: 500; }
.read-tip em { font-family: var(--mono); font-style: normal; font-size: 9px; color: var(--lime); }
.read-tip p { margin: 2px 0 0; font-size: 10.5px; color: var(--muted); line-height: 1.5; }

.read-result .read-score { display: flex; align-items: flex-end; gap: 10px; }
.read-score b { font-family: var(--serif); font-size: 92px; line-height: .8; color: var(--lime); font-weight: 400; letter-spacing: -.05em; }
.read-score span { font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: .08em; padding-bottom: 6px; }
.read-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 16px 0; }
.read-metrics div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.read-metrics div:nth-last-child(-n+2) { border-bottom: 0; }
.read-metrics b { display: block; font-family: var(--mono); font-size: 13px; font-weight: 500; }
.read-metrics span { font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.read-pace { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.read-pace strong { color: var(--ink); }
.missed-list { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 14px; }
.missed-list button { border: 1px solid var(--line); background: var(--bg2); border-radius: 999px; padding: 4px 9px; font-size: 10px; color: var(--muted); }
.missed-list button:hover { color: var(--ink); border-color: var(--coral); }
.read-audio audio { width: 100%; height: 32px; }
.read-self { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.read-self .self-scale button { width: 24px; height: 24px; }

/* ---------- read aloud ---------- */

.ra-ladder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 24px 0 18px;
}
.ra-level-btn {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 13px 15px;
  text-align: left;
  color: inherit;
  transition: border-color .2s, background .2s, transform .2s;
}
.ra-level-btn:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.ra-level-btn.on { border-color: var(--lime); background: var(--lime-soft); }
.ra-level-btn b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.1; }
.ra-level-btn b em { font-family: var(--mono); font-style: normal; font-size: 9px; letter-spacing: .08em; color: var(--lime); margin-right: 4px; }
.ra-level-btn span { display: block; margin-top: 4px; font-family: var(--mono); font-size: 8px; letter-spacing: .04em; color: var(--muted); line-height: 1.5; }

.ra-card { position: relative; }
.ra-card.lv1 { border-left: 2px solid var(--lime); }
.ra-card.lv2 { border-left: 2px solid var(--gold); }
.ra-card.lv3 { border-left: 2px solid var(--coral); }
.ra-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px 7px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .06em;
}
.ra-badge.lv1 { color: var(--lime); }
.ra-badge.lv2 { color: var(--gold); }
.ra-badge.lv3 { color: var(--coral); }

.ra-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.ra-step {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  padding: 10px 13px;
  opacity: .5;
  transition: opacity .2s, border-color .2s;
}
.ra-step b { font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: .08em; }
.ra-step span { font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.ra-step span small { display: block; font-family: var(--mono); font-size: 7.5px; letter-spacing: .08em; margin-top: 3px; opacity: .8; }
.ra-step.on { opacity: 1; border-color: var(--lime); }
.ra-step.on b { color: var(--lime); }
.ra-step.on span { color: var(--ink); }
.ra-step.done { opacity: .8; }
.ra-step.done b { color: var(--lime); }

.ra-bar { height: 4px; border-radius: 999px; background: var(--bg2); overflow: hidden; margin: 13px 0 4px; }
.ra-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--lime); transition: width .2s linear; }
.read-clock.warn { color: var(--coral); }
.ra-hint { margin: 2px 0 0; font-size: 10px; color: var(--muted); text-align: center; line-height: 1.5; }
.ra-result .read-metrics { grid-template-columns: 1fr 1fr; }
.ra-side .read-clock { font-size: 48px; }

/* ---------- android / mobile setup ---------- */

.site-foot .foot-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.site-foot .foot-link:hover { color: var(--lime); border-color: var(--lime); }

.m-status {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 4px 0 14px;
  background: var(--card);
}
.m-status.ok { border-color: color-mix(in srgb, var(--lime) 55%, var(--line)); background: linear-gradient(120deg, var(--lime-soft), transparent 70%); }
.m-status.warn { border-color: color-mix(in srgb, var(--coral) 55%, var(--line)); background: linear-gradient(120deg, color-mix(in srgb, var(--coral) 8%, transparent), transparent 70%); }
.m-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }
.m-status.warn .m-dot { background: var(--coral); box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 14%, transparent); }
.m-status b { display: block; font-size: 15px; font-weight: 600; }
.m-status p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; max-width: 720px; }
.m-device { margin-left: auto; flex: none; font-family: var(--mono); font-size: 8px; letter-spacing: .12em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; }

.m-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 30px; }
.m-facts div { padding: 13px 15px; border-right: 1px solid var(--line); background: var(--card); }
.m-facts div:last-child { border-right: 0; }
.m-facts span { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-bottom: 5px; }
.m-facts b { font-size: 11.5px; font-weight: 500; word-break: break-all; }

.m-panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 22px 24px; margin-bottom: 18px; }
.m-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.m-panel-head h2 { margin: 5px 0 0; font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -.01em; }
.m-tag { flex: none; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; border: 1px solid currentColor; border-radius: 999px; padding: 4px 8px; }
.m-tag.ok { color: var(--lime); }
.m-tag.warn { color: var(--coral); }

.m-url-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.m-url-row code { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); padding: 11px 13px; font-family: var(--mono); font-size: 12px; word-break: break-all; }
.m-qr-wrap { display: flex; align-items: center; gap: 16px; margin-top: 15px; }
.m-qr-wrap svg { width: 136px; height: 136px; flex: none; background: #fff; padding: 7px; border-radius: 10px; }
.m-qr-wrap > span { font-size: 12px; line-height: 1.6; color: var(--muted); }
.m-qr-wrap small { font-family: var(--mono); font-size: 8px; letter-spacing: .04em; }
.m-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.m-note b { color: var(--ink); font-weight: 500; }

.m-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.m-method { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 20px; min-width: 0; }
.m-method.best { border-color: color-mix(in srgb, var(--lime) 50%, var(--line)); background: linear-gradient(150deg, var(--lime-soft), var(--card) 45%); }
.m-method-head { display: flex; gap: 11px; align-items: flex-start; }
.m-num { font-family: var(--mono); font-size: 9px; color: var(--lime); padding-top: 3px; flex: none; }
.m-method-head > div { flex: 1; min-width: 0; }
.m-method h3 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.15; }
.m-method h3 em { font-style: normal; font-family: var(--sans); font-size: 9px; letter-spacing: .08em; color: var(--lime); vertical-align: super; }
.m-method-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.m-steps { margin: 15px 0 12px; padding-left: 17px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.m-steps li { margin-bottom: 5px; }
.m-steps code, .m-steps b { color: var(--ink); font-weight: 500; }
.m-steps code { font-family: var(--mono); font-size: 10px; }
.m-code { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); padding: 8px 9px 8px 11px; min-width: 0; max-width: 100%; }
.m-code code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-family: var(--mono); font-size: 9.5px; color: var(--ink); scrollbar-width: none; }
.m-code code::-webkit-scrollbar { display: none; }
.m-copy { flex: none; border: 1px solid var(--line); border-radius: 7px; background: var(--card); color: var(--muted); font-size: 10px; padding: 4px 8px; }
.m-copy:hover { color: var(--lime); border-color: var(--lime); }
.m-panel.tips { margin-top: 0; }
.m-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.m-tips div { border-top: 1px solid var(--line); padding: 13px 0; }
.m-tips b { display: block; font-size: 12.5px; font-weight: 600; }
.m-tips p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.m-footnote { border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.m-footnote b { color: var(--ink); font-weight: 500; }

/* mobile exam dock */
.mobile-dock { display: none; }
.md-bar { display: block; height: 3px; border-radius: 999px; background: var(--bg2); overflow: hidden; margin-top: 5px; }
.md-bar em { display: block; height: 100%; background: var(--lime); border-radius: inherit; transition: width .2s linear; }
.md-rec { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); margin-right: 6px; vertical-align: 1px; animation: recpulse 1.1s infinite; }
@keyframes recpulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- topics ---------- */

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11.5px;
  color: var(--muted);
  transition: border-color .2s, background .2s, color .2s;
}
.filter:hover { border-color: var(--line-strong); color: var(--ink); }
.filter.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.search {
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 9px 15px;
  font-size: 12px;
}
.search::placeholder { color: var(--muted); opacity: .8; }

.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.topic-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  padding: 20px;
  min-height: 250px;
  transition: border-color .2s, transform .2s;
}
.topic-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.topic-card .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.topic-card .idx { font-family: var(--mono); font-size: 9px; color: var(--muted); }
.topic-card h3 { font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.15; margin: 18px 0 3px; }
.topic-card .zh { color: var(--muted); font-size: 11.5px; margin: 0 0 10px; }
.topic-card .prompt { color: var(--muted); font-size: 11.5px; line-height: 1.65; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.topic-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.topic-card .time { font-family: var(--mono); font-size: 8.5px; color: var(--muted); letter-spacing: .06em; }
.topic-card .btn { font-size: 11px; min-height: 32px; }

/* ---------- phrases ---------- */

.spotlight {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--card), transparent);
  padding: 26px 30px;
  margin-bottom: 26px;
  overflow: hidden;
}
.spotlight::before { content: "“"; position: absolute; right: 130px; top: -30px; font-family: var(--serif); font-size: 180px; color: var(--lime); opacity: .12; line-height: 1; }
.spotlight .en { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); line-height: 1.28; margin: 6px 0 4px; letter-spacing: -.01em; }
.spotlight .zh { color: var(--muted); font-size: 12.5px; margin: 0; }
.spotlight .note { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; margin-top: 7px; }
.spotlight .actions { display: flex; flex-direction: column; gap: 7px; }

.phrase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.phrase-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 18px 48px 16px 18px;
  transition: border-color .2s;
}
.phrase-card:hover { border-color: var(--line-strong); }
.phrase-card .en { font-family: var(--serif); font-size: 18.5px; line-height: 1.4; margin: 0 0 5px; }
.phrase-card .zh { color: var(--muted); font-size: 11.5px; margin: 0; }
.phrase-card .note { color: var(--muted); font-family: var(--mono); font-size: 8.5px; letter-spacing: .03em; margin-top: 6px; opacity: .8; }
.speak-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 12px;
  transition: color .2s, border-color .2s, background .2s;
}
.speak-btn:hover { color: var(--btn-ink); background: var(--lime); border-color: var(--lime); }
.speak-btn.wide { position: static; width: auto; border-radius: 999px; padding: 0 13px; height: 34px; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; }

/* ---------- intro builder ---------- */

.intro-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.form-card { border: 1px solid var(--line); border-radius: 20px; background: var(--card); padding: 24px; }
.form-card h2 { font-family: var(--serif); font-size: 27px; font-weight: 400; margin: 0 0 4px; }
.form-card > p { color: var(--muted); font-size: 11.5px; margin: 0 0 20px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 13px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px; }
.field.span-2 { grid-column: span 2; }
.field label { font-family: var(--mono); font-size: 8.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg2);
  color: var(--ink);
  padding: 9px 11px;
  font-size: 12.5px;
  line-height: 1.5;
}
.field textarea { min-height: 62px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .65; }

.paper {
  position: relative;
  background: var(--paper-bg);
  color: var(--paper-ink);
  border-radius: 18px;
  padding: 30px 32px 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(transparent 0 33px, rgba(20, 23, 18, .055) 33px 34px);
  pointer-events: none;
}
.paper-top { position: relative; display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 8px; letter-spacing: .12em; opacity: .6; border-bottom: 1px solid rgba(20, 23, 18, .22); padding-bottom: 10px; margin-bottom: 18px; }
.paper-text { position: relative; font-family: var(--serif); font-size: 18.5px; line-height: 1.85; min-height: 300px; }
.paper-text .sent { cursor: pointer; border-radius: 3px; transition: background .18s; }
.paper-text .sent:hover { background: rgba(111, 143, 0, .13); }
.paper-text .sent.speaking { background: rgba(216, 255, 79, .5); }
.paper-foot { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid rgba(20, 23, 18, .22); margin-top: 20px; padding-top: 12px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .06em; opacity: .72; flex-wrap: wrap; }
.paper-foot b { font-weight: 600; }
.paper-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------- records ---------- */

.record-summary { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.record-summary > div { padding: 18px 22px; border-right: 1px solid var(--line); }
.record-summary > div:first-child { padding-left: 0; }
.record-summary > div:last-child { border-right: 0; }
.record-summary b { display: block; font-family: var(--serif); font-size: 32px; font-weight: 400; line-height: 1.1; }
.record-summary span { font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.chart-wrap { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 20px 22px 16px; margin-top: 24px; }
.chart-head { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 16px; border-bottom: 1px solid var(--line); }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.bar .bar-val { font-family: var(--mono); font-size: 8px; color: var(--muted); opacity: 0; transition: opacity .2s; }
.bar:hover .bar-val { opacity: 1; }
.bar i { display: block; width: 100%; max-width: 44px; max-height: calc(100% - 26px); min-height: 2px; border-radius: 4px 4px 0 0; background: var(--lime); opacity: .82; transition: height .5s cubic-bezier(.2, .7, .2, 1); }
.bar.today i { background: var(--coral); opacity: 1; }
.bar span { font-family: var(--mono); font-size: 8px; color: var(--muted); padding-top: 4px; white-space: nowrap; }
.chart-labels { display: flex; gap: 8px; }
.chart-labels span { flex: 1; text-align: center; font-family: var(--mono); font-size: 8px; color: var(--muted); padding-top: 6px; }

.record-list { margin-top: 24px; }
.record-head { display: grid; grid-template-columns: 112px minmax(0, 1fr) 74px 64px 48px 24px; gap: 12px; padding: 0 0 9px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.record-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 74px 64px 48px 24px; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.record-row .date { font-family: var(--mono); font-size: 9px; color: var(--muted); }
.record-row .label { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-row .label small { display: block; font-family: var(--mono); font-size: 8px; color: var(--muted); letter-spacing: .04em; margin-top: 1px; }
.record-row .mode { font-family: var(--mono); font-size: 8.5px; color: var(--muted); }
.record-row .dur { font-family: var(--mono); font-size: 9px; color: var(--muted); }
.record-row .score { justify-self: end; font-family: var(--mono); font-size: 11px; }
.record-row .score.hi { color: var(--lime); }
.record-row .del { justify-self: end; background: none; border: 0; color: var(--muted); font-size: 13px; padding: 4px; opacity: .55; }
.record-row .del:hover { color: var(--coral); opacity: 1; }
.record-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- modal / toast ---------- */

.modal-root { position: fixed; inset: 0; z-index: 120; display: none; }
.modal-root.open { display: grid; place-items: center; padding: 22px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); animation: fade .2s both; }
.modal {
  position: relative;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 26px 28px 24px;
  animation: modalIn .28s cubic-bezier(.2, .7, .2, 1) both;
}
.modal.wide { width: min(720px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.modal-head h2 { font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -.02em; }
.modal-head .eyebrow { margin-bottom: 7px; }
.modal-close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 16px; line-height: 1; flex: none; }
.modal-close:hover { border-color: var(--line-strong); background: var(--bg2); }
.modal p { color: var(--muted); font-size: 13px; }
.modal-actions { display: flex; gap: 9px; justify-content: flex-end; flex-wrap: wrap; margin-top: 22px; }
.modal-section { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.modal-section h3 { margin: 0 0 10px; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.modal input[type="date"], .modal select, .modal input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg2);
  color: var(--ink);
  padding: 11px 12px;
  font-size: 13px;
}
.modal .row { display: flex; gap: 10px; align-items: center; }
.modal .row > * { flex: 1; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--lime); }
.range-row output { font-family: var(--mono); font-size: 11px; width: 38px; text-align: right; }
.field-inline { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.field-inline:last-child { border-bottom: 0; }
.field-inline label { font-size: 12.5px; }
.field-inline small { display: block; color: var(--muted); font-size: 10px; }

.check-list { display: grid; gap: 7px; margin-top: 12px; }
.check-row { display: flex; align-items: flex-start; gap: 9px; font-size: 11.5px; color: var(--muted); }
.check-row .ico { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 10px; flex: none; margin-top: 1px; }
.check-row.ok .ico { background: var(--lime); border-color: var(--lime); color: #11150e; }
.check-row.bad .ico { background: var(--coral); border-color: var(--coral); color: #1a0f0b; }
.check-row.warn .ico { border-color: var(--gold); color: var(--gold); }
.check-row b { color: var(--ink); font-weight: 500; }
.check-meter { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 10px; }
.check-meter i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .1s; }

.emergency-group { margin-top: 16px; }
.emergency-group h4 { font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 7px; font-weight: 400; }
.emergency-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.emergency-line p { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 16px; line-height: 1.4; }
.emergency-line small { display: block; font-family: var(--sans); font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.emergency-note { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; font-size: 11.5px; color: var(--muted); line-height: 1.65; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- animations ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .hero { gap: 38px; }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .exam-grid { grid-template-columns: repeat(3, 1fr); }
  .practice-grid { grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr); }
  .practice-grid .prompt-card { padding: 24px; }
}

@media (max-width: 960px) {
  .topbar-in { gap: 18px; padding: 0 20px; }
  .nav { overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  #view { padding: 0 20px 70px; }
  .site-foot { padding: 24px 20px 34px; }
  .hero { grid-template-columns: 1fr; gap: 38px; padding: 48px 0 44px; min-height: 0; }
  .ticket { margin: 0 auto; width: min(100%, 390px); }
  .practice-grid { grid-template-columns: 1fr; }
  .console { position: static; }
  .timer { width: min(280px, 74%); }
  .prompt-card { min-height: 0; }
  .prompt-tools { margin-top: 24px; }
  .home-lower { grid-template-columns: 1fr; gap: 34px; }
  .read-layout { grid-template-columns: 1fr; }
  .read-side { position: static; }
  .intro-layout { grid-template-columns: 1fr; }
  .mock-layout { grid-template-columns: 1fr; gap: 26px; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .review-grid .span-2 { grid-column: auto; }
  .read-guide { grid-template-columns: 1fr; }
  .exam-grid { grid-template-columns: repeat(2, 1fr); }
  .ra-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-methods { grid-template-columns: 1fr; }
  .m-facts { grid-template-columns: 1fr 1fr; }
  .m-facts div:nth-child(2n) { border-right: 0; }
  .m-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .topbar-in { height: 60px; padding: 0 16px; gap: 12px; }
  .brand { font-size: 14px; }
  .nav { gap: 0; flex: 1; }
  .nav a { padding: 7px 8px; font-size: 12px; }
  .exam-chip { display: none; }
  .icon-btn { width: 34px; height: 34px; }
  #view { padding: 0 16px 64px; }
  .site-foot { padding: 22px 16px 32px; font-size: 8.5px; }
  .hero { padding-top: 38px; }
  .hero h1 { font-size: clamp(54px, 15vw, 76px); }
  .lede { font-size: 15px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--line); padding: 16px 14px; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .stat b { font-size: 29px; }
  .modes { grid-template-columns: 1fr; }
  .mode-card { min-height: 194px; }
  .mode-feature { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .mf-meta { justify-content: flex-start; }
  .ra-steps { grid-template-columns: 1fr; }
  .read-grid { grid-template-columns: 1fr; }
  .section { margin-top: 46px; }
  .section-head { align-items: flex-start; }
  .ticker { margin-top: 42px; }
  .recent-row { grid-template-columns: 60px minmax(0, 1fr) 46px; }
  .recent-row .recent-meta { display: none; }
  .page-head { padding: 38px 0 26px; }
  .page-head h1 { font-size: clamp(38px, 11vw, 54px); }
  .score-hero { gap: 20px; align-items: flex-end; flex-wrap: wrap; padding-bottom: 26px; }
  .score-big { font-size: 86px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { border-bottom: 1px solid var(--line); padding: 14px 14px 16px; }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-last-child(-n+2) { border-bottom: 0; }
  .metric:first-child { padding-left: 14px; }
  .record-summary { grid-template-columns: 1fr 1fr; }
  .record-summary > div { border-bottom: 1px solid var(--line); padding: 14px !important; }
  .record-summary > div:nth-child(2n) { border-right: 0; }
  .record-summary > div:nth-last-child(-n+2) { border-bottom: 0; }
  .summary-hero { gap: 18px; }
  .summary-score { margin-left: 0; text-align: left; }
  .summary-score b { font-size: 66px; }
  .summary-stats { grid-template-columns: 1fr 1fr; }
  .summary-stats > div { border-bottom: 1px solid var(--line); padding: 13px !important; }
  .summary-stats > div:nth-child(2n) { border-right: 0; }
  .summary-stats > div:nth-last-child(-n+2) { border-bottom: 0; }
  .part-result { grid-template-columns: 24px minmax(0, 1fr); }
  .part-result .score { grid-column: 2; justify-self: start; font-size: 24px; }
  .record-head { display: none; }
  .record-row { grid-template-columns: 80px minmax(0, 1fr) 44px 28px; gap: 8px; }
  .record-row .mode, .record-row .dur { display: none; }
  .record-row .date { font-size: 8px; }
  .phrase-grid { grid-template-columns: 1fr; }
  .spotlight { grid-template-columns: 1fr; padding: 22px; }
  .spotlight .actions { flex-direction: row; flex-wrap: wrap; }
  .topic-grid { grid-template-columns: 1fr; }
  .exam-grid { grid-template-columns: 1fr 1fr; }
  .exam-card { min-height: 0; padding: 15px; }
  .exam-card h3 { margin-top: 16px; font-size: 19px; }
  .exam-card p { display: none; }
  .mock-part { grid-template-columns: 26px minmax(0, 1fr); }
  .mock-part .d { grid-column: 2; }
  .practice-head h1 { font-size: 21px; }
  .practice-progress { font-size: 9px; }
  .segments i { width: 14px; }
  .prompt-text { font-size: 27px; }
  .passage-text { font-size: 19px; line-height: 1.85; }
  .field-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: auto; }
  .paper { padding: 24px 22px 20px; }
  .paper-text { font-size: 17px; min-height: 240px; }
  .read-self { flex-wrap: wrap; }
  .modal { padding: 22px 20px; }
  .modal-head h2 { font-size: 26px; }
  .review-actions { align-items: stretch; }
  .review-actions .right { width: 100%; }
  .review-actions .right .btn { flex: 1; }

  .mobile-dock.on {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    align-items: center;
    gap: 14px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line-strong);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .22);
  }
  .md-clock { flex: 1; min-width: 0; }
  .md-clock > span { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
  .md-clock > b { display: block; font-family: var(--mono); font-size: 27px; font-weight: 500; line-height: 1.05; letter-spacing: -.02em; margin-top: 2px; }
  .md-actions { display: flex; gap: 7px; align-items: center; flex: none; }
  .m-dock-btn { border: 1px solid var(--lime); background: var(--lime); color: #11150e; border-radius: 10px; padding: 11px 15px; font-size: 12px; font-weight: 600; white-space: nowrap; }
  .m-dock-btn.ghost { background: transparent; color: var(--muted); border-color: var(--line); }
  .m-dock-btn.stop { background: var(--coral); border-color: var(--coral); color: #1a0d0b; }
  .m-dock-btn:disabled { opacity: .55; }
  #view:has(.mobile-dock.on) { padding-bottom: 120px; }

  .m-status { flex-wrap: wrap; padding: 15px 16px; }
  .m-device { margin-left: 0; order: 3; }
  .m-facts { margin-bottom: 22px; }
  .m-panel { padding: 18px; }
  .m-panel-head { flex-direction: column; gap: 8px; }
  .m-tips { grid-template-columns: 1fr; }
  .m-qr-wrap { align-items: flex-start; }
}

@media (max-width: 480px) {
  .nav a { padding: 6px 6px; font-size: 11.5px; }
  .brand { font-size: 13px; }
  .hero h1 { font-size: 50px; }
  .hero-actions .btn { width: 100%; }
  .hero-sub { row-gap: 8px; }
  .ticket { padding: 20px 22px 18px; }
  .ticket-days { font-size: 90px; }
  .live-stats > div { padding: 0 12px; min-width: 56px; }
  .score-big { font-size: 72px; }
  .score-copy h2 { font-size: 25px; }
  .summary-hero h1 { font-size: 40px; }
  .part-done h1 { font-size: 44px; }
  .modal-root.open { padding: 12px; }
  .ra-ladder { grid-template-columns: 1fr; }
  .m-qr-wrap svg { width: 108px; height: 108px; }
  .m-url-row code { font-size: 10px; }
  .md-clock > b { font-size: 24px; }
  .m-dock-btn { padding: 10px 12px; }
}

@media print {
  .topbar, .site-foot, .grain, .review-actions, .speak-btn, .ticket { display: none !important; }
  body { background: #fff; color: #111; }
  #view { max-width: none; padding: 0; }
  .card, .passage-card { break-inside: avoid; border-color: #ccc; }
}
