:root{--bg:#111113;--surface:#1a1a1d;--surface-2:#25252a;--line:#2c2c31;--text:#f2f2f3;--muted:#8e8e98;--accent:#ff5a36;--accent-strong:#d33f1d;--on-accent:#fff;--danger:#ff5d5d;--radius:16px;--tap:48px;--font:-apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}@media (prefers-color-scheme:light){:root{--bg:#f5f5f7;--surface:#fff;--surface-2:#ebebef;--line:#e2e2e7;--text:#111113;--muted:#6b6b74;--danger:#d22f2f;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}}*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--bg);color:var(--text);font:16px/1.4 var(--font);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;overscroll-behavior:none}button,input{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;background:0 0;border:0;padding:0}button:disabled{opacity:.35;cursor:default}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.screen{max-width:520px;padding:calc(env(safe-area-inset-top) + 8px) 16px calc(env(safe-area-inset-bottom) + 104px);flex-direction:column;gap:16px;margin:0 auto;display:flex}.topbar{min-height:var(--tap);justify-content:space-between;align-items:center;gap:8px;display:flex}.brand{letter-spacing:-.02em;margin:0;font-size:22px;font-weight:750}.title-input{text-align:center;background:0 0;border:0;border-radius:10px;flex:1;min-width:0;padding:8px;font-size:18px;font-weight:650}.title-input:focus{background:var(--surface-2);outline:none}.card{background:var(--surface);border-radius:var(--radius);padding:4px 16px}.field{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;min-height:64px;display:flex}.field:last-child{border-bottom:0}.field.dim{opacity:.45}.field-label{flex-direction:column;min-width:0;font-weight:600;display:flex}.hint{color:var(--muted);font-size:12px;font-weight:400}.label-with-seg{flex-direction:column;align-items:flex-start;gap:6px;display:flex}.stepper{flex-shrink:0;align-items:center;gap:4px;display:flex}.step-btn{width:var(--tap);height:var(--tap);background:var(--surface-2);border-radius:50%;place-items:center;display:grid}.step-btn:active:not(:disabled){background:var(--accent);color:var(--on-accent)}.step-val,.step-input{width:84px;height:var(--tap);text-align:center;font-variant-numeric:tabular-nums;border-radius:10px;font-size:22px;font-weight:650}.step-val small{color:var(--muted);margin-left:3px;font-size:12px;font-weight:500}.step-val.off{color:var(--muted);font-size:17px}.step-input{background:var(--surface-2);outline:2px solid var(--accent);border:0}.stepper.compact .step-btn{width:42px;height:42px}.stepper.compact .step-val,.stepper.compact .step-input{width:76px;font-size:20px}.seg{background:var(--surface-2);border-radius:12px;padding:3px;display:flex}.seg button{min-height:40px;color:var(--muted);border-radius:9px;flex:1;padding:0 14px;font-weight:600}.seg button.on{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #0003}.seg-sm{border-radius:9px;padding:2px}.seg-sm button{border-radius:7px;min-height:28px;padding:0 10px;font-size:13px}.chips{scrollbar-width:none;gap:8px;margin:0 -16px;padding:0 16px 2px;display:flex;overflow-x:auto}.chips::-webkit-scrollbar{display:none}.chip{background:var(--surface);border:1px solid var(--line);white-space:nowrap;border-radius:18px;flex-shrink:0;height:36px;padding:0 14px;font-size:14px;font-weight:600}.chip:active{background:var(--surface-2)}.btn{min-height:var(--tap);background:var(--surface);border-radius:14px;justify-content:center;align-items:center;gap:8px;padding:0 16px;font-weight:600;display:inline-flex}.btn:active:not(:disabled){background:var(--surface-2)}.btn.primary{background:var(--accent-strong);color:var(--on-accent)}.btn.danger{color:var(--danger)}.btn.danger.armed{background:var(--danger);color:#fff}.row-2{grid-template-columns:1fr 1fr;gap:10px;display:grid}.icon-btn{width:var(--tap);height:var(--tap);border-radius:50%;flex-shrink:0;place-items:center;display:grid}.icon-btn:active:not(:disabled){background:var(--surface-2)}.icon-btn.sm{width:40px;height:40px}.icon-btn.sm svg{width:20px;height:20px}.text-btn{color:var(--accent);min-height:var(--tap);padding:0 8px;font-weight:650}.link-btn{color:var(--accent);min-height:var(--tap);align-items:center;gap:6px;font-weight:650;display:inline-flex}.bottom-bar{padding:12px 16px calc(env(safe-area-inset-bottom) + 12px);background:linear-gradient(to top, var(--bg) 70%, transparent);z-index:5;justify-content:center;display:flex;position:fixed;bottom:0;left:0;right:0}.btn.start{background:var(--accent-strong);width:100%;max-width:488px;min-height:60px;color:var(--on-accent);border-radius:18px;font-size:19px;font-weight:700}.btn.start:active:not(:disabled){background:var(--accent)}.start-total{text-overflow:ellipsis;white-space:nowrap;opacity:.85;font-variant-numeric:tabular-nums;min-width:0;font-size:15px;font-weight:500;overflow:hidden}.current{align-items:center;gap:8px;margin-bottom:-6px;font-weight:650;display:flex}.current-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.badge{color:var(--muted);background:var(--surface-2);border-radius:6px;padding:1px 6px;font-size:12px;font-weight:500}.section-title{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:8px 0;font-size:13px}.list{background:var(--surface);border-radius:var(--radius);margin:0;padding:0;list-style:none;overflow:hidden}.list-row{border-bottom:1px solid var(--line);align-items:center;padding-right:4px;display:flex}.list-row:last-child{border-bottom:0}.list-row.active{box-shadow:inset 3px 0 var(--accent)}.list-main{text-align:left;flex-direction:column;flex:1;min-width:0;padding:12px 16px;display:flex}.list-main:active{background:var(--surface-2)}.list-name{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.list-sub{color:var(--muted);font-variant-numeric:tabular-nums;font-size:13px}.note{color:var(--muted);margin:0;font-size:14px}.center{text-align:center}.set-list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.set-card{background:var(--surface);border-radius:var(--radius);padding:12px 12px 6px 16px}.set-head{align-items:center;gap:10px;display:flex}.set-num{background:var(--surface-2);border-radius:50%;flex-shrink:0;place-items:center;width:28px;height:28px;font-size:14px;font-weight:700;display:grid}.set-card .field{border-bottom:0;min-height:56px}.set-actions{color:var(--muted);justify-content:flex-end;gap:2px;display:flex}.add-set{border:1.5px dashed var(--line);background:0 0}.text-input{border:1px solid var(--line);background:var(--surface-2);border-radius:10px;width:100%;min-height:44px;padding:0 12px;font-size:16px}.text-input:focus{outline:2px solid var(--accent);border-color:#0000}.set-name{background:0 0;border-color:#0000;padding:0 8px;font-weight:600}.set-name:focus{background:var(--surface-2)}.sheet-backdrop{z-index:20;background:#0008;justify-content:center;align-items:flex-end;animation:.15s ease-out fade;display:flex;position:fixed;inset:0}.sheet{background:var(--bg);width:100%;max-width:520px;padding:8px 16px calc(env(safe-area-inset-bottom) + 16px);border-radius:20px 20px 0 0;max-height:90vh;animation:.2s ease-out rise;overflow-y:auto}.sheet .btn{background:var(--surface);width:100%}.sheet .btn.primary{background:var(--accent-strong)}.sheet .btn.danger.armed{background:var(--danger)}.sheet-grip{background:var(--line);border-radius:3px;width:36px;height:5px;margin:0 auto 8px}.sheet-title{text-align:center;text-overflow:ellipsis;white-space:nowrap;margin:4px 0 16px;font-size:17px;overflow:hidden}.stack{flex-direction:column;gap:10px;display:flex}.toggle-row{background:var(--surface);border-radius:14px;justify-content:space-between;align-items:center;gap:12px;min-height:52px;padding:0 16px;font-weight:600;display:flex}.toggle-row input[type=checkbox]{appearance:none;background:var(--surface-2);cursor:pointer;border-radius:15px;width:50px;height:30px;margin:0;transition:background .15s;position:relative}.toggle-row input[type=checkbox]:after{content:"";background:#fff;border-radius:50%;width:24px;height:24px;transition:transform .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0004}.toggle-row input[type=checkbox]:checked{background:#2bb673}.toggle-row input[type=checkbox]:checked:after{transform:translate(20px)}.toast{left:50%;bottom:calc(env(safe-area-inset-bottom) + 96px);background:var(--text);color:var(--bg);z-index:30;white-space:nowrap;border-radius:22px;padding:10px 18px;font-size:14px;font-weight:600;animation:.15s ease-out fade;position:fixed;transform:translate(-50%)}@keyframes fade{0%{opacity:0}}@keyframes rise{0%{opacity:.5;transform:translateY(40px)}}.run{--phase:#2a2a2e;background:var(--phase);color:#fff;padding:env(safe-area-inset-top) 16px calc(env(safe-area-inset-bottom) + 16px);-webkit-user-select:none;user-select:none;flex-direction:column;transition:background-color .3s;display:flex;position:fixed;inset:0}.run[data-phase=work]{--phase:#d33f1d}.run[data-phase=restSet]{--phase:#16775a}.run[data-phase=restRound]{--phase:#5140c4}.run[data-phase=done]{--phase:#111113}.run .icon-btn:active{background:#fff2}.run-top{justify-content:space-between;align-items:center;min-height:56px;display:flex}.run-title{opacity:.85;text-overflow:ellipsis;white-space:nowrap;padding:0 8px;font-weight:600;overflow:hidden}.run-progress{background:#fff3;border-radius:2px;height:4px;overflow:hidden}.run-progress div{background:#fff;height:100%;transition:width .2s linear}.run-main{text-align:center;cursor:pointer;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:6px;min-height:0;display:flex}.run-main.done{cursor:default}.phase{text-transform:uppercase;letter-spacing:.08em;font-size:clamp(24px,7vw,36px);font-weight:750}.set-title{opacity:.9;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:20px;font-weight:600;overflow:hidden}.clock{font-variant-numeric:tabular-nums;letter-spacing:-.04em;font-size:clamp(96px,30vw,200px);font-weight:700;line-height:1}.clock.reps small{letter-spacing:0;opacity:.85;margin-left:.15em;font-size:.22em;font-weight:600}.stopwatch{font-variant-numeric:tabular-nums;opacity:.8;font-size:24px}.step-bar{background:#fff3;border-radius:3px;width:min(70%,320px);height:6px;margin:8px 0;overflow:hidden}.step-bar div{transform-origin:0;background:#fff;height:100%;transition:transform .1s linear}.meta{opacity:.85;font-variant-numeric:tabular-nums;font-size:17px}.paused-tag{background:#0004;border-radius:16px;margin-top:8px;padding:6px 14px;font-size:15px;font-weight:600}.run[data-paused] .clock{opacity:.55}.done-btn{color:#111;background:#fff;border-radius:20px;min-height:72px;margin-bottom:12px;font-size:22px;font-weight:750}.done-btn:active{background:#ddd!important}.run-next{text-align:center;opacity:.8;text-overflow:ellipsis;white-space:nowrap;min-height:22px;margin-bottom:8px;font-size:15px;overflow:hidden}.run-controls{justify-content:center;align-items:center;gap:28px;display:flex}.icon-btn.lg{background:#fff2;width:60px;height:60px}.icon-btn.xl{color:#111;background:#fff;width:84px;height:84px}.run .icon-btn.xl:active{background:#ddd}.run-done-actions{grid-template-columns:1fr 1fr;gap:10px;display:grid}.run-done-actions .btn{color:#fff;background:#fff2;min-height:56px}.run-done-actions .btn.primary{color:#111;background:#fff}@media (height<=640px){.clock{font-size:clamp(72px,24vw,140px)}.run-controls{gap:20px}.icon-btn.xl{width:72px;height:72px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}
