:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #667085;
  --line: #d7e1ea;
  --surface: #ffffff;
  --page: #f4f8f7;
  --navy: #26364a;
  --green: #2f7d63;
  --red: #b42318;
  --amber: #bf7411;
  --blue: #245ca8;
  --gold: #f5b84b;
  --green-tint: #eaf7f2;
  --blue-tint: #edf5ff;
  --gold-tint: #fff6e3;
  --navy-tint: #eef2f6;
  --shadow: 0 18px 45px rgba(31, 41, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(36, 92, 168, 0.06), rgba(47, 125, 99, 0.04) 280px, transparent 520px),
    var(--page);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
}

.access-screen {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(38, 54, 74, 0.95), rgba(36, 92, 168, 0.82) 54%, rgba(47, 125, 99, 0.9)),
    var(--navy);
}

body.access-locked {
  overflow-x: hidden;
  overflow-y: auto;
}

body.access-locked .access-screen {
  display: flex;
}

body.access-locked .app-shell {
  display: none;
}

.access-login-stack {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.access-card {
  width: 100%;
  display: grid;
  gap: 14px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

.access-platform-card {
  align-self: stretch;
  border: 2px solid rgba(47, 128, 110, 0.24);
  background:
    linear-gradient(180deg, rgba(47, 128, 110, 0.06), rgba(39, 94, 166, 0.05)),
    var(--surface);
}

.access-mini-form,
.platform-venue-panel {
  display: grid;
  gap: 12px;
}

.platform-venue-panel {
  gap: 16px;
  padding: 18px;
  border: 2px solid rgba(47, 128, 110, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 4px 0 0 var(--green);
}

.platform-venue-panel.is-hidden {
  display: none;
}

.platform-panel-heading {
  display: grid;
  gap: 4px;
}

.platform-panel-heading h3,
#platform-new-venue-form h3 {
  margin: 0;
  color: var(--ink);
}

.platform-existing-venue {
  display: grid;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.access-logo {
  width: 330px;
  max-width: 92%;
  justify-self: center;
  margin: 8px 0 4px;
}

.access-parent-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  margin-bottom: 2px;
}

.access-parent-brand img {
  width: 78px;
  max-height: 28px;
  object-fit: contain;
}

.access-card .eyebrow,
.access-card .muted,
.access-card h1,
.access-card h2 {
  text-align: center;
}

.access-card h1,
.access-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.08;
}

.access-card label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
}

.access-card input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 15px 16px;
  color: var(--ink);
  background: #ffffff;
}

.access-card select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 15px 16px;
  color: var(--ink);
  background: #ffffff;
}

.account-logout {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.access-staff-button {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

.access-upgrade-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: end;
  margin-top: 10px;
}

.access-upgrade-form label {
  display: grid;
  gap: 5px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
}

.access-upgrade-form input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 10px;
  background: #ffffff;
  color: var(--ink);
}

.access-upgrade-form .secondary-action {
  width: 100%;
  justify-content: center;
  min-height: 42px;
  padding: 8px 12px;
}

.access-upgrade-form .form-message {
  grid-column: 1 / -1;
  min-height: 0;
}

.app-shell {
  width: min(1420px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid rgba(36, 92, 168, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(237, 245, 255, 0.96), rgba(234, 247, 242, 0.92)),
    var(--surface);
  box-shadow: 0 18px 42px rgba(31, 41, 51, 0.1);
  position: relative;
  overflow: hidden;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--green), var(--blue));
}

.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.58), transparent 52%),
    radial-gradient(circle at top right, rgba(245, 184, 75, 0.18), transparent 30%);
  pointer-events: none;
}

.topbar-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.topbar-logo {
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(36, 92, 168, 0.16);
  border-radius: 8px;
  background: var(--surface);
  object-fit: contain;
  padding: 8px;
  box-shadow: 0 12px 26px rgba(36, 92, 168, 0.12);
}

.topbar .eyebrow {
  color: var(--blue);
}

.topbar h1 {
  color: var(--ink);
  text-shadow: none;
}

.topbar .venue-subtitle {
  color: var(--muted);
  font-weight: 700;
}

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

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

h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

h2 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.topbar-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.service-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
}

.venue-subtitle {
  margin: 10px 0 0;
}

.service-stats div {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(47, 125, 99, 0.18);
  border-radius: 8px;
  min-height: 74px;
  padding: 12px 14px;
  box-shadow: 0 12px 28px rgba(31, 41, 51, 0.1);
}

.service-stats span {
  display: block;
  color: var(--green);
  font-size: 1.6rem;
  font-weight: 850;
}

.service-stats small {
  color: var(--navy);
  font-weight: 750;
}

.account-switcher {
  width: 190px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(36, 92, 168, 0.16);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 12px 28px rgba(31, 41, 51, 0.1);
}

.account-switcher label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.account-switcher select {
  min-height: 38px;
  font-size: 0.95rem;
  text-transform: none;
}

.account-switcher small {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-weight: 800;
}

.account-status {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 184, 75, 0.5);
  border-radius: 8px;
  background: var(--gold-tint);
  color: var(--navy);
  font-weight: 800;
}

.account-status strong {
  display: block;
}

.account-status span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.account-status.is-blocked {
  border-color: #ffc9c1;
  background: #fff0ed;
}

.account-status.is-active {
  border-color: rgba(47, 125, 99, 0.28);
  background: var(--green-tint);
}

.mode-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  background:
    linear-gradient(90deg, rgba(245, 184, 75, 0.18), rgba(47, 125, 99, 0.14), rgba(36, 92, 168, 0.16)),
    #ffffff;
  border: 1px solid rgba(36, 92, 168, 0.18);
  border-radius: 8px;
  overflow-x: auto;
  box-shadow: 0 12px 30px rgba(31, 41, 51, 0.08);
}

.mode-button {
  border: 0;
  border-radius: 6px;
  min-height: 42px;
  padding: 0 18px;
  background: transparent;
  color: var(--navy);
  white-space: nowrap;
}

.mode-button.is-active {
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(36, 92, 168, 0.18);
  font-weight: 800;
}

.mode-button.is-plan-locked {
  color: #8a94a6;
  background: rgba(255, 255, 255, 0.42);
  cursor: not-allowed;
}

.mode-button.is-plan-locked::after {
  content: " Upgrade";
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 850;
}

body.public-booking-mode .app-shell {
  width: min(1120px, calc(100% - 32px));
  padding-top: 18px;
}

body.public-booking-mode .topbar {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

body.public-booking-mode .topbar-actions,
body.public-booking-mode .mode-switch,
body.public-booking-mode .account-status {
  display: none;
}

body.public-booking-mode .view {
  display: none;
}

body.public-booking-mode #customer-view {
  display: block;
}

body.public-booking-mode .customer-layout {
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 480px);
  align-items: start;
}

body.public-booking-mode #customer-confirmation {
  display: none;
}

body.public-booking-mode #customer-form {
  position: sticky;
  top: 18px;
}

body.public-booking-mode .customer-intro {
  padding-top: 18px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.workbench,
.customer-layout,
.settings-layout,
.guest-workspace,
.email-workspace,
.widget-workspace,
.admin-workspace,
.reports-workspace,
.waitlist-workspace,
.block-workspace,
.onboarding-workspace,
.floor-workspace {
  display: grid;
  gap: 18px;
  align-items: start;
}

.workbench {
  grid-template-columns: minmax(310px, 380px) minmax(0, 1fr) minmax(310px, 380px);
}

.settings-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 520px);
}

.customer-layout {
  grid-template-columns: minmax(0, 0.85fr) minmax(310px, 430px) minmax(310px, 430px);
}

.guest-workspace {
  grid-template-columns: minmax(290px, 0.9fr) minmax(320px, 0.8fr) minmax(330px, 460px);
}

.reports-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 460px);
}

.email-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 460px);
}

.widget-workspace,
.admin-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 460px);
}

.waitlist-workspace,
.block-workspace {
  grid-template-columns: minmax(310px, 420px) minmax(0, 1fr);
}

.onboarding-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 460px);
}

.floor-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.settings-layout {
  grid-template-rows: auto;
}

.layout-editor-panel {
  grid-column: 1 / -1;
}

.panel,
.diary,
.customer-intro {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-heading {
  border-bottom: 1px solid rgba(36, 92, 168, 0.08);
  padding-bottom: 12px;
}

.panel,
.customer-intro {
  padding: 22px;
}

.diary {
  min-height: 660px;
  overflow: hidden;
}

.floor-panel {
  padding: 0;
  overflow: auto;
}

.floor-details {
  position: sticky;
  top: 18px;
}

.detail-panel {
  position: sticky;
  top: 18px;
}

.guest-profile {
  position: sticky;
  top: 18px;
}

.is-hidden {
  display: none;
}

.panel-heading {
  margin-bottom: 18px;
}

.booking-form {
  display: grid;
  gap: 14px;
}

.guest-suggestions {
  display: grid;
  gap: 8px;
  margin-top: -8px;
}

.guest-suggestion {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, rgba(234, 247, 242, 0.46));
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}

.guest-suggestion:hover,
.guest-suggestion:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(36, 92, 168, 0.14);
}

.guest-suggestion strong,
.guest-suggestion span,
.guest-suggestion small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.guest-suggestion span,
.guest-suggestion small {
  color: var(--muted);
  font-size: 0.82rem;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 750;
}

.checkbox-label {
  grid-template-columns: auto 1fr;
  align-items: center;
  align-content: center;
  min-height: 44px;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(36, 92, 168, 0.16);
  box-shadow: 0 0 0 1px rgba(47, 125, 99, 0.08);
}

.primary-action,
.secondary-action,
.danger-action {
  border: 0;
  border-radius: 6px;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 850;
}

.primary-action {
  background: linear-gradient(135deg, var(--green), #245ca8);
  color: white;
}

.secondary-action {
  background: linear-gradient(135deg, var(--navy), #24506f);
  color: white;
}

.danger-action {
  background: #fff0ed;
  color: var(--red);
  border: 1px solid #ffc9c1;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.form-message.is-error {
  color: var(--red);
}

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

.diary-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: #fbfcff;
}

.floor-toolbar {
  border-bottom: 1px solid var(--line);
}

.floor-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 12px;
}

.date-filter {
  width: min(240px, 100%);
}

.diary-time-toggle {
  width: max-content;
  min-width: 170px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.9rem;
}

.slot-list {
  display: grid;
  gap: 0;
}

.slot-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
  min-height: 96px;
}

.slot-summary {
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  background: #fbfcff;
}

.slot-time {
  font-size: 1.35rem;
}

.slot-capacity {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.booking-list {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
}

.staff-service-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--blue-tint) 0%, #fff 100%);
}

.staff-service-strip div {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 12px;
  min-width: 0;
  box-shadow: 0 8px 18px rgba(31, 42, 55, 0.05);
}

.staff-service-strip strong,
.staff-service-strip span {
  display: block;
  overflow-wrap: anywhere;
}

.staff-service-strip strong {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.05;
}

.staff-service-strip span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.booking-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #ffffff, rgba(237, 245, 255, 0.38));
}

.booking-card.is-selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 92, 168, 0.14);
}

.booking-card.pending {
  border-left-color: var(--amber);
}

.booking-card.cancelled {
  border-left-color: var(--red);
  opacity: 0.7;
}

.booking-card.no-show {
  border-left-color: var(--red);
}

.booking-card.seated,
.booking-card.completed {
  border-left-color: #0f766e;
}

.booking-main {
  min-width: 0;
}

.booking-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  font-weight: 850;
}

.booking-name {
  flex-basis: 100%;
  color: var(--ink);
  font-size: 1rem;
}

.booking-meta,
.booking-notes {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

.booking-documents {
  margin-top: 8px;
  color: #4f7660;
  font-size: 0.84rem;
  font-weight: 800;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--blue-tint);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
}

.tag-confirmation {
  background: var(--gold-tint);
  color: #7a4b00;
}

.tag-confirmation-queued {
  background: var(--blue-tint);
  color: var(--blue);
}

.tag-confirmation-sent {
  background: var(--green-tint);
  color: var(--green);
}

.tag-confirmation-no-email,
.tag-confirmation-not-needed {
  background: #edf3f6;
  color: var(--muted);
}

.tag-session {
  background: var(--navy-tint);
  color: var(--navy);
}

.tag-deposit-required,
.tag-preorder-required {
  background: var(--gold-tint);
  color: #7a4b00;
}

.tag-deposit-paid,
.tag-preorder-received {
  background: var(--green-tint);
  color: var(--green);
}

.tag-deposit-not-needed,
.tag-preorder-not-needed {
  background: #edf3f6;
  color: var(--muted);
}

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

.table-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  min-height: 78px;
  padding: 12px;
}

.table-tile strong {
  display: block;
  font-size: 1.1rem;
}

.table-tile span {
  color: var(--muted);
  font-size: 0.84rem;
}

.layout-editor {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.layout-editor > div:first-child {
  overflow-x: auto;
  padding-bottom: 8px;
}

.layout-form {
  display: grid;
  gap: 14px;
}

.selected-map-panel {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #eef5ff;
  padding: 10px 12px;
}

.selected-map-panel span {
  color: var(--muted);
  font-size: 0.88rem;
}

.room-size-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.area-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.add-area-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 10px;
}

.map-feature-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.map-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.session-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.session-card .form-grid {
  margin-top: 10px;
}

.settings-subsection {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 14px;
}

.settings-subsection .panel-heading {
  margin-bottom: 0;
}

.special-rule-list {
  display: grid;
  gap: 8px;
}

.special-rule-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.special-rule-card strong,
.special-rule-card span {
  display: block;
}

.special-rule-card span {
  margin-top: 4px;
  color: var(--muted);
}

.layout-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.layout-controls .secondary-action {
  min-height: 38px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.layout-map,
.floor-grid-map {
  position: relative;
  width: max(100%, calc(var(--room-columns, 10) * 54px));
  min-height: 420px;
  padding: 14px;
  border: 8px solid #5a6678;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(rgba(90, 102, 120, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 102, 120, 0.12) 1px, transparent 1px),
    #f3efe6;
  background-size: calc(100% / var(--room-columns, 10)) calc(100% / var(--room-rows, 8));
}

.layout-map {
  margin-top: 10px;
}

.layout-table,
.layout-map .map-feature,
.floor-grid-map .map-feature {
  position: absolute;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transform-origin: center;
}

.layout-table {
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: white;
  color: var(--navy);
  padding: 8px;
  min-width: 96px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(31, 45, 61, 0.08);
  z-index: 2;
}

.layout-table.is-selected,
.layout-map .map-feature.is-selected {
  border-color: var(--blue);
  border-left-color: var(--blue);
  outline: 3px solid rgba(36, 92, 168, 0.18);
  z-index: 5;
}

.layout-table.is-dragging,
.layout-map .map-feature.is-dragging {
  cursor: grabbing;
  z-index: 6;
}

.layout-table strong,
.layout-table span {
  display: block;
  line-height: 1.2;
}

.layout-table.shape-round {
  border-radius: 999px;
}

.layout-table.shape-booth {
  border-radius: 8px 8px 18px 18px;
  border-bottom-width: 6px;
}

.layout-table.shape-long {
  border-radius: 999px;
}

.map-feature {
  display: grid;
  place-items: center;
  border: 1px solid #9aa4b2;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  z-index: 1;
}

.feature-entrance {
  background: #e9fbf7;
  border-color: #68b29c;
}

.feature-bar {
  background: #eef5ff;
  border-color: #7aa3dc;
}

.feature-kitchen {
  background: #fff8eb;
  border-color: #d59d42;
}

.feature-window {
  background: #eaf8ff;
  border-color: #72b7d8;
}

.feature-wall {
  background: #5a6678;
  border-color: #5a6678;
  color: white;
}

.floor-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}

.floor-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.floor-legend i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.legend-free {
  background: var(--gold);
}

.legend-booked {
  background: var(--blue);
}

.legend-pending {
  background: var(--amber);
}

.legend-seated {
  background: var(--green);
}

.legend-blocked {
  background: var(--red);
}

.legend-joined {
  background: var(--navy);
}

.floor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 12px;
  padding: 18px;
}

.floor-grid-map {
  display: block;
  gap: 0;
  margin: 0;
  padding: 14px;
  overflow: hidden;
  background:
    linear-gradient(rgba(36, 92, 168, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 125, 99, 0.1) 1px, transparent 1px),
    #f6f3ea;
  background-size: calc(100% / var(--room-columns, 10)) calc(100% / var(--room-rows, 8));
}

.floor-table {
  min-height: 108px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: #fff9e7;
  padding: 12px;
  cursor: pointer;
}

.floor-table:focus-visible,
.floor-table.is-selected {
  outline: 3px solid rgba(36, 92, 168, 0.28);
  outline-offset: 2px;
}

.floor-table[draggable="true"] {
  cursor: grab;
}

.floor-table.is-dragging {
  opacity: 0.58;
  cursor: grabbing;
}

.floor-table.is-drop-target {
  outline: 4px solid rgba(47, 125, 99, 0.38);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(47, 125, 99, 0.12);
}

.floor-table.cannot-drop {
  outline: 4px solid rgba(181, 37, 26, 0.28);
  outline-offset: 3px;
}

.floor-grid-map .floor-table {
  position: absolute;
  min-width: 108px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(31, 45, 61, 0.08);
  transform-origin: center;
  z-index: 2;
  text-align: center;
  overflow: hidden;
}

.floor-grid-map .map-feature {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.floor-table.shape-round {
  border-radius: 999px;
  text-align: center;
}

.floor-table.shape-booth {
  border-radius: 8px 8px 18px 18px;
  border-bottom-width: 6px;
}

.floor-table.shape-long {
  border-radius: 999px;
}

.floor-table.booked {
  border-left-color: var(--blue);
  background: var(--blue-tint);
}

.floor-table.booked-soon {
  box-shadow: inset 0 0 0 2px var(--gold), 0 8px 18px rgba(31, 45, 61, 0.08);
}

.floor-table.pending {
  border-left-color: var(--amber);
  background: var(--gold-tint);
}

.floor-table.blocked {
  border-left-color: var(--red);
  background: #fff0ed;
}

.floor-table.seated,
.floor-table.completed {
  border-left-color: var(--green);
  background: var(--green-tint);
}

.floor-table.joined {
  border-top: 4px solid var(--navy);
  box-shadow: inset 0 0 0 2px rgba(38, 54, 74, 0.2);
}

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

.floor-table span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.floor-grid-map .floor-table strong {
  font-size: clamp(0.9rem, 1.2vw, 1.35rem);
  line-height: 1.05;
}

.floor-grid-map .floor-table span {
  margin-top: 4px;
  color: var(--navy);
  font-size: clamp(0.82rem, 1vw, 1.1rem);
  line-height: 1;
}

.floor-grid-map .floor-table small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.floor-table .table-warning {
  display: inline-block;
  width: fit-content;
  margin-top: 8px;
  border-radius: 999px;
  background: #fff0c2;
  color: #7a4b00;
  padding: 4px 8px;
  font-weight: 850;
}

.floor-table .table-clear {
  color: #4f7660;
  font-weight: 800;
}

.confirmation-preview-panel {
  align-self: start;
}

.confirmation-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 14px;
}

.confirmation-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.confirmation-status {
  width: fit-content;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue);
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 900;
}

.confirmation-status.queued {
  background: #eef5ff;
  color: var(--blue);
}

.confirmation-status.no-email,
.confirmation-status.not-needed {
  background: #f3f5f8;
  color: var(--muted);
}

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

.confirmation-facts div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.confirmation-facts strong,
.confirmation-facts span {
  display: block;
}

.confirmation-facts strong {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.confirmation-card pre {
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--navy);
  padding: 12px;
  font: 0.88rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.settings-confirmation-preview {
  margin-top: 12px;
}

.floor-table-detail {
  margin-top: 16px;
}

.selected-service-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 14px;
}

.selected-service-card.empty {
  background: #f8fafc;
}

.selected-service-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.selected-service-heading h3 {
  margin: 2px 0 0;
  font-size: 1.35rem;
}

.status-pill {
  border-radius: 999px;
  background: #fff9e5;
  color: var(--navy);
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: capitalize;
}

.status-pill.booked,
.status-pill.confirmed {
  background: #eef5ff;
  color: var(--blue);
}

.status-pill.pending {
  background: #fff8eb;
  color: #9a5d00;
}

.status-pill.seated,
.status-pill.completed {
  background: #e9fbf7;
  color: #0f766e;
}

.status-pill.blocked {
  background: #fff0ed;
  color: var(--red);
}

.service-facts {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.service-facts div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.service-facts strong {
  color: var(--navy);
}

.quick-table-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.quick-table-actions label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.quick-table-actions input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  font: inherit;
}

.quick-table-actions select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 0 10px;
  font: inherit;
}

.service-action-group {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.document-setup-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 14px;
}

.document-setup-card h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1rem;
}

.document-link-preview {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.document-preview-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.document-preview-header strong,
.document-preview-header span,
.document-preview-header small {
  display: block;
}

.document-preview-header strong {
  color: var(--navy);
  font-weight: 900;
}

.document-preview-header span,
.document-preview-header small {
  color: var(--muted);
  font-weight: 700;
}

.document-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.document-preview-grid article {
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.document-preview-grid article.is-ready {
  border-left-color: var(--green);
}

.document-preview-grid span,
.document-preview-grid strong,
.document-preview-grid a,
.document-preview-grid small {
  display: block;
}

.document-preview-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.document-preview-grid strong {
  color: var(--navy);
  font-weight: 900;
}

.document-preview-grid a {
  margin-top: 6px;
  color: var(--green);
  font-weight: 900;
}

.document-preview-grid small {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.cloud-sync-panel {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  background: #fffaf0;
  padding: 14px;
}

.cloud-sync-panel.is-ready {
  border-left-color: var(--green);
  background: #f2fbf7;
}

.cloud-sync-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.cloud-sync-heading strong,
.cloud-sync-heading span {
  display: block;
}

.cloud-sync-heading strong {
  color: var(--navy);
  font-weight: 900;
}

.cloud-sync-heading span {
  color: var(--muted);
  font-weight: 750;
}

.cloud-sync-heading > span {
  border-radius: 999px;
  background: #fff;
  padding: 6px 9px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.cloud-sync-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.cloud-sync-grid article {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 10px;
}

.cloud-sync-grid article.is-ready {
  border-left: 4px solid var(--green);
}

.cloud-sync-grid article.needs-sync {
  border-left: 4px solid var(--amber);
}

.cloud-sync-grid strong,
.cloud-sync-grid span {
  display: block;
}

.cloud-sync-grid strong {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 900;
}

.cloud-sync-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.venue-backup-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.compact-heading {
  margin-bottom: 0;
  padding-bottom: 8px;
}

.backup-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.backup-summary article {
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 6px;
  background: #fff;
  padding: 10px;
}

.backup-summary article.is-ready {
  border-left-color: var(--green);
  background: var(--green-tint);
}

.backup-summary article.needs-sync {
  border-left-color: var(--amber);
  background: var(--gold-tint);
}

.backup-summary strong,
.backup-summary span {
  display: block;
}

.backup-summary strong {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 900;
}

.backup-summary span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.backup-file-label {
  min-height: 46px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 9px 12px;
  color: var(--navy);
}

.backup-file-label input {
  min-height: 0;
  border: 0;
  padding: 0;
}

.website-widget-preview {
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    url("https://images.unsplash.com/photo-1514933651103-005eec06c04b?auto=format&fit=crop&w=1200&q=80");
  background-position: center;
  background-size: cover;
  padding: 22px;
}

.website-widget-preview > div {
  max-width: 320px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 18px 38px rgba(31, 45, 61, 0.16);
}

.widget-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.widget-logo-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--gold-tint);
  overflow: hidden;
}

.widget-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
}

.widget-logo-mark span {
  color: var(--green);
  font-size: 1.7rem;
  font-weight: 900;
}

.website-widget-preview h3 {
  margin: 4px 0 8px;
  font-size: 1.45rem;
}

.widget-book-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 12px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: white;
  padding: 0 16px;
  font-weight: 900;
  text-decoration: none;
}

.widget-book-button.is-disabled {
  background: #edf3f6;
  color: var(--muted);
}

.admin-account-grid,
.readiness-list {
  display: grid;
  gap: 10px;
}

.admin-account-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-account-grid div,
.readiness-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.admin-account-grid strong,
.admin-account-grid span,
.readiness-item strong,
.readiness-item span,
.readiness-item small {
  display: block;
}

.admin-account-grid strong,
.readiness-item small {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.admin-account-grid span,
.readiness-item strong {
  color: var(--navy);
  font-weight: 900;
}

.readiness-item {
  border-left: 5px solid var(--amber);
}

.readiness-item.ready {
  border-left-color: var(--green);
}

.readiness-item.needed {
  border-left-color: var(--blue);
}

.plan-preview {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.plan-preview article {
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.plan-preview strong,
.plan-preview span,
.plan-preview small {
  display: block;
}

.plan-preview strong {
  color: var(--navy);
  font-weight: 900;
}

.plan-preview span,
.plan-preview small {
  color: var(--muted);
}

.plan-preview ul {
  margin: 0;
  padding-left: 20px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.55;
}

.is-upgrade-locked {
  position: relative;
  opacity: 0.58;
}

.is-upgrade-locked::before {
  content: attr(data-upgrade-label);
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 6px 10px;
  border: 1px solid #f4c77d;
  border-radius: 6px;
  background: #fff7e6;
  color: #8a5700;
  font-size: 0.78rem;
  font-weight: 850;
}

.is-upgrade-locked input,
.is-upgrade-locked select,
.is-upgrade-locked textarea,
.is-upgrade-locked button {
  cursor: not-allowed;
}

.stripe-setup-panel {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: var(--blue-tint);
  padding: 14px;
}

.stripe-readiness {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.stripe-readiness article {
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 6px;
  background: #fff;
  padding: 10px;
}

.stripe-readiness article.is-ready {
  border-left-color: var(--green);
  background: var(--green-tint);
}

.stripe-readiness strong,
.stripe-readiness span {
  display: block;
}

.stripe-readiness strong {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 900;
}

.stripe-readiness span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.billing-automation {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.billing-automation strong,
.billing-automation span {
  display: block;
}

.billing-automation strong {
  color: var(--navy);
  font-weight: 900;
}

.billing-automation span {
  color: var(--muted);
  font-weight: 700;
}

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

.billing-history,
.stripe-payment-status {
  display: grid;
  gap: 8px;
}

.billing-history article,
.stripe-payment-status article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.stripe-payment-status article.is-ready {
  border-left: 5px solid var(--green);
  background: var(--green-tint);
}

.stripe-payment-status article.needs-sync {
  border-left: 5px solid var(--gold);
}

.billing-history strong,
.billing-history span,
.billing-history small,
.stripe-payment-status strong,
.stripe-payment-status span,
.stripe-payment-status small {
  display: block;
}

.billing-history strong {
  color: var(--navy);
  font-weight: 900;
}

.billing-history span,
.billing-history small {
  color: var(--muted);
  font-weight: 700;
}

.admin-role-note {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #f4f8ff;
  padding: 12px;
}

.admin-role-note.is-manager {
  border-left-color: var(--green);
  background: #f2fbf7;
}

.bohs-only-panel {
  border-top: 4px solid var(--blue);
}

.bohs-journey-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green-tint), #f7fbff);
  padding: 14px;
}

.bohs-journey-header {
  display: flex;
  gap: 14px;
  align-items: start;
  justify-content: space-between;
}

.bohs-journey-header h3,
.bohs-journey-header p {
  margin: 0;
}

.bohs-journey-header span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 750;
}

.bohs-journey-header small {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--green);
  padding: 7px 9px;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.35;
}

.bohs-journey-header small.is-working {
  color: var(--blue);
}

.bohs-journey-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.bohs-journey-actions > strong {
  display: grid;
  place-items: center;
  min-width: 58px;
  min-height: 42px;
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  font-weight: 950;
}

.bohs-journey-actions .secondary-action {
  min-height: 38px;
  white-space: nowrap;
}

.bohs-journey-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.bohs-journey-steps article {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.bohs-journey-steps b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--gold-tint);
  color: #8a5700;
  font-size: 0.78rem;
  font-weight: 950;
}

.bohs-journey-steps article.is-ready b {
  background: var(--green-tint);
  color: var(--green);
}

.bohs-journey-steps strong,
.bohs-journey-steps span {
  display: block;
}

.bohs-journey-steps strong {
  color: var(--navy);
  font-weight: 900;
}

.bohs-journey-steps span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
  line-height: 1.35;
}

.admin-role-note strong,
.admin-role-note span {
  display: block;
}

.admin-role-note strong {
  color: var(--navy);
  font-weight: 900;
}

.admin-role-note span {
  color: var(--muted);
  font-weight: 700;
}

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

.launch-status-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px;
}

.launch-status-summary.is-live {
  border-left-color: var(--green);
  background: #eefbf8;
}

.launch-status-summary strong,
.launch-status-summary span,
.launch-status-summary a {
  display: block;
}

.launch-status-summary strong {
  color: var(--navy);
  font-weight: 900;
}

.launch-status-summary span {
  color: var(--muted);
  font-weight: 700;
}

.launch-status-summary ul {
  margin: 0;
  padding-left: 20px;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.45;
}

.launch-status-summary a {
  color: var(--green);
  font-weight: 900;
}

.launch-task {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 10px 12px;
}

.go-live-checks {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.go-live-checks > strong {
  color: var(--navy);
  font-weight: 900;
}

.go-live-check {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  align-items: center;
}

.go-live-check span {
  border-radius: 999px;
  padding: 4px 8px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 900;
}

.go-live-check p {
  margin: 0;
  color: var(--navy);
  font-weight: 750;
}

.go-live-check.is-ok span {
  background: #e9fbf7;
  color: #0f766e;
}

.go-live-check.is-missing span {
  background: #fff0c2;
  color: #7a4b00;
}

.service-warnings {
  display: grid;
  gap: 8px;
}

.service-warning {
  margin: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 800;
}

.service-warning.ok {
  background: #e9fbf7;
  color: #0f766e;
}

.service-warning.warn {
  background: #fff8eb;
  color: #7a4b00;
}

.service-warning.danger {
  background: #fff0ed;
  color: var(--red);
}

.compact-admin-form {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.full-width {
  width: 100%;
}

.danger-soft {
  background: #fff0ed;
  color: var(--red);
  border: 1px solid #ffc9c1;
}

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

.guest-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.guest-stat,
.guest-card,
.history-item,
.waitlist-card,
.report-card,
.email-job-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.guest-stat {
  padding: 12px;
}

.guest-stat strong {
  display: block;
  color: var(--green);
  font-size: 1.35rem;
}

.guest-stat span,
.guest-card small,
.history-item small {
  color: var(--muted);
}

.guest-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.guest-marketing-panel {
  position: sticky;
  top: 18px;
}

.guest-import-panel {
  grid-column: 1 / -1;
}

.migration-checklist-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.migration-checklist-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.migration-checklist-grid strong,
.migration-checklist-grid span {
  display: block;
}

.migration-checklist-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.guest-import-preview {
  display: grid;
  gap: 8px;
}

.guest-import-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.guest-import-row strong,
.guest-import-row span,
.guest-import-row small {
  display: block;
}

.guest-import-row span,
.guest-import-row small {
  margin-top: 4px;
  color: var(--muted);
}

.guest-import-row.is-duplicate {
  border-color: #d99a13;
  background: var(--gold-tint);
}

.guest-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  text-align: left;
}

.guest-card.is-selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 92, 168, 0.14);
}

.guest-card h3,
.guest-profile h3 {
  margin: 0;
  font-size: 1rem;
}

.guest-card p,
.guest-profile p {
  margin: 6px 0 0;
}

.guest-count {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #eef5ff;
  color: var(--blue);
  font-weight: 900;
}

.profile-grid {
  display: grid;
  gap: 12px;
}

.guest-info-form {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.compact-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

#marketing-recipients {
  max-height: 86px;
  overflow: auto;
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

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

.history-item {
  padding: 10px;
}

.history-item strong {
  display: block;
}

.report-summary {
  margin-top: 18px;
}

.report-controls {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(180px, 240px);
  gap: 12px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.report-card {
  display: grid;
  gap: 6px;
  min-height: 78px;
  padding: 12px;
}

.report-card strong,
.report-session strong {
  color: var(--navy);
}

.report-card span,
.report-mini-grid span {
  color: var(--muted);
  font-size: 0.88rem;
}

.report-session {
  display: grid;
  gap: 8px;
  border-left: 4px solid var(--blue);
}

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

.report-mini-grid span {
  border-radius: 6px;
  background: white;
  padding: 8px;
  font-weight: 750;
}

.email-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.email-columns h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.email-job-list,
.email-campaign-preview {
  display: grid;
  gap: 10px;
}

.email-job-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-left: 4px solid var(--blue);
}

.email-job-card strong,
.email-job-card span,
.email-job-card small {
  display: block;
}

.email-job-card span,
.email-job-card small {
  margin-top: 5px;
  color: var(--muted);
}

.waitlist-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 12px;
  margin-bottom: 16px;
}

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

.waitlist-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-left: 4px solid var(--amber);
}

.waitlist-card.converted {
  border-left-color: var(--green);
}

.waitlist-card.closed {
  border-left-color: var(--red);
  opacity: 0.75;
}

.waitlist-card h3 {
  margin: 0;
  font-size: 1rem;
}

.waitlist-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.waitlist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.onboarding-summary {
  display: grid;
  gap: 10px;
}

.summary-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.summary-row strong {
  display: block;
}

.summary-row span {
  color: var(--muted);
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: start;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-weight: 850;
}

.icon-button.cancel {
  color: var(--red);
}

.text-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 36px;
  padding: 0 10px;
  background: #fff;
  color: var(--navy);
  font-weight: 850;
}

.booking-actions .text-button {
  min-height: 34px;
  font-size: 0.82rem;
}

.quick-status-button {
  color: var(--green);
}

.empty-slot {
  color: var(--muted);
  align-self: center;
}

.customer-intro {
  min-height: 420px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
    url("https://images.unsplash.com/photo-1559329007-40df8a9345d8?auto=format&fit=crop&w=1400&q=80");
  background-position: center;
  background-size: cover;
}

.public-venue-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.venue-logo-mark {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  overflow: hidden;
}

.venue-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.venue-logo-mark span {
  color: var(--green);
  font-size: 2.3rem;
  font-weight: 900;
}

.public-venue-brand strong,
.public-venue-brand span {
  display: block;
}

.public-venue-brand strong {
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 900;
}

.public-venue-brand span {
  color: var(--muted);
  font-weight: 800;
}

.customer-intro h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  margin-bottom: 16px;
}

.customer-intro p:not(.eyebrow) {
  max-width: 56ch;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.55;
}

.public-booking-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.public-booking-steps div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px;
}

.public-booking-steps strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
}

.public-booking-steps span {
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.25;
}

.public-booking-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.public-booking-facts div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 12px;
}

.public-booking-facts strong,
.public-booking-facts span {
  display: block;
}

.public-booking-facts strong {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.public-booking-facts span {
  color: var(--navy);
  font-weight: 900;
}

.public-booking-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.public-booking-links a,
.public-booking-links span {
  border-radius: 999px;
  background: var(--blue-tint);
  color: var(--blue);
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.public-booking-health {
  display: grid;
  gap: 14px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  background: var(--gold-tint);
  padding: 14px;
}

.public-booking-health.is-live {
  border-left-color: var(--green);
  background: var(--green-tint);
}

.public-booking-health > div:first-child strong,
.public-booking-health > div:first-child span {
  display: block;
}

.public-booking-health > div:first-child strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.public-booking-health > div:first-child span {
  margin-top: 4px;
  color: var(--muted);
}

.public-booking-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.public-booking-health-grid article {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 10px;
}

.public-booking-health-grid small,
.public-booking-health-grid b {
  display: block;
}

.public-booking-health-grid small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.public-booking-health-grid b {
  color: var(--navy);
  font-size: 0.92rem;
}

.public-booking-health-grid article.is-ready b {
  color: var(--green);
}

.public-booking-health-grid article.is-needed b {
  color: var(--red);
}

.website-setup-help {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.website-setup-help h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.1rem;
}

.availability-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.availability-pill {
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.availability-pill strong {
  display: block;
  font-size: 1.05rem;
}

.availability-pill span {
  color: var(--muted);
  font-size: 0.84rem;
}

.notice-pill {
  border-color: #f0cf72;
  background: #fff8eb;
}

.muted {
  color: var(--muted);
  line-height: 1.55;
}

.compact-note {
  margin: -4px 0 0;
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .access-screen {
    align-items: flex-start;
    padding: 18px;
  }

  .access-login-stack {
    grid-template-columns: 1fr;
    width: min(720px, 100%);
    gap: 14px;
  }

  .access-card {
    padding: 24px;
    gap: 12px;
  }

  .access-logo {
    width: 250px;
    margin: 0;
  }

  .access-card h1,
  .access-card h2 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    line-height: 1.08;
  }

  .access-card input,
  .access-card select,
  .access-card button {
    min-height: 52px;
  }

  .topbar,
  .diary-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-brand {
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .workbench,
  .customer-layout,
  .settings-layout,
  .guest-workspace,
  .email-workspace,
  .widget-workspace,
  .admin-workspace,
  .reports-workspace,
  .waitlist-workspace,
  .block-workspace,
  .onboarding-workspace,
  .layout-editor,
  .floor-workspace {
    grid-template-columns: 1fr;
  }

  .detail-panel,
  .guest-profile,
  .guest-marketing-panel,
  .floor-details {
    position: static;
  }

  .service-stats {
    flex: 1 1 360px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-switcher {
    flex: 1 1 220px;
    width: auto;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 20px, 1420px);
    padding-top: 12px;
  }

  .form-grid,
  .room-size-controls,
  .session-editor,
  .staff-service-strip,
  .slot-card,
  .booking-card,
  .waitlist-card,
  .email-job-card,
  .special-rule-card,
  .waitlist-toolbar,
  .floor-controls,
  .report-controls,
  .report-mini-grid,
  .public-booking-steps,
  .public-booking-health-grid,
  .email-columns {
    grid-template-columns: 1fr;
  }

  .slot-summary {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mode-button {
    flex: 1 0 auto;
    padding: 0 12px;
  }

  .floor-grid-map {
    min-height: 430px;
  }

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

  .layout-map {
    min-height: 360px;
  }
}
