/* ============================================================================
   studio_app_b3.css — BAND B3 of the app→web transfer, 2026-09-23: EXPLORE.

   Markup: assets/js/studio/studio_app_b3.js. Sources, read rather than
   remembered:
     hta-mobile\app\lib\features\explore\explore_hub.dart      (plate + segments)
     …\explore\words_segment.dart · sentences_segment.dart ·
       scenarios_segment.dart                                  (the three tabs)
     …\features\library\shell_pages.dart                       (the search page)
     …\design\system\content_components.dart                   (LookupCard
       L1144-1455 · WordRow · WordCard · MediaCard · AudioTransport)
     output\design\WEB_TRANSFER_2026-09-23.md   §A tokens · §B elements · §E
     the owner's captures: explore_words · explore_words_search ·
       explore_sentences · explore_scenarios · search_empty · search_results

   ⛔ 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, LINKED
      AFTER it (and after b1 / b2) in app.html, so an equal-specificity
      declaration here wins on order.

   ⛔ COLOUR: `--app-*` ONLY, NEVER A NEW HEX. Where the palette has no token
      for a role the value is a `color-mix` of tokens that exist — the same
      formula palette.dart's own wash() is (alphaBlend of an accent over a bed).
      The two grid beds are the app's measured pair: Categories on the Words
      track, Collections on the Practice track, Sets on Fluency.

   ⛔ THE NIGHT SURFACE IS FIXED IN BOTH THEMES (§A.6). The plate and the lookup
      card are `--app-night`, and their ink is `--app-on-night` — so neither has
      a dark cut, and neither should acquire one.

   ⛔ AFFORDANCE BORDER (§A.2): a box you can touch takes `--app-line-strong`; a
      divider inside a group takes `--app-line`. The rows in a panel are
      divided, not boxed.
   ============================================================================ */

/* ========================================================================== */
/* 0. THE PAGE                                                                */
/* ========================================================================== */
body.hts-studio.hts-studio.hts-studio .b3-page{
  display:flex;
  flex-direction:column;
  gap:var(--app-gap-l);
}
body.hts-studio.hts-studio.hts-studio .b3-top{
  display:flex;
  flex-direction:column;
  gap:var(--app-gap-m);
}

/* --------------------------------------------------- the word-map plate --- */
/* explore_hub.dart `_ConstellationCard`: the map opens the tab. The night bed
   is fixed in both themes; the one affordance is the disc in the corner, and
   the app's own note says why it is bordered — `onNightMuted` on `nightLift`
   measures 5.27:1 where a white wash did not clear 2. */
body.hts-studio.hts-studio.hts-studio .b3-plate{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:var(--app-gap-l);
  min-height:136px;
  padding:var(--app-gap-l);
  border-radius:var(--app-r-feature);
  background:var(--app-night);
  color:var(--app-on-night);
  text-decoration:none;
  box-shadow:var(--app-shadow-card);
  position:relative;
  isolation:isolate;
}
/* Owner, 2026-09-24: the app's graph still (explore_hub.dart
   `_ConstellationPainter` + the card's RadialGradient), painted by
   studio_app_b3.js paintSky() on a canvas that fills the plate UNDER the text
   and the disc. Decoration only — never a target. The flex boxes above are
   untouched; the two children are merely lifted over it, so nothing moves. */
body.hts-studio.hts-studio.hts-studio .b3-plate__sky{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  max-width:none;
  border-radius:inherit;
  pointer-events:none;
  z-index:0;
}
body.hts-studio.hts-studio.hts-studio .b3-plate__t,
body.hts-studio.hts-studio.hts-studio .b3-plate__go{ position:relative; z-index:1; }
body.hts-studio.hts-studio.hts-studio .b3-plate__t{ display:block; min-width:0; }
body.hts-studio.hts-studio.hts-studio .b3-plate__t b{
  display:block;
  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-on-night);
}
body.hts-studio.hts-studio.hts-studio .b3-plate__t small{
  display:block;
  margin-top:2px;
  font-size:var(--app-size-caption);
  line-height:var(--app-lh-caption);
  color:var(--app-on-night-muted);
}
body.hts-studio.hts-studio.hts-studio .b3-plate__go{
  flex:0 0 var(--app-touch);
  width:var(--app-touch);
  height:var(--app-touch);
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:var(--app-r-pill);
  background:var(--app-night-lift);
  border:1px solid var(--app-on-night-muted);
}
body.hts-studio.hts-studio.hts-studio .b3-plate__go .icon{
  width:19px;height:19px;stroke:var(--app-on-night);fill:none;
}

/* ------------------------------------------------------- the segment row --- */
/* components.dart `Segmented`: one track, the chosen cell lifted onto the
   floating rung with brand ink. A state is a class on the cell that is already
   there — nothing is injected on selection and no box moves. */
body.hts-studio.hts-studio.hts-studio .b3-seg{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:1fr;
  gap:var(--app-gap-xs);
  padding:var(--app-gap-xs);
  border-radius:var(--app-r-control);
  background:var(--app-surface-sunken);
}
body.hts-studio.hts-studio.hts-studio .b3-seg__i{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:calc(var(--app-touch) - 4px);
  padding:0 var(--app-gap-s);
  border:1px solid transparent;
  border-radius:calc(var(--app-r-control) - 2px);
  font-size:var(--app-size-title-m);
  line-height:var(--app-lh-title-m);
  font-weight:600;
  color:var(--app-ink-muted);
  text-decoration:none;
  text-align:center;
}
body.hts-studio.hts-studio.hts-studio .b3-seg__i.is-on{
  background:var(--app-surface-raised);
  border-color:var(--app-line-strong);
  color:var(--app-brand-ink);
  box-shadow:var(--app-shadow-card);
}

/* ========================================================================== */
/* 1. THE FIELD AND ITS ANCHORED PANEL                                        */
/* ========================================================================== */
/* components.dart `AppField.searchPanel`: the answer hangs UNDER the field,
   over the page, and the page does not move for it — the whole point of the
   owner's second order on this screen. */
body.hts-studio.hts-studio.hts-studio .b3-field{ position:relative; }
body.hts-studio.hts-studio.hts-studio .b3-field__box{
  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 .b3-field__ic .icon{
  width:20px;height:20px;stroke:var(--app-ink-faint);fill:none;
}
body.hts-studio.hts-studio.hts-studio .b3-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 .b3-field input::placeholder{ color:var(--app-ink-faint); }
body.hts-studio.hts-studio.hts-studio .b3-field input::-webkit-search-cancel-button{ -webkit-appearance:none; }

body.hts-studio.hts-studio.hts-studio .b3-panel{
  position:absolute;
  left:0;right:0;
  top:calc(100% + var(--app-gap-xs));
  z-index:40;
  max-height:min(56vh,420px);
  overflow:auto;
  padding:var(--app-gap-xs) var(--app-gap-m);
  border:1px solid var(--app-line-strong);
  border-radius:var(--app-r-card);
  background:var(--app-surface-raised);
  box-shadow:var(--app-shadow-float);
}
body.hts-studio.hts-studio.hts-studio .b3-panel[hidden]{ display:none; }
body.hts-studio.hts-studio.hts-studio .b3-panel__line,
body.hts-studio.hts-studio.hts-studio .b3-sr__line{
  display:flex;
  align-items:center;
  min-height:var(--app-touch);
  font-size:var(--app-size-body-s);
  line-height:var(--app-lh-body-s);
  color:var(--app-ink-muted);
}

/* ========================================================================== */
/* 2. THE WORD ROW — content_components.dart `WordRow`                        */
/* ========================================================================== */
body.hts-studio.hts-studio.hts-studio .b3-rows{ display:block; }
body.hts-studio.hts-studio.hts-studio .b3-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  align-items:center;
  gap:var(--app-gap-m);
  min-height:calc(var(--app-touch) + var(--app-gap-m));
  padding:var(--app-gap-s) 0;
  /* a DIVIDER inside a group is `line`, never the affordance border */
  border-bottom:1px solid var(--app-line);
}
body.hts-studio.hts-studio.hts-studio .b3-row:last-child{ border-bottom:0; }
body.hts-studio.hts-studio.hts-studio [data-b3-word]{ cursor:pointer; }
/* AudioTransport.row: the outlined disc — a wash bed, a brand rim, a brand
   glyph. The wash is mixed over the bed it is really painted on (the app's own
   correction of 2026-09-21: the same disc measures 1.21:1 on `surface` and
   1.07:1 on `canvas`). */
body.hts-studio.hts-studio.hts-studio .b3-row__play{
  flex:0 0 auto;
  width:var(--app-touch);
  height:var(--app-touch);
  display:flex;
  align-items:center;
  justify-content:center;
  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-surface-raised));
  cursor:pointer;
}
body.hts-studio.hts-studio.hts-studio .b3-row__play .icon{
  width:18px;height:18px;fill:var(--app-brand);stroke:var(--app-brand);
}
body.hts-studio.hts-studio.hts-studio .b3-row__t{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:var(--app-gap-m);
  min-width:0;
  text-decoration:none;
  color:var(--app-ink);
}
body.hts-studio.hts-studio.hts-studio .b3-row__t .thai{
  font-family:var(--app-font-thai);
  font-size:var(--app-size-thai-s);
  line-height:var(--app-lh-thai-s);
  color:var(--app-ink);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.hts-studio.hts-studio.hts-studio .b3-row__g{
  flex:0 1 auto;
  min-width:0;
  text-align:right;
  font-size:var(--app-size-body);
  line-height:var(--app-lh-body);
  color:var(--app-ink-muted);
}
/* SaveHeart: production's own [data-fav] control, only sized here. */
body.hts-studio.hts-studio.hts-studio .b3-heart{
  width:var(--app-touch);
  height:var(--app-touch);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:0;
  background:none;
  font-size:19px;
  line-height:1;
  color:var(--app-ink-faint);
  cursor:pointer;
}
body.hts-studio.hts-studio.hts-studio .b3-heart.is-on{ color:var(--app-negative); }
/* The word-map chip: the app's tinted square beside a word row. */
body.hts-studio.hts-studio.hts-studio .b3-row__map{
  width:var(--app-touch);
  height:var(--app-touch);
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:var(--app-r-tile);
  background:var(--app-surface-tint);
}
body.hts-studio.hts-studio.hts-studio .b3-row__map .icon{
  width:20px;height:20px;stroke:var(--app-brand-ink);fill:none;
}

/* ========================================================================== */
/* 3. THE LOOKUP CARD — content_components.dart `LookupCard.word`             */
/* ========================================================================== */
/* The night bed in both themes, and every variable line in a slot that is the
   same height for every record it can hold — so choosing a word replaces the
   CONTENTS and the two headings below it do not move. */
body.hts-studio.hts-studio.hts-studio .b3-look{
  display:flex;
  flex-direction:column;
  padding:var(--app-gap-l);
  border-radius:var(--app-r-feature);
  background:var(--app-night);
  color:var(--app-on-night);
}
body.hts-studio.hts-studio.hts-studio .b3-look__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--app-gap-m);
  min-height:var(--app-touch);
}
body.hts-studio.hts-studio.hts-studio .b3-look__eye{
  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-on-night-muted);
}
/* the heart on the fixed night bed takes fixed ink: `negative`'s light cut
   measures 2.45:1 here, which is a dark red heart on dark navy */
body.hts-studio.hts-studio.hts-studio .b3-look .b3-heart{ color:var(--app-on-night-muted); }
body.hts-studio.hts-studio.hts-studio .b3-look .b3-heart.is-on{ color:var(--app-night-negative); }
body.hts-studio.hts-studio.hts-studio .b3-look__face{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--app-gap-m);
  margin-top:var(--app-gap-m);
}
body.hts-studio.hts-studio.hts-studio .b3-look__thai{
  min-width:0;
  font-family:var(--app-font-thai);
  font-size:var(--app-size-thai-xl);
  line-height:var(--app-lh-thai-xl);
  color:var(--app-on-night);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
/* AudioTransport.hero: a FILLED brand disc with the on-accent glyph. */
body.hts-studio.hts-studio.hts-studio .b3-look__play{
  flex:0 0 64px;
  width:64px;height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:0;
  border-radius:var(--app-r-pill);
  background:var(--app-brand);
  cursor:pointer;
}
body.hts-studio.hts-studio.hts-studio .b3-look__play .icon{
  width:26px;height:26px;fill:var(--app-on-accent);stroke:var(--app-on-accent);
}
body.hts-studio.hts-studio.hts-studio .b3-look__gloss{
  margin:var(--app-gap-s) 0 0;
  min-height:var(--app-lh-title-m);
  font-size:var(--app-size-title-m);
  line-height:var(--app-lh-title-m);
  font-weight:600;
  color:var(--app-on-night);
}
body.hts-studio.hts-studio.hts-studio .b3-look__chips{
  display:flex;
  flex-wrap:nowrap;
  gap:var(--app-gap-s);
  margin-top:var(--app-gap-m);
  /* one chip's height, whether or not the second chip has landed */
  min-height:calc(var(--app-lh-caption) + 10px);
}
body.hts-studio.hts-studio.hts-studio .b3-chip{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  padding:5px 9px;
  border-radius:var(--app-r-tile);
  background:var(--app-night-lift);
  font-size:var(--app-size-caption);
  line-height:var(--app-lh-caption);
  color:var(--app-on-night);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
/* The one way onward — laid out whether or not it is live, so a record without
   a breakdown does not shorten the card. */
body.hts-studio.hts-studio.hts-studio .b3-look__go{
  display:inline-flex;
  align-items:center;
  gap:var(--app-gap-s);
  align-self:flex-start;
  min-height:var(--app-touch);
  margin-top:var(--app-gap-l);
  padding:0;
  border:0;
  background:none;
  font-family:inherit;
  font-size:var(--app-size-label);
  line-height:var(--app-lh-label);
  font-weight:600;
  color:var(--app-on-night);
  cursor:pointer;
}
body.hts-studio.hts-studio.hts-studio .b3-look__go .icon{
  width:15px;height:15px;stroke:var(--app-on-night);fill:none;
}

/* ========================================================================== */
/* 4. SECTION HEADINGS, GROUP TILES                                           */
/* ========================================================================== */
body.hts-studio.hts-studio.hts-studio .b3-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 .b3-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 .b3-sec span{
  font-size:var(--app-size-caption);
  line-height:var(--app-lh-caption);
  color:var(--app-ink-muted);
}

body.hts-studio.hts-studio.hts-studio .b3-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:var(--app-gap-m);
  /* every tile in a row is the tallest tile's height — the app's IntrinsicHeight
     grid, expressed the way CSS expresses it */
  grid-auto-rows:1fr;
}
/* WordCard, the SET variant: title, meta pinned to the bottom, the group's own
   drawing in the bottom corner. No example word, no glyph, no sub line. */
body.hts-studio.hts-studio.hts-studio .b3-tile{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto 1fr auto;
  gap:var(--app-gap-s);
  min-height:120px;
  padding:var(--app-gap-m);
  border:1px solid var(--app-line-strong);
  border-radius:var(--app-r-card);
  box-shadow:var(--app-shadow-card);
  text-decoration:none;
  color:var(--app-ink);
}
body.hts-studio.hts-studio.hts-studio .b3-tile b{
  grid-column:1/-1;grid-row:1;
  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 .b3-tile small{
  grid-column:1;grid-row:3;
  align-self:end;
  font-size:var(--app-size-caption);
  line-height:var(--app-lh-caption);
  color:var(--app-ink-muted);
}
body.hts-studio.hts-studio.hts-studio .st-appart--tile{
  grid-column:2;grid-row:3;
  align-self:end;
  width:48px;height:40px;
}
/* ⛔ ONE ACCENT PER GRID, and the two beds are the app's measured pair. */
body.hts-studio.hts-studio.hts-studio .b3-tile--cat{ background:var(--app-wash-words); }
body.hts-studio.hts-studio.hts-studio .b3-tile--col{
  background:color-mix(in srgb,var(--app-track-practice) 14%,var(--app-surface));
}
body.hts-studio.hts-studio.hts-studio .b3-tile--set{ background:var(--app-wash-fluency); }

/* ------------------------------------------------------------- nav rows --- */
/* components.dart `NavRow` inside a `NavGroup`: a lone row is a line of text
   over a hairline — inside its group it is a block. */
body.hts-studio.hts-studio.hts-studio .b3-nav,
body.hts-studio.hts-studio.hts-studio .b3-mode{
  position:relative;
  display:flex;
  align-items:center;
  gap:var(--app-gap-m);
  min-height:var(--app-touch-large);
  padding:var(--app-gap-m);
  border:1px solid var(--app-line-strong);
  border-radius:var(--app-r-card);
  background:var(--app-surface);
  box-shadow:var(--app-shadow-card);
  text-decoration:none;
  color:var(--app-ink);
}
body.hts-studio.hts-studio.hts-studio .b3-nav b,
body.hts-studio.hts-studio.hts-studio .b3-mode 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 .b3-nav small,
body.hts-studio.hts-studio.hts-studio .b3-mode small{
  display:block;
  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 .b3-nav span:nth-child(2),
body.hts-studio.hts-studio.hts-studio .b3-mode span:nth-child(2){ flex:1 1 auto; min-width:0; }
body.hts-studio.hts-studio.hts-studio .b3-nav__ic .icon{
  width:22px;height:22px;stroke:var(--app-track-words);fill:none;
}
body.hts-studio.hts-studio.hts-studio .b3-mode__ic .icon{
  width:22px;height:22px;stroke:var(--app-track-fluency);fill:none;
}
body.hts-studio.hts-studio.hts-studio .b3-nav__go .icon,
body.hts-studio.hts-studio.hts-studio .b3-mode__go .icon{
  width:18px;height:18px;stroke:var(--app-ink-faint);fill:none;
}
body.hts-studio.hts-studio.hts-studio .b3-modes{
  display:grid;
  gap:var(--app-gap-m);
}

/* ========================================================================== */
/* 5. SCENARIOS — content_components.dart `MediaCard.grid`                    */
/* ========================================================================== */
body.hts-studio.hts-studio.hts-studio .b3-chips{
  display:flex;
  gap:var(--app-gap-s);
  overflow-x:auto;
  padding-bottom:2px;
  scrollbar-width:none;
}
body.hts-studio.hts-studio.hts-studio .b3-chips::-webkit-scrollbar{ display:none; }
body.hts-studio.hts-studio.hts-studio .b3-chips .filter-chip{ flex:0 0 auto; }

body.hts-studio.hts-studio.hts-studio .b3-scenes{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
  gap:var(--app-gap-m);
  grid-auto-rows:1fr;
}
body.hts-studio.hts-studio.hts-studio .b3-scene{
  position:relative;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--app-line-strong);
  border-radius:var(--app-r-card);
  background:var(--app-surface);
  box-shadow:var(--app-shadow-card);
  text-decoration:none;
  color:var(--app-ink);
  cursor:pointer;
}
body.hts-studio.hts-studio.hts-studio .b3-scene__img{
  position:relative;
  display:block;
  aspect-ratio:4/3;
  /* the slot is RESERVED: a missing image leaves a neutral surface, never a
     collapsed card, so every tile in the grid is one size either way */
  background:var(--app-surface-sunken);
}
body.hts-studio.hts-studio.hts-studio .b3-scene__img img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
}
/* the app's overline, as the chip that already sits on the photograph. It is a
   near-white pill on an image in EITHER theme — his design, not a defect. */
body.hts-studio.hts-studio.hts-studio .b3-scene .scene-label{
  position:absolute;
  left:var(--app-gap-s);
  bottom:var(--app-gap-s);
  padding:4px 10px;
  border-radius:var(--app-r-pill);
  background:var(--app-surface-raised);
  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-ink);
}
body.hts-studio.hts-studio.hts-studio .b3-scene__body{
  display:block;
  padding:var(--app-gap-m);
}
body.hts-studio.hts-studio.hts-studio .b3-scene__body 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 .b3-scene__body small{
  display:block;
  margin-top:2px;
  font-size:var(--app-size-caption);
  line-height:var(--app-lh-caption);
  color:var(--app-ink-muted);
}
/* components.dart `StatusBlock.empty` — a box you only read, so it is the
   sunken rung with a divider edge, never the affordance border. */
body.hts-studio.hts-studio.hts-studio .b3-empty{
  grid-column:1/-1;
  padding:var(--app-gap-xl);
  border:1px solid var(--app-line);
  border-radius:var(--app-r-card);
  background:var(--app-surface-sunken);
  text-align:center;
}
body.hts-studio.hts-studio.hts-studio .b3-empty 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 .b3-empty small{
  display:block;
  margin-top:var(--app-gap-xs);
  font-size:var(--app-size-body-s);
  line-height:var(--app-lh-body-s);
  color:var(--app-ink-muted);
}

/* ========================================================================== */
/* 6. A COLLECTION'S OWN PAGE                                                 */
/* ========================================================================== */
body.hts-studio.hts-studio.hts-studio .b3-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 .b3-back .icon{
  width:18px;height:18px;stroke:currentColor;fill:none;
}
body.hts-studio.hts-studio.hts-studio .b3-chead 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);
}
body.hts-studio.hts-studio.hts-studio .b3-chead p{
  margin:var(--app-gap-xs) 0 0;
  font-size:var(--app-size-body);
  line-height:var(--app-lh-body);
  color:var(--app-ink-muted);
}
body.hts-studio.hts-studio.hts-studio .b3-chead span{
  display:block;
  margin-top:var(--app-gap-xs);
  font-size:var(--app-size-caption);
  line-height:var(--app-lh-caption);
  color:var(--app-ink-faint);
}

/* ========================================================================== */
/* 7. THE SEARCH DIALOG — the app's sections inside the web's own modal       */
/* ========================================================================== */
body.hts-studio.hts-studio.hts-studio #search-results .b3-sr{
  display:block;
  padding:0 var(--app-gap-m) var(--app-gap-s);
}
body.hts-studio.hts-studio.hts-studio #search-results .b3-sr__sec{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:var(--app-gap-m);
  padding:var(--app-gap-m) 0 var(--app-gap-xs);
}
body.hts-studio.hts-studio.hts-studio #search-results .b3-sr__sec h3{
  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 #search-results .b3-sr__sec span{
  font-size:var(--app-size-caption);
  line-height:var(--app-lh-caption);
  color:var(--app-ink-muted);
}
/* the rows sit on the FLOATING rung inside the dialog, so their disc's wash is
   mixed over that bed rather than over the page's canvas */
body.hts-studio.hts-studio.hts-studio #search-results .b3-row__play{
  background:color-mix(in srgb,var(--app-brand) 14%,var(--app-surface-raised));
}
body.hts-studio.hts-studio.hts-studio #search-results .b3-sr__item{
  display:flex;
  align-items:center;
  gap:var(--app-gap-m);
  min-height:var(--app-touch-large);
  padding:var(--app-gap-s) 0;
  border-bottom:1px solid var(--app-line);
  text-decoration:none;
  color:var(--app-ink);
}
body.hts-studio.hts-studio.hts-studio #search-results .b3-sr__item:last-child{ border-bottom:0; }
body.hts-studio.hts-studio.hts-studio #search-results .b3-sr__item span:nth-child(2){ flex:1 1 auto; min-width:0; }
body.hts-studio.hts-studio.hts-studio #search-results .b3-sr__item b{
  display:block;
  font-size:var(--app-size-title-m);
  line-height:var(--app-lh-title-m);
  font-weight:600;
}
body.hts-studio.hts-studio.hts-studio #search-results .b3-sr__item small{
  display:block;
  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 #search-results .b3-sr__ic .icon{
  width:22px;height:22px;stroke:var(--app-brand-ink);fill:none;
}
body.hts-studio.hts-studio.hts-studio #search-results .b3-sr__go .icon{
  width:18px;height:18px;stroke:var(--app-ink-faint);fill:none;
}

/* ========================================================================== */
/* 8. THE WIDE LAYOUT — the same order, more room                             */
/* ========================================================================== */
/* A web idiom the app has no equivalent for, and the bands' own rule: the
   ORDER and the GROUPING hold, the column does not. */
@media (min-width:900px){
  body.hts-studio.hts-studio.hts-studio .b3-plate{ min-height:176px; }
  body.hts-studio.hts-studio.hts-studio .b3-seg{ max-width:520px; }
  body.hts-studio.hts-studio.hts-studio .b3-grid{
    grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  }
  body.hts-studio.hts-studio.hts-studio .st-appart--tile{ width:56px;height:47px; }
  body.hts-studio.hts-studio.hts-studio .b3-scenes{
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  }
  body.hts-studio.hts-studio.hts-studio .b3-modes{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  body.hts-studio.hts-studio.hts-studio .b3-look__thai{
    font-size:var(--app-size-thai-hero);
    line-height:var(--app-lh-thai-hero);
  }
}

/* ========================================================================== */
/* 9. EXPLORE R01 — Codex explore-redesign-r01 (owner, 2026-09-25)            */
/* ========================================================================== */
/* Handoff: output/codex_design/outbox/explore-redesign-r01/CODER-HANDOFF.md,
   sizes from its source/design.css. Order: the Explore title (the shell's bar,
   no branding) · the word lookup · the Word Constellation feature · the three
   equal tabs · the active library · Categories and Collections as two compact
   entries. Function unchanged — cosmetic layout only. The feature's night
   values are the handoff's own and are the same in both themes. */
body.hts-studio.hts-studio.hts-studio .b3-top{ gap:0; }
body.hts-studio.hts-studio.hts-studio .b3-words{ gap:14px; }

/* the lookup field — the same #b3-wsearch and its anchored panel */
body.hts-studio.hts-studio.hts-studio .b3-field--look .b3-field__box{
  position:relative;
  gap:12px;
  min-height:52px;
  padding:0 15px;
  border:1px solid var(--app-line);
  border-radius:14px;
  background:var(--app-surface-raised);
  box-shadow:0 3px 8px rgba(14,32,51,.024);
}
body.hts-studio.hts-studio.hts-studio .b3-field--look .b3-field__ic .icon{
  width:22px;height:22px;stroke:var(--app-brand);stroke-width:1.7;fill:none;
}
body.hts-studio.hts-studio.hts-studio .b3-field--look input{
  font-size:16px;
  line-height:22px;
  font-weight:600;
}
body.hts-studio.hts-studio.hts-studio .b3-field--look input::placeholder{ color:transparent; }
body.hts-studio.hts-studio.hts-studio .b3-field__ph{
  position:absolute;
  left:49px;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  flex-direction:column;
  pointer-events:none;
}
body.hts-studio.hts-studio.hts-studio .b3-field__ph b{
  font-size:14px;
  line-height:18px;
  font-weight:600;
  color:var(--app-ink);
}
body.hts-studio.hts-studio.hts-studio .b3-field__ph small{
  margin-top:1px;
  font-size:10px;
  line-height:13px;
  color:var(--app-ink-faint);
}
body.hts-studio.hts-studio.hts-studio .b3-field--look input:not(:placeholder-shown) + .b3-field__ph{ display:none; }

/* the Word Constellation feature — one link, the art under the copy */
body.hts-studio.hts-studio.hts-studio .b3-hero{
  position:relative;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:16px;
  min-height:224px;
  margin-top:16px;
  padding:19px 18px 17px 20px;
  overflow:hidden;
  border:1px solid #375D81;
  border-radius:22px;
  background:radial-gradient(ellipse at 64% 40%,#244869 0%,#102E50 72%);
  box-shadow:0 12px 25px -17px rgba(16,46,80,.67);
  color:#EFF6FF;
  text-decoration:none;
}
body.hts-studio.hts-studio.hts-studio .b3-hero__art{
  position:absolute;
  inset:0;
  z-index:-1;
  width:100%;
  height:100%;
  max-width:none;
  object-fit:cover;
  object-position:50% 62%;
  opacity:.5;
  pointer-events:none;
}
body.hts-studio.hts-studio.hts-studio .b3-hero__copy{ display:flex; flex-direction:column; min-width:0; }
body.hts-studio.hts-studio.hts-studio .b3-hero__eye{
  font-size:8px;
  line-height:11px;
  letter-spacing:1.7px;
  font-weight:600;
  color:#A9C4DD;
}
body.hts-studio.hts-studio.hts-studio .b3-hero__t{
  margin-top:6px;
  font-size:23px;
  line-height:1.25;
  letter-spacing:-.8px;
  font-weight:600;
  color:#EFF6FF;
}
body.hts-studio.hts-studio.hts-studio .b3-hero__sub{
  margin-top:5px;
  font-size:12px;
  line-height:17px;
  color:#C6DAF8;
}
body.hts-studio.hts-studio.hts-studio .b3-hero__sub em{
  font-family:"ThaiRange","Gelasio",Georgia,serif;
  font-style:italic;
  font-size:14px;
  color:#F5C976;
}
body.hts-studio.hts-studio.hts-studio .b3-hero__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
body.hts-studio.hts-studio.hts-studio .b3-hero__go{
  display:inline-flex;
  align-items:center;
  gap:13px;
  min-height:44px;
  padding:0 13px;
  border-radius:12px;
  background:#ECF1FA;
  color:#102E50;
  font-size:12px;
  line-height:16px;
  font-weight:600;
  box-shadow:0 4px 12px rgba(5,14,24,.2);
  white-space:nowrap;
}
body.hts-studio.hts-studio.hts-studio .b3-hero__go .icon{ width:17px;height:17px;stroke:#102E50;fill:none; }
body.hts-studio.hts-studio.hts-studio .b3-hero__n{ display:flex; flex-direction:column; align-items:flex-end; text-align:right; min-width:0; }
body.hts-studio.hts-studio.hts-studio .b3-hero__n b{
  font-size:15px;
  line-height:1.25;
  font-weight:400;
  color:#E1EEFC;
}
body.hts-studio.hts-studio.hts-studio .b3-hero__n small{
  font-size:9px;
  line-height:1.25;
  color:#A9C4DD;
}

/* the three library tabs: equal columns, text-led, a 3px underline */
body.hts-studio.hts-studio.hts-studio .b3-top > .b3-seg{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-auto-flow:row;
  gap:0;
  max-width:none;
  margin-top:18px;
  padding:0;
  border-radius:0;
  border-bottom:1px solid var(--app-line);
  background:none;
}
body.hts-studio.hts-studio.hts-studio .b3-top > .b3-seg .b3-seg__i{
  position:relative;
  min-height:47px;
  padding:0 4px;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
  font-size:14px;
  line-height:18px;
  font-weight:400;
  color:var(--app-ink-faint);
}
body.hts-studio.hts-studio.hts-studio .b3-top > .b3-seg .b3-seg__i.is-on{
  background:none;
  border:0;
  box-shadow:none;
  font-weight:600;
  color:var(--app-brand);
}
body.hts-studio.hts-studio.hts-studio .b3-top > .b3-seg .b3-seg__i.is-on::after{
  content:"";
  position:absolute;
  left:16px;
  right:16px;
  bottom:-1px;
  height:3px;
  border-radius:3px;
  background:var(--app-brand);
}

/* the word card — LookupCard on the card surface */
body.hts-studio.hts-studio.hts-studio .b3-wc{
  overflow:hidden;
  border:1px solid var(--app-line);
  border-radius:19px;
  background:var(--app-surface);
  box-shadow:0 6px 16px -12px rgba(16,46,80,.31);
}
body.hts-studio.hts-studio.hts-studio .b3-wc__label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:35px;
  padding:5px 17px 0;
  font-size:8px;
  line-height:11px;
  letter-spacing:1.1px;
  font-weight:600;
  color:var(--app-ink-faint);
}
body.hts-studio.hts-studio.hts-studio .b3-wc__star svg{ display:block; width:17px; height:17px; fill:var(--app-brand); }
body.hts-studio.hts-studio.hts-studio .b3-wc__main{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:103px;
  padding:5px 16px 15px;
}
body.hts-studio.hts-studio.hts-studio .b3-wc__txt{ min-width:0; }
body.hts-studio.hts-studio.hts-studio .b3-wc__thai{
  display:block;
  font-family:var(--app-font-thai);
  font-size:36px;
  line-height:1.5;
  font-weight:400;
  color:var(--app-ink);
  overflow-wrap:anywhere;
}
body.hts-studio.hts-studio.hts-studio .b3-wc__gloss{
  margin:-3px 0 0;
  font-size:14px;
  line-height:20px;
  color:var(--app-ink-faint);
  overflow-wrap:anywhere;
}
body.hts-studio.hts-studio.hts-studio .b3-wc__acts{ display:flex; align-items:center; gap:8px; flex-shrink:0; }
body.hts-studio.hts-studio.hts-studio .b3-wc__play{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid var(--app-brand);
  border-radius:50%;
  background:var(--app-brand);
  color:var(--app-on-accent);
  cursor:pointer;
}
body.hts-studio.hts-studio.hts-studio .b3-wc__play .icon{ width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.9; }
body.hts-studio.hts-studio.hts-studio .b3-wc .b3-heart{
  width:44px;
  height:44px;
  border:1px solid var(--app-line);
  border-radius:50%;
  background:transparent;
  color:var(--app-ink-faint);
}
body.hts-studio.hts-studio.hts-studio .b3-wc .b3-heart.is-on{ color:var(--app-negative); }
body.hts-studio.hts-studio.hts-studio .b3-wc__foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:49px;
  padding:0 16px;
  border-top:1px solid color-mix(in srgb,var(--app-line) 60%,transparent);
  background:color-mix(in srgb,var(--app-surface-tint) 28%,var(--app-surface));
}
body.hts-studio.hts-studio.hts-studio .b3-wc__meta{
  display:flex;
  align-items:center;
  gap:3px;
  min-width:0;
  font-size:11px;
  line-height:15px;
  color:var(--app-ink-faint);
}
body.hts-studio.hts-studio.hts-studio .b3-wc__bars{ display:flex; align-items:center; gap:3px; margin-right:4px; }
body.hts-studio.hts-studio.hts-studio .b3-wc__bars i{ display:block; width:4px; height:13px; border-radius:2px; background:var(--app-line); }
body.hts-studio.hts-studio.hts-studio .b3-wc__bars i:nth-child(2){ height:18px; }
body.hts-studio.hts-studio.hts-studio .b3-wc__go{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:0;
  border:0;
  background:none;
  font-family:inherit;
  font-size:12px;
  line-height:16px;
  font-weight:600;
  color:var(--app-brand);
  cursor:pointer;
  white-space:nowrap;
}
body.hts-studio.hts-studio.hts-studio .b3-wc__go .icon{ width:17px;height:17px;stroke:var(--app-brand);fill:none; }

/* Categories · Collections — two compact equal entries */
body.hts-studio.hts-studio.hts-studio .b3-browse{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
body.hts-studio.hts-studio.hts-studio .b3-browse__i{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:0;
  border:0;
  border-bottom:1px solid var(--app-line);
  border-radius:0;
  background:none;
  font-family:inherit;
  font-size:12px;
  line-height:16px;
  color:var(--app-ink-faint);
  text-align:left;
  cursor:pointer;
}
body.hts-studio.hts-studio.hts-studio .b3-browse__i > span{ flex:1 1 auto; min-width:0; }
body.hts-studio.hts-studio.hts-studio .b3-browse__i .icon{ width:18px;height:18px;stroke:var(--app-ink-faint);fill:none; }
body.hts-studio.hts-studio.hts-studio .b3-browse__i .icon:last-child{ width:16px;height:16px; }
body.hts-studio.hts-studio.hts-studio .b3-browse__i[disabled]{ opacity:.5; cursor:default; }
body.hts-studio.hts-studio.hts-studio .b3-bsheet .b3-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }

/* the tab root's title on the phone's slim bar: Explore, 28 / 600 / -1 */
@media (max-width:700px){
  body.hts-studio.hts-studio.hts-studio:is([data-page="words"],[data-page="sentence_lab"],[data-page="scenarios"]) .w1-bar--root .w1-bar__row{ min-height:56px; }
  body.hts-studio.hts-studio.hts-studio:is([data-page="words"],[data-page="sentence_lab"],[data-page="scenarios"]) .w1-bar--root .w1-bar__t{
    font-size:28px;
    line-height:34px;
    letter-spacing:-1px;
    font-weight:600;
  }
}
/* wider: the same composition inside the existing 680 column — the feature
   takes a little more height, nothing is scaled up */
@media (min-width:701px){
  body.hts-studio.hts-studio.hts-studio .b3-hero{ min-height:248px; }
  body.hts-studio.hts-studio.hts-studio .b3-bsheet .b3-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}

/* owner 2026-09-25: 4px reserved above the lookup field so its border clears the header */
body.hts-studio.hts-studio.hts-studio .b3-field--look{ margin-top:4px; }
body.hts-studio.hts-studio.hts-studio .b3-wc__play .b3-wc__spk{ width:23px;height:23px;fill:currentColor; }

/* owner 2026-09-28: Explore order = the Word Constellation feature, the three
   tabs, then the search field; the feature 15% less tall (224 -> 190, 248 -> 211
   wider) — its content keeps its layout, only the art area gives. The 4px
   header clearance moves to the feature; the field sits 16px under the tabs. */
body.hts-studio.hts-studio.hts-studio .b3-top > .b3-hero{ min-height:190px; margin-top:4px; }
@media (min-width:701px){
  body.hts-studio.hts-studio.hts-studio .b3-top > .b3-hero{ min-height:211px; }
}
body.hts-studio.hts-studio.hts-studio .b3-top > .b3-field--look{ margin-top:16px; }
/* the no-corpus Sentences page: the shipped breakdown card's own search is a
   second field under the tabs — the page's field above is the one (owner 09-28) */
body.hts-studio.hts-studio.hts-studio .b3-sentences .study-sentence .sbd__search{ display:none; }
