/* Home redesign (HOME_V2_ENABLED). Linked in <head> (data-home-v2) so a slow load never shows the page unstyled;
   every rule is scoped to .h2 / body.h2-on, so with the flag off nothing here matches anything.
   Uses the app's own theme tokens only (--glass, --glass-strong, --hair, --ink, --ink-2, --ink-3, --line, --sand,
   --sand-text, --sand-soft, --shadow, --primary falling back to --sand-deep), so all four themes and their glow come
   from app.css. While .h2-page is in the view, the app's own Home content stays in the DOM but is hidden, including
   the old dials caption that named the device vendor. */
main#view:has(> .h2-page) > :not(.h2-page),
html body #app.app[data-route] main#view:has(> .h2-page) > :not(.h2-page) { display: none !important; } /* beats the app's own Home hero rule */
main#view > .h2-page { grid-column: 1 / -1; }
/* main#view ends every page with the shared bottom inset (app.css, docs/design/bottom-gap.md); home-v2.js adds only
   what that inset does not cover (--h2-safe), so the two never stack into blank scroll. */
/* atlas-brief.js anchors after the Atlas card; its old card is not part of the new Home (Yesterday and the week are). */
.h2 .atlas-brief { display: none !important; }

.h2 {
  --h2-primary: var(--primary, var(--sand-deep, #7A6247));
  --h2-on: var(--on-primary, var(--ivory, #FAF8F4));
  --h2-display: var(--f-title, "Bebas Neue"), "Russo One", Impact, "Arial Narrow", sans-serif;
  --h2-label: var(--f-logo, "Russo One"), "Arial Black", Arial, sans-serif;
  color: var(--ink); font: 16px/1.4 var(--font-body);
}
.h2-page { position: relative; display: flex; flex-direction: column; gap: 12px; padding-bottom: var(--h2-safe, 0px); overflow-anchor: none; min-width: 0; isolation: isolate; }
.h2 p { margin: 0; }
.h2 a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.h2 button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.h2 a:focus-visible, .h2 button:focus-visible { outline: 3px solid var(--h2-primary); outline-offset: 3px; border-radius: 12px; }
.h2-eye { font: 11px/1.2 var(--h2-label); letter-spacing: .14em; text-transform: uppercase; color: var(--sand-text); }
.h2-link { font: 11px/1 var(--h2-label); letter-spacing: .1em; text-transform: uppercase; color: var(--sand-text) !important; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; white-space: nowrap; }
.h2-chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.h2-row > .h2-chev { width: 16px; height: 16px; color: var(--ink-3); }

/* Photo band: behind the greeting and the top of the stack, edge to edge, scrimmed, fading into the page. */
.h2-band { position: absolute; z-index: -1; top: calc(-1 * var(--h2-lift, 0px)); left: calc(-1 * var(--h2-gxl, var(--h2-gx, 16px))); right: calc(-1 * var(--h2-gxr, var(--h2-gx, 16px))); height: calc(300px + var(--h2-lift, 0px)); overflow: hidden; pointer-events: none; }
.h2-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--h2-hx, 50%) 60%; }
:root[data-theme="night"] .h2-band img { filter: brightness(.8) saturate(.9); }
/* r3e: the night photo is already a night scene; the theme's 80% dimming lost the rack and dumbbells, so this slot keeps 95%. */
:root[data-theme="night"] .h2-band img[data-hero="night"] { filter: brightness(.95) saturate(.9); }
.h2-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,17,11,.62) 0%, rgba(24,17,11,.38) 34%, rgba(24,17,11,0) 60%); }
/* r4b glass: a soft, local shade under the greeting only (the date and the name stay legible on bright photo areas). */
@media (min-width: 1024px) { .h2-scrim { background: radial-gradient(62% 40% at 24% 32%, rgba(24,17,11,.5), rgba(24,17,11,0) 100%), linear-gradient(180deg, rgba(24,17,11,.62) 0%, rgba(24,17,11,.38) 34%, rgba(24,17,11,0) 60%); } }
.h2-fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, color-mix(in srgb, var(--ivory, #faf8f4) 70%, transparent) 82%, var(--ivory, #faf8f4) 100%); }
.h2-greet { padding: 14px 4px 4px; min-height: 82px; }
.h2-greet .h2-eye { color: #e9d6bf; }
.h2-greet h1 { font: 400 40px/.95 var(--h2-display); letter-spacing: .02em; margin: 6px 0 0; color: #FAF8F4; text-transform: uppercase; text-wrap: balance; }
.h2-greet h1 em { color: #e3c7a6; }
/* Greeting on the photo: light ink with the hero-photo shadow the design system already uses (.hero-photo .display /
   .eyebrow in app.css), over the band's scrim, so it reads at AA in every theme (art review r3a M4). */
html[data-theme] #app.app main .h2-greet h1 { color: #FAF8F4 !important; text-shadow: 0 2px 22px rgba(24,16,9,.45), 0 1px 3px rgba(24,16,9,.55); }
html[data-theme] #app.app main .h2-greet h1 em { color: #e3c7a6 !important; }
html[data-theme] #app.app main .h2-greet .h2-eye { color: #e9d6bf !important; text-shadow: 0 1px 10px rgba(24,16,9,.6), 0 0 3px rgba(24,16,9,.55); }

/* One card treatment everywhere. */
.h2-card { background: var(--glass); border: 1px solid var(--hair); border-radius: 24px; padding: 16px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.h2-hd, .h2-sub { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 28px; }
.h2-sub { border-top: 1px solid var(--line); padding-top: 10px; }
.h2-grid, .h2-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* Dials */
.h2-dials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
/* hb1 MF1 (art review): a dial with no value is never drawn as an empty grey ring; it keeps its box (visibility only),
   so the row's height is fixed and nothing jumps when a value lands. */
.h2 .h2-dial-empty { visibility: hidden; }
.h2-dial { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; min-width: 0; }
.h2-ring { position: relative; width: 70px; height: 70px; }
.h2-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.h2-track { fill: none; stroke: var(--sand-soft, rgba(122,98,71,.14)); }
.h2-arc { fill: none; stroke: var(--h2-primary); stroke-linecap: round; }
.h2-rc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.h2-rc b { font: 400 28px/1 var(--h2-display); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.h2-rc i { font: 12px/1 var(--font-body); font-style: normal; color: var(--ink-3); margin-top: 2px; }
.h2-rc .h2-none { color: var(--ink-3); font-size: 24px; }
.h2-dl { font: 10px/1.1 var(--h2-label); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.h2 .h2-dl { display: block; min-height: 25px; text-align: center; } /* hb2: room for the night on its own line, in every dial */
.h2 .h2-dl .h2-when { display: block; font: 11px/14px var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.h2 .h2-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.h2-ds { font-size: 13px; line-height: 1.25; color: var(--ink-2); min-height: 2.5em; max-width: 104px; }
.h2-sig[data-state="new"] .h2-ds { display: none; }
.h2-src { font-size: 13px; line-height: 1.35; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 10px; }
.h2-src-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.h2-invite { font-size: 13px; line-height: 1.35; color: var(--ink-3); margin-top: -4px !important; }
.h2-invite .h2-link { min-height: 0; margin-left: 4px; }

/* Today rows: 2-3 taps to anything */
.h2-rows { display: flex; flex-direction: column; }
.h2-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 0; border-top: 1px solid var(--line) !important; }
.h2-rows > .h2-row:first-child { border-top: 0 !important; }
.h2-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--sand-soft); display: grid; place-items: center; flex: 0 0 auto; color: var(--ink); }
:root[data-theme="night"] .h2-ic { background: linear-gradient(160deg, rgba(255,236,214,.09), rgba(255,236,214,.03)); box-shadow: inset 0 0 0 1px rgba(200,168,135,.22); }
.h2-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.h2-ic.h2-mini { background: none !important; box-shadow: none !important; }
.h2-ic.h2-mini svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.h2-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.h2-tx small { font: 10px/1.2 var(--h2-label); letter-spacing: .12em; text-transform: uppercase; color: var(--sand-text); }
.h2-tx b { font: 400 16.5px/1.25 var(--font-body); }
.h2-tx > span { font-size: 13.5px; line-height: 1.3; color: var(--ink-3); }
.h2-n { font: 400 21px/1 var(--h2-display); letter-spacing: .02em; margin-right: 3px; }
.h2-pill { min-height: 40px; border-radius: 999px; background: var(--h2-primary); color: var(--h2-on); font: 12px/1 var(--h2-label); letter-spacing: .1em; text-transform: uppercase; padding: 0 18px; display: inline-flex; align-items: center; flex: 0 0 auto; }
.h2-tick { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--sand); display: grid; place-items: center; flex: 0 0 auto; box-sizing: border-box; }
.h2-ck .h2-tick { margin: 0 9px; }
.h2-tick.on { background: var(--h2-primary); border-color: var(--h2-primary); }
.h2-tick.on::after { content: ""; width: 7px; height: 12px; border: solid var(--h2-on); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg) translate(-1px, -1px); }
.h2-row.h2-ck { min-height: 54px; }
.h2-tick.h2-tick-none { visibility: hidden; } /* hotfix r4hw: no water target, nothing to tick; the row keeps its alignment */
.h2-wset .h2-act { color: var(--sand-text); }
.h2-quiet { font-size: 15px; color: var(--ink-2); }

/* Atlas: atlas-home.js's own card, restyled to the glass card with one link style and an "i" for Why. */
.h2-atlas:empty { display: none; }
/* Hotfix r3c: a slot whose Atlas card is gone, hidden or not yet filled takes no row (and no column gap), so the right
   column's first card lines up with Your signals. */
.h2-atlas:not(:has(> .atlas-home:not([hidden]) > *)) { display: none; }
/* Next call: a plain slot at the top of Today, height reserved while a call is due; it hosts home-call75ag8.js's
   own card, restyled as a row (its inline card styles are overridden, its markup and wording are untouched). */
.h2-call[hidden] { display: none !important; }
.h2-call[data-due] { min-height: 92px; border-bottom: 1px solid var(--line); padding-bottom: 6px; box-sizing: border-box; }
.h2 .home-call75ag8 { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; border-radius: 0 !important; display: flex; flex-direction: column; gap: 6px; }
.h2 .home-call75ag8 .eyebrow { margin: 0; font: 10px/1.2 var(--h2-label); letter-spacing: .12em; text-transform: uppercase; color: var(--sand-text); }
.h2 .home-call75ag8 p { margin: 0; font-size: 16px; line-height: 1.3; }
.h2 .home-call75ag8 .small { font-size: 13px; color: var(--ink-3); }
.h2 .home-call75ag8 .row { display: flex; gap: 10px; flex-wrap: wrap; }
.h2 .home-call75ag8 .btn { min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 12px/1 var(--h2-label); letter-spacing: .1em; text-transform: uppercase; padding: 0 18px; cursor: pointer; }
.h2 .home-call75ag8 .btn.grad { background: var(--h2-primary); border-color: var(--h2-primary); color: var(--h2-on); }
.h2 .home-call75ag8 .btn[disabled] { opacity: .45; cursor: default; }
/* r3c4 (art review r3c3 S1): with Home v2 on, home-call75ag8.js renders the next call as a Today row (.hc-v2): the
   Calls tile, "Calls", the day and time, the room note until the room opens, then Join on the right. Same row
   rhythm as the rows under it; no box, outline or inner card at any theme. */
html[data-theme] .h2 .home-call75ag8.hc-v2 { display: block; margin: 0 !important; padding: 0 !important; border: 0 !important; outline: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; cursor: pointer; }
.h2 .hc-v2 .hc-row { border-top: 0 !important; min-height: 86px; box-sizing: border-box; } /* fixed: the slot reserves exactly this from the first paint, so the row arriving or the room opening never moves Today */
.h2 .hc-v2 .hc-join { flex: 0 0 auto; min-height: 36px; border-radius: 999px; background: var(--h2-primary); color: var(--h2-on); font: 12px/1 var(--h2-label); letter-spacing: .1em; text-transform: uppercase; padding: 0 16px; display: inline-flex; align-items: center; }
.h2 .hc-v2 > p[role=status] { padding: 8px 0 4px; font-size: 15px; color: var(--ink-2); }
.h2 .hc-v2 > [data-call-retry] { min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font: 12px/1 var(--h2-label); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.h2 .atlas-home { margin: 0 !important; background: var(--glass) !important; border: 1px solid var(--hair) !important; border-radius: 24px !important; padding: 16px !important; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2); display: grid; grid-template-columns: 1fr auto; column-gap: 8px; }
.h2 .atlas-home > * { grid-column: 1 / -1; }
.h2 .atlas-home .ah-eyebrow { font: 11px/1.2 var(--h2-label) !important; letter-spacing: .14em !important; text-transform: uppercase; color: var(--sand-text) !important; }
.h2 .atlas-home .ah-text { font: 17px/1.4 var(--font-body) !important; }
.h2 .atlas-home .ah-act { font: 11px/1 var(--h2-label) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--sand-text) !important; min-height: 32px; }
.h2 .atlas-home .ah-row { grid-column: 1; }
.h2 .atlas-home .ah-why { grid-column: 2; grid-row: 3; align-self: center; width: 32px; height: 32px; min-height: 32px; border-radius: 50%; border: 1px solid var(--line) !important; font-size: 0 !important; text-decoration: none !important; display: grid; place-items: center; color: var(--ink-3) !important; }
.h2 .atlas-home .ah-why::before { content: "i"; font: 12px/1 var(--h2-label); }
.h2 .atlas-home .ah-why[aria-expanded="true"] { background: var(--sand-soft); }

.h2-yest { padding: 12px 16px; }
.h2-yest p { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.h2-yest .h2-link { min-height: 0; margin-left: 4px; vertical-align: baseline; }
.h2-foot { text-align: center; font-size: 13px; line-height: 1.4; color: var(--ink-3); padding: 4px 10px 0; }
.h2-tiny { font-size: 13px; color: var(--ink-3); }

/* Desktop-only cards */
.h2-desk { display: none; }
.h2-wl { font-size: 15.5px; color: var(--ink-2); line-height: 1.45; }
.h2-wk { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; }
.h2-wk span { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 10px var(--h2-label); letter-spacing: .08em; color: var(--ink-3); }
.h2-wk i { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass-strong); display: grid; place-items: center; box-sizing: border-box; }
.h2-wk i.pl { border-color: var(--sand); }
.h2-wk i.on { background: var(--h2-primary); border-color: var(--h2-primary); }
.h2-wk i.on::after { content: ""; width: 6px; height: 11px; border: solid var(--h2-on); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.h2-wk i.up { border-style: dashed; background: transparent; opacity: .55; } /* a day still ahead this week (r3c) */
.h2-wk i.today { box-shadow: 0 0 0 3px var(--ivory, #faf8f4), 0 0 0 4.5px var(--h2-primary); }
.h2-shopg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.h2-pt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.h2-im { position: relative; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--hair); }
.h2-im img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h2-rx { position: absolute; left: 6px; top: 6px; font: 9.5px/1 var(--h2-label); letter-spacing: .08em; text-transform: uppercase; padding: 5px 7px; border-radius: 999px; background: rgba(37,34,32,.74); color: #F4ECE1; }
.h2-pt b { font: 400 14px/1.25 var(--font-body); max-height: 2.5em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } /* r4b home fixes: the price follows the name (no dead band) */
.h2-pr { font: 700 14px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.h2-hold .h2-im { background: var(--sand-soft); }
.h2-hold .h2-pr { display: block; height: 14px; }
.h2-th { min-height: 64px; }
.h2-av { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font: 13px var(--h2-label); color: var(--h2-on); background: var(--sand); }

@media (min-width: 1024px) {
  .h2-page { gap: 24px; container: h2page / inline-size; }
  .h2-greet, .h2-grid, .h2-foot { width: 100%; max-width: 1120px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
  .h2-band { height: calc(360px + var(--h2-lift, 0px)); }
  /* r3d (Jake, Nov 16: "this hero photo has rough edges"): on desktop the photo reaches the content pane's edges and
     melts into the page on the left, right and bottom (a mask, so it blends into whatever the theme's background is),
     instead of stopping in hard square cuts beside the rail and the gutter. The top stays flush with the header. */
  .h2-band { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%), linear-gradient(180deg, #000 0, #000 55%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%), linear-gradient(180deg, #000 0, #000 55%, transparent 100%); mask-composite: intersect; }
  /* r4 (art review r4): on wide panes (1920, where the pane is centred) a 120 px fade read as a hard edge against a
     bright window in the photo; the fade now grows with the pane (18 %, never under 120 px), and starts lower. */
  .h2-band { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 max(120px, 18%), #000 calc(100% - max(120px, 18%)), transparent 100%), linear-gradient(180deg, #000 0, #000 45%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 max(120px, 18%), #000 calc(100% - max(120px, 18%)), transparent 100%), linear-gradient(180deg, #000 0, #000 45%, transparent 100%); }
  /* r4b glass (Jake, Nov 16: the date above the greeting was almost invisible): the side fades fill only the margin
     outside the 1120 px content column, so the photo is solid behind the greeting and the cards at every width and
     still melts into the page at the edges. */
  .h2-band { --h2-fl: max(48px, calc(var(--h2-gxl, var(--h2-gx, 16px)) + (100% - var(--h2-gxl, var(--h2-gx, 16px)) - var(--h2-gxr, var(--h2-gx, 16px)) - 1120px) / 2 - 8px)); --h2-fr: max(48px, calc(var(--h2-gxr, var(--h2-gx, 16px)) + (100% - var(--h2-gxl, var(--h2-gx, 16px)) - var(--h2-gxr, var(--h2-gx, 16px)) - 1120px) / 2 - 8px));
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--h2-fl), #000 calc(100% - var(--h2-fr)), transparent 100%), linear-gradient(180deg, #000 0, #000 45%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--h2-fl), #000 calc(100% - var(--h2-fr)), transparent 100%), linear-gradient(180deg, #000 0, #000 45%, transparent 100%); }
  /* The week card's header: the date range stays on one line; the Journey link moves under it when the card is narrow. */
  .h2-week .h2-hd { flex-wrap: wrap; row-gap: 2px; }
  .h2-week .h2-hd > .h2-eye { white-space: nowrap; }
  .h2-band img { object-position: 50% 40%; } /* desktop shows the full width; keep the upper scene above the cards */
  .h2-fade { display: none; }
  .h2-greet, .h2-grid, .h2-foot { max-width: calc(min(1120px, 100%) - 2 * var(--h2-orb, 0px)); }
  .h2-greet { padding: 34px 4px 0; min-height: 0; }
  .h2-greet h1 { font-size: 56px; }
  /* r3f dashboard: two columns in a narrower pane (1024-1199, or the Atlas dock open): Today | signals and the week,
     with Atlas, Yesterday, Club and Shop below in two columns. Three columns from a 1000 px wide page: Today |
     signals, ASPN Aware, the week | Atlas, Yesterday, Club, Shop. Today is placed first by CSS only (the DOM keeps
     the phone's order). */
  .h2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
  .h2-col { gap: 24px; }
  .h2-cb { order: -1; }
  .h2-cc { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .h2-cc > .h2-atlas, .h2-cc > .h2-yest { grid-column: 1 / -1; }
  @container h2page (min-width: 1000px) {
    .h2-grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr) minmax(0, .96fr); }
    .h2-cc { grid-column: auto; display: flex; flex-direction: column; }
    .h2-ring { width: 84px; height: 84px; }
    .h2-rc b { font-size: 30px; }
  }
  /* r4 (art review r4): opening the Atlas dock narrows the page; below about 1600 px the grid ends up in two columns.
     Switch to two columns in the same frame as the open (the dock's class), not when the animating width crosses the
     container threshold mid-slide, so the only reflow is the one the member asked for; the width then eases. */
  @media (max-width: 1599px) {
    html.atlas-docked .h2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html.atlas-docked .h2-cc { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  }
  .h2-card { padding: 20px 22px; }
  .h2 .atlas-home { padding: 20px 22px !important; }
  .h2-ring { width: 96px; height: 96px; }
  .h2-rc b { font-size: 34px; }
  .h2-ds { max-width: 150px; min-height: 1.3em; }
  .h2-desk { display: flex; }
  .h2-grid { align-items: start; }
  .h2-col.h2-fill > :last-child { flex: 1 1 auto; }
  /* ASPN Aware card (version A): a fixed figure box, so the body-map module mounting into it never moves anything. */
  .h2-aware { flex-direction: row; align-items: center; gap: 16px; }
  .h2-aw-fig { flex: 0 0 auto; }
  .h2-aware .h2-tx b { font-size: 15px; line-height: 1.35; font-weight: 400; }
  .h2-aware .h2-tx { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .h2 * { transition: none !important; animation: none !important; } }
/* Plan my week entry (PLAN_MY_WEEK_ENABLED): the flat bronze primary pill (.h2-pill: Russo label, bronze fill) on its
   own row under the My Plan header, so the header keeps one line at 390 (art review r3a M2). */
.h2-pwrow { display: flex; margin: 10px 0 2px; }
.h2-pw { border: 0; cursor: pointer; min-height: 44px; gap: 8px; white-space: nowrap; }
.h2-pw svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; }
/* The app's global button and heading rules (#app main button / :is(h1, …) with !important) would make the pill a
   plain text button and the greeting charcoal on the photo; these keep the design system's own looks. */
html[data-theme] #app.app main .h2-pw.h2-pill, html[data-theme] #app.app main .h2-src-act .h2-pill { background: var(--h2-primary) !important; color: var(--h2-on) !important; font: 12px/1 var(--h2-label) !important; letter-spacing: .1em !important; text-transform: uppercase !important; border: 0 !important; box-shadow: none !important; padding: 0 20px !important; }
/* r4b calm-C desktop Home (Jake approved, Nov 16): Today (with My Plan and the week) | ASPN Aware with Your signals |
   the Shop carousel. Three columns 2 : 2 : 1, equal height (the cards stretch to the tallest column; content pads, never
   scrolls inside except the Shop rail, never clips). Phones keep their own stack. */
.h2-wkbody[hidden] { display: none !important; }
@media (min-width: 1024px) {
  .h2-grid.h2-gc { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
  .h2-gc > .h2-col { display: flex; flex-direction: column; gap: 24px; order: 0; grid-column: auto; }
  .h2-gc > .h2-col > * { flex: 1 1 auto; }
  .h2-gc > .h2-col > .h2-c2sig { display: flex; flex-direction: column; }
  .h2-gc > .h2-col > .h2-c2sig > .h2-card { flex: 1 1 auto; }
  .h2-gc .h2-desk { display: flex; }
  .h2-gc .h2-tx b { font-size: 16px; font-weight: 450; }
  .h2-gc .h2-tx span { font-size: 13px; }
  .h2-wkfold { margin-top: 4px; } /* hb2: directly under My Plan with normal spacing, never pinned to the card's bottom */
  .h2-gc > .h2-c1 > * { flex: 0 0 auto; } /* hb2: Today ends where its content ends (no stretched card) */
  .h2-wkbtn { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; }
  .h2-wkbtn .h2-chev { transition: transform .2s ease; }
  .h2-wkbtn[aria-expanded="true"] .h2-chev { transform: rotate(90deg); }
  .h2-wkbody { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 2px; }
  .h2-awhero { align-items: center; text-align: center; gap: 10px; }
  .h2-awhero > .h2-eye { align-self: flex-start; }
  .h2-awfig { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1 1 auto; justify-content: center; }
  .h2-awfig b { font: 400 16px/1.35 var(--font-body); }
  .h2-awhero .h2-c2sig { width: 100%; }
  .h2-awhero .h2-sig { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .h2-awhero .h2-sig .h2-hd { display: none; }
  .h2-awhero .h2-ring { width: 72px; height: 72px; }
  .h2-awhero .h2-rc b { font-size: 26px; }
  .h2-awhero .h2-ds { display: none; }
  /* No recent readings: one slim line instead of three empty rings. */
  .h2-awhero .h2-sig:has(.h2-stale) .h2-dials { display: none; }
  /* r4b: one fixed height for the signal row in every state (device, stale, check-ins, empty), so the card never shifts. */
  .h2-awhero .h2-sig { height: 156px; box-sizing: border-box; justify-content: flex-end; gap: 10px; }
  .h2-awhero .h2-sig .h2-src { height: 44px; box-sizing: border-box; padding-top: 0; display: flex; align-items: center; justify-content: center; gap: 12px; flex: 0 0 auto; }
  .h2-awhero .h2-sig .h2-src-row { justify-content: space-between; }
  .h2-awhero .h2-sig .h2-src-act { justify-content: center; border-top: 0; }
  .h2-awhero .h2-sig .h2-src .h2-link { min-height: 0; font: 13px/1.35 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink-2) !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--sand); }
  .h2-awhero .h2-sig .h2-src .h2-link .h2-chev { display: none; }
  .h2-awhero .h2-sig .h2-src-act .h2-pill { min-height: 40px; }
  .h2-shopc { position: relative; gap: 10px; min-height: 0; }
  .h2-rail { flex: 1 1 0; min-height: 360px; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; display: flex; flex-direction: column; gap: 14px; outline: none; border-radius: 14px; }
  .h2-rail::-webkit-scrollbar { display: none; }
  .h2-rail:focus-visible { outline: 3px solid var(--h2-primary); outline-offset: 3px; }
  .h2-rail .h2-pt { scroll-snap-align: start; scroll-snap-stop: always; flex: 0 0 var(--h2-rch, auto); height: var(--h2-rch, auto); overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
  .h2-rail .h2-im { aspect-ratio: auto; width: 100%; flex: 1 1 0; min-height: 0; }
  .h2-rail .h2-pt > b, .h2-rail .h2-pr { flex: 0 0 auto; }
  .h2-railbtn { align-self: center; width: 36px; height: 28px; border-radius: 999px; border: 1px solid var(--line) !important; display: grid; place-items: center; }
  .h2-railbtn .h2-chev { width: 14px; height: 14px; transform: rotate(-90deg); }
  .h2-railbtn.down .h2-chev { transform: rotate(90deg); }
  .h2-railbtn:disabled { opacity: .35; cursor: default; }
  .h2-dots { display: flex; justify-content: center; gap: 5px; }
  .h2-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
  .h2-dots i.on { background: var(--h2-primary); }
}

/* r4b glass (Jake approved Nov 16): the shared glass tokens (app.css) on the Home cards. Light frost by day, medium
   at night; the top tint is --gl-a-photo where cards sit on the hero (the local densifying that keeps every text at
   4.5:1 over all 22 heroes, test/home-glass-contrast.test.js), easing to the frost tint lower down. Eyebrows and card
   links use the darker day eyebrow tan. Without backdrop-filter: solid glass. */
.h2-card, .h2 .atlas-home { --ink-2: var(--ink-2-glass); --ink-3: var(--ink-3-glass); position: relative; isolation: isolate; background: linear-gradient(180deg, rgba(var(--gl-rgb), var(--gl-a-band)) 0, rgba(var(--gl-rgb), var(--gl-a-band)) var(--gl-band), transparent calc(var(--gl-band) + 40px)), linear-gradient(180deg, rgba(var(--gl-rgb), var(--gl-a-photo)) 0, rgba(var(--gl-rgb), var(--gl-a-bot)) var(--gl-fade)) !important; -webkit-backdrop-filter: blur(var(--gl-blur)) saturate(var(--gl-sat)); backdrop-filter: blur(var(--gl-blur)) saturate(var(--gl-sat)); box-shadow: var(--gl-hi), var(--shadow); }
.h2-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; background: var(--gl-grain); opacity: var(--gl-grain-a); mix-blend-mode: var(--gl-grain-blend); }
.h2-awhero .h2-sig::before { display: none; }
.h2 .h2-card .h2-eye, .h2 .h2-card .h2-link, .h2 .h2-card .h2-tx small { color: var(--eyebrow-glass) !important; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .h2-card, .h2 .atlas-home { background: var(--glass-strong) !important; }
  .h2-card::before { display: none; }
}

/* r4b density (Jake approved): no borders on rows inside cards. */
.h2 .h2-card .h2-row { border-top-color: transparent !important; }
/* r4b phone compact (Jake picked direction A, Nov 16 "Too crammed"): phones only, desktop unchanged.
   - Your signals: a small dial strip (value and unit inside the ring, the label under it).
   - Today: one line per row: the icon stands for the label (screen-reader text), the title, the trailing value, then
     Start or a chevron; Check in shows only "Check in". Each row stays a 52 px tap target.
   - ASPN Aware: a slim row after Today.
   Fixed heights, so data landing never moves a row. */
@media (max-width: 1023px) {
  .h2-page[data-layout="phone"] .h2-grid > .h2-ca { display: contents; }
  .h2-page[data-layout="phone"] .h2-sig { order: 1; }
  .h2-page[data-layout="phone"] .h2-cb { order: 2; }
  .h2-page[data-layout="phone"] .h2-aware { order: 3; }
  .h2-page[data-layout="phone"] .h2-cc { order: 4; }
  .h2-page[data-layout="phone"] .h2-sig { gap: 10px; padding: 14px 16px; }
  .h2-page[data-layout="phone"] .h2-ring { width: 56px; height: 56px; }
  .h2-page[data-layout="phone"] .h2-rc b { font-size: 21px; }
  .h2-page[data-layout="phone"] .h2-rc i { font-size: 10.5px; margin-top: 1px; }
  .h2-page[data-layout="phone"] .h2-rc .h2-none { font-size: 18px; }
  .h2-page[data-layout="phone"] .h2-dial { gap: 6px; min-height: 44px; }
  .h2-page[data-layout="phone"] .h2-today { padding: 14px 16px 6px; gap: 2px; }
  .h2-page[data-layout="phone"] .h2-rows > .h2-row:not(.h2-ck) { min-height: 52px; padding: 4px 0; gap: 12px; }
  .h2-page[data-layout="phone"] .h2-rows > .h2-row:not(.h2-ck) > .h2-ic { width: 24px; height: 24px; border-radius: 0; background: none; box-shadow: none; color: var(--sand-text); }
  .h2-page[data-layout="phone"] .h2-rows > .h2-row:not(.h2-ck) > .h2-ic.h2-mini svg { width: 24px; height: 24px; }
  .h2-page[data-layout="phone"] .h2-rows > .h2-row:not(.h2-ck) > .h2-tx { flex-direction: row; align-items: baseline; gap: 10px; }
  .h2-page[data-layout="phone"] .h2-rows > .h2-row:not(.h2-ck) > .h2-tx > small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .h2-page[data-layout="phone"] .h2-rows > .h2-row:not(.h2-ck) > .h2-tx > b { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
  .h2-page[data-layout="phone"] .h2-rows > .h2-row:not(.h2-ck) > .h2-tx > span { flex: 1 1 0; min-width: 0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
  .h2-page[data-layout="phone"] .h2-rows > .h2-row:not(.h2-ck) .h2-n { font-size: 19px; }
  .h2-page[data-layout="phone"] .h2-rows > .h2-row:not(.h2-ck) .h2-pill { min-height: 36px; padding: 0 14px; font-size: 11px; }
  .h2-page[data-layout="phone"] .h2-rows > .h2-row:not(.h2-ck) > .h2-tick { width: 24px; height: 24px; }
  /* Check in, once logged: "Check in" is the title on phones (approved with A) and the tick says logged, so the
     "Logged" line is not shown. Before that the row's title is already "Check in" (r4b density). */
  .h2-page[data-layout="phone"] .h2-row-ci > .h2-tx > small { position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important; clip-path: none !important; font: 400 16px/1.25 var(--font-body) !important; letter-spacing: 0 !important; text-transform: none !important; color: inherit !important; flex: 0 0 auto; }
  /* r4b release: the density cut drops the eyebrow until the check-in is logged; then the title itself shows. */
  .h2-page[data-layout="phone"] .h2-row-ci > .h2-tx > small ~ b { display: none; }
  /* ASPN Aware: one slim row (the figure as a small thumbnail, the eyebrow, the line, a chevron). */
  .h2-page[data-layout="phone"] .h2-aware { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 8px 14px; min-height: 60px; }
  .h2-page[data-layout="phone"] .h2-aw-fig { flex: 0 0 auto; width: 32px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--sand-soft); }
  .h2-page[data-layout="phone"] .h2-aw-fig > .aws { width: 32px; height: 48px; border-radius: 10px; }
  .h2-page[data-layout="phone"] .h2-aware .h2-tx { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
  .h2-page[data-layout="phone"] .h2-aware .h2-tx b { font: 400 14px/1.3 var(--font-body); color: var(--ink-2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}

/* r4b home fixes (art review): the centre ASPN Aware card. The figure fills the card's stage, crisp: the full view's 3D
   figure (spotlight, plinth rings, the same glows) over a clear stage, never under frost or a backdrop blur; the still
   is its poster. The line and the dials follow with an even rhythm (no dead band). */
@media (min-width: 1024px) {
  .h2-awhero { gap: 8px; }
  .h2-awhero .h2-awfig { gap: 6px; justify-content: flex-start; width: 100%; }
  .h2-awstage { position: relative; display: block; width: 100%; flex: 1 1 auto; min-height: 380px; border-radius: 18px; overflow: hidden; isolation: isolate; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .h2-awstage > .aw-still { position: absolute; inset: 0; display: grid; place-items: center; }
  .h2-awstage .aws.lg { width: 240px; height: 360px; background: none; }
  .h2-awstage .aw-root { pointer-events: none; }
  .h2-awstage .aw-canvas { bottom: 0; height: 100%; }
  /* The signal row takes its own height; the stage above takes the rest, so the card (the column's height) never moves. */
  .h2-awhero .h2-sig { height: auto; justify-content: flex-start; }
  .h2-gc .h2-awhero { min-height: 624px; } /* one card height in every signal state (device, stale, check-ins, empty) */
}

/* r4b fix (art review r4b2), hb1 MF2 (art review hb1): the next-call row (home-call75ag8.js's own card in the Today slot)
   on phone: the icon for the label, the time as the title, and "Room opens 10 minutes before your call." in full on a
   second line (never cut off at 390). Always two lines, so the reserve is fixed and nothing shifts. */
@media (max-width: 1023px) {
  .h2-page[data-layout="phone"] .h2-call .hc-row { min-height: 60px; padding: 4px 0; gap: 12px; }
  /* A two-line row on phone: the pre-load reserve is that row (60 + 6 + 1px rule) whenever a call is shown. */
  .h2-page[data-layout="phone"] .h2-call[data-due] { min-height: 67px; }
  .h2-page[data-layout="phone"] .h2-call .hc-row > .h2-ic { width: 24px; height: 24px; border-radius: 0; background: none; box-shadow: none; color: var(--sand-text); }
  .h2-page[data-layout="phone"] .h2-call .hc-row > .h2-tx { flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; flex: 1 1 auto; }
  .h2-page[data-layout="phone"] .h2-call .hc-row > .h2-tx > small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .h2-page[data-layout="phone"] .h2-call .hc-row > .h2-tx > b { flex: 0 0 auto; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; line-height: 20px; }
  .h2-page[data-layout="phone"] .h2-call .hc-row > .h2-tx > span { flex: 0 0 auto; max-width: 100%; text-align: left; white-space: normal; overflow: visible; font-size: 13px; line-height: 18px; }
}

/* ---- Phone Home B (Jake chose B, Nov 17; DECISIONS.md "phone Home direction B"). Under 1024 px: Next up over the hour's
   photo with the day ring, the read line, the day's chips, signals as mini trends, Aware learns you, Fuel. Home's own
   tokens and glass; Russo One labels, Bebas figures, General Sans text. Every box has a fixed or content height known at
   the first paint (rule 3); the motion runs once per page and never under reduced motion. */
.h2-page[data-layout="phone"] .h2-band { display: none; }
html[data-theme] #app.app main .h2-page[data-layout="phone"] .h2-greet h1 { color: var(--ink) !important; text-shadow: none; }
html[data-theme] #app.app main .h2-page[data-layout="phone"] .h2-greet h1 em { color: var(--sand-text) !important; }
.h2-page[data-layout="phone"] .h2-greet .h2-eye { color: var(--sand-text); text-shadow: none; }
.h2 .hb { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.h2 .hb-eye, .h2 .hb-sl { font: 11px/1.2 var(--h2-label); letter-spacing: .14em; text-transform: uppercase; color: var(--sand-text); }
.h2 .hb-src { font: 12px var(--font-body); color: var(--ink-3); }
/* Next up */
.h2 .hb-next { position: relative; display: flex; align-items: flex-end; min-height: 248px; padding: 18px; border-radius: 24px; overflow: hidden; background: #1d1a17; border: 1px solid rgba(255,240,220,.16); box-shadow: var(--shadow); isolation: isolate; }
.h2 .hb-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--hx, 50%) 40%; z-index: -2; }
.h2 .hb-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,17,14,.2) 0%, rgba(20,17,14,.68) 45%, rgba(20,17,14,.94) 100%); }
.h2 .hb-nx { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 100%; }
.h2 .hb-nx .hb-eye { color: #e2c7a6; }
.h2 .hb-nx h2 { margin: 0; font: 400 38px/1 var(--h2-display); letter-spacing: .02em; text-transform: uppercase; color: #f6efe6; overflow-wrap: anywhere; }
.h2 .hb-nx p { margin: 0; font: 15px/1.35 var(--font-body); color: rgba(246,239,230,.84); }
.h2 .hb-tom { margin-right: 8px; font: 11px var(--h2-label); letter-spacing: .12em; text-transform: uppercase; color: #e2c7a6; }
.h2-page .hb-go { align-self: flex-start; margin-top: 8px; display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--h2-primary) !important; color: var(--h2-on) !important; font: 13px var(--h2-label); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.h2 .hb-ring { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; }
.h2 .hb-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.h2 .hb-rt { fill: none; stroke: rgba(216,187,154,.34); stroke-width: 7; } /* hb1 MF1: a faint bronze track, never grey (0 done reads as a start) */
.h2 .hb-rv { fill: none; stroke: #d8bb9a; stroke-width: 7; stroke-linecap: round; stroke-dasharray: var(--c); stroke-dashoffset: var(--c); transition: stroke-dashoffset 1.1s cubic-bezier(.2,.7,.2,1) .15s; }
.h2.hb-in .hb-rv { stroke-dashoffset: var(--o); }
.h2 .hb-ring b { position: relative; font: 400 28px/1 var(--h2-display); color: #f6efe6; }
.h2 .hb-ring b i { font: 14px var(--h2-display); font-style: normal; color: rgba(246,239,230,.6); }
/* the read line and the day's chips */
.h2 .hb-read { margin: 0; padding: 0 4px; font: 400 17px/1.4 var(--font-body); color: var(--ink); text-wrap: pretty; }
.h2 .hb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.h2 .hb-chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px 0 8px; border-radius: 999px; background: var(--glass); border: 1px solid var(--hair); font: 14px var(--font-body); color: var(--ink); text-decoration: none; cursor: pointer; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.h2 .hb-chip i { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--hair); display: grid; place-items: center; color: var(--h2-on); }
.h2 .hb-chip i svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.h2 .hb-chip.on i { background: var(--sand); border-color: var(--sand); } .h2 .hb-chip.on { color: var(--ink-3); }
.h2 .hb-chip.hb-pw, .h2 .hb-chip.hb-calls { padding: 0 14px; gap: 8px; } .h2 .hb-chip.hb-pw svg, .h2 .hb-chip.hb-calls svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
/* signals as mini trends */
.h2 .hb-sig3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.h2 .hb-sig, .h2 .hb-wk { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 10px 10px 8px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.h2 .hb-sl { font-size: 10px; letter-spacing: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* hb2: the tile label is a fixed two-line box (the label, then the night it shows: "Last night" / "Sun"), in every tile,
   so nothing truncates at 360 and the row keeps one height whether or not a night is named. */
.h2 .hb-sig .hb-sl { display: block; height: 26px; line-height: 12px; }
.h2 .hb-sig .hb-sl .h2-when { display: block; font: 11px/14px var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h2 .hb-sig b, .h2 .hb-wk b { font: 400 30px/1 var(--h2-display); color: var(--ink); white-space: nowrap; }
.h2 .hb-sig b i, .h2 .hb-wk b i { font: 11px var(--font-body); font-style: normal; color: var(--ink-3); margin-left: 3px; }
.h2 .hb-wk b.hb-sm { font: 15px/1.2 var(--font-body); }
.h2 .hb-st { font: 11px/1.25 var(--font-body); color: var(--ink-2); min-height: 2.5em; }
.h2 .hb-chart { display: block; height: 34px; }
.h2 .hb-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.h2 .hb-wk .hb-chart { height: 26px; }
.h2 .hb-week { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.h2 .hb-invite p { margin: 0; font: 15px/1.4 var(--font-body); color: var(--ink-2); }
/* Aware learns you (phone and desktop) */
.h2 .hb-learn { color: inherit; text-decoration: none; }
.h2 .hb-lb { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; }
.h2 .hb-fig { position: relative; display: grid; place-items: center; }
.h2 .hb-lx { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.h2 .hb-chg, .h2 .hb-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.h2 .hb-chg li { display: flex; flex-direction: column; gap: 2px; font: 14px/1.35 var(--font-body); color: var(--ink); }
.h2 .hb-chg li span { font: 10px var(--h2-label); letter-spacing: .1em; text-transform: uppercase; color: var(--sand-text); }
.h2 .hb-chg li p { margin: 0; }
.h2 .hb-steps li { display: flex; align-items: center; gap: 8px; font: 14px/1.3 var(--font-body); color: var(--ink); }
.h2 .hb-steps li i { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--hair); display: grid; place-items: center; color: var(--h2-on); }
.h2 .hb-steps li i svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.h2 .hb-steps li.on i { background: var(--sand); border-color: var(--sand); } .h2 .hb-steps li.on { color: var(--ink-3); }
.h2 .hb-goal { display: flex; flex-direction: column; gap: 5px; padding-top: 10px; border-top: 1px solid var(--line); font: 13px/1.35 var(--font-body); color: var(--ink-2); }
.h2 .hb-mile { margin: 0; font: 13px/1.35 var(--font-body); color: var(--ink-2); }
.h2 .hb-aware { display: flex; flex-direction: row; align-items: center; gap: 14px; }
/* Fuel */
.h2 .hb-fuel { color: inherit; text-decoration: none; }
.h2 .hb-fu { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; }
.h2 .hb-arc { position: relative; display: grid; justify-items: center; height: 74px; }
.h2 .hb-at { fill: none; stroke: var(--sand); stroke-opacity: .2; stroke-width: 9; stroke-linecap: round; }
.h2 .hb-av { fill: none; stroke: var(--sand); stroke-width: 9; stroke-linecap: round; stroke-dasharray: var(--l); stroke-dashoffset: var(--l); transition: stroke-dashoffset 1.1s cubic-bezier(.2,.7,.2,1) .3s; }
.h2.hb-in .hb-av { stroke-dashoffset: var(--o); }
.h2 .hb-arc b { position: absolute; top: 26px; font: 400 26px/1 var(--h2-display); color: var(--ink); }
.h2 .hb-arc i { position: absolute; top: 54px; font: 11px var(--font-body); font-style: normal; color: var(--ink-3); }
.h2 .hb-pbar { display: flex; flex-direction: column; gap: 5px; }
.h2 .hb-bar { display: block; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.h2 .hb-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--sand); transition: width 1s cubic-bezier(.2,.7,.2,1) .4s; }
.h2.hb-in .hb-bar i { width: var(--w); }
.h2 .hb-pv { font: 12px var(--font-body); color: var(--ink-2); }
.h2 .hb-fset p { margin: 0; font: 15px/1.4 var(--font-body); color: var(--ink); }
/* first open: a staggered fade (once per page) */
.h2 .hb > * { opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; }
.h2.hb-in .hb > * { opacity: 1; transform: none; }
.h2.hb-in .hb > :nth-child(2) { transition-delay: .05s; } .h2.hb-in .hb > :nth-child(3) { transition-delay: .1s; } .h2.hb-in .hb > :nth-child(4) { transition-delay: .15s; } .h2.hb-in .hb > :nth-child(5) { transition-delay: .2s; } .h2.hb-in .hb > :nth-child(n+6) { transition-delay: .25s; }
@media (prefers-reduced-motion: reduce) { .h2 .hb > *, .h2 .hb-rv, .h2 .hb-av, .h2 .hb-bar i { transition: none !important; } .h2 .hb > * { opacity: 1; transform: none; } }
/* Home B: the Next up title and the date keep their colours over the app's own heading rules (day and night). */
html[data-theme] #app.app main .h2-page .hb-nx h2 { color: #f6efe6 !important; -webkit-text-fill-color: #f6efe6; text-shadow: none; }
html[data-theme] #app.app main .h2-page[data-layout="phone"] .h2-greet .h2-eye { color: var(--sand-text) !important; opacity: 1; text-shadow: none !important; }
/* hb2: at 360 every tile label reads in full ("Resting HR" included): a touch less tracking on the narrowest phones. */
@media (max-width: 380px) { .h2 .hb-sig .hb-sl { letter-spacing: .03em; } }
