/*
 * Trishan POS — Charcoal & Ember, in two lights.
 *
 * Dark is the service floor after sundown: char canvas, heat for accents.
 * Light is the same fire at noon: warm paper, never white or grey.
 * The theme is chosen by data-theme on <html>, set before first paint.
 */

/* ------------------------------------------------------------------ tokens */
:root {
  --background: 20 16% 5%;
  --surface-2: 20 12% 13%;
  --card: 20 13% 9%;
  --foreground: 30 30% 97%;
  --muted-foreground: 26 14% 68%;
  --faint: 26 12% 56%;
  --accent: 20 12% 16%;
  --border: 20 11% 19%;
  --border-strong: 20 10% 28%;
  --primary: 6 92% 46%;
  --primary-foreground: 0 0% 100%;
  --ember: 10 90% 58%;
  --amber: 34 96% 56%;
  --destructive: 0 80% 45%;
  --danger-text: 4 88% 68%;
  --veg: 130 52% 52%;
  --nonveg: 4 88% 68%;
  --radius: 0.75rem;
  --canvas-wash:
    radial-gradient(74rem 42rem at 50% -12rem, hsl(10 90% 48% / 0.10), transparent 62%),
    radial-gradient(52rem 30rem at 92% 108%, hsl(34 96% 50% / 0.05), transparent 68%);
  --shadow-ember: 0 10px 30px -8px hsl(6 92% 30% / 0.55), 0 2px 8px -2px hsl(20 40% 2% / 0.7);
  --shadow-lift: 0 12px 28px -12px hsl(20 40% 2% / 0.85), 0 2px 6px -2px hsl(20 40% 2% / 0.6);
  --scrim: 20 40% 2% / 0.78;
  --dock: calc(4rem + env(safe-area-inset-bottom, 0px));
  color-scheme: dark;
  caret-color: hsl(var(--ember));
  scrollbar-color: hsl(var(--border-strong)) transparent;
  scrollbar-width: thin;
}

:root[data-theme='light'] {
  --background: 30 38% 96%;
  --surface-2: 28 26% 91%;
  --card: 32 60% 99%;
  --foreground: 20 24% 12%;
  --muted-foreground: 22 14% 38%;
  --faint: 24 13% 40%;
  --accent: 28 24% 87%;
  --border: 28 20% 86%;
  --border-strong: 26 18% 62%;
  --primary: 6 92% 44%;
  --ember: 6 88% 41%;
  --amber: 30 94% 31%;
  --destructive: 0 80% 43%;
  --danger-text: 4 80% 41%;
  --veg: 130 60% 26%;
  --nonveg: 4 80% 43%;
  --canvas-wash:
    radial-gradient(74rem 42rem at 50% -14rem, hsl(24 94% 56% / 0.13), transparent 64%),
    radial-gradient(52rem 30rem at 92% 108%, hsl(34 96% 52% / 0.10), transparent 70%);
  --shadow-ember: 0 10px 30px -10px hsl(6 80% 38% / 0.30), 0 2px 8px -3px hsl(20 30% 24% / 0.16);
  --shadow-lift: 0 12px 28px -14px hsl(20 30% 22% / 0.26), 0 2px 6px -3px hsl(20 30% 22% / 0.14);
  --scrim: 22 28% 26% / 0.42;
  color-scheme: light;
}

@media (min-width: 768px) { :root { --dock: 0px; } }

/* -------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; border: 0 solid hsl(var(--border)); }
html {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body { width: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100dvh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter Tight', ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  font-feature-settings: 'ss01', 'cv05';
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-x: none;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--canvas-wash);
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; text-underline-offset: 0.2em; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; cursor: pointer; padding: 0; }
button, [role='button'], [role='tab'] { -webkit-user-select: none; user-select: none; }
button:disabled { cursor: default; }
::selection { background-color: hsl(var(--primary) / 0.9); color: #fff; }
:focus-visible { outline: 2px solid hsl(var(--ember)); outline-offset: 2px; border-radius: 4px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: hsl(var(--border-strong)); border-radius: 99px; border: 3px solid hsl(var(--background)); }
[hidden] { display: none !important; }

svg.i { width: 1rem; height: 1rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 0.875rem !important; height: 0.875rem !important; }
.i-xs { width: 0.75rem !important; height: 0.75rem !important; }
.i-lg { width: 1.25rem !important; height: 1.25rem !important; }
.i-xl { width: 2.25rem !important; height: 2.25rem !important; }
.i-2xl { width: 2.5rem !important; height: 2.5rem !important; }
.i-bold { stroke-width: 2.5; }
.i-heavy { stroke-width: 3; }

/* --------------------------------------------------------------- utilities */
.font-display { font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif; }
.display-xl { font-family: 'Bricolage Grotesque', sans-serif; font-size: 2.75rem; line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.display-lg { font-family: 'Bricolage Grotesque', sans-serif; font-size: 2rem; line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; }
.display-md { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.5rem; line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; }
.display-sm { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.125rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.tabular { font-variant-numeric: tabular-nums; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.muted { color: hsl(var(--muted-foreground)); }
.faint { color: hsl(var(--faint)); }
.fg { color: hsl(var(--foreground)); }
.ember { color: hsl(var(--ember)); }
.amber { color: hsl(var(--amber)); }
.veg { color: hsl(var(--veg)); }
.danger { color: hsl(var(--danger-text)); }
.destructive { color: hsl(var(--destructive)); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.break-words { overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.strike { text-decoration: line-through; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.select-all { -webkit-user-select: all; user-select: all; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1 1 0%; }
.min-w-0 { min-width: 0; }
.shrink-0 { flex-shrink: 0; }
.ml-auto { margin-left: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.gap-1 { gap: 0.25rem; } .gap-1h { gap: 0.375rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; }
.mt-0h { margin-top: 0.125rem; } .mt-1 { margin-top: 0.25rem; } .mt-1h { margin-top: 0.375rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; } .mt-5 { margin-top: 1.25rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; }
.pt-1 { padding-top: 0.25rem; } .pt-3 { padding-top: 0.75rem; } .pt-4 { padding-top: 1rem; } .pt-6 { padding-top: 1.5rem; } .pt-7 { padding-top: 1.75rem; } .pt-8 { padding-top: 2rem; } .pt-9 { padding-top: 2.25rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; } .py-20 { padding-top: 5rem; padding-bottom: 5rem; } .py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.stack-1 > * + * { margin-top: 0.25rem; }
.stack-1h > * + * { margin-top: 0.375rem; }
.stack-2 > * + * { margin-top: 0.5rem; }
.stack-3 > * + * { margin-top: 0.75rem; }
.stack-4 > * + * { margin-top: 1rem; }
.stack-5 > * + * { margin-top: 1.25rem; }
.stack-6 > * + * { margin-top: 1.5rem; }
.grid { display: grid; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.col-span-2 { grid-column: span 2 / span 2; }
.sm-grid-2 { display: grid; gap: 0.75rem; }
@media (min-width: 400px) { .xs-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; } }
.xs-grid-2 { display: grid; gap: 0.75rem; }
@media (min-width: 640px) {
  .sm-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-only-hide { display: none !important; }
}
@media (max-width: 639px) { .sm-show { display: none !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 640px) { .sm-not-sr { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; } }

.pb-safe { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem); }
.pt-safe { padding-top: env(safe-area-inset-top, 0px); }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.pressable { transition: transform 120ms cubic-bezier(0.16, 1, 0.3, 1); }
.pressable:active { transform: scale(0.97); }
.shadow-ember { box-shadow: var(--shadow-ember); }
.shadow-lift { box-shadow: var(--shadow-lift); }

.rule-label {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em;
  color: hsl(var(--amber));
}
.rule-label::after { content: ''; height: 1px; flex: 1; background: linear-gradient(to right, hsl(var(--border-strong)), transparent); }
.eyebrow { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: hsl(var(--faint)); }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }
@keyframes ember-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.pulse { animation: ember-pulse 2s ease-in-out infinite; }
.dot { display: inline-block; width: 0.375rem; height: 0.375rem; border-radius: 99px; background: hsl(var(--veg)); flex-shrink: 0; }
.dot.amber-bg { background: hsl(var(--amber)); }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  white-space: nowrap; border-radius: 0.5rem; font-weight: 600;
  height: 2.75rem; padding: 0 1rem; font-size: 0.875rem;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); box-shadow: var(--shadow-ember);
  transition: background-color 150ms, box-shadow 150ms, transform 150ms, color 150ms, border-color 150ms;
  border: 1px solid transparent;
}
.btn:hover { background: hsl(var(--ember)); }
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn.disabled { pointer-events: none; opacity: 0.45; }
.btn-destructive { background: hsl(var(--destructive)); color: #fff; box-shadow: var(--shadow-lift); }
.btn-destructive:hover { background: hsl(var(--destructive)); filter: brightness(1.1); }
.btn-outline { background: transparent; color: hsl(var(--foreground)); border-color: hsl(var(--border-strong)); box-shadow: none; }
.btn-outline:hover { background: transparent; border-color: hsl(var(--ember)); color: hsl(var(--ember)); }
.btn-secondary { background: hsl(var(--surface-2)); color: hsl(var(--foreground)); box-shadow: none; }
.btn-secondary:hover { background: hsl(var(--accent)); }
.btn-ghost { background: transparent; color: hsl(var(--muted-foreground)); box-shadow: none; }
.btn-ghost:hover { background: hsl(var(--surface-2)); color: hsl(var(--foreground)); }
.btn-ghost.danger, .btn-ghost.destructive { color: hsl(var(--destructive)); }
.btn-sm { height: 2.5rem; padding: 0 0.75rem; font-size: 0.8rem; }
.btn-lg { height: 3rem; border-radius: 0.75rem; padding: 0 1.75rem; font-size: 1rem; }
.btn-xl { height: 3.125rem; border-radius: 0.75rem; font-size: 1rem; }
.btn-icon { width: 2.75rem; height: 2.75rem; padding: 0; }
.btn-icon-sm { width: 2.5rem; height: 2.5rem; padding: 0; }
.btn-block { width: 100%; }
/* No button is taller than 50px — except the POS tiles, which are big touch targets on purpose. */
.btn:not(.btn-tile) { max-height: 3.125rem; }
.btn-tile { height: 5rem; flex-direction: column; gap: 0.375rem; }
.btn-tile svg.i { width: 1.25rem; height: 1.25rem; }
@media (min-width: 640px) {
  .btn { height: 2.5rem; }
  .btn-sm { height: 2rem; border-radius: 0.375rem; font-size: 0.75rem; }
  .btn-lg { height: 3rem; }
  .btn-xl { height: 3.125rem; }
  .btn-icon { width: 2.5rem; height: 2.5rem; }
  .btn-icon-sm { width: 2rem; height: 2rem; }
  /* No button is taller than 50px — except the POS tiles, which are big touch targets on purpose. */
.btn:not(.btn-tile) { max-height: 3.125rem; }
.btn-tile { height: 5rem; }
}
.btn.armed { background: hsl(var(--destructive)); color: #fff; border-color: transparent; width: auto; padding: 0 0.75rem; }
.linkish { color: hsl(var(--ember)); font-weight: 600; }
.linkish:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ fields */
.field > label, .label { font-size: 0.875rem; font-weight: 600; line-height: 1.25; }
.field > label { display: block; }
.field > * + * { margin-top: 0.375rem; }
.input, .textarea, .select {
  display: flex; width: 100%; height: 2.75rem; border-radius: 0.5rem;
  border: 1px solid hsl(var(--border)); background: hsl(var(--background));
  padding: 0.5rem 0.75rem; font-size: 1rem; transition: border-color 150ms;
  outline: none;
}
.textarea { height: auto; min-height: 5rem; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 2.25rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; }
.select option { background: hsl(var(--card)); color: hsl(var(--foreground)); }
.input::placeholder, .textarea::placeholder { color: hsl(var(--faint)); }
.input:hover, .textarea:hover, .select:hover { border-color: hsl(var(--border-strong)); }
.input:focus, .textarea:focus, .select:focus { border-color: hsl(var(--ember)); }
.input[aria-invalid='true'], .textarea[aria-invalid='true'], .select[aria-invalid='true'] { border-color: hsl(var(--destructive)); }
.input:disabled, .select:disabled { opacity: 0.45; cursor: not-allowed; }
.input[type='color'] { padding: 0.25rem; width: 4rem; cursor: pointer; }
@media (min-width: 768px) { .input, .textarea, .select { font-size: 0.875rem; } }
@media (min-width: 640px) { .input, .select { height: 2.5rem; } }
.field-error { font-size: 0.75rem; color: hsl(var(--destructive)); }
.hint { font-size: 0.75rem; color: hsl(var(--faint)); }
.input-wrap { position: relative; }
.input-wrap > svg.i { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: hsl(var(--faint)); pointer-events: none; }
.input-wrap > .input.pl { padding-left: 2.25rem; }
.input-wrap > .eye { position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); width: 2.25rem; height: 2.25rem; display: grid; place-items: center; color: hsl(var(--faint)); border-radius: 0.375rem; }
.input-wrap > .eye:hover { color: hsl(var(--foreground)); }
.input-wrap > .input.pr { padding-right: 2.75rem; }

/* Switch: a checkbox drawn as a track and thumb. */
.switch { position: relative; display: inline-flex; flex-shrink: 0; width: 2.75rem; height: 1.5rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: hsl(var(--border-strong)); transition: background-color 200ms; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 1.25rem; height: 1.25rem; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.3); transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1); }
.switch input:checked + span { background: hsl(var(--primary)); }
.switch input:checked + span::after { transform: translateX(1.25rem); }
.switch input:focus-visible + span { outline: 2px solid hsl(var(--ember)); outline-offset: 2px; }
.switch input:disabled + span { opacity: 0.45; }

.checkbox { appearance: none; -webkit-appearance: none; width: 1.125rem; height: 1.125rem; flex-shrink: 0; margin: 0;
  border: 1px solid hsl(var(--border-strong)); border-radius: 0.3rem; background: hsl(var(--background)); cursor: pointer; display: grid; place-items: center; }
.checkbox:checked { background: hsl(var(--primary)); border-color: hsl(var(--primary)); }
.checkbox:checked::after { content: ''; width: 0.3rem; height: 0.55rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.checkbox:disabled { opacity: 0.5; cursor: not-allowed; }

.toggle-row { display: flex; min-height: 2.75rem; align-items: center; justify-content: space-between; gap: 0.75rem; cursor: pointer; }
.toggle-row .t { display: block; font-size: 0.875rem; font-weight: 500; }
.toggle-row .h { display: block; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

.boxed { border: 1px solid hsl(var(--border)); border-radius: 0.75rem; padding: 0.75rem; }

/* ------------------------------------------------------------ cards, badges */
.card { border: 1px solid hsl(var(--border)); border-radius: 0.75rem; background: hsl(var(--card)); color: hsl(var(--foreground)); }
.card.dim { opacity: 0.6; }
.card-header { display: flex; flex-direction: column; gap: 0.375rem; padding: 1.25rem; }
.card-header.tight { padding-bottom: 0.75rem; }
.card-title { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.125rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.card-desc { font-size: 0.875rem; line-height: 1.625; color: hsl(var(--muted-foreground)); }
.card-content { padding: 0 1.25rem 1.25rem; }
.card-pad { padding: 1rem; }
@media (min-width: 640px) { .card-pad { padding: 1.25rem; } }

.badge { display: inline-flex; align-items: center; gap: 0.25rem; border-radius: 99px; padding: 0.125rem 0.625rem;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.badge-secondary { background: hsl(var(--surface-2)); color: hsl(var(--muted-foreground)); }
.badge-destructive { background: hsl(var(--destructive)); color: #fff; }
.badge-outline { background: transparent; border: 1px solid hsl(var(--border-strong)); color: hsl(var(--muted-foreground)); }
.badge-amber { background: hsl(var(--amber)); color: hsl(var(--background)); }
.badge-lg { padding: 0.375rem 0.625rem; }

.chip { display: inline-flex; align-items: center; gap: 0.375rem; white-space: nowrap; border-radius: 99px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; padding: 0.25rem 0.625rem; font-size: 0.7rem; }
.chip.sm { padding: 0.125rem 0.5rem; font-size: 0.65rem; }
.chip i { width: 0.375rem; height: 0.375rem; border-radius: 99px; display: inline-block; }
.pill { border-radius: 0.375rem; background: hsl(var(--surface-2)); padding: 0.125rem 0.5rem; font-size: 0.6875rem; font-weight: 600; }

.notice { border-radius: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.75rem; line-height: 1.625; }
.notice-amber { border: 1px solid hsl(var(--amber) / 0.4); background: hsl(var(--amber) / 0.08); }
.notice-soft-amber { background: hsl(var(--amber) / 0.08); color: hsl(var(--muted-foreground)); }
.notice-danger { border: 1px solid hsl(var(--destructive) / 0.4); background: hsl(var(--destructive) / 0.06); }
.notice-ember { border: 1px solid hsl(var(--ember) / 0.3); background: hsl(var(--ember) / 0.06); font-size: 0.875rem; border-radius: 0.75rem; padding: 0.75rem; }
.notice-veg { border: 1px solid hsl(var(--veg) / 0.35); background: hsl(var(--veg) / 0.08); }
.notice-muted { border: 1px solid hsl(var(--border)); background: hsl(var(--surface-2)); }

/* ------------------------------------------------------------- page chrome */
.topbar { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding-top: env(safe-area-inset-top, 0px); }
.topbar-inner { margin: 0 auto; display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 1rem; }
.w-3xl { max-width: 48rem; } .w-2xl { max-width: 42rem; } .w-md { max-width: 28rem; } .w-sm { max-width: 24rem; } .w-7xl { max-width: 80rem; }
.wrap { margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.logo { object-fit: contain; flex-shrink: 0; }
.logo-40 { width: 2.5rem; height: 2.5rem; }
.logo-36 { width: 2.25rem; height: 2.25rem; }
.logo-56 { width: 3.5rem; height: 3.5rem; }
.logo-64 { width: 4rem; height: 4rem; }
.logo-80 { width: 5rem; height: 5rem; }
/* The platform's logo over a sign-in form: a wordmark, so as wide as it likes. */
.demo-login { padding: 0.875rem 1rem; border: 1px dashed hsl(var(--border-strong)); border-radius: 0.75rem; background: hsl(var(--foreground) / 0.03); }
.demo-login > p:first-child { display: flex; align-items: center; gap: 0.375rem; }
.demo-login dl { margin: 0.625rem 0 0; display: grid; gap: 0.375rem; }
.demo-login dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: 0.875rem; }
.demo-login dt { color: hsl(var(--muted-foreground)); }
.demo-login dd { margin: 0; font-weight: 600; user-select: all; overflow-wrap: anywhere; text-align: right; }
.login-wordmark { width: auto; max-width: min(14rem, 70vw); height: 3.5rem; }
.icon-btn { position: relative; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex-shrink: 0;
  border-radius: 0.5rem; border: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground));
  transition: color 200ms, border-color 200ms; }
.icon-btn:hover { border-color: hsl(var(--border-strong)); color: hsl(var(--ember)); }
.icon-btn.off { color: hsl(var(--faint)); }
.theme-btn svg { position: absolute; transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), opacity 420ms; }
:root[data-theme='dark'] .theme-btn .sun, :root:not([data-theme]) .theme-btn .sun { transform: rotate(90deg) scale(0.5); opacity: 0; }
:root[data-theme='light'] .theme-btn .moon { transform: rotate(-90deg) scale(0.5); opacity: 0; }

.splash { display: flex; min-height: 100dvh; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 0 1.5rem; text-align: center; }
.page-header { display: flex; align-items: flex-start; gap: 0.75rem; }
.page-header h1 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.5rem; line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; }
@media (min-width: 640px) { .page-header h1 { font-size: 2rem; line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; } }
.page-header p { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.375; color: hsl(var(--muted-foreground)); }
.page-loader { display: flex; justify-content: center; padding: 5rem 0; color: hsl(var(--ember)); }
.page-loader svg.i { width: 1.5rem; height: 1.5rem; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; border: 1px dashed hsl(var(--border));
  border-radius: 0.75rem; padding: 3.5rem 1.5rem; text-align: center; }
.empty svg.i { width: 2.25rem; height: 2.25rem; color: hsl(var(--faint)); }
.empty .t { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.125rem; font-weight: 700; }
.empty .d { max-width: 20rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }

/* --------------------------------------------------------------- staff shell */
.staff-bar { height: 3.5rem; max-width: 80rem; }
@media (min-width: 768px) { .staff-bar { height: 4rem; } }
.staff-nav { display: none; flex: 1; align-items: center; gap: 0.25rem; }
.staff-nav a { position: relative; display: flex; flex-shrink: 0; align-items: center; gap: 0.375rem; border-radius: 0.5rem;
  padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 600; color: hsl(var(--muted-foreground)); transition: background-color 150ms, color 150ms; }
.staff-nav a:hover { background: hsl(var(--surface-2)); color: hsl(var(--foreground)); }
.staff-nav a.active { background: hsl(var(--ember) / 0.14); color: hsl(var(--ember)); }
.staff-nav a .lbl, .nav-parent .lbl { display: none; }
/* The groups in the bar (Reports, Marketing, Setup): a button that opens its links. */
.nav-group { position: relative; flex-shrink: 0; }
.nav-parent { display: flex; align-items: center; gap: 0.375rem; border: 0; background: none; border-radius: 0.5rem; padding: 0.5rem 0.625rem; font: inherit;
  font-size: 0.875rem; font-weight: 600; color: hsl(var(--muted-foreground)); cursor: pointer; transition: background-color 150ms, color 150ms; }
.nav-parent:hover, .nav-parent[aria-expanded="true"] { background: hsl(var(--surface-2)); color: hsl(var(--foreground)); }
.nav-parent.active { background: hsl(var(--ember) / 0.14); color: hsl(var(--ember)); }
svg.nav-caret { width: 0.8rem; height: 0.8rem; transition: transform 150ms; }
.nav-parent[aria-expanded="true"] svg.nav-caret { transform: rotate(180deg); }
.nav-menu { position: absolute; top: calc(100% + 0.375rem); left: 0; z-index: 60; display: grid; gap: 0.125rem; min-width: 12.5rem; padding: 0.375rem;
  border: 1px solid hsl(var(--border)); border-radius: 0.75rem; background: hsl(var(--card)); box-shadow: 0 12px 32px hsl(0 0% 0% / 0.28); }
.nav-menu[hidden] { display: none; }
.nav-group:last-child .nav-menu { left: auto; right: 0; }
.staff-nav .nav-menu a { padding: 0.5rem 0.625rem; gap: 0.625rem; font-size: 0.875rem; }
.staff-nav .nav-menu a .lbl { display: inline; }
/* A section the plan doesn't include: shown to the owner, dimmed, with a small lock. */
.nav-locked { opacity: 0.6; }
.nav-locked > span { position: relative; }
svg.nav-lock { position: absolute; right: -0.35rem; bottom: -0.3rem; width: 0.7rem; height: 0.7rem; padding: 1px; border-radius: 999px; background: hsl(var(--card)); color: hsl(var(--muted-foreground)); stroke-width: 2.5; }
.upgrade-ic { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 999px; background: hsl(var(--ember) / 0.12); color: hsl(var(--ember)); }
@media (min-width: 768px) { .staff-nav { display: flex; } .md-hide { display: none !important; } }
@media (max-width: 767px) { .md-show { display: none !important; } }
@media (min-width: 1024px) { .staff-nav a .lbl, .nav-parent .lbl { display: inline; } .staff-nav > a, .nav-parent { padding: 0.5rem 0.625rem; font-size: 0.8125rem; gap: 0.3rem; } }
.more-group { margin: 0.25rem 0 0.375rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.count-badge { display: flex; height: 18px; min-width: 18px; align-items: center; justify-content: center; border-radius: 99px;
  background: hsl(var(--primary)); padding: 0 0.25rem; font-size: 10px; font-weight: 700; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.staff-nav a .count-badge { position: absolute; right: 0; top: -2px; }
@media (min-width: 1280px) { .staff-nav a .count-badge { position: static; } }
.staff-main { max-width: 80rem; margin: 0 auto; padding: 1.25rem 1rem calc(var(--dock) + 1.5rem); }
@media (min-width: 768px) { .staff-main { padding-top: 1.75rem; padding-bottom: 1.75rem; } }
.dock { position: fixed; inset: auto 0 0 0; z-index: 40; border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.5rem); }
@media (min-width: 768px) { .dock { display: none; } }
.dock-inner { margin: 0 auto; display: flex; max-width: 28rem; align-items: stretch; padding: 0.375rem 0.5rem 0; }
.dock a, .dock button { display: flex; height: 3.5rem; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
  border-radius: 0.75rem; font-size: 11px; font-weight: 600; color: hsl(var(--muted-foreground)); }
.dock .pillicon { position: relative; display: flex; height: 1.75rem; width: 3rem; align-items: center; justify-content: center; border-radius: 99px; }
.dock .pillicon svg.i { width: 1.25rem; height: 1.25rem; }
.dock .pillicon .count-badge { position: absolute; right: 0.125rem; top: -0.25rem; }
.dock .pillicon svg.nav-lock { width: 0.75rem; height: 0.75rem; right: 0.4rem; bottom: -0.1rem; }
.dock .active { color: hsl(var(--ember)); }
.dock .active .pillicon { background: hsl(var(--ember) / 0.14); }
.more-link { display: flex; height: 3.5rem; align-items: center; gap: 0.75rem; border-radius: 0.75rem; border: 1px solid hsl(var(--border));
  background: hsl(var(--surface-2) / 0.4); padding: 0 1rem; font-size: 0.875rem; font-weight: 600; }
.more-link svg.i { width: 1.25rem; height: 1.25rem; }
.more-link.active { border-color: hsl(var(--ember) / 0.5); background: hsl(var(--ember) / 0.1); color: hsl(var(--ember)); }

/* ------------------------------------------------------------------ dialogs */
.scrim { position: fixed; inset: 0; z-index: 50; background: hsl(var(--scrim)); animation: fade-in 300ms ease-out; }
.sheet { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 1rem; border-top: 1px solid hsl(var(--border-strong));
  border-radius: 1.25rem 1.25rem 0 0; background: hsl(var(--card)); padding: 1.5rem 1.25rem calc(env(safe-area-inset-bottom, 0px) + 1.25rem);
  box-shadow: var(--shadow-lift); animation: sheet-in 420ms cubic-bezier(0.16, 1, 0.3, 1); overscroll-behavior: contain; }
.sheet.closing { animation: sheet-out 220ms cubic-bezier(0.4, 0, 1, 1) forwards; }
.scrim.closing { animation: fade-out 200ms ease-in forwards; }
.sheet::before { content: ''; position: absolute; top: 0.5rem; left: 50%; width: 2.5rem; height: 0.25rem; margin-left: -1.25rem; border-radius: 99px; background: hsl(var(--border-strong)); }
@media (min-width: 640px) {
  .sheet { left: 50%; top: 50%; bottom: auto; right: auto; width: calc(100% - 2rem); max-width: 32rem; max-height: 90dvh;
    transform: translate(-50%, -50%); border: 1px solid hsl(var(--border-strong)); border-radius: 1rem; padding: 1.5rem; animation: pop-in 240ms cubic-bezier(0.16, 1, 0.3, 1); }
  .sheet.closing { animation: pop-out 150ms ease-in forwards; }
  .sheet::before { display: none; }
  .sheet.sm { max-width: 24rem; }
  .sheet.md { max-width: 28rem; }
  .sheet.xl { max-width: 36rem; }
}
@keyframes sheet-in { from { transform: translate3d(0, 100%, 0); } }
@keyframes sheet-out { to { transform: translate3d(0, 100%, 0); } }
@keyframes pop-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)) scale(0.97); } }
@keyframes pop-out { to { opacity: 0; transform: translate(-50%, calc(-50% + 6px)) scale(0.98); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.sheet-close { position: absolute; right: 0.75rem; top: 0.75rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 0.5rem; color: hsl(var(--faint)); }
.sheet-close:hover { background: hsl(var(--surface-2)); color: hsl(var(--foreground)); }
.sheet-head { padding-right: 2rem; }
.sheet-title { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.sheet-desc { margin-top: 0.375rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.5; }
.sheet-foot { display: flex; flex-direction: column-reverse; gap: 0.5rem; }
.sheet-foot.col { flex-direction: column; }
@media (min-width: 640px) { .sheet-foot:not(.col) { flex-direction: row; justify-content: flex-end; } }
body.locked { overflow: hidden; }

/* Popover (the period picker). */
.popover { position: absolute; z-index: 45; border: 1px solid hsl(var(--border-strong)); border-radius: 0.75rem;
  background: hsl(var(--card)); box-shadow: var(--shadow-lift); padding: 0.75rem; animation: fade-in 150ms; }
.pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.25rem; width: 15rem; }

/* ------------------------------------------------------------------- toasts */
.toaster { position: fixed; z-index: 60; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 50%; transform: translateX(-50%);
  width: min(356px, calc(100% - 2rem)); display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
.toast { position: relative; pointer-events: auto; display: flex; gap: 0.625rem; align-items: flex-start; padding: 0.875rem 2.25rem 0.875rem 1rem;
  border-radius: 0.625rem; background: hsl(var(--surface-2)); border: 1px solid hsl(var(--border-strong)); color: hsl(var(--foreground));
  box-shadow: var(--shadow-lift); font-size: 0.8125rem; line-height: 1.4; animation: toast-in 350ms cubic-bezier(0.16, 1, 0.3, 1); }
.toast.out { animation: toast-out 200ms ease-in forwards; }
.toast .tt { font-weight: 600; }
.toast .td { color: hsl(var(--muted-foreground)); margin-top: 0.125rem; }
.toast svg.i { margin-top: 0.1rem; }
.toast.success svg.i { color: hsl(var(--veg)); }
.toast.error svg.i { color: hsl(var(--danger-text)); }
.toast.warning svg.i { color: hsl(var(--amber)); }
.toast.info svg.i { color: hsl(var(--ember)); }
.toast .x { position: absolute; top: 0.5rem; right: 0.5rem; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border-radius: 99px; color: hsl(var(--faint)); }
.toast .x:hover { background: hsl(var(--border-strong)); color: hsl(var(--foreground)); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px) scale(0.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }

/* ---------------------------------------------------------------- segmented */
.segmented { display: flex; border-radius: 0.75rem; background: hsl(var(--surface-2)); padding: 0.25rem; }
.segmented button { display: flex; height: 2.25rem; flex: 1; align-items: center; justify-content: center; gap: 0.375rem; white-space: nowrap;
  border-radius: 0.5rem; padding: 0 0.75rem; font-size: 0.875rem; font-weight: 600; color: hsl(var(--muted-foreground));
  transition: background-color 200ms, color 200ms, box-shadow 200ms; }
.segmented button:hover { color: hsl(var(--foreground)); }
.segmented button[aria-checked='true'] { background: hsl(var(--foreground)); color: hsl(var(--background)); box-shadow: var(--shadow-lift); }
.period { display: grid; width: 100%; gap: 0.5rem; }
@media (min-width: 640px) { .period { display: inline-grid; width: auto; min-width: 22rem; } }

/* --------------------------------------------------------------- pagination */
.pager { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
@media (min-width: 640px) { .pager { flex-direction: row; justify-content: space-between; } .pager.stacked { flex-direction: column; } }
.pager .nums { display: flex; align-items: center; gap: 0.25rem; }
.pager .gap { width: 1.5rem; text-align: center; font-size: 0.875rem; color: hsl(var(--faint)); }
.pager .btn { min-width: 2.5rem; }
@media (min-width: 640px) { .pager .btn { min-width: 2rem; } }

/* ------------------------------------------------------------ customer menu */
.cat-bar { margin: 0 auto; display: flex; gap: 0.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 1rem; padding: 0 1rem 0.625rem; max-width: 48rem; }
.cat-bar button { height: 2.25rem; flex-shrink: 0; scroll-snap-align: start; border-radius: 99px; padding: 0 1rem; font-size: 0.875rem; font-weight: 600;
  background: hsl(var(--surface-2)); color: hsl(var(--muted-foreground)); transition: background-color 200ms, color 200ms; }
.cat-bar button:hover { color: hsl(var(--foreground)); }
.cat-bar button.on { background: hsl(var(--primary)); color: #fff; }
.menu-section { padding-top: 1.75rem; }
.dish { display: flex; gap: 1rem; border-bottom: 1px solid hsl(var(--border)); padding: 1rem 0; }
.dish:last-child { border-bottom: 0; }
.dish h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1rem; font-weight: 700; line-height: 1.375; letter-spacing: -0.01em; }
.dish .price { margin-top: 0.25rem; font-family: 'Bricolage Grotesque', sans-serif; font-size: 0.95rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dish .desc { margin-top: 0.375rem; font-size: 0.82rem; line-height: 1.625; color: hsl(var(--muted-foreground)); }
.dish .photo { position: relative; width: 7rem; flex-shrink: 0; padding-bottom: 1rem; }
.dish .photo img, .dish .photo .ph { width: 7rem; height: 7rem; border-radius: 0.75rem; background: hsl(var(--surface-2)); object-fit: cover; }
.dish .photo .ph { display: flex; align-items: center; justify-content: center; color: hsl(var(--faint)); }
.dish .photo .ph svg.i { width: 1.5rem; height: 1.5rem; }
.dish .ctl { position: absolute; left: 0.5rem; right: 0.5rem; bottom: 0; }
.add-btn { display: flex; height: 2.5rem; width: 100%; align-items: center; justify-content: center; gap: 0.25rem; border-radius: 0.5rem;
  border: 1px solid hsl(var(--border-strong)); background: hsl(var(--card)); font-size: 0.875rem; font-weight: 700; color: hsl(var(--ember)); box-shadow: var(--shadow-lift); }
.stepper { display: flex; height: 2.5rem; align-items: center; justify-content: space-between; border-radius: 0.5rem; background: hsl(var(--primary)); color: #fff; }
.stepper button { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; }
.stepper button:active { background: rgb(0 0 0 / 0.15); }
.stepper span { min-width: 1.25rem; text-align: center; font-size: 0.875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper.w-cart { width: 7.5rem; flex-shrink: 0; }
.veg-mark { margin-top: 0.3rem; display: flex; width: 0.875rem; height: 0.875rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 3px; border: 1px solid hsl(var(--veg)); }
.veg-mark i { width: 0.375rem; height: 0.375rem; border-radius: 99px; background: hsl(var(--veg)); }
.veg-mark.non { border-color: hsl(var(--nonveg)); }
.veg-mark.non i { background: hsl(var(--nonveg)); }
.veg-mark.flat { margin-top: 0; }
.cart-pill-wrap { pointer-events: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 0 1rem calc(env(safe-area-inset-bottom, 0px) + 1rem); }
.cart-pill { pointer-events: auto; margin: 0 auto; display: flex; height: 3.5rem; width: 100%; max-width: 28rem; align-items: center; gap: 0.75rem;
  border-radius: 99px; background: hsl(var(--primary)); padding: 0 1rem 0 1.25rem; color: #fff; box-shadow: var(--shadow-ember);
  animation: cart-pop 0.42s cubic-bezier(0.16, 1, 0.3, 1); transition: transform 150ms; }
.cart-pill:active { transform: scale(0.98); }
.cart-pill .bag { position: relative; display: flex; align-items: center; }
.cart-pill .bag svg.i { width: 1.25rem; height: 1.25rem; }
.cart-pill .bag b { position: absolute; right: -0.5rem; top: -0.5rem; display: flex; height: 1rem; min-width: 1rem; align-items: center; justify-content: center;
  border-radius: 99px; background: hsl(var(--background)); padding: 0 0.25rem; font-size: 10px; font-weight: 700; color: hsl(var(--ember)); }
.cart-pill .bag.bump { animation: bump 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes cart-pop { 0% { transform: translateY(130%); opacity: 0; filter: blur(6px); } 100% { transform: translateY(0); opacity: 1; filter: blur(0); } }
@keyframes bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.2); } }
.again-row { margin: 0 -1rem; display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 1rem; padding: 0 1rem 0.25rem; }
.again-card { display: flex; width: 16rem; flex-shrink: 0; scroll-snap-align: start; flex-direction: column; border: 1px solid hsl(var(--border));
  border-radius: 0.75rem; background: hsl(var(--card)); padding: 0.875rem; }
.line { display: flex; align-items: center; gap: 0.75rem; border-bottom: 1px solid hsl(var(--border)); padding: 0.75rem 0; }
.line:last-child { border-bottom: 0; }
.map-box { height: 13rem; width: 100%; overflow: hidden; border-radius: 0.5rem; border: 1px solid hsl(var(--border)); }
.location-pin { display: block; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: hsl(var(--ember)); border: 3px solid #fff; box-shadow: 0 2px 6px rgb(0 0 0 / 0.35); }

/* ---------------------------------------------------------- order tracking */
.progress li { display: flex; gap: 0.875rem; }
.progress .rail { display: flex; flex-direction: column; align-items: center; }
.progress .node { display: flex; width: 1.5rem; height: 1.5rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 99px;
  border: 2px solid hsl(var(--border)); background: hsl(var(--background)); color: #fff; }
.progress .node.done { border: 0; }
.progress .node.current { box-shadow: 0 0 0 4px hsl(var(--ember) / 0.18); }
.progress .bar { width: 2px; flex: 1; background: hsl(var(--border)); }
.progress .body { padding-bottom: 1.5rem; }
.progress li:last-child .body { padding-bottom: 0; }
.progress .name { font-family: 'Bricolage Grotesque', sans-serif; font-size: 0.875rem; font-weight: 700; }
.item-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; border-bottom: 1px solid hsl(var(--border)); padding: 0.625rem 0; font-size: 0.875rem; }
.sum-row { display: flex; align-items: center; justify-content: space-between; color: hsl(var(--muted-foreground)); }
.aside-note { border-left: 1px solid hsl(var(--amber)); padding-left: 0.75rem; font-size: 0.75rem; line-height: 1.625; color: hsl(var(--muted-foreground)); }
.big-tick { display: flex; width: 4rem; height: 4rem; align-items: center; justify-content: center; border-radius: 99px; background: hsl(var(--veg)); color: hsl(var(--background)); }
.big-tick svg.i { width: 2rem; height: 2rem; stroke-width: 3; }
.tick-sm { display: flex; width: 2.5rem; height: 2.5rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 99px; background: hsl(var(--veg)); color: hsl(var(--background)); }
.tick-sm svg.i { stroke-width: 3; width: 1.25rem; height: 1.25rem; }
.qr-img { width: 13rem; border-radius: 0.75rem; background: #fff; padding: 0.75rem; }
.order-link { margin: 0 -0.5rem; display: flex; align-items: center; gap: 0.75rem; border-radius: 0.5rem; border-bottom: 1px solid hsl(var(--border)); padding: 1rem 0.5rem; transition: border-color 150ms; }
.order-link:hover { border-color: hsl(var(--ember)); }
.order-link:active { background: hsl(var(--surface-2)); }
.order-link:hover .chev { color: hsl(var(--ember)); }
.order-row { border-bottom: 1px solid hsl(var(--border)); padding-bottom: 0.875rem; }
.order-row .order-link { border-bottom: 0; }
.order-row .order-again { margin-top: 0.25rem; }
.find-orders { display: flex; flex-direction: column; gap: 0.875rem; max-width: 26rem; margin: 1.25rem auto 0; padding: 1.25rem;
  border: 1px solid hsl(var(--border)); border-radius: 0.875rem; background: hsl(var(--card)); }
.tag-amber { border-radius: 99px; background: hsl(var(--amber) / 0.14); padding: 0.125rem 0.5rem; font-size: 11px; font-weight: 600; color: hsl(var(--amber)); }

/* ---------------------------------------------------------------- the board */
.board { display: grid; gap: 0.75rem; }
@media (min-width: 768px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ticket { overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: 0.75rem; background: hsl(var(--card)); }
.ticket.billing { border-color: hsl(var(--amber) / 0.5); background: hsl(var(--amber) / 0.05); }
.ticket .sec { padding: 1rem; }
.ticket .sec + .sec, .ticket .chips { border-top: 1px solid hsl(var(--border)); }
.ticket .chips { padding: 0.75rem 0; }
.ticket .items li { display: flex; justify-content: space-between; gap: 0.5rem; border-bottom: 1px solid hsl(var(--border)); padding: 0.375rem 0; font-size: 0.875rem; }
.ticket .items li:last-child { border-bottom: 0; }
.ticket .items .dnote { display: block; font-size: 0.75rem; color: hsl(var(--amber)); }
.ticket .money-lines { display: grid; gap: 0.125rem; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.ticket .money-lines div { display: flex; justify-content: space-between; gap: 0.5rem; }

/* ------------------------------------------------------- the kitchen screen */
.kds-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.kds-count { display: inline-flex; align-items: baseline; gap: 0.375rem; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
.kds-count b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.375rem; line-height: 1; color: hsl(var(--foreground)); font-variant-numeric: tabular-nums; }
.kds-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); align-items: start; }
.allday { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.allday span { display: inline-flex; align-items: baseline; gap: 0.3rem; border-radius: 99px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); padding: 0.25rem 0.625rem; font-size: 0.8125rem; }
.allday b { color: hsl(var(--ember)); font-variant-numeric: tabular-nums; }
.kot { display: flex; flex-direction: column; overflow: hidden; border: 1px solid hsl(var(--border)); border-top: 4px solid hsl(var(--border-strong)); border-radius: 0.75rem; background: hsl(var(--card)); }
.kot[data-state='COOKING'] { border-top-color: hsl(var(--ember)); }
.kot[data-state='READY'] { border-top-color: hsl(var(--veg)); opacity: 0.62; }
.kot[data-kind='VOID'] { border-color: hsl(var(--destructive) / 0.5); border-top-color: hsl(var(--destructive)); background: hsl(var(--destructive) / 0.06); }
.kot[data-kind='VOID'][data-state='READY'] { opacity: 0.5; }
.kot.fresh { animation: kot-in 1.6s ease-out; }
@keyframes kot-in { 0% { box-shadow: 0 0 0 3px hsl(var(--ember) / 0.9); } 100% { box-shadow: 0 0 0 0 hsl(var(--ember) / 0); } }
.kot-head { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.75rem 0.875rem 0.5rem; }
.kot-no { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kot-where { font-size: 0.9375rem; font-weight: 700; line-height: 1.25; }
.kot-timer { margin-left: auto; border-radius: 0.5rem; background: hsl(var(--surface-2)); padding: 0.25rem 0.5rem; font-size: 0.875rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kot-timer.late { background: hsl(var(--amber) / 0.16); color: hsl(var(--amber)); }
.kot-timer.very-late { background: hsl(var(--destructive)); color: #fff; }
.kot-kind { margin: 0 0.875rem 0.25rem; align-self: flex-start; border-radius: 0.375rem; padding: 0.125rem 0.5rem; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.kot-kind.add { background: hsl(var(--ember) / 0.14); color: hsl(var(--ember)); }
.kot-kind.void { background: hsl(var(--destructive)); color: #fff; }
.kot-items { padding: 0.25rem 0.875rem 0.5rem; }
.kot-items li { display: flex; gap: 0.625rem; align-items: baseline; padding: 0.375rem 0; border-bottom: 1px dashed hsl(var(--border)); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.kot-items li:last-child { border-bottom: 0; }
.kot-items .q { min-width: 1.75rem; text-align: right; font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.25rem; font-weight: 800; color: hsl(var(--ember)); font-variant-numeric: tabular-nums; }
/* What changed on an order that came back: added, taken off, a new quantity or note; and what's already made. */
.kot-items li.added, .kot-items li.removed, .kot-items li.changed { margin: 0.125rem -0.5rem; padding: 0.375rem 0.5rem; border-bottom: 0; border-radius: 0.5rem; }
.kot-items li.added { background: hsl(var(--veg) / 0.16); }
.kot-items li.changed { background: hsl(var(--amber) / 0.16); }
.kot-items li.removed { background: hsl(var(--destructive) / 0.1); }
.kot-items li.removed .nm { text-decoration: line-through; text-decoration-color: hsl(var(--destructive)); }
.kot-items li.removed .q { color: hsl(var(--destructive)); }
.kot-items li.made { font-weight: 500; color: hsl(var(--muted-foreground)); }
.kot-items li.made .q { color: hsl(var(--muted-foreground)); }
.kot-items .tag { display: inline-block; vertical-align: 0.1em; border-radius: 0.3125rem; background: hsl(var(--surface-2)); padding: 0.0625rem 0.375rem; font-size: 0.625rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; color: hsl(var(--muted-foreground)); }
.kot-items li.added .tag { background: hsl(var(--veg)); color: #fff; }
.kot-items li.changed .tag { background: hsl(var(--amber)); color: #fff; }
.kot-items li.removed .tag { background: hsl(var(--destructive)); color: #fff; }
.kot-items .n { display: block; margin-top: 0.125rem; font-size: 0.8125rem; font-weight: 600; color: hsl(var(--amber)); text-decoration: none; }
.kot-note { margin: 0 0.875rem 0.625rem; }
.kot-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: auto; border-top: 1px solid hsl(var(--border)); padding: 0.625rem 0.875rem 0.75rem; }
.kot-foot .who { flex: 1 0 100%; min-width: 0; font-size: 0.75rem; color: hsl(var(--faint)); }
.kot-foot .btn:not(.btn-ghost) { flex: 1; }
.kot-items .veg-mark { display: inline-flex; vertical-align: -0.1em; margin-right: 0.25rem; }
.kds-full .staff-main { max-width: none; }
@media screen { .print-offscreen { position: fixed !important; left: -10000px; top: 0; width: 80mm; } }

/* ------------------------------------------------------------ offers */
.coupon-code { display: inline-flex; align-items: center; border: 1.5px dashed hsl(var(--ember) / 0.7); border-radius: 0.5rem; padding: 0.125rem 0.5rem; font-family: ui-monospace, 'Roboto Mono', monospace; font-weight: 700; letter-spacing: 0.04em; color: hsl(var(--ember)); }
.offer-strip { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.125rem; }
.offer-chip { display: flex; flex-shrink: 0; align-items: center; gap: 0.5rem; max-width: 20rem; border: 1px dashed hsl(var(--ember) / 0.55); border-radius: 0.75rem; background: hsl(var(--ember) / 0.06); padding: 0.5rem 0.75rem; text-align: left; font-size: 0.8125rem; line-height: 1.35; }
.offer-chip b { color: hsl(var(--ember)); }
.coupon-box { display: flex; gap: 0.5rem; }
.coupon-box .input { text-transform: uppercase; }
.coupon-applied { display: flex; align-items: center; gap: 0.5rem; border-radius: 0.625rem; border: 1px solid hsl(var(--veg) / 0.4); background: hsl(var(--veg) / 0.08); padding: 0.5rem 0.75rem; font-size: 0.8125rem; }
.points-card { display: flex; align-items: center; gap: 0.75rem; border-radius: 0.75rem; border: 1px solid hsl(var(--amber) / 0.4); background: hsl(var(--amber) / 0.07); padding: 0.75rem 0.875rem; }
.status-btn { display: flex; height: 2rem; max-width: 100%; align-items: center; gap: 0.375rem; border-radius: 99px; border: 1px solid hsl(var(--border-strong));
  padding: 0 0.625rem; font-size: 0.75rem; font-weight: 600; color: hsl(var(--muted-foreground)); transition: color 150ms, transform 120ms; }
.status-btn:hover { color: hsl(var(--foreground)); }
.status-btn:active { transform: scale(0.97); }
.status-btn[aria-checked='true'] { border-color: transparent; background: hsl(var(--foreground)); color: hsl(var(--background)); }
.status-btn i { width: 0.5rem; height: 0.5rem; border-radius: 99px; flex-shrink: 0; display: inline-block; }
.grid-2 > .span-odd:last-child:nth-child(odd) { grid-column: span 2 / span 2; }

.list { overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: 0.75rem; background: hsl(var(--card)); }
.list > li { border-bottom: 1px solid hsl(var(--border)); }
.list > li:last-child { border-bottom: 0; }
.row-btn { display: flex; width: 100%; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem; text-align: left; transition: background-color 150ms; }
.row-btn:hover, .row-btn:active { background: hsl(var(--surface-2)); }
.stat-strip { display: grid; gap: 1px; overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: 0.75rem; background: hsl(var(--border)); }
.stat-strip > div { background: hsl(var(--card)); padding: 0.75rem; }
.stat-strip dt { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: hsl(var(--faint)); }
.stat-strip dd { margin-top: 0.125rem; font-family: 'Bricolage Grotesque', sans-serif; font-size: 0.95rem; font-weight: 700; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-strip.big > div { padding: 0.875rem 1rem; }
.stat-strip.big dt { font-size: 0.75rem; text-transform: none; letter-spacing: 0; font-weight: 400; color: hsl(var(--muted-foreground)); }
.stat-strip.big dd { margin-top: 0.25rem; font-size: 1.125rem; }
@media (min-width: 640px) { .stat-strip dd { font-size: 1.125rem; } }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1024px) { .cols-3.lg-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .cols-2.sm-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats-grid { display: grid; gap: 1rem; }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: 3fr 2fr; } }
.series li { display: grid; grid-template-columns: 4.5rem 1fr auto; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.series .track { height: 0.5rem; overflow: hidden; border-radius: 99px; background: hsl(var(--surface-2)); }
.series .fill { height: 100%; border-radius: 99px; background: hsl(var(--ember)); }
.amount-col { width: 6rem; flex-shrink: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.cards { display: grid; gap: 0.75rem; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Masonry: categories of every length packed into columns, in menu order down each column. */
.menu-cols { column-gap: 1.5rem; }
@media (min-width: 720px) { .menu-cols { columns: 2; } }
@media (min-width: 1200px) { .menu-cols { columns: 3; } }
.menu-cols section { display: inline-block; width: 100%; margin-bottom: 1.5rem; break-inside: avoid; }
.menu-search { max-width: 28rem; }
.menu-item { display: flex; align-items: center; gap: 0.75rem; padding-right: 1rem; }
.menu-item .row-btn { padding: 0.875rem 0 0.875rem 1rem; flex: 1; min-width: 0; }
.menu-item .n { font-size: 0.95rem; font-weight: 600; }
.menu-item.out .n { color: hsl(var(--faint)); }
.table-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
@media (min-width: 640px) { .table-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; } }
@media (min-width: 1024px) { .table-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .table-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.table-tile { display: flex; height: 6rem; width: 100%; flex-direction: column; justify-content: space-between; border: 1px solid hsl(var(--border));
  border-radius: 0.75rem; background: hsl(var(--card)); padding: 0.75rem; text-align: left; transition: border-color 150ms, background-color 150ms, transform 120ms; }
.table-tile:hover { border-color: hsl(var(--border-strong)); background: hsl(var(--surface-2)); }
.table-tile:active { transform: scale(0.97); }
.table-tile.inactive { opacity: 0.5; }
.table-tile .n { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.25rem; font-weight: 700; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 640px) { .table-tile { padding: 1rem; } .table-tile .n { font-size: 1.5rem; } }
.qr-card { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; border: 1px solid hsl(var(--border)); border-radius: 0.75rem; background: #fff; padding: 1.25rem; color: #000; }
.qr-card .qr { width: 12rem; }
.dish-edit-list { max-height: 36vh; overflow-y: auto; }
.dish-edit-list .de { display: flex; align-items: center; gap: 0.75rem; border-bottom: 1px solid hsl(var(--border)); padding: 0.625rem 0; }
.dish-edit-list .de:last-child { border-bottom: 0; }
.dish-edit-list .de.gone { opacity: 0.45; }
.search-results { overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: 0.5rem; }
.search-results button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.625rem 0.75rem; text-align: left; font-size: 0.875rem; }
.search-results button:hover { background: hsl(var(--surface-2)); }
.save-bar { position: sticky; bottom: calc(var(--dock) + 0.75rem); z-index: 20; display: flex; align-items: center; gap: 0.75rem; border: 1px solid hsl(var(--border-strong));
  border-radius: 1rem; background: hsl(var(--card) / 0.95); padding: 0.5rem 0.5rem 0.5rem 1rem; box-shadow: var(--shadow-lift);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.receipt-box { margin: 0 auto; width: 100%; max-width: 340px; overflow: hidden; border-radius: 0.375rem; background: #fff; box-shadow: var(--shadow-lift); outline: 1px solid rgb(0 0 0 / 0.1); }
.receipt-box img { display: block; width: 100%; }
.receipt-box .wait { display: flex; aspect-ratio: 2 / 3; align-items: center; justify-content: center; color: #999; }
.img-thumb { width: 5rem; height: 5rem; border-radius: 0.75rem; object-fit: cover; }
.img-ph { display: flex; width: 5rem; height: 5rem; align-items: center; justify-content: center; border-radius: 0.75rem; background: hsl(var(--surface-2)); color: hsl(var(--faint)); }
.upload-label { display: inline-flex; height: 2.75rem; align-items: center; gap: 0.5rem; border-radius: 0.5rem; border: 1px solid hsl(var(--border-strong)); padding: 0 1rem;
  font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.upload-label:hover { background: hsl(var(--accent)); }
.upload-label.primary { border: 0; background: hsl(var(--primary)); color: #fff; }
.upload-label.primary:hover { background: hsl(var(--ember)); }
@media (min-width: 640px) { .upload-label { height: 2.5rem; } }
.qr-preview { width: 9rem; height: 9rem; border-radius: 0.75rem; border: 1px solid hsl(var(--border)); background: #fff; object-fit: contain; padding: 0.5rem; }
.qr-empty { display: flex; width: 9rem; height: 9rem; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; border-radius: 0.75rem; border: 1px dashed hsl(var(--border)); color: hsl(var(--faint)); }
.logo-preview { width: 6rem; height: 6rem; border-radius: 0.75rem; border: 1px solid hsl(var(--border)); background: hsl(var(--surface-2)); object-fit: contain; padding: 0.5rem; }
.divide > * + * { border-top: 1px solid hsl(var(--border)); }

/* ------------------------------------------------------------------ printing */
@media print {
  body * { visibility: hidden; }
  #print-area, #print-area * { visibility: visible; }
  html, body { margin: 0 !important; padding: 0 !important; height: auto !important; min-height: 0 !important; overflow: visible !important; background: #fff !important; }
  body::before { display: none !important; }
  #app:not(:has(#print-area)) { display: none !important; }
  .scrim, .toaster { display: none !important; }
  .sheet { position: static !important; transform: none !important; width: auto !important; max-width: none !important; max-height: none !important;
    overflow: visible !important; padding: 0 !important; border: 0 !important; background: #fff !important; box-shadow: none !important; animation: none !important; }
  .sheet::before { display: none !important; }
  #print-area { position: static; width: 100%; max-height: none; overflow: visible; background: #fff; color: #000; box-shadow: none; border: 0; outline: 0;
    padding: 12mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; break-inside: avoid; }
  #print-area img { max-width: 100%; }
  #print-area.receipt-print { width: 80mm !important; margin: 0 auto !important; padding: 6mm 0 !important; }
  #print-area.receipt-print[data-paper='58'] { width: 48mm !important; padding: 3mm 0 !important; }
  #print-area.print-offscreen img { display: block; width: 100%; }
  #print-area .center-img { margin-left: auto !important; margin-right: auto !important; display: block !important; }
  .print-hide { display: none !important; }
  @page { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet, .scrim, .toast, .cart-pill { animation-duration: 1ms !important; }
  .pressable:active, .btn:active { transform: none; }
}
.staff-who { flex: 1 1 0%; margin-right: 0.5rem; }
@media (min-width: 768px) { .staff-who { flex: none; } }

@media (min-width: 640px) { .sm-row { flex-direction: row !important; align-items: center; } }

/* ---------------------------------------------------------------- home page */
/* The restaurant's website: real dishes up top, the menu, then how to find us. */
.site { min-height: 100dvh; display: flex; flex-direction: column; background: hsl(var(--background)); }
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: flex; align-items: center; gap: 0.5rem;
  padding: calc(env(safe-area-inset-top, 0px) + 0.625rem) 1rem 0.625rem;
  background: hsl(var(--background) / 0.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid hsl(var(--border) / 0.7); }
.site-brand { display: flex; align-items: center; gap: 0.625rem; min-width: 0; margin-right: auto; }
.site-brand img { width: 2.25rem; height: 2.25rem; }
.site-brand span { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; letter-spacing: -0.02em; font-size: 1rem; line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-links { display: none; gap: 0.25rem; margin-right: 0.25rem; }
.site-links a { padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 600; color: hsl(var(--muted-foreground)); transition: color 150ms, background-color 150ms; }
.site-links a:hover { color: hsl(var(--foreground)); background: hsl(var(--surface-2)); }
.site-order span { display: none; }
@media (min-width: 480px) { .site-order span { display: inline; } }
@media (min-width: 768px) { .site-links { display: flex; } }

/* ------ hero: a wall of our real dishes behind the words, one action */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: 88svh; display: flex; align-items: flex-end;
  padding: calc(env(safe-area-inset-top, 0px) + 6rem) 0 3rem; background: hsl(20 20% 6%); color: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg.n1 { grid-template-columns: 1fr; }
.hero-bg.n3 img:first-child, .hero-bg.n5 img:first-child { grid-column: span 2; }
.hero-bg img { filter: saturate(1.1) brightness(0.9); }
/* Overlay, in two layers: a warm ember wash that ties the photos together, then a deep scrim
   that is darkest exactly where the words sit and lets the food show where they don't. */
.hero::before, .hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero::before { background: linear-gradient(135deg, hsl(12 70% 18% / 0.55), hsl(30 60% 10% / 0.25)); mix-blend-mode: multiply; }
.hero::after {
  background:
    radial-gradient(120% 70% at 20% 55%, hsl(20 30% 4% / 0.6), transparent 70%),
    linear-gradient(to top, hsl(20 30% 4% / 0.97) 0%, hsl(20 30% 4% / 0.88) 40%, hsl(20 30% 4% / 0.78) 75%, hsl(20 30% 4% / 0.55) 100%); }
.hero h1, .hero-lead, .hero-facts { text-shadow: 0 2px 18px hsl(20 40% 3% / 0.6); }
.hero-inner { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; }
.hero-copy { max-width: 46rem; }
.hero-status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 600; color: hsl(0 0% 100% / 0.85);
  padding: 0.35rem 0.75rem; border-radius: 99px; background: hsl(0 0% 100% / 0.1); border: 1px solid hsl(0 0% 100% / 0.16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-status .dot { width: 0.5rem; height: 0.5rem; }
.hero-status.open .dot { animation: live-dot 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
.hero-status.closed .dot { background: hsl(var(--danger-text)); }
@keyframes live-dot { 0% { box-shadow: 0 0 0 0 hsl(var(--veg) / 0.55); } 70%, 100% { box-shadow: 0 0 0 0.5rem hsl(var(--veg) / 0); } }
.hero h1 { margin-top: 1rem; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(1.75rem, 8.6vw, 5rem);
  line-height: 0.98; letter-spacing: -0.04em; white-space: nowrap; color: #fff; }
/* Two lines, always: the claim, then the promise in ember. Sized off the viewport so the first line never wraps. */
.hero h1 em { display: block; font-style: normal; color: hsl(var(--ember)); }
.hero-lead { margin-top: 1rem; max-width: 32rem; font-size: 1.0625rem; line-height: 1.6; color: hsl(0 0% 100% / 0.8); }
.hero-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-actions .btn { flex: 1 1 13rem; }
.hero-actions .btn-outline { color: #fff; border-color: hsl(0 0% 100% / 0.4); background: hsl(0 0% 100% / 0.06); }
.hero-actions .btn-outline:hover { background: hsl(0 0% 100% / 0.14); border-color: hsl(0 0% 100% / 0.6); }
.hero-cta { font-size: 1.0625rem; }
.hero-cta svg.i:last-child { transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1); }
.hero-cta:hover svg.i:last-child { transform: translateX(3px); }
.hero-facts { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.875rem; color: hsl(0 0% 100% / 0.78); }
.hero-facts li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-facts svg.i { color: hsl(var(--ember)); }
@media (prefers-reduced-motion: no-preference) {
  .hero-bg img { animation: hero-bg-in 1400ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-copy { animation: plate-in 900ms 150ms cubic-bezier(0.16, 1, 0.3, 1) both; }
}
@keyframes hero-bg-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes plate-in { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) {
  .hero { min-height: 92svh; align-items: center; padding: 6rem 0 4rem; }
  .hero-bg { grid-template-columns: repeat(3, 1fr); }
  .hero-bg.n3 img:first-child, .hero-bg.n5 img:first-child { grid-column: auto; }
  .hero-bg.n2 { grid-template-columns: repeat(2, 1fr); }
  .hero-bg.n4 { grid-template-columns: repeat(4, 1fr); }
  .hero-bg.n5 img:first-child { grid-row: span 2; }
  .hero::after {
    background:
      radial-gradient(70% 90% at 22% 55%, hsl(20 30% 4% / 0.7), transparent 75%),
      linear-gradient(to right, hsl(20 30% 4% / 0.97) 0%, hsl(20 30% 4% / 0.88) 35%, hsl(20 30% 4% / 0.55) 65%, hsl(20 30% 4% / 0.25) 100%),
      linear-gradient(to top, hsl(20 30% 4% / 0.6), transparent 35%); }
  .hero-inner { padding: 0 2.5rem; }
  .hero-lead { margin-top: 1.25rem; }
  .hero-actions { margin-top: 2rem; }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* ------ menu: tabbed, two quiet columns with a rule between (serif names, prices set right) */
.menu-sec, .visit-sec { width: 100%; max-width: 76rem; margin: 0 auto; padding: 5rem 1.25rem 0; }
@media (min-width: 900px) { .menu-sec, .visit-sec { padding: 7rem 2.5rem 0; } }
.sec-head h2, .visit-where h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 0.98; letter-spacing: -0.04em; }
.sec-head { text-align: center; }
.sec-head p { margin: 0.875rem auto 0; max-width: 34rem; color: hsl(var(--muted-foreground)); line-height: 1.6; }
.menu-tabs { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 3.5rem); z-index: 10; display: flex; justify-content: safe center; gap: 0.25rem;
  overflow-x: auto; margin: 2.25rem -1.25rem 0; padding: 0 1.25rem; background: hsl(var(--background) / 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid hsl(var(--border)); }
.menu-tabs [role='tab'] { flex-shrink: 0; padding: 1rem 1rem 0.875rem; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em;
  color: hsl(var(--muted-foreground)); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 150ms, border-color 150ms; }
.menu-tabs [role='tab']:hover { color: hsl(var(--foreground)); }
.menu-tabs [role='tab'][aria-selected='true'] { color: hsl(var(--ember)); border-bottom-color: hsl(var(--ember)); }
@media (min-width: 900px) { .menu-tabs { margin: 2.75rem -2.5rem 0; padding: 0 2.5rem; } }
.menu-panel { padding-top: 1rem; }
.menu-panel:focus-visible { outline-offset: 0.5rem; }
.menu-list { animation: menu-in 420ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .menu-list { animation: none; } }
.menu-list > ul + ul { border-top: 1px solid hsl(var(--border)); }
@media (min-width: 900px) {
  .menu-list { display: grid; grid-template-columns: 1fr 1fr; padding: 1.5rem 0.5rem 0; }
  .menu-list > ul:first-child { padding-right: 3.5rem; }
  .menu-list > ul + ul { border-top: 0; border-left: 1px solid hsl(var(--border-strong)); padding-left: 3.5rem; }
  .menu-list > ul:only-child { grid-column: 1 / -1; max-width: 38rem; justify-self: center; width: 100%; padding: 0; }
}
.menu-list .dish { break-inside: avoid; display: grid; grid-template-columns: 4.25rem 1fr auto; gap: 0 1.125rem; align-items: start; padding: 1.5rem 0; }
@media (min-width: 640px) { .menu-list .dish { grid-template-columns: 5rem 1fr auto; gap: 0 1.25rem; padding: 1.75rem 0; } }
.menu-list .dish img, .menu-list .dish-ph { width: 100%; aspect-ratio: 1; border-radius: 0.625rem; object-fit: cover; background: hsl(var(--surface-2)); }
.menu-list .dish-ph { display: grid; place-items: center; color: hsl(var(--faint)); }
.menu-list .dish-body { min-width: 0; padding-top: 0.25rem; }
.menu-list .dish h3 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.25; letter-spacing: -0.015em; }
.menu-list .dish h3 .veg-mark { display: inline-flex; width: 0.75rem; height: 0.75rem; margin-left: 0.375rem; vertical-align: 0.1em; }
.menu-list .dish-body p { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.75; color: hsl(var(--muted-foreground)); max-width: 30rem; }
.menu-list .dish-price { padding-top: 0.25rem; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(1.125rem, 2vw, 1.3125rem);
  font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
/* Sold out: still listed so guests know it's on the menu, but plainly not today. */
.menu-list .dish.out img, .menu-list .dish.out .dish-ph { filter: grayscale(1); opacity: 0.45; }
.menu-list .dish.out h3, .menu-list .dish.out .dish-body p { opacity: 0.55; }
.menu-list .dish-price.dish-out { align-self: start; margin-top: 0.25rem; padding: 0.2rem 0.6rem; border-radius: 99px; font-family: inherit; font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.02em; color: hsl(var(--danger-text)); background: hsl(var(--danger-text) / 0.12); }
.menu-foot { margin-top: 3.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding: 1.75rem 2rem; border-radius: 1rem; background: hsl(var(--primary)); color: #fff; box-shadow: var(--shadow-ember); }
.menu-foot p { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.035em; line-height: 1.05; }
.menu-foot p span { display: block; font-size: 0.5em; font-weight: 600; letter-spacing: -0.01em; color: rgb(255 255 255 / 0.85); margin-top: 0.25rem; }
.menu-foot .btn { background: hsl(20 16% 5%); color: #fff; box-shadow: none; }
.menu-foot .btn:hover { background: hsl(20 12% 13%); }

/* ------ visit */
.visit-sec { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .visit-sec { grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: end; } }
.visit-addr { margin-top: 1.25rem; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  line-height: 1.3; letter-spacing: -0.02em; max-width: 28rem; text-wrap: balance; }
.visit-hours { margin-top: 1.75rem; display: grid; gap: 0.5rem; max-width: 22rem; }
.visit-hours div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid hsl(var(--border)); font-size: 0.9375rem; }
.visit-hours dt { color: hsl(var(--muted-foreground)); }
.visit-hours dd { margin: 0; font-weight: 600; }
.closed-text { color: hsl(var(--danger-text)); }
.visit-actions { border-top: 2px solid hsl(var(--foreground)); }
.visit-actions a { display: flex; align-items: center; gap: 1rem; padding: 1.125rem 0.25rem; border-bottom: 1px solid hsl(var(--border)); transition: color 150ms; }
.visit-actions a > * { transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1); }
.visit-actions a > svg.i:first-child { width: 1.25rem; height: 1.25rem; color: hsl(var(--ember)); }
.visit-actions span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.visit-actions b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.015em; }
.visit-actions small { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
.visit-actions .go { color: hsl(var(--faint)); transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), color 150ms; }
.visit-actions a:hover > :not(.go) { transform: translateX(0.5rem); }
.visit-actions a:hover { color: hsl(var(--ember)); }
.visit-actions a:hover .go { color: hsl(var(--ember)); transform: translateX(3px); }

.site-foot { margin-top: auto; padding: 5rem 1.25rem calc(env(safe-area-inset-bottom, 0px) + 2rem); display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 0.5rem 1.5rem; font-size: 0.8125rem; color: hsl(var(--faint)); }
.site-foot a { display: inline-flex; align-items: center; gap: 0.375rem; color: hsl(var(--muted-foreground)); }
.site-foot a:hover { color: hsl(var(--ember)); }
.check-result { border-radius: 0.75rem; padding: 0.625rem 0.875rem; font-size: 0.875rem; line-height: 1.45; }

/* Promotions: the message preview reads like a WhatsApp chat bubble. */
.promo-preview:empty { display: none; }
.promo-bubble { position: relative; max-width: 30rem; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.875rem; line-height: 1.5;
  padding: 0.625rem 0.875rem; border-radius: 0.75rem 0.75rem 0.75rem 0.25rem;
  background: hsl(var(--veg) / 0.12); border: 1px solid hsl(var(--veg) / 0.3); }
.promo-field { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 2rem; padding: 0.25rem 0.625rem; cursor: pointer; }
.promo-field:hover { background: hsl(var(--border)); }
.promo-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem; }
@media (max-width: 480px) { .promo-row [data-send] span { display: none; } }

/* A platform admin signed in as a restaurant's owner: says so on every staff screen. */
.imp-bar { position: relative; display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 1rem;
  background: hsl(var(--ember) / 0.14); border-bottom: 1px solid hsl(var(--ember) / 0.4); font-size: 0.8125rem; line-height: 1.4; }
.imp-bar > .min-w-0 { flex: 1; }
.imp-bar .btn { flex-shrink: 0; }
.imp-bar { flex-wrap: wrap; }
/* Settings: one "Up to 5 km ₹30" line of the delivery charges. */
.slab-row { display: grid; grid-template-columns: auto minmax(0, 6rem) auto auto minmax(0, 7rem) auto; justify-content: start; align-items: center; gap: 0.5rem; }
.slab-row .input { height: 2.5rem; }

/* Choosing a dish's option: Veg / Egg / Chicken, each with its own stepper. */
.variant-list { display: flex; flex-direction: column; }
.variant-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid hsl(var(--border)); }
.variant-row:last-child { border-bottom: 0; }
.variant-row .stepper, .variant-row .add-btn { width: 7.5rem; flex-shrink: 0; }

/* The dish form: one option per line, "Chicken  ₹200  Non-veg  🗑". */
.option-row { display: grid; grid-template-columns: minmax(0, 1fr) 6rem auto auto; align-items: center; gap: 0.5rem; }
.option-row .input { height: 2.5rem; }
.veg-toggle { gap: 0.375rem; min-width: 6.5rem; justify-content: flex-start; }
@media (max-width: 420px) { .option-row { grid-template-columns: minmax(0, 1fr) 4.75rem auto auto; } .veg-toggle { min-width: 0; } }

/* The cart's "Add ₹80 more for free delivery". */
.free-hint { margin: -0.25rem 0 0; font-size: 0.8125rem; font-weight: 600; color: hsl(var(--ember)); }

/* The super admin's "Manage restaurant" picker: in the panel's top bar and the support banner. */
.restaurant-picker { width: auto; min-width: 0; max-width: 15rem; height: 2.25rem; font-size: 0.875rem; padding-top: 0.25rem; padding-bottom: 0.25rem; }
.topbar .restaurant-picker { flex: 0 1 15rem; }
@media (max-width: 600px) {
  .imp-bar > .min-w-0 { flex-basis: calc(100% - 1.5rem); }
  .imp-bar .restaurant-picker { flex: 1; max-width: none; }
}
@media (max-width: 480px) {
  .topbar .restaurant-picker { flex: 1; max-width: none; }
  .topbar:has(.restaurant-picker) .staff-who { display: none; }
}

/* How far the getting-started checklist has got. */
.setup-bar { height: 0.5rem; border-radius: 99px; background: hsl(var(--surface-2)); overflow: hidden; }
.setup-bar > span { display: block; height: 100%; border-radius: inherit; background: hsl(var(--ember)); transition: width 0.3s ease; }

/* The owner's reminder that the trial or paid time is ending: top of every staff screen. */
.bill-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; padding: 0.5rem 1rem;
  background: hsl(var(--amber) / 0.12); border-bottom: 1px solid hsl(var(--amber) / 0.4); font-size: 0.8125rem; line-height: 1.4; }
.bill-bar.urgent { background: hsl(var(--destructive) / 0.12); border-color: hsl(var(--destructive) / 0.45); }
.bill-bar > .min-w-0 { flex: 1; }
.bill-bar .btn { flex-shrink: 0; }

/* Billing: the plan to pick, and how many months. */
.plan-pick { display: grid; gap: 0.5rem; }
@media (min-width: 640px) { .plan-pick { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); } }
.plan-opt { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.875rem 1rem; border: 1px solid hsl(var(--border)); border-radius: 0.75rem;
  background: hsl(var(--card)); text-align: left; cursor: pointer; }
.plan-opt:hover { border-color: hsl(var(--border-strong)); }
.plan-opt[aria-checked="true"] { border-color: hsl(var(--ember)); box-shadow: 0 0 0 1px hsl(var(--ember)); }
.plan-feats { display: grid; gap: 0.375rem; margin-top: 0.5rem; padding-top: 0.625rem; border-top: 1px solid hsl(var(--border)); }
.plan-feats > span { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.8125rem; line-height: 1.4; }
.plan-feats svg.i { flex-shrink: 0; margin-top: 0.1rem; color: hsl(var(--veg)); }
/* Billing: what the plan includes, and its limits. */
.plan-inc { display: grid; gap: 0.625rem 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .plan-inc { grid-template-columns: 1fr 1fr; } }
.plan-inc li { display: flex; align-items: flex-start; gap: 0.5rem; }
.plan-inc li > svg.i { flex-shrink: 0; margin-top: 0.15rem; color: hsl(var(--veg)); }
.plan-inc li.off { opacity: 0.55; }
.plan-inc li.off > svg.i { color: hsl(var(--muted-foreground)); }
.plan-limits { display: grid; gap: 0.75rem; padding-top: 0.875rem; border-top: 1px solid hsl(var(--border)); }
@media (min-width: 640px) { .plan-limits { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.meter { height: 0.375rem; border-radius: 99px; background: hsl(var(--surface-2)); overflow: hidden; margin-top: 0.375rem; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: hsl(var(--veg)); }
.meter > span.full { background: hsl(var(--amber, 38 92% 50%)); }
.grid-feats { display: grid; gap: 0.625rem 1rem; }
@media (min-width: 640px) { .grid-feats { grid-template-columns: 1fr 1fr; } }
.switch-box { border-color: hsl(var(--ember) / 0.45); background: hsl(var(--ember) / 0.05); }
.pay-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.pay-steps > li { counter-increment: step; display: flex; gap: 0.625rem; font-size: 0.875rem; }
.pay-steps > li::before { content: counter(step); flex-shrink: 0; display: grid; place-items: center; width: 1.375rem; height: 1.375rem; border-radius: 99px;
  background: hsl(var(--surface-2)); font-size: 0.75rem; font-weight: 700; }
.pay-row { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 640px) { .pay-row { grid-template-columns: auto minmax(0, 1fr); } }

/* Settings: How you sell — one row per way to order, the link under it. */
.stack-sell > * { padding: 0.875rem 0; }
.stack-sell > :first-child { padding-top: 0; }
.stack-sell > :last-child { padding-bottom: 0; }
.sell-link { padding: 0.5rem 0.75rem; margin-left: 2rem; }
@media (max-width: 480px) { .sell-link { margin-left: 0; } }

/* ------------------------------------------------------------ floor plan */
/* The dining room: a 24 × 16 grid. Scrolls sideways on a phone so tables stay tappable. */
.floor-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 1rem; }
.floor { position: relative; min-width: 36rem; aspect-ratio: 24 / 16; border: 1px solid hsl(var(--border)); border-radius: 1rem;
  background-color: hsl(var(--surface-2) / 0.5);
  background-image: linear-gradient(hsl(var(--border) / 0.55) 1px, transparent 1px), linear-gradient(90deg, hsl(var(--border) / 0.55) 1px, transparent 1px);
  background-size: calc(100% / 24) calc(100% / 16); touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; }
.ft { position: absolute; padding: 0; border: 0; background: none; color: hsl(var(--foreground)); font: inherit; cursor: pointer; touch-action: none; }
.ft .chair { position: absolute; width: 0.7rem; height: 0.7rem; border-radius: 0.25rem; transform: translate(-50%, -50%); background: hsl(var(--muted-foreground) / 0.55); }
.ft.round .chair { border-radius: 999px; }
.ft-top { position: absolute; inset: 18% 8%; display: grid; place-content: center; gap: 0.05rem; text-align: center; border-radius: 0.5rem;
  background: hsl(var(--card)); border: 1.5px solid hsl(var(--border-strong)); box-shadow: 0 1px 2px hsl(0 0% 0% / 0.15); transition: background 0.15s, border-color 0.15s; }
.ft.round .ft-top { inset: 16%; border-radius: 999px; }
.ft-name { font-size: 0.75rem; font-weight: 700; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-seats { font-size: 0.625rem; color: hsl(var(--muted-foreground)); line-height: 1; }
.ft:focus-visible { outline: none; }
.ft:focus-visible .ft-top { outline: 2px solid hsl(var(--ember)); outline-offset: 2px; }
/* States: free to pick, booked, the wrong size, picked. */
.ft.free .ft-top { border-color: hsl(var(--veg)); background: hsl(var(--veg) / 0.14); }
.ft.free .chair { background: hsl(var(--veg) / 0.7); }
.ft.booked, .ft.size { cursor: not-allowed; }
.ft.booked .ft-top { background: hsl(var(--destructive) / 0.12); border-color: hsl(var(--destructive) / 0.5); border-style: dashed; }
.ft.size { opacity: 0.4; }
.ft.selected .ft-top { background: hsl(var(--ember)); border-color: hsl(var(--ember)); color: #fff; }
.ft.selected .ft-seats { color: rgb(255 255 255 / 0.85); }
.ft.selected .chair { background: hsl(var(--ember)); }
.ft.dragging { z-index: 5; opacity: 0.85; }
.ft.dragging .ft-top { box-shadow: 0 8px 24px hsl(0 0% 0% / 0.35); }
.ft.clash .ft-top { border-color: hsl(var(--destructive)); background: hsl(var(--destructive) / 0.2); }
.ft.offline .ft-top { border-style: dashed; opacity: 0.7; }
.floor-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.floor-legend span { display: inline-flex; align-items: center; gap: 0.375rem; }
.floor-legend i { width: 0.8rem; height: 0.8rem; border-radius: 0.2rem; border: 1.5px solid hsl(var(--border-strong)); background: hsl(var(--card)); }
.floor-legend i.free { border-color: hsl(var(--veg)); background: hsl(var(--veg) / 0.14); }
.floor-legend i.booked { border: 1.5px dashed hsl(var(--destructive) / 0.6); background: hsl(var(--destructive) / 0.12); }
.floor-legend i.size { opacity: 0.4; }
.floor-legend i.selected { background: hsl(var(--ember)); border-color: hsl(var(--ember)); }
/* Choice chips: party size, day, time. */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.25rem; -webkit-overflow-scrolling: touch; }
.pick { flex-shrink: 0; min-width: 2.75rem; min-height: 2.75rem; padding: 0.375rem 0.75rem; border: 1px solid hsl(var(--border-strong)); border-radius: 0.75rem;
  background: hsl(var(--card)); color: hsl(var(--foreground)); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; display: grid; place-content: center; text-align: center; line-height: 1.15; }
.pick small { display: block; font-size: 0.6875rem; font-weight: 500; color: hsl(var(--muted-foreground)); }
.pick:hover:not(:disabled) { border-color: hsl(var(--ember) / 0.6); }
.pick[aria-pressed="true"] { border-color: hsl(var(--ember)); background: hsl(var(--ember)); color: #fff; }
.pick[aria-pressed="true"] small { color: rgb(255 255 255 / 0.85); }
.pick:disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr)); gap: 0.5rem; }
/* The floor-plan editor's side panel and tray. */
.floor-edit { display: grid; gap: 1rem; }
@media (min-width: 1024px) { .floor-edit { grid-template-columns: minmax(0, 1fr) 17rem; align-items: start; } }
.seat-picks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.375rem; }
.seat-stepper { display: flex; align-items: center; gap: 0.5rem; }
.seat-stepper output { flex: 1; text-align: center; font-size: 0.9375rem; color: hsl(var(--muted-foreground)); }
.seat-stepper output b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.25rem; color: hsl(var(--foreground)); }
.booking-row { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: start; padding: 0.875rem 1.125rem; }
.booking-row .when { font-family: var(--font-display, inherit); font-weight: 700; font-size: 1rem; line-height: 1.1; }
@media (max-width: 639px) { .booking-row { grid-template-columns: 3.5rem minmax(0, 1fr); } .booking-row .acts { grid-column: 1 / -1; } }
.step-no { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 999px; background: hsl(var(--ember) / 0.14); color: hsl(var(--ember)); font-size: 0.8125rem; font-weight: 700; }
.slot-grid .pick { white-space: nowrap; padding-left: 0.25rem; padding-right: 0.25rem; }

/* --------------------------------------------------- a guest books a table */
/* Three steps (when, table, details) beside a running summary; on a phone the summary becomes a bar at the bottom. */
.bk { max-width: 64rem; margin: 0 auto; padding: 1.25rem 1rem calc(7rem + env(safe-area-inset-bottom, 0px)); }
.bk-top { max-width: 64rem; }
.bk-closed { display: grid; justify-items: center; gap: 1.25rem; padding-top: 3rem; padding-bottom: 3rem; }
.bk-closed .empty { width: 100%; }

.bk-steps { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; font-size: 0.875rem; font-weight: 600; color: hsl(var(--faint)); }
.bk-steps li { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.bk-steps li + li::before { content: ''; width: clamp(0.75rem, 5vw, 2.5rem); height: 2px; border-radius: 2px; background: hsl(var(--border-strong) / 0.6); transition: background-color 300ms; }
.bk-steps li.done + li::before { background: hsl(var(--ember)); }
.bk-steps li > span, .bk-steps li > button { display: inline-flex; align-items: center; gap: 0.5rem; color: inherit; font: inherit; border-radius: 99px; }
.bk-steps .n { display: grid; place-items: center; width: 1.625rem; height: 1.625rem; flex-shrink: 0; border-radius: 99px; box-shadow: inset 0 0 0 1.5px hsl(var(--border-strong)); font-size: 0.8125rem; font-variant-numeric: tabular-nums; transition: background-color 200ms, color 200ms, box-shadow 200ms; }
.bk-steps .now { color: hsl(var(--foreground)); }
.bk-steps .now .n { background: hsl(var(--ember)); color: #fff; box-shadow: none; }
.bk-steps .done { color: hsl(var(--muted-foreground)); }
.bk-steps .done .n { background: hsl(var(--ember) / 0.14); color: hsl(var(--ember)); box-shadow: none; }
.bk-steps .done button:hover { color: hsl(var(--ember)); }

.bk-grid { display: grid; gap: 2rem; align-items: start; }
.bk-panel { min-width: 0; outline: none; }
.bk-panel.enter { animation: bk-in 320ms cubic-bezier(0.16, 1, 0.3, 1); }
.bk-times { transition: opacity 150ms; }
.bk-times.busy { opacity: 0.45; pointer-events: none; }
@keyframes bk-in { from { opacity: 0; transform: translateY(0.5rem); } }
.bk-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(1.625rem, 5vw, 2.125rem); line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
.bk-sub { margin-top: 0.5rem; color: hsl(var(--muted-foreground)); text-wrap: pretty; }
.bk-block { margin-top: 1.75rem; }
.bk-label { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.75rem; font-size: 0.9375rem; font-weight: 600; }
.bk-label-note { font-weight: 400; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
.bk-hint { display: flex; align-items: center; gap: 0.375rem; margin-top: 0.75rem; font-size: 0.8125rem; line-height: 1.45; color: hsl(var(--muted-foreground)); text-wrap: pretty; }
.bk-hint:not([style]) { display: block; }
.bk-hint svg.i { display: inline-block; vertical-align: -0.125rem; margin-right: 0.25rem; }
.bk-opt { margin-left: 0.25rem; font-weight: 400; font-size: 0.8125rem; color: hsl(var(--faint)); }

/* The choices: one look for guests, days, times and tables. */
.bk .pick { min-height: 3rem; border-color: hsl(var(--border-strong) / 0.7); transition: border-color 150ms, background-color 150ms, color 150ms, transform 150ms; }
.bk .pick:active:not(:disabled), .bk-day:active { transform: scale(0.96); }
.bk .pick[aria-pressed="true"], .bk-day[aria-pressed="true"] { background: hsl(var(--primary)); border-color: hsl(var(--primary)); box-shadow: var(--shadow-ember); }
.bk .pick:disabled { opacity: 0.38; }
.bk-party { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bk-party .pick { width: 3.25rem; }
.bk-party .pick { font-size: 1rem; font-variant-numeric: tabular-nums; }
.bk-days { display: flex; gap: 0.5rem; margin: 0 -1rem; padding: 0.125rem 1rem 0.5rem; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 1rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bk-days::-webkit-scrollbar { display: none; }
.bk-day { flex-shrink: 0; display: grid; justify-items: center; gap: 0.125rem; width: 4rem; padding: 0.625rem 0.25rem 0.5rem; scroll-snap-align: start;
  border: 1px solid hsl(var(--border-strong) / 0.7); border-radius: 0.875rem; background: hsl(var(--card)); color: hsl(var(--foreground)); font: inherit; cursor: pointer;
  transition: border-color 150ms, background-color 150ms, color 150ms, transform 150ms; }
.bk-day:hover { border-color: hsl(var(--ember) / 0.6); }
.bk-day .wd, .bk-day .mo { font-size: 0.6875rem; font-weight: 600; color: hsl(var(--muted-foreground)); }
.bk-day .dt { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.375rem; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.bk-day[aria-pressed="true"] { color: #fff; }
.bk-day[aria-pressed="true"] .wd, .bk-day[aria-pressed="true"] .mo { color: rgb(255 255 255 / 0.85); }
.bk-part + .bk-part { margin-top: 1.125rem; }
.bk-part-name { margin-bottom: 0.5rem; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
.bk .slot-grid { grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr)); }
.bk .slot-grid .pick { font-variant-numeric: tabular-nums; }
.bk-none { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem 1.125rem; border-radius: 0.875rem; background: hsl(var(--surface-2) / 0.6); font-size: 0.9375rem; line-height: 1.5; color: hsl(var(--muted-foreground)); text-wrap: pretty; }
.bk-none > svg.i { width: 1.25rem; height: 1.25rem; margin-top: 0.125rem; color: hsl(var(--faint)); }
.bk-none-lg { flex-wrap: wrap; align-items: center; margin-top: 1.5rem; padding: 1.5rem; }
.bk-none-lg > div { flex: 1 1 14rem; }

/* Placeholders in the shape of what's loading. */
.bk-skel { display: block; height: 3rem; border-radius: 0.75rem; background: linear-gradient(100deg, hsl(var(--surface-2) / 0.7) 40%, hsl(var(--accent)) 50%, hsl(var(--surface-2) / 0.7) 60%) 0 0 / 300% 100%; animation: bk-skel 1.4s linear infinite; }
.bk-skel-floor { height: auto; aspect-ratio: 16 / 10; margin-top: 1.5rem; border-radius: 1.25rem; }
@keyframes bk-skel { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* The room, cropped to its tables so it fills the width. Sizes follow the cell (100cqw / columns). */
.bk .floor-legend { margin-top: 1.25rem; }
.bk-floor { margin-top: 0.75rem; }
.bk-floor .floor-scroll { border-radius: 1.25rem; box-shadow: inset 0 0 0 1px hsl(var(--border)); background: radial-gradient(hsl(var(--border-strong) / 0.45) 1px, transparent 1.5px) 0 0 / 1.125rem 1.125rem, hsl(var(--surface-2) / 0.45); }
.floor.fit { border: 0; background: none; container-type: inline-size; min-height: 0; }
.floor.fit .ft { --cell: calc(100cqw / var(--cols)); transition: transform 150ms; }
.floor.fit .ft .chair { width: clamp(0.4rem, calc(var(--cell) * 0.42), 0.8rem); height: clamp(0.4rem, calc(var(--cell) * 0.42), 0.8rem); }
.floor.fit .ft-top { box-shadow: 0 2px 6px -2px hsl(20 40% 8% / 0.3); }
.floor.fit .ft-name { font-size: clamp(0.6875rem, calc(var(--cell) * 0.55), 0.9375rem); }
.floor.fit .ft-seats { font-size: clamp(0.5625rem, calc(var(--cell) * 0.42), 0.75rem); }
.floor.fit .ft.free:hover .ft-top { background: hsl(var(--veg) / 0.26); }
.floor.fit .ft.free:active { transform: scale(0.96); }
.floor.fit .ft.selected .ft-top { background: hsl(var(--primary)); border-color: hsl(var(--primary)); box-shadow: var(--shadow-ember); }
.floor.fit .ft.selected .chair { background: hsl(var(--primary)); }
.bk-picked { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; padding: 0.75rem 1rem; border-radius: 0.75rem; background: hsl(var(--surface-2) / 0.6); font-size: 0.9375rem; color: hsl(var(--muted-foreground)); }
.bk-picked.on { background: hsl(var(--veg) / 0.12); color: hsl(var(--foreground)); }
.bk-picked.on svg.i { color: hsl(var(--veg)); }

/* Details. */
.bk-form { display: grid; gap: 1.125rem; margin-top: 1.5rem; max-width: 30rem; }
.bk-form .input { height: 3rem; font-size: 1rem; border-color: hsl(var(--border-strong) / 0.7); border-radius: 0.625rem; background: hsl(var(--card)); }
.bk-form .input:focus-visible { outline: 2px solid hsl(var(--ember)); outline-offset: 1px; border-radius: 0.625rem; }
.bk-form .field-error { font-size: 0.8125rem; color: hsl(var(--danger-text)); }
.bk-recap { display: flex; align-items: flex-start; gap: 0.625rem; padding: 0.875rem 1rem; border-radius: 0.75rem; background: hsl(var(--surface-2) / 0.6); font-size: 0.9375rem; line-height: 1.45; }
.bk-recap svg.i { margin-top: 0.2rem; color: hsl(var(--ember)); }

.bk-more-days { display: none; align-items: center; gap: 0.375rem; margin-top: 0.75rem; min-height: 2.25rem; font-size: 0.875rem; font-weight: 600; color: hsl(var(--ember)); }
.bk-more-days:hover { text-decoration: underline; }

/* The running summary: beside the steps on a wide screen. */
.bk-side { display: none; }
.bk-side-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; }
.bk-rows { margin: 0.75rem 0 1.25rem; }
.bk-row { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid hsl(var(--border)); font-size: 0.9375rem; }
.bk-row dt { display: flex; align-items: center; gap: 0.5rem; align-self: start; color: hsl(var(--muted-foreground)); }
.bk-row dt svg.i { color: hsl(var(--faint)); }
.bk-row dd { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.125rem 0.75rem; margin: 0; font-weight: 600; }
.bk-row dd.unset { font-weight: 400; color: hsl(var(--faint)); }
.bk-row dd .muted { font-weight: 400; }
.bk-row dd > span { min-width: 0; }
.bk-edit { font-size: 0.8125rem; font-weight: 600; color: hsl(var(--ember)); }
.bk-edit:hover { text-decoration: underline; }

/* …and a bar under the thumb on a phone. */
.bk-bar { position: fixed; inset: auto 0 0 0; z-index: 35; border-top: 1px solid hsl(var(--border)); background: hsl(var(--background) / 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.bk-bar-in { display: flex; align-items: center; gap: 0.75rem; max-width: 64rem; margin: 0 auto; padding: 0.75rem 1rem; }
.bk-bar-in p { flex: 1; display: grid; font-size: 0.875rem; font-weight: 600; line-height: 1.3; }
.bk-bar-step { font-size: 0.75rem; font-weight: 500; color: hsl(var(--muted-foreground)); }
.bk-bar .btn { flex-shrink: 0; padding: 0 1.125rem; }

@media (min-width: 900px) {
  .bk { padding-top: 2rem; padding-bottom: 4rem; }
  .bk-steps { margin-bottom: 2rem; }
  .bk-grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; }
  .bk-side { display: block; position: sticky; top: 5.5rem; padding: 1.5rem; border-radius: 1.25rem; background: hsl(var(--card)); box-shadow: inset 0 0 0 1px hsl(var(--border)), var(--shadow-lift); }
  .bk-bar { display: none; }
  .bk-days { display: grid; grid-template-columns: repeat(7, minmax(0, 4.25rem)); margin: 0; padding: 0; overflow: visible; }
  .bk-day { width: auto; }
  .bk-days:not(.all) .bk-day:nth-child(n + 15) { display: none; }
  .bk-more-days { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) { .bk-panel, .bk-skel { animation: none; } }

/* --------------------------------------------------- the booking's own page */
.bkd { max-width: 31rem; margin: 0 auto; padding: 1.5rem 1rem calc(3rem + env(safe-area-inset-bottom, 0px)); }
.bkd-skel { height: 26rem; border-radius: 1.5rem; }
.bkd-ticket { --tone: var(--ember); overflow: hidden; border-radius: 1.5rem; background: hsl(var(--card)); box-shadow: inset 0 0 0 1px hsl(var(--border)), var(--shadow-lift); animation: bk-in 400ms cubic-bezier(0.16, 1, 0.3, 1); }
.bkd-ticket.wait { --tone: var(--amber); }
.bkd-ticket.good { --tone: var(--veg); }
.bkd-ticket.bad { --tone: var(--danger-text); }
.bkd-ticket.off { --tone: var(--muted-foreground); }
.bkd-status { display: flex; gap: 0.875rem; padding: 1.5rem 1.5rem 1.25rem; background: linear-gradient(hsl(var(--tone) / 0.13), hsl(var(--tone) / 0.03)); }
.bkd-ic { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex-shrink: 0; border-radius: 0.875rem; background: hsl(var(--tone) / 0.18); color: hsl(var(--tone)); }
.bkd-ic svg.i { width: 1.25rem; height: 1.25rem; }
.bkd-ticket.wait .bkd-ic svg.i { animation: ember-pulse 2.4s ease-in-out infinite; }
.bkd-status h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.375rem; line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; }
.bkd-status p { margin-top: 0.375rem; font-size: 0.9375rem; line-height: 1.5; color: hsl(var(--muted-foreground)); text-wrap: pretty; }
.bkd-status .bkd-reason { color: hsl(var(--foreground)); }
.bkd-path { display: flex; padding: 1rem 1.5rem 0; font-size: 0.75rem; font-weight: 600; color: hsl(var(--faint)); }
.bkd-path li { position: relative; flex: 1; display: grid; justify-items: center; gap: 0.375rem; text-align: center; }
.bkd-path li + li::before { content: ''; position: absolute; right: calc(50% + 0.75rem); left: calc(-50% + 0.75rem); top: 0.5625rem; height: 2px; border-radius: 2px; background: hsl(var(--border-strong) / 0.6); }
.bkd-path li.done + li::before { background: hsl(var(--tone)); }
.bkd-path .dot { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 99px; background: hsl(var(--card)); box-shadow: inset 0 0 0 2px hsl(var(--border-strong)); color: #fff; }
.bkd-path .done, .bkd-path .now { color: hsl(var(--foreground)); }
.bkd-path .done .dot { background: hsl(var(--tone)); box-shadow: none; }
.bkd-path .now .dot { background: hsl(var(--tone)); box-shadow: 0 0 0 4px hsl(var(--tone) / 0.2); }
:root[data-theme='dark'] .bkd-path .dot { color: hsl(var(--card)); }
.bkd-when { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; }
.bkd-date { display: grid; justify-items: center; width: 3.75rem; flex-shrink: 0; overflow: hidden; border-radius: 0.875rem; box-shadow: inset 0 0 0 1px hsl(var(--border-strong) / 0.7); background: hsl(var(--background)); }
.bkd-date span { width: 100%; padding: 0.1875rem 0; background: hsl(var(--primary)); color: #fff; font-size: 0.6875rem; font-weight: 700; text-align: center; }
.bkd-date b { padding: 0.25rem 0 0.375rem; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.625rem; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.bkd-day { font-size: 0.9375rem; color: hsl(var(--muted-foreground)); }
.bkd-time { margin-top: 0.125rem; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.875rem; line-height: 1.1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.bkd-time span { font-family: 'Inter Tight', sans-serif; font-weight: 400; font-size: 0.9375rem; letter-spacing: 0; color: hsl(var(--muted-foreground)); }
/* The tear line of a ticket, with a notch at each edge. */
.bkd-facts { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.125rem 1rem; margin: 0; padding: 1.5rem; border-top: 2px dashed hsl(var(--border-strong) / 0.6); }
.bkd-facts::before, .bkd-facts::after { content: ''; position: absolute; top: -0.6875rem; width: 1.25rem; height: 1.25rem; border-radius: 99px; background: hsl(var(--background)); box-shadow: inset 0 0 0 1px hsl(var(--border)); }
.bkd-facts::before { left: -0.625rem; }
.bkd-facts::after { right: -0.625rem; }
.bkd-facts .wide { grid-column: 1 / -1; }
.bkd-facts dt { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
.bkd-facts dd { margin: 0.125rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.bkd-where { display: flex; gap: 0.625rem; margin: 0 1.5rem; padding: 1rem 0 1.375rem; border-top: 1px solid hsl(var(--border)); font-size: 0.875rem; line-height: 1.5; color: hsl(var(--muted-foreground)); }
.bkd-where svg.i { margin-top: 0.2rem; }
.bkd-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.625rem; margin-top: 1.25rem; }
.bkd-actions .btn:first-child:not(.btn-outline) { grid-column: 1 / -1; }
.bkd-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; margin-top: 1.5rem; font-size: 0.875rem; }
.bkd-more .linkish { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.75rem; }
.bkd-cancel { min-height: 2.75rem; color: hsl(var(--muted-foreground)); text-decoration: underline; text-underline-offset: 0.25em; }
.bkd-cancel:hover { color: hsl(var(--danger-text)); }
@media (prefers-reduced-motion: reduce) { .bkd-ticket, .bkd-ticket.wait .bkd-ic svg.i { animation: none; } }

/* ------------------------------------- super admin: contact-page messages */
.msg { display: grid; gap: 0.625rem; padding: 1rem 1.125rem; }
.msg-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem; }
.msg-who { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; min-width: 0; }
.msg-dot { width: 0.5rem; height: 0.5rem; flex-shrink: 0; border-radius: 99px; background: hsl(var(--ember)); }
.msg.read .msg-dot { background: transparent; box-shadow: inset 0 0 0 1.5px hsl(var(--border-strong)); }
.msg.read .msg-who b { font-weight: 500; }
.chip-flat { padding: 0.125rem 0.5rem; border-radius: 0.375rem; background: hsl(var(--surface-2)); font-size: 0.75rem; font-weight: 500; color: hsl(var(--muted-foreground)); }
.msg-text { max-width: 44rem; font-size: 0.9375rem; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.msg.read .msg-text { color: hsl(var(--muted-foreground)); }
.msg-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.msg-foot .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------- settings: the website's look */
.look-grid { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.look { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.75rem 1rem; align-items: center; padding: 0.75rem; border-radius: 0.875rem; box-shadow: inset 0 0 0 1px hsl(var(--border)); transition: box-shadow 150ms; }
.look.on { box-shadow: inset 0 0 0 2px hsl(var(--ember)); background: hsl(var(--ember) / 0.06); }
.look-thumb { width: 100%; height: auto; border-radius: 0.5rem; box-shadow: 0 0 0 1px hsl(var(--border-strong) / 0.5); }
.look.locked .look-thumb { opacity: 0.7; }
.look-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: -0.015em; }
.look-tag { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.125rem 0.5rem; border-radius: 0.375rem; background: hsl(var(--ember) / 0.14); color: hsl(var(--ember)); font-family: 'Inter Tight', sans-serif; font-size: 0.75rem; font-weight: 600; letter-spacing: 0; }
.look-lock { display: flex; align-items: center; gap: 0.375rem; margin-top: 0.25rem; font-size: 0.75rem; font-weight: 600; color: hsl(var(--amber)); }
/* Website: a look that has a photo gallery says so. */
.look-has { display: flex; align-items: center; gap: 0.375rem; margin-top: 0.25rem; font-size: 0.75rem; font-weight: 600; color: hsl(var(--muted-foreground)); }
.look-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; }
@media (min-width: 640px) {
  .look { grid-template-columns: 7.5rem minmax(0, 1fr) auto; }
  .look-acts { grid-column: auto; }
}

/* ------------------------------------- super admin: the website look builder */
.look-row { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.75rem 1rem; align-items: center; padding: 0.75rem 1.125rem; }
.look-row > :last-child { grid-column: 1 / -1; }
@media (min-width: 640px) { .look-row { grid-template-columns: 6.5rem minmax(0, 1fr) auto; } .look-row > :last-child { grid-column: auto; } }
.look-live { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; align-items: center; padding: 0.75rem; border-radius: 0.875rem; background: hsl(var(--surface-2) / 0.6); }
.look-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.5rem; }
.look-tiles.with-thumb { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); }
.look-tile { display: grid; gap: 0.25rem; align-content: start; text-align: left; padding: 0.625rem; border-radius: 0.75rem; background: hsl(var(--background)); box-shadow: inset 0 0 0 1px hsl(var(--border-strong) / 0.7); color: hsl(var(--foreground)); transition: box-shadow 150ms, background-color 150ms; }
.look-tile:hover { box-shadow: inset 0 0 0 1px hsl(var(--ember) / 0.6); }
.look-tile[aria-checked='true'] { box-shadow: inset 0 0 0 2px hsl(var(--ember)); background: hsl(var(--ember) / 0.08); }
.look-tile .look-thumb { margin-bottom: 0.375rem; }
.look-colours { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; }
.look-colours .input[type='color'] { width: 3.5rem; height: 2.75rem; flex-shrink: 0; }
.blk-list { display: grid; gap: 0.375rem; margin: 0; padding: 0; list-style: none; }
.blk-list li { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.5rem 0.5rem 0.75rem; border-radius: 0.75rem; background: hsl(var(--background)); box-shadow: inset 0 0 0 1px hsl(var(--border-strong) / 0.7); }
.blk-n { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; flex-shrink: 0; border-radius: 99px; background: hsl(var(--ember) / 0.14); color: hsl(var(--ember)); font-size: 0.75rem; font-weight: 700; }
.blk-add { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.625rem; }

/* ------------------------------------------------- an uploaded logo stands alone */
/* The staff app's and the super admin panel's bar: with a logo uploaded, it takes the place of the name and "signed in as". */
.staff-bar.has-logo > .logo { width: auto; max-width: min(11rem, 38vw); height: 1.5rem; object-fit: contain; object-position: left center; border-radius: 0; margin-right: 0.75rem; }
.staff-bar.has-logo > .staff-who { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media (min-width: 768px) { .staff-bar.has-logo > .logo { max-width: 12rem; } }
/* On a phone the sections live in the bottom bar and the name is hidden, so nothing was left to push the
   bar's buttons across: the logo takes the spare room, and they sit at the right edge. */
@media (max-width: 767.98px) { .staff-bar.has-logo > .logo { margin-right: auto; } }
/* Settings: a logo's preview keeps its own shape, wide or square. */
.logo-preview.wide { width: auto; min-width: 6rem; max-width: 100%; height: 5rem; }
/* The restaurant's website: a wide logo (a wordmark) stands alone; a square one keeps the name beside it. */
.site-brand.wordmark img { width: auto; max-width: min(10rem, 40vw); height: 2.25rem; object-fit: contain; border-radius: 0; }
.site-brand.wordmark span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* A logo for light screens and one for dark: both are on the page, and the theme shows the right one. */
:root[data-theme='light'] .on-dark, :root:not([data-theme='light']) .on-light { display: none !important; }
.splash-logo { width: auto; max-width: 12rem; }
/* Settings: one tile per picture, each previewed on the background it's for. */
/* The staff's Notifications: whether alerts reach this device, then what they were told, newest first. */
.icon-btn .notice-count { position: absolute; right: -0.25rem; top: -0.25rem; pointer-events: none; }
.notice-device { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.625rem 0.75rem; align-items: center; padding: 0.875rem; border-radius: 0.875rem; background: hsl(var(--surface-2)); font-size: 0.875rem; line-height: 1.45; }
.notice-device .btn { grid-column: 1 / -1; }
.notice-device.on .notice-ic { background: hsl(var(--veg) / 0.16); color: hsl(var(--veg)); }
.notice-device.blocked .notice-ic { background: hsl(var(--destructive) / 0.14); color: hsl(var(--danger-text)); }
.notice-ic { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex-shrink: 0; border-radius: 0.625rem; background: hsl(var(--accent)); color: hsl(var(--muted-foreground)); }
.notice-list { display: grid; margin: 0; padding: 0; list-style: none; }
.notice-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.75rem 0; border-top: 1px solid hsl(var(--border)); font-size: 0.875rem; }
.notice-list li:first-child a { border-top: 0; }
.notice-list b { display: block; font-weight: 600; }
.notice-body { display: block; color: hsl(var(--muted-foreground)); overflow-wrap: anywhere; }
.notice-list time { font-size: 0.75rem; color: hsl(var(--faint)); white-space: nowrap; }
.notice-list .unread .notice-ic { background: hsl(var(--ember) / 0.14); color: hsl(var(--ember)); }
.notice-list .unread b::after { content: ''; display: inline-block; width: 0.4375rem; height: 0.4375rem; margin-left: 0.375rem; border-radius: 99px; background: hsl(var(--ember)); vertical-align: middle; }
@media (min-width: 480px) { .notice-device { grid-template-columns: auto minmax(0, 1fr) auto; } .notice-device .btn { grid-column: auto; } }

/* Super admin Settings: the front page's photographs, one row for each place a picture sits. */
.site-photos { display: grid; margin: 0; padding: 0; list-style: none; }
.site-photos li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.625rem 0.875rem; align-items: center; padding: 0.75rem 0; border-top: 1px solid hsl(var(--border)); font-size: 0.875rem; }
.site-photo-thumb { display: grid; place-items: center; width: 4.5rem; height: 3.375rem; border-radius: 0.5rem; background: hsl(var(--surface-2)); color: hsl(var(--faint)); overflow: hidden; }
.site-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.site-photo-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.site-photo-acts label { cursor: pointer; }
/* Super admin Settings: the social links, one row each. */
.social-list { display: grid; margin: 0; padding: 0; list-style: none; }
.social-list li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.625rem 0.875rem; align-items: center; padding: 0.75rem 0; border-top: 1px solid hsl(var(--border)); font-size: 0.875rem; }
.social-list li.off .social-ic, .social-list li.off .social-url { opacity: 0.55; }
.social-ic { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: hsl(var(--surface-2)); }
.social-url { display: block; color: hsl(var(--muted-foreground)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; }
.social-acts label { display: inline-flex; margin-right: 0.25rem; cursor: pointer; }
@media (min-width: 640px) { .social-list li { grid-template-columns: 2.5rem minmax(0, 1fr) auto; } .social-acts { grid-column: auto; justify-content: flex-end; flex-wrap: nowrap; } }
@media (min-width: 640px) { .site-photos li { grid-template-columns: 4.5rem minmax(0, 1fr) auto; } .site-photo-acts { grid-column: auto; justify-content: flex-end; } }
.logo-slots { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .logo-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.logo-slot { display: grid; gap: 0.625rem; align-content: start; padding: 0.75rem; border-radius: 0.875rem; box-shadow: inset 0 0 0 1px hsl(var(--border)); }
.logo-slot h3 { font-size: 0.875rem; font-weight: 600; }
.logo-stage { display: grid; place-items: center; height: 5.5rem; padding: 0.75rem; border-radius: 0.625rem; box-shadow: inset 0 0 0 1px hsl(var(--border-strong) / 0.5); }
.logo-stage.light { background: #f7f1e8; }
.logo-stage.dark { background: #14100e; }
.logo-stage.tab { background: hsl(var(--surface-2)); }
.logo-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-stage.tab img { width: 2rem; height: 2rem; border-radius: 0.375rem; }
.logo-slot .upload-label { justify-content: center; height: 2.5rem; font-size: 0.8125rem; padding: 0 0.75rem; }
.logo-slot .logo-from { font-size: 0.75rem; color: hsl(var(--faint)); }

/* Website: the gallery's photos, the restaurant's own first, then the dish photos filling the tiles left. */
.gp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; padding: 0; list-style: none; }
@media (min-width: 640px) { .gp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gp { display: grid; gap: 0.5rem; align-content: start; min-width: 0; padding: 0.5rem; border-radius: 0.875rem; box-shadow: inset 0 0 0 1px hsl(var(--border)); }
.gp-img { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 0.5rem; background: hsl(var(--surface-2)); }
.gp-img img { width: 100%; height: 100%; object-fit: cover; }
.gp-tag { position: absolute; left: 0.375rem; top: 0.375rem; min-width: 1.5rem; padding: 0.125rem 0.4375rem; border-radius: 0.375rem; background: hsl(20 30% 4% / 0.78); color: #fff; font-size: 0.6875rem; font-weight: 700; line-height: 1.25rem; text-align: center; }
.gp .input { height: 2.5rem; font-size: 0.8125rem; }
.gp-acts { display: flex; align-items: center; gap: 0.125rem; }
.gp-acts .gp-remove { margin-left: auto; min-width: 2.5rem; padding: 0 0.625rem; }
.gp.waiting .gp-img img, .gp.filler .gp-img img { opacity: 0.55; }
.gp.filler { box-shadow: inset 0 0 0 1px hsl(var(--border) / 0.6); background: hsl(var(--surface-2) / 0.4); }
.gp-from { min-width: 0; padding: 0 0.125rem 0.25rem; font-size: 0.8125rem; font-weight: 600; overflow-wrap: anywhere; }
.gp-from span { display: block; font-size: 0.75rem; font-weight: 500; color: hsl(var(--faint)); }
/* Website: the look's blocks, top to bottom. */
/* Website: the reviews the owner added, and the form one is typed into. */
.rvw-list { margin: 0; padding: 0; list-style: none; }
.rvw-list > li { padding: 0.875rem 0; }
.rvw-list > li:first-child { padding-top: 0; }
.rvw { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 0.75rem; align-items: start; }
.rvw-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.625rem; font-size: 0.875rem; }
.rvw-head b { overflow-wrap: anywhere; }
.rvw-src { font-size: 0.75rem; font-weight: 600; color: hsl(var(--ember)); text-decoration: underline; text-underline-offset: 2px; }
.rvw-text { margin-top: 0.25rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rvw-stars { display: inline-flex; gap: 0.0625rem; color: hsl(var(--border-strong)); }
.rvw-stars svg.i { width: 0.875rem; height: 0.875rem; fill: currentColor; stroke-width: 0; }
.rvw-stars svg.i.on { color: hsl(40 96% 50%); }
.rvw-acts { display: flex; align-items: center; gap: 0.125rem; }
.rvw-form { padding: 1rem; border-radius: 0.75rem; background: hsl(var(--background)); box-shadow: inset 0 0 0 1px hsl(var(--border-strong) / 0.7); }
.rvw-row { display: grid; gap: 0.75rem; }
@media (min-width: 560px) { .rvw-row { grid-template-columns: minmax(0, 1fr) 8rem; } }
@media (max-width: 479px) { .rvw { grid-template-columns: minmax(0, 1fr); } .rvw-acts { margin-left: -0.625rem; } }

.wb-list { margin: 0; padding: 0; list-style: none; }
.wb-list li { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.625rem 0; }
.wb-list li:first-child { padding-top: 0; }
.wb-list li:last-child { padding-bottom: 0; }
.wb-n { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: hsl(var(--ember) / 0.14); color: hsl(var(--ember)); font-size: 0.75rem; font-weight: 700; }
.wb-list li.off .wb-n { background: hsl(var(--surface-2)); color: hsl(var(--faint)); }
.wb-off { margin-left: 0.5rem; padding: 0.125rem 0.4375rem; border-radius: 0.375rem; background: hsl(var(--amber) / 0.14); color: hsl(var(--amber)); font-size: 0.6875rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 479px) { .wb-list li { grid-template-columns: 1.75rem minmax(0, 1fr); } .wb-list li > .btn { grid-column: 2; justify-self: start; margin: -0.25rem 0 0 -0.75rem; } }

/* ------------------------------------------------- super admin: Revenue */
/* One bar a month, anchored to the baseline; the amount shows on hover or focus, and in the table under the chart. */
.rev-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; align-items: end; height: 13rem; padding-top: 1.5rem; border-bottom: 1px solid hsl(var(--border)); margin-bottom: 1.5rem; }
.rev-col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; padding: 0 12%; outline: none; }
.rev-bar { width: 100%; max-width: 2rem; min-height: 0; border-radius: 4px 4px 0 0; background: hsl(var(--primary)); transition: opacity 120ms; }
.rev-col:hover .rev-bar, .rev-col:focus-visible .rev-bar { opacity: 0.75; }
.rev-col:focus-visible { box-shadow: 0 0 0 2px hsl(var(--ring)); border-radius: 0.375rem; }
.rev-val { font-size: 0.6875rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; margin-bottom: 0.25rem; color: hsl(var(--foreground)); }
.rev-month { position: absolute; top: 100%; margin-top: 0.375rem; font-size: 0.6875rem; color: hsl(var(--muted-foreground)); }
.rev-col::after { content: attr(data-tip); position: absolute; bottom: calc(100% - 1.25rem); left: 50%; transform: translateX(-50%); z-index: 2; padding: 0.375rem 0.625rem; border-radius: 0.5rem; background: hsl(var(--foreground)); color: hsl(var(--background)); font-size: 0.75rem; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 120ms; }
.rev-col:hover::after, .rev-col:focus-visible::after { opacity: 1; }
.rev-col:nth-child(-n + 3)::after { left: 0; transform: none; }
.rev-col:nth-last-child(-n + 3)::after { left: auto; right: 0; transform: none; }
.rev-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.rev-table th { text-align: left; font-size: 0.75rem; font-weight: 600; color: hsl(var(--muted-foreground)); padding: 0.375rem 0.5rem 0.375rem 0; border-bottom: 1px solid hsl(var(--border)); }
.rev-table td { padding: 0.5rem 0.5rem 0.5rem 0; border-bottom: 1px solid hsl(var(--border) / 0.6); }
.rev-table tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------- an invoice for a plan payment */
/* Shown in a sheet and printed on its own: plain black on white, so it reads the same on paper. */
.invoice { display: grid; gap: 1.25rem; padding: 0.25rem 0 0.5rem; font-size: 0.875rem; line-height: 1.5; }
.invoice p { margin: 0; }
.inv-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.inv-top > div:last-child { text-align: right; }
.inv-title { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }
.inv-k { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.65; }
.inv-name { font-weight: 600; }
.inv-sub { font-size: 0.75rem; opacity: 0.7; }
.inv-lines { width: 100%; border-collapse: collapse; }
.inv-lines th { text-align: left; font-size: 0.75rem; font-weight: 600; padding: 0.375rem 0; border-bottom: 1px solid currentColor; }
.inv-lines td { padding: 0.5rem 0; vertical-align: top; }
.inv-lines th:last-child, .inv-lines td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.inv-lines tbody td { border-bottom: 1px solid hsl(var(--border)); }
.inv-total td { font-weight: 700; border-top: 1px solid currentColor; }

/* The platform's demo restaurant says so on every page. */
.demo-strip { padding: 0.5rem 1rem; background: hsl(var(--foreground)); color: hsl(var(--background)); font-size: 0.8125rem; line-height: 1.45; text-align: center; text-wrap: pretty; }
.demo-strip a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; white-space: nowrap; }
