/* v82 · Letras alojadas en Zafrán (licencia SIL OFL, ver fonts/) */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "ZMono"; src: url("fonts/jetbrains-mono-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
/* ============================================================
   Zafrán · diseño v81
   Capa visual nueva: se carga DESPUÉS de design.css.
   Solo estilos de los componentes nuevos de v81 y del aspecto general más vivo.
   Respeta el modo oscuro (variables de index.html) y «menos movimiento».
   ============================================================ */

/* ---------- Entreno: zona «Empezar» ---------- */
.trgo {
  position: relative; overflow: hidden;
  margin: 4px 0 14px; padding: 18px 16px 16px;
  border-radius: 26px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 170, 40, .35), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(232, 69, 44, .28), transparent 60%),
    var(--hero);
  color: var(--heroText);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
}
.trgo h2 { margin: 2px 0 12px; font-size: 1.55rem; font-weight: 900; letter-spacing: -.01em; color: var(--heroText); }
.trgo-k { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--heroMuted); }
.trgo .bigstart { margin-top: 0; min-height: 64px; font-size: 1.15rem; }
.trgo-past {
  margin-top: 10px; min-height: 48px;
  background: rgba(255, 255, 255, .10) !important; color: var(--heroText) !important;
  border: 1.5px solid rgba(255, 255, 255, .22) !important;
}
.trgo-rts { margin-top: 14px; }
.trgo-chips { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 4px; scrollbar-width: none; }
.trgo-chips::-webkit-scrollbar { display: none; }
.trgo-chip {
  flex: 0 0 auto; max-width: 70vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, .95); color: #111; font-weight: 800; font-size: .92rem;
}
.trgo-chip:active { transform: scale(.97); }
.trgo-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0 0; padding: 0; }
.trgo-steps li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: .72rem; line-height: 1.2; color: var(--heroMuted); }
.trgo-steps b {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: var(--heroText); font-size: .8rem;
}

/* Preparación plegada (antes ocupaba media pantalla encima del botón de empezar) */
.trready-wrap { padding: 0 !important; overflow: hidden; }
.trready-wrap > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; font-weight: 800;
}
.trready-wrap > summary::-webkit-details-marker { display: none; }
.trready-wrap > summary::after { content: "›"; font-size: 1.4rem; line-height: 1; transition: transform .2s; color: var(--muted); }
.trready-wrap[open] > summary::after { transform: rotate(90deg); }
.trready-wrap > summary small { margin-left: auto; font-weight: 700; color: var(--muted); font-size: .8rem; text-align: right; }
.trready-wrap[data-l="soft"] > summary small { color: #B56A00; }
.trready-wrap[data-l="rest"] > summary small { color: #C2304A; }
.trready-wrap .ready { padding: 0 16px 16px; }

/* Crear o traer rutinas: rejilla de 4 en vez de 4 botones largos */
.trmk { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trmk-b {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  min-height: 92px; padding: 12px 14px; border-radius: 20px;
  background: var(--surface); color: var(--text); border: 1.5px solid var(--line);
  box-shadow: var(--sh1, 0 1px 2px rgba(0,0,0,.06));
}
.trmk-b span { font-size: 1.35rem; line-height: 1; margin-bottom: 4px; }
.trmk-b b { font-size: .95rem; }
.trmk-b small { color: var(--muted); font-size: .76rem; line-height: 1.25; }
.trmk-b:active { transform: scale(.98); }

/* Resumen final: botón de guardar rutina con presencia */
#wkSumRoutine:not([hidden]) { font-weight: 800; }
#wkSumRoutine:disabled { opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  .trgo-chip:active, .trmk-b:active { transform: none; }
}

/* Ficha de entreno: los 26 tipos ya no ocupan media pantalla (6 + «Más deportes») */
.wtypes:not(.all) .chip.xtra { display: none; }
.wtypes .wtmore { background: transparent; border: 1.5px dashed color-mix(in srgb, var(--text) 30%, transparent); }

/* Imagen de wger en cada ejercicio (en lugar de la animación cuando existe) */
.exph { margin: 0; flex: none; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); cursor: zoom-in; transition: width .2s, height .2s; }
.exph img { width: 100%; height: 100%; object-fit: contain; display: block; }
.exph.big { width: 100%; height: auto; max-height: 300px; cursor: zoom-out; }
.exph.big img { height: auto; max-height: 300px; }
.ex-top:has(.exph.big) { flex-wrap: wrap; }
.exinfo-pics.wgp { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.exinfo-pics.wgp figure { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.exinfo-pics.wgp img { width: 100%; height: 130px; object-fit: contain; display: block; }
.exinfo-pics.wgp figcaption { font-size: .66rem; line-height: 1.3; padding: 4px 6px 6px; color: #55594F; }
.exinfo-pics.wgp figcaption a { color: inherit; }

/* «Ver más nutrientes» dentro de la tarjeta del día */
.micro { margin-top: 14px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid var(--heroTrack); }
.micro > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; color: var(--heroText); font-weight: 800; }
.micro > summary::-webkit-details-marker { display: none; }
.micro > summary span::after { content: " ▾"; }
.micro[open] > summary span::after { content: " ▴"; }
.micro > summary small { color: var(--heroMuted); font-weight: 600; font-size: .74rem; }
.mi-body { padding: 0 14px 14px; display: grid; gap: 12px; }
.mi-row .mi-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--heroText); font-size: .9rem; }
.mi-row .mi-top b { font-variant-numeric: tabular-nums; }
.mi-row .mi-top small { color: var(--heroMuted); font-weight: 600; }
.mi-bar { height: 8px; border-radius: 99px; background: var(--heroTrack); overflow: hidden; margin-top: 5px; }
.mi-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6FCF97, #2F9E5B); }
.mi-row.warn .mi-bar i { background: linear-gradient(90deg, #F2C94C, #E8A317); }
.mi-row.over .mi-bar i { background: linear-gradient(90deg, #FF8A65, #E8452C); }
.mi-row.over .mi-top b { color: #FF9A7A; }
.mi-tip, .mi-cov, .mi-note { margin: 4px 0 0; font-size: .72rem; line-height: 1.35; color: var(--heroMuted); }
.mi-note { padding: 8px 10px; border-radius: 12px; background: rgba(255, 200, 60, .12); color: var(--heroText); }

/* =====================================================================
   v81 · «Zafrán vivo»: aspecto más llamativo (solo con el color por defecto;
   si eliges otro color en Ajustes → Apariencia, se respeta el tuyo).
   ===================================================================== */
:root:not([data-accent]) {
  --zv-saf: #F2A516;     /* azafrán */
  --zv-cor: #EE5A2F;     /* coral */
  --zv-hot: #D9381E;
  --zv-mint: #2FB37A;
  --zv-sky: #2B8FE0;
  --zv-grad: linear-gradient(135deg, #F7B22A 0%, #FF8A1F 55%, #FF5C39 100%);   /* v82: sin rojo (el rojo queda solo para alertas) */
}
/* Fondo con brillo de color (en vez de beige plano) */
:root:not([data-accent]):not([data-theme="dark"]) body {
  background:
    radial-gradient(60% 40% at 100% 0%, rgba(247, 178, 42, .22), transparent 70%),
    radial-gradient(50% 35% at 0% 30%, rgba(238, 90, 47, .10), transparent 70%),
    radial-gradient(60% 40% at 100% 90%, rgba(47, 179, 122, .10), transparent 70%),
    #F7F3EA;
  background-attachment: fixed;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-accent]):not([data-theme="light"]) body {
    background:
      radial-gradient(60% 40% at 100% 0%, rgba(247, 178, 42, .14), transparent 70%),
      radial-gradient(60% 40% at 0% 100%, rgba(238, 90, 47, .10), transparent 70%),
      #121411;
    background-attachment: fixed;
  }
}
/* Títulos: subrayado y barra con el degradado de la marca */
:root:not([data-accent]) .head h1 { letter-spacing: -.02em; }
:root:not([data-accent]) .sec::before { background: var(--zv-grad); width: 7px; }

/* Botones principales y chips activos: azafrán → coral (modo claro) */
:root:not([data-accent]):not([data-theme="dark"]) .btn.primary,
:root:not([data-accent]):not([data-theme="dark"]) .chip.is-on {
  background: var(--zv-grad); color: #fff; border-color: transparent;
  box-shadow: 0 10px 22px -10px rgba(255, 92, 57, .45), 0 1px 0 rgba(255, 255, 255, .25) inset;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-accent]):not([data-theme="light"]) .btn.primary,
  :root:not([data-accent]):not([data-theme="light"]) .chip.is-on { background: var(--zv-grad); color: #fff; }
}
:root:not([data-accent])[data-theme="dark"] .btn.primary,
:root:not([data-accent])[data-theme="dark"] .chip.is-on { background: var(--zv-grad); color: #fff; }

/* Día seleccionado de la semana */
:root:not([data-accent]) .wd.is-sel { background: var(--zv-grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(255, 92, 57, .5); }

/* Tarjeta principal del día: más brillo de color */
:root:not([data-accent]) .hero {
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(247, 178, 42, .42), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(238, 90, 47, .30), transparent 60%),
    radial-gradient(50% 40% at 30% 40%, rgba(47, 179, 122, .12), transparent 70%),
    linear-gradient(160deg, #1A1612 0%, #0B0907 70%);
}

/* Botones redondos de arriba (importar, exportar, calendario…) con un color cada uno */
:root:not([data-accent]) .head-btns .hbtn:nth-child(4n+1) svg { background: #FFF1D6; color: #9A5B00; border-color: #F2C76E; }
:root:not([data-accent]) .head-btns .hbtn:nth-child(4n+2) svg { background: #FFE3DA; color: #B3361A; border-color: #F4A48C; }
:root:not([data-accent]) .head-btns .hbtn:nth-child(4n+3) svg { background: #DDF4E9; color: #1E7A50; border-color: #8FD3B1; }
:root:not([data-accent]) .head-btns .hbtn:nth-child(4n+4) svg { background: #DDEBFA; color: #1D5FA8; border-color: #94C1EE; }
:root[data-theme="dark"]:not([data-accent]) .head-btns .hbtn svg { background: var(--surface); }

/* Tarjetas: un poco más de relieve y respuesta al toque */
.panel, .trmk-b, .rcard { transition: transform .18s var(--zf-ease, ease), box-shadow .2s; }
@media (hover: hover) { .rcard:hover, .trmk-b:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .35); } }

/* Barra inferior: cristal y botón activo con color */
.nav { backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }
:root:not([data-accent]):not([data-theme="dark"]) .nav { background: rgba(255, 252, 245, .82); }
:root:not([data-accent]) .fabwrap.is-on .fab { background: var(--zv-grad) !important; color: #fff !important; box-shadow: 0 10px 22px -8px rgba(255, 92, 57, .55) !important; }

/* Toast más visible */
#toast { border-radius: 18px; }

@media (prefers-reduced-motion: reduce) {
  .panel, .trmk-b, .rcard { transition: none; }
  .rcard:hover, .trmk-b:hover { transform: none; }
}

/* ---------- Ciclo menstrual v81 ---------- */
#cycView .cy-hero {
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(217, 67, 95, .45), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(138, 91, 209, .40), transparent 60%),
    linear-gradient(160deg, #1C1220 0%, #0C0810 75%) !important;
  box-shadow: 0 18px 40px -18px rgba(90, 20, 60, .6);
}
#cycView .cy-period {
  min-height: 60px; border: 0 !important; font-weight: 800; font-size: 1.02rem;
  background: linear-gradient(135deg, #FFE1E8, #F7D3F0) !important; color: #A3213F !important;
  box-shadow: 0 8px 20px -12px rgba(217, 67, 95, .6);
}
#cycView .cy-period.is-on { background: linear-gradient(135deg, #F0567A, #B03AC0) !important; color: #fff !important; }
#cycView .cy-lbl small { font-weight: 600; color: var(--muted); }
.cy-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 6px 0 4px; }
.cy-i-f { grid-template-columns: repeat(4, 1fr); }
.cy-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 74px; padding: 8px 4px; border-radius: 18px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--text); text-align: center; line-height: 1.15;
  transition: transform .12s, background .2s, border-color .2s, box-shadow .2s;
}
.cy-i-f .cy-tile .cy-ti { font-size: 1.1rem; }
.cy-tile .cy-ti { font-size: 1.45rem; line-height: 1; letter-spacing: -2px; }
.cy-tile .cy-tl { font-size: .74rem; font-weight: 700; }
.cy-tile:active { transform: scale(.95); }
.cy-tile.is-on { border-color: transparent; background: linear-gradient(135deg, #FFD6E0, #EAD7FF); color: #4A1530; box-shadow: 0 8px 18px -10px rgba(176, 58, 192, .7); }
.cy-i-f .cy-tile.is-on { background: linear-gradient(135deg, #F0567A, #C2304A); color: #fff; }
.cy-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 10px 0 2px; }
.cy-sd { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 12px; color: var(--heroText); }
.cy-sd em { font-style: normal; font-size: .62rem; color: var(--heroMuted); text-transform: capitalize; }
.cy-sd b { font-size: .95rem; }
.cy-sd i { width: 70%; height: 5px; border-radius: 9px; background: var(--pc); }
.cy-sd.now { background: rgba(255, 255, 255, .10); }
@media (prefers-reduced-motion: reduce) { .cy-tile:active { transform: none; } }

/* Exportar a elección */
.xsel { display: grid; gap: 8px; }
.xopt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.xopt input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: #EE5A2F; flex: none; }
.xopt b { display: block; font-size: .95rem; }
.xopt small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.3; margin-top: 2px; }
.xopt:has(input:checked) { border-color: #EE8A4A; background: color-mix(in srgb, #FFE9D6 60%, var(--surface)); }
.xopt.xsens:has(input:checked) { border-color: #D9435F; }

/* Más gráficas */
.gx-card { margin-bottom: 12px; color: var(--text); }
.gx-card h3 { margin: 0; font-size: 1.02rem; }
.gx-svg { width: 100%; height: auto; display: block; color: var(--muted); }
.gx-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--muted); margin-top: 6px; }
.gx-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- v82: notas por ejercicio, RIR y discos ---------- */
.ex-lastnote { margin: 6px 0 4px; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, #FFE9C7 70%, var(--surface)); font-size: .82rem; color: #6B4204; }
.exnote { margin: 8px 0 4px; }
.exnote > summary { cursor: pointer; font-weight: 700; font-size: .86rem; color: var(--muted); list-style: none; min-height: 32px; display: flex; align-items: center; }
.exnote > summary::-webkit-details-marker { display: none; }
.exnote textarea { width: 100%; margin-top: 6px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--input); padding: 10px; font: inherit; resize: vertical; }
.rir-strip { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin: 4px 0 8px 50px; font-size: .78rem; color: var(--muted); }
.rir-strip > span { width: 100%; font-weight: 700; }
.rir-b { min-width: 40px; min-height: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 800; }
.rir-b:active { transform: scale(.95); }
.rir-x { min-width: 32px; min-height: 40px; border: 0; background: transparent; color: var(--muted); font-size: 1.1rem; }
.rir-done { margin: 2px 0 6px 50px; }
.rir-pill { border: 0; border-radius: 99px; padding: 4px 10px; font-size: .74rem; font-weight: 800; background: color-mix(in srgb, #FF5C39 16%, var(--surface)); color: inherit; min-height: 28px; }
.plate-ov { position: fixed; inset: 0; z-index: 9000; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center; }
.plate-card { width: 100%; max-width: 520px; background: var(--surface); color: var(--text); border-radius: 24px 24px 0 0; padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
.plate-txt { font-size: .95rem; margin: 8px 0 0; }
.ex-tools { display: inline-flex; gap: 14px; }
/* Puntuación del entreno */
.wsc { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 20px; background: color-mix(in srgb, var(--wc) 12%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--wc) 40%, transparent); margin-bottom: 10px; color: var(--text); }
.wsc svg { flex: none; }
.wsc-t { display: flex; flex-direction: column; gap: 3px; }
.wsc-t b { font-size: 1rem; }
.wsc-t small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.wsc-act { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.wsc-act .btn { flex: 1; min-height: 44px; font-size: .9rem; }
.wsc-ai { padding: 12px; border-radius: 16px; background: var(--input); font-size: .88rem; margin-bottom: 10px; }
.wsc-ai ul { margin: 4px 0 8px; padding-left: 18px; }


/* =====================================================================
   v82 · Letra Inter en toda la app y cifras de ancho fijo
   ===================================================================== */
body, button, input, textarea, select { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.head h1, .sec, h1, h2 { font-family: "Inter", system-ui, sans-serif; font-stretch: normal !important; letter-spacing: -.025em; }
.head h1 { font-weight: 900; }
body { font-variant-numeric: tabular-nums; }
/* Cronómetros: monoespaciada para que los números no «tiemblen» */
#rtTime, #rtMiniTime, [data-sessclock], .rest-v, .sessbar b, .dp-time { font-family: "ZMono", ui-monospace, "SF Mono", Menlo, Consolas, monospace !important; font-weight: 700; letter-spacing: -.02em; }

/* ---------- Ambiente ENTRENO: oscuro de alta energía (sin negro puro), azafrán y naranja ---------- */
:root[data-amb="train"] {
  --bg: #121212; --surface: #1C1C1C; --ink: #F2F2F2; --text: #F2F2F2; --muted: #A9A9A4; --line: rgba(255, 255, 255, .10); --chip: #2A2A2A;
  --track: #2C2C2C; --input: #242424; --primary: #FF8A1F; --onPrimary: #121212; --hero: #181818; color-scheme: dark;
}
:root[data-amb="train"] body { background: radial-gradient(70% 40% at 100% 0%, rgba(255, 138, 31, .16), transparent 70%), #121212 !important; color: #F2F2F2; }
:root[data-amb="train"] .btn.primary, :root[data-amb="train"] .chip.is-on, :root[data-amb="train"] .wd.is-sel { background: linear-gradient(135deg, #F7B22A, #FF5C39) !important; color: #121212 !important; }
:root[data-amb="train"] .sheet, :root[data-amb="train"] .panel, :root[data-amb="train"] .excard, :root[data-amb="train"] .trmk-b, :root[data-amb="train"] .rcard { background: #1C1C1C; color: #F2F2F2; border-color: rgba(255, 255, 255, .08); }
:root[data-amb="train"] .nav { background: rgba(18, 18, 18, .86) !important; }
:root[data-amb="train"] .set .inp, :root[data-amb="train"] input, :root[data-amb="train"] textarea { background: #242424; color: #F2F2F2; border-color: rgba(255, 255, 255, .12); }
:root[data-amb="train"] .exph, :root[data-amb="train"] .exinfo-pics.wgp figure { background: #F4F4F2; }
:root[data-amb="train"] .ex-lastnote { background: rgba(255, 138, 31, .14); color: #FFD9B0; }
:root[data-amb="train"] .head-btns .hbtn svg { background: #1C1C1C !important; color: #F2F2F2 !important; border-color: rgba(255, 255, 255, .18) !important; }

/* ---------- Ambiente CALMA (comida, sueño, historial): tonos azules y salvia para los datos ---------- */
:root[data-amb="calm"] .gx-card h3, :root[data-amb="calm"] .sec::before { color: inherit; }
:root[data-amb="calm"] .sec::before { background: linear-gradient(180deg, #35ABE4, #8FB8A8) !important; }
:root[data-amb="calm"] .mi-bar i { background: linear-gradient(90deg, #7CC6EE, #35ABE4); }
:root[data-amb="calm"] .mi-row.warn .mi-bar i { background: linear-gradient(90deg, #F2C94C, #E8A317); }
:root[data-amb="calm"] .mi-row.over .mi-bar i { background: linear-gradient(90deg, #FF8A65, #FD0042); }   /* rojo: solo alerta */
#trAmb { white-space: nowrap; }

/* ---------- v82: botón + y menú rápido ---------- */
.qfab {
  position: fixed; right: max(16px, calc(50vw - 234px)); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 7;
  width: 60px; height: 60px; border-radius: 20px; border: 0; color: #121212; font-size: 2rem; font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, #F7B22A, #FF5C39); box-shadow: 0 14px 28px -10px rgba(255, 92, 57, .65), 0 1px 0 rgba(255,255,255,.35) inset;
  transition: transform .2s;
}
.qfab.on { transform: rotate(45deg); }
.qdial { position: fixed; inset: 0; z-index: 8; }
.qd-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); backdrop-filter: blur(2px); }
.qd-list { position: absolute; right: max(16px, calc(50vw - 234px)); bottom: calc(166px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.qd-list button { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px 0 8px; border-radius: 999px; border: 0; background: var(--surface); color: var(--text); font-weight: 800; font-size: .95rem; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); animation: qdIn .18s var(--zf-ease, ease) both; }
.qd-list button span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--input); font-size: 1.2rem; }
.qd-list button:nth-child(2) { animation-delay: .02s } .qd-list button:nth-child(3) { animation-delay: .04s } .qd-list button:nth-child(4) { animation-delay: .06s } .qd-list button:nth-child(5) { animation-delay: .08s } .qd-list button:nth-child(6) { animation-delay: .1s }
@keyframes qdIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.sheet { will-change: transform; }
:root[data-amb="train"] .fab { background: #2A2A2A !important; color: #F2F2F2 !important; border-color: rgba(255,255,255,.12) !important; }
:root[data-amb="train"] .fabwrap.is-on .fab { background: linear-gradient(135deg, #F7B22A, #FF5C39) !important; color: #121212 !important; }
@media (prefers-reduced-motion: reduce) { .qd-list button { animation: none; } .qfab { transition: none; } }
@media (min-width: 900px) { .qfab, .qd-list { right: 32px; } }
/* Inicio por bloques, saludo y confeti */
.zhide { display: none !important; }
.greet { margin: -4px 0 10px; font-weight: 700; color: var(--muted); font-size: .95rem; }
.hb-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.hb-list li { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 14px; border: 1.5px solid var(--line); }
.hb-list li span { flex: 1; font-weight: 700; }
.hb-list li.off span { opacity: .45; text-decoration: line-through; }
.hb-list button { min-width: 44px; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--input); font-weight: 800; }
.hb-list button:disabled { opacity: .3; }
.hb-list em { font-size: .75rem; color: var(--muted); min-width: 60px; text-align: center; }
.confetti { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }

/* ---------- v82: puntuación de preparación ---------- */
.rd-score { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.rd-score svg { flex: none; }
.rd-score p { margin: 0; line-height: 1.35; }
.rd-score small { color: var(--muted); }

/* ---------- v82: la app se adapta (sutilmente) a la fase del ciclo, solo si lo activas ---------- */
:root[data-phase="men"] { --cyc: #D9435F; }
:root[data-phase="fol"] { --cyc: #35ABE4; }
:root[data-phase="ovu"] { --cyc: #2FB37A; }
:root[data-phase="lut"] { --cyc: #B98A5A; }
:root[data-phase] .hero { box-shadow: 0 0 0 2px color-mix(in srgb, var(--cyc) 55%, transparent), 0 18px 40px -18px color-mix(in srgb, var(--cyc) 60%, transparent) !important; }
:root[data-phase] .greet { color: color-mix(in srgb, var(--cyc) 70%, var(--text)); }
:root[data-phase] .sec::before { background: linear-gradient(180deg, var(--cyc), color-mix(in srgb, var(--cyc) 40%, #fff)) !important; }
/* El botón + sube si está la barra «Descarga la app» */
body:has(#instBar) .qfab { bottom: calc(176px + env(safe-area-inset-bottom, 0px)); }
body:has(#instBar) .qd-list { bottom: calc(246px + env(safe-area-inset-bottom, 0px)); }
