/* Today: the pieces that are only Today's (views/today.js, today-cards.js); the closed cards and rows are css/widgets.css.
   Colours come from the tokens in style.css only. */

/* Today keeps the 96 px band of the living background every root opens under (style.css #app.screen.root::before)
   and draws its date row and strip over it: the band's end margin takes back its height and the column's gap, so
   the content starts at the band's top with the background moving behind it (the date row's text keeps its paper
   halo, paper.css), and Today with Your numbers and its six rows stays within a root's two screens
   (tools/check-screens.mjs). */
#app.screen.root[data-view=today]::before{margin-block-end:calc(-96px - var(--s-3))}

/* Readings that stop before now: one slim line above the chart. */
.tdy-behindline{display:flex;flex-wrap:wrap;align-items:center;gap:0 6px;margin:0;font-size:.84rem;font-weight:600;color:var(--d)}
.tdy-behindline .i{width:16px;height:16px}

/* The one action: the main button (a measure, or log a meal), and the round Speak button beside the meal one */
.tdy-mainact{display:flex;gap:12px;align-items:center}
.tdy-micbtn{width:58px;height:58px;flex:none;border-radius:50%;display:grid;place-items:center;color:var(--a);background:var(--surface);border:1.5px solid var(--a);box-shadow:var(--glow);cursor:pointer}
.tdy-micbtn .i{width:26px;height:26px}

/* Today's chart is Insights' (css/insights.css, #tdy-chart), nearly the card's full width; the way to Insights sits
   under it. */
.tdy-chart{display:flex;flex-direction:column;gap:2px;margin-inline:-8px}
.tdy-chartlinks{display:flex;justify-content:space-between;gap:8px;margin-inline:8px}
.tdy-chartlinks .link{min-height:48px}
/* under a past day's chart (no reading today): when the readings end and the way to newer ones, one quiet line */
.tdy-pastline{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:8px 0 0}
.tdy-pastline .i{width:15px;height:15px}
.tdy-pastline .link{margin-inline-start:auto}
/* the glucose card's head is the day chart's ‹ heading › row (css/chart-nav.css); the quick spans under it sit as on
   Glucose (.home-lead's own gap spaces them) */
.tdy-head .cnav{flex:1;min-width:0;margin-bottom:0}
.home-lead > .seg.cnav-spans{margin-bottom:0}

/* Today's rows act in place (views/today-rows.js, goals-habits.js): Water's +250 at the row's end, "Track your food?" as
   a line under the Food row (the question a link, Yes and Not now beside it), Try it and Not for me under a habit to try. */
.tdy-water{flex:none;min-block-size:48px}
.tdy-foodq{align-items:center}
/* Yes and Not now wrap as one pair: on a phone the pair goes under the question, never Not now alone */
.tdy-foodq .tdy-askbtns{display:flex;gap:8px}
.tdy-foodq .link{min-block-size:48px;font-weight:700}
/* R13-A: Morning's worded control (Measure, or Add sleep on a past day) at the row's end, as Water's +250 is; the
   Log again of the usual meal on its line under the Food row, the line exactly its button's 48 px target (the list
   row's 13 px pad and 60 px height take Today past a root's two screens in Hebrew). Every worded action of a row,
   here and on Food and Train, is the plain small pill (.btn.sm: 32 px drawn, 48 px to the finger by its ::after), so
   one action is drawn one way; only the outlined + opens a form. */
.tdy-mact{flex:none;min-block-size:48px}
.lrow.tdy-usual{padding-block:0;min-height:48px}
/* Morning's weigh-in while one is usual by now (shared/usual-by-now.js): the outlined 48 px icon of a form at the
   row's end, the header's gap closed and the button 8 px into the card's padding, so "HRV 97 ms Recovered" keeps one
   line beside it at 390 px (a second line takes Today past a root's two screens in Hebrew); the value keeps the other
   rows' column. */
.tdy-rowh:has(.tdy-weigh){gap:0}
.tdy-weigh{margin-inline-end:-8px}
