:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--bg:#f4f5f7;--surface:#fff;--surface-2:#eceef1;--line:#dfe2e7;--text:#14171a;--muted:#667079;--accent:#2f7d1f;--accent-ink:#fff;--accent-soft:#e3f3dd;--danger:#c0392b;--warn:#b7791f;--radius:16px;--tabbar:62px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#101214;--surface:#1a1d21;--surface-2:#24282d;--line:#2e3339;--text:#f1f3f5;--muted:#98a2ad;--accent:#b6f03c;--accent-ink:#12160a;--accent-soft:#2a3516;--danger:#ff6b5e;--warn:#f0b84a}}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--text);overscroll-behavior-y:none;margin:0;font-size:16px;line-height:1.4}body.sheet-open{overflow:hidden}h1,h2,h3,p{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;text-align:inherit;background:0 0;border:0;padding:0}.icon{flex:none}.page{max-width:640px;padding-bottom:calc(var(--tabbar) + env(safe-area-inset-bottom) + 28px);margin:0 auto}.topbar{z-index:5;padding:calc(env(safe-area-inset-top) + 10px) 16px 10px;background:color-mix(in srgb, var(--bg) 88%, transparent);-webkit-backdrop-filter:blur(12px);align-items:center;gap:6px;display:flex;position:sticky;top:0}.topbar h1{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:22px;font-weight:700;overflow:hidden}.topbar h1.brand{letter-spacing:-.02em;font-size:26px}.topbar-actions{align-items:center;gap:4px;min-width:0;display:flex}main{flex-direction:column;gap:12px;padding:4px 16px 0;display:flex}.iconbtn{width:44px;height:44px;color:var(--text);border-radius:50%;flex:none;place-items:center;display:grid}.iconbtn:active{background:var(--surface-2)}.iconbtn.danger{color:var(--muted)}.topbar>.iconbtn:first-child{margin-left:-10px}.gym-select{border:1px solid var(--line);background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23889' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") no-repeat right 11px center;appearance:none;text-overflow:ellipsis;border-radius:19px;max-width:46vw;height:38px;padding:0 30px 0 14px;font-weight:600}.card{background:var(--surface);border-radius:var(--radius);flex-direction:column;gap:12px;padding:16px;display:flex}.card.flush{gap:0;padding:0;overflow:hidden}.card h2{font-size:17px}.section{text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:10px 4px -4px;font-size:13px;font-weight:600}.muted{color:var(--muted)}.hint{color:var(--muted);font-size:13px}.error{color:var(--danger);font-weight:600}.empty{color:var(--muted);text-align:center;padding:22px 12px}.pre{white-space:pre-wrap}.accent{color:var(--accent)}.steps{color:var(--muted);flex-direction:column;gap:6px;margin:0;padding-left:22px;display:flex}.btn{background:var(--surface);border:1px solid var(--line);min-height:48px;color:var(--text);text-align:center;border-radius:14px;justify-content:center;align-items:center;gap:8px;padding:0 18px;font-weight:600;display:inline-flex}.btn:active{transform:scale(.985)}.btn.block{width:100%;display:flex}.btn.big{min-height:56px;font-size:17px}.btn.small{min-height:38px;padding:0 12px;font-size:14px}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.btn.ghost{color:var(--muted);background:0 0;border-color:#0000}.btn.danger{color:var(--danger)}.btn:disabled{opacity:.5}.card .btn:not(.primary){background:var(--surface-2);border-color:#0000}.scan-hero{cursor:pointer;background:var(--accent);color:var(--accent-ink);border-radius:22px;align-items:center;gap:16px;padding:20px;display:flex}.scan-hero:active{transform:scale(.985)}.scan-hero-icon{background:color-mix(in srgb, var(--accent-ink) 14%, transparent);border-radius:50%;flex:none;place-items:center;width:64px;height:64px;display:grid}.scan-hero-text{flex-direction:column;gap:2px;display:flex}.scan-hero-text strong{font-size:20px}.scan-hero-text span{opacity:.8;font-size:14px}.list{margin:0;padding:0;list-style:none}.list li+li{border-top:1px solid var(--line)}.row{width:100%;min-height:56px;color:var(--text);align-items:center;gap:12px;padding:12px 16px;display:flex}.row:active{background:var(--surface-2)}.row>.icon{color:var(--muted)}.row-main{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.row-title{flex-wrap:wrap;align-items:center;gap:8px;font-weight:600;display:flex}.row-sub{color:var(--muted);font-size:14px}.row-sets{font-variant-numeric:tabular-nums;font-size:15px}.row-note{color:var(--muted);font-size:14px;font-style:italic}.thumb{object-fit:cover;background:var(--surface-2);border-radius:12px;flex:none;width:52px;height:52px}.img-placeholder{color:var(--muted);place-items:center;display:grid}.badge{background:var(--surface-2);color:var(--muted);white-space:nowrap;border-radius:10px;padding:2px 8px;font-size:12px;font-weight:600}.badge.live,.badge.high{background:var(--accent-soft);color:var(--accent)}.badge.mid{color:var(--warn)}.meter{background:var(--surface-2);border-radius:2px;height:4px;margin-top:4px;overflow:hidden}.meter span{background:var(--muted);border-radius:2px;height:100%;display:block}.meter.high span{background:var(--accent)}.meter.mid span{background:var(--warn)}.row.match.best{background:color-mix(in srgb, var(--accent-soft) 55%, transparent)}.chips{gap:8px;display:flex}.chips.wrap{flex-wrap:wrap}.chips.scroll{scrollbar-width:none;margin:0 -16px;padding:0 16px;overflow-x:auto}.chips.scroll::-webkit-scrollbar{display:none}.chip{background:var(--surface);border:1px solid var(--line);white-space:nowrap;border-radius:18px;flex:none;min-height:36px;padding:0 14px;font-size:14px;font-weight:500}.card .chip{background:var(--surface-2);border-color:#0000}.chip.active,.card .chip.active{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);font-weight:600}.searchbox{background:var(--surface);border:1px solid var(--line);height:46px;color:var(--muted);border-radius:14px;align-items:center;gap:8px;padding:0 14px;display:flex}.sheet .searchbox{background:var(--surface-2);border-color:#0000}.searchbox input{min-width:0;color:var(--text);-webkit-appearance:none;background:0 0;border:0;outline:0;flex:1;height:100%}.field{flex-direction:column;gap:6px;display:flex}.field-label{color:var(--muted);font-size:13px;font-weight:600}.field input,.field select,.field textarea,textarea.note{background:var(--surface-2);resize:none;border:1px solid #0000;border-radius:12px;outline:0;width:100%;min-height:46px;padding:10px 12px}.field input:focus,.field select:focus,.field textarea:focus,textarea.note:focus,.set-row input:focus{border-color:var(--accent)}.check{align-items:center;gap:10px;font-weight:500;display:flex}.check input{width:22px;height:22px;accent-color:var(--accent)}.checkbox{border:2px solid var(--line);border-radius:8px;flex:none;place-items:center;width:24px;height:24px;display:grid}.checkbox.on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.segmented{background:var(--surface-2);border-radius:12px;gap:2px;padding:3px;display:flex}.segmented button{min-height:40px;color:var(--muted);text-align:center;border-radius:10px;flex:1;padding:0 4px;font-size:14px;font-weight:600}.segmented button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #00000026}@media (prefers-color-scheme:dark){.segmented button.active{background:#3a4047}}.photo-strip{scrollbar-width:none;gap:10px;margin:0 -16px;padding:0 16px;display:flex;overflow-x:auto}.photo{background:var(--surface-2);border-radius:14px;flex:none;width:92px;height:92px;position:relative;overflow:hidden}.photo img,.photo .img-placeholder{object-fit:cover;width:100%;height:100%}.photo.add{color:var(--muted);border:2px dashed var(--line);cursor:pointer;background:0 0;place-items:center;display:grid}.photo-del{color:#fff;background:#0009;border-radius:50%;place-items:center;width:26px;height:26px;display:grid;position:absolute;top:4px;right:4px}.scan-preview{object-fit:cover;border-radius:var(--radius);width:100%;max-height:34vh;display:block}.scan-actions{flex-direction:column;gap:10px;margin-top:4px;display:flex}.scan-actions.large{margin-top:18vh}.status{color:var(--muted);align-items:center;gap:10px;padding:6px 4px;display:flex}.spinner{border:2.5px solid var(--line);border-top-color:var(--accent);border-radius:50%;flex:none;width:18px;height:18px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.picked-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.picked-head h2{font-size:22px}.choice-grid{flex-direction:column;gap:8px;display:flex}.btn.choice{text-align:left;justify-content:flex-start;min-height:56px;font-size:17px}section>.section{margin:14px 4px 8px}.workout-meta{color:var(--muted);justify-content:space-between;align-items:center;gap:8px;padding:0 4px;font-size:14px;display:flex}.stats{grid-template-columns:repeat(4,1fr);gap:8px;display:grid}.stats div{background:var(--surface);text-align:center;border-radius:14px;flex-direction:column;gap:2px;min-width:0;padding:10px 6px;display:flex}.stats strong{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:15px}.stats span{color:var(--muted);font-size:11px}.workout-actions{grid-template-columns:1fr 1fr;gap:10px;display:grid}.entry{gap:10px}.entry-head{align-items:flex-start;gap:8px;margin:-4px -8px 0 0;display:flex}.entry-title{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.entry-title h2{font-size:18px}.entry-title .muted{font-size:14px}.last{background:var(--surface-2);font-variant-numeric:tabular-nums;border-radius:12px;flex-direction:column;gap:2px;padding:8px 12px;font-size:14px;display:flex}.sets{flex-direction:column;gap:6px;display:flex}.set-row{grid-template-columns:40px 1fr 1fr 52px;align-items:center;gap:8px;display:grid}.sets.reps .set-row,.sets.time .set-row{grid-template-columns:40px 1fr 52px}.set-row.head{color:var(--muted);text-align:center;font-size:12px;font-weight:600}.set-row input{background:var(--surface-2);text-align:center;font-variant-numeric:tabular-nums;border:1px solid #0000;border-radius:12px;outline:0;width:100%;min-width:0;height:48px;padding:0 4px;font-size:19px;font-weight:600}.set-row input::placeholder{color:color-mix(in srgb, var(--muted) 60%, transparent);font-weight:500}.set-index{text-align:center;height:48px;color:var(--muted);background:var(--surface-2);border-radius:12px;font-weight:700}.kind-warmup .set-index{color:var(--warn)}.kind-drop .set-index{color:var(--accent)}.set-done{background:var(--surface-2);height:48px;color:var(--muted);border-radius:12px;place-items:center;display:grid}.set-row.done .set-done{background:var(--accent);color:var(--accent-ink)}.set-row.done input{background:var(--accent-soft)}textarea.note{field-sizing:content;min-height:42px;font-size:15px}.facts{grid-template-columns:auto 1fr;gap:6px 14px;margin:0;font-size:15px;display:grid}.facts dt{color:var(--muted)}.facts dd{margin:0}.sheet-backdrop{z-index:30;background:#00000080;justify-content:center;align-items:flex-end;animation:.15s fade;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);border-radius:22px 22px 0 0;flex-direction:column;width:100%;max-width:640px;max-height:88dvh;animation:.2s ease-out up;display:flex}.sheet-head{justify-content:space-between;align-items:center;padding:14px 8px 6px 20px;display:flex}.sheet-head h2{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:19px;overflow:hidden}.sheet-body{overscroll-behavior:contain;flex-direction:column;gap:12px;padding:6px 16px 16px;display:flex;overflow-y:auto}.sheet-body .list{margin:0 -16px}.sheet-foot{padding:10px 16px calc(env(safe-area-inset-bottom) + 12px);border-top:1px solid var(--line)}.sheet:not(:has(.sheet-foot)) .sheet-body{padding-bottom:calc(env(safe-area-inset-bottom) + 18px)}.sheet .section{margin:6px 4px -6px}@keyframes fade{0%{opacity:0}}@keyframes up{0%{opacity:0;transform:translateY(30px)}}.toast{left:16px;right:16px;bottom:calc(var(--tabbar) + env(safe-area-inset-bottom) + 20px);z-index:20;background:var(--text);max-width:420px;color:var(--bg);text-align:center;border-radius:14px;margin:0 auto;padding:12px 16px;font-weight:500;position:fixed}.tabbar{z-index:10;height:calc(var(--tabbar) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:color-mix(in srgb, var(--surface) 92%, transparent);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--line);grid-template-columns:repeat(5,1fr);align-items:center;display:grid;position:fixed;bottom:0;left:0;right:0}.tabbar button{height:var(--tabbar);color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:11px;font-weight:600;display:flex}.tabbar button.active{color:var(--accent)}.tab-scan{cursor:pointer;background:var(--accent);width:62px;height:62px;color:var(--accent-ink);border:4px solid var(--bg);border-radius:50%;justify-self:center;place-items:center;margin-top:-22px;display:grid;box-shadow:0 4px 14px #0000004d}.tab-scan:active{transform:scale(.95)}body.sheet-open .tabbar{display:none}@media (prefers-reduced-motion:reduce){*{animation:none!important}}
