﻿/* TableCall — shared styles for guest, staff, station, manager and admin screens.
   Look: warm off-white ground, deep teal accent, Manrope. Mobile first, 48px touch targets. */

/* Manrope (SIL Open Font License, see fonts/Manrope-OFL.txt), served from this site: no wait on Google Fonts. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope.woff2") format("woff2");
}

:root {
  --ground: #F6F3EE;
  --surface: #FFFFFF;
  --surface-2: #FBFAF8;
  --ink: #1C1A17;
  --ink-2: #3D3832;
  --muted: #5E5850;
  --line: #E4DED5;
  --line-2: #EFEAE2;
  --dark: #1C1A17;
  --dark-2: #2C2925;
  --dark-muted: #B5ADA1;

  --accent: #0E6655;
  --accent-ink: #0A4C40;
  --accent-tint: #E3F0EC;
  --accent-soft: #8FD3C3;

  --amber: #9A5B00;
  --amber-ink: #7A4700;
  --amber-tint: #FCEFD9;
  --amber-strong: #F2B84B;
  --red: #B42318;
  --red-ink: #8C1A12;
  --red-tint: #FDE8E6;
  --green: #17663A;
  --green-tint: #E2F2E7;

  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(28, 26, 23, .06), 0 4px 16px rgba(28, 26, 23, .06);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #3B82C4; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.wrap { flex-wrap: wrap; }
svg.i { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }

/* ---- App shell (phone) -------------------------------------------------- */
.shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; background: var(--ground); }
.shell-wide { max-width: none; }
.content { flex: 1; padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.section-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 4px 0 0; }

.topbar { background: var(--dark); color: #fff; padding: 14px 16px 0; position: sticky; top: 0; z-index: 20; }
.topbar .who { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; }
.topbar .who strong { font-size: 16px; }
.topbar .sub { font-size: 12px; color: var(--dark-muted); display: flex; align-items: center; gap: 6px; }
.topbar .icon-btn { background: var(--dark-2); color: #fff; }
.topbar-plain { padding-bottom: 14px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; display: inline-block; }
.live-dot.off { background: #EF4444; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: var(--accent); flex: none; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }

.tabs { display: flex; gap: 4px; }
.tabs a, .tabs button {
  flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px;
  color: var(--dark-muted); font-size: 14px; font-weight: 700; text-decoration: none;
  background: none; border: 0; border-bottom: 3px solid transparent;
}
.tabs .active { color: #fff; font-weight: 800; border-bottom-color: #34D399; }
.count { background: var(--dark-2); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.tabs .active .count { background: var(--amber-strong); color: var(--ink); }

.bottomnav {
  position: sticky; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
}
.bottomnav a {
  min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: none; position: relative;
}
.bottomnav a.active { color: var(--accent); font-weight: 800; }
.bottomnav .dot { position: absolute; top: 6px; right: calc(50% - 18px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  min-height: 48px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: #CFC7BB; color: var(--ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-lg { min-height: 56px; font-size: 17px; border-radius: var(--radius); }
.btn-sm { min-height: 40px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-danger-text { color: var(--red); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-amber { background: var(--amber-tint); border-color: var(--amber-tint); color: var(--amber-ink); }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); flex: none; }
.link-btn { background: none; border: 0; padding: 0 8px; min-height: 44px; color: var(--accent); font-weight: 700; text-decoration: underline; }

/* ---- Cards, lists, chips -------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card-tight { padding: 12px 14px; }
.card.accent { border: 2px solid var(--accent); padding: 15px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: #ECEAE6; color: var(--ink-2); white-space: nowrap; }
.chip-accent { background: var(--accent-tint); color: var(--accent-ink); }
.chip-amber { background: var(--amber-tint); color: var(--amber-ink); }
.chip-red { background: var(--red); color: #fff; }
.chip-green { background: var(--green-tint); color: var(--green); }
.chip-dark { background: var(--dark); color: #fff; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.empty .i { width: 40px; height: 40px; opacity: .5; margin-bottom: 8px; }

/* ---- Forms -------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 700; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #D6CFC4; border-radius: var(--radius-sm);
  background: var(--surface); font-size: 16px;
}
.textarea { resize: vertical; min-height: 80px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-tint); }
.hint { font-size: 12px; color: var(--muted); }
.error-box { background: var(--red-tint); color: var(--red-ink); border: 1px solid #F5C2BC; border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 600; }
.flash { background: var(--green-tint); color: var(--green); border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 700; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: 14px;
}
.choice input:checked + span { border: 2px solid var(--accent); background: var(--accent-tint); color: var(--accent-ink); }
.choice input:focus-visible + span { outline: 3px solid #3B82C4; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.pill.on { background: var(--dark); border-color: var(--dark); color: #fff; }
.pill.on.danger { background: var(--red); border-color: var(--red); }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: #ECE7DF; padding: 4px; border-radius: 14px; }
.segmented button { min-height: 44px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.segmented button.on { background: var(--surface); font-weight: 800; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.guest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.guest-grid button { min-height: 64px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 24px; font-weight: 800; color: var(--ink); }
.guest-grid button:active, .guest-grid button.on { background: #E3F0EC; border: 2px solid var(--accent); }
.stepper {display: inline-flex; align-items: center; gap: 4px; background: var(--ground); border-radius: 14px; padding: 4px; }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; }
.stepper output { min-width: 40px; text-align: center; font-size: 20px; font-weight: 800; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.switch input { width: 22px; height: 22px; accent-color: var(--accent); }

/* ---- Sheets, overlays, toasts ------------------------------------------------ */
.backdrop { position: fixed; inset: 0; background: rgba(28, 26, 23, .55); z-index: 80; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease-out; }
.sheet {
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--surface); border-radius: 28px 28px 0 0;
  padding: 12px 20px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px;
  animation: up .2s ease-out;
}
.sheet .grabber { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: #D6CFC4; flex: none; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet-head h2 { font-size: 24px; font-weight: 800; }
@media (min-width: 720px) {
  .backdrop { align-items: center; }
  .sheet { border-radius: 24px; max-width: 520px; }
}
@keyframes up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.toasts { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 520px); pointer-events: none; }
.toast { pointer-events: auto; background: var(--dark); color: #fff; border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); font-weight: 600; font-size: 14px; animation: up .2s ease-out; }
.toast .grow { line-height: 1.35; }
.toast button { background: none; border: 0; color: var(--accent-soft); font-weight: 800; min-height: 36px; padding: 0 8px; }
.toast.error { background: var(--red-ink); }
.toast.good { background: var(--accent-ink); }

.sound-gate { position: fixed; inset: 0; z-index: 120; background: rgba(28,26,23,.88); color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.sound-gate button { font-size: 18px; }

.banner { border-radius: 14px; padding: 10px 12px 10px 14px; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.banner.good { background: var(--green-tint); border: 1px solid #A7D7B5; }
.banner.warn { background: var(--amber-tint); border: 1px solid #F0D3A1; }
.banner.bad { background: var(--red-tint); border: 1px solid #F5C2BC; color: var(--red-ink); }
.offline-bar { background: var(--red); color: #fff; text-align: center; font-size: 13px; font-weight: 700; padding: 6px; }

/* ---- Request cards (staff) ----------------------------------------------------- */
.req { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 12px 14px; display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; color: inherit; }
.req.amber { border: 2px solid #D98B0B; padding: 11px 11px 11px 13px; }
.req.red { border: 2px solid var(--red); padding: 11px 11px 11px 13px; }
.req.mine { background: var(--accent-tint); border-color: #B9DACF; }
.req .tbl { flex: none; width: 58px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.req .tbl strong { font-size: 22px; font-weight: 800; }
.timer { font-size: 12px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: #ECEAE6; font-variant-numeric: tabular-nums; }
.timer.amber { background: var(--amber-strong); color: var(--ink); }
.timer.red { background: var(--red); color: #fff; }
.req .what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.req .tag { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.req .tag.red { color: var(--red); }
.req .tag.amber { color: #8A5100; }
.req .tag.accent { color: var(--accent-ink); }
.req .items { font-size: 15px; font-weight: 700; }
.req .meta { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 8px; min-width: 0; }
.req .meta > span:last-child:not(.srv) { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.req .act { flex: none; }

/* ---- New request alert ---------------------------------------------------------- */
.alert-screen { position: fixed; inset: 0; z-index: 90; background: var(--accent-ink); color: #fff; display: flex; flex-direction: column; padding: 40px 20px calc(24px + env(safe-area-inset-bottom)); gap: 22px; max-width: 560px; margin: 0 auto; }
.alert-screen.urgent { background: #7F1D1D; }
.alert-ring { width: 148px; height: 148px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; margin: 0 auto; animation: pulse 1.4s ease-in-out infinite; }
.alert-ring > span { width: 112px; height: 112px; border-radius: 50%; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; }
.alert-ring > span > span { width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.alert-screen .big { font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; text-align: center; }
.alert-screen .card { color: var(--ink); }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ---- Table status colours (spec 7A) ------------------------------------------- */
.st-Available { --st-bg: #E2F2E7; --st-fg: #17663A; --st-tile: #E2F2E7; }
.st-Seated { --st-bg: #E6EEF8; --st-fg: #1D4F91; --st-tile: #BFD3EE; }
.st-ReadyToOrder { --st-bg: #FCEFD9; --st-fg: #7A4700; --st-tile: #F2B84B; }
.st-Ordered { --st-bg: #EFE9F6; --st-fg: #5B3A8C; --st-tile: #D6C6EE; }
.st-FoodServed { --st-bg: #E3F0EC; --st-fg: #0A4C40; --st-tile: #B9DACF; }
.st-CheckRequested { --st-bg: #FCE7F3; --st-fg: #9D174D; --st-tile: #F7C4DE; }
.st-Paid { --st-bg: #ECEAE6; --st-fg: #3D3832; --st-tile: #DEDAD4; }
.st-NeedsCleaning { --st-bg: #FFEDD5; --st-fg: #9A3412; --st-tile: #FDBA74; }
.st-OutOfService { --st-bg: #DEDAD4; --st-fg: #3D3832; --st-tile: #DEDAD4; }
.st-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--st-bg); color: var(--st-fg); font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.st-swatch { width: 12px; height: 12px; border-radius: 4px; background: var(--st-fg); flex: none; display: inline-block; }

.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile {
  min-height: 78px; border: 0; border-radius: 14px; background: var(--st-tile); color: var(--st-fg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 4px; text-align: center;
}
.tile strong { font-size: 18px; color: var(--ink); }
.tile-top { display: flex; align-items: center; justify-content: center; gap: 5px; max-width: 100%; }
.tile .srv { font-size: 11px; justify-content: center; }
.tile .allergy-tag { display: inline-flex; align-items: center; gap: 2px; font-size: 10px; font-weight: 800; color: #fff; background: var(--red); border-radius: 999px; padding: 1px 6px; text-transform: uppercase; letter-spacing: .02em; }
.tile .allergy-tag .i { width: 10px; height: 10px; }
.tile .srv-dot { width: 16px; height: 16px; font-size: 9px; }
.tile .lbl { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.tile .min { font-size: 12px; font-weight: 800; color: var(--ink); }
.tile .req-count { font-size: 11px; font-weight: 800; background: var(--dark); color: #fff; padding: 1px 6px; border-radius: 999px; }
.tile.st-Available { border: 1px dashed #A7D7B5; }
.tile.late { box-shadow: inset 0 0 0 3px var(--red); }
.tile.selected { box-shadow: inset 0 0 0 3px var(--dark); }

/* Manager-size tiles */
/* Guest count badge and server tag, used on every table tile, card and ticket */
.gbadge { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px 0 6px; border-radius: 999px; background: var(--dark); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.gbadge .i { width: 12px; height: 12px; }
.srv { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.srv-name { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.srv-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.srv.none { color: var(--muted); font-weight: 600; }
.srv.none .srv-dot { background: #C9C1B5; }

.ftile { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 7px; color: var(--ink); min-height: 120px; }
.ftile.st-Available { background: transparent; border: 1px dashed #C9C1B5; }
.ftile.st-OutOfService { background: #ECEAE6; }
.ftile.late { border: 2px solid var(--red); padding: 11px; }
.ftile .name { font-size: 22px; font-weight: 800; }
.ftile .who { font-size: 12px; font-weight: 700; color: var(--muted); }
.ftile .mins strong { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ftile .mins span { font-size: 13px; color: var(--muted); }
.ftile .note { font-size: 12px; font-weight: 800; color: #8A5100; }
.ftile .note.red { color: var(--red); }
.ftile .note { display: inline-flex; align-items: center; gap: 4px; }
.ftile .note.green { color: #17663A; }
.ftile .note.amber { color: #8A5100; }

/* Manager: assign tables */
.assign-bar { position: sticky; top: 8px; z-index: 5; box-shadow: 0 8px 24px rgba(31, 26, 20, .10); }
.assign-people { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.assign-people .ap { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 14px 6px 8px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); white-space: nowrap; flex: none; color: var(--ink); }
.assign-people .ap strong { font-size: 14px; }
.assign-people .ap .ap-sub { font-size: 11px; color: var(--muted); font-weight: 600; }
.assign-people .ap.off { opacity: .72; }
.assign-people .ap.on { border-color: var(--c, var(--ink)); box-shadow: 0 0 0 2px var(--c, var(--ink)) inset; opacity: 1; }
.assign-people .ap.none.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.ftile.assigning { border: 1px solid var(--line); border-left: 6px solid var(--srv, #E4DED5); background: var(--surface); min-height: 104px; cursor: pointer; }
.ftile.assigning.picked { border-color: var(--srv); box-shadow: 0 0 0 2px var(--srv) inset; }
.ftile .pick-check { width: 24px; height: 24px; border-radius: 50%; background: var(--srv); color: #fff; display: grid; place-items: center; }
.split.assigning { grid-template-columns: 1fr; }

/* Table sheet: the usual next step, one tap */
.next-step { justify-content: flex-start; gap: 10px; font-size: 17px; }
.next-step .next-arrow { margin-left: auto; opacity: .8; display: inline-flex; }
.srv-pick .select { font-weight: 700; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }

/* ---- Guest app ------------------------------------------------------------------ */
.guest-head { padding: 26px 20px 14px; display: flex; flex-direction: column; gap: 12px; }
.guest-head h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.lang { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 12px; padding: 6px 12px; border-radius: 999px; min-height: 32px; }
.lang button.on { background: var(--dark); color: #fff; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick { min-height: 64px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px; text-align: left; }
.quick .i { color: var(--accent); width: 24px; height: 24px; }
.quick.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.quick.primary .i { color: #fff; }
.quick-grid .quick:last-child:nth-child(odd) { grid-column: 1 / -1; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.guest-server { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); font-weight: 600; }
.guest-server strong { color: var(--ink); font-weight: 800; }
.guest-server .srv-dot { width: 26px; height: 26px; font-size: 13px; }
.more-label { margin: 14px 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.cat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cat-sm { min-height: 52px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 15px; font-weight: 700; color: var(--ink); text-align: left; }
.cat-sm .ic { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; }
.cat { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; text-align: left; color: var(--ink); }
.cat .ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.cat strong { font-size: 16px; }
.cat span.d { font-size: 12px; color: var(--muted); }
.c-teal { background: #E3F0EC; color: #0E6655; }
.c-blue { background: #E6EEF8; color: #1D4F91; }
.c-brown { background: #F3ECE2; color: #7A4E1D; }
.c-amber { background: #FCEFD9; color: #9A5B00; }
.c-purple { background: #EFE9F6; color: #5B3A8C; }
.c-gray { background: #ECEAE6; color: #4A453E; }
.item-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 12px 14px; width: 100%; text-align: left; color: inherit; }
.item-row.in-cart { border: 2px solid var(--accent); padding: 11px 11px 11px 13px; }
.item-row.off { background: #EFEBE5; }
.item-row .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.item-row .qty { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.item-row .add { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--ground); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.cartbar { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; z-index: 10; }
.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.progress li { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.progress li::before { content: ""; height: 6px; border-radius: 3px; background: var(--line); }
.progress li.done { color: var(--accent); font-weight: 800; }
.progress li.done::before { background: var(--accent); }
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.hero-icon { width: 96px; height: 96px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.hero-icon .i { width: 44px; height: 44px; }
.hero-ring { width: 132px; height: 132px; border-radius: 50%; background: var(--accent-tint); display: flex; align-items: center; justify-content: center; }
.stars { display: flex; gap: 6px; }
.stars button { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: #A39C91; display: flex; align-items: center; justify-content: center; }
.stars button.on { background: var(--amber-tint); border-color: var(--amber-tint); color: #C27803; }
.stars .i { width: 28px; height: 28px; }

/* ---- PIN pad ----------------------------------------------------------------- */
.pin-screen { background: var(--dark); color: #fff; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 48px 28px 28px; }
.pin-dots { display: flex; gap: 18px; margin: 28px 0 32px; }
.pin-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #6B655C; }
.pin-dots span.on { background: #fff; border-color: #fff; }
.pinpad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 22px; width: 100%; max-width: 290px; }
.pinpad button { height: 72px; border: 0; border-radius: 50%; background: var(--dark-2); color: #fff; font-size: 28px; font-weight: 700; }
.pinpad button.plain { background: transparent; font-size: 15px; color: var(--dark-muted); }
.pinpad.compact { gap: 10px; max-width: none; }
.pinpad.compact button { height: 60px; border-radius: 14px; font-size: 24px; }

/* ---- Auth & landing ------------------------------------------------------- */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand .mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }

/* ---- Desktop pages: manager, station, admin ---------------------------------------- */
.page-head { background: var(--dark); color: #fff; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.page-head nav { display: flex; flex-wrap: wrap; gap: 4px; }
.page-head nav a { min-height: 44px; padding: 0 14px; border-radius: 10px; color: #D9D3CA; font-size: 14px; font-weight: 700; display: flex; align-items: center; text-decoration: none; }
.page-head nav a.active { background: #fff; color: var(--ink); font-weight: 800; }
.page-head .spacer { flex: 1; }
.page-head form { margin: 0; }
.page-head .btn { min-height: 40px; }
.page { max-width: 1440px; margin: 0 auto; padding: 20px 24px 40px; display: flex; flex-direction: column; gap: 16px; }
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split > .main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.split > .side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi .k { font-size: 13px; font-weight: 700; color: var(--muted); }
.kpi .v { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 15px; font-weight: 600; color: var(--muted); }
.kpi.bad { background: var(--red-tint); border-color: #F5C2BC; }
.kpi.bad .k, .kpi.bad .v { color: var(--red-ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.select-sm { min-height: 40px; width: auto; padding-top: 0; padding-bottom: 0; font-size: 14px; font-weight: 700; }
.filters .chipbtn { min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--st-bg, #ECEAE6); color: var(--st-fg, var(--ink)); }
.filters .chipbtn.on { box-shadow: inset 0 0 0 2px var(--ink); }
.filters .chipbtn.all.on { background: var(--dark); color: #fff; box-shadow: none; }
.attn { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--ground); border-radius: 12px; }
.attn.bad { background: var(--red-tint); }
.attn > strong { flex: none; width: 36px; font-size: 16px; }

.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; font-size: 14px; }
.table th { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.form-card { max-width: 820px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 10px; }
.bars div { flex: 1; background: var(--accent-tint); border-radius: 4px 4px 0 0; position: relative; min-height: 2px; }
.bars div.has { background: var(--accent); }
.bars-labels { display: flex; gap: 4px; font-size: 10px; color: var(--muted); }
.bars-labels span { flex: 1; text-align: center; }

/* Station tablet */
.station-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px 0 8px; border-radius: 10px; background: #2C2925; color: #F2EEE8; font-weight: 700; font-size: 14px; text-decoration: none; }
.station-back:hover { background: #3D3832; color: #fff; }
.station { display: flex; gap: 20px; padding: 20px 24px 24px; min-height: calc(100vh - 72px); }
.station .board { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; align-content: start; min-width: 0; }
.scard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-height: 172px; }
.scard.amber { border: 2px solid #D98B0B; }
.scard.red { border: 2px solid #EF4444; }
.scard.taken { background: var(--surface-2); }
.scard .tname { font-size: 26px; font-weight: 800; }
.scard .items { font-size: 17px; font-weight: 700; }
.scard .meta { font-size: 13px; color: var(--muted); font-weight: 600; }
.scard .actions { margin-top: auto; display: flex; gap: 8px; }
.station .panel { flex: none; width: 320px; background: var(--dark); color: #fff; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 14px; align-self: flex-start; position: sticky; top: 92px; }
@media (max-width: 900px) { .station { flex-direction: column; } .station .panel { width: 100%; position: static; } }

/* QR print sheet */
.qr-sheet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 16px; }
.qr-card { border: 1px dashed #C9C1B5; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; page-break-inside: avoid; background: #fff; }
.qr-card .qr { width: 190px; height: 190px; }
.qr-card .qr svg { width: 100%; height: 100%; }
.qr-card .tn { font-size: 34px; font-weight: 800; }
.qr-small { width: 56px; height: 56px; display: inline-block; }
.qr-small svg { width: 100%; height: 100%; }
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .qr-sheet { padding: 0; }
}

/* ---- Guest food ordering (phone first; tablet layout from 900px) ------------------------- */
.order-entry { display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: var(--dark); color: #fff; text-align: left; }
.oe-pics { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 120px; gap: 3px; height: 120px; overflow: hidden; }
.oe-pics img { width: 100%; height: 100%; min-height: 0; min-width: 0; object-fit: cover; display: block; }
.oe-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 16px; }
.oe-body strong { font-size: 19px; font-weight: 800; }
.oe-sub { font-size: 13px; color: #D9D3CA; }
.oe-go { min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--accent); font-weight: 800; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

.food { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.food-rail { position: sticky; top: 0; z-index: 15; background: var(--ground); padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
.food-top { display: flex; align-items: center; gap: 10px; }
.food-title { font-size: 26px; font-weight: 800; line-height: 1.1; }
.food-search { display: none; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px; background: var(--surface); border: 1px solid #D6CFC4; border-radius: 12px; color: var(--muted); }
.food-search.open { display: flex; }
.food-search input { border: 0; outline: 0; background: transparent; font-size: 16px; width: 100%; min-height: 44px; color: var(--ink); }
.food-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.food-tabs::-webkit-scrollbar { display: none; }
.food-tabs button { flex: none; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; white-space: nowrap; }
.food-tabs button.on { background: var(--dark); border-color: var(--dark); color: #fff; font-weight: 800; }
.food-rail-foot { display: none; }
.food-main { flex: 1; padding: 14px 16px 110px; display: flex; flex-direction: column; gap: 12px; }
.food-h { font-size: 15px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.food-cart { display: none; }
.food-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--ground); border-top: 1px solid var(--line); }
.food-bar-btn { max-width: 528px; margin: 0 auto; display: flex; gap: 12px; }
.food-bar-count { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }

.dishes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dish { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px; display: flex; gap: 12px; }
.dish.in { border: 2px solid var(--accent); padding: 9px; }
.dish.off { background: #EFEBE5; }
.dish.off .dish-photo img { filter: grayscale(1); opacity: .6; }
.dish-photo { position: relative; flex: none; width: 104px; height: 104px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #E9E3D8; display: flex; align-items: center; justify-content: center; color: #A39C91; }
.dish-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dish-expand { position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(28,26,23,.72); color: #fff; display: flex; align-items: center; justify-content: center; }
.dish-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dish-name { padding: 0; border: 0; background: none; text-align: left; font-size: 16px; font-weight: 800; color: var(--ink); min-height: 24px; }
.dish-name:disabled { color: var(--muted); cursor: default; }
.dish-desc { font-size: 13px; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish-foot { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.dish-foot strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.dish-add { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tag-chip { font-size: 11px; font-weight: 800; color: var(--ink-2); border: 1px solid #C9C1B5; padding: 1px 7px; border-radius: 999px; }
.tag-chip.pop { border: 0; background: var(--amber-tint); color: var(--amber-ink); }
.mini-stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--accent-tint); border-radius: 999px; padding: 3px; flex: none; }
.mini-stepper button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--surface); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; }
.mini-stepper button.on { background: var(--accent); color: #fff; }
.mini-stepper output { min-width: 26px; text-align: center; font-weight: 800; color: var(--accent-ink); }

.cart-h { font-size: 22px; font-weight: 800; }
.cart-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cart-line { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.cart-line img, .cart-ph { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: #E9E3D8; color: #A39C91; display: flex; align-items: center; justify-content: center; }
.cart-page .cart-lines { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; }
.cart-page .cart-line:last-child { border-bottom: 0; }
.allergy-check { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.allergy-check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin: 0; }
.cart-total { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 15px; }
.cart-submit { display: flex; gap: 12px; }

/* Dish sheet */
.sheet.sheet-dish { padding: 0; gap: 0; }
.sheet-dish .grabber { margin: 10px auto 0; }
.dish-sheet { display: flex; flex-direction: column; }
.ds-photo { position: relative; padding: 10px 16px 0; }
.ds-img { display: block; width: 100%; height: 220px; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #E9E3D8; color: #A39C91; display: flex; align-items: center; justify-content: center; }
.ds-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ds-full { position: absolute; right: 26px; bottom: 10px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(28,26,23,.82); color: #fff; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.ds-body { padding: 16px 20px 8px; display: flex; flex-direction: column; gap: 16px; }
.ds-price { font-size: 19px; color: var(--accent-ink); }
.mod-group { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; border-radius: 14px; }
.mod-group legend { width: 100%; padding: 0; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.mod-group.missing { outline: 2px solid var(--red); outline-offset: 6px; }
.req-badge, .opt-badge { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.req-badge { background: var(--amber-tint); color: var(--amber-ink); }
.opt-badge { background: var(--ground); color: var(--muted); }
.mod-options { display: grid; grid-template-columns: 1fr; gap: 8px; }
.mod-options.single { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mod-opt { min-height: 50px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; cursor: pointer; background: var(--surface); }
.mod-opt input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; flex: none; }
.mod-opt:has(input:checked) { border: 2px solid var(--accent); background: var(--accent-tint); padding: 0 11px; font-weight: 800; }
.mod-opt.off { opacity: .55; cursor: not-allowed; }
.mod-name { flex: 1; min-width: 0; }
.mod-price { color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.ds-foot { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; }
.ds-foot .btn { display: flex; gap: 12px; padding: 0 16px; font-size: 16px; }
.ds-foot .btn > span:last-child, .cart-submit > span:last-child, .food-bar-btn > span:last-child { margin-left: 12px; font-variant-numeric: tabular-nums; }

/* Order tracker */
.tracker { list-style: none; margin: 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; }
.tracker li { position: relative; display: flex; gap: 12px; padding-bottom: 18px; color: var(--muted); }
.tracker li:last-child { padding-bottom: 0; }
.tracker li:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 28px; bottom: 2px; width: 2px; background: var(--line); }
.tracker li.done::before { background: var(--accent); }
.tracker .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #C9C1B5; background: var(--surface); flex: none; display: flex; align-items: center; justify-content: center; color: #fff; }
.tracker li.done .dot { background: var(--accent); border-color: var(--accent); }
.tracker li.now .dot { border: 3px solid var(--accent); }
.tracker li.done, .tracker li.now { color: var(--ink); }
.tracker strong { font-size: 15px; }

/* Full-screen photo viewer */
.zoom { position: fixed; inset: 0; z-index: 130; background: #0F0E0D; color: #fff; display: flex; flex-direction: column; animation: fade .15s ease-out; }
.zoom-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.zoom.zoomed .zoom-stage { cursor: grab; }
.zoom-img { width: 100%; height: 100%; object-fit: contain; transform-origin: center center; user-select: none; -webkit-user-select: none; will-change: transform; }
.zoom-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) 16px 0; pointer-events: none; }
.zoom-top > * { pointer-events: auto; }
.zoom-btn { width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(60,56,50,.85); color: #fff; display: flex; align-items: center; justify-content: center; }
.zoom-hint { background: rgba(15,14,13,.75); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.zoom-ctrl { position: relative; z-index: 1; margin: auto 16px 12px auto; display: flex; align-items: center; gap: 2px; background: rgba(15,14,13,.82); border-radius: 16px; padding: 4px; }
.zoom-ctrl button { width: 48px; height: 48px; border: 0; border-radius: 12px; background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; }
.zoom-ctrl button.fit { width: auto; padding: 0 14px; font-weight: 800; background: rgba(255,255,255,.12); }
.zoom-ctrl output { min-width: 52px; text-align: center; font-size: 13px; font-weight: 800; }
.zoom-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); background: rgba(28,26,23,.94); border-radius: 22px 22px 0 0; }
.zoom-desc { font-size: 14px; color: #D9D3CA; }
@media (max-width: 520px) { .zoom-foot { flex-direction: column; align-items: stretch; } .zoom-foot .btn { width: 100%; } .zoom-hint { display: none; } }

/* Tablet at the table: categories · dishes · order */
@media (min-width: 900px) {
  .shell.shell-food { max-width: none; }
  .food { display: grid; grid-template-columns: 220px minmax(0, 1fr) 360px; height: 100vh; height: 100dvh; min-height: 0; }
  .food-rail { position: static; background: var(--surface); border-bottom: 0; border-right: 1px solid var(--line); padding: 20px 14px 18px; overflow-y: auto; }
  .food-search-btn { display: none; }
  .food-search { display: flex; }
  .food-tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 4px; }
  .food-tabs button { min-height: 52px; border: 0; border-radius: 14px; background: transparent; text-align: left; font-size: 16px; }
  .food-rail-foot { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 12px; }
  .food-main { overflow-y: auto; padding: 22px 20px 30px; }
  .food-h { font-size: 26px; color: var(--ink); text-transform: none; letter-spacing: -0.01em; }
  .dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
  .dish { flex-direction: column; padding: 0; overflow: hidden; gap: 0; }
  .dish.in { padding: 0; }
  .dish-photo { width: 100%; height: 150px; border-radius: 0; }
  .dish-expand { width: 40px; height: 40px; top: 8px; right: 8px; bottom: auto; }
  .dish-body { padding: 10px 12px 12px; }
  .food-cart { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border-left: 1px solid var(--line); padding: 20px 18px; overflow-y: auto; }
  .food-cart .allergy-check, .food-cart .cart-total { background: var(--ground); }
  .food-bar { display: none; }
  .sheet.sheet-dish { max-width: 1000px; width: 92vw; height: 86vh; max-height: 780px; overflow: hidden; border-radius: 26px; }
  .sheet-dish .grabber { display: none; }
  .dish-sheet { display: grid; grid-template-columns: 44% minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; height: 100%; }
  .ds-photo { grid-row: 1 / span 2; padding: 0; }
  .ds-img { height: 100%; border-radius: 0; }
  .ds-full { left: 16px; right: auto; bottom: 16px; min-height: 44px; font-size: 14px; }
  .ds-body { overflow-y: auto; padding: 22px 24px 12px; }
  .ds-foot { position: static; padding: 14px 24px 18px; }
  .mod-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Staff: food order review */
.order-lines { list-style: none; margin: 0; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.order-lines li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.order-lines li:last-child { border-bottom: 0; }
.ol-qty { min-width: 36px; height: 32px; border-radius: 8px; background: var(--dark); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* ---- Guest tablets ---------------------------------------------------------------------------- */
.tablet-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--ground); border-radius: 12px; }
.tablet-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--surface); color: var(--ink-2); display: flex; align-items: center; justify-content: center; flex: none; }
.tablet-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--dark); color: #fff; }
.tablet-staff { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 700; }
.tab-home { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 20px; }
.tab-card { width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 36px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; box-shadow: var(--shadow); }
.tab-card h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.tab-badge { width: 84px; height: 84px; border-radius: 50%; background: var(--ground); color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.tab-badge.on { background: var(--accent); color: #fff; }
.tab-card.wide { max-width: 900px; align-items: center; }
.tab-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.tab-table { min-height: 92px; border: 0; border-radius: 16px; background: var(--st-tile); color: var(--st-fg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; }
.tab-table strong { font-size: 24px; font-weight: 800; color: var(--ink); }
.tab-table span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 4px; }
.tab-table.st-Available { border: 1px dashed #A7D7B5; }
.tab-table.has { box-shadow: inset 0 0 0 3px var(--dark); }
.tab-table .srv, .tab-table .srv span { font-size: 12px; text-transform: none; letter-spacing: 0; }
.tab-table .srv .srv-dot { font-size: 10px; }

/* Table sheet: status drop-down (same look as the status rows) */
.st-drop > summary { list-style: none; min-height: 52px; padding: 0 12px; border-radius: 12px; border: 2px solid var(--accent); background: var(--accent-tint); font-weight: 800; cursor: pointer; gap: 10px; }
.st-drop > summary::-webkit-details-marker { display: none; }
.st-drop > summary:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.st-chev { display: inline-flex; color: var(--accent-ink); transform: rotate(-90deg); transition: transform .15s; }
.st-drop[open] > summary .st-chev { transform: rotate(90deg); }
.st-drop[open] > summary { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
.st-options { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--ground); }

/* Table sheet: this visit */
.visit { display: flex; flex-direction: column; gap: 10px; background: var(--ground); border-radius: 16px; padding: 14px; }
.visit-total { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.visit-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.visit-steps li { display: grid; grid-template-columns: 140px minmax(0, 1fr) 64px; grid-template-areas: "chip bar min" "chip by by"; align-items: center; column-gap: 10px; row-gap: 2px; }
.visit-steps .st-chip { grid-area: chip; justify-self: start; }
.vs-bar { grid-area: bar; height: 8px; background: #E4DED5; border-radius: 999px; overflow: hidden; }
.vs-bar span { display: block; height: 100%; background: #A39C91; border-radius: 999px; }
.visit-steps li.now .vs-bar span { background: var(--accent); }
.vs-min { grid-area: min; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
.vs-by { grid-area: by; font-size: 12px; color: var(--muted); }
.visit-order { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.visit-order.off { opacity: .6; }
.visit-order ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.vo-time { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.vo-time .i { flex: none; margin-top: 2px; }
.visit-order .btn { align-self: flex-start; }

/* Guest home (simple flow) */
.guest-server .srv-dot.wait { background: #E4DED5; color: var(--muted); }
.g-status { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 16px; padding: 12px 12px 12px 14px; color: var(--ink); }
.g-status strong { font-size: 15px; }
.g-status small, .g-open small, .g-order small { font-size: 13px; color: var(--muted); font-weight: 600; }
.g-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.g-ic.sm { width: 32px; height: 32px; border-radius: 10px; }
.g-ic.lg { width: 48px; height: 48px; }
.g-more { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--muted); flex: none; }
.g-status[aria-expanded="true"] .g-more .i { transform: rotate(90deg); }
.g-open { list-style: none; margin: -6px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.g-open li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid #EFEAE2; }
.g-open li:first-child { border-top: 0; }
.g-open li strong { font-size: 15px; }
.g-pill { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-ink); white-space: nowrap; flex: none; }
.g-pill.amber { background: var(--amber-tint); color: var(--amber-ink); }
.g-pill.gray { background: #ECEAE6; color: var(--muted); }
.g-pill.done { background: #ECEAE6; color: #3B372F; }
.g-orders { display: flex; flex-direction: column; gap: 8px; }
.g-order { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; color: var(--ink); }
.g-order strong { font-size: 15px; }
.g-order.served { background: transparent; }
.g-served-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; font-size: 15px; font-weight: 800; color: var(--ink); text-align: left; }
.g-served-toggle .i { color: var(--muted); }
.g-served-toggle .muted { font-size: 13px; font-weight: 700; }
.g-served-toggle .g-chev { display: inline-flex; transition: transform .15s; }
.g-served-toggle[aria-expanded="true"] .g-chev { transform: rotate(90deg); }
.g-served-list { display: flex; flex-direction: column; gap: 8px; }
.g-items { font-size: 15px; font-weight: 600; line-height: 1.4; }
.g-items b { color: var(--muted); padding: 0 6px; font-weight: 800; }
.g-big { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-bigbtn { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 104px; padding: 14px 16px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; color: var(--ink); }
.g-bigbtn .i { color: var(--accent); }
.g-bigbtn strong { font-size: 18px; font-weight: 800; }
.g-bigbtn small { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: -2px; }
.g-bigbtn:disabled { opacity: 1; background: var(--accent-tint); border-color: var(--accent-tint); }
.g-small { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.g-small button { min-height: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 13px; font-weight: 800; color: var(--ink); text-align: center; }
.g-small .i { color: var(--accent); }
.g-rate { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-align: center; }
.g-rate strong { font-size: 18px; }
.g-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.g-thumbs button { min-height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--ground); border: 1px solid var(--line); border-radius: 14px; font-size: 13px; font-weight: 800; color: var(--muted); }
.g-thumbs button span { font-size: 26px; }
.g-more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g-more-grid button { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-weight: 700; font-size: 14px; color: var(--ink); text-align: left; }
.g-more-grid .ic { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; }
.g-choice { min-height: 56px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 16px; font-weight: 800; text-align: left; padding: 0 16px; color: var(--ink); }
.g-choice.on { border: 2px solid var(--accent); background: var(--accent-tint); padding: 0 15px; }
.g-allergy { display: flex; flex-direction: column; gap: 10px; background: var(--amber-tint); border: 1px solid #F0D3A1; border-radius: 16px; padding: 14px; }
.g-allergy strong { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.g-allergy.need { border: 2px solid var(--red); padding: 13px; }
.g-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g-yn button { min-height: 50px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 16px; font-weight: 800; color: var(--ink); }
.g-yn button.on { border: 2px solid var(--accent); background: var(--accent-tint); color: var(--accent-ink); }
.g-home .g-a-status:empty { display: none; }
.g-home > div > div { display: flex; flex-direction: column; gap: 10px; }
/* Phone: the two column wrappers disappear and the blocks line up in this order */
.g-col-l, .g-col-r { display: contents; }
.g-a-status { order: 1; } .g-a-rate { order: 2; } .g-a-food { order: 3; } .g-a-orders { order: 4; } .g-a-actions { order: 5; }
/* Tablet (landscape): food and orders on the left, status and buttons on the right */
@media (min-width: 900px) {
  .shell.shell-home { max-width: 1180px; }
  .g-home { display: grid !important; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .g-col-l, .g-col-r { display: flex; flex-direction: column; gap: 16px; }
  .g-a-food .oe-pics { height: 300px; grid-template-rows: 300px; }
  .g-big { grid-template-columns: 1fr; }
  .g-big .g-bigbtn { min-height: 120px; }
  .g-bigbtn strong { font-size: 22px; }
}

/* Guests: "get updates on this phone" */
.push-offer { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 16px; }
.push-offer strong { font-size: 15px; }
.po-ic { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.push-offer .icon-btn { width: 36px; height: 36px; min-height: 36px; border: 0; background: transparent; flex: none; }

/* Waiting list: guest page */
.wait-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.wait-card .pos { font-size: 72px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.wait-card.ready { background: var(--accent); border-color: var(--accent); color: #fff; padding: 34px 20px; }
.wait-card.ready .big { font-size: 30px; font-weight: 800; }
.wait-card.ready > .i { width: 44px; height: 44px; }
.wait-card.ready .gbadge { background: #fff; color: var(--accent-ink); }
.wait-table { background: #fff; color: var(--accent-ink); border-radius: 18px; padding: 8px 28px; font-size: 44px; font-weight: 800; letter-spacing: -0.02em; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 14px; line-height: 1.4; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }

/* Waiting list: manager screen */
.wl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wl-row { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.wl-row.told { border: 2px solid var(--accent); padding: 11px 13px; background: var(--accent-tint); }
.wl-row.failed { border-color: var(--red); background: var(--red-tint); }
.wl-pos { width: 40px; height: 40px; border-radius: 50%; background: var(--dark); color: #fff; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; flex: none; }
.wl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wl-name { font-size: 18px; font-weight: 800; }
.wl-phone { font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.wl-phone:hover { text-decoration: underline; }
.wl-status { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.wl-status.told { color: var(--accent-ink); }
.wl-status.bad { color: var(--red); }
.wl-wait { display: flex; flex-direction: column; align-items: center; min-width: 52px; flex: none; }
.wl-wait strong { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.wl-wait span { font-size: 12px; color: var(--muted); }
.wl-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.wl-done { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.wl-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.wl-table { min-height: 76px; border: 1px dashed #C9C1B5; border-radius: 14px; background: var(--ground); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px; color: var(--ink); }
.wl-table strong { font-size: 20px; font-weight: 800; }
.wl-table span { font-size: 12px; color: var(--muted); }
.wl-table.fits { border: 2px solid var(--accent); background: var(--accent-tint); }
@media (max-width: 720px) {
  .wl-row { flex-wrap: wrap; }
  .wl-main { flex-basis: calc(100% - 130px); }
  .wl-actions { width: 100%; }
  .wl-actions .btn { flex: 1; }
}
.wait-sign { width: 420px; padding: 30px; gap: 12px; }
.wait-sign .qr { width: 260px; height: 260px; }

/* Admin: food menu */
.setting-switch { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 0; border-left: 4px solid #C9C1B5; }
.setting-switch.on { border-left-color: var(--accent); }
.setting-switch strong { font-size: 16px; }
.ss-ic { width: 44px; height: 44px; border-radius: 12px; background: #ECEAE6; color: #5E5850; display: flex; align-items: center; justify-content: center; flex: none; }
.setting-switch.on .ss-ic { background: var(--accent-tint); color: var(--accent); }
@media (max-width: 560px) { .setting-switch { flex-wrap: wrap; } .setting-switch .btn { width: 100%; } }
.food-thumb { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; background: #E9E3D8; color: #A39C91; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.food-thumb.lg { width: 200px; height: 150px; border-radius: 14px; }
.cat-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) 110px 100px 100px; gap: 10px; align-items: center; padding: 8px 14px; margin: 0; }
@media (max-width: 720px) { .cat-form { grid-template-columns: 1fr 1fr; } }
.group-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.group-card legend { padding: 0 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Full-width admin pages (Settings, Food menu) */
.page.page-full { max-width: none; }
.page-full .form-card { max-width: none; }

/* Testing mode */
.testing-bar { background: #FDF0D5; color: #6B4A00; border-bottom: 1px solid #F0D9A6; padding: 8px 24px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.testing-bar a { color: #6B4A00; font-weight: 800; margin-left: auto; }
.testing-bar code, .testing-list code { background: rgba(0, 0, 0, .06); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.testing-card { border-left: 4px solid #C9C1B5; margin: 0; }
.testing-card.on { border-left-color: #D97706; background: #FFFBF2; }
.testing-check { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.testing-check input { width: 24px; height: 24px; accent-color: #D97706; flex: none; }
.testing-check .grow { display: flex; flex-direction: column; gap: 2px; }
.testing-check strong { font-size: 17px; }
.testing-check .muted { font-size: 14px; }
.testing-list { margin: 0; padding-left: 58px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .testing-list { padding-left: 20px; } }

/* Testing mode: PIN typed as text on the unlock page */
.pin-text { max-width: 290px; width: 100%; margin-top: 18px; text-align: center; font-size: 22px; letter-spacing: .1em; }

/* The hidden attribute always hides, even on elements styled as grid/flex. */
[hidden] { display: none !important; }
