/* V2 owns this stylesheet. No legacy reset, Tailwind bundle, or page CSS is loaded.
   Tokens -> layout primitives -> semantic components -> page compositions. */
:root {
  color-scheme: light;
  --v2-bg: #f6f6f6; --v2-brand-bg: #e5e5e5; --v2-surface: #fff; --v2-soft: #eeeeee;
  --v2-text: #252525; --v2-muted: #626262; --v2-border: #d2d2d2;
  --v2-pinyin: var(--v2-muted);
  --v2-accent: #0963b7; --v2-accent-hover: #084e90; --v2-tint: #eaf3fc; --v2-on-accent: #fff;
  --v2-action: #1264c4; --v2-action-hover: #0c519f; --v2-on-action: #fff; --v2-progress-fill: #23864f;
  --v2-success: #276344; --v2-success-bg: #e8f2e8; --v2-error: #9b3e31; --v2-error-bg: #fbede7;
  --v2-practice: #92500f;
  --v2-radius: 4px; --v2-control-radius: 3px; --v2-shadow: 0 24px 70px #24324612;
  --v2-space-1: .25rem; --v2-space-2: .5rem; --v2-space-3: .75rem; --v2-space-4: 1rem;
  --v2-space-5: 1.5rem; --v2-space-6: 2rem; --v2-space-7: 3rem; --v2-space-8: 5rem;
  --v2-gutter: clamp(1rem, 3vw, 2.5rem); --v2-gap: clamp(1rem, 2.4vw, 2rem);
  --v2-container: 1240px; --v2-reading: 760px; --v2-header: 80px;
  --v2-motion: 160ms; --v2-font: "Inter", "Segoe UI", "Noto Sans", system-ui, sans-serif;
  --v2-chinese: "Noto Sans CJK SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark; --v2-bg: #181818; --v2-brand-bg: #26272c; --v2-surface: #222222; --v2-soft: #2c2c2c;
  --v2-text: #f1f1f1; --v2-muted: #b5b5b5; --v2-border: #484848;
  --v2-accent: #68b5ff; --v2-accent-hover: #a1d1ff; --v2-on-accent: #101820; --v2-tint: #213345;
  --v2-progress-fill: #42b878;
  --v2-success: #77d69a; --v2-success-bg: #173827; --v2-error: #ffaba8; --v2-error-bg: #43272e;
  --v2-practice: #f6be72;
  --v2-shadow: 0 24px 70px #0003;
}
.v2, .v2 * { box-sizing: border-box; }
.v2 { margin: 0; background: var(--v2-bg); color: var(--v2-text); font: 400 1rem/1.6 var(--v2-font); -webkit-font-smoothing: antialiased; }
.v2 [hidden] { display: none !important; }
.v2 h1, .v2 h2, .v2 h3, .v2 p { margin: 0; }
.v2 h1, .v2 h2, .v2 h3 { line-height: 1.15; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.v2 h1 { font-size: clamp(2.8rem, 4.6vw, 4.6rem); }
.v2 h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.v2 h3, .v2 .v2-h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.025em; }
.v2 p + p { margin-top: .75rem; }
.v2 a { color: var(--v2-accent); text-underline-offset: .2em; }
.v2 button, .v2 input, .v2 select { font: inherit; }
.v2 button, .v2 a, .v2 input, .v2 select, .v2 summary { -webkit-tap-highlight-color: transparent; }
.v2 :focus-visible { outline: 3px solid var(--v2-accent); outline-offset: 4px; }
.v2 section[id] { scroll-margin-top: calc(var(--v2-header) + 1rem); }
.v2 ::selection { background: var(--v2-accent); color: var(--v2-on-accent); }
.v2 [lang^="zh"] { font-family: var(--v2-chinese); letter-spacing: .025em; }
.v2-container { width: min(100%, calc(var(--v2-container) + 2 * var(--v2-gutter))); padding-inline: var(--v2-gutter); margin-inline: auto; }
.v2-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--v2-gap); }
.v2-grid > * { min-width: 0; }
.v2-span-3, .v2-span-4, .v2-span-6, .v2-span-8 { grid-column: span 4; }
.v2-span-12 { grid-column: 1 / -1; }
.v2-stack { display: flex; flex-direction: column; gap: var(--v2-space-5); }
.v2-fc-tabs { border-bottom: 1px solid var(--v2-border); padding-bottom: 1rem; }
.v2-fc-tabs a { padding: .4rem .75rem; text-decoration: none; }
.v2-fc-tabs a[aria-current="page"] { background: var(--v2-tint); box-shadow: inset 0 -3px var(--v2-accent); color: var(--v2-text); }
.v2-fc-summary { gap: .4rem; }
.v2-fc-flow { scroll-margin-top: calc(var(--v2-header) + env(safe-area-inset-top)); }
.v2-fc-meter { appearance: none; width: 100%; height: 7px; border: 0; background: var(--v2-border); border-radius: 3px; overflow: hidden; }
.v2-fc-meter::-webkit-progress-bar { background: var(--v2-border); }
.v2-fc-meter::-webkit-progress-value { background: var(--v2-progress-fill); }
.v2-fc-meter::-moz-progress-bar { background: var(--v2-progress-fill); }
.v2-fc-sticky { position: sticky; top: var(--v2-header); z-index: 10; padding-block: 1rem; background: var(--v2-bg); gap: .75rem; }
.v2-fc-hanzi { font-size: 2.5rem; }
.v2-fc-pinyin { font-size: 1.4rem; color: var(--v2-pinyin); }
.v2-fc-success { color: var(--v2-success); }
.v2-fc-ratings { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.v2-fc-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .v2-fc-form textarea { background: var(--v2-surface); color: var(--v2-text); border: 1px solid var(--v2-border); padding: .7rem; font: inherit; min-width: 0; max-width: 100%; border-radius: var(--v2-control-radius); }
.v2-fc-form input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--v2-action); }
.v2-fc-word-row { padding-block: .75rem; border-bottom: 1px solid var(--v2-border); overflow-wrap: anywhere; }
.v2-fc-import { margin-top: 1rem; }
.v2-fc-import pre { white-space: pre-wrap; }
@media (max-width: 480px) { .v2-fc-ratings { grid-template-columns: repeat(2, 1fr); } }
.v2-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--v2-space-3); }
.v2-between { justify-content: space-between; }
.v2-muted { color: var(--v2-muted); }
.v2-caption { font-size: .8rem; line-height: 1.5; color: var(--v2-muted); }
.v2-eyebrow { color: var(--v2-accent); font-size: .72rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.v2-page-title { font-size: clamp(2.3rem, 4vw, 3.5rem) !important; }
.v2-lead { font-size: 1.125rem; line-height: 1.85; color: var(--v2-muted); max-width: 49ch; }
.v2-icon { width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
.v2-round-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--v2-tint); color: var(--v2-accent); flex-shrink: 0; }
.v2-button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 46px; max-width: 100%; padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: var(--v2-control-radius); font-size: .875rem; line-height: 1.4; font-weight: 600; text-decoration: none; text-align: center; cursor: pointer; transition: background var(--v2-motion), border-color var(--v2-motion), box-shadow var(--v2-motion); }
.v2 .v2-button--primary { background: var(--v2-action); color: var(--v2-on-action); border-color: var(--v2-action); box-shadow: 0 2px 0 #0002; }
.v2 .v2-button--primary:hover { background: var(--v2-action-hover); }
.v2 .v2-button--secondary { background: transparent; color: var(--v2-text); border-color: var(--v2-border); }
.v2-button--secondary:hover, .v2-button--quiet:hover { background: var(--v2-tint); border-color: var(--v2-accent); }
.v2 .v2-button--quiet { background: transparent; color: var(--v2-accent); }
.v2 .v2-button--danger { background: var(--v2-error-bg); color: var(--v2-error); border-color: var(--v2-error); }
.v2-button:disabled { opacity: .5; cursor: not-allowed; }
.v2-button[aria-busy="true"] { opacity: .75; cursor: progress; }
.v2-badge { display: inline-flex; align-items: center; width: fit-content; padding: .25rem .7rem; border: 1px solid var(--v2-border); border-radius: 100px; font-size: .72rem; font-weight: 600; color: var(--v2-muted); }
.v2-skip { position: fixed; left: 1rem; top: -100px; z-index: 100; padding: .75rem; background: var(--v2-surface); }
.v2-skip:focus { top: 1rem; }
.v2-header { position: sticky; top: 0; z-index: 20; background: var(--v2-brand-bg); border-bottom: 1px solid var(--v2-border); padding-top: env(safe-area-inset-top); }
.v2-header__inner { min-height: var(--v2-header); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.v2 .v2-brand { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.15rem; font-weight: 650; letter-spacing: -.04em; color: var(--v2-text); text-decoration: none; white-space: nowrap; }
.v2-desktop-nav { display: flex; gap: clamp(.75rem, 2vw, 1.6rem); }
.v2 .v2-nav-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--v2-muted); font-size: .82rem; font-weight: 550; text-decoration: none; }
.v2-nav-link:hover, .v2 .v2-nav-link[aria-current="page"] { color: var(--v2-accent); }
.v2-hero { padding-block: clamp(3rem, 6.5vw, 6.5rem); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.v2-hero__copy { display: flex; flex-direction: column; gap: 1.6rem; }
.v2-hero__copy h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.08; letter-spacing: -.05em; }
.v2-hero__copy em { color: var(--v2-accent); font-weight: 400; }
.v2-hero__actions { margin-top: .25rem; }
.v2-hero__visual { padding-top: .5rem; }
.v2-learning-window { border: 1px solid var(--v2-border); border-radius: var(--v2-radius); background: var(--v2-surface); box-shadow: var(--v2-shadow); overflow: hidden; }
.v2-learning-window__top { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--v2-border); }
.v2-learning-window__top .v2-eyebrow { font-size: .62rem; }
.v2-window-lesson { padding: clamp(1.25rem, 3vw, 2.75rem); }
.v2-hanzi-display { font-size: clamp(1.6rem, 2.7vw, 2.3rem); line-height: 1.6; font-weight: 500; margin-block: 1rem .5rem; overflow-wrap: anywhere; }
.v2-pinyin { color: var(--v2-pinyin); font-size: .94rem; letter-spacing: .02em; }
.v2-token-line { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; background: var(--v2-tint); border-radius: var(--v2-control-radius); padding: .8rem 1rem; margin-top: 2rem; font-size: .8rem; color: var(--v2-muted); }
.v2-token-line > :first-child { color: var(--v2-accent); font-size: 1.2rem; }
.v2-window-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.5rem; border-top: 1px solid var(--v2-border); }
.v2-window-bottom strong { display: block; font-size: .8rem; font-weight: 600; }
.v2-window-bottom small { font-size: .7rem; color: var(--v2-muted); }
.v2-icon-link { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--v2-border); border-radius: 50%; }
.v2-number { font-family: Georgia, serif; font-size: 1.2rem; color: var(--v2-accent); }
.v2-section { padding-block: clamp(2.5rem, 5vw, 5rem); }
.v2-section-heading { display: flex; justify-content: space-between; gap: 1.5rem; align-items: end; margin-bottom: 2.5rem; }
.v2-section-heading .v2-eyebrow { margin-bottom: 1rem; }
.v2-section-heading h1 + p { margin-top: 1rem; max-width: 62ch; }
.v2-section-heading > p { flex-shrink: 0; font-size: .85rem; }
.v2-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; border-top: 1px solid var(--v2-border); padding-block: 2.5rem; }
.v2-footer p { font-size: .8rem; color: var(--v2-muted); }
.v2-footer nav a { font-size: .75rem; display: inline-flex; align-items: center; min-height: 44px; }
.v2-panel { padding: clamp(1.1rem, 2.5vw, 2rem); border: 1px solid var(--v2-border); border-radius: var(--v2-radius); background: var(--v2-surface); min-width: 0; }
.v2-panel--tinted { background: var(--v2-tint); }
.v2-panel > * + * { margin-top: 1.25rem; }
.v2-panel__heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.v2-detail-list { margin: 0; font-size: .82rem; }
.v2-detail-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-bottom: 1px solid var(--v2-border); padding-block: .85rem; }
.v2-detail-list dt { color: var(--v2-muted); }
.v2-detail-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.v2-lesson-list { padding: 0; margin: 0; list-style: none; }
.v2-lesson-row { display: flex; align-items: center; gap: 1.1rem; padding-block: 1.25rem; }
.v2-lesson-row + .v2-lesson-row { border-top: 1px solid var(--v2-border); }
.v2-lesson-row h3 { font-size: 1rem; letter-spacing: -.01em; }
.v2-lesson-row p { font-size: .8rem; color: var(--v2-muted); margin-top: .3rem; }
.v2-lesson-row > div { flex: 1; }
.v2-lesson-number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--v2-border); color: var(--v2-muted); font-size: .8rem; flex-shrink: 0; }
.v2-lesson-number--active { color: var(--v2-on-accent); background: var(--v2-accent); border-color: var(--v2-accent); }
.v2-study-layout { max-width: calc(var(--v2-reading) + 2 * var(--v2-gutter)); }
.v2-run.v2-study-layout { max-width: calc(920px + 2 * var(--v2-gutter)); }
.v2-study-top { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.v2-study-context { text-align: center; padding-block: 2rem; }
.v2-study-context > * + * { margin-top: .75rem; }
.v2-study-card { background: var(--v2-surface); border: 1px solid var(--v2-border); border-radius: var(--v2-radius); }
.v2-dialogue { padding: clamp(1.3rem, 4vw, 2.5rem); }
.v2-dialogue__reply { border-top: 1px solid var(--v2-border); padding-top: 1.5rem; margin-top: 1.5rem; }
.v2-exercise { border-top: 1px solid var(--v2-border); padding: clamp(1.3rem, 4vw, 2.5rem); }
.v2-exercise fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.v2-exercise legend { font-weight: 600; font-size: 1.125rem; line-height: 1.5; padding: 0; }
.v2-exercise fieldset > p { font-size: .85rem; margin-top: .6rem; }
.v2-options { margin-block: 1.5rem; gap: .75rem; }
.v2-choice { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--v2-border); border-radius: var(--v2-control-radius); cursor: pointer; font-size: 1.25rem; }
.v2-choice:has(input:checked) { border-color: var(--v2-accent); background: var(--v2-tint); }
.v2-choice input { accent-color: var(--v2-accent); width: 18px; height: 18px; }
.v2-study-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; }
.v2-feedback { padding: 1rem 1.25rem; border-radius: var(--v2-control-radius); border: 1px solid currentColor; font-size: .9rem; }
.v2-feedback--success { color: var(--v2-success); background: var(--v2-success-bg); }
.v2-feedback--error { color: var(--v2-error); background: var(--v2-error-bg); }
.v2-feedback p { margin-top: .4rem; font-size: .85rem; }
.v2-notice { display: flex; align-items: start; gap: .8rem; background: var(--v2-soft); border-radius: var(--v2-control-radius); padding: 1rem; color: var(--v2-muted); font-size: .85rem; }
.v2-workbench { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--v2-gap); align-items: start; }
.v2-workbench__controls { position: sticky; top: calc(var(--v2-header) + 1.5rem); }
.v2-field { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.v2-field label { font-size: .85rem; font-weight: 600; }
.v2-field input, .v2-field select, .v2-field textarea { width: 100%; min-height: 48px; padding: .7rem .8rem; background: var(--v2-surface); border: 1px solid var(--v2-border); border-radius: var(--v2-control-radius); color: var(--v2-text); font: inherit; }
.v2-field textarea { resize: vertical; }
.v2-choice-editor { padding: 1rem; border: 1px solid var(--v2-border); border-radius: var(--v2-radius); }
.v2-token-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; padding-block: .75rem; border-bottom: 1px solid var(--v2-border); }
.v2-field small { color: var(--v2-muted); font-size: .75rem; line-height: 1.5; }
.v2-field input[aria-invalid="true"] { border-color: var(--v2-error); }
.v2-field input[aria-invalid="true"] + small { color: var(--v2-error); }
.v2-grid-example > div { min-height: 70px; display: grid; place-items: center; padding: .75rem; border: 1px dashed var(--v2-accent); background: var(--v2-tint); border-radius: var(--v2-control-radius); color: var(--v2-accent); font-size: .8rem; }
.v2-dialog { width: min(480px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; border: 1px solid var(--v2-border); border-radius: var(--v2-radius); background: var(--v2-surface); color: var(--v2-text); padding: 1.75rem; box-shadow: var(--v2-shadow); }
.v2-dialog::backdrop { background: #101b2a80; }
.v2-dialog__heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.v2-dialog__heading h2 { font-size: 1.6rem; margin-top: .4rem; }
.v2-dialog > .v2-muted { font-size: .85rem; margin-bottom: 1.5rem; }
.v2-dialog__footer { display: flex; justify-content: end; border-top: 1px solid var(--v2-border); padding-top: 1.25rem; margin-top: 1.5rem; }
.v2--app { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
.v2--app .v2-container { max-width: 920px; }
.v2-app-nav { position: fixed; bottom: 0; inset-inline: 0; z-index: 20; display: flex; justify-content: center; gap: 0; padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom)); background: var(--v2-surface); border-top: 1px solid var(--v2-border); }
.v2-app-nav .v2-nav-link { display: flex; flex-direction: column; gap: .15rem; flex: 1; max-width: 140px; min-width: 0; font-size: .7rem; }
.v2-native-tools { position: sticky; top: 0; z-index: 20; display: flex; justify-content: end; padding-block: .3rem; background: var(--v2-brand-bg); border-bottom: 1px solid var(--v2-border); }
@media (min-width: 700px) {
  .v2-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .v2-span-8, .v2-span-4 { grid-column: span 8; }
  .v2-span-6, .v2-span-3 { grid-column: span 4; }
}
@media (min-width: 1080px) {
  .v2-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .v2-span-3 { grid-column: span 3; } .v2-span-4 { grid-column: span 4; }
  .v2-span-6 { grid-column: span 6; } .v2-span-8 { grid-column: span 8; }
}
@media (max-width: 1079px) {
  .v2-desktop-nav { display: none; }
  .v2-hero { gap: 2rem; }
  .v2-hero h1 { font-size: clamp(2.7rem, 4.9vw, 4rem); }
  .v2-section-heading { align-items: start; }
  .v2-workbench { grid-template-columns: 240px minmax(0, 1fr); }
}
@media (max-width: 699px) {
  :root { --v2-header: 68px; }
  .v2-header__inner { gap: .5rem; }
  .v2-header__actions { flex-wrap: nowrap; gap: .35rem; }
  .v2-settings-button { width: 44px; padding-inline: .5rem; }
  .v2-settings-button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .v2 .v2-brand { font-size: 1rem; gap: .4rem; }
  .v2-hero { padding-top: 2.5rem; }
  .v2-hero__copy { gap: 1.25rem; }
  .v2-lead { font-size: 1rem; }
  .v2-section-heading { flex-direction: column; }
  .v2-workbench { grid-template-columns: 1fr; }
  .v2-workbench__controls { position: static; }
  .v2-dialog { width: 100%; max-width: none; max-height: calc(100dvh - 1rem); margin: auto 0 0; border-bottom: 0; border-radius: var(--v2-radius) var(--v2-radius) 0 0; padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)); }
  .v2-lesson-row { gap: .75rem; flex-wrap: wrap; }
  .v2-lesson-row > div { min-width: 130px; }
  .v2-lesson-row > .v2-button { padding-inline: .5rem; }
  .v2-study-top { gap: .5rem; }
  .v2-study-top > .v2-caption { font-size: .6rem; }
  .v2-study-actions > .v2-caption { width: 100%; }
  .v2-study-actions > .v2-button { width: 100%; }
  .v2-window-bottom { padding-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .v2 *, .v2 *::before, .v2 *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* Persistent product navigation and account controls share one menu contract. */
.v2-logo { display: block; width: 142px; height: auto; border-radius: 2px; }
.v2-logo--light { mix-blend-mode: normal; }
.v2-logo--dark { display: none; }
:root[data-theme="dark"] .v2-logo--light { display: none; }
:root[data-theme="dark"] .v2-logo--dark { display: block; }
.v2-header__actions { flex-wrap: nowrap; flex-shrink: 0; }
.v2-menu { position: relative; }
.v2-menu > summary { display: flex; align-items: center; justify-content: center; gap: .5rem; min-width: 44px; min-height: 44px; padding: .5rem .65rem; list-style: none; cursor: pointer; border: 1px solid var(--v2-border); border-radius: var(--v2-control-radius); font-size: .82rem; }
.v2-menu > summary::-webkit-details-marker { display: none; }
.v2-menu > summary:hover, .v2-menu[open] > summary { background: var(--v2-tint); border-color: var(--v2-accent); }
.v2-menu__panel { position: absolute; z-index: 25; right: 0; top: calc(100% + .65rem); width: 272px; max-width: calc(100vw - 2 * var(--v2-gutter)); max-height: calc(100dvh - var(--v2-header) - 2rem); overflow: auto; padding: 1rem; background: var(--v2-surface); border: 1px solid var(--v2-border); border-radius: var(--v2-radius); box-shadow: var(--v2-shadow); }
.v2-menu__panel--site { width: 400px; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.v2--app .v2-menu__panel { max-height: calc(100dvh - var(--v2-header) - 6rem - env(safe-area-inset-bottom)); }
.v2-menu__panel nav { display: flex; flex-direction: column; min-width: 0; }
.v2-menu__panel .v2-nav-link, .v2-menu__panel .v2-button { width: 100%; justify-content: start; border-radius: var(--v2-control-radius); padding: .6rem .65rem; font-size: .85rem; }
.v2-menu__panel .v2-nav-link:hover { background: var(--v2-tint); }
.v2-menu__label { padding: 0 .65rem .4rem; color: var(--v2-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.v2-menu__tools { grid-column: 1 / -1; border-top: 1px solid var(--v2-border); padding-top: .5rem; }
.v2-menu__identity { padding: .25rem .65rem .9rem; border-bottom: 1px solid var(--v2-border); margin-bottom: .5rem; }
.v2-menu__identity strong { display: block; overflow-wrap: anywhere; font-size: .875rem; font-weight: 600; }
.v2-menu__signout { background: transparent; border: 0; font: inherit; cursor: pointer; text-align: left; }
.v2-page-notice { padding-block: .6rem; background: var(--v2-soft); color: var(--v2-muted); font-size: .8rem; }
.v2-breadcrumbs { margin-bottom: 1.75rem; font-size: .8rem; }
.v2-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem 0; list-style: none; margin: 0; padding: 0; }
.v2-breadcrumbs li { display: flex; align-items: center; min-height: 32px; }
.v2-breadcrumbs li + li::before { content: "/"; margin-inline: .6rem; color: var(--v2-muted); }
.v2-breadcrumbs a { display: inline-flex; align-items: center; min-height: 32px; }
.v2-breadcrumbs [aria-current] { color: var(--v2-muted); }
.v2-tabs { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; border-bottom: 1px solid var(--v2-border); margin-bottom: 2rem; }
.v2-tabs [aria-current="page"] { border-bottom: 2px solid var(--v2-accent); }
.v2-admin-tabs { padding-top: 1.25rem; }
.v2-admin-tabs .v2-tabs { margin-bottom: 0; }
.v2-list-heading { margin-bottom: 1rem !important; }
.v2 .v2-destination { display: block; color: var(--v2-text); text-decoration: none; }
.v2-destination:hover { border-color: var(--v2-accent); }
.v2-row-meta { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; color: var(--v2-accent); }
.v2 .v2-content-row { display: flex; align-items: center; gap: 1rem; color: var(--v2-text); text-decoration: none; padding-block: 1rem; }
.v2-content-row + .v2-content-row { border-top: 1px solid var(--v2-border); margin-top: 0; }
.v2-content-row > span:not(.v2-lesson-number):not(.v2-round-icon):not(.v2-caption):not(.v2-row-action) { flex: 1; min-width: 0; }
.v2-content-row > .v2-caption:first-child { flex: 0 0 2.5ch; text-align: right; }
.v2-content-row strong { font-size: 1rem; font-weight: 600; }
.v2-content-row small { display: block; color: var(--v2-muted); margin-top: .3rem; font-size: .82rem; }
a.v2-content-row:hover strong { color: var(--v2-accent); text-decoration: underline; text-underline-offset: .2em; }
.v2-empty { border-block: 1px solid var(--v2-border); padding-block: 2rem; color: var(--v2-muted); }
.v2-empty p { margin-top: .75rem; font-size: .9rem; }
.v2-auth-layout { max-width: 540px; }
.v2-google-signin { width: 100%; }
.v2-google-signin svg { flex-shrink: 0; }
.v2-auth-divider { display: flex; align-items: center; gap: 1rem; color: var(--v2-muted); font-size: .8rem; }
.v2-auth-divider::before, .v2-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--v2-border); }
.v2-check { display: flex; align-items: center; gap: .75rem; min-height: 44px; font-size: .9rem; cursor: pointer; }
.v2-check input { width: 18px; height: 18px; accent-color: var(--v2-accent); }
.v2-after-note { margin-top: 1rem !important; }
.v2-pagination { margin-top: 1.5rem; }
.v2-lesson-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.v2-lesson-navigation [rel="prev"] { justify-self: start; }
.v2-lesson-navigation [rel="next"] { grid-column: 2; justify-self: end; }
.v2-run { padding-block: 1.5rem 2.5rem; }
.v2-run-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.v2-run-heading .v2-caption { flex-shrink: 0; }
.v2-progress { width: 100%; height: 6px; accent-color: var(--v2-accent); margin-block: 1rem 1.5rem; }
.v2-player-content { padding: clamp(1.1rem, 4vw, 2rem); }
.v2-player-content > * + * { margin-top: 1.5rem; }
.v2-fc-section .v2-player-content.v2-stack > * + * { margin-top: 0; }
.v2 .v2-player-prompt { font-size: clamp(1.3rem, 3vw, 1.6rem); line-height: 1.5; letter-spacing: -.02em; }
.v2-audio { display: block; width: 100%; max-width: 100%; min-height: 44px; }
.v2-support { border-block: 1px solid var(--v2-border); padding-block: .65rem; }
.v2-support summary { min-height: 44px; cursor: pointer; padding-block: .55rem; font-size: .9rem; color: var(--v2-accent); }
.v2-support > p, .v2-support > audio { margin-top: .75rem; }
.v2-answer-form > * + * { margin-top: 1.25rem; }
.v2-answer-options { border: 0; padding: 0; min-width: 0; display: grid; gap: .75rem; }
.v2-answer-options legend { margin-bottom: .75rem; }
.v2-answer-options .v2-choice { font-size: 1rem; }
.v2-answer-options .v2-choice [lang^="zh"] { font-size: 1.4rem; }
.v2-run-actions { display: flex; flex-wrap: wrap; gap: .75rem; padding-top: 1.25rem; }
.v2-run-actions .v2-button { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.v2-completion-actions { margin-bottom: 1.25rem; }
.v2-token-bank { display: flex; flex-wrap: wrap; gap: .6rem; padding-block: 1rem; }
.v2-token-answer { min-height: 82px; border-bottom: 2px solid var(--v2-border); margin-bottom: 1rem; }
.v2-answer-parts { display: inline-flex; flex-wrap: wrap; gap: .45rem; margin-block: .4rem; vertical-align: middle; max-width: 100%; }
.v2-answer-part { display: inline-block; border: 1px solid currentColor; border-radius: var(--v2-radius); padding: .4rem .65rem; font-size: 1.1rem; line-height: 1.6; overflow-wrap: anywhere; }
.v2-answer-part.is-in-order { color: var(--v2-success); background: var(--v2-success-bg); }
.v2-answer-part.is-moved { color: var(--v2-error); border-style: dashed; border-width: 2px; }
.v2-answer-part ruby, .v2-builder ruby { ruby-align: center; }
.v2-builder rt, .v2-answer-part rt { font-size: .65em; }
.v2-answer-part.is-in-order rt, .v2-answer-part.is-moved rt { color: inherit; }
.v2-token { font-size: 1.2rem; }
.v2-token-answer .v2-token { background: var(--v2-tint); }
.v2-builder .v2-token:not(:disabled) { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: grab; }
.v2-builder .is-drag-source { opacity: .45; }
.v2-builder .is-drop-before { box-shadow: -4px 0 var(--v2-accent); }
.v2-token-answer.is-drop-end { border-bottom-color: var(--v2-accent); }
.v2-token-source { min-height: 82px; border: 2px dashed var(--v2-border); padding: .75rem; }
.v2-token-source.is-drop-end { border-color: var(--v2-accent); background: var(--v2-tint); }
.v2-builder-drag-token { position: fixed; z-index: 60; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); max-width: min(28rem, 75vw); box-shadow: 0 5px 20px #0004; }
.v2-reading-tokens { line-height: 1.8; }
.v2-reading-tokens [title] { border-bottom: 1px dotted var(--v2-border); }
[data-v2-body-script="traditional"] { display: none; }
:root[data-script="traditional"] [data-v2-body-script="traditional"] { display: block; }
:root[data-script="traditional"] [data-v2-body-script="simplified"] { display: none; }
.v2-review-pinyin { font-size: 1.6rem; }
.v2-review-meaning { font-size: 1.2rem; }
.v2-review-prompt { display: grid; gap: .75rem; padding-block: 1rem; }
.v2-review-prompt, .v2-flip-card { overflow-wrap: anywhere; }
.v2-answer-choice { display: flex; align-items: center; gap: .85rem; width: 100%; text-align: left; font: inherit; color: var(--v2-text); background: var(--v2-surface); cursor: pointer; }
.v2-answer-choice:hover { border-color: var(--v2-accent); background: var(--v2-tint); }
.v2-answer-choice .v2-hanzi-display { font-size: 1.6rem; }
.v2-answer-choice .v2-review-pinyin, .v2-answer-choice .v2-review-meaning { font-size: 1.15rem; }
.v2-option-key { color: var(--v2-muted); font-size: .8rem; min-width: 1rem; }
.v2-previous { margin-top: 1.5rem; font-size: .9rem; }
.v2-previous > * + * { margin-top: .6rem; }
.v2-word-results { padding-left: 1.2rem; line-height: 2; }
.v2-prose { line-height: 1.8; overflow-wrap: anywhere; }
.v2-prose > * { margin-bottom: 1rem; }
.v2-prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: .9rem; }
.v2-prose th, .v2-prose td { padding: .6rem; border: 1px solid var(--v2-border); }
.v2-choice small { display: block; font-size: .8rem; color: var(--v2-muted); }
@keyframes v2-reveal { from { opacity: .65; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 699px) {
  .v2-logo { width: 120px; }
  .v2-account-label { display: none; }
  .v2-menu__panel { position: fixed; inset-inline: var(--v2-gutter); top: calc(var(--v2-header) + env(safe-area-inset-top) + .5rem); width: auto; max-width: none; }
  .v2-menu__panel--site { gap: .5rem; }
  .v2--native .v2-menu__panel { top: calc(52px + env(safe-area-inset-top)); }
  .v2-content-row { flex-wrap: wrap; }
}

/* Shared input, media, and study states. Keep all themes on semantic tokens. */
.v2-settings-button { width: 44px; padding-inline: .5rem; }
.v2 .v2-counterpart { color: var(--v2-muted); border-color: var(--v2-border); }
.v2 .v2-counterpart:hover { color: var(--v2-text); background: var(--v2-soft); border-color: var(--v2-muted); }
.v2 .v2-counterpart[aria-pressed="true"], .v2 .v2-counterpart[aria-pressed="true"]:hover { color: var(--v2-error); background: var(--v2-error-bg); border-color: var(--v2-error); box-shadow: inset 0 -3px 0 var(--v2-error); }
.v2-settings-button > span, .v2-segmented input, .v2-toggle input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.v2-segmented-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.v2-segmented-field legend { margin-bottom: .6rem; font-size: .875rem; font-weight: 600; }
.v2-segmented { display: flex; padding: 3px; border: 1px solid var(--v2-border); border-radius: var(--v2-control-radius); background: var(--v2-soft); }
.v2-segmented label { flex: 1; min-width: 0; position: relative; cursor: pointer; }
.v2-segmented span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem; font-size: .85rem; text-align: center; border-radius: var(--v2-control-radius); }
.v2-segmented input:checked + span { background: var(--v2-tint); color: var(--v2-text); box-shadow: inset 0 -3px var(--v2-accent); font-weight: 600; }
.v2-segmented input:focus-visible + span, .v2-toggle input:focus-visible + span { outline: 3px solid var(--v2-accent); outline-offset: 3px; }
.v2-toggle { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 44px; cursor: pointer; font-size: .875rem; }
.v2-toggle__track { display: block; position: relative; width: 40px; height: 24px; flex: 0 0 40px; border: 1px solid var(--v2-muted); border-radius: 20px; background: var(--v2-soft); transition: background var(--v2-motion); }
.v2-toggle__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--v2-muted); transition: transform var(--v2-motion); }
.v2-toggle input:checked + .v2-toggle__track { background: var(--v2-accent); border-color: var(--v2-accent); }
.v2-toggle input:checked + .v2-toggle__track::after { transform: translateX(16px); background: var(--v2-on-accent); }
.v2-toggle:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.v2-toggle--stacked { flex-direction: column; justify-content: start; gap: .5rem; text-align: center; padding: .3rem; }
.v2-toggle--stacked .v2-toggle__track { flex-basis: 24px; }
.v2-toggle--icon { position: relative; display: inline-flex; flex: 0 0 40px; width: 40px; min-width: 0; min-height: 40px; gap: 0; }
.v2-toggle__icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--v2-border); border-radius: var(--v2-control-radius); color: var(--v2-muted); background: var(--v2-surface); }
.v2-toggle input:checked + .v2-toggle__icon { background: var(--v2-tint); border-color: var(--v2-accent); color: var(--v2-accent); box-shadow: inset 0 -2px var(--v2-accent); }
.v2-toggle--icon:hover .v2-toggle__icon { border-color: var(--v2-accent); }
.v2-audio-player { min-width: 0; }
.v2-audio-player:has(.v2-audio-controls:not([hidden])) > audio { display: none; }
.v2-audio-controls { display: flex; align-items: center; gap: .7rem; padding: .35rem .65rem .35rem .35rem; border: 1px solid var(--v2-border); border-radius: 28px; background: var(--v2-soft); }
.v2-audio-controls input[type="range"] { width: 0; min-width: 0; flex: 1; accent-color: var(--v2-accent); cursor: pointer; height: 32px; }
.v2-audio-time { font-variant-numeric: tabular-nums; }
.v2-audio-play { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; flex-shrink: 0; }
.v2-audio-split { display: inline-flex; flex-shrink: 0; align-items: stretch; }
.v2-audio-split .v2-audio-play { border-radius: 22px 0 0 22px; }
.v2-audio-slow { border-radius: 0 22px 22px 0; border-left: 0; padding-inline: .6rem; width: 44px; min-height: 44px; }
.v2-audio-split [aria-pressed="true"] { background: var(--v2-tint); color: var(--v2-accent); }
.v2-row-body { flex: 1; min-width: 0; }
.v2 .v2-content-row > .v2-row-action { flex: 0 0 auto; margin-left: auto; white-space: nowrap; display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--v2-accent); }
.v2-course-progress { margin-block: .8rem; }
.v2-progress-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem .8rem; font-size: .78rem; color: var(--v2-muted); }
.v2-course-progress .v2-progress { margin-block: .5rem; height: 6px; }
.v2-course-progress.is-complete .v2-progress::-webkit-progress-value { background: var(--v2-success); }
.v2-course-progress.is-complete .v2-progress::-moz-progress-bar { background: var(--v2-success); }
.v2-score { font-variant-numeric: tabular-nums; color: var(--v2-text); }
.v2-activity-frame { display: block; overflow-anchor: none; }
/* First entry keeps the player's footprint while the saved attempt opens. */
.v2-skeleton { display: block; background: var(--v2-border); border-radius: var(--v2-radius); animation: v2-skeleton-pulse 1.6s ease-in-out infinite alternate; }
.v2-skeleton--progress { height: 8px; margin-bottom: .6rem; border-radius: 99px; }
.v2-skeleton--line { width: 65%; height: 14px; }
.v2-skeleton--tools { width: 160px; max-width: 60%; height: 36px; }
.v2-skeleton--control { height: 44px; width: 100%; }
.v2-skeleton--word { width: 88px; height: 16px; margin: .25rem auto; }
.v2-skeleton--character { width: 96px; height: 56px; margin: .3rem auto; }
.v2-skeleton--prompt { width: 55%; height: 48px; margin: 1rem auto; }
.v2-opening-toolbar, .v2-opening-content { display: grid; gap: 1rem; }
.v2-opening-content { min-height: 280px; align-content: space-between; }
.v2-opening-lines { display: grid; gap: 1.25rem; padding-block: 1rem; }
.v2-opening-lines .v2-skeleton { width: 100%; }
.v2-opening-lines .v2-skeleton:nth-child(2n) { width: 85%; }
.v2-opening-lines .v2-skeleton:last-child { width: 60%; }
.v2-opening-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.v2-activity-opening > form { margin: 0; }
@keyframes v2-skeleton-pulse { from { opacity: .4; } to { opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .v2-skeleton { animation: none; opacity: .6; } }
.v2-audio-player--compact { width: fit-content; }
.v2-phonetic-embed { display: inline-flex; align-items: center; gap: .3rem; vertical-align: middle; }
.v2-phonetic-label { white-space: nowrap; color: var(--v2-pinyin); }
.v2-audio-player--compact .v2-audio-controls { border: 0; padding: 0; background: transparent; }
.v2-progress { display: block; height: 8px; appearance: none; border: 0; border-radius: 10px; overflow: hidden; background: var(--v2-border); }
.v2-progress::-webkit-progress-bar { background: var(--v2-border); border-radius: 10px; }
.v2-progress::-webkit-progress-value { background: var(--v2-progress-fill); border-radius: 10px; transition: width var(--v2-motion); }
.v2-progress::-moz-progress-bar { background: var(--v2-progress-fill); border-radius: 10px; }
.v2-flip-card { display: grid; position: relative; width: 100%; border: 1px solid var(--v2-border); border-radius: var(--v2-radius); background: var(--v2-soft); overflow-wrap: anywhere; }
.v2-flip-card.is-revealed { background: var(--v2-tint); }
.v2 .v2-recall-content > * + * { margin-top: 1rem; }
.v2-recall-instruction { color: var(--v2-muted); font-size: .95rem; }
.v2-recall-row { padding: .7rem 1rem; text-align: center; }
.v2-recall-row + .v2-recall-row { border-top: 1px solid var(--v2-border); }
.v2-recall-label { display: block; margin-bottom: .3rem; }
.v2-recall-slot { display: grid; }
.v2-recall-value, .v2-recall-placeholder { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; min-height: 2.75rem; }
.v2-recall-value .v2-pinyin { font-size: 1.2rem; }
.v2-recall-value .v2-hanzi-display { line-height: 1.3; margin: 0; }
.v2-recall-value .v2-review-meaning { margin: 0; }
.v2-recall-blank { width: min(6rem, 60%); border-bottom: 2px solid var(--v2-border); }
.v2-recall-reveal { width: 100%; }
.v2-recall-content .v2-card-ratings { padding-top: 0; }
.v2-recall-rating-prompt { flex-basis: 100%; text-align: center; }
.v2 .is-hidden { visibility: hidden; pointer-events: none; }
.v2-answer-options:has(.v2-answer-choice) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v2-answer-options:has(.v2-picture-answer) { grid-template-columns: minmax(0, 1fr); }
.v2-answer-choice:has(.v2-picture-answer) > .v2-rich-text { flex: 1; }
.v2-answer-choice { overflow-wrap: anywhere; min-width: 0; }
.v2-answer-choice.v2-answer--success, .v2-button.v2-answer--success { background: var(--v2-success-bg); color: var(--v2-success); border-color: var(--v2-success); box-shadow: inset 0 0 0 1px var(--v2-success); }
.v2-answer-choice.v2-answer--error, .v2-button.v2-answer--error { background: var(--v2-error-bg); color: var(--v2-error); border-color: var(--v2-error); box-shadow: inset 0 0 0 1px var(--v2-error); }
.v2-answer--success .v2-option-key, .v2-answer--error .v2-option-key { color: inherit; }
.v2-result-text--success { color: var(--v2-success); }
.v2-result-text--error { color: var(--v2-error); }
.v2-result-text--practice { color: var(--v2-practice); }
.v2-result-text--neutral { color: var(--v2-muted); }
.v2-results-list, .v2-variation-list { list-style: none; padding: 0; margin: 0; }
.v2-result-row { padding-block: 1.1rem; border-top: 1px solid var(--v2-border); font-size: .9rem; overflow-wrap: anywhere; }
.v2-result-row:first-child { padding-top: 0; border-top: 0; }
.v2-result-row:last-child { padding-bottom: 0; }
.v2-result-row > * + * { margin-top: .6rem; }
.v2-result-answers { font-size: .85rem; }
.v2-result-answers p + p { margin-top: .2rem; }
.v2-result-explanation summary { width: fit-content; color: var(--v2-muted); cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: .5rem; }
.v2-result-explanation summary::before { content: "+"; }
.v2-result-explanation[open] summary::before { content: "−"; }
.v2-variation-list > li { padding-block: .65rem; border-top: 1px solid var(--v2-border); }
.v2-variation-list > li:last-child { padding-bottom: 0; }
.v2-variation-list .v2-result-answers { margin-top: .35rem; }
.v2-type-badge { color: var(--v2-accent); background: var(--v2-tint); border-color: transparent; border-radius: var(--v2-control-radius); }
.v2-activity-meta { margin-bottom: .5rem; }
.v2-activity-notes { margin-bottom: 1.25rem; }
.v2-activity-notes > summary { cursor: pointer; min-height: 44px; font-weight: 600; }
.v2-rich-text ruby { ruby-align: center; }
.v2-rich-text rt { font-size: max(.85rem, .6em); font-weight: 400; line-height: 1.45; padding-bottom: .25em; color: var(--v2-pinyin); }
.v2 .v2-player-prompt { line-height: 2.15; }
.v2-answer-choice > .v2-rich-text { font-size: 1.3rem; line-height: 2; padding-block: .25rem; min-width: 0; }
.v2-task-instruction { padding: .85rem 1rem; margin-block: 0 1rem; border-left: 3px solid var(--v2-accent); background: var(--v2-soft); }
.v2-task-instruction p { margin-top: .35rem; font-size: .95rem; line-height: 1.5; }
.v2-context-tabs { display: flex; gap: .25rem; padding: .15rem; margin-bottom: 1rem; border: 1px solid var(--v2-border); border-radius: var(--v2-control-radius); background: var(--v2-soft); }
.v2-context-tabs [role="tab"] { flex: 1; border: 0; border-radius: var(--v2-control-radius); padding: .25rem .6rem; min-height: 36px; color: var(--v2-text); background: transparent; font: inherit; font-size: .875rem; cursor: pointer; }
.v2-context-tabs [aria-selected="true"] { background: var(--v2-tint); color: var(--v2-text); box-shadow: inset 0 -3px var(--v2-accent); font-weight: 600; }
.v2 [role="tabpanel"][hidden] { display: none; }
.v2-results-source { background: var(--v2-soft); padding: 1.25rem; border: 1px solid var(--v2-border); border-radius: var(--v2-radius); }
.v2-results-sentence { font-size: 1.3rem; }
.v2-results-source:has(> .v2-results-passage-line) { gap: 0; padding: 0; background: var(--v2-surface); }
.v2-results-source:has(> .v2-results-passage-line) > h3 { padding: 1.25rem; }
.v2-quiz-passage { font-size: 1.25rem; line-height: 2.3; }
.v2-quiz-audio-line { padding-block: .65rem; border-top: 1px solid var(--v2-border); }
.v2-content[data-pinyin="false"] .v2-rich-text rt { visibility: hidden; }
.v2-result-row .v2-prose > :last-child, .v2-previous .v2-prose > :last-child { margin-bottom: 0; }
.v2-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.is-answering { pointer-events: none; }
.is-answering .is-pressed:not(.v2-answer--success):not(.v2-answer--error) { border-color: var(--v2-accent); box-shadow: inset 0 0 0 1px var(--v2-accent); }
.v2-study-sticky { position: sticky; top: calc(var(--v2-header) + env(safe-area-inset-top)); z-index: 10; padding-block: .6rem; margin-block: .4rem; background: var(--v2-bg); }
.v2-study-sticky .v2-progress { margin: 0 0 .6rem; }
.v2-study-sticky .v2-progress:last-child { margin-bottom: 0; }
.v2-activity-toolbar { position: sticky; top: calc(var(--v2-header) + env(safe-area-inset-top)); z-index: 10; display: flex; flex-wrap: wrap; gap: .1rem 1.2rem; padding: .6rem .85rem; margin-bottom: 1rem; background: var(--v2-surface); border: 1px solid var(--v2-border); border-radius: var(--v2-radius); }
.v2-study-sticky .v2-activity-toolbar { position: static; margin-bottom: 0; }
.v2-activity-toolbar > .v2-toggle:not(.v2-toggle--icon) { min-width: 90px; }
.v2-reader-toolbar { align-items: center; gap: .6rem; min-width: 0; }
.v2-reader-settings-group { display: flex; align-items: center; gap: .2rem; }
.v2-reader-playback { display: flex; align-items: center; gap: 0; padding-inline-start: .35rem; border-inline-start: 1px solid var(--v2-border); }
.v2-compact-control { width: 40px; min-width: 40px; min-height: 40px; padding: .4rem; }
.v2-audio-group-controls { display: inline-flex; align-items: center; gap: .1rem; }
.v2-audio-group-controls > .v2-caption { margin-inline-end: .25rem; }
.v2--native .v2-study-sticky, .v2--native .v2-activity-toolbar { top: calc(52px + env(safe-area-inset-top)); }
.v2-reader-lines { display: grid; gap: 0; background: var(--v2-surface); border: 1px solid var(--v2-border); border-radius: var(--v2-radius); }
.v2-reader-line, .v2-results-passage-line { --v2-reader-inset: clamp(.75rem, 2vw, 1rem); min-width: 0; padding: 0 var(--v2-reader-inset) .7rem; }
.v2-reader-line + .v2-reader-line, .v2-results-passage-line { border-top: 1px solid var(--v2-border); }
.v2-reader-line { scroll-margin-top: calc(var(--v2-header) + env(safe-area-inset-top) + var(--v2-tray-height, 140px) + 1rem); }
.v2--native .v2-reader-line { scroll-margin-top: calc(52px + env(safe-area-inset-top) + var(--v2-tray-height, 140px) + 1rem); }
.v2-reader-line > .v2-audio-player { margin-block: .5rem .7rem; }
.v2-reader-line-heading, .v2-results-passage-line > .v2-reader-speaker { margin-inline: calc(-1 * var(--v2-reader-inset)); padding: .55rem var(--v2-reader-inset); background: var(--v2-soft); }
.v2-reader-lines > .v2-reader-line:first-of-type > .v2-reader-line-heading { border-radius: calc(var(--v2-radius) - 1px) calc(var(--v2-radius) - 1px) 0 0; }
.v2-reader-speaker { display: flex; align-items: center; gap: .6rem; min-width: 0; font-size: 1rem; color: var(--v2-speaker); }
.v2-reader-speaker strong { overflow-wrap: anywhere; }
.v2-reader-avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: color-mix(in srgb, var(--v2-speaker) 12%, var(--v2-surface)); border: 1px solid color-mix(in srgb, var(--v2-speaker) 40%, var(--v2-border)); }
.v2-reader-avatar .v2-icon { width: 24px; height: 24px; }
[data-speaker-tone="teal"] { --v2-speaker: #226c64; }
[data-speaker-tone="amber"] { --v2-speaker: #85580f; }
[data-speaker-tone="violet"] { --v2-speaker: #0963b7; }
[data-speaker-tone="olive"] { --v2-speaker: #586e24; }
:root[data-theme="dark"] [data-speaker-tone="teal"] { --v2-speaker: #93d3c5; }
:root[data-theme="dark"] [data-speaker-tone="amber"] { --v2-speaker: #e5c17b; }
:root[data-theme="dark"] [data-speaker-tone="violet"] { --v2-speaker: #68b5ff; }
:root[data-theme="dark"] [data-speaker-tone="olive"] { --v2-speaker: #c3d88c; }
.v2-reader-line.is-playing { border-color: var(--v2-accent); box-shadow: inset 3px 0 var(--v2-accent); }
.v2-reading-tokens { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .2em; padding-block: .6rem; line-height: 1.6; }
.v2-reading-tokens ruby { ruby-align: center; }
.v2-reading-tokens rt { font-family: var(--v2-font); font-size: max(.85rem, .42em); line-height: 1.45; padding-bottom: .25em; color: var(--v2-pinyin); visibility: hidden; }
.v2-content[data-pinyin="true"] .v2-reading-tokens rt { visibility: visible; }
.v2-content[data-pinyin="false"] .v2-reading-tokens rt { visibility: hidden; }
.v2-reader-translation { display: none; }
[data-controller~="v2-reader"][data-english="true"] .v2-reader-translation { display: block; }
.v2-reader-copy { font-size: clamp(1.3rem, 2.3vw, 1.65rem); gap: .08em; padding-block: .45rem; line-height: 1.6; letter-spacing: 0; }
.v2-content[data-pinyin="false"] .v2-reader-copy rt { display: none; }
.v2-reader-translation { font-size: .9rem; color: var(--v2-muted); margin-bottom: .5rem; }
@media (max-width: 359px) {
  .v2-reader-toolbar { gap: .25rem; }
  .v2-reader-playback { padding-inline-start: .15rem; }
  .v2-reader-settings-group { gap: .1rem; }
}
@media (prefers-reduced-motion: reduce) { .v2 *, .v2 *::after { animation: none !important; transition: none !important; } }

@media (max-width: 539px) { .v2-answer-options:has(.v2-answer-choice) { grid-template-columns: 1fr; } }

/* Activity navigation and grammar notes share one anchored tray. */
.v2-study-toolbar { display: block; padding: .5rem; }
.v2-study-settings { display: flex; align-items: center; gap: .25rem; }
.v2-study-settings > .v2-toggle { margin-inline: .15rem; }
.v2-settings-controls { display: flex; flex-wrap: wrap; flex: 1; padding: 0; margin: 0; }
.v2-activity-controls { display: flex; flex-shrink: 0; gap: .25rem; margin-left: auto; align-self: flex-start; }
.v2-activity-controls .v2-restart-form { margin: 0; }
.v2-study-settings .v2-settings-button { width: 40px; min-height: 40px; padding: .4rem; }
.v2-study-toolbar .v2-context-tabs { margin: .5rem 0 0; }
.v2-run [role="tabpanel"] { scroll-margin-top: calc(var(--v2-header) + env(safe-area-inset-top) + var(--v2-tray-height, 140px) + 1rem); }
.v2--native .v2-run [role="tabpanel"] { scroll-margin-top: calc(52px + env(safe-area-inset-top) + var(--v2-tray-height, 140px) + 1rem); }
.v2-lesson-notes { font-size: 1rem; }
.v2-lesson-notes h1 { font-size: 1.8rem; line-height: 1.6; }
.v2-lesson-notes h2 { font-size: 1.4rem; line-height: 1.5; }
.v2-lesson-notes h3 { font-size: 1.15rem; }
.v2-lesson-notes [data-v2-text] { font-size: 1.25em; }
.v2-lesson-notes rt { font-size: .9rem; }
.v2-lesson-notes table { font-size: 1rem; width: 100%; }
.v2-lesson-notes th, .v2-lesson-notes td { padding: .8rem .7rem; line-height: 2.15; }
.v2-question-source { padding: 1rem; margin-bottom: 1.25rem; border-left: 3px solid var(--v2-accent); background: var(--v2-soft); }
.v2-question-source-text { font-size: 1.6rem; }

.v2-interaction-link { display: grid; gap: .3rem; text-decoration: none; }
.v2-interaction-link strong { color: var(--v2-text); font-size: 1rem; line-height: 1.7; }
.v2-interaction-row { gap: 1rem; align-items: center; }
.v2-interaction-row form { flex: 0 0 auto; }
.v2-editor-section { border: 0; border-top: 1px solid var(--v2-border); padding: 1.25rem 0 0; margin: 0; min-width: 0; }
.v2-reference-picker { gap: .6rem; font-size: .9rem; }
.v2-reference-selection { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; padding: .75rem; border: 1px solid var(--v2-border); background: var(--v2-soft); border-radius: var(--v2-control-radius); }
.v2-reference-selection small { grid-column: 1; color: var(--v2-muted); overflow-wrap: anywhere; }
.v2-reference-selection button { grid-column: 2; grid-row: 1 / 3; }
.v2-reference-picker summary { min-height: 44px; cursor: pointer; padding-block: .5rem; color: var(--v2-accent); }
.v2-reference-search { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: .75rem; margin-bottom: .5rem; }
.v2-reference-results { list-style: none; margin: .5rem 0 0; padding: 0; max-height: 320px; overflow: auto; }
.v2-reference-results button { display: grid; gap: .25rem; width: 100%; text-align: left; font: inherit; padding: .75rem; color: var(--v2-text); border: 1px solid var(--v2-border); background: var(--v2-surface); cursor: pointer; }
.v2-reference-results button:hover { background: var(--v2-soft); }
.v2-reference-results span, .v2-reference-results small { font-size: .8rem; color: var(--v2-muted); overflow-wrap: anywhere; }
@media (max-width: 539px) { .v2-reference-search { grid-template-columns: 1fr; } }

/* Release navigation: Learn and a shared Practice disclosure in every shell. */
.v2-menu__panel--site { width: 260px; grid-template-columns: 1fr; }
.v2-navigation-group { position: relative; }
.v2-navigation-group > summary { list-style: none; cursor: pointer; user-select: none; }
.v2-navigation-group > summary::-webkit-details-marker { display: none; }
.v2-navigation-group > summary > .v2-icon:last-child { width: 1rem; height: 1rem; margin-left: auto; transition: transform .15s; }
.v2-navigation-group[open] > summary > .v2-icon:last-child { transform: rotate(90deg); }
.v2-navigation-group.is-active > summary { color: var(--v2-accent); }
.v2-navigation-group > summary:focus-visible { outline: 2px solid var(--v2-accent); outline-offset: 2px; }
.v2-navigation-group__links { display: grid; gap: .15rem; padding-left: .8rem; margin-left: .65rem; border-left: 1px solid var(--v2-border); }
.v2-menu__panel .v2-navigation-group > summary { display: flex; width: 100%; padding-inline: .65rem; }
.v2-menu__panel .v2-navigation-group__links .v2-nav-link { padding-inline: .65rem; }
.v2-app-nav > .v2-navigation-group { flex: 1; max-width: 140px; min-width: 0; }
.v2-app-nav .v2-navigation-group > summary { max-width: none; }
.v2-app-nav .v2-navigation-group > summary > .v2-icon:last-child { display: none; }
.v2-app-nav .v2-navigation-group__links { position: absolute; bottom: calc(100% + .75rem); left: 50%; width: max-content; min-width: 180px; max-width: calc(100vw - 2rem); transform: translateX(-50%); margin: 0; padding: .5rem; border: 1px solid var(--v2-border); border-radius: var(--v2-control-radius); background: var(--v2-surface); box-shadow: 0 .5rem 1.5rem rgb(0 0 0 / .14); }
.v2-app-nav .v2-navigation-group__links .v2-nav-link { flex-direction: row; justify-content: start; max-width: none; padding-inline: .5rem; gap: .6rem; font-size: .82rem; }
.v2-navigation-group__links .v2-nav-link[aria-current="page"] { color: var(--v2-accent); background: var(--v2-tint); }
.v2-edition-note { display: flex; flex-wrap: wrap; gap: .4rem; padding-top: .8rem; font-size: .8rem; color: var(--v2-muted); }
.v2-edition-switch { background: none; border: 0; color: var(--v2-accent); text-decoration: underline; font: inherit; cursor: pointer; padding: .5rem; }
@media (max-width: 600px) {
  .v2-header .v2-logo { width: 104px; }
  .v2-app-nav .v2-nav-link { padding-inline: .25rem; }
  .v2-menu__panel--site { position: fixed; right: var(--v2-gutter); top: calc(var(--v2-header) + .5rem); }
}

@media (max-width: 359px) { .v2-header .v2-logo { width: 80px; } }

/* Book-first catalog and compact, freely selectable lesson activities. */
.v2-text-button { border: 0; padding: .2rem; background: none; color: var(--v2-accent); font: inherit; text-decoration: underline; cursor: pointer; }
.v2-catalog-standard { max-width: 24rem; display: grid; gap: .5rem; }
.v2-catalog-standard .button_to { margin: 0; }
.v2 [data-v2-course-choice][aria-pressed="true"] { background: var(--v2-tint); border-color: var(--v2-accent); color: var(--v2-accent); box-shadow: inset 0 -3px var(--v2-accent); }
.v2-course-table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: left; }
.v2-course-table th, .v2-course-table td { padding: .5rem 1rem; border-bottom: 1px solid var(--v2-border); }
.v2-course-table th:first-child { padding-left: 0; }
.v2-course-table th:last-child, .v2-course-table td:last-child { padding-right: 0; }
.v2-course-table thead th { font-size: .78rem; color: var(--v2-muted); font-weight: 500; }
.v2-course-table th[scope="rowgroup"] { width: 35%; vertical-align: top; }
.v2-course-table tbody + tbody { border-top: 2px solid var(--v2-border); }
.v2-course-table .button_to { margin: 0; }
.v2-course-table__course, .v2-course-table__book { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 0; color: var(--v2-accent); text-align: left; overflow-wrap: anywhere; }
.v2-course-table__course { border: 0; background: transparent; font: inherit; font-weight: 600; cursor: pointer; }
.v2-course-table__course:hover, .v2-course-table__book:hover { text-decoration: underline; text-underline-offset: .2em; }
.v2-course-books + .v2-course-books { margin-top: 2.5rem; }
.v2-activity-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.v2-activity-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto 1rem; gap: .75rem; align-items: center; padding: .7rem 1rem; border: 1px solid var(--v2-border); border-radius: var(--v2-radius); background: var(--v2-surface); color: var(--v2-text); text-decoration: none; min-height: 64px; }
.v2-activity-row:hover { border-color: var(--v2-accent); background: var(--v2-soft); }
.v2-activity-state { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--v2-border); border-radius: 50%; font-size: .75rem; color: var(--v2-muted); }
.v2-activity-row.is-complete .v2-activity-state { color: var(--v2-success); border-color: currentColor; }
.v2-activity-row.is-started .v2-activity-state { position: relative; border: 0; color: var(--v2-accent); }
.v2-activity-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); fill: none; stroke-width: 2.5; }
.v2-activity-ring-track { stroke: var(--v2-border); }
.v2-activity-ring-fill { stroke: currentColor; }
.v2-activity-ring-label { position: relative; font-size: .68rem; font-variant-numeric: tabular-nums; }
.v2-activity-ring-label small { font-size: .5rem; }
.v2-activity-row.is-started { border-inline-start: 3px solid var(--v2-accent); }
.v2-activity-title { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; }
.v2-activity-title strong { font-size: .9rem; }
.v2-activity-status { font-size: .75rem; text-align: right; color: var(--v2-muted); }
.v2-activity-status small { display: block; }
@media (max-width: 599px) {
  .v2-activity-row { gap: .5rem; padding: .65rem; grid-template-columns: 1.8rem minmax(0, 1fr) auto; }
  .v2-activity-row > .v2-icon { display: none; }
  .v2-activity-title { display: grid; gap: .2rem; }
  .v2-activity-status { max-width: 6rem; }
}

.v2-quiz-picture { margin: 0 auto 1rem; max-width: 28rem; }
.v2-quiz-picture img { display: block; width: 100%; max-height: 21rem; object-fit: contain; border-radius: var(--v2-radius); }

/* Matching shares the activity tray and renders one board with independent slots. */
.v2-matching-heading { margin-bottom: 1rem; }
.v2-matching-heading p { margin: .4rem 0; }
.v2-matching-board { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(14rem, 1fr); gap: 1rem; align-items: start; }
.v2-run:has(.v2-matching) { max-width: 1240px; }
.v2-matching-prompts { display: grid; gap: .8rem; min-width: 0; }
.v2-matching-prompt { min-width: 0; padding: 1rem; }
.v2-matching-prompt h3 { margin: 0 0 .65rem; color: var(--v2-muted); }
.v2-matching-sentence { font-size: 1.2rem; line-height: 2.6; white-space: pre-line; overflow-wrap: anywhere; }
.v2-matching-sentence .v2-rich-text { display: contents; }
.v2-matching-sentence ruby { white-space: normal; }
.v2-matching-sentence rt { font-size: .75rem; }
.v2-content[data-pinyin="false"] .v2-matching rt { display: none; }
.v2-matching-slot { display: inline-block; vertical-align: baseline; min-width: 7rem; max-width: 100%; min-height: 46px; margin: .15rem .2rem; padding: .2rem .6rem; border: 1px dashed var(--v2-accent); border-radius: var(--v2-control-radius); background: var(--v2-soft); color: var(--v2-text); font: inherit; line-height: 1.9; cursor: pointer; }
.v2-matching-slot:not(.is-filled) { font-size: .8rem; color: var(--v2-muted); }
.v2-matching-slot.is-filled { border-style: solid; }
.v2-matching-slot.is-correct { border-color: var(--v2-success); }
.v2-matching-slot.is-incorrect { border-color: var(--v2-error); }
.v2-matching-slot:disabled { opacity: 1; cursor: default; }
.v2-matching-slot img { width: clamp(8rem, 16vw, 12rem); max-width: 100%; height: clamp(8rem, 16vw, 12rem); display: block; object-fit: contain; }
.v2-matching-slot.is-selected { outline: 3px solid var(--v2-accent); outline-offset: 2px; background: color-mix(in srgb, var(--v2-accent) 24%, var(--v2-surface)); }
.v2-matching-picture { display: block; width: 100%; max-height: 12rem; object-fit: contain; border-radius: var(--v2-control-radius); margin-bottom: .65rem; }
.v2-matching-tray { position: sticky; top: calc(var(--v2-header) + env(safe-area-inset-top) + var(--v2-tray-height, 105px) + .5rem); border: 1px solid var(--v2-border); border-radius: var(--v2-radius); background: var(--v2-surface); min-width: 0; }
@media (min-width: 600px) {
  .v2--native .v2-matching-tray { top: calc(52px + env(safe-area-inset-top) + var(--v2-tray-height, 105px) + .5rem); }
}
.v2-matching-tray-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .15rem .5rem; }
.v2-matching-tray-toggle { display: flex; align-items: center; gap: .35rem; min-height: 40px; padding: .25rem; cursor: pointer; color: var(--v2-text); background: transparent; border: 0; font: inherit; font-weight: 600; }
.v2-matching-tray-toggle[aria-expanded=false] > span { transform: rotate(-90deg); }
.v2-matching-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; padding: .65rem; max-height: calc(100dvh - var(--v2-header) - 260px); overflow-y: auto; }
.v2-matching-choice { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; min-width: 0; border: 1px solid var(--v2-border); border-radius: var(--v2-control-radius); background: var(--v2-soft); }
.v2-matching-choice-select { display: flex; align-items: center; justify-content: center; padding: .5rem .4rem; width: 100%; min-height: 48px; color: var(--v2-text); background: transparent; border: 0; border-radius: inherit; cursor: grab; font: inherit; }
.v2-matching-choice-select[aria-pressed=true] { outline: 3px solid var(--v2-accent); outline-offset: 2px; background: color-mix(in srgb, var(--v2-accent) 24%, var(--v2-surface)); }
.v2-matching-choice-content { font-size: 1.1rem; line-height: 1.9; overflow-wrap: anywhere; }
.v2-matching-choice-content img { width: 100%; height: clamp(9rem, 16vw, 12rem); object-fit: contain; display: block; }
.v2-matching-choices:has(.v2-matching-choice--picture) { grid-template-columns: minmax(0, 1fr); }
.v2-matching-choice--picture .v2-matching-choice-content { width: 100%; }
.v2-matching-choice .v2-audio-player { grid-column: 1 / -1; margin: 0; padding: .3rem; }
.v2-matching-choice .v2-audio-controls { justify-content: center; }
.v2-matching-selection { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .35rem .5rem; border-top: 1px solid var(--v2-border); }
.v2-matching-selection .v2-button { min-height: 44px; padding: .25rem .4rem; font-size: .8rem; }
.v2-matching-selection > .v2-caption { flex: 1; }
.v2-matching-slot-wrap { display: inline-flex; vertical-align: middle; flex-direction: column; align-items: center; max-width: 100%; }
.v2-matching-slot-controls { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
.v2-matching-drag-handle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; align-self: start; width: 36px; min-height: 44px; padding: .25rem; border: 0; border-radius: var(--v2-control-radius); color: var(--v2-muted); background: transparent; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: grab; }
.v2-matching-drag-handle:disabled { cursor: default; }
.v2-matching-drag-handle .v2-icon { stroke-width: 3; }
.v2-matching-drag-handle:hover, .v2-matching-drag-handle:focus-visible { color: var(--v2-accent); background: var(--v2-tint); }
.v2-matching-slot-audio { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem; }
.v2-matching-slot-audio:empty { display: none; }
.v2-matching-slot-audio .v2-button, .v2-matching-choice .v2-audio-player .v2-button { min-height: 34px; padding: .2rem .5rem; }
.v2-matching-slot.is-filled:not(:disabled), .v2-matching-choice-select:not(:disabled) { touch-action: auto; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: grab; }
.v2-matching-slot.is-destination, .v2-matching-choice-select.is-destination { border: 2px dashed var(--v2-accent); background: color-mix(in srgb, var(--v2-accent) 9%, var(--v2-surface)); cursor: pointer; }
.v2-matching-prompt.is-destination { outline: 2px dashed var(--v2-accent); outline-offset: -2px; }
.v2-matching-choices.is-destination { outline: 2px dashed var(--v2-accent); outline-offset: -4px; }
.v2-matching-empty { grid-column: 1 / -1; margin: .15rem; color: var(--v2-muted); }
.v2-matching .is-drop-hover { outline: 3px solid var(--v2-accent); outline-offset: -3px; background: color-mix(in srgb, var(--v2-accent) 24%, var(--v2-surface)); }
.v2-matching .is-drag-source { opacity: .45; }
.v2-matching-drag-token { position: fixed; z-index: 60; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); max-width: 160px; padding: .5rem .7rem; background: var(--v2-surface); color: var(--v2-text); border: 2px solid var(--v2-accent); border-radius: var(--v2-control-radius); box-shadow: 0 5px 20px #0004; }
.v2-matching-drag-token img { max-width: 100px; max-height: 80px; object-fit: contain; }
.v2-matching-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }
.v2-matching-correction { padding: .5rem; background: var(--v2-soft); border-left: 2px solid var(--v2-success); }
.v2-matching-correction > span { display: block; }
.v2-activity-row { grid-template-columns: 2rem minmax(0, 1fr) 14rem 9.5rem 1rem; }
.v2-activity-type { text-align: right; }
.v2-activity-row.is-started { padding-inline-start: calc(1rem - 2px); }
@media (max-width: 799px) {
  .v2-activity-row { grid-template-columns: 2rem minmax(0, 1fr) 10rem 7rem 1rem; }
}
@media (max-width: 599px) {
  .v2-activity-row { grid-template-columns: 1.8rem minmax(0, 1fr) 6rem; gap: .3rem .5rem; }
  .v2-activity-state { grid-row: 1 / 3; }
  .v2-activity-title { grid-column: 2 / 4; }
  .v2-activity-type { grid-column: 2; grid-row: 2; font-size: .7rem; }
  .v2-activity-status { grid-column: 3; grid-row: 2; }
  .v2-activity-row.is-started { padding-inline-start: calc(.65rem - 2px); }
  .v2-matching-board { display: flex; flex-direction: column; }
  .v2-matching-prompts { width: 100%; }
  .v2-matching { padding-bottom: calc(var(--matching-tray-height, 180px) + 1rem); }
  .v2-matching-tray { position: fixed; display: grid; grid-template-columns: auto minmax(0, 1fr); inset-inline: 0; bottom: var(--matching-bottom, 0px); top: auto; width: auto; z-index: 12; border-radius: 0; border-inline: 0; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -3px 12px #0002; }
  .v2--app .v2-matching-tray { padding-bottom: 0; }
  .v2-matching-choices { grid-column: 1 / -1; display: flex; align-items: stretch; overflow: auto; max-height: min(23dvh, 9rem); padding: .25rem .55rem .4rem; gap: .5rem; scroll-padding-inline: .55rem; }
  .v2-matching-choice { flex: 0 0 auto; min-width: 5.5rem; max-width: 10rem; }
  .v2-matching-choice-select { padding: .3rem .5rem; }
  .v2-matching-choice-content { font-size: 1rem; line-height: 1.7; }
  .v2-matching-choice--picture { width: 13rem; max-width: 13rem; }
  .v2-matching-choice-content img { height: 8rem; }
  .v2-matching-choices:has(.v2-matching-choice--picture) { max-height: min(32dvh, 14rem); }
  .v2-matching-choice .v2-audio-player { padding: 0 .15rem .15rem; }
  .v2-matching-tray-heading { grid-column: 1 / -1; padding-block: 0; }
  .v2-matching-tray:has(.v2-matching-selection:not([hidden])) .v2-matching-tray-heading { grid-column: 1; grid-row: 1; }
  .v2-matching-tray:has(.v2-matching-selection:not([hidden])) .v2-matching-tray-heading > .v2-caption { display: none; }
  .v2-matching-tray-toggle { min-height: 36px; }
  .v2-matching-selection { grid-column: 2; grid-row: 1; padding-block: .2rem; border: 0; justify-content: flex-end; min-width: 0; }
  .v2-matching-slot { scroll-margin-block: 180px 230px; }
  .v2-matching-sentence { font-size: 1.15rem; }
  .v2-matching-prompt { padding: .75rem; }
  .v2-matching-slot { min-width: 6rem; }
}

.v2 .v2-matching-prompt h3 { font-size: .8rem; font-weight: 500; }
.v2-matching-sentence { white-space: normal; }
.v2-response-card { padding: clamp(1rem, 4vw, 2rem); gap: 1.5rem; }
.v2-response-situation { border-left: 3px solid var(--v2-accent); padding-left: 1rem; }
.v2-response-partner { padding: 1.25rem; border: 1px solid var(--v2-border); border-radius: var(--v2-radius); }
.v2-response-partner-text { font-size: 1.6rem; line-height: 1.7; }
.v2-response-image { margin: 0; display: grid; place-items: center; }
.v2-response-image img { width: min(100%, 24rem); max-height: 22rem; object-fit: contain; border-radius: 8px; }
.v2-response-input textarea { min-height: 7rem; font-size: 1.2rem; line-height: 1.6; resize: vertical; width: 100%; }
.v2-response-input > button { justify-self: start; }
.v2-response-template { font-size: 1.3rem; line-height: 1.8; }
.v2-response-feedback { padding: 1.2rem; border: 1px solid var(--v2-border); border-radius: 6px; }
.v2-response-answer { font-size: 1.4rem; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-wrap; }
.v2-response-criteria { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.v2-response-criteria li { display: flex; align-items: center; gap: .6rem; }
.v2-response-recap { border-block: 1px solid var(--v2-border); padding-block: 1.5rem; }
.v2-response-recap audio { width: 100%; }
@media (max-width: 599px) { .v2-response-partner { padding: .85rem; } .v2-response-image img { max-height: 16rem; } .v2-response-card .v2-run-actions { flex-wrap: wrap; } }
.v2-matching-prompt.is-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(8rem, 1fr); gap: .6rem 1rem; align-items: center; }
.v2-matching-prompt.is-pair h3 { grid-column: 1 / -1; margin: 0; }
.v2-matching-prompt.is-pair .v2-matching-picture { height: clamp(9rem, 18vw, 14rem); max-height: none; margin: 0; }
.v2-matching-prompt.is-pair .v2-matching-sentence { line-height: 2.3; }
.v2-matching-prompt.is-pair:not(:has(.v2-matching-picture, .v2-audio-player)) .v2-matching-sentence { grid-column: 1 / -1; }
.v2-matching-prompt.is-pair > p, .v2-matching-prompt.is-pair > .v2-matching-correction { grid-column: 1 / -1; }
.v2-matching-audio-group { grid-column: 1 / -1; min-width: 0; }
.v2-matching-audio-group > .v2-caption { margin-block: .5rem; }
.v2-audio-group-clips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .6rem; }
@media (max-width: 599px) { .v2-matching-prompt.is-pair { gap: .35rem .65rem; grid-template-columns: minmax(0, 1fr) minmax(7rem, 1fr); } }
@media (max-width: 599px) { .v2-matching-prompt.is-pair:has(img, .v2-audio-player) { grid-template-columns: minmax(0, 1fr); } }

/* Keep identification and conversation work in a compact, stable console. */
.v2-phonetics-card .v2-player-content { padding: 1.1rem 1.25rem; }
.v2-phonetics-card .v2-player-content > * + * { margin-top: 1rem; }
.v2-phonetics-card .v2-player-prompt { line-height: 1.4; }
.v2-phonetics-card .v2-choice { padding: .5rem .85rem; min-height: 54px; }
.v2-tone-options:has(.v2-answer-choice) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.v2-tone-options .v2-choice { gap: .4rem; }
.v2-tone-contour { display: inline-block; width: 80px; height: 50px; vertical-align: middle; fill: none; stroke: currentColor; }
.v2-tone-guide { stroke-width: 1; opacity: .17; }
.v2-tone-line { stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.v2-phonetics-result { padding-block: .65rem; }
.v2-phonetics-sound { min-width: 3.5rem; font-size: 1.1rem; color: var(--v2-pinyin); }
.v2-phonetics-answer-summary { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .6rem; font-size: .85rem; }
.v2-phonetics-answer-summary .v2-tone-contour { width: 38px; height: 26px; }
.v2-response-card { padding: 1rem 1.25rem; gap: 1rem; }
.v2-response-card .v2-stack { gap: .75rem; }
.v2-response-card p { margin-block: 0; }
.v2-response-partner { padding: .75rem 1rem; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .25rem .75rem; }
.v2-response-partner > .v2-eyebrow { grid-column: 1 / -1; }
.v2-response-partner-text { font-size: 1.5rem; line-height: 1.5; }
.v2-response-input textarea { min-height: 4.6rem; }
.v2-response-form .v2-run-actions { margin-top: .25rem; padding-top: .25rem; }
.v2-response-form .v2-response-capture-actions:not(:has(button:not([hidden]))), .v2-response-form .v2-response-start:not(:has(button:not([hidden]))), .v2-response-form [data-v2-response-target="status"]:empty { display: none; }
.v2-response-feedback { padding: .85rem; }
.v2-response-live { padding: .85rem 1rem; border: 1px solid var(--v2-accent); border-radius: var(--v2-radius); background: var(--v2-tint); }
.v2-response-live p { font-size: 1.3rem; min-height: 2rem; overflow-wrap: anywhere; }
.v2-recording-label { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.v2-recording-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--v2-error); }
.v2-voice-meter { height: 4px; margin-block: .65rem; background: var(--v2-border); overflow: hidden; border-radius: 4px; }
.v2-voice-meter span { display: block; height: 100%; background: var(--v2-accent); transform-origin: left; transform: scaleX(0); transition: transform 80ms; }
.v2-response-stop { background: var(--v2-error-bg); color: var(--v2-error); border: 2px solid var(--v2-error); min-width: 12rem; }
.v2-response-stop:hover { filter: brightness(1.15); }
.v2-conversation-card .v2-eyebrow { color: var(--v2-muted); }
.v2-conversation-card .v2-response-situation { border-color: var(--v2-border); }
.v2-conversation-card .v2-response-form { padding: .85rem; border: 1px solid var(--v2-border); border-radius: var(--v2-radius); background: var(--v2-bg); }
.v2-conversation-card [data-v2-response-target="record"] { background: var(--v2-tint); border: 2px solid var(--v2-accent); color: var(--v2-accent); min-width: 12rem; }
.v2-conversation-card [data-v2-response-target="record"]:hover { filter: brightness(1.12); }
.v2-conversation-card .v2-response-live { padding: 0; border: 0; background: transparent; }
.v2-conversation-card .v2-response-live[data-phase="recording"] .v2-recording-label { color: var(--v2-error); }
.v2-response-live[data-phase="reviewing"] .v2-recording-label { color: var(--v2-practice); }
.v2-response-live[data-phase="reviewing"] .v2-recording-dot { background: transparent; border: 2px solid currentColor; border-right-color: transparent; animation: v2-response-spin 1s linear infinite; }
.v2-response-live[data-phase="reviewing"] .v2-voice-meter { visibility: hidden; }
.v2-response-form .v2-run-actions:not(:has(button:not([hidden]))) { display: none; }
.v2-response-input:has(> [data-v2-response-target="editor"][hidden]):not(:has(button:not([hidden]))) { display: none; }
@keyframes v2-response-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .v2-response-live[data-phase="reviewing"] .v2-recording-dot { animation: none; } }
@media (max-width: 599px) {
  .v2-tone-options:has(.v2-answer-choice) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-response-card, .v2-phonetics-card .v2-player-content { padding: .85rem; }
  .v2-response-partner { padding: .65rem; }
  .v2-response-partner-text { font-size: 1.3rem; }
  .v2-response-start > .v2-button--primary, .v2-response-stop { flex: 1; }
}
/* Action hierarchy shared by activity players, with status reserved for feedback. */
.v2-button:focus-visible, .v2-audio-player button:focus-visible { outline: 3px solid var(--v2-accent); outline-offset: 3px; }
.v2-response-feedback--success { border-color: var(--v2-success); background: var(--v2-success-bg); }
.v2-response-feedback--practice { border-left: 3px solid var(--v2-practice); }
.v2-response-feedback--error { border-left: 3px solid var(--v2-error); }
.v2-response-criteria li { font-size: .9rem; }
.v2-response-criteria .v2-icon { flex-shrink: 0; stroke-width: 2.5; }
.v2-completion-heading { display: flex; align-items: center; gap: 1rem; }
.v2-completion-heading h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
.v2-completion-heading p { margin: .4rem 0 0; }
.v2-completion-mark { display: grid; place-items: center; flex: 0 0 3rem; height: 3rem; border-radius: 50%; background: var(--v2-success-bg); color: var(--v2-success); border: 1px solid currentColor; }
.v2-response-feedback--success, .v2-completion-mark { animation: v2-arrive 220ms ease-out; }
@keyframes v2-arrive { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .v2-response-feedback--success, .v2-completion-mark { animation: none; } }
.v2-results-list:has([data-result-kind="conversation"]) { display: grid; gap: 1rem; }
.v2-result-row[data-result-kind="conversation"] { padding: 1rem; border: 1px solid var(--v2-border); border-radius: var(--v2-radius); background: var(--v2-bg); }
.v2-result-row[data-result-kind="conversation"] > * + * { margin-top: .65rem; }
.v2-result-row[data-result-kind="conversation"] p { margin-block: 0; }
.v2-result-row[data-result-kind="conversation"] .v2-prose { margin-block: .6rem; }
.v2-response-review { gap: .65rem; }
.v2-response-review .v2-support { padding-block: .4rem; }
.v2-review-answer { padding: .6rem .8rem; border-left: 3px solid var(--v2-border); background: var(--v2-surface); }
.v2-review-answer [lang="zh"] { font-size: 1.15rem; }
.v2-response-recap { padding: 1rem; background: var(--v2-soft); border: 1px solid var(--v2-border); border-radius: var(--v2-radius); gap: .8rem; }

/* Existing site / V2 Beta switch; mirrored in the host layout's navigation/_site_toggle. */
.v2-site-toggle { display: inline-flex; align-items: center; flex-shrink: 0; margin-inline-end: .5rem; padding: 3px; border: 1px solid var(--v2-border); border-radius: 999px; background: var(--v2-surface); font-size: .75rem; font-weight: 600; line-height: 1; }
.v2-site-toggle__option { display: inline-flex; align-items: center; min-height: 30px; padding: 0 .7rem; border-radius: 999px; color: var(--v2-muted); text-decoration: none; white-space: nowrap; }
a.v2-site-toggle__option:hover { color: var(--v2-text); background: var(--v2-tint); }
.v2-site-toggle__option--current { color: var(--v2-on-accent); background: var(--v2-accent); }
.v2-feedback-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.v2-activity-report { margin-top: 1rem; }
.v2-activity-report > summary { display: list-item; width: fit-content; min-height: 44px; padding-block: .65rem; font-size: .8rem; color: var(--v2-accent); cursor: pointer; }
.v2-activity-report turbo-frame { display: block; }
.v2-report blockquote.v2-feedback-body { margin: 0; padding-left: 1rem; border-left: 3px solid var(--v2-border); }
.v2-report-context { display: grid; gap: .35rem; padding: .75rem 1rem; background: var(--v2-soft); border-radius: var(--v2-radius); }
.v2-report-context p { margin: 0; }
.v2-report-status--open { color: var(--v2-practice); border-color: currentColor; }
.v2-report-status--reviewing { color: var(--v2-accent); border-color: currentColor; }
.v2-report-status--resolved { color: var(--v2-success); border-color: currentColor; }
.v2-app-nav { grid-template-columns: repeat(3, 1fr); }

/* Reader sentence and token help popups. */
.v2-reader-line-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.v2-reader-info { display: inline-grid; place-items: center; flex: 0 0 2.25rem; width: 2.25rem; height: 2.25rem; padding: .45rem; color: var(--v2-muted); background: transparent; border: 1px solid var(--v2-border); border-radius: 50%; cursor: pointer; }
.v2-reader-info:hover, .v2-reader-info:focus-visible { color: var(--v2-text); background: var(--v2-tint); }
.v2-reader-info .v2-icon { width: 1.15rem; height: 1.15rem; }
.v2-reader-sentence-dialog { width: min(32rem, calc(100vw - 2rem)); max-width: none; max-height: min(80vh, 40rem); padding: 0; overflow: auto; color: var(--v2-text); background: var(--v2-surface); border: 1px solid var(--v2-border); border-radius: var(--v2-radius); box-shadow: 0 1rem 3rem rgb(0 0 0 / .24); }
.v2-reader-sentence-dialog::backdrop { background: rgb(0 0 0 / .48); }
.v2-reader-help-card { display: grid; gap: .6rem; padding: 1.1rem; }
.v2-reader-help-card > * { margin: 0; }
.v2-reader-help-card .v2-between { align-items: center; }
.v2-reader-help-close { min-width: 2.5rem; min-height: 2.5rem; padding: .45rem; }
.v2-reader-help-chinese { font-size: 1.35rem; }
.v2-reader-token { display: inline; padding: 0; border: 0; color: inherit; font: inherit; background: transparent; cursor: pointer; border-radius: .2rem; }
.v2-reader-token:hover, .v2-reader-token:focus-visible, .v2-reader-token[aria-expanded="true"] { outline: 2px solid var(--v2-accent); outline-offset: 2px; }
.v2-reader-token-popover { position: fixed; z-index: 1000; display: grid; gap: .3rem; width: max-content; max-width: min(18rem, calc(100vw - 1rem)); padding: .7rem .85rem; color: var(--v2-text); background: var(--v2-surface); border: 1px solid var(--v2-border); border-radius: var(--v2-radius); box-shadow: 0 .5rem 1.5rem rgb(0 0 0 / .2); overflow-wrap: anywhere; }
.v2-reader-token-popover[hidden] { display: none; }
.v2-reader-token-popover { max-height: calc(100dvh - 1rem); overflow: auto; }
.v2-reader-token-popover > :last-child { color: var(--v2-muted); }
@media (prefers-reduced-motion: reduce) { .v2-reader-token-popover, .v2-reader-sentence-dialog { scroll-behavior: auto; } }
.v2-plan-grid { display: grid; gap: var(--v2-gap); grid-template-columns: 1fr; }
.v2-plan-grid > .v2-panel > * + * { margin-top: 0; }
.v2-purchase-list { list-style: none; margin: 0; padding: 0; }
.v2-purchase-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--v2-border); }
.v2-purchase-row strong { font-size: .9rem; }
@media (min-width: 700px) {
  .v2-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Desktop web workspaces share a left edge without widening reading or forms.
   App routes keep their centered containers, including anonymous app sign-in. */
@media (min-width: 1080px) {
  .v2--web { --v2-gutter: 40px; --v2-workspace: var(--v2-container); }
  .v2--web:has(.v2-content .v2-study-layout) { --v2-workspace: var(--v2-reading); }
  .v2--web:has(.v2-content .v2-run.v2-study-layout),
  .v2--web:has(.v2-content .v2-speaking) { --v2-workspace: 920px; }
  .v2--web:has(.v2-content .v2-run .v2-matching) { --v2-workspace: calc(1240px - 2 * var(--v2-gutter)); }
  .v2--web:has(.v2-content .v2-auth-layout) { --v2-workspace: calc(540px - 2 * var(--v2-gutter)); }
  .v2--web:has(.v2-content.v2-flashcards-workspace) { --v2-workspace: var(--v2-container); }
  .v2--web .v2-content .v2-container,
  .v2--web .v2-page-notice .v2-container,
  .v2--web .v2-footer { margin-inline: 0 auto; }
  .v2--web:not(.v2--sidebar) .v2-header__inner {
    width: min(100%, calc(var(--v2-workspace) + 2 * var(--v2-gutter)));
    margin-inline: 0 auto;
  }
}
@media (max-width: 499px) {
  .v2-content-row { gap: .6rem !important; }
  .v2 .v2-content-row > .v2-row-action { font-size: .75rem; gap: .2rem; }
  .v2-content-row > .v2-row-body strong { font-size: .9rem; }
  .v2-content-row .v2-progress-meta { flex-wrap: wrap; }
}

/* Word practice: shared by SRS, course Review, and course Flashcards. */
.v2-practice-section, .v2-run:has(.v2-practice-card) { padding-block: 1rem; container-type: inline-size; container-name: practice; }
.v2-fc-flow { display: grid; gap: .75rem; }
.v2-practice-section .v2-fc-sticky { padding-block: .5rem; display: grid; gap: .3rem; top: calc(var(--v2-header) + env(safe-area-inset-top)); }
.v2--native .v2-practice-section .v2-fc-sticky { top: calc(52px + env(safe-area-inset-top)); }
.v2-practice-status { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; font-size: .85rem; }
.v2-practice-status h1 { margin-right: auto; }
.v2-practice-header { display: grid; grid-template-columns: minmax(0, 1fr) auto 40px 40px; gap: .25rem; align-items: center; }
.v2-practice-header h1 { font-size: 1rem; }
.v2-practice-counts { display: grid; font-size: .75rem; line-height: 1.5; padding-inline: .25rem; color: var(--v2-muted); }
.v2-practice-counts strong { color: var(--v2-text); }
.v2-practice-icon { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: var(--v2-radius); }
.v2-practice-icon:hover { background: var(--v2-tint); }
.v2-practice-complete { padding: 1rem; scroll-margin-top: calc(var(--v2-header) + 110px + env(safe-area-inset-top)); }
.v2-practice-complete:focus { outline: none; }
.v2-practice-complete input { max-width: 10rem; }
.v2-practice-status > a { font-size: .8rem; padding-block: .4rem; }
.v2-practice-stats { position: relative; }
.v2-practice-stats summary { cursor: pointer; }
.v2-practice-stats p { position: absolute; z-index: 12; width: min(300px, 80vw); padding: .75rem; border: 1px solid var(--v2-border); background: var(--v2-surface); box-shadow: var(--v2-shadow); }
.v2-run:has(.v2-practice-card) .v2-breadcrumbs { margin-bottom: .6rem; }
.v2-run:has(.v2-practice-card) .v2-study-sticky { padding-block: .3rem; }
.v2-practice-card { display: grid; gap: .75rem; padding: 1rem; min-width: 0; }
.v2-practice-caption { display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 36px; font-size: .8rem; color: var(--v2-muted); }
.v2-practice-caption > form { margin: 0; }
.v2-course-flashcard-caption { flex-wrap: wrap; }
.v2-practice-caption .v2-button { min-height: 36px; padding: .3rem; }
.v2-practice-word { display: grid; grid-template-columns: minmax(0, auto) auto; justify-content: center; align-items: center; gap: 1rem; min-height: 164px; padding: .5rem; }
.v2-practice-word:not(:has(.v2-practice-word__audio)) { grid-template-columns: minmax(0, 1fr); }
.v2-practice-word__text { display: grid; gap: .15rem; text-align: center; min-width: 0; }
.v2-practice-word__part { display: grid; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.v2-practice-word__value, .v2-practice-word__blank { grid-area: 1 / 1; }
.v2-practice-word__blank { color: var(--v2-muted); font-size: 1rem; }
.v2-practice-word__placeholder { display: block; width: 3.5rem; max-width: 100%; height: .55rem; margin-inline: auto; border-radius: 3px; background: var(--v2-border); opacity: .45; }
.v2-practice-word__pinyin { font-size: 1.15rem; line-height: 1.4; color: var(--v2-pinyin); }
.v2-practice-word__hanzi { font-size: 3rem; line-height: 1.25; }
.v2-practice-word__meaning { font-size: 1.05rem; line-height: 1.4; }
.v2-practice-word__audio { align-self: center; }
.v2-practice-word__audio .v2-audio-player { margin: 0; }
.v2-practice-response { display: grid; gap: .5rem; align-content: center; min-width: 0; }
.v2-practice-action-slot { display: grid; }
.v2-practice-action-slot > button, .v2-practice-action-slot > form { grid-area: 1 / 1; margin: 0; width: 100%; }
.v2-practice-ratings { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.v2-practice-card .v2-button { min-height: 44px; }
.v2-practice-card .v2-answer-options:has(.v2-answer-choice) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: 0; }
.v2-practice-card .v2-answer-choice { padding: .6rem .7rem; min-height: 54px; gap: .5rem; line-height: 1.35; }
.v2-practice-card .v2-answer-choice .v2-hanzi-display { margin: 0; font-size: 1.5rem; line-height: 1.35; }
.v2-practice-card .v2-answer-choice .v2-review-pinyin, .v2-practice-card .v2-answer-choice .v2-review-meaning { margin: 0; font-size: 1rem; line-height: 1.35; }
.v2-practice-card .v2-answer-choice:disabled { opacity: 1; cursor: default; }
.v2-practice-result { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .6rem; min-height: 44px; font-size: .85rem; }
.v2-practice-result form { margin-left: auto; }
.v2-practice-result .v2-button { padding: .4rem .6rem; font-size: .85rem; }
.v2-practice-audio-notice { grid-column: 1 / -1; }
.v2-practice-previous { border: 1px solid var(--v2-border); border-radius: var(--v2-radius); background: var(--v2-surface); padding: .75rem; display: grid; gap: .4rem; font-size: .9rem; }
.v2-practice-previous__word, .v2-practice-previous__result, .v2-practice-adjustments { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .65rem; }
.v2-practice-previous__word > strong { font-size: 1.35rem; }
.v2-practice-previous__word .v2-pinyin { font-size: 1rem; }
.v2-practice-adjustments .v2-cluster { gap: .4rem; }
.v2-practice-adjustments .v2-button { min-height: 44px; padding: .4rem .7rem; font-size: .85rem; }
.v2-run:has(.v2-practice-card) .v2-previous { padding: .75rem; margin-top: .75rem; font-size: .9rem; }
.v2-run:has(.v2-practice-card) .v2-previous > * + * { margin-top: .4rem; }
.v2-run:has(.v2-practice-card) .v2-previous .v2-pinyin { font-size: 1rem; }
@container practice (min-width: 600px) {
  .v2-practice-card--quiz { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; }
  .v2-practice-card--quiz .v2-practice-caption { grid-column: 1 / -1; }
}
@media (max-width: 539px) {
  .v2-practice-card { padding: .75rem; gap: .5rem; }
  .v2-practice-status { gap: .2rem .5rem; }
  .v2-practice-status .v2-h3 { font-size: 1rem; }
  .v2-practice-status strong { font-size: .8rem; }
  .v2-practice-status .v2-caption { font-size: .75rem; }
  .v2-key-hint { display: none; }
}

.v2-metrics { padding-block: 1.5rem; }
.v2-metrics header > p { margin-top: .5rem; }
.v2-metrics-explainer { padding: .85rem 1rem; font-size: .9rem; }
.v2-metrics-explainer summary { cursor: pointer; font-weight: 600; }
.v2-metrics-filters { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr auto auto; gap: .75rem; align-items: end; }
.v2-metrics-filters > div { min-width: 0; }
.v2-metrics-filters label { display: block; font-size: .85rem; margin-bottom: .35rem; }
.v2-metrics-filters > a { padding-block: .75rem; }
.v2-metrics-list { display: grid; gap: .75rem; }
.v2-metrics-word { padding: 1rem; }
.v2-metrics-word__heading { display: flex; justify-content: space-between; gap: .75rem; }
.v2-metrics-word__heading h2 { font-size: 1.8rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.v2-metrics-word__heading h2 .v2-pinyin { font-size: 1rem; }
.v2-metrics-word__state { display: grid; align-content: start; gap: .15rem; font-size: .85rem; text-align: right; }
.v2-metrics-word__state > span:first-child { color: var(--v2-accent); font-size: 1.25rem; }
.v2-metrics-locations { margin-block: .65rem; }
.v2-metrics-skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.v2-metrics-skill { display: grid; align-content: start; gap: .35rem; padding: .65rem; border: 1px solid var(--v2-border); border-radius: var(--v2-radius); }
.v2-metrics-skill h3 { font-size: .8rem; line-height: 1.4; min-height: 2.8em; }
.v2-metrics-skill .v2-caption { font-size: .75rem; }
.v2-metrics-skill .v2-fc-meter { margin: 0; width: 100%; }
@media (max-width: 899px) {
  .v2-metrics-filters { grid-template-columns: 1fr 1fr; }
  .v2-metrics-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 539px) {
  .v2-metrics-word { padding: .75rem; }
  .v2-metrics-word__heading { flex-wrap: wrap; }
  .v2-metrics-word__state { text-align: left; }
  .v2-metrics-skills { gap: .5rem; }
}

/* Wide web navigation. App/native shells retain their top navigation. */
.v2-header__brand { display: contents; }
.v2-brand-mark, .v2-sidebar-toggle, .v2-sidebar-account-label { display: none; }
.v2-desktop-nav .v2-icon { display: none; }
.v2-brand-mark { width: 44px; height: 44px; flex-shrink: 0; overflow: hidden; align-items: center; justify-content: center; }
.v2-brand-mark img { flex-shrink: 0; object-fit: contain; width: 44px; height: 44px; }
.v2-sidebar-expand-icon { display: none; }
@media (min-width: 1080px) {
  .v2--sidebar { --v2-sidebar-width: 200px; --v2-header: 0px; padding-left: var(--v2-sidebar-width); }
  :root[data-sidebar="collapsed"] .v2--sidebar { --v2-sidebar-width: 72px; }
  .v2--sidebar .v2-header { position: fixed; inset: 0 auto 0 0; width: var(--v2-sidebar-width); border-bottom: 0; border-right: 1px solid var(--v2-border); overflow-y: auto; }
  .v2--sidebar .v2-header__inner { min-height: 100dvh; padding: 20px 12px 16px; flex-direction: column; align-items: stretch; justify-content: start; gap: 24px; }
  .v2--sidebar .v2-header__brand { position: relative; display: flex; align-items: center; justify-content: center; margin-inline: -12px; padding: 0 12px 16px; border-bottom: 1px solid var(--v2-border); }
  .v2--sidebar .v2-brand { min-height: 60px; }
  .v2--sidebar .v2-brand > .v2-logo { width: 142px; height: auto; }
  .v2--sidebar .v2-sidebar-toggle { position: absolute; right: 0; bottom: -14px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--v2-border); border-right: 0; border-radius: var(--v2-control-radius) 0 0 var(--v2-control-radius); background: var(--v2-brand-bg); color: var(--v2-muted); cursor: pointer; }
  .v2--sidebar .v2-sidebar-toggle .v2-icon { width: 16px; height: 16px; }
  .v2--sidebar .v2-sidebar-toggle:hover { background: var(--v2-tint); color: var(--v2-accent); }
  .v2--sidebar .v2-sidebar-toggle:focus-visible { outline: 2px solid var(--v2-accent); outline-offset: -2px; }
  .v2--sidebar .v2-desktop-nav { display: flex; flex-direction: column; gap: 6px; }
  .v2--sidebar .v2-desktop-nav .v2-icon { display: block; }
  .v2--sidebar .v2-desktop-nav .v2-nav-link { padding: 10px 12px; gap: 12px; border: 1px solid transparent; border-radius: var(--v2-control-radius); }
  .v2--sidebar .v2-desktop-nav .v2-nav-link:hover { background: var(--v2-surface); }
  .v2--sidebar .v2-desktop-nav .v2-nav-link[aria-current="page"] { background: var(--v2-tint); border-color: var(--v2-border); box-shadow: inset 3px 0 var(--v2-accent); }
  .v2--sidebar .v2-desktop-nav [data-v2-course-navigation] > .v2-icon { color: var(--v2-accent); }
  .v2--sidebar .v2-desktop-nav [data-v2-course-navigation] > span { font-weight: 600; }
  .v2--sidebar .v2-desktop-nav .v2-navigation-group > summary { display: flex; }
  .v2--sidebar .v2-desktop-nav .v2-navigation-group__links { margin: .2rem 0 .2rem 1.3rem; padding-left: .4rem; }
  .v2--sidebar .v2-desktop-nav .v2-navigation-group__links .v2-nav-link { padding: 8px 10px; gap: 8px; font-size: .8rem; }
  .v2--sidebar .v2-header__actions { flex-direction: column; align-items: stretch; gap: 6px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--v2-border); }
  .v2--sidebar .v2-site-menu { display: none; }
  .v2--sidebar .v2-header__actions .v2-settings-button { width: 100%; justify-content: start; flex-direction: row-reverse; gap: 12px; padding: 10px 12px; }
  .v2--sidebar .v2-header__actions .v2-settings-button > span { position: static; width: auto; height: auto; clip-path: none; flex: 1; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
  .v2--sidebar .v2-account-menu summary { justify-content: start; gap: 12px; padding: 10px 12px; border-color: transparent; }
  .v2--sidebar .v2-sidebar-account-label { display: inline; }
  .v2--sidebar .v2-account-menu .v2-menu__panel { position: fixed; inset: auto auto 16px calc(var(--v2-sidebar-width) + 8px); max-height: calc(100dvh - 32px); }
  :root[data-sidebar="collapsed"] .v2--sidebar .v2-header__inner { padding-inline: 10px; }
  :root[data-sidebar="collapsed"] .v2--sidebar .v2-header__brand { margin-inline: -10px; padding-inline: 10px; }
  :root[data-sidebar="collapsed"] .v2--sidebar .v2-brand > .v2-logo { display: none; }
  :root[data-sidebar="collapsed"] .v2--sidebar .v2-brand-mark { display: flex; }
  :root[data-sidebar="collapsed"] .v2--sidebar .v2-sidebar-expand-icon { display: inline-flex; }
  :root[data-sidebar="collapsed"] .v2--sidebar .v2-sidebar-collapse-icon { display: none; }
  :root[data-sidebar="collapsed"] .v2--sidebar .v2-desktop-nav .v2-nav-link,
  :root[data-sidebar="collapsed"] .v2--sidebar .v2-header__actions .v2-settings-button,
  :root[data-sidebar="collapsed"] .v2--sidebar .v2-account-menu summary { justify-content: center; padding-inline: 0; min-width: 44px; }
  :root[data-sidebar="collapsed"] .v2--sidebar .v2-desktop-nav .v2-nav-link > span,
  :root[data-sidebar="collapsed"] .v2--sidebar .v2-header__actions .v2-settings-button > span,
  :root[data-sidebar="collapsed"] .v2--sidebar .v2-sidebar-account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  :root[data-sidebar="collapsed"] .v2--sidebar .v2-navigation-group > summary > .v2-icon:last-child,
  :root[data-sidebar="collapsed"] .v2--sidebar .v2-navigation-group__links { display: none; }
}

/* A dense library: book > lesson > deck, with pool actions on every row. */
.v2-decks-heading .v2-page-title { margin-bottom: .5rem; }
.v2-decks-heading p { margin: 0; max-width: 65ch; }
#v2_deck_library { display: block; overflow-anchor: none; }
.v2-decks-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem; }
.v2-decks-status { min-height: 1.4em; margin: .25rem 0 .65rem; }
.v2-decks-library { border: 1px solid var(--v2-border); border-radius: 4px; }
.v2-decks-group { position: relative; }
.v2-decks-book + .v2-decks-book, .v2-decks-personal { border-top: 1px solid var(--v2-border); }
.v2-decks-group > details > summary { display: flex; align-items: center; gap: .6rem; min-height: 70px; padding: .65rem 190px .65rem 1rem; cursor: pointer; list-style: none; }
.v2-decks-group > details > summary::-webkit-details-marker { display: none; }
.v2-decks-group > details > summary::before { content: '›'; font-size: 1.3rem; width: .7rem; flex: 0 0 .7rem; transition: transform .15s; }
.v2-decks-group > details[open] > summary::before { transform: rotate(90deg); }
.v2-decks-group summary small, .v2-decks-name small { display: block; font-size: .75rem; color: var(--v2-muted); font-weight: normal; }
.v2-decks-group > .v2-decks-controls { position: absolute; right: .65rem; top: 13px; }
.v2-decks-lessons { border-top: 1px solid var(--v2-border); padding-left: 1rem; }
.v2-decks-lesson + .v2-decks-lesson { border-top: 1px solid var(--v2-border); }
.v2-decks-lesson > details > summary { font-size: .9rem; }
.v2-decks-table { padding: 0 .65rem .4rem 1.6rem; }
.v2-decks-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: center; min-height: 58px; padding: .4rem 0; border-top: 1px solid var(--v2-border); }
.v2-decks-name { min-width: 0; overflow-wrap: anywhere; font-size: .9rem; }
.v2-decks-controls, .v2-decks-controls form { display: flex; align-items: center; gap: .4rem; margin: 0; }
.v2-decks-count { text-align: right; font-size: .8rem; min-width: 42px; line-height: 1.25; }
.v2-decks-count small { display: block; font-size: .65rem; color: var(--v2-muted); }
.v2-decks-controls .v2-button { padding: .45rem .65rem; min-height: 40px; font-size: .8rem; }
.v2-decks-controls > form > .v2-button { min-width: 65px; }
.v2-decks-more { position: relative; }
.v2-decks-more > summary { list-style: none; cursor: pointer; padding: .45rem; min-height: 40px; display: flex; align-items: center; border-radius: 4px; }
.v2-decks-more > summary::-webkit-details-marker { display: none; }
.v2-decks-more > summary:hover { background: var(--v2-surface); }
.v2-decks-menu { position: absolute; right: 0; top: 100%; z-index: 5; min-width: 165px; border: 1px solid var(--v2-border); background: var(--v2-surface); padding: .3rem; box-shadow: 0 4px 12px #0002; border-radius: 4px; }
.v2-decks-menu .v2-button { width: 100%; justify-content: flex-start; }
.v2-decks-personal > h2 { font-size: 1rem; margin: 1rem; }
.v2-decks-personal .v2-decks-table { padding-left: 1rem; }
.v2-decks-create > summary { cursor: pointer; font-weight: 600; }
.v2-decks-create-form { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; margin-top: 1rem; }
.v2-decks-create-form .v2-field { flex: 1 1 200px; }
#v2_deck_library.is-saving-pool form { pointer-events: none; opacity: .65; }
@media (max-width: 599px) {
  .v2-decks-group > details > summary { padding-left: .6rem; padding-right: 160px; min-height: 78px; }
  .v2-decks-group > .v2-decks-controls { right: .35rem; top: 17px; }
  .v2-decks-lessons { padding-left: .35rem; }
  .v2-decks-table { padding-left: .7rem; padding-right: .35rem; }
  .v2-decks-controls { gap: .25rem; }
  .v2-decks-controls .v2-button { padding: .4rem .5rem; min-height: 44px; }
  .v2-decks-controls > form > .v2-button { min-width: 57px; }
  .v2-decks-more > summary { min-height: 44px; }
}


.v2-competency-label { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.v2-word-sheet-heading { text-align: center; margin: 0 0 1.25rem; }
.v2-word-sheet-heading p { margin: .25rem 0; }
.v2-word-sheet-heading h1 { font-size: 3rem; line-height: 1.2; margin: .2rem 0; }
.v2-attributes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: .75rem; }
.v2-attribute { border: 1px solid var(--v2-border); background: var(--v2-surface); border-radius: 4px; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.v2-attribute h2 { display: flex; gap: .4rem; align-items: center; font-size: 1rem; margin: 0; }
.v2-attribute p { margin: 0; }
.v2-attribute strong small { font-size: .75rem; font-weight: normal; color: var(--v2-muted); }
.v2-attribute form { margin-top: auto; }
.v2-attribute .v2-button { min-height: 40px; padding: .4rem .7rem; font-size: .8rem; }
.v2-word-options { margin-top: 1rem; }
.v2-word-options summary, .v2-inline-sheet summary, .v2-session-details summary { cursor: pointer; font-size: .8rem; color: var(--v2-muted); }
.v2-inline-sheet { width: 100%; }
.v2-session-details { margin: .25rem 0; }
.v2-session-report { border-top: 1px solid var(--v2-border); padding-top: .6rem; margin-top: .5rem; font-size: .85rem; }
.v2-session-report p { margin: .3rem 0 .6rem; }
.v2-session-skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.v2-session-skills > div { display: flex; flex-direction: column; gap: .3rem; min-width: 0; font-size: .8rem; }
.v2-session-skills .v2-icon { width: 16px; height: 16px; vertical-align: middle; }
.v2-session-skills small { color: var(--v2-muted); }
.v2-competency-choice { display: flex; gap: .6rem; align-items: center; cursor: pointer; }
.v2-competency-choice small { display: block; color: var(--v2-muted); }
@media (max-width: 599px) {
  .v2-session-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-attribute { padding: .65rem; }
  .v2-attribute h2 { font-size: .85rem; gap: .25rem; }
  .v2-attribute .v2-icon { width: 17px; height: 17px; }
  .v2-attributes { gap: .5rem; }
  .v2-practice-status { font-size: .7rem; }
}
.v2-competency-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.v2-competency-settings .v2-competency-choice { padding: .35rem 0; }
@media (max-width: 420px) { .v2-competency-settings { grid-template-columns: 1fr; } }

/* Dense competency progress: one row per word or skill. */
.v2-metrics-scroll { overflow-x: auto; border: 1px solid var(--v2-border); border-radius: 4px; margin: .75rem 0; background: var(--v2-surface); }
.v2-metrics-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.v2-metrics-table th, .v2-metrics-table td { padding: .55rem .65rem; border-bottom: 1px solid var(--v2-border); text-align: left; vertical-align: middle; }
.v2-metrics-table thead th { white-space: nowrap; font-size: .75rem; }
.v2-metrics-table td[data-competency] { min-width: 125px; }
.v2-metrics-table small { display: block; color: var(--v2-muted); font-size: .7rem; font-weight: normal; margin-top: .2rem; }
.v2-metrics-word-cell { min-width: 190px; max-width: 280px; font-weight: normal; }
.v2-word-link { font-size: 1.5rem; font-weight: 600; text-decoration: none !important; }
.v2-word-link:hover { color: var(--v2-text); }
.v2-word-meaning { display: block; line-height: 1.3; }
.v2-metric-value { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.v2-metric-toggle { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 4px; background: transparent; color: var(--v2-accent); cursor: pointer; }
.v2-metric-toggle:hover, .v2-metric-toggle[aria-pressed="true"] { background: var(--v2-soft); }
.v2-metric-toggle .v2-icon { width: 16px; height: 16px; }
.v2-metrics-table .v2-button { font-size: .75rem; padding: .4rem .5rem; min-height: 36px; white-space: nowrap; }
.v2-word-sheet-heading { margin-bottom: .6rem; }
.v2-attributes { display: block; border: 1px solid var(--v2-border); border-radius: 4px; overflow: hidden; }
.v2-attribute { display: grid; grid-template-columns: 145px minmax(0, 1fr) auto; align-items: center; gap: .8rem; border: 0; border-bottom: 1px solid var(--v2-border); border-radius: 0; padding: .65rem .8rem; }
.v2-attribute:last-child { border-bottom: 0; }
.v2-attribute h2 { font-size: .85rem; }
.v2-attribute-progress { min-width: 0; }
.v2-attribute-progress .v2-cluster { gap: .2rem; }
.v2-attribute-progress .v2-caption { font-size: .7rem; }
.v2-attribute .v2-button { min-height: 36px; }
.v2-practice-ratings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v2-practice-ratings .v2-button { padding-inline: .4rem; }
.v2-practice-previous__result form { margin-left: auto; }
.v2-practice-previous__result .v2-button { min-height: 34px; padding: .35rem .5rem; font-size: .75rem; }
.v2-previous-skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: .6rem; margin-top: .6rem; }
.v2-previous-skills span { display: flex; justify-content: space-between; gap: .3rem; font-size: .7rem; color: var(--v2-muted); }
.v2-previous-skills .is-tested span { color: var(--v2-text); font-weight: 600; }
.v2-session-skills { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.v2-competency-preferences { width: 100%; border-collapse: collapse; }
.v2-competency-preferences th, .v2-competency-preferences td { padding: .6rem .4rem; border-bottom: 1px solid var(--v2-border); }
.v2-competency-preferences th { text-align: left; font-size: .85rem; }
.v2-competency-preferences td { text-align: center; width: 70px; }
.v2-competency-preferences small { display: block; font-weight: normal; font-size: .75rem; color: var(--v2-muted); margin-top: .15rem; }
.v2-competency-power { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--v2-border); border-radius: 4px; color: var(--v2-muted); cursor: pointer; }
.v2-competency-power:has(:checked) { color: var(--v2-accent); border-color: var(--v2-accent); background: var(--v2-tint); }
.v2-competency-power:has(:focus-visible) { outline: 3px solid var(--v2-accent); outline-offset: 3px; }
.v2-competency-preferences tr:has([data-competency-option="visible"]:not(:checked)) { background: var(--v2-soft); }
.v2-competency-preferences tr:has([data-competency-option="visible"]:not(:checked)) > th,
.v2-competency-preferences tr:has([data-competency-option="visible"]:not(:checked)) > td:first-of-type { color: var(--v2-muted); opacity: .55; }
@media (max-width: 600px) {
  .v2-attribute { grid-template-columns: minmax(0, 1fr) auto; gap: .4rem .6rem; padding: .6rem; }
  .v2-attribute h2 { grid-column: 1; }
  .v2-attribute-progress { grid-row: 2; grid-column: 1; }
  .v2-attribute form { grid-column: 2; grid-row: 1 / 3; }
  .v2-metrics-table td[data-competency] { min-width: 115px; }
  .v2-metrics-word-cell { min-width: 140px; }
  .v2-metric-toggle { width: 40px; height: 40px; }
}
.v2-metrics { gap: .9rem; }
.v2-metrics .v2-page-title { font-size: 2rem; margin-bottom: .35rem; }
.v2-metrics-explainer { padding: .4rem 0; }
.v2-metrics-table { line-height: 1.35; }
.v2-metrics-table th, .v2-metrics-table td { padding-block: .4rem; }
.v2-previous-skills { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }
.v2-practice-previous__result { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .3rem .5rem; }
.v2-practice-previous__result .v2-caption { line-height: 1.35; }
.v2-practice-previous__result form { margin: 0; }
@media (max-width: 539px) {
  .v2-fc-flow .v2-practice-word { min-height: 120px; padding: .25rem; }
  .v2-fc-flow .v2-practice-caption { min-height: 24px; line-height: 1.4; }
  .v2-fc-flow .v2-practice-result { min-height: 26px; }
  .v2-practice-previous { padding: .6rem; }
  .v2-previous-skills { gap: .4rem .6rem; margin-top: .25rem; }
  .v2-previous-skills span { display: block; }
  .v2-previous-skills strong { margin-left: .15rem; }
  .v2-practice-previous__result > strong { font-size: .8rem; }
}
.v2-word-sheet-heading { display: flex; align-items: center; justify-content: center; gap: 1.25rem; }
.v2-attribute-progress .v2-fc-meter, .v2-previous-skills .v2-fc-meter { display: block; margin-top: .2rem; }
.v2-metrics-table .v2-metrics-word-cell { position: sticky; left: 0; z-index: 1; background: var(--v2-surface); }

/* Launch selection and previous-answer controls. */
.v2-launch-modes { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.v2-launch-modes legend { margin-bottom: .5rem; font-weight: 600; }
.v2-launch-modes label { display: flex; align-items: center; gap: .4rem; padding: .5rem .65rem; border: 1px solid var(--v2-border); border-radius: 4px; cursor: pointer; font-size: .85rem; }
.v2-launch-modes label:has(:checked) { background: var(--v2-tint); border-color: var(--v2-accent); }
.v2-launch-modes input { accent-color: var(--v2-action); width: 18px; height: 18px; }
.v2-launch-modes .v2-icon { width: 17px; height: 17px; }
.v2 .v2-launch-mode-hidden { display: flex; align-items: center; gap: .4rem; padding: .5rem .65rem; border: 1px dashed var(--v2-border); border-radius: 4px; background: var(--v2-soft); color: var(--v2-muted); font-size: .85rem; text-decoration: none; }
.v2 .v2-launch-mode-hidden:hover { border-color: var(--v2-accent); color: var(--v2-accent); }
#competencies { scroll-margin-top: calc(var(--v2-header) + 1rem); }
.v2-previous-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem; }
.v2-previous-word { min-width: 0; }
.v2-previous-word > div { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .7rem; }
.v2-previous-reading { display: grid; text-align: center; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.v2-previous-reading .v2-pinyin { font-size: .8rem; }
.v2-previous-reading strong { font-size: 1.65rem; line-height: 1.3; }
.v2-previous-meaning { font-size: .85rem; line-height: 1.35; }
.v2-previous-outcome { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 0 .35rem; text-align: right; font-size: .85rem; }
.v2-previous-outcome small { grid-column: 1 / -1; font-size: .7rem; color: var(--v2-muted); max-width: 150px; }
.v2-score-change { font-weight: 600; }
.v2-feedback-skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; margin-top: .65rem; }
.v2-feedback-skill { min-width: 0; }
.v2-feedback-skill > div:first-child { display: flex; gap: .3rem; align-items: baseline; font-size: .75rem; }
.v2-feedback-skill strong { margin-left: auto; }
.v2-feedback-skill .v2-score-change { white-space: nowrap; font-size: .7rem; }
.v2-feedback-skill.is-tested > div:first-child { font-weight: 600; }
.v2-feedback-before { color: var(--v2-muted); font-size: .65rem; }
.v2-change-meter { position: relative; height: 8px; border-radius: 3px; background: var(--v2-soft); margin: .2rem 0; overflow: hidden; }
.v2-change-meter i { position: absolute; top: 0; height: 100%; }
.v2-change-base { left: 0; background: var(--v2-accent); opacity: .55; }
.v2-change-gain { background: #16a34a; }
.v2-change-loss { background: #dc2626; }
.v2-change-meter .v2-change-before { width: 2px; background: var(--v2-text); transform: translateX(-1px); }
@media (max-width: 539px) {
  .v2-feedback-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .v2-feedback-skill > div:first-child { flex-wrap: wrap; }
  .v2-feedback-skill .v2-score-change { flex-basis: 100%; }
}
.v2-previous-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.v2-previous-actions .v2-cluster, .v2-previous-word-actions { display: flex; gap: .35rem; }
.v2-previous-word-actions { margin-left: auto; }
.v2-previous-actions .v2-button { min-height: 36px; padding: .3rem .55rem; font-size: .75rem; }
.v2-metrics-pinyin { display: block; color: var(--v2-muted); font-size: .75rem; }
.v2 .v2-word-link { color: var(--v2-text); display: inline-block; }
.v2 .v2-word-link:hover { color: var(--v2-accent); }
/* A bounded scroll region keeps the same column headings visible on both axes. */
.v2-metrics-scroll { max-height: calc(100dvh - var(--v2-header) - 2rem); overflow: auto; }
.v2--native .v2-metrics-scroll { max-height: calc(100dvh - 150px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
.v2-metrics-table thead th { position: sticky; top: 0; z-index: 2; background: var(--v2-surface); box-shadow: 0 1px var(--v2-border); }
.v2-metrics-table thead th:first-child { left: 0; z-index: 3; }
@media (max-width: 600px) {
  .v2-metrics-word-cell { min-width: 112px; max-width: 145px; }
  .v2-previous-heading { gap: .5rem; }
  .v2-previous-outcome small { max-width: 115px; }
}

/* Keep recorded speaking controls steady while permission and grading resolve. */
.v2-speech-practice { display: grid; gap: .65rem; }
.v2-speech-practice p { margin: 0; }
.v2-speech-status { min-height: 2.8em; }

/* Level overview charts share the word table's theme and Turbo updates. */
.v2-metrics-overview { border: 1px solid var(--v2-border); border-radius: 6px; padding: 1rem; margin-block: .8rem 1.2rem; background: var(--v2-surface); }
.v2-metrics-overview > summary { cursor: pointer; font-weight: 600; }
.v2-metrics-overview > p { margin-block: .7rem; }
.v2-overview-totals { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; font-size: .85rem; }
.v2-overview-totals strong { font-size: 1.4rem; margin-right: .25rem; }
.v2-overview-chart { margin-block: 1.2rem; }
.v2-overview-chart .v2-h3 { font-size: 1rem; margin-bottom: .5rem; }
.v2-chart-legend { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: .8rem; }
.v2-chart-legend span::before { content: ""; display: inline-block; width: .65rem; height: .65rem; margin-right: .3rem; background: var(--chart-color); border-radius: 2px; }
.v2-metrics-overview .is-complete { --chart-color: var(--v2-success, #43874e); }
.v2-metrics-overview .is-learning { --chart-color: var(--v2-accent); }
.v2-metrics-overview .is-unstarted { --chart-color: var(--v2-border); }
.v2-level-coverage { display: grid; grid-template-columns: 110px minmax(0, 1fr) 45px; gap: .8rem; align-items: center; margin-block: .8rem; }
.v2-level-name { font-size: .85rem; }
.v2-level-name small, .v2-level-count small { display: block; color: var(--v2-muted); font-size: .7rem; font-weight: 400; }
.v2-level-count { text-align: right; }
.v2-word-chart { display: flex; height: 17px; border-radius: 3px; overflow: hidden; }
.v2-word-chart span { background: var(--chart-color); }
.v2-level-coverage small { font-size: .7rem; }
.v2-level-competencies { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: .8rem; padding-block: .8rem; border-bottom: 1px solid var(--v2-border); }
.v2-level-skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: .75rem; }
.v2-level-skill { min-width: 0; font-size: .75rem; }
.v2-level-skill > small { display: block; color: var(--v2-muted); font-size: .7rem; }
.v2-average-bar { display: flex; align-items: center; gap: .4rem; margin-block: .35rem; }
.v2-average-bar progress { width: 100%; min-width: 0; flex: 1; }
.v2-average-bar strong { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .v2-metrics-overview { padding: .75rem; }
  .v2-level-coverage { grid-template-columns: 65px minmax(0, 1fr) 30px; gap: .5rem; }
  .v2-level-competencies { grid-template-columns: 1fr; gap: .6rem; }
  .v2-level-skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.v2-overview-notes { margin-top: .6rem; }
.v2-overview-notes summary { cursor: pointer; }
@media (max-width: 600px) {
  .v2-overview-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .v2-overview-totals strong { display: block; }
}

/* Flashcard pages share one width; the tab's content no longer chooses it. */
.v2-flashcards-workspace .v2-fc-section { width: 100%; max-width: calc(var(--v2-container) + 2 * var(--v2-gutter)); padding-block: 1.5rem; }
.v2-flashcards-workspace .v2-fc-section.v2-practice-section { padding-block: .75rem; }
.v2 .v2-flashcards-title { font-size: 1.8rem; line-height: 1.25; margin: 0; }
.v2-flashcards-workspace .v2-flashcards-subtitle { font-size: 1.4rem; line-height: 1.3; margin: 0; }
.v2-flashcards-workspace .v2-fc-tabs { margin-top: .5rem; }
.v2-previous-actions .v2-button[aria-pressed="true"] { background: var(--v2-tint); border-color: var(--v2-accent); color: var(--v2-accent); box-shadow: inset 0 -3px var(--v2-accent); }
.v2-nudge-selected { align-self: center; }
.v2-previous-actions .v2-cluster { flex-wrap: wrap; }
.v2-practice-word__part { border: 1px solid transparent; border-radius: 5px; padding: .12rem .4rem; }
.v2-metrics-filters { grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto; }
.v2-help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.v2-help-section { border: 1px solid var(--v2-border); border-radius: 5px; padding: 1rem; background: var(--v2-surface); scroll-margin-top: calc(var(--v2-header) + 1rem); }
.v2-help-section h3 { font-size: 1.1rem; }
.v2-help-section p, .v2-help-section ul, .v2-help-definitions { margin-block: .75rem; font-size: .9rem; line-height: 1.6; }
.v2-help-section ul { padding-left: 1.25rem; }
.v2-help-section li + li { margin-top: .5rem; }
.v2-help-definitions dt { font-weight: 600; }
.v2-help-definitions dd { margin: 0 0 .6rem; }
@media (max-width: 900px) { .v2-metrics-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .v2-help-grid { grid-template-columns: 1fr; } }

html:has(.v2-flashcards-workspace) { scrollbar-gutter: stable; }

/* Beta landing: available features and future migrations. */
.v2-beta-landing { display: grid; gap: 2rem; padding-block: 2.5rem; }
.v2-beta-intro { display: grid; gap: .75rem; }
.v2 .v2-beta-intro h1 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.v2-beta-intro .v2-lead { max-width: 70ch; font-size: 1rem; line-height: 1.6; }
.v2 .v2-beta-section-title { font-size: 1.1rem; letter-spacing: -.015em; margin-bottom: .75rem; }
.v2-beta-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.v2-beta-feature { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; grid-column: 1 / -1; padding: 1.5rem; border: 1px solid var(--v2-border); border-radius: var(--v2-radius); background: var(--v2-surface); }
.v2-beta-feature--course { border-color: var(--v2-accent); border-left-width: 4px; }
.v2-beta-check { display: grid; place-items: center; align-self: start; width: 28px; height: 28px; border-radius: 50%; color: var(--v2-success); background: var(--v2-success-bg); }
.v2-beta-feature-copy { display: grid; gap: .6rem; }
.v2 .v2-beta-feature h3 { font-size: 1.4rem; }
.v2 .v2-beta-feature--course h3 { font-size: 1.8rem; }
.v2-beta-feature p { font-size: .9rem; line-height: 1.6; max-width: 75ch; }
.v2 .v2-beta-free { margin-top: .2rem; color: var(--v2-accent); }
.v2-beta-feature--support { grid-column: span 1; grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.v2-beta-feature-copy .v2-button { justify-self: start; margin-top: .35rem; }
.v2-beta-coming { display: grid; gap: 1rem; border-top: 1px solid var(--v2-border); padding-top: 1.5rem; font-size: .875rem; }
.v2-beta-pending { display: flex; flex-wrap: wrap; gap: .75rem 2rem; list-style: none; padding: 0; margin: 0; color: var(--v2-muted); }
.v2-beta-pending li { display: flex; align-items: center; gap: .5rem; }
.v2-beta-pending-mark { width: 14px; height: 14px; border: 1px solid var(--v2-muted); border-radius: 3px; flex-shrink: 0; }
.v2-beta-ai { color: var(--v2-muted); }
.v2-beta-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; font-size: .85rem; }
@media (max-width: 700px) {
  .v2-beta-landing { padding-block: 1.5rem; gap: 1.5rem; }
  .v2-beta-checklist { grid-template-columns: 1fr; }
  .v2-beta-feature { grid-template-columns: auto minmax(0, 1fr); padding: 1rem; gap: .75rem; }
  .v2-beta-feature > .v2-button { grid-column: 2; justify-self: start; }
  .v2-beta-pending { display: grid; gap: .6rem; }
}
@media (max-width: 600px) {
  .v2-flashcards-workspace .v2-fc-tabs { gap: 0; flex-wrap: nowrap; }
  .v2-flashcards-workspace .v2-fc-tabs a { flex: 1; padding: .75rem .25rem; text-align: center; font-size: .8rem; }
}

/* Android beta page composition; shared container and activity widths stay shared. */
.v2-android-beta__layout { align-items: start; }
.v2-android-beta__screenshots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--v2-gap); }
.v2-android-beta__screenshot { margin: 0; min-width: 0; }
.v2-android-beta__screenshot img { display: block; width: 100%; max-width: 280px; height: auto; margin-inline: auto; border: 1px solid var(--v2-border); border-radius: var(--v2-radius); }
.v2-android-beta__screenshot figcaption { margin-top: var(--v2-space-3); text-align: center; }
.v2-android-beta__form > * + * { margin-top: 0; }

.v2-save-state { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: flex; align-items: center; gap: .5rem; max-width: calc(100vw - 2rem); padding: .5rem .75rem; border-radius: .75rem; background: var(--v2-surface, Canvas); box-shadow: 0 2px 12px #0002; }
.v2-save-state[hidden] { display: none; }

/* Web Practice links remain visible, including in the collapsed icon rail. */
.v2-navigation-group--static { margin-block: 4px; }
.v2-navigation-group--static.v2-navigation-group--practice { padding-block: 6px; border-block: 1px solid var(--v2-border); }
.v2-navigation-group__heading { padding: .65rem .65rem .25rem; color: var(--v2-muted); font-size: .7rem; font-weight: 600; }
.v2--web .v2-menu__panel [data-v2-course-navigation] > .v2-icon { color: var(--v2-accent); }
.v2--web .v2-menu__panel [data-v2-course-navigation] > span { font-weight: 600; }
.v2-menu__panel .v2-navigation-group--static .v2-navigation-group__links { margin: 0; padding: 0; border: 0; }
@media (min-width: 1080px) {
  .v2--sidebar .v2-navigation-group--static .v2-navigation-group__heading { padding: .65rem .8125rem .25rem; }
  .v2--sidebar .v2-navigation-group--static .v2-navigation-group__links { margin: 0; padding: 0; border: 0; gap: 6px; }
  .v2--sidebar .v2-desktop-nav .v2-navigation-group--static .v2-nav-link { padding: 10px 12px; gap: 12px; font-size: .82rem; }
  :root[data-sidebar="collapsed"] .v2--sidebar .v2-navigation-group--static .v2-navigation-group__heading { display: none; }
  :root[data-sidebar="collapsed"] .v2--sidebar .v2-navigation-group--static .v2-navigation-group__links { display: grid; }
  :root[data-sidebar="collapsed"] .v2--sidebar .v2-desktop-nav .v2-navigation-group--static .v2-nav-link { padding-inline: 0; }
}
