@import url("/static/fonts/fonts.css?v=66");

/* MenuDoro guest — bright modern menu (light canvas + gold accent) */
:root {
  --bg: #F4F5F7;
  --bg-pure: #ffffff;
  --bg-elev: #ffffff;
  --card: #ffffff;
  --ink: #0B0D12;
  --muted: #5C6570;
  --accent: #D4A84B;
  --accent-bright: #E0B85C;
  --accent-soft: #FBF6E9;
  --accent-warm: #D4A84B;
  --danger: #C45C4A;
  --line: #E1E4EA;
  --line-soft: #EEF0F3;
  --radius: 12px;
  --radius-sm: 10px;
  --radius-btn: 10px;
  --space: 8px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --serif: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --composer-h: 9.75rem;
  --btn-ink: #F4F5F7;
  --logo-plate: transparent;
  --shadow: 0 1px 2px rgba(11, 13, 18, 0.04), 0 8px 24px rgba(11, 13, 18, 0.05);
  --shadow-md: 0 2px 4px rgba(11, 13, 18, 0.04), 0 16px 40px rgba(11, 13, 18, 0.07);
  --focus-ring: 0 0 0 3px rgba(212, 168, 75, 0.28);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
}
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }

/* ——— Landing ——— */
body.landing {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
}
body.landing main {
  width: min(440px, 100%);
  padding: calc(var(--space) * 4) calc(var(--space) * 3);
  text-align: center;
}
body.landing h1 {
  font-family: var(--font); font-weight: 650;
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 calc(var(--space) * 1);
}
body.landing p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 calc(var(--space) * 2);
  font-size: 1.02rem;
}
body.landing a { color: var(--accent); text-decoration: none; font-weight: 600; }
body.landing a:hover { color: var(--ink); }
body.landing ul {
  list-style: none;
  padding: 0;
  margin: calc(var(--space) * 3) 0 0;
  display: grid;
  gap: calc(var(--space) * 1);
}
body.landing li a {
  display: block;
  padding: calc(var(--space) * 1.5) calc(var(--space) * 2);
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
body.landing li a:hover {
  border-color: rgba(201, 162, 39, 0.5);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ——— Brand plate (pure black; never recolor logo pixels) ——— */
.brand-plate {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.brand-plate--hero {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: calc(var(--space) * 3) calc(var(--space) * 2) calc(var(--space) * 2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.brand-plate--guest {
  width: 100%;
  margin: 0 0 calc(var(--space) * 1.5);
  padding: calc(var(--space) * 2.25) calc(var(--space) * 2) calc(var(--space) * 1.75);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}
.brand-logo {
  display: block;
  height: 108px;
  width: auto;
  max-width: min(480px, 94vw);
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  image-rendering: auto;
}
.brand-logo--hero {
  height: 252px;
  max-width: min(600px, 94vw);
}
.brand-logo--guest {
  height: 222px;
  max-width: min(570px, 94vw);
}
.brand-logo--lg { height: 180px; max-width: min(510px, 92vw); }
.brand-logo--md { height: 108px; max-width: min(330px, 78vw); }
.brand-logo--sm { height: 84px; max-width: min(270px, 65vw); }
.brand-logo--xs { height: 66px; max-width: 210px; }
.brand-lockup {
  display: flex;
  align-items: center;
  gap: calc(var(--space) * 1.5);
}
body.landing h1.sr-only,
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ——— App shell ——— */
.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: calc(var(--space) * 2) calc(var(--space) * 2) calc(var(--composer-h) + 1.35rem);
}
header.app {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(var(--space) * 1.5);
  margin-bottom: calc(var(--space) * 1.5);
  flex-wrap: wrap;
}
header.app h1 {
  font-family: var(--font); font-weight: 650;
  font-size: 1.45rem;
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 600;
}
header.app .meta { color: var(--muted); font-size: 0.85rem; }
.header-tools {
  display: flex;
  align-items: center;
  gap: calc(var(--space) * 0.75);
  flex-wrap: wrap;
  justify-content: center;
}
#langSelect {
  background: var(--bg-pure);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.35rem 0.45rem;
  font-family: inherit;
  font-weight: 600;
}
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #735a0b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(201, 162, 39, 0.3);
}

header.app.hero {
  flex-direction: column;
  align-items: stretch;
  gap: calc(var(--space) * 1.25);
  margin-bottom: calc(var(--space) * 0.5);
}
.hero-text { text-align: center; }
.hero-text h1 {
  font-family: var(--font); font-weight: 650;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}
.hero-line {
  margin: calc(var(--space) * 0.85) 0 0;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 500;
}
.example-one {
  margin: 0 0 calc(var(--space) * 1.25);
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}
.example-chip {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.35rem 0.8rem !important;
  border-radius: 999px !important;
  background: var(--accent-soft) !important;
  color: #735a0b !important;
  font-weight: 700;
  border: 1px solid rgba(201, 162, 39, 0.35) !important;
  cursor: pointer;
}

/* Category chips */
.cat-chips {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.85rem;
  margin: 0 0 0.35rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
  appearance: none;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--bg-pure);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cat-chip:hover { border-color: rgba(201, 162, 39, 0.5); }
.cat-chip.on {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  border-color: var(--accent);
  color: var(--btn-ink);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.28);
}

/* ——— Composer (sticky ask bar) ——— */
.composer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--line);
  padding: 0.65rem 0.9rem calc(0.65rem + env(safe-area-inset-bottom, 0));
  backdrop-filter: blur(14px);
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.06);
}
.composer-row {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  gap: 0.45rem;
  align-items: center;
}
.composer input#ask {
  flex: 1;
  min-width: 0;
  height: 3.25rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.05rem;
  font-family: inherit;
  outline: 0;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}
.composer input#ask:focus {
  border-color: var(--accent);
  background: var(--bg-pure);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}
.composer .icon-btn {
  flex-shrink: 0;
  height: 3.25rem;
  min-width: 2.6rem;
  padding: 0 1rem;
  white-space: nowrap;
}
.composer-tools {
  max-width: 680px;
  margin: 0.4rem auto 0;
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.composer-tools .ghost { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.mic-huge {
  width: 3.65rem !important;
  height: 3.65rem !important;
  min-width: 3.65rem !important;
  font-size: 1.55rem !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 100%) !important;
  color: var(--btn-ink) !important;
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35) !important;
  border: 0 !important;
}
.composer .icon-btn#btnSearch {
  height: 3.25rem;
  min-width: 4.6rem;
  font-size: 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0a04a 0%, var(--accent-warm) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 145, 58, 0.3);
  border: 0;
  font-weight: 700;
}
.secondary-tools .subtle {
  opacity: 0.85;
  font-size: 0.78rem !important;
  border-color: var(--line) !important;
}

/* ——— Controls ——— */
button, .btn {
  appearance: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius-btn);
  padding: 0.5rem 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  font-family: inherit;
  background: var(--ink);
  color: var(--btn-ink);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
button:hover, .btn:hover {
  background: #000;
  border-color: #000;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.14);
}
button.secondary, .btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-color: #D4D1C9;
}
button.secondary:hover, .btn.secondary:hover {
  border-color: var(--ink);
  background: #F3F2EE;
  box-shadow: none;
}
button.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid #D4D1C9;
}
button.ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: #F3F2EE;
  box-shadow: none;
}
button:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.ask-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.25rem 0 0.5rem; min-height: 0; }
.chip {
  background: var(--bg-pure);
  color: var(--muted);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid var(--line);
}
.chip.hot { background: var(--accent-soft); color: #735a0b; border-color: rgba(201, 162, 39, 0.35); }
.chip.mode { background: var(--accent-soft); color: #735a0b; font-weight: 700; letter-spacing: 0.04em; }
.chip.hit { background: var(--accent-soft); color: #735a0b; font-weight: 500; }
.chip.surprise-badge { background: var(--accent); color: var(--btn-ink); font-weight: 700; }
.chip.allergen { background: #fff0ee; color: #b5453a; border-color: #f5c4be; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: calc(var(--space) * 1.75);
}

/* ——— Dish cards: bright, circular/large photo ——— */
.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.card:hover {
  border-color: rgba(201, 162, 39, 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-media {
  width: 132px;
  height: 132px;
  margin: 1.15rem auto 0;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #f0f1f4, #e4e6ea);
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  border: 3px solid var(--bg-pure);
  outline: 1px solid var(--line);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-media.placeholder,
.card-media.no-img {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  background: linear-gradient(145deg, #f3f4f6 0%, #e8eaee 100%);
}
.card-media.no-img img { display: none; }
.card .body {
  padding: 0.9rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
  align-items: center;
}
.card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-family: var(--font); font-weight: 650;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--ink);
}
.card .desc {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  max-width: 36ch;
}
.card .price {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}
.card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
}
.card .tags span {
  font-size: 0.7rem;
  background: var(--bg);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--line);
  font-weight: 600;
}
.card .actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
.card .actions button {
  min-height: 2.85rem;
  padding: 0.6rem 1.35rem;
  font-size: 1rem;
  width: 100%;
  max-width: 220px;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.28);
}
.card.surprise {
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.15), var(--shadow-md);
}

.section-title {
  margin: calc(var(--space) * 3) 0 calc(var(--space) * 1.15);
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.status {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.25rem 0 0.5rem;
  min-height: 1.1em;
  text-align: center;
}
.status.err { color: #a8432f; } /* AA on the cream background (5.4:1) */
.status.picking { color: #735a0b; font-weight: 600; }

/* ——— Modals ——— */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 90;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.modal-bg.show { display: flex; }
.modal {
  background: var(--card);
  border-radius: 20px 20px 14px 14px;
  width: min(480px, 100%);
  padding: 1.25rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.modal input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  margin: 0.5rem 0 0.85rem;
  font-size: 1rem;
  font-family: inherit;
}

.howto {
  background: var(--bg-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  margin: 0 0 calc(var(--space) * 1.25);
  color: var(--muted);
  font-size: 0.85rem;
  box-shadow: var(--shadow);
}
.howto summary {
  cursor: pointer;
  color: #735a0b;
  font-weight: 600;
  list-style: none;
}
.howto summary::-webkit-details-marker { display: none; }
.howto summary::before { content: "▸ "; }
.howto[open] summary::before { content: "▾ "; }
.howto ul { margin: 0.45rem 0 0.15rem; padding-left: 1.1rem; line-height: 1.45; }
.howto code {
  background: var(--bg);
  color: var(--ink);
  padding: 0.05rem 0.35rem;
  border-radius: 5px;
  font-size: 0.8rem;
}
.mode-hint { color: #735a0b; font-size: 0.82rem; margin: 0 0 0.4rem; min-height: 1.1em; }

.table-inline {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.table-inline input {
  width: 3.2rem;
  padding: 0.3rem 0.4rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-pure);
  color: var(--ink);
  font-size: 0.9rem;
  font-family: inherit;
}
.tiny { font-size: 0.75rem; margin: 0 0 0.5rem; }

.filter-panel {
  background: var(--bg-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem 0.85rem;
  margin: 0 0 calc(var(--space) * 1);
  box-shadow: var(--shadow);
}
.filter-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.45rem;
  font-weight: 700;
}
.toggle-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.toggle-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}
.toggle-chip:hover { border-color: var(--accent); }
.toggle-chip.on, .toggle-chip.hot {
  background: #fff0ee;
  border-color: #f0b0a8;
  color: #b5453a;
}
.toggle-chip.diet.on, .toggle-chip.diet.hot {
  background: var(--accent-soft);
  border-color: rgba(201, 162, 39, 0.45);
  color: #735a0b;
}
.large-chips .toggle-chip {
  padding: 0.6rem 0.9rem;
  font-size: 0.92rem;
  min-height: 2.65rem;
  border-radius: 999px;
}
.mode-explain { margin: 0.45rem 0 0; font-size: 0.82rem; color: #735a0b; }

.tag-allergen {
  background: #fff0ee !important;
  color: #b5453a !important;
  font-weight: 600 !important;
  border: 1px solid #f5c4be !important;
}
.tag-diet {
  background: var(--accent-soft) !important;
  color: #735a0b !important;
  border-color: rgba(201, 162, 39, 0.35) !important;
}

.budget-panel { margin-top: 0.35rem; }
.budget-row { display: flex; align-items: center; gap: 0.4rem; max-width: 11rem; }
.budget-currency { color: var(--muted); font-weight: 700; font-size: 0.9rem; min-width: 1.6rem; }
.budget-row input#budgetMax {
  flex: 1;
  min-width: 0;
  height: 2.2rem;
  padding: 0 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.95rem;
  font-family: inherit;
  outline: 0;
}
.table-inline input[readonly], #tableNum[readonly] {
  opacity: 0.85;
  cursor: default;
  border-style: dashed;
}
.table-locked-hint { font-size: 0.72rem; color: var(--muted); margin-left: 0.25rem; }

.engine-banner {
  margin: 0.5rem 0 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}
.engine-banner.warn { background: #fff8e8; color: #7a5c10; border: 1px solid #f0e0a8; }
.engine-banner.err { background: #fff0ee; color: #b5453a; border: 1px solid #f5c4be; }
.engine-banner.ok { background: var(--accent-soft); color: #735a0b; border: 1px solid rgba(201, 162, 39, 0.35); }
.badge.live { background: #e8f6ec; color: #1f7a3a; border-color: #b8e0c4; }
.badge.mock { background: #fff8e8; color: #7a5c10; border-color: #f0e0a8; }
.badge.fallback { background: #fff0ee; color: #b5453a; border-color: #f5c4be; }
.budget-note { font-size: 0.8rem; color: var(--muted); margin: 0.25rem 0 0.4rem; }
.unlock-btn {
  font-size: 0.72rem !important;
  padding: 0.2rem 0.45rem !important;
  margin-left: 0.2rem;
  height: auto !important;
}
.fit-chip { background: var(--accent-soft) !important; color: #735a0b !important; font-weight: 700; }
.why-line { font-size: 0.75rem; color: var(--muted); margin-top: 0.15rem; }
.empty-state {
  padding: 1.35rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-align: center;
  margin: 0.5rem 0 1rem;
  background: var(--bg-pure);
  box-shadow: var(--shadow);
}
.empty-state .try-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.75rem;
}
.empty-state .try-row button {
  background: var(--accent-soft);
  color: #735a0b;
  border: 1px solid rgba(201, 162, 39, 0.35);
  font-size: 0.88rem;
}
.wine-pair-strip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.4rem 0 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}
.muted { color: var(--muted); }

/* Review modal */
#reviewModal.modal-bg { align-items: center; }
.review-card {
  text-align: center;
  padding: 1.75rem 1.4rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  width: min(400px, 100%);
}
.review-emoji { font-size: 2.4rem; margin-bottom: 0.45rem; }
.review-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.55rem;
  font-family: var(--font); font-weight: 650;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.review-body {
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
  font-size: 1rem;
}
.review-actions { display: flex; flex-direction: column; gap: 0.55rem; align-items: stretch; }
a.review-cta, a.review-cta:visited {
  display: block;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 100%);
  color: var(--btn-ink);
  font-weight: 700;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  font-size: 1.05rem;
  border: none;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.28);
}
a.review-cta:hover { filter: brightness(1.05); }
#btnSkipReview.secondary {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .card-media { width: 120px; height: 120px; }
  .composer .icon-btn { padding: 0 0.75rem; font-size: 0.85rem; }
  .toggle-chip { padding: 0.4rem 0.65rem; font-size: 0.78rem; }
  .header-tools { width: 100%; justify-content: center; }
  .hero-text h1 { font-size: 1.55rem; }
  .mic-huge {
    width: 3.35rem !important;
    height: 3.35rem !important;
    min-width: 3.35rem !important;
  }
  .brand-logo--hero { height: 222px; }
  .brand-logo--guest { height: 192px; }
  .brand-plate--hero, .brand-plate--guest {
    padding: calc(var(--space) * 2) calc(var(--space) * 1.5);
  }
}
@media (min-width: 720px) {
  .card-media { width: 148px; height: 148px; }
}


/* Custom / AI / video header */
header.app.hero { position: relative; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.55);
}
header.app.hero > *:not(.hero-media) { position: relative; z-index: 1; }
header.app.hero.has-custom-header .brand-plate--guest { display: none; }
header.app.hero.has-custom-header .hero-text h1,
header.app.hero.has-custom-header .hero-line,
header.app.hero.has-custom-header .meta { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); }


/* QR welcome hello */
.welcome-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(10, 14, 12, 0.72);
  display: flex; align-items: stretch; justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  backdrop-filter: blur(8px);
}
.welcome-overlay[hidden] { display: none !important; }
.welcome-card {
  margin: auto; width: min(28rem, 100%);
  background: var(--card, #ffffff); color: var(--ink, #0B0D12);
  border-radius: 20px; padding: 1.5rem 1.25rem 1.35rem;
  box-shadow: 0 24px 64px rgba(0,0,0,.45);
  text-align: center;
}
.welcome-media {
  width: 100%; height: 9rem; border-radius: 14px; overflow: hidden;
  margin-bottom: 1rem; background: #0d1410;
}
.welcome-media img, .welcome-media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.welcome-kicker {
  text-transform: uppercase; letter-spacing: .12em; font-size: .72rem;
  color: var(--muted, #5C6570); margin: 0 0 .35rem; font-weight: 700;
}
.welcome-card h2 { margin: 0 0 .5rem; font-size: 1.55rem; line-height: 1.2; }
.welcome-sub { margin: 0 0 1rem; color: var(--muted, #5C6570); }
.welcome-langs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem;
  margin-bottom: 1rem;
}
.welcome-lang {
  appearance: none; border: 1px solid var(--line, #E1E4EA);
  background: var(--bg, #F4F5F7); color: var(--ink, #0B0D12);
  border-radius: 14px; padding: .9rem .4rem; font-size: 1.05rem; font-weight: 700;
  min-height: 3.2rem; cursor: pointer;
}
.welcome-lang.on {
  background: linear-gradient(180deg, var(--accent-bright, #E0B85C), var(--accent, #D4A84B));
  border-color: var(--accent, #D4A84B); color: #1c1810;
  box-shadow: 0 0 0 3px rgba(212,168,75,.3);
}
.welcome-lang:focus-visible, .welcome-go:focus-visible { outline: 3px solid var(--accent, #D4A84B); outline-offset: 2px; }
.welcome-table-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  margin: 0 auto 1rem; padding: .35rem .75rem; border-radius: 999px;
  background: var(--accent-soft, #FBF6E9); color: var(--ink, #0B0D12); font-size: .9rem; font-weight: 600;
}
.welcome-go {
  width: 100%; min-height: 3rem; font-size: 1.1rem; border-radius: 14px;
}
.table-chip {
  display: inline-flex; align-items: center;
  padding: .25rem .65rem; border-radius: 999px;
  background: rgba(47,107,69,.35); border: 1px solid rgba(76,175,112,.45);
  font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.table-inline.is-locked input { opacity: .55; pointer-events: none; }


.chip.removable {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding-right: 0.25rem;
}
.chip .chip-x {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0 0.25rem;
  border-radius: 999px;
  opacity: 0.75;
}
.chip .chip-x:hover { opacity: 1; background: rgba(0,0,0,0.06); }
.card.order-locked .actions button,
.composer.order-locked #btnWaiter,
.composer.order-locked #btnBill {
  opacity: 0.45;
}
.table-inline.is-browse input { opacity: 0.55; }


/* --- Wave A guest basket: collapsed FAB + bottom sheet --- */
.basket-root {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
}
.basket-root[hidden] { display: none !important; }
.basket-fab {
  pointer-events: auto;
  position: fixed;
  right: max(0.85rem, env(safe-area-inset-right));
  bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 46;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 100%);
  color: var(--btn-ink);
  border: none;
  border-radius: 999px;
  min-height: 3rem;
  padding: 0.55rem 0.85rem 0.55rem 0.7rem;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.32);
  cursor: pointer;
  max-width: min(46vw, 11rem);
}
.basket-fab-ico { font-size: 1.15rem; line-height: 1; }
.basket-fab-count {
  background: #1a1f1c;
  color: #fff;
  border-radius: 999px;
  min-width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  padding: 0 0.4rem;
}
.basket-fab-total {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.92;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 4.5rem;
}
.basket-backdrop {
  pointer-events: auto;
  position: fixed;
  inset: 0;
  z-index: 47;
  background: rgba(8, 12, 10, 0.48);
  backdrop-filter: blur(2px);
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.basket-backdrop[hidden] { display: none !important; }
.basket-sheet {
  pointer-events: auto;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 48;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: var(--card, #151c17);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  padding: 0.35rem 0.9rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 40px rgba(0,0,0,.4);
  max-height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transform: translateY(0);
  animation: basketSheetIn 0.22s ease-out;
}
.basket-sheet[hidden] { display: none !important; }
@keyframes basketSheetIn {
  from { transform: translateY(18%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
.basket-sheet-handle {
  width: 2.4rem;
  height: 0.28rem;
  border-radius: 99px;
  background: rgba(255,255,255,.22);
  margin: 0.25rem auto 0.15rem;
}
.basket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.basket-close {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--ink);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.basket-close:hover, .basket-close:focus-visible {
  background: rgba(255,255,255,.12);
}
.basket-list {
  overflow: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.basket-row {
  display: grid;
  grid-template-columns: 3.1rem 1fr auto;
  gap: 0.45rem 0.55rem;
  align-items: center;
  padding: 0.5rem;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  font-size: 0.92rem;
}
.basket-row-img {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255,255,255,.08);
}
.basket-row-img.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--muted);
}
.basket-row-main { min-width: 0; }
.basket-row-main strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.basket-row-price {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.basket-row .meta {
  grid-column: 2 / -1;
  font-size: 0.72rem;
  color: var(--muted);
}
.basket-row .qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.basket-row .qty-controls button {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.95rem;
}
.basket-row .qty-controls .qty-val {
  min-width: 1.1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}
.basket-footer {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--line);
}
.basket-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.02rem;
}
.basket-ask-staff { margin: 0; }
.basket-submit { width: 100%; margin-top: 0.1rem; min-height: 2.75rem; font-weight: 700; }
.basket-submit:disabled { opacity: 0.45; cursor: not-allowed; }
body.has-basket-open {
  overflow: hidden;
}
body.has-basket-open .composer {
  opacity: 0.4;
  pointer-events: none;
}
body.has-basket-open .basket-fab {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
}
@media (min-width: 720px) {
  .basket-fab {
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
  .basket-sheet {
    left: auto;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: min(92vw, 400px);
    border-radius: 16px;
    max-height: min(70vh, 560px);
    border-bottom: 1px solid var(--line);
  }
}

/* ——— Polish pack v46: phone zones, accordion filters, density, toast ——— */
:root {
  --cream: #FBF6E9;
  --composer-h: 7.6rem;
  --fab-clearance: 4.5rem;
}

body.density-compact {
  --composer-h: 6.9rem;
}

.guest-shell {
  padding-bottom: calc(var(--composer-h) + var(--fab-clearance) + env(safe-area-inset-bottom, 0px));
}

.sticky-cats {
  position: sticky;
  top: 0;
  z-index: 20;
  /* opaque: content scrolling under the bar must not show through ("How to ask" overlap) */
  background: var(--bg);
  box-shadow: 0 8px 10px -10px rgba(0, 0, 0, 0.18);
  padding: 0.35rem 0 0.55rem;
  margin: 0 0 0.6rem;
}

.filter-dock {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.35rem 0 0.75rem;
}

.filter-acc {
  background: var(--cream);
  border: 1px solid rgba(212, 168, 75, 0.28);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(11, 13, 18, 0.03);
}

.filter-acc-sum {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--ink);
  min-height: 48px;
  user-select: none;
}
.filter-acc-sum::-webkit-details-marker { display: none; }
.filter-acc-sum::after {
  content: "▸";
  color: var(--accent);
  font-size: 0.85rem;
  transition: transform 0.15s ease;
}
.filter-acc[open] > .filter-acc-sum::after {
  transform: rotate(90deg);
}

.filter-acc-count {
  margin-left: auto;
  margin-right: 0.35rem;
  background: var(--accent);
  color: #1a1408;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
}

.filter-acc-body {
  padding: 0 0.85rem 0.9rem;
  border-top: 1px solid rgba(212, 168, 75, 0.18);
}

.density-toggle {
  display: inline-flex;
  background: var(--bg-pure);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}
.density-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  min-height: 32px;
  cursor: pointer;
}
.density-btn.is-on {
  background: var(--accent-soft);
  color: #6e5610;
  box-shadow: 0 1px 2px rgba(11,13,18,0.06);
}

/* Compact: ~4–5× denser list */
body.density-compact .grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
body.density-compact .card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  min-height: 0;
}
body.density-compact .card-media,
body.density-compact .card .media {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  margin: 0;
  overflow: hidden;
}
body.density-compact .card-media img,
body.density-compact .card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.density-compact .card h3,
body.density-compact .card .name {
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.25;
}
body.density-compact .card .desc,
body.density-compact .card .why-line,
body.density-compact .card .tags .tag-diet {
  display: none;
}
/* Allergen badges stay visible in compact mode (safety beats density). */
body.density-compact .card .tags { margin-top: 2px; }
body.density-compact .card .tags .tag-allergen { font-size: 11px; padding: 1px 6px; }
body.density-compact .card .price {
  font-size: 0.85rem;
  margin: 0.15rem 0 0;
}
body.density-compact .card .card-actions,
body.density-compact .card .ask-actions {
  margin: 0;
}
body.density-compact .card button[data-order] {
  min-height: 40px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
}

/* Comfort: big photo cards (default grid) */
body.density-comfort .card-media,
body.density-comfort .card .media {
  min-height: 140px;
}

/* Composer: clearer secondary row, no pile */
.composer {
  z-index: 40;
  background: rgba(251, 246, 233, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(212, 168, 75, 0.28);
  box-shadow: 0 -8px 28px rgba(11, 13, 18, 0.06);
}
.composer-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-start;
  padding-top: 0.35rem;
}
.composer-tools .ghost {
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  font-size: 0.84rem;
  border-radius: 999px;
  background: var(--bg-pure);
  border: 1px solid var(--line);
}
.composer-tools .ghost.subtle {
  color: var(--muted);
}
.composer #btnBill {
  border-color: rgba(212, 168, 75, 0.55);
  color: #6e5610;
  font-weight: 650;
}
.composer #btnBill.is-busy,
.composer #btnBill:disabled {
  opacity: 0.55;
  pointer-events: none;
}

/* Basket FAB: sits above composer, never over filter dock / primary ask */
.basket-fab {
  z-index: 45;
  right: max(0.85rem, env(safe-area-inset-right));
  bottom: calc(var(--composer-h) + 0.55rem);
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #1a1408;
  border: 0;
  box-shadow: 0 8px 24px rgba(212, 168, 75, 0.35);
  min-width: 56px;
  min-height: 56px;
}
body.has-basket-open .basket-fab {
  bottom: calc(var(--composer-h) + 0.55rem);
}

.guest-toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  bottom: calc(var(--composer-h) + 1.1rem + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  max-width: min(92vw, 360px);
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  background: #1a1408;
  color: #FBF6E9;
  font-weight: 650;
  font-size: 0.92rem;
  text-align: center;
  box-shadow: 0 12px 32px rgba(11, 13, 18, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.guest-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.guest-toast.ok { background: #1f4d2e; }
.guest-toast.err { background: #7a2e24; }

.menu-scroll {
  min-height: 40vh;
}

.header-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

@media (max-width: 520px) {
  .brand-plate--guest {
    padding: 0.85rem 1rem;
  }
  .brand-logo--guest {
    height: 72px;
  }
  .hero-text h1 {
    font-size: 1.45rem;
  }
  .density-toggle {
    width: 100%;
    justify-content: stretch;
  }
  .density-btn {
    flex: 1;
  }
}

/* Hide legacy always-open filter panels if any remnant */
.filter-panel { display: none; }
.wine-pair-strip { display: none !important; }

/* === v74 — approved wide gold wordmark (3.4:1; sized by width, height auto) === */
.logo-wide-pic { display: contents; }
img.brand-logo.logo-wide {
  height: auto !important;
  aspect-ratio: 355 / 104;
  max-width: 100% !important;
  object-fit: contain;
}
img.brand-logo--guest.logo-wide { width: clamp(180px, 22vw, 250px) !important; }
@media (max-width: 520px) {
  img.brand-logo--guest.logo-wide { width: 176px !important; }
  .brand-plate--guest { padding: 0.9rem 1rem 0.7rem; }
}

/* === v76 — small-phone polish: basket names wrap (2 lines), toast clears the basket FAB === */
.basket-row-main strong {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}
.guest-toast {
  bottom: calc(var(--composer-h) + 0.55rem + 56px + 0.75rem + env(safe-area-inset-bottom, 0px));
}

/* ——— v81: browse vs table mode, search state, voice, view toggle, placeholders ——— */
[hidden] { display: none !important; }

/* Browse (plain /r/slug): just the menu. Table QR: full ordering UI. */
body.guest-browse .table-inline,
body.guest-browse #tableChip,
body.guest-browse #btnWaiter,
body.guest-browse #btnBill,
body.guest-browse .basket-root,
body.guest-browse .card .actions { display: none !important; }
body.guest-browse .card.order-locked { opacity: 1; }
body.guest-browse .card.order-locked .actions button { display: none; }
#browseOnlyBanner.engine-banner {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: transparent; border: 0; box-shadow: none;
  color: var(--muted); font-size: 0.84rem; font-weight: 500;
  padding: 0.25rem 0.5rem; margin: 0.1rem 0 0.4rem; text-align: center;
}
#browseOnlyBanner .browse-ico { color: var(--accent); font-size: 0.95rem; }
body.guest-browse .guest-shell { padding-bottom: calc(var(--composer-h) + 1rem + env(safe-area-inset-bottom, 0px)); }

/* View toggle: two icon buttons, one segmented control */
.density-toggle { align-items: center; padding: 3px; gap: 2px; }
.density-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 32px; min-height: 32px; padding: 0; color: #8b8f98;
  transition: background 0.15s ease, color 0.15s ease;
}
.density-btn svg { fill: currentColor; }
.density-btn:hover { color: var(--ink); }
.density-btn.is-on { background: var(--accent); color: #fff; box-shadow: 0 1px 3px rgba(11, 13, 18, 0.14); }
.density-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Voice */
#btnListen { position: relative; display: inline-flex; align-items: center; justify-content: center; }
#btnListen svg { fill: currentColor; }
#btnListen .stop-ico { display: none; }
#btnListen.is-listening .mic-ico { display: none; }
#btnListen.is-listening .stop-ico { display: block; }
#btnListen.is-listening { background: #c62f2f !important; color: #fff !important; border-color: #c62f2f !important; }
#btnListen.is-listening::after {
  content: ""; position: absolute; inset: -5px; border-radius: inherit;
  border: 2px solid rgba(198, 47, 47, 0.55); animation: micPulse 1.2s ease-out infinite; pointer-events: none;
}
@keyframes micPulse { 0% { transform: scale(0.92); opacity: 1; } 100% { transform: scale(1.22); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #btnListen.is-listening::after { animation: none; } }
#btnListen.mic-unsupported { opacity: 0.55; }
body.is-listening .composer input#ask { border-color: #c62f2f; box-shadow: 0 0 0 3px rgba(198, 47, 47, 0.12); }
#btnSearch[aria-busy="true"] { opacity: 0.75; cursor: progress; }

/* Categories carry result counts while searching */
.cat-chip .cat-n {
  display: inline-block; min-width: 1.2em; margin-left: 0.3rem; padding: 0 0.35em;
  border-radius: 999px; font-size: 0.72em; line-height: 1.5; background: rgba(0, 0, 0, 0.07);
}
.cat-chip.on .cat-n { background: rgba(255, 255, 255, 0.35); }
.cat-chip.is-empty { color: #5f5b52; border-style: dashed; }  /* dim but AA readable (was opacity .55) */
body.is-searching #matchesTitle { margin-top: 0.4rem; }

/* v83 — no photo: no image area at all (no letter tiles); the text card carries the dish */
.card.no-photo .body { padding-top: 1.1rem; }
body.density-compact .card.no-photo { grid-template-columns: 1fr auto; padding-left: 0.85rem; }
body.density-compact .card.no-photo .body { padding-top: 0; }

@media (max-width: 480px) {
  .density-btn { width: 34px; height: 30px; min-height: 30px; }
}

/* v83 — "Nothing with «fish»": the message is the headline, "show the whole menu" the way out */
.empty-state .empty-msg { color: var(--ink); font-weight: 600; font-size: 1rem; }
.empty-state .try-row button.empty-primary {
  /* the app's primary: soft gold gradient, glassy highlight */
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 100%);
  color: var(--btn-ink); border: 1px solid rgba(201, 162, 39, 0.55); font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 4px 14px rgba(201, 162, 39, 0.28);
}
.empty-state .try-row button.empty-secondary {
  background: rgba(255, 255, 255, 0.7); color: var(--ink); border: 1px solid var(--line);
  font-weight: 600; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.grid > .empty-state { grid-column: 1 / -1; }

/* v84 — basket rows without a photo: no image column, same as the menu cards */
.basket-row.no-photo { grid-template-columns: 1fr auto; padding-left: 0.75rem; }
.basket-row.no-photo .meta { grid-column: 1 / -1; }

/* Allergy safety */
.allergy-safety { margin: 10px 2px 0; font-size: 13px; line-height: 1.4; color: var(--muted, #6b6b6b); }
.allergy-safety:empty { display: none; }
.allergy-notice { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fff4e5;
  border: 1px solid #f3c98b; color: #6a4300; font-size: 14px; line-height: 1.4; grid-column: 1 / -1; }
.allergy-notice .linklike { background: none; border: 0; padding: 0; margin-left: 6px; color: inherit;
  text-decoration: underline; cursor: pointer; font: inherit; }
.basket-row-alg { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.basket-row-alg .tag-allergen { font-size: 11px; padding: 1px 6px; }
.order-note-lbl { display: block; margin-top: 10px; font-size: 14px; }
.order-note { width: 100%; box-sizing: border-box; margin-top: 4px; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line, #ddd); font: inherit; font-size: 15px; resize: vertical; }

/* v87 — "may contain": allergens our word list finds but the restaurant did not mark */
.tag-may, .card .tags span.tag-may, .basket-row-alg span.tag-may { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  border: 1.5px dashed #c77700; color: #8a5200; background: transparent; font-size: 0.78rem; font-weight: 600;
  line-height: 1.3; }
.tag-may::before { content: "⚠"; font-size: 0.8em; }
body.density-compact .card .tags .tag-may { font-size: 11px; padding: 1px 6px; }
.basket-row-alg .tag-may { font-size: 11px; padding: 1px 6px; }

/* v88 "Already ordered at your table": rounds with prices at the time of ordering + running total */
.table-bill { margin: 0.9rem 0 0.2rem; padding: 0.85rem 0.9rem; border-radius: 14px; background: #faf6ec; border: 1px solid rgba(212, 168, 75, 0.28); }
.table-bill .tb-title { margin: 0 0 0.55rem; font-size: 0.98rem; font-weight: 750; }
.tb-round { padding: 0.45rem 0; border-top: 1px dashed rgba(90, 70, 30, 0.15); }
.tb-round:first-of-type { border-top: 0; }
.tb-round-head { display: flex; gap: 0.5rem; align-items: baseline; flex-wrap: wrap; font-size: 0.88rem; }
.tb-state { margin-left: auto; font-size: 0.78rem; font-weight: 700; color: #8a6a1f; }
.tb-round.is-served .tb-state { color: #3d8b6e; }
.tb-round.is-served ul { opacity: 0.75; }
.tb-round ul { list-style: none; margin: 0.25rem 0 0; padding: 0; font-size: 0.9rem; }
.tb-round li { display: flex; gap: 0.35rem; padding: 0.1rem 0; }
.tb-price { margin-left: auto; font-variant-numeric: tabular-nums; }
.tb-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid rgba(212, 168, 75, 0.35); }
.tb-total strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }

/* v88 guest header = the restaurant (no MenuDoro logo); owner photo framing */
.hero-text h1:empty { display: none; }
header.app.hero.has-custom-header { min-height: clamp(210px, 52vw, 340px); justify-content: flex-end; border-radius: var(--radius); padding: 1rem 0.9rem 0.9rem; }
header.app.hero.hero--photo-whole { min-height: 0; justify-content: flex-start; padding: 0; border-radius: 0; }
header.app.hero.hero--photo-whole .hero-media {
  position: relative; inset: auto; border-radius: var(--radius); overflow: hidden; background: #f3ede0;
}
header.app.hero.hero--photo-whole .hero-media img {
  height: auto; max-height: 62vh; object-fit: contain; filter: none; display: block; margin: 0 auto;
}
header.app.hero.hero--photo-whole .hero-text h1,
header.app.hero.hero--photo-whole .hero-line,
header.app.hero.hero--photo-whole .meta { color: var(--ink); text-shadow: none; }
header.app.hero.hero--photo-whole .hero-line { color: var(--muted); }

/* Footer: small and quiet */
.guest-foot {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  margin: 2.2rem 0 0.4rem; padding-top: 1rem; border-top: 1px solid rgba(201, 162, 39, 0.18);
  font-size: 0.76rem; color: var(--muted); text-align: center;
}
.guest-foot a { color: var(--muted); text-decoration: none; }
.guest-foot a:hover { color: #735a0b; text-decoration: underline; }
.guest-made { font-weight: 600; letter-spacing: 0.01em; }
.guest-foot .guest-legal { opacity: 1; } /* AA contrast: muted colour already light enough */
.guest-allergen-note { margin: 0 auto; max-width: 34rem; font-size: 0.72rem; line-height: 1.45; color: var(--muted); text-align: center; opacity: 1; }

/* View toggle hover: soft gold, never the black button hover */
.density-btn:hover { background: var(--accent-soft); color: #6e5610; border-color: transparent; box-shadow: none; }
.density-btn.is-on:hover { background: var(--accent); color: #fff; }

/* ═══════════ v89 — premium menu: dish cards, list rows, section titles, bestsellers ═══════════ */
:root {
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --ink-warm: #1c1810;
  --body-warm: #3b352b;
  --soft-warm: #6a6154;
  --gold-ink: #85621a;      /* gold text that passes AA on white */
  --paper: #fffdf8;
  --hair: rgba(60, 45, 20, 0.09);
  --card-shadow: 0 1px 2px rgba(40, 30, 10, 0.05), 0 10px 28px -12px rgba(40, 30, 10, 0.16);
  --card-shadow-hi: 0 2px 4px rgba(40, 30, 10, 0.06), 0 18px 40px -14px rgba(40, 30, 10, 0.24);
}
@media (min-width: 760px) { .wrap { max-width: 920px; } }
@media (min-width: 1024px) {
  .wrap { max-width: 1120px; }
  .composer-row, .composer-tools { max-width: 680px; }
}

/* Grid: phone 1 column, tablet 2, desktop 3; rows stretch so cards line up */
#menu.grid, #matches.grid {
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 620px) { #menu.grid, #matches.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1024px) { #menu.grid, #matches.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }

/* Section titles inside the full menu */
.grid > .menu-sec {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 14px;
  margin: 18px 2px -2px;
  font-family: var(--display); font-weight: 600; font-size: 1.7rem; line-height: 1.1;
  color: var(--ink-warm); letter-spacing: 0.005em;
}
.grid > .menu-sec:first-child { margin-top: 2px; }
.grid > .menu-sec::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(212, 168, 75, 0.7), rgba(212, 168, 75, 0) 85%);
}

/* The card */
.card.dish {
  position: relative;
  display: flex; flex-direction: column; align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  text-align: left;
  padding: 0;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.card.dish:hover { transform: none; }
@media (hover: hover) {
  .card.dish:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hi); border-color: rgba(212, 168, 75, 0.35); }
  .card.dish:hover .dish-media img { transform: scale(1.035); }
}
.card.dish.is-flash { animation: dishFlash 1.5s ease; }
@keyframes dishFlash { 0%, 100% { box-shadow: var(--card-shadow); } 20% { box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.55), var(--card-shadow-hi); } }

.card.dish .dish-media {
  position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(140deg, #f4eee2, #ebe2d0);
}
@media (min-width: 620px) { .card.dish .dish-media { aspect-ratio: 4 / 3; } }
.card.dish .dish-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(.2, .7, .2, 1);
  animation: dishImgIn 0.45s ease both;
}
@keyframes dishImgIn { from { opacity: 0; } to { opacity: 1; } }

.card.dish .dish-body {
  flex: 1; display: flex; flex-direction: column; gap: 0;
  padding: 16px 18px 14px;
  min-width: 0;
}
.card.dish.no-photo .dish-body { padding-top: 18px; }
.card.dish.no-photo::before {
  content: ""; position: absolute; left: 18px; top: 0; width: 40px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #e6c170, #cfa041);
}

.dish-ribbon {
  align-self: flex-start;
  margin: 0 0 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font: 700 0.64rem/1.3 var(--font);
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--gold-ink); background: #fbf2dc; border: 1px solid rgba(212, 168, 75, 0.35);
}
.card.dish:not(.no-photo) .dish-ribbon {
  position: absolute; top: 12px; left: 12px; margin: 0; z-index: 2;
  background: rgba(255, 252, 244, 0.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.card.dish .dish-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
}
.card.dish h3.dish-name {
  display: block; flex: 1 1 auto; min-width: 0; margin: 0;
  font-family: var(--display); font-weight: 600;
  font-size: 1.45rem; line-height: 1.12; letter-spacing: 0.002em;
  color: var(--ink-warm); text-align: left;
  overflow-wrap: anywhere; hyphens: auto;
}
.card.dish .dish-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.card.dish .dish-flags .chip { font-family: var(--font); font-size: 0.68rem; }
.card.dish .dish-price {
  flex: 0 0 auto; white-space: nowrap;
  font: 650 1.02rem/1.2 var(--font); font-variant-numeric: tabular-nums lining-nums;
  color: var(--gold-ink); letter-spacing: 0.01em;
}
.card.dish .why-line { margin-top: 4px; font-size: 0.75rem; color: var(--soft-warm); }
.card.dish .dish-desc {
  margin: 7px 0 0;
  font-size: 0.92rem; line-height: 1.52; color: var(--body-warm);
  overflow-wrap: anywhere;
}
.card.dish .dish-diet { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.card.dish .diet {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px 3px 7px; border-radius: 999px;
  font: 600 0.74rem/1.35 var(--font); color: #3d4a36;
  background: #f1f4ec; border: 1px solid rgba(80, 110, 60, 0.14);
}
.card.dish .dish-alg {
  list-style: none; margin: 10px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.card.dish .dish-alg .alg {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px 3px 6px; border-radius: 8px;
  font: 600 0.74rem/1.35 var(--font); color: #6b3a0c;
  background: #fff5e6; border: 1px solid #f0d6ab;
}
.card.dish .alg-ico, .card.dish .diet > span[aria-hidden] { font-size: 0.86rem; line-height: 1; }
.card.dish .dish-may {
  margin: 8px 0 0; display: flex; gap: 6px; align-items: baseline;
  font-size: 0.78rem; line-height: 1.4; color: #7a4a0c;
}
.card.dish .dish-may > span { color: #b7791f; }

.card.dish .dish-foot {
  margin-top: auto; padding-top: 14px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.card.dish .dish-body > :nth-last-child(2):not(.dish-foot) { margin-bottom: 0; }
.card.dish .dish-ingr { flex: 1 1 8rem; min-width: 0; }
.card.dish .dish-ingr summary {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer; list-style: none;
  min-height: 36px; font: 600 0.8rem/1 var(--font); color: var(--soft-warm);
  border-radius: 8px;
}
.card.dish .dish-ingr summary::-webkit-details-marker { display: none; }
.card.dish .dish-ingr summary::after {
  content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform 0.2s ease; margin-left: 2px;
}
.card.dish .dish-ingr[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.card.dish .dish-ingr summary:hover { color: var(--ink-warm); }
.card.dish .dish-ingr summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card.dish .dish-ingr p { margin: 2px 0 4px; font-size: 0.84rem; line-height: 1.5; color: var(--body-warm); animation: dishImgIn 0.25s ease; }

.card.dish .actions { width: auto; margin: 0 0 0 auto; display: flex; justify-content: flex-end; }
.card.dish .actions button.dish-add {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: auto; max-width: none; min-height: 44px; padding: 0 18px 0 14px;
  border-radius: 999px;
  font: 700 0.9rem/1 var(--font); color: #1d1606;
  background: linear-gradient(180deg, #ecca7e 0%, #d8ad4f 55%, #cfa041 100%);
  border: 1px solid rgba(150, 110, 25, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(120, 85, 10, 0.18), 0 6px 16px -6px rgba(180, 135, 35, 0.55);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.card.dish .actions button.dish-add:hover { filter: brightness(1.04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 20px -6px rgba(180, 135, 35, 0.6); }
.card.dish .actions button.dish-add:active { transform: scale(0.96); }
.card.dish .actions button.dish-add:focus-visible { outline: 2px solid #8a6516; outline-offset: 2px; }
.card.dish .dish-add-plus { font-size: 1.2rem; font-weight: 600; line-height: 1; margin-top: -1px; }
.card.dish .dish-add.is-added { animation: addPop 0.45s ease; }
@keyframes addPop { 0% { transform: scale(1); } 35% { transform: scale(0.9); } 70% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* Compact = a clean list: text left, small photo right, price on the name row */
body.density-compact #menu.grid, body.density-compact #matches.grid { grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 900px) { body.density-compact #menu.grid, body.density-compact #matches.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; } }
body.density-compact .card.dish {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 0; align-items: start;
  border-radius: 14px; padding: 12px 12px 12px 14px;
}
body.density-compact .card.dish .dish-body,
body.density-compact .card.dish .dish-foot { display: contents; }
body.density-compact .card.dish .dish-body > :not(.dish-foot) { grid-column: 1; }
body.density-compact .card.dish .dish-media {
  grid-column: 2; grid-row: 1 / span 4; width: 84px; height: 84px; aspect-ratio: auto; border-radius: 12px;
}
body.density-compact .card.dish .actions { grid-column: 2; grid-row: 5 / span 4; align-self: end; justify-self: end; margin: 8px 0 0; }
body.density-compact .card.dish.no-photo .actions { grid-row: 1 / span 8; }
body.density-compact .card.dish.no-photo::before { left: 0; top: 14px; width: 3px; height: 28px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #e6c170, #cfa041); }
body.density-compact .card.dish h3.dish-name { font-size: 1.18rem; }
body.density-compact .card.dish .dish-price { font-size: 0.94rem; }
body.density-compact .card.dish .dish-desc {
  margin-top: 3px; font-size: 0.84rem; line-height: 1.42;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body.density-compact .card.dish .dish-diet { margin-top: 6px; gap: 4px; }
body.density-compact .card.dish .diet { font-size: 0.68rem; padding: 1px 7px 1px 5px; }
body.density-compact .card.dish .dish-alg { margin-top: 6px; gap: 4px; }
body.density-compact .card.dish .dish-alg .alg { font-size: 0.68rem; padding: 1px 6px 1px 4px; border-radius: 6px; }
body.density-compact .card.dish .alg-ico { font-size: 0.76rem; }
body.density-compact .card.dish .dish-may { margin-top: 5px; font-size: 0.72rem; }
body.density-compact .card.dish .dish-ingr { display: none; }
body.density-compact .card.dish .dish-ribbon { position: static; margin: 0 0 5px; padding: 2px 7px; font-size: 0.58rem; box-shadow: none; background: #fbf2dc; justify-self: start; }
body.density-compact .card.dish .actions button.dish-add { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; }
body.density-compact .card.dish .dish-add-lbl { display: none; }
body.density-compact .card.dish .dish-add-plus { font-size: 1.4rem; }

/* Allergen filter: this menu's allergens first, the rest one tap away */
.toggle-chip .chip-ico { margin-right: 4px; font-size: 0.95em; }
.chip-group-lbl { flex-basis: 100%; margin: 0 0 2px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft-warm); }
.chip-more {
  min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 0.84rem; font-weight: 600;
  background: transparent; color: var(--gold-ink); border: 1px dashed rgba(170, 125, 30, 0.55); box-shadow: none;
}
.chip-more:hover { background: #fbf2dc; color: var(--ink-warm); border-color: rgba(170, 125, 30, 0.75); box-shadow: none; }
.chip-more-list { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: inherit; animation: dishImgIn 0.25s ease; }

/* Header style: photo only keeps the name for screen readers; text only has no photo */
header.app.hero.hero--photo-only.has-custom-header .hero-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.hero-line[hidden] { display: none !important; }

/* Bottom bar shortcut + bestsellers sheet */
.composer-tools .best-btn { font-weight: 650; color: var(--gold-ink); display: inline-flex; align-items: center; gap: 0.35rem; }
.composer-tools .best-btn[hidden] { display: none !important; }
.best-root[hidden] { display: none !important; }
.best-backdrop {
  position: fixed; inset: 0; z-index: 70; background: rgba(12, 10, 6, 0.5);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.2s ease;
}
.best-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 71;
  max-width: 560px; margin: 0 auto;
  background: var(--paper); border-radius: 22px 22px 0 0;
  padding: 0.4rem 0 calc(1rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.28);
  max-height: min(84vh, 720px); display: flex; flex-direction: column;
  transform: translateY(24px); opacity: 0; transition: transform 0.24s cubic-bezier(.2, .8, .2, 1), opacity 0.2s ease;
}
.best-root.is-open .best-backdrop { opacity: 1; }
.best-root.is-open .best-sheet { transform: none; opacity: 1; }
@media (min-width: 720px) { .best-sheet { bottom: 1.5rem; border-radius: 22px; } }
.best-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 0.5rem 1.15rem 0.4rem; }
.best-title { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.75rem; line-height: 1.1; color: var(--ink-warm); }
.best-sub { margin: 4px 0 0; font-size: 0.82rem; color: var(--soft-warm); }
.best-close {
  flex: 0 0 auto; width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%;
  background: #f4efe4; color: var(--ink-warm); border: 1px solid var(--hair); box-shadow: none; font-size: 0.95rem;
}
.best-body { overflow-y: auto; padding: 0.2rem 0 0.4rem; overscroll-behavior: contain; }
.best-group { padding: 0.6rem 0 0.3rem; }
.best-group-h {
  margin: 0 1.15rem 0.55rem; font: 700 0.72rem/1.2 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink);
}
.best-strip {
  display: flex; gap: 12px; overflow-x: auto; padding: 2px 1.15rem 8px;
  scroll-snap-type: x mandatory; scroll-padding: 0 1.15rem; scrollbar-width: none;
}
.best-strip::-webkit-scrollbar { display: none; }
.best-item {
  position: relative; flex: 0 0 152px; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--hair); border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 18px -10px rgba(40, 30, 10, 0.25);
  display: flex; flex-direction: column;
}
.best-ph {
  width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 30% 20%, #fbf3df 0%, #f1e6cc 60%, #e9dbb9 100%);
  font-family: var(--display); font-weight: 600; font-size: 3.4rem; line-height: 1; color: rgba(133, 98, 26, 0.55);
}
.best-media { width: 100%; aspect-ratio: 4 / 3; background: linear-gradient(140deg, #f4eee2, #ebe2d0); }
.best-media img { width: 100%; height: 100%; object-fit: cover; display: block; animation: dishImgIn 0.4s ease both; }
.best-txt { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.best-rank { font: 700 0.66rem/1 var(--font); color: var(--gold-ink); letter-spacing: 0.06em; }
.best-rank::before { content: "#"; }
.best-name {
  all: unset; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1.08rem; line-height: 1.15;
  color: var(--ink-warm); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  padding-right: 0; min-height: 2.3em; overflow-wrap: anywhere;
}
.best-name:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.best-price { font: 650 0.86rem/1.2 var(--font); color: var(--gold-ink); font-variant-numeric: tabular-nums; margin-top: auto; }
.best-add {
  position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; min-height: 40px; padding: 0;
  border-radius: 50%; font-size: 1.35rem; font-weight: 600; line-height: 1; color: #1d1606;
  background: linear-gradient(180deg, #ecca7e 0%, #d8ad4f 55%, #cfa041 100%);
  border: 1px solid rgba(150, 110, 25, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 12px -4px rgba(180, 135, 35, 0.6);
}
.best-add { top: calc(152px * 0.75 - 20px); bottom: auto; }
.best-add.is-added { animation: addPop 0.45s ease; }
@media (prefers-reduced-motion: reduce) {
  .card.dish, .card.dish .dish-media img, .best-sheet, .best-backdrop { transition: none !important; animation: none !important; }
  .card.dish:hover { transform: none !important; }
}

/* Warm cream canvas + serif venue name: the brand, not a grey app */
:root { --bg: #f7f3ea; }
header.app .hero-text h1 { font-family: var(--display); font-weight: 600; letter-spacing: 0.01em; font-size: 2.3rem; line-height: 1.05; }
@media (min-width: 720px) { header.app .hero-text h1 { font-size: 2.9rem; } }
.best-item.no-photo .best-rank { display: none; }
/* Never the black generic hover on the gold / light controls */
.basket-fab:hover { background: linear-gradient(180deg, var(--accent-bright), var(--accent)); color: #1a1408; filter: brightness(1.04); }
.best-add:hover { background: linear-gradient(180deg, #ecca7e 0%, #d8ad4f 55%, #cfa041 100%); color: #1d1606; filter: brightness(1.05); }
.best-close:hover { background: #efe7d6; color: var(--ink-warm); border-color: var(--hair); }
.best-ph { font-variant-numeric: lining-nums; }

/* v90 header photo follows the photo's own shape (set in JS as --hero-h), capped at 60vh */
header.app.hero.has-custom-header:not(.hero--photo-whole) {
  min-height: var(--hero-h, clamp(210px, 52vw, 340px));
}
header.app.hero.has-custom-header:not(.hero--photo-whole) .hero-media img { transition: none; }

/* v91 photo header readability: soft warm scrim under the name, soft text shadow,
   controls in a small glass pill so they never sit bare on a busy photo */
header.app.hero.has-custom-header:not(.hero--photo-whole)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none;
  height: min(72%, 300px);
  background: linear-gradient(to top, rgba(30, 20, 10, 0.66) 0%, rgba(30, 20, 10, 0.42) 38%, rgba(30, 20, 10, 0.14) 72%, rgba(30, 20, 10, 0) 100%);
}
header.app.hero.has-custom-header:not(.hero--photo-whole) .hero-text h1 {
  text-shadow: 0 1px 2px rgba(20, 12, 4, 0.45), 0 4px 22px rgba(20, 12, 4, 0.45);
}
header.app.hero.has-custom-header:not(.hero--photo-whole) .hero-line,
header.app.hero.has-custom-header:not(.hero--photo-whole) .meta {
  color: rgba(255, 250, 240, 0.95);
  text-shadow: 0 1px 2px rgba(20, 12, 4, 0.5), 0 2px 14px rgba(20, 12, 4, 0.45);
}
header.app.hero.has-custom-header:not(.hero--photo-whole) .header-tools {
  width: auto; align-self: center; flex-wrap: nowrap; gap: 6px;
  padding: 4px; border-radius: 999px;
  background: rgba(255, 248, 235, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 6px 20px rgba(20, 12, 4, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px) saturate(1.15); backdrop-filter: blur(12px) saturate(1.15);
}
header.app.hero.has-custom-header:not(.hero--photo-whole) .header-tools #langSelect {
  border-radius: 999px; border-color: transparent; padding: 0.3rem 0.55rem; min-height: 32px;
  background: rgba(255, 255, 255, 0.92);
}
header.app.hero.has-custom-header:not(.hero--photo-whole) .header-tools .density-toggle {
  width: auto; border-color: transparent; background: rgba(255, 255, 255, 0.92);
}
header.app.hero.has-custom-header:not(.hero--photo-whole) .header-tools .density-btn { flex: 0 0 auto; }

/* v91 search bar: on phones the find button is a round magnifier so the field has room */
#btnSearch .search-ico { display: none; }
@media (max-width: 520px) {
  .composer .icon-btn#btnSearch { width: 3.25rem; min-width: 3.25rem; padding: 0; }
  #btnSearch .search-ico { display: block; margin: 0 auto; }
  #btnSearch .btn-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .composer input#ask { font-size: 1rem; padding: 0 0.9rem; }
  .composer input#ask::placeholder { font-size: 0.95rem; }
}

/* error state: owner contact line */
.owner-contact { margin: 0.4rem 1rem 1rem; text-align: center; font-size: 0.85rem; color: #7a6f62; }
.owner-contact a { color: #8a6420; font-weight: 600; word-break: break-word; }

/* Unknown / deleted venue: only the message and the owner contact. */
body.venue-missing #densityToggle, body.venue-missing #catChips, body.venue-missing #howto,
body.venue-missing #filterDock, body.venue-missing #browseOnlyBanner, body.venue-missing #modeHint,
body.venue-missing #menuScroll, body.venue-missing #composer, body.venue-missing #heroLine,
body.venue-missing .mode-hint, body.venue-missing #chips { display: none !important; }
body.venue-missing #status { margin-top: 2.5rem; font-size: 1.15rem; text-align: center; }
body.venue-missing .owner-contact { text-align: center; }
#menuRetry { display: block; margin: 0.75rem auto; }

.menu-empty { text-align: center; padding: 2rem 1rem; font-size: 1.05rem; }

/* Sold out tonight: stays on the menu, greyed, at the end of its section, not addable. */
.card.dish.sold-out { filter: grayscale(.85); }
.card.dish.sold-out .dish-media, .card.dish.sold-out .dish-body > :not(.dish-foot) { opacity: .5; }
.card.dish.sold-out .dish-media img { filter: grayscale(1); }
.dish-soldout-badge {
  display: inline-flex; align-items: center; padding: .3rem .7rem; border-radius: 999px;
  background: #ECEEF1; color: #3d434b; font-weight: 700; font-size: .85rem; letter-spacing: .02em;
  border: 1px solid #D5D9E0;
}

/* === v97 (Oct 2026): welcome = one tap, no shouty kicker; «your order» pill until the table closes === */
.welcome-kicker { text-transform: none !important; letter-spacing: 0 !important; font-weight: 600; font-size: 0.95rem; }
.welcome-lang { cursor: pointer; }
.my-order-pill {
  position: fixed; z-index: 45;
  left: max(0.85rem, env(safe-area-inset-left));
  bottom: calc(var(--composer-h) + 0.55rem + 8px);
  display: inline-flex; align-items: center; gap: 0.5rem;
  max-width: calc(100vw - 2 * 0.85rem - 56px - 1rem);
  min-height: 40px; padding: 0.45rem 0.95rem 0.45rem 0.8rem;
  border-radius: 999px; border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.96); color: #1a1408;
  font: 600 0.88rem/1.2 inherit; text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.my-order-pill span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-order-pill .mop-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #E0A526; box-shadow: 0 0 0 3px rgba(224, 165, 38, 0.22); }
.my-order-pill.is-served .mop-dot { background: #3E9A5B; box-shadow: 0 0 0 3px rgba(62, 154, 91, 0.2); }
body.has-basket-open .my-order-pill { opacity: 0; pointer-events: none; }
@media (min-width: 720px) { .my-order-pill { bottom: calc(1.25rem + 8px + env(safe-area-inset-bottom, 0px)); left: auto; right: calc(max(1rem, env(safe-area-inset-right)) + 140px); } }

/* ——— BATCH 3 guest polish (Oct 2026) ——— */
/* No uppercase eyebrows or pill labels anywhere on the guest menu. */
.badge, .section-title, .filter-label, .chip-group-lbl, .best-group-h, .welcome-kicker,
.card-media.placeholder, .card-media.no-img, .chip.mode {
  text-transform: none !important; letter-spacing: 0 !important;
}
/* The "Full menu" eyebrow is gone: the section titles already say what follows. */
#menuTitle { display: none !important; }
.section-title { font-size: 0.95rem; font-weight: 600; color: var(--soft-warm); text-align: center; }
/* No gold tab on cards without a photo. */
.card.dish.no-photo::before, body.density-compact .card.dish.no-photo::before { content: none; display: none; }

/* Centered section separators: a hairline, the name, a hairline. */
.grid > .menu-sec {
  justify-content: center; text-align: center; gap: 16px;
  margin: 26px 2px 4px; font-size: 1.6rem;
}
.grid > .menu-sec:first-child { margin-top: 6px; }
.grid > .menu-sec::before, .grid > .menu-sec::after {
  content: ""; flex: 1 1 0; max-width: 7rem; height: 1px;
}
.grid > .menu-sec::before { background: linear-gradient(270deg, rgba(212, 168, 75, 0.75), rgba(212, 168, 75, 0)); }
.grid > .menu-sec::after { background: linear-gradient(90deg, rgba(212, 168, 75, 0.75), rgba(212, 168, 75, 0)); }

/* Hero tools without a photo: one compact centred row, not a full-width toggle. */
header.app.hero:not(.has-custom-header) .header-tools { width: auto; justify-content: center; flex-wrap: nowrap; }
header.app.hero:not(.has-custom-header) .density-toggle { width: auto; }
header.app.hero:not(.has-custom-header) .density-btn { flex: 0 0 auto; padding: 0.35rem 0.7rem; }
/* At a table the "Table 2" chip already says it: hide the duplicate read-only field. */
.table-inline.is-locked { display: none !important; }

/* "How to order": a quiet link-style row, not another box. */
.howto { background: transparent; border: 0; box-shadow: none; padding: 0.15rem 0.2rem; margin: 0 0 0.5rem; }
.howto summary { color: var(--gold-ink); font-weight: 600; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 36px; }
.howto summary::before { content: none; }
.howto summary::after { content: ""; width: 0.45rem; height: 0.45rem; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s ease; }
.howto[open] summary::after { transform: rotate(45deg); }
.howto[open] { background: var(--paper); border: 1px solid var(--hair); border-radius: 14px; padding: 0.4rem 0.9rem 0.6rem; }

/* Filters: three compact equal buttons in one row; the open one takes the full width. */
.filter-dock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; grid-auto-flow: row dense; }
.filter-acc[open] { grid-column: 1 / -1; }
.filter-acc-sum { justify-content: center; text-align: center; padding: 0.55rem 0.5rem; min-height: 46px; font-size: 0.88rem; gap: 0.35rem; line-height: 1.2; }
.filter-acc-sum::after { content: ""; flex: 0 0 auto; width: 0.4rem; height: 0.4rem; border-right: 1.6px solid var(--gold-ink); border-bottom: 1.6px solid var(--gold-ink); transform: rotate(45deg) translateY(-2px); font-size: 0; }
.filter-acc[open] > .filter-acc-sum::after { transform: rotate(-135deg) translateY(-1px); }
.filter-acc-count { margin: 0; }

/* Search: the same logo-gold as every other button (was orange). */
.composer .icon-btn#btnSearch {
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 100%);
  color: #1c1408; box-shadow: 0 4px 14px rgba(201, 162, 39, 0.3);
}
/* The quick actions stay on one line; "Clear filters" only shows when there is something to clear. */
.composer-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
.composer-tools::-webkit-scrollbar { display: none; }
.composer-tools .ghost { flex: 0 0 auto; white-space: nowrap; }
#btnClear[hidden] { display: none !important; }

/* Review thank-you: five stars instead of an emoji, calmer card. */
.review-stars { display: flex; justify-content: center; gap: 4px; margin: 0 0 0.75rem; color: #e2b54b; }
.review-stars svg { width: 26px; height: 26px; fill: currentColor; }
.review-card h3 { font-family: var(--display); font-size: 1.85rem; font-weight: 600; letter-spacing: 0; }
.review-close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; min-height: 40px; padding: 0;
  border-radius: 50%; border: 0; background: transparent; color: var(--soft-warm); font-size: 1.1rem; box-shadow: none;
}
.review-card { position: relative; }
a.review-cta, a.review-cta:visited { border-radius: 999px; color: #1c1408; }
#btnSkipReview.secondary { border-radius: 999px; background: transparent; border-color: transparent; }
.filter-acc-sum::after { margin-left: 0.3rem; }

/* ——— BATCH 3 owner theming: shape, accent and background come from variables ———
 * static/theme.js sets these on <html> from the owner's choice; the defaults below are the house gold,
 * so a venue that never touches the theme looks exactly as before. */
:root {
  --on-accent: #1c1408;
  --accent-rgb: 212, 168, 75;
  --t-line: rgba(212, 168, 75, 0.32);
  --t-glow: rgba(201, 162, 39, 0.3);
  --t-radius: 999px;
  --t-radius-box: 14px;
}
html, body { background-color: var(--bg); }
.cat-chip { border-radius: var(--t-radius); }
.cat-chip:hover { border-color: var(--t-line); }
.cat-chip.on { background: linear-gradient(180deg, var(--accent-bright), var(--accent)); border-color: var(--accent); color: var(--on-accent); }
.mic-huge { border-radius: var(--t-radius) !important; color: var(--on-accent) !important; box-shadow: 0 6px 20px var(--t-glow) !important; }
.composer .icon-btn#btnSearch { border-radius: var(--t-radius); color: var(--on-accent); box-shadow: 0 4px 14px var(--t-glow); }
.composer input#ask { border-radius: var(--t-radius); }
.composer-tools .ghost { border-radius: var(--t-radius); }
.composer #btnBill { border-color: var(--t-line); color: var(--gold-ink); }
.card.dish .actions button.dish-add, .best-add, .best-add:hover {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent)); color: var(--on-accent); border-color: var(--t-line);
}
.card.dish .actions button.dish-add { border-radius: var(--t-radius); }
html[data-theme-shape="soft"] .best-add, html[data-theme-shape="square"] .best-add { border-radius: var(--t-radius); }
.basket-fab, .basket-fab:hover { background: linear-gradient(180deg, var(--accent-bright), var(--accent)); color: var(--on-accent); border-radius: var(--t-radius); }
a.review-cta, a.review-cta:visited { border-radius: var(--t-radius); color: var(--on-accent); box-shadow: 0 4px 16px var(--t-glow); }
#btnSkipReview.secondary { border-radius: var(--t-radius); }
.welcome-lang { border-radius: min(var(--t-radius), 14px); }
.welcome-lang.on { color: var(--on-accent); box-shadow: 0 0 0 3px var(--t-line); }
.welcome-go { border-radius: var(--t-radius); }
.filter-acc { background: var(--cream); border-color: var(--t-line); border-radius: var(--t-radius-box); }
.filter-acc-body { border-top-color: var(--t-line); }
.filter-acc-count { background: var(--accent); color: var(--on-accent); }
.toggle-chip, .large-chips .toggle-chip { border-radius: var(--t-radius); }
.toggle-chip:hover { border-color: var(--accent); }
.toggle-chip.diet.on, .toggle-chip.diet.hot { border-color: var(--t-line); color: var(--gold-ink); }
.density-toggle, .density-btn { border-radius: var(--t-radius); }
.density-btn.is-on, .density-btn.is-on:hover { background: var(--accent); color: var(--on-accent); }
#langSelect { border-radius: var(--t-radius); }
.howto summary { color: var(--gold-ink); }
.grid > .menu-sec::before { background: linear-gradient(270deg, rgba(var(--accent-rgb), 0.75), rgba(var(--accent-rgb), 0)); }
.grid > .menu-sec::after { background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.75), rgba(var(--accent-rgb), 0)); }
.card.dish:hover { border-color: var(--t-line); }
html[data-theme-bg="white"] .card.dish { border-color: rgba(20, 20, 20, 0.1); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
html[data-theme-bg="white"] .filter-acc { background: var(--cream); }
html.md-themed .composer { background: var(--bg); border-top-color: var(--t-line); }
html.md-themed .sticky-cats { background: var(--bg); }

/* ——— BATCH 3b guest (Oct 2026): chips, bill, basket, thank-you, compact top ——— */
:root { --espresso: #2a2017; --espresso-ink: #fbf6ea; --fab-badge: var(--accent); --fab-badge-ink: var(--on-accent); }

/* Active filters from voice or search: clear chips, a big × each, one calm clear-all. */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.5rem; margin: 0.15rem 0 0.55rem; }
.active-filters[hidden] { display: none !important; }
.active-filters .chips { display: contents; }
.chip.removable {
  min-height: 40px; padding: 0.25rem 0.3rem 0.25rem 0.9rem; gap: 0.45rem;
  font-size: 0.92rem; font-weight: 600; line-height: 1.2; border-radius: var(--t-radius);
  background: var(--paper, #fffdf8); border: 1.5px solid rgba(var(--accent-rgb), 0.55); color: var(--ink-warm, #2a2017);
}
.chip.removable.allergen { background: #fff4f2; border-color: #e9b4ac; color: #8f3226; }
.chip .chip-x {
  position: relative; flex: none; width: 32px; height: 32px; min-height: 32px; padding: 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 0; box-shadow: none; opacity: 1;
  background: rgba(42, 32, 23, 0.09); color: inherit; cursor: pointer;
}
.chip .chip-x::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.chip.allergen .chip-x { background: rgba(143, 50, 38, 0.12); }
.chip .chip-x:hover, .chip .chip-x:focus-visible { background: rgba(42, 32, 23, 0.18); opacity: 1; }
.chip.allergen .chip-x:hover, .chip.allergen .chip-x:focus-visible { background: rgba(143, 50, 38, 0.22); }
.clear-all, .clear-all:hover {
  appearance: none; background: none; border: 0; box-shadow: none; filter: none;
  min-height: 40px; padding: 0 0.35rem; color: var(--soft-warm, #6f6252);
  font: inherit; font-size: 0.86rem; font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(111, 98, 82, 0.4); text-underline-offset: 3px; cursor: pointer;
}
.clear-all:hover { color: var(--ink-warm, #2a2017); text-decoration-color: currentColor; }
.clear-all[hidden] { display: none !important; }
.active-filters.only-clear { margin-top: -0.2rem; }

/* «Pedir la cuenta»: a real button with an icon, sitting apart at the right of the row. */
.composer-tools { align-items: center; }
.composer #btnBill.bill-btn {
  display: inline-flex; align-items: center; gap: 0.45rem; flex: 0 0 auto; margin-left: auto;
  min-height: 42px; padding: 0 1rem 0 0.85rem; white-space: nowrap;
  border-radius: var(--t-radius); border: 1.5px solid rgba(42, 32, 23, 0.78);
  background: var(--paper, #fffdf8); color: var(--ink-warm, #2a2017);
  font-size: 0.9rem; font-weight: 650; box-shadow: 0 1px 2px rgba(42, 32, 23, 0.08); filter: none;
}
.composer #btnBill.bill-btn[hidden] { display: none !important; }
.composer #btnBill.bill-btn:hover { background: #fff; border-color: var(--ink-warm, #2a2017); }
.composer #btnBill.bill-btn:focus-visible { outline: 3px solid rgba(var(--accent-rgb), 0.55); outline-offset: 2px; }
.composer #btnBill.bill-btn .bill-ico { flex: none; }
.composer #btnBill.bill-btn.is-busy, .composer #btnBill.bill-btn:disabled { opacity: 0.5; }

/* Basket button: espresso with a gold count, so it reads on gold and cream alike (and on every theme). */
.basket-fab, .basket-fab:hover {
  background: var(--espresso); color: var(--espresso-ink); filter: none;
  border: 1px solid rgba(255, 255, 255, 0.06); border-radius: var(--t-radius);
  min-height: 54px; padding: 0.45rem 1rem 0.45rem 0.85rem; gap: 0.5rem; max-width: min(60vw, 13rem);
  box-shadow: 0 10px 26px rgba(28, 20, 8, 0.34), 0 2px 6px rgba(28, 20, 8, 0.22);
}
.basket-fab:hover { background: #33281d; }
.basket-fab:focus-visible { outline: 3px solid rgba(var(--accent-rgb), 0.7); outline-offset: 3px; }
.basket-fab-ico { width: 22px; height: 22px; flex: none; font-size: 0; }
.basket-fab-count {
  background: var(--fab-badge); color: var(--fab-badge-ink);
  min-width: 1.55rem; height: 1.55rem; font-size: 0.82rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.basket-fab-total { color: var(--espresso-ink); opacity: 1; font-size: 0.92rem; max-width: 6rem; font-variant-numeric: tabular-nums; }

/* Basket sheet: dish, quantity, price; then note, total and send. No blur behind it (slow on phones). */
.basket-backdrop { background: rgba(28, 20, 8, 0.42); -webkit-backdrop-filter: none; backdrop-filter: none; }
.basket-sheet { background: var(--paper, #fffdf8); border-color: var(--hair, rgba(42, 32, 23, 0.1)); padding: 0.35rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); gap: 0.4rem; animation-duration: 0.18s; }
.basket-sheet-handle { background: rgba(42, 32, 23, 0.16); }
.basket-head { padding: 0.1rem 0 0.2rem; }
.basket-head strong { font-family: var(--display); font-size: 1.45rem; font-weight: 600; letter-spacing: 0; color: var(--ink-warm, #2a2017); }
.basket-close, .basket-close:hover { width: 40px; height: 40px; min-height: 40px; padding: 0; border: 0; background: rgba(42, 32, 23, 0.06); color: var(--ink-warm, #2a2017); box-shadow: none; }
.basket-close:hover, .basket-close:focus-visible { background: rgba(42, 32, 23, 0.12); }
.basket-list { gap: 0; contain: content; }
.basket-row, .basket-row.no-photo {
  display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: center;
  padding: 0.7rem 0; background: transparent; border-radius: 0; border-bottom: 1px solid var(--hair, rgba(42, 32, 23, 0.1));
}
.basket-row.no-photo { grid-template-columns: minmax(0, 1fr) auto; padding-left: 0; }
.basket-row:last-child { border-bottom: 0; }
.basket-row-img { width: 3.25rem; height: 3.25rem; border-radius: 12px; }
.basket-row-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.basket-row-main .basket-row-name {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal;
  font-size: 0.98rem; font-weight: 650; line-height: 1.25; color: var(--ink-warm, #2a2017);
}
.basket-row-each, .basket-row-who { font-size: 0.78rem; color: var(--soft-warm, #6f6252); }
.basket-row-each[hidden], .basket-row-who[hidden] { display: none; }
.basket-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.basket-row-side .basket-row-price { margin: 0; font-size: 0.98rem; font-weight: 700; color: var(--ink-warm, #2a2017); font-variant-numeric: tabular-nums; }
.basket-row-side .basket-row-price:empty { display: none; }
.qty-stepper {
  display: inline-flex; align-items: center; height: 40px;
  border: 1.5px solid rgba(var(--accent-rgb), 0.5); border-radius: var(--t-radius); background: var(--cream, #fbf6ea);
}
.qty-stepper .qty-btn, .qty-stepper .qty-btn:hover {
  width: 40px; height: 37px; min-height: 37px; padding: 0; margin: 0; border: 0; box-shadow: none; filter: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--ink-warm, #2a2017); border-radius: var(--t-radius); cursor: pointer;
  touch-action: manipulation;
}
.qty-stepper .qty-btn:hover, .qty-stepper .qty-btn:focus-visible { background: rgba(var(--accent-rgb), 0.16); }
.qty-stepper .qty-btn.is-remove { color: #8f3226; }
.qty-stepper .qty-val { min-width: 1.5rem; text-align: center; font-weight: 700; font-size: 0.98rem; font-variant-numeric: tabular-nums; color: var(--ink-warm, #2a2017); }
.basket-footer { gap: 0.5rem; padding-top: 0.55rem; border-top: 1px solid var(--hair, rgba(42, 32, 23, 0.1)); }
.basket-footer .order-note-lbl { margin: 0; font-size: 0.82rem; font-weight: 600; color: var(--soft-warm, #6f6252); }
.basket-footer .order-note {
  width: 100%; min-height: 44px; resize: none; margin: 0; padding: 0.6rem 0.8rem; box-sizing: border-box;
  font: inherit; font-size: 16px; line-height: 1.35; color: var(--ink-warm, #2a2017);
  background: #fff; border: 1px solid rgba(42, 32, 23, 0.16); border-radius: min(var(--t-radius-box), 12px);
}
.basket-footer .order-note:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.22); }
.basket-total-row { font-size: 1rem; font-weight: 600; color: var(--ink-warm, #2a2017); padding-top: 0.15rem; }
.basket-total-row strong { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.basket-submit, .basket-submit:hover {
  min-height: 52px; font-size: 1.02rem; font-weight: 700; border: 0; filter: none;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent)); color: var(--on-accent);
  border-radius: var(--t-radius); box-shadow: 0 6px 18px var(--t-glow);
}
.basket-submit:hover { filter: brightness(1.04); }
.order-note-echo { margin: 0.4rem 0 0; white-space: pre-wrap; }

/* ¡Gracias!: a check, one word, one button. */
.thanks-card { position: relative; max-width: 320px; text-align: center; padding: 1.7rem 1.4rem 1.3rem; }
.thanks-mark {
  width: 56px; height: 56px; margin: 0 auto 0.75rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent)); color: var(--on-accent);
  box-shadow: 0 6px 18px var(--t-glow);
}
.thanks-mark svg { width: 30px; height: 30px; }
.thanks-card h3 { font-family: var(--display); font-size: 2rem; font-weight: 600; letter-spacing: 0; margin: 0 0 1.1rem; color: var(--ink-warm, #2a2017); }
.thanks-close, .thanks-close:hover {
  width: 100%; min-height: 44px; border: 0; font-weight: 700; font-size: 0.95rem;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent)); color: var(--on-accent);
  border-radius: var(--t-radius); box-shadow: 0 4px 14px var(--t-glow); filter: none;
}

/* Compact top on a 390 phone: less air between the hero, categories, filters and the first dish. */
.howto { margin: 0 0 0.3rem; }
.howto summary { min-height: 32px; }
.filter-dock { margin-bottom: 0.5rem; }
.filter-acc-sum { min-height: 42px; padding: 0.4rem 0.5rem; }
.grid > .menu-sec { margin: 18px 2px 2px; }
.grid > .menu-sec:first-child { margin-top: 0; }
@media (max-width: 520px) {
  .composer { padding-top: 0.5rem; padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px)); }
  .composer input#ask { height: 3rem; }
  .composer .icon-btn#btnSearch { height: 3rem; width: 3rem; min-width: 3rem; }
  .mic-huge { width: 3rem !important; height: 3rem !important; min-width: 3rem !important; font-size: 1.3rem !important; }
  .composer-tools { margin-top: 0.35rem; padding-top: 0.1rem; }
  .composer-tools .ghost { min-height: 40px; }
}
.sticky-cats { padding-bottom: 0.35rem; margin-bottom: 0.3rem; }
.filter-dock { margin-top: 0.15rem; }
#thanksModal.modal-bg { align-items: center; }
.howto { padding-top: 0; padding-bottom: 0; } .howto summary { min-height: 32px; }

/* v102 server-rendered header: the photo header has its final height from the first paint
   (same formula as fitHeroToPhoto in guest.js), so nothing below it jumps when the menu loads. */
.hero-box { container-type: inline-size; }
header.app.hero.has-custom-header:not(.hero--photo-whole)[data-ratio] {
  min-height: var(--hero-h, clamp(210px, calc(100cqw / var(--hero-ratio)), min(60svh, 600px)));
}
/* Chip row height kept from first paint (server marks it when the menu has dishes): 0.15 + 0.85rem padding + one chip. */
.cat-chips--reserve { min-height: calc(1rem + 0.88rem * 1.2 + 1.1rem + 2px); }
.menu--reserve:empty { min-height: 100vh; min-height: 100svh; }

/* ===== v7 polish (frontend audit 2026-10-14) ===== */
:root { --font: "Overpass", "Overpass Fallback", "Inter", system-ui, -apple-system, sans-serif; --serif: "Overpass", "Overpass Fallback", "Inter", system-ui, -apple-system, sans-serif; }
.mi { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.2em; flex: none; }
.card.dish .alg-ico, .card.dish .diet > span[aria-hidden], .toggle-chip .chip-ico { display: inline-flex; align-items: center; font-size: 1rem; }
.card.dish .dish-desc { font-size: 1rem; line-height: 1.5; }
.card.dish .dish-alg .alg, .card.dish .diet { font-size: 0.82rem; }
.card.dish .dish-may { font-size: 0.85rem; }
.card.dish .dish-may .mi { vertical-align: -0.15em; }
body.density-compact .card.dish .dish-desc { font-size: 0.94rem; }
body.density-compact .card.dish .dish-alg .alg { font-size: 0.8rem; }
.allergy-notice .mi { color: #b7791f; }
.best-ph .mi { width: 1.4em; height: 1.4em; }
/* category tabs: clearly scrollable, never read as clipped */
.cat-chips { padding-right: 2rem; -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 44px), transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 44px), transparent 100%); scroll-padding-inline: 1rem; }
.cat-chips::after { content: ""; flex: 0 0 1.5rem; }
/* calmer surfaces: tone steps instead of resting shadows */
.card.dish, .filter-acc { box-shadow: none !important; }
