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

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

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

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

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

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

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

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

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

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

/* Wait time −5 / +5: big, plain, easy with gloves on. */
.wait-btn { min-width: 56px; min-height: 46px; border-radius: 12px; font-weight: 700; font-size: 15px;
  background: var(--z950); color: var(--z200); border: 1px solid var(--z800); }
.wait-btn:active { background: var(--z800); }
.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; }
.check-first { width: 100%; text-align: left; border-radius: 10px; padding: 10px 12px; font-size: 12px; font-weight: 800; border: 2px solid var(--warn); color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.hist-link { font-size: 10px; font-weight: 600; color: var(--z500); text-decoration: underline; text-underline-offset: 2px; margin-left: 6px; }
.hist-box { margin-top: 6px; font-size: 11px; line-height: 1.6; color: var(--z300); border-left: 2px solid var(--z700); padding-left: 8px; }
.hist-box b { color: var(--z100); font-weight: 700; font-variant-numeric: tabular-nums; }
.hist-box span { color: var(--z500); }

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

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

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

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

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

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

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

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

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

/* 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 Manrope, system-ui, sans-serif; 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: Manrope, system-ui, sans-serif; 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 Manrope, system-ui, sans-serif; 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 Manrope, system-ui, sans-serif; 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-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-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 Manrope, system-ui, sans-serif; }
.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 { 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: Manrope, system-ui, sans-serif; }
.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 Manrope, system-ui, sans-serif; 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 Manrope, system-ui, sans-serif; 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 Manrope, system-ui, sans-serif; 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; }
.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); }
.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); }

/* 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; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; 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: 18px; height: 18px; }
.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; }
}
