/* ============================================================================
   MY PLAN ("План тренировок") — premium dark-neon/glass redesign
   Scoped to #screen-workout. Markup: hero card + day cards w/ CTA.
   ============================================================================ */
#screen-workout .workout-my-plan-screen {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 96px);
}

/* ---- HERO CARD ---- */
#screen-workout .workout-my-plan-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(20, 20, 20, 0.96), rgba(8, 8, 8, 0.98));
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: wmpFadeIn 0.45s cubic-bezier(0.2, 0, 0, 1) both;
}
#screen-workout .workout-my-plan-hero-glow {
  display: none;
}
#screen-workout .workout-my-plan-hero-copy { position: relative; z-index: 1; }
#screen-workout .workout-my-plan-hero-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary);
}
#screen-workout .workout-my-plan-hero-card h2 {
  margin: 6px 0 14px;
  font-size: clamp(1.5rem, 6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f3f6ff;
}
#screen-workout .workout-my-plan-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#screen-workout .workout-my-plan-chip {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}
#screen-workout .workout-my-plan-hero-illustration {
  position: absolute;
  right: -8px; bottom: -10px;
  width: 38%; max-width: 150px;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}
#screen-workout .workout-my-plan-hero-illustration svg { width: 100%; height: auto; }
#screen-workout .workout-my-plan-menu-btn {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #cdd7ff; cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}
#screen-workout .workout-my-plan-menu-btn svg { width: 20px; height: 20px; }
#screen-workout .workout-my-plan-menu-btn:hover { background: rgba(139,124,255,0.18); box-shadow: 0 0 16px rgba(139,124,255,0.3); }
#screen-workout .workout-my-plan-menu-btn:active { transform: scale(0.92); }

/* ---- DAY LIST ---- */
#screen-workout .workout-my-plan-days { display: flex; flex-direction: column; gap: 14px; }

#screen-workout .workout-my-plan-day-card {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 14px;
  border-radius: 28px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(20, 20, 20, 0.92), rgba(8, 8, 8, 0.96));
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: wmpFadeIn 0.45s cubic-bezier(0.2, 0, 0, 1) both;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
#screen-workout .workout-my-plan-day-card:active { transform: scale(0.99); }
#screen-workout .workout-my-plan-day-card.is-today {
  border-color: rgba(0, 240, 118, 0.3);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: wmpFadeIn 0.45s cubic-bezier(0.2,0,0,1) both;
}
#screen-workout .workout-my-plan-day-card.is-completed { opacity: 0.78; }

#screen-workout .workout-day-today-badge {
  position: absolute; top: -9px; left: 18px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.03em;
  color: #08101f;
  background: var(--gd-brand-gradient);
}

#screen-workout .workout-my-plan-day-body { display: flex; gap: 14px; flex: 1; min-width: 0; align-items: center; }

#screen-workout .workout-my-plan-day-index {
  flex: none; width: 58px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 6px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
#screen-workout .wmp-weekday { font-size: 10px; font-weight: 800; letter-spacing: 0.04em; color: var(--primary); text-transform: uppercase; }
#screen-workout .wmp-daylabel { font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.4); letter-spacing: 0.08em; }
#screen-workout .wmp-daynum { font-size: 26px; font-weight: 800; line-height: 1; color: #f3f6ff; margin-top: 2px; }

#screen-workout .workout-my-plan-day-center { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
#screen-workout .wmp-title { font-size: 16px; font-weight: 800; color: #f3f6ff; letter-spacing: -0.01em; }
#screen-workout .wmp-meta { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.55); }
#screen-workout .wmp-progress-text { font-size: 11.5px; font-weight: 700; color: var(--primary); }
#screen-workout .workout-my-plan-day-progress-bar {
  height: 6px; border-radius: 999px; overflow: hidden; margin-top: 4px;
  background: rgba(255, 255, 255, 0.08);
}
#screen-workout .workout-my-plan-day-progress-bar .progress-fill {
  display: block;
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #00f076, #00ba5b);
  transition: width 0.5s cubic-bezier(0.2, 0, 0, 1);
}

/* ---- CTA ---- */
#screen-workout .workout-my-plan-day-cta { flex: none; display: flex; align-items: center; }
#screen-workout .workout-day-start-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 64px; padding: 12px 10px; border-radius: 18px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  transition: transform 0.14s ease, box-shadow 0.16s ease, background 0.16s ease;
}
#screen-workout .workout-day-start-btn svg { width: 22px; height: 22px; }
#screen-workout .workout-day-start-label { font-size: 10px; font-weight: 800; line-height: 1.1; text-align: center; }
#screen-workout .workout-day-start-btn:active { transform: scale(0.94); }
#screen-workout .workout-day-start-btn.is-primary {
  border: 0; color: #08101f;
  background: var(--gd-brand-gradient);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
#screen-workout .workout-day-start-btn.is-primary:hover { box-shadow: none; }

#screen-workout .workout-my-plan-day-completed {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #6ee7b7;
  background: rgba(110, 231, 183, 0.12);
  border: 1px solid rgba(110, 231, 183, 0.32);
  box-shadow: 0 0 16px rgba(110, 231, 183, 0.2);
}
#screen-workout .workout-my-plan-day-completed svg { width: 22px; height: 22px; }

@keyframes wmpFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  #screen-workout .workout-my-plan-day-card,
  #screen-workout .workout-my-plan-hero-card { animation: none; }
}
@media (max-width: 360px) {
  #screen-workout .workout-day-start-btn .workout-day-start-label { display: none; }
  #screen-workout .workout-day-start-btn { min-width: 48px; padding: 12px; }
  #screen-workout .workout-my-plan-day-index { width: 50px; }
}

/* ============================================================================
   WMP V2 � full layout redesign (hero, day pills, day card, exercise list)
   Matches the ����� ���������� mockup.
   ============================================================================ */
#screen-workout .workout-my-plan-screen.wmp-v2 { gap: 18px; }

#screen-workout .wmp-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 20px 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(20, 20, 20, 0.96), rgba(8, 8, 8, 0.98));
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
#screen-workout .wmp-hero-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
#screen-workout .wmp-hero-title {
  margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
  color: #f3f6ff;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
#screen-workout .wmp-hero-title small {
  font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.55);
}
#screen-workout .wmp-hero-swap {
  width: 40px; height: 40px; flex: none; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.78); cursor: pointer;
  transition: background 0.16s ease, transform 0.14s ease, color 0.16s ease;
}
#screen-workout .wmp-hero-swap svg { width: 18px; height: 18px; }
#screen-workout .wmp-hero-swap:hover { background: var(--primary-soft); color: #fff; }
#screen-workout .wmp-hero-swap:active { transform: scale(0.94); }

#screen-workout .wmp-hero-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 16px;
}
#screen-workout .wmp-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
#screen-workout .wmp-tag svg { width: 14px; height: 14px; flex: none; }
#screen-workout .wmp-tag.is-accent {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: rgba(0, 240, 118, 0.22);
}

#screen-workout .wmp-progress-block { margin-top: 4px; }
#screen-workout .wmp-progress-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 8px;
}
#screen-workout .wmp-progress-title {
  font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.78);
}
#screen-workout .wmp-progress-value {
  font-size: 18px; font-weight: 800; color: var(--primary);
}
#screen-workout .wmp-progress-bar {
  position: relative; height: 8px; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
#screen-workout .wmp-progress-bar span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #00f076, #00ba5b);
  transition: width 0.4s ease;
}
#screen-workout .wmp-progress-meta {
  margin: 8px 0 0; font-size: 12px; font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

#screen-workout .wmp-edit-params {
  margin-top: 16px;
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background 0.16s ease, border-color 0.16s ease;
}
#screen-workout .wmp-edit-params:hover { background: var(--primary-soft); border-color: rgba(0, 240, 118, 0.22); }
#screen-workout .wmp-edit-params-ico {
  width: 28px; height: 28px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
}
#screen-workout .wmp-edit-params-ico svg { width: 16px; height: 16px; }
#screen-workout .wmp-edit-params-label { flex: 1; }
#screen-workout .wmp-edit-params-arrow { color: rgba(255, 255, 255, 0.45); font-size: 22px; line-height: 1; }

#screen-workout .wmp-section-title {
  margin: 6px 2px 0;
  font-size: 16px; font-weight: 800;
  color: #fff; letter-spacing: -0.01em;
}

#screen-workout .wmp-day-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 8px;
}
#screen-workout .wmp-day-pill {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  padding: 12px 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(231, 220, 255, 0.62);
  font-family: inherit; font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}
#screen-workout .wmp-day-pill-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.16s ease, box-shadow 0.16s ease;
}
#screen-workout .wmp-day-pill-label { font-size: 13px; font-weight: 800; }
#screen-workout .wmp-day-pill:hover { color: #fff; border-color: rgba(0, 240, 118, 0.22); }
#screen-workout .wmp-day-pill.is-active {
  color: #fff;
  background: var(--gd-brand-gradient);
  border-color: rgba(0, 240, 118, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30);
}
#screen-workout .wmp-day-pill.is-active .wmp-day-pill-dot {
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}
#screen-workout .wmp-day-pill.is-completed {
  background: rgba(50, 255, 138, 0.10);
  border-color: rgba(50, 255, 138, 0.32);
  color: #bfffd6;
}
#screen-workout .wmp-day-pill.is-completed .wmp-day-pill-dot { background: #00e676; }

#screen-workout .wmp-day-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(20, 20, 20, 0.96), rgba(8, 8, 8, 0.98));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
#screen-workout .wmp-day-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 14px;
}
#screen-workout .wmp-day-head-copy { min-width: 0; flex: 1; }
#screen-workout .wmp-day-title {
  margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: #fff;
}
#screen-workout .wmp-day-title span {
  color: rgba(255, 255, 255, 0.55); font-weight: 700;
}
#screen-workout .wmp-day-meta {
  margin: 6px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, 0.55);
}
#screen-workout .wmp-dot-sep { color: rgba(255, 255, 255, 0.32); }
#screen-workout .wmp-day-illustration {
  flex: none;
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
}
#screen-workout .wmp-day-illustration svg { width: 100%; height: 100%; }

#screen-workout .wmp-day-progress { margin-top: 4px; }
#screen-workout .wmp-day-progress-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 8px;
}
#screen-workout .wmp-day-progress-label { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.7); }
#screen-workout .wmp-day-progress-value { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.55); }
#screen-workout .wmp-day-progress-bar {
  position: relative; height: 6px; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
#screen-workout .wmp-day-progress-bar span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #00f076, #00ba5b);
  transition: width 0.4s ease;
}

#screen-workout .wmp-exercise-list {
  display: flex; flex-direction: column; gap: 10px;
}
#screen-workout .wmp-exercise-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(20, 20, 20, 0.92), rgba(8, 8, 8, 0.96));
  box-shadow: 0 14px 30px rgba(2, 8, 23, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
#screen-workout .wmp-exercise-thumb {
  flex: none;
  width: 64px; height: 64px;
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, #1f1f1f, #0c0c0c);
  display: flex; align-items: center; justify-content: center;
}
#screen-workout .wmp-exercise-video { width: 100%; height: 100%; object-fit: cover; }
#screen-workout .wmp-exercise-icon { font-size: 30px; line-height: 1; }
#screen-workout .wmp-exercise-body { flex: 1; min-width: 0; }
#screen-workout .wmp-exercise-name {
  margin: 0; font-size: 15px; font-weight: 700; color: #f3f6ff;
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#screen-workout .wmp-exercise-meta {
  margin: 4px 0 0; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#screen-workout .wmp-exercise-play,
#screen-workout .wmp-exercise-more {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff; cursor: pointer;
  transition: background 0.16s ease, transform 0.14s ease, color 0.16s ease;
}
#screen-workout .wmp-exercise-play svg,
#screen-workout .wmp-exercise-more svg { width: 16px; height: 16px; }
#screen-workout .wmp-exercise-play {
  color: #fff;
  background: var(--gd-brand-gradient);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30);
}
#screen-workout .wmp-exercise-play:hover { transform: scale(1.05); }
#screen-workout .wmp-exercise-play:active { transform: scale(0.94); }
#screen-workout .wmp-exercise-more { width: 32px; height: 38px; border-radius: 12px; }
#screen-workout .wmp-exercise-more:hover { background: rgba(255, 255, 255, 0.08); }

#screen-workout .wmp-empty {
  padding: 18px; text-align: center;
  font-size: 13px; color: rgba(255, 255, 255, 0.55);
}

#screen-workout .wmp-footer-actions {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
  margin-top: 6px;
}
#screen-workout .wmp-footer-actions .btn { width: 100%; min-height: 52px; border-radius: 18px; }
#screen-workout .wmp-save-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
#screen-workout .wmp-save-btn svg { width: 18px; height: 18px; }
#screen-workout .wmp-start-btn {
  background: var(--gd-brand-gradient);
  color: #fff; border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
#screen-workout .wmp-start-btn:hover { filter: brightness(1.06); }

@media (max-width: 360px) {
  #screen-workout .wmp-hero-title { font-size: 19px; }
  #screen-workout .wmp-exercise-thumb { width: 54px; height: 54px; border-radius: 12px; }
  #screen-workout .wmp-exercise-play, #screen-workout .wmp-exercise-more { width: 34px; height: 34px; }
}

/* ============================================================================
   WORKOUT DAY PREVIEW ("Начать тренировку" → предпросмотр перед стартом)
   Scoped to #screen-workout. Markup: hero + progress + exercise list + footer.
   ============================================================================ */
#screen-workout .wdp-screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 14px calc(env(safe-area-inset-bottom, 0px) + 110px);
}

/* ---- HERO ---- */
#screen-workout .wdp-hero-card {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(20, 20, 20, 0.94), rgba(8, 8, 8, 0.97));
  box-shadow: 0 24px 50px rgba(2, 8, 23, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
#screen-workout .wdp-hero-badge {
  position: absolute; top: 16px; right: 16px;
  display: inline-flex; align-items: center;
  padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(0, 240, 118, 0.22);
}
#screen-workout .wdp-hero-title {
  margin: 0 90px 10px 0;
  font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: #f3f6ff;
}
#screen-workout .wdp-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
#screen-workout .wdp-tag {
  display: inline-flex; align-items: center;
  padding: 6px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
#screen-workout .wdp-hero-meta {
  margin: 12px 0 0; font-size: 13px; font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}
#screen-workout .wdp-hero-illustration {
  position: absolute; top: 44px; right: 8px;
  width: 120px; opacity: 0.85; pointer-events: none;
}
#screen-workout .wdp-hero-illustration svg,
#screen-workout .wdp-hero-illustration img { width: 100%; height: auto; }

/* ---- PROGRESS CARD ---- */
#screen-workout .wdp-progress-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(20, 20, 20, 0.92), rgba(8, 8, 8, 0.96));
}
#screen-workout .wdp-progress-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
#screen-workout .wdp-progress-title { font-size: 14px; font-weight: 700; color: #eef2ff; }
#screen-workout .wdp-progress-value { font-size: 14px; font-weight: 800; color: var(--primary); }
#screen-workout .wdp-progress-bar {
  height: 8px; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
#screen-workout .wdp-progress-bar span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #00f076, #00ba5b);
  transition: width 0.3s ease;
}
#screen-workout .wdp-progress-meta {
  margin: 9px 0 0; font-size: 12px; font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

/* ---- EXERCISE LIST ---- */
#screen-workout .wdp-exercise-list { display: flex; flex-direction: column; gap: 10px; }
#screen-workout .wdp-exercise {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(20, 20, 20, 0.92), rgba(8, 8, 8, 0.96));
  box-shadow: 0 14px 30px rgba(2, 8, 23, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
#screen-workout .wdp-exercise.is-done { opacity: 0.72; }
#screen-workout .wdp-index {
  flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(0, 240, 118, 0.22);
}
#screen-workout .wdp-thumb {
  position: relative; flex: none;
  width: 60px; height: 60px;
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, #1f1f1f, #0c0c0c);
  display: flex; align-items: center; justify-content: center;
}
#screen-workout .wdp-gif {
  width: 100%; height: 100%; object-fit: cover;
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
}
#screen-workout .wdp-gif.is-broken { display: none; }
#screen-workout .wdp-gif.is-broken + .wdp-emoji,
#screen-workout .wdp-emoji-only { display: flex; }
#screen-workout .wdp-emoji {
  position: absolute; inset: 0; display: none;
  align-items: center; justify-content: center;
  font-size: 28px; line-height: 1;
}
#screen-workout .wdp-emoji-only { position: static; }
#screen-workout .wdp-body { flex: 1; min-width: 0; }
#screen-workout .wdp-name {
  margin: 0; font-size: 15px; font-weight: 700; color: #f3f6ff;
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#screen-workout .wdp-group {
  display: block; margin-top: 2px;
  font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.5);
}
#screen-workout .wdp-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
#screen-workout .wdp-metric {
  font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.66);
}
#screen-workout .wdp-metric-rest { color: rgba(255, 255, 255, 0.45); }
#screen-workout .wdp-watch-btn {
  margin-top: 9px;
  display: inline-flex; align-items: center;
  padding: 7px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #fff; cursor: pointer;
  background: var(--gd-brand-gradient);
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: filter 0.16s ease, transform 0.14s ease;
}
#screen-workout .wdp-watch-btn:hover { filter: brightness(1.07); }
#screen-workout .wdp-watch-btn:active { transform: scale(0.96); }
#screen-workout .wdp-check {
  flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.18);
  align-self: flex-start;
}
#screen-workout .wdp-check.is-checked {
  color: #04140a; border-color: #00e676; background: #00e676;
}

/* ---- FOOTER ACTIONS (sticky) ---- */
#screen-workout .wdp-footer-actions {
  position: sticky; bottom: 0;
  display: flex; gap: 10px;
  margin-top: 4px;
  padding: 12px 0 calc(env(safe-area-inset-bottom, 0px) + 8px);
  background: linear-gradient(180deg, rgba(6, 10, 22, 0) 0%, rgba(6, 10, 22, 0.92) 32%);
}
#screen-workout .wdp-footer-actions .btn { flex: 1; min-height: 54px; border-radius: 18px; }
#screen-workout .wdp-restart-btn { flex: 0.8; }
#screen-workout .wdp-start-btn {
  flex: 1.4;
  background: var(--gd-brand-gradient);
  color: #fff; border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
#screen-workout .wdp-start-btn:hover { filter: brightness(1.06); }

@media (max-width: 360px) {
  #screen-workout .wdp-hero-title { font-size: 21px; }
  #screen-workout .wdp-thumb { width: 52px; height: 52px; border-radius: 12px; }
}
