:root { --primario: #6c757d; --primario-suave: #f1f3f5; }
html, body { height: 100%; }
body { background: #f7f7f9; padding-bottom: 72px; -webkit-tap-highlight-color: transparent; }
.app-header { background: var(--primario); color: #fff; padding: 12px 16px; position: sticky; top: 0; z-index: 1020; }
.app-header a { color: #fff; opacity: .85; text-decoration: none; font-size: .85rem; }
.app-header h1 { font-size: 1.15rem; margin: 0; font-weight: 600; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: 64px; background: #fff; border-top: 1px solid #e3e3e3; display: flex; z-index: 1030; }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .72rem; color: #888; text-decoration: none; }
.bottom-nav a.active { color: var(--primario); font-weight: 600; }
.bottom-nav a span.ico { font-size: 1.35rem; line-height: 1; margin-bottom: 2px; }
.card-bloque { border: 0; border-left: 5px solid var(--primario); border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card-bloque .card-header { background: var(--primario-suave); font-size: .82rem; font-weight: 600; border-bottom: 0; }
.ejercicio-nombre { font-weight: 600; font-size: .95rem; }
.ejercicio-meta { font-size: .75rem; color: #777; }
.tabla-sets td { padding: 3px 4px; vertical-align: middle; }
.tabla-sets input { font-size: 1rem; text-align: center; height: 42px; }
.tabla-sets .num-serie { width: 28px; color: #999; font-size: .8rem; text-align: center; }
.tabla-sets .prev { font-size: .7rem; color: #aaa; white-space: nowrap; }
.btn-primario { background: var(--primario); border-color: var(--primario); color: #fff; }
.btn-primario:hover { color: #fff; filter: brightness(1.1); }
.btn-guardar { position: fixed; bottom: 76px; right: 16px; z-index: 1025; border-radius: 30px; padding: 12px 26px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.sel-usuario { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 24px; }
.sel-usuario a { display: block; padding: 40px 20px; border-radius: 18px; color: #fff; text-align: center; font-size: 1.6rem; font-weight: 700; text-decoration: none; }
.badge-comp { font-size: .7rem; }
.app-header { padding-top: calc(12px + env(safe-area-inset-top)); }
.bottom-nav { height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

.btn-timer { font-size: .75rem; padding: 1px 8px; border: 1px solid var(--primario); color: var(--primario); background: #fff; border-radius: 12px; }
.timer-bar { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); background: var(--primario); color: #fff; padding: 10px 16px; display: none; align-items: center; gap: 12px; z-index: 1028; box-shadow: 0 -2px 8px rgba(0,0,0,.2); }
.timer-bar.activo { display: flex; }
.timer-bar .tiempo { font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 80px; }
.timer-bar .btn { border-color: rgba(255,255,255,.6); color: #fff; }
.timer-progreso { position: absolute; left: 0; top: 0; height: 4px; background: rgba(255,255,255,.85); transition: width .25s linear; }
body.timer-activo .btn-guardar { bottom: calc(150px + env(safe-area-inset-bottom)); }