/* MCC-022 / MCC-048 — the web surface's whole stylesheet. Token values copied by hand from
   CoffeeMacros/Resources/Assets.xcassets (dsBackground/dsAccent/dsTextPrimary/dsTextSecondary/
   dsSurface/dsSeparator) — there is no build step sharing these between the app and this static
   site, so keep them in sync by hand if the DesignSystem palette ever changes. Typography mirrors
   DS.Typo: the serif wordmark/display title (`design: .serif` → New York / Georgia), system text. */
:root {
  --background: #F7F3EC;
  --surface: #FFFDF8;
  --text-primary: #211B14;
  --text-secondary: #6E6459;
  --accent: #2E5339;
  --separator: #E7DFD3;
  --focus: #1B6FB8;
  --error: #8A2A1F;
  --serif: "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 32px;
}

@media (min-width: 720px) {
  .page { padding: 40px 24px 40px; }
}

/* Keyboard users: one skip link, visible only when focused. */
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { left: 8px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

h1 { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 20px; font-weight: 600; margin: 32px 0 8px; }
p { margin: 0 0 16px; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }

.site { margin-bottom: 24px; }
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 16px;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}

.tagline, .meta, .rail-subtitle, .confidence { color: var(--text-secondary); }
.meta { font-size: 14px; }
.availability { font-weight: 600; }

.intro { margin-bottom: 8px; }

.card, .surface {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.availability-banner {
  background: color-mix(in srgb, #B8860B 12%, transparent);
  color: #6B5410;
  border-radius: 6px;
  padding: 10px 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.notice {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

/* Buttons and button-like links: 44pt targets, visible focus, no motion. */
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  padding: 12px 24px;
  min-height: 44px;
  line-height: 20px;
  border-radius: 14px;
  border: 1.5px solid var(--accent);
  margin: 8px 8px 8px 0;
  cursor: pointer;
}
.cta.secondary {
  background: transparent;
  color: var(--accent);
}
.cta[disabled], .cta[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }
.actions { margin: 16px 0 8px; }

/* Discover rails: a responsive card grid (2-up on phones, 3-up from tablet). */
.rail { margin-top: 8px; }
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 600px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.card a {
  display: block;
  padding: 12px;
  color: inherit;
  text-decoration: none;
  min-height: 44px;
  border-radius: 16px;
}
.card .hero {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: var(--separator);
  display: block;
  margin-bottom: 8px;
}
/* A drink without an approved hero keeps the card's shape: a neutral token-coloured block, no invented art. */
.card .hero.placeholder { background: color-mix(in srgb, var(--accent) 12%, var(--separator)); }
.card-title { display: block; font-weight: 600; }
.card-line { display: block; color: var(--text-secondary); font-size: 14px; }
.card-saving { display: block; color: var(--accent); font-size: 13px; margin-top: 4px; }

.all-drinks { list-style: none; margin: 0; padding: 0; columns: 1; }
@media (min-width: 600px) { .all-drinks { columns: 2; column-gap: 24px; } }
.all-drinks li { padding: 8px 0; border-bottom: 1px solid var(--separator); break-inside: avoid; }
.all-drinks a { display: inline-block; min-height: 28px; }

/* Recipe page (2026-09-24 fallback + MCC-048): the shared recipe itself — approved hero, serif title,
   the selected size and version, clean figures. */
/* Recipe Detail's hero ONLY (the app's accepted framing, HeroImage.detailBoxHeightRatio = 1.15): a box 1.15 times
   as tall as it is wide with the 4:5 photo anchored to the BOTTOM, so the props at the foot of the cup stay in view
   (rows 0.08-1.00 of the photo). ONLY the article's own top image: the direct-child selector leaves every card's
   photo — Discover's, and the "More drinks" rail rendered inside this article — on its square crop (.card .hero). */
.recipe > .hero {
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 60%,rgba(0,0,0,.98) 70%,rgba(0,0,0,.88) 82%,rgba(0,0,0,.5) 92%,rgba(0,0,0,.12) 97%,transparent 99.5%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 0%,#000 60%,rgba(0,0,0,.98) 70%,rgba(0,0,0,.88) 82%,rgba(0,0,0,.5) 92%,rgba(0,0,0,.12) 97%,transparent 99.5%,transparent 100%);
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  object-position: center bottom;
  border-radius: 16px;
  background: var(--separator);
  display: block;
  margin: 0 0 16px;
}
.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
  padding: 16px;
  background: var(--surface);
  border-radius: 16px;
}
.figures div { text-align: center; }
.figures dt { font-size: 12px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; }
.figures dd { margin: 0; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.saving { color: var(--accent); font-weight: 600; }
.confidence { font-size: 14px; }

.steps { padding-left: 20px; margin: 0 0 12px; }

/* How to Order (MCC-048 parity with the app's card): Start with / In person / In the app. */
.order-card { background: var(--surface); border: 1px solid var(--separator); border-radius: 16px; padding: 16px; margin: 0 0 12px; }
.order-card h3 { font-size: 17px; margin: 16px 0 4px; }
.order-caption { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 4px; }
.order-start { margin: 0 0 4px; }
.order-start strong { display: block; font-size: 17px; }
.say { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.4; margin: 0; }
.seg-add { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 4px; padding: 0 2px; }
.seg-remove { color: var(--error); background: color-mix(in srgb, var(--error) 10%, transparent); border-radius: 4px; padding: 0 2px; }
.app-groups { list-style: none; margin: 0; padding: 0; }
.app-groups > li { padding: 8px 0; border-bottom: 1px solid var(--separator); }
.app-groups ul { list-style: none; margin: 4px 0 0; padding: 0 0 0 12px; }
.group-title { font-weight: 600; }
.item-chip, .item-choice { font-weight: 600; }
.item-none { color: var(--error); font-weight: 600; }
.order-note { color: var(--text-secondary); font-size: 14px; margin: 12px 0 0; }
.credit { color: var(--text-secondary); font-size: 14px; margin: -8px 0 12px; }
.credit strong, .credit a { font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.steps li { padding: 6px 0; border-bottom: 1px solid var(--separator); }
.tip { color: var(--text-secondary); }

/* Size row and Popular Variations (the app's selectors, as plain links to exact configurations). */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 8px; padding: 0; }
.sizes h2, .variations h2 { margin-top: 24px; }
.variation-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.variation {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: baseline;
  min-height: 44px;
  padding: 12px 16px;
  border: 1.5px solid var(--separator);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text-primary);
  text-decoration: none;
}
.variation[aria-current="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.variation-name { font-weight: 600; }
.variation-cal { color: var(--text-secondary); font-size: 14px; font-variant-numeric: tabular-nums; }
.variation-summary { grid-column: 1 / -1; color: var(--text-secondary); font-size: 14px; }
.variation.unavailable { background: transparent; }
.variation.unavailable .variation-name { color: var(--text-secondary); }
.variation.unavailable a { display: inline-block; min-height: 28px; }

/* Ordering-channel control (the app's In person / In the app): two plain radios, no script. Without CSS both
   channels simply show, one after the other. */
.channel-toggle { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.order-card.has-channels { display: flex; flex-wrap: wrap; gap: 0 8px; }
.has-channels > .order-start, .has-channels > .order-channel, .has-channels > .order-note { flex: 0 0 100%; }
.has-channels > label {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 12px 0 8px;
  border: 1.5px solid var(--separator);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  cursor: pointer;
}
.channel-toggle:checked + label { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.channel-toggle:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.has-channels .order-channel h3 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.has-channels .channel-app { display: none; }
#channel-app:checked ~ .channel-app { display: block; }
.channel-app-toggle:checked ~ .channel-app { display: block; }
#channel-app:checked ~ .channel-person { display: none; }
.channel-app-toggle:checked ~ .channel-person { display: none; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 8px; }
.share .cta { margin: 0; }
.share-status { flex-basis: 100%; color: var(--text-secondary); overflow-wrap: anywhere; }
.share-status:empty { display: none; }

/* Forms (MCC-048 waitlist): stacked on phones, inline from tablet; labels always visible. */
.waitlist { margin: 24px 0; padding: 20px; background: var(--surface); border-radius: 16px; }
.waitlist h2 { margin-top: 0; }
.waitlist label { display: block; font-weight: 600; margin-bottom: 6px; }
.waitlist .row { display: flex; flex-wrap: wrap; gap: 8px; }
.waitlist input[type="email"] {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
  border: 1.5px solid var(--separator);
  border-radius: 12px;
  background: #fff;
  color: var(--text-primary);
}
.waitlist input[aria-invalid="true"] { border-color: var(--error); }
.waitlist .cta { margin: 0; }
.waitlist .consent { font-size: 14px; color: var(--text-secondary); margin: 8px 0 0; }
.form-error { color: var(--error); font-weight: 600; margin: 8px 0 0; }
.form-status { margin: 8px 0 0; }

footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--separator);
  font-size: 13px;
  color: var(--text-secondary);
}
footer nav a { margin-right: 16px; display: inline-block; min-height: 28px; }

/* ---- /drinks: browse and find (MCC-048, 2026-10-02) — the app's search field and filter chips ---------------- */
.browse-title { margin-bottom: 12px; }
.search { display: flex; gap: 8px; margin: 0 0 12px; }
.search label { position: absolute; }
.search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 10px 16px;
  font: inherit;
  color: var(--text-primary);
  background: var(--surface);
  border: 1.5px solid var(--separator);
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
}
.search input[type="search"]::placeholder { color: var(--text-secondary); opacity: 1; }
.search .cta { margin: 0; flex: none; }
.filters ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--separator);
  color: var(--text-primary);
  font-size: 15px;
  text-decoration: none;
}
.chip[aria-current="true"] { background: var(--accent); color: #fff; font-weight: 600; }
.results-summary { color: var(--text-secondary); font-size: 14px; margin: 0 0 12px; }
.results-summary a { display: inline-block; min-height: 28px; }
.empty { padding: 24px 20px; background: var(--surface); border-radius: 16px; text-align: center; }
.empty h2 { margin-top: 0; }
.card-credit { display: block; color: var(--text-secondary); font-size: 13px; margin-top: 4px; }
.card-flag { display: block; color: #6B5410; font-size: 13px; margin-top: 4px; }
.waitlist-link { margin: 32px 0 0; font-size: 15px; }
.waitlist-link a { display: inline-flex; align-items: center; min-height: 44px; }

/* Selected two-phone preview: eye-level front, restrained rear angle. Preview-only selectors. */
.landing { text-align: center; }
.landing-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 20px; }
.app-icon { display: block; width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 6px 16px rgba(33,27,20,.12); }
.landing-brand .brand { font-size: 20px; min-height: 0; line-height: 1.2; margin: 0; }
.landing .intro h1 { font-size: clamp(32px,6.4vw,46px); line-height: 1.1; letter-spacing: -.01em; margin-bottom: 12px; }
.landing .tagline { max-width: 34em; margin: 0 auto 10px; font-size: clamp(20px,4.8vw,24px); line-height: 1.35; }
.landing .availability { color: var(--text-secondary); font-size: 14px; margin: 6px 0; }
.landing .intro-action { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 16px 0 0; }
.landing .intro-action .cta { margin: 0; padding: 10px 24px; }
.landing .intro-action .waitlist-secondary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }
.waitlist input[type=email] { scroll-margin-top: 132px; }
.preview { display: flex; flex-direction: column; align-items: center; margin: 12px 0 0; padding: 0; }
.preview-phones { position: relative; width: min(520px,100%); overflow: hidden; padding: 28px 0 24px; }
.preview .phone { position: relative; width: min(300px,74vw); aspect-ratio: 300/620; padding: 9px; border-radius: 46px; background: var(--text-primary); box-shadow: 0 16px 32px rgba(33,27,20,.13); text-align: left; }
.preview .phone-main { margin-inline: auto; transform: translateX(-13%); z-index: 2; }
.preview .phone-rear { position: absolute; top: 40px; right: 0; width: min(270px,65vw); transform: perspective(1000px) rotateY(-12deg) rotate(-8deg); z-index: 1; }
.preview .phone::before { content:""; position: absolute; top: 3.2%; left: 50%; width: 26%; height: 3.4%; transform: translateX(-50%); border-radius: 999px; background: var(--text-primary); z-index: 3; }
.preview .phone-screen { position: relative; width:100%; height:100%; overflow:hidden; border-radius:37px; background:var(--background); color:var(--text-primary); container-type:inline-size; }
.preview .screen { position:absolute; inset:0; display:flex; flex-direction:column; padding:4em 1.3em 1.3em; overflow-y:auto; scrollbar-width:none; background:var(--background); font-size:11px; font-size:3.9cqw; line-height:1.3; }
.preview .screen::-webkit-scrollbar { display:none; }
.preview .p-scene { display:none; }
.preview .phone[data-phone-stage=discover] [data-scene=discover], .preview .phone[data-phone-stage=person] [data-scene=person], .preview .phone[data-phone-stage=app] [data-scene=app], .preview .phone[data-phone-stage=customize] [data-scene=customize] { display:flex; }
.preview .p-rear-detail, .preview [data-scene=person], .preview [data-scene=app] { padding-inline:0; }
.preview .p-detail-hero { display:block; width:100%; height:auto; aspect-ratio:1/1.15; object-fit:cover; object-position:center bottom; border-radius:0; flex:none; }
.preview .p-detail-copy { padding:0 .7em; }
.preview .p-title { display:block; margin-top:.65em; font-family:var(--serif); font-weight:600; font-size:1.8em; line-height:1.12; }
.preview .p-size { display:block; margin-top:.4em; font-size:.95em; color:var(--text-secondary); }
.preview .p-figures { display:flex; justify-content:space-between; gap:.6em; margin:1em 0; }
.preview .p-figure { text-align:center; flex:1; }
.preview .p-figure-value { display:block; font-size:1.9em; }
.preview .p-figure-value small { font-size:.5em; margin-left:.12em; }
.preview .p-figure-label { display:block; font-size:.85em; color:var(--text-secondary); }
.preview .p-heading { display:block; font-family:var(--serif); font-weight:600; font-size:1.7em; margin:.7em 0 .45em; }
.preview .p-channels { display:flex; border-radius:999px; padding:.3em; margin-bottom:.6em; background:var(--separator); }
.preview .p-channels button { flex:1; text-align:center; min-height:44px; padding:.25em; font:inherit; font-size:.95em; border:0; color:inherit; background:transparent; cursor:pointer; }
.preview .p-channels button[aria-pressed=true] { background:var(--surface); border-radius:999px; }
.preview .p-order { border:1px solid var(--separator); border-radius:1.2em; background:var(--surface); overflow:hidden; flex:none; }
.preview .p-order-start, .preview .p-order-body { padding:.9em 1em; }
.preview .p-order-start { border-bottom:1px solid var(--separator); }
.preview .p-caption { display:block; color:var(--accent); letter-spacing:.13em; text-transform:uppercase; font-size:.8em; margin-bottom:.35em; }
.preview .p-say { display:block; font-family:var(--serif); font-size:1.2em; line-height:1.4; }
.preview .p-setting { display:flex; justify-content:space-between; gap:1em; padding:.55em 0; border-bottom:1px solid var(--separator); }
.preview .p-setting strong { text-align:right; font-weight:500; }
.preview .p-group { color:var(--text-secondary); margin-top:.6em; }
.preview .p-wordmark { font-family:var(--serif); font-size:1.7em; font-weight:600; display:flex; justify-content:space-between; }
.preview .p-person { color:var(--text-secondary); font-size:.9em; font-weight:400; }
.preview .p-search { display:flex; justify-content:space-between; border:1px solid var(--separator); border-radius:999px; background:var(--surface); margin:.8em 0; padding:.75em; }
.preview .p-search-row { display:flex; gap:.6em; align-items:center; }
.preview .p-search-row .p-search { flex:1; }
.preview .p-calculator { display:grid; place-items:center; width:2.7em; height:2.7em; border-radius:50%; background:var(--accent); color:var(--surface); font-weight:600; }
.preview .p-person svg { width:1.15em; height:1.15em; fill:none; stroke:currentColor; stroke-width:1; }
.preview .p-brands { display:flex; gap:.65em; align-items:start; font-size:.8em; }
.preview .p-brands span { flex:1; }
.preview .p-brands span:not(:first-child) { color:var(--text-secondary); opacity:.65; }
.preview .p-brands small { display:block; font-size:.8em; margin-top:.25em; }
.preview .p-filters { display:flex; gap:.4em; margin:1em 0 .2em; overflow-x:auto; flex:none; align-items:center; }
.preview .p-filters span, .preview .p-filters a { flex:none; white-space:nowrap; color:inherit; text-decoration:none; border:1px solid var(--separator); border-radius:999px; padding:.4em .65em; font-size:.85em; }
.preview .p-filters a { min-height:44px; display:flex; align-items:center; }
.preview .p-discover-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8em; }
.preview .p-discover-card { color:inherit; text-decoration:none; min-height:44px; border:1px solid var(--separator); border-radius:1.2em; padding:.7em; background:var(--surface); }
.preview .p-discover-card img { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:cover; border-radius:.8em; }
.preview .p-discover-card strong { display:block; font-size:1em; margin:.55em 0 .3em; }
.preview .p-discover-card span { font-size:.85em; color:var(--text-secondary); }
.preview .p-app-label { display:block; color:var(--text-secondary); font-size:.9em; }
.preview .p-option-preview { border:1px solid var(--separator); border-radius:1.2em; background:var(--surface); padding:1em; }
.preview .p-option-preview span, .preview .p-option-preview strong { display:block; margin:.5em 0; }
.preview .p-selected-setting { border:1px solid var(--accent); border-radius:.7em; padding:.5em; color:var(--accent); }
.preview .p-preview-note { color:var(--text-secondary); font-size:.9em; }
.preview-hint { color:var(--text-secondary); font-size:14px; max-width:36em; margin:6px 0 8px; }
.preview-controls { display:flex; flex-wrap:wrap; justify-content:center; gap:4px; position:relative; z-index:3; }
.preview-controls button { min-height:44px; padding:8px 12px; border:1px solid var(--separator); border-radius:999px; background:transparent; color:var(--text-secondary); font:inherit; font-size:14px; cursor:pointer; }
.preview-controls button[aria-pressed=true] { color:var(--text-primary); background:var(--surface); }
.preview-controls button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }

.landing .waitlist { max-width: 480px; margin: 28px auto 0; padding: 22px; text-align: left; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06); }
.landing .waitlist h2 { font-family: var(--serif); font-size: 22px; text-align: center; margin-bottom: 12px; }
.landing .waitlist .cta { flex: 1 1 auto; text-align: center; }
.landing .waitlist .consent { text-align: center; }
.landing .waitlist .form-error, .landing .waitlist .form-status { text-align: center; }
/* Completion feedback stands out without changing what it says (the pending copy is the waitlist partial's). */
.landing .waitlist .form-status:not(:empty) { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, transparent); font-weight: 600; }

.landing footer { margin-top: 32px; text-align: center; }
.landing footer nav a { display: inline-flex; align-items: center; min-height: 44px; margin: 0 4px; padding: 0 10px; }
.landing footer .meta { max-width: 46em; margin: 8px auto 0; font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.preview .p-discover-card:focus-visible, .preview .p-channels button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }

.preview [data-scene=customize] { padding:0; }
.preview .p-calculator-capture { display:block; width:100%; height:auto; flex:none; }
.preview .p-calculator-capture-label { padding:4em .7em .6em; font-size:.85em; color:var(--text-secondary); }
.preview [data-scene=customize] .p-preview-note { padding:.7em; }

/* App RecipeRailView: fixed-width cards, complete horizontal category rows. Results retain their grid. */
.rail:not(.results) .cards { display:flex; gap:16px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x proximity; padding:4px 2px 14px; scrollbar-width:thin; }
.rail:not(.results) .cards > .card { flex:0 0 168px; scroll-snap-align:start; }
.rail:not(.results) .cards:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
.customize-entry { text-align:center; }
.customize-entry .cta { display:inline-flex; justify-content:center; min-width:180px; }
.customize-entry-status { display:block; }
@media (prefers-reduced-motion:reduce) { .rail:not(.results) .cards { scroll-snap-type:none; } }
/* Filter layout uses the actual app palette, system typography and 44px controls. */
.filter-toolbar{display:flex;gap:8px;overflow-x:auto;padding:4px 0 12px;white-space:nowrap}.filter-panel{margin:12px 0}.filter-form{display:grid;gap:10px;padding:16px;background:var(--surface);border-radius:16px}.filter-form select{font:inherit;min-height:44px;padding:8px;border:1px solid var(--separator);border-radius:10px}.filter-form input[type=range]{width:100%;min-height:44px;accent-color:var(--accent)}.filter-form footer{display:flex;justify-content:space-between;gap:12px;position:sticky;bottom:0;background:var(--surface);padding:12px 0}.filter-form footer>*{flex:1;text-align:center}.filter-check{display:flex;align-items:center;gap:10px;min-height:44px}#caffeine-note{font-size:.85rem;color:var(--text-secondary);margin:0}.filter-sheet{width:min(560px,calc(100% - 24px));max-height:85dvh;border:1px solid var(--separator);border-radius:20px;background:var(--background);padding:16px;color:var(--text-primary)}.filter-sheet::backdrop{background:#211B1480}.filter-sheet .filter-panel{margin:0}.filter-sheet summary{min-height:44px;cursor:pointer;color:var(--accent)}

.filter-form footer{flex-wrap:wrap}.filter-form footer>*{min-width:0;flex:1 1 80px}

/* Spelling help wraps at narrow widths and enlarged text; the query remains in the field. */
.search-suggestion { overflow-wrap: anywhere; line-height: 1.6; }
.search-suggestion .chip { white-space: normal; max-width: 100%; }

.preview .phone[role=button]{cursor:pointer}.preview .phone[role=button]:focus-visible{outline:3px solid var(--accent);outline-offset:4px}

.search-correction{margin:16px 0}.search-correction p{margin:0 0 4px}.search-correction strong{font-weight:650}.search-correction a{display:inline-flex;align-items:center;min-height:44px;font-size:.875rem;color:var(--accent)}

/* Physical front/back handoff, with a fixed outer frame and no motion when requested. */
.preview-phones{height:calc(min(300px,74vw)*2.066667 + 52px)}.preview .phone{transition:transform 220ms ease,right 220ms ease,top 220ms ease,width 220ms ease}.preview .phone-main{position:absolute;top:28px;right:50%;margin:0;transform:translateX(37%)}.preview[data-front=rear] .phone-main{top:40px;right:0;width:min(270px,65vw);transform:perspective(1000px) rotateY(-12deg) rotate(-8deg);z-index:1}.preview[data-front=rear] .phone-rear{top:28px;right:50%;width:min(300px,74vw);transform:translateX(37%);z-index:2}.preview [data-preview-phone][role=button] .phone-screen{pointer-events:none}@media(prefers-reduced-motion:reduce){.preview .phone{transition:none}}

.preview [data-preview-phone]:focus-visible{outline:3px solid var(--accent);outline-offset:4px}

.rail-heading,.p-rail-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.rail-heading a{min-height:44px;display:inline-flex;align-items:center;flex-shrink:0}.browse-all-entry{display:flex;justify-content:space-between;padding:16px;border:1px solid var(--separator);border-radius:16px;background:var(--surface);color:inherit;text-decoration:none;margin:24px 0;min-height:44px}.preview .p-discover-cards{display:flex;overflow-x:auto;gap:1em;overscroll-behavior-x:contain;scroll-snap-type:x proximity}.preview .p-discover-card{flex:0 0 10.5em;scroll-snap-align:start}.preview .p-rail-heading .p-heading{margin:0}.preview .p-rail-heading a{font-size:.8em;min-height:44px;display:flex;align-items:center}.preview .p-discover-section{margin:1.5em 0}.preview .p-browse-all{padding:1em;border:1px solid var(--separator);border-radius:1em;color:inherit;text-decoration:none}body[data-large-text=true] .browse .rail:not(.results) .cards{display:grid;grid-template-columns:minmax(0,1fr);overflow:visible}body[data-large-text=true] .browse .rail:not(.results) .cards>.card:nth-child(n+5){display:none}body[data-large-text=true] .browse .rail-heading{display:block}body[data-large-text=true] .browse .rail.results .cards{grid-template-columns:minmax(0,1fr)}

body{padding-bottom:calc(var(--build-clearance,96px) + env(safe-area-inset-bottom))}.floating-build{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:20;border:0;border-radius:999px;padding:12px 20px;background:var(--accent);color:var(--surface);font:inherit;font-weight:600;min-height:44px;max-width:calc(100vw - 32px);box-shadow:0 4px 18px #211B1420;cursor:pointer}.floating-build:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.build-entry-status{position:fixed;bottom:calc(var(--build-clearance,96px) + env(safe-area-inset-bottom));right:16px;max-width:calc(100% - 32px);background:var(--surface)}

.preview-action-hint { display:block; color:var(--text-primary); margin-bottom:4px; }
.preview .p-channel-hint { font-size:.85em; color:var(--text-secondary); margin:.3em 0; }

/* Recipe detail: compact size pills and order shortcut directly below metadata. */
.recipe>.tagline{margin-bottom:4px}.recipe-selection-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 8px;margin:0 0 12px}.recipe-selection-row .chips{gap:4px;margin:0}.recipe-selection-row .chip{display:inline-flex;align-items:center;min-height:44px;padding:6px 10px;font-size:max(14px,.875em)}.recipe-selection-row>.jump-to-order{display:inline-flex;align-items:center;min-height:44px;font-size:max(14px,.875em);white-space:nowrap;color:var(--accent)}

/* Upcoming shops stay noninteractive; sourced wordmark provenance lives in brands/provenance.json. */
/* One non-wrapping quick row and authentic official-site symbols in circular badges. */
.quick-filters,.p-quick-filters{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;max-width:100%;min-width:0;align-items:center;padding:4px 3px 12px;white-space:nowrap;overscroll-behavior-x:contain}
.quick-filters>.chip,.p-quick-filters>.chip,.filter-chip-pair{flex:none}.quick-filters .chip,.p-quick-filters .chip{font-size:inherit;gap:6px;background:transparent;border:1px solid var(--separator);min-height:44px;padding:6px 12px;white-space:nowrap}.quick-filters .chip.is-active,.p-quick-filters .chip.is-active,.filter-chip-pair.is-active{background:var(--accent);border-color:var(--accent);color:var(--surface)}
.filter-chip-pair{display:inline-flex;align-items:center;border-radius:999px}.filter-chip-pair .chip{border:0;border-radius:999px 0 0 999px}.filter-chip-clear{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;color:inherit;text-decoration:none;border-radius:0 999px 999px 0}.filter-checkmark{font-size:.85em}.p-quick-filters{flex:none;font-size:.85em;margin:.5em 0}.p-result-count{flex:none;font-size:.85em;color:var(--text-secondary);margin:0 0 .6em}
.brand-strip{display:flex;flex-wrap:nowrap;gap:12px;overflow-x:auto;align-items:flex-start;padding:8px 3px 14px;min-width:0;max-width:100%;overscroll-behavior-x:contain}.brand-entry{display:flex;flex:none;flex-direction:column;align-items:center;gap:6px;min-width:76px;text-decoration:none;color:var(--text-primary)}.brand-badge{display:block;width:64px;height:64px;border:2px solid transparent;border-radius:50%;overflow:hidden;background:var(--surface)}.brand-badge img{display:block;width:100%;height:100%;object-fit:contain}.brand-entry.is-active .brand-badge{border-color:var(--accent);opacity:1}.brand-entry small{font-size:.75em;white-space:nowrap;color:var(--text-secondary)}.brand-entry.is-coming-soon .brand-badge{opacity:.4}.p-brand-strip{flex:none;font-size:.85em;padding:6px 3px}.p-brand-strip .brand-entry{min-width:62px;gap:4px}.p-brand-strip .brand-badge{width:48px;height:48px}
.filter-panel.is-enhanced:not([open]){display:none}.filter-form input[type=number]{font:inherit;min-height:44px;min-width:0;width:100%;padding:8px;border:1px solid var(--separator);border-radius:10px}.filter-form footer{flex-wrap:wrap}.filter-form footer>*{min-width:84px;white-space:normal}.filter-form small{color:var(--text-secondary)}
.preview .p-order-cue{position:relative;display:flex;align-items:center;gap:.5em;margin:.4em 0 .7em;padding:.3em .6em;border:1px solid var(--accent);border-radius:.8em;background:var(--background);font-size:.85em;color:var(--text-secondary)}.preview .p-order-cue[hidden]{display:none}.preview .p-order-cue::before{content:"";position:absolute;top:-5px;left:75%;width:8px;height:8px;transform:rotate(45deg);border-left:1px solid var(--accent);border-top:1px solid var(--accent);background:var(--background)}.preview .p-order-cue button{flex:none;min-width:44px;min-height:44px;padding:0;border:0;background:transparent;color:var(--accent);font:inherit;font-size:1.3em;cursor:pointer}.preview .p-channels button.p-order-cue-target{outline:2px solid var(--accent);outline-offset:-2px}

.preview .p-brand-strip,.preview .p-quick-filters{flex:none}

.brand-wordmark{display:block;width:96px;height:30px;object-fit:contain}.p-brand-strip .brand-wordmark{width:68px;height:22px}

/* Small, contextual first-use hints; completion stays in this browser. */
.floating-build{display:block;width:var(--build-expanded-width,200px);height:var(--build-height,56px);min-height:56px;padding:0;transition:width 260ms cubic-bezier(.2,.7,.2,1)}.build-icon{font-size:24px;line-height:1}.floating-build .build-icon{position:absolute;right:calc((var(--build-height,56px) - 26px)/2);top:50%;transform:translateY(-50%)}.floating-build .build-label{position:absolute;left:20px;right:calc(var(--build-height,56px) - 7px);top:50%;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transform:translateY(-50%);transform-origin:right center;opacity:1;transition:opacity 180ms ease,transform 260ms cubic-bezier(.2,.7,.2,1)}.floating-build.is-collapsed{width:var(--build-height,56px)}.floating-build.is-collapsed .build-label{opacity:0;transform:translateY(-50%) translateX(8px) scaleX(.8)}
.first-use-target{outline:2px solid var(--accent);outline-offset:4px}.first-use-hint{padding:12px 16px;border:1px solid var(--accent);border-radius:16px;background:var(--surface);color:var(--text-primary);font-size:inherit;max-width:100%;margin:8px 0 12px}.first-use-hint p{margin:4px 0 8px;color:var(--text-secondary)}.first-use-actions{display:flex;flex-wrap:wrap;gap:8px}.first-use-actions button{font:inherit;min-height:44px;padding:6px 12px;border:1px solid var(--separator);border-radius:999px;background:transparent;color:var(--accent)}.first-use-hint.is-floating{position:fixed;z-index:21;right:max(16px,env(safe-area-inset-right));bottom:calc(var(--build-clearance,96px) + env(safe-area-inset-bottom));width:min(340px,calc(100vw - 32px));max-height:calc(100dvh - 140px);overflow-y:auto;margin:0}.first-use-hint.is-floating::after{content:"";position:absolute;right:28px;bottom:-5px;width:8px;height:8px;transform:rotate(45deg);border-right:1px solid var(--accent);border-bottom:1px solid var(--accent);background:var(--surface)}
@media(prefers-reduced-motion:reduce){.floating-build,.first-use-hint{transition:none;animation:none}}

.filter-panel.is-enhanced .caffeine-fallback{display:none}

.site:has([data-browser-saved]){display:flex;align-items:center;gap:12px;flex-wrap:wrap}.site:has([data-browser-saved]) .brand{margin-bottom:0}.browser-saved-button{margin-left:auto;border:1px solid var(--separator);border-radius:999px;background:var(--surface,#FFFDF8);color:var(--accent,#2E5339);font:inherit;padding:8px 16px;min-height:44px}.browser-saved-button:focus-visible{outline:3px solid #1B6FB8;outline-offset:3px}

.order-category-icon { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }

.card-comparison{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:6px;align-items:end;border-top:1px solid var(--separator);padding-top:10px;margin-top:10px}.card-comparison-label{display:block;color:var(--text-secondary);font-size:.75em}.card-original,.card-lighter{display:block;font-size:1.25em;font-weight:600;white-space:nowrap}.card-original{color:var(--text-secondary)}.card-lighter{color:var(--accent)}.card-comparison small{font-size:.55em;font-weight:400}.card-comparison-arrow{align-self:center;color:var(--text-secondary)}

.preview .p-card-comparison{display:flex;gap:.4em;align-items:center;justify-content:center;font-size:.85em}.preview .p-card-comparison strong{display:inline;font:inherit;font-weight:650}.preview .p-card-saving{color:var(--accent);font-weight:650}.preview .p-view-swap{color:var(--accent)}.preview .customize-entry{margin:12px 0}.preview .customize-entry .cta{min-width:0;min-height:44px;width:100%}.preview .p-open-calculator{margin:8px 12px 20px;text-align:center;min-height:44px}

/* A contained, static lift highlights the in-person ordering feature. */
.preview [data-scene=person] .p-order{margin:12px 5px 16px;transform:perspective(700px) rotateX(2deg) rotateY(-2deg);transform-origin:center;box-shadow:3px 8px 14px #211b141c,0 1px 2px #211b1426;border-color:var(--accent)}
.landing .no-subscription{margin:10px 0;color:var(--text-secondary);font-size:.875em}
@media(prefers-reduced-motion:reduce){.preview [data-scene=person] .p-order{transform:none}}

/* Native SwapCard: 168pt rail, square focal crop, 12pt inset and 8pt spacing.
   System fonts follow the browser/platform; no Apple font is distributed. */
.swap-card-item{border:0;background:transparent;box-shadow:none}
.card .swap-card,.preview .swap-card{display:block;padding:0;border:0;border-radius:1.066667em;overflow:hidden;background:var(--surface);color:var(--text-primary);text-decoration:none;box-shadow:0 4px 10px #0000000f;font-size:15px}
.card .swap-card.swap-card .swap-hero,.preview .swap-card.swap-card .swap-hero{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;object-position:center 80%;border-radius:0;margin:0;background:var(--separator)}
.swap-card.swap-card .swap-body{display:grid;padding:.8em;gap:.533333em}
.swap-card.swap-card .swap-title{font-size:1em;font-weight:600;line-height:1.333333;min-height:2.666667em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--text-primary)}
.swap-card.swap-card .swap-comparison{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:.533333em;align-items:end;border-top:1px solid var(--separator);padding-top:.533333em;margin:0;font-size:1em}
.swap-card.swap-card .swap-column{display:grid;gap:.133333em;font-size:1em}
.swap-card.swap-card .swap-caption{font-size:.866667em;line-height:1.3;color:var(--text-secondary)}
.swap-card.swap-card .swap-original,.swap-card.swap-card .swap-lighter{font-family:ui-rounded,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-variant-numeric:tabular-nums;line-height:1.2;white-space:nowrap}
.swap-card.swap-card .swap-original{font-size:1.333333em;font-weight:400;color:var(--text-secondary)}
.swap-card.swap-card .swap-lighter{font-size:1.466667em;font-weight:700;color:var(--accent)}
.swap-card.swap-card .swap-arrow{font-size:.866667em;font-weight:600;color:var(--text-secondary);padding-bottom:.3em}
.swap-card.swap-card .swap-saving{font-size:.866667em;font-weight:600;color:var(--accent);line-height:1.3;margin-top:-.307692em}
.swap-card.swap-card .swap-action{display:flex;align-items:center;justify-content:center;gap:.266667em;min-height:2.769231em;margin-top:.266667em;border-radius:999px;background:#e7dfd3b3;font-size:.866667em;font-weight:600;color:var(--text-primary)}
.swap-action svg{width:.533333em;height:.8em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.preview .swap-card{font-size:1em;flex:0 0 11.2em}
.preview .swap-card.swap-card .swap-body,.preview .swap-card.swap-card .swap-column{font-size:1em;color:var(--text-primary)}
body[data-large-text=true] .card .swap-card{font-size:.9375rem}
body[data-large-text=true] .swap-card.swap-card .swap-title{-webkit-line-clamp:unset;min-height:0}
body[data-large-text=true] .swap-card.swap-card .swap-comparison{grid-template-columns:1fr;align-items:start}
body[data-large-text=true] .swap-card.swap-card .swap-arrow{display:block;transform:rotate(90deg);width:1em;padding:0}
.build-icon img{display:block;filter:brightness(0) invert(1);width:20px;height:20px}
.preview .p-calculator img{width:20px;height:20px;filter:brightness(0) invert(1)}
/* Lift the requested in-person order card, while keeping it inside the phone's scrollable viewport. */
.preview [data-scene=person] .p-order{position:relative;margin:16px 10px 36px;transform:perspective(600px) rotateX(7deg) rotateY(-6deg);box-shadow:6px 10px 0 -2px #e7dfd3,8px 18px 18px -4px #211b1450,0 2px 4px #211b1426;border:1px solid var(--accent);overflow:visible}
.preview [data-scene=person] .p-order-start{border-radius:1.2em 1.2em 0 0;background:var(--surface)}
.preview [data-scene=person] .p-order-body{border-radius:0 0 1.2em 1.2em;background:var(--surface)}
@media(prefers-reduced-motion:reduce){.preview [data-scene=person] .p-order{transform:none}}

/* Short visual tap demonstration; never dispatches a click or opens a modal automatically. */
.preview .preview-demo-tap{outline:3px solid var(--surface);outline-offset:-5px;box-shadow:0 0 0 5px #2e533944;transform:scale(.97)}
@media(prefers-reduced-motion:reduce){.preview .preview-demo-tap{transform:none;box-shadow:none;outline:none}}

/* Owner-selected landing typography; official fonts served locally, OFL licenses in /fonts/. */
@font-face{font-family:Fraunces;font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/fraunces-semibold.ttf') format('truetype')}
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/inter-regular.ttf') format('truetype')}
@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/inter-semibold.ttf') format('truetype')}
.landing .intro h1{font-family:Fraunces,Georgia,serif;font-weight:600}
.landing .intro .tagline{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-weight:400}
.landing .intro-action>.cta{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-weight:600}

/* Exact original native floating BuildCupGlyph; present beside the full label too. */
.floating-build .build-icon{display:inline-flex;flex:none}
.build-icon img{width:26px;height:26px}
.preview [data-scene=customize]{padding:3.8em 0 0}

/* Compact signup explanation with readable opt-out/privacy information nearby. */
.waitlist .consent{font-size:max(14px,.875rem)}
.waitlist .waitlist-privacy{display:block;font-size:max(13px,.8125rem);margin-top:3px;line-height:1.35}

/* Compact Discover identity and explicit recipe return, also on direct shared links. */
.site.site-navigation{display:grid;grid-template-columns:minmax(0,1fr);gap:4px 12px;align-items:center;margin-bottom:12px}
.site-navigation .brand{display:inline-flex;align-items:center;gap:8px;margin:0;min-height:44px;font-size:18px;line-height:1.25;text-decoration:none}
.site-navigation .brand img{display:block;flex:none;width:32px;height:32px;border-radius:8px}
.site-navigation .discover-return{grid-column:1/-1;display:inline-flex;align-items:center;justify-self:start;min-height:44px;font-size:14px;font-weight:600;color:var(--accent);text-decoration:none}
.site-navigation a:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:6px}
/* At narrow widths the existing second-card peek is ample; wider phones reveal the third card. */
@media(min-width:360px) and (max-width:599px){.rail:not(.results) .cards>.card{flex-basis:calc((100vw - 64px)/2.2)}}
.recipe-size-status:empty{display:none}
.recipe-size-status{color:var(--text-secondary);font-size:.875em}

/* The native shell's two supported tabs: Discover and browser-local Saved. */
.app-bottom-tabs{position:fixed;bottom:0;left:0;right:0;z-index:25;max-width:720px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;background:var(--background);border-top:1px solid var(--separator);padding:4px env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.app-bottom-tabs a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:60px;color:var(--text-secondary);font-size:.75rem;line-height:1.3;text-decoration:none}
.app-bottom-tabs svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.app-bottom-tabs [aria-current=page]{color:var(--accent);font-weight:700}
.app-bottom-tabs a:focus-visible{outline:3px solid var(--focus);outline-offset:-4px;border-radius:8px}
body.has-app-tabs{padding-bottom:calc(var(--build-clearance,96px) + 68px + env(safe-area-inset-bottom))}
.has-app-tabs .floating-build{bottom:calc(80px + env(safe-area-inset-bottom))}
.has-app-tabs .build-entry-status,.has-app-tabs .first-use-hint.is-floating{bottom:calc(var(--build-clearance,96px) + 68px + env(safe-area-inset-bottom))}
body:has(dialog[open]) .app-bottom-tabs,.app-keyboard-open .app-bottom-tabs{visibility:hidden}
.saved-page .cm-saved-list .cm-saved-card button{display:block;font:inherit;min-height:44px;padding:8px 14px;border:1px solid var(--separator);border-radius:999px;background:var(--surface);color:var(--accent);margin:8px 0}

/* Desktop app pages use a wide gallery and header navigation; phone tabs stay fixed below. */
@media(min-width:1024px){
 body.has-app-tabs{padding-bottom:32px}
 .page.browse,.page.saved-page{max-width:1248px;padding:32px 40px 48px}
 .has-app-tabs>.page>.site-navigation{grid-template-columns:minmax(0,1fr) auto;gap:8px 32px;margin-bottom:28px}
 .has-app-tabs .site-navigation .brand{font-size:20px}
 .has-app-tabs .site-navigation .discover-return{grid-row:2;grid-column:1}
 .has-app-tabs .app-bottom-tabs{position:static;grid-column:2;grid-row:1;margin:0;padding:0;max-width:none;border:0;background:transparent;display:flex;gap:8px}
 .has-app-tabs .app-bottom-tabs a{flex-direction:row;gap:8px;min-height:44px;padding:8px 18px;border-radius:999px;font-size:1rem}
 .has-app-tabs .app-bottom-tabs svg{width:20px;height:20px}
 .has-app-tabs .app-bottom-tabs [aria-current=page]{background:var(--surface);box-shadow:inset 0 0 0 1px var(--separator)}
 .has-app-tabs .floating-build{bottom:24px;right:32px}
 .has-app-tabs .build-entry-status,.has-app-tabs .first-use-hint.is-floating{bottom:var(--build-clearance,96px)}
 .browse .rail:not(.results) .cards{gap:20px}
 .browse .rail:not(.results) .cards>.card{flex-basis:200px}
 .browse .rail.results .cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
 .saved-page .cm-saved-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
 .saved-page .cm-saved-grid .cm-saved-card{grid-template-columns:128px minmax(0,1fr);gap:20px;padding:20px}
 .saved-page .cm-saved-list .cm-saved-card button{margin:0}
}
@media(min-width:1280px){.browse .rail.results .cards{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* Recipe actions follow the app: Customize first, then equally weighted Share and Save. */
.recipe-actions{width:min(520px,100%);margin:24px auto}
.recipe-actions .customize-entry{margin:0 0 12px}.recipe-actions .customize-entry .cta{width:100%;min-height:52px}
.recipe-actions .share{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
.recipe-actions .share .cta{width:100%;min-height:48px;background:#E7EFE4;border:1px solid #C7D7C3;color:#2E5339}
.recipe-actions .share .cta[hidden]{display:none}.recipe-actions .share-status{grid-column:1/-1}
.recipe-actions .share [aria-pressed=true]{border-color:#2E5339;font-weight:700}

/* In-app ordering only: accepted native read-only value capsules. */
.order-card .channel-app, .preview [data-scene=app] .p-order-body{--order-removal:#9C382E}
.order-card .channel-app :is(.item-choice,.item-chip,.item-none),.preview [data-scene=app] .p-setting :is(.item-choice,.item-chip,.item-none){display:inline-block;flex-shrink:0;max-width:100%;padding:.375em .75em;border-radius:999px;font-weight:600;text-align:right;overflow-wrap:anywhere;color:var(--accent)}
.order-card .channel-app .item-choice,.preview [data-scene=app] .p-setting .item-choice{background:color-mix(in srgb,var(--accent) 12%,transparent)}
.order-card .channel-app .item-none,.preview [data-scene=app] .p-setting .item-none{color:var(--order-removal);background:color-mix(in srgb,var(--order-removal) 10%,transparent)}
.order-card .channel-app .item-chip,.preview [data-scene=app] .p-setting .item-chip{background:transparent;outline:.0625em solid color-mix(in srgb,var(--accent) 70%,transparent);outline-offset:-.0625em}
.order-card .channel-app .app-groups>li,.order-card .channel-app .app-groups ul>li{display:flow-root}
.order-card .channel-app .app-groups :is(.item-choice,.item-chip,.item-none){float:right;margin-left:.5em}
.preview [data-scene=app] .p-setting{align-items:center;flex-wrap:wrap}

/* Brief order emphasis stays inside the idle phone demo. */
.preview[data-order-spotlight=true] .phone-main,.preview[data-order-spotlight=true] .phone-rear [data-scene=person]>.p-detail-hero,.preview[data-order-spotlight=true] .phone-rear [data-scene=person]>.p-detail-copy>:not(.p-order):not(.p-heading){filter:grayscale(1)}
@media(prefers-reduced-motion:reduce){.preview[data-order-spotlight=true] .phone-main,.preview[data-order-spotlight=true] .phone-rear [data-scene=person]>.p-detail-hero,.preview[data-order-spotlight=true] .phone-rear [data-scene=person]>.p-detail-copy>:not(.p-order):not(.p-heading){filter:none}}
