/* IronQx — Reproductor: coach de progresión, cambiar ejercicio, finalizar y
   compartir (js/24c-workout-player.js, 24e-workout-coach.js, 24f-workout-share.js).
   Mismo diseño que IronBase; el acento es el del tema del plan (--rn-acc). */
#wp, .wps-sheet { --accent: var(--rn-acc, var(--gold)); --on-accent: var(--rn-acc-ink, #0b0c0f); --muted: rgba(236,238,245,.55); }
/* Objetivo de hoy (23c-workout-coach.js) */
.wp-coach { --wc: var(--accent); display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 14px 0 0; padding: 13px 13px 13px 12px; border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--wc) 16%, rgba(255,255,255,.03)), rgba(255,255,255,.025)); border: 1px solid color-mix(in srgb, var(--wc) 34%, transparent); }
.wp-coach.is-up { --wc: #34d399; }
.wp-coach.is-down, .wp-coach.is-deload { --wc: #f59e0b; }
.wp-coach.is-hold { --wc: #60a5fa; }
.wp-coach-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: var(--wc); background: color-mix(in srgb, var(--wc) 16%, transparent); }
.wp-coach-ic svg { width: 20px; height: 20px; }
.wp-coach-body { min-width: 0; }
.wp-coach-body small { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--wc); }
.wp-coach-body b { display: block; margin-top: 3px; font-family: var(--m-font-num, inherit); font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--txt); }
.wp-coach-body p { margin: 4px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.wp-coach-use { align-self: center; min-height: 38px; padding: 0 15px; border: 0; border-radius: 12px; background: var(--wc); color: #0b0c0f; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.wp-coach-use:active { transform: scale(.96); }

/* Cambiar ejercicio */
.wp-swap-btn { display: inline-flex; align-items: center; gap: 7px; margin: 10px 0 0; padding: 7px 12px 7px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.wp-swap-btn svg, .wp-swapped svg { width: 14px; height: 14px; flex-shrink: 0; }
.wp-swap-btn:active { transform: scale(.97); }
.wp-swapped { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 12px; color: color-mix(in srgb, var(--accent) 80%, #fff); }
.wp-swap-card { max-height: min(78vh, 640px); display: flex; flex-direction: column; }
.wp-swap-help { flex-shrink: 0; margin: -4px 0 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
#wp .wp-swap-search { flex-shrink: 0; -webkit-appearance: none; appearance: none; width: 100%; box-sizing: border-box; height: 46px !important; min-height: 46px; padding: 0 14px !important; margin: 0; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.28); color: var(--txt); font: inherit; font-size: 16px; }
#wp .wp-swap-search:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.wp-swap-list { margin-top: 10px; display: grid; gap: 7px; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.wp-swap-opt { display: grid; gap: 3px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); color: var(--txt); font: inherit; text-align: left; cursor: pointer; }
.wp-swap-opt:active { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.wp-swap-opt.is-back { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.wp-swap-name { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.wp-swap-meta { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.wp-swap-empty { margin: 14px 2px; font-size: 13px; color: var(--muted); }
/* Cierre: récords y compartir (23d-workout-share.js) */
.wp-done-pr { margin-top: 10px !important; color: color-mix(in srgb, var(--accent) 85%, #fff) !important; font-weight: 800; }
.wp-done-actions { position: relative; display: grid; gap: 10px; width: min(320px, 100%); margin-top: 28px; animation: wp-up .5s .45s cubic-bezier(.2,.8,.2,1) both; }
.wp-done-share, .wp-done-close { min-height: 52px; border-radius: 16px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.wp-done-share { border: 0; background: var(--accent); color: var(--on-accent, #0b0c0f); box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 35%, transparent); }
.wp-done-close { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: var(--txt); }

.wps-sheet { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: flex-end; justify-content: center; }
.wps-bg { position: absolute; inset: 0; background: rgba(0,0,0,.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: wp-fade .25s ease both; }
.wps-card { position: relative; width: 100%; max-width: 480px; max-height: 94vh; display: flex; flex-direction: column; gap: 14px; padding: 16px 16px calc(env(safe-area-inset-bottom, 0px) + 18px); border-radius: 26px 26px 0 0; background: var(--bg2, #111114); border: 1px solid rgba(255,255,255,.1); border-bottom: 0; animation: wp-up .32s cubic-bezier(.2,.8,.2,1) both; }
.wps-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wps-head strong { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.wps-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: var(--txt); font-size: 14px; cursor: pointer; }
.wps-preview { flex: 1 1 auto; min-height: 0; display: grid; place-items: center; }
.wps-preview img { display: block; max-width: 100%; max-height: calc(94vh - 190px); aspect-ratio: 9 / 16; object-fit: contain; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.08); }
.wps-spin { width: 34px; height: 34px; margin: 120px 0; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--accent); animation: wps-rot .8s linear infinite; }
@keyframes wps-rot { to { transform: rotate(360deg); } }
.wps-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wps-actions:has(.wps-btn[hidden]) { grid-template-columns: 1fr; }
.wps-btn { min-height: 50px; border-radius: 15px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: var(--txt); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.wps-btn.is-primary { border: 0; background: var(--accent); color: var(--on-accent, #0b0c0f); }
.wps-btn:disabled { opacity: .45; }
.wp-sheet-grip { width: 40px; height: 5px; margin: -6px auto 12px; border-radius: 999px; background: rgba(255,255,255,.18); }
.wp-sheet-card { touch-action: pan-y; }
.wp-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.wp-sheet-head strong { display: block; margin-top: 3px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.wp-sheet-head .wp-icon-btn { width: 38px; height: 38px; flex-shrink: 0; }
.wp-coach-body b { font-family: "Inter", sans-serif; }
.wp-sheet-card .wp-sheet-grip { flex-shrink: 0; margin: -8px auto 2px; }
.wp-sheet-card.wp-swap-card { gap: 0; }

/* Finalizar: lo hecho de un vistazo y el aviso de series pendientes */
.wp-fin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wp-fin-stats > div { min-width: 0; padding: 12px 8px 11px; border-radius: 16px; text-align: center; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.wp-fin-stats b { display: block; font: 900 26px/1 "Barlow Condensed", sans-serif; letter-spacing: .3px; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-fin-stats b i { font-style: normal; font-size: 15px; color: var(--muted); }
.wp-fin-stats small { display: block; margin-top: 6px; font: 800 9px/1 "Inter", sans-serif; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); }
.wp-fin-warn { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 11px 13px; border-radius: 14px; font: 600 12.5px/1.45 "Inter", sans-serif; color: #fcd34d;
  background: rgba(245,158,11,.09); border: 1px solid rgba(245,158,11,.28); }
.wp-fin-warn svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.wp-done-prs { display: inline-flex; align-items: center; gap: 7px; color: var(--rn-acc-hi2, var(--gold)) !important; font-weight: 800 !important; }
.wp-done-prs svg { width: 16px; height: 16px; }
.wp-done-share { font-family: "Inter", sans-serif; background: linear-gradient(150deg, var(--rn-acc-hi2, #F2CB68), var(--rn-acc-hi, #C9A84C) 50%, var(--rn-acc-lo, #A88A32)); }
.wp-done-close { font-family: "Inter", sans-serif; }
.wps-head strong { font: 900 22px/1 "Barlow Condensed", sans-serif; letter-spacing: .8px; text-transform: uppercase; }
.wps-btn { font-family: "Inter", sans-serif; }
.wps-btn.is-primary { background: linear-gradient(150deg, var(--rn-acc-hi2, #F2CB68), var(--rn-acc-hi, #C9A84C) 50%, var(--rn-acc-lo, #A88A32)); }
@keyframes wp-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes wp-fade { from { opacity: 0; } to { opacity: 1; } }
/* La diapositiva es una columna flex: el botón de cambiar va como píldora, no a lo ancho */
.wp-swap-btn, .wp-swapped { align-self: flex-start; width: auto; }
.wp-swap-btn { font-family: "Inter", sans-serif; }
/* Ofrecer avisos con el teléfono bloqueado (alarma de descanso) */
.wp-rest-push { display: block; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--rn-acc-hi2, var(--gold)); font: 700 11.5px "Inter", sans-serif; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }
.wp-rest-push[hidden] { display: none; }
.wp-coach.is-start { --wc: #7dd3fc; }
