/* ── Sport Module ─────────────────────────────────────────────────────────── */

/* ── Programs tab ─────────────────────────────────────────────────────────── */
.sport-progs {
  padding: 28px 20px 40px;
  max-width: 680px;
  margin: 0 auto;
}

.sport-progs__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.sport-progs__title {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
}

.sport-progs__new-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 9px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}
.sport-progs__new-btn:hover  { opacity: 0.85; }
.sport-progs__new-btn:active { transform: scale(0.95); }

/* ── Program card ───────────────────────────────────────────────────────────── */
.sport-prog-card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.05);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
}
.sport-prog-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.07);
}

/* Card header */
.sport-prog-card__hd {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 20px 18px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.sport-prog-card__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sport-prog-card__txt { flex: 1; min-width: 0; }

.sport-prog-card__name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}

.sport-prog-card__sub {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 3px;
}

.sport-prog-card__chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.sport-prog-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sport-prog-card__pencil {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.sport-prog-card__pencil:hover {
  background: var(--line);
  color: var(--text);
}

.sport-prog-card__arrow {
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  flex-shrink: 0;
}
.sport-prog-card--open .sport-prog-card__arrow { transform: rotate(180deg); }

/* Card body */
.sport-prog-card__body {
  display: none;
  border-top: 1px solid var(--line);
}
.sport-prog-card--open .sport-prog-card__body { display: block; }

.sport-prog-card__empty {
  padding: 18px 20px;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* Session rows */
.sport-prog-session {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 14px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 0.1s;
}
.sport-prog-session:last-of-type { border-bottom: none; }
.sport-prog-session:hover { background: rgba(0,0,0,0.018); }

.sport-prog-session__tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.sport-prog-session__info { flex: 1; min-width: 0; }

.sport-prog-session__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sport-prog-session__meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 2px;
}

.sport-prog-session__pencil {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.sport-prog-session__pencil:hover {
  background: var(--line);
  color: var(--text);
}

.sport-prog-session__play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: opacity 0.15s, transform 0.12s, box-shadow 0.15s;
}
.sport-prog-session__play:hover { opacity: 0.85; box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.sport-prog-session__play:active { transform: scale(0.9); }

/* Card footer */
.sport-prog-card__footer {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}

.sport-prog-card__add-session {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 0;
  transition: opacity 0.15s;
}
.sport-prog-card__add-session:hover { opacity: 0.65; }

/* ── Color picker ───────────────────────────────────────────────────────────── */
.sport-color-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sport-color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.sport-color-swatch:hover  { transform: scale(1.12); }
.sport-color-swatch:active { transform: scale(0.95); }
.sport-color-swatch--sel   { outline: 2.5px solid var(--text); outline-offset: 3px; }

.sport-color-check {
  width: 13px;
  height: 11px;
  opacity: 0;
  transition: opacity 0.15s;
  display: block;
  flex-shrink: 0;
}
.sport-color-swatch--sel .sport-color-check { opacity: 1; }

/* ── Exercise cards (workout edit modal) ──────────────────────────────────── */
.sport-ex-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0,0,0,0.06);
}

.sport-ex-card__hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
}

.sport-ex-card__num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sport-ex-card__name {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  padding: 0;
}
.sport-ex-card__name::placeholder { color: var(--muted); font-weight: 400; }

.sport-ex-card__del {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(220,50,50,0.1);
  color: #dc3232;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.sport-ex-card__del:hover { background: rgba(220,50,50,0.2); }

.sport-ex-card__metrics {
  display: flex;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.018);
}

.sport-ex-card__metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  text-align: center;
  border-radius: 8px;
  margin: 4px 0;
  cursor: text;
  transition: background 0.12s;
}
.sport-ex-card__metric:hover { background: rgba(0,0,0,0.04); }

.sport-ex-card__mlabel {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
  white-space: nowrap;
}

.sport-ex-card__mval {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  outline: none;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  width: 100%;
  font-family: inherit;
  -moz-appearance: textfield;
  transition: border-color 0.15s;
  cursor: pointer;
}
.sport-ex-card__mval:focus {
  border-bottom-color: var(--primary);
  cursor: text;
}
.sport-ex-card__mval::-webkit-inner-spin-button,
.sport-ex-card__mval::-webkit-outer-spin-button { -webkit-appearance: none; }
.sport-ex-card__mval:disabled { opacity: 0.4; cursor: not-allowed; }

.sport-ex-card__mdiv {
  width: 1px;
  background: var(--line);
  margin: 8px 0;
}

/* ── Réglages avancés par exercice (superset/pyramidal/RIR/dernière série/
   notes) — repliés par défaut pour garder la carte lisible ; seuls les
   exercices déjà configurés s'ouvrent d'emblée (cf. renderExRow). ── */
.sport-ex-card__advanced-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  padding: 9px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s;
}
.sport-ex-card__advanced-toggle:hover { color: var(--primary); }

.sport-ex-card__advanced-chevron { flex-shrink: 0; transition: transform 0.15s; }
.sport-ex-card__advanced--open .sport-ex-card__advanced-chevron { transform: rotate(180deg); }

.sport-ex-card__advanced-body { display: none; }
.sport-ex-card__advanced--open .sport-ex-card__advanced-body { display: block; }

/* Réglage global "Mode avancé" (Paramètres → Sport) : masque entièrement
   le repli pour les exercices qui n'ont encore aucun réglage avancé — ceux
   déjà configurés restent visibles/éditables dans tous les cas. */
body.sport-advanced-hidden .sport-ex-card__advanced:not(.sport-ex-card__advanced--configured) { display: none; }

.sport-ex-card__lasttype {
  padding: 10px 14px 2px;
  border-top: 1px solid var(--line);
}

.sport-ex-card__lasttype-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.sport-ex-card__lasttype-chips {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.sport-ex-lasttype-chip {
  flex: 1;
  background: rgba(0,0,0,0.03);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 7px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sport-ex-lasttype-chip:hover { border-color: var(--primary); color: var(--text); }

.sport-ex-lasttype-chip--active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.sport-ex-card__notes {
  display: block;
  width: 100%;
  border: none;
  border-top: 1px solid var(--line);
  background: transparent;
  padding: 9px 14px;
  font-size: 0.8125rem;
  color: var(--muted);
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}
.sport-ex-card__notes::placeholder { color: var(--muted); }
.sport-ex-card__notes:focus { color: var(--text); }

/* ── Workout edit modal fields ─────────────────────────────────────────────── */
/* Classe "input" générique utilisée partout dans le module Sport (nom de
   programme/séance, tag, repos, dates de planification…) — elle n'avait
   AUCUNE définition CSS nulle part dans l'app, donc ces champs s'affichaient
   avec l'apparence brute du navigateur ("bulles grises" carrées non stylées)
   à côté du reste de l'interface entièrement custom. */
.input {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input::placeholder { color: var(--muted); font-weight: 400; }
select.input { cursor: pointer; }

.sport-wk-fields { display: flex; flex-direction: column; gap: 10px; }
.sport-wk-field { display: flex; flex-direction: column; gap: 5px; }
.sport-wk-field__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.sport-wk-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.sport-wk-ex-section { display: flex; flex-direction: column; gap: 8px; }
.sport-wk-ex-header { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.sport-wk-ex-title { font-size: 0.9375rem; font-weight: 700; }
.sport-wk-ex-count {
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 0.72rem;
  font-weight: 700;
}

.sport-wk-ex-actions { display: flex; gap: 8px; align-items: center; margin-top: 4px; flex-wrap: wrap; }

/* Même mécanique "verre" (transparent au repos, dégradé au survol) que le
   reste des CTA de l'app (.dw-cta, .settings-save-btn) plutôt qu'un aplat
   plein en dur. */
.sport-wk-ex-add-main {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.1);
  background: rgba(15,23,42,0.05);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1), border-color 0.15s, color 0.15s;
}
.sport-wk-ex-add-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.sport-wk-ex-add-main:hover { color: #fff; border-color: transparent; transform: scale(1.02); }
.sport-wk-ex-add-main:hover::before { opacity: 1; }
.sport-wk-ex-add-main:active { transform: scale(0.97); }

.sport-wk-ex-add-custom {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}
.sport-wk-ex-add-custom:hover { border-color: var(--primary); color: var(--primary); }

.sport-wk-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}
.sport-wk-delete {
  background: none;
  border: none;
  color: #dc3232;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 0;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.sport-wk-delete:hover { opacity: 1; }

.sport-wk-save-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.1);
  background: rgba(15,23,42,0.05);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1), border-color 0.15s, color 0.15s;
}
.sport-wk-save-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.sport-wk-save-btn:hover { color: #fff; border-color: transparent; transform: scale(1.02); }
.sport-wk-save-btn:hover::before { opacity: 1; }
.sport-wk-save-btn:active { transform: scale(0.97); }

/* ── Planning tab ─────────────────────────────────────────────────────────── */
.sport-planning-page {
  padding: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.sport-calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.sport-calendar-nav__month {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex: 1;
  text-align: center;
}

.sport-calendar-wrap {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow);
}

.sport-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.sport-calendar-dow {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--muted);
  padding: 6px 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sport-calendar-day {
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-height: 52px;
  transition: background var(--transition-fast);
  position: relative;
}

.sport-calendar-day--empty {
  cursor: default;
}

.sport-calendar-day:not(.sport-calendar-day--empty):hover {
  background: var(--primary-soft);
}

.sport-calendar-day__num {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
}

.sport-calendar-day--today {
  background: var(--primary) !important;
}

.sport-calendar-day--today .sport-calendar-day__num {
  color: #fff;
}

.sport-calendar-day--today .sport-calendar-day__dot {
  background: rgba(255,255,255,0.7);
}

.sport-calendar-day--planned {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.sport-calendar-day--completed {
  background: var(--ok-bg);
}

.sport-calendar-day--completed .sport-calendar-day__num {
  color: var(--ok);
}

.sport-calendar-day--selected:not(.sport-calendar-day--today) {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.sport-calendar-day__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 3px;
}

.sport-calendar-day--completed .sport-calendar-day__dot {
  background: var(--ok);
}

.sport-calendar-day--recur .sport-calendar-day__dot {
  background: transparent;
  border: 1.5px solid var(--primary);
  width: 5px;
  height: 5px;
}

/* ── Day picker (workout recurring days) ──────────────────────────────────── */
.sport-day-picker {
  display: flex;
  gap: 6px;
}

.sport-day-pill {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sport-day-pill:hover { border-color: var(--primary); color: var(--primary); }
.sport-day-pill--on {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}

/* ── Recurring session card in planning day view ─────────────────────────── */
.sport-day-session-card--recur {
  opacity: 0.88;
  border-style: dashed !important;
}

.sport-recur-row {
  display: flex;
  gap: 3px;
  margin-top: 5px;
}

.sport-recur-dow {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--line);
  color: var(--muted);
}
.sport-recur-dow--on {
  background: var(--primary-soft);
  color: var(--primary);
}

.sport-recur-launch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-left: 2px;
  transition: transform 0.1s, opacity 0.15s;
}
.sport-recur-launch:hover { opacity: 0.85; }
.sport-recur-launch:active { transform: scale(0.88); }

.sport-sched-move-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.sport-sched-move-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.sport-sched-del-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(220,50,50,0.08);
  color: #dc3232;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.sport-sched-del-btn:hover { background: rgba(220,50,50,0.18); }

.sport-day-sessions {
  margin-top: 14px;
}

.sport-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.sport-day-header__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.sport-day-session-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.sport-day-session-card--today {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.sport-day-session-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sport-day-session-info { flex: 1; min-width: 0; }

.sport-day-session-name {
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sport-day-session-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 2px;
}

.sport-session-tag {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
}

/* ── Session (live workout) tab ───────────────────────────────────────────── */
.sport-no-session {
  padding: 24px 20px;
  max-width: 480px;
  margin: 0 auto;
}

.sport-no-session__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.sport-no-session__sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.sport-no-session__section-title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.sport-no-session .sport-day-session-card {
  cursor: pointer;
}

.sport-no-session .sport-day-session-card:hover {
  box-shadow: 0 2px 12px rgba(15,23,42,0.1);
}

/* Live session view */
.sport-live-wrap {
  background: #12131a;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: inherit;
}

.sport-live-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.12);
}

.sport-live-progress-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.5s ease;
}

.sport-live-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.sport-live-title {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sport-live-pct {
  font-size: 0.9375rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
}

.sport-live-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.sport-ex-name {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
}

.sport-series-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sport-series-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
}

.sport-series-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.sport-series-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  background: transparent;
  transition: background 0.2s, border-color 0.2s;
}

.sport-series-dot--done {
  background: #fff;
  border-color: #fff;
}

.sport-series-dot--current {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.2);
}

.sport-hint-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.65);
  font-size: 0.775rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  flex-shrink: 0;
}

.sport-hint-btn:hover { background: rgba(255,255,255,0.12); }

.sport-stat-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sport-stat-box {
  background: #1e1f2e;
  border-radius: var(--radius-md);
  padding: 14px;
}

.sport-stat-box__label {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.45);
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sport-stat-box__value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sport-stat-box__sub {
  font-size: 0.775rem;
  color: rgba(255,255,255,0.4);
  margin-top: 5px;
}

.sport-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sport-input-group__label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  font-weight: 600;
}

.sport-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1e1f2e;
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.sport-stepper__val {
  flex: 1;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  outline: none;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  min-width: 0;
  width: 0;
}

.sport-stepper__val::-webkit-inner-spin-button,
.sport-stepper__val::-webkit-outer-spin-button { -webkit-appearance: none; }

.sport-stepper__btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
  line-height: 1;
}

.sport-stepper__btn:hover { background: rgba(255,255,255,0.2); }
.sport-stepper__btn:active { transform: scale(0.92); }

/* ── Live session: type de série (normal / échec / dégressif) ────────────── */

.sport-set-type-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.sport-set-type-chip {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 9px 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sport-set-type-chip:hover { border-color: rgba(255,255,255,0.28); color: #fff; }

.sport-set-type-chip--active {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.sport-dropset-rows {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
}

.sport-dropset-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sport-dropset-row__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  width: 62px;
  flex-shrink: 0;
}

.sport-dropset-row__x {
  color: rgba(255,255,255,0.35);
  font-weight: 700;
}

.sport-dropset-input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 8px 10px;
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
  text-align: center;
}
.sport-dropset-input:focus { outline: none; border-color: var(--primary); }

.sport-dropset-remove {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.sport-dropset-remove:hover { background: rgba(220,50,50,0.15); color: #e05555; }

.sport-dropset-add-btn {
  background: none;
  border: 1.5px dashed rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 9px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}
.sport-dropset-add-btn:hover { border-color: var(--primary); color: var(--primary); }

.sport-validate-btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: opacity 0.15s, transform 0.1s;
}

.sport-validate-btn:hover { opacity: 0.88; }
.sport-validate-btn:active { transform: scale(0.98); }

.sport-timer-section {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  padding: 8px 0;
}

.sport-timer-display { text-align: center; flex: 1; }

.sport-timer-time {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.35);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

.sport-timer-time--running {
  color: var(--primary);
}

.sport-timer-time--done {
  color: #4dbd80;
}

.sport-timer-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sport-timer-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background 0.15s;
  flex-shrink: 0;
}

.sport-timer-btn--stop { border-color: #7a2d2d; color: #e05555; }
.sport-timer-btn--stop:hover { background: rgba(122,45,45,0.18); }

.sport-next-section {
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.sport-next-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sport-next-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #1e1f2e;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}

.sport-next-item:last-child { margin-bottom: 0; }

.sport-next-item__name {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
}

.sport-next-item__spec {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}

.sport-live-end-btn {
  margin: 10px 16px 24px;
  padding: 13px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: background 0.15s, color 0.15s;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: calc(100% - 32px);
}

.sport-live-end-btn:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); }

/* ── Dashboard tab ─────────────────────────────────────────────────────────── */
.sport-dashboard-page {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.sport-dashboard-page h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

.sport-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.sport-stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}

/* Icônes des cartes stats = badges verre teinté (mêmes classes .dw-badge que
   les widgets du dashboard), plutôt que des emoji nus. */
.sport-stat-card .dw-badge { margin-bottom: 10px; }
.sport-stat-card--streak .dw-badge {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.32);
  color: #fff;
  box-shadow: none;
}

.sport-stat-card__val {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  display: block;
}

.sport-stat-card__label {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
  display: block;
}

.sport-stat-card__sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
  display: block;
}

.sport-stat-card--streak {
  background: var(--primary);
  border-color: var(--primary);
}

.sport-stat-card--streak .sport-stat-card__val {
  color: #fff;
}

.sport-stat-card--streak .sport-stat-card__label,
.sport-stat-card--streak .sport-stat-card__sub {
  color: rgba(255,255,255,0.7);
}

.sport-recent-sessions {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}

.sport-recent-sessions__title {
  padding: 14px 16px;
  font-size: 0.9375rem;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.sport-recent-session-row:last-child {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.sport-recent-session-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  transition: background var(--transition-fast);
}

.sport-recent-session-row:last-child { border-bottom: none; }
.sport-recent-session-row:hover { background: var(--surface-soft); }

.sport-recent-session-color {
  width: 4px;
  min-height: 36px;
  border-radius: 2px;
  flex-shrink: 0;
  align-self: stretch;
}

.sport-recent-session-info { flex: 1; min-width: 0; }

.sport-recent-session-name {
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sport-recent-session-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 2px;
}

.sport-recent-session-tag {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}

/* ── Session row 3-dots menu ─────────────────────────────────────────────────── */
.sport-sess-menu {
  position: relative;
  flex-shrink: 0;
}

.sport-sess-dots {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -1px;
  transition: background 0.12s, color 0.12s;
  font-family: inherit;
}
.sport-sess-dots:hover { background: var(--line); color: var(--text); }

.sport-sess-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 160px;
  z-index: 50;
  overflow: hidden;
}
.sport-sess-dropdown--open { display: block; }

.sport-sess-dropdown__del {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  background: none;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: #dc3232;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.1s;
}
.sport-sess-dropdown__del:hover { background: rgba(220,50,50,0.07); }

/* ── Empty states ──────────────────────────────────────────────────────────── */
.sport-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.sport-empty__icon.dw-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin: 0 auto 12px;
}
.sport-empty__icon .dw-badge__icon { width: 24px; height: 24px; }

.sport-empty__text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.sport-empty__sub {
  font-size: 0.875rem;
}

/* ── Progression (gamification) ───────────────────────────────────────────── */
.sport-rank-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}

.sport-rank-card__icon.dw-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  flex-shrink: 0;
}
.sport-rank-card__icon .dw-badge__icon { width: 28px; height: 28px; }

.sport-rank-card__body {
  flex: 1;
  min-width: 0;
}

.sport-rank-card__name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.sport-rank-card__xp {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 600;
  margin: 2px 0 8px;
}

.sport-rank-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  overflow: hidden;
}

.sport-rank-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.3s;
}

.sport-badges-section, .sport-xplog-section {
  margin-top: 24px;
}

.sport-badges-section__title, .sport-xplog-section__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.sport-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.sport-badge-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 10px;
  text-align: center;
  opacity: 0.45;
  filter: grayscale(1);
  transition: opacity 0.15s, filter 0.15s, transform 0.15s;
}

.sport-badge-card--unlocked {
  opacity: 1;
  filter: none;
  box-shadow: 0 2px 8px rgba(15,23,42,0.06);
}

.sport-badge-card__icon.dw-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  margin: 0 auto 8px;
}
.sport-badge-card__icon .dw-badge__icon { width: 18px; height: 18px; }

.sport-badge-card__name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
}

.sport-badge-card__desc {
  font-size: 0.6875rem;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.3;
}

.sport-xplog-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
}
.sport-xplog-row:last-child { border-bottom: none; }

.sport-xplog-row__amount {
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  min-width: 38px;
}

.sport-xplog-row__reason {
  flex: 1;
  color: var(--text);
  min-width: 0;
}

.sport-xplog-row__date {
  color: var(--muted);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ── Exercise info button ───────────────────────────────────────────────────── */
.sport-ex-info-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  font-family: inherit;
  line-height: 1;
}

.sport-ex-info-btn:hover {
  background: var(--primary);
  color: #fff;
}

.sport-ex-info-btn:active { transform: scale(0.9); }
.sport-ex-info-btn svg { width: 14px; height: 14px; display: block; }

/* ── Exercise info modal ─────────────────────────────────────────────────────── */
.sport-ex-info__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: opacity 0.15s;
  margin-bottom: 2px;
}

.sport-ex-info__back:hover { opacity: 0.65; }

/* Réutilisée par la fiche exercice (ci-dessous) et par la popup "Prochain exercice" */
.sport-ex-info__card {
  background: var(--bg, #f7f8fa);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
}

.sport-ex-info__card-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 14px;
}

.sport-ex-info__empty {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

/* Fiche exercice : bandeau + 2 colonnes */
.sport-ex-info2 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: -4px 0;
}

.sport-ex-info2__banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -24px;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}

.sport-ex-info2__banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.18);
}

.sport-ex-info2__banner-name {
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.sport-ex-info2__banner-meta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-top: 1px;
}

.sport-ex-info2__body {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
}

@media (max-width: 640px) {
  .sport-ex-info2__body { grid-template-columns: 1fr; }
}

.sport-ex-info2__col { display: flex; flex-direction: column; min-width: 0; }

.sport-ex-info2__heading {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 14px;
}

.sport-ex-info2__heading--reco { margin-top: 22px; }

.sport-ex-info2__steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sport-ex-info2__step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sport-ex-info2__step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sport-ex-info2__step-text {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.55;
  padding-top: 3px;
}

.sport-ex-info2__pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sport-ex-info2__pill {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.sport-ex-info2__images {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

/* Vue utilisateur avec une seule photo (l'autre position n'a pas encore été
   ajoutée) : centrée et de largeur raisonnable plutôt qu'étirée sur toute
   la colonne — cf. .sport-ex-info2__image { flex:1 } sinon. */
.sport-ex-info2__images--single { justify-content: center; }
.sport-ex-info2__images--single .sport-ex-info2__image { flex: 0 1 220px; }

/* Pas de ratio figé ni de crop : la case prend la forme de la photo
   (largeur pleine colonne, hauteur qui suit), pour ne perdre aucun détail.
   Le ratio 4/5 ne s'applique qu'à l'emplacement vide (--empty ci-dessous),
   pour que la zone de dépôt reste visible avant qu'une photo existe. */
.sport-ex-info2__image {
  flex: 1;
  min-width: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-soft, var(--bg));
}

.sport-ex-info2__image img {
  width: 100%;
  height: auto;
  display: block;
}

.sport-ex-info2__image--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 4 / 5;
  border: 1.5px dashed var(--line);
  color: var(--muted);
}

.sport-ex-info2__image--empty span {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  padding: 0 8px;
}

/* Zone glisser-déposer (admin uniquement) — cf. openExerciseInfo dans sport.js */
.sport-ex-info2__image--admin { position: relative; }
.sport-ex-info2__image--admin.sport-ex-info2__image--empty {
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.sport-ex-info2__image--admin.sport-ex-info2__image--empty:hover,
.sport-ex-info2__image--admin.sport-ex-info2__image--dragover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}
.sport-ex-info2__image-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.15s, transform 0.12s;
}
.sport-ex-info2__image-remove:hover { background: rgba(220,50,50,0.85); transform: scale(1.08); }

.sport-ex-info2__tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sport-ex-info2__tip {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--surface-soft, var(--bg));
  font-size: 0.8125rem;
  color: var(--text);
  line-height: 1.5;
}

.sport-ex-info2__tip svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary);
}

.sport-ex-info2__links {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.sport-ex-info2__links a {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sport-ex-info2__links a:hover { color: var(--text); }

/* ── Template cards (create program step 2) ────────────────────────────────── */
.sport-template-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.15s, transform 0.12s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.sport-template-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft), 0 4px 12px rgba(0,0,0,0.07);
  transform: translateY(-1px);
}

.sport-template-card:active { transform: scale(0.98); }

.sport-template-card__icon-wrap {
  font-size: 1.625rem;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sport-template-card__info {
  flex: 1;
  min-width: 0;
}

.sport-template-card__name {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}

.sport-template-card__desc {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── Muscle group filter pills ──────────────────────────────────────────────── */
.sport-muscle-pill {
  padding: 5px 13px;
  border-radius: 20px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.sport-muscle-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.sport-muscle-pill--active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}

/* ── Exercise picker ────────────────────────────────────────────────────────── */
.sport-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: -4px 0;
}

.sport-picker__search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.sport-picker__search-icon {
  position: absolute;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
}

.sport-picker__search {
  width: 100%;
  height: 44px;
  background: var(--surface);
  border: none;
  border-radius: 999px;
  padding: 0 14px 0 38px;
  font-size: 0.9375rem;
  color: var(--text);
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  box-shadow: 0 6px 16px rgba(15,23,42,0.08);
  transition: box-shadow 0.15s;
}
.sport-picker__search:focus { box-shadow: 0 0 0 2px var(--primary), 0 8px 20px rgba(15,23,42,0.1); }
.sport-picker__search::placeholder { color: var(--muted); }

.sport-picker__filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sport-picker__filters::-webkit-scrollbar { display: none; }

.sport-picker__list {
  max-height: 340px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px;
  margin: -2px;
}

.sport-picker__empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.sport-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.sport-picker-row:last-child { margin-bottom: 0; }
.sport-picker-row:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15,23,42,0.07);
}

.sport-picker-row__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sport-picker-row__info { flex: 1; min-width: 0; }

.sport-picker-row__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sport-picker-row__meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bouton ajouter = même DA "verre" que le reste (transparent au repos,
   dégradé au survol) plutôt qu'un rond plein en dur — cf. .kitchen-item__action-btn. */
.sport-picker-row__add {
  position: relative;
  isolation: isolate;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--surface-soft, var(--surface));
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color 0.15s, transform 0.12s, box-shadow 0.15s;
}
.sport-picker-row__add::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.sport-picker-row__add:hover { color: #fff; box-shadow: none; transform: scale(1.08); }
.sport-picker-row__add:hover::before { opacity: 1; }
.sport-picker-row__add:active { transform: scale(0.88); }
.sport-picker-row__add--done { color: #fff; box-shadow: none; cursor: default; }
.sport-picker-row__add--done::before { opacity: 1; background: linear-gradient(135deg, #3db87a, #2fa367); }
.sport-picker-row__add[disabled] { cursor: default; }

.sport-picker__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
}

/* Même mécanique "verre" que .dw-cta (transparent au repos, dégradé au
   survol) mais en largeur naturelle — le pied du picker n'a pas la place
   pour un bouton pleine largeur. */
.sport-picker__custom-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.1);
  background: rgba(15,23,42,0.05);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1), border-color 0.15s, color 0.15s;
}
.sport-picker__custom-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.sport-picker__custom-btn:hover { color: #fff; border-color: transparent; transform: scale(1.03); }
.sport-picker__custom-btn:hover::before { opacity: 1; }
.sport-picker__custom-btn:active { transform: scale(0.97); }

/* ── Planning action bar ─────────────────────────────────────────────────────── */
.sport-planning-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
}

.sport-planning-actions__free {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
}
.sport-planning-actions__free:hover { opacity: 0.85; }

.sport-planning-actions__plan {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 9px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}
.sport-planning-actions__plan:hover { border-color: var(--primary); color: var(--primary); }

/* ── Free session button ─────────────────────────────────────────────────────── */
.sport-free-session-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--primary);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
  box-shadow: 0 0 0 3px var(--primary-soft);
  transition: box-shadow 0.15s, transform 0.1s;
  margin-bottom: 16px;
  color: var(--text);
}
.sport-free-session-btn:hover { box-shadow: 0 0 0 5px var(--primary-soft); transform: translateY(-1px); }
.sport-free-session-btn:active { transform: scale(0.98); }

.sport-free-session-btn__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sport-free-session-btn__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.sport-free-session-btn__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
}

.sport-free-session-btn__sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Live session: menu d'options de l'exercice (⋯) ──────────────────────────── */
.sport-live-ex-actions {
  display: flex;
  justify-content: center;
}

.sport-ex-menu {
  position: relative;
}

.sport-ex-menu-trigger {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sport-ex-menu-trigger:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.24);
  color: #fff;
}

.sport-ex-menu-dropdown {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 8px);
  background: #24263a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  min-width: 210px;
  z-index: 50;
  overflow: hidden;
  padding: 6px;
}
.sport-ex-menu-dropdown--open { display: block; }

.sport-ex-menu-dropdown--next {
  left: auto;
  right: 0;
  transform: none;
  bottom: auto;
  top: calc(100% + 6px);
  min-width: 180px;
}

.sport-ex-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  background: none;
  border: none;
  border-radius: 9px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.12s;
}
.sport-ex-menu-item:hover { background: rgba(255,255,255,0.08); }

.sport-ex-menu-item__icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.sport-next-dots {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -1px;
  transition: background 0.12s, color 0.12s;
  font-family: inherit;
  flex-shrink: 0;
}
.sport-next-dots:hover { background: rgba(255,255,255,0.14); color: #fff; }

.sport-free-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 0 8px;
}
.sport-free-intro__icon { font-size: 3rem; line-height: 1; }
.sport-free-intro__title { font-size: 1.25rem; font-weight: 800; }
.sport-free-intro__sub { font-size: 0.9rem; color: var(--muted); }

/* ── No-session screen ──────────────────────────────────────────────────────── */
.sport-no-session {
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.sport-no-session__title {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.sport-no-session__sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.sport-no-session__section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* ── Planning page ──────────────────────────────────────────────────────────── */
.sport-planning-page {
  padding: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.sport-day-header {
  padding: 8px 0 6px;
}

.sport-day-header__label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

/* ── Next exercise info button (dark theme) ────────────────────────────────── */
.sport-next-info-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.55);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
  line-height: 1;
}
.sport-next-info-btn:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

/* ── Recovery done popup ────────────────────────────────────────────────────── */
.sport-recovery-popup {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  backdrop-filter: blur(2px);
}
.sport-recovery-popup--visible {
  opacity: 1;
  pointer-events: all;
}
.sport-recovery-popup__card {
  background: var(--surface);
  border-radius: 28px;
  padding: 32px 24px 28px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: translateY(0);
}
.sport-recovery-popup__emoji {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 4px;
}
.sport-recovery-popup__title {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.sport-recovery-popup__sub {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
}
.sport-recovery-popup__btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-top: 8px;
  transition: opacity 0.15s, transform 0.1s;
  width: 100%;
}
.sport-recovery-popup__btn:hover { opacity: 0.88; }
.sport-recovery-popup__btn:active { transform: scale(0.97); }

/* ── Mobile ────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .sport-progs { padding: 16px 12px; }
  .sport-progs__title { font-size: 1.5rem; }
  .sport-planning-page,
  .sport-dashboard-page { padding: 12px; }
  .sport-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .sport-live-header { padding: 10px 14px; }
  .sport-live-body { padding: 12px; gap: 12px; }
  .sport-ex-name { font-size: 1.5rem; }
  .sport-stat-box__value { font-size: 1.25rem; }
  .sport-timer-time { font-size: 2rem; }
  .sport-stepper { gap: 6px; padding: 8px 10px; }
  .sport-stepper__val { font-size: 1.375rem; }
  .sport-stepper__btn { width: 30px; height: 30px; font-size: 1rem; }
  .sport-prog-card__hd { padding: 16px; }
  .sport-prog-session { padding: 12px 16px; }
  .sport-prog-session__name { font-size: 0.875rem; }
}

/* ── Upcoming exercises: restructured layout ─────────────────────────────── */

.sport-next-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #1e1f2e;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  transition: opacity 0.2s;
}
.sport-next-item:last-child { margin-bottom: 0; }

.sport-next-item__body { flex: 1; min-width: 0; }

.sport-next-item__name {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sport-next-item__spec {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  margin-top: 2px;
}

.sport-next-item--skipped { opacity: 0.45; }
.sport-next-item--skipped .sport-next-item__name {
  text-decoration: line-through;
  color: rgba(255,255,255,0.45);
}

.sport-next-skip-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
}

/* ── Programme : badge "prochaine séance suggérée" ───────────────────────── */
.sport-prog-session__due-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--primary-soft);
  color: var(--primary);
}

/* ── Formulaire exercice : RIR cible ─────────────────────────────────────── */
.sport-ex-card__rir {
  padding: 10px 14px 0;
}

.sport-ex-card__rir-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.sport-ex-card__rir-chips {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.sport-ex-rir-chip {
  flex: 1;
  background: rgba(0,0,0,0.03);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 7px 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sport-ex-rir-chip:hover { border-color: var(--primary); color: var(--text); }

.sport-ex-rir-chip--active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Live session : repli "Options avancées" (fond sombre) ──────────────── */
.sport-live-body .sport-ex-card__advanced-toggle {
  color: rgba(255,255,255,0.5);
  border-top-color: rgba(255,255,255,0.12);
  padding-left: 0;
  padding-right: 0;
}
.sport-live-body .sport-ex-card__advanced-toggle:hover { color: #fff; }
.sport-live-body .sport-ex-card__advanced-body { padding-top: 10px; }

/* ── Live session : RIR de la série en cours ─────────────────────────────── */
.sport-rir-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.sport-rir-row__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  margin-right: 2px;
  flex-shrink: 0;
}

.sport-rir-chip {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 7px 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sport-rir-chip:hover { border-color: rgba(255,255,255,0.28); color: #fff; }

.sport-rir-chip--active {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

/* ── Séries différentes (pyramidal) — carte exercice ─────────────────────── */
.sport-ex-card__pyramid {
  padding: 10px 14px 0;
}

.sport-ex-pyramid-toggle-btn {
  background: none;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.15s, color 0.15s;
}
.sport-ex-pyramid-toggle-btn:hover { border-color: var(--primary); color: var(--primary); }

.sport-ex-pyramid-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--primary-soft);
  border-radius: 10px;
  padding: 8px 10px;
}

.sport-ex-pyramid-summary__label {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  flex-shrink: 0;
}

.sport-ex-pyramid-summary__vals {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0;
}

.sport-ex-pyramid-edit-btn {
  background: none;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}
.sport-ex-pyramid-edit-btn:hover { text-decoration: underline; }

/* ── Séries différentes — modale d'édition des lignes ────────────────────── */
.sport-pyramid-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sport-pyramid-row__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  width: 62px;
  flex-shrink: 0;
}

.sport-pyramid-row__x {
  color: var(--muted);
  font-weight: 700;
}

.sport-pyramid-input {
  flex: 1;
  min-width: 0;
  background: rgba(0,0,0,0.03);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  outline: none;
}
.sport-pyramid-input:focus { border-color: var(--primary); }

.sport-pyramid-row__del {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(220,50,50,0.1);
  color: #dc3232;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  transition: background 0.15s;
}
.sport-pyramid-row__del:hover { background: rgba(220,50,50,0.2); }

/* ── Surcharge progressive assistée — chip suggestive ────────────────────── */
.sport-ex-card__overload {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 14px 0;
  padding: 8px 10px;
  background: var(--primary-soft);
  border-radius: 10px;
}

.sport-ex-card__overload-msg {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0;
}

.sport-ex-card__overload-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.sport-ex-card__overload-btn:hover { opacity: 0.85; }

/* ── Supersets — édition ──────────────────────────────────────────────────── */
.sport-ex-card__superset-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 14px 10px;
}

.sport-ex-superset-btn {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}
.sport-ex-superset-btn:hover { border-color: var(--primary); color: var(--primary); }

.sport-ex-superset-btn--unlink:hover { border-color: #dc3232; color: #dc3232; }

.sport-superset-wrap {
  border: 1.5px dashed var(--primary);
  border-radius: 18px;
  padding: 10px;
  margin-bottom: 10px;
  background: color-mix(in srgb, var(--primary) 4%, transparent);
}
.sport-superset-wrap .sport-ex-card { margin-bottom: 8px; }
.sport-superset-wrap .sport-ex-card:last-child { margin-bottom: 0; }

.sport-superset-wrap__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 2px 6px 10px;
}

.sport-superset-wrap__label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
}

.sport-superset-wrap__rest {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sport-superset-wrap__rest-input {
  width: 56px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  font-family: inherit;
  outline: none;
  text-transform: none;
}
.sport-superset-wrap__rest-input:focus { border-color: var(--primary); }

/* ── Supersets — séance live ──────────────────────────────────────────────── */
.sport-superset-banner {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 8px;
}

.sport-next-item__superset-tag {
  font-size: 0.75rem;
}

/* Exercices similaires (fiche exercice) et « Remplacer » */
.sport-similar { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface-soft, rgba(127,127,127,.08)); display: grid; gap: 8px; }
.sport-similar__title { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sport-similar__row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.sport-similar__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sport-similar__name { font-weight: 600; color: var(--text); flex: 1; }
.sport-similar__eq { font-size: 12px; color: var(--muted); }
.sport-similar__hint { font-size: 12px; color: var(--muted); }
.sport-picker__section { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 4px 4px; }
.sport-picker__always { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 4px 0 8px; border-radius: 12px; background: var(--surface-soft, rgba(127,127,127,.08)); cursor: pointer; }
.sport-picker__always input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.sport-picker__always span { display: grid; gap: 2px; font-size: 14px; color: var(--text); }
.sport-picker__always small { font-size: 12px; color: var(--muted); }

/* Séries d'échauffement (séance) */
.sport-warmup { display: grid; gap: 8px; margin: 4px 0 12px; }
.sport-warmup__head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.sport-warmup__head span:last-child { text-transform: none; letter-spacing: 0; font-weight: 600; }
.sport-warmup__chips { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.sport-warmup__chip { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 9px 6px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,0.12); background: transparent; color: rgba(255,255,255,0.7); cursor: pointer; font-size: 13px; font-weight: 600; font-family: inherit; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.sport-warmup__chip:hover { border-color: rgba(255,255,255,0.28); color: #fff; }
.sport-warmup__chip svg { width: 12px; height: 12px; }
.sport-warmup__chip--done { background: #fff; border-color: #fff; color: #0f1b2d; }

/* Volume par muscle (Progression) */
.sport-volume { --body-base: #e5e5ea; --body-rest: #c7c7cc; margin: 20px 0; padding: 18px; border-radius: 18px; background: var(--surface, #fff); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
body.dark-mode .sport-volume { --body-base: #2c2c2e; --body-rest: #48484a; }
.sport-volume__head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; }
.sport-volume__title { font-size: 17px; font-weight: 700; color: var(--text); }
.sport-volume__sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.sport-volume__period { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-soft, rgba(127,127,127,.1)); }
.sport-volume__period button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font: 600 13px/1 inherit; color: var(--muted); cursor: pointer; }
.sport-volume__period button.is-active { background: var(--surface, #fff); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.sport-volume__body { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: 24px; margin-top: 16px; align-items: start; }
@media (max-width: 760px) { .sport-volume__body { grid-template-columns: 1fr; } }
.sport-body__views { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sport-body__views figure { margin: 0; text-align: center; }
.sport-body__views figcaption { font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.sport-body__svg { width: 100%; max-height: 330px; }
.sport-body__base { fill: var(--body-base); }
.sport-body__muscle { fill: var(--body-rest); stroke: var(--surface, #fff); stroke-width: 1.4; stroke-linejoin: round; }
.sport-body__hit { fill: var(--bad); stroke: var(--surface, #fff); stroke-width: 1.4; stroke-linejoin: round; }
.sport-body__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.sport-body__legend span { display: inline-flex; align-items: center; gap: 4px; }
.sport-body__legend i { width: 12px; height: 12px; border-radius: 3px; }
.sport-volume__bars { display: grid; gap: 12px; }
.sport-volume__label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.sport-volume__label i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sport-volume__label b { margin-left: auto; font-variant-numeric: tabular-nums; }
.sport-volume__label em { font-style: normal; font-size: 11px; font-weight: 700; width: 64px; text-align: right; color: var(--muted); }
.sport-volume__label em.is-ok { color: #2e9e5b; }
.sport-volume__label em.is-high { color: var(--primary); }
.sport-volume__track { position: relative; height: 8px; margin-top: 6px; border-radius: 999px; overflow: hidden; background: var(--surface-soft, rgba(127,127,127,.1)); }
.sport-volume__band { position: absolute; top: 0; bottom: 0; background: rgba(46,158,91,.14); }
.sport-volume__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.sport-volume__empty { color: var(--muted); font-size: 14px; margin: 0; }
.sport-volume__untrained { font-size: 14px; color: var(--text); }
.sport-volume__untrained span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }

/* Dashboard Sport (1re page) */
.sport-dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 860px) { .sport-dash-grid { grid-template-columns: 1fr; } }
.sport-dash-card { display: grid; gap: 12px; align-content: start; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.04); text-align: left; font: inherit; color: inherit; }
button.sport-dash-card { cursor: pointer; width: 100%; }
button.sport-dash-card:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.sport-dash-card__head { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sport-dash-card__head span:last-child:not(:first-child) { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; }
.sport-dash-more { color: var(--primary) !important; font-weight: 600 !important; }
.sport-dash-row { display: flex; align-items: center; gap: 12px; }
.sport-dash-row__bar { width: 5px; height: 38px; border-radius: 3px; flex: none; }
.sport-dash-row__info { flex: 1; min-width: 0; }
.sport-dash-row__title { font-size: 17px; font-weight: 650; color: var(--text); }
.sport-dash-row__sub { font-size: 13px; color: var(--muted); }
.sport-dash-rest { font-size: 17px; font-weight: 650; color: var(--text); }
.sport-dash-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--primary); font: 600 13px/1.2 inherit; cursor: pointer; justify-self: start; }
.sport-dash-link svg { width: 13px; height: 13px; }
.sport-dash-done svg { width: 22px; height: 22px; color: var(--ok); }
.sport-dash-week { display: grid; grid-template-columns: repeat(7, 1fr); }
.sport-dash-day { display: grid; justify-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--muted); }
.sport-dash-day.is-today span { color: var(--primary); }
.sport-dash-day i { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; }
.sport-dash-day i.is-done { background: var(--primary); border-color: var(--primary); color: #fff; }
.sport-dash-day i.is-done svg { width: 13px; height: 13px; }
.sport-dash-day i.is-planned { border: 1.5px dashed var(--primary); }
.sport-dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.sport-dash-kpis b { display: block; font-size: 16px; color: var(--text); }
.sport-dash-kpis span { font-size: 11px; color: var(--muted); }
.sport-dash-delta { font-size: 12px; font-weight: 600; color: var(--muted); }
.sport-dash-delta.is-up { color: var(--ok); }
.sport-dash-rank { grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
.sport-dash-rank__body { display: grid; gap: 6px; }
.sport-dash-rank__top { display: flex; justify-content: space-between; align-items: center; }
.sport-dash-rank__top b { font-size: 16px; color: var(--text); }
.sport-dash-rank__top em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--warn); display: inline-flex; align-items: center; gap: 3px; }
.sport-dash-rank__top em svg { width: 13px; height: 13px; }
.sport-dash-body .sport-body__views { margin: 0; padding: 0; box-shadow: none; background: none; border-radius: 0; }
.sport-dash-body .sport-body__svg { max-height: 200px; }
.sport-dash-rec { display: grid; grid-template-columns: 18px 1fr auto 52px; align-items: center; gap: 10px; font-size: 14px; }
.sport-dash-rec svg { width: 15px; height: 15px; color: var(--warn); }
.sport-dash-rec span { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sport-dash-rec b { color: var(--text); }
.sport-dash-rec em { font-style: normal; font-size: 11px; color: var(--muted); text-align: right; }

/* Silhouette interactive + récap d'un muscle (Progression) */
#sportVolume .sport-body__muscle[data-muscle], #sportVolume .sport-body__hit[data-muscle] { cursor: pointer; }
#sportVolume .sport-body__muscle[data-muscle]:hover { fill: color-mix(in srgb, var(--body-rest) 75%, var(--text)); }
.sport-body__selected { fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linejoin: round; pointer-events: none; }
.sport-volume__hint { text-align: center; font-size: 12px; color: var(--muted); margin-top: 8px; }
.sport-volume__row { cursor: pointer; border-radius: 10px; padding: 4px 6px; margin: -4px -6px; }
.sport-volume__row:hover, .sport-volume__row.is-selected { background: var(--surface-soft, rgba(127,127,127,.08)); }
.sport-mdetail { margin-top: 14px; padding: 14px; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--mcolor) 50%, transparent); background: var(--bg); display: grid; gap: 10px; }
.sport-mdetail__head { display: flex; align-items: center; gap: 8px; }
.sport-mdetail__head i { width: 10px; height: 10px; border-radius: 50%; background: var(--mcolor); }
.sport-mdetail__head b { font-size: 17px; color: var(--text); flex: 1; }
.sport-mdetail__head button { border: 0; background: var(--line); color: var(--text); width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1; }
.sport-mdetail__stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.sport-mdetail__stats b { display: block; font-size: 16px; color: var(--text); }
.sport-mdetail__stats span { font-size: 11px; color: var(--muted); }
.sport-mdetail__advice { font-size: 13px; color: var(--text); padding: 10px; border-radius: 10px; background: var(--surface-soft, rgba(127,127,127,.08)); }
.sport-mdetail__trend { font-size: 12px; font-weight: 600; color: var(--muted); }
.sport-mdetail__trend.is-up { color: var(--ok); }
.sport-mdetail__label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.sport-mdetail__ex { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.sport-mdetail__ex span { flex: 1; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sport-mdetail__ex em { font-style: normal; font-size: 12px; color: var(--muted); }
.sport-mdetail__ex b { font-size: 12px; color: var(--text); }

/* Rangs détaillés : carte, fenêtre « Rangs », promotion */
.sport-rankx-badge { display: inline-grid; place-items: center; border-radius: 28%; background: color-mix(in srgb, var(--rk) 18%, transparent); color: var(--rk); flex: none; }
.sport-rankx-badge svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sport-rankx-badge.is-dim { background: color-mix(in srgb, var(--muted) 10%, transparent); color: var(--muted); }
.sport-rankx-card { display: grid; gap: 10px; width: 100%; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-align: left; font: inherit; color: inherit; cursor: pointer; margin-bottom: 16px; }
.sport-rankx-card:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.sport-rankx-card[disabled] { cursor: default; margin-bottom: 0; }
.sport-dash-grid .sport-rankx-card { margin-bottom: 0; }
.sport-rankx-head { display: flex; align-items: center; gap: 12px; }
.sport-rankx-head div { flex: 1; display: grid; }
.sport-rankx-head b { font-size: 18px; color: var(--text); }
.sport-rankx-head div span { font-size: 12px; font-weight: 600; color: var(--muted); }
.sport-rankx-head em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--warn); display: inline-flex; align-items: center; gap: 3px; }
.sport-rankx-head em svg { width: 13px; height: 13px; }
.sport-rankx-chev { color: var(--muted); font-size: 20px; }
.sport-rankx-card[disabled] .sport-rankx-chev { display: none; }
.sport-rankx-bar { position: relative; height: 14px; border-radius: 999px; background: color-mix(in srgb, var(--line) 70%, transparent); }
.sport-rankx-bar__fill { position: absolute; inset: 0 auto 0 0; min-width: 12px; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--rk) 75%, transparent), var(--rk)); }
.sport-rankx-bar i { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--surface); }
.sport-rankx-bar b { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--surface); border: 3px solid var(--rk); box-sizing: border-box; }
.sport-rankx-ends { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--muted); }
.sport-rankx-left { font-size: 13px; font-weight: 600; color: var(--text); }

.sport-ranks { display: grid; gap: 18px; }
.sport-ranks section { display: grid; gap: 8px; }
.sport-ranks h4 { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sport-ranks-muted { margin: 0; font-size: 12px; color: var(--muted); }
.sport-ranks-step { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 12px; }
.sport-ranks-step div { flex: 1; display: grid; }
.sport-ranks-step b { font-size: 15px; color: var(--text); }
.sport-ranks-step span { font-size: 12px; color: var(--muted); }
.sport-ranks-step.is-locked b { color: var(--muted); }
.sport-ranks-step.is-current { background: color-mix(in srgb, var(--rk) 10%, transparent); }
.sport-ranks-step em { font-style: normal; }
.sport-ranks-step em svg { width: 16px; height: 16px; }
.sport-ranks-step em.is-done { color: var(--ok); }
.sport-ranks-step em.is-lock { color: var(--muted); }
.sport-ranks-step em.is-cur { font-size: 11px; font-weight: 700; color: #fff; background: var(--rk); padding: 4px 8px; border-radius: 999px; }
.sport-ranks-proj { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.sport-ranks-proj b { flex: 1; color: var(--text); }
.sport-ranks-proj span { color: var(--text); font-size: 13px; }
.sport-ranks-weeks { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 130px; align-items: end; padding-bottom: 16px; position: relative; }
.sport-ranks-weeks div { height: 100%; display: flex; align-items: flex-end; position: relative; }
.sport-ranks-weeks span { width: 100%; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--rk) 45%, transparent); min-height: 2px; }
.sport-ranks-weeks span.is-now { background: var(--rk); }
.sport-ranks-weeks em { position: absolute; bottom: -16px; left: 0; font-style: normal; font-size: 10px; color: var(--muted); white-space: nowrap; }
.sport-ranks-share { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.sport-ranks-share span { display: grid; }
.sport-ranks-share b { font-size: 14px; color: var(--text); }
.sport-ranks-share small { font-size: 11px; color: var(--muted); }
.sport-ranks-share input { width: 20px; height: 20px; accent-color: var(--primary); }
.sport-ranks-tabs { justify-self: start; }
.sport-ranks-player { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.sport-ranks-player.is-me { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.sport-ranks-player em { font-style: normal; width: 22px; font-weight: 700; color: var(--muted); }
.sport-ranks-player:first-child em { color: var(--warn); }
.sport-ranks-player div { flex: 1; display: grid; }
.sport-ranks-player b { font-size: 14px; color: var(--text); }
.sport-ranks-player span { font-size: 11px; color: var(--muted); }
.sport-ranks-player strong { font-size: 13px; color: var(--text); }
.sport-ranks-rule { display: flex; justify-content: space-between; font-size: 14px; color: var(--text); }
.sport-ranks-rule b { color: var(--primary); font-size: 13px; }

.sport-promo { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,0); transition: background .25s; }
.sport-promo.is-in { background: rgba(0,0,0,.55); }
.sport-promo__card { width: min(320px, 100%); display: grid; justify-items: center; gap: 10px; padding: 26px; border-radius: 28px; background: var(--surface); text-align: center; transform: scale(.85); opacity: 0; transition: transform .45s cubic-bezier(.2,1.4,.4,1), opacity .25s; }
.sport-promo.is-in .sport-promo__card { transform: scale(1); opacity: 1; }
.sport-promo__halo { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--rk) 25%, transparent); }
.sport-promo__kicker { font-size: 15px; font-weight: 700; color: var(--rk); }
.sport-promo__name { font-size: 30px; font-weight: 800; color: var(--text); }
.sport-promo p { margin: 0; font-size: 14px; color: var(--muted); }

/* Repos adaptatif, résumé de fin de séance, détail d'une séance */
.sport-timer-note { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.6); margin-top: 4px; }
.sport-summary { display: grid; gap: 16px; }
.sport-summary section { display: grid; gap: 8px; }
.sport-summary h4 { margin: 0; display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sport-summary__name { font-size: 15px; color: var(--muted); }
.sport-summary__xp { font-size: 17px; letter-spacing: 0; color: var(--primary); }
.sport-summary__prog { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.sport-summary__prog span { font-weight: 600; color: var(--text); }
.sport-summary__prog b { color: var(--ok); }
.sport-summary .sport-dash-rec { grid-template-columns: 18px 1fr; }
.sport-detail-set { display: flex; align-items: baseline; gap: 10px; font-size: 14px; padding: 2px 0; }
.sport-detail-set em { font-style: normal; width: 18px; font-size: 12px; font-weight: 700; color: var(--muted); }
.sport-detail-set b { color: var(--text); }
.sport-detail-set span { font-size: 12px; color: var(--muted); }
.sport-detail-set i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 2px 7px; border-radius: 999px; }
.sport-recent-session-row[data-sess-row] { cursor: pointer; }

/* Notes de séance, ressenti */
.sport-exnote-last { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 6px; }
.sport-summary .sport-exnote-last, .sport-detail-ex .sport-exnote-last { color: var(--muted); margin-top: 0; }
.sport-exnote-last svg, .sport-exnote-btn svg { width: 13px; height: 13px; flex: none; }
.sport-exnote-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; border: 0; background: none; padding: 0; cursor: pointer; font: 600 13px/1.3 inherit; color: var(--primary-soft, #9fb8d6); text-align: left; }
.sport-exnote-btn.has-note { color: rgba(255,255,255,0.85); }
.sport-feel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sport-feel button { border: 1px solid var(--line); background: var(--surface-soft, rgba(127,127,127,.08)); color: var(--text); border-radius: 10px; padding: 8px 2px; font: 600 12px/1.2 inherit; cursor: pointer; }
.sport-feel button.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.sport-detail-notes { padding: 10px 12px; border-radius: 12px; background: var(--surface-soft, rgba(127,127,127,.08)); }
.sport-detail-notes b { font-size: 14px; color: var(--text); }
.sport-detail-notes p { margin: 4px 0 0; font-size: 14px; color: var(--text); }
.sport-summary .button svg { width: 15px; height: 15px; vertical-align: -2px; }

/* Dashboard Sport : largeur et alignement des autres pages, cartes en colonnes sans trous */
.sport-dashboard-page.sport-dash { max-width: 1100px; margin: 0; padding: 0; }
.sport-dash .hl-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.sport-dash .hl-header h2 { margin: 0; font-size: 1.25rem; }
.sport-dash .hl-header p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.sport-dash .sport-dash-grid { display: block; columns: 3 320px; column-gap: 16px; }
.sport-dash .sport-dash-grid > * { break-inside: avoid; margin-bottom: 16px; width: 100%; box-sizing: border-box; display: grid; }
@media (max-width: 760px) { .sport-dash .sport-dash-grid { columns: 1; } }
.sport-dash .sport-dash-grid > * { display: inline-grid; vertical-align: top; }
.sport-dash .sport-dash-grid > #dashChallenge:empty { display: none; }
.sport-dashboard-page.sport-dash { max-width: none; }
.sport-dash .sport-dash-grid { columns: 4 300px; }
@media (max-width: 760px) { .sport-dash .sport-dash-grid { columns: 1; } }

/* Chrono d'effort (gainage, vélo…) */
.sport-effort { margin: 10px 0; }
.sport-effort__start { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 0; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font: 700 15px/1 inherit; cursor: pointer; }
.sport-effort__start svg { width: 16px; height: 16px; }
.sport-effort__run { display: grid; justify-items: center; gap: 8px; padding: 14px; border-radius: 12px; background: var(--primary-soft); }
.sport-effort__run[hidden], .sport-effort__start[hidden] { display: none; }
.sport-effort__run small { font-size: 12px; font-weight: 600; color: var(--muted); }
.sport-effort__time { font-size: 44px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.sport-effort__bar { width: 100%; height: 6px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.sport-effort__bar span { display: block; height: 100%; background: var(--primary); width: 0; }
.sport-effort__btns { display: flex; gap: 8px; width: 100%; }
.sport-effort__btns button { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 14px/1 inherit; cursor: pointer; }
.sport-effort__btns button[hidden] { display: none; }

/* Circuits au temps (EMOM / AMRAP / Tabata) */
.sport-timed { display: grid; gap: 12px; max-width: 520px; margin: 0 auto; text-align: center; }
.sport-timed__help, .sport-timed__len { color: var(--muted); font-size: 14px; margin: 0; }
.sport-timed__len { font-weight: 700; color: var(--text); }
.sport-timed__row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; }
.sport-timed__row span { color: var(--muted); }
.sport-timed__cap { font-size: 13px; font-weight: 700; color: var(--muted); }
.sport-timed__time { font-size: 64px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; line-height: 1; }
.sport-timed__time.is-rest { color: var(--muted); }
.sport-timed__ex { font-size: 26px; font-weight: 800; }
.sport-timed__target, .sport-timed__sum { color: var(--muted); font-size: 14px; }
.sport-timed .sport-validate-btn[disabled] { opacity: .5; }
.sport-superset-wrap__rest[hidden] { display: none !important; }
.sport-effort__time.is-over { color: var(--ok); }

/* Sport › Aujourd'hui (modèle Nutrition) */
.sport-today .sport-dash-week { margin: 2px 0; }
.sport-go { width: 52px; height: 52px; flex: none; border: 0; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sport-go svg { width: 20px; height: 20px; }
.sport-dash-doneline { width: 100%; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.sport-today__delta { font-style: normal; font-weight: 600; font-size: 12px; color: var(--muted); margin-right: 6px; }
.sport-today__delta.is-up { color: var(--ok); }
.sport-today__rank { display: flex; align-items: center; gap: 10px; border: 0; border-top: 1px solid var(--line); background: none; padding: 12px 0 0; margin-top: 2px; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.sport-today__rank > svg { width: 15px; height: 15px; color: var(--warn); }
.sport-today__rank b { font-size: 14px; }
.sport-today__rank span { font-size: 12px; color: var(--muted); font-weight: 600; flex: 1; }
.sport-today__rank em { font-style: normal; font-size: 12px; font-weight: 600; color: #e88c26; display: inline-flex; align-items: center; gap: 4px; }
.sport-today__rank em svg { width: 13px; height: 13px; }
.sport-today__rank i { font-style: normal; color: var(--muted); }
.sport-hist { display: flex; flex-direction: column; gap: 6px; }
.sport-hist .sport-recent-session-row { cursor: pointer; }
@media (min-width: 1100px) { .sport-today__tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.sport-qc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sport-qc__k { border: 0; border-radius: 12px; padding: 10px 6px; font: inherit; font-size: 12.5px; font-weight: 700; background: var(--surface-soft); color: var(--text); cursor: pointer; }
.sport-qc__k.is-on { background: var(--primary); color: #fff; }
.sport-exb { display: flex; flex-direction: column; gap: 10px; }
.sport-exb__chips { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 2px; }
.sport-exb__chips .sport-qc__k { flex: none; border-radius: 999px; padding: 6px 11px; }
.sport-exb__list { display: flex; flex-direction: column; max-height: 55vh; overflow-y: auto; }
.sport-exb__row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.sport-exb__row i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sport-exb__row span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sport-exb__row b { font-size: 14px; }
.sport-exb__row small { font-size: 12px; color: var(--muted); }
.sport-exb__row em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--primary); }

/* Sport › Aujourd'hui sur écran large (12/11) : la page + une colonne « Dernières séances / Cette semaine ». */
.sport-today-wrap { display: grid; gap: 16px; align-items: start; }
.sport-today__side { display: grid; gap: 14px; align-content: start; }
.sport-today__row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.sport-today__row.is-static { cursor: default; }
.sport-today__row:first-of-type { border-top: 0; }
.sport-today__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.sport-today__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sport-today__txt b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sport-today__txt small { color: var(--muted); font-size: 12px; }
.sport-today__row i { color: var(--muted); font-style: normal; }
@media (min-width: 1100px) {
  .sport-today-wrap { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); }
  .sport-today-wrap .sport-today__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.sport-today-wrap > .sport-today { max-width: none; margin: 0; width: auto; }
/* Programmes et Calendrier alignés sur les onglets du module, plus larges sur écran large (12/11). */
@media (min-width: 1100px) {
  .has-mnav .sport-progs, .has-mnav .sport-planning-page { max-width: 1000px; margin-left: 0; margin-right: auto; }
}

/* ══ Multisport (FP-006, comme l'app) : Ajouter une activité, historique, détail ══ */
.ms { display: grid; gap: 12px; }
.ms-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ms-tile { display: grid; justify-items: center; gap: 4px; min-height: 72px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.ms-tile .fp-ic { width: 22px; height: 22px; color: var(--primary); }
.ms-tile b { font-size: 13px; }
.ms-tile.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.ms-tile.is-on .fp-ic { color: #fff; }
.ms-var { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ms-var:empty { display: none; }
.ms-chip { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.ms-chip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.ms-card { display: grid; padding: 0 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ms-row { display: flex; align-items: center; gap: 8px; min-height: 48px; border-top: 1px solid var(--line); font-size: 14px; }
.ms-card > .ms-row:first-child, .ms-card > .ms-row[hidden] + .ms-row:not([hidden]) { border-top: 0; }
.ms-row[hidden] { display: none; }
.ms-row > span:first-child { flex: 1; display: grid; }
.ms-row > span:first-child small { color: var(--muted); font-size: 11px; }
.ms-row b { font-variant-numeric: tabular-nums; }
.ms-row input[type="datetime-local"] { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: var(--surface-soft); color: var(--text); }
.ms-in, .ms-dur input { width: 72px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); color: var(--text); font: inherit; font-weight: 700; text-align: right; }
.ms-dur { display: inline-flex; align-items: center; gap: 4px; }
.ms-dur input { width: 56px; }
.ms-tag { font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 7px; border: 1px solid var(--muted); border-radius: 8px; color: var(--muted); }
.ms-tag.is-ok { border-color: var(--ok); color: var(--ok); }
.ms-more { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ms-more small { flex: 1; color: var(--muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-rpe { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.ms-rpe button { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.ms-rpe button.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.ms-muted { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 0; }
.ms-issues p { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.ms-issues .is-bad { color: var(--bad); }
.ms-issues .is-warn { color: var(--warn); }
.ms-check { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--warn-bg); color: var(--text); }
.ms-check p { margin: 0; font-size: 13px; color: var(--muted); }
.ms-check__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ms-hist-chips { margin-bottom: 8px; }
.ms-hist-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--ms-c); background: color-mix(in srgb, var(--ms-c) 14%, transparent); }
.ms-hist-ic .fp-ic { width: 17px; height: 17px; }
.ms-hist-fig { display: grid; justify-items: end; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ms-hist-fig small { color: var(--muted); }
.ms-hist-row { gap: 10px; align-items: center; }

/* ══ Progrès (comme l'app) ══ */
.sp-prog { display: grid; gap: 14px; max-width: 900px; }
.sp-tabs { margin: 0; }
.sp-filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sp-filters--end { justify-content: flex-end; }
.sp-sel { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.sp-sel select { border: 0; background: none; color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; padding: 6px 2px; }
.sp-filters .sp-sel:last-child:not(:first-child) { margin-left: auto; }
.sp-card { display: grid; gap: 12px; }
.sp-card .pl2-eyebrow .fp-ic { width: 14px; height: 14px; vertical-align: -2px; }
.sp-big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sp-big b { font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.sp-big span { color: var(--muted); font-weight: 600; }
.sp-trend { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); margin-left: auto; }
.sp-trend.is-up { color: var(--ok); }
.sp-trend.is-down { color: var(--warn); }
.sp-bars { width: 100%; height: 160px; color: var(--text); }
.sp-stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; border-top: 1px solid var(--line); padding-top: 12px; }
.sp-stats--3 { grid-template-columns: repeat(3, 1fr); border-top: 0; padding-top: 0; }
.sp-stats b { display: block; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sp-stats--3 b { font-size: 24px; }
.sp-stats span { font-size: 11px; color: var(--muted); font-weight: 600; }
.sp-center { text-align: center; display: block; }
.sp-line { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 6px 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.sp-card .sp-line:first-of-type, .sp-list > .sp-line:first-child { border-top: 0; }
.sp-line__t { flex: 1; min-width: 0; display: grid; }
.sp-line__t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-line__t small { color: var(--muted); font-size: 11px; }
.sp-line em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-line em.is-ok, .sp-pct.is-ok { color: var(--ok); }
.sp-pct.is-warn { color: var(--warn); }
.sp-pct { width: 52px; text-align: right; font-size: 12px; color: var(--muted); }
.sp-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; flex: none; }
.sp-ic.is-ok { color: var(--ok); background: var(--ok-bg); }
.sp-ic .fp-ic { width: 14px; height: 14px; }
.sp-list { padding-top: 4px; padding-bottom: 4px; }
.sp-fold { display: flex; justify-content: space-between; width: 100%; min-height: 46px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.sp-best { display: grid; gap: 6px; padding: 14px; border: 0; border-radius: 18px; background: var(--ok-bg); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.sp-best > small:first-child { color: var(--ok); font-weight: 700; letter-spacing: 1.1px; font-size: 11px; }
.sp-best span { display: flex; justify-content: space-between; gap: 8px; }
.sp-best b { font-size: 16px; }
.sp-best em { font-style: normal; font-size: 18px; font-weight: 800; color: var(--ok); }
.sp-reg { display: grid; grid-auto-flow: row; align-items: center; }
.sp-reg i { aspect-ratio: 1; border-radius: 3px; background: var(--surface-soft); max-width: 22px; }
.sp-reg i.is-future { background: transparent; }
.sp-reg i.is-today { outline: 1px solid color-mix(in srgb, var(--text) 50%, transparent); }
.sp-reg__l { font-size: 8px; font-weight: 700; color: var(--muted); }
.sp-stack { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; }
.sp-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 12px; }
.sp-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.sp-weeks { display: flex; gap: 6px; }
.sp-weeks i { flex: 1; height: 28px; border-radius: 8px; background: var(--surface-soft); }
.sp-weeks i.is-on { background: var(--primary); }
.sp-todo { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: var(--primary-soft); }
.sp-todo > small { color: var(--primary); font-weight: 700; letter-spacing: 1.1px; font-size: 11px; }
.sp-todo span { display: flex; justify-content: space-between; gap: 8px; }
.sp-todo em { font-style: normal; color: var(--primary); font-weight: 600; font-size: 13px; }
.sp-bal { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
.sp-bal small { color: var(--muted); font-weight: 700; }
.sp-bal__bar { height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--primary) 25%, var(--surface-soft)); overflow: hidden; }
.sp-bal__bar span { display: block; height: 100%; background: var(--primary); }
.sp-tip { margin: 0; display: flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; color: var(--primary); }
.sp-tip .fp-ic { width: 14px; height: 14px; }
.sp-prog .sport-volume__period { display: none; }
@media (max-width: 560px) { .sp-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; } .ms-row input[type="datetime-local"] { max-width: 180px; } }
.sp-bars { height: 140px; }
.sp-bars__x { display: flex; gap: 2px; margin-top: -6px; font-size: 11px; color: var(--muted); }
.sp-bars__x span { flex: 1; text-align: center; white-space: nowrap; overflow: visible; }
.sp-prog { margin: 0; }
.sp-prog { grid-template-columns: minmax(0, 1fr); width: 100%; }
.sp-prog > * { min-width: 0; }
.sp-tabs { overflow-x: auto; }
@media (max-width: 560px) { .sp-stats--3 { grid-template-columns: repeat(3, 1fr); } }
.ms, .ms > * { min-width: 0; max-width: 100%; }
.ms-grid > *, .ms-var > * { min-width: 0; }
.ms-row input[type="datetime-local"] { min-width: 0; max-width: 62%; }
@media (max-width: 560px) { .ms-in { width: 64px; } .ms-dur input { width: 48px; } }

/* ══ Bilan annuel + Lettres (FP-007/008, comme l'app) ══ */
:root { --wr-coral: #d5604f; --wr-teal: #16897c; --wr-amber: #b9750e; --wr-violet: #6b4cd6; }
@media (prefers-color-scheme: dark) { :root { --wr-coral: #e5776a; --wr-teal: #2bb3a3; --wr-amber: #f2a93b; --wr-violet: #9b7cf0; } }
.wr { display: grid; gap: 14px; }
.wr-bars { display: flex; gap: 4px; }
.wr-bars i { flex: 1; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--text) 22%, transparent); }
.wr-bars i.is-on { background: var(--text); }
.wr-page { display: grid; gap: 14px; min-height: 380px; align-content: start; }
.wr-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; }
.wr-h1 { margin: 0; font-size: clamp(32px, 7vw, 44px); line-height: 1.05; font-weight: 800; }
.wr-h2 { margin: 0; font-size: 28px; line-height: 1.1; font-weight: 800; }
.wr-big { font-size: 80px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.wr-sub { margin: 0; font-size: 19px; font-weight: 700; }
.wr-lead { font-size: 18px; }
.wr-muted { color: var(--muted); margin: 0; font-size: 14px; }
.wr-tiles { display: flex; gap: 10px; }
.wr-tile { flex: 1; display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: var(--surface-soft); }
.wr-tile b { font-size: 22px; font-weight: 800; }
.wr-tile small { color: var(--muted); font-size: 12px; }
.wr-weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(10px, 1fr)); gap: 3px; }
.wr-weeks i { aspect-ratio: 1; border-radius: 3px; background: var(--surface-soft); }
.wr-weeks i.is-on { background: var(--wr-teal); }
.wr-weeks i.is-future { opacity: .35; }
.wr-card { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--surface-soft); }
.wr-card--row { display: flex; align-items: center; gap: 12px; }
.wr-card--row .fp-ic { width: 22px; height: 22px; color: var(--wr-amber); flex: none; }
.wr-card--row span, .wr-row span { display: grid; }
.wr-card small, .wr-row small { color: var(--muted); font-size: 12px; }
.wr-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; }
.wr-row em { font-style: normal; font-weight: 800; white-space: nowrap; }
.wr-row i { font-style: normal; font-weight: 800; margin-right: 6px; }
.wr-bar { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--text) 12%, transparent); overflow: hidden; }
.wr-bar span { display: block; height: 100%; background: var(--wr-violet); }
.wr-thin { display: grid; gap: 4px; font-size: 13px; }
.wr-toggle { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--surface-soft); cursor: pointer; }
.wr-toggle span { display: grid; }
.wr-toggle small { color: var(--muted); font-size: 12px; }
.wr-nav { display: flex; justify-content: space-between; gap: 10px; }
.wr-share { display: grid; gap: 10px; padding: 20px; border-radius: 20px; background: linear-gradient(160deg, #f5f2ec, #eae5dc); color: #1c120f; }
.wr-share small:first-child { font-weight: 800; letter-spacing: 2px; font-size: 12px; }
.wr-share h3 { margin: 0; font-size: 24px; }
.wr-share p { margin: 0; }
.wr-share .wr-tile { background: rgba(255, 255, 255, .6); }
.wr-share .wr-tile small, .wr-share .wr-muted { color: #5e6270; }
.wr-share__big b { font-size: 56px; font-weight: 800; margin-right: 8px; }
.wr-letter { display: flex; align-items: center; gap: 8px; padding: 14px; border: 0; border-radius: 14px; background: color-mix(in srgb, var(--wr-violet) 16%, transparent); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.wr-letter b { margin-left: auto; color: var(--wr-violet); }
.wr-letter .fp-ic { width: 16px; height: 16px; }
.wr-list { display: grid; gap: 10px; }
.wr-yr { display: flex; align-items: center; justify-content: space-between; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.wr-yr span { display: grid; }
.wr-yr b { font-size: 17px; }
.wr-yr small { color: var(--muted); font-size: 12px; }
.wr-yr.is-locked { opacity: .6; cursor: default; }
.wr-yr .fp-ic { width: 14px; height: 14px; }
.wr-lrow { display: flex; align-items: center; gap: 8px; }
.wr-lrow__main { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.wr-lrow__main:disabled { cursor: default; }
.wr-lrow__main .fp-ic { width: 18px; height: 18px; color: var(--wr-violet); flex: none; }
.wr-lrow__main span { flex: 1; display: grid; }
.wr-lrow__main small { color: var(--muted); font-size: 12px; }
.wr-lrow__main em { font-style: normal; font-weight: 700; color: var(--wr-violet); }
.wr-msg { margin: 0; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--wr-violet) 10%, transparent); font-size: 16px; line-height: 1.5; }
.wr-write { display: grid; gap: 10px; }
.wr-date { width: auto; }
.wr-entry { display: grid; gap: 8px; }
.wr-entry__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wr-small { display: flex; align-items: center; gap: 8px; padding: 12px; border: 0; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.wr-small .fp-ic { width: 15px; height: 15px; color: var(--primary); flex: none; }
.wr-small span { display: grid; min-width: 0; }
.wr-small b { font-size: 13px; }
.wr-small small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wr-date { width: 100%; flex-basis: 100%; min-width: 0; }

/* ══ Programmes (comme l'app, 06/11) ══ */
.sp-prog-card { display: grid; padding: 14px 16px 4px; margin-bottom: 12px; }
.sp-prog-card__hd { display: flex; align-items: center; gap: 6px; padding-bottom: 8px; }
.sp-prog-card__fold { flex: 1; display: flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; padding: 0; min-height: 44px; }
.sp-prog-card__fold > i { width: 6px; height: 34px; border-radius: 3px; flex: none; }
.sp-prog-card__fold > span { flex: 1; display: grid; }
.sp-prog-card__fold b { font-size: 17px; }
.sp-prog-card__fold small { color: var(--muted); font-size: 12px; }
.sp-prog-card__fold em { font-style: normal; color: var(--muted); transition: transform .15s; }
.sp-prog-card__fold em.is-folded { transform: rotate(-90deg); }
.sp-menu { position: relative; }
.sp-menu__btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 20px; font-weight: 800; cursor: pointer; }
.sp-menu__btn:hover { background: var(--surface-soft); }
.sp-menu__list { position: absolute; right: 0; top: 42px; z-index: 20; display: grid; min-width: 200px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-md); }
.sp-menu__list button { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.sp-menu__list button:hover { background: var(--surface-soft); }
.sp-menu__list button.is-bad { color: var(--bad); }
.sp-menu__list .fp-ic { width: 15px; height: 15px; }
.sp-wk { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.sp-wk__main { flex: 1; min-width: 0; display: grid; gap: 4px; padding: 10px 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.sp-wk__main span { display: flex; align-items: center; gap: 6px; }
.sp-wk__main b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-wk__main small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-wk__main small.is-warn { color: var(--warn); font-weight: 700; }
.sp-wk__next { font-style: normal; font-size: 9px; font-weight: 800; color: var(--primary); background: var(--primary-soft); padding: 2px 6px; border-radius: 999px; }
.sp-wk__share { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; flex: none; }
.sp-wk__go { height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; flex: none; }
.sp-wk__play { width: 34px; height: 34px; border: 1.5px solid var(--line); border-radius: 50%; background: none; color: var(--primary); font-size: 11px; cursor: pointer; flex: none; }
.sp-prog-card__add { min-height: 44px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--primary); font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.sport-exb__item { display: flex; align-items: center; gap: 6px; }
.sport-exb__item .sport-exb__row { flex: 1; min-width: 0; }
.sport-exb__dup { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sport-exb__dup s { color: var(--muted); font-size: 13px; grid-column: 1 / -1; }
.sport-exb__item > .nt-link { font-size: 12px; white-space: nowrap; }
.sp-menu__list[hidden] { display: none; }
.sp-calmodes { margin-bottom: 12px; }
.sp-alllist { padding-top: 6px; padding-bottom: 6px; }
.sp-allmonth { padding: 12px 0 4px; text-transform: capitalize; }
.sp-alllist .sp-line { border-top: 1px solid var(--line); }

/* Sport › Aujourd'hui (canevas du 1/12, comme l'app) */
.sh { display: grid; gap: 12px; max-width: 720px; }
.sh-done { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 46px; padding: 0 14px; border: 0; border-radius: 16px; background: rgba(47, 158, 107, .12); font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.sh-done svg { width: 14px; height: 14px; color: var(--ok, #2f9e6b); flex: none; }
.sh-done b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-done span { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ok, #2f9e6b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-comeback { display: flex; gap: 10px; padding: 14px; align-items: flex-start; }
.sh-comeback > i { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
.sh-comeback > i svg { width: 15px; height: 15px; }
.sh-comeback b { font-size: 14px; } .sh-comeback p { margin: 3px 0 0; font-size: 12px; color: var(--muted); } .sh-comeback small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.sh-today { display: grid; gap: 10px; padding: 16px; border-radius: 22px; }
.sh-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.sh-eyebrow em, .sh-eyebrow b { margin-left: auto; font-style: normal; letter-spacing: 0; font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-eyebrow b { font-weight: 700; font-size: 13px; color: var(--text); }
.sh-title { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.15; color: var(--text); }
.sh-title--link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; border: 0; background: none; font-family: inherit; text-align: left; cursor: pointer; }
.sh-title--link i { font-style: normal; font-size: 18px; color: var(--muted); }
.sh-line { margin: 0; font-size: 13px; color: var(--muted); }
.sh-start { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; border: 0; border-radius: 16px; background: var(--primary); color: #fff; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.sh-start svg { width: 18px; height: 18px; }
.sh-other { min-height: 36px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--primary); cursor: pointer; }
.sh-week { display: grid; gap: 12px; padding: 18px; }
.sh-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.sh-day { display: grid; justify-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--muted); }
.sh-day.is-today { color: var(--primary); }
.sh-day i { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: #fff; box-sizing: border-box; }
.sh-day i.is-done { background: var(--primary); border-color: var(--primary); }
.sh-day i.is-planned { border: 1.5px dashed var(--primary); }
.sh-day i svg { width: 12px; height: 12px; }
.sh-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--surface, #fff); font: inherit; font-size: 14px; color: var(--text); cursor: pointer; text-align: left; }
.sh-row b { white-space: nowrap; } .sh-row > span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-row em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.sh-row i { font-style: normal; color: var(--muted); margin-left: auto; }
.sh-row em + i { margin-left: 4px; }
.sh-trophy { width: 28px; height: 28px; flex: none; border-radius: 8px; background: rgba(232, 163, 60, .15); color: #c98a00 !important; display: inline-flex; align-items: center; justify-content: center; }
.sh-trophy svg { width: 14px; height: 14px; }
.sh-muted { color: var(--muted); }
.sh-preview { display: grid; gap: 12px; }
.sh-prow { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sh-prow:first-child { border-top: 0; } .sh-prow span { color: var(--muted); white-space: nowrap; }
.sh-sheet { display: grid; gap: 12px; }
.sh-next { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border: 2px solid var(--primary); border-radius: 18px; background: var(--primary-soft); font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.sh-next__ic { color: var(--primary); display: inline-flex; } .sh-next__ic svg { width: 20px; height: 20px; }
.sh-next span:last-child { display: grid; gap: 2px; } .sh-next small { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--primary); }
.sh-next b { font-size: 17px; } .sh-next em { font-style: normal; font-size: 12px; color: var(--muted); }
.sh-list { padding: 0 14px; overflow: hidden; }
.sh-list > button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); text-align: left; cursor: pointer; }
.sh-list > button:first-child { border-top: 0; }
.sh-list > button > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.sh-list span { display: grid; } .sh-list small { font-size: 11px; color: var(--muted); font-weight: 400; }
.sh-bar { width: 4px; height: 26px; border-radius: 2px; flex: none; }
.sh-play { margin-left: auto; color: var(--primary); display: inline-flex; } .sh-play svg { width: 12px; height: 12px; }
.sh-fold { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 14px; border: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer; text-align: left; }
.sh-fold > svg { width: 18px; height: 18px; color: var(--muted); }
.sh-fold em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 400; color: var(--muted); }
.sh-fold i { font-style: normal; color: var(--muted); transition: transform .2s; } .sh-fold.is-open i { transform: rotate(90deg); }
.sh-dash { border: 1px dashed var(--line); border-radius: 16px; padding: 0 14px; }
.sh-dash button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); text-align: left; cursor: pointer; }
.sh-dash button > svg { width: 18px; height: 18px; color: var(--muted); } .sh-dash span { display: grid; } .sh-dash small { font-size: 12px; font-weight: 400; color: var(--muted); }

/* Calendrier (canevas du 1/12, comme l'app) */
.sc { display: grid; gap: 14px; max-width: 720px; }
.sc-head { display: flex; align-items: center; gap: 8px; }
.sc-head h3 { margin: 0; font-size: 18px; font-weight: 800; white-space: nowrap; }
.sc-head > span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: auto; }
.sc-head h3 + .sc-arrow { margin-left: auto; }
.sc-arrow { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-soft, #eef1f5); font: inherit; font-size: 18px; font-weight: 700; color: var(--text); cursor: pointer; line-height: 1; }
.sc-mode { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--primary); cursor: pointer; padding: 0 4px; min-height: 34px; }
.sc-week { padding: 0 14px; }
.sc-row { display: flex; align-items: center; gap: 12px; min-height: 50px; border-top: 1px solid var(--line); cursor: pointer; }
.sc-week > .sc-row:first-child { border-top: 0; }
.sc-row.is-today { min-height: 58px; margin: 0 -4px; padding: 0 10px; border-radius: 12px; border-top-color: transparent; background: var(--primary-soft); }
.sc-row.is-today + .sc-row, .sc-row.is-today + .sc-inline + .sc-row { border-top-color: transparent; }
.sc-day { width: 52px; flex: none; font-size: 11px; font-weight: 800; color: var(--muted); }
.sc-row.is-today .sc-day { color: var(--primary); }
.sc-row b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-ok { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--ok, #2f9e6b); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.sc-ok svg { width: 11px; height: 11px; }
.sc-plan { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px dashed var(--primary); box-sizing: border-box; }
.sc-rest { font-size: 13px; color: var(--muted); }
.sc-dur { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--ok, #2f9e6b); white-space: nowrap; }
.sc-go { margin-left: auto; padding: 0 12px; min-height: 34px; display: inline-flex; align-items: center; border-radius: 10px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; }
.sc-chev { margin-left: auto; color: var(--muted); font-size: 12px; }
.sc-inline { padding: 12px; margin-bottom: 12px; border-radius: 14px; background: var(--surface-soft, #eef1f5); }
.sc-daycard { padding: 16px; }
.sc-actions { display: flex; }
.sc-planbtn { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--primary); cursor: pointer; padding: 0; min-height: 36px; }
.sc-hist { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; padding: 0 14px; border: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.sc-hist i { font-style: normal; transition: transform .2s; } .sc-hist.is-open i { transform: rotate(90deg); }

/* Progrès sur une page (canevas du 1/12, comme l'app) */
.pp-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pp-fig { display: grid; gap: 2px; padding: 12px; border-radius: 16px; background: var(--surface, #fff); }
.pp-fig b { font-size: 20px; font-weight: 800; } .pp-fig span { font-size: 12px; color: var(--muted); }
.pp-fig em { font-style: normal; font-size: 11px; font-weight: 600; } .pp-fig em.is-up { color: var(--ok, #2f9e6b); } .pp-fig em.is-down { color: #c98a00; }
.pp-doors { padding: 0 14px; }
.pp-door { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.pp-doors > .pp-door:first-child { border-top: 0; }
.pp-door b { font-size: 15px; font-weight: 600; } .pp-door span { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-door span.is-warn { color: #c98a00; } .pp-door i { font-style: normal; color: var(--muted); } .pp-door b + i { margin-left: auto; }
.pp-back { display: flex; align-items: center; gap: 12px; }
.pp-back button { border: 0; background: none; font: inherit; font-weight: 700; color: var(--primary); cursor: pointer; padding: 6px 0; }
.pp-back b { font-size: 17px; }

/* Séance en cours (canevas du 1/12, comme l'app) */
.ls-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.ls-head__t { display: grid; min-width: 0; flex: 1; }
.ls-head__t b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-head__t small { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
.ls-end { padding: 0 14px; min-height: 40px; border: 0; border-radius: 12px; background: rgba(47, 158, 107, .16); color: var(--ok, #2f9e6b); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.ls-rest { display: grid; gap: 12px; padding: 16px; margin-bottom: 14px; border-radius: 18px; background: rgba(217, 89, 111, .12); border: 1px solid rgba(217, 89, 111, .35); }
.ls-rest__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ls-rest small { font-size: 11px; font-weight: 700; letter-spacing: .1em; opacity: .75; }
.ls-rest .sport-timer-time { font-size: 34px; }
.ls-rest__next { display: grid; text-align: right; max-width: 140px; } .ls-rest__next b { font-size: 13px; }
.ls-rest__note { font-size: 12px; opacity: .8; }
.ls-rest__btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.ls-rest__btns button { min-height: 42px; border: 1px solid currentColor; border-radius: 12px; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; opacity: .9; }
.ls-rest__btns .is-primary { background: #d9596f; border-color: #d9596f; color: #fff; opacity: 1; }
.ls-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.ls-chip { padding: 6px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; background: rgba(127, 127, 127, .15); }
.ls-chip.is-goal { background: rgba(232, 163, 60, .18); color: #e8a33c; }
.ls-table { display: grid; gap: 8px; margin: 6px 0; }
.ls-row { display: grid; grid-template-columns: 40px 1fr 1fr 48px; gap: 8px; align-items: center; text-align: center; }
.ls-row > b { text-align: left; font-size: 15px; }
.ls-row--head { font-size: 11px; font-weight: 700; letter-spacing: .08em; opacity: .65; }
.ls-row--head b { font-size: 11px; }
.ls-row.is-done { opacity: .6; font-size: 16px; }
.ls-row.is-next { opacity: .5; font-size: 16px; }
.ls-row.is-current > b { color: var(--primary-light, #7aa2ff); }
.ls-ok { width: 36px; height: 36px; border-radius: 50%; background: var(--ok, #2f9e6b); color: #fff; display: inline-flex; align-items: center; justify-content: center; justify-self: center; }
.ls-ok svg { width: 14px; height: 14px; }
.ls-cell { width: 100%; min-height: 46px; box-sizing: border-box; border: 2px solid transparent; border-radius: 12px; background: rgba(127, 127, 127, .15); color: inherit; font: inherit; font-size: 18px; font-weight: 800; text-align: center; -moz-appearance: textfield; }
.ls-cell:focus { outline: none; border-color: var(--primary-light, #7aa2ff); }
.ls-cell::-webkit-outer-spin-button, .ls-cell::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ls-check { width: 44px; height: 44px; justify-self: center; border-radius: 50%; border: 2px solid var(--primary-light, #7aa2ff); background: none; color: var(--primary-light, #7aa2ff); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ls-check svg { width: 18px; height: 18px; }
.ls-nudges { display: grid; grid-template-columns: 40px 1fr 1fr 48px; gap: 8px; }
.ls-nudges > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ls-nudges button { min-height: 30px; border: 0; border-radius: 99px; background: rgba(127, 127, 127, .12); color: inherit; font: inherit; font-size: 12px; font-weight: 700; opacity: .8; cursor: pointer; }
.ls-more { width: 100%; min-height: 44px; border: 0; background: none; color: inherit; font: inherit; font-size: 14px; font-weight: 600; opacity: .7; text-align: left; padding-left: 4px; cursor: pointer; }
.ls-rest .sport-timer-time { color: inherit !important; }

/* Moteur Sport : retours, propositions, mémoire (comme l'app) */
.fb { display: grid; gap: 12px; }
.fb-muted { margin: 0; font-size: 13px; color: var(--muted); }
.fb-note { padding: 12px; border-radius: 14px; background: var(--primary-soft); font-size: 13px; color: var(--text); }
.fb-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.fb-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.fb-chip { min-height: 44px; padding: 0 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface, #fff); font: inherit; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.fb-chip.is-on { border: 2px solid var(--primary); background: var(--primary-soft); }
.fb-link { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--primary); cursor: pointer; min-height: 40px; padding: 0; }
.fb-link.is-muted { color: var(--muted); }
.fb-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.fb-list { display: grid; border-radius: 16px; background: var(--surface, #fff); border: 1px solid var(--line); overflow: hidden; }
.fb-list button { display: grid; gap: 2px; padding: 14px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.fb-list button:first-child { border-top: 0; }
.fb-list b { font-size: 15px; } .fb-list small { font-size: 12px; color: var(--muted); }
.fb-prog h4 { margin: 0 0 6px; }
.fb-prow { display: grid; gap: 4px; padding: 8px 0; border-top: 1px solid var(--line); }
.fb-prow:first-of-type { border-top: 0; }
.fb-prow__top { display: flex; justify-content: space-between; gap: 8px; } .fb-prow__top em { font-style: normal; font-weight: 700; color: var(--ok, #2f9e6b); white-space: nowrap; }
.fb-prow small { font-size: 12px; color: var(--muted); }
.fb-pill { justify-self: start; padding: 0 14px; min-height: 36px; border: 0; border-radius: 99px; background: var(--primary-soft); color: var(--primary); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.fb-ok { font-size: 13px; font-weight: 700; color: var(--ok, #2f9e6b); }
.fb-warn { font-size: 12px; font-weight: 600; color: #c98a00; }
.fb-effort { display: grid; gap: 10px; margin-bottom: 10px; }
.fb-effort__t { display: flex; align-items: baseline; gap: 8px; } .fb-effort__t small { color: var(--muted); }
.fb-effort__q { font-size: 14px; font-weight: 600; }
.fb-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fb-seg button { min-height: 44px; border: 0; border-radius: 12px; background: var(--surface-soft, #eef1f5); font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; }
.fb-seg button.is-on { background: var(--primary); color: #fff; font-weight: 700; }
.fb-card { display: grid; gap: 10px; padding: 14px; }
.fb-card__top { display: flex; gap: 10px; align-items: flex-start; }
.fb-card__top > i, .fb-card--prop > i { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-style: normal; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.fb-card__top b { font-size: 15px; } .fb-card__top small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.fb-card--prop { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.fb-card--prop > i svg { width: 15px; height: 15px; }
.fb-card--prop span { display: grid; flex: 1; } .fb-card--prop small { font-size: 12px; color: var(--muted); } .fb-card--prop em { font-style: normal; color: var(--muted); }
.fb-light { padding: 12px; border-radius: 14px; background: rgba(47, 158, 107, .12); color: var(--ok, #2f9e6b); font-size: 13px; font-weight: 600; }
.fb-mem { padding: 0 14px; }
.fb-mrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; border-top: 1px solid var(--line); }
.fb-mem > .fb-mrow:first-child { border-top: 0; }
.fb-mrow span { display: grid; } .fb-mrow small { font-size: 12px; color: var(--muted); }
/* Malade / blessé / en pause vu depuis Sport (audit du 3/12) */
.sh-pause { display: grid; gap: 12px; padding: 16px; }
.sh-pause > b { font-size: 16px; line-height: 1.35; }
.sh-pause__box { padding: 12px; border-radius: 12px; background: var(--surface-soft, rgba(127,127,127,.08)); display: grid; gap: 3px; }
.sh-pause__box small { font-size: 12px; font-weight: 700; color: var(--muted); }
.sh-pause__box p { margin: 0; font-size: 14px; }
.sh-pause__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sh-pause__btns button { min-height: 48px; }
.sh-xphint { margin: -4px 6px 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.sh-xphint button { border: 0; background: none; padding: 0 0 0 6px; font-family: inherit; font-size: 12px; font-weight: 700; color: var(--primary); cursor: pointer; }
.sh-xphint svg { width: 13px; height: 13px; vertical-align: -2px; }
/* Séries cliquables pendant la séance (4/12) */
button.ls-row.ls-tap { width: 100%; border: 0; background: none; font-family: inherit; font-size: inherit; color: inherit; cursor: pointer; border-radius: 10px; }
button.ls-row.ls-tap:hover { background: var(--surface-soft, rgba(127,127,127,.08)); }
.ls-row.is-planned { color: var(--text) !important; opacity: 1 !important; }
.ls-pen svg { width: 13px; height: 13px; opacity: .6; }
.ls-step { display: grid; grid-template-columns: 64px 1fr 64px; gap: 8px; }
.ls-step button { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-family: inherit; font-weight: 700; cursor: pointer; }
