:root {
  --ink: #071a2c;
  --muted: #5f6f7d;
  --line: #d9e5eb;
  --panel: #ffffff;
  --page: #f5fbfd;
  --accent: #dbfc01;
  --accent-dark: #007fa6;
  --lime: #dbfc01;
  --lime-dark: #a9dd1a;
  --cyan: #00bde6;
  --navy: #071a2c;
  --navy-soft: #0e2a43;
  --text-on-dark: #ffffff;
  --muted-on-dark: #c7e4ec;
  --focus-ring: #006d8f;
  --touch-target: 44px;
  --gold: #e5a72d;
  --danger: #b83a3a;
  --blue: #02b8e8;
  --shadow: 0 14px 40px rgba(7, 26, 44, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.drawer-open {
  overflow: hidden;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus-ring) 72%, white);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

@keyframes dynkFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dynkToastIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes dynkToastOut {
  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

.icon {
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px clamp(18px, 4vw, 48px);
  background: #00bde6;
  border-bottom: 0;
  box-shadow: 0 10px 28px rgba(7, 26, 44, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--ink);
  font-weight: 800;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: auto;
  height: 48px;
  max-width: 112px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a,
.nav summary,
.link-button {
  border-radius: 8px;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.nav a:hover,
.nav summary:hover,
.nav .link-button:hover {
  color: var(--navy);
  background: rgba(219, 252, 1, 0.82);
  text-decoration: none;
}

.pwa-install-button[hidden],
.pwa-install-menu-button[hidden],
.pwa-install-modal[hidden] {
  display: none !important;
}

.nav a,
.nav summary,
.link-button,
.inline-action,
.field-label,
.section-title,
dt,
.slot-time,
.slot-meta,
.address-block span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav a,
.nav summary,
.nav .link-button {
  min-height: 38px;
  padding: 8px 10px;
  color: #fff;
  font-size: 14px;
  font-weight: normal;
}

.pwa-install-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--lime);
  border-radius: 8px;
  color: var(--navy);
  background: var(--lime);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.pwa-install-button:hover {
  border-color: var(--lime-dark);
  background: var(--lime-dark);
  text-decoration: none;
}

.pwa-install-button:active,
.pwa-install-button.is-pressed {
  transform: translateY(1px) scale(0.99);
}

.nav .pwa-install-menu-button {
  justify-content: flex-start;
  width: 100%;
  color: var(--ink);
}

.nav-install-button {
  margin-left: auto;
}

.pwa-install-modal-card {
  display: grid;
  gap: 16px;
  width: min(520px, 100%);
}

.pwa-install-modal-card .panel-header {
  margin-bottom: 0;
}

.pwa-install-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.5;
}

.nav a[aria-current="page"] {
  background: #dbfc01;
  color: var(--navy);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(7, 26, 44, 0.2);
  border-radius: 8px;
  color: var(--navy);
  background: #dbfc01;
  cursor: pointer;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 12;
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 8px;
  border: 1px solid rgba(7, 26, 44, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.nav-dropdown-panel a,
.nav-dropdown-panel .link-button {
  justify-content: flex-start;
  width: 100%;
  color: var(--ink);
}

.inline-action-disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.section-title {
  color: inherit;
}

.section-title .icon,
.field-label .icon,
dt .icon {
  color: var(--cyan);
}

.public-hero .section-title .icon {
  color: currentColor;
}

html.booking-page-background {
  background-image: var(--booking-bg);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

html.booking-page-background body {
  background:
    linear-gradient(180deg, rgba(7, 26, 44, 0.72), rgba(7, 26, 44, 0.5) 46%, rgba(245, 251, 253, 0.92)),
    rgba(7, 26, 44, 0.2);
  min-height: 100vh;
}

html.booking-page-background .page {
  width: 100%;
  margin: 0;
}

.public-booking-backdrop {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 18px;
  min-height: calc(100vh - 160px);
}

.inline-form {
  display: inline;
}

.link-button {
  padding: 0;
  border: 0;
  color: var(--accent-dark);
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 64px;
}

.page > * {
  animation: dynkFadeUp 220ms ease both;
}

.toast-stack {
  position: fixed;
  top: 86px;
  right: clamp(16px, 4vw, 42px);
  z-index: 50;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 8px;
  background: #f2ffd9;
  border: 1px solid #d4f885;
  box-shadow: 0 16px 38px rgba(7, 26, 44, 0.18);
  animation: dynkToastIn 180ms ease both;
  pointer-events: auto;
}

.toast.error {
  color: #7b2424;
  background: #fff0f0;
  border-color: #ffcaca;
}

.toast.success {
  background: #f2ffd9;
}

.toast-exit {
  animation: dynkToastOut 180ms ease both;
}

.toast-close {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: inherit;
  background: rgba(7, 26, 44, 0.08);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition: background-color 160ms ease, transform 160ms ease;
}

.toast-close:hover {
  background: rgba(7, 26, 44, 0.14);
}

.toast-close:active {
  transform: scale(0.92);
}

.auth-layout,
.split,
.booking-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 24px;
  align-items: start;
}

.auth-copy {
  padding: 34px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 18px;
  font-size: 22px;
  letter-spacing: 0;
}

.auth-copy p,
.page-heading p,
.public-hero p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.form-panel,
.form-grid {
  display: grid;
  gap: 16px;
}

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

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

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

.input,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="file"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd8d0;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

.input:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="file"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  outline: 3px solid rgba(2, 184, 232, 0.18);
}

.fancy-select {
  position: relative;
  display: block;
  min-width: 0;
}

.fancy-select select {
  appearance: none;
  padding-right: 46px;
  border-color: #b8e9f5;
  background:
    linear-gradient(180deg, #ffffff, #f8fdff),
    #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.fancy-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 17px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent-dark);
  border-bottom: 2px solid var(--accent-dark);
  pointer-events: none;
  transform: translateY(-66%) rotate(45deg);
}

.fancy-select::before {
  content: "";
  position: absolute;
  top: 9px;
  right: 38px;
  bottom: 9px;
  width: 1px;
  background: #d9e5eb;
  pointer-events: none;
}

.checkbox,
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.check-row {
  align-content: start;
}

.checkbox-row,
label:has(> input[type="checkbox"]) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  font-weight: 700;
}

.checkbox-row input[type="checkbox"],
label:has(> input[type="checkbox"]) input[type="checkbox"] {
  flex: 0 0 auto;
}

.field-block ul,
.form-panel ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.field-block li,
.form-panel li {
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--lime);
  border-radius: 8px;
  color: var(--navy);
  background: var(--lime);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(7, 26, 44, 0.08);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.button:hover {
  background: var(--lime-dark);
  box-shadow: 0 12px 24px rgba(7, 26, 44, 0.14);
  text-decoration: none;
}

.button:active,
.button.is-pressed,
.link-button:active,
.link-button.is-pressed,
.nav a:active {
  transform: translateY(1px) scale(0.99);
}

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

.button-secondary {
  color: var(--navy);
  border-color: #b8e9f5;
  background: #eefbff;
}

.button-secondary:hover {
  color: #fff;
  background: var(--cyan);
}

.button-small {
  min-height: 34px;
  padding: 7px 12px;
}

.form-actions,
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.settings-form {
  display: grid;
  gap: 18px;
}

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

.settings-sidebar {
  position: sticky;
  top: 84px;
  z-index: 7;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.settings-sidebar-nav {
  display: grid;
  gap: 5px;
}

.settings-sidebar-nav a,
.settings-sidebar-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.settings-sidebar-nav a:hover,
.settings-sidebar-nav a:focus-visible,
.settings-sidebar-nav button:hover,
.settings-sidebar-nav button:focus-visible,
.settings-sidebar-nav a[aria-current="page"] {
  color: var(--navy);
  background: #eefbff;
  text-decoration: none;
}

.settings-sidebar-nav a[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--cyan);
}

.settings-sidebar-nav .icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--cyan);
}

.settings-editor-content {
  min-width: 0;
}

.json-import-panel[hidden] {
  display: none;
}

.json-import-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.json-import-textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
}

.json-import-status,
.schedule-copy-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.venue-save-error-summary {
  display: grid;
  gap: 8px;
  scroll-margin-top: 90px;
}

.venue-save-error-summary:focus {
  outline: 3px solid rgba(191, 48, 48, 0.2);
  outline-offset: 3px;
}

.venue-save-error-summary ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 20px;
}

.venue-save-error-summary a {
  color: inherit;
  text-decoration: underline;
}

.settings-page-heading p {
  max-width: 720px;
  color: var(--muted);
}

.settings-control-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px;
}

.settings-scope-switcher {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f5;
}

.settings-scope-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.settings-scope-option:hover {
  background: #eefbff;
  text-decoration: none;
}

.settings-scope-option.active {
  color: var(--navy);
  background: var(--lime);
  box-shadow: 0 8px 18px rgba(7, 26, 44, 0.08);
}

.settings-venue-selector {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
  min-width: min(420px, 100%);
}

.settings-venue-selector label {
  flex: 1 1 260px;
}

.settings-section {
  display: grid;
  gap: 18px;
  scroll-margin-top: 96px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.settings-section-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.settings-section-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.settings-section-header h2 .icon {
  color: var(--cyan);
}

.settings-section-help {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

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

.field-block {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.field-block-full {
  grid-column: 1 / -1;
}

.field-help {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.field-block-media {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  overflow-wrap: anywhere;
}

.field-block-media > a {
  word-break: break-word;
}

.field-block-media > br {
  display: none;
}

.field-block-media input[type="file"],
.json-import-panel input[type="file"] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 4px;
}

.public-listing-media-grid {
  grid-template-columns: minmax(220px, 0.72fr) minmax(320px, 1.28fr);
}

.public-listing-media-grid > :nth-child(n + 3) {
  grid-column: auto;
}

.settings-preview-logo,
.settings-preview-cover,
.settings-preview-qr {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.settings-preview-logo {
  width: 104px;
  height: 104px;
  object-fit: contain;
}

.settings-preview-cover {
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.settings-preview-qr {
  width: min(220px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
}

.toggle-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.toggle-card span {
  display: grid;
  gap: 4px;
}

.toggle-card strong {
  font-size: 17px;
}

.toggle-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.settings-actions {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.settings-actions-persistent {
  position: sticky;
  top: 148px;
  z-index: 5;
  justify-content: flex-end;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.settings-dirty-status {
  margin-right: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.settings-form.is-dirty .settings-dirty-status {
  color: #8a5a00;
}

.settings-form .settings-section[hidden] {
  display: none !important;
}

.settings-jump-panel {
  position: sticky;
  top: 84px;
  z-index: 6;
  margin-bottom: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.settings-jump-panel .tabbar {
  margin-bottom: 0;
}

.settings-jump-panel .tabbar a.active,
.settings-jump-panel .tabbar a[aria-current="page"] {
  border-color: var(--lime-dark);
  background: var(--lime);
}

.settings-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.settings-quick-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfcfa;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease, background-color 160ms ease;
}

.settings-quick-card:hover {
  border-color: #b8e9f5;
  background: #f8fdff;
  box-shadow: 0 10px 24px rgba(7, 26, 44, 0.08);
  text-decoration: none;
}

.settings-quick-card-disabled,
.settings-quick-card-disabled:hover {
  color: var(--muted);
  background: #f6f8f5;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.settings-quick-card strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.settings-quick-card strong .icon {
  color: var(--cyan);
}

.settings-quick-card span,
.settings-subsection-header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.settings-subsection-header {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #b8e9f5;
  border-radius: 8px;
  background: #eefbff;
}

.payment-mode-card {
  border-color: #b8e9f5;
  background: #f8fdff;
}

.payment-mode-group[hidden] {
  display: none !important;
}

.form-error,
.errorlist {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #7b2424;
  background: #fff0f0;
  list-style: none;
}

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

.center {
  text-align: center;
}

.page-heading,
.public-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.page-heading h1,
.public-hero h1 {
  font-size: clamp(30px, 5vw, 54px);
}

.metric-grid,
.location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric {
  padding: 20px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--text-on-dark);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.metric span {
  display: block;
  color: var(--muted-on-dark);
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 42px;
  line-height: 1;
}

.panel-header,
.list-row,
.qr-row,
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.list {
  display: grid;
  gap: 12px;
}

.list-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfcfa;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease, background-color 160ms ease;
}

.list-row:hover {
  border-color: #b8e9f5;
  background: #f8fdff;
  box-shadow: 0 10px 24px rgba(7, 26, 44, 0.08);
  text-decoration: none;
}

.list-row:active,
.list-row.is-pressed {
  transform: translateY(1px) scale(0.995);
}

.list-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.pricing-rule-row {
  align-items: flex-start;
}

.pricing-rule-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.pricing-rule-actions .status {
  margin: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #714f09;
  background: #fff3cf;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.status.confirmed {
  color: var(--navy);
  background: #dfff7b;
}

.status.active,
.status.open,
.status.paid {
  color: var(--navy);
  background: #dfff7b;
}

.status.pending_payment {
  color: #624406;
  background: #fff0bf;
}

.status.pending_review {
  color: #064a62;
  background: #d8f7ff;
}

.status.proof_uploaded {
  color: #064a62;
  background: #d8f7ff;
}

.status.rejected,
.status.cancelled,
.status.suspended,
.status.deleted,
.status.payment_rejected {
  color: #893232;
  background: #ffe3e3;
}

.status.completed {
  color: #064a62;
  background: #d8f7ff;
}

.status.no_show,
.status.full {
  color: #714f09;
  background: #fff3cf;
}

.status.sent,
.status.queued,
.status.connected,
.status.delivered,
.status.opened,
.status.read,
.status.clicked {
  color: var(--navy);
  background: #dfff7b;
}

.status.created,
.status.pending,
.status.scheduled {
  color: #624406;
  background: #fff0bf;
}

.status.failed,
.status.undelivered,
.status.opt_out {
  color: #893232;
  background: #ffe3e3;
}

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

.location-card {
  display: grid;
  gap: 18px;
}

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

.detail-grid div {
  padding: 12px;
  border-radius: 8px;
  background: #f6f8f5;
}

dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

dd {
  margin: 4px 0 0;
}

.qr-row {
  justify-content: start;
  align-items: center;
}

.qr-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.qr-row a {
  overflow-wrap: anywhere;
}

.qr-row img,
.qr-panel img {
  width: 142px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-panel {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.gcash-qr-panel {
  justify-items: stretch;
}

.gcash-qr-panel h2,
.gcash-qr-panel .muted {
  justify-self: start;
}

.gcash-qr-panel img.gcash-qr {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.qr-download-button {
  width: 100%;
}

.payment-help {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid #b8e9f5;
  border-radius: 8px;
  color: var(--navy);
  background: #eefbff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.payment-help .icon {
  margin-top: 2px;
  color: var(--cyan);
}

.payment-summary {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f5;
}

.payment-summary h3 {
  margin: 0;
  font-size: 18px;
}

.payment-summary dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.payment-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.payment-summary dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.payment-summary dd {
  text-align: right;
  font-weight: 700;
}

.payment-summary-panel,
.payment-action-panel,
.payment-proof-form {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.payment-summary-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.payment-summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.payment-summary-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.payment-summary-list dd {
  text-align: right;
  font-weight: 700;
}

.payment-proof-form {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.split > .panel {
  min-width: 0;
}

.payment-proof-form .payment-proof-field {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.payment-proof-field > a {
  word-break: break-word;
}

.payment-proof-field > br {
  display: none;
}

.payment-proof-field > input[type="checkbox"] {
  margin: 0 5px 0 10px;
  vertical-align: middle;
}

.payment-proof-field > label {
  display: inline;
  min-height: 0;
}

.payment-proof-field > input[type="file"] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 8px;
}

.schedule-table {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 0.6fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.schedule-head,
.schedule-cell {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.schedule-head {
  color: var(--muted);
  background: #f6f8f5;
  font-weight: 800;
}

.strong {
  font-weight: 800;
}

.filter-bar {
  justify-content: start;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tabbar a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #f6f8f5;
  font-weight: 800;
}

.tabbar a:hover {
  border-color: #b8e9f5;
  background: #eefbff;
  text-decoration: none;
}

.venue-page-heading {
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 16px;
}

.venue-page-heading h1 {
  font-size: clamp(34px, 4vw, 48px);
}

.venue-page-heading p {
  font-size: 14px;
  line-height: 1.45;
}

.venue-page-heading .actions {
  gap: 8px;
}

.venue-page-heading .button {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 14px;
}

.venue-dashboard-metrics {
  gap: 10px;
  margin-bottom: 14px;
}

.venue-dashboard-metrics .metric {
  padding: 12px 14px;
}

.venue-dashboard-metrics a.metric:hover {
  color: var(--text-on-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(7, 26, 44, 0.14);
}

.venue-dashboard-metrics .metric span {
  font-size: 13px;
}

.venue-dashboard-metrics .metric strong {
  margin-top: 5px;
  font-size: 28px;
}

.venue-controls-panel,
.venue-calendar-panel,
.venue-table-panel,
.venue-blocks-panel {
  scroll-margin-top: 96px;
}

.venue-controls-panel {
  margin-bottom: 10px;
  padding: 10px 12px;
}

.venue-controls-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.venue-controls-panel .tabbar {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
  margin-bottom: 0;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.venue-controls-panel .tabbar a {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 11px;
  font-size: 14px;
  white-space: nowrap;
}

.embed-generator-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  scroll-margin-top: 96px;
}

.embed-generator-header {
  align-items: center;
}

.embed-generator-body {
  display: grid;
  gap: 16px;
}

.embed-generator-body[hidden] {
  display: none !important;
}

.embed-generator-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.84fr) minmax(0, 1.16fr);
  gap: 16px;
  align-items: start;
}

.embed-generator-controls,
.embed-generator-preview-shell {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.embed-generator-controls [hidden] {
  display: none !important;
}

.embed-location-selector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.embed-selected-courts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
}

.embed-selected-court {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 7px 6px 10px;
  border: 1px solid #b8e9f5;
  border-radius: 8px;
  color: var(--ink);
  background: #f8fdff;
  font-size: 13px;
  font-weight: 800;
}

.embed-selected-court button {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.embed-selected-court button:hover {
  color: var(--navy);
  border-color: #b8e9f5;
  background: #eefbff;
}

.embed-random-toggle {
  min-height: 82px;
}

.embed-generator-preview {
  min-height: 156px;
  padding: 14px;
  border: 1px dashed #b8e9f5;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(238, 251, 255, 0.84), rgba(246, 248, 245, 0.64)),
    #ffffff;
}

.embed-code-output {
  min-height: 146px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
}

.embed-copy-status {
  min-height: 20px;
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

.venue-date-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  font-size: 13px;
}

.venue-date-picker,
.table-filters,
.table-actions,
.inline-upload-form,
.note-form,
.drawer-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.venue-date-picker label,
.table-filters label {
  min-width: 0;
}

.venue-date-picker {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 0;
}

.venue-date-picker label {
  display: block;
}

.venue-date-picker .input,
.venue-date-controls .button,
.venue-date-controls .inline-action {
  min-height: 36px;
}

.venue-date-picker .input {
  min-width: 0;
  width: 148px;
}

.venue-date-controls .button,
.venue-date-controls .inline-action {
  font-size: 13px;
}

.venue-date-button {
  justify-content: center;
  width: 38px;
  min-width: 38px;
  padding-inline: 0;
}

.venue-date-today {
  min-width: 68px;
  padding-inline: 12px;
}

.venue-location-switcher {
  margin-top: 14px;
}

.schedule-copy-controls {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(170px, auto) auto minmax(160px, 1fr);
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f5;
}

.schedule-copy-controls > label {
  display: grid;
  gap: 6px;
}

.schedule-copy-picker {
  position: relative;
}

.schedule-copy-picker summary {
  list-style: none;
  white-space: nowrap;
}

.schedule-copy-picker summary::-webkit-details-marker {
  display: none;
}

.schedule-copy-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 12;
  display: grid;
  gap: 8px;
  width: 210px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.schedule-copy-menu .checkbox-row {
  min-height: 28px;
}

.venue-location-search {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 10px 14px;
  align-items: end;
}

.venue-location-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.venue-view-heading {
  display: grid;
  gap: 2px;
}

.venue-view-heading .eyebrow {
  margin: 0;
}

.venue-view-heading strong {
  font-size: 17px;
}

.venue-location-field .input {
  width: 100%;
  min-height: 40px;
}

.venue-location-count {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  font-size: 12px;
}

.platform-heading {
  margin-bottom: 20px;
}

.platform-metrics {
  margin-bottom: 22px;
}

.platform-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.platform-resource-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 116px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.platform-resource-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 18px 44px rgba(7, 26, 44, 0.14);
  text-decoration: none;
  transform: translateY(-2px);
}

.platform-resource-card > span:not(.platform-resource-icon) {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.platform-resource-card strong {
  font-size: 17px;
}

.platform-resource-card small {
  color: var(--muted);
  line-height: 1.45;
}

.platform-resource-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--navy);
  background: var(--lime);
  font-size: 22px;
}

.platform-console-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.platform-console-nav {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.platform-console-nav a {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.platform-console-nav a:hover,
.platform-console-nav a[aria-current="page"] {
  color: var(--navy);
  background: #eaf9fd;
  text-decoration: none;
}

.platform-console-nav a[aria-current="page"] {
  box-shadow: inset 3px 0 var(--cyan);
}

.platform-console-home {
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0 !important;
}

.platform-table-panel {
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.platform-table-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.platform-search-field {
  position: relative;
  flex: 1 1 320px;
  min-width: 180px;
}

.platform-search-field .icon {
  position: absolute;
  top: 50%;
  left: 13px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.platform-search-field .input {
  width: 100%;
  padding-left: 38px;
}

.platform-table-toolbar > select {
  width: min(210px, 30vw);
}

.platform-bulk-form {
  margin: 0;
}

.platform-bulk-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfd;
}

.platform-selection-summary {
  display: grid;
  gap: 2px;
  margin-right: auto;
}

.platform-selection-summary strong {
  color: var(--ink);
  font-size: 13px;
}

.platform-selection-summary span {
  color: var(--muted);
  font-size: 11px;
}

.platform-bulk-toolbar .inline-action {
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.platform-bulk-toolbar .inline-action[hidden] {
  display: none;
}

.platform-column-picker {
  position: relative;
}

.platform-column-picker summary {
  list-style: none;
  cursor: pointer;
}

.platform-column-picker summary::-webkit-details-marker {
  display: none;
}

.platform-column-picker fieldset {
  position: absolute;
  z-index: 8;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 230px;
  gap: 9px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 38px rgb(7 26 44 / 16%);
}

.platform-column-picker legend {
  padding: 0 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.platform-column-picker label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.platform-select-column {
  width: 42px;
  min-width: 42px;
  text-align: center;
}

.platform-select-column input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  cursor: pointer;
}

.platform-table-scroll {
  overflow-x: auto;
}

.platform-data-table {
  min-width: 820px;
  margin: 0;
}

.platform-data-table th {
  color: var(--muted);
  background: #f6fafb;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.platform-data-table td {
  vertical-align: middle;
}

.platform-data-table td strong,
.platform-data-table td small {
  display: block;
}

.platform-data-table td strong {
  color: var(--ink);
  font-size: 13px;
}

.platform-data-table td small {
  max-width: 300px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-cell-link {
  display: block;
  color: var(--accent-dark);
  font-weight: 800;
}

.platform-row-action {
  width: 1%;
  white-space: nowrap;
}

.platform-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.platform-drawer {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(620px, 100vw);
}

.platform-drawer-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.platform-drawer-fields > label {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.platform-drawer-fields textarea,
.platform-drawer-fields [name="body_html"],
.platform-drawer-fields [name="body_text"],
.platform-drawer-fields [name="business_info"],
.platform-drawer-fields [name="global_booking_rules"],
.platform-drawer-fields [name="address"],
.platform-drawer-fields [name="notes"],
.platform-drawer-fields [name="rejection_reason"] {
  grid-column: 1 / -1;
}

.platform-drawer-fields > label:has(textarea) {
  grid-column: 1 / -1;
}

.platform-drawer-toggle {
  grid-column: 1 / -1;
}

.platform-drawer-form .errorlist,
.form-errors .errorlist {
  margin: 0;
  padding-left: 18px;
  color: var(--danger);
  font-size: 12px;
}

.platform-danger-zone {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 16px;
  border: 1px solid #f1bebe;
  border-radius: 10px;
  background: #fff7f7;
}

.platform-test-email {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #b9e5ef;
  border-radius: 10px;
  background: #f4fcfe;
}

.platform-test-email h3,
.platform-test-email p {
  margin: 0;
}

.platform-test-email h3 {
  font-size: 16px;
}

.platform-test-email p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.platform-test-email label {
  display: grid;
  gap: 5px;
}

.platform-test-email .button {
  grid-column: 1 / -1;
  justify-self: start;
}

.platform-test-status {
  overflow-wrap: anywhere;
}

.platform-result-log {
  display: grid;
  gap: 18px;
}

.platform-result-heading {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.platform-result-heading strong {
  font-size: 18px;
}

.platform-result-heading > span:not(.status) {
  color: var(--muted);
}

.platform-result-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.platform-result-details > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

.platform-result-details dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-result-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.platform-result-response {
  display: grid;
  gap: 8px;
}

.platform-result-response h3 {
  margin: 0;
  font-size: 15px;
}

.platform-result-response pre {
  max-height: 260px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: #f4f7f8;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.platform-danger-zone h3,
.platform-danger-zone p {
  margin: 0;
}

.platform-danger-zone h3 {
  color: var(--danger);
  font-size: 16px;
}

.platform-danger-zone p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.platform-danger-zone form {
  display: flex;
  gap: 8px;
}

.platform-danger-zone .input {
  flex: 1 1 auto;
}

.button-danger {
  border-color: var(--danger);
  color: #fff;
  background: var(--danger);
}

.button-danger:hover {
  color: #fff;
  background: #922d2d;
}

.platform-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--navy);
  background: rgba(245, 251, 253, 0.9);
  opacity: 0;
  transition: opacity 120ms ease;
}

.platform-loading-overlay[hidden] {
  display: none;
}

.platform-loading-overlay.visible {
  opacity: 1;
}

.platform-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #cfeaf1;
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: wizard-spinner-rotate 700ms linear infinite;
}

.venue-timeline-scroll {
  position: relative;
  max-height: min(72vh, 760px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.venue-court-tabs {
  display: none;
}

.venue-timeline-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 4px;
  width: 30px;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}

.venue-timeline {
  display: grid;
  grid-template-columns: 92px repeat(var(--court-count), minmax(138px, 1fr));
  gap: 8px;
  width: max-content;
  min-width: 100%;
  padding-bottom: 4px;
}

.venue-timeline-head,
.venue-time-label,
.court-cell {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.venue-timeline-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px;
  color: var(--muted);
  background: #f6f8f5;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.venue-time-label {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 78px;
  padding: 10px;
  background: #fff;
}

.venue-time-label span {
  color: var(--muted);
  font-size: 13px;
}

.court-cell {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 78px;
  padding: 10px;
  color: var(--ink);
  background: #fbfcfa;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease, background-color 160ms ease;
}

.court-cell:hover {
  border-color: #b8e9f5;
  background: #f8fdff;
  box-shadow: 0 10px 24px rgba(7, 26, 44, 0.08);
}

.court-cell span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.court-cell.unavailable {
  color: var(--muted);
  background: #f3f6f3;
}

.court-cell.booking,
.court-cell.walk-in,
.court-cell.open-play,
.court-cell.blocked {
  border-color: #d6e5a9;
  background: #fcfff3;
}

.court-cell.blocked,
.court-cell.cancelled,
.court-cell.rejected {
  border-color: #ffcaca;
  background: #fff0f0;
}

.court-cell.pending_review,
.court-cell.proof_uploaded {
  border-color: #b8e9f5;
  background: #eefbff;
}

.table-section-header {
  align-items: center;
  gap: 12px;
}

.table-section-header h2 {
  margin: 0;
}

.table-filters {
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.table-filters .input {
  width: auto;
  min-width: 150px;
  min-height: 38px;
  font-size: 13px;
}

.table-subtext {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.table-actions {
  align-items: flex-start;
  min-width: 230px;
}

.table-actions form {
  margin: 0;
}

.booking-table {
  font-size: 13px;
}

.booking-table th,
.booking-table td {
  white-space: nowrap;
}

[data-venue-dashboard-content] > .table-panel + .table-panel,
[data-venue-dashboard-content] > .table-panel + .venue-blocks-panel {
  margin-top: 20px;
}

.venue-table-panel {
  font-size: 12px;
}

.venue-table-panel table {
  font-size: 12px;
  table-layout: auto;
}

.venue-table-panel th,
.venue-table-panel td {
  padding: 10px 8px;
  vertical-align: middle;
  white-space: nowrap;
}

.venue-table-panel th {
  font-size: 11px;
  line-height: 1.25;
}

.venue-table-panel .status {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 11px;
}

.venue-table-panel .button,
.venue-table-panel .input {
  min-height: 34px;
  font-size: 12px;
}

.input-file-small {
  width: 180px;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 13px;
}

.input-note-small {
  width: 180px;
  min-height: 34px;
  padding: 6px 8px;
}

.participants-popover {
  position: relative;
}

.participants-popover summary {
  list-style: none;
  cursor: pointer;
}

.participants-popover summary::-webkit-details-marker {
  display: none;
}

.participants-list {
  display: grid;
  gap: 10px;
  min-width: 260px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.participants-list > div {
  display: grid;
  gap: 8px;
}

.participants-list form {
  margin: 0;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(7, 26, 44, 0.28);
}

.right-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 18px;
  width: min(560px, 100vw);
  height: 100vh;
  padding: 24px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: -18px 0 48px rgba(7, 26, 44, 0.18);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.right-drawer.open {
  transform: translateX(0);
}

.right-drawer[hidden] {
  display: none !important;
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-header h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.drawer-close {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 22px;
}

.drawer-action-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.drawer-slot-activity {
  display: grid;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-slot-activity h3 {
  margin: 0;
  font-size: 16px;
}

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

.slot-activity-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.slot-activity-card.booking {
  border-color: #b8e9f5;
  background: #f8fdff;
}

.slot-activity-card.open_play {
  border-color: #d6e5a9;
  background: #fcfff3;
}

.slot-activity-card.block {
  border-color: #ffcaca;
  background: #fff7f7;
}

.slot-activity-card-header,
.slot-activity-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.slot-activity-card-header > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.slot-activity-card-header span:not(.status) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.slot-activity-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.slot-activity-details div {
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.slot-activity-details dd {
  overflow-wrap: anywhere;
}

.slot-activity-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.slot-activity-actions form {
  margin: 0;
}

.drawer-form {
  display: grid;
  gap: 18px;
}

.drawer-form[hidden],
.drawer-action-menu[hidden] {
  display: none !important;
}

.drawer-status {
  padding: 12px 14px;
  border: 1px solid #ffe0a3;
  border-radius: 8px;
  color: #624406;
  background: #fff8e5;
  font-weight: 800;
}

.drawer-status[hidden] {
  display: none !important;
}

.recurrence-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f5;
}

.recurrence-fields[hidden] {
  display: none !important;
}

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

.drawer-footer {
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.payment-detail-panel,
.proof-history,
.compact-review-form {
  display: grid;
  gap: 16px;
}

.payment-proof-preview-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f5;
}

.payment-proof-preview {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.booking-review-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #b8e9f5;
  border-radius: 8px;
  background: #f2fbfd;
}

.booking-review-card h3,
.booking-review-card .eyebrow {
  margin: 0;
}

.booking-review-card [hidden] {
  display: none !important;
}

.payment-record-grid {
  margin-top: 6px;
}

.table-panel {
  overflow-x: auto;
}

.mobile-filter-panel {
  min-width: 0;
}

.mobile-filter-summary {
  display: none;
}

.mobile-filter-summary::-webkit-details-marker {
  display: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.notice {
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: #fff8e5;
}

.public-hero {
  align-items: stretch;
  padding: 28px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, var(--navy), var(--navy-soft) 58%, #006d92);
  background-size: 82px 82px, 82px 82px, auto;
  background-position: center;
}

.public-hero-cover {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 26, 44, 0.88), rgba(7, 26, 44, 0.58)),
    var(--cover-photo);
  background-position: center;
  background-size: cover;
}

.public-hero-unclaimed {
  background:
    linear-gradient(90deg, rgba(38, 44, 40, 0.92), rgba(45, 49, 46, 0.74)),
    var(--cover-photo);
  background-position: center;
  background-size: cover;
}

.public-hero .eyebrow,
.public-hero p {
  color: #d8f7ff;
}

.public-logo {
  flex: 0 0 112px;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.public-logo img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.public-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
}

.public-contact-list a,
.public-contact-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
}

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

.public-booking-backdrop .public-hero {
  width: min(1180px, calc(100% - 32px));
  margin-bottom: 0;
  box-shadow: 0 18px 42px rgba(7, 26, 44, 0.2);
}

.public-booking-backdrop .booking-wizard-shell {
  width: min(1180px, calc(100% - 32px));
}

.public-booking-backdrop .panel,
.public-booking-backdrop .booking-wizard-form {
  background: rgba(255, 255, 255, 0.96);
}

.booking-wizard-shell {
  align-items: start;
}

.public-hero-actions {
  display: flex;
  align-self: start;
  flex: 0 0 auto;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.public-hero-actions .favorite-toggle,
.hero-venue-details {
  min-height: 48px;
}

.venue-details-section {
  width: min(1180px, calc(100% - 32px));
}

.venue-details-section {
  display: grid;
  gap: 18px;
  padding: 24px;
  scroll-margin-top: 88px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  background: rgba(245, 251, 253, 0.96);
  box-shadow: 0 18px 42px rgba(7, 26, 44, 0.18);
}

.venue-details-header h2,
.venue-detail-card h3,
.venue-amenities-card h3,
.venue-payment-summary h3 {
  margin: 0;
}

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

.venue-detail-grid > :only-child {
  grid-column: 1 / -1;
}

.venue-detail-card,
.venue-amenities-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.venue-detail-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.venue-detail-card-header .eyebrow {
  margin-bottom: 3px;
}

.venue-detail-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--accent-dark);
  background: #e8f8fb;
}

.venue-detail-icon .icon {
  width: 22px;
  height: 22px;
}

.venue-schedule-list,
.venue-price-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.venue-schedule-list > div,
.venue-price-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.venue-schedule-list > div:first-child,
.venue-price-list > div:first-child {
  padding-top: 0;
}

.venue-schedule-list > div:last-child,
.venue-price-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.venue-schedule-list dd,
.venue-price-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  text-align: right;
}

.venue-price-list dt {
  display: grid;
  gap: 3px;
}

.venue-price-list dt small {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}

.venue-price-primary dd {
  color: var(--accent-dark);
  font-size: 18px;
}

.venue-booking-minimum {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--ink);
  background: #f4fafb;
}

.venue-booking-minimum .icon {
  color: var(--cyan);
}

.venue-court-list {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.venue-court-list h4,
.venue-amenity-groups h4 {
  margin: 0;
  color: var(--ink);
}

.venue-court-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) repeat(2, auto);
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f6f8f5;
}

.venue-court-row span {
  color: var(--muted);
  font-size: 13px;
}

.venue-price-caveat,
.venue-pricing-notes,
.venue-other-amenities {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.venue-amenities-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.venue-price-caveat {
  font-size: 13px;
  font-weight: 700;
}

.venue-amenity-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.venue-amenity-groups section {
  display: grid;
  align-content: start;
  gap: 10px;
}

.venue-chip-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.venue-chip-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #c7e8ef;
  border-radius: 999px;
  color: var(--ink);
  background: #f2fbfd;
  font-size: 13px;
  font-weight: 750;
}

.venue-chip-list .icon {
  width: 15px;
  height: 15px;
  color: var(--cyan);
}

.venue-other-amenities {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.venue-payment-summary {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1fr) minmax(180px, 0.8fr);
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
}

.venue-payment-summary .eyebrow {
  color: #80def0;
}

.venue-payment-summary .venue-chip-list li {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.venue-payment-summary p {
  margin: 0;
  color: #d6e8ee;
  font-size: 13px;
  line-height: 1.45;
}

.profile-option-field {
  min-width: 0;
  margin: 0;
}

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

.profile-option-field > div > div > label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.profile-option-field input[type="checkbox"] {
  flex: 0 0 auto;
}

.wizard-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.wizard-location-summary {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

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

.booking-draft-card h2 {
  margin-bottom: 0;
}

.booking-draft-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.booking-draft-list div {
  display: grid;
  grid-template-columns: minmax(92px, 0.72fr) minmax(0, 1.28fr);
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.booking-draft-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.booking-draft-list dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

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

.wizard-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef0;
}

.wizard-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  transition: width 260ms ease;
}

.wizard-progress-labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.wizard-progress-labels span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wizard-progress-labels span.active {
  color: var(--accent-dark);
}

.wizard-progress-mobile {
  display: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.booking-help-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--touch-target);
  padding: 10px 14px;
  border: 1px solid rgba(7, 26, 44, 0.18);
  border-radius: 999px;
  color: var(--navy);
  background: var(--lime);
  box-shadow: 0 12px 28px rgba(7, 26, 44, 0.2);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.booking-help-launcher:disabled {
  opacity: 0.7;
  cursor: wait;
}

.booking-wizard-form {
  display: grid;
  gap: 18px;
  min-height: 520px;
}

.wizard-step {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: start;
}

.wizard-step[hidden],
.wizard-alert[hidden] {
  display: none !important;
}

.wizard-step h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.wizard-step .eyebrow {
  margin-bottom: -8px;
}

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

.date-choice-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.date-choice-shell {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.date-choice-scroll {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #b8e9f5;
  border-radius: 8px;
  color: var(--navy);
  background: #eefbff;
  cursor: pointer;
}

.date-choice-scroll:hover {
  background: #dff7fd;
}

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

.time-grid,
.court-grid,
.duration-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.choice-card {
  display: grid;
  gap: 8px;
  min-height: 124px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfcfa;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease, background-color 160ms ease;
}

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

.booking-placeholder-actions button {
  min-height: 58px;
  padding: 12px 16px;
  border: 1px dashed #a9c4cb;
  border-radius: 8px;
  color: var(--muted);
  background: #f6f9f9;
  font: inherit;
  font-weight: 800;
  text-align: center;
}

.booking-placeholder-actions button:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.choice-card.compact {
  min-height: 98px;
}

.choice-card.date-choice {
  flex: 0 0 138px;
  min-height: 82px;
  scroll-snap-align: start;
}

.schedule-date-native {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.schedule-range-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #b8e9f5;
  border-radius: 8px;
  background: #eefbff;
}

.schedule-range-summary strong {
  color: var(--navy);
}

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

.time-selection-helper {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding: 10px 13px;
  border: 1px solid #b8e9f5;
  border-radius: 8px;
  color: var(--navy);
  background: #eefbff;
  font-weight: 750;
  line-height: 1.45;
}

.time-selection-helper::after {
  position: absolute;
  top: 100%;
  left: 22px;
  width: 10px;
  height: 10px;
  border-right: 1px solid #b8e9f5;
  border-bottom: 1px solid #b8e9f5;
  background: inherit;
  content: "";
  transform: translateY(-5px) rotate(45deg);
}

.time-selection-helper.is-error {
  border-color: #f4bd5f;
  color: #624406;
  background: #fff8e5;
}

.time-selection-helper.is-error::after {
  border-color: #f4bd5f;
}

.choice-card strong {
  font-size: 18px;
}

.choice-card span {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
}

.choice-card small {
  color: var(--accent-dark);
  font-weight: 800;
}

.choice-card:hover {
  border-color: #b8e9f5;
  background: #f8fdff;
  box-shadow: 0 10px 24px rgba(7, 26, 44, 0.08);
}

.choice-card:active,
.choice-card.is-pressed {
  transform: translateY(1px) scale(0.995);
}

.choice-card.selected {
  border-color: var(--accent);
  outline: 3px solid #ddff78;
  background: #fcfff3;
}

.choice-card.in-range {
  border-color: #b8e9f5;
  background: #f3fcff;
}

.choice-card.range-start,
.choice-card.range-end {
  background: #f7ffd8;
}

.choice-card.invalid-attempt {
  border-color: #e49b21;
  outline: 3px solid #ffe0a3;
  background: #fff8e5;
}

.choice-card:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.wizard-date-field {
  max-width: 360px;
}

.wizard-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.wizard-alert {
  padding: 12px 14px;
  border: 1px solid #ffe0a3;
  border-radius: 8px;
  color: #624406;
  background: #fff8e5;
  font-weight: 800;
}

.public-listing-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin: 2px 0 10px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.public-listing-status .icon {
  width: 15px;
  height: 15px;
}

.public-listing-status-active {
  background: var(--lime);
}

.public-listing-status-claimed {
  background: #dff8ff;
}

.public-listing-status-unclaimed {
  background: #fff3d2;
}

.wizard-step-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 32px);
  min-height: 42px;
  padding: 12px 16px;
  border: 1px solid #b8e9f5;
  border-radius: 8px;
  color: var(--navy);
  background: rgba(238, 251, 255, 0.98);
  box-shadow: 0 16px 36px rgba(7, 26, 44, 0.2);
  font-weight: 800;
  text-align: center;
  transform: translate(-50%, -50%);
}

.wizard-step-loader[hidden] {
  display: none !important;
}

.wizard-spinner {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 3px solid rgba(0, 189, 230, 0.24);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: wizard-spinner-rotate 700ms linear infinite;
}

.booking-wizard-form.is-loading .wizard-step:not([hidden]) .choice-card,
.booking-wizard-form.is-loading .wizard-step:not([hidden]) .button,
.booking-wizard-form.is-loading .wizard-step:not([hidden]) input,
.booking-wizard-form.is-loading .wizard-step:not([hidden]) select {
  pointer-events: none;
}

.booking-wizard-form.is-loading .wizard-step:not([hidden]) > :not([data-step-loader]) {
  opacity: 0.4;
}

.time-grid-message {
  grid-column: 1 / -1;
}

@keyframes wizard-spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-spinner {
    animation-duration: 1400ms;
  }
}

.venue-calendar-panel {
  margin-bottom: 24px;
}

.venue-calendar-grid {
  margin-bottom: 0;
}

.booking-form .form-grid.compact {
  column-gap: 20px;
  row-gap: 18px;
}

.booking-form > .button[type="submit"] {
  justify-self: start;
  margin-top: 14px;
}

.finder-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.finder-hero h1 {
  max-width: 760px;
}

.finder-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.finder-search {
  display: grid;
  gap: 12px;
}

.finder-search-input {
  min-height: 52px;
}

.finder-results {
  display: grid;
  gap: 18px;
}

.finder-results-header h2 {
  margin-bottom: 0;
}

.finder-result-count {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.finder-filter-bar {
  display: grid;
  grid-template-columns: auto repeat(2, minmax(180px, 1fr)) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(7, 26, 44, 0.06);
}

.finder-filter-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--touch-target);
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

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

.pagination-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.court-card {
  display: grid;
  grid-template-rows: 190px 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.court-card:hover {
  border-color: #b8e9f5;
  box-shadow: 0 18px 42px rgba(7, 26, 44, 0.14);
  transform: translateY(-2px);
}

.court-card-inactive {
  background: #f8faf7;
}

.court-card-active {
  border-color: #d8eb9b;
}

.court-card-claimed {
  border-color: #b8e9f5;
}

.court-card-unclaimed {
  border-color: #ead7aa;
  background: #fcfbf7;
}

.court-card-inactive:hover {
  border-color: var(--line);
  box-shadow: var(--shadow);
  transform: none;
}

.court-card:active,
.court-card.is-pressed {
  transform: translateY(0) scale(0.995);
}

.court-card-photo,
.location-card-cover {
  display: block;
  width: 100%;
  min-height: 0;
  background: #e8efe9;
}

.court-card-photo {
  position: relative;
  height: 190px;
}

.court-card-photo:hover {
  text-decoration: none;
}

.court-card-photo-muted img {
  opacity: 0.72;
  filter: saturate(0.7);
}

.court-card-photo-disabled .status {
  position: absolute;
  top: 12px;
  left: 12px;
}

.court-card-logo {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(7, 26, 44, 0.18);
}

.court-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.court-card-photo img,
.location-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}

.court-card-photo .court-card-logo img {
  object-fit: contain;
  transform: none;
}

.court-card:hover .court-card-photo img {
  transform: scale(1.025);
}

.court-card:hover .court-card-photo .court-card-logo img {
  transform: none;
}

.court-card-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 150px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, var(--navy), var(--navy-soft) 58%, #006d92);
  background-size: 48px 48px, 48px 48px, auto;
}

.court-card-placeholder span {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.dynk-mark {
  display: block;
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.court-card-placeholder.with-logo {
  padding: 28px;
}

.court-card-placeholder.with-logo img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.court-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.listing-status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 82px);
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 16px rgba(7, 26, 44, 0.16);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.listing-status-badge .icon {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.listing-status-badge-active {
  background: rgba(224, 255, 128, 0.96);
}

.listing-status-badge-claimed {
  background: rgba(223, 248, 255, 0.96);
}

.listing-status-badge-unclaimed {
  background: rgba(255, 243, 210, 0.96);
}

.court-card-body h2 {
  margin-bottom: 0;
}

.court-card-heading .favorite-location-title {
  min-height: 3.2rem;
}

.court-card-address p {
  min-height: 4.5em;
}

.court-card-phone p {
  min-height: 1.5em;
}

.court-card-footer {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.listing-card-note {
  margin: -3px 0 0;
  color: #735515;
  font-size: 12px;
  font-weight: 700;
}

.court-card-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.court-card-facts div {
  padding: 10px;
  border-radius: 8px;
  background: #f6f8f5;
}

.location-card-cover {
  height: 150px;
  overflow: hidden;
  border-radius: 8px;
}

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

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

.favorite-location-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.favorite-location-title h2,
.favorite-location-title strong {
  margin: 0;
  min-width: 0;
}

.favorite-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
}

.favorite-toggle:hover {
  border-color: var(--lime);
  background: #fcfff3;
}

.favorite-toggle:active {
  transform: translateY(1px) scale(0.99);
}

.favorite-toggle.is-favorite {
  border-color: var(--lime);
  color: var(--navy);
  background: var(--lime);
}

.favorite-toggle.is-favorite .icon {
  fill: currentColor;
}

.favorite-toggle-compact {
  min-height: 34px;
  padding: 6px 9px;
  border-color: var(--line);
  background: #fff;
  font-size: 13px;
}

.hero-favorite {
  align-self: start;
  flex: 0 0 auto;
}

.favorite-message {
  padding: 10px 12px;
  border: 1px solid #ffe0a3;
  border-radius: 8px;
  color: #624406;
  background: #fff8e5;
  font-size: 13px;
  font-weight: 800;
}

.favorite-message[hidden] {
  display: none !important;
}

.favorites-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.favorites-panel[hidden] {
  display: none !important;
}

.finder-favorites-panel {
  margin-bottom: 18px;
}

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

.favorite-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.favorite-list-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
}

.favorite-list-main:hover {
  text-decoration: none;
}

.favorite-list-main img,
.favorite-list-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.favorite-list-mark {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  font-weight: 800;
}

.favorite-list-main span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.favorite-list-main small {
  color: var(--muted);
  line-height: 1.35;
}

.favorite-remove {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 26, 44, 0.58);
}

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

.modal-card {
  position: relative;
  z-index: 2001;
  width: min(820px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.modal-card .panel-header {
  align-items: flex-start;
  flex-direction: row;
}

.modal-card .panel-header > div {
  min-width: 0;
}

.modal-card .panel-header h2 {
  overflow-wrap: anywhere;
}

.modal-card .panel-header .toast-close {
  flex: 0 0 auto;
  margin-left: auto;
}

.modal-card .form-panel,
.modal-card .input,
.modal-card .button,
.modal-card .wizard-alert {
  font-size: 14px;
}

.modal-card .field-label {
  font-size: 12px;
}

.modal-intro {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.venue-enable-details-card {
  display: grid;
  gap: 12px;
  margin: 4px 0 18px;
  padding: 14px;
  border: 1px solid #cfe5db;
  border-radius: 8px;
  background: #f7fbf8;
}

.venue-enable-details-card .eyebrow {
  margin-bottom: 0;
}

.venue-enable-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.venue-enable-details-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(16, 55, 36, 0.08);
  border-radius: 8px;
  background: #fff;
}

.venue-enable-details-grid dt {
  display: flex;
  align-items: center;
  gap: 6px;
}

.venue-enable-details-grid dd {
  overflow-wrap: anywhere;
}

.inactive-booking-shell {
  width: min(1180px, calc(100% - 32px));
}

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

.inactive-booking-shell-claimed .booking-draft-card {
  border-top: 4px solid var(--cyan);
}

.inactive-booking-shell-unclaimed .booking-draft-card {
  border-top: 4px solid #edc56a;
  background: #fffcf3;
}

.inactive-venue-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button-icon-only {
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 12px;
  font-size: 20px;
}

.inactive-copy-mobile {
  display: none;
}

.summary-label,
.address-block span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.address-block {
  display: grid;
  gap: 4px;
}

.address-block p {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

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

.location-facts div {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f6f8f5;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.slot {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease, background-color 160ms ease;
}

.slot:hover {
  border-color: #b8e9f5;
  background: #f8fdff;
  box-shadow: 0 10px 24px rgba(7, 26, 44, 0.08);
}

.slot:active,
.slot.is-pressed {
  transform: translateY(1px) scale(0.995);
}

.slot input {
  position: absolute;
  top: 12px;
  right: 12px;
}

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

.slot-time .icon,
.slot-meta .icon {
  color: var(--cyan);
}

.slot:has(input:checked) {
  border-color: var(--accent);
  outline: 3px solid #ddff78;
}

.slot.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

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

.confirmation {
  display: grid;
  place-items: center;
  min-height: 55vh;
}

.confirmation .panel {
  width: min(720px, 100%);
}

.offline-shell {
  display: grid;
  justify-items: start;
  gap: 14px;
  width: min(680px, 100%);
  margin: 12vh auto 0;
}

.offline-shell h1 {
  font-size: clamp(32px, 8vw, 58px);
}

.offline-shell p {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.offline-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
}

.offline-mark .icon {
  width: 28px;
  height: 28px;
}

@media (max-width: 900px) {
  .settings-actions-persistent {
    top: 126px;
  }

  .settings-editor-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .settings-sidebar {
    top: 76px;
    padding: 7px;
    overflow: hidden;
  }

  .settings-sidebar-nav {
    display: flex;
    gap: 5px;
    padding-bottom: 3px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .settings-sidebar-nav a,
  .settings-sidebar-nav button {
    flex: 0 0 auto;
    width: auto;
    min-height: 36px;
    padding: 7px 9px;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .settings-editor-content .settings-section {
    scroll-margin-top: 134px;
  }

  .public-listing-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .schedule-copy-status {
    grid-column: 1 / -1;
  }

  .court-card-heading .favorite-location-title,
  .court-card-address p,
  .court-card-phone p {
    min-height: auto;
  }

  .public-hero-actions {
    width: 100%;
    justify-content: stretch;
  }

  .public-hero-actions > * {
    flex: 1 1 180px;
  }

  .venue-amenity-groups,
  .venue-payment-summary {
    grid-template-columns: 1fr;
  }

  .profile-option-field > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .platform-console-layout {
    grid-template-columns: 1fr;
  }

  .platform-console-nav {
    position: static;
    display: flex;
    gap: 5px;
    padding: 8px;
    overflow-x: auto;
  }

  .platform-console-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .platform-console-home {
    margin: 0 4px 0 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 8px 0 0 8px !important;
  }

  .auth-layout,
  .split,
  .booking-shell,
  .finder-hero,
  .metric-grid,
  .location-grid,
  .embed-generator-layout,
  .court-card-grid,
  .settings-quick-grid,
  .settings-grid,
  .venue-enable-details-grid,
  .form-grid.compact {
    grid-template-columns: 1fr;
  }

  .page-heading,
  .public-hero,
  .panel-header,
  .list-row,
  .filter-bar,
  .table-section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid,
  .slot-grid,
  .date-choice-grid,
  .choice-grid,
  .choice-grid.two,
  .time-grid,
  .court-grid,
  .duration-grid,
  .session-grid {
    grid-template-columns: 1fr;
  }

  .wizard-sidebar {
    position: static;
  }

  .booking-wizard-shell .booking-wizard-form {
    order: 1;
  }

  .booking-wizard-shell .wizard-sidebar {
    order: 2;
  }

  .topbar {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: inline-grid;
    margin-left: auto;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: clamp(12px, 4vw, 18px);
    right: clamp(12px, 4vw, 18px);
    z-index: 30;
    display: none;
    flex: none;
    align-items: stretch;
    justify-content: stretch;
    gap: 6px;
    max-height: calc(100vh - 92px);
    padding: 8px;
    overflow-y: auto;
    border: 1px solid rgba(7, 26, 44, 0.12);
    border-radius: 8px;
    background: #00bde6;
    box-shadow: 0 18px 42px rgba(7, 26, 44, 0.22);
  }

  .nav.is-open {
    display: grid;
  }

  .nav a,
  .nav summary,
  .nav .link-button,
  .nav .pwa-install-button {
    justify-content: flex-start;
    width: 100%;
    min-height: 46px;
    background: rgba(255, 255, 255, 0.22);
  }

  .nav .pwa-install-button {
    color: var(--navy);
    background: var(--lime);
  }

  .nav-install-button {
    margin-left: 0;
  }

  .nav-dropdown-panel .pwa-install-menu-button {
    display: none !important;
  }

  .nav-dropdown-panel {
    position: static;
    min-width: 0;
    margin: 4px 0 8px;
    box-shadow: none;
  }

  .field-block-full {
    grid-column: auto;
  }

  .table-filters,
  .venue-date-picker,
  .drawer-footer {
    justify-content: flex-start;
  }

  .settings-control-panel {
    display: grid;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
  }

  .settings-scope-switcher {
    width: 100%;
  }

  .settings-scope-option {
    min-height: 36px;
    padding: 7px 8px;
    font-size: 13px;
  }

  .settings-venue-selector {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    min-width: 0;
  }

  .settings-venue-selector label {
    min-width: 0;
  }

  .settings-page-heading {
    gap: 14px;
    margin-bottom: 16px;
  }

  .settings-page-heading h1 {
    font-size: 30px;
    line-height: 1.05;
  }

  .settings-page-heading p {
    font-size: 13px;
    line-height: 1.45;
  }

  .settings-page-heading .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .settings-page-heading .button,
  .settings-control-panel .button,
  .settings-section .button,
  .settings-actions .button {
    min-height: 38px;
    padding: 7px 10px;
    gap: 6px;
    font-size: 13px;
    line-height: 1.2;
  }

  .settings-control-panel label,
  .settings-section label {
    gap: 6px;
  }

  .settings-control-panel .field-label,
  .settings-section .field-label,
  .settings-section .checkbox-row,
  .settings-section label:has(> input[type="checkbox"]) {
    min-width: 0;
    font-size: 13px;
    line-height: 1.25;
  }

  .settings-section {
    gap: 12px;
    padding: 14px;
    scroll-margin-top: 116px;
  }

  .settings-section-header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 10px;
  }

  .settings-section-header h2 {
    font-size: 18px;
    line-height: 1.2;
  }

  .settings-section-help {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
  }

  .settings-section .eyebrow {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .settings-grid {
    gap: 12px;
  }

  .field-block-media {
    padding: 12px;
  }

  .field-help,
  .settings-quick-card span,
  .settings-subsection-header span,
  .toggle-card small {
    font-size: 12px;
    line-height: 1.4;
  }

  .toggle-card {
    gap: 10px;
    padding: 12px;
  }

  .toggle-card strong {
    font-size: 14px;
    line-height: 1.25;
  }

  .settings-preview-logo {
    width: 88px;
    height: 88px;
  }

  .settings-preview-qr {
    width: min(180px, 100%);
  }

  .settings-jump-panel {
    top: 78px;
    margin-bottom: 12px;
    padding: 10px;
    overflow: hidden;
  }

  .settings-jump-panel .tabbar {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0 -4px;
    padding: 0 4px 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .settings-jump-panel .tabbar a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .settings-quick-card {
    min-height: 0;
    gap: 6px;
    padding: 12px;
    overflow-wrap: anywhere;
  }

  .settings-quick-card strong {
    font-size: 13px;
    line-height: 1.25;
  }

  .settings-subsection-header {
    gap: 3px;
    padding: 10px 12px;
  }

  .settings-subsection-header strong {
    font-size: 13px;
    line-height: 1.25;
  }

  .settings-actions {
    padding: 10px;
  }

  .schedule-head,
  .schedule-cell {
    padding: 9px 10px;
  }

  .table-filters .input,
  .input-file-small,
  .input-note-small {
    width: 100%;
  }

  .drawer-action-menu,
  .drawer-checkbox-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .finder-hero {
    gap: 16px;
    margin-bottom: 20px;
    padding: 20px;
  }

  .finder-hero h1 {
    margin-bottom: 10px;
    font-size: 36px;
    line-height: 1.05;
  }

  .finder-hero p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
  }

  .finder-filter-bar {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .settings-actions-persistent {
    top: 116px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .settings-dirty-status {
    grid-column: 1 / -1;
    margin-right: 0;
  }

  .public-booking-backdrop .public-hero {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 10px 12px;
    padding: 14px;
  }

  .public-booking-backdrop .public-logo {
    width: 58px;
    height: 58px;
  }

  .public-booking-backdrop .public-logo img {
    width: 50px;
    height: 50px;
  }

  .public-booking-backdrop .public-hero h1 {
    margin-bottom: 4px;
    font-size: 24px;
    line-height: 1.05;
  }

  .public-booking-backdrop .public-hero .eyebrow,
  .public-booking-backdrop .public-contact-list {
    display: none;
  }

  .public-booking-backdrop .public-listing-status {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 11px;
  }

  .public-booking-backdrop .public-hero-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .public-booking-backdrop .public-hero-actions > * {
    min-height: 38px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .booking-help-launcher {
    top: 78px;
    right: 10px;
    bottom: auto;
    min-height: 38px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .wizard-progress-mobile {
    display: block;
  }

  .date-choice-shell {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 6px;
  }

  .date-choice-scroll {
    width: 36px;
    height: 36px;
  }

  .choice-card.date-choice {
    flex-basis: min(132px, 46vw);
  }

  .inactive-venue-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .inactive-venue-actions.inactive-venue-actions-icon-only {
    display: flex;
  }

  .settings-sidebar {
    top: 70px;
    margin-inline: -2px;
  }

  .settings-sidebar-nav a,
  .settings-sidebar-nav button {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .settings-sidebar-nav .icon {
    width: 16px;
    height: 16px;
  }

  .public-listing-media-grid,
  .schedule-copy-controls {
    grid-template-columns: 1fr;
  }

  .schedule-copy-picker summary,
  .schedule-copy-controls > .button {
    width: 100%;
  }

  .schedule-copy-menu {
    position: static;
    width: 100%;
    margin-top: 6px;
  }

  .venue-details-section {
    width: min(100% - 20px, 1180px);
  }

  .public-hero-actions,
  .booking-placeholder-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .public-hero-actions > * {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
  }

  .venue-details-section {
    gap: 14px;
    padding: 14px;
  }

  .venue-amenities-card {
    padding: 16px;
  }

  .venue-schedule-list > div,
  .venue-price-list > div {
    gap: 10px;
  }

  .venue-court-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .profile-option-field > div {
    grid-template-columns: 1fr;
  }

  .platform-resource-grid {
    grid-template-columns: 1fr;
  }

  .platform-resource-card {
    min-height: 94px;
    padding: 16px;
  }

  .platform-table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .platform-search-field,
  .platform-table-toolbar > select,
  .platform-table-toolbar .button {
    flex: none;
    width: 100%;
  }

  .platform-bulk-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .platform-selection-summary {
    margin-right: 0;
  }

  .platform-column-picker summary,
  .platform-bulk-toolbar > .button {
    width: 100%;
  }

  .platform-column-picker fieldset {
    position: static;
    margin-top: 8px;
  }

  .platform-data-table {
    min-width: 720px;
  }

  .platform-drawer-fields {
    grid-template-columns: 1fr;
  }

  .platform-drawer-fields > label,
  .platform-drawer-toggle {
    grid-column: auto;
  }

  .platform-danger-zone form {
    align-items: stretch;
    flex-direction: column;
  }

  .platform-test-email form {
    grid-template-columns: 1fr;
  }

  .platform-result-details {
    grid-template-columns: 1fr;
  }

  .platform-test-email .button {
    grid-column: auto;
    width: 100%;
  }

  .table-panel {
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .table-panel table,
  .table-panel thead,
  .table-panel tbody,
  .table-panel tr,
  .table-panel th,
  .table-panel td {
    display: block;
    width: 100%;
  }

  .table-panel thead {
    display: none;
  }

  .table-panel tbody {
    display: grid;
    gap: 14px;
  }

  .table-panel tr {
    padding: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .table-panel td {
    display: grid;
    grid-template-columns: minmax(88px, 0.7fr) minmax(0, 1.3fr);
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .table-panel td:last-child {
    border-bottom: 0;
  }

  .table-panel td[colspan] {
    display: block;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .venue-table-panel tr {
    display: grid;
    gap: 8px;
  }

  .venue-table-panel td {
    display: none;
  }

  .venue-table-panel td[data-mobile-field] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    border-bottom: 0;
  }

  .venue-table-panel td[data-mobile-field]::before {
    flex: 0 0 auto;
  }

  .venue-table-panel td[data-mobile-field="customer"] {
    display: block;
    font-size: 16px;
    font-weight: 800;
  }

  .venue-table-panel td[data-mobile-field="customer"]::before {
    display: none;
  }

  .venue-table-panel td[data-mobile-field="date"] {
    color: var(--muted);
    font-weight: 700;
  }

  .venue-table-panel td[data-mobile-field="status"] {
    justify-content: flex-start;
  }

  .venue-table-panel td[data-mobile-field="status"]::before {
    min-width: 54px;
  }

  .venue-table-panel td[colspan] {
    display: block;
  }

  .table-panel td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .schedule-table {
    grid-template-columns: 1fr;
  }

  .schedule-head {
    display: none;
  }

  h1,
  .page-heading h1,
  .public-hero h1 {
    font-size: 34px;
  }

  .venue-page-heading {
    gap: 12px;
    margin-bottom: 12px;
  }

  .venue-page-heading h1 {
    font-size: 30px;
    line-height: 1.05;
  }

  .venue-page-heading p {
    font-size: 13px;
  }

  .venue-page-heading .actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .venue-page-heading .button {
    min-width: 0;
    min-height: 38px;
    padding: 7px 6px;
    gap: 5px;
    font-size: 12px;
    white-space: nowrap;
  }

  .venue-dashboard-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
  }

  .venue-dashboard-metrics .metric {
    display: grid;
    align-content: center;
    min-height: 70px;
    padding: 10px 8px;
  }

  .venue-dashboard-metrics .metric span {
    font-size: 11px;
    line-height: 1.2;
  }

  .venue-dashboard-metrics .metric strong {
    margin-top: 4px;
    font-size: 24px;
  }

  .embed-generator-panel {
    gap: 12px;
    margin-top: 12px;
    padding: 14px;
  }

  .embed-generator-header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .embed-generator-header .button {
    width: 100%;
  }

  .embed-location-selector {
    grid-template-columns: 1fr;
  }

  .embed-location-selector .button {
    width: 100%;
  }

  .embed-generator-preview {
    padding: 10px;
  }

  .embed-code-output {
    min-height: 118px;
    font-size: 12px;
  }

  .venue-controls-panel {
    margin-bottom: 10px;
    padding: 10px;
  }

  .venue-controls-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .venue-controls-panel .tabbar {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0 -4px;
    padding: 0 4px 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .venue-controls-panel .tabbar a {
    flex: 0 0 auto;
    justify-content: center;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
    scroll-snap-align: start;
    text-align: center;
  }

  .venue-location-search {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .venue-location-count {
    grid-column: auto;
  }

  .venue-date-controls {
    display: grid;
    grid-template-columns: 34px minmax(62px, auto) minmax(0, 1fr) 34px;
    align-items: center;
    gap: 6px;
    width: 100%;
  }

  .venue-date-button {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 6px;
  }

  .venue-date-today {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 6px;
    font-size: 12px;
  }

  .venue-date-picker {
    min-width: 0;
    width: 100%;
  }

  .venue-date-picker label {
    width: 100%;
  }

  .venue-date-picker .input {
    width: 100%;
    min-height: 34px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .venue-calendar-panel {
    padding: 14px;
  }

  .venue-calendar-panel .panel-header {
    align-items: center;
    flex-direction: row;
  }

  .venue-court-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    overflow-x: auto;
  }

  .venue-court-tabs button {
    flex: 1 0 auto;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
  }

  .venue-court-tabs button[aria-pressed="true"] {
    border-color: var(--lime-dark);
    background: var(--lime);
  }

  .venue-timeline-scroll::after {
    width: 38px;
  }

  .venue-timeline-scroll {
    max-height: min(64vh, 560px);
  }

  .venue-timeline {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 6px;
    width: 100%;
    padding-bottom: 8px;
  }

  [data-venue-court-column]:not(.is-mobile-court-active) {
    display: none;
  }

  .venue-timeline-head,
  .venue-time-label,
  .court-cell {
    border-radius: 6px;
  }

  .venue-timeline-head:first-child,
  .venue-time-label {
    position: sticky;
    left: 0;
    z-index: 2;
    box-shadow: 8px 0 12px rgba(245, 251, 253, 0.92);
  }

  .venue-timeline-head:first-child {
    z-index: 3;
  }

  .venue-timeline-head {
    padding: 8px 7px;
    font-size: 11px;
  }

  .venue-time-label,
  .court-cell {
    min-height: 70px;
    padding: 8px;
  }

  .venue-time-label strong,
  .court-cell strong {
    font-size: 14px;
  }

  .venue-time-label span,
  .court-cell span {
    font-size: 11px;
  }

  .mobile-filter-panel {
    width: 100%;
  }

  .mobile-filter-summary {
    display: inline-flex;
    list-style: none;
  }

  .mobile-filter-panel[open] .mobile-filter-summary {
    margin-bottom: 10px;
  }

  .mobile-filter-panel .table-filters {
    display: grid;
    gap: 8px;
    width: 100%;
  }

  .inactive-copy-desktop {
    display: none;
  }

  .inactive-copy-mobile {
    display: inline;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .pricing-rule-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .wizard-step h2 {
    font-size: 30px;
    white-space: normal;
  }

  .choice-card,
  .choice-card.compact {
    min-height: 86px;
  }

  .booking-form > .button[type="submit"] {
    width: 100%;
  }

  .right-drawer {
    top: auto;
    right: 0;
    bottom: 0;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    gap: 14px;
    width: 100vw;
    height: auto;
    max-height: 82vh;
    padding: 16px;
    border-top: 1px solid var(--line);
    border-left: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -18px 48px rgba(7, 26, 44, 0.22);
    transform: translateY(100%);
  }

  .right-drawer.open {
    transform: translateY(0);
  }

  .drawer-header {
    position: sticky;
    top: -16px;
    z-index: 2;
    margin: -16px -16px 0;
    padding: 14px 16px 12px;
    border-radius: 16px 16px 0 0;
    background: #fff;
  }

  .drawer-header h2 {
    font-size: 20px;
    line-height: 1.15;
  }

  .drawer-action-menu {
    gap: 8px;
  }

  .drawer-action-menu .button {
    min-height: 42px;
  }

  .wizard-progress-labels {
    display: none;
  }

  .table-actions,
  .inline-upload-form,
  .note-form {
    width: 100%;
  }

  .slot-activity-card-header,
  .slot-activity-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .slot-activity-details {
    grid-template-columns: 1fr;
  }
}
