:root {
  color-scheme: dark;
  --ink: #f5f5f7;
  --muted: rgba(245, 245, 247, 0.68);
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --surface: rgba(19, 18, 18, 0.58);
  --surface-2: rgba(31, 30, 30, 0.54);
  --surface-warm: rgba(53, 42, 34, 0.38);
  --black: #050505;
  --yellow: #0a84ff;
  --yellow-soft: rgba(10, 132, 255, 0.16);
  --red: #ff453a;
  --red-soft: rgba(255, 69, 58, 0.18);
  --blue: #2f9af3;
  --blue-soft: rgba(47, 154, 243, 0.14);
  --blue-border: rgba(95, 173, 238, 0.24);
  --blue-glow: rgba(47, 154, 243, 0.12);
  --green: #30d158;
  --green-soft: rgba(48, 209, 88, 0.18);
  --glass-highlight: rgba(255, 255, 255, 0.09);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.24);
  --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 100%;
  min-height: 100%;
  background: #050505;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(4, 5, 7, 0.72) 0%, rgba(7, 9, 12, 0.58) 38%, rgba(4, 5, 7, 0.9) 100%),
    radial-gradient(circle at 15% 8%, rgba(253, 129, 18, 0.72) 0%, rgba(253, 129, 18, 0.28) 28%, transparent 54%),
    radial-gradient(circle at 82% 12%, rgba(0, 133, 202, 0.74) 0%, rgba(0, 133, 202, 0.3) 30%, transparent 58%),
    radial-gradient(circle at 58% 82%, rgba(253, 129, 18, 0.2) 0%, rgba(0, 133, 202, 0.18) 38%, transparent 66%),
    linear-gradient(160deg, #FD8112 0%, #151014 28%, #07131a 52%, #0085CA 100%),
    #050505;
  background-position: center;
  background-size: 100vw 100vh;
  background-repeat: no-repeat;
  pointer-events: none;
}

body:has(.booking-public-page)::before {
  background:
    radial-gradient(circle at 14% 0%, rgba(47, 154, 243, 0.16) 0%, rgba(47, 154, 243, 0.08) 28%, transparent 56%),
    radial-gradient(circle at 88% 12%, rgba(253, 129, 18, 0.13) 0%, rgba(253, 129, 18, 0.06) 30%, transparent 58%),
    linear-gradient(180deg, #f7f9fb 0%, #eef2f6 100%);
}

body:has(.booking-public-page) {
  color: #101828;
  color-scheme: light;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  transition:
    transform 120ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    opacity 160ms ease;
}

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

.shell {
  position: relative;
  width: min(1480px, calc(100% - 36px));
  max-width: 1480px;
  margin: 0 auto;
  padding: 20px 0;
}

.app-logo-badge {
  display: grid;
  place-items: center;
  width: fit-content;
  max-width: calc(100% - 28px);
  margin: -20px auto 18px;
  padding: 10px 22px 12px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 -1px 0 rgba(16, 24, 40, 0.04),
    0 14px 34px rgba(0, 0, 0, 0.18);
}

.app-logo-badge__img {
  display: block;
  width: clamp(112px, 9.6vw, 136px);
  max-width: 100%;
  height: auto;
}

.shell:not(.booking-route-shell) .app-logo-badge {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 12;
  margin: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.app-credit {
  position: fixed;
  right: 18px;
  bottom: 14px;
  z-index: 8;
  width: fit-content;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(20, 19, 19, 0.52);
  color: rgba(245, 245, 247, 0.72);
  font-size: 0.74rem;
  font-weight: 650;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: visible;
  background: rgba(18, 17, 17, 0.58);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 16px 42px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

.brand-block {
  padding: 18px 18px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 460px);
  gap: 16px;
  align-items: start;
}

.hero-toolbar {
  display: grid;
  gap: 10px;
  justify-self: end;
  align-self: start;
  width: min(460px, 100%);
}

.hero-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(18, 17, 17, 0.5);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.refresh-control {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  width: fit-content;
  max-width: 100%;
  gap: 14px;
  padding: 9px 10px 9px 12px;
  border: 1px solid var(--line-soft);
  border-radius: calc(var(--radius) - 4px);
  background: rgba(18, 17, 17, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.refresh-status {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

.refresh-status.error {
  color: rgba(255, 118, 112, 0.92);
  white-space: normal;
}

.refresh-status.loading {
  color: rgba(216, 236, 255, 0.88);
}

.refresh-relative {
  color: rgba(245, 245, 247, 0.82);
}

.refresh-clock {
  color: rgba(245, 245, 247, 0.5);
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.95;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.7rem, 5vw, 4.45rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.subtitle {
  max-width: 420px;
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.hero-metrics,
.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.hero-metrics {
  padding: 8px 18px 18px;
}

.metric-card {
  position: relative;
  min-height: 78px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(16, 15, 15, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 8px 18px rgba(0, 0, 0, 0.12);
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin: 5px 0 3px;
  color: var(--ink);
  font-size: clamp(1.65rem, 2.75vw, 2.85rem);
  line-height: 0.95;
}

.page-actions {
  display: flex;
  justify-content: center;
  padding: 18px 0 34px;
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  border-radius: var(--radius);
  overflow-x: auto;
  overflow-y: hidden;
  background: transparent;
}

.tab-group {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  min-width: 0;
}

.tab-group-booking {
  margin-left: auto;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-tab {
  background: rgba(18, 17, 17, 0.62);
}

.tab,
.secondary-action,
.ghost-action,
.file-action {
  min-height: 44px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0 16px;
  background: rgba(30, 29, 29, 0.5);
  color: var(--ink);
  font-weight: 760;
  white-space: nowrap;
}

#logoutButton {
  min-height: 38px;
  margin-top: 0;
  padding: 0 14px;
  color: rgba(245, 245, 247, 0.72);
  font-size: 0.82rem;
  background: rgba(20, 19, 19, 0.36);
}

.tab {
  flex: 0 0 auto;
}

.tab.active {
  background: rgba(47, 154, 243, 0.2);
  border-color: var(--blue-border);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 10px var(--blue-glow);
}

.workbench {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(360px, 1.15fr);
  gap: 18px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    var(--shadow-soft);
}

.control-panel {
  border-color: rgba(95, 173, 238, 0.2);
  background: rgba(20, 20, 22, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 14px 36px rgba(0, 0, 0, 0.26),
    0 0 16px rgba(47, 154, 243, 0.055);
}

.control-panel h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
}

.control-panel,
.results-panel,
.add-panel,
.archive-panel,
.table-panel {
  padding: 20px;
}

.panel-title,
.list-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.panel-title {
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

.selector-grid,
.search-grid,
.form-grid {
  display: grid;
  gap: 14px;
}

.selector-grid,
.search-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius);
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

textarea {
  min-height: 150px;
  padding: 14px;
  resize: vertical;
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  background-color: rgba(255, 255, 255, 0.055);
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 7L9 11.5L13.5 7' stroke='%23F5F5F7' stroke-opacity='0.72' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 15px center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
}

select option {
  background: #171719;
  color: var(--ink);
}

.custom-select {
  position: relative;
  display: block;
  width: 100%;
  text-transform: none;
}

.custom-select.open {
  z-index: 10000;
}

.custom-select .native-select {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.custom-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius);
  padding: 0 46px 0 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  text-align: left;
  font-weight: 760;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.custom-select-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 7L9 11.5L13.5 7' stroke='%23F5F5F7' stroke-opacity='0.72' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  transform: translateY(-50%);
  pointer-events: none;
}

.custom-select.open .custom-select-trigger,
.custom-select-trigger:focus {
  border-color: rgba(95, 173, 238, 0.56);
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 4px rgba(47, 154, 243, 0.12);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 10001;
  display: none;
  max-height: min(320px, 48vh);
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: calc(var(--radius) - 4px);
  background: rgba(18, 17, 17, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 18px 38px rgba(0, 0, 0, 0.34);
}

.custom-select.open .custom-select-menu {
  display: grid;
  gap: 3px;
}

.custom-select-option {
  position: relative;
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  padding: 0 10px 0 14px;
  background: transparent;
  color: rgba(245, 245, 247, 0.78);
  text-align: left;
  font-size: 0.88rem;
  font-weight: 760;
}

.custom-select-option.slot-option::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 6px;
  width: 2px;
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.18);
}

.custom-select-option.slot-option--hour-start {
  margin-top: 8px;
  padding-top: 10px;
}

.custom-select-option.slot-option--hour-start::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.custom-select-option.slot-option--hour-start::before {
  top: 17px;
}

.custom-select-option.slot-option--available::before {
  background: rgba(48, 209, 88, 0.52);
}

.custom-select-option.slot-option--low {
  color: rgba(255, 214, 120, 0.9);
}

.custom-select-option.slot-option--low::before {
  background: rgba(255, 159, 10, 0.72);
}

.custom-select-option.slot-option--full,
.custom-select-option.slot-option--closed {
  color: rgba(255, 188, 184, 0.68);
  cursor: not-allowed;
  opacity: 0.58;
}

.custom-select-option.slot-option--full::before,
.custom-select-option.slot-option--closed::before {
  background: rgba(180, 72, 68, 0.58);
}

.custom-select-option:hover,
.custom-select-option:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.075);
  color: var(--ink);
}

.custom-select-option:disabled:hover,
.custom-select-option:disabled:focus {
  background: transparent;
  color: rgba(255, 188, 184, 0.68);
}

.custom-select-option.selected {
  background: rgba(47, 154, 243, 0.16);
  color: #ffffff;
}

.custom-select-option.slot-option.selected::before {
  background: rgba(245, 245, 247, 0.64);
}

input:focus,
select:focus {
  border-color: rgba(95, 173, 238, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 4px rgba(47, 154, 243, 0.12);
}

.microcopy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.search-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-top: 14px;
}

.search-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.search-actions .microcopy {
  margin: 0;
}

.service-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: var(--radius);
  color: var(--ink);
}

.service-status.ok {
  background: rgba(48, 209, 88, 0.14);
}

.service-status.blocked {
  background: rgba(255, 69, 58, 0.14);
}

.quick-extra-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin: 18px 0 16px;
  padding: 16px 0;
  border: 0;
  border-top: 1px solid rgba(95, 173, 238, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.quick-extra-box h3 {
  margin: 0;
  font-size: 1rem;
}

.quick-extra-message {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 760;
}

.people-list,
.person-admin-list {
  display: grid;
  gap: 12px;
}

.people-toolbar {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0;
  background: transparent;
}

.person-card,
.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--blue-border);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.18);
}

.admin-row {
  position: relative;
}

.person-card.checked {
  border-left-color: var(--green);
  background: rgba(25, 37, 29, 0.5);
}

.person-main,
.admin-row > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.person-main strong,
.admin-row strong {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.person-main span,
.admin-row span,
.person-numbers span,
.admin-stats span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.guest-inline {
  color: var(--green);
  font-size: 0.95rem;
}

.meal-count {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 6px;
  padding: 0 8px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  vertical-align: middle;
}

.guest-note {
  color: rgba(48, 209, 88, 0.78) !important;
}

.person-numbers,
.admin-stats {
  display: grid;
  gap: 4px;
  text-align: right;
  min-width: 112px;
}

.token-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.08;
  font-weight: 760;
  text-transform: none;
}

.token-inline input {
  width: 74px;
  min-height: 34px;
  padding: 0 8px;
  justify-self: end;
  text-align: center;
  text-align-last: center;
  font-size: 0.9rem;
}

.token-remaining {
  font-size: 0.82rem !important;
}

.guest-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.guest-step,
.guest-quantity {
  min-height: 38px;
  border: 1px solid rgba(48, 209, 88, 0.32);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.guest-step {
  min-width: 38px;
  background: rgba(48, 209, 88, 0.14);
}

.guest-step:disabled {
  opacity: 0.42;
}

.guest-quantity {
  display: inline-grid;
  min-width: 42px;
  place-items: center;
  background: rgba(48, 209, 88, 0.12);
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  opacity: 0;
  pointer-events: auto;
  transition: opacity 150ms ease;
}

.admin-actions.visible,
.admin-row:hover .admin-actions,
.admin-row:focus-within .admin-actions,
.admin-actions:hover {
  opacity: 1;
}

.people-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.check-button,
.primary-action {
  min-height: 48px;
  border: 1px solid rgba(95, 173, 238, 0.34);
  border-radius: var(--radius);
  padding: 0 20px;
  background: rgba(47, 154, 243, 0.78);
  color: #ffffff;
  font-weight: 1000;
  text-transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 22px rgba(0, 0, 0, 0.12);
}

.compact-action {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.82rem;
}

.admin-actions .compact-action,
.delete-confirm .compact-action {
  min-width: 82px;
  min-height: 44px;
  justify-content: center;
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 760;
}

.person-card.checked .check-button {
  border-color: rgba(48, 209, 88, 0.34);
  background: rgba(48, 209, 88, 0.78);
  color: #ffffff;
}

.add-panel {
  grid-column: 1 / -1;
}

.table-panel .add-panel {
  margin-bottom: 16px;
  background: rgba(31, 30, 30, 0.42);
}

.add-panel .primary-action {
  margin-top: 18px;
}

.wide {
  grid-column: span 2;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.075);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 1000;
}

.empty-state {
  padding: 26px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(12, 12, 13, 0.24);
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.empty-state.accent {
  color: var(--ink);
  background: rgba(47, 154, 243, 0.1);
}

.live-panel {
  padding: 20px;
}

.live-feed {
  display: grid;
  gap: 10px;
}

.live-entry {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-left: 4px solid rgba(95, 173, 238, 0.22);
  border-radius: var(--radius);
  background: rgba(18, 17, 17, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.live-entry.extra {
  border-left-color: rgba(253, 129, 18, 0.34);
}

.live-entry time {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0;
}

.live-entry-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.live-entry-main strong {
  overflow-wrap: anywhere;
  font-size: 1.06rem;
}

.live-entry-main span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.live-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.live-badge.meal {
  border-color: rgba(95, 173, 238, 0.2);
  color: #d8ecff;
}

.live-badge.guests {
  border-color: rgba(48, 209, 88, 0.22);
  color: #b8f6c7;
}

.live-badge.extra {
  border-color: rgba(253, 129, 18, 0.26);
  color: #ffd8b8;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.booking-panel {
  display: grid;
  gap: 18px;
}

.booking-overview-panel,
.booking-form-panel {
  padding: 20px;
}

.booking-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.booking-settings-note {
  display: grid;
  gap: 4px;
  min-height: 48px;
  align-content: center;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.booking-settings-note strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.booking-settings-note span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.booking-metrics {
  grid-template-columns: minmax(220px, 1.35fr) repeat(2, minmax(150px, 0.82fr));
  margin: 0 0 18px;
}

.booking-metrics .metric-card {
  min-height: 72px;
  background: rgba(16, 15, 15, 0.5);
}

.booking-metrics .metric-card:not(.booking-metric-primary) strong {
  font-size: clamp(1.35rem, 1.8vw, 2rem);
}

.booking-metrics .metric-card:not(.booking-metric-primary) {
  opacity: 0.86;
}

.booking-metric-primary {
  min-height: 92px;
  border-color: rgba(95, 173, 238, 0.16);
  background: rgba(20, 20, 22, 0.66);
}

.booking-metric-primary strong {
  font-size: clamp(2rem, 3.4vw, 3.35rem);
}

.booking-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(174px, 1fr));
  gap: 9px;
}

.booking-slot-card {
  --slot-accent: rgba(94, 201, 118, 0.78);
  --slot-text: rgba(184, 232, 194, 0.86);
  --slot-fill: 0%;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 6px;
  min-height: 104px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--slot-accent);
  border-radius: var(--radius);
  background: rgba(16, 15, 15, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.booking-slot-card.slot-card--low {
  --slot-accent: rgba(226, 183, 77, 0.82);
  --slot-text: rgba(238, 205, 124, 0.9);
}

.booking-slot-card.slot-card--full {
  --slot-accent: rgba(225, 91, 84, 0.84);
  --slot-text: rgba(239, 159, 154, 0.92);
}

.booking-slot-card.slot-card--current {
  outline: 2px solid rgba(95, 173, 238, 0.62);
  outline-offset: 2px;
  border-color: rgba(95, 173, 238, 0.24);
}

.booking-slot-head {
  display: block;
}

.booking-slot-head strong {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.02;
  white-space: nowrap;
}

.booking-slot-kpi {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.05;
}

.booking-slot-progress {
  overflow: hidden;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.085);
}

.booking-slot-progress span {
  display: block;
  width: var(--slot-fill);
  height: 100%;
  border-radius: inherit;
  background: var(--slot-accent);
}

.booking-slot-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.booking-slot-card span,
.booking-unassigned span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 780;
}

.booking-unassigned strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.booking-slot-remaining {
  color: var(--slot-text) !important;
  font-size: 0.74rem !important;
  font-weight: 730 !important;
}

.booking-slot-card.slot-card--full .booking-slot-remaining {
  color: var(--slot-text) !important;
}

.booking-create-panel {
  gap: 26px;
}

.booking-public-page.booking-create-panel {
  gap: 14px;
}

.booking-route-shell {
  width: min(1180px, calc(100% - 36px));
  max-width: 1180px;
  color: #101828;
}

.booking-route-shell .app-credit {
  border-color: rgba(16, 24, 40, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(16, 24, 40, 0.52);
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.08);
}

.booking-public-page {
  width: 100%;
  min-height: 520px;
  padding: 30px 22px 42px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 0%, rgba(47, 154, 243, 0.14), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(255, 159, 10, 0.11), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 246, 248, 0.94)),
    #f4f6f8;
  color: #101828;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 24px 70px rgba(16, 24, 40, 0.18);
  color-scheme: light;
}

.booking-public-hero {
  display: grid;
  gap: 9px;
  width: min(780px, 100%);
  min-height: 132px;
  align-content: start;
  margin: 0 auto;
  text-align: center;
}

.booking-public-hero .eyebrow {
  margin: 0;
  color: rgba(25, 112, 200, 0.94);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.booking-public-hero h2 {
  margin: 0;
  color: #0b1220;
  font-size: clamp(2.35rem, 4.2vw, 3.7rem);
  font-weight: 980;
  line-height: 0.96;
  letter-spacing: -0.015em;
}

.booking-public-hero p:last-child {
  width: min(590px, 100%);
  margin: 0 auto;
  color: rgba(52, 64, 84, 0.76);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.48;
}

.booking-public-flow {
  display: grid;
  gap: 12px;
  width: min(980px, 100%);
  min-width: 0;
  margin: 0 auto;
}

.booking-public-flow.has-mode {
  width: min(840px, 100%);
  gap: 10px;
}

.booking-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.booking-mode-card {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 154px;
  min-width: 0;
  padding: 21px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.78)),
    rgba(255, 255, 255, 0.72);
  color: #101828;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 34px rgba(16, 24, 40, 0.1);
  cursor: pointer;
}

.booking-mode-card strong {
  color: #101828;
  font-size: 1.35rem;
  font-weight: 930;
  line-height: 1.12;
}

.booking-mode-card span {
  max-width: 320px;
  color: rgba(71, 85, 105, 0.82);
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.32;
}

.booking-mode-card.active {
  border-color: rgba(47, 154, 243, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 255, 0.82)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(47, 154, 243, 0.12),
    0 16px 34px rgba(47, 154, 243, 0.1);
}

.booking-mode-change {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  align-items: center;
  min-width: 0;
  margin: -2px 0 -4px;
  padding: 0 2px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

.booking-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.booking-form-grid--guided {
  grid-template-columns: minmax(0, 1fr);
}

.booking-public-page .booking-form-panel {
  width: 100%;
  min-width: 0;
  padding: 18px;
  border-color: rgba(16, 24, 40, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.82)),
    rgba(255, 255, 255, 0.76);
  color: #101828;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 46px rgba(16, 24, 40, 0.1);
}

.booking-public-page .booking-form-panel .panel-title {
  margin-bottom: 14px;
}

.booking-public-page .booking-form-panel .panel-title .eyebrow {
  color: rgba(25, 112, 200, 0.9);
}

.booking-public-page .booking-form-panel .panel-title h2 {
  color: #101828;
  font-size: 1.55rem;
}

.booking-form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.booking-form-fields label,
.booking-team-row label {
  min-width: 0;
}

.booking-form-panel input {
  height: 48px;
  min-height: 48px;
  font-size: 1rem;
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

.booking-form-panel input::placeholder {
  font-size: 1rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: none;
}

.booking-form-panel input:focus {
  border-color: rgba(95, 173, 238, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(95, 173, 238, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.booking-public-page label,
.booking-public-page .booking-team-list-head {
  color: rgba(52, 64, 84, 0.66);
}

.booking-public-page input,
.booking-public-page select,
.booking-public-page textarea,
.booking-public-page .custom-select-trigger {
  border-color: rgba(16, 24, 40, 0.1);
  background: rgba(255, 255, 255, 0.7);
  color: #101828;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 1px 2px rgba(16, 24, 40, 0.04);
}

.booking-public-page select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 52px;
  background-color: rgba(255, 255, 255, 0.7);
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 7L9 11.5L13.5 7' stroke='%23344054' stroke-opacity='0.68' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 18px 18px;
}

.booking-public-page select option {
  background: #ffffff;
  color: #101828;
}

.booking-public-page input::placeholder,
.booking-public-page textarea::placeholder {
  color: rgba(52, 64, 84, 0.42);
}

.booking-public-page input:focus,
.booking-public-page select:focus,
.booking-public-page textarea:focus,
.booking-public-page .custom-select.open .custom-select-trigger,
.booking-public-page .custom-select-trigger:focus {
  border-color: rgba(47, 154, 243, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 4px rgba(47, 154, 243, 0.12);
}

.booking-public-page .custom-select-trigger::after {
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 7L9 11.5L13.5 7' stroke='%23344054' stroke-opacity='0.68' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.booking-public-page .custom-select-trigger [data-select-value] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-public-page .custom-select-menu {
  border-color: rgba(16, 24, 40, 0.1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 38px rgba(16, 24, 40, 0.14);
}

.booking-public-page .custom-select-menu .custom-select-option {
  display: block;
  width: 100%;
  overflow: hidden !important;
  text-overflow: ellipsis;
  white-space: nowrap !important;
  color: rgba(52, 64, 84, 0.84);
}

.booking-public-page .custom-select-option.slot-option::before {
  background: rgba(16, 24, 40, 0.16);
}

.booking-public-page .custom-select-option.slot-option--available::before {
  background: rgba(32, 167, 82, 0.48);
}

.booking-public-page .custom-select-option.slot-option--low {
  color: rgba(142, 92, 0, 0.88);
}

.booking-public-page .custom-select-option.slot-option--low::before {
  background: rgba(214, 132, 6, 0.62);
}

.booking-public-page .custom-select-option.slot-option--full,
.booking-public-page .custom-select-option.slot-option--closed {
  color: rgba(157, 52, 45, 0.62);
}

.booking-public-page .custom-select-option:hover,
.booking-public-page .custom-select-option:focus {
  background: rgba(47, 154, 243, 0.08);
  color: #101828;
}

.booking-public-page .custom-select-option:disabled:hover,
.booking-public-page .custom-select-option:disabled:focus {
  background: transparent;
  color: rgba(157, 52, 45, 0.62);
}

.booking-public-page .custom-select-option.selected {
  background: rgba(47, 154, 243, 0.12);
  color: #0b1220;
}

.booking-public-page .custom-select-option.slot-option.selected::before {
  background: rgba(25, 112, 200, 0.62);
}

.booking-message {
  margin: 12px 0 0;
  font-size: 0.9rem;
  font-weight: 850;
}

.booking-table-panel .booking-message {
  margin: 4px 0 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.booking-message.success {
  color: var(--green);
}

.booking-message.error {
  color: #ffb4ae;
}

.booking-public-page .booking-message.success {
  color: #16723a;
}

.booking-public-page .booking-message.error {
  color: #b42318;
}

.booking-public-page .booking-form-panel .microcopy {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(180, 117, 18, 0.22);
  border-radius: calc(var(--radius) - 6px);
  background: rgba(255, 248, 226, 0.78);
  color: #744b0b;
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.42;
}

.booking-team-list {
  display: grid;
  gap: 10px;
}

.booking-team-list-head {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.booking-team-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.booking-public-page .booking-team-row {
  border-color: rgba(16, 24, 40, 0.08);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.booking-public-page .primary-action {
  min-height: 44px;
  border-color: rgba(25, 112, 200, 0.26);
  background: rgba(25, 112, 200, 0.92);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 880;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 18px rgba(25, 112, 200, 0.14);
}

.booking-public-page .secondary-action,
.booking-public-page .ghost-action,
.booking-public-page .file-action {
  min-height: 38px;
  border-color: rgba(16, 24, 40, 0.09);
  background: rgba(255, 255, 255, 0.68);
  color: rgba(16, 24, 40, 0.72);
  font-size: 0.84rem;
  font-weight: 760;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 6px 14px rgba(16, 24, 40, 0.055);
}

.booking-team-remove {
  justify-content: center;
  min-width: 44px;
  padding: 0;
}

.booking-team-add {
  justify-self: start;
  margin-top: 2px;
}

.booking-form-panel .primary-action {
  margin-top: 14px;
}

.booking-unassigned {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 214, 10, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 214, 10, 0.08);
}

.booking-public-page .booking-unassigned {
  border-color: rgba(180, 117, 18, 0.28);
  background: rgba(255, 248, 226, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.booking-public-page .booking-unassigned strong {
  color: #5f3b05;
  font-size: 0.92rem;
  font-weight: 900;
}

.booking-public-page .booking-unassigned span {
  color: #7a4d08;
  font-size: 0.88rem;
  font-weight: 780;
  line-height: 1.42;
}

.booking-table-panel {
  overflow: hidden;
  background: rgba(15, 15, 16, 0.5);
}

.booking-slot-groups {
  display: grid;
  gap: 10px;
}

.booking-day-slot-group {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-left: 3px solid rgba(95, 173, 238, 0.34);
  border-radius: var(--radius);
  background: rgba(12, 12, 13, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.booking-day-slot-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 11px 14px 11px 16px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: rgba(8, 8, 9, 0.58);
  box-shadow: none;
  text-align: left;
  cursor: pointer;
}

.booking-day-slot-head:hover,
.booking-day-slot-head:focus-visible {
  background: rgba(255, 255, 255, 0.045);
}

.booking-day-slot-group.expanded .booking-day-slot-head {
  border-bottom-color: rgba(255, 255, 255, 0.065);
  background: rgba(8, 8, 9, 0.76);
}

.booking-day-slot-head strong {
  display: grid;
  gap: 2px;
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 900;
  line-height: 1.1;
}

.booking-day-slot-head strong span {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.booking-day-slot-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  white-space: nowrap;
}

.booking-day-slot-head em {
  color: var(--muted);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
}

.booking-day-slot-body {
  display: none;
  padding: 6px 0;
}

.booking-day-slot-group.expanded .booking-day-slot-body {
  display: grid;
}

.booking-day-slot-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-height: 48px;
  padding: 7px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.booking-day-slot-row:last-child {
  border-bottom: 0;
}

.booking-day-slot-row:hover,
.booking-day-slot-row:focus-within {
  background: rgba(255, 255, 255, 0.035);
}

.booking-row-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.booking-day-slot-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-row-name {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 880;
  line-height: 1.08;
}

.booking-row-company {
  color: rgba(245, 245, 247, 0.58);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.1;
}

.booking-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.booking-row-actions span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.booking-delete-action,
.booking-delete-confirm,
.booking-delete-cancel {
  justify-self: end;
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 900;
}

.booking-delete-action,
.booking-delete-confirm {
  border: 1px solid rgba(255, 69, 58, 0.22);
  border-radius: 999px;
  background: rgba(255, 69, 58, 0.1);
  color: #ffb4ae;
}

.booking-delete-action {
  opacity: 0;
  pointer-events: none;
}

.booking-delete-cancel {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
}

.booking-day-slot-row:hover .booking-delete-action,
.booking-day-slot-row:focus-within .booking-delete-action {
  opacity: 1;
  pointer-events: auto;
}

.booking-delete-action:hover,
.booking-delete-confirm:hover {
  border-color: rgba(255, 69, 58, 0.42);
  background: rgba(255, 69, 58, 0.18);
}

.booking-delete-cancel:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.085);
}

.metric-row {
  grid-column: 1 / -1;
}

.span-2 {
  grid-column: 1 / -1;
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: var(--radius);
  background: rgba(12, 12, 13, 0.42);
}

.matrix-panel {
  padding: 20px;
}

.matrix-meal-selector {
  width: min(220px, 100%);
}

.matrix-copy {
  margin: -2px 0 16px;
}

.matrix-mini-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0;
  background: transparent;
}

.matrix-weekbar {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0;
  background: transparent;
}

.week-arrow {
  display: inline-grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.052);
  color: rgba(245, 245, 247, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.week-arrow svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.week-arrow:disabled {
  background: rgba(255, 255, 255, 0.025);
  color: rgba(245, 245, 247, 0.28);
  border-color: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.matrix-week-label {
  display: grid;
  gap: 2px;
  justify-items: center;
  min-width: 180px;
  min-height: 42px;
  align-content: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.matrix-week-label strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.matrix-scroll {
  max-height: 72vh;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(5, 5, 5, 0.24);
}

.matrix-table {
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
}

.matrix-table th,
.matrix-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-right: 1px solid rgba(255, 255, 255, 0.055);
  padding: 7px;
  vertical-align: middle;
}

.matrix-table thead th {
  top: 0;
  z-index: 6;
  height: 54px;
  background: #111113;
}

.matrix-person-col {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 300px;
  min-width: 300px;
  background: rgba(16, 15, 15, 0.96);
}

.matrix-table thead .matrix-person-col {
  z-index: 8;
}

.matrix-token-col {
  position: sticky;
  left: 300px;
  z-index: 3;
  width: 72px;
  min-width: 72px;
  text-align: center;
  background: rgba(16, 15, 15, 0.96);
  font-weight: 850;
}

.matrix-table thead .matrix-token-col {
  z-index: 8;
}

.matrix-date-col {
  width: 58px;
  min-width: 58px;
  text-align: center;
}

.matrix-date-col span,
.matrix-date-col small {
  display: block;
}

.matrix-date-col span {
  color: var(--ink);
  font-weight: 900;
}

.matrix-date-col small {
  color: var(--muted);
  font-size: 0.68rem;
}

.matrix-date-col.selected {
  background: #15304a;
  box-shadow:
    inset 0 -3px 0 rgba(95, 173, 238, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.matrix-total-col,
.matrix-total-cell {
  width: 58px;
  min-width: 58px;
  text-align: center;
  font-weight: 900;
}

.matrix-group-row td {
  background: rgba(255, 255, 255, 0.065);
  color: var(--ink);
}

.matrix-group-row .matrix-person-col {
  border-left: 4px solid var(--blue-border);
}

.matrix-group-row strong,
.matrix-group-row span,
.matrix-person-row strong,
.matrix-person-row span {
  display: block;
}

.matrix-group-row span,
.matrix-person-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.matrix-person-row .matrix-person-col {
  color: var(--ink);
}

.matrix-check-cell {
  width: 58px;
  min-width: 58px;
  padding: 5px !important;
  text-align: center;
  vertical-align: middle;
}

.matrix-check-cell.unavailable {
  background: rgba(255, 255, 255, 0.018);
}

.matrix-indicator {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: transparent;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 26px;
  text-align: center;
}

.matrix-indicator.checked {
  border-color: rgba(48, 209, 88, 0.68);
  background: rgba(48, 209, 88, 0.26);
  color: var(--green);
}

.matrix-indicator.unavailable {
  border-color: transparent;
  background: transparent;
}

.matrix-date-col.show {
  box-shadow: inset 0 -3px 0 rgba(95, 173, 238, 0.5);
}

.matrix-date-col.disallestimento {
  box-shadow: inset 0 -3px 0 rgba(99, 99, 102, 0.72);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  white-space: nowrap;
}

.table-panel .numeric-cell {
  text-align: center;
}

th {
  position: sticky;
  top: 0;
  background: rgba(8, 8, 9, 0.9);
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.022);
}

.selected-day-row td {
  background: rgba(47, 154, 243, 0.1) !important;
}

.selected-day-row td:first-child {
  box-shadow: inset 4px 0 0 rgba(95, 173, 238, 0.5);
}

.date-cell,
.weekday-cell {
  display: inline-block;
}

.date-cell {
  font-weight: 850;
}

.weekday-cell {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: capitalize;
}

.ok {
  color: var(--green) !important;
}

.warn {
  color: #ffd60a !important;
}

.danger {
  color: var(--red) !important;
}

.admin-row {
  grid-template-columns: minmax(0, 1fr) 112px minmax(112px, max-content);
}

.mini-input {
  min-height: 38px;
}

.admin-row:not(.editing) > div:first-child {
  grid-column: 1;
  align-self: center;
}

.admin-row:not(.editing) .admin-actions {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  min-height: 44px;
}

.admin-row:not(.editing) .admin-actions .compact-action {
  min-width: 98px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 17px;
}

.admin-row:not(.editing) .admin-stats {
  grid-column: 3;
  grid-row: 1;
  justify-content: end;
  justify-items: end;
  align-self: center;
}

.admin-row:not(.editing) .admin-stats span {
  display: block;
  text-align: right;
}

.admin-row.editing {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  border-left-color: var(--blue-border);
  background: rgba(19, 32, 48, 0.56);
}

.edit-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 1fr 0.55fr;
  gap: 14px;
  min-width: 0;
}

.archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.secondary-action,
.file-action {
  display: inline-flex;
  align-items: center;
  background: rgba(31, 30, 30, 0.5);
  color: var(--ink);
  border-color: var(--line-soft);
}

.secondary-action.week-arrow {
  display: inline-grid;
  place-items: center;
  justify-content: center;
  align-items: center;
}

.danger-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(255, 69, 58, 0.34);
  border-radius: var(--radius);
  padding: 0 16px;
  background: rgba(255, 69, 58, 0.14);
  color: #ffb4ae;
  font-weight: 760;
  white-space: nowrap;
}

.delete-confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.delete-confirm span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.archive-actions .secondary-action {
  min-height: 48px;
  justify-content: center;
  padding: 0 20px;
  border-radius: 13px;
  font-size: 0.94rem;
  font-weight: 760;
  text-transform: none;
}

.ghost-action {
  background: rgba(42, 40, 40, 0.46);
}

.file-action input {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .check-button:hover,
  .primary-action:hover,
  .tab.active:hover {
    transform: none;
    box-shadow: 0 0 0 1px rgba(95, 173, 238, 0.16);
  }

  .secondary-action:hover,
  .ghost-action:hover,
  .file-action:hover,
  .booking-mode-card:hover,
  .tab:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
  }

  .booking-public-page .secondary-action:hover,
  .booking-public-page .ghost-action:hover,
  .booking-public-page .file-action:hover {
    border-color: rgba(47, 154, 243, 0.22);
    background: rgba(255, 255, 255, 0.86);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 0 0 1px rgba(47, 154, 243, 0.08),
      0 10px 20px rgba(16, 24, 40, 0.08);
  }

  .booking-public-page .primary-action:hover {
    border-color: rgba(25, 112, 200, 0.34);
    background: rgba(25, 112, 200, 0.98);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 0 0 1px rgba(25, 112, 200, 0.08),
      0 10px 20px rgba(25, 112, 200, 0.16);
  }

  .booking-public-page .booking-mode-card:hover {
    border-color: rgba(47, 154, 243, 0.24);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.86)),
      rgba(255, 255, 255, 0.82);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 0 0 1px rgba(47, 154, 243, 0.08),
      0 16px 34px rgba(16, 24, 40, 0.12);
  }

  .guest-step:hover {
    transform: none;
    box-shadow: 0 0 0 1px rgba(48, 209, 88, 0.16);
  }

  .week-arrow:hover {
    background: rgba(255, 255, 255, 0.078);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  }

  .danger-action:hover {
    transform: none;
    box-shadow: 0 0 0 1px rgba(255, 69, 58, 0.16);
  }

  button:disabled:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (max-width: 980px) {
  .hero,
  .workbench,
  .dashboard-grid,
  .booking-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-metrics,
  .metric-row,
  .form-grid,
  .people-toolbar,
  .quick-extra-box,
  .matrix-mini-search,
  .edit-grid,
  .booking-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selector-grid,
  .search-grid {
    grid-template-columns: 1fr;
  }

  .booking-public-page {
    padding: 28px 18px 36px;
  }
}

@media (max-width: 680px) {
  .shell {
    width: calc(100% - 20px);
    padding: 12px 0;
  }

  .app-logo-badge {
    margin: -12px auto 14px;
    padding: 8px 19px 10px;
    border-radius: 0 0 14px 14px;
  }

  .app-logo-badge__img {
    width: clamp(94px, 29vw, 111px);
  }

  .shell:not(.booking-route-shell) .app-logo-badge {
    position: static;
    margin: -12px auto 18px;
    transform: none;
  }

  .shell:not(.booking-route-shell) .hero {
    margin-top: 0;
  }

  .tabs {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .hero-metrics,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-block {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 18px 0;
  }

  .hero-toolbar {
    justify-self: stretch;
    width: 100%;
  }

  .hero-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .refresh-control {
    justify-content: space-between;
    justify-self: end;
    width: fit-content;
  }

  .refresh-status {
    text-align: left;
  }

  h1 {
    font-size: clamp(2.5rem, 12vw, 3.45rem);
  }

  .hero-metrics {
    padding: 10px 12px 14px;
  }

  .metric-card {
    min-height: 82px;
    padding: 12px;
  }

  .person-card,
  .admin-row,
  .admin-row.editing,
  .live-entry {
    grid-template-columns: 1fr;
  }

  .people-toolbar,
  .matrix-mini-search,
  .edit-grid,
  .booking-mode-grid,
  .booking-toolbar,
  .booking-form-fields,
  .booking-team-row {
    grid-template-columns: 1fr;
  }

  .booking-public-page {
    min-height: 0;
    padding: 22px 12px 30px;
  }

  .booking-public-hero {
    height: auto;
    min-height: 0;
    gap: 8px;
    text-align: left;
  }

  .booking-public-hero h2 {
    font-size: 2.1rem;
  }

  .booking-public-hero p:last-child {
    margin: 0;
    font-size: 0.95rem;
  }

  .booking-public-flow {
    margin-top: 0;
  }

  .booking-mode-card {
    min-height: 124px;
    padding: 16px;
  }

  .booking-mode-card strong {
    font-size: 1.2rem;
  }

  .booking-mode-change {
    justify-content: flex-start;
    margin: -2px 0 -2px;
  }

  .booking-delete-action {
    opacity: 1;
    pointer-events: auto;
  }

  .matrix-weekbar {
    gap: 8px;
  }

  .matrix-week-label {
    min-width: 150px;
  }

  .person-numbers,
  .guest-actions,
  .live-badges,
  .admin-stats,
  .admin-actions,
  .delete-confirm {
    text-align: left;
    justify-content: flex-start;
    opacity: 1;
  }

  .admin-row:not(.editing) {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .admin-row:not(.editing) > div:first-child {
    grid-column: 1 / -1;
  }

  .admin-row:not(.editing) > div:first-child {
    grid-row: 1;
    padding-right: 0;
  }

  .admin-row:not(.editing) .admin-actions {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: end;
    justify-content: flex-end;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    text-align: right;
  }

  .admin-row:not(.editing) .admin-stats {
    grid-column: 1;
    grid-row: 2;
    justify-content: start;
    justify-items: start;
    text-align: left;
  }

  .token-inline input {
    justify-self: start;
  }

  .token-inline {
    justify-content: flex-start;
  }

  .wide {
    grid-column: auto;
  }

  .search-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .search-action-buttons {
    justify-content: flex-start;
  }

  .app-credit {
    right: 10px;
    bottom: 10px;
    font-size: 0.68rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .booking-public-page select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 52px;
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 18px 18px;
  }

  .custom-select .native-select {
    position: static;
    opacity: 1;
    pointer-events: auto;
  }

  .custom-select-trigger,
  .custom-select-menu {
    display: none !important;
  }

  .booking-public-page .custom-select .native-select {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
  }

  .booking-public-page .custom-select-trigger {
    display: flex !important;
  }

  .booking-public-page .custom-select-menu {
    display: none !important;
    max-height: min(320px, 48vh);
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .booking-public-page .custom-select.open .custom-select-menu {
    display: grid !important;
  }

  .booking-public-page .custom-select-option {
    min-height: 42px;
    font-size: 0.82rem;
    line-height: 1;
  }

  .booking-delete-action {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .hero,
  .panel,
  .metric-card,
  .person-card,
  .admin-row,
  .check-button,
  .primary-action,
  .secondary-action,
  .ghost-action,
  .file-action,
  .danger-action {
    box-shadow: none;
  }
}
