/* ============================================================================
   premium.css — PHASE A FOUNDATION of the premium-pages redesign.

   ⛔ EVERY selector in this file is scoped under `body.hts-preview`.
   `/me` returns preview:true ONLY for PREVIEW_EMAILS (caseyloop@hotmail.com);
   gate.js turns that into the body class. A non-preview user never matches a
   single rule here — same DOM, same computed styles as before. That gate is the
   whole safety model: do NOT add an unscoped selector to this file, ever.

   Structure
     §1  tokens        — navy / cream / gold, light + dark, budgeted accent
     §2  motion        — the spring grammar + reduced-motion contract
     §3  primitives    — elevation · status pill · row atom
     §4  page skeleton — canvas, masthead/kicker, shelves, disclosure
     §5  thumb zone    — phone-only bottom action bar (<=560px)
     §6  states        — skeleton / empty / error
     §7  HOME
     §8  SOUNDS
     §9–§17  PHASE B — the remaining nine pages
     §18 the RE-HOSTED breakdowns (owner order 2026-08-23: word + sentence
         breakdown are the top element on their pages)
     §19 THE PHONE LAYER — <=560px is a different, drastically compact layout
         (owner order 2026-08-23), not a downscale of desktop
   ============================================================================ */

/* ===========================================================================
   §1  TOKENS
   Palette law: gold is BUDGETED — progress, value and CTAs only. One semantic
   green (done / correct). Red is reserved (destructive) and appears nowhere in
   Phase A. Everything else lives in the navy/cream neutrals.

   Theme precedence mirrors tokens.css: base block = light; the two dark blocks
   are (a) OS-dark unless the user pinned light, (b) an explicit dark choice.
   =========================================================================== */
body.hts-preview{
  /* -- raw palette -------------------------------------------------------- */
  --pv-navy-ink:#101d2c;
  --pv-cream:#f7f2e7;

  /* -- planes (light: warm paper) -----------------------------------------
     The canvas is deliberately a full step DOWN from the card surface — at 7%
     apart the elevation primitive was invisible and the whole frame read washed
     out (first capture, 2026-08-23). Paper is a plane, not a white-out.       */
  --pv-canvas:#e9e2d4;
  --pv-canvas-mesh:
    radial-gradient(1100px 560px at 100% -12%, rgba(184,134,44,.16), transparent 62%),
    radial-gradient(900px 520px at -8% 108%, rgba(16,29,44,.10), transparent 60%);
  --pv-surface:#fdfbf7;
  --pv-surface-2:#f5f0e6;
  --pv-well:#e3dbca;

  /* -- ink ---------------------------------------------------------------- */
  --pv-ink:#101d2c;
  --pv-ink-2:#43566a;
  /* ink-3 carries 13px gloss lines on the CARD surface — measured 5.08:1 there.
     Anything smaller than 15px sitting on the CANVAS uses ink-2 instead. */
  --pv-ink-3:#5f7080;
  --pv-hair:rgba(16,29,44,.14);
  --pv-hi:inset 0 1px 0 rgba(255,255,255,.9);

  /* -- accents (budgeted) -------------------------------------------------
     Two golds, because the contrast bar is different: --pv-gold carries SMALL
     text (pills, links) and must clear 4.5:1 on paper; --pv-gold-display is the
     richer bronze reserved for the large masthead payoff word, where the bar is
     3:1. On a .pv-plate both are replaced by the light-on-navy pair.          */
  --pv-gold:#8a5f16;
  --pv-gold-display:#9d6f1f;
  --pv-gold-line:#c39a3f;     /* gold as STROKE / border / fill               */
  --pv-gold-fill:#b8862c;     /* gold as a solid CTA fill                     */
  --pv-on-gold:#fffaf0;
  --pv-green:#25795a;
  --pv-green-line:#3f9c76;
  --pv-red:#a33a49;           /* RESERVED — destructive only                  */

  /* -- default element accent for the primitives --------------------------
     A muted STEEL BLUE, never a neutral gray: an un-started row must read as
     quiet, not as disabled. (De-emphasis is losing the glow, not going gray.) */
  --pv-cv:#41607f;

  /* -- type --------------------------------------------------------------- */
  --pv-font:var(--font);
  --pv-thai:var(--font-thai);
  --pv-fs-kicker:11px;
  --pv-fs-micro:12px;
  --pv-fs-sm:13px;
  --pv-fs-body:15px;
  --pv-fs-lead:17px;
  --pv-fs-h3:19px;
  --pv-fs-h2:clamp(21px, 3.4vw, 27px);
  --pv-fs-h1:clamp(29px, 6.2vw, 46px);

  /* -- space + radius ----------------------------------------------------- */
  --pv-s1:4px; --pv-s2:8px; --pv-s3:12px; --pv-s4:16px;
  --pv-s5:24px; --pv-s6:34px; --pv-s7:48px; --pv-s8:66px;
  --pv-r-sm:9px; --pv-r-md:14px; --pv-r-lg:19px; --pv-r-xl:26px; --pv-r-pill:999px;

  /* -- motion ------------------------------------------------------------- */
  --pv-spring:cubic-bezier(.22,1.18,.36,1);   /* the house entrance overshoot */
  --pv-settle:cubic-bezier(.24,.9,.32,1);     /* draws, fills, meters         */
  --pv-tap:cubic-bezier(.3,.9,.4,1);
  --pv-d-tap:120ms; --pv-d-mid:280ms; --pv-d-enter:620ms; --pv-d-draw:1150ms;
}

/* --- dark: the near-black navy room (the 08-11 concept-lab plane) --------- */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) body.hts-preview{
    /* deeper than the plate's own floor (#0d1a2a) so the page's one lit object
       still reads as an object in dark mode instead of melting into the room. */
    --pv-canvas:#04080e;
    --pv-canvas-mesh:
      radial-gradient(1100px 560px at 100% -12%, rgba(217,164,65,.13), transparent 62%),
      radial-gradient(900px 520px at -8% 108%, rgba(47,104,190,.12), transparent 60%);
    --pv-surface:#0d1826;
    --pv-surface-2:#132234;
    --pv-well:#0a1420;
    --pv-ink:#f3ecdd;
    --pv-ink-2:#adbaca;
    --pv-ink-3:#7c8b9d;
    --pv-hair:rgba(238,228,206,.14);
    --pv-hi:inset 0 1px 0 rgba(255,255,255,.06);
    --pv-gold:#e6bc6c;
    --pv-gold-line:#d9a441;
    --pv-gold-fill:#d9a441;
    --pv-on-gold:#160f02;
    --pv-green:#57c79a;
    --pv-green-line:#3f9c76;
    --pv-red:#e0798a;
    --pv-cv:#7f93ab;
  }
}
:root[data-theme="dark"] body.hts-preview{
  --pv-canvas:#04080e;
  --pv-canvas-mesh:
    radial-gradient(1100px 560px at 100% -12%, rgba(217,164,65,.13), transparent 62%),
    radial-gradient(900px 520px at -8% 108%, rgba(47,104,190,.12), transparent 60%);
  --pv-surface:#0d1826;
  --pv-surface-2:#132234;
  --pv-well:#0a1420;
  --pv-ink:#f3ecdd;
  --pv-ink-2:#adbaca;
  --pv-ink-3:#7c8b9d;
  --pv-hair:rgba(238,228,206,.14);
  --pv-hi:inset 0 1px 0 rgba(255,255,255,.06);
  --pv-gold:#e6bc6c;
  --pv-gold-line:#d9a441;
  --pv-gold-fill:#d9a441;
  --pv-on-gold:#160f02;
  --pv-green:#57c79a;
  --pv-green-line:#3f9c76;
  --pv-red:#e0798a;
  --pv-cv:#7f93ab;
}

/* ===========================================================================
   §2  MOTION GRAMMAR
   Spring entrances only — a bare opacity/translate fade is banned (owner law).
   Staggered reveal tops out well under 3s; ONE signature motion per page; the
   rest of the frame is calm. Everything here dies under reduced-motion.
   =========================================================================== */
@keyframes pvIn{
  from{ opacity:0; transform:translate3d(0,18px,0) scale(.978); }
  to  { opacity:1; transform:none; }
}
@keyframes pvInX{
  from{ opacity:0; transform:translate3d(-14px,0,0); }
  to  { opacity:1; transform:none; }
}
@keyframes pvDraw{ from{ stroke-dashoffset:var(--pv-len,1); } to{ stroke-dashoffset:var(--pv-off,0); } }
@keyframes pvGlow{
  0%,100%{ opacity:.55; }
  50%    { opacity:1; }
}

body.hts-preview .pv-in{
  animation:pvIn var(--pv-d-enter) var(--pv-spring) both;
  animation-delay:calc(var(--pv-i, 0) * 68ms);
}
body.hts-preview .pv-in-x{
  animation:pvInX var(--pv-d-enter) var(--pv-spring) both;
  animation-delay:calc(var(--pv-i, 0) * 55ms);
}

/* micro-interaction: every tappable premium surface answers the finger */
body.hts-preview .pv-press{
  transition:transform var(--pv-d-tap) var(--pv-tap),
             box-shadow var(--pv-d-mid) var(--pv-settle),
             border-color var(--pv-d-mid) var(--pv-settle);
  -webkit-tap-highlight-color:transparent;
}
body.hts-preview .pv-press:active{ transform:scale(.978); }
@media (hover:hover){
  body.hts-preview .pv-press:hover{ transform:translateY(-1px); }
}
body.hts-preview .pv-press:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px color-mix(in srgb, var(--pv-gold-line) 45%, transparent);
}

@media (prefers-reduced-motion:reduce){
  body.hts-preview .pv-in,
  body.hts-preview .pv-in-x,
  body.hts-preview .pv-page *{ animation:none !important; }
  body.hts-preview .pv-in,
  body.hts-preview .pv-in-x{ opacity:1 !important; transform:none !important; }
  /* RE-HOSTED SHIPPED SYSTEMS whose rest state is pre-animation (the breakdown's
     .wbd__row starts opacity:0 and only its entrance animation reveals it):
     killing animations page-wide left the syllable rows permanently invisible —
     an entire card of blank space (owner catch, 2026-08-23, reduced-motion PC).
     Anything animation-revealed must be forced to its FINAL state here.      */
  body.hts-preview .pv-page .wbd__row{ opacity:1 !important; transform:none !important; }
  body.hts-preview .pv-press:hover,
  body.hts-preview .pv-press:active{ transform:none; }
  /* the drawn shapes already REST at --pv-off, so suppressing the animation
     leaves the honest final value on screen (verified live, 390px, WebKit). */
}

/* ===========================================================================
   §3  PRIMITIVES
   =========================================================================== */

/* --- 3a. ELEVATION -------------------------------------------------------
   An element matters because it carries a tinted glow + a SAME-HUE 1px
   hairline. It recedes by LOSING them (.pv-elev--dim) — never by turning gray
   and never with a neutral drop shadow. All layers key off the element's own
   --pv-cv, so every surface is lit by its own lane color.                    */
body.hts-preview .pv-elev{
  position:relative;
  background:linear-gradient(180deg,
    color-mix(in srgb, var(--pv-cv) 3%, var(--pv-surface)),
    var(--pv-surface) 46%);
  border:1px solid color-mix(in srgb, var(--pv-cv) 32%, transparent);
  border-radius:var(--pv-r-lg);
  box-shadow:
    var(--pv-hi),
    0 1px 2px -1px color-mix(in srgb, var(--pv-cv) 40%, transparent),
    0 20px 40px -26px color-mix(in srgb, var(--pv-cv) 78%, transparent),
    0 0 0 4px color-mix(in srgb, var(--pv-cv) 7%, transparent);
}
body.hts-preview .pv-elev--soft{
  background:color-mix(in srgb, var(--pv-surface) 72%, transparent);
  box-shadow:var(--pv-hi), 0 0 0 4px color-mix(in srgb, var(--pv-cv) 5%, transparent);
}
body.hts-preview .pv-elev--dim{
  border-color:color-mix(in srgb, var(--pv-cv) 10%, transparent);
  box-shadow:none;
  opacity:.62;
}
@media (hover:hover){
  body.hts-preview a.pv-elev:hover, body.hts-preview button.pv-elev:hover{
    border-color:color-mix(in srgb, var(--pv-cv) 46%, transparent);
    box-shadow:
      var(--pv-hi),
      0 1px 2px -1px color-mix(in srgb, var(--pv-cv) 44%, transparent),
      0 24px 46px -26px color-mix(in srgb, var(--pv-cv) 78%, transparent),
      0 0 0 5px color-mix(in srgb, var(--pv-cv) 9%, transparent);
  }
}

/* --- 3a-ii. THE CINEMATIC PLATE ------------------------------------------
   The page's ONE dark, lit object — a near-black navy plate on the paper
   canvas, which is exactly the plane the 08-11 concept builds live on and the
   only ground where gold reads as light rather than as a highlighter. It flips
   the local ink/surface tokens, so every primitive nested inside (pill, row,
   meter, contour) recolors itself with no per-element overrides.
   THEME-INVARIANT by design: identical in light and dark, so the signature
   moment of a page never depends on the viewer's OS setting.               */
body.hts-preview .pv-plate{
  --pv-surface:#0c1726;
  --pv-surface-2:#132234;
  --pv-ink:#f5eee0;
  --pv-ink-2:#b3bfcd;
  --pv-ink-3:#8697a9;
  --pv-hair:rgba(238,228,206,.16);
  --pv-hi:inset 0 1px 0 rgba(255,255,255,.07);
  --pv-gold:#e8c179;
  --pv-gold-line:#d9a441;
  --pv-gold-fill:#d9a441;
  --pv-on-gold:#160f02;
  --pv-green:#5ecfa2;
  --pv-green-line:#3f9c76;
  --pv-cv:#7f93ab;
  /* the app's LIGHT tone tokens are tuned for paper and go muddy on navy — the
     plate borrows the dark-theme values so a tone contour reads as its own hue. */
  --tone-mid:#9fb0c2;
  --tone-low:#5b9bf0;
  --tone-high:#e06b7d;
  --tone-rising:#43b483;
  --tone-falling:#e0a94e;
  color:var(--pv-ink);
  background:
    radial-gradient(760px 340px at 84% -14%, rgba(217,164,65,.20), transparent 68%),
    radial-gradient(680px 420px at 6% 112%, rgba(47,104,190,.20), transparent 66%),
    linear-gradient(168deg, #142942 0%, #0f1e30 58%, #0d1a2a 100%);
  border:1px solid rgba(238,228,206,.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 2px 4px -2px rgba(7,13,22,.55),
    0 34px 66px -34px rgba(7,13,22,.78),
    0 0 0 5px color-mix(in srgb, var(--pv-gold-line) 8%, transparent);
}
@media (hover:hover){
  body.hts-preview a.pv-plate:hover{
    border-color:rgba(238,228,206,.26);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.09),
      0 2px 4px -2px rgba(7,13,22,.55),
      0 40px 78px -34px rgba(7,13,22,.85),
      0 0 0 6px color-mix(in srgb, var(--pv-gold-line) 13%, transparent);
  }
}

/* --- 3b. STATUS PILL -----------------------------------------------------
   ONE shape everywhere: tinted fill + same-hue border + glyph + uppercase
   letterspaced label. The tint table below is the whole state vocabulary.    */
body.hts-preview .pv-pill{
  display:inline-flex; align-items:center; gap:5px;
  height:21px; padding:0 9px 0 7px; flex:none; max-width:100%;
  border-radius:var(--pv-r-pill);
  font-family:var(--pv-font); font-size:10px; font-weight:800;
  letter-spacing:.13em; text-transform:uppercase; line-height:1;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  color:var(--pv-pc, var(--pv-ink-2));
  background:color-mix(in srgb, var(--pv-pc, var(--pv-ink-2)) 13%, transparent);
  border:1px solid color-mix(in srgb, var(--pv-pc, var(--pv-ink-2)) 36%, transparent);
}
body.hts-preview .pv-pill > i{
  width:5px; height:5px; border-radius:50%; background:currentColor; flex:none;
}
body.hts-preview .pv-pill > svg{ width:11px; height:11px; flex:none; }
body.hts-preview .pv-pill--new      { --pv-pc:var(--pv-ink-2); }
body.hts-preview .pv-pill--progress { --pv-pc:var(--pv-gold); }
body.hts-preview .pv-pill--due      { --pv-pc:var(--pv-gold); }
body.hts-preview .pv-pill--start    { --pv-pc:var(--pv-gold); }
body.hts-preview .pv-pill--mastered { --pv-pc:var(--pv-green); }
body.hts-preview .pv-pill--done     { --pv-pc:var(--pv-green); }
body.hts-preview .pv-pill--locked   { --pv-pc:var(--pv-ink-3); }
body.hts-preview .pv-pill--tone     { --pv-pc:var(--pv-cv); }

/* --- 3c. ROW ATOM --------------------------------------------------------
   Icon tile + title + ONE gloss line + right control. Separated by SPACING,
   never by divider lines.                                                    */
body.hts-preview .pv-rows{ display:flex; flex-direction:column; gap:var(--pv-s1); }
body.hts-preview .pv-row{
  display:grid; grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center; gap:14px;
  padding:11px 12px; border-radius:var(--pv-r-md);
  text-decoration:none; color:inherit; min-width:0;
  transition:background var(--pv-d-mid) var(--pv-settle);
}
@media (hover:hover){
  body.hts-preview .pv-row:hover{ background:color-mix(in srgb, var(--pv-cv) 7%, transparent); }
}
body.hts-preview .pv-row__ic{
  width:42px; height:42px; flex:none; border-radius:12px;
  display:grid; place-items:center; color:var(--pv-cv);
  background:color-mix(in srgb, var(--pv-cv) 12%, transparent);
  border:1px solid color-mix(in srgb, var(--pv-cv) 26%, transparent);
  box-shadow:0 6px 14px -12px color-mix(in srgb, var(--pv-cv) 90%, transparent);
}
body.hts-preview .pv-row__ic svg{ width:19px; height:19px; }
body.hts-preview .pv-row__ic .pv-row__gl{
  font-family:var(--pv-thai); font-size:17px; font-weight:700; line-height:1;
}
/* ⚠️ these are <span>s, so they must be BLOCKIFIED or `overflow:hidden` +
   `text-overflow:ellipsis` silently do nothing on them and a long gloss pushes
   the whole document wide (11px of h-overflow at 375, caught 2026-08-23). */
body.hts-preview .pv-row__bd{ display:block; min-width:0; }
body.hts-preview .pv-row__t{
  display:flex; align-items:center; gap:8px; min-width:0;
  font-size:var(--pv-fs-body); font-weight:650; color:var(--pv-ink);
  letter-spacing:-.005em;
}
body.hts-preview .pv-row__t > span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body.hts-preview .pv-row__g{
  display:block; min-width:0; max-width:100%;
  margin-top:2px; font-size:var(--pv-fs-sm); color:var(--pv-ink-3);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
body.hts-preview .pv-row__go{
  display:grid; place-items:center; width:26px; height:26px; flex:none;
  color:var(--pv-ink-3); opacity:.8;
}
body.hts-preview .pv-row__go svg{ width:17px; height:17px; }

/* tabular numerals — every counter, streak and timer is machine truth */
body.hts-preview .pv-num{
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum" 1, "lnum" 1;
  letter-spacing:-.01em;
}

/* ===========================================================================
   §4  PAGE SKELETON — canvas, masthead + numbered kicker, shelves, disclosure
   `pv-on` is added to <body> by premium.js only while a REDESIGNED route is
   mounted, so the nine pages Phase A hasn't touched keep the current canvas.
   =========================================================================== */
/* The shell is only as tall as its content; below it the BODY plane shows
   through, which left a slab of the old cool gray under the sidebar. */
body.hts-preview.pv-on{ background:var(--pv-canvas); }
body.hts-preview.pv-on .app{ background:var(--pv-canvas); }
/* the root element paints the overscroll/safe-area band and cannot be reached
   from a body class — :has() is the one selector that can. */
html:has(> body.hts-preview.pv-on){ background:#e9e2d4; }
@media (prefers-color-scheme:dark){
  html:not([data-theme="light"]):has(> body.hts-preview.pv-on){ background:#04080e; }
}
html[data-theme="dark"]:has(> body.hts-preview.pv-on){ background:#04080e; }
body.hts-preview.pv-on .content{
  background:var(--pv-canvas-mesh);
  background-color:var(--pv-canvas);
}

/* --- shell harmonization (colors only — geometry is untouched) ------------
   The first capture put a warm paper page inside the cool blue/white shell and
   the frame read as two different products bolted together. The sidebar and
   topbar therefore adopt the preview palette WHILE a Phase-A route is mounted:
   same widths, same paddings, same nav structure, same everything the layout
   engine cares about — only surface, ink and hairline change. Phase B will
   make this permanent for the whole app; until then it reverts the instant the
   user navigates to a page Phase A has not touched.                        */
body.hts-preview.pv-on .sidebar{
  background:linear-gradient(180deg, var(--pv-surface-2), var(--pv-canvas));
  border-right:1px solid var(--pv-hair);
  box-shadow:1px 0 0 rgba(16,29,44,.03);
}
body.hts-preview.pv-on .sidebar__brand b{ color:var(--pv-ink); }
body.hts-preview.pv-on .sidebar__brand b span{ color:var(--pv-gold) !important; }
body.hts-preview.pv-on .sidebar__brand .sub{ color:var(--pv-ink-3); letter-spacing:.2em; }
body.hts-preview.pv-on .nav__label{ color:var(--pv-ink-3); letter-spacing:.2em; }
body.hts-preview.pv-on .nav__item{ color:var(--pv-ink-2); border-radius:var(--pv-r-md); }
body.hts-preview.pv-on .nav__item:hover{
  background:color-mix(in srgb, var(--pv-ink) 6%, transparent); color:var(--pv-ink);
}
body.hts-preview.pv-on .nav__item.is-active{
  color:var(--pv-ink);
  background:color-mix(in srgb, var(--pv-gold-line) 14%, transparent);
  box-shadow:inset 3px 0 0 var(--pv-gold-fill);
}
body.hts-preview.pv-on .nav__item--start,
body.hts-preview.pv-on .nav__item--start.is-active{
  background:var(--pv-gold-fill); color:var(--pv-on-gold);
  box-shadow:0 8px 20px -12px color-mix(in srgb, var(--pv-gold-fill) 95%, transparent);
}
body.hts-preview.pv-on .nav__item--start .ic{ color:var(--pv-on-gold); }
body.hts-preview.pv-on .nav__item .count{ color:var(--pv-ink-3); }
body.hts-preview.pv-on .sidebar__stat{
  background:var(--pv-surface); border:1px solid var(--pv-hair);
  box-shadow:var(--pv-hi), 0 10px 24px -20px rgba(16,29,44,.6);
}
body.hts-preview.pv-on .sidebar__stat .ss-streak{ color:var(--pv-ink); }
body.hts-preview.pv-on .sidebar__stat .ss-streak b{ color:var(--pv-gold); }
body.hts-preview.pv-on .sidebar__stat .ss-sub{ color:var(--pv-ink-3); }
body.hts-preview.pv-on .topbar{
  background:color-mix(in srgb, var(--pv-canvas) 88%, transparent);
  border-bottom:1px solid var(--pv-hair);
}
body.hts-preview .pv-page{
  animation:none;                 /* kills the shared .page bare fade */
  max-width:1180px; margin:0 auto; width:100%;
  color:var(--pv-ink); font-family:var(--pv-font);
  padding-bottom:var(--pv-s7);
}
body.hts-preview .pv-page *{ min-width:0; }
body.hts-preview .pv-page img{ max-width:100%; }

/* --- kicker: the numbered curriculum spine shared by all 11 pages --------- */
body.hts-preview .pv-kicker{
  display:flex; align-items:center; gap:9px;
  font-size:var(--pv-fs-kicker); font-weight:800;
  letter-spacing:.24em; text-transform:uppercase;
  color:var(--pv-ink-3);
}
body.hts-preview .pv-kicker::after{
  content:""; height:1px; flex:1 1 auto; max-width:78px;
  background:linear-gradient(90deg, currentColor, transparent); opacity:.45;
}
body.hts-preview .pv-kicker--gold{ color:var(--pv-gold); }
body.hts-preview .pv-kicker--tight::after{ display:none; }

/* --- masthead ------------------------------------------------------------ */
body.hts-preview .pv-mh{ padding:var(--pv-s3) 0 var(--pv-s5); }
body.hts-preview .pv-mh__title{
  margin:12px 0 0; font-family:var(--font-display), var(--pv-font);
  font-size:var(--pv-fs-h1); font-weight:700; line-height:1.06;
  letter-spacing:-.028em; color:var(--pv-ink); text-wrap:balance;
}
/* two-tone split on the semantic pivot — English display strings only.
   Thai display strings stay single-color (tone-mark legibility). */
body.hts-preview .pv-mh__title em{ font-style:normal; color:var(--pv-gold-display, var(--pv-gold)); }
body.hts-preview .pv-mh__sub{
  margin:12px 0 0; max-width:54ch;
  font-size:var(--pv-fs-lead); line-height:1.5; color:var(--pv-ink-2);
  text-wrap:pretty;
}
body.hts-preview .pv-mh__sub b{ color:var(--pv-ink); font-weight:650; }

/* --- shelf --------------------------------------------------------------- */
body.hts-preview .pv-shelf{ margin-top:var(--pv-s6); }
body.hts-preview .pv-shelf__h{
  display:flex; align-items:baseline; gap:12px; flex-wrap:wrap;
  margin:0 2px var(--pv-s3);
}
body.hts-preview .pv-shelf__t{
  margin:0; font-size:var(--pv-fs-h3); font-weight:700;
  letter-spacing:-.018em; color:var(--pv-ink);
}
/* sits on the CANVAS, not on a card — ink-2 for the 4.5:1 bar at 13px */
body.hts-preview .pv-shelf__s{ font-size:var(--pv-fs-sm); color:var(--pv-ink-2); }
body.hts-preview .pv-wing__f .pv-shelf__s{ color:var(--pv-ink-3); }
body.hts-preview .pv-panel{ padding:var(--pv-s2); }

/* --- progressive disclosure (Hick's law: the catalog is not the front door) */
body.hts-preview .pv-more{ margin-top:var(--pv-s5); }
body.hts-preview .pv-more > summary{
  list-style:none; cursor:pointer; user-select:none;
  display:flex; align-items:center; gap:10px;
  padding:13px 16px; border-radius:var(--pv-r-md);
  border:1px dashed color-mix(in srgb, var(--pv-cv) 34%, transparent);
  color:var(--pv-ink-2); font-size:var(--pv-fs-body); font-weight:650;
  transition:border-color var(--pv-d-mid) var(--pv-settle), color var(--pv-d-mid) var(--pv-settle);
}
body.hts-preview .pv-more > summary::-webkit-details-marker{ display:none; }
body.hts-preview .pv-more > summary:hover{ color:var(--pv-ink); border-color:color-mix(in srgb, var(--pv-cv) 52%, transparent); }
body.hts-preview .pv-more > summary .pv-more__n{ margin-left:auto; font-size:var(--pv-fs-sm); color:var(--pv-ink-3); }
body.hts-preview .pv-more > summary .pv-more__x{ display:grid; place-items:center; flex:none; transition:transform var(--pv-d-mid) var(--pv-spring); }
body.hts-preview .pv-more > summary .pv-more__x svg{ width:16px; height:16px; }
body.hts-preview .pv-more[open] > summary .pv-more__x{ transform:rotate(45deg); }
body.hts-preview .pv-more__bd{ margin-top:var(--pv-s3); padding:var(--pv-s2); }
body.hts-preview .pv-more[open] .pv-more__bd > *{ animation:pvIn 460ms var(--pv-spring) both; animation-delay:calc(var(--pv-i,0) * 34ms); }

/* --- buttons ------------------------------------------------------------- */
body.hts-preview .pv-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:46px; padding:0 20px; border:0; cursor:pointer;
  border-radius:var(--pv-r-pill); font-family:var(--pv-font);
  font-size:var(--pv-fs-body); font-weight:700; letter-spacing:-.005em;
  text-decoration:none;
}
body.hts-preview .pv-btn svg{ width:17px; height:17px; }
body.hts-preview .pv-btn--gold{
  background:var(--pv-gold-fill); color:var(--pv-on-gold);
  box-shadow:0 10px 26px -14px color-mix(in srgb, var(--pv-gold-fill) 90%, transparent);
}
body.hts-preview .pv-btn--quiet{
  background:transparent; color:var(--pv-ink-2);
  border:1px solid color-mix(in srgb, var(--pv-cv) 32%, transparent);
}

/* ===========================================================================
   §5  THUMB ZONE — the one STRUCTURAL change: on phones the page's primary
   action is bottom-anchored where the thumb actually lives. Invisible on
   tablet/desktop, where the sidebar keeps ownership of navigation.
   =========================================================================== */
body.hts-preview .pv-thumb{ display:none; }
@media (max-width:560px){
  body.hts-preview.pv-on .pv-thumb{
    display:flex; align-items:center; gap:10px;
    position:fixed; left:0; right:0; bottom:0; z-index:45;
    padding:10px 14px calc(10px + var(--safe-b));
    background:color-mix(in srgb, var(--pv-canvas) 86%, transparent);
    -webkit-backdrop-filter:blur(16px) saturate(140%);
    backdrop-filter:blur(16px) saturate(140%);
    border-top:1px solid var(--pv-hair);
    animation:pvIn 520ms var(--pv-spring) both; animation-delay:340ms;
  }
  body.hts-preview.pv-on .pv-thumb .pv-btn{ flex:1 1 auto; min-width:0; }
  body.hts-preview.pv-on .pv-thumb .pv-btn span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  body.hts-preview.pv-on .pv-thumb__meta{
    flex:none; text-align:right; font-size:11px; line-height:1.25; color:var(--pv-ink-3);
  }
  body.hts-preview.pv-on .pv-thumb__meta b{ display:block; font-size:15px; color:var(--pv-ink); font-weight:750; }
  body.hts-preview.pv-on .pv-page{ padding-bottom:104px; }
  /* keep the app's own "back to your path" FAB clear of the bar */
  body.hts-preview.pv-on .path-fab{ bottom:calc(78px + var(--safe-b)); }
}
@media (max-width:560px) and (prefers-reduced-motion:reduce){
  body.hts-preview.pv-on .pv-thumb{ animation:none; }
}

/* ===========================================================================
   §5b  BREAKDOWN CARD, PHONE — compact the card HERO so the per-syllable
   analysis is what the owner of a thumb actually sees. Before this block the
   hero (tags + word + gloss + three 60px buttons) ate ~230px and the fixed
   thumb bar sat over the first syllable rows at rest, which read as "the
   breakdown is gone" (owner report 2026-08-23). Phone-only; the shipped
   card's desktop/tablet look is untouched.
   =========================================================================== */
@media (max-width:560px){
  body.hts-preview .pv-bd .wbd__hero{ padding-top:2px; }
  body.hts-preview .pv-bd .wbd__word{ font-size:44px; line-height:1.15; }
  body.hts-preview .pv-bd .wbd__gloss{ font-size:15px; margin-top:2px; }
  body.hts-preview .pv-bd .wbd__corner{ margin-bottom:4px; }
  body.hts-preview .pv-bd .wbd__actions{ gap:10px; margin-top:6px; }
  body.hts-preview .pv-bd .wbd__play,
  body.hts-preview .pv-bd .wbd__heart{ width:44px; height:44px; }
  body.hts-preview .pv-bd .wbd__constbtn{ height:44px; padding:0 14px; }
  body.hts-preview .pv-bd .wbd__divider{ margin:10px 0; }
  body.hts-preview .pv-bd .wbd__row{ padding:8px 0 10px; row-gap:14px; }
}

/* ===========================================================================
   §5c  SOUNDS PAGE, PHONE — the system rows and the formula plate join the
   compact grammar (owner order 2026-08-23: "consonant classes, live dead,
   golden formula etc needs to be optimized for mobile as well.. mobile only").
   Desktop/tablet untouched.
   =========================================================================== */
@media (max-width:560px){
  /* How-the-system-works: three SINGLE-LINE compact rows — the gloss goes,
     the icon tile shrinks, the row tightens. Same 44px touch floor. */
  body.hts-preview .pv-sounds .pv-rows .pv-row{ padding:9px 12px; min-height:44px; }
  body.hts-preview .pv-sounds .pv-rows .pv-row__g{ display:none; }
  body.hts-preview .pv-sounds .pv-rows .pv-row__ic{ width:34px; height:34px; }
  body.hts-preview .pv-sounds .pv-rows .pv-row__ic .pv-row__gl{ font-size:16px; }
  body.hts-preview .pv-sounds .pv-rows .pv-row__t{ font-size:15px; }
  /* The Complete Tone Formula: a slim one-line banner — kicker + title + go;
     the sentence-long description is desktop's. */
  body.hts-preview .pv-sounds .pv-formula{ padding:12px var(--pv-s4); gap:6px; }
  body.hts-preview .pv-sounds .pv-formula__d{ display:none; }
  body.hts-preview .pv-sounds .pv-formula__t{ font-size:16px; margin:2px 0 0; }
  body.hts-preview .pv-sounds .pv-formula .pv-kicker{ font-size:10px; }
  body.hts-preview .pv-sounds .pv-formula__go{ margin-top:4px; }
}

/* ===========================================================================
   §5d  SECONDARY CATALOG PAGES, PHONE — the two card-per-item catalogs that
   turned short lists into six screens of scrolling (owner secondary-sweep,
   2026-08-23). Preview-gated + phone-only; the shipped desktop look and every
   other route are untouched. Content identical — only the card geometry
   compacts: full-width tall cards become dense single-line rows.
   =========================================================================== */
@media (max-width:560px){
  /* ═══ THE UNIVERSAL VOCAB CHIP (owner plan, 2026-08-24) ═══
     One shape for every word-chip surface: TWO columns, FIXED height sized to
     the two-line-Thai case (so single-line words sit in the same box and every
     row lands on the same rhythm), Thai on top, gloss below, actions bottom-right.
     Applied here to the wcard family (scenario vocab + word categories — same
     .wcat-grid container on both pages, incl. forcing 2-col below the base CSS's
     400px flip so a 390px iPhone matches the 430px review frame). */
  body.hts-preview .wcat-grid{
    display:grid; grid-template-columns:repeat(2, minmax(0,1fr)) !important; gap:8px;
  }
  body.hts-preview .wcard{
    display:flex; flex-direction:column; align-items:stretch;
    min-height:104px; padding:10px 12px 9px; gap:0; border-left-width:4px;
  }
  /* owner 08-24: base chip words +15% for readability (mobile only), with a
     per-chip EMERGENCY DOWNSIZE — the enhancer flags .pv-fsdown on any chip
     whose Thai spills past two lines or whose gloss ellipsis-truncates, and
     that chip reverts to the pre-bump sizes. Slight height growth accepted. */
  body.hts-preview .wcard__thai{ font-size:23px; line-height:1.3; margin:0; }
  body.hts-preview .wcard__en{ font-size:13px; margin:2px 0 0; flex:1; }
  body.hts-preview .wcard.pv-fsdown .wcard__thai{ font-size:20px; }
  body.hts-preview .wcard.pv-fsdown .wcard__en{ font-size:11.5px; }
  body.hts-preview .wcard__foot{
    display:flex; align-items:center; justify-content:flex-end; gap:6px; margin:4px 0 0;
  }
  /* CONSONANTS (#/sounds/consonants) — 44 tall cards → compact head rows; the
     example-word body collapses behind the head (still present, dimmed in). */
  body.hts-preview .ccard{ padding:10px 14px; }
  body.hts-preview .ccard .chead{ margin:0; gap:10px; }
  body.hts-preview .ccard .cchar{ font-size:34px; min-width:44px; }
  body.hts-preview .ccard .cname{ font-size:13px; }
  body.hts-preview .ccard .cmeta{ font-size:11px; }
  body.hts-preview .ccard .cwords{ margin-top:6px; flex-direction:row; flex-wrap:wrap; gap:6px; }
  body.hts-preview .ccard .cw{ flex:1 1 45%; min-width:150px; padding:6px 9px; gap:7px; }
  body.hts-preview .ccard .cw .thai{ font-size:15px; }
  body.hts-preview .ccard .cw .g{ font-size:11px; }
  /* owner 08-23 (rescoped 08-24 audit ruling): ONE example word on phones applies
     ONLY to the letter CATALOGS — consonants + vowels, the massively tall lists,
     whose cards carry a .cchar letter glyph. The sound-GROUP lesson pages
     (finals/cursed/clusters/homophones — no .cchar) keep their FULL demo sets,
     like desktop: there the example set is the lesson. */
  body.hts-preview .page:has(.ccard .cchar) .ccard .cw:not(:first-child){ display:none; }
  body.hts-preview .page:has(.ccard .cchar) .ccard .cw{ flex:1 1 auto; }
  /* UNIVERSAL PLAN · letter catalogs: every card the SAME height — the obsolete
     letters (no example row) no longer produce short cards between rows. */
  body.hts-preview .page:has(.ccard .cchar) .ccard{ min-height:148px; display:flex; flex-direction:column; }
  body.hts-preview .page:has(.ccard .cchar) .ccard .cwords{ margin-top:auto; padding-top:6px; }
  /* UNIVERSAL PLAN · lesson pages (sound groups · live/dead · tone markers):
     the long-narrow word buttons inside their cards become the SAME 2-col
     square chip, WITHIN the container they already live in. Scope = pages
     without a .cchar letter glyph (so the catalogs' one-example row is safe). */
  body.hts-preview .page:not(:has(.cchar)) .cwords{
    display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px;
  }
  body.hts-preview .page:not(:has(.cchar)) .cwords .cw{
    display:flex; flex-direction:column; align-items:stretch; gap:1px; text-align:left;
    min-height:104px; min-width:0; padding:10px 12px 9px; position:relative;
  }
  /* owner 08-24 round 2: typography matches the wcard chip exactly (21px/800 —
     these read smaller at 20/700), the play glyph goes (the chip plays), and the
     enhancer swaps in the same heart + constellation actions as everywhere else. */
  body.hts-preview .page:not(:has(.cchar)) .cwords .cw .thai{
    /* 700 not 800 (font law 08-25): the Thai face has no real 800 — 800 forced faux-bold */
    font-size:24px; font-weight:700; line-height:1.3; white-space:normal; min-width:0;
  }
  body.hts-preview .page:not(:has(.cchar)) .cwords .cw .r{ font-size:11.5px; color:var(--ink-400,#8a97a5); }
  body.hts-preview .page:not(:has(.cchar)) .cwords .cw .g{ font-size:14px; flex:1; }
  body.hts-preview .page:not(:has(.cchar)) .cwords .cw.pv-fsdown .thai{ font-size:21px; }
  body.hts-preview .page:not(:has(.cchar)) .cwords .cw.pv-fsdown .g{ font-size:12px; }
  body.hts-preview .page:not(:has(.cchar)) .cwords .cw .pl{ display:none; }
  /* UNIVERSAL PLAN · Nuance Spectrum: romanization dropped on phones (owner). */
  body.hts-preview .pv-nuance .grow > b + .muted{ display:none; }
  /* UNIVERSAL PLAN · tone minimal sets: stays a single-column CAROUSEL (the next
     card must peek) but slimmer, so more of the neighbor shows. The play button
     is replaced by a heart via the preview enhancer; the row itself plays. */
  body.hts-preview .set-carousel .set-slide{ flex:0 0 min(296px, 80vw); }  /* owner 08-24: 272 was too narrow */
  body.hts-preview .tone-row{ cursor:pointer; }
  body.hts-preview .tone-row .thai .muted{ display:block; font-size:11px; margin-top:1px; }
  /* (pv-tonepill styling moved to base scope — all widths — 2026-08-25; the
     enhancer runs at every width but the pill styles only existed in this phone
     block, so desktop fell through to the flat global .t-* background.) */
  /* and its mast + the Classes tally strip join the phone grammar (the strip's
     sizes are inline-styled by the page, hence the !importants). */
  body.hts-preview .page:has(.sgrid) h1{ font-size:24px; line-height:1.15; margin:4px 0 8px; }
  body.hts-preview .page:has(.sgrid) h1 + .muted{ font-size:13px; line-height:1.65; }
  body.hts-preview .page:has(.sgrid) .flex.wrap.items-center{ font-size:13px !important; gap:6px; }
  body.hts-preview .page:has(.sgrid) .flex.wrap.items-center .cbadge{ font-size:11px !important; padding:3px 10px !important; }
  /* owner 08-23 round 2 (rescoped 08-24): the consonants + vowels CATALOGS go
     TWO-UP on phones so the lists halve in length. Scope = cards with a .cchar
     letter glyph — the group LESSON pages stay single-column with full demo sets. */
  body.hts-preview .page:has(.ccard .cchar) .sgrid{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px; }
  body.hts-preview .page:has(.ccard .cchar) .ccard{ padding:8px 9px; border-left-width:3px; }
  body.hts-preview .page:has(.ccard .cchar) .ccard .chead{ gap:7px; }
  /* owner 08-23: the Thai characters read 25% larger than first cut — they were
     blending into the name/explainer text. Labels stay small; glyphs pop. */
  body.hts-preview .page:has(.ccard .cchar) .ccard .cchar{ font-size:28px; min-width:32px; }
  body.hts-preview .page:has(.ccard .cchar) .ccard .cname{ font-size:11.5px; }
  body.hts-preview .page:has(.ccard .cchar) .ccard .cmeta{ font-size:10px; gap:5px; margin-top:2px; flex-wrap:wrap; }
  body.hts-preview .page:has(.ccard .cchar) .ccard .cmeta .cbadge{ font-size:9px !important; padding:2px 7px !important; }
  body.hts-preview .page:has(.ccard .cchar) .ccard .cmeta .tag{ font-size:9px; padding:1px 6px; }
  body.hts-preview .page:has(.ccard .cchar) .ccard .cwords{ margin-top:5px; }
  body.hts-preview .page:has(.ccard .cchar) .ccard .cw{ min-width:0; padding:5px 7px; gap:6px; }
  body.hts-preview .page:has(.ccard .cchar) .ccard .cw .thai{ font-size:17px; min-width:0; }
  body.hts-preview .page:has(.ccard .cchar) .ccard .cw .g{ font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  body.hts-preview .page:has(.ccard .cchar) .ccard .cw .pl{ font-size:9px; }

  /* ---- DEEP-LAYER MOBILE PASS (owner order 2026-08-23 evening: the sub-pages
     still read as "the web version shrunk down"). Phone-only, all gated. ---- */

  /* 1 · WORD COLLECTIONS, EXPANDED — UNIVERSAL PLAN: the chips are the same
     universal vocab chip as the wcard family (same height, same anatomy), now
     with heart + constellation actions where the word is connected. */
  body.hts-preview .pv-drop[open] .pv-chips{
    display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px;
    padding:8px 10px 12px;
  }
  body.hts-preview .pv-drop .pv-chip{
    display:flex; flex-direction:column; align-items:stretch; gap:0; text-align:left;
    padding:10px 12px 9px; border-radius:var(--pv-r-md); min-height:104px; min-width:0;
  }
  body.hts-preview .pv-drop .pv-chip__th{ font-size:23px; line-height:1.3; }
  body.hts-preview .pv-drop .pv-chip__en{
    font-size:13px; color:var(--pv-ink-3); white-space:nowrap; overflow:hidden;
    text-overflow:ellipsis; max-width:100%; margin-top:2px; flex:1;
  }
  body.hts-preview .pv-chip.pv-fsdown .pv-chip__th{ font-size:20px; }
  body.hts-preview .pv-chip.pv-fsdown .pv-chip__en{ font-size:11.5px; }
  body.hts-preview .pv-chip__acts{
    display:flex; align-items:center; justify-content:flex-end; gap:6px; margin-top:4px;
  }
  body.hts-preview .pv-chip__acts .wcard__web{
    font-size:0; padding:6px; line-height:0; border:1px solid var(--pv-line, var(--line));
    border-radius:99px; display:inline-flex;
  }
  body.hts-preview .pv-chip__acts .wcard__web svg{ width:15px; height:15px; }

  /* 2 · NUANCE SPECTRUM + LEGO WORDS (the sliced original cards) — the rows
     compact: smaller Thai column, tighter rhythm, smaller tags. The originals
     carry inline styles, so a handful of !importants is the honest price of
     restyling a shipped system from the outside without forking it. */
  body.hts-preview .pv-nuance .card{ padding:14px 14px 10px; }
  body.hts-preview .pv-nuance .card__title{ font-size:16px; }
  body.hts-preview .pv-nuance .card .thai{ font-size:17px !important; min-width:58px !important; }
  body.hts-preview .pv-nuance .card > div > div[style]{ padding:7px 0 !important; }
  body.hts-preview .pv-nuance .card b{ font-size:13.5px; }
  body.hts-preview .pv-nuance .card .muted{ font-size:11.5px; }
  body.hts-preview .pv-nuance .tag{ padding:3px 8px; font-size:11px; }

  /* 3 · SCENARIO INTERIOR VOCAB — superseded by THE UNIVERSAL VOCAB CHIP above
     (the stale row-era geometry/fonts here were silently overriding it — found
     during the 08-24 font pass). Only the icon sizing survives. */
  body.hts-preview .wcard{ border-radius:12px; }
  body.hts-preview .wcard__web{ font-size:0; padding:6px; line-height:0; }
  body.hts-preview .wcard__web svg{ width:15px; height:15px; }
  body.hts-preview .favbtn:not(.cfav){ font-size:15px; padding:6px; }   /* :not(.cfav) — the constellation hub heart keeps its own size (owner 08-30) */

  /* 3a · SCENARIO VOCAB GROUP TABS — same disease, same cure: the vertically
     stacking group pills become one swipeable rail. */
  body.hts-preview .vocab-tabs{
    flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch;
    scrollbar-width:none; gap:6px; padding-bottom:6px; margin-bottom:10px;
  }
  body.hts-preview .vocab-tabs::-webkit-scrollbar{ display:none; }
  body.hts-preview .vtab{ flex:none; white-space:nowrap; padding:7px 12px; font-size:12.5px; }

  /* 3b · CATEGORY FILTER CHIPS (word categories, playlist steps like Numbers) —
     the wrapping pill cloud (16 categories × icons = a wall) becomes the
     bespoke-mobile pattern: ONE swipeable rail, no icons, no wrap. */
  body.hts-preview .filters{
    flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch;
    scrollbar-width:none; gap:6px; padding:2px 2px 6px; margin:10px 0;
  }
  body.hts-preview .filters::-webkit-scrollbar{ display:none; }
  body.hts-preview .filters .chip{ flex:none; white-space:nowrap; padding:7px 12px; font-size:13px; }
  body.hts-preview .filters .chip .chip__ic,
  body.hts-preview .filters .chip img{ display:none; }

  /* 4 · REGISTER LADDERS — rung rhythm tightens (40 ladders on one page),
     and the mast joins the phone grammar (owner catch 08-23: desktop-scale
     h1 + paragraph ate the first viewport, like the formula hero did). */
  body.hts-preview .page:has(.ladgrid) h1{ font-size:24px; line-height:1.15; margin:4px 0 8px; }
  body.hts-preview .page:has(.ladgrid) h1 + .muted{ font-size:13px; line-height:1.65; }
  body.hts-preview .ladcard{ padding:10px 10px 8px; }
  body.hts-preview .ladcard h3{ font-size:15px; margin-bottom:6px; }
  body.hts-preview .rung{ padding:6px 9px; gap:8px; }
  body.hts-preview .rung .lvl2{ min-width:52px; padding:2px 7px; }

  /* 4b · FIVE TONES PAGE (#/sounds/tones) — owner 08-23: the tone cards were a
     shrunk desktop grid, each one taller than a viewport-half. On a phone the
     five cards become five dense ROWS: Thai word | name/roman/gloss | contour
     thumbnail | icon-only hear. Same DOM, reflowed by grid areas. */
  body.hts-preview .page:has(.tone-grid) h1{ font-size:24px; line-height:1.15; margin:4px 0 8px; }
  body.hts-preview .page:has(.tone-grid) h1 + .muted{ font-size:13px; line-height:1.65; }
  body.hts-preview .tone-grid{ gap:8px; }
  body.hts-preview .tone-card{
    flex:1 1 100%; display:grid; text-align:left; align-items:center;
    grid-template-columns:minmax(72px,auto) minmax(0,1fr) 68px auto;
    grid-template-areas:"word name wave hear" "word roman wave hear" "word en wave hear";
    column-gap:12px; row-gap:0; padding:9px 12px;
  }
  body.hts-preview .tone-card .name{ grid-area:name; margin:0; font-size:10px; }
  body.hts-preview .tone-card .tc-word{ grid-area:word; font-size:32px; line-height:1.5; margin:0; text-align:center; }
  body.hts-preview .tone-card .tc-roman{ grid-area:roman; margin:0; font-size:12.5px; }
  body.hts-preview .tone-card .tc-en{ grid-area:en; margin:0; font-size:11.5px; }
  body.hts-preview .tone-card .tc-wave{ grid-area:wave; margin:0; padding:4px 6px; }
  body.hts-preview .tone-card .tc-wave .contour{ height:26px; }
  body.hts-preview .tone-card .tc-hear{
    grid-area:hear; margin:0; font-size:0; line-height:0; padding:12px; border-radius:12px;
  }
  body.hts-preview .tone-card .tc-hear .ic{ font-size:13px; line-height:1; }

  /* 5 · DECORATIVE THAI OFF NAV SURFACES (owner order 2026-08-23: the Thai
     word lines cramp the buttons and most users cannot read them yet).
     Teaching-content Thai (breakdowns, collections' words, tone cards,
     example words) is UNTOUCHED — this strips ornament, not lessons. */
  body.hts-preview .pv-wing__th{ display:none; }              /* the four wings   */
  body.hts-preview .pv-scen__th{ display:none; }              /* scenario cards   */
  body.hts-preview .pv-wing{ padding-bottom:10px; }
  body.hts-preview .page .flex .thai.muted{ display:none; }   /* category mastheads */
  body.hts-preview .page h1 > .thai{ display:none; }          /* scenario-detail h1 */

  /* 6 · TONE FORMULA PAGE (#/sounds/formula) — full mobile compaction:
     smaller type, cleaner surface (owner catch ×2: the HERO was eating a
     full viewport — its real classes are formula-hero__*). */
  body.hts-preview .formula-hero{ padding:16px 14px 14px; }
  body.hts-preview .formula-hero__eyebrow{ font-size:10px; letter-spacing:.12em; margin-bottom:4px; }
  body.hts-preview .formula-hero__title{ font-size:23px; line-height:1.15; margin:0 0 6px; }
  body.hts-preview .formula-hero__sub{ font-size:13px; line-height:1.5; margin:0 0 10px; }
  body.hts-preview .formula-hero__eq{ gap:5px 4px; }
  body.hts-preview .tstep{ margin-top:14px; }
  body.hts-preview .fxlayout{ gap:12px; }
  body.hts-preview .fxw__hint{ font-size:11.5px; margin-top:6px; }
  body.hts-preview .page .fchip{ padding:5px 9px; font-size:11.5px; }
  body.hts-preview .page .fop{ font-size:12px; margin:0 1px; }
  body.hts-preview .tstep__num{ width:28px; height:28px; font-size:13px; }
  body.hts-preview .tstep__title{ font-size:17px; }
  body.hts-preview .tstep__head{ margin-bottom:10px; }
  body.hts-preview .tfm__h{ font-size:13px; padding:6px 3px; border-radius:9px; }
  body.hts-preview .tfm__h span{ font-size:10px; }
  body.hts-preview .tfm__sub{ font-size:10px; padding:4px 2px; }
  body.hts-preview .tfm__corner{ font-size:12px; }
  body.hts-preview .tfm .rc{ font-size:13px; padding:5px 2px; }
  body.hts-preview .tfm .cls{ font-size:14px; padding:7px 4px; border-radius:9px; }
  body.hts-preview .tcell__n{ font-size:12.5px; margin-top:3px; }
  body.hts-preview .tfm .na{ font-size:14px; }
  body.hts-preview .tfm .col-live, body.hts-preview .tfm .col-dead{ padding:6px 3px; border-radius:9px; }
  body.hts-preview .markcell__g{ font-size:30px; min-width:36px; }
  body.hts-preview .markcell__n b{ font-size:12.5px; }
  body.hts-preview .markcell__n i{ font-size:11px; }
  body.hts-preview .tcurve{ max-width:52px; height:24px; padding:2px 3px; }
  body.hts-preview .fxcell, body.hts-preview .mcell{ font-size:13px; }
  /* the decode widget becomes a compact RECEIPT (owner, pre-compact):
     word row with play at the right → answer strip → the four factors 2×2. */
  body.hts-preview .fxw{ padding:12px; }
  body.hts-preview .fxw__id{
    display:grid; grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"word play" "roman play" "en play" "ans ans";
    column-gap:10px; align-items:start;
  }
  body.hts-preview .fxw__word{ grid-area:word; font-size:28px; line-height:1.2; }
  body.hts-preview .fxw__roman{ grid-area:roman; font-size:12px; margin-top:1px; }
  body.hts-preview .fxw__en{ grid-area:en; font-size:12.5px; margin-top:1px; }
  body.hts-preview .fxw__play{ grid-area:play; align-self:center; margin:0; }
  body.hts-preview .fxw__answer{ grid-area:ans; margin:9px 0 0; padding:7px 10px; gap:8px; }
  body.hts-preview .fxw__ar{ font-size:13px; }
  body.hts-preview .fxw__factors{
    display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:6px; margin-top:8px;
  }
  body.hts-preview .fxf{ display:flex; align-items:center; gap:8px; padding:7px 9px; font-size:12.5px; }
  body.hts-preview .fxf__ic{ width:30px; height:30px; flex:none; font-size:17px; display:flex; align-items:center; justify-content:center; }
  body.hts-preview .fxf__k{ font-size:9px; letter-spacing:.06em; }
  body.hts-preview .fxf__v{ font-size:12.5px; line-height:1.25; }
  body.hts-preview .fxf__markg{ font-size:19px; }
  body.hts-preview .fxf .vmeter{ width:26px; }
}

/* AUDIT FIX H1 (owner 08-24): the registers ladder overflowed 36px at 320px.
   Smallest-phones-only block — 390px+ layouts untouched. The width eaters were
   the fixed badge min-width and the type sizes; both shrink until the row fits. */
@media (max-width:360px){
  /* THE actual overflow cause: .ladgrid's minmax(340px,1fr) column floor — a 320px
     screen can never satisfy 340px. Let the single column shrink with the screen. */
  body.hts-preview .ladgrid{ grid-template-columns:minmax(0,1fr); }
  body.hts-preview .ladcard{ padding:8px 7px 6px; }
  body.hts-preview .rung{ padding:5px 7px; gap:6px; }
  body.hts-preview .rung .lvl2{ min-width:0; font-size:8.5px; padding:2px 5px; letter-spacing:.02em; }
  body.hts-preview .rung .mid{ gap:5px; }
  body.hts-preview .rung .thai{ font-size:16px; }
  body.hts-preview .rung .r{ font-size:11px; }
  body.hts-preview .rung .g{ font-size:10.5px; }
}

/* AUDIT FIX M2 (owner 08-24: "consistency is key… nothing breaks/clips"): the
   sub-44px controls get INVISIBLE hit-area growth via an absolutely-inset
   pseudo-element — zero visual change, so nothing can clip. 32px + 2×6 = 44;
   the 27px hearts take -9 to reach 45. None of these classes used ::after. */
body.hts-preview .sbd__wplay, body.hts-preview .sbd__wheart,
body.hts-preview .favbtn:not(.cfav), body.hts-preview .wcard__web{ position:relative; }   /* :not(.cfav): the constellation heart is absolutely pinned to the hub corner (views.css .cfav) — position:relative here dropped it into the hub's flex flow and inflated the hub (owner catch 08-30) */
body.hts-preview .sbd__wplay::after, body.hts-preview .sbd__wheart::after,
body.hts-preview .wcard__web::after{ content:""; position:absolute; inset:-6px; border-radius:50%; }
body.hts-preview .favbtn:not(.cfav)::after{ content:""; position:absolute; inset:-9px; border-radius:50%; }

/* ═══ PHONE-LANDSCAPE GATE (owner 08-24, ships with the un-gate) ═══
   Phones must be used upright — same contract as onboarding's "Turn your
   device upright". iPad landscape stays ALLOWED: a landscape PHONE viewport
   is at most ~440px tall while the smallest iPad landscape is 768px, so the
   500px height line separates them exactly. Pure CSS, no JS: an opaque
   fixed overlay swallows the app (and all interaction) until rotated. */
/* E3 (2026-10-18): touch-primary devices only, so a short desktop/laptop window never sees it; phones unchanged */
@media (orientation:landscape) and (max-height:500px) and (pointer:coarse){
  body.hts-preview::after{
    content:"Turn your device upright\A The app is built for portrait on phones.";
    white-space:pre-line; position:fixed; inset:0; z-index:2147483000;
    display:flex; align-items:center; justify-content:center; text-align:center;
    padding:24px 40px; font-family:inherit; font-weight:800; font-size:22px; line-height:1.9;
    background:var(--pv-bg, #0b1220); color:var(--pv-ink-1, #e9f0f8);
  }
}

/* the Register Ladders intro legend: `.lvl2` OUTSIDE `.rung` has no styling
   anywhere in the shipped CSS (views.css only defines `.rung .lvl2`). Owner
   08-23 round 2: solid bright pills were ugly and too large — the legend is now
   SMALL soft-tint chips with colored text (the app's tag idiom). The register
   color rides in via attribute hooks on the inline background the page emits. */
body.hts-preview .page .muted .lvl2{
  display:inline-block; font-size:9.5px; font-weight:800; text-transform:uppercase;
  letter-spacing:.05em; padding:2px 8px; border-radius:99px;
  line-height:1.5; vertical-align:2px; white-space:nowrap;
  background:color-mix(in srgb, var(--lgc, #64748b) 15%, transparent) !important;
  color:var(--lgc, var(--ink-600, #5c6a7a));
}
body.hts-preview .page .muted .lvl2[style*="e8526a"]{ --lgc:#e8526a; }
body.hts-preview .page .muted .lvl2[style*="e08a2b"]{ --lgc:#e08a2b; }
body.hts-preview .page .muted .lvl2[style*="1f70df"]{ --lgc:#1f70df; }
body.hts-preview .page .muted .lvl2[style*="16b36b"]{ --lgc:#16b36b; }
body.hts-preview .page .muted .lvl2[style*="0f9a5b"]{ --lgc:#0f9a5b; }
body.hts-preview .page .muted .lvl2[style*="0b7a8c"]{ --lgc:#0b7a8c; }
body.hts-preview .page .muted .lvl2[style*="7b61ff"]{ --lgc:#7b61ff; }

/* the restored Nuance Spectrum + Lego Words section (sliced from the shipped
   page — original cards, spaced into the premium rhythm; owner parity ruling) */
body.hts-preview .pv-nuance{ margin-top:var(--pv-s7); }
body.hts-preview .pv-nuance .grid--2{ gap:var(--pv-s4); }
@media (max-width:560px){
  body.hts-preview .pv-nuance .grid--2{ grid-template-columns:minmax(0,1fr); }
}

/* ===========================================================================
   §6  THE FOUR STATES — loading (skeleton, never a spinner) · populated ·
   empty (why + what next) · error. Applied to every data-bearing region.
   =========================================================================== */
@keyframes pvShimmer{ from{ background-position:-220px 0; } to{ background-position:320px 0; } }
body.hts-preview .pv-sk{
  border-radius:8px; color:transparent; user-select:none;
  background-color:color-mix(in srgb, var(--pv-ink) 8%, transparent);
  background-image:linear-gradient(90deg,
    transparent, color-mix(in srgb, var(--pv-ink) 6%, transparent), transparent);
  background-size:220px 100%; background-repeat:no-repeat;
  animation:pvShimmer 1.25s linear infinite;
}
@media (prefers-reduced-motion:reduce){ body.hts-preview .pv-sk{ animation:none; } }
body.hts-preview .pv-sk--line{ height:12px; }
body.hts-preview .pv-sk--wide{ width:64%; }
body.hts-preview .pv-sk--tall{ height:34px; width:110px; }

body.hts-preview .pv-note{
  display:flex; align-items:center; gap:12px; min-width:0;
  padding:14px 16px; border-radius:var(--pv-r-md);
  font-size:var(--pv-fs-sm); color:var(--pv-ink-2);
  border:1px solid color-mix(in srgb, var(--pv-cv) 24%, transparent);
  background:color-mix(in srgb, var(--pv-cv) 6%, transparent);
}
body.hts-preview .pv-note b{ color:var(--pv-ink); font-weight:700; }
body.hts-preview .pv-note__a{
  margin-left:auto; flex:none; color:var(--pv-gold); font-weight:700;
  text-decoration:none; font-size:var(--pv-fs-sm); white-space:nowrap;
}
body.hts-preview .pv-note--error{ --pv-cv:var(--pv-ink-3); }
body.hts-preview .pv-note > svg{ width:19px; height:19px; flex:none; color:var(--pv-ink-3); }
body.hts-preview .pv-ledger__ic{ display:grid; place-items:center; flex:none; color:var(--pv-ink-3); }
body.hts-preview .pv-ledger__ic svg{ width:20px; height:20px; }

/* ===========================================================================
   §7  HOME — the proof screen.
   ONE next action, then curated shelves, then the catalog behind disclosure.
   SIGNATURE MOTION: the hero's gold arc draws itself once and its numeral
   counts up to meet it. Nothing else on the frame moves.
   =========================================================================== */
body.hts-preview .pv-hero{
  position:relative;
  display:grid; grid-template-columns:minmax(0,1fr) auto;
  align-items:center; gap:var(--pv-s6);
  padding:var(--pv-s6) var(--pv-s6); border-radius:var(--pv-r-xl);
  text-decoration:none; overflow:hidden;
}
body.hts-preview .pv-hero__bd{ position:relative; min-width:0; }
body.hts-preview .pv-hero__t{
  margin:13px 0 0; font-family:var(--font-display), var(--pv-font);
  font-size:clamp(24px, 3.6vw, 34px); font-weight:700; letter-spacing:-.028em;
  line-height:1.08; color:var(--pv-ink); text-wrap:balance;
}
body.hts-preview .pv-hero__d{
  margin:10px 0 0; max-width:46ch;
  font-size:var(--pv-fs-lead); color:var(--pv-ink-2); line-height:1.45;
}
body.hts-preview .pv-hero__cta{
  display:inline-flex; align-items:center; gap:8px; margin-top:var(--pv-s4);
  height:44px; padding:0 20px; border-radius:var(--pv-r-pill);
  background:var(--pv-gold-fill); color:var(--pv-on-gold);
  font-size:var(--pv-fs-body); font-weight:750;
  box-shadow:0 12px 28px -16px color-mix(in srgb, var(--pv-gold-fill) 95%, transparent);
}
body.hts-preview .pv-hero__cta svg{ width:17px; height:17px; }

/* the signature meter */
body.hts-preview .pv-meter{ position:relative; width:168px; height:168px; flex:none; }
body.hts-preview .pv-meter svg{ width:100%; height:100%; display:block; transform:rotate(-90deg); }
body.hts-preview .pv-meter__track{
  fill:none; stroke:color-mix(in srgb, var(--pv-ink) 14%, transparent); stroke-width:6;
}
body.hts-preview .pv-meter__arc{
  fill:none; stroke:var(--pv-gold-line); stroke-width:8; stroke-linecap:round;
  stroke-dasharray:var(--pv-len,1);
  /* the RESTING value must be the true one: with the animation suppressed
     (reduced motion) an unset dashoffset drew a FULL ring on a 1-of-3 meter —
     a motion preference must never change what the number says. */
  stroke-dashoffset:var(--pv-off,0);
  filter:drop-shadow(0 0 9px color-mix(in srgb, var(--pv-gold-line) 55%, transparent));
  animation:pvDraw var(--pv-d-draw) var(--pv-settle) both; animation-delay:240ms;
}
body.hts-preview .pv-meter__c{
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:1px; text-align:center;
}
body.hts-preview .pv-meter__c b{
  font-size:36px; font-weight:750; line-height:1; color:var(--pv-ink);
  font-variant-numeric:tabular-nums; letter-spacing:-.03em;
}
body.hts-preview .pv-meter__c i{
  font-style:normal; font-size:10px; font-weight:800;
  letter-spacing:.17em; text-transform:uppercase; color:var(--pv-ink-3);
}
/* Phones: the ring must not float as an orphan above the copy (first capture).
   Pin it top-right of the plate and reserve the gutter — the kicker and title
   then run beside it and the paragraph flows full width underneath. */
@media (max-width:640px){
  body.hts-preview .pv-hero{
    grid-template-columns:minmax(0,1fr); gap:0;
    padding:var(--pv-s5) var(--pv-s4) var(--pv-s4);
  }
  body.hts-preview .pv-hero__r{ position:absolute; top:var(--pv-s4); right:var(--pv-s4); }
  body.hts-preview .pv-meter{ width:96px; height:96px; }
  body.hts-preview .pv-meter__c b{ font-size:25px; }
  body.hts-preview .pv-meter__c i{ font-size:9px; letter-spacing:.14em; }
  /* EVERYTHING in the body column clears the ring gutter. (The old rule padded only
     the kicker+title on the assumption they always outran the ring's height — a
     one-line title broke it and the paragraph clipped under the ring; owner catch
     2026-08-23.) */
  body.hts-preview .pv-hero__bd > .pv-kicker,
  body.hts-preview .pv-hero__d,
  body.hts-preview .pv-hero__t{ padding-right:110px; }
  body.hts-preview .pv-hero__t{ font-size:25px; }
}
@media (max-width:380px){
  body.hts-preview .pv-meter{ width:82px; height:82px; }
  body.hts-preview .pv-hero__bd > .pv-kicker,
  body.hts-preview .pv-hero__d,
  body.hts-preview .pv-hero__t{ padding-right:94px; }
}

/* --- the trial / access ledger strip (the four-state region) -------------- */
body.hts-preview .pv-ledger{
  margin-top:var(--pv-s3); padding:12px 16px; border-radius:var(--pv-r-md);
  display:flex; align-items:center; gap:14px; flex-wrap:wrap; min-height:56px;
}
body.hts-preview .pv-ledger__n{
  font-size:26px; font-weight:750; line-height:1; color:var(--pv-ink);
  font-variant-numeric:tabular-nums; letter-spacing:-.03em;
}
body.hts-preview .pv-ledger__l{ font-size:var(--pv-fs-sm); color:var(--pv-ink-2); line-height:1.35; }
body.hts-preview .pv-ledger__l s{ display:block; text-decoration:none; color:var(--pv-ink-3); font-size:var(--pv-fs-micro); }
body.hts-preview .pv-ledger__bar{
  flex:1 1 160px; height:6px; min-width:120px; border-radius:99px;
  background:color-mix(in srgb, var(--pv-ink) 11%, transparent); overflow:hidden;
}
body.hts-preview .pv-ledger__bar > i{
  display:block; height:100%; border-radius:99px; background:var(--pv-gold-line);
  width:var(--pv-w,0%);
  animation:pvGrow 900ms var(--pv-settle) both; animation-delay:200ms;
}
@keyframes pvGrow{ from{ width:0; } to{ width:var(--pv-w,0%); } }
@media (prefers-reduced-motion:reduce){ body.hts-preview .pv-ledger__bar > i{ animation:none; } }

/* --- activation checklist (the designed empty state) ---------------------- */
body.hts-preview .pv-act__ic--done{ --pv-cv:var(--pv-green-line); }
body.hts-preview .pv-row--done .pv-row__t{ color:var(--pv-ink-2); }

/* --- the four wings ------------------------------------------------------- */
body.hts-preview .pv-wings{
  display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:var(--pv-s3);
}
@media (max-width:1024px){ body.hts-preview .pv-wings{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:470px){ body.hts-preview .pv-wings{ grid-template-columns:minmax(0,1fr); } }
body.hts-preview .pv-wing{
  display:flex; flex-direction:column; gap:10px; min-width:0;
  padding:var(--pv-s4); border-radius:var(--pv-r-lg);
  text-decoration:none; color:inherit;
}
/* Lane hues, per theme. The Thai anchor renders these at 27px display weight, so
   each value is picked to clear 3:1 against the plane it sits on (paper first,
   then the dark card surface, where the paper values go too dark to read). */
body.hts-preview .pv-wing--sounds{ --pv-cv:#6f63c4; }
body.hts-preview .pv-wing--words{ --pv-cv:#1f70df; }
body.hts-preview .pv-wing--sentences{ --pv-cv:#0b8480; }
body.hts-preview .pv-wing--scenarios{ --pv-cv:#c04859; }
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) body.hts-preview .pv-wing--sounds{ --pv-cv:#9d92ec; }
  :root:not([data-theme="light"]) body.hts-preview .pv-wing--words{ --pv-cv:#5b9bf0; }
  :root:not([data-theme="light"]) body.hts-preview .pv-wing--sentences{ --pv-cv:#3fbdb6; }
  :root:not([data-theme="light"]) body.hts-preview .pv-wing--scenarios{ --pv-cv:#ec8394; }
}
:root[data-theme="dark"] body.hts-preview .pv-wing--sounds{ --pv-cv:#9d92ec; }
:root[data-theme="dark"] body.hts-preview .pv-wing--words{ --pv-cv:#5b9bf0; }
:root[data-theme="dark"] body.hts-preview .pv-wing--sentences{ --pv-cv:#3fbdb6; }
:root[data-theme="dark"] body.hts-preview .pv-wing--scenarios{ --pv-cv:#ec8394; }

body.hts-preview .pv-wing__top{ display:flex; align-items:center; gap:10px; }
body.hts-preview .pv-wing__ic{
  width:38px; height:38px; flex:none; border-radius:11px; display:grid; place-items:center;
  color:var(--pv-cv);
  background:color-mix(in srgb, var(--pv-cv) 13%, transparent);
  border:1px solid color-mix(in srgb, var(--pv-cv) 28%, transparent);
}
body.hts-preview .pv-wing__ic svg{ width:19px; height:19px; }
body.hts-preview .pv-wing__t{ font-size:var(--pv-fs-body); font-weight:700; color:var(--pv-ink); letter-spacing:-.01em; }
body.hts-preview .pv-wing__th{
  font-family:var(--pv-thai); font-size:27px; font-weight:700; line-height:1.35;
  color:var(--pv-cv); margin:0; letter-spacing:.01em;
}
body.hts-preview .pv-wing__d{ font-size:var(--pv-fs-sm); color:var(--pv-ink-3); line-height:1.42; }
body.hts-preview .pv-wing__f{ margin-top:auto; padding-top:6px; display:flex; align-items:center; gap:8px; }

/* ===========================================================================
   §8  SOUNDS — the 5 tones ARE the hero, drawn from the app's REAL contours
   (H.tonePaths — the same curves the Tones screen, the Formula decoder and
   Tone Lab use). SIGNATURE MOTION: the five contours trace themselves in
   sequence, then the board is still.
   =========================================================================== */
body.hts-preview .pv-board{
  position:relative;
  padding:var(--pv-s6) var(--pv-s5) var(--pv-s5); border-radius:var(--pv-r-xl); overflow:hidden;
}
body.hts-preview .pv-board__h{ position:relative; display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
body.hts-preview .pv-board__t{
  margin:0; font-family:var(--font-display), var(--pv-font);
  font-size:clamp(20px, 2.6vw, 26px); font-weight:700; color:var(--pv-ink); letter-spacing:-.024em;
}
body.hts-preview .pv-board__grid{
  position:relative; margin-top:var(--pv-s4);
  display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:var(--pv-s3);
}
@media (max-width:900px){ body.hts-preview .pv-board__grid{ grid-template-columns:repeat(3, minmax(0,1fr)); } }
@media (max-width:470px){ body.hts-preview .pv-board__grid{ grid-template-columns:repeat(2, minmax(0,1fr)); } }

body.hts-preview .pv-tone{
  display:flex; flex-direction:column; align-items:center; gap:7px; min-width:0;
  padding:var(--pv-s4) 10px 12px; border-radius:var(--pv-r-md);
  text-decoration:none; color:inherit; text-align:center;
  font-family:inherit; cursor:pointer; -webkit-appearance:none; appearance:none;
  background:color-mix(in srgb, var(--pv-cv) 7%, transparent);
  border:1px solid color-mix(in srgb, var(--pv-cv) 24%, transparent);
  box-shadow:0 14px 30px -26px color-mix(in srgb, var(--pv-cv) 100%, transparent);
  transition:transform var(--pv-d-tap) var(--pv-tap),
             border-color var(--pv-d-mid) var(--pv-settle),
             background var(--pv-d-mid) var(--pv-settle);
}
@media (hover:hover){
  body.hts-preview .pv-tone:hover{
    transform:translateY(-2px);
    background:color-mix(in srgb, var(--pv-cv) 12%, transparent);
    border-color:color-mix(in srgb, var(--pv-cv) 46%, transparent);
  }
}
body.hts-preview .pv-tone:active{ transform:scale(.975); }
body.hts-preview .pv-tone__c{ width:100%; height:44px; display:block; margin-bottom:2px; }
body.hts-preview .pv-tone__c path{
  fill:none; stroke:var(--pv-cv); stroke-width:5;
  stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:var(--pv-len,1);
  stroke-dashoffset:var(--pv-off,0);   /* resting = fully traced (see the meter) */
  animation:pvDraw 900ms var(--pv-settle) both;
  animation-delay:calc(220ms + var(--pv-i,0) * 165ms);
}
body.hts-preview .pv-tone__th{
  font-family:var(--pv-thai); font-size:30px; font-weight:700; line-height:1.35;
  color:var(--pv-ink);
}
body.hts-preview .pv-tone__r{ font-size:var(--pv-fs-sm); color:var(--pv-ink-2); font-weight:600; }
body.hts-preview .pv-tone__g{
  font-size:var(--pv-fs-micro); color:var(--pv-ink-3); line-height:1.3;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%;
}
@media (max-width:470px){
  body.hts-preview .pv-tone{ padding:12px 8px 10px; }
  body.hts-preview .pv-tone__th{ font-size:26px; }
  /* five tones in a two-column board leaves a lone orphan — the fifth spans the
     full width instead of sitting in a half-empty row. */
  body.hts-preview .pv-board__grid > .pv-tone:last-child{ grid-column:1 / -1; }
}
body.hts-preview .pv-board__f{
  position:relative; margin-top:var(--pv-s4);
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
}
body.hts-preview .pv-board__note{ font-size:var(--pv-fs-sm); color:var(--pv-ink-3); flex:1 1 200px; }

/* --- the sounds module grid ---------------------------------------------- */
body.hts-preview .pv-mods{
  display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:var(--pv-s3);
}
@media (max-width:900px){ body.hts-preview .pv-mods{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:470px){ body.hts-preview .pv-mods{ grid-template-columns:minmax(0,1fr); } }
body.hts-preview .pv-mod{
  display:grid; min-width:0;
  grid-template-columns:auto minmax(0,1fr);
  grid-template-areas:"ic ttl" "desc desc" "foot foot";
  align-items:center; gap:9px 11px;
  padding:var(--pv-s4); border-radius:var(--pv-r-lg);
  text-decoration:none; color:inherit;
}
body.hts-preview .pv-mod__gl{
  grid-area:ic;
  width:40px; height:40px; flex:none; border-radius:11px; display:grid; place-items:center;
  font-family:var(--pv-thai); font-size:19px; font-weight:700; color:var(--pv-cv);
  background:color-mix(in srgb, var(--pv-cv) 12%, transparent);
  border:1px solid color-mix(in srgb, var(--pv-cv) 27%, transparent);
}
body.hts-preview .pv-mod__t{
  grid-area:ttl; align-self:center;
  font-size:var(--pv-fs-body); font-weight:700; color:var(--pv-ink); letter-spacing:-.01em;
}
body.hts-preview .pv-mod__d{
  grid-area:desc; display:block; min-width:0;
  font-size:var(--pv-fs-sm); color:var(--pv-ink-3); line-height:1.42;
}
body.hts-preview .pv-mod__f{
  grid-area:foot; align-self:end; margin-top:auto;
  display:flex; align-items:center; gap:8px;
}
body.hts-preview .pv-mod__n{ margin-left:auto; font-size:var(--pv-fs-micro); color:var(--pv-ink-3); }

/* Phones: the same four children re-flow into a compact row so the Sounds page
   is a scannable list, not seven full-width posters. Same atom, denser. */
@media (max-width:560px){
  body.hts-preview .pv-mods{ gap:var(--pv-s2); }
  body.hts-preview .pv-mod{
    grid-template-areas:"ic ttl" "ic desc" "ic foot";
    align-items:start; gap:2px 12px; padding:13px 14px;
  }
  body.hts-preview .pv-mod__gl{ grid-row:span 3; align-self:center; }
  body.hts-preview .pv-mod__d{
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%;
  }
  body.hts-preview .pv-mod__f{ margin-top:7px; }
}

/* --- locked state: de-emphasis is LOSING the elevation, and the lock reads as
   the status pill, never as an emoji. `[data-tl-area]` survives only on cards
   applyTrialLocks left locked, so this styles exactly the locked ones. ------ */
body.hts-preview .pv-mod[data-tl-area],
body.hts-preview .pv-formula[data-tl-area]{
  box-shadow:none; border-color:color-mix(in srgb, var(--pv-cv) 12%, transparent);
}
body.hts-preview .pv-mod[data-tl-area] .pv-mod__t,
body.hts-preview .pv-mod[data-tl-area] .pv-mod__d{ opacity:.62; }
body.hts-preview .tl-pin{
  position:absolute; top:10px; right:10px; z-index:3; font-size:0; line-height:0;
}
body.hts-preview .tl-pin::after{
  content:"Locked"; display:inline-flex; align-items:center;
  height:21px; padding:0 9px; border-radius:var(--pv-r-pill);
  font-family:var(--pv-font); font-size:10px; font-weight:800; line-height:1;
  letter-spacing:.13em; text-transform:uppercase;
  color:var(--pv-ink-3);
  background:color-mix(in srgb, var(--pv-ink-3) 15%, var(--pv-surface));
  border:1px solid color-mix(in srgb, var(--pv-ink-3) 36%, transparent);
}
/* on a row the lock takes the right control's place — same box, no layout shift */
body.hts-preview .pv-row{ position:relative; }
body.hts-preview .pv-row .tl-pin{ top:50%; right:12px; transform:translateY(-50%); }
body.hts-preview .pv-row[data-tl-area] .pv-row__go{ visibility:hidden; }
body.hts-preview .pv-row[data-tl-area] .pv-row__t,
body.hts-preview .pv-row[data-tl-area] .pv-row__g{ opacity:.62; }

/* the formula bar — one gold moment, the page's biggest promise */
body.hts-preview .pv-formula{
  position:relative;
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:var(--pv-s5);
  margin-top:var(--pv-s3); padding:var(--pv-s5); border-radius:var(--pv-r-lg);
  text-decoration:none; overflow:hidden;
}
body.hts-preview .pv-formula__bd{ position:relative; min-width:0; }
body.hts-preview .pv-formula__t{
  margin:9px 0 0; font-family:var(--font-display), var(--pv-font);
  font-size:clamp(19px, 2.3vw, 24px); font-weight:700; color:var(--pv-ink); letter-spacing:-.024em;
}
body.hts-preview .pv-formula__d{ margin:6px 0 0; font-size:var(--pv-fs-sm); color:var(--pv-ink-2); }
body.hts-preview .pv-formula__go{
  position:relative; flex:none; display:inline-flex; align-items:center; gap:8px;
  height:42px; padding:0 18px; border-radius:var(--pv-r-pill);
  background:var(--pv-gold-fill); color:var(--pv-on-gold); font-size:var(--pv-fs-sm); font-weight:750;
  white-space:nowrap;
}
body.hts-preview .pv-formula__go svg{ width:16px; height:16px; }
@media (max-width:560px){
  body.hts-preview .pv-formula{ grid-template-columns:minmax(0,1fr); padding:var(--pv-s4); }
  body.hts-preview .pv-formula__go{ width:100%; justify-content:center; }
}

/* --- legacy trial-lock compatibility -------------------------------------
   The premium cards carry the SAME lock contract the shipped page uses
   (data-tl-area / data-tl-style / data-tl-href + applyTrialLocks). While a
   card is locked the legacy overlay CSS paints over it; these two rules just
   keep that overlay inside the new radius. Unlocking is untouched.          */
body.hts-preview .pv-mod.trial-media, body.hts-preview .pv-tone.trial-media{ overflow:hidden; }
body.hts-preview .pv-mod .tl-cover, body.hts-preview .pv-tone .tl-cover{ border-radius:inherit; }

/* ===========================================================================
   §9  PHASE B — the remaining nine pages.
   Everything below composes the §1–§6 primitives; the per-page additions are
   the SHAPES those pages genuinely need and nothing else. Every rule is still
   scoped under `body.hts-preview`.

     §9   shared Phase-B parts (figure · disclosure row · chips · filters)
     §10  WORDS      — the measured constellation
     §11  SENTENCES  — the one line
     §12  SCENARIOS  — the domain bars (which are also the filter)
     §13  FLUENCY    — the curriculum ladder
     §14  READ       — the five-segment rail
     §15  ARCADE     — the console + lane-tinted game cards
     §16  REVIEW     — the deck + the untouched session host
     §17  PLAYLISTS + PROGRESS
   =========================================================================== */

/* --- a STATIC figure: a big tabular number where a page needs a counterweight
   but already spends its one motion somewhere else. -------------------------- */
body.hts-preview .pv-fig{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  min-width:120px; padding:var(--pv-s3) var(--pv-s4); border-radius:var(--pv-r-lg);
  background:color-mix(in srgb, var(--pv-cv) 10%, transparent);
  border:1px solid color-mix(in srgb, var(--pv-cv) 22%, transparent);
}
body.hts-preview .pv-fig b{
  font-size:44px; font-weight:750; line-height:1; color:var(--pv-gold);
  font-variant-numeric:tabular-nums; letter-spacing:-.04em;
}
body.hts-preview .pv-fig s{ text-decoration:none; font-size:14px; color:var(--pv-ink-3); margin-top:2px; }
body.hts-preview .pv-fig i{
  font-style:normal; margin-top:6px; font-size:10px; font-weight:800;
  letter-spacing:.16em; text-transform:uppercase; color:var(--pv-ink-3); white-space:nowrap;
}
@media (max-width:640px){
  body.hts-preview .pv-fig{ min-width:0; padding:8px 12px; flex-direction:row; gap:6px; align-items:baseline; }
  body.hts-preview .pv-fig b{ font-size:26px; }
  body.hts-preview .pv-fig i{ display:none; }
}

/* --- disclosure ROW: the row atom as a <summary>, so a list item can open ---- */
body.hts-preview .pv-drop{ border-radius:var(--pv-r-md); }
body.hts-preview .pv-drop > summary{ list-style:none; cursor:pointer; }
body.hts-preview .pv-drop > summary::-webkit-details-marker{ display:none; }
body.hts-preview .pv-drop__n{
  font-size:var(--pv-fs-sm); font-weight:750; color:var(--pv-ink-2);
  font-variant-numeric:tabular-nums;
}
body.hts-preview .pv-drop > summary .pv-row__go{ width:auto; gap:8px; display:flex; align-items:center; }
body.hts-preview .pv-drop > summary .pv-row__go svg{ transition:transform var(--pv-d-mid) var(--pv-spring); }
body.hts-preview .pv-drop[open] > summary .pv-row__go svg{ transform:rotate(45deg); }
body.hts-preview .pv-drop[open] > summary{ background:color-mix(in srgb, var(--pv-cv) 8%, transparent); border-radius:var(--pv-r-md); }

/* --- word chips: a real audio button, sized for a thumb --------------------- */
body.hts-preview .pv-chips{
  display:flex; flex-wrap:wrap; gap:var(--pv-s2);
  padding:var(--pv-s3) 12px var(--pv-s4) 68px;
}
@media (max-width:470px){ body.hts-preview .pv-chips{ padding-left:12px; } }
body.hts-preview .pv-chip{
  display:inline-flex; align-items:baseline; gap:8px; min-width:0; max-width:100%;
  padding:9px 14px; border-radius:var(--pv-r-pill); cursor:pointer;
  font-family:inherit; -webkit-appearance:none; appearance:none;
  color:var(--pv-ink);
  background:color-mix(in srgb, var(--pv-cv) 9%, transparent);
  border:1px solid color-mix(in srgb, var(--pv-cv) 26%, transparent);
  transition:background var(--pv-d-mid) var(--pv-settle), border-color var(--pv-d-mid) var(--pv-settle);
}
@media (hover:hover){
  body.hts-preview .pv-chip:hover{
    background:color-mix(in srgb, var(--pv-cv) 16%, transparent);
    border-color:color-mix(in srgb, var(--pv-cv) 44%, transparent);
  }
}
body.hts-preview .pv-chip__th{
  font-family:var(--pv-thai); font-size:19px; font-weight:700; line-height:1.35;
  overflow-wrap:anywhere;
}
body.hts-preview .pv-chip__en{
  font-size:var(--pv-fs-micro); color:var(--pv-ink-3);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:150px;
}
body.hts-preview .pv-more__bd--bare{ padding:0; background:none; border:0; box-shadow:none; }

/* --- FILTER TOOLBAR + the dim-don't-remove states --------------------------- */
body.hts-preview .pv-tools{
  display:flex; align-items:center; gap:var(--pv-s3); flex-wrap:wrap;
  margin-top:var(--pv-s5);
}
body.hts-preview .pv-search{
  display:flex; align-items:center; gap:9px; flex:1 1 260px; min-width:0;
  height:46px; padding:0 16px; border-radius:var(--pv-r-pill);
  background:var(--pv-surface);
  border:1px solid color-mix(in srgb, var(--pv-cv) 26%, transparent);
  box-shadow:var(--pv-hi);
}
body.hts-preview .pv-search svg{ width:17px; height:17px; flex:none; color:var(--pv-ink-3); }
body.hts-preview .pv-search input{
  flex:1 1 auto; min-width:0; border:0; outline:none; background:none;
  font-family:var(--pv-font); font-size:var(--pv-fs-body); color:var(--pv-ink);
  -webkit-appearance:none; appearance:none;
}
body.hts-preview .pv-search input::placeholder{ color:var(--pv-ink-3); }
body.hts-preview .pv-search:focus-within{
  border-color:color-mix(in srgb, var(--pv-gold-line) 55%, transparent);
  box-shadow:var(--pv-hi), 0 0 0 3px color-mix(in srgb, var(--pv-gold-line) 20%, transparent);
}
body.hts-preview .pv-chipbar{ display:flex; gap:var(--pv-s2); flex-wrap:wrap; min-width:0; }
body.hts-preview .pv-chipf{
  height:34px; padding:0 14px; border-radius:var(--pv-r-pill); cursor:pointer;
  font-family:var(--pv-font); font-size:var(--pv-fs-sm); font-weight:650;
  color:var(--pv-ink-2); background:transparent;
  border:1px solid color-mix(in srgb, var(--pv-cv) 26%, transparent);
  transition:color var(--pv-d-mid) var(--pv-settle), border-color var(--pv-d-mid) var(--pv-settle),
             background var(--pv-d-mid) var(--pv-settle);
}
body.hts-preview .pv-chipf.is-on{
  color:var(--pv-ink);
  background:color-mix(in srgb, var(--pv-gold-line) 15%, transparent);
  border-color:color-mix(in srgb, var(--pv-gold-line) 48%, transparent);
}
body.hts-preview .pv-hits{
  margin-left:auto; flex:none; font-size:var(--pv-fs-sm); color:var(--pv-ink-3);
  font-variant-numeric:tabular-nums;
}
/* DIM, DON'T REMOVE: the de-emphasis primitive — lose the glow and the hairline,
   never collapse out of the grid. Nothing here changes the box's SIZE, so a
   filter can never reflow the page. */
body.hts-preview .is-dim{
  opacity:.26; filter:saturate(.35);
  border-color:color-mix(in srgb, var(--pv-cv) 10%, transparent) !important;
  box-shadow:none !important;
  transition:opacity var(--pv-d-mid) var(--pv-settle), filter var(--pv-d-mid) var(--pv-settle);
}
body.hts-preview .is-dim,
body.hts-preview .is-dim *{ pointer-events:none; }
/* A section that matches NOTHING keeps its header, its number and its place in
   the order — only its body steps aside. That is the sin the contract names
   (Scenarios' vanishing sections) fixed without turning a 100-card catalog into
   a 10,000px wall of dimmed cards on a phone. */
body.hts-preview [data-pv-sec].is-quiet > [data-pv-body]{ display:none; }
body.hts-preview [data-pv-sec].is-quiet{ margin-top:var(--pv-s4); }
body.hts-preview [data-pv-sec].is-quiet > .pv-shelf__h .pv-shelf__t{ opacity:.5; }
body.hts-preview [data-pv-sec].is-quiet > .pv-shelf__h [data-pv-secn]{ color:var(--pv-ink-3); }

/* ===========================================================================
   §10  WORDS · 03 — the measured constellation.
   SIGNATURE MOTION: the links between the real words draw themselves outward
   from the center. Their geometry is MEASURED at mount (premium.js wireCons),
   so the figure is right at every width instead of right at one.
   =========================================================================== */
body.hts-preview .pv-cons{ position:relative; margin-top:var(--pv-s5); min-height:120px; }
body.hts-preview .pv-cons__svg{
  position:absolute; inset:0; width:100%; height:100%; display:block; pointer-events:none;
}
body.hts-preview .pv-cons__svg line{
  stroke:color-mix(in srgb, var(--pv-gold-line) 55%, transparent); stroke-width:1.5;
  stroke-linecap:round;
  stroke-dasharray:var(--pv-len,1);
  stroke-dashoffset:var(--pv-off,0);              /* rest = drawn (the honest value) */
  animation:pvDraw 780ms var(--pv-settle) both;
  animation-delay:calc(320ms + var(--pv-i,0) * 90ms);
}
body.hts-preview .pv-cons__nodes{
  position:relative; display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap:var(--pv-s3) var(--pv-s5);
}
body.hts-preview .pv-cons__n{
  position:relative; display:flex; flex-direction:column; align-items:center; gap:2px;
  min-width:0; max-width:100%; padding:10px 16px; border-radius:var(--pv-r-md);
  cursor:pointer; font-family:inherit; color:var(--pv-ink);
  -webkit-appearance:none; appearance:none;
  background:color-mix(in srgb, var(--pv-cv) 10%, var(--pv-surface));
  border:1px solid color-mix(in srgb, var(--pv-cv) 26%, transparent);
  box-shadow:0 12px 26px -22px rgba(7,13,22,.9);
  transition:transform var(--pv-d-tap) var(--pv-tap), border-color var(--pv-d-mid) var(--pv-settle),
             background var(--pv-d-mid) var(--pv-settle);
}
@media (hover:hover){
  body.hts-preview .pv-cons__n:hover{
    transform:translateY(-2px);
    border-color:color-mix(in srgb, var(--pv-gold-line) 55%, transparent);
    background:color-mix(in srgb, var(--pv-cv) 18%, var(--pv-surface));
  }
}
body.hts-preview .pv-cons__n:active{ transform:scale(.972); }
body.hts-preview .pv-cons__n--c{
  border-color:color-mix(in srgb, var(--pv-gold-line) 52%, transparent);
  background:color-mix(in srgb, var(--pv-gold-line) 13%, var(--pv-surface));
  order:-1; flex:1 1 100%;
}
body.hts-preview .pv-cons__th{
  font-family:var(--pv-thai); font-weight:700; line-height:1.35; font-size:23px;
  overflow-wrap:anywhere; text-align:center;
}
body.hts-preview .pv-cons__n--c .pv-cons__th{ font-size:32px; color:var(--pv-gold); }
body.hts-preview .pv-cons__en{
  font-size:var(--pv-fs-micro); color:var(--pv-ink-3); text-align:center;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%;
}
@media (max-width:470px){
  body.hts-preview .pv-cons__nodes{ gap:var(--pv-s2) var(--pv-s3); }
  body.hts-preview .pv-cons__n{ padding:8px 12px; }
  body.hts-preview .pv-cons__th{ font-size:20px; }
  body.hts-preview .pv-cons__n--c .pv-cons__th{ font-size:27px; }
}

/* ===========================================================================
   §11  SENTENCES · 04 — the one line.
   SIGNATURE MOTION: the gold rule under the word the line was built around
   draws left to right, once. It rests at full width — the true mark.
   =========================================================================== */
body.hts-preview .pv-sent{
  display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start;
  gap:var(--pv-s4); margin-top:var(--pv-s5);
}
body.hts-preview .pv-sent__play{
  width:58px; height:58px; flex:none; border-radius:50%; cursor:pointer;
  display:grid; place-items:center; -webkit-appearance:none; appearance:none;
  background:var(--pv-gold-fill); color:var(--pv-on-gold); border:0;
  box-shadow:0 14px 30px -16px color-mix(in srgb, var(--pv-gold-fill) 95%, transparent);
}
body.hts-preview .pv-sent__play svg{ width:22px; height:22px; }
body.hts-preview .pv-sent__bd{ min-width:0; }
body.hts-preview .pv-sent__th{
  margin:0; font-family:var(--pv-thai); font-weight:700; line-height:1.5;
  font-size:clamp(21px, 3.4vw, 30px); color:var(--pv-ink); overflow-wrap:anywhere;
}
body.hts-preview .pv-sent__mark{
  position:relative; font-style:normal; color:var(--pv-gold);
}
body.hts-preview .pv-sent__mark::after{
  content:""; position:absolute; left:0; right:0; bottom:-3px; height:3px; border-radius:3px;
  background:var(--pv-gold-line); transform-origin:left center;
  animation:pvWipe 900ms var(--pv-settle) both; animation-delay:380ms;
}
@keyframes pvWipe{ from{ transform:scaleX(0); } to{ transform:none; } }
body.hts-preview .pv-sent__en{
  margin:12px 0 0; font-size:var(--pv-fs-lead); color:var(--pv-ink-2); line-height:1.45;
}
body.hts-preview .pv-sent__w{
  margin:10px 0 0; font-size:var(--pv-fs-sm); color:var(--pv-ink-3);
}
body.hts-preview .pv-sent__w b{ font-family:var(--pv-thai); font-size:17px; color:var(--pv-ink); font-weight:700; }
@media (max-width:470px){
  body.hts-preview .pv-sent{ gap:var(--pv-s3); }
  body.hts-preview .pv-sent__play{ width:48px; height:48px; }
  body.hts-preview .pv-sent__play svg{ width:19px; height:19px; }
}

/* ===========================================================================
   §12  SCENARIOS · 05 — the domain bars.
   SIGNATURE MOTION: seven bars grow to their REAL share of the hundred scenes,
   in sequence. They rest at the true width, and they double as the page's
   filter — the one moving thing is also the one control.
   =========================================================================== */
body.hts-preview .pv-bars{
  display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:var(--pv-s2) var(--pv-s4);
  margin-top:var(--pv-s5);
}
@media (max-width:640px){ body.hts-preview .pv-bars{ grid-template-columns:minmax(0,1fr); } }
body.hts-preview .pv-bar{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(70px,1.1fr) auto;
  align-items:center; gap:12px; min-width:0; width:100%; text-align:left;
  padding:8px 10px; border-radius:var(--pv-r-sm); border:1px solid transparent;
  background:none; cursor:pointer; font-family:var(--pv-font); color:inherit;
  -webkit-appearance:none; appearance:none;
  transition:background var(--pv-d-mid) var(--pv-settle), border-color var(--pv-d-mid) var(--pv-settle);
}
body.hts-preview .pv-bar.is-on{
  background:color-mix(in srgb, var(--pv-cv) 13%, transparent);
  border-color:color-mix(in srgb, var(--pv-cv) 34%, transparent);
}
@media (hover:hover){
  body.hts-preview .pv-bar:hover{ background:color-mix(in srgb, var(--pv-cv) 9%, transparent); }
}
body.hts-preview .pv-bar__t{
  font-size:var(--pv-fs-sm); font-weight:650; color:var(--pv-ink-2); min-width:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
body.hts-preview .pv-bar.is-on .pv-bar__t{ color:var(--pv-ink); }
body.hts-preview .pv-bar__track{
  height:6px; min-width:0; border-radius:99px; overflow:hidden;
  background:color-mix(in srgb, var(--pv-ink) 13%, transparent);
}
body.hts-preview .pv-bar__track > i{
  display:block; height:100%; border-radius:99px; width:var(--pv-w,0%);
  background:var(--pv-cv);
}
body.hts-preview .pv-bars .pv-bar__track > i{
  animation:pvGrow 760ms var(--pv-settle) both;
  animation-delay:calc(300ms + var(--pv-i,0) * 90ms);
}
body.hts-preview .pv-bar__n{
  font-size:var(--pv-fs-micro); color:var(--pv-ink-3); flex:none;
  font-variant-numeric:tabular-nums; min-width:26px; text-align:right;
}
body.hts-preview .pv-bar--all{ --pv-cv:var(--pv-gold-line); grid-column:1 / -1; }

/* the scene cards */
body.hts-preview .pv-scens{
  display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:var(--pv-s3);
}
@media (max-width:1100px){ body.hts-preview .pv-scens{ grid-template-columns:repeat(3, minmax(0,1fr)); } }
@media (max-width:760px){ body.hts-preview .pv-scens{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
/* NEVER single-column: 100 scene cards in one column is a 30,000px document on a
   phone (the harness could not even screenshot it). Two columns is the floor. */
@media (max-width:400px){ body.hts-preview .pv-scens{ gap:var(--pv-s2); } }
body.hts-preview .pv-scen{
  position:relative; display:flex; flex-direction:column; min-width:0;
  border-radius:var(--pv-r-lg); overflow:hidden; text-decoration:none; color:inherit;
}
body.hts-preview .pv-scen__m{
  display:block; aspect-ratio:16/10; overflow:hidden; position:relative;
  background:color-mix(in srgb, var(--pv-cv) 16%, var(--pv-surface-2));
}
body.hts-preview .pv-scen__m img{ width:100%; height:100%; object-fit:cover; display:block; }
body.hts-preview .pv-scen__ph{
  position:absolute; inset:0; display:grid; place-items:center; color:var(--pv-cv);
}
body.hts-preview .pv-scen__ph svg{ width:28px; height:28px; }
body.hts-preview .pv-scen__bd{ display:block; padding:12px 14px 14px; min-width:0; }
body.hts-preview .pv-scen__t{
  display:block; font-size:var(--pv-fs-body); font-weight:700; color:var(--pv-ink);
  letter-spacing:-.01em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
body.hts-preview .pv-scen__th{
  display:block; margin-top:2px; font-family:var(--pv-thai); font-size:15px;
  color:var(--pv-ink-3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
body.hts-preview .pv-scen__f{ display:flex; align-items:center; gap:8px; margin-top:10px; }
body.hts-preview .pv-scen__f .pv-mod__n{ margin-left:auto; }

/* ===========================================================================
   §13  FLUENCY RULES · 06 — the curriculum ladder.
   The owner's note was that index listings need rethinking, and this page IS a
   curriculum: seven numbered chapters on one dark ladder, the rules a level
   deeper. SIGNATURE MOTION: the gold spine draws down the ladder, once.
   =========================================================================== */
body.hts-preview .pv-ladder{ position:relative; margin-top:var(--pv-s5); padding-left:6px; }
body.hts-preview .pv-ladder__spine{
  position:absolute; left:29px; top:14px; bottom:14px; width:2px; overflow:hidden;
  background:color-mix(in srgb, var(--pv-ink) 12%, transparent); border-radius:2px;
}
body.hts-preview .pv-ladder__spine > i{
  display:block; width:100%; height:100%; border-radius:2px;
  background:linear-gradient(180deg, var(--pv-gold-line), color-mix(in srgb, var(--pv-gold-line) 25%, transparent));
  transform-origin:top center;
  animation:pvSpine 1150ms var(--pv-settle) both; animation-delay:260ms;
}
@keyframes pvSpine{ from{ transform:scaleY(0); } to{ transform:none; } }
body.hts-preview .pv-step{
  position:relative; display:grid; grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center; gap:14px; width:100%; text-align:left;
  padding:11px 12px; border-radius:var(--pv-r-md); cursor:pointer;
  background:none; border:1px solid transparent; color:inherit; text-decoration:none;
  font-family:var(--pv-font);
  transition:background var(--pv-d-mid) var(--pv-settle), border-color var(--pv-d-mid) var(--pv-settle);
}
@media (hover:hover){
  body.hts-preview .pv-step:hover{
    background:color-mix(in srgb, var(--pv-cv) 12%, transparent);
    border-color:color-mix(in srgb, var(--pv-cv) 30%, transparent);
  }
}
body.hts-preview .pv-step__n{
  width:42px; height:42px; flex:none; border-radius:50%; display:grid; place-items:center;
  font-size:15px; font-weight:750; color:var(--pv-cv);
  background:color-mix(in srgb, var(--pv-cv) 15%, var(--pv-surface));
  border:1px solid color-mix(in srgb, var(--pv-cv) 40%, transparent);
  font-variant-numeric:tabular-nums;
}
body.hts-preview .pv-step__bd{ display:block; min-width:0; }
body.hts-preview .pv-step__t{
  display:block; font-size:var(--pv-fs-body); font-weight:650; color:var(--pv-ink);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
body.hts-preview .pv-step__d{
  display:block; margin-top:2px; font-size:var(--pv-fs-sm); color:var(--pv-ink-3);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
body.hts-preview .pv-step__f{ display:flex; align-items:center; gap:8px; flex:none; }
body.hts-preview .pv-step__f svg{ width:17px; height:17px; color:var(--pv-ink-3); }
@media (max-width:470px){
  body.hts-preview .pv-ladder__spine{ left:27px; }
  body.hts-preview .pv-step{ gap:11px; padding:10px 8px; }
  body.hts-preview .pv-step__n{ width:38px; height:38px; font-size:14px; }
  /* the state pill would squeeze the title on a 375 phone — the chapter's own
     count is repeated in the section below, so it steps aside here. */
  body.hts-preview .pv-ladder .pv-step__f .pv-pill{ display:none; }
}
/* the path variant (Playlists) has no state pills, so its rows can cascade in */
body.hts-preview .pv-ladder--path .pv-step{ --pv-cv:var(--pv-gold-line); }
body.hts-preview .pv-ladder--path .pv-step__n{
  background:color-mix(in srgb, var(--pv-gold-line) 16%, var(--pv-surface));
}

/* ===========================================================================
   §14  READ SCRIPT · 07 — the five-segment rail.
   SIGNATURE MOTION: the rail fills to the TRUE stage, once. It rests filled to
   exactly the stages the store can prove — never further.
   =========================================================================== */
body.hts-preview .pv-rail{ display:flex; gap:6px; margin-top:var(--pv-s4); }
body.hts-preview .pv-rail__seg{
  flex:1 1 0; height:6px; border-radius:99px; position:relative; overflow:hidden;
  background:color-mix(in srgb, var(--pv-ink) 15%, transparent);
}
body.hts-preview .pv-rail__seg.is-on::after{
  content:""; position:absolute; inset:0; border-radius:99px;
  background:var(--pv-gold-line); transform-origin:left center;
  animation:pvWipe 480ms var(--pv-settle) both;
  animation-delay:calc(300ms + var(--pv-i,0) * 130ms);
}

/* ===========================================================================
   §15  ARCADE · 08 — the console + lane-tinted game cards.
   SIGNATURE MOTION: the fourteen real active-day dots light up left to right,
   once. Everything else on the frame is still.
   =========================================================================== */
body.hts-preview .pv-console{
  display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);
  gap:var(--pv-s3); margin-top:var(--pv-s5);
}
@media (max-width:760px){ body.hts-preview .pv-console{ grid-template-columns:minmax(0,1fr); } }
body.hts-preview .pv-console__main,
body.hts-preview .pv-console__s{
  display:flex; flex-direction:column; gap:7px; min-width:0;
  padding:var(--pv-s4); border-radius:var(--pv-r-lg); text-decoration:none; color:inherit;
  background:color-mix(in srgb, var(--pv-cv) 8%, transparent);
  border:1px solid color-mix(in srgb, var(--pv-cv) 22%, transparent);
}
body.hts-preview .pv-console__main{ --pv-cv:var(--pv-gold-line); justify-content:center; }
body.hts-preview .pv-console__side{ display:grid; grid-template-rows:1fr 1fr; gap:var(--pv-s3); min-width:0; }
body.hts-preview .pv-console__k{
  font-size:10px; font-weight:800; letter-spacing:.16em; text-transform:uppercase;
  color:var(--pv-ink-3);
}
body.hts-preview .pv-console__v{
  font-size:34px; font-weight:750; line-height:1; color:var(--pv-ink);
  letter-spacing:-.03em; font-variant-numeric:tabular-nums;
}
body.hts-preview .pv-console__main .pv-console__v{ color:var(--pv-gold); }
body.hts-preview .pv-console__v i{
  font-style:normal; font-size:15px; color:var(--pv-ink-3); margin-left:5px; font-weight:650;
}
body.hts-preview .pv-console__c{
  font-size:var(--pv-fs-sm); color:var(--pv-ink-3); min-width:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
body.hts-preview .pv-console__main .pv-ledger__bar{ flex:none; width:100%; min-width:0; margin:2px 0; }
body.hts-preview .pv-dots{ display:flex; gap:3px; margin-top:2px; }
body.hts-preview .pv-dots i{
  flex:1 1 0; height:7px; min-width:0; border-radius:2px;
  background:color-mix(in srgb, var(--pv-ink) 15%, transparent);
}
body.hts-preview .pv-dots i.is-on{
  background:var(--pv-green-line);
  animation:pvPop 420ms var(--pv-spring) both;
  animation-delay:calc(340ms + var(--pv-i,0) * 62ms);
}
@keyframes pvPop{ from{ opacity:0; transform:scaleY(.3); } to{ opacity:1; transform:none; } }

/* lane hues for the game cards — a CLASS per lane, per theme (never an inline
   literal: these carry 15px display type on both the paper and the dark card). */
body.hts-preview .pv-game--sounds{ --pv-cv:#6f63c4; }
body.hts-preview .pv-game--voice{ --pv-cv:#c04859; }
body.hts-preview .pv-game--words{ --pv-cv:#1f70df; }
body.hts-preview .pv-game--reading{ --pv-cv:#0b8480; }
body.hts-preview .pv-game--sentences{ --pv-cv:#9a6a15; }
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) body.hts-preview .pv-game--sounds{ --pv-cv:#9d92ec; }
  :root:not([data-theme="light"]) body.hts-preview .pv-game--voice{ --pv-cv:#ec8394; }
  :root:not([data-theme="light"]) body.hts-preview .pv-game--words{ --pv-cv:#5b9bf0; }
  :root:not([data-theme="light"]) body.hts-preview .pv-game--reading{ --pv-cv:#3fbdb6; }
  :root:not([data-theme="light"]) body.hts-preview .pv-game--sentences{ --pv-cv:#e0a94e; }
}
:root[data-theme="dark"] body.hts-preview .pv-game--sounds{ --pv-cv:#9d92ec; }
:root[data-theme="dark"] body.hts-preview .pv-game--voice{ --pv-cv:#ec8394; }
:root[data-theme="dark"] body.hts-preview .pv-game--words{ --pv-cv:#5b9bf0; }
:root[data-theme="dark"] body.hts-preview .pv-game--reading{ --pv-cv:#3fbdb6; }
:root[data-theme="dark"] body.hts-preview .pv-game--sentences{ --pv-cv:#e0a94e; }

/* ===========================================================================
   §16  REVIEW · 09 — the deck, and the UNTOUCHED session host.
   SIGNATURE MOTION: the three card silhouettes spring out of a stack into a
   fan, once. `#rv` below is the shipped session — not styled, not touched.
   =========================================================================== */
body.hts-preview .pv-rv{
  display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center;
  gap:var(--pv-s6); margin-top:var(--pv-s5);
}
@media (max-width:640px){ body.hts-preview .pv-rv{ grid-template-columns:minmax(0,1fr); gap:var(--pv-s4); } }
body.hts-preview .pv-deck{ position:relative; width:112px; height:82px; flex:none; }
body.hts-preview .pv-deck i{
  position:absolute; inset:0; border-radius:var(--pv-r-md);
  /* lit ENOUGH to read as an object on the near-black plate — the first capture
     had these at 22% gold over the plate surface and they vanished into it. */
  background:linear-gradient(160deg,
    color-mix(in srgb, var(--pv-gold-line) 34%, var(--pv-surface-2)),
    color-mix(in srgb, var(--pv-gold-line) 9%, var(--pv-surface-2)));
  border:1px solid color-mix(in srgb, var(--pv-gold-line) 60%, transparent);
  box-shadow:0 14px 30px -20px rgba(0,0,0,.95);
  animation:pvFan 620ms var(--pv-spring) both;
  animation-delay:calc(260ms + var(--pv-i,0) * 90ms);
}
body.hts-preview .pv-deck i:nth-child(1){ transform:rotate(-9deg) translateX(-9px); }
body.hts-preview .pv-deck i:nth-child(2){ transform:rotate(-1deg); }
body.hts-preview .pv-deck i:nth-child(3){ transform:rotate(8deg) translateX(9px); }
@keyframes pvFan{ from{ opacity:0; } to{ opacity:1; } }
body.hts-preview .pv-rv__bd{ min-width:0; }
body.hts-preview .pv-rv__stats{ display:flex; flex-wrap:wrap; gap:var(--pv-s5); margin-top:var(--pv-s4); }
body.hts-preview .pv-stat{ display:flex; flex-direction:column; gap:2px; min-width:0; }
body.hts-preview .pv-stat b{
  font-size:25px; font-weight:750; line-height:1; color:var(--pv-ink);
  letter-spacing:-.03em; font-variant-numeric:tabular-nums;
}
body.hts-preview .pv-stat i{
  font-style:normal; font-size:10px; font-weight:800; letter-spacing:.15em;
  text-transform:uppercase; color:var(--pv-ink-3); white-space:nowrap;
}
body.hts-preview .pv-rvhost{ margin-top:var(--pv-s6); }
/* WebKit flattens preserve-3d under animated/filtered premium ancestors, which
   made the card's BACK face paint mirrored at rest (owner sign-off catch,
   2026-08-23). 2D-safe fallback: visibility tracks the flip state, so only the
   correct face ever paints even when the 3D context is flattened. */
body.hts-preview .pv-rvhost .rv-face--back{ visibility:hidden; }
body.hts-preview .pv-rvhost .rv-flip.is-flipped .rv-face--back{ visibility:visible; }
body.hts-preview .pv-rvhost .rv-flip.is-flipped .rv-face:not(.rv-face--back){ visibility:hidden; }

/* ===========================================================================
   §17  PLAYLISTS · 10 + PROGRESS · 11
   =========================================================================== */
body.hts-preview .pv-pls{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:var(--pv-s3); }
@media (max-width:820px){ body.hts-preview .pv-pls{ grid-template-columns:minmax(0,1fr); } }
body.hts-preview .pv-pl{ display:block; padding:var(--pv-s4); border-radius:var(--pv-r-lg); min-width:0; }
body.hts-preview .pv-pl__h{ display:flex; align-items:center; gap:12px; margin-bottom:var(--pv-s3); min-width:0; }
body.hts-preview .pv-pl__ic{
  width:40px; height:40px; flex:none; border-radius:11px; display:grid; place-items:center;
  color:var(--pv-cv);
  background:color-mix(in srgb, var(--pv-cv) 13%, transparent);
  border:1px solid color-mix(in srgb, var(--pv-cv) 28%, transparent);
}
body.hts-preview .pv-pl__ic svg{ width:19px; height:19px; }
body.hts-preview .pv-pl__bd{ display:block; min-width:0; flex:1 1 auto; }
body.hts-preview .pv-pl__t{
  display:block; font-size:var(--pv-fs-body); font-weight:700; color:var(--pv-ink);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
body.hts-preview .pv-pl__d{
  display:block; margin-top:2px; font-size:var(--pv-fs-sm); color:var(--pv-ink-3);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
body.hts-preview .pv-pl .pv-row__ic{ width:34px; height:34px; border-radius:10px; }

body.hts-preview .pv-prog{
  display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center;
  gap:var(--pv-s6); margin-top:var(--pv-s5);
}
@media (max-width:640px){
  body.hts-preview .pv-prog{ grid-template-columns:minmax(0,1fr); gap:var(--pv-s4); }
  body.hts-preview .pv-prog__r{ justify-self:start; }
  body.hts-preview .pv-prog .pv-meter{ width:112px; height:112px; }
  body.hts-preview .pv-prog .pv-meter__c b{ font-size:30px; }
}
body.hts-preview .pv-prog__bd{ min-width:0; }
/* 14 columns = two clean weeks. A wrapping flex row broke 20 + 8 and read as an
   accident (first capture, 390px). */
body.hts-preview .pv-days{
  display:grid; grid-template-columns:repeat(14, minmax(0,1fr));
  gap:4px; margin-top:var(--pv-s4); max-width:300px;
}
body.hts-preview .pv-days i{
  aspect-ratio:1; min-width:0; border-radius:4px;
  background:color-mix(in srgb, var(--pv-ink) 13%, transparent);
}
body.hts-preview .pv-days i.is-on{ background:var(--pv-green-line); }
body.hts-preview .pv-covs{ display:flex; flex-direction:column; gap:var(--pv-s3); padding:var(--pv-s4); }
body.hts-preview .pv-bar--cov{
  grid-template-columns:minmax(0,1fr) minmax(80px,1.4fr) auto;
  padding:4px 2px; cursor:default;
}
body.hts-preview .pv-cov--words{ --pv-cv:#1f70df; }
body.hts-preview .pv-cov--scenarios{ --pv-cv:#c04859; }
body.hts-preview .pv-cov--sentences{ --pv-cv:#9a6a15; }
body.hts-preview .pv-cov--sounds{ --pv-cv:#6f63c4; }
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) body.hts-preview .pv-cov--words{ --pv-cv:#5b9bf0; }
  :root:not([data-theme="light"]) body.hts-preview .pv-cov--scenarios{ --pv-cv:#ec8394; }
  :root:not([data-theme="light"]) body.hts-preview .pv-cov--sentences{ --pv-cv:#e0a94e; }
  :root:not([data-theme="light"]) body.hts-preview .pv-cov--sounds{ --pv-cv:#9d92ec; }
}
:root[data-theme="dark"] body.hts-preview .pv-cov--words{ --pv-cv:#5b9bf0; }
:root[data-theme="dark"] body.hts-preview .pv-cov--scenarios{ --pv-cv:#ec8394; }
:root[data-theme="dark"] body.hts-preview .pv-cov--sentences{ --pv-cv:#e0a94e; }
:root[data-theme="dark"] body.hts-preview .pv-cov--sounds{ --pv-cv:#9d92ec; }
@media (max-width:470px){
  body.hts-preview .pv-bar--cov{ grid-template-columns:minmax(0,1fr) auto; row-gap:7px; }
  /* explicit placement: without it the auto-flow put the number on a THIRD row
     under the track instead of beside its own label. */
  body.hts-preview .pv-bar--cov .pv-bar__t{ grid-row:1; grid-column:1; }
  body.hts-preview .pv-bar--cov .pv-bar__n{ grid-row:1; grid-column:2; }
  body.hts-preview .pv-bar--cov .pv-bar__track{ grid-row:2; grid-column:1 / -1; }
}

/* ===========================================================================
   §18  THE RE-HOSTED BREAKDOWNS  (owner order 2026-08-23)

   The Word Breakdown and the Sentence Breakdown are the FIRST element on their
   pages — direct customer feedback, non-negotiable. Nothing about those systems
   is rebuilt here: premium.js lifts the SHIPPED markup (words.js
   `breakdownShell()` — search row + level filter + dice + navy card + the
   `.wb-callbtn` RULES element) and the SHIPPED `#sbdHost` mount point into a
   premium frame, and the SHIPPED code wires them. Everything below is chrome
   applied from the OUTSIDE: a kicker, a headline, and the search row restyled
   into the premium token language. No selector reaches into the card's own
   contents — that card is theme-invariant by law and stays untouched.
   =========================================================================== */
body.hts-preview .pv-bd{ margin-top:var(--pv-s3); }
body.hts-preview .pv-bd__h{ max-width:780px; margin:0 auto var(--pv-s4); text-align:center; }
body.hts-preview .pv-bd__h .pv-kicker{ justify-content:center; }
body.hts-preview .pv-bd__t{
  margin:9px 0 0; font-family:var(--font-display), var(--pv-font);
  font-size:clamp(21px, 3.2vw, 30px); font-weight:700;
  letter-spacing:-.026em; line-height:1.1; color:var(--pv-ink); text-wrap:balance;
}
body.hts-preview .pv-bd__s{
  margin:10px auto 0; max-width:58ch;
  font-size:var(--pv-fs-sm); line-height:1.5; color:var(--pv-ink-2); text-wrap:pretty;
}
/* the shipped eyebrow is replaced by the premium kicker — the markup keeps it,
   the frame just stops showing two labels for one thing. */
body.hts-preview .pv-bd .wbd__eyebrow,
body.hts-preview .pv-bd .sbd__eyebrow{ display:none; }

/* the search row + dice + level filter, in the premium token language */
body.hts-preview .pv-bd .wbd__search,
body.hts-preview .pv-bd .wbd__random,
body.hts-preview .pv-bd .wbd__filterbtn,
body.hts-preview .pv-bd .sbd__search,
body.hts-preview .pv-bd .sbd__random{
  height:50px; border-radius:var(--pv-r-pill);
  background:var(--pv-surface);
  border:1px solid color-mix(in srgb, var(--pv-cv) 26%, transparent);
  box-shadow:var(--pv-hi), 0 12px 26px -22px color-mix(in srgb, var(--pv-cv) 95%, transparent);
}
body.hts-preview .pv-bd .wbd__filterbtn{ width:50px; }
body.hts-preview .pv-bd .wbd__input,
body.hts-preview .pv-bd .sbd__input{ font-family:var(--pv-font); color:var(--pv-ink); }
body.hts-preview .pv-bd .wbd__input::placeholder,
body.hts-preview .pv-bd .sbd__input::placeholder{ color:var(--pv-ink-3); }
body.hts-preview .pv-bd .wbd__searchic,
body.hts-preview .pv-bd .sbd__searchic{ color:var(--pv-ink-3); }
body.hts-preview .pv-bd .wbd__random,
body.hts-preview .pv-bd .sbd__random{ color:var(--pv-gold); font-weight:750; }
body.hts-preview .pv-bd .wbd__search:focus-within,
body.hts-preview .pv-bd .sbd__search:focus-within{
  border-color:color-mix(in srgb, var(--pv-gold-line) 55%, transparent);
  box-shadow:var(--pv-hi), 0 0 0 3px color-mix(in srgb, var(--pv-gold-line) 20%, transparent);
}
body.hts-preview .pv-bd .wbd__results,
body.hts-preview .pv-bd .sbd__results,
body.hts-preview .pv-bd .wbd__filtermenu{ border-radius:var(--pv-r-md); }
body.hts-preview .pv-bd .wbd__hint,
body.hts-preview .pv-bd .sbd__hint{ color:var(--pv-ink-3); }
/* the navy card picks up the plate's outer ring so it reads as the page's ONE
   lit object rather than as a card that wandered in from another design. */
body.hts-preview .pv-bd .wbd__card,
body.hts-preview .pv-bd .sbd__card{
  box-shadow:
    0 2px 4px -2px rgba(7,13,22,.55),
    0 34px 66px -34px rgba(7,13,22,.72),
    0 0 0 5px color-mix(in srgb, var(--pv-gold-line) 8%, transparent);
}
/* the featured collection / featured line, demoted below the hero */
body.hts-preview .pv-demoted{ margin-top:var(--pv-s6); }

/* ===========================================================================
   §19  THE PHONE LAYER  (owner order 2026-08-23) — <=560px is a DIFFERENT
   LAYOUT, not a downscale of the desktop one.

   Owner, verbatim: "currently the larger containers from desktop/ipad just get
   downscaled... we need to really focus on much smaller buttons... this means we
   can't fit the icons and subtitles for most chips anymore... Even the TONES at
   the very top of the screen is MASSIVE and takes up the full screen... start
   treating mobile as an entirely different UX layout... DRASTICALLY compact."

   The grammar, applied to all eleven pages:
     - chips/tiles  -> 2-up compact TEXT buttons; icon tile and gloss line drop
     - row atoms    -> ONE line: icon, title, state pill, chevron
     - heroes       -> a fraction of the viewport; the five tones become a strip
     - density      -> its own SPACING + TYPE scale, redeclared on .pv-page
   What does NOT change: the elevation/glow language, budgeted gold, the spring
   entrances, the pill states, and a ~44px minimum on everything a thumb hits.
   Desktop and iPad are untouched — every rule here lives inside the query.
   =========================================================================== */
@media (max-width:560px){

  /* --- the compact SCALE (a separate scale, not a shrink) ----------------- */
  body.hts-preview .pv-page{
    --pv-s5:16px; --pv-s6:20px; --pv-s7:26px; --pv-s8:32px;
    --pv-fs-lead:14px; --pv-fs-h3:16px;
    --pv-fs-h2:clamp(18px, 4.6vw, 21px);
    --pv-fs-h1:clamp(22px, 6.4vw, 27px);
    padding-bottom:92px;
  }

  /* --- masthead ---------------------------------------------------------- */
  body.hts-preview .pv-kicker{ font-size:10px; letter-spacing:.2em; }
  body.hts-preview .pv-mh{ padding:2px 0 var(--pv-s4); }
  body.hts-preview .pv-mh__title{ margin:7px 0 0; line-height:1.1; letter-spacing:-.022em; }
  body.hts-preview .pv-mh__sub{
    margin:7px 0 0; font-size:12.5px; line-height:1.42;
    display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden;
  }

  /* --- section heads ----------------------------------------------------- */
  body.hts-preview .pv-shelf{ margin-top:var(--pv-s5); }
  body.hts-preview .pv-shelf__h{ gap:8px; margin:0 2px var(--pv-s2); }
  body.hts-preview .pv-shelf__t{ font-size:16px; }
  body.hts-preview .pv-shelf__s{
    font-size:11.5px; line-height:1.35;
    display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden;
  }

  /* --- the plate / board ------------------------------------------------- */
  body.hts-preview .pv-board{ padding:var(--pv-s4) 12px 12px; border-radius:var(--pv-r-lg); }
  body.hts-preview .pv-board__h{ gap:8px; }
  body.hts-preview .pv-board__t{ font-size:18px; letter-spacing:-.02em; }
  body.hts-preview .pv-board__grid{ margin-top:12px; }
  body.hts-preview .pv-board__f{ margin-top:12px; gap:8px; }
  body.hts-preview .pv-board__note{ flex:1 1 100%; font-size:11.5px; line-height:1.4; }
  body.hts-preview .pv-board__f .pv-btn{ width:100%; }

  /* --- THE TONE STRIP: the Sounds hero, five swatches wide ----------------
     The owner's headline complaint. Five contours in ONE row, each still a real
     [data-audiosrc] button on the shipped meter path; the romanization and the
     gloss step out (both are on the Tones screen, one tap away) and the tone
     NAME stays, because that is the meaning the card carries. ~84px tall
     instead of a screenful. */
  body.hts-preview .pv-board__grid{ grid-template-columns:repeat(5, minmax(0,1fr)); gap:5px; }
  body.hts-preview .pv-board__grid > .pv-tone:last-child{ grid-column:auto; }
  body.hts-preview .pv-tone{ padding:8px 3px 7px; gap:3px; border-radius:var(--pv-r-sm); }
  body.hts-preview .pv-tone__c{ height:22px; margin-bottom:0; }
  body.hts-preview .pv-tone__th{ font-size:19px; line-height:1.3; }
  body.hts-preview .pv-tone__r,
  body.hts-preview .pv-tone__g{ display:none; }
  body.hts-preview .pv-tone .pv-pill{ height:15px; padding:0 5px; gap:0; font-size:8px; letter-spacing:.05em; }
  body.hts-preview .pv-tone .pv-pill > i{ display:none; }

  /* --- THE COMPACT BUTTON GRID -------------------------------------------
     One atom for Sounds' building blocks / tricky sounds / ear-training games,
     the sentence games + sets, the word themes and the arcade roster: two per
     row, a short label and its state pill. No icon tile, no description. */
  body.hts-preview .pv-mods{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:6px; }
  body.hts-preview .pv-mod{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"ttl" "foot";
    align-content:center; align-items:center; justify-content:stretch;
    gap:4px; padding:9px 11px; min-height:52px; border-radius:var(--pv-r-md);
  }
  body.hts-preview .pv-mod__gl,
  body.hts-preview .pv-mod__d{ display:none; }
  body.hts-preview .pv-mod__t{
    font-size:13px; line-height:1.24; font-weight:700;
    display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden;
  }
  body.hts-preview .pv-mod__f{ margin-top:0; gap:6px; }
  body.hts-preview .pv-mod__n{ font-size:10px; }
  /* an ODD count leaves a half-empty slot beside the last tile, which reads as
     an accident (Arcade's "Reading — 1 game", Sounds' Vowels). The last tile of
     an odd set takes the whole row instead. */
  body.hts-preview .pv-mods > .pv-mod:last-child:nth-child(odd){ grid-column:1 / -1; }
  body.hts-preview .pv-mod .pv-pill,
  body.hts-preview .pv-wing .pv-pill,
  body.hts-preview .pv-row .pv-pill{ height:17px; padding:0 7px; gap:4px; font-size:8.5px; letter-spacing:.08em; }
  body.hts-preview .pv-mod .pv-pill > i,
  body.hts-preview .pv-row .pv-pill > i{ width:4px; height:4px; }
  /* a locked tile shows the lock and nothing else — a state pill under a lock
     is a claim about a card the finger cannot open. */
  body.hts-preview .pv-mod[data-tl-area] .pv-mod__f{ display:none; }
  body.hts-preview .pv-mod[data-tl-area] .tl-pin{ top:auto; bottom:8px; right:10px; }
  body.hts-preview .tl-pin::after{ height:17px; padding:0 7px; font-size:8.5px; letter-spacing:.08em; }

  /* --- ROW ATOMS collapse to a single line -------------------------------- */
  body.hts-preview .pv-rows{ gap:2px; }
  body.hts-preview .pv-panel{ padding:5px; }
  body.hts-preview .pv-row{ gap:10px; padding:8px 10px; min-height:44px; border-radius:var(--pv-r-sm); }
  body.hts-preview .pv-row__ic{ width:34px; height:34px; border-radius:10px; }
  body.hts-preview .pv-row__ic svg{ width:16px; height:16px; }
  body.hts-preview .pv-row__ic .pv-row__gl{ font-size:14px; }
  body.hts-preview .pv-row__t{ font-size:13.5px; gap:6px; }
  body.hts-preview .pv-row__g{ display:none; }
  body.hts-preview .pv-row__go{ width:20px; height:20px; }
  body.hts-preview .pv-row__go svg{ width:15px; height:15px; }

  /* --- heroes (Home, Read) ------------------------------------------------ */
  body.hts-preview .pv-hero{ padding:var(--pv-s4) 14px 14px; border-radius:var(--pv-r-lg); }
  body.hts-preview .pv-hero__t{ margin:7px 0 0; font-size:20px; padding-right:88px; }
  body.hts-preview .pv-hero__bd > .pv-kicker{ padding-right:88px; }
  body.hts-preview .pv-hero__d{
    margin:6px 0 0; font-size:12.5px; line-height:1.4;
    display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden;
  }
  body.hts-preview .pv-hero__cta{ height:44px; margin-top:12px; padding:0 16px; font-size:13.5px; }
  body.hts-preview .pv-hero__r{ top:12px; right:12px; }
  body.hts-preview .pv-meter{ width:76px; height:76px; }
  body.hts-preview .pv-meter__c b{ font-size:21px; }
  body.hts-preview .pv-meter__c i{ font-size:8px; letter-spacing:.1em; }

  /* --- ledger ------------------------------------------------------------- */
  body.hts-preview .pv-ledger{
    margin-top:var(--pv-s2); padding:9px 12px; gap:10px;
    min-height:44px; border-radius:var(--pv-r-sm);
  }
  body.hts-preview .pv-ledger__n{ font-size:20px; }
  body.hts-preview .pv-ledger__l{ font-size:11.5px; }
  body.hts-preview .pv-ledger__l s{ font-size:10.5px; }
  body.hts-preview .pv-ledger__bar{ flex:1 1 100%; min-width:0; height:5px; }

  /* --- the four wings, 2 up ------------------------------------------------ */
  body.hts-preview .pv-wings{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:6px; }
  body.hts-preview .pv-wing{ padding:10px 11px; gap:6px; border-radius:var(--pv-r-md); }
  body.hts-preview .pv-wing__top{ gap:8px; }
  body.hts-preview .pv-wing__ic{ width:28px; height:28px; border-radius:9px; }
  body.hts-preview .pv-wing__ic svg{ width:15px; height:15px; }
  body.hts-preview .pv-wing__t{ font-size:13px; }
  body.hts-preview .pv-wing__th{ font-size:18px; line-height:1.25; }
  body.hts-preview .pv-wing__d{ display:none; }
  body.hts-preview .pv-wing__f{ padding-top:2px; gap:6px; }
  body.hts-preview .pv-wing__f .pv-shelf__s{ font-size:10px; -webkit-line-clamp:1; }

  /* --- disclosure, buttons, filter toolbar --------------------------------- */
  body.hts-preview .pv-more{ margin-top:var(--pv-s4); }
  body.hts-preview .pv-more > summary{ padding:11px 12px; font-size:13px; border-radius:var(--pv-r-sm); }
  body.hts-preview .pv-more > summary .pv-more__n{ font-size:11px; }
  body.hts-preview .pv-more__bd{ margin-top:8px; padding:5px; }
  body.hts-preview .pv-btn{ height:44px; padding:0 16px; font-size:13.5px; }
  body.hts-preview .pv-tools{ margin-top:var(--pv-s4); gap:8px; }
  body.hts-preview .pv-search{ flex:1 1 100%; height:44px; padding:0 14px; }
  body.hts-preview .pv-search input{ font-size:14px; }
  body.hts-preview .pv-chipf{ height:34px; padding:0 11px; font-size:12px; }
  body.hts-preview .pv-hits{ font-size:11px; }
  body.hts-preview .pv-note{ padding:10px 12px; gap:9px; font-size:12px; }
  body.hts-preview .pv-note > svg{ width:17px; height:17px; }
  body.hts-preview .pv-note__a{ font-size:12px; }

  /* --- WORDS: the measured map + the collection chips ----------------------- */
  body.hts-preview .pv-cons{ margin-top:12px; min-height:90px; }
  body.hts-preview .pv-cons__nodes{ gap:6px 8px; }
  body.hts-preview .pv-cons__n{ padding:6px 10px; border-radius:var(--pv-r-sm); }
  body.hts-preview .pv-cons__th{ font-size:17px; }
  body.hts-preview .pv-cons__n--c .pv-cons__th{ font-size:23px; }
  body.hts-preview .pv-cons__en{ font-size:10px; }
  body.hts-preview .pv-chips{ padding:8px 8px 10px; gap:6px; }
  body.hts-preview .pv-chip{ padding:8px 11px; }
  body.hts-preview .pv-chip__th{ font-size:16px; }
  body.hts-preview .pv-chip__en{ font-size:10.5px; max-width:100px; }
  body.hts-preview .pv-drop__n{ font-size:12px; }

  /* --- SENTENCES: the featured line ----------------------------------------- */
  body.hts-preview .pv-sent{ gap:10px; margin-top:12px; }
  body.hts-preview .pv-sent__play{ width:44px; height:44px; }
  body.hts-preview .pv-sent__play svg{ width:17px; height:17px; }
  body.hts-preview .pv-sent__th{ font-size:19px; line-height:1.45; }
  body.hts-preview .pv-sent__en{ margin-top:8px; font-size:13px; }
  body.hts-preview .pv-sent__w{ margin-top:7px; font-size:11.5px; }
  body.hts-preview .pv-sent__w b{ font-size:15px; }

  /* --- SCENARIOS: the domain bars stay the filter, at half the height -------- */
  body.hts-preview .pv-bars{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:4px 8px; margin-top:12px; }
  body.hts-preview .pv-bar{
    grid-template-columns:minmax(0,1fr) auto; gap:8px;
    padding:6px 8px; min-height:36px; border-radius:var(--pv-r-sm);
  }
  /* a 30px track showing 17-of-100 is a 5px dot, not a bar — it read as noise
     and it stole the room the label needed ("Getting Aro…", "Leisure & Cu…").
     Per-domain, the COUNT carries the size; the "Everything" bar keeps the real
     track, so the page's signature growth motion survives at full width. */
  body.hts-preview .pv-bars .pv-bar:not(.pv-bar--all) .pv-bar__track{ display:none; }
  body.hts-preview .pv-bars .pv-bar--all{ grid-template-columns:minmax(0,1fr) minmax(60px,1fr) auto; }
  body.hts-preview .pv-bar__t{ font-size:11.5px; }
  body.hts-preview .pv-bar__track{ height:5px; }
  body.hts-preview .pv-bar__n{ font-size:10.5px; min-width:18px; }
  body.hts-preview .pv-scens{ gap:6px; }
  body.hts-preview .pv-scen{ border-radius:var(--pv-r-md); }
  body.hts-preview .pv-scen__m{ aspect-ratio:16/9; }
  body.hts-preview .pv-scen__bd{ padding:8px 10px 10px; }
  body.hts-preview .pv-scen__t{ font-size:12.5px; }
  body.hts-preview .pv-scen__th{ font-size:12px; }
  body.hts-preview .pv-scen__f{ margin-top:6px; gap:6px; }
  body.hts-preview .pv-scen__f .pv-pill{ height:16px; padding:0 6px; font-size:8px; letter-spacing:.06em; }
  body.hts-preview .pv-scen__f .pv-mod__n{ font-size:9.5px; }

  /* --- FLUENCY + PLAYLISTS: the ladder -------------------------------------- */
  body.hts-preview .pv-ladder{ margin-top:12px; padding-left:2px; }
  body.hts-preview .pv-ladder__spine{ left:23px; top:10px; bottom:10px; }
  body.hts-preview .pv-step{ gap:9px; padding:7px 6px; min-height:44px; border-radius:var(--pv-r-sm); }
  body.hts-preview .pv-step__n{ width:32px; height:32px; font-size:12.5px; }
  body.hts-preview .pv-step__t{ font-size:13px; }
  body.hts-preview .pv-step__d{ display:none; }
  body.hts-preview .pv-step__f svg{ width:15px; height:15px; }

  /* --- READ: the rail -------------------------------------------------------- */
  body.hts-preview .pv-rail{ margin-top:12px; }
  body.hts-preview .pv-rail__seg{ height:5px; }

  /* --- ARCADE: the console --------------------------------------------------- */
  body.hts-preview .pv-console{ gap:6px; margin-top:12px; }
  body.hts-preview .pv-console__side{
    grid-template-rows:none; grid-template-columns:repeat(2, minmax(0,1fr)); gap:6px;
  }
  body.hts-preview .pv-console__main,
  body.hts-preview .pv-console__s{ padding:10px 12px; gap:4px; border-radius:var(--pv-r-md); }
  body.hts-preview .pv-console__k{ font-size:9px; letter-spacing:.12em; }
  body.hts-preview .pv-console__v{ font-size:24px; }
  body.hts-preview .pv-console__v i{ font-size:12px; }
  body.hts-preview .pv-console__c{ font-size:11px; }
  body.hts-preview .pv-dots i{ height:6px; }

  /* --- REVIEW ----------------------------------------------------------------- */
  body.hts-preview .pv-rv{ gap:12px; margin-top:12px; }
  body.hts-preview .pv-deck{ width:84px; height:60px; }
  body.hts-preview .pv-rv__stats{ gap:14px; margin-top:12px; }
  body.hts-preview .pv-stat b{ font-size:19px; }
  body.hts-preview .pv-stat i{ font-size:8.5px; letter-spacing:.1em; }
  body.hts-preview .pv-rvhost{ margin-top:var(--pv-s5); }

  /* --- PROGRESS + PLAYLIST CARDS ---------------------------------------------- */
  body.hts-preview .pv-prog{ gap:12px; margin-top:12px; }
  body.hts-preview .pv-prog .pv-meter{ width:86px; height:86px; }
  body.hts-preview .pv-prog .pv-meter__c b{ font-size:23px; }
  body.hts-preview .pv-days{ gap:3px; margin-top:10px; max-width:240px; }
  body.hts-preview .pv-covs{ gap:8px; padding:10px 12px; }
  /* the coverage bar keeps its own two-row shape — the generic .pv-bar grid above
     would otherwise put the number back on a third row under the track. */
  body.hts-preview .pv-bar--cov{ grid-template-columns:minmax(0,1fr) auto; row-gap:5px; padding:3px 2px; min-height:0; }
  body.hts-preview .pv-bar--cov .pv-bar__t{ grid-row:1; grid-column:1; font-size:12px; }
  body.hts-preview .pv-bar--cov .pv-bar__n{ grid-row:1; grid-column:2; font-size:11px; }
  body.hts-preview .pv-bar--cov .pv-bar__track{ grid-row:2; grid-column:1 / -1; height:5px; }
  body.hts-preview .pv-pls{ gap:6px; }
  body.hts-preview .pv-pl{ padding:10px 12px; border-radius:var(--pv-r-md); }
  body.hts-preview .pv-pl__h{ gap:9px; margin-bottom:6px; }
  body.hts-preview .pv-pl__ic{ width:30px; height:30px; border-radius:9px; }
  body.hts-preview .pv-pl__ic svg{ width:16px; height:16px; }
  body.hts-preview .pv-pl__t{ font-size:13px; }
  body.hts-preview .pv-pl__d{ display:none; }
  body.hts-preview .pv-pl .pv-row__ic{ width:26px; height:26px; border-radius:8px; }
  body.hts-preview .pv-pl__h .pv-pill{ height:17px; padding:0 7px; font-size:8.5px; letter-spacing:.08em; }

  /* --- the STATIC figure ------------------------------------------------------- */
  body.hts-preview .pv-fig{ padding:6px 10px; }
  body.hts-preview .pv-fig b{ font-size:22px; }
  body.hts-preview .pv-fig s{ font-size:12px; }

  /* --- the re-hosted breakdowns, compact ---------------------------------------
     The card itself is a shipped, theme-invariant system with its own phone
     layout — only the FRAME tightens: a shorter header, a 44px search row, and
     an icon-only dice (its label is what stops the row fitting at 375). */
  body.hts-preview .pv-bd{ margin-top:6px; }
  body.hts-preview .pv-bd__h{ margin-bottom:10px; }
  body.hts-preview .pv-bd__t{ font-size:19px; }
  body.hts-preview .pv-bd__s{ display:none; }
  body.hts-preview .pv-words .pv-mh__sub,
  body.hts-preview .pv-sentences .pv-mh__sub{ display:none; }
  body.hts-preview .pv-bd .wbd__searchrow,
  body.hts-preview .pv-bd .sbd__searchrow{ gap:7px; margin-bottom:8px; }
  body.hts-preview .pv-bd .wbd__search,
  body.hts-preview .pv-bd .wbd__random,
  body.hts-preview .pv-bd .wbd__filterbtn,
  body.hts-preview .pv-bd .sbd__search,
  body.hts-preview .pv-bd .sbd__random{ height:44px; }
  body.hts-preview .pv-bd .wbd__filterbtn{ width:44px; }
  body.hts-preview .pv-bd .wbd__random,
  body.hts-preview .pv-bd .sbd__random{ padding:0 14px; }
  body.hts-preview .pv-bd .wbd__random > span,
  body.hts-preview .pv-bd .sbd__random > span{ display:none; }
  body.hts-preview .pv-bd .wbd__hint,
  body.hts-preview .pv-bd .sbd__hint{ margin:-4px 2px 8px; font-size:11.5px; }
  body.hts-preview .pv-bd .wbd__card,
  body.hts-preview .pv-bd .sbd__card{ padding:14px 12px 12px; border-radius:var(--pv-r-lg); }
  body.hts-preview .pv-bd .wb-callbtn{
    margin-top:10px; padding:10px 12px; gap:10px; border-radius:var(--pv-r-md);
  }
  body.hts-preview .pv-bd .wb-callbtn__spark{ width:30px; height:30px; }
  body.hts-preview .pv-bd .wb-callbtn__tx b{ font-size:13px; }
  body.hts-preview .pv-bd .wb-callbtn__sub{ font-size:10.5px; }
  body.hts-preview .pv-demoted{ margin-top:var(--pv-s5); }

  /* --- the thumb bar keeps a full-size target ----------------------------------- */
  body.hts-preview.pv-on .pv-thumb{ padding:8px 12px calc(8px + var(--safe-b)); }
  body.hts-preview.pv-on .pv-thumb .pv-btn{ height:44px; }
}

/* ===========================================================================
   §20  SOUNDS · THE PHONE PASS  (owner order 2026-08-23, round 2)

   Owner, verbatim: "Inside the sounds page, things like consonant classes,
   live dead, golden formula etc needs to be optimized for mobile as well..
   mobile only.. execute."

   §19 gave the page its compact SCALE; the three blocks below were still
   carrying their desktop SHAPE inside it:

     1. the tone-formula plate was a tall poster (kicker + 24px headline +
        two-line paragraph + a full-width gold button = 185px). On a phone it
        becomes a BANNER: kicker + the one line + a compact gold CTA on the
        right. Same link, same trial-lock contract, same gold moment.
     2. "How the system works" (Consonant Classes · Live vs Dead Syllables ·
        Tone Markers) was three full-width airy rows while every other shelf on
        the page was already a 2-up compact button grid. Their labels are SHORT
        — so they join the same grammar (icon tile + chevron out, 2 up, the odd
        last one spanning), CSS-only: the row markup, the trial-lock contract
        and the desktop layout are all untouched.
     3. the tone board's footer CTA is the SAME href as the fixed thumb bar
        ("Hear them side by side" / "Start with the tones" -> #/sounds/tones).
        Two copies of one action inside 500px of phone is not a choice, it is
        clutter — the board drops its copy and keeps the thumb bar's.

   Everything here is inside the phone query and scoped to the preview body;
   desktop and iPad pixels do not move.
   =========================================================================== */
@media (max-width:560px){

  /* --- 1. THE FORMULA BANNER --------------------------------------------- */
  body.hts-preview .pv-formula{
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center; gap:10px;
    margin-top:var(--pv-s2); padding:11px 12px; border-radius:var(--pv-r-md);
  }
  body.hts-preview .pv-formula .pv-kicker--tight{ font-size:9px; letter-spacing:.16em; }
  body.hts-preview .pv-formula__t{
    margin:4px 0 0; font-size:14.5px; line-height:1.22; letter-spacing:-.018em;
  }
  /* the paragraph is the desktop's room to explain; the banner's job is the
     promise + the door, and the page above it has already made the argument. */
  body.hts-preview .pv-formula__d{ display:none; }
  body.hts-preview .pv-formula__go{
    width:auto; height:34px; padding:0 13px; gap:6px;
    font-size:11.5px; letter-spacing:-.005em;
  }
  body.hts-preview .pv-formula__go svg{ width:14px; height:14px; }
  /* locked: the CTA is a promise the finger cannot cash, so the Locked chip
     takes its slot (the .pv-mod rule one section up, same reasoning). */
  body.hts-preview .pv-formula[data-tl-area] .pv-formula__go{ display:none; }
  body.hts-preview .pv-formula[data-tl-area] .tl-pin{ top:50%; right:12px; transform:translateY(-50%); }

  /* --- 2. "HOW THE SYSTEM WORKS" -> the 2-up compact button grid ----------
     Scoped to the Sounds shelves' own panel, so the page's disclosure list
     (`Browse the rest of the library`, .pv-more__bd) stays a LIST — a long
     tail should read as a list, a short set of doors should not.            */
  body.hts-preview .pv-sounds .pv-shelf > .pv-panel.pv-rows{
    display:grid; grid-template-columns:repeat(2, minmax(0,1fr));
    gap:6px; padding:6px;
  }
  body.hts-preview .pv-sounds .pv-shelf > .pv-panel .pv-row{
    grid-template-columns:minmax(0,1fr);
    align-content:center; gap:0;
    padding:9px 11px; min-height:52px; border-radius:var(--pv-r-md);
    background:color-mix(in srgb, var(--pv-cv) 7%, transparent);
    border:1px solid color-mix(in srgb, var(--pv-cv) 22%, transparent);
  }
  body.hts-preview .pv-sounds .pv-shelf > .pv-panel .pv-row__ic,
  body.hts-preview .pv-sounds .pv-shelf > .pv-panel .pv-row__go{ display:none; }
  body.hts-preview .pv-sounds .pv-shelf > .pv-panel .pv-row__t{
    flex-wrap:wrap; row-gap:4px; gap:6px;
    font-size:12.5px; line-height:1.24; font-weight:700;
  }
  /* the desktop row ellipsizes its title against a 1fr rail; in a 163px tile
     that would eat the label, so here it WRAPS instead. */
  body.hts-preview .pv-sounds .pv-shelf > .pv-panel .pv-row__t > span{
    white-space:normal; overflow:visible; text-overflow:clip;
  }
  body.hts-preview .pv-sounds .pv-shelf > .pv-panel .pv-row:last-child:nth-child(odd){
    grid-column:1 / -1;
  }
  body.hts-preview .pv-sounds .pv-shelf > .pv-panel .pv-row[data-tl-area]{
    align-content:start; padding-bottom:29px;
  }
  body.hts-preview .pv-sounds .pv-shelf > .pv-panel .pv-row[data-tl-area] .pv-pill{ display:none; }
  body.hts-preview .pv-sounds .pv-shelf > .pv-panel .pv-row[data-tl-area] .tl-pin{
    top:auto; bottom:8px; right:10px; transform:none;
  }

  /* --- 3. the tone board sheds its duplicate action ----------------------- */
  body.hts-preview .pv-sounds .pv-board__f{ margin-top:10px; }
  body.hts-preview .pv-sounds .pv-board__f .pv-btn{ display:none; }
  body.hts-preview .pv-sounds .pv-board__note{ font-size:11px; line-height:1.38; }
}

/* ---- Tone pills, ALL widths (owner 08-25: desktop showed raw highlight
   rectangles because these lived only in the phone media block). Same tinted
   rounded pill as the phone carousel; overrides the flat global .t-* fill. */
body.hts-preview .pv-tonepill{
  display:inline-block; font-size:10px; font-weight:800; letter-spacing:.05em;
  text-transform:uppercase; padding:2px 9px; border-radius:99px; margin-top:3px;
  white-space:nowrap;
  background:color-mix(in srgb, var(--tp, #64748b) 16%, transparent); color:var(--tp, #64748b);
}
body.hts-preview .pv-tonepill.t-mid{ --tp:var(--tone-mid); }
body.hts-preview .pv-tonepill.t-low{ --tp:var(--tone-low); }
body.hts-preview .pv-tonepill.t-high{ --tp:var(--tone-high); }
body.hts-preview .pv-tonepill.t-rising{ --tp:var(--tone-rising); }
body.hts-preview .pv-tonepill.t-falling{ --tp:var(--tone-falling); }


/* ===========================================================================
   FIRST-STEPS HERO - THE ใจ WORD WEB (owner-approved 2026-08-30, 12-device wall)
   .pv-hero--web replaces the 0/3 meter with the landing constellation component
   (.hcon-cell from _v_home_constel.css). >=700px: the web owns the right slot and
   overflows the card's top/bottom. Phones: it becomes a ~20% backdrop behind the
   copy (owner's call - no room for its own slot). No kicker on this state.
   =========================================================================== */
body.hts-preview .pv-hero--web{ position:relative; overflow:hidden; grid-template-columns:minmax(0,1fr);
  background:radial-gradient(120% 130% at 78% 45%, #16386a 0%, #0b1c38 46%, #071227 78%, #050c1a 100%); }
body.hts-preview .pv-hero--web .pv-hero__bd{ position:relative; z-index:6; max-width:46%; }
body.hts-preview .pv-hero--web .pv-hero__r{ position:absolute; right:0; top:0; bottom:0; width:60%; display:block; }
body.hts-preview .pv-hero--web .hcon-cell{ position:absolute; inset:0; aspect-ratio:auto; border:0; border-radius:0; background:transparent;
  -webkit-mask-image:linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 18%, #000 40%); mask-image:linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 18%, #000 40%); }
body.hts-preview .pv-hero--web .hcon-cell::after{ background:radial-gradient(70% 120% at 55% 50%, transparent 55%, rgba(6,13,28,.55) 85%, rgba(5,12,26,.9) 100%); }
body.hts-preview .pv-hero--web .hcon{ inset:-42% -6% -42% -8%; }
body.hts-preview .pv-hero--web .hnode__en{ display:block; font-size:.58em; font-weight:600; letter-spacing:.01em; line-height:1.05; margin-top:.1em; color:rgba(202,216,246,.62); }
body.hts-preview .pv-hero--web .hnode--hub .hnode__en{ font-size:.34em; margin-top:.15em; letter-spacing:.05em; color:rgba(255,240,224,.82); }
body.hts-preview .pv-hero--web .hnode--o .hnode__en{ color:rgba(188,204,240,.56); }
body.hts-preview .pv-hero--web .pv-hero__cta{ box-shadow:0 8px 24px rgba(207,146,51,.35); }
@media (max-width:699px){
  body.hts-preview .pv-hero--web .pv-hero__bd{ max-width:none; }
  body.hts-preview .pv-hero--web .pv-hero__bd > .pv-kicker,
  body.hts-preview .pv-hero--web .pv-hero__d,
  body.hts-preview .pv-hero--web .pv-hero__t{ padding-right:0; }
  body.hts-preview .pv-hero--web .pv-hero__r{ inset:0; top:0; right:0; width:auto; opacity:.22; pointer-events:none; }
  body.hts-preview .pv-hero--web .hcon-cell{ -webkit-mask-image:none; mask-image:none; }
  body.hts-preview .pv-hero--web .hcon-cell::after{ display:none; }
  body.hts-preview .pv-hero--web .hcon{ inset:-30% -12% -30% -12%; }
}
/* the sticky thumb bar tucks away while the hero is on screen (owner 2026-08-30) */
body.hts-preview.pv-on .pv-thumb{ transition:transform .28s ease, opacity .28s ease; }
body.hts-preview.pv-on .pv-thumb.pv-thumb--tucked{ animation:none; transform:translateY(130%); opacity:0; pointer-events:none; }   /* animation:none — the bar's entrance animation (fill forwards) would otherwise pin its transform over the tuck */
