:root{--bg:#0e0f12;--surface:#1a1c22;--surface-2:#252830;--text:#f5f5f5;--muted:#9aa0aa;--work:#ff6b35;--rest:#2ec4b6;--prepare:#4d8dff;--danger:#ff4d5e;--accent:var(--work);--phase:var(--prepare);--radius:16px;--safe-top:env(safe-area-inset-top);--safe-bottom:env(safe-area-inset-bottom)}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;overscroll-behavior:none;margin:0;font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,system-ui,sans-serif}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit}h1,h2,p{margin:0}.muted{color:var(--muted)}.small{font-size:.8rem;line-height:1.4}.row{flex-wrap:wrap;gap:12px;display:flex}.page{max-width:560px;min-height:100dvh;padding:calc(var(--safe-top) + 8px) 16px calc(var(--safe-bottom) + 24px);flex-direction:column;gap:16px;margin:0 auto;display:flex}.page--center{text-align:center;justify-content:center;align-items:center}.topbar{grid-template-columns:44px 1fr auto;align-items:center;gap:8px;min-height:52px;display:grid}.topbar__title{letter-spacing:-.02em;grid-column:1/3;font-size:1.8rem;font-weight:800}.topbar__subtitle{text-align:center;color:var(--muted);font-weight:600}.topbar__warning{color:var(--muted);text-align:right;max-width:90px;font-size:.7rem}.card{background:var(--surface);border-radius:var(--radius);padding:16px}.section-title{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-top:8px;font-size:.85rem;font-weight:700}.btn{background:var(--surface-2);cursor:pointer;border:0;border-radius:999px;justify-content:center;align-items:center;gap:8px;min-height:48px;padding:0 20px;font-weight:600;display:inline-flex}.btn:disabled{opacity:.4}.btn--accent{background:var(--accent);color:#fff}.btn--ghost{border:1.5px dashed var(--surface-2);color:var(--muted);background:0 0}.btn--danger{color:var(--danger);background:0 0}.btn--small{min-height:40px;padding:0 16px;font-size:.95rem}.btn--large{min-height:60px;font-size:1.2rem}.btn--block{width:100%}.icon-btn{cursor:pointer;background:0 0;border:0;border-radius:999px;place-items:center;width:44px;height:44px;display:inline-grid}.icon-btn:disabled{opacity:.3}.icon-btn--accent{background:var(--accent);color:#fff}.icon-btn--large{background:var(--surface);width:64px;height:64px}.icon-btn--huge{width:84px;height:84px}.icon{width:24px;height:24px}.icon-btn--large .icon,.icon-btn--huge .icon{width:32px;height:32px}.workout-list{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.workout-card{align-items:center;gap:8px;display:flex}.workout-card__main{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.workout-card__name{font-size:1.2rem;font-weight:700}.workout-card__meta{color:var(--muted);font-size:.9rem}.workout-card__actions{gap:4px;display:flex}.figure{aspect-ratio:1;width:100%;display:block}.figure polyline{fill:none;stroke-linecap:round;stroke-linejoin:round}.figure__body{stroke:var(--text);fill:var(--text)}polyline.figure__body{fill:none}.figure__far{stroke:#7d828c;fill:#7d828c}.figure__prop{stroke:#4f6070}.figure__ground{stroke:#3a3d45}.figure--empty{color:var(--muted);place-items:center;display:grid}.figure--empty svg{width:40%;height:40%}.figure--thumb{background:var(--surface-2);border-radius:12px;flex:none;width:52px}.figure--stage{width:min(78vw,42dvh,360px);margin:0 auto}.figure--preview{opacity:.55}.player--work{--phase:var(--work)}.player--rest,.player--roundRest{--phase:var(--rest)}.player--prepare{--phase:var(--prepare)}.player{gap:12px}.player .icon-btn--accent{background:var(--phase)}.player--ready .btn--accent{margin-top:auto}.player__intro{flex-direction:column;gap:8px;display:flex}.player__title{font-size:2rem;font-weight:800}.player__total{font-variant-numeric:tabular-nums;color:var(--accent);font-size:4rem;font-weight:800}.player--done{gap:16px}.exercise-preview{flex-direction:column;gap:8px;margin:8px 0 0;padding:0;list-style:none;display:flex}.exercise-preview li{align-items:center;gap:12px;display:flex}.progress{background:var(--surface-2);border-radius:2px;height:4px;overflow:hidden}.progress__bar{background:var(--phase);height:100%}.player__stage{text-align:center;flex-direction:column;align-items:center;gap:4px;display:flex}.phase-chip{background:var(--phase);color:#fff;text-transform:uppercase;letter-spacing:.08em;border-radius:999px;padding:4px 14px;font-size:.85rem;font-weight:700}.player__next-label{color:var(--phase);text-transform:uppercase;letter-spacing:.06em;font-size:.85rem;font-weight:700}.player__exercise{font-size:1.7rem;font-weight:800}.player__cue{max-width:320px;min-height:2.6em;font-size:.95rem}.countdown{aspect-ratio:1;width:min(36vw,150px);margin:0 auto;position:relative}.countdown__ring{width:100%;height:100%}.countdown__track,.countdown__value{fill:none;stroke-width:7px}.countdown__track{stroke:var(--surface-2)}.countdown__value{stroke:var(--phase);stroke-linecap:round}.countdown__number{font-variant-numeric:tabular-nums;place-items:center;font-size:3.2rem;font-weight:800;display:grid;position:absolute;inset:0}.controls{justify-content:center;align-items:center;gap:28px;margin-top:auto;display:flex}.field{flex-direction:column;gap:6px;display:flex}.field__label{color:var(--muted);font-size:.85rem;font-weight:600}.field__hint{color:var(--muted);font-size:.8rem}.input{background:var(--surface-2);width:100%;min-height:44px;color:var(--text);font:inherit;border:0;border-radius:12px;padding:0 12px;font-size:16px}.input--tiny{text-align:right;width:64px;min-height:32px;padding:0 8px}.form{flex-direction:column;align-items:stretch;gap:16px;display:flex}.form>.btn{align-self:flex-start}.toggle{justify-content:space-between;align-items:center;gap:12px;display:flex}.toggle input,.checkbox input{width:22px;height:22px;accent-color:var(--accent)}.checkbox{align-items:center;gap:8px;font-size:.9rem;display:flex}input[type=range]{accent-color:var(--accent)}.settings-grid{grid-template-columns:1fr 1fr;gap:16px 12px;display:grid}.stepper{flex-direction:column;gap:6px;display:flex}.stepper--disabled{opacity:.4}.stepper__label{color:var(--muted);font-size:.85rem;font-weight:600}.stepper__controls{background:var(--surface-2);border-radius:12px;justify-content:space-between;align-items:center;display:flex}.stepper__btn{cursor:pointer;background:0 0;border:0;width:44px;height:44px;font-size:1.4rem}.stepper__btn:disabled{opacity:.3}.stepper__value{font-variant-numeric:tabular-nums;font-weight:700}.stepper--readonly .stepper__value{align-items:center;min-height:44px;font-size:1.2rem;display:flex}.step-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.step{align-items:center;gap:12px;padding:8px 8px 8px 12px;display:flex}.step__body{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.step__name{font-weight:600}.step__override{color:var(--muted);align-items:center;gap:4px;font-size:.85rem;display:flex}.step__actions{display:flex}.step__actions .icon-btn{width:36px}.sheet{z-index:10;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet__backdrop{background:#0009;position:absolute;inset:0}.sheet__panel{background:var(--bg);width:100%;max-width:560px;max-height:88dvh;padding:8px 16px calc(var(--safe-bottom) + 16px);border-radius:20px 20px 0 0;flex-direction:column;gap:12px;display:flex;position:relative;overflow-y:auto}.picker{grid-template-columns:1fr 1fr;gap:8px;margin:0;padding:0;list-style:none;display:grid}.picker__item{background:var(--surface);text-align:left;cursor:pointer;border:0;border-radius:12px;align-items:center;gap:10px;width:100%;padding:8px;font-size:.9rem;display:flex}.custom-exercise{flex-direction:column;align-items:flex-start;gap:10px;display:flex}.kv{flex-direction:column;gap:8px;margin:0;display:flex}.kv div{justify-content:space-between;gap:12px;display:flex}.kv dt{color:var(--muted)}.kv dd{text-align:right;margin:0;font-weight:600}.log{color:var(--muted);margin:8px 0 0;padding:0;font-family:ui-monospace,monospace;font-size:.8rem;list-style:none}.sheet__panel .topbar{grid-template-columns:1fr 44px}.sheet__panel .topbar__subtitle{text-align:left;color:var(--text);font-size:1.1rem}
