/*
 * theme.css — the Online Kitchen look: silver and black, with a day and a night theme, set in Manrope.
 * Load it AFTER app.css. It re-points the color classes the pages use onto the tokens below,
 * so every page (and every screen the app's code builds) follows the same two themes.
 *
 * Theme choice: follows the device (light = day, dark = night) unless the page's <html> carries
 * data-theme="day" or data-theme="night" (set by theme.js from the owner's choice).
 * Color is used only where it carries meaning: --ok, --warn and --bad. Everything else is silver/black.
 *
 * The "COLOR CLASS MAP" block at the bottom is generated: if a page starts using a new color class,
 * add a rule for it there (or regenerate it).
 */

/* ---------- tokens: night (default) ---------- */
:root {
  color-scheme: dark;
  --z950: #0a0a0b;   /* page */
  --z900: #151618;   /* cards, panels */
  --z800: #26282b;   /* hairlines, borders */
  --z700: #3a3c40;
  --z600: #7f8288;   /* faint text: still 4.5:1 on cards */
  --z500: #8a8d93;   /* quiet text */
  --z400: #a3a6ab;   /* secondary text */
  --z300: #c4c6ca;
  --z200: #d3d5d8;
  --z100: #dcdee1;   /* silver: primary buttons, strongest surfaces */
  --zwhite: #f4f5f7;
  --zblack: #000000;
  --ink: #dcdee1;    /* main action */
  --on-ink: #0a0a0b;
  --ok: #7cc79a;
  --warn: #e3b456;
  --bad: #f2928d;
  --bad-solid: #c2413b;
}

/* ---------- tokens: day ---------- */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="night"]) {
    color-scheme: light;
    --z950: #e8e9eb; --z900: #f7f7f8; --z800: #cfd1d5; --z700: #b6b9be; --z600: #63666c;
    --z500: #5c5f65; --z400: #4b4e54; --z300: #36383c; --z200: #24262a; --z100: #0b0b0c;
    --zwhite: #000000; --zblack: #0b0b0c;
    --ink: #0b0b0c; --on-ink: #e8e9eb;
    --ok: #2f7a4f; --warn: #8a5a00; --bad: #b3261e; --bad-solid: #b3261e;
  }
}
:root[data-theme="day"] {
  color-scheme: light;
  --z950: #e8e9eb; --z900: #f7f7f8; --z800: #cfd1d5; --z700: #b6b9be; --z600: #63666c;
  --z500: #5c5f65; --z400: #4b4e54; --z300: #36383c; --z200: #24262a; --z100: #0b0b0c;
  --zwhite: #000000; --zblack: #0b0b0c;
  --ink: #0b0b0c; --on-ink: #e8e9eb;
  --ok: #2f7a4f; --warn: #8a5a00; --bad: #b3261e; --bad-solid: #b3261e;
}

/* ---------- type ---------- */
html, body {
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'tnum' 0;
  -webkit-font-smoothing: antialiased;
}
body { background-color: var(--z950); color: var(--z100); }
/* Headings used a serif italic; the new look is one modern sans, set heavier and tighter. */
.font-serif { font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif; font-weight: 800; letter-spacing: -0.02em; }
.font-serif.italic, .italic.font-serif, h1.italic, h2.italic { font-style: normal; }
.font-sans { font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif; }
/* Prices and counts line up like a printed menu. */
.font-mono, [data-num] { font-variant-numeric: tabular-nums; }
input, select, textarea, button { font-family: inherit; }
input::placeholder, textarea::placeholder { color: var(--z500); opacity: 1; }

/* ---------- main actions: silver on night, black on day ---------- */
.bg-zinc-100, .bg-emerald-600, .bg-emerald-500, .bg-blue-600 { background-color: var(--ink); }
.bg-zinc-100.text-zinc-950, .bg-emerald-600.text-white, .bg-emerald-500.text-white, .bg-blue-600.text-white,
.bg-emerald-500.text-zinc-950, .bg-emerald-600.text-zinc-950 { color: var(--on-ink); }
.hover\:bg-white:hover.bg-zinc-100, .hover\:bg-emerald-500:hover.bg-emerald-600, .hover\:bg-blue-500:hover.bg-blue-600 {
  background-color: color-mix(in srgb, var(--ink) 86%, var(--z950));
}
/* Danger and brand-colored buttons keep white text in both themes. */
.bg-rose-600.text-white, .bg-red-600.text-white, .bg-rose-500.text-white, .bg-\[\#635bff\].text-white { color: #ffffff; }
.shadow-lg { --tw-shadow-color: transparent; }

/* ---------- owner portal switches ---------- */
.switch { background: var(--z700) !important; }
.switch::after { background: var(--z950) !important; }
.switch.on { background: var(--ink) !important; }
.switch.amber.on { background: var(--warn) !important; }
.guide-flash { outline-color: var(--ink) !important; }

/* ---------- quiet (secondary) button ---------- */
.ok-btn-quiet { background: transparent; color: var(--z100); border: 1px solid var(--z700); }
.ok-btn-quiet:hover { background: var(--z900); }

/* ---------- theme toggle (owner portal) ---------- */
.theme-seg { display: flex; width: 100%; border: 1px solid var(--z800); border-radius: 10px; overflow: hidden; }
.theme-seg button { flex: 1; padding: 10px 12px; font-size: 12px; font-weight: 700; background: transparent; color: var(--z400); border: 0; }
.theme-seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }

/* ---------- COLOR CLASS MAP (generated) ---------- */
.accent-emerald-500{accent-color:var(--ink)}
.accent-rose-500{accent-color:var(--bad)}
.bg-amber-500{background-color:var(--warn)}
.bg-amber-500\/10{background-color:color-mix(in srgb, var(--warn) 10%, transparent)}
.bg-black\/80{background-color:color-mix(in srgb, var(--zblack) 80%, transparent)}
.bg-blue-500\/10{background-color:color-mix(in srgb, var(--z400) 10%, transparent)}
.bg-blue-600{background-color:var(--ink)}
.bg-emerald-400{background-color:var(--ok)}
.bg-emerald-500{background-color:var(--ink)}
.bg-emerald-500\/10{background-color:color-mix(in srgb, var(--ok) 10%, transparent)}
.bg-emerald-500\/15{background-color:color-mix(in srgb, var(--ok) 15%, transparent)}
.bg-emerald-600{background-color:var(--ink)}
.bg-red-500\/10{background-color:color-mix(in srgb, var(--bad) 10%, transparent)}
.bg-red-600{background-color:var(--bad-solid)}
.bg-red-600\/10{background-color:color-mix(in srgb, var(--bad) 10%, transparent)}
.bg-rose-500{background-color:var(--bad)}
.bg-rose-500\/10{background-color:color-mix(in srgb, var(--bad) 10%, transparent)}
.bg-rose-600{background-color:var(--bad-solid)}
.bg-white{background-color:var(--zwhite)}
.bg-zinc-100{background-color:var(--z100)}
.bg-zinc-500\/10{background-color:color-mix(in srgb, var(--z500) 10%, transparent)}
.bg-zinc-600{background-color:var(--z600)}
.bg-zinc-700{background-color:var(--z700)}
.bg-zinc-800{background-color:var(--z800)}
.bg-zinc-900{background-color:var(--z900)}
.bg-zinc-900\/50{background-color:color-mix(in srgb, var(--z900) 50%, transparent)}
.bg-zinc-950{background-color:var(--z950)}
.bg-zinc-950\/60{background-color:color-mix(in srgb, var(--z950) 60%, transparent)}
.bg-zinc-950\/95{background-color:color-mix(in srgb, var(--z950) 95%, transparent)}
.border-amber-500\/20{border-color:color-mix(in srgb, var(--warn) 20%, transparent)}
.border-amber-500\/30{border-color:color-mix(in srgb, var(--warn) 30%, transparent)}
.border-amber-500\/40{border-color:color-mix(in srgb, var(--warn) 40%, transparent)}
.border-blue-500\/20{border-color:color-mix(in srgb, var(--z400) 20%, transparent)}
.border-blue-500\/30{border-color:color-mix(in srgb, var(--z400) 30%, transparent)}
.border-blue-500\/60{border-color:color-mix(in srgb, var(--ink) 60%, transparent)}
.border-emerald-400{border-color:var(--ok)}
.border-emerald-500{border-color:var(--ink)}
.border-emerald-500\/20{border-color:color-mix(in srgb, var(--ok) 20%, transparent)}
.border-emerald-500\/30{border-color:color-mix(in srgb, var(--ok) 30%, transparent)}
.border-emerald-500\/40{border-color:color-mix(in srgb, var(--ok) 40%, transparent)}
.border-red-500\/30{border-color:color-mix(in srgb, var(--bad) 30%, transparent)}
.border-red-600\/50{border-color:color-mix(in srgb, var(--bad-solid) 50%, transparent)}
.border-rose-500\/20{border-color:color-mix(in srgb, var(--bad) 20%, transparent)}
.border-rose-500\/30{border-color:color-mix(in srgb, var(--bad) 30%, transparent)}
.border-zinc-500\/30{border-color:color-mix(in srgb, var(--z500) 30%, transparent)}
.border-zinc-600{border-color:var(--z600)}
.border-zinc-700{border-color:var(--z700)}
.border-zinc-800{border-color:var(--z800)}
.border-zinc-800\/50{border-color:color-mix(in srgb, var(--z800) 50%, transparent)}
.border-zinc-800\/80{border-color:color-mix(in srgb, var(--z800) 80%, transparent)}
.border-zinc-900{border-color:var(--z900)}
.border-zinc-300{border-color:var(--z300)}
.border-zinc-900\/50{border-color:color-mix(in srgb, var(--z900) 50%, transparent)}
.focus\:border-red-500:focus{border-color:var(--bad)}
.hover\:bg-blue-500:hover{background-color:var(--ink)}
.hover\:bg-emerald-500:hover{background-color:var(--ink)}
.hover\:bg-rose-500:hover{background-color:var(--bad)}
.hover\:bg-white:hover{background-color:var(--zwhite)}
.hover\:bg-zinc-700:hover{background-color:var(--z700)}
.hover\:border-zinc-600:hover{border-color:var(--z600)}
.hover\:text-rose-300:hover{color:var(--bad)}
.hover\:text-white:hover{color:var(--zwhite)}
.hover\:text-zinc-200:hover{color:var(--z200)}
.hover\:text-zinc-300:hover{color:var(--z300)}
.hover\:text-zinc-400:hover{color:var(--z400)}
.shadow-emerald-600\/20{--tw-shadow-color:color-mix(in srgb, var(--ok) 20%, transparent)}
.text-amber-400{color:var(--warn)}
.text-amber-500{color:var(--warn)}
.text-blue-300{color:var(--z300)}
.text-blue-400{color:var(--z300)}
.text-emerald-400{color:var(--ok)}
.text-emerald-500{color:var(--ink)}
.text-red-500{color:var(--bad)}
.text-rose-400{color:var(--bad)}
.text-rose-500{color:var(--bad)}
.text-white{color:var(--zwhite)}
.text-zinc-100{color:var(--z100)}
.text-zinc-200{color:var(--z200)}
.text-zinc-300{color:var(--z300)}
.text-zinc-400{color:var(--z400)}
.text-zinc-500{color:var(--z500)}
.text-zinc-600{color:var(--z600)}
.text-zinc-700{color:var(--z700)}
.text-zinc-950{color:var(--z950)}

/* ---------- kitchen: big, glove-friendly tap targets on tickets ---------- */
#ownerOrdersList button { min-height: 46px; }

/* Wait time −5 / +5: big, plain, easy with gloves on. */
.wait-btn { min-width: 56px; min-height: 46px; border-radius: 12px; font-weight: 700; font-size: 15px;
  background: var(--z950); color: var(--z200); border: 1px solid var(--z800); }
.wait-btn:active { background: var(--z800); }
#cartError.is-note { color: var(--z300); background: var(--z900); border-color: var(--z800); }

/* ---------- Insights ---------- */
.ins-h { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--z500); margin: 22px 0 10px; }
.ins-stat { background: var(--z950); border: 1px solid var(--z800); border-radius: 12px; padding: 12px; min-width: 0; }
.ins-k { font-size: 11px; color: var(--z500); }
.ins-v { font-size: 20px; font-weight: 700; color: var(--z100); margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-s { font-size: 11px; color: var(--z500); margin-top: 2px; }
.ins-chg { font-weight: 700; color: var(--z400); }
.ins-chg.up { color: var(--ok); }
.ins-chg.down { color: var(--bad); }
.ins-empty { font-size: 12px; color: var(--z500); padding: 14px 0; }
.ins-note { font-size: 11px; color: var(--z500); margin-top: 8px; }
.ins-bars { display: flex; align-items: flex-end; gap: 3px; height: 132px; }
.ins-bars.dense { gap: 2px; }
.ins-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; background: none; border: 0; padding: 0; min-width: 0; cursor: pointer; }
.ins-bar i { display: block; background: var(--z500); border-radius: 4px 4px 1px 1px; min-height: 0; }
.ins-bar.best i { background: var(--z200); }
.ins-bar.sel i { background: var(--ink); outline: 2px solid var(--z300); }
.ins-bar span { display: block; height: 16px; line-height: 16px; font-size: 9px; color: var(--z500); text-align: center; white-space: nowrap; overflow: visible; }
.ins-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12px; font-variant-numeric: tabular-nums; }
.ins-table th { text-align: left; font-weight: 600; color: var(--z500); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; padding: 6px 4px; border-bottom: 1px solid var(--z800); }
.ins-table td { padding: 7px 4px; color: var(--z200); border-bottom: 1px solid var(--z900); }
.ins-table td small { color: var(--z500); font-size: 10px; }
.ins-table tr.sel td { background: var(--z900); color: var(--z100); }
.ins-row { display: grid; grid-template-columns: minmax(0, 1fr) 56px 60px 72px; gap: 10px; align-items: center; padding: 7px 0; font-size: 12px; border-bottom: 1px solid var(--z900); }
.ins-name { color: var(--z200); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-meter { height: 6px; background: var(--z900); border-radius: 3px; overflow: hidden; }
.ins-meter i { display: block; height: 100%; background: var(--z400); }
.ins-num { color: var(--z400); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp-row { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: var(--z950); border: 1px solid var(--z800); border-radius: 12px; padding: 10px 12px; min-height: 56px; }
.cmp-row[aria-pressed="true"] { border-color: var(--z300); }
.cmp-rank { width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--z400); border: 1px solid var(--z700); flex: none; }
.cmp-row[aria-pressed="true"] .cmp-rank { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.cmp-main { flex: 1; min-width: 0; }
.cmp-main b { display: block; font-size: 13px; color: var(--z100); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-main small, .cmp-money small { display: block; font-size: 10px; color: var(--z500); font-weight: 500; }
.cmp-money { text-align: right; font-weight: 700; font-size: 14px; color: var(--z100); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ins-table.pair td, .ins-table.pair th { padding: 7px 6px; }
.ins-table.pair tbody th { text-transform: none; letter-spacing: 0; font-size: 11px; border-bottom: 1px solid var(--z900); }
.ins-table.pair td.win { color: var(--z100); font-weight: 700; }
.ins-table.pair thead th { color: var(--z200); text-transform: none; letter-spacing: 0; font-size: 12px; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.key.a, .pair-bar i.a { background: var(--z200); }
.key.b, .pair-bar i.b { background: transparent; border: 1.5px solid var(--z400); }
.pair-bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; }
.pair-bar { flex: 1; height: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 16px; column-gap: 1px; align-items: end; min-width: 0; }
.pair-bar i { display: block; border-radius: 3px 3px 1px 1px; }
.pair-bar span { grid-column: 1 / 3; font-size: 9px; color: var(--z500); text-align: center; line-height: 16px; white-space: nowrap; }

/* Happy hour: quiet, but it reads at a glance. */
.deal-tag { font-size: 10px; font-weight: 700; color: var(--z300); border: 1px solid var(--z700); border-radius: 99px; padding: 1px 7px; margin-left: 6px; white-space: nowrap; }
.deal-banner { border: 1px solid var(--z300); border-radius: 12px; padding: 9px 14px; font-size: 12px; color: var(--z100); text-align: center; margin-bottom: 12px; }
.deal-banner b { font-weight: 800; }
.deal-later { font-size: 12px; color: var(--z400); text-align: center; margin-bottom: 12px; }
.deal-chip { min-width: 34px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--z800); background: transparent; color: var(--z400); font-size: 12px; font-weight: 700; }
.deal-chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* Punch card */
.punch-card { background: var(--z900); border: 1px solid var(--z800); border-radius: 12px; padding: 12px; text-align: left; }
.punch-card.ready { border-color: var(--z300); }
.punch-dots { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.punch { width: 10px; height: 10px; border-radius: 5px; border: 1.5px solid var(--z600); display: inline-block; }
.punch.on { background: var(--z100); border-color: var(--z100); }
.punch-use { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--z100); background: var(--z950); border: 1px solid var(--z300); border-radius: 12px; padding: 12px; }
.punch-use input { width: 20px; height: 20px; accent-color: var(--ink); }
.left-tag { font-size: 10px; font-weight: 700; color: var(--warn); }

/* Forecast card: what to expect today */
.fc-card { background: var(--z950); border: 1px solid var(--z700); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.fc-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.fc-basis { font-size: 10px; color: var(--z500); white-space: nowrap; }
.fc-big { font-size: 20px; font-weight: 800; color: var(--z100); margin-top: 2px; font-variant-numeric: tabular-nums; }
.fc-bars { display: flex; align-items: flex-end; gap: 3px; height: 48px; margin-top: 10px; }
.fc-bars i { flex: 1; background: var(--z600); border-radius: 3px 3px 1px 1px; }
.fc-bars i.best { background: var(--z200); }
.fc-axis { display: flex; justify-content: space-between; font-size: 9px; color: var(--z500); margin-top: 3px; }
.fc-prep { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fc-prep span { font-size: 12px; color: var(--z300); border: 1px solid var(--z800); border-radius: 8px; padding: 4px 8px; }
.fc-prep b { color: var(--z100); }

/* Scheduled pickup */
.slot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.slot { height: 44px; border-radius: 10px; border: 1px solid var(--z800); background: var(--z950); color: var(--z100); font-size: 12px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.slot[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.slot:disabled { color: var(--z600); }
.slot small { font-size: 9px; font-weight: 600; }
.later-box { border: 1px dashed var(--z700); border-radius: 12px; padding: 10px 12px; margin-top: 4px; }
.later-head { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--z500); margin-bottom: 6px; }
.later-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--z900); }
.later-row:first-of-type { border-top: 0; }
.later-row b { display: block; font-size: 12px; color: var(--z100); }
.later-row span { display: block; font-size: 11px; color: var(--z500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.later-time { text-align: right; flex: none; }

/* No signal: the kitchen keeps working, and says so plainly */
.offline-bar { border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); color: var(--z100); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: 12px; line-height: 1.45; }
.offline-bar b { color: var(--warn); }
.offline-bar.sending { border-color: var(--z700); background: var(--z900); }
.offline-bar.sending b { color: var(--z100); }
.saved-tag { font-size: 9px; font-weight: 700; letter-spacing: .04em; color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); border-radius: 6px; padding: 1px 5px; margin-left: 4px; }

/* Limp mode on the customer page */
.limp-note { width: 100%; text-align: center; font-size: 12px; line-height: 1.5; color: var(--z300); margin: -2px 0 12px; }
.check-first { width: 100%; text-align: left; border-radius: 10px; padding: 10px 12px; font-size: 12px; font-weight: 800; border: 2px solid var(--warn); color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.hist-link { font-size: 10px; font-weight: 600; color: var(--z500); text-decoration: underline; text-underline-offset: 2px; margin-left: 6px; }
.hist-box { margin-top: 6px; font-size: 11px; line-height: 1.6; color: var(--z300); border-left: 2px solid var(--z700); padding-left: 8px; }
.hist-box b { color: var(--z100); font-weight: 700; font-variant-numeric: tabular-nums; }
.hist-box span { color: var(--z500); }

/* Private feedback on the customer's order */
[data-order-card] > div:first-child:has(+ .fb-row) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.fb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; background: var(--z900); border: 1px solid var(--z800); border-top: 0; border-radius: 0 0 12px 12px; padding: 10px 14px; font-size: 12px; color: var(--z300); }
.fb-row > span:first-child { font-weight: 700; color: var(--z100); }
.fb-votes { display: inline-flex; gap: 6px; }
.fb-votes button { width: 44px; height: 38px; border-radius: 10px; border: 1px solid var(--z700); background: var(--z950); font-size: 18px; }
.fb-row small { flex-basis: 100%; font-size: 10px; color: var(--z500); }
.fb-more { flex-direction: column; align-items: stretch; }
.fb-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-tags button { border: 1px solid var(--z700); background: var(--z950); color: var(--z200); border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 600; }
.fb-tags button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.fb-comment { width: 100%; background: var(--z950); border: 1px solid var(--z800); border-radius: 10px; padding: 9px 10px; font-size: 13px; color: var(--z100); }
.fb-send { align-self: flex-end; background: var(--ink); color: var(--on-ink); border-radius: 10px; padding: 8px 16px; font-weight: 700; font-size: 12px; }
.fb-done { color: var(--z400); }

/* Your day: the morning card */
.brief { border: 1px solid var(--z800); background: var(--z900); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.brief-k { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--z500); }
.brief-h { font-size: 15px; font-weight: 800; color: var(--z100); margin-top: 2px; font-variant-numeric: tabular-nums; }
.brief-l { font-size: 12px; color: var(--z300); margin-top: 2px; }
.brief-nudge { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--z200); border-top: 1px solid var(--z800); padding-top: 10px; }
.brief-nudge span { flex: 1; }
.brief-nudge button, .brief-nudge a { flex: none; border: 1px solid var(--z700); border-radius: 9px; padding: 7px 10px; font-size: 11px; font-weight: 700; color: var(--z100); }
.brief-wx { font-size: 12px; color: var(--z100); border-top: 1px solid var(--z800); padding-top: 10px; }
.brief-wx.brief-rain::before, .brief-wx.brief-wind::before { content: '☔ '; }
.brief-wx.brief-heat::before { content: '☀️ '; }
.brief-wx.brief-cold::before { content: '❄️ '; }
.brief-wx.brief-wind::before { content: '💨 '; }
.brief-done { align-self: flex-start; font-size: 11px; font-weight: 700; color: var(--z400); text-decoration: underline; text-underline-offset: 2px; }
/* What customers say */
.fb-score { font-size: 13px; color: var(--z300); }
.fb-score b { font-size: 26px; color: var(--z100); font-variant-numeric: tabular-nums; margin-right: 4px; }
.fb-trend { font-size: 11px; color: var(--z500); margin-left: 6px; }
.fb-pats { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.fb-pat { font-size: 12px; border-left: 3px solid var(--z600); padding: 4px 0 4px 9px; color: var(--z200); }
.fb-pat.bad { border-left-color: var(--warn); }
.fb-pat.good { border-left-color: var(--ok); }
.fb-c { font-size: 12px; color: var(--z200); padding: 6px 0; border-top: 1px solid var(--z800); }
.fb-c small { display: block; color: var(--z500); font-size: 10px; margin-top: 2px; }
.reg-tag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--z500); color: var(--z100); background: var(--z800); }
/* Saved menus */
.saved-menu { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--z950); border: 1px solid var(--z800); border-radius: 10px; padding: 9px 10px; }
.saved-menu b { font-size: 13px; color: var(--z100); }
.saved-menu div div { font-size: 10px; color: var(--z500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved-menu .on-now { font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--z500); border-radius: 6px; padding: 1px 5px; color: var(--z200); margin-left: 4px; }
.saved-menu-btns { display: flex; gap: 6px; flex: none; }
.saved-menu-btns button { border: 1px solid var(--z700); border-radius: 8px; padding: 6px 10px; font-size: 11px; font-weight: 700; color: var(--z100); }
.saved-menu-btns button:first-child:not(:last-child) { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* Kitchen: rush view, glove mode, stations, undo */
body.rush [data-quiet] { display: none !important; }
.rush-bar { align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--z700); background: var(--z900); border-radius: 12px; padding: 9px 12px; font-size: 12px; color: var(--z200); }
.rush-bar b { color: var(--z100); }
.rush-bar button { flex: none; font-size: 11px; font-weight: 700; color: var(--z300); text-decoration: underline; text-underline-offset: 2px; }
.undo-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; max-width: 560px; margin: 0 auto; align-items: center; justify-content: space-between; gap: 12px; background: var(--ink); color: var(--on-ink); border-radius: 14px; padding: 14px 16px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-variant-numeric: tabular-nums; }
.undo-bar button { flex: none; font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 10px; border: 2px solid currentColor; color: inherit; }
body.glove .ticket { cursor: pointer; }
body.glove .ticket button { min-height: 52px; font-size: 14px; }
.station-chip { border: 1px solid var(--z700); background: var(--z950); color: var(--z200); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; }
.station-chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.other-station { font-size: 11px; font-weight: 600; color: var(--z500); margin-top: 2px; }
.ticket-dim { opacity: .55; }

/* Group order */
.group-bar { margin: 12px 16px 0; border: 1px solid var(--z700); background: var(--z900); border-radius: 14px; padding: 11px 14px; font-size: 12px; color: var(--z300); }
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.group-head b { color: var(--z100); }
.group-head button { flex: none; background: var(--ink); color: var(--on-ink); border-radius: 10px; padding: 8px 12px; font-size: 12px; font-weight: 700; }
.group-list { margin-top: 8px; }
.group-list summary { cursor: pointer; font-weight: 600; color: var(--z200); }
.group-list div { padding: 5px 0; border-top: 1px solid var(--z800); }
.group-list b { color: var(--z100); margin-right: 4px; }
.group-start { width: 100%; text-align: center; font-size: 12px; font-weight: 600; color: var(--z300); text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
#groupOthers { border-bottom: 1px solid var(--z800); padding-bottom: 10px; }
.go-h { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--z500); margin-bottom: 6px; }
.go-row { display: flex; gap: 8px; font-size: 12px; color: var(--z300); padding: 4px 0; }
.go-row b { color: var(--z100); flex: none; }
.go-row span:nth-child(2) { flex: 1; min-width: 0; }
.go-amt { flex: none; font-variant-numeric: tabular-nums; color: var(--z200); }
#cartModal.as-guest [data-noguest] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The truck's own accent color (customer page): a thin line across the top. Color never carries text. */
body.branded::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 4px; background: var(--brand); z-index: 70; }

/* Accessible by default: a clear focus ring for keyboards and switch controls, and no motion for people who turn it off. */
:focus-visible { outline: 2px solid var(--z100); outline-offset: 2px; border-radius: 6px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
.fc-have { font-style: normal; color: var(--z500); font-size: 11px; }
body.cartbar #pageFooter { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* time clock bar on the kitchen screen (crew with their own PIN) */
.clock-bar { align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--z300); background: var(--z900); border: 1px solid var(--z800); border-radius: 12px; padding: 8px 8px 8px 12px; margin-bottom: 10px; }
.clock-bar b { color: var(--z100); }
.clock-bar button { flex: none; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--z700); font-size: 12px; font-weight: 700; color: var(--z100); background: var(--z950); }
.clock-bar button.solid { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* Utilities the pages use that the prebuilt app.css was missing (until the next npm run build:css). */
.bottom-6{bottom:1.5rem}.left-1\/2{left:50%}.h-12{height:3rem}.h-32{height:8rem}.mb-0\.5{margin-bottom:.125rem}.mb-1\.5{margin-bottom:.375rem}
.ml-auto{margin-left:auto}.inline-flex{display:inline-flex}.items-baseline{align-items:baseline}.items-end{align-items:flex-end}
.font-extrabold{font-weight:800}.opacity-70{opacity:.7}.border-t-0{border-top-width:0}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}

/* catering on the day: the kitchen screen's event card */
.ev-card { margin-bottom: 10px; }
.ev-one { background: var(--z900); border: 1px solid var(--z700); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.ev-one + .ev-one { margin-top: 8px; }
.ev-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ev-k { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--z500); }
.ev-when { font-size: 13px; font-weight: 800; color: var(--z100); font-variant-numeric: tabular-nums; }
.ev-name { font-size: 13px; color: var(--z300); }
.ev-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-counts span { font-size: 13px; color: var(--z200); background: var(--z950); border: 1px solid var(--z800); border-radius: 10px; padding: 6px 10px; }
.ev-counts b { font-size: 17px; color: var(--z100); font-variant-numeric: tabular-nums; }
.ev-counts span.veg { border-color: var(--z600); }
.ev-note { font-size: 12px; color: var(--z400); }
.ev-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.ev-acts a, .ev-acts button { height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 9px; border: 1px solid var(--z700); background: var(--z950); color: var(--z100); font-size: 12px; font-weight: 700; text-decoration: none; }
