/* V0.3: compact, mobile-first workout, habits, calendar and progress. */
.page-intro{margin:4px 0 18px}.page-intro h1{margin:5px 0;font-size:2rem}.page-intro p{color:var(--ef-muted);font-size:.86rem;margin:0}.session-picker{grid-template-columns:1fr 1.65fr}.workout-hero{background:linear-gradient(135deg,var(--ef-panel),#351b20);padding:var(--ef-space);border-color:#604047}.workout-hero h2{font-size:1.55rem;margin:8px 0 14px}.workout-status{font-size:.82rem;color:var(--ef-muted);margin:8px 0 14px}.workout-status strong{color:var(--ef-text);font-size:1.2rem}.workout-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.exercise-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}.exercise-number{font-size:1.4rem;font-weight:800;background:#3b2025;color:#ff9ba4;border-radius:12px;min-width:48px;height:48px;display:grid;place-items:center}.exercise-head h2{margin:3px 0 0;overflow-wrap:anywhere}.exercise-progress{display:flex;justify-content:space-between;font-size:.78rem;color:var(--ef-muted);margin-bottom:5px}.exercise-progress b{color:var(--ef-text)}.exercise-card>progress{height:6px;margin-bottom:10px}.prescription-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.prescription-metrics .metric{padding:10px 7px;font-size:.7rem;overflow-wrap:anywhere}.prescription-metrics .metric strong{font-size:clamp(.9rem,3.6vw,1.35rem);margin:4px 0}.prescription-metrics .metric small{font-size:.67rem}.setrow{border:1px solid var(--ef-line);border-radius:12px;padding:10px;margin:8px 0;gap:6px}.setrow .muted{font-size:.76rem}.setrow button{font-size:.75rem;padding:8px}.setrow .check{font-size:1.25rem;min-width:44px}.setrow.current-set{border-color:var(--ef-red);background:#351d21}.setrow.complete{background:#181818}.setrow.complete .check:disabled{opacity:1;color:#f5f5f5}.exercise-card .panel{padding:12px;background:var(--ef-bg)}.exercise-card .panel>.primary{width:100%}#timer{background:transparent;border:0;padding:0 12px 8px;pointer-events:none}.timer-face{max-width:520px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border:1px solid var(--ef-red);background:#24171a;border-radius:16px;box-shadow:0 6px 25px #0009;pointer-events:auto;text-align:left}.timer-face small{font-size:.63rem;letter-spacing:.09em;color:#ff9ba4;margin:0}.timer-face b{font-size:2rem;font-variant-numeric:tabular-nums;line-height:1.15}.timer-face button{font-size:.78rem;min-height:44px}.elapsed .timer-face{border-color:#777;background:#242424}body:has(#timer:not([hidden])) main{padding-bottom:calc(235px + env(safe-area-inset-bottom))}.habit-summary{margin:12px 0 20px}.habit-summary .habit-card{min-height:95px;text-decoration:none;color:var(--ef-text);padding:12px;gap:4px}.habit-summary .habit-card strong{font-size:1.5rem}.habit-summary .habit-card svg{width:20px;height:20px}.section-icon{display:flex;align-items:center;gap:8px}.section-icon svg{width:24px;height:24px;color:var(--ef-red)}.meal{margin:8px 0;padding:12px;background:var(--ef-bg);border:1px solid var(--ef-line);border-radius:12px}.meal h3{margin-bottom:10px}.meal label+label{margin-top:10px}#habit-sleep label,#habit-supp label{margin:12px 0}.counter{justify-content:center}.counter button{font-size:1.5rem}.week-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:16px}.week-grid button{padding:8px 2px;min-height:84px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.week-grid strong{font-size:1.55rem}.week-grid small{font-size:.62rem;margin:0}.week-grid .deload{background:#392025;border-color:#98505b}.meso-card p{font-size:.85rem;color:var(--ef-muted)}#view[data-screen=history] article p{padding:10px 0;border-bottom:1px solid var(--ef-line);font-size:.86rem}#view[data-screen=history] article p:last-child{border:0}input,select,textarea{font-size:1rem}button{touch-action:manipulation}@media(max-width:360px){.setrow button{padding:5px}.session-picker{grid-template-columns:1fr}.week-grid small{font-size:.55rem}}
.exercise-media{margin:16px 0}.exercise-media img,.media-placeholder{width:100%;aspect-ratio:16/9;border-radius:16px;object-fit:contain;background:#242424}.media-placeholder{display:grid;place-items:center;color:#aaa;text-align:center;padding:12px;box-sizing:border-box}.media-placeholder[hidden], [hidden]{display:none!important}.media-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.media-button{border:1px solid #444;border-radius:12px;padding:14px 5px;display:flex;flex-direction:column;align-items:center;gap:6px;color:#f5f5f5;text-decoration:none;text-align:center;font-weight:600}.media-button>span{color:#e52e40;font-size:26px}.media-button.unavailable{color:#aaa}.media-button small{font-size:11px}.exercise-start{width:100%;margin:12px 0}.scale-card{background:#242424;border-radius:16px;padding:12px;margin:12px 0}.scale-card h3{margin:0 0 12px}.scale-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.scale-options button{min-width:0;padding:10px 2px;background:#383838;border:1px solid transparent;border-radius:10px;display:flex;flex-direction:column;align-items:center;gap:7px;color:#fff;min-height:104px}.scale-options button[aria-pressed=true]{background:#b51e30;border-color:#ef5865}.scale-options svg{width:24px;height:24px}.scale-options span{font-size:clamp(10px,2.9vw,14px);line-height:1.2;overflow-wrap:normal;hyphens:none;text-align:center}.scale-card small{display:inline-block;margin-top:10px;color:#bbb}.clear-scale{font-size:12px;padding:4px 8px}

/* V0.3.2: botones de hábitos y vasos */
.habit-choice{margin:12px 0 16px;min-width:0}.habit-choice h4{font-size:.94rem;margin:0 0 10px;font-weight:600}.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.choice-grid button{min-width:0;min-height:78px;padding:10px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;background:#383838;border:1px solid #4b4b4b;border-radius:10px;color:#f5f5f5;text-align:center;line-height:1.2;font-size:.82rem;overflow-wrap:normal}.choice-grid button svg{width:23px;height:23px;flex-shrink:0}.choice-grid button[aria-pressed=true]{background:#b51e30;border-color:#ef5865}.choice-grid button:focus-visible{outline:2px solid #fff;outline-offset:2px}.choice-status{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:7px}.choice-status small{color:#bbb;font-size:.76rem;margin:0}.choice-status button{min-height:36px}.water-glasses{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:9px;max-width:340px;margin:20px auto 12px}.water-glass{width:clamp(28px,8vw,38px);height:auto;flex:0 0 auto;overflow:visible}.glass-outline,.glass-rim{fill:none;stroke:#bcbcc2;stroke-width:1.8;stroke-linejoin:round}.glass-shine{fill:none;stroke:#bcbcc2;stroke-width:1.2;stroke-linecap:round;opacity:.5}.glass-liquid{fill:transparent}.is-filled .glass-liquid{fill:var(--ef-red)}.is-filled .glass-outline,.is-filled .glass-rim{stroke:#f5f5f5}#habit-water>p{text-align:center}.water-caption{font-size:.75rem;color:var(--ef-muted)}
