@font-face {
  font-family: 'Burger Free';
  src: url('/fonts/Burger_Free.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f8f9fa;
  --card: #ffffff;
  --ink: #333333;
  --muted: #6c757d;
  --gold: #d80d13;
  --gold-dark: #b3090f;
  --green: #d80d13;
  --danger: #d80d13;
  --line: rgba(216, 13, 19, 0.12);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: var(--ink);
  line-height: 1.6;
}

.alert[hidden] { display: none !important; }

.book-top {
  background: linear-gradient(135deg, #d80d13 0%, #b3090f 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.book-top a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  border-radius: 5px;
}
.book-top a:hover,
.book-top a.on {
  background: rgba(255, 255, 255, 0.2);
}
.book-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.45rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  align-items: center;
}
.book-logo {
  display: flex;
  align-items: center;
  padding: 0 !important;
  background: none !important;
  margin-right: auto;
}
.book-logo img {
  height: 68px;
  width: auto;
  display: block;
}
.book-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  align-items: center;
}
.book-hero {
  text-align: center;
  padding: 2.2rem 1.5rem 3.2rem;
}
.book-hero h1 {
  font-family: "Burger Free", Arial, sans-serif;
  font-size: clamp(2.4rem, 8vw, 3.1rem);
  margin: 0;
  color: #fff;
  line-height: 1.05;
}
.book-hero p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.92);
}

.shell {
  width: min(560px, calc(100% - 32px));
  margin: -40px auto 48px;
}

.brand { text-align: center; margin-bottom: 20px; }
.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0 0 8px;
}
.brand h1 {
  font-family: "Burger Free", Arial, sans-serif;
  font-size: clamp(2rem, 8vw, 3rem);
  margin: 0;
  line-height: 1.05;
  color: var(--gold);
}
.tagline, .lede, .fineprint, .note {
  color: var(--muted);
}
.tagline { margin: 8px 0 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.progress {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.progress span {
  height: 6px;
  flex: 1;
  border-radius: 99px;
  background: rgba(216, 13, 19, 0.12);
}
.progress span.on { background: var(--gold); }

.step-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  margin: 0 0 6px;
}
h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  font-family: "Burger Free", Arial, sans-serif;
  color: var(--gold);
}
.lede { margin: 0 0 20px; }

.party-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 28px 0 12px;
}
.party-note {
  text-align: center;
  margin: 0 0 18px;
}
.party-note a {
  color: var(--gold);
  font-weight: 600;
}
.party-control button, .btn, .btn-secondary {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.round {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--gold);
  border: 2px solid rgba(216, 13, 19, 0.25);
  font-size: 2rem;
  line-height: 1;
}
.party-value { font-size: 4rem; min-width: 90px; text-align: center; color: var(--gold); }

.info {
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

.btn, .btn-secondary {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  border-radius: 25px;
  padding: 14px 18px;
  font-size: 1.05rem;
}
.btn {
  background: linear-gradient(135deg, #d80d13 0%, #b3090f 100%);
  color: #fff;
  font-weight: 600;
  margin-top: 8px;
  box-shadow: 0 4px 15px rgba(216, 13, 19, 0.3);
}
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-secondary {
  background: transparent;
  color: var(--muted);
  margin-top: 8px;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal-head button {
  background: #f8f9fa;
  color: var(--gold);
  border: 2px solid rgba(216, 13, 19, 0.2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}
.weekdays, .days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}
.weekdays { color: var(--muted); font-size: 0.78rem; margin-bottom: 8px; }
.days button {
  background: #f8f9fa;
  color: var(--ink);
  border: 1px solid rgba(216, 13, 19, 0.1);
  border-radius: 12px;
  min-height: 42px;
  cursor: pointer;
}
.days button.closed, .days button:disabled {
  opacity: 0.28;
  cursor: default;
}
.days button.selected {
  background: linear-gradient(135deg, #d80d13 0%, #b3090f 100%);
  color: #fff;
  font-weight: 700;
  border-color: transparent;
}

.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.slots button {
  background: #f8f9fa;
  color: var(--ink);
  border: 1px solid rgba(216, 13, 19, 0.1);
  border-radius: 12px;
  min-height: 48px;
  cursor: pointer;
}
.slots button.selected {
  background: linear-gradient(135deg, #d80d13 0%, #b3090f 100%);
  border-color: transparent;
  color: #fff;
}
.slots button:disabled {
  opacity: 0.32;
  cursor: default;
  text-decoration: line-through;
}
.periods {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
}
.period {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: #f8f9fa;
  color: var(--ink);
  border: 1px solid rgba(216, 13, 19, 0.1);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.period span, .period small { color: var(--muted); }
.period.selected {
  background: linear-gradient(135deg, #d80d13 0%, #b3090f 100%);
  border-color: transparent;
  color: #fff;
}
.period.selected span, .period.selected small { color: #fff; }

.addon-card {
  border: 2px solid rgba(216, 13, 19, 0.18);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 0 0 14px;
  background: #fff;
}
.addon-card.selected {
  border-color: #d80d13;
  background: #fff8f8;
}
.addon-card .addon-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.addon-card .addon-head input {
  width: auto;
  margin: 3px 0 0;
}
.addon-card .addon-copy {
  flex: 1;
}
.addon-card .addon-copy strong {
  display: block;
  color: var(--gold);
  margin-bottom: 4px;
}
.addon-card .addon-price {
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}
.addon-card p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
}
.addon-card ul {
  margin: 8px 0 0;
  padding-left: 1.15em;
  color: var(--muted);
}
.addon-card .addon-outro {
  margin-top: 10px;
  white-space: pre-line;
}
.promo-box {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 2px solid rgba(216, 13, 19, 0.18);
  border-radius: 16px;
  background: #fff;
}
.promo-box .lede { margin: 0 0 10px; }
.promo-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.promo-row input { flex: 1; margin: 0; }
.promo-row .btn-secondary,
.promo-box .btn-secondary {
  margin: 0;
  width: auto;
  white-space: nowrap;
}
.promo-applied { margin: 0 0 10px; }

label { display: block; margin: 0 0 12px; color: var(--gold); font-size: 0.95rem; font-weight: 600; }
input, textarea, select {
  width: 100%;
  margin-top: 6px;
  background: #f8f9fa;
  border: 2px solid rgba(216, 13, 19, 0.2);
  border-radius: 10px;
  color: var(--ink);
  padding: 12px;
  font: inherit;
}
.terms {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  margin: 12px 0 18px;
}
.terms input { width: auto; margin-top: 3px; }
.terms a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
}
.legal-modal[hidden] { display: none !important; }
.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.legal-modal-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  height: min(80vh, 760px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 0;
  box-shadow: var(--shadow);
}
.legal-modal-card h2 {
  margin: 0 40px 12px 0;
  color: var(--gold);
  font-size: 1.35rem;
}
.legal-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f8f9fa;
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.legal-modal-card iframe {
  flex: 1;
  width: 100%;
  border: 0;
  border-radius: 0 0 18px 18px;
  background: #fff;
}

.summary {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.summary li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.summary strong { color: var(--ink); }

.alert {
  background: #fde8e8;
  border: 1px solid rgba(216, 13, 19, 0.28);
  color: #8a1216;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.alert.success {
  background: #e8f6ee;
  border-color: #b7dcc6;
  color: #1f6b3a;
}
.alternatives { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.alternatives button {
  background: #f8f9fa;
  color: var(--gold);
  border: 1px solid rgba(216, 13, 19, 0.2);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.reference {
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-align: center;
  margin: 8px 0 20px;
}
.fineprint { text-align: center; font-size: 0.85rem; }

.staff-shell { width: min(1100px, calc(100% - 24px)); margin: 20px auto 40px; }
.staff-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

html:has(body.staff-app),
body.staff-app {
  height: 100%;
}
body.staff-app {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.staff-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  overflow: visible;
  white-space: normal;
}
.staff-bar-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.staff-bar-brand .eyebrow { margin: 0; }
.staff-bar-brand strong { font-size: 1.15rem; }
.staff-date {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.staff-date label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.staff-date input {
  width: auto;
  margin: 0;
  padding: 8px 10px;
}
.staff-date-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #f7f8f7;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.staff-date-nav:hover {
  background: #5a7166;
  color: #f7f8f7;
  border-color: #5a7166;
}
.staff-app .staff-nav {
  margin-left: auto;
  flex-wrap: nowrap;
}
.staff-toast {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  margin: 0;
  width: min(480px, calc(100% - 24px));
}
.staff-toast.success {
  background: #d5e3d8;
  border-color: #b7cbbd;
  color: #2e4a3a;
}
.staff-app .timeline-track,
.layout-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0;
  min-height: 56px;
}
.staff-app .timeline-track {
  position: relative;
  overflow-x: auto;
}
.staff-app .timeline {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-width: 100%;
  min-height: 56px;
  padding: 10px 16px 22px;
  overflow: visible;
}
.now-marker {
  position: absolute;
  top: 8px;
  bottom: 18px;
  width: 2px;
  background: #c45c4e;
  z-index: 4;
  pointer-events: none;
  transform: translateX(-1px);
}
.now-marker-label {
  position: absolute;
  top: auto;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  background: #c45c4e;
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
}
.live-btn {
  background: #e4eae6;
  color: #3e4f48;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
}
.live-btn.on {
  background: #c45c4e;
  color: #fff;
  border-color: #c45c4e;
}
.staff-sidebar-split {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.staff-sidebar-pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.staff-sidebar-pane:first-child { border-top: 0; }
.staff-sidebar-pane:first-child:not(.is-collapsed) { flex: 1.7; }
.staff-sidebar-pane:nth-child(2):not(.is-collapsed) { flex: 1; }
.staff-sidebar-pane:last-child:not(.is-collapsed) { flex: 0.8; }
.staff-sidebar-pane.is-collapsed {
  flex: 0 0 auto;
}
.staff-sidebar-pane.is-collapsed .staff-sidebar-body {
  display: none;
}
.staff-pane-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.staff-pane-toggle h3 {
  padding: 10px 16px;
}
.pane-count,
.late-count {
  margin-right: 16px;
  min-width: 1.4em;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
}
.late-count {
  color: #c45c4e;
}
.staff-sidebar-pane h3 {
  margin: 0;
  padding: 10px 16px 4px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.layout-toolbar {
  padding: 8px 16px;
}
.layout-toolbar .lede { margin: 0; }
.staff-workspace {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
}
.floor-pane {
  flex: 1 1 0%;
  min-width: 0;
  min-height: 0;
  width: auto;
  display: flex;
  flex-direction: column;
}
.staff-app .floor {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  overflow: auto;
}
.staff-app .floor.editor {
  min-height: 0;
}
.staff-page {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 20px 24px 40px;
}
.staff-page .card { margin-bottom: 16px; }
.bookings-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: end;
  margin-bottom: 16px;
}
.bookings-filters label { margin: 0; }
.bookings-filters .btn,
.bookings-filters .btn-secondary { margin-top: 0; }
.report-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 8px 0 0;
}
.report-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.report-switch .btn,
.report-switch .btn-secondary {
  margin-top: 0;
}
.report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.report-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0 0 8px;
}
.report-heading h2 {
  margin: 0;
}
.report-export {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.report-heading .btn-secondary,
.report-export .btn-secondary {
  margin-top: 0;
}
.report-tab {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #eef0ee;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  min-width: 140px;
}
.report-tab small {
  font-weight: 500;
  color: var(--muted);
}
.report-tab.on {
  background: #2e3431;
  border-color: #2e3431;
  color: #fff;
}
.report-tab.on small {
  color: rgba(255, 255, 255, 0.75);
}
.report-tab-total {
  background: #2e3431;
  border-color: #2e3431;
  color: #fff;
  margin-left: auto;
}
.report-tab-total small {
  color: rgba(255, 255, 255, 0.75);
}
.report-stat {
  background: #eef0ee;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}
.report-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.report-stat strong {
  display: block;
  font-size: 22px;
  margin-top: 6px;
}
.report-stat small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.report-stat.highlight {
  background: #d5e3d8;
}
.booking-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0 0 16px;
}
.booking-contact a {
  font-weight: 600;
}
.user-row {
  display: grid;
  grid-template-columns: 110px minmax(120px, 1fr) 130px auto minmax(140px, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.user-row input,
.user-row select {
  margin: 0;
  width: 100%;
}
.user-row .btn {
  margin: 0;
  width: auto;
  padding: 8px 14px;
}
.user-active {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  white-space: nowrap;
}
.row-edit {
  background: none;
  border: 0;
  color: var(--gold);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}
.setup-table tr.is-cancelled td {
  color: var(--muted);
}
.staff-modal-card a {
  color: var(--gold);
}
.staff-page .btn,
.staff-page .btn-secondary,
.staff-sidebar-head .btn {
  width: auto;
  display: inline-block;
  margin-top: 8px;
  padding: 10px 22px;
}
.staff-sidebar-head .btn { margin: 0; }
.staff-sidebar {
  width: 320px;
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--card);
  border-left: 1px solid var(--line);
}
.staff-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 8px;
}
.staff-sidebar-head h2 { margin: 0; font-size: 1.15rem; }
.staff-sidebar-tools { display: flex; align-items: center; gap: 8px; }
.staff-sidebar-head button,
.staff-sidebar-tab {
  background: #1c3a2c;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
}
.staff-sidebar-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px 16px 16px;
}
.staff-sidebar-body p { color: var(--muted); }
.staff-sidebar-body button {
  width: 100%;
  text-align: left;
  background: #10241b;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  font: inherit;
}
.staff-sidebar-tab {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  border-radius: 12px 0 0 12px;
  padding: 16px 8px;
  z-index: 5;
}
body.staff-app.sidebar-collapsed .staff-sidebar {
  width: 0;
  flex-basis: 0;
  overflow: hidden;
  border: 0;
}
.staff-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 16px;
}
.staff-modal[hidden] { display: none !important; }
.staff-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.staff-modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%), var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
}
.staff-modal-card h2 { padding-right: 40px; }
.staff-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #1c3a2c;
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.timeline {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 16px;
}
.timeline button {
  flex: 0 0 auto;
  background: #183226;
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.timeline button.on { background: var(--gold); color: #241806; }

.floor-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 16px;
}
.floor {
  position: relative;
  min-height: 680px;
  background: #0c1c15;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.floor.editor {
  min-height: 75vh;
  overflow: auto;
  touch-action: none;
  user-select: none;
}
.resize-handle {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--gold);
  cursor: nwse-resize;
}
.layout-hidden { opacity: 0.45; }
.layout-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.layout-actions .btn { width: auto; padding: 10px 22px; }
.table-chip {
  position: absolute;
  border-radius: 16px;
  padding: 6px 8px;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  text-align: left;
  font: inherit;
}
@keyframes awaiting-seat {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(196, 92, 78, 0.7);
    border-color: #c45c4e;
  }
  50% {
    box-shadow: 0 0 0 5px rgba(196, 92, 78, 0.05);
    border-color: #e07066;
  }
}
.table-chip.awaiting-seat {
  overflow: visible;
  z-index: 3;
  border: 2px solid #c45c4e;
  animation: awaiting-seat 1.3s ease-in-out infinite;
}
.table-chip strong { font-size: 0.92rem; }
.table-chip small { opacity: 0.85; display: block; }
.chip-now, .chip-next {
  display: block;
  font-size: 0.72rem;
  line-height: 1.2;
  position: relative;
}
.chip-now { z-index: 2; }
.chip-next { z-index: 1; }
.chip-now[data-booking],
.chip-next[data-next] {
  cursor: pointer;
}
.deposit-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  margin-right: 5px;
  border-radius: 50%;
  background: #c45c4e;
  color: #fff;
  font-weight: 700;
  font-size: 0.78em;
  line-height: 1;
  vertical-align: middle;
  cursor: pointer;
}
.package-flag {
  display: inline-block;
  margin-left: 4px;
  margin-right: 4px;
  font-size: 0.95em;
  line-height: 1;
  vertical-align: middle;
}
.notes-flag {
  display: inline-block;
  margin-right: 4px;
  font-size: 0.9em;
  line-height: 1;
  vertical-align: middle;
  opacity: 0.95;
}
.notes-flag-boulevard {
  color: #d4a017;
  font-size: 1.05em;
  text-shadow: 0 0 1px rgba(120, 80, 0, 0.35);
  filter: drop-shadow(0 0 1px rgba(212, 160, 23, 0.55));
}
.chip-next {
  margin: 4px -8px -6px;
  padding: 6px 8px;
  border-top: 1px solid rgba(255,255,255,0.22);
  background: #2b5f8a;
  color: #fff;
  border-radius: 0 0 15px 15px;
}
.chip-next-empty {
  background: transparent;
  color: inherit;
  opacity: 0.55;
}
.state-available { background: #2f6a4a; }
.state-held, .state-confirmed { background: #2b5f8a; }
.state-arrived, .state-seated { background: #6b4ea1; }
.state-finishing { background: #b8893c; }
.state-overdue { background: #a33b32; }
.state-blocked { background: #8a8d8a; }

.side-list { max-height: 680px; overflow: auto; }
.side-list button {
  width: 100%;
  text-align: left;
  background: #10241b;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
}
.panel {
  margin-top: 16px;
  display: none;
}
.panel.open { display: block; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions button {
  background: #1c3a2c;
  color: var(--gold);
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.actions button:hover {
  background: var(--gold);
  color: #241806;
}
.actions button:active { transform: scale(0.97); }
.actions button:disabled { cursor: wait; opacity: 0.7; }
.modal-feedback {
  background: #d5e3d8;
  color: #2e4a3a;
  border: 1px solid #b7cbbd;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 14px;
  font-weight: 600;
}

.staff-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.staff-nav a {
  color: var(--gold);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
}
.staff-nav a.on {
  background: var(--gold);
  color: #241806;
}

.setup-form .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.setup-form small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}
select {
  width: 100%;
  margin-top: 6px;
  background: #f8f9fa;
  border: 2px solid rgba(216, 13, 19, 0.2);
  border-radius: 10px;
  color: var(--ink);
  padding: 12px;
  font: inherit;
}
.table-wrap { overflow-x: auto; }
.setup-table {
  width: 100%;
  border-collapse: collapse;
}
.setup-table th, .setup-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.setup-table small { color: var(--muted); }
.row-actions {
  white-space: nowrap;
}
.row-actions form {
  display: inline;
  margin: 0;
}
.row-actions a + a,
.row-actions a + button,
.row-actions a + form,
.row-actions button + a,
.row-actions button + button,
.row-actions form + a,
.row-actions form + button {
  margin-left: 10px;
}
.row-actions a, .row-actions button {
  background: none;
  border: 0;
  color: var(--gold);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: none;
}
.join-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 8px 0 16px;
}
.join-checks label {
  margin: 0;
  background: #0c1c15;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  color: var(--ink);
}

body.staff-theme {
  --bg: #e9eceb;
  --card: #f4f5f4;
  --ink: #2e3431;
  --muted: #66706c;
  --gold: #5a7166;
  --gold-dark: #486057;
  --green: #7a8d84;
  --danger: #b45c52;
  --line: #d3d9d5;
  --shadow: 0 10px 28px rgba(46, 52, 49, 0.08);
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}
body.staff-theme .shell {
  margin: 32px auto 48px;
}
body.staff-theme h2 {
  font-family: inherit;
  color: var(--ink);
}
body.staff-theme label {
  color: var(--muted);
  font-weight: 500;
}
body.staff-theme .eyebrow,
body.staff-theme .step-kicker {
  color: #6b7872;
}
body.staff-theme .card {
  background: var(--card);
  box-shadow: var(--shadow);
}
body.staff-theme .info {
  background: #e4eae6;
  color: var(--muted);
}
body.staff-theme .addon-card {
  background: #f4f6f5;
  border-color: #cfd8d3;
}
body.staff-theme .addon-card.selected {
  background: #eef3ef;
  border-color: #8aa396;
}
body.staff-theme .alert {
  background: #f4e4e1;
  border-color: #e3c4c0;
  color: #8a3d36;
}
body.staff-theme .alert.success {
  background: #d5e3d8;
  border-color: #b7cbbd;
  color: #2e4a3a;
}
body.staff-theme input,
body.staff-theme textarea,
body.staff-theme select {
  background: #f7f8f7;
  color: var(--ink);
  border-color: var(--line);
}
body.staff-theme .btn,
body.staff-theme .staff-sidebar-head .btn {
  background: #5a7166;
  color: #f7f8f7;
  border: 0;
}
body.staff-theme .live-btn.on {
  background: #c45c4e;
  color: #fff;
  border-color: #c45c4e;
}
body.staff-theme .staff-date-nav {
  background: #f7f8f7;
  color: var(--ink);
  border-color: var(--line);
}
body.staff-theme .staff-date-nav:hover {
  background: #5a7166;
  color: #f7f8f7;
  border-color: #5a7166;
}
body.staff-theme .staff-bar-brand strong {
  color: var(--ink);
}
body.staff-theme .staff-nav a {
  color: var(--ink);
  border-color: var(--line);
  background: #f7f8f7;
}
body.staff-theme .staff-nav a.on {
  background: #5a7166;
  color: #f7f8f7;
}
body.staff-theme .staff-modal-card a,
body.staff-theme .row-edit {
  color: #5a7166;
}
body.staff-theme .booking-contact a {
  color: #5a7166;
}
body.staff-theme .btn-secondary {
  background: #e4eae6;
  color: #3e4f48;
  border: 1px solid var(--line);
}
body.staff-theme .timeline-track,
body.staff-theme .timeline,
body.staff-theme .layout-toolbar {
  background: #eef0ee;
  border-bottom: 1px solid var(--line);
}
body.staff-theme .timeline button {
  background: #dde2df;
  color: var(--ink);
}
body.staff-theme .timeline button.on {
  background: #5a7166;
  color: #f7f8f7;
}
body.staff-theme .floor {
  background: #e3e6e4;
  border-color: var(--line);
}
body.staff-theme .staff-sidebar-head button,
body.staff-theme .staff-sidebar-tab,
body.staff-theme .actions button {
  background: #e4eae6;
  color: #3e4f48;
  border: 1px solid var(--line);
}
body.staff-theme .staff-modal-card .actions button:hover,
body.staff-theme .staff-modal-close:hover {
  background: #5a7166;
  color: #f7f8f7;
  border-color: #5a7166;
}
body.staff-theme .staff-modal-card .actions button.is-current {
  background: #5a7166;
  color: #f7f8f7;
  border-color: #5a7166;
}
body.staff-theme .staff-modal-card .actions button.is-danger:hover {
  background: #b45c52;
  color: #fff;
  border-color: #b45c52;
}
body.staff-theme .staff-modal-card .actions button.is-busy {
  background: #c5d4c8;
  color: #2e4a3a;
}
body.staff-theme .row-actions a,
body.staff-theme .row-actions button {
  background: none;
  border: 0;
  color: #5a7166;
}
body.staff-theme .staff-sidebar-tab {
  background: #f3f4f3;
}
body.staff-theme .staff-sidebar-body button,
body.staff-theme .side-list button {
  background: #eef0ee;
  color: var(--ink);
}
body.staff-theme #late button {
  border-color: #e3c4c0;
}
body.staff-theme .staff-modal-backdrop {
  background: rgba(46, 52, 49, 0.28);
}
body.staff-theme .staff-modal-card {
  background: #f4f5f4;
}
body.staff-theme .staff-modal-close {
  background: #e4eae6;
  color: #3e4f48;
}
body.staff-theme .table-chip {
  color: #2e3431;
  border: 1px solid rgba(46, 52, 49, 0.1);
  box-shadow: 0 2px 8px rgba(46, 52, 49, 0.08);
}
@keyframes clearing-soon {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(46, 140, 80, 0.55);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(46, 140, 80, 0.08);
    background-color: #b7e0c2;
  }
}
.table-chip.clearing-soon,
.grid-block.clearing-soon {
  animation: clearing-soon 1.3s ease-in-out infinite;
  z-index: 3;
}
.table-chip.clearing-soon {
  overflow: visible;
}
.swatch-clearing { background: #b7e0c2; }
body.staff-theme .chip-next {
  background: #d5e0ec;
  color: #2e3431;
  border-top-color: rgba(46, 52, 49, 0.14);
}
body.staff-theme .chip-next-empty {
  background: transparent;
  color: inherit;
}
body.staff-theme .state-available { background: #d5e3d8; }
body.staff-theme .state-held,
body.staff-theme .state-confirmed { background: #d5e0ec; }
body.staff-theme .state-arrived,
body.staff-theme .state-seated { background: #ddd4ea; }
body.staff-theme .state-finishing { background: #eadcc4; }
body.staff-theme .state-overdue { background: #ead0cc; }
body.staff-theme .state-blocked { background: #e4e4e2; }
body.staff-theme .resize-handle {
  background: #5a7166;
}
body.staff-theme .join-checks label {
  background: #eef0ee;
}
body.staff-theme .setup-table th,
body.staff-theme .setup-table td {
  border-bottom-color: var(--line);
}
.grid-toolbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(80px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  background: #eef0ee;
}
.grid-toolbar .lede { margin: 0; }
.grid-toolbar .live-btn { justify-self: end; }
.color-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
  padding: 8px 12px;
  color: #3e4f48;
  font-size: 0.75rem;
  font-weight: 600;
}
.floor-pane .color-key {
  flex: 0 0 auto;
  background: #eef0ee;
  border-top: 1px solid var(--line);
  justify-content: flex-start;
}
.color-key-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.color-key .swatch {
  display: inline-block;
  flex: 0 0 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(46, 52, 49, 0.22);
  box-sizing: border-box;
}
.swatch-available { background: #d5e3d8; }
.swatch-due { background: #d5e0ec; }
.swatch-due-now { box-shadow: inset 0 0 0 2px #c45c4e; }
.swatch-seated { background: #ddd4ea; }
.swatch-finishing { background: #eadcc4; }
.swatch-overdue { background: #ead0cc; }
.swatch-completed { background: #d7ddd8; }
.swatch-noshow { background: #ead0cc; }
.swatch-blocked {
  background: repeating-linear-gradient(
    -45deg,
    #d8d4cf,
    #d8d4cf 4px,
    #cfc9c2 4px,
    #cfc9c2 8px
  );
}
.swatch-walkin {
  outline: 2px dashed #2e3431;
  outline-offset: -1px;
}
.table-chip.is-walkin,
.grid-block.is-walkin,
.chip-next.is-walkin {
  outline: 2px dashed #2e3431;
  outline-offset: -4px;
}
.grid-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #e3e6e4;
  color: var(--ink);
}
.grid-canvas {
  position: relative;
  min-height: 100%;
}
.now-marker.grid-now {
  top: 0;
  bottom: 0;
  height: auto;
  z-index: 8;
}
.now-marker.grid-now .now-marker-label {
  top: 8px;
  bottom: auto;
}
.grid-head {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  background: #eef0ee;
  border-bottom: 1px solid var(--line);
}
.grid-head-row {
  display: flex;
}
.grid-covers-row {
  border-top: 1px solid rgba(46, 52, 49, 0.08);
  background: #e4e8e5;
}
.grid-corner,
.grid-table {
  position: sticky;
  left: 0;
  z-index: 5;
  width: 88px;
  flex: 0 0 88px;
  box-sizing: border-box;
  padding: 8px 10px;
  background: #f3f4f3;
  border-right: 1px solid var(--line);
}
.grid-corner { z-index: 7; background: #eef0ee; }
.grid-covers-row .grid-corner { background: #e4e8e5; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.grid-times,
.grid-covers,
.grid-track {
  display: flex;
  position: relative;
}
.grid-slot-label,
.grid-cover-slot,
.grid-slot {
  flex: 0 0 auto;
  box-sizing: border-box;
  border-right: 1px solid rgba(46, 52, 49, 0.08);
}
.grid-slot-label {
  height: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}
.grid-slot-label.is-hour,
.grid-cover-slot.is-hour {
  font-weight: 700;
  color: var(--ink);
  border-right-color: rgba(46, 52, 49, 0.16);
}
.grid-cover-slot {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #3e4f48;
}
.grid-cover-slot.is-empty {
  font-weight: 500;
  color: var(--muted);
}
.grid-row {
  display: flex;
  min-height: 46px;
  border-bottom: 1px solid rgba(46, 52, 49, 0.08);
}
.grid-table {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f3f4f3;
  line-height: 1.15;
}
.grid-table small {
  color: var(--muted);
  font-size: 0.72rem;
}
.grid-slot {
  height: 46px;
  cursor: pointer;
}
.grid-slot.is-hour {
  border-right-color: rgba(46, 52, 49, 0.16);
  background: rgba(255, 255, 255, 0.28);
}
.grid-block {
  position: absolute;
  top: 6px;
  height: 34px;
  border: 1px solid rgba(46, 52, 49, 0.1);
  border-radius: 8px;
  padding: 0 8px;
  color: #2e3431;
  font: inherit;
  font-size: 0.78rem;
  line-height: 34px;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(46, 52, 49, 0.08);
}
.grid-block b { margin-right: 4px; }
.grid-block.status-held,
.grid-block.status-confirmed { background: #d5e0ec; }
.grid-block.status-seated,
.grid-block.status-arrived { background: #ddd4ea; }
.grid-block.status-completed { background: #d7ddd8; color: #5a635e; }
.grid-block.status-no_show { background: #ead0cc; color: #6a4540; }
.grid-block.status-blocked {
  background: repeating-linear-gradient(
    -45deg,
    #d8d4cf,
    #d8d4cf 8px,
    #cfc9c2 8px,
    #cfc9c2 16px
  );
  color: #4f4c48;
  cursor: default;
  z-index: 1;
}
.grid-block.status-blocked.is-time-block {
  opacity: 0.92;
}
.grid-block.awaiting-seat {
  box-shadow: inset 0 0 0 2px #c45c4e;
  border-color: #c45c4e;
}
.grid-block.is-draggable { cursor: grab; }
.grid-block.is-ghost-source { opacity: 0.35; }
.grid-ghost {
  position: fixed;
  z-index: 80;
  margin: 0;
  cursor: grabbing;
  box-shadow: 0 8px 22px rgba(46, 52, 49, 0.2);
  pointer-events: none;
}
.grid-ghost.is-invalid {
  box-shadow: inset 0 0 0 2px #c45c4e, 0 8px 22px rgba(46, 52, 49, 0.2);
}
.grid-row.is-drop .grid-track {
  background: rgba(90, 113, 102, 0.12);
}
.grid-row.is-drop-bad .grid-track {
  background: rgba(196, 92, 78, 0.12);
}
body.is-grid-dragging,
body.is-grid-dragging * {
  cursor: grabbing !important;
  user-select: none;
}
.grid-empty { padding: 24px; color: var(--muted); }

.cancel-note {
  margin-top: 20px;
  padding: 14px 16px;
  background: #f8f9fa;
  border: 1px solid rgba(216, 13, 19, 0.12);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}
.cancel-note p { margin: 0 0 8px; }
.cancel-note p:last-child { margin: 0; }
.cancel-note a { color: #d80d13; font-weight: 600; }


/* ---- Staff mobile ---- */
.staff-bar-top {
  display: contents;
}
.staff-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #e4eae6;
  color: #3e4f48;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}
.staff-menu-toggle-lines {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 18px;
}
.staff-menu-toggle-lines span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
}
body.staff-theme .staff-menu-toggle {
  background: #e4eae6;
  color: #3e4f48;
  border: 1px solid var(--line);
}
.staff-bar.is-nav-open .staff-menu-toggle {
  background: #2e3431;
  color: #fff;
  border-color: #2e3431;
}

@media (max-width: 960px) {
  .staff-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }

  .staff-menu-toggle {
    display: inline-flex;
  }

  /* Floor plan + Grid stay desktop-only */
  .staff-nav-desktop {
    display: none !important;
  }

  .staff-bar {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 10px 12px;
    overflow: visible;
    white-space: normal;
    position: relative;
    z-index: 60;
  }

  .staff-bar-brand {
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .staff-bar-brand strong {
    font-size: 1rem;
    max-width: min(62vw, 240px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .staff-date {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .staff-date label {
    flex: 1;
  }

  .staff-date input {
    width: 100%;
    min-width: 0;
  }

  /* Collapse nav behind hamburger */
  .staff-app .staff-nav,
  .staff-nav {
    display: none !important;
    order: 4;
    width: 100%;
    margin-left: 0 !important;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 6px 0 2px;
  }

  .staff-bar.is-nav-open .staff-app .staff-nav,
  .staff-bar.is-nav-open .staff-nav {
    display: flex !important;
  }

  .staff-nav a {
    display: block;
    width: 100%;
    border-radius: 10px;
    padding: 12px 14px;
    text-align: left;
  }

  .staff-page {
    padding: 14px 12px 28px;
  }

  .staff-page .card {
    padding: 14px;
    border-radius: 14px;
  }

  .staff-page h2 {
    font-size: 1.25rem;
  }

  .bookings-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .bookings-filters label {
    width: 100%;
  }

  .bookings-filters input[type="date"],
  .bookings-filters input[type="search"],
  .bookings-filters input[type="text"],
  .bookings-filters select {
    width: 100%;
  }

  .bookings-filters .btn,
  .bookings-filters .btn-secondary {
    width: 100%;
  }

  .report-switch {
    flex-direction: column;
  }

  .report-switch .btn,
  .report-switch .btn-secondary {
    width: 100%;
  }

  .report-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .report-stat {
    padding: 12px;
  }

  .report-stat strong {
    font-size: 1.15rem;
  }

  .report-tabs {
    flex-direction: column;
  }

  .report-tab {
    min-width: 0;
    width: 100%;
  }

  .report-tab-total {
    margin-left: 0;
  }

  .report-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .report-export {
    width: 100%;
  }

  .report-export .btn-secondary {
    flex: 1;
    text-align: center;
  }

  .table-wrap {
    margin: 0 -4px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .setup-table {
    min-width: 720px;
    font-size: 0.9rem;
  }

  .setup-table th,
  .setup-table td {
    padding: 8px 6px;
  }

  .user-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .user-row .btn {
    width: 100%;
  }

  .setup-form .form-grid {
    grid-template-columns: 1fr;
  }

  .staff-workspace {
    flex-direction: column;
  }

  .staff-sidebar {
    width: 100%;
    flex: 0 0 auto;
    max-height: 42vh;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  body.staff-app.sidebar-collapsed .staff-sidebar {
    width: 100%;
    flex-basis: auto;
    max-height: 0;
  }

  .staff-sidebar-tab {
    top: auto;
    bottom: 12px;
    right: 12px;
    transform: none;
    writing-mode: horizontal-tb;
    border-radius: 999px;
    padding: 10px 14px;
  }

  .staff-app .timeline-track,
  .layout-toolbar {
    min-height: 48px;
  }

  .staff-toast {
    top: auto;
    bottom: 16px;
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
  }

  .staff-modal-card {
    width: min(100vw - 16px, 560px);
    max-height: calc(100dvh - 16px);
    margin: 8px;
    overflow: auto;
  }

  .booking-contact {
    flex-direction: column;
    gap: 6px;
  }

  .shell {
    width: min(100% - 16px, 1100px);
    margin: 12px auto 24px;
    padding: 0;
  }

  body.staff-theme .shell {
    width: min(100% - 16px, 1100px);
  }
}

@media (max-width: 560px) {
  .report-stats {
    grid-template-columns: 1fr;
  }

  .staff-bar-brand .eyebrow {
    font-size: 0.7rem;
  }

  .setup-table {
    min-width: 640px;
  }
}
