/* ══════════ House style ══════════
   The last word for the member app, the back office and the scanner. Quiet, considered and confident:
   the studio's photography and its heading type carry the look; everything else stays out of the way.
   Separate things with space and fine lines rather than boxes and shadows. Sentence case everywhere.
   Numbers set like a well made report, not dashboard tiles. One signature: the beat, a small mark of rhythm.
   Every colour and font still comes from the studio's theme; style presets (data-style) shape the corners. */

:root {
  /* Space: one scale for both apps */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  /* Type */
  --t-display: clamp(42px, 12vw, 64px);
  --t-1: clamp(34px, 9vw, 44px);
  --t-2: 22px;
  --t-3: 17px;
  --t-small: 13.5px;
  --t-micro: 12.5px;
  /* Surfaces and lines */
  --hair: color-mix(in srgb, var(--text) 11%, transparent);
  --hair-strong: color-mix(in srgb, var(--text) 22%, transparent);
  --tone: color-mix(in srgb, var(--text) 3%, var(--bg));
  --shadow: none;
  --lift: 0 24px 60px rgb(0 0 0 / 16%), 0 2px 6px rgb(0 0 0 / 6%);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

body { font-size: 16px; line-height: 1.5; letter-spacing: -0.003em; }
::selection { background: color-mix(in srgb, var(--brand) 22%, transparent); }

/* Headings: the studio's face, tight and confident, never shouting in capitals */
h1, h2, h3, .heading { text-transform: none; letter-spacing: var(--h-track, -0.02em); }
.page-head h1, .main > header h1, main header h1 { font-size: var(--t-1); line-height: 1.02; font-weight: 700; }
h2 { font-size: var(--t-2); line-height: 1.15; }
h3 { font-size: var(--t-3); line-height: 1.25; }

/* Labels: sentence case, small and calm (no spaced-out capitals) */
.bo-label, .eyebrow, .section-head h2, .section > h2, .day-head, table.t th, .field > span, label.field > span, legend,
.demo-bar, .kpi, .hero-when, .rb-shelf h3 {
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.bo-label, .eyebrow { font: 600 var(--t-small)/1.3 var(--font-body); color: var(--muted); margin-bottom: var(--s3); }

/* ── Surfaces: flat, with fine lines; only sheets and menus float ── */
.card { box-shadow: none; border: 1px solid var(--hair); }
.card.soft { border-color: transparent; background: var(--tone); }
.kpi, .me-group, .rb-tile, .rb-pin, table.t { box-shadow: none; }
.sheet, .rb-tip, .menu, details.menu[open] > div { box-shadow: var(--lift); }

/* ── Figures: set like a report, a line of numbers with fine rules between, not a grid of tiles ── */
.kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0;
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin: 0 0 var(--s5);
}
.kpi {
  background: none !important; border: 0 !important; border-radius: 0 !important; padding: var(--s4) var(--s4) var(--s4) 0 !important;
  color: var(--muted); font-size: var(--t-small);
}
.kpi + .kpi { padding-left: var(--s4) !important; border-left: 1px solid var(--hair) !important; }
.kpi b { display: block; font: 600 26px/1.1 var(--font-heading); letter-spacing: var(--h-track, -0.02em); color: var(--text) !important; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.kpis.compact .kpi b { font-size: 20px; }
@media (max-width: 600px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(odd) { padding-left: 0 !important; border-left: 0 !important; }
  .kpi:nth-child(n + 3) { border-top: 1px solid var(--hair) !important; }
}

/* ── Tabs: words with a line under the chosen one, not pills in a track ── */
.tabs, .seg-tabs {
  background: none !important; padding: 0 !important; border-radius: 0 !important; gap: var(--s5) !important;
  border-bottom: 1px solid var(--hair); display: flex; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar, .seg-tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a, .seg-tabs button {
  flex: none !important; background: none !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important;
  padding: var(--s3) 0 !important; min-height: 44px; margin-bottom: -1px; font: 500 15px var(--font-body) !important; color: var(--muted) !important;
  border-bottom: 2px solid transparent !important; white-space: nowrap; transition: color .2s, border-color .2s;
}
.tabs button.on, .tabs a.on, .seg-tabs button[aria-selected="true"] { color: var(--text) !important; font-weight: 650 !important; border-bottom-color: var(--brand) !important; }
.seg-tabs button.has-lit::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 6px; vertical-align: 3px; border-radius: 50%; background: var(--brand); }

/* ── Chips: quiet words in a fine outline; the chosen one fills ── */
.chip { border-radius: var(--r-sm, 12px); border-color: var(--hair-strong); background: transparent; font-size: 14px; }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ── Status marks: small, quiet, never shouting ── */
.pill { border-radius: 6px; font-size: var(--t-micro); font-weight: 600; padding: 2px 8px; letter-spacing: 0; }

/* ── Buttons: solid for the one thing to do, a fine outline for the rest ── */
.btn { border-radius: var(--r-sm, 12px); font-weight: 600; letter-spacing: 0; }
.btn.ghost { border-color: var(--hair-strong); color: var(--text); }
.btn.ghost:hover { border-color: var(--text); }
.btn:focus-visible, a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ── Tables: rows on fine lines, headings in plain words ── */
table.t { background: none !important; outline: 0 !important; border-radius: 0 !important; border-collapse: collapse; }
table.t th { background: none !important; font: 600 var(--t-micro)/1.3 var(--font-body) !important; color: var(--muted); border-bottom: 1px solid var(--hair-strong) !important; padding: var(--s3) var(--s3) var(--s2) !important; }
table.t td { border-bottom: 1px solid var(--hair) !important; }
table.t th:first-child, table.t td:first-child { padding-left: 0 !important; }

/* ── Lists of links (Me, settings): one panel, fine rules between ── */
.me-group { border-radius: var(--r, 16px); border-color: var(--hair); }
.me-group a + a { border-top-color: var(--hair); }

/* ── Sheets: the one thing that floats ── */
.sheet { border-radius: var(--r-xl, 28px) var(--r-xl, 28px) 0 0; }
.sheet h2 { font-size: var(--t-2); }

/* ── Empty states: a direction, not a shrug ── */
.empty { color: var(--muted); padding: var(--s6) var(--s4); }
.empty .btn, .empty a.btn { margin-top: var(--s4); }

/* ── Motion: calm and quick; nothing moves for people who'd rather it didn't ── */
.page-in { animation: house-in .32s var(--ease) both; }
@keyframes house-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── Back office contents: a clean index of sections, not a wall of grey squares ── */
.bo-tiles { gap: 0 var(--s5) !important; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important; }
.bo-tiles .sec-tile {
  background: none !important; color: var(--text) !important; border: 0 !important; border-top: 1px solid var(--hair) !important; border-radius: 0 !important;
  min-height: 0 !important; padding: var(--s4) 0 var(--s4) !important; flex-direction: row !important; align-items: flex-start !important; justify-content: flex-start !important; gap: var(--s3) !important;
  text-align: left; transition: color .2s;
}
.bo-tiles .sec-tile::before { display: none !important; }
.bo-tiles .sec-tile:hover { color: var(--brand) !important; background: none !important; }
.bo-tiles .sec-tile:active { transform: none !important; }
.bo-tiles .sec-tile svg { width: 22px !important; height: 22px !important; flex: none; margin-top: 1px; color: var(--brand); }
.bo-tiles .sec-tile svg .b { fill: var(--brand) !important; opacity: .5; }
.bo-tiles .sec-tile b { font: 600 16px/1.25 var(--font-body) !important; letter-spacing: -0.005em !important; }
.bo-tiles .sec-tile small { color: var(--muted) !important; font-size: var(--t-small) !important; }
.bo-tiles .sec-tile .beat { position: static !important; order: 3; margin: 7px 0 0 auto; width: 7px !important; height: 7px !important; border-radius: 50% !important; background: var(--hair-strong) !important; flex: none; }
.bo-tiles .sec-tile.lit small { color: var(--brand) !important; font-weight: 600; }
.bo-tiles .sec-tile.lit .beat { background: var(--brand) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
@media (max-width: 600px) { .bo-tiles { grid-template-columns: 1fr 1fr !important; gap: 0 var(--s4) !important; } }

/* ── Member top bar: one way in. With Ask on, messages from the team live inside it ── */
#inbox-btn.merged { display: none !important; }
.ask-btn { position: relative; }
.ask-btn .dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); border: 2px solid var(--surface); }
.ask-team { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s4); padding: var(--s3) 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); color: var(--text); text-decoration: none; }
.ask-team span { display: grid; gap: 1px; }
.ask-team b { font-weight: 600; }
.ask-team small { color: var(--muted); font-size: var(--t-small); }
.ask-team.new small { color: var(--brand); font-weight: 600; }
.ask-team i { font-style: normal; font-size: 22px; color: var(--muted); }

/* ── Your stats: a short story of the month, drawn as beats ── */
.st { margin-top: var(--s5); }
.st-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.st-head h1 { text-align: center; font-size: var(--t-2); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; color: var(--muted); }
.st-step { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--text); text-decoration: none; font-size: 22px; }
.st-step:hover { background: var(--tone); }
.st-lead { margin: var(--s4) 0 0; font: 700 clamp(30px, 8.4vw, 40px)/1.08 var(--font-heading); letter-spacing: var(--h-track, -0.02em); text-wrap: balance; }
.st-look { margin-top: var(--s3); color: var(--muted); font-size: 16px; }
.st-beats { margin-top: var(--s5); }
.st-wd, .st-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; justify-items: center; }
.st-wd span { font-size: var(--t-micro); color: var(--muted); margin-bottom: 8px; }
.st-grid i { width: 14px; height: 14px; border-radius: 50%; background: var(--hair-strong); display: block; }
.st-grid i.pad { background: none; }
.st-grid i.on { background: var(--brand); transform: scale(1.25); }
.st-grid i.now { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--brand); }
.st-grid i.later { background: var(--hair); }
.st-year { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 120px; margin-top: var(--s5); }
.st-year div { display: grid; grid-template-rows: 1fr auto; justify-items: center; height: 100%; gap: 6px; }
.st-year i { width: 100%; max-width: 18px; align-self: end; border-radius: 6px 6px 2px 2px; background: var(--hair-strong); }
.st-year i.on { background: var(--brand); }
.st-year span { font-size: var(--t-micro); color: var(--muted); }
.st-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); margin: var(--s5) 0 0; border-top: 1px solid var(--hair); }
.st-facts div { padding: var(--s3) 0; }
.st-facts dt { font-size: var(--t-small); color: var(--muted); }
.st-facts dd { margin: 2px 0 0; font: 700 24px/1.1 var(--font-heading); font-variant-numeric: tabular-nums; }
.st-favs dl { margin: 0; }
.st-favs div { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--hair); }
.st-favs dt { color: var(--muted); }
.st-favs dd { margin: 0; font-weight: 600; text-align: right; }
.st-favs small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.st-top { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.st-top li { display: flex; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--hair); counter-increment: n; }
.st-top li::before { content: counter(n); width: 1.4em; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-top span { flex: 1; }
.st-top b { font-variant-numeric: tabular-nums; }
.section > h2 { color: var(--text) !important; font: 650 var(--t-3)/1.3 var(--font-body) !important; margin-bottom: var(--s2); }

/* ── Bookings history: rows on fine lines; one prompt to log the latest class ── */
.hist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.hist li { border-bottom: 1px solid var(--hair); }
.hist-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) 0; }
.hist-row[data-open-class] { cursor: pointer; }
.hist-row > div { display: grid; gap: 1px; }
.hist li span { font-size: var(--t-small); color: var(--muted); }
.hist li small { font-size: var(--t-small); color: var(--muted); white-space: nowrap; }
.hist li small.warn { color: var(--warn); }
.log-prompt { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin-top: var(--s5); padding: var(--s4); border-radius: var(--r, 16px); background: var(--tone); }
.log-prompt div { display: grid; gap: 2px; }
.log-prompt span { font-size: var(--t-small); color: var(--muted); }

/* ── The pass before it opens: when, and what's next ── */
.pass-wait { margin-top: var(--s6); }
.pass-k { color: var(--muted); font-weight: 500; }
.pass-when { margin-top: var(--s1); font-size: clamp(38px, 11vw, 54px) !important; line-height: 1 !important; }
.pass-count { margin-top: var(--s2); font: 600 var(--t-3) var(--font-body); color: var(--brand); font-variant-numeric: tabular-nums; }
.pass-next { display: flex; gap: var(--s3); align-items: center; margin: var(--s5) 0 var(--s3); padding: var(--s4) 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.pass-next div { display: grid; gap: 1px; }
.pass-next span:not(.beat) { color: var(--muted); font-size: var(--t-small); }
.pass-acts { display: grid; gap: var(--s2); margin-top: var(--s5); }
.pass-wait .closed-tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--s4); font-weight: 600; color: var(--warn); }
.pass-wait .closed-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }

/* ── Your usual: the class you come to most, one tap from Home ── */
.usual { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 2px var(--s4); width: 100%; margin: var(--s4) 0 0; padding: var(--s4) 0; border: 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: none; text-align: left; cursor: pointer; color: var(--text); }
.usual-k { grid-column: 1; font-size: var(--t-small); color: var(--muted); }
.usual-what { grid-column: 1; display: grid; }
.usual-what b { font: 700 22px/1.15 var(--font-heading); letter-spacing: var(--h-track, -0.02em); }
.usual-what span { color: var(--muted); font-size: var(--t-small); }
.usual-go { grid-column: 2; grid-row: 1 / 3; align-self: center; padding: 10px 18px; border-radius: var(--r-sm, 12px); background: var(--brand); color: var(--on-brand); font-weight: 600; }

/* ── Export: a small menu, out of the way until wanted ── */
.exp-bar { display: flex; justify-content: flex-end; margin: 0 0 var(--s1); }
.exp-menu { position: relative; }
.exp-menu summary { list-style: none; cursor: pointer; font-size: var(--t-small); font-weight: 600; color: var(--muted); padding: 6px 2px 6px 10px; min-height: 32px; display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; }
.exp-menu summary::-webkit-details-marker { display: none; }
.exp-menu summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.exp-menu summary:hover, .exp-menu[open] summary { color: var(--text); }
.exp-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; display: grid; min-width: 140px; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--lift); }
.exp-pop .exp-btn { border: 0 !important; border-radius: 8px !important; background: none !important; text-align: left; padding: 9px 12px !important; min-height: 38px; color: var(--text) !important; font-weight: 500 !important; cursor: pointer; }
.exp-pop .exp-btn:hover, .exp-pop .exp-btn:focus-visible { background: var(--tone) !important; }

/* ── Reports: the figures, your reports, ready-made ones, then the detail ── */
.rb-shelf { margin: var(--s6) 0; }
.rb-shelf h2, .rb-detail-h { font: 650 var(--t-2)/1.2 var(--font-heading) !important; color: var(--text) !important; letter-spacing: var(--h-track, -0.02em) !important; margin: var(--s6) 0 var(--s3); }
.rb-shelf > .row h2 { margin: 0; }
.rb-shelf > .row { margin-bottom: var(--s3); }
.rb-tiles { gap: 0 var(--s5) !important; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important; }
.rb-tile { border: 0 !important; border-top: 1px solid var(--hair) !important; border-radius: 0 !important; background: none !important; padding: var(--s4) 0 !important; }
.rb-tile b { color: var(--text) !important; font-size: 15.5px !important; }
.rb-tile:hover b { color: var(--brand) !important; }

/* ── Settings: grouped by what you're doing ── */
.sec-group + .sec-group { margin-top: var(--s5); }
.sec-group > h2 { font: 650 var(--t-3)/1.3 var(--font-body) !important; color: var(--text) !important; letter-spacing: 0 !important; margin: 0 0 var(--s2); }
.bo-tiles.quiet .beat { display: none !important; }
.bo-tiles.quiet .sec-tile small { color: var(--muted) !important; font-weight: 400 !important; }

/* ── Search everything ── */
.find-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer; font: inherit; }
.find-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; opacity: .8; }
.find-btn span { flex: 1; }
.find-btn kbd { font: 600 11px var(--font-body); opacity: 1; border: 1px solid currentColor; border-radius: 5px; padding: 1px 5px; }
.find-sheet { max-width: 640px; }
@media (min-width: 861px) { .sheet-wrap:has(.find-sheet) { align-items: flex-start; } .find-sheet { margin-top: 12vh; border-radius: var(--r-lg, 22px) !important; } }
.fx-in { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--hair); padding: 2px 0 12px; }
.fx-in svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.fx-in input { flex: 1; border: 0 !important; outline: 0; background: none; font: 500 19px var(--font-body); padding: 6px 0 !important; box-shadow: none !important; min-width: 0; }
.fx-r { max-height: min(56vh, 520px); overflow: auto; padding: var(--s2) 0; }
.fx-g { margin: var(--s3) 0 var(--s1); font-size: var(--t-micro); font-weight: 600; color: var(--muted); }
.fx-item { display: flex; align-items: center; gap: var(--s3); width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer; color: var(--text); }
.fx-item.on, .fx-item:hover { background: var(--tone); }
.fx-item svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fx-item svg .b { fill: var(--brand); stroke: none; opacity: .5; }
.fx-item span:not(.fx-av) { display: grid; min-width: 0; }
.fx-item b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-item small { color: var(--muted); font-size: var(--t-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-av { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--brand) 14%, var(--surface)); color: var(--brand); font-size: 12px; font-weight: 700; }
.fx-none { padding: var(--s4) 10px; color: var(--muted); }
.fx-foot { border-top: 1px solid var(--hair); padding-top: var(--s2); }
@media (max-width: 860px) { .fx-foot { display: none; } }
.side .find-btn { margin: 0 4px 10px; width: calc(100% - 8px); background: color-mix(in srgb, var(--on-brand) 10%, transparent); border: 1px solid color-mix(in srgb, var(--on-brand) 14%, transparent); color: color-mix(in srgb, var(--on-brand) 80%, transparent); padding: 10px 12px; font-size: 14px; border-radius: 10px; min-height: 44px; }
.side .find-btn:hover { color: var(--on-brand); background: color-mix(in srgb, var(--on-brand) 16%, transparent); }

/* ── Tables on phones: each row a short record on a fine line, labels on the left; wide tables scroll ── */
@media (max-width: 860px) {
  .main table.t.cards tbody { gap: 0 !important; border-top: 1px solid var(--hair); }
  .main table.t.cards tr { background: none !important; box-shadow: none !important; border: 0 !important; border-bottom: 1px solid var(--hair) !important; border-radius: 0 !important; padding: var(--s3) 0 !important; }
  .main table.t.cards td { padding: 2px 0 !important; border: 0 !important; }
  .main table.t.cards td:first-child { font: 600 16px/1.3 var(--font-body) !important; padding-bottom: 4px !important; }
  .main table.t.cards td::before { font-size: var(--t-small) !important; }
  .main table.t:not(.cards):not(.fit):not(.rb-table) { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
}

/* ── Photography: the studio's own photos, framed ── */
.photo-band { height: clamp(120px, 34vw, 190px); margin: 0 0 var(--s4); border-radius: var(--r-lg, 22px); background: var(--tone) var(--img) center / cover no-repeat; }
.photo-pass { margin-top: var(--s4); height: clamp(140px, 40vw, 220px); }
@media (min-width: 900px) { .photo-band { height: 220px; } }

/* ── Texture: a fine grain, like paper, where the studio wants it ── */
html.textured body { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ── Style presets: more than corners. How things move and how heavy the headings sit ── */
html[data-style=flow] { --ease: cubic-bezier(.25, .8, .25, 1); }
html[data-style=still] { --ease: cubic-bezier(.3, .7, .2, 1); }
html[data-style=still] .page-in { animation-duration: .45s; }
html[data-style=strong] { --ease: cubic-bezier(.2, .9, .3, 1); }
html[data-style=strong] .page-in { animation-duration: .22s; }
html[data-style=strong] :is(.page-head h1, .hero-big, .st-lead, .pass-when) { font-weight: 800; }
html[data-style=ring] .page-in { animation-duration: .2s; }
html[data-style=ring] :is(.page-head h1, .hero-big, .st-lead, .pass-when) { font-weight: 800; letter-spacing: -0.01em; }
html[data-style=ring] .st-grid i, html[data-style=ring] .st-grid i.on { border-radius: 2px; }
html[data-style=crux] .st-grid i.on { border-radius: 3px; transform: rotate(45deg) scale(1.1); }
html[data-style=stage] .st-grid i.on { transform: scale(1.45); }
html[data-style=still] .st-grid i.on { background: none; box-shadow: inset 0 0 0 2.5px var(--brand); transform: scale(1.3); }
html[data-style=still] .photo-band { border-radius: var(--r-xl, 30px); }

/* ── Dark mode: everything takes its colours from the theme; a few things need a hand ── */
:root[data-dark="1"] { color-scheme: dark; }
:root[data-dark="1"] .topbar .logo-mark:not(.logo-badge), :root[data-dark="1"] .booked-screen .logo-mark { filter: brightness(0) invert(.92); }
:root[data-dark="1"] input, :root[data-dark="1"] select, :root[data-dark="1"] textarea { background: var(--surface); color: var(--text); border-color: var(--hair-strong); }
:root[data-dark="1"] .tabbar { background: color-mix(in srgb, var(--surface) 88%, transparent); }
:root[data-dark="1"] .rb-tip, :root[data-dark="1"] .exp-pop { background: var(--surface); }
:root[data-dark="1"] .st-grid i.later { background: color-mix(in srgb, var(--text) 8%, transparent); }
:root[data-dark="1"] .rb-tick, :root[data-dark="1"] .rb-val.ghost { fill: #a19f98; }
:root[data-dark="1"] .rb-val { fill: var(--text); }
:root[data-dark="1"] .rb-legend { color: var(--muted); }
:root[data-dark="1"] .demo-bar { --text: #1d2433; --surface: #ffffff; --muted: #3d4350; color: #1d2433; }
:root[data-dark="1"] .pill.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 16%, transparent); }
:root[data-dark="1"] .pill.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); }
:root[data-dark="1"] .btn.accent { color: #1d2433; }
:root[data-dark="1"] .rb-chip.on { color: var(--text); }
:root[data-dark="1"] .day[aria-pressed="true"] small, :root[data-dark="1"] .day.on small, :root[data-dark="1"] .day.active small { color: inherit; }
:root[data-dark="1"] .day.active small, :root[data-dark="1"] .days7 .day.active small { color: var(--on-brand); }
:root[data-dark="1"] .coach-photo.team { color: var(--on-brand); }

/* ── Settings forms: grouped under plain headings ── */
.form-grid > .fg-h { grid-column: 1 / -1; margin: var(--s5) 0 0; padding-top: var(--s4); border-top: 1px solid var(--hair); font: 650 var(--t-3)/1.3 var(--font-body) !important; letter-spacing: 0 !important; color: var(--text); }
.form-grid > .fg-h:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
@media (min-width: 1000px) { #brand + .preview { position: sticky; top: 16px; align-self: start; } }

/* ── Getting ready: the owner's first steps, on Home until they're done ── */
.setup { margin: var(--s5) 0; padding: var(--s5); border-radius: var(--r-lg, 22px); background: var(--surface); border: 1px solid var(--hair); }
.setup-top { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); flex-wrap: wrap; }
.setup h2 { font: 700 var(--t-2)/1.15 var(--font-heading) !important; color: var(--text) !important; letter-spacing: var(--h-track, -0.02em) !important; }
.setup-top p { color: var(--muted); margin-top: 2px; }
.setup-beats { display: flex; gap: 8px; }
.setup-beats i { width: 12px; height: 12px; border-radius: 50%; background: var(--hair-strong); }
.setup-beats i.on { background: var(--brand); }
.setup-list { list-style: none; margin: var(--s4) 0 0; padding: 0; border-top: 1px solid var(--hair); }
.setup-list li { border-bottom: 1px solid var(--hair); }
.setup-list li.more:not(.done), .setup-list li.done { display: none; }
.setup-list.all li { display: block; }
.setup-list a { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; color: var(--text); text-decoration: none; }
.setup-list a span:not(.setup-tick) { flex: 1; display: grid; }
.setup-list small { color: var(--muted); font-size: var(--t-small); }
.setup-tick { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1.5px solid var(--hair-strong); display: grid; place-items: center; font-size: 13px; color: var(--on-brand); }
.setup-list li.done .setup-tick { background: var(--brand); border-color: var(--brand); }
.setup-list li.done b { color: var(--muted); font-weight: 500; }
.setup-list a:hover b { color: var(--brand); }
.setup-foot { display: flex; justify-content: space-between; margin-top: var(--s3); }
.setup-foot .link { background: none; border: 0; padding: 8px 0; min-height: 36px; cursor: pointer; font-weight: 600; color: var(--brand); }
.setup-foot .link.muted { color: var(--muted); }

/* ── Your first visit ── */
.first-visit { margin-top: var(--s5); padding: var(--s4) 2px var(--s3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.first-visit h2 { font: 700 var(--t-3)/1.3 var(--font-body) !important; color: var(--text) !important; margin-bottom: var(--s1); }
.first-visit p { margin-top: var(--s2); }
.fv-where b { font-weight: 600; margin-right: 6px; }
.fv-todo { display: flex; align-items: center; justify-content: space-between; margin-top: var(--s3); padding: var(--s3) 0 var(--s1); border-top: 1px solid var(--hair); text-decoration: none; color: var(--text); }
.fv-todo span { display: grid; }
.fv-todo small { color: var(--muted); }

/* ── Live moments: a place opening, a change to your class ── */
.live-offer { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s3); align-items: start; margin-top: var(--s4); padding: var(--s4); border-radius: var(--r-lg, 22px); background: var(--brand); color: var(--on-brand); animation: live-in .5s var(--ease) both; }
.live-offer .beat { margin-top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--on-brand); animation: live-beat 1.6s ease-in-out infinite; }
.live-offer h2 { font: 700 var(--t-2)/1.15 var(--font-heading) !important; color: inherit !important; }
.live-offer p { margin-top: 4px; opacity: .92; }
.live-offer .btn { grid-column: 1 / -1; background: var(--on-brand); color: var(--brand); }
.live-note { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s4); padding: var(--s3) 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); color: var(--text); text-decoration: none; }
.live-note span { display: grid; }
.live-note small { color: var(--muted); font-size: var(--t-small); }
@keyframes live-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes live-beat { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.45); opacity: .6; } }

/* Phones on their side: the header scrolls away and the tab bar slims down, so the page gets the room. */
@media (orientation: landscape) and (max-height: 500px) {
  .topbar { position: relative; top: 0; }
  .tabbar { bottom: calc(6px + env(safe-area-inset-bottom)); padding: 2px 6px; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); }
  .tabbar a { min-height: 40px; font-size: 10.5px; gap: 1px; }
  .tabbar a::after { display: none; }
  .tabbar a svg, .tabbar a.active svg { width: 20px; height: 20px; }
  .tabbar a.qr-tab b { width: 40px; height: 40px; margin-top: -8px; }
}

/* Limits reached: a plain, multi-line note rather than a pill. */
.needs.limit { border-radius: 16px; padding: 12px 18px; font-weight: 500; line-height: 1.4; }

/* Tag ticks: a tidy chip, ticked chips filled. */
.chipcheck { align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 10px; border-radius: 999px; }
.field .chipcheck input, .chipcheck input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; border-radius: 4px; flex: none; }
.chipcheck:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.chipcheck:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Class details: everything for changing a class sits in one fold, so the roster comes first. */
.manage-fold > summary > span { margin-left: auto; }
.manage-fold h4 { font: 600 15px/1.3 var(--font-body); margin: 0; }
.manage-fold > form + .stack, .manage-fold > .stack + .row { padding-top: var(--s4, 16px); border-top: 1px solid var(--hair); }
.manage-fold .row input[type=date], .manage-fold .row input[type=time] { width: auto; }

/* More: a page's less used actions. */
.more-menu summary { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; min-height: 36px; color: var(--text); }
.more-menu .exp-pop { min-width: 200px; }
.more-menu a.exp-btn { display: flex; align-items: center; text-decoration: none; }
.pay-lines { display: grid; gap: 8px; margin: 0; }
.pay-lines > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--hair); }
.pay-lines dd { margin: 0; font-variant-numeric: tabular-nums; }
.promo-fold summary { list-style: none; cursor: pointer; justify-self: start; }
.promo-fold summary::-webkit-details-marker { display: none; }
.promo-fold[open] summary { margin-bottom: 8px; }

/* Loading: the shape of a page rather than a blank. */
.skel-page { display: grid; gap: 12px; padding-top: var(--s5, 20px); }
.skel-page i { display: block; height: 64px; border-radius: var(--radius, 14px); background: linear-gradient(90deg, var(--line), color-mix(in srgb, var(--line) 35%, transparent), var(--line)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skel-page i.t { height: 36px; width: 46%; margin-bottom: 8px; }
.skel-page i.s { width: 70%; }

/* Taps answer the finger: a small press on anything you can tap. */
.bo-tiles a, .bo-tiles button, .chip, .seg-tabs button, .slots button, .prod-grid button, .tabbar a, .abar a, .later a, .needs, .rb-chip, .exp-btn, tr.click, .me-group a, .hist-row {
  transition: transform .12s ease, background-color .15s ease;
}
.bo-tiles a:active, .bo-tiles button:active, .chip:active, .seg-tabs button:active, .slots button:active, .prod-grid button:active, .tabbar a:active, .later a:active, .needs:active, .rb-chip:active, .exp-btn:active { transform: scale(.97); }
.bo-tiles .sec-tile:active { transform: scale(.98) !important; }
.done-now { opacity: .85; }
@media (prefers-reduced-motion: reduce) {
  .skel-page i { animation: none; }
  .bo-tiles a, .chip, .slots button, .prod-grid button, .tabbar a, .btn { transition: none !important; }
  .bo-tiles a:active, .chip:active, .slots button:active, .prod-grid button:active, .tabbar a:active, .btn:active, .bo-tiles .sec-tile:active { transform: none !important; }
}
.not-found { padding: var(--s7, 48px) 0 var(--s6, 32px); display: grid; gap: var(--s3, 12px); }
.not-found h1 { font-size: clamp(28px, 7vw, 40px); }

/* Show it, don't announce it: a soft pulse on the thing that just worked. */
@keyframes donePulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 35%, transparent); } 40% { transform: scale(1.04); } 100% { transform: scale(1); box-shadow: 0 0 0 10px transparent; } }
.done-pulse { animation: donePulse .6s ease-out; }
@media (prefers-reduced-motion: reduce) { .done-pulse { animation: none; } }

/* Fitts's law: on phones every tap target is at least Apple's 44 points. Small icons keep their look
   and get a bigger invisible touch area; chips, menus and switches grow a little. */
@media (pointer: coarse) {
  /* (The sheet's close button is already positioned, absolutely, top right: it keeps that.) */
  .tick, .more-btn, .note-add, .dstrip-arrow, .alerts > *, .icon-btn, .back, .bo-back { position: relative; }
  .tick::before, .more-btn::before, .note-add::before, .dstrip-arrow::before, .alerts > *::before, .sheet-close::before, .back::before, .bo-back::before {
    content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%);
  }
  .chip, .coach-chip, .seg-tabs button, .exp-menu summary, .exp-pop .exp-btn, .rb-chip, .chipcheck { min-height: 44px; }
  details > summary { min-height: 44px; display: flex; align-items: center; }
  .switch { padding: 7px 0; margin: -7px 0; }
  .link.small:not(p .link) { padding-block: 12px; margin-block: -12px; display: inline-block; }
}

/* A sheet that grows out of the tapped row skips the slide up (its mask does the work). */
.sheet-wrap.grow .sheet { transition: none !important; transform: none !important; }

/* The brand editor's colour check: the 60-30-10 strip and anything hard to read. */
.colour-check { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 14px; background: var(--surface); }
.cc-bar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; border: 1px solid var(--hair); }
.cc-bar i { display: block; }
.cc-fails { color: var(--danger-ink, #9b2c1f); margin: 0; padding-left: 18px; }

/* Every way to pay for a treatment, at their prices, on Book */
.ways { display: grid; gap: 8px; margin-top: 18px; }
.ways h3 { margin: 0; }
.ways-list { display: grid; gap: 2px; }
.way { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.way:last-child { border-bottom: 0; }
.way b { display: block; font-weight: 600; }
.way small { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; }
.way .price { font-weight: 650; white-space: nowrap; }
.ways > p { margin: 0; }
/* Use-by dates on credits: each date on its own line, the last week in the warning colour */
.use-by-list { display: grid; gap: 1px; margin-top: 2px; }
.use-by.soon { color: var(--warn); font-weight: 600; }
.use-by b { font-weight: 700; }

/* Appearance: three little previews of the app, in the studio's own colours */
.appear { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 4px 0 6px; }
.ap-opt { display: grid; gap: 8px; justify-items: center; cursor: pointer; text-align: center; }
.ap-pic { position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--ap-light);
  box-shadow: inset 0 0 0 1px var(--line); display: grid; align-content: end; gap: 5px; padding: 10px; transition: box-shadow .15s ease, transform .15s ease; }
.ap-pic i { display: block; height: 9px; border-radius: 5px; background: var(--ap-card); box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); }
.ap-pic i:first-child { height: 22px; background: var(--ap-brand); box-shadow: none; }
.ap-pic i:last-child { width: 60%; }
.ap-dark { background: #16181d; }
.ap-dark i { background: #262a31; box-shadow: none; }
.ap-auto { background: linear-gradient(135deg, var(--ap-light) 50%, #16181d 50%); }
.ap-auto i { background: color-mix(in srgb, var(--ap-card) 50%, #262a31); }
.ap-name { font-size: 13px; line-height: 1.25; color: var(--muted); }
.ap-opt:has(input:checked) .ap-pic { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 2px var(--surface), 0 0 0 4px var(--brand); }
.ap-opt:has(input:checked) .ap-name { color: var(--text); font-weight: 650; }
.ap-opt:has(input:focus-visible) .ap-pic { outline: 2px solid var(--brand); outline-offset: 4px; }
.ap-opt:active .ap-pic { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .ap-pic { transition: none; } .ap-opt:active .ap-pic { transform: none; } }

/* Ask: always a way on. Start again at the top; back, more options or try again under the latest answer. */
.ask-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ask-reset { border: 0; background: none; color: var(--brand); font: 600 14px/1 inherit; padding: 12px 0 12px 12px; cursor: pointer; flex: none; }
.ask-reset[hidden] { display: none; }
.ask-next { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 6px 30px; }
.ask-next button { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 0 14px; min-height: 36px; font: 600 13px/1 inherit; cursor: pointer; }
.ask-next button[data-next="retry"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.ask-next button:active { transform: scale(.97); }
@media (pointer: coarse) { .ask-next button { min-height: 44px; } }
a.chip.ask-chip-link { text-decoration: none; }

/* The treatment photo on Book: a proper photo shape rather than a thin strip, so the person and the room show */
.treat-sel .card-img { height: auto; aspect-ratio: 3 / 2; max-height: 420px; background-position: center 45%; }
@media (min-width: 720px) { .treat-sel .card-img { aspect-ratio: 16 / 9; } }

/* Demo: the member as each tier, on a row of its own under the views */
.demo-bar:has(.demo-tiers) { flex-wrap: wrap; row-gap: 4px; }
.demo-tiers { flex-basis: auto; }
@media (max-width: 560px) { .demo-bar:has(.demo-tiers) .demo-tiers { order: 3; } .demo-bar:has(.demo-tiers)::after { content: ''; order: 2; flex-basis: 100%; height: 0; } }

.monthly-card .card-img { height: auto; aspect-ratio: 16 / 9; margin: -8px -8px 4px; }
/* Entry, before a booking: room between the big line and the explanation under it */
.pass-wait .pass-how { margin-top: var(--s4, 18px); }

/* Book: choosing a treatment and its length.
   One quiet track for the treatments (the chosen one lifts onto a white pill with its own colour as a small dot),
   then light tiles for the lengths (the chosen one outlined and softly tinted, with a tick). No heavy fills here,
   so the times and Book stay the strongest thing to tap; colour is the 10% accent, not the surface. */
.filters.fam { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: color-mix(in srgb, var(--text) 6%, var(--bg, var(--surface))); }
.filters.fam.fam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.filters.fam .chip { position: relative; flex: 1 1 0; min-height: 44px; margin: 0; border: 0; border-radius: 12px; background: transparent; color: var(--muted);
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em; padding: 8px 6px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease; }
.filters.fam .chip::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--brand)); opacity: .45; transition: opacity .18s ease, transform .18s ease; }
.filters.fam .chip.active, .filters.fam .chip.active:hover { background: var(--surface); color: var(--text); border: 0; box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 2px 10px rgb(0 0 0 / .06); }
.filters.fam .chip.active::before { opacity: 1; transform: scale(1.15); }
.filters.fam .chip:not(.active):hover { color: var(--text); }
.filters.fam .chip:active { transform: scale(.97); }


/* ── The taal look: beats on a cycle ──
   Four rules for every studio and every screen (DESIGN.md):
   1. The beat is the only mark. Choosing, availability, credits and the week are all beats, in the
      studio's beat shape (a dot, a plate for strength, a square for the ring, a hold for climbing).
   2. The brand colour is for the one main action on a screen. Everything else sits on plain lines.
   3. Big photos carry the mood, and they follow what you choose.
   4. One motion: a soft beat when something lands. Everything else moves calmly or not at all. */
#view { --sel: var(--brand); --ctl-r: 999px; --calm: cubic-bezier(.2, .7, .3, 1); --beat-r: 50%; --beat-rot: 0deg; }
html[data-style=strong] #view { --ctl-r: 14px; --beat-r: 3px; }
html[data-style=ring] #view { --ctl-r: 8px; --beat-r: 2px; }
html[data-style=crux] #view { --ctl-r: 12px; --beat-r: 2px; --beat-rot: 45deg; }

/* Page photo headers: the title over the photo, full width, the photo changing softly with the choice */
.photo-head { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 230px; margin: 0 calc(-1 * var(--gutter, 16px)) 18px; padding: 22px 24px 22px;
  border-radius: 0 0 var(--r-xl, 32px) var(--r-xl, 32px); background: var(--brand); color: #fff; }
.photo-head .ph-img { position: absolute; inset: 0; z-index: -2; background: var(--img) center 40% / cover no-repeat; transition: opacity .55s var(--calm, ease); }
.photo-head .ph-img.in { opacity: 0; }
.photo-head::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(0 0 0 / .28), rgb(0 0 0 / 0) 36%, rgb(0 0 0 / .55)); }
.photo-head h1 { margin: 0; font: 700 clamp(36px, 11vw, 48px)/1 var(--font-heading); letter-spacing: var(--h-track); color: #fff; text-wrap: balance; }
/* The bar sits over the photo, as on Home, until the photo scrolls away */
@media (max-width: 699px) {
  body.over-photo .photo-head { margin-top: calc(-1 * var(--top-h, 64px)); padding-top: calc(var(--top-h, 64px) + 22px); min-height: calc(230px + var(--top-h, 64px) * .5); }
  body.over-photo .topbar:not(.solid) { background: transparent; color: #fff; }
  body.over-photo .topbar:not(.solid) :is(.brand, .brand-sub) { color: #fff; }
  body.over-photo .topbar:not(.solid) .logo-mark:not(.logo-badge) { filter: brightness(0) invert(1); }
  body.over-photo .topbar:not(.solid) .logo-mark.logo-badge { filter: drop-shadow(0 2px 6px rgb(0 0 0 / 28%)); }
  body.over-photo .topbar:not(.solid) :is(.icon-btn, #auth-btn, .ask-btn) { background: rgb(255 255 255 / .2); color: #fff; border-color: transparent; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
@media (min-width: 700px) { .photo-head { margin: 8px 0 22px; min-height: 260px; border-radius: var(--r-xl, 32px); } }
html[data-style=ring] .photo-head { border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* Home: the photo runs to the edges; the week is a cycle of beats on it */
@media (max-width: 699px) { body.page-home .hero { margin-left: calc(-1 * var(--gutter, 16px)); margin-right: calc(-1 * var(--gutter, 16px)); border-radius: 0 0 var(--r-xl) var(--r-xl); } }
.hero .hero-acts { align-items: flex-end; }
.cycle { position: relative; flex: none; width: 96px; height: 96px; margin-left: auto; color: #fff; }
.cycle::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .34); }
.cycle .beat { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: var(--beat-r, 50%); background: rgb(255 255 255 / .34) !important; box-shadow: none !important;
  transform: rotate(calc(var(--i) * 51.43deg)) translateY(-38px) rotate(calc(var(--i) * -51.43deg + var(--beat-rot, 0deg))); }
html[data-style=strong] .cycle .beat { width: 7px; height: 12px; margin: -6px 0 0 -3.5px; }
.cycle .beat.done { background: #fff !important; }
.cycle .beat.booked { background: transparent !important; box-shadow: inset 0 0 0 2px #fff !important; }
.cycle .beat.now { background: var(--accent) !important; animation: beatNow 2.4s ease-in-out infinite; }
.cycle span { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: 11px; line-height: 1.3; font-weight: 500; }
@keyframes beatNow { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* The main action: the studio's colour, with a short trail of beats as its only mark */
.pathway::before { display: none; }
.pathway .trail { position: absolute; top: 16px; right: 86px; display: flex; gap: 5px; }
.trail .beat { width: 6px; height: 6px; border-radius: var(--beat-r, 50%); background: var(--accent) !important; box-shadow: none !important; transform: rotate(var(--beat-rot, 0deg)); }
html[data-style=strong] .trail .beat { width: 4px; height: 9px; }
.trail .beat:nth-child(2) { opacity: .6; }
.trail .beat:nth-child(3) { opacity: .3; }

/* The other ways on from Home: plain lines */
.paths { margin-top: 10px; }
.paths a { min-height: 66px; padding: 8px 2px; }
.paths b { font: 600 22px/1.1 var(--font-heading); }

.glide { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; width: var(--gw); height: var(--gh); transform: translate(var(--gx), var(--gy)); }
#view .glide.go { transition: transform .38s var(--calm), width .38s var(--calm), height .38s var(--calm); }

/* Tabs: words, the chosen one marked by a single beat under it */
#view .tabs { position: relative; padding-bottom: 12px !important; }
#view .tabs > .on, #view .tabs.has-glide > .on { border-bottom-color: transparent !important; }
#view .tabs:not(.has-glide) > .on { background-image: radial-gradient(circle, var(--sel) 2.6px, transparent 3px); background-repeat: no-repeat; background-position: center calc(100% - 2px); background-size: 8px 8px; }
#view .tabs > .glide { top: auto; bottom: 3px; width: 6px; height: 6px; border-radius: var(--beat-r, 50%); background: var(--sel); transform: translateX(calc(var(--gx) + var(--gw) / 2 - 3px)) rotate(var(--beat-rot, 0deg)); }

/* The treatment switch: a soft track; the chosen one carries a beat in its colour */
#view .filters.fam { position: relative; isolation: isolate; gap: 4px; padding: 4px; border-radius: 16px; }
#view .filters.fam .chip { z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 6px 4px 14px;
  font: 600 14px/1.2 var(--font-body); color: var(--muted); text-align: center; text-wrap: balance; white-space: normal; overflow: visible; }
#view .filters.fam .chip::before { display: none !important; }
#view .filters.fam .chip.active { color: var(--text); }
#view .filters.fam.has-glide .chip.active { background: transparent; box-shadow: none; }
@media (max-width: 480px) { #view .filters.fam:not(.fam-grid) .chip { flex: 1 1 auto; padding-inline: 10px; } }
#view .filters.fam > .glide { border-radius: 12px; background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 4px 14px -6px rgb(0 0 0 / .14); }
:root[data-dark="1"] #view .filters.fam > .glide { background: color-mix(in srgb, var(--text) 13%, var(--surface)); }
#view .filters.fam > .glide::after { content: ''; position: absolute; left: 50%; bottom: 7px; width: 6px; height: 6px; margin-left: -3px; border-radius: var(--beat-r, 50%); background: var(--gc, var(--sel)); transform: rotate(var(--beat-rot, 0deg)); transition: background-color .3s ease; }

/* Seg tabs (Home's panels) take the same single beat under the chosen word */
#view .seg-tabs button[aria-selected="true"] { border-bottom-color: transparent !important; background-image: radial-gradient(circle, var(--sel) 2.6px, transparent 3px); background-repeat: no-repeat; background-position: center calc(100% - 2px); background-size: 8px 8px; }
#view .seg-tabs { padding-bottom: 4px; }
/* Chips: the chosen one is outlined in the studio's colour with a beat, never a solid block (solid is for the main action) */
#view .preset-chips .chip.active, #view .filters:not(.fam) .chip.active { background: var(--surface); color: var(--text); border-color: var(--sel); box-shadow: inset 0 0 0 1px var(--sel); }
#view .preset-chips .chip.active::before, #view .filters:not(.fam) .chip.active::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: 2px; border-radius: var(--beat-r, 50%); background: var(--sel); transform: rotate(var(--beat-rot, 0deg)); }

/* Options: plain lines, a beat on the left that fills when chosen, the price on the right */
#view .seg.seg-opts, #view .builder .seg { display: flex; flex-direction: column; gap: 0; padding: 0; background: none; border-top: 1px solid var(--line); border-radius: 0; }
#view .seg.seg-opts button, #view .builder .seg button {
  position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; width: 100%; min-height: 54px; margin: 0; padding: 8px 2px;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; color: var(--text); box-shadow: none;
  font: 500 16px/1.25 var(--font-body); text-align: left; cursor: pointer; transition: color .2s ease; }
#view .seg.seg-opts button::before, #view .builder .seg button::before { content: ''; width: 14px; height: 14px; box-sizing: border-box; border-radius: var(--beat-r, 50%); border: 2px solid color-mix(in srgb, var(--text) 26%, transparent); transform: rotate(var(--beat-rot, 0deg)); transition: background-color .25s var(--calm), border-color .25s var(--calm); }
html[data-style=strong] #view :is(.seg.seg-opts, .builder .seg) button::before { width: 10px; height: 16px; margin-left: 2px; }
#view .seg.seg-opts button small, #view .builder .seg button small { display: block; margin: 0; font: 500 14px/1.2 var(--font-body); color: var(--muted); font-variant-numeric: tabular-nums; opacity: 1; text-align: right; }
#view .seg.seg-opts button.on, #view .builder .seg button.on { font-weight: 650; background: none; box-shadow: none; border-color: var(--line); }
#view .seg.seg-opts button.on::before, #view .builder .seg button.on::before { background: var(--sel); border-color: var(--sel); animation: beatLand .5s var(--calm) both; }
#view .seg.seg-opts button.on small, #view .builder .seg button.on small { color: var(--text); font-weight: 650; }
#view .seg.seg-opts button.on::after, #view .builder .seg button.on::after { display: none; }
#view .treat-sel .seg.seg-opts { margin: 2px 0 6px; }
/* The one motion: a soft beat when something lands */
@keyframes beatLand { 0% { transform: rotate(var(--beat-rot, 0deg)) scale(1); } 40% { transform: rotate(var(--beat-rot, 0deg)) scale(1.35); } 100% { transform: rotate(var(--beat-rot, 0deg)) scale(1); } }

/* Days: the chosen one a solid round that glides; free times show as beats under each day */
#view .days7 { position: relative; }
#view .days7 .day { position: relative; z-index: 1; transition: color .25s ease; }
#view .days7.has-glide .day.active { background: transparent; border-color: transparent; box-shadow: none; }
#view .days7 > .glide { border-radius: var(--ctl-r); background: var(--sel); }

/* Times: calm pills; the chosen one solid */
#view .slots { gap: 8px; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
#view .slot { min-height: 48px; padding: 0 6px; border: 1px solid var(--line); border-radius: var(--ctl-r); background: var(--surface); color: var(--text);
  font: 500 16px/1 var(--font-body); font-variant-numeric: tabular-nums; transition: border-color .2s ease, background-color .2s ease; }
#view .slot:hover { background: var(--surface); border-color: color-mix(in srgb, var(--sel) 45%, var(--line)); }
#view .slot.on, #view .slot[aria-pressed="true"] { background: var(--sel); border-color: var(--sel); color: var(--on-brand); }

/* Buttons: one height, one corner, one weight */
#view .btn { min-height: 50px; padding: 12px 22px; border-radius: var(--ctl-r); font: 600 15px/1.2 var(--font-body); }
#view .btn.small { min-height: 44px; padding: 10px 18px; font-size: 14px; }

/* Price lines and deals: plain lines, the same badge */
#view .way, #view .deal { border-radius: 0; background: none; box-shadow: none; border: 0; border-bottom: 1px solid var(--line); padding-left: 2px; padding-right: 2px; }
#view .way b, #view .deal b { font: 600 16px/1.3 var(--font-body); }
#view .way small, #view .deal small { margin-top: 2px; font-size: 13px; color: var(--muted); }
#view .way .price, #view .deal-r .price { font-family: var(--font-heading); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
#view .deal-r s { font: 500 13px var(--font-body); color: var(--muted); }
#view .card .pill.brand, #view .deal-r i { display: inline-block; padding: 3px 8px; border-radius: 6px; font: 650 11.5px/1.2 var(--font-body); font-style: normal; letter-spacing: .01em;
  background: color-mix(in srgb, var(--sel) 12%, transparent); color: var(--sel); vertical-align: 2px; }

/* The basket: a light bar floating over the page, the studio's colour only on its button */
#view .summary-bar { isolation: isolate; overflow: hidden; border-radius: 28px; background: var(--surface); color: var(--text); padding: 12px 10px 12px 22px;
  box-shadow: 0 12px 32px -6px rgb(0 0 0 / .16), 0 0 0 1px color-mix(in srgb, var(--text) 6%, transparent); }
#view .summary-bar::before { display: none; }
#view .summary-bar .total { color: var(--text); }
#view .summary-bar .save { color: var(--muted); }
#view .summary-bar .btn:not(.ghost), #view .summary-bar .buy-pair .btn:not(.ghost) { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
#view .summary-bar .buy-pair .btn.ghost { color: var(--text); border-color: var(--line); }
#view .summary-bar .buy-pair .btn { min-height: 44px; }
/* One slim row, so it covers as little of the page as it floats over it: the total and what it's for on the left
   (one line, cut short if long), the buttons on the right. */
#view .summary-bar { flex-wrap: nowrap; gap: 10px; padding: 8px 8px 8px 20px; margin-top: 14px; }
#view .summary-bar > div:first-child { flex: 1 1 auto; min-width: 0; }
#view .summary-bar .total { font-size: 22px; line-height: 1.1; white-space: nowrap; }
#view .summary-bar .save { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view .summary-bar .buy-pair { width: auto; display: flex; gap: 6px; }
#view .summary-bar .buy-pair .btn, #view .summary-bar > .btn { width: auto; min-height: 46px; padding: 0 15px; font-size: 14.5px; flex: none; }
#view .summary-bar .buy-pair .btn.ghost { background: transparent; border: 1px solid var(--line); }
#view .summary-bar .buy-pair .btn:not(.ghost) { background: var(--brand) !important; color: var(--on-brand) !important; }
/* The page ends with room for the floating bars, so the last of it can always be scrolled clear of them. */
body:has(#view .summary-bar) #view { padding-bottom: calc(var(--tabbar) + 24px); }
#view .roll { display: inline-block; animation: rollIn .4s var(--calm) both; }
@keyframes rollIn { from { transform: translateY(35%); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  #view .glide.go, .photo-head .ph-img { transition: none; }
  #view .seg.seg-opts button.on::before, #view .builder .seg button.on::before, #view .roll, .cycle .beat.now { animation: none; }
}

/* Tick boxes and radio buttons keep their own size: the tall box height is for text inputs only, so a tick sits level with its first line */
input[type=checkbox], input[type=radio] { min-height: 0; }
