:root {
  color-scheme: light;
  --paper: #ffffff;
  --surface: #fbfaf7;
  --ink: #1e1f1d;
  --muted: #73746f;
  --line: #d9d8d2;
  --line-dark: #b8b8b1;
  --soft: #e9e8e2;
  --selected: rgba(42, 84, 67, 0.82);
  --selected-text: #f8fbf8;
  --selected-surface: rgba(42, 84, 67, 0.1);
  --selected-border: rgba(42, 84, 67, 0.72);
  --selected-ring: rgba(42, 84, 67, 0.35);
  --selected-accent: #406b5a;
  --danger: #8e5349;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(25, 25, 22, 0.14);
}

body.development-mode { overflow: hidden; }
.development-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px;
  background: #f7f6f2;
  color: var(--ink);
}
.development-card {
  width: min(680px, 100%);
  text-align: center;
}
.development-card > img {
  width: 88px;
  height: 88px;
  margin-bottom: 34px;
  border-radius: 18px;
  object-fit: cover;
}
.development-eyebrow {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
}
.development-card h1 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(52px, 8vw, 92px);
  font-weight: 400;
  line-height: .93;
  letter-spacing: -.055em;
}
.development-card > p:not(.development-eyebrow) {
  margin: 30px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}
.development-contact {
  display: grid;
  gap: 8px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.development-contact span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.development-contact a {
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
}
@media (max-width: 560px) {
  .development-card > img { width: 72px; height: 72px; margin-bottom: 28px; }
  .development-card h1 { font-size: clamp(46px, 15vw, 66px); }
  .development-card > p:not(.development-eyebrow) { font-size: 16px; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; }

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  margin: 0 auto;
  min-height: 76px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  transition: top 220ms ease, width 220ms ease, min-height 220ms ease,
    padding 220ms ease, border-radius 220ms ease, box-shadow 220ms ease,
    background-color 220ms ease;
}

.site-header.is-compact {
  top: 8px;
  width: min(1180px, calc(100% - 32px));
  min-height: 58px;
  padding: 0 clamp(14px, 2.4vw, 28px);
  border: 1px solid rgba(186, 188, 180, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  box-shadow: 0 12px 32px rgba(35, 43, 39, 0.09);
}

.site-header.is-compact .brand img {
  width: 38px;
  height: 38px;
  border-radius: 7px;
}

.site-header.is-compact .brand-wordmark { font-size: 16px; }
.site-header.is-compact .header-meta { gap: 22px; font-size: 13px; }

.brand img,
.brand-wordmark,
.header-meta {
  transition: width 220ms ease, height 220ms ease, font-size 220ms ease, gap 220ms ease;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  object-fit: cover;
}

.brand-wordmark {
  font-family: Rockwell, "Roboto Slab", Georgia, serif;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-shadow: 1px 0 0 currentColor;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--muted);
  font-size: 14px;
}

.header-meta a { color: inherit; text-decoration: none; }
.header-meta a:hover { color: var(--ink); }
.my-bookings-button {
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
.my-bookings-button:hover { border-bottom-color: var(--ink); }

.booking-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0 90px;
}

.intro {
  max-width: 720px;
  margin-bottom: 72px;
}

.intro-copy { max-width: 720px; }

.eyebrow,
.panel-kicker {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.intro-copy > p:last-child {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
}


.booking-section {
  padding: 34px 0 40px;
  border-top: 1px solid var(--line);
}

@media (min-width: 841px) {
  .masters-section {
    position: sticky;
    top: 78px;
    z-index: 20;
    background: #fff;
    transition: background-color 180ms ease, box-shadow 180ms ease;
  }

  .masters-section.is-stuck {
    background: rgba(255, 255, 255, 0.46);
    backdrop-filter: blur(18px) saturate(115%);
    -webkit-backdrop-filter: blur(18px) saturate(115%);
    box-shadow: 0 14px 34px rgba(35, 43, 39, 0.04);
  }
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.section-number {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 520;
  letter-spacing: -0.03em;
}

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.master-search {
  width: min(260px, 40vw);
  padding: 0 2px 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line-dark);
}
.master-search:focus-within { border-color: var(--ink); }
.master-search svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; color: var(--muted); }
.master-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.master-search input::-webkit-search-cancel-button { cursor: pointer; }

.master-carousel-wrap { position: relative; }
.master-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.master-list::-webkit-scrollbar { display: none; }

.master-card {
  position: relative;
  min-width: 250px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 250, 247, 0.6);
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.master-card:hover { border-color: var(--ink); transform: translateY(-1px); }
.master-card.selected { color: var(--ink); background: var(--selected-surface); border-color: var(--selected-border); box-shadow: inset 0 0 0 2px var(--selected-ring), 0 0 0 3px var(--selected-surface); }
.master-card.selected::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--selected-accent);
  font-size: 14px;
  font-weight: 700;
}
.master-card.selected .master-name { padding-right: 30px; }
.master-card.unavailable { color: #8b8c87; background: rgba(230, 230, 226, 0.5); border-color: rgba(190, 190, 184, 0.68); }
.master-card.unavailable:hover { border-color: #a9aaa4; }
.master-card.unavailable .portrait { filter: grayscale(1); opacity: .48; }
.master-card.unavailable.selected { color: #7c7d78; background: rgba(224, 224, 220, 0.62); border-color: var(--selected-border); box-shadow: inset 0 0 0 2px var(--selected-ring), 0 0 0 3px var(--selected-surface); }
.master-card.busy-at-time { color: #87483f; background: #f1e3e0; border-color: #d9aaa3; }
.master-card.busy-at-time .portrait { filter: grayscale(1); opacity: .7; }
.master-card.busy-at-time.selected { color: #743a33; background: #edd8d4; border-color: #9b5a51; box-shadow: inset 0 0 0 1px #9b5a51; }
.master-card.available-at-time:not(.selected) { border-color: var(--ink); }
.master-card.available-at-time .master-status { font-weight: 650; }
.master-card.any-master .portrait { display: grid; place-items: center; font-family: Georgia, serif; font-size: 18px; color: #686962; }
.master-card.any-master .portrait::before,
.master-card.any-master .portrait::after { display: none; }

.portrait {
  position: relative;
  flex: 0 0 78px;
  width: 78px;
  height: 88px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--portrait-bg, #d8d5ce);
}

.portrait::before {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  left: 21px;
  top: 15px;
  border-radius: 50%;
  background: var(--portrait-fg, #aca9a1);
}

.portrait::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 48px;
  left: 4px;
  bottom: -15px;
  border-radius: 50% 50% 0 0;
  background: var(--portrait-fg, #aca9a1);
}

.portrait.has-photo::before,
.portrait.has-photo::after { display: none; }

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.master-info { min-width: 0; }
.master-name { display: block; margin-bottom: 7px; font-size: 17px; font-weight: 590; }
.master-role { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.master-card.selected .master-role { color: var(--selected-accent); }
.master-card.busy-at-time .master-role,
.master-card.busy-at-time.selected .master-role { color: #9b6860; }
.master-card.unavailable .master-role,
.master-card.unavailable.selected .master-role { color: #a5a6a1; }
.master-status { display: block; margin-top: 10px; font-size: 12px; }
.master-card.unavailable .master-status,
.master-card.unavailable.selected .master-status { color: #9b4f45; font-weight: 650; }
.master-empty { min-width: 250px; padding: 30px 18px; border: 1px dashed var(--line-dark); border-radius: var(--radius); color: var(--muted); font-size: 13px; }

.section-hint {
  min-height: 18px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.master-footer-row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.master-footer-row .section-hint { flex: 1; }
.suggest-master-button {
  flex: 0 0 auto;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}
.suggest-master-button:hover { color: var(--ink); border-color: var(--ink); }
.dates-section,
.times-section { scroll-margin-top: 96px; }

.date-heading-actions { display: flex; align-items: center; gap: 24px; }
.timezone { color: var(--muted); font-size: 13px; }
.calendar-toggle {
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}
.calendar-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.calendar-popover {
  width: 100%;
  margin: 0;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(25,25,22,.08);
}
.calendar-popover[hidden] { display: none; }
.calendar-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.calendar-bar strong { font-size: 18px; font-weight: 600; }
.calendar-meta { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 12px; }
.calendar-legend { display: flex; align-items: center; gap: 14px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.calendar-legend i { width: 8px; height: 8px; border: 1px solid var(--line-dark); border-radius: 50%; background: var(--surface); }
.calendar-legend .unavailable-key { background: #d8d7d1; border-color: #d8d7d1; }
.calendar-weekdays,
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.calendar-weekdays { margin-bottom: 10px; color: var(--muted); font-size: 11px; text-align: center; text-transform: uppercase; }
.calendar-day {
  min-height: 64px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  font-size: 15px;
}
.calendar-day:hover:not(:disabled) { border-color: var(--ink); }
.calendar-day.selected { color: var(--ink); background: var(--selected-surface); border-color: var(--selected-border); box-shadow: inset 0 0 0 1px var(--selected-ring); }
.calendar-day.unavailable { background: #e4e3dd; border-color: #e4e3dd; color: #999993; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.calendar-day.selected.unavailable { background: #e4e3dd; border-color: var(--selected-border); color: #777872; box-shadow: inset 0 0 0 2px var(--selected-ring), 0 0 0 3px var(--selected-surface); }
.calendar-day:disabled { cursor: not-allowed; }
.calendar-day.past-day { color: #aaa9a4; background: rgba(240, 239, 235, 0.38); border-color: rgba(236, 235, 230, 0.42); opacity: 0.45; }
.dates-section.calendar-mode .date-scroller-wrap,
.dates-section.calendar-mode .section-hint { display: none; }
.calendar-toggle.return-mode svg { display: none; }
.date-scroller-wrap { position: relative; }
.date-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(104px, 1fr);
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.date-list::-webkit-scrollbar { display: none; }

.date-card {
  min-height: 96px;
  padding: 15px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
}

.date-card:hover { border-color: var(--ink); }
.date-card.selected { color: var(--ink); background: var(--selected-surface); border-color: var(--selected-border); box-shadow: inset 0 0 0 1px var(--selected-ring); }
.date-card.unavailable:not(.selected) { color: #aaa9a3; background: #e9e8e3; }
.date-day { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.date-card.selected .date-day { color: var(--selected-accent); }
.date-number { display: block; margin-top: 8px; font-family: Georgia, serif; font-size: 30px; line-height: 1; }
.date-month { display: block; margin-top: 5px; font-size: 12px; }

.scroll-button,
.carousel-button {
  display: block;
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  transform: translateY(-50%);
  cursor: pointer;
}
.scroll-button.prev { left: -18px; }
.scroll-button.next { right: -18px; }
.carousel-button.prev { left: -18px; }
.carousel-button.next { right: -18px; }
.carousel-button.is-hidden { display: none; }

.times-heading { align-items: center; }
.legend { display: flex; gap: 18px; color: var(--muted); font-size: 12px; }
.legend span { display: flex; align-items: center; gap: 7px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-dark); }
.legend-dot.busy { background: #c78e85; border-color: #c78e85; }

.slots-container { display: grid; gap: 12px; }
.availability-notice {
  margin: -4px 0 16px;
  padding: 17px 20px;
  border: 1px solid var(--selected-border);
  border-radius: 15px;
  background: var(--selected-surface);
  box-shadow: inset 0 0 0 1px var(--selected-ring), 0 10px 26px rgba(56, 91, 74, .08);
  color: #294f3f;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.45;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
}
.availability-notice::before {
  content: '↑';
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(69, 113, 91, .12);
  color: var(--selected-accent);
  font-size: 19px;
  font-weight: 700;
}
.availability-notice[hidden] { display: none; }
.availability-notice.error { color: #743a33; background: #f1e3e0; border-color: #d9aaa3; box-shadow: none; }
.availability-notice.error::before { content: '!'; color: #8f4b42; background: rgba(143, 75, 66, .1); }
.unified-schedule {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 250, 247, .58);
}

.unified-schedule-head { margin-bottom: 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.unified-schedule-head strong { font-size: 16px; font-weight: 600; }
.unified-schedule-head span { color: var(--muted); font-size: 12px; }
.slot-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.slot-button {
  min-height: 46px;
  padding: 9px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: border-color 140ms ease, transform 140ms ease;
}
.slot-button:hover { border-color: var(--ink); transform: translateY(-1px); }
.slot-button.unavailable-time { color: #9b5a51; background: #f1e3e0; border-color: #e5c6c1; text-decoration: line-through; }
.slot-button.selected-time { color: var(--ink); background: var(--selected-surface); border-color: var(--selected-border); box-shadow: inset 0 0 0 1px var(--selected-ring); text-decoration: none; }
.slot-button.unavailable-time.selected-time { color: #9b5a51; background: #f1e3e0; border-color: #9b5a51; box-shadow: inset 0 0 0 1px #9b5a51; }
.slot-button.past { color: #b3b2ac; background: transparent; cursor: not-allowed; }
.empty-state { padding: 34px; color: var(--muted); border: 1px dashed var(--line-dark); border-radius: var(--radius); text-align: center; }

.site-footer {
  padding: 26px clamp(20px, 4vw, 64px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 20, 18, .25);
  opacity: 0;
  transition: opacity 220ms ease;
}
.overlay.visible { opacity: 1; }

.booking-panel {
  position: fixed;
  z-index: 101;
  top: 0;
  right: 0;
  width: min(520px, 100%);
  height: 100dvh;
  padding: 26px clamp(22px, 4vw, 42px) 36px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 260ms cubic-bezier(.22,.8,.3,1);
}
.booking-panel.open { transform: translateX(0); }
.panel-topbar { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; }
.panel-kicker { margin: 0; }
.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
}
.panel-content { min-height: 0; flex: 1; padding-top: 42px; overflow-y: auto; }
.panel-content.service-picker-mode { flex: 1; display: flex; flex-direction: column; padding-top: 24px; overflow: hidden; }
.service-picker-scroll { min-height: 0; flex: 1; overflow-y: auto; padding: 18px 6px 18px 0; scrollbar-gutter: stable; }
.panel-content h2 { max-width: 380px; font-family: Georgia, serif; font-size: 38px; font-weight: 400; line-height: 1.08; }
.appointment-summary {
  margin: 25px 0 32px;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.summary-item small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.summary-item strong { font-size: 14px; font-weight: 550; }
.summary-item.services-summary { grid-column: 1 / -1; }
.summary-item.services-summary strong { display: block; line-height: 1.45; }
.summary-item.services-summary span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.panel-label { margin: 0 0 13px; font-size: 13px; font-weight: 600; }
.service-list { display: grid; gap: 8px; }
.service-card {
  width: 100%;
  padding: 17px;
  display: grid;
  grid-template-columns: 1fr auto 25px;
  gap: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.service-card:hover { border-color: var(--ink); }
.service-card.selected { background: var(--selected-surface); border-color: var(--selected-border); box-shadow: inset 0 0 0 1px var(--selected-ring); }
.service-card.selected small { color: var(--selected-accent); font-weight: 650; }
.service-card:disabled { color: #a8a9a4; background: #f4f4f1; border-color: #e4e4df; cursor: not-allowed; opacity: .62; }
.service-card:disabled:hover { border-color: #e4e4df; }
.service-card strong { font-weight: 570; }
.service-card .price { font-variant-numeric: tabular-nums; }
.service-card small { grid-column: 1 / 3; color: var(--muted); }
.service-remove {
  position: relative;
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  width: 25px;
  height: 25px;
  display: block;
  border: 1px solid transparent;
  border-radius: 50%;
  color: transparent;
  font-size: 0;
}
.service-remove.visible { color: #a34f45; background: #f4e1de; border-color: #dfb4ad; }
.service-remove.visible::before,
.service-remove.visible::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  border-radius: 999px;
  background: #a34f45;
  transform-origin: center;
}
.service-remove.visible::before { transform: translate(-50%, -50%) rotate(45deg); }
.service-remove.visible::after { transform: translate(-50%, -50%) rotate(-45deg); }
.service-actions { flex: 0 0 auto; margin-top: 0; padding: 17px 0 0; display: grid; gap: 14px; border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 -16px 28px rgba(255, 255, 255, .94); }
.service-actions > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 13px; }
.service-actions > div span { color: var(--muted); }
.service-actions > div strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.service-actions .primary-button { width: 100%; margin-top: 0; }
.capacity-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.hold-box {
  margin: 24px 0 28px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 13px;
  background: var(--soft);
}
.hold-copy strong { display: block; margin-bottom: 4px; font-size: 14px; }
.hold-copy span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.timer { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.timer.expiring { color: var(--danger); }

.booking-form { display: grid; gap: 18px; }
.booking-submit-error { margin: -7px 0 -5px; text-align: center; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; }
.field input {
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  background: transparent;
  outline: none;
}
.field input:focus { border-bottom-color: var(--ink); }
.phone-input {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
}
.phone-input:focus-within { border-bottom-color: var(--ink); }
.phone-prefix { color: var(--muted); transition: color .15s ease; }
.phone-input.has-value .phone-prefix { color: var(--ink); }
.phone-input input {
  min-width: 0;
  padding-left: 7px;
  border-bottom: 0;
}
.phone-input input:focus { border-bottom-color: transparent; }
.field-error { min-height: 16px; margin: 6px 0 0; color: var(--danger); font-size: 12px; }
.primary-button {
  min-height: 54px;
  margin-top: 7px;
  border: 0;
  border-radius: 12px;
  background: var(--selected);
  color: var(--selected-text);
  cursor: pointer;
  font-weight: 600;
}
.primary-button:hover { background: rgba(42, 84, 67, 0.92); }
.primary-button:disabled { background: #d8d8d3; color: #989993; cursor: not-allowed; }
.primary-button:disabled:hover { background: #d8d8d3; }
.back-button { width: max-content; border: 0; border-bottom: 1px solid var(--line-dark); background: transparent; cursor: pointer; padding: 5px 0; }
.success-mark {
  width: 54px;
  height: 54px;
  margin-bottom: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 24px;
}
.success-copy { margin: 18px 0 30px; color: var(--muted); line-height: 1.55; }
.saved-bookings-note { margin: 18px 0 28px; color: var(--muted); line-height: 1.5; }
.saved-bookings-list { display: grid; gap: 12px; }
.saved-booking-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--selected-surface); }
.saved-booking-date { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--selected-border); }
.saved-booking-date strong { font-size: 18px; }
.saved-booking-date span { color: var(--selected-accent); font-weight: 650; }
.saved-booking-card dl { margin: 14px 0 0; display: grid; gap: 11px; }
.saved-booking-card dl div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; }
.saved-booking-card dt { color: var(--muted); font-size: 12px; }
.saved-booking-card dd { margin: 0; font-size: 13px; line-height: 1.4; }
.saved-booking-card.missing-booking { background: #fff4f1; border-color: #dfa89d; }
.booking-alert { margin-top: 16px; padding: 14px; display: grid; gap: 6px; border: 1px solid #dfa89d; border-radius: 10px; background: rgba(255, 255, 255, .72); color: #8f463c; }
.booking-alert strong { font-size: 14px; }
.booking-alert span { font-size: 13px; line-height: 1.45; }
.booking-alert a { width: fit-content; color: #8f463c; font-size: 16px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.empty-bookings { padding: 28px; display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 14px; text-align: center; }
.empty-bookings span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.saved-bookings-close { width: 100%; margin-top: 20px; }

@media (max-width: 840px) {
  .booking-shell { width: min(100% - 28px, 720px); padding-top: 48px; }
  .intro { margin-bottom: 48px; }
  .master-list { grid-auto-columns: 270px; }
  .master-card { padding: 10px; }
  .portrait { flex-basis: 66px; width: 66px; height: 72px; }
  .portrait::before { width: 30px; height: 30px; left: 18px; top: 12px; }
  .portrait::after { width: 60px; left: 3px; }
  .slot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .scroll-button,
  .carousel-button { display: none; }
}

@media (max-width: 560px) {
  .site-header { min-height: 62px; padding: 7px 16px; }
  .site-header.is-compact {
    top: 6px;
    width: calc(100% - 12px);
    min-height: 52px;
    padding: 5px 10px;
    border-radius: 13px;
  }
  .site-header.is-compact .brand img { width: 34px; height: 34px; }
  .site-header.is-compact .brand-wordmark { font-size: 12px; }
  .site-header.is-compact .header-meta { gap: 10px; font-size: 11px; }
  .brand { gap: 8px; }
  .brand img { width: 42px; height: 42px; border-radius: 8px; }
  .brand-wordmark { font-size: 14px; letter-spacing: .045em; }
  .header-meta span { display: none; }
  .header-meta > a { display: none; }
  .header-meta { font-size: 12px; }
  .booking-shell { width: calc(100% - 28px); padding: 38px 0 64px; }
  .intro { margin-bottom: 42px; }
  h1 { font-size: 44px; max-width: 330px; }
  .intro-copy > p:last-child { margin-top: 18px; font-size: 15px; line-height: 1.5; }
  .booking-section { padding: 27px 0 31px; }
  .section-heading { align-items: center; }
  .section-heading > div:first-child { gap: 10px; }
  h2 { font-size: 21px; }
  .master-search { width: 160px; }
  .timezone { display: none; }
  .calendar-toggle span { display: none; }
  .calendar-toggle { border-bottom: 0; padding: 8px; border: 1px solid var(--line); border-radius: 9px; }
  .dates-section.calendar-mode .calendar-toggle span { display: inline; }
  .dates-section.calendar-mode .calendar-toggle { border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 7px 0; }
  .calendar-popover { padding: 18px 10px; margin-top: -8px; }
  .calendar-bar { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 20px; }
  .calendar-bar strong { font-size: 15px; }
  .calendar-meta { width: 100%; justify-content: space-between; gap: 8px; }
  .calendar-legend { gap: 9px; }
  .calendar-grid { gap: 5px; }
  .calendar-day { min-height: 44px; font-size: 12px; border-radius: 9px; }
  .date-list { margin-right: -14px; grid-auto-columns: 92px; }
  .date-card { min-height: 90px; }
  .legend { gap: 10px; }
  .legend span { gap: 5px; }
  .unified-schedule { padding: 14px; }
  .unified-schedule-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .slot-button { min-height: 44px; font-size: 13px; }
  .site-footer { flex-direction: column; padding: 22px 16px; }
  .booking-panel { top: auto; bottom: 0; height: min(90dvh, 760px); border-radius: 22px 22px 0 0; transform: translateY(105%); }
  .booking-panel.open { transform: translateY(0); }
  .panel-content { padding-top: 30px; }
  .panel-content h2 { font-size: 32px; }
  .appointment-summary { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
