:root { --fs-sm: 14px; --fs-md: 16px; --fs-lg: 20px; --fs-xl: 24px; --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --tap: 48px; --bg: #0b0e15; --surface: #171b24; --surface2: #1c202a; --text: #edf0f6; --muted: #a8aeba; --line: #303541; --accent: #b8ac9c; --on-accent: #1a1612; --radius: 16px; }
:root { --d-instant: 100ms; --d-fast: 150ms; --d-normal: 250ms; --d-slow: 400ms; --ease-enter: cubic-bezier(.2, .8, .2, 1); --ease-exit: cubic-bezier(.4, 0, 1, 1); }
@media (prefers-color-scheme: light) { :root:not([data-theme='dark']) { --bg: #faf6f0; --surface: #fff; --surface2: #f1ebe2; --text: #1f1a15; --muted: #6b6058; --line: #ddd4c8; } }
:root[data-theme='light'] { --bg: #faf6f0; --surface: #fff; --surface2: #f1ebe2; --text: #1f1a15; --muted: #6b6058; --line: #ddd4c8; }
* { box-sizing: border-box; }
html { color-scheme: dark light; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.muted { color: var(--muted); }
.grow { flex: 1; min-width: 0; }
.center { display: grid; place-items: center; gap: 12px; min-height: 60vh; padding: 24px; text-align: center; }
.hero, main, nav.cats { max-width: 720px; margin: 0 auto; }
.cover { display: block; width: 100%; height: auto; aspect-ratio: 8 / 3; object-fit: cover; background: var(--surface2); border-radius: 0 0 var(--radius) var(--radius); }
.head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 4px; }
.head h1 { font-size: 20px; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; background: var(--surface2); }
.addr { padding: 0 16px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; background: transparent; color: inherit; font: inherit; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; white-space: nowrap; }
.banner { margin: 10px 16px 0; padding: 10px 12px; border-radius: 12px; background: var(--surface2); }
.catsbar { position: sticky; top: 0; z-index: 3; max-width: 720px; margin: 14px auto 0; background: var(--bg); border-bottom: 1px solid var(--line); }
/* the bar fades into the page at its right edge: more categories are there, scroll */
.catsbar::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 32px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--bg)); }
nav.cats { display: flex; gap: 16px; overflow-x: auto; padding: 0 40px 0 16px; scrollbar-width: none; }
nav.cats a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }
nav.cats a { flex: none; min-height: 48px; display: inline-flex; align-items: center; padding: 0 4px; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 600; text-decoration: none; font-size: 15px; }
main { padding: 0 16px 120px; }
section { scroll-margin-top: 64px; }
section h2 { font-size: 20px; margin: 22px 0 8px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.dish { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.dish img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface2); }
.dbody { flex: 1; display: flex; flex-direction: column; gap: var(--s1); padding: var(--s3) var(--s3) 56px; }
.dish h3 { font-size: var(--fs-md); font-weight: 600; line-height: 1.25; }
.dish h3 a { text-decoration: none; }
.dish.off { opacity: .55; cursor: default; }
.dish.off .dbody { padding-bottom: var(--s3); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.clamp { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { margin-top: auto; padding-top: 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
.price .in { color: var(--muted); font-weight: 400; }
.plus, .qty { position: absolute; right: var(--s2); bottom: var(--s2); }
.plus { width: var(--tap); height: var(--tap); border: 0; border-radius: 12px; background: var(--surface2); color: var(--text); font-size: 24px; line-height: 1; }
.qty .stepper { padding: 2px; border-radius: 12px; background: var(--surface2); }
.qty .stepper button { width: 44px; height: 44px; }
.primary { border: 0; border-radius: 14px; padding: 14px 18px; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.primary:disabled { opacity: .5; cursor: default; }
.cartbar { position: fixed; left: 12px; right: 12px; bottom: max(16px, env(safe-area-inset-bottom)); max-width: 696px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 56px; border-radius: 16px; box-shadow: 0 8px 24px #0008; z-index: 4; }
footer { padding: 24px 0; text-align: center; }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; margin: auto auto 0; padding: 0; border: 0; border-radius: 22px 22px 0 0; background: var(--surface); color: var(--text); overflow: auto; }
.sheet::backdrop { background: #000a; }
.sheet-body { display: grid; gap: 12px; padding: 0 16px 20px; }
.dish-photo { display: block; width: calc(100% + 32px); margin: 0 -16px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface2); }
.sheet h2 { font-size: 22px; padding-top: 16px; }
.sheet .dish-photo + h2 { padding-top: 0; }
fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 4px; }
legend { padding: 0 0 6px; font-weight: 700; }
legend small { color: var(--muted); font-weight: 400; }
.opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface2); }
.opt span { flex: 1; }
.opt.off { opacity: .5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface2); cursor: pointer; }
.chip small, .chip b { color: var(--muted); font-weight: 400; white-space: nowrap; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip:has(input:checked), .chip.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.chip:has(input:checked)::before, .chip.on::before { content: "\2713"; color: var(--accent); font-weight: 700; }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip.off { opacity: .5; cursor: default; }
.chip .stepper { margin-inline-start: 4px; padding: 0; background: transparent; }
legend .warn { color: var(--accent); font-weight: 600; }
.opt input { width: 20px; height: 20px; accent-color: var(--accent); }
.note { width: 100%; min-height: 60px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: inherit; font: inherit; resize: vertical; }
.sheet-foot { display: flex; gap: 12px; position: sticky; bottom: 0; padding-top: 8px; background: var(--surface); }
.stepper { display: flex; align-items: center; gap: 4px; background: var(--surface2); border-radius: 14px; padding: 4px; }
.stepper button { width: var(--tap); height: var(--tap); border: 0; border-radius: 10px; background: transparent; font-size: 22px; }
.stepper button:disabled { opacity: .35; }
.stepper output { min-width: 24px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.line { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.line img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--surface2); }
.line .grow { display: grid; }
.sum { display: flex; justify-content: space-between; padding: 8px 0; font-size: 18px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .plus, .primary, .dish, .stepper button, .chip { transition: transform var(--d-instant) var(--ease-enter), background-color var(--d-instant) var(--ease-enter); }
  .plus:active, .primary:active { transform: scale(.96); }
  .dish:not(.off):active { transform: scale(.985); }
  .stepper button:active:not(:disabled), .chip:active { transform: scale(.94); }
  .cartbar { animation: cb-in var(--d-normal) var(--ease-enter); }
}
@keyframes cb-in { from { opacity: 0; transform: translateY(12px); } }
/* A tap always shows, with or without motion. */
.stepper button:active:not(:disabled) { background: var(--line); }
.dish:not(.off):active { background: var(--surface2); }
.checkout { max-width: 560px; margin: 0 auto; padding: 0 16px 48px; display: grid; gap: 14px; align-content: start; }
.checkout h1 { font-size: 22px; }
.checkout h2 { font-size: 18px; margin: 10px 0 6px; }
.bar { display: flex; align-items: center; gap: 12px; padding: 14px 0 4px; }
.link { padding: 8px 0; border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; color: var(--muted); }
.field input, .promo input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; font: inherit; }
.field input:focus, .promo input:focus, .note:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.phone { display: flex; align-items: center; gap: 8px; }
.phone b { padding: 0 2px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.seg { display: flex; gap: 8px; margin: 0; padding: 0; border: 0; flex-wrap: wrap; }
.seg label { position: relative; flex: 1; min-width: 96px; text-align: center; padding: 12px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.seg label.on, .seg label:has(input:checked) { border-color: var(--accent); background: var(--surface2); font-weight: 700; }
.seg label small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.seg label.off { opacity: .5; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.geo { display: grid; gap: 6px; }
.zones { margin: 0; padding: 0; border: 0; display: grid; gap: 6px; min-width: 0; }
.promo { display: flex; gap: 8px; }
.summary { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--surface2); }
.summary > div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.summary .grand { padding-top: 6px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 700; }
.err { color: #ff8a80; }
:root[data-theme='light'] .err { color: #b3261e; }
@media (prefers-color-scheme: light) { :root:not([data-theme='dark']) .err { color: #b3261e; } }
.ok { color: #7bd88f; }
.bad { color: #ff8a80; }
.wide { width: 100%; }
.fine { font-size: 13px; text-align: center; }
.order { max-width: 560px; margin: 0 auto; padding: 0 16px 48px; display: grid; gap: 12px; align-content: start; }
.order h1 { font-size: 24px; }
.status { font-size: 20px; font-weight: 700; }
.eta { font-size: 18px; color: var(--accent); font-weight: 600; }
.call { text-align: center; text-decoration: none; }
.appnote { margin-top: 16px; font-size: 13px; text-align: center; }
.road { display: flex; align-items: flex-start; gap: 0; padding: 14px 10px 10px; border-radius: 16px; background: var(--surface2); }
.road .stop { flex: none; width: 78px; display: grid; justify-items: center; gap: 4px; text-align: center; }
.road .stop i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); font-style: normal; }
.road .stop.on i { background: var(--accent); color: var(--on-accent); }
.road .stop small { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.road .lane { position: relative; flex: 1; height: 4px; margin-top: 17px; border-radius: 2px; background: var(--line); }
.road .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); border-radius: 2px; background: var(--accent); transition: transform .6s var(--ease-enter); }
/* The rider moves by transform only: .run is as wide as the lane and slides by its own percentage. */
.road .run { position: absolute; left: 0; top: 0; width: 100%; height: 0; transform: translateX(calc(var(--p, 0) * 100%)); transition: transform .6s var(--ease-enter); }
.road .rider { position: absolute; left: -17px; top: -18px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.steps li { flex: 1; display: grid; gap: 4px; font-size: 12px; color: var(--muted); text-align: center; }
.steps li span { height: 4px; border-radius: 2px; background: var(--line); }
.steps li.on { color: var(--text); }
.steps li.on span { background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .road .fill, .road .run { transition: none; } }
.chip svg { vertical-align: -5px; margin-right: 4px; }
.ocard { display: block; padding: 12px 14px; border-radius: 14px; background: var(--surface2); text-decoration: none; }
.ocard .grow { display: grid; gap: 2px; }
.slot { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; font: inherit; }
.head .chip { flex: none; }
a.primary { display: block; text-align: center; text-decoration: none; }
.groups { display: grid; gap: 12px; }
.checkout-body { display: grid; gap: 14px; }
[hidden] { display: none !important; }
.order-body { display: grid; gap: 12px; }

/* ---- one website: the header, the language switch, the pages beside the menu ---- */
.status-line { font-size: var(--fs-sm); font-weight: 600; color: #7bd88f; }
.status-line.closed { color: var(--muted); }
:root[data-theme='light'] .status-line:not(.closed) { color: #1b7a3a; }
@media (prefers-color-scheme: light) { :root:not([data-theme='dark']) .status-line:not(.closed) { color: #1b7a3a; } }
.langs { display: flex; flex: none; gap: 2px; padding: 2px; border-radius: 999px; background: var(--surface2); }
.langs a { display: grid; place-items: center; min-width: 36px; min-height: 40px; padding: 0 var(--s1, 4px); border-radius: 999px; text-decoration: none; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.langs a[aria-current] { background: var(--accent); color: var(--on-accent); }
.site { display: flex; gap: var(--s2); overflow-x: auto; padding: var(--s3) var(--s4) 0; scrollbar-width: none; }
.site .chip { flex: none; }
.bar .langs { margin-left: auto; }
.chip.on, .chip:has(:checked) { border-color: var(--accent); background: var(--surface2); font-weight: 700; }
.wrap { display: flex; flex-wrap: wrap; gap: var(--s2); }
.wrap input[type='date'] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.wrap label.chip { position: relative; }
.party { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.party > div { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); margin-top: var(--s3); }
.times p { grid-column: 1 / -1; }
.slotbtn { min-height: var(--tap); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-variant-numeric: tabular-nums; }
.slotbtn.on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 700; }
@media (max-width: 340px) { .times { grid-template-columns: repeat(3, 1fr); } }
.member h2 { display: flex; justify-content: space-between; gap: var(--s3); }
.line > span { font-variant-numeric: tabular-nums; }
.field input[type='date'] { min-height: var(--tap); }
@media (prefers-color-scheme: light) { :root:not([data-theme='dark']) .ok { color: #1b7a3a; } }
:root[data-theme='light'] .ok { color: #1b7a3a; }
/* a photo's place is held before it loads: nothing jumps */
.cover, .dish img, .dish-photo { background-image: linear-gradient(90deg, var(--surface2), var(--surface), var(--surface2)); }
@media (prefers-reduced-motion: no-preference) { .dish img:not([src]) { animation: pulse 1.2s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: .6; } }
/* the ready-line, a dish's reason, the cart's server lines */
.ready { padding: 6px 16px 0; font-weight: 600; }
.ready-open { color: #7bd88f; }
:root[data-theme='light'] .ready-open { color: #1b6b32; }
@media (prefers-color-scheme: light) { :root:not([data-theme='dark']) .ready-open { color: #1b6b32; } }
.ready-closed, .ready-paused, .ready-notready { margin: 10px 16px 0; padding: 10px 12px; border-radius: 12px; background: var(--surface2); }
.ready small { font-weight: 400; color: var(--muted); }
.repeat { display: block; width: calc(100% - 32px); min-height: 48px; margin: 10px 16px 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; }
.reason { margin-top: 2px; font-size: 13px; color: var(--muted); }
.reason:empty { display: none; }
.plus.pre { width: auto; min-width: 48px; padding: 0 16px; border-radius: 24px; font-size: 14px; font-weight: 700; }
.cb-min { flex-basis: 100%; text-align: left; font-weight: 400; opacity: .9; }
.cb-min[hidden] { display: none; }
.rm { min-height: 48px; min-width: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: transparent; }
.line.out .nm { color: var(--muted); }
.line .sub { font-size: 13px; }
:root[data-theme='light'] .bad { color: #b3261e; }
@media (prefers-color-scheme: light) { :root:not([data-theme='dark']) .bad { color: #b3261e; } }
.undo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 12px; border-radius: 12px; background: var(--surface2); }
.undo button { min-height: 48px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip, .chip.big { display: inline-flex; align-items: center; min-height: 48px; background: transparent; color: inherit; }
.chips .chip.on { border-color: var(--accent); background: var(--surface2); font-weight: 700; }
.strip { padding: 10px 12px; border-radius: 12px; background: var(--surface2); font-size: 14px; }
.go { display: grid; gap: 8px; }
/* the total and the button stay at the bottom of the checkout while the form scrolls */
.checkout-body > .go { position: sticky; bottom: 0; z-index: 2; margin: 0 -16px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.go .err, .go .muted { font-size: 14px; }
.orderblock { display: grid; gap: 4px; }
.orderblock .line { align-items: center; }
.empty { display: grid; gap: 12px; justify-items: center; padding: 40px 0; text-align: center; }
.approx { opacity: .8; }
.ocard + .chip { margin: 6px 0 0; }
.obox { display: grid; justify-items: start; gap: 6px; }

/* ---- the menu's head: the venue, what it says now, search, call, orders ---- */
.addr { margin-top: 2px; }
.head .addr { padding: 0; }
.facts { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--s2); padding: var(--s3) var(--s4) 0; overflow-x: auto; scrollbar-width: none; }
.facts::-webkit-scrollbar { display: none; }
.facts .ready, .fact { flex: none; white-space: nowrap; }
.facts .ready, .fact { margin: 0; padding: 0 12px; min-height: 32px; display: inline-flex; align-items: center; border-radius: 16px; background: var(--surface2); font-size: 13px; font-weight: 500; }
.facts .ready-open::before { content: ""; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #61cb7c; }
.facts .ready-closed, .facts .ready-paused, .facts .ready-notready { background: var(--surface2); }
.tools { display: flex; gap: var(--s2); padding: var(--s3) var(--s4) 0; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--surface); color: var(--muted); }
.search input { flex: 1; min-width: 0; min-height: 44px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; }
.search input:focus { outline: 0; }
.search:focus-within { outline: 2px solid var(--accent); }
.tool { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--surface); text-decoration: none; font-weight: 600; font-size: 13px; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.repeat { border: 0; border-radius: 16px; background: var(--surface); }
main .site { padding: var(--s5) 0 0; justify-content: center; flex-wrap: wrap; }
.none { min-height: 30vh; }

/* ---- the dish sheet and the checkout: one list shape for a pick of one, a heading for each step ---- */
.list { display: grid; border-radius: 14px; background: var(--surface2); overflow: hidden; }
.list .opt { min-height: 52px; border-radius: 0; background: none; }
.list .opt + .opt { border-top: 1px solid var(--line); }
legend .warn.bad, .zones legend { color: #ff8a80; }
:root[data-theme='light'] legend .warn.bad, :root[data-theme='light'] .zones legend { color: #b3261e; }
@media (prefers-color-scheme: light) { :root:not([data-theme='dark']) legend .warn.bad, :root:not([data-theme='dark']) .zones legend { color: #b3261e; } }
.stack, #checkout section { display: grid; gap: 10px; align-content: start; }
#checkout section > h2 { margin: 4px 0 0; }
.brief { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--surface); }
.thumbs { display: flex; flex: none; }
.thumbs img { width: 32px; height: 32px; margin-right: -6px; border-radius: 8px; object-fit: cover; background: var(--surface2); border: 2px solid var(--surface); }
.brief .grow { display: grid; }
.brief .names { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.pin { justify-content: center; border-color: transparent; background: #1d2c51; color: #8dafff; font-weight: 600; }
:root[data-theme='light'] .chip.pin { background: #e6edff; color: #2a4cb0; }
@media (prefers-color-scheme: light) { :root:not([data-theme='dark']) .chip.pin { background: #e6edff; color: #2a4cb0; } }
.fnote { font-size: 13px; }
.fnote:empty { display: none; }
.field.invalid input, .invalid .slot, .invalid .phone input { border-color: #ff8a80; }
.zones.invalid .list { box-shadow: inset 0 0 0 1px #ff8a80; }
.go .summary { padding: 0; gap: 2px; background: none; font-size: 14px; color: var(--muted); }
.go .summary .grand { padding: 2px 0 0; border: 0; color: var(--text); font-size: 20px; }
.go .summary .err { background: none; padding: 0; color: #ff8a80; }
.go .err:not(:empty) { padding: 10px 12px; border-radius: 12px; background: #3a1a1a; }
:root[data-theme='light'] .go .err:not(:empty) { background: #fde9e7; }
@media (prefers-color-scheme: light) { :root:not([data-theme='dark']) .go .err:not(:empty) { background: #fde9e7; } }

/* ---- the order page, the orders, an order that is not found ---- */
.ono { margin-left: auto; font-size: 14px; font-weight: 400; color: var(--muted); }
.state { display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: var(--surface); }
.stage { justify-self: start; display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 14px; font-size: 13px; font-weight: 600; background: var(--surface2); }
.stage.now { background: #3a2c10; color: #f2af48; }
.stage.ok { background: #12301c; color: #61cb7c; }
.stage.bad { background: #3a1a1a; color: #ff8a80; }
:root[data-theme='light'] .stage.now { background: #fdf0d8; color: #8a5a00; }
:root[data-theme='light'] .stage.ok { background: #dff3e5; color: #1b6b32; }
:root[data-theme='light'] .stage.bad { background: #fde9e7; color: #b3261e; }
@media (prefers-color-scheme: light) { :root:not([data-theme='dark']) .stage.now { background: #fdf0d8; color: #8a5a00; } :root:not([data-theme='dark']) .stage.ok { background: #dff3e5; color: #1b6b32; } :root:not([data-theme='dark']) .stage.bad { background: #fde9e7; color: #b3261e; } }
.headline { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.bar4 { display: flex; gap: 6px; margin-top: 6px; }
.bar4 i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.bar4 i.done { background: #61cb7c; }
.bar4 i.now { background: #f2af48; }
.offline { font-size: 14px; color: #f2af48; }
:root[data-theme='light'] .offline { color: #8a5a00; }
@media (prefers-color-scheme: light) { :root:not([data-theme='dark']) .offline { color: #8a5a00; } }
.tl { display: grid; gap: 0; margin: 0; padding: 8px 16px; list-style: none; border-radius: 16px; background: var(--surface); }
.tl li { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--muted); }
.tl li i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); }
.tl li + li::before { content: ""; position: absolute; left: 9px; top: -14px; width: 2px; height: 24px; background: var(--line); }
.tl li.done, .tl li.now { color: var(--text); }
.tl li.done i { border-color: #61cb7c; background: #61cb7c; }
.tl li.done + li::before { background: #61cb7c; }
.tl li.now i { border-color: #f2af48; }
.tl li.now { font-weight: 700; }
.tl time { margin-left: auto; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.tool.call { width: 100%; min-height: 48px; }
.left { text-align: left; }
.sec { margin: 8px 4px 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.receipt { display: grid; gap: 0; padding: 4px 16px; border-radius: 16px; background: var(--surface); }
.receipt > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.receipt > .line { border-top: 0; border-bottom: 1px solid var(--line); }
.receipt .grand { font-size: 18px; font-weight: 700; }
.nowlist .orow, .past .orow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.past .orow + .orow, .nowlist .orow + .orow { border-top: 1px solid var(--line); }
.list.nowlist, .list.past { background: var(--surface); }
.omain { flex: 1; min-width: 0; display: grid; gap: 2px; text-decoration: none; }
.orow .tool { flex: none; min-height: 40px; background: var(--surface2); }
.gone { display: grid; justify-items: center; gap: 14px; padding-top: 32px; text-align: center; }
.gone .tile { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--surface); color: var(--muted); }
.gone .tile svg { width: 32px; height: 32px; }
.gone h1 { font-size: 24px; }
.gone .field, .gone .primary, .gone .tool { width: 100%; }
.gone .phone { align-items: stretch; }
.gone .phone b { display: grid; place-items: center; min-width: 64px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.gone .phone input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; font: inherit; }
.facts .ready-open { color: var(--text); }
/* One switch for all motion: the person asked the system for less. */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---- a first visit: cards that say one thing each (no registration, weak line, the table, a call's state), a photo's plate ---- */
.card { display: grid; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.card.note { background: var(--surface2); border-color: transparent; }
.card.bad { border-color: #ff8a80; }
.card small { font-size: 13px; }
.hero > .card { margin: 12px 16px 0; }
.card.slow { display: flex; align-items: flex-start; gap: 12px; }
.card.slow p, .card .trow p { margin: 2px 0 0; font-size: 14px; }
.tile { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface2); font-style: normal; }
.tile.ok { background: #12301c; color: #61cb7c; }
.tile.warn, .tile.now { background: #3a2c10; color: #f2af48; }
.tile.bad { background: #3a1a1a; color: #ff8a80; }
:root[data-theme='light'] .tile.ok { background: #dff3e5; color: #1b6b32; }
:root[data-theme='light'] .tile.warn, :root[data-theme='light'] .tile.now { background: #fdf0d8; color: #8a5a00; }
:root[data-theme='light'] .tile.bad { background: #fde9e7; color: #b3261e; }
.x { flex: none; width: 44px; height: 44px; margin: -8px -10px 0 0; border: 0; background: none; color: var(--muted); display: grid; place-items: center; }
.trow { display: flex; align-items: center; gap: 12px; }
.trow .grow { display: grid; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rowbtn { text-align: left; justify-items: start; cursor: pointer; }
.hero > .hello { margin: 12px 16px 0; color: var(--muted); font-size: 14px; }
.hero > .live { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.live .lk { color: var(--accent); font-weight: 600; }
.hero > .table { gap: 12px; }
.tn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface2); font-style: normal; font-weight: 700; font-size: 20px; }
.tbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tbtns .tool { min-height: 48px; justify-content: center; }
.tstate { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.tstate .grow { display: grid; gap: 2px; min-width: 60%; }
.tstate > .two, .tstate > .tool { flex-basis: 100%; }
.tool { border: 0; }
.hints { background: var(--surface2); }
.opt.hint { width: 100%; border: 0; text-align: left; color: inherit; font: inherit; min-height: 52px; }
.list .opt.col { display: grid; gap: 2px; }
/* the plate of a photo not here yet: the dish's first letter on the card's own colour; the photo covers it when it comes */
.dish img { position: relative; }
.dish[data-l]::before { content: attr(data-l); position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 3 / 2; display: grid; place-items: center; font-size: 44px; font-weight: 700; color: var(--line); background: var(--surface2); }
.dish img:not([src]) { visibility: hidden; }
