/* ============================================================================
   studio_app_b4.css — BAND B4 of the app→web transfer, 2026-09-23:
   FLUENCY RULES — the track, the zone sheet, the library, the lesson template.

   Markup: assets/js/studio/studio_app_b4.js. Sources, read rather than
   remembered:
     hta-mobile\app\lib\features\library\fluency.dart   (all four screens, the
       reading ramp `_Read`, and every ⛔ NOTHING MOVES note it carries)
     hta-mobile\app\lib\design\system\components.dart
       (NavGroup L1550 · NavRow L1613 · ActionCard L822 · Heading L653 ·
        Meter L3330 · StatusBlock L3547 · ChoiceTile L1924)
     hta-mobile\app\lib\design\system\content_components.dart
       (AudioTransport L71 · LessonNext L1775)
     output\design\WEB_TRANSFER_2026-09-23.md  §A tokens · §B elements · §E
     the owner's captures: sentences · sentences_topic · sentences_library ·
     pattern_g1, light and dark

   ⛔ SCOPE. Every rule is under `body.hts-studio` — the class gate.js adds
      only for /me.preview === true. Without it this sheet matches nothing.

   ⛔ SPECIFICITY + ORDER. The same triple class studio_app.css uses, and
      LINKED AFTER studio_app_b3.css in app.html, so an equal-specificity
      declaration here wins on order.

   ⛔ COLOUR: `--app-*` ONLY, NEVER A NEW HEX. Where the app's palette has no
      token for a role the value is a `color-mix` of the tokens that exist,
      which is the same formula palette.dart's own `wash()` is (Color.alphaBlend
      of an accent over a bed).

   ⛔ THE BORDER LAW (§A.2). A BOX EDGE is `--app-line-strong`: a border means
      you can touch this. A DIVIDER inside a group is `--app-line`. That split
      is what a NavGroup states — the outside of the group is an affordance,
      the lines inside it only separate — and band A left the divider uses one
      step firmer, so every divider in this sheet is written at `line` by hand.

   ⛔ THE ACCENT FAMILY SPLITS ALONG ONE LINE (palette.dart, accentInk): an
      accent at 3:1 may be a rule, an icon, a meter fill or an 11px eyebrow; a
      SENTENCE takes the ink twin. Fluency is `--app-track-fluency`, and its
      sentence twin on this track is `--app-positive-ink`.

   ⛔ NOTHING MOVES. Three surfaces here reserve the tallest of the strings
      they can show — the demo's gloss, the demo's explanation and the
      checkpoint's verdict — because each of them used to grow its panel under
      the finger that changed it. `.b4-steady` is that reservation: every
      option occupies the same grid cell and only the chosen one is painted.

   ⛔ NO ADDED ELEMENTS. A chosen tile, a judged option and a mastered button
      are all the element that was already there wearing a class.
   ============================================================================ */

/* ========================================================================== */
/* 0. THE PAGE, THE HEADS AND THE READING RAMP                                */
/* ========================================================================== */
body.hts-studio.hts-studio.hts-studio .b4-page{
  display:flex;
  flex-direction:column;
  gap:var(--app-gap-l);
}
body.hts-studio.hts-studio.hts-studio .b4-head h1,
body.hts-studio.hts-studio.hts-studio .b4-thead h1,
body.hts-studio.hts-studio.hts-studio .b4-lhead h1{
  margin:0;
  font-size:var(--app-size-title-xl);
  line-height:var(--app-lh-title-xl);
  letter-spacing:var(--app-track-title-xl);
  font-weight:600;
  color:var(--app-ink);
}
/* The eyebrow: 11px, uppercase, letter-spaced — a GRAPHIC label, which is why
   it may wear the track accent itself. */
body.hts-studio.hts-studio.hts-studio .b4-eyebrow{
  display:block;
  font-size:var(--app-size-micro);
  line-height:var(--app-lh-micro);
  letter-spacing:var(--app-track-micro);
  font-weight:700;
  text-transform:uppercase;
  color:var(--app-track-fluency);
}
body.hts-studio.hts-studio.hts-studio .b4-thead .b4-eyebrow,
body.hts-studio.hts-studio.hts-studio .b4-lhead .b4-eyebrow{ margin-bottom:6px; }
body.hts-studio.hts-studio.hts-studio .b4-thead p{
  margin:var(--app-gap-s) 0 0;
  font-size:var(--app-size-body);
  line-height:var(--app-lh-body);
  color:var(--app-ink-muted);
}

/* ⛔ ROUND 6, ITEM 12 — THE READING RAMP. A lesson is the one surface in this
   app a learner READS rather than scans, and every line of it was set at the
   body step — 15/22, a list-row subtitle — for as many as six paragraphs in a
   row. Each step below is BUILT FROM the shared ramp (a size from one token, a
   leading multiplier from another), so not one number is transcribed and the
   lesson moves when the tokens move. 22/15 = the body step's own multiplier. */
body.hts-studio.hts-studio.hts-studio .b4-lesson{
  --b4-prose-size:var(--app-size-title-m);                 /* 15 → 17  */
  --b4-prose-lh:calc(var(--app-size-title-m) * 1.4667);    /* 22 → 24.9 */
  --b4-lead-size:var(--app-size-title-l);                  /* 15 → 20  */
  --b4-lead-lh:calc(var(--app-size-title-l) * 1.4667);     /* 22 → 29.3 */
}
/* The lesson's one-line lead, one step above the prose: the title step's size
   at reading weight and reading tracking. */
body.hts-studio.hts-studio.hts-studio .b4-lead{
  margin:var(--app-gap-s) 0 0;
  font-size:var(--b4-lead-size);
  line-height:var(--b4-lead-lh);
  font-weight:400;
  letter-spacing:normal;
  color:var(--app-ink-muted);
}
/* The two lines that are NOT teaching text — the lesson counter and the
   mastery disclaimer. Raised ONE step, not two. */
body.hts-studio.hts-studio.hts-studio .b4-meta{
  margin:6px 0 0;
  font-size:var(--app-size-body-s);
  line-height:var(--app-lh-body-s);
  color:var(--app-ink-faint);
}
body.hts-studio.hts-studio.hts-studio .b4-mastery .b4-meta{ color:var(--app-ink-muted); }

/* Heading.section: the title, and the figure on the right. Never tappable,
   never a plate — round 5 deleted the tinted band behind these words. */
body.hts-studio.hts-studio.hts-studio .b4-sec{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:var(--app-gap-m);
  margin-top:var(--app-gap-s);
}
body.hts-studio.hts-studio.hts-studio .b4-sec h2{
  margin:0;
  font-size:var(--app-size-title-l);
  line-height:var(--app-lh-title-l);
  letter-spacing:var(--app-track-title-l);
  font-weight:600;
  color:var(--app-ink);
}
body.hts-studio.hts-studio.hts-studio .b4-sec span{
  font-size:var(--app-size-caption);
  line-height:var(--app-lh-caption);
  color:var(--app-ink-muted);
}

/* The web's own back control, on the hook studio.js rewrites to the route the
   learner actually came from. */
body.hts-studio.hts-studio.hts-studio .b4-back{
  display:inline-flex;
  align-items:center;
  gap:var(--app-gap-xs);
  align-self:flex-start;
  min-height:var(--app-touch);
  font-size:var(--app-size-label);
  line-height:var(--app-lh-label);
  font-weight:600;
  color:var(--app-brand-ink);
  text-decoration:none;
}
body.hts-studio.hts-studio.hts-studio .b4-back .icon{
  width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;
}

/* ========================================================================== */
/* 1. THE PROGRESS ROW — a ROW, not a panel                                   */
/* ========================================================================== */
/* The two sibling hubs open with a count line over a bar, flat on the page,
   and this one opened with the same three facts raised onto a card: 52px of
   chrome and a stranded heading on a hub already three folds tall. The count
   moves into the label line the way the siblings state theirs, and every word
   of the assessment line below is kept. */
body.hts-studio.hts-studio.hts-studio .b4-prog{
  display:flex;
  flex-direction:column;
  gap:var(--app-gap-s);
}
body.hts-studio.hts-studio.hts-studio .b4-prog__label{
  font-size:var(--app-size-label);
  line-height:var(--app-lh-label);
  font-weight:600;
  color:var(--app-ink-muted);
}
body.hts-studio.hts-studio.hts-studio .b4-prog__note{
  margin-top:calc(6px - var(--app-gap-s));
  font-size:var(--app-size-caption);
  line-height:var(--app-lh-caption);
  color:var(--app-ink-muted);
}
/* Meter.bar: a 4px track at the DIVIDER token, filled with the track accent. */
body.hts-studio.hts-studio.hts-studio .b4-meter{
  display:block;
  height:4px;
  border-radius:var(--app-r-pill);
  background:var(--app-line);
  overflow:hidden;
}
body.hts-studio.hts-studio.hts-studio .b4-meter i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:var(--app-track-fluency);
}

/* ========================================================================== */
/* 2. THE ACTION CARD — the one "do this now" banner, WEARING its accent      */
/* ========================================================================== */
body.hts-studio.hts-studio.hts-studio .b4-action{
  display:flex;
  align-items:center;
  gap:var(--app-gap-m);
  min-height:var(--app-touch-large);
  padding:14px var(--app-gap-l);
  border:1px solid var(--app-line-strong);
  border-radius:var(--app-r-card);
  background:var(--app-wash-brand);
  box-shadow:var(--app-shadow-card);
  text-decoration:none;
  color:var(--app-ink);
}
/* The plain card rung, lifted OUT of the washed card — a tint-on-tint disc
   would not have cleared 3:1 for the glyph on it. */
body.hts-studio.hts-studio.hts-studio .b4-action__ic{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 44px;
  width:44px;height:44px;
  border-radius:var(--app-r-pill);
  background:var(--app-surface);
}
body.hts-studio.hts-studio.hts-studio .b4-action__ic .icon{
  width:21px;height:21px;fill:var(--app-brand);stroke:none;
}
body.hts-studio.hts-studio.hts-studio .b4-action__t{
  display:block;
  flex:1 1 auto;
  min-width:0;
}
/* The kicker is the hardest text on the card to read, so it takes the accent's
   BODY-TEXT twin and not the 3:1 graphic accent. */
body.hts-studio.hts-studio.hts-studio .b4-action__t small{
  display:block;
  font-size:var(--app-size-micro);
  line-height:var(--app-lh-micro);
  letter-spacing:var(--app-track-micro);
  font-weight:700;
  color:var(--app-brand-ink);
}
body.hts-studio.hts-studio.hts-studio .b4-action__t b{
  display:block;
  margin-top:3px;
  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 .b4-action__t i{
  display:block;
  margin-top:2px;
  font-style:normal;
  font-size:var(--app-size-caption);
  line-height:var(--app-lh-caption);
  color:var(--app-ink-muted);
}

/* ========================================================================== */
/* 3. THE NAV GROUP AND ITS ROWS                                              */
/* ========================================================================== */
/* ⛔ The BLOCK border is `lineStrong` and the internal dividers stay `line`.
   This is the single clearest statement of the split: the outside of the group
   is an affordance (everything in it goes somewhere), the lines inside it only
   separate. */
body.hts-studio.hts-studio.hts-studio .b4-ngroup{
  overflow:hidden;
  border:1px solid var(--app-line-strong);
  border-radius:var(--app-r-card);
  background:var(--app-surface);
}
body.hts-studio.hts-studio.hts-studio .b4-nrow{
  display:flex;
  align-items:center;
  gap:var(--app-gap-m);
  width:100%;
  min-height:var(--app-touch-large);
  padding:var(--app-gap-m) var(--app-gap-l);
  border:0;
  border-top:1px solid var(--app-line);
  background:transparent;
  font:inherit;
  text-align:left;
  text-decoration:none;
  color:var(--app-ink);
  cursor:pointer;
}
body.hts-studio.hts-studio.hts-studio .b4-nrow:first-child{ border-top:0; }
body.hts-studio.hts-studio.hts-studio .b4-nrow__t{
  display:block;
  flex:1 1 auto;
  min-width:0;
}
body.hts-studio.hts-studio.hts-studio .b4-nrow__t b{
  display:block;
  font-size:var(--app-size-title-m);
  line-height:var(--app-lh-title-m);
  font-weight:600;
  color:var(--app-ink);
}
/* One step quieter than a record line's, so a row that GOES SOMEWHERE reads
   title-first. `inkFaint` is still real text — held to 4.6:1 on every bed — so
   this is hierarchy, not a fade. */
body.hts-studio.hts-studio.hts-studio .b4-nrow__t small{
  display:block;
  margin-top:2px;
  font-size:var(--app-size-body-s);
  line-height:var(--app-lh-body-s);
  color:var(--app-ink-faint);
}
body.hts-studio.hts-studio.hts-studio .b4-nrow__n{
  flex:0 0 auto;
  font-size:var(--app-size-caption);
  line-height:var(--app-lh-caption);
  color:var(--app-ink-faint);
  white-space:nowrap;
}
/* Full-strength ink. The muted chevron was the whole problem. */
body.hts-studio.hts-studio.hts-studio .b4-nrow__go{
  display:inline-flex;
  flex:0 0 auto;
}
body.hts-studio.hts-studio.hts-studio .b4-nrow__go .icon{
  width:18px;height:18px;stroke:var(--app-ink);fill:none;stroke-width:2;
}
/* _Disc: the tint comes from the palette, not from a pair of alphas chosen
   here. A disc only ever rides in a row's leading slot, and a group is filled
   with `surface`, which is wash()'s default bed. */
body.hts-studio.hts-studio.hts-studio .b4-disc{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 36px;
  width:36px;height:36px;
  border-radius:var(--app-r-pill);
}
body.hts-studio.hts-studio.hts-studio .b4-disc .icon{
  width:18px;height:18px;fill:none;stroke-width:2;
}
body.hts-studio.hts-studio.hts-studio .b4-disc--fluency{ background:var(--app-wash-fluency); }
body.hts-studio.hts-studio.hts-studio .b4-disc--fluency .icon{ stroke:var(--app-track-fluency); }
body.hts-studio.hts-studio.hts-studio .b4-disc--practice{
  background:color-mix(in srgb,var(--app-track-practice) 14%,var(--app-surface));
}
body.hts-studio.hts-studio.hts-studio .b4-disc--practice .icon{ stroke:var(--app-track-practice); }
/* The zone drawing: its box is RESERVED before the count and the chevron, it
   is never painted behind the title, and it is art — never tinted, never
   faded, never the tap target. Below the row's two-line width it is DROPPED
   rather than let "Nuance & social context" be cut: decoration yields first. */
body.hts-studio.hts-studio.hts-studio .st-appart--zone{
  flex:0 0 32px;
  width:32px;height:27px;
}
@media (max-width:400px){
  body.hts-studio.hts-studio.hts-studio .st-appart--zone{ display:none; }
}

/* ========================================================================== */
/* 4. THE DEMO — three readings of one thought                                */
/* ========================================================================== */
/* An AppPanel: flat, sunken, and it cannot take a tap. The tiles inside it
   can, which is why the tiles lift to the card rung and the bed does not. */
body.hts-studio.hts-studio.hts-studio .b4-demo{
  display:flex;
  flex-direction:column;
  gap:var(--app-gap-m);
  padding:var(--app-gap-l);
  border-radius:var(--app-r-card);
  background:var(--app-surface-sunken);
}
body.hts-studio.hts-studio.hts-studio .b4-demo__top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:var(--app-gap-m);
}
body.hts-studio.hts-studio.hts-studio .b4-demo__top small{
  font-size:var(--app-size-micro);
  line-height:var(--app-lh-micro);
  letter-spacing:var(--app-track-micro);
  font-weight:700;
  color:var(--app-track-fluency);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.hts-studio.hts-studio.hts-studio .b4-demo__top span{
  flex:0 0 auto;
  font-size:var(--app-size-micro);
  line-height:var(--app-lh-micro);
  letter-spacing:var(--app-track-micro);
  font-weight:600;
  color:var(--app-ink-muted);
}
/* ⛔ NOTHING MOVES. All three readings are laid out in ONE grid cell and only
   the chosen one is painted, so the box is the tallest of the three in every
   state — measured on the phone, choosing "Already done" took the wrap from
   three rows to two and the panel lost 60px under the finger that chose it. */
body.hts-studio.hts-studio.hts-studio .b4-demo__stack{ display:grid; }
body.hts-studio.hts-studio.hts-studio .b4-demo__sent{
  grid-area:1 / 1;
  display:flex;
  flex-wrap:wrap;
  gap:var(--app-gap-s);
  visibility:hidden;
}
body.hts-studio.hts-studio.hts-studio .b4-demo__sent.is-on{ visibility:visible; }
body.hts-studio.hts-studio.hts-studio .b4-demo__sent span{
  padding:4px 10px;
  border:1px solid var(--app-line);
  border-radius:var(--app-r-tile);
  background:var(--app-surface-sunken);
  font-family:var(--app-font-thai);
  font-size:var(--app-size-thai-m);
  line-height:var(--app-lh-thai-m);
  color:var(--app-ink);
}
/* The panel is sunken, so the bed the tint is mixed over is the SUNKEN rung,
   not the card. */
body.hts-studio.hts-studio.hts-studio .b4-demo__sent span.is-changed{
  border-color:var(--app-track-fluency);
  background:color-mix(in srgb,var(--app-track-fluency) 14%,var(--app-surface-sunken));
  color:var(--app-track-fluency);
}
/* ⛔ NOTHING MOVES, twice more: the gloss and the explanation both changed with
   the chosen reading, and both were plain text, so a reading whose sentence or
   note ran to one more line grew the panel. Both hold the box of the LONGEST
   of their three (or four) strings now. */
body.hts-studio.hts-studio.hts-studio .b4-steady{
  display:grid;
  margin:0;
}
body.hts-studio.hts-studio.hts-studio .b4-steady > span{
  grid-area:1 / 1;
  visibility:hidden;
}
body.hts-studio.hts-studio.hts-studio .b4-steady > span.is-on{ visibility:visible; }
body.hts-studio.hts-studio.hts-studio .b4-demo__gloss > span{
  font-size:var(--app-size-body);
  line-height:var(--app-lh-body);
  color:var(--app-ink);
}
body.hts-studio.hts-studio.hts-studio .b4-demo__why > span{
  font-size:var(--app-size-body);
  line-height:var(--app-lh-body);
  color:var(--app-ink-muted);
}
/* ChoiceTile.row: evenly divided, and every tile the height of the tallest —
   the labels are two words each, so one line cut all three on a phone and a
   demo panel may not cut the meaning of the thing it is demonstrating. */
body.hts-studio.hts-studio.hts-studio .b4-tiles{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:var(--app-gap-s);
}
/* The idle tile lifts to the CARD rung. It sat in the well, which made a row
   of live, tappable tiles read as a recessed panel — and is why choosing one
   barely showed. ALWAYS a border, so the box is the same size in both states
   and choosing a tile cannot nudge the row. */
body.hts-studio.hts-studio.hts-studio .b4-tile{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  min-height:62px;
  padding:6px;
  border:1px solid var(--app-line-strong);
  border-radius:var(--app-r-tile);
  background:var(--app-surface);
  font:inherit;
  cursor:pointer;
}
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 .b4-tile small{
  font-size:var(--app-size-caption);
  line-height:var(--app-lh-caption);
  text-align:center;
  color:var(--app-ink-muted);
}
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 .b4-tile.is-on b,
body.hts-studio.hts-studio.hts-studio .b4-tile.is-on small{ color:var(--app-brand-ink); }
body.hts-studio.hts-studio.hts-studio .b4-demo__play{
  display:flex;
  align-items:center;
  gap:var(--app-gap-s);
  font-size:var(--app-size-label);
  line-height:var(--app-lh-label);
  font-weight:600;
  color:var(--app-ink-muted);
}

/* ========================================================================== */
/* 5. THE AUDIO TRANSPORT — content_components.dart `AudioTransport.row`      */
/* ========================================================================== */
/* The disc is painted at every size and in EVERY state: a wash fill, a ring in
   the accent, and the glyph in the accent. `over:` is the bed it is actually
   painted on — a wash mixed over the wrong bed is how every transport in the
   app came to compute at 1.06:1 against the panel under it. */
body.hts-studio.hts-studio.hts-studio .b4-play{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 var(--app-touch);
  width:var(--app-touch);
  height:var(--app-touch);
  padding:0;
  border:1px solid var(--app-brand);
  border-radius:var(--app-r-pill);
  background:color-mix(in srgb,var(--app-brand) 14%,var(--app-canvas));
  cursor:pointer;
}
body.hts-studio.hts-studio.hts-studio .b4-play .icon{
  width:18px;height:18px;fill:var(--app-brand);stroke:none;
}
body.hts-studio.hts-studio.hts-studio .b4-play--row{
  background:color-mix(in srgb,var(--app-brand) 14%,var(--app-surface-sunken));
}
/* This one is on the warm `paper` bed and now says so. */
body.hts-studio.hts-studio.hts-studio .b4-play--paper{
  background:color-mix(in srgb,var(--app-brand) 14%,var(--app-paper));
}
body.hts-studio.hts-studio.hts-studio .b4-play.audio-active{
  background:var(--app-brand);
}
body.hts-studio.hts-studio.hts-studio .b4-play.audio-active .icon{ fill:var(--app-on-accent); }

/* ========================================================================== */
/* 6. THE LESSON INDEX — the field, the chips, the count, the rows            */
/* ========================================================================== */
body.hts-studio.hts-studio.hts-studio .b4-field{
  display:flex;
  align-items:center;
  gap:var(--app-gap-s);
  min-height:var(--app-touch-large);
  padding:0 var(--app-gap-m);
  border:1px solid var(--app-line-strong);
  border-radius:var(--app-r-control);
  background:var(--app-surface-sunken);
}
body.hts-studio.hts-studio.hts-studio .b4-field__ic .icon{
  width:20px;height:20px;stroke:var(--app-ink-faint);fill:none;stroke-width:2;
}
body.hts-studio.hts-studio.hts-studio .b4-field input{
  flex:1 1 auto;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  font-family:inherit;
  font-size:var(--app-size-title-m);
  line-height:var(--app-lh-title-m);
  color:var(--app-ink);
}
body.hts-studio.hts-studio.hts-studio .b4-field input::placeholder{ color:var(--app-ink-faint); }
body.hts-studio.hts-studio.hts-studio .b4-field input::-webkit-search-cancel-button{ -webkit-appearance:none; }

/* FilterBar + AppChip.control. The rail scrolls on a phone the way the app's
   does; on a wide window it wraps, which is the web idiom for the same row. */
body.hts-studio.hts-studio.hts-studio .b4-chips{
  display:flex;
  gap:var(--app-gap-s);
  overflow-x:auto;
  scrollbar-width:none;
  padding-bottom:2px;
}
body.hts-studio.hts-studio.hts-studio .b4-chips::-webkit-scrollbar{ display:none; }
body.hts-studio.hts-studio.hts-studio .b4-chip{
  flex:0 0 auto;
  min-height:var(--app-touch);
  padding:0 var(--app-gap-m);
  border:1px solid var(--app-line-strong);
  border-radius:var(--app-r-pill);
  background:var(--app-surface);
  font:inherit;
  font-size:var(--app-size-label);
  line-height:var(--app-lh-label);
  font-weight:600;
  color:var(--app-ink-muted);
  white-space:nowrap;
  cursor:pointer;
}
body.hts-studio.hts-studio.hts-studio .b4-chip.is-on{
  border-color:var(--app-brand);
  background:var(--app-wash-brand);
  color:var(--app-brand-ink);
}
@media (min-width:760px){
  body.hts-studio.hts-studio.hts-studio .b4-chips{ flex-wrap:wrap; overflow:visible; }
}
body.hts-studio.hts-studio.hts-studio .b4-count{
  margin:0;
  font-size:var(--app-size-caption);
  line-height:var(--app-lh-caption);
  color:var(--app-ink-muted);
}
/* The lesson list IS the page and nothing is pinned under it: rows on the
   canvas, separated by a DIVIDER, with no card around them. */
body.hts-studio.hts-studio.hts-studio .b4-rows{ display:block; }
body.hts-studio.hts-studio.hts-studio .b4-lrow{
  display:flex;
  align-items:center;
  gap:var(--app-gap-m);
  min-height:var(--app-touch-large);
  padding:var(--app-gap-m) 0;
  border-bottom:1px solid var(--app-line);
  text-decoration:none;
  color:var(--app-ink);
}
body.hts-studio.hts-studio.hts-studio .b4-lrow.is-last{ border-bottom:0; }
body.hts-studio.hts-studio.hts-studio .b4-lrow__t{
  display:block;
  flex:1 1 auto;
  min-width:0;
}
body.hts-studio.hts-studio.hts-studio .b4-lrow__t b{
  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 .b4-lrow__t small{
  display:block;
  margin-top:2px;
  font-size:var(--app-size-caption);
  line-height:var(--app-lh-caption);
  color:var(--app-ink-faint);
}
/* The row that stands in for the window being built as the list is scrolled. */
body.hts-studio.hts-studio.hts-studio .b4-lrow--more{
  display:block;
  border-bottom:0;
  padding:var(--app-gap-l) 0;
}
body.hts-studio.hts-studio.hts-studio .b4-skel{
  display:block;
  border-radius:var(--app-r-tile);
  background:var(--app-line);
}
body.hts-studio.hts-studio.hts-studio .b4-skel--a{ width:200px;height:17px; }
body.hts-studio.hts-studio.hts-studio .b4-skel--b{ width:130px;height:13px;margin-top:8px; }

/* StatusBlock(empty): ⛔ NOT content that scrolls — two controls in the middle
   of the page, with the title, the message and the action the app names. */
body.hts-studio.hts-studio.hts-studio .b4-empty{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:var(--app-gap-s);
  padding:var(--app-gap-huge) var(--app-gap-l);
  text-align:center;
}
body.hts-studio.hts-studio.hts-studio .b4-empty b{
  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 .b4-empty small{
  font-size:var(--app-size-body);
  line-height:var(--app-lh-body);
  color:var(--app-ink-muted);
}
body.hts-studio.hts-studio.hts-studio .b4-empty .btn{ margin-top:var(--app-gap-s); }

/* ========================================================================== */
/* 7. THE LESSON — notices, the structure, the example, the checkpoint        */
/* ========================================================================== */
/* AppPanel: flat, sunken, cannot take a tap — so it carries no border, which
   is the law that keeps a border meaning "you can touch this". */
body.hts-studio.hts-studio.hts-studio .b4-panel{
  padding:var(--app-gap-l);
  border-radius:var(--app-r-card);
  background:var(--app-surface-sunken);
}
/* The one warm bed in the system. ⛔ In dark it is NAVY, not brown (owner,
   2026-09-22) — the token holds that, and nothing here re-states its value. */
body.hts-studio.hts-studio.hts-studio .b4-panel--paper{ background:var(--app-paper); }

body.hts-studio.hts-studio.hts-studio .b4-notice p{
  margin:var(--app-gap-s) 0 0;
  font-size:var(--b4-prose-size);
  line-height:var(--b4-prose-lh);
  font-weight:400;
  color:var(--app-ink);
}
/* One card per notice, with air on four sides — a run of prose separated by
   1px rules is the wall the owner named. */
body.hts-studio.hts-studio.hts-studio .b4-notice + .b4-notice{ margin-top:var(--app-gap-m); }

body.hts-studio.hts-studio.hts-studio .b4-formula{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:var(--app-gap-s);
}
/* The formula is the one line of the lesson a learner comes back to, so its
   parts are set at the lesson's READING step, not at the list-row step they
   shared with everything else. */
body.hts-studio.hts-studio.hts-studio .b4-formula__p{
  padding:6px 10px;
  border:1px solid var(--app-line);
  border-radius:var(--app-r-tile);
  background:var(--app-surface);
  font-size:var(--b4-prose-size);
  line-height:var(--b4-prose-lh);
  color:var(--app-ink);
}
body.hts-studio.hts-studio.hts-studio .b4-formula__j{
  font-style:normal;
  font-size:var(--app-size-title-l);
  line-height:var(--app-lh-title-l);
  color:var(--app-ink-muted);
}
body.hts-studio.hts-studio.hts-studio .b4-structure__note{
  margin:var(--app-gap-l) 0 0;
  padding-top:var(--app-gap-m);
  border-top:1px solid var(--app-paper-line);
  font-size:var(--app-size-body);
  line-height:var(--app-lh-body);
  color:var(--app-ink-muted);
}

body.hts-studio.hts-studio.hts-studio .b4-example__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--app-gap-m);
}
body.hts-studio.hts-studio.hts-studio .b4-example__top small{
  font-size:var(--app-size-micro);
  line-height:var(--app-lh-micro);
  letter-spacing:var(--app-track-micro);
  font-weight:700;
  color:var(--app-ink-muted);
}
body.hts-studio.hts-studio.hts-studio .b4-example__thai{
  margin:var(--app-gap-m) 0 0;
  font-family:var(--app-font-thai);
  font-size:var(--app-size-thai-l);
  line-height:var(--app-lh-thai-l);
  color:var(--app-ink);
}
body.hts-studio.hts-studio.hts-studio .b4-example__en{
  margin:6px 0 0;
  font-size:var(--b4-prose-size);
  line-height:var(--b4-prose-lh);
  color:var(--app-ink);
}
body.hts-studio.hts-studio.hts-studio .b4-heard{
  font-style:normal;
  font-size:var(--app-size-caption);
  line-height:var(--app-lh-caption);
  color:var(--app-ink-muted);
}

/* The checkpoint's question is set like the section headings around it. */
body.hts-studio.hts-studio.hts-studio .b4-check__q{
  margin:0;
  font-size:var(--app-size-title-l);
  line-height:var(--app-lh-title-l);
  letter-spacing:var(--app-track-title-l);
  font-weight:600;
  color:var(--app-ink);
}
body.hts-studio.hts-studio.hts-studio .b4-opts{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--app-gap-s);
  margin-top:var(--app-gap-l);
}
body.hts-studio.hts-studio.hts-studio .b4-opts[data-cols="1"]{ grid-template-columns:minmax(0,1fr); }
/* OptionTile. ⛔ A state is a CLASS on the element that is already there —
   never an added badge, icon or caption — and every state is the same rect. */
body.hts-studio.hts-studio.hts-studio .b4-opt{
  min-height:var(--app-touch-large);
  padding:var(--app-gap-m);
  border:1px solid var(--app-line-strong);
  border-radius:var(--app-r-control);
  background:var(--app-surface);
  font:inherit;
  font-size:var(--app-size-title-m);
  line-height:var(--app-lh-title-m);
  font-weight:600;
  text-align:left;
  color:var(--app-ink);
  cursor:pointer;
}
body.hts-studio.hts-studio.hts-studio .b4-opt.is-right{
  border-color:var(--app-positive);
  background:var(--app-wash-positive);
  color:var(--app-positive-ink);
}
body.hts-studio.hts-studio.hts-studio .b4-opt.is-wrong{
  border-color:var(--app-negative);
  background:var(--app-wash-negative);
  color:var(--app-negative-ink);
}
/* The verdict carries the lesson's explanation: it is TEACHING TEXT, not a
   caption, and it was the smallest prose on the page. */
body.hts-studio.hts-studio.hts-studio .b4-check__v{ margin-top:var(--app-gap-m); }
body.hts-studio.hts-studio.hts-studio .b4-check__v > span{
  font-size:var(--app-size-body);
  line-height:var(--app-lh-body);
  color:var(--app-ink-muted);
}

body.hts-studio.hts-studio.hts-studio .b4-mastery{
  display:flex;
  flex-direction:column;
  gap:var(--app-gap-s);
  margin-top:var(--app-gap-s);
}
body.hts-studio.hts-studio.hts-studio .b4-master{ align-self:stretch; }
/* The check glyph is drawn in both states and REVEALED by the class the
   shipped toggle already adds — nothing is injected when the button is
   pressed. */
body.hts-studio.hts-studio.hts-studio .b4-master .ic{ display:none; }
body.hts-studio.hts-studio.hts-studio .b4-master.is-on .ic{ display:inline-flex; }
body.hts-studio.hts-studio.hts-studio .b4-master.is-on{
  background:var(--app-brand);
  border-color:var(--app-brand);
  color:var(--app-on-accent);
}
body.hts-studio.hts-studio.hts-studio .b4-master.is-on .icon{ stroke:var(--app-on-accent); }

/* LessonNext: the section rhythm and nothing else — a block in the column like
   every other block, and by contract the LAST one. */
body.hts-studio.hts-studio.hts-studio .b4-next{ margin-top:var(--app-gap-section); }
body.hts-studio.hts-studio.hts-studio .b4-next .btn{
  display:flex;
  width:100%;
  min-height:var(--app-touch-large);
}

/* ========================================================================== */
/* 8. THE ZONE SHEET                                                          */
/* ========================================================================== */
/* One zone's topics, in the web's own AppFloat. The header is the sheet header
   the shell already paints; what this adds is the group inside it. */
body.hts-studio.hts-studio.hts-studio #device-sheet .b4-zsheet{
  padding:var(--app-gap-s) var(--app-gap-l) var(--app-gap-l);
}
body.hts-studio.hts-studio.hts-studio #device-sheet .b4-zsheet .b4-ngroup{
  background:var(--app-surface);
}

/* ========================================================================== */
/* 9. WIDE WINDOWS                                                            */
/* ========================================================================== */
/* A web idiom, not the app's fold: on a mouse-width window the reading column
   stays a reading column and the demo sits beside nothing — the app's ORDER is
   what transfers, so the blocks keep their sequence and only their measure
   changes. */
@media (min-width:1024px){
  body.hts-studio.hts-studio.hts-studio .b4-lesson .b4-panel,
  body.hts-studio.hts-studio.hts-studio .b4-lesson .b4-lead,
  body.hts-studio.hts-studio.hts-studio .b4-lesson .b4-sec{ max-width:760px; }
  body.hts-studio.hts-studio.hts-studio .b4-track .b4-demo,
  body.hts-studio.hts-studio.hts-studio .b4-track .b4-action{ max-width:760px; }
}
