/* ============================================================================
   studio_app_w6.css — WEB BAND W6, 2026-09-23: THE DESKTOP TODAY CONSOLE.
   Markup + behaviour: assets/js/studio/studio_app_w6.js. Linked LAST, after
   studio_app_w5.css.

   THE DESIGN: output/codex_design/outbox/desktop-workspace-r03/CODER-HANDOFF.md
   (it overrides the PNGs / CONCEPT for the Constellation ↔ Hear-the-Tone swap),
   DESIGN-NOTES.md, source/concept.css (final computed values, not the first
   declaration) and the two owner-approved PNGs.

   ⛔ THE BREAKPOINT — one query, used verbatim everywhere below:
        @media (min-width:1200px) and (hover:hover) and (pointer:fine)
      Laptops and desktops from 1200 CSS px. Every iPad (coarse pointer, no
      hover) — iPad Pro 13" landscape at 1366 included — keeps band W4's
      composition. NOT the old ≥701 tablet rule. Outside the query nothing
      in this sheet shows: `.w6-console` and `.w6-bar` are display:none.

   ⛔ LAYOUT IS CONTENT-AWARE. The reference's absolute title positions, fixed
      card heights and the sidebar's min-height:1000px are NOT copied. The four
      primary cards share their row tracks through `subgrid`, so the kicker,
      title, line and action rows align across all four and a wrapped title on
      a narrow laptop grows every card equally instead of clipping. Pages
      scroll; nothing shrinks.

   ⛔ COLOUR. The handoff's token table is mapped onto `--app-*` wherever the
      value coincides (canvas, surface, raised, ink, night, brand…); every
      value the tokens lack is a `--desk-*` token below carrying the handoff's
      own hex — Codex's approved design, declared once, light + dark.

   ⛔ SCOPE: every rule under body.hts-studio (the preview gate).
   ============================================================================ */

@font-face{
  font-family:"Gelasio";
  src:url(../../fonts/Gelasio-Italic.woff2) format("woff2"),url(../../fonts/Gelasio-Italic.ttf) format("truetype");  /* SIL OFL 1.1 — assets/fonts/Gelasio-LICENCE.md; woff2 = fonttools conversion of the same file */
  font-style:italic;
  font-weight:400;
  /* 2026-10-16 (owner): optional + preload in app.html = no fallback-to-Gelasio flash; the fallback in every
     stack is Georgia, which Gelasio is metric-compatible with, so nothing reflows either way. */
  font-display:optional;
}

/* ---------------------------------------------------------------- tokens --- */
body.hts-studio.hts-studio.hts-studio{
  /* the handoff's table: Muted ink = the app's faint step (light) / muted
     step (dark); Border is new in light; Link = brand (light) / brand-ink
     (dark); Sidebar is new */
  --desk-muted:var(--app-ink-faint);          /* #4a5e70 */
  --desk-line:#b2c3da;
  --desk-accent:var(--app-brand);             /* #1b63cc */
  --desk-nav:#f0f4fa;
  --desk-shadow:0 8px 26px -16px #12345250;
  /* the welcome band (fixed in both themes — a night surface) */
  --desk-welcome-glow:#265078;                /* → --app-night #102e50 at 72% */
  --desk-welcome-edge:#345777;
  --desk-welcome-over:#adc9e3;
  --desk-welcome-italic:#e8d7b3;
  --desk-welcome-rule:#a8c6df30;
  --desk-lookup-bed:#f3f7fc;
  --desk-lookup-ink:#153652;
  --desk-lookup-edge:#d5e1ef;
  --desk-lookup-icon:#326595;
  --desk-lookup-hint:#5b6f83;
  --desk-kbd-ink:#68819a;
  --desk-kbd-edge:#cad8e7;
  --desk-streak-star:#dfc592;
  --desk-streak-sub:#b2cce4;
  --desk-motif-line:#7dadd6;
  --desk-motif-star:#e4c78e;
  --desk-saved-heart:#c5d9ee;
  --desk-saved-label:#bad2e9;
  --desk-saved-accent:#b4cde5;
  /* primary cards — Review blue (both themes), Fluency green, Listening
     lavender, Word Constellation navy (both themes) */
  --desk-review-bed:#205a9d;
  --desk-review-edge:#3268a7;
  --desk-review-ink:#ffffff;
  --desk-review-kicker:#c4ddf6;
  --desk-fluency-bed:#e0ece6;
  --desk-fluency-edge:#afc5bd;
  --desk-fluency-ink:#174e3b;
  --desk-listen-bed:#e9e6f5;
  --desk-listen-edge:#bdb6d5;
  --desk-listen-ink:#413e68;
  --desk-cst-bed:#163957;
  --desk-cst-edge:#3a6182;
  --desk-cst-title:#edf6ff;
  --desk-cst-soft:#b4cfe8;
  --desk-cst-arrow:#b4d5ff;
  /* lesson-track accent marks */
  --desk-track-sounds:#387cbf;
  --desk-track-read:#8c7abf;
  --desk-track-fluency:#438e73;
  /* the account avatar */
  --desk-avatar-bed:var(--app-surface-tint);  /* #c6daf8 */
  --desk-avatar-ink:#17364f;
}
:root[data-theme="dark"] body.hts-studio.hts-studio.hts-studio{
  --desk-muted:var(--app-ink-muted);          /* #a8c2dc */
  --desk-line:var(--app-line);                /* #37506c */
  --desk-accent:var(--app-brand-ink);         /* #9cc6ff */
  --desk-nav:#0b1929;
  --desk-shadow:none;
  --desk-fluency-bed:#183b37;
  --desk-fluency-edge:#365c52;
  --desk-fluency-ink:#d0efe1;
  --desk-listen-bed:#282e50;
  --desk-listen-edge:#4b5274;
  --desk-listen-ink:#e6e0ff;
  --desk-avatar-bed:#c6daf8;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) body.hts-studio.hts-studio.hts-studio{
    --desk-muted:var(--app-ink-muted);
    --desk-line:var(--app-line);
    --desk-accent:var(--app-brand-ink);
    --desk-nav:#0b1929;
    --desk-shadow:none;
    --desk-fluency-bed:#183b37;
    --desk-fluency-edge:#365c52;
    --desk-fluency-ink:#d0efe1;
    --desk-listen-bed:#282e50;
    --desk-listen-edge:#4b5274;
    --desk-listen-ink:#e6e0ff;
    --desk-avatar-bed:#c6daf8;
  }
}

/* ----------------------------------------------------- off by default --- */
body.hts-studio.hts-studio.hts-studio .w6-console{ display:none; }
body.hts-studio.hts-studio.hts-studio #topbar > .w6-bar{ display:none; }

/* ======================================================================== */
/* THE SWITCH + THE SHELL (inside the query only)                           */
/* ======================================================================== */
@media (min-width:1200px) and (hover:hover) and (pointer:fine){

  /* ---- Today: the console replaces band B1's composition --------------- */
  body.hts-studio.hts-studio.hts-studio #view .b1-today:has(~ .w6-console){ display:none!important; }
  body.hts-studio.hts-studio.hts-studio #view .w6-console{ display:block; }

  /* the main column: 34px insets, 28px top, 1510 max INCLUDING padding */
  body.hts-studio.hts-studio.hts-studio:has(#view .w6-console) #view{
    max-width:1510px;
    margin:0 auto;
    padding:28px 34px 40px;
    background:transparent;
  }
  body.hts-studio.hts-studio.hts-studio #view > .st-page:has(> .w6-console){
    max-width:none;
    margin:0;
    padding:0;
  }
  /* 2026-09-24 (owner): on a wide laptop the console is shorter than the viewport, and the body's bed ended
     with its content, so the html element's own (beige) background showed as a band along the bottom. The
     body now fills the viewport at console size and the html behind it takes the same bed. */
  body.hts-studio.hts-studio.hts-studio:has(#view .w6-console){ background:var(--app-canvas); min-height:100dvh; }
  html:has(body.hts-studio.hts-studio.hts-studio #view .w6-console){ background:var(--app-canvas); }
  body.hts-studio.hts-studio.hts-studio:has(#view .w6-console) .workspace > .footer{ display:none; }

  /* ---- the top bar on Today: crumb · long date · appearance ------------ */
  body.hts-studio.hts-studio.hts-studio:has(#view .w6-console) #topbar{
    display:flex;
    align-items:center;
    height:68px;
    min-height:68px;
    padding:0 34px;
    background:var(--app-surface);
    border-bottom:1px solid var(--desk-line);
  }
  body.hts-studio.hts-studio.hts-studio:has(#view .w6-console) #topbar > :not(.w6-bar){ display:none!important; }
  body.hts-studio.hts-studio.hts-studio:has(#view .w6-console) #topbar > .w6-bar{
    display:flex;
    flex:1 1 auto;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    min-width:0;
    font-family:var(--app-font-latin);
    font-size:13px;
    color:var(--desk-muted);
  }

  /* ---- the sidebar (every route at this size: one persistent surface) --
     224 wide, 28/18 padding, the brand lockup, "YOUR ACADEMY", the five
     entries at 60px with their art, Help and the account at the foot.
     Band W3's sub-entries still draw under the selected entry. */
  body.hts-studio.hts-studio.hts-studio{ --sidebar:224px; }
  body.hts-studio.hts-studio.hts-studio #sidebar{
    width:224px;
    padding:28px 18px 18px;
    background:var(--desk-nav);
    border-right:1px solid var(--desk-line);
    font-family:var(--app-font-latin);
  }
  body.hts-studio.hts-studio.hts-studio #sidebar > .brand{
    justify-content:flex-start;
    gap:10px;
    padding:0 8px 36px;
  }
  body.hts-studio.hts-studio.hts-studio #sidebar > .brand img{
    width:43px;
    height:43px;
    flex:0 0 43px;
    border-radius:50%;
    object-fit:contain;
  }
  body.hts-studio.hts-studio.hts-studio #sidebar > .brand > div{ display:block; }
  body.hts-studio.hts-studio.hts-studio #sidebar .brand-name{
    font-size:20px;
    font-weight:600;
    line-height:1.12;
    letter-spacing:-.6px;
    color:var(--app-ink);
  }
  body.hts-studio.hts-studio.hts-studio #sidebar .brand-name span{
    display:block;
    margin-top:4px;
    font-size:14px;
    font-weight:400;
    letter-spacing:1.5px;
    color:var(--desk-accent);
  }
  body.hts-studio.hts-studio.hts-studio #sidebar nav.w3-nav .b2-primary{
    padding:0;
    margin:0;
    border-bottom:0;
  }
  body.hts-studio.hts-studio.hts-studio #sidebar nav.w3-nav .b2-primary::before{
    content:"YOUR ACADEMY";
    display:block;
    padding:0 12px 13px;
    font-size:10px;
    font-weight:600;
    letter-spacing:1.5px;
    line-height:1.4;
    color:var(--desk-muted);
  }
  body.hts-studio.hts-studio.hts-studio #sidebar .nav-link.b2-nav{
    display:flex;
    flex-direction:row;
    justify-content:flex-start;
    align-items:center;
    gap:14px;
    min-height:60px;
    margin:0 0 7px;
    padding:0 13px;
    border:1px solid transparent;
    border-radius:12px;
    font-size:15px;
    font-weight:400;
    line-height:1.2;
    text-align:left;
    color:var(--desk-muted);
    background:transparent;
  }
  body.hts-studio.hts-studio.hts-studio #sidebar .nav-link.b2-nav .st-appart--nav{
    width:35px;
    height:34px;
    flex:0 0 35px;
  }
  body.hts-studio.hts-studio.hts-studio #sidebar .nav-link.b2-nav:hover{
    color:var(--app-ink);
    background:color-mix(in srgb,var(--app-surface-raised) 55%,transparent);
  }
  body.hts-studio.hts-studio.hts-studio #sidebar .nav-link.b2-nav.active{
    color:var(--desk-accent);
    background:var(--app-surface-raised);
    border-color:var(--desk-line);
    box-shadow:var(--desk-shadow);
    font-weight:600;
  }
  body.hts-studio.hts-studio.hts-studio #sidebar .nav-link.b2-nav.active::before{
    content:"";
    position:absolute;
    left:-18px;
    top:50%;
    bottom:auto;
    width:3px;
    height:20px;
    margin-top:-10px;
    border-radius:4px;
    background:var(--desk-accent);
  }
  body.hts-studio.hts-studio.hts-studio #sidebar .nav-link.b2-nav:focus-visible,
  body.hts-studio.hts-studio.hts-studio #sidebar .sidebar-bottom a:focus-visible{
    outline:2px solid var(--desk-accent);
    outline-offset:2px;
  }
  /* W3 hides the sub-entries, the owner rows and the foot on the 701–1250
     icon sidebar; at 1200–1250 on a laptop this is the labelled sidebar, so
     they are restated here exactly as W3 draws them from 1251. */
  body.hts-studio.hts-studio.hts-studio #sidebar nav.w3-nav .w3-subs{
    display:flex!important;
    flex-direction:column;
    gap:2px;
    margin:0 0 9px 20px;
    padding-left:8px;
    border-left:1px solid var(--desk-line);
  }
  body.hts-studio.hts-studio.hts-studio #sidebar .nav-link.w3-sub{
    flex-direction:row;
    justify-content:flex-start;
    gap:10px;
    min-height:40px;
    padding:0 10px;
    font-size:13px;
    text-align:left;
    color:var(--desk-muted);
  }
  body.hts-studio.hts-studio.hts-studio #sidebar .nav-link.w3-sub .icon{ width:17px; height:17px; }
  body.hts-studio.hts-studio.hts-studio #sidebar .nav-link.w3-sub.is-on{ color:var(--desk-accent); font-weight:600; }
  body.hts-studio.hts-studio.hts-studio #sidebar nav.w3-nav > a.w3-owner{
    display:flex!important;
    flex-direction:row;
    justify-content:flex-start;
    text-align:left;
    font-size:13px;
  }
  body.hts-studio.hts-studio.hts-studio #sidebar nav.w3-nav > .nav-section.w3-owner{
    display:block!important;
    text-align:left;
    white-space:normal;
  }
  body.hts-studio.hts-studio.hts-studio #sidebar:has(nav.w3-nav) .sidebar-bottom{
    display:block!important;
    margin-top:auto;
    padding-top:18px;
  }
  /* the plain membership line is not in the approved foot; the TRIAL member
     pass (.member-pass — the real clip meter and the door to lifetime access,
     PW-01) is a money surface and stays */
  body.hts-studio.hts-studio.hts-studio #sidebar .sidebar-bottom > .member-card:not(.member-pass){ display:none; }
  body.hts-studio.hts-studio.hts-studio #sidebar .sidebar-bottom > .member-card.member-pass{ display:block; margin:0 0 12px; }
  /* Help & learning guide: the small row with its arrow */
  body.hts-studio.hts-studio.hts-studio #sidebar:has(nav.w3-nav) .sidebar-bottom > .nav-link[href="#/help"]{
    display:flex!important;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    min-height:44px;
    margin:0;
    padding:0 8px;
    border-radius:8px;
    font-size:11px;
    font-weight:400;
    text-align:left;
    color:var(--desk-muted);
    background:transparent;
  }
  body.hts-studio.hts-studio.hts-studio #sidebar .sidebar-bottom > .nav-link[href="#/help"] > .icon{ display:none; }
  body.hts-studio.hts-studio.hts-studio #sidebar .sidebar-bottom > .nav-link[href="#/help"]::after{
    content:"\2197";
    font-size:12px;
    line-height:1;
  }
  body.hts-studio.hts-studio.hts-studio #sidebar .sidebar-bottom > .nav-link[href="#/help"]:hover{ color:var(--app-ink); }
  /* the account row */
  body.hts-studio.hts-studio.hts-studio #sidebar .profile{
    display:flex;
    justify-content:flex-start;
    align-items:center;
    gap:10px;
    margin-top:12px;
    padding:20px 8px 0;
    border-top:1px solid var(--desk-line);
    font-size:12px;
    color:var(--app-ink);
  }
  body.hts-studio.hts-studio.hts-studio #sidebar .profile > span:not(.avatar){
    display:block;
    flex:1 1 auto;
    min-width:0;
  }
  body.hts-studio.hts-studio.hts-studio #sidebar .profile > .icon{
    display:block;
    flex:0 0 auto;
    width:15px;
    height:15px;
    margin-left:auto;
    color:var(--desk-muted);
  }
  body.hts-studio.hts-studio.hts-studio #sidebar .profile b{
    display:block;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    font-size:12px;
    font-weight:400;
  }
  body.hts-studio.hts-studio.hts-studio #sidebar .profile small{
    display:block;
    margin-top:3px;
    font-size:9px;
    color:var(--desk-muted);
  }
  body.hts-studio.hts-studio.hts-studio #sidebar .profile .avatar{
    flex:0 0 34px;
    width:34px;
    height:34px;
    background:var(--desk-avatar-bed);
    color:var(--desk-avatar-ink);
  }
}

/* ======================================================================== */
/* THE TOP BAR NODE (w6.js appends it; the query above decides if it shows) */
/* ======================================================================== */
body.hts-studio.hts-studio.hts-studio .w6-crumb{
  display:flex;
  align-items:center;
  min-width:0;
  white-space:nowrap;
}
body.hts-studio.hts-studio.hts-studio .w6-crumb__sep{ margin:0 12px; opacity:.7; }
body.hts-studio.hts-studio.hts-studio .w6-crumb b{ font-weight:400; color:var(--app-ink); }
body.hts-studio.hts-studio.hts-studio .w6-tools{
  display:flex;
  align-items:center;
  gap:22px;
  flex:0 0 auto;
}
body.hts-studio.hts-studio.hts-studio .w6-date{ font-size:12px; white-space:nowrap; }
body.hts-studio.hts-studio.hts-studio .w6-theme{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid var(--desk-line);
  border-radius:50%;
  background:transparent;
  color:var(--app-ink);
  cursor:pointer;
}
body.hts-studio.hts-studio.hts-studio .w6-theme .icon{ width:22px; height:22px; }
body.hts-studio.hts-studio.hts-studio .w6-theme:hover{ border-color:var(--desk-accent); color:var(--desk-accent); }
body.hts-studio.hts-studio.hts-studio .w6-theme:focus-visible{ outline:2px solid var(--desk-accent); outline-offset:2px; }

/* ======================================================================== */
/* THE CONSOLE                                                              */
/* ======================================================================== */
body.hts-studio.hts-studio.hts-studio .w6-console{
  font-family:var(--app-font-latin);
  font-size:14px;
  line-height:1.45;
  color:var(--app-ink);
}
body.hts-studio.hts-studio.hts-studio .w6-console a{ text-decoration:none; color:inherit; }
body.hts-studio.hts-studio.hts-studio .w6-console :is(h1,h2,p){ margin:0; }
body.hts-studio.hts-studio.hts-studio .w6-console :is(b,strong){ font-weight:600; }
/* every card: whole-card target, subtle emphasis on hover, never moves */
body.hts-studio.hts-studio.hts-studio .w6-console :is(.w6-way,.w6-lesson,.w6-small,.w6-scene){
  position:relative;
  transition:border-color .15s ease,background-color .15s ease;
}
body.hts-studio.hts-studio.hts-studio .w6-console :is(.w6-way,.w6-lesson,.w6-small,.w6-scene,.trial-card):focus-visible{
  outline:3px solid var(--desk-accent);
  outline-offset:2px;
}
body.hts-studio.hts-studio.hts-studio .w6-go{ display:inline-flex; flex:0 0 auto; }
body.hts-studio.hts-studio.hts-studio .w6-go .icon{ width:16px; height:16px; }

/* ------------------------------------------------------ section headings --- */
body.hts-studio.hts-studio.hts-studio .w6-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin:18px 0 10px;
}
body.hts-studio.hts-studio.hts-studio .w6-head h2{
  font-size:18px;
  font-weight:600;
  line-height:1.3;
  letter-spacing:-.45px;
  color:var(--app-ink);
}
body.hts-studio.hts-studio.hts-studio .w6-head p{ margin-top:4px; font-size:12px; color:var(--desk-muted); }
body.hts-studio.hts-studio.hts-studio .w6-head__note{ font-size:11px; color:var(--desk-muted); text-align:right; }

/* ---------------------------------------------------------- the welcome --- */
body.hts-studio.hts-studio.hts-studio .w6-welcome{
  position:relative;
  z-index:2;                               /* the lookup's panel hangs over the cards */
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,348px);
  gap:32px;
  padding:21px 28px;
  border:1px solid var(--desk-welcome-edge);
  border-radius:20px;
  background:radial-gradient(ellipse at 85% 0%,var(--desk-welcome-glow),var(--app-night) 72%);
  color:var(--app-on-night);
  box-shadow:var(--desk-shadow);
}
body.hts-studio.hts-studio.hts-studio .w6-welcome__main{ min-width:0; }
body.hts-studio.hts-studio.hts-studio .w6-over{
  display:block;
  font-size:10px;
  font-weight:600;
  letter-spacing:1.7px;
  color:var(--desk-welcome-over);
}
body.hts-studio.hts-studio.hts-studio .w6-h1{
  margin-top:5px;
  font-size:34px;
  font-weight:600;
  line-height:1.2;
  letter-spacing:-1px;
  color:var(--app-on-night);
}
body.hts-studio.hts-studio.hts-studio .w6-h1 em,
body.hts-studio.hts-studio.hts-studio .w6-saved small{
  font-family:"ThaiRange","Gelasio",Georgia,serif;
  font-style:italic;
  font-weight:400;
  font-synthesis:none;
}
body.hts-studio.hts-studio.hts-studio .w6-h1 em{ color:var(--desk-welcome-italic); }

/* the lookup: W5's field in the reference's shell */
body.hts-studio.hts-studio.hts-studio .w6-find{ position:relative; margin-top:14px; }
body.hts-studio.hts-studio.hts-studio .w6-lookup{
  display:flex;
  align-items:center;
  gap:12px;
  height:48px;
  padding:0 16px;
  border:1px solid var(--desk-lookup-edge);
  border-radius:11px;
  background:var(--desk-lookup-bed);
  color:var(--desk-lookup-ink);
  cursor:text;
}
body.hts-studio.hts-studio.hts-studio .w6-lookup:focus-within{
  border-color:var(--app-brand);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--desk-welcome-over) 55%,transparent);
}
body.hts-studio.hts-studio.hts-studio .w6-lookup__ic{ display:flex; flex:0 0 auto; }
body.hts-studio.hts-studio.hts-studio .w6-lookup__ic .icon{ width:20px; height:20px; fill:none; stroke:var(--desk-lookup-icon); }
body.hts-studio.hts-studio.hts-studio .w6-lookup__lab{
  flex:0 0 auto;
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
}
body.hts-studio.hts-studio.hts-studio .w6-find.b3-field input#w6-tsearch{
  flex:1 1 auto;
  align-self:stretch;
  min-width:0;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  -webkit-appearance:none;
  appearance:none;
  font-family:inherit;
  font-size:14px;
  line-height:1.3;
  color:var(--desk-lookup-ink);
}
body.hts-studio.hts-studio.hts-studio .w6-find.b3-field input#w6-tsearch::placeholder{
  font-size:12px;
  color:var(--desk-lookup-hint);
  opacity:1;
}
body.hts-studio.hts-studio.hts-studio .w6-kbd{
  flex:0 0 auto;
  padding:3px 5px;
  border:1px solid var(--desk-kbd-edge);
  border-radius:4px;
  font:10px/1.2 var(--app-font-latin);
  color:var(--desk-kbd-ink);
  white-space:nowrap;
}
body.hts-studio.hts-studio.hts-studio .w6-lookup__go{ display:flex; flex:0 0 auto; margin-left:7px; }
body.hts-studio.hts-studio.hts-studio .w6-lookup__go .icon{ width:16px; height:16px; }

/* the personal area: streak + saved, compact */
body.hts-studio.hts-studio.hts-studio .w6-personal{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  padding-left:24px;
  border-left:1px solid var(--desk-welcome-rule);
}
body.hts-studio.hts-studio.hts-studio .w6-streak{ display:flex; align-items:center; gap:10px; }
body.hts-studio.hts-studio.hts-studio .w6-streak__star{ flex:0 0 auto; font-size:25px; line-height:1; color:var(--desk-streak-star); }
body.hts-studio.hts-studio.hts-studio .w6-streak__t{ min-width:0; }
body.hts-studio.hts-studio.hts-studio .w6-streak__t b{ display:block; font-size:17px; line-height:1.3; }
body.hts-studio.hts-studio.hts-studio .w6-streak__t small{
  display:block;
  margin-top:4px;
  font-size:11px;
  color:var(--desk-streak-sub);
}
body.hts-studio.hts-studio.hts-studio .w6-motif{ flex:0 0 88px; width:88px; height:33px; margin-left:auto; }
body.hts-studio.hts-studio.hts-studio .w6-motif__line{ fill:none; stroke:var(--desk-motif-line); stroke-width:1; }
body.hts-studio.hts-studio.hts-studio .w6-motif__star{ fill:var(--desk-motif-star); opacity:.35; }
body.hts-studio.hts-studio.hts-studio .w6-motif__star.is-lit{ opacity:1; }
body.hts-studio.hts-studio.hts-studio .w6-saved{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:4px 9px;
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid var(--desk-welcome-rule);
}
body.hts-studio.hts-studio.hts-studio .w6-saved__ic{ display:flex; color:var(--desk-saved-heart); }
body.hts-studio.hts-studio.hts-studio .w6-saved__ic .icon{ width:21px; height:21px; fill:none; stroke:currentColor; }
body.hts-studio.hts-studio.hts-studio .w6-saved b{ font-size:23px; line-height:1; font-variant-numeric:tabular-nums; }
body.hts-studio.hts-studio.hts-studio .w6-saved > span:not(.w6-saved__ic){ font-size:12px; color:var(--desk-saved-label); }
body.hts-studio.hts-studio.hts-studio .w6-saved small{
  margin-left:auto;
  font-size:12px;
  white-space:nowrap;
  color:var(--desk-saved-accent);
}

/* ------------------------------------------------- A few ways in (4 up) ---
   One subgrid: rows = kicker · art room · title · line · action. Every card
   spans the five and inherits them, so all four are one size with aligned
   rows at every width. The art room is the reference's 89px title top less
   the 17px padding and the kicker's 13px line. Locked, a card sits inside
   production's .trial-card > .trial-card__blur; both pass the rows through. */
body.hts-studio.hts-studio.hts-studio .w6-ways{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  grid-template-rows:auto minmax(61px,auto) auto auto auto;
  column-gap:16px;
  row-gap:0;
}
body.hts-studio.hts-studio.hts-studio .w6-ways > *,
body.hts-studio.hts-studio.hts-studio .w6-ways > .trial-card > .trial-card__blur,
body.hts-studio.hts-studio.hts-studio .w6-ways > .trial-card > .trial-card__blur > .w6-way{
  grid-row:1 / span 5;
  display:grid;
  grid-template-rows:subgrid;
  row-gap:0;
  min-width:0;
}
body.hts-studio.hts-studio.hts-studio .w6-ways > .trial-card{ border-radius:18px; }
body.hts-studio.hts-studio.hts-studio .w6-way{
  grid-template-columns:minmax(0,1fr);
  padding:17px 20px 10px 22px;
  border:1px solid var(--desk-line);
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--desk-shadow);
}
body.hts-studio.hts-studio.hts-studio .w6-way__k{
  grid-row:1;
  /* room for the drawing: 16px inset + 84px box, less the 20px padding, + 8 */
  padding-right:88px;
  font-size:9px;
  font-weight:600;
  line-height:13px;
  letter-spacing:1.2px;
}
body.hts-studio.hts-studio.hts-studio .w6-way__art{
  position:absolute;
  top:23px;
  right:16px;
  width:84px;
  height:68px;
}
body.hts-studio.hts-studio.hts-studio .w6-way--review .w6-way__art{ top:15px; width:98px; height:77px; }
body.hts-studio.hts-studio.hts-studio .w6-way--review .w6-way__k{ padding-right:102px; }
body.hts-studio.hts-studio.hts-studio .w6-way__t{
  grid-row:3;
  font-size:24px;
  font-weight:600;
  line-height:1.15;
  letter-spacing:-.8px;
  overflow-wrap:break-word;
}
body.hts-studio.hts-studio.hts-studio .w6-way__d{
  grid-row:4;
  margin-top:7px;
  font-size:11px;
  line-height:1.45;
}
body.hts-studio.hts-studio.hts-studio .w6-way__a{
  grid-row:5;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:25px;
  margin-top:7px;
  font-size:12px;
}
body.hts-studio.hts-studio.hts-studio .w6-way__a .icon{ width:17px; height:17px; }
/* the four beds */
body.hts-studio.hts-studio.hts-studio .w6-way--review{ background:var(--desk-review-bed); border-color:var(--desk-review-edge); color:var(--desk-review-ink); }
body.hts-studio.hts-studio.hts-studio .w6-way--review .w6-way__k{ color:var(--desk-review-kicker); }
body.hts-studio.hts-studio.hts-studio .w6-way--fluency{ background:var(--desk-fluency-bed); border-color:var(--desk-fluency-edge); color:var(--desk-fluency-ink); }
body.hts-studio.hts-studio.hts-studio .w6-way--listening{ background:var(--desk-listen-bed); border-color:var(--desk-listen-edge); color:var(--desk-listen-ink); }
/* Word Constellation — navy in BOTH themes, its own class, never positional */
body.hts-studio.hts-studio.hts-studio .w6-way--cst{ background:var(--desk-cst-bed); border-color:var(--desk-cst-edge); color:var(--desk-cst-soft); }
body.hts-studio.hts-studio.hts-studio .w6-way--cst .w6-way__t{ color:var(--desk-cst-title); }
body.hts-studio.hts-studio.hts-studio .w6-way--cst .w6-go{ color:var(--desk-cst-arrow); }
body.hts-studio.hts-studio.hts-studio .w6-way:hover{ border-color:color-mix(in srgb,currentColor 55%,transparent); }
/* FIX 2026-09-23 (owner: "MASSIVE font color issues"): the description, action and kicker
   rules above set `color:var(--desk-muted)` on the element itself, which beat the card's
   inherited ink on the two DARK beds — navy-on-navy and navy-on-blue. On the dark cards
   every text takes the card's own light inks, explicitly. */
body.hts-studio.hts-studio.hts-studio .w6-way--review .w6-way__d,
body.hts-studio.hts-studio.hts-studio .w6-way--review .w6-way__a,
body.hts-studio.hts-studio.hts-studio .w6-way--review .w6-go{ color:var(--desk-review-ink); }
body.hts-studio.hts-studio.hts-studio .w6-way--review .w6-way__d{ color:var(--desk-review-kicker); }
/* 2026-09-24 (owner): the Review card is an <a>; `.w6-console a{color:inherit}` (0,4,2) beats the card's own ink at (0,4,1), and the title had no colour of its own, so it inherited the console's dark ink. The title gets the card's ink explicitly at (0,5,1) - white on blue in both themes. */
body.hts-studio.hts-studio.hts-studio .w6-way--review .w6-way__t{ color:var(--desk-review-ink); }
/* Same class, same fix: every coloured-bed card's text takes the card's own ink explicitly, so the console link rule can never override it. */
body.hts-studio.hts-studio.hts-studio .w6-way--fluency .w6-way__t,
body.hts-studio.hts-studio.hts-studio .w6-way--fluency .w6-way__d,
body.hts-studio.hts-studio.hts-studio .w6-way--fluency .w6-way__a,
body.hts-studio.hts-studio.hts-studio .w6-way--fluency .w6-go{ color:var(--desk-fluency-ink); }
body.hts-studio.hts-studio.hts-studio .w6-way--listening .w6-way__t,
body.hts-studio.hts-studio.hts-studio .w6-way--listening .w6-way__d,
body.hts-studio.hts-studio.hts-studio .w6-way--listening .w6-way__a,
body.hts-studio.hts-studio.hts-studio .w6-way--listening .w6-go{ color:var(--desk-listen-ink); }
body.hts-studio.hts-studio.hts-studio .w6-way--cst .w6-way__k,
body.hts-studio.hts-studio.hts-studio .w6-way--cst .w6-way__d,
body.hts-studio.hts-studio.hts-studio .w6-way--cst .w6-way__a{ color:var(--desk-cst-soft); }
body.hts-studio.hts-studio.hts-studio .w6-way--cst .w6-way__a .icon,
body.hts-studio.hts-studio.hts-studio .w6-way--cst .w6-go{ color:var(--desk-cst-arrow); }

/* -------------------------------------------------- Start a lesson (3 up) */
body.hts-studio.hts-studio.hts-studio .w6-lessons{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
body.hts-studio.hts-studio.hts-studio .w6-lesson{
  display:flex;
  align-items:center;
  gap:13px;
  min-height:88px;
  padding:14px 19px;
  border:1px solid var(--desk-line);
  border-radius:13px;
  background:var(--app-surface);
  box-shadow:var(--desk-shadow);
}
body.hts-studio.hts-studio.hts-studio .w6-lesson::before{
  content:"";
  position:absolute;
  left:0;
  top:20px;
  bottom:20px;
  width:3px;
  border-radius:0 3px 3px 0;
  background:var(--desk-track-sounds);
}
body.hts-studio.hts-studio.hts-studio .w6-lesson--read::before{ background:var(--desk-track-read); }
body.hts-studio.hts-studio.hts-studio .w6-lesson--fluency::before{ background:var(--desk-track-fluency); }
body.hts-studio.hts-studio.hts-studio .w6-lesson__art{ flex:0 0 48px; width:48px; height:45px; }
body.hts-studio.hts-studio.hts-studio .w6-lesson__t{ flex:1 1 auto; min-width:0; }
body.hts-studio.hts-studio.hts-studio .w6-lesson__t small{
  display:block;
  font-size:9px;
  font-weight:600;
  letter-spacing:1px;
  color:var(--desk-muted);
}
body.hts-studio.hts-studio.hts-studio .w6-lesson__t b{
  display:block;
  margin-top:5px;
  font-size:13px;
  line-height:1.3;
  letter-spacing:-.2px;
}
body.hts-studio.hts-studio.hts-studio .w6-lesson .w6-go{ color:var(--desk-accent); }
body.hts-studio.hts-studio.hts-studio .w6-lesson:hover{ border-color:var(--desk-accent); }

/* ------------------------------------------- Try something different (5) */
body.hts-studio.hts-studio.hts-studio .w6-more{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:16px;
}
body.hts-studio.hts-studio.hts-studio .w6-more > .trial-card{ min-width:0; height:100%; border-radius:14px; }
body.hts-studio.hts-studio.hts-studio .w6-more > .trial-card > .trial-card__blur{ height:100%; }
/* one ordinary surface for all five — Hear-the-Tone included */
body.hts-studio.hts-studio.hts-studio .w6-small{
  display:flex;
  align-items:center;
  gap:9px;
  height:100%;
  min-height:82px;
  min-width:0;
  padding:14px 12px;
  border:1px solid var(--desk-line);
  border-radius:14px;
  background:var(--app-surface);
  color:var(--app-ink);
  box-shadow:var(--desk-shadow);
}
body.hts-studio.hts-studio.hts-studio .w6-small__art{ flex:0 0 45px; width:45px; height:49px; }
body.hts-studio.hts-studio.hts-studio .w6-small__t{ flex:1 1 auto; min-width:0; }
body.hts-studio.hts-studio.hts-studio .w6-small__t b{
  display:block;
  font-size:13px;
  line-height:1.3;
  letter-spacing:-.35px;
}
body.hts-studio.hts-studio.hts-studio .w6-small__t small{
  display:block;
  margin-top:4px;
  font-size:10px;
  line-height:1.4;
  color:var(--desk-muted);
}
body.hts-studio.hts-studio.hts-studio .w6-small .w6-go{ color:var(--desk-accent); }
body.hts-studio.hts-studio.hts-studio .w6-small:hover{ border-color:var(--desk-accent); }

/* ------------------------------------------------------ Popular scenarios -
   Four photo cards + Explore all (128). When the strip cannot hold them it
   stays ONE row and scrolls sideways (the carousel), never a second row. */
body.hts-studio.hts-studio.hts-studio .w6-scenes{
  display:grid;
  grid-auto-flow:column;
  grid-template-columns:repeat(4,minmax(150px,1fr)) 128px;
  gap:15px;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
  padding-bottom:2px;
}
body.hts-studio.hts-studio.hts-studio .w6-scene{
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  border:1px solid var(--desk-line);
  border-radius:14px;
  background:var(--app-surface);
  color:var(--app-ink);
  box-shadow:var(--desk-shadow);
  scroll-snap-align:start;
}
body.hts-studio.hts-studio.hts-studio .w6-scene__img{
  display:block;
  height:72px;
  flex:0 0 72px;
  background:var(--app-surface-sunken);
}
body.hts-studio.hts-studio.hts-studio .w6-scene__img img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
body.hts-studio.hts-studio.hts-studio .w6-scene__body{
  position:relative;
  display:block;
  min-height:54px;
  padding:9px 40px 10px 14px;
}
body.hts-studio.hts-studio.hts-studio .w6-scene__body b{ display:block; font-size:14px; line-height:1.4; }
body.hts-studio.hts-studio.hts-studio .w6-scene__body small{ display:block; font-size:10px; line-height:1.4; color:var(--desk-muted); }
body.hts-studio.hts-studio.hts-studio .w6-scene__body .w6-go{ position:absolute; right:14px; top:14px; color:var(--desk-accent); }
body.hts-studio.hts-studio.hts-studio .w6-scene--all{
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:14px 10px;
  text-align:center;
  color:var(--desk-accent);
}
body.hts-studio.hts-studio.hts-studio .w6-scene__round{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  margin-bottom:9px;
  border:1px solid var(--desk-line);
  border-radius:50%;
}
body.hts-studio.hts-studio.hts-studio .w6-scene__round .icon{ width:20px; height:20px; }
body.hts-studio.hts-studio.hts-studio .w6-scene--all b{ font-size:13px; }
body.hts-studio.hts-studio.hts-studio .w6-scene--all small{ font-size:10px; color:var(--desk-muted); }
body.hts-studio.hts-studio.hts-studio .w6-scene:hover{ border-color:var(--desk-accent); }

/* ------------------------------------------------ narrower laptops ------
   Below ~1360 CSS px the five small cards cannot hold art + two lines at
   readable size: they reflow to three equal tracks (3 + 2), reading order
   kept. The four primary cards and the three lessons keep their counts —
   their tracks narrow and a long title wraps (all four grow together). */
@media (min-width:1200px) and (max-width:1359.98px) and (hover:hover) and (pointer:fine){
  body.hts-studio.hts-studio.hts-studio .w6-more{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}

/* ==========================================================================
   THE SHEET LAW — laptops and desktops (owner, 2026-09-25: "I don't know why
   we CONTINUE to have this issue on desktop").
   ≥1050 every sheet the studio layer opens is a CENTRED DIALOG: 680 wide at
   most, as tall as its content, vertically centred over its scrim, scrolling
   inside only when taller than the viewport less 24px margins. Phones and
   tablets keep their bottom sheets. The class, not the instances:
     · #device-sheet — every sheet opened through H.studio.sheet: the Academy
       menu, W1 showAppSheet (.w1-sheet), the B3/W2 word sheets (.w2-sheet),
       Explore's Categories / Collections (.b3-bsheet), the Fluency zone sheet
       (.b4-zsheet), the letter sheet (.b6-letter), the W3 sheets, help;
     · #qsheet .qsheet — the B5 setup sheet (H.qx.sheet / SetupChoice);
     · .lesson-aside under body.st-inspector-sheet — the scenario inspector;
     · dialog#search-dialog — already a centred modal ≥701; its corners.
   This block is linked LAST (studio_app_w6.css), outranks every band's sheet
   shape, and a future band's sheet only has to open in one of these hosts.
   ========================================================================== */
@media (min-width:1050px){
  body.hts-studio.hts-studio.hts-studio.hts-studio.hts-studio #device-sheet{
    position:fixed!important;
    inset:0!important;
    margin:auto!important;
    width:min(680px,calc(100vw - 48px))!important;
    max-width:none!important;
    height:fit-content!important;
    min-height:0!important;
    max-height:calc(100dvh - 48px)!important;
    border:1px solid var(--app-line-strong)!important;
    border-radius:var(--app-r-sheet)!important;
  }
  body.hts-studio.hts-studio.hts-studio.hts-studio.hts-studio #device-sheet::before{ display:none!important; }
  body.hts-studio.hts-studio.hts-studio.hts-studio.hts-studio #device-sheet > .sheet-content{ flex:1 1 auto; min-height:0; overflow-y:auto; }

  body.hts-studio.hts-studio.hts-studio.hts-studio.hts-studio #qsheet{
    display:grid!important;
    place-items:center!important;
    align-content:center!important;
    justify-content:center!important;
    padding:24px!important;
  }
  body.hts-studio.hts-studio.hts-studio.hts-studio.hts-studio #qsheet .qsheet{
    width:min(680px,calc(100vw - 48px))!important;
    max-width:none!important;
    height:auto!important;
    max-height:calc(100dvh - 48px)!important;
    overflow-y:auto!important;
    border:1px solid var(--app-line-strong)!important;
    border-radius:var(--app-r-sheet)!important;
  }

  body.hts-studio.hts-studio.hts-studio.hts-studio.hts-studio.st-inspector-sheet .st-page .lesson-aside{
    top:50%!important;
    bottom:auto!important;
    left:50%!important;
    right:auto!important;
    width:min(680px,calc(100vw - 48px))!important;
    max-width:none!important;
    max-height:calc(100dvh - 48px)!important;
    margin:0!important;
    border-bottom:1px solid var(--line)!important;
    border-radius:var(--app-r-sheet)!important;
    transform:translate(-50%,-50%) scale(.98)!important;
    opacity:0;
    transition:transform .2s ease, opacity .2s ease!important;
  }
  body.hts-studio.hts-studio.hts-studio.hts-studio.hts-studio.st-inspector-sheet .st-page .lesson-aside.is-open{
    transform:translate(-50%,-50%)!important;
    opacity:1;
  }
  body.hts-studio.hts-studio.hts-studio.hts-studio.hts-studio.st-inspector-sheet .st-page .sheet-grip{ display:none!important; }

  body.hts-studio.hts-studio.hts-studio.hts-studio.hts-studio dialog#search-dialog{ border-radius:var(--app-r-sheet)!important; }
}
