/* ===== OnTrack theme (brand guide v1.0) — cream, grape, hot pink, tangerine, lime, violet ===== */
:root {
  --cream: #fff3e2; --grape: #2b1546; --pink: #ff2e88; --tangerine: #ffb830; --lime: #b8f542; --violet: #7a3fb8; --plum: #5a3f78;
  --bg: var(--cream); --surface: #fffaf2; --surface-2: #ffe8c9; --line: #e9d6bf;
  --text: var(--grape); --muted: var(--plum); --accent: var(--pink); --accent-ink: var(--grape);
  --good: #4f9a1e; --warn: #b8760a; --bad: #d1206b; --skeleton: var(--cream); --video-bg: var(--violet);
  /* Ink that must stay readable when the theme flips. --grape/--violet/--plum are literal
     brand colours and become the *background* in dark mode, so text can never name them directly. */
  --ink: var(--text); --ink-soft: var(--muted); --accent-2: var(--violet);
  --hero-1: var(--text); --hero-2: var(--pink); --hero-3: var(--violet);
  --radius: 26px; --shadow: none;
  --fig-skin: #f6e3c8; --fig-line: #c9a878; --fig-muscle: #e7cda9; --fig-far: #f0e3ce; --fig-farline: #dcc6a4;
  --font-display: "Righteous", "Arial Rounded MT Bold", sans-serif;
  --font-body: "Nunito", "Trebuchet MS", sans-serif;
  --font-mono: "Nunito", "Trebuchet MS", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fig-skin: #46295f; --fig-line: #7658a0; --fig-muscle: #55367a; --fig-far: #38215a; --fig-farline: #4d3178;
    --bg: var(--grape); --surface: #3a2260; --surface-2: #4a2f78; --line: #5b3f8a;
    --text: var(--cream); --muted: #e3d3f2; --accent: var(--pink); --accent-ink: var(--grape);
    --good: var(--lime); --warn: var(--tangerine); --bad: var(--pink); --shadow: none;
    --accent-2: var(--tangerine); --hero-3: var(--tangerine);
  }
}
:root[data-theme="dark"] {
    --fig-skin: #46295f; --fig-line: #7658a0; --fig-muscle: #55367a; --fig-far: #38215a; --fig-farline: #4d3178;
  --bg: var(--grape); --surface: #3a2260; --surface-2: #4a2f78; --line: #5b3f8a;
  --text: var(--cream); --muted: #e3d3f2; --accent: var(--pink); --accent-ink: var(--grape);
  --good: var(--lime); --warn: var(--tangerine); --bad: var(--pink); --shadow: none;
  --accent-2: var(--tangerine); --hero-3: var(--tangerine);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 17px; font-weight: 500; line-height: 1.5; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
h1, h2 { font-family: var(--font-display); font-weight: 400; text-wrap: balance; margin: 0; letter-spacing: 0; }
h1 { font-size: 2.1rem; line-height: 1.0; }
h2 { font-size: 1.6rem; line-height: 1.05; }
h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 900; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.screen { display: none; min-height: 100%; }
.screen.active { display: block; }
.wrap { max-width: 720px; margin: 0 auto; padding-inline: 20px; padding-block: 20px 48px; }
.eyebrow { font-family: var(--font-body); font-size: 0.78rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; font-weight: 600; background: var(--surface-2); color: var(--text); transition: transform .08s ease, background .15s ease; min-height: 44px; }
.btn:active { transform: scale(0.97); }
a.btn { text-decoration: none; }
.btn { font-weight: 900; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--pink); color: var(--grape); }
.btn.secondary { background: var(--tangerine); color: var(--grape); }
.btn.ghost { background: var(--surface); }
.btn.danger { background: var(--pink); color: var(--grape); }
.btn.icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; box-shadow: none; border: 0; }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* ---------- Home ---------- */
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 6px; }
.brand .logo { height: 34px; width: auto; display: block; color: var(--grape); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo { color: var(--cream); } }
:root[data-theme="dark"] .brand .logo { color: var(--cream); }
.group { margin-top: 22px; }
.group h2 { margin-bottom: 8px; }
.ex-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.ex-card { text-align: left; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .15s; }
.ex-card:hover { border-color: var(--accent); }
.ex-card .glyph { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.3rem; }
.ex-card .name { font-weight: 600; }
.ex-card .sum { color: var(--muted); font-size: 0.88rem; }
.tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tag.front { color: var(--accent); }
.history-list { display: flex; flex-direction: column; gap: 8px; }
.hist { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.hist .score { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 600; }
.hist .when { color: var(--muted); font-size: 0.85rem; }

/* ---------- Setup ---------- */
.setup-head { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.cam-diagram { width: 100%; max-width: 420px; height: auto; display: block; margin-top: 10px; }
.cam-diagram .ink { stroke: var(--text); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cam-diagram .cam { fill: var(--accent); }
.cam-diagram .floor { stroke: var(--line); stroke-width: 2; }
.cam-diagram .ink.far { stroke: var(--muted); opacity: .45; stroke-width: 2.5; }
.cam-diagram text { font-family: var(--font-mono); font-size: 11px; fill: var(--muted); }
.panel { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.panel h3 { margin-bottom: 6px; }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.9rem; min-height: 40px; }
.chip { font-weight: 800; border: 2px solid var(--line); background: var(--surface); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.checklist { display: grid; gap: 6px; padding-left: 0; list-style: none; margin: 0; }
.checklist li { display: flex; gap: 8px; align-items: flex-start; }
.checklist li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.settings-grid { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; }
select { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); min-height: 40px; }

.guide-region { margin-top: 12px; }
.guide-name { font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 6px; }
.guide-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.guide-points li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: .93rem; line-height: 1.45; max-width: 68ch; }
.guide-points .mark { color: var(--accent); font-size: .8rem; line-height: 1.7; }
.guide-points li.self .mark { color: var(--muted); }
/* ---------- Live ---------- */
#screen-live { background: var(--violet) repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 6px, transparent 6px 18px); color: var(--cream); position: fixed; inset: 0; z-index: 5; }
#screen-live.active { display: block; }
.stage { position: absolute; inset: 0; }
.stage video, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.stage.mirror video, .stage.mirror canvas { transform: scaleX(-1); }
.hud { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom)); }
.hud > * { pointer-events: auto; }
.hud-top { display: flex; align-items: center; gap: 10px; }
.hud-top .title { font-family: var(--font-body); font-weight: 900; font-size: 1.05rem; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.hud .btn { background: rgba(43, 21, 70, 0.85); color: var(--cream); backdrop-filter: blur(8px); border: 0; box-shadow: none; }
.hud .btn.danger { background: var(--pink); color: var(--grape); }
.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: rgba(24,32,39,.75); backdrop-filter: blur(8px); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.ok .dot { background: var(--lime); } .status.warn .dot { background: #FFB454; } .status.bad .dot { background: #FF5C6C; }
.hud-side { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rom { width: 14px; height: 38vh; max-height: 300px; border-radius: 7px; background: rgba(24,32,39,.6); position: relative; overflow: hidden; }
.rom .fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0%; background: var(--lime); border-radius: 7px; transition: height .08s linear, background .2s; }
.rom .mark { position: absolute; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.8); }
.rom-label { font-family: var(--font-mono); font-size: 0.68rem; color: #B7C4CC; text-transform: uppercase; letter-spacing: .08em; writing-mode: vertical-rl; }
.hud-bottom { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.readout { display: flex; align-items: baseline; gap: 10px; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.readout .val { font-family: var(--font-mono); font-size: clamp(2rem, 8vw, 3.4rem); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: #E8EEF2; }
.readout .tgt { font-family: var(--font-mono); font-size: clamp(.9rem, 3vw, 1.2rem); color: #B7C4CC; }
.readout.good .val { color: var(--lime); } .readout.bad .val { color: var(--pink); }
.cue { font-size: clamp(1.15rem, 4.5vw, 1.8rem); padding: 14px 22px; }
.counter { display: flex; align-items: baseline; gap: 10px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.counter .big { font-family: var(--font-display); font-size: clamp(4rem, 18vw, 7.5rem); font-weight: 400; line-height: 1; color: var(--lime); font-variant-numeric: tabular-nums; }
.counter .of { font-family: var(--font-body); font-weight: 900; font-size: 1.2rem; color: var(--cream); opacity: .85; }
.counter .phase { margin-left: auto; font-weight: 900; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--cream); opacity: .85; }
.cue { align-self: center; max-width: 92%; padding: 12px 18px; border-radius: 999px; background: var(--pink); color: var(--grape); font-family: var(--font-body); font-weight: 900; font-size: 1.15rem; text-align: center; opacity: 0; transform: translateY(6px) rotate(-2deg); transition: opacity .2s, transform .2s; }
.cue.show { opacity: 1; transform: rotate(-2deg); }
.cue.good { background: var(--lime); color: var(--grape); }
.cue.info { background: var(--cream); color: var(--grape); }
.hud-actions { display: flex; gap: 10px; justify-content: center; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(43, 21, 70, 0.7); text-align: center; padding: 24px; z-index: 1; }
/* The exit / mute / flip row stays above any overlay, so there is always a way out of a stuck camera. */
.hud-top { position: relative; z-index: 2; }
.overlay[hidden] { display: none; }
.overlay .card { max-width: 420px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.overlay .count { font-family: var(--font-display); font-size: 7rem; line-height: 1; color: var(--lime); }
.overlay h2 { color: var(--ink); }
.overlay p { color: var(--ink-soft); }
.check-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.check { font-family: var(--font-mono); font-size: 0.75rem; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: #B7C4CC; }
.check.ok { background: rgba(46,211,165,.18); color: #2ED3A5; }
.check.bad { background: rgba(255,92,108,.18); color: #FF9AA5; }
.progress { width: 100%; max-width: 320px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.progress .bar { height: 100%; width: 0%; background: var(--lime); transition: width .2s; }
.loading-note { font-family: var(--font-mono); font-size: 0.78rem; color: #8FA0AC; }

/* ---------- Review ---------- */
.review-head { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
.ring { width: 120px; height: 120px; }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: var(--surface-2); }
.ring .val { stroke: var(--accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .8s ease; }
.ring text { font-family: var(--font-mono); font-size: 30px; font-weight: 600; fill: var(--text); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat { padding: 12px 14px; border-radius: 18px; background: var(--surface-2); border: 2px solid var(--grape); }
.stat .v { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat .k { color: var(--muted); font-size: 0.8rem; }
.repstrip { display: flex; gap: 4px; align-items: flex-end; height: 72px; padding: 8px 0; }
.repstrip .bar { flex: 1; min-width: 6px; max-width: 28px; border-radius: 4px 4px 2px 2px; background: var(--good); position: relative; }
.repstrip .bar.partial { background: var(--warn); }
.repstrip .bar.fault { background: var(--bad); }
.legend { display: flex; gap: 14px; font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.fault-list { display: flex; flex-direction: column; gap: 8px; }
.fault { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--warn); }
.fault .n { font-family: var(--font-mono); font-weight: 600; min-width: 2.2rem; }
.fault .l { font-weight: 600; }
.fault .t { color: var(--muted); font-size: 0.9rem; }
.trace { width: 100%; height: 90px; display: block; }
.trace path { fill: none; stroke: var(--accent); stroke-width: 2; }
.trace line { stroke: var(--line); stroke-dasharray: 3 3; }
.empty { color: var(--muted); font-style: italic; }
.setup-head .tag { justify-self: start; }
@media (max-width: 480px) { .review-head { grid-template-columns: 96px 1fr; } .ring { width: 96px; height: 96px; } .setup-head { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ===================== Portal ===================== */
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 20px 8px; border-bottom: 0; background: var(--bg); position: sticky; top: 0; z-index: 30; }
.topbar.scrolled { border-bottom: 2px solid var(--line); }
.topnav { order: 10; flex: 1 1 100%; }
@media (min-width: 720px) { .topnav { order: 0; flex: 0 1 auto; } }
.topbar::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: linear-gradient(to bottom, var(--pink) 0 3px, var(--tangerine) 3px 6px, var(--lime) 6px 9px); }
.topbar-old { background: var(--surface); position: sticky; top: 0; z-index: 3; flex-wrap: wrap; }
.topbar .brand { text-decoration: none; color: inherit; }
.topnav { display: flex; gap: 4px; flex-wrap: wrap; }
.topnav a { text-decoration: none; color: var(--ink); padding: 8px 14px; border-radius: 999px; font-weight: 900; }
.topnav a.active, .topnav a:hover { background: var(--surface-2); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.btn.tiny { min-height: 30px; padding: 4px 10px; font-size: .8rem; }
main.wrap { padding-block: 24px 64px; max-width: 900px; }
#coach { position: fixed; inset: 0; z-index: 40; background: var(--bg); overflow: auto; }
#coach .screen.active { display: block; }
#coach #screen-review .wrap { max-width: 720px; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=date], textarea, select { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); width: 100%; min-height: 44px; }
textarea { min-height: 80px; resize: vertical; }
label.field { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
label.field > span:first-child { font-weight: 500; color: var(--text); }
.form { display: grid; gap: 12px; }
.form .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.error { color: var(--bad); font-size: .9rem; }
.ok { color: var(--good); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 500; z-index: 20; max-width: 90vw; }
.list { display: grid; gap: 10px; }
.card { background: var(--surface); border: 2px solid var(--grape); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.card.link { cursor: pointer; transition: border-color .15s; } .card.link:hover { border-color: var(--accent); }
.card h3 { margin-bottom: 4px; }
.meta { color: var(--muted); font-size: .86rem; }
.badge { display: inline-block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.badge.good { color: var(--good); } .badge.warn { color: var(--warn); } .badge.bad { color: var(--bad); } .badge.accent { color: var(--accent); }
.score-pill { font-family: var(--font-mono); font-weight: 600; font-size: 1.1rem; min-width: 2.4rem; text-align: center; }
.item-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.item-row .glyph { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.3rem; }
.progress-dots { display: inline-flex; gap: 4px; } .progress-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); } .progress-dots i.done { background: var(--good); border-color: var(--good); }
.editor-item { display: grid; gap: 10px; }
.editor-item .head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.editor-item .head h3 { flex: 1; }
.days { display: flex; gap: 6px; flex-wrap: wrap; } .days button { min-height: 34px; padding: 4px 10px; }
.session-detail { display: grid; gap: 12px; margin-top: 10px; }
.mini-strip { display: flex; gap: 3px; align-items: flex-end; height: 40px; } .mini-strip i { flex: 1; max-width: 16px; min-width: 4px; border-radius: 3px 3px 1px 1px; background: var(--good); } .mini-strip i.partial { background: var(--warn); } .mini-strip i.fault { background: var(--bad); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; } .tabs button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); } .tabs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.notice { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font-size: .92rem; }
.pain { display: flex; gap: 6px; flex-wrap: wrap; } .pain button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); font-family: var(--font-mono); } .pain button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: .92rem; } .kv dt { color: var(--muted); } .kv dd { margin: 0; }
.otp-input { font-family: var(--font-mono); font-size: 1.6rem; letter-spacing: .3em; text-align: center; }
table.plain { width: 100%; border-collapse: collapse; font-size: .9rem; } table.plain th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--line); } table.plain td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tw { overflow-x: auto; }
@media (max-width: 600px) { .topbar { padding: 8px 14px; } .item-row { grid-template-columns: 40px 1fr; } .item-row > :last-child { grid-column: 1 / -1; } }

/* ---- marketplace ---- */
.hero { padding: 12px 0 8px; } .hero h1 { font-size: clamp(2.6rem, 9vw, 5.2rem); line-height: .95; margin: 4px 0 12px; max-width: none; } .hero h1 .l1 { color: var(--hero-1); } .hero h1 .l2 { color: var(--hero-2); } .hero h1 .l3 { color: var(--hero-3); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.plan .price { font-family: var(--font-mono); font-size: 2rem; font-weight: 600; margin: 6px 0; } .plan .price .muted { font-size: 1rem; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.plan .checklist { margin: 10px 0 14px; }
.card.upgrade { background: var(--surface-2); }
.ex-card .badge { justify-self: end; }
main.wrap { max-width: 960px; }
/* marketplace fixes */
[hidden] { display: none !important; }
a.ex-card, a.card.link { text-decoration: none; color: inherit; }
a.ex-card .name { color: var(--text, inherit); }

.chip .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }

/* camera frame outline: green = in position / good form, red = fix something */
.stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; border: 0 solid transparent; transition: border-color .25s, border-width .25s; z-index: 3; }
.stage.frame-ok::after { border: 6px solid var(--lime); box-shadow: inset 0 0 40px rgba(184, 245, 66, .35); }
.stage.frame-bad::after { border: 6px solid var(--pink); box-shadow: inset 0 0 40px rgba(255, 46, 136, .4); }
.hud .btn.icon.off { opacity: .55; text-decoration: line-through; }
/* demo figure + camera placement (split) */
.demo-fig { width: 100%; max-width: 460px; aspect-ratio: 4 / 3; height: auto; display: block; margin: 0 auto; }
.demo-fig .ink { stroke: var(--text); fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.demo-fig .ink.far { stroke: var(--muted); opacity: .45; stroke-width: 2.5; }
.demo-fig .floor { stroke: var(--line); stroke-width: 2; }
.demo-fig .lbl, .cam-diagram .lbl { font-family: var(--font-mono); font-size: 11px; fill: var(--muted); }
.cam-diagram .lbl.muted { opacity: .7; }
.cam-diagram .dim { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 4; }
.cam-diagram .wedge { fill: var(--accent); opacity: .18; }
.cam-diagram .nose { fill: var(--accent); }
.cam-diagram.top { max-width: 420px; margin-top: 4px; }
.cam-diagram-wrap { display: grid; gap: 4px; }
/* ---- home: two columns of uniform tiles ---- */
.home-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.home-cols h2 { margin: 0 0 8px; font-size: 1.05rem; }
.tiles { display: grid; gap: 10px; }
.tile { position: relative; display: grid; grid-template-rows: 50px auto 1fr; justify-items: center; align-content: start; row-gap: 6px; text-align: center; height: 150px; padding: 12px 10px 10px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--grape); box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.tile:hover { background: var(--surface-2); }
.tile .glyph { font-size: 1.6rem; line-height: 1; }
.tile .name { font-weight: 900; font-size: .95rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .meta { font-size: .75rem; color: var(--muted); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; align-self: start; }
.tile .badge { position: absolute; top: 8px; right: 8px; }
.tile.build { border-style: dashed; }
@media (min-width: 720px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .tiles { grid-template-columns: 1fr 1fr 1fr; } }
/* ---- exercise page ---- */
.ex-head { display: grid; gap: 10px; }
.ex-head h1 { margin: 0; font-size: 1.5rem; }
.ex-actions .btn { flex: 1 1 auto; }
.ex-grid { display: grid; gap: 12px; }
.guide-cols { display: grid; gap: 10px 20px; }
@media (min-width: 720px) { .ex-head { grid-template-columns: 1fr auto; align-items: end; } .ex-actions .btn { flex: 0 0 auto; } .ex-grid { grid-template-columns: 1fr 1fr; align-items: start; } .guide-cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .ex-grid { grid-template-columns: 5fr 4fr; } }
/* band swatches: colour only */
.chip .swatch.big { width: 26px; height: 26px; margin: 0; display: grid; place-items: center; font-size: .8rem; color: var(--muted); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.chip[aria-pressed="true"] .swatch.big { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); }
.chip[aria-pressed="true"] .swatch.big .x { color: #fff; }
/* rest between sets */
.rest-clock { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-mono); }
.rest-clock span:first-child { font-size: 3.2rem; font-weight: 700; line-height: 1; }
.rest-clock .unit { color: var(--muted); }
.cam-diagram .lens { fill: #fff; opacity: .9; }
.cam-diagram .stand { fill: var(--muted); }
.cam-diagram .lbl.strong { fill: var(--text); font-weight: 600; }

.cam-diagram .body { fill: var(--text); } .cam-diagram .head { fill: var(--surface); stroke: var(--text); stroke-width: 2.5; }
.cam-diagram .lens { fill: var(--surface); }
.cam-sentence { margin-top: 6px; }
.thumb-fig { width: 64px; height: 50px; display: block; }
.thumb-fig .ink { stroke: var(--text); fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.thumb-fig .floor { stroke: var(--line); stroke-width: 3; }

/* config tile: sections inside one card */
.card.config h3 { margin-top: 14px; } .card.config h3:first-child { margin-top: 0; }
.tiles.wide { grid-template-columns: 1fr 1fr; } @media (min-width: 720px) { .tiles.wide { grid-template-columns: repeat(3, 1fr); } } @media (min-width: 1000px) { .tiles.wide { grid-template-columns: repeat(4, 1fr); } }
.tile .glyph { display: grid; place-items: center; }
.tile .rt-count { font-family: var(--font-display); font-size: 1.6rem; line-height: 50px; color: var(--pink); }
.hero h1 { font-size: clamp(1.7rem, 6vw, 2.6rem); letter-spacing: -0.03em; }

/* ---- playlists (routines as mixtape rows) ---- */
.playlists { display: grid; gap: 14px; }
.playlist { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius); border: 2px solid var(--grape); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); background: var(--surface); }
.playlist.tangerine { background: var(--tangerine); } .playlist.lime { background: var(--lime); } .playlist.pink { background: var(--pink); }
.playlist .count { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; text-align: center; }
.playlist .body { display: grid; gap: 3px; min-width: 0; }
.playlist .title { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1; }
.playlist .desc { font-size: .9rem; opacity: .85; }
.playlist .tracks { font-size: .8rem; font-weight: 800; opacity: .8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.playlist.build { border-style: dashed; box-shadow: none; }
/* ---- guide tags instead of bullets ---- */
.guide .gp { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; font-size: .95rem; }
.guide .tag { flex: 0 0 auto; min-width: 68px; text-align: center; margin-top: 3px; border-radius: 999px; padding: 2px 8px; font-size: .68rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.guide .tag.cam { background: var(--lime); color: var(--grape); } .guide .tag.you { background: transparent; color: var(--ink-soft); border: 1.5px solid var(--ink-soft); }
.guide-key { display: inline-flex; gap: 6px; }
/* ---- rep list in the recap ---- */
.replist { display: grid; gap: 8px; margin-top: 12px; }
.replist details { border: 2px solid var(--line); border-radius: 18px; padding: 8px 12px; background: var(--surface); }
.replist summary { display: flex; gap: 10px; align-items: center; cursor: pointer; list-style: none; font-weight: 800; }
.replist summary::-webkit-details-marker { display: none; }
.replist summary .meta { margin-left: auto; font-size: .8rem; color: var(--muted); font-weight: 700; }
.replist .pill { border-radius: 999px; padding: 2px 8px; font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.replist .pill.clean { background: var(--lime); color: var(--grape); } .replist .pill.fault { background: var(--tangerine); color: var(--grape); } .replist .pill.partial { background: var(--surface-2); color: var(--ink-soft); }
.replist .rep-body { padding: 8px 0 4px; } .stats.small .stat { padding: 8px 10px; } .stats.small .stat .v { font-size: 1.05rem; }
.rep-faults { margin: 8px 0 0; padding-left: 18px; font-size: .9rem; }
.card h3, .panel h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; }
.card.config h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 900; }

/* ---------- Routine page: per-move options + one start button ---------- */
.rt-start-bar { gap: 12px; }
.rt-item { display: grid; gap: 10px; }
.rt-item .item-row { align-items: start; }
.rt-config { border-top: 2px dashed var(--line); padding-top: 10px; }
.rt-config h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 900; margin-top: 14px; }
.rt-config h3:first-child { margin-top: 0; }

/* ---------- Homepage brand lockup ---------- */
.hero-brand { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.hero-wordmark { font-size: clamp(3rem, 12vw, 6rem); line-height: 1; }
.hero-tag { font-family: var(--font-body); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .18em; color: var(--ink-soft); }
/* The logo's three bars, reused as a section rule so the mark reads as part of the page. */

/* On the homepage the hero is the logo, so the topbar mark would be a duplicate. */
.topbar.at-home:not(.scrolled) .brand { display: none; }

/* ---------- First-run intro ---------- */
/* Block layout, not grid centring: a card taller than the phone must scroll from its top
   rather than being centred and clipped at both ends. */
.intro { position: fixed; inset: 0; z-index: 50; background: rgba(43, 21, 70, .72); display: block; overflow-y: auto; padding: 16px; }
.intro[hidden] { display: none; }
.intro-card { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; max-width: 560px; width: 100%; margin: 16px auto; display: flex; flex-direction: column; gap: 10px; }
.intro-card h2 { font-size: clamp(1.35rem, 5vw, 1.9rem); }
.intro-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 560px) { .intro-steps { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.intro-steps li { display: grid; grid-template-columns: 68px 1fr; grid-template-areas: "art name" "art copy"; column-gap: 12px; row-gap: 2px; align-items: center; }
@media (min-width: 560px) { .intro-steps li { grid-template-columns: 1fr; grid-template-areas: "art" "name" "copy"; justify-items: center; text-align: center; row-gap: 6px; } }
.intro-steps .art { grid-area: art; width: 68px; height: 68px; }
@media (min-width: 560px) { .intro-steps .art { width: 84px; height: 84px; } }
.intro-steps strong { grid-area: name; align-self: end; }
.intro-steps .muted { grid-area: copy; font-size: .88rem; line-height: 1.35; }
.intro-steps .art .ink { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.intro-steps .art .ink.solid { fill: var(--accent); }
.intro-steps .art .frame { fill: var(--surface-2); stroke: var(--ink); stroke-width: 4; }
.intro-steps .art .corner { fill: none; stroke: var(--pink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.intro-steps .art .floor { stroke: var(--line); stroke-width: 4; stroke-linecap: round; fill: none; }
.intro-steps .art .wave { fill: none; stroke: var(--pink); stroke-width: 4; stroke-linecap: round; }
.intro-steps .art .bar { stroke: var(--ink); stroke-width: 3; }
.intro-steps .art .bar.a { fill: var(--pink); } .intro-steps .art .bar.b { fill: var(--tangerine); } .intro-steps .art .bar.c { fill: var(--lime); }
.intro-actions { margin-top: 4px; }
@media (max-width: 360px) {
  .intro-steps li { grid-template-columns: 26px 1fr; grid-template-areas: "n name" "n copy"; }
  .intro-steps .art { display: none; }
}

/* ---------- Option bubbles: one pill per setting, tap to cycle ---------- */
.bubbles { display: flex; flex-wrap: wrap; gap: 8px; }
.bubble { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); font-weight: 900; font-size: .92rem; line-height: 1.1; cursor: pointer; }
.bubble .k { font-weight: 700; color: var(--ink-soft); }
.bubble:active { transform: translateY(1px); }
.bubble.bump { animation: bubble-bump .18s ease-out; }
@keyframes bubble-bump { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
.bubbles-hint { font-size: .8rem; margin-top: 8px; }
.card.config h3 { display: none; }

/* ---------- Camera placement: silhouettes, not a map ---------- */
.cam-diagram.two { max-width: 460px; }
.cam-diagram .phone { fill: var(--ink); }
.cam-diagram .screen { fill: var(--surface); }
.cam-diagram .sil { fill: var(--text); }
.cam-diagram .sil-l { stroke: var(--text); fill: none; stroke-linecap: round; }
.cam-diagram .tick { stroke: var(--line); stroke-width: 2; }
.cam-diagram .tick.on { stroke: var(--accent); stroke-width: 3.5; }

/* ---- what the camera does with a move ---- */
.track { font-weight: 800; }
.track.t-form { color: var(--good); } .track.t-reps { color: var(--ink-soft); } .track.t-none { color: var(--muted); }
.nb { white-space: nowrap; }
.tile .badge { top: 8px; right: 8px; }
.track-note { margin: 0; }
.group-h { font-family: var(--font-body); font-size: 1rem; font-weight: 900; margin: 18px 0 8px; }
.group-h .muted { font-family: var(--font-mono); font-weight: 700; font-size: .8rem; }
.ex-group:first-of-type .group-h { margin-top: 4px; }
.search { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); font: inherit; }
/* ---- physio prescription and faults on the move page ---- */
.physio-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 8px 0 0; }
.physio-dl dt { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 3px; }
.physio-dl dd { margin: 0; }
.physio .sources { font-size: .85rem; margin-top: 10px; }
.fault-list { display: grid; gap: 10px; margin-top: 8px; }
.fault { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.fault .cue { color: var(--accent); font-weight: 700; }
.fault p { margin: 2px 0 0; font-size: .9rem; }
@media (min-width: 720px) { .fault-list { grid-template-columns: 1fr 1fr; } }
/* ---- a set logged by hand ---- */
.panel.manual .counter { display: flex; align-items: center; justify-content: center; gap: 18px; }
.panel.manual .counter .btn { min-width: 52px; font-size: 1.4rem; }
#screen-review.manual > .wrap { display: none; }
#screen-review.manual #rv-portal { padding-top: 16px; }

/* ---- wordmark: the name in the theme's three colours, nothing else ---- */
.wordmark { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1; display: inline-block;
  background: linear-gradient(90deg, var(--pink) 0%, var(--pink) 28%, var(--tangerine) 58%, var(--lime) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.brand .wordmark { font-size: 1.7rem; }
.hero-brand { align-items: flex-start; }
/* ---- topbar: brand, nav, then the library switch and Settings in the right corner ---- */
#btn-settings { text-decoration: none; }
#btn-how .i-mark { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 700; }
.topbar #btn-how { margin-left: auto; }
.topbar .spacer { display: none; }
/* ---- settings: name beside the bubble, only the value inside ---- */
.knob { display: inline-flex; align-items: center; gap: 6px; }
.knob .k { font-size: .82rem; font-weight: 800; color: var(--ink-soft); }
/* one size for every value — Left, Right, Both, 120 s, a band swatch — so nothing shifts when a value changes;
   a label too long for it is cut with an ellipsis and read in full from the tooltip */
.bubble { width: 100px; min-width: 100px; max-width: 100px; padding: 8px 8px; display: inline-block; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 22px; font-size: .88rem; }
.bubble .swatch { vertical-align: middle; }
/* the band bubble holds a colour, not a word: centre it in the same fixed box */
.bubble:has(.swatch) { display: inline-flex; align-items: center; justify-content: center; }

/* ---- nav search ---- */
.nav-search { flex: 1 1 120px; max-width: 260px; min-height: 36px; padding: 4px 12px; font-size: .9rem; }
/* ---- moves as a list ---- */
.ex-list { display: grid; grid-template-columns: 1fr; gap: 6px; }
.ex-row { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 14px; background: var(--surface); border: 2px solid var(--grape); text-decoration: none; color: inherit; }
.ex-row:hover { background: var(--surface-2); }
.ex-row .glyph { width: 56px; height: 44px; display: grid; place-items: center; }
.ex-row .glyph .thumb-fig { width: 56px; height: 44px; }
.ex-row .body { display: grid; gap: 1px; min-width: 0; }
.ex-row .name { font-weight: 900; line-height: 1.2; }
.ex-row .meta { font-size: .75rem; color: var(--muted); }
.ex-row .track, .ex-row .badge { position: static; }
.ex-group:first-of-type .group-h { margin-top: 4px; }
/* ---- settings stacked: name left, value right ---- */
.bubbles { display: grid; grid-template-columns: 1fr max-content; gap: 8px 14px; align-items: center; }
.knob { display: contents; }
.knob .k { font-size: .9rem; }
.knob .bubble { width: 100%; }
.bubble .swatch.big { margin: 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; color: var(--muted); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
/* ---- stick figure: equipment ---- */
.demo-fig .prop, .thumb-fig .prop { fill: var(--surface-2); stroke: var(--line); stroke-width: 2.5; }
.demo-fig .band { stroke: var(--pink); stroke-width: 2.5; stroke-dasharray: 4 3; }
.demo-fig .ink.far { opacity: .35; }
.demo-fig.lying { aspect-ratio: auto; }

/* ---- compact nav on phones: icon-only Settings, narrow search ---- */
@media (max-width: 600px) { #btn-settings .lbl, #btn-how .lbl { display: none; } #btn-settings, #btn-how { padding: 6px 12px; } .nav-search { flex: 1 1 90px; min-width: 90px; } .topbar { gap: 6px 8px; padding: 8px 12px 6px; } .brand .wordmark { font-size: 1.4rem; } }

/* ---- phone framing inset, top-right of the move panel ---- */
.move-card { position: relative; }
.phone-inset { position: absolute; top: 12px; right: 12px; width: 84px; height: auto; overflow: visible; }
.phone-inset .lbl.way { fill: var(--ink); font-weight: 900; }
.phone-inset.wide { width: 92px; }
.phone-inset .ph { fill: var(--ink); }
.phone-inset .scr { fill: var(--surface); }
.phone-inset .ink { stroke: var(--ink); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.phone-inset .floor { stroke: var(--line); stroke-width: 1.5; }
.phone-inset .lbl { font-family: var(--font-body); font-weight: 800; font-size: 9.5px; fill: var(--ink-soft); }
@media (max-width: 480px) { .phone-inset { width: 72px; } .phone-inset.wide { width: 80px; } }

/* ---- the ⓘ next to the name, and the details pop-up it opens ---- */
.info-btn { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 700; font-size: .95rem; line-height: 1; vertical-align: middle; cursor: pointer; padding: 0; margin: 0 2px; }
.info-btn:hover, .info-btn:focus-visible { background: var(--ink); color: var(--bg); outline: none; }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(43, 21, 70, .72); overflow-y: auto; padding: 16px; }
.modal-card { background: var(--bg); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; max-width: 760px; width: 100%; margin: 16px auto; box-sizing: border-box; }
.modal-card h2 { font-size: 1.3rem; }

/* ---------- replay: watch a set back ---------- */
.rp { display: grid; gap: 8px; }
.rp-stage { width: 100%; border-radius: 16px; display: block; background: #14121a; }
.rp-bar { display: flex; gap: 10px; align-items: center; }
.rp-seek { flex: 1; min-width: 0; accent-color: var(--accent); }
.rp-time { font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; font-weight: 800; }
.rp-timeline { width: 100%; height: 64px; border: 2px solid var(--ink); border-radius: 12px; display: block; cursor: pointer; }
.rp-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: var(--muted); }
.rp-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; }
.rp-legend i.tick { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 9px solid var(--bad); border-radius: 0; background: none; }

/* ---------- review: what to do next, and the way out, both at the top ---------- */
.rv-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: -4px -4px 0; padding: 10px 4px; background: linear-gradient(var(--bg) 78%, transparent); }
.rv-bar .clock { font-weight: 900; font-variant-numeric: tabular-nums; margin-left: auto; color: var(--ink-soft); }
.panel.tight { padding: 12px 14px; }
.panel.tight h3 { margin-bottom: 6px; }
/* one line per suggestion: what to do, how often it came up, and why underneath */
.fixlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fixlist li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; line-height: 1.3; }
.fixlist .n { font-family: var(--font-mono); font-weight: 700; color: var(--bad); font-size: .85rem; }
.fixlist .s { font-weight: 800; }
.fixlist .t { grid-column: 2; color: var(--muted); font-size: .85rem; }
.fixlist .empty { grid-column: 1 / -1; }

/* ---------- moves list: filter by what the camera can do ---------- */
.ex-filter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 10px; }
.ex-filter .k { font-size: .82rem; font-weight: 800; color: var(--ink-soft); margin-right: 2px; }
.ex-filter button { font: inherit; font-weight: 800; font-size: .85rem; padding: 5px 12px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.ex-filter button[aria-pressed="true"] { border-color: var(--ink); background: var(--lime); color: var(--grape); }
.ex-filter .n { font-weight: 700; opacity: .65; margin-left: 5px; }
