/* GROUND v3 (2026-11-12). Identity: a scoreboard on a dark court.
   Near-black canvas, one signal colour per meaning, big condensed numerals as the hero of every screen,
   data drawn as arcs and bars, hairlines instead of card borders, no gradients, no glass.
   Direction note: 2026-11-12-app-design-direction-v3.md. Previous file: _archive/styles-2026-11-12-before-v3.css

   COLOUR ROLES (meaning, not decoration)
     --c-load     work done / strength load (volt)      --c-game     match, high intensity (court orange)
     --c-recover  mobility, prep, recovery (cool blue)  --c-pain     pain or a flag that needs a person (red)
     --c-rest     nothing planned (grey)
   Old names (--turf, --court, --neural, --rest) stay as aliases so the Programs screens keep working. */
:root {
  /* light theme */
  --bg: #F2F2EE; --bg2: #E8E8E3; --surface: #FFFFFF; --surface2: #ECECE7;
  --ink: #0E0F11; --ink-2: #3A3F46; --muted: #565C64;
  --line: rgba(14,15,17,.10); --line2: rgba(14,15,17,.22); --field-line: #7B8088; --track: rgba(14,15,17,.12);
  --c-load: #4E6A00;    --c-load-soft: rgba(78,106,0,.13);
  --c-game: #B2480A;    --c-game-soft: rgba(178,72,10,.12);
  --c-recover: #3A4DB0; --c-recover-soft: rgba(58,77,176,.12);
  --c-pain: #C42B2B;    --c-pain-soft: rgba(196,43,43,.12);
  --c-rest: #5C626A;    --c-rest-soft: rgba(14,15,17,.06);
  --on-accent: #FFFFFF; --glass: #FFFFFF; --shadow: 0 0 0 0 transparent;
  /* type: Heebo for Hebrew (800 for headlines), Barlow Condensed for numerals and Latin labels */
  --f-display: "Heebo", "Assistant", "Segoe UI", system-ui, "Arial Hebrew", Arial, sans-serif;
  --f-body: "Heebo", "Assistant", "Segoe UI", system-ui, "Arial Hebrew", Arial, sans-serif;
  --f-num: "Barlow Condensed", "Arial Narrow", "Segoe UI", system-ui, Arial, sans-serif;
  /* type scale */
  --t-xs: 12px; --t-s: 14px; --t-m: 16px; --t-l: 18px; --t-xl: 26px; --t-2xl: 36px; --t-num: 44px; --t-hero: 88px;
  /* spacing 4 / 8 / 12 / 16 / 24 / 32 / 48 */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;
  /* radius: small 8, medium 12, large 16. Nothing is a pill except tiny status dots */
  --r-s: 8px; --r-m: 12px; --r-l: 16px;
  --tap: 44px;
  /* motion */
  --ease: cubic-bezier(.2,.7,.2,1); --dur-1: .12s; --dur-2: .25s;
  /* aliases for older rules and the Programs screens */
  --turf: var(--c-load); --turf-soft: var(--c-load-soft);
  --court: var(--c-game); --court-soft: var(--c-game-soft);
  --neural: var(--c-recover); --neural-soft: var(--c-recover-soft);
  --rest: var(--c-rest); --rest-soft: var(--c-rest-soft);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090A; --bg2: #101012; --surface: #111112; --surface2: #171719;
    --ink: #EDEDEC; --ink-2: #B4B4B2; --muted: #8A8A8D;
    --line: rgba(255,255,255,.075); --line2: rgba(255,255,255,.14); --field-line: #6A7078; --track: rgba(255,255,255,.12);
    --c-load: #D4F23C;    --c-load-soft: rgba(212,242,60,.14);
    --c-game: #D9A441;    --c-game-soft: rgba(217,164,65,.15);
    --c-recover: #8FA6FF; --c-recover-soft: rgba(143,166,255,.16);
    --c-pain: #FF6B6B;    --c-pain-soft: rgba(255,107,107,.16);
    --c-rest: #98A0A9;    --c-rest-soft: rgba(255,255,255,.07);
    --on-accent: #0B0C0E; --glass: #171719; --shadow: 0 0 0 0 transparent;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09090A; --bg2: #101012; --surface: #111112; --surface2: #171719;
  --ink: #EDEDEC; --ink-2: #B4B4B2; --muted: #8A8A8D;
  --line: rgba(255,255,255,.075); --line2: rgba(255,255,255,.14); --field-line: #6A7078; --track: rgba(255,255,255,.12);
  --c-load: #D4F23C;    --c-load-soft: rgba(212,242,60,.14);
  --c-game: #D9A441;    --c-game-soft: rgba(217,164,65,.15);
  --c-recover: #8FA6FF; --c-recover-soft: rgba(143,166,255,.16);
  --c-pain: #FF6B6B;    --c-pain-soft: rgba(255,107,107,.16);
  --c-rest: #98A0A9;    --c-rest-soft: rgba(255,255,255,.07);
  --on-accent: #0B0C0E; --glass: #171719; --shadow: 0 0 0 0 transparent;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { color-scheme: light; } }
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--f-body); font-size: var(--t-m); font-weight: 400; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: var(--r-s); }
[hidden] { display: none !important; }

.app { max-width: 460px; margin: 0 auto; padding-inline: 20px; padding-block: 0 120px; min-height: 100%; }

/* Header: just a wordmark on the canvas. A short volt "ground line" is the only ornament. */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 0 12px; min-height: 56px; background: var(--bg); }
.brand { font-family: var(--f-num); font-weight: 700; font-size: 22px; letter-spacing: .14em; line-height: 1; display: flex; align-items: center; gap: 12px; direction: ltr; }
/* Logo mark (GUG badge): both variants are in the markup, the theme tokens' own selectors pick one, so there is no flash and no script. */
.logo { display: inline-flex; flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; }
.logo img { width: 100%; height: 100%; display: block; }
.logo-xl { width: 72px; height: 72px; }
.logo .lg-d { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo .lg-d { display: block; } :root:not([data-theme="light"]) .logo .lg-l { display: none; } }
:root[data-theme="dark"] .logo .lg-d { display: block; } :root[data-theme="dark"] .logo .lg-l { display: none; }
.brand { font-size: 20px; letter-spacing: .08em; gap: 10px; }
.brand small { font-family: var(--f-body); font-size: var(--t-s); letter-spacing: 0; color: var(--muted); font-weight: 500; direction: var(--ui-dir, rtl); }
.tier-pill { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: var(--r-s); box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); white-space: nowrap; }
.demo-note { font-size: var(--t-s); color: var(--ink-2); background: var(--surface); border-radius: var(--r-m); padding: 12px 16px; margin-top: var(--s-4); }

h1, h2, h3 { margin: 0; text-wrap: balance; }
.screen-title { font-size: var(--t-2xl); font-weight: 800; line-height: 1.08; letter-spacing: 0; margin-top: var(--s-5); }
.screen-sub { color: var(--muted); margin: var(--s-2) 0 0; font-size: var(--t-m); }
.section { margin-top: var(--s-6); display: grid; gap: var(--s-3); }
.label { font-size: 13px; font-weight: 600; color: var(--muted); }
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.num { font-family: var(--f-num); font-weight: 500; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

/* ---------- Hero: the week as one ring, with the vitals beside it ---------- */
.hero { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
.hero-head h1 { font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: 0; }
.hero-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-5); align-items: center; }
.ring { position: relative; width: 156px; height: 156px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.ring .arc { fill: none; stroke: var(--track); stroke-width: 7; stroke-linecap: butt; }
.ring .arc.on { stroke: var(--c-load); }
.ring .core { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; direction: ltr; }
.ring .core b { font-family: var(--f-num); font-weight: 600; font-size: 76px; line-height: .9; letter-spacing: -.02em; }
.ring .core small { font-size: 13px; font-weight: 600; color: var(--muted); direction: var(--ui-dir, rtl); margin-top: 6px; }
.vitals { margin: 0; display: grid; gap: 0; }
.vital { padding: 10px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px var(--s-3); }
.vital:first-child { border-top: 0; padding-top: 0; }
.vital dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.vital dd { margin: 0; font-family: var(--f-num); font-weight: 600; font-size: 30px; line-height: 1; direction: ltr; text-align: end; }
.vital dd small { font-size: 15px; font-weight: 500; color: var(--muted); margin-inline-start: 2px; }
.vital dd.txt { font-family: var(--f-body); font-size: 16px; font-weight: 600; }
.vital .pips { grid-column: 1 / -1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; direction: ltr; }
.vital .pips i { height: 4px; border-radius: 2px; background: var(--track); }
.vital .pips i.on { background: var(--c-load); }
.vital.heavy .pips i.on, .vital.heavy dd { color: var(--c-game); }
.vital.heavy .pips i.on { background: var(--c-game); }
.vital.pain dd { color: var(--c-pain); }
.hero-meta { margin: 0; font-size: var(--t-s); color: var(--ink-2); }

/* ---------- Week strip: seven bars, height = how much work the day holds ---------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.day { border: 0; background: transparent; border-radius: var(--r-m); padding: 12px 0 10px; display: grid; grid-template-rows: 76px auto auto; justify-items: center; align-items: end; gap: 8px; min-width: 0; color: var(--ink); position: relative; }
.day[aria-pressed="true"] { background: var(--surface2); }
.day .dot { width: 22px; height: calc(var(--h, 10) * .76px); min-height: 6px; border-radius: var(--r-s) 6px 3px 3px; background: var(--tc, var(--c-rest)); font-size: 0; color: transparent; position: relative; box-shadow: none; display: block; }
.day .dot.t-rest { background: var(--line2); }
.day .dot.t-long { background: color-mix(in srgb, var(--tc) 55%, transparent); }
.day .dot.t-team { background: var(--c-game-soft); box-shadow: inset 0 0 0 1.5px var(--c-game); }
.day .dot.t-choice, .day .dot.t-freechoice { background: transparent; box-shadow: inset 0 0 0 1.5px var(--field-line); }
.day .dot.with-team::after { content: ""; position: absolute; inset-block-start: -9px; inset-inline-start: 50%; width: 8px; height: 8px; margin-inline-start: -4px; border-radius: 50%; background: var(--c-game); }
.day .dn { font-size: 15px; font-weight: 600; color: var(--muted); line-height: 1; }
.day .dl { font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.1; min-height: 1.1em; text-align: center; }
.day[aria-pressed="true"] .dn, .day[aria-pressed="true"] .dl { color: var(--ink); }
.day.today .dn { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--c-load); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.day.done .dl::before { content: "\2713\00a0"; color: var(--c-load); font-weight: 600; }
/* semantic colour of each day type (also used by chips and the month rows of the Programs tab) */
.t-strength, .t-explosive, .t-short, .t-complement { --tc: var(--c-load); background: var(--c-load); color: var(--on-accent); }
.t-game { --tc: var(--c-game); background: var(--c-game); color: var(--on-accent); }
.t-prep, .t-choice, .t-freechoice { --tc: var(--c-recover); background: var(--c-recover); color: var(--on-accent); }
.t-recovery, .t-mobility { --tc: var(--c-recover); background: var(--c-recover-soft); color: var(--c-recover); }
.t-team { --tc: var(--c-game); background: var(--c-game-soft); color: var(--c-game); box-shadow: inset 0 0 0 1px var(--c-game); }
.t-rest { --tc: var(--c-rest); background: transparent; color: var(--c-rest); box-shadow: inset 0 0 0 1px var(--line2); }
.t-power, .t-athletics, .t-upper { --tc: var(--c-game); background: var(--c-game); color: var(--on-accent); }
.t-long { --tc: var(--c-load); background: var(--c-load-soft); color: var(--c-load); }
.legend { display: flex; flex-wrap: nowrap; gap: 8px 18px; font-size: 13px; color: var(--muted); overflow-x: auto; scrollbar-width: none; padding-block: 4px; }
.legend::-webkit-scrollbar { display: none; }
.legend span { flex: none; display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i[class] { background: var(--tc, var(--c-rest)); }
.legend i.t-long { background: color-mix(in srgb, var(--tc) 55%, transparent); }
.legend i.t-team { background: var(--c-game-soft); box-shadow: inset 0 0 0 1.5px var(--c-game); }
.legend i.with-team { border-radius: 50%; background: var(--c-game); }

/* ---------- The selected day: an open list, no card ---------- */
.detail { display: grid; gap: 0; border-top: 1px solid var(--line2); padding-top: var(--s-4); }
.detail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.detail-head h2 { font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: 0; }
.block { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: var(--s-3); align-items: start; padding-block: var(--s-4); border-top: 1px solid var(--line); margin-top: var(--s-4); }
.detail-head + .block { margin-top: var(--s-3); }
.block:first-of-type { }
.chip { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--tc, var(--ink)); background: none; padding: 3px 0 0; box-shadow: none; }
.detail .chip[class] { background: none; color: var(--tc, var(--ink)); box-shadow: none; }
.chip::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; margin-top: .4em; background: var(--tc, var(--ink)); }
.block .name { font-weight: 600; font-size: 17px; line-height: 1.3; }
.block .meta { font-size: var(--t-s); color: var(--muted); margin-top: 2px; }
.mins { font-family: var(--f-num); font-weight: 500; font-size: 20px; line-height: 1.2; color: var(--ink-2); font-variant-numeric: tabular-nums; direction: ltr; }
.block .opts { margin-top: var(--s-2); }
.block .btn.small { margin-top: var(--s-3); }
.why { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); font-size: 15px; color: var(--ink-2); }
.why li { padding-inline-start: 20px; position: relative; }
.why li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 8px; height: 2px; background: var(--c-load); }

/* ---------- Buttons: squared, one neutral primary. Signal colours are kept for data. ---------- */
.btn { border: 0; border-radius: var(--r-m); padding: 0 24px; min-height: 48px; font-weight: 600; background: var(--ink); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--field-line); }
.btn.small { padding: 0 18px; font-size: 15px; min-height: var(--tap); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; cursor: default; }
.btn.block-btn { width: 100%; min-height: 52px; font-size: var(--t-l); }
.row { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.linkish { background: none; border: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; font: inherit; padding: 0; min-height: var(--tap); cursor: pointer; }

/* Choices (segmented and option buttons) */
.seg { display: flex; gap: var(--s-2); overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button, .opts button { border: 0; background: var(--surface2); border-radius: var(--r-m); padding: 0 16px; min-height: var(--tap); font-weight: 600; font-size: 15px; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line2); }
.seg button[aria-pressed="true"], .opts button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.opts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.opts button { white-space: normal; }
.opts button[data-q="nextgame"], .opts button[data-q="phase"], .opts button[data-q="returned"] { min-height: 48px; min-width: 48px; }
/* underlined tabs (Knowledge) */
.seg.tabs-u { gap: 22px; box-shadow: inset 0 -1px 0 var(--line); }
.seg.tabs-u button { background: none; box-shadow: none; border-radius: 0; padding: 0 2px; color: var(--muted); font-size: var(--t-m); font-weight: 600; }
.seg.tabs-u button[aria-pressed="true"] { background: none; color: var(--ink); box-shadow: inset 0 -3px 0 var(--c-load); }

/* Surfaces kept for lists the Programs and Coach screens use: one flat tone, no border, no shadow */
.prog, .kv, .ath, .stat, .blk, .ses-sec, .tiers-wrap { background: var(--surface); border-radius: var(--r-m); }
.checkin { display: grid; gap: var(--s-4); padding: var(--s-4) 0 0; border-top: 1px solid var(--line2); }
.checkin .name { font-weight: 600; font-size: var(--t-l); }
.checkin .meta { font-size: var(--t-s); color: var(--muted); margin-top: 2px; }
.checkin.due .name::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-game); margin-inline-end: 10px; vertical-align: .08em; }

/* ---------- Programs list (kept) ---------- */
.prog { overflow: hidden; }
.prog summary { list-style: none; padding: 16px 20px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; cursor: pointer; min-height: var(--tap); }
.prog summary::-webkit-details-marker { display: none; }
.prog summary h3 { font-size: var(--t-l); font-weight: 600; }
.prog summary .meta { font-size: var(--t-s); color: var(--muted); grid-column: 1; }
.prog summary .arrow { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--muted); transition: transform var(--dur-2) var(--ease); font-size: 20px; }
.prog[open] summary .arrow { transform: rotate(-90deg); }
.ex-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ex-table td { padding: 12px 16px; border-top: 1px solid var(--line); }
.ex-table td:last-child { text-align: left; font-family: var(--f-num); font-weight: 500; font-size: 17px; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; direction: ltr; }
.placeholder { font-size: 13px; color: var(--c-game); font-weight: 600; padding: 8px 16px 12px; border-top: 1px dashed var(--line); }

/* ---------- Knowledge: an editorial list ---------- */
.cards { display: grid; gap: 0; }
.article { padding: var(--s-5) 0; border-top: 1px solid var(--line); display: grid; gap: var(--s-2); text-align: start; }
.article .kicker { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.article .kicker::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.article h3 { font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.article p { margin: 0; color: var(--ink-2); font-size: var(--t-m); }
.myth .verdict { font-size: 34px; font-weight: 600; color: var(--c-game); line-height: 1.05; letter-spacing: 0; }

/* ---------- Habits: today as a numeral, the week as seven bars, the list as open rows ---------- */
.score { display: flex; align-items: baseline; gap: var(--s-3); }
.score b { font-family: var(--f-num); font-weight: 600; font-size: var(--t-hero); line-height: .9; letter-spacing: -.02em; direction: ltr; }
.score b small { font-size: 40px; font-weight: 500; color: var(--muted); margin-inline-start: 2px; }
.score span { color: var(--ink-2); font-weight: 600; }
.wk7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--s-2); align-items: end; height: 96px; }
.wk7 > span { display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 6px; height: 100%; }
.wk7 i { align-self: end; width: 100%; max-width: 26px; height: calc(var(--h, 4) * 1%); min-height: 4px; border-radius: 4px 4px 2px 2px; background: var(--track); display: block; }
.wk7 i.on { background: var(--c-load); }
.wk7 em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1; }
.wk7 .today em { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--c-load); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.habit { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-4); padding: var(--s-4) 0; min-height: 68px; border-top: 1px solid var(--line); }
.habit input { appearance: none; -webkit-appearance: none; width: 30px; height: 30px; border-radius: var(--r-s); border: 2px solid var(--field-line); margin: 0; display: grid; place-items: center; background: transparent; }
.habit input:checked { background: var(--c-load); border-color: var(--c-load); }
.habit input:checked::after { content: ""; width: 12px; height: 6px; border: 2.5px solid var(--on-accent); border-top: 0; border-inline-end: 0; transform: rotate(-45deg) translate(1px,-1px); }
.habit .name { font-weight: 600; font-size: var(--t-l); line-height: 1.3; }
.habit .meta { font-size: var(--t-s); color: var(--muted); }
.habit:has(input:checked) .name { color: var(--muted); }

/* ---------- Profile ---------- */
.kv { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 0 var(--s-3); padding: 0; background: none; border-radius: 0; }
.kv dt, .kv dd { margin: 0; padding-block: 14px; border-top: 1px solid var(--line); }
.kv dt:first-of-type, .kv dt:first-of-type + dd { border-top: 0; }
.kv dt { color: var(--muted); font-size: var(--t-s); font-weight: 500; }
.kv dd { font-weight: 600; text-align: end; font-variant-numeric: tabular-nums; }
.kv .hint { font-weight: 400; font-size: 13px; }
.meter { height: 6px; background: var(--track); border-radius: 3px; overflow: hidden; grid-column: 1 / -1; }
.meter i { display: block; height: 100%; background: var(--c-load); }
.tiers-wrap { overflow-x: auto; }
.tiers { border-collapse: collapse; width: 100%; min-width: 420px; font-size: 15px; }
.tiers th, .tiers td { padding: 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.tiers th { font-size: var(--t-s); }
.tiers tr:last-child td { border-bottom: 0; }
.tiers .hl { background: var(--c-load-soft); }
.yes { color: var(--c-load); font-weight: 600; }
.no { color: var(--c-rest); }

/* RPE chart: bars are weeks. Volt = no heavy session. Orange = a week with RPE 8 or more. */
.rpechart { display: flex; align-items: flex-end; gap: var(--s-2); height: 176px; padding: 20px 0 0; border-bottom: 1px solid var(--line2); }
.rpecol { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.rpecol > span { padding-bottom: 8px; font-family: var(--f-num); font-weight: 500; font-size: 14px; }
.rpecol.now > span { color: var(--ink); font-weight: 600; }
.rpebar { width: 100%; max-width: 28px; background: var(--c-load); border-radius: 4px 4px 2px 2px; position: relative; min-height: 4px; }
.rpebar.heavy { background: var(--c-game); }
.rpebar.none { height: 4px; background: var(--track); }
.rpebar b { position: absolute; top: -22px; inset-inline: -10px; text-align: center; font-family: var(--f-num); font-weight: 600; font-size: 15px; color: var(--ink); }
.rpelegend { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rpelegend .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c-load); display: inline-block; margin-inline-start: 8px; }
.rpelegend .dot:first-child { margin-inline-start: 0; }
.rpelegend .dot.heavy { background: var(--c-game); }
.rpesentence { margin: 0; font-size: var(--t-m); color: var(--ink-2); }

/* ---------- Coach view (shared base) ---------- */
.ath { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px 18px; }
.ath .name { font-weight: 600; font-size: 17px; }
.ath .meta { font-size: var(--t-s); color: var(--muted); grid-column: 1; }
.ath .pct { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-s); background: var(--c-load-soft); color: var(--c-load); }
.ath .pct:empty { display: none; }
.ath .alerts { grid-column: 1 / -1; display: block; }
.flag { grid-column: 1 / -1; font-size: var(--t-s); font-weight: 600; color: var(--c-pain); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.stat { padding: 16px 14px; }
.stat b { display: block; font-family: var(--f-num); font-weight: 600; font-size: 52px; line-height: 1; letter-spacing: -.01em; direction: ltr; text-align: right; }
.stat span { font-size: 13px; color: var(--muted); line-height: 1.3; display: block; margin-top: 6px; }
.blk { padding: 16px 18px; display: grid; gap: 6px; }
.blk .name { font-weight: 600; }
.blk .name small { font-weight: 500; color: var(--muted); font-family: var(--f-num); font-size: 15px; }
.blk .meta { font-size: var(--t-s); color: var(--muted); }
.blk p { margin: 0; font-size: 15px; }
.phase-row { display: grid; gap: var(--s-2); }
.phase-row .name { font-weight: 600; font-size: 15px; }
.temp-pass { direction: ltr; unicode-bidi: isolate; font-weight: 600; }

/* ---------- Questionnaire sheet and sign-in ---------- */
.sheet { position: fixed; inset: 0; z-index: 20; background: var(--bg); overflow-y: auto; }
.sheet .app { padding-block: 16px 48px; }
.q { display: grid; gap: 10px; margin-top: 28px; }
.q > label, .q > .label { font-weight: 600; font-size: var(--t-m); color: var(--ink); }
.q input[type="text"], .q input[type="tel"], .q input[type="number"], .auth input, .q input[type="email"], .q input[type="password"] { border: 1px solid var(--field-line); background: var(--surface); border-radius: var(--r-m); padding: 0 16px; min-height: 54px; width: 100%; font-size: var(--t-m); }
.q input:focus-visible, .auth input:focus-visible { outline: 2px solid var(--c-load); outline-offset: 2px; border-color: transparent; }
.q input::placeholder { color: var(--muted); opacity: .8; }
.hint { font-size: var(--t-s); color: var(--muted); margin: 0; }
.q-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.q-grid .q { min-width: 0; }
.auth { margin-top: var(--s-5); }
body:has(.auth) .top { display: none; }
.auth-mark { display: grid; gap: 14px; padding-top: calc(env(safe-area-inset-top, 0px) + 28px); }
.auth-mark .wm { font-family: var(--f-num); font-weight: 700; font-size: 96px; line-height: .85; letter-spacing: .02em; direction: ltr; text-align: end; }
.auth-mark .tag-line { font-size: var(--t-m); color: var(--muted); font-weight: 500; }
.auth .screen-title { margin-top: var(--s-6); }
.auth .err, .form-err { color: var(--c-pain); font-weight: 600; font-size: 15px; margin-top: var(--s-3); }
.auth .row .btn { flex: 1; min-height: 54px; font-size: var(--t-l); }

/* ---------- Tab bar: a flat bar on the canvas; the active tab gets a volt line on top ---------- */
.tabs { position: fixed; inset-inline: 0; bottom: 0; z-index: 10; background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabs .inner { max-width: 460px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.tabs button { border: 0; background: none; border-radius: 0; min-height: 62px; padding: 8px 2px 6px; display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 12px; font-weight: 600; letter-spacing: .01em; color: var(--muted); }
.tabs button svg { width: 24px; height: 24px; }
.tabs button[aria-current="page"] { color: var(--ink); box-shadow: inset 0 3px 0 var(--c-load); }

/* ---------- RPE buttons (week + session), small parts ---------- */
.rpe { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-2); margin-top: var(--s-2); }
.rpe button { width: 100%; height: 46px; padding: 0; border: 0; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line2); border-radius: var(--r-m); font-family: var(--f-num); font-size: 20px; font-weight: 500; }
.rpe button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.rpe button.heavy { color: var(--c-game); box-shadow: inset 0 0 0 1.5px var(--c-game); }
.rpe button.heavy[aria-pressed="true"] { background: var(--c-game); color: var(--on-accent); }
.ses-sec { overflow: hidden; margin-top: var(--s-3); }
.ses-head { display: flex; justify-content: space-between; gap: 8px; padding: 14px 18px; font-weight: 600; background: var(--surface2); }
.ses-head span:last-child { font-family: var(--f-num); font-weight: 500; font-size: 17px; color: var(--muted); }
.ses-ex td:first-child a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 4px; }
.ses-ex td:first-child small { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--c-rest-soft); padding: 1px 10px; border-radius: var(--r-s); }
.ses-ex td:last-child { direction: var(--ui-dir, rtl); white-space: normal; text-align: start; max-width: 42%; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--c-game); margin-top: var(--s-2); }
.tag.ok { color: var(--c-load); }
.scn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.scn button { border: 0; box-shadow: inset 0 0 0 1px var(--line2); background: var(--surface); border-radius: var(--r-m); padding: 10px 14px; min-height: var(--tap); font-weight: 600; font-size: 15px; text-align: start; }
.toast { position: fixed; inset-inline: 16px; bottom: 84px; background: var(--ink); color: var(--bg); border-radius: var(--r-m); padding: 14px 18px; font-weight: 600; font-size: 15px; z-index: 60; }

/* Empty state: one sentence, one action */
.empty { display: grid; justify-items: center; gap: var(--s-3); text-align: center; padding: 32px 24px; border: 1px dashed var(--field-line); border-radius: var(--r-l); color: var(--muted); }
.empty .ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--c-rest-soft); color: var(--muted); }
.empty h3 { font-size: var(--t-l); font-weight: 600; color: var(--ink); }
.empty p { margin: 0; font-size: 15px; max-width: 28ch; }

@media (min-width: 700px) { .app { padding-block-end: 140px; } }
@media (prefers-reduced-motion: no-preference) {
  .btn, .seg button, .opts button, .rpe button, .day, .tabs button, .stepper button, .chk, .habit input { transition: transform var(--dur-1) var(--ease), background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
  .btn:active, .seg button:active, .opts button:active, .rpe button:active, .day:active, .stepper button:active { transform: scale(.97); }
  .wk7 i, .vital .pips i { transition: background-color var(--dur-2) var(--ease), height var(--dur-2) var(--ease); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ===== Program components: block kinds ===== */
.k-prep   { --k: var(--neural); --k-soft: var(--neural-soft); }
.k-brake  { --k: var(--court);  --k-soft: var(--court-soft); }
.k-main   { --k: var(--turf);   --k-soft: var(--turf-soft); }
.k-second { --k: var(--turf);   --k-soft: transparent; }
.k-core   { --k: var(--rest);   --k-soft: var(--rest-soft); }
.kchip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: var(--r-s); background: var(--k-soft); color: var(--k); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 40%, transparent); white-space: nowrap; }
.pat { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: var(--r-s); background: var(--rest-soft); color: var(--muted); white-space: nowrap; }
.pats { display: flex; flex-wrap: wrap; gap: 6px; }
.num { font-family: var(--f-num); font-weight: 500; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.mono-id { font-family: var(--f-num); font-weight: 400; font-size: 12px; color: var(--muted); direction: ltr; }

/* Day workout header + block progress */
.wk-head { margin-top: 24px; display: grid; gap: 12px; }
.wk-head h1 { font-size: 30px; font-weight: 400; line-height: 1.15; letter-spacing: 0; }
.wk-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; }
.wk-meta b { color: var(--ink); font-weight: 600; }
.wk-steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.wk-steps i { height: 4px; border-radius: var(--r-s); background: var(--rest-soft); }
.wk-steps i.on { background: var(--ink); }
.wk-steps i.now { background: var(--k, var(--ink)); }

/* Superset block card */
.sset { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); overflow: hidden; }
.sset.now { border-color: var(--k); box-shadow: 0 0 0 1px var(--k), var(--shadow); }
.sset.done { opacity: .62; }
.sset.next { opacity: .85; }
.sset-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; min-height: 64px; }
.sset-l { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-num); font-weight: 500; font-size: 15px; background: var(--k-soft); color: var(--k); box-shadow: inset 0 0 0 1.5px var(--k); }
.sset.done .sset-l { background: var(--ink); color: var(--bg); box-shadow: none; }
.sset-t { font-weight: 600; font-size: 17px; line-height: 1.2; }
.sset-t small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.sset-spec { font-family: var(--f-num); font-weight: 500; font-size: 15px; color: var(--ink); direction: ltr; text-align: end; line-height: 1.25; }
.sset-spec small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.sx { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 10px 16px; min-height: 60px; border-top: 1px solid var(--line); text-align: start; background: none; border-inline: 0; border-bottom: 0; width: 100%; color: inherit; }
.sx-n { font-weight: 600; font-size: 16px; line-height: 1.3; }
.sx-s { font-size: 13px; color: var(--muted); }
.sx-rx { font-family: var(--f-num); font-weight: 500; font-size: 15px; direction: ltr; color: var(--ink); white-space: nowrap; }
.play { width: var(--tap); height: var(--tap); border-radius: 12px; border: 0; display: grid; place-items: center; background: var(--surface2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.play svg { width: 18px; height: 18px; }
.rest-line { display: flex; justify-content: space-between; padding: 10px 16px; border-top: 1px dashed var(--line2); font-size: 13px; color: var(--muted); }
.sset-foot { padding: 12px 16px 16px; display: grid; }

/* Exercise card */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-l); overflow: hidden; background: radial-gradient(80% 90% at 30% 20%, var(--surface2), var(--bg2)); border: 1px solid var(--line); display: grid; place-items: center; }
.video .bigplay { width: 64px; height: 64px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.video .bigplay svg { width: 24px; height: 24px; }
.video .dur { position: absolute; inset-block-end: 12px; inset-inline-start: 12px; font-family: var(--f-num); font-size: 12px; padding: 2px 10px; border-radius: var(--r-s); background: var(--glass); direction: ltr; }
.spec3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.spec { padding: 14px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); text-align: center; }
.spec b { display: block; font-family: var(--f-num); font-weight: 500; font-size: 36px; line-height: 1.05; letter-spacing: -.02em; direction: ltr; }
.spec span { font-size: 13px; color: var(--muted); }
.spec.rpe-spec b { color: var(--k, var(--ink)); }
.cues { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.cues li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 16px; }
.cues li span { font-family: var(--f-num); font-size: 13px; color: var(--muted); padding-top: 3px; direction: ltr; }

/* Logging a set */
.sets-done { display: grid; gap: 8px; }
.setrow { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 12px; align-items: center; padding: 0 16px; min-height: 52px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); font-size: 15px; }
.setrow .num { font-size: 16px; }
.setrow .chk { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); }
.setrow.todo { opacity: .55; background: transparent; border-style: dashed; border-color: var(--line2); }
.cur { background: var(--surface); border: 1px solid var(--k, var(--line2)); border-radius: var(--r-l); padding: 20px; display: grid; gap: 20px; box-shadow: var(--shadow); }
.cur-head { display: flex; justify-content: space-between; align-items: baseline; }
.cur-head .num { font-size: 15px; color: var(--muted); }
.steps2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stepper { display: grid; gap: 8px; justify-items: center; }
.stepper .lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.stepper .val { font-family: var(--f-num); font-weight: 500; font-size: 56px; line-height: 1; letter-spacing: -.03em; direction: ltr; }
.stepper .val small { font-size: 16px; font-weight: 500; color: var(--muted); margin-inline-start: 4px; }
.stepper .pm { display: flex; gap: 8px; direction: ltr; }
.stepper button { width: 52px; height: 48px; border-radius: var(--r-m); border: 1px solid var(--line2); background: transparent; font-size: 24px; line-height: 1; display: grid; place-items: center; }
.stepper .target { font-size: 12px; color: var(--muted); }
.rpe6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; direction: ltr; }
.rpe6 button { height: 48px; padding: 0; border: 1px solid var(--line2); background: transparent; border-radius: var(--r-m); font-family: var(--f-num); font-size: 16px; }
.rpe6 button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rpe6 button.inband { border-color: var(--k, var(--ink)); }
.rpe6 button.heavy[aria-pressed="true"] { background: var(--court); border-color: var(--court); color: var(--on-accent); }
.rest-timer { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: var(--r-m); background: var(--rest-soft); }
.rest-timer .num { font-size: 32px; font-weight: 400; }
.btn.block-btn { width: 100%; min-height: 52px; font-size: 17px; }

/* Coach builder */
.bd-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.bd-top h1 { font-size: 26px; font-weight: 400; line-height: 1.15; }
.ver { font-family: var(--f-num); font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: var(--r-s); background: var(--rest-soft); color: var(--muted); direction: ltr; }
.cov { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.cov::-webkit-scrollbar { display: none; }
.cov .pat { flex: none; }
.cov .pat.on { background: var(--turf-soft); color: var(--turf); }
.cov .pat.gap { background: transparent; color: var(--court); box-shadow: inset 0 0 0 1px var(--court); }
.bd-blk { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); overflow: hidden; }
.bd-bh { display: grid; grid-template-columns: var(--tap) 1fr auto; align-items: center; gap: 4px; padding: 6px 8px 6px 4px; border-bottom: 1px solid var(--line); background: var(--k-soft); }
.grip { width: var(--tap); height: var(--tap); display: grid; place-items: center; color: var(--muted); background: none; border: 0; }
.bd-bh .kname { font-weight: 600; font-size: 16px; display: flex; gap: 8px; align-items: center; }
.bd-bh .kname i { width: 8px; height: 8px; border-radius: 50%; background: var(--k); display: inline-block; }
.fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 16px; }
.fld { display: grid; gap: 2px; }
.fld span { font-size: 12px; font-weight: 600; color: var(--muted); }
.fld b { display: grid; place-items: center; min-height: var(--tap); border-radius: 12px; border: 1px solid var(--line2); font-family: var(--f-num); font-weight: 400; font-size: 16px; direction: ltr; background: var(--bg); }
.bd-ex { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 10px 16px; min-height: 64px; border-top: 1px solid var(--line); }
.bd-ex .rm { width: var(--tap); height: var(--tap); border: 0; background: none; color: var(--muted); display: grid; place-items: center; }
.bd-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; border: 0; border-top: 1px dashed var(--line2); background: none; font-weight: 600; font-size: 15px; color: var(--ink); }
.bd-add-blk { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; border: 1px dashed var(--line2); border-radius: var(--r-m); background: none; font-weight: 600; color: var(--ink); }
.bd-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 10; padding: 12px 20px calc(env(safe-area-inset-bottom, 0px) + 12px); background: linear-gradient(to top, var(--bg) 70%, transparent); }
.bd-bar .inner { max-width: 420px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 8px; }

/* Library picker sheet */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 30; }
.lib { position: fixed; inset-inline: 0; bottom: 0; z-index: 31; max-height: 86vh; background: var(--bg2); border: 1px solid var(--line2); border-bottom: 0; border-radius: var(--r-l) var(--r-l) 0 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; overflow: hidden; }
.lib .grab { width: 40px; height: 4px; border-radius: var(--r-s); background: var(--line2); margin: 10px auto 0; }
.lib-search { margin: 12px 20px 0; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line2); color: var(--muted); }
.lib-filters { display: flex; gap: 8px; overflow-x: auto; padding: 12px 20px; scrollbar-width: none; }
.lib-filters::-webkit-scrollbar { display: none; }
.lib-filters button { flex: none; border: 1px solid var(--line2); background: transparent; border-radius: var(--r-s); min-height: var(--tap); padding: 0 16px; font-weight: 600; font-size: 15px; }
.lib-filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lib-count { padding: 0 20px 8px; font-size: 13px; color: var(--muted); }
.lib-list { overflow-y: auto; padding: 0 12px 24px; }
.lib-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px; min-height: 72px; border-radius: var(--r-s); }
.lib-item .th { width: 56px; height: 56px; border-radius: 12px; background: var(--surface2); display: grid; place-items: center; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.lib-item .nm { font-weight: 600; font-size: 16px; direction: ltr; text-align: start; unicode-bidi: plaintext; }
.lib-item .add { width: var(--tap); height: var(--tap); border-radius: 50%; border: 1px solid var(--line2); background: none; display: grid; place-items: center; }
.lib-item .add.in { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lib-item .pats { margin-top: 4px; }

/* Month overview */
.mrow { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); min-height: 72px; }
.mrow .wn { font-size: 13px; font-weight: 600; color: var(--muted); }
.mrow .dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mrow .dots .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-num); font-size: 12px; margin-inline: auto; }
.mrow.now { border-color: var(--ink); }
.mrow.past { opacity: .6; }
.mrow .st { font-family: var(--f-num); font-size: 13px; color: var(--muted); direction: ltr; }

/* Add-exercise flow (builder) and loading type */
.cfg { min-width: 0; grid-template-columns: minmax(0, 1fr); display: grid; gap: 16px; padding: 4px 20px 24px; overflow-y: auto; }
.cfg-top { display: grid; grid-template-columns: var(--tap) 1fr; align-items: center; gap: 4px; padding: 0 8px 0 0; }
.cfg-top b { font-size: 16px; font-weight: 600; }
.cfg-top small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.cfg .video { border-radius: var(--r-m); }
.cfg .video .bigplay { width: 48px; height: 48px; }
.cfg .vtag { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-s); background: var(--glass); color: var(--turf); }
.mini3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mini { display: grid; gap: 6px; justify-items: center; padding: 10px 4px 8px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.mini .lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.mini .v { font-family: var(--f-num); font-weight: 500; font-size: 34px; line-height: 1; direction: ltr; }
.mini .pm { display: flex; gap: 6px; direction: ltr; }
.mini .pm button { width: var(--tap); height: var(--tap); border-radius: 12px; border: 1px solid var(--line2); background: transparent; font-size: 22px; display: grid; place-items: center; }
.mini .def { font-size: 12px; color: var(--muted); }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-s); background: var(--rest-soft); }
.seg2 button { border: 0; border-radius: var(--r-s); min-height: var(--tap); background: transparent; font-weight: 600; font-size: 15px; }
.seg2 button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.fld-in { display: grid; gap: 6px; }
.fld-in span { font-size: 13px; font-weight: 600; color: var(--muted); }
.fld-in .in { display: flex; align-items: center; min-height: 52px; padding: 0 16px; border: 1px solid var(--line2); border-radius: var(--r-s); background: var(--surface); font-size: 16px; }
.attach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.attach button { min-height: 72px; border: 1px dashed var(--line2); border-radius: var(--r-m); background: none; display: grid; place-items: center; align-content: center; gap: 4px; font-size: 14px; font-weight: 600; }
.attach button svg { width: 22px; height: 22px; }
.loadtag { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: var(--r-s); box-shadow: inset 0 0 0 1px var(--line2); color: var(--muted); }
.loadtag.kg { color: var(--ink); }
.cur.bw .done-btn { min-height: 64px; font-size: 18px; }
.cur .bwnote { font-size: 14px; color: var(--muted); text-align: center; }

/* ===== Design polish 2026-11-11 (Designer). Old file: _archive/styles-2026-11-11-before-polish.css ===== */

/* (1) Week screen: "draft" buttons. The card's middle column was too narrow, so the labels wrapped and stacked.
   When a block carries draft buttons its text column dissolves into the block grid, so the drafts can run the full card width,
   one line each, under the main button. */
.block:has(> div > [data-draft]) { row-gap: 0; }
.block:has(> div > [data-draft]) > .chip, .block:has(> div > [data-draft]) > .mins { grid-row: 1; }
.block:has(> div > [data-draft]) > div { display: contents; }
.block:has(> div > [data-draft]) > div > * { grid-column: 2; }
.block:has(> div > [data-draft]) > div > .name { grid-row: 1; }
.block:has(> div > [data-draft]) > div > .meta:first-of-type { grid-row: 2; }
.block:has(> div > [data-draft]) > div > .btn.small:not([data-draft]) { grid-row: 3; }
.block:has(> div > [data-draft]) > div > .btn.small:not([data-draft]) { justify-self: start; margin-top: 12px; }
.block [data-draft] { grid-column: 1 / -1 !important; justify-self: stretch; width: 100%; margin-top: 8px; min-height: var(--tap);
  justify-content: space-between; gap: 12px; padding: 0 16px; font-size: 14px; font-weight: 500; text-align: start;
  white-space: nowrap; border-style: dashed; border-color: var(--line2); color: var(--ink); }
.block [data-draft]::after { content: "\2190"; font-family: var(--f-num); color: var(--muted); flex: none; }
.block [data-draft] { overflow: hidden; text-overflow: ellipsis; }
.block [data-draft]:nth-of-type(2) { grid-row: 4; }
.block [data-draft]:nth-of-type(3) { grid-row: 5; }
.block [data-draft]:nth-of-type(4) { grid-row: 6; }
.block [data-draft]:nth-of-type(2) { margin-top: 16px; }

/* (2) Top bar inside a workout: back arrow, then the title (start-aligned, no tracking: Hebrew must not be letter-spaced),
   then the id, and the draft badge last, small and quiet at the far end. */
.top:has(> .play) { gap: 10px; justify-content: flex-start; padding: 6px 8px; padding-inline-start: 6px; }
.top > .play { flex: none; width: 40px; height: 40px; border-radius: 50%; }
.top:has(> .play) .brand { flex: 1; min-width: 0; letter-spacing: 0; font-family: var(--f-body); font-weight: 600; font-size: 16px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top:has(> .play) .mono-id { flex: none; }
.top:has(> .play) .tier-pill { flex: none; background: var(--rest-soft); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line2); font-size: 12px; font-weight: 600; padding: 4px 12px; margin-inline-end: 8px; }

/* (3) Exercise card with no video: a calm, deliberate strip instead of an empty 16:9 frame.
   Icon is drawn here, the sentence sits beside it. A real video (anchor) keeps the full 16:9 frame. */
div.video { aspect-ratio: auto; min-height: 0; display: flex; align-items: center; justify-content: flex-start; gap: 14px; padding: 16px 18px;
  border-radius: var(--r-m); border: 1px dashed var(--line2); background: var(--rest-soft); }
div.video::before { content: ""; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line2);
  -webkit-mask: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239EA4AD' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 10l4.5-2.5v9L15 14M3 3l18 18'/%3E%3Cpath d='M9 6H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h8a2 2 0 0 0 1-.3'/%3E%3C/svg%3E");
  background-size: 22px; background-position: center; background-repeat: no-repeat; }
div.video .hint { padding: 0 !important; text-align: start !important; font-size: 15px; line-height: 1.4; color: var(--ink); }
div.video .hint:empty, div.video:not(:has(.hint:not(:empty))) { display: none; }

/* (4) Exercise rows: names are English, notes are Hebrew, the row is RTL. Everything aligns to the same (start) edge,
   the name may wrap but stays balanced, and the play mark shrinks so the name gets the width. */
.sx { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; }
.sx > span:nth-child(2) { min-width: 0; text-align: start; }
.sx .sx-n { direction: var(--ui-dir, rtl) !important; unicode-bidi: isolate; text-align: start !important; font-size: 16px; overflow-wrap: anywhere; text-wrap: balance; }
.sx .sx-s { direction: var(--ui-dir, rtl); text-align: start !important; margin-top: 2px; }
.sx .play { width: 28px; height: 28px; background: none; box-shadow: none; color: var(--muted); border-radius: 50%; }
.sx .play svg { width: 16px; height: 16px; }
.sx .row { gap: 6px; }
.sx-rx { font-weight: 400; font-size: 16px; }

/* exercise card title: English name aligned to the same edge as the Hebrew chips under it */
.section > div > h1[style] { direction: var(--ui-dir, rtl) !important; text-align: start !important; unicode-bidi: isolate; overflow-wrap: anywhere; text-wrap: balance; }

/* (5) Coach: logged sets. One card per day and session, a row per set.
   Today the list is text only; with the markup in the notes (spans per number) the same rules light up the numbers. */
.ath .plog { display: grid; gap: 16px; font-size: 15px; margin-top: 12px; }
.plog-day { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; margin: 0; padding-top: 4px; }
.plog-day b { font-family: var(--f-num); font-weight: 500; font-size: 13px; padding: 3px 10px; border-radius: var(--r-s); background: var(--ink); color: var(--bg); direction: ltr; }
.plog ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 0; color: var(--ink); background: var(--surface2); border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.plog li { padding: 10px 14px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; line-height: 1.45; color: var(--muted); }
.plog li:first-child { border-top: 0; }
.plog li bdi { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
/* markup for Danny (see notes): li.pl-row > .pl-ex, .pl-set, .pl-load (b small i b), .pl-rpe */
.plog li.pl-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; }
.pl-ex { grid-column: 1 / -1; color: var(--ink); font-weight: 600; font-size: 15px; }
.pl-set { font-size: 13px; color: var(--muted); }
.pl-load { display: flex; align-items: baseline; gap: 4px; direction: ltr; justify-self: start; color: var(--ink); font-family: var(--f-num); white-space: nowrap; }
.pl-load > * { unicode-bidi: isolate; }
.pl-load b { font-weight: 500; font-size: 22px; line-height: 1.1; }
.pl-load small { font-family: var(--f-body); font-size: 13px; color: var(--muted); }
.pl-load i { font-style: normal; color: var(--muted); font-size: 16px; margin-inline: 4px; }
.pl-rpe { font-family: var(--f-num); font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: var(--r-s); background: var(--rest-soft); color: var(--muted); white-space: nowrap; }
.pl-rpe.heavy { background: var(--court-soft); color: var(--court); }

/* (6) Desktop 1024: the app column stays a phone column in the middle; keep it centred and give the card more air. */
@media (min-width: 900px) {
  .app { max-width: 520px; }
  .top { max-width: 520px; margin-inline: auto; }
}

/* human request */
.human { margin-top: 20px; }
.human textarea { display: block; width: 100%; box-sizing: border-box; margin: 6px 0 8px; padding: 10px 12px; font: inherit; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 8px; resize: vertical; }
.human .hint { margin-top: 8px; }

/* programs */
/* The Programs tab (my program, today, week, month) and the workout player. Classes: pg-* (tab), pl-* (player).
   Targets are 48px or more, numerals are the hero, colour only by block meaning plus the shape of a letter or a check. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.k-prep { --k: var(--c-recover); } .k-brake { --k: var(--c-game); } .k-main { --k: var(--c-load); } .k-second { --k: var(--c-load); } .k-core { --k: var(--c-rest); }

/* ---- Tab: today card ---- */
.pg-prog-line { margin: 0 0 var(--s-3); color: var(--ink-2); font-size: var(--t-m); }
.pg-prog-line .num { font-size: var(--t-l); color: var(--ink); }
.pg-today { margin-top: var(--s-4); padding: var(--s-4); background: var(--surface); border: 1px solid var(--line2); border-radius: var(--r-l); display: grid; gap: var(--s-3); }
.pg-today h2 { margin: 0; font-size: var(--t-xl); font-weight: 600; line-height: 1.15; }
.pg-kicker { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); font-size: var(--t-s); font-weight: 600; color: var(--ink-2); }
.pg-draft { font-size: var(--t-xs); font-weight: 600; padding: 2px 8px; border-radius: var(--r-s); border: 1px solid var(--line2); color: var(--muted); }
.pg-sub { margin: 0; color: var(--ink-2); font-size: var(--t-s); line-height: 1.5; }
.pg-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); color: var(--ink-2); font-size: var(--t-s); }
.pg-meta b { font-size: var(--t-2xl); color: var(--ink); line-height: 1; margin-inline-end: 4px; font-weight: 600; }
.pg-prog, .pl-bar { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.pg-prog i, .pl-bar i { display: block; height: 100%; background: var(--c-load); transition: width var(--dur-2) var(--ease); }
.pg-blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pg-blocks li { display: grid; grid-template-columns: 32px 1fr auto; gap: var(--s-3); align-items: center; padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.pg-l, .pl-l { width: 32px; height: 32px; border-radius: var(--r-s); display: grid; place-items: center; font-family: var(--f-num); font-weight: 600; font-size: 18px; border: 2px solid var(--k, var(--ink)); color: var(--k, var(--ink)); }
.is-done > .pg-l, .is-done .pl-l { background: var(--k, var(--ink)); color: var(--on-accent); }
.pg-bt { display: grid; min-width: 0; }
.pg-bt b { font-size: var(--t-m); font-weight: 600; }
.pg-bs { font-size: var(--t-s); color: var(--ink-2); white-space: nowrap; }
.pg-bs b { font-size: var(--t-l); color: var(--ink); }
.pg-start { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 64px; border: 0; border-radius: var(--r-m); background: var(--c-load); color: var(--on-accent); font-size: var(--t-l); font-weight: 600; padding: 0 var(--s-4); }
.pg-start.ghost { background: transparent; color: var(--ink); border: 2px solid var(--line2); min-height: 56px; }
.pg-today.is-done .pg-start { background: transparent; color: var(--ink); border: 2px solid var(--line2); min-height: 56px; }
.pg-alt { min-height: 48px; background: none; border: 0; color: var(--ink-2); font-size: var(--t-s); text-decoration: underline; text-underline-offset: 3px; }
.pg-none h2 { font-size: var(--t-l); }

/* ---- Tab: week and month ---- */
.pg-sec { margin-top: var(--s-6); }
.pg-h { margin: 0 0 var(--s-3); font-size: var(--t-l); font-weight: 600; }
.pg-more { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line2); }
.pg-week { list-style: none; margin: 0; padding: 0; }
.pg-day { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: var(--s-3); min-height: 56px; padding: var(--s-2) 0; border-top: 1px solid var(--line); }
.pg-day:last-child { border-bottom: 1px solid var(--line); }
.pg-day.is-today { background: var(--surface); margin-inline: calc(var(--s-3) * -1); padding-inline: var(--s-3); border-radius: var(--r-m); border-color: transparent; box-shadow: inset 3px 0 0 var(--c-load); }
.pg-dn { font-family: var(--f-num); font-size: var(--t-xl); font-weight: 600; color: var(--ink-2); text-align: center; }
.pg-day.is-today .pg-dn { color: var(--ink); }
.pg-dt { display: grid; min-width: 0; }
.pg-dt b { font-size: var(--t-m); font-weight: 600; }
.pg-dt small { font-size: var(--t-s); color: var(--muted); }
.pg-st { font-size: var(--t-s); color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.pg-st.ok { color: var(--c-load); font-weight: 600; } .pg-st.dim { color: var(--muted); }
.pg-ses { border-top: 1px solid var(--line); }
.pg-ses:last-of-type { border-bottom: 1px solid var(--line); }
.pg-ses summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s-3); min-height: 64px; padding: var(--s-2) 0; cursor: pointer; list-style: none; }
.pg-ses summary::-webkit-details-marker { display: none; }
.pg-st-t { display: grid; } .pg-st-t b { font-size: var(--t-m); font-weight: 600; } .pg-st-t small { font-size: var(--t-s); color: var(--muted); }
.pg-ses .arrow { font-size: 24px; color: var(--ink-2); transition: transform var(--dur-1); }
.pg-ses[open] .arrow { transform: rotate(-90deg); }
.pg-ses-body { display: grid; gap: var(--s-3); padding-bottom: var(--s-4); }

/* ---- Player ---- */
.sheet .app.pl { padding-block: 0 0; padding-inline: var(--s-4); display: flex; flex-direction: column; min-height: 100%; }
.pl-top { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: var(--s-2); min-height: 64px; background: var(--bg); padding-top: env(safe-area-inset-top, 0px); }
.pl-ib { width: 48px; height: 48px; border-radius: var(--r-m); border: 1px solid var(--line2); background: transparent; color: var(--ink); display: grid; place-items: center; padding: 0; }
.pl-tt { display: grid; text-align: center; min-width: 0; }
.pl-tt b { font-size: var(--t-m); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-tt small { font-size: var(--t-s); color: var(--ink-2); }
.pl-bar { margin-bottom: var(--s-4); }
.pl-bottom { position: sticky; bottom: 0; margin-top: auto; display: grid; gap: var(--s-2); padding: var(--s-3) 0 calc(env(safe-area-inset-bottom, 0px) + var(--s-3)); background: linear-gradient(to bottom, transparent, var(--bg) 18px); }
.pl-go { display: flex; align-items: center; justify-content: center; gap: var(--s-2); width: 100%; min-height: 72px; border: 0; border-radius: var(--r-m); background: var(--c-load); color: var(--on-accent); font-size: var(--t-xl); font-weight: 600; padding: 0 var(--s-4); }
.pl-go svg { width: 28px; height: 28px; }
.pl-ghost { min-height: 52px; border: 2px solid var(--line2); background: transparent; color: var(--ink); border-radius: var(--r-m); font-size: var(--t-m); font-weight: 600; }
.pl .pg-meta { margin-bottom: var(--s-4); }

/* list screen */
.pl-stack { display: grid; gap: var(--s-4); padding-bottom: var(--s-4); }
.pl-blk { border: 1px solid var(--line2); border-radius: var(--r-l); background: var(--surface); overflow: hidden; }
.pl-blk.is-now { border-color: var(--k); box-shadow: 0 0 0 1px var(--k); }
.pl-blk.is-done { opacity: .62; }
.pl-blk-h { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: var(--s-2) var(--s-3); padding: var(--s-3) var(--s-4); }
.pl-blk-h b { font-size: var(--t-m); font-weight: 600; }
.pl-blk-s { grid-column: 2; font-size: var(--t-s); color: var(--ink-2); margin-top: -8px; }
.pl-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: var(--s-3); width: 100%; min-height: 64px; padding: var(--s-2) var(--s-4); background: transparent; border: 0; border-top: 1px solid var(--line); text-align: start; color: var(--ink); }
.pl-id { font-family: var(--f-num); font-weight: 600; font-size: var(--t-l); color: var(--k, var(--ink-2)); direction: ltr; }
.pl-rn { display: grid; min-width: 0; } .pl-rn bdi { font-size: var(--t-m); font-weight: 600; direction: ltr; text-align: start; }
.pl-rn small { font-size: var(--t-s); color: var(--muted); }
.pl-rx { display: grid; justify-items: end; } .pl-rx b { font-size: var(--t-xl); line-height: 1; font-weight: 600; } .pl-rx small { font-size: var(--t-s); color: var(--ink-2); }

/* exercise screen */
.pl-chain { display: flex; gap: var(--s-2); margin-bottom: var(--s-3); }
.pl-chain button { flex: 1; display: flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; padding: 0 var(--s-2); border-radius: var(--r-m); border: 1px solid var(--line2); background: transparent; color: var(--ink-2); font-size: var(--t-s); }
.pl-chain button.on { border: 2px solid var(--k); color: var(--ink); font-weight: 600; }
.pl-name { margin: 0; font-size: 34px; line-height: 1.12; font-weight: 800; text-align: start; }
.pl-exc { display: grid; gap: var(--s-3); }
.pl-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pl-tags span { font-size: var(--t-s); font-weight: 600; color: var(--ink-2); border: 1px solid var(--line2); border-radius: var(--r-s); padding: 2px 10px; }
.pl-video { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: 0 var(--s-4) 0 var(--s-5); border-radius: var(--r-m); border: 2px solid var(--line2); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--t-m); justify-self: start; }
.pl-play { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; } .pl-play svg { width: 14px; height: 14px; }
.pl-novideo { margin: 0; font-size: var(--t-s); color: var(--muted); }
.pl-spec { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line2); }
.pl-spec > div { display: grid; justify-items: center; padding: var(--s-3) 0; } .pl-spec > div + div { border-inline-start: 1px solid var(--line); }
.pl-spec b { font-size: 44px; line-height: 1; font-weight: 600; } .pl-spec span { font-size: var(--t-s); color: var(--ink-2); }
.pl-line { margin: 0; display: flex; justify-content: space-between; align-items: baseline; font-size: var(--t-m); color: var(--ink-2); } .pl-line b { font-size: var(--t-xl); color: var(--ink); font-weight: 600; }
.pl-note { margin: 0; padding: var(--s-3); border-radius: var(--r-m); background: var(--surface); font-size: var(--t-m); }
.pl-cl { font-size: var(--t-s); font-weight: 600; color: var(--ink-2); } .pl-cl small { font-weight: 400; color: var(--muted); }
.pl-cues ol { margin: var(--s-2) 0 0; padding-inline-start: 24px; display: grid; gap: var(--s-2); font-size: var(--t-m); }
.pl-pills { display: flex; gap: var(--s-2); margin: var(--s-4) 0 var(--s-3); }
.pl-pill { flex: 1; min-height: 40px; display: grid; place-items: center; border-radius: var(--r-s); border: 2px solid var(--line2); font-family: var(--f-num); font-size: var(--t-l); font-weight: 600; color: var(--ink-2); }
.pl-pill.on { background: var(--c-load); border-color: var(--c-load); color: var(--on-accent); } .pl-pill.now { border-color: var(--ink); color: var(--ink); }
.pl-cur { display: grid; gap: var(--s-4); padding: var(--s-4); border: 2px solid var(--ink); border-radius: var(--r-l); background: var(--surface); }
.pl-cur-h { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); font-size: var(--t-s); color: var(--ink-2); }
.pl-cur-h > b { font-size: var(--t-xl); color: var(--ink); font-weight: 600; } .pl-cur-h > b small { font-size: var(--t-s); font-weight: 400; color: var(--ink-2); }
.pl-cur-h span b { color: var(--ink); font-size: var(--t-l); }
.pl-step { display: grid; grid-template-columns: 76px 1fr 76px; grid-template-areas: "l l l" "m v p" "h h h"; gap: var(--s-1) var(--s-2); direction: ltr; align-items: center; }
.pl-sl { grid-area: l; direction: var(--ui-dir, rtl); text-align: start; font-size: var(--t-m); font-weight: 600; } .pl-sl small { font-weight: 400; color: var(--ink-2); font-size: var(--t-s); }
.pl-sh { grid-area: h; direction: var(--ui-dir, rtl); text-align: center; font-size: var(--t-s); color: var(--ink-2); min-height: 20px; } .pl-sh b { color: var(--ink); }
.pl-pm { height: 76px; border-radius: var(--r-m); border: 2px solid var(--line2); background: var(--surface2); color: var(--ink); font-size: 40px; font-weight: 400; line-height: 1; padding: 0; }
.pl-pm:first-of-type { grid-area: m; } .pl-pm:last-of-type { grid-area: p; }
.pl-pm:active { background: var(--ink); color: var(--bg); }
.pl-val { grid-area: v; width: 100%; min-width: 0; height: 76px; text-align: center; border: 0; border-bottom: 3px solid var(--line2); background: transparent; border-radius: 0; font-size: 64px; font-weight: 600; color: var(--ink); padding: 0; font-family: var(--f-num); }
.pl-val:focus { outline: none; border-bottom-color: var(--ink); }
.pl-bw { margin: 0; text-align: center; font-size: 72px; font-weight: 600; line-height: 1; } .pl-bw small { display: block; font-family: var(--f-body); font-size: var(--t-m); font-weight: 400; color: var(--ink-2); margin-top: var(--s-2); }
.pl-rpeb { display: grid; gap: var(--s-2); }
.pl-rpe-g { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-2); direction: ltr; }
.pl-rpe-g button, .pl-rpe10 button { min-height: 52px; border-radius: var(--r-m); border: 2px solid var(--line2); background: transparent; color: var(--ink); font-family: var(--f-num); font-size: var(--t-xl); font-weight: 600; padding: 0; }
.pl-rpe-g button.inband { border-color: var(--ink-2); }
.pl-rpe-g button[aria-pressed="true"], .pl-rpe10 button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pl-rpe-g button.heavy[aria-pressed="true"], .pl-rpe10 button.heavy[aria-pressed="true"] { background: var(--c-game); border-color: var(--c-game); color: var(--on-accent); }
.pl-dones { display: grid; margin-top: var(--s-4); }
.pl-done { display: grid; grid-template-columns: 28px 1fr auto auto; align-items: center; gap: var(--s-3); min-height: 56px; border-top: 1px solid var(--line); font-size: var(--t-m); }
.pl-dn { font-size: var(--t-l); color: var(--ink-2); } .pl-dv b { font-size: var(--t-xl); font-weight: 600; } .pl-dr { color: var(--ink-2); font-size: var(--t-s); }
.pl-undo { min-height: 48px; padding: 0 var(--s-3); background: none; border: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-size: var(--t-s); }

/* rest timer */
.pl-rest { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--s-2) var(--s-4); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-3); border: 2px solid var(--c-recover); border-radius: var(--r-l); background: var(--surface); }
.pl-rest.ready { border-color: var(--c-load); background: var(--c-load-soft); }
.pl-rest-l { font-size: var(--t-m); font-weight: 600; color: var(--ink-2); }
.pl-rest-n { font-size: 64px; line-height: 1; font-weight: 600; justify-self: end; }
.pl-rest-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; } .pl-rest-bar i { display: block; height: 100%; background: var(--c-recover); }
.pl-rest.ready .pl-rest-bar i { background: var(--c-load); }
.pl-rest-b { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s-2); }
.pl-rest-b button { min-height: 52px; border-radius: var(--r-m); border: 2px solid var(--line2); background: transparent; color: var(--ink); font-size: var(--t-m); font-weight: 600; }

/* finish */
.pl-fin { display: grid; gap: var(--s-5); padding-bottom: var(--s-4); }
.pl-fin h1 { margin: 0; font-size: var(--t-2xl); font-weight: 800; }
.pl-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line2); border-radius: var(--r-l); overflow: hidden; }
.pl-sum > div { display: grid; padding: var(--s-4); border-bottom: 1px solid var(--line); } .pl-sum > div:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.pl-sum b { font-size: 56px; line-height: 1; font-weight: 600; } .pl-sum b small { font-size: var(--t-xl); color: var(--ink-2); } .pl-sum span { font-size: var(--t-s); color: var(--ink-2); }
.pl-warn { margin: 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-m); border: 1px solid var(--c-game); font-size: var(--t-m); }
.pl-rpe-fin h2 { margin: 0 0 var(--s-3); font-size: var(--t-xl); font-weight: 600; }
.pl-rpe10 { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-2); direction: ltr; } .pl-rpe10 button { min-height: 60px; font-size: 32px; }
.pl-rpe-ends { display: flex; justify-content: space-between; font-size: var(--t-s); color: var(--ink-2); margin-top: var(--s-2); }
.pl-rpe-word { margin: var(--s-3) 0 0; font-size: var(--t-m); font-weight: 600; min-height: 24px; }
.pl button:focus-visible, .pl input:focus-visible, .pl a:focus-visible, .pg-start:focus-visible, .pg-ses summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .pg-prog i, .pl-bar i, .pg-ses .arrow { transition: none; } }
@media (min-width: 900px) { .sheet .app.pl { max-width: 520px; } }
.pg-cl { font-size: var(--t-s); font-weight: 600; color: var(--ink-2); margin-top: var(--s-2); }
.pl-details { margin-top: var(--s-5); padding-bottom: var(--s-4); }

/* In-app demo video (public/video.js). Bottom sheet on a phone, centered on a wide screen. */
.vlink { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; text-align: start; min-height: 48px; cursor: pointer; }
.pl-video { background: none; font-family: inherit; cursor: pointer; }
.vsheet { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; }
.vs-panel { width: 100%; max-width: 720px; background: var(--bg); border-radius: var(--r-l) var(--r-l) 0 0; padding: var(--s-3) var(--s-4) calc(var(--s-5) + env(safe-area-inset-bottom, 0px)); display: grid; gap: var(--s-3); max-height: 100%; overflow-y: auto; }
.vs-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.vs-name { margin: 0; font-size: var(--t-l); font-weight: 600; line-height: 1.2; text-align: start; min-width: 0; overflow-wrap: anywhere; }
.vs-close { flex: none; min-height: 48px; min-width: 48px; padding: 0 var(--s-4); border-radius: var(--r-m); border: 0; background: var(--ink); color: var(--bg); font: inherit; font-weight: 600; font-size: var(--t-m); cursor: pointer; }
.vs-frame { aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: var(--r-m); overflow: hidden; display: grid; }
.vs-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vs-fail { background: var(--surface); color: var(--ink); padding: var(--s-4); display: grid; gap: var(--s-3); align-content: center; justify-items: start; }
.vs-fail p { margin: 0; font-size: var(--t-m); }
.vs-note { margin: 0; font-size: var(--t-s); color: var(--muted); }

/* Consent screen, legal reading view, and the consent block on the profile */
.consent-screen, .legal { margin-top: var(--s-4); display: grid; gap: var(--s-3); }
.consent-screen .screen-title, .legal .screen-title { margin-top: var(--s-2); outline: none; }
.consent-lead { margin: 0; padding: 12px 16px; border-radius: var(--r-m); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--c-game); font-weight: 600; }
.consent-facts { margin: var(--s-2) 0 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.consent-facts dt { font-weight: 600; padding-top: 12px; border-top: 1px solid var(--line); }
.consent-facts dd { margin: 0 0 12px; color: var(--ink-2); }
.consent-boxes { display: grid; gap: var(--s-2); margin-block: var(--s-3); }
.consent .check, .consent-boxes .check, .consent-block .check { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); align-items: start; min-height: 48px; padding: 10px 0; cursor: pointer; font-size: var(--t-m); }
.consent-boxes .check input, .consent-block .check input { width: 28px; height: 28px; margin: 0; accent-color: var(--c-load); cursor: pointer; }
.opt-tag { color: var(--muted); font-weight: 600; }
.consent-links { margin: 0; }
.consent-screen .err { color: var(--c-pain); font-weight: 600; margin: 0; }
.consent-out { margin-top: var(--s-4); }
.legal-body { display: grid; gap: var(--s-2); color: var(--ink-2); }
.legal-body p, .legal-body ul { margin: 0; }
.legal-body ul { padding-inline-start: 22px; display: grid; gap: 6px; }
.legal-h { font-size: var(--t-l); font-weight: 600; color: var(--ink); margin: var(--s-4) 0 0; }
.consent-block .row { flex-wrap: wrap; gap: var(--s-3); }
.withdraw-ask { background: var(--surface); border-radius: var(--r-m); padding: 16px; display: grid; gap: var(--s-3); box-shadow: inset 0 0 0 1.5px var(--c-pain); }
.withdraw-ask p { margin: 0; }

/* Schedule ahead (17.11.2026) */
.sw-week { border-top: 1px solid var(--line2); }
.sw-head { display: grid; gap: 2px; width: 100%; min-height: 56px; padding: 10px 0; background: transparent; border: 0; text-align: start; color: var(--ink); }
.sw-head .name { font-weight: 600; font-size: var(--t-m); }
.sw-head .meta, .sw-cur .meta { font-size: var(--t-s); color: var(--muted); }
.sw-head[aria-expanded="true"] .name::after { content: "▴"; margin-inline-start: 8px; color: var(--muted); }
.sw-head[aria-expanded="false"] .name::after { content: "▾"; margin-inline-start: 8px; color: var(--muted); }
.sw-cur { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 10px 0; flex-wrap: wrap; }
.sw-body { padding-bottom: var(--s-4); }
.opts button[data-sg], .opts button[data-st], .opts button[data-sr], .opts button[data-push] { min-height: 48px; min-width: 48px; }
.sw-prev .day { padding: 8px 0 6px; grid-template-rows: 44px auto auto; gap: 6px; }
.sw-prev .day .dot { height: calc(var(--h, 10) * .44px); }

/* Week chart: one straight line, one marker (the game). The day columns are invisible buttons over it. */
.wkchart { position: relative; margin-top: 8px; }
.wkchart svg { display: block; width: 100%; height: auto; }
.wkchart .ln { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.wkchart .ln.dash { stroke-dasharray: 5 5; stroke: var(--muted); }
.wkchart .m-acc { fill: var(--c-game); }
.wkchart .dn { font-family: var(--f-body); font-size: 15px; font-weight: 600; fill: var(--muted); }
.wkchart .dn.td { fill: var(--ink); font-weight: 600; }
.wkhits { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, 1fr); }
.wkhit { background: transparent; border: 0; padding: 0; min-width: 44px; border-radius: var(--r-m); }
.wkhit[aria-pressed="true"] { background: var(--surface2); opacity: .45; }
.wkhit:focus-visible { outline: 2px solid var(--c-load); outline-offset: -2px; }

/* Set timer: reuses the rest timer look */
.pl-tmr { margin-bottom: 0; }
.pl-tmr .pl-rest-b { grid-template-columns: 2fr 1fr; }
.pl-tmr .pl-rest-b button.go { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pl-tmr.over .pl-rest-n { opacity: .7; }

/* Staff inbox: 48px touch targets */
.ath [data-action="reqdone"], details > summary.linkish { min-height: 48px; }

/* Schedule month calendar (option A) */
.cal { display: grid; gap: var(--s-4); align-content: start; }
.cal .hd { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); }
.cal .st { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cal .meta, .cal .hint { font-size: var(--t-s); color: var(--muted); margin: 0; }
.calhd { display: flex; justify-content: space-between; align-items: center; } .calhd b { font-size: var(--t-l); }
.cal .nav { width: 48px; height: 48px; border-radius: var(--r-m); border: 0; background: var(--surface); color: var(--ink); font-size: 22px; box-shadow: inset 0 0 0 1px var(--line2); }
.cal .dh { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.cal .crow { display: grid; grid-template-columns: repeat(7, 1fr); border-radius: var(--r-m); }
.cal .crow.hl { background: var(--surface2); }
.cal .cell { height: 48px; border: 0; background: transparent; color: var(--ink); display: grid; grid-template-rows: auto 16px; justify-items: center; align-content: center; border-radius: var(--r-m); padding: 0; }
.cal .cell .n { font: 600 16px var(--f-num); line-height: 1.2; }
.cal .cell.past { color: var(--muted); opacity: .55; } .cal .cell.oth .n { color: var(--muted); }
.cal .cell.today .n { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cal .cell.sel { box-shadow: inset 0 0 0 2px var(--ink); background: var(--surface2); }
.cal .cell svg { width: 16px; height: 16px; }
.g-fill { fill: var(--ink); } .g-half { fill: color-mix(in srgb, var(--ink) 35%, transparent); stroke: var(--ink); stroke-width: 1.5; } .g-ring { fill: none; stroke: var(--ink-2); stroke-width: 2; }
.g-acc { fill: var(--c-game); } .g-team { fill: none; stroke: var(--muted); stroke-width: 2; } .g-team.on { stroke: var(--ink); fill: color-mix(in srgb, var(--ink) 25%, transparent); } .g-rest { fill: var(--muted); }
.legend1 { display: flex; gap: var(--s-4); font-size: 13px; color: var(--muted); } .legend1 span { display: inline-flex; gap: 6px; align-items: center; } .legend1 svg { width: 16px; height: 16px; }
.cal-sheet { background: var(--surface); border-radius: var(--r-l); padding: var(--s-3); display: grid; gap: var(--s-3); }
.cal .sh-h b { font-size: var(--t-l); }
.cal .two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.cal .tg { min-height: 48px; border-radius: var(--r-s); border: 0; background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line2); font-weight: 600; }
.cal .tg.big { min-height: 56px; font-size: var(--t-l); }
.cal .tg[aria-pressed="true"]::before { content: "✓ "; font-weight: 600; }
.cal .tg[aria-pressed="true"].g { background: var(--c-game); color: var(--on-accent); box-shadow: none; font-weight: 600; }
.cal .tg[aria-pressed="true"].t { background: var(--ink); color: var(--bg); box-shadow: none; font-weight: 600; }
.cal .row2 { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }
.cal-prev { display: grid; gap: var(--s-2); border-top: 1px solid var(--line2); padding-top: var(--s-3); }
.cal .pt { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); }
.cal .pc { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal .pc .c { display: grid; justify-items: center; gap: 4px; padding: 6px 0; border-radius: var(--r-s); }
.cal .pc .c.gm { box-shadow: inset 0 0 0 1.5px var(--c-game); }
.cal .pc .l { font-size: 13px; font-weight: 600; color: var(--muted); } .cal .pc .w { font-size: 12px; font-weight: 600; color: var(--ink-2); text-align: center; white-space: nowrap; }
.cal .pc .gm .w, .cal .pc .gm .l { color: var(--c-game); } .cal .pc svg { width: 20px; height: 20px; }
.cal .q { margin-top: 0; }
.cal .cgrid { display: grid; gap: 0; }

.ath .wa { display: inline-flex; align-items: center; min-height: 48px; }

/* ---------- Player, round 2 (18.11.2026): effort bars, set table, comment, pain, week line ---------- */
.pl-effort { display: grid; gap: var(--s-3); }
.pl-bars4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); direction: ltr; align-items: end; }
.pl-bar4 { display: grid; gap: var(--s-2); justify-items: stretch; }
.pl-dots { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; padding: 8px 4px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line2); }
.pl-bar4.g0 .pl-dots { min-height: 156px; } .pl-bar4.g1 .pl-dots { min-height: 184px; } .pl-bar4.g2 .pl-dots { min-height: 212px; } .pl-bar4.g3 .pl-dots { min-height: 240px; }
.pl-dot { width: 46px; height: 46px; border: 0; background: transparent; padding: 0; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }
.pl-dot i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted); display: block; transition: transform .12s; }
.pl-dot:active i { transform: scale(1.25); }
.pl-dot.on i { width: 34px; height: 34px; background: var(--ink); border-color: var(--ink); }
.pl-bar4.g2 .pl-dot.on i, .pl-bar4.g3 .pl-dot.on i { background: var(--c-game); border-color: var(--c-game); }
.pl-bn { text-align: center; font-size: var(--t-s); font-weight: 600; color: var(--ink-2); direction: var(--ui-dir, rtl); }
.pl-effort-w { margin: 0; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: var(--s-3); text-align: center; padding: 0 var(--s-3); border: 1px dashed var(--line2); border-radius: var(--r-m); color: var(--ink-2); font-size: var(--t-m); }
.pl-effort-w.chosen { border-style: solid; color: var(--ink); font-size: var(--t-xl); font-weight: 600; }
.pl-effort-w b { font-size: 40px; font-weight: 600; }
.pl-weekline { margin: 0; padding: var(--s-3) var(--s-4); border-inline-start: 4px solid var(--c-load); background: var(--c-load-soft); border-radius: var(--r-s); font-size: var(--t-m); font-weight: 600; }
.pl-pain h2 { margin: 0 0 var(--s-3); font-size: var(--t-xl); font-weight: 600; }
.pl-yn, .pl-lvl { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
.pl-lvl { grid-template-columns: repeat(5, 1fr); direction: ltr; }
.pl-yn button, .pl-lvl button { min-height: 56px; border-radius: var(--r-m); border: 2px solid var(--line2); background: transparent; color: var(--ink); font-size: var(--t-l); font-weight: 600; }
.pl-yn button[aria-pressed="true"], .pl-lvl button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pl-pain-f { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.pl-pain-f input, .pl-cmt textarea { width: 100%; min-height: 52px; padding: var(--s-2) var(--s-3); border-radius: var(--r-m); border: 2px solid var(--line2); background: transparent; color: var(--ink); font: inherit; font-size: var(--t-m); }
.pl-pain-r { margin: var(--s-3) 0 0; font-size: var(--t-m); color: var(--ink-2); }
.pl-pain-s { width: 100%; }
.pl-est { display: grid; gap: var(--s-1); } .pl-est p { margin: 0; display: flex; justify-content: space-between; gap: var(--s-3); border-top: 1px solid var(--line); padding: var(--s-2) 0; } .pl-est b { font-size: var(--t-l); font-weight: 600; } .pl-est small { color: var(--muted); font-size: var(--t-s); }
/* set table: what the coach prescribed in grey, what was done on top */
.pl-sets { display: grid; margin-top: var(--s-4); }
.pl-sh2 { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-2); }
.pl-all { min-height: 44px; padding: 0 var(--s-4); border-radius: var(--r-m); border: 2px solid var(--line2); background: transparent; color: var(--ink); font-size: var(--t-s); font-weight: 600; }
.pl-sr { display: grid; grid-template-columns: 32px minmax(0, 1fr) minmax(0, 1fr) 52px; align-items: center; gap: var(--s-2); min-height: 56px; border-top: 1px solid var(--line); font-size: var(--t-m); }
.pl-sr-h { min-height: 28px; border-top: 0; font-size: var(--t-xs); color: var(--muted); font-weight: 600; }
.pl-sn { color: var(--muted); font-size: var(--t-l); } .pl-sp, .pl-sa { font-family: var(--f-num); }
.pl-sp { color: var(--muted); font-size: var(--t-s); }
.pl-sa { color: var(--ink); } .pl-sa b { font-weight: 600; }
.pl-sr.is-now { background: var(--c-load-soft); border-radius: var(--r-s); }
.pl-tick { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line2); background: transparent; color: transparent; display: grid; place-items: center; padding: 0; justify-self: end; }
.pl-sr.is-now .pl-tick { border-color: var(--c-load); color: var(--c-load); }
.pl-tick.on { background: var(--c-load); border-color: var(--c-load); color: var(--on-accent); }
.pl-tick.off { border-style: dashed; opacity: .5; }
.pl-val.is-presc { color: var(--muted); }
.pl-rm-note { margin: var(--s-2) 0 0; padding: var(--s-3); border: 2px dashed var(--line2); border-radius: var(--r-m); font-size: var(--t-s); color: var(--ink-2); }
.pl-cmt { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.pl-cmt textarea { min-height: 96px; }
.pl-cmt-q { margin: 0; padding: var(--s-3); border-inline-start: 4px solid var(--c-recover); background: var(--c-recover-soft); border-radius: var(--r-s); display: grid; gap: var(--s-1); }
.pl-cmt-b { width: 100%; min-height: 52px; font-size: var(--t-m); }
.pl-cmt-r { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); } .pl-cmt-s { min-height: 52px; font-size: var(--t-l); }


/* ---------- Two languages (19.11.2026): Hebrew right to left, English left to right ----------
   <html dir> is set by i18n/i18n.js. --ui-dir is the page direction, used wherever a block inside a forced-LTR number area must return to the reading direction.
   Layout uses logical properties (inline-start / inline-end), so most things flip by themselves; only the few physical ones are overridden here. */
:root { --ui-dir: rtl; }
:root[dir="ltr"] { --ui-dir: ltr; }
:root[dir="ltr"] .ex-table td:last-child { text-align: right; }
:root[dir="ltr"] .stat b { text-align: left; }
.lang-slot { margin-inline-start: auto; flex: none; }
.top .lang-slot { margin-inline-start: auto; }
.lang-toggle { display: inline-flex; border-radius: var(--r-s); box-shadow: inset 0 0 0 1.5px var(--field-line); padding: 2px; gap: 2px; direction: ltr; }
.lang-toggle button { border: 0; background: transparent; color: var(--muted); font-family: var(--f-num); font-weight: 600; font-size: 13px; letter-spacing: .08em; min-width: 44px; min-height: 36px; padding: 0 10px; border-radius: var(--r-s); cursor: pointer; }
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lang-toggle button:focus-visible { outline: 2px solid var(--c-load); outline-offset: 2px; }
.lang-block { display: grid; gap: var(--s-2); justify-items: start; }
.top .tier-pill { margin-inline-start: var(--s-2); }
/* Consent: English above the Hebrew on one screen. Each block keeps its own direction. */
.consent-pending { margin: 0; padding: 12px 16px; border-radius: var(--r-m); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--c-game); font-weight: 600; text-align: start; }
.consent-notice { margin: 0; padding: 12px 16px; border-radius: var(--r-m); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line2); color: var(--ink-2); text-align: start; }
.consent-binding-label { margin: var(--s-3) 0 0; padding-top: var(--s-3); border-top: 2px solid var(--line2); font-weight: 600; color: var(--ink-2); }
.consent-he { border-inline-start: 3px solid var(--c-load); padding-inline-start: var(--s-3); display: grid; gap: var(--s-3); }
.consent-he .legal-h { margin: 0; }
.cb-text { display: grid; gap: 6px; }
.cb-en { color: var(--ink); }
.cb-he { color: var(--ink-2); font-size: .94em; padding-top: 6px; border-top: 1px dashed var(--line2); }
.pl-note-lang { margin: 2px 0 0; font-size: var(--t-s); color: var(--muted); }
.auth-lang { display: flex; justify-content: flex-end; padding-top: calc(env(safe-area-inset-top, 0px) + 12px); }
.auth { margin-top: 0; }
.auth .auth-mark { padding-top: var(--s-4); }
:root[dir="ltr"] .auth-mark .wm { text-align: left; }
:root[dir="ltr"] .prog[open] summary .arrow, :root[dir="ltr"] .pg-ses[open] .arrow { transform: rotate(90deg); }
:root[dir="ltr"] .block [data-draft]::after { content: "\2192"; }

/* Weekly update, schedule summary (19.11.2026) */

/* Wellness check (habits page), the pain + schedule pair and the small notes on the week page, and the questions inside the schedule sheet. */
.wk-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s-3); }
.wk-pair .checkin { border-top: 0; padding: var(--s-4); background: var(--surface); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line2); align-content: space-between; min-width: 0; }
.wk-pair .checkin .name { font-size: var(--t-m); }
.wk-note { margin: 0; font-size: var(--t-s); color: var(--muted); }
.wk-note.due span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-game); margin-inline-end: 8px; vertical-align: .08em; }
.wk-note .vlink { min-height: 44px; color: var(--ink); font-weight: 600; }
.opts button[data-wq] { min-height: 48px; min-width: 48px; }
.wk-qs { display: grid; gap: var(--s-4); margin-top: var(--s-5); background: var(--surface); border-radius: var(--r-l); padding: var(--s-4); box-shadow: inset 0 0 0 1px var(--line2); }
.wk-qs > .label { margin: 0; font-size: var(--t-m); color: var(--ink); }
.wk-qs .q { display: grid; gap: var(--s-2); }

/* AI track: the built workout on the week screen (blocks and sets only, then start / continue) */
.ai-card { margin-top: var(--s-2); min-width: 0; }
.ai-card .pg-meta { margin: 0 0 var(--s-2); }
.ai-card .pg-blocks { margin: var(--s-1) 0 var(--s-3); }
.ai-card .row { gap: var(--s-2); flex-wrap: wrap; }

/* 2026-11-20 design pass */
.wk-nudge { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line2); border-inline-start: 4px solid var(--c-game); font-weight: 600; color: var(--ink); line-height: 1.35; }
.wk-nudge .btn { flex: none; }
/* habits page (21.11.2026): wellness questions are .habit rows; the checkbox is replaced by a 1-5 control in the same square language */
.wl-state { margin: 0; font-size: var(--t-s); color: var(--muted); min-height: 24px; display: flex; align-items: center; }
.habit.wl-row { grid-template-columns: 1fr; gap: var(--s-2); align-items: start; }
.wl-scale { display: grid; grid-template-columns: repeat(5, minmax(44px, 56px)); gap: var(--s-2); }
.wl-scale button { min-height: 44px; border-radius: var(--r-s); border: 2px solid var(--field-line); background: transparent; color: var(--ink); font: 600 var(--t-m)/1 var(--f-num); padding: 0; }
.wl-scale button[aria-pressed="true"] { background: var(--c-load); border-color: var(--c-load); color: var(--on-accent); }
/* next exercise button: long exercise names get a smaller font and wrap */
.pl-go.long { flex-direction: column; gap: 2px; font-size: var(--t-s); font-weight: 600; line-height: 1.3; text-align: center; padding-block: var(--s-3); }
.pl-go.long bdi { display: block; font-size: var(--t-m); font-weight: 600; }

/* Danny 2026-11-20: quick start button on a program row and on the session sheet */
.prog summary .qstart { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
.qstart-sheet { margin: 12px 0 8px; }
/* Danny 2026-11-20: the whole block header row in the player list opens the block */
button.pl-blk-h { width: 100%; background: none; border: 0; color: inherit; font: inherit; text-align: start; cursor: pointer; min-height: var(--tap); }
button.pl-blk-h:active { background: var(--surface2, rgba(255,255,255,.04)); }
/* Danny 2026-11-20: coach cues in the demo sheet, same font as the old note, line breaks kept */
.vs-cue { white-space: pre-line; }
.off-dates .q-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.off-dates input[type="date"] { width: 100%; min-width: 0; }

/* Live swap and early close (22.11.2026) */
.pl-swapbox { display: grid; gap: var(--s-3); }
.pl-sw { width: 100%; }
.pl-swapped { margin: 0; color: var(--ink2, inherit); font-size: var(--t-s); }
.pl-swlist { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
#swapQ { width: 100%; min-height: 48px; padding: 0 var(--s-4); border-radius: var(--r-m); border: 2px solid var(--line2); background: transparent; color: var(--ink); font-size: var(--t-m); margin-top: var(--s-2); }

/* ===== Minimal skin for the whole app (22.11.2026) =====
   Same language as the coach screen: one quiet accent instead of volt fills, smaller type, thinner weights, tighter corners.
   --c-load is the accent every CTA, tab line and focus ring uses, so re-pointing it restyles the app at once.
   --volt keeps the colour only where it MEANS something: done, progress, a completed set.
   Touch targets (44px and up), inputs (16px) and the numbers you read mid-set stay large enough for a gym. */
:root {
  --volt: #4E6A00; --volt-soft: rgba(78,106,0,.13);
  --c-load: #1B1D21; --c-load-soft: rgba(14,15,17,.06); --on-accent: #FFFFFF;
  --r-s: 8px; --r-m: 8px; --r-l: 12px;
  --t-xl: 22px; --t-2xl: 28px; --t-num: 34px; --t-hero: 64px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --volt: #C9E43A; --volt-soft: rgba(212,242,60,.12); --c-load: #ECEDEA; --c-load-soft: rgba(255,255,255,.07); --on-accent: #0B0C0E; } }
:root[data-theme="dark"] { --volt: #C9E43A; --volt-soft: rgba(212,242,60,.12); --c-load: #ECEDEA; --c-load-soft: rgba(255,255,255,.07); --on-accent: #0B0C0E; }
:root { --on-volt: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --on-volt: #0B0C0E; } }
:root[data-theme="dark"] { --on-volt: #0B0C0E; }

body { font-size: 15px; }
/* meaning keeps the colour */
.ring .arc.on { stroke: var(--volt); }
.vital .pips i.on, .wk7 i.on, .meter i, .rpebar, .rpelegend .dot, .pg-prog i, .pl-bar i, .pl-rest.ready .pl-rest-bar i { background: var(--volt); }
.day.done .dl::before { color: var(--volt); font-weight: 600; }
.t-strength, .t-explosive, .t-short, .t-complement { --tc: var(--volt); background: var(--volt); color: var(--on-volt); }
.t-long { --tc: var(--volt); background: var(--volt-soft); color: var(--volt); }
.habit input:checked { background: var(--volt); border-color: var(--volt); }
.yes, .tag.ok, .pg-st.ok { color: var(--volt); font-weight: 600; }
.k-main, .k-second { --k: var(--ink-2); }
.k-main { --k-soft: var(--c-load-soft); }
.cov .pat.on { background: var(--volt-soft); color: var(--volt); }
.pl-pill.on, .pl-tick.on { background: var(--volt); border-color: var(--volt); color: var(--on-volt); }
.pl-rest.ready { border-color: var(--volt); background: var(--volt-soft); }
.pl-sr.is-now .pl-tick { border-color: var(--ink-2); color: var(--ink); }

/* headings: lighter and smaller */
.screen-title { font-weight: 600; letter-spacing: 0; }
.hero-head h1 { font-size: 24px; font-weight: 600; }
.detail-head h2 { font-size: 22px; font-weight: 600; }
.wk-head h1 { font-size: 24px; font-weight: 400; }
.pg-today h2, .pl-fin h1, .pl-rpe-fin h2, .pl-pain h2, .pl-cur-h > b, .pl-effort-w.chosen { font-weight: 600; }
.pl-name { font-size: 26px; font-weight: 600; }
.myth .verdict { font-size: 26px; font-weight: 600; }
.pg-meta b { font-weight: 500; }
.eyebrow, .label { font-weight: 500; }
.tag, .tier-pill { font-weight: 500; }

/* big numbers: a step down, still readable at arm's length */
.ring .core b { font-size: 56px; }
.stat b { font-size: 40px; }
.vital dd { font-size: 24px; }
.spec b { font-size: 28px; }
.score b small { font-size: 30px; }
.auth-mark .wm { font-size: 72px; }
.pl-spec b { font-size: 32px; }
.pl-sum b { font-size: 42px; }
.stepper .val { font-size: 44px; }
.pl-rest-n { font-size: 48px; }
.pl-val { font-size: 52px; height: 64px; }
.pl-bw { font-size: 56px; }
.pl-pm { height: 64px; font-size: 32px; border-width: 1.5px; }
.pl-rpe10 button { font-size: 26px; }
.pl-effort-w b { font-size: 32px; }

/* buttons: calm, not shouting */
.btn { font-weight: 600; min-height: 44px; }
.btn.block-btn { min-height: 48px; font-size: var(--t-m); }
.pg-start { min-height: 52px; font-size: var(--t-m); font-weight: 600; }
.pl-go { min-height: 56px; font-size: var(--t-l); font-weight: 600; }
.pl-go.long { font-size: var(--t-m); }
.pl-ghost { min-height: 48px; border-width: 1.5px; font-weight: 600; }
.pl-all, .pl-rpe-g button, .pl-rpe10 button { border-width: 1.5px; }
.tabs button[aria-current="page"] { box-shadow: inset 0 2px 0 var(--c-load); }
.seg.tabs-u button[aria-pressed="true"] { box-shadow: inset 0 -2px 0 var(--c-load); }
.day.today .dn, .wk7 .today em { text-decoration-thickness: 2px; font-weight: 600; }

/* Knowledge: the long protocol articles open on tap (22.11.2026) */
.kn { padding: var(--s-4) 0; }
.kn summary { list-style: none; cursor: pointer; display: grid; gap: 4px; padding-inline-end: 28px; position: relative; }
.kn summary::-webkit-details-marker { display: none; }
.kn summary::after { content: ""; position: absolute; inset-inline-end: 4px; top: 8px; width: 8px; height: 8px; border-inline-end: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform var(--dur-1) var(--ease); }
.kn[open] summary::after { transform: rotate(-135deg); top: 12px; }
.kn summary:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 4px; }
.kn h3 { font-size: 18px; font-weight: 600; }
.kn-lead { color: var(--muted); font-size: var(--t-s); line-height: 1.5; }
.kn-body { margin-top: var(--s-4); display: grid; gap: var(--s-3); }
.kn-body p, .kn-body li { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.kn-body h4 { margin: var(--s-2) 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.kn-body ul, .kn-body ol { margin: 0; padding-inline-start: 22px; display: grid; gap: var(--s-2); }
.kn-body blockquote { margin: 0; padding: var(--s-2) var(--s-3); border-inline-start: 2px solid var(--line2); color: var(--ink); font-size: 16px; line-height: 1.6; }
.kn-body .kn-note { padding: var(--s-3); background: var(--c-load-soft); border-radius: var(--r-m); color: var(--ink); }

/* Swap button beside the exercise name (23.11.2026) */
.pl-namerow { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.pl-namerow .pl-name { flex: 1 1 auto; min-width: 0; }
.pl-swbig { flex: 0 0 auto; min-height: 52px; padding: 0 var(--s-4, 16px); border: 2px solid var(--ink); background: transparent; color: var(--ink); border-radius: var(--r-m); font-size: var(--t-m); font-weight: 600; }

/* ===== Athlete screens, approved dark concept (24.11.2026) =====
   Home: a quiet greeting with a small ring, today's workout as one flat panel (blocks, then the start button), the week as seven boxes.
   Same tokens as everything else, so it follows the light and dark themes. */
.hero-compact .hero-body { gap: var(--s-4); }
.hero-compact .ring { width: 72px; height: 72px; }
.hero-compact .ring .arc { stroke-width: 4; }
.hero-compact .ring .core b { font-size: 24px; letter-spacing: 0; }
.hero-compact .ring .core small { font-size: 12px; margin-top: 2px; }
.hero-compact .hero-head h1 { font-size: 28px; letter-spacing: 0; line-height: 1.15; }
.hero-compact .pg-sub { font-size: var(--t-s); color: var(--ink-2); }
.pg-today { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-s); padding: 0; gap: 0; overflow: hidden; margin-top: var(--s-4); }
.pg-today > * { margin: 0; padding-inline: var(--s-4); }
.pg-today .pg-kicker { padding-top: var(--s-4); font-size: 12px; font-weight: 500; color: var(--muted); }
.pg-today h2 { font-size: 21px; padding-top: 4px; }
.pg-today .pg-meta { padding-top: 4px; padding-bottom: var(--s-3); color: var(--muted); }
.pg-today .pg-prog { margin-inline: var(--s-4); padding: 0; }
.pg-today .pg-cl { order: 4; padding-top: var(--s-3); padding-bottom: var(--s-2); font-size: 12px; font-weight: 500; color: var(--muted); border-top: 1px solid var(--line); }
.pg-today .pg-blocks { order: 5; padding: 0; margin: 0; list-style: none; }
.pg-today .pg-blocks li { padding: 9px var(--s-4); border-top: 1px solid var(--line); background: transparent; border-radius: 0; }
.pg-today .pg-start { order: 6; width: auto; margin: var(--s-3) var(--s-4) var(--s-4); padding: 0; background: var(--volt); color: var(--on-volt); min-height: 50px; border-radius: 12px; font-weight: 600; }
.pg-today.is-done .pg-start { background: transparent; color: var(--ink); border: 1px solid var(--line2); }
.pg-rest { margin-top: var(--s-4); }
.wk-strip { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.wk-strip li { display: grid; gap: 7px; justify-items: center; font-size: 12px; color: var(--muted); }
.wk-strip li i { order: -1; width: 100%; height: 30px; border-radius: var(--r-s); border: 1px solid var(--line); display: grid; place-content: center; font-style: normal; font-size: 12px; }
.wk-strip .is-done i { background: var(--surface2); color: var(--ink); }
.wk-strip .is-now i { border-color: var(--volt); color: var(--volt); }
.wk-strip .is-game i { color: var(--c-game); border-color: color-mix(in srgb, var(--c-game) 50%, transparent); }
.hero-compact .ring .core small { display: none; }

/* Workout player, approved dark concept (24.11.2026): flat panels with a hairline, the RPE scale and the set tabs as connected segments, the sets as a table with the current row marked, one filled button.
   Behaviour and sizes of the touch targets are unchanged (44px and up). */
.pl-bar { height: 3px; }
.pl-name { font-size: 26px; font-weight: 600; letter-spacing: 0; }
.pl-pills { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; border: 1px solid var(--line2); border-radius: var(--r-s); overflow: hidden; }
.pl-pills .pl-pill { border: 0; border-radius: 0; border-inline-start: 1px solid var(--line); background: transparent; color: var(--ink-2); min-height: 44px; display: grid; place-content: center; font-family: var(--f-num); font-size: 18px; }
.pl-pills .pl-pill:first-child { border-inline-start: 0; }
.pl-pills .pl-pill.now { background: var(--ink); color: var(--bg); }
.pl-cur { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-s); }
.pl-rpe-g { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; border: 1px solid var(--line2); border-radius: var(--r-s); overflow: hidden; }
.pl-rpe-g button { border: 0; border-radius: 0; border-inline-start: 1px solid var(--line); background: transparent; min-height: 46px; font-family: var(--f-num); font-size: 18px; color: var(--ink-2); }
.pl-rpe-g button:first-child { border-inline-start: 0; }
.pl-rpe-g button[aria-pressed="true"], .pl-rpe-g button.on, .pl-rpe-g button.sel { background: var(--ink); color: var(--bg); }
.pl-rpe-g button.heavy { color: var(--c-game); }
.pl-rpe-g button.heavy[aria-pressed="true"], .pl-rpe-g button.heavy.on, .pl-rpe-g button.heavy.sel { color: var(--bg); background: var(--c-game); }
.pl-sets { border: 1px solid var(--line); border-radius: var(--r-s); background: var(--bg2); overflow: hidden; padding: 0; }
.pl-sets .pl-sh2 { padding: 12px 16px 6px; }
.pl-sets .pl-sr { padding-inline: 16px; border-top: 1px solid var(--line); }
.pl-sets .pl-sr-h { border-top: 0; color: var(--muted); font-size: 12px; }
.pl-sets .pl-sr.is-now { background: var(--surface2); box-shadow: inset 3px 0 0 var(--volt); }
.pl-video { border: 1px solid var(--line); border-radius: var(--r-s); background: var(--bg2); }
.pl-go { background: var(--volt); color: var(--on-volt); border-radius: 12px; font-weight: 600; }
.pl-bottom { border-top: 1px solid var(--line); background: var(--bg); }

/* ===== Unslop fixes (Designer, 28.11.2026). Audit: design/unslop-audit-2026-11-28/audit.md =====
   Tokens: radii are 8 and 12 only (the 6/8/12 skin of 22.11 is lifted to 8/8/12, so no 6, 9, 10, 99 or 999 is left),
   no negative letter-spacing on Hebrew, weights 400/500/600 (the GROUND wordmark stays 700 as a logotype),
   nothing under 12px. Everything below is look only: no copy, no behaviour. */

/* Language switch: one 44px ghost control, on the login screen and in the profile only (not in the header of every screen). */
body:has(#mainNav:not([hidden])) .top .lang-slot { display: none; }
.lang-toggle { border-radius: var(--r-s); box-shadow: inset 0 0 0 1px var(--line2); padding: 0; gap: 0; background: transparent; overflow: hidden; }
.lang-toggle button { min-height: 44px; min-width: 48px; padding: 0 12px; border-radius: 0; background: transparent; color: var(--muted); font-size: var(--t-s); font-weight: 500; letter-spacing: .06em; }
.lang-toggle button[aria-pressed="true"] { background: transparent; color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); }

/* Login: the two secondary links are two separate targets, not one sentence */
.auth > .linkish { display: inline-flex; align-items: center; margin-inline-end: var(--s-5); }

/* Week: the greeting steps down to label size so the ring and the number lead */
.hero-head h1, .hero-compact .hero-head h1, .wk-head h1 { font-size: var(--t-l); font-weight: 600; line-height: 1.3; letter-spacing: 0; }

/* Week: the three requests (schedule, pain, wellness) read as one surface of three rows, all ghost, nothing in game orange */
.wk-asks { gap: 0; }
.wk-asks .wk-pair { display: grid; grid-template-columns: 1fr; gap: 0; background: var(--surface); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line2); overflow: hidden; }
.wk-asks .wk-pair:has(+ .wk-nudge) { border-end-start-radius: 0; border-end-end-radius: 0; }
.wk-asks .wk-pair .checkin { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); min-height: 68px; border-radius: 0; background: transparent; box-shadow: none; border-top: 1px solid var(--line); }
.wk-asks .wk-pair .checkin:first-child { border-top: 0; }
.wk-asks .wk-pair .checkin .name { font-size: var(--t-m); font-weight: 600; }
.wk-asks .wk-nudge { margin: 0; padding: var(--s-3) var(--s-4); min-height: 68px; background: var(--surface); border-radius: 0 0 var(--r-l) var(--r-l); border-inline-start: 0; box-shadow: inset 1px 0 0 var(--line2), inset -1px 0 0 var(--line2), inset 0 -1px 0 var(--line2); }
.wk-asks .wk-nudge span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); margin-inline-end: 8px; vertical-align: .08em; }
.wk-asks .wk-nudge + .wk-note { margin-top: var(--s-3); }
.wk-asks .wk-pair + .wk-note { margin-top: var(--s-3); }
.wk-asks .btn:not(.ghost) { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--field-line); }
.wk-asks .btn { white-space: nowrap; padding-block: 8px; line-height: 1.25; }
.checkin.due .name::before, .wk-note.due span::before { background: var(--ink); }

/* Profile: actions that end something (log out, withdraw consent, delete the account) read as quiet red text, not as ordinary buttons */
.btn.ghost[data-action="logout"], .btn.ghost[data-consent="withdraw"], .btn.ghost[data-action="delopen"] { box-shadow: none; background: transparent; color: var(--c-pain); font-weight: 500; padding-inline: var(--s-3); }

/* Player: header wraps instead of cutting the block name; exercise name sits on the reading side; demo button is a quiet ghost */
.pl-tt b { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; text-wrap: balance; }
.pl-top { height: auto; padding-block: var(--s-2); }
.pl-name { direction: var(--ui-dir, rtl); text-align: start; letter-spacing: 0; overflow-wrap: anywhere; }
.pl-name bdi { unicode-bidi: isolate; }
.pl-pills { border-radius: var(--r-s); }
.pl-pills .pl-pill { min-height: 48px; }
.pl-pills .pl-pill.now { box-shadow: inset 0 0 0 2px var(--ink); }
.pl-sets .pl-sn { color: var(--ink); font-weight: 500; }
.pl-sets .pl-sp { font-weight: 500; }
.pl-video { min-height: 48px; padding: 0 var(--s-4); gap: var(--s-2); border-width: 1px; border-color: var(--line2); background: transparent; font-weight: 600; }
.pl-play { width: 20px; height: 20px; background: transparent; color: var(--ink); }
.pl-play svg { width: 16px; height: 16px; }

/* Habits: a zero is not the hero. Wellness scale: 1px line, 2px only on the chosen answer */
.score.is-zero b { font-size: var(--t-xl); color: var(--muted); }
.score.is-zero b small { font-size: var(--t-l); }
.wl-scale button { border-width: 1px; }
.wl-scale button[aria-pressed="true"] { border-width: 2px; }

/* Schedule: month arrows are quiet ghosts (the 48px target stays) */
.cal .nav { background: transparent; box-shadow: none; color: var(--muted); }
.cal .nav:hover { color: var(--ink); background: var(--surface2); }
/* the "change password" summary line is a 44px target */
summary.label { min-height: var(--tap); line-height: var(--tap); }
/* <b> and <strong> without their own weight no longer fall back to the browser's 700 */
:where(b, strong) { font-weight: 600; }
/* headings and table heads without their own weight use 600, not the browser's 700 */
:where(h1, h2, h3, h4, h5, h6, th) { font-weight: 600; }
