/* Track U: Barlow self-hosted (vendor/fonts, SIL OFL; @fontsource 5.3.0, latin) - no request to Google, the CSP stays 'self' */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(vendor/fonts/barlow-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(vendor/fonts/barlow-latin-500-normal.woff) format("woff");   /* the woff2 trips the privacy hook's token scan by chance */ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(vendor/fonts/barlow-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(vendor/fonts/barlow-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(vendor/fonts/barlow-condensed-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(vendor/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(vendor/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(vendor/fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* SP3o: the faces. Barlow has no Hebrew, and a Hebrew webfont is the owner's call: Hebrew text takes the named system
     Hebrew faces instead (SF Hebrew via system-ui on Apple, Segoe UI on Windows, Noto Sans Hebrew on Android, Arial Hebrew
     / Arial as the last), for body, headings and buttons alike. The brand mark stays Barlow Condensed. */
  --font-body: Barlow, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", Barlow, system-ui, sans-serif;
  --font-brand: "Barlow Condensed", sans-serif;
  --font-he: system-ui, -apple-system, "Segoe UI", "Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
  --bg: #0B0D12;
  --bg-2: #11141B;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --fg: #F4F5F7;
  --muted: #A3A9B6;
  --red: #E11D2E;
  --orange: #F97316;
  --amber: #F5B83D;
  --go: #3DDC97;
  --grad: linear-gradient(120deg, var(--red), var(--orange));      /* decorative: headlines, glows, the progress bar */
  --grad-ink: linear-gradient(120deg, #D41A2B, #C2410C);           /* under white text: AA (>= 4.5:1) at both ends */
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* SP3h tokens; SP3i: every page follows prefers-color-scheme (the light values: the media block below) */
  --fg-2: #D3D7DE;
  --field: var(--bg-2);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent: var(--orange);
  --accent-ink: var(--orange);
  --accent-solid: #C2410C;
  --accent-tint: rgba(249, 115, 22, 0.14);
  --go-tint: rgba(61, 220, 151, 0.12);
  --field-line: #646B7A;                                           /* M7: field and chip edges, >= 3:1 */
  --nav-bg: rgba(11, 13, 18, 0.72);
  --err: #FCA5A5;
  --btn-shadow: 0 10px 30px -10px rgba(249, 115, 22, 0.6);
  --card-shadow: none;
  /* UI overhaul (owner, 2026-10-08): one speed for every state change; the readiness colours (a status mark's fill and
     its glyph - graphics, >= 3:1 on the card and on the fill, in both schemes) */
  --fast: 0.18s;
  --i-bubble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-12.4 7.4L3 21l2.1-5.6A8.4 8.4 0 1 1 21 11.5z'/%3E%3C/svg%3E");      /* UI overhaul 3: a coach's note, an answer */
  --z1: #94A3B8; --z2: #38BDF8; --z3: #34D399; --z4: #FBBF24; --z5: #F43F5E;      /* UI overhaul 2: effort, easy to hard */
  --st-go: #3DDC97; --st-go-on: #04140C; --st-warn: #F5B83D; --st-warn-on: #231600; --st-stop: #E11D2E; --st-stop-on: #FFFFFF;
  color-scheme: light dark;
}
:root[data-theme=dark] { color-scheme: dark; }       /* owner 2026-10-09: Dark picked - the base tokens, dark controls */
:lang(he) { --font-body: var(--font-he); --font-display: var(--font-he); }
[lang|=he] { font-family: var(--font-body); }        /* a Hebrew message on an English page re-reads the face */
:lang(he) .eyebrow, :lang(he) #progress-label { letter-spacing: 0.02em; }     /* tracking is for Latin capitals */
@media (prefers-color-scheme: light) {   /* Auto: the phone's light, unless Dark is picked (theme.js) */
  :root:not([data-theme=dark]) {
    --bg: #F6F7F9; --bg-2: #FFFFFF; --field: #FFFFFF; --surface: #FFFFFF; --surface-2: #E9ECF1; --line: rgba(15, 23, 42, 0.14);
    --line-strong: rgba(15, 23, 42, 0.32); --fg: #0F172A; --fg-2: #1E293B; --muted: #4B5565; --accent: #EA580C;
    --accent-ink: #C2410C; --accent-tint: rgba(234, 88, 12, 0.09); --go: #0F9F6E; --go-tint: rgba(16, 185, 129, 0.10);
    --nav-bg: rgba(246, 247, 249, 0.85); --err: #B91C1C; --field-line: #7E8798;
    --grad: linear-gradient(120deg, #C8102E, #C2410C);
    --btn-shadow: 0 8px 20px -10px rgba(194, 65, 12, 0.55);
    --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px -12px rgba(15, 23, 42, 0.12);
    --z1: #64748B; --z2: #0284C7; --z3: #059669; --z4: #B45309; --z5: #E11D48;
    --st-go: #0F9F6E; --st-go-on: #FFFFFF; --st-warn: #D97706; --st-warn-on: #FFFFFF; --st-stop: #C8102E;
  }
}
/* Light picked (theme.js): the same, whatever the phone says */
:root[data-theme=light] {
  --bg: #F6F7F9; --bg-2: #FFFFFF; --field: #FFFFFF; --surface: #FFFFFF; --surface-2: #E9ECF1; --line: rgba(15, 23, 42, 0.14);
  --line-strong: rgba(15, 23, 42, 0.32); --fg: #0F172A; --fg-2: #1E293B; --muted: #4B5565; --accent: #EA580C;
  --accent-ink: #C2410C; --accent-tint: rgba(234, 88, 12, 0.09); --go: #0F9F6E; --go-tint: rgba(16, 185, 129, 0.10);
  --nav-bg: rgba(246, 247, 249, 0.85); --err: #B91C1C; --field-line: #7E8798;
  --grad: linear-gradient(120deg, #C8102E, #C2410C);
  --btn-shadow: 0 8px 20px -10px rgba(194, 65, 12, 0.55);
  --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px -12px rgba(15, 23, 42, 0.12);
  --z1: #64748B; --z2: #0284C7; --z3: #059669; --z4: #B45309; --z5: #E11D48;
  --st-go: #0F9F6E; --st-go-on: #FFFFFF; --st-warn: #D97706; --st-warn-on: #FFFFFF; --st-stop: #C8102E; color-scheme: light;
}

* { box-sizing: border-box; }
/* #25: only the landing's anchors glide; an app page (data-page) never animates its own scrolls (a long thread, the
   status line above the sessions), and nothing does with reduced motion */
@media (prefers-reduced-motion: no-preference) { html:not(:has(body[data-page])) { scroll-behavior: smooth; } }
/* KO-113: a field reached with Tab (or focused by the page) clears the sticky top bar. On the focused element, not as the
   page's scroll padding: that one changed which element Chrome's scroll anchoring keeps (a language switch jumped) */
main :focus { scroll-margin-top: 84px; }                 /* main only: the sticky bar's own buttons never scroll the page */
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; transform: translateY(-200%); background: var(--fg); color: var(--bg);
        padding: 8px 12px; }                     /* off screen upwards: left -999px scrolled a right-to-left page */
.skip:focus { transform: none; z-index: 100; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: 0.01em; }
.eyebrow { font: 600 13px/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-ink); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
       background: var(--nav-bg); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 26px/1 var(--font-brand);
         letter-spacing: 0.04em; text-transform: uppercase; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn-primary) { text-decoration: none; color: var(--muted); font-weight: 500; transition: color 0.2s var(--ease); }
.nav-links a:not(.btn-primary):hover { color: var(--fg); }       /* not the primary button: it outranked .btn-primary's white (SP3i) */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
       border-radius: 999px; font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
       -webkit-tap-highlight-color: transparent; touch-action: manipulation;
       transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background-color var(--fast) var(--ease),
                   border-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.btn-primary { background: var(--grad-ink); color: #fff; box-shadow: var(--btn-shadow); }
/* #49: a hover changes the shadow, never the box: a lift moved it off a resting pointer, which re-hovered it - a jitter */
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(249, 115, 22, 0.75); }
.btn-ghost { border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--muted); }
.btn:active:not(:disabled) { transform: scale(0.97); box-shadow: none; }      /* UI overhaul: a press is felt at once */
.btn-danger { border: 1px solid var(--err); background: var(--surface); color: var(--err); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
#data .btn { margin: 4px 8px 4px 0; }
#confirm { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 8px; }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 15px; white-space: nowrap; }   /* U4: a label never wraps */
.nav .wrap { gap: 8px; }
/* U4 (owner): in Hebrew the top bar mirrors English - the logo on the right, the account buttons and the language on the
   left - as the page below does. One quiet language picker at its end: a globe button and a small menu (lang-menu.js) */
.lang-menu { position: relative; display: flex; }
.lang-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 999px;
            background: none; color: var(--muted); cursor: pointer; transition: color 0.2s var(--ease), background 0.2s var(--ease); }
.lang-btn:hover, .lang-btn[aria-expanded=true] { color: var(--fg); background: var(--surface-2); }
.lang-list { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 168px; margin: 0; padding: 6px;
             list-style: none; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 14px;
             box-shadow: var(--card-shadow); animation: menu-in 0.16s var(--ease); }
.lang-list button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0;
                    border-radius: 10px; background: none; color: var(--fg); font: 500 16px/1 var(--font-body); text-align: start; cursor: pointer; }
.lang-list button:hover, .lang-list button:focus-visible { background: var(--surface-2); }
.lang-list button::before { content: ""; flex: none; width: 16px; height: 16px; }             /* the tick's place */
.lang-list [aria-checked=true] { font-weight: 700; }
.lang-list [aria-checked=true]::before { width: 6px; height: 11px; margin: 0 5px 3px; border: solid var(--accent-ink); border-width: 0 2px 2px 0;
                                         transform: rotate(45deg); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
/* a language change: the page fades and slides out, its direction flips while hidden, it slides back in from the other
   side (transform and opacity only, about 300 ms; lang-menu.js); none under reduced motion */
.lang-anim body > :not(.skip) { transition: opacity 0.15s var(--ease), transform 0.15s var(--ease); }
.lang-out body > :not(.skip) { opacity: 0; transform: translateX(-14px); }
.lang-in body > :not(.skip) { opacity: 0; transform: translateX(14px); transition: none; }
[dir=rtl].lang-out body > :not(.skip) { transform: translateX(14px); }
[dir=rtl].lang-in body > :not(.skip) { transform: translateX(-14px); }
@media (prefers-reduced-motion: reduce) { .lang-anim body > :not(.skip) { transition: none; } .lang-list { animation: none; } }
@media (max-width: 520px) {    /* U4: signed in, "Open my Koach" stays on one line; Sign out is in the app */
  .nav-links .btn-ghost[data-in] { display: none; } }
@media (max-width: 400px) {    /* a phone: Sign in and the hero's own Sign up fit beside the brand */
  .nav-links { gap: 6px; } .nav .btn { padding: 0 12px; } .brand { font-size: 22px; }
  .nav-links a.btn-primary[href="signup.html"] { display: none; } }
@media (max-width: 340px) { .nav .wrap { padding: 0 12px; } .nav .btn { padding: 0 10px; } .brand { gap: 8px; } }

/* hero */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45; pointer-events: none; }
.glow.one { width: 520px; height: 520px; background: var(--red); top: -180px; right: -120px; }
.glow.two { width: 420px; height: 420px; background: var(--orange); bottom: -220px; left: -160px; opacity: 0.25; }
/* U3: the light behind the hero drifts slowly (transform only: composited, no repaint) */
.glow.three { width: 360px; height: 360px; background: #F59E0B; top: 30%; left: 38%; opacity: 0.12; }
.glow.one { animation: drift-a 19s ease-in-out infinite alternate; }
.glow.two { animation: drift-b 23s ease-in-out infinite alternate; }
.glow.three { animation: drift-c 29s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(-90px, 60px, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(120px, -50px, 0) scale(0.9); } }
@keyframes drift-c { to { transform: translate3d(-140px, -40px, 0) scale(1.25); } }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero .wrap > * { min-width: 0; }                    /* KO-113: a grid item may shrink (text spacing at 320 px) */
/* KO-113: the eyebrow sits on the page colour, never on the glow: AA in both schemes */
.hero .eyebrow { display: inline-block; margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--bg); line-height: 1.3; }
.hero h1 { font-size: clamp(48px, 7.4vw, 92px); line-height: 0.92; font-weight: 800; text-transform: uppercase; margin: 18px 0 22px; }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: 15px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--accent-ink); }

/* phone mockup. U3: on a 3D stage - tilted toward the text, it follows the pointer (--tx, --ty) and the scroll (--sy)
   that landing.js sets; sport badges float in front of it at their own depth (translateZ) */
.stage { position: relative; justify-self: center; width: min(360px, 100%); perspective: 1100px; --dir: 1; }
[dir=rtl] .stage { --dir: -1; }
.phone { /* a phone screen: dark in either scheme */
         --fg: #F4F5F7; --fg-2: #D3D7DE; --muted: #A3A9B6; --surface: rgba(255, 255, 255, 0.04); --line: rgba(255, 255, 255, 0.09);
         --go: #3DDC97; color: var(--fg); position: relative; width: 100%; border-radius: 38px; padding: 14px;
         background: linear-gradient(160deg, #1B1F29, #0E1016); border: 1px solid var(--line);
         box-shadow: 0 40px 90px -30px rgba(225, 29, 46, 0.45), inset 0 0 0 1px rgba(255,255,255,0.03);
         transform-style: preserve-3d; transition: transform 0.5s var(--ease);
         transform: rotateY(calc(var(--dir) * -14deg + var(--tx, 0) * 16deg)) rotateX(calc(7deg - var(--ty, 0) * 12deg - var(--sy, 0) * 9deg))
                    translateY(calc(var(--sy, 0) * -28px));
         animation: rise 1.1s var(--ease) 0.1s both; }
@keyframes rise { from { opacity: 0; translate: 0 40px; } }
.screen { position: relative; overflow: hidden; border-radius: 28px; background: #0F1218; padding: 20px 18px 22px; }
.screen::after { content: ""; position: absolute; inset: -20% -60%; pointer-events: none;      /* the glass catches the light */
                 background: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, 0.07) 50%, transparent 58%);
                 transform: translateX(calc(var(--tx, 0) * -40% - var(--sy, 0) * 20%)); transition: transform 0.5s var(--ease); }
.floats { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; z-index: 2; }
.float { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
         background: rgba(17, 20, 27, 0.86); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7);
         transform: translate3d(0, 0, var(--z)); animation: bob 6s ease-in-out infinite; }
.f-swim { color: #38BDF8; --z: 90px; top: 14%; inset-inline-start: -26px; }
.f-bike { color: var(--orange); --z: 60px; top: 46%; inset-inline-end: -24px; animation-delay: -2s; }
.f-run { color: #F43F5E; --z: 120px; bottom: 9%; inset-inline-start: -14px; animation-delay: -4s; }
@keyframes bob { 50% { transform: translate3d(0, -12px, var(--z)); } }
.msg-top { display: flex; align-items: center; gap: 14px; }
.ring { position: relative; flex: none; width: 64px; height: 64px; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .track { stroke: rgba(255, 255, 255, 0.1); }
.ring .val { stroke: var(--go); stroke-linecap: round; stroke-dasharray: 86 100; animation: ring 1.4s var(--ease) 0.5s both; }
@keyframes ring { from { stroke-dasharray: 0 100; } }
.ring b { font: 700 22px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.screen .bar { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.screen .msg { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.verdict { display: flex; align-items: center; gap: 10px; font: 700 24px/1.1 var(--font-display); text-transform: uppercase; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--go); box-shadow: 0 0 16px var(--go); flex: none; }
.msg .why { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.msg-top + .metrics { margin-top: 14px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.metric { background: var(--surface); border-radius: 12px; padding: 10px; }
.metric b { display: block; font: 700 22px/1 var(--font-display); }
.metric small { color: var(--muted); font-size: 12px; }
.session { border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; }
.session strong { display: block; font-size: 15px; margin-bottom: 2px; }
.session .fuel { color: var(--amber); }
.pulse { margin-top: 16px; height: 36px; width: 100%; }
.pulse path { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 2.4s var(--ease) 0.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* sections */
section { position: relative; }
.section { padding: 96px 0; }
.section.flush { padding-top: 0; }
.section.how { padding-bottom: 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(38px, 5vw, 60px); line-height: 0.98; text-transform: uppercase; margin: 14px 0 16px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
           transition: border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.feature:hover { border-color: rgba(249, 115, 22, 0.45); transform: translateY(-2px); }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(249, 115, 22, 0.12);
        color: var(--accent-ink); margin-bottom: 18px; }
.feature h3 { font-size: 30px; text-transform: uppercase; margin: 0 0 8px; line-height: 1; }
.feature p { color: var(--muted); margin: 0; }

/* week */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.day { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 12px; min-height: 176px;
       display: flex; flex-direction: column; gap: 8px; }
.day .d { font: 700 18px/1 var(--font-display); text-transform: uppercase; color: var(--muted); }
.chip { border-radius: 10px; padding: 8px 9px; font-size: 13px; line-height: 1.25; border-inline-start: 3px solid; background: var(--surface); }
.chip b { display: block; font-size: 14px; }
.swim { border-color: #38BDF8; } .bike { border-color: var(--orange); } .run { border-color: var(--red); }
.gym { border-color: #A78BFA; } .rest { border-color: #64748B; color: var(--muted); }
.key { box-shadow: inset 0 0 0 1px rgba(249,115,22,0.5); }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: middle; }
.legend .l-swim { background: #38BDF8; } .legend .l-bike { background: #F97316; } .legend .l-run { background: #E11D2E; }
.legend .l-gym { background: #A78BFA; } .legend .l-key { box-shadow: inset 0 0 0 1px #F97316; }

/* safety */
.safety { background: linear-gradient(180deg, transparent, rgba(225, 29, 46, 0.07), transparent); }
.safety .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.gates { display: grid; gap: 12px; }
.gate { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line);
        border-radius: 16px; padding: 18px 20px; }
.gate svg { color: var(--red); flex: none; margin-top: 2px; }
.gate strong { display: block; font-size: 18px; }
.gate span { color: var(--muted); font-size: 16px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: 800 44px/1 var(--font-display);
                background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.step h3 { font-size: 26px; text-transform: uppercase; margin: 0 0 6px; }
.step p { color: var(--muted); margin: 0; }
/* UI overhaul: How it works right under the hero - each step its icon, an arrow to the next on a computer */
.how .steps { margin: 0 0 32px; padding: 0; list-style: none; font-size: inherit; color: inherit; }
.how .steps li { position: relative; margin: 0; }
.how .step .icon { position: absolute; top: 28px; inset-inline-end: 28px; margin: 0; }
@media (min-width: 961px) {
  .how .step:not(:last-child)::after { content: ""; position: absolute; top: 50%; inset-inline-end: -14px; width: 9px; height: 9px; margin-top: -5px;
                                       border: solid var(--accent-ink); border-width: 2px 2px 0 0; transform: rotate(45deg); }
  [dir=rtl] .how .step:not(:last-child)::after { transform: rotate(-135deg); } }
.gate.privacy svg { color: var(--go); }
.gate a { color: var(--accent-ink); text-underline-offset: 3px; }
.band .disclaimer { margin-top: 32px; }
@media (max-width: 640px) { .step { padding: 22px; } .how .step .icon { top: 22px; inset-inline-end: 22px; } }

/* cta band */
.band { margin: 24px 0 96px; }
.band .inner { border-radius: 28px; padding: 56px; background: var(--grad-ink); color: #fff; position: relative; overflow: hidden;
               display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band h2 { font-size: clamp(36px, 4.6vw, 58px); line-height: 0.95; text-transform: uppercase; margin: 0 0 8px; font-weight: 800; }
.band .inner p { margin: 0; color: #fff; font-size: 18px; max-width: 34em; }   /* #85: not the disclaimer under the box */
.band .btn { background: #0B0D12; color: #fff; }
.band .btn:hover { background: #262A33; }                      /* #59 nit: a hover cue that never moves the box */

.disclaimer { color: var(--muted); font-size: 14px; border-inline-start: 3px solid var(--red); padding-inline-start: 14px; max-width: 70ch; }
.disclaimer.spaced { margin-top: 32px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); }

/* privacy document */
.doc { max-width: 76ch; padding: 56px 20px 64px; margin: 0 auto; }
.doc h1 { font-size: clamp(44px, 6vw, 64px); text-transform: uppercase; line-height: 0.95; margin: 0 0 18px; overflow-wrap: anywhere; }   /* KO-119: a long word (Hebrew at 320 px) wraps */
.doc h2 { font-size: 28px; text-transform: uppercase; margin: 40px 0 8px; }
.doc p, .doc li { color: var(--fg-2); }
.doc li { margin: 6px 0; }
.doc a { color: var(--accent-ink); }

/* reveal (U3: siblings follow one another, and the week's days drop in one by one) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; } .reveal:nth-child(3) { transition-delay: 0.16s; } .reveal:nth-child(4) { transition-delay: 0.24s; }
.week.in .day { animation: drop 0.6s var(--ease) both; }
.week .day:nth-child(2) { animation-delay: 0.06s; } .week .day:nth-child(3) { animation-delay: 0.12s; }
.week .day:nth-child(4) { animation-delay: 0.18s; } .week .day:nth-child(5) { animation-delay: 0.24s; }
.week .day:nth-child(6) { animation-delay: 0.3s; } .week .day:nth-child(7) { animation-delay: 0.36s; }
@keyframes drop { from { opacity: 0; transform: translateY(14px) scale(0.97); } }

@media (max-width: 960px) {
  .hero .wrap, .safety .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .week { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .features { grid-template-columns: 1fr; }
  .week { grid-template-columns: repeat(2, 1fr); }
  .band .inner { padding: 36px 24px; }
  .section { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse path { animation: none; stroke-dashoffset: 0; }
  .btn, .feature { transition: none; }
  .btn:active:not(:disabled), .feature:hover { transform: none; }
  /* U3: the landing stands still - a flat phone, no drift, no float, the ring and the number already full */
  /* KO-113: the glows by their 0,2,0 names, which outrank a bare .glow */
  .glow, .glow.one, .glow.two, .glow.three, .phone, .float, .ring .val, .week.in .day, .screen::after { animation: none; transition: none; }
  .phone { transform: none; }
  .float { transform: none; }
  .screen::after { display: none; }
}

/* account pages: sign-up, sign-in, account, intervals.icu (SP3a) */
[hidden] { display: none !important; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 24px 0;
        box-shadow: var(--card-shadow); }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field span { font-weight: 600; }
.field input { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--field-line); background: var(--bg-2);
               color: var(--fg); font: inherit; }
fieldset { border: 0; padding: 0; margin: 8px 0 22px; min-width: 0; }
legend { font: 700 24px/1 var(--font-display); text-transform: uppercase; margin-bottom: 10px; padding: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; margin: 12px 0; color: var(--fg-2); cursor: pointer; }
.check input { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin: 2px 0 0; flex: none;   /* M6: drawn */
               border: 2px solid var(--field-line); border-radius: 7px; background: var(--field); cursor: pointer; }
.check input:checked { border-color: var(--accent-solid); background: var(--accent-solid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.6' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.check input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hint { color: var(--muted); font-size: 15px; }
/* a button that reads as a link in a line of text (Home's "Change"): 44px tall by padding, pulled back by margin */
.link-btn { font: inherit; color: var(--accent-ink); background: none; border: 0; text-decoration: underline; cursor: pointer;
            padding: 14px 8px; margin: -14px -4px; min-height: 44px; }
#pw-rule { display: block; margin: -12px 0 18px; }
/* U2 #8: one error style everywhere (a request's line, a field's line): the error colour (AA in both schemes), a warning
   icon, the field or chip group outlined while aria-invalid. 0,2,0 so `.doc p` never greys it out. */
.doc .msg, .doc .err { color: var(--err); font-weight: 600; }
.doc .msg::before, .doc .err::before { content: ""; display: inline-block; width: 1.1em; height: 1.1em; margin-inline-end: 6px;
  vertical-align: -0.2em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 21h22L12 2zm-1 7h2v6h-2V9zm0 8h2v2h-2v-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 21h22L12 2zm-1 7h2v6h-2V9zm0 8h2v2h-2v-2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.doc .msg { border-inline-start: 3px solid var(--err); padding-inline-start: 12px; }   /* L1: a request's error, not a box */
.doc .msg.ok { border-inline-start-color: var(--go); }
.doc .msg.ok, .doc .err.ok { color: var(--fg-2); font-weight: 400; }
.doc .msg.ok::before, .doc .err.ok::before { content: none; }
button.btn-primary { border: 0; }
.doc a.btn:not(.btn-ghost) { color: #fff; }   /* a ghost button keeps var(--fg): white on white in light mode */
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

/* onboarding and the setup checklist (SP3b) */
.q { margin: 0 0 24px; }
.q .label { display: block; font-weight: 600; margin: 0 0 8px; }
.q .hint { margin: -4px 0 10px; font-size: 14px; }
.q .label .hint { margin: 0; font-weight: 400; }
fieldset.q { margin: 0 0 24px; }
.q > legend.label { font: 600 17px/1.6 var(--font-body); text-transform: none; padding: 0; }   /* M2: a question, not a section title */
.step-nav { justify-content: space-between; margin-top: 8px; }
.step-nav #next { margin-inline-start: auto; }
.guidance { border-inline-start: 3px solid var(--amber); padding-inline-start: 12px; color: var(--fg); }
.guidance:empty { display: none; }
.checklist { list-style: none; padding: 0; margin: 18px 0 8px; }
.checklist li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.checklist li::before { flex: none; width: 1.2em; text-align: center; font-weight: 700; }
.checklist li.ok::before { content: "✓"; color: var(--go); }
.checklist li.todo::before { content: "•"; color: var(--amber); }
#clearance { margin: 18px 0; }
/* U2 #2: what holds coaching back, at the top with its one action (amber; red for health) */
.banner { border-inline-start: 4px solid var(--amber); padding: 18px 20px; margin: 0 0 24px; }
.banner.danger { border-inline-start-color: var(--err); }
.banner p { margin: 0 0 12px; color: var(--fg); }
.banner .cta-row:empty { display: none; }
.inbox-msg.stale { opacity: 0.7; filter: grayscale(1); }
.checklist li > div { display: grid; gap: 8px; min-width: 0; }
.checklist .cta-row { gap: 8px; }
.checklist .btn { min-height: 44px; padding: 0 14px; font-size: 15px; }
#start { margin: 4px 0 22px; }

/* onboarding v2 and the account page's pause (SP3c) */
.fold { margin: 8px 0 24px; border-top: 1px solid var(--line); padding-top: 14px; }
#own, #pause, #resume { margin: 14px 0; }
#pause .field { margin-bottom: 12px; }

/* inbox and check-ins (SP3e) */
#coach h2 { margin-top: 32px; }
.inbox-msg { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0; margin: 8px 0;
              box-shadow: var(--card-shadow); transition: border-color var(--fast) var(--ease); }
.inbox-msg:hover { border-color: var(--line-strong); }
/* UI overhaul 2: a message card - folded, its type (an icon in a tint, its name, the day in words, New), its headline,
   "Read more"; opened, its sections as blocks: labelled paragraphs, lists, chips for data lines, callouts */
.inbox-msg summary { display: grid; gap: 6px; padding: 14px 16px; cursor: pointer; list-style: none; border-radius: 16px; }
.inbox-msg summary::-webkit-details-marker { display: none; }
.inbox-msg.new { border-color: var(--accent); }
.mh { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--fg-2); font-size: 14px; font-weight: 600; }
.mi { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-ink);
       --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 16v-5M12 8h.01'/%3E%3C/svg%3E"); }
.mi::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.k-daily .mi { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E"); }
.k-week .mi { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4M9 15.5l2 2 4-4'/%3E%3C/svg%3E"); }
.k-change .mi { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3l4 4-4 4M3 7h18M7 21l-4-4 4-4M21 17H3'/%3E%3C/svg%3E"); }
.k-reply .mi { --icon: var(--i-bubble); background: var(--go-tint); color: var(--fg); }
.k-race .mi { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 22V4M4 4h13l-2 4 2 4H4'/%3E%3C/svg%3E"); }
.k-note .mi { background: var(--surface-2); color: var(--fg-2); }
.new-b { margin-inline-start: auto; padding: 2px 8px; border-radius: 999px; background: var(--accent-solid); color: #fff; font-size: 12px; font-weight: 700;
          letter-spacing: 0.04em; }
.mt { display: flex; align-items: flex-start; gap: 8px; }
.mt strong { font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--fg); overflow-wrap: anywhere; }
.mt .rd-ico { width: 22px; height: 22px; margin-top: 1px; }
.mt .rd-ico::before { width: 13px; height: 13px; }
.m-more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-size: 14px; font-weight: 600; }
.m-more::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.inbox-msg[open] .m-more::after { margin-top: 3px; transform: rotate(-135deg); }
.m-more > :last-child, .inbox-msg[open] .m-more > :first-child { display: none; }
.inbox-msg[open] .m-more > :last-child { display: inline; }
.mb .asked { margin: 4px 0 8px; margin-inline-start: auto; }       /* yours at the end, as a chat's */
.mb { padding: 0 16px 16px; }
.mb > :first-child { margin-top: 0; }
.msec, .mcall { margin: 12px 0 0; }
.mb h3 { margin: 0 0 4px; font: 700 13px/1.3 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); }
:lang(he) .mb h3 { letter-spacing: 0; }
.mb p { margin: 4px 0 0; color: var(--fg); line-height: 1.5; overflow-wrap: anywhere; }
.mb :is(ul, ol) { margin: 6px 0 0; padding-inline-start: 22px; color: var(--fg); }
.mb li { margin: 3px 0; padding-inline-start: 2px; }
.mb li::marker { color: var(--accent-ink); font-weight: 700; }
.mchips { display: flex; flex-wrap: wrap; gap: 6px; }
.mchip { padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); color: var(--fg); font-size: 14px;
          font-weight: 600; font-variant-numeric: tabular-nums; }
.mcall { position: relative; padding: 10px 12px; padding-inline-start: 40px; border-radius: 12px; background: var(--surface-2);
          border-inline-start: 3px solid var(--line-strong); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 16v-5M12 8h.01'/%3E%3C/svg%3E"); }
.mcall::before { content: ""; position: absolute; top: 12px; inset-inline-start: 12px; width: 18px; height: 18px; background: var(--fg-2);
                 -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.mcall p:first-of-type { margin-top: 0; }
.c-warn { border-inline-start-color: var(--st-warn); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E"); }
.c-ask { border-inline-start-color: var(--accent); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3M12 17h.01'/%3E%3C/svg%3E"); }
.c-learn { border-inline-start-color: var(--go); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4M12 2a7 7 0 0 0-4 12.7V16h8v-1.3A7 7 0 0 0 12 2z'/%3E%3C/svg%3E"); }
.c-reply { --icon: var(--i-bubble); }
.c-ask p { font-weight: 600; }
.asked { display: grid; gap: 2px; width: fit-content; max-width: 85%; margin: 4px 0 4px auto; padding: 8px 12px; border-radius: 14px;
          border-end-end-radius: 4px; background: var(--accent-tint); }
.asked .hint { font-size: 13px; }
/* UX #7: each line of a message its own direction (a Latin or number-first line in Hebrew stays whole) */
.inbox-msg :is(p, h3, li), .chat p, .nudge p, #ready-why { unicode-bidi: plaintext; text-align: start; }
#older { width: 100%; }
.q textarea, .field textarea { padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--field-line); background: var(--bg-2);
                  color: var(--fg); font: inherit; resize: vertical; }
.q textarea { display: block; width: 100%; box-sizing: border-box; }
.q input[name=note], .q input[name=site_other] { margin-top: 10px; }
.q .to-default { margin-top: 10px; }                                    /* owner 2026-10-09: the earliest message back to its default */
#checkin .btn-primary { width: 100%; }
/* U2 #14: the pain scale, one compact row 0-10 */
#scores { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
#scores label { justify-content: center; min-height: 44px; padding: 0; border-radius: 10px; font-variant-numeric: tabular-nums; }
#scores label::before { display: none; }
/* UX #10: never under 44 px: a phone has 0-5 over 6-10 (a narrow one, three rows) */
@media (max-width: 640px) { #scores { grid-template-columns: repeat(6, minmax(44px, 1fr)); } }
@media (max-width: 359px) { #scores { grid-template-columns: repeat(4, minmax(44px, 1fr)); } }
#scores label:has(input:checked) { background: var(--accent-solid); border-color: var(--accent-solid); color: #fff; }
.captcha { margin: 12px 0; }

/* the athlete's own session changes (SP3g) */
.plan { list-style: none; padding: 0; margin: 8px 0 0; }
.plan-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.plan-item > span { display: grid; gap: 0; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.plan-item.off strong { text-decoration: line-through; color: var(--muted); }
/* #3: a session opens to its steps */
.session-steps { flex: 1; min-width: 0; }
.session-steps summary { display: grid; cursor: pointer; list-style: none; overflow-wrap: anywhere; padding-inline-end: 20px; position: relative; }
.session-steps summary::-webkit-details-marker { display: none; }
.session-steps summary::after { content: ""; position: absolute; inset-inline-end: 4px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
                                border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.session-steps[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.steps { margin: 8px 0 4px; padding-inline-start: 18px; font-size: 15px; color: var(--fg-2); }
.session-steps summary > span { display: grid; }
.session-steps summary > .hint { display: block; }        /* UI overhaul 2: "Thu 8 Oct · 50 min" on one line */
.steps li { margin: 2px 0; }
.doc .steps li { margin: 2px 0; }
.plan .btn, .change .btn, #plan-msg .btn { min-height: 44px; padding: 0 14px; font-size: 15px; }
.change .choices { margin: 10px 0; }
.change .why { margin: 6px 0 0; padding-inline-start: 18px; font-size: 14px; }
.change .btn:disabled { opacity: 0.4; cursor: not-allowed; }
.change textarea { width: 100%; }
#plan-msg { margin: 12px 0; }
#plan-msg p { margin: 4px 0; }

/* onboarding v3 (SP3h): app-like controls - choice chips with a drawn indicator over the native radio / checkbox (still
   the accessible control: visually hidden, never display:none), styled fields over the native pickers, the health
   checklist as large rows, light and dark. 8 px spacing scale; touch targets >= 48 px. */
.err { color: var(--err); font-size: 15px; margin: 8px 0 0; }
.fold summary { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; font-weight: 600;
                color: var(--accent-ink); list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::before { content: ""; flex: none; width: 8px; height: 8px; margin-inline-start: 2px; border-right: 2px solid currentColor;
                        border-bottom: 2px solid currentColor; transform: rotate(-45deg); }   /* U2 #10: no mid-turn "L" */
.fold[open] summary::before { transform: rotate(45deg); }

/* fields: one look for text, number, date, time and select, whatever the browser's native control */
.q input:not(:where([type=radio], [type=checkbox])), .q select, .field input, .field select {   /* 0,1,1: never above a type rule */
  -webkit-appearance: none; appearance: none; display: block; width: 100%; min-height: 52px; margin: 0; padding: 0 16px;
  border: 1.5px solid var(--field-line); border-radius: 14px; background-color: var(--field); color: var(--fg);
  font: 500 17px/1.25 var(--font-body); transition: border-color 0.15s, box-shadow 0.15s; }
.q input::placeholder, .field input::placeholder { color: var(--muted); opacity: 1; }
.q input:hover, .q select:hover, .field input:hover, .field select:hover, .q textarea:hover { border-color: var(--muted); }   /* UI overhaul: hover strengthens the edge (--line-strong was fainter than --field-line) */
/* round 4 (QA §6.13): a field's focus is a real outline (a shadow alone vanished in forced colours) */
.q input:focus, .q select:focus, .field input:focus, .field select:focus, .q textarea:focus, .field textarea:focus {
  outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.q input[type=number] { -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.q input::-webkit-inner-spin-button, .q input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.q input[type=date], .q input[type=time], .field input[type=date] {
  position: relative; display: flex; align-items: center; text-align: start; padding-inline-end: 52px;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3A9B6' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") no-repeat right 16px center / 20px; }
.q input[type=time] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3A9B6' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }   /* SP3o: drawn like the date's, so RTL can place it */
input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value { text-align: start; margin: 0; }
input[type=date]::-webkit-datetime-edit { padding: 0; }
input[type=date]::-webkit-calendar-picker-indicator, input[type=time]::-webkit-calendar-picker-indicator {   /* the whole field opens the picker; the drawn icon shows */
  position: absolute; inset: 0; width: auto; height: auto; margin: 0; opacity: 0; cursor: pointer; }
.q select, .field select { padding-inline-end: 48px; background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3A9B6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 20px; }

/* the step header and the form */
body[data-page=onboarding] .doc { padding-top: 32px; }
body[data-page=onboarding] .doc h1 { font-size: clamp(34px, 6vw, 52px); margin-bottom: 8px; }
#progress-label { margin: 0 0 8px; font: 600 13px/1.2 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase;
                   color: var(--accent-ink); }
.progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin: 0 0 24px; }
.progress span { display: block; height: 100%; width: 0; background: var(--grad); transition: width 0.3s var(--ease); }
#steps legend { font-size: 30px; margin-bottom: 16px; }
#steps .q { margin: 0 0 32px; }
#steps .q .label { font-size: 17px; margin-bottom: 12px; }
#steps .q .hint { margin: -8px 0 12px; }
.step-nav .btn { min-height: 52px; padding: 0 24px; font-size: 17px; }

/* choice chips: the drawn indicator (a ring, a dot when chosen; a box, a tick for several) - never colour alone */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px; padding-inline-start: 14px;
  border: 1.5px solid var(--field-line); border-radius: 14px; background: var(--field); color: var(--fg-2); font-weight: 500;
  line-height: 1.25; cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s; }
.choices label:hover { border-color: var(--muted); }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.choices label::before { content: ""; flex: none; width: 20px; height: 20px; border: 2px solid var(--muted); border-radius: 50%;
                          box-sizing: border-box; transition: inherit; }
.choices label:has(input[type=checkbox])::before { border-radius: 6px; }
.choices label:has(input:checked) { border-color: var(--accent); background-color: var(--accent-tint); color: var(--fg); }
.choices label:has(input[type=radio]:checked)::before { border-color: var(--accent-solid); background: var(--accent-solid);
                                                        box-shadow: inset 0 0 0 4px var(--field); }
.choices label:has(input[type=checkbox]:checked)::before { border-color: var(--accent-solid);
                                                           background: var(--accent-solid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.6' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.choices label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
/* compact grids: the week's days and the hours, chosen = filled */
.choices.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
#q-hours .choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; padding-top: 6px; }
.choices.week label, #q-hours .choices label { justify-content: center; padding: 8px 4px; font-variant-numeric: tabular-nums; }
.choices.week label::before, #q-hours .choices label::before { display: none; }
.choices.week label:has(input:checked), #q-hours .choices label:has(input:checked) {
  border-color: var(--accent-solid); background-color: var(--accent-solid); color: #fff; }
#q-hours .choices label > span::after { content: " h"; }
:lang(he) #q-hours .choices label > span::after { content: " ש׳"; }
#q-hours label.rec { border-color: var(--go); }
.badge { display: none; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); padding: 2px 8px;
          border-radius: 999px; background: var(--go); color: #04140C; font: 700 10px/1.4 var(--font-body);
          letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.rec .badge { display: block; }
.rec-why { margin: -4px 0 16px; padding: 12px 14px; border-inline-start: 3px solid var(--go); border-radius: 12px;
            background: var(--go-tint); color: var(--fg); font-size: 15px; line-height: 1.45; }

/* the health checklist: one large row per item, its follow-up inline under it */
.ticks { display: grid; gap: 8px; }
.tick { border: 1.5px solid var(--field-line); border-radius: 14px; background: var(--field); transition: border-color 0.15s, background-color 0.15s; }
.tick:hover { border-color: var(--muted); }
.tick:has(> .check input:checked) { border-color: var(--accent); background-color: var(--accent-tint); }
.ticks .check { position: relative; display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 14px 16px;
                 min-height: 56px; color: var(--fg-2); line-height: 1.45; -webkit-tap-highlight-color: transparent; }
.ticks .check:has(input:checked) { color: var(--fg); }
.ticks .check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.ticks .check .box { flex: none; width: 24px; height: 24px; border: 2px solid var(--muted); border-radius: 7px; box-sizing: border-box; }
.ticks .check input:checked + .box { border-color: var(--accent-solid); background: var(--accent-solid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.6' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.ticks .check:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 14px; }
.tick > .q { margin: 0 !important; padding: 0 16px 16px; padding-inline-start: 54px; }
.btn.none { width: 100%; min-height: 56px; margin: 0 0 8px; border: 2px solid var(--go); border-radius: 14px; background: transparent;
             color: var(--fg); font-size: 17px; }
.btn.none::before { content: ""; flex: none; width: 22px; height: 22px; border: 2px solid var(--go); border-radius: 50%; box-sizing: border-box; }
.btn.none:hover { background: var(--go-tint); }
.btn.none.chosen { background: var(--go-tint); }
.btn.none.chosen::before { background: var(--go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.6' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
/* U2 #8: a field or chip group outlined in the error colour while aria-invalid (after the rules it overrides) */
.doc [aria-invalid=true]:is(input, select, textarea), .doc .choices[aria-invalid=true] label, .doc .ticks[aria-invalid=true] .tick {
  border-color: var(--err); }

/* phones: no card, the full width, and Back / Next always in reach */
@media (max-width: 560px) {
  body[data-page=onboarding] .doc { padding: 24px 16px 0; }
  #form.card { margin: 16px 0 0; padding: 0; border: 0; background: none; box-shadow: none; }
  .step-nav { position: sticky; bottom: 0; z-index: 5; flex-wrap: nowrap; margin: 0 -16px; padding: 16px 16px max(16px, env(safe-area-inset-bottom));
               background: linear-gradient(to top, var(--bg) 75%, transparent); }
  .step-nav #next { flex: 1; }
  .tick > .q { padding-inline-start: 16px; }
  html { scroll-padding-bottom: 96px; }                 /* M3: a field reached with Tab clears the sticky bar */
}
@media (min-width: 561px) { #q-hours .choices { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .choices label, .tick, .progress span { transition: none; } }

/* light: the rules the tokens cannot carry (after the rules they override) */
@media (prefers-color-scheme: light) {   /* Auto: the phone's light, unless Dark is picked (theme.js) */
  :where(:root:not([data-theme=dark])) .glow { opacity: 0.16; }
  :where(:root:not([data-theme=dark])) .glow.two { opacity: 0.1; }
  :where(:root:not([data-theme=dark])) .badge { background: #047857; color: #fff; }
  :where(:root:not([data-theme=dark])) .chip { background: var(--bg); }
  :where(:root:not([data-theme=dark])) .q input[type=date], :where(:root:not([data-theme=dark])) .field input[type=date] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
  :where(:root:not([data-theme=dark])) .q input[type=time] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
  :where(:root:not([data-theme=dark])) .q select, :where(:root:not([data-theme=dark])) .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
}
/* Light picked (theme.js): the same, whatever the phone says */
:where(:root[data-theme=light]) .glow { opacity: 0.16; }
:where(:root[data-theme=light]) .glow.two { opacity: 0.1; }
:where(:root[data-theme=light]) .badge { background: #047857; color: #fff; }
:where(:root[data-theme=light]) .chip { background: var(--bg); }
:where(:root[data-theme=light]) .q input[type=date], :where(:root[data-theme=light]) .field input[type=date] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
:where(:root[data-theme=light]) .q input[type=time] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
:where(:root[data-theme=light]) .q select, :where(:root[data-theme=light]) .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }

/* SP3j: right to left (Hebrew). Logical properties above mirror most of it; these are what they cannot: the drawn
   icons' sides, the fold's chevron, and an email, password or number typed left to right (aligned to the start).
   SP3o: a date's or a time's value is laid out left to right by the browser whatever the page: aligned to the start
   (right), its drawn icon at the end (left). */
[dir=rtl] .q input[type=date], [dir=rtl] .field input[type=date], [dir=rtl] .q input[type=time] {
  display: block; background-position: left 16px center; text-align: right; }   /* block: Chrome ignores the alignment in a flex one */
[dir=rtl] .q select, [dir=rtl] .field select { background-position: left 14px center; }
[dir=rtl] .fold summary::before { transform: rotate(135deg); }
[dir=rtl] .fold[open] summary::before { transform: rotate(45deg); }
[dir=rtl] input[type=email], [dir=rtl] input[type=password], [dir=rtl] input[type=number] { direction: ltr; text-align: right; }

/* SP3j: the app's tabs (Home / Progress / Settings) and the settings page */
/* UI overhaul: one segmented bar, each tab an icon and its word; where you are is tinted, in the accent, with a bar under
   it (never colour alone) - not a filled button that reads as the page's main action */
.tabs { display: flex; gap: 4px; margin: 0 0 24px; padding: 4px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
        box-shadow: var(--card-shadow); }
.tabs a { position: relative; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px;
          border-radius: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent;
          transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.tabs svg { flex: none; width: 20px; height: 20px; }
.doc .tabs a { color: var(--fg-2); }
.doc .tabs a:hover { background: var(--surface-2); color: var(--fg); }
.doc .tabs a[aria-current=page] { background: var(--accent-tint); color: var(--accent-ink); font-weight: 700; }
.tabs a[aria-current=page]::after { content: ""; position: absolute; inset: auto 28% 4px; height: 3px; border-radius: 2px; background: currentColor; }
[dir=rtl] .tabs a[href="progress.html"] svg { transform: scaleX(-1); }
/* #26: the bar is in each tab page's HTML and shows from the first paint under <html data-tabs> (theme.js, then app.js
   once the page knows): never dropped in by script, pushing the page down */
html:not([data-tabs]) #tabs { display: none; }
/* #26: a tab switch is a new page: the browser crossfades it (Chrome, Edge, Safari 18.2+; a plain load elsewhere) while
   the top bar and the tab bar, the same pixels on both pages, hold still. Neither is named for a transition of its own: a
   page scrolled past the tab bar would slide it in from above. Reduced motion: an instant swap */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-group(*) { animation-duration: 0.2s; }
/* #26: a classic scrollbar's room kept on a short page too: the column at the same x on every tab */
html { scrollbar-gutter: stable; }
@media (max-width: 480px) { .tabs a { flex-direction: column; gap: 2px; padding: 6px 4px 9px; font-size: 13px; } .tabs a[aria-current=page]::after { bottom: 3px; } }
/* UI overhaul 3: the Coach tab counts the answers not yet read on this device */
.tab-badge { position: absolute; top: 4px; inset-inline-end: calc(50% - 26px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
             background: var(--accent-solid); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }   /* the chart's time runs right to left */
/* UI overhaul: a chip, a tab or a day pressed answers at once (transform only: nothing moves around it) */
:is(.choices label, .mw-chip, .rd-day, .seg button, .tabs a, .opt:not(.refused, :disabled)):active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) { .tabs a { transition: none; } :is(.choices label, .mw-chip, .rd-day, .seg button, .tabs a, .opt:not(.refused, :disabled)):active { transform: none; } }
.err.ok { color: var(--muted); }               /* AA in both schemes (the light --go is under 4.5:1 on white) */
/* K6: My week - a row per day, toggle chips (aria-pressed), logical sides for Hebrew */
.mw { display: grid; gap: 10px; margin: 4px 0 14px; }
.mw-row { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); align-items: center; gap: 8px; }
.mw-day { font-weight: 600; }
.mw-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mw-chip { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: none;
           color: var(--fg-2); font: inherit; font-size: 15px; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.mw-chip:hover { border-color: var(--line-strong); }
.mw-chip[aria-pressed=true] { border-color: var(--accent); background-color: var(--accent-tint); color: var(--fg); }
.mw-chip.rest[aria-pressed=true] { border-color: var(--line-strong); background-color: var(--surface-2); }
.mw-chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mw-long { display: flex; flex-wrap: wrap; gap: 0 16px; }
@media (prefers-reduced-motion: reduce) { .mw-chip { transition: none; } }
body[data-page=profile] .q { margin-bottom: 24px; }
body[data-page=profile] .q:last-child { margin-bottom: 0; }
@media (max-width: 560px) { body[data-page]:not([data-page=onboarding]) .doc { padding: 24px 16px 48px; } }
@media (max-width: 560px) { body:is([data-page=app], [data-page=profile]) .card:not(.s-sec) { padding: 20px 16px; } }   /* UI overhaul: one card inset on a phone (#26: a Settings line and body carry their own) */
@media (max-width: 359px) { .tabs a { min-width: 0; padding: 4px 6px 8px; white-space: normal; text-align: center; line-height: 1.2;
                                        flex-direction: column; gap: 2px; font-size: 14px; } }   /* KO-113; the icon over its word */
/* KO-113: 400 % zoom or a phone on its side: the top bar and the step buttons scroll away instead of covering the page */
@media (max-height: 500px) { .nav, .step-nav { position: static; } main :focus { scroll-margin-top: 0; } }

/* SP3j: the progress page. UI overhaul: the cards' figures in one rhythm (an eyebrow, the figure, its words), more air
   on a computer, the last list row without a rule */
.stat .big, #week .big { margin: 0; font: 700 34px/1.1 var(--font-display); }
#race .big { font-size: 40px; }
#race .eyebrow { margin: 0 0 6px; }
body[data-page=progress] .card { padding: 20px 16px; margin: 16px 0; }
@media (min-width: 561px) { body[data-page=progress] .card { padding: 24px; } }
body[data-page=progress] .card h2 { margin: 0 0 8px; font-size: 24px; }
body[data-page=progress] .card p { margin: 6px 0; }
body[data-page=progress] .card h2 + .hint { margin-top: -2px; }
:is(body[data-page=progress], body[data-page=profile]) .doc h1 { font-size: clamp(36px, 5vw, 48px); margin-bottom: 8px; }
.weeks, .numbers { list-style: none; padding: 0; margin: 8px 0 0; }
.numbers li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
:is(.weeks, .numbers, .ms-list) li:last-child { border-bottom: 0; }
.prov { font-size: 14px; color: var(--muted); }
.prov.tested { color: var(--fg-2); font-weight: 600; }
/* this week: the sessions done as a bar under the figure */
.meter { height: 10px; margin: 10px 0 12px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.meter span { display: block; height: 100%; min-width: 0; border-radius: 5px; background: var(--st-go); }
/* hours a week: one bar a week - the planned hours as the track (outlined), the done hours filled over it - its words
   above it, and a key; the bars share one scale */
.chart-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 2px; padding: 0; list-style: none; font-size: 14px; color: var(--fg-2); }
.chart-key li { display: inline-flex; align-items: center; gap: 6px; }
.chart-key li::before { content: ""; width: 16px; height: 10px; border-radius: 3px; }
.chart-key .k-done::before { background: var(--st-go); }
.chart-key .k-plan::before { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.chart-key .k-fit::before { height: 3px; border-radius: 2px; background: var(--accent); }
.weeks li { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hw-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; font-size: 15px;
          font-variant-numeric: tabular-nums; }
.hw-top strong { font-weight: 600; }
.hw-bar { position: relative; height: 12px; }
.hw-bar span { position: absolute; inset-block: 0; inset-inline-start: 0; min-width: 4px; border-radius: 6px; }
.hw-bar .plan { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.hw-bar .done { background: var(--st-go); }

/* SP3j: the install hint */
.install { padding: 16px; margin: 16px 0; }
.install p { margin: 0 0 12px; }
.install .btn { min-height: 44px; }

/* U3 (owner: faster, clearer, better-looking): the skeleton that holds a page's place while its first reads answer, the
   setup card's title, the Today card (the landing's readiness look with the athlete's own numbers), the week as a list
   of weeks (sport stripe, Today, done / missed), Change as full-width option rows */
/* #26 (D1): while the tab bar shows, the highlighted tab names the page: the title under it is for screen readers */
.sr-only, html[data-tabs] #tabs + h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skeleton { display: grid; gap: 12px; padding: 22px; }
.skeleton:has(#wait[hidden]) { display: none; }
/* UX #18: while a page's first reads are out, nothing under the skeleton shows (it would be pushed down as they land) */
main:has(#wait:not([hidden])) #skeleton ~ * { display: none !important; }
.skeleton #wait { margin: 0; }
.bone { display: block; height: 14px; width: 72%; border-radius: 7px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2));
        background-size: 200% 100%; animation: bone 1.4s ease-in-out infinite; }
.bone.wide { height: 22px; width: 52%; } .bone.short { width: 38%; }
.bone.block { height: 96px; width: 100%; border-radius: 14px; }      /* UI overhaul: a card's figure holds its place */
@keyframes bone { to { background-position: -200% 0; } }
.hero-card { border-top: 3px solid var(--accent); }
.hero-card #hero-h { margin: 0 0 10px; font-size: 30px; line-height: 1.05; text-transform: uppercase; }
.today-card { position: relative; overflow: hidden; margin-top: 0; }
.today-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); }
.today-card.stale { opacity: 0.7; filter: grayscale(1); }
.today-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 14px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--fg-2); }
.live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--go); box-shadow: 0 0 10px var(--go); }
#ready { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 14px; }
#ready .verdict { font-size: 28px; }
#ready .why { color: var(--muted); font-size: 15px; margin: 6px 0 12px; }
#ready .metrics { margin: 0; }
#ready .metric { background: var(--surface-2); }              /* UI overhaul: a tile on the light card too */
#ready-avg { margin: 6px 0 0; font-size: 13px; }
/* K8 (round 5): a sport a pain trend holds at last week's time, one line a hold */
.held p { margin: 0 0 12px; padding-inline-start: 10px; border-inline-start: 3px solid var(--amber); font-size: 15px; }
.hero-session { display: grid; gap: 2px; padding: 4px 0 4px 14px; padding-inline: 14px 0; margin: 0 0 12px; border-inline-start: 4px solid var(--line-strong); }
.hero-session strong { font: 700 24px/1.1 var(--font-display); text-transform: uppercase; }
.hero-session .btn { justify-self: start; margin-top: 8px; min-height: 44px; }
.race-line { margin: 4px 0 0; font-size: 15px; }
.doc .race-line a { color: var(--fg-2); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
/* the week: a heading per week, one row per session; the sport's colour on its leading edge */
.plan h3.week-h { margin: 22px 0 4px; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan-item { display: block; padding: 0; border-bottom: 1px solid var(--line); border-inline-start: 4px solid var(--line-strong); }
.plan-item .session-steps summary { padding: 12px 28px 12px 12px; padding-inline: 12px 28px; gap: 1px; min-height: 48px; }
.plan-item .session-steps summary::after { inset-inline-end: 10px; }
.sport-swim { --sport: #0EA5E9; } .sport-bike { --sport: var(--orange); } .sport-run { --sport: #E11D48; } .sport-gym { --sport: #8B5CF6; }
:is(.plan-item, .hero-session):is(.sport-swim, .sport-bike, .sport-run, .sport-gym) { border-inline-start-color: var(--sport); }
.plan-item.is-today { background: var(--accent-tint); }
.plan-item.past summary strong { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; color: var(--fg-2); }
.tag.now { background: var(--accent-solid); border-color: var(--accent-solid); color: #fff; }
.tag.done, .tag.partial { border-color: var(--go); }
.tag.missed { border-color: var(--err); color: var(--err); }
.row-body { padding: 0 12px 12px; }
.row-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.row-acts:empty { display: none; }
/* Change: one row per option - what it does, or why it does not fit (AA text, never a faint pill) */
.opts { display: grid; gap: 8px; margin: 10px 0; }
.opt { display: grid; gap: 2px; width: 100%; min-height: 56px; padding: 10px 14px; text-align: start; border: 1.5px solid var(--field-line);
       border-radius: 14px; background: var(--field); color: var(--fg); font: inherit; cursor: pointer; }
.opt:hover:not(:disabled, [aria-disabled=true]) { border-color: var(--accent); background: var(--accent-tint); }
.opt strong { font-size: 17px; }
.opt span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.change .more { margin: 4px 0 10px; }
@media (prefers-reduced-motion: reduce) { .bone { animation: none; } }
.session-steps summary > .tags { display: flex; }

/* U5 (owner: "like Google Calendar, by the day of the week"): Your sessions as the week, or as the list (a quiet
   Week | List switch, this device's choice). A computer: 7 columns from the athlete's week start, a card per session
   (its sport's colour, name, minutes, Key), today marked, the days gone by quieter, a rest day said on purpose (a moon).
   A phone: a strip of the 7 days (a dot per session). Under the week: the chosen day's sessions as the list's rows. */
#coach .plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 32px; }
#coach .plan-head h2 { margin: 0; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.seg button { min-height: 44px; min-width: 64px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--muted);
               font: 600 15px/1 var(--font-body); cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed=true] { background: var(--surface-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-strong); }
.wk-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 22px 0 10px; }
.plan .wk-top h3.week-h { margin: 0; }
.wk-sum { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wk-day { display: flex; flex-direction: column; gap: 5px; min-width: 0; min-height: 156px; padding: 8px 4px 6px; border: 1px solid var(--line);
           border-radius: 14px; background: var(--surface); }
.wk-dh { display: grid; justify-items: center; gap: 2px; margin: 0 0 2px; }
.wk-dh span, .wk-chip .wk-wd { font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.wk-dh b, .wk-chip b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
                        font: 700 18px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.wk-day.chosen { border-color: var(--fg-2); background: var(--surface-2); }   /* its sessions are under the week */
.wk-day.today { border-color: var(--accent); }
:is(.wk-day, .wk-chip).today :is(.wk-dh span, .wk-wd) { color: var(--accent-ink); }
:is(.wk-day, .wk-chip).today b { background: var(--accent-solid); color: #fff; }
.wk-day.past { background: transparent; }
:is(.wk-day, .wk-chip).past b { color: var(--muted); }
.wk-cards { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.wk-card { display: grid; gap: 1px; width: 100%; padding: 5px 6px; border: 0; border-inline-start: 3px solid var(--sport, var(--line-strong));
            border-radius: 8px; background: var(--surface-2); background: color-mix(in srgb, var(--sport, var(--muted)) 16%, transparent);
            color: var(--fg); font: inherit; text-align: start; cursor: pointer; transition: box-shadow 0.15s, background-color 0.15s; }
.wk-card:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.wk-card strong { font-size: 13px; font-weight: 600; line-height: 1.2; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.wk-min, .wk-note { font-size: 12px; line-height: 1.3; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.wk-key { font-size: 10px; font-weight: 700; line-height: 1.3; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.wk-note { color: var(--muted); }
.wk-note.done::before, .wk-note.partial::before { content: "✓ "; color: var(--go); }
.wk-note.missed { color: var(--err); }
.wk-day.past .wk-card { background: var(--surface); border-inline-start-color: var(--line-strong); }
.wk-day.past .wk-card strong, .wk-card.off strong { color: var(--muted); }
.wk-card.off strong { text-decoration: line-through; }
.wk-rest { flex: 1; display: grid; align-content: center; justify-items: center; gap: 4px; margin: 0; min-height: 64px; border-radius: 8px;
            border: 1px dashed var(--line-strong); color: var(--muted); font-size: 13px; font-weight: 600; }
.wk-rest::before, .wk-dots .rest { content: ""; width: 18px; height: 18px; background: currentColor;
                                    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 14.2A8.5 8.5 0 0 1 9.8 3.5a8.5 8.5 0 1 0 10.7 10.7z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 14.2A8.5 8.5 0 0 1 9.8 3.5a8.5 8.5 0 1 0 10.7 10.7z'/%3E%3C/svg%3E") center / contain no-repeat; }
.wk-day.past .wk-rest { border-color: var(--line); }
.wk-tot { margin: auto 0 0; text-align: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wk-strip { display: none; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.wk-chip { display: grid; justify-items: center; align-content: start; gap: 4px; min-width: 0; min-height: 76px; padding: 8px 0;
            border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); font: inherit; cursor: pointer;
            -webkit-tap-highlight-color: transparent; transition: border-color 0.15s, background-color 0.15s; }
.wk-chip .wk-wd { font-size: 11px; letter-spacing: 0.04em; }
.wk-chip b { width: 28px; height: 28px; font-size: 17px; }
.wk-chip.past { background: transparent; }
.wk-chip[aria-pressed=true] { border-color: var(--fg-2); background: var(--surface-2); }
.wk-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; min-height: 10px; padding: 0 2px; }
.wk-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--sport, var(--muted)); }
.wk-dots i.off { background: none; box-shadow: inset 0 0 0 1.5px var(--sport, var(--muted)); }
.wk-dots .rest { width: 11px; height: 11px; border-radius: 0; color: var(--muted); }
.wk-panel { margin: 10px 0 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.wk-panel h4 { margin: 0; padding: 10px 12px; border-bottom: 1px solid var(--line); font: 600 14px/1.3 var(--font-body);
                letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); }
.wk-panel .plan-item:last-child { border-bottom: 0; border-end-start-radius: 13px; border-end-end-radius: 13px; }
.wk-panel .plan-item.is-today { background: none; }                /* the panel's heading says Today */
.wk-panel .tag.now { display: none; }
.wk-rest-day { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 12px; color: var(--fg-2); }
.wk-rest-day::before { content: ""; flex: none; width: 20px; height: 20px; background: var(--muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 14.2A8.5 8.5 0 0 1 9.8 3.5a8.5 8.5 0 1 0 10.7 10.7z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 14.2A8.5 8.5 0 0 1 9.8 3.5a8.5 8.5 0 1 0 10.7 10.7z'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 600px) { .wk-strip { display: grid; } .wk-grid { display: none; } }
@media (prefers-color-scheme: light) {   /* AA on a tinted card: a darker Key, a white chosen day (Auto; Light picked: below) */
  :where(:root:not([data-theme=dark])) .wk-key { color: #9A3412; }
  :where(:root:not([data-theme=dark])) .wk-day.chosen { background: var(--surface); }
}
/* Light picked (theme.js): the same, whatever the phone says */
:where(:root[data-theme=light]) .wk-key { color: #9A3412; }
:where(:root[data-theme=light]) .wk-day.chosen { background: var(--surface); }
@media (prefers-reduced-motion: reduce) { .seg button, .wk-card, .wk-chip { transition: none; } }

/* U6 (owner: the opened session friendlier, fewer options - as TrainingPeaks, Runna and TrainerRoad do it): content
   first - the coach's words (their lines kept), the targets and the fuel as chips, the steps - then one toolbar: Move,
   Adjust, Skip (only those that fit, each with an icon), Undo, and Download at its end (a disclosure). Under it the open
   option's picks and a quiet "Ask my coach". Move happens in the week: the days it can go to light up and the rest dim;
   on a computer a card also drags there. The week's panel says the day once: its rows lead with the name. */
.row-day + .row-min::before { content: " · "; }
.wk-panel .row-day { display: none; }
.wk-panel .row-min::before { content: none; }
.wk-panel .session-steps summary > .hint { order: 1; }
.wk-panel .session-steps summary > .tags { order: 2; }
.desc { margin: 0; color: var(--fg-2); font-size: 16px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
/* UI overhaul 2 (owner: "the workout readings is plain text"): the opened session - its time, distance and effort mix,
   a profile of its blocks over time (height and colour: effort; time runs right to left in Hebrew), the coach's Why and
   How, the steps grouped warm-up / main set / cool-down (a colour bar each, a repeat its "3 ×"), the fuel and the
   short-on-time line as callouts. The steps never take the landing's 3-column .steps */
.z1 { --z: var(--z1); } .z2 { --z: var(--z2); } .z3 { --z: var(--z3); } .z4 { --z: var(--z4); } .z5 { --z: var(--z5); }
.wo-top { margin: 0 0 12px; }
.wo-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 8px; }
.wo-big { font: 700 24px/1.1 var(--font-display); color: var(--fg); font-variant-numeric: tabular-nums; }
.wo-mix { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--fg-2); }
.wo-mix::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--z2); }
.m-steady::before { background: var(--z3); }
.m-hard::before { background: linear-gradient(90deg, var(--z4) 50%, var(--z5) 50%); }
.wo-graph { display: block; width: 100%; height: 56px; }
.wo-graph rect { fill: var(--z); }
[dir=rtl] .wo-graph { transform: scaleX(-1); }
.desc p { margin: 0 0 4px; }
.desc-h, .wo-call strong { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); }
:lang(he) :is(.desc-h, .wo-call strong) { letter-spacing: 0; }
.wo-call { position: relative; display: grid; gap: 2px; margin: 10px 0; padding: 10px 12px; padding-inline-start: 40px; border-radius: 12px;
           background: var(--surface-2); color: var(--fg); font-size: 15px; line-height: 1.45; --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3C/svg%3E"); }
.wo-call::before { content: ""; position: absolute; top: 11px; inset-inline-start: 12px; width: 18px; height: 18px; background: var(--accent-ink);
                   -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.c-fuel { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E"); }
.c-fuel::before { background: var(--st-warn); }
.c-fuel strong { color: var(--fg); text-transform: none; letter-spacing: 0; font-size: 15px; }
.c-short { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.c-short::before { background: var(--fg-2); }
.wo-phases { display: grid; gap: 12px; margin: 12px 0 0; }
.wo-phase h4 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 6px; font: 700 13px/1.3 var(--font-body);
               letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); }
:lang(he) .wo-phase h4 { letter-spacing: 0; }
.wo-phase h4 .hint { font-size: 13px; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.row-body .steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--fg); }
.row-body .steps li { margin: 0; }
.wo-step { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 10px; border-inline-start: 4px solid var(--z, var(--line-strong));
           border-radius: 10px; background: var(--surface-2); }
.wo-amt { min-width: 3.4em; font-weight: 700; font-variant-numeric: tabular-nums; }
.wo-txt { flex: 1 1 7em; min-width: 0; overflow-wrap: anywhere; }
.wo-tgs { display: flex; flex-wrap: wrap; gap: 6px; }
.wo-step .tg { padding: 1px 8px; background: var(--surface); font-size: 13px; }
.wo-rep { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 8px; padding: 8px; border: 1.5px dashed var(--line-strong);
          border-radius: 12px; }
.wo-x { padding: 8px 2px 0; font: 700 22px/1 var(--font-display); color: var(--accent-ink); white-space: nowrap; }
/* #24, #93: a drill's video, a YouTube icon right after the line that names it (inline SVG); a 24px tap target at least,
   and in Hebrew its "in English" tag inside the link */
.yt { display: inline-flex; align-items: center; gap: 4px; min-width: 24px; min-height: 24px; margin-inline-start: 6px; padding: 0 2px;
      border-radius: 6px; vertical-align: middle; text-decoration: none; }
.yt svg { width: 22px; height: 22px; flex: none; }
.yt-b { fill: #f00; }
.yt-p { fill: #fff; }
.yt .tag { font-size: 12px; padding: 0 6px; }

.tg { padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); color: var(--fg);
      font-size: 14px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
.row-body > :is(.row-acts, .change) { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.row-acts { align-items: center; }
.act::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
               -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
[dir=rtl] :is(.act-move, .act-skip)::before { transform: scaleX(-1); }
.change .act[aria-expanded=true] { border-color: var(--accent); background: var(--accent-tint); }
.dl { position: relative; margin-inline-start: auto; }
.plan .dl-btn { border: 1px solid transparent; background: none; color: var(--fg-2); }
.plan .dl-btn:hover, .plan .dl-btn[aria-expanded=true] { background: var(--surface-2); }
.dl-btn::after { content: ""; width: 7px; height: 7px; margin: -4px 2px 0 2px; border-right: 2px solid currentColor;
                 border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.dl-btn[aria-expanded=true]::after { margin-top: 3px; transform: rotate(-135deg); }
.dl-menu { position: absolute; z-index: 20; top: calc(100% + 6px); inset-inline-end: 0; display: grid; gap: 2px; min-width: 250px;
           padding: 6px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg-2);
           box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6); animation: menu-in 0.16s var(--ease); }
.plan .dl-menu .btn { justify-content: flex-start; width: 100%; border: 0; border-radius: 10px; background: none; white-space: nowrap; }
.plan .dl-menu .btn:hover { background: var(--surface-2); }
.change .more { margin: 12px 0 0; }
.change .more:empty { display: none; }
.change .more > p { margin: 0 0 10px; }
.change .opts { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0; }
.change .opt { min-height: 0; padding: 10px 14px; }
.change .opt strong { font-size: 16px; }
.why-not { margin: 10px 0 0; font-size: 14px; }
.ask-line { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.link { padding: 10px 2px; border: 0; background: none; color: var(--accent-ink); font: inherit; font-weight: 600; cursor: pointer;
        text-decoration: underline; text-underline-offset: 3px; }
.wk-card { position: relative; -webkit-user-select: none; user-select: none; }
.wk-card.can-drag { cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.wk-card.can-drag::after { content: ""; position: absolute; top: 7px; inset-inline-end: 5px; width: 6px; height: 10px; background: var(--muted);
                           opacity: 0; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 10'%3E%3Cg fill='black'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3Ccircle cx='5' cy='1' r='1'/%3E%3Ccircle cx='1' cy='5' r='1'/%3E%3Ccircle cx='5' cy='5' r='1'/%3E%3Ccircle cx='1' cy='9' r='1'/%3E%3Ccircle cx='5' cy='9' r='1'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 10'%3E%3Cg fill='black'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3Ccircle cx='5' cy='1' r='1'/%3E%3Ccircle cx='1' cy='5' r='1'/%3E%3Ccircle cx='5' cy='5' r='1'/%3E%3Ccircle cx='1' cy='9' r='1'/%3E%3Ccircle cx='5' cy='9' r='1'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; transition: opacity 0.15s; }
.wk-card.can-drag:is(:hover, :focus-visible)::after { opacity: 1; }      /* the grip: it moves */
.wk-card.dragging { opacity: 0.35; }
.wk-ghost { position: fixed; top: 0; left: 0; z-index: 100; margin: 0; pointer-events: none; opacity: 0.95;
            background: var(--bg-2); box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.65), inset 0 0 0 1px var(--line-strong); }
.is-dragging, .is-dragging * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }
.wk-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; min-height: 40px; margin: 12px 0 6px; padding: 0 14px; border: 1px solid var(--accent);
           border-radius: 12px; background: var(--accent-tint); color: var(--fg); font-weight: 600; }
.wk-mode > span { flex: 1 1 14em; }
.wk-mode .btn { min-height: 44px; margin: 2px 0; }
.wk-mode .link { padding-block: 6px; }
:is(.wk-day, .wk-chip).target { border-color: var(--accent); background: var(--accent-tint); }
.wk-day.target { border-style: dashed; }
:is(.wk-day, .wk-chip).target.not-training { border-style: dotted; background: transparent; }   /* #29: not a training day */
.wk-chip.dim, .wk-day.dim > :not(.wk-why) { opacity: 0.4; }      /* a dimmed day's own note stays at full contrast */
/* U6c, a drag by the calendar's rule: on a card, "↔ Swap with ..."; on the day's own space, "+ Add to ..." (or "Move
   here"); where it may not go, a dashed red edge and its reason in the line above the week */
.wk-day { position: relative; }
.is-dragging .wk-drop { visibility: hidden; }                    /* the drag says it itself; nothing shifts */
.wk-day.add-over { border-style: solid; box-shadow: inset 0 0 0 1px var(--accent); }
.wk-card.swap-over { box-shadow: 0 0 0 2px var(--accent); }
:is(.wk-day.add-over, .wk-card.swap-over)::before { content: attr(data-hint); position: absolute; z-index: 5; padding: 5px 6px;
  border-radius: 8px; background: var(--accent-solid); color: #fff; font: 600 12px/1.25 var(--font-body); text-align: center;
  white-space: normal; overflow-wrap: anywhere; pointer-events: none; }
.wk-day.add-over::before { inset-inline: 4px; top: 6px; }       /* over its header: never under the pointer's card */
.wk-card.swap-over::before { inset-inline: -2px; top: calc(100% + 4px); }
:is(.wk-day, .wk-card).no-over { outline: 2px dashed var(--err); outline-offset: -2px; }
.wk-why { position: relative; z-index: 1; margin: 6px 0 0; padding: 6px; border-inline-start: 3px solid var(--err); border-radius: 8px;
          background: var(--bg-2); color: var(--fg); font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.wk-chip.dim { cursor: not-allowed; }
.wk-chip.swap .wk-dots::after { content: "⇄"; margin-inline-start: 1px; color: var(--accent-ink); font-size: 11px; line-height: 8px; }
.wk-drop { margin-top: auto; padding: 6px 4px; border: 1px dashed var(--accent); border-radius: 8px; background: var(--bg-2);
           color: var(--accent-ink); font: 600 12px/1.25 var(--font-body); cursor: pointer; overflow-wrap: anywhere; }
.wk-day.over .wk-drop { border-style: solid; background: var(--accent-solid); color: #fff; }
@media (prefers-reduced-motion: reduce) { .dl-menu { animation: none; } .wk-card.can-drag::after { transition: none; } }
.act-move { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4M9 15.5h6M13 13l2.5 2.5L13 18'/%3E%3C/svg%3E"); }
.act-adjust { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h10M18 7h2M4 17h4M12 17h8'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='10' cy='17' r='2'/%3E%3C/svg%3E"); }
.act-skip { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5l10 7-10 7z M19 5v14'/%3E%3C/svg%3E"); }

/* KO-103: the quiet Help link (each signed-in page's last line, and beside a blocking banner's one action) */
.help-line { margin: 32px 0 0; text-align: center; font-size: 15px; }
.doc .help-line a, .doc .help-link { color: var(--muted); text-underline-offset: 3px; }
.help-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: 15px; }
#ref { font-variant-numeric: tabular-nums; font-weight: 600; }

/* KO-107: the reply to today's question, under the daily */
.replies { padding: 18px 16px; margin: 8px 0 16px; }
.replies h3 { margin: 0 0 8px; font-size: 20px; text-transform: uppercase; }
.reply + .reply, .reply + .guidance + .reply { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.reply .q { margin-bottom: 12px; }
.reply .field { margin: 10px 0; }
.reply p.label { margin: 12px 0 6px; font-weight: 600; }
.reply .btn { width: 100%; }
.scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.scale:has(> label:nth-child(10):last-child) { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.scale label { justify-content: center; min-height: 44px; padding: 0; border-radius: 10px; font-variant-numeric: tabular-nums; }
.scale label::before { display: none; }
.scale label:has(input:checked) { background: var(--accent-solid); border-color: var(--accent-solid); color: #fff; }
@media (max-width: 640px) { .scale { grid-template-columns: repeat(6, minmax(44px, 1fr)); }       /* UX #10, as #scores */
  .scale:has(> label:nth-child(10):last-child) { grid-template-columns: repeat(5, minmax(44px, 1fr)); } }
@media (max-width: 359px) { .scale, .scale:has(> label:nth-child(10):last-child) { grid-template-columns: repeat(4, minmax(44px, 1fr)); } }

/* KO-108: Progress - the fitness line, this week's split by sport, readiness, results, wins. UI overhaul: the fitness
   line labelled (its scale at the start, its first and last week under it, a key), the area under it lightly filled */
.fit-chart { margin: 12px 0 0; }
.fit-plot { position: relative; }
.fit-chart svg { width: 100%; height: auto; overflow: visible; }
[dir=rtl] .fit-chart svg { transform: scaleX(-1); }            /* time runs right to left */
.fit-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.fit-area { fill: var(--accent-tint); }
.fit-grid { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 4; }
.fit-dot { fill: var(--bg-2); stroke: var(--accent); stroke-width: 2; }
.fit-dot.last { fill: var(--accent); }
.fit-y { position: absolute; inset-inline-start: 0; translate: 0 -50%;
          font-size: 12px; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.fit-x { display: flex; justify-content: space-between; gap: 8px; margin: 4px 0 0; padding-inline-start: 10%; font-size: 12px; color: var(--muted); }
#fit-sum { margin-top: 10px; font-weight: 600; color: var(--fg); }
.fit-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fit-table th, .fit-table td { text-align: start; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.split { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--surface-2); margin: 6px 0; }
.split span { display: block; height: 100%; background: var(--sport, var(--line-strong)); }
.split-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; padding: 0; margin: 4px 0 8px; font-size: 15px; color: var(--fg-2); }
.split-legend li { display: inline-flex; align-items: center; gap: 6px; }
.split-legend li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--sport, var(--line-strong)); }
/* UI overhaul (owner: "Readiness, last 14 days is not understandable - I just see 6 7 8 with dots"): the 14 days ending
   today as a calendar strip, a one-line summary over it and a key under it. A day: its weekday, a status mark, its date
   (today's filled, "Today" for its weekday). The mark says the call by its glyph as well as its colour - a tick, !, x, and
   a dashed ring with a dash for a day without a reading. A tap (or the arrow keys) shows that day's call and its reason.
   Two rows of 7 on a phone (44 px a day), one row of 14 from 720 px. */
.rd-sum { display: grid; gap: 2px; margin: 4px 0 14px; }
body[data-page=progress] .card .rd-sum { margin: 4px 0 14px; }
.rd-sum strong { font: 700 22px/1.2 var(--font-display); color: var(--fg); }
.rd-sum span { color: var(--fg-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.rd-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px 4px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .rd-days { grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px 2px; } }
.rd-day { display: grid; justify-items: center; align-content: start; gap: 5px; width: 100%; min-height: 88px; padding: 8px 0 6px;
          border: 1px solid transparent; border-radius: 12px; background: none; color: var(--fg); font: inherit; cursor: pointer;
          -webkit-tap-highlight-color: transparent; touch-action: manipulation;
          transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.rd-day:hover { border-color: var(--line-strong); }
.rd-day[aria-pressed=true] { border-color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--fg-2); background: none; }   /* AA for Today's word */
.rd-wd { font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
:lang(he) .rd-wd { letter-spacing: 0; }
.rd-dn { display: grid; place-items: center; min-width: 26px; height: 22px; padding: 0 4px; border-radius: 11px; font-size: 13px; font-weight: 600;
          line-height: 1; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.rd-day.today .rd-wd { color: var(--accent-ink); }
.rd-day.today .rd-dn { background: var(--accent-solid); color: #fff; }
.rd-ico { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; box-sizing: border-box;
          background: var(--st-go); color: var(--st-go-on); --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.rd-ico::before { content: ""; width: 16px; height: 16px; background: currentColor;
                  -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }
.rd-ico.rd-amber { background: var(--st-warn); color: var(--st-warn-on); --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.2v5.6' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='12.6' r='1.6'/%3E%3C/svg%3E"); }
.rd-ico.rd-red { background: var(--st-stop); color: var(--st-stop-on); --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 4.6l6.8 6.8M11.4 4.6l-6.8 6.8' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.rd-ico.rd-none { border: 1.5px dashed var(--line-strong); background: none; color: var(--muted); --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8h7' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.rd-detail { display: flex; align-items: flex-start; gap: 12px; min-height: 64px; margin: 12px 0 0; padding: 12px 14px; border-radius: 14px;
             background: var(--surface-2); }
.rd-detail > span:last-child { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.rd-detail .why { color: var(--muted); font-size: 15px; }
.rd-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--fg-2); }
.rd-legend li { display: inline-flex; align-items: center; gap: 6px; }
.rd-legend .rd-ico { width: 20px; height: 20px; }
.rd-legend .rd-ico::before { width: 12px; height: 12px; }
@media (prefers-reduced-motion: reduce) { .rd-day { transition: none; } }
.wins { margin: 4px 0 0; padding-inline-start: 20px; color: var(--fg-2); }
#wins { margin: 12px 0 0; }
.card .fold:last-child { margin-bottom: 0; }        /* UI overhaul: no dead space under a card's last fold */

/* KO-109: the race-week card */
.race-card { border-inline-start: 4px solid var(--accent); padding: 20px; }
.race-card h2 { margin: 6px 0 8px; font-size: 30px; text-transform: uppercase; }
.rw-list { margin: 8px 0; padding-inline-start: 20px; color: var(--fg-2); }
.rw-list li { margin: 4px 0; }
#rw-fuel { margin: 8px 0; color: var(--fg); }
.race-card .eyebrow, .race-line, .stat p { overflow-wrap: anywhere; }   /* R4 L11: a long one-word race name wraps at 320 px */

/* KO-118: Settings > Your races */
.race-list { list-style: none; padding: 0; margin: 8px 0 12px; }
.race-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.race-list li > div { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.race-list .row-acts { margin-top: 6px; }
.race-list .btn { min-height: 44px; padding: 0 14px; font-size: 15px; }
.pri { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-weight: 700;
       border: 1.5px solid var(--line-strong); color: var(--fg); }
.pri-A { background: var(--accent-solid); border-color: var(--accent-solid); color: #fff; }
.race-form { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.race-form h3 { margin: 0 0 12px; font-size: 22px; text-transform: uppercase; }
#races-msg { margin: 8px 0; }
/* owner 2026-10-08: the setup's other races (B or C) - a card each, a remove x, Add another race */
.race-rows { display: grid; gap: 12px; margin: 8px 0; }
.race-row { position: relative; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
            display: grid; gap: 8px; min-width: 0; }
#steps .race-row legend { font: 600 16px/1.4 var(--font-body); text-transform: none; margin: 0; padding: 0 6px; }
.race-row .field { display: grid; gap: 4px; }
.race-row .field input, .race-row .field select { width: 100%; min-width: 0; }
.race-x { position: absolute; inset-block-start: 4px; inset-inline-end: 4px; min-width: 44px; min-height: 44px;
          border: 0; background: none; color: var(--fg); font-size: 24px; line-height: 1; cursor: pointer; }
.race-row .choices { margin: 0; }
/* #49: step 6 "Your target" and Settings' races - a row per race (its chips, its time, one line); two A races close
   together, said with "Keep A" / "Make it B" */
.tg-rows { display: grid; gap: 12px; }
#steps .tg-row .hint, .tg-row .hint { margin: 0; }
.tg-row legend { font: 600 16px/1.4 var(--font-body); text-transform: none; margin: 0; padding: 0 6px; overflow-wrap: anywhere; }
.tg-time { font-variant-numeric: tabular-nums; }
.race-form .tg-row { margin: 12px 0; }
.sp-warn { display: grid; gap: 8px; margin: 0 0 24px; }
.race-row .sp-warn, .race-form .sp-warn { margin: 4px 0 0; }
.sp-warn .guidance { margin: 0; }
.sp-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-warn .btn { min-height: 44px; }
.tg-sum { font-weight: 600; color: var(--fg); }
/* owner 2026-10-08: an A race's change, said before it is saved (and Re-plan this week now after) */
.race-confirm { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2);
                border-inline-start: 3px solid var(--accent-solid); }
.race-confirm h3 { margin: 0 0 8px; font-size: 17px; }
.rcp-lines { margin: 0 0 12px; padding-inline-start: 20px; display: grid; gap: 6px; overflow-wrap: anywhere; }
.rcp-lines .err { margin: 0; }

/* Track A (round 3): Not today?, the Today card's one note, weeks on plan */
.hero-session .cta-row { gap: 8px; }
.hero-session .cta-row .btn { margin-top: 8px; }
.nt { margin: 10px 0 4px; }
.opt.refused { cursor: default; opacity: 0.75; }
.opt.refused span { color: var(--fg-2); }
.nt-sick { cursor: default; }
.nt-sick .cta-row { gap: 8px; margin-top: 6px; }
.nt-sick .btn { min-height: 44px; }
.nudge { border-inline-start: 3px solid var(--amber); padding: 4px 0 4px 12px; padding-inline: 12px 0; margin: 4px 0 14px; }
.nudge strong { display: block; font-size: 17px; }
.nudge p { margin: 4px 0 10px; color: var(--fg-2); }
.nudge .cta-row { gap: 8px; }
.nudge .btn { min-height: 44px; }
.waiting { margin: 12px 0 4px; }                                    /* round 6 (P9): Today's "Waiting on you" */
.wait-list { list-style: none; margin: 0; padding: 0; }
.wait-list li { padding: 10px 0; }
.wait-list li + li { border-top: 1px solid var(--line); }
.wait-list p { margin: 0 0 4px; overflow-wrap: anywhere; }
.wait-list .hint { display: block; font-size: 14px; }
.wait-list .btn { min-height: 44px; margin-top: 8px; }
#coaching .check { min-height: 0; margin-bottom: 4px; }            /* round 6: a coaching preference, its words under it */
.cp-d { margin: 0 0 16px; padding-inline-start: 36px; font-size: 14px; }
.streak { margin: 10px 0 0; font-size: 15px; }
.streak .hint { display: block; font-size: 13px; }
.wk-chip.all-done .wk-dots::after { content: "✓"; margin-inline-start: 1px; color: var(--go); font-size: 11px; line-height: 8px; }
.doc .streak a { color: var(--fg-2); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
#mw-unsaved { align-self: center; margin: 0; }

/* QA 2026-10-07 (quality L9, ui L3, quality M3): 44 px targets above; the Move bar and a session's opened actions,
   scrolled into view, clear the sticky header (the phone at 320 px: scroll-margin, as KO-113's, never html's
   scroll-padding); in forced colors (Windows High Contrast) a selected state, drawn with a background the system drops,
   is the system's Highlight instead */
.wk-mode, .change, .change .more, #plan-msg { scroll-margin-top: 84px; }
@media (max-height: 500px) { .wk-mode, .change, .change .more, #plan-msg { scroll-margin-top: 0; } }
.away-list { list-style: none; margin: 8px 0; padding: 0; }
.away-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; }
@media (forced-colors: active) {
  .choices label:has(input:checked), #scores label:has(input:checked), .scale label:has(input:checked),
  .tick:has(> .check input:checked), .mw-chip[aria-pressed=true], .wk-chip[aria-pressed=true],
  .seg button[aria-pressed=true], .tabs a[aria-current=page], .check input:checked, .ticks .check input:checked + .box {
    forced-color-adjust: none; background: Highlight; border-color: Highlight; color: HighlightText;
  }
  .progress { border: 1px solid CanvasText; }
  .progress span { forced-color-adjust: none; background: Highlight; }
  /* round 4 (QA §6.13): what was drawn in colour only - a session's dot, a flag's dot, the rest moon - in the text's
     system colour (a missed session's stays a ring), today's day outlined, a chosen chip's words readable */
  .wk-dots i, .dot, .live::before, .rd-ico, .meter span, .hw-bar .done, .wk-rest::before, .wk-dots .rest {
    forced-color-adjust: none; background: CanvasText; box-shadow: none; }
  .rd-ico { color: Canvas; }
  .mi::before, .mcall::before, .wo-call::before { forced-color-adjust: none; background: CanvasText; }   /* UI overhaul 2 */
  .yt-b { fill: LinkText; } .yt-p { fill: Canvas; }   /* #93 */
  .wo-graph rect { forced-color-adjust: none; fill: CanvasText; }
  .rd-ico.rd-none { background: Canvas; color: CanvasText; border-color: CanvasText; }
  .rd-day[aria-pressed=true] { outline: 2px solid Highlight; }
  .rd-day.today .rd-dn { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .wk-dots i.off { background: Canvas; box-shadow: inset 0 0 0 1.5px CanvasText; }
  :is(.wk-day, .wk-chip).today { outline: 2px solid Highlight; outline-offset: -2px; }
  .wk-chip[aria-pressed=true] :is(.wk-wd, b) { forced-color-adjust: none; color: HighlightText; background: none; }
}
/* round 4 (adherence #11): Progress's "Week 3 of 12 · Build · Tiberias in 9 weeks" under the race countdown */
.plan-line { margin: 10px 0 0; font-weight: 600; color: var(--fg-2); }
/* round 4 (adherence #10): Progress's milestones, one a row with its date */
.ms-list { list-style: none; margin: 8px 0 0; padding: 0; }
.ms-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.ms-list li:first-child { border-top: 0; }
/* round 4 (QA §6.7): Settings' one Races card - the goal race's answers above the list, a race's status near its day */
.goal-race { margin: 4px 0 12px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.goal-race h3 { margin: 12px 0 8px; }
.race-status { margin: 8px 0 0; }

/* UI overhaul 3 (owner: "put the messages under each day it relates to ... Put them inside a chat if they are a chat"):
   a day's note under its day (a speech bubble on the day: a button on a computer's column, a mark on a phone's chip), a
   week's message under its heading, today's on the Today card; the conversation in the Coach chat */
.wk-msg { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 30px; margin: auto 2px 0; padding: 2px 8px;
          border: 0; border-radius: 999px; background: var(--accent-tint); color: var(--accent-ink); font: 600 12px/1.2 var(--font-body);
          cursor: pointer; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.wk-msg:hover { background: var(--accent-solid); color: #fff; }
.wk-tot + .wk-msg { margin-top: 4px; }
.wk-msg::before, .wk-bub { content: ""; flex: none; width: 13px; height: 13px; background: currentColor;
                           -webkit-mask: var(--i-bubble) center / contain no-repeat; mask: var(--i-bubble) center / contain no-repeat; }
.wk-bub { display: block; width: 12px; height: 12px; margin-top: -2px; color: var(--accent-ink); }
.wk-notes { padding: 0 12px 12px; }
.inbox-msg .mb ul { padding-inline-start: 22px; list-style: disc; } .inbox-msg .mb ol { padding-inline-start: 22px; list-style: decimal; }   /* never .plan ul's */
.wk-notes .inbox-msg, .wk-review .inbox-msg, .plan-note .inbox-msg { margin: 8px 0 0; box-shadow: none; }
.wk-review { margin: 0 0 8px; }
.plan-note { padding: 4px 0 8px; }
.today-notes:empty { display: none; }
.today-notes { margin: 12px 0 0; }
.today-notes .inbox-msg { margin: 0 0 8px; background: var(--surface-2); border-color: transparent; box-shadow: none; }
.today-notes .replies { margin: 0 0 8px; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: none; }
.today-notes .replies h3 { font-size: 17px; }
/* the chat: yours at the end, the coach's at the start (mirrored in Hebrew by the logical sides), a line a day */
.chat { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.chat > li { max-width: min(88%, 560px); }
.chat-day { align-self: center; margin: 8px 0 0; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--fg-2);
            font-size: 13px; font-weight: 600; }
.chat .from-me { align-self: flex-end; display: grid; gap: 2px; padding: 8px 12px; border-radius: 16px; border-end-end-radius: 4px;
           background: var(--accent-solid); color: #fff; }
.from-me p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; color: #fff; }
.chat-time { justify-self: end; font-size: 12px; }
.from-coach { align-self: flex-start; }
.from-coach .inbox-msg { margin: 0; border-end-start-radius: 4px; }
.chat-sys { align-self: center; color: var(--muted); font-size: 13px; text-align: center; }
.from-coach-sys { align-self: flex-start; padding-inline-start: 4px; text-align: start; }
.typing { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 16px; border-end-start-radius: 4px;
          background: var(--surface-2); color: var(--fg-2); font-size: 14px; }
.typing span { margin-inline-end: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: dot 1.2s ease-in-out infinite; }
.typing i:nth-of-type(2) { animation-delay: 0.15s; } .typing i:nth-of-type(3) { animation-delay: 0.3s; }
@keyframes dot { 40% { opacity: 0.25; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; } .wk-msg { transition: none; } }
.archive { margin: 4px 0 0; }
.archive #inbox .inbox-msg { margin: 8px 0; }
.composer { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px;
            margin: 16px -4px 0; padding: 12px 4px max(12px, env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 82%, transparent); }
.ai-note { grid-column: 1 / -1; margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.composer-about { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--fg-2); }
.composer select { min-height: 44px; flex: 1; min-width: 0; padding: 0 12px; border: 1.5px solid var(--field-line); border-radius: 12px;
                   background: var(--field); color: var(--fg); font: inherit; font-weight: 500; }
.composer textarea { min-height: 48px; max-height: 160px; padding: 12px 14px; border: 1.5px solid var(--field-line); border-radius: 16px;
                     background: var(--field); color: var(--fg); font: inherit; resize: none; }
.composer :is(textarea, select):focus { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.composer [aria-invalid=true] { border-color: var(--err); }
.composer-send { min-height: 48px; padding: 0 16px; }
.composer > p { grid-column: 1 / -1; margin: 0; }
@media (max-width: 400px) { .composer-send span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (max-height: 500px) { .composer { position: static; } }
@media (forced-colors: active) { .wk-msg::before, .wk-bub { forced-color-adjust: none; background: CanvasText; } .from-me { border: 1px solid CanvasText; } }

/* UI overhaul 4 (owner: "Can I see previous weeks and workouts"): Previous week / Next week / Back to this week over
   the week; a session gone by says what the daily recorded; Progress's weeks open their week on Home */
.wk-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; }
.wk-pager .btn { min-height: 44px; padding: 0 14px; font-size: 15px; }
.wk-pager .btn:disabled { opacity: 0.45; cursor: default; }        /* fix: never the sending button's progress cursor */
.wk-prev::before, .wk-next::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); }
.wk-next::after { transform: rotate(-135deg); }
[dir=rtl] .wk-prev::before { transform: rotate(-135deg); }
[dir=rtl] .wk-next::after { transform: rotate(45deg); }
.wk-now { margin-inline-start: auto; }
.wk-pager-msg { flex-basis: 100%; margin: 0; color: var(--fg-2); font-size: 15px; }
.wk-pager-msg .link { margin-inline-start: 8px; padding-block: 6px; }
.wk-prev:disabled + .wk-pager-msg, .wk-prev:disabled ~ .wk-pager-msg { color: var(--muted); }
.did { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; width: 100%; margin: 0; color: var(--fg-2); font-size: 15px; }
.did strong { color: var(--fg); }
.weeks li { position: relative; }
.hw-link { color: var(--fg); font-weight: 600; text-decoration: none; }
.hw-link::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }        /* the whole row opens the week */
.hw-link:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.hw-link:focus-visible { outline: none; }
.weeks li:has(.hw-link:focus-visible) { outline: 3px solid var(--accent-ink); outline-offset: 2px; border-radius: 8px; }
.older-chat { display: flex; margin: 16px auto 0; min-height: 44px; }
/* UI overhaul 5: a week still being read holds its place - the week's strip or columns, then its day */
.wk-skel { display: grid; gap: 10px; margin: 10px 0 0; }
.wk-skel .bone.block:first-child { height: 156px; }
@media (max-width: 600px) { .wk-skel .bone.block:first-child { height: 76px; } }
.forgot summary { cursor: pointer; color: var(--accent-ink); width: fit-content; }
.forgot summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.forgot p { margin: 6px 0 0; }
/* Owner 2026-10-09 ("Settings is overwhelming"): Settings in sections - a line each (its title and what is stored),
   one open at a time; the permanent one apart. #26: in the tabs' one column, every line there from the first paint */
.s-sec { padding: 0; margin: 12px 0; }
.s-sec > summary { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 20px; cursor: pointer;
                   list-style: none; border-radius: var(--radius); }
.s-sec > summary::-webkit-details-marker { display: none; }
.s-sec > summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-inline-start: auto; border: solid var(--muted);
                          border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.s-sec[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.s-sec > summary:hover { background: var(--surface-2); }
.s-sec[open] > summary { border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--line); }
.s-head { display: grid; gap: 4px; min-width: 0; }
.doc .s-sec h2 { font-size: 22px; margin: 0; }
.s-sum { color: var(--muted); font-size: 15px; min-height: 1lh; overflow-wrap: anywhere; }   /* #26: its line held; wraps */
#who { min-height: 1lh; }                     /* #26: "Signed in as" fills a line held for it */
.s-body { padding: 8px 20px 24px; }
.s-body > :first-child { margin-top: 12px; }
.s-apart { margin-top: 36px; }
.s-danger { margin-top: 24px; padding-top: 8px; border-top: 1px solid var(--line); }
.s-body #push { margin: 24px 0 0; padding: 20px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0;
                background: none; box-shadow: none; }
.s-body #push h3 { margin: 0 0 6px; }
.nf-view { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 48px; }
.nf-text { font-size: 17px; font-weight: 600; color: var(--fg); overflow-wrap: anywhere; }
.nf-text.hint { font-weight: 400; color: var(--muted); }
.nf-edit .cta-row { margin-top: 12px; }
.nf-edit .btn:disabled, #mw-save:disabled { opacity: 0.45; cursor: not-allowed; }
/* #26: a section unfolds where the browser can animate to its height (else, as under reduced motion, at once) */
@media (prefers-reduced-motion: no-preference) {
  .s-sec { interpolate-size: allow-keywords; }
  .s-sec::details-content { block-size: 0; overflow-y: clip;
                            transition: block-size var(--fast) var(--ease), content-visibility var(--fast) allow-discrete; }
  .s-sec[open]::details-content { block-size: auto; }
  .s-sec > summary::after { transition: transform var(--fast) var(--ease); }
}
/* owner 2026-10-09: the theme picker (Settings > Profile): three pressed-or-not buttons, an icon and a word each */
.theme-q { margin-top: 24px; }                 /* after Units, the form's last question (no margin of its own) */
.theme-seg { margin-top: 4px; }
.theme-seg button { display: inline-flex; align-items: center; gap: 8px; }
.theme-seg svg { flex: none; }
