/* fabslots — monochrome SaaS UI. One column, one task per screen. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-muted: #f4f4f5;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #09090b;
  --text-2: #52525b;
  --text-3: #a1a1aa;
  --primary: #09090b;
  --primary-hover: #27272a;
  --on-primary: #ffffff;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --ring: 0 0 0 3px rgba(9, 9, 11, 0.12);
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --col: 560px;
  --gutter: 20px;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100dvh; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: var(--text); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.icon { flex: none; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--bg-muted); padding: 1px 5px; border-radius: 5px; }

#fabslots-language-control {
  position: fixed;
  z-index: 10000;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  border: 1px solid rgba(24, 24, 27, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 10px rgba(24, 24, 27, 0.08);
  backdrop-filter: blur(8px);
}

#fabslots-language-control select {
  min-height: 34px;
  padding: 0 28px 0 11px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #27272a;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

#fabslots-language-control[data-docked] {
  position: relative;
  top: auto;
  right: auto;
  z-index: auto;
  flex: none;
}

#app { min-height: 100dvh; display: flex; flex-direction: column; }

/* ---------- Top nav + progress ---------- */
.topnav {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: calc(var(--col) + var(--gutter) * 2); height: 60px; margin: 0 auto; padding: 0 var(--gutter);
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(8px);
}
.logo { display: block; height: 22px; width: auto; }
.back-btn { margin-left: -8px; }
.progress { flex: 1; height: 4px; border-radius: 99px; background: var(--bg-muted); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width .25s ease; }
.step-count { min-width: 34px; text-align: right; color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- Screen ---------- */
.screen { flex: 1; width: 100%; max-width: calc(var(--col) + var(--gutter) * 2); margin: 0 auto; padding: 20px var(--gutter) 32px; animation: enter .22s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.title { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; outline: none; text-wrap: balance; }
.lede { margin: 10px 0 0; color: var(--text-2); font-size: 15px; text-wrap: pretty; }
.body { margin-top: 28px; }

/* ---------- Bottom CTA ---------- */
.cta-bar { position: sticky; bottom: 0; z-index: 4; padding: 12px var(--gutter) calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 75%, rgba(255, 255, 255, 0)); }
.cta-inner { max-width: var(--col); margin: 0 auto; display: grid; gap: 10px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius); font-size: 15px; font-weight: 500; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--primary); color: var(--on-primary); min-height: 50px; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-secondary { border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.btn-secondary:hover:not(:disabled) { border-color: var(--border-strong); background: var(--bg-subtle); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--bg-muted); }
.btn-block { width: 100%; }
.btn-icon { width: 48px; padding: 0; min-height: 48px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-sm); color: var(--text-2); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--bg-muted); color: var(--text); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); text-decoration-color: currentColor; }

/* ---------- Inputs ---------- */
.field { display: grid; gap: 8px; min-width: 0; }
.field + .field, .field + .field-inline, .field-inline + .field, .field-inline + .field-inline { margin-top: 18px; }
.field-inline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.label { font-size: 14px; font-weight: 500; color: var(--text); }
.label-sm { font-size: 13px; font-weight: 500; color: var(--text-2); }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.counter, .muted-sm, .hint { color: var(--text-3); font-size: 13px; }
.hint { color: var(--text-2); }
.input {
  width: 100%; min-width: 0; height: 44px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg);
  font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: var(--border-strong); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.input-lg { height: 52px; font-size: 18px; }
select.input { appearance: none; padding-right: 36px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.input-inline { width: auto; height: 38px; font-size: 14px; }
.textarea { height: auto; min-height: 168px; padding: 12px; line-height: 1.6; resize: vertical; }
.input-time { width: 112px; height: 38px; padding: 0 10px; font-size: 15px; font-variant-numeric: tabular-nums; }
.input-bare { width: 100%; min-width: 0; padding: 4px 0; border: 0; background: transparent; font-size: 15px; outline: none; }
.input-bare:focus { box-shadow: inset 0 -1.5px 0 var(--primary); }
.input-title { font-size: 16px; font-weight: 600; box-shadow: inset 0 -1px 0 transparent; background-image: linear-gradient(to right, var(--border-strong) 50%, transparent 0); background-size: 6px 1px; background-repeat: repeat-x; background-position: 0 100%; }
.input-title:focus { background-image: none; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }
input[type=time]::-webkit-calendar-picker-indicator, input[type=date]::-webkit-calendar-picker-indicator, input[type=datetime-local]::-webkit-calendar-picker-indicator { opacity: .35; cursor: pointer; }
input[type=time]::-webkit-calendar-picker-indicator:hover, input[type=date]::-webkit-calendar-picker-indicator:hover { opacity: .8; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-2 .field + .field { margin-top: 0; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 99px; background: var(--bg);
  font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; transition: all .12s;
}
.chip:hover:not(:disabled) { border-color: var(--border-strong); background: var(--bg-subtle); }
.chip.is-selected { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip.is-selected:hover:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); }
.chip-ghost { border-style: dashed; color: var(--text-2); }
.chip-input { display: inline-flex; align-items: center; height: 36px; border: 1px solid var(--primary); border-radius: 99px; box-shadow: var(--ring); overflow: hidden; }
.chip-input input { width: 140px; height: 100%; padding: 0 4px 0 14px; border: 0; outline: none; background: transparent; font-size: 14px; }
.chip-input-add { height: 100%; padding: 0 14px; background: var(--primary); color: var(--on-primary); font-size: 13px; font-weight: 600; }

/* ---------- Lists ---------- */
.list { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.list-solo { margin-top: 20px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 0 16px; text-align: left; font-size: 15px; font-weight: 500; color: var(--text); transition: background .12s; }
.list-row + .list-row { border-top: 1px solid var(--border); }
.list-row .icon { color: var(--text-3); }
.list-row:hover { background: var(--bg-subtle); }
.list-row:hover .icon { color: var(--text); }
.list-row.is-selected .icon { color: var(--text); }
.type-group + .type-group { margin-top: 24px; }
.type-group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.type-group-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--bg-muted); }
.type-group-hint { margin-left: auto; color: var(--text-3); font-weight: 400; text-align: right; }

.add-row { display: flex; gap: 8px; }
.add-row .input { height: 48px; }
.list-people { margin-top: 16px; }
.person-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 8px 0 14px; }
.person-row + .person-row { border-top: 1px solid var(--border); }
.avatar { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-muted); color: var(--text-2); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.empty { margin-top: 16px; padding: 28px 16px; border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--text-3); font-size: 14px; text-align: center; }

.suggestions { display: grid; gap: 10px; margin-top: 22px; }

/* ---------- Cards / blocks ---------- */
.stack { display: grid; gap: 12px; }
.card { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); }
.card > * + * { margin-top: 16px; }
.card-head { display: flex; align-items: center; gap: 10px; }
.card-head .input-bare { flex: 1; }
.card-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.card-head .card-title { flex: 1; }
.card-foot { display: flex; align-items: center; gap: 6px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 13px; }
.row-block { padding: 16px 0; }
.row-block + .row-block { border-top: 1px solid var(--border); }
.row-block:first-child { padding-top: 0; }
.row-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.row-title { font-size: 15px; font-weight: 600; }
.sub { display: grid; gap: 12px; }

/* ---------- Option cards ---------- */
.options { display: grid; gap: 10px; }
.option-card { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); text-align: left; transition: border-color .12s, box-shadow .12s; }
.option-card:hover { border-color: var(--border-strong); }
.option-card.is-selected { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.radio { flex: none; width: 18px; height: 18px; margin-top: 2px; border: 1.5px solid var(--border-strong); border-radius: 50%; }
.is-selected .radio { border: 5px solid var(--primary); }
.option-title { display: block; font-size: 15px; font-weight: 600; }
.option-hint { display: block; margin-top: 2px; color: var(--text-2); font-size: 14px; }
.options + .stack { margin-top: 20px; }

/* ---------- Segmented ---------- */
.segmented { display: flex; padding: 3px; border-radius: var(--radius); background: var(--bg-muted); }
.segment { flex: 1; height: 34px; padding: 0 10px; border-radius: 7px; color: var(--text-2); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .12s, color .12s; }
.segment:hover { color: var(--text); }
.segment.is-active { background: var(--bg); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .04); }

/* ---------- Stepper ---------- */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stepper input { width: 56px; height: 40px; border: 0; border-inline: 1px solid var(--border); text-align: center; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; outline: none; }
.stepper input:focus { background: var(--bg-subtle); }
.stepper-btn { display: grid; place-items: center; width: 40px; height: 40px; color: var(--text-2); }
.stepper-btn:hover { background: var(--bg-subtle); color: var(--text); }

/* ---------- Switch ---------- */
.switch { position: relative; flex: none; display: inline-block; width: 40px; height: 24px; }
.switch input { position: absolute; inset: 0; z-index: 1; margin: 0; opacity: 0; cursor: pointer; }
.switch-track { position: absolute; inset: 0; border-radius: 99px; background: var(--border-strong); transition: background .15s; }
.switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--primary); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { box-shadow: var(--ring); }
.switch-sm { width: 34px; height: 20px; }
.switch-sm .switch-track::after { width: 16px; height: 16px; }
.switch-sm input:checked + .switch-track::after { transform: translateX(14px); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.toggle-copy { display: grid; gap: 2px; }
.toggle-label { font-size: 15px; font-weight: 500; }
.toggle-hint { color: var(--text-2); font-size: 13px; }
.group { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.group-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

/* ---------- Hours ---------- */
.hours { border: 1px solid var(--border); border-radius: var(--radius-lg); }
.hours-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 14px; }
.hours-row + .hours-row { border-top: 1px solid var(--border); }
.hours-day { display: flex; align-items: center; gap: 12px; width: 92px; font-size: 15px; font-weight: 500; cursor: pointer; }
.is-closed .hours-day span:last-child, .closed-label { color: var(--text-3); }
.closed-label { font-size: 14px; }
.time-range { display: flex; align-items: center; gap: 8px; }
.dash { color: var(--text-3); }

/* ---------- Day pills ---------- */
.day-pills { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day-pill { position: relative; }
.day-pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.day-pill span { display: grid; place-items: center; height: 36px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; color: var(--text-2); transition: all .12s; }
.day-pill:hover span { border-color: var(--border-strong); }
.day-pill input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.day-pill input:focus-visible + span { box-shadow: var(--ring); }
.day-pills + .input-inline { justify-self: start; margin-top: 4px; }

/* ---------- Times ---------- */
.times { display: flex; flex-wrap: wrap; gap: 8px; }
.time-chip { display: inline-flex; align-items: center; height: 36px; padding: 0 4px 0 12px; border: 1px solid var(--border); border-radius: 99px; }
.time-chip .input-bare { width: auto; padding: 0; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.time-chip .input-bare:focus { box-shadow: none; }
.time-chip input::-webkit-calendar-picker-indicator { display: none; }
.time-chip:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.time-chip-x { display: grid; place-items: center; width: 26px; height: 26px; margin-left: 2px; border-radius: 50%; color: var(--text-3); }
.time-chip-x:hover { background: var(--bg-muted); color: var(--text); }
.time-chip:not(:has(.time-chip-x)) { padding-right: 12px; }

/* ---------- Tables ---------- */
.layout-table { display: grid; gap: 8px; }
.layout-head, .layout-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px 88px 36px; gap: 8px; align-items: center; }
.layout-head { color: var(--text-3); font-size: 12px; font-weight: 500; }
.layout-row .input { height: 40px; font-size: 15px; }

/* ---------- Details ---------- */
.details { margin-top: 18px; border: 1px solid var(--border); border-radius: var(--radius); }
.details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; color: var(--text-2); font-size: 13px; cursor: pointer; list-style: none; }
.details summary::-webkit-details-marker { display: none; }
.details summary strong { color: var(--text); font-weight: 500; }
.details-action { color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.details[open] .details-action { visibility: hidden; }
.details-body { padding: 0 14px 14px; }

/* ---------- Summary ---------- */
.summary { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.summary-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 14px 16px; }
.summary-row + .summary-row { border-top: 1px solid var(--border); }
.summary dt { color: var(--text-2); font-size: 14px; }
.summary dd { margin: 0; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.summary .link-btn { margin: 0; font-size: 13px; }
.summary-compact .summary-row { grid-template-columns: 140px minmax(0, 1fr); }
.summary dd a { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Feedback ---------- */
.alert, .error-box { padding: 10px 14px; border: 1px solid var(--danger-border); border-radius: var(--radius); background: var(--danger-bg); color: var(--danger); font-size: 14px; }
.notice { padding: 10px 14px; border-radius: var(--radius); background: var(--success-bg); color: var(--success); font-size: 14px; }

/* ---------- Success ---------- */
.screen-success { padding-top: 32px; }
.success-mark { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 50%; background: var(--primary); color: var(--on-primary); }
.screen-success .summary { margin-top: 28px; }
.next-card { margin-top: 16px; }
.next-card .muted-sm { margin-top: 4px; }
.screen-success > .btn-ghost { margin-top: 16px; }

/* ---------- Dev token ---------- */
.token-box { margin-top: 24px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: var(--radius); font-size: 13px; color: var(--text-2); }
.token-box summary { cursor: pointer; }
.token-help { display: block; margin: 8px 0; color: var(--text-3); }
.token-box input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); }

/* ---------- Booking management (/manage/…) ---------- */
.management-panel { max-width: calc(var(--col) + var(--gutter) * 2); margin: 0 auto; padding: 32px var(--gutter); }
.management-panel h1 { margin: 6px 0 0; font-size: 28px; font-weight: 600; letter-spacing: -0.025em; }
.eyebrow { color: var(--text-3); font-size: 13px; font-weight: 500; }
.panel-intro { margin: 8px 0 0; color: var(--text-2); }
.booking-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 24px 0 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.meta-item { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.meta-item:nth-child(odd) { border-right: 1px solid var(--border); }
.meta-item span { display: block; color: var(--text-2); font-size: 13px; }
.meta-item strong { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; }
.management-panel .notice { margin-top: 12px; background: var(--bg-muted); color: var(--text-2); }
.management-panel .notice[role=status] { background: var(--success-bg); color: var(--success); }
.management-panel .error-box { margin-top: 12px; }
.subsection { margin-top: 24px; }
.subsection h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.inline-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.inline-field, .management-panel .field { display: grid; gap: 6px; }
.inline-field span, .management-panel .field span { font-size: 14px; font-weight: 500; }
.inline-field input, .management-panel .field select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); font-size: 16px; }
.inline-field input:focus, .management-panel .field select:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.management-panel .hint { display: block; margin-top: 8px; font-size: 13px; }
.toolbar { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.button-row { display: flex; gap: 8px; }

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .title { font-size: 26px; }
  .type-group-hint { display: none; }
  .summary-row { grid-template-columns: minmax(0, 1fr) auto; }
  .summary-row dt { grid-column: 1 / -1; font-size: 13px; }
  .summary-row dd { grid-column: 1; }
  .summary-row .link-btn { grid-column: 2; grid-row: 2; }
  .summary-compact .summary-row { grid-template-columns: minmax(0, 1fr); }
  .layout-head, .layout-row { grid-template-columns: minmax(0, 1fr) 60px 68px 32px; gap: 6px; }
  .input-time { width: 100px; }
  .next-card .grid-2 { grid-template-columns: 1fr; }
  .next-card .grid-2 .field + .field { margin-top: 0; }
  .hours-row { padding: 0 12px; }
  .hours-day { width: 84px; }
  .booking-meta { grid-template-columns: 1fr; }
  .meta-item:nth-child(odd) { border-right: 0; }
  .toolbar .button-row { width: 100%; }
  .toolbar .btn { flex: 1; }
}

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

/* ======================================================================
   Booking widget (.bk). Self-contained so it can be embedded elsewhere.
   ====================================================================== */
.book-page { width: 100%; max-width: 720px; margin: 0 auto; padding: 24px var(--gutter) 48px; }
.bk { --bk-hour: 56px; position: relative; font-size: 14px; color: var(--text); }
.bk button { font: inherit; }
.bk-loading, .bk-empty { padding: 40px 16px; color: var(--text-3); text-align: center; }
.bk-test { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 8px 12px; border-radius: var(--radius-sm); background: #fffbeb; color: #92400e; font-size: 13px; font-weight: 500; }
.bk-stage { display: grid; gap: 16px; min-width: 0; }
.bk-stage > * { min-width: 0; }
.bk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bk-eyebrow { color: var(--text-3); font-size: 13px; font-weight: 500; }
.bk-h { margin: 2px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.bk-muted { margin: 0; color: var(--text-2); }
.bk-link { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.bk-link:hover { color: var(--text); }
.bk-back { justify-self: start; text-decoration: none; }
.bk-tz { margin: 0; color: var(--text-3); font-size: 12px; }
.bk-error { padding: 10px 12px; border: 1px solid var(--danger-border); border-radius: var(--radius-sm); background: var(--danger-bg); color: var(--danger); font-size: 13px; }

/* Service picker */
.bk-services { display: grid; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.bk-service { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; text-align: left; color: var(--text-3); }
.bk-service + .bk-service { border-top: 1px solid var(--border); }
.bk-service:hover { background: var(--bg-subtle); color: var(--text); }
.bk-service strong { display: block; color: var(--text); font-size: 15px; font-weight: 500; }
.bk-service small { display: block; margin-top: 2px; color: var(--text-2); font-size: 13px; }

/* Options */
.bk-options { display: grid; gap: 10px; padding: 12px; border-radius: var(--radius); background: var(--bg-subtle); }
.bk-opt { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bk-opt-label { display: inline-flex; align-items: center; gap: 6px; min-width: 76px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.bk-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-pill { height: 30px; padding: 0 12px; border: 1px solid var(--border); border-radius: 99px; background: var(--bg); font-size: 13px; font-weight: 500; }
.bk-pill:hover { border-color: var(--border-strong); }
.bk-pill.is-on, .bk-pill.is-on:hover { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.bk-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 99px; background: var(--bg); }
.bk-stepper button { display: grid; place-items: center; width: 30px; height: 30px; color: var(--text-2); border-radius: 99px; }
.bk-stepper button:hover:not(:disabled) { color: var(--text); background: var(--bg-muted); }
.bk-stepper span { min-width: 24px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* View tabs + nav */
.bk-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bk-tabs { display: flex; width: 100%; padding: 3px; border-radius: var(--radius); background: var(--bg-muted); }
.bk-tab { flex: 1; height: 32px; border-radius: 7px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.bk-tab:hover { color: var(--text); }
.bk-tab.is-on { background: var(--bg); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .04); }
.bk-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.bk-nav-label { font-size: 15px; font-weight: 600; text-align: center; }
.bk-icon-btn { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-2); }
.bk-icon-btn:hover:not(:disabled) { color: var(--text); border-color: var(--border-strong); }
.bk-view { min-height: 220px; transition: opacity .15s; }
.bk-view.is-loading { opacity: .45; pointer-events: none; }
.bk-subhead { margin-bottom: 10px; font-size: 14px; font-weight: 600; }

/* Month */
.bk-month-head, .bk-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.bk-month-head span { padding: 4px 0; color: var(--text-3); font-size: 12px; font-weight: 500; text-align: center; }
.bk-day { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-height: 48px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.bk-day:disabled { color: var(--text-3); font-weight: 400; cursor: default; opacity: 1; }
.bk-day:not(:disabled) { background: var(--bg-muted); }
.bk-day:not(:disabled):hover { background: var(--border); }
.bk-day i { position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--text); }
.bk-day.is-today span { text-decoration: underline; text-underline-offset: 3px; }
.bk-day.is-on, .bk-day.is-on:hover { background: var(--primary); color: var(--on-primary); }
.bk-day.is-on i { background: var(--on-primary); }
.bk-dayslots { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }

/* Time chips (month + list) */
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.bk-time { height: 38px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-time:hover { border-color: var(--primary); }
.bk-time.is-on, .bk-time.is-on:hover { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }

/* Week grid */
.bk-week { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.bk-week-head { display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.bk-col-head { display: grid; justify-items: center; padding: 6px 0; font-size: 11px; color: var(--text-3); }
.bk-col-head strong { color: var(--text); font-size: 14px; font-weight: 600; }
.bk-col-head.is-today strong { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: var(--on-primary); }
.bk-week-body { max-height: 420px; overflow-y: auto; }
.bk-week-inner { position: relative; display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); background-image: repeating-linear-gradient(to bottom, var(--border) 0 1px, transparent 1px var(--bk-hour)); }
.bk-hours { position: relative; }
.bk-hours span { position: absolute; right: 6px; transform: translateY(-50%); color: var(--text-3); font-size: 10px; font-variant-numeric: tabular-nums; }
.bk-hours span:first-child { transform: none; top: 2px !important; }
.bk-col { position: relative; border-left: 1px solid var(--border); }
.bk-col.is-past { background: repeating-linear-gradient(45deg, transparent 0 6px, var(--bg-subtle) 6px 12px); }
.bk-block { position: absolute; left: 3px; right: 3px; display: flex; align-items: flex-start; padding: 1px 4px; border: 0; border-radius: 0; background: #e9e9ec; color: var(--text-2); font-size: 10px; font-weight: 500; line-height: 1.3; text-align: left; font-variant-numeric: tabular-nums; transition: background .1s; }
.bk-block span { position: relative; z-index: 1; white-space: nowrap; }
/* Runs of back-to-back start times render as one rounded bar. */
.bk-block:not(.is-cont) { border-top-left-radius: 5px; border-top-right-radius: 5px; }
.bk-block:not(:has(+ .bk-block.is-cont)) { border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; }
.bk-block:hover { z-index: 2; background: #d4d4d8; color: var(--text); }
.bk-block:not(:has(span)):hover::after, .bk-block.is-on:not(:has(span))::after { content: attr(data-time); position: relative; z-index: 1; white-space: nowrap; }
.bk-block.is-on, .bk-block.is-on:hover { z-index: 3; background: var(--primary); color: var(--on-primary); border-radius: 5px; }

/* Timeline */
.bk-tl { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); -webkit-overflow-scrolling: touch; }
.bk-tl-inner { position: relative; }
.bk-tl-ruler { position: relative; flex: none; height: 28px; }
.bk-tl-head { min-height: 28px !important; border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.bk-tl-head .bk-tl-label { background: var(--bg-subtle); }
.bk-tl-ruler span { position: absolute; top: 7px; transform: translateX(-50%); color: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.bk-tl-ruler span:first-child { transform: translateX(4px); }
.bk-tl-ruler span:last-child { transform: translateX(-110%); }
.bk-tl-body { position: relative; }
.bk-tl-row { display: flex; min-height: 52px; }
.bk-tl-body .bk-tl-row + .bk-tl-row { border-top: 1px solid var(--border); }
.bk-tl-label { position: sticky; left: 0; z-index: 4; flex: none; display: flex; align-items: center; width: 120px; padding: 0 12px; border-right: 1px solid var(--border); background: var(--bg); font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-tl-track { position: relative; flex: none; background-image: repeating-linear-gradient(to right, var(--border) 0 1px, transparent 1px 72px); }
.bk-block-h { top: 12px; bottom: 12px; left: auto; right: auto; align-items: center; border-radius: 0; }
.bk-block-h:not(.is-cont) { border-radius: 5px 0 0 5px; }
.bk-block-h:not(:has(+ .bk-block-h.is-cont)) { border-top-right-radius: 5px; border-bottom-right-radius: 5px; }
.bk-block-h:not(.is-cont):not(:has(+ .bk-block-h.is-cont)) { border-radius: 5px; }
.bk-now-wrap { position: absolute; top: 0; bottom: 0; pointer-events: none; z-index: 5; }
.bk-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger); }

/* List */
.bk-list { display: grid; gap: 20px; }

/* Footer + form */
.bk-footer { position: sticky; bottom: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); font-size: 13px; font-weight: 500; }
.bk-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: var(--radius-sm); background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 500; white-space: nowrap; }
.bk-btn:hover:not(:disabled) { background: var(--primary-hover); }
.bk-btn-block { width: 100%; height: 46px; }
.bk-btn-ghost { justify-self: center; background: transparent; color: var(--text-2); }
.bk-btn-ghost:hover:not(:disabled) { background: var(--bg-muted); color: var(--text); }
.bk-summary { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--bg-subtle); color: var(--text-2); font-size: 13px; }
.bk-summary strong { color: var(--text); font-size: 15px; font-weight: 600; }
.bk-form { display: grid; gap: 14px; }
.bk-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.bk-form input { height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 16px; }
.bk-form input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.bk-done { justify-items: center; padding: 16px 0; text-align: center; }
.bk-done-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--on-primary); }
.bk-note { max-width: 380px; margin: 0; color: var(--text-2); font-size: 13px; }

/* Preview frame on the success screen */
.preview { margin-top: 28px; }
.preview-head { margin-bottom: 12px; }
.preview-head .muted-sm { margin: 4px 0 0; }
.preview-frame { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .06); }
.preview-bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-bottom: 1px solid var(--border); background: var(--bg-subtle); font-size: 12px; }
.preview-dots { display: flex; gap: 5px; }
.preview-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.preview-url { flex: 1; min-width: 0; padding: 3px 10px; border-radius: 6px; background: var(--bg); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-open { color: var(--text-2); font-weight: 500; text-decoration: none; }
.preview-open:hover { color: var(--text); }
.preview-frame > .bk { padding: 18px; }

@media (max-width: 480px) {
  .bk-opt-label { min-width: 0; width: 100%; }
  .bk-week-head, .bk-week-inner { grid-template-columns: 34px repeat(7, minmax(0, 1fr)); }
  .bk-block { padding: 1px 2px; font-size: 9px; }
  .bk-footer { flex-direction: column; align-items: stretch; text-align: center; }
  .preview-frame > .bk { padding: 14px; }
}

/* ---------- Group bookings + share links ---------- */
.inline-with-unit { display: inline-flex; align-items: center; gap: 10px; }
.unit { min-width: 52px; color: var(--text-2); font-size: 14px; }
.share { margin-top: 28px; }
.share > .muted-sm { margin: 4px 0 12px; }
.share-list { border: 1px solid var(--border); border-radius: var(--radius-lg); }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.share-row + .share-row { border-top: 1px solid var(--border); }
.share-meta { display: grid; min-width: 0; }
.share-kind { color: var(--text-3); font-size: 12px; }
.share-label { font-size: 14px; font-weight: 500; }
.share-url { overflow: hidden; color: var(--text-2); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.share-url:hover { color: var(--text); text-decoration: underline; }
.btn-copy { flex: none; min-height: 34px; padding: 0 12px; font-size: 13px; }
.bk-head-actions { display: flex; align-items: center; gap: 12px; }
.bk-share { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--border); border-radius: 99px; color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.bk-share:hover { border-color: var(--border-strong); color: var(--text); }
.bk-opt-hint { color: var(--text-3); font-size: 12px; }
.bk-notice { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg-muted); color: var(--text-2); font-size: 13px; }

/* ---------- Floor plan editor ---------- */
.fp { display: grid; gap: 14px; }
.fp-areas { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.fp-area { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 14px; border: 1px solid var(--border); border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.fp-area:hover { border-color: var(--border-strong); color: var(--text); }
.fp-area.is-on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.fp-area-add { border-style: dashed; }
.fp-area-bar { display: flex; align-items: center; gap: 12px; }
.fp-area-bar .input-title { flex: 1; }
.fp-grid-size { display: inline-flex; align-items: center; gap: 2px; color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.fp-remove-area { margin: 0; font-size: 13px; }
.fp-palette { display: flex; flex-wrap: wrap; gap: 6px; }
.fp-palette .chip { flex: none; }
.fp-board { padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-lg); background:
  radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0) 0 0 / 12px 12px, var(--bg-subtle); }
.fp-grid { display: grid; gap: 4px; margin: 0 auto; }
.fp-cell { aspect-ratio: 1; min-width: 0; border-radius: 6px; background: transparent; transition: background .1s; }
.fp-cell:hover { background: rgba(9, 9, 11, .06); box-shadow: inset 0 0 0 1px var(--border-strong); }
.fp-item {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-width: 0; min-height: 0; margin: 3px; border: 1.5px solid var(--text); border-radius: 8px; background: var(--bg);
  color: var(--text); font-size: 12px; font-weight: 600; line-height: 1.1; touch-action: none; cursor: grab; user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06); transition: box-shadow .12s, background .12s;
}
.fp-item:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.fp-round { border-radius: 999px; }
.fp-booth { border-radius: 14px 14px 6px 6px; border-top-width: 5px; }
.fp-desk { border-width: 1.5px; border-radius: 4px; }
.fp-room { border-style: solid; border-radius: 6px; background: repeating-linear-gradient(135deg, var(--bg) 0 8px, var(--bg-subtle) 8px 16px); }
.fp-court { border-radius: 4px; background: linear-gradient(var(--border) 0 0) center / 100% 1.5px no-repeat, var(--bg); }
.fp-item.is-joinable::after { content: ""; position: absolute; inset: -5px; border: 1px dashed var(--border-strong); border-radius: inherit; pointer-events: none; }
.fp-item.is-selected { background: var(--primary); color: var(--on-primary); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(9, 9, 11, .15); }
.fp-item.is-selected.fp-court { background: var(--primary); }
.fp-item.is-dragging { z-index: 5; cursor: grabbing; opacity: .9; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.fp-item.is-blocked { border-color: var(--danger); background: var(--danger-bg); color: var(--danger); }
.fp-name { max-width: 100%; overflow: hidden; padding: 0 3px; text-overflow: ellipsis; white-space: nowrap; }
.fp-cap { display: inline-flex; align-items: center; gap: 2px; color: inherit; font-size: 10px; font-weight: 500; opacity: .7; font-variant-numeric: tabular-nums; }
.fp-grow { display: flex; gap: 16px; margin-top: -6px; }
.fp-grow .link-btn { margin-top: 0; font-size: 13px; }
.fp-tip { margin: 0; color: var(--text-2); font-size: 13px; }
.fp-inspector { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--primary); border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06); animation: enter .15s ease both; }
.fp-inspector .field-inline + .field-inline { margin-top: 0; }
.fp-inspector-head { display: flex; align-items: center; gap: 10px; }
.fp-inspector-head .input-title { flex: 1; }
.fp-kind { padding: 2px 8px; border-radius: 99px; background: var(--bg-muted); color: var(--text-2); font-size: 12px; font-weight: 500; }
.fp-done { margin: 0; }
.fp-size { display: inline-flex; align-items: center; gap: 6px; }
.fp-size .stepper input { width: 40px; }
.fp-size .stepper-btn { width: 32px; }
.fp-actions { display: flex; gap: 8px; }
.fp-actions .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
.fp-delete { margin-left: auto; color: var(--danger); }
.fp-delete:hover { background: var(--danger-bg); color: var(--danger); }
@media (max-width: 480px) {
  .fp-board { padding: 6px; }
  .fp-grid { gap: 2px; }
  .fp-item { margin: 2px; font-size: 11px; }
  .fp-size .stepper input { width: 32px; }
  .fp-size .stepper-btn { width: 28px; }
}

/* ---------- Per-day schedule ---------- */
.day-times { border: 1px solid var(--border); border-radius: var(--radius-lg); }
.dt-row { display: flex; align-items: flex-start; gap: 12px; min-height: 52px; padding: 8px 12px; }
.dt-row + .dt-row { border-top: 1px solid var(--border); }
.dt-row .hours-day { flex: none; width: 84px; min-height: 36px; }
.dt-row.is-off .hours-day span:last-child { color: var(--text-3); }
.dt-row .closed-label { align-self: center; }
.dt-row .times { flex: 1; }
.dt-add { width: 36px; height: 36px; border: 1px dashed var(--border-strong); border-radius: 99px; }
.day-times + .input-inline { justify-self: start; margin-top: 4px; }
.chip-tag { margin-left: 2px; padding: 1px 6px; border-radius: 99px; background: rgba(255, 255, 255, .2); font-size: 11px; font-weight: 600; }

/* ---------- Profile editor (.pe) ---------- */
.preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pe { display: grid; gap: 18px; }
.pe .field + .field { margin-top: 0; }
.pe-hero { position: relative; padding-bottom: 36px; }
.pe-banner { position: relative; display: block; width: 100%; aspect-ratio: 3 / 1; overflow: hidden; border-radius: var(--radius-lg); background: var(--brand-band); color: var(--on-primary); }
.pe-banner img, .pf-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pe-hint { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 13px; font-weight: 500; backdrop-filter: blur(4px); }
.pe-banner:not(.has-image) .pe-hint { inset: 0; right: auto; bottom: auto; justify-content: center; width: 100%; border-radius: 0; background: transparent; color: var(--on-primary); font-size: 14px; }
.pe-banner:hover .pe-hint { background: rgba(0, 0, 0, .6); }
.pe-banner:not(.has-image):hover { filter: brightness(1.05); }
.pe-logo { position: absolute; left: 16px; bottom: 0; display: grid; place-items: center; width: 76px; height: 76px; overflow: visible; border: 4px solid var(--bg); border-radius: 50%; background: var(--primary); color: var(--on-primary); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.pe-logo img, .pf-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; }
.pe-initials, .pf-logo span { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.pe-logo-badge { position: absolute; right: -4px; bottom: -2px; display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--bg); border-radius: 50%; background: var(--text); color: #fff; }
.pe-identity { margin-top: -6px; }
.pe-name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.pe-tagline { color: var(--text-2); font-size: 14px; }
.pe-removes { display: flex; gap: 16px; margin-top: -10px; }
.pe-removes .link-btn { margin: 0; font-size: 13px; }
.pe-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.pe-swatch { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.pe-swatch.is-on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--swatch); }
.pe-custom { background: conic-gradient(#ef4444, #f59e0b, #22c55e, #06b6d4, #6366f1, #d946ef, #ef4444); cursor: pointer; }
.pe-custom.is-on { background: var(--swatch); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--swatch); }
.pe-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pe-sample { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.pe-sample-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: var(--radius-sm); background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 500; }
.pe-sample-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--primary); border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--text); font-size: 13px; font-weight: 500; }
.pe-sample code { color: var(--text-3); background: none; }
.optional { margin-left: 4px; color: var(--text-3); font-size: 12px; font-weight: 400; }
.pe-about { min-height: 88px; }
.pe-actions { display: flex; gap: 8px; }
.pe-actions .btn { flex: 1; }

/* ---------- Public profile page (.pf) ---------- */
.book-page { max-width: 1040px; padding-top: 16px; }
.pf { display: grid; gap: 20px; }
.pf-hero { display: grid; gap: 12px; }
.pf-banner { position: relative; aspect-ratio: 3 / 1; max-height: 300px; width: 100%; overflow: hidden; border-radius: var(--radius-lg); background: var(--brand-band); }
.pf-identity { position: relative; display: flex; align-items: flex-end; gap: 16px; padding-left: 20px; }
.pf-logo { flex: none; margin-top: -58px; display: grid; place-items: center; width: 92px; height: 92px; border: 4px solid var(--bg); border-radius: 50%; background: var(--primary); color: var(--on-primary); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.pf-titles { min-width: 0; padding-top: 6px; align-self: flex-start; }
.pf-name { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.pf-tagline { margin: 2px 0 0; color: var(--text-2); font-size: 15px; }
.pf-about { max-width: 640px; margin: 0; color: var(--text-2); font-size: 15px; white-space: pre-line; }
.pf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.pf-book { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.pf-side { display: grid; gap: 16px; position: sticky; top: 16px; }
.pf-card { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.pf-card h2 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.pf-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pf-status { color: var(--text-3); font-size: 12px; font-weight: 500; }
.pf-status.is-open { color: var(--success); }
.pf-hours { margin: 0; display: grid; gap: 4px; font-size: 14px; }
.pf-hours div { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); }
.pf-hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.pf-hours .is-today { color: var(--text); font-weight: 600; }
.pf-team { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pf-team a { display: flex; align-items: center; gap: 10px; padding: 4px; border-radius: var(--radius-sm); color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; }
.pf-team a:hover { background: var(--bg-subtle); }
.pf-missing { padding: 64px 0; text-align: center; }
/* Narrow containers (phones and the success-screen preview) stack the layout. */
.preview-frame .pf-layout { grid-template-columns: 1fr; }
.preview-frame .pf-side { position: static; }
.preview-frame .pf-book { padding: 0; border: 0; }
.preview-frame > .pf { padding: 14px; }
@media (max-width: 760px) {
  .pf-layout { grid-template-columns: 1fr; }
  .pf-side { position: static; }
  .pf-book { padding: 0; border: 0; }
}
@media (max-width: 480px) {
  .pf-identity { flex-direction: column; align-items: flex-start; gap: 8px; padding-left: 12px; }
  .pf-logo { width: 72px; height: 72px; margin-top: -48px; }
  .pf-titles { padding-top: 0; }
  .pf-name { font-size: 22px; }
  .pf-banner { border-radius: var(--radius); }
}

/* ---------- After booking: notifications + add to calendar (booking-extras.js) ---------- */
.bk-extras, .manage-extras { width: 100%; max-width: 420px; text-align: left; }
.manage-extras { max-width: none; margin-top: 20px; }
.bx { display: grid; gap: 10px; }
.bx-card { display: grid; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.bx-push { border-color: var(--primary); background: var(--brand-soft, var(--bg-subtle)); }
.bx-push.is-on { border-color: var(--border); background: var(--bg); }
.bx-head { display: flex; align-items: flex-start; gap: 10px; }
.bx-head svg { flex: none; margin-top: 1px; color: var(--primary); }
.bx-head strong { display: block; font-size: 14px; font-weight: 600; }
.bx-head p { margin: 2px 0 0; color: var(--text-2); font-size: 13px; }
.bx-push .bk-btn { width: 100%; }
.bx-link { justify-self: start; color: var(--text-2); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.bx-error { margin: 0; color: var(--danger); font-size: 13px; }
.bx-cals { display: flex; flex-wrap: wrap; gap: 6px; }
.bx-cal { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: 99px; color: var(--text); font-size: 13px; font-weight: 500; text-decoration: none; }
.bx-cal:hover { border-color: var(--primary); }

/* ---------- Location card (location.js) ---------- */
.loc { display: grid; gap: 10px; }
.loc h2 { margin-bottom: 0; }
.loc-map { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius-sm); background: var(--bg-muted); }
.loc-address { margin: 0; color: var(--text); font-size: 14px; white-space: pre-line; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.loc-actions .bk-btn { height: 36px; }
.manage-location { margin-top: 12px; }
.loc-actions a { text-decoration: none; }
