/*
 * 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.97);
  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; }
.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; overflow-x: auto; }
.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 { display: none; }
@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: 1280px) { .staff-nav a .lbl { display: inline; } .staff-nav a { padding: 0.5rem 0.625rem; font-size: 0.8125rem; gap: 0.3rem; } }
.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.97);
  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 .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; }
.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:disabled:not([aria-checked='true']) { opacity: 0.4; cursor: not-allowed; transform: none; }
.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)); } }
.menu-cols { }
@media (min-width: 1024px) { .menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; } }
.menu-cols section { margin-bottom: 2rem; }
.menu-col { min-width: 0; }
.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)); }
.search-results button.active { background: hsl(var(--primary) / 0.14); box-shadow: inset 3px 0 0 hsl(var(--primary)); }
/* The order forms' menu: section tabs over a compact list of dishes with their Add buttons. */
.de-tabs { display: flex; gap: 0.375rem; overflow-x: auto; padding-bottom: 0.125rem; }
.de-tabs [role='tab'] { flex-shrink: 0; min-height: 2.25rem; padding: 0 0.875rem; border-radius: 99px; background: hsl(var(--surface-2)); color: hsl(var(--muted-foreground)); font-size: 0.8125rem; font-weight: 500; white-space: nowrap; }
.de-tabs [role='tab'][aria-selected='true'] { background: hsl(var(--primary)); color: #fff; font-weight: 700; }
.de-menu { overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: 0.75rem; }
.de-menu li { display: flex; gap: 0.625rem; padding: 0.625rem; border-top: 1px solid hsl(var(--border)); }
.de-menu li:first-child { border-top: 0; }
.de-menu img, .de-menu .ph { width: 3.25rem; height: 3.25rem; flex-shrink: 0; border-radius: 0.5rem; object-fit: cover; background: hsl(var(--surface-2)); }
.de-menu .ph { display: flex; align-items: center; justify-content: center; color: hsl(var(--faint)); }
.de-opts { display: flex; flex-wrap: wrap; gap: 0.375rem 0.75rem; margin-top: 0.375rem; }
.de-opt { display: inline-flex; align-items: center; gap: 0.375rem; }
.de-add { display: inline-flex; align-items: center; gap: 0.125rem; min-height: 2.25rem; padding: 0 0.75rem; border-radius: 0.5rem; border: 1.5px solid hsl(var(--ember)); color: hsl(var(--ember)); font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.de-add.sm { min-height: 2rem; padding: 0 0.5rem; font-size: 0.75rem; }
.de-add:hover { background: hsl(var(--ember) / 0.12); }
.de-add.on { background: hsl(var(--ember)); color: #fff; }
.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); }
.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 .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.97);
  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: the words on the page's own canvas, our real dishes beside them at full light */
.hero { padding: calc(env(safe-area-inset-top, 0px) + 4.75rem) 0 2.5rem; }
.hero-inner { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; display: grid; gap: 1.75rem; }
.hero-copy { min-width: 0; }
.hero-brand { display: flex; align-items: center; gap: 0.875rem; }
.hero-logo { display: block; width: 3.5rem; height: auto; flex-shrink: 0; filter: drop-shadow(0 4px 14px hsl(var(--primary) / 0.25)); }
.hero-status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 600; color: hsl(var(--muted-foreground)); }
.hero-status .dot { position: relative; width: 0.5rem; height: 0.5rem; }
.hero-status.closed .dot { background: hsl(var(--danger-text)); }
/* "Open now" beats a few times on arrival, then stays still: a ring that scales and fades, so only the GPU works. */
.hero-status.open .dot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: hsl(var(--veg)); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-status.open .dot::after { animation: live-dot 2.4s cubic-bezier(0.16, 1, 0.3, 1) 4; }
}
@keyframes live-dot { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(3); opacity: 0; } }
/* Two lines, always: the claim, then the promise in ember. Sized off the viewport so the first line never wraps. */
.hero h1 { margin-top: 1.25rem; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(1.75rem, 9.4vw, 3rem);
  line-height: 1; letter-spacing: -0.04em; white-space: nowrap; }
.hero h1 em { display: block; font-style: normal; color: hsl(var(--ember)); padding-bottom: 0.08em; }
.hero-lead { margin-top: 0.875rem; max-width: 30rem; font-size: 1rem; line-height: 1.6; color: hsl(var(--muted-foreground)); text-wrap: pretty; }
.hero-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.625rem; }
.hero-actions .btn { flex: 1 1 9rem; white-space: nowrap; }
.hero-actions .btn:active { transform: translateY(1px); }
.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); }

/* The plates: one lead dish large, two beside it at different heights. On phones they sit above the words. */
.hero-plates { order: -1; display: grid; gap: 0.5rem; height: clamp(12rem, 34svh, 17rem); grid-template-columns: 1.7fr 1fr; grid-template-rows: 3fr 2fr; }
.hero-plates img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 1rem; background: hsl(var(--surface-2)); }
.hero-plates img:first-child { grid-row: 1 / -1; }
.hero-plates.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.hero-plates.n2 { grid-template-rows: 1fr; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: plate-in 800ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .hero-copy > :nth-child(4) { animation-delay: 240ms; }
  .hero-plates img { animation: hero-bg-in 1100ms calc(var(--i, 0) * 120ms) cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-plates img { transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1); }
  .hero-plates img:hover { transform: scale(1.015); }
  .pre { opacity: 0; transform: translateY(1.25rem); transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1); }
  .pre.in { opacity: 1; transform: none; }
}
@keyframes hero-bg-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes plate-in { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) {
  .hero { min-height: min(calc(100svh - 5.5rem), 52rem); display: flex; align-items: center; padding: 5.5rem 0 2.5rem; }
  .hero-inner { padding: 0 2.5rem; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
  .hero-logo { width: 4.5rem; }
  .hero h1 { margin-top: 2rem; font-size: clamp(2.5rem, 4.3vw, 4rem); }
  .hero-lead { margin-top: 1.25rem; font-size: 1.125rem; }
  .hero-actions { margin-top: 2.25rem; gap: 0.75rem; }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-plates { order: 0; height: clamp(26rem, 64svh, 36rem); gap: 0.75rem; grid-template-columns: 1.35fr 1fr; }
  .hero-plates img { border-radius: 1.25rem; }
  /* The side column drops a little, so the plates read as set down, not tiled. */
  .hero-plates.n3 img:nth-child(2) { margin-top: 2.5rem; height: calc(100% - 2.5rem); }
}

/* ------ facts: hours, delivery and where, one line each */
.facts { width: calc(100% - 2.5rem); max-width: 71rem; margin: 0 auto; display: grid; }
.facts > * { display: flex; align-items: center; gap: 0.875rem; padding: 1rem 0; border-top: 1px solid hsl(var(--border)); }
.facts > :last-child { border-bottom: 1px solid hsl(var(--border)); }
.facts svg.i { width: 1.25rem; height: 1.25rem; color: hsl(var(--ember)); }
.facts p { display: flex; flex-direction: column; min-width: 0; }
.facts span { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
.facts b { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.015em; line-height: 1.3; }
.facts a { transition: color 150ms; }
.facts a:hover b { color: hsl(var(--ember)); }
@media (min-width: 768px) {
  .facts { grid-auto-flow: column; grid-auto-columns: 1fr; border-block: 1px solid hsl(var(--border)); }
  .facts > * { border: 0 !important; padding: 1.5rem 1.5rem 1.5rem 0; }
  .facts > * + * { border-left: 1px solid hsl(var(--border)) !important; padding-left: 1.75rem; }
}
@media (min-width: 900px) { .facts { width: calc(100% - 5rem); } }

/* ------ 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 h1, .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 p { margin-top: 1rem; max-width: 36rem; 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; gap: 0.25rem;
  overflow-x: auto; margin: 2.25rem -1.25rem 0; padding: 0 1.25rem; background: hsl(var(--background) / 0.97);
  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: #fff; 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)); }

/* Privacy policy: long-form text under the usual section head */
.menu-sec.legal-sec { padding-top: calc(env(safe-area-inset-top, 0px) + 6.5rem); }
@media (min-width: 900px) { .menu-sec.legal-sec { padding-top: 8rem; } }
.legal { max-width: 46rem; margin-top: 2.5rem; line-height: 1.7; color: hsl(var(--foreground)); }
.legal h2 { margin-top: 2.5rem; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.2; }
.legal p, .legal ul { margin-top: 0.75rem; }
.legal ul { padding-left: 1.25rem; list-style: disc; }
.legal li + li { margin-top: 0.375rem; }
.legal a { color: hsl(var(--ember)); text-decoration: underline; text-underline-offset: 2px; }
.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; } }

/* ---------------------------------------------------------- dish options */
.opt-count { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.opt-row { display: grid; grid-template-columns: minmax(0, 1fr) 6rem auto auto; align-items: center; gap: 0.5rem; }
.veg-toggle { display: inline-flex; align-items: center; gap: 0.5rem; height: 2.75rem; min-width: 6.5rem; padding: 0 0.75rem;
  border: 1px solid hsl(var(--border-strong)); border-radius: 0.5rem; background: transparent;
  color: hsl(var(--foreground)); font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.veg-toggle:hover { border-color: hsl(var(--ember)); }
/* Phones: the name gets its own line, price, mark and delete beneath it. */
@media (max-width: 420px) {
  .opt-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .opt-row > [data-vname] { grid-column: 1 / -1; }
}
/* The guest's option picker: the chosen ones stand out. */
.pick-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border: 1px solid hsl(var(--border)); border-radius: var(--radius); }
button.pick-row { width: 100%; }
.pick-row .block { display: block; }
.pick-row.on { border-color: hsl(var(--ember)); background: hsl(var(--ember) / 0.08); }
.line-opt { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.125rem; font-size: 0.75rem; font-weight: 600; color: hsl(var(--ember)); }
