/*
 * theme.css — the house look. Read DESIGN.md (repo root) before changing anything here.
 *
 * Built from food truck objects, not other software: butcher paper and cast iron for surfaces, taqueria mustard
 * for the one main action, highway-sign lettering (Barlow Condensed) for names and headings, and thermal-receipt
 * type (Courier Prime) for tickets, order numbers, prices and times. Fonts are self-hosted (public/fonts), so a
 * page that's working offline looks the same as one that isn't.
 *
 * Two themes: day (paper) and night (cast iron). Theme choice follows the device unless <html> carries
 * data-theme="day" or "night" (theme.js). The customer page always uses day: it's read outdoors in the sun.
 * Load AFTER app.css. The "COLOR CLASS MAP" re-points the color classes the pages use onto the tokens below,
 * so every screen the app's code builds follows the same two themes.
 *
 * Color carries meaning only: --lead (the one main action per screen), --ok, --warn, --bad. Everything else
 * is paper and ink.
 */

/* ---------- fonts (self-hosted, Latin + Spanish; OFL licences in public/fonts) ---------- */
@font-face { font-family: 'Barlow'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/Barlow-Regular.woff') format('woff'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/Barlow-SemiBold.woff') format('woff'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/BarlowCondensed-Bold.woff') format('woff'); }
@font-face { font-family: 'Courier Prime'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/CourierPrime-Regular.woff') format('woff'); }
@font-face { font-family: 'Courier Prime'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/CourierPrime-Bold.woff') format('woff'); }

/* ---------- design tokens: the only values screens use ---------- */
:root {
  /* type: two families, five sizes */
  --f-sign: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', ui-sans-serif, system-ui, sans-serif;
  --f-body: 'Barlow', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-ticket: 'Courier Prime', 'Courier New', ui-monospace, monospace;
  --t1: 12px;   /* fine print */
  --t2: 14px;   /* secondary */
  --t3: 16px;   /* body, buttons */
  --t4: 22px;   /* section names, prices on tickets */
  --t5: 36px;   /* the truck's name, order numbers */
  /* space */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  /* corners: controls and panels. Tickets are square-cut paper. */
  --r1: 6px; --r2: 12px;
  /* the one shadow: paper resting on a counter (tickets and pop-ups only) */
  --lift: 0 1px 0 rgba(28, 23, 18, .06), 0 8px 20px -6px rgba(28, 23, 18, .22);
  /* the brand: taqueria mustard. A truck's own color replaces it on the truck's page (customer-app.js). */
  --mustard: #E8A317;
  --lead: var(--mustard);
  --on-lead: #1C1712;
  --paper-ticket: #FFFEF9;
  --ticket-ink: #1C1712;
}

/* ---------- night: cast iron (default for owner and kitchen screens on a dark device) ---------- */
:root {
  color-scheme: dark;
  --z950: #14110E;   /* page */
  --z900: #1F1A16;   /* panels */
  --z800: #322B25;   /* hairlines */
  --z700: #463D35;   /* borders on things you tap */
  --z600: #9C8F80;   /* faint text: 5.4:1 on panels */
  --z500: #A69888;   /* quiet text */
  --z400: #BDB0A0;   /* secondary text */
  --z300: #D3C8BA;
  --z200: #E2D9CC;
  --z100: #EFE7DA;   /* main text */
  --zwhite: #FBF7F0;
  --zblack: #000000;
  --ink: #EFE7DA;    /* strong, neutral buttons */
  --on-ink: #14110E;
  --ok: #86C99A;
  --warn: #E8B14A;
  --bad: #F2928D;
  --bad-solid: #C2413B;
}

/* ---------- day: butcher paper ---------- */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="night"]) {
    color-scheme: light;
    --z950: #F4EDE1; --z900: #FFFCF6; --z800: #E4D9C8; --z700: #CDBFA9; --z600: #6B5E50;
    --z500: #655849; --z400: #5C5044; --z300: #3F362D; --z200: #2B241D; --z100: #1C1712;
    --zwhite: #120E0A; --zblack: #1C1712;
    --ink: #1C1712; --on-ink: #F7F1E6;
    --ok: #2F6B3F; --warn: #8A4B00; --bad: #B3261E; --bad-solid: #B3261E;
  }
}
:root[data-theme="day"] {
  color-scheme: light;
  --z950: #F4EDE1; --z900: #FFFCF6; --z800: #E4D9C8; --z700: #CDBFA9; --z600: #6B5E50;
  --z500: #655849; --z400: #5C5044; --z300: #3F362D; --z200: #2B241D; --z100: #1C1712;
  --zwhite: #120E0A; --zblack: #1C1712;
  --ink: #1C1712; --on-ink: #F7F1E6;
  --ok: #2F6B3F; --warn: #8A4B00; --bad: #B3261E; --bad-solid: #B3261E;
}

/* ---------- type ---------- */
html, body {
  font-family: var(--f-body);
  font-feature-settings: 'tnum' 0;
  -webkit-font-smoothing: antialiased;
}
body { background-color: var(--z950); color: var(--z100); }
/* A long word with no spaces (a name, a note, a spot) wraps instead of pushing the page sideways on a phone
   (demo stress test 3-05, the product-wide version). */
body { overflow-wrap: anywhere; }
table, input, textarea, select, pre { overflow-wrap: normal; }
/* Headings: sign lettering. (Pages used .font-serif for headings; it now means the sign face.) */
.font-serif { font-family: var(--f-sign); font-weight: 700; letter-spacing: .01em; }
.font-serif.italic, .italic.font-serif, h1.italic, h2.italic { font-style: normal; }
.font-sans { font-family: var(--f-body); }
.font-bold, .font-extrabold, .font-black { font-weight: 600; }
/* Prices, counts, times and order numbers: receipt type, lined up like a printed ticket. */
.font-mono, [data-num] { font-family: var(--f-ticket); font-variant-numeric: tabular-nums; }
input, select, textarea, button { font-family: inherit; }
input::placeholder, textarea::placeholder { color: var(--z500); opacity: 1; }

/* ---------- icons (icons.js): one set, Phosphor Bold, sized by the text around them ---------- */
.ic { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; fill: currentColor; }

/* ---------- 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; }
/* Available switches: on (green) means customers can order it. */
.switch.green.on { background: var(--ok) !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); }
.wait-num { border-radius: 12px; min-height: 46px; border: 1px dashed transparent; }
.wait-num:hover, .wait-num:focus-visible { border-color: var(--z700); }
#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; }
/* Pacing: the kitchen is catching up. Calm amber, the reopen time in plain words. */
.pace-note { border: 1px solid rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .08); color: var(--z200); border-radius: 12px; padding: 10px 14px; font-size: 12px; line-height: 1.45; margin-bottom: 12px; text-align: left; }
.pace-note b { display: block; color: #f59e0b; font-weight: 800; font-size: 12px; margin-bottom: 2px; }
#paceNoteMenu { margin: 0 0 8px; }
.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; }
/* Sold out on Today (phase 80): folded to one line; big chips for one hand, gloves and a hot truck. */
.out-fold > summary { cursor: pointer; list-style: none; min-height: 48px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 14px; border: 1px solid var(--z800); border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--z100); }
.out-fold > summary::-webkit-details-marker { display: none; }
.out-fold.has-out > summary { border: 2px solid var(--warn); }
.out-fold #outSumList { color: var(--warn); font-weight: 800; }
.out-fold[open] > summary { margin-bottom: 8px; }
.out-items { display: flex; flex-wrap: wrap; gap: 8px; }
.out-item { min-height: 48px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--z700); font-size: 15px; font-weight: 700; color: var(--z100); background: transparent; display: inline-flex; align-items: center; gap: 8px; }
.out-item.is-out { border: 2px solid var(--bad); color: var(--bad); text-decoration: line-through; }
.out-item.is-out b { text-decoration: none; font-size: 12px; }
.out-item:disabled { opacity: .7; }
/* Today › Zelle tab (phase 81): today's Zelle in one list, to match against the bank app. */
.zl-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.zl-head > div { border: 1px solid var(--z800); border-radius: 12px; padding: 10px; }
.zl-head b { display: block; font-size: 18px; color: var(--z100); }
.zl-head span { font-size: 12px; color: var(--z400); }
.zl-head .zl-warn b { color: var(--warn); }
.zl-row { border: 1px solid var(--z800); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.zl-row.is-open { border: 2px solid #E0A800; background: #FFF3B0; }
.zl-row.is-open .zl-who b, .zl-row.is-open .zl-amt b, .zl-row.is-open .zl-who span { color: #2B2000; }
.zl-row.is-open .zl-tag.zl-warn { color: #6B5000; }
.zl-line { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.zl-who b { display: block; font-size: 16px; color: var(--z100); }
.zl-who span { font-size: 13px; color: var(--z400); }
.zl-amt { text-align: right; }
.zl-amt b { display: block; font-size: 18px; color: var(--z100); }
.zl-ok { font-size: 13px; font-weight: 700; color: var(--ok); }
.zl-tag { font-size: 13px; font-weight: 700; color: var(--z400); }
.zl-tag.zl-warn { color: var(--warn); }
/* Zelle the customer says they sent: amber until someone checks the owner's phone (phase 80). Buttons 48px for gloves. */
.zelle-check { border-radius: 10px; padding: 10px 12px; border: 2px solid #E0A800; background: #FFE680; color: #2B2000; }
.zelle-head { font-size: 14px; font-weight: 800; color: #2B2000; }
.zelle-sub { font-size: 13px; color: #2B2000; margin-top: 2px; }
.zelle-btns { display: flex; gap: 8px; margin-top: 8px; }
.zelle-btns button { flex: 1; min-height: 48px; border-radius: 10px; font-size: 14px; font-weight: 800; }
.zelle-ok { background: #1C1A16; color: #FFF8E0; }
.zelle-no { background: #FFF6CC; border: 2px solid #8A6A00; color: #2B2000; }
/* Same yellow on the kitchen board: not a button, so the cook can't clear it by accident. */
.kt-zelle { display: block; margin: 6px 0; border-radius: 10px; padding: 8px 10px; border: 2px solid #E0A800; background: #FFE680; color: #2B2000; font-size: 14px; font-weight: 800; }
.kt-zelle span { display: block; font-size: 12px; font-weight: 600; }
.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: none; }
.brief-wx.brief-heat::before { content: none; }
.brief-wx.brief-cold::before { content: none; }
.brief-wx.brief-wind::before { content: none; }
.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; }

/* Folded Settings boxes: the name and a one-line summary until opened. */
.fold-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; user-select: none; }
.fold-btn { margin-left: auto; flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--z400); border: 1px solid var(--z800); background: transparent; transition: transform .18s ease, background .15s ease; }
.fold-btn:hover { background: var(--z800); color: var(--z100); }
.fold-btn[aria-expanded="true"] { transform: rotate(180deg); }
.fold-sum { display: none; font-size: 11px; color: var(--z500); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fold.is-folded .fold-sum:not(:empty) { display: block; }
.fold.is-folded .fold-body { display: none; }
.fold.is-folded > .fold-head { border-bottom-color: transparent !important; padding-bottom: 0 !important; margin-bottom: 0 !important; }
@media (prefers-reduced-motion: reduce) { .fold-btn { transition: none; } }

/* Choices and add-ons on the item sheet. Round marks: pick one. Square: add any. */
.ch-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.ch-group legend { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 800; color: var(--z100); }
.ch-group legend small { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--z500); }
.ch-group legend small.req { color: var(--z300); }
.ch-group.missing legend small { color: #f43f5e; }
.ch-group.missing .ch-opt { border-color: rgba(244, 63, 94, .45); }
.ch-opt { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; min-height: 48px; padding: 10px 14px; margin-top: 6px; border-radius: 12px; border: 1px solid var(--z800); background: var(--z950); color: var(--z200); font: 600 14px var(--f-body); cursor: pointer; }
.ch-opt span { flex: 1; min-width: 0; }
.ch-opt b { font-weight: 700; font-size: 13px; color: var(--z300); font-variant-numeric: tabular-nums; }
.ch-opt i { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--z600); position: relative; }
.ch-opt.many i { border-radius: 5px; }
.ch-opt[aria-checked="true"] { border-color: var(--z300); background: var(--z900); color: var(--z100); }
.ch-opt[aria-checked="true"] i { border-color: var(--z100); background: var(--z100); }
.ch-opt[aria-checked="true"] i::after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid var(--z950); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Item editor: groups of choices */
.ge-card { border: 1px solid var(--z800); background: var(--z950); border-radius: 12px; padding: 10px; }
.ge-in { background: var(--z900); border: 1px solid var(--z800); border-radius: 8px; padding: 7px 9px; font-size: 12px; color: var(--z200); }
.ge-x { flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; color: var(--z500); border: 1px solid var(--z800); font-size: 11px; }
.ge-x:hover { color: #f43f5e; border-color: rgba(244, 63, 94, .4); }
.ch-opt:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.ch-opt:disabled b { text-decoration: none; }

/* Hours presets */
.pr-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--z800); background: var(--z950); border-radius: 10px; padding: 9px 10px; }
.pr-row.on { border-color: var(--z600); }
.pr-tag { font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--z300); border: 1px solid var(--z700); border-radius: 99px; padding: 1px 6px; margin-left: 4px; }
.pr-btn { font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--z700); color: var(--z200); }
.pr-btn.solid { background: var(--z100); color: var(--z950); border-color: var(--z100); }
.pr-editing { border: 1px dashed var(--z600); border-radius: 10px; padding: 10px; margin-bottom: 10px; }

/* Menu import */
.imp-priv { font-size: 11px; line-height: 1.5; color: var(--z300); border: 1px solid var(--z800); background: var(--z950); border-radius: 12px; padding: 10px 12px; }
.imp-priv b { color: var(--z100); }
.imp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.imp-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; border: 1px solid var(--z800); background: var(--z950); }
.imp-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.imp-pdf { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; color: var(--z200); font-size: 18px; padding: 6px; text-align: center; }
.imp-pdf small { font-size: 9px; font-weight: 600; color: var(--z500); word-break: break-all; margin-top: 4px; }
.imp-n { position: absolute; top: 5px; left: 5px; min-width: 20px; height: 20px; border-radius: 10px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.imp-tools { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 4px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.imp-tools button { width: 28px; height: 28px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; font-weight: 800; }
.imp-tools button:disabled { opacity: .3; }
.imp-wait { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 0; text-align: center; color: var(--z100); }
.imp-wait span:last-child { font-size: 12px; color: var(--z500); }
.imp-spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--z800); border-top-color: var(--z100); animation: impspin 1s linear infinite; }
@keyframes impspin { to { transform: rotate(360deg); } }
.imp-note { font-size: 11px; color: var(--z200); border: 1px solid rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .08); border-radius: 10px; padding: 8px 10px; }
.imp-item { border: 1px solid var(--z800); background: var(--z950); border-radius: 12px; padding: 9px; }
.imp-item.dropped { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--z500); text-decoration: line-through; }
.imp-item.dropped button { text-decoration: none; }

/* ===================== Kitchen screen (/kitchen) ===================== */
body.kmode { overflow: hidden; }
body.kmode #dashboardHeader, body.kmode #ownerDashboardView, body.kmode #pageFooter { display: none !important; }
.kb { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--z950); color: var(--z100); font-family: var(--f-body); padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.kb-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--z800); }
.kb-who { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; flex-shrink: 0; text-align: left; padding: 4px 8px; border-radius: 10px; }
.kb-who:hover { background: var(--z900); }
.kb-who b { font-size: 18px; font-weight: 800; line-height: 1.1; }
.kb-who span { font-size: 11px; font-weight: 700; color: var(--z500); white-space: nowrap; }
.kb-allday { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.kb-allday::-webkit-scrollbar { display: none; }
.kb-chip { flex-shrink: 0; border: 1px solid var(--z700); border-radius: 999px; padding: 8px 14px; font: 700 14px var(--f-body); color: var(--z200); background: var(--z900); white-space: nowrap; }
.kb-chip b { font-size: 16px; font-weight: 800; color: var(--z100); margin-right: 2px; font-variant-numeric: tabular-nums; }
.kb-chip.out { border-color: var(--bad); color: var(--bad); background: transparent; }
.kb-quiet { font-size: 12px; color: var(--z600); align-self: center; }
.kb-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.kb-clock { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--z300); }
.kb-live { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.kb-live.off { background: var(--warn); }
.kb-btn { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--z700); font: 700 14px var(--f-body); color: var(--z200); }
.kb-btn[aria-pressed="true"] { background: var(--z100); color: var(--z950); border-color: var(--z100); }
.kb-notes:empty { display: none; }
.kb-notes { display: flex; gap: 8px; padding: 8px 14px 0; flex-wrap: wrap; }
.kb-note { background: var(--ink); color: var(--on-ink); border-radius: 12px; padding: 10px 14px; font-weight: 800; font-size: 15px; }
.kb-note.warn { background: transparent; color: var(--warn); border: 1px solid var(--warn); }
.kb-event { border: 1px solid var(--z700); border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.kb-event b { font-size: 14px; }
.kb-event span { color: var(--z400); font-weight: 600; }
.kb-counts { display: flex; gap: 10px; flex-wrap: wrap; }
.kb-counts i { font-style: normal; color: var(--z200); }
.kb-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 12px 14px 14px; }
.kb-cols.kb-station { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kb-cols.kb-two { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.kb-cols.kb-expo { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.kb-col { min-height: 0; display: flex; flex-direction: column; background: var(--z900); border: 1px solid var(--z800); border-radius: 16px; }
.kb-col h2 { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 8px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--z400); margin: 0; }
.kb-col h2 span { min-width: 28px; height: 28px; border-radius: 14px; background: var(--z800); color: var(--z100); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; letter-spacing: 0; }
.kb-col-ready h2 span { background: var(--z100); color: var(--z950); }
.kb-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 10px 12px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.kb-empty { color: var(--z600); font-size: 14px; font-weight: 600; text-align: center; padding: 24px 8px; margin: 0; }
.kb-later { border: 1px dashed var(--z700); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--z400); }
.kb-later b { color: var(--z200); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
/* a ticket */
.kt { position: relative; background: var(--z950); border: 1px solid var(--z800); border-left: 8px solid var(--age); border-radius: 14px; overflow: hidden; flex-shrink: 0; }
.kt-body { display: block; width: 100%; text-align: left; padding: 12px 44px 0 14px; color: inherit; font: inherit; cursor: pointer; }
.kt-body:active { background: var(--z900); }
.kt-head { display: flex; align-items: baseline; gap: 8px; }
.kt-num { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kt-name { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; color: var(--z300); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-age { font-size: 15px; font-weight: 800; color: var(--age); font-variant-numeric: tabular-nums; }
.kt-items { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--z100); }
.kt-items b { font-weight: 800; font-variant-numeric: tabular-nums; }
.kt-more { font-size: 13px; color: var(--z500); margin-top: 4px; }
.kt-note { margin-top: 8px; font-size: 15px; font-weight: 700; color: var(--z200); background: var(--z900); border-radius: 8px; padding: 6px 10px; white-space: pre-line; }
.kt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kt-tags span { font-size: 11px; font-weight: 700; color: var(--z400); border: 1px solid var(--z800); border-radius: 99px; padding: 2px 8px; }
.kt-tags span.kt-cancelable { color: #f59e0b; border-color: rgba(245, 158, 11, .45); }
.kt-verb { margin: 10px -44px 0 -14px; padding: 12px 14px; border-top: 1px solid var(--z800); font-size: 16px; font-weight: 800; text-align: center; color: var(--z100); }
.kt-ready .kt-verb { background: var(--z100); color: var(--z950); }
.kt.locked .kt-verb { color: var(--z600); }
.kt-alert { display: block; width: 100%; text-align: left; border: 0; border-top: 2px solid var(--bad); color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); padding: 12px 14px; font: 800 14px var(--f-body); }
.kt-alert.ok { border-top-width: 1px; font-weight: 700; font-size: 13px; }
.kt-more-btn { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border-radius: 10px; color: var(--z500); font-size: 18px; font-weight: 800; }
.kt-more-btn:hover { background: var(--z900); color: var(--z100); }
/* expo: the pass gets big numbers */
.kb-expo .kb-col-ready .kb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); align-content: start; }
.kb-expo .kb-col-ready .kt-num { font-size: 34px; }
.kb-expo .kb-col-cooking .kt-items { font-size: 15px; }
/* Fit all: smaller tickets that flow into columns, so nothing needs scrolling */
.kb-fit .kb-list { display: block; columns: 2 170px; column-gap: 8px; overflow-y: hidden; }
.kb-fit .kt { break-inside: avoid; margin-bottom: 8px; border-left-width: 6px; }
.kb-fit .kt-body { padding: 8px 36px 0 10px; }
.kb-fit .kt-num { font-size: 17px; }
.kb-fit .kt-name { font-size: 13px; }
.kb-fit .kt-items { font-size: 14px; gap: 2px; margin-top: 4px; }
.kb-fit .kt-tags { display: none; }
.kb-fit .kt-note { font-size: 12px; padding: 4px 8px; margin-top: 4px; }
.kb-fit .kt-verb { margin: 6px -36px 0 -10px; padding: 7px 10px; font-size: 13px; }
.kb-fit .kt-more-btn { width: 30px; height: 30px; top: 3px; right: 3px; }
@media (max-width: 760px) { .kb-cols, .kb-cols.kb-station, .kb-cols.kb-expo, .kb-cols.kb-two { grid-template-columns: 1fr; overflow-y: auto; } .kb-col { min-height: 260px; } .kb-top { flex-wrap: wrap; } .kb-allday { order: 3; flex-basis: 100%; } }
/* sheets on the kitchen screen */
.k-sheet { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.k-card { width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; background: var(--z900); border: 1px solid var(--z700); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; color: var(--z100); font-family: var(--f-body); }
.k-card h2 { margin: 0; font-size: 22px; font-weight: 800; }
.k-lab { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--z400); }
.k-lab input { text-transform: none; letter-spacing: 0; font: 700 18px var(--f-body); color: var(--z100); background: var(--z950); border: 1px solid var(--z700); border-radius: 12px; padding: 12px 14px; }
.k-roles { display: flex; flex-direction: column; gap: 8px; }
.k-roles button { text-align: left; border: 1px solid var(--z700); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; color: var(--z100); background: var(--z950); }
.k-roles button b { font-size: 16px; }
.k-roles button span { font-size: 13px; color: var(--z400); font-weight: 600; }
.k-roles button[aria-pressed="true"] { border-color: var(--z100); box-shadow: inset 0 0 0 1px var(--z100); }
.k-stations { display: flex; flex-wrap: wrap; gap: 8px; }
.k-stations button { border: 1px solid var(--z700); border-radius: 999px; padding: 10px 16px; font: 700 14px var(--f-body); color: var(--z200); }
.k-stations button[aria-pressed="true"] { background: var(--z100); color: var(--z950); border-color: var(--z100); }
.k-stations span { font-size: 13px; color: var(--z500); }
.k-small { margin: 0; font-size: 13px; color: var(--z400); line-height: 1.5; }
.k-err { color: var(--bad); font-weight: 700; font-size: 14px; }
.k-acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.k-solid, .k-quiet { min-height: 48px; padding: 0 20px; border-radius: 14px; font: 800 15px var(--f-body); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.k-solid { background: var(--z100); color: var(--z950); }
.k-quiet { border: 1px solid var(--z700); color: var(--z200); }
/* portal: Live orders folded, and the way to the kitchen screen */
.live-sum { font-size: 13px; color: var(--z300); background: var(--z900); border: 1px solid var(--z800); border-radius: 12px; padding: 10px 12px; }
.event-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--z900); border: 1px solid var(--z800); border-radius: 12px; padding: 10px 12px; }
.event-bar b { display: block; font-size: 13px; color: var(--z100); }
.event-bar span { display: block; font-size: 11px; color: var(--z500); margin-top: 2px; }
.event-bar .ev-btn { flex-shrink: 0; background: var(--ink); color: var(--on-ink); border-radius: 10px; padding: 8px 12px; font-size: 12px; font-weight: 800; }
.kitchen-link { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--z800); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 800; color: var(--z100); text-decoration: none; }
.kitchen-link span { font-size: 11px; font-weight: 600; color: var(--z500); }
.kitchen-link:hover { border-color: var(--z600); }
.kb-fit .kb-empty, .kb-fit .kb-later { column-span: all; break-inside: avoid; }
.kt-alert.ok { background: transparent; color: var(--z400); border-top-color: var(--z800); }
.kb-fit .kt-alert { padding: 6px 10px; font-size: 12px; }

/* Plans in Settings */
.plan-grid { display: grid; gap: 8px; }
.plan-card { border: 1px solid var(--z800); background: var(--z950); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.plan-card.on { border-color: var(--z300); }
.plan-top { display: flex; align-items: baseline; gap: 8px; }
.plan-top b { font-size: 14px; font-weight: 800; color: var(--z100); }
.plan-top span { font-size: 13px; font-weight: 700; color: var(--z300); }
.plan-top i { margin-left: auto; font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--z950); background: var(--z100); border-radius: 99px; padding: 2px 8px; }
.plan-card ul { list-style: disc; margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--z400); }
.plan-addon { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--z200); }
.plan-addon input { width: 18px; height: 18px; }
.plan-act { border: 1px solid var(--z700); color: var(--z100); border-radius: 10px; padding: 9px; font-size: 12px; font-weight: 800; }
.plan-act.solid { background: var(--z100); color: var(--z950); border-color: var(--z100); }
h3 > .pro-tag, h3 + .pro-tag { flex-shrink: 1; min-width: 0; white-space: normal; text-align: center; } /* a long plan tag (Spanish) wraps instead of pushing the page wider than a phone */
.pro-tag { flex-shrink: 0; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--z500); border: 1px solid var(--z700); border-radius: 4px; padding: 2px 6px; }

/* Pricing on the home page */
.price-card { background: var(--z900); border: 1px solid var(--z800); border-radius: 14px; padding: 16px; }
.price-top { display: flex; justify-content: space-between; align-items: baseline; }
.price-top b { font-size: 17px; font-weight: 800; color: var(--z100); }
.price-top span { font-size: 22px; font-weight: 800; color: var(--z100); }
.price-top small { font-size: 12px; font-weight: 600; color: var(--z500); }
.price-card p { margin: 4px 0 10px; font-size: 12px; color: var(--z400); }
.price-card ul { list-style: disc; margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--z300); }

/* Home page: what the product does that's uncommon */
.feat-h { margin: 48px 0 12px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--z100); }
.feat-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.feat-card { background: var(--z900); border: 1px solid var(--z800); border-radius: 14px; padding: 16px; }
.feat-card b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; color: var(--z100); }
.feat-card p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--z400); }
.feat-also { margin: 12px 2px 0; font-size: 12px; line-height: 1.5; color: var(--z500); }

/* "Request full access" (home page form, and the box in the dashboard; access.js) */
.ask-card { background: var(--z900); border: 1px solid var(--z800); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ask-card h2 { margin: 0; font-size: 17px; font-weight: 800; color: var(--z100); }
.ask-card p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--z400); }
.ask-card label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 700; color: var(--z400); }
.ask-card input, .ask-card textarea { width: 100%; background: var(--z950); border: 1px solid var(--z800); border-radius: 10px; padding: 11px 12px; color: var(--z100); font: 500 16px/1.3 inherit; font-family: inherit; outline: none; }
.ask-card textarea { min-height: 72px; resize: vertical; }
.ask-card input:focus, .ask-card textarea:focus { border-color: var(--z300); }
.ask-card .ask-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ask-btn { display: block; width: 100%; text-align: center; background: var(--ink); color: var(--on-ink); border-radius: 12px; padding: 13px; font-size: 14px; font-weight: 800; border: 0; cursor: pointer; }
.ask-btn[disabled] { opacity: .6; cursor: default; }
.ask-msg { font-size: 12px; font-weight: 600; min-height: 1em; }
.ask-msg.bad { color: var(--bad); }
.ask-done { border: 1px solid var(--z700); border-radius: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.5; color: var(--z200); }
.ask-done b { color: var(--z100); }
.ask-link { display: block; text-align: center; font-size: 12px; font-weight: 700; color: var(--z300); text-decoration: underline; text-underline-offset: 3px; margin-top: 10px; }

/* Ingredients: photo chips, the "what just sold out" notice, the photo card, the restock list (owner.html, pantry.js) */
.deal-chip.has-pic { display: inline-flex; align-items: center; gap: 6px; padding-left: 4px; }
.ing-thumb { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.ing-notice { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 10px; border-radius: 10px; border: 1px solid var(--z800); background: var(--z950); font-size: 11px; line-height: 1.45; color: var(--z300); }
.ing-notice span { flex: 1; min-width: 0; }
.ing-notice b { color: var(--z100); }
.ing-notice button { flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--z100); text-decoration: underline; text-underline-offset: 2px; }
.ing-card { margin-top: 10px; padding: 10px; border-radius: 10px; border: 1px solid var(--z700); background: var(--z950); }
.ing-photo { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.ing-in { display: block; width: 100%; margin-top: 3px; background: var(--z900); border: 1px solid var(--z800); border-radius: 8px; padding: 7px 8px; font-size: 12px; color: var(--z200); }
.ing-restock { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--z800); }

/* Say it instead (voice.js): the recorder, the cards around it, what we heard */
.vo-row { display: flex; align-items: center; gap: 12px; }
.vo-btn { flex: 1; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--z700); background: transparent; color: var(--z100); font-size: 12px; font-weight: 700; }
.vo-link { font-size: 11px; font-weight: 700; color: var(--z400); text-decoration: underline; text-underline-offset: 2px; }
.vo-card { padding: 12px; border-radius: 12px; border: 1px solid var(--z800); background: var(--z950); }
.vo-rec { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--z700); font-size: 12px; color: var(--z200); }
.vo-rec span#voTime { font-variant-numeric: tabular-nums; color: var(--z400); }
.vo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); animation: vo-pulse 1.2s ease-in-out infinite; }
@keyframes vo-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .vo-dot { animation: none; } }
.vo-done { margin-left: auto; padding: 6px 14px; border-radius: 8px; background: var(--z100); color: var(--z950); font-size: 12px; font-weight: 700; }
.vo-msg { font-size: 11px; color: var(--z400); }
.vo-heard { font-size: 11px; line-height: 1.45; color: var(--z400); padding: 8px 10px; border-left: 2px solid var(--z700); margin-bottom: 8px; }
.vo-heard b { color: var(--z200); }

/* Posts (posts.js): the owner's photo strip, the tip, each post card */
.pm-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.pm-tile { position: relative; flex: 0 0 96px; display: flex; flex-direction: column; gap: 4px; }
.pm-img { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; background: var(--z950); }
.pm-sel { width: 96px; font-size: 10px; background: var(--z950); border: 1px solid var(--z800); border-radius: 6px; color: var(--z300); padding: 3px; }
.pm-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; }
.pm-add { flex: 0 0 96px; height: 96px; border-radius: 10px; border: 1px dashed var(--z700); color: var(--z300); font-size: 11px; font-weight: 700; }
.post-tip { margin-top: 8px; font-size: 11px; line-height: 1.45; color: var(--z400); padding: 8px 10px; border-radius: 8px; background: var(--z950); border: 1px solid var(--z800); }
.post-tip b { color: var(--z200); }
.post-card { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 10px; border: 1px solid var(--z800); background: var(--z950); }
.post-card.skipped { opacity: .55; }
.post-media { position: relative; }
.post-img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 8px; }
.post-tag { position: absolute; left: 6px; bottom: 6px; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,.6); color: #fff; }
.post-text { line-height: 1.45; resize: vertical; }

/* The Window (window.js): the button on every screen and its panel. The panel sits beside the page
   (bottom on a phone, right side from 900px), never over it: no backdrop, no scroll lock. */
.win-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0; border-radius: 999px; border: 1px solid var(--z700); background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 800; box-shadow: 0 6px 20px rgba(0,0,0,.28); cursor: pointer; }
.win-fab:hover { filter: brightness(1.06); }
.win-fab:focus-visible, .win-icon:focus-visible, .win-bar:focus-visible { outline: 2px solid var(--z100); outline-offset: 2px; }
.win-fab-ico { width: 24px; height: 24px; } /* the microphone */
/* Voice sheet: while it's listening, the listening bar has the one Send; the typing box's Send steps aside. */
#winSheet:has(.win-live) #winSend { display: none; }
.wk-stop { border: 1px solid var(--z800); border-radius: 10px; padding: 8px 10px; background: var(--z950); }
.wk-stop.wk-bad { border-color: rgba(245, 158, 11, .55); }
.win-fab.win-fab-label { width: auto; padding: 0 18px 0 14px; gap: 8px; } /* a prospect page: "Tap to talk" beside it */
.win-dock { position: fixed; left: 0; right: 0; bottom: env(safe-area-inset-bottom); z-index: 45; display: flex; flex-direction: column; max-height: min(46vh, 420px); max-height: min(46dvh, 420px); background: var(--z900); border-top: 1px solid var(--z800); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 28px rgba(0,0,0,.22); }
/* The strip under the panel (home indicator / Safari's toolbar edge) is the panel's color, not page showing through. */
.win-dock::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: env(safe-area-inset-bottom); background: var(--z900); }
.win-dock[hidden] { display: none; }
.win-head { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 8px 6px 16px; border-bottom: 1px solid var(--z800); }
.win-titles { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.win-head h3 { font-size: 15px; font-weight: 800; color: var(--z100); letter-spacing: -0.01em; outline: none; }
.win-tools { display: flex; gap: 2px; flex-shrink: 0; }
.win-icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--z400); }
.win-icon[hidden] { display: none; }
.win-icon:hover { color: var(--z100); background: var(--z950); }
.win-icon svg { width: 18px; height: 18px; transition: transform .2s; }
.win-bar { display: none; flex: 1; min-width: 0; align-items: center; gap: 10px; min-height: 40px; text-align: left; }
.win-bar-name { font-size: 13px; font-weight: 800; color: var(--z100); flex-shrink: 0; }
.win-peek { font-size: 12px; color: var(--z400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.win-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 14px; }
.win-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px; min-height: 96px; }
/* minimized: one slim bar that says what's happening */
.win-dock.is-min { border-radius: 14px 14px 0 0; }
.win-dock.is-min .win-head { border-bottom: 0; padding-left: 12px; }
.win-dock.is-min .win-titles, .win-dock.is-min .win-body { display: none; }
.win-dock.is-min .win-bar { display: flex; }
.win-dock.is-min #winMin svg { transform: rotate(180deg); }
@media (min-width: 900px) {
  .win-dock { left: auto; top: 0; bottom: 0; width: 380px; max-height: none; border-top: 0; border-left: 1px solid var(--z800); border-radius: 0; box-shadow: -8px 0 28px rgba(0,0,0,.14); }
  .win-dock::after { display: none; }
  .win-head { min-height: 60px; padding-left: 20px; }
  .win-body { padding: 14px 20px 20px; }
  .win-dock.is-min .win-head { min-height: 52px; }
  .win-dock.is-min { top: auto; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 360px; border: 1px solid var(--z800); border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
}
/* What The Window just changed, marked for a moment on the page */
.win-lit { outline: 2px solid var(--z500); outline-offset: 3px; border-radius: 12px; animation: win-lit 1.5s ease-out forwards; }
@keyframes win-lit { 0%, 55% { outline-color: var(--z300); } 100% { outline-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .win-lit { animation: none; } .win-icon svg { transition: none; } }
.win-hello { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--z400); line-height: 1.5; }
.win-hello b { color: var(--z100); font-size: 14px; }
.win-me-row { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.win-del { flex: none; width: 28px; height: 28px; border-radius: 8px; font-size: 12px; color: var(--z500); opacity: .7; }
.win-del:hover, .win-del:focus-visible { color: var(--z100); opacity: 1; background: var(--z950); outline: none; }
.win-me { align-self: flex-end; max-width: 85%; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--ink); color: var(--on-ink); font-size: 13px; }
.win-say { max-width: 90%; font-size: 13px; line-height: 1.45; color: var(--z200); }
.win-card { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--z700); background: var(--z950); }
.win-sum { font-size: 13px; font-weight: 700; color: var(--z100); }
.win-acts { display: flex; align-items: center; gap: 8px; }
.win-yes { padding: 8px 14px; border-radius: 10px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 800; }
.win-no { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--z700); color: var(--z300); font-size: 12px; font-weight: 700; }
.win-ok { font-size: 12px; font-weight: 800; color: var(--ok); }
.win-mute { font-size: 12px; color: var(--z500); }
.win-err { font-size: 12px; color: var(--bad); }
.win-form { display: flex; gap: 8px; }
.win-form input { flex: 1; min-width: 0; height: 44px; border-radius: 12px; border: 1px solid var(--z800); background: var(--z950); color: var(--z100); padding: 0 12px; font-size: 16px; }
.win-mic { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--z700); font-size: 18px; }
.win-mic:disabled, .win-yes:disabled { opacity: .5; }
.win-mic.is-on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.win-card.win-warn { border-color: var(--warn); }
.win-live { flex-wrap: wrap; }
.win-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; color: var(--z500); }
.win-mode button { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--z800); color: var(--z400); font-weight: 700; }
.win-mode button[aria-pressed="true"] { border-color: var(--z300); color: var(--z100); }
/* Key ingredients in the item editor, and what each ingredient takes off */
.deal-chip.ing-extra { border-style: dashed; }
.deal-chip.ing-auto { border-color: var(--z600); color: var(--z200); }
.deal-chip.ing-new { border-style: dashed; color: var(--z300); }
.ing-uses { margin-top: 10px; font-size: 11px; color: var(--z400); }
.ing-uses summary { cursor: pointer; font-weight: 700; color: var(--z300); list-style: none; }
.ing-uses summary::-webkit-details-marker { display: none; }
.ing-uses summary::after { content: " ▾"; }
.ing-uses[open] summary::after { content: " ▴"; }
.ing-use { display: flex; flex-direction: column; gap: 1px; padding: 7px 0; border-top: 1px solid var(--z800); line-height: 1.45; }
.ing-use:first-child { border-top: 0; margin-top: 4px; }
.ing-use b { color: var(--z100); font-size: 12px; }
.ing-how { color: var(--z500); }
/* Stripe's card fee, and the optional "cover your fees" helper (Settings › Online Payments) */
.fee-box:empty { display: none; }
.fee-box { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.fee-card { border: 1px solid var(--z800); border-radius: 12px; padding: 12px; background: var(--z950); display: flex; flex-direction: column; gap: 6px; font-size: 12px; line-height: 1.5; color: var(--z400); }
.fee-card b { color: var(--z100); }
.fee-head { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--z500); }
.fee-rate { font-size: 20px; font-weight: 800; color: var(--z100); letter-spacing: -.01em; }
.fee-rate span { font-size: 12px; font-weight: 600; color: var(--z500); letter-spacing: 0; }
.fee-meta { font-size: 11px; color: var(--z500); }
.fee-meta a { color: var(--z300); text-decoration: underline; }
.fee-cover { border: 1px solid var(--z800); border-radius: 12px; padding: 12px; font-size: 12px; line-height: 1.5; color: var(--z400); }
.fee-cover summary { cursor: pointer; font-weight: 800; color: var(--z100); list-style: none; }
.fee-cover summary::-webkit-details-marker { display: none; }
.fee-cover summary::after { content: " ▾"; color: var(--z500); }
.fee-cover[open] summary::after { content: " ▴"; }
.fee-cover p { margin: 8px 0; }
.fee-list { display: flex; flex-direction: column; margin-top: 10px; }
.fee-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--z800); }
.fee-row:first-child { border-top: 0; }
.fee-name { color: var(--z100); font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fee-was { color: var(--z500); font-variant-numeric: tabular-nums; }
.fee-to { color: var(--z100); font-weight: 800; font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
/* Your day on Free: a locked preview */
.day-lock { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; margin-bottom: 12px; border: 1px dashed var(--z700); border-radius: 12px; font-size: 11px; color: var(--z400); line-height: 1.45; }
.day-lock b { font-size: 12px; color: var(--z100); }
.day-lock-btn { align-self: flex-start; margin-top: 4px; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--z600); color: var(--z100); font-size: 11px; font-weight: 700; }
.is-locked { opacity: .55; }
.brief-locked { filter: blur(3px); user-select: none; }
@media (prefers-reduced-transparency: reduce) { .brief-locked { filter: none; opacity: .35; } }
/* Business tab: every tool, with the plan that has it */
.biz-tools { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 640px) { .biz-tools { grid-template-columns: 1fr 1fr; } }
.biz-tool { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--z800); border-radius: 12px; background: var(--z900); text-decoration: none; }
.biz-tool:hover, .biz-tool:focus-visible { border-color: var(--z600); outline: none; }
.biz-tool-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.biz-tool-top b { font-size: 13px; color: var(--z100); }
.biz-open { font-size: 11px; font-weight: 700; color: var(--z400); }
.biz-tool-what { font-size: 11px; line-height: 1.45; color: var(--z400); }
.biz-tool.is-locked-tool b { color: var(--z300); }
.biz-tool { text-align: left; width: 100%; }
.kb-who b::after { content: " \25BE"; font-size: 12px; color: var(--z500); }
/* Location manager: use my current location */
.loc-here { width: 100%; margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--z700); color: var(--z100); font-size: 12px; font-weight: 800; text-align: center; }
.loc-panel { margin-bottom: 12px; padding: 12px; border: 1px solid var(--z800); border-radius: 12px; background: var(--z950); display: flex; flex-direction: column; gap: 8px; }
.loc-map { height: 220px; border-radius: 10px; overflow: hidden; border: 1px solid var(--z800); background: var(--z900); }
.loc-nomap { display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--z400); }
.loc-addr { font-size: 12px; font-weight: 700; color: var(--z100); }
.loc-note, .loc-msg { font-size: 11px; color: var(--z500); line-height: 1.45; }
.loc-msg { color: var(--z300); font-size: 12px; }
.loc-acts { display: flex; justify-content: flex-end; gap: 8px; }
.loc-solid { padding: 8px 14px; border-radius: 10px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 800; }
.loc-quiet { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--z700); color: var(--z300); font-size: 12px; font-weight: 700; }

/* Time boxes (clock.js): Hour · Minute · AM/PM in one field that looks like the others. */
input.clock-src { display: none !important; }
.clock-box { display: flex !important; align-items: center; gap: 2px; }
.clock-box > select { flex: 1 1 0; min-width: 0; background: transparent; border: 0; color: inherit; font: inherit; padding: 0 2px; text-align: center; text-align-last: center; -webkit-appearance: none; appearance: none; }
.clock-box > select:focus-visible { outline: 2px solid var(--z300); outline-offset: 1px; border-radius: 4px; }
.clock-box > span { color: var(--z500); }
.clock-box.is-disabled { opacity: .45; }

/* Quick taps stay taps: tapping + twice adds two, it doesn't zoom the page. Pinch-to-zoom still works. */
html { touch-action: manipulation; }
button, a, input, select, textarea, label, summary, [data-action], [role="button"] { touch-action: manipulation; }
/* Pages customers fill in: phones zoom into any box with text under 16px, so those boxes are 16px on touch screens. */
@media (pointer: coarse) {
  .no-input-zoom input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .no-input-zoom select, .no-input-zoom textarea { font-size: 16px !important; }
}

/* Analytics: the money summary (a simple profit and loss) and the menu in four groups. */
.money-box { background: var(--z950); border: 1px solid var(--z800); border-radius: 12px; padding: 4px 12px; font-variant-numeric: tabular-nums; }
.mb-line { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--z900); font-size: 12px; color: var(--z200); }
.mb-line:last-of-type { border-bottom: 0; }
.mb-line span { min-width: 0; }
.mb-line small { display: block; font-size: 10px; color: var(--z500); margin-top: 1px; }
.mb-line b { font-weight: 600; white-space: nowrap; }
.mb-sub span { padding-left: 10px; color: var(--z400); }
.mb-sub b { color: var(--z400); font-weight: 500; }
.mb-total { border-top: 1px solid var(--z700); font-size: 13px; color: var(--z100); }
.mb-total b { font-weight: 800; }
.mb-foot { font-size: 10px; color: var(--z500); line-height: 1.5; padding: 8px 0 6px; border-top: 1px solid var(--z800); }
.mx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mx-cell { background: var(--z950); border: 1px solid var(--z800); border-radius: 12px; padding: 10px; min-width: 0; }
.mx-star { border-color: var(--z400); }
.mx-head { font-size: 12px; font-weight: 800; color: var(--z100); display: flex; justify-content: space-between; gap: 6px; }
.mx-head span { color: var(--z500); font-weight: 700; }
.mx-tip { font-size: 10px; color: var(--z500); line-height: 1.4; margin: 3px 0 6px; }
.mx-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 6px; font-size: 11px; color: var(--z200); padding: 3px 0; border-top: 1px solid var(--z900); }
.mx-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-item small { margin-left: auto; color: var(--z500); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ins-more { margin-top: 10px; }
.ins-more summary { font-size: 12px; font-weight: 700; color: var(--z300); cursor: pointer; padding: 6px 0; }
@media (max-width: 360px) { .mx-grid { grid-template-columns: 1fr; } }

/* Voice: a bar that moves with your voice while recording, and a quiet pulse while it's being written down. */
.vo-level { display: inline-block; width: 56px; height: 6px; border-radius: 3px; background: var(--z800); overflow: hidden; vertical-align: middle; }
.vo-level i { display: block; height: 100%; width: 0; background: var(--z200); border-radius: 3px; transition: width .08s linear; }
.win-hearing { display: flex; align-items: center; gap: 8px; }
.win-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--z300); animation: winPulse 1s ease-in-out infinite; }
@keyframes winPulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .win-pulse { animation: none; } .vo-level i { transition: none; } }

/* Pricing and Compare (pricing.html, compare.html, compare-core.js) */
.pc-card { background: var(--z900); border: 1px solid var(--z800); border-radius: 14px; padding: 16px; }
.pc-field { display: block; font-size: 11px; font-weight: 600; color: var(--z400); margin-top: 10px; }
.pc-field:first-child { margin-top: 0; }
.pc-field input, .pc-field select { display: block; width: 100%; margin-top: 4px; background: var(--z950); border: 1px solid var(--z800); border-radius: 10px; padding: 9px 10px; font-size: 14px; color: var(--z100); }
.pc-field small { display: block; margin-top: 3px; font-size: 10px; font-weight: 500; color: var(--z500); }
.pc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.pc-grid .pc-field { margin-top: 10px; }
.pc-details { margin-top: 12px; border-top: 1px solid var(--z800); padding-top: 10px; }
.pc-details summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--z200); }
.pc-note { font-size: 11px; line-height: 1.45; color: var(--z500); margin-top: 8px; }
.pc-lead { font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--z100); margin-bottom: 12px; }
.pc-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 7px 0; border-top: 1px solid var(--z800); font-size: 12px; color: var(--z300); font-variant-numeric: tabular-nums; }
.pc-row span:not(:first-child) { text-align: right; }
.pc-row.head { border-top: 0; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--z500); }
.pc-row.strong { font-weight: 800; color: var(--z100); font-size: 13px; }
.pc-notes { list-style: disc; padding-left: 16px; margin: 10px 0 0; display: flex; flex-direction: column; gap: 5px; font-size: 11px; line-height: 1.45; color: var(--z400); }
.pc-co { font-size: 15px; font-weight: 800; color: var(--z100); margin-bottom: 6px; }
.pc-plan { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--z800); font-size: 13px; color: var(--z200); }
.pc-plan b { font-weight: 800; }
.pc-kv { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 12px; color: var(--z400); }
.pc-kv span:last-child { color: var(--z200); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.pc-src, .pc-sources { font-size: 10px; line-height: 1.5; color: var(--z500); margin-top: 8px; }
.pc-src a, .pc-sources a, .pc-note a { color: var(--z400); text-decoration: underline; text-underline-offset: 2px; }
.pc-list { list-style: disc; padding-left: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; line-height: 1.45; color: var(--z300); }

/* Say your menu changes (owner.html mv*): each item, each field before → after, ticked */
.mv-card { border: 1px solid var(--z800); background: var(--z950); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.mv-row { display: grid; grid-template-columns: 18px minmax(0, 0.9fr) minmax(0, 2fr); gap: 8px; align-items: start; font-size: 12px; color: var(--z300); padding-top: 6px; border-top: 1px solid var(--z800); }
.mv-row input { width: 16px; height: 16px; margin-top: 1px; }
.mv-label { color: var(--z500); font-weight: 600; }
.mv-change s { color: var(--z500); }
.mv-change b { color: var(--z100); font-weight: 700; }
.mv-warn { font-size: 11px; line-height: 1.45; color: var(--warn, #d9a441); }
.mv-said { font-size: 11px; line-height: 1.45; color: var(--z500); font-style: italic; }

/* No signal overview (outage-core.js): kitchen panel and offline.html */
.og { text-align: left; display: flex; flex-direction: column; gap: 14px; font-size: 13px; line-height: 1.45; color: var(--z200); }
.og-top { display: flex; gap: 12px; align-items: center; }
.og-icon { font-size: 28px; }
.og-title { font-size: 20px; font-weight: 800; color: var(--warn); }
.og-es { font-size: 12px; color: var(--z400); }
.og-lede { color: var(--z300); margin: 0; }
.og-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.og-stats > div { border: 1px solid var(--z800); background: var(--z900); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.og-stats b { font-size: 22px; font-weight: 800; color: var(--z100); line-height: 1.1; }
.og-stats span { font-size: 11px; color: var(--z400); }
.og-warn { border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); border-radius: 12px; padding: 10px 12px; color: var(--z100); }
.og-sec { border-top: 1px solid var(--z800); padding-top: 10px; }
.og-h { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--z400); margin-bottom: 6px; }
.og-h span { color: var(--z100); margin-left: 4px; }
.og ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.og-t b { color: var(--z100); }
.og-sub { display: block; font-size: 12px; color: var(--z400); }
.og-pst { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 800; letter-spacing: .02em; border-radius: 999px; padding: 2px 9px; border: 1px solid currentColor; }
.og-pst-paid { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.og-pst-due { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.og-tag { font-size: 10px; font-weight: 700; border: 1px solid var(--z700); border-radius: 999px; padding: 1px 6px; color: var(--z300); }
.og-none { margin: 0; color: var(--z300); }
.og-pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.og-pay-col { border: 1px solid var(--z800); background: var(--z900); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.og-pay-due { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.og-pay ul { gap: 4px; }
.og-pay li { display: flex; gap: 6px; align-items: baseline; color: var(--z200); }
.og-pay li b { color: var(--z100); }
.og-amt { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--z300); white-space: nowrap; }
.og-make { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.og-make span { border: 1px solid var(--z700); border-radius: 999px; padding: 3px 9px; color: var(--z100); font-weight: 600; font-size: 12px; }
.og-facts li { position: relative; padding-left: 14px; color: var(--z300); }
.og-facts li::before { content: '·'; position: absolute; left: 3px; color: var(--z500); }
.og-btn { display: block; text-align: center; background: var(--z100); color: var(--z950, #0a0a0b); font-weight: 700; border-radius: 12px; padding: 12px; text-decoration: none; }
.offline-bar button { margin-left: 6px; font: inherit; font-weight: 700; color: var(--z100); background: none; border: 1px solid var(--z700); border-radius: 8px; padding: 2px 8px; cursor: pointer; }

/* Settings groups (owner.html): small headings so the cards read in order of a day's work */
.set-group { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--z500); margin: 28px 2px -8px; }
.set-group:first-child { margin-top: 4px; }
/* A signup sample item in the owner's menu list (any edit makes it the owner's own). */
.sample-tag { display: inline-block; vertical-align: 1px; margin-left: 6px; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); border: 1px solid currentColor; border-radius: 4px; padding: 1px 5px; }
/* Give back part of an order (owner-app refundSheet) */
.rf-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .5); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.rf-card { width: 100%; max-width: 440px; max-height: 88vh; overflow: auto; background: var(--z900); border: 1px solid var(--z800); border-radius: 16px; padding: 16px; }
@media (min-width: 640px) { .rf-wrap { align-items: center; } }

/* Phase 72: the owner page's sections — Today · Plan · Close · Review · Settings. Big enough to read and tap with one
   hand during a rush (44 px tall, 13 px labels); the open one is the solid one. */
.tab-btn { min-height: 44px; padding: 0 4px; border-radius: 12px; font-size: 13px; font-weight: 700; background: var(--z900);
  border: 1px solid var(--z800); color: var(--z300); white-space: nowrap; transition: background .15s, color .15s; }
.tab-btn.is-on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.tab-btn #newOrdersBadge { font-size: 11px; }
#planSeg { margin-bottom: 4px; }
/* Close tab: the day's money, one row per line. */
.shift-rows { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin-top: 4px; font-size: 13px; color: var(--z300); }
.shift-rows b { color: var(--z100); font-variant-numeric: tabular-nums; text-align: right; }
.shift-rows .sep { grid-column: 1 / -1; border-top: 1px solid var(--z800); margin: 4px 0; }
.shift-note { font-size: 11px; color: var(--z500); margin-top: 8px; line-height: 1.45; }
.drawer-in { width: 100%; background: var(--z950); border: 1px solid var(--z800); border-radius: 10px; padding: 10px 12px; font-size: 16px; color: var(--z100); }

/* =====================================================================================================
   KIT — shared pieces (every page)
   ===================================================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.c-money, .c-price { font-family: var(--f-ticket); font-variant-numeric: tabular-nums; font-weight: 700; }
.c-center { text-align: center; }

/* The order ticket: the signature element. Thermal paper, receipt type, torn top and bottom, a stamped number.
   Used on the kitchen screen, the customer's order status and the landing page. */
.ok-ticket {
  --tear: 7px;
  position: relative; background: var(--paper-ticket); color: var(--ticket-ink);
  font-family: var(--f-ticket); font-size: var(--t2); line-height: 1.45;
  padding: calc(var(--s4) + var(--tear)) var(--s4) calc(var(--s4) + var(--tear));
  filter: drop-shadow(0 6px 10px rgba(28, 23, 18, .16)) drop-shadow(0 1px 1px rgba(28, 23, 18, .12));
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 90deg, #0000 91deg) bottom / calc(2 * var(--tear)) 51% repeat-x,
                conic-gradient(from 135deg at top, #0000, #000 1deg 90deg, #0000 91deg) top / calc(2 * var(--tear)) 51% repeat-x;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 90deg, #0000 91deg) bottom / calc(2 * var(--tear)) 51% repeat-x,
                conic-gradient(from 135deg at top, #0000, #000 1deg 90deg, #0000 91deg) top / calc(2 * var(--tear)) 51% repeat-x;
}
.ok-ticket .tk-head { display: flex; justify-content: space-between; gap: var(--s3); font-size: var(--t1); text-transform: uppercase; letter-spacing: .06em; color: #5C5044; }
.ok-ticket .tk-head span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ok-ticket .tk-label { font-size: var(--t1); text-transform: uppercase; letter-spacing: .06em; color: #5C5044; text-align: center; }
.ok-ticket .tk-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin: var(--s3) 0 var(--s1); }
/* The stamped number: sign lettering inside a double rule, a few degrees off true, like a rubber stamp. */
.tk-stamp { display: inline-block; font-family: var(--f-sign); font-weight: 700; font-size: var(--t5); line-height: 1; letter-spacing: .02em;
  color: var(--ticket-ink); padding: 6px 12px 4px; border: 3px double currentColor; border-radius: var(--r1); transform: rotate(-3deg); }
.ok-ticket .tk-state { font-family: var(--f-sign); font-weight: 700; font-size: var(--t4); text-transform: uppercase; letter-spacing: .03em; text-align: right; }
.ok-ticket.is-ready .tk-state, .ok-ticket.is-fulfilled .tk-state { color: #2F6B3F; }
.ok-ticket.is-ready .tk-stamp { color: #2F6B3F; }
.ok-ticket.is-canceled { opacity: .7; }
.ok-ticket.is-canceled .tk-state { color: #B3261E; }
.ok-ticket .tk-name { font-weight: 700; font-size: var(--t3); }
.ok-ticket .tk-msg { color: #4B4137; }
.ok-ticket .tk-rule { border-top: 2px dashed #CDBFA9; margin: var(--s3) 0; }
.ok-ticket .tk-lines { white-space: normal; }
.ok-ticket .tk-total { display: flex; justify-content: space-between; font-weight: 700; margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid #E4D9C8; }
.ok-ticket .tk-paid { display: inline-block; margin-top: var(--s2); font-weight: 700; font-size: var(--t1); text-transform: uppercase; letter-spacing: .08em; border: 1.5px solid currentColor; padding: 1px 6px; color: #2F6B3F; }
.ok-ticket .tk-line { text-align: center; font-size: var(--t2); color: #4B4137; }

/* =====================================================================================================
   CUSTOMER PAGE (customer.html) — the truck's own page. Paper, the truck's color as the lead, menu-board rows.
   ===================================================================================================== */
.c-page { background: var(--z950); color: var(--z100); font-size: var(--t3); }
.c-landing { padding: var(--s4) var(--s4) var(--s5); display: flex; flex-direction: column; gap: var(--s4); min-height: 85vh; }
.c-top { display: flex; justify-content: space-between; }
.c-lang { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s2); color: var(--z400); font-size: var(--t2); font-weight: 600; background: none; border: 0; }

/* Foundation: who the truck is. */
.c-id { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--s2) 0 var(--s1); }
.c-logo { width: 104px; height: 104px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 44px;
  background: var(--z900); border: 2px solid var(--z100); margin-bottom: var(--s4); overflow: hidden; }
.c-logo.is-mono { background: var(--lead); border-color: var(--z100); color: var(--on-lead); }
.c-logo .mono { font-family: var(--f-sign); font-weight: 700; font-size: 46px; letter-spacing: .02em; line-height: 1; }
.c-name { font-family: var(--f-sign); font-weight: 700; font-size: var(--t5); line-height: 1; text-transform: uppercase; letter-spacing: .01em; margin: 0; }
.c-ig { display: inline-flex; align-items: center; gap: 4px; margin-top: var(--s2); min-height: 32px; font-size: var(--t2); font-weight: 600; color: var(--z400); text-decoration: none; }

/* Supporting: one compact block — status, wait, where, when, deal. Rows split by hairlines, no boxes inside. */
.c-info { background: var(--z900); border-radius: var(--r2); overflow: hidden; }
.c-info.c-info > * + *, .c-info.c-info > div:empty + * { border-top: 1px solid var(--z800); }
.c-info > div:empty { display: none; }
.c-row { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 48px; padding: var(--s3) var(--s4); font-size: var(--t3); color: var(--z100); text-align: left; background: none; border: 0; text-decoration: none; }
.c-row > .ic { color: var(--z400); }
.c-row-main { flex: 1; min-width: 0; }
.c-row-end { margin-left: auto; color: var(--z500); }
.c-tap { cursor: pointer; }
.c-tap:active { background: var(--z800); }
.c-status { font-weight: 600; }
.c-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin: 0 3px; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.c-status.is-open { color: var(--ok); }
.c-status.is-amber { color: var(--warn); }
.c-status.is-amber .c-dot { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 22%, transparent); }
.c-status.is-closed { color: var(--bad); }
.c-status.is-closed .c-dot { background: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 22%, transparent); }
.c-wait { font-weight: 600; }
.c-caret .ic { transition: transform .15s; }
.c-caret.is-open .ic { transform: rotate(180deg); }
.c-hours > .c-row { border: 0; }
.c-week { padding: 0 var(--s4) var(--s3) calc(var(--s4) + 1.15em + var(--s3)); font-size: var(--t2); }
.c-day { display: flex; justify-content: space-between; padding: 3px 0; color: var(--z400); text-transform: capitalize; }
.c-day .c-money { font-weight: 400; }
.c-day.is-today { color: var(--z100); font-weight: 600; }
.c-day.is-today .c-money { font-weight: 700; }
.c-deal b { font-weight: 600; }
.c-deal > .ic { color: var(--z100); }
.c-was { color: var(--z500); font-family: var(--f-ticket); font-size: .9em; margin-left: 2px; }

.c-note { display: flex; align-items: center; justify-content: center; gap: var(--s2); text-align: center; font-size: var(--t2); font-weight: 600; color: var(--z200); }
.c-note.is-warn { color: var(--warn); }
.c-note.is-bad { color: var(--bad); }
.limp-note { margin: 0; }
.pace-note { margin: 0; border-radius: var(--r2); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent); font-size: var(--t2); }
.pace-note b { color: var(--warn); }

/* Lead: the one action. The truck's color (or mustard), sign lettering, big enough for a thumb in a line. */
.c-actions { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s1); }
.c-lead { display: flex; align-items: center; justify-content: center; gap: var(--s2); width: 100%; min-height: 56px; padding: 0 var(--s5);
  background: var(--lead); color: var(--on-lead); border: 0; border-radius: var(--r2);
  font-family: var(--f-sign); font-weight: 700; font-size: var(--t4); text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.c-lead:active { filter: brightness(.94); }
.c-lead.is-off, .c-lead:disabled { background: var(--z800); color: var(--z500); cursor: default; }
.c-lead.is-small { min-height: 44px; width: auto; font-size: var(--t3); padding: 0 var(--s4); }
/* Secondary ways off the page: quiet rows, not more buttons. */
.c-link { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 48px; padding: 0 var(--s1); background: none; border: 0; border-bottom: 1px solid var(--z800);
  color: var(--z100); font-size: var(--t3); font-weight: 600; text-align: left; text-decoration: none; }
.c-link .ic { color: var(--z400); }
.c-link > span.block { display: block; }
.c-quiet { min-height: 44px; padding: 0 var(--s4); border-radius: var(--r1); border: 1.5px solid var(--z100); background: transparent; color: var(--z100); font-weight: 600; font-size: var(--t2); white-space: nowrap; }

/* Punch card: a paper loyalty card with its holes. */
.punch-card { background: var(--paper-ticket); color: var(--ticket-ink); border: 1.5px dashed var(--z700); border-radius: var(--r2); padding: var(--s3) var(--s4); text-align: left; }
.punch-card.ready { border: 2px solid var(--ok); }
.punch-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.punch-name { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-sign); font-weight: 700; font-size: var(--t3); text-transform: uppercase; letter-spacing: .04em; }
.punch-line { font-size: var(--t2); margin-top: 2px; color: #4B4137; }
.punch-dots { gap: 5px; }
.punch { width: 18px; height: 18px; border-radius: 50%; border: 1.5px dashed #9C8F80; display: inline-flex; align-items: center; justify-content: center; }
.punch.on { background: var(--ticket-ink); border: 1.5px solid var(--ticket-ink); color: var(--paper-ticket); }
.punch .ic { width: 11px; height: 11px; }
.c-usual { background: var(--z900); border-radius: var(--r2); padding: var(--s3) var(--s4); }
.c-usual-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.c-usual-main { min-width: 0; }
.c-usual-items { font-size: var(--t2); line-height: 1.35; }

.c-label { display: block; font-size: var(--t2); font-weight: 600; color: var(--z300); margin-bottom: var(--s1); }
.c-fine { font-size: var(--t1); color: var(--z500); margin-top: var(--s1); line-height: 1.4; }
.c-empty { min-height: 85vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--s5); gap: var(--s2); }
.c-empty-ic { width: 40px; height: 40px; color: var(--z500); }
.c-empty-h { font-family: var(--f-sign); font-size: var(--t4); text-transform: uppercase; margin: 0; }
.c-empty-p { color: var(--z400); font-size: var(--t2); padding: var(--s5) 0; }

/* ---------- menu: a menu board ---------- */
.c-menu { padding: 0 var(--s4) 104px; }
.c-bar { position: sticky; top: 0; z-index: 10; margin: 0 calc(-1 * var(--s4)) var(--s2); padding: 0 var(--s4);
  background: color-mix(in srgb, var(--z950) 94%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--z800); }
.c-bar-row { display: flex; align-items: center; min-height: 52px; gap: var(--s2); }
.c-bar-side { flex: 1; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; background: none; border: 0; padding: 0; color: var(--z300); font-size: var(--t2); font-weight: 600; }
.c-bar-end { justify-content: flex-end; text-align: right; }
.c-bar-title { font-family: var(--f-sign); font-weight: 700; font-size: var(--t4); text-transform: uppercase; margin: 0; white-space: nowrap; }
.c-tabs { display: flex; gap: var(--s5); overflow-x: auto; margin-top: -2px; }
.c-tab { flex: none; min-height: 44px; padding: 0; background: none; border: 0; border-bottom: 3px solid transparent;
  font-family: var(--f-sign); font-weight: 700; font-size: var(--t3); text-transform: uppercase; letter-spacing: .04em; color: var(--z400); }
.c-tab:first-child { color: var(--z100); border-bottom-color: var(--lead); }
.c-featured { margin: var(--s2) 0; }
.c-feat { background: var(--z900); border-radius: var(--r2); font-weight: 600; }
.c-feat > .ic { color: var(--z100); }
.c-feat-label { font-family: var(--f-sign); text-transform: uppercase; letter-spacing: .04em; color: var(--z400); margin-right: 4px; }
.c-sections { display: flex; flex-direction: column; gap: var(--s6); margin-top: var(--s4); }
.c-section-h { font-family: var(--f-sign); font-weight: 700; font-size: var(--t4); text-transform: uppercase; letter-spacing: .03em; margin: 0;
  padding-bottom: var(--s2); border-bottom: 2px solid var(--z100); }
.c-item { display: flex; align-items: center; gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--z800); }
.c-item-main { flex: 1; min-width: 0; }
.c-item-name { margin: 0; font-size: var(--t3); font-weight: 600; line-height: 1.3; }
.c-item-desc { margin: 2px 0 0; font-size: var(--t2); color: var(--z400); line-height: 1.4; }
.c-item-meta { display: flex; align-items: baseline; gap: var(--s3); margin-top: var(--s2); flex-wrap: wrap; }
.c-price { font-size: var(--t3); }
.c-prep { font-size: var(--t1); color: var(--z500); font-family: var(--f-ticket); }
.c-photo { width: 72px; height: 72px; border-radius: var(--r1); object-fit: cover; flex: none; background: var(--z800); display: block; }
.c-photo-btn { flex: none; padding: 0; border: 0; background: none; border-radius: var(--r1); }
.c-add { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 var(--s3) 0 10px; border-radius: var(--r1);
  border: 2px solid var(--z100); background: transparent; color: var(--z100); font-weight: 600; font-size: var(--t2); }
.c-add:active { background: var(--z100); color: var(--z950); }
.c-out { flex: none; font-family: var(--f-sign); font-weight: 700; font-size: var(--t2); text-transform: uppercase; letter-spacing: .04em; color: var(--bad); }
/* Sold out: struck through like a menu board. */
.c-item.is-out .c-item-name span, .c-item.is-out .c-price { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--bad); }
.c-item.is-out .c-item-desc, .c-item.is-out .c-photo { opacity: .55; }
.left-tag { font-size: var(--t1); }
.deal-tag { font-family: var(--f-body); font-size: var(--t1); font-weight: 600; color: var(--z100); border: 1.5px solid var(--z100); border-radius: var(--r1); padding: 0 6px; }

.c-cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--z950) 70%, transparent); }
.c-cart-btn { max-width: 416px; margin: 0 auto; justify-content: space-between; box-shadow: var(--lift); }
.c-count { font-family: var(--f-ticket); font-size: var(--t2); font-weight: 700; text-transform: none; letter-spacing: 0; padding: 2px 8px; border-radius: var(--r1); background: color-mix(in srgb, var(--on-lead) 14%, transparent); }
.c-cart-btn .c-money { font-size: var(--t3); letter-spacing: 0; }

/* ---------- pop-ups: a sheet of paper on a dim counter ---------- */
.c-scrim { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; padding: 0;
  background: rgba(28, 23, 18, .55); }
@media (min-width: 520px) { .c-scrim { align-items: center; padding: var(--s4); } }
.c-sheet, .c-success { width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto; background: var(--z950); color: var(--z100);
  border-radius: var(--r2) var(--r2) 0 0; padding: var(--s5) var(--s4) calc(var(--s5) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: var(--s4); box-shadow: var(--lift); }
@media (min-width: 520px) { .c-sheet, .c-success { border-radius: var(--r2); } }
.c-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.c-sheet-title { font-family: var(--f-sign); font-weight: 700; font-size: var(--t4); text-transform: uppercase; letter-spacing: .02em; margin: 0; line-height: 1.1; }
.c-sheet-desc { font-size: var(--t2); color: var(--z400); margin: calc(-1 * var(--s3)) 0 0; }
.c-sheet-photo { width: 100%; max-height: 280px; object-fit: cover; border-radius: var(--r1); }
.c-x { flex: none; width: 44px; height: 44px; margin: -10px -10px 0 0; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--z300); font-size: 20px; }
.c-x.is-small { width: 36px; height: 36px; margin: 0; font-size: 16px; color: var(--z500); }
.c-stepper { display: flex; align-items: center; gap: var(--s3); }
.c-step { width: 48px; height: 48px; border-radius: var(--r1); border: 1.5px solid var(--z700); background: var(--z900); color: var(--z100); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.c-step-n { flex: 1; text-align: center; font-family: var(--f-ticket); font-weight: 700; font-size: var(--t4); }
.c-stepper.is-small { gap: 6px; flex: none; }
.c-stepper.is-small .c-step { width: 36px; height: 36px; font-size: 14px; }
.c-stepper.is-small .c-step-n { flex: none; width: 22px; font-size: var(--t3); }
.c-lines { display: flex; flex-direction: column; border-top: 1px solid var(--z800); }
.c-line { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--z800); }
.c-line-main { flex: 1; min-width: 0; }
.c-line-name { font-weight: 600; font-size: var(--t3); line-height: 1.3; }
.c-line-sub { font-size: var(--t2); margin-top: 2px; }
.c-bad { color: var(--bad); }
.c-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--f-sign); font-weight: 700; font-size: var(--t4); text-transform: uppercase; }
.c-total .c-money { font-size: var(--t4); }
.c-cart-wait { background: var(--z900); border-radius: var(--r2); min-height: 44px; font-size: var(--t2); font-weight: 600; }
.c-pay { display: flex; flex-direction: column; gap: var(--s2); }
.c-opt { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 56px; padding: var(--s3); text-align: left; border-radius: var(--r2); border: 1.5px solid var(--z700); background: var(--z900); color: var(--z100); }
.c-opt > i { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--z500); }
.c-opt[aria-pressed="true"] { border: 2px solid var(--z100); }
.c-opt[aria-pressed="true"] > i { border: 5px solid var(--z100); }
.c-opt > .ic { color: var(--z400); }
.c-opt-main { display: flex; flex-direction: column; font-size: var(--t2); color: var(--z400); }
.c-opt-main b { color: var(--z100); font-size: var(--t3); font-weight: 600; }
.c-paynote { background: var(--z900); border-radius: var(--r2); font-size: var(--t2); }
.c-form { display: flex; flex-direction: column; gap: var(--s3); }
.c-field { width: 100%; min-height: 48px; padding: var(--s3); border-radius: var(--r1); border: 1.5px solid var(--z700); background: var(--z900); color: var(--z100); font-size: var(--t3); }
.c-field:focus { outline: 2px solid var(--z100); outline-offset: 1px; border-color: var(--z100); }
.c-area { height: 72px; resize: none; }
.c-check { display: flex; align-items: flex-start; gap: var(--s2); margin-top: var(--s2); font-size: var(--t1); color: var(--z400); line-height: 1.4; }
.c-checkbox { width: 18px; height: 18px; flex: none; margin-top: 1px; accent-color: var(--z100); }
.c-error { font-size: var(--t2); font-weight: 600; color: var(--bad); text-align: center; }
.c-sheet .ch-group legend { font-size: var(--t3); font-weight: 600; }
.c-sheet .ch-opt { font-family: var(--f-body); font-size: var(--t3); border-color: var(--z700); background: var(--z900); border-radius: var(--r1); }
.c-sheet .theme-seg { border-radius: var(--r1); border-color: var(--z700); }
.c-sheet .theme-seg button { font-size: var(--t2); min-height: 44px; }
.c-sheet .slot { border-radius: var(--r1); font-family: var(--f-ticket); font-size: var(--t2); }
.c-success { text-align: center; }
.c-success-ticket { display: flex; flex-direction: column; align-items: center; gap: var(--s2); margin: 0 var(--s2); }
.c-success-ticket .tk-stamp { margin: var(--s2) 0; font-size: 48px; }

/* ---------- order status ---------- */
.c-tracker { padding: 0 var(--s4) 128px; }
.c-tickets { display: flex; flex-direction: column; gap: var(--s5); margin-top: var(--s3); }
.c-ticket-wrap { display: flex; flex-direction: column; }
/* Zelle on the customer's ticket: where to send it, big enough to read off and type into a bank app. */
.zelle-stub { align-items: flex-end; }
.zelle-pay { flex: 1 1 220px; font-size: 14px; }
.zelle-pay .zelle-to { font-size: 18px; margin-top: 4px; word-break: break-all; }
.zelle-pay .zelle-name { font-size: 13px; color: var(--z400); margin-bottom: 4px; }
.tk-stub { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap;
  margin: 2px 6px 0; padding: var(--s3) var(--s3); background: var(--z900); border: 1.5px dashed var(--z700); border-radius: 0 0 var(--r2) var(--r2); font-size: var(--t2); color: var(--z300); }
.tk-stub + .tk-stub, .tk-stub + .fb-row { margin-top: -1.5px; }
.tk-stub-btns { display: flex; gap: var(--s2); }
.c-tickets .fb-row { margin: 2px 6px 0; border: 1.5px dashed var(--z700); border-radius: 0 0 var(--r2) var(--r2); font-size: var(--t2); }
.fb-votes button { width: 48px; height: 44px; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }
.c-fine.c-center { text-align: center; }

/* ---------- footer: texture ---------- */
.c-footer { width: 100%; text-align: center; padding: var(--s5) var(--s4) calc(var(--s5) + env(safe-area-inset-bottom)); margin-top: auto; font-size: var(--t1); color: var(--z500); display: flex; flex-direction: column; gap: var(--s1); }
.c-footer a, .c-footer button { color: var(--z500); background: none; border: 0; padding: 4px 2px; font-size: var(--t1); text-decoration: none; }
.c-footer #brandingLink { text-decoration: underline; }
.c-footer-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0 var(--s2); }
#ownerLoginLink { text-transform: uppercase; letter-spacing: .06em; }
body.branded::before { display: none; }

/* =====================================================================================================
   OWNER PORTAL AND KITCHEN — cast iron (night) or paper (day), with every order on a paper ticket.
   ===================================================================================================== */
/* Paper: anything inside reads with the day tokens, whatever the page's theme. Tickets live on it. */
.ok-paper {
  color-scheme: light;
  --z950: #FFFEF9; --z900: #F4EDE1; --z800: #E4D9C8; --z700: #CDBFA9; --z600: #6B5E50;
  --z500: #655849; --z400: #5C5044; --z300: #3F362D; --z200: #2B241D; --z100: #1C1712;
  --zwhite: #120E0A; --zblack: #1C1712; --ink: #1C1712; --on-ink: #F7F1E6;
  --ok: #2F6B3F; --warn: #8A4B00; --bad: #B3261E; --bad-solid: #B3261E;
  color: var(--z100);
}
.ticket.ok-paper { background: var(--paper-ticket); border: 0; border-left: 6px solid var(--z700); border-radius: 0; padding: var(--s4); box-shadow: var(--lift); }
.ticket.ok-paper h4 { font-family: var(--f-ticket); font-weight: 700; font-size: var(--t3); line-height: 1.45; }
.tk-headline { font-family: var(--f-ticket); font-size: var(--t2); font-weight: 700; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.tk-headline .tk-num { font-family: var(--f-sign); font-weight: 700; font-size: var(--t4); letter-spacing: .01em; }
.tk-money { font-family: var(--f-ticket); font-weight: 700; font-size: var(--t3); color: var(--z100); white-space: nowrap; }
.ticket.ok-paper .border-t { border-top: 1px dashed var(--z700); }
.ticket.ok-paper button[data-act="cancel"] { background: transparent; }

/* Header, tabs and sections: sign lettering for names, one lead per screen. */
#dash-name { font-family: var(--f-sign); font-size: var(--t4); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
#dash-emoji.is-mono, .rounded-full.is-mono { background: var(--lead); color: var(--on-lead); border-color: transparent; }
#dash-emoji .mono { font-family: var(--f-sign); font-weight: 700; font-size: 15px; }
.tab-btn { font-family: var(--f-sign); font-size: var(--t3); text-transform: uppercase; letter-spacing: .04em; border-radius: var(--r1); }
/* Small phones (≤380px): five tabs fit without SETTINGS running off the edge. */
@media (max-width: 380px) { .tab-btn { letter-spacing: 0; font-size: 12px; padding: 0 2px; min-width: 0; } #tabBar { gap: 4px; } }
.set-group { font-family: var(--f-sign); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
#liveFoldBtn { font-family: var(--f-sign); font-size: var(--t4); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--z100); }
.brief { border-radius: var(--r2); border: 0; }
.brief-k { font-family: var(--f-sign); font-size: var(--t2); letter-spacing: .08em; }
.brief-h { font-family: var(--f-sign); font-size: var(--t4); text-transform: uppercase; letter-spacing: .01em; font-weight: 700; line-height: 1.15; }
.brief-l { font-size: var(--t2); }

/* Kitchen screen: a ticket rail. Paper tickets on cast iron, readable from six feet in steam and glare. */
.kb-who b { font-family: var(--f-sign); font-size: var(--t4); text-transform: uppercase; letter-spacing: .02em; }
.kb-clock { font-family: var(--f-ticket); font-weight: 700; }
.kb-chip { font-family: var(--f-body); border-radius: var(--r1); }
.kb-chip b { font-family: var(--f-ticket); }
.kb-btn { border-radius: var(--r1); font-family: var(--f-sign); font-size: var(--t3); text-transform: uppercase; letter-spacing: .04em; }
.kb-col { border-radius: var(--r2); border: 0; background: var(--z900); }
.kb-col h2 { font-family: var(--f-sign); font-size: var(--t4); letter-spacing: .06em; color: var(--z200); padding: 14px 14px 10px; border-bottom: 3px solid var(--z800); }
.kb-col-ready h2 { border-bottom-color: var(--ok); }
.kb-list { gap: 14px; padding: 12px 12px 16px; }
.kt.ok-paper {
  --tear: 6px;
  background: var(--paper-ticket); border: 0; border-left: 8px solid var(--age); border-radius: 0; overflow: visible;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .28));
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 90deg, #0000 91deg) top / calc(2 * var(--tear)) var(--tear) repeat-x, linear-gradient(#000 0 0) 0 var(--tear) / 100% calc(100% - var(--tear)) no-repeat;
          mask: conic-gradient(from 135deg at top, #0000, #000 1deg 90deg, #0000 91deg) top / calc(2 * var(--tear)) var(--tear) repeat-x, linear-gradient(#000 0 0) 0 var(--tear) / 100% calc(100% - var(--tear)) no-repeat;
}
.kt.ok-paper .kt-body { padding: calc(14px + var(--tear)) 48px 0 16px; }
.kt.ok-paper .kt-body:active { background: #F4EDE1; }
.kt.ok-paper .kt-head { align-items: center; gap: 10px; }
.kt.ok-paper .kt-num { font-family: var(--f-sign); font-weight: 700; font-size: 48px; line-height: .95; letter-spacing: 0; }
.kt.ok-paper .kt-name { font-family: var(--f-ticket); font-size: 18px; color: var(--z300); }
.kt.ok-paper .kt-age { font-family: var(--f-ticket); font-size: 18px; }
.kt.ok-paper .kt-items { font-family: var(--f-ticket); font-size: 21px; font-weight: 700; gap: 6px; border-top: 2px dashed var(--z700); padding-top: 10px; margin-top: 10px; }
.kt.ok-paper .kt-note { font-family: var(--f-ticket); font-size: 17px; background: transparent; border: 2px solid var(--z100); border-radius: 0; }
.kt.ok-paper .kt-tags span { font-size: 13px; border-color: var(--z700); color: var(--z300); border-radius: var(--r1); }
.kt.ok-paper .kt-verb { font-family: var(--f-sign); font-size: var(--t4); text-transform: uppercase; letter-spacing: .04em; margin: 12px -48px 0 -16px; border-top: 2px dashed var(--z700); }
.kt-ready.ok-paper .kt-verb { background: var(--z100); color: var(--paper-ticket); border-top: 0; }
.kt.ok-paper .kt-alert { font-size: 16px; }
.kt.ok-paper .kt-more-btn { top: calc(6px + var(--tear)); color: var(--z400); }
.sign-logo.is-mono { background: var(--lead); color: var(--on-lead); }
.sign-logo .mono, .rounded-full.is-mono .mono { font-family: var(--f-sign); font-weight: 700; line-height: 1; }
/* On an order ticket the next step leads (Mark Ready), the rest stay quiet. */
.ticket.ok-paper button[data-act="ready"]:not(:disabled) { background: var(--lead); color: var(--on-lead); }
.ticket.ok-paper button[data-act="ready"], .ticket.ok-paper button[data-act="fulfill"] { font-family: var(--f-sign); font-size: var(--t3); text-transform: uppercase; letter-spacing: .03em; min-height: 44px; border-radius: var(--r1); box-shadow: none; }
.ticket.ok-paper button[data-act="fulfill"]:not(:disabled) { background: transparent; color: var(--z100); border: 2px solid var(--z100); }
.ticket.ok-paper button[data-act="cancel"] { min-height: 44px; border-radius: var(--r1); }

/* =====================================================================================================
   LANDING PAGE (index.html) — hook, three ideas, a quiet band, plans. Big moments, then quiet stretches.
   ===================================================================================================== */
.lp-body { background: var(--z950); color: var(--z100); }
.lp { max-width: 1040px; margin: 0 auto; padding: 0 var(--s4) var(--s7); }
.lp-top { display: flex; justify-content: space-between; align-items: center; min-height: 64px; }
.lp-mark { font-family: var(--f-sign); font-weight: 700; font-size: var(--t4); text-transform: uppercase; letter-spacing: .02em; }
.lp-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s2); font-weight: 600; font-size: var(--t2); color: var(--z200); text-decoration: underline; text-underline-offset: 3px; }
.lp-center { text-align: center; }
.lp-fine { font-size: var(--t1); color: var(--z500); margin: var(--s2) 0 0; line-height: 1.45; }
.lp-fine a { color: var(--z200); text-decoration: underline; }
.lp-p { font-size: var(--t2); color: var(--z400); margin: 0 0 var(--s4); line-height: 1.5; }

/* Hook */
.lp-hook { display: flex; flex-direction: column; padding: var(--s6) 0 var(--s7); }
.lp-h1 { font-family: var(--f-sign); font-weight: 700; font-size: clamp(44px, 12vw, 76px); line-height: .92; text-transform: uppercase; letter-spacing: 0; margin: 0 0 var(--s4); max-width: 12ch; }
.lp-sub { font-size: var(--t3); line-height: 1.5; color: var(--z300); margin: 0 0 var(--s5); max-width: 36em; }
.lp-cta { max-width: 420px; }
.lp-demo { display: flex; align-items: center; justify-content: center; max-width: 420px; min-height: 52px; margin-top: var(--s4); border-radius: var(--r2); border: 2px solid var(--z100); color: var(--z100);
  font-family: var(--f-sign); font-weight: 700; font-size: var(--t3); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.lp-hook .lp-fine.lp-center, .lp-hook .ask-link { max-width: 420px; }
.ask-link { text-align: left; font-size: var(--t2); font-weight: 600; color: var(--z200); margin-top: var(--s4); }

/* The phone and the kitchen rail: the ticket prints in once, then rests. */
.lp-show { position: relative; height: 360px; margin: 0 0 var(--s5); }
.lp-phone { position: absolute; left: 0; top: 0; width: 190px; height: 352px; border-radius: 28px; padding: 8px; background: #0E0C0A; box-shadow: var(--lift); transform: rotate(-4deg); overflow: hidden; }
.lp-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 21px; display: block; }
.lp-rail { position: absolute; right: 0; top: 18px; width: 58%; max-width: 260px; height: 330px; background: #1F1A16; border-radius: var(--r2); padding: 0 var(--s3); overflow: hidden; box-shadow: var(--lift); }
.lp-rail-h { font-family: var(--f-sign); font-weight: 700; font-size: var(--t3); letter-spacing: .08em; text-transform: uppercase; color: #E2D9CC; padding: var(--s3) 0 var(--s2); border-bottom: 3px solid #322B25; }
.lp-slot { height: 6px; margin: var(--s3) -4px 0; border-radius: 3px; background: #0E0C0A; }
.lp-ticket { margin-top: -2px; font-size: var(--t1); padding-left: var(--s3); padding-right: var(--s3); }
.lp-ticket .tk-stamp { font-size: 30px; }
.lp-ticket .tk-name { font-size: var(--t2); }
@keyframes lp-print { from { transform: translateY(-100%); clip-path: inset(100% 0 0 0); } to { transform: translateY(0); clip-path: inset(0 0 0 0); } }
@keyframes lp-stamp { 0% { transform: rotate(-3deg) scale(1.6); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(-3deg) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .lp-ticket { animation: lp-print .9s cubic-bezier(.2, .7, .2, 1) .5s both; }
  .lp-ticket .tk-stamp { animation: lp-stamp .3s ease-out 1.4s both; }
}

/* Ideas: one real screen and one short idea each */
.lp-kicker { font-family: var(--f-sign); font-weight: 700; font-size: var(--t4); text-transform: uppercase; letter-spacing: .06em; color: var(--z400); margin: 0 0 var(--s5); padding-top: var(--s5); border-top: 2px solid var(--z100); }
.lp-idea { display: grid; grid-template-columns: 1fr; gap: var(--s5); align-items: center; padding: var(--s5) 0 var(--s7); }
.lp-idea-text p { font-size: var(--t3); line-height: 1.55; color: var(--z300); margin: 0; max-width: 32em; }
.lp-h3 { font-family: var(--f-sign); font-weight: 700; font-size: clamp(32px, 9vw, 48px); line-height: .95; text-transform: uppercase; margin: 0 0 var(--s3); }
.lp-frame { margin: 0; }
.lp-frame img { display: block; width: 100%; height: auto; }
.lp-frame-phone { width: 230px; max-width: 70%; padding: 8px; border-radius: 28px; background: #0E0C0A; box-shadow: var(--lift); }
.lp-frame-phone img { border-radius: 21px; }
.lp-frame-tablet { padding: 10px; border-radius: 22px; background: #0E0C0A; box-shadow: var(--lift); }
.lp-frame-tablet img { border-radius: 12px; }

/* The quiet band */
.lp-band { display: flex; gap: var(--s4); align-items: flex-start; padding: var(--s5) 0; border-top: 1px solid var(--z800); border-bottom: 1px solid var(--z800); margin-bottom: var(--s7); }
.lp-band > .ic { width: 28px; height: 28px; color: var(--z300); margin-top: 2px; }
.lp-band b { font-family: var(--f-sign); font-size: var(--t4); text-transform: uppercase; letter-spacing: .02em; }
.lp-band p { margin: var(--s1) 0 0; font-size: var(--t2); color: var(--z400); line-height: 1.5; max-width: 40em; }

/* Plans and the rest: tighter, quieter */
.lp-h2 { font-family: var(--f-sign); font-weight: 700; font-size: 36px; text-transform: uppercase; margin: 0 0 var(--s2); line-height: 1; }
.lp-h2-quiet { font-size: var(--t4); margin-top: var(--s7); }
.lp-plans { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
.price-card { border: 0; border-radius: var(--r2); padding: var(--s4); }
.price-top b { font-family: var(--f-sign); font-size: var(--t4); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.price-top span { font-family: var(--f-ticket); font-size: var(--t4); font-weight: 700; }
.price-card p { font-size: var(--t2); }
.price-card ul { font-size: var(--t2); }
.dev-card { border-radius: var(--r2); }
.ask-card { border: 0; border-radius: var(--r2); margin-top: var(--s7); }
.ask-card h2 { font-family: var(--f-sign); font-size: var(--t4); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.ask-card p { font-size: var(--t2); }
.ask-card label { font-size: var(--t2); font-weight: 600; }
.ask-card input, .ask-card textarea { border-radius: var(--r1); border: 1.5px solid var(--z700); }
.ask-btn { border-radius: var(--r2); font-family: var(--f-sign); font-size: var(--t3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; min-height: 52px; }
.lp > .lp-cta#bottomCta { margin: var(--s5) auto 0; }
.lp-foot { text-align: center; font-size: var(--t1); color: var(--z500); margin-top: var(--s7); }
.lp-foot a { color: var(--z500); text-decoration: underline; }

@media (min-width: 860px) {
  .lp { padding: 0 var(--s6) var(--s7); }
  .lp-hook { display: grid; grid-template-columns: 1.05fr 1fr; grid-template-areas: "h show" "sub show" "cta show" "f1 show" "demo show" "f2 show" "ask show"; column-gap: var(--s7); align-content: start; }
  .lp-hook .lp-h1 { grid-area: h; } .lp-hook .lp-sub { grid-area: sub; } .lp-hook .lp-show { grid-area: show; height: 460px; align-self: center; }
  .lp-hook .lp-cta { grid-area: cta; } .lp-hook > .lp-fine:nth-of-type(2) { grid-area: f1; } .lp-hook .lp-demo { grid-area: demo; } .lp-hook .ask-link { grid-area: ask; }
  .lp-phone { width: 240px; height: 446px; }
  .lp-rail { height: 420px; top: 20px; }
  .lp-idea { grid-template-columns: 300px 1fr; gap: var(--s7); }
  .lp-idea:nth-of-type(odd) { grid-template-columns: 1fr 300px; }
  .lp-idea:nth-of-type(odd) .lp-frame { order: 2; }
  .lp-idea-wide { grid-template-columns: 1.4fr 1fr !important; }
  .lp-idea-wide .lp-frame { order: 0 !important; }
  .lp-frame-phone { width: 100%; max-width: 280px; }
  .lp-plans { grid-template-columns: repeat(3, 1fr); }
}

/* =====================================================================================================
   LOG IN / NEW PASSWORD (login.html, reset.html)
   ===================================================================================================== */
.ok-auth .font-serif { font-size: 44px; text-transform: uppercase; line-height: 1; }
.ok-auth form { border: 0; border-radius: var(--r2); box-shadow: none; }
.ok-auth label { font-size: var(--t2); font-weight: 600; color: var(--z300); }
.ok-auth input { border-radius: var(--r1); border: 1.5px solid var(--z700); font-size: var(--t3); min-height: 48px; }
.ok-auth input:focus { outline: 2px solid var(--z100); outline-offset: 1px; }
.ok-auth #btn { background: var(--lead); color: var(--on-lead); border-radius: var(--r2); min-height: 56px; box-shadow: none;
  font-family: var(--f-sign); font-weight: 700; font-size: var(--t4); text-transform: uppercase; letter-spacing: .03em; }
.ok-auth .text-\[11px\] { font-size: var(--t2); }
.ok-auth .text-zinc-600 { color: var(--z500); }

/* =====================================================================================================
   EAR CANDY — four small moments, each at a real event, each under 400 ms. Nothing moves otherwise.
   ===================================================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* 1. Kitchen: a new order prints in from the top of the rail. */
  @keyframes ok-print { from { clip-path: inset(0 0 100% 0); transform: translateY(-14px); } to { clip-path: inset(0 0 0 0); transform: translateY(0); } }
  .kt.is-new { animation: ok-print .38s cubic-bezier(.2, .7, .2, 1) both; }
  /* 2. Customer: the order number stamps onto the ticket when it's placed, and again when it's ready. */
  @keyframes ok-stamp { 0% { transform: rotate(-3deg) scale(1.7); opacity: 0; } 70% { opacity: 1; } 100% { transform: rotate(-3deg) scale(1); opacity: 1; } }
  .c-success-ticket .tk-stamp, .ok-ticket.stamp-now .tk-stamp { animation: ok-stamp .3s cubic-bezier(.3, 1.4, .5, 1) .12s both; }
  /* 3. Punch card: the hole that was just earned gets punched. */
  @keyframes ok-punch { 0% { transform: scale(.2); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
  .punch.just { animation: ok-punch .32s ease-out .2s both; }
  /* 4. Menu: an item that sells out while you look gets struck through, like a marker on the board. */
  .c-item.just-out .c-item-name span { text-decoration: none; background: linear-gradient(var(--bad), var(--bad)) no-repeat 0 56% / 0 2px; animation: ok-strike .35s ease-out .1s forwards; }
  @keyframes ok-strike { to { background-size: 100% 2px; } }
}

/* Over a moving background (demo and prospect pages), anything quiet that sits straight on the veil gets full-strength
   text, and the footer gets its own paper, so it all passes AA even with the light veil over a dark clip. */
.c-lang, .c-ig { color: var(--z100); }
.c-footer { background: var(--z950); position: relative; z-index: 1; }
/* The rail behind the tickets is kraft (day) or darker iron (night), so paper tickets always stand off it. */
.kb-col { background: var(--z800); }
.kb-col h2 { border-bottom-color: var(--z700); }
.kb-col h2 span { background: var(--z950); }
.kb-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.kb-col-ready h2 span { background: var(--z100); color: var(--z950); }
