:root{--bg:#0b0f17;--surface:#151b26;--surface-2:#1d2532;--border:#2a3444;--text:#e9eef6;--muted:#8d99ab;--accent:#4ade80;--accent-ink:#052e14;--low:#f59e0b;--target:#22c55e;--high:#60a5fa;--busy:#f43f5e;--warn:#fbbf24;--radius:16px;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI,Roboto,system-ui,sans-serif}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);overscroll-behavior:none;margin:0}body{min-height:100dvh}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none}h1,h2,h3{margin:0;line-height:1.2}.app{flex-direction:column;max-width:560px;min-height:100dvh;margin:0 auto;display:flex}.page{padding:calc(var(--safe-top) + 16px) 16px calc(var(--safe-bottom) + 96px);flex-direction:column;flex:1;gap:16px;display:flex}.page-title{letter-spacing:-.02em;font-size:28px;font-weight:800}.section-title{text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:8px 0 -4px;font-size:13px;font-weight:700}.muted{color:var(--muted)}.small{font-size:13px}.block{display:block}.tabular{font-variant-numeric:tabular-nums}.row{align-items:center;gap:8px;display:flex}.row.wrap{flex-wrap:wrap}.spacer{flex:1}.stack{flex-direction:column;gap:8px;display:flex}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px}.card.tight{padding:12px 14px}.card-button{text-align:left;width:100%;display:block}.list{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;display:flex;overflow:hidden}.list-item{border:0;border-top:1px solid var(--border);text-align:left;background:0 0;align-items:center;gap:12px;width:100%;padding:14px 16px;display:flex}.list-item:first-child{border-top:0}.list-item .grow{flex:1;min-width:0}.ellipsis{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.btn{border:1px solid var(--border);background:var(--surface-2);border-radius:12px;min-height:44px;padding:10px 14px;font-weight:650}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.4}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.btn-danger{border-color:var(--busy);color:var(--busy);background:0 0}.btn-ghost{background:0 0;border-color:#0000}.btn-block{width:100%}.btn-lg{border-radius:14px;min-height:56px;font-size:18px}.btn-sm{border-radius:10px;min-height:34px;padding:6px 10px;font-size:14px}.icon-btn{border:1px solid var(--border);background:var(--surface-2);border-radius:12px;min-width:44px;min-height:44px;font-size:20px;font-weight:700;line-height:1}.workout{padding-bottom:calc(var(--safe-bottom) + 24px)}.topbar{align-items:center;gap:8px;display:flex}.topbar .title{flex:1;min-width:0}.rest-banner{border-radius:var(--radius);background:linear-gradient(135deg,#10291c,#0f1f2e);border:1px solid #1f4d33;padding:14px 16px}.rest-banner.over{background:linear-gradient(135deg,#3a2a07,#2b1d05);border-color:#7a5a12}.rest-time{letter-spacing:-.02em;font-variant-numeric:tabular-nums;font-size:44px;font-weight:800;line-height:1}.progress{background:#ffffff1a;border-radius:3px;height:6px;margin:10px 0 12px;overflow:hidden}.progress>div{background:var(--accent);height:100%;transition:width .25s linear}.rest-banner.over .progress>div{background:var(--warn)}.feedback{border-left:3px solid var(--accent);background:var(--surface);border-radius:0 12px 12px 0;padding:8px 12px}.exercise-card{flex-direction:column;gap:6px;display:flex}.kicker{letter-spacing:.1em;text-transform:uppercase;color:var(--accent);font-size:13px;font-weight:800}.exercise-name{letter-spacing:-.02em;font-size:30px;font-weight:800}.weight-button{font-variant-numeric:tabular-nums;background:0 0;border:0;align-self:flex-start;align-items:baseline;gap:10px;padding:0;font-size:34px;font-weight:750;display:inline-flex}.weight-button .edit{color:var(--muted);border:1px solid var(--border);border-radius:8px;padding:2px 8px;font-size:14px;font-weight:600}.meta{color:var(--muted);flex-wrap:wrap;gap:4px 14px;font-size:15px;display:flex}.meta b{color:var(--text);font-weight:650}.results{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.result-btn{color:#0b0f17;border:0;border-radius:18px;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-height:108px;font-weight:800;display:flex}.result-btn .sym{font-size:44px;line-height:1}.result-btn .lbl{opacity:.8;font-size:14px;font-weight:700}.result-btn:active{filter:brightness(1.1);transform:scale(.97)}.result-btn.low{background:var(--low)}.result-btn.target{background:var(--target)}.result-btn.high{background:var(--high)}.busy-row{grid-template-columns:1fr auto;gap:10px;display:grid}.btn-busy{border:2px solid var(--busy);color:var(--busy);letter-spacing:.08em;background:0 0;border-radius:14px;min-height:60px;font-size:20px;font-weight:800}.btn-more{border-radius:14px;min-width:60px;min-height:60px;font-size:24px}.chip{background:var(--surface-2);border:1px solid var(--border);color:var(--muted);border-radius:999px;padding:2px 8px;font-size:12px;font-weight:700;display:inline-block}.chip.warn{color:var(--warn);border-color:#6b5413}.chip.ok{color:var(--accent);border-color:#1f5c38}.sym-line{font-variant-numeric:tabular-nums;letter-spacing:.04em;font-weight:800}.rec-card{background:#0f2418;border:1px solid #1f5c38;border-radius:14px;flex-direction:column;gap:8px;padding:12px 14px;display:flex}.rec-card.decided{opacity:.7}.sheet-backdrop{z-index:50;background:#0000008c;justify-content:center;align-items:flex-end;animation:.15s ease-out fade;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);border:1px solid var(--border);width:100%;max-width:560px;max-height:88dvh;padding:8px 16px calc(var(--safe-bottom) + 20px);border-bottom:0;border-top-left-radius:22px;border-top-right-radius:22px;flex-direction:column;gap:10px;animation:.2s ease-out slide;display:flex;overflow-y:auto}.sheet-handle{background:var(--border);border-radius:3px;align-self:center;width:40px;height:5px;margin-bottom:4px}.sheet-title{margin-bottom:4px;font-size:20px;font-weight:750}@keyframes fade{0%{opacity:0}}@keyframes slide{0%{opacity:.6;transform:translateY(40px)}}.field{flex-direction:column;gap:6px;display:flex}.field>span{color:var(--muted);font-size:13px;font-weight:650}.input,select.input,textarea.input{background:var(--bg);border:1px solid var(--border);border-radius:12px;width:100%;min-height:46px;padding:11px 12px;font-size:17px}.input:focus{outline:2px solid var(--accent);outline-offset:-1px}.grid-2{grid-template-columns:1fr 1fr;gap:10px;display:grid}.grid-3{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.segmented{background:var(--surface-2);border:1px solid var(--border);border-radius:12px;gap:3px;padding:3px;display:flex}.segmented button{color:var(--muted);background:0 0;border:0;border-radius:9px;flex:1;padding:8px 6px;font-size:15px;font-weight:650}.segmented button.active{background:var(--bg);color:var(--text)}.toggle-row{justify-content:space-between;align-items:center;gap:12px;padding:12px 0;display:flex}.toggle-label{font-weight:600}.switch{appearance:none;background:var(--surface-2);border:1px solid var(--border);border-radius:16px;flex-shrink:0;width:52px;height:32px;transition:background .15s;position:relative}.switch:after{content:"";background:var(--text);border-radius:50%;width:24px;height:24px;transition:transform .15s;position:absolute;top:3px;left:3px}.switch:checked{background:var(--accent);border-color:var(--accent)}.switch:checked:after{background:var(--accent-ink);transform:translate(20px)}.chips{scrollbar-width:none;gap:8px;padding:2px 0 6px;display:flex;overflow-x:auto}.chips::-webkit-scrollbar{display:none}.chips button{border:1px solid var(--border);background:var(--surface-2);font-variant-numeric:tabular-nums;border-radius:10px;flex-shrink:0;min-height:42px;padding:8px 12px;font-weight:650}.chips button.active{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}.stepper{grid-template-columns:64px 1fr 64px;align-items:center;gap:10px;display:grid}.stepper .value{text-align:center;font-variant-numeric:tabular-nums;font-size:34px;font-weight:800}.stepper .icon-btn{min-height:56px;font-size:28px}.tabbar{-webkit-backdrop-filter:blur(12px);border-top:1px solid var(--border);padding-bottom:var(--safe-bottom);z-index:20;background:#0b0f17eb;justify-content:center;display:flex;position:fixed;bottom:0;left:0;right:0}.tabbar-inner{grid-template-columns:repeat(4,1fr);width:100%;max-width:560px;display:grid}.tabbar button{color:var(--muted);background:0 0;border:0;flex-direction:column;align-items:center;gap:2px;padding:10px 0 8px;font-size:11px;font-weight:650;display:flex}.tabbar button .ico{font-size:22px;line-height:1}.tabbar button.active{color:var(--accent)}.banner{background:#3b1119;border:1px solid #7f1d2d;border-radius:12px;padding:10px 12px;font-size:14px}.hint{background:var(--surface);border:1px dashed var(--border);color:var(--muted);border-radius:12px;padding:12px 14px;font-size:14px}.onboarding ol{flex-direction:column;gap:10px;margin:0;padding-left:20px;line-height:1.45;display:flex}.rule{background:#2b2206;border:1px solid #6b5413;border-radius:12px;padding:12px 14px;line-height:1.45}.set-edit{grid-template-columns:auto auto 1fr auto;align-items:center;gap:8px;display:grid}.result-toggle{grid-template-columns:repeat(3,1fr);gap:4px;display:grid}.result-toggle button{border:1px solid var(--border);background:var(--surface-2);border-radius:10px;min-height:36px;font-size:17px;font-weight:800}.result-toggle button.active{color:#0b0f17;border-color:#0000}.result-toggle button.low.active{background:var(--low)}.result-toggle button.target.active{background:var(--target)}.result-toggle button.high.active{background:var(--high)}.chart{touch-action:pan-y;-webkit-user-select:none;user-select:none;width:100%;height:auto;display:block}.chart-readout{flex-wrap:wrap;align-items:baseline;gap:2px 10px;min-height:42px;display:flex}.chart-readout b{font-size:18px}.chart-legend{color:var(--muted);flex-wrap:wrap;gap:4px 14px;font-size:12px;display:flex}.chart-legend span{align-items:center;gap:5px;display:inline-flex}.empty{text-align:center;color:var(--muted);padding:32px 16px}.empty .big{font-size:48px}
