/* ═══════════════════════════════════════════════
   training.css — Экран «Тренировки» v5.5
   Токены: tokens.css · Кнопки: styles.css
   Модалки: общие в styles.css, здесь только контент
   ═══════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════
   ЭКРАН
   ═══════════════════════════════════════════════ */
.tr-screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 32px;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════
   КАРТОЧКИ
   ═══════════════════════════════════════════════ */
.tr-card {
  background: var(--card-bg);
  border-radius: var(--r-card);
  position: relative;
  overflow: hidden;
}

.tr-card--light {
  background: rgba(255, 255, 255, 0.05);
}

/* ═══════════════════════════════════════════════
   1. HERO
   ═══════════════════════════════════════════════ */
.tr-hero {
  padding: 24px var(--card-px, 16px) 24px;
  position: relative;
  overflow: hidden;
}

.tr-hero-bg-img {
  position: absolute !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110% !important;
  max-width: 400px;
  height: auto !important;
  max-height: 180px;
  opacity: 1.0;
  object-fit: contain;
  pointer-events: none;
  z-index: 0 !important;
}

.tr-hero-header,
.tr-hero-chips,
.tr-hero-stats {
  position: relative;
  z-index: 1;
}

.tr-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.tr-hero-header-left {
  display: flex;
  flex-direction: column;
}

.tr-hero-name {
  font-size: var(--fs-24-semibold);
  font-weight: var(--fw-24-semibold);
  line-height: 33px;
  color: var(--text);
}

.tr-hero-meta {
  font-size: var(--fs-12-regular);
  font-weight: var(--fw-12-regular);
  line-height: 1.3;
  color: var(--text3);
  margin-top: 2px;
}

.tr-hero-badge {
  font-size: var(--fs-12-light, 12px);
  font-weight: var(--fw-12-light, 300);
  line-height: 1;
  color: var(--text3);
  flex-shrink: 0;
}

.tr-hero-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.tr-hero-chip {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-10-regular);
  font-weight: var(--fw-10-regular);
  color: var(--training);
  background: rgba(0, 204, 136, 0.10);
  border-radius: var(--r-pill);
  padding: var(--chip-py, 3px) var(--chip-px, 8px);
  line-height: var(--lh-14, 14px);
}

.tr-hero-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.tr-hero-stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tr-hero-stat-block:first-child {
  align-items: flex-start;
}

.tr-hero-stat-num {
  font-size: var(--fs-24-semibold);
  font-weight: 600;
  line-height: 1;
  color: var(--text);
}

.tr-hero-stat-label {
  font-size: var(--fs-12-light, 12px);
  font-weight: var(--fw-12-light, 300);
  color: var(--text3);
  margin-top: 8px;
}

.tr-hero-start-btn {
  height: 40px;
  border-radius: 20px;
  border: none;
  background: var(--training-btn);
  color: #fff;
  font-family: var(--font);
  font-size: var(--fs-14-regular);
  font-weight: var(--fw-14-regular);
  cursor: pointer;
  white-space: nowrap;
  padding: 0 16px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   2. КАРТОЧКА ОТДЫХА (hero для дня отдыха)
   ═══════════════════════════════════════════════ */
.tr-rest-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 var(--card-px, 16px);
  margin-top: 8px;
}

.tr-rest-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 204, 136, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.tr-rest-title {
  font-size: var(--fs-24-semibold);
  font-weight: var(--fw-24-semibold);
  color: var(--text);
  line-height: 1.1;
}

.tr-rest-sub {
  font-size: var(--fs-14-regular);
  color: var(--text3);
  margin-top: 3px;
}

.tr-rest-next {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px var(--card-px, 16px);
}

.tr-rest-next-label {
  font-size: var(--fs-10-regular);
  color: var(--text3);
}

.tr-rest-next-name {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* ═══════════════════════════════════════════════
   3. ГОТОВНОСТЬ (Readiness)
   ═══════════════════════════════════════════════ */
.tr-readiness {
  padding: 0 var(--card-px, 16px);
  margin-bottom: 2px;
}

.tr-readiness-title {
  font-size: var(--fs-24-semibold);
  font-weight: var(--fw-24-semibold);
  line-height: var(--lh-33, 33px);
  color: var(--c-header, #E6E6E6);
  margin-bottom: 6px;
}

.tr-readiness-subtitle {
  font-size: var(--fs-12-light, 12px);
  font-weight: var(--fw-12-light, 300);
  line-height: 1;
  color: var(--text3);
  margin-bottom: 16px;
}

.tr-recovery-section {
  margin-bottom: 16px;
}

.tr-recovery-label {
  font-size: var(--fs-12-regular);
  font-weight: 500;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.tr-recovery-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tr-recovery-bar-track {
  flex: 1;
  height: 6px;
  background: var(--track);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.tr-recovery-bar-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--training-btn);
  transition: width 0.4s ease;
}

.tr-recovery-bar-pct {
  font-size: var(--fs-14-regular);
  font-weight: 600;
  color: var(--text);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

.tr-recovery-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tr-recovery-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-12-regular);
  color: var(--text2);
}

.tr-recovery-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tr-recovery-status--ready { background: #10B981; }
.tr-recovery-status--pending { background: #F59E0B; }

.tr-recovery-name { 
  flex: 1; 
}

.tr-recovery-time {
  font-size: var(--fs-10-regular);
  color: var(--text4);
}

.tr-recovery-time--ready { color: #10B981; }
.tr-recovery-time--pending { color: #F59E0B; }

.tr-load-section {
  margin-bottom: 4px;
}

.tr-load-label {
  font-size: var(--fs-12-regular);
  font-weight: 500;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.tr-load-bars-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tr-load-bars-list .tr-load-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tr-load-bars-list .tr-load-muscle {
  font-size: var(--fs-12-regular);
  font-weight: 400;
  color: var(--text2);
  width: 95px;
  flex-shrink: 0;
}

.tr-load-bars-list .tr-load-bar-wrap {
  flex: 1;
  height: 5px;
  background: var(--track);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.tr-load-bars-list .tr-load-bar-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--training);
}

.tr-load-bars-list .tr-load-val {
  font-size: var(--fs-10-regular);
  font-weight: 600;
  color: var(--text3);
  width: 34px;
  text-align: right;
  flex-shrink: 0;
}

.tr-readiness-tip {
  margin-top: 12px;
  font-size: var(--fs-14-regular);
  font-weight: var(--fw-14-regular);
  line-height: 19px;
  color: var(--text2);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.tr-readiness-tip-icon { flex-shrink: 0; }

.tr-readiness-source {
  margin-top: 10px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.18);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════
   4. КАРДИО (аккордеон)
   ═══════════════════════════════════════════════ */
.tr-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--card-px, 16px);
  cursor: pointer;
  user-select: none;
}

.tr-accordion-left {
  display: flex;
  flex-direction: column;
}

.tr-accordion-label {
  font-size: var(--fs-24-semibold);
  font-weight: var(--fw-24-semibold);
  line-height: 33px;
  color: var(--c-header, #E6E6E6);
}

.tr-accordion-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.tr-accordion-dots {
  display: flex;
  gap: 4px;
}

.tr-cardio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tr-cardio-dot--done { background: #10B981; }
.tr-cardio-dot--empty { background: rgba(155, 155, 155, 0.31); }

.tr-accordion-meta {
  font-size: var(--fs-12-light, 12px);
  font-weight: var(--fw-12-light, 300);
  line-height: 1;
  color: var(--text3);
}

.tr-accordion-chevron {
  font-size: 14px;
  color: var(--text3);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.tr-accordion-chevron.open {
  transform: rotate(180deg);
}

.tr-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.tr-accordion-body.open {
  max-height: 400px;
}

.tr-cardio-body {
  padding: 0 var(--card-px, 16px) 24px;
}

.tr-cardio-rec {
  background: rgba(2, 49, 36, 0.35);
  border-radius: 20px;
  padding: 14px 12px;
  margin-bottom: 8px;
  cursor: pointer;
}

.tr-cardio-rec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tr-cardio-rec-left {
  flex: 1;
}

.tr-cardio-rec-name {
  font-size: var(--fs-14-regular);
  font-weight: var(--fw-14-regular);
  line-height: 19px;
  color: var(--text);
  margin-bottom: 6px;
}

.tr-cardio-rec-chips {
  display: flex;
  gap: 8px;
}

.tr-cardio-rec-chips .tr-hero-chip {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-10-regular);
  font-weight: var(--fw-10-regular);
  color: var(--training);
  background: rgba(0, 204, 136, 0.10);
  border-radius: var(--r-pill);
  padding: var(--chip-py, 3px) var(--chip-px, 8px);
  line-height: var(--lh-14, 14px);
}

.tr-cardio-rec-right {
  text-align: right;
  flex-shrink: 0;
  margin-left: 12px;
}

.tr-cardio-rec-value {
  font-size: var(--fs-24-semibold);
  font-weight: 600;
  line-height: 33px;
  color: var(--text);
}

.tr-cardio-rec-unit {
  font-size: var(--fs-12-light, 12px);
  font-weight: var(--fw-12-light, 300);
  line-height: 1;
  color: var(--text3);
  display: block;
}

.tr-cardio-rec-hint {
  font-size: var(--fs-10-regular);
  font-weight: var(--fw-10-regular);
  color: var(--text3);
  text-align: center;
  margin-bottom: 24px;
}

.tr-cardio-add-btn {
  width: 100%;
  height: 36px;
  border-radius: 20px;
  background: rgba(4, 120, 87, 0.2);
  border: none;
  color: #00A375;
  font-family: var(--font);
  font-size: var(--fs-14-regular);
  font-weight: var(--fw-14-regular);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}


/* ═══════════════════════════════════════════════
   5. УПРАЖНЕНИЯ — финальный дизайн
   ═══════════════════════════════════════════════ */

.tr-exercises {
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
}

.tr-ex-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px var(--card-px, 16px) 8px;
}

.tr-ex-header-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.tr-ex-title {
  font-size: var(--fs-24-semibold);
  font-weight: var(--fw-24-semibold);
  line-height: var(--lh-33, 33px);
  color: var(--c-header, #E6E6E6);
}

.tr-ex-click-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-12-light, 12px);
  font-weight: var(--fw-12-light, 300);
  color: var(--text3);
  cursor: pointer;
  letter-spacing: 0.3px;
}

.tr-ex-right-placeholder {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* Список — вертикальная колонка */
.tr-ex-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Каждая строка — БЕЗ разделительных линий */
.tr-ex-row-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.tr-ex-row-wrapper:last-child {
  border-bottom: none;
}

.tr-ex-row-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}

.tr-ex-row-main {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px var(--card-px, 16px) 14px 0;
}

/* Drag handle */
.tr-ex-drag-handle {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 4px;
  cursor: grab;
  opacity: 0.2;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.tr-ex-row-wrapper:hover .tr-ex-drag-handle {
  opacity: 0.5;
}

.tr-ex-drag-dot {
  width: 4px;
  height: 4px;
  background: var(--text3);
  border-radius: 50%;
}

/* Номер упражнения */
.tr-ex-num {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-12-regular);
  font-weight: 600;
  color: var(--text2);
  flex-shrink: 0;
}

/* Информационный блок */
.tr-ex-info {
  flex: 1;
  min-width: 0;
}

.tr-ex-name {
  font-size: var(--fs-14-regular);
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
}

/* Мета-информация (схема + мышца) */
.tr-ex-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tr-ex-schema {
  font-size: var(--fs-10-regular);
  font-weight: var(--fw-10-regular);
  color: var(--text3);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Чипс мышцы */
.tr-ex-muscle-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 204, 136, 0.08);
  padding: 2px 8px;
  border-radius: 20px;
  color: var(--training);
  font-size: var(--fs-10-regular);
  font-weight: 500;
}

/* Правая часть (вес + тренд) */
.tr-ex-right {
  text-align: right;
  flex-shrink: 0;
  min-width: 70px;
}

.tr-ex-weight {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.tr-ex-weight--empty {
  color: var(--text3);
  font-weight: 500;
  font-size: 13px;
}

.tr-ex-trend {
  font-size: var(--fs-10-regular);
  margin-top: 3px;
}

.tr-ex-trend--up   { color: #10B981; }
.tr-ex-trend--down { color: #EF4444; }
.tr-ex-trend--flat { color: var(--text3); }

/* Зона замены (появляется при свайпе влево) */
.tr-ex-replace-zone {
  flex-shrink: 0;
  width: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 204, 136, 0.12);
  font-size: var(--fs-12-regular);
  font-weight: 600;
  color: var(--training);
  cursor: pointer;
}

.tr-ex-replace-text {
  font-size: var(--fs-10-regular);
}

/* Подсветка при драге */
.tr-ex-row-wrapper--dragging .tr-ex-row-main {
  background: rgba(0, 204, 136, 0.04);
}

.tr-ex-row-wrapper--dragging .tr-ex-replace-zone {
  background: rgba(0, 204, 136, 0.18);
}

/* Подсказка внизу блока */
.tr-ex-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px var(--card-px, 16px) 20px;
  font-size: var(--fs-10-regular);
  color: var(--text3);
  opacity: 0.5;
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
  margin-top: 4px;
}

.tr-ex-hint-icon {
  font-size: 10px;
}

/* Пустое состояние (нет упражнений) */
.tr-ex-empty {
  padding: 24px var(--card-px, 16px);
  text-align: center;
  color: var(--text3);
  font-size: var(--fs-12-regular);
}

/* ═══════════════════════════════════════════════
   6. СОВЕТЫ
   ═══════════════════════════════════════════════ */
.tr-tips {
  padding: 20px var(--card-px, 16px);
}

.tr-tips-title {
  font-size: var(--fs-24-semibold);
  font-weight: var(--fw-24-semibold);
  line-height: 33px;
  color: var(--c-header, #E6E6E6);
  margin-bottom: 4px;
}

.tr-tips-subtitle {
  font-size: var(--fs-12-light, 12px);
  font-weight: var(--fw-12-light, 300);
  line-height: 17px;
  color: var(--text3);
  margin-bottom: 16px;
}

.tr-tips-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tr-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.tr-tip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.tr-tip-dot--orange { background: #F97316; }
.tr-tip-dot--green  { background: var(--training-btn); }
.tr-tip-dot--red    { background: #EE4447; }

.tr-tip-text {
  font-size: var(--fs-14-regular);
  font-weight: var(--fw-14-regular);
  line-height: 19px;
  color: var(--text);
  flex: 1;
}

/* ═══════════════════════════════════════════════
   7. ПОКАЗАТЕЛИ
   ═══════════════════════════════════════════════ */
.tr-metrics {
  padding: 0 var(--card-px, 16px);
  margin-bottom: 2px;
}

.tr-metrics-title {
  font-size: var(--fs-16-semibold, 16px);
  font-weight: var(--fw-16-semibold, 500);
  line-height: 22px;
  color: var(--c-header, #E6E6E6);
  margin-bottom: 10px;
}

.tr-metrics-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}

.tr-metrics-scroll::-webkit-scrollbar {
  display: none;
}

.tr-metric-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
  background: var(--card-bg);
  border-radius: var(--r-card);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  min-height: 170px;
  position: relative;
  overflow: hidden;
}

.tr-metric-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent);
  border-radius: 0 0 0 60px;
  pointer-events: none;
}

.tr-metric-label {
  font-size: var(--fs-10-regular);
  font-weight: 500;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.tr-metric-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  margin-bottom: 2px;
  letter-spacing: -0.5px;
}

.tr-metric-sub {
  font-size: var(--fs-12-regular);
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 8px;
}

.tr-metric-trend {
  font-size: 11px;
  font-weight: 500;
  margin-top: auto;
}

.tr-metric-trend--up   { color: #10B981; }
.tr-metric-trend--flat { color: var(--text3); }

.tr-metric-dots {
  display: flex;
  gap: 3px;
  margin-bottom: 6px;
}

.tr-metric-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
}

.tr-metric-dot--on  { background: var(--training); }
.tr-metric-dot--off { background: var(--track); }

/* ═══════════════════════════════════════════════
   8. НЕДЕЛЬНАЯ НАГРУЗКА
   ═══════════════════════════════════════════════ */
.tr-load {
  padding: 20px var(--card-px, 16px);
}

.tr-load-title {
  font-size: var(--fs-16-semibold, 16px);
  font-weight: var(--fw-16-semibold, 500);
  line-height: 22px;
  color: var(--c-header, #E6E6E6);
  margin-bottom: 14px;
}

.tr-load-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  margin-bottom: 10px;
}

.tr-load-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tr-load-day-bar-wrap {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 70px;
}

.tr-load-day-bar {
  width: 100%;
  max-width: 36px;
  background: var(--training);
  border-radius: 6px 6px 2px 2px;
  opacity: 0.35;
}

.tr-load-day-bar--done    { opacity: 0.7; }
.tr-load-day-bar--rest    { background: var(--track); opacity: 0.5; height: 8px !important; }
.tr-load-day-bar--planned { opacity: 0.18; border: 1px dashed rgba(255,255,255,0.2); background: transparent; }

.tr-load-day-sets {
  font-size: 10px;
  font-weight: 600;
  color: var(--text3);
  text-align: center;
}

.tr-load-day-label {
  font-size: var(--fs-10-regular);
  font-weight: var(--fw-10-regular);
  color: var(--text3);
}

.tr-load-day-label--today {
  color: var(--training);
  font-weight: 600;
}

.tr-load-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 10px 0 14px;
}

.tr-load-subtitle {
  font-size: var(--fs-12-regular);
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 10px;
}

.tr-load-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tr-load-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tr-load-muscle {
  font-size: var(--fs-12-regular);
  font-weight: var(--fw-12-regular);
  color: var(--text2);
  width: 90px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tr-load-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--track);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.tr-load-bar-fill {
  height: 100%;
  border-radius: var(--r-pill);
}

.tr-load-val {
  font-size: var(--fs-10-regular);
  font-weight: 600;
  color: var(--text3);
  width: 34px;
  text-align: right;
  flex-shrink: 0;
}

.tr-load-delta {
  font-size: var(--fs-10-regular);
  font-weight: 500;
  width: 24px;
  text-align: right;
  flex-shrink: 0;
}

.tr-load-delta--up    { color: #10B981; }
.tr-load-delta--down  { color: #EF4444; }
.tr-load-delta--flat  { color: var(--text3); }

.tr-load-tip {
  margin-top: 14px;
  background: rgba(0, 204, 136, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--fs-12-regular);
  color: var(--text2);
  line-height: 1.5;
}

/* tr-settings — deprecated, см. .screen-actions в buttons.css */

/* ═══════════════════════════════════════════════
   МОДАЛКИ — контент (оверлей/хедер/футер в styles.css)
   ═══════════════════════════════════════════════ */

/* Замена упражнения — карточки альтернатив */
.replace-modal-title-wrapper {
  flex: 1;
}

.replace-alt-item {
  padding: 14px 12px;
  background: var(--modal-block-bg);
  border: none;
  border-radius: var(--modal-block-r);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.replace-alt-item:hover {
  background: var(--modal-block-bg-hover);
}

.replace-alt-item:active {
  transform: scale(0.98);
}

.replace-alt-item.selected {
  background: var(--modal-block-bg-active);
}

.ex-alt-search-wrap {
  margin-bottom: 12px;
  flex-shrink: 0;
}

.ex-alt-search-wrap .cl-inp {
  width: 100%;
}

.ex-alt-search-empty {
  display: none;
  text-align: center;
  padding: 18px 12px;
  color: var(--text3);
  font-size: var(--fs-12-regular);
}

.em-add-ex-group-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 10px 0 5px;
}

.em-add-ex-group:first-child .em-add-ex-group-label {
  margin-top: 0;
}

.replace-load-hint {
  font-size: var(--fs-12-regular);
  color: var(--text3);
  margin-bottom: 12px;
  line-height: 1.4;
}

.replace-inline-analysis {
  margin-top: 0;
}

.replace-preview-sets {
  margin-bottom: 10px;
}

.replace-preview-sets-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.replace-preview-sets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.replace-preview-set-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

.replace-preview-set-val {
  font-size: var(--fs-12-regular);
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

.replace-preview-set-lbl {
  font-size: 9px;
  color: var(--text3);
  margin-top: 3px;
}

.replace-preview-load {
  margin-bottom: 0;
}

.replace-confirm-btn {
  margin-top: 12px;
}

.replace-alt-name {
  font-size: var(--fs-14-regular);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.replace-alt-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.replace-alt-schema {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  font-size: var(--fs-10-regular);
  color: var(--text3);
}

.replace-alt-muscle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  background: rgba(0, 204, 136, 0.1);
  border-radius: 20px;
  font-size: var(--fs-10-regular);
  color: var(--training);
  font-weight: 500;
}

.replace-alt-time {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  font-size: var(--fs-10-regular);
  color: var(--text3);
}

/* Фокус-зоны — контент */
.focus-modal-title-wrapper {
  flex: 1;
}

.focus-info-card {
  background: rgba(46, 117, 182, 0.08);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 20px;
}

.focus-info-title {
  font-size: var(--fs-10-regular);
  font-weight: 600;
  color: #85B7EB;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.focus-info-text {
  font-size: var(--fs-12-regular);
  font-weight: var(--fw-12-regular);
  color: var(--text2);
  line-height: 1.5;
}

.focus-info-text strong {
  color: var(--text);
}

.focus-zone-group {
  margin-bottom: 20px;
}

.focus-zone-group-title {
  font-size: var(--fs-12-regular);
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.focus-zones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.focus-zone-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.focus-zone-card:hover {
  background: rgba(0, 204, 136, 0.06);
}

.focus-zone-card.selected {
  background: rgba(0, 204, 136, 0.12);
}

.focus-zone-name {
  font-size: var(--fs-14-regular);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.focus-zone-desc {
  font-size: var(--fs-10-regular);
  color: var(--text3);
}

.focus-zone-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.focus-zone-card.selected .focus-zone-check {
  background: var(--training);
}

.focus-zone-card.selected .focus-zone-check::after {
  content: '';
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(-1px, -1px);
}

.preview-section {
  margin: 16px 0 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 16px;
}

.preview-title {
  font-size: var(--fs-10-regular);
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-day {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.schedule-day-name {
  width: 85px;
  flex-shrink: 0;
  font-size: var(--fs-12-regular);
  font-weight: 600;
  color: var(--text2);
}

.schedule-muscles {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-muscle {
  font-size: var(--fs-12-regular);
  color: var(--text2);
}

.schedule-muscle-empty {
  font-size: var(--fs-12-regular);
  color: var(--text3);
  font-style: italic;
}

.focus-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 8px;
}

.focus-counter-label {
  font-size: var(--fs-10-regular);
  color: var(--text3);
}

.focus-counter-value {
  font-size: var(--fs-14-regular);
  font-weight: 600;
  color: var(--training);
}

.focus-modal-tip {
  background: rgba(0, 204, 136, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 8px 0 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-10-regular);
  color: var(--training);
  line-height: 1.5;
}

.focus-modal-tip-icon {
  font-size: 14px;
  flex-shrink: 0;
}

/* Травмы — контент */
.injury-zone-group {
  margin-bottom: 12px;
}

.injury-zone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  margin-bottom: 8px;
  transition: background 0.2s;
}

.injury-zone-row.has-injury {
  background: rgba(230, 126, 34, 0.08);
}

.injury-zone-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 204, 136, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.injury-zone-row.has-injury .injury-zone-icon {
  background: rgba(230, 126, 34, 0.15);
}

.injury-zone-info {
  flex: 1;
  min-width: 0;
}

.injury-zone-name {
  font-size: var(--fs-14-regular);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.injury-severity-btns {
  display: flex;
  gap: 4px;
}

.severity-btn {
  flex: 1;
  padding: 5px 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text3);
  font-size: var(--fs-10-regular);
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  text-align: center;
  transition: all 0.2s;
  white-space: nowrap;
}

.severity-btn:active {
  transform: scale(0.96);
}

.severity-btn.selected--none {
  background: rgba(0, 204, 136, 0.12);
  border-color: rgba(0, 204, 136, 0.3);
  color: var(--training);
  font-weight: 600;
}

.severity-btn.selected--mild {
  background: rgba(241, 196, 15, 0.12);
  border-color: rgba(241, 196, 15, 0.3);
  color: #F1C40F;
  font-weight: 600;
}

.severity-btn.selected--moderate {
  background: rgba(230, 126, 34, 0.12);
  border-color: rgba(230, 126, 34, 0.3);
  color: #E67E22;
  font-weight: 600;
}

.severity-btn.selected--severe {
  background: rgba(231, 76, 60, 0.12);
  border-color: rgba(231, 76, 60, 0.3);
  color: #E74C3C;
  font-weight: 600;
}

.injury-modal-tip {
  background: rgba(0, 204, 136, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 8px 0 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-10-regular);
  color: var(--training);
  line-height: 1.5;
}

.injury-modal-tip.warning {
  background: rgba(230, 126, 34, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.injury-modal-tip-icon {
  font-size: 14px;
  flex-shrink: 0;
}

/* Кнопки степени тяжести */
.injury-zone-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px;
  background: rgba(0, 0, 0, 0.20);
  border-radius: 14px;
  margin-bottom: 8px;
  transition: background 0.2s;
}

.injury-zone-name {
  font-size: var(--fs-14-regular);
  font-weight: 500;
  color: var(--text);
  width: 100%;
}

.injury-severity-btns {
  display: flex;
  gap: 4px;
  width: 100%;
}

.injury-sev-btn {
  flex: 1;
  padding: 6px 4px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text3);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  white-space: nowrap;
  border: none;
}

.injury-sev-btn:active {
  transform: scale(0.96);
}

.injury-sev-btn.selected {
  background: rgba(0, 204, 136, 0.12);
  color: var(--c-training, #00CC88);
  font-weight: 600;
}

.injury-sev-btn.selected[data-severity="mild"] {
  background: rgba(230, 184, 0, 0.12);
  color: var(--c-cardio, #E6B800);
}

.injury-sev-btn.selected[data-severity="moderate"] {
  background: rgba(249, 115, 22, 0.12);
  color: var(--c-nutrition, #F97316);
}

.injury-sev-btn.selected[data-severity="severe"] {
  background: rgba(239, 68, 68, 0.12);
  color: var(--c-danger, #EF4444);
}