/* Book2Day theme — "Chrome and mint" with sharp corners (Nov 2026).
   Cool chrome-grey ground, graphite ink and buttons, mint used sparingly for selection and highlights (chosen slot,
   badges, logo dot). Gold is kept only for warnings. Corner style lives in --radius / --radius-sm / --radius-pill.
   Bricolage Grotesque for headings, Figtree for text; both self-hosted (the CSP allows no font hosts). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.ada540c0e24a.woff2") format("woff2-variations"), url("../fonts/bricolage-grotesque-latin.ada540c0e24a.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin.202cfb54d4e6.woff2") format("woff2-variations"), url("../fonts/figtree-latin.202cfb54d4e6.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}

:root {
  /* Palette: "Chrome and mint" — cool silver greys, graphite ink and buttons, fresh mint for selection and highlights. */
  --bg: #F2F3F5;           /* chrome grey page */
  --surface: #FFFFFF;
  --surface-2: #E9EBEF;    /* sunken */
  --surface-3: #DDF7EF;    /* selected mint tint */
  --ink: #16181D;          /* graphite text */
  --ink-2: #3A3F48;
  --ink-3: #5F6672;
  --line: #E1E4EA;
  --line-2: #CDD2DA;       /* inputs, chips */
  --line-3: #E6E8ED;       /* dividers */
  --navy: #16181D;         /* legacy name: the dark structural color (logo, panels) */
  --primary: #16181D;      /* graphite — buttons, links, selected */
  --primary-hover: #2E323A;
  --primary-ink: #FFFFFF;
  --primary-soft: #DDF7EF;
  --primary-line: #9FE3CF;
  --accent: #7BE0C3;       /* mint — chosen slot, highlights, logo dot */
  --accent-ink: #073D2F;
  --accent-hover: #5FD3B2;
  --accent-deep: #0B7A5C;  /* mint as text or thin lines */
  --accent-soft: #DDF7EF;
  --accent-text: #0B5A45;
  --ok: #0B7A5C;
  --ok-soft: #DDF7EF;
  --warn: #6B3A06;
  --warn-soft: #FCE7C8;
  --warn-fill: #F2B544;    /* gold, warnings only */
  --warn-line: #D9A441;
  --danger: #B42318;
  --danger-soft: #FDE4E2;
  --danger-line: #F0A9A3;
  --panel: #16181D;        /* graphite panels: sidebar, footer, hero preview */
  --panel-2: #262A31;
  --panel-line: #3A3F48;
  --panel-ink: #FFFFFF;
  --panel-ink-2: #C5CAD3;
  --panel-ink-3: #8D94A0;
  --panel-link: #7BE0C3;
  --muted-fill: #E9EBEF;   /* completed items */
  --muted-line: #CDD2DA;
  --stripe-1: #E9EBEF;     /* time off */
  --stripe-2: #E0E3E8;
  /* Shape: "Sharp". Change these three to switch the whole site's corner style. */
  --radius: 0;             /* cards, panels, covers */
  --radius-sm: 0;          /* buttons, inputs, slots */
  --radius-pill: 0;        /* chips, badges, eyebrow tags */
  --shadow: 0 10px 30px rgba(22, 24, 29, .06);
  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Bricolage Grotesque", "Figtree", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}
/* Dark theme: switched off. Everyone sees the light chrome-and-mint look whatever their device setting.
   These values stay here in case a dark/light toggle is added later (set data-theme="dark" on <html>). */
:root[data-theme="dark"] {
    /* Soft graphite dark mode (lighter than near-black). */
    --bg: #1F2228; --surface: #272A31; --surface-2: #2F333B; --surface-3: #183A32;
    --ink: #F1F3F6; --ink-2: #C9CED6; --ink-3: #A3AAB5;
    --line: #3A3F48; --line-2: #4A505B; --line-3: #33373F;
    --navy: #16181D;
    --primary: #7BE0C3; --primary-hover: #9BE9D2; --primary-ink: #073D2F; --primary-soft: #183A32; --primary-line: #2E7A64;
    --accent: #7BE0C3; --accent-ink: #073D2F; --accent-hover: #9BE9D2; --accent-deep: #7BE0C3; --accent-soft: #183A32; --accent-text: #A8EDD9;
    --ok: #7BE0C3; --ok-soft: #183A32;
    --warn: #F0C27A; --warn-soft: #3E3420; --warn-fill: #F2B544; --warn-line: #A07A2A;
    --danger: #F59A92; --danger-soft: #45262A; --danger-line: #8A4A50;
    --panel: #16181D; --panel-2: #262A31; --panel-line: #3A3F48;
    --muted-fill: #343842; --muted-line: #4A505B;
    --stripe-1: #2C3038; --stripe-2: #333741;
    --shadow: 0 1px 2px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--ink-3); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 540px; margin: 0 auto; padding: 0 16px; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid > *, .biz-layout > *, .book-layout > * { min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary-hover); background: var(--primary-soft); padding: .35rem .75rem; border-radius: var(--radius-pill); }

/* ---------- logo ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 700;
  font-size: 1.4rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; flex: none; }

/* ---------- top bar ---------- */
.topbar { background: var(--bg); border-bottom: 1px solid var(--line-3); position: sticky; top: 0; z-index: 10; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.nav { display: flex; gap: .2rem; align-items: center; }
.nav a, .nav button.linklike { color: var(--ink); text-decoration: none; font-weight: 500; padding: .5rem .75rem;
  border-radius: var(--radius-sm); font-size: .97rem; white-space: nowrap; }
.nav a:hover, .nav button.linklike:hover { color: var(--primary); background: transparent; }
.nav .btn { color: var(--primary-ink); margin-left: .4rem; }
/* English | Español switch. Phones get it next to the Menu button, so it's found without opening the menu. */
.lang-switch { font-weight: 500; }
.lang-phone { display: none; margin-left: auto; }
.lang-phone .lang-switch { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .7rem; color: var(--ink);
  text-decoration: none; border: 1px solid var(--line-3); border-radius: var(--radius-sm); font-size: .92rem; }
.nav .btn:hover { color: var(--primary-ink); }

/* ---------- footer ---------- */
.footer { margin-top: 4rem; padding: 3rem 0 2rem; background: var(--panel); color: var(--panel-ink-2); font-size: .95rem; }
.footer a { color: var(--panel-ink-2); text-decoration: none; }
.footer a:hover { color: #FFFFFF; }
.footer .brand { color: #FFFFFF; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem 4rem; }
.footer-grid > div { display: flex; flex-direction: column; gap: .5rem; flex: 1 1 160px; }
.footer-grid > div:first-child { flex: 2 1 260px; }
.footer-grid strong { color: #FFFFFF; }
.footer .fine { margin-top: 2rem; font-size: .82rem; color: var(--panel-ink-3); }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid var(--primary);
  background: var(--primary); color: var(--primary-ink); padding: .65rem 1.25rem; border-radius: var(--radius-sm); font: inherit;
  font-weight: 600; text-decoration: none; cursor: pointer; min-height: 46px; }
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-ink); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--bg); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line-2)); }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; color: var(--ink); }
.btn-sm { padding: .35rem .8rem; min-height: 36px; font-size: .88rem; }
.btn-block { width: 100%; }
button.linklike { background: none; border: 0; font: inherit; cursor: pointer; }

label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink-2); margin-bottom: .35rem; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=date], input[type=time],
input[type=datetime-local], input[type=password], input[type=search], input[type=url], input:not([type]), select, textarea {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: inherit; min-height: 48px; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line-2)); }
textarea { min-height: 90px; }
/* Eye button inside password boxes (static/js/password-toggle.js). Hidden by default; 44px tap target. */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 3.25rem; }
.pw-eye { position: absolute; top: 50%; right: 2px; transform: translateY(-50%); width: 44px; height: 44px;
  display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--radius-sm); background: transparent;
  color: var(--ink-3); cursor: pointer; }
.pw-eye svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--ink); }
.pw-wrap input::-ms-reveal, .pw-wrap input::-ms-clear { display: none; }  /* Edge adds its own eye: show only ours */
.pw-eye:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: -4px; }
.field { margin-bottom: 1.1rem; }
.field .help { font-size: .85rem; color: var(--ink-3); margin-top: .3rem; }
.field .errors { color: var(--danger); font-size: .88rem; margin-top: .3rem; font-weight: 600; }
.checkbox { display: flex; gap: .55rem; align-items: center; font-weight: 500; color: var(--ink); }
.checkbox input { width: 20px; height: 20px; accent-color: var(--primary); }
.radios { display: flex; gap: .5rem; flex-wrap: wrap; }
.radios label { font-weight: 600; display: flex; gap: .45rem; align-items: center; border: 1px solid var(--line-2); color: var(--ink);
  padding: .55rem 1rem; border-radius: var(--radius-pill); background: var(--surface); cursor: pointer; margin: 0; min-height: 44px; }
.radios label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.radios input { accent-color: var(--primary); }
/* Checkout: book with an account or as a guest */
.book-as { border: 0; padding: 0; margin: 0 0 1.1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; min-width: 0; }
.book-as legend { font-weight: 600; color: var(--ink); margin-bottom: .45rem; padding: 0; }
.book-as-option { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--line-2); background: var(--surface);
  padding: .8rem .9rem; border-radius: var(--radius-sm); cursor: pointer; margin: 0; min-height: 44px; }
.book-as-option input { width: 20px; height: 20px; margin-top: .1rem; flex: none; accent-color: var(--primary); }
.book-as-option span { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.book-as-option strong { color: var(--ink); }
.book-as-option small { color: var(--ink-3); font-size: .85rem; line-height: 1.4; }
.book-as-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface-3); }
[data-label-guest] { display: none; }
.checkout-form:has(.book-as input[value="guest"]:checked) [data-label-guest] { display: inline; }
.checkout-form:has(.book-as input[value="guest"]:checked) [data-label-account] { display: none; }
.checkout-form:has(.book-as input[value="guest"]:checked) .field:has([data-account-only]) { display: none; }
.checkout-form:has(.book-as input[value="guest"]:checked) .deals-opt { display: none; }
.checkout-form:has(.book-as input[value="account"]:checked) .field:has([data-guest-only]) { display: none; }
.book-as-option small.book-as-code { margin-top: .2rem; color: var(--ink-2); }
/* Nothing is pre-selected: the details appear once the customer picks a way to book. Browsers without
   :has() simply show everything, and the server asks for a choice. */
.choose-hint { display: none; margin: -.4rem 0 0; }
.checkout-form:has(.book-as):not(:has(.book-as input:checked)) .after-choice { display: none; }
.checkout-form:has(.book-as):not(:has(.book-as input:checked)) .choose-hint { display: block; }
.deals-opt { border: 0; padding: 0; margin: .2rem 0 .6rem; min-width: 0; }
.deals-opt legend { font-weight: 600; color: var(--ink); padding: 0; margin-bottom: .2rem; }
.deals-opt .field { margin-bottom: .35rem; }
.save-offer { margin-top: 1rem; }
.perks { list-style: none; padding: 0; margin: 0 0 .9rem; display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .9rem; }
.perks li { position: relative; padding-left: 1.3rem; color: var(--ink-2); }
.perks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .55rem; height: .55rem; background: var(--accent, #7BE0C3); }
.save-offer .fine-print { margin-top: .6rem; }
@media (max-width: 640px) { .perks { grid-template-columns: 1fr; } }
.guest-link { display: flex; gap: .5rem; margin: .6rem 0 0; }
.guest-link input { flex: 1; min-width: 0; font-size: .9rem; }
@media (max-width: 640px) { .book-as { grid-template-columns: 1fr; } .guest-link { flex-direction: column; } }
.code-input { font-size: 1.7rem !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums;
  font-family: var(--display) !important; }
.inline-form { display: inline; }

/* ---------- cards, lists, badges ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card-flat { background: var(--surface); }
.card h2, .card h3 { margin-top: 0; }
.card-dark { background: var(--panel); color: var(--panel-ink); border-color: var(--panel); }
.card-dark .muted { color: var(--panel-ink-2); }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: .9rem 0; border-bottom: 1px solid var(--line-3); }
.list > li:last-child { border-bottom: 0; }
.badge { display: inline-block; padding: .2rem .65rem; border-radius: var(--radius-pill); font-size: .78rem; font-weight: 700;
  background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--primary-hover); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-primary { background: var(--primary-soft); color: var(--primary-hover); }
.badge-accent { background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent); }
.avatar { width: 44px; height: 44px; border-radius: var(--radius); display: inline-grid; place-items: center; font-weight: 700;
  font-family: var(--display); background: var(--primary-soft); color: var(--primary-hover); flex: none; }
.avatar-lg { width: 76px; height: 76px; border-radius: var(--radius); font-size: 1.8rem; }
.avatar-round { border-radius: 50%; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--ink-3); }
.card.empty { border-style: dashed; border-color: var(--line-2); }
hr { border: 0; border-top: 1px solid var(--line-3); margin: 1.5rem 0; }
details summary { cursor: pointer; font-weight: 600; }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: .5rem 1rem; margin: 0; }
.dl dt { color: var(--ink-3); }
.dl dd { margin: 0; }

/* ---------- messages ---------- */
.messages { list-style: none; padding: 0; margin: 1rem 0; }
.messages li { padding: .8rem 1rem; border-radius: var(--radius); margin-bottom: .5rem; background: var(--primary-soft); color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); }
.messages .error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.messages .success { background: var(--ok-soft); }
.messages .warning { background: var(--warn-soft); border-color: var(--warn-line); }
.devnote { background: var(--warn-soft); border: 1.5px dashed var(--warn-line); color: var(--ink); padding: .7rem 1rem;
  border-radius: var(--radius); font-size: .92rem; }
.devnote code { font-size: 1.15rem; font-weight: 700; letter-spacing: .15em; font-family: var(--display); }
.announce { padding: .65rem 0; font-size: .95rem; background: var(--panel); color: #FFFFFF; }
.announce-warning { background: var(--warn-fill); color: #16181D; }

/* ---------- customer: hero + search ---------- */
.hero { padding: 3.5rem 0 2.5rem; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: center; }
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 1.3rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); line-height: 1.04; margin: 0; }
.hero p.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 36rem; margin: 0; }
.searchbar { display: flex; flex-wrap: wrap; gap: .9rem; align-items: flex-end; background: var(--surface);
  padding: 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.searchbar .sf { display: flex; flex-direction: column; flex: 1 1 180px; min-width: 0; }
.searchbar .sf label { font-size: .82rem; margin-bottom: .3rem; }
.searchbar .btn { flex: 1 1 120px; min-height: 48px; }
.hero-preview { flex: 1 1 320px; min-width: 0; background: var(--panel); color: var(--panel-ink); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; transition: box-shadow .15s ease, transform .15s ease; }
/* The card is a link: keep its text white on hover/focus (the global a:hover would turn it graphite). */
.hero-preview:hover, .hero-preview:focus-visible, .hero-preview:active { color: var(--panel-ink); }
.hero-preview:hover { box-shadow: 0 10px 28px rgba(22, 24, 29, .22); transform: translateY(-2px); }
.hero-preview .muted { color: var(--panel-ink-2); }
.hero-preview .pv-title { font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
.hero-preview .pv-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.hero-preview .pv-slots span { text-align: center; padding: .6rem 0; border-radius: var(--radius-sm); border: 1px solid var(--panel-line); font-weight: 600;
  color: var(--panel-ink); transition: background-color .12s ease, border-color .12s ease, color .12s ease; }
.hero-preview .pv-slots .on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.hero-preview .pv-note { display: flex; align-items: center; gap: .6rem; background: var(--panel-2); border-radius: var(--radius); padding: .8rem;
  font-size: .9rem; color: var(--panel-ink-2); }

.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
.cat-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; padding: 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; min-height: 112px; }
.cat-tile:hover { border-color: var(--primary); color: var(--ink); }
.cat-tile.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.cat-ico { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; }
.cat-tile.on .cat-ico { background: #FFFFFF; }

.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: var(--radius-pill); border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.biz-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .12s ease, border-color .12s ease; }
.biz-card:hover { transform: translateY(-2px); border-color: var(--primary); color: inherit; }
/* Favorites: heart on cards (top-left of the cover) and on business pages */
.biz-card-wrap { position: relative; display: flex; min-width: 0; }
.biz-card-wrap > .biz-card { flex: 1; min-width: 0; }
.fav-on-card { position: absolute; top: .65rem; left: .65rem; z-index: 2; margin: 0; }
.fav-form { margin: 0; display: inline-flex; }
.fav-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .9rem; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  border-radius: var(--radius-pill); text-decoration: none; }
.fav-btn:hover { border-color: var(--ink); color: var(--ink); }
.fav-btn .heart path { fill: none; }
.fav-btn.on .heart path { fill: var(--ink); }
.fav-btn.on { background: var(--surface-3); border-color: var(--ink); }
.fav-on-card .fav-btn, a.fav-btn.fav-on-card { width: 40px; height: 40px; padding: 0; justify-content: center; border-color: transparent;
  background: rgba(255, 255, 255, .92); box-shadow: 0 1px 3px rgba(22, 24, 29, .18); }
.biz-fav { margin-top: .7rem; }
.biz-cover { height: 128px; position: relative; display: flex; align-items: flex-end; padding: 1rem; background: var(--ink); }
.biz-cover .mono { font-family: var(--display); font-size: 2.5rem; font-weight: 700; color: rgba(255, 255, 255, .92); line-height: 1; }
.biz-cover .tag { position: absolute; top: .75rem; right: .75rem; font-size: .75rem; font-weight: 700; padding: .3rem .65rem; border-radius: var(--radius-pill);
  background: #FFFFFF; color: #16181D; }
.biz-cover .tag.approval { background: #FCE7C8; color: #6B3A06; }
.biz-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.biz-body h3 { font-size: 1.2rem; margin: 0; }
.biz-card .meta, .meta { color: var(--ink-3); font-size: .88rem; font-weight: 500; }
.cov-barbers { background: #16181D; }
.cov-hair-braids-locs { background: #3A3F48; }
.cov-nail-techs { background: #5F6672; }
.cov-eyelash-techs { background: #2B3138; }
.cov-dental-services { background: #0B7A5C; }
.cov-massage { background: #4A5260; }
.section-title { margin: 2.75rem 0 1.1rem; font-size: 1.7rem; }

.how { background: var(--surface); border-top: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3); padding: 3.5rem 0; margin-top: 3.5rem; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.75rem; }
.how-grid p { color: var(--ink-2); margin: 0; }
.step-n { width: 38px; height: 38px; border-radius: var(--radius-pill); background: var(--ink); color: var(--bg); display: inline-flex;
  align-items: center; justify-content: center; font-weight: 700; margin-bottom: .8rem; }
.cta-band { background: var(--primary); color: var(--primary-ink); border-radius: var(--radius); padding: 2.5rem; display: flex; flex-wrap: wrap;
  gap: 2rem; align-items: center; margin-top: 3.5rem; }
.cta-band h2 { font-size: 2rem; margin: 0 0 .6rem; color: var(--primary-ink); }
.cta-band ul { margin: 0; padding-left: 1.2rem; line-height: 1.8; }
.cta-band .cta-copy { flex: 999 1 420px; min-width: 0; }
.cta-band .cta-card { flex: 1 1 260px; background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 1.5rem;
  display: flex; flex-direction: column; gap: .6rem; }
.cta-band .big { font-family: var(--display); font-size: 2.4rem; font-weight: 700; line-height: 1; }

/* ---------- customer: business page + booking ---------- */
.biz-hero { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; }
.biz-hero .biz-cover { height: 150px; }
.biz-head { display: flex; gap: 1.1rem; align-items: center; padding: 1.5rem 0 1.25rem; flex-wrap: wrap; }
.biz-head h1 { margin: 0; }
.svc { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.svc .info small { display: block; }
/* Keep the price and Book button on one line at the right edge so every Book button lines up,
   however long the service description is. */
.svc .info { flex: 1 1 auto; min-width: 0; }
.svc > .svc-action { flex: none; flex-wrap: nowrap; justify-content: flex-end; }
.svc-action .price { text-align: right; white-space: nowrap; }
.svc-action .price small { display: block; }
.list > li.svc { padding: 1rem 0; }
.steps { display: flex; gap: 1rem; margin: 1rem 0 1.5rem; font-size: .9rem; color: var(--ink-3); flex-wrap: wrap; font-weight: 600; }
.steps span { display: inline-flex; align-items: center; gap: .45rem; }
.steps span::before { content: attr(data-n); width: 26px; height: 26px; border-radius: var(--radius-pill); border: 1px solid var(--line-2);
  background: var(--surface); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.steps .done::before { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary-hover); }
.steps .on { color: var(--ink); }
.steps .on::before { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.steps .sep { display: none; }
.days { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
.day { flex: none; width: 66px; min-height: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); text-decoration: none; color: var(--ink); }
.day:hover { border-color: var(--ink); color: var(--ink); }
.day small { display: block; color: var(--ink-3); font-size: .74rem; font-weight: 600; }
.day strong { font-size: 1.2rem; font-family: var(--display); }
.day.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.day.on small { color: var(--panel-ink-2); }
.day.closed { opacity: .45; }
.days-more { flex: none; width: 44px; display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .55rem; }
.slots button { min-height: 48px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.slots button:hover { border-color: var(--primary); color: var(--primary); }
.slots button:active, .slots button:focus-visible { background: var(--accent); border-color: var(--accent-deep); color: var(--accent-ink); }

/* booking page: Day / Week / Month switcher, so customers can see a week or a month without scrolling the day strip */
.pick-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; margin-bottom: .8rem; scroll-margin-top: 84px; }
.pick-head h2 { margin: 0; }
.bcal-nav { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; }
.bcal-nav h3 { margin: 0; font-size: 1.05rem; text-align: center; }
.bcal-nav [aria-disabled="true"] { opacity: .35; pointer-events: none; }
.bcal-note { font-size: .86rem; margin: .7rem 0 0; }
/* week: seven columns, each with that day's free times */
.bweek { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; }
.bw-day { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.bw-head { display: flex; flex-direction: column; align-items: center; padding: .35rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); text-decoration: none; }
.bw-head:hover { color: var(--ink); border-color: var(--ink); }
.bw-head small { font-size: .7rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.bw-head strong { font-family: var(--display); font-size: 1.15rem; line-height: 1.2; }
.bw-day.today .bw-head { border-color: var(--accent-deep); box-shadow: inset 0 -3px 0 var(--accent); }
.bw-day.past .bw-head { opacity: .45; }
.bw-day.closed .bw-head { background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, color-mix(in srgb, var(--surface-2) 70%, var(--line)) 6px 12px); }
.bw-times { display: flex; flex-direction: column; gap: .3rem; }
.bw-times > small { text-align: center; font-size: .78rem; padding: .3rem 0; }
.bw-times form { display: contents; }
.bw-times button, .bw-full { min-height: 40px; padding: .25rem .2rem; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink); font: inherit; font-weight: 600; font-size: .84rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bw-times button small, .bw-full small { font-weight: 500; font-size: .7rem; color: var(--ink-3); }
.bw-times button:hover { border-color: var(--primary); color: var(--primary); }
.bw-times button:active, .bw-times button:focus-visible { background: var(--accent); border-color: var(--accent-deep); color: var(--accent-ink); }
.bw-full { cursor: default; opacity: .5; }
.bw-more { display: flex; align-items: center; justify-content: center; min-height: 36px; font-size: .8rem; font-weight: 600; color: var(--ink-2); text-align: center; }
/* month: whole month at a glance, number of free times per day */
.bmonth { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.bm-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.bm-row + .bm-row { border-top: 1px solid var(--line-3); }
.bm-row > * + * { border-left: 1px solid var(--line-3); }
.bm-headrow { background: var(--surface-2); }
.bm-headrow div { padding: .5rem .3rem; text-align: center; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.bm-cell { min-height: 64px; min-width: 0; display: flex; }
.bm-cell.outside { background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.bm-cell.past { align-items: flex-start; justify-content: center; padding-top: .45rem; color: var(--ink-3); opacity: .55; }
.bm-day { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; padding: .4rem .15rem;
  color: var(--ink); text-decoration: none; min-width: 0; }
.bm-day:hover { color: var(--ink); background: var(--surface-2); }
.bm-n { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 1.8rem; height: 1.8rem; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); }
.bm-c { font-size: .74rem; font-weight: 700; color: var(--accent-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bm-day.full .bm-c, .bm-day.closed .bm-c { color: var(--ink-3); font-weight: 500; }
.bm-day.full .bm-n { color: var(--ink-3); }
.bm-day.closed { background: repeating-linear-gradient(135deg, var(--surface) 0 8px, var(--surface-2) 8px 16px); }
.bm-day.today .bm-n { box-shadow: inset 0 0 0 2px var(--accent-deep); }
.bm-day.on .bm-n { background: var(--primary); color: var(--primary-ink); }
.bmonth .wd-short { display: none; }
@media (max-width: 760px) {
  /* week: one row per day instead of seven narrow columns */
  .bweek { grid-template-columns: 1fr; gap: .55rem; }
  .bw-day { flex-direction: row; align-items: flex-start; gap: .5rem; }
  .bw-head { flex: none; width: 56px; }
  .bw-times { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .bw-times > small { text-align: left; grid-column: 1 / -1; padding-top: .9rem; }
}
@media (max-width: 520px) {
  .pick-head .seg { flex: 1 1 100%; }
  .pick-head .seg a { flex: 1; justify-content: center; min-height: 44px; }
  .bm-cell { min-height: 54px; }
  .bmonth .wd-long { display: none; }
  .bmonth .wd-short { display: inline; }
  .bm-c .wd-short { display: inline-block; min-width: 1.2rem; }
}
.summary { background: var(--panel); color: var(--panel-ink); border-radius: var(--radius); padding: 1.4rem; }
.summary h3 { color: var(--panel-ink); }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0; }
.summary dt { color: var(--panel-ink-2); }
.summary dd { margin: 0; font-weight: 600; }
.summary .muted, .summary small { color: var(--panel-ink-2); }
.summary a { color: var(--panel-link); }
.summary .btn-ghost { color: var(--panel-ink-2); }
.summary .btn-ghost:hover { background: var(--panel-2); color: #FFFFFF; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent-deep); }
.summary .timer, .card-dark .timer { color: var(--panel-link); }
/* Add-ons: extras a client ticks when booking a service */
.addons-pick { margin-bottom: 1.4rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line-3); }
.addon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.addon { display: flex; align-items: center; gap: .8rem; margin: 0; padding: .75rem .9rem; min-height: 56px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-weight: 500; }
.addon:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line-2)); }
.addon input { width: 20px; height: 20px; flex: none; accent-color: var(--primary); }
.addon:has(input:checked), .addon.on { border-color: var(--accent-deep); background: var(--accent-soft); }
.addon-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.addon-text small { display: block; font-weight: 400; }
.addon-meta { text-align: right; white-space: nowrap; }
.addon-qty { cursor: default; }
.addon-qty label { margin: 0; font-size: inherit; color: inherit; }
.addon-qty select { width: auto; min-width: 7.5rem; flex: none; }
.addon-qty:has(select option:checked:not([value=""])) { border-color: var(--accent-deep); background: var(--accent-soft); }
@media (max-width: 380px) { .addon-qty { flex-wrap: wrap; } .addon-qty select { width: 100%; } }
.addon-meta small { display: block; }
.addon-lines { list-style: none; margin: 0 0 .9rem; padding: 0 0 .7rem; border-bottom: 1px solid var(--panel-2); }
.addon-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0; }
.addon-lines-plain { margin: 0; padding: 0; border: 0; }
.addon-hint { color: var(--accent-text); font-weight: 600; }
.checks { display: grid; gap: .45rem; }
.biz-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.book-layout { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
@media (max-width: 760px) { .biz-layout, .book-layout { grid-template-columns: 1fr; } }

/* ---------- provider dashboard ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--panel); color: var(--panel-ink-2); padding: 1.1rem .8rem; position: sticky; top: 0;
  height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: .2rem; }
.sidebar .brand { padding: .3rem .6rem 1rem; color: #FFFFFF; }
.sidebar .biz-switch { padding: .75rem; border-radius: var(--radius); background: var(--panel-2); margin-bottom: .8rem; font-size: .9rem; }
.sidebar .biz-switch strong { display: block; color: #FFFFFF; }
.sidebar .biz-switch .muted { color: var(--panel-ink-2); }
.sidebar .biz-switch a { color: var(--panel-link); }
.sidebar a.nav-item, .sidebar .nav-item { display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .85rem; border-radius: var(--radius-sm);
  color: var(--panel-ink-2); text-decoration: none; font-size: .96rem; font-weight: 500; }
.sidebar a.nav-item:hover, .sidebar .nav-item:hover { background: var(--panel-2); color: #FFFFFF; }
.sidebar a.nav-item.on { background: var(--primary); color: var(--primary-ink); font-weight: 600; }
.sidebar .nav-count { margin-left: auto; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-pill); font-size: .75rem;
  padding: 0 .5rem; font-weight: 700; }
.sidebar .spacer { flex: 1; }
.main { padding: 1.6rem 2rem 3rem; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.page-head h1 { font-size: 1.85rem; margin: 0; }
.mobile-nav { display: none; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-nav { display: flex; gap: .3rem; overflow-x: auto; background: var(--panel); padding: .55rem 16px; position: sticky; top: 0; z-index: 5; }
  .mobile-nav a { flex: none; padding: .5rem .8rem; border-radius: var(--radius-sm); color: var(--panel-ink-2); text-decoration: none; font-size: .9rem; }
  .mobile-nav a.on { background: var(--primary); color: var(--primary-ink); font-weight: 600; }
  .main { padding: 1.1rem 16px 3rem; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .85rem; margin-bottom: 1.5rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.stat .label { color: var(--ink-3); font-size: .85rem; font-weight: 600; }
.stat .value { font-family: var(--display); font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line-3); vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); background: var(--surface-2); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.toolbar { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.1rem; }
.toolbar select, .toolbar input { width: auto; min-height: 42px; padding: .45rem .8rem; }

/* calendar — statuses follow the mock's legend */
.cal { position: relative; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.cal-head { display: grid; position: sticky; top: 0; background: var(--surface-2); border-bottom: 1px solid var(--line); z-index: 2; }
.cal-head div { padding: .7rem .5rem; font-weight: 700; font-size: .9rem; text-align: center; border-left: 1px solid var(--line-3); }
.cal-head div:first-child { border-left: 0; }
.cal-body { display: grid; position: relative; }
.cal-hours { border-right: 1px solid var(--line-3); }
.cal-hours div { height: 64px; font-size: .75rem; color: var(--ink-3); text-align: right; padding: 2px 8px 0 0; border-top: 1px solid var(--line-3); }
.cal-col { position: relative; border-left: 1px solid var(--line-3); }
.cal-col .hr { height: 64px; border-top: 1px solid var(--line-3); }
.cal-col .off { position: absolute; left: 0; right: 0;
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 8px, color-mix(in srgb, var(--surface-2) 70%, var(--line)) 8px 16px); }
.ev { position: absolute; left: 5px; right: 5px; border-radius: var(--radius-sm); padding: 5px 9px; font-size: .8rem; overflow: hidden;
  text-decoration: none; color: var(--ink); background: var(--primary-soft); border: 1px solid var(--primary-line); line-height: 1.3; }
.ev:hover { color: var(--ink); outline: 2px solid var(--ink); outline-offset: 1px; }
.ev strong { display: block; font-size: .82rem; }
.ev.pending_approval { background: var(--surface); border: 1.5px dashed var(--accent-deep); }
.ev.awaiting_deposit { background: var(--accent-soft); border: 1.5px dashed var(--accent-deep); }
.ev.completed { background: var(--muted-fill); border-color: var(--muted-line); color: var(--ink-2); }
.ev.no_show { background: var(--danger-soft); border-color: var(--danger-line); }
.ev.held { border-style: dashed; opacity: .75; }
.ev.timeoff { background: repeating-linear-gradient(135deg, var(--stripe-1) 0 8px, var(--stripe-2) 8px 16px); border-color: var(--line); color: var(--ink-3); }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--accent-deep); z-index: 1; }
.now-line::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-deep); }
/* calendar view switcher (Day / Week / Month) */
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.seg a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; }
.seg a + a { border-left: 1px solid var(--line-2); }
.seg a:hover { background: var(--surface-2); color: var(--ink); }
.seg a.on { background: var(--primary); color: var(--primary-ink); }

/* date strip above the day and week grids: scrolls sideways and loads more days ahead without limit */
.date-strip { display: flex; align-items: stretch; gap: .35rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  padding: .15rem .1rem .6rem; margin-bottom: .9rem; scrollbar-width: thin; }
.ds-month { flex: none; writing-mode: vertical-rl; transform: rotate(180deg); font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); align-self: center; padding: 0 .1rem; }
.ds-day { flex: none; width: 56px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: .45rem 0 .4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.ds-day:hover { color: var(--ink); border-color: var(--ink); }
.ds-wd { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.ds-n { font-family: var(--display); font-size: 1.2rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ds-c { min-height: 1.1rem; font-size: .72rem; font-weight: 700; color: var(--accent-deep); }
.ds-day.closed { background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, color-mix(in srgb, var(--surface-2) 70%, var(--line)) 6px 12px); }
.ds-day.closed .ds-c { color: var(--ink-3); font-weight: 400; }
.ds-day.today { border-color: var(--accent-deep); box-shadow: inset 0 -3px 0 var(--accent); }
.ds-day.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.ds-day.on .ds-wd { color: color-mix(in srgb, var(--primary-ink) 70%, transparent); }
.ds-day.on .ds-c { color: var(--accent); }
.ds-more { flex: none; width: 44px; display: flex; align-items: center; justify-content: center; color: var(--ink-3); }

/* month view: months stacked one under another; the next month loads as you scroll down */
.months { display: flex; flex-direction: column; gap: 1.6rem; }
.month-title { font-size: 1.25rem; margin: 0 0 .6rem; position: sticky; top: 0; z-index: 3; background: var(--bg); padding: .45rem 0; }
.month-title .muted { font-size: .85rem; font-weight: 500; margin-left: .4rem; }
.mgrid { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mrow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mrow + .mrow { border-top: 1px solid var(--line-3); }
.mhead { background: var(--surface-2); }
.mhead div { padding: .55rem .5rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.wd-short { display: none; }
.mcell { min-height: 118px; padding: .35rem .4rem .45rem; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mrow > * + * { border-left: 1px solid var(--line-3); }
.mcell.outside { background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.mcell.closed { background: repeating-linear-gradient(135deg, var(--surface) 0 8px, var(--surface-2) 8px 16px); }
.mcell.past .mnum { color: var(--ink-3); }
.mday { display: flex; align-items: center; justify-content: space-between; gap: .3rem; color: var(--ink); text-decoration: none; margin: -.1rem -.15rem .1rem; padding: .1rem .15rem; border-radius: var(--radius-sm); }
.mday:hover { color: var(--ink); background: var(--surface-2); }
.mnum { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 1.7rem; height: 1.7rem; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); }
.mcell.today .mnum { background: var(--primary); color: var(--primary-ink); }
.mcount { font-size: .72rem; font-weight: 700; color: var(--accent-deep); }
.mchip { display: block; font-size: .76rem; line-height: 1.3; padding: 2px 6px; border-radius: var(--radius-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-decoration: none; color: var(--ink); background: var(--primary-soft); border: 1px solid var(--primary-line); }
.mchip:hover { color: var(--ink); outline: 2px solid var(--ink); outline-offset: 0; }
.mchip.pending_approval { background: var(--surface); border: 1.5px dashed var(--accent-deep); }
.mchip.awaiting_deposit { background: var(--accent-soft); border: 1.5px dashed var(--accent-deep); }
.mchip.completed { background: var(--muted-fill); border-color: var(--muted-line); color: var(--ink-2); }
.mchip.no_show { background: var(--danger-soft); border-color: var(--danger-line); }
.mchip.timeoff { background: repeating-linear-gradient(135deg, var(--stripe-1) 0 6px, var(--stripe-2) 6px 12px); border-color: var(--line); color: var(--ink-3); }
/* public and bank holidays (graphite: the day off; dashed: the date a moved holiday falls on, not a day off) */
.mchip.holiday { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); font-weight: 600; cursor: default; }
.mchip.holiday:hover { outline: 0; color: var(--primary-ink); }
.mchip.holiday.major::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: 5px; vertical-align: 1px; }
.mchip.holiday.moved { background: var(--surface); color: var(--ink-2); border: 1.5px dashed var(--ink-3); font-weight: 400; }
.mchip.holiday.moved:hover { color: var(--ink-2); }
.mcell.holiday { box-shadow: inset 0 3px 0 var(--primary); }
.ds-day.holiday { box-shadow: inset 0 3px 0 var(--primary); }
.ds-day.holiday.today { box-shadow: inset 0 3px 0 var(--primary), inset 0 -3px 0 var(--accent); }
.ds-day.holiday.on { box-shadow: inset 0 3px 0 var(--accent); }
.cal-head .cal-hol { display: block; font-size: .72rem; font-weight: 600; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-head .cal-hol.off { color: var(--primary-ink); background: var(--primary); padding: 1px 4px; margin-top: 2px; }
.hol-banner { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--primary); padding: .65rem .9rem; margin: 0 0 .8rem; font-size: .92rem; }
.hol-banner.moved { border-left-style: dashed; border-left-color: var(--ink-3); }
.legend i.hol-swatch { background: var(--primary); border: 1px solid var(--primary); }
.coming-up .cu-when { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.coming-up .cu-tip { color: var(--ink-2); font-size: .9rem; margin-top: .2rem; }
.coming-up li form { margin-top: .45rem; }
.mmore { font-size: .76rem; font-weight: 600; color: var(--ink-2); padding: 0 2px; }
.months-more { min-height: 80px; display: flex; align-items: center; justify-content: center; }
.legend { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .84rem; color: var(--ink-2); margin-top: .8rem; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: var(--radius-sm); margin-right: .35rem; vertical-align: -2px; }

/* hours editor */
.hours-row { display: grid; grid-template-columns: 110px 1fr; gap: .8rem; align-items: start; padding: .8rem 0; border-bottom: 1px solid var(--line-3); }
.hours-row .ranges { display: flex; flex-direction: column; gap: .45rem; }
.hours-row .range { display: flex; gap: .45rem; align-items: center; }
.hours-row .range input { width: 130px; }

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 0; }
  .nav a, .nav button.linklike { padding: .4rem .45rem; font-size: .9rem; }
  .nav .hide-sm { display: none; }
  .brand { font-size: 1.2rem; }
  .logo-mark { width: 30px; height: 30px; }
  .cta-band { padding: 1.6rem; }
  .hero { padding-top: 2rem; }
}

/* ---------- profiles + photos ---------- */
img.avatar { object-fit: cover; padding: 0; background: var(--surface-2); }
.biz-cover.has-photo { background-size: cover; background-position: center; }
.biz-cover.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 60%); }
.biz-cover.has-photo > *:not(.tag) { position: relative; z-index: 1; }
.biz-cover.has-photo .tag { z-index: 1; }
.biz-cover .cover-logo { width: 54px; height: 54px; border-radius: var(--radius); object-fit: cover; border: 2px solid #FFFFFF; background: #FFFFFF; }
.biz-hero .biz-cover { height: clamp(160px, 28vw, 300px); }
.biz-logo { width: 128px; height: 128px; border-radius: var(--radius); object-fit: cover; flex: none; border: 1px solid var(--line-3); background: var(--surface); }
/* Profile photos: no right-click "Save image", no drag-out, no long-press menu on phones.
   pointer-events: none sends taps and right-clicks to the parent, so links around the photo still work. */
img.no-save { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; pointer-events: none; }
.biz-logo.mono-logo { display: inline-grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 2rem;
  background: var(--primary-soft); color: var(--primary-hover); }
.social { display: flex; flex-wrap: wrap; gap: .5rem; }
.social a { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; border-radius: var(--radius-pill); border: 1px solid var(--line-2);
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; background: var(--surface); }
.social a:hover { border-color: var(--primary); color: var(--primary); }
.social a.btn-whatsapp, .btn-whatsapp { background: #1F7A4D; border-color: #1F7A4D; color: #FFFFFF; }
.social a.btn-whatsapp:hover, .btn-whatsapp:hover { background: #18633E; border-color: #18633E; color: #FFFFFF; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.gallery a { display: block; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .6rem .45rem; font-size: .8rem; font-weight: 600; color: #FFFFFF;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0)); }
.gallery-filter { margin-bottom: .9rem; }
.team-card { display: flex; gap: .9rem; align-items: flex-start; }
.team-card .avatar { width: 64px; height: 64px; font-size: 1.4rem; }
.team-card p { margin: .3rem 0 0; color: var(--ink-2); font-size: .92rem; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); max-height: 94vh; }
.lightbox::backdrop { background: rgba(11, 15, 25, .88); }
.lightbox img { max-width: 100%; max-height: 82vh; display: block; margin: 0 auto; border-radius: var(--radius); }
.lightbox .lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: #FFFFFF; padding: .6rem .2rem 0; }
.lightbox .lb-bar button { background: rgba(255,255,255,.14); color: #FFFFFF; border: 0; border-radius: var(--radius-pill); padding: .45rem .9rem; font: inherit; font-weight: 600; cursor: pointer; }
/* provider editor */
.photo-slot { display: flex; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line-3); }
.photo-slot:last-child { border-bottom: 0; }
.photo-slot > .stack { flex: 1; min-width: 0; }
.photo-slot .stack > * + * { margin-top: .45rem; }
.photo-slot form { display: block; }
.slot-img { width: 88px; height: 88px; border-radius: var(--radius); object-fit: cover; flex: none; background: var(--surface-2); }
.photo-slot-wide .slot-img { width: 160px; height: 72px; border-radius: var(--radius); }
.slot-empty { display: inline-grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--ink-3);
  border: 1.5px dashed var(--line-2); }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-box { border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 1rem; background: var(--surface-2); }
.photo-manage { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.photo-item { border: 1px solid var(--line-3); border-radius: var(--radius); padding: .6rem; background: var(--surface); display: flex; flex-direction: column; gap: .5rem; }
.photo-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.photo-item.is-hidden img { opacity: .45; }
.photo-item .stack > * + * { margin-top: .45rem; }
.photo-item input, .photo-item select { width: 100%; }
.photo-actions { gap: .3rem; flex-wrap: wrap; }
.photo-actions .btn { padding-inline: .6rem; }
.danger-text { color: var(--danger); }
.halves { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.halves > * { min-width: 0; }
.photo-slot small { display: block; }

/* Draft preview for the provider's own team ("View public page" before the business is listed) */
.preview-banner { margin: 1rem 0; padding: .8rem 1rem; border-radius: var(--radius); background: var(--warn-soft); color: var(--warn);
  border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.btn-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ---------- maps (Nov 2026): light-grey streets, graphite pin, square controls ---------- */
.map { position: relative; height: 220px; background: #EEF0F3; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.map-lg { height: 340px; }
.map.map-failed { display: grid; place-items: center; padding: 1rem; text-align: center; color: var(--ink-3); font-size: .9rem; }
.map .maplibregl-ctrl-group { border-radius: var(--radius-sm); box-shadow: none; border: 1px solid var(--line-2); }
.map .maplibregl-ctrl-group button { width: 32px; height: 32px; }
.map .maplibregl-ctrl-attrib { font-size: .68rem; background: rgba(255, 255, 255, .85); }
.map .maplibregl-ctrl-attrib a { color: var(--ink-3); }
.map .maplibregl-cooperative-gesture-screen { background: rgba(22, 24, 29, .75); font-family: inherit; font-size: .95rem; }
.b2d-pin { width: 30px; height: 40px; display: block; filter: drop-shadow(0 2px 2px rgba(22, 24, 29, .25)); }
.maplibregl-marker[aria-label] { cursor: grab; }
.map-place { margin: .7rem 0 0; }
.map-dirs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.map-edit { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.map-status { font-size: .88rem; margin: .45rem 0 0; min-height: 1.2em; }
.seg-opt { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.seg-opt + .seg-opt { border-left: 1px solid var(--line-2); }
.seg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-opt:has(input:checked) { background: var(--primary); color: var(--primary-ink); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--accent-deep); outline-offset: -2px; }
.booking-map { margin-top: 1.2rem; }
@media (max-width: 760px) {
  .map-edit { grid-template-columns: minmax(0, 1fr); }
  .map-lg { height: 300px; }
}

/* ---------- phones (Nov 2026 responsive pass) ---------- */
/* Header menu for small screens: a <details> drop-down, so it needs no script. Hidden on wider screens. */
.nav-menu { display: none; position: relative; }
.nav-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .85rem;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer;
  user-select: none; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu-icon { width: 16px; height: 2px; background: currentColor; position: relative; display: inline-block; }
.nav-menu-icon::before, .nav-menu-icon::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; }
.nav-menu-icon::before { top: -5px; } .nav-menu-icon::after { top: 5px; }
.nav-menu[open] .nav-menu-icon { background: transparent; }
.nav-menu[open] .nav-menu-icon::before { top: 0; transform: rotate(45deg); }
.nav-menu[open] .nav-menu-icon::after { top: 0; transform: rotate(-45deg); }
.nav-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(280px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(22, 24, 29, .16); border-radius: var(--radius);
  padding: .4rem; display: flex; flex-direction: column; }
.nav-menu-panel a, .nav-menu-panel button.linklike { display: flex; align-items: center; min-height: 48px; padding: 0 .9rem; color: var(--ink);
  text-decoration: none; font-weight: 600; width: 100%; text-align: left; border-radius: var(--radius-sm); }
.nav-menu-panel a:hover, .nav-menu-panel button.linklike:hover { background: var(--surface-2); color: var(--ink); }
.nav-menu-panel form { margin: 0; border-top: 1px solid var(--line-3); margin-top: .3rem; padding-top: .3rem; }
.nav-menu-panel .btn { margin-top: .4rem; color: var(--primary-ink); justify-content: center; }
.nav-menu-panel .btn:hover { color: var(--primary-ink); background: var(--primary-hover); }

/* Provider dashboard: the content column must be allowed to shrink, otherwise the scrolling tab bar's full
   width (all the tabs side by side) stretches the whole page to ~900px on phones. */
.app > * { min-width: 0; }
.mobile-bar { display: none; }

@media (max-width: 640px) {
  .nav-wide { display: none; }
  .nav-menu { display: block; }
  .lang-phone { display: block; }
  .topbar .wrap { min-height: 60px; }
}

@media (max-width: 860px) {
  .mobile-bar { display: flex; align-items: center; gap: .75rem; background: var(--panel); color: var(--panel-ink); padding: .6rem 16px 0; }
  .mobile-bar .brand { color: #FFFFFF; padding: 8px; margin: -8px; }
  .mobile-bar .logo-mark { width: 28px; height: 28px; }
  .mobile-biz { flex: 1; min-width: 0; font-size: .92rem; color: var(--panel-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-biz strong { color: #FFFFFF; }
  .mobile-biz a { color: var(--panel-link); }
  .nav-menu-dark { display: block; }
  .nav-menu-dark > summary { background: var(--panel-2); border-color: var(--panel-line); color: #FFFFFF; min-height: 40px; }
  .mobile-nav { padding-top: .6rem; padding-bottom: .6rem; scrollbar-width: none; }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav a { min-height: 40px; display: inline-flex; align-items: center; white-space: nowrap; }
  .mobile-nav .nav-count { margin-left: .4rem; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-pill); font-size: .75rem; padding: 0 .45rem; font-weight: 700; }
  .page-head h1 { font-size: 1.5rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .stat .value { font-size: 1.5rem; }
}

@media (max-width: 640px) {
  /* Any two-column grid becomes one column (minmax(280px) / (320px) is wider than a 320px phone after padding). */
  .grid-2, .grid-3, .halves { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 1.1rem; }
  .page-head { align-items: flex-start; }
  .page-head > .row, .page-head > div:last-child:not(:first-child) { width: 100%; }
  .page-head .btn { flex: 1 1 auto; }
  .section-title { font-size: 1.4rem; margin-top: 2rem; }
  .cta-band h2 { font-size: 1.6rem; }
  .cta-band .big { font-size: 1.9rem; }
  .footer { margin-top: 3rem; }
  .footer-grid > div a { padding: .35rem 0; }
  .dl { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .dl dd { margin-bottom: .6rem; overflow-wrap: anywhere; }
  .svc { gap: .75rem; }
  .biz-head { gap: .8rem; padding-top: 1.1rem; }
  .biz-logo { width: 96px; height: 96px; }
  .biz-head h1 { font-size: 1.7rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hours-row { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
  .hours-row .range { flex-wrap: wrap; }
  .hours-row .range input { width: auto; flex: 1 1 110px; min-width: 0; }
  .photo-slot { flex-wrap: wrap; }
  .photo-slot-wide .slot-img { width: 100%; height: 110px; }
  .photo-manage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .toolbar > .chips { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .toolbar > .chips .chip { flex: none; }
  .toolbar > select, .toolbar > input:not([type=hidden]), .toolbar > button { flex: 1 1 140px; }
  .toolbar select, .toolbar input { width: 100%; }
  .table th, .table td { padding: .7rem .75rem; }
  .messages li { overflow-wrap: anywhere; }
  .lightbox .lb-bar { flex-wrap: wrap; }
}
@media (max-width: 380px) {
  .photo-manage { grid-template-columns: minmax(0, 1fr); }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stat { padding: .8rem; }
  .brand { font-size: 1.1rem; }
}
/* Long words, URLs and phone numbers never push the page wider than the screen. */
h1, h2, h3, p, dd, td, li, .card { overflow-wrap: break-word; }
input, select, textarea { max-width: 100%; }
@media (max-width: 860px) {
  .mobile-nav a.on { background: #FFFFFF; color: var(--ink); }
}

/* the phone tab bar is sticky too, so month headings stop just under it */
@media (max-width: 860px) { .month-title { top: 59px; } }
/* calendar on phones: compact strip, month cells show the date and a count; tap a day to see its bookings */
@media (max-width: 640px) {
  .cal-toolbar .seg { flex: 1 1 100%; }
  .cal-toolbar .seg a { flex: 1; justify-content: center; min-height: 44px; }
  .ds-day { width: 50px; }
  .month-title { font-size: 1.1rem; }
  .mhead div { padding: .45rem 0; text-align: center; }
  .wd-long { display: none; }
  .wd-short { display: inline; }
  .mcell { min-height: 58px; padding: .25rem .1rem; align-items: center; }
  .mcell .mchip, .mcell .mmore { display: none; }
  .mday { flex-direction: column; justify-content: flex-start; gap: 0; margin: 0; padding: .1rem 0; width: 100%; height: 100%; }
  .mnum { min-width: 1.9rem; height: 1.9rem; }
  .mcount { min-height: 1rem; }
}

/* ---------------------------------------------------------------- reviews (verified customers only) */
.stars { color: var(--ink); letter-spacing: .08em; font-size: 1.05rem; line-height: 1; margin: 0; white-space: nowrap; }
.stars-sm { font-size: .9rem; }
.rating-line { display: inline-flex; align-items: center; gap: .35rem; flex-wrap: wrap; color: var(--ink); text-decoration: none; margin-bottom: .6rem; }
a.rating-line:hover { color: var(--ink); text-decoration: underline; }
.biz-card .rating-line { margin: .1rem 0 .2rem; font-size: .92rem; }
.badge-verified { background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent); white-space: nowrap; }
.verified-note { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; color: var(--ink-2); font-size: .92rem; }
.review-summary { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; margin: 1rem 0 .5rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--line-3); }
.review-score { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.review-score .big { font-family: var(--display); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.review-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; max-width: 360px; }
.review-bars li { display: grid; grid-template-columns: 2.2rem 1fr 2rem; gap: .5rem; align-items: center; font-size: .85rem; }
.review-bars .bar { height: 8px; background: var(--surface-2); border-radius: var(--radius-pill); overflow: hidden; }
.review-bars .bar > span { display: block; height: 100%; background: var(--ink); }
.review-list .review { display: block; padding: 1rem 0; }
.review-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.review-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .3rem; }
.review p { margin: .5rem 0 0; overflow-wrap: anywhere; }
.review-reply { margin-top: .7rem; padding: .7rem .9rem; background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); }
.review-reply p { margin: .25rem 0 0; }
.review-own .stars { margin: .7rem 0 .2rem; font-size: 1.3rem; }
.rating-field { border: 0; padding: 0; margin: 0 0 1.1rem; }
.rating-field legend { font-weight: 600; margin-bottom: .5rem; padding: 0; }
.rating-pick { display: flex; flex-direction: column; gap: .4rem; }
.rating-opt { display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .9rem; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-weight: 500; }
.rating-opt:hover { border-color: var(--ink); }
.rating-opt span { white-space: pre; letter-spacing: .03em; }
.rating-opt:has(input:checked) { background: var(--accent-soft); border-color: var(--accent-deep); }
.provider-review { padding: 1rem 0; }
.provider-review details { margin-top: .6rem; }
@media (max-width: 640px) {
  .review-summary { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .review-bars { max-width: none; }
}

/* Average rating: grey stars with graphite fill clipped to the average (4.4 → 88%). */
.star-meter { position: relative; display: inline-block; line-height: 1; font-size: 1.1rem; letter-spacing: .08em;
  color: var(--line-2); white-space: nowrap; }
.star-meter::before { content: "★★★★★"; }
.star-meter::after { content: "★★★★★"; position: absolute; inset: 0 auto 0 0; width: var(--pct, 0%); overflow: hidden;
  color: var(--ink); }
.rating-sm { font-size: .9rem; }
.rating-sm .star-meter { font-size: .95rem; }
.review-score .star-meter { font-size: 1.3rem; }
.team-card .rating-line { margin: .25rem 0 0; }

/* ---- personal-use notice at checkout (content rules, Nov 2026) ---- */
.personal-use { display: flex; gap: .7rem; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; margin: .4rem 0 1rem; font-size: .9rem; line-height: 1.45; }
.personal-use svg { flex: none; margin-top: .1rem; color: var(--accent-text); }
.personal-use strong { display: block; margin-bottom: .2rem; }
.personal-use p { margin: 0 0 .3rem; color: var(--ink-3); }
.personal-use p:last-child { margin-bottom: 0; }
.fine-print { font-size: .8rem; color: var(--ink-3); margin: .7rem 0 0; line-height: 1.5; }

/* ---------- group classes (group-classes design §6). Mint for spots left, graphite/grey for Full,
   gold only for "1 spot left", "below minimum" and "to accept". ---------- */
.tag-gold { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-fill); }
.tag-mint { background: var(--accent); color: var(--accent-ink); }
.svc .info .badge { margin: .3rem 0 .1rem; }
.svc .info small.bring { color: var(--ink-2); margin-top: .2rem; }
.class-picks > li.class-pick { display: flex; align-items: center; gap: 1rem; padding: .85rem 0; }
.class-pick .cp-time { flex: none; width: 5.5rem; font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  font-variant-numeric: tabular-nums; }
.class-pick .cp-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.class-pick .cp-tags { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.class-pick.full .cp-time, .class-pick.full .cp-info strong { color: var(--ink-3); }
.class-pick form { flex: none; }
.next-space { margin-top: 1.2rem; border: 1px solid var(--line-2); background: var(--surface-2); padding: 1rem 1.1rem;
  border-radius: var(--radius); }
.next-space h3 { margin: 0 0 .3rem; }
.next-space .list > li { gap: .8rem; flex-wrap: wrap; }
.gold-note { background: var(--warn-soft); border-left: 4px solid var(--warn-fill); padding: .75rem 1rem; margin: 0 0 1rem;
  border-radius: var(--radius-sm); color: var(--ink); }
.bring-note { background: var(--surface-2); padding: .7rem 1rem; margin: 0 0 1rem; border-radius: var(--radius-sm); }
.class-box { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 1rem 1.1rem .4rem; margin: 0 0 1.2rem; }
.class-box legend { font-weight: 700; font-family: var(--display); padding: 0 .4rem; }
.class-list > li { padding: 0; }
.class-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; grid-template-areas: "when what count" "when tags tags";
  gap: .25rem 1rem; padding: .8rem 0; text-decoration: none; color: inherit; align-items: center; }
.class-row:hover { color: inherit; background: var(--surface-2); }
.class-when { grid-area: when; font-variant-numeric: tabular-nums; }
.class-what { grid-area: what; min-width: 0; }
.class-count { grid-area: count; font-family: var(--display); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.class-tags { grid-area: tags; display: flex; flex-wrap: wrap; gap: .35rem; }
.class-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.class-head h1 { margin: 0; }
.class-big { font-family: var(--display); font-size: 1.4rem; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.class-big strong { font-size: 3rem; color: var(--ink); line-height: 1; }
.bring-line { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1rem;
  padding: .9rem 1.2rem; }
.bring-line details { flex: 0 1 26rem; }
.gold-box, .gold-edge { border: 1px solid var(--line); border-left: 5px solid var(--warn-fill); background: var(--surface);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: 1rem; }
.gold-box h2 { margin: 0 0 .3rem; font-size: 1.15rem; }
.gold-box p { margin: 0 0 .8rem; }
.seat-actions { margin-top: .5rem; gap: .4rem; }
.attendee-list > li { padding: .8rem 0; }
.ev.class-ev { background: var(--accent-soft); border: 1px solid var(--accent-deep); }
.ev.class-ev.warn { border-left: 4px solid var(--warn-fill); }
.mchip.class-chip { background: var(--accent-soft); border: 1px solid var(--accent-deep); }
.mchip.class-chip.warn { border-left: 3px solid var(--warn-fill); }
.mclasses { display: block; font-size: .72rem; color: var(--ink-3); margin-bottom: 2px; }
.timetable > li { gap: 1rem; }
@media (max-width: 640px) {
  .class-pick .cp-time { width: 4.6rem; font-size: 1rem; }
  .class-row { grid-template-columns: 4.8rem minmax(0, 1fr) auto; gap: .2rem .7rem; }
  .class-big strong { font-size: 2.4rem; }
  .bring-line details { flex-basis: 100%; }
  .class-box .class-numbers { grid-template-columns: 1fr 1fr; }
  .mclasses { display: none; }
}
.class-cols { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 860px) { .class-cols { grid-template-columns: 1fr; } }

/* A field switched off by another tick box (data-turns-off in app.js) */
.form-row.is-off, .field.is-off { opacity: .45; }

/* Owner setup: "Clients can't book you yet" and "Do you serve clients yourself?" */
.setup-banner { margin-bottom: 1.2rem; }
.setup-banner p { margin: .2rem 0 .8rem; }
.login-details .kv { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 1rem 0 1.2rem; }
.login-details .kv dt { font-weight: 700; }
.login-details .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.login-details .temp-password { font-size: 1.35rem; letter-spacing: .05em; }
.login-details textarea { width: 100%; font-family: ui-monospace, monospace; }
@media (max-width: 640px) { .login-details .kv { grid-template-columns: 1fr; gap: .1rem; } .login-details .kv dd { margin-bottom: .5rem; } }
.teach-self { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1.2rem; }

/* ---------------------------------------------------------------- Insights (business insights design §8)
   Charts are server-drawn SVG. Graphite bars, mint for strong months, grey for slow ones; the heat map and
   week squares are one hue, light to dark. No new colours. */
.ins-filters { display: grid; gap: .6rem; margin-bottom: 1rem; }
.ins-custom { display: contents; }
.ins-custom > summary { list-style: none; cursor: pointer; }
.ins-custom > summary::-webkit-details-marker { display: none; }
.ins-custom-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; flex-basis: 100%; }
.ins-custom-form label { margin: 0; font-size: .85rem; }
.ins-custom-form input { min-height: 40px; padding: .4rem .6rem; width: auto; }
.ins-note { font-size: .88rem; margin: 0 0 1.2rem; }
.ins-change { font-size: .82rem; font-weight: 600; margin-top: .15rem; }
.ins-change span { color: var(--ink-3); font-weight: 500; }
.ins-change.good { color: var(--accent-deep); }
.ins-change.bad { color: var(--danger); }
.ins-change.flat { color: var(--ink-3); }
.ins-section { margin-bottom: 1.2rem; }
.ins-section h3 { margin: 1.6rem 0 .2rem; font-size: 1.05rem; }
.ins-sub { font-size: .86rem; margin: 0 0 .6rem; }
.ins-sentences { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; }
.chart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ins-chart { display: block; width: 100%; height: auto; min-width: 560px; font-family: var(--font); }
.ins-chart.ins-weeks { min-width: 728px; }
.ins-grid { stroke: var(--line-3); stroke-width: 1; }
.ins-base { stroke: var(--line-2); stroke-width: 1; }
.ins-axis { fill: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.ins-year { font-weight: 700; }
.ins-day { font-weight: 600; fill: var(--ink-2); }
.ins-tag { fill: var(--ink-2); font-size: 10px; font-weight: 700; }
.ins-bar { fill: var(--ink); }
.ins-bar.strong { fill: var(--accent); }
.ins-bar.slow { fill: var(--line-2); }
.ins-bar.partial { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 2; }
.ins-hitbox { fill: transparent; }
.ins-hit:hover .ins-hitbox { fill: var(--surface-2); fill-opacity: .6; }
.ins-heat, .ins-key { fill: var(--surface-2); }
.ins-heat.h0, .ins-key.h0 { fill: #E9EBEF; background: #E9EBEF; }
.ins-heat.h1, .ins-key.h1 { fill: #C9CDD4; background: #C9CDD4; }
.ins-heat.h2, .ins-key.h2 { fill: #8D94A0; background: #8D94A0; }
.ins-heat.h3, .ins-key.h3 { fill: #4C525C; background: #4C525C; }
.ins-heat.h4, .ins-key.h4 { fill: var(--ink); background: var(--ink); }
.ins-heat.closed, .ins-key.closed { fill: var(--surface); stroke: var(--line-3); background: var(--surface); }
.ins-key.closed { border: 1px solid var(--line-2); }
.ins-heat.extra, .ins-key.extra { fill: var(--accent); background: var(--accent); }
.ins-heat:hover { stroke: var(--accent-deep); stroke-width: 2; }
.ins-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1rem; padding: 0; margin: .5rem 0 0;
  font-size: .8rem; color: var(--ink-3); align-items: center; }
.ins-legend li { display: inline-flex; align-items: center; gap: .35rem; }
.ins-legend li:has(.ins-key + .ins-key) { gap: 2px; }
.key { display: inline-block; width: 12px; height: 12px; }
.key-bar { background: var(--ink); }
.key-strong { background: var(--accent); }
.key-slow { background: var(--line-2); }
.key-partial { border: 1.5px dashed var(--ink); background: var(--surface); }
.ins-days { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.ins-days li { display: grid; grid-template-columns: 6.5rem 1fr 9rem; gap: .7rem; align-items: center; font-size: .9rem; }
.ins-day-name { font-weight: 600; }
.ins-day-track { height: 12px; background: var(--surface-2); }
.ins-day-bar { display: block; height: 100%; background: var(--ink); }
.ins-day-val { font-variant-numeric: tabular-nums; font-weight: 600; }
.ins-tips { margin-top: 1rem; padding: .9rem 1rem; background: var(--surface-2); font-size: .9rem; }
.ins-tips ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.ins-head { align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .6rem; }
.ins-head h2 { margin: 0; }
.ins-callouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .7rem; margin: .4rem 0 1rem; }
.ins-callout { border: 1px solid var(--line); padding: .8rem 1rem; display: grid; gap: .15rem; }
.ins-callout .label { color: var(--ink-3); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ins-callout:first-child { border-left: 4px solid var(--accent); }
.ins-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ins-table th a { color: inherit; text-decoration: none; }
.ins-table th a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ins-share { height: 4px; background: var(--surface-2); margin-top: .35rem; max-width: 12rem; }
.ins-share span { display: block; height: 100%; background: var(--accent); }
.ins-up { color: var(--accent-deep); font-weight: 600; }
.ins-down { color: var(--danger); font-weight: 600; }
@media (max-width: 640px) {
  .ins-days li { grid-template-columns: 5.2rem 1fr auto; gap: .5rem; font-size: .85rem; }
  .ins-days small { display: none; }
  .ins-table { min-width: 560px; }
  .ins-custom-form input { width: 100%; }
  .ins-custom-form label { flex: 1 1 8rem; }
}

/* ---------- Frame your photo (profile, team and cover photos; static/js/photo-editor.js, Nov 2026) ---------- */
.photo-slot-round .slot-img { border-radius: 50%; }
.slot-error { display: block; color: var(--danger); font-weight: 600; }
.photo-editor { width: min(680px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 1.1rem 1.25rem 1.25rem;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 60px rgba(22, 24, 29, .28); overflow: auto; }
.photo-editor::backdrop { background: rgba(22, 24, 29, .62); }
.photo-editor .pe-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.photo-editor h2 { margin: 0; font-size: 1.2rem; }
.photo-editor .pe-hint, .photo-editor .pe-note { margin: .35rem 0 .75rem; font-size: .9rem; }
.photo-editor .pe-note { margin: .6rem 0 0; }
.photo-editor .pe-stage { height: min(52dvh, 420px); background: var(--ink); overflow: hidden; touch-action: none; }
.photo-editor.is-wide .pe-stage { height: min(40dvh, 300px); }
.photo-editor .pe-stage img { display: block; max-width: 100%; }
.photo-editor .cropper-container:focus-visible { outline: 3px solid #7BE0C3; outline-offset: -3px; }
.photo-editor .cropper-modal { background: #16181D; opacity: .62; }
.photo-editor .cropper-view-box { outline: 2px solid #FFFFFF; outline-color: #FFFFFF; }
.photo-editor .cropper-face { background: transparent; opacity: 1; }
.photo-editor.is-round .cropper-view-box, .photo-editor.is-round .cropper-face { border-radius: 50%; }
/* cover: phones and search cards (≈2.4 : 1) show the middle ~78 % of the 3 : 1 banner */
.photo-editor.is-wide .cropper-face::before, .photo-editor.is-wide .cropper-face::after { content: ""; position: absolute;
  top: 0; bottom: 0; width: 0; border-left: 2px dashed rgba(255, 255, 255, .85); pointer-events: none; }
.photo-editor.is-wide .cropper-face::before { left: 11%; }
.photo-editor.is-wide .cropper-face::after { right: 11%; }
.photo-editor .pe-tools { display: flex; align-items: center; gap: .5rem; margin-top: .9rem; flex-wrap: wrap; }
.photo-editor .pe-tools input[type="range"] { flex: 1 1 100px; min-width: 70px; accent-color: #16181D; min-height: 36px; }
.photo-editor .pe-z { min-width: 40px; font-size: 1.15rem; line-height: 1; }
.photo-editor .pe-error { margin: .75rem 0 0; color: var(--danger); font-weight: 600; }
.photo-editor .pe-foot { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }
/* computers: the banner is exactly the 3 : 1 frame the provider chose (phones keep the shorter banner and show
   the middle, as the editor's dotted lines say) */
@media (min-width: 641px) { .biz-hero .biz-cover.has-photo { height: auto; aspect-ratio: 3 / 1; } }
@media (max-width: 640px) {
  .photo-editor { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: .9rem 1rem 1rem;
    border: 0; display: none; flex-direction: column; }
  .photo-editor[open] { display: flex; }
  .photo-editor .pe-stage, .photo-editor.is-wide .pe-stage { flex: 1 1 0; height: auto; min-height: 240px; }
  .photo-editor .pe-foot .btn { flex: 1; }
}

/* ---------- Page color: provider-chosen background for the public business page ---------- */
body.page-colored { background-color: var(--page-bg); background-image: var(--page-pattern, none); }
/* Text sitting straight on the color (page header) stays readable: softer greys on light colors… */
.page-colored .biz-head, .color-preview .biz-head { --ink-3: rgba(22, 24, 29, .78); --line-2: rgba(22, 24, 29, .3); color: var(--ink); }
/* …and white on dark colors. Cards keep the normal look. */
.page-dark .biz-head { --ink: #FFFFFF; --ink-2: rgba(255, 255, 255, .9); --ink-3: rgba(255, 255, 255, .8);
  --line-2: rgba(255, 255, 255, .4); --primary: #FFFFFF; color: var(--ink); }
.page-dark .biz-head .social a:not(.btn-whatsapp) { background: transparent; }
.page-dark .biz-logo { border-color: rgba(255, 255, 255, .25); }

/* Profile → Page color */
.color-edit { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.swatch { position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .5rem .3rem;
  border: 1px solid var(--line-3); border-radius: var(--radius-sm); cursor: pointer; text-align: center; background: var(--surface); }
.swatch:hover { border-color: var(--line-2); }
.swatch > input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch:has(input[type="radio"]:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch:has(input[type="radio"]:focus-visible) { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.swatch-chip, .swatch input[type="color"] { display: block; width: 44px; height: 44px; border: 1px solid rgba(22, 24, 29, .15); border-radius: var(--radius-sm); }
.swatch input[type="color"] { padding: 0; background: none; cursor: pointer; }
.swatch-name { font-size: .78rem; font-weight: 600; color: var(--ink-2); line-height: 1.2; }
.color-preview { background-color: var(--page-bg, var(--bg)); background-image: var(--page-pattern, none); border: 1px solid var(--line-3); border-radius: var(--radius); padding: 1rem; }
.color-preview .biz-head { padding: 0 0 .9rem; gap: .7rem; flex-wrap: nowrap; }
.color-preview-logo { width: 48px; height: 48px; flex: none; display: inline-grid; place-items: center; background: var(--surface);
  color: #16181D; font-family: var(--display); font-weight: 700; border: 1px solid var(--line-3); border-radius: var(--radius-sm); }
.color-preview-head strong { font-family: var(--display); font-size: 1.15rem; }
.color-preview-card { display: flex; flex-direction: column; gap: .2rem; background: var(--surface); border: 1px solid var(--line-3);
  border-radius: var(--radius); padding: .8rem 1rem; font-size: .92rem; }
.swatch-heading { font-size: 1rem; margin: 1.1rem 0 .5rem; }
.swatch-pattern { background-color: #F2F3F5; }
.swatch-none { background: #F2F3F5; position: relative; overflow: hidden; }
.swatch-none::after { content: ""; position: absolute; inset: 50% -4px auto; height: 1.5px; background: #8D94A0; transform: rotate(-45deg); }
@media (max-width: 760px) { .color-edit { grid-template-columns: 1fr; } }

/* Google Calendar link (gcal) */
.gcal-warn { color: var(--warn); font-weight: 600; }
.cal-links form { margin: 0; }

/* Add-ons on a service's own page, and the link from the Services table */
.addons-box { padding-bottom: 1.1rem; }
.small-link { font-size: .85rem; font-weight: 600; }

/* Stacked choices with a short explanation each (e.g. "How does the client choose it?") */
.radios.radio-stack { flex-direction: column; align-items: stretch; }
.radios.radio-stack label { border-radius: var(--radius-sm); font-weight: 500; line-height: 1.35; padding: .7rem 1rem; }
.addon-count { display: flex; align-items: center; gap: .45rem; flex: none; }
.addon-count input { width: 5.5rem; min-height: 44px; }
.addon-qty:has(.addon-count input:not(:placeholder-shown)) { border-color: var(--accent-deep); background: var(--accent-soft); }

/* Customer sign-up and "Contact us to sign up" for businesses (17 Nov 2026) */
.ok-note { background: var(--accent-soft); border-left: 3px solid var(--accent-deep); padding: .8rem 1rem;
  margin: 0; border-radius: var(--radius-sm); color: var(--ink); }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.enquiry-form { position: relative; }

/* ---------------------------------------------------------------- memberships (claude/memberships-design.md) */
.member-list > li { padding: 0; }
.member-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: .3rem 1rem; padding: .8rem 0;
  text-decoration: none; color: inherit; align-items: center; }
.member-row:hover { color: inherit; background: var(--surface-2); }
.member-who, .member-plan { min-width: 0; overflow-wrap: anywhere; }
.member-big strong { font-size: 2.2rem; }
.member-today { margin-bottom: 1rem; }
.member-today a { color: inherit; text-decoration: none; }
.copy-field { width: 100%; font-size: .85rem; }
.plans-public { margin-top: 1.4rem; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.plan-card { display: flex; flex-direction: column; gap: .4rem; }
.plan-card .price { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.plan-card .btn { margin-top: auto; align-self: flex-start; }
.member-card { max-width: 560px; margin: 0 auto; }
.member-card .member-count { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; }
.use-member { border: 1px solid var(--line); padding: .8rem 1rem; margin-bottom: 1rem; }
.use-member label { display: flex; gap: .55rem; align-items: flex-start; margin: .3rem 0; }
@media (max-width: 640px) {
  .member-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who tag" "plan plan"; }
  .member-who { grid-area: who; }
  .member-plan { grid-area: plan; }
  .member-tag { grid-area: tag; }
}

/* Expenses and profit (owner only) */
.exp-actions { flex-wrap: wrap; }
.exp-month { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 0 0 1rem; }
.exp-month-name { font-family: var(--display); font-size: 1.25rem; min-width: 10rem; text-align: center; }
.exp-tiles .stat .value { overflow-wrap: anywhere; }
.exp-profit-tile { border-color: var(--accent-deep); box-shadow: inset 0 -3px 0 var(--accent); }
.exp-profit-tile.loss { border-color: var(--danger); box-shadow: inset 0 -3px 0 var(--danger); }
.exp-profit-tile.loss .value, .exp-loss { color: var(--danger); }
.exp-sentences { margin: 0 0 1.2rem; }
.exp-split { margin-bottom: 1.2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.exp-lines > li { padding: .7rem 0; flex-wrap: nowrap; align-items: flex-start; }
.exp-lines > li > strong, .exp-lines > li > span:last-child { white-space: nowrap; }
.exp-lines > li > span { min-width: 0; }
.exp-sub { color: var(--ink-3); font-size: .9rem; padding: .35rem 0 !important; }
.exp-total { border-top: 2px solid var(--ink); padding-top: .7rem; margin: .8rem 0 0; font-weight: 600; }
.exp-lines > li.exp-total { border-bottom: 0; }
.exp-cats li { grid-template-columns: minmax(7rem, 11rem) 1fr 8.5rem; }
.exp-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.exp-table td { vertical-align: top; }
.exp-plus { color: var(--accent-deep); font-weight: 600; }
.exp-months tr.on td { background: var(--surface-2); }
.exp-months tfoot th { border-top: 2px solid var(--ink); text-align: left; }
.exp-months tfoot th.num { text-align: right; }
.exp-repeat-note { margin: .9rem 0 0; }
.exp-danger { color: var(--danger); }
.exp-in { fill: var(--ink); }
.exp-out { fill: #B9BEC7; }
.exp-in.partial, .exp-out.partial { opacity: .55; }
.exp-profit-line { fill: none; stroke: var(--accent-deep); stroke-width: 2; pointer-events: none; }
.exp-profit { fill: var(--accent); stroke: var(--accent-deep); stroke-width: 1.5; pointer-events: none; }
.exp-profit.loss { fill: var(--danger); stroke: var(--danger); }
.key.exp-key-in { background: var(--ink); }
.key.exp-key-out { background: #B9BEC7; }
.key.exp-key-profit { background: var(--accent); border: 1.5px solid var(--accent-deep); border-radius: 50%; }
@media (max-width: 640px) {
  .exp-split { grid-template-columns: minmax(0, 1fr); }
  .exp-profit-tile { grid-column: 1 / -1; }
  .exp-table td:first-child { white-space: nowrap; }
  .exp-month-name { min-width: 0; font-size: 1.1rem; }
  .exp-cats li { grid-template-columns: 6.2rem 1fr auto; }
  .exp-table th:nth-child(3), .exp-table td:nth-child(3) { display: none; }
  .exp-months th:nth-child(5), .exp-months td:nth-child(5) { display: none; }
  .exp-actions .btn { flex: 1 1 auto; }
}
