/* ============================================================================
   Harbor booking hours editor (public/booking-availability.mjs) and Recent
   bookings. Base rules work in every tenant shell; the story look (stickers,
   ink outlines, sun brush) hangs off html[data-platform-brand='discovery'].
   Motion: transform and opacity only, and none under reduced motion.
   ============================================================================ */

.ba { container-type: inline-size; display: grid; gap: 16px; min-width: 0; color: var(--text, #16130a); }
.ba *, .ba *::before, .ba *::after { box-sizing: border-box; }
.ba-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ba-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 16px; }
.ba-fieldset:disabled { opacity: .72; }

/* ── Head ── */
.ba-head { display: grid; gap: 6px; }
.ba-kicker { margin: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; color: var(--text-dim, rgb(22 19 10 / 60%)); }
.ba-title { margin: 0; font-size: 22px; line-height: 1.1; }
.ba-lead { margin: 0; color: var(--text-muted, rgb(22 19 10 / 72%)); max-width: 62ch; }

/* ── Layout: one column, two once the editor is wide enough ── */
.ba-grid { display: grid; gap: 16px; min-width: 0; }
.ba-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
@container (min-width: 760px) {
  .ba-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: start; }
}

.ba-panel { background: var(--surface, #fff); border: 1px solid var(--border, #e3e5df); border-radius: 16px; padding: 18px; min-width: 0; display: grid; gap: 12px; align-content: start; }
.ba-h { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.25; }
.ba-help { margin: 0; color: var(--text-muted, #565b57); font-size: 14.5px; }
.ba-hint { margin: 0; color: var(--text-dim, #6b716c); font-size: 13px; line-height: 1.4; }
.ba-basis { color: var(--text-dim, #6b716c); font-size: 12.5px; }
.ba-label { display: block; font-weight: 650; font-size: 14px; margin-bottom: 4px; }
.ba-field { display: grid; gap: 4px; min-width: 0; }
.ba-field .input, .ba-select { width: 100%; min-height: 44px; }
.ba-two { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.ba-field-error { margin: 0; color: var(--danger, #b91c1c); font-size: 13px; font-weight: 650; }
.ba-glyph { font-weight: 900; }
.ba-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ── Notes (calendar re-chosen, paying customer, read-only) ── */
.ba-notes:empty { display: none; }
.ba-notes { display: grid; gap: 8px; }
.ba-note { margin: 0; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-weight: 600; font-size: 14.5px; background: var(--surface-subtle, #f3f4f1); }
.ba-note--sun { background: var(--warning-bg, #fdf3e3); }
.ba-note--sky { background: var(--info-bg, #eaf2fd); }
.ba-note-glyph { flex: none; font-weight: 900; }

/* ── Days ── */
.ba-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ba-day { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface-subtle, #f3f4f1); min-width: 0; }
.ba-day.is-closed { background: transparent; border: 1px dashed var(--border-strong, #cfd3cc); }
.ba-day.has-issue { box-shadow: inset 0 0 0 2px var(--danger, #b91c1c); }
.ba-day-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ba-day-name { font-weight: 750; font-size: 15px; }
.ba-closed-line { margin: 0; color: var(--text-dim, #6b716c); font-size: 13.5px; }
.ba-ranges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ba-range { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 6px; border-radius: 999px; background: var(--surface, #fff); border: 1px solid var(--border-strong, #cfd3cc); max-width: 100%; }
.ba-range.is-invalid { border-color: var(--danger, #b91c1c); box-shadow: 0 0 0 2px var(--danger-bg, #fdeaea); }
.ba-time { min-height: 44px; min-width: 0; max-width: 118px; padding: 0 6px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-weight: 650; color: inherit; cursor: pointer; }
.ba-time:focus-visible { outline: 3px solid var(--text, #16130a); outline-offset: 1px; }
.ba-dash { color: var(--text-dim, #6b716c); font-weight: 700; }
.ba-x { width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--text-muted, #565b57); font-size: 15px; cursor: pointer; }
.ba-x:hover { background: var(--surface-subtle, #f3f4f1); color: var(--text, #16130a); }
.ba-day-msg { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--danger, #b91c1c); font-size: 13.5px; font-weight: 650; }
.ba-day-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ba-day-actions .btn, .ba-merge { min-height: 44px; }
.ba-add:disabled { opacity: .55; }

/* Copy to… */
.ba-copy { position: relative; }
.ba-copy > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; }
.ba-copy > summary::-webkit-details-marker { display: none; }
.ba-copy-menu { margin-top: 6px; display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: var(--surface, #fff); border: 1px solid var(--border-strong, #cfd3cc); box-shadow: var(--shadow-lg, 0 18px 48px rgba(17, 19, 17, .16)); width: min(280px, 100%); }
.ba-copy-opt { min-height: 44px; text-align: left; border: 0; border-radius: 10px; padding: 0 12px; background: var(--surface-subtle, #f3f4f1); font: inherit; font-weight: 650; color: inherit; cursor: pointer; }
.ba-copy-opt:hover { background: var(--brand-soft, #fff4b8); }
.ba-copy-pick { border: 0; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
.ba-copy-pick legend { padding: 0; margin-bottom: 4px; font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim, #6b716c); }
.ba-check { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; }
.ba-check input { width: 20px; height: 20px; }

/* ── Switches (role=switch buttons) ── */
.ba-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; }
.ba-switch-track { position: relative; width: 46px; height: 28px; flex: none; border-radius: 999px; background: var(--border-strong, #cfd3cc); transition: background-color .18s ease; }
.ba-switch-thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 25%); transition: transform .22s var(--spring, ease-out); }
.ba-switch[aria-checked='true'] .ba-switch-track { background: var(--success, #166534); }
.ba-switch[aria-checked='true'] .ba-switch-thumb { transform: translateX(18px); }
.ba-switch-word { font-size: 13px; font-weight: 800; min-width: 4.5em; text-align: left; }
.ba-switch--sm .ba-switch-word { min-width: 4.8em; }
.ba-switch--big .ba-switch-track { width: 58px; height: 34px; }
.ba-switch--big .ba-switch-thumb { width: 28px; height: 28px; }
.ba-switch--big[aria-checked='true'] .ba-switch-thumb { transform: translateX(24px); }
.ba-switch:focus-visible { outline: 3px solid var(--text, #16130a); outline-offset: 2px; border-radius: 999px; }
.ba-switch-row { display: flex; align-items: flex-start; gap: 12px; }
.ba-switch-row > div { min-width: 0; }
.ba-switch-label { margin: 10px 0 2px; font-weight: 700; }
.ba-switch-label--big { font-size: 17px; margin-top: 12px; }

/* ── Lengths ── */
.ba-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ba-chip { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong, #cfd3cc); background: var(--surface, #fff); font: inherit; font-weight: 700; color: var(--text-muted, #565b57); cursor: pointer; }
.ba-chip[aria-pressed='true'] { background: var(--brand, #547451); border-color: var(--brand, #547451); color: #fff; }
.ba-chip-glyph { font-size: 12px; }
.ba-other { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.ba-other[hidden] { display: none; }
.ba-other .ba-hint, .ba-other .ba-field-error { grid-column: 1 / -1; }
.ba-other .btn { min-height: 44px; }
.ba-length-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ba-length-row { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface-subtle, #f3f4f1); min-width: 0; }
.ba-length-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ba-length-name { font-size: 15px; }
.ba-first { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; cursor: pointer; }
.ba-first input { width: 20px; height: 20px; }
.ba-seg { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface, #fff); border: 1px solid var(--border, #e3e5df); justify-self: start; }
.ba-seg-opt { position: relative; display: inline-flex; }
.ba-seg-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ba-seg-opt span { min-height: 40px; min-width: 76px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 999px; font-weight: 750; font-size: 14px; color: var(--text-muted, #565b57); }
.ba-seg-opt input:checked + span { background: var(--brand, #547451); color: #fff; }
.ba-seg-opt input:focus-visible + span { outline: 3px solid var(--text, #16130a); outline-offset: 2px; }
.ba-warn { margin: 0; font-size: 13.5px; font-weight: 650; color: var(--warning, #92400e); }
.ba-warn--muted { color: var(--text-muted, #565b57); }
.ba-banner { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--warning-bg, #fdf3e3); }
.ba-banner p { margin: 0; font-weight: 650; }
.ba-banner .btn { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }

/* ── Rules ── */
.ba-tz { display: grid; gap: 6px; }
.ba-tz-chip { margin: 0; display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-subtle, #f3f4f1); font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.ba-tz-glyph { flex: none; }
.ba-howto > summary, .ba-preview > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.ba-howto p { margin: 0; font-size: 13.5px; color: var(--text-muted, #565b57); }

/* ── Inline confirm row (when the page has no Harbor sheet) ── */
.ba-ask-slot:empty { display: none; }
.ba-ask { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--surface, #fff); border: 2px solid var(--text, #16130a); }
.ba-ask.is-danger { border-color: var(--danger, #b91c1c); }
.ba-ask-title { margin: 0; font-weight: 800; font-size: 16px; }
.ba-ask-intro, .ba-ask-sub { margin: 0; }
.ba-ask-sub { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim, #6b716c); }
.ba-ask-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; }
.ba-ask-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ba-ask-actions .btn { min-height: 44px; }
.ba-ask-status { margin: 0; font-size: 14px; }
.ba-ask-status:empty { display: none; }

/* ── Save bar: sticky above the bottom nav on phones ── */
/* Sticky only while there's something to save; otherwise it rests at the end. */
.ba-bar { position: relative; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 18px; background: var(--surface, #fff); border: 1px solid var(--border-strong, #cfd3cc); box-shadow: var(--shadow, 0 5px 14px rgba(17, 19, 17, .08)); }
.ba-bar-gap { flex: 1 1 auto; }
.ba-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--warning-bg, #fdf3e3); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ba-pill[hidden] { display: none; }
.ba-bar .btn { min-height: 44px; }
.ba-save { display: inline-flex; align-items: center; gap: 8px; }
/* It floats just above the guide's "Ask" button (fixed, bottom right). */
.ba-bar.is-dirty { position: sticky; bottom: 84px; }
@media (max-width: 900px) {
  /* Phones: above the bottom nav and the guide's round button; pill and Discard
     on one row, a full-width Save under them. */
  .ba-bar.is-dirty { bottom: calc(var(--bottomnav-h, 64px) + 76px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .ba-bar.is-dirty .ba-bar-gap { display: none; }
  .ba-bar.is-dirty .ba-pill { justify-self: start; }
  .ba-bar.is-dirty .ba-save { grid-column: 1 / -1; justify-content: center; }
}

/* ── Results ── */
.ba-result:empty { display: none; }
.ba-card { padding: 14px 16px; border-radius: 16px; display: grid; gap: 6px; }
.ba-error-card { background: var(--danger-bg, #fdeaea); border: 1px solid var(--danger, #b91c1c); }
.ba-error-card--warn { background: var(--warning-bg, #fdf3e3); border-color: var(--warning, #92400e); }
.ba-error-card p { margin: 0; }
.ba-error-title { font-weight: 800; }
.ba-kept { font-size: 13px; color: var(--text-muted, #565b57); }
.ba-error-card .btn { min-height: 44px; display: inline-flex; align-items: center; }
.ba-confirm { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--success-bg, #e9f9ef); border: 1px solid var(--success, #166534); }
.ba-confirm p { margin: 0; }
.ba-confirm-title { font-weight: 800; font-size: 17px; }
.ba-confirm-tick { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--success, #166534); color: #fff; font-weight: 900; }
.ba-tick { font-weight: 900; color: var(--success, #166534); }

/* Spinner (Saving…, Cancelling…). Static under reduced motion. */
.ba-spin { display: inline-block; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; vertical-align: -3px; animation: ba-spin .8s linear infinite; }
@keyframes ba-spin { to { transform: rotate(360deg); } }

/* ── What customers see ── */
.ba-preview { padding: 4px 16px 12px; border-radius: 16px; background: var(--surface, #fff); border: 1px solid var(--border, #e3e5df); }
.ba-preview-body { display: grid; gap: 8px; }
.ba-preview-body p { margin: 0; }
.ba-slots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ba-slot { padding: 8px 12px; border-radius: 999px; background: var(--surface-subtle, #f3f4f1); font-weight: 700; font-size: 14px; }

/* ── Recent bookings ── */
.ba-bookings-panel { margin-top: 16px; }
.ba-bookings { display: grid; gap: 10px; }
.ba-booking-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ba-booking { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px; border-radius: 14px; background: var(--surface-subtle, #f3f4f1); }
.ba-booking:focus-visible { outline: 3px solid var(--text, #16130a); outline-offset: 2px; }
.ba-booking p { margin: 0; }
.ba-booking-main { display: grid; gap: 2px; min-width: 0; }
.ba-booking-note { font-size: 13.5px; color: var(--text-muted, #565b57); }
.ba-booking-side { display: grid; gap: 8px; justify-items: end; align-content: start; }
.ba-booking-side .btn { min-height: 44px; }
.ba-booking .ba-ask-slot { grid-column: 1 / -1; }
.ba-status { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; background: var(--surface, #fff); }
.ba-status--green { background: var(--success-bg, #e9f9ef); color: var(--success, #166534); }
.ba-status--sun { background: var(--warning-bg, #fdf3e3); color: var(--warning, #92400e); }
.ba-status--sky { background: var(--info-bg, #eaf2fd); color: #1d4f9c; }
.ba-status--hot { background: var(--danger-bg, #fdeaea); color: var(--danger, #b91c1c); }
.ba-status--muted { background: #efece1; color: var(--text-muted, #565b57); }
.ba-tag { display: inline-flex; padding: 0 8px; border-radius: 999px; background: var(--success-bg, #e9f9ef); color: var(--success, #166534); font-size: 12px; font-weight: 750; }
.ba-empty { margin: 0; color: var(--text-dim, #6b716c); }

@media (max-width: 480px) {
  .ba-panel { padding: 14px; }
  .ba-day { padding: 10px; }
  .ba-time { max-width: 104px; }
  .ba-booking { grid-template-columns: minmax(0, 1fr); }
  .ba-booking-side { justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; }
}

/* ============================================================================
   Story look (Discovery shell only)
   ============================================================================ */
html[data-platform-brand='discovery'] .ba-title { font-family: var(--font-display, Anton, Impact, sans-serif); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.02; }
html[data-platform-brand='discovery'] .ba-brush { padding: .04em .18em 0; background: var(--sun, #ffe14a); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html[data-platform-brand='discovery'] .ba-h { font-family: var(--font-display, Anton, Impact, sans-serif); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; font-size: 20px; line-height: 1.05; }
html[data-platform-brand='discovery'] .ba-panel { border: 0; border-radius: var(--radius-lg, 24px); box-shadow: inset 0 0 0 1px var(--line, rgb(22 19 10 / 10%)), var(--shadow-card, 0 12px 28px -18px rgb(22 19 10 / 35%)); }
html[data-platform-brand='discovery'] .ba-day { background: var(--canvas, #f9f8f3); box-shadow: inset 0 0 0 1px var(--line, rgb(22 19 10 / 10%)); }
html[data-platform-brand='discovery'] .ba-day.is-open { background: var(--cream, #fffbe6); }
html[data-platform-brand='discovery'] .ba-day.is-closed { border-color: var(--line-2, rgb(22 19 10 / 18%)); box-shadow: none; }
html[data-platform-brand='discovery'] .ba-day.has-issue { box-shadow: inset 0 0 0 2px var(--hot, #ff5c8a); }
html[data-platform-brand='discovery'] .ba-day-name { font-family: var(--font-display, Anton, Impact, sans-serif); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: 16px; }
html[data-platform-brand='discovery'] .ba-range { border: 2px solid var(--ink, #16130a); box-shadow: 3px 3px 0 var(--ink, #16130a); }
html[data-platform-brand='discovery'] .ba-range.is-invalid { border-color: var(--hot, #ff5c8a); box-shadow: 3px 3px 0 var(--hot, #ff5c8a); }
html[data-platform-brand='discovery'] .ba-x:hover { background: var(--sun-soft, #fff4b8); }
html[data-platform-brand='discovery'] .ba-switch[aria-checked='true'] .ba-switch-track { background: var(--ink, #16130a); }
html[data-platform-brand='discovery'] .ba-switch[aria-checked='true'] .ba-switch-thumb { background: var(--sun, #ffe14a); }
html[data-platform-brand='discovery'] .ba-chip { border-color: var(--line-2, rgb(22 19 10 / 18%)); color: var(--ink-2, rgb(22 19 10 / 72%)); }
html[data-platform-brand='discovery'] .ba-chip[aria-pressed='true'] { background: var(--ink, #16130a); border-color: var(--ink, #16130a); color: var(--sun, #ffe14a); }
html[data-platform-brand='discovery'] .ba-length-row { background: var(--canvas, #f9f8f3); box-shadow: inset 0 0 0 1px var(--line, rgb(22 19 10 / 10%)); }
html[data-platform-brand='discovery'] .ba-length-row.is-paid { background: var(--sun-soft, #fff4b8); }
html[data-platform-brand='discovery'] .ba input[type='radio'], html[data-platform-brand='discovery'] .ba input[type='checkbox'] { accent-color: var(--ink, #16130a); }
html[data-platform-brand='discovery'] .ba-seg-opt input:checked + span { background: var(--ink, #16130a); color: var(--sun, #ffe14a); }
html[data-platform-brand='discovery'] .ba-note--sun, html[data-platform-brand='discovery'] .ba-banner, html[data-platform-brand='discovery'] .ba-pill { background: var(--sun, #ffe14a); color: var(--ink, #16130a); }
html[data-platform-brand='discovery'] .ba-note--sky { background: var(--sky-soft, #e4efff); }
html[data-platform-brand='discovery'] .ba-pill { transform: rotate(-2.5deg); box-shadow: 0 6px 14px -8px rgb(0 0 0 / 50%); }
html[data-platform-brand='discovery'] .ba-bar { background: var(--cream, #fffbe6); border: 2px solid var(--ink, #16130a); box-shadow: 6px 6px 0 var(--ink, #16130a); border-radius: 22px; }
html[data-platform-brand='discovery'] .ba-tz-chip { background: #efece1; }
html[data-platform-brand='discovery'] .ba-confirm { background: var(--green-soft, #dcf2e4); border: 2px solid var(--ink, #16130a); box-shadow: 6px 6px 0 var(--ink, #16130a); border-radius: 22px; }
html[data-platform-brand='discovery'] .ba-confirm-title { font-family: var(--font-display, Anton, Impact, sans-serif); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; font-size: 22px; line-height: 1.05; }
html[data-platform-brand='discovery'] .ba-confirm-tick { background: var(--ink, #16130a); color: var(--sun, #ffe14a); }
html[data-platform-brand='discovery'] .ba-error-card { background: var(--hot-soft, #ffe1ea); border: 2px solid var(--ink, #16130a); box-shadow: 6px 6px 0 var(--ink, #16130a); border-radius: 22px; }
html[data-platform-brand='discovery'] .ba-error-card--warn { background: var(--sun-soft, #fff4b8); }
html[data-platform-brand='discovery'] .ba-ask { border-color: var(--ink, #16130a); box-shadow: 6px 6px 0 var(--ink, #16130a); border-radius: 20px; background: var(--cream, #fffbe6); }
html[data-platform-brand='discovery'] .ba-ask-title { font-family: var(--font-display, Anton, Impact, sans-serif); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; font-size: 19px; }
html[data-platform-brand='discovery'] .ba-preview { border: 0; border-radius: var(--radius-lg, 24px); box-shadow: inset 0 0 0 1px var(--line, rgb(22 19 10 / 10%)); }
html[data-platform-brand='discovery'] .ba-slot { background: var(--sky-soft, #e4efff); }
html[data-platform-brand='discovery'] .ba-booking { background: var(--canvas, #f9f8f3); box-shadow: inset 0 0 0 1px var(--line, rgb(22 19 10 / 10%)); }
html[data-platform-brand='discovery'] .ba-status { transform: rotate(-2deg); }
html[data-platform-brand='discovery'] .ba-status--green { background: var(--green-soft, #dcf2e4); color: var(--green, #167a43); }
html[data-platform-brand='discovery'] .ba-status--sun { background: var(--sun, #ffe14a); color: var(--ink, #16130a); }
html[data-platform-brand='discovery'] .ba-status--sky { background: var(--sky-soft, #e4efff); }
html[data-platform-brand='discovery'] .ba-status--hot { background: var(--hot-soft, #ffe1ea); color: #9c1640; }

/* Entrances: only when motion is welcome (M12, M15). */
@media (prefers-reduced-motion: no-preference) {
  html[data-platform-brand='discovery'] .ba-confirm.is-new { animation: ba-drop .52s var(--spring, ease-out) both; }
  html[data-platform-brand='discovery'] .ba-confirm.is-new .ba-confirm-tick { animation: ba-pop .42s var(--spring, ease-out) .12s both; }
}
@keyframes ba-drop { from { opacity: 0; transform: translateY(-14px) rotate(-2deg) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ba-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .ba-spin { animation: none; border: 0; width: auto; height: auto; vertical-align: baseline; }
  .ba-spin::before { content: '⏳'; }
  .ba-switch-track, .ba-switch-thumb { transition: none; }
  .ba-confirm.is-new, .ba-confirm.is-new .ba-confirm-tick { animation: none; }
  html[data-platform-brand='discovery'] .ba-pill, html[data-platform-brand='discovery'] .ba-status { transform: none; }
}
