:root {
  --ink: #1d1b18;
  --muted: #6c665f;
  --line: #ded7cd;
  --paper: #fffaf2;
  --panel: #ffffff;
  --brand: #be3f28;
  --brand-dark: #8f291b;
  --accent: #24756c;
  --ready: #19704f;
  --warn: #b46b00;
  --shadow: 0 14px 30px rgba(45, 34, 25, 0.12);
}

/* Reservation Milestone 3: Experiences and customer commerce */
.experience-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.experience-links a { padding: 10px 14px; border: 1px solid #cab8aa; border-radius: 999px; color: #5d2b22; font-weight: 800; text-decoration: none; background: #fffdfa; }
.experience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.experience-card { overflow: hidden; padding: 20px; border: 1px solid #d7c7ba; border-radius: 16px; background: #fffdfa; box-shadow: 0 12px 28px rgba(59, 31, 23, .1); }
.experience-card-image { width: calc(100% + 40px); height: 190px; margin: -20px -20px 18px; object-fit: cover; }
.experience-card h2 { margin: 5px 0 9px; font-size: 28px; }
.experience-meta { color: #6b5147; font-weight: 800; line-height: 1.5; }
.experience-detail-hero { overflow: hidden; }
.experience-detail-image { width: calc(100% + 40px); max-height: 420px; margin: -20px -20px 22px; object-fit: cover; }
.experience-lede { max-width: 760px; font-size: 20px; line-height: 1.55; }
.reservation-consent { display: flex !important; grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.reservation-consent input { width: 20px; height: 20px; }
.guest-history-item { padding: 12px; border-radius: 8px; background: #f7eee5; font-weight: 700; }
.experience-admin-form { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.experience-admin-form textarea { min-height: 90px; }
.communication-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; align-items: center; margin-bottom: 18px; }
.communication-settings label { display: flex; min-width: 0; gap: 10px; align-items: center; font-weight: 800; overflow-wrap: anywhere; }
.communication-settings input[type="checkbox"] { flex: 0 0 24px; width: 24px !important; min-width: 24px; height: 24px; min-height: 24px !important; margin: 0; padding: 0; }
.communication-settings button { justify-self: start; }
@media (max-width: 620px) { .experience-grid { grid-template-columns: 1fr; } .experience-card-image { height: 160px; } }

/* Reservation operations: Milestone 2 */
.operations-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 0 0 22px;
}
.operations-tabs button { width: 100%; min-width: 0; }
.operations-tabs button.is-active { border-color: var(--brand); background: var(--brand); color: #fff; }
.operations-panel { display: none; }
.operations-panel.is-active { display: block; }
.operations-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 0 0 18px; }
.operations-section-heading h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.operations-section-heading label { display: grid; gap: 5px; font-weight: 800; }
.operations-section-heading input,
.calendar-controls input,
.calendar-controls select,
.rain-mode-controls input { min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px 10px; font: inherit; }
.today-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.today-dashboard-grid > section { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 16px; }
.today-dashboard-grid > section h2 { margin: 0 0 12px; font-size: 1.1rem; }
.forecast-cards,
.report-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.forecast-card,
.report-card { display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 14px; }
.forecast-card span,
.report-card span { color: var(--muted); font-size: 0.82rem; font-weight: 800; }
.forecast-card strong,
.report-card strong { font-size: 1.5rem; }
.owner-report-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.end-of-day-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.end-of-day-controls label { display: grid; gap: 6px; font-weight: 800; }
.end-of-day-controls .notice { flex-basis: 100%; margin: 0; }
.end-of-day-report { display: grid; gap: 20px; margin: 16px 0 26px; padding: 24px; border: 2px solid var(--line); border-radius: 20px; background: #fff; }
.end-of-day-report > header { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.end-of-day-report h2, .end-of-day-report h3, .end-of-day-report p { margin: 0; }
.end-of-day-report section { display: grid; gap: 8px; }
.end-of-day-report footer { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-weight: 700; }
.report-status { border-radius: 999px; padding: 8px 12px; background: #e8f5ef; color: #0d6857; }
.end-of-day-report.is-draft .report-status { background: #fff4d7; color: #815c00; }
.saved-report-list { margin-top: 26px; }
.saved-report-list > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.saved-report-list button { display: grid; gap: 4px; text-align: left; }
.saved-report-list button span { color: var(--muted); }
.payment-method-inline, .payment-method-field { display: grid; gap: 5px; font-weight: 800; }
.payment-method-inline span, .payment-method-field span,
.payment-method-field legend { color: var(--muted); font-size: .85rem; }
.payment-method-inline select { min-width: 150px; }
.payment-method-field {
  min-width: 280px;
  margin: 0;
  padding: 0;
  border: 0;
}
.payment-method-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.payment-method-choices button {
  min-height: 48px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  touch-action: manipulation;
}
.payment-method-choices button.is-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(176, 47, 31, .18);
}
.forecast-cards.is-warning .forecast-card { border-color: var(--warn); background: #fff8e8; }
.host-board-card { margin: 0 0 18px; border: 2px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.82); padding: 16px; }
.host-board-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.host-board-heading h2 { margin: 2px 0 5px; font-size: clamp(1.35rem, 3vw, 1.9rem); }
.host-board-heading p { margin: 0; }
.host-board-date { display: grid; gap: 5px; min-width: 180px; font-weight: 900; }
.host-board-date input { width: 100%; }
.host-board-legend { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.host-board-legend span { border-radius: 999px; padding: 5px 9px; font-size: .82rem; font-weight: 900; }
.legend-reservation { background: #dcecff; color: #154f7e; }
.legend-walk-in { background: #e4f7ed; color: #125f43; }
.legend-hold { background: #fff0c9; color: #754a00; }
.host-board-list { display: grid; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.host-timeline-row { display: grid; grid-template-columns: 105px repeat(var(--host-area-count), minmax(175px, 1fr)); min-width: var(--host-grid-width); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.host-timeline-header { border: 0; background: transparent; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.host-timeline-header > * { padding: 8px 10px; }
.host-timeline-time { display: grid; align-content: start; gap: 4px; background: #f5f0e9; padding: 12px 10px; }
.host-timeline-time strong { font-size: 1.12rem; }
.host-timeline-time span,
.host-timeline-time small { color: var(--muted); font-size: .78rem; }
.host-timeline-area { display: grid; align-content: start; gap: 7px; min-height: 92px; border-left: 1px solid var(--line); padding: 9px; }
.host-timeline-area.is-empty { place-content: center; text-align: center; }
.host-reservation-card { display: grid; gap: 3px; border-left: 4px solid #338fce; border-radius: 8px; background: #dcecff; padding: 9px; color: #173d5b; }
.host-reservation-button { width: 100%; border: 0; border-left: 4px solid #338fce; text-align: left; font: inherit; cursor: pointer; }
.host-reservation-button:hover,
.host-reservation-button:focus-visible { background: #c8e2ff; outline: 3px solid rgba(51, 143, 206, .25); outline-offset: 1px; }
.host-reservation-card.is-walk-in { background: #cfe5ff; }
.host-reservation-card span { color: #5a7184; font-size: .85rem; }
.host-reservation-card .host-card-action { color: #154f7e; font-size: .76rem; font-weight: 900; }
.host-walk-in-opening { border: 2px solid #53a27f; border-radius: 9px; background: #e4f7ed; padding: 8px; color: #125f43; font-weight: 900; }
.host-capacity-note { grid-column: 2 / -1; border-top: 1px solid var(--line); padding: 9px 12px; font-weight: 900; }
.host-capacity-note.is-hold { background: #fff0c9; color: #754a00; }
.host-capacity-note.is-blocked { background: #ffebe7; color: #8b2f24; }
.host-capacity-note.is-assignment { background: #fff5d9; color: #6d4b00; }
.operations-mini-card { display: grid; gap: 5px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.operations-mini-card:last-child { border-bottom: 0; }
.operations-mini-card > span { color: var(--muted); font-size: 0.88rem; }
.weather-alert,
.rain-summary { margin: 0 0 16px; border: 1px solid #4691a5; border-radius: 10px; background: #eaf8fb; padding: 13px; color: #174d5c; }
.weather-monitor-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 16px; border: 2px solid #4691a5; border-radius: 14px; background: #eaf8fb; padding: 16px; }
.weather-monitor-card h2 { margin: 2px 0 7px; font-size: clamp(1.2rem, 3vw, 1.65rem); }
.weather-monitor-card p { margin: 3px 0; }
.weather-monitor-card.is-danger { border-color: #a52b1d; background: #fff0ed; color: #6f1d13; animation: weather-pulse 1.25s ease-in-out 3; }
.weather-monitor-card.is-stale { border-color: var(--warn); background: #fff8e8; }
.weather-monitor-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.weather-monitor-card.is-danger #weather-acknowledge-button { border-color: #a52b1d; background: #a52b1d; color: #fff; }
.weather-settings-panel { margin-bottom: 16px; }
@keyframes weather-pulse { 50% { box-shadow: 0 0 0 7px rgba(165,43,29,.18); } }
.rain-summary { display: grid; gap: 10px; }
.rain-summary.is-warning { border-color: var(--warn); background: #fff4d9; color: #734900; }
.rain-reservation-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid currentColor; padding-top: 9px; }
.rain-mode-controls { display: grid; grid-template-columns: auto minmax(260px, 1fr) auto; align-items: end; gap: 12px; margin-bottom: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 13px; }
.rain-mode-controls label { display: grid; gap: 5px; font-weight: 800; }
.rain-mode-controls label:first-child { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; }
.rain-mode-controls label:first-child input { min-height: auto; }
.floor-plan-grid { display: grid; gap: 20px; }
.floor-area { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.55); padding: 15px; }
.floor-area-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.floor-area-heading h3 { margin: 0; font-size: 1.35rem; }
.floor-area-heading span { color: var(--muted); font-weight: 800; }
.floor-area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 13px; }
.floor-table { display: grid; min-height: 170px; align-content: start; gap: 5px; border: 3px solid var(--line); border-radius: 14px; background: var(--panel); padding: 14px; box-shadow: 0 8px 18px rgba(45,34,25,.07); }
.floor-table strong { font-size: 1.35rem; }
.floor-table > span,
.floor-table > small { color: var(--muted); }
.floor-table > b { margin: 8px 0; }
.floor-table-actions { display: grid; gap: 6px; margin-top: auto; }
.floor-table.is-joined { border-style: double; border-width: 5px; box-shadow: inset 0 0 0 2px rgba(36,117,108,.12), 0 8px 18px rgba(45,34,25,.07); }
.floor-table.is-dragging { opacity: .5; transform: scale(.98); }
.floor-join-label { border-radius: 7px; background: #e7f5f2; padding: 7px; color: #185d56 !important; font-size: .82rem; font-weight: 900; }
.floor-table.status-available { border-color: #59a787; }
.floor-table.status-reserved { border-color: #d49a31; background: #fffaf0; }
.floor-table.status-occupied { border-color: var(--brand); background: #fff1ed; }
.floor-table.status-cleaning { border-color: #6f7e8d; background: #edf1f4; }
.floor-table em { color: var(--warn); font-size: .78rem; font-weight: 800; }
.operations-form-card { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 15px; }
.table-layout-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.table-layout-card { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 14px; }
.table-layout-card.needs-review { border-color: var(--warn); background: #fff9ea; }
.table-layout-card strong { font-size: 1.2rem; }
.table-layout-card span { color: var(--muted); }
.table-layout-card em { color: var(--warn); font-size: .8rem; font-weight: 900; }
.reservation-flags { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 18px; margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.reservation-flags legend { font-weight: 900; }
.reservation-flags label { display: flex; min-width: 0; align-items: center; gap: 9px; line-height: 1.25; }
.reservation-form .reservation-flags input[type="checkbox"] { flex: 0 0 22px; width: 22px; min-width: 22px; height: 22px; min-height: 22px; margin: 0; padding: 0; }
.assignment-dialog-inner { display: grid; gap: 15px; padding: 22px; }
.reservation-dialog-fallback {
  position: fixed;
  inset: 5vh 5vw;
  z-index: 10000;
  max-height: 90vh;
  margin: auto;
  overflow: auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}
.wait-list-order-dialog-inner { display: grid; justify-items: center; gap: 14px; padding: 22px; text-align: center; }
.wait-list-order-dialog-inner .reservation-dialog-heading { width: 100%; }
.wait-list-order-dialog-inner > p { margin: 0; }
.wait-list-order-dialog-inner img { width: min(280px, 72vw); aspect-ratio: 1; border: 10px solid white; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.wait-list-order-dialog-inner > strong { color: #386347; font-size: 1.45rem; }
.wait-list-order-dialog-inner > input { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.wait-list-order-dialog-inner .reservation-dialog-actions { width: 100%; }
.assignment-suggestions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-height: 48vh; overflow-y: auto; }
.assignment-option { display: grid; align-items: start; gap: 3px; min-height: 88px; text-align: left; }
.assignment-option.recommended { border-color: var(--accent); background: #eef9f7; }
.assignment-option span,
.assignment-option small { color: var(--muted); }
.assignment-dialog-inner > label { display: grid; gap: 5px; font-weight: 800; }
.assignment-dialog-inner textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px; font: inherit; }
.calendar-controls { display: flex; gap: 8px; }
.calendar-totals { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 18px; }
.calendar-day-card { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 13px; }
.calendar-day-card span,
.calendar-day-card small { color: var(--muted); }
.reservation-card-actions select { min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 7px; font: inherit; }

@media (max-width: 760px) {
  .operations-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .operations-tabs button {
    width: 100%;
    min-height: 46px;
    padding: 8px 6px;
    line-height: 1.15;
    white-space: normal;
  }
  .today-dashboard-grid,
  .forecast-cards,
  .report-grid { grid-template-columns: 1fr; }
  .host-timeline-header { display: none; }
  .host-board-heading { align-items: stretch; flex-direction: column; }
  .host-board-date { min-width: 0; }
  .host-board-list { overflow-x: visible; }
  .host-timeline-row { grid-template-columns: 1fr; min-width: 0; overflow: visible; }
  .host-timeline-time { border-radius: 11px 11px 0 0; }
  .host-timeline-time strong { font-size: 1.3rem; }
  .host-timeline-area { position: relative; min-height: 0; border-top: 1px solid var(--line); border-left: 0; padding-top: 30px; }
  .host-timeline-area::before { position: absolute; top: 8px; left: 9px; content: attr(data-area); color: var(--muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
  .host-timeline-area.is-empty { display: none; }
  .host-capacity-note { grid-column: auto; border-radius: 0 0 11px 11px; }
  .rain-mode-controls { grid-template-columns: 1fr; }
  .operations-section-heading { align-items: stretch; flex-direction: column; }
  .calendar-controls { flex-wrap: wrap; }
  .assignment-suggestions { grid-template-columns: 1fr; }
  .rain-reservation-row { align-items: stretch; flex-direction: column; }
  .weather-monitor-card { align-items: stretch; flex-direction: column; }
  .weather-monitor-actions { justify-content: stretch; }
  .weather-monitor-actions button { flex: 1 1 130px; }
}

/* Reservation system: Milestone 1 */
.reservation-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(190, 63, 40, 0.13), transparent 32rem),
    var(--paper);
}

.staff-login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}
.staff-login-card {
  width: min(100%, 440px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  padding: clamp(24px, 6vw, 42px);
  box-shadow: var(--shadow);
}
.staff-login-card > img { width: 94px; border-radius: 20px; box-shadow: var(--shadow); }
.staff-login-card h1 { margin: 18px 0 8px; font-size: clamp(2.2rem, 8vw, 3.5rem); }
.staff-login-card > p:not(.reservation-eyebrow, .reservation-alert) { color: var(--muted); line-height: 1.5; }
.staff-login-form { display: grid; gap: 16px; margin-top: 24px; }
.staff-login-form label { display: grid; gap: 7px; font-weight: 900; }
.staff-login-form input { width: 100%; min-height: 48px; border: 1px solid #bfb5a8; border-radius: 8px; padding: 10px 12px; font: inherit; }

.reservation-hero {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 42px);
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  padding: clamp(28px, 7vw, 70px) 0 26px;
}

.reservation-hero > div { min-width: 0; }
.reservation-staff-home { margin-left: auto; white-space: nowrap; }

.reservation-hero.compact { padding-bottom: 8px; }
.reservation-logo img { width: clamp(86px, 16vw, 148px); border-radius: 24px; box-shadow: var(--shadow); }
.reservation-hero h1 { margin: 0; font-size: clamp(2.3rem, 7vw, 5rem); line-height: 0.95; }
.reservation-admin-heading h1 { margin: 0; font-size: clamp(2.3rem, 5vw, 3.75rem); line-height: 1; }
.reservation-hero p { margin: 8px 0 0; color: var(--muted); }
.reservation-eyebrow { margin: 0 0 8px !important; color: var(--brand) !important; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.reservation-shell { width: min(100% - 32px, 980px); margin: 0 auto; padding-bottom: 64px; }
.reservation-shell.narrow { max-width: 680px; }
.reservation-entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.reservation-entry-card { display: flex; min-height: 150px; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; padding: 22px; border: 2px solid var(--line); border-radius: 16px; background: var(--panel); text-align: left; box-shadow: 0 8px 22px rgba(45, 34, 25, 0.07); }
.reservation-entry-card strong { font-size: clamp(1.25rem, 3vw, 1.8rem); }
.reservation-entry-card span { color: var(--brand); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.reservation-entry-card small { color: var(--muted); font-size: 0.95rem; }
.reservation-entry-card.is-selected { border-color: var(--brand); }
.reservation-entry-card.is-disabled { opacity: 0.58; background: #eee9e1; }
.reservation-panel { padding: clamp(20px, 5vw, 38px); border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.94); box-shadow: var(--shadow); }
.reservation-panel h2 { margin: 0 0 20px; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.reservation-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.reservation-form,
.reservation-form > * { min-width: 0; max-width: 100%; }
.reservation-form > label,
.reservation-mini-form label,
.reservation-toolbar label { display: grid; gap: 7px; font-weight: 800; }
.reservation-form > label { grid-template-columns: max-content 1fr; align-items: baseline; }
.reservation-form input,
.reservation-form select,
.reservation-form textarea,
.reservation-mini-form input,
.reservation-mini-form select,
.reservation-toolbar input,
.reservation-admin-card select,
.hours-row input { width: 100%; min-height: 46px; border: 1px solid #bfb5a8; border-radius: 8px; background: #fff; padding: 10px 11px; color: var(--ink); font: inherit; }
.reservation-form .reservation-consent { display: grid !important; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 10px; width: 100%; line-height: 1.4; }
.reservation-form .reservation-consent input[type="checkbox"] { grid-column: 1; width: 24px !important; min-width: 24px; height: 24px; min-height: 24px !important; margin: 2px 0 0; padding: 0; }
.reservation-form .reservation-consent span { grid-column: 2; min-width: 0; overflow-wrap: anywhere; }
.reservation-form > label > input,
.reservation-form > label > select,
.reservation-form > label > textarea { grid-column: 1 / -1; }
.reservation-form > label > .muted { grid-column: 1 / -1; }
.reservation-form input:focus,
.reservation-form select:focus,
.reservation-form textarea:focus { outline: 3px solid rgba(36, 117, 108, 0.2); border-color: var(--accent); }
.reservation-full,
.reservation-seating,
.reservation-submit { grid-column: 1 / -1; }
.reservation-seating { display: flex; min-width: 0; max-width: 100%; flex-wrap: wrap; gap: 14px 24px; margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.reservation-seating legend { font-weight: 900; padding: 0 6px; }
.reservation-seating label { display: flex; min-width: 0; align-items: center; gap: 8px; font-weight: 750; white-space: normal; }
.reservation-seating input { width: auto; min-height: auto; }
.reservation-seating p { min-width: 0; max-width: 100%; flex-basis: 100%; margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; overflow-wrap: anywhere; }
.reservation-submit { min-height: 52px; font-size: 1.05rem; }
.reservation-honeypot { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.reservation-alert { margin: 0 0 18px; border: 1px solid #cc7466; border-radius: 8px; background: #fff0ed; padding: 12px 14px; color: #7f2417; font-weight: 750; }
.reservation-status { display: inline-flex; border-radius: 999px; background: #e7f4f1; padding: 7px 12px; color: var(--accent); font-weight: 900; }
.reservation-panel dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 24px 0; }
.reservation-panel dt { color: var(--muted); font-weight: 700; }
.reservation-panel dd { margin: 0; font-weight: 800; }
.reservation-policy { color: var(--muted); line-height: 1.5; }
.reservation-save-notice { border: 1px solid #c39a64; border-radius: 12px; background: #fff7e9; padding: 14px 16px; color: #4b3428; font-weight: 750; line-height: 1.5; }
.group-booking-contact { margin: 0; border: 1px solid #d7b690; border-radius: 12px; background: #fff8ef; padding: 14px 16px; color: #4b3428; line-height: 1.5; }
.group-booking-contact a { color: var(--accent); font-weight: 800; overflow-wrap: anywhere; }
.reservation-customer-actions { display: grid; gap: 14px; margin-top: 24px; }
.reservation-customer-actions .button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border-width: 2px;
  border-radius: 12px;
  padding: 13px 16px;
  text-align: center;
}
.button.danger,
button.danger { border-color: #9d241f; color: #9d241f; }

.reservation-admin-shell { width: min(100% - 28px, 1180px); margin: 0 auto; padding: 34px 0 70px; }
.reservation-admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.reservation-toolbar { display: grid; grid-template-columns: 180px minmax(220px, 1fr) auto; align-items: end; gap: 12px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 15px; }
.reservation-list { display: grid; gap: 12px; }
.reservation-admin-card { border: 1px solid var(--line); border-left: 6px solid var(--brand); border-radius: 12px; background: var(--panel); padding: 16px; box-shadow: 0 7px 18px rgba(45, 34, 25, 0.07); }
.reservation-admin-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.reservation-admin-card-heading strong { display: block; font-size: 1.22rem; }
.reservation-admin-card-heading span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.83rem; }
.reservation-admin-card select { width: auto; min-width: 140px; }
.reservation-admin-details { display: grid; grid-template-columns: max-content 1fr max-content 1fr; gap: 6px 15px; margin: 16px 0; }
.reservation-admin-details dt { color: var(--muted); font-weight: 700; }
.reservation-admin-details dd { margin: 0; white-space: pre-wrap; }
.reservation-card-actions { display: flex; gap: 8px; }
.reservation-flag { border-radius: 7px; background: #fff2d9; padding: 9px; color: #7d4b00; font-weight: 800; }
.reservation-empty { border: 1px dashed var(--line); border-radius: 12px; padding: 28px; text-align: center; color: var(--muted); }
.reservation-config-panel { margin-top: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 16px; }
.reservation-config-panel > summary { cursor: pointer; font-size: 1.15rem; font-weight: 900; }
.reservation-config-grid { display: grid; gap: 28px; padding-top: 22px; }
.reservation-config-grid h2 { margin-bottom: 12px; }
.reservation-mini-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px; }
.hours-row { display: grid; grid-template-columns: 100px 1fr 1fr auto auto; align-items: end; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours-row label { display: grid; gap: 4px; color: var(--muted); font-size: 0.78rem; font-weight: 800; }
.hours-row .hours-closed { display: flex; align-items: center; gap: 5px; padding-bottom: 12px; }
.hours-row .hours-closed input { width: auto; min-height: auto; }
.reservation-block-list { display: grid; gap: 8px; margin-top: 14px; }
.reservation-block-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 9px; }
.reservation-dialog { width: min(94vw, 760px); max-height: 90vh; border: 0; border-radius: 16px; padding: 0; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.reservation-dialog::backdrop { background: rgba(20, 16, 13, 0.66); }
.reservation-dialog .reservation-form { padding: 24px; }
.reservation-dialog-heading,
.reservation-dialog-actions { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 12px; }
.reservation-dialog-heading h2 { margin: 0; }
.reservation-dialog-heading button { border: 0; font-size: 1.8rem; }
.reservation-dialog-actions { justify-content: flex-end; }

@media (max-width: 680px) {
  html { scroll-padding-bottom: calc(170px + env(safe-area-inset-bottom)); }
  .reservation-admin-shell { padding-bottom: calc(190px + env(safe-area-inset-bottom)); }
  .communication-settings { grid-template-columns: 1fr; }
  .communication-settings label { width: 100%; font-size: 1rem; line-height: 1.3; }
  .reservation-hero { align-items: flex-start; }
  .reservation-entry-grid,
  .reservation-form { grid-template-columns: 1fr; }
  .reservation-seating { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 14px; }
  .reservation-seating legend { margin-bottom: 4px; }
  .reservation-seating label { width: 100%; }
  .reservation-seating input[type="radio"] { flex: 0 0 24px; width: 24px !important; min-width: 24px; height: 24px; min-height: 24px !important; margin: 0; padding: 0; }
  .reservation-seating p { font-size: 0.88rem; line-height: 1.5; }
  .reservation-form textarea { max-width: 100%; overflow-wrap: anywhere; }
  .reservation-full,
  .reservation-seating,
  .reservation-submit,
  .reservation-dialog-heading,
  .reservation-dialog-actions { grid-column: 1; }
  .reservation-entry-card { min-height: 130px; }
  .reservation-toolbar { grid-template-columns: 1fr; }
  .reservation-admin-heading { align-items: flex-start; flex-direction: column; }
  .reservation-admin-details { grid-template-columns: max-content 1fr; }
  .reservation-mini-form { grid-template-columns: 1fr; }
  .hours-row { grid-template-columns: 1fr 1fr; }
  .hours-row strong { grid-column: 1 / -1; }
  .reservation-admin-card-heading { align-items: stretch; flex-direction: column; }
  .reservation-admin-card select { width: 100%; }
}

@media (max-width: 480px) {
  .reservation-hero {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    width: calc(100% - 24px);
    padding: 22px 0 18px;
  }

  .reservation-logo img {
    display: block;
    width: 82px;
    border-radius: 18px;
  }

  .reservation-hero h1 {
    max-width: 100%;
    font-size: clamp(1.55rem, 7.5vw, 2rem);
    line-height: 1;
    overflow-wrap: normal;
    white-space: nowrap;
  }

  .reservation-hero p { line-height: 1.3; }
  .reservation-staff-home { grid-column: 1 / -1; justify-self: end; margin-left: 0; }
  .reservation-eyebrow { font-size: 0.7rem; letter-spacing: 0.09em; }
  .reservation-shell { width: calc(100% - 24px); }
  .reservation-entry-card {
    width: 100%;
    min-width: 0;
    min-height: 118px;
    padding: 18px;
  }
  .reservation-entry-card strong,
  .reservation-entry-card small { max-width: 100%; overflow-wrap: anywhere; }
  .reservation-panel { padding: 18px; }
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 250, 242, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a,
button,
.button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 9px 12px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button.primary,
.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

button.ghost {
  background: transparent;
}

.receipts-page {
  max-width: 1000px;
}

.receipt-print-header {
  display: none;
}

.receipt-day-total,
.receipt-table {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.receipt-running-total,
.receipt-final-total {
  display: grid;
  gap: 8px;
  border-width: 2px;
}

.receipt-running-total {
  border-color: var(--accent);
  background: #f3fbf8;
}

.receipt-final-total {
  margin-top: 22px;
  border-color: var(--brand-dark);
  background: #fff7f3;
}

.receipt-day-total .muted {
  margin: 0 0 4px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.receipt-day-total h2,
.receipt-table h2 {
  margin: 0 0 8px;
}

.receipt-table-header,
.receipt-order-heading,
.receipt-line,
.receipt-table-total .summary-row,
.receipt-totals .summary-row,
.receipt-day-total .summary-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.receipt-table-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.receipt-table-header p {
  margin: 2px 0 0;
  color: var(--muted);
}

.receipt-order {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.receipt-order:last-of-type {
  border-bottom: 0;
}

.receipt-order-heading {
  margin-bottom: 8px;
}

.receipt-order-heading span,
.receipt-note {
  color: var(--muted);
}

.receipt-line {
  padding: 3px 0;
}

.receipt-line .option-lines {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.92em;
}

.receipt-note {
  margin-top: 8px;
}

.receipt-totals,
.receipt-table-total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.test-cleanup {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.test-cleanup label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  font-weight: 700;
}

.test-cleanup input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}

@media print {
  body {
    background: white;
    color: black;
    font-size: 12px;
    height: auto !important;
    overflow: visible !important;
  }

  .print-hidden,
  .topbar {
    display: none !important;
  }

  .page {
    max-width: none;
    padding: 0;
    overflow: visible !important;
  }

  .receipts-page,
  [data-receipts] {
    display: block;
    overflow: visible !important;
  }

  .receipt-print-header {
    display: block;
    margin-bottom: 16px;
    border-bottom: 2px solid black;
    padding-bottom: 8px;
  }

  .receipt-print-header h1,
  .receipt-print-header p {
    margin: 0;
  }

  .receipt-day-total,
  .receipt-table {
    break-inside: auto;
    page-break-inside: auto;
    border-color: #333;
    border-radius: 0;
    box-shadow: none;
    padding: 10px;
  }

  .receipt-table-header,
  .receipt-order,
  .receipt-totals,
  .receipt-table-total,
  .receipt-day-total .summary-row {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.customer-layout,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.customer-layout > *,
.admin-layout > * {
  min-width: 0;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding: 22px 0;
}

.order-help {
  max-width: 460px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.order-help p {
  margin: 0 0 10px;
}

.order-help p:last-child {
  margin-bottom: 0;
}

.event-menu-callout {
  padding: 0 0 18px;
}

.event-menu-card {
  display: grid;
  gap: 6px;
  width: min(520px, 100%);
  padding: 18px;
  border-radius: 8px;
  color: #fff9f2;
  text-decoration: none;
  background: #8f241a;
  box-shadow: 0 16px 36px rgba(143, 36, 26, 0.22);
}

.event-menu-card span {
  color: #ffe0a8;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-menu-card strong {
  font-size: 1.8rem;
  line-height: 1;
}

.event-menu-card em {
  color: #fff0df;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1rem;
}

.muted {
  color: var(--muted);
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 0 18px;
  overflow: visible;
}

.category-tabs button,
.category-tabs a {
  width: 100%;
  min-width: 0;
  padding: 8px 6px;
  font-size: 0.8rem;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}

.category-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.category-tabs button.active,
.category-tabs a.active {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #fff;
  box-shadow: 0 5px 14px rgba(143, 41, 27, 0.24);
}
.menu-list,
.order-list,
.history-list {
  display: grid;
  gap: 12px;
}

.menu-item,
.cart,
.order-card,
.editor-card,
.table-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 16px;
  min-width: 0;
}

.menu-item p,
.order-card p {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.menu-item h3,
.menu-item .muted,
.menu-item .price {
  min-width: 0;
  overflow-wrap: anywhere;
}

.price {
  font-weight: 800;
  color: var(--brand-dark);
}

.qty-controls {
  display: grid;
  grid-template-columns: 40px 44px 40px;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.qty-controls button {
  width: 40px;
  padding: 0;
  font-size: 1.2rem;
}

.menu-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
  align-content: start;
  min-width: 128px;
  text-align: right;
}

.option-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 130px;
}

.option-group {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.option-group legend {
  padding: 0;
  font-weight: 800;
}

.option-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
}

.option-choice input {
  width: 20px;
  min-height: 20px;
  margin: 0;
}

.option-panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.option-lines {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.25;
}

.cart {
  position: sticky;
  top: 84px;
  padding: 16px;
}

.cart-row,
.total-row,
.editor-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.cart-row:last-child,
.editor-row:last-child {
  border-bottom: 0;
}

.total-row {
  font-size: 1.15rem;
  font-weight: 800;
  border-bottom: 0;
}

.totals,
.order-summary {
  display: grid;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.order-summary {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.summary-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.summary-row.total {
  color: var(--ink);
  font-weight: 800;
}

textarea,
input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 10px;
  font: inherit;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.notice {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #e9f5ef;
  color: #0c573a;
  font-weight: 700;
}

.table-access {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 2px solid #b98222;
  border-radius: 10px;
  background: #fff3cf;
  color: #5c3a00;
}

.table-access.active {
  border-color: #2f7653;
  background: #e9f5ef;
  color: #0c573a;
}

.table-access strong,
.table-access span {
  display: block;
}

.table-access strong {
  font-size: 1.15rem;
}

.table-access [data-table-access-message] {
  display: grid;
  gap: 12px;
}

.table-access [data-table-access-message] p {
  margin: 0;
}

.table-service-hero {
  align-items: end;
}

.server-name-field {
  width: min(100%, 340px);
  font-weight: 800;
}

.server-name-field span {
  display: block;
  margin-bottom: 6px;
}

.table-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.table-service-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.table-service-card.active {
  border-color: #2f7653;
  background: #edf8f2;
}

.table-service-card h2,
.table-service-card p {
  margin: 0;
}

.table-service-card h2 {
  font-size: 1.7rem;
}

.table-service-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.table-service-actions .wide {
  grid-column: 1 / -1;
}

.table-service-actions .force-close {
  border-color: #9f2f20;
  background: #9f2f20;
  color: #fff;
  font-weight: 900;
}

.table-move-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.table-move-control select,
.table-move-control button {
  min-height: 44px;
}

.server-assignment,
.delivery-claim {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #edf8f2;
  color: #14543b;
  font-weight: 800;
}

.delivery-claim {
  background: #fff3cf;
  color: #5c3a00;
}

.change-request {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.change-request[hidden] {
  display: none;
}

.change-request h3 {
  margin: 0;
}

.kitchen-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
}

.kitchen-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}

[data-sound-toggle].active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

[data-sound-toggle].alerting {
  border-color: var(--warn);
  background: var(--warn);
  color: white;
}

.customer-server-call {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 18px;
  margin: 0 0 18px;
  border: 3px solid #8f2d23;
  border-radius: 12px;
  background: #fff1ee;
  padding: 18px;
}

.customer-server-call h2,
.customer-server-call p {
  margin: 0;
}

.customer-server-call p {
  margin-top: 4px;
  color: var(--muted);
}

.customer-server-call button {
  min-width: 210px;
  min-height: 58px;
  font-size: 1.2rem;
  font-weight: 900;
}

.customer-server-call-status {
  grid-column: 1 / -1;
  min-height: 1.4em;
  color: #7a2018;
}

.server-call-alert {
  display: grid;
  gap: 12px;
  width: 100%;
  margin: 0 0 18px;
  border: 6px solid #3b0764;
  border-radius: 12px;
  background: #6d28d9;
  padding: 20px;
  color: white;
  text-align: center;
  animation: serverCallPurplePulse 0.75s infinite;
}

.server-call-alert[hidden] {
  display: none;
}

.server-call-alert-title {
  font-size: clamp(2.4rem, 6vw, 6rem);
  line-height: 0.95;
  font-weight: 1000;
  text-transform: uppercase;
}

.server-call-tables {
  font-size: clamp(2rem, 4.5vw, 4.8rem);
  line-height: 1;
  font-weight: 1000;
}

.server-call-detail {
  font-size: clamp(1rem, 1.7vw, 1.6rem);
  font-weight: 900;
}

.server-call-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.server-call-actions button {
  min-height: 62px;
  border: 3px solid white;
  background: #fff;
  color: #4c1d95;
  font-size: 1.2rem;
  font-weight: 1000;
}

@keyframes serverCallPurplePulse {
  0%, 100% { background: #5b21b6; box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7); }
  50% { background: #8b5cf6; box-shadow: 0 0 0 16px rgba(124, 58, 237, 0); }
}

.add-on-alert,
.new-order-alert,
.in-progress-alert,
.pickup-alert {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 118px;
  margin: 0 0 18px;
  border-radius: 8px;
  color: white;
  text-align: center;
  text-transform: uppercase;
}

.add-on-alert {
  border: 4px solid #7a3f00;
  background: #f0a400;
  box-shadow: 0 0 0 0 rgba(240, 164, 0, 0.7);
}

.add-on-alert.alert-pulse {
  animation: addOnAlertPulse 0.8s infinite;
}

.new-order-alert {
  border: 4px solid #074b48;
  background: #07867f;
  box-shadow: 0 0 0 0 rgba(7, 134, 127, 0.65);
  animation: newOrderPulse 0.9s infinite;
}

.pickup-alert {
  border: 4px solid #7a1309;
  background: #d92d1e;
  box-shadow: 0 0 0 0 rgba(217, 45, 30, 0.65);
  animation: pickupPulse 0.9s infinite;
}

.in-progress-alert {
  border: 4px solid #14532d;
  background: #15803d;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
  animation: inProgressPulse 0.9s infinite;
}

.add-on-alert[hidden],
.new-order-alert[hidden],
.in-progress-alert[hidden],
.pickup-alert[hidden] {
  display: none;
}

.add-on-alert:disabled,
.new-order-alert:disabled,
.in-progress-alert:disabled,
.pickup-alert:disabled {
  opacity: 0.65;
  cursor: wait;
}

.add-on-alert span,
.new-order-alert span,
.in-progress-alert span,
.pickup-alert span {
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  line-height: 1;
  font-weight: 900;
}

.add-on-alert strong,
.new-order-alert strong,
.in-progress-alert strong,
.pickup-alert strong {
  font-size: clamp(1.2rem, 2.4vw, 2.4rem);
}

.add-on-alert small,
.new-order-alert small,
.in-progress-alert small,
.pickup-alert small {
  font-size: clamp(0.95rem, 1.5vw, 1.35rem);
  font-weight: 900;
}

@keyframes addOnAlertPulse {
  0%, 100% { background: #d88400; transform: scale(1); box-shadow: 0 0 0 0 rgba(240, 164, 0, 0.72); }
  50% { background: #ffc12e; transform: scale(1.01); box-shadow: 0 0 0 14px rgba(240, 164, 0, 0); }
}

@keyframes newOrderPulse {
  0%,
  100% {
    background: #07867f;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(7, 134, 127, 0.65);
  }

  50% {
    background: #08a69d;
    transform: scale(1.01);
    box-shadow: 0 0 0 12px rgba(7, 134, 127, 0);
  }
}

@keyframes inProgressPulse {
  0%,
  100% {
    background: #15803d;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
  }

  50% {
    background: #22c55e;
    transform: scale(1.01);
    box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
  }
}

@keyframes pickupPulse {
  0%,
  100% {
    background: #d92d1e;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(217, 45, 30, 0.65);
  }

  50% {
    background: #ff4a2f;
    transform: scale(1.01);
    box-shadow: 0 0 0 12px rgba(217, 45, 30, 0);
  }
}

.status-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 16px;
}

.status-column {
  min-width: 220px;
}

.status-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 800;
}

.order-card {
  padding: 14px;
  margin-bottom: 12px;
}

.order-card-table {
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 3.4rem);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.order-card-number {
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 900;
}

.order-card-time {
  margin-top: 2px;
  font-size: 0.82rem;
}

.receipt-table-header h2 {
  font-size: clamp(2.25rem, 4vw, 3.4rem);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.receipt-order-heading strong {
  font-size: 0.9rem;
}

.order-card--add-on,
.display-order--add-on {
  border: 4px solid #d88400;
  background: #fff7df;
}

.order-card--add-on-pulse {
  animation: addOnCardPulse 0.8s infinite;
}

.add-on-banner {
  display: grid;
  gap: 2px;
  margin: -14px -14px 14px;
  padding: 12px 14px;
  background: #f0a400;
  color: #2c1800;
  text-transform: uppercase;
}

.add-on-banner strong { font-size: 1.15rem; }
.add-on-banner span { font-size: 0.82rem; font-weight: 900; }
.add-on-seen { border-color: #7a3f00; background: #f0a400; color: #2c1800; font-weight: 900; }

@keyframes addOnCardPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 164, 0, 0.75); }
  50% { box-shadow: 0 0 0 12px rgba(240, 164, 0, 0); }
}

.table-totals {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.custom-charge-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
}

.custom-charge-form {
  display: grid;
  grid-template-columns: 80px minmax(180px, 1.6fr) 110px 90px minmax(180px, 1fr);
  gap: 10px;
  align-items: end;
}

.custom-charge-form label:nth-child(6) {
  grid-column: 1 / -2;
}

.custom-charge-form button {
  min-height: 42px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.1rem;
}

.section-heading p {
  margin: 0;
}

.table-total-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.table-total-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.table-total-card div {
  display: grid;
  gap: 3px;
}

.table-total-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.table-total-card > div:last-child {
  text-align: right;
}

.table-total-card button {
  justify-self: end;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.82rem;
  touch-action: manipulation;
}

.table-total-card select {
  touch-action: manipulation;
}

.table-total-card .print-final-bill {
  border-color: #7a3f00;
  background: #f0a400;
  color: #2c1800;
  font-weight: 900;
}

.table-total-card .print-final-bill--queued {
  border-color: #7a3f00;
  background: #f0a400;
  color: #2c1800;
}

.table-total-card .print-final-bill--waiting,
.table-total-card .print-final-bill--error {
  border-color: #8d2418;
  background: #fde8e5;
  color: #812414;
}

.table-total-card .print-final-bill--success {
  border-color: #0a6f4a;
  background: #1d9b68;
  color: #fff;
}

.table-total-card .print-final-bill--queued:disabled,
.table-total-card .print-final-bill--waiting:disabled,
.table-total-card .print-final-bill--success:disabled {
  opacity: 1;
}

.paid-note {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #e8f6ef;
  color: #0a6f4a;
  font-weight: 800;
}

.paid-note--partial {
  background: #fff3cf;
  color: #6c4300;
}

.split-payment-open {
  overflow: hidden;
}

.split-payment-overlay {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  place-items: center;
  padding: 18px;
  background: rgba(17, 17, 17, 0.68);
}

.split-payment-modal {
  display: flex;
  flex-direction: column;
  width: calc(100% - 36px);
  width: min(720px, 100%);
  max-height: calc(100vh - 36px);
  max-height: min(880px, calc(100vh - 36px));
  overflow: hidden;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.split-payment-modal [hidden] {
  display: none !important;
}

.split-payment-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: white;
}

.equal-split-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 18px;
}

.equal-split-panel label,
.equal-split-panel [data-equal-split-summary] {
  display: grid;
  gap: 6px;
}

.equal-split-panel label {
  max-width: 240px;
}

.equal-split-panel input {
  font-size: 1.15rem;
  font-weight: 800;
}

.equal-split-panel [data-equal-split-summary] {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6f1e9;
}

.equal-split-panel [data-equal-split-summary] strong {
  font-size: 1.6rem;
}

.split-payment-modal > header,
.split-payment-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.split-payment-modal h2,
.split-payment-modal h3,
.split-payment-modal p {
  margin: 0;
}

.split-payment-modal header > div {
  display: grid;
  gap: 4px;
}

.split-payment-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 18px;
  background: #f6f1e9;
}

.split-payment-orders {
  display: grid;
  flex: 1;
  min-height: 0;
  gap: 14px;
  overflow-y: auto;
  padding: 16px 18px;
}

.split-payment-order {
  display: grid;
  gap: 8px;
}

.split-payment-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 76px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.split-payment-item > input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  margin: 0;
}

.split-payment-item > input[type="number"] {
  min-height: 38px;
  padding: 7px;
  text-align: center;
}

.split-payment-item span,
.split-payment-item small,
.split-payment-footer [data-split-preview] {
  display: grid;
  gap: 2px;
}

.split-payment-item small,
.split-payment-footer small,
.split-payment-footer span {
  color: var(--muted);
}

.split-payment-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: white;
}

.split-payment-footer strong {
  font-size: 1.35rem;
}

.payment-recorded-summary {
  display: grid;
  flex: 1;
  place-content: center;
  gap: 8px;
  min-height: 260px;
  padding: 28px 20px;
  text-align: center;
}

.payment-recorded-summary strong {
  color: var(--brand-dark);
  font-size: clamp(2.3rem, 9vw, 4rem);
}

.payment-recorded-summary small {
  color: var(--muted);
  font-weight: 700;
}

.payment-recorded-actions {
  justify-content: flex-end;
}

.payment-recorded-actions .print-receipt--success {
  border-color: #0a6f4a;
  background: #1d9b68;
  color: white;
  opacity: 1;
}

.split-payment-error {
  grid-column: 1 / -1;
  margin: 0;
  background: #fde8e5;
  color: #812414;
}

@media (max-width: 600px) {
  .split-payment-overlay {
    align-items: end;
    padding: 0;
  }

  .split-payment-modal {
    max-height: 94vh;
    border-radius: 12px 12px 0 0;
  }

  .split-payment-modal > header,
  .split-payment-footer {
    align-items: stretch;
  }

  .split-payment-footer {
    display: grid;
  }
}

.order-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f1ece4;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.instructions {
  margin-top: 10px;
  padding: 10px;
  border-left: 4px solid var(--warn);
  background: #fff6e8;
  border-radius: 6px;
}

.change-notice {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 2px solid #d92d1e;
  border-radius: 8px;
  background: #fff1ef;
  color: #4d130d;
}

.change-notice strong {
  text-transform: uppercase;
}

.change-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.change-line--noted {
  color: var(--muted);
  text-decoration: line-through;
}

.staff-edits {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px;
  border-left: 4px solid #07867f;
  border-radius: 6px;
  background: #e9f5ef;
  color: #0c573a;
}

.order-edit-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 2px solid #074b48;
  border-radius: 8px;
  background: #f2fbf8;
}

.order-edit-item {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.order-edit-row,
.order-edit-add,
.order-edit-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.order-edit-add--buttons {
  display: grid;
  grid-template-columns: 1fr;
}

.order-edit-item-picker {
  display: grid;
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  -webkit-overflow-scrolling: touch;
}

.order-edit-item-picker button {
  min-height: 48px;
  text-align: left;
  touch-action: manipulation;
}

.order-edit-row input {
  width: 74px;
}

.staff-option-group {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.staff-option-group legend {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.staff-option-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
}

.staff-option-choice input {
  width: 18px;
  min-height: 18px;
}

.status-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.duplicate-order-button {
  margin-top: 9px;
  padding: 7px 10px;
  font-size: 0.82rem;
}

.staff-payment-discount {
  border: 2px solid #9a5b00;
  background: #fff2cf;
  color: #5f3600;
  font-weight: 900;
}

.staff-payment-discount.is-applied {
  border-color: #2f6e3f;
  background: #2f6e3f;
  color: #fff;
}

.discount-row {
  color: #2f6e3f;
  font-weight: 900;
}

.staff-discount-item {
  color: #2f6e3f;
  font-size: 0.82em;
}

.final-bill-review-modal {
  width: min(760px, calc(100vw - 24px));
}

.final-bill-review-orders {
  display: grid;
  gap: 14px;
  padding: 18px 22px;
  overflow-y: auto;
}

.final-bill-review-order {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdfa;
}

.final-bill-review-order-heading,
.final-bill-review-item,
.final-bill-review-footer,
.final-bill-review-footer > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.final-bill-review-item input {
  width: 72px;
  min-height: 42px;
  margin-left: 7px;
  text-align: center;
  font: inherit;
  font-weight: 900;
}

.final-bill-review-footer {
  flex-wrap: wrap;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
}

.final-bill-review-footer > div {
  margin-right: auto;
  font-size: 1.05rem;
}

.final-bill-review-footer > div strong {
  font-size: 1.35rem;
}

.final-bill-review-error {
  margin: 0 22px 18px;
}

.history-actions {
  display: flex;
  justify-content: flex-end;
  margin: 14px 0;
}

.editor-card {
  padding: 16px;
}

.editor-row {
  grid-template-columns: 1.4fr 0.7fr 1.6fr auto;
}

.editor-item {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.editor-item:last-child {
  border-bottom: 0;
}

.item-main-row {
  grid-template-columns: minmax(0, 1fr) 140px auto auto;
  border-bottom: 0;
  padding: 0;
}

.description-field {
  display: grid;
  gap: 6px;
}

.description-field textarea {
  min-height: 86px;
}

.admin-category {
  margin-bottom: 18px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-editor-row {
  grid-template-columns: minmax(220px, 1fr) auto auto auto auto;
  align-items: end;
  border-bottom: 2px solid var(--line);
  padding-bottom: 14px;
}

.admin-order-actions,
.admin-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.admin-item-actions {
  justify-content: flex-end;
}

.admin-order-actions button {
  white-space: nowrap;
}

.admin-order-actions button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.category-name-field {
  display: grid;
  gap: 6px;
}

.category-name-field input {
  font-size: 1.15rem;
  font-weight: 800;
}

.admin-visibility-toggle {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.admin-visibility-toggle input {
  width: 20px;
  min-height: 20px;
  margin: 0;
}

.admin-visibility-toggle [data-visibility-label] {
  font-weight: 800;
}

.admin-empty {
  margin-top: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.admin-welcome-editor {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-welcome-editor label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.admin-welcome-editor textarea {
  resize: vertical;
}

.admin-customizations {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
}

.admin-customizations summary {
  padding: 13px 14px;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 900;
}

.admin-customization-body {
  display: grid;
  gap: 14px;
  padding: 0 14px 14px;
}

.admin-option-group {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.admin-option-group-heading {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 0.55fr) auto auto;
  gap: 10px;
  align-items: end;
}

.admin-option-group label,
.admin-option-row label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.admin-option-group-heading .admin-required-choice {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.9rem;
}

.admin-required-choice input {
  width: 20px;
  min-height: 20px;
  margin: 0;
}

.admin-option-list {
  display: grid;
  gap: 8px;
}

.admin-option-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 130px auto;
  gap: 10px;
  align-items: end;
}

@media (max-width: 820px) {
  .category-editor-row {
    grid-template-columns: 1fr;
  }

  .category-editor-row > button,
  .category-editor-row > .admin-order-actions {
    width: 100%;
  }

  .category-editor-row > .admin-order-actions button {
    flex: 1;
  }

  .admin-item-actions {
    justify-content: flex-start;
  }

  .admin-option-group-heading,
  .admin-option-row {
    grid-template-columns: 1fr;
  }

  .admin-option-group-heading button,
  .admin-option-row button {
    width: 100%;
  }
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.table-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 420px;
  padding: 24px 22px 20px;
  border: 2px solid #2a1811;
  background: #fffdfa;
  text-align: center;
  break-inside: avoid;
}

.table-card-logo {
  display: block;
  width: min(150px, 62%);
  height: 82px;
  object-fit: contain;
}

.table-card-qr {
  display: block;
  width: min(220px, 82%);
  aspect-ratio: 1;
  object-fit: contain;
  background: white;
  border: 8px solid white;
  box-shadow: 0 0 0 1px #e4d8cc;
}

.large-table {
  color: #15110f;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.scan-text {
  color: var(--brand);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.secure-text {
  color: #386347;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
}

.empty {
  padding: 18px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.kitchen-display {
  background: #151515;
  color: #f7f3ea;
}

.kitchen-display .topbar {
  background: #101010;
  border-bottom-color: #333;
}

.kitchen-display .nav a,
.kitchen-display button {
  border-color: #3a3a3a;
  background: #202020;
  color: #f7f3ea;
}

.kitchen-display .page {
  width: 100%;
  padding: 18px;
}

.kitchen-display .muted,
.kitchen-display .display-meta {
  color: #c8c0b6;
}

.kitchen-display .kitchen-header {
  padding: 14px 0 18px;
}

.kitchen-display h1 {
  font-size: clamp(2.4rem, 5vw, 5.4rem);
}

.kitchen-display .status-columns {
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 18px;
  overflow-x: visible;
}

.kitchen-display .status-column {
  min-width: 0;
}

.kitchen-display .status-title {
  font-size: clamp(1.6rem, 2.6vw, 3rem);
  padding: 10px 0;
}

.kitchen-display .pill {
  background: #2f2f2f;
  color: #f7f3ea;
  font-size: 1rem;
}

.kitchen-display .new-order-alert,
.kitchen-display .add-on-alert,
.kitchen-display .in-progress-alert,
.kitchen-display .pickup-alert {
  min-height: 170px;
  margin-bottom: 22px;
}

.display-order .add-on-banner {
  margin: -18px -18px 18px;
  padding: 16px 18px;
}

.add-on-banner--large strong { font-size: clamp(1.5rem, 2.5vw, 2.8rem); }
.add-on-banner--large span { font-size: clamp(1rem, 1.4vw, 1.4rem); }

.display-order {
  margin-bottom: 18px;
  padding: 18px;
  border: 2px solid #4a4a4a;
  border-left: 10px solid var(--brand);
  border-radius: 8px;
  background: #f7f3ea;
  color: #1d1b18;
}

.display-order-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid #d7cfc3;
}

.display-table {
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 1;
  font-weight: 900;
}

.display-total {
  font-size: clamp(1.6rem, 2.6vw, 3rem);
  font-weight: 900;
  color: var(--brand-dark);
}

.display-items {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  font-size: clamp(1.35rem, 2vw, 2.2rem);
  font-weight: 800;
}

.display-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
}

.display-instructions {
  margin-top: 14px;
  padding: 12px;
  border-left: 6px solid var(--warn);
  border-radius: 6px;
  background: #fff0d6;
  color: #1d1b18;
  font-size: clamp(1.15rem, 1.5vw, 1.6rem);
}

.change-notice--large {
  margin-top: 14px;
  border-width: 4px;
  background: #3b0c08;
  color: #ffe7e2;
  font-size: clamp(1.15rem, 1.5vw, 1.7rem);
}

.change-notice--large .change-line {
  grid-template-columns: 1fr;
}

.kitchen-display .empty {
  border-color: #4a4a4a;
  color: #c8c0b6;
  font-size: 1.2rem;
}

.tv-display {
  min-height: 100vh;
  overflow: hidden;
}

.tv-display .topbar,
.tv-display .table-totals {
  display: none;
}

.tv-display .page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(10px, 1.3vw, 20px);
}

.tv-display .kitchen-header {
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(8px, 1vw, 14px);
  padding-top: 0;
}

.tv-display .kitchen-header h1 {
  font-size: clamp(2.4rem, 4.2vw, 5rem);
  line-height: 0.95;
}

.tv-display .kitchen-header p {
  margin: 4px 0 0;
  font-size: clamp(0.95rem, 1.25vw, 1.35rem);
}

.tv-display .kitchen-tools {
  align-items: center;
  gap: 8px;
}

.tv-display .kitchen-tools button,
.tv-display .kitchen-tools .pill {
  min-height: 58px;
  padding: 10px 14px;
  font-size: clamp(0.9rem, 1.15vw, 1.15rem);
}

.tv-display .tv-help {
  display: none;
}

.fullscreen-nudge {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(92vw, 720px);
  min-height: 0;
  padding: 10px 16px;
  border: 1px solid rgba(255, 248, 239, 0.28);
  border-radius: 8px;
  background: rgba(8, 10, 12, 0.86);
  color: #fff8ef;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  font-size: clamp(1rem, 1.7vw, 1.45rem);
  font-weight: 900;
  text-align: center;
}

.fullscreen-nudge[hidden] {
  display: none;
}

.tv-display .kitchen-alert-stack {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: clamp(5px, 0.7vh, 8px);
  margin-bottom: 0;
}

.tv-display .server-call-alert {
  grid-column: 1 / -1;
}

.tv-display .add-on-alert,
.tv-display .new-order-alert,
.tv-display .in-progress-alert,
.tv-display .pickup-alert {
  align-content: center;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: clamp(8px, 1.1vh, 14px);
}

.tv-display .add-on-alert span,
.tv-display .new-order-alert span,
.tv-display .in-progress-alert span,
.tv-display .pickup-alert span {
  font-size: clamp(2rem, 4vw, 4.5rem);
}

.tv-display .add-on-alert strong,
.tv-display .new-order-alert strong,
.tv-display .in-progress-alert strong,
.tv-display .pickup-alert strong {
  font-size: clamp(1rem, 1.5vw, 1.6rem);
}

.tv-display .add-on-alert small,
.tv-display .new-order-alert small,
.tv-display .in-progress-alert small,
.tv-display .pickup-alert small {
  font-size: clamp(0.8rem, 1.05vw, 1.1rem);
}

.tv-display .status-columns {
  flex: 1;
  min-height: 0;
  height: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  overflow: hidden;
}

.tv-display .status-column {
  overflow-y: auto;
  padding-right: 4px;
}

.tv-display .add-on-alert,
.tv-display .new-order-alert,
.tv-display .in-progress-alert,
.tv-display .pickup-alert {
  pointer-events: none;
}

.tv-display .server-call-alert {
  min-height: 0;
  height: 100%;
  align-content: center;
  gap: clamp(2px, 0.45vh, 5px);
  margin: 0;
  padding: clamp(6px, 0.9vh, 12px);
  border-color: #3b0764;
  background: #6d28d9;
  pointer-events: none;
}

.tv-display .server-call-alert-title {
  font-size: clamp(2.3rem, 4.5vw, 5rem);
}

.tv-display .server-call-tables {
  font-size: clamp(1.8rem, 3.3vw, 3.5rem);
}

.tv-display .server-call-detail {
  font-size: clamp(0.85rem, 1.1vw, 1.15rem);
}

.tv-display .server-call-actions {
  display: none;
}

.tv-display .display-order {
  padding: clamp(14px, 1.4vw, 24px);
}

.tv-display .display-total {
  display: none;
}

@media (max-width: 820px) {
  .topbar,
  .hero,
  .kitchen-header {
    align-items: stretch;
    flex-direction: column;
  }

  .kitchen-tools {
    flex-wrap: wrap;
  }

  .topbar {
    gap: 10px;
    padding: 12px;
  }

  .nav {
    display: none;
  }

  .hero {
    gap: 8px;
    padding: 14px 0;
  }

  .order-help {
    max-width: none;
    font-size: 0.92rem;
    line-height: 1.28;
  }

  .order-help p {
    margin-bottom: 6px;
  }

  h1 {
    font-size: 2rem;
  }

  .customer-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .customer-server-call {
    grid-template-columns: 1fr;
  }

  .customer-server-call button {
    width: 100%;
  }

  .customer-server-call-status {
    grid-column: 1;
  }

  .cart {
    position: static;
  }

  .page {
    padding: 12px;
  }

  .menu-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .qty-controls {
    grid-template-columns: 48px 52px 48px;
    justify-content: start;
    width: max-content;
    max-width: 100%;
  }

  .qty-controls button {
    width: 48px;
    min-height: 48px;
    font-size: 1.35rem;
  }

  .menu-actions {
    justify-items: start;
    text-align: left;
  }

  .option-panel-actions {
    justify-content: space-between;
  }

  .editor-row {
    grid-template-columns: 1fr;
  }

  .custom-charge-form,
  .custom-charge-form label:nth-child(6) {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .status-columns {
    grid-template-columns: repeat(4, 82vw);
  }

  .kitchen-display .status-columns {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    display: grid !important;
    position: sticky;
    top: 64px;
    z-index: 8;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px;
    width: 100%;
    padding: 6px 0 10px;
    overflow: visible !important;
    background: var(--paper);
  }

  .category-tabs button,
  .category-tabs a {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 34px;
    padding: 5px 3px;
    font-size: 0.68rem;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .category-tabs.category-tabs--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .category-tabs.category-tabs--compact button,
  .category-tabs.category-tabs--compact a {
    min-height: 32px;
    padding: 4px 2px;
    font-size: 0.6rem;
  }
}

@media print {
  html,
  body[data-page="receipts"] {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body[data-page="receipts"],
  body[data-page="receipts"] .page,
  body[data-page="receipts"] .receipts-page,
  body[data-page="receipts"] [data-receipts],
  body[data-page="receipts"] .receipt-day-total,
  body[data-page="receipts"] .receipt-table,
  body[data-page="receipts"] .receipt-order,
  body[data-page="receipts"] .receipt-totals,
  body[data-page="receipts"] .receipt-table-total,
  body[data-page="receipts"] .summary-row,
  body[data-page="receipts"] .receipt-line {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  body[data-page="receipts"] .receipt-table-header,
  body[data-page="receipts"] .receipt-order-heading,
  body[data-page="receipts"] .receipt-line,
  body[data-page="receipts"] .receipt-table-total .summary-row,
  body[data-page="receipts"] .receipt-totals .summary-row,
  body[data-page="receipts"] .receipt-day-total .summary-row {
    display: flex !important;
  }

  body[data-page="receipts"] .receipt-day-total,
  body[data-page="receipts"] .receipt-table {
    margin-bottom: 10px !important;
    padding: 6px !important;
  }

  body[data-page="receipts"] .receipt-order {
    padding: 8px 0 !important;
  }

  .topbar,
  .hero,
  .history-actions {
    display: none;
  }

  body {
    background: white;
  }

  .page {
    max-width: none;
    padding: 0;
  }

  .table-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.2in;
  }

  .table-card {
    min-height: 4.65in;
    box-shadow: none;
    page-break-inside: avoid;
  }

  .table-card-qr {
    max-width: 2.15in;
  }
}
