:root{--bg:#0b0d10;--surface:#161a20;--surface-pressed:#1f252d;--border:#2a313b;--text:#f4f6f8;--text-muted:#a3adba;--accent:#d4ff3a;--accent-text:#0b0d10;--danger:#ff6b6b;--success:#5ee38b;--radius:14px;--tap:52px;--gutter:16px;--tab-bar-height:64px;--rest-bar-height:60px;--warning:#ffb547;--font:-apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}@media (prefers-color-scheme:light){:root{--bg:#f3f4f6;--surface:#fff;--surface-pressed:#e8eaee;--border:#d5d9e0;--text:#0b0d10;--text-muted:#4f5a68;--accent:#3d5a00;--accent-text:#fff;--danger:#c62828;--success:#1b7a3d;--warning:#9a5b00;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}}*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--text);font:17px/1.4 var(--font);-webkit-tap-highlight-color:transparent;margin:0}h1,h2,p,dl,dd,ol,ul{margin:0}ul,ol{padding:0;list-style:none}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation}.muted{color:var(--text-muted)}.small{font-size:15px}.screen{max-width:640px;padding:calc(env(safe-area-inset-top) + 12px) calc(env(safe-area-inset-right) + var(--gutter)) calc(env(safe-area-inset-bottom) + var(--tab-bar-height) + var(--rest-bar-height) + 24px) calc(env(safe-area-inset-left) + var(--gutter));flex-direction:column;gap:12px;margin:0 auto;display:flex}.screen-header{flex-direction:column;gap:2px;padding-top:8px;display:flex}.screen-header h1{letter-spacing:-.02em;font-size:30px;font-weight:800;line-height:1.15}.screen-subtitle{color:var(--text-muted)}.back-button{min-height:44px;color:var(--accent);background:0 0;border:0;align-self:flex-start;margin-left:-8px;padding:0 8px;font-size:17px;font-weight:600}.back-button span{font-size:26px;line-height:1}.section-title{letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);margin-top:12px;font-size:14px;font-weight:700}.list-section{flex-direction:column;gap:8px;display:flex}.empty-state{flex-direction:column;gap:8px;padding:24px 0;display:flex}.card-list{flex-direction:column;gap:8px;display:flex}.card,.list-card{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);flex-direction:column;gap:4px;padding:14px 16px;display:flex}.list-card{min-height:var(--tap)}.list-card:active{background:var(--surface-pressed)}.list-card-top{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.list-card-title{font-weight:700}.list-card-body{overflow-wrap:anywhere}.card-title-link{color:var(--accent);align-self:flex-start;font-size:19px;font-weight:700}.prose{gap:8px}.exercise-note{border-left:3px solid var(--accent);background:var(--surface-pressed);white-space:pre-line;border-radius:6px;padding:8px 12px}.fact-grid{gap:10px;display:grid}.fact-grid>div{justify-content:space-between;gap:16px;display:flex}.fact-grid dt{color:var(--text-muted)}.fact-grid dd{text-align:right;font-weight:600}.set-list{flex-direction:column;margin-top:6px;display:flex}.set-row{border-top:1px solid var(--border);font-variant-numeric:tabular-nums;align-items:center;gap:12px;min-height:40px;font-size:19px;display:flex}.set-number{text-align:center;width:28px;color:var(--text-muted);font-weight:700}.set-row.is-warmup{color:var(--text-muted);font-size:17px}.button{min-height:var(--tap);border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);text-align:center;justify-content:center;align-items:center;padding:0 20px;font-weight:700;display:flex}.button:active{background:var(--surface-pressed)}.button:disabled{opacity:.5}.button.is-primary{border-color:var(--accent);background:var(--accent);color:var(--accent-text)}.button.is-danger{color:var(--danger)}.search-input{width:100%;min-height:var(--tap);border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);padding:0 16px;font-size:17px}.search-input:focus,.button:focus-visible,.segment:focus-visible,.stepper button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.segmented{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);grid-auto-columns:1fr;grid-auto-flow:column;gap:4px;padding:4px;display:grid}.segment{background:0 0;border:0;border-radius:10px;min-height:44px;padding:0 6px;font-size:15px;font-weight:600}.segment.is-selected{background:var(--accent);color:var(--accent-text)}.stepper{align-items:center;gap:16px;display:flex}.stepper button{width:var(--tap);height:var(--tap);border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);font-size:26px;font-weight:700}.stepper button:disabled{opacity:.4}.stepper output{text-align:center;font-variant-numeric:tabular-nums;min-width:2ch;font-size:28px;font-weight:800}.settings-group{flex-direction:column;gap:10px;display:flex}.status-message{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);padding:12px 16px;font-weight:600}.status-message.is-error{border-color:var(--danger);color:var(--danger)}.status-message.is-success{border-color:var(--success);color:var(--success)}.tab-bar{z-index:10;padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);border-top:1px solid var(--border);background:color-mix(in srgb, var(--bg) 92%, transparent);-webkit-backdrop-filter:blur(12px);grid-template-columns:repeat(4,1fr);display:grid;position:fixed;inset:auto 0 0}.tab{height:var(--tab-bar-height);color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:12px;font-weight:600;display:flex}.tab.active{color:var(--accent)}.text-button{min-height:44px;color:var(--accent);background:0 0;border:0;align-self:flex-start;padding:0 4px;font-weight:700}.text-button.is-danger,.is-danger{color:var(--danger)}.button.is-large{min-height:60px;font-size:19px}.button-row{grid-template-columns:1fr 1fr;gap:8px;display:grid}.badge{background:var(--surface-pressed);white-space:nowrap;border-radius:999px;padding:2px 8px;font-size:13px;font-weight:700}.badge.is-hurt{background:var(--danger);color:var(--accent-text)}.icon-button{min-width:48px;min-height:44px;color:var(--text-muted);letter-spacing:1px;background:0 0;border:0;border-radius:10px;font-size:18px;font-weight:800}.picker-row{text-align:left;border-width:1px;width:100%}.sheet{background:var(--bg);width:100%;max-width:640px;height:100%;max-height:100%;color:var(--text);border:0;margin:0 auto;padding:0}.sheet::backdrop{background:#0009}.sheet-header{z-index:1;padding:calc(env(safe-area-inset-top) + 8px) var(--gutter) 8px;border-bottom:1px solid var(--border);background:var(--bg);justify-content:space-between;align-items:center;display:flex;position:sticky;top:0}.sheet-header h2{font-size:20px}.sheet-body{padding:12px var(--gutter) calc(env(safe-area-inset-bottom) + 24px);flex-direction:column;gap:10px;display:flex}.menu-list{flex-direction:column;gap:8px;display:flex}.start-card{border-color:var(--accent);gap:8px}.start-card-title{font-size:26px;font-weight:800}.exercise-card{gap:6px}.exercise-card-header{justify-content:space-between;align-items:center;gap:8px;display:flex}.exercise-card-header h2{font-size:20px}.active-sets{flex-direction:column;display:flex}.active-set-row{border-top:1px solid var(--border);align-items:center;gap:8px;display:flex}.active-set-main{font-variant-numeric:tabular-nums;text-align:left;background:0 0;border:0;flex:1;align-items:center;gap:10px;min-height:52px;padding:0;font-size:19px;display:flex}.active-set-row.is-warmup .active-set-main{color:var(--text-muted);font-size:17px}.active-set-row.is-done .set-value{color:var(--text-muted)}.complete-button{border:3px solid var(--border);background:0 0;border-radius:50%;flex:none;width:44px;height:44px}.done-mark{background:var(--accent);width:44px;height:44px;color:var(--accent-text);border-radius:50%;flex:none;place-items:center;font-size:22px;font-weight:800;display:grid}.set-editor{border:2px solid var(--accent);border-radius:var(--radius);background:var(--surface-pressed);flex-direction:column;gap:10px;margin:6px 0;padding:12px;display:flex}.set-editor.is-done{border-color:var(--border)}.set-editor-top{justify-content:space-between;align-items:center;gap:8px;display:flex}.set-editor-label{font-weight:800}.set-flags{gap:6px;display:flex}.flag{border:1px solid var(--border);background:var(--surface);border-radius:999px;min-height:40px;padding:0 12px;font-size:14px;font-weight:700}.flag.is-on{border-color:var(--text)}.flag.is-hurt{border-color:var(--danger);background:var(--danger);color:var(--accent-text)}.set-editor-actions{flex-direction:column;gap:4px;display:flex}.number-stepper{grid-template-columns:64px 1fr 64px;align-items:center;gap:8px;display:grid}.number-stepper>button{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);height:60px;font-size:30px;font-weight:700}.number-stepper>button:disabled{opacity:.4}.number-stepper-value{border-radius:var(--radius);text-align:center;font-variant-numeric:tabular-nums;background:0 0;border:2px solid #0000;width:100%;min-width:0;height:60px;font-size:24px;font-weight:800}.number-stepper-value:focus{border-color:var(--accent);background:var(--surface);outline:none}.rir{flex-direction:column;gap:6px;padding:6px 0 10px;display:flex}.rir-label{color:var(--text-muted);font-size:15px}.rir-chips{grid-template-columns:repeat(5,1fr);gap:6px;display:grid}.chip{border:1px solid var(--border);background:var(--surface);border-radius:12px;min-height:48px;font-size:18px;font-weight:700}.chip.is-selected{border-color:var(--accent);background:var(--accent);color:var(--accent-text)}.workout-footer{flex-direction:column;gap:8px;margin-top:12px;display:flex}.rest-bar{inset:auto 0 calc(env(safe-area-inset-bottom) + var(--tab-bar-height));z-index:10;height:var(--rest-bar-height);padding:0 calc(env(safe-area-inset-right) + var(--gutter)) 0 calc(env(safe-area-inset-left) + var(--gutter));border-top:1px solid var(--border);background:var(--surface);align-items:center;gap:8px;display:flex;position:fixed;overflow:hidden}.rest-bar.is-over{background:var(--accent);color:var(--accent-text)}.rest-progress{z-index:-1;background:color-mix(in srgb, var(--accent) 22%, transparent);transform-origin:0;position:absolute;inset:0}.rest-time{font-variant-numeric:tabular-nums;flex:1;font-size:22px;font-weight:800}.rest-button{background:0 0;border:1px solid;border-radius:10px;min-width:56px;min-height:44px;padding:0 8px;font-weight:700}.template-row{flex-direction:row;align-items:center;gap:8px}.template-row-main{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.reorder-buttons{gap:4px;display:flex}.reorder-buttons button{border:1px solid var(--border);background:var(--surface-pressed);border-radius:10px;width:44px;height:44px;font-size:18px}.reorder-buttons button:disabled{opacity:.35}.exercise-form{flex-direction:column;gap:14px;display:flex}.form-field{flex-direction:column;flex:1;gap:6px;min-width:0;display:flex}.form-label{color:var(--text-muted);font-size:15px;font-weight:600}.form-error{color:var(--danger);font-size:15px;font-weight:600}.form-row{gap:12px;display:flex}.text-input{width:100%;min-height:var(--tap);border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);padding:10px 14px;font-size:17px}textarea.text-input{resize:vertical}.text-input:focus{outline:2px solid var(--accent);outline-offset:1px}.chip-list{flex-wrap:wrap;gap:6px;display:flex}.chip.is-removable{align-items:center;gap:4px;min-height:40px;padding-left:12px;font-size:15px;display:flex}.chip.is-removable button{min-width:40px;min-height:40px;color:var(--text-muted);background:0 0;border:0}.toggle-row{min-height:var(--tap);align-items:center;gap:12px;display:flex}.toggle-row input{width:26px;height:26px;accent-color:var(--accent);flex:none}
