/* Salon Pilot — public booking flow (/:slug/book, /:slug/embed) and the client's manage page.
   Colours come from the salon theme (site.css maps --s-* onto the shared tokens). */

/* ---------- Chrome ---------- */
.bk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 880px;
  min-height: 64px;
  margin: 0 auto;
  padding: 8px 16px;
}
.bk-salon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  color: var(--ink);
  font: 700 18px/1.15 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.bk-salon span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bk-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.bk-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: 600;
  text-decoration: none;
}
.bk-call svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}
.bk-shell {
  display: grid;
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
  gap: 24px;
  align-items: start;
  padding: 8px 16px 40px;
}
.bk-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.bk-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 18px;
  padding: 0 16px 32px;
  font-size: var(--text-sm);
}
.bk-footer p,
.bk-footer a {
  color: var(--muted);
}
.bk-footer nav {
  display: flex;
  gap: 14px;
}
.bk-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-underline-offset: 3px;
}

/* ---------- Progress: four segments, labels underneath ---------- */
.bk-steps-nav {
  padding: 18px 22px 0;
}
.bk-steps {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bk-step {
  flex: 1;
  min-width: 0;
  padding-top: 10px;
  border-top: 3px solid var(--line);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}
.bk-step.done,
.bk-step.active {
  border-top-color: var(--brand);
}
.bk-step.active {
  color: var(--ink);
}
.step-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: -6px 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.bk-body {
  --pad-x: 22px;
  --pad-y: 22px;
  padding: var(--pad-y) var(--pad-x);
}
.bk-body > h2 {
  font-size: 26px;
  line-height: 1.15;
}
.bk-body > h2:focus,
.screen-title:focus,
#manage-title:focus {
  outline: none;
}
.bk-body > h2:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 4px;
}
.bk-sub {
  margin-top: 4px;
  font-size: var(--text-md);
}
.tz-note {
  margin-top: 14px;
  font-size: var(--text-sm);
}
.step-notice {
  margin-top: 16px;
}
.step-notice:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.inline-link {
  color: var(--ink);
  text-decoration-color: var(--brand);
  text-underline-offset: 3px;
}
.nowrap {
  white-space: nowrap;
}
.chev {
  flex: none;
  width: 9px;
  height: 9px;
  margin-left: 2px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
}

/* ---------- Step 1: services ---------- */
.rebook {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--brand-soft);
}
.rebook h3 {
  color: var(--s-soft-ink, var(--brand));
  font-size: var(--text-md);
  font-weight: 650;
}
.rebook-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.rebook-link {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  padding: 6px 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: 650;
  text-decoration: none;
}
.rebook-link small {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 500;
}
.prefer-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 6px 6px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.prefer-note p {
  flex: 1;
  color: var(--ink);
  font-size: var(--text-md);
}
.prefer-note .text-button {
  padding: 0 12px;
}
.svc-search {
  margin-top: 16px;
}
.svc-search input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23888' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E")
    no-repeat 14px 50%;
  color: var(--ink);
  font-size: var(--text-lg);
}
#svc-results {
  margin-top: 12px;
}
.svc-group {
  border-bottom: 1px solid var(--line);
}
.svc-group summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 2px;
  cursor: pointer;
  list-style: none;
}
.svc-group summary::-webkit-details-marker {
  display: none;
}
.svc-group summary .chev {
  transform: rotate(45deg);
  margin: -4px 6px 0 0;
  transition: transform 0.2s;
}
.svc-group[open] summary .chev {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.svc-group-name {
  color: var(--ink);
  font: 700 19px/1.2 var(--display);
  letter-spacing: -0.01em;
}
.svc-group-count {
  margin-left: auto;
  color: var(--muted);
  font-size: var(--text-sm);
}
.svc-group summary:focus-visible {
  outline-offset: -3px;
  border-radius: 8px;
}
.svc-list,
.staff-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.svc-group .svc-list {
  padding-bottom: 10px;
}
.svc-row,
.staff-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  margin: 2px 0;
  padding: 12px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.svc-text,
.staff-text {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.svc-name,
.staff-name {
  font-size: var(--text-lg);
  font-weight: 650;
  line-height: 1.3;
}
.svc-meta,
.staff-sub {
  color: var(--muted);
  font-size: var(--text-sm);
}
.svc-desc {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.svc-price,
.staff-price {
  flex: none;
  color: var(--ink);
  font: 700 17px/1 var(--display);
  font-variant-numeric: tabular-nums;
}
.svc-row.selected,
.staff-row.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.svc-empty {
  padding: 12px 2px;
  color: var(--ink);
}

/* ---------- Step 2: stylists ---------- */
.staff-list {
  margin-top: 14px;
}
.staff-list li + li .staff-row {
  border-top-color: var(--line);
  border-radius: 0 0 14px 14px;
}
.staff-list li + li .staff-row.selected,
.staff-list li + li .staff-row:hover {
  border-radius: 14px;
}
.staff-mark-wrap {
  flex: none;
  display: grid;
}
.staff-photo,
.staff-mono {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.staff-mono {
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--s-soft-ink, var(--brand));
  font: 700 20px/1 var(--display);
  letter-spacing: -0.04em;
}
.staff-mono.any {
  background: var(--brand);
  color: var(--on-brand);
  font-size: 26px;
}
.staff-photo.sm,
.staff-mono.sm {
  width: 40px;
  height: 40px;
  font-size: 15px;
}
.staff-mono.any.sm {
  font-size: 20px;
}
.staff-photo.xs,
.staff-mono.xs {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.staff-mono.any.xs {
  font-size: 16px;
}
.staff-days {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--text-xs);
}

/* ---------- Step 3: time ---------- */
.time-who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 8px 8px 8px 10px;
  border-radius: 14px;
  background: var(--surface-2);
}
.time-who p {
  display: grid;
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.35;
}
.time-svc {
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: 650;
}
.time-who .text-button {
  padding: 0 10px;
}
#picker {
  margin-top: 18px;
}
.picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.picker-month {
  color: var(--ink);
  font: 700 var(--text-lg) / 1.2 var(--display);
}
.week-nav {
  display: flex;
  gap: 6px;
}
.week-button {
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
}
.week-button span {
  margin-top: -3px;
}
.week-button:disabled {
  opacity: 0.4;
}
.date-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.date-choice {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 70px;
  padding: 8px 0 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
}
.date-dow {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 600;
}
.date-choice strong {
  font: 700 20px/1.1 var(--display);
}
.date-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}
.date-choice.is-full .date-dot {
  background: transparent;
}
.date-choice.is-full strong {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
.date-choice.selected {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
}
.date-choice.selected .date-dow {
  color: var(--on-brand);
}
.date-choice.selected .date-dot {
  background: var(--on-brand);
}
.slots-area {
  margin-top: 20px;
  min-height: 120px;
}
.slots-day {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--text-lg);
}
.slots-count {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 500;
}
.slots-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
}
.slots-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: sp-spin 0.8s linear infinite;
}
.slots-spinner.large {
  width: 34px;
  height: 34px;
  border-width: 3px;
}
.slots-error {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.slots-error p {
  color: inherit;
}
.day-empty {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
}
.slots-group {
  margin-top: 16px;
}
.slots-group > p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 650;
}
.slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.slot {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 48px;
  padding: 6px 4px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.slot small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
.slot.selected {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
}
.slot.selected small {
  color: var(--on-brand);
}
.slot.is-current:disabled {
  opacity: 1;
  border-style: dashed;
  background: var(--surface-2);
  color: var(--muted);
  cursor: default;
}
.waitlist-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.waitlist-prompt p {
  color: var(--ink);
  font-size: var(--text-md);
}

/* Sticky action bar (time + details steps) */
.bk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.bar-summary {
  display: block;
  flex: 1;
  min-width: 0;
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: 650;
  line-height: 1.35;
}
.bar-summary small {
  display: block;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 500;
}
.bk-actions > .button {
  min-width: 150px;
  min-height: 48px;
  border-radius: 999px;
}
.action-error {
  display: flex;
  gap: 8px;
  flex-basis: 100%;
  margin: 0;
  color: var(--danger-ink);
  font-size: var(--text-md);
  font-weight: 600;
}
.action-error::before {
  content: '!';
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--danger);
  color: var(--surface);
  font-size: 12px;
  font-weight: 700;
}
.action-error[hidden],
.action-error:empty {
  display: none;
}

/* ---------- Waitlist dialog ---------- */
.waitlist-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}
.chip-field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.chip-field legend {
  margin-bottom: 8px;
  padding: 0;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 650;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip-check {
  position: relative;
  display: inline-flex;
}
.chip-check input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.chip-check span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: 600;
}
.chip-check .chip-dow {
  padding: 0;
  border: 0;
  min-height: 0;
  background: none;
  color: inherit;
  font-weight: 500;
}
.chip-check input:checked + span {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
}
.chip-check input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.chip-field .field-error {
  margin-top: 6px;
}
.dialog-text {
  color: var(--ink);
}

/* ---------- Step 4: details ---------- */
.pick-recap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
  margin-top: 14px;
  padding: 12px 8px 12px 16px;
  border-radius: 14px;
  background: var(--surface-2);
}
.pick-recap p {
  grid-column: 1;
  font-size: var(--text-sm);
}
.recap-when {
  color: var(--ink) !important;
  font-size: var(--text-lg) !important;
  font-weight: 650;
}
.pick-recap .text-button {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 0 8px;
}
.details-form {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}
.details-form .form-grid {
  gap: 14px;
}
.details-form .check span {
  color: var(--ink);
}
.prefs {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
}
.pay-note {
  font-size: var(--text-md);
}
.deposit-notice {
  border-color: color-mix(in srgb, var(--brand) 30%, transparent);
  background: var(--brand-soft);
  color: var(--ink);
}
.email-suggest {
  margin: 0;
  font-size: var(--text-md);
}
.email-suggest[hidden] {
  display: none;
}
.email-suggest .text-button {
  min-height: 32px;
  padding: 0;
}
.booking-policy {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.booking-policy h3 {
  color: var(--ink);
  font-size: var(--text-md);
}
.booking-policy > p {
  font-size: var(--text-md);
}
.policy-notice:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.policy-full summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--brand);
  font-size: var(--text-md);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.policy-full p {
  margin-top: 4px;
  white-space: pre-line;
  font-size: var(--text-md);
}
.policy-check {
  margin-top: 4px;
  font-weight: 600;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 1px 0;
}

/* ---------- Summary panel (desktop) ---------- */
.bk-aside {
  display: none;
}
.aside-title {
  font-size: var(--text-lg) !important;
}
.bk-summary {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
}
.bk-summary > div {
  display: grid;
  gap: 2px;
}
.bk-summary dt {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 600;
}
.bk-summary dd {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: 600;
}
.summary-total {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.summary-total dd {
  font: 700 22px/1.1 var(--display) !important;
}
.aside-note {
  margin-top: 14px;
  font-size: var(--text-sm);
}

/* ---------- Manage page + message screens ---------- */
.booking-confirm {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 30px 24px;
}
.confirm-symbol {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font: 700 26px/1 var(--display);
}
.confirm-symbol.pending {
  background: var(--brass-soft);
  color: var(--brass-ink);
}
.confirm-symbol.neutral {
  background: var(--surface-2);
  color: var(--ink);
}
.confirm-symbol.alert {
  background: var(--danger-soft);
  color: var(--danger-ink);
}
.booking-confirm h2,
.screen-title {
  font-size: 30px;
  line-height: 1.15;
}
.manage-lead {
  max-width: 52ch;
  color: var(--ink-2);
  font-size: var(--text-lg);
}
.manage-notice {
  width: 100%;
}
.hold-countdown {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--brass-soft);
  color: var(--brass-ink);
  font-weight: 600;
}
.accept-form {
  display: grid;
  gap: 14px;
  width: 100%;
}
.manage-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.manage-actions .button {
  border-radius: 999px;
}
.confirmation-details {
  width: 100%;
  margin-top: 6px;
  padding: 18px;
  border-radius: 16px;
  background: var(--surface-2);
}
.confirmation-details .details-list {
  margin: 0;
}
.manage-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.manage-list > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
}
.manage-list dt {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}
.manage-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.manage-list dd small {
  display: block;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 500;
}
.note-text {
  font-weight: 500;
  white-space: pre-line;
}
.deposit-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.manage-change,
.manage-extras,
.receipts,
.private-link {
  display: grid;
  gap: 10px;
  width: 100%;
}
.change-note {
  font-size: var(--text-md);
}
.calendar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.receipts h3 {
  font-size: var(--text-md);
}
.receipts ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.receipts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-md);
}
.private-link {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.private-link .button {
  justify-self: start;
}
.rs-form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.staff-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: thin;
}
.staff-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 14px 4px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: 600;
}
.staff-chip.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.rs-form .slots-area {
  min-height: 0;
}
.manage-link {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font:
    13px/1.5 ui-monospace,
    monospace;
}
.test-banner {
  margin: 0;
}

/* ---------- Hover (pointer devices only) ---------- */
@media (hover: hover) {
  .svc-row:hover,
  .staff-row:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
  }
  .svc-row.selected:hover,
  .staff-row.selected:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
  }
  .svc-group summary:hover .svc-group-name {
    color: var(--brand);
  }
  .date-choice:not(.selected):hover,
  .slot:not(.selected, :disabled):hover,
  .chip-check:hover span,
  .staff-chip:not(.selected):hover {
    border-color: var(--brand);
  }
  .bk-call:hover,
  .rebook-link:hover {
    border-color: var(--brand);
  }
}

/* ---------- Wider screens ---------- */
@media (min-width: 1000px) {
  .bk-header {
    max-width: 906px;
    min-height: 76px;
  }
  .bk-header.is-narrow {
    max-width: 592px;
  }
  .bk-header.is-mid {
    max-width: 672px;
  }
  .bk-shell {
    padding-top: 16px;
  }
  .bk-shell.has-aside {
    grid-template-columns: minmax(0, 560px) 290px;
  }
  .bk-shell.is-wide {
    grid-template-columns: minmax(0, 640px);
  }
  .bk-aside {
    display: block;
    position: sticky;
    top: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
  }
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  .bk-shell {
    padding: 0 0 24px;
  }
  .bk-card {
    border-width: 1px 0;
    border-radius: 0;
    box-shadow: none;
  }
  .bk-steps-nav {
    padding: 16px 16px 0;
  }
  .bk-step {
    font-size: var(--text-xs);
  }
  .bk-body {
    --pad-x: 16px;
    --pad-y: 20px;
  }
  .bk-body > h2 {
    font-size: 24px;
  }
  .bk-body * {
    scroll-margin-bottom: 120px;
  }
  .svc-row,
  .staff-row {
    padding: 12px 8px;
    gap: 12px;
  }
  .staff-photo:not(.sm, .xs),
  .staff-mono:not(.sm, .xs) {
    width: 48px;
    height: 48px;
  }
  .date-strip {
    gap: 4px;
  }
  .date-choice {
    min-height: 64px;
    border-radius: 12px;
  }
  .date-choice strong {
    font-size: 18px;
  }
  .slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bk-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 24px calc(-1 * var(--pad-x)) calc(-1 * var(--pad-y));
    padding: 12px var(--pad-x) calc(12px + env(safe-area-inset-bottom));
    background: var(--surface);
    box-shadow: var(--shadow-bar);
  }
  .bk-actions.is-final .bar-summary {
    flex-basis: 100%;
  }
  .bk-actions.is-final > .button {
    flex: 1 1 100%;
  }
  .booking-confirm {
    padding: 26px 16px;
  }
  .booking-confirm h2,
  .screen-title {
    font-size: 26px;
  }
  .primary-actions .button,
  .accept-form .manage-actions .button {
    width: 100%;
  }
  .manage-list > div {
    grid-template-columns: 84px minmax(0, 1fr);
  }
  .rs-form .form-actions {
    flex-direction: column-reverse;
  }
  .rs-form .form-actions .button {
    width: 100%;
  }
  .waitlist-form .form-actions .button {
    flex: 1;
  }
}

/* ---------- Embed: inside another site's iframe ---------- */
html.is-embed,
html.is-embed body,
html.salon-theme.is-embed,
html.salon-theme.is-embed body {
  min-height: 0;
  background: transparent;
}
html.is-embed .bk-shell {
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
}
html.is-embed .bk-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: none;
}
html.is-embed .bk-actions {
  position: static;
  margin: 24px 0 0;
  padding: 18px 0 0;
  box-shadow: none;
  background: none;
}
html.is-embed .bk-footer {
  padding: 10px 0 0;
}
html.is-embed .test-banner {
  border-radius: 12px;
  margin-bottom: 8px;
}
html.is-embed dialog {
  margin-top: 16px;
  max-height: none;
}

@media print {
  .bk-header,
  .bk-actions,
  .bk-footer,
  .manage-actions,
  .manage-extras,
  .private-link {
    display: none !important;
  }
  .bk-shell {
    display: block;
  }
}
