:root {
  --scheme: only light;
  color-scheme: var(--scheme);
  --header-height: 75px;
  --brand-row-height: 74px;
  --action: #5b262d;
  --on-action: #fff8ef;
  --action-hover: #73353c;
  --accent-fill: #535837;
  --on-accent: #ffffff;
  --surface-muted: #eee5d5;
  --surface-selected: #eeefdf;
  --surface-checked: #e1e4cc;
  --strong-line: #b2a18f;
  --image-ground: #eadbc6;
  --overlay: #21141284;
  --shadow: #29181330;
  --card-radius: 12px;
  --paper: #f7f1e6;
  --cream: #fcf8ef;
  --ink: #261c18;
  --wine: #5b262d;
  --olive: #535837;
  --muted: #66594e;
  --line: #d7cbbb;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
/* Paint the page and its content separately: mobile forced-dark modes can
   recolor the document canvas while leaving the branded text unchanged. */
html { scroll-behavior: smooth; background: var(--paper); color: var(--ink); }
html, body, main, dialog { color-scheme: var(--scheme); }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
.startup-screen { display: none; }
.startup-pending .startup-screen[hidden] { display: grid !important; position: fixed; inset: 0; z-index: 30; place-items: center; padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)); overflow: hidden; background: var(--paper); color: var(--ink); pointer-events: none; opacity: 1; transition: opacity .22s ease; }
.startup-pending.startup-complete .startup-screen[hidden] { opacity: 0; }
.startup-inner { width: min(100%, 380px); text-align: center; }
.startup-brand.wordmark { width: 154px; margin: 0 auto 10px; }
.startup-art { position: relative; width: min(100%, 330px); height: 292px; margin: 0 auto 24px; }
.startup-dish { position: absolute; top: 5px; right: 0; width: 228px; height: 264px; border: 6px solid var(--cream); border-radius: 120px 120px 70px 70px; overflow: hidden; box-shadow: 0 12px 32px var(--shadow); transform: rotate(5deg); }
.startup-dish img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.startup-dish > span { position: absolute; right: 13px; bottom: 13px; padding: 4px 13px; border-radius: 30px; background: var(--cream); color: var(--wine); font: 1.13rem var(--serif); transform: rotate(-5deg); }
.startup-cup { position: absolute; left: 0; bottom: 0; width: 155px; height: 196px; overflow: hidden; border: 5px solid var(--cream); border-radius: 90px 90px 22px 22px; box-shadow: 0 12px 24px var(--shadow); transform: rotate(-8deg); animation: startup-cup-float 1.7s ease-in-out infinite; }
.startup-cup img { width: 100%; height: 100%; object-fit: cover; }
.startup-pick { position: absolute; left: 8px; top: 25px; max-width: 130px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 30px; background: var(--cream); color: var(--olive); font-size: .68rem; font-weight: 650; transform: rotate(-7deg); }
.startup-title { color: var(--wine); font: 2rem/1.12 var(--serif); letter-spacing: -.035em; }
.startup-subtitle { margin-top: 10px; color: var(--muted); font-size: .87rem; }
.startup-status { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 28px; color: var(--olive); font-size: .72rem; }
.startup-dots { display: inline-flex; gap: 4px; }
.startup-dots i { width: 5px; height: 7px; border-radius: 50%; background: currentColor; transform: rotate(25deg); animation: startup-dot-pulse .9s ease-in-out infinite; }
.startup-dots i:nth-child(2) { animation-delay: .14s; }
.startup-dots i:nth-child(3) { animation-delay: .28s; }
.startup-screen [lang] { display: none; }
[data-startup-language="tr"] .startup-screen [lang="tr"], [data-startup-language="en"] .startup-screen [lang="en"], [data-startup-language="ru"] .startup-screen [lang="ru"] { display: inline; }
@keyframes startup-cup-float { 50% { transform: rotate(-8deg) translateY(-4px); } }
@keyframes startup-dot-pulse { 50% { opacity: .3; } }
@media (max-width: 350px) {
  .startup-art { height: 265px; }
  .startup-dish { width: 205px; height: 240px; }
  .startup-cup { width: 140px; height: 177px; }
  .startup-pick { left: 0; top: 17px; max-width: 114px; }
  .startup-title { font-size: 1.75rem; }
}
@media (max-height: 640px) {
  .startup-brand.wordmark { width: 115px; margin-bottom: 0; }
  .startup-art { height: 230px; width: 280px; max-width: 100%; margin-bottom: 17px; }
  .startup-dish { width: 190px; height: 215px; }
  .startup-cup { width: 125px; height: 158px; }
  .startup-pick { left: 0; top: 12px; max-width: 110px; }
  .startup-title { font-size: 1.6rem; }
  .startup-status { margin-top: 16px; }
}
@media (max-height: 450px) {
  .startup-inner { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; width: min(100%, 520px); gap: 7px 24px; }
  .startup-art { grid-column: 1; grid-row: 1 / 5; width: 190px; height: 200px; margin: 0; }
  .startup-dish { width: 145px; height: 174px; }
  .startup-cup { width: 94px; height: 120px; }
  .startup-pick { top: -12px; left: 0; font-size: .58rem; }
  .startup-brand.wordmark, .startup-title, .startup-subtitle, .startup-status { grid-column: 2; margin: 0; }
  .startup-brand.wordmark { width: 104px; margin-inline: auto; }
  .startup-subtitle { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .startup-pending .startup-screen[hidden] { transition: none; }
  .startup-cup, .startup-dots i { animation: none; }
}
main, .hero, .menu, .footer { background-color: var(--paper); color: var(--ink); }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .48; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
img { display: block; width: 100%; height: auto; }
.shell { width: min(1240px, calc(100% - 104px)); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; top: 8px; left: 8px; padding: .7em 1em; background: var(--cream); }
.top { position: sticky; top: 0; z-index: 4; background: var(--paper); border-bottom: 1px solid var(--line); }
section[id] { scroll-margin-top: var(--header-height); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--brand-row-height); }
.wordmark { display: inline-block; flex: none; width: 119px; }
.main-nav, .top-actions { display: flex; align-items: center; gap: clamp(13px, 2.7vw, 37px); }
.main-nav a { color: var(--muted); font-size: .85rem; font-weight: 550; padding-block: 11px; }
.main-nav a:hover { color: var(--wine); text-decoration: underline; text-underline-offset: 4px; }
.top-actions { gap: 12px; }
.languages { display: flex; align-items: center; gap: 2px; }
.languages button { min-width: 44px; min-height: 44px; border: 1px solid transparent; border-radius: 100px; background: transparent; color: var(--muted); font-size: .75rem; font-weight: 700; }
.languages button[aria-pressed="true"] { background: var(--action); color: var(--on-action); }
.bag-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 100px; background: transparent; color: var(--wine); }
.bag-button { padding-inline: 11px; font-size: .875rem; font-variant-numeric: tabular-nums; }
.bag-button:hover, .icon-button:hover { background: var(--cream); border-color: var(--wine); }
.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(30px, 6vw, 88px); align-items: center; padding-block: clamp(22px, 4vw, 54px) clamp(26px, 4vw, 50px); }
.hero-copy { padding-bottom: 1.45rem; }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--olive); font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .17em; }
.eyebrow-line { width: 28px; height: 1px; flex: none; background: currentColor; }
.middot { opacity: .72; }
.hero h1 { margin-block: .85rem 1rem; color: var(--wine); font-size: clamp(3.1rem, 5.5vw, 5.6rem); line-height: .99; letter-spacing: -.065em; }
.hero h1 em { color: var(--olive); font-weight: inherit; }
.hero-intro { max-width: 31ch; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.15rem); }
.hero-actions, .visit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 1.8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .66rem; min-height: 48px; padding: .6rem 1rem; border: 1px solid transparent; border-radius: 100px; font-size: .875rem; font-weight: 700; }
.primary { background: var(--action); color: var(--on-action); }
.primary:hover { background: var(--action-hover); }
.quiet { background: transparent; border-color: var(--line); color: var(--wine); }
.quiet:hover { border-color: var(--wine); }
.quick-choice { margin-top: 1.5rem; }
.quick-options { display: flex; flex-wrap: wrap; gap: 7px; margin-top: .5rem; }
.quick-result { display: grid; grid-template-columns: clamp(68px, 9vw, 116px) minmax(0, 1fr); align-items: start; gap: .8rem; margin-top: .7rem; padding: .75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); }
.quick-result img { aspect-ratio: 1; object-fit: cover; border-radius: 5px; }
.quick-result h3 { color: var(--wine); font-size: 1.35rem; line-height: 1.14; }
.quick-result p { color: var(--muted); font-size: .86rem; margin-top: .28rem; }
.quick-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; margin-block: .35rem .5rem; }
.quick-price > span:last-child { color: var(--olive); font-size: .79rem; font-weight: 700; white-space: nowrap; }
.quick-result .button { min-height: 44px; max-width: 100%; }
.hero-figure { position: relative; min-width: 0; }
.hero-image { padding: 7px; border: 1px solid var(--strong-line); border-radius: 46% 46% 4px 4px / 21% 21% 4px 4px; overflow: hidden; }
.hero-image img { height: auto; aspect-ratio: 1.65; object-fit: cover; object-position: center 64%; border-radius: inherit; }
.hero-stamp { position: absolute; left: -28px; bottom: 63px; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 99px; height: 99px; background: var(--cream); color: var(--wine); border: 1px solid var(--wine); border-radius: 50%; outline: 1px solid var(--wine); outline-offset: -6px; transform: rotate(-10deg); font: 400 .76rem/1.05 var(--serif); letter-spacing: .065em; }
.hero-stamp svg { width: 36px; height: 22px; color: var(--olive); }
figcaption { display: flex; align-items: center; gap: 12px; padding-top: 9px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.caption-rule { flex: 1; height: 1px; background: var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 28px; }
.section-head h2, .visit h2 { color: var(--wine); font-size: clamp(2.5rem, 5.1vw, 4.75rem); line-height: 1; letter-spacing: -.05em; margin-top: .55rem; }
.section-head > p { max-width: 34ch; color: var(--muted); }
.prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .5rem; font-variant-numeric: tabular-nums; }
.prices strong { color: var(--wine); font-family: var(--serif); font-size: 1.18rem; font-weight: 700; white-space: nowrap; }
.prices del { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.menu { padding-block: clamp(24px, 3.8vw, 52px) clamp(44px, 6vw, 76px); border-top: 1px solid var(--line); overflow-anchor: none; }
.menu-tools { position: sticky; top: var(--header-height); z-index: 2; background: var(--paper); padding: 8px 0 5px; }
.menu-controls { display: flex; align-items: center; gap: 12px; }
.search { display: flex; align-items: center; flex: 1; gap: 12px; min-width: 0; padding: 0 6px 0 13px; min-height: 52px; background: var(--cream); border: 1px solid var(--line); border-radius: 6px; color: var(--olive); }
.search:focus-within { border-color: var(--wine); }
.search input { width: 100%; min-width: 0; height: 48px; border: 0; outline: none; color: var(--ink); background: transparent; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input::-webkit-search-cancel-button { display: none; }
.search .icon-button { border-color: transparent; }
.filters { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: thin; padding: 10px 4px 7px; margin-inline: -4px; }
.filters button, .quick-options button { min-height: 44px; padding: .48rem .9rem; border: 1px solid var(--line); background: transparent; border-radius: 100px; white-space: nowrap; color: var(--wine); font-size: .84rem; font-weight: 650; }
.filters button[aria-pressed="true"], .quick-options button[aria-pressed="true"] { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.filters button:hover:not([aria-pressed="true"]), .quick-options button:hover:not([aria-pressed="true"]) { border-color: var(--olive); }
.result-meta { font-size: .83rem; color: var(--muted); padding-block: 11px 5px; }
.group-note { margin-bottom: .75rem; color: var(--muted); font-size: .86rem; }
.illustration-label { position: absolute; right: .6rem; bottom: .6rem; padding: .15rem .42rem; border-radius: 4px; background: var(--cream); color: var(--muted); font-size: .69rem; line-height: 1.4; }
.menu-note, .empty { color: var(--muted); font-size: .86rem; margin-top: 22px; }
.empty { grid-column: 1 / -1; border: 1px dashed var(--strong-line); border-radius: 6px; background: var(--cream); padding: 18px; }
.visit { background: var(--surface-muted); border-block: 1px solid var(--line); overflow: hidden; }
.visit-inner { display: grid; grid-template-columns: 1fr minmax(100px, 255px); align-items: center; gap: 18px; min-height: 306px; padding-block: 32px; }
.visit-inner img { max-height: 320px; object-fit: contain; mix-blend-mode: multiply; }
.visit-art figcaption { justify-content: center; text-align: center; }
.visit address { margin-top: 1rem; color: var(--muted); font-style: normal; }
.visit address a, .visit-hours a { text-decoration: underline; text-underline-offset: .18em; }
.visit-hours { margin-top: .85rem; color: var(--muted); font-size: .86rem; }
.visit-actions { margin-top: 1.1rem; }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; padding-block: 27px; color: var(--olive); font-size: .77rem; text-transform: uppercase; letter-spacing: .13em; }
#open-feedback { max-width:100%; min-width:0; letter-spacing:normal; text-transform:none; white-space:normal }
.footer .wordmark { width: 93px; }
dialog { margin: 0 0 0 auto; width: min(460px, 100%); max-width: none; height: 100%; max-height: none; border: 0; border-left: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: clamp(18px, 5vw, 28px); overflow-y: auto; }
dialog::backdrop { background: var(--overlay); }
.cart-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.cart-header h2 { color: var(--wine); font-size: clamp(2rem, 5.2vw, 3rem); line-height: 1.1; margin-top: .35rem; }
.cart-note { margin-block: 14px; color: var(--muted); }
.cart-row { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 5px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.cart-row h3 { font-size: 1.11rem; line-height: 1.2; color: var(--wine); overflow-wrap: anywhere; }
.cart-row small { display: block; margin-top: .35rem; color: var(--muted); overflow-wrap: anywhere; }
.cart-row strong { align-self: end; white-space: nowrap; color: var(--wine); }
.quantity { display: flex; align-items: center; gap: 8px; }
.quantity .icon-button { min-height: 44px; min-width: 44px; }
.cart-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); }
.cart-total strong { color: var(--wine); font-size: 1.55rem; }
.cart-actions { display: grid; gap: .55rem; margin-top: 1rem; }
#waiter { width: 100%; margin: 0; padding: 0; border: 0; }
.waiter-inner { width: min(640px, calc(100% - 36px)); margin-inline: auto; padding-bottom: 2rem; }
.waiter-toolbar { position: sticky; top: 0; padding-block: .75rem; margin-bottom: .8rem; background: var(--paper); }
.waiter-toolbar .icon { transform: rotate(180deg); }
#waiter-title { color: var(--wine); font-size: clamp(2rem, 8vw, 3.4rem); line-height: 1.05; margin-block: .5rem; }
.waiter-note { color: var(--muted); }
.waiter-items { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.waiter-items li { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: start; gap: .55rem .8rem; padding-block: .85rem; border-top: 1px solid var(--line); }
.waiter-items li strong, .waiter-quantity, .waiter-price { color: var(--wine); font-size: clamp(1.05rem, 4.8vw, 1.45rem); font-weight: 750; line-height: 1.25; }
.waiter-items li strong { overflow-wrap: anywhere; }
.waiter-items li p { color: var(--muted); font-size: .95rem; margin-top: .25rem; }
.waiter-quantity, .waiter-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.waiter-total { margin-top: .45rem; font-size: 1.12rem; }
.waiter-total strong { font-size: clamp(1.65rem, 6vw, 2.35rem); }
@media (max-width: 1000px) {
  .shell { width: calc(100% - 64px); }
}
@media (max-width: 760px) {
  :root { --header-height: 69px; --brand-row-height: 68px; }
  .shell { width: calc(100% - 36px); }
  .top-inner { gap: 10px; }
  .top-actions { gap: 6px; }
  .wordmark { width: 99px; }
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 17px; padding-top: 24px; padding-bottom: 23px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(3rem, 11vw, 5.25rem); margin-block: .78rem .92rem; }
  .hero-actions { margin-top: 1.15rem; }
  .hero-stamp { left: auto; right: 12px; bottom: 48px; width: 81px; height: 81px; font-size: .65rem; }
  .hero-image img { aspect-ratio: 2.15; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 17px; gap: .65rem; }
}
@media (max-width: 430px) {
  .shell { width: calc(100% - 28px); }
  .hero h1 { font-size: clamp(2.75rem, 11vw, 4rem); }
  .search { padding-left: 9px; gap: 7px; }
  .menu-controls { gap: 7px; }
  .visit-inner { grid-template-columns: 1fr; }
  .visit-art { display: none; }
}
@media (max-width: 350px) {
  .top-inner { gap: 4px; }
  .top-actions { gap: 2px; }
  .top .wordmark { width: 80px; }
  .top .bag-button { position: relative; padding: 0; }
  .top .bag-button [data-count] {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 17px;
    padding: 1px 3px;
    border-radius: 20px;
    background: var(--action);
    color: var(--on-action);
    font-size: .62rem;
    line-height: 1.4;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-height: 450px) {
  .top, .menu-tools { position: static; }
  .feed-post { scroll-margin-top: 12px; }
  section[id] { scroll-margin-top: 0; }
}

.stories { display: flex; gap: clamp(11px, 3.5vw, 29px); overflow-x: auto; padding: 5px 4px 13px; margin-inline: -4px; scrollbar-width: thin; }
.story { display: grid; justify-items: center; align-content: start; flex: 0 0 76px; gap: .42rem; padding: 0; border: 0; background: transparent; color: var(--wine); font-size: .75rem; line-height: 1.2; font-weight: 650; text-align: center; }
.story-ring { display: grid; place-items: center; width: 66px; aspect-ratio: 1; padding: 3px; border: 1px solid var(--wine); border-radius: 50%; }
.story-ring img { aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: var(--image-ground); }
.story:hover .story-ring { border-color: var(--olive); box-shadow: 0 0 0 1px var(--olive); }
.saved-filter { min-height: 52px; background: var(--cream); border-radius: 6px; }
.saved-filter[aria-pressed="true"] { background: var(--action); border-color: var(--wine); color: var(--on-action); }
.saved-filter[aria-pressed="true"] .icon, .save-post[aria-pressed="true"] .icon { fill: currentColor; }
.feed-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 23px); }
.feed-post { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--cream); scroll-margin-top: calc(var(--header-height) + 130px); }
.post-top { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; min-height: 48px; padding: .44rem .65rem; color: var(--olive); font-size: .75rem; font-weight: 700; }
.post-mark { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; color: var(--on-accent); background: var(--accent-fill); }
.post-mark svg { width: 16px; height: 12px; }
.pinned { margin-inline-start: auto; padding: .14rem .44rem; border-radius: 20px; background: var(--surface-muted); color: var(--wine); font-size: .7rem; }
.post-media { display: block; position: relative; width: 100%; padding: 0; border: 0; background: var(--image-ground); }
.post-media:focus-visible { outline-offset: -4px; }
.post-media img, .viewer-photo img { aspect-ratio: 1.2; object-fit: cover; }
.post-body { display: flex; flex-direction: column; flex: 1; gap: .35rem; padding: .76rem; }
.post-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .75rem; }
.post-heading h3, .post-heading h2 { color: var(--wine); font-size: clamp(1.17rem, 2vw, 1.56rem); line-height: 1.1; overflow-wrap: anywhere; }
.post-heading .prices { margin-inline-start: auto; justify-content: flex-end; }
.post-description { color: var(--muted); font-size: .85rem; }
.nutrition-link { display: inline-flex; align-items: center; gap: .4rem; width: fit-content; max-width: 100%; min-height: 44px; padding: .3rem 0; border: 0; background: transparent; color: var(--olive); text-align: start; font-size: .78rem; }
.nutrition-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.nutrition-preview { width: 100%; justify-content: space-between; margin-block: .25rem; padding: .55rem .65rem; border-radius: 8px; background: var(--surface-muted); line-height: 1.4; }
.nutrition-preview > span { min-width: 0; }
.nutrition-preview .icon { flex: none; width: 16px; height: 16px; }
.nutrition-kcal { display: block; color: var(--wine); font-size: .83rem; font-variant-numeric: tabular-nums; }
.nutrition-kcal small { font-size: .7rem; font-weight: 400; color: var(--muted); }
.nutrition-preview-label { display: block; margin-top: .12rem; font-size: .72rem; }
.nutrition-feed-note { max-width: 72ch; margin: -.15rem 0 .9rem; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.nutrition-panel > summary { scroll-margin-top: 82px; }
.nutrition-loading { color: var(--muted); font-size: .8rem; }
.nutrition-panel { margin-block: .3rem; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); color: var(--ink); overflow-wrap: anywhere; }
.nutrition-panel > summary { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .7rem; min-height: 50px; padding: .7rem .8rem; cursor: pointer; color: var(--wine); font-size: .85rem; font-weight: 650; list-style: none; }
.nutrition-panel > summary::-webkit-details-marker { display: none; }
.nutrition-panel > summary::after { content: '+'; margin-inline-start: auto; font-size: 1.2rem; }
.nutrition-panel[open] > summary::after { content: '−'; }
.nutrition-energy { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .25rem; color: var(--olive); font-size: .8rem; font-variant-numeric: tabular-nums; }
.nutrition-energy small { font-size: .68rem; font-weight: 400; }
.nutrition-content { display: grid; gap: .85rem; padding: 0 .8rem .85rem; font-size: .82rem; line-height: 1.5; }
.nutrition-content h3 { margin-bottom: .2rem; color: var(--wine); font-family: var(--sans); font-size: .8rem; font-weight: 750; }
.nutrition-content p + p { margin-top: .6rem; }
.nutrition-portion { color: var(--olive); }
.nutrition-origin { display: block; margin-top: .2rem; color: var(--muted); font-size: .72rem; }
.nutrition-note { color: var(--muted); font-size: .72rem; border-top: 1px solid var(--line); padding-top: .65rem; }
.nutrition-changed { padding: .5rem; background: var(--surface-selected); border-radius: 6px; }
.nutrition-basis { color: var(--muted); font-size: .72rem; }
.nutrition-basis summary { cursor: pointer; min-height: 32px; padding-block: .25rem; }
.nutrition-basis p { margin-top: .4rem; }
.nutrition-sources a { text-decoration: underline; text-underline-offset: 2px; }
.post-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .45rem; }
.post-actions .icon-button { border: 1px solid transparent; }
.post-actions .icon-button:hover { border-color: var(--line); }
.post-actions .post-add { min-height: 44px; margin-inline-start: auto; padding-inline: .72rem; }
.more-posts { display: flex; margin: 1.4rem auto 0; }
.selection-bar { display: flex; align-items: center; gap: .55rem; position: fixed; right: clamp(12px, 3vw, 32px); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 5; min-height: 53px; padding: .5rem .9rem; border: 1px solid var(--wine); border-radius: 100px; background: var(--action); color: var(--on-action); box-shadow: 0 5px 18px var(--shadow); font-weight: 650; font-size: .85rem; }
.selection-bar [data-count] { min-width: 1.45rem; border-radius: 50px; padding-inline: .22rem; background: var(--on-action); color: var(--action); }
.selection-bar strong { margin-inline-start: .45rem; white-space: nowrap; }
body:has(.selection-bar:not([hidden])) { padding-bottom: 65px; }
#post-viewer, #share-dialog { width: min(520px, calc(100% - 24px)); height: auto; max-height: calc(100% - 24px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 16px; }
.viewer-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .56rem .9rem; background: var(--paper); border-bottom: 1px solid var(--line); }
#viewer-steps { flex: 1; }
.viewer-item-name { color: var(--wine); font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.story-progress { display: flex; gap: 4px; margin-top: 4px; }
.story-progress span { height: 3px; flex: 1; border-radius: 3px; background: var(--line); }
.story-progress span.read { background: var(--olive); }
.viewer-photo { position: relative; background: var(--image-ground); touch-action: pan-y; }
.viewer-photo img { max-height: 46svh; object-position: center; }
.viewer-body { display: grid; gap: .5rem; padding: .85rem 1rem 1rem; }
.viewer-body h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.related-post { display: flex; gap: .65rem; align-items: center; width: 100%; padding: .42rem .55rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-muted); color: var(--wine); text-align: start; }
.related-post:hover { border-color: var(--wine); }
.related-post img { flex: none; width: 47px; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.related-post small, .related-post strong { display: block; }
.related-post .icon { margin-inline-start: auto; }
.story-controls { display: flex; justify-content: space-between; gap: 8px; padding: 0 1rem 1rem; }
.story-controls .button { min-height: 44px; }
#previous-story .icon { transform: rotate(180deg); }
#share-dialog { padding: 1rem; height: fit-content; }
.share-preview img { width: 100%; height: clamp(120px, 29dvh, 260px); object-fit: contain; background: var(--paper); border-radius: 8px; }
.share-preview figcaption { font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--wine); }
.share-preview { margin: .5rem 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.share-preview img { display: block; height: auto; max-height: 29dvh; border-radius: 0; object-fit: contain; }
.share-preview figcaption { padding: .35rem .85rem .85rem; font-family: var(--serif); font-size: 1.2rem; }
.share-brand { display: block; padding: .8rem .85rem 0; font-size: .65rem; letter-spacing: .08em; color: var(--olive); }
#share-extras { margin-top: 1rem; }
#share-extras summary { color: var(--muted); cursor: pointer; font-size: .85rem; }
.share-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.share-actions .button { flex: 1; }
#share-dialog label { display: block; margin-top: .9rem; }
#share-link { background: var(--cream); color: var(--ink); display: block; width: 100%; min-height: 44px; margin-block: .35rem .65rem; padding: .4rem; border: 1px solid var(--line); border-radius: 6px; }
#share-status { color: var(--olive); margin-top: .5rem; }

@media (max-width: 1080px) {
  .feed-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-media img { aspect-ratio: 1.13; }
}
@media (max-width: 560px) {
  .feed-grid { grid-template-columns: 1fr; }
  .post-body { padding: .82rem; }
  .post-top { padding-inline: .82rem; }
  .post-heading h3 { font-size: 1.44rem; }
  .selection-bar { right: 12px; left: 12px; justify-content: start; }
  .selection-bar strong { margin-inline-start: auto; }
}
@media (max-width: 360px) {
  .saved-filter { padding-inline: .54rem; gap: .32rem; font-size: .77rem; }
}

.service-picker { display: flex; justify-content: space-between; align-items: center; gap: .6rem 1rem; margin-bottom: 1rem; padding: .48rem .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); }
.service-picker[data-active-mode="takeaway"] { background: var(--surface-muted); border-color: var(--strong-line); }
.service-intro { display: flex; align-items: center; gap: .55rem; }
.service-intro strong { color: var(--wine); }
.service-intro p, .take-note { color: var(--muted); font-size: .84rem; }
.service-cup { flex: none; width: 58px; height: 58px; object-fit: cover; border-radius: 7px; transition: transform .2s ease; }
[data-active-mode="takeaway"] .service-cup { transform: rotate(-5deg); }
.service-options { display: flex; flex: none; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 100px; background: var(--paper); }
.service-options button { display: inline-flex; align-items: center; justify-content: center; gap: .25rem; min-height: 44px; padding: .3rem .68rem; border: 1px solid transparent; border-radius: 100px; background: transparent; color: var(--wine); font-size: .83rem; font-weight: 700; white-space: nowrap; }
.service-options button:hover { border-color: var(--wine); }
.service-options button[aria-pressed="true"] { background: var(--action); color: var(--on-action); }
.take-note { margin: 0 0 .45rem; }
#cart-suggestion { margin-block: .7rem 1rem; padding: .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-muted); }
.cart-suggestion-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: .45rem; margin-top: .42rem; color: var(--wine); }
.cart-suggestion-row img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.cart-suggestion-row small { display: block; color: var(--muted); }
.cart-suggestion-row .button { min-height: 44px; padding-inline: .56rem; border-color: var(--strong-line); white-space: nowrap; }
#waiter-take-note { margin-top: .4rem; }

@media (max-width: 520px) {
  .service-picker { align-items: start; flex-direction: column; padding: .5rem; }
  .service-options { width: 100%; }
  .service-options button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .service-cup { transition: none; }
}
.take-post .post-media img { aspect-ratio: 1; }
.take-photo img { aspect-ratio: 1; object-fit: contain; }

/* Product choices and visual order review. */
#configure { width: min(620px, calc(100% - 24px)); height: auto; max-height: calc(100% - 24px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
#configure[open] { display: flex; flex-direction: column; }
.configure-header { display: flex; align-items: center; gap: .5rem; padding: .65rem 1rem; border-bottom: 1px solid var(--line); flex: none; }
.configure-header .order-steps { flex: 1; margin: 0; }
.order-steps { display: flex; justify-content: space-between; gap: .35rem; padding: 0; margin: .95rem 0; list-style: none; color: var(--muted); font-size: .74rem; }
.order-steps li { display: flex; align-items: center; gap: .32rem; }
.order-steps li > span:first-child { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; }
.order-steps li[aria-current="step"] { color: var(--wine); font-weight: 750; }
.order-steps li[aria-current="step"] > span:first-child { background: var(--action); color: var(--on-action); border-color: var(--wine); }
.configure-main { min-height: 0; overflow-y: auto; padding: 1rem; overscroll-behavior: contain; }
.configure-product { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; gap: 1rem; margin-bottom: .65rem; }
.configure-photo { position: relative; }
.configure-photo img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.configure-photo .illustration-label { font-size: .6rem; bottom: 3px; right: 3px; }
.configure-product h2 { color: var(--wine); font-size: clamp(1.6rem, 5vw, 2.15rem); line-height: 1.05; margin-block: .3rem; overflow-wrap: anywhere; }
.configure-product p:not(.eyebrow) { color: var(--muted); font-size: .86rem; margin-bottom: .3rem; }
.choice-field { margin: 1rem 0 0; padding: 0; border: 0; min-width: 0; }
.choice-field legend { font-weight: 750; color: var(--wine); margin-bottom: .45rem; }
.choice-options { display: grid; gap: .4rem; }
.choice-field:has(input[name="serving"]) .choice-options { grid-template-columns: 1fr 1fr; }
.choice-option { display: flex; align-items: center; gap: .6rem; padding: .65rem; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: var(--cream); font-size: .88rem; min-height: 48px; }
.choice-option:has(input:checked) { border-color: var(--olive); background: var(--surface-selected); box-shadow: inset 0 0 0 1px var(--olive); }
.choice-option input { accent-color: var(--accent-fill); flex: none; width: 18px; height: 18px; margin: 0; }
.choice-option span { flex: 1; min-width: 0; }
.choice-option strong { font-weight: 650; }
.choice-option small { display: block; color: var(--muted); margin-top: .15rem; line-height: 1.35; }
.choice-option b { font-weight: 700; color: var(--wine); white-space: nowrap; font-size: .83rem; }
.option-note { margin: 1rem 0 -.5rem; color: var(--olive); font-size: .86rem; }
.configure-quantity { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--line); }
.configure-quantity > span { color: var(--wine); font-weight: 750; }
.configure-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-top: 1px solid var(--line); background: var(--cream); flex: none; }
.configure-total { color: var(--muted); font-size: .8rem; }
.configure-total strong { display: block; color: var(--wine); font-size: 1.45rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.configure-footer .button { max-width: 65%; }
.form-error { color: var(--wine); padding: .7rem 0; }
.cart-row { grid-template-columns: 58px minmax(0, 1fr) auto; gap: .4rem .7rem; align-items: start; padding-block: 1rem; }
.cart-product-image { grid-column: 1; grid-row: 1; }
.cart-product-image img { aspect-ratio: 1; border-radius: 7px; object-fit: cover; }
.cart-product-copy { grid-column: 2 / -1; grid-row: 1; }
.cart-quantity { grid-column: 1 / 3; grid-row: 2; }
.cart-row > strong { grid-column: 3; grid-row: 2; align-self: center; }
.cart-row .line-options, .waiter-items .line-options { color: var(--olive); font-weight: 650; }
.edit-line, .skip-extras { display: inline-block; min-height: 44px; border: 0; padding: .3rem 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; color: var(--wine); font-size: .84rem; }
.cart-checkout { position: sticky; bottom: -28px; background: var(--paper); padding-bottom: .7rem; }
.cart-checkout .cart-actions { margin-top: .1rem; }
.handoff-step { color: var(--olive); font-weight: 700; margin-bottom: .7rem; }
@media (max-width: 430px) {
  .configure-header { padding: .6rem; }
  .configure-main { padding: .8rem; }
  .configure-product { grid-template-columns: 90px minmax(0, 1fr); gap: .65rem; }
  .configure-product .eyebrow { font-size: .62rem; }
  .order-steps { font-size: .68rem; }
  .order-steps li { gap: .24rem; }
  .order-steps li > span:first-child { width: 20px; height: 20px; }
  .configure-footer { gap: .5rem; padding: .65rem .8rem; }
  .cart-checkout { bottom: -22px; }
}
@media (max-height: 450px) {
  .cart-checkout { position: static; }
}

/* A visual checkout with one optional, reversible offer. */
#cart { width: min(680px, 100%); padding: 0; overflow: hidden; }
#cart[open] { display: flex; flex-direction: column; }
.cart-scroll { overflow-y: auto; min-height: 0; flex: 1; padding: 26px 28px 16px; overscroll-behavior: contain; }
#cart .cart-header h2 { max-width: 460px; font-size: clamp(2rem, 6vw, 2.75rem); }
.checkout-intro { margin-block: 1rem 1.5rem; color: var(--muted); font-size: .95rem; }
.checkout-section-label { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; margin-bottom: .7rem; }
.checkout-section-label h3 { font: 700 .85rem var(--sans); color: var(--olive); }
.checkout-section-label small { font-size: .65rem; color: var(--muted); }
#cart .cart-row { grid-template-columns: 104px minmax(0, 1fr) auto; gap: .3rem .85rem; margin-bottom: .65rem; padding: .8rem; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; }
#cart .cart-product-image { grid-row: 1 / 3; }
#cart .cart-product-image img { aspect-ratio: 1; border-radius: 8px; }
#cart .cart-product-copy h3 { font-size: 1.22rem; }
#cart .cart-product-copy { min-width: 0; }
#cart .cart-quantity { grid-column: 2; gap: .4rem; }
#cart .cart-quantity .icon-button { min-width: 44px; min-height: 44px; }
#cart .cart-row > strong { font-size: .94rem; }
.service-tag { display: inline-block !important; width: fit-content; padding: .1rem .45rem; border: 1px solid var(--line); border-radius: 4px; font-size: .7rem !important; color: var(--olive) !important; }
.cart-description { color: var(--muted); font-size: .78rem; margin-top: .4rem; }
#cart .edit-line { min-height: 36px; font-size: .75rem; }
.checkout-back { display: inline-flex; align-items: center; gap: .6rem; background: none; border: 0; min-height: 44px; color: var(--wine); padding: .4rem 0; font-size: .82rem; text-decoration: underline; text-underline-offset: 4px; }
#cart-suggestion { margin-block: 1.4rem .6rem; padding: 1rem; border: 1px solid var(--strong-line); border-radius: 12px; background: var(--surface-selected); }
#cart-suggestion .eyebrow { color: var(--olive); font-size: .65rem; }
.checkout-offer-product { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: .85rem; margin-block: .8rem; align-items: center; }
.checkout-offer-photo { position: relative; }
.checkout-offer-photo img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.checkout-offer-photo .illustration-label { right: 3px; bottom: 3px; font-size: .55rem; }
.checkout-offer-product h3 { color: var(--wine); font-size: 1.4rem; line-height: 1.1; }
.checkout-offer-product p { font-size: .84rem; margin-top: .4rem; }
.checkout-offer-product small { display: block; color: var(--muted); font-size: .75rem; margin-top: .4rem; }
.offer-replacement { font-size: .75rem; color: var(--muted); margin-bottom: .65rem; }
.checkout-offer-toggle { display: flex; align-items: center; gap: .65rem; min-height: 54px; padding: .65rem .75rem; background: var(--cream); border: 1px solid var(--olive); border-radius: 8px; cursor: pointer; color: var(--olive); }
.checkout-offer-toggle input { accent-color: var(--accent-fill); width: 22px; height: 22px; margin: 0; flex: none; }
.checkout-offer-toggle span { flex: 1; font-size: .86rem; font-weight: 700; }
.checkout-offer-toggle strong { white-space: nowrap; font-size: .9rem; }
.checkout-offer-toggle:has(input:checked) { background: var(--surface-checked); }
.offer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem .7rem; margin-top: .45rem; color: var(--muted); }
.offer-bottom small { font-size: .75rem; }
.offer-bottom .skip-extras { font-size: .74rem; }
#cart .cart-checkout { position: static; flex: none; padding: .7rem 28px max(.85rem, env(safe-area-inset-bottom)); background: var(--cream); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px var(--shadow); }
#checkout-savings > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .75rem; }
#checkout-savings > div + div { margin-top: .15rem; }
#checkout-savings del { color: var(--muted); }
.saving-line { color: var(--olive); font-size: .8rem; font-weight: 650; }
#cart .cart-total { border: 0; padding-block: .4rem; font-size: .82rem; }
#cart .cart-total strong { font-size: 1.45rem; }
#show-waiter { min-height: 54px; border-radius: 10px; padding: .75rem 1rem; width: 100%; gap: .6rem; text-align: left; }
#show-waiter > span:first-child { flex: 1; }
#checkout-button-total { white-space: nowrap; font-variant-numeric: tabular-nums; }
.checkout-help { color: var(--muted); text-align: center; font-size: .68rem; line-height: 1.4; margin-top: .5rem; }
.waiter-toolbar { z-index: 1; }
.waiter-toolbar .button { min-height: 44px; font-size: .8rem; padding-inline: .8rem; border-radius: 8px; }
.handoff-step { font-size: .78rem; }
#waiter-title { font-size: clamp(2rem, 7vw, 3.15rem); margin-block: .55rem .8rem; }
.waiter-note { font-size: .85rem; }
.handoff-details { margin-top: 1.5rem; color: var(--olive); font-size: .75rem; font-weight: 650; }
.waiter-items { margin-top: .65rem; }
.waiter-items li { grid-template-columns: 96px minmax(0, 1fr); gap: .8rem; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: .8rem; margin-bottom: .7rem; }
.waiter-photo { position: relative; }
.waiter-photo img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.waiter-quantity { position: absolute; left: 4px; top: 4px; background: var(--cream); border: 1px solid var(--line); padding: .12rem .35rem; border-radius: 5px; font-size: .8rem; }
.waiter-item-copy > strong { display: block; font-size: 1.12rem !important; }
.waiter-item-copy > small { display: block; color: var(--muted); font-size: .75rem; margin-top: .25rem; }
.waiter-items li p { font-size: .8rem; }
.waiter-item-copy .waiter-price { display: block; font-size: 1.1rem; margin-top: .55rem; }
.waiter-total { margin-top: .7rem; }
#waiter-take-note { margin-top: .6rem; font-size: .74rem; }
@media (max-width: 430px) {
  .cart-scroll { padding: 18px 16px 12px; }
  #cart .cart-checkout { padding-inline: 16px; }
  #cart .cart-row { grid-template-columns: 80px minmax(0, 1fr) auto; gap: .25rem .6rem; padding: .65rem; }
  #cart .cart-product-copy h3 { font-size: 1.1rem; }
  #cart .cart-quantity { grid-column: 1 / 3; }
  #cart .cart-product-image { grid-row: 1; }
  #cart .cart-row > strong { font-size: .92rem; }
  .checkout-offer-product { grid-template-columns: 86px minmax(0, 1fr); gap: .65rem; }
  .checkout-offer-product h3 { font-size: 1.2rem; }
  .checkout-offer-product p { font-size: .8rem; }
  #cart-suggestion { padding: .8rem; }
  .waiter-items li { grid-template-columns: 80px minmax(0, 1fr); }
}
@media (max-height: 450px) {
  #cart { overflow-y: auto; }
  #cart[open] { display: block; }
  .cart-scroll { overflow-y: visible; }
}

/* Keep discovery simple; preferences and customization open only on request. */
.settings-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px; background: transparent; color: var(--wine); font-size: .76rem; font-weight: 700; }
.settings-button:hover { background: var(--cream); }
#settings { width: min(460px, calc(100% - 24px)); height: auto; max-height: calc(100% - 24px); margin: auto; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
#settings .cart-header h2 { font-size: 1.8rem; }
#settings h3 { margin: 24px 0 8px; color: var(--olive); font: 700 .9rem var(--sans); }
#settings .languages { gap: 10px; }
#settings .languages button { flex: 1; border-color: var(--line); }
#settings .appearance-bar { display: block; margin: 24px 0; padding: 0; border: 0; }
#settings .appearance-label { display: block; color: var(--olive); font: 700 .9rem var(--sans); letter-spacing: 0; margin-bottom: 8px; }
#settings .appearance-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#settings .appearance-options button { padding-inline: 8px; border-color: var(--line); font-size: .8rem; }
#settings .appearance-options .icon { display: block; }
#done-settings { width: 100%; margin-top: 16px; }
.settings-visit { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.menu-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.menu-toolbar .service-options { width: auto; }
.menu-utilities { display: flex; gap: 4px; }
.menu-utilities .icon-button { min-height: 44px; min-width: 44px; border-radius: 50%; }
.menu-utilities .saved-filter { padding: 0; background: transparent; }
.menu-utilities .saved-filter[aria-pressed="true"] { background: var(--action); }
#toggle-search[aria-expanded="true"] { background: var(--surface-muted); border-color: var(--wine); }
#search-panel { margin-top: 8px; }
#take-note { margin-block: 8px 0; }
.configure-header { justify-content: space-between; }
.customize-item { justify-self: start; padding: .3rem 0; min-height: 44px; background: none; border: 0; color: var(--wine); text-decoration: underline; text-underline-offset: 3px; font-size: .85rem; }
.added-notice { position: fixed; right: clamp(12px, 3vw, 32px); bottom: max(77px, calc(env(safe-area-inset-bottom) + 65px)); z-index: 5; width: min(430px, calc(100% - 24px)); display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border: 1px solid var(--strong-line); border-radius: 12px; background: var(--cream); color: var(--ink); box-shadow: 0 4px 16px var(--shadow); font-size: .8rem; }
#added-message { flex: 1; min-width: 0; }
#edit-added { border: 0; min-height: 44px; background: transparent; color: var(--wine); padding: 0 4px; font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
.added-notice .icon-button { flex: none; }
body:has(dialog[open]) .added-notice { visibility: hidden; }

.focaccia-teaser { display: flex; align-items: center; gap: .85rem; width: 100%; padding: .7rem .85rem; margin: .15rem 0 1rem; border: 1px solid var(--strong-line); border-radius: 12px; background: var(--surface-selected); text-align: start; }
.focaccia-teaser:hover { border-color: var(--wine); }
.focaccia-teaser-photo { flex: none; width: 84px; }
.focaccia-teaser-photo img { height: 68px; object-fit: cover; border-radius: 8px; }
.focaccia-teaser-copy { flex: 1; min-width: 0; }
.focaccia-teaser-copy small, .focaccia-teaser-copy strong, .focaccia-teaser-copy > span { display: block; }
.focaccia-teaser-copy small { color: var(--olive); font-size: .68rem; }
.focaccia-teaser-copy strong { color: var(--wine); font: 1.2rem/1.2 var(--serif); margin-block: .15rem; }
.focaccia-teaser-copy > span { color: var(--muted); font-size: .76rem; }
.focaccia-teaser > .icon { color: var(--wine); }
#focaccia-promo { width: min(480px, calc(100% - 24px)); height: fit-content; max-height: calc(100dvh - 24px); margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
#focaccia-promo[open] { display: flex; flex-direction: column; }
.focaccia-header { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex: none; padding: .4rem .7rem .4rem 1rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.focaccia-header .eyebrow { font-size: .66rem; letter-spacing: .12em; }
.focaccia-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.focaccia-hero { position: relative; display: grid; grid-template-columns: 1.6fr 1fr; gap: 3px; height: clamp(160px, 25dvh, 230px); background: var(--image-ground); }
.focaccia-hero > div { position: relative; min-width: 0; overflow: hidden; }
.focaccia-hero img { width: 100%; height: 100%; object-fit: cover; }
.focaccia-food img { object-position: center; }
.focaccia-drink img { object-position: 55% center; }
.focaccia-drink > span { position: absolute; top: 9px; right: 7px; display: inline-flex; align-items: center; gap: .3rem; max-width: calc(100% - 14px); padding: .25rem .45rem; border-radius: 30px; background: var(--cream); color: var(--wine); font-size: .65rem; font-weight: 650; }
.focaccia-illustration { position: absolute; bottom: 7px; left: 9px; padding: .15rem .4rem; border-radius: 4px; background: var(--cream); color: var(--muted); font-size: .57rem; }
.focaccia-copy { padding: 1rem 1.1rem .85rem; }
.focaccia-copy h2 { color: var(--wine); font-size: clamp(1.65rem, 6vw, 2.15rem); line-height: 1.05; letter-spacing: -.035em; }
.focaccia-intro { margin-top: .65rem; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.focaccia-ingredients { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .75rem; color: var(--olive); font-size: .74rem; line-height: 1.35; }
.focaccia-ingredients > span { flex: 1; }
.focaccia-ingredients > span:last-child { text-align: end; }
.focaccia-ingredients > b { font-size: 1.1rem; }
.focaccia-price { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem .7rem; margin-top: .85rem; }
.focaccia-price > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
.focaccia-price small { flex-basis: 100%; color: var(--muted); font-size: .66rem; }
.focaccia-price strong { color: var(--wine); font: 700 2rem/1.1 var(--serif); white-space: nowrap; }
.focaccia-price del { color: var(--muted); font-size: .8rem; }
.focaccia-price > span { color: var(--olive); background: var(--surface-selected); padding: .3rem .55rem; border-radius: 30px; font-size: .72rem; font-weight: 650; }
.focaccia-note { margin-top: .7rem; color: var(--muted); font-size: .67rem; line-height: 1.4; }
.focaccia-replacement { margin-top: .65rem; padding: .5rem .6rem; border-radius: 7px; background: var(--surface-selected); color: var(--olive); font-size: .72rem; line-height: 1.4; }
.focaccia-footer { flex: none; padding: .75rem 1rem .35rem; border-top: 1px solid var(--line); background: var(--cream); }
#accept-focaccia { width: 100%; min-height: 50px; gap: .55rem; font-size: .88rem; }
#accept-focaccia strong { margin-inline-start: auto; white-space: nowrap; }
.focaccia-later { display: block; min-height: 44px; width: 100%; padding: .35rem; border: 0; background: none; color: var(--muted); font-size: .79rem; text-decoration: underline; text-underline-offset: 3px; }
.focaccia-undo { display: flex; align-items: center; gap: .8rem; padding: .4rem .6rem; margin-block: .7rem; background: var(--surface-selected); color: var(--olive); border-radius: 8px; font-size: .76rem; }
.focaccia-undo > span { flex: 1; }
.focaccia-undo > button { min-height: 44px; border: 0; background: none; color: var(--wine); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 350px) {
  .focaccia-teaser { gap: .55rem; padding: .6rem; }
  .focaccia-teaser-photo { width: 64px; }
  .focaccia-teaser-copy strong { font-size: 1.08rem; }
  .focaccia-copy { padding-inline: .85rem; }
  .focaccia-footer { padding-inline: .8rem; }
  #accept-focaccia { font-size: .78rem; }
}
@media (max-height: 700px) {
  .focaccia-hero { height: 130px; }
  .focaccia-copy { padding: .7rem .85rem; }
  .focaccia-copy h2 { font-size: 1.55rem; }
  .focaccia-intro { display: none; }
  .focaccia-ingredients { margin-top: .5rem; font-size: .69rem; }
  .focaccia-price { margin-top: .5rem; }
  .focaccia-price strong { font-size: 1.7rem; }
  .focaccia-note { margin-top: .45rem; font-size: .62rem; }
}
@media (max-width: 760px) {
  .hero { display: block; padding-block: 14px 12px; }
  .hero .eyebrow { display: none; }
  .hero h1 { font-size: clamp(1.9rem, 8.5vw, 3.4rem); line-height: 1.04; margin-block: 10px; }
  .hero-intro { max-width: 46ch; font-size: .9rem; }
  .hero-figure, .hero-actions { display: none; }
  .menu { padding-top: 12px; }
  .menu .section-head { margin-bottom: 10px; gap: 0; }
  .menu .section-head .eyebrow, .menu .section-head > p { display: none; }
  .menu .section-head h2 { font-size: 1.8rem; margin-top: 0; }
  .menu-tools { padding-top: 4px; }
  .service-options { padding: 2px; }
  .service-options button { font-size: .8rem; }
  .filters { padding-block: 8px 5px; }
  .result-meta { padding-top: 5px; }
  .post-media img { aspect-ratio: 1.5; }
  .added-notice { left: 12px; right: 12px; width: auto; }
}
@media (max-width: 350px) {
  .service-options button { padding-inline: .55rem; font-size: .74rem; }
  .menu-utilities { gap: 2px; }
}

.combo-selectors { display: grid; gap: .55rem; margin-top: .8rem; }
.combo-select { display: grid; gap: .2rem; min-width: 0; color: var(--olive); font-size: .72rem; font-weight: 650; }
.combo-select select { display: block; min-width: 0; width: 100%; min-height: 44px; padding: .55rem .6rem; border: 1px solid var(--strong-line); border-radius: 8px; background: var(--cream); color: var(--ink); font: 400 .8rem var(--sans); text-overflow: ellipsis; }
.combo-select select:focus-visible { outline-offset: 2px; }
.combo-ingredients { margin-top: .4rem; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.combo-advanced { margin-top: .65rem; font-size: .75rem; }
.combo-advanced > summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; color: var(--olive); }
.combo-advanced > summary::after { content: '+'; }
.combo-advanced[open] > summary::after { content: '−'; }
.combo-advanced .combo-select + .combo-select { margin-top: .5rem; }
.combo-price-note { color: var(--muted); font-size: .7rem; margin-top: .35rem; }
#combo-nutrition .nutrition-panel { margin-top: .7rem; }
#combo-nutrition .nutrition-panel > summary { flex-wrap: wrap; font-size: .72rem; gap: .35rem; }

/* Collections and personal pairings */
.discovery-section { min-width: 0; margin: 1rem 0 1.1rem; }
.discovery-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: .6rem; }
.discovery-heading .eyebrow { color: var(--olive); font-size: .63rem; letter-spacing: .06em; }
.discovery-heading h3 { margin-top: .18rem; color: var(--wine); font: 1.45rem/1.1 var(--serif); }
.moment-list, .favorite-list { display: flex; gap: .6rem; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 2px 2px .4rem; scrollbar-width: thin; }
.moment-card { display: flex; flex: 0 0 184px; min-width: 0; padding: .5rem; gap: .55rem; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--ink); text-align: start; scroll-snap-align: start; }
.moment-card[aria-pressed="true"] { border-color: var(--wine); background: var(--surface-selected); box-shadow: inset 0 0 0 1px var(--wine); }
.moment-photo { flex: 0 0 56px; height: 60px; overflow: hidden; border-radius: 8px; background: var(--image-ground); }
.moment-photo img { width: 100%; height: 100%; object-fit: cover; }
.moment-copy { display: flex; flex-direction: column; justify-content: center; gap: .25rem; min-width: 0; }
.moment-copy strong { color: var(--wine); font: 1rem/1.1 var(--serif); }
.moment-copy small { color: var(--muted); font-size: .64rem; line-height: 1.2; }
.favorite-card { position: relative; flex: 0 0 min(340px, 90%); min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); scroll-snap-align: start; }
.favorite-open { display: flex; align-items: center; gap: .7rem; width: 100%; height: 100%; padding: .6rem 2.65rem .6rem .6rem; border: 0; background: transparent; color: var(--ink); text-align: start; }
.favorite-photos { display: grid; flex: 0 0 86px; grid-template-columns: 1fr 1fr; gap: 2px; height: 70px; overflow: hidden; border-radius: 8px; background: var(--image-ground); }
.favorite-photos img { width: 100%; height: 100%; object-fit: cover; }
.favorite-copy { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.favorite-copy strong { color: var(--wine); font: 1rem/1.15 var(--serif); overflow-wrap: anywhere; }
.favorite-copy small { color: var(--muted); font-size: .65rem; line-height: 1.3; }
.favorite-copy b { color: var(--wine); font-size: .75rem; }
.favorite-remove { position: absolute; top: .2rem; right: .2rem; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); }
.favorite-remove .icon { width: 15px; height: 15px; }
.combo-personal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-top: .65rem; }
.combo-personal-actions button { display: flex; align-items: center; justify-content: center; gap: .35rem; min-width: 0; min-height: 44px; padding: .45rem; border: 1px solid var(--strong-line); border-radius: 9px; background: var(--cream); color: var(--wine); font-size: .72rem; font-weight: 650; line-height: 1.15; }
.combo-personal-actions .icon { flex: none; width: 16px; height: 16px; }
.combo-favorite[aria-pressed="true"] { background: var(--surface-selected); border-color: var(--wine); }
.combo-favorite[aria-pressed="true"] .icon { fill: currentColor; }
.combo-budget { font-size: .75rem; }
.combo-budget > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; cursor: pointer; color: var(--olive); }
.combo-budget > summary::after { content: '+'; }
.combo-budget[open] > summary::after { content: '−'; }
.combo-pick-status { margin-top: .4rem; color: var(--olive); font-size: .72rem; line-height: 1.4; }
@media (max-width: 350px) {
  .moment-card { flex-basis: 165px; }
  .moment-photo { flex-basis: 50px; }
  .combo-personal-actions button { font-size: .67rem; }
}

/* An accessible comparison for the focaccia in the menu and pairing. */
.cutaway-preview { position: absolute; z-index: 1; left: .55rem; bottom: .55rem; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .55rem; border: 1px solid rgba(255,255,255,.55); border-radius: 50px; background: rgba(54,30,25,.82); color: #fff; font: 650 .68rem/1.1 var(--sans); }
.look-inside-button { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-block: .35rem; padding: .4rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); color: var(--wine); font: 650 .75rem/1.25 var(--sans); }
.look-inside-button:hover { border-color: var(--wine); }
.viewer-photo.has-cutaway { touch-action: pan-y; }
.cutaway { position: relative; isolation: isolate; width: 100%; aspect-ratio: 3 / 2; max-height: 46svh; overflow: hidden; background: var(--image-ground); user-select: none; }
.viewer-photo .cutaway img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; }
.cutaway-inside { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--cutaway-split)); }
.cutaway-tag { position: absolute; right: .5rem; z-index: 1; max-width: 43%; padding: .22rem .37rem; border: 1px solid rgba(255,255,255,.55); border-radius: 5px; background: rgba(50,27,20,.86); color: #fff; font: 650 .64rem/1.15 var(--sans); text-align: right; text-shadow: 0 1px 2px #24120c; }
.cutaway-tag::before { content: ''; position: absolute; right: 100%; top: 50%; width: 15px; border-top: 1px dashed #fff; }
.cutaway-tag-0 { top: 17%; }
.cutaway-tag-1 { top: 33%; }
.cutaway-tag-2 { top: 45%; }
.cutaway-tag-3 { top: 57%; }
.cutaway-tag-4 { top: 69%; }
.cutaway-divider { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--cutaway-split); width: 2px; transform: translateX(-50%); background: #fff; box-shadow: 0 0 4px rgba(0,0,0,.6); pointer-events: none; }
.cutaway-handle { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 42px; height: 42px; transform: translate(-50%,-50%); border: 1px solid var(--wine); border-radius: 50%; background: #fff9f2; color: #54232c; box-shadow: 0 2px 10px rgba(0,0,0,.25); font: 700 1.2rem/1 var(--sans); }
.cutaway:focus-within .cutaway-handle { outline: 3px solid #fff; outline-offset: 3px; }
.cutaway-range { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; margin: 0; opacity: .001; appearance: none; background: transparent; cursor: ew-resize; touch-action: pan-y; }
.cutaway-range::-webkit-slider-runnable-track { width: 100%; height: 100%; background: transparent; }
.cutaway-range::-webkit-slider-thumb { width: 1px; height: 100%; appearance: none; background: transparent; border: 0; }
.cutaway-range::-moz-range-track { height: 100%; background: transparent; border: 0; }
.cutaway-range::-moz-range-thumb { width: 1px; height: 100%; background: transparent; border: 0; }
.cutaway-art-label { position: absolute; z-index: 4; left: .55rem; bottom: .5rem; padding: .18rem .36rem; border-radius: 4px; background: rgba(255,249,242,.92); color: #56372d; font: .6rem/1.1 var(--sans); pointer-events: none; }
.cutaway-photo-tags {
  position: absolute; z-index: 1; left: 9px; right: 70px; bottom: 29px;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 3px;
  opacity: var(--cutaway-tags-opacity, 1); pointer-events: none;
}
.cutaway-photo-tags span {
  max-width: 100%; padding: .2rem .37rem; border: 1px solid rgba(255,255,255,.65);
  border-radius: 6px; background: rgba(39,25,21,.82); color: #fff;
  font: 650 .62rem/1.18 var(--sans); overflow-wrap: anywhere;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.cutaway-guide { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .6rem; padding: .55rem 1rem .35rem; background: var(--paper); color: var(--ink); }
.cutaway-guide strong { color: var(--wine); font: 1.1rem/1.2 var(--serif); }
.cutaway-guide span { color: var(--muted); font-size: .7rem; }
.cutaway-controls { padding: 0 1rem .3rem; background: var(--paper); }
.cutaway-controls button { min-height: 44px; padding: .4rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); color: var(--wine); font: 650 .72rem/1.25 var(--sans); }
.cutaway-controls button[aria-pressed="true"] { background: var(--surface-selected); border-color: var(--wine); }
.cutaway-legend { display: flex; flex-wrap: wrap; gap: .28rem; padding: 0 1rem .6rem; background: var(--paper); }
.cutaway-legend span { padding: .24rem .42rem; border: 1px solid var(--line); border-radius: 999px; color: var(--olive); font-size: .67rem; line-height: 1.2; }
@media (max-width: 350px) {
  .cutaway-photo-tags { left: 7px; right: 56px; bottom: 28px; gap: 2px; }
  .cutaway-photo-tags span { padding: .17rem .2rem; font-size: .58rem; }
  .cutaway-tag { right: .3rem; padding: .18rem .28rem; font-size: .56rem; }
  .cutaway-tag::before { width: 9px; }
  .cutaway-guide { padding-inline: .75rem; }
  .cutaway-controls { padding-inline: .75rem; }
  .cutaway-legend { padding-inline: .75rem; }
}

/* A compact key overlays plates without pointing at the wrong ingredient. */
.cutaway-annotated img { filter: brightness(.82); }
.cutaway-label-stack { position: absolute; z-index: 1; top: 6%; bottom: 6%; right: .5rem; max-width: 45%; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: .2rem; }
.cutaway-label-stack .cutaway-tag { position: relative; inset: auto; max-width: 100%; }
.cutaway-label-stack .cutaway-tag::before { content: none; }
@media (max-width: 350px) {
  .cutaway-label-stack { right: .3rem; gap: .13rem; }
}

/* Shorts-style social rail: always on the RIGHT of the product photo, without nested buttons. */
.post-media-wrap { position: relative; isolation: isolate; min-width: 0; }
.post-social-rail {
  position: absolute; z-index: 6; top: 50%; right: 8px;
  transform: translateY(-50%); display: flex; flex-direction: column;
  align-items: center; gap: 5px; pointer-events: none;
  color: #fff; font-variant-numeric: tabular-nums;
}
.post-social-rail > * { pointer-events: auto; }
.social-rail-item {
  box-sizing: border-box; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 2px;
  width: 61px; min-height: 49px; padding: 5px 3px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 13px;
  background: rgba(37, 24, 27, .74); color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.16);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  font: 700 .71rem/1.1 var(--sans);
  text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.social-rail-item .icon { width: 21px; height: 21px; flex: none; }
button.social-rail-item { cursor: pointer; transition: background-color .15s, transform .15s; }
button.social-rail-item:hover { background: rgba(52, 32, 37, .94); }
button.social-rail-item:active { transform: scale(.96); }
button.social-rail-item:focus-visible { outline: 3px solid #ffe8aa; outline-offset: 2px; }
.social-rail-like[aria-pressed="true"] .icon { fill: #ec7d8f; color: #ffe1e7; }
.social-rail-share span { max-width: 100%; overflow-wrap: anywhere; font-size: .58rem; font-weight: 600; }
.viewer-photo > .post-social-rail { right: 10px; }
.viewer-photo .cutaway > .post-social-rail { right: 10px; }
.viewer-photo.has-cutaway .cutaway-inside .cutaway-tag { right: 73px; max-width: calc(50% - 45px); }
.viewer-photo.has-cutaway .cutaway-label-stack { right: 73px; max-width: calc(50% - 45px); }
@media (max-width: 760px) {
  .post-social-rail { right: 7px; gap: 4px; }
  .social-rail-item { width: 56px; min-height: 48px; }
  .viewer-photo.has-cutaway .cutaway-inside .cutaway-tag,
  .viewer-photo.has-cutaway .cutaway-label-stack { right: 67px; max-width: calc(50% - 42px); }
}
@media (max-width: 360px) {
  .social-rail-item { width: 52px; min-height: 45px; }
  .social-rail-item .icon { width: 19px; height: 19px; }
  .viewer-photo.has-cutaway .cutaway-inside .cutaway-tag,
  .viewer-photo.has-cutaway .cutaway-label-stack { right: 60px; max-width: calc(55% - 45px); }
}
@media (prefers-reduced-motion: reduce) {
  button.social-rail-item { transition: none; }
}
.engagement-scope-note { margin: 0 0 .8rem; color: var(--muted); font-size: .72rem; line-height: 1.4; }


/* Mobile visual polish: premium editorial spacing with a clear, uncluttered photo. */
.cutaway-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 12px;
  padding: 14px 17px 15px;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.cutaway-details .cutaway-guide {
  display: grid; gap: 4px; min-width: 0; padding: 0;
  background: transparent;
}
.cutaway-details .cutaway-guide strong {
  font: 1.04rem/1.22 var(--serif); color: var(--wine);
}
.cutaway-details .cutaway-guide span {
  max-width: 48ch; font: .76rem/1.45 var(--sans);
  color: var(--muted);
}
.cutaway-details .cutaway-controls {
  padding: 0; background: transparent; align-self: center;
}
.cutaway-details .cutaway-controls button {
  min-height: 42px; padding: .55rem .75rem;
  border: 1px solid var(--strong-line); border-radius: 999px;
  background: var(--cream); color: var(--wine);
  font: 650 .76rem/1.2 var(--sans);
  white-space: nowrap;
}
.cutaway-details .cutaway-controls button:hover {
  border-color: var(--wine); background: var(--surface-muted);
}
.cutaway-details .cutaway-controls button:focus-visible {
  outline: 3px solid var(--wine); outline-offset: 2px;
}
.cutaway-details .cutaway-legend {
  display: flex; flex-wrap: wrap;
  grid-column: 1 / -1; gap: 6px; padding: 0;
  background: transparent;
}
.cutaway-details .cutaway-legend span {
  padding: .27rem .53rem; border: 1px solid var(--line);
  border-radius: 999px; background: var(--cream);
  color: var(--olive); font: .73rem/1.35 var(--sans);
  overflow-wrap: anywhere;
}
.cutaway-annotated img { filter: brightness(.91); }

/* The three Shorts actions stay to the photo's right, not over ingredient text. */
.post-social-rail {
  top: auto; right: 8px; bottom: 12px; transform: none;
  gap: 7px;
}
.social-rail-item {
  width: 50px; min-height: 52px; padding: 5px 4px;
  border-radius: 17px;
  border-color: rgba(255,255,255,.37);
  background: rgba(26,31,29,.68);
  box-shadow: 0 3px 14px rgba(0,0,0,.16);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  font-size: .74rem; line-height: 1.12;
}
.social-rail-item .icon { width: 22px; height: 22px; }
.social-rail-share { min-height: 48px; }
.social-rail-share .icon { width: 24px; height: 24px; }
.social-rail-like[aria-pressed="true"] { background: rgba(93,34,48,.85); }
button.social-rail-item:hover { background: rgba(33,41,37,.91); }
.viewer-photo > .post-social-rail,
.viewer-photo .cutaway > .post-social-rail { top: auto; right: 10px; bottom: 12px; }
.viewer-photo.has-cutaway .cutaway-label-stack { display: none; }

/* Hierarchy and tapping ergonomics in the detail sheet. */
#post-viewer {
  border-radius: 22px;
  box-shadow: 0 18px 65px rgba(34,24,20,.32);
  overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain;
}
.viewer-body {
  gap: .62rem; padding: .98rem 1rem 1.25rem;
}
.viewer-body > .post-heading {
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  align-items: center; gap: .3rem .8rem;
}
.viewer-body > .post-heading h2 {
  min-width: 0; color: var(--wine);
  font-size: clamp(1.24rem,4.9vw,1.68rem);
  line-height: 1.17; letter-spacing: -.025em;
  overflow-wrap: normal;
}
.viewer-body > .post-heading .prices {
  display: flex; flex-direction: column;
  align-items: flex-end; justify-content: center;
  gap: 0; margin: 0; white-space: nowrap;
}
.viewer-body > .post-heading .prices strong { font-size: 1.21rem; line-height: 1.25; }
.viewer-body > .post-heading .prices del { font-size: .76rem; }
.viewer-body > .post-description {
  font-size: .85rem; line-height: 1.5;
}
.viewer-body > .post-actions {
  margin: 0; padding: .4rem 0 .9rem;
  flex-wrap: nowrap; border-bottom: 1px solid var(--line);
}
.viewer-body > .post-actions .save-post {
  min-width: 45px; min-height: 45px;
  border: 1px solid var(--line);
  border-radius: 14px; background: var(--cream);
}
.viewer-body > .post-actions .post-add {
  min-height: 48px; border-radius: 14px; padding-inline: 1.15rem;
}
@media (max-width: 760px) {
  .post-social-rail { right: 8px; bottom: 10px; gap: 6px; }
  .social-rail-item { width: 48px; min-height: 50px; border-radius: 16px; }
  .viewer-photo > .post-social-rail,
  .viewer-photo .cutaway > .post-social-rail { right: 9px; bottom: 10px; }
}
@media (max-width: 560px) {
  .cutaway-details {
    grid-template-columns: 1fr; gap: 9px;
    padding: 12px 15px 14px;
  }
  .cutaway-details .cutaway-controls button { min-height: 40px; }
  .cutaway-details .cutaway-legend { padding-top: 2px; }
}
@media (max-width: 370px) {
  .viewer-body { padding-inline: .83rem; }
  .viewer-body > .post-heading { gap: .45rem; }
  .viewer-body > .post-heading h2 { font-size: 1.16rem; }
  .viewer-body > .post-heading .prices strong { font-size: 1.08rem; }
}
@media (max-width: 360px) {
  .social-rail-item { width: 45px; min-height: 46px; }
  .social-rail-share { min-height: 44px; }
  .social-rail-item .icon { width: 20px; height: 20px; }
}

/* Refine Shorts controls on mobile: icon-only share, no text wrapping or opaque blocks. */
.post-social-rail {
  gap: 7px;
  right: max(9px, env(safe-area-inset-right));
}
.social-rail-item {
  width: 48px;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .32);
  background: rgba(25, 30, 28, .48);
  box-shadow: 0 3px 13px rgba(0, 0, 0, .14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.social-rail-share {
  min-height: 46px;
}
.social-rail-share span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.social-rail-share .icon {
  width: 23px;
  height: 23px;
}
.viewer-photo > .post-social-rail,
.viewer-photo .cutaway > .post-social-rail {
  right: max(9px, env(safe-area-inset-right));
}
@media (max-width: 360px) {
  .social-rail-item { width: 45px; min-height: 46px; }
  .social-rail-share { min-height: 44px; }
}

/* Ingredient preview stays inside the photo at ALL slider positions. It cannot
   collapse at 50% on small screens or collide with the Shorts controls. */
.cutaway-ingredient-card {
  position: absolute;
  z-index: 5;
  top: 9px;
  left: 9px;
  width: max-content;
  max-width: min(220px, calc(100% - 89px));
  min-height: 44px;
  max-height: 66px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .44);
  border-radius: 12px;
  background: rgba(25, 34, 31, .78);
  color: #fff9f1;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .21);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
  font-family: var(--sans);
  text-align: left;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.cutaway-ingredient-card:not(button) { pointer-events: none; }
.cutaway-ingredient-card:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.cutaway-inside-kicker {
  display: block;
  font-size: .6rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #f7e7bf;
}
.cutaway-inside-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: .7rem;
  font-weight: 650;
  line-height: 1.23;
}
.cutaway-inside-more {
  display: block;
  font-size: .62rem;
  font-weight: 700;
  line-height: 1.1;
  color: #f9e1be;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 360px) {
  .cutaway-ingredient-card {
    top: 7px;
    left: 7px;
    max-height: 62px;
    max-width: calc(100% - 78px);
    padding: 6px 7px;
    gap: 2px;
  }
  .cutaway-inside-preview { font-size: .64rem; }
}

/* Product detail declutter: calm photography, one primary CTA and low-friction disclosure.
   Keep functional tap targets while reducing decorative surface area. */
#post-viewer .viewer-header {
  min-height: 52px;
  padding: 4px 13px 4px 17px;
  gap: 8px;
  box-sizing: border-box;
}
#post-viewer #viewer-steps .eyebrow {
  font-size: .67rem;
  letter-spacing: .09em;
  line-height: 1.3;
}
#post-viewer .viewer-header #close-post {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  flex: none;
}
#post-viewer .viewer-header #close-post .icon { width: 20px; height: 20px; }
#post-viewer .viewer-body { gap: .58rem; padding: .85rem .95rem 1.15rem; }
#post-viewer .viewer-body > .post-heading h2 { font-size: clamp(1.2rem, 4.7vw, 1.6rem); }
#post-viewer .viewer-body > .post-actions {
  padding: .24rem 0 .72rem;
  gap: .55rem;
}
#post-viewer .viewer-body > .post-actions .save-post {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 11px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 12px;
  color: var(--olive);
}
#post-viewer .viewer-body > .post-actions .save-post:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 1px;
}
#post-viewer .viewer-body > .post-actions .post-add { min-height: 48px; }
#post-viewer #viewer-nutrition .nutrition-panel {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#post-viewer #viewer-nutrition .nutrition-panel > summary {
  min-height: 46px;
  padding: .55rem 0;
  gap: .25rem .7rem;
  font-size: .83rem;
  font-weight: 650;
}
#post-viewer #viewer-nutrition .nutrition-panel > summary::after {
  font-size: 1.05rem;
  font-weight: 500;
}
#post-viewer #viewer-nutrition .nutrition-content { padding: .3rem 0 .9rem; }
#post-viewer #viewer-nutrition .nutrition-energy { font-size: .7rem; color: var(--muted); }
/* Separate full ingredients from the photo teaser, and keep them collapsed by default. */
#post-viewer .cutaway-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 9px;
  padding: 7px 14px 8px;
  border-bottom: 1px solid var(--line);
}
#post-viewer .cutaway-details .cutaway-guide {
  flex: 1 1 120px;
  display: block;
  font-size: .7rem;
  line-height: 1.35;
  color: var(--muted);
}
#post-viewer .cutaway-details .cutaway-controls { flex: 0 0 auto; padding: 0; }
#post-viewer .cutaway-details .cutaway-controls button {
  min-height: 34px;
  padding: 4px 10px;
  font-size: .68rem;
  line-height: 1.2;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--line);
}
#post-viewer .cutaway-ingredients { width: 100%; min-width: 0; }
#post-viewer .cutaway-ingredients > summary {
  display: flex;
  align-items: center;
  min-height: 35px;
  cursor: pointer;
  color: var(--wine);
  font: 650 .75rem/1.35 var(--sans);
  list-style: none;
  width: fit-content;
}
#post-viewer .cutaway-ingredients > summary::-webkit-details-marker { display: none; }
#post-viewer .cutaway-ingredients > summary::after {
  content: '⌄';
  font-size: 1rem;
  display: inline-block;
  margin-left: 7px;
  transform: translateY(-1px);
}
#post-viewer .cutaway-ingredients[open] > summary::after { transform: rotate(180deg); }
#post-viewer .cutaway-ingredients > summary:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
}
#post-viewer .cutaway-ingredients .cutaway-legend {
  display: flex;
  gap: 5px;
  padding: 5px 0;
}
#post-viewer .cutaway-ingredients .cutaway-legend span {
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: .7rem;
}
#post-viewer .cutaway-ingredient-source {
  display: block;
  margin-top: 3px;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: .67rem;
}
.post-social-rail .social-rail-item {
  width: 45px;
  min-height: 46px;
  padding: 4px 3px;
  border-radius: 14px;
  background: rgba(17, 25, 23, .24);
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: none;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  text-shadow: 0 1px 3px rgba(0,0,0,.82);
}
.post-social-rail .social-rail-item .icon { width: 21px; height: 21px; }
.post-social-rail .social-rail-share { min-height: 45px; }
.post-social-rail button.social-rail-item:active { background: rgba(17,25,23,.45); }
.post-social-rail .social-rail-like[aria-pressed="true"] { background: rgba(100,33,49,.45); }
@media (max-width: 370px) {
  #post-viewer .viewer-header { padding-inline: 11px; }
  #post-viewer .cutaway-details { padding-inline: 10px; gap: 3px 6px; }
  #post-viewer .cutaway-details .cutaway-guide { flex-basis: 98px; font-size: .66rem; }
  #post-viewer .viewer-body { padding-inline: .77rem; }
  .post-social-rail .social-rail-item { width: 44px; min-height: 44px; }
}

/* Native Web Share is the primary one-tap path. This compact sheet is fallback-only. */
#share-dialog.share-quick {
  width: min(390px, calc(100% - 28px));
  max-height: min(520px, calc(100dvh - 30px));
  padding: 16px;
  height: fit-content;
  overflow-y: auto;
  border-radius: 18px;
}
#share-dialog.share-quick .cart-header { margin-bottom: 5px; }
#share-dialog.share-quick #share-title { font-size: clamp(1.28rem, 4vw, 1.55rem); }
.share-quick-item {
  margin: 2px 0 6px;
  color: var(--wine);
  font: 650 .88rem/1.35 var(--sans);
  overflow-wrap: anywhere;
}
.share-quick-hint { color: var(--muted); font: .75rem/1.4 var(--sans); margin-bottom: 10px; }
.share-quick-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.share-quick-grid a {
  display: flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--cream); color: var(--wine);
  font: 650 .82rem/1.2 var(--sans); text-decoration: none;
}
.share-quick-grid a:hover { background: var(--surface-muted); border-color: var(--strong-line); }
.share-quick-grid a:focus-visible { outline: 3px solid var(--wine); outline-offset: 2px; }
.share-channel-symbol {
  display: grid; place-items: center; flex: 0 0 29px;
  width: 29px; height: 29px; border: 1px solid var(--line);
  border-radius: 50%; color: var(--olive);
  font: 750 .84rem/1 var(--sans);
}
#share-dialog.share-quick .share-quick-copy {
  display: block; width: 100%; min-height: 45px;
  margin: 10px 0 0; border-radius: 10px;
}
#share-dialog.share-quick #share-extras {
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line);
}
#share-dialog.share-quick #share-extras summary { min-height: 36px; padding: 8px 0; }
#share-dialog.share-quick #share-status:empty { display: none; }
#share-dialog.share-quick #share-status { margin: 5px 0; font-size: .76rem; line-height: 1.4; }
#share-dialog.share-quick #share-link:not([hidden]) {
  width: 100%; margin: 6px 0 0; border-radius: 8px;
  font-size: .77rem;
}
@media (max-width: 350px) {
  #share-dialog.share-quick { padding: 11px; }
  .share-quick-grid a { padding-inline: 7px; gap: 5px; font-size: .75rem; }
  .share-channel-symbol { width: 25px; height: 25px; flex-basis: 25px; }
}

/* Warm mirror lighting: a quiet ambient border light, not a heavy neon shadow.
   It keeps photos and copy legible in all four appearance themes. */
.feed-post {
  position: relative;
  box-shadow:
    0 0 0 1px rgba(246, 209, 149, .31),
    0 3px 18px rgba(178, 117, 52, .105),
    inset 0 0 0 1px rgba(255, 245, 216, .27);
  transition: box-shadow .22s ease, transform .2s ease;
}
.feed-post::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 238, 190, .28),
              inset 0 0 24px rgba(242, 188, 107, .085);
  pointer-events: none;
}
.feed-post:hover,
.feed-post:focus-within,
.feed-post.is-joy-tapped {
  box-shadow:
    0 0 0 1px rgba(240, 187, 110, .59),
    0 0 24px rgba(240, 169, 70, .19),
    0 6px 19px rgba(165, 107, 44, .12),
    inset 0 0 0 1px rgba(255, 243, 202, .42);
}
@media (hover: hover) and (pointer: fine) {
  .feed-post:hover { transform: translateY(-2px); }
}
.feed-post.is-joy-tapped { animation: pocitel-soft-pop .48s ease-out; }
#post-viewer.is-joy-tapped {
  box-shadow: 0 0 0 2px rgba(243, 183, 93, .44),
              0 0 28px rgba(242, 187, 111, .18),
              0 18px 55px rgba(31, 18, 16, .23);
}
#post-viewer .viewer-photo { box-shadow: inset 0 0 23px rgba(246, 197, 112, .10); }
.is-joy-tapped.social-rail-like[aria-pressed="true"] .icon { animation: pocitel-heart-pop .45s cubic-bezier(.2,.85,.2,1); }
.is-joy-tapped.save-post .icon { animation: pocitel-heart-pop .45s ease-out; }
.is-joy-tapped.post-add { animation: pocitel-soft-pop .40s ease-out; }
.selection-bar.is-joy-tapped { animation: pocitel-order-pulse .52s ease-out; }
.added-notice.is-joy-tapped { animation: pocitel-notice-pop .52s ease-out; }
.added-notice::before {
  content: '✓';
  display: grid;
  place-items: center;
  flex: none;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--surface-checked);
  color: var(--olive);
  font: 800 .85rem/1 var(--sans);
}
.micro-feedback {
  position: fixed;
  z-index: 8;
  left: 50%;
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 73px);
  transform: translateX(-50%);
  width: max-content;
  max-width: min(310px, calc(100% - 36px));
  padding: 9px 17px;
  border: 1px solid rgba(241, 205, 153, .7);
  border-radius: 100px;
  background: var(--cream);
  color: var(--wine);
  box-shadow: 0 0 18px rgba(227, 163, 83, .18), 0 5px 20px var(--shadow);
  font: 650 .83rem/1.35 var(--sans);
  text-align: center;
  pointer-events: none;
}
.micro-feedback.is-visible { animation: pocitel-toast-in .23s ease-out; }
@keyframes pocitel-soft-pop {
  0% { transform: scale(1); }
  40% { transform: scale(.989); }
  75% { transform: scale(1.008); }
  100% { transform: scale(1); }
}
@keyframes pocitel-heart-pop {
  0% { transform: scale(1); }
  43% { transform: scale(1.26); }
  72% { transform: scale(.94); }
  100% { transform: scale(1); }
}
@keyframes pocitel-order-pulse {
  0%, 100% { box-shadow: 0 5px 18px var(--shadow); }
  45% { box-shadow: 0 0 0 4px rgba(238, 190, 113, .25), 0 0 22px rgba(233, 171, 83, .3); }
}
@keyframes pocitel-notice-pop {
  0% { transform: translateY(6px); opacity: .5; }
  80% { transform: translateY(-2px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes pocitel-toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .feed-post, .feed-post:hover { transition: none; transform: none; }
  .feed-post.is-joy-tapped,
  #post-viewer.is-joy-tapped,
  .is-joy-tapped.social-rail-like .icon,
  .is-joy-tapped.save-post .icon,
  .is-joy-tapped.post-add,
  .selection-bar.is-joy-tapped,
  .added-notice.is-joy-tapped,
  .micro-feedback.is-visible { animation: none !important; }
}

/* Quantity edits update the modal in place. The app restores scrollTop after
   redraw, so disable competing browser scroll anchoring in this pane only. */
#cart .cart-scroll { overflow-anchor: none; }

/* Calm pairing progression, grounded in actual preselected menu components. */
.combo-journey {
  display: grid;
  gap: 5px;
  margin-top: .65rem;
  padding: .55rem .65rem .48rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-selected);
}
.combo-journey-meta {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  min-width: 0;
  color: var(--olive);
  font: 600 .68rem/1.35 var(--sans);
}
.combo-journey-meta strong {
  color: var(--wine);
  font-variant-numeric: tabular-nums;
  font-size: .82rem;
  flex: none;
}
.combo-journey-meta span { min-width: 0; }
.combo-journey-bar {
  width: 100%;
  height: 5px;
  display: block;
  border: none;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line);
  color: var(--olive);
  accent-color: var(--olive);
}
.combo-journey-bar::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
.combo-journey-bar::-webkit-progress-value {
  background: linear-gradient(90deg, var(--olive), #bd9758);
  border-radius: 999px;
}
.combo-journey-bar::-moz-progress-bar { background: var(--olive); border-radius: 999px; }
.combo-journey-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .25rem;
  padding: 0;
  margin: 0;
}
.combo-journey-steps li {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .28rem;
  color: var(--muted);
  font: 600 .65rem/1.2 var(--sans);
  overflow-wrap: anywhere;
}
.combo-journey-steps li.is-complete { color: var(--olive); }
.combo-journey-steps li.is-next { color: var(--wine); font-weight: 750; }
.combo-journey-symbol {
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .65rem;
}
.combo-journey-steps .is-complete .combo-journey-symbol {
  background: var(--olive);
  color: var(--on-accent);
  border-color: var(--olive);
}
.combo-journey-steps .is-next .combo-journey-symbol {
  background: var(--cream);
  border-color: var(--wine);
}
.combo-journey-steps .is-just-chosen .combo-journey-symbol {
  animation: combo-journey-pop .38s ease-out;
}
@keyframes combo-journey-pop {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.19); box-shadow: 0 0 9px rgba(213, 167, 93, .32); }
}
@media (max-width: 350px) {
  .combo-journey { padding: .48rem .48rem .44rem; }
  .combo-journey-steps li { font-size: .6rem; gap: .17rem; }
  .combo-journey-symbol { width: 16px; height: 16px; }
  .combo-journey-meta { font-size: .64rem; }
}
@media (prefers-reduced-motion: reduce) {
  .combo-journey-steps .is-just-chosen .combo-journey-symbol { animation: none !important; }
}

/* The order is the only event that earns stage 3/3; reuse the existing undo. */
.focaccia-undo > .combo-done-check {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 35px;
  height: 26px;
  border-radius: 100px;
  padding-inline: 4px;
  background: var(--olive);
  color: var(--on-accent);
  font: 750 .68rem/1 var(--sans);
  font-variant-numeric: tabular-nums;
}

/* Optional local-only diagnostic controls, no advertising trackers. */
.analytics-optin {
  display:flex;align-items:flex-start;gap:.65rem;padding:.7rem .1rem;
  margin:.4rem 0;border-top:1px solid var(--line);color:var(--ink);
  font-size:.78rem;line-height:1.4;
}
.analytics-optin input{flex:0 0 auto;width:19px;height:19px;margin-top:3px;accent-color:var(--wine);}
.analytics-optin span{display:grid;gap:3px;}
.analytics-optin small{color:var(--muted);font-size:.7rem;}
.order-slip-details{border-top:1px solid var(--line);padding:.7rem .3rem;margin-top:.65rem;}
.order-slip-details > summary{color:var(--olive);font-weight:650;min-height:43px;cursor:pointer;font-size:.78rem;}
.order-slip-details .waiter-note{font-size:.72rem;}
.order-slip-details textarea{display:block;width:100%;min-height:58px;padding:.5rem;font-size:.67rem;
  line-height:1.35;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:8px;background:var(--cream);color:var(--ink);resize:vertical;}
.order-slip-details button{min-height:44px;margin:.4rem 0;font-size:.75rem;}
.order-slip-details p[role=status]{font-size:.75rem;color:var(--olive);}
/* Explicit on-site help, opened only by the visitor. */
#feedback{max-width:min(480px,calc(100vw - 32px));padding:24px;overflow-wrap:anywhere}
#feedback label{display:block;margin-block:16px 8px}
#feedback select{width:100%;max-width:100%;min-height:44px;font:inherit}
#feedback button{min-height:44px}
#feedback select:focus-visible{outline:3px solid currentColor;outline-offset:2px}
/* Optional compact menu, adapted from Miora's photo/list choice. */
.menu-view-switch{display:flex;justify-content:flex-end;gap:4px;padding-top:6px}
.menu-view-switch button{min-height:44px;padding:6px 14px;border:1px solid var(--line);border-radius:100px;background:transparent;color:var(--ink);font:inherit;font-size:.8rem}
.menu-view-switch button[aria-pressed="true"]{background:var(--action);color:var(--on-action)}
.list-provenance{display:none}
.feed-grid[data-menu-view="list"]{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.feed-grid[data-menu-view="list"] .feed-post{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;padding:8px;gap:10px}
.feed-grid[data-menu-view="list"] .post-top,
.feed-grid[data-menu-view="list"] .post-social-rail,
.feed-grid[data-menu-view="list"] .cutaway-preview,
.feed-grid[data-menu-view="list"] .illustration-label,
.feed-grid[data-menu-view="list"] .post-description,
.feed-grid[data-menu-view="list"] .look-inside-button,
.feed-grid[data-menu-view="list"] .nutrition-link{display:none}
.feed-grid[data-menu-view="list"] .post-media{border-radius:12px;overflow:hidden}
.feed-grid[data-menu-view="list"] .post-media img{width:92px;height:92px;aspect-ratio:1;object-fit:cover}
.feed-grid[data-menu-view="list"] .post-body{padding:0;gap:4px;min-width:0}
.feed-grid[data-menu-view="list"] .post-heading{flex-direction:column;align-items:flex-start;gap:4px}
.feed-grid[data-menu-view="list"] .post-heading h3{font-size:1rem;overflow-wrap:anywhere}
.feed-grid[data-menu-view="list"] .post-actions{padding:0;gap:4px}
.feed-grid[data-menu-view="list"] .post-add{margin-inline-start:0}
.feed-grid[data-menu-view="list"] .list-provenance:not(:empty){display:block;font-size:.66rem;color:var(--muted)}
.staff-handoff{margin-block:18px;padding-block:12px;border-block:1px solid var(--line)}
.staff-handoff textarea{width:100%;max-width:100%;font:inherit;resize:vertical;margin-block:10px}
.staff-handoff summary{cursor:pointer;min-height:44px;padding-block:12px}
#staff-qr-canvas{display:block;max-width:min(100%,300px);height:auto;margin:12px auto;background:white;image-rendering:pixelated}
@media(max-width:760px){.feed-grid[data-menu-view="list"]{grid-template-columns:minmax(0,1fr)}}
/* Large, complete product pictures in the cart, inspired by Miora's showcase. */
#cart .cart-row{grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;padding:0 0 14px;overflow:hidden}
#cart .cart-product-image{grid-column:1 / -1;grid-row:1;position:relative;background:var(--image-ground);width:100%;min-width:0}
#cart .cart-product-image img{display:block;width:100%;height:clamp(180px,48vw,240px);aspect-ratio:auto;object-fit:contain;border-radius:0}
#cart .cart-product-image .illustration-label{right:8px;bottom:8px;max-width:calc(100% - 16px)}
#cart .cart-product-copy{grid-column:1 / -1;grid-row:2;padding-inline:14px}
#cart .cart-quantity{grid-column:1;grid-row:3;padding-inline-start:14px}
#cart .cart-row > strong{grid-column:2;grid-row:3;padding-inline-end:14px}
.static-ingredients{border:1px solid var(--line);border-radius:12px;padding:12px;margin-block:12px;background:var(--cream)}
.static-ingredients summary{min-height:44px;padding-block:10px;cursor:pointer;font-weight:650}
.static-ingredients ul{margin:8px 0;padding-inline-start:20px;line-height:1.7}
.static-ingredients small{display:block;color:var(--muted);font-size:.75rem}
/* A readable selected card and one explicit, reversible companion offer. */
#cart .cart-row{border-radius:16px;box-shadow:0 3px 16px var(--shadow);margin-block-end:16px}
#cart .cart-product-copy{padding-block:3px;display:grid;gap:7px}
#cart .cart-product-copy h3{font-size:clamp(1.15rem,4.4vw,1.45rem);line-height:1.2}
#cart .cart-product-copy .cart-description{font-size:.84rem;line-height:1.55;margin:0;color:var(--ink)}
#cart .cart-product-copy .service-tag{margin:0}
#cart .cart-product-copy .line-options{display:flex;gap:5px;font-size:.78rem;margin:0}
#cart .cart-product-copy .cart-unit-price{font-size:.77rem;margin:0;color:var(--muted);font-variant-numeric:tabular-nums}
#cart .edit-line{justify-self:start;padding:0;text-underline-offset:3px}
#cart-suggestion{padding:14px;border-radius:16px;background:var(--surface-selected);box-shadow:0 3px 16px var(--shadow)}
.offer-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.offer-heading .eyebrow{margin:0;max-width:100%}
.offer-saving{padding:6px 9px;border-radius:20px;background:var(--cream);color:var(--olive);border:1px solid var(--line);font-size:.75rem;font-weight:700}
#cart-suggestion .checkout-offer-product{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-block:12px}
#cart-suggestion .checkout-offer-photo{width:100%;background:var(--image-ground);border-radius:12px;overflow:hidden}
#cart-suggestion .checkout-offer-photo img{display:block;width:100%;height:clamp(160px,44vw,210px);object-fit:contain;aspect-ratio:auto;border-radius:0}
#cart-suggestion .checkout-offer-product h3{font-size:clamp(1.25rem,5vw,1.65rem);overflow-wrap:anywhere}
#cart-suggestion .checkout-offer-product p{font-size:.87rem;line-height:1.5}
#cart-suggestion .offer-pairing-label{color:var(--olive);font-weight:650}
.offer-price-preview{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-block:12px;font-size:.78rem}
.offer-price-preview span:not([aria-hidden]){display:grid;gap:3px}
.offer-price-preview span:last-child{text-align:end}
.offer-price-preview b{font-size:1.1rem;color:var(--wine);white-space:nowrap}
#cart-suggestion .checkout-offer-toggle{width:100%;justify-content:space-between;min-height:52px;background:var(--action);color:var(--on-action);border:1px solid var(--action);border-radius:12px;font:inherit}
#cart-suggestion .checkout-offer-toggle span{font-size:.86rem;text-align:start}
#cart-suggestion.offer-selected .checkout-offer-toggle{background:var(--cream);color:var(--wine);border-color:var(--line)}
#cart-suggestion .offer-bottom{gap:10px;min-height:44px}
#cart-suggestion .skip-extras{min-height:44px;margin-inline-start:auto;font-size:.8rem}

/* Product-led home: manual choices, full dish imagery and one clear next step. */
.signature-home { gap: clamp(24px,5vw,70px); padding-block:40px 46px; }
.signature-home .hero-copy { padding:0; }
.signature-home h1 { font-size:clamp(2.5rem,4.8vw,4.6rem); line-height:1.05; letter-spacing:-.05em; }
.signature-home .hero-intro { max-width:34ch; font-size:1rem; line-height:1.6; }
.signature-home .hero-actions { display:flex; gap:22px; margin-top:22px; }
.signature-menu-link { display:inline-flex; align-items:center; min-height:44px; gap:12px; color:var(--wine); font-size:.85rem; font-weight:700; text-decoration:underline; text-underline-offset:5px; }
.signature-order-note { margin-top:16px; max-width:35ch; color:var(--muted); font-size:.75rem; }
#home-showcase { min-width:0; width:100%; }
.signature-choices { display:flex; gap:12px; margin-bottom:16px; border-bottom:1px solid var(--line); }
.signature-choices button { position:relative; flex:1; min-width:0; min-height:44px; padding:8px 6px 12px; border:0; border-radius:0; background:transparent; color:var(--muted); font-size:.85rem; font-weight:650; }
.signature-choices [aria-pressed="true"] { color:var(--wine); }
.signature-choices [aria-pressed="true"]::after { content:""; position:absolute; bottom:-1px; left:8px; right:8px; height:2px; background:var(--wine); border-radius:2px; }
.signature-product { overflow:hidden; border:1px solid var(--line); border-radius:18px; background:var(--cream); box-shadow:0 10px 30px #2918130b; }
.signature-photo { display:block; position:relative; width:100%; aspect-ratio:3/2; padding:0; border:0; background:var(--image-ground); overflow:hidden; }
.signature-photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 50%; animation:signature-photo-in .2s ease-out; }
.signature-photo:focus-visible { outline-offset:-5px; }
.signature-art-note { position:static; padding:0; color:inherit; background:transparent; font:inherit; }
.signature-details { padding:17px 20px 20px; }
.signature-kicker { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--muted); font-size:.64rem; text-transform:uppercase; letter-spacing:.08em; }
.signature-counter { flex-shrink:0; font-variant-numeric:tabular-nums; letter-spacing:.1em; }
.signature-counter span { padding-inline:3px; opacity:.6; }
.signature-title-row { display:flex; justify-content:space-between; gap:15px; align-items:flex-start; margin-top:7px; }
.signature-title-row h2 { color:var(--wine); font-size:clamp(1.25rem,2.2vw,1.65rem); line-height:1.15; max-width:25ch; }
.signature-title-row strong { flex-shrink:0; font-size:1.12rem; line-height:1.5; color:var(--wine); }
.signature-description { color:var(--muted); font-size:.82rem; line-height:1.55; margin-top:9px; min-height:2.5em; }
.signature-action { width:100%; display:flex; justify-content:space-between; min-height:48px; margin-top:15px; }
@keyframes signature-photo-in { from { opacity:.7; } to { opacity:1; } }
@media(prefers-reduced-motion:reduce) { .signature-photo img { animation:none; } }
.signature-pairing { display:flex; align-items:center; justify-content:space-between; gap:15px; width:100%; margin-top:10px; padding:13px 16px; border:1px solid var(--line); border-radius:15px; text-align:left; color:var(--olive); background:var(--surface-selected); }
.signature-pairing strong { display:block; font-size:.86rem; }
.signature-pairing small { display:block; color:var(--muted); font-size:.72rem; margin-top:2px; }
.profile-button { flex-shrink:0; }
#customer-account { width:min(480px,calc(100% - 24px)); max-height:calc(100dvh - 24px); overflow:auto; padding:22px; border:1px solid var(--line); border-radius:20px; background:var(--paper); color:var(--ink); }
#customer-account::backdrop { background:var(--overlay); }
#customer-account h2 { font-size:1.65rem; color:var(--wine); }
#customer-account h3 { font-size:1.25rem; color:var(--wine); }
.profile-intro { color:var(--muted); font-size:.88rem; margin-top:12px; }
.profile-scope { margin:12px 0 18px; padding:10px 12px; border-radius:10px; background:var(--surface-selected); font-size:.75rem; color:var(--olive); }
.profile-form { display:grid; gap:12px; margin-top:16px; }
.profile-form label { display:grid; gap:5px; min-width:0; color:var(--muted); font-size:.78rem; font-weight:600; }
.profile-form select,.profile-form input { width:100%; min-width:0; min-height:46px; padding:8px 10px; border:1px solid var(--line); border-radius:9px; font:inherit; font-size:.86rem; color:var(--ink); background:var(--cream); }
.profile-options { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; }
.profile-fine { font-size:.74rem; color:var(--muted); line-height:1.6; }
.profile-reset { display:block; min-height:44px; margin-top:10px; padding:6px 0; border:0; background:transparent; color:var(--muted); font-size:.72rem; text-decoration:underline; text-align:left; }
.profile-cloud { border-top:1px solid var(--line); margin-top:16px; padding-top:20px; }
.profile-cloud p { margin-block:8px 12px; }
.profile-cloud-actions { display:grid; gap:8px; }
#profile-status { margin-top:12px; font-size:.8rem; color:var(--olive); }
@media(max-width:760px) {
  .signature-home.hero { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; max-width:540px; padding-block:21px 26px; }
  .signature-home .hero-copy .eyebrow { display:flex; font-size:.6rem; letter-spacing:.14em; }
  .signature-home h1 { font-size:clamp(1.9rem,7.7vw,2.8rem); line-height:1.02; margin-block:10px 11px; letter-spacing:-.045em; }
  .signature-home .hero-intro { max-width:44ch; font-size:.82rem; line-height:1.5; }
  .signature-home .hero-actions { display:flex; gap:20px; margin-top:4px; }
  .signature-home .signature-menu-link { min-height:36px; font-size:.75rem; text-decoration:none; }
  .signature-home .signature-order-note { display:none; }
  .signature-details { padding:14px 16px 16px; }
  .signature-description { min-height:3.1em; font-size:.76rem; margin-top:7px; }
  .signature-title-row h2 { min-height:2.3em; font-size:1.28rem; }
  .signature-title-row strong { font-size:1.05rem; }
  .signature-action { margin-top:12px; font-size:.85rem; }
  .signature-choices { margin-bottom:14px; }
  .signature-choices button { font-size:.79rem; }
  .signature-pairing { padding:11px 14px; }
  .top-actions { gap:6px; }
  .signature-home + .menu { padding-top:16px; }
}
@media(max-width:350px) {
  .signature-home.hero { gap:13px; padding-top:17px; }
  .signature-title-row { gap:8px; }
  .signature-title-row h2 { font-size:1.15rem; }
  .signature-details { padding-inline:12px; }
  #customer-account { padding:16px; }
  .profile-options { grid-template-columns:minmax(0,1fr); }
}
