:root {
  /* ---- V2 design tokens (source: codex-agent/mockup0710-v2/styles.css, frozen) ---- */
  --paper:        #f7f7f2;
  --surface:      #ffffff;
  --surface-soft: #eef0ed;
  --ink:          #17191d;
  --ink-soft:     #45494f;
  --muted:        #6b6f75;  /* 调深至 WCAG AA：白底 5.05 / 纸底 4.7（原 #767b81 仅 4.27/3.97 不达标） */
  --line:         #d9dcd7;
  --line-strong:  #b9beb8;
  --blue:         #1654c0;
  --blue-soft:    #e6edfb;
  --red:          #dc3f31;
  --red-soft:     #f9e8e5;
  --mint:         #cfe4d8;
  --mint-deep:    #2f7054;
  --gold:         #d8a62b;
  --gold-soft:    #f6edcf;
  --sky:          #dcebf4;

  /* legacy aliases — v1 skin variables mapped onto V2 tokens so the not-yet-
     rebuilt content areas keep working during the phased rebuild; delete once
     phases C/D stop referencing them */
  --bg:        var(--paper);
  --bg-2:      var(--surface-soft);
  --card:      var(--surface);
  --hair:      var(--line);
  --hair-2:    var(--line-strong);
  --clay:      var(--red);
  --clay-deep: #b53527;
  --clay-soft: var(--red-soft);
  --clay-tint: #fdf3f1;
  --amber:     var(--gold);
  --green:     var(--mint-deep);

  --shadow-sm: 0 1px 2px rgba(23,25,29,.05), 0 1px 3px rgba(23,25,29,.05);
  --shadow-md: 0 6px 22px rgba(23,25,29,.09);
  --shadow-fab: 0 8px 20px rgba(220,63,49,.28);

  --serif: "Newsreader", "Iowan Old Style", Georgia, "Songti SC", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;

  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
button, select, input { touch-action: manipulation; font-family: inherit; }

html, body { margin: 0; height: 100%; }
body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------------- header ---------------- */
.app-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + var(--safe-t)) 18px 12px;
  background: rgba(246,240,230,.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hair);
  z-index: 5;
}
.brand { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.brand .logo { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
.brand .badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: #fff;
  background: linear-gradient(160deg, var(--clay), var(--clay-deep));
  padding: 2px 6px; border-radius: 6px; transform: translateY(-2px);
}
.brand .zh { font-size: 12.5px; font-weight: 500; color: var(--muted); }

/* ---------------- V2 unified topbar (mockup0710-v2) ----------------
   Fixed 3-column structure shared by all module pages: origin button
   (home / back, same slot) | left-aligned page title | right action group
   (? help is always the right-most control). The homepage uses .home-topbar
   with a brand lockup instead. */
.topbar {
  flex: 0 0 auto;
  min-height: calc(58px + var(--safe-t));
  padding: var(--safe-t) 14px 0;
  display: flex; align-items: center; gap: 10px;
  background: rgba(247, 247, 242, .97);
  border-bottom: 1px solid var(--line);
  z-index: 5;
}
.module-topbar { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; }  /* first col = the home button's own width, so button and title read as one aligned group */
.home-topbar { padding-left: 16px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.brand-lockup img { width: 28px; height: 28px; object-fit: contain; }
.brand-lockup strong { font-family: var(--serif); font-size: 16px; font-weight: 600; white-space: nowrap; }
.brand-lockup strong span { margin-left: 3px; color: var(--ink-soft); font-family: var(--sans); font-size: 11px; font-weight: 600; }
.level-note { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 700; }
.icon-button {
  flex: 0 0 auto; width: 38px; height: 38px; padding: 0;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); cursor: pointer;
}
.icon-button.quiet { border-color: transparent; background: transparent; }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar-control { border-radius: 8px; }
.topbar-control:hover, .topbar-control:focus-visible { background: var(--surface-soft); }
.module-origin-button {
  /* icon-only home button (user 2026-07-11: no "首页" text) — the outlined
     blue pill + house glyph reads as "go home"; the back variant stays a
     bare ink chevron so the two are never confusable */
  width: 42px; height: 34px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #b8c8e3; border-radius: 6px;
  color: var(--blue); background: var(--surface); cursor: pointer;
}
.module-origin-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.module-origin-button.is-back { width: 36px; border-color: transparent; border-radius: 8px; color: var(--ink); background: transparent; }
.module-origin-button:hover, .module-origin-button:focus-visible { border-color: var(--blue); background: var(--blue-soft); }
.module-origin-button.is-back:hover, .module-origin-button.is-back:focus-visible { border-color: transparent; background: var(--surface-soft); }
.module-topbar h1 {
  min-width: 0; margin: 0; overflow: hidden;
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  /* line-height matches the 34px origin button so the two center on the same
     axis; 1px optical lift corrects Newsreader's low-sitting glyphs */
  line-height: 34px; padding-bottom: 1px;
  letter-spacing: .01em;
  text-overflow: ellipsis; white-space: nowrap;
}
.module-topbar-actions { min-width: 38px; display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.module-topbar-actions .topbar-control { color: var(--muted); }

/* .sec-row — the desktop section-pill row, now BELOW the topbar (the V2
   3-column topbar has no room for it). On phones the row hides and the
   bottom .mod-tabbar takes over (same dual-track behavior as before). */
.sec-row { flex: 0 0 auto; display: flex; padding: 9px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.sec-row .sec-nav { min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.sec-row .sec-nav::-webkit-scrollbar { display: none; }

/* .track-row — the shadowing track selector, moved out of the old header onto
   its own full-width row below the V2 topbar (pre-stage for the V2 context bar). */
.track-row { flex: 0 0 auto; display: flex; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.track-row .track-wrap { flex: 1 1 auto; min-width: 0; }
.track-row .track-select { width: 100%; max-width: none; flex: 1 1 auto; padding: 8px 32px 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 13px; box-shadow: none; }

/* ---------------- V2 homepage: hero (welcome/resume) + module tiles + footer ---------------- */
.home-scroll { padding-bottom: 26px; }
.resume-hero {
  position: relative;
  min-height: 218px;
  background-color: #fff;
  background-image: url("assets/listen-editorial-refined.png");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.resume-copy {
  width: 62%; min-height: 218px; padding: 23px 30px 20px 18px;
  display: flex; flex-direction: column; align-items: flex-start;
  background: rgba(255,255,255,.94);
  clip-path: polygon(0 0, 86% 0, 100% 50%, 86% 100%, 0 100%);
}
.resume-copy .eyebrow { color: var(--clay-deep); }  /* 深红：小字红达 WCAG AA（--red #dc3f31 在 10px 仅 4.38） */
.resume-copy h1 { margin: 7px 0 8px; font-family: var(--serif); font-size: 26px; line-height: 1.12; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.resume-meta { display: flex; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 600; }
.resume-action {
  margin-top: auto; min-height: 42px; padding: 0 14px 0 11px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 999px; color: #fff; background: var(--blue);
  font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.resume-action svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.home-section { padding: 22px 14px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-heading h2 { margin: 2px 0 0; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.section-heading > span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.module-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 14px; max-width: 720px; }
.module-tile {
  position: relative; min-width: 0; min-height: 126px; padding: 14px;
  display: flex; flex-direction: column; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); text-align: left; cursor: pointer; overflow: hidden;
  color: inherit; text-decoration: none;
}
.module-tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--tile-accent); }
.module-tile > svg { width: 27px; height: 27px; margin-left: 2px; fill: none; stroke: var(--tile-accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile-fr { position: absolute; top: 10px; right: 10px; max-width: 110px; color: var(--tile-soft); font-family: var(--serif); font-size: 17px; line-height: 1; white-space: nowrap; overflow: hidden; }
.module-tile strong { margin-top: auto; padding-top: 10px; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.module-tile small { margin-top: 4px; color: var(--muted); font-size: 10.5px; }
.tile-blue { --tile-accent: var(--blue); --tile-soft: #a9c0ed; }
.tile-red { --tile-accent: var(--red); --tile-soft: #edb3ac; }
.tile-mint { --tile-accent: var(--mint-deep); --tile-soft: #a6cabb; }
.tile-gold { --tile-accent: #a47305; --tile-soft: #dfc981; }
.tile-sky { --tile-accent: #25719e; --tile-soft: #a5c8dd; }
.tile-soon { --tile-accent: #9da2a5; --tile-soft: #cbd0cc; background: #f0f1ee; cursor: default; }
@media (hover: hover) { .module-tile:not(.tile-soon):hover { border-color: var(--tile-accent); box-shadow: var(--shadow-md); } }
.home-footer { flex: 0 0 auto; min-height: calc(57px + var(--safe-b)); padding: 5px 14px calc(6px + var(--safe-b)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-soft); background: rgba(247,247,242,.98); border-top: 1px solid var(--line); z-index: 6; }
.home-brand-link { padding: 2px 10px; display: flex; flex-direction: column; align-items: center; gap: 1px; border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
.home-brand-link span { font-size: 11px; font-weight: 700; }
.home-brand-link small { color: var(--muted); font-size: 9px; letter-spacing: .04em; }
.home-brand-link:hover, .home-brand-link:focus-visible { background: var(--surface-soft); }
.home-legal { color: var(--muted); font-size: 9px; }
@media (max-width: 350px) {
  .home-section { padding-left: 11px; padding-right: 11px; }
  .module-grid { gap: 8px; }
  .module-tile { min-height: 120px; padding: 12px; }
  .tile-fr { display: none; }
}

/* footer credit as an About-sheet trigger (homepage) */
.credit-link { border: 0; padding: 4px 8px; border-radius: 6px; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.credit-link:hover, .credit-link:focus-visible { background: var(--surface-soft); }

/* ---------------- Vocabulary V2: 3 workspaces (mockup0710-v2) ---------------- */
.primary-wide { width: calc(100% - 28px); min-height: 48px; margin: 18px 14px 0; border: 0; border-radius: 8px; color: #fff; background: var(--blue); font-size: 14px; font-weight: 700; cursor: pointer; }
.mini-choice { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--surface-soft); }
.mini-choice button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-size: 12px; white-space: nowrap; cursor: pointer; }
.mini-choice button.is-active { color: #fff; background: var(--blue); }
.practice-head { padding: 24px 14px 18px; border-bottom: 1px solid var(--line); }
.practice-head h2 { margin: 4px 0 7px; font-family: var(--serif); font-size: 27px; font-weight: 600; }
.practice-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.practice-builder { margin: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.builder-row { min-height: 72px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.builder-row:last-child { border-bottom: 0; }
.builder-row > span { display: flex; flex-direction: column; gap: 4px; }
.builder-row > span b { font-size: 13px; }
.builder-row > span small { color: var(--muted); font-size: 11px; }
.builder-chips { padding: 12px; border-bottom: 1px solid var(--line); }
.builder-chips:last-child { border-bottom: 0; }
.builder-chips-label { margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.preset-grid { display: grid; gap: 6px; }
.preset-grid + .preset-grid { margin-top: 6px; }
.preset-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.preset-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.preset-grid .wf-chip { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 350px) {
  .preset-grid { gap: 4px; }
  .preset-grid .wf-chip { padding-left: 5px; padding-right: 5px; font-size: 11px; }
}

.v2-toolbar { padding: 10px 14px; display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.search-box { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 11px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.search-box svg { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.search-box input::placeholder { color: #979ca1; }
.filter-button { flex: 0 0 auto; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 12px; font-weight: 700; cursor: pointer; }
.filter-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.filter-button b { min-width: 17px; height: 17px; padding: 0 4px; display: inline-grid; place-items: center; border-radius: 999px; color: #fff; background: var(--red); font-size: 10px; }
.content-type-tabs { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 56px; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.content-type-tabs button { position: relative; min-width: 0; padding: 7px 3px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; color: var(--muted); background: transparent; font-size: 12px; font-weight: 600; cursor: pointer; }
.content-type-tabs button::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 3px; background: transparent; }
.content-type-tabs button.is-active { color: var(--blue); }
.content-type-tabs button.is-active::after { background: var(--blue); }
.content-type-tabs small { color: var(--muted); font-size: 9px; font-weight: 700; line-height: 1; }
.content-type-tabs .mot-code { color: var(--blue); }
.content-type-tabs .expr-code { color: var(--red); }
.library-head { padding: 18px 14px 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.library-head h2 { margin: 4px 0 6px; font-family: var(--serif); font-size: 27px; font-weight: 600; }
.library-head p { max-width: 250px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.audio-count { flex: 0 0 auto; padding: 8px; display: flex; flex-direction: column; align-items: center; border-left: 2px solid var(--red); color: var(--muted); font-size: 9px; }
.audio-count b { color: var(--ink); font-family: var(--serif); font-size: 22px; }
.active-filters { display: flex; gap: 6px; margin: 10px 14px; overflow-x: auto; scrollbar-width: none; }
.active-filters::-webkit-scrollbar { display: none; }
.active-filters button { flex: 0 0 auto; height: 28px; padding: 0 9px; border: 1px solid #aec1e5; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: 11px; cursor: pointer; }
.active-filters b { margin-left: 3px; }

.resource-list { border-top: 1px solid var(--line-strong); background: var(--surface); }
.resource-row { position: relative; width: 100%; min-height: 96px; padding: 0 14px; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: stretch; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.resource-row.phrase-row { background: #f2f7fa; }
.resource-rail { padding: 14px 0 10px; display: flex; flex-direction: column; align-items: flex-start; }
.resource-kind { width: 100%; padding-top: 4px; border-top: 2px solid currentColor; color: var(--blue); font-size: 9px; font-weight: 700; }
.resource-kind.phrase { color: var(--red); }
.resource-speak { width: 28px; height: 28px; margin-top: 12px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); background: var(--surface); cursor: pointer; }
.phrase-row .resource-speak { color: var(--red); }
.resource-speak svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.resource-open { min-width: 0; min-height: 95px; padding: 12px 0 12px 12px; display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; gap: 8px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.resource-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.resource-copy b { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.15; word-break: break-word; }
.resource-copy small { color: var(--ink-soft); font-size: 12px; line-height: 1.4; }
.resource-copy em { color: var(--muted); font-size: 10px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resource-arrow { display: flex; align-items: center; justify-content: flex-end; color: var(--muted); }
.resource-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.mine-hero-v2 { padding: 20px 14px 16px; border-bottom: 1px solid var(--line); }
.mine-hero-v2 h2 { margin: 4px 0 6px; font-family: var(--serif); font-size: 27px; font-weight: 600; }
.mine-hero-v2 p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.mine-hero-v2 > div { display: flex; gap: 18px; margin-top: 16px; }
.mine-hero-v2 > div span { display: flex; align-items: baseline; gap: 4px; color: var(--muted); font-size: 11px; }
.mine-hero-v2 > div b { color: var(--ink); font-family: var(--serif); font-size: 21px; }
.vocab-add-v2 { margin: 14px; height: 44px; display: grid; grid-template-columns: 1fr 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.vocab-add-v2 input { min-width: 0; padding: 0 12px; border: 0; outline: 0; background: transparent; font-size: 14px; }
.vocab-add-v2 button { border: 0; color: #fff; background: var(--red); font-size: 24px; cursor: pointer; }
.mine-src { color: var(--muted); font-size: 10px; }

/* entry detail sheet */
.entry-sheet { width: 100%; max-width: 560px; margin: 0 auto; max-height: min(82vh, 640px); overflow-y: auto; padding: 8px 16px calc(18px + var(--safe-b)); border-radius: 16px 16px 0 0; background: var(--surface); box-shadow: 0 -20px 50px rgba(0,0,0,.16); animation: info-sheet-in .22s ease-out; }
.entry-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.entry-top h2 { margin: 4px 0 1px; font-family: var(--serif); font-size: 34px; line-height: 1.05; word-break: break-word; }
.entry-top p { margin: 5px 0 0; color: var(--ink-soft); font-size: 14px; }
.entry-kind-label { color: var(--blue); }
.entry-kind-label.is-phrase { color: var(--clay-deep); }
.entry-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 10px; }
.entry-actions button { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 12px; cursor: pointer; }
.entry-actions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.entry-actions .is-saved { color: var(--red); border-color: #edb8b2; background: var(--red-soft); }
.entry-actions .is-saved svg { fill: var(--red); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.entry-meta span { padding: 5px 8px; border-radius: 999px; color: var(--muted); background: var(--surface-soft); font-size: 11px; }
.related-expression { margin: 16px 0 0; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.related-expression .eyebrow { color: var(--clay-deep); }
.related-expression b { display: block; margin-top: 7px; font-family: var(--serif); font-size: 18px; }
.related-expression p { margin: 4px 0 0; color: var(--ink-soft); font-size: 12px; }
.entry-conjugation { width: 100%; min-height: 58px; margin-top: 8px; padding: 0; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.entry-conjugation > span { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.entry-conjugation b { font-size: 13px; }
.entry-conjugation small { color: var(--muted); font-size: 11px; }
.entry-conjugation > svg { flex: 0 0 auto; width: 19px; height: 19px; fill: none; stroke: var(--blue); stroke-width: 1.8; }

@media (max-width: 350px) {
  .resource-row { grid-template-columns: 42px minmax(0, 1fr); padding-left: 10px; padding-right: 10px; }
  .resource-open { padding-left: 8px; }
  .resource-copy b { font-size: 19px; }
  .library-head { padding-left: 10px; padding-right: 10px; }
  .mini-choice button { padding-left: 8px; padding-right: 8px; }
}

/* ---------------- Conjugation V2: identity band + 3 view modes + verb-library sheet ---------------- */
.verb-identity-v2 { position: relative; padding: 14px 62px 12px 16px; display: grid; grid-template-columns: 1fr; align-content: center; gap: 10px; border-bottom: 1px solid var(--line); background: var(--surface); }
.verb-identity-v2::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--blue); }
.verb-identity-v2 h2 { margin: 2px 0 0; font-family: var(--serif); font-size: 34px; line-height: .95; font-weight: 600; word-break: break-word; }
.verb-identity-v2 p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.verb-identity-meta { display: flex; gap: 0; align-items: center; }
.verb-identity-meta span { min-width: 0; padding: 0 12px; display: inline-flex; align-items: baseline; gap: 5px; border-left: 1px solid var(--line-strong); }
.verb-identity-meta span:first-child { padding-left: 0; border-left: 0; }
.verb-identity-meta b { color: var(--blue); font-size: 10px; }
.verb-identity-meta small { color: var(--muted); font-family: var(--serif); font-size: 12px; }
.verb-identity-v2 > .vi-save { position: absolute; right: 14px; top: 50%; width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: transparent; transform: translateY(-50%); cursor: pointer; }
.verb-identity-v2 > .vi-save svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.verb-identity-v2 > .vi-save.is-saved { color: var(--red); border-color: #edb8b2; background: var(--red-soft); }
.verb-identity-v2 > .vi-save.is-saved svg { fill: var(--red); }
.conj-mode-switch { min-height: 46px; padding: 0 10px; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); background: var(--paper); }
.conj-mode-switch button { position: relative; border: 0; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.conj-mode-switch button::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 3px; background: transparent; }
.conj-mode-switch button.is-active { color: var(--blue); }
.conj-mode-switch button.is-active::after { background: var(--blue); }
.conj-mode-view[hidden] { display: none; }
.tense-overview-bar { min-height: 64px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); }
.tense-overview-bar > span { display: flex; flex-direction: column; gap: 4px; }
.tense-overview-bar > span b { font-size: 12px; }
.tense-overview-bar > span small { color: var(--muted); font-size: 10px; }
.tense-jumps { display: flex; gap: 4px; }
.tense-jumps button { min-width: 32px; height: 32px; padding: 0 4px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 9px; font-weight: 700; cursor: pointer; }
.tense-section-v2 { scroll-margin-top: 4px; border-bottom: 8px solid var(--paper); background: var(--surface); }
.tense-section-v2 > header { min-height: 58px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.tense-section-v2 > header > div { display: grid; grid-template-columns: 10px 1fr; column-gap: 8px; align-items: center; }
.tense-section-v2 > header b { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.tense-section-v2 > header small { grid-column: 2; color: var(--muted); font-size: 10px; }
.tense-dot { width: 7px; height: 7px; border-radius: 50%; }
.tense-dot.blue { background: var(--blue); }
.tense-dot.red { background: var(--red); }
.tense-dot.gold { background: var(--gold); }
.tense-dot.mint { background: var(--mint-deep); }
.tense-dot.violet { background: #696d73; }
.tense-compact-grid { display: grid; grid-template-columns: 1fr 1fr; }
.compact-form { min-width: 0; min-height: 52px; padding: 8px 9px; display: grid; grid-template-columns: 52px minmax(0, 1fr) 16px; align-items: center; gap: 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.compact-form:nth-child(odd) { border-right: 1px solid var(--line); }
.compact-form span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.compact-form b { min-width: 0; font-family: var(--serif); font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compact-form svg { width: 14px; height: 14px; fill: none; stroke: var(--blue); stroke-width: 1.7; }
.compare-head { padding: 20px 14px 14px; }
.compare-head h2 { margin: 4px 0 7px; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.compare-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.compare-pickers { padding: 0 14px 14px; display: grid; grid-template-columns: 1fr 22px 1fr; align-items: center; gap: 5px; }
.compare-pickers > span { color: var(--muted); text-align: center; }
.compare-pickers select { min-width: 0; height: 40px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-family: var(--serif); font-size: 13px; color: var(--ink); }
.tense-use-contrast { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tense-use-contrast > div { min-height: 66px; padding: 12px; display: flex; flex-direction: column; gap: 5px; }
.tense-use-contrast > div + div { border-left: 1px solid var(--line); }
.tense-use-contrast .pc { background: var(--red-soft); }
.tense-use-contrast .imp { background: var(--gold-soft); }
.tense-use-contrast b { font-size: 12px; }
.tense-use-contrast span { color: var(--muted); font-size: 10.5px; line-height: 1.4; }
.compare-table-v2 { background: var(--surface); }
.compare-row { min-height: 50px; padding: 0 10px; display: grid; grid-template-columns: 66px 1fr 1fr; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); }
.compare-row span { color: var(--muted); font-size: 10px; }
.compare-row b { font-family: var(--serif); font-size: 14.5px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.compare-labels { min-height: 38px; background: var(--surface-soft); }
.compare-labels b { color: var(--ink-soft); font-family: var(--sans); font-size: 10px; }
.compare-example { margin: 14px; padding: 14px; border-left: 4px solid var(--blue); background: var(--blue-soft); }
.compare-example p { margin: 8px 0 7px; font-family: var(--serif); font-size: 17px; }
.compare-example p i { color: #9b7109; font-style: normal; }
.compare-example p b { color: var(--red); }
.compare-example small { display: flex; gap: 12px; font-size: 10px; }
.compare-example small i { color: #8c6b18; font-style: normal; }
.compare-example small b { color: var(--red); }
.formula-list { border-top: 1px solid var(--line-strong); background: var(--surface); }
.formula-list article { padding: 14px; display: grid; grid-template-columns: 36px 1fr; gap: 10px; border-bottom: 1px solid var(--line); }
.formula-list article > span { color: var(--red); font-family: var(--serif); font-size: 15px; }
.formula-list article > div { display: flex; flex-direction: column; gap: 4px; }
.formula-list b { font-family: var(--serif); font-size: 17px; }
.formula-list small { color: var(--muted); font-size: 11px; }
.formula-list p { margin: 8px 0 0; color: var(--ink-soft); font-size: 13px; }
.formula-list em { color: var(--blue); font-style: normal; }
.formula-list strong { color: var(--red); font-family: var(--serif); }
.verb-library-sheet { height: min(78vh, 620px); display: flex; flex-direction: column; }  /* FIXED height: switching tabs must not resize the sheet */
.verb-library-tabs { flex: 0 0 auto; margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); }
.verb-library-tabs button { min-height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.verb-library-tabs button + button { border-left: 0; }
.verb-library-tabs button:first-child { border-radius: 7px 0 0 7px; }
.verb-library-tabs button:last-child { border-radius: 0 7px 7px 0; }
.verb-library-tabs button.is-active { color: #fff; border-color: var(--blue); background: var(--blue); }
.verb-library-note { flex: 0 0 auto; margin: 12px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.verb-library-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; border-top: 1px solid var(--line); }
.verb-library-body > button { width: 100%; min-height: 58px; padding: 8px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 8px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.verb-library-body > button > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.verb-library-body b { font-family: var(--serif); font-size: 17px; }
.verb-library-body small { color: var(--muted); font-size: 10px; }
.verb-library-body em { color: var(--blue); font-size: 10px; font-style: normal; }
.verb-library-body svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.vl-add { flex: 0 0 auto; margin: 10px 0 12px; height: 42px; display: grid; grid-template-columns: 1fr 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.vl-add input { min-width: 0; padding: 0 12px; border: 0; outline: 0; background: transparent; font-size: 13px; }
.vl-add button { border: 0; color: #fff; background: var(--blue); font-size: 22px; cursor: pointer; }
@media (max-width: 350px) {
  .verb-identity-v2 { padding-left: 12px; }
  .verb-identity-v2 h2 { font-size: 30px; }
  .compact-form { grid-template-columns: 42px minmax(0, 1fr) 14px; padding-left: 6px; padding-right: 6px; }
  .compact-form b { font-size: 13.5px; }
}

/* ---------------- Grammar V2: 表达任务 / 目录 / 辨析 / 练习 ---------------- */
.task-intro, .catalog-head { padding: 16px 14px 16px; border-bottom: 1px solid var(--line-strong); }
.task-intro h2, .catalog-head h2 { margin: 4px 0 6px; font-family: var(--serif); font-size: 26px; font-weight: 600; }
.task-intro p, .catalog-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.grammar-paths { background: var(--surface); }
.grammar-path { width: 100%; min-height: 84px; padding: 11px 14px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 20px; align-items: center; gap: 8px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.path-number { color: var(--red); font-family: var(--serif); font-size: 16px; }
.grammar-path > span:nth-child(2) { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px; min-width: 0; }
.grammar-path b { grid-column: 1 / -1; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.grammar-path small { min-width: 0; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grammar-path em { color: var(--blue); font-size: 10px; font-style: normal; white-space: nowrap; }
.grammar-path > svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.compare-spotlight { width: 100%; min-height: 96px; padding: 14px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 22px; align-items: center; gap: 10px; border: 0; border-top: 8px solid var(--paper); border-bottom: 1px solid var(--line); background: var(--blue-soft); text-align: left; cursor: pointer; }
.compare-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-family: var(--serif); font-size: 15px; }
.compare-spotlight > span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.compare-spotlight small { color: var(--blue); font-size: 10px; font-weight: 700; }
.compare-spotlight b { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.compare-spotlight em { color: var(--muted); font-size: 11px; font-style: normal; }
.compare-spotlight > svg { width: 19px; height: 19px; fill: none; stroke: var(--blue); stroke-width: 1.8; }
.grammar-compare-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; }
.grammar-compare-columns section { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.grammar-compare-columns section.pc { border-top: 4px solid var(--red); }
.grammar-compare-columns section.imp { border-top: 4px solid var(--gold); }
.grammar-compare-columns section > span { color: var(--muted); font-family: var(--serif); font-size: 11px; }
.grammar-compare-columns section > b { display: block; margin-top: 8px; font-family: var(--serif); font-size: 16px; }
.grammar-compare-columns section > small { color: var(--muted); font-size: 10px; }
.grammar-compare-columns h3 { margin: 14px 0 5px; font-size: 12px; }
.grammar-compare-columns p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.grammar-compare-columns section > div { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 11px; }
.grammar-compare-columns em { padding: 3px 6px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 9.5px; font-style: normal; }
.story-sentence { padding: 16px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.story-sentence p { margin: 9px 0 12px; font-family: var(--serif); font-size: 21px; }
.story-sentence p i { color: #8b6b1c; font-style: normal; }
.story-sentence p b { color: var(--red); }
.story-sentence > div { display: flex; gap: 12px; color: var(--muted); font-size: 10px; }
.story-sentence > div span { display: flex; align-items: center; gap: 4px; }
.story-sentence > div i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.story-sentence > div span + span i { background: var(--red); }
.decision-rule { padding: 16px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.decision-rule > b { font-family: var(--serif); font-size: 18px; }
.decision-rule > p { margin: 5px 0 12px; color: var(--muted); font-size: 11px; }
.decision-rule > div { min-height: 39px; display: grid; grid-template-columns: 32px 24px 1fr; align-items: center; }
.decision-rule > div span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-size: 10px; }
.decision-rule > div i { height: 1px; background: var(--line-strong); }
.decision-rule > div strong { padding-left: 8px; font-size: 12px; }
.pitfall-v2 { margin: 14px; padding: 12px; border-left: 4px solid var(--red); background: var(--red-soft); }
.pitfall-v2 > span { color: var(--red); font-size: 10px; font-weight: 700; }
.pitfall-v2 p, .pitfall-v2 b { display: block; margin: 7px 0 0; font-family: var(--serif); font-size: 13px; line-height: 1.45; }
.pitfall-v2 p { color: var(--muted); }
.pitfall-v2 b { color: var(--ink); }
.compare-topic-link { width: 100%; min-height: 54px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--blue); font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; }
.compare-topic-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pit-head { padding: 18px 14px 12px; }
.pit-head h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.pit-head p { margin: 0; color: var(--muted); font-size: 11px; }

/* 易错汇总: graphic pitfall rows (✗ badge + title + typical mistake) */
.pit-list { background: var(--surface); border-bottom: 1px solid var(--line-strong); }
.pit-cat { padding: 16px 14px 8px; background: var(--paper); border-bottom: 1px solid var(--line); color: var(--ink-soft); font-family: var(--serif); font-size: 15px; font-weight: 600; }
.pit-item { width: 100%; min-height: 76px; padding: 12px 14px; display: grid; grid-template-columns: 30px minmax(0, 1fr) 18px; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.pit-item > i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--red); background: var(--red-soft); font-size: 13px; font-style: normal; font-weight: 700; }
.pit-item > span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pit-item b { font-family: var(--serif); font-size: 15px; font-weight: 600; }
.pit-item b .gr-lv { margin-left: 4px; }
.pit-item small { color: var(--muted); font-size: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pit-item > svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.8; }

/* sol-style topic detail rendering */
.gr-topic-head { border-bottom: 1px solid var(--line-strong); }
.gr-topic-fr { margin: 2px 0 0 !important; color: var(--muted) !important; font-family: var(--serif); font-size: 14px !important; }
.gr-topic-intro { margin: 10px 0 0 !important; color: var(--ink-soft) !important; font-size: 12.5px !important; line-height: 1.65 !important; }
.gr-block-h { display: flex; align-items: baseline; gap: 8px; padding: 20px 14px 10px; }
.gr-block-h span { color: var(--red); font-family: var(--serif); font-size: 14px; }
.gr-block-h b { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.gr-rule-v2 { margin: 0 14px 6px; padding: 12px 14px; border-left: 4px solid var(--blue); background: var(--blue-soft); font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.gr-rule-v2 b { color: var(--ink); }
.gr-note-v2 { margin: 12px 14px; padding: 12px 14px; border-left: 4px solid var(--gold); background: var(--gold-soft); font-size: 12.5px; line-height: 1.65; color: var(--ink-soft); }
.gr-ex-v2 { margin: 0 0 6px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gr-ex-v2 .gx-item { padding: 13px 14px; border-bottom: 1px solid var(--line); background: transparent; margin: 0; border-radius: 0; box-shadow: none; }
.gr-ex-v2 .gx-item:last-child { border-bottom: 0; }
.gr-ex-v2 .gx-fr { font-family: var(--serif); font-size: 18px; line-height: 1.45; color: var(--ink); }
.gr-ex-v2 .gx-zh { margin-top: 4px; color: var(--muted); font-size: 12px; }
.gr-tbl-wrap { margin: 0 14px 6px; overflow-x: auto; }
.ttable.gr-tbl { border: 1px solid var(--line); border-collapse: collapse; background: var(--surface); }
.ttable.gr-tbl th, .ttable.gr-tbl td { border: 1px solid var(--line); font-size: 13px; }
.ttable.gr-tbl thead th { background: var(--blue-soft); color: var(--blue); font-family: var(--sans); font-size: 11.5px; font-weight: 700; }
.ttable.gr-tbl .tt-p { background: var(--surface-soft); color: var(--ink-soft); font-family: var(--sans); font-weight: 600; }
.pitfall-v2 .pf-body { margin-top: 7px; font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); }
.pitfall-v2 .pf-body b { color: var(--ink); }
@media (max-width: 350px) {
  .grammar-path { padding-left: 10px; padding-right: 10px; }
  .grammar-compare-columns { padding-left: 10px; padding-right: 10px; gap: 6px; }
  .grammar-compare-columns section { padding: 9px; }
}

/* ---------------- V2 bottom sheets (module help + about) ----------------
   Ported from mockup0710-v2; backdrops are fixed (the mockup used absolute
   inside its phone frame). Opened/closed by modsheet.js. */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; background: rgba(23, 25, 29, .48); }
.sheet-backdrop[hidden] { display: none; }
.filter-sheet { width: 100%; max-width: 560px; margin: 0 auto; padding: 8px 16px calc(18px + var(--safe-b)); border-radius: 16px 16px 0 0; background: var(--surface); box-shadow: 0 -20px 50px rgba(0,0,0,.16); }
.sheet-handle { width: 42px; height: 4px; margin: 0 auto 14px; border-radius: 999px; background: var(--line-strong); }
.info-backdrop { z-index: 64; background: rgba(23,25,29,.56); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.info-sheet { max-height: min(82vh, 650px); display: flex; flex-direction: column; overflow: hidden; border-radius: 14px 14px 0 0; animation: info-sheet-in .22s ease-out; }
.info-sheet-head { flex: 0 0 auto; min-height: 42px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.info-sheet-head > div { min-width: 0; }
.info-sheet-head h2 { margin: 2px 0 0; font-family: var(--serif); font-size: 25px; font-weight: 600; }
.info-sheet-head .eyebrow { padding-top: 6px; }
.sheet-icon-close { flex: 0 0 auto; width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--muted); background: var(--surface-soft); cursor: pointer; }
.sheet-icon-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.eyebrow { display: block; color: var(--blue); font-size: 10px; font-weight: 700; line-height: 1.3; }
@keyframes info-sheet-in { from { opacity: .6; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* module help sheet */
.module-help-sheet { --help-accent: var(--blue); --help-soft: var(--blue-soft); padding-bottom: calc(16px + var(--safe-b)); }
.module-help-sheet[data-help-tone="vocab"] { --help-accent: var(--red); --help-soft: var(--red-soft); }
.module-help-sheet[data-help-tone="conjugation"] { --help-accent: var(--mint-deep); --help-soft: #e6f1eb; }
.module-help-sheet[data-help-tone="grammar"] { --help-accent: #946b08; --help-soft: var(--gold-soft); }
.module-help-sheet[data-help-tone="phonetics"] { --help-accent: #25719e; --help-soft: var(--sky); }
.module-help-sheet .eyebrow { color: var(--help-accent); }
.module-help-hero { flex: 0 0 auto; padding: 10px 0 17px; display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 13px; border-bottom: 1px solid var(--line-strong); }
.module-help-hero > i { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 8px; color: var(--help-accent); background: var(--help-soft); }
.module-help-hero > i svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.module-help-hero h2 { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 600; }
.module-help-hero p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.module-help-points { overflow-y: auto; }
.module-help-point { min-height: 66px; padding: 11px 0; display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 9px; border-bottom: 1px solid var(--line); }
.module-help-point > span { padding-top: 2px; color: var(--help-accent); font-family: var(--serif); font-size: 15px; }
.module-help-point b { display: block; font-size: 13px; }
.module-help-point p { margin: 3px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.module-help-scope { flex: 0 0 auto; min-height: 40px; padding-top: 11px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.module-help-scope b { color: var(--help-accent); font-size: 12px; }

/* about sheet (homepage) */
.about-sheet { height: min(78vh, 630px); padding-left: 0; padding-right: 0; padding-bottom: var(--safe-b); }
.about-sheet > .info-sheet-head, .about-sheet .about-tabs { margin-left: 16px; margin-right: 16px; }
.about-tabs { flex: 0 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line-strong); }
.about-tabs button { position: relative; min-height: 43px; border: 0; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.about-tabs button.is-active { color: var(--blue); }
.about-tabs button.is-active::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 3px; background: var(--blue); }
.about-panels { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.about-panel { padding: 20px 16px 18px; }
.about-tool-lockup { display: flex; align-items: center; gap: 12px; }
.about-tool-lockup img { width: 48px; height: 48px; object-fit: contain; }
.about-tool-lockup h3 { margin: 2px 0 0; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.about-tool-lockup small { color: var(--muted); font-size: 11px; }
.about-lead { margin: 17px 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.about-facts { padding: 14px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-facts span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.about-facts span + span { padding-left: 12px; border-left: 1px solid var(--line); }
.about-facts b { font-family: var(--serif); font-size: 18px; font-weight: 600; white-space: nowrap; }
.about-facts small { color: var(--muted); font-size: 10px; }
.company-lockup { width: 100%; overflow: hidden; border-radius: 6px; background: #414141; }
.company-lockup .company-wordmark { display: block; width: 100%; height: auto; object-fit: contain; }
.company-tag { margin: 16px 0 0; color: var(--muted); font-size: 10px; font-weight: 700; text-align: center; letter-spacing: .04em; }
.company-title { margin: 8px 0 7px; font-family: var(--serif); font-size: 28px; font-weight: 600; text-align: center; }
.company-title span { color: var(--red); }
.company-copy { margin: 0 0 18px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.65; text-align: center; }
.company-contacts { border-top: 1px solid var(--line-strong); }
.company-contacts button { width: 100%; min-height: 62px; padding: 9px 0; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.company-contacts i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--red); background: var(--red-soft); }
.company-contacts i svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.company-contacts button > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.company-contacts small { color: var(--muted); font-size: 10px; }
.company-contacts b { min-width: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; }
.company-contacts em { color: var(--blue); font-size: 11px; font-style: normal; font-weight: 700; }
.copyright-mark { padding: 3px 0 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-strong); }
.copyright-mark > span { color: var(--red); font-family: var(--serif); font-size: 46px; line-height: 1; }
.copyright-mark b { font-family: var(--serif); font-size: 21px; }
.copyright-mark small { display: block; color: var(--muted); font-size: 10px; font-weight: 700; }
.legal-row { min-height: 74px; padding: 13px 0; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 9px; border-bottom: 1px solid var(--line); }
.legal-row > span { color: var(--red); font-family: var(--serif); font-size: 14px; }
.legal-row b { font-size: 13px; }
.legal-row p { margin: 4px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.legal-row a { margin-top: 7px; display: inline-flex; align-items: center; gap: 3px; color: var(--blue); font-size: 11px; font-weight: 700; text-decoration: none; }
.legal-row a svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.track-wrap { position: relative; min-width: 0; flex: 0 1 auto; display: flex; }
.track-select {
  appearance: none; -webkit-appearance: none;
  flex: 0 1 auto; min-width: 0;
  max-width: 60vw; padding: 9px 32px 9px 14px;
  border: 1px solid var(--hair-2); border-radius: 11px;
  background: var(--card); color: var(--ink);
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-sm);
  cursor: pointer; text-overflow: ellipsis;
}
.track-wrap .chev {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; pointer-events: none;
  fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------------- generic view ---------------- */
.view { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* ---------------- sentence list (V2 editorial rows, mockup0710-v2) ----------------
   Full-width rows with hairline separators replace the v1 cards: same DOM
   (.idx / .body(.fr/.zh) / .actions / .prog) so app.js render() is untouched. */
.sentences { padding: 0 0 18px; scroll-padding: 80px 0; }
.hint { color: var(--muted); text-align: center; padding: 48px 16px; font-size: 15px; }

.sentence {
  position: relative; display: flex; gap: 4px;
  padding: 15px 8px 15px 0; margin: 0;
  background: var(--surface); border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.sentence::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--blue); transform: scaleY(0);
  transition: transform .22s cubic-bezier(.4,0,.2,1);
}
.sentence .idx {
  flex: 0 0 34px; padding-top: 4px; color: var(--muted);
  font-family: var(--serif); font-size: 13px; text-align: center;
}
.sentence .body { flex: 1 1 auto; min-width: 0; }
.sentence .fr {
  font-family: var(--serif); font-size: 20px; line-height: 1.38; font-weight: 500;
  color: var(--ink); word-break: break-word;
}
.sentence .zh {
  max-height: 0; opacity: 0; overflow: hidden; margin-top: 0;
  font-size: 12.5px; line-height: 1.55; color: var(--ink-soft);
  transition: max-height .26s ease, opacity .22s ease, margin .26s ease;
}
.sentence.show-tr .zh { max-height: 320px; opacity: 1; margin-top: 8px; }
/* 显示译文 global toggle; a row's .hide-tr opts back out */
body.show-all-tr .sentence:not(.hide-tr) .zh { max-height: 320px; opacity: 1; margin-top: 8px; }
body.show-all-tr .sentence:not(.hide-tr) .tr-toggle { background: var(--blue); border-color: var(--blue); color: #fff; }

.sentence .actions { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 2px 6px 0 0; }
.tr-toggle {
  width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--line);
  background: transparent; color: var(--muted);
  font-family: var(--serif); font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.sentence.show-tr .tr-toggle { background: var(--blue); border-color: var(--blue); color: #fff; }

.sentence .eq { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.sentence .eq span { width: 3px; height: 100%; background: var(--blue); border-radius: 2px; transform-origin: bottom; animation: eq 900ms ease-in-out infinite; }
.sentence .eq span:nth-child(2) { animation-delay: .2s; }
.sentence .eq span:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
body.playing .sentence.active .eq { display: flex; }

.sentence .prog {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0%;
  background: var(--blue);
  transition: width .12s linear;
}
.sentence.active { background: var(--blue-soft); }
.sentence.active::before { transform: scaleY(1); }
.sentence.active .idx { color: var(--blue); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .sentence, .sentence::before, .sentence .prog, .sentence .zh { transition: none; }
  .sentence .eq span { animation: none; }
}

/* ---------------- audio controls (V2 compact player dock, mockup0710-v2) ----------------
   The v1 stack (thick seek row + 50px buttons + a wrapping row of large text
   chips + a 3-button speed pill) ate ~40% of a phone screen. The V2 dock is a
   tight 4-band structure: hairline timeline / 5-slot control row (speed is ONE
   cycling button) / one row of 4 small mode buttons / the bottom tab bar. */
.controls {
  flex: 0 0 auto;
  background: var(--surface);
  border-top: 1px solid var(--line-strong);
  padding: 0; box-shadow: 0 -8px 24px rgba(28,34,31,.07); z-index: 4;
}
.row { display: flex; align-items: center; }
.row.time { gap: 8px; height: 28px; padding: 6px 14px 0; }
.row.time .t { font-size: 9.5px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); width: 30px; text-align: center; }

.seek { flex: 1 1 auto; height: 16px; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.seek::-webkit-slider-runnable-track { height: 3px; border-radius: 999px; background: linear-gradient(var(--red),var(--red)) 0/var(--fill,0%) 100% no-repeat, var(--line); }
.seek::-moz-range-track { height: 3px; border-radius: 999px; background: var(--line); }
.seek::-moz-range-progress { height: 3px; border-radius: 999px; background: var(--red); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 11px; height: 11px; margin-top: -4px; border-radius: 50%; background: #fff; border: 2px solid var(--red); }
.seek::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--red); }

.row.primary { justify-content: center; gap: 26px; height: 64px; padding: 2px 24px 0; }
.ctrl { width: 42px; height: 42px; border: none; border-radius: 50%; background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ctrl svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ctrl:active { transform: scale(.94); }
@media (hover: hover) { .ctrl:hover { background: var(--surface-soft); } }
.ctrl.play { width: 56px; height: 56px; background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(220,63,49,.24); }
.ctrl.play svg { width: 25px; height: 25px; fill: currentColor; stroke: none; }
body.playing .ctrl.play { background: var(--blue); box-shadow: 0 8px 20px rgba(22,84,192,.24); }

/* mode row: icon-only toggles (labels moved to a transient toast; 译 keeps its
   glyph per user) + the v1 three-step speed pill. The WHOLE row is centered as
   one cluster, like v1 — no left/right split. */
.row.toggles { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 2px 10px 8px; }
.chip.toggle { flex: 0 0 auto; width: 40px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); cursor: pointer; }
.chip.toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip.toggle[aria-pressed="true"] { color: var(--blue); border-color: #a9bfe8; background: var(--blue-soft); }
.translate-glyph { font-family: var(--serif); font-size: 14px; font-weight: 600; line-height: 1; }

.speeds { margin-left: 6px; display: inline-flex; align-items: center; gap: 2px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.speed { border: none; background: transparent; cursor: pointer; border-radius: 999px; padding: 5px 9px; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.speed.active { background: var(--ink); color: #fff; }

@media (max-width: 350px) {
  .row.toggles { gap: 4px; padding-left: 8px; padding-right: 8px; }
  .chip.toggle { width: 35px; height: 32px; }
  .chip.toggle svg { width: 15px; height: 15px; }
  .speed { padding: 4px 6px; font-size: 10.5px; }
}

/* transient action toast (e.g. 单句循环 on activation): fade in, hold, fade out */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-b) + 210px); z-index: 50;
  padding: 10px 16px; border-radius: 999px;
  color: #fff; background: rgba(23,25,29,.92); font-size: 12.5px; font-weight: 500; white-space: nowrap;
  transform: translateX(-50%); pointer-events: none;
  box-shadow: 0 6px 18px rgba(23,25,29,.25);
  animation: toast-cycle 2.4s ease forwards;
}
.toast[hidden] { display: none; }
@keyframes toast-cycle {
  0% { opacity: 0; transform: translate(-50%, 8px); }
  8% { opacity: 1; transform: translate(-50%, 0); }
  78% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 0); }
}

/* ---------------- tab bar (V2 module-nav visual, shared by all bottom tabs) ---------------- */
.tabbar {
  flex: 0 0 auto; display: flex; align-items: stretch; justify-content: center;
  min-height: calc(56px + var(--safe-b));
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 4px 4px var(--safe-b); z-index: 6;
}
.tab {
  position: relative; flex: 1 1 0; min-width: 0; max-width: 187px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 3px 2px 1px; border: none; background: transparent; cursor: pointer; color: var(--muted);
  font-size: 10px; font-weight: 600;
}
.tab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab.active { color: var(--red); }
.tab.active::before { content: ""; position: absolute; top: -4px; left: 25%; right: 25%; height: 3px; border-radius: 0 0 3px 3px; background: var(--red); }
.tab-count { position: absolute; top: 2px; right: calc(50% - 26px); min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: 9px; font-style: normal; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* ---------------- selection chip ---------------- */
.sel-add {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--safe-b) + 132px); z-index: 30;
  max-width: 86vw; border: none; border-radius: 999px;
  background: linear-gradient(160deg, var(--clay), var(--clay-deep)); color: #fff;
  font-size: 14px; font-weight: 600; padding: 11px 18px; box-shadow: var(--shadow-fab);
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sel-add:active { transform: translateX(-50%) scale(.96); }

/* ---------------- vocab ---------------- */
.vocab { padding: 14px 14px calc(18px + var(--safe-b)); }
.vocab-add {
  position: sticky; top: 0; z-index: 2; display: flex; gap: 10px; align-items: center;
  padding: 6px 2px 12px; background: linear-gradient(var(--bg) 70%, rgba(246,240,230,0));
}
.vocab-add input {
  flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 16px;
  border: 1px solid var(--hair-2); border-radius: 13px; background: var(--card);
  font-size: 16px; color: var(--ink); box-shadow: var(--shadow-sm);
}
.vocab-add input:focus { outline: 2px solid var(--clay-soft); border-color: var(--clay); }
.btn-add { flex: 0 0 auto; width: 46px; height: 46px; border: none; border-radius: 13px; background: linear-gradient(160deg, var(--clay), var(--clay-deep)); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-fab); }
.btn-add svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.btn-add:active { transform: scale(.94); }
.vocab-tip { margin: 2px 2px 12px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.vocab-list { display: flex; flex-direction: column; gap: 10px; }
.vocab-empty { text-align: center; color: var(--muted); padding: 40px 16px; font-size: 15px; line-height: 1.6; }
.vocab-card {
  display: flex; align-items: center; gap: 10px; padding: 13px 12px 13px 16px;
  background: var(--card); border: 1px solid var(--hair); border-radius: 14px; box-shadow: var(--shadow-sm);
}
.vc-main { flex: 1 1 auto; min-width: 0; }
.vc-word { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); word-break: break-word; }
.vc-zh { margin-top: 3px; font-size: 13.5px; color: var(--muted); word-break: break-word; }
.vc-zh.editable { cursor: text; }
.vc-zh.loading { color: var(--clay); font-style: italic; }
.vc-btn { flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid var(--hair-2); border-radius: 11px; background: var(--card); color: var(--ink-soft); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .15s; }
.vc-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vc-btn.speak:active { background: var(--clay); border-color: var(--clay); color: #fff; }
.vc-btn.del { color: #b24a3a; }
.vc-btn.del:active { background: #fbe9e5; }
.vc-btn.speaking { background: var(--clay); border-color: var(--clay); color: #fff; }
/* vocab: 词性筛选 + 动词跳转变位 (生词本 standalone page) */
.vocab-filter { display: flex; gap: 8px; padding: 10px 14px 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* ===== .chip — filter / selector pill =================================
   ONE component behind the four filter/option chips: .vf-btn (词性筛选),
   .cat-chip (短语分类), .wf-chip (词汇 facet), .quiz-chip (变位测验选项).
   Shared base below; per-variant deltas (padding / font-size / color / flex)
   kept verbatim so nothing shifts. Bare `.chip` is intentionally NOT reused —
   it is already taken by the player toggle (.chip.toggle), a separate component.
   Mini-program: port the filter chip as a single `chip`. */
.vf-btn, .cat-chip, .wf-chip, .quiz-chip {
  border: 1px solid var(--hair-2); border-radius: 999px; background: var(--card);
  font-weight: 600; white-space: nowrap; cursor: pointer;
}
.vf-btn.on, .cat-chip.on, .wf-chip.on { background: var(--clay); border-color: var(--clay); color: #fff; }
/* per-variant deltas */
.vf-btn { flex: 0 0 auto; padding: 7px 15px; color: var(--muted); font-size: 13px; transition: all .15s; }
.vc-pos { margin-top: 5px; font-size: 12px; color: var(--muted); }
.vc-pos-link { color: var(--clay); font-weight: 600; text-decoration: none; }
.vc-pos-link:active { opacity: .6; }
/* 2-column vocab layout (单词本 standalone + 跟读 vocab tab share .vocab-list/.vocab-card) */
.vocab-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
.vocab-list .vocab-empty { grid-column: 1 / -1; }
.vocab-list .vocab-card { flex-direction: column; align-items: stretch; gap: 9px; padding: 12px 13px 11px; }
.vocab-list .vc-main { width: 100%; }
.vocab-list .vc-word { font-size: 18px; }
.vocab-list .vc-actions { display: flex; gap: 8px; justify-content: flex-end; }
.vocab-list .vc-btn { width: 38px; height: 38px; }
/* word line + 性数(阴阳性) badge + 自建 tag */
.vc-wordline { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.g-badge { display: inline-block; font-size: 10px; font-weight: 700; line-height: 1.5; padding: 0 6px; border-radius: 6px; }
.g-m { background: #e6eef7; color: #3f6fa3; }
.g-f { background: #f7e7ee; color: #b05070; }
.g-mf { background: #efe8f5; color: #7c5aa6; }
.g-pl { background: #ececec; color: #777; }
.vc-tag { display: inline-block; font-size: 11px; color: var(--muted); border: 1px solid var(--hair-2); border-radius: 6px; padding: 0 6px; }
.vc-btn.add { font-size: 21px; font-weight: 400; color: var(--clay); }
.vc-btn.add.done { font-size: 16px; color: #3a8a5a; border-color: #bfe0cc; background: #f0f8f2; }
/* 总表 category chips */
.cat-chips { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 12px; }
.cat-chip { flex: 0 0 auto; padding: 6px 13px; color: var(--muted); font-size: 13px; }  /* .chip variant — base above */
/* ---------------- 词汇表 (5-tab module) ---------------- */
.lv-tag { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--clay-deep); background: var(--clay-soft); padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.vocab-secnav { flex: 1 1 auto; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vocab-secnav .sec-btn { flex: 0 0 auto; white-space: nowrap; }
/* 窄屏：5 个分页 tab 在顶栏放不下时，右侧会被 body:overflow-hidden 裁掉且无法横滑
   (.brand 不收缩)。故窄屏把 tab 条整宽落到第二行、双行(3+2)平铺，全部常显。 */
@media (max-width: 600px) {
  .vocab-brand { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; row-gap: 8px; }
  .vocab-brand .vocab-secnav {
    flex: 1 1 100%; width: 100%;
    flex-wrap: wrap; gap: 4px;
    overflow: visible; border-radius: 14px;
  }
  .vocab-brand .vocab-secnav .sec-btn { flex: 1 1 28%; padding-left: 6px; padding-right: 6px; }
}
/* module bottom tab (mobile): the header section pills move to a bottom tabbar
   on phones (the shadowing player's bottom tab is the best mobile paradigm);
   desktop keeps the header pill nav. Used by 词汇表 / 变位 / 语法; .tab / .tabbar
   are the shared components. */
.mod-tabbar { display: none; }
@media (max-width: 600px) {
  .mod-tabbar { display: flex; }
  .app-header .sec-nav, .sec-row { display: none; }   /* top pills replaced by the bottom tab on phones */
}
.word-filter { padding: 9px 14px 3px; border-bottom: 1px solid var(--hair); }
.wf-row { display: flex; gap: 7px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 7px; }
.wf-chip { flex: 0 0 auto; padding: 5px 12px; color: var(--muted); font-size: 12.5px; }  /* .chip variant — base above */
.wf-themes .wf-chip { font-size: 12px; }
/* discoverable filter: 「筛选」entry + removable selected chips + clear, and a
   wrap panel (all facets visible). Replaces the old off-screen scroll rows. */
.wf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding-bottom: 8px; }
.wf-open {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  padding: 6px 12px; border: 1px solid var(--hair-2); border-radius: 999px;
  background: var(--card); color: var(--ink-soft); font-size: 13px; font-weight: 600; cursor: pointer;
}
.wf-open svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.wf-open.active { border-color: var(--clay); color: var(--clay-deep); background: var(--clay-tint); }
.wf-n { font-style: normal; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--clay); color: #fff; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.wf-sel {
  display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto;
  padding: 6px 7px 6px 12px; border: 1px solid var(--clay); border-radius: 999px;
  background: var(--clay); color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.wf-sel svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; opacity: .85; }
.wf-clear { flex: 0 0 auto; border: none; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 6px 4px; text-decoration: underline; text-underline-offset: 2px; }
.wf-panel { padding: 2px 0 10px; }
.wf-sec + .wf-sec { margin-top: 10px; }
.wf-sec-h { font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 2px 7px; }
.wf-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.vc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; align-items: center; }
.vc-chip { padding: 1px 8px; border: 1px solid var(--hair-2); border-radius: 6px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 600; cursor: pointer; }
.vc-chip.t-pos { color: #3f6fa3; border-color: #cfe0f0; }
.vc-chip.t-theme { color: var(--clay-deep); border-color: var(--clay-soft); }
.vc-chip.t-custom { color: #8a6d3b; border-color: #e6d6b8; cursor: default; }
.vc-chip.t-info { color: var(--clay); border-color: var(--clay-soft); background: var(--clay-soft); cursor: pointer; }
.vc-chip.t-info:disabled { opacity: .6; cursor: default; }
.vc-chip.t-note { color: var(--muted); border-style: dashed; cursor: default; }
.vc-chip.on { background: var(--clay); border-color: var(--clay); color: #fff; }
.vc-conj { font-size: 11.5px; font-weight: 600; color: var(--clay); text-decoration: none; white-space: nowrap; }
.vc-conj:active { opacity: .6; }
.vc-fem { margin-top: 4px; font-size: 12px; color: var(--muted); }
.quiz-choices { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.quiz-choice { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-family: var(--serif); font-size: 17px; color: var(--ink); cursor: pointer; text-align: left; }
.quiz-choice.ok { background: #e9f3ee; border-color: var(--mint-deep); color: var(--mint-deep); }
.quiz-choice.no { background: var(--red-soft); border-color: #e0a99b; color: #b53527; }
.quiz-opts.wrap { flex-wrap: wrap; }
.quiz-hint { font-size: 13px; color: var(--muted); margin: 6px 2px; }

/* ---------------- quiz ---------------- */
.quiz { padding: 18px 16px calc(18px + var(--safe-b)); }
.quiz-content { max-width: 560px; margin: 0 auto; }
.quiz-hero { text-align: center; padding: 28px 8px 8px; }
.quiz-hero h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin: 0 0 8px; color: var(--ink); }
.quiz-hero p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0 0 22px; }
/* compact hero variant (used where the setup page is long, e.g. 单词测验) */
.quiz-hero.sm { padding: 12px 8px 4px; }
.quiz-hero.sm h2 { margin-bottom: 0; }
.btn-primary { border: none; border-radius: 8px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; padding: 13px 24px; cursor: pointer; }
.btn-primary:active { transform: scale(.97); }
.btn-ghost { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-soft); font-size: 14px; font-weight: 600; padding: 12px 20px; cursor: pointer; }

.quiz-progress { display: flex; align-items: center; gap: 10px; margin: 8px 14px 16px; }
.quiz-progress .bar { flex: 1 1 auto; height: 3px; border-radius: 999px; background: var(--line); overflow: hidden; }
.quiz-progress .bar > i { display: block; height: 100%; background: var(--blue); border-radius: 999px; transition: width .3s ease; }
.quiz-progress .count { font-size: 11px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }

.quiz-card { margin: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 24px 18px; text-align: center; }
.quiz-prompt-label { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.quiz-prompt { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); margin: 8px 0 6px; line-height: 1.4; }
.quiz-speak { margin: 4px auto 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--blue); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.quiz-speak svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.quiz-input { width: 100%; height: 50px; text-align: center; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); font-family: var(--serif); font-size: 22px; color: var(--ink); }
.quiz-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.quiz-input.ok { border-color: var(--mint-deep); background: #e9f3ee; }
.quiz-input.no { border-color: var(--red); background: var(--red-soft); }
.quiz-feedback { min-height: 24px; margin: 12px 0 4px; font-size: 14px; font-weight: 600; }
.quiz-feedback.ok { color: var(--mint-deep); }
.quiz-feedback.no { color: #b53527; }
.quiz-feedback .ans { font-family: var(--serif); }
.quiz-actions { margin-top: 16px; display: flex; gap: 10px; justify-content: center; }
.quiz-actions .btn-primary, .quiz-actions .btn-ghost { flex: 1 1 0; }
.quiz-score { font-family: var(--serif); font-size: 40px; font-weight: 600; color: var(--red); text-align: center; margin: 10px 0 4px; }

/* ---------------- larger screens ---------------- */
@media (min-width: 720px) {
  /* one centered 640px reading column on desktop — applies to EVERY module's
     content containers (the V2 mockup is phone-only; this is the desktop rule) */
  .sentences, .vocab, .controls > .row, .cv,
  .sec-row .sec-nav, .track-row .track-wrap { max-width: 640px; margin-left: auto; margin-right: auto; width: 100%; }
  .conj-search { max-width: 640px; margin-left: auto; margin-right: auto; width: 100%; }
  .resume-hero { max-width: 720px; margin: 18px auto 0; border: 1px solid var(--line); border-radius: 10px; }
  .home-section { max-width: 748px; margin: 0 auto; }
  .controls { display: flex; flex-direction: column; }
  .sentence .fr { font-size: 21px; }
}

/* ---------------- footer credit ---------------- */
.credit { text-align: center; color: var(--muted); font-size: 12px; padding: 20px 8px 10px; cursor: pointer; }
.credit b { color: var(--ink-soft); font-weight: 600; }
.credit:active { opacity: .6; }

/* one-time toast (e.g. browser has no French TTS voice) */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-b) + 78px);
  transform: translateX(-50%) translateY(6px);
  max-width: min(92vw, 440px); z-index: 50;
  background: var(--ink); color: var(--card);
  padding: 12px 16px; border-radius: 14px;
  font: 500 14px/1.55 var(--sans);
  box-shadow: 0 10px 30px rgba(43, 38, 32, .22);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- Zeus Insights modal ---------------- */
:root { --zeus-red: #e1251b; }
.zeus-overlay {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 22px; background: rgba(15,15,17,.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.zeus-card {
  position: relative; width: 100%; max-width: 372px; max-height: 92dvh; overflow: hidden auto;
  background: #2b2b2f; color: #fff; border-radius: 24px; border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: zeusIn .32s cubic-bezier(.2,.7,.3,1);
}
@keyframes zeusIn { from { opacity: 0; transform: translateY(20px) scale(.965); } to { opacity: 1; transform: none; } }
.zeus-x {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 32px; height: 32px; border: none; border-radius: 50%;
  background: rgba(0,0,0,.3); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.zeus-x svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.zeus-x:active { background: rgba(0,0,0,.55); }

.zeus-hero { display: flex; align-items: center; justify-content: center; min-height: 56px; overflow: hidden; }
.zeus-wordmark { width: 100%; display: block; object-fit: contain; }
.zeus-fallback { display: inline-flex; align-items: center; gap: 11px; padding: 28px 0; }
.zeus-zap { width: 28px; height: 32px; fill: var(--zeus-red); }
.zeus-name { font-family: var(--sans); font-weight: 800; font-size: 26px; letter-spacing: .03em; color: #fff; }
.zeus-name span { font-weight: 400; letter-spacing: .2em; opacity: .85; }

.zeus-body { padding: 20px 18px 22px; text-align: center; }
.zeus-tag { margin: 0; font-size: 10px; font-weight: 600; letter-spacing: .2em; color: #84848b; }
.zeus-title { margin: 13px 0 9px; font-size: 22px; font-weight: 600; letter-spacing: .01em; color: #fff; }
.zeus-title span { color: var(--zeus-red); }
.zeus-sub { margin: 0 0 20px; font-size: 13px; line-height: 1.75; color: #a5a5ac; }

.zeus-contacts { display: flex; flex-direction: column; gap: 9px; }
.zc-row { display: flex; align-items: stretch; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; overflow: hidden; transition: border-color .15s; }
.zc-row:active { border-color: rgba(255,255,255,.16); }
.zc-main { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 11px; padding: 10px 12px; text-decoration: none; color: inherit; }
.zc-ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.06); display: inline-flex; align-items: center; justify-content: center; }
.zc-ic svg { width: 16px; height: 16px; fill: none; stroke: #c3c3ca; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.zc-text { display: flex; flex-direction: column; min-width: 0; text-align: left; gap: 1px; }
.zc-label { font-size: 11px; color: #84848b; }
.zc-value { font-size: 13px; font-weight: 600; color: #e8e8ec; overflow-wrap: break-word; line-height: 1.35; }
.zc-link { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.32); }
.zc-copy { flex: 0 0 auto; border: none; border-left: 1px solid rgba(255,255,255,.08); background: transparent; color: #adadb4; font-size: 12px; padding: 0 16px; cursor: pointer; transition: background .15s, color .15s; }
.zc-copy:active { background: var(--zeus-red); color: #fff; }

.zeus-ok { width: 100%; margin-top: 22px; border: none; border-radius: 14px; background: var(--zeus-red); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .06em; padding: 14px; cursor: pointer; box-shadow: 0 10px 24px rgba(225,37,27,.3); transition: transform .08s; }
.zeus-ok:active { transform: scale(.985); }
.zeus-never { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 14px; font-size: 12.5px; color: #84848b; cursor: pointer; }
.zeus-never input { width: 15px; height: 15px; accent-color: var(--zeus-red); }

/* ---------------- header help button ---------------- */
.header-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.help-btn { flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid var(--hair-2); border-radius: 50%; background: var(--card); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.help-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.help-btn:active { background: var(--clay-soft); color: var(--clay); }

/* ---------------- first-run guide (carousel) ---------------- */
.guide-overlay { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15,15,17,.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.guide-card { position: relative; width: 100%; max-width: 380px; height: min(86dvh, 600px); display: flex; flex-direction: column; background: #2b2b2f; border-radius: 24px; border: 1px solid rgba(255,255,255,.06); box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden; animation: zeusIn .32s cubic-bezier(.2,.7,.3,1); }
.guide-x { position: absolute; top: 12px; right: 12px; z-index: 4; width: 32px; height: 32px; border: none; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.guide-x svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.guide-x:active { background: rgba(0,0,0,.55); }

.guide-track { flex: 1 1 auto; min-height: 0; display: flex; transition: transform .35s cubic-bezier(.4,0,.2,1); }
.guide-slide { flex: 0 0 100%; width: 100%; height: 100%; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 24px; text-align: center; color: #fff; }
.guide-slide.guide-zeus { padding: 0; justify-content: flex-start; }
.guide-zeus .zeus-body { width: 100%; }
.guide-title { margin: 0 0 8px; font-size: 20px; font-weight: 600; color: #fff; }
.guide-text { margin: 0; font-size: 13.5px; line-height: 1.7; color: #a8a8af; max-width: 300px; }
.guide-text b { color: #e7e7ea; font-weight: 600; }

.guide-shot { width: 100%; max-width: 280px; display: flex; flex-direction: column; gap: 9px; background: var(--bg); border-radius: 18px; padding: 16px; margin-bottom: 22px; box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.guide-welcome { align-items: center; gap: 16px; padding: 26px 16px; }
.gw-logo { display: flex; align-items: baseline; gap: 8px; }
.gw-l { font-family: var(--serif); font-weight: 600; font-size: 28px; color: var(--ink); }
.gw-b { font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(160deg, var(--clay), var(--clay-deep)); padding: 2px 7px; border-radius: 7px; }
.gw-icons { display: flex; gap: 20px; }
.gw-icons svg { width: 26px; height: 26px; fill: none; stroke: var(--clay); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.gs-card { position: relative; display: flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid var(--hair); border-radius: 11px; padding: 10px 11px; }
.gs-card.gs-on { background: var(--clay-tint); border-color: var(--clay-soft); }
.gs-card.gs-on::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--clay); border-radius: 11px 0 0 11px; }
.gs-idx { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-2); color: var(--muted); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.gs-idx.on { background: var(--clay); color: #fff; }
.gs-fr { flex: 1 1 auto; text-align: left; font-family: var(--serif); font-size: 13.5px; color: var(--ink-soft); }
.gs-tr { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--hair-2); color: var(--muted); font-family: var(--serif); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.gs-tr.on { background: var(--clay); border-color: var(--clay); color: #fff; }
.gs-bar { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 5px; }
.gs-mini { width: 28px; height: 8px; border-radius: 999px; background: var(--hair-2); }
.gs-fab { width: 34px; height: 34px; border-radius: 50%; background: var(--clay); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.gs-fab svg { width: 16px; height: 16px; fill: currentColor; }

.gv-card { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--hair); border-radius: 11px; padding: 9px 10px; }
.gv-main { flex: 1 1 auto; text-align: left; min-width: 0; }
.gv-w { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--ink); }
.gv-z { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.gv-b { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--hair-2); color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; }
.gv-b svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.gq-card { width: 100%; background: var(--card); border: 1px solid var(--hair); border-radius: 13px; padding: 16px 14px; text-align: center; }
.gq-label { font-size: 10px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.gq-prompt { font-size: 18px; font-weight: 600; color: var(--ink); margin: 5px 0 12px; }
.gq-input { border: 2px solid var(--clay); border-radius: 9px; padding: 8px; font-family: var(--serif); font-size: 16px; color: var(--ink); background: #fff; }
.gq-caret { display: inline-block; width: 2px; height: 15px; background: var(--clay); margin-left: 1px; vertical-align: -2px; }
.gq-btn { margin-top: 10px; background: var(--clay); color: #fff; border-radius: 9px; padding: 8px; font-size: 13px; font-weight: 600; }

.guide-arrow { position: absolute; top: 46%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border: none; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, opacity .2s; }
.guide-arrow svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.guide-arrow:active { background: rgba(255,255,255,.3); }
.guide-arrow[disabled] { opacity: 0; pointer-events: none; }
.guide-prev { left: 10px; }
.guide-next { right: 10px; }
.guide-dots { flex: 0 0 auto; display: flex; gap: 7px; justify-content: center; padding: 12px 0 14px; }
.guide-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.26); transition: background .2s, width .2s; cursor: pointer; }
.guide-dots i.on { width: 18px; border-radius: 4px; background: var(--zeus-red); }

/* ---------------- home button + A1/A2 level switch (player header) ---------------- */
.home-btn {
  flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid var(--hair-2); border-radius: 50%;
  background: var(--card); color: var(--muted); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
  align-self: center;
}
.home-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-btn:active { background: var(--clay-soft); color: var(--clay); }

.brand { align-items: center; }
.brand .logo { line-height: 1; }
/* .lv-switch (A1/A2) is the .seg segmented selector — its shared look lives in
   the consolidated ".seg — segmented selector" block below; only per-variant
   button deltas (.lv-btn) differ. */

@media (max-width: 460px) {
  /* the player header is crowded on phones; the landing header is not */
  body:not(.home) .brand .zh { display: none; }
  body:not(.home) .brand .logo { font-size: 19px; }
  .brand { gap: 7px; }
}

/* narrow screens: the track select can't fit next to the brand without
   overflowing the viewport — drop it (with the help button) onto a
   full-width second header row instead of squeezing the title */
@media (max-width: 640px) {
  .shadowing-header { flex-wrap: wrap; row-gap: 10px; }
  .shadowing-header .header-right { flex: 1 1 100%; }
  .shadowing-header .track-wrap { flex: 1 1 auto; }
  .shadowing-header .track-select { width: 100%; max-width: none; }
}

/* ---------------- landing page (index.html) ---------------- */
.brand-mark { width: 26px; height: 26px; object-fit: contain; align-self: center; }
.brand .x { font-family: var(--sans); font-weight: 400; font-size: 15px; color: var(--muted); }

.home-main { padding: 10px 16px calc(24px + var(--safe-b)); }
.hero { max-width: 640px; margin: 0 auto; padding: 26px 4px 18px; text-align: center; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: 34px; letter-spacing: -.01em; color: var(--ink); margin: 0 0 10px; }
.hero p { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin: 0; }
.hero b { color: var(--ink-soft); font-weight: 600; }

.modules { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.module-card {
  display: flex; align-items: center; gap: 14px; padding: 17px 16px;
  background: var(--card); border: 1px solid var(--hair); border-radius: 18px;
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
a.module-card:active { transform: scale(.985); }
@media (hover: hover) { a.module-card:hover { box-shadow: var(--shadow-md); border-color: var(--hair-2); } }

.mc-icon {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px;
  background: radial-gradient(120% 120% at 30% 20%, #cf6347, var(--clay) 55%, var(--clay-deep));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(176,72,44,.24);
}
.mc-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mc-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mc-title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-family: var(--serif); font-size: 18.5px; font-weight: 600; color: var(--ink); }
.mc-lv {
  font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: #fff;
  background: linear-gradient(160deg, var(--clay), var(--clay-deep));
  padding: 2px 6px; border-radius: 6px;
}
.mc-desc { font-size: 13px; line-height: 1.55; color: var(--muted); }
.mc-go { flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.module-card.soon { cursor: default; }
.module-card.soon .mc-icon { background: var(--bg-2); color: var(--muted); box-shadow: none; }
.module-card.soon .mc-title { color: var(--ink-soft); }
.soon-badge {
  font-family: var(--sans); font-size: 10.5px; font-weight: 600; color: var(--muted);
  background: var(--bg-2); border: 1px solid var(--hair-2);
  padding: 2px 8px; border-radius: 999px;
}
.home-credit { cursor: default; }
.home-credit:active { opacity: 1; }

/* "continue last" resume shortcut — one-tap return to the last shadowing track.
   Populated by landing.js from the same localStorage the player writes; stays
   hidden for first-time visitors. Clay-tinted so it reads as a shortcut, not a
   module. Icon mirrors .mc-icon (same radial clay gradient). */
.resume-bar {
  max-width: 640px; margin: 0 auto 14px;
  display: flex; align-items: center; gap: 13px;
  padding: 12px 15px;
  background: var(--clay-tint); border: 1px solid var(--clay-soft); border-radius: 16px;
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
.resume-bar:active { transform: scale(.99); }
@media (hover: hover) { .resume-bar:hover { box-shadow: var(--shadow-md); border-color: var(--hair-2); } }
.rb-ic {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, #cf6347, var(--clay) 55%, var(--clay-deep));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(176,72,44,.24);
}
.rb-ic svg { width: 16px; height: 16px; fill: currentColor; stroke: none; margin-left: 2px; }
.rb-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rb-kicker { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--clay-deep); }
.rb-track {
  font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rb-go { flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: var(--clay); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 720px) {
  .modules { display: grid; grid-template-columns: 1fr 1fr; max-width: 760px; }
  .modules .module-card:first-child { grid-column: 1 / -1; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 40px; }
  .resume-bar { max-width: 760px; }
}

/* ---------------- verb conjugation module (conjugation.html) ---------------- */
.beta-tag {
  font-family: var(--sans); font-size: 9.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--clay-deep); background: var(--clay-soft); border: 1px solid var(--hair-2);
  padding: 1px 6px; border-radius: 999px; vertical-align: middle;
}
.conj-search {
  flex: 0 0 auto; z-index: 4;
  display: flex; align-items: center; gap: 9px;
  padding: 11px 14px; background: rgba(246,240,230,.92);
  border-bottom: 1px solid var(--hair);
}
.cv { min-height: 100%; }
.conj-search .cs-icon { flex: 0 0 auto; width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.conj-search input {
  flex: 1 1 auto; min-width: 0; border: none; background: transparent;
  font-size: 16px; color: var(--ink); padding: 6px 2px;
}
.conj-search input:focus { outline: none; }
.conj-body { max-width: 720px; margin: 0 auto; padding: 12px 14px calc(28px + var(--safe-b)); }

.conj-hello { color: var(--ink-soft); font-size: 14px; line-height: 1.7; padding: 8px 4px 14px; }
.conj-hello b { color: var(--clay-deep); font-weight: 600; }
.conj-hello-sub { color: var(--muted); font-size: 13px; }
.conj-msg { color: var(--muted); font-size: 14.5px; line-height: 1.6; padding: 24px 8px; text-align: center; }

.verb-card {
  display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 16px; margin: 9px 0;
  background: var(--card); border: 1px solid var(--hair); border-radius: 14px; box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform .1s ease, border-color .2s;
}
.verb-card:active { transform: scale(.99); }
@media (hover: hover) { .verb-card:hover { border-color: var(--hair-2); } }
.verb-card.add { border-style: dashed; border-color: var(--clay); background: var(--clay-tint); }
.vk-main { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.vk-inf { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--clay-deep); }
.vk-zh { font-size: 13.5px; color: var(--muted); }
.vk-sub { flex: 1 1 100%; font-size: 12.5px; color: var(--amber); margin-top: 2px; }
.vk-go { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.verb-card.add .vk-go { stroke: var(--clay); }

.conj-back { border: none; background: none; color: var(--clay-deep); font-size: 14.5px; font-weight: 600; padding: 6px 2px 12px; cursor: pointer; }
.conj-head { text-align: center; padding: 4px 8px 6px; }
.conj-inf { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--ink); }
.conj-zh { font-size: 15px; color: var(--muted); margin-top: 2px; }
.conj-zh.editable { cursor: pointer; }
.conj-zh.editable:hover { color: var(--ink-soft); }
/* custom-verb gloss states (chips, total-list, detail) */
.zh-load { color: var(--clay); font-style: italic; }
.zh-fail { color: var(--clay); font-style: italic; }
.conj-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.conj-tag { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); background: var(--bg-2); border: 1px solid var(--hair-2); padding: 3px 9px; border-radius: 999px; }
.conj-tag.warn { color: var(--clay-deep); background: var(--clay-soft); border-color: #eccab9; }
.conj-note { margin: 12px 0 4px; padding: 10px 12px; background: #fdf3e7; border: 1px solid #f0d9b8; border-radius: 10px; color: #8a6418; font-size: 13px; line-height: 1.55; }
.conj-pp { margin: 14px 0 6px; font-size: 13.5px; color: var(--ink-soft); text-align: center; }
.conj-pp b { font-family: var(--serif); color: var(--clay-deep); }

.conj-tense { margin: 18px 0 4px; }
.ct-title { display: flex; align-items: baseline; gap: 6px; font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--clay-soft); padding-bottom: 7px; }
.ct-zh { font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ct-mnemo { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin: 7px 0 2px; }
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.ct-grid.imp { grid-template-columns: 1fr 1fr 1fr; }
.ct-cell { padding: 9px 11px; background: var(--bg-2); border-radius: 9px; border-left: 3px solid var(--clay-soft); font-size: 15.5px; line-height: 1.35; }
.cf-pron { color: var(--muted); font-size: 12.5px; }
.cf-form { font-family: var(--serif); color: var(--ink); }

@media (max-width: 380px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-grid.imp { grid-template-columns: 1fr 1fr 1fr; }
}

/* ===== .seg — segmented selector ======================================
   ONE component behind the A1/A2 level switch (.lv-switch) and every module's
   section tabs (.sec-nav, incl. .vocab-secnav). Legacy aliases are kept because
   the page JS binds click handlers to .lv-btn / .sec-btn by name. Per-variant
   deltas (padding / font-size / letter-spacing) sit right after the base and are
   kept verbatim so nothing shifts. Mini-program: port as a single `seg`. */
.seg, .lv-switch, .sec-nav {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--bg-2); border: 1px solid var(--hair-2); border-radius: 999px; padding: 2px;
}
.seg-btn, .lv-btn, .sec-btn {
  border: none; background: transparent; border-radius: 999px;
  font-weight: 700; color: var(--muted); cursor: pointer; transition: background .15s, color .15s;
}
.seg-btn.active, .lv-btn.active, .sec-btn.active {
  background: linear-gradient(160deg, var(--clay), var(--clay-deep)); color: #fff; box-shadow: var(--shadow-sm);
}
/* per-variant deltas */
.lv-btn  { padding: 4px 10px; font-size: 11px;   letter-spacing: .05em; }
.sec-btn { padding: 5px 12px; font-size: 12.5px; white-space: nowrap; }
/* very narrow phones (320–360px): the nowrap brand + 4 tabs can spill past the
   viewport and body{overflow:hidden} clips the last tab with no way to reach
   it — tighten the tabs and let the nav shrink-scroll instead of clipping */
@media (max-width: 360px) {
  .brand:not(.vocab-brand) { min-width: 0; flex: 1 1 auto; }
  .brand:not(.vocab-brand) .sec-nav { min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sec-btn { padding: 5px 9px; }
}
.conj-sec { min-height: 100%; }

/* entry chooser overlay (guide-style) */
.sec-chooser { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(43,38,32,.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.scc-card { width: 100%; max-width: 420px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow-md); padding: 22px 18px; }
.scc-head { text-align: center; margin-bottom: 16px; }
.scc-title { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); }
.scc-sub { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.scc-opt {
  width: 100%; display: flex; align-items: center; gap: 13px; text-align: left;
  padding: 14px 14px; margin: 10px 0; border: 1px solid var(--hair); border-radius: 15px;
  background: var(--bg); cursor: pointer; transition: transform .1s, border-color .2s, box-shadow .2s;
}
.scc-opt:active { transform: scale(.985); }
@media (hover: hover) { .scc-opt:hover { border-color: var(--hair-2); box-shadow: var(--shadow-sm); } }
.scc-ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px; background: radial-gradient(120% 120% at 30% 20%, #cf6347, var(--clay) 55%, var(--clay-deep)); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.scc-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.scc-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.scc-tx b { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--ink); }
.scc-tx i { font-style: normal; font-size: 12.5px; color: var(--muted); }
.scc-go { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* rules cards */
.rule-card { padding: 14px 15px; margin: 10px 0; background: var(--card); border: 1px solid var(--hair); border-left: 4px solid var(--clay); border-radius: 13px; box-shadow: var(--shadow-sm); }
.rule-card.clickable { cursor: pointer; transition: border-color .2s; }
@media (hover: hover) { .rule-card.clickable:hover { border-color: var(--hair-2); } }
.rc-name { font-family: var(--serif); font-size: 16.5px; font-weight: 600; color: var(--ink); }
.rc-ex { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--clay-deep); background: var(--clay-soft); padding: 1px 8px; border-radius: 999px; margin-left: 4px; white-space: nowrap; }
.rc-desc { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); margin-top: 7px; }
.rc-tip { font-size: 12.5px; line-height: 1.6; color: var(--muted); margin-top: 7px; padding: 8px 10px; background: var(--bg-2); border-radius: 8px; }

/* 总表 index chips */
.idx-group { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--clay-deep); margin: 18px 2px 10px; }
.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
.vchip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 11px 6px; border: 1px solid var(--hair); border-radius: 12px; background: var(--card); box-shadow: var(--shadow-sm); cursor: pointer; }
.vchip:active { transform: scale(.97); }
@media (hover: hover) { .vchip:hover { border-color: var(--hair-2); } }
.ch-inf { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--clay-deep); text-align: center; line-height: 1.2; }
.ch-zh { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.2; }

/* detail · person × tense table */
.tense-tabs { display: flex; gap: 8px; margin: 16px 0 10px; }
.tt-btn { flex: 1 1 0; padding: 9px 6px; border: 1px solid var(--hair-2); border-radius: 10px; background: var(--card); color: var(--ink-soft); font-size: 13px; font-weight: 600; cursor: pointer; }
.tt-btn.active { background: linear-gradient(160deg, var(--clay), var(--clay-deep)); color: #fff; border-color: transparent; }
.tense-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ttable { width: 100%; border-collapse: collapse; }
.ttable th, .ttable td { border: 1px solid var(--hair); padding: 8px 5px; text-align: center; }
.ttable thead th { background: var(--bg-2); font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.ttable thead th i { display: block; font-style: normal; font-size: 9px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.ttable .tt-p { background: var(--clay-soft); color: var(--clay-deep); font-family: var(--sans); font-weight: 700; font-size: 12.5px; width: 42px; }
.ttable tbody td { font-family: var(--serif); font-size: 14px; color: var(--ink); }

/* detail · per-form speak buttons (Web Speech, tts.js) */
.say {
  position: relative; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  width: 24px; height: 24px; margin-left: 3px; padding: 0; border: none; border-radius: 50%;
  background: transparent; color: var(--clay); cursor: pointer;
}
/* invisible hit-area extension (36×36 effective) — table rows are ~40px apart,
   so neighbouring rows' extended areas don't overlap */
.say::after { content: ""; position: absolute; inset: -6px; }
.say svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.say:active, .say.speaking { background: var(--clay); color: #fff; }
.conj-inf .say { width: 32px; height: 32px; margin-left: 6px; }
.conj-inf .say svg { width: 19px; height: 19px; }

/* detail · impératif block */
.imp-box { margin: 18px 0 6px; }
.imp-h { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 9px; border-bottom: 2px solid var(--clay-soft); padding-bottom: 6px; }

/* detail · periphrase formulas */
.peri-box { margin: 18px 0 6px; }
.peri-h { font-size: 12.5px; line-height: 1.6; color: var(--muted); margin-bottom: 8px; }
.peri { padding: 11px 13px; margin: 8px 0; background: var(--bg-2); border-radius: 11px; border-left: 3px solid var(--clay-soft); }
.peri-name { font-family: var(--serif); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.peri-name span { font-family: var(--sans); font-size: 11.5px; font-weight: 400; color: var(--muted); margin-left: 5px; }
.peri-f { font-size: 13px; line-height: 1.75; color: var(--ink-soft); margin-top: 6px; }
.peri-f b { font-family: var(--serif); color: var(--clay-deep); }
.peri-f em { font-family: var(--serif); font-style: normal; font-weight: 600; color: var(--ink); }
.pf-mn { color: var(--muted); }
.pf-note { display: block; font-size: 11.5px; color: var(--amber); margin-top: 3px; }

/* detail · save custom verb */
.save-btn { display: block; width: 100%; margin: 22px 0 6px; padding: 13px; border: 1px dashed var(--clay); border-radius: 13px; background: var(--clay-tint); color: var(--clay-deep); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.save-btn.done { border-style: solid; color: var(--green); background: #eef6ef; border-color: #bfe0c4; }
.imp-h span { font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }

/* add-custom bar (under the global search) */
.conj-addbar { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 0 14px 10px; }
.add-verb-btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; border: 1px solid var(--clay); border-radius: 999px; background: var(--clay-tint); color: var(--clay-deep); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.add-verb-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.addbar-hint { font-size: 11px; color: var(--muted); }

/* 常用词 · two columns */
.common-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.common-grid .verb-card { margin: 0; padding: 12px; }
.common-grid .vk-go { display: none; }
.common-grid .vk-main { flex-direction: column; align-items: flex-start; gap: 1px; }
.common-grid .vk-inf { font-size: 17px; }

/* 规则 · drill-down */
.rc-fr { font-family: var(--sans); font-size: 11.5px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.rule-card.clickable { position: relative; padding-right: 38px; cursor: pointer; }
.rule-card .rc-go { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rule-card.uni { border-left-color: var(--amber); font-size: 12.5px; line-height: 1.75; color: var(--ink-soft); }
.rc-desc.pad { padding: 2px 2px 6px; }
.end-tbl { width: auto; min-width: 62%; margin: 8px 0 14px; }
.end-tbl tbody td { font-family: var(--serif); font-size: 15px; }
.rc-exh { font-family: var(--serif); font-size: 14px; font-weight: 600; color: var(--clay-deep); margin: 18px 0 9px; }
.ex-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-chip { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--clay-deep); background: var(--clay-tint); border: 1px solid var(--hair-2); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.ex-chip.plain { color: var(--ink-soft); background: var(--bg-2); cursor: default; }
/* 规则 home — grouped section headings (展示逻辑分层) */
.rule-sec { display: flex; align-items: baseline; gap: 9px; margin: 22px 4px 8px; }
.rule-sec:first-of-type { margin-top: 6px; }
.rs-tag { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #fff; background: var(--clay); padding: 3px 10px; border-radius: 999px; }
.rs-sub { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
/* family-detail key-change callout */
.fam-key { font-size: 13px; line-height: 1.6; color: var(--clay-deep); background: var(--clay-tint); border: 1px solid var(--hair-2); border-radius: 10px; padding: 9px 12px; margin: 6px 0 14px; }

/* 复合过去 · mountain mnemonic */
.mtn { background: var(--card); border: 1px solid var(--hair); border-radius: 14px; padding: 12px 12px 14px; box-shadow: var(--shadow-sm); }
.mtn-svg { display: block; width: 100%; height: 86px; margin-bottom: 6px; }
.mtn-band { padding: 7px 9px; margin: 6px 0; border-radius: 9px; border-left: 3px solid var(--hair-2); background: var(--bg-2); }
.mb-tag { font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-bottom: 5px; }
.mb-verbs { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.mverb { font-size: 12.5px; color: var(--muted); }
.mverb b { font-family: var(--serif); font-size: 14px; color: var(--ink); margin-right: 3px; }
.band-peak { border-left-color: var(--amber); background: #fdf3e0; }
.band-up { border-left-color: var(--green); background: #eef6ef; }
.band-down { border-left-color: var(--clay); background: var(--clay-tint); }
.band-side { border-left-color: var(--hair-2); }
.band-life { border-left-color: #8a6db0; background: #f1ecf6; }

/* 复合过去 · supplementary rules */
.pc-rules { margin: 16px 0 6px; padding-left: 20px; }
.pc-rules li { font-size: 13px; line-height: 1.8; color: var(--ink-soft); margin: 7px 0; }
.pc-rules b { color: var(--clay-deep); }

/* 复合过去 · mountain (triangular, clickable) */
.mtn-legend { font-size: 11.5px; color: var(--muted); margin: -2px 0 8px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.mtn-legend .lg-up { color: var(--green); font-weight: 600; }
.mtn-legend .lg-down { color: var(--clay); font-weight: 600; }
.mtn2 { position: relative; background: var(--card); border: 1px solid var(--hair); border-radius: 14px; padding: 12px 10px; box-shadow: var(--shadow-sm); overflow: hidden; }
.mtn2-bg { position: absolute; left: 0; top: 10px; width: 100%; height: calc(100% - 20px); opacity: .45; z-index: 0; }
.mtn2-rows { position: relative; z-index: 1; }
.m-row { display: flex; justify-content: space-between; align-items: center; margin: 5px 0; }
.m-peak { justify-content: center; }
.m-lv1 { padding: 0 28%; } .m-lv2 { padding: 0 19%; } .m-lv3 { padding: 0 10%; } .m-lv4 { padding: 0 2%; }
.m-base { padding: 0; margin-top: 4px; }
.mtn3 { position: relative; background: var(--card); border: 1px solid var(--hair); border-radius: 14px; padding: 10px 7px; box-shadow: var(--shadow-sm); overflow: hidden; }
.mtn3-bg { position: absolute; left: 0; bottom: 8px; width: 100%; height: calc(100% - 16px); opacity: .5; z-index: 0; }
.mtn3-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(33px, auto); gap: 3px 1px; align-items: center; }
.mv { justify-self: center; display: inline-flex; flex-direction: column; align-items: center; line-height: 1.1; border: 1px solid var(--hair-2); border-radius: 8px; padding: 3px 7px; background: rgba(255,253,250,.96); box-shadow: 0 1px 2px rgba(43,38,32,.06); cursor: pointer; white-space: nowrap; }
.mv b { font-family: var(--serif); font-size: 12.5px; color: var(--ink); }
.mv em { font-style: normal; font-size: 8.5px; color: var(--muted); }
.mv.plain { cursor: default; }
.mtn-note { font-size: 11.5px; line-height: 1.55; color: var(--muted); margin: -2px 0 9px; }
.m-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 9px; margin-top: 10px; padding: 9px 11px; background: var(--bg-2); border-radius: 10px; }
.m-foot-tag { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.m-foot .mv { background: var(--card); }

.idx-group.mt { margin-top: 26px; }
.conj-msg.sm { padding: 14px 8px; font-size: 13.5px; }

/* conjugation guide carousel (reuses global .guide-* dark theme) */
.cg-shot { align-items: stretch; gap: 0; }
.cg-bigicon { display: flex; align-items: center; justify-content: center; height: 96px; }
.cg-bigicon svg { width: 52px; height: 52px; fill: none; stroke: var(--clay); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cg-row { display: flex; align-items: baseline; gap: 9px; padding: 9px 4px; border-bottom: 1px solid var(--hair); }
.cg-row:last-child { border-bottom: none; }
.cg-row b { font-family: var(--serif); font-size: 15px; color: var(--clay-deep); min-width: 52px; }
.cg-row span { font-size: 12.5px; color: var(--muted); }
.cg-pick { justify-content: center; }
.cg-opts { width: 100%; max-width: 300px; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.cg-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; background: rgba(255,255,255,.06); color: #fff; cursor: pointer; text-align: left; transition: background .15s; }
.cg-opt:active { background: rgba(255,255,255,.13); }
.cg-opt b { font-family: var(--serif); font-size: 16px; }
.cg-opt i { font-style: normal; font-size: 12px; color: #a8a8af; }

/* mountain base middle: venir / retourner / passer placed on the mountain */
.m-mid { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.mv-side { padding: 3px 7px; }
.mv-side b { font-size: 12px; }
.mv-side em { font-size: 9px; }

/* custom verb chip with a delete × */
.vchip.cust { position: relative; padding-top: 15px; }
.ch-del { position: absolute; top: 0; right: 3px; width: 20px; height: 20px; line-height: 18px; text-align: center; border-radius: 50%; color: var(--muted); font-size: 17px; font-weight: 400; }
.ch-del:active { background: var(--clay-soft); color: var(--clay-deep); }
@media (hover: hover) { .ch-del:hover { color: var(--clay-deep); } }

/* 测验 (conjugation quiz) — reuses global .quiz-* */
.quiz-person { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--blue); margin: 2px 0 16px; }
.quiz-opt-label { font-size: 12px; font-weight: 600; color: var(--ink-soft); margin: 16px 14px 8px; }
.quiz-opts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px; }
.quiz-opts + .quiz-opts { margin-top: 8px; }
.quiz-chip { padding: 8px 11px; color: var(--ink-soft); font-size: 12.5px; border-radius: 999px; }  /* .chip variant — base above */
.quiz-chip.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.quiz-start { display: block; width: calc(100% - 28px); max-width: none; margin: 20px 14px 8px; }
.quiz-feedback .ans-full { color: var(--muted); font-weight: 400; margin-left: 6px; font-family: var(--serif); }

/* ===================== 本次更新 popup (changelog.js, all pages) ===================== */
/* z-index 95: below the Zeus card (100) and the first-run guides (110) */
.upd-overlay {
  position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center;
  padding: 22px; background: rgba(23,25,29,.56); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.upd-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.16); padding: 20px 18px 16px; animation: info-sheet-in .22s ease-out; }
.upd-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); }
.upd-badge { font-size: 10px; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--red); padding: 3px 8px; border-radius: 999px; }
.upd-title { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); }
.upd-ver { margin-left: auto; color: var(--blue); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.upd-list { margin: 0; padding: 0; list-style: none; }
.upd-list li { position: relative; padding: 10px 0 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.upd-list li:last-child { border-bottom: 0; }
.upd-list li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.upd-ok {
  display: block; width: 100%; min-height: 46px; margin-top: 10px; border: none; border-radius: 8px;
  background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
}
.upd-ok:active { transform: scale(.98); }

/* ===================== 语法助手 (grammar.html) ===================== */
/* Chinese-first headings: same serif family, slightly smaller than French */
.conj-inf.zhc { font-size: 24px; }
.vk-inf.zhc { font-size: 16.5px; }
.rc-count { font-size: 11.5px; font-weight: 600; color: var(--clay-deep); margin-top: 8px; }
.gr-lv { flex: 0 0 auto; font-size: 10.5px; font-weight: 700; color: var(--clay-deep); background: var(--clay-soft); padding: 2px 7px; border-radius: 999px; }

/* topic detail: example sentences (speakable) */
.gr-ex { margin: 10px 0 4px; }
.gx-item { padding: 9px 12px; margin: 8px 0; background: var(--bg-2); border-left: 3px solid var(--clay-soft); border-radius: 9px; }
.gx-fr { font-family: var(--serif); font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.gx-zh { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.gr-rule { margin: 10px 0; font-size: 13px; }
.gr-tbl th, .gr-tbl td { font-size: 13px; }
/* grammar tables: unlike conjugation tables they may have many columns and
   long Chinese row labels — let them take their natural width and scroll
   horizontally inside .tense-wrap instead of crushing every column */
.gr-tbl { width: auto; min-width: 100%; }
.gr-tbl .tt-p { width: auto; min-width: 42px; white-space: nowrap; }
.conj-note.pitn { background: var(--clay-tint); border-color: #eccab9; color: var(--clay-deep); }

/* 易错 pitfall cards */
.pit-card {
  position: relative; padding: 13px 38px 13px 15px; margin: 9px 0;
  background: var(--card); border: 1px solid var(--hair); border-left: 4px solid var(--clay); border-radius: 13px;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: border-color .2s;
}
@media (hover: hover) { .pit-card:hover { border-color: var(--hair-2); } }
.pit-card:active { transform: scale(.99); }
.pit-card .vk-go { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.pc-title { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.pc-text { font-size: 13px; line-height: 1.6; color: var(--ink-soft); margin-top: 6px; }

/* grammar quiz: multiple-choice options */
.gr-quiz { text-align: left; }
.gr-quiz .quiz-prompt-label, .gr-quiz .gr-q { text-align: center; }
.gr-q { font-family: var(--serif); font-size: 21px; }
.qz-opts { margin-top: 16px; }
.qz-opt {
  display: block; width: 100%; text-align: left; padding: 12px 14px; margin: 8px 0;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  font-family: var(--serif); font-size: 15.5px; color: var(--ink); cursor: pointer; transition: border-color .15s;
}
@media (hover: hover) { .qz-opt:not(:disabled):hover { border-color: var(--blue); } }
.qz-opt.ok { border-color: var(--mint-deep); background: #e9f3ee; font-weight: 600; }
.qz-opt.no { border-color: var(--red); background: var(--red-soft); }
.qz-opt.dim { opacity: .5; }
.gr-fb { font-weight: 400; line-height: 1.6; }
.gr-fb .gr-why { color: var(--ink-soft); font-size: 13.5px; }
.gr-fb.ok .gr-why, .gr-fb.no .gr-why { font-weight: 400; }
.gr-full { font-family: var(--serif); font-size: 15.5px; color: var(--ink); margin-top: 8px; }
