/* THE SIGNAL — fresh design system.
   Editorial, type-first, near-black calm. One accent. Hairlines, not boxes. */
@font-face{font-family:"Manrope";src:url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight:200 800;font-style:normal;font-display:swap}
:root{
  --ink:#0A0A0B; --ink2:#101012; --panel:#141416; --panel2:#1A1A1D;
  --bone:#F5F2EC; --ash:#969490; --ash2:#86837F; /* lifted one step (E12 legibility) */
  --blue:#5B8EC4; --blue-dim:rgba(91,142,196,.16); --blue-text:#93B8DD;
  --gold:#E3B341; /* reserved: PB moments only — nowhere else in the product */
  --mono:ui-monospace,"SF Mono","Cascadia Mono",Menlo,Consolas,monospace;
  --line:rgba(245,242,236,.09); --line2:rgba(245,242,236,.16);
  --ease:cubic-bezier(.23,1,.32,1);
  --font:"Manrope",-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  /* raised surface: panel lit from the logo's blue, ground stays locked */
  --raised:linear-gradient(165deg,#1E2A3D 0%,#171B23 56%,#131418 100%);
  --raised-soft:linear-gradient(160deg,#1B2432 0%,#15171C 60%,#141416 100%);
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
[hidden]{display:none !important}
html{background:var(--ink)}
body{font-family:var(--font);background:var(--ink);color:var(--bone);font-size:16px;line-height:1.45;
  -webkit-font-smoothing:antialiased;min-height:100dvh}
#app{max-width:520px;margin:0 auto;padding:0 22px 136px} /* clears the floating tab pill everywhere */
/* [Build V3-FACE] the bar-less client shell: the Day's flow ends in air, not in clearance for a bar that no longer stands */
body.nobar #app{padding-bottom:calc(212px + env(safe-area-inset-bottom))} /* [Build V145] the player's scroll clearance equals its composed bottom stack (below): session bar 64 + gap 10 + Next bar 58 + air 12 + the parked face 54 + air 14 — the last card can always scroll fully out from underneath all of it */
/* [Build V140] the glass-bar client shell: content clears the 70px bar (bottom 12px) and the conversation bubble floating above it */
body.hasbar #app{padding-bottom:calc(172px + env(safe-area-inset-bottom))}
/* [Build V3-FACE] the "‹ Your day" return strip — a slim sheet header under the top bar on every full surface the Day opens; sentence case, hairline border, no fill, no glow */
/* [Build V136] the pill hugs its content (items 5 + 17): width fit-content, padding 8px 16px; the served strip's placement rides #dayBack itself — the content edge at phone widths, the column edge at ≥564px */
.dayback{display:block;width:fit-content;padding:8px 16px;background:none;border:1px solid var(--line);border-radius:999px;color:var(--bone);font-family:inherit;font-weight:600;font-size:14px;line-height:1.2;text-align:left;cursor:pointer;transition:opacity .18s ease,background .18s ease}
#dayBack{margin:12px 0 0 22px}
@media (min-width:564px){#dayBack{margin-left:calc(50% - 238px)}}
.dayback:active{background:rgba(245,242,236,.05)}
.dayback[hidden]{display:none}
/* [Build V140] The switcher styles retired with the switcher: the client shell is the glass tab bar (.mwbar, below at the #tabbar block) plus the DayBack strip. */
#app.wide{max-width:760px}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
input,textarea,select{font:inherit;color:var(--bone);background:var(--panel);border:1px solid var(--line2);
  border-radius:12px;padding:13px 14px;width:100%;outline:none}
input:focus,textarea:focus{border-color:var(--blue)}
a{color:var(--blue-text);text-decoration:none}
.loading{padding:120px 0;text-align:center;letter-spacing:.35em;font-size:13px;color:var(--ash)}

/* ── top bar ─────────────────────────── */
#topbar{position:sticky;top:0;z-index:30;background:linear-gradient(var(--ink) 78%,transparent);
  padding:16px 22px 10px;max-width:760px;margin:0 auto;display:flex;align-items:center;justify-content:space-between}
.wordmark{font-weight:700;letter-spacing:.22em;font-size:13px}
.wordmark .dot{color:var(--blue)}
/* Build V143: the top bar's right zone is a real flex row now — one
   tidy right-aligned line, never a wrap. This rule REPLACES the dead
   `.topbar .who` selector it supersedes (the header carries the id,
   never the class, so that rule never matched) and retires the loose
   inline flow Sam flagged (2026-11-04): face + My profile + Coach
   floated as inline siblings, the hat pill's margin-left was the only
   spacing, and at phone width the third item wrapped to a ragged
   second row while the wordmark squeezed onto two lines. The row's
   gaps live here now; the pills' own margins are retired below. */
#topbar .who{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:nowrap;
  font-size:12.5px;color:var(--ash);letter-spacing:.02em}
#topbar .who>*{flex:none}
/* Build S: Sam's two-hat switch — a quiet pill in the top bar's right
   slot, present in his own room and the coach chrome only. */
.hatbtn{display:inline-flex;align-items:center;gap:4px;margin-left:0;padding:5px 8px;
  border:1px solid var(--line2);border-radius:999px;color:var(--blue-text);
  font-size:12px;font-weight:600;letter-spacing:.03em;vertical-align:middle}
.hatbtn svg{width:13px;height:13px;flex:none}
.hatbtn:active{background:var(--blue-dim)}

/* Build DF — "My profile": the top bar's right slot wears a real pill
   button in the hatbtn family — border, fill, pressed state, a full
   tap target — where the client's name once stood as plain text. */
.profilebtn{display:inline-flex;align-items:center;min-height:38px;padding:7px 9px;
  border:1px solid var(--line2);border-radius:999px;background:var(--panel2);
  color:var(--bone);font-size:13.5px;font-weight:600;letter-spacing:.01em;vertical-align:middle}
.profilebtn:active{background:var(--blue-dim);transform:scale(.97)}

/* Build DG — Progress folds: six quieter sections rest as closed rows
   under the standing four. The header is a full-width button in the
   app's row language — panel fill, hairline border, a plain hint of
   what's inside, the row family's chevron (turned down when open) —
   with a 48px target and the DF pressed state. The body opens in
   place; nothing else on the page moves. */
.foldlist{margin-top:30px}
.foldsect{margin-top:10px;background:var(--panel);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.foldhead{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:13px 16px;text-align:left}
.foldhead:active{background:var(--blue-dim)}
.foldtitle{font-size:16.5px;font-weight:560;flex:none}
.foldhint{font-size:13.5px;color:var(--ash);flex:1;min-width:0}
.foldchev{color:var(--ash2);font-size:19px;line-height:1;flex:none;transition:transform .18s ease}
.foldsect.open .foldchev{transform:rotate(90deg)}
.foldbody{border-top:1px solid var(--line);padding:4px 16px 14px}
.foldbody[hidden]{display:none}
@media (prefers-reduced-motion: reduce){.foldchev{transition:none}}

/* [Build V149] My World's section toggles (Sam's ruling,
   2026-11-05): a chevron button riding each section's own
   header row — the sections keep their standing dress exactly;
   only the header gains the fold. The bodies are plain wrappers
   (no card, no border): open, the page is v148's page. */
.mwsectheadrow{display:flex;justify-content:space-between;align-items:center;gap:12px}
.mwsectbtn{flex:none;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px}
.mwsectbtn:active{background:var(--blue-dim)}
.mwsectbtn .foldchev{font-size:22px}
.mwsectbtn[aria-expanded="true"] .foldchev{transform:rotate(90deg)}
.mwsectbody[hidden]{display:none}

/* [Build V141] The record stack, raised (Sam's first-walk ruling,
   2026-11-04 — "needs to look better" — approved on the measures
   preview): the five record folds (InBody, Weigh-ins, Measures,
   Archived, Sleep/steps/heart) become lit glass sheets — the
   raised-soft gradient, the card shadow, a lit top edge, and a
   quiet signal-blue spine down the left edge — with the title and
   its hint stacked on their own full-width lines, so a hint like
   "1 scan · latest Wed Oct 14" can never wrap mid-phrase again
   (it ellipsises whole, or not at all). The trophy shelves and
   the Add-to-the-record fold keep the standing fold dress above;
   only the .stackfold seats change. */
.foldsect.stackfold{position:relative;background:var(--raised-soft);border-color:var(--line2);border-radius:18px;
  box-shadow:var(--shadow-card),inset 0 1px 0 rgba(147,184,221,.13)}
.foldsect.stackfold::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;
  background:linear-gradient(180deg,rgba(147,184,221,.85),rgba(91,142,196,.18) 70%,rgba(91,142,196,.04));
  box-shadow:0 0 12px rgba(91,142,196,.35)}
.stackfold .foldhead{min-height:56px;padding:12px 16px 12px 19px}
.stackfold .foldtxt{flex:1;min-width:0}
.stackfold .foldtitle{display:block;font-weight:600;line-height:1.25}
.stackfold .foldhint{display:block;flex:none;margin-top:2px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stackfold .foldchev{color:var(--blue-text)}
.stackfold .foldbody{padding:6px 16px 16px 19px;background:rgba(10,10,11,.28)}
:root[data-theme="light"] .stackfold .foldbody{background:rgba(255,255,255,.35)}

/* [Build V141] The Body weight seat: the block's number, delta and
   log door move into one raised glass card — the hero number with
   a soft blue glow, a glass inset input, and the blue Log weight
   pill (the gradient is scoped to this seat; .btn.blue elsewhere
   keeps its standing ink-on-blue dress). The graph itself keeps
   its standing rendering, seated inside the card unchanged. */
.wcard{position:relative;margin-top:10px;background:var(--raised);border:1px solid var(--line2);border-radius:20px;
  padding:18px 18px 16px;box-shadow:var(--shadow-raise),inset 0 1px 0 rgba(147,184,221,.16);overflow:hidden}
.wcard::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;
  background:linear-gradient(180deg,rgba(147,184,221,.9),rgba(91,142,196,.15) 75%);
  box-shadow:0 0 14px rgba(91,142,196,.4)}
.wnum{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.wbig{font-size:46px;font-weight:720;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;
  text-shadow:0 0 26px rgba(91,142,196,.35)}
.wdelta{font-size:14px;color:var(--ash)}
.wdoor{display:flex;gap:8px;flex-wrap:nowrap;align-items:center;margin-top:16px}
.winput{flex:1 1 auto;min-width:0;min-height:44px;padding:10px 14px;border-radius:12px;border:1px solid var(--line2);
  background:rgba(10,10,11,.5);box-shadow:inset 0 2px 8px rgba(0,0,0,.45);font-size:15px}
.winput::placeholder{color:var(--ash2)}
:root[data-theme="light"] .winput{background:rgba(25,25,28,.05)}
.wdoor .btn{width:auto;padding:10px 20px;min-height:44px;border-radius:999px}
.wcard .btn.blue{background:linear-gradient(160deg,#6FA3D8,#4C77A5);color:#fff;
  box-shadow:0 8px 22px rgba(76,119,165,.35),inset 0 1px 0 rgba(255,255,255,.25)}

/* ── type ────────────────────────────── */
.kicker{font-size:11.5px;letter-spacing:.28em;text-transform:uppercase;color:var(--blue-text);font-weight:600}
.kicker.ash{color:var(--ash)}
h1.display{font-size:41px;line-height:1.04;letter-spacing:-.025em;font-weight:680;margin:10px 0 8px}
h2.sect{font-size:21px;letter-spacing:-.015em;font-weight:650;margin:34px 0 6px}
.lede{color:var(--ash);font-size:16.5px;line-height:1.5}
.small{font-size:13.5px;color:var(--ash)}
.tiny{font-size:12.5px;color:var(--ash2)}
.bignum{font-size:64px;line-height:.95;letter-spacing:-.035em;font-weight:700;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
.midnum{font-size:34px;letter-spacing:-.02em;font-weight:680;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
/* client-side label: sentence case, carries information, no chrome */
.eyebrow{font-size:14px;font-weight:600;color:var(--ash);letter-spacing:.01em}
.smalllabel{font-size:13.5px;font-weight:600;color:var(--ash)}
/* ── Build T: the headphones doctrine — Sam's own words (2026-10-16),
   carried verbatim at the sign-in, the client welcome, the Assistant
   tab, and the Coach More screen. The lead line carries the boundary
   at display weight; the rest follows at the lede's measures. ── */
.doctrine{margin:18px 0 4px}
.doctrine p{color:var(--ash);font-size:16.5px;line-height:1.55;margin-top:10px}
.doctrine p.dlead{color:var(--bone);font-size:21.5px;font-weight:680;line-height:1.3;letter-spacing:-.012em;margin-top:0}

/* ── agent line — the presence ───────── */
.agentline{display:flex;gap:11px;align-items:flex-start;padding:16px 0 4px;cursor:pointer}
.agentline .aline-av{flex:0 0 auto;width:31px;height:31px;border-radius:10px;margin-top:1px;
  box-shadow:0 4px 16px rgba(91,142,196,.4)}
.agentline p{font-size:16.5px;line-height:1.5;color:var(--bone)}
.agentline .from{display:block;font-size:13px;color:var(--ash);margin-bottom:2px;font-weight:600}

/* ── agent presence — lives ONLY in the Assistant tab (a Muse-like presence) ── */
.agentpresence{text-align:center;margin:30px 0 20px}
.ap-disc{display:inline-flex;align-items:center;justify-content:center;width:86px;height:86px;border-radius:50%;
  background:#101623;border:1px solid rgba(91,142,196,.6);
  box-shadow:0 0 0 6px rgba(10,10,11,.9),0 10px 38px rgba(91,142,196,.5);
  animation:apbreath 4.6s ease-in-out infinite}
.ap-disc img{width:58px;height:58px;border-radius:17px}
@keyframes apbreath{0%,100%{box-shadow:0 0 0 6px rgba(10,10,11,.9),0 10px 30px rgba(91,142,196,.38)}
  50%{box-shadow:0 0 0 6px rgba(10,10,11,.9),0 10px 46px rgba(91,142,196,.65)}}
@media (prefers-reduced-motion: reduce){.ap-disc{animation:none}}
.ap-name{margin-top:13px;font-size:14px;font-weight:600;color:var(--blue-text);letter-spacing:.01em}

/* ── world card — the Assistant screen presents the world it made ── */
.worldcard{margin:2px 0 22px;padding:16px 18px 8px;border-radius:20px;
  background:linear-gradient(165deg,rgba(91,142,196,.13),rgba(255,255,255,.02) 60%);
  border:1px solid rgba(91,142,196,.35)}
.worldcard .wrow{display:flex;justify-content:space-between;align-items:baseline;gap:16px;
  padding:10px 0;border-bottom:1px solid var(--line)}
.worldcard .wrow:last-child{border-bottom:none}
.worldcard .wrow span{font-size:14px;color:var(--ash)}
.worldcard .wrow b{font-size:15px;font-weight:620;color:var(--bone);text-align:right}

/* ── starter section (Build AQ) — above the thread: what the assistant
   can do, and four first questions that send as messages. Compact and
   standing; steel-blue on near-black; gold stays PB-only. ── */
.startercard{margin:2px 0 14px;padding:14px 16px;border-radius:18px;text-align:left;
  background:linear-gradient(165deg,rgba(91,142,196,.10),rgba(255,255,255,.02) 60%);
  border:1px solid rgba(91,142,196,.30)}
.starterline{font-size:14.5px;line-height:1.45;color:var(--bone)}
.starterchips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.stchip{appearance:none;font:inherit;font-size:13.5px;font-weight:560;color:var(--blue-text);
  background:var(--blue-dim);border:1px solid rgba(91,142,196,.45);border-radius:999px;
  padding:8px 13px;cursor:pointer;text-align:left}
.stchip:active{background:rgba(91,142,196,.30)}
.stchip:disabled{opacity:.55}

/* ── connect card — the Assistant tab's one job when no Muse is connected ── */
.connectcard{margin:2px 0 22px;padding:18px;border-radius:20px;text-align:left;
  background:linear-gradient(165deg,rgba(91,142,196,.13),rgba(255,255,255,.02) 60%);
  border:1px solid rgba(91,142,196,.35)}

/* ── chat colour card (Build BF) — the Assistant tab's room setting:
   the client picks the thread's accent from the palette the server
   serves. Every swatch carries its NAME in text (never colour alone);
   the standing one is marked with a ring and the word "current".
   The card itself keeps the house steel — only the thread restyles. ── */
.colorcard{margin:2px 0 22px;padding:16px 18px;border-radius:20px;text-align:left;
  background:var(--panel);border:1px solid var(--line)}
.ccrow{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.ccsw{display:inline-flex;align-items:center;gap:8px;font:inherit;font-size:13.5px;font-weight:560;
  color:var(--bone);background:var(--panel2);border:1px solid var(--line2);border-radius:999px;
  padding:8px 13px 8px 10px;cursor:pointer}
.ccsw .ccdot{width:16px;height:16px;border-radius:50%;flex:0 0 auto}
.ccsw .ccnow{font-size:11.5px;font-weight:650;color:var(--ash);letter-spacing:.02em}
/* Build DA: a swatch the other side already wears stands disabled
   in the picker — the never-match rule made visible before any
   error, with its tiny note naming whose it is. */
.ccsw .cctaken{font-size:11.5px;font-weight:650;color:var(--ash);letter-spacing:.02em}
.ccsw[disabled]{opacity:.48;cursor:default}
.ccsw[disabled]:active{transform:none}
.ccsw.on{border-color:var(--bone)}
.ccsw:active{transform:scale(.96)}
@media (prefers-reduced-motion: reduce){.ccsw:active{transform:none}}

/* ── rules & rows ────────────────────── */
.rule{border-top:1px solid var(--line);margin:18px 0}
.row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 0;border-bottom:1px solid var(--line);cursor:pointer;text-align:left;width:100%}
.row .t{font-size:16.5px;font-weight:560}
.row .s{font-size:13.5px;color:var(--ash);margin-top:2px}
.row .chev{color:var(--ash2);font-size:19px;flex:0 0 auto}
.row:active{background:var(--panel)}
.chip{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;letter-spacing:.04em;
  padding:5px 10px;border-radius:999px;border:1px solid var(--line2);color:var(--ash);white-space:nowrap}
.chip.blue{color:var(--blue-text);border-color:rgba(91,142,196,.45);background:var(--blue-dim)}
.chip.gold{color:var(--gold);border-color:rgba(227,179,65,.55);background:rgba(227,179,65,.15)}
.chip.bone{color:var(--ink);background:var(--bone);border-color:var(--bone)}
.state-dot{width:7px;height:7px;border-radius:50%;background:var(--ash);display:inline-block}
.state-dot.blue{background:var(--blue)}

/* ── buttons ─────────────────────────── */
.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:16px;border-radius:16px;
  background:var(--bone);color:var(--ink);font-weight:650;font-size:16.5px;transition:transform .12s var(--ease),opacity .2s}
.btn:active{transform:scale(.985)}
.btn.blue{background:var(--blue);color:#0A0A0B} /* [Build V136] ink on the brand blue — white measured ≈3.3:1 (item 6) */
/* the light source: the logo's blue, pooled behind the one action that matters */
.btn.glowbtn{box-shadow:0 12px 36px rgba(91,142,196,.42),0 0 58px rgba(91,142,196,.30)}
.btn.ghost{background:transparent;color:var(--bone);border:1px solid var(--line2)}
.btn.smallbtn{width:auto;padding:10px 16px;font-size:14.5px;border-radius:11px}
.btnrow{display:flex;gap:10px}.btnrow .btn{flex:1}

/* ── today hero ──────────────────────── */
.hero{padding:26px 0 4px}
.hero .dayname{font-size:15px;color:var(--ash)}
.focuscard{margin-top:14px;padding:22px;border-radius:20px;background:var(--raised-soft);
  border:1px solid var(--line)}
.focuscard .fc-top{display:flex;justify-content:space-between;align-items:baseline}
/* today: the session is the composition, not a card among cards */
.sessionhero{margin-top:16px;padding:26px 24px 24px;border-radius:24px;background:var(--raised);
  border:1px solid rgba(147,184,221,.16);box-shadow:0 24px 54px rgba(4,10,20,.5),inset 0 1px 0 rgba(245,242,236,.06)}
.sessionhero .fc-top{gap:12px}
.sessionhero .fc-top .eyebrow{min-width:0}
.sessionhero .heroname{font-size:43px;font-weight:680;letter-spacing:-.03em;line-height:1.02;margin-top:14px}
.sessionhero .herofocus{color:var(--blue-text);font-size:16px;font-weight:560;margin-top:7px}
.sessionhero .heromoves{color:var(--ash);font-size:15px;line-height:1.55;margin-top:14px}
.meter{height:5px;border-radius:99px;background:rgba(245,242,236,.1);overflow:hidden;margin-top:10px}
.meter i{display:block;height:100%;width:100%;transform:scaleX(0);transform-origin:left;background:var(--blue);border-radius:99px;transition:transform .8s var(--ease)} /* [Build V136] the fill rides transform, not width (item 24) */
.weekdots{display:flex;gap:7px;margin-top:6px}
.weekdots span{width:26px;height:5px;border-radius:99px;background:rgba(245,242,236,.12)}
.weekdots span.done{background:var(--bone)}
.weekdots span.today{background:var(--blue)}

/* ── plan ────────────────────────────── */
.dayblock{padding:18px 0;border-bottom:1px solid var(--line)}
.dayblock .db-head{display:flex;justify-content:space-between;align-items:baseline}
.exline{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:9px 0;border-bottom:1px dashed rgba(245,242,236,.05);flex-wrap:wrap}
.exline:last-child{border-bottom:0}
.exline .n{font-size:15.5px;flex:1 1 auto;min-width:0;overflow-wrap:break-word}
.exline .d{font-size:14px;color:var(--ash);font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;white-space:normal;text-align:right;flex:0 1 auto;min-width:0;max-width:100%;margin-left:auto}
/* Build CA: a long name beside a long set line must never collide —
   the row wraps and the set line wraps inside its own space instead
   of overflowing across the name. Sam's Oct 20 day sheet at phone
   width was the proof case. */

/* ── workout player ──────────────────── */
.setrow{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid var(--line)}
.setrow .sn{width:30px;color:var(--ash);font-size:13px;letter-spacing:.08em}
.setrow input{width:86px;text-align:center;padding:10px 6px;font-variant-numeric:tabular-nums}
/* Build AR — the PB light: gold is reserved for PB moments only, and this
   is the moment arriving early — the load field lights while the client
   is still typing, when the weight matches or beats the standing record
   and the set as entered counts (reps inside the prescribed range). */
.setrow input.pblight{border-color:var(--gold);background:rgba(227,179,65,.13);
  box-shadow:0 0 0 1px rgba(227,179,65,.55),0 0 20px rgba(227,179,65,.45)}
.setrow.done input.pblight{opacity:1}
.setrow .tick{margin-left:auto;width:44px;height:44px;border-radius:50%;border:1px solid var(--line2);
  display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--ash);transition:background .18s var(--ease),color .18s var(--ease),border-color .18s var(--ease),transform .18s var(--ease)}
.setrow .tick.on{background:var(--blue);border-color:var(--blue);color:#fff}
.setrow.done .sn,.setrow.done input{opacity:.45}
.timerface{font-size:76px;font-weight:700;letter-spacing:-.03em;text-align:center;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;padding:16px 0 2px}

/* ── food ────────────────────────────── */
.macrogrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px}
.macrogrid .mg{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px}
.macrogrid .mg b{font-size:19px;font-variant-numeric:tabular-nums}
.macrogrid .mg span{display:block;font-size:11.5px;letter-spacing:.02em;color:var(--ash);margin-top:2px}
/* food: kcal is the focal point — a ring, not a record */
.kcalwrap{position:relative;width:216px;height:216px;margin:20px auto 4px}
.kcalwrap svg{width:100%;height:100%;display:block}
.kcalring-bg{fill:none;stroke:rgba(245,242,236,.08);stroke-width:6}
.kcalring-fg{fill:none;stroke:var(--blue);stroke-width:6;stroke-linecap:round} /* [Build V136] the ring reads flat — glow filter removed (item 7) */
.kcalcenter{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:0 26px}
.kcalcenter .bignum{font-size:58px}
/* macros as aligned bars: label left, value right, bar beneath — nothing wraps */
.macrobar{margin-top:16px}
.macrobar .mb-top{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.macrobar .mb-label{font-size:15px;font-weight:600}
.macrobar .mb-val{font-size:14px;color:var(--ash);font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;white-space:nowrap}
.macrobar .mb-val b{color:var(--bone);font-size:16.5px;font-weight:700}
.macrobar .meter{margin-top:7px}
.seg{display:flex;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:4px;gap:4px}
.seg button{flex:1;padding:10px;border-radius:9px;font-size:14.5px;color:var(--ash);font-weight:560}
.seg button.on{background:var(--panel2);color:var(--bone);box-shadow:inset 0 0 0 1px var(--line2)}
input[type=range]{-webkit-appearance:none;appearance:none;height:5px;border-radius:99px;background:rgba(245,242,236,.14);padding:0;border:0}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:26px;border-radius:50%;background:var(--bone);border:0}

/* ── progress ────────────────────────── */
.spark{display:block;width:100%;height:74px;margin-top:8px}
.chartmeta{display:flex;justify-content:space-between;font-size:13px;color:var(--ash2);margin-top:2px;font-variant-numeric:tabular-nums}
.chartdot{position:absolute;right:-1px;width:11px;height:11px;border-radius:50%;background:var(--blue-text);
  border:2px solid var(--ink);transform:translate(50%,-50%);box-shadow:0 0 13px rgba(91,142,196,.65);pointer-events:none}
/* a PB is the biggest moment in the app: trophy, huge number, gold light on it.
   Gold lives here and in PB tags/chips — nowhere else. */
/* Build CM (Sam, 2026-10-23): the record treatment runs BRIGHTER —
   same gold, more light on it, product-wide. */
.pbtag{display:inline-flex;align-items:center;gap:6px;color:var(--gold);font-weight:700;font-size:12.5px;
  background:rgba(227,179,65,.2);border:1px solid rgba(227,179,65,.55);padding:2.5px 10px;border-radius:999px;white-space:nowrap;
  box-shadow:0 0 14px rgba(227,179,65,.22)}
.pbtag svg{width:14px;height:14px;flex:0 0 auto;filter:drop-shadow(0 0 4px rgba(227,179,65,.65))}
.pbhero{margin-top:14px;padding:22px;border-radius:20px;
  background:radial-gradient(120% 130% at 18% 0%,rgba(227,179,65,.22),rgba(227,179,65,0) 55%),var(--raised);
  border:1px solid rgba(227,179,65,.5);box-shadow:0 18px 44px rgba(4,10,20,.45),0 0 56px rgba(227,179,65,.2)}
.pbhero .pb-top{display:flex;align-items:center;gap:9px;color:var(--gold)}
.pbhero .pb-top svg{width:22px;height:22px;filter:drop-shadow(0 0 6px rgba(227,179,65,.7))}
.pbhero .pb-top span{font-size:14px;font-weight:650}
.pbhero .pbnum{font-size:47px;font-weight:700;letter-spacing:-.03em;line-height:1;margin-top:13px;
  font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;text-shadow:0 0 44px rgba(227,179,65,.75)}
/* Build CM: a record earned within the last 7 days (client-local,
   from its earned date) wears the FULL blaze on the hero; the list
   rows below carry the same fresh/settled split by their trophy. */
.pbhero.prfresh{border-color:rgba(227,179,65,.8);box-shadow:0 18px 44px rgba(4,10,20,.45),0 0 84px rgba(227,179,65,.34);
  background:radial-gradient(120% 130% at 18% 0%,rgba(227,179,65,.3),rgba(227,179,65,0) 58%),var(--raised)}
.prt{display:inline-flex;flex:0 0 auto;color:var(--gold)}
.prt svg{width:19px;height:19px}
.prt.prfresh{filter:drop-shadow(0 0 6px rgba(227,179,65,.8))}
.prt.prsettled{color:rgba(227,179,65,.48)}
.row.prfreshrow{background:linear-gradient(90deg,rgba(227,179,65,.09),rgba(227,179,65,0) 62%)}
.pbfinish{display:inline-flex;align-items:center;gap:10px;margin-top:16px;padding:12px 20px;border-radius:999px;
  color:var(--gold);background:rgba(227,179,65,.1);border:1px solid rgba(227,179,65,.38);
  font-size:18px;font-weight:700;box-shadow:0 0 36px rgba(227,179,65,.24)}
.pbfinish svg{width:21px;height:21px}
.pbhero .pb-ex{font-size:17px;font-weight:620;margin-top:7px}
.pbhero .pb-when{font-size:13.5px;color:var(--ash);margin-top:2px}

/* ── thread (transcript, not bubbles) ── */
.tmsg{padding:13px 0;border-bottom:1px solid var(--line)}
.tmsg .who{font-size:11px;letter-spacing:.02em;font-weight:650;margin-bottom:4px}
.tmsg.agent .who{color:var(--blue-text)} .tmsg.coach .who{color:var(--bone)} .tmsg.client .who{color:var(--ash)}
.tmsg p{font-size:16px;line-height:1.55}
.tmsg .at{font-size:12px;color:var(--ash2);margin-top:3px}
.memline{padding:11px 0;border-bottom:1px solid var(--line);font-size:15px;line-height:1.5}
.nbempty{color:var(--ash2);font-style:italic}
.memline .src{font-size:11px;letter-spacing:.02em;color:var(--ash2);display:block;margin-bottom:2px}

/* ── agent thread: real conversation, bubbles not records ── */
.chat{display:flex;flex-direction:column;gap:9px}
.daysep{text-align:center;font-size:13px;color:var(--ash2);margin:16px 0 5px;font-weight:560}
.msg{display:flex;gap:8px;align-items:flex-end;max-width:88%;animation:rise .45s var(--ease) both}
.msg .av{width:27px;height:27px;border-radius:9px;flex:0 0 auto;box-shadow:0 3px 10px rgba(91,142,196,.35)}
.msg .bubwrap{display:flex;flex-direction:column;min-width:0}
.msg .bub{padding:11px 14px;border-radius:18px;font-size:15.5px;line-height:1.5;overflow-wrap:break-word}
.msg .mtime{font-size:12px;color:var(--ash2);margin-top:4px}
.msg .who2{font-size:12px;color:var(--ash);font-weight:600;margin:0 0 3px 2px}
/* Build Y: the standing note at the top of the client's thread —
   a fixture of the room, quiet type, never an alert. */
.threadnote{font-size:13px;line-height:1.55;color:var(--ash);text-align:center;max-width:350px;margin:24px auto 12px}
/* Build Y: initials discs in the thread's avatar seats — the
   client's own face until she sets a photo, Sam's until he does. */
.msg .avdisc{display:inline-flex;align-items:center;justify-content:center;background:var(--blue-dim);color:var(--blue-text);font-size:10.5px;font-weight:700;letter-spacing:.03em;box-shadow:none}
.msg.agent,.msg.coach{align-self:flex-start}
/* Build DA: the Muse's bubbles wear HER colour (--ccm, the pair
   to the client's --cc) — the same one-fill law as the client's
   bubbles, white text on the fill (every palette entry is proven
   ≥4.5:1 with white text, qa-bg). Unset (a surface that never
   received the pair), the fallback is her default entry's fill. */
.msg.agent .bub{background:var(--ccm,#7E63C7);color:#fff;border-bottom-left-radius:6px}
.msg.coach .bub{background:linear-gradient(165deg,#24334B,#1A2334);border-bottom-left-radius:6px}
.msg.client{align-self:flex-end}
/* Build BF: the client's own bubbles wear the room's chat colour.
   Build BG: ONE fill per entry, everywhere it appears — --cc is set
   on the Assistant view from the palette the server serves and the
   bubbles render it SOLID (BF's 16% dim fill read far darker in the
   chat than the colour picked; Sam: "make the colors match"), with
   white message text on top (≥4.5:1 on every palette fill, qa-bg).
   Unset (every other surface), the fallback is the default entry's
   fill. */
.msg.client .bub{background:var(--cc,#4C77A5);color:#fff;border-bottom-right-radius:6px}
.msg.client .mtime{text-align:right}
/* Build BC: reactions — the light touch under a thread message.
   Chips are small pills (emoji + count); the reader's own stands
   filled in the steel-blue family. Gold stays PB-only, never here. */
.rrow{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:5px}
.msg.client .rrow{justify-content:flex-end}
.rchip{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;border:1px solid var(--line2);background:var(--panel2);font-size:13.5px;line-height:1.35;color:var(--bone);cursor:pointer;font-family:inherit}
.rchip span{font-size:12.5px;color:var(--ash);font-weight:650}
.rchip.mine{background:var(--cc-dim,rgba(91,142,196,.16));border-color:var(--cc,#5B8EC4)}
.rchip.mine span{color:var(--cc-text,#93B8DD)}
/* Build BG: inside the client's Assistant view (the only place --cc
   is set), her own chips wear the ONE fill solid, like her bubbles —
   the rules above stay as the coach desk's house treatment, where
   --cc is never set and the fallbacks paint. */
.ccview .rchip.mine{background:var(--cc);border-color:var(--cc);color:#fff}
.ccview .rchip.mine span{color:#fff}
.rchip:active{transform:scale(.94)}
.radd{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:999px;border:1px solid transparent;background:transparent;color:var(--ash2);font-size:14px;cursor:pointer;padding:0;font-family:inherit}
.radd:active{background:var(--cc-dim,rgba(91,142,196,.16));color:var(--cc-text,#93B8DD)}
.ccview .radd:active{background:var(--cc);color:#fff}
.rpalette{display:flex;gap:4px;margin-top:6px;padding:6px 8px;border-radius:999px;background:var(--panel2);border:1px solid var(--line);width:max-content;max-width:100%}
.rpalette[hidden]{display:none}
.rpalette button{font-size:19px;line-height:1;background:transparent;border:0;padding:4px 5px;cursor:pointer;border-radius:8px;font-family:inherit}
.rpalette button:active{transform:scale(1.25)}
.tmsg .rrow{margin-top:7px}
.tmsg .rpalette{margin-top:8px}
@media (prefers-reduced-motion: reduce){.rchip:active,.rpalette button:active{transform:none}}
.composer{display:flex;gap:9px;align-items:flex-end}
.composer textarea{flex:1;border-radius:20px;padding:12px 16px;resize:none;line-height:1.45;min-height:48px}
.sendbtn{width:48px;height:48px;border-radius:50%;background:var(--cc,#4C77A5);color:#fff;font-size:20px;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px var(--cc-glow,rgba(76,119,165,.4));transition:transform .12s var(--ease)}
.sendbtn:active{transform:scale(.94)}
/* Build CZ: the dictation mic — send-button scale, quiet until it listens */
.micbtn{width:48px;height:48px;border-radius:50%;background:transparent;border:1px solid var(--line2);color:var(--ash);flex:0 0 auto;position:relative;
  display:flex;align-items:center;justify-content:center;transition:transform .12s var(--ease)}
.micbtn svg{width:22px;height:22px}
.micbtn:active{transform:scale(.94)}
.micbtn.on{background:var(--cc,#4C77A5);border-color:transparent;color:#fff;box-shadow:0 8px 24px var(--cc-glow,rgba(76,119,165,.4))}
.micbtn.on::after{content:'';position:absolute;top:3px;right:3px;width:9px;height:9px;border-radius:50%;background:#FF6B5E;animation:micpulse 1.2s ease-in-out infinite}
.photobtn{width:48px;height:48px;border-radius:50%;background:transparent;border:1px solid var(--line2);font-size:20px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;transition:transform .12s var(--ease)}
.photobtn:active{transform:scale(.94)}
.photobtn:disabled{opacity:.5}
.chatphoto{display:block;width:100%;max-width:230px;border-radius:12px;margin:2px 0 6px}
.bub .chatphoto:last-child,.tmsg .chatphoto{margin-bottom:4px}
@keyframes micpulse{0%,100%{opacity:1}50%{opacity:.2}}
@media (prefers-reduced-motion: reduce){.micbtn.on::after{animation:none}}
/* memory on the client side: quiet cards, sentence case */
.memcard{background:var(--panel);border:1px solid var(--line);border-radius:15px;padding:13px 15px;margin-top:9px;
  font-size:15px;line-height:1.55}
.memcard .memsrc{font-size:13px;color:var(--ash2);display:block;margin-bottom:3px}

/* ── check-in flow ───────────────────── */
.qprog{display:flex;gap:6px;margin:18px 0 8px}
.qprog i{flex:1;height:4px;border-radius:99px;background:rgba(245,242,236,.12)}
.qprog i.on{background:var(--blue)}
textarea.big{min-height:120px;font-size:17px;line-height:1.5;resize:vertical}

/* ── coach ───────────────────────────── */
.card{padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--panel);margin-top:14px}
.card .rankline{display:flex;justify-content:space-between;align-items:center}
.card h3{font-size:19px;letter-spacing:-.01em;font-weight:640;margin:8px 0 5px}
.card p{color:var(--ash);font-size:15px;line-height:1.5}
.card .actions{margin-top:14px;display:flex;gap:10px;flex-wrap:wrap}
/* attention: rank you can see — the first card is the moment, the rest are a queue */
.ranknum{font-family:var(--mono);font-size:13px;font-weight:600;color:var(--ash)}
.card.rank1{padding:24px;background:var(--raised-soft);border-color:rgba(147,184,221,.2)}
.card.rank1 .ranknum{font-size:16px;color:var(--blue-text)}
.card.rank1 h3{font-size:22px;margin:10px 0 6px}
.card.rank1 p{font-size:15.5px}
.card.compact{padding:14px 16px;margin-top:10px}
.card.compact h3{font-size:16.5px;margin:5px 0 3px}
.card.compact p{font-size:13.5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card.compact .actions{margin-top:10px}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-top:16px;overflow-x:auto}
.tabs button{padding:11px 13px;font-size:14.5px;color:var(--ash);font-weight:560;border-bottom:2px solid transparent;white-space:nowrap}
.tabs button.on{color:var(--bone);border-bottom-color:var(--blue)}
/* Build CC: a strip that continues must say so. The wrap carries
   a right-edge fade and a chevron while any tab stands past the
   edge (wireTabStrip keeps the .more class honest as it moves);
   at phone width the tabs pack tighter so the next one always
   peeks past the edge — a cut mid-label, never a fake complete
   set. The drawer's strip wraps to two rows instead: all eight
   labels in view at once, nothing to hunt for. */
.tabswrap{position:relative}
.tabswrap .tabmore{position:absolute;right:2px;top:50%;transform:translateY(-58%);font-size:22px;line-height:1;color:var(--blue-text);opacity:0;pointer-events:none;transition:opacity .2s}
.tabswrap.more .tabmore{opacity:1}
.tabswrap.more::after{content:"";position:absolute;top:0;right:0;bottom:1px;width:56px;pointer-events:none;background:linear-gradient(to right,rgba(10,12,15,0),var(--ink))}
.tabs{scrollbar-width:none;-webkit-overflow-scrolling:touch}
.tabs::-webkit-scrollbar{display:none}
@media(max-width:560px){.tabs button{padding:11px 9px;font-size:14px}}
#drawer .tabs{flex-wrap:wrap;overflow-x:visible}
#drawer .tabswrap.more::after{display:none}
#drawer .tabswrap .tabmore{display:none}
.replybox{margin-top:22px;border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:var(--panel)}
.replybox textarea{width:100%}

/* ── sign-in ─────────────────────────── */
.signin{padding:9dvh 0 0}
.signin .logo{width:74px;height:74px;border-radius:19px;background:var(--bone);display:flex;align-items:center;justify-content:center;margin-bottom:26px}
.signin .fineprint{margin-top:26px;color:var(--ash2);font-size:13px;line-height:1.6}
.statrow{display:flex;margin-top:30px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.srcell{flex:1;padding:14px 12px 13px 0}
.srcell + .srcell{border-left:1px solid var(--line);padding-left:14px}
.srcell b{display:block;font-family:var(--mono);font-size:19px;font-weight:600;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.srcell span{display:block;margin-top:3px;font-family:var(--mono);font-size:10.5px;letter-spacing:.02em;color:var(--ash);line-height:1.5}

/* [Build V136] item 21, corrected at integration: the CLIENT bar's machinery retired with the bar — the centre-disc rules, the DH glyph states, the tabglow keyframes and the --tabg-* vars are gone. The bar ELEMENT and its structural rules stand: they are the COACH's live navigation (coachChrome paints #tabbar on every coach surface). [Build V140] the element is shared again: paintClientTabs paints the client's glass bar into it under the .mwbar class (rules after this block, all .mwbar-scoped so the coach bar never inherits them; tabbar() strips the class when the coach bar paints). The coach drawer's tab-strip rules above are live chrome and stand untouched. */
#tabbar{position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;justify-content:center;
  padding:0 14px calc(10px + env(safe-area-inset-bottom));pointer-events:none}
#tabbar .inner{pointer-events:auto;display:flex;width:100%;max-width:500px;border-radius:27px;padding:6px;
  background:rgba(19,21,27,.74);backdrop-filter:blur(20px) saturate(1.35);-webkit-backdrop-filter:blur(20px) saturate(1.35);
  border:1px solid var(--line2);box-shadow:0 18px 44px rgba(0,0,0,.55)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  #tabbar .inner{background:#14161D}}
#tabbar button{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 0 6px;border-radius:21px;
  color:var(--ash2);font-size:11px;letter-spacing:.02em;font-weight:600;transition:background .2s var(--ease),color .2s,box-shadow .2s var(--ease),transform .2s var(--ease)}
#tabbar button svg{width:24px;height:24px}
#tabbar button.on{color:var(--bone);background:rgba(91,142,196,.17)}
#tabbar button.on svg{color:var(--blue-text)}

/* ── [Build V140] THE GLASS CLIENT TAB BAR (.mwbar) ─────────────────
   The approved preview's bar, scoped entirely under #tabbar.mwbar so
   the coach bar above never inherits it: fixed, 12px in from each
   side, 70px tall, radius 30px, glass blur 28px saturate(1.6). The
   bloom and the capsule sit behind the active tab (top 8px, height
   54px, radius 22px, width one tab) and slide via transform set
   inline by paintClientTabs. No centre/assistant button — the
   conversation bubble floats above the bar (bottom 96px). */
#tabbar.mwbar{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));height:70px;max-width:496px;margin:0 auto;padding:0;display:block}
#tabbar.mwbar .mw-glass{position:absolute;inset:0;border-radius:30px;overflow:hidden;background:linear-gradient(115deg,rgba(147,184,221,.13),rgba(147,184,221,0) 46%),linear-gradient(168deg,rgba(38,48,66,.58),rgba(13,15,21,.78) 55%,rgba(10,11,15,.86));backdrop-filter:blur(28px) saturate(1.6);-webkit-backdrop-filter:blur(28px) saturate(1.6);border:1px solid transparent;box-shadow:0 22px 48px rgba(0,0,0,.55),0 4px 14px rgba(0,0,0,.4),inset 0 1px 0 rgba(147,184,221,.28),inset 0 -1px 0 rgba(0,0,0,.35)}
#tabbar.mwbar .mw-glass::before{content:"";position:absolute;inset:0;border-radius:30px;padding:1px;background:linear-gradient(180deg,rgba(147,184,221,.5),rgba(147,184,221,.07) 42%,rgba(245,242,236,.05));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  #tabbar.mwbar .mw-glass{background:#111A26}}
#tabbar.mwbar .mw-bloom{position:absolute;top:16px;left:8px;width:calc((100% - 16px)/3);height:44px;border-radius:50%;background:var(--blue);opacity:.34;filter:blur(24px);transition:transform .5s var(--ease);pointer-events:none}
#tabbar.mwbar .mw-capsule{position:absolute;top:8px;left:8px;width:calc((100% - 16px)/3);height:54px;border-radius:22px;background:radial-gradient(120% 150% at 50% 0%,rgba(147,184,221,.34),rgba(91,142,196,.16) 58%,rgba(91,142,196,.09));border:1px solid rgba(147,184,221,.30);box-shadow:0 0 22px rgba(91,142,196,.28),inset 0 1px 0 rgba(220,235,249,.35),inset 0 -8px 16px rgba(76,119,165,.12);transition:transform .5s var(--ease);pointer-events:none}
#tabbar.mwbar .mw-tabs{position:relative;display:flex;height:100%;padding:8px;pointer-events:auto}
#tabbar.mwbar button.mw-tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3.5px;padding:0;border-radius:22px;background:none;box-shadow:none;color:var(--ash2);position:relative;z-index:1;transition:color .3s var(--ease)}
#tabbar.mwbar button.mw-tab svg.mw-tic{width:31px;height:31px;opacity:.66;filter:saturate(.68) brightness(.86) drop-shadow(0 1px 4px rgba(46,155,230,.22));transition:transform .35s var(--ease),opacity .35s var(--ease),filter .35s var(--ease)}
#tabbar.mwbar button.mw-tab:active svg.mw-tic{transform:scale(.9)}
#tabbar.mwbar .mw-tlabel{font-size:11px;font-weight:600;letter-spacing:.015em;line-height:1}
#tabbar.mwbar button.mw-tab.on{color:var(--bone);background:none;box-shadow:none}
#tabbar.mwbar button.mw-tab.on svg.mw-tic{opacity:1;filter:saturate(1.1) brightness(1.07) drop-shadow(0 0 5px rgba(96,201,255,.6)) drop-shadow(0 0 15px rgba(46,155,230,.38));transform:translateY(-1px)}
#tabbar.mwbar button.mw-tab.on .mw-tlabel{font-weight:750}
#tabbar.mwbar .mw-tick{width:14px;height:2.5px;border-radius:2px;background:var(--blue-text);opacity:0;transform:scaleX(.3);box-shadow:0 0 8px rgba(147,184,221,.8);transition:all .35s var(--ease)}
#tabbar.mwbar button.mw-tab.on .mw-tick{opacity:1;transform:scaleX(1)}
@media (prefers-reduced-motion: reduce){#tabbar.mwbar .mw-bloom,#tabbar.mwbar .mw-capsule,#tabbar.mwbar button.mw-tab svg.mw-tic{transition:none}}

/* Build CM: an animated face fades in when its bytes land — a
   still poster state, never a pop. */
img[data-anim]{transition:opacity .45s ease}
img[data-anim].avwait{opacity:0}

/* ── ritual — the headphones moment ──── */
#ritual{position:fixed;inset:0;z-index:100;background:var(--ink);overflow:hidden;transition:opacity .45s var(--ease)}
#ritual .glow{position:absolute;inset:0;background:radial-gradient(115% 85% at 50% 40%,rgba(38,84,138,.5) 0%,rgba(16,32,54,.28) 42%,transparent 72%);opacity:.45;transition:opacity 1.1s var(--ease)}
#ritual.on .glow{opacity:1}
#ritual .noise{position:absolute;font-size:13px;color:rgba(170,168,164,.62);letter-spacing:.06em;white-space:nowrap;
  animation:jitter 1.6s ease-in-out infinite alternate;transition:opacity .95s var(--ease),filter .95s var(--ease),transform .95s var(--ease)}
@keyframes jitter{from{transform:translate(0,0)}to{transform:translate(1.5px,-2px)}}
#ritual.silence .noise{opacity:0;filter:blur(6px);transform:translateY(12px) scale(.97);animation:none}
#ritual .stage{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 30px;text-align:center}
#ritual .mark{width:96px;height:96px;border-radius:26px;opacity:0;transform:scale(.8) translateY(10px);
  transition:opacity .8s var(--ease),transform .8s var(--ease),box-shadow 1.1s var(--ease);box-shadow:0 0 0 rgba(91,142,196,0)}
#ritual.on .mark{opacity:1;transform:none;box-shadow:0 20px 64px rgba(91,142,196,.45),0 0 110px rgba(91,142,196,.28)}
#ritual .center{margin-top:26px;opacity:0}
#ritual.silence .center{animation:rise .7s var(--ease) both}
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
#ritual .brandline{margin-top:10px;color:var(--ash)}
#ritual.out{opacity:0;pointer-events:none}

/* ── title card (workout start) ──────── */
#titlecard{position:fixed;inset:0;z-index:90;background:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:0 30px;transition:opacity .4s var(--ease)}
#titlecard.out{opacity:0;pointer-events:none}
#titlecard .tc-mark{width:64px;height:64px;border-radius:18px;box-shadow:0 14px 44px rgba(91,142,196,.4);animation:rise .5s var(--ease) both}
#titlecard .tc-label{font-size:44px;font-weight:700;letter-spacing:-.025em;line-height:1.05;margin-top:22px;animation:rise .5s var(--ease) .08s both}
#titlecard .tc-focus{color:var(--ash);font-size:17px;margin-top:9px;animation:rise .5s var(--ease) .16s both}
#titlecard .tc-rule{width:44px;height:3px;border-radius:99px;background:var(--blue);margin-top:20px;animation:rise .5s var(--ease) .22s both}

/* ── brand placements ────────────────── */
.tbicon{width:26px;height:26px;border-radius:7px;display:block}
.brandwrap{display:flex;align-items:center;gap:9px}
.lockupband{width:100%;max-width:420px;margin:0 auto 24px;display:block;border-radius:18px;box-shadow:0 16px 48px rgba(23,58,102,.4);
  animation:bandglow 6s ease-in-out infinite alternate}
@keyframes bandglow{from{box-shadow:0 16px 44px rgba(23,58,102,.32)}to{box-shadow:0 16px 58px rgba(50,110,175,.5)}}
.lockupfoot{width:min(290px,82%);display:block;margin:28px auto 12px;border-radius:14px;box-shadow:0 12px 38px rgba(23,58,102,.35)}
.finishmark{width:76px;height:76px;border-radius:21px;box-shadow:0 16px 48px rgba(91,142,196,.42);animation:rise .5s var(--ease) both}
.tmsg .who{display:flex;align-items:center;gap:7px}
.ticon{width:20px;height:20px;border-radius:6px;display:block}
/* Build Y: desk thread faces — the photo or the initials, at the
   size of the author label they sit beside. */
.tface{width:20px;height:20px;border-radius:6px;object-fit:cover;flex:0 0 auto}
span.tface{display:inline-flex;align-items:center;justify-content:center;background:var(--blue-dim);color:var(--blue-text);font-size:8.5px;font-weight:700;letter-spacing:.02em}
.mono{width:40px;height:40px;border-radius:12px;background:var(--blue-dim);color:var(--blue-text);display:inline-flex;
  align-items:center;justify-content:center;font-weight:700;font-size:13.5px;letter-spacing:.03em;flex:0 0 auto}
.mono.big{width:52px;height:52px;border-radius:15px;font-size:16px}

/* ── Build X: profile faces ──────────────────────────────────────
   A photo takes the exact seat the initials disc already had — same
   boxes, same palette, no new shapes. Round faces are the one new
   silhouette: a person, not a tile. */
img.faceimg{object-fit:cover;padding:0}
.tbav{width:26px;height:26px;border-radius:50%;object-fit:cover;vertical-align:middle;margin-right:0}
/* Build V143: the no-photo face — a glass disc in the .tbav's own box
   (26px and round; the global border-box keeps the hairline border
   inside the 26) carrying the client's first initial, bone on the
   pill family's glass. Quiet by design — no label, no ring, nothing
   to explain; the seat reads as theirs until their photo takes it. */
.tbavph{display:inline-flex;align-items:center;justify-content:center;background:var(--panel2);
  border:1px solid var(--line2);color:var(--bone);font-size:11.5px;font-weight:700;letter-spacing:.02em}
.msg .av{object-fit:cover}
/* ── Build AN: the Muse's own face ─────────────────────────────
   When the room holds the Muse's avatar (mirrored from its
   Muse app), it takes the seats the Signal mark took — same
   boxes — but under a round crop (a face, not a tile) and a
   gentle idle drift so the presence reads alive. Reduced motion
   stills it, here and in the global rule further down. */
.msg img.museface,.tmsg img.museface{border-radius:50%;animation:museidle 5.5s ease-in-out infinite}
.ap-disc img.museface{border-radius:50%;object-fit:cover;animation:museidle 5.5s ease-in-out infinite}
@keyframes museidle{0%,100%{transform:scale(1)}50%{transform:scale(1.055)}}
@media (prefers-reduced-motion: reduce){img.museface{animation:none}}
/* Build AP: the seat rules above out-specify the plain img.museface
   rule, so under reduced motion the drift's NAME survived (its 0.01ms
   global duration masked it, but the animation never truly stilled).
   These seat-for-seat rules win the cascade — the drift stops. */
@media (prefers-reduced-motion: reduce){.ap-disc img.museface,.msg img.museface,.tmsg img.museface,.museid img.museface{animation:none}}
/* ── Build AT: the client list row carries the whole team ─────────
   The row is a frame, not a button: the room opens from the main
   button (the client's face, their standing line, their Muse's
   identity, the status chip), and the row's own Chat thread button
   lands in the conversation. The Muse's face is round (the
   museface) beside the client's rounded square, captioned "Their
   Muse" — shape, placement and words distinguish them, never
   colour alone. Unpaired is the mark, dimmed, with its honest
   words; there is no face to fake. */
.clientrow{cursor:default}
.rowmain{display:flex;align-items:center;gap:14px;flex:1;min-width:0;background:none;border:0;padding:0;color:inherit;font:inherit;text-align:left;cursor:pointer}
.rowtxt{flex:1;min-width:0}
.museid{display:flex;align-items:center;gap:9px;flex:0 0 auto}
.museid img.listface{width:34px;height:34px;flex:0 0 auto}
.museid img.museface{border-radius:50%;object-fit:cover;animation:museidle 5.5s ease-in-out infinite}
.museid img.markface{border-radius:50%;background:var(--blue-dim);padding:6px;box-sizing:border-box}
.museid img.markface.dim{opacity:.45}
.musetxt{display:flex;flex-direction:column}
.musename{font-size:14.5px;font-weight:560}
.musename.none{color:var(--ash);font-weight:500}
.musecap{font-size:11px;color:var(--ash);letter-spacing:.03em}
/* ── Build AY: the client row at phone widths ─────────────────────
   The AT row is one flex line, and at a phone's width that line has
   nowhere to go: the name column crushed to a word per line and the
   Muse seat floated over the standing text as it scrolled (Sam's
   recording, 2026-10-18). Under 680px the row stacks on purpose —
   a grid: the client's face down the left, name + standing line at
   full width on the first line, their Muse and the status chip on
   the second, and the chat door full-width under the row. Nothing
   overlaps, nothing wraps tighter than the full row width. Desktop
   keeps the AT line exactly as designed. */
@media (max-width:680px){
  .clientrow{flex-wrap:wrap;row-gap:12px}
  .clientrow .rowmain{flex:1 1 100%;display:grid;grid-template-columns:40px minmax(0,1fr) auto;grid-template-areas:"face txt txt" "face muse end";column-gap:14px;row-gap:9px;align-items:center}
  .clientrow .rowmain > .mono{grid-area:face}
  .clientrow .rowtxt{grid-area:txt}
  .clientrow .museid{grid-area:muse}
  .clientrow .rowend{grid-area:end}
  .clientrow [data-chat]{flex:1 1 100%}
  /* the room's metric tiles: three across is a desktop rhythm — at
     phone width each tile got ~83px and the values wrapped mid-phrase
     ("420 /" over "2000"). Two across gives every tile a full line. */
  #app.wide .macrogrid{grid-template-columns:repeat(2,1fr)}
}
/* Build AY: a decorative bleed must never widen the page. The Today
   hero's glow (::before, ±60px) painted past the viewport and gave
   the page a 38px horizontal wobble on phones. Clipping the root's
   x-overflow keeps the glow everywhere it is visible — it only
   removes the part that was never on screen. (overflow:clip, not
   hidden: no scroll container is created, so the sticky top bar
   keeps sticking.) */
html,body{overflow-x:clip}
.pfav{width:76px;height:76px;border-radius:50%;object-fit:cover;flex:0 0 auto}
span.pfav{display:inline-flex;align-items:center;justify-content:center;background:var(--blue-dim);
  color:var(--blue-text);font-weight:700;font-size:24px;letter-spacing:.03em}
.cpav{width:112px;height:112px;border-radius:50%;object-fit:cover;display:block}
span.cpav{display:inline-flex;align-items:center;justify-content:center;background:var(--blue-dim);
  color:var(--blue-text);font-weight:700;font-size:34px;letter-spacing:.03em}
.coachentry{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:var(--panel);
  border:1px solid var(--line);border-radius:16px;padding:13px 15px;margin-top:16px;cursor:pointer}
.coachentry .ceav{width:46px;height:46px;border-radius:50%;object-fit:cover;flex:0 0 auto}
span.ceav{display:inline-flex;align-items:center;justify-content:center;background:var(--blue-dim);
  color:var(--blue-text);font-weight:700;font-size:15px}
.coachentry .ce-t{display:block;font-weight:650;font-size:16px}
.coachentry .ce-s{display:block;color:var(--ash);font-size:13.5px;margin-top:1px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Build AC: a corpus frame inside an expanded Help topic — the same
   screenshot the printed guide carries, at reading width. */
.hframe{display:block;width:100%;max-width:330px;border:1px solid var(--line);border-radius:10px;margin-top:10px}

/* ── rest ring ───────────────────────── */
.ringwrap{position:relative;width:198px;height:198px;margin:10px auto 0}
.ringwrap svg{width:100%;height:100%;display:block;filter:drop-shadow(0 0 20px rgba(91,142,196,.38))}
.ringbg{fill:none;stroke:rgba(245,242,236,.09);stroke-width:5}
.ringfg{fill:none;stroke:var(--blue);stroke-width:5;stroke-linecap:round;transition:stroke-dashoffset .3s linear}
.ringwrap .timerface{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:60px;padding:0}
.restcard{background:var(--raised)}

/* ── coach canvas (desktop-first big picture) ── */
#app.full{max-width:1460px;padding:0 26px 140px}
.canvas-wrap{display:grid;grid-template-columns:308px 1fr;gap:22px;margin-top:14px;align-items:start}
.railatt{position:sticky;top:74px}
.railatt .card{margin-top:12px;padding:16px}
.railatt .card h3{font-size:16.5px}
.railatt .card p{font-size:13.5px}
.statsrow{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.stat{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:14px 16px}
.stat b{font-size:27px;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.stat span{display:block;font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ash);margin-top:2px}
.lenses{display:flex;gap:8px;margin:16px 0 4px;flex-wrap:wrap}
.lenses button{padding:8px 14px;border-radius:999px;border:1px solid var(--line2);color:var(--ash);font-size:13.5px;font-weight:560}
.lenses button.on{color:var(--ink);background:var(--bone);border-color:var(--bone)}
.map{position:relative;margin-top:10px;border:1px solid var(--line);border-radius:24px;overflow:hidden;padding:16px;
  background:radial-gradient(90% 90% at 50% 0%,rgba(38,84,138,.20) 0%,rgba(16,32,54,.08) 46%,transparent 75%),var(--ink2)}
/* Build BZ: the node graph (absolute nodes + SVG lines + center hub)
   is retired — the grid below guarantees separation by construction. */
.nodegrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:13px}
.testrooms{margin-top:18px;border-top:1px dashed var(--line2);padding-top:14px}
.testtoggle{padding:8px 14px;border-radius:999px;border:1px solid var(--line2);color:var(--ash);font-size:13.5px;font-weight:560;background:none;cursor:pointer}
.testtoggle:hover{color:var(--ink);border-color:var(--ash)}
.testrooms .card{margin-top:12px}
#attTestRooms{margin-top:26px}
.node{position:relative;width:auto;text-align:left;background:rgba(20,20,22,.92);
  border:1px solid var(--line2);border-radius:17px;padding:13px 14px;transition:opacity .3s var(--ease),border-color .3s,box-shadow .3s;cursor:pointer;backdrop-filter:blur(6px)}
.node:hover{border-color:rgba(91,142,196,.6)}
.node .n-head{display:flex;align-items:center;gap:9px}
.node .n-id{min-width:0}
.node .n-name{display:block;font-weight:700;font-size:16.5px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.attcard h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.attcard .rankline .kicker{white-space:nowrap}
/* Build CR: the coach home switcher + the Notification Feed. X's
   anatomy in SIGNAL's brand — near-black cards, steel-blue accent;
   gold appears ONLY on record lines (the standing one-gold rule:
   records are record moments). Unread stands brighter; read settles. */
.homeswitch{display:inline-flex;gap:2px;background:var(--panel);border:1px solid var(--line2);border-radius:999px;padding:3px;margin:14px 0 6px}
.homeswitch button{padding:7px 18px;border-radius:999px;color:var(--ash);font-size:14px;font-weight:600}
.homeswitch button.on{color:var(--ink);background:var(--bone)}
.feedbadge{display:inline-block;min-width:19px;padding:0 5px;border-radius:99px;background:var(--blue);color:#fff;font-size:11.5px;font-weight:700;line-height:19px;text-align:center;vertical-align:1px}
.feedview{max-width:680px;margin:0 auto}
.feedmarkall{margin-left:auto;padding:8px 14px;border-radius:999px;border:1px solid var(--line2);color:var(--blue-text);font-size:13.5px;font-weight:560}
.feedcard{background:var(--panel);border:1px solid var(--line2);border-radius:17px;padding:15px 16px 12px;margin-top:13px}
.feedcard.unread{border-color:rgba(91,142,196,.55);background:var(--panel2);box-shadow:0 0 0 1px rgba(91,142,196,.18)}
.feedcard.read{opacity:.78}
.feedcard .fhead{display:flex;align-items:center;gap:9px}
.feedcard .feedface{width:34px;height:34px;flex:none}
.feedcard img.feedface{object-fit:cover}
.feedcard .fname2{font-weight:700;font-size:15.5px}
.feedcard .froom{color:var(--ash);font-size:13px}
.feedcard .ftime{margin-left:auto;color:var(--ash);font-size:12.5px;white-space:nowrap}
.feedcard .fsummary{font-size:15px;font-weight:600;margin-top:9px}
.feedcard .fbody{margin-top:7px}
.feedcard .fquotes{display:flex;flex-direction:column;gap:9px}
.feedcard .fq{background:rgba(245,242,236,.04);border:1px solid var(--line);border-radius:12px;padding:9px 11px}
.feedcard .fqh{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.feedcard .fqn{font-weight:700;font-size:13.5px;color:var(--blue-text)}
.feedcard .fqt{color:var(--ash);font-size:11.5px;white-space:nowrap}
.feedcard .fq p{white-space:pre-wrap;font-size:14.5px;margin-top:3px}
.feedcard .frow{display:flex;justify-content:space-between;gap:12px;padding:3px 0;font-size:14px}
.feedcard .fname{color:var(--bone)}
.feedcard .famt{color:var(--ash);font-size:12.5px}
.feedcard .fnum,.feedcard .fval{color:var(--bone);font-weight:600;white-space:nowrap}
.feedcard .ftot{border-top:1px solid var(--line);margin-top:7px;padding-top:7px;font-size:13.5px;font-weight:600}
.feedcard .fphotos{display:flex;gap:8px;margin-top:9px;flex-wrap:wrap}
.feedcard .fphotos img{width:74px;height:74px;object-fit:cover;border-radius:8px}
.feedcard .frec{color:var(--gold);font-weight:700;font-size:14px;margin-top:6px}
.feedcard .ffoot{display:flex;align-items:center;gap:8px;margin-top:11px}
.feedcard .freadmark{color:var(--ash);font-size:12.5px;font-weight:600;letter-spacing:.04em}
.feedcard .ffoot [data-froom]{margin-left:auto}
.feedseam{display:flex;align-items:center;gap:12px;margin:20px 2px 4px;color:var(--blue-text);font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.feedseam::before,.feedseam::after{content:"";flex:1;border-top:1px solid rgba(91,142,196,.5)}
@media (prefers-reduced-motion: reduce){.feedcard{box-shadow:none}}
.node .flag{white-space:nowrap}
.node .n-sub{font-size:12px;color:var(--ash);margin-top:1px}
.node .n-bar{display:block;height:4px;border-radius:99px;background:rgba(245,242,236,.1);margin-top:10px;overflow:hidden}
.node .n-bar i{display:block;height:100%;background:var(--blue);border-radius:99px}
.node .n-meta{display:flex;justify-content:space-between;align-items:center;margin-top:8px;font-size:12px;color:var(--ash)}
.node .n-spark{margin-top:6px}
.node.hot{border-color:rgba(91,142,196,.55);box-shadow:0 0 0 1px rgba(91,142,196,.25),0 12px 38px rgba(20,60,110,.35);animation:nodepulse 3.4s ease-in-out infinite}
@keyframes nodepulse{0%,100%{box-shadow:0 0 0 1px rgba(91,142,196,.25),0 12px 38px rgba(20,60,110,.30)}50%{box-shadow:0 0 0 2px rgba(91,142,196,.45),0 12px 46px rgba(20,60,110,.5)}}
.node.dim{opacity:.22}
.node .flag{font-size:11px;font-weight:700;letter-spacing:.05em}
.node .flag.blue{color:var(--blue-text)} .node .flag.ash{color:var(--ash)}
#drawer{position:fixed;top:0;right:0;bottom:0;width:min(540px,94vw);z-index:70;background:var(--ink2);
  border-left:1px solid var(--line2);box-shadow:-30px 0 70px rgba(0,0,0,.55);overflow-y:auto;padding:24px 24px 44px;
  animation:drawerin .38s var(--ease)}
@keyframes drawerin{from{transform:translateX(60px);opacity:.3}to{transform:none;opacity:1}}
#drawer .d-head{display:flex;gap:14px;align-items:center}
#drawer .d-close{position:absolute;top:16px;right:18px;font-size:24px;color:var(--ash);line-height:1;padding:6px}
body.drawer-open{overflow:hidden}
@media (max-width:979px){ .canvas-wrap{grid-template-columns:1fr} .nodegrid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))} .statsrow{grid-template-columns:repeat(2,1fr)} }

/* ── client feeling pass ─────────────── */
body::before{content:'';position:fixed;inset:0;pointer-events:none;z-index:-1;
  background:radial-gradient(80% 46% at 50% -6%,rgba(38,84,138,.16) 0%,transparent 62%)}
.glowhero{position:relative}
.glowhero::before{content:'';position:absolute;left:-60px;right:-60px;top:-30px;height:250px;pointer-events:none;
  background:radial-gradient(60% 90% at 30% 20%,rgba(91,142,196,.14) 0%,transparent 70%)}
.setrow .tick.on{animation:tickpop .28s var(--ease)}
@keyframes tickpop{0%{transform:scale(.8)}55%{transform:scale(1.14)}100%{transform:scale(1)}}
#sessProgWrap{margin-top:14px}
#sessProgWrap .meter{margin-top:6px}
.tmsg{animation:rise .45s var(--ease) both}
.spark polyline{stroke-dasharray:1;stroke-dashoffset:1;animation:draw .8s var(--ease) .15s forwards}
@keyframes draw{to{stroke-dashoffset:0}}
.plateviz{width:168px;height:168px;border-radius:50%;border:2px solid rgba(147,184,221,.35);margin:16px auto;position:relative;overflow:hidden;background:var(--panel);
  box-shadow:0 0 48px rgba(91,142,196,.22),inset 0 0 34px rgba(0,0,0,.45)}
.plateviz i{position:absolute;left:0;right:0;bottom:0;background:radial-gradient(circle at 50% 40%,rgba(91,142,196,.85),rgba(38,84,138,.9));transition:height .25s var(--ease)}
.plateviz span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:19px;text-shadow:0 1px 8px rgba(0,0,0,.6)}
/* food capture: barcode camera view, plate photo slot, log thumbnails */
.scanvideo{width:100%;border-radius:12px;border:1px solid var(--line2);background:#000;aspect-ratio:4/3;object-fit:cover}
.plateslot{margin-top:8px;border:1px dashed var(--line2);border-radius:12px;padding:12px}
.platepreview{display:block;width:100%;max-height:220px;object-fit:cover;border-radius:10px;margin-bottom:10px}
.foodthumb{width:52px;height:52px;object-fit:cover;border-radius:10px;flex:0 0 auto;margin-right:2px}
@media (prefers-reduced-motion:reduce){ *{animation-duration:.01ms !important;transition-duration:.01ms !important} }

/* ── coach desk instrument type (mono spec labels, tabular figures) ── */
#app.wide,#app.full,#drawer{font-variant-numeric:tabular-nums}
.stat b{font-family:var(--mono);font-weight:600}
.stat span{font-family:var(--mono)}
.lenses button{font-family:var(--mono);text-transform:uppercase;letter-spacing:.09em;font-size:12.5px}
.card .kicker,.canvas-wrap .kicker,#drawer .kicker{font-family:var(--mono)}
.card .rankline .tiny{font-family:var(--mono);letter-spacing:.05em}
.center-node .cn-t{font-family:var(--mono)}
.node .n-sub{font-family:var(--mono);font-size:11.5px;letter-spacing:.05em}
.node .n-meta{font-family:var(--mono);letter-spacing:.04em}
.node .flag{font-family:var(--mono)}
#drawer .mg b,#app.wide .mg b{font-family:var(--mono);font-weight:600}
#drawer .mg span,#app.wide .mg span{font-family:var(--mono)}
#drawer .memline .src,#app.wide .memline .src{font-family:var(--mono)}
.row b{font-variant-numeric:tabular-nums}

/* ── sheet & toast ───────────────────── */
#sheet{position:fixed;inset:0;z-index:60;background:rgba(4,4,5,.66);display:flex;align-items:flex-end;justify-content:center}
#sheet .panel{background:var(--ink2);border:1px solid var(--line2);border-bottom:0;border-radius:22px 22px 0 0;
  width:100%;max-width:520px;max-height:88dvh;overflow-y:auto;padding:24px 22px calc(26px + env(safe-area-inset-bottom));
  animation:sheetup .34s var(--ease)}
@keyframes sheetup{from{transform:translateY(46px);opacity:.4}to{transform:none;opacity:1}}
#toast{position:fixed;left:50%;bottom:104px;transform:translateX(-50%);z-index:80;background:var(--bone);color:var(--ink);
  font-weight:600;font-size:14.5px;padding:12px 18px;border-radius:999px;box-shadow:0 10px 34px rgba(0,0,0,.5);
  animation:rise .3s var(--ease)}
.view{animation:viewin .3s var(--ease)}
@keyframes viewin{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
.err{background:rgba(196,91,91,.14);border:1px solid rgba(196,91,91,.4);color:#E5A3A3;padding:12px 14px;border-radius:12px;font-size:14.5px;margin-top:12px}

/* ── E-pass ─────────────────────────────────────────── */
/* assistant screen: composer pinned above the floating pill */
.composerbar{position:sticky;bottom:calc(88px + env(safe-area-inset-bottom));z-index:6;
  padding:18px 0 6px;background:linear-gradient(180deg,transparent,var(--ink) 34%)}
.memcard .memacts{display:flex;gap:16px;margin-top:9px}
.memcard .memacts button{font-size:13.5px;font-weight:600;color:var(--blue-text);padding:2px 0}
.memcard .memacts button[data-flag]{color:var(--ash)}
.memcard.flagged{border-color:rgba(91,142,196,.45)}
.memcard textarea{margin-top:6px}
.struck{text-decoration:line-through;color:var(--ash)}
.memline .struck{text-decoration:line-through;color:var(--ash)}
/* train: slim rest bar after the ring collapses; band select; last-time line */
.restbar{margin-top:14px;padding:11px 16px;border-radius:12px;background:var(--blue-dim);
  color:var(--blue-text);font-weight:650;font-size:14.5px;text-align:center}
.setrow select.bandsel{width:132px;padding:10px 8px;text-align:center}
.lasttime{margin-top:3px;color:var(--blue-text);font-weight:560}
/* food: protein is the primary bar */
.macrobar.primary .meter{height:8px}
.macrobar.primary .mb-label{font-weight:700}
/* progress: goal card + named grid states (never colour alone — legend labels them) */
.goalcard .goaltitle{font-size:21px;font-weight:700;letter-spacing:-.015em;margin-top:5px}
.goalcard .grow{display:flex;justify-content:space-between;align-items:baseline;gap:14px;
  padding:9px 0;border-bottom:1px dashed rgba(245,242,236,.06);font-size:14.5px;color:var(--ash)}
.goalcard .grow:last-child{border-bottom:0}
.goalcard .grow b{color:var(--bone);font-size:15.5px;text-align:right;font-variant-numeric:tabular-nums}
/* today: resume + assistant-action + plan-marker cards */
.resumecard{border-color:rgba(91,142,196,.45);margin-top:16px}
.actionline{cursor:default}
.markercard{border-color:rgba(91,142,196,.45)}
/* coach: next-action banner, drafts, evidence */
.nextbanner{margin-top:18px;padding:15px 17px;border-radius:15px;background:var(--raised-soft);
  border:1px solid rgba(147,184,221,.3);font-size:16px;font-weight:650}
.card .also{margin-top:6px;color:var(--blue-text);font-size:14px}
.draftbox{margin-top:11px;padding:12px 14px;border-radius:12px;background:var(--panel2);
  border:1px solid var(--line);font-size:15px;line-height:1.5;color:var(--bone)}
.evidstrip{display:flex;gap:18px;flex-wrap:wrap;margin-top:14px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  font-size:13.5px;color:var(--ash)}
.evidstrip b{color:var(--bone);font-variant-numeric:tabular-nums}
/* canvas: flag + date stack; opened node highlighted; stage shifts for the drawer */
.node .n-meta.stack{flex-direction:column;align-items:flex-start;gap:3px;margin-top:9px}
.node.open{border-color:var(--bone);box-shadow:0 0 0 1px rgba(245,242,236,.5),0 14px 40px rgba(0,0,0,.5)}
/* the stage pans (JS-computed transform) so the opened node stays left of the drawer */
.map{transition:transform .38s var(--ease)}

/* ── Build I: the food experience ─────────────────────────────
   The day leads: one card with the number, a ring, and the three
   macros as labelled bars (steel blue / lifted tint / ash — the
   words and numbers always ride along, colour never speaks alone).
   Photos are only ever the client's own; anything without one gets
   a quiet branded tile, never a stock image. No gold: PBs only. */
.foodtitle{font-size:38px;margin:0}
.daycard{padding:20px;border-radius:22px;background:var(--raised-soft);border:1px solid var(--line)}
.dc-top{display:flex;justify-content:space-between;align-items:center;gap:14px}
.dc-nums{min-width:0}
.daybig{font-size:46px;font-weight:720;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
.daybig .daytgt{font-size:19px;color:var(--ash);font-weight:560;letter-spacing:-.01em}
.dc-left{color:var(--ash);font-size:15px;margin-top:9px}
.ringwrap-sm{position:relative;width:92px;height:92px;flex:0 0 auto}
.ringwrap-sm svg{width:100%;height:100%;display:block}
.ringwrap-sm .kcalring-bg,.ringwrap-sm .kcalring-fg{stroke-width:7}
.ringglyph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--ash)}
.ringglyph svg{width:26px;height:26px}
.macrobar.cbar .meter i{background:var(--blue-text)}
.macrobar.fbar .meter i{background:var(--ash)}
/* section heads with a quiet action on the right */
.fc-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-top:34px}
.fc-link{color:var(--blue-text);font-size:14px;font-weight:600;white-space:nowrap;padding:2px 0}
/* featured recipe: the client's own most recent save, photo-forward */
.featcard{margin-top:12px;border-radius:22px;overflow:hidden;background:var(--panel);border:1px solid var(--line);cursor:pointer}
.featcard:active{background:var(--panel2)}
.featphoto{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}
.featcover{aspect-ratio:16/10;display:flex;align-items:center;justify-content:center;background:var(--raised)}
.featcover img{width:72px;height:72px;border-radius:19px;box-shadow:0 12px 38px rgba(91,142,196,.4)}
.featbody{padding:16px 18px 18px}
.featname{font-size:21px;font-weight:680;letter-spacing:-.015em}
.featrow{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px;min-height:32px}
.featlog{background:var(--blue);color:#fff;font-weight:650;font-size:14.5px;padding:8px 20px;border-radius:999px;flex:0 0 auto}
/* plate rows: own photo or the branded tile */
.foodtile{width:52px;height:52px;border-radius:10px;background:var(--panel2);border:1px solid var(--line);
  display:inline-flex;align-items:center;justify-content:center;color:var(--ash2);flex:0 0 auto;margin-right:2px}
.foodtile svg{width:26px;height:26px}
.platerow .pr-main{flex:1;min-width:0}
.platerow .pr-nums{text-align:right;flex:0 0 auto}
.platerow .pr-nums b{font-size:17.5px}
/* add-food sheet: display headline, oversized primaries */
.sheethead{font-size:29px;font-weight:720;letter-spacing:-.022em;line-height:1.12;margin-top:5px}
.bigcta{min-height:60px;font-size:17.5px;border-radius:16px}
#flowWrap{display:flex;flex-direction:column}
#flowWrap.photo-first #plateBlock{order:-1}

/* ── Build J: Astra's organization ────────────────────────────
   Food is three segments (Today / My foods / History) over the same
   machinery. Capture lives ONLY in here — no tab-bar pill: the day
   hero keeps Build I's ring beside Astra's big remaining number,
   Carbs and Fat share a row as thin bars, and the add-food sheet
   opens on a list of named doors. Palette, type, and the
   sentence-case client voice are unchanged; gold stays PB-only. */
.foodtitle-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-top:22px}
.fooddate{display:inline-flex;align-items:center;gap:6px;color:var(--ash);font-size:14px;font-weight:600;white-space:nowrap}
.fooddate svg{width:17px;height:17px}
#foodSegs{margin-top:16px}
/* the hero's right column: Build I's ring, the eaten line under it */
.dc-right{display:flex;flex-direction:column;align-items:center;gap:9px;flex:0 0 auto}
.dc-eaten{text-align:center;font-size:13.5px;color:var(--ash);line-height:1.45}
.dc-eaten b{color:var(--bone);font-size:15px}
.daycard .daybig{font-size:52px}
.macropair{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
.macropair .macrobar{margin-top:14px}
.macropair .meter{height:4px}
.rangeline{display:flex;align-items:center;gap:8px;color:var(--ash);font-size:14.5px;margin-top:14px}
.rangeline svg{width:19px;height:19px;color:var(--blue-text);flex:0 0 auto}
/* Same as yesterday, as a card */
.sayrow{border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:14px 16px;margin-top:14px}
.sayicon{width:40px;height:40px;border-radius:12px;background:var(--panel2);border:1px solid var(--line);
  display:inline-flex;align-items:center;justify-content:center;color:var(--blue-text);flex:0 0 auto}
.sayicon svg{width:21px;height:21px}
.plusbtn{width:38px;height:38px;border-radius:11px;background:var(--panel2);border:1px solid var(--line2);
  color:var(--blue-text);font-size:20px;line-height:1;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.tf-empty{font-size:17px;font-weight:600;margin-top:12px}
/* My foods chips */
.foodchips{display:flex;gap:8px;margin-top:18px}
.foodchips button{padding:9px 17px;border-radius:999px;border:1px solid var(--line2);color:var(--ash);font-size:14.5px;font-weight:600}
.foodchips button.on{background:var(--blue-dim);color:var(--blue-text);border-color:rgba(91,142,196,.45)}
.findrow{display:flex;align-items:center;gap:9px;background:var(--panel);border:1px solid var(--line2);border-radius:12px;padding:0 14px;margin-top:12px}
.findrow svg{width:19px;height:19px;color:var(--ash2);flex:0 0 auto}
.findrow input{border:0;background:transparent;padding:13px 0}
.findrow input:focus{border:0}
/* honest empty states (Favorites / Recipes) */
.emptystate{margin-top:22px}
.emptytile{width:60px;height:60px;border-radius:16px;background:var(--panel2);border:1px solid var(--line);
  display:inline-flex;align-items:center;justify-content:center;color:var(--blue-text)}
.emptytile svg{width:28px;height:28px}
.emptyhead{font-size:20px;font-weight:680;letter-spacing:-.015em;margin-top:16px}
/* History: day pager + day summary card */
.histpager{display:flex;align-items:center;gap:10px;margin-top:20px}
.pagerbtn{width:46px;height:46px;border-radius:12px;background:var(--panel);border:1px solid var(--line2);color:var(--bone);font-size:20px;flex:0 0 auto}
.histdate{flex:1;text-align:center;background:var(--panel);border:1px solid var(--line2);border-radius:12px;padding:12px 8px;font-size:16px;font-weight:620;white-space:nowrap}
.histcard{margin-top:16px}
.histbig{font-size:40px;font-weight:720;letter-spacing:-.03em;line-height:1.05;margin-top:6px;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
.histbig span{font-size:17px;color:var(--ash);font-weight:560;letter-spacing:-.01em}
#repeatDay svg{width:18px;height:18px}
/* the door list: each way in is a named row, icon and one-line promise */
.doorrow{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:15px 2px;border-bottom:1px solid var(--line);cursor:pointer}
.doorrow:active{background:var(--panel)}
.dooricon{width:44px;height:44px;border-radius:13px;background:var(--panel2);border:1px solid var(--line);
  display:inline-flex;align-items:center;justify-content:center;color:var(--blue-text);flex:0 0 auto}
.dooricon svg{width:22px;height:22px}
.door-main{flex:1;min-width:0}
.door-t{display:block;font-size:16.5px;font-weight:620}
.door-s{display:block;font-size:13.5px;color:var(--ash);margin-top:2px}
.doorrow .chev{color:var(--ash2);font-size:19px;flex:0 0 auto}
.doorfoot{display:flex;gap:9px;align-items:center;color:var(--ash);font-size:13.5px;margin-top:16px;line-height:1.45}
.doorfoot svg{width:18px;height:18px;color:var(--blue-text);flex:0 0 auto}
#doorBack{color:var(--blue-text);font-weight:600;font-size:14.5px;padding:4px 0}
.doorname{font-size:19px;font-weight:680;letter-spacing:-.015em;margin:8px 0 14px}

/* ── Build BJ: the add surface + diary promotions ─────────────────────
   One screen, no doors: live search, three capture tiles, her shelves.
   "Left" is microcopy only (the eaten number stays the hero); the meal
   hint is one calm bordered line; nothing here wears gold. */
.paneback{color:var(--blue-text);font-weight:600;font-size:14.5px;padding:4px 0}
.addtiles{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-top:14px}
.addtile{display:flex;flex-direction:column;align-items:center;gap:7px;padding:15px 6px 13px;border-radius:14px;
  background:var(--panel2);border:1px solid var(--line2);color:var(--bone);font-weight:600;font-size:13.5px;cursor:pointer}
.addtile:active{background:var(--panel)}
.addtile svg{width:24px;height:24px;color:var(--blue-text)}
.cfstep{display:flex;gap:8px;align-items:center}
.dc-left{margin-top:8px;font-size:13.5px;color:var(--ash)}
.mc-togo{font-size:11.5px;color:var(--blue-text);font-weight:600;margin-top:2px}
.logpill{width:100%;margin-top:10px}
.mealsect .ms-actions{display:block}
.mealnote{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;margin-top:12px;
  padding:11px 12px;border:1px solid var(--line2);border-radius:12px;background:var(--panel);
  font-size:13.5px;line-height:1.45;color:var(--bone)}
.mealnote-x{display:flex;gap:8px;align-items:center;flex:0 0 auto}
.mealnote-x .chev{color:var(--ash2);font-size:18px}

/* ── Build L: programs area (masters · workouts · exercises · assignments) ── */
.subnav{display:flex;gap:6px;flex-wrap:wrap;margin-top:16px}
.subnav button{padding:8px 15px;border:1px solid var(--line);border-radius:999px;font-size:14px;font-weight:560;color:var(--ash);background:transparent}
.subnav button.on{background:var(--panel2);color:var(--bone);border-color:var(--line2)}
.stepper{display:flex;gap:6px;flex-wrap:wrap;margin:18px 0 4px}
.stepper button{padding:9px 14px;border:1px solid var(--line);border-radius:12px;font-size:14px;font-weight:560;color:var(--ash);background:transparent;text-align:left}
.stepper button.on{color:var(--bone);border-color:rgba(91,142,196,.45);background:var(--blue-dim)}
.stepper button .sn2{display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--ash);font-weight:600}
.libgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;margin-top:14px}
.libgrid .card{margin-top:0}
.pickrow{display:flex;gap:10px;align-items:flex-start;padding:11px 0;border-bottom:1px solid var(--line)}
.pickrow input[type="checkbox"]{width:20px;height:20px;margin-top:2px;flex:0 0 auto;accent-color:var(--blue)}
.bexrow{border:1px solid var(--line);border-radius:14px;padding:12px;margin-top:10px;background:var(--panel)}
.bexrow .bexhead{display:flex;gap:8px;align-items:center}
.bexrow .bexnum{color:var(--ash);font-size:13px;min-width:18px}
.iconbtn{border:1px solid var(--line);border-radius:8px;padding:4px 9px;font-size:13px;color:var(--ash);background:transparent}
.iconbtn:active{background:var(--panel2)}
.daycard{border:1px solid var(--line);border-radius:16px;padding:16px;margin-top:12px;background:var(--panel)}
/* ── Build L: client week strip + pattern lines + history ── */
/* [Build V136] the duplicate week-strip definitions are merged into one scoped rule per surface (item 21): the grid def stands for the Day's strip, the program-map strip and the coach desk's strips (logbook + program-map mirror, under #app.wide); Food's flex def stands scoped under #segToday below. The child rules (.dl/.dn/.mk/.wl, .done, .restday, .sel) exist only in grid-family markup and stand unscoped. */
.weekstrip.dk-week,.weekstrip.mapstrip,#app.wide .weekstrip{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-top:12px}
.dk-week .wday,.mapstrip .wday,#app.wide .wday{border:1px solid var(--line);border-radius:12px;padding:9px 2px;text-align:center;background:var(--panel)}
.wday .dl{font-size:10.5px;letter-spacing:.08em;color:var(--ash);text-transform:uppercase;font-weight:600}
.wday .dn{font-size:16px;font-weight:640;margin-top:2px}
.wday .mk{font-size:11px;margin-top:4px;color:var(--ash);min-height:14px}
.wday .wl{font-size:10px;color:var(--ash);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wday.done{border-color:rgba(91,142,196,.5)}
.wday.done .mk{color:var(--blue-text)}
.dk-week .wday.today,.mapstrip .wday.today,#app.wide .wday.today{border-color:var(--blue);background:var(--blue-dim)}
.wday.restday{opacity:.6}
/* [Build V136] item 4: the Day's cells stand one height — min-height 78px, stretched — and the day sub-label clamps to two lines inside its cell instead of spilling below the strip */
.weekstrip.dk-week{align-items:stretch}
.dk-week .wday{min-height:78px}
.dk-week .wday .wl{font-size:10px;line-height:1.25;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* ── Build BH: the coach's food logbook — the strip's selected day, the
   per-day fill, archived rows, ingredient expansion, week stepping ── */
.wday.sel{border-color:var(--bone);background:var(--panel2)}
.wday.sel.today{border-color:var(--blue)}
.lbfill{display:block;height:3px;border-radius:2px;background:var(--line2);margin:5px 4px 0;overflow:hidden}
.lbfill i{display:block;height:100%;background:var(--blue)}
.lbnav{display:flex;gap:10px;align-items:center;margin-top:12px;flex-wrap:wrap}
.lbrow.arch .t{text-decoration:line-through;color:var(--ash)}
.lbtag{font-family:var(--mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--ash);border:1px solid var(--line2);border-radius:5px;padding:1px 5px;vertical-align:2px;text-decoration:none}
.lbrow{flex-wrap:wrap;row-gap:4px}
.lbmain{flex:1 1 200px;min-width:0}
.lbright{display:flex;gap:6px;align-items:center;flex:0 0 auto;margin-left:auto}
.lbnums{text-align:right}
.lbnums b{font-size:16.5px;font-variant-numeric:tabular-nums;white-space:nowrap}
.lbitems{display:block;flex:1 1 100%;margin-top:2px}
.lbitems[hidden]{display:none}
.lbitem{display:flex;justify-content:space-between;gap:10px;padding:4px 0;border-top:1px dashed var(--line);font-size:13.5px;color:var(--ash)}
.lbitem>span{min-width:0}
.lbitem b{color:var(--bone);font-variant-numeric:tabular-nums;white-space:nowrap}
.patternline{font-size:13px;color:var(--blue-text);letter-spacing:.05em;margin-top:2px;font-weight:560}
.heropatterns{font-size:13.5px;color:var(--blue-text);letter-spacing:.05em;margin-top:6px;font-weight:560}
.exnum{display:inline-block;min-width:20px;color:var(--ash);font-size:13px;font-weight:600}

/* ── Build M: sections, targets, form-check video, quiet links ──────
   Additive only. Section headings reuse the label voice; the computed
   target rides the steel-blue tint (small text on near-black); video
   is a plain framed element — nothing here borrows the PB gold. */
.secthead{font-family:var(--mono);font-size:12.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--blue-text);margin-top:26px;display:flex;align-items:center;gap:6px}
.secthead.sm{font-size:11px;margin-top:14px;color:var(--ash)}
.dayblock .secthead.sm:first-child{margin-top:2px}
.targetline{color:var(--blue-text);font-weight:600;margin-top:4px}
.linkbtn{background:none;border:none;color:var(--blue-text);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;padding:0;text-decoration:underline;text-underline-offset:3px}
.fcvideo{width:100%;max-width:430px;aspect-ratio:16/9;background:#000;border:1px solid var(--line);border-radius:12px;margin-top:8px;display:block}

/* Build AU — Press Play. The door lockup (the final mark above the
   solid steel-blue plate, near-black words), the focused session
   strip, the warm-up chip, the effort row, and the finish's PR lines.
   Gold stays reserved: it appears here only on .prmoment, which the
   finish screen builds solely from record-engine PB moments. */
.ppdoor{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%;background:none;border:none;cursor:pointer;padding:6px 0 2px}
.ppdoor .ppmark{width:92px;height:92px;border-radius:22px;box-shadow:0 10px 34px rgba(0,0,0,.55)}
.ppdoor .ppplate{display:block;width:100%;background:var(--steel-btn,#A9C8E8);color:var(--ink);font-weight:800;font-size:17px;letter-spacing:-.01em;text-align:center;padding:15px 20px;border-radius:14px;box-shadow:0 0 34px rgba(91,142,196,.30)}
.ppdoor:active .ppplate{filter:brightness(1.08)}
#pressbar{position:fixed;left:0;right:0;bottom:0;z-index:41;background:rgba(12,12,14,.94);backdrop-filter:blur(10px);border-top:1px solid var(--line);padding:10px 14px calc(10px + env(safe-area-inset-bottom))}
#pressbar .pbin{display:flex;align-items:center;gap:10px;max-width:520px;margin:0 auto}
#pressbar img{width:30px;height:30px;border-radius:8px}
#pressbar #pressPos{flex:1;font-size:13.5px;font-weight:600;color:var(--bone)}
/* ── [Build V145] the player's composed bottom stack (Sam, 2026-11-04:
   "This visual needs to be more clear at the bottom. Can't have one
   thing hide the other like that.") — the session bar (#pressbar,
   64px incl. its padding) at the very bottom; the Next movement bar
   directly above it with 10px of clear air, fully visible end to
   end; and while the player stands (body.nobar) the conversation
   face parks ABOVE the stack instead of floating over the Next
   bar's right end. Outside the player the face keeps its standing
   seat (bottom 96px, the .convoface rule) untouched. The numbers
   compose on a real phone too: every offset carries the same
   safe-area term #pressbar's own padding carries. ── */
#nextbar{position:fixed;left:22px;right:22px;bottom:calc(74px + env(safe-area-inset-bottom));z-index:41;max-width:476px;margin:0 auto}
body.nobar .convoface{bottom:calc(144px + env(safe-area-inset-bottom))}
.wchip{display:inline-block;vertical-align:2px;margin-left:6px;padding:2px 8px;border:1px solid var(--line);border-radius:999px;font-size:10.5px;font-weight:700;letter-spacing:.05em;color:var(--blue-text);text-transform:uppercase}
.exblock.warmup .sn{color:var(--ash)}
.effortrow{margin:8px 0 4px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:rgba(245,242,236,.03)}
.effchips{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.effchip{flex:1;min-width:52px;padding:9px 4px;border-radius:9px;border:1px solid var(--line);background:transparent;color:var(--bone);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;text-align:center}
.effchip.on{border-color:var(--blue);background:rgba(91,142,196,.18);color:var(--blue-text)}
.effguide{margin-top:8px;color:var(--blue-text);font-weight:600}
.prmoment{display:flex;align-items:center;gap:10px;margin-top:10px;padding:12px 16px;border-radius:14px;border:1px solid rgba(227,179,65,.65);background:rgba(227,179,65,.17);color:var(--gold);font-weight:700;font-size:15px;box-shadow:0 0 26px rgba(227,179,65,.2)}
.prmoment svg{filter:drop-shadow(0 0 5px rgba(227,179,65,.7))}
.prmoment svg{width:20px;height:20px;flex:none}

/* ── Build AV: THE FOOD DAY ───────────────────────────────────
   The day-view reshape: a week strip of small rings filling
   toward target (today outlined), the hero as eaten-of-target,
   three macro cards with thin steel-blue rings — protein first,
   and every macro in the same steel-blue family: position, glyph,
   and label carry the meaning, never colour. Water rides the day
   card as its own row of one-tap chips. No gold anywhere here:
   gold is PB moments only, and food has none. */
#segToday .weekstrip{display:flex;gap:4px;margin-top:14px}
#segToday .wday{flex:1;display:flex;flex-direction:column;align-items:center;gap:1px;padding:8px 0 7px;border-radius:14px;border:1px solid transparent;background:transparent;cursor:pointer;color:var(--ash)}
.wday:active{background:var(--panel)}
.wday svg.wring{width:34px;height:34px;display:block}
.wday .wd-l{font-size:11px;font-weight:700;letter-spacing:.06em;margin-top:2px}
.wday .wd-n{font-size:13px;font-weight:620;color:var(--bone);font-variant-numeric:tabular-nums}
#segToday .wday.today{border-color:rgba(91,142,196,.55);background:var(--blue-dim)}
#segToday .wday.today .wd-l{color:var(--blue-text)}
.ring-bg{fill:none;stroke:rgba(245,242,236,.09);stroke-width:3}
.ring-fg{fill:none;stroke:var(--blue);stroke-width:3;stroke-linecap:round}
.macrocards{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-top:18px}
.macrocard{position:relative;display:flex;flex-direction:column;align-items:center;padding:13px 4px 11px;border-radius:16px;background:var(--panel);border:1px solid var(--line)}
.macrocard svg.mring{width:52px;height:52px;display:block}
.macrocard .ring-fg{filter:drop-shadow(0 0 7px rgba(91,142,196,.35))}
.mc-glyph{position:absolute;top:24px;left:50%;transform:translateX(-50%);color:var(--blue-text);display:flex}
.mc-glyph svg{width:21px;height:21px}
.mc-label{font-size:13.5px;font-weight:640;margin-top:7px}
.mc-val{font-size:12.5px;color:var(--ash);font-variant-numeric:tabular-nums;margin-top:1px}
.mc-val b{color:var(--bone);font-size:14.5px}
.waterrow{display:flex;gap:12px;align-items:center;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.wateric{color:var(--blue-text);flex:0 0 auto;display:flex}
.wateric svg{width:26px;height:26px}
.water-main{flex:1;min-width:0}
.water-main .t{font-size:15.5px;font-weight:620}
.water-main .s{font-size:13px;color:var(--ash)}
.water-main .s b{color:var(--bone)}
.meter.water{margin-top:7px;height:4px}
.meter.water i{background:var(--blue)}
.waterchips{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.wchip{padding:8px 12px;border-radius:999px;border:1px solid rgba(91,142,196,.45);background:var(--blue-dim);color:var(--blue-text);font-size:13.5px;font-weight:650;cursor:pointer;white-space:nowrap}
.wchip:active{background:rgba(91,142,196,.3)}
.watercustom{display:inline-flex;gap:6px;align-items:center}
.watercustom input{width:58px;padding:7px 8px;text-align:center}
.wundo{color:var(--ash);font-size:13px;font-weight:600;padding:6px 2px;cursor:pointer}
.mealsect{margin-top:26px}
.ms-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.ms-tot{font-size:13px;color:var(--ash);white-space:nowrap;font-variant-numeric:tabular-nums}
.ms-actions{display:flex;gap:18px;margin-top:2px}
.repeatrow{margin:-2px 0 10px 4px}

/* ═══ Build BL — the chat is a chat; the food side breathes ═══
   Assistant: a compact sticky header (face · name · last checked ·
   Details), the thread, one quiet note line, the composer. Today:
   the LEFT number is the hero, macros are calm bars, each meal is
   its own card with a full-width Add. Add surface: a big rounded
   search, suggestion rows, filter chips, one-tap + rows. Gold stays
   PB-only — none of this chrome touches it. */
.chatview{padding-top:2px}
.chathead{position:sticky;top:64px;z-index:6;display:flex;align-items:center;gap:11px;padding:10px 2px;background:linear-gradient(180deg,var(--ink) 78%,transparent);margin:0 -2px}
.ch-face{width:38px;height:38px;border-radius:50%;overflow:hidden;flex:0 0 auto;background:var(--panel);display:flex;align-items:center;justify-content:center}
.ch-face img{width:100%;height:100%;object-fit:cover}
.ch-main{flex:1;min-width:0;display:flex;flex-direction:column}
.ch-name{font-weight:680;font-size:16.5px;color:var(--bone);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-seen{font-size:12.5px;color:var(--ash);margin-top:1px}
.chatnote{text-align:left;margin:14px 2px 0;font-size:12.5px}
.chatempty{padding:34px 6px 10px;text-align:center}
.chatempty .starterline{max-width:420px;margin:0 auto}
.chatempty .starterchips{justify-content:center}
/* Today — hero + macro bars + meal cards */
.dc-hero{text-align:left}
.dc-eatenline{font-size:14px;color:var(--ash);margin-top:2px}
.meter.daymeter{height:9px;margin-top:12px}
.macrorows{margin-top:16px;border-top:1px solid var(--line);padding-top:6px}
.macrorow{display:flex;align-items:center;gap:11px;padding:9px 0}
.macrorow .mr-glyph{width:21px;height:21px;color:var(--ash);flex:0 0 auto;display:flex}
.macrorow .mr-glyph svg{width:100%;height:100%}
.macrorow .mr-main{flex:1;min-width:0}
.macrorow .mr-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.macrorow .mr-label{font-size:14.5px;color:var(--bone);font-weight:600}
.macrorow .mr-togo{font-size:12.5px;color:var(--blue-text);font-weight:650;white-space:nowrap}
.macrorow .mr-meter{height:6px;margin-top:5px}
.macrorow .mr-nums{font-size:13.5px;color:var(--ash);font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}
.macrorow .mr-nums b{color:var(--bone);font-size:15px}
.macrorow .mr-pct{display:block;font-size:11.5px;color:var(--ash)}
.macrorow.primary .mr-label{font-size:15.5px}
.macrorow.primary .mr-meter{height:8px}
.mealcard{background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:16px 16px 14px;margin-top:16px}
.mc-head{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.mc-icon{width:26px;height:26px;color:var(--blue-text);flex:0 0 auto;display:flex}
.mc-icon svg{width:100%;height:100%}
.mc-head .ms-tot{margin-left:auto}
.mc-empty{font-size:13.5px;color:var(--ash);padding:2px 0 4px}
.mealadd{width:100%;min-height:50px;margin-top:10px;font-size:16px}
/* Add surface — search, suggestions, filters, one-tap rows */
.findrow.bigsearch{border-radius:999px;padding:14px 18px;border-width:1.5px}
.findrow.bigsearch input{font-size:17px}
.sugrow{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);color:var(--bone);font-size:15.5px;padding:12px 4px;cursor:pointer;min-height:46px}
.sugrow svg{width:17px;height:17px;color:var(--ash);flex:0 0 auto}
.widerline{padding:10px 4px 2px;color:var(--ash)}
.fsh{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 2px}
.fsh button{border:1px solid var(--line);background:var(--panel);color:var(--ash);border-radius:999px;padding:8px 14px;font-size:13.5px;font-weight:600;cursor:pointer;min-height:38px}
.fsh button.on{color:var(--bone);border-color:var(--blue);background:rgba(76,119,165,.16)}
.srow{align-items:stretch;padding:0;overflow:hidden}
.srow-main{flex:1;min-width:0;display:flex;align-items:center;gap:10px;background:none;border:0;color:inherit;text-align:left;padding:13px 6px 13px 14px;cursor:pointer;font:inherit}
.plusbtn.qlog{align-self:center;margin-right:10px}
#panePhoto [data-qlog]{display:none}
/* Builder totals hero */
.buildhero{margin-top:16px;background:var(--panel2);border:1px solid var(--line);border-radius:16px;padding:14px 16px}
.buildhero .bh-kcal{font-size:30px;font-weight:720;color:var(--bone);font-variant-numeric:tabular-nums}
.buildhero .bh-kcal span{font-size:15px;color:var(--ash);font-weight:560}
.buildhero .bh-macros{font-size:13.5px;color:var(--ash);margin-top:3px}

/* ═══ Build BM — The Visual Pass (v73) ═══════════════════════════
   One finish across the whole client app: iOS-grade materials and
   motion (frosted glass, soft layered depth, spring entrances) over
   SIGNAL's near-black cinematic skin, with MFP's data-viz grammar
   (the day ring, the macro colour trio, crafted empty states, airy
   rows). Structure, flows and data are untouched — this section only
   re-skins. Gold stays PB-only; the trio appears only where macros
   are. Steel-blue stays the identity. */
:root{
  --teal:#63BBA9; --violet:#B79CDB; --coral:#EE8F74;
  --teal-t:#8AD0C1; --violet-t:#CDB2E8; --coral-t:#F5A88F;
  --shadow-card:0 18px 44px rgba(2,6,14,.42);
  --shadow-raise:0 24px 54px rgba(2,6,14,.5);
  --spring:cubic-bezier(.32,1.28,.36,1);
}
/* — motion: fluid, spring-feeling entrances; changes, not arrivals — */
@keyframes sheetup{from{transform:translateY(56px);opacity:.25}to{transform:translateY(0);opacity:1}}
@keyframes viewin{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
.view{animation:viewin .38s var(--spring)}
#sheet .panel{animation:sheetup .5s var(--spring);background:rgba(17,18,22,.88);backdrop-filter:blur(22px) saturate(1.4);-webkit-backdrop-filter:blur(22px) saturate(1.4);box-shadow:0 -18px 54px rgba(0,0,0,.5)}
.meter i{transition:transform .3s var(--ease)}
/* — shared card language: bigger continuous radii, one soft shadow — */
.focuscard{border-radius:22px;box-shadow:var(--shadow-card)}
.daycard{border-radius:24px;padding:20px}
.featcard{border-radius:24px}
.sayrow{border-radius:18px;padding:16px 18px}
.btn.smallbtn{border-radius:12px}
input,textarea,select{border-radius:14px}
.seg{border-radius:14px;padding:5px}
.seg button{border-radius:10px;padding:11px 8px}
.chip{font-size:12.5px}
/* client rows breathe (the coach desk keeps its own density) */
#app:not(.wide):not(.full) .row{padding:17px 0}
/* — Apple glass on the food day card (echoes the steel-blue page glow) — */
#segToday .daycard,.daycard.histcard{background:linear-gradient(165deg,rgba(53,84,128,.22),rgba(18,19,23,.92) 58%);backdrop-filter:blur(16px) saturate(1.3);-webkit-backdrop-filter:blur(16px) saturate(1.3);box-shadow:var(--shadow-card)}
.sessionhero{background:linear-gradient(160deg,rgba(147,184,221,.10),rgba(147,184,221,0) 46%),var(--raised);border-radius:26px;box-shadow:var(--shadow-raise),inset 0 1px 0 rgba(245,242,236,.07)}
/* — FOOD: the day ring — the card's face — */
.bm-hero{display:flex;align-items:center;gap:20px}
.bm-ring{position:relative;width:160px;height:160px;flex:0 0 auto}
.bm-ring svg{width:100%;height:100%;display:block}
.bm-ring-bg{fill:none;stroke:rgba(245,242,236,.08);stroke-width:9}
.bm-ring-fg{fill:none;stroke:var(--blue);stroke-width:9;stroke-linecap:round;filter:drop-shadow(0 0 14px rgba(91,142,196,.45));transition:stroke-dashoffset .6s var(--ease)}
.bm-ring-c{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:0 14px}
.bm-ring-in{display:inline-block}
.bm-ring-n{font-size:44px;font-weight:740;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums}
.bm-ring-u{font-size:13.5px;color:var(--ash);font-weight:600}
.bm-hero-side{min-width:0}
.bm-eaten{font-size:15.5px;margin-top:8px}
.bm-eaten b{color:var(--bone);font-size:20px;font-weight:720}
@media (max-width:380px){.bm-ring{width:134px;height:134px}.bm-ring-n{font-size:37px}.bm-hero{gap:16px}}
/* whitespace now separates the hero from the macros (hairline retired) */
.macrorows{border-top:0;margin-top:20px;padding-top:2px}
.waterrow{border-top:0;margin-top:20px;padding-top:2px}
/* — the macro colour trio: bars, glyphs and figures — */
/* (the bar itself is completed here: BL's meter rule never gave the
   span a display, a track, or a fill rule — the bars stood height-0
   and invisible. BM renders them, in the trio.) */
.macrorow .mr-meter{display:block;height:6px;border-radius:99px;background:rgba(245,242,236,.08);overflow:hidden;margin-top:6px}
.macrorow.primary .mr-meter{height:8px}
.macrorow .mr-meter i{display:block;height:100%;background:var(--blue);border-radius:99px;transition:width .3s var(--ease)}
.macrorow.m-protein .mr-meter i{background:var(--coral)}
.macrorow.m-carbs .mr-meter i{background:var(--teal)}
.macrorow.m-fat .mr-meter i{background:var(--violet)}
.macrorow.m-protein .mr-glyph{color:var(--coral)}
.macrorow.m-carbs .mr-glyph{color:var(--teal)}
.macrorow.m-fat .mr-glyph{color:var(--violet)}
.macrorow.m-protein .mr-nums b{color:var(--coral-t)}
.macrorow.m-carbs .mr-nums b{color:var(--teal-t)}
.macrorow.m-fat .mr-nums b{color:var(--violet-t)}
.macrorow .mr-pct{font-size:12.5px}
.bh-mp,.lb-mp{color:var(--coral-t)} .bh-mc,.lb-mc{color:var(--teal-t)} .bh-mf,.lb-mf{color:var(--violet-t)}
/* — meal cards: family chrome + coloured macro ticks — */
.mealcard{border-radius:22px;padding:20px 20px 16px;margin-top:20px;box-shadow:var(--shadow-card);background:linear-gradient(165deg,rgba(91,142,196,.05),rgba(91,142,196,0) 55%),var(--panel)}
.mticks{display:flex;gap:16px;flex-wrap:wrap;margin:2px 0 8px 2px}
.mtick{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:650}
.mtick::before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor;flex:0 0 auto}
.mtick.mp{color:var(--coral-t)} .mtick.mc{color:var(--teal-t)} .mtick.mf{color:var(--violet-t)}
.mtick b{color:var(--bone);font-weight:700}
/* — crafted empty states (SIGNAL line-art tiles, the Favorites pattern) — */
.bm-empty{padding:6px 0 2px}
.mc-empty2{display:flex;gap:13px;align-items:center;padding:8px 0 12px}
.mc-etile{width:46px;height:46px;border-radius:14px;background:var(--panel2);border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;color:var(--blue-text);flex:0 0 auto}
.mc-etile svg{width:23px;height:23px}
.mc-etxt{display:flex;flex-direction:column;min-width:0}
.mc-ehead{font-size:16px;font-weight:680;letter-spacing:-.01em}
.mc-eline{font-size:13.5px;color:var(--ash);margin-top:2px;line-height:1.45}
.bm-dayempty{display:flex;gap:14px;align-items:flex-start;margin-top:22px}
/* — search: leading tiles, chip suggestions, no-jump skeleton — */
.srtile{width:44px;height:44px;border-radius:50%;background:var(--panel2);border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;color:var(--blue-text);font-weight:700;font-size:17px;flex:0 0 auto}
.srtile svg{width:22px;height:22px}
.srow-main{padding:15px 6px 15px 14px}
.sugrow{min-height:54px}
.sugchip{width:34px;height:34px;border-radius:50%;background:var(--panel2);border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.sugchip svg{width:16px;height:16px;color:var(--ash)}
.skelrow{height:74px;border-bottom:1px solid var(--line);background:linear-gradient(100deg,transparent 30%,rgba(245,242,236,.05) 50%,transparent 70%);background-size:200% 100%;animation:skelshimmer 1.2s linear infinite}
@keyframes skelshimmer{from{background-position:180% 0}to{background-position:-80% 0}}
/* — builder: the totals summary is sticky glass at the sheet foot — */
.buildhero{position:sticky;bottom:0;z-index:3;border-radius:18px;padding:16px 18px;background:rgba(26,27,31,.88);backdrop-filter:blur(14px) saturate(1.35);-webkit-backdrop-filter:blur(14px) saturate(1.35);box-shadow:0 -14px 34px rgba(0,0,0,.35)}
/* the builder's ingredient stepper speaks the confirm-card language */
.stepbtn{width:44px;height:44px;border-radius:12px;border:1px solid var(--line2);background:transparent;color:var(--bone);font-size:19px;line-height:1;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;cursor:pointer}
.stepbtn:active{background:var(--panel2)}

/* — TRAIN: exercise cards join the family; set rows get air — */
.exblock{background:var(--panel);border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:var(--shadow-card)}
.exblock .setrow:last-child{border-bottom:0;padding-bottom:2px}
.setrow{padding:15px 0}
.setrow input{padding:12px 6px}
.effortrow{border-radius:16px}
.dayblock{padding:20px 0}
.exline{padding:11px 0}
/* — ASSISTANT: the chat breathes; the composer matches the search pill — */
.chat{gap:12px}
.msg .bub{padding:12px 15px;border-radius:20px}
.chathead{padding:14px 2px 12px;background:linear-gradient(180deg,rgba(10,10,11,.88) 65%,rgba(10,10,11,0));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.ch-face{width:42px;height:42px}
.composer textarea{border-radius:26px;padding:14px 18px;min-height:52px;font-size:16.5px}
/* — Build CU: LIVING PRESENCE — the hero, the pill, the typing bubble.
   The hero mirrors the Muse app's grammar inside SIGNAL's brand:
   the face large, the name beneath it, the status pill beneath the
   name. The pill wears the room's chat colour (its --pc), never
   gold. — */
/* — Build DI: THE PINNED PRESENCE — one element at the top of the
   chat: sticky in the flow (never floating over the thread), the
   big circle centred, the name beneath it as the only words, the
   status badge at the circle's lower-right edge, Details at the
   row's right. The badge's SHAPE carries the state; its motion is
   per-state too (the gear turns slowly, the dots breathe, the star
   pops once) — and reduced motion stills all of it. — */
.presencepin{position:sticky;top:64px;z-index:6;display:flex;align-items:flex-start;justify-content:center;padding:12px 2px 10px;margin:0 -2px;background:linear-gradient(180deg,rgba(10,10,11,.94) 76%,rgba(10,10,11,0));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.pp-core{display:flex;flex-direction:column;align-items:center;gap:7px;background:none;border:0;padding:0;cursor:pointer;text-align:center}
.pp-facewrap{position:relative;display:inline-block;line-height:0;border:2px solid var(--ccm, var(--blue));border-radius:50%;box-shadow:0 0 18px color-mix(in srgb,var(--ccm, var(--blue)) 26%,transparent)} /* Build DI: the Muse's own colour rings its pinned face (DA's truth, carried to the new seat) */
.pp-badge{position:absolute;right:2px;bottom:4px;width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--panel);border:1px solid var(--line2);color:var(--bone);box-shadow:0 4px 14px rgba(0,0,0,.45)}
.pp-badge svg{width:17px;height:17px;display:block}
.pp-st-working svg{animation:ppgear 7s linear infinite}
.pp-st-responding svg{animation:ppdots 1.15s ease-in-out infinite}
.pp-st-celebrating{background:color-mix(in srgb,var(--gold) 16%,var(--panel));border-color:color-mix(in srgb,var(--gold) 55%,transparent);color:var(--gold)}
.pp-st-celebrating svg{animation:pppop .55s var(--ease) 1}
@keyframes ppgear{to{transform:rotate(360deg)}}
@keyframes ppdots{0%,100%{opacity:.45}50%{opacity:1}}
@keyframes pppop{0%{transform:scale(.4)}55%{transform:scale(1.25)}100%{transform:scale(1)}}
.pp-details{position:absolute;right:2px;top:14px}
@media (prefers-reduced-motion: reduce){.pp-badge svg{animation:none}}
.ph-face{width:104px;height:104px;border-radius:50%;object-fit:cover;box-shadow:0 10px 34px rgba(0,0,0,.5)}
.ph-name{font-size:21px;font-weight:700;letter-spacing:-.01em;color:var(--bone)}
.presencepill{display:inline-block;max-width:88vw;padding:5px 13px;border-radius:999px;font-size:13px;font-weight:620;line-height:1.35;color:color-mix(in srgb,var(--pc) 82%,#fff);background:color-mix(in srgb,var(--pc) 16%,transparent);border:1px solid color-mix(in srgb,var(--pc) 42%,transparent);white-space:normal;text-align:center}
.typingbubble{display:flex;align-items:flex-end;gap:8px;margin-top:2px}
.tbface{width:27px;height:27px;border-radius:50%;object-fit:cover;flex:0 0 auto}
.tbdots{display:inline-flex;gap:5px;align-items:center;padding:13px 15px;border-radius:20px;background:var(--panel);border:1px solid var(--line)}
.tbdots i{width:7px;height:7px;border-radius:50%;background:var(--ash);animation:tbdot 1.15s ease-in-out infinite}
.tbdots i:nth-child(2){animation-delay:.16s}
.tbdots i:nth-child(3){animation-delay:.32s}
@keyframes tbdot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}
.tbtext{padding:11px 15px;border-radius:20px;background:var(--panel);border:1px solid var(--line);font-size:14.5px;color:var(--bone)}
@media (prefers-reduced-motion: reduce){.tbdots i{animation:none}}
/* — Build DI: THE LOGGING BEATS — a landing answers in the
   client's view: one small disc, centred low, that rises, plays
   its kind's own motion, and settles away. Pointer-transparent,
   never blocking input; steel-blue family throughout — no gold
   (gold is a verified personal best, and a beat is only an
   acknowledgment). Each kind moves its own way: food rises, water
   drops, a workout lifts, a scan's brackets pulse, a weigh-in
   swings, a photo flashes. — */
.eventbeat{position:fixed;left:50%;bottom:108px;z-index:40;transform:translate(-50%,16px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .3s var(--ease),transform .3s var(--ease),visibility 0s linear .3s}
.eventbeat.on{opacity:1;visibility:visible;transform:translate(-50%,0);transition:opacity .3s var(--ease),transform .3s var(--ease)}
.eventbeat .eb-ic{width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(16,22,30,.92);border:1px solid color-mix(in srgb,var(--blue) 55%,transparent);color:var(--blue-text);box-shadow:0 14px 36px rgba(0,0,0,.5);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.eventbeat .eb-ic svg{width:29px;height:29px;display:block}
.eventbeat.on .eb-food{animation:ebrise 1.5s var(--ease) 1}
.eventbeat.on .eb-water{animation:ebdrop 1.5s var(--ease) 1}
.eventbeat.on .eb-workout{animation:eblift 1.5s var(--ease) 1}
.eventbeat.on .eb-inbody{animation:ebpulse 1.5s var(--ease) 1}
.eventbeat.on .eb-weight{animation:ebswing 1.5s var(--ease) 1;transform-origin:50% 20%}
.eventbeat.on .eb-photo{animation:ebflash 1.5s var(--ease) 1}
@keyframes ebrise{0%{transform:translateY(10px)}35%{transform:translateY(-4px)}100%{transform:translateY(0)}}
@keyframes ebdrop{0%{transform:translateY(-9px)}45%{transform:translateY(2px)}100%{transform:translateY(0)}}
@keyframes eblift{0%{transform:translateY(5px)}40%{transform:translateY(-7px)}70%{transform:translateY(-5px)}100%{transform:translateY(0)}}
@keyframes ebpulse{0%{transform:scale(1)}35%{transform:scale(1.13)}100%{transform:scale(1)}}
@keyframes ebswing{0%{transform:rotate(0)}30%{transform:rotate(9deg)}65%{transform:rotate(-6deg)}100%{transform:rotate(0)}}
@keyframes ebflash{0%{filter:brightness(2.1)}100%{filter:brightness(1)}}
@media (prefers-reduced-motion: reduce){.eventbeat .eb-ic{animation:none}}
/* — Details inherits the card language — */
.worldcard{border-radius:22px;padding:18px 20px 10px}
.colorcard,.connectcard{border-radius:22px}
.startercard{border-radius:20px;padding:16px 18px}
.memcard{border-radius:18px;padding:15px 17px}
.ccsw .ccnow{font-size:12.5px}
/* — PROGRESS: same card grammar, same chart stroke family — */
.goalcard .grow{border-bottom:0;padding:10px 0}

/* ── Build BQ: the recipe book — a photo-led library, and one recipe whole ── */
.booksec{margin-top:24px}
.booksec-head{display:flex;align-items:baseline;justify-content:space-between;padding:0 2px}
.booksec-name{font-size:18.5px;font-weight:680;letter-spacing:-.01em}
.booksec-count{font-size:13px;color:var(--ash);font-weight:600}
.bookrail{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;margin:10px -22px 0;padding:2px 22px 10px;scrollbar-width:none}
.bookrail::-webkit-scrollbar{display:none}
.rcard{flex:0 0 172px;scroll-snap-align:start;background:var(--panel);border:1px solid var(--line);border-radius:20px;overflow:hidden;cursor:pointer;display:flex;flex-direction:column}
.rcard:active{background:var(--panel2)}
.rcard-photo{display:block;width:100%;height:116px;object-fit:cover}
.rcard-fallback{height:116px;display:flex;align-items:center;justify-content:center;background:var(--raised);color:var(--blue-text)}
.rcard-fallback svg{width:38px;height:38px;opacity:.85}
.rcard-body{padding:11px 13px 13px;display:flex;flex-direction:column;gap:3px;flex:1}
.rcard-name{font-weight:650;font-size:15.5px;line-height:1.28;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.56em}
.rcard-origin{font-size:12px;color:var(--ash)}
.rcard-foot{margin-top:auto;padding-top:9px;display:flex;align-items:center;justify-content:space-between}
.rcard-kcal{font-weight:700;font-size:15.5px;font-variant-numeric:tabular-nums}
/* — the detail — */
.rd-view{padding-bottom:40px}
.rd-hero{position:relative;margin:2px -22px 0}
.rd-hero-img{display:block;width:100%;height:308px;object-fit:cover}
.rd-hero-fallback{height:216px;display:flex;align-items:center;justify-content:center;background:var(--raised);color:var(--blue-text)}
.rd-hero-fallback svg{width:56px;height:56px;opacity:.85}
.rd-hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:64px;background:linear-gradient(180deg,rgba(10,10,11,0),var(--ink));pointer-events:none}
.rd-ov{position:absolute;top:14px;z-index:2;width:42px;height:42px;border-radius:50%;background:rgba(10,10,11,.55);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:var(--bone);display:flex;align-items:center;justify-content:center;font-size:24px;line-height:1}
.rd-ov svg{width:19px;height:19px}
.rd-ov-l{left:16px}
.rd-ov-r{right:16px}
.rd-title{font-size:30px;line-height:1.12;letter-spacing:-.02em;font-weight:700;margin:18px 0 6px}
.rd-sub{color:var(--ash);font-size:14.5px}
.rd-chips{display:flex;gap:8px;overflow-x:auto;padding:14px 0 2px;scrollbar-width:none}
.rd-chips::-webkit-scrollbar{display:none}
.rd-chip{flex:0 0 auto;border:1px solid var(--line2);background:var(--panel);border-radius:999px;padding:6px 13px;font-size:13px;font-weight:600}
/* Build BR: macro-label chips wear their macro's colour as a soft tint
   (the ruled macro family — coral protein, teal carbs, violet fat).
   High takes the fuller tint, Light the same hue clearly fainter, so
   intensity encodes direction while the word always rides with the
   colour; the text keeps the full-strength hue for contrast on the
   near-black surfaces. Gold stays reserved for PB moments — never here. */
.mlab-protein{color:#EE8F74}.mlab-carbs{color:#63BBA9}.mlab-fat{color:#B79CDB}
.mlab-high.mlab-protein{background:rgba(238,143,116,.16);border-color:rgba(238,143,116,.55)}
.mlab-high.mlab-carbs{background:rgba(99,187,169,.16);border-color:rgba(99,187,169,.55)}
.mlab-high.mlab-fat{background:rgba(183,156,219,.16);border-color:rgba(183,156,219,.55)}
.mlab-light.mlab-protein{background:rgba(238,143,116,.05);border-color:rgba(238,143,116,.25)}
.mlab-light.mlab-carbs{background:rgba(99,187,169,.05);border-color:rgba(99,187,169,.25)}
.mlab-light.mlab-fat{background:rgba(183,156,219,.05);border-color:rgba(183,156,219,.25)}
.rcard-labels{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}
.rlabel{border:1px solid var(--line2);border-radius:999px;padding:3px 9px;font-size:11.5px;font-weight:650;line-height:1.35}
/* ── Build BS: entry flags ride the same chips on a logged plate (the
   client Today, the meal editor's ingredients, the coach logbook),
   and the day-pattern driver line sits quiet under the day's macros —
   plain information in the day's own voice: no warning colour, no
   icon, nothing to dismiss. ── */
.flabels{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}
.driverline{font-size:13.5px;color:var(--ash);line-height:1.5;margin:10px 2px 0}
.rd-nut{display:flex;gap:20px;align-items:center;margin-top:14px}
.rd-ring{position:relative;flex:0 0 128px;width:128px;height:128px}
.rd-ring svg{width:128px;height:128px;display:block}
.rd-ring-c{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.rd-ring-n{font-size:27px;font-weight:720;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.rd-ring-u{font-size:12.5px;color:var(--ash);font-weight:600}
.rd-mrows{flex:1;display:flex;flex-direction:column;gap:12px}
.rd-mrow{display:flex;align-items:center;gap:9px}
.mdot{width:10px;height:10px;border-radius:3px;flex:0 0 auto}
.rd-mlabel{font-weight:600}
.rd-mgrams{margin-left:auto;font-variant-numeric:tabular-nums}
.rd-mpct{color:var(--ash);font-size:13.5px;min-width:36px;text-align:right;font-variant-numeric:tabular-nums}
.rd-h3{font-size:15.5px;font-weight:680;margin:20px 0 8px}
.rd-goal{display:flex;align-items:center;gap:10px;padding:6px 0}
.rd-glabel{flex:0 0 62px;font-size:14px;font-weight:600}
.rd-gtrack{flex:1;height:7px;border-radius:99px;background:var(--panel2);overflow:hidden}
.rd-gtrack i{display:block;height:100%;border-radius:99px;background:var(--blue)}
.rd-gpct{flex:0 0 40px;text-align:right;font-weight:700;font-variant-numeric:tabular-nums}
.rd-gof{flex:0 0 74px;color:var(--ash);font-size:12.5px}
.rd-ing{display:flex;align-items:baseline;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}
.rd-ing:last-child{border-bottom:0}
.rd-ing-main{flex:1;font-size:15.5px}
.rd-ing-main b{font-weight:680}
.rd-ing-note{display:block;font-size:13px;color:var(--ash);margin-top:1px}
.rd-ing-nums{color:var(--ash);font-size:13.5px;white-space:nowrap;font-variant-numeric:tabular-nums}
.rd-steps{display:flex;flex-direction:column;gap:14px;margin-top:6px}
.rd-step{display:flex;gap:12px;align-items:flex-start}
.rd-n{flex:0 0 27px;width:27px;height:27px;border-radius:50%;background:var(--blue-dim);color:var(--blue-text);font-weight:700;font-size:13.5px;display:flex;align-items:center;justify-content:center;margin-top:1px}
.rd-step p{flex:1;font-size:16px;line-height:1.55}
.rd-actions{display:flex;align-items:center;gap:12px;margin-top:30px}
.rd-dot{color:var(--ash2)}
.rd-sticky{position:fixed;left:0;right:0;bottom:86px;z-index:35;display:flex;justify-content:center;padding:0 14px;pointer-events:none}
.rd-sticky-in{pointer-events:auto;width:100%;max-width:492px;display:flex;align-items:center;gap:12px;background:var(--panel2);border:1px solid var(--line2);border-radius:19px;padding:10px 10px 10px 17px;box-shadow:0 14px 34px rgba(0,0,0,.55)}
.rd-sticky-tx{flex:1;color:var(--ash);font-size:14px;line-height:1.3;white-space:nowrap}
.rd-sticky-tx b{color:var(--bone);font-size:16px}
.rd-sticky-sub{font-size:12.5px}

/* ── Build BU: the three questions ───────────────────────────────────
   The glance card at the top of Today (her Muse's face, the hour's
   greeting, the record's snapshot — alive before a word is posted),
   the two question buttons under it, the dealt hand of recipes in the
   "What do I eat?" sheet (photo-led, sized to her day), the generator
   rows where her Muse's face means "creating", and the program map
   in "What do I train?" — an arc, a week strip, the progress so far. */
.glancecard{display:flex;gap:13px;align-items:flex-start;margin-top:16px;padding:17px 18px;border-radius:22px;background:var(--raised-soft);border:1px solid var(--line);box-shadow:var(--shadow-card)}
.gc-face{flex:0 0 auto;width:52px;height:52px;border-radius:50%;object-fit:cover;background:var(--panel2)}
img.gc-face.museface{animation:museidle 5.5s ease-in-out infinite}
@media (prefers-reduced-motion: reduce){img.gc-face.museface{animation:none}}
.gc-main{flex:1;min-width:0}
.gc-greet{font-size:21px;font-weight:680;letter-spacing:-.01em;line-height:1.2}
.gc-snap{margin-top:3px;font-size:14px;color:var(--ash);line-height:1.45}
.gc-post{margin-top:11px;padding-top:11px;border-top:1px solid var(--line)}
.gc-kind{font-size:11.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--blue-text)}
.gc-body{margin-top:5px;font-size:15px;line-height:1.55;white-space:pre-wrap}
.qrow{display:flex;gap:10px;margin-top:12px}
.qbtn{flex:1;min-width:0;text-align:left;background:var(--panel);border:1px solid var(--line2);border-radius:18px;padding:14px 15px;cursor:pointer;color:var(--bone)}
.qbtn:active{background:var(--panel2)}
.qbtn-t{display:block;font-size:16.5px;font-weight:680;line-height:1.25}
.qbtn-s{display:block;margin-top:3px;font-size:12.5px;color:var(--ash);line-height:1.4}
.dealhand{display:flex;flex-direction:column;gap:12px}
.dealcard{position:relative;background:var(--panel);border:1px solid var(--line);border-radius:20px;overflow:hidden;cursor:pointer;display:flex;flex-direction:column;text-align:left;color:var(--bone);padding:0;width:100%}
.dealcard:active{background:var(--panel2)}
.deal-photo{display:block;width:100%;height:150px;object-fit:cover}
.deal-photo.big{height:190px;border-radius:16px;margin-top:12px}
.deal-fallback{height:150px;display:flex;align-items:center;justify-content:center;background:var(--raised);color:var(--blue-text)}
.deal-fallback.big{height:190px;border-radius:16px;margin-top:12px}
.deal-fallback svg{width:40px;height:40px;opacity:.85}
.deal-fresh{position:absolute;top:10px;left:10px;display:inline-flex;align-items:center;gap:6px;background:rgba(10,10,11,.62);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid var(--line2);border-radius:999px;padding:4px 10px 4px 5px;font-size:12px;font-weight:650;color:var(--bone)}
.deal-av{width:20px;height:20px;border-radius:50%;object-fit:cover;vertical-align:middle}
.deal-body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:3px}
.deal-name{font-weight:680;font-size:17px;line-height:1.25}
.deal-meta{font-size:12.5px;color:var(--ash)}
.deal-foryou{margin-top:5px;font-size:14.5px;color:var(--ash)}
.deal-foryou b{color:var(--bone);font-size:16px}
.deal-nums{font-size:13.5px;color:var(--ash);line-height:1.5}
.deal-nums b{color:var(--bone)}
.deal-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.genrow{display:flex;gap:12px;align-items:center;background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:13px 14px}
.reqrow{display:flex;gap:10px;align-items:center;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:9px 12px;margin-top:8px;font-size:14.5px;color:var(--ash)}
.arcrow{display:flex;gap:4px;height:52px}
.arcseg{position:relative;display:flex;flex-direction:column;justify-content:center;padding:0 10px;border-radius:12px;background:var(--panel);border:1px solid var(--line);min-width:0;overflow:hidden}
.arcseg.cur{background:rgba(91,142,196,.16);border-color:rgba(91,142,196,.55)}
.arcseg-t{font-size:13px;font-weight:680;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.arcseg-w{font-size:11px;color:var(--ash);white-space:nowrap}
.mapstrip{margin-top:4px}
.mapstats{display:flex;gap:10px;margin-top:16px}
.mapstat{flex:1;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:12px 8px;text-align:center;display:flex;flex-direction:column;gap:2px}
.mapstat b{font-size:21px;font-weight:720;font-variant-numeric:tabular-nums}
.mapstat span{font-size:12px;color:var(--ash);line-height:1.35}

/* ── Build BY: the Workout History calendar — a month of training
   days at a glance. Trained days carry their session's name (and a
   gold record count — gold stays what it is: PB moments only);
   planned days read in steel blue; rest is quiet. ── */
.hcal-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;flex-wrap:wrap}
.hcal-title{font-size:17px;font-weight:680}
.hcal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-top:10px}
.hcal-dow{font-size:10.5px;letter-spacing:.08em;color:var(--ash);text-transform:uppercase;font-weight:600;text-align:center;padding:2px 0}
.hcell{border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:7px 6px 6px;min-height:76px;text-align:left;color:var(--bone);display:flex;flex-direction:column;gap:2px;cursor:pointer;width:100%;font:inherit}
.hcell:active{background:var(--panel2)}
.hcell.trained{background:var(--panel2)}
.hcell .dnum{font-size:13.5px;font-weight:640}
.hcell .dlab{font-size:10.5px;line-height:1.25;color:var(--bone);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hcell.planned .dlab{color:var(--blue-text)}
.hcell.rest .dlab{color:var(--ash2)}
.hcell .drec{font-size:10px;font-weight:700;color:var(--gold);white-space:nowrap}
.hcell .dadj{font-size:9.5px;color:var(--blue-text);font-weight:600;letter-spacing:.02em;white-space:nowrap}
.hcell.spill{opacity:.42}
.hcell.today{border-color:rgba(91,142,196,.65)}
.hcell.sel{border-color:var(--bone);box-shadow:0 0 0 1px var(--bone) inset}
@media (max-width:560px){.hcell{min-height:62px;padding:5px 4px}.hcell .dlab{font-size:9.5px}.hcell .dnum{font-size:12.5px}.hcell .drec{font-size:9.5px}.hcell .drecw{display:none}.hcell .dadj{font-size:8.5px}}

/* ── Build CE: the room reads like a product ─────────────────────
   The coach room's reading surfaces take the product's own visual
   language — the quiet-card family the client side already speaks
   (.memcard, .card, .macrogrid) — so a record reads as entries on
   cards, not as a labelled dump. Presentation only: same words,
   same record, same doors; the labels stop shouting (sentence case
   at reading size, no letterspaced caps), empty states whisper,
   scales stand as meters, and each thread message stands as its
   own card with its author and time on one line. Gold stays PB-only
   — nothing here touches it. */
/* The labelled record line becomes a quiet card (Tune-In answers,
   notebook fields + notes, check-in answers, and the Overview's
   record lists — weigh-ins, measures, history, memory, actions). */
.memline{background:var(--panel);border:1px solid var(--line);border-radius:15px;padding:13px 15px;margin-top:9px}
.memline .src{font-size:13px;letter-spacing:0;text-transform:none;color:var(--ash2);font-weight:600;margin-bottom:3px}
/* The notebook's spine is a set of named fields, not list rows:
   the field name stands at reading weight, its content below it. */
.memline.nbspine .src{font-size:14.5px;color:var(--bone);font-weight:650;margin-bottom:4px}
/* An unkept field whispers — smaller, quieter than any content. */
.nbempty{font-size:13.5px}
/* Scale answers as meters: five dots, the filled count is the
   answer; the standing words ride beside them, unchanged. */
.scalerow{display:inline-flex;align-items:center;gap:9px}
.scaledots{display:inline-flex;gap:5px;flex:0 0 auto}
.scaledots i{width:9px;height:9px;border-radius:50%;background:rgba(245,242,236,.14)}
.scaledots i.on{background:var(--blue)}
.scaleval{font-weight:650;font-variant-numeric:tabular-nums}
/* The thread reads as a conversation: one card per message, the
   author and the time sharing a header line, the words below. */
.tmsg{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:14px 16px;margin-top:10px}
.tmsg.agent{border-color:rgba(91,142,196,.32)}
/* Build DA: inside the desk's room thread (the wrapper carries the
   room's pair as --cc/--ccm), each side's rows wear their own
   colour's border — the same two colours the client's thread
   wears, at transcript weight. */
.ccthread .tmsg.client{border-color:color-mix(in srgb,var(--cc,#4C77A5) 38%,transparent)}
.ccthread .tmsg.agent{border-color:color-mix(in srgb,var(--ccm,#7E63C7) 48%,transparent)}
.tmsg .who{flex-wrap:wrap;row-gap:2px}
.tmsg .tname{flex:0 1 auto;min-width:0}
.tmsg .who .at{margin-left:auto;margin-top:0;text-align:right;flex:0 0 auto;text-transform:none;letter-spacing:0}
/* Logbook entries, book rows and the Overview's record rows stand
   as cards: the name dominant, the numbers at the right, the
   metadata on its own quiet line — nothing crowds anything. */
.row.lbrow,.row.bkcard,.row.rmcard{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:14px 16px;margin-top:10px}
#app:not(.wide):not(.full) .row.lbrow,#app:not(.wide):not(.full) .row.bkcard,#app:not(.wide):not(.full) .row.rmcard{padding:14px 16px}
.row.lbrow.arch{opacity:.6}
.lbrow .lbright{align-self:flex-start}
/* A meal in the logbook is a section, not a label line: its name
   at reading size, its subtotal quiet beside it. */
.lbmeal{display:flex;align-items:baseline;flex-wrap:wrap}
.lbmeal-name{font-size:16.5px;font-weight:650;color:var(--bone);letter-spacing:-.01em}
.lbmeal-tot{font-size:13.5px;color:var(--ash);font-weight:550}

/* ── Build CH: the food side in the concept's dress ──────────────────
   A presentation pass over the v93 machinery: the day hero is a
   segmented ring (macro kcal shares of what was eaten, in the
   shipped palette — protein coral, carbs teal, fat violet; the
   centre is kcal remaining), the meals read as one menu card, the
   journal is the paper surface (cream + serif — that treatment
   lives ONLY in the journal), the book is photo-forward, and the
   add sheet's primary actions wear the concept's pale steel
   (#D7E5F5, dark text). Gold stays out of food entirely (PB
   moments only). */
.ch-display{font-size:44px;line-height:1.02;letter-spacing:-.03em;font-weight:700}
.ch-dateline{color:var(--ash);font-size:15px;margin-top:2px}
.ch-todayhead{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:2px}
.ch-journalbtn{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border-radius:999px;
  background:var(--panel2);border:1px solid var(--line2);font-weight:640;font-size:15px;color:var(--bone);flex:0 0 auto}
.ch-journalbtn svg{width:17px;height:17px}
.ch-calbtn{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;
  background:var(--panel2);border:1px solid var(--line2);color:var(--bone);flex:0 0 auto}
.ch-calbtn svg{width:20px;height:20px}
.ch-ringrow{display:flex;align-items:center;gap:26px;margin-top:26px}
.ch-ring{position:relative;width:158px;height:158px;flex:0 0 auto}
.ch-ring svg{width:158px;height:158px;display:block}
.ch-ring-c{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.ch-ring-n{font-size:37px;font-weight:700;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums}
.ch-ring-u{font-size:13.5px;color:var(--ash);margin-top:3px}
.ch-ringside{min-width:0}
.ch-side-lab{font-size:13px;letter-spacing:.02em;color:var(--ash);font-weight:600}
.ch-side-val{font-size:31px;font-weight:700;letter-spacing:-.02em;margin-top:2px;font-variant-numeric:tabular-nums}
.ch-side-val span{font-size:16px;color:var(--ash);font-weight:560}
.ch-side-val2{font-size:19px;font-weight:620;margin-top:2px;font-variant-numeric:tabular-nums}
.ch-macros{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;margin-top:26px}
.ch-macro{display:flex;flex-direction:column;gap:5px;min-width:0}
.ch-mtop{display:flex;align-items:center;gap:7px;font-size:14.5px;font-weight:600}
.ch-dot{width:9px;height:9px;border-radius:50%;flex:0 0 auto}
.ch-mnum{font-size:15px;font-variant-numeric:tabular-nums}
.ch-mnum b{font-weight:700}
.ch-mnum span{color:var(--ash)}
.ch-mbar{display:block;height:4px;border-radius:99px;background:var(--panel2);overflow:hidden}
.ch-mbar i{display:block;height:100%;border-radius:99px}
/* [Build V146] the macros route's hero: a panel where the kcal ring
   stood. [Build V148] the panel's three macro rows became Sam's
   three mini circles (macroMiniRings in app.js) — one ring per
   macro, filling against its goal, the met state named under it.
   The panel wears the app's own card dress. */
.ch-macpanel{background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:18px;margin-top:6px}
.ch-macpanel-h{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ash)}
.ch-macpanel .minirings{margin-top:18px}
.ch-met{font-style:normal;font-size:11px;font-weight:700;letter-spacing:.04em;color:#7BC47F;margin-left:7px;white-space:nowrap}
/* [Build V148] the mini circles — one painter, two sizes: the Food
   panel wears the full size, the Today food card the sm size. */
.minirings{display:flex;justify-content:space-between;gap:10px}
.miniring{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center}
.miniring-c{position:relative;width:88px;height:88px;flex:0 0 auto}
.miniring-c svg{width:88px;height:88px;display:block}
.miniring-n{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.miniring-n b{font-size:22px;font-weight:700;letter-spacing:-.02em;line-height:1;font-variant-numeric:tabular-nums}
.miniring-n span{font-size:11.5px;color:var(--ash);font-weight:600;margin-top:2px}
.miniring-lab{font-size:13.5px;font-weight:600;margin-top:9px}
.miniring-num{font-size:12.5px;color:var(--ash);font-variant-numeric:tabular-nums;margin-top:2px;white-space:nowrap}
.miniring-num b{color:var(--bone);font-weight:700}
.miniring .ch-met{margin-left:0;margin-top:3px}
.foodcard .minirings{flex:1}
.minirings.sm{gap:8px}
.minirings.sm .miniring-c{width:56px;height:56px}
.minirings.sm .miniring-c svg{width:56px;height:56px}
.minirings.sm .miniring-n b{font-size:14px}
.minirings.sm .miniring-n span{font-size:9px;margin-top:1px}
.minirings.sm .miniring-lab{font-size:11px;margin-top:6px}
.minirings.sm .miniring-num{font-size:10.5px}
.minirings.sm .ch-met{font-size:9.5px;margin-top:2px}
@media (max-width:360px){.miniring-c{width:74px;height:74px}.miniring-c svg{width:74px;height:74px}.miniring-n b{font-size:19px}.minirings.sm .miniring-c{width:56px;height:56px}.minirings.sm .miniring-c svg{width:56px;height:56px}.minirings.sm .miniring-n b{font-size:14px}}
.ch-logrow{display:flex;gap:12px;margin-top:26px}
.ch-logbtn{flex:1;background:#D7E5F5;color:#12233B;font-weight:700;font-size:17.5px;border-radius:999px;padding:16px 10px;letter-spacing:-.01em}
.ch-logbtn:active{background:#C3D6EE}
.ch-scanbtn{width:58px;border-radius:999px;background:var(--panel2);border:1px solid var(--line2);display:flex;align-items:center;justify-content:center;color:var(--bone)}
.ch-scanbtn svg{width:24px;height:24px}
.ch-menuhead{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:32px}
.ch-menuhead h2{font-size:23px;font-weight:680;letter-spacing:-.02em}
.ch-menu{margin-top:12px;background:var(--panel);border:1px solid var(--line);border-radius:22px;padding:6px 18px}
.ch-meal{padding:15px 0 17px}
.ch-meal + .ch-meal{border-top:1px solid var(--line)}
.ch-meal-head{display:flex;align-items:center;gap:11px}
.ch-meal-head .mc-icon{display:inline-flex;color:var(--ash)}
.ch-meal-head .mc-icon svg{width:21px;height:21px}
.ch-meal-name{font-size:17.5px;font-weight:650;flex:1;min-width:0}
.ch-plus{width:34px;height:34px;border-radius:50%;background:var(--panel2);border:1px solid var(--line2);
  font-size:20px;line-height:1;color:var(--bone);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.ch-meal-sub{font-size:14px;color:var(--ash);margin:7px 0 2px 32px;font-variant-numeric:tabular-nums}
.ch-meal-empty{font-size:14.5px;color:var(--ash);font-style:italic;margin:7px 0 0 32px}
.ch-meal .mealnote{margin-left:32px}
.ch-entry{display:flex;align-items:center;gap:10px;padding:9px 0 9px 32px;cursor:pointer}
.ch-entry + .ch-entry{border-top:1px solid var(--line)}
.ch-entry-main{flex:1;min-width:0}
.ch-entry-name{display:block;font-size:16px;font-weight:580;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-entry-sub{display:block;font-size:13px;color:var(--ash);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-entry-kcal{font-size:16.5px;font-weight:650;font-variant-numeric:tabular-nums;flex:0 0 auto}
.ch-entry-x{flex:0 0 auto}
.ch-same{display:flex;align-items:center;gap:12px;width:100%;text-align:left;margin-top:16px;
  background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:15px 17px}
.ch-same-main{flex:1;min-width:0}
.ch-same .t{font-size:16.5px;font-weight:640}
.ch-same-ic{display:inline-flex;color:var(--ash)}
.ch-same-ic svg{width:21px;height:21px}
.ch-deal{position:relative;display:block;width:100%;text-align:left;margin-top:16px;border-radius:22px;overflow:hidden;
  border:1px solid var(--line);min-height:172px;background:var(--panel)}
.ch-deal-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ch-deal-photo.ch-fallback{position:absolute}
.ch-deal-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,10,14,.88) 30%,rgba(8,10,14,.45) 68%,rgba(8,10,14,.15))}
.ch-deal-tx{position:relative;display:flex;flex-direction:column;gap:5px;padding:22px 20px;max-width:82%}
.ch-deal-eyebrow{font-size:11.5px;letter-spacing:.2em;font-weight:700;color:#BFD3EC}
.ch-deal-head{font-size:23px;font-weight:700;letter-spacing:-.02em;line-height:1.15}
.ch-deal-sub{font-size:14.5px;color:#D8DDE6;line-height:1.4}
.ch-fallback{display:flex;align-items:center;justify-content:center;
  background:linear-gradient(140deg,color-mix(in srgb,var(--tint) 52%,#141416),#141416 78%)}
.ch-fallback span{font-size:64px;font-weight:700;color:color-mix(in srgb,var(--tint) 78%,#F5F2EC);letter-spacing:-.02em}
.ch-water{margin-top:16px;background:var(--panel);border:1px solid var(--line);border-radius:22px;padding:18px}
.ch-water-head{display:flex;align-items:center;gap:10px}
.ch-water-name{font-size:17.5px;font-weight:650}
.ch-water-nums{margin-left:auto;font-size:15.5px;color:var(--ash);font-variant-numeric:tabular-nums}
.ch-water-nums b{color:var(--bone);font-size:17px}
.ch-water .meter{margin-top:12px}
.ch-water-chips{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px;align-items:center}
.ch-palebtn{display:block;width:100%;margin-top:18px;background:#D7E5F5;color:#12233B;font-weight:700;
  font-size:16.5px;border-radius:999px;padding:15px 10px}
.btn.ch-pale{background:#D7E5F5;color:#12233B;border-color:transparent}
.btn.ch-pale:active{background:#C3D6EE}
/* journal */
.ch-book-eyebrow{font-size:12px;letter-spacing:.22em;font-weight:700;color:var(--blue-text);margin-top:26px}
.ch-jr-sub{color:var(--ash);font-size:15.5px;margin-top:8px}
.jr-month{font-size:12.5px;letter-spacing:.2em;font-weight:700;color:var(--ash);margin:30px 0 4px}
.jr-row{display:flex;align-items:center;gap:16px;width:100%;text-align:left;padding:14px 2px;border-bottom:1px solid var(--line)}
.jr-num{font-size:38px;font-weight:700;letter-spacing:-.03em;line-height:1;display:flex;flex-direction:column;align-items:center;min-width:52px}
.jr-dow{font-size:10.5px;letter-spacing:.18em;color:var(--ash);font-weight:700;margin-top:3px}
.jr-main{flex:1;min-width:0}
.jr-hero{display:block;font-size:17.5px;font-weight:640;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jr-sub{display:block;font-size:14px;color:var(--ash);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
.jr-nums{display:block;font-size:14px;color:var(--ash);margin-top:2px;font-variant-numeric:tabular-nums}
.jr-thumb{width:54px;height:54px;border-radius:13px;object-fit:cover;flex:0 0 auto}
.jr-cal{margin-top:16px;background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:16px}
.jr-cal-head{display:flex;align-items:center;justify-content:space-between;font-weight:660;font-size:16px}
.ch-pgbtn{width:34px;height:34px;border-radius:50%;background:var(--panel2);border:1px solid var(--line2);font-size:19px;line-height:1}
.jr-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-top:12px}
.jr-cal-dow{text-align:center;font-size:11px;color:var(--ash);font-weight:700;padding:3px 0}
.jr-cal-cell{position:relative;text-align:center;padding:8px 0 10px;font-size:14.5px;border-radius:11px;font-variant-numeric:tabular-nums}
.jr-cal-cell.today{outline:1px solid var(--blue)}
.jr-cal-cell.sel{background:var(--blue-dim)}
.jr-cal-cell.dim{background:none}
.jr-dot{position:absolute;left:50%;bottom:3px;transform:translateX(-50%);width:5px;height:5px;border-radius:50%;background:var(--blue-text)}
.jr-dayback{display:flex;align-items:center;justify-content:space-between;margin-top:22px}
/* Build CK: the paper treatment, unified — the sheet sits IN the app:
   warm paper with depth (a gradient, never a flat slab), a steel-blue
   spine rule down its left edge, the date composed as a mono kicker
   above the serif weekday, structured entries, and a full-contrast
   floor — no light-on-cream text anywhere on the page. Both paper
   pages wear it: the food journal's day and the training record. */
/* [Build V150] Sam's journal-theme ruling (2026-11-05 12:18):
   "where is light mode and dark mode for the app? I think the
   journal should follow whatever mode your in instead of it being
   that bright white always." The paper surfaces — the food
   journal's day page and the training record, the two .jr-paper /
   .tr-paper wearers — now FOLLOW the client's theme: every paper
   colour below reads a --paper-* token defined on the surface
   itself; the cream values stand as the base (they are exactly
   the light mode's paper), and the dark block after these rules
   re-tokens the same surfaces in the app's dark palette — serif,
   layout and structure untouched in both. [Build V155] This
   build first exempted the Timeline book's pages and the scan
   paper as "document surfaces" keeping cream in both themes;
   Sam rejected the exemption the same evening (2026-11-05
   18:44): the ruling meant the paper surfaces, all of them —
   "I want a dark version that still looks the same just a dark
   mode version." The book pages and the scan paper now read
   the same --paper-* tokens from their .tl-overlay seat (the
   Build CS block below); the exemption text is retired here,
   not left standing. */
.jr-paper,.tr-paper{--serif:ui-serif,"New York",Georgia,"Times New Roman",serif;
  --paper1:#FAF4E6;--paper2:#F5EDD8;--paper3:#EFE4CB;--paper-ink:#211D14;--paper-body:#3E382A;
  --paper-sub:#5C5540;--paper-faint:#6E6040;--paper-line:#DCD2B8;--paper-edge:#B4A67E;
  --paper-field:#FFFDF6;--paper-card:#FBF7EE;--paper-link:#7A5B21;--paper-mute:#8A7F6E;--ring-track:#E7DCBE;
  background:linear-gradient(168deg,var(--paper1) 0%,var(--paper2) 55%,var(--paper3) 100%);color:var(--paper-ink);border-radius:20px;padding:30px 24px 26px;margin-top:14px;
  box-shadow:inset 4px 0 0 var(--blue),0 18px 44px rgba(0,0,0,.45)}
.jr-p-eyebrow{font-size:11px;letter-spacing:.26em;font-weight:700;color:var(--paper-faint)}
.jr-p-day{font-family:var(--serif);font-size:41px;font-weight:600;letter-spacing:-.01em;margin-top:10px;line-height:1.05}
.jr-p-date{font-family:var(--serif);font-style:italic;font-size:17px;color:var(--paper-sub);margin-top:3px}
.jr-p-kdate{font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace;font-size:11px;letter-spacing:.22em;font-weight:700;color:var(--paper-faint);margin-top:14px}
.jr-p-lede{font-size:16.5px;color:var(--paper-body);margin-top:8px}
.jr-p-rule{height:1px;background:var(--paper-line);margin:18px 0}
.jr-p-tot{font-size:17px}
.jr-p-tot b{font-size:21px}
.jr-p-macros{font-size:15px;color:var(--paper-sub);margin-top:2px}
.jr-p-meal{margin-top:20px}
.jr-p-mealhead{display:flex;align-items:center;justify-content:space-between;font-size:12px;letter-spacing:.2em;font-weight:700;color:var(--paper-faint)}
.jr-p-plus{width:28px;height:28px;border-radius:50%;border:1px solid var(--paper-edge);color:var(--paper-sub);font-size:17px;line-height:1;display:flex;align-items:center;justify-content:center}
.jr-p-entry{display:flex;align-items:baseline;gap:12px;padding:7px 0 0;cursor:pointer}
.jr-p-ename{font-size:16.5px;font-weight:650;flex:1;min-width:0}
.jr-p-ekcal{font-size:14.5px;color:var(--paper-sub);font-variant-numeric:tabular-nums;flex:0 0 auto}
.jr-p-enote{font-family:var(--serif);font-style:italic;font-size:14px;color:var(--paper-sub);padding-left:2px}
.jr-p-empty{font-family:var(--serif);font-style:italic;font-size:16.5px;color:var(--paper-faint);padding-top:6px}
.jr-p-water{font-family:var(--serif);font-style:italic;font-size:16.5px;color:var(--paper-sub);padding-top:6px}
.jr-paper .repeatrow{margin-top:2px}
.jr-paper .fc-link{color:var(--paper-link)}
.jr-p-note{margin-top:26px;border-top:1px solid var(--paper-line);padding-top:18px}
.jr-p-notehead{display:flex;justify-content:space-between;align-items:baseline;font-size:15.5px;font-weight:650}
.jr-p-opt{font-size:12.5px;color:var(--paper-faint);font-weight:600}
.jr-p-note textarea{background:var(--paper-field);border:1px solid var(--paper-line);color:var(--paper-ink);margin-top:10px;
  font-family:var(--serif);font-size:16.5px;border-radius:12px}
.jr-p-note textarea::placeholder{color:var(--paper-mute);font-style:italic}
.jr-p-notebar{display:flex;align-items:center;gap:12px;margin-top:10px}
.jr-p-notemsg{flex:1;font-size:13px;color:var(--paper-faint)}
.jr-daynav{display:flex;justify-content:space-between;margin-top:18px}
/* [Build V150] the paper in dark mode — the same tokens re-set on
   the app's dark palette (dark is the base theme: data-theme
   absent). The journal keeps its character — the serif, the warm
   tan accents lifted for a dark ground, the blue spine — on a
   warm charcoal page instead of the bright cream. In light mode
   none of this applies and the cream above stands untouched. */
:root:not([data-theme="light"]) .jr-paper,:root:not([data-theme="light"]) .tr-paper{
  --paper1:#1E1B17;--paper2:#14120F;--paper3:#0F0D0B;--paper-ink:#F5F2EC;--paper-body:#DCD5C3;
  --paper-sub:#B3AB9A;--paper-faint:#B09A68;--paper-line:rgba(224,213,186,.20);--paper-edge:#77683F;
  --paper-field:#0C0B09;--paper-card:#1B1813;--paper-link:#D3AC55;--paper-mute:#948B76;--ring-track:#2B251B}
/* [Build V150] the journal day's ring set (jrRingsHtml in app.js):
   Today's ring furniture seated on the paper — same geometry,
   the track re-grounded on the paper via --ring-track so the
   groove reads on cream and on the dark page alike. */
.jr-rings{margin:22px 0 20px}
.jr-rings .ch-ringrow{margin-top:0;gap:20px}
.jr-rings .ch-macpanel{margin-top:0}
.jr-rings .ch-macros{margin-top:20px}
.jr-rings .ch-mbar{background:var(--ring-track)}
.jr-rings .miniring-c svg circle:not([class]){stroke:var(--ring-track)}
.rp-row{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--line);cursor:pointer}
/* recipe book */
.ch-book-title{margin-top:6px}
.ch-bookchips{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.ch-bookchips button{padding:8px 15px;border-radius:999px;background:var(--panel2);border:1px solid var(--line2);font-size:14px;font-weight:600;color:var(--ash)}
.ch-bookchips button.on{background:#D7E5F5;color:#12233B;border-color:transparent}
.ch-feat{position:relative;display:block;width:100%;text-align:left;margin-top:18px;border-radius:22px;overflow:hidden;min-height:216px;background:var(--panel);border:1px solid var(--line)}
.ch-feat-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ch-feat-photo.ch-fallback{position:absolute}
.ch-feat-photo.ch-fallback span{font-size:96px}
.ch-feat-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,10,14,.06) 34%,rgba(8,10,14,.82))}
.ch-feat-tx{position:absolute;left:0;right:0;bottom:0;padding:18px;display:flex;flex-direction:column;gap:3px}
.ch-feat-eyebrow{font-size:11px;letter-spacing:.2em;font-weight:700;color:#BFD3EC}
.ch-feat-name{font-size:24px;font-weight:700;letter-spacing:-.02em;line-height:1.12}
.ch-feat-meta{font-size:14px;color:#D8DDE6}
.ch-feat-save{position:absolute;top:14px;right:14px;background:#D7E5F5;color:#12233B;font-weight:700;
  font-size:14.5px;border-radius:999px;padding:9px 18px}
.ch-pager{display:flex;align-items:center;gap:14px;justify-content:center;margin-top:10px;color:var(--ash);font-size:13.5px}
.ch-create{display:flex;align-items:center;gap:13px;width:100%;text-align:left;margin-top:18px;
  background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:15px 17px;font-size:16.5px;font-weight:620}
.ch-create-plus{width:32px;height:32px;border-radius:50%;background:var(--panel2);border:1px solid var(--line2);
  display:flex;align-items:center;justify-content:center;font-size:19px;flex:0 0 auto}
.ch-rgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}
.ch-rcard{background:var(--panel);border:1px solid var(--line);border-radius:18px;overflow:hidden;cursor:pointer;display:flex;flex-direction:column}
.ch-rcard-photo{width:100%;height:104px;object-fit:cover;display:block}
.ch-rcard-photo.ch-fallback{height:104px}
.ch-rcard-photo.ch-fallback span{font-size:44px}
.ch-rcard-body{padding:12px 13px 13px;display:flex;flex-direction:column;gap:3px;flex:1}
.ch-rcard-name{font-size:15.5px;font-weight:640;line-height:1.25}
.ch-rcard-meta{font-size:13px;color:var(--ash);font-variant-numeric:tabular-nums}
.ch-rcard-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:9px}
.ch-rcard-origin{font-size:12px;color:var(--ash)}
/* recipe view additions */
.ch-statband{display:flex;gap:0;margin-top:16px;background:var(--panel);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.ch-stat{flex:1;display:flex;flex-direction:column;align-items:center;gap:1px;padding:13px 4px}
.ch-stat + .ch-stat{border-left:1px solid var(--line)}
.ch-stat b{font-size:19px;font-weight:700;font-variant-numeric:tabular-nums}
.ch-stat span{font-size:12.5px;color:var(--ash)}
.ch-portion{display:flex;align-items:center;gap:16px;margin-top:12px}
.ch-stepbtn{width:46px;height:46px;border-radius:50%;background:var(--panel2);border:1px solid var(--line2);font-size:22px;line-height:1;flex:0 0 auto}
.ch-portion-tx{flex:1;display:flex;flex-direction:column}
.ch-portion-tx b{font-size:18px}
.rd-sticky-in.ch-sticky{flex-direction:column;align-items:stretch;gap:9px}
.rd-sticky-in.ch-sticky .btn{width:100%}
/* add sheet */
.ch-addsub{margin-top:10px}
.ch-addtiles{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
.ch-addtile{display:flex;flex-direction:column;align-items:center;gap:9px;padding:20px 8px 16px;
  background:var(--panel);border:1px solid var(--line2);border-radius:18px;font-size:16px;font-weight:640}
.ch-addtile svg{width:27px;height:27px}
.ch-quickrow{display:flex;align-items:center;gap:10px;width:100%;text-align:left;margin-top:12px;
  padding:11px 15px;border:1px dashed var(--line2);border-radius:14px;color:var(--ash);font-size:14.5px}
.ch-quickrow svg{width:17px;height:17px;flex:0 0 auto}
.ch-quickrow b{color:var(--bone);font-weight:620}
.ch-addtabs{display:flex;gap:20px;margin-top:20px;border-bottom:1px solid var(--line)}
.ch-addtabs button{padding:9px 2px;font-size:15.5px;font-weight:620;color:var(--ash);border-bottom:2px solid transparent;margin-bottom:-1px}
.ch-addtabs button.on{color:var(--bone);border-bottom-color:var(--bone)}
.ch-platebar{display:flex;align-items:center;gap:12px;width:100%;text-align:left;margin-top:20px;
  background:#D7E5F5;color:#12233B;border-radius:16px;padding:14px 17px}
.ch-platebar-main{flex:1;min-width:0;display:flex;flex-direction:column}
.ch-platebar .t{font-size:16.5px;font-weight:700}
.ch-platebar .s{font-size:13px;color:#3D5878}
.ch-platebar .chev{color:#12233B}
.ch-addlinks{display:flex;gap:22px;margin-top:16px;flex-wrap:wrap}
/* coach logbook day note */
.lbnote{margin-top:14px;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px 14px}
.lbnote p{margin-top:4px;font-size:15.5px}
@media (max-width:420px){
  .ch-macros{gap:12px}
  .ch-ringrow{gap:18px}
  .ch-ring,.ch-ring svg{width:138px;height:138px}
  .ch-ring-n{font-size:33px}
  .ch-deal-tx{max-width:88%}
}

/* ── Build CI: vitamins & minerals + the match question ──────────────
   Family colours live in the markup (one mapping, app.js MICRO_DEFS);
   these rules carry layout only. Calm register: small type, quiet
   bars, no gold anywhere in food. */
.mic-line{display:flex;flex-wrap:wrap;gap:5px 14px;margin-top:8px}
.mic-item{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--bone);white-space:nowrap}
.mic-dot{width:8px;height:8px;border-radius:50%;flex:0 0 auto}
.mic-name{font-weight:620}
.mic-part{color:var(--ash);font-size:11.5px}
.mic-panel{margin-top:22px;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:16px 17px}
.mic-phead{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--bone)}
.mic-row{display:flex;align-items:center;gap:10px;margin-top:12px;flex-wrap:wrap}
.mic-rname{display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:620;flex:0 0 108px}
.mic-rbar{flex:1;min-width:80px;height:6px;border-radius:3px;background:var(--panel2);overflow:hidden}
.mic-rbar i{display:block;height:100%;border-radius:3px}
.mic-rnum{font-size:13px;color:var(--ash);flex:0 0 auto}
.mic-rnum b{color:var(--bone)}
.mic-row .mic-part{flex:1 1 100%;margin-left:15px}
.mic-more{margin-top:14px}
.cf-micros .mic-line{margin-top:6px}
.jr-p-micros{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:8px}
.jr-p-mic{font-size:12.5px;color:var(--paper-body);white-space:nowrap}
.jr-p-micpart{color:var(--paper-mute);font-size:11.5px}
.matchbox{margin:10px 0 4px;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px 14px}
.matchq{font-size:14.5px;font-weight:640;color:var(--bone)}
.matchname{font-size:13.5px;color:var(--ash);margin-top:3px}
.matchsrc{color:var(--bone)}
.matchbtns{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.matchnote{font-size:12.5px;color:var(--ash);margin:2px 0 6px}
.jr-paper .matchbox{background:var(--paper-card);border-color:var(--paper-line)}
.jr-paper .matchq{color:var(--paper-ink)}
.jr-paper .matchname{color:var(--paper-sub)}
.jr-paper .matchsrc{color:var(--paper-ink)}

/* ── Build CJ: the setup-package fallback — when the async clipboard
   is refused, the whole paste stands in this box in the setup card,
   selected, for the client to copy by hand. ── */
.pkgtext{width:100%;box-sizing:border-box;margin-top:8px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;line-height:1.45;border-radius:10px;padding:10px;resize:vertical}
/* ═══ Build CK — the approved design book, as CSS ═══════════════════════
   The pale-steel token (the book's one prominent action), the living
   suggestion pills, the "How's today?" chips, the calendar button, the
   training journal grid, the training record's entries (its paper base
   is the unified .tr-paper above), Today's composed food card, and the
   player's position chips. Gold appears in none of these — it stays
   where it has always lived: record moments. */
:root{--steel-btn:#A9C8E8;--steel-btn-ink:#0D1520}
.btn.steelbtn{background:var(--steel-btn);color:var(--steel-btn-ink);font-weight:700}
.btn.steelbtn:active{filter:brightness(1.06)}
.ghostbtn{display:flex;align-items:center;justify-content:center;width:100%;color:var(--blue-text);font-weight:600;font-size:15px;padding:12px;background:none;border:none;cursor:pointer}
.sub{color:var(--ash);font-size:13.5px;line-height:1.45}
.calbtn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:13px;background:var(--panel);border:1px solid var(--line2);color:var(--bone);cursor:pointer;flex:0 0 auto}
.calbtn svg{width:19px;height:19px}
/* the living suggestions */
.sugwrap{margin-top:14px}
.suglabel{font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace;font-size:9.5px;letter-spacing:.02em;color:var(--ash2);margin:0 2px 7px}
.sugstrip{display:flex;gap:7px;overflow-x:auto;padding:2px 16px 4px 2px;scrollbar-width:none;-webkit-overflow-scrolling:touch;mask-image:linear-gradient(to right,#000 88%,transparent);-webkit-mask-image:linear-gradient(to right,#000 88%,transparent)} /* [Build V136] the chip rail fades at the right edge instead of slicing a chip mid-word (item 18) */
.sugstrip::-webkit-scrollbar{display:none}
.sugpill{flex:0 0 auto;padding:8px 13px;border-radius:999px;border:1px solid rgba(91,142,196,.45);background:rgba(91,142,196,.07);color:#C9DCEF;font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer}
.sugpill:active{background:rgba(91,142,196,.18)}
.sugpill[disabled]{opacity:.55}
/* How's today? */
.ctxgroup{margin-top:20px}
.ctxgroup .kicker{margin-bottom:10px;display:block}
.ctxchips{display:flex;gap:8px}
.ctxchip{flex:1;text-align:center;padding:12px 0;border-radius:14px;border:1px solid var(--line2);font-size:14px;font-weight:700;color:var(--ash);background:none;cursor:pointer}
.ctxchip.on{background:var(--blue-dim);border-color:rgba(91,142,196,.5);color:#DCEBF9}
/* the player position chips */
.poschips{display:flex;gap:7px;margin-top:14px;flex-wrap:wrap}
.pchip{min-width:37px;height:30px;padding:0 8px;border-radius:10px;border:1px solid var(--line2);display:inline-flex;align-items:center;justify-content:center;font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace;font-size:12px;color:var(--ash);background:none;cursor:pointer}
.pchip:active{background:var(--blue-dim);color:#DCEBF9;border-color:rgba(91,142,196,.5)}
/* the training journal */
.jnav{display:flex;align-items:center;justify-content:space-between;margin-top:18px}
.jmonth{font-size:16.5px;font-weight:700}
.jgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin-top:12px}
.jdow{text-align:center;font-size:10.5px;color:var(--ash2);font-weight:600;padding:2px 0 5px;font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace}
.jcell{position:relative;height:46px;border-radius:13px;border:1px solid transparent;background:var(--panel);color:var(--ash);font-size:14.5px;font-weight:600;display:flex;align-items:flex-start;justify-content:center;padding-top:8px}
.jcell.trained{color:var(--bone);cursor:pointer}
.jcell.today{background:var(--panel2);border:1px solid var(--line2);color:var(--bone)} /* [Build V136] one today treatment app-wide — the week strip's raised step, no identity-colour disc (item 8) */
.jcell.dim{background:none}
button.jcell:active{background:var(--blue-dim)}
.jdot{position:absolute;left:50%;bottom:7px;transform:translateX(-50%);width:5px;height:5px;border-radius:50%;background:var(--blue)}
.jtile{width:37px;height:37px;border-radius:12px;background:var(--panel2);border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;margin-right:10px;color:var(--blue-text)}
.jtile svg{width:19px;height:19px}
/* the training record's entries (paper base: .tr-paper) */
.tr-meta{font-size:14.5px;color:var(--paper-sub);margin-top:6px}
.tr-ex{padding:10px 0;border-bottom:1px solid var(--paper-line)}
.tr-exname{display:block;font-size:16.5px;font-weight:650}
.tr-best{display:block;font-size:13.5px;color:var(--paper-sub);margin-top:2px}
.tr-best.dim{color:var(--paper-faint)}
.tr-note{font-size:15.5px;line-height:1.55;margin-top:8px;color:var(--paper-body)}
/* Today's composed food card */
.foodcard{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:14px;margin-top:14px}
.foodcard .fc-top{display:flex;justify-content:space-between;align-items:center}
.foodcard .foodsum{display:flex;gap:14px;margin-top:12px;align-items:center}
.fcring{position:relative;width:62px;height:62px;flex:0 0 auto}
.fcringc{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.fcringc b{font-size:14px;font-weight:800;letter-spacing:-.01em}
.fcringc span{font-size:9.5px;color:var(--ash);font-weight:600}
.foodcard .macros{flex:1;display:flex;flex-direction:column;gap:6px;min-width:0}
.foodcard .mrow{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600}
.foodcard .mdot{width:7px;height:7px;border-radius:50%;flex:0 0 auto}
.foodcard .mbar{height:4px;border-radius:99px;background:rgba(245,242,236,.08);flex:1;overflow:hidden}
.foodcard .mbar i{display:block;height:100%;border-radius:99px}
.foodcard .mg{margin-left:auto;color:var(--ash);font-weight:600}
.foodcard .waterline{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--ash);margin-top:12px;font-weight:600}
.foodcard .wateradd{color:var(--blue-text);background:none;border:none;font-size:12px;font-weight:700;cursor:pointer;padding:2px 4px}

/* ══ Build CS — Timeline: the photo books + the in-app scan view ══
   The books wear the CK paper language (the warm cream gradient, the
   serif labels) bound like a real album: a spine on the left, page
   thickness on the right edge, mounted prints with printed labels.
   No new colours; gold stays where it has always lived — records.
   [Build V155] Sam's journal-theme ruling completed (2026-11-05
   18:44): the book pages and the scan paper follow the client's
   theme like every other paper surface. The overlay carries the
   --paper-* token set (the shared tokens carry v150's exact
   values in both themes; the book-only tokens — page underside,
   blank page, caption ink, note ink, mount line/shadow, page-edge
   strata, gutter shade — carry the values the hardcoded cream
   stood at, so light mode computes byte-identically). Serif,
   layout and composition untouched in both themes. */
.tl-overlay{position:fixed;inset:0;z-index:80;background:#0B0B0D;display:flex;flex-direction:column;
  --paper1:#FAF4E6;--paper2:#F5EDD8;--paper3:#EFE4CB;--paper-ink:#211D14;--paper-sub:#5C5540;
  --paper-faint:#6E6040;--paper-field:#FFFDF6;--paper-cap:#4A4330;--paper-note:#5A4E33;--paper-notename:#8A7B55;
  --paper-bk1:#EFE6CF;--paper-bk2:#E9DDC0;--paper-bk3:#DFD2AC;--paper-blank1:#F3EBD6;--paper-blank2:#EAE0C6;
  --paper-gutter:rgba(90,75,40,.20);--paper-mountline:#E2D8BC;--paper-mountshadow:0 5px 16px rgba(60,50,20,.18);
  --paper-edge1:#E9DFC6;--paper-edge2:#C9BB97}
:root:not([data-theme="light"]) .tl-overlay{
  --paper1:#1E1B17;--paper2:#14120F;--paper3:#0F0D0B;--paper-ink:#F5F2EC;--paper-sub:#B3AB9A;
  --paper-faint:#B09A68;--paper-field:#0C0B09;--paper-cap:#C9C0AA;--paper-note:#C2AF85;--paper-notename:#A08C5F;
  --paper-bk1:#1D1915;--paper-bk2:#171410;--paper-bk3:#100D0A;--paper-blank1:#171410;--paper-blank2:#100E0A;
  --paper-gutter:rgba(0,0,0,.55);--paper-mountline:rgba(224,213,186,.28);--paper-mountshadow:0 5px 16px rgba(0,0,0,.5);
  --paper-edge1:#2C261E;--paper-edge2:#191510}
.tl-topbar{display:flex;align-items:flex-start;gap:14px;padding:14px 18px;border-bottom:1px solid var(--line)}
.tl-back{background:none;border:0;color:var(--blue-text);font-weight:600;font-size:16px;padding:4px 0;cursor:pointer;flex:0 0 auto;font-family:inherit}
.tl-toptitle{font-weight:650;font-size:16px;padding-top:3px;color:var(--bone)}
.tl-toplegend{display:block;font-weight:400;font-size:12px;color:var(--ash);margin-top:2px}
/* the scan viewer */
.scanbody{flex:1;overflow:auto;padding:16px;display:flex;align-items:flex-start;justify-content:center}
.scanframe{width:min(860px,100%);height:calc(100dvh - 150px);border:0;border-radius:12px;background:var(--paper-field)}
.scanimg{max-width:min(860px,100%);max-height:calc(100dvh - 150px);border-radius:12px}
.scanpaper{background:linear-gradient(168deg,var(--paper1) 0%,var(--paper2) 55%,var(--paper3) 100%);color:var(--paper-ink);border-radius:16px;padding:26px 24px;max-width:520px;box-shadow:0 18px 44px rgba(0,0,0,.45)}
/* the shelf */
.tl-shelf{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-top:14px}
.tl-album{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:16px}
.tl-coverbtn{display:block;width:100%;padding:0;background:none;border:0;cursor:pointer}
.tl-cover{display:block;position:relative;aspect-ratio:4/5;border-radius:12px;overflow:hidden}
.tl-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tl-cover-default{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;
  background:linear-gradient(160deg,#15161A 0%,#0A0A0B 70%);border:1px solid var(--line2);color:var(--bone);padding:18px;
  box-shadow:inset 7px 0 0 rgba(255,255,255,.05),inset 12px 0 22px rgba(0,0,0,.55)}
.tl-covmark{font-size:11px;letter-spacing:.3em;font-weight:700;color:var(--blue-text)}
.tl-covname{font-family:ui-serif,"New York",Georgia,serif;font-size:27px;font-weight:600;line-height:1.1}
.tl-covlegend{font-size:11px;color:var(--ash);line-height:1.5;max-width:210px}
.tl-cover.sm{width:76px;flex:0 0 auto}
.tl-cover.big{width:220px}
.tl-cover.inbook{aspect-ratio:auto;height:100%;border-radius:4px 14px 14px 4px}
.tl-albumname{font-size:19px;font-weight:680;letter-spacing:-.015em;margin-top:12px;color:var(--bone)}
.tl-legend{font-size:12.5px;color:var(--ash);margin-top:4px;line-height:1.45}
.tl-count{font-size:13.5px;color:var(--bone);margin-top:6px;font-weight:600}
.tl-coversheet{display:flex;justify-content:center}
.tl-coachbook{display:flex;gap:14px;align-items:center;margin-top:12px}
.tl-stageprev{width:64px;height:64px;object-fit:cover;border-radius:10px;margin:0 8px 8px 0}
.tl-pdftile{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:10px;background:var(--panel2);border:1px solid var(--line2);font-size:12px;font-weight:700;letter-spacing:.1em;color:var(--ash);flex:0 0 auto}
/* the book */
.tl-stage{flex:1;display:flex;align-items:center;justify-content:center;padding:12px 18px;touch-action:none;min-height:0}
.tl-book{position:relative;width:min(430px,94vw);height:min(620px,calc(100dvh - 225px));perspective:1700px}
.tl-book::before{content:"";position:absolute;right:-6px;top:5px;bottom:5px;width:6px;border-radius:0 3px 3px 0;
  background:repeating-linear-gradient(90deg,var(--paper-edge1) 0 1px,var(--paper-edge2) 1px 2px)}
.tl-binding{position:absolute;left:-7px;top:0;bottom:0;width:14px;border-radius:7px 2px 2px 7px;z-index:5;
  background:linear-gradient(90deg,#23242A,#101114 60%,#1B1C21);box-shadow:inset -2px 0 3px rgba(0,0,0,.6),2px 0 6px rgba(0,0,0,.35)}
.tl-page{position:absolute;inset:0;border-radius:4px 14px 14px 4px;overflow:hidden}
.tl-page.under{z-index:1}
.tl-page.cur{z-index:2;transition:opacity .18s ease}
.tl-page.cur.fading{opacity:0}
.tl-page.turning{z-index:4;overflow:visible;transform-origin:left center;transform-style:preserve-3d;will-change:transform}
.tl-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:4px 14px 14px 4px;overflow:hidden}
.tl-face.back{transform:rotateY(180deg);background:linear-gradient(100deg,var(--paper-bk1) 0%,var(--paper-bk2) 60%,var(--paper-bk3) 100%);
  box-shadow:inset -14px 0 28px var(--paper-gutter)}
.tl-page.turning .tl-face.front{filter:brightness(calc(1 - var(--sh,0)*.22))}
.tl-page.turning .tl-face.back{filter:brightness(calc(1 - var(--sh,0)*.30))}
.tl-pg{height:100%;box-sizing:border-box;display:flex;flex-direction:column;padding:26px 22px;
  background:linear-gradient(168deg,var(--paper1) 0%,var(--paper2) 55%,var(--paper3) 100%);color:var(--paper-ink);
  box-shadow:inset 7px 0 14px var(--paper-gutter)}
.tl-pg-blank{background:linear-gradient(168deg,var(--paper-blank1),var(--paper-blank2))}
.tl-pg-cover{padding:0;background:none;box-shadow:none}
.tl-pg-divider,.tl-pg-end{align-items:center;justify-content:center;text-align:center}
.tl-divlabel{font-family:ui-serif,"New York",Georgia,serif;font-size:34px;font-weight:600;line-height:1.1}
.tl-divsub{font-family:ui-serif,"New York",Georgia,serif;font-style:italic;font-size:15.5px;color:var(--paper-sub);margin-top:10px}
.tl-endbig{font-family:ui-serif,"New York",Georgia,serif;font-size:26px;font-weight:600;line-height:1.2}
.tl-print{background:var(--paper-field);padding:10px;border:1px solid var(--paper-mountline);box-shadow:var(--paper-mountshadow);transform:rotate(-.4deg)}
.tl-photo{display:block;width:100%;max-height:360px;object-fit:cover}
.tl-pdf{display:block;width:100%;height:340px;border:0;background:var(--paper-field)}
.tl-label{margin-top:16px}
.tl-date{font-family:ui-serif,"New York",Georgia,serif;font-size:19px;font-weight:600}
.tl-caption{font-family:ui-serif,"New York",Georgia,serif;font-style:italic;font-size:15.5px;color:var(--paper-cap);margin-top:3px}
.tl-inbody{font-size:11.5px;letter-spacing:.08em;color:var(--paper-faint);margin-top:7px;font-weight:700}
/* Build V3-S4: the Muse's note beside a Progress visual — woven
   content, never a bubble: italic paper-ink on the book's pages,
   italic bone on the dark page, the Muse's name set plainly. */
.pann{font-style:italic;color:var(--bone);font-size:15px;line-height:1.55;margin-top:10px}
.pann .pann-name{font-style:normal;color:var(--ash);font-size:13px}
.tl-pgnote{font-style:italic;font-size:14.5px;line-height:1.5;color:var(--paper-note);margin-top:9px}
.tl-pgnote .pann-name{font-style:normal;font-size:12.5px;color:var(--paper-notename)}
.tl-stageitem{display:inline-block;text-align:center;margin:0 8px 10px 0}
.tl-stageitem .tl-stageprev{display:block}
.tl-stagetoggle{margin-top:5px;font-size:12.5px}
.tl-ribbon{height:3px;background:rgba(245,242,236,.08);margin:2px 24px 0;border-radius:99px}
.tl-ribbon i{display:block;height:100%;border-radius:99px;background:var(--blue);width:0;transition:width .3s ease}
.tl-foot{display:flex;align-items:center;justify-content:space-between;padding:12px 22px 6px}
.tl-nav{width:44px;height:44px;border-radius:50%;border:1px solid var(--line2);background:var(--panel2);color:var(--bone);font-size:22px;cursor:pointer;font-family:inherit;line-height:1}
.tl-counter{font-size:13.5px;color:var(--ash);font-variant-numeric:tabular-nums}
.tl-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;padding:6px 22px 20px}
.tl-actnote{font-size:13px;color:var(--ash)}

/* ── Build DD: the Updates bulletin — quiet by law. The dot is the
   only signal an update ever raises; it is the house steel, never
   gold (gold is PB-only). Kind chips are labelled in words, never
   encoded by colour alone. ── */
.upddot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--blue);margin-left:7px;vertical-align:2px;flex:0 0 auto}
.updrow{margin:14px 0 0}
.updentry{padding:14px 0;border-bottom:1px solid var(--line2)}
.updentry:last-child{border-bottom:none}
.updmeta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12.5px;color:var(--ash)}
.updkind{font-weight:700;letter-spacing:.04em;text-transform:uppercase;font-size:11px;padding:3px 8px;border-radius:999px;border:1px solid var(--line2);color:var(--bone)}
.updkind.upd-client{border-color:rgba(91,142,196,.55);color:var(--blue-text)}
.updkind.upd-assistant{border-color:rgba(126,99,199,.55);color:#BBA7E8}
.updstamp{color:var(--ash)}
.updtitle{font-weight:650;font-size:16.5px;margin-top:8px;color:var(--bone)}
.updbody{margin-top:4px;font-size:15px;line-height:1.5;color:var(--bone)}
.updbox{background:var(--panel);border:1px solid var(--line2);border-radius:14px;padding:14px;margin:10px 0 16px}

/* ── Build DJ: the now-playing player — the stage's track change,
   the lit and finished chips, the movement's big name, and the
   journal calendar's hollow planned-day dot. Signal's own language
   throughout; gold stays fenced to the PB light, as ever. ── */
.npstage{animation:npin .3s var(--ease)}
.npstage.back{animation-name:npinback}
@keyframes npin{from{opacity:0;transform:translateX(16px)}to{opacity:1;transform:none}}
@keyframes npinback{from{opacity:0;transform:translateX(-16px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){.npstage{animation:none}}
#npStage .exblock{margin-top:12px}
.exname{font-weight:700;font-size:29px;letter-spacing:-.02em;line-height:1.15}
.pchip.on{border-color:rgba(91,142,196,.65);color:#DCEBF9;background:var(--blue-dim)}
.pchip.done{color:var(--blue-text);border-color:rgba(91,142,196,.45)}
.jdot.plan{background:transparent;border:1.5px solid var(--blue);width:4px;height:4px}

/* ── Build DK: the polish pass — Today composed to Sam's order (the
   Assistant element under the calendar, food + training as equal
   calm cards, the week's win on its own card), Train home's hero
   card, Food's ring legend, hairline-divided meals. Treatments
   only — the design system is unchanged, and gold stays PB-only. ── */
.dk-week .wday.today{transform:translateY(-3px);box-shadow:0 8px 16px rgba(4,10,20,.45)}
.weeklegend{margin-top:8px;font-size:11.5px;color:var(--ash);letter-spacing:.02em}
.glancecard .gc-face{width:66px;height:66px}
.gc-open{display:block;margin-top:12px;min-height:40px;padding:8px 2px;background:none;border:none;font:inherit;font-size:14.5px;font-weight:700;color:var(--blue-text);cursor:pointer;text-align:left}
.gc-open:active{opacity:.7}
.traincard .heroname{font-size:25px;font-weight:720;letter-spacing:-.02em;line-height:1.12;margin-top:10px}
.traincard .herofocus{color:var(--blue-text);font-size:15px;font-weight:560;margin-top:6px}
.traincard .heromoves{color:var(--ash);font-size:15px;line-height:1.55;margin-top:12px}
.traincard .tcname{font-size:22px;font-weight:700;letter-spacing:-.015em;line-height:1.15;margin-top:6px}
.traincard .ppdoor{flex-direction:row;align-items:center;gap:10px;padding:2px 0}
.traincard .ppdoor .ppmark{width:34px;height:34px;border-radius:10px;flex:none}
.traincard .ppdoor .ppplate{flex:1}
.traincard .heromoves{line-height:1.45}
.wincard{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:14px;margin-top:14px}
.wincard .pbtag{font-size:14px}
.ovhero{margin-top:16px;padding:20px;border-radius:22px;background:var(--raised);border:1px solid var(--line);box-shadow:var(--shadow-card)}
.ovname{font-size:27px;font-weight:730;letter-spacing:-.025em;line-height:1.08;margin-top:8px}
.ch-ringlegend{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;margin-top:14px;font-size:12px;font-weight:600;color:var(--ash)}
.ch-ringlegend .lgi{display:inline-flex;align-items:center;gap:6px}
.ch-ringlegend .lgi i{width:8px;height:8px;border-radius:50%;display:inline-block}
.ch-meal:not(:last-child){border-bottom:1px solid var(--line)}

/* ── Build V3-S1: The Day + the universal conversation overlay ──────
   Dark is the base for every user, session, and device (the DE
   ruling, absorbed by Amendment 2): the palette above is dark by
   construction, form controls render dark via color-scheme, and no
   rule anywhere reads the device theme. The Day's fast lanes are
   quiet rows under the day's own flow; her Muse's face is a fixed
   door at the thumb's edge, and the overlay's way back is a fixed
   pill that floats over the thread. No gold here — gold stays with
   PB moments alone. ── */
:root{color-scheme:dark}
.daynext{border-color:rgba(91,142,196,.45)}
.convoface{position:fixed;right:14px;bottom:calc(96px + env(safe-area-inset-bottom));z-index:45;width:54px;height:54px;border-radius:50%;border:1px solid var(--line2);background:var(--panel2);padding:0;overflow:hidden;cursor:pointer;box-shadow:0 10px 24px rgba(0,0,0,.45);transition:border-color .3s var(--ease),box-shadow .3s var(--ease)} /* [Build V136] the face's ring eases as it takes the Muse's chat colour (§B) */
.convoface img{width:100%;height:100%;object-fit:cover;display:block}
.convoface img.museface{border-radius:50%;animation:museidle 5.5s ease-in-out infinite} /* [Build V136 R4] the museidle drift restored on the floating face (census G4) — the same seat treatment the thread (.msg img.museface), presence (.ap-disc img.museface) and centre disc (.tabdisc img.museface) always carried; it composes with §B's colour ring/glow, which live on the .convoface wrapper's border/box-shadow, and with polishAvatar's avwait fade on this same img */
@media (prefers-reduced-motion: reduce){.convoface img.museface{animation:none}} /* [Build V136 R4] seat-for-seat reduced-motion rule, the Build AP pattern — the seat rule above out-specifies the plain img.museface rule, so the drift needs its own stilling here */
.convoface:active{opacity:.8}
.convoclose{position:fixed;top:calc(70px + env(safe-area-inset-top));left:14px;z-index:46;min-height:40px;padding:8px 16px;border-radius:999px;border:1px solid var(--line2);background:var(--panel2);color:var(--bone);font-size:14px;font-weight:700;cursor:pointer;box-shadow:0 10px 24px rgba(0,0,0,.45)} /* [Build V134] the Close pill takes the top-left corner: at top-right it sat on the overlay head's Details pill (v133 walk frame f3) — the left corner stands empty at every width */
.convoclose:active{opacity:.8}

/* ── Build V136: the OP surfaces' new CSS ──────────────────────────
   The Day's lanes become an expandable part (§C: the head is a
   full-width row in the smalllabel voice, its chevron turns while
   open); the Food route switch wears the standing .seg
   skin at a capped width (§D); Progress's lift chips toggle their
   chart lines in the moment (§G); the caught-up check-in landing
   centres its content in the viewport (§H); the Food macro row
   keeps clear of the floating face at phone widths (item 19); and
   at ≥1024px Today alone composes into two columns (§I) — below
   that the wrappers are inert and the phone order stands. */
.routeseg{max-width:430px;margin-top:14px}
/* [Build V147] a route outside the room's allowed set on the switch:
   visibly locked, dimmed in the seg's own skin, and still tappable —
   the tap asks the door and the refusal explains. Never disabled. */
.routeseg button.locked{opacity:.55}
.routeseg button .rslock{display:inline-flex;vertical-align:-2px;margin-right:5px}
.routeseg button .rslock svg{width:12px;height:12px}
.liftchip{cursor:pointer}
.liftchip:not(.on){opacity:.45}
.strchart{margin-top:10px}
.caughtup{min-height:calc(100dvh - 170px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
@media (max-width:520px){.ch-macros{padding-right:84px}}
@media (min-width:1024px){
  .todayview{display:grid;grid-template-columns:minmax(0,560px) 340px;column-gap:32px;align-items:start}
  .todayview .dayrail{position:sticky;top:18px}
}

/* ── Build V3-S5: watch & health surfaces + Amendment 10 ───────────
   The light theme is a VARIABLE theme under [data-theme="light"] —
   not a second stylesheet. The dark value set above stands
   untouched and remains the default for every user, session, and
   device; nothing anywhere reads the device theme. On light, gold
   keeps its hue and darkens only enough to stay legible; it stays
   records-only in both themes. Hard-coded dark literals are
   migrated ONLY where they would break the light rendering (the
   Day/Food cards, the sheet, the chat head, the session grid) —
   each such override lives in this block and is listed in the
   build brief. The Timeline book keeps its paper treatment in both
   themes (an object in the app, not the app's chrome). ── */
.healthrow{display:flex;gap:12px;align-items:flex-start;padding:13px 0;border-bottom:1px solid var(--line)}
.healthrow .t{font-size:16px}
.healthswitch{flex:0 0 auto;min-width:64px;min-height:40px;padding:8px 14px;border-radius:999px;border:1px solid var(--line2);background:var(--panel);color:var(--ash);font-weight:700;cursor:pointer}
.healthswitch.on{background:var(--blue);border-color:var(--blue);color:#fff}
.healthswitch:active{opacity:.75}
.stepsline{margin-top:10px}
.healthsig{padding:10px 0 4px}
.healthbars{display:flex;gap:5px;align-items:flex-end;height:56px;margin-top:10px}
.healthbar{flex:1;min-height:6px;border-radius:4px 4px 2px 2px;background:#5B8EC4}
:root[data-theme="light"]{
  color-scheme:light;
  --ink:#F4F1EA; --ink2:#FBF9F4; --panel:#FFFFFF; --panel2:#ECE8DF;
  --bone:#19191C; --ash:#6E6B66; --ash2:#7D7A74;
  --blue:#5B8EC4; --blue-dim:rgba(91,142,196,.16); --blue-text:#2E5F8C;
  --gold:rgb(150,105,13); /* the gold token, darkened for light surfaces — PB/record moments only */
  --line:rgba(25,25,28,.13); --line2:rgba(25,25,28,.24);
  --raised:linear-gradient(165deg,#DCE9F6 0%,#F2EFE7 56%,#FFFFFF 100%);
  --raised-soft:linear-gradient(160deg,#E4EEF8 0%,#F5F2EA 60%,#FFFFFF 100%);
  --shadow-card:0 18px 44px rgba(30,40,60,.14);
  --steel-btn:#2E5F8C; --steel-btn-ink:#FFFFFF;
}
:root[data-theme="light"] #segToday .daycard,
:root[data-theme="light"] .daycard.histcard{background:linear-gradient(165deg,rgba(91,142,196,.16),rgba(255,255,255,.92) 58%)}
:root[data-theme="light"] #sheet .panel{background:rgba(251,249,244,.92)}
:root[data-theme="light"] .chathead{background:linear-gradient(180deg,rgba(244,241,234,.9) 65%,rgba(244,241,234,0))}
:root[data-theme="light"] .presencepin{background:linear-gradient(180deg,rgba(244,241,234,.95) 76%,rgba(244,241,234,0))}
:root[data-theme="light"] .buildhero{background:rgba(236,232,223,.9)}
/* The DJ player's stage is a design object: near-black in BOTH
   themes (the coordinator's A6-vs-A10 reading, Build V3-S5). Under
   light, the stage element alone re-takes the dark value set — a
   theme-variable outcome in this stylesheet; the player itself is
   untouched, and its surrounding chrome follows the theme. */
:root[data-theme="light"] #npStage{
  --ink:#0A0A0B; --ink2:#101012; --panel:#141416; --panel2:#1A1A1D;
  --bone:#F5F2EC; --ash:#969490; --ash2:#86837F;
  --blue-text:#93B8DD; --gold:rgb(227,179,65); /* the dark gold token, restored on the stage */
  --line:rgba(245,242,236,.09); --line2:rgba(245,242,236,.16);
  background:#0A0A0B;color:#F5F2EC;border-radius:18px;padding:2px 16px 18px;margin-top:10px;
}

/* ══════════════════════════════════════════════════════════════════
   [Build V140] B4 — TRAIN SCOPE: the preview's round-2 brand
   treatment mapped onto the LIVE Train surfaces (viewOverview hero
   + the viewTrain player). Everything is scoped under .trainscope
   (carried by the two views' roots and the press bar) or the new
   .mstrip classes — no global rule is touched. Values are the
   preview's: the blue gradient primary
   (linear-gradient(180deg,#3E6EA3,#2C4E74), border #4A7396, glow),
   .rchip.on, .pmeter, .cuebox, .restcard/.ring, .pressbar.
   ══════════════════════════════════════════════════════════════════ */
/* — her Muse's strip (the preview's .mstrip/.mface idiom; the
   per-room colour rides inline from museStripHtml in app.js, the
   violet family below is the fallback accent) — */
.mstrip{display:flex;gap:10px;align-items:flex-start;width:100%;text-align:left;background:linear-gradient(180deg,rgba(126,99,199,.13),rgba(126,99,199,.05));border:1px solid rgba(126,99,199,.38);border-radius:15px;padding:11px 13px;margin-top:13px;font-family:var(--font);color:var(--bone)}
button.mstrip{cursor:pointer;-webkit-appearance:none;appearance:none}
.mstrip .mface{flex:none;width:32px;height:32px;border-radius:50%;background:#1D1830;border:1.5px solid #7E63C7;box-shadow:0 0 12px rgba(126,99,199,.45);display:flex;align-items:center;justify-content:center;overflow:hidden}
.mstrip .mface img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.mstrip .mtx{flex:1;min-width:0}
.mstrip .mwho{display:block;font-size:10.5px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:#CDB2E8}
.mstrip .mtxt{display:block;font-size:13.5px;line-height:1.5;margin-top:2px}
.mstrip .marr{align-self:center;color:#CDB2E8;flex:none;font-size:19px;line-height:1}
/* — the overview hero card — */
.trainscope .ovhero{background:linear-gradient(180deg,rgba(91,142,196,.10),var(--raised));border-color:rgba(91,142,196,.28);box-shadow:0 0 24px rgba(91,142,196,.10),var(--shadow-card)}
/* — the blue gradient primary (Press Play, Next movement, Finish
   session, Resume) — */
.trainscope .btn.steelbtn{background:linear-gradient(180deg,#3E6EA3,#2C4E74);border:1px solid #4A7396;color:#fff;box-shadow:0 0 14px rgba(91,142,196,.35)}
.trainscope .btn.steelbtn:active{filter:brightness(1.08)}
.trainscope .btn.blue{background:linear-gradient(180deg,#3E6EA3,#2C4E74);border-color:#4A7396;color:#fff;box-shadow:0 0 12px rgba(91,142,196,.30)}
/* — cards inside the player (readiness, the movement block) — */
.trainscope .focuscard{border-color:rgba(91,142,196,.22)}
.trainscope .exblock{border-color:rgba(91,142,196,.20);box-shadow:0 0 20px rgba(91,142,196,.07),var(--shadow-card)}
/* — readiness / RPE chips: the preview's .rchip.on on the live
   .seg buttons — */
.trainscope .seg button.on{color:#EAF3FC;background:linear-gradient(180deg,rgba(91,142,196,.38),rgba(91,142,196,.18));box-shadow:inset 0 0 0 1px rgba(91,142,196,.6),0 0 10px rgba(91,142,196,.22)}
/* — position chips: the lit chip gains the glow — */
.trainscope .pchip.on{box-shadow:inset 0 1px 0 rgba(147,184,221,.35),0 0 10px rgba(91,142,196,.30)}
/* — the session meter: the preview's .pmeter on the live .meter — */
.trainscope #sessProgWrap .meter{height:6px}
.trainscope #sessProgWrap .meter i{background:linear-gradient(90deg,#3E6EA3,#7FB0DE);box-shadow:0 0 10px rgba(91,142,196,.45)}
/* — Sam's cue: the preview's .cuebox left-border treatment on the
   cue's live wrapper (the block whose label stands as its head;
   the effort row wears its own shape and is left alone) — */
.trainscope .exblock>div:not(.effortrow):has(>.smalllabel){background:rgba(10,10,11,.45);border:1px solid var(--line);border-left:3px solid var(--blue);border-radius:12px;padding:11px 13px}
.trainscope .exblock .smalllabel{color:var(--blue-text);letter-spacing:.11em}
/* — the rest card + ring: the preview's glow — */
.trainscope .restcard{background:linear-gradient(180deg,rgba(91,142,196,.10),rgba(10,10,11,.45));border-color:rgba(91,142,196,.30);box-shadow:0 0 22px rgba(91,142,196,.12),var(--shadow-card)}
.trainscope .ringfg{stroke:#5B8EC4;filter:drop-shadow(0 0 6px rgba(91,142,196,.5))}
/* — set tick buttons: the preview's .tickbtn — */
.trainscope .setrow .tick{border-color:rgba(91,142,196,.6);color:var(--blue-text)}
.trainscope .setrow .tick.on{background:linear-gradient(180deg,#3E6EA3,#2C4E74);border-color:#4A7396;color:#fff;box-shadow:0 0 12px rgba(91,142,196,.4)}
/* — the press bar (it carries .trainscope itself, as the view's
   second root element) — */
#pressbar.trainscope{background:rgba(16,16,20,.96);border-top-color:rgba(91,142,196,.35);box-shadow:0 -6px 24px rgba(91,142,196,.12)}
#pressbar.trainscope img{box-shadow:0 0 12px rgba(91,142,196,.45)}
#pressbar.trainscope .btn.blue{background:linear-gradient(180deg,#3E6EA3,#2C4E74);border-color:#4A7396;color:#fff}
