/*
  kdeats styles. One font (Inter).
  Dark first: tokens on bare :root, light theme via media query and data-theme.
*/

:root {
  color-scheme: dark;
  --bg: #121212;
  --surface: #1A1A1A;
  --surface-2: #222222;
  --surface-3: #2A2A2A;
  --line: #2E2E2E;
  --line-strong: #3D3D3D;
  --line-input: #6E6E6E;
  --text: #FFFFFF;
  --muted: #A3A3A3;
  --faint: #7A7A7A;
  --accent: #EF4444;
  --accent-press: #DC2626;
  --on-accent: #FFFFFF;
  --switch: #0A84FF; /* theme switch icon: the iPhone blue kkeats shows */
  --tile-bg: #0B0D0E; /* start page About tiles, same as kkeats */
  /* floating cards, no outline: kkeats' card shadow */
  --float-shadow: 0 2px 8px -2px rgba(0, 0, 0, .6), 0 6px 12px -2px rgba(0, 0, 0, .6);
  /* red fill behind white text: one value in both themes (white on #DC2626 is 4.8:1) */
  --accent-fill: #DC2626;
  --accent-fill-press: #B91C1C;
  --good: #22C55E;
  --good-strong: #15803D;
  --star: #FACC15;
  --warn: #FACC15;
  --tab-on: #2E2E2E;
  --scrim: rgba(0, 0, 0, .6);
  --shadow: 0 8px 28px rgba(0, 0, 0, .45);

  /* footer stays dark in both themes */
  --foot-bg: #0E0E0E;
  --foot-text: #FFFFFF;
  --foot-muted: #A3A3A3;
  --foot-line: #262626;

  /* tags and toast sit on photos or dark surfaces, so they keep one look in both themes */
  --tag-light: #FFFFFF;
  --tag-dark: #111111;
  --tag-red: #DC2626;
  --tag-green: #15803D;
  --toast-bg: #222222;
  --toast-line: #333333;

  --font: Inter, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --r-card: 12px;
  --r-btn: 8px;
  --r-input: 8px;
  --r-pill: 999px;
  --gutter: 16px;
  --content: 1128px;
  --topbar-h: 56px;
  --tabbar-h: 66px;
  --dur: 160ms;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --switch: #007AFF;
    --tile-bg: #FBFCFE;
    --float-shadow: 0 2px 8px -2px rgba(21, 21, 21, .08), 0 6px 12px -2px rgba(21, 21, 21, .08);
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --surface-2: #F5F5F5;
    --surface-3: #EDEDED;
    --line: #E5E5E5;
    --line-strong: #D4D4D4;
    --line-input: #949494;
    --text: #111111;
    --muted: #5F5F5F;
    --faint: #737373;
    --accent: #DC2626;
    --accent-press: #B91C1C;
    --on-accent: #FFFFFF;
    --good: #15803D;
    --good-strong: #15803D;
    --star: #CA8A04;
    --warn: #A16207;
    --tab-on: #FFFFFF;
    --scrim: rgba(0, 0, 0, .45);
    --shadow: 0 8px 28px rgba(0, 0, 0, .12);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --switch: #007AFF;
  --tile-bg: #FBFCFE;
  --float-shadow: 0 2px 8px -2px rgba(21, 21, 21, .08), 0 6px 12px -2px rgba(21, 21, 21, .08);
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F5F5F5;
  --surface-3: #EDEDED;
  --line: #E5E5E5;
  --line-strong: #D4D4D4;
  --line-input: #949494;
  --text: #111111;
  --muted: #5F5F5F;
  --faint: #737373;
  --accent: #DC2626;
  --accent-press: #B91C1C;
  --on-accent: #FFFFFF;
  --good: #15803D;
  --good-strong: #15803D;
  --star: #CA8A04;
  --warn: #A16207;
  --tab-on: #FFFFFF;
  --scrim: rgba(0, 0, 0, .45);
  --shadow: 0 8px 28px rgba(0, 0, 0, .12);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --switch: #0A84FF;
  --tile-bg: #0B0D0E;
  --float-shadow: 0 2px 8px -2px rgba(0, 0, 0, .6), 0 6px 12px -2px rgba(0, 0, 0, .6);
  --bg: #121212;
  --surface: #1A1A1A;
  --surface-2: #222222;
  --surface-3: #2A2A2A;
  --line: #2E2E2E;
  --line-strong: #3D3D3D;
  --line-input: #6E6E6E;
  --text: #FFFFFF;
  --muted: #A3A3A3;
  --faint: #7A7A7A;
  --accent: #EF4444;
  --accent-press: #DC2626;
  --on-accent: #FFFFFF;
  --good: #22C55E;
  --good-strong: #15803D;
  --star: #FACC15;
  --warn: #FACC15;
  --tab-on: #2E2E2E;
  --scrim: rgba(0, 0, 0, .6);
  --shadow: 0 8px 28px rgba(0, 0, 0, .45);
}

@media (min-width: 768px) { :root { --gutter: 24px; --topbar-h: 66px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; } }

/* Base */
[hidden] { display: none !important; }
img { max-width: 100%; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.locked, html.locked body { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { flex-shrink: 0; }
em { font-style: normal; }
.num, .price, .bill, .amt, .eta-big b, .res-side, .free-bar p, .info-strip dd { font-variant-numeric: tabular-nums; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.main:focus-visible { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: var(--r-btn); border: 0;
  background: var(--accent-fill); color: var(--on-accent); font-weight: 600;
}
.skip-link:focus-visible { top: calc(env(safe-area-inset-top, 0px) + 12px); }
.noscript { padding: 24px; text-align: center; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.shell { min-height: 100vh; min-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; }
.main { flex: 1; padding-bottom: 48px; }
.wrap { width: 100%; max-width: calc(var(--content) + var(--gutter) * 2); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* Icons */
.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.i-xs { width: 14px; height: 14px; }
.i-fill { fill: currentColor; stroke: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 20px;
  border-radius: var(--r-btn); border: 1px solid transparent;
  background: var(--surface-2); color: var(--text);
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: background var(--dur), border-color var(--dur), color var(--dur);
}
.btn:where(:hover:not(:disabled)) { background: var(--surface-3); }
.btn:disabled { opacity: .5; }
.btn-primary { background: var(--accent-fill); color: var(--on-accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-fill-press); }
.btn-outline { background: transparent; border-color: var(--line-strong); }
.btn-outline:hover:not(:disabled) { background: var(--surface-2); }
.btn-ghost { background: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 48px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; font-size: inherit; display: inline-flex; align-items: center; gap: 4px; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.linklike { background: none; border: 0; padding: 0; text-align: left; font-size: inherit; color: inherit; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--r-btn);
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  transition: background var(--dur), border-color var(--dur);
}
@media (hover: hover) { .icon-btn:hover { background: var(--surface-2); } }
.icon-btn.plain { border-color: transparent; background: transparent; }
/* hover only where there is a mouse, so a tapped button doesn't keep a gray square on phones */
@media (hover: hover) { .icon-btn.plain:hover { background: var(--surface-2); } }
.theme-btn { color: var(--switch); }
.theme-btn .i-theme { width: 23px; height: 23px; }
.theme-link { display: inline-flex; align-items: center; gap: 6px; }
.theme-link .i-theme { width: 20px; height: 20px; }

.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); } }

/* Small atoms */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--text); white-space: nowrap; }
.pill.good { background: var(--good-strong); color: #fff; }
.pill.on-img { background: rgba(0, 0, 0, .65); color: #fff; }
.dot-sep::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; vertical-align: middle; margin: 0 8px 2px; }


.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--tag-light); color: var(--tag-dark); }
.tag-off { background: var(--tag-red); color: var(--tag-light); }
.tag-best { background: var(--tag-light); color: var(--tag-red); }
.tag-veg { background: var(--tag-green); color: var(--tag-light); }
.tag-sig { background: var(--tag-dark); color: var(--tag-light); }
.tag-new { background: var(--tag-light); color: var(--tag-dark); }
.spice { display: inline-flex; align-items: center; color: var(--accent); }
.spice .i { width: 13px; height: 13px; margin-right: -2px; }

.price { font-weight: 700; font-size: 16px; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 13px; font-weight: 400; margin-left: 6px; font-variant-numeric: tabular-nums; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: transparent;
  font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap;
  transition: border-color var(--dur), background var(--dur), color var(--dur);
}
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { border-color: var(--accent-fill); background: var(--accent-fill); color: var(--on-accent); }
.chip.sm { padding: 0 12px; font-size: 14px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }

/* Media (image with fallback) */
.media { position: relative; display: block; overflow: hidden; background: var(--surface-2); }
.media > img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; color: transparent; font-size: 0; }
.media > img.is-broken { visibility: hidden; }
.media-ph { position: absolute; inset: 0; margin: auto; width: 34%; max-width: 56px; height: auto; aspect-ratio: 1; color: var(--line-strong); z-index: 0; }

/* Form fields */
.field { display: grid; gap: 6px; align-content: start; }
.label { font-size: 14px; font-weight: 500; color: var(--text); }
.label .opt { font-weight: 400; color: var(--muted); }
.input {
  width: 100%; min-height: 44px; padding: 0 12px;
  border-radius: var(--r-input); border: 1px solid var(--line-input);
  background: var(--surface); color: var(--text); font-size: 16px;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.input::placeholder { color: var(--muted); opacity: 1; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); outline: none; }
.input[aria-invalid="true"] { border-color: var(--accent); }
.input[readonly] { background: var(--surface-2); color: var(--muted); }
.textarea { min-height: 72px; padding: 10px 12px; resize: vertical; margin-top: 8px; line-height: 1.4; }
.field-err { color: var(--accent); font-size: 13px; font-weight: 500; display: flex; gap: 6px; align-items: center; }

/* Brand */
.brand { display: inline-flex; align-items: center; min-height: 40px; font-weight: 800; font-size: 24px; line-height: 1; color: var(--text); flex-shrink: 0; }
.brand-word b { color: var(--accent); font-weight: 800; }

/* Top bar */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.topbar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: env(safe-area-inset-top, 0px); background: var(--bg); }
.topbar-inner { display: flex; align-items: center; gap: 8px; height: var(--topbar-h); }
.topbar-spacer { flex: 1; }

.loc-chip {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 220px;
  min-height: 40px; margin-left: 8px; padding: 6px 8px; border-radius: var(--r-btn); border: 0; background: transparent;
  font-size: 15px; font-weight: 600; color: var(--text);
}
.loc-chip:hover { background: var(--surface-2); }
.loc-chip .i-pin { color: var(--accent); }
.loc-chip-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 419px) { .loc-chip-city { display: none; } .loc-chip { margin-left: 0; padding: 6px 4px; gap: 4px; font-size: 14px; } .topbar-inner { gap: 2px; } .topbar .brand { font-size: 22px; } }

.nav-links { display: none; gap: 2px; margin-left: 8px; }
.nav-links a { padding: 8px 12px; border-radius: var(--r-btn); font-weight: 500; font-size: 15px; color: var(--text); }
.nav-links a:hover { color: var(--accent); }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.count {
  position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--accent-fill); color: #fff;
  font-size: 12px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.topbar .cart-btn { display: none; }
.theme-top { display: none; }
.login-btn { display: none; }
.login-ico { display: inline-grid; }
@media (min-width: 480px) { .theme-top { display: inline-grid; } }
@media (min-width: 600px) { .login-btn { display: inline-flex; margin-left: 4px; } .login-ico { display: none; } }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .topbar .cart-btn { display: inline-grid; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .loc-chip { max-width: 150px; }
  .nav-links a { padding: 8px; }
  .theme-top { display: none; }
}

/* Bottom tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); align-items: center;
  padding: 0 8px env(safe-area-inset-bottom, 0px);
  background: var(--surface); border-top: 1px solid var(--line);
}
.tab { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 0; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 500; }
.tab .tab-ico { position: relative; display: grid; place-items: center; width: 40px; height: 26px; }
.tab .count { top: -4px; right: 0; }
.tab[aria-current="page"] { color: var(--accent); font-weight: 600; }
.shell.has-tabbar .main { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 32px); }
@media (min-width: 900px) {
  .tabbar { display: none !important; }
  .shell.has-tabbar .main { padding-bottom: 48px; }
}

/* Section scaffolding */
.sec { padding-top: 40px; }
@media (min-width: 768px) { .sec { padding-top: 48px; } }
.sec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec-title { font-size: 20px; font-weight: 700; }
@media (min-width: 768px) { .sec-title { font-size: 24px; } }
.sec-title em { color: var(--accent); }
.sec-sub { color: var(--muted); margin-top: 4px; font-size: 14px; }
.sec-actions { flex-shrink: 0; padding-top: 4px; }
.show-more { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; margin-top: -10px; font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; }
.show-more:hover { color: var(--accent); }
@media (min-width: 768px) { .show-more { font-size: 15px; } }

.hscroll {
  display: grid; grid-auto-flow: column; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  padding-top: 6px; padding-bottom: 4px; scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }

/* Gate */
.gate-hero { padding: 24px 0 8px; }
.gate-grid { display: grid; gap: 24px; align-items: center; }
.gate-copy { display: grid; gap: 12px; align-content: start; min-width: 0; }
.gate-title { font-size: 28px; font-weight: 800; line-height: 1.2; color: var(--muted); }
.gate-sub { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.gate-visual { min-width: 0; }
.gate-photo { border-radius: var(--r-card); aspect-ratio: 4 / 3; }
.gate-photo img { object-position: 50% 35%; }
@media (min-width: 900px) {
  .gate-hero { padding: 48px 0 16px; }
  .gate-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .gate-title { font-size: 40px; }
  .gate-sub { font-size: 20px; }
  .gate-photo { aspect-ratio: 4 / 3; }
}

/* location picker */
.loc-card { position: relative; display: grid; gap: 10px; }
.loc-row { display: grid; gap: 8px; }
@media (min-width: 560px) { .loc-row { grid-template-columns: 1fr auto; } }
.loc-field { position: relative; display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 4px 0 12px; border-radius: var(--r-input); background: var(--surface); border: 1px solid var(--line-input); transition: border-color var(--dur), box-shadow var(--dur); }
.loc-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.loc-field > .i { color: var(--accent); }
.loc-input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; font-size: 16px; }
.loc-input::placeholder { color: var(--muted); opacity: 1; }
.loc-input:focus { outline: none; }
.loc-go { min-height: 50px; padding: 0 24px; }
.loc-list { position: absolute; left: 0; right: 0; top: 56px; z-index: 20; max-height: 320px; overflow-y: auto; padding: 4px; border-radius: var(--r-input); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.loc-option { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.loc-option .ico { color: var(--muted); }
.loc-option b { display: block; font-weight: 500; }
.loc-option small { display: block; color: var(--muted); font-size: 13px; }
.loc-option > span { min-width: 0; }
.loc-option mark { background: none; color: inherit; font-weight: 700; }
.loc-option[aria-selected="true"], .loc-option:hover { background: var(--surface-2); }
.loc-msg:empty { display: none; }
.loc-msg { margin: 0; font-size: 15px; font-weight: 500; color: var(--text); }
@media (min-width: 700px) {
  .panel-loc, .panel-loc .panel-body { overflow: visible; }
  .panel-loc .loc-list { max-height: 260px; }
}
@media (max-width: 699px) {
  .panel-loc .panel-body { min-height: 300px; }
  .panel-loc .loc-list { position: static; max-height: none; box-shadow: none; }
}

/* Carousel */
.carousel { position: relative; margin-top: 16px; }
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r-btn); scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; scroll-snap-align: start; scroll-snap-stop: always; aspect-ratio: 2 / 1; }
.slide .media { position: absolute; inset: 0; }
/* dark scrim under the caption so the text stays legible on any photo */
.slide::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.55) 50%, rgba(0,0,0,0) 85%); pointer-events: none; }
.slide-cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 16px 16px 30px; color: #fff; }
.slide-cap .slide-title { font-size: 18px; font-weight: 700; line-height: 1.25; }
.slide-cap .slide-text { display: none; color: rgba(255,255,255,.85); font-size: 14px; }
.slide-link { display: inline-flex; align-items: center; gap: 6px; width: fit-content; min-height: 40px; margin: -6px 0 -10px; padding: 0; border: 0; background: none; color: #fff; font-size: 14px; font-weight: 500; }
.slide:last-child .media img { object-position: 50% 45%; }
.slide-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; display: none; width: 44px; height: 44px; place-items: center; border: 0; background: none; color: var(--accent); }
.car-btn .i { width: 32px; height: 32px; stroke-width: 2; }
.car-prev { left: 8px; } .car-next { right: 8px; }
.dots { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: 0; display: flex; justify-content: center; }
.dot-hit { width: 28px; height: 40px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); }
.dot-hit[aria-current="true"] .dot { background: var(--accent); }
@media (min-width: 768px) {
  .slide { aspect-ratio: 1128 / 470; }
  .slide::after { background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 60%); }
  .slide-cap { padding: 24px 28px 40px; }
  .slide-cap .slide-title { font-size: 24px; }
  .slide-cap .slide-text { display: block; }
  .slide-link { font-size: 15px; }
  .car-btn { display: inline-grid; }
  .dots { bottom: 4px; }
}

/* Category tiles */
.cat-row { grid-auto-columns: 100px; }
@media (min-width: 768px) { .cat-row { grid-auto-columns: 150px; gap: 12px; } }
@media (min-width: 900px) { .cat-row { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 16px; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.cat-tile { display: grid; gap: 8px; align-content: start; justify-items: center; text-align: center; font-weight: 600; font-size: 14px; line-height: 1.25; }
.cat-tile .media { width: 100%; aspect-ratio: 1; border-radius: var(--r-card); }
.cat-tile:hover span { color: var(--accent); }
@media (min-width: 768px) { .cat-tile { font-size: 15px; } }

/* Dish cards */
.dish-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.dish-wrap { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .dish-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .dish-wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.dish-card { display: flex; flex-direction: column; border-radius: 16px; background: transparent; box-shadow: var(--float-shadow); overflow: hidden; min-width: 0; }
.dc-img { position: relative; }
.dc-img .media { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .dish-grid .dc-img .media { aspect-ratio: 16 / 9; } }
.dc-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.dc-badges { position: absolute; z-index: 2; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.dc-badges.static { position: static; margin-bottom: 2px; }
.dc-badges.static .tag { border: 1px solid var(--line); }
/* 40px tap area around a 32px white circle */
.dc-fav { position: absolute; z-index: 3; top: 4px; right: 4px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: none; color: var(--tag-dark); }
.dc-fav::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--tag-light); }
.dc-fav .i { position: relative; }
.dc-fav:hover, .dc-fav.is-fav { color: var(--tag-red); }
.dc-fav.is-fav .i, .dr-fav.is-fav .i { fill: currentColor; }
.dc-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 10px 12px 12px; min-width: 0; }
.dc-meta { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--muted); }
.dc-cat { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dc-name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.dc-name button { all: unset; cursor: pointer; }
.dc-name button:hover { color: var(--accent); }
.dc-name button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.dc-desc { color: var(--muted); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.dc-foot .dc-price { min-height: 40px; align-items: center; }
.dc-price { display: flex; align-items: baseline; flex-wrap: wrap; line-height: 1.2; min-width: 0; }
@media (min-width: 768px) { .dc-name { font-size: 16px; } .dc-desc { font-size: 14px; } .dc-body { padding: 12px 14px 14px; } }
@media (max-width: 479px) {
  .dish-card .dc-meta { display: none; }
  .dc-desc { display: none; }
  .dish-card .dc-badges .tag:nth-child(n+2) { display: none; }
  .dish-card .dc-foot { flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .dish-card .add-slot { justify-items: stretch; }
  .dish-card .add-btn, .dish-card .stepper { width: 100%; }
}

.add-slot { display: inline-grid; justify-items: end; gap: 2px; }
.add-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; min-width: 80px; padding: 0 14px; border-radius: var(--r-btn);
  border: 0; background: var(--accent-fill); color: var(--on-accent);
  font-weight: 600; font-size: 14px;
  transition: background var(--dur);
}
.add-btn:hover:not(:disabled) { background: var(--accent-fill-press); }
.add-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 2px; padding: 0 5px; border-radius: var(--r-pill); background: var(--on-accent); color: var(--accent-fill); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper { display: inline-grid; grid-template-columns: 40px minmax(26px, auto) 40px; align-items: center; height: 40px; border-radius: var(--r-btn); background: var(--accent-fill); color: var(--on-accent); overflow: hidden; }
.stepper button { height: 100%; border: 0; background: transparent; color: inherit; display: grid; place-items: center; }
.stepper button:hover { background: rgba(0,0,0,.15); }
.stepper button:disabled { opacity: .45; }
.stepper button:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.stepper output { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; }
.stepper.soft { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); }
.stepper.soft button { color: var(--accent); }
.stepper.soft button:hover { background: var(--surface-2); }
.stepper.soft button:focus-visible { outline-color: var(--accent); }
.stepper.lg { height: 46px; grid-template-columns: 42px 34px 42px; }
@media (max-width: 380px) {
  .ps-foot { gap: 8px; }
  .ps-foot .btn { padding: 0 14px; }
  .stepper.lg { grid-template-columns: 38px 30px 38px; }
}

/* list layout (menu page) */
.dish-list { display: grid; }
.dish-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.dish-row:last-child { border-bottom: 0; }
.dr-media .media { width: 104px; height: 88px; border-radius: var(--r-btn); }
.dr-body { display: grid; gap: 4px; min-width: 0; }
.dr-foot { display: flex; align-items: center; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.dr-foot .add-slot { margin-left: auto; }
.dr-fav { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 500; }
.dr-fav:hover { color: var(--text); }
.dr-fav.is-fav { color: var(--accent); }
@media (min-width: 600px) { .dish-row { grid-template-columns: 140px minmax(0, 1fr); gap: 16px; } .dr-media .media { width: 140px; height: 110px; } }

/* grid view: dishes without a photo, as compact full-width rows under the cards */
.dish-lines { display: grid; margin-top: 12px; border-top: 1px solid var(--line); }
.dish-line { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dl-main { display: grid; gap: 2px; min-width: 0; }
.dl-main .dc-meta { flex-wrap: wrap; }
.dl-tags { display: inline-flex; gap: 4px; }
.dl-tags .tag { border: 1px solid var(--line); }
.dish-line .dc-desc { display: block; -webkit-line-clamp: unset; font-size: 14px; }
.dl-side { display: flex; align-items: center; gap: 12px; }
.dl-side .add-slot { margin-left: auto; }
.dish-line.is-sold .dc-name, .dish-line.is-sold .price { color: var(--muted); }
@media (min-width: 768px) {
  .dish-line { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
  .dl-side { gap: 16px; }
  .dl-side .dc-price { min-width: 76px; justify-content: flex-end; }
}

/* Home sections */
.split { display: grid; gap: 20px; align-items: center; }
.split-media .media { aspect-ratio: 4 / 3; border-radius: var(--r-card); }
.split-copy { display: grid; gap: 12px; justify-items: start; }
.split-copy p { color: var(--muted); font-size: 15px; max-width: 56ch; }
.split-copy p b { color: var(--text); }
.split-copy .btn-row { margin-top: 4px; }
/* owner-named dish buttons: wrap long names instead of clipping at 375px */
.split-copy .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 10px; max-width: 100%; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } .split-copy p { font-size: 16px; } }

.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); }
.faq-q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 0; background: none; text-align: left; font-weight: 600; font-size: 15px; border-radius: var(--r-btn); }
.faq-q:hover { color: var(--accent); }
.fq-ico { color: var(--muted); transition: transform var(--dur); }
.faq-item.is-open .fq-ico { transform: rotate(180deg); }
.faq-a { padding: 0 16px 16px; color: var(--muted); font-size: 15px; max-width: 75ch; }


/* Footer */
.footer { margin-top: auto; background: var(--foot-bg); color: var(--foot-text); border-top: 1px solid var(--foot-line); }
.shell.has-tabbar .footer { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) { .shell.has-tabbar .footer { padding-bottom: 0; } }
.footer .brand { color: #fff; }
.footer .brand-word b { color: #EF4444; }
.foot-grid { display: grid; gap: 32px 24px; padding-block: 40px 32px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; display: grid; gap: 14px; justify-items: start; align-content: start; }
.foot-brand p { color: var(--foot-muted); max-width: 36ch; font-size: 14px; }
.foot-col h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: var(--foot-text); }
.foot-col ul { display: grid; gap: 0; font-size: 14px; }
.foot-col li { min-height: 32px; display: flex; align-items: center; }
.foot-col a { display: inline-flex; align-items: center; min-height: 40px; margin-block: -4px; color: var(--foot-muted); }
.foot-col a:hover { color: var(--foot-text); }
.foot-contact li { color: var(--foot-muted); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } .foot-brand { grid-column: auto; } }
.foot-bottom { border-top: 1px solid var(--foot-line); }
.foot-bottom-links { display: inline-flex; gap: 20px; }
.foot-bottom-inner { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: center; padding-block: 16px; font-size: 13px; color: var(--foot-muted); }
.foot-bottom .linklike { min-height: 40px; color: var(--foot-muted); font-weight: 500; }
.foot-bottom .linklike:hover { color: var(--foot-text); text-decoration: underline; text-underline-offset: 3px; }
.footer :focus-visible { outline-color: #fff; }

/* Page heads */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 16px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--text); font-weight: 500; }
.crumb-sep { color: var(--faint); }
.page-head { display: grid; gap: 4px; padding-top: 16px; }
.page-title { font-size: 28px; font-weight: 700; }
.page-title.sm { font-size: 24px; }
@media (min-width: 768px) { .page-title { font-size: 28px; } }
.page-sub { color: var(--muted); font-size: 15px; }

.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 48px 16px; }
.empty h2, .empty h3 { font-size: 20px; }
.empty p { color: var(--muted); max-width: 40ch; }
.empty .btn { margin-top: 6px; }

/* Menu page */
.banner { position: relative; margin-top: 16px; border-radius: var(--r-card); overflow: hidden; height: 200px; background: var(--surface-2); }
.banner-photo { position: absolute; inset: 0; }
.banner-photo img { object-position: 50% 58%; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 65%); pointer-events: none; }
.banner-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: grid; gap: 6px; padding: 16px; color: #fff; }
.banner-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.banner-body h1 { font-size: 24px; font-weight: 700; }
.banner-body .addr { color: rgba(255,255,255,.85); font-size: 14px; }
@media (min-width: 768px) { .banner { height: 300px; } .banner-body { padding: 24px; } .banner-body h1 { font-size: 28px; } }
.menu-info { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.menu-info b { color: var(--text); font-weight: 600; }

.toolbar { display: flex; gap: 8px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.search-inline { position: relative; flex: 1 1 180px; max-width: 420px; }
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.search-inline .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-inline .input { padding-left: 38px; min-height: 40px; font-size: 16px; }
.seg { display: inline-flex; gap: 8px; margin-left: auto; }
.seg .btn { min-height: 40px; }
.seg .btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
@media (max-width: 599px) { .toolbar { flex-wrap: nowrap; } .seg .btn { width: 40px; padding: 0; } .seg-l { display: none; } }
.filters { display: flex; gap: 8px; align-items: center; margin-top: 12px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 4px; }
.filters::-webkit-scrollbar { display: none; }

.tabs-bar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--topbar-h)); z-index: 30; display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 0; background: var(--bg); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.tabs { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; border-radius: 10px; background: var(--surface-2); }
.tabs::-webkit-scrollbar { display: none; }
.tab-link { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-btn); font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tab-link:hover { color: var(--text); }
.tab-link[aria-current="true"] { background: var(--tab-on); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.tabs-arrow { flex-shrink: 0; display: none; width: 40px; height: 40px; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--accent); }
.tabs-arrow:hover { background: var(--surface-2); }
@media (min-width: 768px) { .tabs-arrow:not([hidden]) { display: inline-grid; } }
.menu-section { padding-top: 24px; scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--topbar-h) + 72px); }
.menu-section h2 { font-size: 20px; margin-bottom: 12px; display: flex; align-items: baseline; gap: 8px; }
.menu-section h2 small { font-size: 14px; font-weight: 400; color: var(--muted); }
.menu-empty { margin-top: 16px; }

/* Offers */
.coupon-grid { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 700px) { .coupon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .coupon-grid { grid-template-columns: repeat(3, 1fr); } }
.coupon { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r-card); background: var(--tile-bg); box-shadow: var(--float-shadow); }
.coupon h2 { font-size: 18px; }
.coupon > p { color: var(--muted); font-size: 14px; }
.coupon > .cp-terms { color: var(--muted); font-size: 13px; }
.cp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.coupon .cp-foot { margin-top: 10px; }
.cp-code { font-size: 14px; color: var(--muted); }
.cp-code b { color: var(--text); font-weight: 700; }
.cp-applied { display: inline-flex; align-items: center; gap: 6px; color: var(--good); font-weight: 600; font-size: 14px; }
.cp-applied:focus-visible, .cp-saved:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.cp-saved { color: var(--muted); font-weight: 600; font-size: 14px; }
.coupon-warn { display: flex; align-items: center; gap: 6px; color: var(--warn); font-size: 13px; font-weight: 500; }

/* Checkout */
.co-grid { display: grid; gap: 16px; margin-top: 20px; align-items: start; }
@media (min-width: 960px) { .co-grid { grid-template-columns: 1.4fr 1fr; gap: 24px; } .co-aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--topbar-h) + 24px); } }
.card { border-radius: var(--r-card); background: var(--tile-bg); box-shadow: var(--float-shadow); padding: 16px; scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--topbar-h) + 16px); }
.field, .momo { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--topbar-h) + 16px); }
@media (min-width: 600px) { .card { padding: 20px; } }
.card + .card { margin-top: 16px; }
.card-title { font-size: 18px; margin-bottom: 16px; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .span2 { grid-column: 1 / -1; } }
.area-row { display: flex; gap: 8px; align-items: center; }
.area-row .input { flex: 1; }
.area-row .btn { min-height: 44px; }
.co-contact { color: var(--muted); font-size: 14px; }
.co-contact strong { color: var(--text); }
.pay-list { display: grid; gap: 8px; }
.pay-card { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r-btn); border: 1px solid var(--line-strong); cursor: pointer; transition: border-color var(--dur); }
.pay-card:hover { border-color: var(--muted); }
.pay-card input { position: absolute; opacity: 0; pointer-events: none; }
.pay-card b { display: block; font-weight: 600; }
.pay-card small { color: var(--muted); font-size: 13px; }
.pay-card .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-input); display: grid; place-items: center; }
.pay-card:has(input:checked) { border-color: var(--accent); }
.pay-card:has(input:checked) .radio { border-color: var(--accent); }
.pay-card:has(input:checked) .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.pay-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pay-extra { margin-top: 12px; display: grid; gap: 12px; }
.pay-extra:empty { display: none; }
.pay-note { font-size: 14px; color: var(--muted); }
.momo { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
.momo legend { padding: 0; margin-bottom: 8px; }
.radio-chip { position: relative; cursor: pointer; }
.radio-chip input { position: absolute; opacity: 0; pointer-events: none; }
.radio-chip:has(input:checked) { border-color: var(--accent-fill); background: var(--accent-fill); color: var(--on-accent); }
.radio-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.fine { font-size: 12px; color: var(--muted); }

.summary-rest { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: -8px 0 8px; font-size: 14px; color: var(--muted); }
.summary-rest .btn-link { min-height: 40px; }
.mini-lines { display: grid; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mini-line { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: start; font-size: 14px; }
.mini-line small { display: block; color: var(--muted); font-size: 12px; }
.mini-line .num { font-weight: 600; }
.ml-q { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.mini-lines + .bill { margin-top: 16px; }

.bill { display: grid; gap: 8px; font-size: 14px; }
.bill-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.bill-row span:last-child { color: var(--text); font-weight: 500; }
.bill-row .free { color: var(--good); font-weight: 600; }
.bill-row .strike { text-decoration: line-through; color: var(--muted); font-weight: 400; margin-right: 6px; }
.bill-row.discount span:last-child { color: var(--good); }
.bill-row.total { padding-top: 10px; border-top: 1px solid var(--line); color: var(--text); font-size: 16px; font-weight: 700; }
.bill-row.total span:last-child { font-weight: 700; }
.bill .coupon-warn { margin: -2px 0 2px; }

.place-bar { position: sticky; bottom: 0; z-index: 30; margin-top: 16px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); }
.place-btn { width: 100%; justify-content: space-between; min-height: 50px; padding: 0 20px; font-size: 16px; }
.place-btn .spinner { width: 18px; height: 18px; }
.place-btn:disabled { opacity: .85; justify-content: center; gap: 10px; }
.aside-place { display: none; margin-top: 16px; }
@media (min-width: 960px) { .aside-place { display: flex; } .place-bar { display: none; } }
.gate-login { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 48px 16px; }
.gate-login .page-sub { max-width: 44ch; }
.co-empty { margin-top: 16px; }

/* Order tracking */
.track-grid { display: grid; gap: 16px; margin-top: 20px; align-items: start; }
@media (min-width: 960px) { .track-grid { grid-template-columns: 1.2fr 1fr; gap: 24px; } }
.track-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.track-col > .card + .card { margin-top: 0; }
.track-hero { display: grid; gap: 16px; padding: 20px; border-radius: var(--r-card); background: var(--tile-bg); box-shadow: var(--float-shadow); }
.eta-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.eta-big b { font-size: 32px; font-weight: 800; line-height: 1.1; }
.eta-big span { color: var(--muted); font-size: 14px; }
.track-status { font-size: 16px; font-weight: 600; }
.track-note { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.track-note b { color: var(--text); }
.track-note a, .pay-box a:not(.btn) { color: var(--text); font-weight: 600; }
.ts-sub { font-weight: 400; color: var(--muted); font-size: 15px; }
.progress { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width 600ms ease; }
.timeline { display: grid; }
.tl-step { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; position: relative; padding-bottom: 20px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.tl-step:last-child::before { display: none; }
.tl-step.done::before { background: var(--good); }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--faint); border: 2px solid var(--line-strong); position: relative; z-index: 1; }
.tl-step.done .tl-dot { background: var(--good-strong); border-color: var(--good-strong); color: #fff; }
.tl-step.now .tl-dot { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }
.tl-body b { display: block; font-weight: 600; }
.tl-body small { color: var(--muted); font-size: 13px; }
.tl-step.todo .tl-body b { color: var(--muted); }
.tl-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pay-box { display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.pay-box b { color: var(--text); }
.acct { display: grid; gap: 8px; margin: 4px 0; padding: 12px 0; border-block: 1px solid var(--line); }
.acct div { display: flex; justify-content: space-between; gap: 12px; }
.acct dt { color: var(--muted); font-size: 14px; }
.acct dd { margin: 0; color: var(--text); font-weight: 600; }
.trk-addr { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.trk-addr span { display: grid; gap: 2px; min-width: 0; }
.trk-addr small { color: var(--muted); font-size: 13px; }
.trk-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Layers (dialogs) */
.layers { position: relative; z-index: 100; }
.layer { position: fixed; inset: 0; display: flex; }
.scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity 200ms ease; }
.layer.is-open .scrim { opacity: 1; }
.panel { position: relative; display: flex; flex-direction: column; background: var(--surface); color: var(--text); box-shadow: var(--shadow); max-height: 100%; outline: none; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 18px; flex: 1; min-width: 0; }
.panel-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 20px; }
.panel-foot { padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); }
.close-btn { flex-shrink: 0; border-color: transparent; background: transparent; }

/* phones: dialogs are bottom sheets, like the product sheet */
.layer-modal { align-items: flex-end; justify-content: center; }
.layer-modal .panel { width: 100%; max-width: none; max-height: calc(100% - 24px); border-radius: var(--r-card) var(--r-card) 0 0; transform: translateY(100%); transition: transform 260ms ease; }
.layer-modal .panel-body { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
.layer-modal.is-open .panel { transform: none; }
@media (min-width: 700px) {
  .layer-modal { align-items: center; padding: 16px; }
  .layer-modal .panel { max-width: 440px; max-height: 100%; border-radius: var(--r-card); opacity: 0; transform: translateY(8px); transition: transform 200ms ease, opacity 200ms ease; }
  .layer-modal .panel.panel-wide { max-width: 560px; }
  .layer-modal.is-open .panel { transform: none; opacity: 1; }
}

.layer-sheet { align-items: flex-end; justify-content: center; }
.layer-sheet .panel { width: 100%; max-height: calc(100% - 24px); border-radius: var(--r-card) var(--r-card) 0 0; transform: translateY(100%); transition: transform 260ms ease; overflow: hidden; }
.layer-sheet.is-open .panel { transform: none; }
@media (min-width: 700px) {
  .layer-sheet { align-items: center; padding: 24px; }
  .layer-sheet .panel { max-width: 540px; border-radius: var(--r-card); max-height: 100%; transform: translateY(8px); opacity: 0; transition: transform 200ms ease, opacity 200ms ease; }
  .layer-sheet.is-open .panel { transform: none; opacity: 1; }
}

.layer-drawer { justify-content: flex-end; }
.layer-drawer .panel { width: 100%; height: 100%; max-height: none; transform: translateX(100%); transition: transform 260ms ease; padding-top: env(safe-area-inset-top, 0px); }
.layer-drawer.is-open .panel { transform: none; }
@media (min-width: 700px) { .layer-drawer .panel { width: 420px; } }

.layer-full { justify-content: center; align-items: flex-start; }
.layer-full .panel { width: 100%; height: 100%; max-height: none; padding-top: env(safe-area-inset-top, 0px); opacity: 0; transition: opacity 180ms ease; }
.layer-full.is-open .panel { opacity: 1; }
@media (min-width: 700px) { .layer-full { padding: 8vh 24px 24px; } .layer-full .panel { max-width: 680px; height: auto; max-height: 80vh; max-height: 80dvh; border-radius: var(--r-card); } }

/* product sheet */
.ps-body { padding-top: 0; }
.ps-hero { position: relative; margin: 0 -20px; }
.ps-hero .media { aspect-ratio: 16 / 10; }
.ps-hero .close-float { position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: #111; }
.ps-hero .close-float:hover { background: #F5F5F5; }
@media (min-width: 700px) { .ps-hero .media { aspect-ratio: 16 / 9; } }
.ps-head { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ps-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.ps-badges:empty { display: none; }
.ps-badges .tag { border: 1px solid var(--line); }
.ps-head h2 { font-size: 24px; }
.ps-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.ps-cat { color: var(--muted); }
.ps-price { display: flex; align-items: baseline; }
.ps-price .price { font-size: 20px; }
.ps-desc { color: var(--muted); font-size: 15px; }
.opt-group { padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); margin: 0; min-width: 0; }
.opt-group:last-child { border-bottom: 0; }
.opt-group legend { display: flex; align-items: baseline; justify-content: space-between; width: 100%; padding: 0; margin-bottom: 6px; font-weight: 700; font-size: 16px; }
.opt-group legend small { font-size: 13px; font-weight: 400; color: var(--muted); }
.opt-group.has-err legend span, .opt-group.has-err legend small { color: var(--accent); }
.opt-row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 2px 0; cursor: pointer; }
.opt-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.opt-row span { flex: 1; }
.opt-row em { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.opt-row.is-disabled { opacity: .45; cursor: not-allowed; }
.opt-err { margin-top: 4px; }
.ps-foot { display: flex; gap: 12px; align-items: center; }
.ps-foot .btn { flex: 1; justify-content: space-between; min-height: 46px; }

/* cart */
.ph-count { font-size: 15px; font-weight: 400; color: var(--muted); }
.cart-rest { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.cart-rest b { color: var(--text); font-weight: 600; }
.cart-rest .btn-link { margin-left: auto; min-height: 40px; font-size: 14px; flex-shrink: 0; }
.cart-undo { display: flex; gap: 8px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.cart-undo .btn-link { min-height: 40px; }
.free-bar { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.free-bar b { font-weight: 600; }
.free-bar .progress { height: 6px; }
.free-bar.done .progress i { background: var(--good); }
.cart-lines { display: grid; }
.cart-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line .media { width: 56px; height: 56px; border-radius: var(--r-btn); }
.cl-info { min-width: 0; display: grid; gap: 2px; }
.cl-info b { font-size: 15px; font-weight: 600; display: flex; min-width: 0; }
.cl-info b span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-info small { color: var(--muted); font-size: 12px; }
.cl-info .num { font-weight: 600; font-size: 14px; }
.cl-side { display: grid; justify-items: end; gap: 4px; }
.cl-ph { width: 56px; height: 56px; }
@media (max-width: 479px) { .cart-rest .dot-sep { display: none; } .cart-rest .cr-eta { display: block; } }
.cl-side .stepper { height: 40px; grid-template-columns: 40px 26px 40px; }
.cart-actions { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 16px; }
.cart-actions .btn-link { min-height: 40px; }
.cart-actions .btn-sm { min-height: 40px; }
.coupon-box { display: grid; gap: 8px; padding: 12px 0 16px; border-block: 1px solid var(--line); margin-bottom: 16px; }
.coupon-form { display: grid; gap: 6px; }
.coupon-box .row { display: flex; gap: 8px; }
.coupon-box .input { min-height: 40px; text-transform: uppercase; font-weight: 600; font-size: 16px; }
.coupon-box .input::placeholder { text-transform: none; font-weight: 400; }
.coupon-box .btn { min-height: 40px; }
.coupon-on { display: flex; align-items: center; gap: 12px; }
.coupon-on b { font-weight: 700; }
.coupon-on small { display: block; color: var(--muted); font-size: 13px; }
.coupon-on .btn-link { margin-left: auto; }
.cart-empty { padding-top: 32px; }
.cart-foot { display: grid; gap: 8px; }
.cart-foot .btn { justify-content: space-between; min-height: 50px; padding: 0 20px; }

/* login */
.login-stack { display: grid; gap: 16px; }
.phone-field { display: flex; align-items: stretch; border-radius: var(--r-input); border: 1px solid var(--line-input); background: var(--surface); overflow: hidden; transition: border-color var(--dur), box-shadow var(--dur); }
.phone-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.phone-field.is-err { border-color: var(--accent); }
.flag { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.2); flex-shrink: 0; }
.phone-prefix { display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--surface-2); border-right: 1px solid var(--line); font-weight: 600; font-variant-numeric: tabular-nums; }
.phone-field input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; padding: 0 12px; font-size: 18px; font-variant-numeric: tabular-nums; }
.phone-field input:focus { outline: none; }
/* country code switch: a native select laid over the flag and code */
.phone-cc { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 10px 0 12px; background: var(--surface-2); border-right: 1px solid var(--line); font-weight: 600; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.phone-cc .cc-face { display: flex; align-items: center; gap: 6px; }
.phone-cc .i { color: var(--muted); margin-left: -1px; }
.phone-cc select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; border: 0; appearance: none; -webkit-appearance: none; }
.phone-cc:hover { background: var(--line); }
.phone-cc:has(select:focus-visible) { box-shadow: inset 0 0 0 2px var(--accent); }
.otp-fs { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
.otp-fs legend { padding: 0; margin-bottom: 8px; }
.otp-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 280px; }
.otp-box { width: 100%; height: 52px; border-radius: var(--r-input); border: 1px solid var(--line-input); background: var(--surface); text-align: center; font-size: 24px; font-weight: 700; caret-color: var(--accent); }
.otp-box:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.otp-box.filled { border-color: var(--text); }
.resend { font-size: 14px; color: var(--muted); }

/* confirm */
.cf-body { padding-top: 20px; }
.cf-title { font-size: 20px; margin-bottom: 8px; }
.cf-text { color: var(--muted); }
.confirm-actions { display: grid; gap: 8px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 480px) { .confirm-actions { grid-template-columns: 1fr 1fr; } }

/* location dialog */
.locd-now { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.locd-now strong { color: var(--text); }
/* search overlay */
.search-top { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.search-box { flex: 1; position: relative; }
.search-box .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-box input { width: 100%; height: 46px; border-radius: var(--r-input); border: 1px solid var(--line-input); background: var(--surface); padding: 0 12px 0 40px; font-size: 16px; }
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.search-body { padding: 16px 16px 32px; overflow-y: auto; flex: 1; }
.search-body h3 { font-size: 15px; font-weight: 600; margin: 20px 0 8px; }
.search-body h3:first-child { margin-top: 0; }
.res-list { display: grid; gap: 2px; }
.res-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r-btn); border: 0; background: none; text-align: left; width: 100%; color: var(--text); }
.res-item:hover, .res-item:focus-visible { background: var(--surface-2); }
.res-item .media { width: 48px; height: 48px; border-radius: 6px; }
.res-item b { display: flex; font-weight: 600; }
.res-item b span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-item small { color: var(--muted); font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-item .res-side { font-weight: 600; font-size: 14px; }
.res-item mark { background: none; color: inherit; font-weight: 700; }
.res-item.no-img { grid-template-columns: minmax(0, 1fr) auto; }
.res-item > .i { color: var(--muted); }
.res-info { min-width: 0; }
.search-empty { padding: 32px 16px; }

/* credits */
.credit-list { display: grid; gap: 8px; }
.credit-list li { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-btn); background: var(--tile-bg); box-shadow: var(--float-shadow); font-size: 13px; color: var(--muted); }
.credit-list b { color: var(--text); font-size: 14px; }
.credit-list a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.credits-empty { padding: 32px 16px; }

/* account */
.acct-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.acct-head b { display: block; font-size: 18px; }
.acct-head small { color: var(--muted); }
.acct-h { font-size: 15px; font-weight: 600; margin: 16px 0 8px; }
.order-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-btn); background: var(--tile-bg); box-shadow: var(--float-shadow); margin-bottom: 8px; }
.order-link:hover { background: var(--surface-2); }
.order-link > span { display: grid; min-width: 0; }
.order-link small { display: block; color: var(--muted); }
.order-link .i { margin-left: auto; color: var(--muted); }
.acct-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }

/* Home info strip and app notice */
.info-strip { display: grid; margin: 0; border-top: 1px solid var(--line); }
.info-strip > div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-strip dt { font-size: 14px; font-weight: 600; color: var(--text); }
.info-strip dd { margin: 0; font-size: 15px; color: var(--muted); }
@media (min-width: 768px) {
  .info-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .info-strip > div { padding: 16px 20px 16px 0; border-bottom: 0; }
  .info-strip > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
}

/* Gate: about block, text left and four fact tiles right (one per row, centered, floating cards like kkeats) */
.about-grid { display: grid; gap: 24px; align-items: center; }
.about-copy { display: grid; gap: 12px; justify-items: start; }
.about-copy p { color: var(--muted); font-size: 16px; max-width: 46ch; }
.about-copy .btn { margin-top: 4px; }
.about-tiles { display: grid; gap: 16px; }
.about-tile { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 12px; border-radius: 8px; background: var(--tile-bg); box-shadow: 0 4px 8px rgba(0, 0, 0, .1); }
.about-tile .i { width: 48px; height: 48px; stroke-width: 2; color: var(--text); }
.about-tile h3 { font-size: 20px; font-weight: 600; }
.about-tile p { font-size: 19px; line-height: 1.5; color: var(--text); }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* App block: copy and store names left, phone frame right */
.app-grid { display: grid; gap: 28px; align-items: center; }
.app-copy { display: grid; gap: 10px; justify-items: start; }
.app-copy p { color: var(--muted); font-size: 16px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.store-box { display: grid; min-width: 150px; padding: 8px 16px; border-radius: 8px; background: #000; color: #fff; border: 1px solid #3A3A3A; line-height: 1.15; }
.store-box small { font-size: 11px; color: #BDBDBD; }
.store-box b { font-size: 18px; font-weight: 700; }
.app-phone { justify-self: center; width: 236px; max-width: 100%; padding: 10px; border-radius: 38px; background: #0A0A0A; box-shadow: 0 0 0 1px var(--line-strong); }
.pm-screen { height: 440px; overflow: hidden; border-radius: 28px; background: var(--bg); color: var(--text); padding: 14px 10px; display: grid; align-content: start; gap: 8px; font-size: 10px; line-height: 1.3; }
.pm-bar { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 4px; }
.pm-bar .brand-word { font-size: 16px; font-weight: 800; }
.pm-bar .i { width: 14px; height: 14px; }
.pm-banner { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.pm-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .65)); }
.pm-banner span { position: absolute; z-index: 1; left: 8px; bottom: 6px; color: #FFFFFF; font-size: 11px; font-weight: 700; }
.pm-screen img { width: 100%; height: 100%; object-fit: cover; }
.pm-h { font-size: 11px; font-weight: 700; margin-top: 2px; }
.pm-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pm-cats span { display: grid; gap: 3px; }
.pm-cats img { aspect-ratio: 1; border-radius: 8px; }
.pm-cats i { font-style: normal; font-weight: 600; text-align: center; }
.pm-dishes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pm-dishes span { display: grid; grid-template-rows: auto 1fr auto; gap: 4px; padding-bottom: 6px; border-radius: 8px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.pm-dishes img { aspect-ratio: 4 / 3; }
.pm-dishes b { padding: 0 6px; font-weight: 700; }
.pm-dishes i { justify-self: start; align-self: end; margin-left: 6px; padding: 2px 8px; border-radius: 4px; background: var(--accent-fill); color: var(--on-accent); font-style: normal; font-weight: 700; }
@media (min-width: 900px) {
  .app-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; }
  .app-phone { width: 260px; margin-right: 48px; }
  .pm-screen { height: 480px; }
}

/* Gate footer: solid red copyright bar */
.footer.foot-min { background: var(--accent-fill); border-top: 0; color: #FFFFFF; }
.foot-red-inner { display: grid; justify-items: center; gap: 2px; padding-block: 14px; text-align: center; }
.foot-red p { font-size: 14px; font-weight: 700; }
.foot-red .linklike { min-height: 32px; font-size: 13px; color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }

/* Sold out and dishes without a photo */
.dish-card.is-sold .media img, .dish-row.is-sold .media img { filter: grayscale(1); opacity: .55; }
.dish-card.is-sold .dc-name, .dish-card.is-sold .price, .dish-row.is-sold .dc-name, .dish-row.is-sold .price { color: var(--muted); }
.add-btn.is-sold, .add-btn:disabled { background: var(--surface-3); color: var(--muted); cursor: not-allowed; }
.dish-card.no-img .dc-body { padding-top: 12px; }
.dc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; min-height: 32px; }
.dc-fav.static { position: static; flex-shrink: 0; color: var(--text); }
.dc-fav.static::before { background: var(--surface-2); }
.dc-fav.static:hover, .dc-fav.static.is-fav { color: var(--accent); }
.dish-card.no-img .dc-desc { display: -webkit-box; -webkit-line-clamp: 4; }
.res-item.is-sold .res-side { color: var(--muted); font-weight: 500; }
.ps-noimg { display: flex; justify-content: flex-end; padding-top: 12px; }
.nf { padding-top: 64px; }
.co-note-l { display: block; margin-top: 12px; }
.co-note-l + .textarea { margin-top: 6px; }

/* Toast */
/* Toast: above the tab bar or the Place Order bar on phones, bottom right on desktop */
.toast-region { position: fixed; z-index: 150; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px); width: min(calc(100% - 32px), 420px); pointer-events: none; }
body.no-tabbar .toast-region { bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); }
body.has-placebar .toast-region { bottom: calc(env(safe-area-inset-bottom, 0px) + 88px); }
@media (min-width: 900px) { .toast-region, body.no-tabbar .toast-region { left: auto; right: 24px; transform: none; bottom: 24px; } html.locked .toast-region { right: auto; left: 24px; } }
@media (min-width: 960px) { body.has-placebar .toast-region { bottom: 24px; } }
/* phones with a sheet open: top left, leaving the close button (top right) free */
@media (max-width: 699px) { html.locked .toast-region { top: calc(env(safe-area-inset-top, 0px) + 12px); bottom: auto; left: 16px; right: 64px; width: auto; transform: none; } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: var(--r-btn); background: var(--toast-bg); color: var(--tag-light); border: 1px solid var(--toast-line); box-shadow: var(--shadow); animation: toastIn 200ms ease; }
.toast .t-ico { width: 18px; height: 18px; color: #22C55E; stroke-width: 2.25; }
.toast .t-ico.info { color: #A3A3A3; }
.toast p { flex: 1; font-weight: 500; font-size: 14px; }
.toast-act { flex-shrink: 0; min-height: 40px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--tag-light); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.toast-act:hover { background: rgba(255,255,255,.08); }
.toast.out { animation: toastOut 180ms ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .spinner { animation: spin 1.4s linear infinite !important; }
}

/* Live data states (API) */
.loc-locate { flex: none; color: var(--muted); }
.loc-locate:hover { color: var(--text); }
.loc-go .spinner { width: 16px; height: 16px; }
.view-loading { min-height: 40vh; align-content: center; }
.bill-wait { display: grid; place-items: center; min-height: 96px; color: var(--muted); }
.bill.is-stale { opacity: .6; }
.line-warn { display: block; color: var(--warn); font-size: 13px; font-weight: 500; }
.co-notice { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r-card); background: var(--tile-bg); box-shadow: var(--float-shadow); font-size: 15px; font-weight: 500; }
.co-notice .i { color: var(--warn); flex: none; }
.co-err { margin: 8px 0 0; }
.trk-rider { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); }
.trk-rider b { color: var(--text); font-weight: 600; }
.trk-help { flex-basis: 100%; margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.trk-help a { color: var(--text); font-weight: 600; }
.pay-box .btn-row { margin-top: 4px; }
.pay-wait { display: flex; align-items: center; gap: 8px; color: var(--text); }
.pay-wait .spinner { width: 14px; height: 14px; flex: none; color: var(--muted); }
.acct dd { text-align: right; }
.acct dd small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.acct-num { display: flex; align-items: center; gap: 10px; }
.acct-num .num { font-size: 18px; letter-spacing: .02em; }
