
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#edf2f7;background:#0b1220;font-size:16px}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}.container{max-width:650px;margin:auto;padding:20px 15px 120px}.top{display:flex;justify-content:space-between;align-items:center;gap:10px}.eyebrow{font-size:12px;text-transform:uppercase;color:#94a3b8;letter-spacing:1.4px;font-weight:700}h1{font-size:27px;margin:5px 0 6px;letter-spacing:-.8px}.sub{color:#9aa9bc;font-size:14px;line-height:1.45;margin:0 0 22px}.tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0 0 20px}.tab{border:1px solid #334155;background:#131f30;color:#aabbcb;padding:11px 4px;border-radius:12px;font-weight:800}.tab.active{background:#2563eb;border-color:#3b82f6;color:#fff}.panel{background:#121e2e;border:1px solid #27374b;border-radius:18px;padding:16px;margin-bottom:12px}.section{display:flex;justify-content:space-between;align-items:center;gap:10px}.section h2{font-size:20px;margin:0 0 4px}.section p{font-size:12px;color:#a6b5c7;margin:0}.pill{background:#1e293b;color:#bfdbfe;border-radius:20px;padding:7px 10px;font-size:12px;font-weight:700;white-space:nowrap}.exercise{border:1px solid #2a3a4f;background:#152438;border-radius:15px;padding:14px;margin:12px 0}.exercise h3{margin:0;font-size:16px}.meta{color:#a3b3c7;font-size:12px;margin:5px 0 11px}.sets{display:grid;gap:8px}.set{display:grid;grid-template-columns:30px 1fr 1fr 42px;align-items:end;gap:8px}.set label{display:block;font-size:11px;color:#a3b3c7;margin-bottom:4px}.setno{color:#cbd5e1;font-weight:750;padding-bottom:11px}.set input{width:100%;min-width:0;background:#0c1725;border:1px solid #35495f;color:white;border-radius:9px;padding:11px 7px;text-align:center;appearance:textfield}.set input:focus{outline:2px solid #60a5fa}.check{width:40px;height:42px;border-radius:9px;border:1px solid #3b516a;background:#1b2c42;color:#d9e8fb;font-size:20px}.check.done{background:#16a34a;border-color:#16a34a;color:white}.helper{margin:12px 0 0;color:#8ea3ba;font-size:12px}.btn{border:0;background:#2563eb;color:#fff;border-radius:12px;padding:13px 16px;font-weight:750}.btn.secondary{background:#253750;color:#dbeafe}.btn.danger{background:#733038;color:#fee2e2}.btn.outline{background:transparent;border:1px solid #3c5066}.actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}.actions .btn{flex:1}.timerwrap{position:sticky;bottom:8px;z-index:5;background:#101b2b;border:1px solid #40546a;box-shadow:0 10px 35px #0009;border-radius:18px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px}.timer{font-size:32px;font-variant-numeric:tabular-nums;font-weight:850;letter-spacing:-1.5px}.timerlabel{color:#a8bad1;font-size:11px}.timerbuttons{display:flex;gap:6px}.timerbuttons button{padding:10px;border:0;border-radius:10px;color:#fff;background:#255098;font-size:13px;font-weight:700}.timerbuttons button:last-child{background:#35465c}.rest-options{display:flex;gap:6px;flex-wrap:wrap;margin-top:11px}.rest-options button{border-radius:10px;background:#1e3046;color:#cad9e8;border:1px solid #34485c;padding:9px 12px;font-weight:700}.rest-options button.selected{background:#1d4ed8;color:white}.stat{color:#93c5fd;font-weight:750}.historycard{padding:13px;border:1px solid #34445a;border-radius:13px;margin:10px 0}.historycard h3{margin:0 0 6px;font-size:15px}.historycard p{margin:3px 0;color:#a7b8c9;font-size:12px}.empty{color:#a7b8c9;font-size:14px;line-height:1.5}.small{font-size:12px;color:#a9bbce}.hidden{display:none}.progress{height:7px;border-radius:7px;background:#273a52;overflow:hidden;margin-top:10px}.progress>div{height:100%;width:0%;background:#3b82f6;transition:width .2s}.footer{font-size:12px;color:#8494a9;line-height:1.55;margin-top:14px}.spacer{height:15px}@media(max-width:360px){.timer{font-size:26px}.timerbuttons button{padding:8px}.container{padding-left:10px;padding-right:10px}}

/* PWA refinements */
:root{color-scheme:dark}body{overscroll-behavior-y:contain}button,input{touch-action:manipulation}.container{padding-top:max(20px,env(safe-area-inset-top));padding-bottom:calc(128px + env(safe-area-inset-bottom))}.timerwrap{bottom:max(8px,env(safe-area-inset-bottom))}.tab:focus-visible,.btn:focus-visible,button:focus-visible{outline:2px solid #93c5fd;outline-offset:2px}.lastload{font-size:12px;color:#93c5fd;margin-top:8px}.offlinebar{font-size:11px;color:#a7b8c9;text-align:right;margin:0 0 8px}.offlinebar.offline{color:#fde68a}.finish-hint{font-size:12px;color:#a7b8c9;margin-top:12px}.timer.done{color:#86efac}.installhint{margin:12px 0 16px;font-size:12px;color:#bfdbfe}.historycard details{margin-top:9px}.historycard summary{padding:7px 0}.flexline{display:flex;align-items:center;justify-content:space-between;gap:8px}.headericon{width:38px;height:38px;border-radius:11px}.top{align-items:flex-start}.set .check{align-self:end}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
