/* Today, the opening screen (views/today.js and today-cards.js), from the retired biohacking mockup's bio.css (.hero, .pair,
   .why, .mainact). Colours and spacing come from the tokens in style.css. */

/* The hero: the score gauge, Fitness and Health under it, the line why; or the gauge at rest over the start rows. */
.home-hero{gap:10px;padding:16px 20px 18px}
.home-hero.tap{width:100%;text-align:start}
.home-hero .link{align-self:center}
.home-gbtn{display:block;width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer}

/* The card under the hero: this morning's HRV (the HRV card) or today's glucose. */
.home-lead{display:flex;flex-direction:column;gap:8px}
.home-notyet{font-size:1.15rem;font-weight:800}

/* The main action as a measure: its name over one quiet line. */
.home-act{flex-direction:column;gap:0;line-height:1.2}
.home-act span{display:inline-flex;align-items:center;gap:9px}
.home-act small{font-weight:600;font-size:.76rem;opacity:.9}

/* The start card under the resting gauge (views/bio-start.js): heading and count, a progress meter, then one row per
   measure as in the mock (name over its minutes, the chevron or a check at the end), never a grey button. */
.bio-start{display:flex;flex-direction:column;gap:10px}
.bio-shead{display:flex;align-items:baseline;gap:10px}
.bio-shead b{flex:1;font-size:1.05rem}
.bio-sprog{color:var(--mut);font-weight:700;font-size:.84rem}
.bio-smeter{display:block;block-size:8px;border-radius:99px;background:var(--surface2);overflow:hidden}
.bio-smeter i{display:block;block-size:100%;border-radius:99px;background:var(--a)}
.bio-srow{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-height:58px;padding:8px 0;inline-size:100%;border:0;border-block-start:1px solid var(--line);border-radius:0;background:none;box-shadow:none;color:inherit;font:inherit;text-align:start}
.bio-srow .tt{display:flex;flex-direction:column;min-width:0}
.bio-srow .tt b{font-weight:700}
.bio-srow .tt small{color:var(--mut);font-size:.8rem}
.bio-srow .rowic{display:none}
.bio-srow.done .rowic{display:grid;order:2;inline-size:34px;block-size:34px}

/* Last night's sleep (views/today-sleep.js): the question over Same as last night and Change, or the saved night as one row. */
/* :is(#app,#pane).screen .card (style.css) sets every card's gap and direction, so the row names it to win. */
:is(#app,#pane).screen .card.home-sleep{gap:6px;padding-block:12px 8px}
.hs-q{display:flex;align-items:center;gap:10px;margin:0}
.home-sleep .rowic{display:grid;place-items:center;inline-size:32px;block-size:32px;border-radius:50%;background:var(--a-soft);color:var(--a);flex:none}
/* The main action takes the line, its times under the words; Change keeps its own width. */
.hs-acts{display:flex;gap:8px;align-items:stretch;padding-block:2px 4px}
.hs-same{flex:1 1 auto;min-width:0;flex-direction:column;gap:0;padding-inline:14px}
.hs-same small{font-size:.86rem;font-weight:700;opacity:.85}
.hs-change{flex:none;min-height:58px}
.hs-change.hs-enter{flex:1 1 auto}
.hs-done{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;flex:1 1 auto;min-inline-size:0;min-height:48px;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:start;cursor:pointer}
.hs-done .tt{display:flex;flex-direction:column;min-width:0}
.hs-done .tt small{color:var(--mut);font-size:.8rem}
:is(#app,#pane).screen .card.home-sleep[data-state=slept]{flex-direction:row;align-items:center;gap:10px;padding-block:6px}
.home-sleep[data-state=slept] .link{flex:none}
