/* New app (rebuild) — tokens and shared parts. Values come from the design canvas
   (QdrHX1kMtQ41YAnQQ3zmk5). Dark is the default (decided 10 Oct); light is offered.
   ⚠ Olive #BCD382 is BRAND only — never a zone. Zone colours are semantic and exact
   (Z2 is #60a5fa — never the legacy #38BDF8). */

:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B121A;
  --bg-2: #0F1923;
  --card: #141E29;
  --card-2: #1B2733;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --text: #F2F4EF;
  --text-2: #A9B4BE;
  --text-3: #8B97A2;
  --brand: #BCD382;
  --brand-ink: #0B121A;
  --brand-text: #BCD382;
  --brand-soft: rgba(188,211,130,.12);
  --danger: #F87171;
  --danger-soft: rgba(248,113,113,.14);
  --tabbar: rgba(11,18,26,.94);
  --shadow: 0 6px 16px rgba(0,0,0,.45);
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F6F2;
  --bg-2: #FFFFFF;
  --card: #FFFFFF;
  --card-2: #EEF2E8;
  --line: rgba(15,25,35,.08);
  --line-2: rgba(15,25,35,.16);
  --text: #0F1923;
  --text-2: #4B5864;
  --text-3: #6B7782;
  --brand: #BCD382;
  --brand-ink: #0F1923;
  --brand-text: #4a6a1a;          /* accent text on light — CLAUDE.md design system */
  --brand-soft: rgba(188,211,130,.22);
  --danger: #C2410C;
  --danger-soft: rgba(194,65,12,.10);
  --tabbar: rgba(255,255,255,.96);
  --shadow: 0 6px 16px rgba(15,25,35,.16);
}
:root {
  /* Zones — identical in both themes. */
  --z1: #4ade80; --z2: #60a5fa; --z3: #fbbf24; --z4: #fb923c; --z5: #a78bfa;
  --font: Figtree, "Helvetica Neue", Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --tabbar-h: 64px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
a { color: var(--brand-text); text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.tnum { font-variant-numeric: tabular-nums; }

/* ── App frame ─────────────────────────────────────────────────────────── */
.app { min-height: 100%; max-width: 560px; margin: 0 auto; position: relative; }
.screen { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 24px); }
.page-head {
  padding: calc(var(--safe-t) + 18px) 20px 12px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;   /* avatar top-right (Dennis 13 Oct) */
}
.eyebrow { font: 700 11px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--brand-text); }
.h-display {
  margin: 0; font: 800 40px/.95 var(--display); text-transform: uppercase; letter-spacing: .005em;
  text-wrap: balance;
}
.h-section { margin: 0; font: 700 24px/1 var(--display); text-transform: uppercase; }
.muted { color: var(--text-2); }
.body { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }

/* Coach view bar (viewer=admin) — olive, own look, nothing is saved. */
.coach-bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: calc(var(--safe-t) + 10px) 16px 10px; background: var(--brand); color: var(--brand-ink);
  font-size: 12.5px; line-height: 1.3;
}
.coach-bar b { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.coach-on .page-head { padding-top: 18px; }

/* ── Cards, buttons ────────────────────────────────────────────────────── */
.card { padding: 16px; border-radius: 20px; background: var(--card); }
.card-hero {
  padding: 16px; border-radius: 22px; border: 1px solid rgba(188,211,130,.22);
  background: linear-gradient(135deg, var(--card-2), var(--card));
}
.row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px;
  border-radius: 16px; background: var(--card); color: var(--text); width: 100%; border: 0; text-align: left; cursor: pointer; }
.row .row-main { flex: 1; min-width: 0; }
.row .row-sub { font-size: 13px; color: var(--text-2); }
.row svg.chev { flex: none; color: var(--text-3); }
.btn {
  height: 48px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); font: 800 15px var(--font);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-sm { height: 40px; padding: 0 14px; font-size: 13px; font-weight: 700; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.avatar {
  width: 40px; height: 40px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); font: 800 14px var(--font);
  display: flex; align-items: center; justify-content: center;
}

/* ── Tab bar + "+ Log" ─────────────────────────────────────────────────── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding: 8px 6px var(--safe-b);
  background: var(--tabbar); border-top: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center;
  max-width: 560px; margin: 0 auto;
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 44px; justify-content: center;
  color: var(--text-3); font-size: 10.5px; font-weight: 600; background: none; border: 0; cursor: pointer;
}
.tab[aria-current="page"] { color: var(--brand-text); font-weight: 700; }
.tab-log {
  width: 54px; height: 54px; margin: -26px auto 0; border: 4px solid var(--bg); border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); cursor: pointer;
}

/* ── Bottom sheet ──────────────────────────────────────────────────────── */
.sheet-scrim {
  position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.5);
  display: flex; align-items: flex-end; justify-content: center;
  padding-top: calc(var(--safe-t) + 24px);
  animation: fade .18s ease-out;
}
.sheet {
  width: 100%; max-width: 560px; max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-2); border-radius: 24px 24px 0 0; padding: 10px 16px calc(var(--safe-b) + 20px);
  animation: rise .22s cubic-bezier(.2,.8,.2,1);
}
.sheet-grip { width: 40px; height: 5px; border-radius: 99px; background: var(--line-2); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
@keyframes fade { from { opacity: 0 } }
@keyframes rise { from { transform: translateY(24px); opacity: .6 } }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-scrim { animation: none; } }

/* ── Toasts (errors stay until dismissed — writes propagate or alarm) ──── */
.toasts {
  position: fixed; left: 0; right: 0; z-index: 60; pointer-events: none;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px);
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px;
}
.toast {
  pointer-events: auto; max-width: 520px; width: 100%;
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 16px;
  background: var(--card-2); color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  font-size: 14px;
}
.toast.err { border-color: var(--danger); background: var(--card); }
.toast.err b { color: var(--danger); }
.toast .x { margin-left: auto; background: none; border: 0; color: var(--text-2); cursor: pointer; padding: 0 2px; font-size: 18px; line-height: 1; }

/* ── Boot / empty states ───────────────────────────────────────────────── */
.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.spinner { width: 28px; height: 28px; border-radius: 99px; border: 3px solid var(--line-2); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.placeholder {
  padding: 18px 16px; border-radius: 20px; border: 1px dashed var(--line-2); color: var(--text-2); font-size: 14px;
}
.placeholder b { color: var(--text); }
.fatal { min-height: 100vh; padding: calc(var(--safe-t) + 40px) 24px 24px; display: flex; flex-direction: column; gap: 14px; }

/* Segmented control (theme etc.) */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--card-2); gap: 2px; }
.seg button { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font-weight: 700; font-size: 13px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.2); }

/* ══ Phase 1 — Today + week sheet (canvas "Main", "Story-sheet") ═════════ */
.link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--brand-text); font-weight: 700; font-size: 14px; cursor: pointer; }
.hero { position: relative; height: 352px; margin-bottom: 14px; color: #F2F4EF; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; filter: saturate(.85); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,18,26,.55) 0%, rgba(11,18,26,.15) 35%, rgba(11,18,26,.85) 78%, var(--bg) 100%); }
.hero-in { position: relative; height: 100%; padding: calc(var(--safe-t) + 18px) 20px 6px; display: flex; flex-direction: column; }
.coach-on .hero-in { padding-top: 18px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; }
.hero-brand { font: 700 11px/1 var(--font); letter-spacing: .22em; text-transform: uppercase; color: rgba(242,244,239,.85); }
.hero-text { margin-top: auto; }
.hero .eyebrow { color: #BCD382; }
.hero-h { margin-top: 10px; font-size: 46px; line-height: .92; color: #F2F4EF; }
.hero-p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.45; color: rgba(242,244,239,.86); max-width: 34ch; }
.hero .link { color: #BCD382; }
[data-theme="light"] .hero-shade { background: linear-gradient(180deg, rgba(11,18,26,.55) 0%, rgba(11,18,26,.15) 35%, rgba(11,18,26,.82) 82%, rgba(11,18,26,.9) 100%); }

.rings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ring { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 4px 10px; border-radius: 18px;
  border: 0; background: var(--card); color: var(--text); cursor: pointer; }
.ring-g { position: relative; width: 64px; height: 64px; }
.ring-v { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-v b { font: 800 21px/1 var(--display); }
.ring-v span { font-size: 9px; font-weight: 800; letter-spacing: .08em; color: var(--text-3); }
.ring-n { font-weight: 700; font-size: 13px; }
.ring-chip { font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); white-space: nowrap; }
.ring-chip[data-st="over"] { background: rgba(251,191,36,.16); color: #F6C46B; }
[data-theme="light"] .ring-chip[data-st="over"] { color: #92400E; }
.dots { display: flex; gap: 4px; }
.dots i { width: 8px; height: 8px; border-radius: 3px; }
.gate { border-left: 3px solid #fb923c; background: rgba(251,146,60,.12); font-size: 13.5px; line-height: 1.4; }
.next-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.next-row { display: flex; align-items: flex-end; gap: 12px; margin-top: 12px; }
.next-title { font: 700 26px/1 var(--display); text-transform: uppercase; }

/* week sheet */
.wk { display: flex; flex-direction: column; gap: 14px; }
.wk h4 { margin: 0; font: 700 17px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.wk-sec { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: var(--card); }
.wk-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.wk-line { margin: 0; font-size: 14px; line-height: 1.45; }
.filter { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.filter-l { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.lrow { display: grid; grid-template-columns: 76px minmax(0, 1fr) 96px; align-items: center; gap: 10px; }
.lrow-n { font-weight: 700; font-size: 13.5px; }
/* 14 Oct 2026 (Dennis: "very hard to see the bands") — a taller track, the band a lighter OUTLINED region with
   marks at the floor and the ceiling, and the fill a thinner line on top so the band stays visible around it */
.lrow-bar { position: relative; height: 18px; border-radius: 6px; background: var(--card-2); overflow: hidden; }
.lrow-band { position: absolute; top: 0; bottom: 0; background: rgba(242,244,239,.16); border-left: 2px solid var(--text-2); border-right: 2px solid var(--text-2); }
[data-theme="light"] .lrow-band { background: rgba(15,25,35,.10); }
.lrow-fill { position: absolute; left: 0; top: 6px; bottom: 6px; border-radius: 99px; }
.lrow-before { position: absolute; top: 2px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--text); }
.lrow-v { text-align: right; line-height: 1.2; }
.lrow-v b { font: 800 18px var(--display); }
.lrow-st { color: var(--text-2); font-size: 11.5px; }
.lrow-st[data-over="true"] { color: #F6C46B; }
[data-theme="light"] .lrow-st[data-over="true"] { color: #92400E; }
.dd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; }
.dd-col { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; color: var(--text-2); padding: 0; cursor: pointer; }
.dd-stack { width: 100%; height: 96px; border-radius: 8px; background: var(--card-2); display: flex; flex-direction: column-reverse; overflow: hidden; }
.dd-stack i { display: block; width: 100%; }
.dd-l { font-size: 11px; font-weight: 700; }
.dd-o { display: flex; gap: 2px; min-height: 6px; }
.dd-o i { width: 6px; height: 6px; border-radius: 2px; }
.dd-detail { font-size: 13px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; }
.legend-o { background: var(--text-3); }
.srow { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.srow-k { flex: none; width: 10px; height: 34px; border-radius: 4px; }
.srow-v { font: 800 18px var(--display); white-space: nowrap; }
.srow-v small { font: 700 10px var(--font); color: var(--text-3); }
.wbw { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: end; gap: 10px; }
.wbw-n { font-weight: 700; font-size: 13px; align-self: center; }
.wbw-bars { height: 56px; display: flex; align-items: flex-end; gap: 3px; }
.wbw-bars i { flex: 1; border-radius: 3px 3px 0 0; min-width: 0; }
.wbw-bars.stack .wbw-st { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; min-width: 0; }
.wbw-bars.stack .wbw-st i { flex: none; width: 100%; border-radius: 0; }

/* ══ Phase 1b — Tests hub + path pages (canvas "Tests-grid", "Tests-Finger", "Tests-Endurance") ═════ */
.tgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tcard { position: relative; aspect-ratio: 3 / 4; max-width: 100%; border: 0; border-radius: 22px; overflow: hidden; padding: 0;
  background: var(--card); color: #F2F4EF; text-align: left; cursor: pointer; }
.tcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.tcard-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,18,26,.05) 25%, rgba(11,18,26,.88) 72%, rgba(11,18,26,.96) 100%); }
.tcard-in { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; display: flex; flex-direction: column; gap: 3px; }
/* Fixed line count per card (Dennis 13 Oct): name 1 line · value 1 line · text EXACTLY 2 lines · chip row always
   reserved — so the four cards line up row for row, whatever the text length. */
.tcard-n, .tcard-v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard-n { font: 700 11px/1.1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #BCD382; }
.tcard-v { font: 800 22px/1 var(--display); text-transform: uppercase; }
.tcard-s { font-size: 12px; color: rgba(242,244,239,.78); line-height: 1.3; height: 2.6em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard-chiprow { height: 26px; margin-top: 4px; display: flex; align-items: center; }
.tcard-chip { align-self: flex-start; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(242,244,239,.14); color: #F2F4EF; }
.tcard-chip[data-dir="up"] { background: rgba(159,184,106,.22); color: #D7E6B0; }
.tcard-chip[data-dir="down"] { background: rgba(246,196,107,.18); color: #F6C46B; }
.tcard-chip[data-dir="stale"] { background: rgba(251,146,60,.2); color: #FDBA74; }
.pt-h { margin: 6px 0 -2px; }
.pt-info { min-height: 18px; font-size: 13px; color: var(--text-2); }
.pt-vals { display: flex; gap: 22px; flex-wrap: wrap; }
.pt-k { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.pt-v { font: 800 30px/1.05 var(--display); }
.pt-v small { font: 700 12px var(--font); color: var(--text-3); }
.pt-d { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.pt-d[data-dir="up"] { color: var(--brand-text); }
.pt-d[data-dir="down"] { color: #F6C46B; }
[data-theme="light"] .pt-d[data-dir="down"] { color: #92400E; }
.pt-gap { font-size: 13px; }
.lc { width: 100%; height: auto; display: block; }
.lc-grid { stroke: var(--line); stroke-width: 1; }
.lc-t { fill: var(--text-3); font: 600 10px var(--font); }
.lc-pt { cursor: pointer; outline: none; }
.lc-pt:focus-visible circle:last-of-type { stroke: var(--text); stroke-width: 2.5; }
/* retest row */
.rt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: var(--card-2); }
.rt[data-due="true"] { background: rgba(251,146,60,.14); }
.rt[data-due="true"] b { color: #FDBA74; }
[data-theme="light"] .rt[data-due="true"] b { color: #9A3412; }
.rt-txt { flex: 1; min-width: 0; }
.rt-col { flex-direction: column; align-items: stretch; }
.rt-actions { display: flex; gap: 10px; justify-content: flex-end; }
.rt-edit .rt-actions .btn { flex: 1; height: 44px; }
.rt-l { display: flex; flex-direction: column; gap: 8px; }
.in { height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: 600 15px var(--font); }
.rt-date { width: 100%; }
.lc-wrap { display: flex; flex-direction: column; gap: 6px; }
.lc-cap { min-height: 20px; font-size: 13px; color: var(--text-3); }
.lc-cap.set { color: var(--text); font-weight: 600; }
.lc-pt.on circle:last-of-type { r: 6; stroke: var(--text); stroke-width: 2.5; }

/* ══ Step flow — ONE frame for every test and log (flow.js) ══════════════ */
.flow { position: fixed; inset: 0; z-index: 45; background: var(--bg); display: flex; flex-direction: column;
  max-width: 560px; margin: 0 auto; padding-top: var(--safe-t); animation: fade .15s ease-out; }
.flow-head { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px 8px; }
.flow-bar { display: flex; gap: 4px; padding: 0 16px 10px; }
.flow-bar i { flex: 1; height: 4px; border-radius: 99px; background: var(--line-2); }
.flow-bar i[data-on="true"] { background: var(--brand); }
.flow-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.flow-body > * { flex-shrink: 0; }   /* gotcha_flex_column_shrinks_scroll_rows */
.flow-bottom { border-top: 1px solid var(--line); background: var(--bg); padding: 10px 16px calc(var(--safe-b) + 12px); }
.flow-msg { min-height: 0; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.flow-msg:empty { display: none; }
.flow-foot { display: flex; gap: 10px; }
.flow-foot > * { flex: 1; }
.flow-foot .btn { height: 50px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--text);
  font: 600 14px var(--font); cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--text); font-weight: 700; }
.stepper { display: inline-flex; align-items: center; gap: 14px; }
.stepper b { font: 800 30px/1 var(--display); min-width: 90px; text-align: center; }
.stepper .icon-btn { width: 48px; height: 48px; font-size: 22px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld-l { font-size: 13px; font-weight: 700; color: var(--text-2); }
.fld-h { font-size: 12px; color: var(--text-3); }
.fld .in { width: 100%; }
.flow-list { display: flex; flex-direction: column; gap: 8px; }
.flow-li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.flow-li b.n { flex: none; width: 24px; height: 24px; border-radius: 99px; background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.flow-note { padding: 12px 14px; border-radius: 14px; background: var(--card); font-size: 13.5px; line-height: 1.45; }
.flow-note.warn { border-left: 3px solid #fb923c; background: rgba(251,146,60,.10); }
.pick { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; border-radius: 16px; border: 1px solid transparent;
  background: var(--card); color: var(--text); text-align: left; cursor: pointer; }
.pick[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.pick .row-main b { display: block; }
.big-num { font: 800 54px/1 var(--display); text-align: center; }
.timer-face { font: 800 64px/1 var(--display); text-align: center; font-variant-numeric: tabular-nums; }
.att { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.att[data-best="true"] { border-color: var(--brand); }
.att[data-miss="true"] { opacity: .6; text-decoration: line-through; }
.pt-take { width: 100%; }
.tool-ov { position: fixed; inset: 0; z-index: 46; background: var(--bg); display: flex; flex-direction: column; padding-top: var(--safe-t); }
.tool-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.tool-frame { flex: 1; width: 100%; border: 0; background: var(--bg); padding-bottom: var(--safe-b); }
/* test look (canvas Finger-test) */
.flow[data-look="test"] { background: #070C11; }
[data-theme="light"] .flow[data-look="test"] { background: var(--bg); }
.flow[data-look="test"] .flow-head { align-items: center; padding: 14px 16px 10px; }
.flow-x { flex: none; width: 44px; height: 44px; border: 0; background: rgba(255,255,255,.07); }
[data-theme="light"] .flow-x { background: var(--card-2); }
.flow-tt { flex: 1; min-width: 0; text-align: center; }
.flow-top { font: 700 11px var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-sub { margin-top: 4px; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-dots { flex: none; display: flex; gap: 4px; width: 44px; justify-content: flex-end; }
.flow-dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line-2); }
.flow-dots i[data-on="true"] { background: var(--brand); }
.flow[data-look="test"] .flow-foot .btn { height: 54px; font-size: 16px; }
.ft-lbl { margin: 4px 0 0; font: 700 12px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.ft-card { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--bg-2); font-size: 14px; line-height: 1.45; }
.flow[data-look="test"] .ft-card { background: #0F1923; }
[data-theme="light"] .flow[data-look="test"] .ft-card { background: var(--card); }
.ft-li { display: flex; gap: 10px; }
.ft-li > span:first-child { color: var(--brand-text); }
.ft-h1 { margin: 2px 0 0; font: 800 34px/.95 var(--display); text-transform: uppercase; }
.ft-eb { font: 700 11px var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--brand-text); }
.tiles { display: grid; gap: 8px; }
.tile { min-height: 62px; padding: 8px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--card); color: var(--text-2);
  font: 700 12.5px/1.25 var(--font); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center; }
.flow[data-look="test"] .tile { background: #0F1923; }
[data-theme="light"] .flow[data-look="test"] .tile { background: var(--card); }
.tile[aria-pressed="true"] { border: 1.5px solid var(--brand); background: var(--brand-soft) !important; color: var(--text); }
.tile-l { font-size: 13.5px; }
.tile-s { font-weight: 600; font-size: 11.5px; color: var(--text-3); }
.chip { border-radius: 12px; min-height: 42px; }
.flow[data-look="test"] .chip { background: #0F1923; color: var(--text-2); }
[data-theme="light"] .flow[data-look="test"] .chip { background: var(--card); }
.chip[aria-pressed="true"] { border: 1.5px solid var(--brand); background: var(--brand-soft) !important; color: var(--text) !important; }
.ft-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #0F1923; }
[data-theme="light"] .ft-row { background: var(--card); }
.ft-row .ft-row-t { flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); line-height: 1.3; }
.ft-row .ft-row-t b { color: var(--text); font-size: 14.5px; }
.ft-last { padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.04); font-size: 13.5px; line-height: 1.4; color: var(--text-2); }
.ft-last b { color: var(--text); }
/* finger test ring (canvas 10b) — the hang pulses so it is never mistaken for a countdown */
.ft-ring { position: relative; width: 250px; height: 250px; margin: 0 auto; max-width: 100%; }
.ft-ring svg { max-width: 100%; height: auto; }
.ft-ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.ft-ph { font: 700 12px var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.ft-t { font: 800 64px/1 var(--display); font-variant-numeric: tabular-nums; }
/* the line under the number stays INSIDE the ring (Dennis 13 Oct: it overflowed) — the inner circle is ~190 px */
.ft-ps { font-size: 13px; line-height: 1.3; color: var(--text-3); max-width: 150px; text-align: center; overflow-wrap: anywhere; }
.ft-ring-in { padding: 0 40px; }
@keyframes hangPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .62; transform: scale(.94); } }
.hang-pulse { animation: hangPulse 1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hang-pulse { animation: none; } }
/* All results (edit / delete) */
.res summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--brand-text); padding: 6px 0; list-style: none; }
.res summary::-webkit-details-marker { display: none; }
.res summary::before { content: "▸ "; }
.res[open] summary::before { content: "▾ "; }
.res-list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.res-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; background: var(--card-2); }
.res-t { flex: 1; min-width: 140px; display: flex; flex-direction: column; font-size: 13px; }
.res-t b { font-size: 13.5px; }
.res-a { display: flex; gap: 6px; }
.res-del { color: #F6A3A3; }
.res-del-yes { background: #DC2626; color: #fff; }
/* Climbing log (Phase 2 v1 — canvas Climb-log) */
.cl { display: flex; flex-direction: column; gap: 10px; }
.cl > * { flex-shrink: 0; }
.cl-small { margin: 0; font-size: 12.5px; line-height: 1.4; }
.chips-h { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
.chips-h::-webkit-scrollbar { display: none; }
.chips-h .chip { flex: none; }
.cl-tabs .chip { min-height: 34px; font-size: 12.5px; }
.cl-parts { display: flex; flex-direction: column; gap: 8px; }
.cl-part { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(96,165,250,.10); }
.cl-part[data-kind="Main"] { border-color: rgba(188,211,130,.35); background: var(--brand-soft); }
.cl-pn { flex: none; width: 26px; height: 26px; border-radius: 99px; background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.cl-pt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12.5px; color: var(--text-2); }
.cl-pt b { font-size: 14.5px; color: var(--text); }
.cl-cnt { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--card); }
.cl-cl { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12px; color: var(--text-3); }
.cl-cl b { font-size: 14px; color: var(--text); }
.cl-cnt .stepper { gap: 6px; }
.cl-cnt .stepper b { font-size: 26px; min-width: 52px; }
.cl-cnt .stepper .icon-btn { width: 42px; height: 42px; }
.cl-rate { font-size: 12.5px; color: var(--text-3); text-align: right; }
.cl-dur { display: flex; justify-content: center; }
.cl-dur .stepper b { min-width: 120px; }
.cl-int { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cl-ib { min-height: 54px; padding: 4px 2px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; font: inherit; }
.cl-ib b { font: 800 19px/1 var(--display); }
.cl-ib span { font-size: 10px; line-height: 1.15; color: var(--text-3); text-align: center; }
.cl-ib[aria-pressed="true"] { border: 1.5px solid var(--brand); background: var(--brand-soft); }
.cl-sum { display: flex; flex-direction: column; border-radius: 16px; background: var(--card); padding: 4px 14px; }
.cl-sr { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.cl-sr:last-child { border-bottom: 0; }
.cl-sr span { flex: none; width: 64px; color: var(--text-3); }
.cl-sr b { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.cl-pv { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 16px; background: var(--card-2); font-size: 13.5px; }
.cl-pv p { margin: 0; line-height: 1.4; }
.cl-pv-top { display: flex; align-items: baseline; gap: 8px; }
.cl-pv-top b { font: 800 34px/1 var(--display); }
.cl-pv-top span { font-weight: 700; color: var(--text-2); }
.cl-z { font-style: normal; font-size: 11px; font-weight: 800; color: #0B121A; padding: 2px 7px; border-radius: 99px; margin-left: auto; }
.cl-warn { color: #fb923c; }
.cl-note { min-height: 80px; resize: vertical; font: inherit; }
.cl-sheet { display: flex; flex-direction: column; gap: 8px; }
.cl-li { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.cl-li b { font-size: 15.5px; }
.cl-li span { font-size: 12.5px; color: var(--text-3); }
.chip:disabled { opacity: .45; cursor: default; }
.cl-c { text-align: center; min-height: 1.4em; }
/* place picker (climbing log step 1) */
.pl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pl-edit, .pl-add, .pl-own { border: 0; background: none; padding: 6px 0; color: var(--brand-text); font: 700 13.5px var(--font); cursor: pointer; text-align: left; }
.pl-x { border-color: rgba(246,163,163,.45); }
.pl-confirm, .pl-undo { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--card-2); font-size: 13px; }
.pl-confirm p { margin: 0; line-height: 1.4; }
.pl-ca { display: flex; gap: 8px; justify-content: flex-end; }
.pl-undo { flex-direction: row; align-items: center; justify-content: space-between; }
.pl-find { display: flex; flex-direction: column; gap: 8px; }
.pl-res { display: flex; flex-direction: column; gap: 6px; }
.pl-hit { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pl-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pl-ht b { font-size: 14px; }
.pl-ht small { font-size: 12px; color: var(--text-3); }
.pl-act { flex: none; font-size: 12.5px; font-weight: 700; color: var(--brand-text); }
/* morning check + coach messages (sheets opened by a notification) */
.mc { display: flex; flex-direction: column; gap: 8px; }
.mc-head { margin: 0; font-size: 13px; line-height: 1.45; }
.mc-blk { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); }
.mc-t { font-size: 14.5px; line-height: 1.35; }
.mc-eb { font: 800 10.5px var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.mc-l { font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-top: 6px; }
.mc-scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.mc-scale .chip { min-height: 38px; padding: 0; justify-content: center; font-size: 13px; }
.mc-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); }
.mc-col { display: flex; flex-direction: column; gap: 6px; }
.mc-wide { width: 100%; text-align: left; justify-content: flex-start; }
.mc-row { display: flex; gap: 8px; }
.mc-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mc-err { font-size: 13px; color: var(--danger); }
.mc-err:empty { display: none; }
.mc-save { width: 100%; height: 50px; margin-top: 8px; }
.mc-skip { border: 0; background: none; color: var(--text-3); font: 700 13px var(--font); padding: 10px; cursor: pointer; }
.cm { display: flex; flex-direction: column; gap: 10px; }
.cm-msg { padding: 12px 14px; border-radius: 16px; background: var(--card-2); display: flex; flex-direction: column; gap: 4px; }
.cm-msg p { margin: 0; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
/* other-sport log (Phase 2, canvas Activity-log) */
.ac-fld { display: flex; flex-direction: column; gap: 8px; }
.ac-numrow { display: flex; align-items: center; gap: 8px; }
.ac-numrow .icon-btn { flex: none; width: 46px; height: 46px; font-size: 22px; }
.ac-num { flex: 1; min-width: 0; text-align: center; font: 800 24px var(--display); font-variant-numeric: tabular-nums; }
.ac-u { flex: none; min-width: 52px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.ac-dur { justify-content: center; align-self: center; }
.ac-dur b { min-width: 130px; }
.ac-commute { width: 100%; justify-content: flex-start; text-align: left; }
.ac-rpe .cl-ib { min-height: 46px; }
.ac-rep { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ac-rep > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ac-rep small { font-size: 12px; color: var(--text-3); }
.ac-sw { flex: none; width: 46px; height: 26px; border-radius: 99px; background: var(--line-2); position: relative; }
.ac-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 99px; background: #fff; transition: left .15s; }
.ac-rep[aria-pressed="true"] .ac-sw { background: var(--brand); }
.ac-rep[aria-pressed="true"] .ac-sw::after { left: 23px; }
/* multi-day route preview — the days joined by a line, as the calendar will draw them */
.cl-route { list-style: none; margin: 0; padding: 0 0 0 14px; display: flex; flex-direction: column; gap: 10px; border-left: 2px solid var(--z2); }
.cl-route li { position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.cl-route li::before { content: ""; position: absolute; left: -20px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 99px; background: var(--z2); }
.cl-rd { min-width: 92px; font-weight: 700; }
.cl-rv { display: inline-flex; align-items: center; gap: 6px; }
.cl-rv .cl-z { margin-left: 0; }
.cl-day { min-height: 34px; font-size: 12.5px; }
/* sends above total climbs (Dennis 14 Oct): the number and the line under it turn red */
.stepper b.cl-bad, .cl-rate.cl-bad { color: var(--danger); }
.cl-route-b { padding: 8px 12px; border-radius: 12px; background: rgba(96,165,250,.12); border-left: 3px solid var(--z2); font-size: 13.5px; }

/* strength log (Phase 2, canvas Strength-log) */
.sl-eb { font: 700 11px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); }
.sl-rx { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 6px; }
.sl-rx span { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 12px; background: var(--card); }
.sl-rx small { font-size: 11px; color: var(--text-3); }
.sl-rx b { font: 800 18px/1.1 var(--display); }
.sl-cue { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--card-2); font-size: 13px; line-height: 1.45; color: var(--text-2); }
.sl-sets { display: flex; flex-direction: column; gap: 8px; }
.sl-set { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.sl-set[data-next="true"] { border-color: rgba(188,211,130,.45); }
.sl-set[data-done="true"] { background: rgba(188,211,130,.08); }
.sl-n { flex: none; width: 46px; font-size: 13px; }
.sl-v { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; }
.sl-edit { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sl-edit .stepper { gap: 4px; }
.sl-edit .stepper b { font-size: 20px; min-width: 44px; }
.sl-edit .stepper .icon-btn { width: 36px; height: 36px; font-size: 18px; }
.sl-ld { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3); }
.sl-ld .in { width: 70px; text-align: center; }
.sl-tick { flex: none; width: 44px; height: 44px; border-radius: 99px; border: 1.5px solid rgba(188,211,130,.6); background: transparent; color: var(--brand-text); font: 800 18px var(--font); cursor: pointer; }
.sl-tick[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.sl-rest { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; }
.sl-rest:empty { display: none; }
.sl-wsi { font-size: 12.5px; color: var(--text-3); }
/* strength log: the exercise name as the heading · an easy-to-spot search (Dennis 14 Oct) */
.sl-head { display: flex; flex-direction: column; gap: 2px; }
.sl-head small { font: 700 11px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); }
.sl-name { margin: 0; font: 800 28px/1.05 var(--display); text-transform: uppercase; text-wrap: balance; }
.sl-search { position: relative; display: block; }
.sl-search .in { width: 100%; padding-left: 44px; border: 1.5px solid var(--brand); background: var(--card-2); min-height: 52px; font-size: 16px; }
.sl-mag { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2.5px solid var(--brand-text); border-radius: 99px; pointer-events: none; }
.sl-mag::after { content: ""; position: absolute; right: -7px; bottom: -6px; width: 8px; height: 2.5px; background: var(--brand-text); border-radius: 2px; transform: rotate(45deg); }

.sl-ld { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3); }
.sl-ld .in { width: 64px; text-align: center; padding: 0 4px; }
.sl-ldb { width: 34px; height: 34px; font-size: 17px; }
.cl-pv .lrow { margin-top: 4px; }
/* set rows: "Set 1 · ✓" on top, reps and load each on their own line below (two − / + pairs side by side were easy to mix up) */
.sl-set { flex-wrap: wrap; }
.sl-set .sl-n { flex: 1; }
.sl-set .sl-tick { order: 2; }
.sl-edit { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 10px 18px; }
.sl-edit .stepper b { min-width: 74px; font-size: 18px; }

/* My recurring activities (14 Oct 2026) */
.ac-list { gap: 0; }
.ac-rec { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line, rgba(255,255,255,.08)); }
.ac-rec[data-paused="true"] > b { opacity: .6; }
.ac-rec .chips { margin-top: 6px; flex-wrap: wrap; }
.ac-rec .chips .in { flex: 1 1 140px; min-width: 0; }
.ac-list > .btn { margin-top: 14px; width: 100%; }
/* finger-load summary on the sets screen — tap to change the set-up (14 Oct 2026) */
.sl-fsiset { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: 600 12.5px var(--font); text-align: left; cursor: pointer; }
.sl-fsiset span { color: var(--brand-text, #BCD382); font-weight: 700; flex-shrink: 0; }
/* 667 px (14 Oct 2026): effort 1–10 on ONE row; Until + Name side by side */
.ac-rpe { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.ac-rpe .cl-ib { min-height: 42px; border-radius: 10px; }
.ac-rpe .cl-ib b { font-size: 16px; }
.ac-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.sl-more { margin-top: 6px; }
/* 667 px (14 Oct 2026): a set row = a small "Set 1" line, then the controls and ✓ on one line (was ~120 px a set) */
.sl-set { row-gap: 2px; padding: 8px 12px; }
.sl-set .sl-n { flex: 0 0 100%; order: 1; font-size: 11.5px; color: var(--text-3); }
.sl-set .sl-edit { order: 2; flex: 1 1 0; flex-basis: auto; }
.sl-set .sl-v { order: 2; flex: 1 1 0; }
.sl-set .sl-tick { order: 3; }
/* 667 px (14 Oct 2026): log steps a little denser — touch targets stay ≥ 40 px */
.flow .cl { gap: 6px; }
.flow .ft-lbl { margin-top: 2px; }
.flow .chip { min-height: 40px; }
.flow .flow-note { padding: 10px 12px; }
.flow-body { padding-bottom: 12px; }

/* ══ Train (Phase 3a, 14 Oct 2026) — canvas "Train" + "Programme" ══ */
.tr-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.tr-day { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 0; border-radius: 14px; }
.tr-day[aria-current="date"] { background: var(--card); outline: 1.5px solid rgba(188,211,130,.6); }
.tr-dn { font-size: 11px; font-weight: 700; color: var(--text-3); }
.tr-day[aria-current="date"] .tr-dn { color: var(--brand-text); }
.tr-dc { width: 34px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font: 800 13px var(--font); border: 1px solid var(--line-2); color: var(--text-2); box-sizing: border-box; }
.tr-day[data-st="done"] .tr-dc { border: 0; color: #0B121A; }
.tr-day[data-st="missed"] .tr-dc { border: 1.5px dashed rgba(246,196,107,.7); color: #F6C46B; }
.tr-day[data-st="planned"] .tr-dc { border: 1.5px solid var(--brand); color: var(--text); }
.tr-dw { font-size: 10px; color: var(--text-3); }
.tr-day[data-st="missed"] .tr-dw { color: #F6C46B; }
.tr-quiet { font-size: 14px; line-height: 1.45; }
.tr-blocks { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tr-blocks li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.tr-bn { flex: none; width: 24px; height: 24px; border-radius: 8px; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--text-2); }
.tr-prog { display: flex; flex-direction: column; gap: 8px; text-align: left; width: 100%; border: 0; color: var(--text); cursor: pointer; font: inherit; }
.tr-prog-h { display: flex; justify-content: space-between; align-items: center; }
.tr-prog-n { font-size: 16px; }
.tr-segs { display: grid; gap: 4px; }
.tr-segs i { height: 6px; border-radius: 999px; }
.tr-date { flex: none; width: 40px; text-align: center; display: flex; flex-direction: column; }
.tr-date b { font: 800 20px/1 var(--display); }
.tr-date small { font-size: 10.5px; color: var(--text-3); }
.tr-dot { flex: none; width: 10px; height: 10px; border-radius: 999px; }
.tr-sheet { gap: 10px; }
.tr-ring { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--card); }
.tr-week { border-radius: 16px; background: var(--card); padding: 0 14px; }
.tr-week[data-now="true"] { border: 1px solid rgba(188,211,130,.35); }
.tr-week summary { display: flex; align-items: center; gap: 12px; min-height: 52px; cursor: pointer; list-style: none; }
.tr-week summary::-webkit-details-marker { display: none; }
.tr-wn { flex: none; width: 28px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; border: 1px solid var(--line-2); color: var(--text-3); box-sizing: border-box; }
.tr-wn[data-st="done"] { background: #9FB86A; border: 0; color: #0B121A; }
.tr-wn[data-st="now"] { border: 2px solid var(--brand); color: var(--brand-text); }
.tr-srow { display: flex; align-items: center; gap: 10px; min-height: 52px; border-top: 1px solid var(--line); padding: 6px 0; }
.tr-sd { flex: none; width: 46px; font-size: 12px; color: var(--text-3); }
.tr-ok { flex: none; width: 24px; height: 24px; border-radius: 999px; background: #9FB86A; color: #0B121A; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.tr-exs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tr-ex { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 14px; background: var(--card); font-size: 13.5px; }

/* ══ Session player (Phase 3, 14 Oct 2026) ══ */
.sp { gap: 10px; }
.sp-sub { margin: 0; font-size: 14px; color: var(--text-2); }
.sp-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.sp-card[data-fin="true"] { opacity: .78; }
.sp-h { display: flex; align-items: center; gap: 12px; }
.sp-n { flex: none; width: 30px; height: 30px; border-radius: 10px; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: var(--text-2); }
.sp-card[data-fin="true"] .sp-n { background: #9FB86A; color: #0B121A; }
.sp-k { display: block; font: 700 10.5px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); }
.sp-t { font-size: 15.5px; }
.sp-prose { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; }
.sp-p { margin: 0; }
.sp-ul, .sp-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.45; }
.sp-tbl { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13px; }
.sp-tr { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.sp-tr span { padding: 6px 10px; border-top: 1px solid var(--line); }
.sp-tr:first-child span { border-top: 0; font-weight: 700; color: var(--text-2); }
.sp-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sp-ok { font-weight: 800; color: #9FB86A; font-size: 14px; }
/* session rows open the session (14 Oct 2026) */
.tr-tap { width: 100%; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; padding: 0; }
.tr-tap svg.chev { flex: none; color: var(--text-3); }
.tr-open { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; padding: 4px 0; display: flex; flex-direction: column; gap: 2px; }

/* ══ Native finger timer (Phase 3b, 14 Oct 2026) — canvas "Timers" + "Timer-run" ══ */
.tm-ov { position: fixed; inset: 0; z-index: 60; background: #070C11; color: var(--text); overflow-y: auto; overscroll-behavior: contain;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px calc(env(safe-area-inset-bottom, 0px) + 20px); }
:root[data-theme="light"] .tm-ov { background: var(--bg); }
.tm-view { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.tm-view > * { flex-shrink: 0; }
.tm-top { display: flex; align-items: center; gap: 10px; }
.tm-tt { flex: 1; min-width: 0; text-align: center; padding-right: 44px; }
.tm-tt small { display: block; font: 700 11px var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.tm-tt b { display: block; margin-top: 3px; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-x { flex: none; }
.tm-h1 { margin: 4px 0 0; font: 800 34px/.95 var(--display); text-transform: uppercase; text-wrap: balance; }
.tm-proto { margin: 0; font-size: 13px; }
.tm-card { padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.tm-rx { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; text-align: center; }
.tm-rx span { display: flex; flex-direction: column; gap: 2px; }
.tm-rx b { font: 800 20px/1 var(--display); }
.tm-rx small { font-size: 10.5px; color: var(--text-3); }
.tm-load { display: flex; align-items: center; gap: 12px; }
.tm-steprow { display: flex; align-items: center; gap: 8px; }
.tm-steprow b { min-width: 58px; text-align: center; font: 800 24px/1 var(--display); }
.tm-note { padding: 10px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.45; background: rgba(251,191,36,.1); color: #F6C46B; }
.tm-note[data-ok="true"] { background: rgba(188,211,130,.08); color: var(--brand-text); }
.tm-note.warn { background: rgba(246,169,75,.08); color: #F6C46B; }
.tm-chk { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-2); }
.tm-edit { align-self: flex-start; }
.tm-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tm-step { padding: 10px 12px; border-radius: 14px; background: var(--card); display: flex; flex-direction: column; gap: 6px; }
.tm-step .tm-steprow { justify-content: space-between; }
.tm-step .tm-steprow b { min-width: 0; font-size: 20px; }
.tm-go { min-height: 54px; font-size: 16px; }
.tm-run { display: flex; flex-direction: column; gap: 12px; }
.tm-meta { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.tm-dots { display: grid; gap: 3px; }
.tm-dots i { height: 6px; border-radius: 999px; background: var(--line-2); }
.tm-dots i[data-on="true"] { background: var(--brand); }
.tm-dots i[data-now="true"] { background: var(--text); }
.tm-ring { position: relative; width: min(290px, 78vw); aspect-ratio: 1; margin: 6px auto 0; max-width: 100%; }
.tm-ring svg { width: 100%; height: 100%; }
.tm-ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.tm-phase { font: 800 20px/1 var(--display); letter-spacing: .12em; }
.tm-num { font: 800 112px/1 var(--display); }
@keyframes tmPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.tm-pulse { animation: tmPulse 1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .tm-pulse { animation: none; } }
.tm-cue { padding: 12px 14px; border-radius: 16px; background: var(--card); font-size: 13.5px; line-height: 1.45; text-align: center; color: var(--text-2); }
.tm-ctl { display: flex; align-items: center; justify-content: center; gap: 22px; }
.tm-sp { width: 58px; }
.tm-pain { width: 58px; height: 58px; border-radius: 999px; border: 1px solid rgba(246,169,75,.5); background: rgba(246,169,75,.1); color: #F6C46B; font: 800 12px var(--font); cursor: pointer; }
.tm-play { width: 84px; height: 84px; border-radius: 999px; border: 0; background: var(--brand); color: #0B121A; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tm-skip { width: 58px; height: 58px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tm-restadj { display: flex; align-items: center; justify-content: center; gap: 12px; }
.tm-end { align-self: center; }
.tm-fsi { display: flex; align-items: center; gap: 12px; }
.tm-fsib { flex: none; width: 62px; height: 62px; border-radius: 18px; background: var(--card-2); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tm-fsib b { font: 800 26px/1 var(--display); }
.tm-fsib small { font-size: 9px; font-weight: 800; }
.tm-hub { gap: 12px; }
.tm-grp { display: flex; flex-direction: column; gap: 8px; }
.tm-tgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tm-tcard { min-height: 112px; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-align: left; display: flex; flex-direction: column; gap: 4px; font: inherit; cursor: pointer; }
.tm-tcard[aria-disabled="true"] { opacity: .55; }
.tm-tkind { font: 800 10px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--brand-text); }
.tm-tname { font: 800 18px/1.05 var(--display); text-transform: uppercase; }
.tm-tlock { color: var(--text-3); }
.tm-classic { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding-top: 6px; border-top: 1px solid var(--line); }

/* ══ History — "Your sessions" (Phase 3c, 15 Oct 2026) ══ */
.hs { gap: 12px; }
.hs-head { gap: 10px; }
.hs-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; box-sizing: border-box; }
.hs-dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; margin-right: 6px; vertical-align: middle; }
.hs-list { gap: 14px; }
.hs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hs-stats div { padding: 10px 12px; border-radius: 16px; background: var(--card); display: flex; flex-direction: column; gap: 2px; }
.hs-stats b { font: 800 24px/1 var(--display); }
.hs-stats small { font-size: 11.5px; color: var(--text-2); }
.hs-week { display: flex; flex-direction: column; gap: 6px; }
.hs-wh { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hs-tot { padding: 2px 10px; border-radius: 999px; font: 800 13px var(--display); background: rgba(255,255,255,.06); color: var(--text-3); white-space: nowrap; }
.hs-tot[data-st="in"] { background: #A0B36E; color: #0B121A; }
.hs-tot[data-st="below"] { background: rgba(96,165,250,.22); color: #9CC3F5; }
.hs-tot[data-st="over"] { background: rgba(251,191,36,.9); color: #0B121A; }
.hs-tot[data-st="plain"] { background: var(--card-2); color: var(--text); }
.hs-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px; border-radius: 16px; background: var(--card); border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; width: 100%; }
.hs-badge { flex: none; width: 44px; height: 44px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hs-badge b { font: 800 17px/1 var(--display); }
.hs-badge small { font-size: 8.5px; font-weight: 800; }
.hs-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hs-main > b { font-size: 14.5px; }
.hs-note { font-size: 12px; color: var(--text-3); font-style: italic; }
.hs-day { flex: none; font-size: 11.5px; color: var(--text-3); text-align: right; }
.hs-none { text-align: center; color: var(--text-2); }
.tr-all { width: 100%; border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; }

/* ══ Calendar (Phase 3d, 15 Oct 2026) — canvas "Calendar" ══ */
.toast-act { margin-left: 8px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--brand); background: transparent; color: var(--brand-text); font: 800 12.5px var(--font); cursor: pointer; }
.cal { gap: 10px; }
.cal-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-month { margin: 0; font: 800 26px/1 var(--display); text-transform: uppercase; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; box-sizing: border-box; }
.cal-grid { display: flex; flex-direction: column; gap: 2px; }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) 34px; align-items: center; gap: 2px; }
.cal-dow span { text-align: center; font-size: 11px; font-weight: 700; color: var(--text-3); }
.cal-tot-h { font-size: 10px !important; }
.cal-wk { display: flex; flex-direction: column; }
.cal-ribbon { font: 700 9.5px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--brand-text); padding: 4px 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-day { position: relative; height: 54px; padding: 5px 0 0; border: 0; border-radius: 12px; background: transparent; color: var(--text); font: 700 13px var(--font); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cal-day[data-out="true"] { opacity: .38; }
.cal-day[aria-pressed="true"] { background: var(--card); outline: 1.5px solid var(--brand); }
.cal-day[aria-current="date"] .cal-n { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.cal-dots { display: flex; gap: 3px; min-height: 7px; }
.cal-dot { display: inline-block; width: 7px; height: 7px; border-radius: 999px; box-sizing: border-box; border: 1.5px solid transparent; }
.cal-dot[data-st="planned"], .cal-dot[data-st="skipped"] { background: transparent !important; }
.cal-dot[data-st="missed"] { background: transparent !important; border-style: dashed; }
.cal-mk { position: absolute; left: 6px; right: 6px; bottom: 5px; height: 3px; border-radius: 999px; }
.cal-route { position: absolute; left: 50%; right: 50%; bottom: 11px; height: 3px; background: #9FB86A; border-radius: 999px; }
.cal-route[data-l="true"] { left: -2px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cal-route[data-r="true"] { right: -2px; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cal-route[data-l="false"][data-r="false"] { left: 40%; right: 40%; }
.cal-tot { text-align: center; font: 800 12px var(--display); padding: 3px 0; border-radius: 8px; color: var(--text-3); }
.cal-tot[data-st="in"] { background: #A0B36E; color: #0B121A; }
.cal-tot[data-st="below"] { background: rgba(96,165,250,.22); color: #9CC3F5; }
.cal-tot[data-st="over"] { background: rgba(251,191,36,.9); color: #0B121A; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; padding-top: 8px; font-size: 11px; color: var(--text-3); }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-route-k { display: inline-block; width: 16px; height: 3px; border-radius: 999px; background: #9FB86A; }
.cal-tot-k { display: inline-block; width: 14px; height: 9px; border-radius: 3px; background: #A0B36E; }
.cal-weekv { display: flex; flex-direction: column; gap: 4px; }
.cal-wrow { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 4px 10px; border: 0; border-radius: 14px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.cal-wrow[aria-pressed="true"] { background: var(--card); }
.cal-wsum { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-daysec { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.cal-banner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--card); border-left: 3px solid; }
.cal-item { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--card); }
.cal-ih { display: flex; align-items: center; gap: 12px; }
.cal-rtl { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: #9FB86A; }
.cal-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-movebox { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.cal-brow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.cal-brow[data-done="true"] { cursor: default; opacity: .6; }
.cal-btick { width: 20px; height: 20px; flex: none; accent-color: var(--brand); }
.cal-brow .cal-pick { flex-basis: 100%; }
.cal-pick { display: flex; flex-direction: column; gap: 6px; }
.cal-pick-h { display: flex; align-items: center; justify-content: space-between; }
.cal-pick-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; font-size: 11px; }
.cal-pick-g button { height: 36px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); font: 700 13px var(--font); cursor: pointer; }
.cal-pick-g button[data-out="true"] { opacity: .4; }
.cal-pick-g button:disabled { opacity: .2; cursor: default; }
/* calendar — countdowns, + Add, Remove (15 Oct 2026, "Finish calendar") */
.cal-cds { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.cal-cd { position: relative; display: flex; align-items: stretch; border-radius: 16px; overflow: hidden; background: var(--card); }
.cal-cd::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: rgba(255,255,255,.07); border-right: 1px solid rgba(255,255,255,.06); pointer-events: none; }
.cal-cd[data-peak="true"]::before { background: rgba(188,211,130,.22); border-right-color: rgba(188,211,130,.35); }
.cal-cd-main { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 6px 12px 14px; background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.cal-cd-ico { flex: none; font-size: 20px; width: 28px; text-align: center; }
.cal-cd-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cal-cd-t small { font-size: 12px; }
.cal-cd-n { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.cal-cd-n b { font-size: 24px; font-weight: 800; }
.cal-cd-n small { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin-top: 3px; }
.cal-cd-x { position: relative; flex: none; align-self: center; margin-right: 6px; }
.cal-add { width: 100%; margin-top: 4px; }
.cal-rm { flex: none; }
.cal-ak-list { display: flex; flex-direction: column; gap: 8px; }
.cal-ak { border-radius: 16px; background: var(--card); border: 1px solid transparent; }
.cal-ak[data-on="true"] { border-color: rgba(188,211,130,.4); background: rgba(188,211,130,.06); }
.cal-ak-pick { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: none; border: 0; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.cal-ak-pick > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-ak-pick small { font-size: 12px; }
.cal-ak-form { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 14px; }
.cal-ak-dates { display: flex; align-items: center; gap: 8px; }
.cal-ak-dates .in { flex: 1; min-width: 0; }
.cal-ak-cd { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.cal-ak-cd input { width: 18px; height: 18px; accent-color: var(--brand); }
.cal-ak-warn { color: #fbbf24; margin: 0; }
/* exercise library (3e, 15 Oct 2026) */
.xl, .xl-list { display: flex; flex-direction: column; gap: 10px; }
.xl-head { display: flex; flex-direction: column; gap: 10px; }
.xl-n { margin-left: 6px; opacity: .6; font-weight: 700; }
.xl-sec { display: flex; flex-direction: column; gap: 6px; }
.xl-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; background: var(--card); border: 0; color: var(--text); text-align: left; font: inherit; cursor: pointer; min-height: 60px; }
.xl-thumb { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: rgba(255,255,255,.75); font-size: 14px; }
.xl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.xl-main small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xl-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.xl-rec { color: #C6B5FC; font-size: 14px; }
.xl-tag { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #C8DB9A; }
.xl-more { width: 100%; }
.xl-ex { display: flex; flex-direction: column; gap: 14px; }
.xl-media { position: relative; aspect-ratio: 16 / 10; max-width: 100%; border-radius: 16px; overflow: hidden; display: grid; place-items: center; }
.xl-video { width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
.xl-play { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; color: var(--text); cursor: pointer; font: inherit; }
.xl-play span { width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; font-size: 24px; }
.xl-novid { display: flex; flex-direction: column; gap: 6px; text-align: center; padding: 16px; max-width: 34ch; }
.xl-novid small { color: var(--text-2); font-size: 13px; }
.xl-top { display: flex; flex-direction: column; gap: 4px; }
.xl-recbox { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(167,139,250,.1); }
.xl-recbox > span { display: flex; flex-direction: column; gap: 2px; }
.xl-recbox b { font-size: 20px; color: #C6B5FC; }
.xl-acts { display: flex; gap: 8px; }
.xl-acts .btn { flex: 1; }
.xl-acts .btn-ghost { flex: none; padding: 0 22px; }
.xl-plan { padding: 10px 12px; border-radius: 12px; background: rgba(188,211,130,.1); font-size: 13px; }
.xl-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.xl-facts > div { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 12px; background: var(--card); }
.xl-txt { display: flex; flex-direction: column; gap: 6px; }
.xl-txt p, .xl-tip p { margin: 0; line-height: 1.55; color: var(--text-2); }
.xl-tip { padding: 12px 14px; border-radius: 14px; background: var(--card); border-left: 3px solid var(--brand); display: flex; flex-direction: column; gap: 6px; }
/* 15 Oct: week rows open the session; calendar cards open details; calmer grid */
.srow-btn { width: 100%; background: none; border: 0; padding: 4px 0; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.srow .row-main { flex: 1; min-width: 0; }
button.cal-ih { width: 100%; background: none; border: 0; padding: 0; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.cal-ih-more { flex: none; color: var(--text-3); font-size: 20px; }
.cal-bar { display: flex; align-items: center; gap: 8px; }
.cal-bar .cal-seg { flex: 1; }
.cal-desc { margin: 0; line-height: 1.55; color: var(--text-2); white-space: pre-line; }
.cal-blocks { display: flex; flex-direction: column; gap: 6px; }
/* session sheet — the classic modal's look (15 Oct 2026) */
.sv { display: flex; flex-direction: column; gap: 12px; }
.sv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 16px; }
.sv-pager { display: flex; align-items: center; gap: 8px; }
.sv-hero { display: flex; gap: 16px; align-items: stretch; flex-wrap: wrap; padding: 16px; border-radius: 16px; background: var(--card); }
.sv-big > div { display: flex; align-items: baseline; gap: 8px; }
.sv-big b { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.sv-big small { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--text-3); }
.sv-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 10px; border-radius: 999px; border: 1px solid; font-size: 12px; font-weight: 700; }
.sv-pill i { width: 7px; height: 7px; border-radius: 50%; }
.sv-set { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 1px solid var(--line-2); justify-content: center; }
.sv-hero > .sv-set:first-child { border-left: 0; padding-left: 0; }
.sv-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sv-tiles > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; background: var(--card); }
.sv-tiles b { font-size: 20px; font-weight: 800; }
.sv-tiles small { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.sv-sec { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.sv-lbl { margin: 0; font: 800 11px var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.sv-lblrow { display: flex; align-items: center; justify-content: space-between; }
.sv-q { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--text-3); font: 800 11px var(--font); cursor: pointer; }
.sv-p { margin: 0; line-height: 1.6; color: var(--text-2); }
.sv-pre { white-space: pre-wrap; }
.sv-act { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.sv-act:first-of-type { border-top: 0; }
.sv-act-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sv-tag { font-size: 12px; font-weight: 600; color: #C8DB9A; background: rgba(188,211,130,.14); border-radius: 6px; padding: 2px 8px; }
.sv-eng { font-size: 11px; font-weight: 700; color: #0F1923; border-radius: 6px; padding: 2px 8px; }
.sv-rec { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); line-height: 1.6; }
.sv-more summary { display: inline-flex; cursor: pointer; list-style: none; padding: 8px 16px; border-radius: 999px; font: 700 13px var(--font); color: #C8DB9A; background: rgba(188,211,130,.1); border: 1px solid rgba(188,211,130,.38); }
.sv-more summary::-webkit-details-marker { display: none; }
.sv-more[open] summary { margin-bottom: 6px; }
/* session sheet v2 — photo, rising card, icon stats, verdict headline, tabs (15 Oct 2026) */
.sheet-bare { padding: 0 0 calc(var(--safe-b) + 20px); }
.sv2 { display: flex; flex-direction: column; }
.sv2-photo { position: relative; height: 230px; background: #141E29 center 35% / cover no-repeat; border-radius: 24px 24px 0 0; }
.sv2-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(11,18,26,.25) 0%, rgba(11,18,26,0) 40%, rgba(11,18,26,.55) 100%); pointer-events: none; }
.sv2-x { position: absolute; z-index: 2; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(11,18,26,.7); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.sv2-pager { position: absolute; z-index: 2; top: 14px; left: 14px; display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(11,18,26,.7); color: #fff; font-size: 13px; font-weight: 700; }
.sv2-pager button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 18px; cursor: pointer; }
.sv2-pager button:disabled { opacity: .35; cursor: default; }
.sv2-card { position: relative; margin-top: -34px; border-radius: 28px 28px 0 0; background: var(--bg-2); padding: 10px 18px 0; display: flex; flex-direction: column; gap: 16px; }
.sv2-grip { width: 44px; height: 4px; border-radius: 99px; background: var(--line-2); margin: 0 auto; }
.sv2-title { margin: 4px 0 0; text-align: center; font: 800 26px var(--font); letter-spacing: -.02em; text-wrap: balance; }
.sv2-sub { margin: -10px 0 0; text-align: center; color: var(--text-2); font-size: 14px; }
.sv2-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sv2-stat { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sv2-stat > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.sv2-stat b { font-size: 18px; font-weight: 800; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv2-stat small { font-size: 12px; color: var(--text-3); }
.sv2-ic { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); color: #BCD382; }
.sv2-verdict h3 { margin: 0; font: 800 24px var(--font); letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
.sv2-verdict p { margin: 8px 0 0; color: var(--text-2); line-height: 1.55; font-size: 15px; }
.sv2-tabs { display: flex; gap: 8px; overflow-x: auto; }
.sv2-tabs button { flex: none; height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent; background: var(--card); color: var(--text-2); font: 700 14px var(--font); cursor: pointer; }
.sv2-tabs button[aria-selected="true"] { border-color: #BCD382; color: #DCE8B8; background: rgba(188,211,130,.08); }
.sv2-tab { display: flex; flex-direction: column; gap: 12px; }
.sv2-zone { display: flex; align-items: center; gap: 10px; }
.sv2-zone .sv-pill { margin-top: 0; }
.sv2-facts { display: flex; flex-direction: column; border-radius: 16px; background: var(--card); padding: 4px 14px; }
.sv2-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.sv2-facts > div:first-child { border-top: 0; }
.sv2-facts span { color: var(--text-3); }
.sv2-facts b { text-align: right; }
.sv2-note, .sv2-coach { padding: 14px 16px; border-radius: 16px; background: var(--card); }
.sv2-note small, .sv2-coach small { font: 800 11px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.sv2-note p, .sv2-coach p { margin: 6px 0 0; line-height: 1.6; white-space: pre-wrap; }
.sv2-coach { border: 1px solid rgba(188,211,130,.35); }
.sv2-act { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--card); }
.sv2-st { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; color: var(--text-3); background: rgba(255,255,255,.06); }
.sv2-st[data-st="done"] { color: #C8DB9A; background: rgba(188,211,130,.14); }
.sv2-st[data-st="partial"] { color: #F6C46B; background: rgba(246,196,107,.14); }
.sv2-act > div:not(.sv-act-h) { font-weight: 700; }
.hero-acc { color: #BCD382; }   /* the green second line of the week headline (canvas Today board) */
/* Train week strip → day sheet (15 Oct 2026) */
button.tr-day { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.tr-kd { display: flex; gap: 3px; height: 6px; }
.tr-kd i { width: 6px; height: 6px; border-radius: 50%; }
.dv { display: flex; flex-direction: column; gap: 14px; }
.dv-sum { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--card); }
.dv-sum b { font-size: 17px; }
.dv-sec { display: flex; flex-direction: column; gap: 8px; }
.xl-thumb { position: relative; overflow: hidden; }
.xl-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xl-clear { align-self: flex-start; color: #F6C46B; border-color: rgba(246,196,107,.45); }
.xl-swaps { display: flex; flex-direction: column; gap: 6px; }
.xl-swap { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 0; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.xl-swap .xl-thumb { width: 36px; height: 36px; }
.xl-swap .xl-day { color: var(--text-3); font-size: 18px; }
.xl-media.xl-poster { background-size: contain, cover; background-repeat: no-repeat; background-position: center; background-color: #0B121A; }   /* the whole thumbnail, not a zoomed crop (15 Oct) */
.xl-media.xl-poster .xl-play small { padding: 3px 8px; border-radius: 6px; background: rgba(11,18,26,.6); }
/* Rehab tab — Phase 4a (15 Oct 2026), canvas "Rehab" */
.rb { display: flex; flex-direction: column; gap: 12px; }
.rb-hero { position: relative; min-height: 250px; margin: 0 -16px;   /* was -16px on top: it slid under the page heading (17 Oct 2026) */ padding: 18px 20px 16px; display: flex; flex-direction: column; justify-content: flex-end; background-size: cover; background-position: 50% 45%; }
.rb-pager { position: absolute; top: 16px; left: 20px; display: flex; gap: 6px; }
.rb-pager button { width: 26px; height: 6px; border-radius: 999px; border: 0; background: rgba(255,255,255,.3); cursor: pointer; padding: 0; }
.rb-pager button[aria-pressed="true"] { background: #F6A94B; }
.rb-eyebrow { font: 700 11px/1.3 var(--font); letter-spacing: .2em; text-transform: uppercase; color: #F6A94B; }
.rb-h { margin-top: 10px; font-size: 50px; line-height: .9; }
.rb-sub { margin: 8px 0 0; font-size: 14px; color: rgba(242,244,239,.86); }
.rb-bars, .rb-names { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.rb-bars i { height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); }
.rb-bars i[data-st="done"] { background: #F6A94B; }
.rb-bars i[data-st="now"] { background: linear-gradient(90deg, #F6A94B 40%, rgba(246,169,75,.25) 40%); }
.rb-names { margin-top: 6px; font-size: 10px; line-height: 1.25; color: var(--text-3); }
.rb-names span[data-now="true"] { color: #F6C46B; font-weight: 800; }
.rb-flag { padding: 12px 14px; border-radius: 16px; background: rgba(246,163,163,.12); border: 1px solid rgba(246,163,163,.4); }
.rb-flag p { margin: 4px 0 0; font-size: 13.5px; }
button.card { width: 100%; border: 0; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.rb-mc, .rb-coach, .rb-ci { display: flex; align-items: center; gap: 12px; }
.rb-mc[data-due="true"] { outline: 1px solid rgba(251,191,36,.45); }
.rb-mc > span:nth-child(2), .rb-coach > span:nth-child(2), .rb-ci > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.rb-mc-ico { font-size: 22px; }
.rb-go { color: var(--text-3); font-size: 20px; }
.rb-facts { display: grid; grid-template-columns: 1fr; gap: 8px; }
.rb-fact { display: flex; flex-direction: column; gap: 6px; }
.rb-fact b { font-size: 18px; }
.rb-fact > b.tnum { font: 800 30px/1 var(--display); }
.rb-climb { grid-column: 1 / -1; }
.rb-climb b { font-size: 15px; }
.rb-focus { padding: 14px 16px; border-radius: 20px; background: rgba(246,169,75,.08); border: 1px solid rgba(246,169,75,.3); }
.rb-focus p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; }
.rb-caution { color: #F6C46B; font-size: 13px !important; }
.rb-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rb-two ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.4; }
.rb-ok { color: #C8DB9A; } .rb-no { color: #F6A3A3; }
.rb-next { display: flex; flex-direction: column; gap: 10px; }
.rb-crit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rb-crit li { display: flex; align-items: center; gap: 10px; }
.rb-crit li > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.rb-tick { width: 22px; text-align: center; color: var(--text-3); }
.rb-crit li[data-met="true"] .rb-tick { color: #C8DB9A; }
.rb-av { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; background: #1F3A2A; color: #DDEAB8; display: grid; place-items: center; font-weight: 800; }
.rb-av i { position: absolute; right: -2px; top: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #BCD382; color: #0B121A; font: 800 11px/18px var(--font); text-align: center; font-style: normal; }
.rb-acts { display: flex; flex-direction: column; gap: 8px; }
.rb-resolve { align-self: center; }
.rb-others { display: flex; flex-direction: column; gap: 8px; }
.rb-ci > span:first-child { font-size: 20px; }
.rb-safety { align-self: center; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 12.5px; }
.rb-empty { display: flex; flex-direction: column; gap: 10px; }
/* the matrix (16 Oct 2026) — the classic Training Activity heatmap as weeks × days */
.mx-grid { display: flex; flex-direction: column; gap: 4px; }
.mx-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) 42px; gap: 4px; align-items: center; }
.mx-head span { text-align: center; font-size: 11px; color: var(--text-3); }
.mx-cell { position: relative; aspect-ratio: 1; border-radius: 8px; border: 0; background: rgba(255,255,255,.06); color: var(--text-3); font: 600 11px var(--font); cursor: pointer; padding: 0; }
.mx-cell[data-fut="true"] { background: rgba(255,255,255,.025); }
.mx-cell:disabled { cursor: default; }
.mx-cell[aria-current="date"] { outline: 1.5px solid #BCD382; outline-offset: 1px; }
.mx-d { position: absolute; top: 3px; left: 5px; font-size: 10px; opacity: .8; }
.mx-note { position: absolute; top: 2px; right: 4px; font-size: 11px; font-weight: 900; color: #F2F4EF; text-shadow: 0 0 3px rgba(0,0,0,.6); }
.mx-dots { position: absolute; bottom: 4px; left: 0; right: 0; display: flex; justify-content: center; gap: 3px; }
.mx-dots i { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(11,18,26,.6); }
.mx-tot { text-align: right; font: 800 13px var(--display); color: var(--text-2); }
.mx-leg i.mx-dotk { width: 7px; height: 7px; border-radius: 50%; }
.mx-notek { font-weight: 900; margin-right: 3px; }
.sv2-row { display: flex; gap: 8px; }
.sv2-row .btn { flex: 1; }
.sv2-foot { padding-top: 6px; border-top: 1px solid var(--line-2); }
.sv2-rm { color: #F6A3A3; border-color: rgba(246,163,163,.35); }
.sv2-danger { background: #E5484D; color: #fff; }
.sv2-ta { height: auto; min-height: 120px; padding: 12px; line-height: 1.5; resize: vertical; font: 400 15px var(--font); }
.rb-more summary { cursor: pointer; color: #BCD382; font-weight: 700; font-size: 13.5px; list-style: none; padding-top: 4px; }
.rb-more summary::-webkit-details-marker { display: none; }
.rb-more summary::after { content: " ›"; }
.rb-more[open] summary::after { content: " ⌄"; }
.rb-more ul { margin: 6px 0 10px; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.4; }
.rb-more .ft-lbl { display: block; margin-top: 8px; }
.rb-ci-quiet b { color: var(--text-2); }
.rb-climb .rb-caution { margin: 2px 0 0; }
/* Coming up with Start (16 Oct 2026) — shared by Train and Rehab */
.tr-row { gap: 8px; }
.tr-row .tr-tap { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--text); text-align: left; font: inherit; cursor: pointer; padding: 0; }
.tr-row .btn-sm { flex: none; height: 38px; padding: 0 14px; font-size: 13px; }
.rb-today { display: flex; flex-direction: column; gap: 10px; border: 1px solid rgba(188,211,130,.3); }
.rb-today-row { display: flex; align-items: center; gap: 12px; }
.rb-today-row > span { display: flex; flex-direction: column; gap: 2px; }
/* exercise thumbnails in plans, sessions and the strength log (16 Oct 2026) */
.ex-th { flex: none; width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,.06); display: block; }
button.tr-ex { display: flex; align-items: center; gap: 10px; text-align: left; border: 0; color: var(--text); font: inherit; cursor: pointer; }
button.tr-ex > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-exs { display: flex; flex-direction: column; gap: 6px; }
.sp-ex { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; background: rgba(255,255,255,.04); border: 0; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.sp-ex > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sl-head-th { display: flex; align-items: center; gap: 12px; }
.sl-head-th > span { display: flex; flex-direction: column; min-width: 0; }
.sl-th { flex: none; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 14px; }
.sl-th .ex-th { width: 64px; height: 64px; border-radius: 14px; }
/* timer set-up (16 Oct 2026): change button full width; notes stacked, calm — a coloured edge, not an orange fill */
.tm-edit { align-self: stretch; width: 100%; justify-content: center; gap: 10px; border-color: rgba(188,211,130,.45); color: #DDEAB8; }
.tm-edit[aria-expanded="true"] { background: rgba(188,211,130,.08); }
.tm-notes { display: flex; flex-direction: column; gap: 8px; }
.tm-notes .tm-note { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; border-radius: 14px; background: var(--card); color: var(--text-2); border-left: 3px solid #F6C46B; font-size: 13px; }
.tm-notes .tm-note[data-ok="true"] { border-left-color: #9FB86A; background: var(--card); color: var(--text-2); }
.tm-notes .tm-note b { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #F6C46B; }
.tm-notes .tm-note[data-ok="true"] b { color: #C8DB9A; }
.tm-notes .tm-note.warn b { color: #F6A94B; }
/* plan card — stacked bars per week (16 Oct 2026) */
.tr-weeks { display: grid; gap: 6px; align-items: end; }
.tr-wcol { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 6px 6px 4px; border-radius: 12px; }
.tr-wcol[data-now="true"] { background: rgba(188,211,130,.07); outline: 1px solid rgba(188,211,130,.4); }
.tr-stack { display: flex; flex-direction: column-reverse; gap: 3px; min-height: 42px; justify-content: flex-start; }
.tr-stack i, .tr-wkey i { display: block; height: 9px; border-radius: 3px; background: var(--line-2); }
.tr-stack i[data-st="done"], .tr-wkey i[data-st="done"] { background: #9FB86A; }
.tr-stack i[data-st="part"], .tr-wkey i[data-st="part"] { background: linear-gradient(90deg, #9FB86A 50%, rgba(159,184,106,.3) 50%); }
.tr-stack i[data-st="missed"], .tr-wkey i[data-st="missed"] { background: transparent; border: 1.5px dashed #F6C46B; height: 6px; }
.tr-stack i[data-st="skip"] { background: rgba(255,255,255,.12); }
.tr-stack i[data-st="todo"], .tr-wkey i[data-st="todo"] { background: rgba(255,255,255,.14); }
.tr-stack i[data-st="none"] { height: 3px; background: rgba(255,255,255,.06); }
.tr-wl { text-align: center; font-size: 11px; color: var(--text-3); white-space: nowrap; }
.tr-wl b { color: var(--text-2); }
.tr-wcol[data-now="true"] .tr-wl b { color: #C8DB9A; }
.tr-wkey { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--text-3); }
.tr-wkey span { display: inline-flex; align-items: center; gap: 5px; }
.tr-wkey i { width: 14px; }
/* plan card: a block per training day, split when a day has several sessions (16 Oct 2026) */
.tr-stack i.tr-day-b { display: flex; gap: 2px; background: none; height: 9px; }
.tr-day-b span { flex: 1; border-radius: 3px; background: rgba(255,255,255,.14); }
.tr-day-b span[data-st="done"] { background: #9FB86A; }
.tr-day-b span[data-st="part"] { background: linear-gradient(90deg, #9FB86A 50%, rgba(159,184,106,.3) 50%); }
.tr-day-b span[data-st="missed"] { background: transparent; border: 1.5px dashed #F6C46B; }
.tr-day-b span[data-st="skip"] { background: rgba(255,255,255,.12); }
/* skipped has its own look (16 Oct 2026) — it read as "to come" in a past week */
.tr-day-b span[data-st="skip"], .tr-stack i[data-st="skip"], .tr-wkey i[data-st="skip"] { background: repeating-linear-gradient(135deg, rgba(255,255,255,.22) 0 3px, rgba(255,255,255,.04) 3px 6px); }
.tr-wkey-how { font-size: 11px; margin-top: -4px; }
.sl-media { aspect-ratio: 16 / 9; }
/* plan exercises: rows, six per page (16 Oct 2026) */
.tr-exs button.tr-ex { flex-direction: row; align-items: center; gap: 10px; padding: 8px; min-height: 64px; }
.tr-exs button.tr-ex .ex-th { width: 44px; height: 44px; border-radius: 10px; }
.tr-exs button.tr-ex b { font-size: 13.5px; line-height: 1.25; }
.tr-expager { display: flex; flex-direction: column; gap: 10px; }
.tr-expg { display: flex; align-items: center; justify-content: center; gap: 12px; }
.tr-expg-dots { display: flex; gap: 5px; }
.tr-expg-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.tr-expg-dots i[data-on="true"] { background: #BCD382; }
/* strength log rest ring (16 Oct 2026) */
.sl-rest:empty { display: none; }
.sl-ring { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px; border-radius: 20px; background: var(--card); }
.sl-ring-c { position: relative; width: 132px; height: 132px; }
.sl-ring-t { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.sl-ring-t b { font: 800 34px/1 var(--display); }
.sl-ring-t small { font-size: 11px; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; }
/* group player — Superset · Circuit · EMOM · AMRAP (16 Oct 2026, canvas Ex-formats) */
.gp { display: flex; flex-direction: column; gap: 12px; }
.gp-help { margin: 0; }
.gp-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--card); color: var(--text-2); }
.gp-rounds { display: grid; grid-auto-flow: column; gap: 4px; }
.gp-rounds i { height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); }
.gp-rounds i[data-st="done"] { background: #BCD382; } .gp-rounds i[data-st="now"] { background: rgba(242,244,239,.5); }
.gp-rl { text-align: center; margin-top: -6px; }
.gp-ring { position: relative; width: 168px; height: 168px; align-self: center; }
.gp-ring-t { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; padding: 0 18px; }
.gp-ring-t b { font: 800 44px/1 var(--display); }
.gp-ring-t small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.gp-skip { align-self: center; }
.gp-list { display: flex; flex-direction: column; gap: 6px; }
.gp-ex { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--card); border: 1px solid rgba(255,255,255,.06); }
.gp-ex[data-cur="true"] { border-color: rgba(188,211,130,.5); }
.gp-ex[data-done="true"] { background: rgba(188,211,130,.08); }
.gp-ph { position: relative; flex: none; padding: 0; border: 0; background: none; cursor: pointer; }
.gp-ph .ex-th { width: 52px; height: 52px; }
.gp-ph i { position: absolute; right: 3px; bottom: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(11,18,26,.75); color: #fff; font: 9px/18px var(--font); text-align: center; font-style: normal; }
.gp-exn { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gp-tag { font: 800 11px var(--font); color: #C8DB9A; letter-spacing: .06em; }
.gp-tick { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(188,211,130,.6); background: transparent; color: #BCD382; font-size: 20px; cursor: pointer; }
.gp-tick[aria-pressed="true"] { background: #BCD382; color: #0B121A; border: 0; }
.gp-count { display: flex; flex-direction: column; align-items: center; }
.gp-count b { font: 800 40px/1 var(--display); }
.gp-count small { color: var(--text-3); }
.gp-mark[aria-pressed="true"] { background: #9FB86A; }
.gp-mins { display: grid; grid-template-columns: repeat(auto-fill, minmax(18px, 1fr)); gap: 4px; }
.gp-mins i { height: 18px; border-radius: 5px; background: rgba(255,255,255,.08); }
.gp-mins i[data-st="ok"] { background: #9FB86A; } .gp-mins i[data-st="miss"] { background: transparent; border: 1.5px dashed #F6C46B; } .gp-mins i[data-st="now"] { outline: 1.5px solid #BCD382; }
.gp-go { width: 100%; }
.gp-fin { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.gp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gp-stats > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 6px; border-radius: 14px; background: var(--card); }
.gp-stats b { font: 800 26px/1 var(--display); }
.gp-stats small { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.gp-err { color: #F6A3A3; }
.gp-still { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(251,191,36,.1); color: #F6C46B; font-size: 13px; }
/* rest ring: full width, centred (16 Oct 2026, Dennis) */
.sl-rest { width: 100%; align-self: stretch; }
.sl-ring { width: 100%; box-sizing: border-box; align-items: center; justify-content: center; padding: 18px 16px; }
.sl-ring-c { width: 168px; height: 168px; margin: 0 auto; }
.sl-ring-c svg { width: 168px; height: 168px; }
.sl-ring-t b { font-size: 44px; }
.sl-ring .btn { width: 100%; }
.sl-v { display: flex; flex-direction: column; gap: 3px; }
.sl-rowrest { font: 700 13px var(--font); color: #C8DB9A; font-variant-numeric: tabular-nums; }
.sl-rowrest:empty { display: none; }
/* strength log: Different from planned + Skip exercise, half and half; skip in red (16 Oct 2026) */
.sl-acts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sl-acts2 .chip { justify-content: center; text-align: center; width: 100%; }
.sl-acts2 .chip:only-child { grid-column: 1 / -1; }
.sl-skipx { border-color: rgba(229,72,77,.7); color: #F6A3A3; }
.sl-skipx[aria-pressed="true"] { background: rgba(229,72,77,.14); border-color: #E5484D; color: #FFC9C9; }
/* timer set-up: the line under the load (16 Oct) — set-up + load as % of max, or "no max yet" */
.tm-loadline { display: flex; flex-direction: column; gap: 2px; margin: -4px 2px 0; font-size: 13px; line-height: 1.4; color: var(--muted, #9aa4b2); }
.tm-loadline b { color: #BCD382; font-weight: 600; }
.tm-loadline .tm-nomax { color: #F6C177; }
/* strength log · check and save (16 Oct): one card per exercise — thumbnail, name, the numbers as pills, its own WSI */
.sl-sum { display: flex; flex-direction: column; gap: 8px; }
.sl-sc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--card); }
.sl-sc[data-skip="true"] { opacity: .6; }
.sl-sc .ex-th { flex: none; width: 52px; height: 52px; border-radius: 12px; }
.sl-sc-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sl-sc-m > b { font-size: 15px; font-weight: 700; line-height: 1.25; }
.sl-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.sl-pill { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--card-2); color: var(--text-2); white-space: nowrap; }
.sl-pill-skip { color: #F6A3A3; background: rgba(229,72,77,.14); }
.sl-pill-pain { color: #F6C177; background: rgba(251,191,36,.14); }
.sl-sw { flex: none; display: flex; flex-direction: column; align-items: flex-end; min-width: 40px; }
.sl-sw b { font: 800 22px/1 var(--display); color: #A78BFA; }
.sl-sw small { font-size: 10.5px; letter-spacing: .08em; color: var(--text-3); }
/* rest stopped by un-ticking a set — continue or start fresh (16 Oct) */
.sl-resume { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 12px 14px; border-radius: 16px; background: var(--card); }
.sl-resume > b { font-size: 14px; }
/* finger test — weight for the next lift (− [kg] +), the other hand's rest, "Ready to test your … hand?" (17 Oct) */
.ft-loadctl { display: flex; flex-direction: column; gap: 8px; }
.ft-ld { display: flex; align-items: center; gap: 8px; }
.ft-ld .in.ft-kg { width: 84px; text-align: center; font: 800 20px/1 var(--display); padding: 10px 6px; }
.ft-ld > span { color: var(--text-2); font-weight: 600; }
.ft-ld .icon-btn { flex: none; }
.ft-hrest { display: flex; align-items: baseline; justify-content: center; gap: 8px; font-size: 13px; padding: 8px 12px; border-radius: 12px; background: var(--card); }
.ft-hrest b { font: 800 18px/1 var(--display); color: #60A5FA; }
.ft-ask { margin: 2px 0 0; text-align: center; font-weight: 700; font-size: 15px; }
/* 17 Oct (Dennis): the next-lift weight centred and clearly set apart — an outlined block */
.ft-loadctl { align-items: center; text-align: center; border: 1.5px solid var(--brand, #BCD382); background: rgba(188, 211, 130, .07); padding: 14px 16px; }
.ft-loadctl > .muted { font-weight: 700; letter-spacing: .02em; color: var(--text-2); }
.ft-ld { justify-content: center; gap: 12px; }
.ft-ld .in.ft-kg { width: 96px; font-size: 26px; border-color: var(--brand, #BCD382); }
.ft-ld .icon-btn { width: 48px; height: 48px; font-size: 22px; }
/* strength log Load box (17 Oct): "bodyweight" on its own line, the numbers on ONE line */
.sl-rx .sl-loadv { display: flex; flex-direction: column; gap: 2px; }
.sl-rx .sl-ld1 { font-size: .78em; }
.sl-rx .sl-nw { white-space: nowrap; }
.sl-rx .sl-nw.sl-rng { font-size: .86em; letter-spacing: -.01em; }
.sl-rx .sl-loadv { align-items: flex-start; gap: 0; line-height: 1.15; text-align: left; }
.sl-rx .sl-loadv > span { padding: 0; margin: 0; background: none; border: 0; border-radius: 0; min-width: 0; display: block; box-shadow: none; }
/* finger test ring face (17 Oct): the load on ONE line, centred — number + smaller unit */
.ft-t { white-space: nowrap; text-align: center; display: inline-flex; align-items: baseline; justify-content: center; gap: 4px; }
.ft-t .ft-n { font: inherit; }
.ft-t .ft-n-m { font-size: 52px; }
.ft-t .ft-n-s { font-size: 42px; }
.ft-t .ft-u { font: 800 22px/1 var(--display); color: var(--text-2); }
.ft-ring-in { padding: 0 24px; }
/* Tests · Training | Rehab toggle (17 Oct) — two big buttons, Rehab in the rehab amber, a caption under */
.ctx-tog { display: flex; flex-direction: column; gap: 6px; }
.ctx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.ctx-b { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 12px; border: 1.5px solid transparent; background: none; color: var(--text-2); font: inherit; cursor: pointer; }
.ctx-b b { font: 800 16px/1.1 var(--font); }
.ctx-b small { font-size: 11.5px; color: var(--text-3); }
.ctx-b[aria-pressed="true"][data-c="training"] { background: var(--text-1, #EEF2F6); color: #0F1923; }
.ctx-b[aria-pressed="true"][data-c="training"] small { color: #3A4552; }
.ctx-b[aria-pressed="true"][data-c="rehab"] { background: #F6A94B; color: #2A1B05; }
.ctx-b[aria-pressed="true"][data-c="rehab"] small { color: #5A3A0C; }
.ctx-b[aria-pressed="false"][data-c="rehab"] { border-color: rgba(246, 169, 75, .45); color: #F6C88C; }
.ctx-cap { margin: 0; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.pt-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--text-3); }
.pt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pt-dot { width: 9px; height: 9px; border-radius: 50%; background: #F6A94B; display: inline-block; }
.pt-dot-bg { background: var(--text-3); opacity: .45; }
.pt-dot { background: linear-gradient(90deg, #F6C46B 50%, #60A5FA 50%); }

/* ── calendar modal (datepick.js, 17 Oct 2026) — above the step flow (45) and tool overlays (46) ── */
.dp-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dp { width: 100%; max-width: 360px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.dp-top { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dp-month { font-size: 17px; }
.dp-nav { font-size: 22px; line-height: 1; }
.dp-nav:disabled { opacity: .3; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dp-wd { text-align: center; font-size: 11px; color: var(--text-3); padding: 4px 0; }
.dp-day { aspect-ratio: 1; min-height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--text); font: inherit; font-variant-numeric: tabular-nums; cursor: pointer; }
.dp-day[data-today="true"] { box-shadow: inset 0 0 0 1.5px var(--brand); }
.dp-day[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.dp-day:disabled { color: var(--text-3); opacity: .35; cursor: default; }
.dp-foot { display: flex; justify-content: space-between; gap: 10px; }
.dp-row { display: flex; flex-direction: column; gap: 6px; }
.dp-row-l { font-size: 13px; color: var(--text-2); font-weight: 600; }

/* About & safety — the instructions for use sheet (rehabboard openIfu, 17 Oct 2026) */
button.rb-safety { background: transparent; font: inherit; font-size: 12.5px; cursor: pointer; }
.ifu-wrap { display: flex; flex-direction: column; gap: 16px; }
.ifu { font-size: 14px; line-height: 1.6; color: var(--text-2); max-width: 65ch; }
.ifu p { margin: 0 0 10px; }
.ifu-h { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin: 18px 0 6px; }
.ifu-ul { margin: 0 0 10px; padding-left: 20px; }
.ifu-ver { font-size: 12px; color: var(--text-3); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px !important; }
.ifu-help { font-size: 13px; }
.ifu-help a { color: var(--brand-text); font-weight: 600; }
.ifu-back { align-self: stretch; }

/* Tests front page: a card headlining a pain-free (rehab) max uses the rehab amber (17 Oct 2026) */
.tcard[data-ctx="rehab"] .tcard-n { color: #F6A94B; }
.tcard[data-ctx="rehab"] .tcard-chip[data-dir="up"] { background: rgba(246,169,75,.22); color: #FBC98A; }
.tcard[data-ctx="rehab"] { box-shadow: inset 0 0 0 1.5px rgba(246,169,75,.55); }

/* Me → Your profile (profile.js, Phase 5a, 17 Oct 2026) */
.pf-wrap { display: flex; flex-direction: column; gap: 14px; }
.pf { display: flex; flex-direction: column; gap: 18px; }
.pf-sec { display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: 16px; background: var(--card); }
.pf-sec > .ft-lbl { margin: 0; }
.pf-f { display: flex; flex-direction: column; gap: 6px; }
.pf-l { font-size: 14px; font-weight: 600; color: var(--text); }
.pf-h { font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.pf-num { display: flex; align-items: center; gap: 8px; }
.pf-num .in { max-width: 120px; }
.pf-grades .chip { min-width: 48px; justify-content: center; }
.pf-status { font-size: 13.5px; line-height: 1.5; padding: 12px 14px; border-radius: 14px; background: rgba(246,169,75,.12); border: 1px solid rgba(246,169,75,.4); color: var(--text); }
.pf-status[data-ok="true"] { background: var(--brand-soft); border-color: var(--brand); }
.pf-save { position: sticky; bottom: 0; }
.row-sub[data-miss="true"] { color: #F6A94B; }

/* ══ LIGHT MODE (17 Oct 2026, Dennis: "improve the light mode visual") ══════════════════════════════════════════
   The app was built dark-first: many colours are hard-coded for a dark ground (white see-through fills, pale
   olive / amber / red text). Generated by property from those rules (pale text -> the accessible darker tone,
   white see-through -> navy see-through); anything that sits on a photo or a dark overlay is left alone.
   :where() keeps each override at the SAME specificity as the rule it replaces, so state variants (done / now / pressed)
   still win — a plain [data-theme] prefix outranked them and turned the done bars grey. */
:where([data-theme="light"]) .ring-chip[data-st="over"] { color: #B45309; }
:where([data-theme="light"]) .lrow-st[data-over="true"] { color: #B45309; }
:where([data-theme="light"]) .pt-d[data-dir="down"] { color: #B45309; }
:where([data-theme="light"]) .rt[data-due="true"] b { color: #B45309; }
:where([data-theme="light"]) .flow-x { background: rgba(15,25,35,0.063); }
:where([data-theme="light"]) .ft-last { background: rgba(15,25,35,0.05); }
:where([data-theme="light"]) .res-del { color: #B42318; }
:where([data-theme="light"]) .ac-rec { border-top: 1px solid var(--line, rgba(15,25,35,0.072)); }
:where([data-theme="light"]) .sl-fsiset span { color: var(--brand-text); }
:where([data-theme="light"]) .tr-day[data-st="missed"] .tr-dc { color: #B45309; }
:where([data-theme="light"]) .tr-day[data-st="missed"] .tr-dw { color: #B45309; }
:where([data-theme="light"]) .tr-bn { background: rgba(15,25,35,0.063); }
:where([data-theme="light"]) .sp-n { background: rgba(15,25,35,0.063); }
:where([data-theme="light"]) .sp-ok { color: var(--brand-text); }
:where([data-theme="light"]) .hs-tot { background: rgba(15,25,35,0.054); }
:where([data-theme="light"]) .cal-rtl { color: var(--brand-text); }
:where([data-theme="light"]) .cal-cd::before { background: rgba(15,25,35,0.063); border-right: 1px solid rgba(15,25,35,0.054); }
:where([data-theme="light"]) .xl-tag { color: var(--brand-text); }
:where([data-theme="light"]) .sv-tag { color: var(--brand-text); }
:where([data-theme="light"]) .sv-rec { background: rgba(15,25,35,0.05); }
:where([data-theme="light"]) .sv-more summary { color: var(--brand-text); }
:where([data-theme="light"]) .xl-clear { color: #B45309; }
:where([data-theme="light"]) .rb-bars i { background: rgba(15,25,35,0.09); }
:where([data-theme="light"]) .rb-names span[data-now="true"] { color: #B45309; }
:where([data-theme="light"]) .rb-caution { color: #B45309; }
:where([data-theme="light"]) .rb-ok { color: var(--brand-text); }
:where([data-theme="light"]) .rb-no { color: #B42318; }
:where([data-theme="light"]) .rb-crit li[data-met="true"] .rb-tick { color: var(--brand-text); }
:where([data-theme="light"]) .mx-cell { background: rgba(15,25,35,0.054); }
:where([data-theme="light"]) .mx-cell[data-fut="true"] { background: rgba(15,25,35,0.05); }
:where([data-theme="light"]) .mx-cell[aria-current="date"] { outline: 1.5px solid #7E9A3E; }
:where([data-theme="light"]) .rb-more summary { color: var(--brand-text); }
:where([data-theme="light"]) .ex-th { background: rgba(15,25,35,0.054); }
:where([data-theme="light"]) .sp-ex { background: rgba(15,25,35,0.05); }
:where([data-theme="light"]) .tr-stack i[data-st="skip"] { background: rgba(15,25,35,0.108); }
:where([data-theme="light"]) .tr-stack i[data-st="todo"], :where([data-theme="light"]) .tr-wkey i[data-st="todo"] { background: rgba(15,25,35,0.126); }
:where([data-theme="light"]) .tr-stack i[data-st="none"] { background: rgba(15,25,35,0.054); }
:where([data-theme="light"]) .tr-wcol[data-now="true"] .tr-wl b { color: var(--brand-text); }
:where([data-theme="light"]) .tr-day-b span { background: rgba(15,25,35,0.126); }
:where([data-theme="light"]) .tr-day-b span[data-st="skip"] { background: rgba(15,25,35,0.108); }
:where([data-theme="light"]) .tr-day-b span[data-st="skip"], :where([data-theme="light"]) .tr-stack i[data-st="skip"], :where([data-theme="light"]) .tr-wkey i[data-st="skip"] { background: repeating-linear-gradient(135deg, rgba(15,25,35,0.198) 0 3px, rgba(15,25,35,0.05) 3px 6px); }
:where([data-theme="light"]) .gp-rounds i { background: rgba(15,25,35,0.09); }
:where([data-theme="light"]) .gp-ex { border: 1px solid rgba(15,25,35,0.054); }
:where([data-theme="light"]) .gp-tag { color: var(--brand-text); }
:where([data-theme="light"]) .gp-tick { color: var(--brand-text); }
:where([data-theme="light"]) .gp-mins i { background: rgba(15,25,35,0.072); }
:where([data-theme="light"]) .gp-mins i[data-st="now"] { outline: 1.5px solid #7E9A3E; }
:where([data-theme="light"]) .gp-err { color: #B42318; }
:where([data-theme="light"]) .gp-still { color: #B45309; }
:where([data-theme="light"]) .sl-rowrest { color: var(--brand-text); }
:where([data-theme="light"]) .sl-skipx { color: #B42318; }
:where([data-theme="light"]) .sl-pill-skip { color: #B42318; }
:where([data-theme="light"]) .ft-loadctl { border: 1.5px solid var(--brand, #7E9A3E); }
:where([data-theme="light"]) .ft-ld .in.ft-kg { border-color: var(--brand, #7E9A3E); }
:where([data-theme="light"]) .row-sub[data-miss="true"] { color: #B45309; }
/* hand fixes */
:where([data-theme="light"]) .rb-hero .rb-h { color: #F2F4EF; }                 /* the stage name sits on the photo */
:where([data-theme="light"]) .card, :where([data-theme="light"]) .row, :where([data-theme="light"]) button.card, :where([data-theme="light"]) .pf-sec {
  box-shadow: 0 0 0 1px rgba(15,25,35,.06), 0 1px 3px rgba(15,25,35,.05); }
:where([data-theme="light"]) .chip[aria-pressed="true"], :where([data-theme="light"]) .pick[aria-pressed="true"], :where([data-theme="light"]) .att[data-best="true"],
:where([data-theme="light"]) .pf-status[data-ok="true"], :where([data-theme="light"]) .tile[aria-pressed="true"] { border-color: #8FA552; }
:where([data-theme="light"]) .rb-names span[data-now="true"] { color: #B45309; }
:where([data-theme="light"]) .rb-bars i:not([data-st="done"]):not([data-st="now"]) { background: rgba(15,25,35,.10); }
:where([data-theme="light"]) .pf-status { background: rgba(246,169,75,.14); border-color: rgba(180,83,9,.35); }

/* Me → Privacy & your data (privacy.js, Phase 5b, 17 Oct 2026) */
.pv { display: flex; flex-direction: column; gap: 14px; }
.pv-sec { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--card); }
.pv-sec > .ft-lbl { margin: 0; }
.pv-sec p { margin: 0; font-size: 14px; line-height: 1.5; }
.pv-sec p.muted { font-size: 13px; }
.pv-msg { margin: 0; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; font-weight: 600; color: var(--text); border: 1px solid var(--line-2); background: var(--card-2); }
.pv-msg[data-kind="ok"] { background: var(--brand-soft); border-color: #8FA552; }
.pv-msg[data-kind="wait"], .pv-msg[data-kind="err"] { background: rgba(246,169,75,.16); border-color: rgba(246,169,75,.6); }
:where([data-theme="light"]) .pv-msg[data-kind="wait"], :where([data-theme="light"]) .pv-msg[data-kind="err"] { background: rgba(246,169,75,.18); border-color: #D9822B; color: #7A3E06; }
.pv-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.pv-link { color: var(--brand-text); font-weight: 700; text-decoration: none; }
:where([data-theme="light"]) .pv-sec { box-shadow: 0 0 0 1px rgba(15,25,35,.06), 0 1px 3px rgba(15,25,35,.05); }
/* Me → Notifications (notifs.js, Phase 5c, 17 Oct 2026) */
.nt-state { display: flex; flex-direction: column; gap: 10px; }
.nt-row { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.nt-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); }
.nt-dot[data-on="true"] { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.2); }
.nt-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; }
.nt-foot { margin: 0; font-size: 12.5px; text-align: center; }
.nt-tech { font-size: 12.5px; color: var(--text-2); }
.nt-tech summary { cursor: pointer; text-align: center; color: var(--text-3); }
.nt-tech ul { margin: 8px 0; padding-left: 16px; display: flex; flex-direction: column; gap: 4px; word-break: break-all; }
.nt-tech p { margin: 4px 0; word-break: break-all; }

/* Inbox: Messages | Updates (coachmsg.js, 17 Oct 2026) */
.ib { display: flex; flex-direction: column; gap: 14px; }
.ib-seg { align-self: stretch; display: grid; grid-template-columns: 1fr 1fr 1fr; }
.ib-list { display: flex; flex-direction: column; gap: 10px; }
.ib-row { display: flex; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--card); }
.ib-dot { flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: #F87171; }
.ib-row[data-read="true"] .ib-dot { background: transparent; }
.ib-row[data-read="true"] b { font-weight: 600; color: var(--text-2); }
.ib-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ib-main p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.ib-act { color: var(--brand-text); font-weight: 700; font-size: 14px; text-decoration: none; }
:where([data-theme="light"]) .ib-row { box-shadow: 0 0 0 1px rgba(15,25,35,.06), 0 1px 3px rgba(15,25,35,.05); }

/* header: Inbox + avatar (common.js headTools, 17 Oct 2026) */
.head-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.ib-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; }
.ib-badge { position: absolute; top: 9px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: #F87171; box-shadow: 0 0 0 2px var(--bg); display: none; }
.ib-btn[data-unread="true"] .ib-badge { display: block; }
.hero-top .ib-btn { color: #F2F4EF; background: rgba(11,18,26,.45); }
.hero-top .ib-badge { box-shadow: 0 0 0 2px rgba(11,18,26,.8); }

/* Write to Dennis — the conversation (chat.js, 18 Oct 2026). Sits in .flow (full screen, z 45). */
.ch { display: flex; flex-direction: column; }
.ch-top { display: flex; align-items: center; gap: 12px; padding: calc(var(--safe-t) + 10px) 16px 10px; border-bottom: 1px solid var(--line); }
.ch-av { width: 40px; height: 40px; border-radius: 50%; background: #1F3A2A; color: #DDEAB8; display: grid; place-items: center; font-weight: 800; flex: none; }
.ch-who { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ch-safety { padding: 8px 16px; font-size: 12.5px; color: var(--text-2); text-align: center; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.ch-link { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; color: var(--brand-text); text-decoration: underline; cursor: pointer; }
.ch-danger { color: var(--danger); }
.ch-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ch-empty { text-align: center; margin: auto 0; }
.ch-day { align-self: center; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin: 6px 0; }
.ch-msg { display: flex; flex-direction: column; gap: 3px; max-width: 82%; align-self: flex-start; }
.ch-msg[data-mine="true"] { align-self: flex-end; align-items: flex-end; }
.ch-b { padding: 10px 13px; border-radius: 18px 18px 18px 6px; background: var(--card-2); display: flex; flex-direction: column; gap: 6px; }
.ch-msg[data-mine="true"] .ch-b { border-radius: 18px 18px 6px 18px; background: rgba(188,211,130,.22); }
.ch-b p { margin: 0; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.ch-quote { font-size: 12.5px; color: var(--text-2); border-left: 3px solid var(--line-2); padding-left: 8px; }
.ch-ctx { font-size: 12.5px; color: var(--text-2); }
.ch-media { display: block; max-width: 100%; max-height: 320px; border-radius: 12px; }
.ch-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ch-compose { border-top: 1px solid var(--line); padding: 8px 12px calc(var(--safe-b) + 8px); display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.ch-replybar, .ch-attbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-2); padding: 6px 10px; border-radius: 10px; background: var(--card); }
.ch-row { display: flex; align-items: flex-end; gap: 8px; }
.ch-ta { flex: 1; min-height: 44px; max-height: 140px; resize: none; padding: 11px 12px; line-height: 1.4; font: 400 15px var(--font); }
.ch-send { flex: none; min-height: 44px; }
.ch-attach { flex: none; font-size: 18px; }
.ch-help h3.ch-h { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin: 14px 0 4px; }
.ch-help p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
:where([data-theme="light"]) .ch-msg[data-mine="true"] .ch-b { background: rgba(143,165,82,.22); }

/* 18 Oct 2026 (Dennis: "When to get help opens behind the chat"): a sheet opened FROM a full-screen view (the chat, a step
   flow, an embedded tool — z 45/46) is appended after it in <body>, so it goes above it. */
.flow ~ .sheet-scrim, .tool-ov ~ .sheet-scrim { z-index: 50; }

/* Onboarding (onboarding.js, 18 Oct 2026 — canvas board "Onboarding") */
.ob { display: flex; flex-direction: column; }
.ob-welcome { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.ob-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ob-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,18,26,.35) 0%, rgba(11,18,26,.2) 40%, rgba(11,18,26,.92) 72%, #0B121A 100%); }
.ob-wtext { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 0 22px calc(var(--safe-b) + 48px); color: #F2F4EF; }
.ob-wtext p { margin: 0; font-size: 15px; line-height: 1.5; color: #D6DCE1; }
.ob-brand { font: 700 11px var(--font); letter-spacing: .22em; text-transform: uppercase; color: rgba(242,244,239,.85); }
.ob-h1 { margin: 0; font: 800 46px/.92 var(--display); text-transform: uppercase; }
.ob-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: calc(var(--safe-t) + 14px) 20px calc(var(--safe-b) + 16px); overflow-y: auto; }
.ob-top { display: flex; align-items: center; gap: 12px; }
.ob-bars { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.ob-bars i { height: 5px; border-radius: 999px; background: var(--line-2); }
.ob-bars i[data-on="true"] { background: var(--brand); }
.ob-kicker { font: 700 11px var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--brand-text); margin-top: 4px; }
.ob-title { margin: 0; font: 800 34px/.95 var(--display); text-transform: uppercase; }
.ob-done { font-size: 46px; margin-top: 14px; }
.ob-sub { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.ob-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ob-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ob-opt { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 72px; padding: 8px 14px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ob-opt-row { min-height: 56px; width: 100%; }
.ob-opt[aria-pressed="true"], .ob-chip[aria-pressed="true"] { border: 1.5px solid var(--brand); background: var(--brand-soft); }
.ob-opt b { font-size: 15.5px; }
.ob-chip { min-height: 44px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: 700 14px var(--font); cursor: pointer; }
.ob-yearrow { display: flex; gap: 8px; align-items: center; }
.ob-yearrow .ob-chip { width: 52px; font-size: 22px; }
.ob-year { flex: 1; min-width: 0; height: 52px; text-align: center; font: 800 30px var(--display); letter-spacing: .06em; }
.ob-year[data-ok="true"] { border-color: var(--brand); }
.ob-yearmsg { font-size: 12.5px; color: var(--text-2); }
.ob-yearmsg[data-bad="true"] { color: var(--danger); }
.ob-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: var(--card); }
.ob-note { padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 13px; line-height: 1.45; }
.ob-note[data-risk="high"], .ob-note[data-risk="moderate"] { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.4); }
.ob-note-blue { display: flex; flex-direction: column; gap: 6px; background: rgba(96,165,250,.1); border-color: rgba(96,165,250,.4); }
.ob-scale { display: grid; grid-template-columns: 1fr 1fr; }
.ob-grades { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.ob-grades .ob-chip { min-height: 38px; padding: 0; font-size: 13.5px; }
.ob-li { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; }
.ob-li > span:first-child { color: var(--brand-text); font-weight: 800; }
.ob-fill { flex: 1; min-height: 8px; }
.ob-pri { width: 100%; min-height: 52px; }
.ob-ghost { min-height: 40px; border: 0; background: transparent; color: var(--text-2); font: 700 14px var(--font); cursor: pointer; }
.ob-need { margin: 0; text-align: center; font-size: 13px; color: var(--text-3); }
.ob-sum { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card); }
.ob-sum small { flex: none; width: 96px; }
.ob-sum b[data-later="true"] { color: var(--text-3); font-weight: 600; }
.ob-err { margin: 0; color: var(--danger); font-size: 13.5px; }

/* Start consent (consent.js, 18 Oct 2026 — canvas board "Consent") */
.cs { display: flex; flex-direction: column; }
.cs-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: calc(var(--safe-t) + 16px) 20px calc(var(--safe-b) + 14px); overflow-y: auto; }
.cs-brand { color: var(--brand-text); }
.cs-h1 { margin: 0; font: 800 34px/.95 var(--display); text-transform: uppercase; }
.cs-boxwrap { display: flex; flex-direction: column; gap: 6px; }
.cs-box { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.cs-box[aria-checked="true"] { border: 1.5px solid var(--brand); background: var(--brand-soft); }
.cs-tick { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line-2); display: grid; place-items: center; font-weight: 900; color: var(--brand-ink); }
.cs-box[aria-checked="true"] .cs-tick { border-color: var(--brand); background: var(--brand); }
.cs-txt { display: flex; flex-direction: column; gap: 2px; }
.cs-txt b { font-size: 15px; }
.cs-txt span { font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.cs-links { display: flex; gap: 14px; flex-wrap: wrap; padding: 0 4px; font-size: 12.5px; font-weight: 700; }
.cs-links a { color: var(--brand-text); text-decoration: none; }
.cs-facts { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--card); font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.cs-facts b, .cs-why b { color: var(--text); }
.cs-why { padding: 10px 12px; border-radius: 14px; background: var(--brand-soft); font-size: 12.5px; line-height: 1.45; }
.cs-full p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.cs-ul { margin: 0 0 10px; padding-left: 18px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.pv-danger { background: #E5484D; color: #fff; }

/* ── Cycle calendar (18 Oct 2026, canvas board "Cycle") — its own pink, never a zone and never the brand ── */
:root, [data-theme="dark"] { --cy: #F0A6CA; --cy-ink: #2A0F1C; --cy-soft: rgba(240,166,202,.14); --cy-fill: rgba(240,166,202,.45); --cy-edge: rgba(240,166,202,.7); --cy-text: #F0A6CA;
  --cy-warn-bg: rgba(251,191,36,.07); --cy-warn-bd: rgba(251,191,36,.3); --cy-warn-tx: #E9DDBF; }
[data-theme="light"] { --cy: #B8437E; --cy-ink: #FFFFFF; --cy-soft: rgba(226,123,174,.12); --cy-fill: rgba(226,123,174,.38); --cy-edge: rgba(190,60,125,.6); --cy-text: #A3346E;
  --cy-warn-bg: rgba(251,191,36,.12); --cy-warn-bd: rgba(180,120,10,.35); --cy-warn-tx: #6B4E0A; }
.cy { display: flex; flex-direction: column; gap: 14px; }
.cy > * { flex-shrink: 0; }
.cy-lead { margin: 0; font-size: 15px; line-height: 1.5; }
.cy-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: var(--card); }
.cy-card p { margin: 0; font-size: 13.5px; line-height: 1.45; }
:where([data-theme="light"]) .cy-card { box-shadow: 0 0 0 1px rgba(15,25,35,.06), 0 1px 3px rgba(15,25,35,.05); }
.cy-fact { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; }
.cy-tick { flex: none; color: var(--cy-text); font-weight: 800; }
.cy-warn { padding: 12px 14px; border-radius: 16px; background: var(--cy-warn-bg); border: 1px solid var(--cy-warn-bd); color: var(--cy-warn-tx); font-size: 12.5px; line-height: 1.5; }
.cy-read { align-self: flex-start; }
.cy-full { max-height: none; }
.cy-pri { width: 100%; background: var(--cy); color: var(--cy-ink); }
.cy-pri.btn-ghost { background: transparent; color: var(--text); }
.cy-small { margin: 0; font-size: 11.5px; line-height: 1.5; }
.cy-today { border: 1px solid var(--cy-edge); }
.cy-trow { display: flex; align-items: baseline; gap: 10px; }
.cy-trow > b { flex: 1; min-width: 0; font-size: 15.5px; }
.cy-trow > span { font-size: 12px; text-align: right; }
.cy-q { font-size: 12px; font-weight: 700; color: var(--text-3); }
.cy-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cy-chip[aria-pressed="true"] { border: 1.5px solid var(--cy) !important; background: var(--cy-soft) !important; color: var(--text) !important; }
.cy-mhead { display: flex; align-items: center; gap: 8px; }
.cy-mhead > b { flex: 1; font-size: 15px; }
.cy-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cy-dow span { text-align: center; font-size: 10.5px; font-weight: 800; color: var(--text-3); }
.cy-d { position: relative; height: 40px; border-radius: 10px; border: 1px solid transparent; background: var(--card-2); color: var(--text); font: 600 12.5px var(--font); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.cy-d[data-blank] { background: transparent; }
.cy-d:disabled { cursor: default; opacity: .55; }
.cy-d[data-sh="p"] { background: var(--cy-fill); opacity: 1; }
.cy-d[data-sh="e"] { background: var(--cy-soft); border: 1px dashed var(--cy-edge); opacity: 1; }
.cy-d[aria-current="date"] { border: 1.5px solid var(--brand); font-weight: 800; opacity: 1; }
.cy-mk { position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 999px; background: var(--cy-text); }
.cy-mk[data-m="end"] { background: transparent; border: 1.5px solid var(--cy-text); width: 6px; height: 6px; }
.cy-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--text-2); }
.cy-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cy-lg { width: 12px; height: 12px; border-radius: 4px; }
.cy-lg[data-sh="p"] { background: var(--cy-fill); }
.cy-lg[data-sh="e"] { background: var(--cy-soft); border: 1px dashed var(--cy-edge); }
.cy-lg[data-sh="t"] { border: 1.5px solid var(--brand); }
.cy-sec { display: flex; flex-direction: column; gap: 8px; }
.cy-sec > .ft-lbl { margin: 0; }
.cy-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cy-col { display: flex; flex-direction: column; padding: 8px; border-radius: 12px; background: var(--card-2); }
.cy-col[data-k="p"] { background: var(--cy-soft); }
.cy-col span { font-size: 10.5px; font-weight: 700; color: var(--text-2); }
.cy-col b { font: 800 20px/1.1 var(--display); }
.cy-col i { font-style: normal; font-size: 10.5px; color: var(--text-3); }
.cy-say { color: var(--text-2); }
.cy-sws { padding: 2px 14px; gap: 0; }
.cy-sw { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; cursor: pointer; font-family: var(--font); }
.cy-sw:last-child { border-bottom: 0; }
.cy-sw:disabled { cursor: default; }
.cy-swt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cy-swt b { font-size: 14.5px; }
.cy-swt span { font-size: 12px; line-height: 1.4; }
.cy-trk { flex: none; position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--line-2); transition: background .15s; }
.cy-trk i { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 999px; background: #F2F4EF; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.cy-sw[aria-checked="true"] .cy-trk { background: var(--brand); }
.cy-sw[aria-checked="true"] .cy-trk i { left: 22px; }
.cy-del { color: var(--danger); border-color: var(--danger-soft); }
.cy-wipe { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--danger-soft); border: 1px solid var(--danger); }
.cy-wipe p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.cy-wbtn { display: flex; flex-wrap: wrap; gap: 8px; }
.cy-menu { display: flex; flex-direction: column; gap: 8px; }
.cy-nudge { border: 1px solid var(--cy-edge); }
/* the training calendar: period days behind the sessions (only when she chose it) */
.cal-day[data-cy="p"] { background: var(--cy-soft); }
.cal-day[data-cy="e"] { outline: 1px dashed var(--cy-edge); outline-offset: -3px; }
.cal-day[data-cy][aria-pressed="true"] { outline: 1.5px solid var(--brand); }

.cy-grp { margin: 6px 0 0; font-size: 13px; font-weight: 800; color: var(--text-2); }

/* 19 Oct 2026 — Edit session on the session sheet */
.sv2-foot2 { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line-2); }
.sv2-foot2 > .sv2-foot { padding-top: 0; border-top: 0; }
.sv2-edit { width: 100%; }
.sv2-stale { margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--card-2); color: var(--text-2); font-size: 12.5px; line-height: 1.45; }

/* 19 Oct 2026 — edit a finger session */
.fe { display: flex; flex-direction: column; gap: 12px; }
.fe-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fe-row > span { font-weight: 700; }
.fe-step { display: flex; align-items: center; gap: 10px; }
.fe-step b { min-width: 72px; text-align: center; font-size: 16px; }
.fe-l { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-2); }

/* ── Training report (19 Oct 2026, Phase 6b, board "Training-report") ── */
.rp { display: flex; flex-direction: column; gap: 14px; }
.rp > * { flex-shrink: 0; }
.rp-small { margin: 0; font-size: 12px; line-height: 1.5; }
.rp-h { margin: 4px 0 2px; font: 800 30px/1 var(--display); text-transform: uppercase; }
.rp-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; background: var(--card); }
.rp-card p, .rp-sec p { margin: 0; font-size: 14px; line-height: 1.5; }
:where([data-theme="light"]) .rp-card { box-shadow: 0 0 0 1px rgba(15,25,35,.06), 0 1px 3px rgba(15,25,35,.05); }
.rp-sum { border: 1px solid var(--line-2); }
.rp-lead { font-size: 17px; line-height: 1.35; }
.rp-tag { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); padding: 3px 8px; border-radius: 999px; background: var(--card-2); }
.rp-tag-d { background: var(--brand-soft); color: var(--brand-text); }
.rp-eval { border: 1px solid var(--brand); }
.rp-eval h4 { margin: 4px 0 0; font-size: 13px; }
.rp-dirs { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.45; }
.rp-sec { display: flex; flex-direction: column; gap: 10px; }
.rp-sec > .ft-lbl { margin: 0; }
.rp-gh { display: flex; align-items: baseline; gap: 8px; }
.rp-gh > b { flex: 1; min-width: 0; font-size: 15px; }
.rp-st { font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--card-2); color: var(--text-2); }
.rp-st[data-s="ok"] { background: var(--brand-soft); color: var(--brand-text); }
.rp-st[data-s="flag"] { background: rgba(251,191,36,.16); color: #B7791F; }
.rp-big { font: 800 24px/1.1 var(--display); }
.rp-ev { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--text-2); }
.rp-tbl { display: flex; flex-direction: column; border-radius: 16px; background: var(--card); overflow: hidden; }
.rp-tr { display: grid; grid-template-columns: minmax(0, 1fr) 64px 64px 72px; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.rp-tr:last-child { border-bottom: 0; }
.rp-th { font-size: 11px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.rp-tr span[data-up="true"] { color: var(--brand-text); font-weight: 800; }
.rp-ch { display: flex; align-items: baseline; gap: 8px; }
.rp-ch > b { flex: 1; }
.rp-ch small { font-size: 11.5px; }
.rp-bars { display: flex; align-items: flex-end; gap: 3px; height: 110px; }
.rp-bars i { flex: 1; min-width: 0; border-radius: 4px 4px 0 0; background: var(--z2); }
.rp-bars i[data-s="in"] { background: #A0B36E; }
.rp-bars i[data-s="over"] { background: var(--z3); }
.rp-bars i[data-s="none"] { background: var(--line-2); }
.rp-pain { height: 70px; }
.rp-pain i[data-s="in"] { background: var(--line-2); }
.rp-pain i[data-s="over"] { background: var(--z4); }
.rp-leg { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--text-2); }
.rp-leg span { display: inline-flex; align-items: center; gap: 6px; }
.rp-leg i { width: 10px; height: 10px; border-radius: 3px; background: var(--z2); }
.rp-leg i[data-s="in"] { background: #A0B36E; } .rp-leg i[data-s="over"] { background: var(--z3); }
.rp-split { display: grid; grid-template-columns: 120px minmax(0, 1fr) 44px; gap: 8px; align-items: center; font-size: 13px; }
.rp-split i { height: 8px; border-radius: 999px; background: var(--card-2); overflow: hidden; }
.rp-split i b { display: block; height: 100%; background: var(--brand); }
.rp-zones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.rp-zones div { display: flex; flex-direction: column; padding: 8px; border-radius: 12px; background: var(--card-2); }
.rp-zones b { font: 800 22px/1 var(--display); }
.rp-zones small { font-size: 10.5px; color: var(--text-2); }
.rp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rp-tile { display: flex; flex-direction: column; padding: 12px; border-radius: 16px; background: var(--card); }
.rp-tile small { font-size: 11.5px; color: var(--text-2); font-weight: 700; }
.rp-tile b { font: 800 26px/1.1 var(--display); }
.rp-tile span { font-size: 11.5px; }
.rp-ai { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.rp-lib { align-items: center; }
.rp-badge { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--card-2); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rp-badge[data-cur="true"] { background: var(--brand-soft); }
.rp-badge b { font: 800 16px/1 var(--display); } .rp-badge small { font-size: 8.5px; font-weight: 800; letter-spacing: .06em; color: var(--text-2); }
.sl-acts2 .sl-unlog { grid-column: 1 / -1; }   /* 19 Oct 2026 — the edit-only "Not logged" on its own row */
.sp-undo { color: #9FB86A; font-weight: 800; }   /* 19 Oct 2026 — a done block can be undone */
:where([data-theme="light"]) .sp-undo { color: var(--brand-text); }

/* 19 Oct 2026 — reset a session */
.sp-reset { align-self: center; color: var(--danger); margin-top: 6px; }
.sp-resetc { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--danger-soft); border: 1px solid var(--danger); }
.sp-resetc p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.sp-resetb { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-breset { color: var(--danger); }   /* 19 Oct 2026 — reset one block */

/* 19 Oct 2026 — RPE and pain on the rate page: green → red, every number its own colour (a stripe; the chosen one fills) */
.sl-hue { box-shadow: inset 0 -4px 0 var(--c); }
.sl-hue[aria-pressed="true"] { background: var(--c) !important; border-color: var(--c) !important; color: #0B121A !important; box-shadow: none; }
.sl-hue[aria-pressed="true"] b, .sl-hue[aria-pressed="true"] span { color: #0B121A !important; }

/* ── Check-ins (Phase 4, 19 Oct 2026) ── */
.ck { display: flex; flex-direction: column; gap: 12px; }
.ck-lead { margin: 0; font-size: 15px; line-height: 1.5; }
.ck-col { display: flex; flex-direction: column; gap: 8px; }
.ck-wide { width: 100%; justify-content: flex-start; text-align: left; }
.ck-tile { width: 100%; }
.ck-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ck-days .chip { justify-content: center; padding: 0; }
.ck-card { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line-2); }
.ck-acts { display: flex; gap: 8px; margin-top: 4px; }

/* ── Inbox: waiting items + Requests (Phase 4, 19 Oct 2026) ── */
.ib-eb { margin: 4px 2px 0; }
.ib-wait { width: 100%; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; align-items: flex-start; box-shadow: inset 3px 0 0 #F87171; }
.ib-wait .chev { margin-left: auto; align-self: center; color: var(--text-3); }
.rq-new { width: 100%; }
.rq { border-radius: 16px; background: var(--card); overflow: hidden; }
:where([data-theme="light"]) .rq { box-shadow: 0 0 0 1px rgba(15,25,35,.06), 0 1px 3px rgba(15,25,35,.05); }
.rq-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-height: 52px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rq-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rq-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-st { flex: none; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 3px 9px; background: var(--card-2); color: var(--text-2); }
.rq-st[data-k="open"] { background: rgba(251,191,36,.16); color: #fbbf24; }
.rq-st[data-k="ans"] { background: rgba(188,211,130,.18); color: var(--brand-text); }
.rq-body { display: none; flex-direction: column; gap: 8px; padding: 0 14px 14px; }
.rq[data-open="true"] .rq-body { display: flex; }
.rq-msg { border-radius: 12px; padding: 8px 12px; background: var(--card-2); }
.rq-msg[data-me="false"] { background: rgba(188,211,130,.14); }
.rq-msg small { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.rq-msg[data-me="false"] small { color: var(--brand-text); }
.rq-msg p { margin: 2px 0 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.rq-sys { border: 1px dashed var(--line-2); border-radius: 12px; padding: 8px 12px; font-size: 12.5px; font-style: italic; color: var(--text-3); }
.rq-reply { display: flex; gap: 8px; align-items: flex-end; }
.rq-ta { width: 100%; height: auto; min-height: 44px; padding: 10px 12px; resize: vertical; line-height: 1.45; font-weight: 500; }
.rq-reply .rq-ta { flex: 1; min-width: 0; }
.rq-cats { display: flex; flex-direction: column; gap: 8px; }
.rq-ico { font-size: 18px; width: 28px; text-align: center; }
.rq-form { display: flex; flex-direction: column; gap: 10px; }
.rq-form > .in { width: 100%; }
.rq-consent { max-height: 220px; overflow: auto; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.ir .chips { flex-wrap: wrap; }
.ir-l { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-top: 6px; }
.ir-warn { font-size: 13px; line-height: 1.55; border-radius: 12px; padding: 10px 12px; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.28); }
.ir-consent { display: flex; flex-direction: column; gap: 10px; }
.ir-send { margin-top: 4px; }
.ir-done { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 18px 4px 6px; }
.ir-tick { font-size: 34px; }

/* ── Report sharing (Phase 6a, 19 Oct 2026) ── */
.rp-share { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.rp-sh { display: flex; flex-direction: column; gap: 10px; }
.rp-aud { display: flex; flex-direction: column; gap: 8px; }
.rp-aud-h { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.rp-on { flex: none; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 3px 9px; background: rgba(188,211,130,.18); color: var(--brand-text); }
.rp-link { display: flex; flex-direction: column; gap: 8px; }
.rp-link .in { width: 100%; font-size: 13px; font-weight: 500; }
.rp-acts { display: flex; gap: 8px; flex-wrap: wrap; }
