:root {
  --accent: #dc2626;
  --bg: color-mix(in srgb, var(--accent) 5%, #ffffff);
  --surface: #ffffff;
  --surface-2: color-mix(in srgb, var(--accent) 3%, #fafafa);
  --ink: #2a0a0a;
  --ink-2: #4b3434;
  --muted: #64566a;
  --line: color-mix(in srgb, var(--accent) 14%, #ececec);
  --line-2: color-mix(in srgb, var(--accent) 22%, #d9d9d9);
  --gold: #a16207; --gold-soft: #fef6e2;
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, white);
  --accent-line: color-mix(in srgb, var(--accent) 35%, white);
  --green: #16a34a; --green-soft: #ecfdf3;
  --amber: #d97706; --amber-soft: #fff7e6;
  --blue: #2563eb; --blue-soft: #eef4ff;
  --red: #dc2626; --red-soft: #fef2f2;
  --radius: 16px; --radius-sm: 10px; --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -8px rgba(15, 23, 42, .12);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .35);
  --font: "Karla", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Playfair Display SC", Georgia, "Times New Roman", serif;
  --topbar-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-brand="chilli"]  { --accent: #dc2626; --accent-ink: #fff; }
:root[data-brand="berry"]   { --accent: #d6246e; --accent-ink: #fff; }
:root[data-brand="saffron"] { --accent: #f2a007; --accent-ink: #1f1300; }
:root[data-brand="emerald"] { --accent: #059669; --accent-ink: #fff; }
:root[data-brand="ocean"]   { --accent: #2563eb; --accent-ink: #fff; }
:root[data-brand="coral"]   { --accent: #ea580c; --accent-ink: #fff; }
:root[data-brand="plum"]    { --accent: #7c3aed; --accent-ink: #fff; }

/* ---------- Orbyt's brand. data-app="orbyt" marks Orbyt's own screens (website, platform, staff and
   driver apps): Orbyt's type, neutrals and chrome. data-brand still sets the accent, so the staff and
   driver apps keep each restaurant's colour after sign-in. Guest pages and restaurant sites use neither. */
@font-face { font-family: "Outfit"; src: url("/fonts/outfit-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/fonts/outfit-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/fonts/outfit-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/fonts/outfit-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
:root[data-brand="orbyt"] { --accent: #f04e14; --accent-ink: #17110d; --accent-text: #b83a0c; --accent-soft: #ffe7da; }
:root[data-app="orbyt"] {
  --accent-line: #17110d;
  --bg: #fff7ec; --surface: #ffffff; --surface-2: #fff1e0;
  --ink: #17110d; --ink-2: #4a3d33; --muted: #6a5b4e;
  --line: #e9dccb; --line-2: #9c8a7a;
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
:root[data-app="orbyt"] h1, :root[data-app="orbyt"] h2 { font-weight: 700; letter-spacing: -.02em; }
:root[data-app="orbyt"] .topbar:not(.topbar--staff) { background: rgba(255, 247, 236, .9); }
:root[data-app="orbyt"] .topbar--staff { background: #17110d; border-bottom-color: #2c221b; }
:root[data-app="orbyt"] .topbar--staff .wordmark > span:not(.logo) > span { color: #d9cbbb; }
:root[data-app="orbyt"] .topbar--staff .tabs, :root[data-app="orbyt"] .topbar--staff .signout { background: #2c221b; }
:root[data-app="orbyt"] .topbar--staff .topbar__ctl .input { background-color: #2c221b; border-color: #4a3d33; }
:root[data-app="orbyt"] .tabs, :root[data-app="orbyt"] .seg { background: #f3e8da; }
:root[data-app="orbyt"] .btn:hover { border-color: var(--ink-2); }
:root[data-app="orbyt"] .btn--primary { box-shadow: none; }
:root[data-app="orbyt"] .btn--dark:hover { background: #2c221b; }
:root[data-app="orbyt"] .notice { color: #d9cbbb; }
:root[data-brand="orbyt"] .btn--primary:hover { background: #ff6a33; border-color: #ff6a33; }
:root[data-brand="orbyt"] .linkish:hover { color: var(--accent-text); }
.appmark { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; color: #fff7ec; padding-right: 14px; border-right: 1px solid #3a2e26; }
.appmark svg { display: block; overflow: visible; }
img.logo { padding: 0; background: none; }
.logo > img { width: 100%; height: 100%; display: block; border-radius: inherit; }
.brandlogo { display: block; height: 30px; width: auto; flex-shrink: 0; color: var(--ink); overflow: visible; }
.topbar--staff .brandlogo { color: #fff7ec; }
.orb-dot { fill: var(--accent); }
.wordmark:has(.brandtag) { gap: 14px; align-items: center; }
.brandtag { font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; padding-left: 14px; border-left: 1px solid var(--line-2); line-height: 22px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 8px 16px 8px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 17px; font-weight: 600; color: var(--ink); }
.orbmark { color: var(--ink); overflow: visible; }
/* the living logo: the bite does a lap of the ring, then rests */
.brandlogo .orb { transform-origin: 35px 65px; animation: orbyt-lap 7s cubic-bezier(.65, 0, .35, 1) 1.2s infinite; }
.orbmark .orb { transform-origin: 35px 35px; animation: orbyt-lap 3.2s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes orbyt-lap { 0%, 72% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .brandlogo .orb, .orbmark .orb { animation: none; } }
@media (max-width: 520px) { .brandtag { display: none; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; min-height: 100dvh; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; line-height: 1.15; font-weight: 700; }
h1, h2, .hero h1, .menu-sec > h2 { font-family: var(--font-display); letter-spacing: 0; font-weight: 700; }
h1 { font-weight: 400; }
h1 { font-size: 28px; } h2 { font-size: 19px; } h3 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
h1::first-letter, h2::first-letter, legend::first-letter, .lbl::first-letter, th::first-letter, .field > label::first-letter { text-transform: uppercase; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg.i { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 900; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; }
.skip:focus-visible { top: 8px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 300; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: 20px; height: var(--topbar-h); max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; min-width: 0; }
.logo { width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 15px; letter-spacing: -.02em; flex-shrink: 0; }
.wordmark b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wordmark > span:not(.logo) { display: block; min-width: 0; color: var(--ink); }
.wordmark > span:not(.logo) > span { display: block; font-size: 12px; color: var(--muted); }
.tabs { display: flex; gap: 2px; padding: 4px; background: #eef0f3; border-radius: 999px; margin: 0 auto; }
.tab { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color .15s, color .15s; position: relative; }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tab[aria-current="page"] svg.i { color: var(--accent); }
.tab small { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; }
.tab small:empty { display: none; }
.topbar__ctl { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.topbar__ctl .input { height: 38px; min-height: 38px; border-radius: 999px; background-color: var(--surface); font-size: 14px; font-weight: 600; padding-right: 32px; width: auto; max-width: 13rem; }
.notice { background: var(--ink); color: #cbd5e1; font-size: 13px; }
.notice p { max-width: 1440px; margin: 0 auto; padding: 7px 24px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.notice .linkish { color: #fff; }

main { max-width: 1440px; margin: 0 auto; padding: 28px 24px 64px; }
.view-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.view-head p { color: var(--muted); margin-top: 6px; max-width: 60ch; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; height: auto; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, transform .1s, box-shadow .15s; }
.btn:hover { background: var(--surface-2); border-color: #c4c9d2; }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); border-color: transparent; }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover { background: #1e293b; }
.btn--block { width: 100%; height: 50px; font-size: 15px; border-radius: 14px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; position: relative; }
.btn--sm::after, .btn--icon::before { content: ""; position: absolute; inset: -5px; }
.btn--icon { width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 50%; position: relative; }
.btn--icon svg.i { width: 16px; height: 16px; }
.btn--add { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: var(--surface); border: 0; box-shadow: var(--shadow); color: var(--ink); }
.btn--add:hover { background: var(--accent); color: var(--accent-ink); }
.linkish { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.linkish:hover { color: var(--accent); }

.field { display: grid; gap: 6px; }
.field > label, .lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 15px; transition: border-color .15s, box-shadow .15s; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
textarea.input { height: auto; min-height: 84px; padding: 10px 14px; resize: vertical; }
.input::placeholder { color: #9aa3b2; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.help { min-height: 1lh; font-size: 13px; color: var(--muted); }
.help--error { color: var(--red); }
.help--ok { color: var(--green); }
.row { display: flex; gap: 8px; align-items: center; }
.row--wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #eef0f3; }
.seg button { height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: background-color .15s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg button:disabled { opacity: .45; cursor: not-allowed; }

.chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.chip:hover { border-color: #b8bec8; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: color-mix(in srgb, var(--accent) 80%, black); }
.chip:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 500; }
.switch input { appearance: none; width: 40px; height: 24px; border-radius: 999px; background: #d4d8df; position: relative; cursor: pointer; margin: 0; flex-shrink: 0; transition: background-color .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(16px); }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.stepper .btn--icon { border: 0; width: 36px; height: 36px; background: var(--surface-2); }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; }

.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; font-size: 11px; font-weight: 700; border-radius: 999px; background: var(--green-soft); color: var(--green); text-transform: uppercase; letter-spacing: .02em; }
.tag--gf { background: var(--amber-soft); color: var(--amber); }
.tag--gold { background: var(--gold-soft); color: var(--gold); text-transform: none; letter-spacing: 0; }
.tag--sample { background: #eef0f3; color: var(--muted); text-transform: none; letter-spacing: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--green { background: var(--green-soft); color: var(--green); }
.badge--red { background: var(--red-soft); color: var(--red); }
.badge--amber { background: var(--amber-soft); color: var(--amber); }
.badge--blue { background: var(--blue-soft); color: var(--blue); }
.readout { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.fill { padding: 1px 8px; border-radius: 999px; background: #eef0f3; color: var(--muted); font-size: 12px; font-weight: 600; }

/* ---------- surfaces ---------- */
.well { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pad { padding: 20px; }
.blueprint { background-color: #fbfcfd; background-image: radial-gradient(#dfe3e9 1px, transparent 1px); background-size: 22px 22px; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.stack > * + * { margin-top: 16px; }
.stack-s > * + * { margin-top: 10px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.t th:first-child { border-top-left-radius: 10px; } .t th:last-child { border-top-right-radius: 10px; }
.t td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t td.num, .t th.num { text-align: right; }
.t-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.well .t-wrap { border: 0; border-radius: 0; }
.skel { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, #eceff3 0%, #f5f7f9 50%, #eceff3 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skel + .skel { margin-top: 12px; }
.skel--row { height: 84px; border-radius: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { padding: 36px 20px; text-align: center; }
.empty .empty__ic { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.empty h3, .empty .empty__t { font-size: 15px; margin-bottom: 4px; }
.empty p { color: var(--muted); font-size: 14px; margin: 0 auto 14px; max-width: 36ch; }
.error-box { display: flex; gap: 10px; align-items: flex-start; background: var(--red-soft); color: #991b1b; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.error-box b { font-weight: 700; }

/* ---------- order (guest) ---------- */
.hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 260px; display: flex; align-items: flex-end; margin-bottom: 20px; background: #1f1720; color: #fff; isolation: isolate; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 8, 14, .05) 0%, rgba(10, 8, 14, .35) 45%, rgba(10, 8, 14, .85) 100%); }
.hero__in { padding: 28px; width: 100%; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.hero h1 { font-size: 46px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .88); align-items: center; }
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero .badge--green { background: rgba(22, 163, 74, .9); color: #fff; }
.hero .badge--red { background: rgba(220, 38, 38, .9); color: #fff; }
.hero .badge::before { background: #fff; }
.hero .fill { background: rgba(255, 255, 255, .18); color: #fff; }
.hero .seg { background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); }
.hero .seg button { color: #fff; }
.hero .seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.venue { display: none; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.cats { position: sticky; top: var(--topbar-h); z-index: 50; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px 0; margin-bottom: 4px; background: var(--bg); }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex-shrink: 0; height: 38px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.cats a::first-letter { text-transform: uppercase; }
.cats a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.menu-sec { scroll-margin-top: calc(var(--topbar-h) + 70px); }
.menu-sec + .menu-sec { margin-top: 32px; }
.menu-sec > h2 { font-size: 26px; margin-bottom: 14px; color: var(--ink); }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 16px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, transform .2s, border-color .2s; cursor: pointer; }
.item { animation: itemIn .4s cubic-bezier(.34, 1.4, .64, 1) both; animation-delay: calc(var(--i, 0) * 50ms); }
.item:hover { box-shadow: var(--shadow); border-color: var(--accent-line); transform: translateY(-2px); }
.item:hover h3 { color: var(--accent); }
@keyframes itemIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.item h3 { font-size: 15.5px; }
.item p { color: var(--muted); font-size: 13.5px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item__foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.item__foot .price { font-size: 15px; margin-right: 4px; }
.item__img { position: relative; width: 128px; height: 128px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, var(--accent-soft), #f1f3f6); }
.item__img img { width: 100%; height: 100%; object-fit: cover; }
.item__img .btn--add { position: absolute; right: 8px; bottom: 8px; }
.item--out { opacity: .55; cursor: default; }
.item--out:hover { transform: none; box-shadow: none; border-color: var(--line); }
.item__out { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 23, 42, .55); color: #fff; font-size: 12px; font-weight: 700; }
.menu-note { margin-top: 24px; color: var(--muted); font-size: 13px; }
.cart { position: sticky; top: calc(var(--topbar-h) + 16px); max-height: calc(100dvh - var(--topbar-h) - 32px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; }
.cart h2 { font-size: 20px; margin-bottom: 4px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: center; }
.line > span:first-child { font-weight: 600; }
.line__mods { grid-column: 1 / 2; color: var(--muted); font-size: 12.5px; }
.line .stepper { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 14px; margin: 16px 0 8px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; font-weight: 600; }
.totals .grand { color: var(--ink); font-size: 18px; font-weight: 800; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.mobile-cart { display: none; }
.pay-wallets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pay-wallets .btn { height: 46px; border-radius: 12px; background: var(--ink); border-color: var(--ink); color: #fff; }
.pay-wallets .btn:hover { background: #1e293b; }
.card-el { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); overflow: hidden; }
.card-el .input { border: 0; border-radius: 0; box-shadow: none; }
.card-el .input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.card-el .input + .input { border-left: 1px solid var(--line); }
.stripe-note { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 600; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* order tracker */
.track-head { display: flex; gap: 14px; align-items: center; }
.track-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.track-ic svg.i { width: 26px; height: 26px; }
.trail { list-style: none; padding: 0; margin: 24px 0; }
.trail li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding-bottom: 22px; position: relative; font-size: 14.5px; color: var(--muted); }
.trail li::before { content: ""; width: 20px; height: 20px; margin: 1px 4px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); position: relative; z-index: 1; box-sizing: border-box; }
.trail li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 24px; bottom: 2px; width: 2px; background: var(--line); border-radius: 2px; }
.trail li.done { color: var(--ink); font-weight: 600; }
.trail li.done::before { background: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); background-size: 12px; background-position: center; background-repeat: no-repeat; }
.trail li.done:not(:last-child)::after { background: var(--accent); }
.trail li.now { color: var(--ink); font-weight: 600; }
.trail li.now::before { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.trail time { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ---------- book ---------- */
.book-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.day { flex-direction: column; height: 64px; min-width: 64px; padding: 0 10px; border-radius: 14px; line-height: 1.15; flex-shrink: 0; }
.day span { font-size: 12px; font-weight: 600; color: var(--muted); }
.day span::first-letter { text-transform: uppercase; }
.day b { font-size: 14px; font-weight: 700; color: var(--ink); }
.day[aria-pressed="true"] span { color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.info-list { display: grid; gap: 14px; margin-top: 16px; }
.info-list div { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.info-list svg.i { color: var(--accent); margin-top: 2px; }
.success-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.success-ic svg.i { width: 28px; height: 28px; stroke-width: 2.5; }

/* ---------- pos ---------- */
.pos-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.floor-wrap { overflow-x: auto; border-radius: var(--radius); }
.floor { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.zone { position: absolute; border: 1.5px dashed #d1d6de; border-radius: 18px; background: rgba(255, 255, 255, .5); }
.zone span { position: absolute; left: 12px; top: 8px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tbl { position: absolute; display: grid; place-items: center; align-content: center; gap: 1px; border: 2px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 800; font-size: 14px; line-height: 1.1; transform: translate(-50%, -50%); box-shadow: var(--shadow-sm); transition: transform .15s var(--ease), box-shadow .15s; }
.tbl small { font-weight: 600; font-size: 10.5px; color: var(--muted); }
.tbl--round { border-radius: 50%; }
.tbl--sq { border-radius: 14px; }
.tbl:hover { transform: translate(-50%, -50%) scale(1.05); box-shadow: var(--shadow); }
.tbl[data-state="seated"] { background: var(--blue-soft); border-color: var(--blue); }
.tbl[data-state="seated"] small { color: var(--blue); }
.tbl[data-state="ordered"] { background: var(--amber-soft); border-color: var(--amber); }
.tbl[data-state="ordered"] small { color: var(--amber); }
.tbl[data-state="bill"] { background: var(--red-soft); border-color: var(--red); }
.tbl[data-state="bill"] small { color: var(--red); }
.tbl[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 500; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--line-2); background: var(--surface); }
.legend i.seated { border-color: var(--blue); background: var(--blue-soft); }
.legend i.ordered { border-color: var(--amber); background: var(--amber-soft); }
.legend i.bill { border-color: var(--red); background: var(--red-soft); }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 8px; margin-top: 10px; }
.quick button { min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); text-align: left; font-weight: 600; font-size: 13px; line-height: 1.25; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.quick button:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.quick button:active { transform: scale(.97); }
.quick button:disabled { opacity: .45; cursor: not-allowed; }
.quick button span { display: block; color: var(--muted); font-size: 12px; font-weight: 500; margin-top: 4px; }
.pos-side { position: sticky; top: calc(var(--topbar-h) + 16px); }
.pos-side h2 { font-size: 22px; }
.bookings-list { margin-top: 20px; }
.bookings-list h2 { margin-bottom: 12px; }

/* ---------- kitchen (dark display) ---------- */
.kds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; background: #0b1220; padding: 16px; border-radius: var(--radius-lg); }
.kds-col { min-height: 60vh; padding: 0; background: transparent; border: 0; box-shadow: none; }
.kds-col > header { display: flex; justify-content: space-between; align-items: center; padding: 6px 6px 14px; color: #e2e8f0; }
.kds-col > header h2 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.kds-col > header h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c, #94a3b8); }
.kds-col > header .readout { color: #0b1220; background: #e2e8f0; border-radius: 999px; padding: 1px 9px; font-weight: 700; font-family: var(--font); }
.kds-col[data-col="new"] { --c: #60a5fa; }
.kds-col[data-col="cooking"] { --c: #fbbf24; }
.kds-col[data-col="ready"] { --c: #4ade80; }
.ticket { background: #fff; border-radius: 14px; overflow: hidden; border-top: 5px solid var(--c, #94a3b8); }
.ticket + .ticket { margin-top: 12px; }
.ticket > *:not(.ticket__act) { padding-left: 14px; padding-right: 14px; }
.ticket header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; }
.ticket header b { font-weight: 800; font-size: 18px; }
.ticket .timer { font-family: var(--font); font-weight: 700; font-size: 13px; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: var(--ink-2); }
.ticket--late { border-top-color: var(--red); }
.ticket--late .timer { background: var(--red-soft); color: var(--red); }
.ticket .src { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.ticket ul { list-style: none; padding-top: 10px; padding-bottom: 12px; margin: 0; font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.ticket li { padding: 3px 0; font-weight: 600; }
.ticket li small { display: block; color: var(--red); font-size: 12px; font-weight: 600; }
.ticket__act { padding: 10px 12px 12px; }
.ticket__act .btn { width: 100%; height: 44px; border-radius: 10px; }
.kds-col .empty { color: #94a3b8; padding: 28px 10px; border: 1.5px dashed #24324a; border-radius: 14px; }
.kds-col .empty p { color: #94a3b8; margin-bottom: 0; }

/* ---------- hq ---------- */
.subtabs { display: flex; gap: 4px; margin-bottom: 20px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.subtabs a { padding: 10px 14px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs a::first-letter { text-transform: uppercase; }
.subtabs a:hover { color: var(--ink); }
.subtabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 12px; }
.figures > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.figures dt { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.figures dt::first-letter { text-transform: uppercase; }
.figures dt svg.i { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.figures dd { margin: 12px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--surface); cursor: pointer; box-shadow: 0 0 0 1px var(--line-2); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.sw-chilli { background: #dc2626; } .sw-berry { background: #d6246e; } .sw-saffron { background: #f2a007; } .sw-emerald { background: #059669; }
.sw-ocean { background: #2563eb; } .sw-coral { background: #ea580c; } .sw-plum { background: #7c3aed; }
.hq-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.preview { padding: 0; overflow: hidden; }
.preview__bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.preview__body { padding: 18px; }
.preview .wordmark b { font-size: 16px; }

/* ---------- voice ---------- */
.voice-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; align-items: start; }
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px; }
.path .node { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.path .node svg.i { width: 16px; height: 16px; color: var(--muted); }
.path .node--ours { background: var(--accent-soft); border-color: var(--accent-line); color: var(--ink); }
.path .node--ours svg.i { color: var(--accent); }
.path .wire { width: 18px; height: 2px; background: var(--line-2); border-radius: 2px; }
.path .wire--ours { background: var(--accent); }
.call-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.call-head .input { width: auto; height: 40px; }
.transcript { min-height: 22rem; max-height: 30rem; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.say { display: flex; gap: 8px; align-items: flex-end; max-width: 85%; animation: pop .25s var(--ease) both; }
.say .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.say p { padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; }
.say--agent .av { background: var(--accent); color: var(--accent-ink); }
.say--agent p { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.say--caller { align-self: flex-end; flex-direction: row-reverse; }
.say--caller .av { background: #e2e8f0; color: var(--ink-2); }
.say--caller p { background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.say--sys { align-self: center; max-width: 95%; }
.say--sys p { display: inline-flex; gap: 8px; align-items: center; background: var(--green-soft); color: #166534; border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.say--sys p svg.i { width: 14px; height: 14px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.live { color: var(--green); font-weight: 600; }

/* ---------- dialog & toast ---------- */
dialog { padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); width: calc(100% - 32px); max-width: 30rem; max-height: calc(100dvh - 32px); box-shadow: var(--shadow-lg); overflow: auto; }
dialog::backdrop { background: rgba(15, 23, 42, .5); backdrop-filter: blur(3px); }
dialog[open] { animation: rise .25s var(--ease); }
.dlg-img { height: 200px; background: var(--accent-soft); }
.dlg-img img { width: 100%; height: 100%; object-fit: cover; }
dialog form { display: grid; gap: 18px; padding: 22px; }
dialog h2 { font-size: 22px; }
.dialog-foot { display: flex; gap: 10px; justify-content: flex-end; position: sticky; bottom: 0; background: var(--surface); padding-top: 4px; }
.dialog-foot .btn--primary { flex: 1; height: 48px; border-radius: 14px; }
.toasts { pointer-events: none;  position: fixed; left: 24px; bottom: 24px; z-index: 600; display: grid; gap: 8px; max-width: min(24rem, calc(100vw - 48px)); }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 14px; font-size: 14px; box-shadow: var(--shadow-lg); animation: rise .25s var(--ease) both; }
.toast svg.i { color: #4ade80; }
.toast a { color: #fff; font-weight: 700; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.credits { max-width: 1440px; margin: 0 auto; padding: 0 24px 40px; font-size: 12px; color: var(--muted); }
.credits a { color: var(--ink-2); }

.mobile-only { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .tab span.tl { display: none; }
  .order-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .menu-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  :root { --topbar-h: 60px; }
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  .topbar__in { padding: 0 16px; gap: 10px; }
  .topbar__ctl .input { max-width: 9.5rem; font-size: 13px; }
  .wordmark > span:not(.logo) > span { display: none; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 320; border-radius: 0; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .tab { flex-direction: column; height: 52px; padding: 0 6px; gap: 3px; font-size: 11px; flex: 1; border-radius: 12px; }
  .tab span.tl { display: block; }
  .tab[aria-current="page"] { background: var(--accent-soft); box-shadow: none; color: var(--ink); }
  .tab small { position: absolute; top: 2px; right: calc(50% - 22px); }
  body { padding-bottom: 72px; }
  main { padding: 16px 16px 40px; }
  .hero { min-height: 220px; border-radius: 20px; }
  .hero__in { padding: 18px; }
  .hero h1 { font-size: 28px; }
  .order-layout, .book-layout, .pos-layout, .voice-layout, .hq-split { grid-template-columns: minmax(0, 1fr); }
  .cart { display: none; position: fixed; inset: auto 0 0 0; top: auto; max-height: 88dvh; z-index: 400; border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lg); padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .cart.is-open { display: block; animation: rise .25s var(--ease); }
  .mobile-only { display: inline-flex; }
  .mobile-cart { display: flex; position: fixed; left: 16px; right: 16px; bottom: 84px; z-index: 310; }
  .mobile-cart .btn { width: 100%; height: 54px; justify-content: space-between; border-radius: 16px; padding: 0 18px; }
  .order-view { padding-bottom: 80px; }
  .toasts { left: 16px; right: 16px; bottom: 150px; max-width: none; }
  .kds { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .kds-col { min-height: 0; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .floor { min-width: 44rem; }
  .pos-side { position: static; }
  .say { max-width: 92%; }
}
@media (max-width: 560px) {
  h1 { font-size: 24px; }
  .wordmark > span:not(.logo) { display: none; }
  .topbar__ctl { flex: 1; justify-content: flex-end; }
  .topbar__ctl .input { max-width: none; flex: 1; min-width: 0; }
  .topbar__ctl .input { padding-left: 12px; }
  .item { grid-template-columns: minmax(0, 1fr) 104px; }
  .item__img { width: 104px; height: 104px; }
  .card-el { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .card-el .input:first-child { grid-column: 1 / -1; }
  .card-el .input:nth-child(2) { border-left: 0; border-top: 1px solid var(--line); }
  .card-el .input:nth-child(3) { border-top: 1px solid var(--line); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .t-stack thead { display: none; }
  .t-stack tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .t-stack td { border: 0; padding: 0; }
  .t-stack td:last-child { margin-left: auto; }
  .hero .seg button { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- staff app ---------- */
.topbar--staff { background: #1c1012; border-bottom-color: #2e1c1f; color: #fff; }
.topbar--staff .wordmark > span:not(.logo) { color: #fff; }
.topbar--staff .wordmark > span:not(.logo) > span { color: #c9b4b6; }
.topbar--staff .tabs { background: #2e1c1f; }
.topbar--staff .tab { color: #e2d3d5; }
.topbar--staff .tab:hover { color: #fff; }
.topbar--staff .tab[aria-current="page"] { background: #fff; color: var(--ink); }
.topbar--staff .topbar__ctl .input { background-color: #2e1c1f; border-color: #4a3034; color: #fff; }
.topbar--staff .signout { background: #2e1c1f; border-color: #4a3034; color: #fff; }
.gate { position: fixed; inset: 0; z-index: 800; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, #1c1012, #3a1416); }
.gate__card { width: 100%; max-width: 24rem; display: grid; gap: 16px; padding: 28px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); text-align: left; }
.gate__card .logo { width: 48px; height: 48px; font-size: 18px; }
.gate__card .input { font-size: 22px; letter-spacing: .4em; text-align: center; height: 56px; }
@media (max-width: 900px) {
  .topbar--staff { background: #1c1012; }
  .topbar--staff .tabs { background: rgba(28, 16, 18, .96); border-top-color: #2e1c1f; }
  .topbar--staff .tab[aria-current="page"] { background: #fff; color: var(--ink); }
}

/* ---------- receipts and sales tags ---------- */
.rcpt-wrap { background: var(--surface-2); border-radius: 14px; padding: 16px; display: grid; place-items: center; }
.rcpt { width: 100%; max-width: 302px; background: #fff; color: #111; padding: 18px 16px; font: 13px/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace; box-shadow: var(--shadow-sm); border-radius: 4px; }
.rcpt hr { border: 0; border-top: 1px dashed #999; margin: 10px 0; }
.rcpt__c { text-align: center; }
.rcpt__name { display: block; font-size: 15px; margin-bottom: 2px; }
.rcpt__title { margin: 10px 0 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rcpt__row { display: flex; justify-content: space-between; gap: 12px; }
.rcpt__row span:last-child { text-align: right; white-space: nowrap; }
.rcpt__mod { color: #555; font-size: 12px; padding-left: 14px; }
.rcpt__total { font-weight: 700; font-size: 14px; margin-top: 4px; }
.rcpt .fill { background: #eee; color: #555; }
#print-area { display: none; }
.tagger summary { list-style: none; margin-top: 8px; cursor: pointer; display: inline-flex; }
.tagger summary::-webkit-details-marker { display: none; }
@media print {
  @page { size: 80mm auto; margin: 4mm; }
  body { background: #fff; padding: 0; }
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block; }
  #print-area .rcpt { box-shadow: none; max-width: none; padding: 0; }
}

/* ---------- live platform additions ---------- */
.banner { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--amber-soft); color: #7c4a03; font-size: 14px; margin-bottom: 16px; }
.banner--red { background: var(--red-soft); color: #991b1b; }
.banner--green { background: var(--green-soft); color: #166534; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex-shrink: 0; }
.login-wrap { min-height: calc(100dvh - var(--topbar-h)); display: grid; place-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 26rem; }
.hours-grid { display: grid; grid-template-columns: 5rem 1fr 1fr auto; gap: 8px; align-items: center; }
.hours-grid .input { height: 40px; }
.inline-price { width: 7rem; height: 38px; text-align: right; }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.topbar__in .tabs { flex-wrap: nowrap; }

/* ---------- platform: POS, kitchen extras, loyalty, gift cards ---------- */
.pos-area { margin: 18px 0; }
.pos-area h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.pos-floor { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 12px; }
.ptbl { position: relative; min-height: 88px; display: grid; place-items: center; align-content: center; gap: 2px; border: 2px solid var(--line-2); border-radius: 18px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; box-shadow: var(--shadow-sm); }
.ptbl b { font-size: 18px; }
.ptbl small { color: var(--muted); font-weight: 600; }
.ptbl:hover, .ptbl:focus-visible { box-shadow: var(--shadow); outline: none; border-color: var(--ink); }
.ptbl[data-state="seated"] { background: var(--blue-soft); border-color: var(--blue); }
.ptbl[data-state="ordered"] { background: var(--amber-soft); border-color: var(--amber); }
.ptbl[data-state="bill"] { background: var(--red-soft); border-color: var(--red); }
.ptbl .dot { position: absolute; top: 8px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.pos-tab { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(19rem, 1fr); gap: 20px; align-items: start; }
.pos-cats { margin-bottom: 12px; }
.pos-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 10px; }
.pitem { min-height: 84px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font: inherit; text-align: left; cursor: pointer; }
.pitem b { font-size: 14px; line-height: 1.25; }
.pitem span { color: var(--muted); font-weight: 700; }
.pitem:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.pitem:disabled { opacity: .45; cursor: not-allowed; }
.pos-bill { position: sticky; top: calc(var(--topbar-h) + 12px); }
.pos-lines { list-style: none; margin: 0; padding: 0; }
.pos-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto 40px; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pos-lines li.void { opacity: .45; text-decoration: line-through; }
.pos-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pos-actions .btn { min-height: 48px; }
.gc-code { font: 700 26px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; padding: 14px; background: var(--surface-2); border-radius: 12px; text-align: center; user-select: all; }
.allday { margin: 0 0 14px; }
.allday .chip { min-height: 34px; }
.call-row { margin-bottom: 10px; }
.call-row summary { cursor: pointer; }
.pin-input { font-size: 28px; letter-spacing: .4em; text-align: center; }
.loy summary { cursor: pointer; }
@media (max-width: 900px) { .pos-tab { grid-template-columns: 1fr; } .pos-bill { position: static; } }
@media print { .topbar, .tabs, .dialog-foot { display: none !important; } }

/* ---------- Stage 3: guest accounts, favourites, tips, reviews, waitlist ---------- */
.fav { position: absolute; top: 22px; right: 22px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); color: var(--ink-3, #6b7280); }
.fav svg.i { width: 18px; height: 18px; }
.fav[aria-pressed="true"] { color: var(--red); }
.fav[aria-pressed="true"] svg.i { fill: currentColor; }
.item { position: relative; }
.table-badge { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-weight: 700; }
.stars { display: flex; gap: 4px; }
.stars button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--line-2); display: grid; place-items: center; border-radius: 8px; }
.stars button svg.i { width: 30px; height: 30px; }
.stars button[aria-pressed="true"] { color: #f5a524; }
.stars button[aria-pressed="true"] svg.i { fill: currentColor; }
.stars button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.acct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.acct-grid > .span-2 { grid-column: 1 / -1; }
.hist { display: grid; gap: 10px; }
.hist__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hist__row:last-child { border-bottom: 0; }
.hist__row .small { grid-column: 1 / -1; }
.refbox { display: flex; gap: 8px; align-items: center; padding: 12px; border: 1px dashed var(--accent); border-radius: 12px; background: var(--accent-soft); }
.refbox code { font-size: 20px; font-weight: 800; letter-spacing: .12em; flex: 1; }
.wait-pos { font-size: 56px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.when-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 760px) { .acct-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Stage 4: maps, dispatch, driver app ---------- */
.map { height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e9eef3; z-index: 0; }
.map--sm { height: 260px; }
.mk { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); color: #fff; font: 800 12px/1 Karla, system-ui, sans-serif; }
.mk--store { background: #111; border-radius: 8px; }
.mk--wait { background: var(--red); }
.mk--assigned { background: #d97706; }
.mk--road { background: #2563eb; }
.mk--done { background: #16a34a; opacity: .6; }
.mk--driver { background: #7c3aed; width: 32px; height: 32px; }
.mk--driver.off { background: #9ca3af; }
.mk--me { background: #2563eb; box-shadow: 0 0 0 8px rgba(37,99,235,.18); }
.disp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.disp .map { height: calc(100vh - 220px); min-height: 420px; position: sticky; top: 84px; }
.job { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface); display: grid; gap: 6px; }
.job + .job { margin-top: 8px; }
.job__top { display: flex; gap: 8px; align-items: center; }
.job__top b { flex: 1; }
.drv-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.drv-row:last-child { border-bottom: 0; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; }
.st-dot.available { background: #16a34a; } .st-dot.busy { background: #d97706; }
@media (max-width: 960px) { .disp { grid-template-columns: minmax(0, 1fr); } .disp .map { position: static; height: 360px; } }

/* driver app: big targets, one-handed */
.drv { max-width: 560px; margin: 0 auto; display: grid; gap: 14px; }
.drv .btn { min-height: 52px; font-size: 17px; }
.drv-shift { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.drv-shift .grow { flex: 1; }
.drv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 10px; }
.drv-card h2 { font-size: 22px; }
.drv-card .addr { font-size: 18px; font-weight: 700; line-height: 1.3; }
.drv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drv-actions .wide { grid-column: 1 / -1; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; }
.kpi b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; color: var(--ink-2); }
.code-input { font-size: 32px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.proof-img { max-width: 100%; border-radius: 12px; }

/* ---------- Stage 5: platform, modules, POS connect ---------- */
.acct-bar { background: #fff7e6; color: #7c4a03; border-bottom: 1px solid #f3d7a6; padding: 10px 24px; font-size: 14px; text-align: center; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mod { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; background: var(--surface); cursor: pointer; }
.mod input { margin-right: 6px; }
.mod[data-on="true"] { border-color: var(--accent); background: var(--accent-soft); }
.mod small { color: var(--ink-2); }
.price-big { font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--ink-2); }
.code-box { font-family: ui-monospace, Menlo, monospace; background: #111; color: #e5e7eb; padding: 12px; border-radius: 10px; overflow-x: auto; font-size: 13px; word-break: break-all; }

.off-bar { background: #eef2ff; color: #1e3a8a; border-bottom-color: #c7d2fe; }

/* ---------- Accessibility: WCAG AA contrast for small text on tinted backgrounds ---------- */
.badge--green, .tag { color: #15803d; }
.badge--amber, .tag--gf { color: #92400e; }
.badge--blue { color: #1d4ed8; }
.badge--red { color: #b91c1c; }
.hero .badge--green { color: #fff; background: #15803d; }
.hero .badge--red { color: #fff; background: #b91c1c; }
.mk--done { background: #15803d; opacity: 1; filter: saturate(.6); }
.leaflet-container .leaflet-control-attribution a { text-decoration: underline; }

/* ---------- Stage 7: insights charts ---------- */
.kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ibars { display: flex; align-items: flex-end; gap: 2px; height: var(--h, 140px); border-bottom: 1px solid var(--line); padding-top: 8px; }
.ibar { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; cursor: default; outline: none; }
.ibar i { display: block; width: 100%; min-height: 1px; background: var(--accent); border-radius: 4px 4px 0 0; }
.ibar:hover i, .ibar:focus-visible i { filter: brightness(.85); }
.ibar:hover::after, .ibar:focus-visible::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: #fff; font-size: 12px; padding: 6px 8px; border-radius: 8px; z-index: 5; pointer-events: none; }
.ibars-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); }
.share { display: inline-block; width: 60px; height: 6px; border-radius: 3px; background: var(--line); vertical-align: middle; overflow: hidden; }
.share i { display: block; height: 100%; background: var(--accent); }
@media (max-width: 760px) { .kpis--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Web interface guidelines pass ---------- */
button, a, .chip, .pitem, .ptbl, input, select, textarea, label { touch-action: manipulation; }
html { -webkit-tap-highlight-color: rgba(0, 0, 0, .06); }
dialog { overscroll-behavior: contain; }
h1, h2, h3 { text-wrap: balance; }
p, .help { text-wrap: pretty; }
.price, .num, .readout, .timer, .kpi b, .t td.num { font-variant-numeric: tabular-nums; }
.item__img img { aspect-ratio: 1 / 1; }
[id] { scroll-margin-top: 88px; }

/* ---------- staff nav "More" menu ---------- */
.more { position: relative; }
.more > summary { list-style: none; cursor: pointer; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary.is-on, .topbar--staff .more > summary.is-on { background: #fff; color: var(--ink); }
.more > summary.is-on svg.i { color: var(--accent); }
.more__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 400; min-width: 15rem; max-height: 70dvh; overflow-y: auto; padding: 8px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.more__h { margin: 8px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.more__a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.more__a:hover, .more__a:focus-visible { background: var(--bg); }
.more__a[aria-current="page"] { background: var(--accent-soft, #fde8e8); color: var(--ink); }
.more__a[aria-current="page"] svg.i { color: var(--accent); }
.more__a small { margin-left: auto; }
@media (max-width: 900px) {
  .more { flex: 1; display: flex; }
  .more > summary { width: 100%; }
  .more__menu { position: fixed; top: auto; left: 8px; right: 8px; bottom: calc(72px + env(safe-area-inset-bottom)); min-width: 0; max-height: calc(100dvh - 150px); }
}

/* ---------- website builder ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tpl-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line-2); border-radius: 14px; cursor: pointer; background: var(--surface); }
.tpl-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tpl-card input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.tpl-card span { display: grid; gap: 2px; }
.tpl-card small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.tpl-card a { font-size: 13px; font-weight: 700; margin-top: 2px; }
.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-bottom: 10px; }
.stock { position: relative; display: block; border-radius: 10px; overflow: hidden; cursor: pointer; border: 3px solid transparent; }
.stock:has(input:checked) { border-color: var(--accent); }
.stock:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.stock input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.stock img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: var(--line); }
.setup-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.setup-list li { display: flex; gap: 10px; align-items: center; }
.setup-list li > span { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; }
.setup-list li.done > span { background: var(--green); border-color: var(--green); color: #fff; }
.setup-list li.done a { color: var(--muted); text-decoration: line-through; }
@media (max-width: 900px) { .web-status { order: -1; } }

/* ---------- "Powered by Orbyt" on the guest ordering page ---------- */
.guest-foot { max-width: 1440px; margin: 0 auto; padding: 0 24px 32px; display: flex; justify-content: center; }
.guest-foot .powered { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 8px; color: var(--muted); text-decoration: none; font-size: 13px; }
.guest-foot .powered b { color: var(--ink); font-weight: 700; }
.guest-foot .powered svg { color: var(--ink); flex: none; }
.guest-foot .powered:hover span { text-decoration: underline; text-underline-offset: 3px; }
