/* ============================================================
   MOTS Client Shell — Cybernetic Interface System
   Tokens: Cyber Cyan #00f0ff  ·  Laser Crimson #ff003c
   Surface #11141a  ·  Background #060709  ·  Grid #1e293b
   ============================================================ */

*,*::before,*::after { box-sizing:border-box; }

:root {
  --cs-bg:        #060709;
  --cs-surface:   #11141a;
  --cs-border:    #1e293b;
  --cs-cyan:      #00f0ff;
  --cs-crimson:   #ff003c;
  --cs-text:      #ffffff;
  --cs-muted:     #3d4a5c;
  --cs-muted2:    #7a8fa6;
  --cs-gold:      #00f0ff;
  --cs-r:         4px;
  --cs-tabbar-h:  56px;
}

/* ── Background: dot-grid + ambient glow + telemetry tracks ── */
.cs-bg {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.cs-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30,41,59,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,41,59,.22) 1px, transparent 1px);
  background-size: 52px 52px;
}
.cs-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 8%  50%, rgba(0,240,255,.035) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 92% 50%, rgba(255,0,60,.035)  0%, transparent 70%);
}
.cs-track {
  position: absolute; height: 1px;
  transform: rotate(-6deg); transform-origin: left center;
}
.cs-track.c { background: linear-gradient(90deg, transparent, rgba(0,240,255,.16), transparent); }
.cs-track.r { background: linear-gradient(90deg, transparent, rgba(255,0,60,.16),  transparent); }
.cs-t1 { top:15%; inset-inline-start:-5%; width:55%; }
.cs-t2 { top:28%; inset-inline-start: 5%; width:70%; }
.cs-t3 { top:62%; inset-inline-end:-5%; width:55%; transform:rotate(-6deg) scaleX(-1); }
.cs-t4 { top:78%; inset-inline-end: 5%; width:70%; transform:rotate(-6deg) scaleX(-1); }

/* ── Page wrapper (above bg) ── */
.cs-page { position: relative; z-index: 1; }

/* ── Topbar ── */
.cs-topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 28px;
  background: rgba(6,7,9,.92);
  border-bottom: 1px solid var(--cs-border);
  /* A4 exclusion: the brand frame does NOT mirror. Cyan then crimson
     is the wordmark's order and it is the same on every page. */
  border-left:   3px solid var(--cs-cyan);
  border-right:  3px solid var(--cs-crimson);
  backdrop-filter: blur(14px);
  gap: 16px;
}

/* Brand */
/* v18 FIX 3 — the wordmark is the coach's supplied artwork, not letters.
   The height is pinned to 26px, the same box the old Rajdhani wordmark
   occupied at font-size:26px/line-height:1, so the header does not grow.
   width:auto keeps the 824x178 aspect; the intrinsic width/height on the
   <img> reserves the space so nothing reflows while it loads. */

/* Nav links */
.cs-nav { display:flex; align-items:center; gap:2px; flex:1; justify-content:center; }
.cs-nav a {
  color: var(--cs-muted2); font-size: 10px; font-weight: 700;
  text-decoration: none; padding: 5px 12px;
  border: 1px solid transparent; border-radius: var(--cs-r);
  text-transform: uppercase; letter-spacing: .09em;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
}
.cs-nav a:hover  { color: #fff; border-color: var(--cs-border); }
.cs-nav a.active { color: var(--cs-cyan); border-color: rgba(0,240,255,.3); background: rgba(0,240,255,.05); }

/* Right-side user area */
.cs-user-area { display:flex; align-items:center; gap:8px; flex-shrink:0; position:relative; }
/* The language control is shared now (partials/lang_switcher.php) and carries
   its own styles. .cs-lang went with the markup it used to dress. */
.cs-signout {
  color: var(--cs-muted2); font-size: 10px; font-weight: 700; text-decoration: none;
  padding: 5px 11px; border: 1px solid var(--cs-border); border-radius: var(--cs-r);
  text-transform: uppercase; letter-spacing: .08em; transition: all .15s;
}
.cs-signout:hover { color: var(--cs-cyan); border-color: rgba(0,240,255,.3); }

/* ── Content container ── */
.cs-container { max-width: 1060px; margin: 0 auto; padding: 32px 28px 64px; }
.cs-container-md { max-width: 760px; margin: 0 auto; padding: 32px 28px 64px; }

/* ── Page title ── */
.cs-page-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 30px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 4px; line-height: 1.1;
}
.cs-page-sub { color: var(--cs-muted2); font-size: 13px; margin-bottom: 28px; line-height: 1.5; }

/* ── Section headers ── */
.cs-sec {
  display: flex; align-items: center; gap: 10px;
  margin: 28px 0 16px;
}
.cs-sec-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--cs-muted2); white-space: nowrap;
}
.cs-sec-line { flex: 1; height: 1px; background: var(--cs-border); }

/* ── Cards ── */
.cs-card {
  background: var(--cs-surface);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-r);
  position: relative; overflow: hidden;
  transition: border-color .15s;
}
.cs-card::before {
  content: '';
  position: absolute; top: 0; inset-inline: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,240,255,.14), transparent);
  pointer-events: none;
}
.cs-card:hover { border-color: rgba(0,240,255,.26); }

/* ── Form fields ── */
.cs-field { margin-bottom: 14px; }
.cs-label {
  display: block; font-size: 9px; font-weight: 700;
  color: var(--cs-cyan); text-transform: uppercase; letter-spacing: .14em;
  margin-bottom: 6px;
}
.cs-input {
  width: 100%;
  background: rgba(6,7,9,.7); border: 1px solid var(--cs-border);
  border-radius: var(--cs-r); color: var(--cs-text);
  padding: 11px 14px; font-size: 13px; outline: none;
  font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.cs-input:focus {
  border-color: rgba(0,240,255,.45);
  box-shadow: 0 0 0 1px rgba(0,240,255,.08);
}
.cs-input[readonly] { opacity: .55; cursor: not-allowed; }

/* ── Buttons ── */
.cs-btn {
  background: transparent; color: #fff;
  border: 1.5px solid var(--cs-crimson); border-radius: var(--cs-r);
  padding: 10px 22px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s, box-shadow .15s; white-space: nowrap;
}
.cs-btn:hover { background: rgba(255,0,60,.09); box-shadow: 0 0 18px rgba(255,0,60,.3); }
.cs-btn.cs-btn-cyan { border-color: var(--cs-cyan); }
.cs-btn.cs-btn-cyan:hover { background: rgba(0,240,255,.06); box-shadow: 0 0 16px rgba(0,240,255,.2); }
.cs-btn.cs-btn-ghost { border-color: var(--cs-border); color: var(--cs-muted2); }
.cs-btn.cs-btn-ghost:hover { color: #fff; border-color: var(--cs-muted); box-shadow: none; }

/* ── Back link ── */
.cs-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--cs-muted2); font-size: 10px; font-weight: 700;
  text-decoration: none; text-transform: uppercase; letter-spacing: .1em;
  padding: 4px 0; margin-bottom: 20px;
  transition: color .15s;
}
.cs-back:hover { color: var(--cs-cyan); }

/* ── Pills ── */
.cs-pill {
  padding: 3px 8px; border-radius: 3px;
  font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  display: inline-block;
}
.cs-pill-active { background: rgba(0,240,255,.08); color: var(--cs-cyan); border: 1px solid rgba(0,240,255,.22); }
.cs-pill-done   { background: rgba(34,197,94,.1);  color: #22c55e;       border: 1px solid rgba(34,197,94,.22); }
.cs-pill-warn   { background: rgba(255,0,60,.08);  color: var(--cs-crimson); border: 1px solid rgba(255,0,60,.22); }
.cs-pill-gold   { background: rgba(0,240,255,.1);  color: var(--cs-gold);    border: 1px solid rgba(0,240,255,.22); }

/* ── Alert / message banners ── */
.cs-alert {
  padding: 12px 16px; border-radius: var(--cs-r);
  margin-bottom: 16px; font-size: 13px; line-height: 1.6;
}
.cs-alert-ok  { background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.3); color: #22c55e; }
.cs-alert-err { background: rgba(255,0,60,.08);  border: 1px solid rgba(255,0,60,.3);  color: #ff6680; }

/* ── Info row (label/value pairs) ── */
.cs-row { display:flex; padding:9px 0; border-bottom:1px solid var(--cs-border); font-size:13px; }
.cs-row:last-child { border-bottom:0; }
.cs-row-l { color: var(--cs-muted2); flex: 0 0 38%; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding-top:1px; }
.cs-row-v { color: #fff; flex: 1; font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 900px) {
  /* Brand frame again — physical on purpose, see above. */
  /* v18 FIX 2: justify-content:center used to live here. With .cs-nav hidden
     on a phone only the brand and the language control remain, so centring
     collapsed them into a huddle in the middle of the bar — which is exactly
     what the coach saw on his iPhone. The bar must stay space-between at
     every width: logo hard left, switcher hard right. */
  .cs-topbar { padding: 10px 14px; border-left-width: 2px; border-right-width: 2px; justify-content: space-between; }
  .cs-nav { display: none; }
  .cs-container, .cs-container-md { padding: 22px 16px 48px; }
    .cs-signout { display: none; }
  /* The language control STAYS on a phone. Hiding it here is what left a
     client no way to change language on the device most of them use. */
  .mots-lang > summary { min-height: 40px; }
}

/* ── Bottom-bar avatar tab ── */
.cs-tab-av {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,240,255,.07); border: 1.5px solid var(--cs-muted);
  color: var(--cs-muted2);
  font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 700;
  transition: color .15s, border-color .15s, box-shadow .15s;
}
.cs-tabbar a.active .cs-tab-av {
  border-color: var(--cs-cyan); color: var(--cs-cyan);
  background: rgba(0,240,255,.1); box-shadow: 0 0 8px rgba(0,240,255,.35);
}

/* ── Avatar / user dropdown menu ── */
.cs-usermenu { display: none; position: relative; }
.cs-usermenu > summary { list-style: none; cursor: pointer; }
.cs-usermenu > summary::-webkit-details-marker { display: none; }
.cs-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,240,255,.08); border: 1.5px solid rgba(0,240,255,.35);
  color: var(--cs-cyan); font-family: 'Rajdhani', sans-serif;
  font-size: 16px; font-weight: 700;
}
.cs-usermenu-panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 200;
  min-width: 200px; background: #0d1016;
  border: 1px solid var(--cs-border); border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0,0,0,.6); overflow: hidden;
}
.cs-um-head { padding: 13px 15px; border-bottom: 1px solid var(--cs-border); }
.cs-um-name { font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.cs-um-row {
  display: block; padding: 13px 15px; color: #fff; text-decoration: none;
  font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 1px solid var(--cs-border);
}
.cs-um-row:last-child { border-bottom: 0; }
.cs-um-row:active, .cs-um-row:hover { background: rgba(0,240,255,.06); color: var(--cs-cyan); }
.cs-um-out { color: var(--cs-crimson); }
.cs-um-out:hover, .cs-um-out:active { background: rgba(255,0,60,.08); color: var(--cs-crimson); }

/* The Profile page uses the same shared control as every other page. */

/* ── Mobile bottom tab bar ── */
.cs-tabbar { display: none; }

@media (max-width: 900px) {
  .cs-tabbar {
    display: flex;
    position: fixed; inset-inline: 0; bottom: 0; z-index: 120;
    height: calc(var(--cs-tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(6,7,9,.96);
    border-top: 1px solid var(--cs-border);
    backdrop-filter: blur(14px);
  }
  .cs-tabbar a {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--cs-muted2);
    border-top: 2px solid transparent;
    transition: color .15s, border-color .15s, background .15s;
  }
  .cs-tabbar a.active {
    color: var(--cs-cyan);
    border-top-color: var(--cs-cyan);
    background: rgba(0,240,255,.05);
  }
  .cs-tab-dot { width:4px; height:4px; border-radius:50%; background:currentColor; opacity:.5; }
  .cs-tabbar a.active .cs-tab-dot { opacity:1; box-shadow:0 0 8px var(--cs-cyan); }

  /* keep page content clear of the bar */
  .cs-container, .cs-container-md, body .container {
    padding-bottom: calc(var(--cs-tabbar-h) + env(safe-area-inset-bottom, 0px) + 24px);
  }
}


/* ── A4: things that must NOT mirror ──────────────────────────────────
   direction:ltr freezes the internal order; unicode-bidi:isolate stops
   the surrounding Arabic from dragging the whole run around. Use it on
   compound numbers (1 / 2, 3 × 8, 60 kg, 12 Aug 2026), on Latin brand
   text, and on anything drawn rather than written.

   This is the opposite of an arrow: see motsArrowFwd() in
   lib/lang_store.php for the things that MUST mirror. */
.mots-ltr { direction: ltr; unicode-bidi: isolate; }
/* Tier badge is Latin (PLUS / PRO) — never reorder or re-case it. */

/* A4: content sequences and interval numbers are frozen, not flipped.
   "40s HARD → 20s", "80 kg → 60 kg", "BASE → BUILD → PEAK" and the
   superset connector describe an order that does not depend on the
   reading direction. Navigation arrows are the opposite case and go
   through motsArrowFwd() instead. */
.cardio-timer-badge, .c-arrow, .term-name { direction: ltr; unicode-bidi: isolate; }
/* .term-ex was frozen here until v16. It now carries the client's own
   prose around the Latin notation, so it follows the page direction and
   the bidi algorithm keeps each number group intact on its own. */

/* ═══ Arabic typography ═══════════════════════════════════════════════
   The letter-spaced uppercase look is the identity of these pages in
   English and French and must not be touched there. In Arabic both are
   actively wrong:
     • letter-spacing physically severs the joins between letters, so a
       cursive word stops looking like a word;
     • text-transform has no effect at all — Arabic has no letter case.

   Scoped to :lang(ar) so nothing outside Arabic can be reached. This is
   ONE rule instead of 137 individual overrides; !important is what lets
   it beat the per-component declarations and the style= attributes
   without editing any of them. */
:lang(ar), :lang(ar) *, [dir="rtl"] :lang(ar) * {
  letter-spacing: normal !important;
  text-transform: none !important;
}
/* The wordmark and the tier badge are Latin even on an Arabic page, so
   they keep their spacing. The values are restated rather than reverted:
   `revert` in an author rule goes back to the browser default, not to
   the rule above, which silently made this exception do nothing. */

/* ═══ v17 FIX 4 — the header bar is PINNED left-to-right ═════════════
   The MOTS logo is always at the far left and the language control at
   the far right, in every language including Arabic. Only this bar is
   pinned; everything below it still mirrors normally.


   The lockup is a single image now, so there are no letter spans left
   to reorder; this keeps the BAR from mirroring. */
.cs-topbar { direction: ltr; }
/* The dropdown's own menu still reads in the visitor's language. */
.cs-topbar .mots-lang-menu { direction: inherit; }
html[dir="rtl"] .cs-topbar .mots-lang-menu { direction: rtl; }

/* ── v47 — the notification bell ─────────────────────────────────────────
   Sits inside .cs-user-area, before the language switcher. Everything here
   is logical (inset-inline, margin-inline), so the panel opens under the
   bell and hangs toward the centre of the bar in BOTH directions — it
   mirrors, it is not merely translated.
   Measured before it was built: at 360px the bar has 166–168px free once
   the brand (102px) and switcher (47px) are placed, and .cs-nav
   and .cs-signout are display:none below 900px, and the name and tier
   chip were removed outright in v48. This needs 44px. */
.cs-bell { flex-shrink: 0; }
.cs-bell > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; width: 36px; height: 36px; border-radius: 6px;
  border: 1px solid transparent; color: var(--cs-muted2);
  transition: color .15s, border-color .15s, background .15s;
}
.cs-bell > summary::-webkit-details-marker { display: none; }
.cs-bell > summary:hover,
.cs-bell[open] > summary { color: #fff; border-color: rgba(0,240,255,.3); background: rgba(0,240,255,.06); }
.cs-bell > summary:focus-visible { outline: 2px solid var(--cs-cyan); outline-offset: 2px; }
.cs-bell-ic { font-size: 16px; line-height: 1; }
.cs-bell-n {
  position: absolute; inset-block-start: 2px; inset-inline-end: 2px;
  min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px;
  background: var(--cs-crimson); color: #fff;
  font-family: 'Rajdhani', sans-serif; font-size: 9.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  /* A count is a number in any language: never mirrored, never spaced. */
  direction: ltr; unicode-bidi: isolate; letter-spacing: normal; text-transform: none;
}
.cs-bell-panel {
  position: absolute; z-index: 95;
  inset-block-start: calc(100% + 8px); inset-inline-end: 0;
  width: min(310px, calc(100vw - 28px));
  max-height: 70vh; overflow-y: auto; overscroll-behavior: contain;
  background: #0b1118; border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.55);
}
.cs-bell-hd {
  padding: 11px 14px; border-block-end: 1px solid rgba(255,255,255,.08);
  font-family: 'Rajdhani', sans-serif; font-size: 12px; font-weight: 700;
  color: var(--cs-muted2); letter-spacing: .1em; text-transform: uppercase;
}
.cs-bell-empty { padding: 20px 14px; font-size: 12.5px; color: var(--cs-muted); line-height: 1.75; }
.cs-bell-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-block-end: 1px solid rgba(255,255,255,.05);
  color: inherit; text-decoration: none;
}
a.cs-bell-row:hover { background: rgba(255,255,255,.04); }
.cs-bell-row:last-child { border-block-end: 0; }
.cs-bell-ic2 { flex-shrink: 0; font-size: 15px; line-height: 1.4; }
.cs-bell-tx { min-width: 0; }
.cs-bell-t { display: block; font-size: 12.5px; font-weight: 700; color: #e8eef3; margin-block-end: 2px; }
.cs-bell-b { display: block; font-size: 11.5px; color: var(--cs-muted2); }
/* Arabic is cursive: never letter-spaced, never re-cased, and it needs the
   taller leading the rest of the client shell uses. */
.cs-bell-t, .cs-bell-b, .cs-bell-empty { letter-spacing: normal; text-transform: none; line-height: 1.75; }
/* A dot, not a colour change — colour alone is not a signal everyone gets. */
.cs-bell-row.is-new { position: relative; }
.cs-bell-row.is-new::before {
  content: ''; position: absolute; inset-inline-start: 5px; inset-block-start: 17px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--cs-cyan);
}
.cs-bell-row.is-sticky::before { background: var(--cs-crimson); }
@media (max-width: 430px) {
  .cs-bell > summary { width: 34px; height: 34px; }
  .cs-bell-panel { width: calc(100vw - 24px); }
}


/* ══════════════════════════════════════════════════════════════════
   v78 — LIGHT MODE (clients asked for it: "only black, we don't like it")
   html[data-theme="light"] is set by the switch in partials/client_topbar.php
   from the phone's own setting, or from the client's choice once he taps
   the ☀/☾ button. Dark stays exactly as it was: nothing below applies
   unless data-theme is "light".
   ══════════════════════════════════════════════════════════════════ */
html[data-theme="light"] {
  color-scheme: light;
  --cs-bg:      #f2f4f7;
  --cs-surface: #ffffff;
  --cs-border:  #d5dce5;
  --cs-cyan:    #0b7285;   /* the brand cyan, deep enough to read on white */
  --cs-crimson: #d6123f;
  --cs-text:    #0f172a;
  --cs-muted:   #64748b;
  --cs-muted2:  #475569;
  --cs-gold:    #0b7285;
}
html[data-theme="light"] body { background: var(--cs-bg) !important; color: var(--cs-text) !important; }
html[data-theme="light"] .cs-bg::before {
  background-image:
    linear-gradient(rgba(15,23,42,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.045) 1px, transparent 1px);
}
html[data-theme="light"] .cs-bg::after { opacity: .5; }

/* the theme switch itself */
.cs-theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border-radius: 8px;
  border: 1px solid var(--cs-border); background: transparent; color: var(--cs-muted2);
  cursor: pointer; flex: 0 0 auto;
}
.cs-theme-btn:hover { color: var(--cs-cyan); border-color: var(--cs-cyan); }
.cs-theme-btn svg { width: 18px; height: 18px; }
.cs-theme-btn .ic-sun { display: none; }
html[data-theme="light"] .cs-theme-btn .ic-sun { display: block; }
html[data-theme="light"] .cs-theme-btn .ic-moon { display: none; }

/* v78-light:auto:begin */
/* GENERATED by tools/gen_light_css.py from the client pages. Do not edit by hand —
   change the page, then re-run the generator. Light mode only. */
html[data-theme="light"] .cs-bg::before { background-image:linear-gradient(rgba(255,255,255,0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.22) 1px, transparent 1px) !important; }
html[data-theme="light"] .cs-topbar { background:#ffffff !important; }
html[data-theme="light"] .cs-nav a:hover { color:var(--cs-text) !important; }
html[data-theme="light"] .cs-input { background:rgba(15,23,42,0.045) !important; }
html[data-theme="light"] .cs-btn { color:var(--cs-text) !important; }
html[data-theme="light"] .cs-btn.cs-btn-ghost:hover { color:var(--cs-text) !important; }
html[data-theme="light"] .cs-pill-done { color:#1c8d45 !important; }
html[data-theme="light"] .cs-alert-ok { color:#1c8d45 !important; }
html[data-theme="light"] .cs-alert-err { color:#a4041f !important; }
html[data-theme="light"] .cs-row-v { color:var(--cs-text) !important; }
html[data-theme="light"] .cs-usermenu-panel { background:#ffffff !important; }
html[data-theme="light"] .cs-um-row { color:var(--cs-text) !important; }
@media (max-width: 900px) { html[data-theme="light"] .cs-tabbar { background:#ffffff !important; } }
html[data-theme="light"] .cs-bell > summary:hover, html[data-theme="light"] .cs-bell[open] > summary { color:var(--cs-text) !important; }
html[data-theme="light"] .cs-bell-n { color:var(--cs-text) !important; }
html[data-theme="light"] .cs-bell-panel { background:#ffffff !important; border:1px solid rgba(15,23,42,0.180) !important; }
html[data-theme="light"] a.cs-bell-row:hover { background:rgba(15,23,42,0.048) !important; }
html[data-theme="light"] .cs-bell-t { color:var(--cs-text) !important; }
html[data-theme="light"] body { color:var(--cs-text) !important; }
html[data-theme="light"] .pl-card p { color:var(--cs-muted2) !important; }
html[data-theme="light"] .pl-btn-outline { color:var(--cs-text) !important; }
html[data-theme="light"] .cycle-group-label { color:var(--cs-cyan) !important; }
html[data-theme="light"] .week-tab:hover { color:var(--cs-text) !important; }
html[data-theme="light"] .wm-dot.rest { background:#ffffff !important; border:1px solid var(--cs-border) !important; }
html[data-theme="light"] .wm-warning { background:#ffe5ed !important; color:#a0091e !important; }
html[data-theme="light"] .dr-badge { color:#300b9d !important; }
html[data-theme="light"] .daily-routine-card h3 { color:#300b9d !important; }
html[data-theme="light"] .dr-section-title { color:#300b9d !important; }
html[data-theme="light"] .dr-ex { border-bottom:1px solid rgba(15,23,42,0.080) !important; }
html[data-theme="light"] .dr-ex-name { color:var(--cs-text) !important; }
html[data-theme="light"] .dr-ex-cues { color:var(--cs-muted2) !important; }
html[data-theme="light"] .ex-table td.note-cell { color:var(--cs-muted2) !important; }
@media (max-width: 640px) { html[data-theme="light"] .ex-table tr.ex-row { background:rgba(15,23,42,0.020) !important; } }
@media (max-width: 640px) { html[data-theme="light"] .ex-table td.note-cell { border-top:1px dashed rgba(15,23,42,0.140) !important; } }
html[data-theme="light"] .cues { background:rgba(15,23,42,0.045) !important; color:var(--cs-muted2) !important; }
html[data-theme="light"] .combo-block { background:rgba(15,23,42,0.040) !important; }
html[data-theme="light"] .combo-seq { color:var(--cs-text) !important; }
html[data-theme="light"] .cond-note-panel .cond-notes-text { color:var(--cs-text) !important; }
html[data-theme="light"] .cond-banner .cb-text h4 { color:#1c8d45 !important; }
html[data-theme="light"] .cond-banner .cb-text p { color:var(--cs-muted2) !important; }
html[data-theme="light"] .drill-card { background:#ffffff !important; }
html[data-theme="light"] .drill-name { color:var(--cs-text) !important; }
html[data-theme="light"] .drill-badge { color:#1c8d45 !important; }
html[data-theme="light"] .drill-desc { color:var(--cs-muted2) !important; }
html[data-theme="light"] .drill-cues { color:var(--cs-muted2) !important; background:rgba(15,23,42,0.024) !important; }
html[data-theme="light"] .session-total-bar { color:#a0091e !important; }
html[data-theme="light"] .st-notes { background:rgba(15,23,42,0.020) !important; }
html[data-theme="light"] .sn-val { color:var(--cs-text) !important; }
html[data-theme="light"] .sn-target { color:#a0091e !important; }
html[data-theme="light"] .sn-line { color:var(--cs-muted2) !important; }
html[data-theme="light"] .prog-mix { background:rgba(15,23,42,0.020) !important; }
html[data-theme="light"] .pm-label { color:#a0091e !important; }
html[data-theme="light"] .pm-body { color:var(--cs-muted2) !important; }
html[data-theme="light"] .pm-body strong { color:var(--cs-text) !important; }
html[data-theme="light"] .gcond-note-panel p { color:var(--cs-muted2) !important; }
html[data-theme="light"] .gcond-format-hint { background:rgba(15,23,42,0.020) !important; }
html[data-theme="light"] .gcond-ex-hdr { background:rgba(15,23,42,0.020) !important; }
html[data-theme="light"] .cardio-step-text { color:var(--cs-muted2) !important; }
html[data-theme="light"] .cardio-step-text strong { color:var(--cs-text) !important; }
html[data-theme="light"] .cardio-timer-badge { color:var(--cs-cyan) !important; }
html[data-theme="light"] .paywall .btn { color:var(--cs-text) !important; }
html[data-theme="light"] .dl-full-btn { color:var(--cs-cyan) !important; }
html[data-theme="light"] .rp-bar { background:rgba(15,23,42,0.080) !important; }
html[data-theme="light"] .roadmap-card { background:rgba(15,23,42,0.020) !important; }
html[data-theme="light"] .rc-done   .rc-header { color:#1c8d45 !important; }
html[data-theme="light"] .rc-phase { color:var(--cs-muted2) !important; }
html[data-theme="light"] .rc-active .rc-phase { color:var(--cs-text) !important; }
html[data-theme="light"] .rc-seg { background:rgba(15,23,42,0.080) !important; }
html[data-theme="light"] .rc-completed-label { color:#1c8d45 !important; }
html[data-theme="light"] .rc-dl-btn { color:var(--cs-cyan) !important; }
html[data-theme="light"] .pc-banner-msg { color:var(--cs-muted2) !important; }
html[data-theme="light"] .pc-banner-btn { color:var(--cs-text) !important; }
html[data-theme="light"] .phchip { background:rgba(15,23,42,0.048) !important; }
@media (max-width: 640px) { html[data-theme="light"] .ex-table td.muted { color:var(--cs-muted2) !important; } }
@media (max-width: 640px) { html[data-theme="light"] .ex-table td.note-cell { color:var(--cs-text) !important; } }
html[data-theme="light"] .wm-tips > summary { color:#a45b04 !important; }
html[data-theme="light"] .wm-t-cardio, html[data-theme="light"] .wm-t-conditioning { color:#a0091e !important; }
html[data-theme="light"] .wm-t-technical { color:#300b9d !important; }
html[data-theme="light"] .fm-player { background:#ffffff !important; }
html[data-theme="light"] .fm-player video { background:#ffffff !important; }
html[data-theme="light"] .circ-badge { color:#a48904 !important; }
html[data-theme="light"] .cd-kicker { color:#a0091e !important; }
html[data-theme="light"] .cd-phase.is-peak { color:#a0091e !important; }
html[data-theme="light"] .cd-phase.is-deload { color:#1c8d45 !important; }
html[data-theme="light"] .cm-li { background:rgba(15,23,42,0.020) !important; }
html[data-theme="light"] .cm-rec { color:#1c8d45 !important; }
html[data-theme="light"] .cm-main { background:rgba(15,23,42,0.022) !important; }
html[data-theme="light"] .cs-card .cd-kicker { color:#300b9d !important; }
html[data-theme="light"] .hero-strip { background:rgba(15,23,42,0.045) !important; }
html[data-theme="light"] .prog-card { color:var(--cs-text) !important; }
html[data-theme="light"] .prog-card.cond .pc-icon { color:#1c8d45 !important; }
html[data-theme="light"] .status-completed { color:#098aa0 !important; }
html[data-theme="light"] .cond-badge { color:#1c8d45 !important; }
html[data-theme="light"] .empty h3 { color:var(--cs-muted2) !important; }
html[data-theme="light"] .quick-card { color:var(--cs-text) !important; }
html[data-theme="light"] .dl-btn { color:var(--cs-cyan) !important; }
html[data-theme="light"] .history-card { background:rgba(15,23,42,0.030) !important; border:1px solid rgba(15,23,42,0.140) !important; }
html[data-theme="light"] .history-card:hover { border-color:rgba(15,23,42,0.180) !important; }
html[data-theme="light"] .history-icon { background:rgba(15,23,42,0.060) !important; border:1px solid rgba(15,23,42,0.180) !important; }
html[data-theme="light"] .history-name { color:var(--cs-muted2) !important; }
html[data-theme="light"] .history-dl-btn { color:var(--cs-cyan) !important; }
html[data-theme="light"] .history-dl-btn:hover { color:var(--cs-cyan) !important; }
html[data-theme="light"] .tsp-combonote { color:var(--cs-muted2) !important; }
html[data-theme="light"] .cta-btn { color:var(--cs-text) !important; }
html[data-theme="light"] .sched-notify { background:rgba(15,23,42,0.024) !important; }
html[data-theme="light"] .sched-title { color:var(--cs-text) !important; }
html[data-theme="light"] .sched-msg bdi { color:var(--cs-text) !important; }
html[data-theme="light"] .pc-notify-title { color:var(--cs-cyan) !important; }
html[data-theme="light"] .pc-notify-msg { color:var(--cs-muted2) !important; }
html[data-theme="light"] .pc-notify-btn { color:var(--cs-text) !important; }
html[data-theme="light"] .pc-flash { color:#1c8d45 !important; }
html[data-theme="light"] .renew-warn-title { color:#a44304 !important; }
html[data-theme="light"] .renew-warn-msg { color:var(--cs-muted2) !important; }
html[data-theme="light"] .renew-warn-btn { color:var(--cs-text) !important; }
html[data-theme="light"] .hchip { background:rgba(15,23,42,0.048) !important; }
html[data-theme="light"] .nsc { color:var(--cs-text) !important; }
html[data-theme="light"] .jrny-bar { background:rgba(15,23,42,0.060) !important; }
html[data-theme="light"] .ring-track { stroke:var(--cs-text) !important; }
html[data-theme="light"] .ring-fill.is-building { stroke:var(--cs-cyan) !important; }
html[data-theme="light"] .ring-fill.is-strong { stroke:#1c8d45 !important; }
html[data-theme="light"] .ring-tick { stroke:var(--cs-text) !important; }
html[data-theme="light"] .ring-x { color:var(--cs-text) !important; }
html[data-theme="light"] .ring-badge.is-building { background:rgba(15,23,42,0.048) !important; }
html[data-theme="light"] .ring-badge.is-strong { color:#1c8d45 !important; }
html[data-theme="light"] .ring-band { stroke:#9d750b !important; }
html[data-theme="light"] .ring-dot { fill:#a17607 !important; }
html[data-theme="light"] .ring.ring-ref .ring-lift { color:#a17607 !important; }
html[data-theme="light"] .ring-badge.is-reference { color:#a17607 !important; }
html[data-theme="light"] .rings-empty { color:var(--cs-text) !important; }
html[data-theme="light"] .hrr-fill.is-building { stroke:#a0091e !important; }
html[data-theme="light"] .hrr-fill.is-fair { stroke:#a0091e !important; }
html[data-theme="light"] .hrr-fill.is-excellent { stroke:#1c8d45 !important; }
html[data-theme="light"] .ring-badge.is-fair { color:#a0091e !important; }
html[data-theme="light"] .ring-badge.is-excellent { color:#1c8d45 !important; }
html[data-theme="light"] .cl-now { color:var(--cs-text) !important; }
html[data-theme="light"] .ring-fill.lift-squat.is-building { stroke:var(--cs-cyan) !important; }
html[data-theme="light"] .ring-fill.lift-deadlift { stroke:#300b9d !important; }
html[data-theme="light"] .ring-fill.lift-deadlift.is-building { stroke:#300b9d !important; }
html[data-theme="light"] .ring.lift-deadlift .ring-lift { color:#300b9d !important; }
html[data-theme="light"] .hrr-fill.is-good { stroke:#639216 !important; }
html[data-theme="light"] .hrr-fill.is-excellent { stroke:#639216 !important; }
html[data-theme="light"] .cardio-ring .ring-lift { color:#639216 !important; }
html[data-theme="light"] .cardio-line .cl-path { stroke:#639216 !important; }
html[data-theme="light"] .cardio-line .cl-dot { stroke:#639216 !important; }
html[data-theme="light"] .cardio-line .cl-dot.is-last { fill:#639216 !important; }
html[data-theme="light"] .cardio-line .cl-now { color:#639216 !important; }
html[data-theme="light"] { --border-soft:var(--cs-border); --text:var(--cs-text); }
html[data-theme="light"] .msg audio, html[data-theme="light"] .msg video { background:#ffffff !important; }
html[data-theme="light"] .checkin-msg { background:linear-gradient(135deg, #e5ffff, rgba(255,255,255,1.00)) !important; }
html[data-theme="light"] .cs-scales .it { background:#ffffff !important; }
html[data-theme="light"] .cs-q .v { color:var(--cs-muted2) !important; }
html[data-theme="light"] .composer { background:#ffffff !important; }
html[data-theme="light"] .composer .btn:hover { background:#ffffff !important; }
html[data-theme="light"] .composer .btn.recording { color:var(--cs-text) !important; }
html[data-theme="light"] .btn-action { color:var(--cs-text) !important; }
html[data-theme="light"] .btn-ghost:hover { color:var(--cs-text) !important; }
html[data-theme="light"] .plus-menu { background:#ffffff !important; }
html[data-theme="light"] .plus-menu button { color:var(--cs-text) !important; }
html[data-theme="light"] .safety-row { color:var(--cs-text) !important; }
html[data-theme="light"] .safety-row:hover { background:rgba(15,23,42,0.036) !important; }
html[data-theme="light"] .safety-row.danger:hover { color:var(--cs-text) !important; }
html[data-theme="light"] .file-card { background:rgba(15,23,42,0.020) !important; border:1px solid rgba(15,23,42,0.180) !important; }
html[data-theme="light"] .term-def { color:var(--cs-muted2) !important; }
html[data-theme="light"] .term-ex b { color:var(--cs-muted2) !important; }
html[data-theme="light"] { --text:var(--cs-text); }
html[data-theme="light"] .field input, html[data-theme="light"] .field textarea, html[data-theme="light"] .field select { background:rgba(15,23,42,0.045) !important; }
html[data-theme="light"] .test .instr { color:var(--cs-muted2) !important; }
html[data-theme="light"] .dropzone { background:rgba(15,23,42,0.045) !important; }
html[data-theme="light"] .review-row .v { color:var(--cs-text) !important; }
html[data-theme="light"] .review-video { background:rgba(15,23,42,0.045) !important; }
html[data-theme="light"] .btn-primary { color:var(--cs-text) !important; }
html[data-theme="light"] body { background:#ffffff !important; color:var(--cs-text) !important; }
html[data-theme="light"] .logo span { color:var(--cs-cyan) !important; }
html[data-theme="light"] .card { background:#ffffff !important; border:1px solid var(--cs-border) !important; }
html[data-theme="light"] .subtitle { color:var(--cs-muted2) !important; }
html[data-theme="light"] .q-label { color:var(--cs-text) !important; }
html[data-theme="light"] .q-sub { color:var(--cs-muted2) !important; }
html[data-theme="light"] .r-opt label { background:#ffffff !important; border:1px solid var(--cs-border) !important; color:var(--cs-muted2) !important; }
html[data-theme="light"] .r-opt input:checked + label { color:var(--cs-cyan) !important; }
html[data-theme="light"] .r-opt label:hover { border-color:var(--cs-border) !important; }
html[data-theme="light"] .c-opt label { background:#ffffff !important; border:1px solid var(--cs-border) !important; color:var(--cs-muted2) !important; }
html[data-theme="light"] .c-opt input:checked + label { color:var(--cs-cyan) !important; }
html[data-theme="light"] .c-opt label:hover { color:var(--cs-text) !important; }
html[data-theme="light"] .c-opt.danger input:checked + label { color:#9d0c0c !important; }
html[data-theme="light"] .c-opt.none-opt input:checked + label { color:#1d8b45 !important; }
html[data-theme="light"] input[type=text], html[data-theme="light"] input[type=number], html[data-theme="light"] input[type=date] { background:#ffffff !important; border:1px solid var(--cs-border) !important; color:var(--cs-text) !important; }
html[data-theme="light"] .range-val { color:var(--cs-cyan) !important; }
html[data-theme="light"] .priority-limit.warn { color:var(--cs-cyan) !important; }
html[data-theme="light"] .test { background:#ffffff !important; border:1px solid var(--cs-border) !important; }
html[data-theme="light"] .dropzone { border:2px dashed var(--cs-border) !important; }
html[data-theme="light"] .dropzone .ok-text { color:#1c8d45 !important; }
html[data-theme="light"] .progress-bar { background:#ffffff !important; }
html[data-theme="light"] .errors { color:#9f0909 !important; }
html[data-theme="light"] .paid-plan { color:var(--cs-cyan) !important; }
html[data-theme="light"] .divider { background:#ffffff !important; }
html[data-theme="light"] .renewal-badge { color:var(--cs-cyan) !important; }
html[data-theme="light"] .wm-guidance ul { color:var(--cs-muted2) !important; }
html[data-theme="light"] .wm-guidance strong { color:var(--cs-text) !important; }
html[data-theme="light"] .wml-hard { color:#a0091e !important; }
html[data-theme="light"] .wml-tech { color:#1c8d45 !important; }
html[data-theme="light"] .wml-str { color:var(--cs-cyan) !important; }
html[data-theme="light"] .wml-rest { border:1px solid rgba(15,23,42,0.180) !important; }
html[data-theme="light"] .wm-row { border-bottom:1px solid rgba(15,23,42,0.080) !important; }
html[data-theme="light"] .wm-chip:hover:not(.wm-on) { border-color:rgba(15,23,42,0.180) !important; }
html[data-theme="light"] .wm-hard.wm-on { color:#a0091e !important; }
html[data-theme="light"] .wm-tech.wm-on { color:#1c8d45 !important; }
html[data-theme="light"] .wm-str.wm-on { color:var(--cs-cyan) !important; }
html[data-theme="light"] .wm-rest-label { color:var(--cs-text) !important; }
html[data-theme="light"] .btn-gold { color:var(--cs-text) !important; }
html[data-theme="light"] .renew-badge { color:var(--cs-cyan) !important; }
html[data-theme="light"] .back-link:hover { color:var(--cs-muted2) !important; }
html[data-theme="light"] .info-card { background:#ffffff !important; border:1px solid var(--cs-border) !important; }
html[data-theme="light"] .info-date { color:var(--cs-cyan) !important; }
html[data-theme="light"] .info-divider { background:#ffffff !important; }
html[data-theme="light"] .wm-guidance h4 { color:var(--cs-cyan,var(--cs-cyan)) !important; }
html[data-theme="light"] .wm-chip { border:1.5px solid var(--border,var(--cs-border)) !important; }
html[data-theme="light"] .mots-lang > summary { border:1px solid rgba(15,23,42,0.180) !important; background:rgba(15,23,42,0.048) !important; color:var(--cs-text) !important; }
html[data-theme="light"] .mots-lang > summary:hover, html[data-theme="light"] .mots-lang[open] > summary { color:var(--cs-text) !important; }
html[data-theme="light"] .mots-lang-menu { background:#ffffff !important; border:1px solid rgba(15,23,42,0.180) !important; }
html[data-theme="light"] .mots-lang-menu a { color:var(--cs-text) !important; }
html[data-theme="light"] .mots-lang-menu a:hover, html[data-theme="light"] .mots-lang-menu a:focus-visible { background:rgba(15,23,42,0.080) !important; color:var(--cs-text) !important; }
html[data-theme="light"] .mots-lang-menu a.active { color:var(--cs-cyan, var(--cyan, var(--cs-cyan))) !important; }
html[data-theme="light"] [style*="background:#000"]:not(#vplayer):not(#vplayer *) { background:#ffffff !important; }
html[data-theme="light"] [style*="background:#0a0a0a"]:not(#vplayer):not(#vplayer *) { background:#ffffff !important; }
html[data-theme="light"] [style*="background:#0d0008"]:not(#vplayer):not(#vplayer *) { background:#ffe5f5 !important; }
html[data-theme="light"] [style*="background:#0e0e0e"]:not(#vplayer):not(#vplayer *) { background:#ffffff !important; }
html[data-theme="light"] [style*="background:#1a0008"]:not(#vplayer):not(#vplayer *) { background:#ffe5ed !important; }
html[data-theme="light"] [style*="background:#1e1e1e"]:not(#vplayer):not(#vplayer *) { background:#ffffff !important; }
html[data-theme="light"] [style*="background:rgba(0,0,0,.18)"]:not(#vplayer):not(#vplayer *) { background:rgba(15,23,42,0.020) !important; }
html[data-theme="light"] [style*="background:rgba(0,0,0,.95)"]:not(#vplayer):not(#vplayer *) { background:#ffffff !important; }
html[data-theme="light"] [style*="background:rgba(6,7,9,.9)"]:not(#vplayer):not(#vplayer *) { background:#ffffff !important; }
html[data-theme="light"] [style*="border:1px solid #2a2a2a"]:not(#vplayer):not(#vplayer *) { border:1px solid var(--cs-border) !important; }
html[data-theme="light"] [style*="border:1px solid #333"]:not(#vplayer):not(#vplayer *) { border:1px solid var(--cs-border) !important; }
html[data-theme="light"] [style*="border:1px solid #444"]:not(#vplayer):not(#vplayer *) { border:1px solid var(--cs-border) !important; }
html[data-theme="light"] [style*="border:1px solid rgba(255,255,255,.05)"]:not(#vplayer):not(#vplayer *) { border:1px solid rgba(15,23,42,0.100) !important; }
html[data-theme="light"] [style*="border-left:3px solid #333"]:not(#vplayer):not(#vplayer *) { border-left:3px solid var(--cs-border) !important; }
html[data-theme="light"] [style*="color:#00f0ff"]:not(#vplayer):not(#vplayer *) { color:var(--cs-cyan) !important; }
html[data-theme="light"] [style*="color:#06b6d4"]:not(#vplayer):not(#vplayer *) { color:#098aa0 !important; }
html[data-theme="light"] [style*="color:#22c55e"]:not(#vplayer):not(#vplayer *) { color:#1c8d45 !important; }
html[data-theme="light"] [style*="color:#888"]:not(#vplayer):not(#vplayer *) { color:var(--cs-muted2) !important; }
html[data-theme="light"] [style*="color:#999"]:not(#vplayer):not(#vplayer *) { color:var(--cs-muted2) !important; }
html[data-theme="light"] [style*="color:#a78bfa"]:not(#vplayer):not(#vplayer *) { color:#300b9d !important; }
html[data-theme="light"] [style*="color:#c8d2dc"]:not(#vplayer):not(#vplayer *) { color:var(--cs-muted2) !important; }
html[data-theme="light"] [style*="color:#ccc"]:not(#vplayer):not(#vplayer *) { color:var(--cs-muted2) !important; }
html[data-theme="light"] [style*="color:#ddd"]:not(#vplayer):not(#vplayer *) { color:var(--cs-text) !important; }
html[data-theme="light"] [style*="color:#fb7185"]:not(#vplayer):not(#vplayer *) { color:#a0091e !important; }
html[data-theme="light"] [style*="color:#fff"]:not(#vplayer):not(#vplayer *) { color:var(--cs-text) !important; }
html[data-theme="light"] [style*="color:rgba(251,113,133,.6)"]:not(#vplayer):not(#vplayer *) { color:#a0091e !important; }
/* v78-light:auto:end */

/* ── v80 — light mode, by hand (after the generated block, so it wins) ── */
/* The header and the phone tab bar follow the theme, with the dark-letter logo. */
.brand .brand-mark--light { display: none; }
html[data-theme="light"] .brand .brand-mark--dark  { display: none; }
html[data-theme="light"] .brand .brand-mark--light { display: block; }
html[data-theme="light"] .cs-topbar {
  background: rgba(255,255,255,.94) !important;
  border-bottom-color: var(--cs-border) !important;
  box-shadow: 0 1px 0 rgba(15,23,42,.04), 0 4px 14px rgba(15,23,42,.05);
}
html[data-theme="light"] .cs-tabbar {
  background: rgba(255,255,255,.97) !important;
  border-top-color: var(--cs-border) !important;
  box-shadow: 0 -4px 14px rgba(15,23,42,.06);
}
html[data-theme="light"] .cs-tabbar a.active { background: rgba(11,114,133,.07) !important; }
html[data-theme="light"] .cs-tabbar a.active .cs-tab-dot { box-shadow: none; }
html[data-theme="light"] input[type=range] { accent-color: var(--cs-cyan); }
/* menus that drop from the header: a soft shadow, not the heavy dark one */
html[data-theme="light"] .cs-bell-panel,
html[data-theme="light"] .mots-lang-menu { box-shadow: 0 10px 28px rgba(15,23,42,.14) !important; }
/* the dashboard's stats strip: a white veil over the hero, not a grey band */
html[data-theme="light"] .hero-strip { background: rgba(255,255,255,.72) !important; }
/* the dashboard photo: on white, a dark photo at low opacity turns into a
   dirty grey wash. In light mode it becomes a faint cool-toned print instead. */
html[data-theme="light"] .hero-photo img {
  opacity: .16 !important;
  filter: grayscale(1) contrast(.9) brightness(1.15) !important;
  mix-blend-mode: multiply;
}

/* ══════════════════════════════════════════════════════════════════
   v81 — READABILITY (clients: "the text is too small, we can't see it")
   Labels never under 12px, running text never under 14px (generated
   block below), Rajdhani only for big titles and numbers, Arabic in
   IBM Plex Sans Arabic (assets/css/fonts.css).
   ══════════════════════════════════════════════════════════════════ */
/* dark mode: secondary labels were #3d4a5c on #060709 — about 2:1. */
:root { --cs-muted: #6b7a8f; }
html[data-theme="light"] { --cs-muted: #64748b; }
/* Arabic reads best a touch taller; Plex is metrically close to Inter. */
html[lang="ar"] body { line-height: 1.6; }
/* a long section title wraps instead of pushing the page sideways (glossary, FR, 360px) */
.cs-sec-label { white-space: normal; min-width: 0; }
/* a long one-word title (D'ENTRAÎNEMENT) scales with the screen instead of running off it */
.cs-page-title { font-size: clamp(22px, 7.5vw, 30px); overflow-wrap: break-word; }
/* program cards: the five metric labels sit in fixed 1/5 columns — plain case,
   no tracking, so CHARGE / TEMPO / REPOS fit whole at 12px on a 360px phone */
@media (max-width: 640px) {
  html body .ex-table td[data-m]::before { text-transform: none; letter-spacing: 0; font-weight: 600; }
}
/* chip answers (assessment, progress check): a long option wraps on a small phone
   instead of running off the screen — it already did at 320px before */
html .c-opt label { white-space: normal; max-width: 100%; box-sizing: border-box; }
/* ── v82 — bottom bar with icons: Today · Program · Coach · Profile ── */
:root { --cs-on-cyan: #03191c; }                 /* text on a cyan button */
html[data-theme="light"] { --cs-on-cyan: #ffffff; }
html[data-theme="light"] .pw-k-cond { --pc: #c0163f; }
html[data-theme="light"] .pw-k-tech { --pc: #6a4fd1; }
@media (max-width: 900px) {
  html body .cs-tabbar a { text-transform: none; letter-spacing: 0; gap: 4px; font-weight: 600; font-size: 12px; min-width: 0; padding: 0 2px; }
  .cs-tab-ic { width: 22px; height: 22px; flex: none; }
  html body .cs-tab-av { width: 24px; height: 24px; font-size: 13px; }
  .cs-tab-lbl { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* ── v82 — program page week schedule: readable on a phone ──
   Seven columns of 12–14px text do not fit 320–390px; on a phone the
   week reads as a short list instead (dot · day · session type). */
html body .wm-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
html body .wm-type { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  html body .wm-grid { grid-template-columns: 1fr; gap: 6px; }
  html body .wm-day { flex-direction: row; align-items: center; gap: 12px; }
  html body .wm-dot { width: 28px; height: 28px; flex: none; }
  html body .wm-day-name { min-width: 96px; text-align: start; font-weight: 600; color: var(--cs-text); }
  html body .wm-type { text-align: start; }
  html body .wm-type br { display: none; }
}
/* v79-type:auto:begin */
/* GENERATED by tools/gen_type_css.py from the client pages — 12px floor, Rajdhani only
   from 16px up, running text 14px. Do not edit by hand: change the page, then re-run the generator. */
html .cs-nav a { font-size:12px; letter-spacing:.04em; }
html .cs-signout { font-size:12px; letter-spacing:.04em; }
html .cs-page-sub { font-size:14px; }
html .cs-sec-label { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .cs-label { font-size:12px; letter-spacing:.04em; }
html .cs-input { font-size:14px; }
html .cs-btn { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
html .cs-back { font-size:12px; letter-spacing:.04em; }
html .cs-pill { font-size:12px; letter-spacing:.04em; }
html .cs-alert { font-size:14px; }
html .cs-row { font-size:14px; }
html .cs-row-l { font-size:12px; }
html .cs-tab-av { font-size:14px; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .cs-um-name { font-size:14px; }
html .cs-um-row { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
@media (max-width: 900px) { html .cs-tabbar a { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; } }
html .cs-bell-n { font-size:14px; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .cs-bell-hd { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
html .cs-bell-empty { font-size:14px; }
html .cs-bell-t { font-size:14px; }
html .cs-bell-b { font-size:14px; }
html .pl-btn { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
html .program-header .meta { font-size:14px; }
html .prog-switch { font-size:14px; }
html .week-tab { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
html .cycle-group-label { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .wm-title { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .wm-dot { font-size:14px; }
html .wm-day-name { font-size:14px; }
html .wm-type { font-size:12px; }
html .wm-warning { font-size:14px; }
html .glossary-toggle { font-size:12px; letter-spacing:.04em; }
html .glossary-arrow { font-size:14px; }
html .glossary-name { font-size:12px; letter-spacing:.04em; }
html .glossary-desc { font-size:14px; }
html .section-sep-label { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .dr-sub { font-size:14px; }
html .dr-section-title { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .dr-ex-name { font-size:14px; }
html .dr-ex-meta { font-size:14px; }
html .dr-ex-cues { font-size:14px; }
html .day-head .focus { font-size:14px; }
html .block-head .letter { font-size:14px; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .block-head .block-note { font-size:14px; }
html .ex-table { font-size:14px; }
html .ex-table thead th { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .ex-table td.name-cell .cat { font-size:14px; }
html .ex-table td.val { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .ex-table td.note-cell { font-size:14px; }
html .check-btn { font-size:14px; }
html .watch-btn { font-size:12px; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .ex-connector-bar .c-arrow { font-size:14px; }
html .ex-connector-bar .c-label { font-size:14px; }
@media (max-width: 640px) { html .ex-table td.is-compound { font-size:14px; } }
@media (max-width: 640px) { html .st-letter { font-size:14px; } }
@media (max-width: 640px) { html .st-title { font-size:14px; } }
@media (max-width: 640px) { html .st-notes { font-size:14px; } }
html .cues { font-size:14px; }
html .cues b { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .combo-label { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .combo-rest { font-size:14px; }
html .cond-note-panel .cond-notes-text { font-size:14px; }
html .cond-banner .cb-text h4 { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
html .cond-banner .cb-text p { font-size:14px; }
html .drill-badge { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .drill-meta { font-size:14px; }
html .drill-meta .dm-label { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .drill-meta .dm-val { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .drill-desc { font-size:14px; }
html .drill-desc details summary { font-size:14px; }
html .drill-cues { font-size:14px; }
html .session-total-bar { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .st-letter { font-size:14px; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .st-min { font-size:14px; }
html .st-notes { font-size:14px; }
html .sn-key { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .sn-target { font-size:14px; }
html .pm-row { font-size:14px; }
html .pm-label { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .gcond-note-panel p { font-size:14px; }
html .gcond-format-hint { font-size:14px; }
html .gcond-ex-hdr { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .gcond-ex-num { font-size:14px; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .gcond-ex-name { font-size:14px; }
html .gcond-ex-reps { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .gcond-round-note { font-size:14px; }
html .cardio-howto-hdr span { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .cardio-howto-hdr .toggle-arrow { font-size:14px; }
html .cardio-step-num { font-size:14px; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .cardio-step-text { font-size:14px; }
html .cardio-timer-badge { font-size:14px; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .empty { font-size:14px; }
html .paywall .pw-sub { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .vplayer-bar button { font-size:14px; }
html .dl-full-btn { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
@media (max-width: 700px) { html .metric .val { font-size:14px; } }
html .cb-pdf { font-size:14px; }
html .cb-prev > summary { font-size:14px; }
html .roadmap-title { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .rp-label { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
html .rc-header { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .rc-title { font-size:12px; letter-spacing:.04em; }
html .rc-lock { font-size:14px; }
html .rc-phase { font-size:14px; }
html .rc-week-label { font-size:14px; }
html .rc-unlock { font-size:14px; }
html .rc-completed-label { font-size:14px; }
html .roadmap-cta { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
html .rc-dl-btn { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .pc-banner-msg { font-size:14px; }
html .pc-banner-btn { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
html .phchip { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .ph-deliv { font-size:14px; }
html .ph-updnote { font-size:14px; }
@media (max-width: 460px) { html .week-tab { font-size:14px !important; } }
@media (max-width: 460px) { html .cycle-group-label { font-size:14px !important; } }
@media (max-width: 380px) { html .week-tab { font-size:14px !important; } }
@media (max-width: 380px) { html .cycle-group-label { font-size:14px !important; } }
html .ex-table thead th { font-size:14px; }
@media (max-width: 640px) { html .ex-table td.name-cell .cat { font-size:14px; } }
@media (max-width: 640px) { html .watch-btn { font-size:14px; } }
@media (max-width: 640px) { html .week-tab { font-size:14px !important; } }
html .sj-k { font-size:14px; }
html .wm-tips > summary::before { font-size:14px; }
html .fm-bigl { font-size:14px; }
html .fm-sl { font-size:14px; }
html .cd-phase { font-size:14px; }
html .fmt .cm-seg { font-size:14px; }
html .fmt .cm-card-s { font-size:14px; }
html .fmt .cm-card-m { font-size:14px; }
html .hero-sport-tag { font-size:12px; letter-spacing:.04em; }
html .hero-greeting { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .hero-program { font-size:14px; }
html .hstrip-lbl { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .hstrip-val { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
@media (max-width: 640px) { html .hero-program { font-size:14px; } }
html .sec-hdr-text { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .sec-hdr-sub { font-size:14px; }
html .pc-meta { font-size:14px; }
html .status-pill { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .cond-badge { font-size:12px; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .empty p { font-size:14px; }
html .quick-card h4 { font-size:14px; }
html .quick-card p { font-size:14px; }
html .pro-tag { font-size:12px; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .block-week-range { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .block-status-text { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .dl-btn { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .history-meta { font-size:14px; }
html .history-dl-btn { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
html .tsp-title { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .tsp-pill { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .tsp-item-name { font-size:14px; }
html .tsp-item-desc { font-size:14px; }
html .tsp-combonote { font-size:14px; }
html .cta-card p { font-size:14px; }
html .cta-btn { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
html .sched-ic { font-size:14px; }
html .sched-title { font-size:14px; }
html .sched-msg { font-size:14px; }
html .pc-notify-title { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
html .pc-notify-msg { font-size:14px; }
html .pc-notify-btn { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
html .pc-flash { font-size:14px; }
html .renew-warn-title { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
html .renew-warn-msg { font-size:14px; }
html .renew-warn-btn { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
html .howto-lbl { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
html .howto-sub { font-size:12px; letter-spacing:.04em; }
html .howto-row { font-size:14px; }
html .howto-row b { font-size:14px; }
html .howto-row b em { font-size:12px; letter-spacing:.04em; }
html .howto-note { font-size:14px; }
html .hchip { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
@media (max-width:900px) { html .quick-card h4 { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; } }
html .pcm-meta { font-size:14px; }
html .pcm-tag { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
@media (max-width:480px) { html .hchip { font-size:12px; letter-spacing:.04em; } }
html .nsc-eyebrow { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .nsc-day { font-size:14px; }
html .jrny-week { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
html .jrny-left { font-size:14px; }
html .jrny-m { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .ring-lift { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .ring-sub { font-size:14px; }
html .ring-badge { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .ring-band-txt { font-size:14px; }
html .rings-note { font-size:14px; }
html .re-t { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
html .re-s { font-size:14px; }
@media (max-width:430px) { html .ring-lift { font-size:14px; } }
@media (max-width:430px) { html .ring-sub { font-size:14px; } }
@media (max-width:430px) { html .ring-badge { font-size:12px; letter-spacing:.04em; } }
@media (max-width:430px) { html .ring-band-txt { font-size:14px; } }
@media (max-width:360px) { html .ring-x { font-size:14px; } }
html .cl-t { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .cl-now em { font-size:14px; }
html .cl-foot { font-size:14px; }
html .cardio-soft { font-size:14px; }
html .pw-kicker { font-size:14px; }
html .lock-badge { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .lchip { font-size:14px; }
html .lock-note { font-size:14px; }
html .chat-coach-status { font-size:14px; }
html .msg .time { font-size:14px; }
html .msg .caption { font-size:14px; }
html .checkin-msg h4 { font-size:12px; letter-spacing:.04em; }
html .cs-scales .it .l { font-size:12px; }
html .chat-coach-name { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .cs-q { font-size:14px; }
html .cs-q .l { font-size:12px; }
html .rec-timer { font-size:14px; }
html .field label { font-size:14px; }
html .field .hint { font-size:14px; }
html .field input, html .field textarea { font-size:14px; }
html .scale label { font-size:14px; }
html .btn-action { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
html .btn-ghost { font-size:14px; }
html .toast { font-size:14px; }
html .reason-list label { font-size:14px; }
html .safety-row .sub { font-size:14px; }
html .blocked-banner { font-size:14px; }
html .blocked-banner button { font-size:14px; }
html .file-card .fc-name { font-size:14px; }
html .file-card .fc-size { font-size:14px; }
html .term-name { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .term-abbr { font-size:12px; letter-spacing:.04em; }
html .term-def { font-size:14px; }
html .term-ex { font-size:14px; }
html .page-badge { font-size:12px; letter-spacing:.04em; }
html .step-num { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .step-head p { font-size:14px; }
html .field input, html .field textarea, html .field select { font-size:14px; }
html .yn label { font-size:14px; }
html .cb-opt { font-size:14px; }
html .callout { font-size:14px; }
html .test h4 { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
html .test .meta { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .test .instr { font-size:14px; }
html .dropzone p { font-size:14px; }
html .tests-summary { font-size:14px; }
html .review-section h4 { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
html .review-row { font-size:14px; }
html .review-video { font-size:14px; }
html .review-video .st { font-size:14px; }
html .btn { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
html .save-tag { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .q-sub { font-size:14px; }
html .r-opt label { font-size:14px; }
html .c-opt label { font-size:14px; }
html .range-labels { font-size:14px; }
html .priority-limit { font-size:14px; }
html .test .meta { font-size:14px; }
html .dropzone .status { font-size:14px; }
html .errors { font-size:14px; }
html .renewal-badge { font-size:12px; letter-spacing:.04em; }
html .wm-guidance h4 { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; letter-spacing:.04em; }
html .wm-guidance ul { font-size:14px; }
html .wml { font-size:12px; letter-spacing:.04em; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .wm-day-label { font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .wm-chip { font-size:12px; font-family:'Inter',-apple-system,'Segoe UI',sans-serif; }
html .wm-rest-label { font-size:14px; }
html .test .ref-link { font-size:14px; }
html .renew-badge { font-size:12px; letter-spacing:.04em; }
html .back-link { font-size:14px; }
html .info-note { font-size:14px; }
html .mots-lang > summary { font-size:12px; letter-spacing:.04em; }
html .mots-lang-menu a { font-size:14px; }
html .mots-lang-menu a i { font-size:12px; letter-spacing:.04em; }
html [style*="font-size:10px"] { font-size:12px !important; }
html [style*="font-size:11px"] { font-size:12px !important; }
/* v79-type:auto:end */
