/* Booking + admin — extends Fade King site tokens */

.book-page,
.admin-page {
  min-height: 100svh;
  padding: calc(var(--header-h) + 1.5rem) var(--space) 7rem;
  background: var(--paper);
}

.book-wrap,
.admin-wrap {
  width: min(100%, 720px);
  margin: 0 auto;
}

.book-wrap.wide,
.admin-wrap {
  width: min(100%, 900px);
}

.book-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.6rem;
}

.book-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  line-height: 1.1;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
}

.steps span {
  color: var(--mute);
}

.steps span.is-active {
  color: var(--copper);
}

.steps span.is-done {
  color: var(--ink);
}

.panel {
  display: none;
}

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

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.service-item input {
  accent-color: var(--copper);
  width: 1.1rem;
  height: 1.1rem;
}

.service-item.is-selected .service-name {
  color: var(--copper-deep);
}

.service-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-meta {
  color: var(--mute);
  font-size: 0.92rem;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cal-head h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
}

.icon-btn {
  appearance: none;
  border: 1.5px solid var(--ink);
  background: transparent;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
}

.icon-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.cal-dow {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--mute);
  padding: 0.25rem 0;
}

.cal-day {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  min-height: 2.75rem;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}

.cal-day:disabled {
  color: #b7b2aa;
  cursor: not-allowed;
}

.cal-day.is-available {
  border-color: var(--line);
  background: #fff;
}

.cal-day.is-selected {
  background: var(--copper);
  color: #fff;
  border-color: var(--copper);
}

.slot-label {
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.slot-chip {
  appearance: none;
  border: 1.5px solid rgba(20, 20, 20, 0.35);
  background: transparent;
  padding: 0.7rem 0.95rem;
  min-height: 2.75rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.slot-chip.is-selected {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.brand-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.brand-logo-field {
  display: grid;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.5);
}

.brand-logo-preview {
  width: 100%;
  height: 5.5rem;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(20, 20, 20, 0.1);
  padding: 0.4rem;
}

.brand-logo-preview-dark {
  background: #141414;
}

@media (max-width: 800px) {
  .brand-logos {
    grid-template-columns: 1fr;
  }
}

.book-privacy-note {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--mute, #6b6760);
}

.book-privacy-note a {
  color: var(--copper-deep, #6f4a24);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.privacy-page {
  padding-bottom: 3rem;
}

.privacy-wrap {
  width: min(100%, 640px);
}

.privacy-updated {
  margin: -0.75rem 0 0.85rem;
  font-size: 0.85rem;
  color: var(--mute, #6b6760);
}

.privacy-demo-note {
  margin: 0 0 1.75rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--copper, #8f6234);
  background: rgba(143, 98, 52, 0.08);
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(20, 20, 20, 0.78);
}

.privacy-body {
  display: grid;
  gap: 1.5rem;
}

.privacy-body section h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.privacy-body section p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(20, 20, 20, 0.78);
}

.privacy-body a {
  color: var(--copper-deep, #6f4a24);
}

.privacy-back {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 2.25rem 0 0;
}

.form-grid {
  display: grid;
  gap: 1.1rem;
}

.captcha-field {
  margin-top: 0.25rem;
}

.captcha-field .cf-turnstile {
  min-height: 65px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1.5px solid rgba(20, 20, 20, 0.25);
  background: transparent;
  padding: 0.65rem 0;
  font: inherit;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--copper);
}

.summary {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.summary strong {
  color: var(--ink);
}

.sticky-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem var(--space) calc(0.85rem + env(safe-area-inset-bottom));
  background: rgba(235, 232, 227, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  z-index: 40;
}

.sticky-actions .btn {
  min-width: 8rem;
}

.done-box {
  padding: 1.5rem 0;
}

.done-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 0.75rem;
}

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

.error-banner {
  display: none;
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #b33;
  color: #8a1f1f;
  background: #fff5f5;
  font-size: 0.92rem;
}

.error-banner.is-on {
  display: block;
}

/* ── Admin gate (login) ───────────────────────────────── */
.admin-body {
  margin: 0;
  min-height: 100svh;
  background: #141414;
}

.admin-gate {
  min-height: 100svh;
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.admin-gate.is-shown {
  display: grid;
}

.admin-gate-brand {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(ellipse 70% 60% at 30% 20%, rgba(184, 115, 51, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 90%, rgba(184, 115, 51, 0.12), transparent 55%),
    linear-gradient(160deg, #1a1714 0%, #0e0e0e 55%, #14110e 100%);
  color: #f3f1ec;
  overflow: hidden;
}

.admin-gate-grain {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.admin-gate-brand-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: adminGateIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.admin-gate-mark {
  width: clamp(110px, 18vw, 168px);
  height: auto;
  margin: 0 auto 1.4rem;
  filter: invert(1);
  display: block;
}

.admin-gate-wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.admin-gate-tag {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 241, 236, 0.55);
}

.admin-gate-form {
  display: grid;
  place-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  background:
    linear-gradient(180deg, #f4f1eb 0%, #e7e2d9 100%);
}

.admin-gate-form-inner {
  width: min(100%, 380px);
  animation: adminGateIn 0.7s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.admin-gate-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-deep, #8a5528);
}

.admin-gate-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #141414;
}

.admin-gate-lead {
  margin: 0.7rem 0 1.75rem;
  color: rgba(20, 20, 20, 0.55);
  font-size: 0.98rem;
  line-height: 1.45;
}

.admin-auth {
  display: grid;
  gap: 1rem;
}

.admin-auth-field {
  display: grid;
  gap: 0.4rem;
}

.admin-auth-field span {
  font-size: 0.82rem;
  font-weight: 650;
  color: #141414;
}

.admin-auth-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid rgba(20, 20, 20, 0.18);
  background: #fff;
  padding: 0.85rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  color: #141414;
  border-radius: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-auth-field input:hover {
  border-color: rgba(20, 20, 20, 0.35);
}

.admin-auth-field input:focus {
  outline: none;
  border-color: var(--copper, #b87333);
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.18);
}

.admin-auth-error {
  display: none;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid #c44;
  background: #fff5f5;
  color: #8a1f1f;
  font-size: 0.9rem;
}

.admin-auth-error.is-on {
  display: block;
}

.admin-auth-submit {
  appearance: none;
  border: 0;
  margin-top: 0.35rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  background: #141414;
  color: #f3f1ec;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.admin-auth-submit:hover:not(:disabled) {
  background: var(--copper-deep, #8a5528);
  transform: translateY(-1px);
}

.admin-auth-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.admin-auth-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--copper-deep, #6f4a24);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85rem 0 0;
  cursor: pointer;
  text-align: left;
  display: inline-block;
}

.admin-auth-link:hover {
  text-decoration: underline;
}

.admin-auth-ok {
  display: none;
  margin: 0;
  color: #2f6b3a;
  font-size: 0.92rem;
  font-weight: 600;
}

.admin-auth-ok.is-on {
  display: block;
}

#otpCode {
  letter-spacing: 0.35em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.admin-gate-back {
  display: inline-block;
  margin-top: 1.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(20, 20, 20, 0.5);
  text-decoration: none;
}

.admin-gate-back:hover {
  color: #141414;
}

@keyframes adminGateIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .admin-gate {
    grid-template-columns: 1fr;
  }

  .admin-gate-brand {
    min-height: 38svh;
    padding: 2.5rem 1.5rem 2rem;
  }

  .admin-gate-mark {
    width: 88px;
    margin-bottom: 0.9rem;
  }

  .admin-gate-wordmark {
    font-size: 1.7rem;
  }

  .admin-gate-form {
    min-height: 62svh;
    align-content: start;
    padding-top: 2.25rem;
  }
}

/* ── Admin shell (authenticated) ──────────────────────── */
.admin-body.is-authed {
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(184, 115, 51, 0.12), transparent 55%),
    linear-gradient(165deg, #ebe8e3 0%, #d9d4cb 45%, #ebe8e3 100%);
}

.admin-shell {
  display: none;
  grid-template-columns: 240px 1fr;
  min-height: 100svh;
}

.admin-shell.is-shown {
  display: grid;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 1.1rem;
  background: #141414;
  color: #ebe8e3;
  z-index: 30;
}

.admin-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0 0.35rem;
}

.admin-brand img {
  width: 40px;
  height: auto;
  filter: invert(1);
}

.admin-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.admin-brand span {
  font-size: 0.75rem;
  color: rgba(235, 232, 227, 0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.admin-nav-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(235, 232, 227, 0.72);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  border-left: 2px solid transparent;
}

.admin-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.admin-nav-item.is-active {
  color: #fff;
  border-left-color: var(--copper);
  background: rgba(184, 115, 51, 0.15);
}

.admin-sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-foot a {
  color: rgba(235, 232, 227, 0.65);
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0 0.35rem;
}

.admin-sidebar-foot a:hover {
  color: #fff;
}

.admin-sidebar-foot .btn-ghost {
  color: #ebe8e3;
  border-color: rgba(235, 232, 227, 0.35);
}

.admin-main {
  padding: 1.25rem clamp(1rem, 3vw, 2.5rem) 3rem;
  min-width: 0;
}

.admin-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.admin-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
  margin: 0;
  flex: 1;
}

.admin-menu-toggle {
  display: none;
  appearance: none;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #fff;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.1rem;
  cursor: pointer;
}

.admin-scrim {
  display: none;
}

body.admin-nav-lock {
  overflow: hidden;
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
  animation: adminIn 0.35s ease;
}

@keyframes adminIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.admin-stat {
  padding: 1.1rem 1rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(20, 20, 20, 0.08);
}

.admin-stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.4rem;
}

.admin-stat strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.admin-section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 1rem;
}

.admin-upcoming {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-upcoming-item {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(20, 20, 20, 0.08);
  min-width: 0;
}

.admin-upcoming-item .muted {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-upcoming-when {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Services manager */
.svc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.svc-head-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.svc-head-actions .btn-primary:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.svc-card.is-dirty {
  border-color: rgba(184, 115, 51, 0.5);
}

.svc-lead {
  margin: 0;
  color: rgba(20, 20, 20, 0.55);
  max-width: 36rem;
  line-height: 1.45;
}

.svc-save-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.4);
  white-space: nowrap;
}

.svc-save-status.is-ok {
  color: #2f6b3a;
}

.svc-save-status.is-err {
  color: #a33;
}

.svc-list {
  display: grid;
  gap: 0.85rem;
  max-width: 720px;
}

.svc-card-new {
  max-width: 720px;
  margin-bottom: 0.85rem;
  border-color: rgba(184, 115, 51, 0.35);
  box-shadow: 0 12px 32px rgba(20, 20, 20, 0.06);
  animation: svc-new-in 0.22s ease;
}

.svc-card-new[hidden] {
  display: none !important;
}

@keyframes svc-new-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.svc-new-head {
  margin-bottom: 1rem;
}

.svc-new-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.svc-new-head .muted {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
}

.svc-new-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.svc-new-error {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #a33;
}

.svc-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 20, 20, 0.08);
  padding: 1.15rem 1.25rem 1.05rem;
  transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.svc-card:hover {
  border-color: rgba(20, 20, 20, 0.14);
  box-shadow: 0 10px 28px rgba(20, 20, 20, 0.05);
}

.svc-card.is-off {
  opacity: 0.62;
}

.svc-card.is-saving {
  border-color: rgba(184, 115, 51, 0.45);
}

.svc-card-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.svc-card-title h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.svc-card-meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: rgba(20, 20, 20, 0.48);
}

.svc-card-fields {
  display: grid;
  gap: 0.55rem;
  flex: 1;
  min-width: 0;
}

.svc-field {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}

.svc-field span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.45);
}

.svc-field input {
  width: 100%;
  border: 1.5px solid rgba(20, 20, 20, 0.14);
  background: #fff;
  padding: 0.45rem 0.6rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #141414;
}

.svc-field input:focus {
  outline: none;
  border-color: var(--copper, #b87333);
}

.svc-card-foot-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.svc-remove {
  color: #a33 !important;
}

.svc-remove.is-confirm {
  background: rgba(163, 51, 51, 0.1);
  border-color: rgba(163, 51, 51, 0.45);
  color: #8a2222 !important;
  font-weight: 700;
}

.svc-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.svc-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.svc-switch-ui {
  width: 2.6rem;
  height: 1.45rem;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.18);
  position: relative;
  transition: background 0.2s ease;
}

.svc-switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.45rem - 4px);
  height: calc(1.45rem - 4px);
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.svc-switch input:checked + .svc-switch-ui {
  background: var(--copper, #b87333);
}

.svc-switch input:checked + .svc-switch-ui::after {
  transform: translateX(1.15rem);
}

.svc-switch input:focus-visible + .svc-switch-ui {
  outline: 2px solid var(--copper, #b87333);
  outline-offset: 2px;
}

.svc-switch-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.55);
  min-width: 3.6rem;
}

.svc-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
}

.svc-dur-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.45);
}

.svc-dur {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  border: 1.5px solid rgba(20, 20, 20, 0.16);
  padding: 0.2rem;
}

.svc-dur-btn {
  appearance: none;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  color: #141414;
}

.svc-dur-btn:hover {
  background: rgba(20, 20, 20, 0.06);
}

.svc-dur input {
  width: 3.2rem;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0.35rem 0;
  -moz-appearance: textfield;
}

.svc-dur input::-webkit-outer-spin-button,
.svc-dur input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.svc-dur input:focus {
  outline: none;
}

.svc-dur-unit {
  padding-right: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(20, 20, 20, 0.45);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.appt-range-bar {
  gap: 0.85rem;
}

.appt-range-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.45);
}

.appt-range {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(20, 20, 20, 0.1);
}

.appt-range-btn {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  color: rgba(20, 20, 20, 0.55);
}

.appt-range-btn:hover {
  color: #141414;
  background: rgba(20, 20, 20, 0.04);
}

.appt-range-btn.is-active {
  background: #141414;
  color: #f3f1ec;
}

.admin-toolbar input[type="date"],
.admin-toolbar input[type="text"],
.admin-toolbar input[type="password"],
.admin-toolbar input[type="number"] {
  border: 1.5px solid rgba(20, 20, 20, 0.25);
  background: #fff;
  padding: 0.5rem 0.65rem;
  font: inherit;
}

@media (max-width: 560px) {
  .svc-card-main {
    flex-direction: column;
  }

  .svc-field {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .svc-card-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .svc-head {
    flex-direction: column;
    align-items: stretch;
  }

  .svc-head-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-menu-toggle {
    display: grid;
    place-items: center;
  }

  .admin-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 28;
    background: rgba(20, 20, 20, 0.45);
    border: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
  }

  .admin-scrim[hidden] {
    display: none !important;
  }

  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(280px, 86vw);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.25);
    z-index: 32;
  }

  .admin-sidebar.is-open {
    transform: none;
  }

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

  .admin-upcoming-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.booking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.booking-table th,
.booking-table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.booking-table th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-confirmed { color: var(--copper-deep); }
.status-done { color: #2f6b3a; }
.status-cancelled { color: #888; }
.status-no_show { color: #a33; }

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.row-actions button {
  appearance: none;
  border: 1px solid rgba(20, 20, 20, 0.3);
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  min-height: 2.5rem;
  cursor: pointer;
}

.admin-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.admin-section h3 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
}

@media (max-width: 700px) {
  .booking-table,
  .booking-table thead,
  .booking-table tbody,
  .booking-table th,
  .booking-table td,
  .booking-table tr {
    display: block;
  }

  .booking-table thead {
    display: none;
  }

  .booking-table tr {
    padding: 1rem 0.85rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(20, 20, 20, 0.08);
    background: rgba(255, 255, 255, 0.72);
  }

  .booking-table td {
    border: 0;
    padding: 0.45rem 0;
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.65rem;
    align-items: start;
  }

  .booking-table td::before {
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mute);
    padding-top: 0.15rem;
  }

  .booking-table td.row-actions {
    grid-template-columns: 1fr;
    padding-top: 0.75rem;
  }

  .booking-table td.row-actions::before {
    margin-bottom: 0.25rem;
  }

  .booking-table tr.booking-empty td {
    display: block;
    grid-template-columns: none;
  }

  .booking-table tr.booking-empty td::before {
    content: none;
  }
}

.manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.settings-form {
  max-width: 720px;
  margin-top: 1rem;
}

.settings-enable {
  margin-bottom: 1.25rem;
}

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

.settings-grid .field input {
  width: 100%;
  border: 1.5px solid rgba(20, 20, 20, 0.2);
  background: #fff;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.settings-hint {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.settings-test {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  max-width: 720px;
}

@media (max-width: 700px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

.buffer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  max-width: 720px;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 20, 20, 0.08);
}

.buffer-row label {
  font-weight: 600;
  min-width: 10rem;
}

.buffer-row input[type="number"] {
  width: 5rem;
  border: 1.5px solid rgba(20, 20, 20, 0.2);
  background: #fff;
  padding: 0.5rem 0.6rem;
  font: inherit;
}

/* Hours & closures */
.hours-lead {
  margin: 0 0 1.75rem;
  color: rgba(20, 20, 20, 0.55);
  max-width: 40rem;
  line-height: 1.45;
}

.hours-section {
  margin-bottom: 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
}

.hours-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.hours-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 0.35rem;
}

.hours-section .admin-section-title {
  margin-bottom: 0.35rem;
}

.week-schedule {
  display: grid;
  gap: 0.55rem;
  max-width: 720px;
  margin-top: 1rem;
}

.week-row {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) 1fr;
  gap: 0.75rem 1rem;
  align-items: start;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 20, 20, 0.08);
}

.week-row.is-closed {
  opacity: 0.72;
}

.week-day-head {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.week-day-name {
  font-weight: 700;
}

.week-ranges {
  display: grid;
  gap: 0.45rem;
  grid-column: 2;
}

.week-range-actions {
  grid-column: 2;
}

.week-hours {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.week-hours input[type="time"] {
  border: 1.5px solid rgba(20, 20, 20, 0.18);
  background: #fff;
  padding: 0.45rem 0.55rem;
  font: inherit;
}

.week-hours input[type="time"]:disabled {
  opacity: 0.4;
}

.week-remove-range {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(20, 20, 20, 0.15);
  background: #fff;
  line-height: 1;
  font-size: 1.1rem;
  cursor: pointer;
}

.week-remove-range:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.week-add-range {
  padding: 0.35rem 0.65rem;
  font-size: 0.9rem;
}

.closure-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  max-width: 720px;
}

.closure-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

.closure-empty {
  padding: 0.85rem 0;
  color: rgba(20, 20, 20, 0.45);
}

.admin-toolbar input[type="time"] {
  border: 1.5px solid rgba(20, 20, 20, 0.25);
  background: #fff;
  padding: 0.5rem 0.65rem;
  font: inherit;
}

@media (max-width: 700px) {
  .week-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .week-ranges,
  .week-range-actions {
    grid-column: 1;
  }

  .week-hours {
    justify-content: flex-start;
  }
}

/* Admin calendar */
.cal-admin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 1.25rem;
  align-items: start;
}

.cal-admin-toolbar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.cal-admin-month {
  margin: 0;
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  letter-spacing: -0.03em;
  text-align: center;
}

.cal-nav-btn {
  appearance: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid rgba(20, 20, 20, 0.18);
  background: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.cal-nav-btn:hover {
  border-color: var(--copper, #b87333);
  color: var(--copper-deep, #8a5528);
}

.cal-today-btn {
  margin-left: 0.25rem;
}

.cal-admin-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.cal-admin-weekdays span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.42);
  text-align: center;
  padding: 0.35rem 0;
}

.cal-admin-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
}

.cal-admin-cell {
  appearance: none;
  border: 1px solid rgba(20, 20, 20, 0.08);
  background: rgba(255, 255, 255, 0.72);
  min-height: 6.5rem;
  padding: 0.45rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cal-admin-cell.is-empty {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
  min-height: 0;
}

.cal-admin-cell:hover:not(.is-empty) {
  border-color: rgba(184, 115, 51, 0.45);
  box-shadow: 0 8px 20px rgba(20, 20, 20, 0.05);
}

.cal-admin-cell.is-today {
  background: rgba(184, 115, 51, 0.1);
}

.cal-admin-cell.is-selected {
  border-color: #141414;
  box-shadow: inset 0 0 0 1px #141414;
}

.cal-admin-cell.is-blocked {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(20, 20, 20, 0.03),
      rgba(20, 20, 20, 0.03) 4px,
      rgba(255, 255, 255, 0.5) 4px,
      rgba(255, 255, 255, 0.5) 8px
    );
}

.cal-day-num {
  font-weight: 700;
  font-size: 0.9rem;
}

.cal-blocked-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a33;
}

.cal-cell-events {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.15rem;
  min-height: 0;
  flex: 1;
}

.cal-chip {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0.15rem 0.3rem;
  background: rgba(20, 20, 20, 0.06);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-chip.status-confirmed {
  background: rgba(184, 115, 51, 0.18);
  color: #6b3d14;
}

.cal-chip.status-done {
  background: rgba(47, 107, 58, 0.15);
  color: #2f6b3a;
}

.cal-chip.status-no_show {
  background: rgba(170, 51, 51, 0.12);
  color: #a33;
}

.cal-chip-more {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(20, 20, 20, 0.5);
}

.cal-count {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #141414;
  color: #f3f1ec;
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.cal-admin-side {
  position: sticky;
  top: 1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 20, 20, 0.08);
  padding: 1.15rem 1.1rem;
  min-height: 16rem;
  min-width: 0;
  overflow: hidden;
}

.cal-side-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-deep, #8a5528);
}

.cal-side-date {
  margin: 0.4rem 0 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.cal-side-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cal-side-blocked {
  padding: 0.65rem 0.75rem;
  background: rgba(170, 51, 51, 0.08);
  border: 1px solid rgba(170, 51, 51, 0.25);
  color: #8a1f1f;
  font-size: 0.88rem;
  font-weight: 600;
}

.cal-side-item {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0.65rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  min-width: 0;
}

.cal-side-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cal-side-time {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}

.cal-side-body {
  min-width: 0;
}

.cal-side-contact {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.15rem;
}

.cal-side-email {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cal-side-item .status {
  display: inline-block;
  margin-top: 0.3rem;
}

@media (max-width: 980px) {
  .cal-admin {
    grid-template-columns: 1fr;
  }

  .cal-admin-side {
    position: static;
  }

  .cal-admin-cell {
    min-height: 4.8rem;
  }

  .cal-chip {
    display: none;
  }

  .cal-admin-cell.has-bookings .cal-count {
    display: grid;
  }
}

@media (max-width: 560px) {
  .cal-admin-toolbar {
    flex-wrap: wrap;
  }

  .cal-admin-month {
    order: -1;
    flex: 1 0 100%;
    margin-bottom: 0.35rem;
  }

  .cal-admin-weekdays span {
    font-size: 0.62rem;
    letter-spacing: 0.02em;
  }

  .cal-admin-grid {
    gap: 0.25rem;
  }

  .cal-admin-weekdays {
    gap: 0.25rem;
  }

  .cal-admin-cell {
    min-height: 2.85rem;
    padding: 0.3rem;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .cal-day-num {
    font-size: 0.95rem;
  }

  .cal-cell-events,
  .cal-blocked-tag {
    display: none;
  }

  .cal-count {
    top: 0.15rem;
    right: 0.15rem;
    min-width: 1.1rem;
    height: 1.1rem;
    font-size: 0.62rem;
  }

  .cal-admin-side {
    margin-top: 0.5rem;
  }

  .appt-range {
    width: 100%;
  }

  .appt-range-btn {
    flex: 1 1 auto;
    min-height: 2.5rem;
    text-align: center;
  }

  .sticky-actions .btn {
    min-height: 2.85rem;
    flex: 1;
  }
}

@media (orientation: landscape) and (max-height: 480px) {
  .admin-sidebar {
    overflow-y: auto;
  }

  .cal-admin-cell {
    min-height: 2.5rem;
  }
}
