/* MILKROUND — app.css (JOB shell, 30/11/2026)
   Source of truth: mockup/v1/DESIGN.md (§0–§5, §10). Build width 1920; one root unit --u = 100vw / 1920 from 1280 up.
   Every size = mockup@1920 × var(--u). Below 1280 = ONE phone layout (360–1279), content column capped at 720 px.
   BORDERS: only the .rule-* classes below draw borders (LUAT 56). Route bodies contain ZERO border/outline declarations.
   PAGE FRAME: <main class="page"> is the one container (gutters 155 / 168 @1920). Routes never set max-width, side padding or a page background.
   VARIABLE NAMES: --u is the scale unit. Per-element animation/index variables use --mr-i, --mr-fill, --mr-delay… never --u/--d/--s. */

/* ---------- 0. tokens ---------- */
:root {
  --u: calc(100vw / 1920);

  /* colour (DESIGN §3) */
  --paper: #E1EDFB;
  --footer-band: #EAF1FA;
  --surface: #FFFFFF;
  --surface-tint: #EDF3FA;
  --text: #102A3A;
  --muted: #4E6577;
  --hairline: #CFDDE9;
  --action: #187EAC;
  --action-ink: #13668C;        /* small links on the ground (contrast) */
  --action-hover: #136C95;
  --delivered: #009698;
  --risk: #C0262D;
  --risk-bg: #FDE4E4;
  --sun-ink: #F2B880;
  --pool: #FCE7DB;
  --pool-mid: #F5EAE5;
  --edge: #DCEAF6;
  --track: #DCEAF6;

  /* fonts (DESIGN §2) */
  --f-display: 'Young Serif', 'Iowan Old Style', Georgia, serif;
  --f-body: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* type scale (mockup@1920 × --u, body text never below 12 px) */
  --fs-hero: calc(68 * var(--u));
  --fs-route: calc(53 * var(--u));
  --fs-cont: calc(48 * var(--u));
  --fs-card: calc(28 * var(--u));
  --fs-caps: max(14px, calc(21 * var(--u)));
  --fs-eyebrow: max(12px, calc(17 * var(--u)));
  --fs-bignum: calc(48 * var(--u));
  --fs-dripnum: calc(69 * var(--u));
  --fs-lede: max(14px, calc(23 * var(--u)));
  --fs-body: max(12px, calc(16 * var(--u)));
  --fs-nav: max(12px, calc(15 * var(--u)));
  --fs-label: max(12px, calc(14 * var(--u)));
  --fs-small: max(12px, calc(13 * var(--u)));

  /* materials (DESIGN §4) */
  --r-card: calc(20 * var(--u));
  --r-panel: calc(16 * var(--u));
  --r-input: calc(12 * var(--u));
  --r-table: calc(8 * var(--u));
  --r-pill: 999px;
  --shadow-card: 0 calc(8 * var(--u)) calc(28 * var(--u)) rgba(16, 42, 58, .08);
  --pad-card: calc(24 * var(--u));

  /* BORDER TOKENS (BORDER_TABLE.md / DESIGN §4b): one hairline family + one selected family, never below 1 px */
  --rule-hair-w: max(1px, calc(1 * var(--u)));
  --rule-hair-c: var(--hairline);
  --rule-soft-c: #E3EAF1;        /* inner panels, day cards, table rows (measured #E0E9F3–#E8EDF2) */
  --rule-sel-w: max(2px, calc(2 * var(--u)));
  --rule-sel-c: var(--action);
  --rule-hair: var(--rule-hair-w) solid var(--rule-hair-c);
  --rule-soft: var(--rule-hair-w) solid var(--rule-soft-c);
  --rule-sel: var(--rule-sel-w) solid var(--rule-sel-c);

  /* page frame (frame.json + USER FIX) */
  --gutter-l: calc(155 * var(--u));
  --gutter-r: calc(168 * var(--u));
  --strip-inset: calc(55 * var(--u));
  --strip-h: calc(77 * var(--u));

  /* dock */
  --dock-h: calc(52 * var(--u));
  --dock-side: calc(70 * var(--u));
  --dock-bottom: calc(38 * var(--u));
  --dock-clear: calc(var(--dock-h) + var(--dock-bottom) + calc(16 * var(--u)));

  /* MOTION (DESIGN §10): one easing + duration family — "on time" */
  --ease-round: cubic-bezier(.22, .8, .24, 1);          /* arrives, settles, no bounce */
  --ease-settle: cubic-bezier(.3, 1.25, .5, 1);        /* the one gentle settle (bottle set down) */
  --t-quick: 200ms;
  --t-fill: 500ms;
  --t-count: 800ms;
  --t-drip: 1000ms;                                     /* one tick = one real second */
  --rt-dur: 220ms;
  --rt-nudge: 16px;

  /* atmosphere (DESIGN §3b) — per-route pool positions set below by body[data-route] */
  --pool1-x: calc(1150 * var(--u)); --pool1-y: calc(560 * var(--u)); --pool1-a: 1;
  --pool2-x: calc(960 * var(--u));  --pool2-y: calc(1500 * var(--u)); --pool2-a: 1;
  --pool-rx: calc(575 * var(--u)); --pool-ry: calc(360 * var(--u));

  color-scheme: light;
  accent-color: var(--action);
}
html[data-rt-dir=back] { --rt-nudge: -16px; }

/* ---------- 1. base ---------- */
*, *::before, *::after { box-sizing: border-box; }
:where(button, input, select, textarea, fieldset) { border: 0; }
:where(button, input, select, textarea) { font: inherit; color: inherit; background: none; }
:where(button) { cursor: pointer; padding: 0; }
:where(h1, h2, h3, h4, p, ul, ol, figure, dl, dd) { margin: 0; }
:where(ul, ol) { padding: 0; list-style: none; }
:where(img, svg, video) { display: block; max-width: 100%; }
:where(a) { color: inherit; text-decoration: none; }
html {
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #A9C3DA var(--paper);
  overflow-x: clip;
}
body { margin: 0; position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
::selection { background: rgba(24, 126, 172, .22); color: var(--text); }
:focus-visible { outline: max(2px, calc(2 * var(--u))) solid var(--action); outline-offset: 2px; border-radius: 6px; }
.num, .mono { font-family: var(--f-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
main p, main li { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 2. page atmosphere (DESIGN §3b) — shared by every route, no art here ---------- */
body::before {               /* atm-edge: cooler edges, fixed */
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(120% 110% at 50% 45%, var(--paper) 55%, var(--edge) 100%);
}
.ground {                    /* atm-dawn: peach light pools behind each route's main art, scroll with the page */
  position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(var(--pool-rx) var(--pool-ry) at var(--pool1-x) var(--pool1-y),
      rgb(252 231 219 / var(--pool1-a)) 0%, rgb(245 234 229 / calc(.6 * var(--pool1-a))) 60%, rgb(245 234 229 / 0) 100%),
    radial-gradient(var(--pool-rx) var(--pool-ry) at var(--pool2-x) var(--pool2-y),
      rgb(252 231 219 / var(--pool2-a)) 0%, rgb(245 234 229 / calc(.6 * var(--pool2-a))) 60%, rgb(245 234 229 / 0) 100%);
  transition: opacity var(--t-fill) var(--ease-round);
}
body[data-route="load"] {
  --pool1-x: calc(1332 * var(--u)); --pool1-y: calc(677 * var(--u));
  --pool2-x: calc(1280 * var(--u)); --pool2-y: calc(1848 * var(--u));
}
body[data-route="quote"], body[data-route="board"], body[data-route="drip"] {
  --pool1-x: calc(1150 * var(--u)); --pool1-y: calc(420 * var(--u)); --pool1-a: .25;
  --pool2-a: 0;
}

/* ---------- 3. BORDERS — the only border declarations of the site (DESIGN §4b) ---------- */
.rule-strip { border-bottom: var(--rule-hair); }                                   /* brand-strip rule */
.rule-footer { border-top: var(--rule-hair); }                                     /* footer rule */
.rule-dock { border: var(--rule-hair); border-radius: var(--r-panel); }            /* dock */
.rule-card { border: var(--rule-hair); border-radius: var(--r-card); }             /* every white card */
.rule-panel { border: var(--rule-soft); border-radius: var(--r-panel); }           /* quote formula panel, inner panels */
.rule-day { border: var(--rule-soft); border-radius: var(--r-panel); }             /* quote day card */
.rule-bar { border: var(--rule-hair); border-radius: var(--r-panel); }             /* load wallet bar */
.rule-receipt { border: var(--rule-hair); border-radius: var(--r-card); }          /* demo receipt card */
.rule-segment { border: var(--rule-hair); border-radius: var(--r-pill); }          /* filter / segmented control (outer only) */
.rule-chip { border: var(--rule-hair); border-radius: var(--r-input); }            /* drawer stat chip, copy chip */
.rule-pill { border: var(--rule-hair); border-radius: var(--r-pill); }             /* round pill chips */
.rule-input { border: var(--rule-hair); border-radius: var(--r-input); }           /* select / input frame: wraps the whole control */
.rule-hash { border: var(--rule-hair); border-radius: var(--r-input); }            /* seat hash pill / tokens panel */
.rule-table { border: var(--rule-soft); border-radius: var(--r-table); overflow: hidden; } /* outer frame of a small table */
.rule-rows > * + * { border-top: var(--rule-soft); }                               /* rows inside a frame: ONE shared edge per pair */
.rule-row { border-bottom: var(--rule-soft); }                                     /* open table row rule */
.rule-row:last-child { border-bottom-color: transparent; }
.rule-head { border-bottom: var(--rule-hair); }                                    /* table header rule */
.rule-divide > * + * { border-left: var(--rule-soft); }                            /* vertical dividers between cells */
.rule-top { border-top: var(--rule-soft); }
.rule-bottom { border-bottom: var(--rule-soft); }
/* selected state: 2 px action — drawn as 1 px border + 1 px ring so nothing moves (no doubled line) */
.rule-sel, .is-selected.rule-card, .is-selected.rule-day, .is-selected.rule-chip, .is-selected.rule-pill,
.rule-accordion[open], .rule-accordion.is-open {
  border-color: var(--rule-sel-c); box-shadow: 0 0 0 max(1px, calc(1 * var(--u))) var(--rule-sel-c);
}
.rule-accordion { border: var(--rule-hair); border-radius: var(--r-panel); }       /* risk accordion */
.rule-input:focus-within { border-color: var(--action); }

/* ---------- 4. page frame ---------- */
.page {
  flex: 1 0 auto;
  width: 100%;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  position: relative;
}
.page:focus { outline: none; }
.bleed { margin-left: calc(-1 * var(--gutter-l)); margin-right: calc(-1 * var(--gutter-r)); }  /* full-bleed band inside a route */
main.is-leaving { opacity: .55; transition: opacity 120ms linear; }

/* ---------- 5. N7 brand strip ---------- */
.strip {
  position: relative; z-index: 20;
  height: var(--strip-h);
  padding: 0 var(--strip-inset);
  display: flex; align-items: center; justify-content: space-between; gap: calc(24 * var(--u));
  background: rgba(255, 255, 255, .96);
}
.brand { display: inline-flex; align-items: center; gap: calc(12 * var(--u)); color: var(--text); }
.brand-mark { height: max(36px, calc(46 * var(--u))); width: auto; aspect-ratio: 1962 / 2048; }
.brand-name { font: 400 max(20px, calc(30 * var(--u)))/1 var(--f-display); letter-spacing: -.005em; color: var(--text); }
.strip-actions { display: flex; align-items: center; gap: calc(28 * var(--u)); font-size: var(--fs-nav); font-weight: 600; }
.strip-link { color: var(--action-ink); transition: color var(--t-quick) var(--ease-round); }
a.strip-link:hover { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.soon { opacity: .62; cursor: default; }
.menu-btn { display: none; }
.drawer { display: none; }

/* ---------- 6. N7 dock (fixed, all routes) ---------- */
.dock {
  position: fixed; z-index: 30;
  left: var(--dock-side); right: var(--dock-side); bottom: var(--dock-bottom);
  height: var(--dock-h);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  padding: 0 calc(8 * var(--u));
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.dock a {
  position: relative; height: calc(40 * var(--u)); margin: 0 calc(10 * var(--u));
  display: flex; align-items: center; justify-content: center; gap: calc(12 * var(--u));
  border-radius: calc(10 * var(--u));
  font-size: var(--fs-nav); font-weight: 600; color: var(--text); white-space: nowrap;
  transition: background-color var(--t-quick) var(--ease-round), color var(--t-quick) var(--ease-round);
}
.dock a + a::before {        /* short hairline divider between cells (not a border: no doubled edge with the active pill) */
  content: ""; position: absolute; left: calc(-10 * var(--u) - .5px); top: 25%; height: 50%; width: max(1px, calc(1 * var(--u)));
  background: var(--hairline); pointer-events: none;
}
.dock svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.dock a:hover { background: var(--surface-tint); }
.dock a.is-active { background: var(--action); color: #fff; font-weight: 700; }

/* ---------- 7. F10 footer ---------- */
.foot {
  margin-top: calc(48 * var(--u));
  padding: calc(26 * var(--u)) var(--gutter-r) calc(26 * var(--u) + var(--dock-clear)) var(--gutter-l);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(8 * var(--u));
  background: var(--footer-band);
  font-size: var(--fs-label); color: var(--text); text-align: center;
}
.foot-brand { display: inline-flex; align-items: center; gap: calc(10 * var(--u)); margin-bottom: calc(4 * var(--u)); color: var(--text); }
.foot-mark { height: max(32px, calc(40 * var(--u))); width: auto; aspect-ratio: 1962 / 2048; }
.foot-brand .brand-name { font-size: max(18px, calc(24 * var(--u))); }
.foot .role { font-weight: 700; letter-spacing: .06em; }
.foot .links { color: var(--action-ink); font-weight: 700; }
.foot-note { color: var(--muted); }
.foot-ca { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: calc(10 * var(--u)) calc(14 * var(--u)); }
.ca-value { font-size: var(--fs-label); }
.ca-copy { padding: calc(5 * var(--u)) calc(12 * var(--u)); background: var(--surface); font-size: var(--fs-small); font-weight: 700; color: var(--action-ink); }
.ca-copy:disabled { opacity: .55; cursor: default; }
.ca-venue { color: var(--muted); }

/* ---------- 8. shared components (DESIGN §5) ---------- */
.eyebrow { font: 700 var(--fs-eyebrow)/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.h-hero { font: 400 var(--fs-hero)/1 var(--f-display); letter-spacing: -.02em; color: var(--text); }
.h-route { font: 400 var(--fs-route)/1.05 var(--f-display); letter-spacing: -.01em; color: var(--text); }
.h-cont { font: 400 var(--fs-cont)/1.05 var(--f-display); letter-spacing: -.01em; color: var(--text); }
.h-card { font: 400 var(--fs-card)/1.15 var(--f-display); color: var(--text); }
.h-caps { font: 400 var(--fs-caps)/1.1 var(--f-display); letter-spacing: .01em; text-transform: uppercase; color: var(--text); }
.lede { font-size: var(--fs-lede); line-height: 1.45; color: var(--muted); }
.body { font-size: var(--fs-body); color: var(--muted); }
.label { font-size: var(--fs-label); font-weight: 600; color: var(--muted); line-height: 1.3; }
.big-num { font: 500 var(--fs-bignum)/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--text); }
.drip-num { font: 500 var(--fs-dripnum)/1 var(--f-mono); letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--text); }
.is-delivered { color: var(--delivered); }
.is-risk { color: var(--risk); }

.card { background: var(--surface); box-shadow: var(--shadow-card); padding: var(--pad-card); }
.tint { background: var(--surface-tint); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: calc(8 * var(--u));
  min-height: max(36px, calc(46 * var(--u))); padding: 0 calc(26 * var(--u));
  border-radius: calc(12 * var(--u));
  font: 700 var(--fs-nav)/1.1 var(--f-body); white-space: nowrap;
  transition: background-color var(--t-quick) var(--ease-round), transform var(--t-quick) var(--ease-round);
}
.btn-primary, .btn-buy { background: var(--action); color: #fff; }
.btn-primary:hover, .btn-buy[data-launch-done]:hover { background: var(--action-hover); }
.btn-primary:active, .btn-buy[data-launch-done]:active { transform: translateY(1px); }
.btn-buy[aria-disabled="true"], .btn-buy.is-disabled { background: #B9CCDC; color: #fff; cursor: not-allowed; }
.btn-buy[data-launch-done] { background: var(--action); color: #fff; cursor: pointer; }
.btn-link { color: var(--action-ink); font: 700 var(--fs-nav)/1.2 var(--f-body); }
.btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-pill { border-radius: var(--r-pill); }

.chip { display: inline-flex; align-items: center; gap: .4em; padding: calc(4 * var(--u)) calc(12 * var(--u)); border-radius: var(--r-pill); background: var(--surface-tint); font-size: var(--fs-small); font-weight: 700; color: var(--text); }
.chip-teal { background: rgba(0, 150, 152, .12); color: #00797B; }

.segmented { display: inline-flex; padding: calc(4 * var(--u)); gap: calc(4 * var(--u)); background: var(--surface); }
.segmented > button, .segmented > a { padding: calc(8 * var(--u)) calc(18 * var(--u)); border-radius: var(--r-pill); font-size: var(--fs-label); font-weight: 700; color: var(--muted); transition: background-color var(--t-quick) var(--ease-round), color var(--t-quick) var(--ease-round); }
.segmented > [aria-pressed="true"], .segmented > [aria-selected="true"], .segmented > .is-on { background: var(--action); color: #fff; }

.field { display: flex; align-items: center; gap: calc(8 * var(--u)); min-height: max(36px, calc(48 * var(--u))); padding: 0 calc(14 * var(--u)); background: var(--surface); }
.field > input, .field > select { flex: 1 1 auto; min-width: 0; height: 100%; padding: calc(10 * var(--u)) 0; font-size: var(--fs-label); outline: none; }

/* the drip meter (signature component): track + delivered fill, fill scales from the left */
.meter { position: relative; height: max(8px, calc(14 * var(--u))); border-radius: var(--r-pill); background: var(--track); overflow: hidden; }
.meter > i {
  position: absolute; inset: 0; border-radius: inherit; background: var(--delivered);
  transform-origin: left center; transform: scaleX(var(--mr-fill, 0));
  transition: transform var(--t-fill) var(--ease-settle);
}

/* ---------- 9. MOTION (DESIGN §10) — transform/opacity only, all off under reduced motion ---------- */
/* 9a. "set down": a block arrives like a bottle placed on the step — drops a few px from above and settles. JS adds html.mr-motion. */
html.mr-motion [data-reveal] { opacity: 0; transform: translateY(calc(-10 * var(--u))); }
html.mr-motion [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity 420ms var(--ease-round), transform 520ms var(--ease-settle);
  transition-delay: calc(var(--mr-i, 0) * 90ms);
}
/* 9b. the tick: a live number changes once a second; a teal underline swells and fades under it (no colour flash of the digits) */
.mr-tick { position: relative; display: inline-block; }
.mr-tick::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: max(2px, calc(2 * var(--u)));
  background: var(--delivered); border-radius: 2px; opacity: 0; transform: scaleX(.3); transform-origin: left;
}
.mr-tick.is-ticking::after { animation: mr-tick var(--t-drip) var(--ease-round); }
@keyframes mr-tick { 0% { opacity: .9; transform: scaleX(.3); } 60% { opacity: .5; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1); } }
/* 9c. the drop: a teal dot leaves the block and falls into a wallet once per period (routes set --mr-period from the per-second rate) */
.mr-drop { width: max(6px, calc(10 * var(--u))); height: max(6px, calc(10 * var(--u))); border-radius: 50%; background: var(--delivered); animation: mr-drop var(--mr-period, 1s) var(--ease-round) infinite; animation-delay: var(--mr-delay, 0s); }
@keyframes mr-drop { 0% { opacity: 0; transform: translateY(calc(-14 * var(--u))) scale(.6); } 25% { opacity: 1; } 80% { opacity: 1; transform: translateY(calc(var(--mr-fall, 40) * var(--u))) scale(1); } 100% { opacity: 0; transform: translateY(calc(var(--mr-fall, 40) * var(--u))) scale(1.3); } }
/* 9d. hover: cards rise 2 px like a crate lifted, shadow deepens */
.card.is-hoverable { transition: transform var(--t-quick) var(--ease-round), box-shadow var(--t-quick) var(--ease-round); }
.card.is-hoverable:hover { transform: translateY(calc(-2 * var(--u))); box-shadow: 0 calc(12 * var(--u)) calc(32 * var(--u)) rgba(16, 42, 58, .12); }
/* 9e. art parallax — art only, never text (MODERN_WEB rule 1) */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    .mr-parallax { animation: mr-parallax linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes mr-parallax { from { transform: translateY(calc(12 * var(--u))); } to { transform: translateY(calc(-12 * var(--u))); } }
  }
}
/* 9f. route change (kit router v3 View Transition): tuned via --rt-dur / --rt-nudge above */
@media (prefers-reduced-motion: reduce) {
  html.mr-motion [data-reveal] { opacity: 1; transform: none; }
  .meter > i, .mr-tick::after, .card.is-hoverable, .ground { transition: none; animation: none; }
  .mr-drop { animation: none; opacity: 0; }
}

/* ---------- 10. phone layout 360–1279 (LUAT 71) ---------- */
@media (max-width: 1279.98px) {
  :root {
    --u: 1px;
    --fs-hero: clamp(36px, 6vw, 56px);
    --fs-route: clamp(32px, 5.2vw, 46px);
    --fs-cont: clamp(28px, 4.6vw, 40px);
    --fs-card: 22px;
    --fs-caps: 17px;
    --fs-eyebrow: 13px;
    --fs-bignum: 34px;
    --fs-dripnum: clamp(36px, 8vw, 54px);
    --fs-lede: 17px;
    --fs-body: 15px;
    --fs-nav: 14px;
    --fs-label: 13px;
    --fs-small: 12px;
    --pad-card: 18px;
    --gutter-l: max(16px, calc((100vw - 720px) / 2));
    --gutter-r: max(16px, calc((100vw - 720px) / 2));
    --strip-inset: max(16px, calc((100vw - 720px) / 2));
    --strip-h: 64px;
    --dock-h: 62px;
    --dock-side: max(8px, calc((100vw - 760px) / 2));
    --dock-bottom: 8px;
    --dock-clear: 86px;
    --pool1-x: 50%; --pool1-y: 330px; --pool2-x: 50%; --pool2-y: 1250px;
    --pool-rx: min(80vw, 520px); --pool-ry: 320px;
  }
  body[data-route="load"] { --pool1-x: 50%; --pool1-y: 520px; --pool2-x: 50%; --pool2-y: 1500px; }
  body[data-route="quote"], body[data-route="board"], body[data-route="drip"] { --pool1-x: 50%; --pool1-y: 300px; }
  .brand-mark { height: 38px; }
  .brand-name { font-size: 22px; }
  .strip-actions { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
    border-radius: 12px; background: var(--surface-tint); color: var(--text); font-weight: 700; font-size: 14px;
  }
  .drawer:popover-open, .drawer.is-open {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; inset: 0 0 auto auto; margin: 0; width: min(320px, 86vw); height: 100dvh; max-height: none;
    padding: 18px 18px 24px; background: var(--surface); color: var(--text);
    box-shadow: -12px 0 40px rgba(16, 42, 58, .16); overflow-y: auto;
  }
  .drawer::backdrop { background: rgba(16, 42, 58, .28); }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .drawer-head .brand-name { font-size: 20px; }
  .drawer-close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; }
  .drawer > a { padding: 12px 14px; border-radius: 12px; font-size: 16px; font-weight: 700; }
  .drawer > a.is-active { background: var(--action); color: #fff; }
  .drawer-social { display: flex; gap: 22px; padding: 16px 14px 0; font-size: 15px; font-weight: 700; }
  .dock { padding: 0 4px; }
  .dock a { flex-direction: column; gap: 3px; height: 52px; margin: 0 2px; padding: 0 2px; font-size: 11px; line-height: 1.1; white-space: normal; text-align: center; }
  .dock a + a::before { left: -3px; }
  .dock svg { width: 20px; height: 20px; }
  .foot { padding: 22px 16px calc(22px + var(--dock-clear)); gap: 8px; }
  .btn { min-height: 44px; padding: 0 20px; border-radius: 12px; }
}
@media (max-width: 400px) {
  .foot-ca { flex-direction: column; }
}
.drawer.ui-pop { --pop-rise: 0px; }
/* shell-only: the minimal heading block of a route fragment until its route job replaces it */
.stub-hero { display: flex; flex-direction: column; gap: calc(20 * var(--u)); padding: calc(96 * var(--u)) 0 calc(64 * var(--u)); }
