/* 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 */
#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)}
.topbar .who{font-size:12.5px;color:var(--ash);letter-spacing:.02em}

/* ── 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)}

/* ── 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}

/* ── 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)}

/* ── 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:14px;
  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:#fff}
/* 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:750;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%;background:var(--blue);border-radius:99px;transition:width .8s var(--ease)}
.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)}
.exline:last-child{border-bottom:0}
.exline .n{font-size:15.5px;flex:1 1 auto;min-width:0}
.exline .d{font-size:14px;color:var(--ash);font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;white-space:nowrap;text-align:right;flex:0 0 auto}

/* ── 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}
.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:all .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:.14em;color:var(--ash);text-transform:uppercase;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;filter:drop-shadow(0 0 13px rgba(91,142,196,.45))}
.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 ────────────────────────── */
.grid35{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-top:12px}
.grid35 i{aspect-ratio:1;border-radius:7px;background:#0E0E10;border:1px solid rgba(245,242,236,.045)}
.grid35 i.on{background:var(--blue);border-color:var(--blue)}
.grid35 i.today{border-color:rgba(245,242,236,.55)}
.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. */
.pbtag{display:inline-flex;align-items:center;gap:6px;color:var(--gold);font-weight:700;font-size:12.5px;
  background:rgba(227,179,65,.12);border:1px solid rgba(227,179,65,.32);padding:2.5px 10px;border-radius:999px;white-space:nowrap}
.pbtag svg{width:14px;height:14px;flex:0 0 auto}
.pbhero{margin-top:14px;padding:22px;border-radius:20px;
  background:radial-gradient(120% 130% at 18% 0%,rgba(227,179,65,.13),rgba(227,179,65,0) 55%),var(--raised);
  border:1px solid rgba(227,179,65,.3);box-shadow:0 18px 44px rgba(4,10,20,.45),0 0 40px rgba(227,179,65,.1)}
.pbhero .pb-top{display:flex;align-items:center;gap:9px;color:var(--gold)}
.pbhero .pb-top svg{width:22px;height:22px}
.pbhero .pb-top span{font-size:14px;font-weight:650}
.pbhero .pbnum{font-size:47px;font-weight:780;letter-spacing:-.03em;line-height:1;margin-top:13px;
  font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;text-shadow:0 0 34px rgba(227,179,65,.5)}
.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:.24em;text-transform:uppercase;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}
.memline .src{font-size:11px;letter-spacing:.2em;color:var(--ash2);text-transform:uppercase;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}
.msg.agent,.msg.coach{align-self:flex-start}
.msg.agent .bub{background:var(--panel2);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}
.msg.client .bub{background:var(--blue-dim);border-bottom-right-radius:6px}
.msg.client .mtime{text-align:right}
.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(--blue);color:#fff;font-size:20px;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(91,142,196,.4);transition:transform .12s var(--ease)}
.sendbtn:active{transform:scale(.94)}
/* 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)}

/* ── 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:.13em;text-transform:uppercase;color:var(--ash);line-height:1.5}

/* ── tab bar: a floating pill — glass lives on chrome only ── */
#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}
#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)}
/* the assistant is the centre of the bar — a lit disc, raised: the headphones */
#tabbar button.tabcenter{padding-top:0}
#tabbar button.tabcenter.on{background:transparent}
.tabdisc{display:flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:50%;
  margin-top:-25px;background:#101623;border:1px solid rgba(91,142,196,.6);
  box-shadow:0 0 0 5px rgba(10,10,11,.92),0 8px 26px rgba(91,142,196,.5),0 2px 10px rgba(0,0,0,.6)}
.tabdisc img{width:37px;height:37px;border-radius:11px}
#tabbar button.tabcenter.on .tabdisc{border-color:rgba(147,184,221,.95);box-shadow:0 0 0 5px rgba(10,10,11,.92),0 8px 32px rgba(91,142,196,.75),0 2px 10px rgba(0,0,0,.6)}

/* ── 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}
.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}

/* ── 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 40px}
.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;height:600px;margin-top:10px;border:1px solid var(--line);border-radius:24px;overflow:hidden;
  background:radial-gradient(90% 90% at 50% 46%,rgba(38,84,138,.20) 0%,rgba(16,32,54,.08) 46%,transparent 75%),var(--ink2)}
.map svg.links{position:absolute;inset:0;width:100%;height:100%}
.map svg.links line{stroke:rgba(245,242,236,.09);stroke-width:1}
.map svg.links line.hot{stroke:rgba(91,142,196,.7);stroke-width:1.4}
.map svg.links line.dash{stroke:rgba(150,148,144,.4);stroke-dasharray:4 5}
.center-node{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);text-align:center;z-index:3}
.center-node img{width:74px;height:74px;border-radius:21px;box-shadow:0 16px 48px rgba(91,142,196,.5),0 0 90px rgba(91,142,196,.25)}
.center-node .cn-t{margin-top:9px;font-size:11px;letter-spacing:.26em;color:var(--ash);text-transform:uppercase;font-weight:650}
.node{position:absolute;width:218px;transform:translate(-50%,-50%);text-align:left;background:rgba(20,20,22,.92);
  border:1px solid var(--line2);border-radius:17px;padding:13px 14px;z-index:2;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-name{font-weight:700;font-size:16.5px;line-height:1.2;white-space:nowrap}
.node .flag{white-space:nowrap}
.node .n-sub{font-size:12px;color:var(--ash);margin-top:1px}
.node .n-bar{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} .map{height:480px} .node{width:168px} .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}}
.grid35 i{animation:rise .4s var(--ease) both}
.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}
.grid35 i.rest{background:transparent;border-color:rgba(245,242,236,.09)}
.grid35 i.missed{background:repeating-linear-gradient(45deg,rgba(245,242,236,.16) 0 2px,transparent 2px 5px);border-color:rgba(245,242,236,.15)}
.grid35 i.nodata{opacity:.35}
.legend{display:flex;gap:16px;flex-wrap:wrap;margin-top:10px;font-size:13px;color:var(--ash)}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend .lg{width:13px;height:13px;border-radius:4px;display:inline-block;background:#0E0E10;border:1px solid rgba(245,242,236,.1)}
.legend .lg.on{background:var(--blue);border-color:var(--blue)}
.legend .lg.rest{background:transparent;border-color:rgba(245,242,236,.22)}
.legend .lg.missed{background:repeating-linear-gradient(45deg,rgba(245,242,236,.3) 0 2px,transparent 2px 5px)}
.legend .lg.nodata{opacity:.35}
/* 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 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 ── */
.weekstrip{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-top:12px}
.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)}
.wday.today{border-color:var(--blue);background:var(--blue-dim)}
.wday.restday{opacity:.6}
.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}
