/* FMB Nairobi private niyaaz menu.
 * taste-skill app sheet "accent-ladder" (seed 1695890541): its face is the ladder built from the FMB logo's gold-brown;
 * design spec (research/design-spec.md): gold is a signal, never a fill; warm paper ground; photos are the colour.
 * Type: Cormorant Garamond 600 for display (>= 24px only), DM Sans 400/600 for everything else. 3 weights in total.
 * Shape: card 12, control 10, chip 999, sheet 20; a 4 px spacing scale. Shadows only on floating layers.
 * Canvas: one centred column, max 1200; gutter 16 phone / 24 tablet / 32 from 1024. */

:root {
  --ground: #faf8f4;
  --surface: #ffffff;
  --raised: #f3efe7;
  --border: #e8e2d6;
  --control: #8f846e;
  --text: #1d1710;
  --muted: #655c50;
  --accent: #8a5a12;
  --accent-press: #74490b;
  --on-accent: #ffffff;
  --accent-soft: #fbf4e6;
  --accent-track: #efe1c2;
  --accent-ink: #4c300a;
  --positive: #1f6b43;
  --negative: #b3261e;
  --negative-soft: #fdecea;
  --scrim: rgba(29, 23, 16, .4);
  --float-shadow: 0 8px 28px rgba(29, 23, 16, .12), 0 1px 3px rgba(29, 23, 16, .08);
  --float-edge: transparent; --float-edge-w: 0px; /* light: no edge at all, so no 1px surface frame round the sheet's photo */
  --img-edge: transparent;
  color-scheme: light;

  --display: "Cormorant Garamond", "DM Sans", Georgia, serif;
  --font: "DM Sans", "DM Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-12: 0.75rem; --fs-13: 0.8125rem; --fs-15: 0.9375rem; --fs-17: 1.0625rem;

  --gutter: 16px;
  --gap: 12px;
  --r-card: 12px; --r-control: 10px; --r-sheet: 20px;
  --tap: 44px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #110e0a; --surface: #1a1611; --raised: #241f18; --border: #2f2920; --control: #7d725c;
    --text: #f5efe4; --muted: #b5aa98;
    --accent: #d9ad55; --accent-press: #e6bf6e; --on-accent: #1d1406;
    --accent-soft: #261e12; --accent-track: #3f321c; --accent-ink: #f0d79e;
    --positive: #6fcf97; --negative: #f08a80; --negative-soft: #2f1714;
    --scrim: rgba(0, 0, 0, .6); --float-shadow: none; --float-edge: #2f2920; --float-edge-w: 1px; --img-edge: rgba(245, 239, 228, .08);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #110e0a; --surface: #1a1611; --raised: #241f18; --border: #2f2920; --control: #7d725c;
  --text: #f5efe4; --muted: #b5aa98;
  --accent: #d9ad55; --accent-press: #e6bf6e; --on-accent: #1d1406;
  --accent-soft: #261e12; --accent-track: #3f321c; --accent-ink: #f0d79e;
  --positive: #6fcf97; --negative: #f08a80; --negative-soft: #2f1714;
  --scrim: rgba(0, 0, 0, .6); --float-shadow: none; --float-edge: #2f2920; --float-edge-w: 1px; --img-edge: rgba(245, 239, 228, .08);
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gutter: 24px; --gap: 16px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }
@media (min-width: 1366px) { :root { --gap: 20px; } }

/* DM Sans → Arial with matched metrics, so the swap does not shift the layout */
/* self-hosted Latin subsets (scripts/fonts-subset.py): 12 + 12 + 18 KB instead of 84 KB from Google */
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans Fallback"; src: local("Arial"); size-adjust: 98%; ascent-override: 98%; descent-override: 30%; line-gap-override: 0%; }

/* ---------- base (mobile-native baseline) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
html { scroll-padding-top: 72px; scroll-padding-bottom: calc(var(--bar-h, 96px) + 16px); } /* a focused control never sits under the fixed bar (WCAG 2.4.11) */
body {
  margin: 0; min-height: 100dvh;
  background: var(--ground); color: var(--text);
  font-family: var(--font); font-size: var(--fs-15); line-height: 1.375rem;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
a { color: inherit; touch-action: manipulation; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-track); color: var(--text); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, [data-num] { font-variant-numeric: tabular-nums; }

/* ---------- splash: FMB rises in, then a small "by Treppan" builds its treads (the wellness reveal) ---------- */
.splash { --ease: cubic-bezier(0.2, 0.8, 0.2, 1); position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--ground); color: var(--muted); animation: splash-out 240ms var(--ease) 4s forwards; }
.splash.out { animation: splash-out 200ms var(--ease-out) forwards; pointer-events: none; }
.splash-lockup { display: grid; justify-items: center; gap: 28px; padding: 0 24px; }
.splash-logo img { width: min(300px, 72vw); height: auto; animation: splash-rise 360ms var(--ease-out) both; }
.splash-by { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-13); animation: splash-fade 240ms var(--ease-out) 200ms both; }
.splash-mark { width: calc(16px * 564 / 480); height: 16px; overflow: visible; }
.splash-word { width: calc(9px * 2609 / 360); height: 9px; }
.splash-mark path { animation: splash-tread 300ms var(--ease-out) 200ms both; }
.splash-mark .advance { animation-delay: 260ms; }
.splash-mark .horizon { animation-delay: 320ms; }
@keyframes splash-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes splash-tread { from { opacity: 0; transform: translateY(40px); } }
@keyframes splash-fade { from { opacity: 0; } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }

/* ---------- shell ---------- */
.app { min-height: 100dvh; display: flex; flex-direction: column; }
.top, .progress, .view, .foot { width: 100%; max-width: 1264px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); padding-bottom: 8px; }
.top-logo { display: block; border-radius: 8px; padding: 4px 0; }
.top-logo img { height: 44px; width: auto; }
@media (min-width: 768px) { .top-logo img { height: 52px; } }
.top-step { font-size: var(--fs-13); line-height: 1.125rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }

/* the course strip: one segment per course plus extras; done segments in gold; each is a 24 px tall target */
.progress { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.progress:empty { display: none; }
.progress button { position: relative; height: 24px; padding: 0; display: flex; align-items: center; border-radius: 4px; }
.progress button::before { content: ""; position: absolute; inset: -10px 0; } /* 44px hit height for elders; the 4px bar stays the visual */
.progress i { display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--accent-track); transition: background-color 200ms ease, opacity 200ms ease; }
.progress button.done i { background: var(--accent); opacity: .5; }
.progress button.now i { background: var(--accent); opacity: 1; }
/* phone on its side: about 150 px of content was left; the bar already carries the course count */
@media (max-height: 430px) and (orientation: landscape) { .top { padding-top: calc(4px + env(safe-area-inset-top, 0px)); padding-bottom: 4px; } .top-logo img { height: 28px; } .progress { display: none; } }
/* the focus ring hugs the 4px bar, not the 24px hit box its neighbours run through */
.progress button:focus-visible { outline: none; }
.progress button:focus-visible i { outline: 2px solid var(--accent); outline-offset: 3px; }

.view { flex: 1; padding-top: 20px; padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); outline: none; }
.view.no-bar { padding-bottom: 48px; }
.foot { display: flex; justify-content: center; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.foot.no-bar { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.foot:empty { display: none; }
.made { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12); color: var(--muted); text-decoration: none; padding: 8px; border-radius: 8px; }
.made svg.m { width: calc(11px * 564 / 480); height: 11px; }
.made svg.w { width: calc(8px * 2609 / 360); height: 8px; } /* wordmark at the 12px text's cap height (≈ 8.4px) */

/* step-in: direction-aware, transform + opacity only, 240 ms ease-out */
.enter { animation: step-in 240ms var(--ease-out) both; }
.enter.back { animation-name: step-in-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-16px); } }
/* a step with the sticky rail animates only its dishes: a transformed ancestor would unstick the rail for 240 ms */
.enter:has(> .step) { animation: none; }
.enter > .step > section { animation: step-in 240ms var(--ease-out) both; }
.enter.back > .step > section { animation-name: step-in-back; }
/* with View Transitions the old page leaves as the new arrives; the bar is its own group and only crossfades */
.bar { view-transition-name: bar; }
::view-transition-old(root) { animation: vt-out 240ms var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in 240ms var(--ease-out) both; }
html[data-dir="back"]::view-transition-old(root) { animation-name: vt-out-back; }
html[data-dir="back"]::view-transition-new(root) { animation-name: vt-in-back; }
::view-transition-group(bar) { animation-duration: 200ms; }
@keyframes vt-out { to { opacity: 0; transform: translateX(-24px); } }
@keyframes vt-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes vt-out-back { to { opacity: 0; transform: translateX(24px); } }
@keyframes vt-in-back { from { opacity: 0; transform: translateX(-24px); } }

/* ---------- type ---------- */
.head { display: grid; gap: 8px; margin-bottom: 20px; max-width: 720px; }
.title { font-family: var(--display); font-weight: 600; font-size: 1.875rem; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
@media (min-width: 768px) { .title { font-size: 2.25rem; } }
.welcome .title { font-size: clamp(36px, 9vw, 52px); letter-spacing: -0.02em; line-height: 1.02; }
.lede { font-size: var(--fs-15); line-height: 1.375rem; color: var(--muted); text-wrap: pretty; }
.lede b { color: var(--text); font-weight: 600; }
.warn-ink, .warn { color: var(--negative); }
.note { font-size: var(--fs-13); line-height: 1.125rem; color: var(--muted); text-wrap: pretty; }
.note b { color: var(--text); font-weight: 600; }
.meta, .sum-line, .preset-price, .results { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.meta { font-size: var(--fs-13); color: var(--muted); font-variant-numeric: tabular-nums; }
.opt { font-weight: 400; color: var(--muted); font-size: var(--fs-13); }

/* ---------- buttons, chips, icon buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 16px; border-radius: var(--r-control);
  font-weight: 600; font-size: var(--fs-15); line-height: 1.25rem; white-space: nowrap;
  transition: transform 120ms var(--ease-out), background-color 160ms ease, opacity 160ms ease;
}
.btn svg { width: 1.2em; height: 1.2em; }
/* the 24-unit chevron fills x 9–15, so its box carries ~6.75 px of air each side: pull it in so the visible label→arrow gap is ~10 px and the right padding matches the left */
.btn svg:last-child:not(:first-child) { margin-left: -5px; margin-right: -6px; }
.btn svg:first-child:not(:last-child) { margin-left: -6px; margin-right: -3px; }
.btn:active:not(:disabled):not([aria-disabled="true"]) { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: .4; }
/* a resting primary, not a broken one: opacity on gold gave a muddy tan pill (white on #d4be98 ≈ 1.9:1) */
.btn-primary:disabled, .btn-primary[aria-disabled="true"] { opacity: 1; background: var(--raised); color: var(--muted); }
.btn-primary { background: var(--accent); color: var(--on-accent); min-height: 48px; padding: 0 20px; }
.btn-primary:active:not(:disabled):not([aria-disabled="true"]) { background: var(--accent-press); }
.btn-secondary { background: var(--raised); color: var(--text); }
.btn-ghost { color: var(--text); padding: 0 12px; }
.btn-link { color: var(--accent-ink); min-height: 40px; padding: 0 8px; font-weight: 600; font-size: var(--fs-13); }
.btn-icon { width: 48px; min-height: 48px; padding: 0; }
.btn-icon svg { margin: 0 !important; transform: translateX(-.5px) !important; }
.btn-text { color: var(--accent-ink); font-weight: 600; font-size: var(--fs-13); text-decoration: underline; text-underline-offset: 3px; padding: 4px 2px; border-radius: 4px; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 600ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); transition: transform 120ms var(--ease-out), background-color 160ms ease; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:active:not(:disabled) { transform: scale(.94); background: var(--raised); }
.icon-btn:disabled { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover:not(:disabled):not([aria-disabled="true"]) { background: var(--accent-press); }
  .btn-secondary:hover:not(:disabled) { background: var(--border); }
  .btn-ghost:hover { background: var(--raised); }
  .icon-btn:hover:not(:disabled) { background: var(--raised); color: var(--text); }
}

.chips { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) 16px; padding: 2px var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: var(--fs-13); font-weight: 600; line-height: 1.125rem;
  transition: transform 120ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.chip svg { width: 14px; height: 14px; margin-right: -2px; }
.chip { position: relative; }
.chip::before { content: ""; position: absolute; inset: -4px 0; } /* 36px to see, 44px to tap */
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--text); border-color: var(--text); color: var(--ground); }
.chip[aria-pressed="true"] { padding-right: 10px; }
.chip:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover:not([aria-pressed="true"]):not([aria-checked="true"]) { border-color: var(--control); } }
.results { margin: -4px 0 12px; font-size: var(--fs-13); color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- welcome ---------- */
.welcome { display: grid; gap: 24px; max-width: 760px; padding-top: 8px; }
.resume { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 12px 16px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); }
.resume b { display: block; font-weight: 600; }
.resume span { display: block; font-size: var(--fs-13); color: var(--muted); }
.thaal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .thaal { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .thaal { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.thaal li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; padding: 10px 12px; border-radius: var(--r-control); background: var(--surface); border: 1px solid var(--border); }
.thaal li span { width: 20px; flex: none; font-size: var(--fs-13); color: var(--muted); font-variant-numeric: tabular-nums; }
.thaal li b { flex: 1; font-weight: 600; min-width: 0; overflow-wrap: normal; hyphens: manual; } /* whole words: never "Mukhwa / s" */
.thaal li em { flex-basis: 100%; margin-left: 28px; font-style: normal; font-size: var(--fs-12); color: var(--muted); }
.thaal li.ex { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.thaal li.ex span, .thaal li.ex em { color: var(--accent-ink); }

/* ---------- forms ---------- */
.form { display: grid; gap: 20px; max-width: 520px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, fieldset.field legend { font-weight: 600; font-size: var(--fs-15); padding: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field legend { margin-bottom: 8px; }
.field input {
  width: 100%; height: 48px; padding: 0 14px; font-size: 1rem; /* 16 px: no iOS zoom */
  background: var(--surface); border: 1px solid var(--control); border-radius: var(--r-control);
  transition: border-color 160ms ease, box-shadow 160ms ease; appearance: none; -webkit-appearance: none;
}
.field input[type="date"], .field input[type="time"] { min-width: 0; line-height: 2.875rem; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-track); }
.field input[aria-invalid="true"] { border-color: var(--negative); }
.field input[aria-invalid="true"]:focus { border-color: var(--negative); box-shadow: 0 0 0 3px var(--negative-soft); } /* one signal: no gold halo around a red field */
.err { font-size: var(--fs-13); line-height: 1.125rem; color: var(--negative); animation: err-in 160ms var(--ease-out); }
.err:empty { display: none; }
@keyframes err-in { from { opacity: 0; transform: translateY(-4px); } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 14px; border-radius: var(--r-control); background: var(--negative-soft); color: var(--negative); font-size: var(--fs-13); }
.alert[hidden] { display: none; }
.occasions { display: flex; flex-wrap: wrap; gap: 8px; }
.occasions .chip { min-height: 40px; }
.stepper { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 8px; }
.stepper input { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.125rem; }
.step-btn { min-height: 48px; padding: 0; }
.step-btn svg { width: 20px; height: 20px; margin: 0 !important; transform: none !important; }
.field-out { font-size: var(--fs-15); color: var(--muted); font-variant-numeric: tabular-nums; }
.field-out b { color: var(--text); font-weight: 600; }
.sum-line { color: var(--muted); font-variant-numeric: tabular-nums; column-gap: 8px; }
.sum-line > * + *::before { content: "·"; margin-right: 8px; color: var(--control); }
.sum-line b { color: var(--text); font-weight: 600; }

/* ---------- presets ---------- */
.presets { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .presets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1180px) { .presets { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.preset { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.preset.fit { box-shadow: inset 0 0 0 2px var(--accent); border-color: transparent; }
.collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 9; gap: 2px; background: var(--surface); position: relative; }
.preset.fit .collage { margin: 2px 2px 0; border-radius: 10px 10px 0 0; overflow: hidden; }
.collage span { position: relative; overflow: hidden; background: var(--raised); }
.collage span:only-child { grid-column: 1 / -1; grid-row: 1 / -1; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.preset-body { display: grid; gap: 8px; padding: 14px 16px 16px; flex: 1; align-content: start; }
.preset-body h2 { font-family: var(--display); font-weight: 600; font-size: 1.625rem; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
.preset-desc { color: var(--muted); text-wrap: pretty; }
.preset-dishes { font-size: var(--fs-13); line-height: 1.125rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.preset-price { font-size: var(--fs-13); color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 4px; }
.preset-price b { font-size: var(--fs-17); color: var(--text); font-weight: 600; }
.preset-body > .btn { margin-top: 8px; justify-self: start; }
.suggest { font-size: var(--fs-13); font-weight: 600; color: var(--accent-ink); }
.preset.own { background: var(--raised); border-style: dashed; border-color: var(--control); }

/* ---------- a course: rule line, groups, cards ---------- */
.rule-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: var(--fs-13); line-height: 1.125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.rule-line .rule { font-weight: 600; color: var(--text); }
.rule-line .ok { display: inline-flex; align-items: center; gap: 4px; color: var(--positive); font-weight: 600; }
.rule-line .ok svg { width: 14px; height: 14px; }
.group + .group { margin-top: 32px; }
.group-h { font-size: var(--fs-17); font-weight: 600; line-height: 1.5rem; margin: 0 0 12px; display: flex; align-items: baseline; gap: 8px; text-wrap: balance; }
.group-h span { font-size: var(--fs-13); font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }

.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dish { position: relative; min-width: 0; display: flex; }
.dish-main {
  position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden;
  transition: transform 200ms var(--ease-out), border-color 160ms ease, box-shadow 160ms ease; /* soft release */
}
.dish-main:active { transform: scale(.98); transition-duration: 120ms, 160ms, 160ms; } /* quick press */
.dish.on .dish-main { box-shadow: inset 0 0 0 2px var(--accent); border-color: var(--accent); }
.dish-pic { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--raised); overflow: hidden; }
.dish-pic img, .sheet-pic img, .mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 240ms ease, transform 200ms var(--ease-out); -webkit-touch-callout: none; }
.dish-pic img.in, .sheet-pic img.in, .mini img.in { opacity: 1; }
.dish-pic img.now { transition: transform 200ms var(--ease-out); } /* shown at once, the hover zoom still eases */
/* off-screen cards skip layout and paint in the step-in frame */
.dish:nth-child(n+9) { content-visibility: auto; contain-intrinsic-block-size: auto 300px; }
.dish-pic::after, .sheet-pic::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--img-edge); pointer-events: none; }
.ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--raised); color: var(--accent-ink); }
.ph b { font-family: var(--display); font-size: 2.5rem; font-weight: 600; line-height: 1; opacity: .6; }
.ph small { position: absolute; left: 10px; bottom: 8px; font-size: var(--fs-12); color: var(--muted); }
.badge-pill { position: absolute; left: 8px; top: 8px; padding: 1px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: var(--fs-12); font-weight: 600; line-height: 1.125rem; }
.tick { position: absolute; right: 5px; top: 5px; width: 28px; /* centre at 19px = the badge pill's centre (8 + 22/2) */ height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); opacity: 0; transform: scale(.6); transition: opacity 120ms var(--ease-out), transform 120ms var(--ease-out); } /* leaving: quick, no bounce */
.tick svg { width: 16px; height: 16px; }
.dish.on .tick { opacity: 1; transform: none; transition: opacity 160ms var(--ease-out), transform 180ms cubic-bezier(.34, 1.56, .64, 1); } /* arriving: the one allowed overshoot */
/* the info button sits over the photo's bottom-right corner (photo height = 3/4 of the card width) */
.dish { container-type: inline-size; }
.info { position: absolute; right: 2px; top: calc(75cqw - 46px); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--text); z-index: 1; }
.info svg { width: 28px; height: 28px; padding: 4px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); }
.dish-body { display: flex; flex-direction: column; gap: 4px; padding: 12px; flex: 1; min-width: 0; }
.dish.on .dish-body { background: var(--accent-soft); }
/* no reserved lines: a one-line name sits right on its description; the price row is pinned (margin-top: auto) and grid rows stretch, so prices still align */
.dish-name { font-weight: 600; font-size: var(--fs-15); line-height: 1.25rem; overflow-wrap: anywhere; text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish-desc { font-size: var(--fs-13); line-height: 1.125rem; color: var(--muted); overflow-wrap: anywhere; text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 339px) { .dish-desc { -webkit-line-clamp: 1; } }
.dish-tags { font-size: var(--fs-12); line-height: 1rem; color: var(--muted); min-height: 16px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; margin-top: auto; padding-top: 6px; font-variant-numeric: tabular-nums; }
.price .amt { font-size: var(--fs-15); font-weight: 600; color: var(--text); white-space: nowrap; }
.price .amt span { font-size: var(--fs-13); font-weight: 400; color: var(--muted); }
.delta { font-size: var(--fs-13); font-weight: 500; color: var(--muted); white-space: nowrap; } /* secondary to the price: one bold line per card */
.delta.down { color: var(--positive); }
@media (hover: hover) and (pointer: fine) {
  .dish-main:hover { border-color: var(--control); }
  .dish.on .dish-main:hover { border-color: var(--accent); }
  .dish-main:hover .dish-pic img.in { transform: scale(1.03); }
  .info:hover svg { border-color: var(--control); }
}
.empty { display: grid; justify-items: start; gap: 12px; padding: 24px; border-radius: var(--r-card); background: var(--surface); border: 1px dashed var(--control); }
.extra + .extra { margin-top: 32px; }
.extra-h { font-family: var(--display); font-weight: 600; font-size: 1.625rem; line-height: 1.1; margin-bottom: 4px; }
.extra .rule-line { margin-bottom: 4px; }
.extra .lede { margin-bottom: 16px; }

/* the step split: dishes + "Your menu" rail on wide screens */
.step { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.step > section { min-width: 0; }
@media (min-width: 1180px) { .step { grid-template-columns: minmax(0, 1fr) 288px; align-items: start; } }
.rail { display: none; }
@media (min-width: 1180px) {
  .rail { display: grid; gap: 2px; position: sticky; top: 16px; padding: 12px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); }
  .rail h2 { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-17); font-weight: 600; padding: 4px 8px 8px; }
  .rail h2 span { font-size: var(--fs-13); font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
}
.rail-sub { font-size: var(--fs-13); font-weight: 600; color: var(--muted); padding: 12px 8px 4px; }
.rail-row { display: grid; gap: 0; padding: 6px 8px; border-radius: 8px; text-align: left; width: 100%; }
.rail-row span { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-13); line-height: 1.125rem; color: var(--muted); }
.rail-row span i { font-style: normal; font-variant-numeric: tabular-nums; }
.rail-row b { font-weight: 600; font-size: var(--fs-13); line-height: 1.125rem; overflow-wrap: anywhere; }
.rail-row em { font-style: normal; font-size: var(--fs-13); line-height: 1.125rem; color: var(--muted); }
.rail-row[aria-current="step"] { background: var(--accent-soft); }
.rail-row[aria-current="step"] span { color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .rail-row:hover { background: var(--raised); } .rail-row[aria-current="step"]:hover { background: var(--accent-soft); } }
.rail-total { display: grid; gap: 4px; margin-top: 8px; padding: 12px 8px 0; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.rail-total span { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-13); color: var(--muted); }
.rail-total b { color: var(--text); font-weight: 600; font-size: var(--fs-15); }
.rail-total .btn-link { justify-self: start; padding: 0; margin-top: 4px; }

/* ---------- review, sheet and done: course blocks with thumbnails ---------- */
.review-cols { display: grid; gap: 24px; }
@media (min-width: 1024px) { .review-cols { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; } .review-cost { position: sticky; top: 16px; } }
.cblocks { display: grid; gap: 8px; }
.blocks-sub { font-size: var(--fs-13); font-weight: 600; color: var(--muted); margin: 12px 0 0; }
/* one 16px content edge on both sides: the × glyph and the "Change"/"Add" text end on the same line (their hit areas reach into the padding) */
.cblock .icon-btn { margin-right: -12px; }
.cblock-h .btn-link { margin-right: -8px; }
.cblock { padding: 12px 16px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); }
.cblock.missing { border-color: var(--negative); border-style: dashed; }
.cblock-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; }
.cblock-h h3 { font-size: var(--fs-15); font-weight: 600; }
.minis { display: grid; gap: 4px; margin-top: 4px; }
.mini-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 48px; }
.mini { position: relative; display: block; width: 48px; height: 36px; border-radius: 6px; overflow: hidden; background: var(--raised); }
.mini .ph b { font-size: 1.125rem; }
.mini-name { min-width: 0; font-weight: 600; font-size: var(--fs-15); line-height: 1.25rem; overflow-wrap: anywhere; }
.mini-name span { display: block; font-weight: 400; font-size: var(--fs-13); line-height: 1.125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.nudge { font-size: var(--fs-13); color: var(--muted); margin-top: 2px; }
.cblock.missing .nudge { color: var(--negative); }
.review-cost { display: grid; gap: 12px; }
.review-cost .btn { justify-self: start; }

/* cost table */
.costs { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; font-variant-numeric: tabular-nums; }
.costs th, .costs td { padding: 8px 16px; text-align: left; vertical-align: baseline; font-weight: 400; font-size: var(--fs-15); line-height: 1.25rem; }
.costs td { text-align: right; white-space: nowrap; }
.costs tbody tr:first-child th, .costs tbody tr:first-child td { padding-top: 12px; }
.costs tbody th { color: var(--muted); overflow-wrap: anywhere; }
.costs tr.sub th { font-size: var(--fs-13); font-weight: 600; color: var(--muted); padding-top: 12px; padding-bottom: 2px; }
.costs tfoot th, .costs tfoot td { font-weight: 600; }
.costs tfoot tr:first-child th, .costs tfoot tr:first-child td { border-top: 1px solid var(--border); padding-top: 12px; }
.costs tfoot th span { font-weight: 400; color: var(--muted); }
.costs tfoot .btn-text { margin-left: 4px; }
.costs .grand th, .costs .grand td { padding-top: 12px; padding-bottom: 14px; background: var(--accent-soft); color: var(--accent-ink); }
.costs .grand th { font-family: var(--display); font-size: 1.5rem; }
.costs .grand td { font-size: 1.25rem; font-weight: 600; }

/* ---------- done (the sent screen; .done is the progress state, so the screen has its own name) ---------- */
.sent { display: grid; gap: 20px; max-width: 680px; padding-top: 8px; }
.sent .badge { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.sent .badge svg { width: 28px; height: 28px; }
/* the one celebratory moment: the check draws itself once (400 ms), the title follows */
.sent .badge path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 400ms var(--ease-out) 120ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sent .head { animation: step-in 240ms var(--ease-out) 240ms both; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.facts div { padding: 12px 16px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); }
.facts dt { font-size: var(--fs-13); color: var(--muted); }
.facts dd { margin-top: 2px; font-size: var(--fs-17); font-weight: 600; font-variant-numeric: tabular-nums; }
.facts dd span { font-size: var(--fs-13); font-weight: 400; color: var(--muted); }
.facts .ref { letter-spacing: 0.04em; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- the bottom bar: Back, the thaal tray, Next ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: var(--surface); border-top: 1px solid var(--border); box-shadow: var(--float-shadow);
  padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
}
.bar[hidden] { display: none; }
.bar-in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 8px; min-height: 48px; }
.bar-in > .btn:last-child { margin-left: auto; }
.bar-in > .btn-icon:first-child { margin-left: 0; } /* Back stays left, even alone (presets step has no Next) */
.bar-why { flex: 1; min-width: 0; font-size: var(--fs-13); line-height: 1.125rem; color: var(--muted); text-align: right; }
.bar-why-row { max-width: 1200px; margin: 4px auto 0; text-align: right; }
.bar-why-row .bar-why { display: block; font-size: var(--fs-12); }
@media (min-width: 768px) {
  .bar { left: 50%; right: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(760px, calc(100vw - 48px)); transform: translateX(-50%); border: 1px solid var(--float-edge); border-radius: 18px; padding: 8px; }
}
/* wide screens: the course steps carry the sticky "Your menu" rail, so the bar centres under the dish column, never over the rail */
@media (min-width: 1180px) {
  .bar.has-tray {
    --col-w: calc(min(100vw, 1264px) - 2 * var(--gutter) - 288px - 24px);
    --bar-w: min(760px, var(--col-w));
    left: calc(max(0px, (100vw - 1264px) / 2) + var(--gutter) + (var(--col-w) - var(--bar-w)) / 2);
    width: var(--bar-w); transform: none;
  }
}
.bar.has-tray .bar-in > .btn:last-child { flex: none; margin-left: 0; }
.tray {
  position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px; border-radius: 12px;
  text-align: left; font-variant-numeric: tabular-nums; overflow: hidden; transition: transform 120ms var(--ease-out), background-color 160ms ease;
}
.tray:active { transform: scale(.98); background: var(--raised); }
@media (hover: hover) and (pointer: fine) { .tray:hover { background: var(--raised); } }
.ring { width: 36px; height: 36px; }
.ring path { fill: none; stroke: var(--accent-track); stroke-width: 4; stroke-linecap: round; transition: stroke 240ms ease; }
.ring path.on { stroke: var(--accent); }
.ring circle { fill: var(--raised); }
.tray-fig { display: grid; min-width: 0; line-height: 1.125rem; }
.tray-l1 { font-size: var(--fs-13); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray-l1 b { display: inline-block; margin-right: 2px; font-size: var(--fs-17); line-height: 1.375rem; font-weight: 600; color: var(--text); }
.tray-l2 { font-size: var(--fs-13); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray-l2 b { display: inline-block; font-weight: 600; color: var(--text); }
.tray-delta { position: absolute; right: 8px; top: 6px; padding: 0 6px; border-radius: 999px; background: var(--surface); font-size: var(--fs-12); line-height: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); opacity: 0; pointer-events: none; }
.tray-delta.down { color: var(--positive); }
.nx-short { display: none; }
@media (max-width: 479px) { .bar.has-tray .nx-long { display: none; } .bar.has-tray .nx-short { display: inline; } .bar.has-tray .bar-in > .btn:last-child { padding: 0 14px; } }
@media (max-width: 359px) { .ring { display: none; } }
@media (min-width: 768px) { .tray { border-radius: 10px; } } /* nested in the 18px bar with 8px padding */

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(var(--above, 0px) + 12px);
  display: flex; align-items: center; gap: 12px; max-width: min(520px, calc(100vw - 32px)); width: max-content;
  padding: 8px 8px 8px 16px; border-radius: 18px; background: var(--text); /* 18 − 8 padding = the Undo button's 10 */ color: var(--ground); box-shadow: var(--float-shadow);
  font-size: var(--fs-15); line-height: 1.25rem; opacity: 0; transform: translate(-50%, 8px); pointer-events: none;
  transition: opacity 160ms ease, transform 160ms var(--ease-out); /* leaving */
}
@media (min-width: 768px) { .toast { bottom: calc(var(--above, 0px) + 28px); } }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; transition: opacity 200ms ease, transform 200ms var(--ease-out); }
.toast span { min-width: 0; padding: 6px 0; }
.toast b { font-weight: 600; }
.toast button { flex: none; min-height: 36px; padding: 0 12px; border-radius: 10px; font-weight: 600; color: var(--accent-track); }
.toast button:active { background: rgba(255, 255, 255, .12); }

/* ---------- sheets: a drawer from the bottom on phone, a centred panel from 768 ---------- */
.layer { position: fixed; inset: 0; z-index: 50; }
.layer[hidden] { display: none; }
.scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity 200ms ease; }
.layer.open .scrim { opacity: 1; transition-duration: 240ms; }
.scrim { touch-action: none; } /* a drag on the dimmed page can never scroll what is behind it */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: min(90dvh, 820px); display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-sheet) var(--r-sheet) 0 0; outline: none; overflow: hidden;
  box-shadow: var(--float-shadow); border: var(--float-edge-w) solid var(--float-edge);
  transform: translateY(100%); transition: transform 220ms var(--ease-out); /* closing: faster than it opened */
}
.layer.open .sheet { transform: none; transition: transform 320ms var(--ease-drawer); }
.sheet.dragging, .layer.open .sheet.dragging { transition: none; }
.sheet-in { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.grab { position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--border); z-index: 2; touch-action: none; }
.sheet.is-dish .grab { background: rgba(255, 255, 255, .75); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 8px 8px 16px; touch-action: none; }
.sheet-head h2 { font-family: var(--display); font-size: 1.625rem; font-weight: 600; line-height: 1.1; }
.sheet-head h2 span { display: block; font-family: var(--font); font-size: var(--fs-13); font-weight: 400; color: var(--muted); margin-top: 2px; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 20px; display: grid; gap: 12px; align-content: start; }
.sheet-pic { position: relative; flex: none; aspect-ratio: 4 / 3; max-height: 44dvh; width: 100%; background: var(--raised); overflow: hidden; touch-action: none; }
.sheet-pic .ph b { font-size: 4.5rem; }
.sheet-x { position: absolute; right: 8px; top: 8px; background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(29, 23, 16, .12), 0 0 0 .5px rgba(29, 23, 16, .08); } /* holds its edge on cream photos */
.dish-sheet { padding-top: 16px; }
.dish-sheet .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: var(--fs-12); font-weight: 600; line-height: 1.375rem; padding: 0 10px; border-radius: 999px; background: var(--raised); color: var(--muted); }
.tag-accent { background: var(--accent-soft); color: var(--accent-ink); }
.sheet-title { font-family: var(--display); font-size: 1.875rem; line-height: 1.08; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.price.big { justify-content: flex-start; gap: 4px 12px; padding: 0; }
.price.big .amt { font-size: var(--fs-17); }
.sheet-foot { display: flex; align-items: center; gap: 8px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border); background: var(--surface); }
.sheet-foot .grow { flex: 1; }
.sheet .cblock { background: var(--ground); }
@media (min-width: 768px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(600px, calc(100vw - 48px)); max-height: min(88dvh, 820px); border-radius: var(--r-sheet); transform: translate(-50%, calc(-50% + 16px)); opacity: 0; transition: transform 180ms var(--ease-out), opacity 160ms ease; }
  .layer.open .sheet { transform: translate(-50%, -50%); opacity: 1; transition: transform 240ms var(--ease-out), opacity 200ms ease; }
  .grab { display: none; }
  .sheet-foot { padding-bottom: 12px; }
}
html.sheet-on { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .splash-logo img, .splash-by, .splash-mark path { animation: splash-fade 240ms var(--ease) both !important; }
  .splash, .splash.out { animation-duration: 240ms !important; }
  .enter, .enter.back, .enter > .step > section { animation-name: splash-fade; }
  .btn:active:not(:disabled), .chip:active, .dish-main:active, .tray:active, .icon-btn:active:not(:disabled) { transform: none; }
  .tick { transform: none; transition: opacity 160ms ease; }
  .scrim, .toast { transition: opacity 200ms ease !important; }
  .sheet { transition: opacity 200ms ease !important; transform: none !important; opacity: 0; }
  .layer.open .sheet { transform: none !important; opacity: 1; }
  .toast, .toast.show { transform: translate(-50%, 0); }
  .err { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .sent .badge path { animation: none; stroke-dashoffset: 0; }
  .dish-main:hover .dish-pic img.in { transform: none; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 768px) {
  .sheet, .layer.open .sheet { transform: translate(-50%, -50%) !important; }
}

/* ---------- fix/qa: no sideways page, a tray that never truncates, 44 px to tap ---------- */
.view { overflow-x: clip; padding-bottom: calc(var(--bar-h, 96px) + 24px); } /* the 16 px step slide never widens the page; content clears the bar */
.view.no-bar { padding-bottom: 48px; }
.step > * { min-width: 0; } /* a horizontal chip scroller can't push its width onto the step */
/* phone: the tray gets its own row above Back and Next, so the KES figures always show in full */
@media (max-width: 599px) {
  .bar.has-tray .bar-in { flex-wrap: wrap; row-gap: 8px; }
  .bar.has-tray .tray { order: -1; flex: 1 0 100%; height: 48px; }
  .bar.has-tray .bar-in > .btn:last-child { flex: 1; min-width: 0; margin-left: 0; justify-content: center; padding: 0 16px; }
  .bar.has-tray .nx-long { display: inline; }
  .bar.has-tray .bar-in > .btn:last-child::first-letter { text-transform: none; }
}
.tray-l1, .tray-l2 { overflow: visible; text-overflow: clip; } /* digits are never ellipsized */
/* hit areas: the pill stays 36 px to see, the tap reaches 44 px */
.chips { padding-top: 4px; padding-bottom: 4px; margin-bottom: 12px; } /* room inside the scroller for the chips' hit areas */
.toast button { position: relative; }
.toast button::before { content: ""; position: absolute; inset: -4px 0; }
.made { min-height: 44px; padding: 0 8px; }
.occasions .chip { min-height: 44px; }
.btn-link { min-height: 44px; min-width: 44px; justify-content: center; }
.btn-text { display: inline-flex; align-items: center; min-height: 44px; margin-block: -7px; }
/* phone: the course strip is one button that opens "Your menu" (each course has Change there); from 600 px each segment is its own target */
.progress .prog-all { position: relative; grid-column: 1 / -1; height: 24px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: center; gap: 4px; border-radius: 4px; }
.progress .prog-all::before { content: ""; position: absolute; inset: -10px 0; }
.progress .prog-all > i { display: block; height: 4px; border-radius: 2px; background: var(--accent-track); }
.progress .prog-all > i.done { background: var(--accent); opacity: .5; }
.progress .prog-all > i.now { background: var(--accent); opacity: 1; }
