/* =====================================================================
   today.css — (v206) Today screen. Spec: overhaul/design-direction.md §C.
   Unlayered, loaded after styles.css. Every token has its §B1 hex
   fallback so this file renders correctly on its own.
   Owner: Today agent. Markup: index.html #screen-today. JS: renderToday +
   _today* helpers in app.js; score logic in today-hero.js.
   ===================================================================== */

#screen-today {
  --t-gap: var(--s-3, 12px);
  padding-bottom: var(--s-8, 32px);
}
#screen-today .num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
#screen-today .t-ico { flex: 0 0 auto; display: block; }
.t-label {
  font: 600 11px/1.2 var(--font-ui, -apple-system, system-ui, sans-serif);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3, #95928b);
}

/* ------------------------------------------------------------ status row */
.t-status {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3, 12px);
  min-height: 44px;
  margin: var(--s-1, 4px) 2px var(--s-4, 16px);
}
.t-status-l { min-width: 0; }
.t-date {
  font: 600 11px/1.2 var(--font-ui, system-ui, sans-serif);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3, #95928b);
  margin-bottom: 2px;
}
.t-hello {
  margin: 0;
  font: 400 26px/1.1 var(--font-display, "Instrument Serif", Georgia, serif);
  letter-spacing: -0.01em;
  color: var(--ink, #f4f1ec);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.t-hello em { font-style: italic; color: var(--brand, #f9bc8b); }
.t-status-r { display: flex; align-items: center; gap: var(--s-2, 8px); flex: 0 0 auto; padding-bottom: 2px; }
.t-streak {
  display: inline-flex; align-items: center; gap: 4px;
  height: 28px; padding: 0 10px 0 8px;
  border-radius: var(--r-pill, 999px);
  background: color-mix(in oklch, var(--volt, #d3fb58) 14%, transparent);
  color: var(--volt, #d3fb58);
  font: 600 15px/1 var(--font-ui, system-ui, sans-serif);
}
.t-streak[hidden] { display: none; }
.t-streak .num {   /* (v208) win figure: lime → yellow (flame glyph still marks it) */
  background: linear-gradient(120deg, var(--volt-a, #cdff58), var(--volt-b, #fce343));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.t-streak em { font-style: normal; font-size: 11px; color: var(--ink-2, #c1bdb7); margin-left: 2px; }
.t-buddy {
  appearance: none; border: 1px solid var(--line, #33302c);
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px; border-radius: var(--r-pill, 999px);
  background: var(--bg-3, #282521); color: var(--ink-2, #c1bdb7);
  font: 500 13px/1 var(--font-ui, system-ui, sans-serif); cursor: pointer;
}
.t-buddy[hidden] { display: none; }
.t-buddy em { font-style: normal; font-size: 11px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--brand, #f9bc8b); color: var(--on-brand, #26160e); display: inline-grid; place-items: center; }

/* ------------------------------------------------------------ hero */
.card.t-herocard {
  padding: var(--s-4, 16px) var(--s-4, 16px) 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--dur-1, 120ms) var(--ease-std, ease);
}
.card.t-herocard:active { transform: scale(.985); }
.card.t-herocard:focus-visible { outline: 2px solid var(--brand, #f9bc8b); outline-offset: 2px; }
.t-hero-main {
  display: grid; grid-template-columns: 112px 1fr; gap: var(--s-4, 16px);
  align-items: center;
}
.t-ring { position: relative; width: 112px; display: grid; justify-items: center; }
.t-ring svg { display: block; }
.t-ring-track { stroke: var(--bg-3, #282521); }
.t-ring-fill {
  stroke: var(--brand, #f9bc8b);
  stroke: url(#hcg-ring-brand) var(--brand, #f9bc8b);   /* (v208) apricot → coral; defs from helf-charts.js */
  animation: t-ring-draw var(--dur-4, 600ms) var(--ease-out, ease-out) both;
}
@keyframes t-ring-draw { from { stroke-dasharray: 0 var(--circ, 320); } }
.t-ring-center {
  position: absolute; inset: 0 0 auto 0; height: 112px;
  display: grid; place-content: center; justify-items: center; text-align: center;
  pointer-events: none;
}
.t-ring-num {
  font: 600 38px/1 var(--font-ui, system-ui, sans-serif);
  letter-spacing: -0.03em;
  color: var(--ink, #f4f1ec);
}
#screen-today .t-ring-num.num, #screen-today .t-fb-ring-c .num { font-variant-numeric: proportional-nums; font-feature-settings: "pnum"; } /* (v208) display figures */
.t-ring-num.is-empty { color: var(--ink-4, #5a5853); font-weight: 500; }
.t-ring-word {
  font: 400 19px/1.05 var(--font-display, Georgia, serif);
  color: var(--ink, #f4f1ec);
  max-width: 78px;
}
.t-ring-cap { display: grid; justify-items: center; gap: 3px; margin-top: 8px; }
.t-ring-src {
  font: 500 11px/1.2 var(--font-ui, system-ui, sans-serif);
  color: var(--ink-3, #95928b);
  white-space: nowrap;
}

.t-contribs { display: grid; gap: 9px; min-width: 0; }
.t-contrib {
  display: grid; grid-template-columns: 70px 1fr 30px; align-items: center; gap: var(--s-2, 8px);
  min-height: 18px;
}
.t-contrib-l { font: 500 13px/1.2 var(--font-ui, system-ui, sans-serif); color: var(--ink-2, #c1bdb7); white-space: nowrap; }
.t-contrib-v {
  font: 600 13px/1 var(--font-ui, system-ui, sans-serif);
  color: var(--ink, #f4f1ec); text-align: right;
}
.t-contrib-v.is-word { font-size: 11px; font-weight: 500; color: var(--ink-2, #c1bdb7); white-space: nowrap; }
.t-contrib.is-empty .t-contrib-l { color: var(--ink-3, #95928b); }
.t-contrib.is-empty .t-contrib-v { color: var(--ink-4, #5a5853); }
.t-contrib-hint {
  font: 500 11px/1.2 var(--font-ui, system-ui, sans-serif);
  color: var(--ink-3, #95928b);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-left: 8px;
  border-left: 1.5px dashed var(--line-strong, #4b4743);
}
.t-hide-words .t-contrib { grid-template-columns: 70px 1fr 64px; }
.t-contrib:has(.is-word) { grid-template-columns: 70px 1fr 64px; }

.t-bar {
  position: relative; display: block;
  height: 6px; border-radius: var(--r-pill, 999px);
  background: var(--bg-3, #282521);
  overflow: hidden;
}
.t-bar > i {
  position: absolute; inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--hue, var(--brand, #f9bc8b));
  /* (v208) light → saturated along the bar; domain stop pairs when known */
  background: linear-gradient(90deg, var(--hue-a, color-mix(in oklch, var(--hue, var(--brand, #f9bc8b)) 60%, var(--ink, #f4f1ec))), var(--hue-b, var(--hue, var(--brand, #f9bc8b))));
  transform-origin: left center;
  animation: t-bar-grow var(--dur-4, 600ms) var(--ease-out, ease-out) both;
}
@keyframes t-bar-grow { from { transform: scaleX(0); } }
/* (v208) domain stop pairs for anything tinted via --hue:var(--<domain>, …) */
#screen-today [style*="var(--sleep"],  .t-sheet [style*="var(--sleep"]  { --hue-a: var(--sleep-a, #dcc5f9);  --hue-b: var(--sleep-b, #8976dc); }
#screen-today [style*="var(--train"],  .t-sheet [style*="var(--train"]  { --hue-a: var(--train-a, #87d7f7);  --hue-b: var(--train-b, #4c82e8); }
#screen-today [style*="var(--fuel"],   .t-sheet [style*="var(--fuel"]   { --hue-a: var(--fuel-a, #febb71);   --hue-b: var(--fuel-b, #f86d54); }
#screen-today [style*="var(--spirit"], .t-sheet [style*="var(--spirit"] { --hue-a: var(--spirit-a, #ffbad4); --hue-b: var(--spirit-b, #e4638d); }
#screen-today [style*="var(--mind"],   .t-sheet [style*="var(--mind"]   { --hue-a: var(--mind-a, #8bf4e7);   --hue-b: var(--mind-b, #38afcc); }
/* hero card: the faintest apricot light behind the ring */
.card.t-herocard {
  background:
    radial-gradient(90% 75% at 12% 0%, color-mix(in oklch, var(--brand, #f9bc8b) 8%, transparent), transparent 65%),
    var(--bg-1, #15120f);
}

.t-insight {
  display: flex; align-items: center; gap: var(--s-2, 8px);
  margin: var(--s-4, 16px) calc(-1 * var(--s-4, 16px)) 0;
  padding: var(--s-3, 12px) var(--s-4, 16px);
  border-top: 1px solid var(--line, #33302c);
  font: 400 15px/1.4 var(--font-ui, system-ui, sans-serif);
  color: var(--ink, #f4f1ec);
}
.t-insight span { flex: 1 1 auto; min-width: 0; }
.t-insight .t-ico { color: var(--ink-3, #95928b); }

/* ------------------------------------------------------------ quick-log chips */
.t-quick {
  display: flex; gap: var(--s-2, 8px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  margin: 0 calc(-1 * var(--s-4, 16px)) var(--t-gap);
  padding: 2px var(--s-4, 16px) 4px;
  scrollbar-width: none;
}
.t-quick::-webkit-scrollbar { display: none; }
.t-qchip {
  appearance: none; flex: 0 0 auto; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px 0 12px;
  border-radius: var(--r-pill, 999px);
  border: 1px solid var(--line, #33302c);
  background: var(--bg-1, #15120f);
  color: var(--ink, #f4f1ec);
  font: 500 14px/1 var(--font-ui, system-ui, sans-serif);
  white-space: nowrap; cursor: pointer;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / .04);
  transition: transform var(--dur-1, 120ms) var(--ease-std, ease), border-color var(--dur-2, 200ms) var(--ease-std, ease);
}
.t-qchip .t-ico { color: var(--brand, #f9bc8b); }
.t-qchip[data-quick="water"] .t-ico { color: var(--mind, #65d0dc); }
.t-qchip[data-quick="mood"] .t-ico { color: var(--spirit, #ee8dbd); }
.t-qchip[data-quick="workout"] .t-ico { color: var(--train, #5fa1f3); }
.t-qchip[data-quick="sleep"] .t-ico { color: var(--sleep, #a996e2); }
.t-qchip[data-quick="meal"] .t-ico { color: var(--fuel, #fe8f5b); }
.t-qchip em {
  font-style: normal; font-size: 11px; color: var(--ink-3, #95928b);
  padding-left: 6px; margin-left: 2px; border-left: 1px solid var(--line, #33302c);
}
.t-qchip:active { transform: scale(.96); }
.t-qchip:hover { border-color: var(--line-strong, #4b4743); }
.t-qchip:focus-visible { outline: 2px solid var(--brand, #f9bc8b); outline-offset: 2px; }
.t-qchip:disabled { opacity: .45; cursor: not-allowed; }

/* ------------------------------------------------------------ next in arc */
.card.t-next { padding: var(--s-3, 12px) var(--s-4, 16px) var(--s-4, 16px); }
.t-next-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--s-2, 8px); }
.t-next-count { font: 600 13px/1 var(--font-ui, system-ui, sans-serif); color: var(--ink-2, #c1bdb7); }
.t-segs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; margin-bottom: var(--s-3, 12px); }
.t-segs > i { height: 6px; border-radius: 2px; background: var(--bg-3, #282521); }
.t-segs > i:first-child { border-radius: 3px 2px 2px 3px; }
.t-segs > i:last-child { border-radius: 2px 3px 3px 2px; }
.t-segs > i.on { background: var(--brand, #f9bc8b); }
.t-next-row { display: flex; align-items: center; gap: var(--s-3, 12px); }
.t-next-ico {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: var(--r-sm, 10px);
  display: grid; place-items: center;
  background: var(--bg-2, #1e1b18); color: var(--brand, #f9bc8b);
}
.t-next-ico.is-volt { color: var(--volt, #d3fb58); background: color-mix(in oklch, var(--volt, #d3fb58) 14%, transparent); }
.t-next-txt { flex: 1 1 auto; min-width: 0; }
.t-next-t { font: 600 16px/1.25 var(--font-ui, system-ui, sans-serif); color: var(--ink, #f4f1ec); }
.t-next-s {
  font: 400 13px/1.35 var(--font-ui, system-ui, sans-serif); color: var(--ink-3, #95928b);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.t-next-btn.btn { min-height: 40px; padding: 0 var(--s-4, 16px); flex: 0 0 auto; }
/* fallback look if the design-system .btn isn't loaded */
.t-next-btn { appearance: none; border: 0; border-radius: var(--r-md, 14px); background: var(--brand, #f9bc8b); color: var(--on-brand, #26160e); font: 600 15px/1 var(--font-ui, system-ui, sans-serif); min-height: 40px; padding: 0 16px; cursor: pointer; }
.t-next-btn:active { transform: scale(.97); }

/* ------------------------------------------------------------ pet card
   (v207) The compact strip is gone; the full card lives at the top of
   Today. Its styles are in pet-card.css. */
@keyframes t-fade-down { from { opacity: 0; transform: translateY(-6px); } }

/* ------------------------------------------------------------ section heads */
.t-sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: var(--s-6, 24px) 4px var(--s-2, 8px);
}
.t-sec-meta { font: 600 13px/1 var(--font-ui, system-ui, sans-serif); color: var(--ink-3, #95928b); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ arc rows */
/* (v211) minmax(0,1fr): a long nowrap row summary ("140.8 lb · 7.4 h sleep ·
   5,200 steps") no longer sets the column's min-content (5px overflow at 360) */
.t-arc-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.t-arc-list > .card { margin-bottom: 0; scroll-margin-top: 76px; }
/* status mark: todo = hollow ring, partial = half-filled, done = filled + check */
#arcList [data-arc] > summary > .collapse-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1.75px var(--line-strong, #4b4743);
  position: relative;
}
#arcList [data-status="partial"] > summary > .collapse-dot {
  box-shadow: inset 0 0 0 1.75px var(--dot, var(--brand, #f9bc8b));
  background: linear-gradient(90deg, var(--dot, var(--brand, #f9bc8b)) 50%, transparent 50%);
  background-clip: content-box; padding: 4px;
}
#arcList [data-status="done"] > summary > .collapse-dot {
  background: var(--dot, var(--good, #63d99b));
  /* (v208) done mark: light → saturated in the row's hue (the ✓ carries the meaning) */
  background: linear-gradient(135deg, color-mix(in oklch, var(--dot, var(--good, #63d99b)) 55%, var(--ink, #f4f1ec)), var(--dot, var(--good, #63d99b)) 70%);
  box-shadow: none;
}
#arcList [data-status="done"] > summary > .collapse-dot::after {
  content: ""; position: absolute; left: 6px; top: 3.5px; width: 4px; height: 8px;
  border-right: 2px solid var(--bg-1, #15120f); border-bottom: 2px solid var(--bg-1, #15120f);
  transform: rotate(45deg);
}
#arcList [data-arc] > summary { min-height: 56px; }
#arcList [data-arc] > summary .collapse-title h2 { font-size: 20px; }
#arcList [data-status="done"]:not([open]) > summary .collapse-title h2 { color: var(--ink-2, #c1bdb7); }
#arcList [data-arc] > summary > .collapse-stat { flex: 0 1 auto; min-width: 0; max-width: 58%; color: var(--ink-2, #c1bdb7); }
#arcList [data-status="todo"]:not([open]) > summary > .collapse-stat { color: var(--ink-3, #95928b); font-weight: 500; }
/* pre-universalize (first paint) the card-title .meta acts as the summary */
#arcList .card[data-arc] > .card-title .meta { display: none; }

/* mood host: slider replaces the emoji row */
#moodRow.t-mood-host { display: block; margin-top: 0; }
.t-mood { display: grid; grid-template-columns: 64px 1fr; gap: var(--s-4, 16px); align-items: center; padding: 4px 0 var(--s-3, 12px); }
.t-mood-faceWrap { width: 64px; height: 64px; }
.t-mood-face { width: 64px; height: 64px; display: block; }
.t-mood-face circle, .t-mood-face path, .t-mood-face ellipse { transition: fill var(--dur-2, 200ms) linear; }
.t-mood-word {
  font: 400 22px/1.1 var(--font-display, Georgia, serif); color: var(--ink, #f4f1ec);
  margin-bottom: 6px; text-transform: capitalize;
}
.t-mood[data-set="false"] .t-mood-word { color: var(--ink-3, #95928b); font-size: 17px; text-transform: none; }
.t-mood-track input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer;
  --p: 50%;
}
.t-mood-track input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--spirit, #ee8dbd) var(--p), var(--bg-3, #282521) var(--p));
}
.t-mood[data-set="false"] input[type="range"]::-webkit-slider-runnable-track { background: var(--bg-3, #282521); }
.t-mood-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: var(--ink, #f4f1ec); border: 0;
  box-shadow: 0 1px 4px oklch(0 0 0 / .5);
}
.t-mood-track input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--bg-3, #282521); }
.t-mood-track input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--spirit, #ee8dbd); }
.t-mood-track input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--ink, #f4f1ec); border: 0; }
.t-mood-track input[type="range"]:focus-visible { outline: 2px solid var(--brand, #f9bc8b); outline-offset: 4px; border-radius: 8px; }
.t-mood-track input[type="range"]:disabled { opacity: .5; cursor: not-allowed; }
.t-mood-ticks { display: flex; justify-content: space-between; margin-top: 2px; }
.t-mood-ticks span { font: 500 11px/1 var(--font-ui, system-ui, sans-serif); color: var(--ink-3, #95928b); }

/* fuel budget (top of the Fuel row body) */
.t-fuel-budget {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-4, 16px); align-items: center;
  padding: var(--s-3, 12px); margin-bottom: var(--s-3, 12px);
  background: var(--bg-2, #1e1b18); border-radius: var(--r-md, 14px);
}
.t-fuel-budget:empty { display: none; }
.t-fb-ring { position: relative; width: 84px; height: 84px; }
.t-fb-ring svg { display: block; }
.t-fb-ring-fill { stroke: var(--fuel, #fe8f5b); stroke: url(#hcg-ring-fuel) var(--fuel, #fe8f5b); }   /* (v208) */
.t-fb-ring.is-over .t-fb-ring-fill { stroke: var(--warn, #f2ce59); stroke: url(#hcg-ring-warn) var(--warn, #f2ce59); }
.t-fb-ring-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.t-fb-ring-c .num { font: 600 19px/1 var(--font-ui, system-ui, sans-serif); letter-spacing: -0.02em; color: var(--ink, #f4f1ec); }
.t-fb-ring-c small { font: 500 11px/1.2 var(--font-ui, system-ui, sans-serif); color: var(--ink-3, #95928b); }
.t-fb-ring.is-over .t-fb-ring-c .num { color: var(--warn, #f2ce59); }
.t-fb-bars { display: grid; gap: 8px; min-width: 0; }
.t-fb-bar { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s-2, 8px); align-items: center; --hue: var(--fuel, #fe8f5b); }
.t-fb-bar[data-macro="protein"] { --hue: var(--fuel, #fe8f5b); }
.t-fb-bar[data-macro="carbs"]   { --hue: color-mix(in oklch, var(--fuel, #fe8f5b) 60%, var(--ink-3, #95928b)); }
.t-fb-bar[data-macro="fat"]     { --hue: color-mix(in oklch, var(--fuel, #fe8f5b) 35%, var(--ink-3, #95928b)); }
.t-fb-bar.is-over { --hue: var(--warn, #f2ce59); }
.t-fb-bar.is-over .t-fb-v { color: var(--warn, #f2ce59); }
.t-fb-bar.is-over .t-fb-v::before { content: "▲ "; font-size: 9px; }
.t-fb-l { font: 500 13px/1.2 var(--font-ui, system-ui, sans-serif); color: var(--ink-2, #c1bdb7); }
.t-fb-v { font: 600 13px/1 var(--font-ui, system-ui, sans-serif); color: var(--ink, #f4f1ec); text-align: right; white-space: nowrap; }
.t-fb-bar.is-nogoal .t-fb-v { color: var(--ink-4, #5a5853); font-weight: 500; }
.t-fb-note { font: 400 11px/1.3 var(--font-ui, system-ui, sans-serif); color: var(--ink-3, #95928b); margin-top: 2px; }
.t-fb-empty { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s-3, 12px); color: var(--ink-2, #c1bdb7); font-size: 13px; line-height: 1.4; }
.t-fb-empty .btn { min-height: 36px; flex: 0 0 auto; }
.t-fuel-more { margin-top: var(--s-3, 12px); border-top: 1px solid var(--line, #33302c); padding-top: var(--s-2, 8px); }
.t-fuel-more > summary {
  list-style: none; cursor: pointer; min-height: 36px; display: flex; align-items: center; gap: 6px;
  font: 600 11px/1.2 var(--font-ui, system-ui, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3, #95928b);
}
.t-fuel-more > summary::-webkit-details-marker { display: none; }
.t-fuel-more > summary::after {
  content: ""; width: 6px; height: 6px; margin-left: 2px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform var(--dur-2, 200ms) var(--ease-std, ease);
}
.t-fuel-more[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.t-fuel-more:not(:has(#mealTotals:not(:empty))) { display: none; }

/* ------------------------------------------------------------ timeline */
.card.t-timeline { padding: var(--s-2, 8px) var(--s-4, 16px) var(--s-4, 16px); }
.t-tl { list-style: none; margin: 0; padding: 0; }
.t-tl li {
  display: grid; grid-template-columns: 58px 14px 1fr; gap: var(--s-2, 8px); align-items: start;
  padding: 10px 0; position: relative;
}
.t-tl li + li { border-top: 1px solid var(--line, #33302c); }
.t-tl-time { font: 500 13px/1.4 var(--font-ui, system-ui, sans-serif); color: var(--ink-3, #95928b); text-align: right; white-space: nowrap; }
.t-tl-time small { font-size: 11px; margin-left: 1px; }
.t-tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hue, var(--brand, #f9bc8b)); margin: 6px auto 0; }
.t-tl-body { min-width: 0; display: grid; gap: 2px; }
.t-tl-title { font: 500 15px/1.35 var(--font-ui, system-ui, sans-serif); color: var(--ink, #f4f1ec); overflow-wrap: anywhere; }
.t-tl-meta { font: 400 13px/1.35 var(--font-ui, system-ui, sans-serif); color: var(--ink-3, #95928b); }
.t-tl-also { padding-top: var(--s-3, 12px); border-top: 1px solid var(--line, #33302c); display: grid; gap: 8px; }
.t-tl:empty + .t-tl-also { border-top: 0; }
.t-tl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.t-tl-chip {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill, 999px);
  background: var(--bg-3, #282521); color: var(--ink-2, #c1bdb7);
  font: 500 13px/1 var(--font-ui, system-ui, sans-serif);
}
.t-empty { display: grid; justify-items: center; gap: var(--s-2, 8px); padding: var(--s-5, 20px) var(--s-4, 16px) var(--s-2, 8px); text-align: center; }
.t-empty .t-ico { color: var(--brand, #f9bc8b); opacity: .9; }
.t-empty p { margin: 0; color: var(--ink-2, #c1bdb7); font-size: 15px; line-height: 1.45; max-width: 30ch; }

/* ------------------------------------------------------------ yesterday row */
.yesterday-banner.t-yesterday {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3, 12px);
  margin: var(--s-3, 12px) 0 0; padding: 10px var(--s-3, 12px) 10px var(--s-4, 16px);
  min-height: 52px;
  background: var(--bg-1, #15120f); border-radius: var(--r-lg, 20px);
  border: 0; box-shadow: inset 0 1px 0 oklch(1 0 0 / .04);
}
.t-yesterday .yb-row { display: flex; align-items: center; gap: var(--s-3, 12px); min-width: 0; }
.t-yesterday .yb-label { font: 600 11px/1.2 var(--font-ui, system-ui, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3, #95928b); }
.t-yesterday .yb-summary { color: var(--ink-2, #c1bdb7); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-yesterday .yb-actions { display: flex; gap: 4px; flex: 0 0 auto; }
.t-yesterday .yb-btn {
  appearance: none; min-height: 32px; padding: 0 12px; border-radius: var(--r-pill, 999px);
  border: 1px solid var(--line, #33302c); background: var(--bg-3, #282521); color: var(--ink, #f4f1ec);
  font: 500 13px/1 var(--font-ui, system-ui, sans-serif); cursor: pointer;
}
.t-yesterday .yb-btn:not(.primary) { width: 32px; padding: 0; background: transparent; border-color: transparent; color: var(--ink-3, #95928b); font-size: 18px; }

/* ------------------------------------------------------------ why sheet */
.t-sheet { position: fixed; inset: 0; z-index: var(--z-sheet, 100); display: none; }
.t-sheet:not([style*="none"]) { display: block; }
.t-sheet-backdrop {
  position: absolute; inset: 0; background: oklch(0 0 0 / .6); background: var(--scrim, oklch(0 0 0 / .6));
  opacity: 0; transition: opacity var(--dur-3, 280ms) var(--ease-std, ease);
}
.t-sheet.open .t-sheet-backdrop { opacity: 1; }
.t-sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: 560px; margin: 0 auto;
  max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--bg-2, #1e1b18);
  border-radius: var(--r-xl, 28px) var(--r-xl, 28px) 0 0;
  border-top: 1px solid var(--line, #33302c);
  box-shadow: 0 -8px 32px oklch(0 0 0 / .5);
  padding: 8px 0 env(safe-area-inset-bottom, 0px);
  transform: translateY(100%);
  transition: transform var(--dur-3, 280ms) var(--ease-out, cubic-bezier(.05,.7,.1,1));
}
.t-sheet.open .t-sheet-panel { transform: none; }
.t-sheet-grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong, #4b4743); margin: 0 auto 8px; flex: 0 0 auto; }
.t-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3, 12px); padding: 4px var(--s-5, 20px) var(--s-3, 12px); flex: 0 0 auto; }
.t-sheet-head h3 { margin: 0; font: 400 24px/1.15 var(--font-display, Georgia, serif); color: var(--ink, #f4f1ec); }
.t-sheet-sub { font: 500 13px/1.3 var(--font-ui, system-ui, sans-serif); color: var(--ink-3, #95928b); margin-top: 2px; }
.t-sheet-x {
  appearance: none; width: 32px; height: 32px; border-radius: 50%; border: 0; flex: 0 0 auto;
  background: var(--bg-3, #282521); color: var(--ink-2, #c1bdb7); font-size: 20px; line-height: 1; cursor: pointer;
}
.why-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--s-5, 20px) var(--s-6, 24px); }
.t-why-lede { margin: 0 0 var(--s-4, 16px); color: var(--ink-2, #c1bdb7); font-size: 15px; line-height: 1.5; }
.t-why-row { padding: var(--s-4, 16px) 0; border-top: 1px solid var(--line, #33302c); display: grid; gap: 8px; }
.t-why-top { display: flex; align-items: center; gap: var(--s-2, 8px); }
.t-why-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hue, var(--brand, #f9bc8b)); }
.t-why-name { font: 600 17px/1.3 var(--font-ui, system-ui, sans-serif); color: var(--ink, #f4f1ec); flex: 1 1 auto; }
.t-why-val { font: 600 20px/1 var(--font-ui, system-ui, sans-serif); color: var(--ink, #f4f1ec); }
.t-why-val:not(.num) { color: var(--ink-3, #95928b); font-size: 15px; font-weight: 500; }
.t-bar.t-bar-lg { height: 8px; }
.t-why-unlock { font: 500 13px/1.3 var(--font-ui, system-ui, sans-serif); color: var(--brand, #f9bc8b); }
.t-why-inputs { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.t-why-inputs li { font: 400 15px/1.4 var(--font-ui, system-ui, sans-serif); color: var(--ink-2, #c1bdb7); padding-left: 14px; position: relative; }
.t-why-inputs li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4, #5a5853); }
.t-why-ev { margin: 0; font: 400 13px/1.45 var(--font-ui, system-ui, sans-serif); color: var(--ink-3, #95928b); }
.t-why-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4, 16px);
  margin-top: var(--s-2, 8px); padding: var(--s-4, 16px); border-radius: var(--r-md, 14px); background: var(--bg-3, #282521);
}
.t-why-toggle-t { font: 600 15px/1.3 var(--font-ui, system-ui, sans-serif); color: var(--ink, #f4f1ec); }
.t-why-toggle-s { font: 400 13px/1.4 var(--font-ui, system-ui, sans-serif); color: var(--ink-3, #95928b); margin-top: 2px; }
.t-switch {
  appearance: none; flex: 0 0 auto; position: relative; width: 48px; height: 28px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--line-strong, #4b4743); transition: background-color var(--dur-2, 200ms) var(--ease-std, ease);
}
.t-switch i {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink, #f4f1ec);
  transition: transform var(--dur-2, 200ms) var(--ease-std, ease);
}
.t-switch[aria-checked="true"] { background: var(--brand, #f9bc8b); }
.t-switch[aria-checked="true"] i { transform: translateX(20px); background: var(--on-brand, #26160e); }
.t-switch:focus-visible { outline: 2px solid var(--brand, #f9bc8b); outline-offset: 2px; }

/* ------------------------------------------------------------ legacy Today bits hidden by the redesign */
#screen-today > .greet,
#screen-today .daily-arc-header { display: none; }

@media (prefers-reduced-motion: reduce) {
  .t-ring-fill, .t-bar > i { animation: none !important; }
  .t-sheet-panel, .t-sheet-backdrop { transition: none !important; }
}

/* (v206) 44px tap targets. Quick chips + the next-step button grow to 44;
   (v207: the pet-strip pills are gone with the strip.) */
.t-qchip { height: 44px; }
.t-next-btn, .t-next-btn.btn { min-height: 44px; }
.t-fb-goals, .t-fb-goals.btn { min-height: 44px; } /* (v206) tap target */

/* ==========================================================================
   (v209) Big 4 card — back under the pet. Four compact tiles in one row;
   logged = domain gradient fill + check. Swet / supps chips below.
   ========================================================================== */
.t-big4 .card-title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2, 8px); margin-bottom: var(--s-3, 12px); }
.t-big4 .card-title .meta { font: 500 12px/1.3 var(--font-ui, sans-serif); color: var(--ink-3, #95928b); }
#todayHabits.b4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2, 8px); margin: 0; }
.b4-tile {
  --a: var(--fuel-a, #febb71); --b: var(--fuel-b, #f86d54); --h: var(--fuel, #fe8f5b);
  appearance: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 92px; padding: 12px 4px 10px; border-radius: var(--r-md, 14px);
  background: var(--bg-2, #1e1b18); border: 1px solid var(--line, #33302c);
  color: var(--ink-2, #c1bdb7); font: inherit; cursor: pointer; text-align: center;
  transition: transform var(--dur-1, 120ms) var(--ease-std, ease), background var(--dur-2, 200ms) var(--ease-std, ease), border-color var(--dur-2, 200ms);
}
.b4-tile[data-b4="mind"]  { --a: var(--mind-a, #8bf4e7);  --b: var(--mind-b, #38afcc);  --h: var(--mind, #65d0dc); }
.b4-tile[data-b4="train"] { --a: var(--train-a, #9cc8ff); --b: var(--train-b, #3f7fe0); --h: var(--train, #5fa1f3); }
.b4-tile[data-b4="good"]  { --a: var(--good-a, #a6f5a8);  --b: var(--good-b, #25c48c);  --h: var(--good, #63d99b); }
.b4-tile:active { transform: scale(.97); }
.b4-tile:focus-visible { outline: 2px solid var(--brand, #f9bc8b); outline-offset: 2px; }
.b4-ico {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--h); background: color-mix(in oklch, var(--h) 14%, transparent);
}
.b4-name { font: 600 13px/1.15 var(--font-ui, sans-serif); color: var(--ink, #f4f1ec); letter-spacing: -.005em; }
.b4-streak { display: inline-flex; align-items: center; gap: 2px; font: 500 11px/1 var(--font-ui, sans-serif); color: var(--ink-3, #95928b); font-variant-numeric: tabular-nums; }
.b4-streak .t-ico { color: var(--volt, #d3fb58); }
.b4-tile.on {
  border-color: transparent;
  background:
    linear-gradient(155deg, color-mix(in oklch, var(--a) 30%, transparent), color-mix(in oklch, var(--b) 18%, transparent) 70%),
    var(--bg-2, #1e1b18);
}
.b4-tile.on .b4-ico { color: var(--bg-0, #0c0a08); background: linear-gradient(135deg, var(--a), var(--b)); }
.b4-tile[disabled] { cursor: default; opacity: .8; }
.t-big4 .supps-section { margin-top: var(--s-4, 16px); padding-top: var(--s-3, 12px); border-top: 1px solid var(--line, #33302c); }
@media (max-width: 370px) { .b4-name { font-size: 12px; } .b4-ico { width: 36px; height: 36px; } }
