/* OneProtocol — Reproductor: coach de progresión, carga sugerida, cambiar ejercicio, finalizar y
   compartir (js/24c-workout-player.js, 24e–24i, 24f-workout-share.js). Traído de IronQx
   (css/08-workout-pro.css) el 13/11/2026; 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 - 250px); 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; }

/* ── ¿Máquina ocupada?: fila completa con ícono, texto y flecha ── */
.wp-busy { align-self: stretch; display: grid; grid-template-columns: 38px minmax(0, 1fr) 22px; align-items: center; gap: 11px; width: 100%; margin: 12px 0 0; padding: 10px 12px 10px 10px;
  border-radius: 16px; border: 1px dashed color-mix(in srgb, var(--accent) 38%, transparent); background: color-mix(in srgb, var(--accent) 6%, rgba(255,255,255,.02));
  color: var(--txt); font: inherit; font-family: "Inter", sans-serif; text-align: left; cursor: pointer; transition: transform .15s, background .15s; }
.wp-busy:active { transform: scale(.98); background: color-mix(in srgb, var(--accent) 13%, transparent); }
.wp-busy-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--on-accent, #0b0c0f);
  background: linear-gradient(150deg, var(--rn-acc-hi2, #F2CB68), var(--rn-acc-hi, #C9A84C) 50%, var(--rn-acc-lo, #A88A32)); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.wp-busy-ic svg { width: 18px; height: 18px; }
.wp-busy-txt { min-width: 0; display: grid; gap: 2px; }
.wp-busy-txt b { font-size: 14px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.wp-busy-txt small { font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.wp-busy-go { display: grid; place-items: center; color: color-mix(in srgb, var(--accent) 85%, #fff); }
.wp-busy-go svg { width: 16px; height: 16px; }

/* ── Hoja de cambio ── */
.wp-swap-now { flex-shrink: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 12px; margin-bottom: 10px; border-radius: 16px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); }
.wp-swap-now small { display: block; font: 800 9px/1 "Inter", sans-serif; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.wp-swap-find { flex-shrink: 0; position: relative; display: block; }
.wp-swap-find svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
#wp .wp-swap-find .wp-swap-search { padding-left: 42px !important; }
.wp-swap-sec { display: flex; align-items: center; gap: 8px; margin: 8px 2px 0; font: 800 9.5px/1 "Inter", sans-serif; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.wp-swap-sec:first-child { margin-top: 2px; }
.wp-swap-sec i { font-style: normal; padding: 3px 7px; border-radius: 999px; letter-spacing: .8px; color: var(--on-accent, #0b0c0f); background: var(--accent); }
.wp-swap-opt { grid-template-columns: 42px minmax(0, 1fr) 18px; gap: 12px; align-items: center; padding: 11px 12px; transition: transform .15s, background .15s; }
.wp-swap-opt:active { transform: scale(.985); }
.wp-swap-opt.is-best { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 12%, transparent), rgba(255,255,255,.02)); }
.wp-swap-eq { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: color-mix(in srgb, var(--accent) 88%, #fff); background: color-mix(in srgb, var(--accent) 12%, rgba(255,255,255,.03)); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.wp-swap-eq svg { width: 21px; height: 21px; }
.wp-swap-body { min-width: 0; display: grid; gap: 3px; }
.wp-swap-name { overflow: hidden; text-overflow: ellipsis; }
.wp-swap-mus { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.wp-swap-mus:empty { display: none; }
.wp-swap-mus i { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; color: var(--txt); background: rgba(255,255,255,.07); text-transform: capitalize; }
.wp-swap-match { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.wp-swap-match.is-same { color: #34d399; }
.wp-swap-match.is-same::before { content: "● "; font-size: 8px; vertical-align: 1px; }
.wp-swap-go { display: grid; place-items: center; color: var(--muted); }
.wp-swap-go svg { width: 15px; height: 15px; }
.wp-swap-empty { display: grid; justify-items: center; gap: 6px; padding: 22px 10px; text-align: center; }
.wp-swap-empty span { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.05); }
.wp-swap-empty span svg { width: 20px; height: 20px; }
.wp-swap-empty b { color: var(--txt); font-size: 14px; }
.wp-swap-empty small { font-size: 12px; }


/* ── Tarjeta de carga: una fila sobria con el peso; el porqué, plegado ── */
.wp-load { --wc: var(--accent); position: relative; overflow: hidden; margin: 12px 0 0; border-radius: 16px; font-family: "Inter", sans-serif;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); }
.wp-load.is-up { --wc: #34d399; }
.wp-load.is-down, .wp-load.is-deload { --wc: #f59e0b; }
.wp-load.is-hold { --wc: #60a5fa; }
.wp-load.is-reps { --wc: #a78bfa; }
.wp-load::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--wc); opacity: .7; }
.wp-load-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 11px 11px 11px 13px; }
.wp-load-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--wc); background: color-mix(in srgb, var(--wc) 13%, transparent); }
.wp-load-ic .wp-gear { width: 18px; height: 18px; }
.wp-load-main { min-width: 0; display: grid; gap: 3px; min-height: 34px; align-content: center; }
.wp-load-main small { font: 800 9px/1 "Inter", sans-serif; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-load-hint { font-size: 13.5px; font-weight: 700; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-load-val { display: none; align-items: baseline; gap: 0; white-space: nowrap; overflow: hidden; min-width: 0; }
.wp-load-val b { font: 900 clamp(20px, 6vw, 23px)/1 "Barlow Condensed", sans-serif; letter-spacing: .3px; color: color-mix(in srgb, var(--wc) 45%, #fff); font-variant-numeric: tabular-nums; }
.wp-load-val em, .wp-load-val i { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-left: 5px; overflow: hidden; text-overflow: ellipsis; }
.wp-load.is-ready .wp-load-hint { display: none; }
.wp-load.is-ready .wp-load-val { display: flex; }
.wp-load-act { min-width: 92px; min-height: 34px; padding: 0 14px; border-radius: 11px; font: 800 12.5px "Inter", sans-serif; cursor: pointer; white-space: nowrap; }
.wp-load-act:active { transform: scale(.96); }
.wp-load-act.is-calc { border: 1px solid color-mix(in srgb, var(--wc) 45%, transparent); background: color-mix(in srgb, var(--wc) 10%, transparent); color: color-mix(in srgb, var(--wc) 70%, #fff); }
.wp-load-act.is-use { border: 0; background: var(--wc); color: #0b0c0f; }
.wp-load.is-start .wp-load-act.is-use { background: linear-gradient(150deg, var(--rn-acc-hi2, #F2CB68), var(--rn-acc-hi, #C9A84C) 50%, var(--rn-acc-lo, #A88A32)); }
.wp-load.is-wait .wp-load-act.is-use, .wp-load.is-ready .wp-load-act.is-calc { display: none; }
.wp-load-act.is-use.is-off { background: rgba(255,255,255,.06) !important; color: var(--muted); cursor: default; }
.wp-load-more { border-top: 1px solid rgba(255,255,255,.06); }
.wp-load.is-wait .wp-load-more { display: none; }
.wp-load-more summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; font-size: 11.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.wp-load-more summary::-webkit-details-marker { display: none; }
.wp-load-more summary::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.wp-load-more[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.wp-load-more > :not(summary) { margin-left: 13px; margin-right: 13px; }
.wp-load-more > :last-child { margin-bottom: 12px; }
.wp-load-ref { margin-top: 0; margin-bottom: 0; font-size: 12px; font-weight: 700; line-height: 1.45; color: var(--txt); text-wrap: pretty; }
.wp-load-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.wp-load-chips span { padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.05); }
.wp-load-why { margin-top: 7px; margin-bottom: 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
/* Cálculo pedido por el paciente: gira el engranaje, se llena la barra, entra el peso */
.wp-load-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; pointer-events: none; }
.wp-load-bar::after { content: ""; display: block; width: 100%; height: 100%; background: var(--wc); transform: scaleX(0); transform-origin: left; }
.wp-load-hint > span:last-child, .wp-load.is-running .wp-load-hint > span:first-child { display: none; }
.wp-load.is-running .wp-load-hint > span:last-child { display: inline; color: color-mix(in srgb, var(--wc) 70%, #fff); }
.wp-load.is-running .wp-load-act.is-calc { opacity: .5; pointer-events: none; }
.wp-load.is-done .wp-load-bar::after { transform: scaleX(1); opacity: 0; transition: opacity .4s .2s; }
@keyframes wp-spin { to { transform: rotate(360deg); } }
@keyframes wp-fill { to { transform: scaleX(1); } }
/* Solo transform y opacity: «html body …!important» le gana al modo ligero de
   iPhone (02-base.css, html.op-lite * { animation: none !important }), que
   dejaba el engranaje quieto, la barra vacía y el peso apareciendo de golpe. */
@media (prefers-reduced-motion: no-preference) {
  html body .wp-load.is-running .wp-load-bar::after { animation: wp-fill .95s cubic-bezier(.4,.1,.3,1) forwards !important; }
  html body .wp-load.is-running .wp-load-ic .wp-gear { animation: wp-spin .95s cubic-bezier(.5,0,.3,1) infinite !important; }
  html body .wp-load.is-done .wp-load-val { animation: wp-up .35s ease both !important; }
  html body .wp-load.is-done .wp-load-act.is-use { animation: wp-fade .3s .15s ease both !important; }
  html body .wp-load.is-done .wp-load-bw { animation: wp-up .35s .1s ease both !important; }
}
/* Personalización por cambio de peso corporal: visible una vez calculado */
.wp-load-bw { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 0 13px 11px 58px; font-size: 11.5px; font-weight: 600; line-height: 1.45; color: color-mix(in srgb, var(--wc) 55%, #e8e9ee); text-wrap: pretty; }
.wp-load-bw svg { flex-shrink: 0; width: 14px; height: 14px; margin-top: 1px; opacity: .85; }
.wp-load.is-wait .wp-load-bw { display: none; }
/* Ajuste entre series de la misma sesión */
.wp-autoreg { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; font: 600 12px/1.45 "Inter", sans-serif; text-wrap: pretty; }
.wp-autoreg svg { flex-shrink: 0; width: 14px; height: 14px; margin-top: 1px; }
.wp-autoreg.is-up { color: #6ee7b7; background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.22); }
.wp-autoreg.is-up svg { transform: rotate(-90deg); }
.wp-autoreg.is-down { color: #fcd34d; background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.24); }
.wp-autoreg.is-down svg { transform: rotate(90deg); }

/* ═══ Calentamiento del día (24i-calentamiento.js, portado de IronBase) ═══
   Línea de tiempo de tres pasos: el círculo numerado se vuelve check al marcarlo.
   Todo con el acento del plan; sobrio, sin cajas pesadas. */
.wu-sub { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.wu-sub span { padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
.wu-sub span:first-child { color: color-mix(in srgb, var(--accent) 80%, #fff); background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.wu-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-left: 3px solid var(--accent); }
.wu-note small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wu-note p { margin: 5px 0 0; font-size: 12.5px; line-height: 1.55; color: color-mix(in srgb, var(--txt, #e8e8ec) 78%, transparent); }

.wu-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.wu-step { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.wu-step:not(:last-child)::before { content: ""; position: absolute; left: 16.5px; top: 40px; bottom: -14px; width: 1.5px; border-radius: 2px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 45%, transparent), rgba(255,255,255,.06)); }
.wu-step.is-done:not(:last-child)::before { background: var(--accent); }
.wu-check { position: relative; width: 34px; height: 34px; margin-top: 10px; border-radius: 50%; padding: 0; display: grid; place-items: center;
  border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 8%, var(--bg, #080808)); color: color-mix(in srgb, var(--accent) 85%, #fff);
  transition: background .2s, border-color .2s, transform .15s; }
.wu-check:active { transform: scale(.92); }
.wu-num { font: 900 16px/1 "Barlow Condensed", sans-serif; }
.wu-tick { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s cubic-bezier(.3,1.5,.5,1); }
.wu-tick svg { width: 17px; height: 17px; stroke-width: 2.6; }
.wu-step.is-done .wu-check { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.wu-step.is-done .wu-num { opacity: 0; }
.wu-step.is-done .wu-tick { opacity: 1; transform: none; }
.wu-card { min-width: 0; padding: 13px 14px 14px; border-radius: 18px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); transition: opacity .25s, border-color .25s; }
.wu-step.is-done .wu-card { opacity: .62; border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.wu-head { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; }
.wu-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: color-mix(in srgb, var(--accent) 85%, #fff); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.wu-ic svg { width: 16px; height: 16px; }
.wu-head small { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wu-head b { display: block; margin-top: 3px; font-size: 15px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.wu-txt { margin: 10px 0 0; font-size: 12.5px; line-height: 1.55; color: color-mix(in srgb, var(--txt, #e8e8ec) 72%, transparent); text-wrap: pretty; }
.wu-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 11px; }
.wu-tag { padding: 4px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: var(--muted); background: rgba(255,255,255,.06); }
.wu-tag.is-key { color: color-mix(in srgb, var(--accent) 85%, #fff); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.wu-timer { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 13px; border-radius: 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); color: color-mix(in srgb, var(--accent) 80%, #fff);
  font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wu-timer svg { width: 15px; height: 15px; }
.wu-timer.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.wu-timer.is-on svg { animation: wu-tick 1s steps(2) infinite; }
@keyframes wu-tick { 50% { opacity: .45; } }
.wu-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 1px; border-radius: 12px; overflow: hidden; }
.wu-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; background: rgba(0,0,0,.22); font-size: 12.5px; font-weight: 600; }
.wu-list li span { min-width: 0; }
.wu-list li small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--muted); }
.wu-list em { flex-shrink: 0; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.wu-ramps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.wu-ramps button { width: 100%; display: grid; gap: 6px; padding: 10px 12px; border-radius: 13px; border: 1px solid rgba(255,255,255,.07); background: rgba(0,0,0,.22); color: inherit; text-align: left; }
.wu-ramps button:active { transform: scale(.985); }
.wu-ramp-n { font-size: 13px; font-weight: 750; line-height: 1.3; }
.wu-ramp-s { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wu-ramp-s i { font-style: normal; padding: 3px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--accent) 80%, #fff); background: color-mix(in srgb, var(--accent) 11%, transparent); }
.wu-ramp-s b { color: var(--muted); }
.wu-ramp-s b svg { width: 12px; height: 12px; }
.wu-ramp-s.is-light { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.wu-safe { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; font-size: 12px; line-height: 1.5;
  color: color-mix(in srgb, var(--txt, #e8e8ec) 72%, transparent); background: rgba(255,255,255,.03); border: 1px dashed rgba(255,255,255,.12); }
.wu-safe svg { flex-shrink: 0; width: 18px; height: 18px; color: #6ee7b7; margin-top: 1px; }
.wu-safe b { color: var(--txt, #e8e8ec); }

/* Franja de aproximación en el ejercicio: pasos que se tocan al hacerlos */
.wp-ramp { margin: 12px 0 0; padding: 11px 12px; border-radius: 15px; border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.wp-ramp-h { display: flex; align-items: center; gap: 7px; color: color-mix(in srgb, var(--accent) 85%, #fff); }
.wp-ramp-h svg, .wp-ramp.is-light svg { width: 15px; height: 15px; flex-shrink: 0; }
.wp-ramp-h b { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.wp-ramp-h small { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); }
.wp-ramp-steps { display: flex; align-items: center; gap: 6px; margin-top: 9px; }
.wp-ramp-s { position: relative; flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: center; gap: 4px; min-height: 44px; padding: 0 10px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.25); color: inherit; transition: background .2s, border-color .2s; align-content: center; flex-wrap: wrap; }
.wp-ramp-s b { font: 900 21px/1 "Barlow Condensed", sans-serif; letter-spacing: .3px; font-variant-numeric: tabular-nums; align-self: center; }
.wp-ramp-s em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); align-self: center; }
.wp-ramp-s span:not(.wp-ramp-ok) { font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--txt, #e8e8ec) 75%, transparent); align-self: center; }
.wp-ramp-ok { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent, #fff); opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s cubic-bezier(.3,1.5,.5,1); }
.wp-ramp-ok svg { width: 11px; height: 11px; stroke-width: 3; }
.wp-ramp-s.is-done { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.wp-ramp-s.is-done .wp-ramp-ok { opacity: 1; transform: none; }
.wp-ramp-arrow { flex-shrink: 0; color: var(--muted); }
.wp-ramp-arrow svg { width: 13px; height: 13px; }
.wp-ramp-note { margin: 7px 0 0; font-size: 11px; color: var(--muted); }
.wp-ramp.is-light { display: flex; align-items: center; gap: 8px; font-size: 12px; color: color-mix(in srgb, var(--txt, #e8e8ec) 72%, transparent); }
.wp-ramp.is-light b { color: color-mix(in srgb, var(--accent) 85%, #fff); }
@media (prefers-reduced-motion: reduce) { .wu-tick, .wp-ramp-ok, .wu-timer.is-on svg { transition: none; animation: none; } }
@media (max-width: 360px) {
  .wp-ramp-s { padding: 0 7px; gap: 3px; }
  .wp-ramp-s b { font-size: 15.5px; }
  .wp-ramp-s span:not(.wp-ramp-ok) { font-size: 11px; }
  .wu-step { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
  .wu-check { width: 30px; height: 30px; }
  .wu-step:not(:last-child)::before { left: 14.5px; }
}


/* Movimientos del calentamiento con video: la fila entera se toca y abre el video */
.wu-list li:has(> a) { padding: 0; }
.wu-list li > a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.wu-list li > a span { flex: 1; }
.wu-list li > a:active { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.wu-play { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  color: var(--on-accent, #0b0c0f); background: color-mix(in srgb, var(--accent) 85%, #fff); box-shadow: 0 3px 10px color-mix(in srgb, var(--accent) 30%, transparent); }
.wu-play svg { width: 11px; height: 11px; margin-left: 1px; }
.wu-hint { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 11px; color: var(--muted); }
.wu-hint svg { width: 9px; height: 9px; color: color-mix(in srgb, var(--accent) 80%, #fff); }

/* Botón de video dentro de la app: mismo aspecto que el enlace */
.wu-list li:has(> button) { padding: 0; }
.wu-list li > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wu-list li > button span { flex: 1; }
.wu-list li > button:active { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* Desde IronBase: «Con foto» y «Compartir en Instagram» (24f-workout-share.js) */
/* Estilo: tarjeta o con foto (la foto se queda en el teléfono) */
.wps-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.wps-mode button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; border: 0; border-radius: 11px; background: none; color: rgba(255,255,255,.6); font: inherit; font-size: 13.5px; font-weight: 750; cursor: pointer; transition: background .2s, color .2s; }
.wps-mode button svg { width: 17px; height: 17px; }
.wps-mode button[aria-selected=true] { background: rgba(255,255,255,.11); color: var(--txt, #fff); box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.wps-empty { display: grid; justify-items: center; gap: 10px; width: 100%; max-width: 300px; aspect-ratio: 9 / 16; max-height: calc(94vh - 300px); box-sizing: border-box; align-content: center; padding: 26px; text-align: center; border-radius: 18px;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, rgba(255,255,255,.15)); background: radial-gradient(80% 50% at 50% 35%, color-mix(in srgb, var(--accent) 14%, transparent), transparent), rgba(255,255,255,.02); }
.wps-empty > span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.wps-empty > span svg { width: 30px; height: 30px; }
.wps-empty b { font-size: 16px; font-weight: 800; color: var(--txt, #fff); }
.wps-empty p { margin: 0; font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,.58); }
.wps-photo-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wps-photo-bar[hidden] { display: none; }
.wps-photo-bar button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 40%, rgba(255,255,255,.12)); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--txt, #fff); font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.wps-photo-bar button svg { width: 18px; height: 18px; color: var(--accent); }
.wps-photo-bar.has-photo button { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.05); font-size: 13px; min-height: 40px; }

/* Compartir en Instagram: botón propio, a lo ancho y arriba de las demás acciones */
.wps-btn.wps-ig { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-bottom: 10px; border: 0; color: #fff; background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 45%, #6228d7 100%); box-shadow: 0 12px 26px -12px rgba(238,42,123,.7); }
.wps-btn.wps-ig[hidden] { display: none; }
.wps-btn.wps-ig svg { width: 22px; height: 22px; flex: none; }
.wps-btn.wps-ig:active { transform: scale(.98); }
.wps-ig-hint { margin: -2px 0 10px; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.4; text-align: center; color: var(--txt); background: rgba(238,42,123,.12); border: 1px solid rgba(238,42,123,.3); }
.wps-ig-hint[hidden] { display: none; }
/* Instagram y Guardar en la misma fila (Instagram más ancho) */
.wps-actions:has(.wps-ig:not([hidden])) { grid-template-columns: 1.6fr 1fr; }
.wps-actions .wps-btn.wps-ig { width: auto; margin-bottom: 0; }
/* Instagram protagonista; Guardar solo como ícono a la derecha */
.wps-actions:has(.wps-ig:not([hidden])) { grid-template-columns: minmax(0, 1fr) 54px; }
.wps-btn.is-icon { display: grid; place-items: center; padding: 0; width: 54px; }
.wps-btn.is-icon svg { width: 22px; height: 22px; }
.wps-mode button[aria-selected=true] { color: #fff; }
.wps-empty b { font: 900 20px/1 "Barlow Condensed", sans-serif; letter-spacing: .6px; text-transform: uppercase; }
.wps-card:has(.wps-photo-bar:not([hidden])) .wps-preview img { max-height: calc(94vh - 312px); }
.wps-preview { overflow: hidden; }

/* Sin foto todavía: el marco entero es el botón de la cámara */
.wps-preview { gap: 4px; }
button.wps-empty { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s; }
button.wps-empty:active { transform: scale(.98); }
.wps-empty i { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 12px 20px; border-radius: 999px; font-style: normal; font-size: 14.5px; font-weight: 800; background: var(--accent); color: var(--on-accent, #0b0c0f); box-shadow: 0 10px 24px -10px var(--accent); }
.wps-empty i svg { width: 18px; height: 18px; }
.wps-empty-alt { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 0; background: none; color: rgba(255,255,255,.66); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.wps-empty-alt svg { width: 16px; height: 16px; }
/* La hoja de compartir usa el dorado de IronQx, no el tema del plan */
.wps-sheet { --rn-acc: #C9A84C; --rn-acc-rgb: 201,168,76; --rn-acc-hi: #C9A84C; --rn-acc-hi-rgb: 201,168,76; --rn-acc-hi2: #F2CB68; --rn-acc-lo: #A88A32; --rn-acc-ink: #0b0c0f; --accent: #C9A84C; --on-accent: #0b0c0f; }
.wps-empty i { background: linear-gradient(150deg, #F2CB68, #C9A84C 50%, #A88A32); font-family: "Barlow Condensed", sans-serif; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; }
.wps-actions[hidden] { display: none; }

/* ── Puntos por publicar en Instagram (js/24f-workout-share.js) ──
   Cuadro centrado con la paleta de Instagram: insignia degradada, título,
   instrucción con el @ copiable y contador semanal. El botón «Compartir en
   Instagram» registra la publicación. */
.wps-ig-promo { --ig: linear-gradient(90deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 14px 12px; border-radius: 20px; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, rgba(214,41,118,.16), transparent 60%) padding-box, linear-gradient(#121216,#121216) padding-box, var(--ig) border-box;
  border: 1.5px solid transparent; box-shadow: 0 10px 30px rgba(214,41,118,.12); }
.wps-igp-badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 9px; border-radius: 999px;
  background: var(--ig); color: #fff; font: 800 13px/1 Inter, sans-serif; letter-spacing: .02em; text-transform: uppercase; box-shadow: 0 6px 18px rgba(214,41,118,.35); }
.wps-igp-badge svg { width: 15px; height: 15px; }
.wps-igp-title { font-size: 16px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: #fff; }
.wps-igp-sub { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12.5px; line-height: 1.4; color: rgba(236,238,245,.7); }
.wps-igp-at { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px 6px 10px; border-radius: 999px; border: 1.5px solid transparent;
  background: linear-gradient(#121216,#121216) padding-box, var(--ig) border-box; color: #fff; font: 700 14px/1 Inter, sans-serif; cursor: pointer; transition: transform .15s; }
.wps-igp-at svg { width: 15px; height: 15px; color: #fa7e1e; }
.wps-igp-at span { background: var(--ig); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wps-igp-at:active { transform: scale(.97); }
.wps-igp-at.is-copied { background: linear-gradient(rgba(46,171,101,.18),rgba(46,171,101,.18)) padding-box, linear-gradient(90deg,#2eab65,#6fe0a0) border-box; }
.wps-igp-at.is-copied span { background: none; -webkit-text-fill-color: #6fe0a0; }
.wps-igp-week { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; font: 600 11px/1 Inter, sans-serif; color: rgba(236,238,245,.5); font-variant-numeric: tabular-nums; }
.wps-igp-dots { display: inline-flex; gap: 4px; }
.wps-igp-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.15); }
.wps-igp-dots i.on { background: #d62976; box-shadow: 0 0 6px rgba(214,41,118,.7); }
/* Estados */
.wps-ig-promo.is-pending .wps-igp-badge { background: rgba(214,41,118,.16); color: #ff8ab8; box-shadow: none; border: 1px solid rgba(214,41,118,.4); }
.wps-ig-promo.is-pending .wps-igp-badge svg { animation: wps-pulse 1.6s ease-in-out infinite; }
.wps-ig-promo.is-ok { background: radial-gradient(120% 90% at 50% 0%, rgba(46,171,101,.18), transparent 60%) padding-box, linear-gradient(#121216,#121216) padding-box, linear-gradient(90deg,#2eab65,#6fe0a0) border-box; box-shadow: 0 10px 30px rgba(46,171,101,.12); }
.wps-ig-promo.is-ok .wps-igp-badge { background: linear-gradient(90deg,#2eab65,#6fe0a0); color: #06120b; box-shadow: 0 6px 18px rgba(46,171,101,.3); }
.wps-ig-promo.is-ok .wps-igp-dots i.on { background: #6fe0a0; box-shadow: 0 0 6px rgba(111,224,160,.6); }
.wps-ig-promo.is-cap { background: linear-gradient(#121216,#121216) padding-box, linear-gradient(rgba(255,255,255,.12),rgba(255,255,255,.12)) border-box; box-shadow: none; }
.wps-ig-promo.is-cap .wps-igp-badge { background: rgba(255,255,255,.07); color: rgba(236,238,245,.7); box-shadow: none; }
@keyframes wps-pulse { 50% { opacity: .4; } }
.wps-card:has(.wps-ig-promo:not([hidden])) .wps-preview img { max-height: calc(94vh - 390px); }
