/* OREDI storefront: booking first, shop beside it.
   Frosted glass over a soft field of the brand colour. Big Shoulders Display
   carries names and session times (scoreboard numerals); Figtree does the rest.
   The one loud element is the session time with its row of spot pips. */

:root {
  --brand: #1F6F5C;
  --bg: #E7ECE9;
  --ink: #0F1D18;
  --muted: #52615B;
  --hair: rgba(15, 29, 24, .11);
  --glass: rgba(255, 255, 255, .56);
  --glass-2: rgba(255, 255, 255, .78);
  --glass-line: rgba(255, 255, 255, .78);
  --glass-shadow: 0 12px 32px -16px rgba(12, 34, 26, .22);
  --field: rgba(255, 255, 255, .72);
  --accent-ink: color-mix(in oklab, var(--brand) 82%, black);
  --accent-soft: color-mix(in oklab, var(--brand) 13%, transparent);
  --on-brand: #fff;
  --blob-a: color-mix(in oklab, var(--brand) 34%, transparent);
  --blob-b: rgba(120, 178, 204, .34);
  --good: #1D7449; --good-soft: rgba(29, 116, 73, .13);
  --warn: #8F5400; --warn-soft: rgba(204, 140, 20, .16);
  --bad: #B3261E; --bad-soft: rgba(179, 38, 30, .11);
  --r-lg: 22px; --r: 16px; --r-sm: 12px;
  --wrap: 1160px;
  --display: 'Big Shoulders Display', 'Arial Narrow', system-ui, sans-serif;
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@supports (color: hsl(from red h s l)) {
  :root { --blob-b: hsl(from var(--brand) calc(h + 70) 45% 62% / .32); }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09110E; --ink: #E5EEEA; --muted: #98ABA3; --hair: rgba(255, 255, 255, .1);
    --glass: rgba(24, 38, 33, .52); --glass-2: rgba(28, 44, 38, .8); --glass-line: rgba(255, 255, 255, .09);
    --glass-shadow: 0 16px 40px -18px rgba(0, 0, 0, .6); --field: rgba(255, 255, 255, .06);
    --accent-ink: color-mix(in oklab, var(--brand) 52%, white); --accent-soft: color-mix(in oklab, var(--brand) 26%, transparent);
    --blob-a: color-mix(in oklab, var(--brand) 42%, transparent);
    --good: #5BC98F; --good-soft: rgba(91, 201, 143, .14); --warn: #F0B455; --warn-soft: rgba(240, 180, 85, .14);
    --bad: #FF8A80; --bad-soft: rgba(255, 138, 128, .13);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09110E; --ink: #E5EEEA; --muted: #98ABA3; --hair: rgba(255, 255, 255, .1);
  --glass: rgba(24, 38, 33, .52); --glass-2: rgba(28, 44, 38, .8); --glass-line: rgba(255, 255, 255, .09);
  --glass-shadow: 0 16px 40px -18px rgba(0, 0, 0, .6); --field: rgba(255, 255, 255, .06);
  --accent-ink: color-mix(in oklab, var(--brand) 52%, white); --accent-soft: color-mix(in oklab, var(--brand) 26%, transparent);
  --blob-a: color-mix(in oklab, var(--brand) 42%, transparent);
  --good: #5BC98F; --good-soft: rgba(91, 201, 143, .14); --warn: #F0B455; --warn-soft: rgba(240, 180, 85, .14);
  --bad: #FF8A80; --bad-soft: rgba(255, 138, 128, .13);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
/* The field of colour the glass sits on */
body::before {
  content: ''; position: fixed; inset: -10vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42vmax 38vmax at 12% 4%, var(--blob-a), transparent 70%),
    radial-gradient(40vmax 36vmax at 96% 34%, var(--blob-b), transparent 70%),
    radial-gradient(36vmax 30vmax at 40% 104%, var(--blob-a), transparent 72%);
  filter: saturate(1.1);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .wrap { padding-left: 24px; padding-right: 24px; } }
h1, h2, h3 { margin: 0 0 .45em; line-height: 1.05; font-family: var(--display); font-weight: 800; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 6vw, 2.75rem); }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.prose { white-space: pre-line; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 99; padding: 10px 14px; background: var(--glass-2); border-radius: 10px; }

/* ---------- Glass ---------- */
.glass, .panel, .top-bar, .foot-card, .tabbar, .slot, .seg, .card .ph, .banner {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), var(--glass-shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .panel, .top-bar, .foot-card, .tabbar, .slot, .seg, .card .ph, .banner { background: var(--glass-2); }
}
.panel { border-radius: var(--r-lg); padding: 20px; }
@media (min-width: 720px) { .panel { padding: 24px; } }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 40; padding: 10px 0 0; }
.top-bar { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 8px 8px 12px; border-radius: 18px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; margin-right: auto; }
.brand img { height: 36px; width: 36px; object-fit: contain; border-radius: 10px; flex: none; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1; }
.nav-main { display: none; gap: 4px; }
@media (min-width: 860px) { .nav-main { display: flex; } }
.nav-main a { text-decoration: none; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav-main a:hover { background: var(--accent-soft); }
.nav-main a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.icon-btn {
  appearance: none; border: 0; background: transparent; color: inherit; cursor: pointer; text-decoration: none;
  width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; position: relative; flex: none; font: inherit;
}
.icon-btn:hover { background: var(--accent-soft); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .count {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand); font-size: .72rem; font-weight: 700; display: grid; place-items: center;
}
.theme-moon { display: none; }
:root[data-theme="dark"] .theme-sun { display: none; }
:root[data-theme="dark"] .theme-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-sun { display: none; }
  :root:not([data-theme="light"]) .theme-moon { display: block; }
}
.btn.acct-link { display: none; }
@media (min-width: 860px) { .btn.acct-link { display: inline-flex; } }

/* Mobile tab bar */
.tabbar {
  position: fixed; left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 45;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-radius: 20px; padding: 6px;
}
@media (min-width: 860px) { .tabbar { display: none; } }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 7px 4px 6px; border-radius: 14px; text-decoration: none; font-size: .74rem; font-weight: 600; color: var(--muted); }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--ink); background: var(--accent-soft); }
body.has-tabbar { padding-bottom: 92px; }
@media (min-width: 860px) { body.has-tabbar { padding-bottom: 0; } }

/* Announcement banner */
.banner { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; padding: 12px 14px; border-radius: 16px; text-decoration: none; }
.banner .mark { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--accent-soft); }
.banner.closure .mark { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.banner strong { display: block; }
.banner span { color: var(--muted); font-size: .9rem; }

/* Flash */
.flash { margin: 14px 0 0; padding: 12px 16px; border-radius: 14px; font-weight: 600; border: 1px solid transparent; }
.flash.ok { background: var(--good-soft); color: var(--good); border-color: color-mix(in oklab, var(--good) 25%, transparent); }
.flash.error { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in oklab, var(--bad) 25%, transparent); }

/* ---------- Buttons and fields ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; text-decoration: none; line-height: 1.2;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 12px 20px; border-radius: 14px; background: var(--ink); color: var(--bg); transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.accent { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 20px -10px color-mix(in oklab, var(--brand) 80%, black); }
.btn.ghost { background: var(--field); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--hair); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); filter: none; }
.btn.small { min-height: 38px; padding: 8px 14px; font-size: .9rem; border-radius: 12px; }
.btn.link { background: none; color: var(--muted); padding: 0; min-height: 0; text-decoration: underline; font-weight: 600; box-shadow: none; }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.wide { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
input[type=file]::file-selector-button {
  font: inherit; font-weight: 700; font-size: .88rem; margin-right: 10px; padding: 8px 14px; border-radius: 10px; cursor: pointer;
  border: 0; background: var(--field); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--hair);
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

label.f { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
label.f .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=search], input[type=password], input[type=date], select, textarea {
  font: inherit; color: inherit; width: 100%; padding: 12px 14px; border: 1.5px solid var(--hair); border-radius: 12px; background: var(--field);
  min-height: 48px;
}
input[type=file] { font: inherit; font-size: .9rem; max-width: 100%; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.err { color: var(--bad); font-size: .86rem; font-weight: 600; }
.form-grid { display: grid; gap: 16px; }
.form-grid .pair { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-grid .pair { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); }
.pw-row { position: relative; }
.pw-row input { padding-right: 70px; }
.pw-row button { position: absolute; right: 6px; top: 6px; bottom: 6px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; padding: 0 10px; border-radius: 8px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-weight: 700; font-size: .8rem; background: var(--field); white-space: nowrap; }
.pill.action { background: var(--warn-soft); color: var(--warn); }
.pill.wait { background: var(--accent-soft); color: var(--accent-ink); }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.done { background: var(--field); color: var(--muted); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.notice { background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; font-size: .93rem; }
.notice.warn { background: var(--warn-soft); }

/* ---------- Page layout ---------- */
.page { padding-top: 28px; padding-bottom: 64px; }
.page-narrow { max-width: 600px; }
.stack { display: grid; gap: 16px; }
.two { display: grid; gap: 20px; }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; } }
.section { margin-top: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; font-size: .95rem; }

/* ---------- Home: hero ---------- */
.hero { padding-top: 30px; padding-bottom: 6px; display: grid; gap: 18px; }
@media (min-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.5rem); margin: 0; letter-spacing: .01em; }
.hero p { margin: 8px 0 0; color: var(--muted); font-size: 1.08rem; max-width: 36em; }
.rates { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rate { display: grid; gap: 0; padding: 10px 16px; border-radius: 16px; min-width: 112px; text-decoration: none; }
.rate b { font-family: var(--display); font-size: 1.7rem; line-height: 1; font-weight: 800; }
.rate span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.rate.member { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.rate.member span { color: color-mix(in oklab, var(--on-brand) 82%, transparent); }

/* Location switch + day strip */
.picker { margin-top: 26px; display: grid; gap: 12px; justify-items: start; }
.picker > * { max-width: 100%; }
.picker .days { justify-self: stretch; }
.seg { display: inline-flex; padding: 5px; border-radius: 16px; gap: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg a { text-decoration: none; padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: .95rem; white-space: nowrap; color: var(--muted); }
.seg a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px; scrollbar-width: none; scroll-snap-type: x proximity; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 auto; scroll-snap-align: start; min-width: 66px; display: grid; justify-items: center; gap: 0; padding: 9px 10px 8px;
  border-radius: 16px; text-decoration: none; background: var(--glass); border: 1px solid var(--glass-line);
}
.day .dow { font-size: .74rem; font-weight: 700; color: var(--muted); }
.day .num { font-family: var(--display); font-size: 1.75rem; font-weight: 800; line-height: 1.05; }
.day .sub { font-size: .7rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.day.off { opacity: .55; }
.day[aria-current="true"] { background: var(--brand); border-color: transparent; color: var(--on-brand); box-shadow: 0 10px 22px -12px color-mix(in oklab, var(--brand) 85%, black); }
.day[aria-current="true"] .dow, .day[aria-current="true"] .sub { color: color-mix(in oklab, var(--on-brand) 85%, transparent); }

/* ---------- Session cards: the scoreboard time and the spot pips ---------- */
.day-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 12px 0 12px; }
.day-title h2 { margin: 0; font-size: 1.5rem; }
.slots { display: grid; gap: 12px; }
@media (min-width: 900px) { .slots { grid-template-columns: 1fr 1fr; } }
.slot {
  border-radius: var(--r); padding: 16px; display: grid; gap: 4px 16px; position: relative;
  grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'time cta' 'info info';
}
@media (min-width: 520px) { .slot { grid-template-columns: 112px minmax(0, 1fr) auto; grid-template-areas: 'time info cta'; align-items: center; } }
.slot-time { grid-area: time; display: flex; align-items: baseline; gap: 5px; font-family: var(--display); font-weight: 800; line-height: .95; font-variant-numeric: tabular-nums; }
.slot-time .hm { font-size: 2.65rem; letter-spacing: -.01em; }
.slot-time .ap { font-size: 1rem; font-weight: 700; color: var(--muted); }
.slot-info { grid-area: info; min-width: 0; }
.slot-info .what { font-weight: 700; }
.slot-info .with { color: var(--muted); font-size: .9rem; }
.slot-cta { grid-area: cta; display: grid; justify-items: end; gap: 6px; align-self: center; }
.slot-cta .price { font-weight: 700; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.spots { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.pips { display: flex; gap: 4px; flex-wrap: wrap; }
.pips i { width: 11px; height: 11px; border-radius: 50%; background: var(--hair); box-shadow: inset 0 0 0 1px var(--hair); }
.pips i.on { background: var(--brand); box-shadow: none; }
.bar { width: 120px; height: 8px; border-radius: 999px; background: var(--hair); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.spots .left { font-size: .86rem; font-weight: 700; }
.spots .left.few { color: var(--warn); }
.spots .left.full { color: var(--bad); }
.slot.is-mine { box-shadow: inset 0 0 0 2px var(--brand), var(--glass-shadow); }
.slot.is-past, .slot.is-cancelled { opacity: .62; }
.slot.is-cancelled .hm { text-decoration: line-through; text-decoration-thickness: 3px; }
.mine-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; color: var(--accent-ink); }
.empty { text-align: center; padding: 36px 16px; }
.empty h3 { margin-bottom: 6px; }

/* Announcements on home */
.news { display: grid; gap: 12px; }
@media (min-width: 760px) { .news { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.news article { border-radius: var(--r); padding: 18px; }
.news .kind { display: inline-block; font-size: .78rem; font-weight: 800; color: var(--accent-ink); margin-bottom: 6px; }
.news .closure .kind { color: var(--bad); }
.news h3 { font-family: var(--font); font-size: 1.08rem; font-weight: 800; line-height: 1.3; margin: 0 0 6px; letter-spacing: 0; }
.news p { margin: 0; color: var(--muted); font-size: .95rem; white-space: pre-line; }

/* Membership strip */
.member-card { border-radius: var(--r-lg); padding: 22px; display: grid; gap: 16px; align-items: center; }
@media (min-width: 760px) { .member-card { grid-template-columns: minmax(0, 1fr) auto; padding: 26px 30px; } }
.member-card h2 { margin: 0 0 4px; }
.member-card p { margin: 0; color: var(--muted); }
.big-price { font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; }
.big-price small { font-family: var(--font); font-size: .95rem; font-weight: 600; color: var(--muted); margin-left: 4px; }

/* ---------- Shop listing ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 22px 0 22px; }
.chip { text-decoration: none; padding: 9px 15px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-weight: 700; font-size: .92rem; }
.chip[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.search { flex: 1 1 100%; display: flex; }
@media (min-width: 720px) { .search { flex: 0 1 240px; margin-left: auto; } }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-bottom: 20px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.card .ph { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .35s ease; }
.card:hover .ph img { transform: scale(1.04); }
.card .name { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.card .meta { color: var(--muted); font-size: .85rem; }
.card .price-line { display: flex; gap: 8px; align-items: baseline; font-weight: 800; }
.card .price-line s { color: var(--muted); font-weight: 500; font-size: .88rem; }
.card.out .ph img { opacity: .5; }
.ribbon { position: absolute; left: 10px; top: 10px; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: .76rem; padding: 4px 10px; border-radius: 999px; }
.ribbon.sold { background: var(--ink); color: var(--bg); left: auto; right: 10px; }
.empty-ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--display); font-size: 3.5rem; font-weight: 800; color: var(--muted); opacity: .5; }

/* Price label (used on product page and cart) */
.tag { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.tag s { font-weight: 500; color: var(--muted); font-size: .9em; }
.tag.big { font-family: var(--display); font-size: 2.3rem; line-height: 1; }
.tag.big s { font-family: var(--font); font-size: 1rem; }
.tag.sold { color: var(--muted); }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 28px; padding: 24px 0 56px; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; } }
.gallery .main { aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--glass); border: 1px solid var(--glass-line); }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { flex: 0 0 66px; height: 66px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--glass); cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy h1 { margin-bottom: 10px; }
.opt { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.opt legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.opt legend span { font-weight: 500; color: var(--muted); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 46px; text-align: center; padding: 10px 14px; border: 1.5px solid var(--hair); border-radius: 12px; background: var(--field); font-weight: 700; cursor: pointer; }
.choice input:checked + span { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--accent-soft); }
.choice input:focus-visible + span { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.choice input:disabled + span { color: var(--muted); opacity: .55; text-decoration: line-through; cursor: not-allowed; }
.choices .dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; margin-right: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.stock-note { min-height: 1.5em; margin: 14px 0 0; font-weight: 700; }
.stock-note.low { color: var(--warn); }
.stock-note.out { color: var(--bad); }
.qty-row { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.qty-row input[type=number] { width: 92px; text-align: center; }
.custom-box { margin-top: 22px; border: 1.5px dashed var(--hair); border-radius: var(--r); padding: 16px; background: var(--field); }
.custom-box > label { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; cursor: pointer; }
.custom-box > label input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); }
.custom-fields { display: grid; gap: 12px; margin-top: 12px; }
details.chart, details.notify { margin-top: 18px; border-radius: var(--r); padding: 0 16px; background: var(--glass); border: 1px solid var(--glass-line); }
details.chart summary, details.notify summary { cursor: pointer; padding: 14px 0; font-weight: 700; }
details.notify[open] { padding-bottom: 14px; }
details.chart pre { font-family: var(--font); white-space: pre-wrap; margin: 0 0 14px; }
.chart-table { border-collapse: collapse; width: 100%; margin-bottom: 14px; font-size: .92rem; }
.chart-table th, .chart-table td { border-bottom: 1px solid var(--hair); padding: 8px; text-align: left; }
.preorder-box { margin-top: 16px; border-radius: var(--r); padding: 14px 16px; background: var(--accent-soft); }
.progress { height: 8px; background: var(--hair); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.progress span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.team-link { margin-top: 18px; font-size: .93rem; }
.team-link a { font-weight: 700; }

/* ---------- Cart, checkout, order ---------- */
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hair); align-items: start; }
.line:last-of-type { border-bottom: 0; }
.line img, .line .thumb { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: var(--field); }
.line .t { font-weight: 700; }
.line .custom { margin-top: 6px; font-size: .88rem; background: var(--field); border-radius: 10px; padding: 8px 10px; }
.line .qty { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.line .qty input { width: 72px; min-height: 40px; padding: 6px 8px; }
.sum { display: grid; gap: 8px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum .total { font-size: 1.25rem; font-weight: 800; border-top: 1px solid var(--hair); padding-top: 10px; }
.discount { color: var(--good); }
.radio-cards { display: grid; gap: 10px; }
.radio-card, .loc-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--hair); border-radius: 14px; background: var(--field); cursor: pointer; }
.radio-card:has(input:checked), .loc-card:has(input:checked) { border-color: var(--brand); background: var(--accent-soft); }
.radio-card input, .loc-card input { margin-top: 4px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.voucher-row { display: flex; gap: 8px; }
.voucher-row input { flex: 1; text-transform: uppercase; }
.order-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.steps li { font-size: .78rem; font-weight: 700; color: var(--muted); padding-top: 10px; border-top: 4px solid var(--hair); }
.steps li.on { color: var(--ink); border-color: var(--brand); }
.payto { display: grid; gap: 18px; }
@media (min-width: 640px) { .payto { grid-template-columns: 210px minmax(0, 1fr); align-items: start; } }
.payto .qr { background: #fff; border-radius: 14px; padding: 10px; }
.ref { font-family: var(--display); font-size: 2.1rem; font-weight: 800; letter-spacing: .02em; line-height: 1.1; }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0 8px 18px; border-left: 2px solid var(--hair); position: relative; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.entries { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entries th, .entries td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.entries th { font-size: .8rem; color: var(--muted); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { background: var(--field); border-radius: 999px; padding: 4px 10px; font-size: .88rem; font-weight: 600; }
.list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hair); text-decoration: none; }
.list-row:last-child { border-bottom: 0; }
.list-row .t { font-weight: 700; }

/* ---------- Booking pages ---------- */
.ticket { border-radius: var(--r-lg); overflow: hidden; }
.ticket-top { padding: 22px; display: grid; gap: 4px; background: var(--brand); color: var(--on-brand); }
.ticket-top .when { font-family: var(--display); font-size: clamp(2.4rem, 9vw, 3.4rem); font-weight: 800; line-height: 1; }
.ticket-top .where { font-weight: 600; opacity: .9; }
.ticket-top.is-wait { background: #33403B; color: #F2F6F4; }
.ticket-top.is-off { background: #5D6662; color: #F2F6F4; }
.ticket-body { padding: 20px 22px 22px; display: grid; gap: 16px; }
.status-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; }
.how { display: grid; gap: 10px; }
.how-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.how-row svg { width: 20px; height: 20px; margin-top: 2px; color: var(--accent-ink); }

/* ---------- Footer ---------- */
.foot { padding: 48px 0 28px; }
.foot-card { border-radius: var(--r-lg); padding: 24px; display: grid; gap: 26px; }
@media (min-width: 860px) { .foot-card { grid-template-columns: 1.2fr 1.6fr 1fr; padding: 30px; } }
.foot-brand { display: grid; gap: 10px; align-content: start; }
.foot-brand .name { font-family: var(--display); font-weight: 800; font-size: 1.8rem; line-height: 1; display: flex; gap: 10px; align-items: center; }
.foot-brand .name img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; }
.foot-brand p { margin: 0; color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 8px 12px; border-radius: 12px; background: var(--field); font-weight: 600; font-size: .9rem; }
.socials svg { width: 18px; height: 18px; }
.foot h4 { margin: 0 0 10px; font-size: .95rem; }
.foot-locs { display: grid; gap: 14px; }
@media (min-width: 560px) { .foot-locs { grid-template-columns: 1fr 1fr; } }
.foot-locs div { font-size: .92rem; color: var(--muted); }
.foot-locs strong { color: var(--ink); display: block; }
.foot-locs a { font-weight: 600; color: var(--accent-ink); }
.foot-links { display: grid; gap: 8px; align-content: start; }
.foot-links a { text-decoration: none; font-weight: 600; }
.foot-links a:hover { text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 16px; padding: 0 6px; font-size: .84rem; color: var(--muted); }
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; display: inline-flex; align-items: center; gap: 8px;
  background: #1F8F4E; color: #fff; text-decoration: none; font-weight: 700; padding: 12px 16px; border-radius: 999px;
  box-shadow: 0 10px 24px -8px rgba(20, 60, 40, .5);
}
.wa-float svg { width: 20px; height: 20px; }
body.has-tabbar .wa-float { bottom: 100px; padding: 12px; }
body.has-tabbar .wa-float span { display: none; }
@media (min-width: 860px) { body.has-tabbar .wa-float { bottom: 16px; padding: 12px 16px; } body.has-tabbar .wa-float span { display: inline; } }

/* ---------- v2.1: hero, account link, avatars ---------- */
.me-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; padding: 4px 10px 4px 4px; border-radius: 999px; }
.me-link:hover, .me-link[aria-current="page"] { background: var(--accent-soft); }
.me-label { display: none; }
@media (min-width: 860px) { .me-label { display: inline; } }
.av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; object-fit: cover;
  background: color-mix(in oklab, var(--brand) 22%, var(--field)); color: var(--accent-ink); font-weight: 800; font-size: .8rem; }
.av svg { width: 18px; height: 18px; }
.av.sm { width: 34px; height: 34px; }
.av.xl { width: 72px; height: 72px; font-size: 1.5rem; }

.hero-img {
  position: relative; margin-top: 18px; border-radius: 28px; overflow: hidden; min-height: clamp(300px, 46vh, 540px);
  display: grid; align-content: end; padding: clamp(20px, 4vw, 44px); color: #fff; isolation: isolate;
  background: radial-gradient(120% 90% at 85% 10%, color-mix(in oklab, var(--brand) 70%, #9fd1c1), transparent 60%),
              linear-gradient(160deg, color-mix(in oklab, var(--brand) 85%, black), #0b1512);
}
.hero-img.has-photo { background: var(--hero) center / cover no-repeat, #0b1512; }
.hero-img::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(4, 10, 8, .82), rgba(4, 10, 8, .25) 55%, rgba(4, 10, 8, .05)); }
.hero-copy { max-width: 640px; }
.hero-copy h1 { color: #fff; font-size: clamp(2.4rem, 8vw, 4.2rem); margin: 0; line-height: .95; letter-spacing: .005em; }
.hero-copy p { margin: 10px 0 0; font-size: 1.1rem; color: rgba(255, 255, 255, .86); max-width: 34em; }
.hero-copy .actions { margin-top: 20px; }
.glass-btn { background: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.hero-rates { position: absolute; top: clamp(14px, 3vw, 26px); right: clamp(14px, 3vw, 26px); display: flex; gap: 8px; }
.hero-rates .rate { background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; border: 1px solid rgba(255, 255, 255, .28); min-width: 0; padding: 8px 14px; }
.hero-rates .rate span { color: rgba(255, 255, 255, .8); }
.hero-rates .rate b { font-size: 1.45rem; }
.hero-rates .rate.member { background: var(--brand); border-color: transparent; }

.wod-teaser { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; margin-top: 14px; padding: 14px 16px; border-radius: 18px; text-decoration: none; }
@media (min-width: 640px) { .wod-teaser { grid-template-columns: auto minmax(0, 1fr) auto; } }
.wt-main { display: grid; min-width: 0; }
.wt-go { grid-column: 2; font-weight: 700; font-size: .9rem; color: var(--accent-ink); }
@media (min-width: 640px) { .wt-go { grid-column: auto; } }
.clamp1 { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Category badges: HYROX gets its own colour */
.cat { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 8px; font-weight: 800; font-size: .74rem; letter-spacing: .02em; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.cat-hyrox { background: #F5D90A; color: #1B1A05; }
.cat-strength { background: var(--field); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }

/* ---------- WOD page ---------- */
.wod-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 20px; margin-bottom: 18px; }
.row-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wod { border-radius: 24px; padding: clamp(18px, 3vw, 28px); margin-bottom: 20px; }
.wod-top { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.wod-title { font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 4px 0 12px; }
.wod-body { display: grid; gap: 18px; }
@media (min-width: 860px) { .wod-body.has-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.board-photo, .wod .board { display: block; }
a.board img { width: 100%; border-radius: 16px; background: var(--field); max-height: 560px; object-fit: contain; }
.workout { white-space: pre-line; font-size: 1.08rem; line-height: 1.6; font-weight: 500; }
.part { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hair); }
.part-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; }
.part-head h3 { margin: 0; font-size: 1.4rem; }
.log-cta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); font-weight: 600; }
.my-score { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); margin-bottom: 12px; }
.my-score .big { font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.score-form { display: grid; gap: 14px; max-width: 520px; }
.seg-toggle { display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px; background: var(--field); box-shadow: inset 0 0 0 1px var(--hair); justify-self: start; }
.seg-toggle label { position: relative; }
.seg-toggle input { position: absolute; opacity: 0; inset: 0; }
.seg-toggle span { display: inline-block; padding: 8px 18px; border-radius: 10px; font-weight: 800; cursor: pointer; }
.seg-toggle input:checked + span { background: var(--ink); color: var(--bg); }
.seg-toggle input:focus-visible + span { outline: 3px solid var(--accent-ink); }
.score-inputs { display: flex; gap: 10px; align-items: flex-end; }
.score-inputs label.f { flex: 1; max-width: 140px; }
.score-inputs input { font-family: var(--display); font-size: 1.6rem; font-weight: 800; text-align: center; min-height: 58px; }
.score-inputs .colon { font-family: var(--display); font-size: 2rem; font-weight: 800; padding-bottom: 8px; }
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin: 22px 0 6px; }
.board-head h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1rem; }
.board-head h4 svg { width: 20px; height: 20px; color: var(--accent-ink); }
.chips-nav { display: inline-flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--field); box-shadow: inset 0 0 0 1px var(--hair); }
.chips-nav a { text-decoration: none; padding: 5px 11px; border-radius: 9px; font-weight: 700; font-size: .84rem; color: var(--muted); }
.chips-nav a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.board-div { margin: 12px 0 2px; font-size: .78rem; font-weight: 800; color: var(--muted); }
ol.board { list-style: none; margin: 0; padding: 0; }
ol.board li { display: grid; grid-template-columns: 30px 34px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 6px; border-bottom: 1px solid var(--hair); }
ol.board li:last-child { border-bottom: 0; }
ol.board li.me { background: var(--accent-soft); border-radius: 12px; }
ol.board .rank { font-family: var(--display); font-weight: 800; font-size: 1.2rem; text-align: center; color: var(--muted); }
ol.board .top-1 .rank, ol.board .top-2 .rank, ol.board .top-3 .rank { color: var(--ink); }
ol.board .top-1 .av { box-shadow: 0 0 0 2px #E2B53B; }
ol.board .top-2 .av { box-shadow: 0 0 0 2px #B9C0C4; }
ol.board .top-3 .av { box-shadow: 0 0 0 2px #C88A5A; }
ol.board .who { display: grid; min-width: 0; }
ol.board .who strong, ol.board .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ol.board .score { font-family: var(--display); font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
ol.board form { margin: 0; }
.bump { appearance: none; border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; padding: 6px 8px; border-radius: 10px; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; min-width: 44px; justify-content: center; }
.bump svg { width: 20px; height: 20px; }
.bump:hover { background: var(--accent-soft); }
.bump.on { color: var(--accent-ink); background: var(--accent-soft); }
.bump.static { cursor: default; }
.comments { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--hair); }
.comments h3 { font-size: 1.3rem; }
.comment { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 10px 0; }
.comment.coach .av { background: var(--brand); color: var(--on-brand); }
.comment form { margin: 0; }
.comment-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-top: 8px; }
.comment-form textarea { min-height: 52px; }
.boards { display: grid; gap: 16px; }
@media (min-width: 900px) { .boards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Me ---------- */
.me-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 16px; align-items: center; }
@media (min-width: 720px) { .me-head { grid-template-columns: auto minmax(0, 1fr) auto; } }
.me-id .row-links { margin-top: 6px; }
.me-actions { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (min-width: 720px) { .me-actions { grid-column: auto; } }
.me-actions form { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tile { border-radius: 18px; padding: 14px 16px; display: grid; text-decoration: none; }
.tile b { font-family: var(--display); font-size: 2.3rem; line-height: 1; font-weight: 800; }
.tile span { color: var(--muted); font-weight: 600; font-size: .86rem; margin-top: 4px; }
.milestone { border-radius: 16px; padding: 12px 16px; display: grid; gap: 8px; }
.milestone .bar { width: 100%; }
.pr { font-family: var(--display); font-weight: 800; font-size: 1.35rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticket-top .when svg { width: .8em; height: .8em; vertical-align: -.05em; }
details.panel > summary { cursor: pointer; }

.member-pass {
  border-radius: 26px; padding: 22px; color: #fff; display: grid; gap: 16px; position: relative; overflow: hidden;
  background: radial-gradient(120% 80% at 100% 0%, color-mix(in oklab, var(--brand) 55%, #a7e3cf), transparent 55%), linear-gradient(150deg, color-mix(in oklab, var(--brand) 90%, black), #0a1411);
  box-shadow: 0 24px 48px -24px color-mix(in oklab, var(--brand) 70%, black);
}
.pass-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pass-shop { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.pass-shop img { width: 32px; height: 32px; border-radius: 8px; background: #fff; object-fit: contain; }
.pass-name { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1; }
.pass-meta { display: flex; gap: 28px; }
.pass-meta span { display: block; font-size: .78rem; color: rgba(255, 255, 255, .75); font-weight: 600; }
.pass-meta b { font-size: 1.05rem; }
.pass-qr { background: #fff; border-radius: 16px; padding: 12px; width: 190px; justify-self: start; }
.pass-qr svg { display: block; width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print {
  .top, .foot, .wa-float, .tabbar, .no-print { display: none !important; }
  body { background: #fff; color: #000; } body::before { display: none; }
  .panel, .glass { background: #fff; box-shadow: none; border: 1px solid #ccc; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- v2.2: app, badges, challenges, charts, splits, waiver ---------- */
html.is-app .hide-in-app { display: none !important; }
.tiny { font-size: .74rem; }
.bar.thin { height: 5px; width: 100%; display: block; }
.bar.big { height: 12px; width: 100%; display: block; }
.action-notice { display: flex; gap: 12px; align-items: center; text-decoration: none; background: var(--warn-soft); }
.action-notice > svg { width: 26px; height: 26px; flex: none; color: var(--warn); }
.action-notice span { display: block; }
.good-notice { background: var(--good-soft); display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.good-notice svg { width: 20px; height: 20px; color: var(--good); }

/* App */
.app-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; border-radius: 24px; padding: clamp(18px, 3vw, 26px); }
.app-icon { border-radius: 20px; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45); }
.how-steps h3 { font-size: 1.1rem; margin: 14px 0 6px; }
.how-steps ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.kbd { display: inline-block; padding: 0 6px; border-radius: 6px; background: var(--field); box-shadow: inset 0 0 0 1px var(--hair); font-size: .85em; }
.push-box { display: grid; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); }
.app-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 18px; text-decoration: none; }
.app-card img { border-radius: 12px; }
.app-card span span { display: block; }

/* Badges */
.medal {
  --m1: #D49A5E; --m2: #8A5426;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff;
  background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--m1) 70%, white), var(--m1) 45%, var(--m2));
  box-shadow: inset 0 0 0 3px color-mix(in oklab, var(--m2) 80%, black), inset 0 0 0 6px rgba(255, 255, 255, .28), 0 6px 14px -8px rgba(0, 0, 0, .5);
}
.medal svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.medal.t2 { --m1: #C5CED6; --m2: #6F7B86; }
.medal.t3 { --m1: #F2C94C; --m2: #A0740C; }
.medal.t4 { --m1: #8FE0CB; --m2: #1F7E68; }
.medal.sm { width: 34px; height: 34px; box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--m2) 80%, black); }
.medal.sm svg { width: 17px; height: 17px; }
.locked .medal { filter: grayscale(1); opacity: .38; }
.badge-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.badge-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: 16px; }
.badge-card.earned { background: var(--field); }
.badge-card.is-new { box-shadow: inset 0 0 0 2px var(--good); }
.badge-txt { display: grid; gap: 2px; }
.badge-txt .bar { margin-top: 4px; }
.badge-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.badge-mini { display: grid; justify-items: center; gap: 6px; text-align: center; text-decoration: none; padding: 8px 4px; border-radius: 14px; }
.badge-mini .small { font-weight: 700; line-height: 1.2; }
.badge-mini.is-new { background: var(--good-soft); }
.badge-mini .bar { width: 70%; }

/* Challenges */
.ch-strip { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 16px; text-decoration: none; margin-bottom: 18px; }
.ch-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ch-card { display: grid; gap: 8px; padding: 18px; border-radius: 22px; text-decoration: none; }
.ch-card h2 { margin: 2px 0 0; font-size: 1.6rem; }
.ch-target { font-weight: 700; color: var(--muted); }
.ch-target b { font-family: var(--display); font-size: 2rem; color: var(--ink); font-weight: 800; }
.ch-target.big b { font-size: 3.2rem; line-height: 1; }
.ch-go { font-weight: 700; color: var(--accent-ink); font-size: .9rem; }
.ch-hero.is-done { box-shadow: inset 0 0 0 2px var(--good); }
.ch-progress { display: grid; gap: 8px; margin-top: 16px; }
.ch-n { font-family: var(--display); font-size: 2rem; font-weight: 800; }
.ch-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 16px; }
@media (max-width: 480px) { .ch-add { grid-template-columns: 1fr 1fr; } .ch-add .btn { grid-column: 1 / -1; } }
ol.ch-board li { grid-template-columns: 30px 34px minmax(0, 1fr) auto auto; }
ol.ch-board .who .bar { margin-top: 4px; }
h2 svg { width: .8em; height: .8em; vertical-align: -.05em; }

/* Records and charts */
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles.three .tile b { font-size: clamp(1.4rem, 5vw, 2.3rem); }
.chart-panel { overflow: hidden; }
svg.chart { width: 100%; max-width: 720px; height: auto; display: block; margin-top: 6px; }
svg.chart .g { stroke: var(--hair); stroke-width: 1; }
svg.chart .lbl { fill: var(--muted); font: 600 11px var(--font); }
svg.chart .line { fill: none; stroke: color-mix(in oklab, var(--brand) 45%, transparent); stroke-width: 2; stroke-dasharray: 4 4; }
svg.chart .best { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linejoin: round; }
svg.chart .dot { fill: var(--glass-2); stroke: var(--brand); stroke-width: 2.5; }
svg.chart .dot.pr { fill: var(--brand); stroke: #fff; }
.rec-row { text-decoration: none; display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; }
svg.spark { display: block; }
svg.spark path { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.spark circle { fill: var(--brand); }
@media (max-width: 420px) { svg.spark { width: 60px; } }
.pill.pr-pill { background: var(--brand); color: var(--on-brand); padding: 1px 7px; font-size: .7rem; vertical-align: .1em; }
.counts { display: inline-flex; align-items: center; gap: 5px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.counts svg { width: 16px; height: 16px; color: var(--accent-ink); }

/* Splits */
.splits-in { border-radius: 16px; background: var(--field); box-shadow: inset 0 0 0 1px var(--hair); padding: 10px 14px; }
.splits-in summary { cursor: pointer; font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.splits-in summary svg { width: 18px; height: 18px; color: var(--accent-ink); }
.split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
@media (min-width: 560px) { .split-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.split-grid label.f { gap: 2px; }
.split-grid label.f span { font-size: .78rem; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.split-grid label.station span { color: var(--ink); }
.split-grid input { min-height: 42px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.split-report { margin: 4px 0 16px; padding: 14px 16px; border-radius: 16px; background: var(--field); }
.split-sum { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 8px; }
.split-sum span { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); }
.split-sum b { font-family: var(--display); font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.split-legend { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.split-legend .k { width: 12px; height: 8px; border-radius: 4px; display: inline-block; margin-left: 6px; }
.split-legend .k.mine { background: var(--brand); margin-left: 0; }
.split-legend .k.med { background: var(--hair); box-shadow: inset 0 0 0 1px var(--muted); }
.split-rows { display: grid; gap: 6px; }
.split-row { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .86rem; }
.split-row .nm { font-weight: 600; line-height: 1.2; }
.split-row.run .nm { color: var(--muted); }
.split-row .bars { display: grid; gap: 2px; }
.split-row .b { display: block; height: 8px; border-radius: 4px; }
.split-row .b.mine { background: var(--brand); }
.split-row.run .b.mine { background: color-mix(in oklab, var(--brand) 55%, var(--muted)); }
.split-row .b.med { background: var(--hair); height: 5px; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--muted) 50%, transparent); }
.split-row .tm { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.split-row em { font-style: normal; font-size: .76rem; font-weight: 700; }
.split-row em.up { color: var(--good); }
.split-row em.down { color: var(--bad); }
.station-best { margin: 0 0 12px; }
.station-best summary { cursor: pointer; font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.station-best summary svg { width: 18px; height: 18px; color: var(--accent-ink); }
.t-mini { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .88rem; }
.t-mini th { text-align: left; font-size: .76rem; color: var(--muted); padding: 4px 6px; }
.t-mini td { padding: 6px; border-top: 1px solid var(--hair); font-variant-numeric: tabular-nums; }
.t-mini tr.run td:first-child { color: var(--muted); }

/* Waiver */
.waiver-page { max-width: 720px; }
.waiver-text { max-height: 340px; overflow: auto; padding: 14px 16px; border-radius: 14px; background: var(--field); box-shadow: inset 0 0 0 1px var(--hair); white-space: pre-line; font-size: .93rem; }
section.waiver-text { max-height: none; }
.qs { display: grid; gap: 8px; }
.q { border: 0; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--field); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; }
.q legend { float: left; padding: 0; font-weight: 600; font-size: .95rem; display: flex; gap: 10px; }
.q.missing { box-shadow: inset 0 0 0 2px var(--bad); }
.qn { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: .8rem; font-weight: 800; }
@media (max-width: 520px) { .q { grid-template-columns: 1fr; } .q .seg-toggle { justify-self: end; } }
.sign-input { font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: 1.5rem !important; }
.wide-sm { min-width: 220px; }
@media (max-width: 560px) {
  .badge-grid:not(.list) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .badge-grid:not(.list) .badge-card { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 12px 8px; }
  .badge-grid:not(.list) .badge-txt { justify-items: center; width: 100%; }
}
.check input { flex: none; }
@media (max-width: 560px) { .app-hero { grid-template-columns: 1fr; } .app-icon { width: 64px; height: 64px; border-radius: 16px; } }

/* ---------- v2.3: friends, feed, share cards, reactions, profiles ---------- */
a.plain { text-decoration: none; color: inherit; }
a.plain:hover { text-decoration: underline; }
.me-check { padding: 12px 14px; border-radius: 14px; background: var(--field); }
.friends-box { border-radius: 16px; background: var(--field); box-shadow: inset 0 0 0 1px var(--hair); padding: 12px 14px; }
.friends-box summary { cursor: pointer; font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.friends-box summary svg { width: 18px; height: 18px; color: var(--accent-ink); }
.friend-row { margin-bottom: 10px; }
.friend-line .row-links { flex-wrap: nowrap; }
.policy-box summary { cursor: pointer; display: grid; gap: 2px; }
#friends h2 svg { width: .8em; height: .8em; }

.day-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.day-chips::-webkit-scrollbar { display: none; }
.day-chips a { flex: none; text-decoration: none; padding: 7px 12px; border-radius: 12px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); font-weight: 700; font-size: .86rem; white-space: nowrap; }
.day-chips a span { color: var(--muted); font-weight: 600; margin-left: 2px; }
.day-chips a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.day-chips a[aria-current="page"] span { color: inherit; opacity: .7; }
.feed-day { margin-top: 6px; }
.feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; border-radius: 18px; overflow: hidden; }
@media (min-width: 720px) { .feed-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } }
.tile-post { position: relative; display: block; aspect-ratio: 1; background: var(--field); overflow: hidden; }
.tile-post img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.tile-post:hover img { transform: scale(1.03); }
.vid-mark { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; font-size: .7rem; }
.tp-meta { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; gap: 6px; padding: 18px 8px 6px; color: #fff; font-size: .74rem; font-weight: 700; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.tp-meta span { display: inline-flex; align-items: center; gap: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tp-meta svg { width: 13px; height: 13px; }
@media (max-width: 480px) { .tp-meta span:first-child { display: none; } .tp-meta { justify-content: flex-end; } }
.post-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 104px; gap: 6px; overflow-x: auto; }
.post-strip .tile-post { border-radius: 12px; }

.drop { display: grid; place-items: center; min-height: 240px; border-radius: 18px; border: 2px dashed var(--hair); background: var(--field); cursor: pointer; position: relative; overflow: hidden; text-align: center; padding: 16px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-empty { display: grid; gap: 6px; justify-items: center; pointer-events: none; }
.drop-empty svg { width: 40px; height: 40px; color: var(--accent-ink); }
.drop img, .drop video { max-height: 420px; width: auto; max-width: 100%; border-radius: 12px; pointer-events: none; }

.post-page { max-width: 640px; }
.post { border-radius: 24px; padding: 14px; margin-top: 8px; display: grid; gap: 10px; }
.post-head { display: flex; gap: 10px; align-items: center; padding: 2px 4px; }
.post-media { border-radius: 16px; overflow: hidden; background: #000; display: grid; place-items: center; max-height: 80vh; }
.post-media img, .post-media video { width: 100%; height: 100%; object-fit: contain; max-height: 80vh; }
.post-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.post-actions form { margin: 0; }
.post-actions .spacer { flex: 1; }
.post-actions .bump { text-decoration: none; }
.post-caption { margin: 0 4px; }
.post-scores { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 4px; }
.post .comments { margin-top: 4px; }

.share-dialog { border: 0; border-radius: 24px; padding: 18px; width: min(440px, calc(100vw - 32px)); background: var(--glass-2); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.share-dialog::backdrop { background: rgba(4, 10, 8, .55); }
.sd-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sd-preview { display: grid; place-items: center; min-height: 200px; border-radius: 16px; background: var(--field); overflow: hidden; margin-bottom: 12px; }
.sd-preview img { width: 100%; height: auto; display: block; }
.sd-actions { margin-bottom: 10px; }

.react-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.react-row form { margin: 0; }
.react { appearance: none; border: 0; font: inherit; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--field); box-shadow: inset 0 0 0 1px var(--hair); font-weight: 700; font-size: .85rem; cursor: pointer; color: var(--ink); }
.react .emo { font-size: 1.05rem; line-height: 1; }
.react b { font-weight: 800; color: var(--accent-ink); }
.react.on { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.react.static { cursor: default; }
.react:hover:not(.static) { background: var(--accent-soft); }
.react.share-btn { margin-left: auto; }
.react.share-btn svg { width: 16px; height: 16px; }
@media (max-width: 520px) { .react.share-btn { margin-left: 0; } }
.wod-posts { margin-top: 6px; }
.badge-row.wide { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }

/* Manuals */
.manual { display: grid; gap: 20px; }
@media (min-width: 960px) { .manual { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } .manual-toc { position: sticky; top: 90px; } }
.mt-card { display: grid; gap: 8px; padding: 16px; border-radius: 18px; background: var(--glass, rgba(127,127,127,.08)); box-shadow: inset 0 0 0 1px var(--hair); }
.mt-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-actions svg { width: 16px; height: 16px; }
.manual-toc nav { display: grid; gap: 2px; margin-top: 6px; max-height: 60vh; overflow: auto; }
.manual-toc nav a { text-decoration: none; padding: 5px 8px; border-radius: 8px; font-size: .9rem; font-weight: 600; }
.manual-toc nav a:hover { background: var(--accent-soft, rgba(127,127,127,.12)); }
@media (max-width: 959px) { .manual-toc nav { display: none; } }
.manual-body { max-width: 760px; line-height: 1.65; }
.manual-body h1 { margin-bottom: 18px; }
.manual-body h2 { margin: 36px 0 10px; padding-top: 12px; border-top: 1px solid var(--hair); scroll-margin-top: 90px; }
.manual-body h3 { margin: 22px 0 6px; font-size: 1.3rem; scroll-margin-top: 90px; }
.manual-body p, .manual-body li { font-size: 1rem; }
.manual-body ul, .manual-body ol { padding-left: 22px; display: grid; gap: 6px; }
.manual-body .tip { padding: 12px 14px; border-radius: 12px; background: var(--accent-soft, rgba(31,111,92,.12)); border-left: 4px solid var(--brand); margin: 12px 0; }
.whats-new { padding: 16px 18px; border-radius: 18px; background: var(--accent-soft, rgba(31,111,92,.12)); }
.whats-new h2 { margin: 0 0 8px; border: 0; padding: 0; }
.whats-new details summary { cursor: pointer; font-weight: 700; margin-top: 8px; }

/* Dropdown lists: solid colours so options stay readable in dark mode */
select option, select optgroup { background-color: #FFFFFF; color: #0F1D18; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) select option, :root:not([data-theme="light"]) select optgroup { background-color: #16231E; color: #E5EEEA; }
}
:root[data-theme="dark"] select option, :root[data-theme="dark"] select optgroup { background-color: #16231E; color: #E5EEEA; }

/* Header icons sit exactly in the middle of their buttons */
.icon-btn svg { display: block; }
.icon-btn > span:not(.count) { line-height: 0; }

/* Footer on phones: brand across the top, then locations and links side by side */
@media (max-width: 859px) {
  .foot-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 18px; padding: 20px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-locs { grid-template-columns: 1fr; gap: 12px; }
  .foot-locs div { font-size: .86rem; }
  .foot-links { gap: 6px; font-size: .92rem; }
  .foot-card > div:empty { display: none; }
  .foot-card > div:empty + .foot-links { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}

/* Who's going */
.going { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-width: 0; }
.going .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-stack { display: inline-flex; flex: none; }
.av-stack .av { width: 28px; height: 28px; font-size: .58rem; letter-spacing: -.02em; margin-left: -4px; box-shadow: 0 0 0 2px var(--glass-2); position: relative; }
.av-stack .av:first-child { margin-left: 0; }
.going-list { display: flex; flex-wrap: wrap; gap: 8px; }
.going-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--field); text-decoration: none; font-weight: 600; font-size: .9rem; }
.going-chip .av { width: 28px; height: 28px; font-size: .66rem; }
.av-stack span.av { background: color-mix(in oklab, var(--brand) 28%, var(--bg)); color: var(--ink); }
