/* ============================================================
   Zafrán v84 · ENTRENO PRO (estilos)
   Modo gimnasio, galería de ejercicios, rutinas con portada, análisis y resumen.
   ============================================================ */
.zt-emo { width: 1.15em; height: 1.15em; vertical-align: -.2em; margin-right: .35em; flex: none; }
.trmk-b .zt-emo, .ssi .zt-emo { width: 24px; height: 24px; margin: 0; color: var(--brand); }
.pill > .zt-emo:only-child { margin: 0; }

/* ---------- Pestaña Entreno: semáforo, material, zonas y análisis ---------- */
.zt-home { margin: 0 0 14px; display: grid; gap: 10px; }
.zt-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.zt-row::-webkit-scrollbar { display: none; }
.zt-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.zt-pill .z84-ic { width: 18px; height: 18px; color: var(--brand); }
.zt-pill > i { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); flex: none; }
.zt-pill.l0 > i, .zt-light.l0 > i { background: #E0483C; box-shadow: 0 0 0 4px rgba(224, 72, 60, .22); }
.zt-pill.l1 > i, .zt-light.l1 > i { background: #F0B443; box-shadow: 0 0 0 4px rgba(240, 180, 67, .25); }
.zt-pill.l2 > i, .zt-light.l2 > i { background: #37B45B; box-shadow: 0 0 0 4px rgba(55, 180, 91, .25); }
.zt-pill.warn { border-color: #E0483C; }
.zt-ana, .zt-gymbtn { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--sh2); }
.zt-ana > .z84-ic:first-child, .zt-gymbtn > .z84-ic:first-child { width: 44px; height: 44px; padding: 10px; box-sizing: border-box; border-radius: 14px; background: linear-gradient(145deg, var(--z84-a), var(--z84-b)); color: var(--z84-ink); flex: none; }
.zt-ana > .z84-ic:last-child, .zt-gymbtn > .z84-ic:last-child { width: 20px; height: 20px; color: var(--muted); flex: none; }
.zt-ana span, .zt-gymbtn span { flex: 1; min-width: 0; } .zt-ana b, .zt-gymbtn b { display: block; font-size: 1.05rem; font-weight: 900; } .zt-ana small, .zt-gymbtn small { display: block; color: var(--muted); font-size: .82rem; }
.zt-gymbtn { margin: 12px 0; background: linear-gradient(145deg, #23201a, #0d0b08); color: #FFF6E6; border-color: rgba(255, 176, 46, .35); }
.zt-gymbtn small { color: #C9BDA6; }

/* ---------- Rutinas con portada ---------- */
.app #trRoutines.rgrid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; gap: 12px; }
.zt-rw { width: 100%; position: relative; }
.zt-cover { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 1fr; }
.zt-rw .rcard { display: grid; gap: 6px; text-align: left; padding: 0 0 14px; border-radius: 24px; overflow: hidden; width: 100%; }
.zt-rw .rcard > b, .zt-rw .rcard > small, .zt-rw .rcard > .rdots, .zt-rw .rcard > .rgo, .zt-rw .rcard > .zt-meta { margin-left: 16px; margin-right: 16px; }
.zt-rw .rcard > b { font-size: 1.2rem; font-weight: 900; }
.zt-cover { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; height: 92px; background: var(--chip); position: relative; }
.zt-cover img { width: 100%; height: 92px; object-fit: cover; background: #fff; }
.zt-cover .zt-ini { width: 100%; height: 92px; border-radius: 0; font-size: 1.6rem; }
.zt-cover em { position: absolute; right: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .7); color: #fff; font-style: normal; font-weight: 800; font-size: .78rem; }
.zt-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.zt-meta .z84-ic { width: 15px; height: 15px; }
.zt-ini { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: color-mix(in srgb, var(--c) 22%, var(--chip)); color: var(--ink); font-weight: 900; font-size: 1.2rem; }

/* ---------- Galería de ejercicios ---------- */
.zt-eqbar { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 8px; padding-bottom: 2px; }
.zt-eqbar::-webkit-scrollbar { display: none; }
.zt-eqbar span { font-size: .78rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; flex: none; margin-right: 2px; }
.zt-eqbar button { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--text); font-weight: 700; font-size: .82rem; }
.zt-eqbar button.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
#exList.zt-gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
#exList.zt-gal > :not(.qres[data-ex-name]):not(.qrow) { grid-column: 1 / -1; }
#exList.zt-gal .qres[data-ex-name] { display: flex; flex-direction: column; align-items: stretch; gap: 8px; height: 100%; padding: 0 0 10px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); text-align: left; position: relative; border-bottom-width: 1px; }
#exList.zt-gal .qres[data-ex-name] > span:not(.zt-th) { padding: 0 12px; }
#exList.zt-gal .qres[data-ex-name] b { font-size: .92rem; line-height: 1.2; display: block; }
#exList.zt-gal .qres[data-ex-name] small { font-size: .74rem; }
#exList.zt-gal .qres[data-ex-name] > em { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .68); color: #fff; font-style: normal; font-weight: 900; }
#exList.zt-gal .qres.picked { box-shadow: 0 0 0 3px var(--brand2); }
#exList.zt-gal .qres.picked > em { background: linear-gradient(145deg, var(--z84-a), var(--z84-b)); color: var(--z84-ink); }
.zt-th { display: block; height: 104px; background: #fff; }
.zt-th img { width: 100%; height: 104px; object-fit: contain; display: block; }
.zt-th .zt-ini { width: 100%; height: 104px; border-radius: 0; font-size: 2rem; }
#exList.zt-gal .qrow { display: block; position: relative; }
#exList.zt-gal .qrow .qdel { position: absolute; left: 8px; top: 8px; }
.zt-flag { display: flex; align-items: center; gap: 4px; margin: 0 12px; font-style: normal; font-size: .72rem; font-weight: 800; color: #C2443A; }
.zt-flag .z84-ic { width: 14px; height: 14px; }
.zt-hide { display: none !important; }

/* ---------- Hojas propias ---------- */
.zt-ov { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 10, 0, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: z84-fade .18s ease-out; }
.zt-box { width: 100%; max-width: 560px; max-height: 92%; display: flex; flex-direction: column; background: var(--surface); color: var(--text); border-radius: 26px 26px 0 0; box-shadow: var(--sh3); animation: z84-up .3s cubic-bezier(.2, .9, .25, 1.05); }
.zt-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 8px; }
.zt-head h2 { flex: 1; margin: 0; font-size: 1.4rem; font-weight: 900; color: var(--ink); }
.zt-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--chip); color: var(--ink); display: grid; place-items: center; flex: none; }
.zt-x .z84-ic { width: 18px; height: 18px; }
.zt-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
.zt-body h3 { margin: 18px 0 8px; font-size: 1.02rem; font-weight: 900; color: var(--ink); }
.zt-p { margin: 0 0 12px; color: var(--muted); } .zt-p.small { font-size: .82rem; margin-top: 10px; }
.zt-alt, .zt-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; margin: 0 0 8px; padding: 8px 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--input); color: var(--ink); text-align: left; }
.zt-alt img { width: 58px; height: 58px; object-fit: contain; border-radius: 12px; background: #fff; flex: none; }
.zt-alt span, .zt-opt b { flex: 1; min-width: 0; } .zt-alt b { display: block; } .zt-alt small { color: var(--muted); font-size: .8rem; }
.zt-alt > .z84-ic, .zt-opt .z84-ic { width: 22px; height: 22px; color: var(--brand); flex: none; }
.zt-opt.on { border-color: var(--brand2); background: var(--brandSoft); }
.zt-q { margin: 0 0 14px; } .zt-q > span { display: block; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.zt-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 16px; background: var(--chip); }
.zt-seg.sm { grid-template-columns: repeat(2, 1fr); margin-bottom: 12px; }
.zt-seg button { min-height: 46px; border: 0; border-radius: 12px; background: none; color: var(--text); font-weight: 800; }
.zt-seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh2); }
.zt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.zt-chips button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--text); font-weight: 700; font-size: .9rem; }
.zt-chips.big button { min-height: 50px; padding: 0 18px; font-size: 1rem; }
.zt-chips button.on { background: var(--brandSoft); border-color: var(--brand2); color: var(--brandInk); }
.zt-light { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--input); margin: 4px 0 14px; }
.zt-light > i { width: 20px; height: 20px; border-radius: 50%; flex: none; margin-left: 4px; }
.zt-light b { display: block; font-size: 1.1rem; color: var(--ink); } .zt-light small { color: var(--muted); }
.zt-foot { display: flex; gap: 8px; margin-top: 8px; } .zt-foot .btn { flex: 1; min-width: 0; padding-left: 10px; padding-right: 10px; }
.zt-srow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.zt-srow img, .zt-srow .zt-ini { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; background-color: #fff; flex: none; font-size: 1rem; }
.zt-srow span { flex: 1; min-width: 0; } .zt-srow b { display: block; font-size: .95rem; } .zt-srow small { color: var(--muted); font-size: .78rem; }
.zt-srow button { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--chip); color: var(--ink); display: grid; place-items: center; flex: none; }
.zt-srow button:disabled { opacity: .3; } .zt-srow button .z84-ic { width: 18px; height: 18px; }
.zt-srow [data-up] .z84-ic { transform: rotate(90deg); } .zt-srow [data-dn] .z84-ic { transform: rotate(90deg); }

/* ---------- Análisis ---------- */
.zt-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 0 16px 2px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.zt-tabs::-webkit-scrollbar { display: none; }
.zt-tabs button { flex: 0 0 auto; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--text); font-weight: 800; }
.zt-tabs button.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.zt-bodymap { display: block; width: 100%; max-width: 340px; margin: 0 auto; }
.zt-bodymap text { font-size: 9px; fill: var(--muted); font-weight: 700; }
.zt-bodymap rect, .zt-bodymap circle { transition: fill .4s; }
.zt-leg { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin: 6px 0 12px; font-size: .74rem; color: var(--muted); align-items: center; }
.zt-leg i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; margin-right: -6px; }
.zt-warn, .zt-ok { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 8px; padding: 10px 12px; border-radius: 14px; font-size: .92rem; }
.zt-warn { background: rgba(224, 72, 60, .12); color: var(--text); } .zt-warn .z84-ic { color: #D2493E; }
.zt-ok { background: rgba(55, 180, 91, .13); color: var(--text); } .zt-ok .z84-ic { color: #2E9C4E; }
.zt-warn .z84-ic, .zt-ok .z84-ic { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.zt-bars { display: grid; gap: 7px; margin-top: 12px; }
.zt-bars > div { display: grid; grid-template-columns: 84px 1fr 34px; align-items: center; gap: 8px; font-size: .86rem; }
.zt-bars i { height: 10px; border-radius: 6px; background: var(--track); overflow: hidden; } .zt-bars s { display: block; height: 100%; border-radius: 6px; }
.zt-bars b { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.zt-sel { display: grid; gap: 6px; margin-bottom: 10px; } .zt-sel span { font-weight: 800; font-size: .86rem; color: var(--muted); }
.zt-sel select { min-height: 48px; padding: 0 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--input); color: var(--ink); font: inherit; font-weight: 700; }
.zt-line { display: block; width: 100%; height: auto; }
.zt-line .ln { fill: none; stroke: var(--brand2); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.zt-line .ar { fill: var(--brand2); opacity: .14; } .zt-line circle { fill: var(--surface); stroke: var(--brand2); stroke-width: 2.5; }
.zt-line text { font-size: 10px; fill: var(--muted); } .zt-line text.b { font-size: 13px; font-weight: 800; fill: var(--ink); }
.zt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin: 10px 0; }
.zt-kpis > div { padding: 12px 10px; border-radius: 16px; background: var(--input); text-align: center; }
.zt-kpis b { display: block; font-size: 1.15rem; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; } .zt-kpis small { color: var(--muted); font-size: .74rem; }
.zt-duo { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: .86rem; margin-bottom: 8px; }
.zt-duo i { height: 12px; border-radius: 6px; background: #5B8DEF; overflow: hidden; } .zt-duo s { display: block; height: 100%; background: var(--brand2); }
.zt-cols { display: flex; align-items: flex-end; gap: 6px; height: 110px; margin: 12px 0 4px; }
.zt-cols > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.zt-cols i { width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--z84-a), var(--z84-b)); } .zt-cols small { font-size: .62rem; color: var(--muted); }
.zt-sport { padding-bottom: 6px; border-bottom: 1px solid var(--line); }

/* ---------- Resumen ---------- */
.zt-sum { margin-top: 16px; display: grid; gap: 10px; }
.zt-grade { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; background: linear-gradient(145deg, #23201a, #0d0b08); color: #FFF6E6; }
.zt-grade b { font-size: 2.4rem; font-weight: 900; color: #FFB02E; line-height: 1; } .zt-grade span { font-weight: 800; } .zt-grade small { display: block; font-weight: 500; color: #C9BDA6; font-size: .78rem; }
#ztShare .z84-ic { width: 18px; height: 18px; }

/* ---------- MODO GIMNASIO ---------- */
html.zg-on .nav, html.zg-on .qfab { display: none !important; }
.zg { position: fixed; inset: 0; z-index: 25; display: flex; flex-direction: column; background: radial-gradient(110% 50% at 100% 0%, rgba(255, 154, 31, .22), transparent 60%), #0E0C09; color: #F4EEE2; animation: z84-fade .2s ease-out;
  --zl: rgba(255, 240, 215, .12); --zm: #A99F8E; padding-top: env(safe-area-inset-top, 0px); }
.zg-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px 6px; }
.zg-ib { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 54px; min-height: 48px; padding: 4px 6px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .07); color: #F4EEE2; font-size: .62rem; font-weight: 700; }
.zg-ib .z84-ic { width: 20px; height: 20px; } .zg-ib.on { background: linear-gradient(145deg, #FFB02E, #FF7A1A); color: #1F1000; }
.zg-prog { flex: 1; text-align: center; font-weight: 700; color: var(--zm); font-variant-numeric: tabular-nums; } .zg-prog b { color: #fff; font-size: 1.2rem; }
.zg-dots { display: flex; gap: 5px; padding: 4px 16px 8px; } .zg-dots i { flex: 1; height: 4px; border-radius: 2px; background: var(--zl); } .zg-dots i.ok { background: #37B45B; } .zg-dots i.now { background: #FFB02E; }
.zg-main { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 16px; }
.zg-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.zg-pic { flex: none; width: 112px; height: 112px; border-radius: 22px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.zg-pic figure { margin: 0; width: 100%; height: 100%; } .zg-pic img { width: 100%; height: 100%; object-fit: contain; display: block; } .zg-pic svg { width: 100%; height: 100%; }
.zg-hero h2 { margin: 0; font-size: 1.55rem; line-height: 1.08; font-weight: 900; color: #fff; } .zg-sub { margin: 6px 0 0; color: var(--zm); font-size: .9rem; }
.zg-ghost { margin: 0 0 12px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); display: grid; gap: 6px; font-size: .9rem; }
.zg-ghost span { display: flex; align-items: center; gap: 8px; } .zg-ghost .z84-ic { width: 18px; height: 18px; color: #FFB02E; flex: none; }
.zg-ghost i { height: 6px; border-radius: 3px; background: var(--zl); overflow: hidden; } .zg-ghost s { display: block; height: 100%; background: #FFB02E; transition: width .4s; }
.zg-ghost small { color: var(--zm); } .zg-ghost.beat { background: rgba(55, 180, 91, .2); } .zg-ghost.beat s { background: #37B45B; } .zg-ghost.beat .z84-ic { color: #5FD083; }
.zg-sug { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 12px; padding: 10px 12px; border-radius: 16px; border: 1px dashed rgba(255, 176, 46, .6); background: rgba(255, 176, 46, .1); color: #F4EEE2; text-align: left; }
.zg-sug .z84-ic { width: 20px; height: 20px; color: #FFB02E; flex: none; } .zg-sug span { flex: 1; } .zg-sug b { display: block; } .zg-sug small { color: var(--zm); font-size: .8rem; }
.zg-sug em { font-style: normal; font-weight: 900; padding: 6px 12px; border-radius: 999px; background: #FFB02E; color: #1F1000; }
.zg-risk, .zg-note, .zg-rest { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; padding: 10px 12px; border-radius: 14px; font-size: .88rem; }
.zg-risk { background: rgba(224, 72, 60, .2); } .zg-note { background: rgba(255, 255, 255, .06); color: var(--zm); } .zg-rest { background: rgba(91, 141, 239, .2); justify-content: center; font-weight: 700; } .zg-rest b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.zg-risk .z84-ic, .zg-rest .z84-ic { width: 18px; height: 18px; flex: none; }
.zg-k { margin: 0 0 6px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #FFB02E; }
.zg-fields { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 10px; }
.zg-f > span { display: block; text-align: center; font-size: .8rem; font-weight: 800; color: var(--zm); margin-bottom: 4px; }
.zg-f > div { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; border-radius: 22px; background: rgba(255, 255, 255, .08); border: 1px solid var(--zl); overflow: hidden; }
.zg-f button { height: 76px; border: 0; background: none; color: #F4EEE2; display: grid; place-items: center; } .zg-f button .z84-ic { width: 20px; height: 20px; } .zg-f button:active { background: rgba(255, 176, 46, .3); }
.zg-f input { width: 100%; min-width: 0; height: 76px; border: 0 !important; outline: 0; background: none !important; box-shadow: none !important; border-radius: 0 !important; color: #fff; text-align: center; font-size: 2rem; letter-spacing: -.02em; font-weight: 900; font-variant-numeric: tabular-nums; padding: 0 !important; }
.zg-f > div { grid-template-columns: 38px 1fr 38px !important; }
.zg-f > div:focus-within { border-color: #FFB02E; box-shadow: 0 0 0 3px rgba(255, 176, 46, .25); }
.zg-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.zg-quick button { flex: 1 0 auto; min-width: 58px; min-height: 48px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--zl); background: rgba(255, 255, 255, .06); color: #F4EEE2; font-weight: 800; font-variant-numeric: tabular-nums; }
.zg-quick button.w { flex-basis: 100%; } .zg-quick button:active { background: rgba(255, 176, 46, .3); }
.zg-done { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 68px; margin: 14px 0 0; border: 0; border-radius: 22px; background: linear-gradient(135deg, #FFB02E, #FF7A1A); color: #1F1000; font-size: 1.25rem; font-weight: 900; box-shadow: 0 14px 28px -10px rgba(255, 122, 26, .7); }
.zg-done .z84-ic { width: 26px; height: 26px; stroke-width: 3; } .zg-done:active { transform: scale(.98); }
.zg-fin { display: grid; justify-items: center; gap: 4px; padding: 22px 12px; border-radius: 22px; background: rgba(55, 180, 91, .16); text-align: center; }
.zg-fin .z84-ic { width: 44px; height: 44px; padding: 10px; box-sizing: border-box; border-radius: 50%; background: #37B45B; color: #fff; stroke-width: 3; } .zg-fin b { font-size: 1.2rem; } .zg-fin span { color: var(--zm); }
.zg-rir { margin: 14px 0 0; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .07); } .zg-rir p { margin: 0 0 8px; font-weight: 800; }
.zg-rir div { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; } .zg-rir button { min-height: 50px; border-radius: 14px; border: 1px solid var(--zl); background: none; color: #fff; font-size: 1.15rem; font-weight: 900; }
.zg-rir button:active { background: #FFB02E; color: #1F1000; } .zg-rir small { display: block; margin-top: 6px; color: var(--zm); font-size: .76rem; }
.zg-sets { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.zg-sets li { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 4px 6px 4px 8px; border-radius: 14px; background: rgba(255, 255, 255, .04); color: var(--zm); }
.zg-sets li > b { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--zl); color: #fff; flex: none; font-size: .9rem; }
.zg-sets li > span { flex: 1; font-weight: 700; font-variant-numeric: tabular-nums; } .zg-sets em { font-style: normal; font-size: .76rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--zl); }
.zg-sets li.now { background: rgba(255, 176, 46, .14); color: #fff; } .zg-sets li.now > b { background: #FFB02E; color: #1F1000; }
.zg-sets li.ok { color: #D9F2E0; } .zg-sets li.ok > b { background: #37B45B; }
.zg-sets button { width: 38px; height: 38px; border-radius: 12px; border: 0; background: rgba(55, 180, 91, .25); color: #7BE09A; display: grid; place-items: center; } .zg-sets button .z84-ic { width: 18px; height: 18px; }
.zg-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.zg-tools button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--zl); background: none; color: #F4EEE2; font-weight: 700; font-size: .86rem; }
.zg-tools .z84-ic { width: 16px; height: 16px; } .zg-tools button.on { background: rgba(255, 176, 46, .2); border-color: #FFB02E; }
.zg-nav { display: flex; gap: 10px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--zl); background: rgba(14, 12, 9, .9); }
.zg-nav button { min-height: 54px; border-radius: 18px; border: 1px solid var(--zl); background: rgba(255, 255, 255, .06); color: #F4EEE2; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; }
.zg-nav button:first-child { width: 58px; flex: none; } .zg-nav button:disabled { opacity: .3; } .zg-nav .z84-ic { width: 20px; height: 20px; flex: none; }
.zg-nav .go { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; text-align: center; line-height: 54px; } .zg-nav .go .z84-ic { display: inline-block; vertical-align: -4px; margin-left: 6px; }
.zg-nav .go.fin { background: linear-gradient(135deg, #37B45B, #1F8F45); border-color: transparent; color: #fff; }
@media (min-width: 720px) { .zg { align-items: center; } .zg > * { width: 100%; max-width: 620px; } }
/* pantallas estrechas o letra grande: nada se corta */
.zg-f input { font-size: clamp(1.25rem, 7.5vw, 2rem); }
.zg-hero h2 { font-size: clamp(1.15rem, 6.2vw, 1.55rem); overflow-wrap: anywhere; }
@media (max-width: 360px) { .zg-pic { width: 84px; height: 84px; border-radius: 18px; } .zg-main { padding-left: 12px; padding-right: 12px; } .zg-ghost span { flex-wrap: wrap; } }
html[data-fz="xl"] .zg-pic, html[data-fz="xxl"] .zg-pic { width: 84px; height: 84px; }
html[data-fz="xl"] .zg-f input, html[data-fz="xxl"] .zg-f input { font-size: 1.1rem; }
html[data-fz="xl"] .zg-f > div, html[data-fz="xxl"] .zg-f > div { grid-template-columns: 30px 1fr 30px !important; }
@media (prefers-reduced-motion: reduce) { .zg, .zt-ov, .zt-box { animation: none; } }

/* ============================================================
   v85 · cardio con cronómetro y casilla de hecho, editar ejercicios propios
   ============================================================ */
.c85 { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 8px 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.c85-go { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--chip); color: var(--ink); font-weight: 800; font-size: .9rem; }
.c85-go.on { background: linear-gradient(145deg, var(--z84-a, #FFB02E), var(--z84-b, #FF7A1A)); color: var(--z84-ink, #1A1208); border-color: transparent; }
.c85-clock { flex: 1; min-width: 0; font: 900 1.35rem/1 "JetBrains Mono", ui-monospace, monospace; color: var(--ink); font-variant-numeric: tabular-nums; }
.c85-l { font-size: .78rem; font-weight: 700; color: var(--muted); }
.c85 .tick { flex: none; width: 46px; height: 46px; }
.c85 .tick.on { background: #37B45B; border-color: #37B45B; color: #fff; }
.c85-pace { margin: 6px 2px 0; font-size: .85rem; font-weight: 700; color: var(--muted); }
.qedit { padding: 0 !important; }
.zg-cardio { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 4px 0 14px; }
.zg-cclock { font: 900 3.4rem/1 "JetBrains Mono", ui-monospace, monospace; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.zg-cgo { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(255, 176, 46, .45); background: rgba(255, 255, 255, .06); color: #F4EEE2; font-weight: 800; font-size: 1rem; }
.zg-cgo.on { background: linear-gradient(145deg, #FFB02E, #FF7A1A); color: #1A1208; border-color: transparent; }
.zg-cgo .z84-ic { width: 20px; height: 20px; }
.zg-done.zg-undo { background: rgba(255, 255, 255, .06) !important; color: #F4EEE2 !important; box-shadow: none !important; border: 1px solid rgba(255, 255, 255, .18) !important; }
