/* ============================================================================
   studio_app_b6.css — BAND B6 of the app→web transfer, 2026-09-23:
   BAND C LEFTOVERS. The last band.

   Linked LAST, after studio_app_b5.css. Every rule begins with
   `body.hts-studio` — customers see none of it — and every colour resolves to
   an `--app-*` token from §A of output/design/WEB_TRANSFER_2026-09-23.md.
   ⛔ NO LITERAL HEX ANYWHERE IN THIS FILE. Where the app blends (`wash`,
   `accentInk`, the .45 ghost tier) the web blends with `color-mix`, which is
   exactly `Color.alphaBlend`, so a palette edit carries.

     §1  the divider softening — band A's own recorded residue
     §2  ChoiceTile            (components.dart L1924-2066)
     §3  Skeleton / ExerciseSkeleton (components.dart L3724 · exercise_frame L1229)
     §4  StatusBlock + StatusArt (components.dart L3540 · illustrations.dart)
     §5  Meter — the ring and the steps variants (components.dart L3299)
     §6  the consonant letter sheet + ThaiGlyphTile's class rule
     §7  the sentence-detail rows and the saved-words rows
   ============================================================================ */

/* ==========================================================================
   §1 · THE DIVIDER SOFTENING — 64 elements, per element
   ==========================================================================
   Band A repointed `--line` (211 uses) onto `lineStrong` and recorded why:
   107 of those uses are a box EDGE, the app's own rule is that a box edge is
   `lineStrong` — "the visual information that says *you can touch this*" —
   and the edge is both the majority and the thing you see. The 68 DIVIDER
   uses therefore landed one step firmer than the app draws them, and band A
   named that "the single largest known residue of band A", to be softened
   PER ELEMENT by a later band. This is that band.

   ⛔ HOW, so that nothing can move. Every rule below sets ONLY
   `border-<side>-color` or `background-color`. It never restates a width, a
   style or a shorthand, so a box edge on the same element is untouched by
   construction and no geometry can change — which is the difference between
   a sweep of a CLASS of selectors and a global remap.

   ⛔ WHAT IS IN IT. Every divider use of `--line` in the eight studio sheets
   that carry one: a hairline between rows, a chrome edge, a meter TRACK and a
   sheet grabber — §A.2's own list for `line` ("separation inside a group, a
   hairline, a meter track"). Enumerated out of the sheets, not remembered;
   the 71 declarations collapse to 64 rules because six of them are the same
   element restated inside a media query and one is inside a comment.

   ⛔ WHAT IS DELIBERATELY NOT IN IT.
     1. `studio_cst.css` (18 uses) — the constellation isolation law. The
        island declares its own palette and is out of scope for every band of
        this transfer, on both surfaces.
     2. `studio_money.css` (2) and `studio_pw.css` (2) — the money path. Those
        surfaces are restyle-on-a-live-click-through, never a grep.
     3. `.st-page .scene-image{background:var(--line)}` — that is the bed
        RESERVED behind a scenario plate while its image loads, not a divider
        and not a track. Softening it would be a judgement about an element
        this band was not asked to judge; it is left where band A put it and
        recorded here instead.
     4. Every `border:` / `border-color:` SHORTHAND on a box — 107 uses. Those
        are the affordance edge and they stay `lineStrong`, which is the whole
        reason band A made the choice it made.
   ========================================================================== */
/* studio.css L127 */
body.hts-studio.hts-studio.hts-studio .sidebar{ border-right-color:var(--app-line); }
/* studio.css L145 */
body.hts-studio.hts-studio.hts-studio .profile{ border-top-color:var(--app-line); }
/* studio.css L151 */
body.hts-studio.hts-studio.hts-studio .topbar{ border-bottom-color:var(--app-line); }
/* studio.css L158 */
body.hts-studio.hts-studio.hts-studio .top-divider{ background-color:var(--app-line); }
/* studio.css L223 */
body.hts-studio.hts-studio.hts-studio .st-page .plan-progress{ background-color:var(--app-line); }
/* studio.css L226 */
body.hts-studio.hts-studio.hts-studio .st-page .plan-step:not(:last-of-type):before{ background-color:var(--app-line); }
/* studio.css L235 */
body.hts-studio.hts-studio.hts-studio .st-page .plan-bottom{ border-top-color:var(--app-line); }
/* studio.css L266 */
body.hts-studio.hts-studio.hts-studio .st-page .week-summary{ border-top-color:var(--app-line); }
/* studio.css L274 */
body.hts-studio.hts-studio.hts-studio .st-page .tabs{ border-bottom-color:var(--app-line); }
/* studio.css L298 */
body.hts-studio.hts-studio.hts-studio .st-page .inspector-divider{ background-color:var(--app-line); }
/* studio.css L343 */
body.hts-studio.hts-studio.hts-studio .st-page .lesson-toolbar{ border-bottom-color:var(--app-line); }
/* studio.css L345 */
body.hts-studio.hts-studio.hts-studio .st-page .dialogue-line{ border-bottom-color:var(--app-line); }
/* studio.css L372 */
body.hts-studio.hts-studio.hts-studio .st-page .sentence-stage{ border-bottom-color:var(--app-line); }
/* studio.css L407 */
body.hts-studio.hts-studio.hts-studio .st-page .game-card .game-foot{ border-top-color:var(--app-line); }
/* studio.css L411 */
body.hts-studio.hts-studio.hts-studio .st-page .round-meter{ background-color:var(--app-line); }
/* studio.css L480 */
body.hts-studio.hts-studio.hts-studio .st-page .chart{ border-bottom-color:var(--app-line); background-image:repeating-linear-gradient(to top,transparent 0,transparent 52px,var(--app-line) 53px,transparent 54px); }
/* studio.css L512 */
body.hts-studio.hts-studio.hts-studio .st-page .settings-row{ border-bottom-color:var(--app-line); }
/* studio.css L515 */
body.hts-studio.hts-studio.hts-studio .st-page .toggle{ background-color:var(--app-line); }
/* studio.css L518 */
body.hts-studio.hts-studio.hts-studio .st-page .help-item{ border-bottom-color:var(--app-line); }
/* studio.css L527 */
body.hts-studio.hts-studio.hts-studio .search-top{ border-bottom-color:var(--app-line); }
/* studio.css L535 */
body.hts-studio.hts-studio.hts-studio .search-foot{ border-top-color:var(--app-line); }
/* studio.css L1156 */
body.hts-studio.hts-studio.hts-studio .st-page .lookup-workspace{ border-top-color:var(--app-line); }
/* studio.css L1176 */
body.hts-studio.hts-studio.hts-studio .st-page .syllable-table thead th{ border-top-color:var(--app-line); border-bottom-color:var(--app-line); }
/* studio.css L1180 */
body.hts-studio.hts-studio.hts-studio .st-page .syllable-table td,
body.hts-studio.hts-studio.hts-studio .st-page .syllable-table tbody th{ border-bottom-color:var(--app-line); }
/* studio.css L1191 */
body.hts-studio.hts-studio.hts-studio .st-page .lookup-explanation{ border-top-color:var(--app-line); }
/* studio.css L1350 */
body.hts-studio.hts-studio.hts-studio .st-page .lookup-word{ border-bottom-color:var(--app-line); }
/* studio.css L1461 */
body.hts-studio.hts-studio.hts-studio .st-page .syllable-table tbody th{ border-bottom-color:var(--app-line); }
/* studio.css L1640 */
body.hts-studio.hts-studio.hts-studio .st-page .atlas-tags{ border-bottom-color:var(--app-line); }
/* studio.css L1646 */
body.hts-studio.hts-studio.hts-studio .st-page .atlas-nearby a{ border-bottom-color:var(--app-line); }
/* studio.css L1664 */
body.hts-studio.hts-studio.hts-studio .sheet-header{ border-bottom-color:var(--app-line); }
/* studio.css L1671 */
body.hts-studio.hts-studio.hts-studio .sheet-group a{ border-bottom-color:var(--app-line); }
/* studio.css L1679 */
body.hts-studio.hts-studio.hts-studio .st-page .atlas-word-list>div{ border-bottom-color:var(--app-line); }
/* studio.css L1867 */
body.hts-studio.hts-studio.hts-studio #device-dock{ border-top-color:var(--app-line); }
/* studio.css L1916 */
body.hts-studio.hts-studio.hts-studio .st-page .p-paths{ border-bottom-color:var(--app-line); }
/* studio.css L1928 */
body.hts-studio.hts-studio.hts-studio .st-page .p-rhythm{ border-top-color:var(--app-line); border-bottom-color:var(--app-line); }
/* studio.css L1933 */
body.hts-studio.hts-studio.hts-studio .st-page .p-rhythm>a:last-child{ border-left-color:var(--app-line); }
/* studio.css L1944 */
body.hts-studio.hts-studio.hts-studio .st-page .p-personal{ border-top-color:var(--app-line); }
/* studio.css L1971 */
body.hts-studio.hts-studio.hts-studio .st-page .atlas-inspector:before{ background-color:var(--app-line); }
/* studio.css L2037 */
body.hts-studio.hts-studio.hts-studio .st-page .syllable-facts{ border-top-color:var(--app-line); }
/* studio.css L2038 */
body.hts-studio.hts-studio.hts-studio .st-page .syllable-facts>div{ border-bottom-color:var(--app-line); }
/* studio.css L2039 */
body.hts-studio.hts-studio.hts-studio .st-page .syllable-facts>div:nth-child(even){ border-left-color:var(--app-line); }
/* studio.css L2127 */
body.hts-studio.hts-studio.hts-studio .st-page .mode-grid .practice-mini{ border-bottom-color:var(--app-line); }
/* studio.css L2141 */
body.hts-studio.hts-studio.hts-studio .st-page .dialogue-line{ border-top-color:var(--app-line); }
/* studio.css L2176 */
body.hts-studio.hts-studio.hts-studio .st-page .sentence-note>div+div{ border-top-color:var(--app-line); }
/* studio.css L2214 */
body.hts-studio.hts-studio.hts-studio .st-page .review-summary{ border-top-color:var(--app-line); border-bottom-color:var(--app-line); }
/* studio.css L2434 */
body.hts-studio.hts-studio.hts-studio #sbdHost .sbd__card{ border-top-color:var(--app-line); }
/* studio.css L2460 */
body.hts-studio.hts-studio.hts-studio #sbdHost .sbd__grow{ border-top-color:var(--app-line); }
/* studio_exercise.css L7 */
body.hts-studio.hts-studio.hts-studio .ex-bar{ border-bottom-color:var(--app-line); }
/* studio_exercise.css L652 */
body.hts-studio.hts-studio.hts-studio.ex-active #qsheet .ex-setup-foot{ border-top-color:var(--app-line); }
/* studio_finish.css L287 */
body.hts-studio.hts-studio.hts-studio.st-inspector-sheet.hts-studio.hts-studio .st-page .sheet-head{ border-bottom-color:var(--app-line); }
/* studio_finish.css L288 */
body.hts-studio.hts-studio.hts-studio.st-inspector-sheet.hts-studio.hts-studio .st-page .sheet-grip{ background-color:var(--app-line); }
/* studio_finish.css L299 */
body.hts-studio.hts-studio.hts-studio.st-inspector-sheet.hts-studio.hts-studio .st-page .sheet-line{ border-bottom-color:var(--app-line); }
/* studio_menu.css L19 */
body.hts-studio.hts-studio.hts-studio .am-head{ border-bottom-color:var(--app-line); }
/* studio_menu.css L36 */
body.hts-studio.hts-studio.hts-studio .am-appearance{ border-top-color:var(--app-line); }
/* studio_menu.css L44 */
body.hts-studio.hts-studio.hts-studio .am-foot{ border-top-color:var(--app-line); }
/* studio_p5.css L58 */
body.hts-studio.hts-studio.hts-studio .st-page .rv-src,
body.hts-studio.hts-studio.hts-studio .st-page .rv-seg{ border-bottom-color:var(--app-line); }
/* studio_p5.css L78 */
body.hts-studio.hts-studio.hts-studio .st-page .rv-beam{ background-color:var(--app-line); }
/* studio_p5.css L224 */
body.hts-studio.hts-studio.hts-studio .st-page .hp-faq .faq-item{ border-bottom-color:var(--app-line) !important; }
/* studio_p5.css L247 */
body.hts-studio.hts-studio.hts-studio .st-page .theme-tabs{ border-bottom-color:var(--app-line); }
/* studio_qx.css L49 */
body.hts-studio.hts-studio.hts-studio .st-page .qx__bar{ background-color:var(--app-line); }
/* studio_qx.css L327 */
body.hts-studio.hts-studio.hts-studio .st-page .qsheet__head{ border-bottom-color:var(--app-line); }
/* studio_snd.css L154 */
body.hts-studio.hts-studio.hts-studio .st-page .pairvs,
body.hts-studio.hts-studio.hts-studio .st-page .vs{ border-top-color:var(--app-line); }
/* studio_snd.css L166 */
body.hts-studio.hts-studio.hts-studio .st-page .tfm th,
body.hts-studio.hts-studio.hts-studio .st-page .tfm td{ border-bottom-color:var(--app-line); }
/* studio_snd.css L204 */
body.hts-studio.hts-studio.hts-studio .st-page .pat-sec{ border-top-color:var(--app-line); }

/* ==========================================================================
   §2 · ChoiceTile — components.dart L1924-2066
   ==========================================================================
   ⛔ LAWS APPLY TO THE CLASS. Band B4 already built this element for the one
   demo panel the web has (`.b4-tile`, the tense picker). The app's element is
   ONE recipe used in three places, so the recipe is written ONCE here and the
   B4 tiles resolve to it — rather than a second, drifting copy.

   The app's two other ChoiceTile sites (the tones demo in `sounds.dart` L621
   and the word-builder demo in `read_home.dart` L270) have NO web analogue:
   neither `pages/sounds_tones.js` nor `pages/read.js` carries a demo panel
   with a row of picks. ⛔ Dropped rather than faked — an element with no web
   surface is not given one.

   ⛔ `lineStrong` in BOTH idle states, including the silent tile: a
   ChoiceTile REQUIRES an onTap, so a silent tile is every bit as tappable as
   a sounding one, and the divider colour on a live target is the one rule the
   whole library is organised around.
   ⛔ ALWAYS a border, so the box is the same size in both states and choosing
   a tile cannot nudge the row.
   ⛔ The row sizes every tile to the TALLEST (`_ChoiceRow`'s IntrinsicHeight)
   — `align-items:stretch` over an equal-fraction grid is that, exactly. */
body.hts-studio.hts-studio.hts-studio .b6-choices,
body.hts-studio.hts-studio.hts-studio .b4-tiles{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(0,1fr);
  align-items:stretch;
  gap:var(--app-gap-s);
}
body.hts-studio.hts-studio.hts-studio .b6-choice,
body.hts-studio.hts-studio.hts-studio .b4-tile{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  /* The height at text scale 1.0, growing from here and never below touch. */
  min-height:62px;
  padding:6px;
  border:1px solid var(--app-line-strong);
  border-radius:var(--app-r-tile);
  /* The idle tile lifts to the CARD rung: a row of live, tappable tiles in
     the well read as a recessed panel, and a 14% wash over the sunken fill
     was very nearly the sunken fill. */
  background:var(--app-surface);
  font:inherit;
  cursor:pointer;
}
/* The play glyph is what lets a screen drop its "Tap each word" caption. */
body.hts-studio.hts-studio.hts-studio .b6-choice .icon{
  width:12px; height:12px;
  color:var(--app-ink-muted);
}
body.hts-studio.hts-studio.hts-studio .b6-choice b,
body.hts-studio.hts-studio.hts-studio .b4-tile b{
  font-family:var(--app-font-thai);
  font-size:var(--app-size-thai-s);
  line-height:var(--app-lh-thai-s);
  font-weight:400;
  color:var(--app-ink);
}
body.hts-studio.hts-studio.hts-studio .b6-choice small,
body.hts-studio.hts-studio.hts-studio .b4-tile small{
  font-size:var(--app-size-caption);
  line-height:var(--app-lh-caption);
  text-align:center;
  color:var(--app-ink-muted);
}
/* The chosen tile is a FILL, A BORDER AND AN INK on the cell that is already
   there — never a check mark, never a badge, never a caption. */
body.hts-studio.hts-studio.hts-studio .b6-choice.is-on,
body.hts-studio.hts-studio.hts-studio .b4-tile.is-on{
  border-color:var(--app-brand);
  background:var(--app-wash-brand);
}
/* `brandInk`, not `brand`: Thai stacks vowels and tone marks on strokes
   thinner than a Latin stem, so it loses a low-contrast colour first — and on
   this element the MARK is the entire lesson. */
body.hts-studio.hts-studio.hts-studio .b6-choice.is-on b,
body.hts-studio.hts-studio.hts-studio .b6-choice.is-on small,
body.hts-studio.hts-studio.hts-studio .b6-choice.is-on .icon,
body.hts-studio.hts-studio.hts-studio .b4-tile.is-on b,
body.hts-studio.hts-studio.hts-studio .b4-tile.is-on small{ color:var(--app-brand-ink); }

/* ==========================================================================
   §3 · Skeleton / ExerciseSkeleton — components.dart L3724 · exercise_frame L1229
   ==========================================================================
   "Shimmer placeholder in the shape of the result. Never a bare spinner."
   The bone lerps between `surfaceSunken` and `line`, which is the app's own
   `Color.lerp(c.surfaceSunken, c.line, t)`.

   ⛔ STOPPED under reduced motion, not merely unpainted: the app stops the
   controller because "a controller left repeating burns frames behind a still
   box, and a screen that holds one can never settle". On the web that means
   the animation is DECLARED ONLY inside the motion query — a still box holds
   no running animation at all, rather than one that is paused.

   ⛔ LAWS APPLY TO THE CLASS: band B4's tail row (`.b4-skel`) was a flat
   `--line` block. It resolves to this recipe now. */
body.hts-studio.hts-studio.hts-studio .b6-bone,
body.hts-studio.hts-studio.hts-studio .b4-skel{
  display:block;
  border-radius:8px;
  background:var(--app-surface-sunken);
}
@media (prefers-reduced-motion:no-preference){
  body.hts-studio.hts-studio.hts-studio .b6-bone,
  body.hts-studio.hts-studio.hts-studio .b4-skel{ animation:b6Shimmer 1.2s ease-in-out infinite alternate; }
}
@keyframes b6Shimmer{
  from{ background-color:var(--app-surface-sunken); }
  to{ background-color:var(--app-line); }
}
body.hts-studio.hts-studio.hts-studio .b6-bones{
  display:block;
  margin-top:var(--app-gap-s);
}
/* `Skeleton.rows` — the 40px disc, then the title bone over the meta bone. */
body.hts-studio.hts-studio.hts-studio .b6-bonerow{
  display:flex;
  align-items:center;
  gap:var(--app-gap-m);
  padding:var(--app-gap-m) 0;
}
body.hts-studio.hts-studio.hts-studio .b6-bonerow>span{
  display:flex;
  flex-direction:column;
  gap:var(--app-gap-s);
}
/* `Skeleton.cards` — a two-up grid of card bones. */
body.hts-studio.hts-studio.hts-studio .b6-bones--cards{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:var(--app-gap-m);
}
/* ⛔ THE BONE IS THE SHAPE OF WHAT REPLACES IT, OR IT IS A JUMP. The app's
   own correction, twice over: the gutter is the OPTION grid's flat gap and
   not the page padding, and the option bone is the round's own minimum
   height rather than a hard 64. Both are read from the tokens the round is
   itself laid out with, so a text-scale change moves the bone with the
   tile. */
body.hts-studio.hts-studio.hts-studio .b6-exbones{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:var(--app-gap-l);
  padding:var(--app-gap-xxl) var(--app-gap-l) 0;
}
body.hts-studio.hts-studio.hts-studio .b6-bone--lead{ width:168px; height:14px; margin:0 auto; }
body.hts-studio.hts-studio.hts-studio .b6-bone--word{ width:232px; height:28px; margin:0 auto; }
body.hts-studio.hts-studio.hts-studio .b6-exbones__opts{
  display:grid;
  grid-template-columns:repeat(var(--b6-cols,2),minmax(0,1fr));
  gap:var(--app-gap-m);
}
body.hts-studio.hts-studio.hts-studio .b6-bone--opt{
  min-height:var(--app-touch-large);
  border-radius:var(--app-r-control);
}
/* The page's own waiting line keeps its words; it takes the app's caption. */
body.hts-studio.hts-studio.hts-studio .b6-waitline{
  opacity:1;
  font-size:var(--app-size-caption);
  line-height:var(--app-lh-caption);
  color:var(--app-ink-muted);
  text-align:center;
}

/* ==========================================================================
   §4 · StatusBlock + StatusArt — components.dart L3540 · illustrations.dart
   ==========================================================================
   One element for empty / locked / error / offline / loading, in five
   drawings that are "one visual language on purpose — every state is the same
   plate with a different motif, so the set reads as a family and not as five
   clip-art choices".

   ⛔ THE COLOUR IS THE STATE, and it is a FILL on the card that is already
   there, never an added badge. ⛔ THE TITLE STAYS `ink` on every one of these
   beds rather than taking the accent's ink twin: `violet` has no `*Ink` twin
   at all, so an accent-ink title would have been provable for three kinds and
   a guess for the fourth. The bed carries the meaning; the sentence stays
   readable. */
body.hts-studio.hts-studio.hts-studio .b6-status{
  --b6-accent:var(--app-ink-faint);
  --b6-plate:var(--app-surface-sunken);
  --b6-line:var(--app-line-strong);
  /* `inkDisabled` at full strength, not `inkFaint` at 55% — the rules are
     decorative glyphs, and an untokened dim put them near 1.5:1 on the
     plate. */
  --b6-ink:var(--app-ink-disabled);
  --b6-fill:color-mix(in srgb, var(--b6-accent) 14%, var(--app-surface-sunken));
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:var(--app-gap-s);
  padding:var(--app-gap-xxl);
  text-align:center;
}
/* `offline` moved off `inkMuted` in the app's 2026-09-21 colour pass: a grey
   cloud on a grey plate was the "dark on dark" the pass was called to fix. */
body.hts-studio.hts-studio.hts-studio .b6-status--locked{ --b6-accent:var(--app-caution); }
body.hts-studio.hts-studio.hts-studio .b6-status--error{ --b6-accent:var(--app-negative); }
body.hts-studio.hts-studio.hts-studio .b6-status--offline{ --b6-accent:var(--app-violet); }
body.hts-studio.hts-studio.hts-studio .b6-status--empty,
body.hts-studio.hts-studio.hts-studio .b6-status--loading{ --b6-accent:var(--app-brand); }

body.hts-studio.hts-studio.hts-studio .b6-art{
  display:block;
  width:96px;
  margin:0 auto var(--app-gap-xl);
}
body.hts-studio.hts-studio.hts-studio .b6-art svg{ display:block; width:100%; height:auto; }
body.hts-studio.hts-studio.hts-studio .b6-status__t{
  display:block;
  font-size:var(--app-size-title-m);
  line-height:var(--app-lh-title-m);
  font-weight:600;
  color:var(--app-ink);
}
body.hts-studio.hts-studio.hts-studio .b6-status__m{
  margin:0;
  font-size:var(--app-size-body-s);
  line-height:var(--app-lh-body-s);
  color:var(--app-ink-muted);
}
body.hts-studio.hts-studio.hts-studio .b6-status__acts{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:var(--app-gap-s);
  margin-top:var(--app-gap-l);
}
body.hts-studio.hts-studio.hts-studio .b6-status__go{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:var(--app-touch);
  padding:0 var(--app-gap-xl);
  border:0;
  border-radius:var(--app-r-control);
  background:var(--app-brand);
  color:var(--app-on-accent);
  font:inherit;
  font-size:var(--app-size-label);
  font-weight:600;
  cursor:pointer;
}
body.hts-studio.hts-studio.hts-studio .b6-status__go--2{
  background:transparent;
  border:1px solid var(--app-line-strong);
  color:var(--app-brand-ink);
}
/* ⛔ THE WEB'S OWN SENTENCE, UNCHANGED. `.empty-state` / `.lookup-empty` /
   `.lookup-unavailable` are production's and the studio's own words; the
   block composes AROUND the text node that is already there, so the element
   becomes the app's without one word being rewritten. */
body.hts-studio.hts-studio.hts-studio .b6-status--inline{
  font-size:var(--app-size-body-s);
  line-height:var(--app-lh-body-s);
  color:var(--app-ink-muted);
}
body.hts-studio.hts-studio.hts-studio .b6-status--inline h3{
  margin:0;
  font-size:var(--app-size-title-m);
  line-height:var(--app-lh-title-m);
  font-weight:600;
  color:var(--app-ink);
}
body.hts-studio.hts-studio.hts-studio .b6-status--inline .b6-art{ width:96px; }

/* The COMPACT banner: the same five kinds as a bed on the card that is
   already there, with the glyph taking the accent and the title staying
   `ink`. `brandInk` on the action, because that is a WORD the learner reads
   and an accent at 3:1 is a border, an icon or a meter fill. */
body.hts-studio.hts-studio.hts-studio .b6-banner{
  --b6-accent:var(--app-ink-faint);
  display:flex;
  align-items:center;
  gap:var(--app-gap-m);
  padding:14px var(--app-gap-l);
  border:1px solid var(--app-line-strong);
  border-radius:var(--app-r-control);
  background:color-mix(in srgb, var(--b6-accent) 14%, var(--app-surface));
}
body.hts-studio.hts-studio.hts-studio .b6-banner--locked{ --b6-accent:var(--app-caution); }
body.hts-studio.hts-studio.hts-studio .b6-banner--error{ --b6-accent:var(--app-negative); }
body.hts-studio.hts-studio.hts-studio .b6-banner--offline{ --b6-accent:var(--app-violet); }
body.hts-studio.hts-studio.hts-studio .b6-banner--empty,
body.hts-studio.hts-studio.hts-studio .b6-banner--loading{ --b6-accent:transparent; }
body.hts-studio.hts-studio.hts-studio .b6-banner__ic .icon{ width:21px; height:21px; color:var(--b6-accent); }
body.hts-studio.hts-studio.hts-studio .b6-banner>span{ flex:1 1 auto; min-width:0; }
body.hts-studio.hts-studio.hts-studio .b6-banner b{
  display:block;
  font-size:var(--app-size-body);
  line-height:var(--app-lh-body);
  font-weight:600;
  color:var(--app-ink);
}
body.hts-studio.hts-studio.hts-studio .b6-banner small{
  display:block;
  margin-top:2px;
  font-size:var(--app-size-caption);
  line-height:var(--app-lh-caption);
  color:var(--app-ink-muted);
}
body.hts-studio.hts-studio.hts-studio .b6-banner__go{
  font-size:var(--app-size-label);
  font-weight:600;
  color:var(--app-brand-ink);
  white-space:nowrap;
}

/* ==========================================================================
   §5 · Meter — the ring and the steps variants (components.dart L3299-3538)
   ==========================================================================
   Band A marked the bar done and both of the others "none, band C".

   ⛔ `Meter.steps` is a COUNTED position, not a fraction: one segment per step
   up to twelve "so the learner can see how many are left rather than infer it
   from a fraction", in THREE tiers — done = the accent, the step you are ON =
   a .45 wash of the accent over the track so the next one shows WITHOUT any
   added ink, everything beyond = the track. Past twelve it is the bar again,
   "because 51 hairlines is a texture, not a count".

   ⛔ THE ROUND'S BAR IS THE ENGINE'S. `core/qx.js` is never forked: the fill
   is still the `#qx-prog` element the engine writes `style.width` on, and the
   segments are a MASK over the bar it is already inside — so the count is
   drawn without one line of the round's logic changing. The gap between
   segments is a ratio of the track (`height * .75`, clamped 2..4 = 3px at the
   web bar's 4px), not a constant, so a 3px rule and an 8px bar read as the
   same object at two weights.
   Recorded deviation: the app rounds each segment's ends by half its height
   (2px at this size); a hard-edged mask cannot, so the web's segments are
   square. Nothing else about the element differs. */
body.hts-studio.hts-studio.hts-studio .st-page .qx__bar[data-b6n]{
  --b6-seg:100%;
  --b6-now-a:0%;
  --b6-now-b:0%;
  --b6-gap:3px;
  background-color:var(--app-line);
  background-image:linear-gradient(90deg,
    transparent 0 var(--b6-now-a),
    color-mix(in srgb, var(--cv, var(--app-brand)) 45%, var(--app-line)) var(--b6-now-a) var(--b6-now-b),
    transparent var(--b6-now-b) 100%);
  -webkit-mask-image:repeating-linear-gradient(90deg,
    #000 0 calc(var(--b6-seg) - var(--b6-gap)),
    transparent calc(var(--b6-seg) - var(--b6-gap)) var(--b6-seg));
  mask-image:repeating-linear-gradient(90deg,
    #000 0 calc(var(--b6-seg) - var(--b6-gap)),
    transparent calc(var(--b6-seg) - var(--b6-gap)) var(--b6-seg));
  border-radius:0;
}

/* The standalone element, for anything that is not the round's own bar. */
body.hts-studio.hts-studio.hts-studio .b6-meter{
  display:block;
  height:4px;
  border-radius:2px;
  background:var(--app-line);
  overflow:hidden;
}
body.hts-studio.hts-studio.hts-studio .b6-meter--bar>i{
  display:block;
  height:100%;
  background:var(--app-brand);
}
body.hts-studio.hts-studio.hts-studio .b6-meter--steps{
  display:flex;
  gap:3px;
  background:none;
  overflow:visible;
}
body.hts-studio.hts-studio.hts-studio .b6-meter--steps>i{
  flex:1 1 0;
  height:4px;
  border-radius:2px;
  background:var(--app-line);
}
body.hts-studio.hts-studio.hts-studio .b6-meter--steps>i.is-done{ background:var(--app-brand); }
body.hts-studio.hts-studio.hts-studio .b6-meter--steps>i.is-now{
  background:color-mix(in srgb, var(--app-brand) 45%, var(--app-line));
}
body.hts-studio.hts-studio.hts-studio .b6-steps{ display:block; }
/* Tabular: "3 of 7" → "4 of 7" must not move the noun after it. */
body.hts-studio.hts-studio.hts-studio .b6-steps__lbl{
  display:block;
  margin-bottom:var(--app-gap-s);
  font-size:var(--app-size-label);
  line-height:var(--app-lh-label);
  font-weight:600;
  font-variant-numeric:tabular-nums;
  color:var(--app-ink-muted);
}
/* The ring: the same ratio where a bar will not fit. */
body.hts-studio.hts-studio.hts-studio .b6-meter--ring{
  position:relative;
  width:44px;
  height:44px;
  border-radius:50%;
  background:conic-gradient(var(--app-brand) var(--b6-v,0%), var(--app-line) 0);
  overflow:visible;
  display:flex;
  align-items:center;
  justify-content:center;
}
body.hts-studio.hts-studio.hts-studio .b6-meter--ring::after{
  content:"";
  position:absolute;
  inset:4px;
  border-radius:50%;
  background:var(--app-surface);
}
/* The FIGURE inside the ring is a number the learner reads, at 12px, inside a
   ring of the same colour: `accentInk` keeps the ring's colour and clears the
   body floor; the raw accent is a 3:1 graphic and belongs on the ring. */
body.hts-studio.hts-studio.hts-studio .b6-meter__fig{
  position:relative;
  z-index:1;
  font-size:var(--app-size-caption);
  line-height:var(--app-lh-caption);
  font-weight:700;
  font-variant-numeric:tabular-nums;
  color:var(--app-brand-ink);
}
/* The results ring the engine already draws takes the app's recipe: the track
   is `line` (it was the generic `--surface-3`), and the app's ring is a
   STROKE, so the well that was pressed into its middle goes. §D row 51 marks
   the results screen tokens-only, and this is the one token it was missing. */
body.hts-studio.hts-studio.hts-studio .q2-res__ring{
  background:conic-gradient(var(--cv) calc(var(--qp) * 3.6deg), var(--app-line) 0);
}
body.hts-studio.hts-studio.hts-studio .q2-res__ring::after{
  background:var(--app-surface);
  box-shadow:none;
}

/* ==========================================================================
   §6 · THE CONSONANT LETTER SHEET — reading.dart _openLetter (L979-1060)
   ==========================================================================
   §D row 19: the app opens a letter into a sheet and "the web has no letter
   sheet". It has one now, over the tile production already draws and the
   record `H.data.sounds.consonants` already carries — the hero glyph, the
   name, the class / sound / obsolete tags, the note, and the letter's own
   example words on the `PaperBed`.

   ⛔ ThaiGlyphTile's 3px CLASS rule, on the element that is already there.
   The rule bar is what the index teaches (it is the reason the letters are
   colour-coded at all), and it is a pseudo-element — no node is added to
   production's button. The class colour is the app's own `scriptClassColor`
   = `c.tone(cls)`: Mid → `toneMid`, High → `toneHigh`, Low → `toneLow`. */
body.hts-studio.hts-studio.hts-studio .letter-card.b6-glyph{
  position:relative;
  overflow:hidden;
  border-color:var(--app-line-strong);
}
body.hts-studio.hts-studio.hts-studio .letter-card.b6-glyph::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:3px;
  background:var(--b6-cls, var(--app-line));
}
/* ⛔ The dim is the `inkDisabled` TOKEN, held to 3:1 on every bed — never an
   opacity standing in for a colour — and the dot carries the state
   independently of any dimming. */
body.hts-studio.hts-studio.hts-studio .letter-card.b6-glyph.is-obsolete .thai{ color:var(--app-ink-disabled); }
body.hts-studio.hts-studio.hts-studio .letter-card.b6-glyph.is-obsolete::after{
  content:"";
  position:absolute;
  right:5px; bottom:4px;
  width:5px; height:5px;
  border-radius:50%;
  background:var(--app-ink-disabled);
}

body.hts-studio.hts-studio.hts-studio .b6-letter{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:var(--app-gap-s);
  padding:var(--app-gap-s) var(--app-gap-l) var(--app-gap-s);
}
body.hts-studio.hts-studio.hts-studio .b6-letter__hero{
  font-family:var(--app-font-thai);
  font-size:var(--app-size-thai-hero);
  line-height:var(--app-lh-thai-hero);
  font-weight:400;
  color:var(--app-ink);
  text-align:center;
}
body.hts-studio.hts-studio.hts-studio .b6-letter__name{
  font-size:var(--app-size-title-m);
  line-height:var(--app-lh-title-m);
  font-weight:600;
  color:var(--app-ink);
  text-align:center;
}
body.hts-studio.hts-studio.hts-studio .b6-letter__tags{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:var(--app-gap-s);
  margin-top:var(--app-gap-m);
}
/* AppBadge.label: `wash` and `accentInk`, not a raw alpha and the raw accent
   — the word on a tag is a sentence. ⛔ The edge stays TRANSPARENT, because a
   badge is the half of the chip contract you cannot touch and a visible edge
   would make every static tag look like a filter. */
body.hts-studio.hts-studio.hts-studio .b6-badge{
  display:inline-flex;
  align-items:center;
  height:32px;
  padding:0 13px;
  border:1px solid transparent;
  border-radius:var(--app-r-pill);
  background:var(--app-surface-sunken);
  color:var(--app-ink-muted);
  font-size:var(--app-size-label);
  line-height:var(--app-lh-label);
  font-weight:600;
}
body.hts-studio.hts-studio.hts-studio .b6-badge--tone{
  background:color-mix(in srgb, var(--b6-cls, var(--app-brand)) 14%, var(--app-surface));
  color:var(--b6-cls-ink, var(--app-brand-ink));
}
body.hts-studio.hts-studio.hts-studio .b6-letter__note{
  margin:var(--app-gap-l) 0 0;
  font-size:var(--app-size-body-s);
  line-height:var(--app-lh-body-s);
  color:var(--app-ink-muted);
  text-align:center;
}
/* The `PaperBed` the app's word rows sit on. ⛔ In dark, `paper` is NAVY, not
   brown — the token answers that and this sheet does not re-decide it. */
body.hts-studio.hts-studio.hts-studio .b6-paper{
  margin-top:var(--app-gap-l);
  padding:0 var(--app-gap-m);
  border:1px solid var(--app-paper-line);
  border-radius:var(--app-r-card);
  background:var(--app-paper);
}
body.hts-studio.hts-studio.hts-studio .b6-wrow{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) minmax(0,1.1fr);
  align-items:center;
  gap:var(--app-gap-m);
  width:100%;
  min-height:var(--app-touch-large);
  padding:var(--app-gap-m) 0;
  border:0;
  /* divider: i < words.length - 1 */
  border-bottom:1px solid var(--app-paper-line);
  background:none;
  font:inherit;
  text-align:left;
  cursor:pointer;
}
body.hts-studio.hts-studio.hts-studio .b6-wrow.is-last{ border-bottom:0; }
/* AudioTransport, the outlined size: a `wash(brand)` bed inside a `brand`
   ring, with the glyph in `brand`. */
body.hts-studio.hts-studio.hts-studio .b6-wrow__play{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border:1px solid var(--app-brand);
  border-radius:50%;
  background:var(--app-wash-brand);
  color:var(--app-brand);
}
body.hts-studio.hts-studio.hts-studio .b6-wrow__play .icon{ width:16px; height:16px; }
body.hts-studio.hts-studio.hts-studio .b6-wrow__th{
  font-family:var(--app-font-thai);
  font-size:var(--app-size-thai-s);
  line-height:var(--app-lh-thai-s);
  color:var(--app-ink);
}
body.hts-studio.hts-studio.hts-studio .b6-wrow__gl{
  font-size:var(--app-size-body-s);
  line-height:var(--app-lh-body-s);
  color:var(--app-ink-muted);
}
/* `showAppSheet`'s sticky action, at the BOTTOM of the sheet. */
body.hts-studio.hts-studio.hts-studio #device-sheet .b6-sheet-act{
  position:sticky;
  bottom:0;
  padding:var(--app-gap-m) var(--app-gap-l) calc(var(--app-gap-l) + env(safe-area-inset-bottom));
  background:var(--app-surface-raised);
  border-top:1px solid var(--app-line);
}
body.hts-studio.hts-studio.hts-studio #device-sheet .b6-sheet-act .btn{ width:100%; justify-content:center; }

/* ==========================================================================
   §7 · THE TWO ROW SCREENS §D LEFT STANDING
   ==========================================================================
   §D row 31 `sentence_detail` and row 55 `favorites`. Band B3 already ruled
   that the shipped breakdown card IS the web's whole-sentence surface and
   that the hearts feed `#/review`; what was left was the COMPOSITION of the
   rows inside them, which is what the app's capture shows and what this does.

   (a) "Inside the sentence" — `#sbdHost .sbd__grow` is already the app's four
   marks in the app's order (disc · Thai · gloss · heart), and the page is
   wide, so the web keeps them on one line rather than stacking the gloss.
   What it did not have is the app's TRANSPORT: an outlined DISC, not a
   rounded square, and a saved heart whose "on" state was three literal hexes
   left over from before the token pass. */
body.hts-studio.hts-studio.hts-studio #sbdHost .sbd__wplay,
body.hts-studio.hts-studio.hts-studio #sbdHost .sbd__wheart{
  width:44px;
  height:44px;
  border-radius:50%;
  border-color:var(--app-brand);
  background:var(--app-wash-brand);
  color:var(--app-brand);
}
body.hts-studio.hts-studio.hts-studio #sbdHost .sbd__wheart{
  border-color:var(--app-line-strong);
  background:var(--app-surface);
  color:var(--app-ink-muted);
}
body.hts-studio.hts-studio.hts-studio #sbdHost .sbd__wheart.is-on{
  border-color:var(--app-negative);
  background:var(--app-wash-negative);
  color:var(--app-negative-ink);
}

/* (b) "Saved words" — the deck under `#/review`'s "Your saved words" heading
   is the web's favorites surface. The app lists it as ROWS with a `line`
   divider between them, so the cards become rows: the Thai leads, the gloss
   sits beside it, and the card's own foot (the connections link and the ♥)
   stays where it is on the right.
   ⛔ Restyle only. These cards sit inside production's `.is-trial-blur`
   wrapper; the wrapper, its `data-tl-*` contract and `applyTrialLocks` are
   not touched by one declaration here.
   ⛔ Recorded deviation: the app's row opens with a play DISC. The web has no
   disc to style — `audioBtn` makes the Thai ITSELF the play target — and an
   invented one would be an added element, so the row has more affordance than
   the app's, not less. */
body.hts-studio.hts-studio.hts-studio .rv-host .word-grid{
  display:flex;
  flex-direction:column;
  gap:0;
}
body.hts-studio.hts-studio.hts-studio .rv-host .word-grid .vocab-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;
  align-items:center;
  gap:var(--app-gap-m);
  min-height:var(--app-touch-large);
  padding:var(--app-gap-m) 0;
  border:0;
  border-bottom:1px solid var(--app-line);
  border-radius:0;
  background:none;
}
body.hts-studio.hts-studio.hts-studio .rv-host .word-grid .vocab-card:last-child{ border-bottom:0; }
body.hts-studio.hts-studio.hts-studio .rv-host .word-grid .vocab-card>button{
  text-align:left;
  background:none;
  border:0;
  padding:0;
  cursor:pointer;
}
body.hts-studio.hts-studio.hts-studio .rv-host .word-grid .vocab-card .thai{
  font-size:var(--app-size-thai-m);
  line-height:var(--app-lh-thai-m);
  color:var(--app-ink);
}
body.hts-studio.hts-studio.hts-studio .rv-host .word-grid .vocab-card .gloss{
  margin:0;
  font-size:var(--app-size-body-s);
  line-height:var(--app-lh-body-s);
  color:var(--app-ink-muted);
}
body.hts-studio.hts-studio.hts-studio .rv-host .word-grid .vocab-card .vocab-foot{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:var(--app-gap-m);
  margin:0;
  border:0;
  padding:0;
}
