/*
 * Shared structure for all concepts: reset, concept switcher, booking sheet, reveal.
 * Every colour, radius and font here comes from tokens the concept's own stylesheet defines:
 * --bk-bg --bk-fg --bk-muted --bk-line --bk-surface --bk-accent --bk-on-accent
 * --bk-radius --bk-radius-s --bk-border --bk-font-d --bk-scrim --bk-shadow
 */
*, *::before, *::after { box-sizing: border-box; }
/* The browser's own [hidden] rule loses to any class that sets display (e.g. .bk { display: flex }).
   Without this, the closed booking sheet stayed on screen as an invisible full-page layer and swallowed every click. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--cs-h) + 72px); }
body { margin: 0; padding-top: var(--cs-h); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
:root { --cs-h: 0px; --ease-out: cubic-bezier(.23, 1, .32, 1); }

/* Skip link: first stop for keyboard users, visible only when focused. */
.skip { position: fixed; left: 12px; top: calc(var(--cs-h) + 12px); z-index: 95; padding: 12px 18px; border-radius: 10px; background: var(--bk-accent); color: var(--bk-on-accent); font-weight: 700; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }
main:focus { outline: none; }
/* In-page links land on a section's heading (app.js): a little air between the header and the title. */
.sec-head { scroll-margin-top: 20px; }
::selection { background: var(--bk-accent); color: var(--bk-on-accent); }
.bk-lock { overflow: hidden; }
:focus-visible { outline: 2px solid var(--bk-accent); outline-offset: 3px; }

/* Concept switcher: a preview tool, deliberately neutral so it reads as outside the design. */
.cs {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--cs-h);
  display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 10px;
  background: #101012; color: #b9b9c0; border-bottom: 1px solid #2a2a2f;
  font: 500 12px/1 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.cs-label { margin-right: 6px; letter-spacing: .08em; text-transform: uppercase; font-size: 10px; color: #77777f; }
.cs a { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; color: inherit; text-decoration: none; white-space: nowrap; }
.cs a b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #2a2a2f; color: #fff; font-size: 11px; }
.cs a:hover { color: #fff; }
.cs a.is-on { background: #fff; color: #101012; }
.cs a.is-on b { background: #101012; }
.cs-schemes { display: flex; align-items: center; gap: 7px; margin-left: 8px; padding-left: 12px; border-left: 1px solid #2a2a2f; }
.cs-dot { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 2px solid #3a3a41; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); transition: border-color .15s, transform .15s; }
.cs-dot:hover { border-color: #8a8a93; }
.cs-dot.is-on { border-color: #fff; transform: scale(1.1); }
@media (max-width: 520px) { .cs-label { display: none; } .cs a { padding: 6px 8px; } }
@media (max-width: 400px) { .cs a:not(.is-on) span { display: none; } }

.nowrap { white-space: nowrap; }

/* "To confirm" chip for facts the business has not supplied yet. */
.todo {
  display: inline-block; padding: 2px 7px; border-radius: 999px; vertical-align: middle;
  border: 1px dashed currentColor; font-size: 11px; font-weight: 500; letter-spacing: .02em; opacity: .7; white-space: nowrap;
}

/* Open / closed status */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
[data-status] { display: inline-flex; align-items: center; gap: 8px; }
[data-status].is-open .status-dot { background: #35c46a; box-shadow: 0 0 0 0 rgba(53, 196, 106, .6); animation: pulse 2.2s infinite; }
[data-status].is-closed .status-dot { background: #e2574c; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(53, 196, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(53, 196, 106, 0); } }

/* Scroll reveal: only hides content when JS is running. */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--d, 0) * 60ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Booking sheet ---------- */
.bk { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.bk-scrim { position: absolute; inset: 0; background: var(--bk-scrim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: bk-fade .25s ease both; }
.bk-panel {
  position: relative; display: flex; flex-direction: column; width: 100%; max-height: min(92dvh, 760px);
  background: var(--bk-bg); color: var(--bk-fg); border: var(--bk-border);
  border-radius: var(--bk-radius) var(--bk-radius) 0 0; border-bottom: 0; box-shadow: var(--bk-shadow);
  animation: bk-up .38s cubic-bezier(.2, .8, .2, 1) both; outline: none;
}
@keyframes bk-fade { from { opacity: 0; } }
@keyframes bk-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes bk-side { from { transform: translateX(40px); opacity: 0; } }
.bk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 20px 14px; }
.bk-step { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--bk-accent-text, var(--bk-accent)); font-weight: 600; margin-bottom: 6px; }
.bk-head h2 { font-family: var(--bk-font-d); font-size: 22px; line-height: 1.15; font-weight: var(--bk-title-w, 700); letter-spacing: var(--bk-title-ls, -.01em); text-transform: var(--bk-title-tt, none); }
.bk-progress { height: 3px; background: var(--bk-line); margin: 0 20px; border-radius: 3px; overflow: hidden; }
.bk-progress i { display: block; height: 100%; background: var(--bk-accent); transition: width .35s ease; }
.bk-body { flex: 1; overflow-y: auto; padding: 6px 20px 20px; overscroll-behavior: contain; }
.bk-label { margin: 18px 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bk-muted); }
.bk-chips { display: grid; gap: 8px; }
.bk-chips-4 { grid-template-columns: repeat(4, 1fr); }
.bk-chip, .bk-slot, .bk-day, .bk-opt {
  border: var(--bk-border); border-color: var(--bk-line); background: var(--bk-surface); border-radius: var(--bk-radius-s);
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.bk-chip:active, .bk-slot:active, .bk-day:active, .bk-opt:active { transform: scale(.97); }
.bk-chip { height: 50px; padding: 0 4px; font-weight: 600; font-size: 14px; }
.bk-chip.is-on, .bk-slot.is-on, .bk-day.is-on { background: var(--bk-accent); border-color: var(--bk-accent); color: var(--bk-on-accent); }
.bk-opts { display: grid; gap: 8px; }
.bk-opt { display: flex; align-items: center; gap: 12px; padding: 16px 14px; text-align: left; font-size: 16px; }
.bk-opt-name { flex: 1; font-weight: 600; }
.bk-opt b { font-variant-numeric: tabular-nums; }
/* Radio: a ring with a dot. Checkbox: a rounded square with a tick. Both drawn, so they read on any surface. */
.bk-opt-mark { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--bk-muted); transition: border-color .2s, background .2s; }
.bk-opt-mark::after { content: ''; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--bk-accent); transform: scale(0); transition: transform .16s var(--ease-out); }
.bk-opt.is-on .bk-opt-mark { border-color: var(--bk-accent); }
.bk-opt.is-on .bk-opt-mark::after { transform: scale(1); }
.bk-opt-add .bk-opt-mark { border-radius: 6px; }
.bk-opt-add .bk-opt-mark::after { width: 6px; height: 11px; margin: 1px auto auto; border-radius: 0; background: none; border: solid var(--bk-on-accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); }
.bk-opt-add.is-on .bk-opt-mark { background: var(--bk-accent); }
.bk-opt-add.is-on .bk-opt-mark::after { transform: rotate(45deg) scale(1); }
.bk-opt.is-on { border-color: var(--bk-accent); box-shadow: inset 0 0 0 1px var(--bk-accent); }
/* Day strip: equal cards, weekday over date; the edges fade so it reads as scrollable. */
.bk-days { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 8px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent); }
.bk-days::-webkit-scrollbar { display: none; }
.bk-day { position: relative; flex: none; width: 58px; height: 78px; padding: 0 0 6px; border-radius: calc(var(--bk-radius-s) + 4px); display: grid; align-content: center; justify-items: center; gap: 7px; scroll-snap-align: start; }
/* Latvian weekday abbreviations run to seven letters ("ceturtd"), so the label is small and set tight. */
.bk-day span { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--bk-muted); white-space: nowrap; }
.bk-day b { font-family: var(--bk-font-d); font-size: 21px; line-height: 1; font-variant-numeric: tabular-nums; }
.bk-day.is-on span { color: inherit; opacity: .75; }
.bk-day.is-today::after { content: ''; position: absolute; bottom: 9px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--bk-accent); }
.bk-day.is-today.is-on::after { background: currentColor; }
/* The chosen day spelled out, with the time once picked. */
.bk-when { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 12px 0 0; padding: 14px 0 4px; border-top: 1px solid var(--bk-line); font-size: 15px; }
/* No rule under the chosen day: the first part-of-day label (Morning) already draws its own line. */
.bk-when b { font-weight: 700; }
.bk-when span { font-family: var(--bk-font-d); font-weight: 700; font-size: 17px; color: var(--bk-accent-text, var(--bk-accent)); font-variant-numeric: tabular-nums; }
/* Times grouped by part of day: a label with a hairline, then a calm 4-column grid of free times only. */
.bk-part { display: flex; align-items: center; gap: 12px; margin: 18px 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bk-muted); }
.bk-part::after { content: ''; flex: 1; height: 1px; background: var(--bk-line); }
.bk-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bk-slot { height: 46px; padding: 0; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.bk-empty { padding: 20px; text-align: center; color: var(--bk-muted); border: 1px dashed var(--bk-line); border-radius: var(--bk-radius-s); }
.bk-sum { display: grid; gap: 4px; padding: 14px; margin-top: 16px; border-radius: var(--bk-radius-s); background: var(--bk-surface); border: var(--bk-border); border-color: var(--bk-line); }
.bk-sum span { color: var(--bk-muted); font-size: 14px; }
.bk-field { display: grid; gap: 8px; margin-top: 16px; }
.bk-field span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bk-muted); }
.bk-field em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .8; }
.bk-field input, .bk-field textarea {
  width: 100%; padding: 14px; font: inherit; font-size: 16px; color: var(--bk-fg);
  background: var(--bk-surface); border: var(--bk-border); border-color: var(--bk-line); border-radius: var(--bk-radius-s);
}
.bk-field input::placeholder, .bk-field textarea::placeholder { color: var(--bk-muted); opacity: .9; }
.bk-field input:focus, .bk-field textarea:focus { outline: none; border-color: var(--bk-accent); box-shadow: 0 0 0 1px var(--bk-accent); }
.bk-demo { margin-top: 16px; font-size: 12px; color: var(--bk-muted); }
.bk-done { text-align: center; padding: 20px 0 4px; }
.bk-done h3 { font-family: var(--bk-font-d); font-size: 22px; margin: 16px 0 8px; text-transform: var(--bk-title-tt, none); }
.bk-done > p { color: var(--bk-muted); }
.bk-done .bk-sum { text-align: left; }
.bk-check { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--bk-accent); color: var(--bk-on-accent); animation: bk-pop .4s var(--ease-out) both; }
@keyframes bk-pop { from { transform: scale(.9); opacity: 0; } }
.bk-foot { padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--bk-line); }
.bk-foot-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: center; }
.bk-err { margin-bottom: 10px; font-size: 14px; font-weight: 600; color: #e2574c; }
.bk-total { display: grid; gap: 2px; grid-column: span 2; min-width: 0; }
.has-back .bk-total { grid-column: span 1; }
.bk-total span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--bk-muted); }
.bk-total b { font-family: var(--bk-font-d); font-size: 21px; white-space: nowrap; line-height: 1; font-variant-numeric: tabular-nums; }
.bk-next, .bk-back { height: 50px; padding: 0 6px; border-radius: var(--bk-radius-s); font-weight: 700; font-size: 16px; border: var(--bk-border); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-next { grid-column: span 2; background: var(--bk-accent); border-color: var(--bk-accent); color: var(--bk-on-accent); }
.bk-next.bk-wide { grid-column: 1 / -1; }
.bk-back { grid-column: span 1; background: transparent; border-color: var(--bk-line); font-size: 15px; }
.bk-next:active, .bk-back:active { transform: scale(.98); }

@media (min-width: 760px) {
  .bk { align-items: stretch; justify-content: flex-end; }
  .bk-panel { width: 460px; max-height: none; border-radius: 0; border-width: 0 0 0 1px; animation-name: bk-side; }
  .bk-head, .bk-body { padding-left: 28px; padding-right: 28px; }
  .bk-progress { margin: 0 28px; }
  .bk-days { margin: 0 -28px; padding-left: 28px; padding-right: 28px; scroll-padding-inline: 28px; }
  .bk-foot { padding: 16px 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* A new step fades in; choices inside a step change in place with no motion of the sheet. */
.bk-body.is-entering > * { animation: bk-step .35s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes bk-step { from { opacity: 0; transform: translateY(10px); } }

/* With a Back button the total has one column: a smaller numeral keeps clear of the button. */
.has-back .bk-total b { font-size: 16px; }
.has-back .bk-total span { font-size: 10px; }

/* Close button of the preview bar. */
.cs-x { position: absolute; right: 4px; top: 50%; width: 36px; height: 36px; margin-top: -18px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: #b9b9c0; font-size: 18px; line-height: 1; transition: background .15s, color .15s; }
.cs-x:hover { background: #2a2a2f; color: #fff; }
.cs { padding-inline: 46px; }

/* ---------- Photo parallax on scroll timelines ----------
   Runs on the compositor in step with scrolling (no script, no stutter). Browsers without scroll timelines
   leave the photos still. Each photo moves within its frame's spare 8% (it is drawn 16% larger, see [data-parallax]). */
@supports (animation-timeline: view()) {
  figure:has(> [data-parallax]) { view-timeline-name: --photo; }
  [data-parallax] { animation: photo-drift linear both; animation-timeline: --photo; animation-range: cover 0% cover 100%; }
  /* The hero photo trails the page: it moves down 28% of the distance scrolled over the first 1.5 screens. */
  [data-lag] { animation: hero-lag linear both; animation-timeline: scroll(root); animation-range: 0 150vh; }
}
@keyframes photo-drift { from { translate: 0 -6%; } to { translate: 0 6%; } }
@keyframes hero-lag { from { translate: 0 0; } to { translate: 0 42vh; } }
@media (prefers-reduced-motion: reduce) { [data-parallax], [data-lag] { animation: none; } }

/* ---------- Contact button and sheet ----------
   The button appears with the first scroll (.is-scrolled). Wide screens: it floats in the corner and the list opens
   as a card above it. Phones: each concept places it beside its booking dock (--ct-* tokens), and the list is a bottom sheet.
   Colours come from the booking sheet tokens, so each concept dresses it in its own style. */
.ct-fab {
  position: fixed; z-index: 61; right: max(24px, env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: var(--ct-size, 60px); height: var(--ct-size, 60px); padding: 0; display: grid; place-items: center;
  border: var(--ct-fab-border, 0); border-radius: var(--ct-fab-radius, 50%);
  background: var(--ct-fab-bg, var(--bk-accent)); color: var(--ct-fab-fg, var(--bk-on-accent));
  box-shadow: var(--ct-fab-shadow, 0 14px 34px rgba(0, 0, 0, .28));
  opacity: 0; transform: translateY(18px) scale(.9); pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out);
}
.is-scrolled .ct-fab, .ct-open .ct-fab { opacity: 1; transform: none; pointer-events: auto; }
.ct-fab:active { transform: scale(.94); }
.ct-ic { grid-area: 1 / 1; display: grid; transition: opacity .2s, transform .3s var(--ease-out); }
.ct-ic svg { width: 26px; height: 26px; }
.ct-ic-x { opacity: 0; transform: rotate(-90deg) scale(.6); }
.ct-open .ct-ic-chat { opacity: 0; transform: rotate(90deg) scale(.6); }
.ct-open .ct-ic-x { opacity: 1; transform: none; }

.ct { position: fixed; inset: 0; z-index: 99; display: flex; align-items: flex-end; justify-content: center; }
.ct-scrim { position: absolute; inset: 0; background: var(--bk-scrim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: bk-fade .25s ease both; }
.ct-panel {
  position: relative; width: 100%; padding: 20px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  background: var(--bk-bg); color: var(--bk-fg); border: var(--bk-border); border-bottom: 0;
  border-radius: var(--bk-radius) var(--bk-radius) 0 0; box-shadow: var(--bk-shadow);
  animation: bk-up .38s cubic-bezier(.2, .8, .2, 1) both; outline: none;
}
.ct-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ct-head h2 { font-family: var(--bk-font-d); font-size: 22px; line-height: 1.15; font-weight: var(--bk-title-w, 700); letter-spacing: var(--bk-title-ls, -.01em); text-transform: var(--bk-title-tt, none); }
.ct-status { margin-top: 8px; font-size: 14px; color: var(--bk-muted); }
.ct-list { display: grid; gap: 8px; }
.ct-row {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 12px 12px 12px; text-align: left; text-decoration: none;
  color: inherit; font: inherit; background: var(--bk-surface); border: var(--bk-border); border-color: var(--bk-line); border-radius: var(--bk-radius-s);
  transition: border-color .15s, transform .15s;
}
.ct-row:hover { border-color: var(--bk-accent); }
.ct-row:active { transform: scale(.98); }
.ct-tile { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: calc(var(--bk-radius-s) * .8); color: #fff; }
.ct-tile svg { width: 24px; height: 24px; }
.ct-wa .ct-tile { background: #25d366; }
.ct-tg .ct-tile { background: #2aabee; }
.ct-tg .ct-tile svg { margin-left: -2px; }
/* Call wears the familiar phone-app green; booking keeps the concept's own accent. */
.ct-call .ct-tile { background: #34c759; }
/* All four glyphs are white, like the WhatsApp and Telegram marks (on amber too, in Dark Luxury). */
.ct-book .ct-tile { background: var(--bk-accent); color: #fff; }
/* Solid glyphs like the WhatsApp and Telegram marks, sized down a little so all four read at one weight. */
.ct-call .ct-tile svg { width: 20px; height: 20px; }
.ct-book .ct-tile svg { width: 19px; height: 21px; }
.ct-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ct-txt b { font-size: 16px; font-weight: 700; }
.ct-txt span { font-size: 13px; color: var(--bk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-go { flex: none; color: var(--bk-muted); transition: color .15s, transform .2s var(--ease-out); }
.ct-go svg { display: block; width: 18px; height: 18px; }
.ct-row:hover .ct-go { color: var(--bk-accent-text, var(--bk-accent)); transform: translateX(2px); }
.ct-hours { margin-top: 14px; font-size: 13px; color: var(--bk-muted); text-align: center; }
.ct-open { overflow: hidden; }

@media (min-width: 900px) {
  .ct { justify-content: flex-end; padding: 0 max(24px, env(safe-area-inset-right, 0px)) calc(24px + var(--ct-size, 60px) + 14px + env(safe-area-inset-bottom, 0px)) 0; }
  .ct-scrim { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; animation: none; }
  .ct-panel { width: 380px; padding-bottom: 18px; border-bottom: var(--bk-border); border-radius: var(--bk-radius);
    box-shadow: var(--ct-pop-shadow, 0 30px 80px rgba(0, 0, 0, .35)); transform-origin: 100% 100%; animation: ct-pop .3s var(--ease-out) both; }
  .ct-open { overflow: visible; }
  .ct-open .ct-fab { z-index: 101; }
}
@keyframes ct-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }

/* ---------- Sheet component: booking sheet, contact sheet, side menu ----------
   Every panel that slides over the page shares one look, modelled on the contact sheet: no frame line along its edge,
   a soft shadow to lift it off the page, and a round 48px close button with a hairline that fills with the accent on hover.
   Concepts tune it through tokens only (defaults in brackets):
   --sheet-frame        the panel's edge line (none)
   --sheet-shadow       shadow of a bottom sheet, rising from its top edge
   --sheet-side-shadow  shadow of a panel docked to the right edge (booking sheet on wide screens, side menu)
   --sheet-pop-shadow   shadow of the floating contact card on wide screens
   --sheet-x-radius, --sheet-x-border  shape of the close button (circle, hairline in --bk-line) */
.bk-panel, .ct-panel { border: var(--sheet-frame, 0); border-bottom: 0; box-shadow: var(--sheet-shadow, 0 -16px 48px -16px rgba(0, 0, 0, .22)); }
.mn-panel { border: var(--sheet-frame, 0); border-right: 0; box-shadow: var(--sheet-side-shadow, -24px 0 60px -20px rgba(0, 0, 0, .25)); }
.bk-x, .ct-x, .mn-x {
  flex: none; width: 48px; height: 48px; padding: 0; display: grid; place-items: center;
  border: var(--sheet-x-border, 1px solid var(--bk-line)); border-radius: var(--sheet-x-radius, 50%); background: none; color: var(--bk-fg);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.bk-x:hover, .ct-x:hover, .mn-x:hover { background: var(--bk-accent); border-color: var(--bk-accent); color: var(--bk-on-accent); }
.bk-x:active, .ct-x:active, .mn-x:active { transform: scale(.92); }
.bk-x svg, .ct-x svg, .mn-x svg { width: 18px; height: 18px; }
@media (min-width: 760px) {
  .bk-panel { border: 0; border-left: var(--sheet-frame, 0); box-shadow: var(--sheet-side-shadow, -24px 0 60px -20px rgba(0, 0, 0, .25)); }
}
@media (min-width: 900px) {
  .ct-panel { border: var(--sheet-frame, 0); box-shadow: var(--sheet-pop-shadow, 0 30px 80px -20px rgba(0, 0, 0, .3)); }
}

/* Live queue line and card (app.js renderQueue): the same dot as the open/closed status, green and pulsing while open. */
[data-queue="line"] { display: inline-flex; align-items: center; gap: 8px; }
[data-queue].is-open .status-dot { background: #35c46a; box-shadow: 0 0 0 0 rgba(53, 196, 106, .6); animation: pulse 2.2s infinite; }
[data-queue].is-closed .status-dot { background: #e2574c; }

/* ---------- Booking sheet, Bayloop flow ----------
   The pinned bar of three steps, the pick line, the service select, extras with their length, the soonest box,
   hours then minutes, the car and model note, the phone with its country code, and the done rows. Tokens only. */
.bk-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 20px; padding: 0; list-style: none; }
.bk-bar li { display: grid; gap: 8px; min-width: 0; font-size: 12px; font-weight: 600; color: var(--bk-muted); }
.bk-bar li::before { content: ''; height: 3px; border-radius: 3px; background: var(--bk-line); transition: background .3s; }
.bk-bar li.is-now, .bk-bar li.is-done { color: var(--bk-fg); }
.bk-bar li.is-now::before, .bk-bar li.is-done::before { background: var(--bk-accent); }
.bk-bar li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-pick { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 14px 0 0; padding: 12px 14px; border-radius: var(--bk-radius-s);
  background: var(--bk-surface); font-size: 14px; }
.bk-pick span { min-width: 0; }
.bk-link { flex: none; padding: 0; border: 0; background: none; color: var(--bk-accent-text, var(--bk-fg)); font: 600 14px inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bk-chip.is-out { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.bk-chips-2 { grid-template-columns: repeat(2, 1fr); }
.bk-select { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; font: inherit; color: inherit;
  border: var(--bk-border); border-color: var(--bk-line); border-radius: var(--bk-radius-s); background: var(--bk-surface); cursor: pointer; }
.bk-select span { display: grid; gap: 3px; }
.bk-select b { font-size: 16px; }
.bk-select small, .bk-opt-name small { display: block; font-size: 13px; font-weight: 500; color: var(--bk-muted); }
.bk-select i { display: grid; color: var(--bk-muted); transition: transform .25s; }
.bk-select i svg { width: 18px; height: 18px; }
.bk-select.is-open i { transform: rotate(180deg); }
.bk-svc-list { margin-top: 8px; }
.bk-day.is-none { opacity: .4; border-style: dashed; }
.bk-soon { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 12px 12px 16px;
  border-radius: var(--bk-radius-s); background: var(--bk-surface); border: var(--bk-border); border-color: var(--bk-line); }
.bk-soon span { display: grid; gap: 2px; }
.bk-soon small { font-size: 12px; color: var(--bk-muted); }
.bk-soon b { font-family: var(--bk-font-d); font-size: 19px; font-variant-numeric: tabular-nums; }
.bk-take { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: var(--bk-border); border-color: var(--bk-fg); background: none; color: var(--bk-fg);
  font: 600 14px inherit; cursor: pointer; transition: background .15s, color .15s; }
.bk-take:hover, .bk-take.is-on { background: var(--bk-accent); border-color: var(--bk-accent); color: var(--bk-on-accent); }
.bk-hours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bk-hour { height: 44px; padding: 0; border: var(--bk-border); border-color: var(--bk-line); border-radius: 999px; background: var(--bk-surface); font: 600 15px inherit;
  color: inherit; font-variant-numeric: tabular-nums; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.bk-hour.is-on { background: var(--bk-fg); border-color: var(--bk-fg); color: var(--bk-bg); }
.bk-hour.is-none { opacity: .35; border-style: dashed; cursor: not-allowed; }
.bk-hours + .bk-slots { margin-top: 10px; }
.bk-note { display: grid; gap: 10px; margin-top: 14px; padding: 14px; border-radius: var(--bk-radius-s); background: var(--bk-surface); border: var(--bk-border); border-color: var(--bk-line); font-size: 14px; }
.bk-note .bk-take { justify-self: start; }
.bk-note-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.bk-ok { margin-top: 12px; font-size: 14px; color: var(--bk-muted); }
.bk-tel { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: stretch; }
.bk-tel b { display: grid; place-items: center; padding: 0 12px; border-radius: var(--bk-radius-s); background: var(--bk-surface); border: var(--bk-border); border-color: var(--bk-line);
  font-size: 15px; font-weight: 600; white-space: nowrap; letter-spacing: 0; text-transform: none; color: var(--bk-fg); }
.bk-hint { margin-top: 10px; font-size: 13px; color: var(--bk-muted); }
.bk-line-btn { margin-top: 10px; min-height: 46px; width: 100%; border-radius: var(--bk-radius-s); border: var(--bk-border); border-color: var(--bk-fg); background: none;
  color: var(--bk-fg); font: 600 15px inherit; cursor: pointer; }
.bk-line-btn:hover { background: var(--bk-fg); color: var(--bk-bg); }
.bk-paid { font-size: 14px; color: var(--bk-fg); }
.bk-rows { display: grid; margin: 18px 0 0; text-align: left; border-top: 1px solid var(--bk-line); }
.bk-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--bk-line); }
.bk-rows dt { color: var(--bk-muted); font-size: 14px; }
.bk-rows dd { margin: 0; font-weight: 600; text-align: right; }
.bk-next3 { display: grid; gap: 8px; margin: 0; padding-left: 20px; text-align: left; font-size: 14px; }
.bk-done .bk-label { text-align: left; }
/* Foot: the price on its own line, then Back (or Close) and the main button. */
.bk-foot .bk-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; grid-column: auto; }
.bk-foot .bk-total b { font-size: 22px; }
.bk-foot .bk-foot-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.bk-foot .bk-foot-row .bk-back { grid-column: auto; }
.bk-foot .bk-foot-row .bk-next { grid-column: auto; }
.bk-foot .bk-foot-row.is-done { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.bk-foot .bk-foot-row.is-done .bk-next:only-child { grid-column: 1 / -1; }
@media (min-width: 760px) { .bk-bar { margin: 0 28px; } }

/* Model fields use a datalist: hide the browser's own heavy arrow, the list still opens as you type. */
input[list]::-webkit-calendar-picker-indicator { display: none !important; opacity: 0; }
.bk-rows dt { font: 400 14px/1.4 inherit; font-family: inherit; text-transform: none; letter-spacing: 0; }
.bk-when-done { margin-top: 14px; font-size: 17px; font-weight: 600; color: var(--bk-fg); }

/* ---------- Chat in the contact sheet (Bayloop's chat, our style) ----------
   The chat row leads the list; the start form and the conversation take over the same sheet. */
/* The chat tile: a soft violet, apart from the green and blue messengers and the coral booking tile. */
.ct-chat .ct-tile { background: #7b61ff; color: #fff; }
.ct-chat .ct-tile svg { width: 22px; height: 22px; }
.ch-head { align-items: center; }
.ch-head > div { flex: 1; min-width: 0; }
.ch-back { flex: none; width: 40px; height: 40px; margin-left: -8px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--bk-fg); cursor: pointer; }
.ch-back:hover { background: var(--bk-surface); }
.ch-back svg { width: 22px; height: 22px; }
.ct-panel.is-chat { display: flex; flex-direction: column; height: min(640px, 86vh); height: min(640px, 86dvh); }
.ch-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ch-start { display: grid; align-content: start; gap: 2px; overflow-y: auto; padding-bottom: 4px; }
.ch-intro { font-size: 15px; color: var(--bk-muted); }
.ch-start textarea, .ch-compose textarea { font: inherit; resize: none; }
.ch-start .ch-go { margin-top: 16px; width: 100%; }
.ch-log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 0 12px; overscroll-behavior: contain; }
.ch-msg { max-width: 84%; display: grid; gap: 4px; }
.ch-msg p { padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.ch-msg time { font-size: 11px; color: var(--bk-muted); padding: 0 6px; }
.ch-me { align-self: flex-end; justify-items: end; }
.ch-me p { background: var(--bk-fg); color: var(--bk-bg); border-bottom-right-radius: 6px; }
.ch-them { align-self: flex-start; }
.ch-them p { background: var(--bk-surface); border: var(--bk-border); border-color: var(--bk-line); border-bottom-left-radius: 6px; }
.ch-book { justify-self: start; margin-top: 2px; }
.ch-typing p { display: flex; gap: 4px; padding: 14px 16px; }
.ch-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--bk-muted); animation: ch-dot 1s infinite ease-in-out; }
.ch-typing i:nth-child(2) { animation-delay: .15s; }
.ch-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ch-dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.ch-compose { display: flex; align-items: flex-end; gap: 8px; padding-top: 10px; border-top: 1px solid var(--bk-line); }
.ch-compose textarea { flex: 1; min-height: 46px; max-height: 120px; padding: 12px 16px; border-radius: 23px; border: var(--bk-border); border-color: var(--bk-line);
  background: var(--bk-surface); color: var(--bk-fg); font-size: 16px; line-height: 1.35; }
.ch-compose textarea:focus { outline: none; border-color: var(--bk-fg); }
.ch-send { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bk-fg); color: var(--bk-bg); cursor: pointer; transition: transform .15s; }
.ch-send:active { transform: scale(.92); }
.ch-visually { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (prefers-reduced-motion: reduce) { .ch-typing i { animation: none; } }
/* The start form is one column at every width (the booking fields sit in two columns on wide screens). */
.ch-start { grid-template-columns: minmax(0, 1fr); }
.ch-start > * { grid-column: 1 / -1; }

/* Focus rings are never cut off. The page's focus ring stands 5px outside a control (2px line, 3px offset), and a
   field's focus line 1px. Every scrolling box that holds controls (and so clips) keeps at least 6px of room on the
   sides a ring can reach, with the same negative margin so nothing moves. */
.ch-start { padding-inline: 6px; margin-inline: -6px; padding-top: 6px; margin-top: -6px; }
.ch-log { padding-inline: 6px; margin-inline: -6px; }
.bk-days { padding-top: 6px; margin-top: -4px; }
.bk-field textarea { display: block; line-height: 1.45; }
/* The chat composer matches the other fields and buttons: the same corner radius as the inputs and the main
   buttons, the same focus line (accent border plus 1px), and a send button with the same corners. */
.ch-compose textarea { border-radius: var(--bk-radius-s); }
.ch-compose textarea:focus { outline: none; border-color: var(--bk-accent); box-shadow: 0 0 0 1px var(--bk-accent); }
.ch-send { border-radius: var(--bk-radius-s); }
/* The back button in the chat header is the same 48px circle as the close button beside it (seen on hover). */
.ch-back { width: 48px; height: 48px; margin-left: -13px; }
/* The pick line on steps 2 and 3 is built like the fields under it: one height for both (--bk-field-h), the same
   border, corners and padding, so the summary reads as one more row of the form. */
.bk { --bk-field-h: 56px; }
.bk-field input { min-height: var(--bk-field-h); }
.bk-pick { align-items: center; min-height: var(--bk-field-h); padding: 8px 14px; border: var(--bk-border); border-color: var(--bk-line); }
/* "Send code" is as tall as the other buttons in the sheet (Back, Continue). */
.bk-line-btn { min-height: 0; height: 50px; }

/* Two-way switch in the sheet (customer type): as tall as the buttons (50px), the same corners and border as the
   fields, a light thumb that slides, as the price list's size switch does. Tokens only, so it suits every theme. */
.bk-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: 50px; padding: 4px;
  border-radius: var(--bk-radius-s); background: var(--bk-surface); border: var(--bk-border); border-color: var(--bk-line); }
.bk-seg::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 12px) / 2);
  border-radius: max(0px, calc(var(--bk-radius-s) - 4px)); background: var(--bk-bg); box-shadow: 0 0 0 1px var(--bk-line), 0 1px 3px rgba(0, 0, 0, .08);
  transform: translateX(calc(var(--idx, 0) * (100% + 4px))); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.bk-seg-btn { position: relative; min-width: 0; padding: 0 6px; border: 0; border-radius: max(0px, calc(var(--bk-radius-s) - 4px)); background: none;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--bk-muted); cursor: pointer; transition: color .3s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-seg-btn.is-on { color: var(--bk-fg); }
@media (prefers-reduced-motion: reduce) { .bk-seg::before { transition: none; } }
/* The "booked" check is green, the same green as the open-now dot (Urban keeps its own lime square). */
.bk-check { background: #35c46a; color: #fff; }

/* The add-on checkbox tick: a check drawn by a mask, centred in the box (the rotated-border tick sat high). */
.bk-opt-add .bk-opt-mark::after { inset: 0; width: 14px; height: 14px; margin: auto; border: 0; border-radius: 0; background: var(--bk-on-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.2l3.3 3.3L13 4.8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.2l3.3 3.3L13 4.8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: scale(0); }
.bk-opt-add.is-on .bk-opt-mark::after { transform: scale(1); }

/* Phones and tablets: the chat takes the screen but a strip at the top, where a tap on the dimmed page closes it.
   Swipes inside the chat never reach the page. */
@media (max-width: 899px) {
  .ct-panel.is-chat { height: calc(100vh - 64px - env(safe-area-inset-top, 0px)); height: calc(100dvh - 64px - env(safe-area-inset-top, 0px)); }
}
.ct-panel, .bk-panel { overscroll-behavior: contain; }
/* No line above the composer: the chat keeps itself scrolled to the newest message. */
.ch-compose { border-top: 0; }
