:root {
  --ink: #172026;
  --muted: #60707a;
  --line: #d7e0e4;
  --paper: #ffffff;
  --wash: #f4f8f7;
  --brand: #0b6b68;
  --brand-dark: #064b49;
  --accent: #c56f4a;
  --danger: #a73838;
  --free: #e7f6ef;
  --free-ink: #0d5d43;
  --booked: #f4d7cf;
  --booked-ink: #873922;
  --blocked: #e8e1f1;
  --blocked-ink: #553d70;
  --location: var(--brand);
  --location-dark: var(--brand-dark);
  --location-soft: #e7f6ef;
  --location-line: #9fd4c0;
  --shadow: 0 18px 50px rgba(23, 32, 38, 0.12);
}

.page-admin[data-location-tone="1"] {
  --location: #0b6b68;
  --location-dark: #064b49;
  --location-soft: #e7f6ef;
  --location-line: #95d3bd;
}

.page-admin[data-location-tone="2"] {
  --location: #335c96;
  --location-dark: #1f3d66;
  --location-soft: #e8f0fb;
  --location-line: #adc5ea;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--wash);
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.page-public {
  background:
    linear-gradient(135deg, rgba(11, 107, 104, 0.12), rgba(197, 111, 74, 0.08)),
    var(--wash);
}

.booking-shell,
.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px 14px;
}

.booking-panel,
.login-panel,
.admin-section,
.toolbar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.booking-panel {
  width: min(760px, 100%);
  padding: 24px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-dark);
  font-weight: 800;
}

.brand-link {
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.brand-link:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--brand);
  border-radius: 50%;
}

.intro h1,
.login-panel h1,
.admin-header h1 {
  margin: 18px 0 8px;
  font-size: clamp(2rem, 8vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.intro p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.08rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.step-indicator {
  border-bottom: 3px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  padding-bottom: 10px;
}

.step-indicator.is-active {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.step-view {
  display: none;
}

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

h2 {
  margin: 0 0 18px;
  font-size: 1.35rem;
}

.choice-grid,
.slots-grid {
  display: grid;
  gap: 10px;
}

.choice-button,
.slot-button,
.button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.choice-button {
  padding: 18px;
  text-align: left;
  background: #edf6f4;
  color: var(--brand-dark);
  border: 1px solid #bdd6d2;
}

.slot-button {
  background: #ffffff;
  border: 1px solid var(--brand);
  color: var(--brand-dark);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  background: var(--brand);
  color: #ffffff;
  text-decoration: none;
}

.button,
.icon-button,
.choice-pill,
.user-row {
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

.button:hover:not(:disabled),
.icon-button:hover:not(:disabled),
.choice-pill:hover:not(:disabled),
.user-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(23, 32, 38, 0.14);
  filter: brightness(1.02);
}

.button:active:not(:disabled),
.icon-button:active:not(:disabled),
.choice-pill:active:not(:disabled),
.user-row:active {
  transform: translateY(0);
  box-shadow: 0 5px 16px rgba(23, 32, 38, 0.12);
}

.button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button-secondary {
  background: var(--accent);
}

.button-muted {
  background: #e7eef0;
  color: var(--ink);
}

.button.is-active {
  background: var(--brand);
  color: #ffffff;
}

.icon-button {
  width: 46px;
  min-width: 46px;
  min-height: 46px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.button-danger {
  min-height: 36px;
  background: var(--danger);
  font-size: 0.88rem;
  white-space: nowrap;
}

.field-stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
}

.time-field {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--location) 25%, transparent);
  outline-offset: 2px;
}

.check-row {
  grid-template-columns: 22px 1fr;
  align-items: start;
  color: var(--ink);
  font-weight: 600;
}

.check-row input {
  min-height: auto;
  margin-top: 3px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.selected-summary,
.alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
}

.selected-summary {
  background: #edf6f4;
  color: var(--brand-dark);
  font-weight: 700;
}

.alert {
  background: #fff0ee;
  border: 1px solid #f0c4bd;
  color: #7f2d24;
}

.confirmation p {
  color: var(--muted);
  font-size: 1.05rem;
}

.page-public {
  --gold: #d2a728;
  --gold-light: #dfbc4a;
  --cream: #f5f0e6;
  --cream-dark: #e8dfcf;
  --public-brand: #0c1a18;
  --public-brand-soft: #163a35;
  --public-muted: #6e7c78;
  min-height: 100vh;
  background: var(--cream);
  color: var(--public-brand);
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, sans-serif;
}

.page-public .booking-shell {
  min-height: 100vh;
  padding: clamp(16px, 3vw, 40px);
  place-items: stretch;
}

.booking-experience {
  width: min(1180px, 100%);
  min-height: calc(100vh - clamp(32px, 6vw, 80px));
  margin: auto;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(12, 26, 24, 0.12);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(12, 26, 24, 0.16);
}

.booking-hero-panel {
  position: relative;
  min-height: 320px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(12, 26, 24, 0.92), rgba(16, 54, 49, 0.74)),
    var(--booking-hero-image, url("/ciksys2-assets/img/booking-hero.jpg")) center / cover;
  color: #ffffff;
}

.booking-hero-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(210, 167, 40, 0.45);
}

.booking-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  padding: clamp(28px, 6vw, 56px);
}

.booking-logo {
  color: #ffffff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.booking-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.booking-hero-panel h1,
.booking-panel-heading h2,
.step-heading h3,
.page-public .confirmation h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  letter-spacing: 0;
}

.booking-hero-panel h1 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(3.2rem, 10vw, 6.4rem);
  line-height: 0.94;
}

.booking-hero-panel p:not(.booking-kicker) {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.65;
}

.booking-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.booking-contact-row a {
  text-decoration: none;
}

.page-public .booking-panel {
  position: relative;
  width: 100%;
  display: grid;
  align-content: center;
  padding: clamp(24px, 5vw, 52px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.language-switch {
  position: absolute;
  top: clamp(18px, 3vw, 32px);
  right: clamp(18px, 3vw, 32px);
  min-width: 44px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(12, 26, 24, 0.12);
  border-radius: 999px;
  background: var(--cream);
  color: var(--public-brand);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.language-switch.is-static {
  position: static;
}

.booking-panel-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.booking-panel-heading h2 {
  margin: 0;
  color: var(--public-brand);
  font-size: clamp(2.25rem, 6vw, 3.8rem);
  line-height: 0.98;
}

.page-public .steps {
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--cream-dark);
}

.page-public .step-indicator {
  position: relative;
  border: 0;
  padding: 0 0 14px;
  color: rgba(12, 26, 24, 0.42);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-public .step-indicator::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
}

.page-public .step-indicator.is-active {
  color: var(--public-brand);
}

.page-public .step-indicator.is-active::after {
  background: var(--gold);
}

.step-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.step-heading h3 {
  margin: 0;
  color: var(--public-brand);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1;
}

.page-public .choice-grid,
.page-public .slots-grid {
  gap: 12px;
}

.page-public .choice-button,
.page-public .slot-button,
.page-public .choice-pill {
  border: 1px solid rgba(12, 26, 24, 0.12);
  border-radius: 16px;
  background: #ffffff;
  color: var(--public-brand);
  box-shadow: 0 1px 0 rgba(12, 26, 24, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.page-public .choice-button:hover,
.page-public .slot-button:hover,
.page-public .choice-pill:hover {
  border-color: rgba(210, 167, 40, 0.7);
  box-shadow: 0 14px 32px rgba(12, 26, 24, 0.08);
  transform: translateY(-1px);
}

.booking-service-option {
  min-height: 116px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
}

.booking-service-option span {
  display: grid;
  gap: 7px;
}

.booking-service-option strong {
  color: var(--public-brand);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
}

.booking-service-option small,
.page-public .choice-pill span,
.slot-button span {
  color: var(--public-muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
}

.page-public .choice-pill span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.booking-service-option em {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--public-brand-soft);
  font-style: normal;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

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

.page-public .choice-pill {
  min-height: 82px;
  padding: 14px 16px;
}

.page-public .booking-location-option {
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 14px 16px;
}

.booking-location-option img {
  width: 86px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(12, 26, 24, 0.1);
}

.booking-location-text {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-left: 4px;
}

.page-public .choice-pill strong {
  color: var(--public-brand);
  font-size: 1rem;
}

.page-public .choice-pill.is-active {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 8%, #ffffff);
  box-shadow: inset 0 0 0 1px var(--gold), 0 12px 30px rgba(12, 26, 24, 0.06);
  color: var(--public-brand);
}

.booking-date-picker {
  display: grid;
  gap: 12px;
}

.date-picker-bar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px auto;
  gap: 9px;
  align-items: center;
}

.date-picker-bar strong {
  color: var(--public-brand);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.date-nav-button,
.date-today-button {
  min-height: 44px;
  border: 1px solid rgba(12, 26, 24, 0.12);
  border-radius: 999px;
  background: var(--cream);
  color: var(--public-brand);
  cursor: pointer;
  font-weight: 800;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.date-nav-button {
  width: 44px;
  padding-bottom: 4px;
  font-size: 2rem;
  line-height: 1;
}

.date-today-button {
  padding: 0 14px;
  font-size: 0.82rem;
}

.date-nav-button:hover,
.date-today-button:hover {
  border-color: var(--gold);
  background: #ffffff;
  transform: translateY(-1px);
}

.date-nav-button:disabled {
  cursor: not-allowed;
  opacity: 0.36;
  transform: none;
}

.date-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(12, 26, 24, 0.08);
  border-radius: 18px;
  background: color-mix(in srgb, var(--cream) 70%, #ffffff);
}

.date-card {
  min-height: 86px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--public-brand);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.date-card span,
.date-card em {
  color: var(--public-muted);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.date-card strong {
  color: var(--public-brand);
  font-size: 1.45rem;
  line-height: 1;
}

.date-card.is-weekend span {
  color: #b66a69;
}

.date-card.is-today:not(.is-active) {
  background: rgba(255, 255, 255, 0.68);
}

.date-card.is-active {
  border-color: var(--gold);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--gold), 0 16px 36px rgba(12, 26, 24, 0.08);
  transform: translateY(-1px);
}

.date-card.is-active strong {
  color: var(--public-brand-soft);
}

.date-card:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

.available-times-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 22px;
}

.available-times-heading h4 {
  margin: 0;
  color: var(--public-brand);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1;
}

.available-times-heading span {
  color: var(--public-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.page-public label,
.page-public .choice-field {
  color: var(--public-muted);
}

.page-public input,
.page-public select {
  min-height: 54px;
  border-color: rgba(12, 26, 24, 0.14);
  border-radius: 14px;
  font-weight: 700;
}

.page-public input:focus,
.page-public select:focus,
.page-public button:focus-visible {
  outline: 3px solid rgba(210, 167, 40, 0.28);
}

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

.name-fields label span {
  color: rgba(110, 124, 120, 0.82);
  font-size: 0.8em;
}

.page-public .button {
  min-height: 54px;
  border-radius: 999px;
  background: var(--public-brand);
  font-weight: 700;
}

.page-public .button-secondary {
  background: var(--gold);
  color: #ffffff;
}

.page-public .button-secondary:hover,
.page-public .button:hover {
  filter: brightness(1.03);
}

.page-public .button-muted {
  background: var(--cream);
  color: var(--public-brand);
}

.page-public .slots-grid {
  margin-top: 18px;
}

.page-public .slot-button {
  min-height: 70px;
  padding: 12px 14px;
  display: grid;
  align-content: center;
  gap: 3px;
  text-align: center;
}

.page-public .slot-button strong {
  font-size: 0.98rem;
  color: var(--public-brand);
  white-space: nowrap;
}

.page-public .selected-summary {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(210, 167, 40, 0.36);
  border-radius: 16px;
  background: color-mix(in srgb, var(--gold) 9%, #ffffff);
  color: var(--public-brand);
}

.page-public .selected-summary strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
}

.page-public .selected-summary span,
.page-public .selected-summary small {
  color: var(--public-muted);
  font-weight: 600;
}

.confirmation-card {
  width: min(620px, 100%);
  margin: 0 auto 16px;
  padding: 14px;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(210, 167, 40, 0.34);
  border-radius: 18px;
  background: color-mix(in srgb, var(--gold) 7%, #ffffff);
  text-align: left;
}

.confirmation-card img {
  width: 104px;
  height: 82px;
  border-radius: 14px;
  object-fit: cover;
}

.confirmation-card-content {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.confirmation-card strong {
  color: var(--public-brand);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
}

.confirmation-card span,
.confirmation-card small {
  color: var(--public-muted);
  font-weight: 700;
  line-height: 1.35;
}

.confirmation-card a {
  width: max-content;
  color: var(--public-brand-soft);
  font-size: 0.86rem;
  font-weight: 900;
}

.calendar-add-links {
  justify-content: center;
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.calendar-add-links a {
  padding: 5px 9px;
  border: 1px solid rgba(12, 26, 24, 0.12);
  border-radius: 999px;
  background: #ffffff;
  text-decoration: none;
}

.confirmation-email {
  max-width: 620px;
  margin: 0 auto 22px;
  color: var(--public-muted);
  font-weight: 700;
  text-align: center;
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.page-public[data-booking-step="done"] .confirmation {
  padding-top: clamp(56px, 8vh, 88px);
}

.page-public[data-booking-step="done"] .confirmation h2 {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
}

.page-public[data-booking-step="done"] .confirmation-card {
  margin-bottom: 24px;
}

.page-public[data-booking-step="done"] .confirmation-email {
  margin-bottom: 30px;
}

.page-public[data-booking-step="done"] .booking-info-note {
  margin-top: 46px;
  padding-top: 20px;
}

.page-public[data-booking-step="done"] .booking-info-note p {
  display: none;
}

.page-public[data-booking-step="2"] .booking-info-note p,
.page-public[data-booking-step="3"] .booking-info-note p {
  display: none;
}

.page-public[data-booking-step="done"] .booking-info-meta {
  max-width: 620px;
  margin: 0 auto;
}

.booking-info-note {
  margin-top: 30px;
  padding: 20px 0 0;
  border-top: 1px solid var(--cream-dark);
  color: var(--public-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.booking-info-note p {
  margin: 0;
}

.booking-info-note p + p {
  margin-top: 10px;
}

.booking-info-meta {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  color: var(--public-brand);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.page-public .check-row {
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(12, 26, 24, 0.1);
  border-radius: 14px;
  background: var(--cream);
}

.page-public .check-row input {
  width: 24px;
  height: 24px;
  min-height: 0;
  margin: 0;
}

.page-public .check-row span {
  line-height: 1.4;
}

.page-public .check-row a {
  color: var(--public-brand);
  font-weight: 800;
}

.page-public .form-actions {
  justify-content: space-between;
  margin-top: 20px;
}

.page-public .alert {
  border-color: #efc7bd;
  border-radius: 14px;
}

.page-public .confirmation {
  text-align: center;
}

.page-public[data-booking-step="done"] .booking-panel-heading,
.page-public[data-booking-step="done"] .steps {
  display: none;
}

.page-public .confirmation h2 {
  margin-bottom: 18px;
  color: var(--public-brand);
  font-size: clamp(2.2rem, 4.8vw, 3.25rem);
  line-height: 1.02;
}

.confirmation-actions .button-secondary {
  background: var(--cream);
  color: var(--public-brand);
}

.terms-shell {
  min-height: 100vh;
  padding: clamp(18px, 4vw, 48px);
}

.terms-panel {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid rgba(12, 26, 24, 0.12);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(12, 26, 24, 0.12);
}

.terms-back-link {
  color: var(--public-brand);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.terms-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.settings-card {
  width: min(980px, calc(100vw - 28px));
}

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

.settings-form section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.settings-form h3 {
  margin: 0;
  font-size: 1rem;
}

.settings-form textarea {
  min-height: 180px;
  resize: vertical;
  font: inherit;
}

.terms-panel h1,
.terms-panel h2 {
  color: var(--public-brand);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

.terms-panel h1 {
  max-width: 720px;
  margin: 8px 0 18px;
  font-size: clamp(3rem, 9vw, 5.2rem);
  line-height: 0.95;
}

.terms-lead {
  max-width: 760px;
  margin: 0 0 30px;
  color: var(--public-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.terms-panel section {
  padding: 22px 0;
  border-top: 1px solid var(--cream-dark);
}

.terms-panel h2 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  line-height: 1.05;
}

.terms-panel p {
  margin: 0;
  color: var(--public-muted);
  line-height: 1.72;
}

.terms-panel p + p {
  margin-top: 10px;
}

.login-panel {
  width: min(420px, 100%);
  padding: 24px;
}

.login-panel h1 {
  font-size: 2rem;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(14px, 4vw, 30px);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.admin-header h1 {
  margin: 0;
  font-size: 1.65rem;
}

.admin-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

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

.admin-layout {
  display: grid;
  gap: 14px;
  padding: clamp(12px, 3vw, 24px);
}

.toolbar {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.admin-toolbar {
  align-items: end;
}

.choice-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.choice-field > span {
  display: block;
}

.choice-field-tight {
  gap: 8px;
}

.segmented-control,
.quick-choice-grid {
  display: grid;
  gap: 8px;
}

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

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

.choice-pill {
  min-height: 46px;
  padding: 9px 10px;
  display: grid;
  align-content: center;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.choice-pill strong,
.choice-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.choice-pill strong {
  font-size: 0.88rem;
  line-height: 1.1;
}

.choice-pill span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.1;
}

.choice-pill.is-active {
  border-color: var(--location);
  background: var(--location-soft);
  box-shadow: inset 0 0 0 2px var(--location);
  color: var(--location-dark);
}

.choice-pill.is-active span {
  color: var(--location-dark);
}

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

.admin-section {
  min-width: 0;
  padding: 16px;
}

.admin-workspace {
  display: grid;
  gap: 14px;
}

.calendar-panel {
  position: relative;
  min-width: 0;
  border-top: 4px solid var(--location);
}

.admin-sidepanel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.quick-booking-panel,
.block-details {
  box-shadow: var(--shadow);
}

.panel-hint {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

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


.block-details summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-size: 1.05rem;
  font-weight: 900;
}

.block-details form {
  margin-top: 14px;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin-bottom: 4px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.calendar-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
}

.date-stepper {
  display: grid;
  grid-template-columns: 46px minmax(148px, 180px) 46px;
  gap: 6px;
  align-items: end;
}

.date-field {
  gap: 0;
}

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

.date-field input {
  min-height: 46px;
  font-weight: 800;
}

.compact-action {
  min-height: 46px;
  padding: 0 16px;
}

.filter-menu {
  position: relative;
}

.filter-panel {
  position: absolute;
  top: calc(100% + 44px);
  right: 0;
  z-index: 10;
  width: min(300px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calendar-legend i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.legend-free {
  background: var(--free);
  border: 1px solid #a9d9c4;
}

.legend-booked {
  background: var(--booked);
  border: 1px solid #dfa594;
}

.legend-blocked {
  background: var(--blocked);
  border: 1px solid #c6b6dc;
}

.legend-closed {
  background: #f2f5f6;
  border: 1px solid #ccd7dc;
}

.week-calendar {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  max-height: 72vh;
}

.calendar-grid {
  display: grid;
  grid-template-columns: 62px repeat(var(--calendar-days, 5), minmax(126px, 1fr));
  grid-auto-rows: minmax(40px, auto);
  min-width: 720px;
}

.calendar-head,
.calendar-time,
.calendar-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calendar-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 44px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 6px;
  background: #f7faf9;
  color: var(--muted);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 900;
}

.calendar-head strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.calendar-head select {
  width: 100%;
  margin-top: 4px;
  padding: 6px 8px;
  font-size: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

.calendar-head.is-today {
  background: var(--location-soft);
  box-shadow: inset 4px 0 0 var(--location), inset -4px 0 0 var(--location), inset 0 3px 0 var(--location);
  color: var(--location-dark);
}

.calendar-time-head,
.calendar-time {
  position: sticky;
  left: 0;
  z-index: 3;
  border-right-color: #c4d1d7;
}

.calendar-time {
  min-height: 40px;
  padding: 8px 6px;
  background: #f7faf9;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.calendar-cell {
  position: relative;
  min-height: 40px;
  padding: 4px 6px;
  display: grid;
  align-content: start;
  gap: 2px;
  border-top: 0;
  border-left: 0;
  background: #f7faf9;
  color: var(--muted);
  text-align: left;
  cursor: default;
}

.calendar-time.row-hour,
.calendar-cell.row-hour {
  border-bottom-style: dashed;
  border-bottom-color: #c8d3d8;
}

.calendar-time.row-half,
.calendar-cell.row-half {
  border-bottom-color: #d5e0e4;
}

.calendar-cell strong,
.calendar-cell span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-cell strong {
  font-size: 0.75rem;
  line-height: 1.15;
}

.calendar-cell span {
  font-size: 0.68rem;
  line-height: 1.15;
}

.calendar-cell.status-free {
  background: #fbfefd;
  color: var(--free-ink);
  cursor: pointer;
}

.calendar-cell.status-free::after {
  content: "+";
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  justify-self: end;
  align-self: center;
  border: 1px solid var(--location-line);
  border-radius: 999px;
  color: var(--location);
  font-weight: 900;
  opacity: 0;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.calendar-cell.status-free:hover,
.calendar-cell.status-free.is-selected,
.calendar-cell.status-free.is-pending {
  background: var(--location-soft);
  box-shadow: inset 0 0 0 2px var(--location);
}

.calendar-cell.status-free:hover::after,
.calendar-cell.status-free.is-selected::after,
.calendar-cell.status-free.is-pending::after {
  opacity: 1;
  transform: scale(1.02);
}

.calendar-cell.status-free.is-pending {
  background: color-mix(in srgb, var(--location-soft) 72%, #ffffff);
  color: var(--location-dark);
  box-shadow: inset 0 0 0 2px var(--location), inset 4px 0 0 var(--location);
  z-index: 2;
}

.calendar-cell.status-booked {
  background: var(--booked);
  color: var(--booked-ink);
  box-shadow: inset 4px 0 0 var(--accent);
  z-index: 1;
}

.calendar-cell.status-booked:hover,
.calendar-cell.status-booked:focus-visible {
  z-index: 12;
  box-shadow: inset 4px 0 0 var(--accent), 0 8px 24px rgba(23, 32, 38, 0.16);
}

.calendar-booking-tooltip {
  position: absolute;
  left: 10px;
  bottom: calc(100% + 8px);
  z-index: 30;
  min-width: 230px;
  max-width: 320px;
  display: none;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
}

.calendar-booking-tooltip span {
  display: block;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.calendar-cell.status-booked:hover .calendar-booking-tooltip,
.calendar-cell.status-booked:focus-visible .calendar-booking-tooltip {
  display: grid;
}

.calendar-cell.is-today {
  border-left: 3px solid var(--location);
  border-right: 3px solid var(--location);
}

.calendar-cell.is-today.status-free {
  background: color-mix(in srgb, var(--location-soft) 62%, #ffffff);
}

.calendar-cell.status-blocked {
  background: var(--blocked);
  color: var(--blocked-ink);
  box-shadow: inset 4px 0 0 #8b6bb1;
  z-index: 1;
}

.calendar-cell.status-closed,
.calendar-cell.status-unavailable {
  background:
    repeating-linear-gradient(-45deg, rgba(96, 112, 122, 0.08), rgba(96, 112, 122, 0.08) 6px, transparent 6px, transparent 12px),
    #f2f5f6;
  color: #9aabb4;
}

.booking-table {
  min-width: 0;
  display: grid;
  gap: 12px;
  overflow-x: auto;
}

.booking-day-group {
  display: grid;
  gap: 8px;
}

.booking-day-group + .booking-day-group {
  padding-top: 12px;
  border-top: 3px solid var(--location);
}

.booking-day-group h3 {
  margin: 0;
  color: var(--location-dark);
  font-size: 0.98rem;
}

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

.booking-item {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(150px, 1fr) minmax(280px, 1.8fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px 10px;
}

.booking-item.status-cancelled {
  color: var(--muted);
  background: #f5f5f5;
}

.booking-time {
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

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

.booking-main {
  display: grid;
  gap: 2px;
}

.booking-main strong,
.booking-main span,
.booking-details span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-main span,
.booking-details {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.booking-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
}

.booking-details span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: #a6b3b9;
}

.booking-action {
  display: flex;
  justify-content: end;
}

.booking-hover-details {
  position: absolute;
  left: 170px;
  top: calc(100% - 4px);
  z-index: 20;
  display: none;
  gap: 6px;
  min-width: 260px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.booking-hover-details span {
  display: block;
}

.booking-item:hover .booking-hover-details,
.booking-item:focus-within .booking-hover-details {
  display: grid;
}

.user-admin-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: start center;
  padding: 72px 16px 16px;
  background: rgba(23, 32, 38, 0.32);
  overflow: auto;
}

.user-admin-panel[hidden] {
  display: none;
}

.user-admin-card {
  width: min(920px, 100%);
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.user-admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.user-admin-heading h2 {
  margin: 0;
}

.user-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 150px minmax(180px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.user-form-actions {
  display: flex;
  gap: 8px;
}

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

.user-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.user-row > span:first-child {
  display: grid;
  gap: 2px;
}

.user-row small,
.user-state {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.user-row.is-inactive {
  background: #f4f6f7;
  color: var(--muted);
}

.stats-layout {
  gap: 16px;
}

.stats-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.stats-toolbar h2,
.stats-toolbar p {
  margin: 0;
}

.stats-toolbar p {
  color: var(--muted);
  font-weight: 800;
}

.stats-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.stats-actions .is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.stats-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.stats-kpi {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.stats-kpi strong {
  color: var(--brand-dark);
  font-size: 2rem;
  line-height: 1;
}

.stats-kpi span {
  font-weight: 900;
}

.stats-kpi small {
  color: var(--muted);
  font-weight: 800;
}

.stats-grid {
  display: grid;
  gap: 14px;
}

.stats-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
}

.stats-chart {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.stats-column-shell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  min-height: 300px;
}

.stats-column-shell.is-compact {
  min-height: 210px;
}

.stats-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 98px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: right;
}

.stats-column-scroll {
  min-width: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}

.stats-column-plot {
  position: relative;
  min-width: max(100%, calc(var(--stats-columns, 12) * var(--stats-min-column, 24px)));
  height: 100%;
  display: grid;
  grid-template-columns: repeat(var(--stats-columns, 12), minmax(var(--stats-min-column, 24px), 1fr));
  align-items: end;
  gap: 8px;
  padding: 4px 8px 48px;
}

.stats-column-grid {
  position: absolute;
  inset: 24px 8px 98px;
  pointer-events: none;
}

.stats-column-grid span {
  position: absolute;
  right: 0;
  left: 0;
  border-top: 1px solid #dfe7ea;
}

.stats-column-item {
  position: relative;
  z-index: 1;
  height: 100%;
  min-width: 0;
  display: grid;
  grid-template-rows: 20px minmax(0, 1fr) 50px;
  justify-items: center;
  align-items: end;
}

.stats-column-item.is-today::before {
  content: "";
  position: absolute;
  inset: 18px 0 44px;
  z-index: -1;
  border: 3px solid rgba(197, 111, 74, 0.58);
  border-radius: 8px;
  background: rgba(197, 111, 74, 0.06);
}

.stats-column-value {
  min-height: 18px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.stats-column-stack {
  width: min(32px, 72%);
  min-height: 0;
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
  background: transparent;
}

.stats-column-segment {
  width: 100%;
  min-height: 3px;
}

.stats-column-label {
  box-sizing: border-box;
  width: 100%;
  height: 50px;
  display: block;
  padding-top: 10px;
  overflow: visible;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  white-space: pre-line;
}

.stats-column-months {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  display: grid;
  grid-template-columns: repeat(var(--stats-columns, 12), minmax(var(--stats-min-column, 24px), 1fr));
  gap: 8px;
  pointer-events: none;
}

.stats-column-month {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-column-shell.is-compact .stats-column-plot {
  min-width: 100%;
  gap: 5px;
}

.stats-column-shell.is-compact .stats-column-label {
  height: 46px;
  padding-top: 9px;
  font-size: 0.68rem;
}

.stats-column-shell.is-compact .stats-column-months {
  gap: 5px;
}

.stats-column-shell.is-compact .stats-column-month {
  font-size: 0.66rem;
}

.stats-column-shell.is-compact .stats-column-stack {
  width: min(22px, 78%);
}

.stats-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.stats-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.stats-rank-list {
  display: grid;
  gap: 9px;
}

.stats-rank-track {
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf3f4;
}

.stats-rank-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.85fr) minmax(0, 1fr) 34px;
  gap: 9px;
  align-items: center;
}

.stats-rank-row > span:first-child {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-rank-row strong {
  text-align: right;
}

.stats-rank-track span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
}

.stats-pie-chart {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.stats-pie {
  width: min(220px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
}

.stats-pie span {
  width: 44%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--brand-dark);
  font-size: 1.5rem;
  font-weight: 900;
}

.stats-pie-legend {
  display: grid;
  gap: 10px;
}

.stats-pie-legend span {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

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

.stats-pie-legend strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-pie-legend em {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.stats-tone-1 {
  background: #0b6b68;
}

.stats-tone-2 {
  background: #335c96;
}

.stats-tone-3 {
  background: #c56f4a;
}

.stats-tone-4 {
  background: #7a5da8;
}

.audit-layout {
  gap: 16px;
}

.audit-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.audit-toolbar h2,
.audit-toolbar p {
  margin: 0;
}

.audit-toolbar p {
  color: var(--muted);
  font-weight: 800;
}

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

.audit-date-field {
  width: 172px;
  gap: 4px;
}

.audit-date-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.audit-panel {
  display: grid;
  gap: 12px;
}

.audit-table-wrap {
  max-height: calc(100vh - 260px);
  min-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.audit-table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

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

.audit-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f7faf9;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.audit-table tbody tr:hover {
  background: color-mix(in srgb, var(--brand) 5%, #ffffff);
}

.audit-time,
.audit-ip {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.audit-action {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e7eef0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.audit-action-auth-login-success,
.audit-action-booking-created,
.audit-action-user-created {
  background: var(--free);
  color: var(--free-ink);
}

.audit-action-auth-login-failed,
.audit-action-booking-cancelled {
  background: var(--booked);
  color: var(--booked-ink);
}

.audit-action-slot-blocked,
.audit-action-settings-updated,
.audit-action-user-updated {
  background: var(--blocked);
  color: var(--blocked-ink);
}

.audit-detail {
  max-width: 420px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: pre-line;
}

.audit-empty {
  height: 160px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
  vertical-align: middle;
}

.audit-footer {
  display: flex;
  justify-content: center;
}

.admin-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 720px) {
  .booking-panel {
    padding: 34px;
  }

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

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

  .toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .section-heading {
    grid-template-columns: minmax(160px, max-content) minmax(280px, 1fr);
    align-items: center;
  }

  .calendar-tools {
    justify-content: end;
  }

  .calendar-legend {
    justify-content: end;
  }

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

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

  .stats-panel-wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .booking-experience {
    grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr);
  }

  .page-public[data-booking-step="2"] .booking-experience,
  .page-public[data-booking-step="3"] .booking-experience {
    grid-template-columns: minmax(250px, 0.46fr) minmax(680px, 1.54fr);
  }

  .page-public[data-booking-step="done"] .booking-experience {
    grid-template-columns: minmax(390px, 0.82fr) minmax(620px, 1.18fr);
  }

  .booking-hero-panel {
    min-height: auto;
  }

  .page-public .booking-panel {
    min-height: 720px;
  }

  .page-public[data-booking-step="2"] .booking-panel,
  .page-public[data-booking-step="3"] .booking-panel,
  .page-public[data-booking-step="done"] .booking-panel {
    min-height: auto;
    align-content: start;
    padding: clamp(28px, 3.4vw, 42px);
  }

  .page-public[data-booking-step="2"] .booking-hero-content,
  .page-public[data-booking-step="3"] .booking-hero-content {
    gap: 12px;
    padding: clamp(26px, 3vw, 38px);
  }

  .page-public[data-booking-step="2"] .booking-hero-panel h1,
  .page-public[data-booking-step="3"] .booking-hero-panel h1 {
    display: none;
  }

  .page-public[data-booking-step="2"] .booking-hero-panel p:not(.booking-kicker),
  .page-public[data-booking-step="3"] .booking-hero-panel p:not(.booking-kicker) {
    display: none;
  }

  .page-public[data-booking-step="done"] .booking-panel-heading,
  .page-public[data-booking-step="done"] .steps {
    display: none;
  }

  .page-public[data-booking-step="done"] .booking-hero-panel h1 {
    font-size: clamp(3.6rem, 7.6vw, 5.8rem);
  }

  .page-public[data-booking-step="2"] .booking-panel-heading,
  .page-public[data-booking-step="3"] .booking-panel-heading {
    margin-bottom: 18px;
  }

  .page-public[data-booking-step="2"] .booking-panel-heading h2,
  .page-public[data-booking-step="3"] .booking-panel-heading h2 {
    font-size: clamp(2.35rem, 4vw, 3.2rem);
  }

  .page-public[data-booking-step="2"] .steps,
  .page-public[data-booking-step="3"] .steps {
    margin-bottom: 20px;
  }

  .page-public[data-booking-step="2"] .step-heading,
  .page-public[data-booking-step="3"] .step-heading {
    margin-bottom: 14px;
  }

  .page-public[data-booking-step="2"] .step-heading h3,
  .page-public[data-booking-step="3"] .step-heading h3 {
    font-size: clamp(2rem, 3.3vw, 2.45rem);
  }

  .page-public[data-booking-step="2"] .choice-field {
    gap: 8px;
  }

  .page-public[data-booking-step="2"] .choice-pill {
    min-height: 76px;
  }

  .page-public[data-booking-step="2"] .date-strip {
    padding: 8px;
  }

  .page-public[data-booking-step="2"] .date-card {
    min-height: 72px;
  }

  .page-public[data-booking-step="2"] .available-times-heading {
    margin-top: 16px;
  }

  .page-public[data-booking-step="2"] .slots-grid {
    margin-top: 12px;
  }

  .page-public[data-booking-step="2"] .slot-button {
    min-height: 58px;
  }
}

@media (min-width: 1120px) {
  .toolbar {
    grid-template-columns: minmax(150px, 0.7fr) minmax(300px, 1.15fr) minmax(320px, 1.2fr) minmax(280px, auto) auto;
  }

  .admin-workspace {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }

  .admin-sidepanel {
    position: sticky;
    top: 14px;
  }

  .booking-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .booking-day-group + .booking-day-group {
    padding-top: 0;
    padding-left: 14px;
    border-top: 0;
    border-left: 3px solid var(--location);
  }

  .booking-item {
    grid-template-columns: 96px minmax(130px, 0.9fr) minmax(180px, 1.1fr) auto;
  }

  .section-heading {
    grid-template-columns: minmax(220px, max-content) minmax(0, 1fr);
  }

  .calendar-tools {
    justify-content: end;
  }

  .calendar-legend {
    justify-content: end;
  }
}

@media (max-width: 719px) {
  .compact-fields,
  .week-actions {
    grid-template-columns: 1fr;
  }

  .calendar-tools,
  .date-stepper {
    width: 100%;
  }

  .date-stepper {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
  }

  .compact-action {
    flex: 1 1 120px;
  }

  .filter-menu {
    position: static;
    flex: 0 0 46px;
  }

  .filter-panel {
    top: 218px;
    right: 16px;
    left: 16px;
    width: auto;
    grid-template-columns: 1fr;
  }

  .booking-item {
    grid-template-columns: 1fr auto;
  }

  .booking-time,
  .booking-main,
  .booking-details {
    grid-column: 1 / -1;
  }

  .booking-action {
    grid-column: 2;
    grid-row: 1;
  }

  .booking-hover-details {
    left: 10px;
    right: 10px;
    min-width: 0;
  }

  .admin-header {
    align-items: flex-start;
  }

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

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

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

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

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

  .stats-actions {
    justify-content: stretch;
  }

  .audit-actions {
    justify-content: stretch;
  }

  .audit-date-field {
    width: 100%;
  }

  .stats-actions .button,
  .audit-actions .button {
    flex: 1 1 120px;
  }

  .audit-table-wrap {
    max-height: calc(100vh - 330px);
    min-height: 320px;
  }

  .stats-bar-row,
  .stats-rank-row {
    grid-template-columns: 54px minmax(0, 1fr) 30px;
  }

  .stats-pie-chart {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .stats-pie-legend {
    width: 100%;
  }
}

@media (max-width: 959px) {
  .booking-experience {
    border-radius: 18px;
  }

  .booking-hero-panel {
    min-height: 380px;
  }

  .booking-hero-content {
    padding-bottom: 34px;
  }
}

@media (max-width: 719px) {
  .page-public .booking-shell {
    padding: 0;
  }

  .booking-experience {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .booking-hero-panel {
    min-height: 190px;
  }

  .booking-hero-panel h1,
  .booking-hero-panel p:not(.booking-kicker),
  .booking-contact-row {
    display: none;
  }

  .page-public .booking-panel {
    padding: 26px 18px 32px;
  }

  .booking-panel-heading h2 {
    font-size: 2.45rem;
  }

  .page-public .steps {
    display: none;
  }

  .booking-service-option {
    min-height: 104px;
    padding: 18px;
  }

  .booking-service-option strong {
    font-size: 1.45rem;
  }

  .name-fields {
    grid-template-columns: 1fr;
  }

  .page-public .booking-location-option {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 24px;
    padding: 10px;
  }

  .booking-location-option img {
    width: 68px;
    height: 58px;
  }

  .confirmation-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .confirmation-card img {
    width: 100%;
    height: 150px;
  }

  .confirmation-card a {
    justify-self: center;
  }

  .confirmation-actions {
    display: grid;
  }

  .page-public .quick-choice-grid,
  .page-public .form-actions {
    grid-template-columns: 1fr;
  }

  .date-picker-bar {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .date-today-button {
    grid-column: 1 / -1;
    min-height: 36px;
    justify-self: center;
  }

  .date-strip {
    gap: 5px;
    padding: 7px;
    border-radius: 16px;
  }

  .date-card {
    min-height: 70px;
    border-radius: 12px;
  }

  .date-card span,
  .date-card em {
    font-size: 0.58rem;
  }

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

  .page-public .form-actions {
    display: grid;
  }

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