/* R10-D punto 3 (B1.3) — fuentes propias (OFL, ver /assets/fonts/OFL-*.txt). Sin Google Fonts. */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/montserrat-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/montserrat-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/montserrat-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/montserrat-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 900; font-display: swap; src: url('/assets/fonts/montserrat-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2'); }

/* public/assets/styles/byu-app.css
   RONDA R6 â€” Shell de "Mi Ã¡rea" clonado del prototipo
   docs/referencia-ui/planificador-inteligente.html (Â§P5.1/P5.2/P5.3).
   Usa los tokens byu* (var(--bg-main), var(--bg-card), var(--color-*))
   definidos en theme.css para respetar tema claro/oscuro.
   AquÃ­ vive lo nuevo de R6: marco/cabecera/nav, banner de calibraciÃ³n,
   prioridad de ejercicio, grid de series con RPE, tarjeta colapsable y
   descanso a pantalla completa.
   R6l Parte 0: ademÃ¡s, al final de este archivo vive el bloque de 624
   lÃ­neas que antes era el <style> inline de mi-area.html (componentes
   base .byu-card/.byu-gauge/.byu-chip/.byu-badge/etc., F7 Â· R-1 en
   adelante) â€” mi-area.html ya no lleva ningÃºn <style> propio.
*/

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• MARCO DE APLICACIÃ“N (P5.1) â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/* R10-E2 punto 4.2: en iPhone y Android la barra inferior "subía" porque el
   documento entero (html/body) podía desplazarse o rebotar y la barra iba en
   el flujo (sticky). Ahora el documento no se mueve nunca: el body queda fijo
   al viewport y el único scroll es el de #main-content (o el de cada capa).
   Solo en mi-area.html (clase byu-marco-fijo en <html>); login.html también
   carga esta hoja y conserva su scroll normal. */
html.byu-marco-fijo, html.byu-marco-fijo body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}
html.byu-marco-fijo body { position: fixed; inset: 0; width: 100%; }
#app-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: var(--bg-main);
}
/* â”€â”€ Cabecera fija (56px) â”€â”€ */
#top-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--bg-main);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 0 var(--space-16);
    height: 56px;
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-16);
    flex-shrink: 0;
}
#top-header-avatar {
    width: 32px; height: 32px; border-radius: 999px; flex-shrink: 0;
    background: var(--bg-card); border: 1px solid var(--color-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-accent); position: relative; overflow: hidden; cursor: pointer;
}
#top-header-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* R6i Â§14.7 defecto 1+2 â€” sin esto #app-body (flujo normal bajo 1024px) no
   fuerza altura en #main-content: el contenido crece libre y #app-shell
   (overflow:hidden) lo recorta en vez de dejarlo hacer scroll, y empuja
   #bottom-nav fuera del viewport en vez de dejarlo pegado abajo. */
#app-body {
    display: flex; flex-direction: column;
    flex: 1; min-height: 0;
}
html.byu-marco-fijo #app-shell { height: 100%; max-height: none; }
/* R10-E2 punto 4.2: #bottom-nav es fixed (fuera del flujo); el cuerpo reserva
   su altura para que el último contenido de #main-content no quede debajo. */
:root { --byu-tabbar-h: max(78px, calc(54px + env(safe-area-inset-bottom, 0px))); }
@media (max-width: 1023.98px) {
    #app-body { padding-bottom: var(--byu-tabbar-h); }
}

/* â”€â”€ Contenido principal con scroll interno â”€â”€ */
#main-content {
    flex: 1; min-height: 0;
    overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    padding-bottom: 24px;
}
#main-content::-webkit-scrollbar { display: none; }
#main-content { scrollbar-width: none; -ms-overflow-style: none; }

/* R10-E2 punto 4.1: iOS amplía la página al enfocar un campo con fuente
   menor de 16 px y la deja ampliada. Base de 16 px para todo campo (el
   selector de elemento gana al preflight de Tailwind de main.css; las cajas
   con tamaño propio mayor —kg/reps 22-24, marcas 18-20— lo conservan). */
input, select, textarea { font-size: 16px; }

/* Encabezado de secciÃ³n (reutilizable en todas las tabs clonadas) â€” R6b Â§11.3:
   padding alineado a la escala Ãºnica 8/12/16/24/32 (antes 18px suelto). */
.section-header {
    font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--color-text-muted); padding: var(--space-16) var(--space-16) var(--space-8);
}
.section-header--inline { padding: 0; }

/* â”€â”€ NavegaciÃ³n inferior (5 pestaÃ±as) â”€â”€ */
/* R10-E2 punto 4.3: aspecto de la .tabbar de las maquetas (mock.css:42-45):
   78 px, #140E0B / #F5E8D6 en claro, borde superior, pestañas de 72 px con
   icono de 24 y etiqueta de 10,5/600 sin mayúsculas, activa en acento.
   Punto 4.2: fixed al borde inferior del viewport; nunca se desplaza. */
#bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: #140E0B;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 10px 6px env(safe-area-inset-bottom, 0px);
    height: var(--byu-tabbar-h);
    flex-shrink: 0;
}
[data-theme="light"] #bottom-nav { background: #F5E8D6; }
#bottom-nav .nav-item {
    flex: 0 1 72px; width: 72px; min-width: 0; min-height: 44px;
    justify-content: flex-start; gap: 4px; padding: 0;
    font-size: 10.5px; font-weight: 600; text-align: center;
    color: var(--muted);
}
#bottom-nav .nav-item.active { color: var(--accent); }
#bottom-nav .nav-item.active::after { display: none; }
#bottom-nav .nav-icon svg { width: 24px; height: 24px; stroke-width: 2; }
#bottom-nav .nav-label {
    font-size: inherit; font-weight: inherit; letter-spacing: normal;
    text-transform: none; white-space: nowrap;
}
/* iPhone SE (1.ª gen., 320 px): 5 × 72 no caben; las pestañas se reparten
   (~62 px) y la etiqueta más larga ("Personalizado") se ajusta para no pisar. */
@media (max-width: 359.98px) {
    #bottom-nav { padding-left: 2px; padding-right: 2px; }
    #bottom-nav .nav-label { font-size: 9.5px; letter-spacing: -0.2px; }
}
.nav-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    padding: 8px 4px; min-height: 44px;
    cursor: pointer; border: none; background: none;
    color: var(--color-text-muted); transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}
.nav-item.active { color: var(--color-accent); }
.nav-item.active::after {
    content: ''; position: absolute; top: 0; left: 50%;
    transform: translateX(-50%);
    width: 28px; height: 2px; border-radius: 0 0 2px 2px;
    background: var(--color-accent);
}
.nav-icon { display: flex; align-items: center; justify-content: center; }
.nav-label { font-size: 9px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; }

/* NavegaciÃ³n de cabecera (â‰¥1024px) â€” mismo bridge onclick/activo que
   #bottom-nav, distinto look (texto en fila, pastilla en vez de barra). */
#header-nav { gap: var(--space-8); }
#header-nav .nav-item {
    flex: none; flex-direction: row; gap: 0;
    padding: 8px var(--space-16); min-height: 36px; border-radius: 999px;
    font-size: 13px; font-weight: 700;
}
#header-nav .nav-item.active { background: var(--bg-card); }
#header-nav .nav-item.active::after { display: none; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• ENTRENO (P5.2) â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• IN-WORKOUT (P5.3) â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Tarjeta de ejercicio plegable (activa: .exh; la edicion no pliega). */
#wv-active .wv-exercise__head { cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.wv-exercise.is-collapsed .wv-exercise__body { display: none; }

/* R6b Â§2 â€” rail de ejercicios del panel active (columna izquierda, â‰¥1024px) */
.wv-active-rail__item {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 12px 14px; border-radius: 14px; width: 100%; text-align: left; border: 0;
    background: var(--card); font: inherit; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer;
}
.wv-active-rail__item.is-active { box-shadow: inset 0 0 0 2px var(--accent); }
.wv-active-rail__item.is-done { opacity: .6; }
.wv-active-rail__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wv-active-rail__frac { font-size: 13px; color: var(--muted); flex-shrink: 0; margin-left: 8px; font-variant-numeric: tabular-nums; }


/* R8 parte B (punto 7, Â§16.3) â€” descanso: cuenta atrÃ¡s pequeÃ±a en muted
   junto al cronÃ³metro (#wv-rest dentro de .wv-active-head__timer). Sin
   barra, sin popup, sin sonido. Tocarla la descarta. */
.wv-rest-mini {
    margin-left: .375rem; padding: 0; border: none; background: none; cursor: pointer;
    font-size: .8125rem; font-weight: 600; color: var(--color-text-muted); white-space: nowrap;
}
.wv-rest-mini.hidden { display: none; }
.wv-active-head__timer .wv-rest-mini span {
    font: inherit; color: inherit; font-variant-numeric: tabular-nums;
}

/* R8 parte B (punto 7, Â§16.5) â€” dureza del cierre: 10 chips (14-cierre.tpl.html) */
.wv-srpe-chips { display: flex; gap: 5px; }
.wv-srpe-chip {
    flex: 1 1 0; min-width: 0; height: 30px; justify-content: center; padding: 0;
    font-size: 12px; font-family: inherit; border: none; cursor: pointer; color: var(--color-text);
}
.wv-srpe-chip:disabled { cursor: default; }
#wv-cierre-btn-guardar:disabled { opacity: .45; cursor: not-allowed; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   R6b Â§2 â€” REJILLA DE ESCRITORIO (sustituye D-02; ver docs/PLAN_MAESTRO_
   UNIFICACION.md "D-02" y docs/PLAN_MVP_LANZAMIENTO.md Â§1).
   Estas reglas van al final del archivo a propÃ³sito: deben ganar en cascada
   a las reglas base de #app-shell/#top-header/#bottom-nav/#main-content de
   mÃ¡s arriba (misma especificidad, orden de apariciÃ³n posterior).
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* 640â€“1023px: ancho completo, gutter 24px, sin marco de 480px */
@media (min-width: 640px) and (max-width: 1023.98px) {
    html, body { background: var(--bg-main); }
    #app-shell { max-width: none; box-shadow: none; border-left: none; border-right: none; }
    #top-header, #bottom-nav { padding-left: var(--space-24); padding-right: var(--space-24); }
    #main-content { padding-left: var(--space-24); padding-right: var(--space-24); }
}

/* â‰¥1024px: navegaciÃ³n en cabecera (sin bottom-nav), columna izquierda 38%
   sticky (estado del dÃ­a + recuperaciÃ³n), derecha 62% con scroll propio,
   contenido centrado a max-width 1280px. */
@media (min-width: 1024px) {
    html, body { background: var(--bg-main); }
    #app-shell {
        max-width: 1280px; margin: 0 auto;
        box-shadow: none; border-left: none; border-right: none;
    }
    #top-header { padding: 0 var(--space-24); gap: var(--space-24); }
    #bottom-nav { display: none; }
    #header-nav { display: flex; }

    /* R9-A (punto 12, Â§16.8): la cabecera es un riel lateral con el
       logotipo y "Mi Ã¡rea", la navegaciÃ³n en columna y el avatar abajo. */
    #app-shell { flex-direction: row; }
    #top-header {
        position: relative; flex-direction: column; align-items: stretch; justify-content: flex-start;
        width: 216px; height: auto; flex-shrink: 0;
        padding: var(--space-24) var(--space-16);
        border-bottom: none; border-right: 1px solid var(--color-border);
    }
    #top-header-marca { align-self: flex-start; }
    #header-nav { flex-direction: column; gap: var(--space-8); }
    #header-nav .nav-item { justify-content: flex-start; width: 100%; text-align: left; }
    #top-header-cuenta { margin-top: auto; }

    #app-body { display: flex; flex-direction: row; flex: 1; min-height: 0; }

    #sidebar-desktop {
        display: flex; flex-direction: column;
        width: 38%; flex-shrink: 0;
        padding: var(--space-24);
        gap: var(--space-16);
        overflow-y: auto;
        border-right: 1px solid var(--color-border);
    }
    #sidebar-desktop:empty { display: none; }
    #sidebar-desktop:empty + #main-content { width: 100%; }

    #main-content {
        width: 62%; flex: 1;
        overflow-y: auto;
        padding-left: var(--space-32); padding-right: var(--space-32);
    }

    #wv-active-list { display: flex; }
    .wv-scroll, .wv-footer { max-width: none; }
}
@media (max-width: 1023.98px) {
    #header-nav { display: none; }
    #wv-active-list { display: none; }
    /* R9-A (punto 12, Â§16.8): sin barra superior en mÃ³vil/tableta. */
    #top-header { display: none; }
}

/* R9-A (punto 12): marca del riel (solo escritorio) y tÃ­tulos simples por
   pestaÃ±a (maquetas 03/04/05: .h1 28 px / 700). */
#top-header-marca { display: flex; align-items: center; gap: var(--space-12); padding: 0 var(--space-8); }
#top-header-marca img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
#top-header-marca span { font-size: 17px; font-weight: 800; color: var(--color-text); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   R6l Parte 0 â€” bloque migrado desde el <style> inline de mi-area.html
   (624 lÃ­neas, F7 Â· R-1 en adelante). mi-area.html ya no lleva <style>
   propio: todo su CSS vive aquÃ­ o en byu-ui.css (sistema de diseÃ±o).
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* â”€â”€ Exercise Detail Sheet (compartido con planificador) â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* R8 parte B (punto 7): z-index 100 > .wv-overlay (90) y #modal-tus-marcas
   (95): la ficha se abre desde el entrenamiento y debe quedar DELANTE. */
#detail-overlay {
    display: none; position: fixed; inset: 0; z-index: 100;
    background: rgba(26,19,15,0.55);
}
#detail-overlay.active { display: block; }
/* R9-B 08 . 09 (08-ficha-instrucciones / 09-ficha-registros, BRIEFING 16.2):
   hoja .sheet a 70 px del borde superior (deja ver la franja de la foto),
   esquinas 24, contenido con scroll propio y "Listo" fijo abajo. En
   escritorio, columna de 640 centrada a la derecha del riel. */
#detail-panel.sheet {
    position: fixed; top: 70px; bottom: 0; left: 0; right: 0; margin: 0 auto; max-width: 640px;
    padding: 0 16px calc(100px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; overscroll-behavior: contain; color: var(--text);
    animation: detailSlideUp 0.25s ease;
}
@keyframes detailSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
#detail-footer {
    position: fixed; margin: 0 auto; max-width: 640px; z-index: 1;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, #231A14 70%, rgba(35,26,20,0));
}
[data-theme="light"] #detail-footer { background: linear-gradient(to top, #FCF6EE 70%, rgba(252,246,238,0)); }
#detail-footer > .btn { width: 100%; }
@media (min-width: 1024px) {
    #detail-panel.sheet, #detail-footer {
        left: calc(max(0px, (100vw - 1280px) / 2) + 216px);
        right: max(0px, (100vw - 1280px) / 2);
    }
}
.ficha-cargando { padding: 24px 0; }
.ficha-nav { padding-top: 8px; }
.ficha-nav button.ico { padding: 0; cursor: pointer; color: var(--muted); }
.ficha-ilus {
    position: relative; aspect-ratio: 358 / 190; border-radius: 16px; background: #F7F1E8; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.ficha-ilus[role="button"] { cursor: zoom-in; }
.ficha-ilus__ph { width: 120px; height: 120px; stroke: #6A3B24; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ficha-ilus > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #F7F1E8; }
.ficha-video { position: absolute; right: 12px; bottom: 12px; z-index: 1; display: flex; color: var(--accent-dark); }
.ficha-video svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 2; }
.ficha-titulo { line-height: 1.15; }
button.input.ficha-nota {
    width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; justify-content: space-between; gap: 12px;
}
button.input.ficha-nota:disabled { cursor: default; }
.ficha-nota--texto { height: auto; min-height: 52px; padding-top: 14px; padding-bottom: 14px; color: var(--text); white-space: pre-wrap; }
.ficha-nota-edit textarea.input {
    display: block; width: 100%; height: auto; min-height: 88px; padding: 14px 16px; border: 0; outline: none;
    font: inherit; font-size: 16px; color: var(--text); resize: vertical;
}
.ficha-nota-edit textarea.input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.ficha-dato b.xs { color: var(--text); }
.ficha-aviso b.xs { color: var(--accent); }
.ficha-enlace { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.ficha-sep { height: 1px; background: var(--border); margin: 16px 0; }
.ficha-h3 { letter-spacing: .5px; }
.ficha-texto { line-height: 1.5; }
.ficha-metricas { align-items: stretch; overflow-x: auto; padding-bottom: 8px; margin-bottom: -8px; scrollbar-width: none; }
.ficha-metricas::-webkit-scrollbar { display: none; }
button.card.ficha-metrica {
    flex: 1 0 auto; min-width: 104px; padding: 14px; position: relative; border: 0;
    font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.ficha-metrica__v { font-size: 24px; font-weight: 700; margin-top: 4px; white-space: nowrap; }
button.card.ficha-metrica.on { background: var(--accent); color: #1A130F; }
.ficha-metrica.on .xs { color: #1A130F; }
.ficha-metrica__u { font-size: 13px; }
.ficha-metrica.on::after {
    content: ""; position: absolute; left: 24px; bottom: -8px;
    border: 8px solid transparent; border-bottom: 0; border-top-color: var(--accent);
}
.ficha-grafica { padding: 16px 12px 8px; }
.ficha-grafica svg { display: block; width: 100%; height: 150px; font-family: inherit; font-size: 10px; }
.ficha-grafica__grid { stroke: var(--border); stroke-dasharray: 3 3; }
.ficha-grafica__eje text, .ficha-grafica__fecha { fill: var(--muted); }
.ficha-grafica__fecha { text-anchor: middle; }
.ficha-grafica rect { fill: var(--accent); }
.ficha-grafica rect.ficha-grafica__prev { opacity: .55; }
.ficha-grafica__vacia { text-align: center; padding: 12px 0; }
.ficha-sesion__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ficha-series { margin: 8px 0 0; padding: 0; list-style: none; line-height: 1.6; }
.ficha-series b { color: var(--text); }
.ficha-chips { justify-content: flex-end; }
.ficha-chips .chip { font-size: 11px; padding: 4px 10px; }
.ficha-vacio { text-align: center; padding: 48px 0; }
.ficha-declarada .small + .small { margin-top: 4px; }
.ficha-skel { overflow: hidden; }
.ficha-skel__b { flex: 1; height: 72px; }
.ficha-skel__g { height: 150px; }
.ficha-skel__h { height: 72px; }
/* R9-B: la pÃ­ldora legada (explorador/planificador) ya no pisa el `.pill` de
   byu-ui.css (chip de grupo de la previa, maqueta 07). */
.pill-muted, .pill-purple, .pill-blue, .pill[style] { display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-size:11px;font-weight:700;margin-top:0; }
.pill-muted { background:var(--bg-card);border:1px solid var(--color-border);color:var(--color-text-muted); }
.hide-scrollbar { scrollbar-width:none; -ms-overflow-style:none; }
.hide-scrollbar::-webkit-scrollbar { display:none; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SISTEMA DE DISEÃ‘O BYU (F7 Â· R-1) â€” componentes base reutilizables.
   Referencia visual: planificador-inteligente. Usan los tokens byu*
   (var(--color-*)) para respetar tema claro/oscuro; los colores de
   zona (verde/Ã¡mbar/rojo/azul/morado) son semÃ¡nticos y fijos.
   Sin lÃ³gica: el markup lo aportan las vistas (R-2â€¦R-7).
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Tarjeta de dashboard â€” equivalente reutilizable de
   "bg-byuCard border border-byuBorder rounded-2xl p-5 shadow-sm". */
.byu-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(61,38,26,0.06);
}

/* Gauge ACWR â€” barra horizontal con 3 zonas (bajo/Ã³ptimo/alto) + marcador.
   El JS solo mueve --byu-gauge-pos (0â€“100%) y colorea el marcador. */
.byu-gauge {
    position: relative;
    height: 10px; border-radius: 999px; overflow: visible;
    background: linear-gradient(90deg,
        #3b82f6 0%, #3b82f6 40%,      /* zona baja (detraining) */
        #22c55e 40%, #22c55e 70%,     /* zona Ã³ptima (sweet spot) */
        #f59e0b 70%, #f59e0b 85%,     /* zona alta (precauciÃ³n) */
        #ef4444 85%, #ef4444 100%);   /* zona peligro (lesiÃ³n) */
}
.byu-gauge__marker {
    position: absolute; top: 50%;
    left: var(--byu-gauge-pos, 50%);
    width: 16px; height: 16px; border-radius: 999px;
    transform: translate(-50%, -50%);
    background: #fff; border: 3px solid var(--color-text);
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
    transition: left .6s ease, border-color .4s ease;
}
.byu-gauge__scale {
    display: flex; justify-content: space-between;
    font-size: .625rem; font-weight: 700; color: var(--color-text-muted);
    margin-top: .375rem;
}

/* PÃ­ldoras de estado de ejercicio (in-workout, R-3/R-4).
   AMRAP morado Â· Deload azul Â· Superserie naranja Â· Aviso articular Ã¡mbar. */
.byu-badge {
    display: inline-flex; align-items: center; gap: .25rem;
    padding: 2px 8px; border-radius: 999px;
    font-size: .625rem; font-weight: 800; letter-spacing: .04em;
    text-transform: uppercase; line-height: 1.4; border: 1px solid transparent;
}
.byu-badge.byu-badge--amrap    { background: rgba(168,85,247,.14); color: #9333ea; border-color: rgba(168,85,247,.32); }
.byu-badge.byu-badge--deload   { background: rgba(59,130,246,.14); color: #2563eb; border-color: rgba(59,130,246,.32); }
.byu-badge.byu-badge--superset { background: rgba(250,124,30,.14); color: #d9660f; border-color: rgba(250,124,30,.32); }
.byu-badge.byu-badge--joint    { background: rgba(245,158,11,.14); color: #d97706; border-color: rgba(245,158,11,.32); }
.byu-badge.byu-badge--naranja  { background: rgba(250,124,30,.14); color: var(--color-accent); border-color: rgba(250,124,30,.32); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   VISTA IN-WORKOUT DE 3 PANELES (F7 Â· R-3) â€” overlay flotante.
   Se lanza con "Comenzar entreno". Convive con el registro inline.
   Paneles: preview (resumen) Â· edit (ajuste) Â· active (ejecuciÃ³n).
   Usa tokens byu* para respetar tema claro/oscuro.
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.wv-overlay {
    position: fixed; inset: 0; z-index: 90;
    background: var(--bg); color: var(--text);
    display: flex; flex-direction: column;
    overscroll-behavior: contain;
}
.wv-overlay[hidden], .wv-overlay.hidden { display: none; }
/* R10-F B7 — la pantalla "Tus marcas" (16) se retira: la rejilla única
   (js/marcas-rejilla.js) vive en el pop-up 05c y en el paso 08g. Aquí solo la
   hoja del editor (#mk-hoja): por encima del pop-up y del onboarding (z 9999);
   el teclado propio (z 10000 en el onboarding) queda encima. */
.tm-sheet.hidden, .tm-carga.hidden { display: none; }
.tm-input {
    width: 4.5ch; min-width: 0; padding: 0; border: 0; outline: none; background: transparent;
    font: inherit; font-size: 18px; font-weight: 700; color: var(--text); text-align: right;
}
.tm-input::placeholder { color: var(--muted); opacity: 1; }
.tm-input:focus { color: var(--accent); }
#mk-hoja { z-index: 120; }
body:has(#byu-onboarding-overlay) #mk-hoja { z-index: 9999; }
#mk-hoja > .sheet { max-height: calc(100% - 24px); overflow-y: auto; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
/* Hueco fijo para el teclado propio (solo < 1024, donde se muestra) mientras la hoja
   tiene cajas numéricas: si dependiera de que el teclado esté visible, al pulsar
   Guardar el teclado se oculta, la hoja salta 266 px entre mousedown y mouseup y
   el clic cae en otra fila. */
@media (max-width: 1023px) { #mk-hoja > .sheet:has(.wv-kbd-input) { padding-bottom: 290px; } }
.mk-hoja-res-li, .mk-hoja-ej { width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mk-hoja-res-li .r { flex-shrink: 0; }
/* -- 06 . Perfil (06-perfil.tpl.html; BRIEFING 16; R10-B1): .scroll con las
   filas .list; cada fila abre la hoja #perfil-hoja (.sheet). Escritorio:
   columna de 640 px centrada junto al riel; la hoja, igual que Tus marcas. -- */
#modulo-perfil > .scroll { padding-top: 12px; }
.pf-col { width: 100%; max-width: 640px; margin: 0 auto; }
.pf-cab { width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pf-cab-txt { display: flex; flex-direction: column; min-width: 0; }
.pf-cab-txt .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-nombre { display: inline-flex; align-items: center; gap: 4px; }
.pf-nombre svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
.pf-avatar { flex-shrink: 0; overflow: hidden; }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-toggle { width: 44px; height: 26px; padding: 0; justify-content: flex-start; }
.pf-toggle.on { justify-content: flex-end; }
.pf-toggle__knob { width: 20px; height: 20px; border-radius: 50%; background: #1A130F; margin: 3px; }
.pf-peligro { color: #F0624D; }
.pf-pie { text-align: center; }
.pf-pie .logo { width: 16px; height: 16px; vertical-align: middle; object-fit: cover; }
.pf-hoja { position: fixed; inset: 0; z-index: 100; }
.pf-hoja.hidden { display: none; }
.pf-hoja > .sheet { max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
/* Hueco fijo para el teclado propio (solo <1024, donde existe): no depende de que esté abierto, para que el botón no se mueva entre pulsar y soltar. */
@media (max-width: 1023px) { .pf-hoja > .sheet:has(.wv-kbd-input) { padding-bottom: 290px; } }
.pf-hoja .textlinks > button { color: var(--muted); }
.pf-opcion { gap: 12px; text-align: left; }
.pf-opcion__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-opcion__check svg { color: var(--accent); }
.pf-chips { flex-wrap: wrap; gap: 8px; }
.pf-dia { gap: 6px; }
.pf-campo { width: 100%; border: 0; outline: none; font: inherit; font-size: 16px; color: var(--text); }
.pf-fecha { border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; font-weight: 600; color: var(--text); color-scheme: dark; }
[data-theme="light"] .pf-fecha { color-scheme: light; }
.pf-error { color: #F0624D; }
@media (min-width: 1024px) {
    .pf-hoja {
        left: calc(max(0px, (100vw - 1280px) / 2) + 216px);
        right: max(0px, (100vw - 1280px) / 2);
    }
    .pf-hoja > .sheet { max-width: 640px; margin: 0 auto; }
}
/* Hoja Adaptar */
.tm-sheet { position: fixed; inset: 0; z-index: 105; display: flex; align-items: flex-end; }
.tm-sheet__card {
    position: relative; z-index: 1; width: 100%; max-width: 640px; margin: 0 auto;
    background: var(--bg-card, #fff); border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 -8px 32px rgba(0,0,0,.22);
    padding: 1.25rem 1rem calc(1rem + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; gap: .75rem;
}
.tm-sheet__cab { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; }
.tm-sheet__titulo { font-size: 1.0625rem; font-weight: 900; color: var(--color-text); }
.tm-avatar { width: 48px; height: 48px; border-radius: 999px; object-fit: cover; background: #fff; }
.tm-avatar--grande { width: 88px; height: 88px; }
.tm-opciones { display: flex; flex-direction: column; gap: .5rem; }
.tm-opcion {
    width: 100%; display: flex; align-items: flex-start; gap: .75rem; padding: .875rem 1rem;
    border-radius: 1rem; background: var(--bg-main, #FFF8F0); text-align: left; cursor: pointer;
    box-shadow: inset 0 0 0 2px transparent;
}
.tm-opcion[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--color-accent, #FA7C1E); }
.tm-opcion__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .125rem; }
.tm-opcion__titulo { font-size: .875rem; font-weight: 800; color: var(--color-text); }
.tm-opcion__texto { font-size: .75rem; color: var(--color-text-muted); }
.tm-opcion__check {
    width: 22px; height: 22px; flex-shrink: 0; border-radius: 999px; display: flex; align-items: center; justify-content: center;
    background: var(--bg-card, #fff); color: transparent;
}
.tm-opcion[aria-checked="true"] .tm-opcion__check { background: var(--color-accent, #FA7C1E); color: #fff; }
.tm-sheet__acciones { display: flex; gap: .625rem; }
.tm-btn-sec { background: var(--bg-main, #FFF8F0); color: var(--color-text); text-transform: none; }
/* R9-A punto 13 â€” renombrar (Personalizado) */
.tm-texto {
    width: 100%; padding: .875rem 1rem; border-radius: 1rem; border: 0; outline: none;
    background: var(--bg-main, #FFF8F0); color: var(--color-text); font-size: 1rem; font-weight: 700;
}
.tm-texto:focus { box-shadow: 0 0 0 2px var(--color-accent, #FA7C1E); }
.pers-lapiz {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 999px; display: inline-flex;
    align-items: center; justify-content: center; color: var(--color-text-muted); background: transparent;
}
.pers-lapiz:hover, .pers-lapiz:focus-visible { color: var(--color-accent, #FA7C1E); background: var(--bg-main, #FFF8F0); }
/* Pantalla de carga */
.tm-carga {
    position: fixed; inset: 0; z-index: 110; background: var(--bg-main, #FFF8F0);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; padding: 2rem;
}
.tm-carga__texto { font-size: 1.0625rem; font-weight: 900; color: var(--color-text); text-align: center; }
.tm-anillo { position: relative; width: 160px; height: 160px; }
.tm-anillo svg { transform: rotate(-90deg); }
.tm-anillo__fondo { fill: none; stroke: var(--bg-card, #fff); stroke-width: 10; }
.tm-anillo__arco { fill: none; stroke: var(--color-accent, #FA7C1E); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .3s ease; }
.tm-anillo__pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; font-weight: 900; color: var(--color-text); }
.tm-carga__btn { flex: none; width: 100%; max-width: 360px; opacity: .45; cursor: default; }
.wv-panel { flex: 1; min-height: 0; display: none; flex-direction: column; position: relative; }
.wv-overlay.wv-mode-preview #wv-preview { display: flex; }
.wv-overlay.wv-mode-edit    #wv-edit    { display: flex; }
.wv-overlay.wv-mode-active  #wv-active  { display: flex; }
.wv-overlay.wv-mode-cierre  #wv-cierre  { display: flex; }

/* Barra superior comÃºn */
.wv-topbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: .5rem; padding: .75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--bg-card); flex-shrink: 0;
}
.wv-topbar__title {
    font-size: .8125rem; font-weight: 900; letter-spacing: .04em;
    text-transform: uppercase; color: var(--color-text);
    text-align: center; flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wv-iconbtn {
    width: 34px; height: 34px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 999px; border: 1px solid var(--color-border);
    background: var(--bg-main); color: var(--color-text-muted);
    font-size: 1.125rem; font-weight: 700; line-height: 1;
    transition: color .15s ease, border-color .15s ease;
}
.wv-iconbtn:hover { color: var(--color-accent, #FA7C1E); border-color: var(--color-accent, #FA7C1E); }

/* Zona scroll de cada panel */
.wv-scroll {
    flex: 1; min-height: 0; overflow-y: auto;
    padding: 1rem; max-width: 640px; width: 100%; margin: 0 auto;
}

/* Footer de acciones (sticky abajo) */
.wv-footer {
    flex-shrink: 0; padding: .875rem 1rem calc(.875rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--color-border); background: var(--bg-card);
    display: flex; gap: .625rem; max-width: 640px; width: 100%; margin: 0 auto;
}
/* R6i Â§14.2 Parte 2 â€” sub-footers intercambiables (plan/hecho/editando):
   misma especificidad que .hidden (una clase), asÃ­ que sin esta regla
   mÃ¡s especÃ­fica .wv-footer.display:flex ganaba y quedaban visibles
   aunque llevasen la clase "hidden". */
.wv-footer.hidden { display: none; }
.wv-btn {
    flex: 1; padding: .875rem 1rem; border-radius: 1rem;
    font-size: .875rem; font-weight: 900; letter-spacing: .03em;
    text-transform: uppercase; transition: transform .1s ease, filter .15s ease;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.wv-btn:active { transform: scale(.97); }
.wv-btn--primary { background: var(--color-accent, #FA7C1E); color: #fff; box-shadow: 0 4px 14px rgba(250,124,30,.28); }
.wv-btn--primary:hover { filter: brightness(1.05); }
.wv-btn--ghost { background: var(--bg-main); color: var(--color-text); border: 1px solid var(--color-border); }
.wv-btn--ghost:hover { border-color: var(--color-accent, #FA7C1E); }

/* Hero de resumen (preview) */
.wv-hero {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem;
    margin-bottom: 1rem;
}
/* R6i Â§14.3: cierre solo muestra 3 cifras (duraciÃ³n/kg/kcal). */
.wv-hero--3 { grid-template-columns: repeat(3, 1fr); }
.wv-hero__cell {
    background: var(--bg-card); border: 1px solid var(--color-border);
    border-radius: .875rem; padding: .75rem .5rem; text-align: center;
}
.wv-hero__cell .wv-hero__val {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.375rem; font-weight: 800; color: var(--color-text); line-height: 1;
}
.wv-hero__lbl {
    font-size: .5625rem; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: var(--color-text-muted); margin-top: .375rem;
}

/* Lista de ejercicios (cierre/ediciÃ³n hasta su migraciÃ³n R9-B; la previa usa .ex-row) */
.wv-list { display: flex; flex-direction: column; gap: .625rem; }
.wv-exrow:not(.ex-row) {
    display: flex; align-items: center; gap: .75rem;
    background: var(--bg-card); border: 1px solid var(--color-border);
    border-radius: .875rem; padding: .75rem .875rem;
}
.wv-exrow__idx {
    width: 26px; height: 26px; flex-shrink: 0; border-radius: 999px;
    background: var(--bg-main); border: 1px solid var(--color-border);
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 800; color: var(--color-text-muted);
}
/* R6j SS15.16 â€” miniatura real del ejercicio (filas aÃºn sin migrar). */
.wv-exrow__thumb:not(.thumb) {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: .75rem;
    object-fit: cover; border: 1px solid var(--color-border, #E2CDAE); background: var(--bg-main);
}
.wv-exrow__body { flex: 1; min-width: 0; }
.wv-exrow:not(.ex-row) .wv-exrow__name {
    font-size: .875rem; font-weight: 800; color: var(--color-text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wv-exrow:not(.ex-row) .wv-exrow__meta {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .75rem; font-weight: 600; color: var(--color-text-muted); margin-top: .125rem;
}
/* Serie recortada por compresiÃ³n de tiempo */
.wv-exrow__cut { color: var(--accent); font-weight: 700; }
/* -- 01 . Hoy (01-hoy.tpl.html; BRIEFING 16; R10-B1). Columna de 640 como
   Perfil; el segmentado Hoy | Plan (.seg) se coloca en el hueco
   [data-slot-entrenar] del modulo activo (ui-entrenos.js). -- */
#entrenar-selector.hidden { display: none; }
#modulo-hub > .scroll { padding-top: 8px; }
.hoy-col { width: 100%; max-width: 640px; margin: 0 auto; }
.hoy-avatar { width: 40px; height: 40px; font-size: 17px; flex-shrink: 0; overflow: hidden; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.hoy-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hoy-aviso { align-items: center; gap: 8px; padding: 12px 14px; }
.hoy-aviso > p { flex: 1; min-width: 0; }
.hoy-aviso.hidden { display: none; }
.hoy-link { color: var(--accent); font-weight: 700; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }
/* R10-D punto 5 — 01-hoy-v2: .hero2 (120) con chip de origen y figura de 100 a la derecha. */
.hoy-card { padding: 0; overflow: hidden; border: 2px solid var(--accent); }
.hoy-origen { position: absolute; left: 12px; top: 12px; font-size: 11px; z-index: 1; }
.hoy-figura { position: absolute; right: 14px; top: 10px; height: 100px; display: flex; align-items: center; }
.hoy-figura svg { height: 100%; width: auto; }
.hoy-card__cuerpo { padding: 14px 16px 12px; }
/* R10-F A1: una sola línea "día · grupos · n ejercicios · min" (sin chip). */
.hoy-linea { margin-bottom: 0; }
.hoy-chips:empty { display: none; }
.hoy-chips__rd { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.hoy-chips > .small.muted { text-align: right; min-width: 0; }
.hoy-btn { height: 46px; }
.hoy-no-puedo { display: block; width: 100%; margin-top: 14px; padding: 0; border: 0; background: none; font: inherit; text-align: center; font-weight: 600; color: var(--muted); cursor: pointer; }
.hoy-no-puedo.hidden { display: none; }
/* R10-C2 (A.2) — tarjeta "Readiness de hoy" bajo la tarjeta de hoy (tamaño de .inf-card).
   Dos latidos en acento la primera vez del día sin check-in.
   R10-D punto 5: medidas de 01-hoy-v2 (12px 14px, anillo .ring de 64 con .v) y halo .pulse
   mientras no hay check-in. */
.hoy-rdy { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.hoy-rdy.hidden { display: none; }
.hoy-rdy[data-hecho=""] { box-shadow: 0 0 0 2px var(--accent); }
.hoy-rdy__anillo svg { display: block; }
.hoy-rdy__anillo .pr { transition: stroke-dashoffset .4s ease; }
.hoy-rdy[data-hecho=""] .hoy-rdy__anillo .pr { stroke: var(--muted); }
.hoy-rdy__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hoy-rdy__desc { margin-top: 4px; }
.hoy-rdy__btn { font-size: 12px; line-height: normal; white-space: nowrap; flex: none; }
.hoy-rdy--late { animation: hoy-rdy-latido 0.9s ease-out 2; }
/* R10-D punto 5: el latido anima el contorno (outline), no la sombra, para no tapar el halo .pulse fijo de 2 px. */
@keyframes hoy-rdy-latido {
  0% { outline: 0 solid var(--accent); outline-offset: 0; }
  40% { outline: 3px solid var(--accent); outline-offset: 2px; }
  100% { outline: 3px solid transparent; outline-offset: 10px; }
}
@media (prefers-reduced-motion: reduce) { .hoy-rdy--late { animation: none; box-shadow: 0 0 0 2px var(--accent); } }
/* §9 — alternativas dentro de la tarjeta y el "?" de una línea. */
/* R10-D punto 5: filas .alt de 01-hoy-v2 (la primera sin borde, 8 de margen, 6 arriba) y el
   "?" es el .q de la plantilla, con zona táctil ampliada. */
.hoy-alts.hidden { display: none; }
.hoy-alts__lista > .alt:first-child { margin-top: 8px; border-top: 0; padding-top: 6px; }
.hoy-alt { cursor: pointer; }
button.q { position: relative; padding: 0; background: none; font-family: inherit; line-height: 1; cursor: pointer; }
button.q::after { content: ""; position: absolute; inset: -6px; }
.ayuda-hoja__txt { font-size: 15px; line-height: 1.45; margin: 8px 0 4px; }
/* R10-F T1: hoja de ayuda de pantalla; encima de los pop-ups (100) y del onboarding (9999). */
#ayuda-hoja { z-index: 110; }
body:has(#byu-onboarding-overlay) #ayuda-hoja { z-index: 10001; }
#ayuda-hoja-titulo { margin-top: 4px; }
.ayuda-hoja__lista > .xs { margin-bottom: 4px; }
.ayuda-dato { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; }
.ayuda-dato > b { font-size: 14px; font-weight: 600; }
.ayuda-dato > .small { line-height: 1.4; }
.ayuda-accion { position: relative; padding: 6px 0 6px 14px; line-height: 1.4; }
.ayuda-accion::before { content: ''; position: absolute; left: 2px; top: 13px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
/* Huecos del "?" de pantalla (button.q es position: relative: se sube la especificidad). */
.hoy-rdy-wrap { position: relative; }
button.q.hoy-rdy-q { position: absolute; top: 8px; right: 8px; }
#hoy-readiness.hidden ~ .q { display: none; }
.hoy-titulo-fila { align-items: flex-start; }
.hoy-titulo-fila > .q { margin-top: 4px; }
#modulo-progreso > .scroll.inf-col, .pf-col, .wv-cierre-scroll { position: relative; }
button.q.ayuda-inf { position: absolute; top: 16px; right: 16px; }
button.q.ayuda-pf { position: absolute; top: 39px; right: 16px; }
button.q.ayuda-cierre { position: absolute; top: 16px; right: 16px; }
.inf-acwr-ayuda { justify-content: flex-end; }
/* Hoja de check-in (byu-ui .sheet + .seg). */
.ck-ready__val { font-size: 32px; font-weight: 700; line-height: 1; }
.ck-stepper { align-items: center; }
.ck-stepper__val { min-width: 52px; text-align: center; font-weight: 700; font-size: 16px; }
.ck-seg > button { padding: 10px 4px; font-size: 13px; }
/* R10-D punto 5 (01-hoy-v2): cabecera con las sesiones hechas; cuerpo de 120 + texto de resumen, sin leyenda. */
.hoy-equilibrio { padding: 14px 16px; }
.hoy-equilibrio.hidden { display: none; }
.hoy-equilibrio__figura { height: 120px; display: flex; }
.hoy-equilibrio__figura svg { height: 100%; width: auto; }
.hoy-equilibrio__texto { flex: 1; min-width: 0; }
.hoy-equilibrio__texto.hidden { display: none; }

/* -- R10-C (ESPECIFICACION_R10C §1) . chip RD y hoja de readiness. Un solo
   componente para Hoy, Plan, Personalizado y la hoja de asignar. -- */
.rd { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(250,124,30,.16); color: var(--accent); font-size: 12px; font-weight: 700; line-height: 1.2; cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.rd:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rd-hoja__nombre { text-align: right; min-width: 0; }
.rd-hoja__txt p + p { margin-top: 6px; }
.rd-hoja__figura { display: flex; justify-content: center; }
.rd-hoja__figura svg { height: 200px; width: auto; }
.rd-hoja__leyenda { display: flex; gap: 14px; justify-content: center; }
.rd-hoja__leyenda.hidden { display: none; }
.rd-hoja__leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.rd-hoja__leyenda i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); display: inline-block; }
.rd-hoja__leyenda i.n1 { opacity: .35; }
.rd-hoja__leyenda i.n2 { opacity: .65; }

/* -- 02 . Plan (02-plan.tpl.html; BRIEFING 16; CONTRATO 28; R10-B2). Misma
   columna que Hoy; calendario .cal de byu-ui con celdas <button>. -- */
#modulo-entrenos > .scroll { padding-top: 8px; }
.plan-col { width: 100%; max-width: 640px; margin: 0 auto; }
.plan-cab__txt { min-width: 0; }
#plan-cab button.plan-ico, .plan-semana button.plan-ico { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: var(--muted); }
.plan-ico:disabled { opacity: .3; cursor: default; }
.plan-aviso.hidden, .plan-estado-card.hidden, .plan-excel.hidden, #ui-estado-carga.hidden { display: none; }
.plan-aviso { padding: 14px 16px; }
.plan-cal-card { padding: 12px; }
.plan-cal-card .cal button.d { border: 0; background: none; color: inherit; font: inherit; font-weight: 600; font-size: 14px; padding: 0; cursor: pointer; }
.plan-cal-card .cal .d.today { background: var(--accent); color: #1A130F; }
.plan-cal-card .cal .d.out { color: var(--border); }
.plan-cal-card .cal .d.sel { box-shadow: inset 0 0 0 2px var(--accent); }
/* R10-D punto 6 (02-plan-v2): cabecera "Esta semana" con el rango (y sus flechas) a la derecha. */
.plan-semana { align-items: center; }
.plan-semana button.plan-ico { width: 24px; height: 24px; }
.plan-estado { padding: 16px 0; text-align: center; }
.plan-estado-card { padding: 18px 16px; }
#ui-rutina-dinamica.flex { flex-direction: column; }
/* Filas .srow y grupos .grp de mock-v2 (margen propio, sin hueco de la lista). */
.plan-dia__lista { display: block; margin-top: 4px; }
.plan-sesion { width: 100%; min-height: 0; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.plan-sesion:disabled { cursor: default; }
.plan-sesion .meta { display: block; }
.plan-sesion__ej { font-size: 12px; }
.plan-sesion__ir { width: 24px; height: 24px; flex: none; }
#hoy-meta.hidden { display: none; }
.plan-sesion__accion { font-size: 12px; flex-shrink: 0; }
.plan-solo-lectura { font-size: 12px; margin-top: 8px; }
/* R10-C2 (A.9): el texto vacío, distinguible de los títulos de grupo. */
.plan-vacio { margin-top: 8px; padding: 12px 14px; border-radius: 14px; background: var(--card); color: var(--muted); font-style: italic; text-align: center; }
.plan-col button.plan-anadir { width: 100%; border: 0; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; }
.plan-pista { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.plan-pista.hidden { display: none; }
.plan-excel { text-decoration: none; color: inherit; }

/* -- 05 . Informe (05-informe.tpl.html; BRIEFING 15.12; CONTRATO 28/30; R10-B2). Misma
   columna que Hoy/Plan; tarjetas .card de byu-ui con el padding 14/16 de la maqueta. -- */
#modulo-progreso > .scroll { padding-top: 12px; }
.inf-col { width: 100%; max-width: 640px; margin: 0 auto; }
.inf-col .hidden { display: none; }
.inf-card { padding: 14px 16px; }
/* R10-D punto 9 (05-informe-v4): mes y semana navegables con ‹ › (navc) y deslizando. */
.inf-trio { align-items: flex-end; }
.inf-trio > .c { text-align: center; }
.inf-trio > .r { text-align: right; }
.inf-num { font-size: 22px; font-weight: 700; }
.inf-dots { margin-top: 10px; }
.inf-col button.inf-nav { display: flex; align-items: center; border: 0; background: none; padding: 0; margin: 0; color: inherit; cursor: pointer; min-height: 24px; touch-action: manipulation; }
.inf-col button.inf-nav:disabled { opacity: .35; cursor: default; }
#modulo-progreso > .scroll.inf-col { padding-top: 8px; }
/* R10-D punto 10 (05-informe-v4): Equilibrio de la semana, carrusel de dos paneles con escala de 5 niveles. */
.inf-eq.sq { aspect-ratio: auto; touch-action: pan-y; }
.inf-eq .bd { padding: 6px 0 4px; }
.inf-eq-bd { height: 230px; box-sizing: border-box; }
.inf-eq-bd svg { height: 100%; width: auto; display: block; }
.inf-eq .dots.inf-eq-dots { margin: 4px 0 8px; }
.inf-eq-dots i { cursor: pointer; }
.inf-eq .ft { margin-top: 8px; }
/* R10-F A4: flechas laterales del carrusel de cuerpos (además del gesto). */
.inf-eq { position: relative; }
.inf-eq .ft:empty { display: none; }
button.inf-eq-flecha { position: absolute; top: 118px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); }
.inf-eq-flecha--izq { left: 4px; }
.inf-eq-flecha--der { right: 4px; }
.inf-eq-flecha:disabled { opacity: .3; cursor: default; }
.inf-eq .figura-cuerpo .fc-p.on1 { fill: var(--accent); fill-opacity: .28; }
.inf-eq .figura-cuerpo .fc-p.on2 { fill: var(--accent); fill-opacity: .55; }
.inf-eq .figura-cuerpo .fc-p.on3 { fill: var(--accent); fill-opacity: 1; }
.inf-eq .figura-cuerpo .fc-p.on4 { fill: var(--accent-dark); fill-opacity: 1; }
/* R10-D punto 11 (05-informe-v4 + 05b): Equilibrio de fuerza — hexágono en .sq y pop-up de paquetes. */
.inf-fz .hd button.navc, .inf-pop button.navc { position: relative; border: 0; background: none; padding: 0; margin: 0; font: inherit; cursor: pointer; touch-action: manipulation; }
/* Zona táctil de 24 px sin cambiar la altura de la cabecera (la .hd de la maqueta mide lo que el texto). */
.inf-fz .hd button.navc::before, .inf-pop button.navc::before { content: ''; position: absolute; inset: -6px -4px; }
.inf-fz, .inf-pop > .pan { line-height: 1.3; }
.inf-fz .bd svg.hex { width: 100%; height: 100%; display: block; }
.hex text.sin { opacity: .45; }
.inf-pop > .pan { position: absolute; left: 0; right: 0; bottom: 0; top: 60px; background: #231A14; border-radius: 24px 24px 0 0; padding: 16px 16px 30px; overflow: auto; overscroll-behavior: contain; }
[data-theme="light"] .inf-pop > .pan { background: var(--bg); }
.inf-pop button.navc { color: var(--accent); font-weight: 700; }
.inf-pop-nota { text-align: center; margin-top: 12px; }
@media (min-width: 1024px) { .inf-pop > .pan { max-width: 640px; margin: 0 auto; } }
/* R10-D punto 12 (05-informe-v4 + 05c) — Tus marcas: .marcas3 en la tarjeta y
   filas .mk con viñeta en el pop-up. El pop-up queda por debajo de la ficha
   (#detail-overlay, z 100) para que "tocar una marca" muestre su evolución encima. */
.inf-mc { line-height: 1.3; }
.inf-mc .row.between button.navc { position: relative; border: 0; background: none; padding: 0; margin: 0; font: inherit; cursor: pointer; touch-action: manipulation; }
.inf-mc .row.between button.navc::before { content: ''; position: absolute; inset: -6px -4px; }
#modal-inf-marcas { z-index: 96; }
.mk-rejilla .mk[role="button"] { cursor: pointer; }
.mk-rejilla .mk[role="button"]:focus-visible, .mk-rejilla button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* En la maqueta .phone.light .thumb (0,3,0) gana a .thumb.vin: fondo blanco en claro (más especificidad porque el bloque v2 portado va detrás). */
html[data-theme="light"] .thumb.vin { background: #fff; }
.lvl i.n0 { background: var(--card2); }
.lvl i.n1 { background: rgba(250, 124, 30, .28); }
.lvl i.n2 { background: rgba(250, 124, 30, .55); }
.lvl i.n3 { background: var(--accent); }
.lvl i.n4 { background: var(--accent-dark); }
.inf-grid2 { flex: 1; min-width: 0; grid-template-columns: 1fr 1fr; gap: 6px; }
.inf-grid2 .g { padding: 8px; }
.inf-grid2 .g .v { font-size: 15px; }
.inf-grid2 .g .v.alerta { color: var(--accent); }
.inf-grid3 { grid-template-columns: repeat(3, 1fr); }
.inf-grupos-fila { align-items: center; }
.inf-figura { flex-shrink: 0; }
.inf-figura__svg { display: block; height: 140px; width: auto; }
.inf-col button.inf-link { border: 0; background: none; padding: 0; font-family: inherit; color: var(--accent); cursor: pointer; }
.inf-col button.inf-fila { width: 100%; border: 0; background: none; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; align-items: center; }
.inf-fila__txt { min-width: 0; }
/* R10-D punto 15 (05-informe-v4): tarjeta del historial con miniatura y .acts3. Cada acción es un
   <button> transparente de 44 px (área táctil R10-C) con márgenes negativos para que la fila mida
   lo mismo que en la plantilla; el <span> interior lleva el aspecto de `.acts3 span` (bloque v2). */
#inf-historial { line-height: 1.3; }
.card.inf-sesion { padding: 12px 14px; }
.inf-fila__txt { flex: 1; }
.inf-fila__t { font-weight: 600; }
#inf-historial-todos { display: block; }
#inf-historial-todos.hidden { display: none; }
.acts3 > button { flex: 1; display: flex; align-items: center; min-width: 0; min-height: 44px; margin: calc((18px + 13px * 1.3 - 44px) / 2) 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
.acts3 > button > span { display: block; width: 100%; line-height: 1.3; }
.acts3 > button.p > span { background: rgba(250,124,30,.16); color: var(--accent); }
.acts3 > button[aria-busy="true"] { opacity: .5; }
.inf-spark { width: 80px; height: 24px; flex-shrink: 0; }
.inf-spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.inf-col button.inf-chip { font-size: 12px; border: 0; font-family: inherit; cursor: pointer; }
/* R10-D punto 13 — Mi peso / Mis pasos (05-informe-v4 tarjetas 7-8) y hoja "Registrar pasos". */
#inf-peso, #inf-pasos { line-height: 1.3; }
/* La maqueta deja el svg en línea (preflight lo pone en bloque): mismo alto de caja. */
#inf-peso-spark > .spark, #inf-pasos-spark > .spark { display: inline; }
.inf-pp-fila { align-items: flex-end; }
.inf-pp-fila > .small { padding-bottom: 5px; }
.inf-pp-v { font-size: 28px; font-weight: 700; }
.inf-pp-v > .small { font-weight: 500; }
#modal-inf-pasos .rh { background: var(--card2); }
#modal-inf-pasos .chips > .chip { border: 0; font-family: inherit; cursor: pointer; }
#modal-inf-pasos #inf-ps-guardar { width: 100%; }
#inf-ps-error { color: var(--accent); }
.rh .ticks { touch-action: none; cursor: grab; }
.rh .ticks.arrastrando { cursor: grabbing; }
.rh .ticks:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.inf-col button.inf-plegable { width: 100%; border: 0; background: none; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; align-items: center; }
/* R10-D punto 14 (05d): ACWR plegado = valor + chip + chevron; desplegado = gráfica, leyenda y regla. */
#inf-acwr { line-height: 1.3; }
#inf-acwr .inf-acwr-v { color: var(--text); font-size: 18px; }
#inf-acwr .inf-acwr-chip { font-size: 11px; color: var(--accent); }
#inf-acwr-chevron { transition: transform .15s ease; }
#inf-acwr.is-abierta #inf-acwr-chevron { transform: rotate(180deg); }
#inf-acwr-grafica > svg.acwr { display: inline; }
#hub-acwr-gauge { margin-top: 8px; height: 10px; }
/* R6k Â§16.3 â€” "Pausa" a pantalla completa, fondo accent, sobre todo el
   overlay (abierta por â† en la cabecera active). Desliza derâ†’izq. */
/* -- 11 . Pausa (11-pausa.tpl.html): pantalla accent, tarjetas oscuras, Continuar blanca.
   Colores fijos de la maqueta en ambos temas (la pantalla es accent siempre). -- */
.wv-pausa {
    position: absolute; inset: 0; z-index: 10; overflow-y: auto;
    background: var(--accent); color: #1A130F;
    transform: translateX(0); transition: transform .25s ease;
}
.wv-pausa.hidden { display: none; }
.wv-pausa__body { max-width: 640px; margin: 0 auto; }
.wv-pausa__body.hidden { display: none; }
.wv-pausa__close { display: flex; padding: 0; border: 0; background: none; cursor: pointer; color: #1A130F; }
.wv-pausa .hdr .back svg { stroke: #1A130F; }
.wv-pausa__scroll { padding-top: 60px; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.wv-pausa__body > .wv-pausa__scroll:first-child { padding-top: 106px; }
.wv-pausa__title { font-size: 40px; font-weight: 700; letter-spacing: -.5px; color: #1A130F; margin: 0; }
.wv-pausa__texto { font-size: 16px; font-weight: 600; color: #1A130F; margin: 8px 0 0; }
.wv-pausa__card, .wv-pausa__btn-blanco {
    display: flex; flex-direction: column; width: 100%; border: 0; text-align: left;
    font-family: inherit; cursor: pointer; padding: 22px;
}
.wv-pausa__card { background: #1A130F; color: #FCF6EE; }
.wv-pausa__card:has(.wv-pausa__card-sub) { padding: 20px 22px; }
.wv-pausa__card .h3, .wv-pausa__btn-blanco .h3 { display: block; font-size: 18px; }
.wv-pausa__card-sub { display: block; color: #B39C8A; margin-top: 4px; }
.wv-pausa__btn-blanco { background: #fff; }
.wv-pausa__btn-blanco .h3 { color: #E06000; text-transform: uppercase; }
/* Panel active Â· tarjeta de ejercicio + filas de series (R-3d) */
/* R8 parte B (punto 7, Â§16.1) â€” marco de miniatura SIEMPRE: fondo blanco con
   silueta; la imagen (si existe y carga) se superpone. */
.wv-thumb {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    overflow: hidden; color: #B39C8A;
}
.wv-thumb:not(.thumb) { background: #fff; }
.wv-thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.wv-thumb__ph { width: 60%; height: 60%; }
/* R9-A punto 10 â€” miniatura = acceso a la ficha; icono derecho = Sustituir;
   "+ AÃ±adir ejercicios" al final de la lista de la activa. */
/* R6k Â§16.3 â€” "+ AÃ±adir una serie" bajo la lista de series (antes
   "Completar ejercicio"/"Descanso recomendado", retirados: Todos en
   el footer cubre completar, y el descanso ya no se anuncia aquÃ­). */
.wv-exercise__thumbbtn { padding: 0; border: 0; background: none; cursor: pointer; flex-shrink: 0; display: inline-flex; border-radius: 10px; }
/* .wv-setrow, .wv-setrow__*, .wv-rest, .wv-rest__* â†’ ver byu-app.css (R6: grid con RPE + descanso circular) */
/* MenÃº contextual por ejercicio (R-3e) */
.wv-menu { position: absolute; inset: 0; z-index: 6; display: flex; align-items: flex-end; }
.wv-menu.hidden { display: none; }
.wv-menu__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.wv-menu__card {
    position: relative; z-index: 1; width: 100%; max-width: 640px; margin: 0 auto;
    background: var(--bg-card, #fff); border: 1px solid var(--color-border, #E2CDAE);
    border-radius: 1.5rem 1.5rem 0 0; box-shadow: 0 -8px 32px rgba(0,0,0,.22);
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; gap: .375rem;
}
/* R6k Â§16 Parte 1 â€” menÃº â‹¯ contextual como desplegable ANCLADO (no hoja de
   base): mismo marcado `.wv-menu`/`.wv-menu__card`, pero con esta clase
   extra la tarjeta se ancla (position:fixed, ver `_anclarMenuDropdown`)
   cerca del botÃ³n que lo abriÃ³, con esquinas en las 4 y ancho acotado.
   Las hojas reales (Material, AÃ±adir ejercicios, Compartirâ€¦) no llevan
   esta clase y siguen comportÃ¡ndose como bottom sheet de ancho completo. */
.wv-menu--dropdown { align-items: flex-start; }
.wv-menu--dropdown .wv-menu__card {
    width: auto; max-width: 260px; min-width: 220px; margin: 0;
    border-radius: 1rem; box-shadow: 0 8px 28px rgba(0,0,0,.22);
    padding: .5rem;
}
/* R6k Â§16 Parte 1 â€” teclado numÃ©rico propio (KG/Reps/esfuerzo). Oculto
   por completo en â‰¥1024px: en escritorio se teclea con el fÃ­sico.
   R9-A (punto 8): vive a nivel de <body> (sirve tambiÃ©n a "Tus marcas"),
   asÃ­ que su z-index va por encima de overlay, pantallas y hojas.
   R10-F3 (punto 1): #wv-keypad es hijo directo de <body>, fuera de #app-shell
   y de #main-content (un fixed dentro de un contenedor con scroll tactil se
   anclaba al fondo del contenido en iOS). En iOS no se abre: teclado nativo. */
.kbd-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 130; }
.kbd-panel > .kbd { position: static; padding-bottom: calc(14px + env(safe-area-inset-bottom)); color: var(--text); }
.kbd > .kbd-aux svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kbd-panel.hidden { display: none; }
/* R9-A (punto 15): las marcas del onboarding (overlay z-index 9999) usan el mismo teclado. */
body:has(#byu-onboarding-overlay) .kbd-panel { z-index: 10000; }
@media (min-width: 1024px) { .kbd-panel { display: none !important; } }
.wv-menu__title {
    font-size: .8125rem; font-weight: 900; color: var(--color-text);
    text-align: center; padding: .25rem 0 .5rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wv-menu__item {
    width: 100%; padding: .875rem 1rem; border-radius: .875rem;
    border: 1px solid var(--color-border, #E2CDAE); background: var(--bg-main, #fff);
    color: var(--color-text); font-size: .875rem; font-weight: 700; cursor: pointer;
    text-align: left; transition: background .15s, border-color .15s;
}
.wv-menu__item:hover { border-color: var(--color-accent, #FA7C1E); }
.wv-menu__item--cancel { text-align: center; color: var(--color-text-muted); font-weight: 800; }
.wv-menu__item--danger { color: #dc2626; }
/* Aviso de sesiÃ³n (R-4b): banda informativa (p.ej. semana de descarga) â€” la
   previa usa `.card` (R9-B); estas reglas quedan para el resto de paneles. */
.wv-aviso:not(.card) {
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
    padding: .625rem .75rem; border-radius: .875rem; margin-bottom: .75rem;
    font-size: .75rem; font-weight: 600; line-height: 1.35;
    border: 1px solid var(--color-border-subtle, #EADFC8); background: var(--bg-card, #fff);
    color: var(--color-text-muted);
}
.wv-aviso--deload { border-color: rgba(59,130,246,.32); background: rgba(59,130,246,.08); color: #2563eb; }
/* R10-C (§2): fila de sugerencia del motor bajo la cabecera de la previa. */
/* R10-D punto 7 (07-previa-v2): la sugerencia es la fila .sug (borde de acento a
   la izquierda); las acciones son texto: la primera y la marcada en acento, el
   resto en apagado. */
.wv-sug__txt { color: var(--text); }
.sug .acts > button { background: none; border: 0; padding: 0; height: auto; min-height: 0; font: inherit; color: inherit; cursor: pointer; }
.sug .acts > button + button { color: var(--muted); }
.sug .acts > button.wv-sug__btn--on { color: var(--accent); }
.sug .acts > button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
/* R10-C2 (A.4): Previsualizar — lo que quita el motor tachado, lo nuevo en acento. */
.wv-sug__nota { display: block; margin-top: 4px; }
.wv-cambio-antes { text-decoration: line-through; color: var(--muted); }
.wv-cambio-despues { color: var(--accent); font-weight: 700; }
/* Cierre: cabeceras de bloque (hasta su migraciÃ³n R9-B) */
.wv-bloque__header:not(.xs):not(.l):not(.h2) { font-size: .6875rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   R9-B â€” PARIDAD CON MAQUETAS. Pegamento de layout del flujo de sesiÃ³n
   sobre los componentes de byu-ui.css (que dan medidas, color y tipo).
   AquÃ­ solo: posiciÃ³n dentro del overlay, columna de escritorio,
   cabecera dinÃ¡mica y estados que la maqueta no dibuja.
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.wv-overlay .hidden { display: none; }
.wv-wrap { flex-wrap: wrap; }

/* Escritorio (â‰¥1024): el overlay deja ver el riel de navegaciÃ³n (216 px a la
   izquierda dentro de #app-shell, mÃ¡x. 1280 centrado) y los paneles son una
   columna de 640 px centrada en el espacio restante. */
@media (min-width: 1024px) {
    .wv-overlay {
        left: calc(max(0px, (100vw - 1280px) / 2) + 216px);
        right: max(0px, (100vw - 1280px) / 2);
    }
    #wv-preview { width: 100%; max-width: 640px; margin: 0 auto; }
}

/* â”€â”€ 07 Â· Previa â”€â”€ */
#wv-preview { overflow: hidden; }
#wv-preview > .hero {
    flex-shrink: 0; overflow: hidden;
    height: calc(150px - 86px * var(--wv-colapso, 0));
}
#wv-preview .wv-preview-img {
    position: absolute; inset: 0;
    opacity: calc(1 - var(--wv-colapso, 0));
}
.wv-preview-img__ph { width: 100%; height: 100%; object-fit: cover; display: block; }
#wv-preview > .hero .nav { z-index: 1; }
#wv-preview > .hero .nav button { width: 34px; height: 34px; align-items: center; justify-content: center; }
#wv-preview > .titlecard { flex-shrink: 0; z-index: 1; }
/* R10-B2 (4a, CEO): figura grande (frente y espalda, 1676×1388) con el borde
   derecho alineado con el del botón Continuar (mismo padding de 16 px que el
   footer). */
/* R10-D punto 7 (07-previa-v2): la figura (112 px de alto) va arriba, a 2 px
   del borde superior del texto; ya no se centra entre el nombre y la .kv. */
.wv-prev-cuerpo { flex-shrink: 0; align-self: flex-start; display: flex; align-items: flex-start; padding-top: 2px; }
#wv-preview .wv-prev-cuerpo .body-svg { width: 136px; height: 112px; display: block; }
#wv-preview > .titlecard .day { font-size: 32px; }
#wv-preview > .titlecard .pill { font-size: 14px; }
#wv-preview .wv-prev-sub { margin-top: 4px; }
/* R9-C (punto 5): cuerpo vectorial. Trazados en card2/border; grupos
   trabajados en accent con tres opacidades según intensidad. */
.figura-cuerpo .fc-p { fill: var(--card2); stroke: var(--border); stroke-width: 0.75px; vector-effect: non-scaling-stroke; }
.figura-cuerpo .fc-p.on1 { fill: var(--accent); fill-opacity: 0.35; }
.figura-cuerpo .fc-p.on2 { fill: var(--accent); fill-opacity: 0.65; }
.figura-cuerpo .fc-p.on3 { fill: var(--accent); fill-opacity: 1; }
#wv-preview-scroll { flex: 1; min-height: 0; overflow-y: auto; padding-top: 0; padding-bottom: 160px; }
/* Compensa lo que crece la zona de scroll al encoger la foto: evita el
   rebote en listas cortas (el scroll mÃ¡ximo no baja al colapsar). */
#wv-preview-scroll::after { content: ''; display: block; height: calc(86px * var(--wv-colapso, 0)); }
.kv > .wv-acceso { flex: 1; text-align: left; }
.kv > div + div, .kv > .wv-acceso + .wv-acceso { border-left: 1px solid var(--border); padding-left: 16px; }
.kv > .wv-acceso { min-width: 0; }
.kv .v .wv-acceso__txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv .v svg { flex: none; }
.ex-row.wv-exrow[onclick] { cursor: pointer; }
.wv-exrow__body { flex: 1; min-width: 0; }
.ex-row .ico { flex-shrink: 0; }
.wv-tag { padding: 2px 8px; font-size: 11px; margin-left: 6px; vertical-align: 2px; }
.wv-exrow__clave { color: var(--accent); font-weight: 700; }
.wv-bloque__header svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wv-superset { padding-left: 10px; box-shadow: inset 3px 0 0 var(--accent); border-radius: 2px; }
/* R10-D punto 7 (07-previa-v2): fases no principales como filas .fase plegadas
   (nombre · nº a la izquierda; minutos y flecha a la derecha). Toda la fila es
   el botón: su ::after cubre la .fase. La principal lleva cabecera .h2 + minutos. */
.wv-fase { position: relative; }
.fase > .l.wv-bloque__header { display: block; width: auto; min-height: 0; padding: 0; background: none; border: 0; font: inherit; font-size: 14px; font-weight: 600; color: inherit; text-align: left; cursor: pointer; }
.fase > .l.wv-bloque__header::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.fase > .l.wv-bloque__header:focus-visible { outline: none; }
.fase > .l.wv-bloque__header:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 14px; }
.fase .wv-fase__n { font-weight: 500; }
/* R10-B2 (4b): desplegables de fase de la previa (la principal no se pliega). */
button.wv-bloque__header { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 32px; padding: 0; background: none; border: 0; text-align: left; cursor: pointer; }
.wv-bloque--plegable:not(.is-abierta) { gap: 0; }
.wv-bloque__filas[hidden] { display: none; }
.wv-panel > .footer { z-index: 2; }

/* MenÃºs y hojas dentro de un panel: contenedor a pantalla completa con
   .dim + .sheet (o .menu anclado al botÃ³n que lo abre). */
.wv-menu > .dim, .wv-menu > .sheet { z-index: 0; }
.wv-menu > .sheet {
    z-index: 1; max-height: 85%; overflow-y: auto;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}
.wv-menu > .sheet > .btn { width: 100%; }
.wv-menu__fondo { position: absolute; inset: 0; }
.wv-menu--dropdown > .menu { z-index: 1; top: 56px; right: 12px; }

/* -- 10 . Activa (10-activa.tpl.html; medidas de la fila segun BRIEFING 16.3) -- */
#wv-active { overflow: hidden; }
.wv-active-hdr { flex-shrink: 0; padding-bottom: 6px; }
.wv-active-hdr > .back, .wv-active-head__lapiz { display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: none; cursor: pointer; flex-shrink: 0; }
.wv-active-head { flex: 1; min-width: 0; }
.wv-active-head__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wv-active-head__timer { flex-wrap: wrap; row-gap: 0; }
.wv-active-head__crono { font-size: 30px; font-weight: 700; letter-spacing: -.5px; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.wv-active-head__lapiz { width: 22px; height: 22px; color: var(--muted); }
.wv-active-head__lapiz svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wv-active-head__timer .wv-rest-mini { margin-left: 6px; color: var(--muted); }
.wv-ring-btn { width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.wv-ring-svg { display: block; width: 44px; height: 44px; transform: rotate(-90deg); }
.wv-ring-pista { stroke: var(--border); }
.wv-ring-fill { transition: stroke-dashoffset .4s ease; }
.wv-ring-fill--ext { stroke: var(--muted); }
.wv-ring-fill--int { stroke: var(--accent); }
.wv-active-hdr > .wv-pill--terminar { height: 40px; padding: 0 16px; font-size: 14px; flex-shrink: 0; }
.wv-ring-bubble {
    position: absolute; right: 16px; top: 64px; z-index: 5; max-width: 240px;
    background: var(--card2); color: var(--text); border-radius: 12px; padding: 10px 12px;
    font-size: 13px; font-weight: 600; line-height: 1.35; box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.wv-aviso--activa { flex-shrink: 0; margin: 0 16px 4px; }
#wv-active-scroll { flex: 1; min-height: 0; overflow-y: auto; max-width: none; margin: 0; padding: 0 16px 120px; }
#wv-active-container { gap: 0; }
.exh .t { min-width: 0; }
.exh .chev { display: flex; justify-content: center; flex-shrink: 0; }
.exh .chev svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.exh .ico { flex-shrink: 0; padding: 0; }
.exh button.ico { color: var(--muted); }
.exh .st svg { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.wv-exh--tenue { opacity: .6; }
.set { height: 64px; position: relative; }
.set .box { min-width: 0; font-size: 24px; }
.set button.ck { padding: 0; background: none; color: inherit; cursor: pointer; }
.set .ck svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.set button.n { padding: 0; border: 0; background: none; font-family: inherit; font-size: inherit; font-weight: 600; color: inherit; cursor: pointer; }
.set .wv-setrow__n-btn--a { color: var(--muted); }
.set .wv-setrow__n-btn--f { color: var(--accent); }
/* R10-F B8 (§70): menú de una serie en Editar (descanso tras la serie + quitarla). */
.wv-serie-menu__descanso { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 18px; font-size: 15px; }
.wv-serie-menu__caja { display: flex; align-items: center; gap: 6px; }
.wv-serie-menu__caja .box { width: 64px; height: 40px; border-radius: 10px; background: var(--card2); border: 0; color: inherit; text-align: center; font-size: 18px; font-weight: 700; }
.menu > button:disabled { opacity: .4; cursor: default; }
.set input.box, .set select.box {
    border: 0; padding: 0; font-family: inherit; color: inherit; text-align: center; text-align-last: center;
    outline: none; -webkit-appearance: none; appearance: none; -moz-appearance: textfield;
}
.set input.box:focus, .set select.box:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.set input.box::placeholder { color: var(--muted); }
.set button.lab { padding: 0; border: 0; background: none; font-family: inherit; text-align: left; cursor: pointer; }
.set .lab.wv-lab--ancha { width: 44px; }
.set.is-siguiente::before {
    content: ''; position: absolute; left: -16px; top: calc(50% - 8px);
    border: 8px solid transparent; border-left: 10px solid var(--accent); border-right: 0;
}
.wv-setrow__amrap-note { text-align: center; margin-top: 4px; }
/* R10-B2 (punto 5, decisión CEO 14): "?" de la carga total junto al kg y
   "= 2 × N" centrado bajo la caja. La caja va envuelta (.wv-mq-caja) para que
   la ayuda la siga aunque encoja en móvil; la fila deja sitio debajo. */
.set .lab.wv-lab--mq { display: inline-flex; align-items: center; gap: 2px; width: auto; min-width: 34px; flex: none; }
.wv-mq { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; flex: none; }
.wv-mq svg { width: 16px; height: 16px; }
.wv-exrow__meta .wv-mq { width: 14px; height: 14px; margin-left: 4px; vertical-align: -3px; }
.wv-exrow__meta .wv-mq svg { width: 14px; height: 14px; }
.set .wv-mq-caja { position: relative; display: flex; width: 72px; min-width: 0; flex: 0 1 auto; }
.set .wv-mq-caja > .box { width: 100%; }
.wv-mq-ayuda { font-size: 12px; line-height: 14px; font-weight: 600; color: var(--muted); }
.wv-mq-ayuda:empty { display: none; }
.wv-mq-caja > .wv-mq-ayuda { position: absolute; left: -8px; right: -8px; top: calc(100% + 11px); text-align: center; white-space: nowrap; pointer-events: none; }
.set.wv-set--mq { margin-bottom: 20px; }
.wv-mq-ayuda--previa { margin-top: 2px; }
.wv-active-addex { margin-top: 16px; color: var(--accent); }
/* R9-D (punto 4): fases de la activa en acordeón (cabecera sin borde ni fondo, acento solo al completar). */
.wv-fase__head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 16px 0 8px; background: none; border: 0; color: var(--color-text-muted); cursor: pointer; text-align: left; }
.wv-fase__nombre { flex: 1; }
.wv-fase__estado { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; }
.wv-fase__estado.ok { color: var(--accent); }
.wv-fase__head svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wv-fase.is-plegada > .wv-fase__body { display: none; }
.wv-active-footer .wv-todos { width: 74px; flex: none; flex-direction: column; gap: 2px; height: 56px; font-size: 12px; }
.wv-active-footer .wv-registrar { flex: 1; width: auto; height: 56px; }
@media (min-width: 1024px) {
    #wv-active { width: 100%; max-width: 640px; margin: 0 auto; overflow: visible; }
    #wv-active-list {
        position: absolute; right: calc(100% + 12px); top: 72px; width: 188px;
        max-height: calc(100% - 96px); overflow-y: auto; flex-direction: column; gap: 8px;
    }
}

/* R6j Â§15.6 â€” panel EDIT: fila de campos editables por ejercicio */
/* -- 12 . Edicion (12-edicion.tpl.html; BRIEFING 16.4) -- */
#wv-edit { overflow: hidden; }
.wv-edit-hdr {
    flex-shrink: 0; background: var(--accent); color: #1A130F;
    padding-top: calc(8px + env(safe-area-inset-top)); padding-bottom: 14px;
}
.wv-edit-hdr > .back { display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: none; cursor: pointer; flex-shrink: 0; }
.wv-edit-hdr .back svg { stroke: #1A130F; }
.wv-edit-head { flex: 1; min-width: 0; }
.wv-edit-head__titulo { display: block; font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wv-edit-head__modo { opacity: .85; }
#wv-edit .wv-edit-scroll { flex: 1; min-height: 0; overflow-y: auto; max-width: none; margin: 0; padding: 4px 16px 120px; }
body:has(#wv-keypad:not(.hidden)) #wv-edit .wv-edit-scroll { padding-bottom: 340px; }
#wv-edit-container { gap: 0; }
.wv-edit-set .n { margin-left: 6px; }
.wv-edit-set span.box { overflow: hidden; }
#wv-edit-container > .wv-edit-addex { color: var(--accent); }
.wv-edit-vacio { margin: 24px 0 0; text-align: center; }
.wv-edit-footer { position: absolute; left: 16px; right: 16px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 2; }
.wv-edit-footer > .btn { width: 100%; }
body:has(#wv-keypad:not(.hidden)) .wv-edit-footer { bottom: 262px; }
@media (min-width: 1024px) {
    #wv-edit { width: 100%; max-width: 640px; margin: 0 auto; }
}

/* R6j Â§15.9 â€” hoja "AÃ±adir ejercicios" (buscador + lista con selecciÃ³n mÃºltiple) */
/* -- 13 . Anadir ejercicios (13-anadir.tpl.html): hoja a 24 px del borde superior,
   lista con scroll propio y footer "Guardar (n)" / "Cancelar" sobre la hoja. -- */
#wv-sheet-addex > .sheet {
    top: 24px; max-height: none; overflow: hidden;
    display: flex; flex-direction: column; padding-bottom: 0;
}
.wv-addex-titulo { font-size: 24px; }
.wv-addex-sheet button.ico { padding: 0; cursor: pointer; flex-shrink: 0; color: var(--muted); }
.wv-addex-campo { flex-shrink: 0; cursor: text; }
.wv-addex-buscador {
    flex: 1; min-width: 0; height: 100%; margin-left: 10px; padding: 0; border: 0; outline: none;
    background: none; color: var(--text); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none;
}
.wv-addex-buscador::placeholder { color: var(--muted); opacity: 1; }
.wv-addex-buscador::-webkit-search-cancel-button { -webkit-appearance: none; }
.wv-addex-lista { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -16px; padding: 0 16px 160px; }
.wv-addex-item { width: 100%; min-height: 0; padding: 12px 14px; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.wv-addex-check {
    width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); flex: none;
    display: flex; align-items: center; justify-content: center; color: #1A130F;
}
.wv-addex-item.is-active .wv-addex-check { background: var(--accent); border: 0; }
.wv-addex-check svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wv-addex-vacio { margin: 24px 0 0; text-align: center; }
#wv-sheet-addex > .footer {
    z-index: 2; padding-bottom: calc(24px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, #231A14 70%, rgba(35,26,20,0));
}
[data-theme="light"] #wv-sheet-addex > .footer { background: linear-gradient(to top, #FCF6EE 70%, rgba(252,246,238,0)); }
#wv-sheet-addex > .footer > .btn { width: 100%; }
#wv-sheet-addex > .footer > .wv-addex-cancelar { height: 46px; }
#wv-sheet-addex > .footer > .btn:disabled { opacity: .5; cursor: default; }

/* -- 17 . Sustituir (17-sustituir.tpl.html): .dim + .sheet a 120 px del borde
   superior; filas .ex-row compactas (12/14) con chip "Elegir" de 12 px. -- */
.sust-modal { position: fixed; inset: 0; z-index: 95; }
.sust-modal.hidden { display: none; }
.sust-modal > .sheet { top: 120px; overflow-y: auto; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.sust-cab { min-width: 0; }
.sust-actual { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sust-sheet > .row > button.ico { padding: 0; cursor: pointer; flex-shrink: 0; color: var(--muted); }
.sust-campo { cursor: text; }
.sust-buscador {
    flex: 1; min-width: 0; height: 100%; margin-left: 10px; padding: 0; border: 0; outline: none;
    background: none; color: var(--text); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none;
}
.sust-buscador::placeholder { color: var(--muted); opacity: 1; }
.sust-buscador::-webkit-search-cancel-button { -webkit-appearance: none; }
.sust-item { width: 100%; min-height: 0; padding: 12px 14px; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.sust-item__body { flex: 1; min-width: 0; }
.sust-item > .chip { font-size: 12px; flex-shrink: 0; }
.sust-afin { color: var(--accent); }
.sust-nota { line-height: 1.5; }
@media (min-width: 1024px) {
    .sust-modal {
        left: calc(max(0px, (100vw - 1280px) / 2) + 216px);
        right: max(0px, (100vw - 1280px) / 2);
    }
    .sust-modal > .sheet { max-width: 640px; margin: 0 auto; }
}

/* Cierre (2d) y sub-sheets (saltar/historial/nota) â€” R6e */
/* -- 14 . Cierre (14-cierre.tpl.html; BRIEFING 16.5): titulo accent, carrusel
   scroll-snap de tarjetas 4:5 (mismo formato que la imagen exportada 1080x1350),
   dureza en 10 chips, fila "Compartir en" con circulos de 56 px. -- */
#wv-cierre { overflow: hidden; }
.wv-cierre-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-top: 16px; padding-bottom: 120px; text-align: center; }
.wv-cierre-titulo { font-size: 36px; font-weight: 700; color: var(--accent); letter-spacing: -.5px; line-height: 1.15; }
.wv-cierre-sub { font-size: 16px; margin-top: 2px; }
.wv-cierre-carrusel {
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
    scrollbar-width: none; overscroll-behavior-x: contain; text-align: left;
}
.wv-cierre-carrusel::-webkit-scrollbar { display: none; }
.wv-ccard { width: calc(min(100vw, 390px) - 48px); height: auto; aspect-ratio: 4 / 5; scroll-snap-align: start; overflow: hidden; }
.wv-ccard > .xs { text-align: center; }
.wv-ccard__cifra { font-size: 48px; font-weight: 700; text-align: center; margin-top: 6px; letter-spacing: -1px; line-height: 1.1; }
.wv-ccard__cifra > span { font-size: 20px; letter-spacing: 0; }
.wv-ccard__sub { text-align: center; margin-top: 4px; }
.wv-ccard__ilus { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.wv-ccard__barra { width: 200px; height: 130px; stroke: var(--accent); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.wv-ccard__figs { display: flex; gap: 8px; align-items: center; justify-content: center; }
.wv-ccard__fig { width: 78px; height: 138px; }
.wv-ccard__datos { justify-content: space-around; margin-bottom: 34px; text-align: center; }
.wv-ccard__datos .h3 { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.wv-ccard__lapiz { display: inline-flex; padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer; }
.wv-ccard__lapiz svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wv-ccard__lista { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; min-height: 0; overflow: hidden; }
.wv-ccard__lista > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wv-ccard__lista b { color: var(--accent); margin-right: 4px; }
.wv-ccard__lista .muted { font-weight: 500; }
.wv-ccard__linea { border: 0; border-top: 1.5px dashed var(--border); margin: auto 0 12px; }
.wv-ccard__marca { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 600; line-height: 1.35; }
.wv-ccard__marca svg { width: 16px; height: 16px; flex: none; margin-top: 2px; fill: var(--accent); stroke: none; }
/* R10-C2 (A.11): estrella de marca en la fila de la previa hecha. */
.wv-exrow__pr { display: inline-flex; vertical-align: -2px; margin-left: 6px; }
.wv-exrow__pr svg { width: 14px; height: 14px; fill: var(--accent); stroke: none; }
/* R9-D (punto 6): el logotipo BYU PROJECT ocupa la caja 22×22 del cuadrado de la maqueta. */
.ccard .foot img.logo { background: none; border-radius: 0; object-fit: contain; flex: none; }
.wv-cierre-dureza { text-align: left; padding: 14px 16px; }
.wv-cierre-nota-toggle { display: block; padding: 0; border: 0; background: none; font-family: inherit; text-align: left; cursor: pointer; }
.wv-cierre-error { color: #ef4444; }
.wv-cierre-compartir-lbl { letter-spacing: 3px; }
.wv-cierre-share { justify-content: center; gap: 14px; }
.wv-cierre-share > button { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); width: 72px; cursor: pointer; }
.wv-cierre-share i { width: 56px; height: 56px; }
.wv-cierre-footer__par { display: flex; gap: 8px; }
.wv-compartir-texto { white-space: pre-wrap; text-align: left; line-height: 1.5; padding: 12px 14px; max-height: 220px; overflow-y: auto; user-select: text; }
@media (min-width: 1024px) {
    #wv-cierre { width: 100%; max-width: 640px; margin: 0 auto; }
}

/* -- 15 . Actualizar (15-actualizar.tpl.html): .dim + .sheet sobre el cierre,
   titulo .h1 a 24 px, tabla Antes -> Despues en una .card 12/16. -- */
.wv-actualizar-titulo { font-size: 24px; }
.wv-actualizar-texto { line-height: 1.5; }
.wv-actualizar-tabla { padding: 12px 16px; }
#wv-sheet-actualizar-lista { max-height: 240px; overflow-y: auto; }
.wv-actualizar-fila { align-items: baseline; }
.wv-actualizar-nombre { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wv-actualizar-valor { flex-shrink: 0; white-space: nowrap; }
.wv-actualizar-ok { width: 14px; height: 14px; vertical-align: -2px; stroke: var(--accent); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ══════════ R10-B2 (punto 3) — 03 Personalizado (maqueta 03-personalizado) ══════════ */
#modulo-personalizado > .scroll, #modulo-explorar > .scroll { padding-top: 12px; }
.pers-col, .bus-col { width: 100%; max-width: 640px; margin: 0 auto; }
.pers-col { padding-bottom: 72px; }
.pers-card { cursor: pointer; }
.pers-cab { min-width: 0; }
.pers-titulo { gap: 6px; align-items: center; }
.pers-nombre { font-size: 19px; overflow-wrap: anywhere; }
.pers-lapiz { width: 28px; height: 28px; flex: none; display: flex; align-items: center; justify-content: center; border: 0; background: none; padding: 0; color: var(--muted); cursor: pointer; }
.pers-lapiz svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pers-avatar { width: 44px; height: 44px; font-size: 15px; flex: none; }
.pers-estado { display: inline-flex; margin-top: 8px; padding: 4px 10px; font-size: 12px; cursor: default; }
.pers-comunidad { margin-top: 32px; }
.pers-grupo { font-size: 13px; font-weight: 700; color: var(--text); }
.pers-com-card { cursor: default; }
.pers-com-autor { margin-top: 2px; }
.pers-asignar-aviso { align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--card2); }
.pers-lado { align-items: flex-end; gap: 8px; flex: none; }
.pers-card .pers-comenzar { flex: 1; height: 44px; font-size: 14px; border: 0; font-family: inherit; cursor: pointer; }
.pers-card .pers-comenzar:disabled { opacity: .45; cursor: default; }
.pers-card .btn.pers-editar { flex: none; width: 110px; height: 44px; font-size: 14px; background: var(--card2); border: 0; font-family: inherit; cursor: pointer; }
.pers-nuevo { position: fixed; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 30; border: 0; font-family: inherit; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.pers-nuevo span { padding: 8px 6px; font-size: 15px; }
#modulo-personalizado.hidden .pers-nuevo { display: none; }
@media (min-width: 1024px) { .pers-nuevo { right: 32px; bottom: 32px; } }

/* ══════════ R10-B2 (punto 3) — 04 Buscador (maqueta 04-buscador) ══════════ */
.bus-input { gap: 10px; cursor: text; }
.bus-lupa { display: flex; flex: none; }
.bus-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 16px; }
.bus-input input::placeholder { color: var(--muted); }
.bus-input input::-webkit-search-cancel-button { filter: grayscale(1); }
.bus-chips { overflow-x: auto; scrollbar-width: none; }
.bus-chips::-webkit-scrollbar { display: none; }
.bus-chips .chip { flex: none; border: 0; font-family: inherit; cursor: pointer; white-space: nowrap; }
.bus-orden { display: flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font-family: inherit; cursor: pointer; }
.bus-orden svg { width: 14px; height: 14px; }
.bus-fila { min-height: 0; padding: 12px 14px; width: 100%; border: 0; font-family: inherit; color: var(--text); text-align: left; cursor: pointer; }
.bus-fila .thumb { position: relative; }
.bus-fila .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* R10-D punto 8 (04-buscador-v2): fila .srow; viñeta del grupo (PNG) en la caja
   .cuerpo.vin de la plantilla (56×44); .ph sin grupo; dos secciones. */
.bus-fila .meta { display: block; }
.bus-fila .ico { width: 24px; flex: none; }
.bus-vin { height: 44px; }
.bus-vin img { width: 100%; height: 100%; object-fit: cover; display: block; }
#modulo-explorar > .scroll { padding-top: 8px; }
#exercise-db-list .bus-mas { color: var(--accent); }
.bus-sin-nota { text-align: center; margin-top: 4px; }
#modulo-explorar .bus-col { padding-bottom: 24px; }
@media print {
    @page { size: A4; margin: 10mm; }
    body { background: white !important; }
    body.imprimiendo-sesion * { visibility: hidden; }
    body.imprimiendo-sesion #modal-ver-sesion,
    body.imprimiendo-sesion #modal-ver-sesion * { visibility: visible; }
    body.imprimiendo-sesion #modal-ver-sesion {
        position: absolute; left: 0; top: 0; width: 100%; height: 275mm !important;
        background: white !important; color: black !important;
        display: flex !important; flex-direction: column;
        overflow: hidden !important;
    }
    body.imprimiendo-sesion .web-header { display: none !important; }
    body.imprimiendo-sesion .print-header { display: flex !important; visibility: visible !important; border-bottom: 2px solid black; padding-bottom: 10px; margin-bottom: 10px;}
    body.imprimiendo-sesion .print-footer { display: block !important; visibility: visible !important; margin-top: auto; padding-top: 10px; border-top: 1px solid #ccc; text-align: center; }
    body.imprimiendo-sesion #ver-sesion-contenido { padding: 0 !important; gap: 0 !important; display: flex; flex-direction: column; overflow: hidden !important; }
    body.imprimiendo-sesion .bg-byuCard { background: transparent !important; border: none !important; border-bottom: 1px solid #eee !important; padding: 6px 0 !important; border-radius: 0 !important; box-shadow: none !important; margin-bottom: 0 !important;}
    body.imprimiendo-sesion .text-byuText { color: #000 !important; }
    body.imprimiendo-sesion .text-byuTextMuted { color: #555 !important; }
    body.imprimiendo-sesion button { display: none !important; }
    body.imprimiendo-sesion img { width: 35px !important; height: 35px !important; border-radius: 4px !important; }
    body.imprimiendo-sesion h4 { font-size: 11px !important; margin-bottom: 0 !important;}
    body.imprimiendo-sesion .text-xs { font-size: 9px !important; }
    body.imprimiendo-sesion .ocultar-pdf { display: none !important; }
    body.imprimiendo-sesion .bloque-extra-pdf { margin-top: 2px !important; padding-top: 2px !important; font-size: 8px !important; }
    body.imprimiendo-sesion .text-byuNaranja { color: var(--color-accent); }
}

/* ==== R10-D punto 4 (B1.4) — clases v2 portadas de mock-v2.css: INICIO ==== */
/* Generado por scripts/portar-mock-v2.cjs. No editar a mano: editar mock-v2.css y regenerar.
   Excepciones: el modo de captura de página completa (body con clase tall), .li → :not(.list) > .li, .plan → .plan:not(i),
   :where(.chip)/:where(.rd) para el ajuste nowrap/flex:none, .hex{width:100%;height:100%} diferido al Informe v4. */
.cuerpo{display:flex;gap:4px;align-items:center;justify-content:center}
.cuerpo svg{height:100%;width:auto;display:block}
.cuerpo path{fill:var(--card2);stroke:var(--border);stroke-width:4}
.cuerpo path.on{fill:var(--accent);stroke:var(--accent-dark)}
.cuerpo path.on2{fill:rgba(250,124,30,.55);stroke:var(--accent-dark)}
.cuerpo path.on1{fill:rgba(250,124,30,.28);stroke:var(--accent-dark)}
.cuerpo path.sil{fill:var(--card2);stroke:var(--border)}
.cuerpo.light path{fill:#F5E8D6;stroke:#E2CDAE}
.rd{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:rgba(250,124,30,.16);color:var(--accent);font-size:12px;font-weight:700;letter-spacing:.3px}
.rd.low{background:rgba(240,98,77,.16);color:#F0624D}
.rd.mid{background:rgba(250,124,30,.16);color:var(--accent)}
.rd .pen{font-weight:600;opacity:.8}
.rd i{width:7px;height:7px;border-radius:50%;border:1.5px solid currentColor;display:inline-block}
.q{width:18px;height:18px;border-radius:50%;border:1.5px solid var(--muted);color:var(--muted);display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;flex:none}
.ring{position:relative;width:64px;height:64px;flex:none}
.ring svg{width:64px;height:64px;transform:rotate(-90deg)}
.ring circle{fill:none;stroke-width:6}
.ring .tr{stroke:var(--card2)}
.ring .pr{stroke:var(--accent);stroke-linecap:round}
.ring .v{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700}
.pulse{box-shadow:0 0 0 2px var(--accent)}
.hero2{height:120px;background:linear-gradient(160deg,#3A2416,#6A3B24 60%,#2A1A10);position:relative}
.alt{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--border)}
.alt .n{flex:1;min-width:0}
.alt .n .name{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.alt .n .meta{font-size:12px;color:var(--muted);margin-top:2px}
.sug{display:flex;align-items:flex-start;gap:12px;background:var(--card);border-left:3px solid var(--accent);border-radius:14px;padding:12px 14px;margin-top:12px}
.sug .t{flex:1;font-size:14px;line-height:1.35}
.sug .acts{display:flex;gap:14px;margin-top:8px;font-size:13px;font-weight:700;color:var(--accent)}
.sug .acts span+span{color:var(--muted)}
.fase{display:flex;align-items:center;justify-content:space-between;background:var(--card);border-radius:14px;padding:12px 14px;margin-top:10px}
.fase .l{font-size:14px;font-weight:600}
.fase .r{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:8px}
.fase .r svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2}
.grp{font-size:11px;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);font-weight:600;margin-top:18px}
.srow{display:flex;align-items:center;gap:12px;background:var(--card);border-radius:var(--r);padding:12px 14px;margin-top:8px}
.srow .n{flex:1;min-width:0}
.srow .n .name{font-size:15px;font-weight:600}
.srow .n .meta{font-size:12px;color:var(--muted);margin-top:3px}
.srow .go{padding:8px 14px;border-radius:999px;background:var(--accent);color:#1A130F;font-size:13px;font-weight:700}
.srow.done{opacity:.75}
.srow.done .go{background:var(--card2);color:var(--muted)}
.strike{text-decoration:line-through;color:var(--muted)}
.chg{color:var(--accent);font-weight:700}
.srow .n .top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.srow .n .top .name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.srow.sel{border:2px solid var(--accent)}
:where(.rd){white-space:nowrap;flex:none}
:where(.chip){white-space:nowrap;flex:none}
.srow .n .top .name{font-size:15px}
/* Informe v2 */
.sq{background:var(--card);border-radius:var(--r);padding:14px;aspect-ratio:1/1;display:flex;flex-direction:column}
.sq .hd{display:flex;justify-content:space-between;align-items:center}
.sq .bd{flex:1;display:flex;align-items:center;justify-content:center;min-height:0}
.sq .ft{font-size:12px;color:var(--muted);text-align:center}
.hex .g{fill:none;stroke:var(--border);stroke-width:1}
.hex .m{fill:none;stroke:var(--muted);stroke-width:1;stroke-dasharray:4 4}
.hex .v{fill:rgba(250,124,30,.28);stroke:var(--accent);stroke-width:2}
.hex .d{fill:var(--accent)}
.hex .d.e{fill:#fff;stroke:var(--accent);stroke-width:1.5}
.hex text{font-size:11px;font-weight:600;fill:var(--muted)}
.hex text.on{fill:var(--accent)}
.cuerpo.vin{width:56px;border-radius:12px;overflow:hidden;background:var(--card2);flex:none}
.cuerpo.vin svg{width:100%;height:100%}
.regla{height:8px;border-radius:4px;background:var(--card2);position:relative;margin-top:6px}
.regla i{position:absolute;top:0;bottom:0;left:50%;width:1px;background:var(--muted)}
.regla b{position:absolute;top:-3px;width:14px;height:14px;border-radius:50%;background:var(--accent);transform:translateX(-50%)}
.pct{font-size:12px;color:var(--muted);display:flex;justify-content:space-between;margin-top:4px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.grid3 .g{background:var(--card);border-radius:14px;padding:12px 8px;text-align:center}
.grid3 .v{font-size:22px;font-weight:700}
.grid3 .k{font-size:10px;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);margin-top:2px}
:not(.list) > .li{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;background:var(--card);border-radius:14px;margin-top:8px}
:not(.list) > .li .r{color:var(--muted);font-size:13px;display:flex;align-items:center;gap:6px}
:not(.list) > .li .r svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2}
.ph{width:56px;height:56px;border-radius:10px;flex:none;background:repeating-linear-gradient(135deg,#2E2219 0 6px,#352821 6px 12px);position:relative;overflow:hidden}
.ph:after{content:"";position:absolute;left:10px;right:10px;bottom:10px;height:3px;border-radius:2px;background:var(--accent);opacity:.9}
.badgeN{font-size:10px;font-weight:700;color:var(--muted);letter-spacing:.5px;text-transform:uppercase;text-align:center;margin-top:16px}
.cuerpo.vin{background:#2E2219}
.cuerpo.vin path{stroke-width:6}
.hex.sm text{font-size:9px}
.bars{display:flex;align-items:flex-end;justify-content:space-between;height:70px;padding:0 6px}
.bars .b{width:28px;border-radius:6px;background:var(--card2);height:6px}
.bars .b.on{background:var(--accent);height:52px}
.days{display:flex;justify-content:space-between;padding:0 6px;margin-top:8px;font-size:12px;color:var(--muted)}
.days span.on{color:var(--accent);font-weight:700}
.lvl{display:flex;gap:4px;align-items:center;font-size:11px;color:var(--muted)}
.lvl i{width:14px;height:8px;border-radius:2px;display:inline-block}
.menu2{background:#2E2219;border-radius:16px;padding:6px 14px 10px;margin-top:10px;border:1px solid var(--border)}
.pq{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}
.pq:last-child{border-bottom:0}
.pq .l{width:84px;flex:none}
.pq .l .t{font-size:16px;font-weight:700}
.pq .l .s{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.3}
.pq .r{flex:1;display:flex;align-items:center;gap:10px}
.pq .r .ex{font-size:11px;color:var(--muted);line-height:1.35;flex:1}
.pq .r .ex b{color:var(--text);font-weight:600}
.hex.sm{overflow:visible;margin:0 26px 0 30px;flex:none}
.pq .r .ex{font-size:11px}
.pq{flex-direction:column;align-items:stretch;gap:6px}
.pq .l{width:auto;display:flex;align-items:baseline;gap:10px}
.pq .l .s{margin-top:0}
.pq .r{justify-content:flex-start}
.hex.sm{margin:0 22px 0 30px}
/* Informe v4 */
.navc{display:flex;align-items:center;gap:6px;color:var(--muted)}
.navc svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2}
.spark{height:44px;width:100%}
.spark path{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linecap:round}
.spark .a{fill:rgba(250,124,30,.15);stroke:none}
.spark .g{stroke:var(--border);stroke-width:1;stroke-dasharray:3 3}
.marcas3{display:flex;gap:8px;margin-top:10px}
.marcas3 .m{flex:1;background:var(--card2);border-radius:12px;padding:10px 8px;text-align:center}
.marcas3 .m .v{font-size:22px;font-weight:700}
.marcas3 .m .k{font-size:10px;letter-spacing:.5px;text-transform:uppercase;color:var(--muted);margin-top:2px}
.marcas3 .m .e{font-size:11px;color:var(--muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.acts3{display:flex;gap:8px;margin-top:10px}
.acts3 span{flex:1;text-align:center;padding:9px 0;border-radius:10px;background:var(--card2);font-size:13px;font-weight:700;color:var(--text)}
.acts3 span.p{background:rgba(250,124,30,.16);color:var(--accent)}
.popup{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.popup .pan{position:absolute;left:0;right:0;bottom:0;top:60px;background:#231A14;border-radius:24px 24px 0 0;padding:16px 16px 30px;overflow:hidden}
.pq2{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--border);align-items:center}
.pq2:last-child{border-bottom:0}
.pq2 .t{width:78px;flex:none}
.pq2 .t b{font-size:15px}
.pq2 .t .s{font-size:11px;color:var(--muted);margin-top:3px;line-height:1.3}
.pq2 .ex{flex:1;font-size:11px;color:var(--muted);line-height:1.4}
.pq2 .ex b{color:var(--text);font-weight:600}
.hex.xs2{overflow:visible;margin:0 18px 0 26px;flex:none}
.mk{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--border)}
.mk .n{flex:1;min-width:0}
.mk .n b{font-size:15px}
.mk .n .s{font-size:12px;color:var(--muted);margin-top:2px}
.mk .v{font-size:18px;font-weight:700;white-space:nowrap}
.mk .v small{font-size:11px;color:var(--muted);font-weight:500;margin-left:4px}
/* R10-F B7 — rejilla única de marcas (05c lectura / 08g y Perfil edición) */
.mk-rejilla>.grp:first-child{margin-top:14px}
.mk.e .v{color:var(--muted)}
.mk .mk-ed{flex:none;width:32px;height:32px;display:flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:10px;background:var(--card2);color:var(--muted);cursor:pointer}
.mk .mk-ed svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2}
.mk-lista-avz>.mk:last-child{border-bottom:0}
.grp.mk-avz{display:flex;align-items:center;gap:6px;width:100%;padding:0;border:0;background:none;font-family:inherit;text-align:left;cursor:pointer}
.mk-avz svg{width:14px;height:14px;margin-left:auto;stroke:currentColor;fill:none;stroke-width:2;transition:transform .2s}
.mk-avz[aria-expanded="true"] svg{transform:rotate(180deg)}
.mk-anadir{display:flex;align-items:center;justify-content:center;gap:8px}
/* R10-F B7 — hoja del editor de marca (05e): 1RM en vivo, error y 'Cambiar' del ejercicio */
.mk-hoja-1rm{font-size:26px;white-space:nowrap}
.mk-hoja-error{color:var(--accent)}
.mk-hoja-error:empty{display:none}
.mk-hoja-ej .r{display:inline-flex;align-items:center;gap:4px;color:var(--accent);font-weight:600}
.mk-anadir svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2}
.popup .pan{overflow:auto}
.marcas3 .m{min-width:0;padding:10px 4px}
.marcas3 .m .v{font-size:20px}
.marcas3 .m .e{font-size:10px}
.navc{white-space:nowrap;flex:none}
.sq .row.between .small{white-space:nowrap}
.pq2 .t{width:66px}
.pq2 .t .s{font-size:10px}
.pq2 .ex{font-size:10.5px;line-height:1.35}
.hex.xs2{margin:0 14px 0 22px}
.thumb.vin{overflow:hidden;background:#2E2219;padding:0}
.thumb.vin img{width:100%;height:100%;display:block;object-fit:cover}
.acwr{width:100%;height:150px;overflow:visible}
.acwr .band{fill:rgba(250,124,30,.14)}
.acwr .mid{stroke:var(--border);stroke-width:1;stroke-dasharray:3 3}
.acwr .real{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linecap:round}
.acwr .proj{fill:none;stroke:var(--accent);stroke-width:2;stroke-dasharray:5 5;opacity:.7}
.acwr circle.now{fill:var(--accent);stroke:#1A130F;stroke-width:2}
.acwr text.lab{font-size:10px;fill:var(--muted)}
.acwr text.hoy{fill:var(--accent);font-weight:700}
.acwr circle.now{fill:var(--accent)}
.thumb.vin img{width:44px;height:44px;min-height:44px;object-fit:cover}
.thumb.vin{display:block}
/* Onboarding v2 */
.ob-top{display:flex;align-items:center;gap:12px;padding:6px 0 4px}
.ob-top .bar{flex:1;height:4px;border-radius:2px;background:var(--card2);position:relative;overflow:hidden}
.ob-top .bar i{position:absolute;left:0;top:0;bottom:0;background:var(--accent);border-radius:2px}
.ob-top .n{font-size:12px;color:var(--muted);white-space:nowrap}
.ob-top .skip{font-size:13px;font-weight:700;color:var(--accent);white-space:nowrap}
.ob-top .back{width:28px;height:28px;display:flex;align-items:center;justify-content:center}
.ob-top .back svg{width:22px;height:22px;stroke:var(--text);fill:none;stroke-width:2}
.ob-q{font-size:24px;font-weight:700;line-height:1.2;margin-top:14px}
.ob-s{font-size:14px;color:var(--muted);margin-top:6px;line-height:1.4}
.ob-foot{position:absolute;left:16px;right:16px;bottom:22px;display:flex;gap:10px}
.ob-foot .btn{flex:1}
.ob-foot .btn.ghost{flex:0 0 110px}
.pre{display:flex;gap:10px;align-items:flex-start;background:rgba(250,124,30,.10);border:1px solid rgba(250,124,30,.35);border-radius:12px;padding:10px 12px;font-size:12px;color:var(--text);margin-top:12px;line-height:1.35}
.pre b{color:var(--accent)}
.opt{display:flex;align-items:center;gap:12px;background:var(--card);border-radius:14px;padding:14px;margin-top:10px;border:2px solid transparent}
.opt.on{border-color:var(--accent)}
.opt .rad{width:20px;height:20px;border-radius:50%;border:2px solid var(--muted);flex:none}
.opt.on .rad{border-color:var(--accent);background:radial-gradient(var(--accent) 45%,transparent 50%)}
.opt .t{flex:1}
.opt .t b{font-size:15px;display:block}
.opt .t span{font-size:12px;color:var(--muted);display:block;margin-top:2px}
.opt .ic{width:40px;height:40px;border-radius:10px;background:var(--card2);display:flex;align-items:center;justify-content:center;flex:none}
.opt .ic svg{width:24px;height:24px;stroke:var(--accent);fill:none;stroke-width:2}
.opt .ic img{width:40px;height:40px;border-radius:10px}
.rh{background:var(--card);border-radius:14px;padding:12px 14px 10px;margin-top:10px}
.rh .lab{font-size:11px;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);font-weight:600;display:flex;justify-content:space-between}
.rh .val{font-size:34px;font-weight:700;text-align:center;margin-top:4px}
.rh .val small{font-size:14px;color:var(--muted);font-weight:500;margin-left:4px}
.rh .ticks{height:34px;position:relative;margin-top:4px;background:repeating-linear-gradient(90deg,var(--border) 0 1px,transparent 1px 9px);background-position:center;mask:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent)}
.rh .ticks:before{content:"";position:absolute;left:50%;top:-2px;bottom:-2px;width:3px;border-radius:2px;background:var(--accent);transform:translateX(-50%)}
.rh .ticks span{position:absolute;bottom:-14px;font-size:10px;color:var(--muted);transform:translateX(-50%)}
.rh.sm .val{font-size:26px}
.rh.sm .ticks{height:24px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.grid2 .rh{margin-top:0}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.dias{display:flex;justify-content:space-between;gap:6px;margin-top:10px}
.dias div{flex:1;aspect-ratio:1;border-radius:12px;background:var(--card);display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--muted)}
.dias div.on{background:var(--accent);color:#1A130F}
.dias div.gym{box-shadow:inset 0 -4px 0 var(--accent-dark)}
.esc5{display:flex;gap:8px;margin-top:10px}
.esc5 div{flex:1;height:44px;border-radius:12px;background:var(--card);display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--muted)}
.esc5 div.on{background:var(--accent);color:#1A130F}
.esc5 div.lo{background:rgba(250,124,30,.28);color:var(--text)}
.auton{background:var(--card);border-radius:14px;padding:14px;margin-top:12px}
.auton .trk{height:8px;border-radius:4px;background:var(--card2);position:relative;margin:14px 6px 6px}
.auton .trk i{position:absolute;left:0;top:0;bottom:0;border-radius:4px;background:var(--accent)}
.auton .trk b{position:absolute;top:-8px;width:24px;height:24px;border-radius:50%;background:var(--accent);border:3px solid #1A130F;transform:translateX(-50%)}
.auton .nums{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);padding:0 2px}
.auton .exp{margin-top:12px;font-size:13px;line-height:1.4}
.auton .exp b{color:var(--accent)}
.mol{display:flex;gap:12px;margin-top:10px;align-items:flex-start}
.mol .cuerpo{flex:none}
.mol .lst{flex:1}
.google{display:flex;align-items:center;justify-content:center;gap:10px;height:52px;border-radius:14px;background:#fff;color:#1A130F;font-weight:700;font-size:15px}
.google i{width:20px;height:20px;border-radius:50%;background:conic-gradient(#EA4335 0 25%,#FBBC05 0 50%,#34A853 0 75%,#4285F4 0);display:inline-block}
.sum{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid var(--border);font-size:14px}
.sum:last-child{border-bottom:0}
.sum .k{color:var(--muted)}
.sum .v{font-weight:600;text-align:right;max-width:60%}
.sum .v small{color:var(--accent);font-weight:700;margin-left:6px;font-size:12px}
.gen{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:30px 0 10px;text-align:center}
.gen .ring{width:84px;height:84px}
.gen .ring svg{width:84px;height:84px}
.gen .ring .v{font-size:22px}
.mini{display:flex;gap:8px;margin-top:10px}
.mini .m{flex:1;background:var(--card);border-radius:12px;padding:10px;text-align:center}
.mini .m .v{font-size:20px;font-weight:700}
.mini .m .k{font-size:10px;letter-spacing:.5px;text-transform:uppercase;color:var(--muted);margin-top:2px}
.inp3{display:flex;gap:8px;margin-top:10px}
.inp3 .f{flex:1;background:var(--card);border-radius:12px;padding:10px 8px;text-align:center}
.inp3 .f img{width:44px;height:44px;border-radius:10px;display:block;margin:0 auto 6px}
.inp3 .f .v{font-size:20px;font-weight:700}
.inp3 .f .v small{font-size:11px;color:var(--muted);font-weight:500}
.inp3 .f .k{font-size:11px;color:var(--muted);margin-top:2px}
.pre svg,.row svg.ck{width:18px;height:18px;stroke:var(--accent);fill:none;stroke-width:2;flex:none}
.pre>svg{margin-top:1px}
.mol .cuerpo{height:190px}
/* Onboarding v2 (2.ª iteración) */
.tipo{display:flex;align-items:center;gap:12px;background:var(--card);border-radius:14px;padding:10px;margin-top:10px;border:2px solid transparent}
.tipo.on{border-color:var(--accent)}
.tipo .ph2{width:84px;height:64px;border-radius:10px;flex:none;position:relative;overflow:hidden;background:linear-gradient(160deg,#4A2C1A,#2A1A10)}
.tipo .ph2 img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.85;mix-blend-mode:luminosity}
.tipo .ph2:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(250,124,30,.0),rgba(250,124,30,.35))}
.tipo .t{flex:1;min-width:0}
.tipo .t b{font-size:15px;display:block}
.tipo .t span{font-size:12px;color:var(--muted);display:block;margin-top:2px}
.tipo .rad{width:20px;height:20px;border-radius:50%;border:2px solid var(--muted);flex:none}
.tipo.on .rad{border-color:var(--accent);background:radial-gradient(var(--accent) 45%,transparent 50%)}
.subdep{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 0 96px}
.field{background:var(--card);border-radius:14px;padding:10px 14px;margin-top:10px}
.field .lab{font-size:11px;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);font-weight:600}
.field .v{font-size:18px;font-weight:600;margin-top:2px}
.dias2{display:flex;justify-content:space-between;gap:6px;margin-top:10px}
.dias2 .d{flex:1;background:var(--card);border-radius:12px;padding:6px 0 4px;text-align:center;color:var(--muted);font-weight:700;font-size:13px}
.dias2 .d .ic{display:flex;justify-content:center;gap:2px;margin-top:4px}
.dias2 .d .ic i{width:14px;height:14px;border-radius:4px;background:var(--card2);display:block}
.dias2 .d.on{background:var(--accent);color:#1A130F}
.dias2 .d.on .ic i{background:rgba(26,19,15,.25)}
.dias2 .d.on .ic i.sel{background:#1A130F}
.dias2 .d.off{opacity:.35}
.mat{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
.mat div{background:var(--card);border-radius:12px;padding:10px 6px;text-align:center;font-size:12px;font-weight:600;color:var(--muted);border:2px solid transparent}
.mat div.on{border-color:var(--accent);color:var(--text)}
.mat div svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:1.8;display:block;margin:0 auto 4px}
.mat div.on svg{stroke:var(--accent)}
.kgrow{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.kgrow span{padding:6px 10px;border-radius:999px;background:var(--card2);font-size:12px;font-weight:700;color:var(--muted)}
.kgrow span.on{background:var(--accent);color:#1A130F}
.joint{position:absolute;width:14px;height:14px;border-radius:50%;background:#1A130F;border:2px solid var(--muted);transform:translate(-50%,-50%)}
.joint.on{border-color:var(--accent);background:var(--accent);box-shadow:0 0 0 4px rgba(250,124,30,.3)}
.cuerpo.wrap{position:relative;display:inline-flex}
.grado{display:flex;gap:6px;margin-top:8px}
.grado span{flex:1;text-align:center;padding:8px 0;border-radius:10px;background:var(--card2);font-size:12px;font-weight:700;color:var(--muted)}
.grado span.on{background:var(--accent);color:#1A130F}
.molrow{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--card);border-radius:12px;padding:8px 12px;margin-top:8px;font-size:13px}
.molrow b{font-weight:600}
.molrow .g{font-size:11px;color:var(--accent);font-weight:700}
.plan:not(i){background:var(--card);border-radius:14px;padding:12px 14px;margin-top:10px;border:2px solid transparent}
.plan.on:not(i){border-color:var(--accent)}
.plan .hd{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.plan .hd b{font-size:15px}
.plan .hd .fit{font-size:11px;font-weight:700;color:var(--accent);white-space:nowrap;background:rgba(250,124,30,.14);padding:3px 8px;border-radius:999px}
.plan .meta{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.4}
.plan .tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.plan .tags span{font-size:11px;padding:3px 8px;border-radius:999px;background:var(--card2);color:var(--muted)}
.modo{display:flex;background:var(--card2);border-radius:12px;padding:4px;margin-top:10px}
.modo div{flex:1;text-align:center;padding:9px 6px;border-radius:9px;font-size:13px;font-weight:700;color:var(--muted);line-height:1.2}
.modo div.on{background:var(--accent);color:#1A130F}
.modo div small{display:block;font-size:10px;font-weight:500;opacity:.8;margin-top:2px}
.inp{height:48px;border-radius:14px;background:var(--card);display:flex;align-items:center;padding:0 14px;color:var(--muted);margin-top:10px;font-size:15px;gap:10px}
.inp svg{width:20px;height:20px;stroke:var(--muted);fill:none;stroke-width:2;flex:none}
.inp.filled{color:var(--text)}
.chk{display:flex;gap:10px;align-items:flex-start;font-size:12px;color:var(--muted);margin-top:14px;line-height:1.4}
.chk i{width:18px;height:18px;border-radius:5px;border:2px solid var(--accent);background:var(--accent);flex:none;margin-top:1px}
.lnk{font-size:11px;letter-spacing:1px;text-transform:uppercase;font-weight:700;color:var(--muted);text-decoration:underline;text-underline-offset:4px}
.tgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.tgrid .tipo{flex-direction:column;align-items:stretch;gap:8px;margin:0;padding:8px}
.tgrid .tipo .ph2{width:100%;height:66px}
.tgrid .tipo .t b{font-size:14px}
.tgrid .tipo .t span{font-size:11px;line-height:1.3}
.tgrid .tipo .rad{position:absolute;right:14px;top:14px;background-color:#1A130F}
.tgrid .tipo{position:relative}
.mat4{grid-template-columns:repeat(4,1fr)}
.mat4 div{padding:8px 4px;font-size:11px}
.mat4 div svg{width:22px;height:22px;margin-bottom:3px}
.tgrid .tipo .ph2{height:52px}
.tgrid{gap:8px}
.tgrid .tipo .t span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.inp3.xs2 .f{padding:6px 6px}
.inp3.xs2 .f img{width:34px;height:34px;margin-bottom:3px}
.inp3.xs2 .f .v{font-size:16px}
.inp3.xs2 .f .k{font-size:10px}
/* ==== R10-D punto 4 (B1.4) — clases v2 portadas de mock-v2.css: FIN ==== */

/* R10-E2 punto 4.1 — rejillas de material sin desbordar a 320 px (fuera del bloque generado). */
.mat{grid-template-columns:repeat(3,minmax(0,1fr))}
.mat4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:359.98px){.mat4{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* ==== R10-D punto 17 (spec §5.1) — 08a Entrada (login.html) ====
   Medidas de 08a-ob-entrada.tpl.html: cabecera "Volver a la web" + tema
   (30×30, radio 10, borde), hueco de 48 px, título en mayúsculas, campos
   .inp (el input real va dentro, sin caja propia), .chk con el checkbox
   real oculto detrás de la casilla <i>, primario, enlaces, separador "o",
   Google en .btn.ghost con borde y nota del coach. */
.ob-body { min-height: 100vh; }
.ob-entrada { position: relative; max-width: 440px; margin: 0 auto; padding: 4px 16px 100px; }
.ob-cab { padding-top: 6px; }
.lnk.ob-volver { text-decoration: none; }
button.lnk { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
button.q.ob-tema { width: 30px; height: 30px; border-radius: 10px; border: 1px solid var(--border); background: none; cursor: pointer; padding: 0; }
.ob-tema svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ob-titulo { margin-top: 48px; text-transform: uppercase; letter-spacing: -.5px; }
.ob-titulo + .ob-s { margin-top: 4px; }
.ob-banner { margin-top: 14px; background: rgba(250,124,30,.12); border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.4; color: var(--text); }
.ob-form > .inp:first-child { margin-top: 22px; }
.inp > input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; padding: 0; color: var(--text); font: inherit; font-size: 16px; }
.inp > input::placeholder { color: var(--muted); opacity: 1; }
.inp > input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--card) inset; -webkit-text-fill-color: var(--text); }
.inp:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.ob-ojo { display: flex; background: none; border: 0; padding: 0; cursor: pointer; }
.ob-req { margin-top: 8px; font-size: 12px; color: var(--muted); }
#req-length.ok { color: var(--accent); }
.chk { position: relative; cursor: pointer; }
.chk > .ob-chk-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chk > .ob-chk-input:not(:checked) + i { background: transparent; }
.chk > .ob-chk-input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.chk a { color: var(--accent); text-decoration: underline; font-weight: 700; }
.ob-error, .ob-msg { margin-top: 12px; font-size: 13px; font-weight: 600; line-height: 1.4; color: #F0624D; }
.ob-msg.ok { color: var(--accent); }
.btn.ob-primario { margin-top: 16px; }
.ob-enlaces { margin-top: 14px; }
.ob-sep { display: flex; gap: 10px; align-items: center; margin-top: 22px; }
.ob-sep > div { flex: 1; height: 1px; background: var(--border); }
button.btn.ob-google { margin-top: 14px; border: 1px solid var(--border); gap: 10px; }
.btn.ob-google svg { width: 18px; height: 18px; stroke: none; }
.ob-nota { text-align: center; margin-top: 16px; }
/* R10-E1 — código de acceso opcional en 08a (no está en la maqueta: bloque opcional). */
.ob-codigo { margin-top: 16px; text-align: center; }
.ob-codigo .inp { margin-top: 12px; }
.ob-codigo .inp > input { text-transform: uppercase; letter-spacing: 1px; }
.ob-codigo .ob-error { text-align: left; }
.ob-carga { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--bg); color: var(--text); font-weight: 700; }
.ob-carga.hidden { display: none; }
.ob-giro { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--accent); border-top-color: transparent; animation: ob-giro .8s linear infinite; }
@keyframes ob-giro { to { transform: rotate(360deg); } }

/* R10-D punto 18 — onboarding v2: armazón de pantalla completa (08b-08k) y 08b Básicos.
   Columna de 440 centrada como 08a; el pie va fijo y alineado con la columna. */
#byu-onboarding-overlay.obv2 { position: fixed; inset: 0; z-index: 9999; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); color: var(--text); }
.obv2 .ob-paso { max-width: 440px; margin: 0 auto; padding: 4px 16px 100px; position: relative; min-height: 100%; }
.obv2 .ob-top button { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.obv2 .ob-top .back { color: var(--text); }
.obv2 [aria-disabled="true"] { opacity: .4; cursor: default; }
.obv2 .ob-foot { position: fixed; bottom: 22px; left: max(16px, calc(50% - 204px)); right: max(16px, calc(50% - 204px)); z-index: 1; }
.obv2 .field { display: block; }
.obv2 .field input.v { display: block; width: 100%; background: transparent; border: 0; padding: 0; outline: none; color: var(--text); font-family: inherit; font-size: 18px; font-weight: 600; line-height: normal; }
.obv2 .field input.v::placeholder { color: var(--muted); font-weight: 500; }
.obv2 .field:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.obv2 .ob-grid { margin-top: 10px; }
.obv2 .ob-xs { margin-top: 12px; }
.obv2 .rh { position: relative; }
.obv2 .ob-fecha-val { cursor: pointer; }
.obv2 .ob-fecha-nativa { position: absolute; left: 50%; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.obv2 .ob-error.hidden { display: none; }

/* R10-D punto 19 — 08c Tipo y 08d Punto de partida: opciones pulsables (div con role="radio"). */
.obv2 .ob-top .skip.ob-skip-no { opacity: 0; pointer-events: none; }
.obv2 [role="radio"] { cursor: pointer; }
.obv2 [role="radio"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.obv2 .tipo .ph2 img[src*="/assets/vinetas/"] { object-fit: contain; }
/* Base tipográfica de la maqueta (mock.css body): 15 px / 1,3 en todo el onboarding. */
#byu-onboarding-overlay.obv2 { font-size: 15px; line-height: 1.3; }

/* R10-D punto 20 — 08e Días y 08f Lugar y material: casillas pulsables (div con role="checkbox"). */
.obv2 [role="checkbox"] { cursor: pointer; }
.obv2 [role="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.obv2 .dias.hidden, .obv2 .ob-lugar-dias.hidden, .obv2 .ob-material.hidden, .obv2 .ob-mancuernas.hidden { display: none; }
.obv2 .ob-txt { color: var(--text); }
.obv2 .ob-xs-nota { text-transform: none; letter-spacing: 0; font-weight: 500; }
.obv2 .dias2 .d .ic i { cursor: pointer; position: relative; }
/* Área de toque de los dos botones de lugar (14 px en la maqueta): se amplía sin moverlos. */
.obv2 .dias2 .d .ic i::after { content: ""; position: absolute; inset: -8px -2px; }
.obv2 .kgrow span[role] { cursor: pointer; }
/* R10-E punto 10 (B2.3): mancuernas con kg libres (caja con el teclado propio + "Añadir"). */
.obv2 .kgrow.hidden { display: none; }
.obv2 .ob-man-otro { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.obv2 .ob-man-in { width: 76px; background: var(--card2); border: 0; border-radius: 10px; padding: 8px 10px; color: var(--text); font: inherit; font-size: 16px; font-weight: 700; text-align: center; outline: none; }
.obv2 .ob-man-in::placeholder { color: var(--muted); font-weight: 600; }
.obv2 .ob-man-in:focus-visible, .obv2 .ob-man-in:focus { box-shadow: 0 0 0 2px var(--accent); }
.obv2 .ob-man-anadir { background: var(--card2); color: var(--text); border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.obv2 .ob-man-anadir:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Con el teclado propio abierto, el paso deja sitio debajo para que la caja enfocada no quede tapada. */
body:has(#wv-keypad:not(.hidden)) #byu-onboarding-overlay.obv2 .ob-paso { padding-bottom: 300px; }
/* R10-D punto 20 (§5.6): conmutador "Hoy entreno en casa" (solo bolsa + lugar Las dos). */
#hoy-card .hoy-en-casa { align-self: flex-start; cursor: pointer; }

/* R10-F B7 — 08g Marcas: la rejilla única (js/marcas-rejilla.js) dentro de "Sí, las declaro". */
.obv2 .ob-marcas-si.hidden { display: none; }
/* R10-D punto 22 — 08h Salud (cuerpo con articulaciones y músculos tocables) y 08i Autonomía. */
.obv2 .ob-s-fuerte { color: var(--text); }
.obv2 .mol .cuerpo { height: 190px; }
.obv2 .ob-sal-fig .fc-p { cursor: pointer; }
.obv2 .ob-sal-fig .joint { cursor: pointer; z-index: 1; }
.obv2 .ob-sal-fig .joint::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
.obv2 .ob-sal-fig .joint:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.obv2 .molrow { cursor: pointer; }
.obv2 .molrow.sel { box-shadow: inset 0 0 0 1px var(--accent); }
.obv2 .grado span { cursor: pointer; }
.obv2 .grado.ob-sal-inactivo { opacity: .45; pointer-events: none; }
.obv2 .ob-sal-nota { margin-top: 8px; line-height: 1.35; }
.obv2 .ob-sal-vacio { margin-top: 8px; line-height: 1.35; }
.obv2 .ob-sal-girar { background: none; border: 0; padding: 8px 0 0; color: var(--accent); font-weight: 700; cursor: pointer; }
.obv2 .esc5 div { cursor: pointer; }
.obv2 .ob-sal-act { cursor: pointer; }
.obv2 .rh .val.ob-sal-act-val { font-size: 18px; margin-top: 10px; }
.obv2 .ob-sal-act-desc { text-align: center; margin-top: 6px; }
.obv2 .auton .trk { cursor: pointer; touch-action: none; }
.obv2 .auton .trk:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.obv2 .auton .nums span { cursor: pointer; }
.obv2 .auton .nums span.on { color: var(--accent); font-weight: 700; }
.obv2 .auton .nums span.ob-au-bloq { opacity: .4; cursor: not-allowed; }
.obv2 .ob-au-lista { padding: 12px 14px; margin-top: 10px; font-size: 13px; line-height: 1.55; }
.obv2 .modo div { cursor: pointer; }
/* R10-D punto 23 — 08j Tu plan (tarjetas tocables, sesiones de la elegida y "Elegir estructura"). */
.obv2 .plan { cursor: pointer; }
.obv2 .plan[aria-disabled="true"] { cursor: default; }
.obv2 .plan:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.obv2 .ob-plan-ses { margin: 8px 0 0; padding: 0; list-style: none; font-size: 12px; line-height: 1.5; color: var(--text); }
.obv2 .ob-plan-estr { color: var(--accent); font-weight: 700; cursor: pointer; }
.obv2 .ob-plan-estr.on { text-decoration: underline; text-underline-offset: 3px; }
.obv2 .ob-plan-estr[aria-disabled] { cursor: default; opacity: .6; }
.obv2 .ob-plan-vacio { margin-top: 10px; line-height: 1.35; }
.obv2 .pre.hidden { display: none; }

/* R10-D punto 24 — 08k Todo listo (líneas pulsables que vuelven a su paso) y 08l Preparando tu primera semana. */
.obv2 .ob-resumen { padding: 4px 14px; margin-top: 12px; }
.obv2 .ob-resumen .sum { cursor: pointer; }
.obv2 .ob-resumen .sum:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* R10-E1 §3.3: línea Plan del código de acceso (candado, no tocable). */
.obv2 .ob-resumen .sum.sum--bloqueado { cursor: default; }
.obv2 .ob-resumen .ob-candado { display: inline-flex; vertical-align: -2px; margin-right: 6px; color: var(--muted); }
.obv2 .ob-resumen .ob-candado svg { width: 14px; height: 14px; }
.obv2 .gen.ob-gen { padding-top: 140px; }
.obv2 .gen .h2 { margin: 0; }
.obv2 .ob-gen-txt { max-width: 260px; line-height: 1.5; }
.obv2 .ob-gen-card { padding: 12px 14px; margin-top: 24px; }
/* R10-E1 §3.4: 08l detenida por el código de acceso (motivo en la fila + Reintentar / Continuar sin código). */
.obv2 .ob-gen-motivo { max-width: 62%; text-align: right; line-height: 1.4; }
.obv2 .ob-gen-acciones .btn.ghost { flex: 1; }

/* R10-D puntos 26/28 — estaciones M5 (bloque metabólico) y M7 (circuito) en la activa:
   las tarjetas del grupo van juntas bajo una cabecera (nombre · vuelta/ronda) sin borde ni fondo. */
.wv-circuito { margin: 4px 0 12px; }
.wv-circuito__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.wv-circuito__titulo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wv-circuito__nombre { color: var(--color-text); }
.wv-circuito__ronda { font-variant-numeric: tabular-nums; }
.btn.wv-circuito__empezar { flex: none; width: auto; height: 36px; padding: 0 16px; font-size: 14px; border-radius: 12px; }

/* R10-E1 punto 12: anillos sin el cuadrado azul (resaltado de toque / foco del SVG);
   el foco visible y accesible lo lleva el contenedor. */
.ring, .ring svg, .ring svg * { outline: none; -webkit-tap-highlight-color: transparent; }
.ring svg:focus, .ring svg:focus-visible { outline: none; }
.hoy-rdy, .ob-gen { -webkit-tap-highlight-color: transparent; }
.hoy-rdy:focus:not(:focus-visible) { outline: none; }
.hoy-rdy:focus-visible, .ob-gen .ring:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* R10-E1 punto 13: "BYU" en lugar del dibujo de la barra (resumen y tarjeta
   exportada) y "Copiar texto" en una sola línea (no se corta bajo TERMINAR). */
.wv-ccard__byu text { font-family: 'Montserrat', system-ui, sans-serif; font-weight: 900; font-size: 64px; letter-spacing: 8px; fill: var(--accent); stroke: none; }
.wv-cierre-share > button { white-space: nowrap; }
.wv-cierre-share > button:nth-child(3) { width: auto; min-width: 72px; }

/* R10-E1 punto 10: imagen única del ejercicio. La capa tapa el marco entero
   (la silueta queda debajo, nunca visible): foto, viñeta del grupo o, sin
   grupo, fondo liso naranja de marca. Con dos fotos, inicio y final. */
.thumb:has(> .img-ej), .wv-thumb:has(> .img-ej), .ficha-ilus:has(> .img-ej), .ph:has(> .img-ej) { position: relative; overflow: hidden; }
.img-ej, .img-ej-liso { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.img-ej--vineta { background: #2E2219; }
.img-ej-liso { background: linear-gradient(145deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, #000) 100%); }
/* R10-F A2: ejercicio abierto sin foto = naranja con la pesa (la viñeta del grupo, solo plegado). */
.img-ej--sin-foto { object-fit: cover; background: var(--accent); }
.ficha-ilus > .img-ej--sin-foto { object-fit: cover; background: var(--accent); }
/* R10-F A3: carrusel de fotos (dos o más): gesto a los dos lados, puntitos, sin autoplay. */
.img-ej--carrusel { overflow: hidden; }
.img-ej-pista { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.img-ej-pista::-webkit-scrollbar { display: none; }
.img-ej-pista > img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; display: block; background: #F7F1E8; scroll-snap-align: start; scroll-snap-stop: always; }
.img-ej-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.img-ej-dots > i { width: 6px; height: 6px; border-radius: 50%; background: rgba(26,19,15,.25); }
.img-ej-dots > i.on { background: var(--accent); }
.thumb .img-ej-dots { bottom: 3px; gap: 3px; }
.thumb .img-ej-dots > i { width: 4px; height: 4px; }
.ficha-ilus > .img-ej--foto { object-fit: contain; background: #F7F1E8; }
.ficha-ilus > .img-ej--vineta { object-fit: contain; }
/* R10-F B9 (CONTRATO §71) - previa: columna derecha de la fila (sustituir y, debajo,
   la casilla "Lastre" de 10 px con su etiqueta pequena), sin borde ni fondo;
   marcada en el acento. Solo calistenia lastrable. */
.wv-exrow__side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; align-self: stretch; }
.wv-lastre { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; line-height: 1; color: var(--muted); white-space: nowrap; }
.wv-lastre button { padding: 0; margin: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.wv-lastre__box { width: 10px; height: 10px; flex-shrink: 0; border-radius: 2px; box-shadow: inset 0 0 0 1px currentColor; display: inline-flex; align-items: center; justify-content: center; }
.wv-lastre.on { color: var(--accent); }
.wv-lastre.on .wv-lastre__box { background: var(--accent); box-shadow: none; color: var(--bg); }
.wv-lastre__box svg { width: 8px; height: 8px; }
