/* ============================================================
   JLM Booking — Pass 2 design
   Two fully designed themes driven by CSS custom properties:
   - Light: warm paper + deep leaf green (default / system light)
   - Dark:  deep-forest theme (designed, not an inversion)
   Theme resolution:
   - No data-theme on <html>  -> follows prefers-color-scheme
   - data-theme="light"      -> light, overrides the media query
   - data-theme="dark"       -> dark,  overrides the media query
   The saved choice ("jlm-theme" in localStorage: system|light|dark)
   is applied before first paint by the inline script in index.html.
   Gold (--accent) is decorative only: rules, rings and badges.
   It is never used for body text.
   ============================================================ */

/* ---------- Light theme (tokens) — re-based on Jamie's logo,
   Oct 25, 2026: deep #002C27, leaf deepened for AA #4C7C3E,
   highlight tint #E7F0DC. Mirrors the app's ThemePalette. ---------- */
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F7F5EF;
  --surface: #FFFFFF;
  --surface-alt: #E7F0DC;
  /* NOV 14 (Jamie — washed-out chat in dark mode): the chat panel
   * reads var(--card) but no theme ever defined it, so it fell
   * back to #fff in BOTH themes while the ink followed the theme
   * (near-white in dark) — 1.09:1, unreadable. The card IS the
   * surface, per theme. */
  --card: #FFFFFF;
  --primary: #002C27;
  --action: #1d7a4f;
  --on-action: #FFFFFF;
  --accent: #C29B3C;
  --ink: #14231C;
  --ink-2: #44563C;
  --divider: #D8E2CC;
  --err: #B00020;
  /* FW3 (L-WV3): the "Closed until" status colour, per theme —
     #B00020 on the light hero surface (#FFFFFF) = 7.33:1. The dark
     value lives in the two dark token blocks below. */
  --closed: #B00020;
  --success: #2E6B30;
  --header-bg: #002C27;
  --header-ink: #FFFFFF;
  --sel: #DCEBD2;
  --shadow: 0 1px 2px rgba(20, 35, 28, 0.05), 0 10px 30px rgba(20, 35, 28, 0.08);
  --shadow-hover: 0 2px 4px rgba(20, 35, 28, 0.07), 0 14px 36px rgba(20, 35, 28, 0.12);
}

/* ---------- Dark theme (tokens) — the logo's layered greens ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #03120E;
  --surface: #073428;
  --surface-alt: #0C4634;
  --card: #073428;
  --primary: #B6D7A5;
  --action: #1d7a4f;
  --on-action: #FFFFFF;
  --accent: #D9B45C;
  --ink: #F2F7EC;
  --ink-2: #B9C9A8;
  --divider: #1E4A3A;
  --err: #DE7A8D;
  /* FW3 (L-WV3): #E88A7D (the calendar closed tint) on the dark hero
     surface #073428 = 5.46:1 — the old shared #b3261e was 2.1:1. */
  --closed: #E88A7D;
  --success: #8FCB8F;
  --header-bg: #002C27;
  --header-ink: #F2F7EC;
  --sel: #0E4A35;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.4), 0 14px 36px rgba(0, 0, 0, 0.45);
}

/* System dark — only when no explicit theme is set, so an explicit
   data-theme="light" always overrides the media query. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #03120E;
    --surface: #073428;
    --surface-alt: #0C4634;
    --card: #073428;
    --primary: #B6D7A5;
    --action: #1d7a4f;
    --on-action: #FFFFFF;
    --accent: #D9B45C;
    --ink: #F2F7EC;
    --ink-2: #B9C9A8;
    --divider: #1E4A3A;
    --err: #DE7A8D;
    --closed: #E88A7D;
    --success: #8FCB8F;
    --header-bg: #002C27;
    --header-ink: #F2F7EC;
    --sel: #0E4A35;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.4), 0 14px 36px rgba(0, 0, 0, 0.45);
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

:root {
  --font-display: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  transition: background-color 0.25s ease, color 0.25s ease;
  /* FULL REVIEW C (half-loaded footer): the page is a full-height
     column and <main> grows, so on a short or still-loading screen
     the footer sits at the bottom of the window instead of floating
     mid-page over an empty void. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

::selection { background: var(--surface-alt); color: var(--ink); }

[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary);
}

h2 {
  font-size: 24px;
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

a { color: var(--primary); }
a:hover { color: var(--action); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 2px;
  border-radius: 6px;
}

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

/* ---------- Header ---------- */
header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 24px 20px;
  background: var(--header-bg);
  color: var(--header-ink);
  border-bottom: 3px solid var(--accent);
  box-shadow: var(--shadow);
}

/* Platform mark floats on the brand colour — NO square/background
   box. Small in the header (0.3.6): the header is the JLB platform
   layer only; the business's own branding lives in .biz-banner. */
header .logo {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  flex: none;
}

header h1 {
  margin: 0;
  font-size: 26px;
  color: var(--header-ink);
}

header .tag {
  margin: 5px 0 0;
  font-size: 15px;
  color: var(--header-ink);
  opacity: 0.88;
  max-width: 46ch;
}

/* Theme toggle — pill sitting on the header in both themes */
.theme-toggle {
  margin-left: auto;
  align-self: flex-start;
  flex: none;
  background: var(--surface-alt);
  color: var(--ink);
  border: 1px solid var(--divider);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle:active { transform: translateY(1px); }
/* Jamie, Nov 4, 2026 (top bar): the logged-out Sign in glow — a
 * soft ring in the client green (#68A64D family), gently
 * breathing, never a flashing distraction. Stops on the first tap
 * (app.js) and whenever the person is signed in. */
header .theme-toggle.signin-glow {
  border-color: #68A64D;
  box-shadow: 0 0 0 2px rgba(104, 166, 77, 0.55), 0 0 16px 4px rgba(104, 166, 77, 0.45);
  animation: signinGlowPulse 2.4s ease-in-out infinite;
}
@keyframes signinGlowPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(104, 166, 77, 0.55), 0 0 12px 3px rgba(104, 166, 77, 0.38); }
  50% { box-shadow: 0 0 0 3px rgba(104, 166, 77, 0.65), 0 0 20px 6px rgba(104, 166, 77, 0.52); }
}
@media (prefers-reduced-motion: reduce) {
  header .theme-toggle.signin-glow { animation: none; }
}

/* ---------- D42 hover reaction (Jamie, Nov 5, 2026) ----------
 * Jamie's video of the Muse site: a slim icon rail where each
 * icon swells on hover, a soft pill highlight settles behind it
 * and its name slides out beside it. He asked for the same
 * reaction on the booking side ("still have it open up when you
 * hover over it"); the scope call was delegated and taken as:
 * top-bar controls + primary action buttons here, the business
 * website's rail as a chained sibling.
 * This page's top-bar controls wear their names as text already
 * (Dark mode / Sign in / My account / Sign out pills), so they
 * take the swell + highlight; the one control whose name is NOT
 * written on it — the EN/FR language switch — also gets the
 * name chip: a small pill under the button, filled by app.js
 * from the same i18n string the switch answers to
 * (t('Language')). Primary action buttons are the classless
 * action-filled buttons the flow builds (el('button', label)
 * with no variant class — the sticky bar's #barAction included),
 * plus the pay-ahead link; they swell more gently, being wide.
 * HARD RULES: the whole reaction lives behind a real-mouse gate
 * (hover-capable + fine pointer — touch never sees it), it is
 * transform/opacity ONLY so no hover can move another pixel of
 * the page (LOOP2's no-jumping rule), keyboard focus gets the
 * same visible treatment as hover, and reduced-motion visitors
 * get no motion at all (their block below; the global rule near
 * the top of this file already kills the transitions). */
@media (hover: hover) and (pointer: fine) {
  .topbar-row .theme-toggle,
  .topbar-row .langbtn {
    transition: transform 0.18s ease, box-shadow 0.18s ease,
                background-color 0.18s ease, border-color 0.15s ease;
  }
  .topbar-row .theme-toggle:hover,
  .topbar-row .theme-toggle:focus-visible {
    transform: scale(1.08);
    background: var(--surface);
    box-shadow: var(--shadow-hover);
  }
  .topbar-row .langbtn:hover,
  .topbar-row .langbtn:focus-visible {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
  }
  button:not([class]):hover,
  button:not([class]):focus-visible,
  a.paybtn:hover,
  a.paybtn:focus-visible { transform: scale(1.03); }
  button:not([class]):active,
  a.paybtn:active { transform: scale(1.02) translateY(1px); }
  /* The name chip — absolutely positioned under the switch, so
   * it overlays the page and can never push layout; it names
   * the control from its data-chip, painted only on hover or
   * keyboard focus. */
  .topbar-row .langbtn { position: relative; }
  .topbar-row .langbtn::after {
    content: attr(data-chip);
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translate(-50%, -4px);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    background: var(--action);
    color: var(--on-action);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 40;
  }
  .topbar-row .langbtn:hover::after,
  .topbar-row .langbtn:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .topbar-row .theme-toggle:hover,
  .topbar-row .theme-toggle:focus-visible,
  .topbar-row .langbtn:hover,
  .topbar-row .langbtn:focus-visible,
  button:not([class]):hover,
  button:not([class]):focus-visible,
  a.paybtn:hover,
  a.paybtn:focus-visible { transform: none; }
  .topbar-row .langbtn::after { transition: none; transform: translate(-50%, 0); }
}

/* ---------- Layout ---------- */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 8px;
  flex: 1 0 auto;
  width: 100%;
  box-sizing: border-box;
}

section { margin-bottom: 8px; }

footer {
  max-width: 720px;
  margin: 32px auto 0;
  padding: 20px;
  font-size: 14px;
  color: var(--ink-2);
  border-top: 1px solid var(--divider);
}
footer a { color: var(--primary); }

/* ---------- Progress ---------- */
#progressWrap {
  position: relative;
  margin: 4px 0 14px;
}
/* Track — a full-width rail behind the fill */
#progressWrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--divider);
  border-radius: 999px;
}
#progressBar {
  position: relative;
  z-index: 1;
  height: 8px;
  background: var(--action);
  border-radius: 999px;
  width: 5%;
  transition: width 0.3s ease;
}
#stepLabel {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--primary);
  margin: 14px 0 6px;
}

#error {
  color: var(--err);
  /* Reserve ONE line (FULL REVIEW C): the two-line reserve left a
     permanent empty hole under the steps even when nothing was
     wrong. One line keeps most appearances jump-free without the
     standing gap; a longer error still grows the page once. */
  min-height: 1.35em;
  font-weight: 600;
  margin: 4px 0 10px;
}

/* ---------- Buttons ---------- */
button {
  background: var(--action);
  color: var(--on-action);
  border: 1px solid var(--action);
  border-radius: 999px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin: 6px 6px 6px 0;
  transition: background-color 0.15s ease, color 0.15s ease,
              border-color 0.15s ease, transform 0.1s ease;
}
button:hover { filter: brightness(1.06); }
button:active { transform: translateY(1px); }
/* Disabled (0.3.63, the app's button rule): a genuinely disabled
   button wears the pale tint + secondary ink — unmistakably
   different from the strong action fill, never a faded twin. */
button:disabled { background: var(--surface-alt); border-color: var(--surface-alt); color: var(--ink-2); cursor: default; }
button:disabled:hover { filter: none; }
button:disabled:active { transform: none; }

/* Secondary / unselected picker buttons */
button.ghost {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow);
}
button.ghost:hover { border-color: var(--action); filter: none; }

/* Day + time pickers */
button.day,
button.slot {
  border-radius: 999px;
  padding: 10px 18px;
}

/* GAP #9: a slot button can carry two lines — the client's time
 * on the first line, the business's time small underneath. Both
 * lines inherit the pill's colours (selected state included). */
button.slot .slot-main { display: block; }
button.slot .slot-biz { display: block; font-size: 0.8em; opacity: 0.8; }

/* Selected state — filled, unmistakable, not just an outline */
button.slot[aria-pressed="true"],
button.day[aria-pressed="true"] {
  background: var(--action);
  color: var(--on-action);
  border-color: var(--action);
  box-shadow: var(--shadow);
}

/* Group headcount stepper + promo row + labelled waitlist fields
   (audit round 2): real 48px touch targets, same pill language. */
.spotsstep { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.spotsstep button { min-width: 48px; min-height: 48px; padding: 8px 14px; font-size: 20px; }
.spotsstep button:disabled { opacity: 0.4; cursor: default; }
.spotscount { font-weight: 700; }
.spotslabel { font-weight: 600; }
.promorow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.promorow input { flex: 1 1 160px; min-height: 48px; }
.promorow button { min-height: 48px; }
label.wlfield { display: block; margin: 8px 0; }
label.wlfield span { display: block; font-weight: 600; margin-bottom: 4px; }
label.wlfield input, label.wlfield select { width: 100%; min-height: 48px; }

/* ---------- Forms ---------- */
fieldset {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px 14px;
  margin: 14px 0;
}
legend {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--primary);
  padding: 2px 10px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-bottom: 2px solid var(--accent);
  border-radius: 999px;
}
/* Form validation (Jamie, Nov 12, 2026): a field that is wrong
 * goes RED, and the list of what is wrong sits right in front of
 * the person, naming each field and the group to fix it in. */
fieldset.field-error {
  border-color: var(--err);
  outline: 2px solid var(--err);
  outline-offset: 1px;
}
.form-errors {
  border: 1px solid var(--err);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 14px 0;
}
.form-errors p { color: var(--err); font-weight: 700; margin: 0 0 6px; }
.form-errors ul { margin: 0; padding-left: 20px; }
.form-errors li { margin: 4px 0; }
/* Drawn-signature pad (Jamie, Nov 12, 2026): a box the person
 * actually draws in — never a typed name. Green (client side). */
.sig-canvas, .sig-img {
  width: 100%; max-width: 600px; height: 200px;
  border: 1px solid var(--primary); border-radius: 10px; background: #fff;
}
.sig-canvas { touch-action: none; cursor: crosshair; }
.sig-img { object-fit: contain; }
.sig-here { font-weight: 700; margin: 2px 0 6px; }

label {
  display: block;
  margin: 10px 0;
  font-size: 15px;
  color: var(--ink);
}
label.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: 15px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 10px;
  margin-top: 5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="password"]:hover,
input[type="search"]:hover,
textarea:hover,
select:hover { border-color: var(--action); }

/* AUDIT2 F6 (B4): the Step 4 missing-field highlight — the exact
   box submitRequest named gets a clear red frame until it is typed in. */
input.field-bad {
  border: 2px solid #C0392B;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.25);
}

/* W7 (Oct 31, 2026): the Step 4 client-details box — a quiet frame
   once every required detail is filled, a BRIGHT amber outline
   while anything required is still missing, so an un-done required
   step draws the eye before Send is ever tapped. */
.details-box {
  border: 2px solid var(--line, #D8E2CC);
  border-radius: 12px;
  padding: 14px 16px 6px;
  margin: 0 0 14px;
}
.details-box-open {
  border: 3px solid #FFB020;
  box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.35);
}
.details-box-hint { font-weight: 700; margin-top: 0; }

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--action);
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 2px;
}
input[type="range"] { accent-color: var(--action); margin-top: 5px; }

/* ---------- Booking-page banner (owner setting, Oct 28, 2026):
   the business's own urgent line at the VERY TOP of the page,
   above the launch ribbon. It must be unmissable: full-width band,
   bold large text, dark words on a high-contrast warm amber —
   readable at phone width without zooming. Rendered only when the
   company profile carries the string; [hidden] otherwise, so an
   absent banner leaves no band and no layout placeholder. */
.page-banner {
  background: #FFB020;
  color: #2B1500;
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .01em;
  padding: 14px 16px;
  border-bottom: 3px solid #B45309;
  overflow-wrap: break-word;
}
.page-banner[hidden] { display: none; }
/* C11: the announcement pop-up (centre of page, page-open only). */
.ann-pop { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.ann-card { background: #fff; color: #1c2733; border-radius: 14px; max-width: 420px; width: 100%; padding: 20px; box-shadow: 0 12px 40px rgba(0,0,0,.35); text-align: center; }
.ann-card p { margin: 0 0 14px; font-size: 1.05rem; line-height: 1.45; }
.ann-close { background: var(--action); color: #fff; border: 0; border-radius: 8px; padding: 10px 22px; font-size: 1rem; cursor: pointer; }
/* Dark theme (FULL REVIEW C): the same amber, deepened, so the
   banner sits with the dark palette instead of shouting over it. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .page-banner { background: #7A5200; color: #FFE9B8; border-bottom-color: #FFB020; }
}
:root[data-theme="dark"] .page-banner { background: #7A5200; color: #FFE9B8; border-bottom-color: #FFB020; }

/* Stage 5B (Nov 8, 2026): the "Auto-translated · See original"
   toggle under auto-translated business text. Small, quiet, and
   bordered in currentColor so it sits right on any band. */
.autoi18n-note {
  display: inline-block; margin: 5px 0 0 8px; padding: 2px 9px;
  font-size: 12px; font-weight: 600; line-height: 1.5;
  color: inherit; background: transparent; opacity: .85;
  border: 1.2px solid currentColor; border-radius: 999px; cursor: pointer;
  vertical-align: middle;
}

/* ---------- Business banner: the tenant's brand, top of the page
   (0.3.6) — profile picture large, business name, tagline ---------- */
.biz-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin: 14px 0 6px;
}
.biz-banner .biz-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  flex: none;
  /* Fix 6 (Oct 26, 2026): tenant logos render on the surface
     colour inside the shared 14px radius — never sharp corners,
     never a white box on the dark UI. */
  border-radius: var(--radius);
  background: var(--surface);
}
.biz-banner .biz-name {
  margin: 0;
  font-size: 22px;
}
.biz-banner .tag {
  margin: 3px 0 0;
  font-size: 14px;
  color: var(--ink-2);
}

/* Step 1 (0.3.6): live search + category headings over the cards */
.svcsearch {
  width: 100%;
  box-sizing: border-box;
  margin: 8px 0 4px;
}
.catch {
  margin: 20px 0 4px;
  font-size: 17px;
}

/* ---------- Cards: services, bookings, quote ---------- */
.svc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 10px 0;
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.svc:hover { box-shadow: var(--shadow-hover); border-color: var(--action); }
.svc small {
  display: block;
  font-weight: 400;
  color: var(--ink-2);
  margin-top: 3px;
  line-height: 1.45;
}

.card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  /* Item 25 (Nov 6, 2026): stacked cards stood 12px apart —
   * CLOSER than the padding inside them, so sections read as one
   * mass (Jamie: "way too close to the button"). The standard gap
   * between stacked cards/sections is now 20px. */
  margin: 20px 0;
  white-space: pre-line;
}

.quote {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin: 14px 0;
  white-space: pre-line;
  line-height: 1.65;
}

.price {
  font-weight: 700;
  white-space: nowrap;
  color: var(--primary);
  font-size: 17px;
}

.policy {
  white-space: pre-line;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 14px 0;
}

/* ---------- Misc hooks (kept for app.js / index.html) ---------- */
.big {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
}
.fine { font-size: 13px; color: var(--ink-2); opacity: 0.85; }
/* B-RIDER-5 (Nov 8, 2026): the maker credit — small muted line,
   the name slightly brighter, a thin divider above. The name
   never translates. */
.maker-credit { border-top: 1px solid var(--line, rgba(127,127,127,.35)); padding-top: 10px; margin-top: 12px; opacity: .75; }
.maker-credit .maker-name { color: var(--ink); font-weight: 600; opacity: 1; }
/* B4-1 (W4-WEB): the checked-in state on a My bookings card —
   the arrival is done, said plainly, no button to re-tap. */
.checkedin { font-weight: 600; color: var(--action, #2E7D32); }

#wlDone { color: var(--success); font-weight: 600; }

#myBookings .card p { margin: 0 0 8px; }

/* Success wording rendered inline by app.js uses no extra hooks;
   error text is handled by #error above. */

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  header { padding: 18px 16px; }
  header h1 { font-size: 22px; }
  header .logo { width: 48px; height: 48px; }
  .theme-toggle { margin-left: 0; }
  main { padding: 18px 14px 4px; }
  .svc { padding: 14px; }
}

/* ============================================================
   0.3.0 — settled flow additions
   ============================================================ */

/* Keep content clear of the fixed bottom bar */
body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
footer { margin-bottom: 24px; }

/* ---------- 3-step indicator ---------- */
#steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 10px;
}
.stepdot {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface-alt);
  border: 1px solid var(--divider);
  border-radius: 999px;
  padding: 6px 12px;
}
.stepdot.current {
  background: var(--action);
  color: var(--on-action);
  border-color: var(--action);
}
.stepdot.done { color: var(--primary); border-color: var(--action); }

/* ---------- Fixed bottom action bar (every step, safe-area aware) ---------- */
#actionBar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 2px solid var(--action);
  box-shadow: 0 -6px 24px rgba(28, 36, 23, 0.14);
}
#barSummary {
  flex: 1 1 auto;
  min-width: 0;
  /* Shrink-first (MEGA PASS, Oct 31, 2026): the font SHRINKS with
     narrow screens before anything is allowed to truncate — the
     chosen service's name in the sticky bar was being ellipsized
     (W-07). The 2-line clamp below is now the last resort only. */
  font-size: clamp(12px, 3.4vw, 14px);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.35;
  overflow: hidden;
  /* Audit fix (Oct 27, 2026): the summary wrapped to a 3rd line as
     add-ons were toggled and the fixed bar GREW under the user's
     finger (measured 106 -> 123 -> 140px across states, overrunning
     the body's 96px bottom padding and covering page content). Two
     lines max, ellipsis beyond — the bar's height is now stable. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
#barAction { flex: none; margin: 0; }
/* ITEM 32 (Nov 6, 2026): the confirm step's primary action wears
   a line of light travelling around its border — polish, not
   alarm: one soft arc, a slow loop, no flashing. Browsers
   without @property keep a static arc (still a highlight). */
@property --attn-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
#barAction.attn { position: relative; z-index: 0; }
#barAction.attn::before {
  content: ''; position: absolute; inset: -3px; border-radius: 14px; z-index: -1;
  background: conic-gradient(from var(--attn-a), transparent 0deg, transparent 255deg, var(--accent, #2e7d32) 320deg, transparent 360deg);
  animation: attnspin 2.8s linear infinite;
}
@keyframes attnspin { to { --attn-a: 360deg; } }
@media (prefers-reduced-motion: reduce) { #barAction.attn::before { animation: none; } }
/* ITEM 34 (Nov 6, 2026): the signed-in client's greeting line. */
.greetline { font-size: 1.2em; font-weight: 700; margin: 4px 0 10px; }
/* ITEM 30 (Nov 6, 2026): the service-location choice. */
.locchoice { margin-top: 10px; }
.locrow { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.locopt.sel { border-color: var(--accent, #2e7d32); box-shadow: 0 0 0 2px var(--accent, #2e7d32) inset; font-weight: 700; }
#barBack { flex: none; margin: 0; }

/* ---------- Phone bottom bar (Nov 14, 2026) ----------
 * Jamie: "bottom bar on mobile version on website would be nice."
 * The same five doors as the Booking app's bottom bar, built by
 * paintGreenBar in app.js. Phone widths only (max-width 560px —
 * the site's phone breakpoint): on computer widths the bar never
 * renders (display none, and the script leaves it hidden). It sits
 * at the very bottom; the booking action bar rides ABOVE it
 * (bottom = the bar's height), so the flow's Back/Continue never
 * moves, never hides, and never overlaps the nav — the same stack
 * as the app (wizard bar above the door bar). The bar's CONTENT
 * height is FIXED at 56px (64px less 4px top + 4px bottom
 * padding) so the offsets below stay exact — and the total height
 * carries the safe-area inset on top (64px + inset), because the
 * inset lives INSIDE the padding under border-box: a fixed 56px
 * total on a gesture-nav phone (Pixel, inset ~35px) crushed the
 * content box to ~10px and the labels clipped mid-glyph (Jamie's
 * Nov 15 photo, dark mode, scrolled). Labels wrap to at most two
 * lines inside their cell (the app's FR labels wrap the same way)
 * instead of clipping or ellipsizing, and the label never shrinks
 * (flex: none) so a short content box can never clip text again.
 * PARITY (Nov 15, 2026): each cell carries the app's 24px line
 * icon above its label (home, calendar, package, gift, gear —
 * the same five the app's bar shows), so the bar reads the same
 * as the app instead of label-only. The icon is what grew the
 * bar from 56px to 64px total: 24px icon + up to two label
 * lines + cell padding fits the 56px content box with room to
 * spare, and the three offsets below ride the new total, so
 * nothing overlaps and nothing is crushed. Colours are
 * the page's own tokens: surface + divider, quiet ink-2 labels,
 * the current door in --primary (readable in both themes — the
 * --action green is too dark-on-dark) on a surface-alt pill.
 * No grey, no square corners (999px pill, like the site's step
 * dots). The chat panel floats above BOTH bars: its bottom offset
 * rides --chat-bottom, raised on phone widths here (chat.js reads
 * the variable). Embed mode hides the bar and the action bar
 * drops back to the bottom (overrides at the end of this block). */
#bottomBar { display: none; }
@media (max-width: 560px) {
  #bottomBar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 55;
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 4px 2px calc(4px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--divider);
    box-shadow: 0 -4px 18px rgba(28, 36, 23, 0.10);
  }
  #bottomBar .bb-cell {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 2px 1px;
    margin: 0;
    background: none;
    border: 0;
    border-radius: 999px;
    color: var(--ink-2);
    cursor: pointer;
  }
  #bottomBar .bb-cell:hover { filter: none; }
  #bottomBar .bb-cell:active { transform: none; }
  #bottomBar .bb-cell.on {
    color: var(--primary);
    background: var(--surface-alt);
    font-weight: 700;
  }
  #bottomBar .bb-icon {
    flex: none;
    display: block;
    width: 24px;
    height: 24px;
    line-height: 0;
  }
  #bottomBar .bb-icon svg {
    display: block;
    width: 24px;
    height: 24px;
  }
  #bottomBar .bb-label {
    flex: none;
    font-size: clamp(11px, 3.2vw, 13px);
    line-height: 1.15;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  /* The action bar rides above the nav bar, and the page's bottom
   * clearance grows by the nav bar's height (96px was the action
   * bar alone). The chat panel clears both (79px was the action
   * bar alone; 64 + 79 = 143px). */
  #actionBar { bottom: calc(64px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
  :root { --chat-bottom: calc(143px + env(safe-area-inset-bottom)); }
}
html.jlb-embed #bottomBar { display: none; }
html.jlb-embed #actionBar { bottom: 0; }
html.jlb-embed body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- Home ---------- */
.lede { font-size: 17px; color: var(--ink); }
.bigbook {
  display: block;
  width: 100%;
  font-size: 19px;
  padding: 16px 22px;
  margin: 14px 0 6px;
}
button.svcbtn {
  display: flex;
  width: 100%;
  text-align: left;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 10px 0;
  font-weight: 600;
}
button.svcbtn:hover { border-color: var(--action); box-shadow: var(--shadow-hover); filter: none; }
button.svcbtn small {
  display: block;
  font-weight: 400;
  color: var(--ink-2);
  margin-top: 3px;
  line-height: 1.45;
}
/* FW4 (L-WV8 residual): the 7px-padding small-button family carries
   its own 44px floor right here (it previously relied on a later
   catch-all rule) and centres its label in that box. */
button.small { padding: 7px 14px; font-size: 14px; margin: 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Remembered pick ---------- */
.yourpick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--action);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 10px 0 14px;
  font-weight: 700;
  color: var(--primary);
}
/* Audit fix (Oct 27, 2026): the "Pick your massage…" hint line and
   the your-pick banner swap in the same slot; the banner measured
   18px taller, so every pick/unpick shoved the whole list by 18px.
   Same box, same minimum height — the swap is now shift-free. */
.pickhint {
  display: flex;
  align-items: center;
  min-height: 72px;
  box-sizing: border-box;
  margin: 10px 0 14px;
  padding: 12px 2px;
}
.yourpick { min-height: 72px; box-sizing: border-box; }
.yourpick-line { font-weight: 600; color: var(--primary); }

/* ---------- Calendar (colour + words, never colour alone) ---------- */
.legend { font-size: 14px; color: var(--ink-2); margin: 10px 0; }
.legend .dot, .daycell::before {
  display: inline-block;
  width: 11px; height: 11px;
  border-radius: 50%;
  vertical-align: -1px;
}
/* Wave B (L-C8): the wizard legend dots wear the Nov 3 mandated
   palette — the exact fills the cells below paint. */
.legend .dot.open { background: #79C25F; }
.legend .dot.few { background: #FFD23F; }
.legend .dot.full { background: #E88A7D; }
.calgrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0 16px;
}
button.daycell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 2px 8px;
  margin: 0;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--divider);
  box-shadow: none;
  font-size: 13px;
}
button.daycell .dlabel { font-weight: 700; line-height: 1.25; text-align: center; }
button.daycell .dword { font-size: 12px; color: var(--ink-2); }
/* Wave B (L-C8, Nov 3, 2026): the wizard cells paint Jamie's
   mandated four-state palette — the SAME fills as the .mbcal
   month grids and the Booking app: Available = clear green
   #79C25F, Limited spots (≤3 open) = clear yellow #FFD23F,
   Not available (full or closed) = clear red tint #E88A7D, each
   with its pinned ink. The ::before dot now wears the state's
   deep border colour so it stays visible on its own fill. The
   per-cell WORD (slot count / Closed / Full) still stands —
   colour adds to words, never replaces them. */
button.daycell.open { background: #79C25F; border-color: #4E8A3C; color: #17300F; }
button.daycell.few { background: #FFD23F; border-color: #C79A12; color: #2E2100; }
button.daycell.full, button.daycell.closed { background: #E88A7D; border-color: #B85A4C; color: #3D0E08; }
button.daycell.open .dword, button.daycell.few .dword,
button.daycell.full .dword, button.daycell.closed .dword { color: inherit; opacity: 0.85; }
button.daycell.open::before { content: ""; background: #4E8A3C; }
button.daycell.few::before { content: ""; background: #C79A12; }
button.daycell.full::before { content: ""; background: #B85A4C; }
button.daycell.closed::before { content: ""; background: #B85A4C; }
/* Wave B (L-C8): the SELECTED day is a ring OVER its state fill —
   it keeps the state's colour, exactly like the .mbcal grids and
   the app (BookingsDayState.selectedRing). It never becomes a
   solid action fill again (the pre-Wave-B paint erased the very
   state colour the scheme exists to show). On an own-appointment
   day the selected ring is WHITE and stacks inside the blue
   marker ring, so both stay legible. */
button.daycell[aria-pressed="true"] {
  box-shadow: inset 0 0 0 3px #002C27;
}
button.daycell.mine[aria-pressed="true"] {
  box-shadow: inset 0 0 0 2px #1D6FD1, inset 0 0 0 5px #FFFFFF;
}
.slots { display: flex; flex-wrap: wrap; gap: 4px; }
.waitlist-join input { margin-bottom: 8px; }

/* ---------- Auth (password OR code) ---------- */
/* Segmented control (speed pass, Oct 30, 2026): ONE rounded
   outline, segments clipped inside it — the filled segment's
   corners can never poke past the outline or its neighbour.
   Used by the sign-in method tabs and the shop period/billing
   rows (both render into .auth-tabs). */
.auth-tabs {
  display: flex; gap: 0; margin-bottom: 10px;
  border: 2px solid var(--divider); border-radius: 12px;
  overflow: hidden; padding: 2px; background: var(--surface);
}
.auth-tabs button {
  flex: 1 1 0; border: 0; border-radius: 0; background: transparent;
  margin: 0;
}
.auth-tabs button.on {
  background: var(--action);
  color: var(--on-action);
  border-color: var(--action);
  border-radius: 9px;
}

/* ---------- Business hours: today's row (speed pass) ---------- */
.hours-row { padding: 3px 8px; border-radius: 8px; }
.hours-row.today {
  font-weight: 700;
  background: var(--surface-alt);
  outline: 2px solid var(--action);
}

/* ---------- Directory (speed pass) ---------- */
/* DEMO-FIX add-on (Nov 8, 2026 — Jamie: "on green side round
   photo corners"): directory logos take the one corner standard
   too (14px token, on the shared tile surface like .svcphoto.islogo). */
.dir-logo { max-height: 56px; max-width: 160px; object-fit: contain; display: block; margin-bottom: 6px; border-radius: var(--radius); background: var(--surface-alt); }
.authbox input { margin-bottom: 8px; }
/* D43 (Nov 5, 2026): the owner door under the sign-in controls —
   one quiet fine line, a breath below the More options link.
   Spacing only; the link itself is a plain anchor (no hover
   treatment beyond the browser's own — nothing here shifts
   layout, per the D42 hover discipline). */
.authbox .biz-door { margin-top: 12px; }
/* SIGN-IN REDESIGN (Nov 1, 2026): visible field labels (A4), the
   Stay signed in boxed toggle (A3 — label + switch in one faint
   outline box), quiet text links + method rows (A1/A2 — no fill),
   and the inline code error line (V3). */
.field-label { display: block; font-weight: 600; margin: 10px 0 4px; }
.stay-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--divider); border-radius: 12px;
  padding: 10px 12px; margin: 8px 0 12px; background: var(--surface);
  cursor: pointer;
}
.stay-box input[type="checkbox"] { width: 24px; height: 24px; flex: none; margin: 0; }
button.textlink {
  background: transparent; border: 0; box-shadow: none; color: var(--primary);
  text-decoration: underline; padding: 8px 4px; margin: 2px 0;
  /* FW4 (L-WV8 residual): measured 38px tall — a 44px floor, label centred. */
  min-height: 44px; display: inline-flex; align-items: center;
}
.auth-methods { display: flex; flex-direction: column; align-items: flex-start; }
.pk-icon { width: 18px; height: 18px; vertical-align: -3px; margin-right: 7px; }
button.method-row {
  background: transparent; border: 0; box-shadow: none; color: var(--primary);
  text-align: left; padding: 10px 4px; margin: 0; font-weight: 600;
  /* FW4 (L-WV8 residual): measured 42px tall — a 44px floor, label centred. */
  min-height: 44px; display: inline-flex; align-items: center;
}
/* PASS 9 Phase 2 (remembered-method lead): in the More-options
   chooser, the remembered/lead method's row wears primary-grade
   paint — filled, like the screen's primary button — while the
   other methods stay text rows. */
button.method-row.method-lead {
  background: var(--action); color: var(--on-action);
  border-radius: var(--radius-btn, 12px); padding: 10px 18px;
}
.inline-err { color: var(--error, #b3261e); font-weight: 600; }
.addr-confirm { border-color: var(--action); }

/* ---------- Pay-ahead button (only rendered when payAhead.url exists) ---------- */
a.paybtn {
  display: inline-block;
  background: var(--action);
  color: var(--on-action);
  font-weight: 700;
  text-decoration: none;
  /* Published radius scale (FULL REVIEW C): pills are for chips and
     toggles only — a button takes the 12px button radius. */
  border-radius: var(--radius-btn, 12px);
  padding: 11px 20px;
  margin: 6px 6px 6px 0;
}
a.paybtn:hover { filter: brightness(1.08); color: var(--on-action); }

/* FULL REVIEW C / WAVE-2 CW-7: on narrow phones the week stays a
   week — seven narrow columns (smaller type, status dot only)
   instead of collapsing to 4 + 3 rows that stop reading as a week. */
@media (max-width: 560px) {
  .calgrid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
  button.daycell { padding: 6px 0 5px; font-size: 12px; border-radius: 9px; }
  /* Size-and-device pass (0.3.64): the availability WORD stays
     on small phones — it used to be display:none here, leaving
     colour + a dot as the only signal, which the app's own rule
     forbids. Shrink-first instead: 10px, centred, allowed to
     wrap inside its cell (cells grow a little taller; the week
     still reads as a week). */
  button.daycell .dword { display: block; font-size: 10px; line-height: 1.15; }
  #barSummary { font-size: 13px; }
  header .logo { width: 48px; height: 48px; }
}

/* 0.3.4 referral share */
.sharelink { word-break: break-all; font-weight: 600; }

/* ============================================================
   Redesign (Oct 25, 2026) — Cojilio's structure, the app's colours
   Jamie's recipe: the Cojilio booking page's LOOK (wide centred
   column, header bar, two-column hero, category menu + service
   rows + summary rail, dark-green footer) rebuilt BETTER in the
   JLB Booking palette — deep #002C27 / surface #073428 / leaf
   #5B944E / highlight #B6D7A5 — with real per-service photos, a
   search box (Cojilio has none) and our clearer cards.
   ============================================================ */

main { max-width: 1120px; }

/* ---------- Header nav (Book / My bookings / account) ---------- */
.topnav {
  margin-left: auto;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
button.navlink, a.navlink {
  background: transparent;
  color: var(--header-ink);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 14px;
  margin: 0;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
}
button.navlink:hover, a.navlink:hover { border-color: var(--accent); filter: none; }
header .theme-toggle { margin-left: 0; }

/* ---------- Hero photo slider (Jamie, Oct 28, 2026) ----------
   The pictures lead the page. One dot per picture, the lit dot
   follows the show; tap = next, swipe/drag/arrows move too. */
.hero-slider { margin: 18px 0 10px; }
.hero-slider .hero-media { position: relative; }
.hero-slider .hero-media.slides { cursor: pointer; touch-action: pan-y; }
.hero-slider .hero-media.slides img { user-select: none; -webkit-user-drag: none; }
.hero-dots { display: flex; gap: 2px; justify-content: center; align-items: center; padding: 4px 0 0; }
.hero-dots:empty { display: none; }
/* FULL REVIEW 🔴-38: the dot LOOKS 9px but the BUTTON is a 40px
   hit box — the 9px circle is drawn centred inside it, so a thumb
   can actually land on it. */
.hero-dot {
  width: 40px; height: 40px; border-radius: 999px; border: none; padding: 0;
  background: transparent; cursor: pointer; position: relative; flex: none;
}
.hero-dot::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 9px; height: 9px; border-radius: 999px; background: #B9C4AC;
  transform: translate(-50%, -50%);
  transition: transform .25s ease, background .25s ease;
}
.hero-dot.active::after { background: var(--primary); transform: translate(-50%, -50%) scale(1.45); }

/* ---------- Hero (Cojilio two-column, our colours) ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 28px;
  margin: 18px 0 10px;
}
/* Identity row (Jamie, Oct 28, 2026): round business picture,
   name beside it, the full About underneath. */
.hero-id { display: flex; gap: 18px; align-items: center; }
.hero-text .biz-logo {
  width: 112px;
  height: 112px;
  /* MEGA PASS (W-01): a LOGO is never cropped — contain keeps
     the whole mark inside the disc (cover cut wide logos off). */
  object-fit: contain;
  padding: 8px;
  background: var(--surface-alt);
  border-radius: 50%;
  border: 3px solid var(--surface-alt);
  box-shadow: var(--shadow);
  flex: none;
}
.hero-id-text .biz-name { margin-top: 0; }
/* Optional homepage blocks (Jamie, Oct 28, 2026): the business's
   own chosen sections, after the About card. */
.home-block {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px 28px;
  margin: 10px 0;
}
.home-block h3 { margin: 0 0 8px; color: var(--primary); font-size: 19px; }
.home-block p { margin: 2px 0; color: var(--ink-2); line-height: 1.55; }
.hero-text h2.biz-name {
  border-bottom: none;
  padding-bottom: 0;
  margin: 10px 0 2px;
  font-size: 34px;
}
.hero-sub { font-weight: 700; color: var(--primary); margin: 2px 0; font-size: 17px; }
.hero-city { margin: 2px 0; color: var(--ink-2); }
.hero-hours { margin: 6px 0; font-weight: 600; color: var(--success); }
/* PASS 9 (A-4): the closed status line never wears success green.
   FW3 (L-WV3): the colour is now the per-theme --closed token —
   the old var(--error, #b3261e) fallback resolved to the SAME dark
   red in both themes (2.1:1 on the dark hero). Light #B00020 on
   white = 7.33:1; dark #E88A7D on #073428 = 5.46:1. Both ≥ 4.5:1. */
.hero-hours.closed { color: var(--closed, #B00020); }
.hero .tag { margin: 6px 0 4px; color: var(--ink-2); max-width: 46ch; }
/* Owner-written About (Oct 27, 2026): a short bio paragraph under
   the tagline; the tenant's own words, line breaks kept. */
.hero .biz-about { margin: 4px 0 2px; color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 52ch; }
/* Structured About (0.3.63 visual parity with the Booking app):
   the owner's own headings, bullet rows and label/price rows —
   never one flat dash-list wall. */
/* GAP WAVE A (Nov 8, 2026, item 1): the public reviews section —
   the business's collected reviews under the hero. Client-green
   family colours only; owner replies sit in a soft inset block. */
.reviews-section { max-width: 640px; margin: 18px auto 4px; padding: 0 16px; text-align: left; }
.reviews-heading { color: var(--primary); font-size: 19px; margin: 0 0 2px; }
.reviews-summary { color: var(--ink-2); margin: 0 0 10px; font-size: 15px; }
.review-card { border-top: 1px solid var(--divider); padding: 10px 0; }
.review-card:first-of-type { border-top: none; }
.review-stars { color: var(--primary); font-size: 16px; letter-spacing: 2px; }
.review-meta { color: var(--ink-2); font-size: 13px; margin-left: 8px; }
.review-comment { margin: 4px 0 0; line-height: 1.5; }
.review-reply { margin: 8px 0 0; padding: 8px 10px; border-left: 3px solid var(--primary);
  background: var(--surface-2, rgba(0,0,0,0.04)); border-radius: 0 8px 8px 0; }
.review-reply-label { font-size: 12px; font-weight: 700; color: var(--primary); margin: 0 0 2px; }
.review-reply p { margin: 0; line-height: 1.5; }
.biz-about-h { color: var(--primary); font-size: 17px; margin: 16px 0 4px; }
.biz-about-h:first-child { margin-top: 2px; }
.biz-about-p { margin: 6px 0; }
.biz-about-list { margin: 4px 0 6px; padding-left: 20px; }
.biz-about-list li { margin: 3px 0; }
.biz-about-list li::marker { color: var(--primary); font-weight: 700; }
.biz-about-price { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: 1px solid var(--divider); }
.biz-about-price:first-of-type { border-top: none; }
.biz-about-price-label { color: var(--ink); }
.biz-about-price-value { color: var(--primary); font-weight: 700; font-size: 16px; white-space: nowrap; }
/* Service detail on home (0.3.63): the Read more panel under a
   service row — description in full + every length with its
   price as its own tappable row. */
.svcdetail { border: 1px solid var(--divider); border-radius: var(--radius); padding: 6px 16px 12px; margin: 2px 0 10px; background: var(--surface); }
.svcdetail-desc { color: var(--ink-2); line-height: 1.5; margin: 8px 0 4px; }
.svcdetail-h { color: var(--primary); font-size: 16px; margin: 10px 0 2px; }
button.svclen { display: flex; justify-content: space-between; gap: 16px; width: 100%; background: none; border: none; border-top: 1px solid var(--divider); color: var(--ink); padding: 12px 0; margin: 0; font-size: 15px; text-align: left; border-radius: 0; }
button.svclen:hover { filter: none; }
.svclen-price { color: var(--primary); font-weight: 700; font-size: 16px; white-space: nowrap; }
.svcdetail-toggle { margin: 0 0 8px 4px; }
.hero-cta { width: auto; margin-top: 12px; }
/* BOOK-BUTTON GLOW (Jamie, Nov 12, 2026): the hero Book button
 * wears the Google "AI Mode" pill feel — a lighter tint of the
 * business's page colour (the same pageColour Liz takes her
 * colour from) with a soft light spot that follows the cursor
 * on hover. Touch devices have no hover, so the button simply
 * wears its lighter base and works exactly as before. No icon
 * change, no new strings, no behaviour change. The glow is a
 * background layer, so it can never cover the label, and the
 * book-locked red line (::after) still paints above it. */
@property --book-glow-a { syntax: '<color>'; inherits: false; initial-value: rgba(255, 255, 255, 0); }
#heroBook {
  background:
    radial-gradient(circle 120px at var(--gx, 50%) var(--gy, 50%), var(--book-glow-a), rgba(255, 255, 255, 0) 70%),
    var(--book-solid, var(--action));
  color: var(--book-solid-ink, var(--on-action));
  border-color: var(--book-solid, var(--action));
  transition: --book-glow-a 0.25s ease, background-color 0.15s ease, box-shadow 0.2s ease;
}
@media (hover: hover) {
  #heroBook:hover, #heroBook:focus-visible {
    --book-glow-a: color-mix(in srgb, var(--book-glow, #FFFFFF) 75%, transparent);
    box-shadow: 0 0 24px 2px color-mix(in srgb, var(--book-base, var(--action)) 55%, transparent), var(--shadow-hover);
  }
}
/* BAR-BUTTON GLOW (Jamie, Nov 15, 2026 — "make both buttons have
 * that cool thing"): the bottom-bar Book button wears the same
 * cursor-following light spot as the hero Book button — same
 * --gx/--gy radial layer, same hover-only glow. The book-locked
 * red line (::after) still paints above it, and the confirm-step
 * attention arc (::before) is untouched. The :disabled rule keeps
 * the bar's grey disabled look — the ID rule would otherwise
 * outrank button:disabled and leave a disabled bar green. */
#barAction {
  background:
    radial-gradient(circle 120px at var(--gx, 50%) var(--gy, 50%), var(--book-glow-a), rgba(255, 255, 255, 0) 70%),
    var(--book-solid, var(--action));
  border-color: var(--book-solid, var(--action));
  color: var(--book-solid-ink, var(--on-action));
  transition: --book-glow-a 0.25s ease, background-color 0.15s ease, box-shadow 0.2s ease;
}
@media (hover: hover) {
  #barAction:hover, #barAction:focus-visible {
    --book-glow-a: color-mix(in srgb, var(--book-glow, #FFFFFF) 75%, transparent);
    box-shadow: 0 0 24px 2px color-mix(in srgb, var(--book-base, var(--action)) 55%, transparent), var(--shadow-hover);
  }
}
#barAction:disabled { background: var(--surface-alt); border-color: var(--surface-alt); color: var(--ink-2); box-shadow: none; }
/* ONE BUTTON GREEN (Jamie, Nov 14, 2026 — "Button colors should
 * be the same", phone; Nov 15, 2026 — the computer too, "This
 * button is the wrong color"): the hero Book button, the
 * bottom-bar action and the guide Start all wear the one green —
 * the business's page colour, solid, not the lighter glow tint —
 * so the three never disagree, on phone AND on the computer. The
 * closed state is shown ONLY by the red strike-through line
 * (.book-locked) and the words, never by a different button
 * colour. The hover glow stays a hover-only layer: the radial
 * light spot still rides the hero's background on hover-capable
 * widths, and the bar's attention arc is untouched. The Nov 12
 * lighter tint is gone everywhere — the base rule above now uses
 * --book-solid too, so the phone override below only repeats it. */
@media (max-width: 860px) {
  #heroBook {
    background:
      radial-gradient(circle 120px at var(--gx, 50%) var(--gy, 50%), var(--book-glow-a), rgba(255, 255, 255, 0) 70%),
      var(--book-solid, var(--action));
    border-color: var(--book-solid, var(--action));
    color: var(--book-solid-ink, var(--on-action));
  }
  #barAction { background: var(--book-solid, var(--action)); border-color: var(--book-solid, var(--action)); color: var(--book-solid-ink, var(--on-action)); }
  .liz-guide-go { background: var(--book-solid, #1d7a4f) !important; }
}
/* A genuinely closed hero (closure) still reads disabled, never
 * the glow base. */
#heroBook:disabled { background: var(--surface-alt); border-color: var(--surface-alt); color: var(--ink-2); box-shadow: none; }
/* APP BANNER (Jamie, Nov 15, 2026 — "the app is now available"):
 * a green band at the very top of every green page, saying the
 * app is out, with a Download now button to the Play listing.
 * It stays there — sticky at the top while scrolling, on every
 * green page, no dismiss button. White pill button on the green
 * band, rounded like every JLB button. */
.app-banner { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; background: var(--action); color: #fff; font-weight: 700; font-size: 15px; line-height: 1.35; text-align: center; padding: 10px 16px; }
.app-banner-btn { flex: none; background: #fff; color: var(--action); border: none; border-radius: 999px; padding: 7px 18px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.app-banner-btn:hover { filter: brightness(.94); }
/* Dark theme (Jamie, Nov 15, 2026): the app banner deepens with the
   dark palette instead of shouting over it, same pattern as
   .page-banner above. Both the system setting and an explicit
   data-theme="dark" choice are covered. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .app-banner { background: var(--action); color: #E7F8EE; }
  :root:not([data-theme="light"]) .app-banner-btn { background: #E7F8EE; color: #14532D; }
}
:root[data-theme="dark"] .app-banner { background: var(--action); color: #E7F8EE; }
:root[data-theme="dark"] .app-banner-btn { background: #E7F8EE; color: #14532D; }
/* D47 (Nov 9, 2026): the locked Book button — Jamie's image: the
   button stays visible with ONE thin red line crossed through it
   (the day-off oval's line), never greyed into invisibility, and
   the plain words sit right under it. */
.hero-cta.book-locked { position: relative; opacity: 1; }
.hero-cta.book-locked::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: #d32f2f; border-radius: 1px; pointer-events: none; }
/* LIVE-DEFECTS-4 (Nov 13, 2026): the bottom-bar Book button wears
 * the same red strike-through line as the hero when booking is
 * blocked — the rule only ever existed for the hero, so the bar
 * never looked blocked even when it was. Same class, same line. */
#barAction.book-locked { position: relative; }
#barAction.book-locked::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: #d32f2f; border-radius: 1px; pointer-events: none; }
.booklock-note { margin: 8px 0 0; font-weight: 600; }
/* Audit fix (Oct 27, 2026): the img IS the hero box — a fixed 16/10
   aspect reserves its height before any picture loads, so the page
   never grows/shrinks when the picture arrives or rotates. Tenant
   photos (.cover) fill the box — no empty side bars; the badge/logo
   keeps contain so a logo is never cropped. object-position biases
   the photo crop up a little so faces near the top survive it. */
.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center 35%;
  background: var(--surface-alt);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: block;
}
.hero-media img.cover { object-fit: cover; }
/* Tenant branding hold (Nov 1, 2026): [hidden] must beat the
   display:block above, or a held image would paint anyway. */
.hero-media img[hidden] { display: none; }
/* The deliberate no-logo fallback + the neutral hold while tenant
   branding resolves: the EXACT hero box (16/10, same radius and
   surface), carrying the business's own name once known — never a
   platform mark, never a different size, so nothing jumps. */
.hero-name-fallback {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--surface-alt);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  color: var(--primary);
  font-size: clamp(22px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.2;
}
.hero-name-fallback[hidden] { display: none; }
/* Round tenant-logo hold: same disc the logo paints into (the
   .biz-logo sizing above), neutral until the tenant logo loads;
   a logo-less business's disc then carries its own initials. */
.biz-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 34px;
  font-weight: 800;
}
.biz-logo-fallback[hidden] { display: none; }
img.biz-logo[hidden] { display: none; }

/* ---------- Step 1: three columns (menu / cards / summary) ---------- */
.booking-layout {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
  margin-top: 8px;
}
.catmenu {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  position: sticky;
  top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.catmenu-title { margin: 4px 6px 8px; font-size: 16px; border: none; padding: 0; }
button.catbtn {
  background: transparent;
  color: var(--ink);
  border: 1px solid transparent;
  text-align: left;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
button.catbtn:hover { border-color: var(--action); filter: none; }
button.catbtn.on {
  background: var(--action);
  color: var(--on-action);
  border-color: var(--action);
}
.booking-centre { min-width: 0; }
.booking-centre > .catch:first-of-type { margin-top: 6px; }

/* Summary rail — Cojilio's card with the overlapping badge, but
   live: picked items, taxes-in total, service count. */
.summary-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0 18px 16px;
  position: sticky;
  top: 14px;
}
.summary-badge {
  display: inline-block;
  transform: translateY(-11px);
  background: var(--header-bg);
  color: #B6D7A5;
  border: 1px solid var(--divider);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.summary-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--primary);
  margin: 0 0 2px;
}
.summary-empty { font-style: italic; color: var(--ink-2); }
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0;
  font-size: 15px;
}
.summary-total {
  border-top: 1px solid var(--divider);
  padding-top: 10px;
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
}
.summary-count { margin-top: 12px; }

/* ---------- Service cards with photos ---------- */
div.svccard {
  display: block;
  padding: 0;
  overflow: hidden;
  cursor: default;
}
button.svccard {
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
}
.svc-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin: 0;
  cursor: pointer;
}
.svcphoto {
  width: 76px;
  height: 76px;
  /* Fix 6 (Oct 26, 2026): service photos follow the one corner
     standard — the shared 14px radius token, same as the apps. */
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface-alt);
  flex: none;
}
.svcphoto.islogo { object-fit: contain; padding: 6px; }
/* Add-on rows carry the add-on's own photo at the app's row size
   (48dp in the app's pick cards) — smaller than a service card's. */
.addonrow { align-items: center; }
.addonrow .svcphoto { width: 48px; height: 48px; }
.svcbody { flex: 1 1 auto; min-width: 0; display: block; }
.svcname { display: block; font-weight: 700; font-size: 17px; color: var(--ink); }
/* D22b (Nov 8, 2026): the price keeps its own room at the card's
   top-right — it never shrinks under the name (the Business Chair
   card's title ran into its price: "Busin$20.00…"). The name
   wraps inside its flex share instead of running underneath. */
.svc-top .price { flex: 0 0 auto; }
.svcname { overflow-wrap: break-word; }
.svcmeta {
  display: block;
  color: var(--ink-2);
  font-size: 14px;
  margin-top: 2px;
  font-weight: 600;
}
button.svccard .svcbody small {
  /* MEGA PASS: no clamp — descriptions render in full instead of
     truncating into "…." (W-05); long text wraps, the card grows. */
  display: block;
  overflow: visible;
}
button.svccard .svcbody small.svcdesc-clamp {
  /* Jamie, Nov 4, 2026 (service cards): HOME cards cut the
     description after a couple of lines — supersedes the W-05
     full-text rule for home cards. The full text lives on the
     detail page the whole card opens; a cut card carries the
     .moreinfo hint under the text. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.moreinfo { display: block; color: var(--primary); font-weight: 600; font-size: 14px; margin-top: 2px; }
.svcdesc { padding: 0 16px 14px; }
.svcdesc small { color: var(--ink-2); line-height: 1.45; display: block; }
.svcdesc small.clamp {
  /* MEGA PASS shrink-first: three lines show before the clamp,
     and the clamp is never the end of the road — the Read more
     button (.clamp.open) expands it in place. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.svcdesc small.clamp.open { display: block; }
button.readmore {
  background: none;
  border: none;
  color: var(--primary);
  text-decoration: underline;
  padding: 4px 0 0;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
}
button.readmore:hover { filter: none; }
.svc.selected { background: var(--sel); border-color: var(--action); }

/* ---------- Step panels (day/time + details) ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin: 12px 0;
}
.panel .quote, .panel .policy { box-shadow: none; }
.addr-card {
  border: 1px solid var(--action);
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 14px 0;
}
.addr-card p { margin: 4px 0; }

/* ---------- Footer: full-width deep green, three columns ---------- */
footer {
  max-width: none;
  margin: 40px 0 0;
  padding: 0;
  background: var(--header-bg);
  color: #F2F7EC;
  border-top: 3px solid var(--accent);
}
.foot-cols {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 20px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 26px;
}
footer h3 { color: #B6D7A5; font-size: 18px; margin: 0 0 8px; }
footer p { margin: 5px 0; }
footer a { color: #B6D7A5; }
footer a:hover { color: #FFFFFF; }
footer .fine { color: #B9C9A8; opacity: 1; }
/* D21 (Jamie, Nov 8, 2026): on the dark-green footer the maker
   credit's NAME must be the BRIGHTER part (the approved
   treatment) — the base .maker-name rule paints it var(--ink),
   which on this footer is nearly invisible. Muted line, bright
   name, exactly like the other footers' approved treatment. */
footer .maker-credit { color: #B9C9A8; opacity: 1; }
footer .maker-credit .maker-name { color: #FFFFFF; }

/* ---------- Redesign responsive ---------- */
@media (max-width: 1020px) {
  .booking-layout { grid-template-columns: minmax(0, 1fr) 290px; }
  .catmenu {
    grid-column: 1 / -1;
    position: static;
    flex-direction: row;
    /* MEGA PASS (W-07): the category row WRAPS — it used to run
       off the screen edge in a nowrap strip. */
    flex-wrap: wrap;
    overflow-x: visible;
    align-items: center;
  }
  .catmenu-title { margin: 0 6px 0 2px; flex: none; }
  button.catbtn { white-space: nowrap; flex: none; }
}
/* FULL REVIEW C: the header row is over-full well before the
   760px layout breakpoint — the nav takes its own row from 860px
   down, so logo, switch and sign-in stop competing for one row. */
@media (max-width: 860px) {
  .topnav { order: 3; width: 100%; margin-left: 0; }
}
/* TABLET (Nov 15, 2026 — Jamie: the tablet website is a customized
 * version of the full computer website, not the app's bottom bar).
 * The desktop arrangement stands — top menu on its own row, header
 * row, two-column booking layout where it fits — with tablet
 * customizations: the header row wraps instead of scrolling the
 * page sideways (it holds ~860px of controls and ran off the right
 * edge below ~900px, with no overflow protection on the page), and
 * the main touch targets reach the 44px guideline (the FW3 phone
 * rule stops at 560px; the menu entries and category buttons were
 * ~37px here). No hover-only controls exist to fix — every :hover
 * rule is cosmetic, and the only mouseenter handlers pause the hero
 * photo timer. The bottom bar stays phone-only (≤560px). */
@media (min-width: 561px) and (max-width: 860px) {
  .topbar-row { flex-wrap: wrap; gap: 8px; }
  button.navlink, a.navlink { min-height: 44px; display: inline-flex; align-items: center; }
  button.catbtn { min-height: 44px; }
  header .theme-toggle { min-height: 44px; }
}
@media (max-width: 760px) {
  .booking-layout { grid-template-columns: minmax(0, 1fr); }
  .summary-card { position: static; }
  .hero { grid-template-columns: 1fr; padding: 20px; }
  .foot-cols { grid-template-columns: 1fr; gap: 18px; }
  .svcphoto { width: 64px; height: 64px; }
}

/* ============================================================
   0.3.10 — Shop + profile assets (gift cards with scannable QR)
   ============================================================ */

/* Home gift-card banner: the shop's front door on the home view */
.giftbanner {
  border: 1px solid var(--accent);
  background: var(--surface-alt);
  white-space: normal;
}
.giftbanner .big { margin: 0 0 4px; }
.giftbanner p { margin: 4px 0; }

/* Promo card picture (Jamie, Oct 27, 2026, 22:56): a real picture
   area across the top of the card — the owner's chosen photo, or
   the bundled default art for the card — never a tiny icon and
   never a bare card. */
.promocard { overflow: hidden; }
.promopic {
  display: block;
  width: 100%;
  height: 150px;
  /* B-W6 (FULL AUDIT 3): natural aspect — the whole picture shows,
     undistorted and uncropped (gift imagery especially); the tint
     band behind it is the card's own surface colour, not a letterbox
     defect. */
  object-fit: contain;
  /* DEMO-FIX add-on (Nov 8, 2026): the one corner standard —
     the shared 14px radius token, not a one-off 10px. */
  border-radius: var(--radius);
  margin: 0 0 10px;
  background: var(--surface-alt);
}

/* B-W13 (FULL AUDIT 3): a SELECTED segmented toggle (theme /
   language) wears a quiet tint + outline — the solid brand green
   is reserved for the screen's ONE primary action button. */
button.seg-on {
  background: var(--sel);
  color: var(--ink);
  border: 2px solid var(--action);
  box-shadow: none;
}

/* B-W11 (FULL AUDIT 3): guest calendar month navigation. */
.monthnav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0;
}
.monthnav button:disabled { opacity: 0.45; }

/* One owned gift card / invoice inside the profile assets box */
.giftcard {
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 10px 0;
  white-space: normal;
}
.giftcard p { margin: 4px 0; }

/* The scannable redeem code: QR (white quiet zone baked into the
   canvas by qr.js) + the same code as readable text underneath */
.qrwrap { text-align: center; margin: 8px 0 2px; }
.qrwrap canvas {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.giftcode {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin: 6px 0 2px;
  user-select: all;
}

/* UX pass (Oct 26, 2026): the radius token scale (C2) + the B19
   anchor pulse — the My bookings section rings when the footer
   jump lands on it; static outline under reduced motion. */
:root { --radius-card: 14px; --radius-btn: 12px; --radius-field: 10px; }
button, .bigbook { border-radius: var(--radius-btn); }
input, select, textarea { border-radius: var(--radius-field); }
.lookingfor a { font-weight: 600; }
/* W4-WEB tour replay (footer Help column): a button wearing the
   footer's link clothes. Nov 11, 2026 (Jamie): the writing was still
   greenish-pale next to the "Help & how it works" link — `color:
   inherit` took the footer BODY colour (#F2F7EC), not the LINK
   colour, and the underline set it further apart. It now wears the
   footer links' exact treatment: #B6D7A5, no underline, white on
   hover — identical in both themes (the footer rules are hardcoded,
   not theme variables). */
.foot-tour-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: #B6D7A5; cursor: pointer; }
.foot-tour-btn:hover { color: #FFFFFF; }

/* ---------- guided tours (W4-WEB) ---------- */
.tour-overlay { position: fixed; inset: 0; z-index: 2000; }
.tour-shield { position: absolute; inset: 0; }
.tour-ring { position: fixed; border: 3px solid #F2B705; border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.55); pointer-events: none; transition: all .18s ease; }
.tour-card { position: fixed; left: 12px; right: 12px; max-width: 430px; margin: 0 auto;
  background: var(--surface, #fff); color: var(--ink, #1c2418); border-radius: 14px;
  padding: 16px 18px 14px; box-shadow: 0 10px 34px rgba(0,0,0,.35); }
/* FW4 (L-WV8 residual): the tour card's close x measured 22x29px —
   now a 44px hit box with the glyph centred in it. */
.tour-x { position: absolute; top: 2px; right: 2px; background: none; border: 0;
  font-size: 17px; line-height: 1; padding: 0; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: inherit; opacity: .75; }
.tour-title { font-weight: 700; font-size: 17px; margin: 0 24px 4px 0; }
.tour-body { margin: 0 0 12px; font-size: 15px; }
.tour-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tour-next { background: var(--action, #2E7D32); color: #fff; border: 0; border-radius: 9px;
  padding: 10px 20px; font-weight: 700; cursor: pointer; }
@keyframes jlb-target-pulse {
  0% { outline: 3px solid var(--action); outline-offset: 3px; }
  100% { outline: 3px solid transparent; outline-offset: 3px; }
}
#myBookings:target { animation: jlb-target-pulse 1.2s ease-out 2; border-radius: var(--radius-card); }
@media (prefers-reduced-motion: reduce) {
  #myBookings:target { animation: none; outline: 3px solid var(--action); outline-offset: 3px; }
}
/* jlb-web 2026-10-26-r3 — fix pass: rotating top pictures (crossfade),
   header language switch, "Follow me" row */
.hero-media img { transition: opacity .4s ease; }
.hero-media img.fadeout { opacity: 0; }
.langswitch { display: inline-flex; gap: 4px; align-items: center; }
.langbtn {
  background: transparent; color: inherit; border: 1px solid currentColor;
  border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 600;
  cursor: pointer; opacity: .75;
}
/* Gold discipline (FULL REVIEW C §4), completed Oct 28, 2026: the
   active language is a dark fill inside the outline with light-gold
   text — gold itself is the outline/accent, never the fill (the
   same treatment the help and signup pages now use). */
.langbtn.on { opacity: 1; background: #0B4238; border-color: var(--accent); color: #FFE9A8; }
.socialrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
/* Jamie, Nov 4, 2026: "Follow me" is a heading on its OWN line at
 * the top; the social buttons go in one row UNDERNEATH it (wrapping
 * naturally on narrow screens) — never beside the label. flex-basis
 * 100% forces the label onto its own line inside the wrap row. */
.social-label { font-weight: 700; flex: 0 0 100%; }
/* LOOP2 Pass 1 (Nov 4, 2026): the social row lives in its own
 * full-width band under the footer columns. Inside the first
 * ~320px footer column the four labelled pills could only ever
 * wrap 2+2 at desktop widths — the exact arrangement Jamie
 * filed — no matter the label rule. Full width gives the row
 * room to honour "one row underneath" on wide screens; it
 * wraps naturally on narrow ones. The band collapses entirely
 * while the row is hidden (a business with no socials). */
.foot-socials-wrap { max-width: 1120px; margin: -20px auto 0; padding: 0 20px 32px; }
.foot-socials-wrap:has(#footSocials[hidden]) { display: none; }
.foot-socials-wrap .socialrow { margin-top: 0; }

/* ---------- LOOP2 D7/D8/D10: team, staff pick, pictures ---------- */
.avatar-disc {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--action); color: var(--on-action);
  font-weight: 700; flex: none;
}
.avatar-img { border-radius: 50%; object-fit: cover; flex: none; }
.team-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; border-top: 1px solid var(--divider);
}
.team-card:first-of-type { border-top: 0; }
.team-avatar { width: 56px; height: 56px; font-size: 22px; }
.team-words { flex: 1 1 auto; min-width: 0; }
.team-words .big { margin: 0 0 2px; }
.team-role { margin: 0 0 4px; }
.team-bio { margin: 0; }
.team-book { flex: none; }
@media (max-width: 560px) {
  .team-card { flex-wrap: wrap; }
  .team-book { width: 100%; }
}
.staffpick { margin-bottom: 14px; }
.staffpick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.staffpick-btn.on {
  background: var(--action); color: var(--on-action); border-color: var(--action);
}
.photo-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.photo-avatar { width: 64px; height: 64px; font-size: 26px; }
.photo-thumb { width: 64px; height: 64px; border-radius: 12px; }
#acct-feedback textarea, #acct-feedback input[type="email"] { width: 100%; margin: 6px 0; }
.socialbtn {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 11px;
  border: 1px solid currentColor;
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px;
}
.socialbtn svg { width: 18px; height: 18px; flex: none; fill: currentColor; }

/* ---------- Audit pass (Oct 27, 2026 — swarm fixes) ---------- */
/* B7/M101-adjacent: the step holds its ground from first paint, and
   view changes land just under the sticky header (M108). */
#step { min-height: 480px; scroll-margin-top: 76px; }
/* MEGA PASS (W-04): the first-paint skeleton is a labelled
   loading state — a spinning ring and the word "Loading…". */
.skel-spin {
  width: 34px; height: 34px; margin: 18px 0 8px;
  border-radius: 50%; border: 4px solid var(--surface-alt);
  border-top-color: var(--action);
  animation: skel-spin 0.9s linear infinite;
}
@keyframes skel-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .skel-spin { animation: none; } }
/* Item 29 (Nov 6, 2026): the obvious-loading wrapper — spinner
   centred in the area that is loading, caption underneath. */
.loadbox { display: flex; flex-direction: column; align-items: center; padding: 12px 0; }
.loadbox .skel-spin { margin: 6px 0; }
.loadcap { margin: 2px 0 0; }
/* Item 29 amendment: a loading caption's dots ANIMATE
   (. → .. → ...) so the words themselves read as working. */
.animdots::after { content: ''; animation: animdots 1.2s steps(1) infinite; }
@keyframes animdots {
  0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } 100% { content: '...'; }
}
@media (prefers-reduced-motion: reduce) { .animdots::after { animation: none; content: '...'; } }
/* Item 24 (Nov 6, 2026): a not-live-yet control reads red. */
.notif-soon { color: #b3261e; font-weight: 600; }
.skel-label { font-weight: 700; color: var(--ink-2); margin: 0 0 6px; }
/* MEGA PASS (W-06): the waitlist Join button spans the form. */
#waitlistForm button[type="submit"] { width: 100%; }
/* MEGA PASS (W-08): add-on checkboxes are real tap targets. */
.addonrow input[type="checkbox"] { width: 22px; height: 22px; flex: none; }
.skel-line { height: 22px; border-radius: 6px; background: var(--surface-alt); margin: 14px 0; }
.skel-line.w50 { width: 50%; }
.skel-card { height: 92px; border-radius: var(--radius-card, 14px); background: var(--surface-alt); margin: 12px 0; animation: skel-pulse 1.4s ease-in-out infinite; }
@keyframes skel-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .skel-card { animation: none; } }
/* m18: success line — its own colour, reserved height so it never
   shoves the page when it appears. */
#notice { color: var(--success); font-weight: 600; min-height: 1.5em; margin: 6px 0 0; }
/* m56: the bar's money figure, visually distinct from the summary. */
.bartotal { font-weight: 800; }
.bartotal::before { content: ' · '; font-weight: 600; }
/* M107: the language switch holds its width across EN/FR labels. */
.langswitch { min-width: 118px; justify-content: flex-end; }
/* m132/m134/m135: comfortable tap targets. */
button.small { min-height: 44px; }
.langbtn { padding: 6px 12px; min-height: 44px; min-width: 44px; } /* polish-3: 44px touch guideline */
.socialbtn { min-height: 44px; }
/* M99: hero text lines keep their height while the profile lands. */
.biz-name { min-height: 1.15em; }
.hero-city, .hero-hours { min-height: 1.4em; }
/* M55/M63: checkbox rows (policy agreement, waitlist consent). */
.polrow { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; font-weight: 600; }
.polrow input[type="checkbox"] { width: 20px; height: 20px; flex: none; margin-top: 2px; }
details summary { cursor: pointer; font-weight: 600; margin-top: 8px; }
.noscript-note { background: var(--surface-alt); padding: 12px 16px; border-radius: 10px; font-weight: 600; }

/* ---------- Header first row (Jamie, Oct 28, 2026) ----------
   The account control (#accountBtn — "Sign in" / "My account",
   the .theme-toggle pill) shares the FIRST header row with the
   logo, the title and the language switch: [logo] JLB Booking …
   EN · FR · Sign in. It used to wrap onto a row of its own under
   the title row and waste a full row of header height. The nav
   keeps its own full-width row below (the ≤860px rule above);
   the wide one-row layout is untouched. The tightening below is
   scoped to the widths where the first row was over-full, and
   covers the signed-in labels too ("Mon compte" / "My account"
   are both shorter than the widest case, French "Se connecter"). */
@media (max-width: 860px) {
  /* M107's fixed switch width was sized for the roomy layout;
     on the shared first row the switch hugs its two buttons. */
  .langswitch { min-width: 0; }
  header .theme-toggle { align-self: center; white-space: nowrap; }
}
@media (max-width: 560px) {
  header { gap: 6px; padding: 14px 10px; }
  header .logo { width: 40px; height: 40px; }
  header h1 { font-size: 19px; white-space: nowrap; }
  .langbtn { min-width: 38px; padding: 6px 7px; }
  header .theme-toggle { padding: 8px 10px; font-size: 13px; }
}

/* FW3 (L-WV1 + L-WV8, Nov 4, 2026): the phone header measured
   236px tall at 390px — over a quarter of the first screen. It now
   packs into two rows: (1) logo + title + language + Find a
   business + Sign in, (2) the nav on ONE row (tighter padding and
   type, never hidden — Sign in and Help both stay). The tighter
   padding is paired with min-height: 44px on every header control,
   so the header shrinks while its tap targets GROW to the 44px
   guideline (L-WV8's header family). */
@media (max-width: 560px) {
  header { gap: 4px 6px; padding: 10px; }
  header .logo { width: 36px; height: 36px; }
  header h1 { font-size: 18px; }
  .topnav { gap: 2px; }
  button.navlink, a.navlink { padding: 6px 7px; font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
  header .theme-toggle { padding: 6px 9px; font-size: 13px; min-height: 44px; }
  .langbtn { min-height: 44px; }
}
/* FW3 (L-WV8): the remaining sub-44px main controls — calendar day
   cells (were ~40px tall) and the hero photo dots (were a 40px hit
   box) — reach the 44px guideline. */
button.daycell { min-height: 44px; }
.hero-dot { width: 44px; height: 44px; }
/* FW3 (L-WV6): the directory card's capped service list + its
   see-all toggle. */
.dir-svc-more { margin: 2px 0 4px; }

/* Waitlist doors (Oct 31, 2026): the home "Just opened" board —
   one row per freed spot (day + time range, the words "Just
   opened", a Book button). Rows wrap instead of squeezing: on a
   narrow phone the button drops to its own line at full tap size
   rather than clipping the day/time text (shrink-first rule). */
.home-block h2 { margin: 0 0 8px; color: var(--primary); font-size: 19px; }
.opening-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px 14px; padding: 10px 0;
  border-top: 1px solid var(--divider);
}
.opening-row:first-child { border-top: none; padding-top: 2px; }
.opening-when { font-weight: 700; color: var(--primary); min-width: 0; }
.opening-just { font-weight: 700; color: var(--success); font-size: 13px; letter-spacing: 0.02em; }
.opening-row button { flex: none; margin: 0 0 0 auto; }
@media (max-width: 560px) {
  .opening-row button { margin-left: 0; }
}

/* Settings search + organization (Oct 30, 2026): group headers,
   the account view's search box, and the jump flash. */
.setgroup { margin: 26px 0 6px; font-size: 20px; }
.setsearch input { width: 100%; box-sizing: border-box; padding: 11px 14px; font-size: 16px; }
.setresult { display: block; width: 100%; text-align: left; margin: 6px 0; }
.setflash { outline: 3px solid var(--accent, #2b6cb0); outline-offset: 2px; }

/* Demo strip + lit remedy (SIGN-IN REDO, Nov 1, 2026; the yellow
   tester banner that shared this block was removed Nov 5, 2026 —
   D41: testers door lives in the apps only) */
.demo-strip { background:#571C15; color:#FFD9CF; text-align:center; padding:8px 12px; font-weight:700; }
.demo-strip[hidden] { display:none; }
.demo-strip a { color:#FFE9B8; margin-left:10px; }
button.glow-btn { background:var(--action, #2E7D32); color:#fff; border:3px solid #F2B705;
  font-weight:800; box-shadow:0 0 0 3px rgba(242,183,5,.35); }
button.glow-btn:disabled { opacity:.65; box-shadow:none; }
.mbcal { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; margin:10px 0 4px; }
/* FW4 (L-WV8 residual): month-grid day cells measured 40px tall —
   the 44px floor, same as the wizard's day cells (FW3). */
/* NEXT FULL AUDIT W2 (Nov 8, 2026): the grid buttons used to
   inherit the base button's margin (6px 6px 6px 0) and the
   columns were plain 1fr, so under narrow panes / large font
   scaling a two-digit day number wrapped ("10" over "0") and
   rows went uneven (Jamie's screenshot from a tester's phone).
   margin reset + minmax(0,1fr) columns + nowrap tabular numbers:
   a day number can never wrap again. No look/feel change. */
.mbcal button { min-height:44px; padding:4px 0; font-size:14px; margin:0; white-space:nowrap; font-variant-numeric:tabular-nums; }
/* INPUT 17 (W6-WEB) day states, RE-COLOURED 0.3.88 (Jamie's
   four-state scheme, Nov 3, 2026 — the pale pair #DCEBD2 /
   #E3E3DE read as ONE colour on his phone, ΔE 11.8): the
   Booking app's exact clear fills, identical in both themes —
   Available = clear green #79C25F; Limited spots = clear
   yellow #FFD23F; Not available = clear red tint #E88A7D;
   every ink clears WCAG AA on its fill. Your appointment
   keeps its base state fill and wears the blue marker ring
   #1D6FD1 + bold number — the app's treatment. */
.mbcal button.avail { background:#79C25F; border-color:#4E8A3C; color:#17300F; }
.mbcal button.few { background:#FFD23F; border-color:#C79A12; color:#2E2100; }
.mbcal button.closed { background:#E88A7D; border-color:#B85A4C; color:#3D0E08; }
.mbcal button.marked { font-weight:800; border-color:#1D6FD1; }
.mbcal button.appt { box-shadow:inset 0 0 0 3px #1D6FD1; font-weight:800; }
/* W7-WEB (P7-B2/B3): the SELECTED day is a ring over its state
   fill — the Booking app's language (BookingsDayState
   .selectedRing), never a fourth fill. Over the state
   fills the ring is the logo's deep green #002C27; over a
   still-neutral cell it is the theme primary (deep in light,
   highlight in dark — the app's unknown-state ring). On an
   appointment day the selected ring is WHITE and sits INSIDE
   the blue marker ring, so selected + appointment stack and both
   stay legible. TODAY is a small dot under the number in the
   cell's own ink colour — a marker, not a state; it is never
   named in the legend and composes with every fill + the ring
   (independent property). */
.mbcal button { position:relative; }
.mbcal button.sel { box-shadow:inset 0 0 0 3px #002C27; }
.mbcal button.sel:not(.avail):not(.closed):not(.appt) { box-shadow:inset 0 0 0 3px var(--primary); }
.mbcal button.appt.sel { box-shadow:inset 0 0 0 3px #1D6FD1, inset 0 0 0 6px #FFFFFF; }
.mbcal button.today::after { content:""; position:absolute; left:50%; bottom:3px; transform:translateX(-50%); width:5px; height:5px; border-radius:50%; background:currentColor; }
/* INPUT 17: the plain-words legend directly underneath the grid;
   each swatch wears the exact cell colour it names. */
.cal-legend { display:flex; gap:16px; flex-wrap:wrap; align-items:center; font-size:14px; margin:2px 0 12px; }
.cal-legend-item { display:inline-flex; align-items:center; }
.cal-swatch { display:inline-block; width:15px; height:15px; border-radius:4px; margin-right:6px; flex:none; }
.cal-swatch.avail { background:#79C25F; border:1px solid #4E8A3C; }
.cal-swatch.few { background:#FFD23F; border:1px solid #C79A12; }
.cal-swatch.closed { background:#E88A7D; border:1px solid #B85A4C; }
.cal-swatch.appt { background:radial-gradient(circle at center, #1D6FD1 0 3px, transparent 4px), #79C25F; border:1px solid #4E8A3C; box-shadow:inset 0 0 0 2px #1D6FD1; }
/* INPUT 17 alignment on the Step-3 picker (a different grid
   family — its Open/Few/Full/Closed words + dots stay): the
   client's own appointment day gains the same marker ring
   (0.3.88: blue, matching the month grids and the app), and
   the legend's appointment dot is blue to match. */
button.daycell.mine { border-color:#1D6FD1; box-shadow:inset 0 0 0 2px #1D6FD1; }
.legend .dot.mine { background:#1D6FD1; }
/* PASS 9 (A-8) + Wave B (L-C8): the legend's closed swatch matches
   the cell paint — Not available is the red tint #E88A7D now. */
.legend .dot.closed { background: #E88A7D; }

/* ---------- Wave B (Nov 3, 2026): directory labels + gift doors ---------- */
/* L-C10: the directory search labels stand visibly above their
   boxes (bold, like the app's field labels) — never placeholder-only. */
.dir-field { font-weight: 600; }
/* L-C4/L-C5: the Send / Add gift-card doors + their labelled forms,
   in the Shop's gift-cards section and the account assets box. */
.gift-doors { margin: 12px 0; }
.gift-doors > button { margin: 0 8px 8px 0; }
.gift-form { margin: 8px 0 12px; }
.gift-form label { font-weight: 600; }
.legend .legend-item { white-space: nowrap; }

/* ---------- Login dialog + sign-out toast (Jamie, Nov 3, 2026) ----------
   "You press login and it comes up. That's it. If you're not
   pressing on it, it's not there." The dialog is the only login
   UI; the panel sizes to its content and NOTHING inside it
   scrolls — the primary door and the passkey door are visible
   the moment it opens. On narrow screens it becomes a
   full-width sheet that hugs its content (FW4, L-WV13).
   Client green in both themes (the tokens do
   the work). z-index sits above the page + action bar, below
   the guided tour; the passkey system prompt is OS/browser
   chrome and always paints above the page. */
.login-overlay {
  position: fixed; inset: 0; z-index: 1600;
  background: rgba(0, 0, 0, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
body.dlg-open { overflow: hidden; }
.login-panel {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--divider); border-radius: var(--radius-card, 14px);
  box-shadow: var(--shadow-hover);
  width: 100%; max-width: 430px; max-height: calc(100dvh - 32px);
  padding: 18px 20px 14px;
}
.login-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.login-panel-title {
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  color: var(--primary); margin: 2px 0 0;
}
.login-x, .toast-x {
  background: none; border: 0; box-shadow: none; color: inherit;
  font-size: 17px; line-height: 1; cursor: pointer;
  min-width: 44px; min-height: 44px; padding: 10px; margin: -8px -10px 0 0;
}
/* C26 FIX WAVE (Nov 11, 2026): every stop inside the sign-in panel
   wears the thick green ring, the Close X included — a keyboard
   user can always see where they are in the dialog. */
.login-panel :focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 2px;
  border-radius: 6px;
}
.login-panel-body .authbox { margin: 4px 0 0; }
/* BLOCKED-BOOK NOTICE (Nov 13, 2026): the business's own words
   in the pop-up — bigger than body text, plain, never clipped;
   the panel itself reuses the login-panel shape (rounded, green
   Close button) with Liz's green mark on top. */
.notice-panel .notice-note { font-size: 17px; line-height: 1.5; margin: 10px 0 6px; }
/* (Jamie, Nov 15, 2026): a phone number inside a note never splits
   across lines — the digits stay together, the text wraps around them. */
.nowrap { white-space: nowrap; }
.notice-panel .paybtn { margin-top: 10px; }
.login-panel-body .authbox > p:first-child { margin-top: 6px; }
.login-panel-foot { display: flex; justify-content: flex-end; margin-top: 4px; }
/* D15 (Nov 8, 2026): the maker credit inside the sign-in panel —
   the panel is a block column, so the credit stacks at the very
   bottom under the Cancel row, in both themes (the .maker-credit
   treatment: muted line, brighter name, thin divider above). */
.login-maker { text-align: center; margin-bottom: 2px; }
/* D18 (Nov 8, 2026): the JLB calendar logo (green dress) centred
   at the top of the sign-in panel, the blue sign-in's treatment
   at modal scale. */
.login-logo-wrap { display: flex; justify-content: center; margin-bottom: 2px; }
.login-logo { width: 72px; height: 72px; }
@media (max-width: 640px) { .login-logo { width: 56px; height: 56px; } }
/* D17 (Nov 8, 2026): the app teaser in the sign-in panel — quiet,
   GREEN family, a link to the JLB app page with a soft hover.
   Theme tokens carry it in light + dark. */
.app-teaser { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; color: var(--ink-2); font-size: 13px; text-decoration: none; cursor: pointer; }
.app-teaser:hover #bkTeaserName { text-decoration: underline; }
.app-teaser-pill { background: var(--sel); color: var(--primary); border: 1px solid var(--divider); border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; }
.app-teaser:hover .app-teaser-pill { background: var(--action); color: var(--on-action); border-color: var(--action); }
/* Very short screens (landscape phones): the ONE case the panel
   itself may scroll — the doors still lead, in order, from the
   top, and nothing else on the page ever scrolls to reach them. */
@media (max-height: 560px) {
  .login-panel { overflow-y: auto; }
}
@media (max-width: 640px) {
  /* FW4 (L-WV13): the sheet HUGS its content — it no longer stretches
     to the full screen height (height: 100dvh left the lower half
     blank under the form; measured 844px tall for ~292px of form).
     The panel anchors to the top of the screen, spans the width,
     caps at the viewport height and scrolls internally only when
     its content is genuinely taller than the screen. The dialog
     still exists only while it is open (the pop-up-only rule). */
  .login-overlay { padding: 0; align-items: flex-start; }
  .login-panel {
    max-width: none; max-height: 100dvh; height: auto; width: 100%;
    border: 0; border-radius: 0; overflow-y: auto;
  }
}
/* Sign-out confirmation: a filled green pill above the action
   bar — plain, unmissable, dismissible, auto-hides. */
.signout-toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 1700;
  display: flex; align-items: center; gap: 6px;
  background: var(--action); color: var(--on-action);
  font-weight: 700; font-size: 16px;
  border-radius: 999px; padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow-hover);
  max-width: calc(100vw - 24px);
}
/* FW4 (L-WV8 residual): the toast's dismiss x measured 40px — 44px like every other close box. */
.signout-toast .toast-x { margin: 0; min-width: 44px; min-height: 44px; }

/* ---------- LOOP2 Pass 2 (Nov 4, 2026) ---------- */
/* Item 2 — top-bar arrangement: the first row is its own flex row
   (logo disc + wordmark + EN/FR + sign-in controls); the text row
   (Book / Shop / My bookings / Waitlist / Help / Find a business)
   takes the full width under it at every width. */
.topbar-row { display: flex; align-items: center; gap: 12px; width: 100%; }
/* Jamie, Nov 12, 2026: the three top-bar pills sit on one line. The
   English pill was 44px tall (min-height on .langbtn) while Dark mode
   / Adapt this page were 39px, so its bottom edge sat 5px lower; on
   phones the language button wrapped to two lines and grew taller
   than its neighbours. Same 44px height everywhere, and the language
   button never wraps or shrinks, so all three share one top and one
   bottom at every width. */
.topbar-row .langswitch { margin-left: auto; flex: none; }
.topbar-row .theme-toggle { margin-left: 0; min-height: 44px; align-self: center; }
.topbar-row .langbtn { white-space: nowrap; }
/* The base `button` rule gives every button a 6px margin on three
   sides — inside this row the `gap` is the spacing, so the margins
   only double-spaced the pills and inflated the row's natural width
   8px past 423px at Jamie's phone width, wrapping Sign in to a
   second line. Zero them here; the row gap does the spacing. */
.topbar-row button { margin: 0; }
.topnav { width: 100%; margin-left: 0; }
/* Small screens: the wordmark TEXT goes away (logo disc alone);
   signed-in controls fit the one top row instead of stacking. */
@media (max-width: 560px) {
  .wordmark { display: none; }
  /* Jamie, Nov 12, 2026 (top-bar pills): the row no longer fits one
     line on narrow phones once the language button keeps its full
     one-line width — nowrap pushed Sign in off the right edge (51px
     horizontal overflow at 390px). It wraps instead: logo + the three
     pills on line one, Sign in on line two, every control visible
     and level. Jamie's own phone (443px) still fits on one line. */
  .topbar-row { gap: 8px; flex-wrap: wrap; }
  .topbar-row .theme-toggle { white-space: nowrap; }
}
/* Item 3 (D12) — hero photo cap on wide screens: the business photo
   renders at a natural, moderate size with the page breathing
   around it (max-width AND max-height); the 16/10 box + cover crop
   bias (center 35%) stays, so no heads/certificates are chopped.
   Phone widths are unchanged (full-bleed). */
@media (min-width: 900px) {
  .hero-slider { max-width: 560px; margin-left: auto; margin-right: auto; }
  .hero-media img, .hero-name-fallback { max-height: 350px; }
}
/* Item 9 (D18) — client sign-in backdrop: SOLID client green, no
   page showing through, no hidden backdrop elements. The card is
   white in light mode; in dark mode it is a dark card with light
   text and a thin light edge so the box reads as a box. */
.login-overlay { background: var(--header-bg); }
:root[data-theme="dark"] .login-panel {
  background: #1B2413; color: #EDF2E4;
  border: 1px solid rgba(237, 242, 228, 0.6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .login-panel {
    background: #1B2413; color: #EDF2E4;
    border: 1px solid rgba(237, 242, 228, 0.6);
  }
}
/* Item 5 (D14) — profile-photo crop tool: round frame matching the
   disc, drag to position, slider zoom, Save / Cancel. */
.crop-wrap { margin-top: 10px; }
.crop-frame {
  width: 220px; height: 220px; border-radius: 50%; overflow: hidden;
  position: relative; margin: 8px auto; background: var(--surface-alt);
  border: 2px solid var(--divider); touch-action: none; cursor: grab;
}
.crop-frame img { position: absolute; left: 0; top: 0; max-width: none; user-select: none; -webkit-user-drag: none; }
.crop-zoom { width: 220px; display: block; margin: 6px auto; }
.crop-row { display: flex; gap: 8px; justify-content: center; margin-top: 6px; }
.demo-notice {
  background: #FFF3B0; color: #3A2E00; border: 1px solid #C29B3C;
  border-radius: 10px; padding: 10px 12px; font-weight: 600;
}
.pk-status { font-weight: 700; }


/* C1(c): the location-choice cards — full-width tappable places,
 * client green accent (--action is the client side's colour). */
.loc-pick {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; text-align: left; margin: 8px 0; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--action);
  border-radius: var(--radius); cursor: pointer; min-height: 56px;
}
.loc-pick:hover { background: var(--surface-alt); }
.loc-pick .loc-name { font-weight: 700; font-size: 17px; color: var(--primary); }

/* INSERT 7 (Nov 10, 2026): the business-signup fixture — a green
 * pill in the top bar on wide screens (always there, signed-out
 * or signed-in, no dismiss); on phone widths the pill hides and
 * the same door rides the nav row as a menu entry. Client green
 * family (#4E8A3C deep green + white words); never grey. */
header .theme-toggle.biz-signup { background: var(--action); border-color: var(--action); color: #fff; text-decoration: none; margin-left: 8px; }
/* C26 FIX WAVE (Nov 11, 2026): the hover must keep the pill's white
   words — the global a:hover colour washed them out (white-on-white,
   walk item 2). Hover now darkens the green and re-states the white. */
header .theme-toggle.biz-signup:hover { background: #3E6F30; border-color: #3E6F30; color: #fff; }
/* ITEM 39 (Nov 10, 2026): never both — the old .biz-signup-nav
 * hide (0,1,0) always lost to the base a.navlink rule (0,1,1), so
 * the nav copy showed beside the pill at laptop widths. The
 * header-scoped selector wins in BOTH directions. */
header a.navlink.biz-signup-nav { display: none; }
@media (max-width: 560px) {
  header .theme-toggle.biz-signup { display: none; }
  header a.navlink.biz-signup-nav { display: inline-flex; }
}

/* C23 kit (Nov 10, 2026; revised Nov 11): green Liz in the TOP BAR,
 * same as the blue side — video idle loop, 54px at rest, ~92px when
 * her panel is open (body.liz-open scale 1.7, blue parity). No name
 * label beside her (Jamie, Nov 11). Visible at every size.
 * NOV 12 (Jamie): on phones the nav is its own full-width row and
 * she is its FIRST item — growing from her centre pushed her 9px
 * off the screen's left edge (measured headless: x=-9 at scale
 * 1.7). On phone widths she grows rightward from her left edge
 * instead, so she stays fully on screen. */
#navLiz { display: inline-flex; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; flex: none; /* NOV 12 (Jamie, 11:12): press-and-hold to drag her out must never bring up the browser's long-press download menu — no callout, no selection on her. */ -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
#navLiz .liz-nav-mark { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--action); display: block; object-fit: cover; background: transparent; /* the press targets the button, never the video file itself */ pointer-events: none; }
html:not(.a11y-calm) #navLiz { transition: transform .38s ease; }
body.liz-open #navLiz { transform: scale(1.7); transform-origin: 50% 42%; }
@media (max-width: 860px) { body.liz-open #navLiz { transform-origin: 0% 42%; } }
/* NOV 14 (Jamie — green calm matches blue): the open growth keeps
 * her small under calm, same as blue (14-liz.css gates the same
 * growth on html.a11y-calm and prefers-reduced-motion). */
html.a11y-calm body.liz-open #navLiz { transform: none; }
@media (prefers-reduced-motion: reduce) { body.liz-open #navLiz { transform: none; } }
/* GREEN LIZ PARKED (Nov 12, 2026 — Jamie): dragged out she floats
 * above her panel (z-index 9999 over the panel's 9998) with NO
 * transform — the open growth never applies while parked (the blue
 * 22:50 growth bug), so she stays her own size and overlaps the
 * panel's top edge instead of growing off it.
 * NOV 13 (Jamie — LIZ OUT = BIG, SUPERSEDES the Nov 12 "drops
 * off" lock-in above): anytime Liz is out she is the bigger
 * version, panel open or not — so the parked growth applies
 * whether or not the panel is open. The pin still measures her
 * UNSCALED layout size (offsetWidth), so the growth can never
 * compound the way the 22:50 bug did. */
#navLiz.liz-parked { position: fixed; z-index: 9999; margin: 0; transform: scale(1.7); transform-origin: 50% 42%; }
@media (max-width: 860px) { #navLiz.liz-parked { transform-origin: 0% 42%; } }
/* NOV 14 (Jamie — green calm matches blue): parked-big is gated on
 * calm exactly like blue (14-liz.css: html.a11y-calm and
 * prefers-reduced-motion both drop the parked growth). */
html.a11y-calm #navLiz.liz-parked { transform: none; }
@media (prefers-reduced-motion: reduce) { #navLiz.liz-parked { transform: none; } }
/* NOV 14 (Jamie — Liz blocks the phone nav, LIVE on his Pixel):
 * her grown circle is 92px (54 x 1.7) but a transform never
 * reflows the flex nav, so the grown Liz painted over the Chat
 * button, and a parked Liz restored over the nav covered Book.
 * On phone widths her button reserves the full grown box, mark
 * centred in it, and the growth is centred — so in every state
 * (rest, open, parked) her painted circle stays inside the space
 * the nav already gave her, and no link can ever sit under her.
 * Desktop keeps the 54px box and the 0%/42% origins: the top bar
 * there has room and the growth never reaches a link. */
@media (max-width: 860px) {
  /* Her grown circle is 92px, so her SLOT in the flex nav is
   * 92px — but as MARGIN, not as button size: the button stays
   * 54px, so scale(1.7) still paints exactly 92px. (Sizing the
   * button itself 92px grew the painted box to 156px and covered
   * the row below — the first attempt at this fix, caught by the
   * touch repro before it shipped.) */
  #navLiz { margin: 19px; }
  body.liz-open #navLiz { transform-origin: 50% 50%; }
  #navLiz.liz-parked { transform-origin: 50% 50%; }
}

/* C23 Liz guide door (Nov 10, 2026): in place below the hero,
 * never in a menu. Her ring + button wear the business's page
 * colour (inline from the profile); the mark is never recoloured. */
/* Dark-mode readability (Nov 11, 2026): --card is defined NOWHERE,
 * so the old var(--card, #fff) was white in BOTH themes while the
 * text inherits --ink (near-white in dark) — the sorry line was
 * invisible in dark mode. --surface is #FFFFFF light / #073428
 * dark, so the card reads in both. */
#lizGuide { max-width: 960px; margin: 10px auto 0; padding: 0 16px; }
.liz-guide-card { display: flex; align-items: center; gap: 12px; background: var(--surface, #fff); color: var(--ink);
  border: 2px solid #1d7a4f; border-radius: 14px; padding: 10px 14px; }
.liz-guide-mark { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #1d7a4f; flex: none; object-fit: cover; }
.liz-guide-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.liz-guide-attr { font-size: 13px; opacity: .8; }
.liz-guide-line { font-size: 14px; }
.liz-guide-go { background: #1d7a4f; color: #fff; border: none; border-radius: 999px;
  padding: 10px 18px; font-size: 15px; font-weight: 600; cursor: pointer; flex: none; }

/* Gap #3 (Nov 12, 2026): embed mode — /embed/<slug>/ inside another
 * site's iframe. The site chrome (top bar, nav, footer) stays off
 * the embedded page; the booking flow, sign-in dialog, Liz guide
 * card and action bar are untouched. The slim credit below is the
 * only platform line in the embed. */
#embedCredit { display: none; }
html.jlb-embed header, html.jlb-embed footer { display: none; }
html.jlb-embed #embedCredit { display: block; text-align: center; font-size: 12px; opacity: .75; padding: 10px 12px 18px; margin: 0; }
html.jlb-embed #embedCredit a { color: inherit; }

/* MOBILE FIX (Nov 12, 2026 — phone check MOBILE-CHECK-2026-11-12.md):
 * two pre-existing phone-layout defects on booking Step 1, both in
 * flex rows that never shrink on a 390px screen. Desktop is
 * untouched — everything below lives under 560px. The embed credit
 * bar is NOT touched here (Jamie's call on sticky vs footer is
 * still pending). */
@media (max-width: 560px) {
  /* Defect 1 — the service name was crushed to ~50-75px and broke
   * letter by letter: .svc-top packs checkbox + 76px photo + name
   * + a never-shrinking price into one row. On phones the price
   * drops to its own right-aligned line, so the name gets the whole
   * row (checkbox + photo + name) and wraps at word boundaries.
   * D22b still holds — the price never collides with the name, it
   * just sits on the next line. */
  .svc-top { flex-wrap: wrap; }
  .svc-top .price { flex: 1 1 100%; text-align: right; }
  /* Add-on rows share the shape (checkbox + photo + name + price);
   * same treatment so a long add-on name cannot squeeze its price.
   * Children of .addonrow: input, photo, name span, price span. */
  .addonrow > span:nth-child(3) { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
  .addonrow .price { flex: 0 0 auto; }

  /* Defect 2 — the French Continue button ran 63px off the screen:
   * both bar buttons were flex: none, so the action label could
   * never shrink or wrap. On phones the action button takes the
   * free space and its label wraps — but wrapping alone grew the
   * bar to 108-148px (3-4 line labels), over the body's 96px
   * bottom padding, covering page content (the Oct 27 audit's
   * exact warning). So the bar is re-balanced as well: the summary
   * yields first (flex-shrink 3, 48px floor — the recap also lives
   * on the page itself), Back slims to 10px sides, and the action
   * label drops to 15px/1.3. Measured worst split at 15px/600:
   * "Continuer — choisissez" needs 169px, so the action keeps
   * ~178px of text room at 360px and wraps to at most two lines.
   * Bar lands 79px on every step, EN+FR, 390 and 360. */
  #actionBar { gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  #barSummary { flex: 1 3 auto; min-width: 48px; }
  #barBack { padding-left: 10px; padding-right: 10px; }
  #barAction { flex: 1 1 auto; min-width: 0; white-space: normal; font-size: 15px; line-height: 1.3; padding: 10px 14px; }
}

/* LIVE-DEFECTS-4 (Nov 13, 2026, Jamie's walkthrough): the Nov 12
 * fix above only wrapped the Step-1 row under 560px — above that
 * (tablet, computer) the same squeeze shredded the name again,
 * because the never-shrinking nowrap price (longer still with a
 * USD estimate + " / person") left the body ~30px. Above 560px
 * the price stays top-right when it fits; the body keeps a 160px
 * floor (the longest one-word service name at large text), and
 * when the row cannot fit body + price the price drops to its own
 * right-aligned line instead of crushing the name. Add-on rows
 * share the shape, so they get the same floor. The phone rule
 * above keeps its own proven behaviour (price always on its own
 * line under 560px). */
@media (min-width: 561px) {
  .svc-top { flex-wrap: wrap; }
  .svc-top .svcbody { min-width: 160px; }
  .svc-top .price { margin-left: auto; }
  .addonrow { flex-wrap: wrap; }
  .addonrow > span:nth-child(3) { flex: 1 1 auto; min-width: 160px; overflow-wrap: break-word; }
  .addonrow .price { flex: 0 0 auto; margin-left: auto; }
}

/* GAP #4 (class booking, Nov 14, 2026): the classes section on
 * Step 1 — cards in the page's own shape; the button is the
 * default rounded green button (no grey, no square corners). */
.class-block { margin-top: 24px; }
.class-card { border: 1px solid var(--line, #e3e3e3); border-radius: 16px; padding: 14px 16px; margin: 10px 0; }
.class-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.class-name { font-weight: 700; }
.class-teacher { color: var(--muted, #666); }
.class-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin: 6px 0 10px; }
.class-spots { font-weight: 700; }
.class-spots.full { color: var(--danger, #b3261e); }
