:root{--bg:#f6f5f2;--surface:#fff;--surface-2:#efede8;--text:#1c1b19;--muted:#6d6a63;--border:#dedad2;--accent:#d9481c;--accent-text:#fff;--plyo:#2a7fbf;--weights:#b5651d;--danger:#c0302b;--switch-knob:#fff;--radius:12px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.4}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#141413;--surface:#1f1e1c;--surface-2:#2a2926;--text:#f0eee9;--muted:#a19d94;--border:#3a3834;--accent:#f0643a;--plyo:#5aa9e6;--weights:#e0954d;--danger:#ef5b55}}*{box-sizing:border-box}body{background:var(--bg);margin:0}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer;background:0 0;border:none;padding:0}button:disabled{opacity:.35;cursor:default}input,textarea{border:1px solid var(--border);background:var(--surface);border-radius:10px;width:100%;padding:10px 12px}input:focus-visible,textarea:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}h1,h2{margin:0}h1{font-size:1.35rem}h2{text-align:center;font-size:1.05rem}.page{flex-direction:column;gap:16px;max-width:640px;margin:0 auto;padding:16px 16px 48px;display:flex}.topbar{justify-content:space-between;align-items:center;gap:12px;min-height:40px;display:flex}html:has(.tab-bar){scroll-padding-bottom:calc(72px + env(safe-area-inset-bottom))}.page:has(+.tab-bar){padding-bottom:calc(96px + env(safe-area-inset-bottom))}.tab-bar{background:var(--surface);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom);z-index:5;justify-content:center;display:flex;position:fixed;bottom:0;left:0;right:0}.tab-bar a{max-width:200px;min-height:56px;color:var(--muted);flex:1;justify-content:center;align-items:center;font-weight:600;text-decoration:none;display:flex}.tab-bar a.active{color:var(--accent);box-shadow:inset 0 3px 0 var(--accent)}.empty{color:var(--muted);text-align:center;margin:24px 0}.primary,.secondary{border-radius:var(--radius);padding:12px 16px;font-weight:600}.primary{background:var(--accent);color:var(--accent-text)}.secondary{background:var(--surface-2)}.big{padding:16px;font-size:1.05rem}.link{color:var(--accent);min-height:44px;padding:0 4px;font-weight:500}.danger{color:var(--danger)}.primary.danger-fill{background:var(--danger);color:var(--accent-text)}.icon{width:44px;height:44px;color:var(--muted);border-radius:8px;flex-shrink:0;font-size:1.1rem}.icon:hover:not(:disabled){background:var(--surface-2)}.mode-toggle{background:var(--surface-2);border-radius:10px;padding:3px;display:flex}.mode-toggle button{min-height:44px;color:var(--muted);border-radius:8px;flex:1;padding:8px 12px;font-weight:500}.mode-toggle button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 2px #0000001f}.mode-toggle.small button{padding:4px 12px;font-size:.9rem}.workout-list,.entry-list,.exercise-list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.workout-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.workout-card-main{text-align:left;flex-direction:column;gap:8px;width:100%;padding:14px 16px 6px;display:flex}.workout-card-foot{justify-content:space-between;align-items:center;gap:12px;padding:0 4px 4px 16px;display:flex}.repeat-btn{min-height:44px;color:var(--accent);white-space:nowrap;border-radius:10px;padding:0 12px;font-weight:600}.repeat-btn:hover{background:var(--surface-2)}.workout-card-head{justify-content:space-between;gap:12px;display:flex}.workout-card-head span,.workout-card-stats{color:var(--muted);font-size:.9rem}.workout-card-exercises{flex-wrap:wrap;gap:6px;display:flex}.workout-card-stats{flex-wrap:wrap;column-gap:16px;display:flex}.pill{background:var(--surface-2);border-radius:999px;align-items:center;gap:6px;padding:2px 8px;font-size:.8rem;display:inline-flex}.pill:before{content:"";background:var(--muted);border-radius:50%;width:7px;height:7px}.pill.plyo:before{background:var(--plyo)}.pill.weights:before{background:var(--weights)}.workout-meta{flex-direction:column;gap:8px;display:flex}.title-input{background:0 0;border-color:#0000;padding-left:0;font-size:1.25rem;font-weight:600}.title-input:focus{border-color:var(--border);background:var(--surface);padding-left:12px}.workout-meta input[type=date]{align-self:flex-start;width:auto}.entry{background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--muted);border-radius:var(--radius);align-items:center;padding:4px 4px 4px 0;display:flex}.entry.plyo{border-left-color:var(--plyo)}.entry.weights{border-left-color:var(--weights)}.entry-main{text-align:left;flex-direction:column;flex:1;gap:2px;min-width:0;padding:10px 12px;display:flex}.entry-name{font-weight:600}.entry-sets{font-variant-numeric:tabular-nums;text-wrap:pretty}.entry-notes{color:var(--muted);font-size:.9rem}.entry-actions{display:flex}.field{border:none;flex-direction:column;gap:6px;margin:0;padding:0;display:flex}.field>span,.field>legend{color:var(--muted);margin-bottom:6px;padding:0;font-size:.85rem;font-weight:500}.sheet-backdrop,.dialog-backdrop{left:0;right:0;top:var(--vv-top,0px);height:var(--vv-height,100%);position:fixed}.sheet-backdrop{z-index:10;background:#00000073;justify-content:center;align-items:flex-end;display:flex}.sheet{background:var(--bg);width:100%;max-width:640px;max-height:min(92dvh, calc(var(--vv-height,100dvh) - 12px));border-radius:18px 18px 0 0;flex-direction:column;display:flex;overflow:hidden}@media (width>=700px){.sheet-backdrop{align-items:center}.sheet{max-height:min(85dvh, calc(var(--vv-height,100dvh) - 24px));border-radius:18px}}.sheet-header{border-bottom:1px solid var(--border);grid-template-columns:1fr auto 1fr;align-items:center;padding:8px 16px;display:grid}.sheet-header>:first-child{justify-self:start}.sheet-header>:last-child{justify-self:end}.sheet-body{overscroll-behavior:contain;flex-direction:column;gap:16px;padding:16px;display:flex;overflow-y:auto}.category-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.category-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);text-align:left;border-top:5px solid;flex-direction:column;gap:6px;padding:24px 16px;display:flex}.category-card strong{font-size:1.3rem}.category-card span{color:var(--muted);font-size:.9rem}.category-card.plyo{border-top-color:var(--plyo)}.category-card.weights{border-top-color:var(--weights)}.exercise-list{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);gap:0;overflow:hidden}.exercise-list li+li{border-top:1px solid var(--border)}.exercise-list li{align-items:stretch;display:flex}.exercise-list .exercise-pick{text-align:left;flex-direction:column;flex:1;justify-content:center;align-items:flex-start;gap:1px;min-width:0;min-height:52px;padding:8px 16px;display:flex}.exercise-list .exercise-repeat{background:var(--surface-2);max-width:50%;min-height:44px;color:var(--accent);white-space:nowrap;text-overflow:ellipsis;border-radius:8px;flex:0 auto;margin:4px 4px 4px 0;padding:0 10px;font-size:.85rem;font-weight:600;overflow:hidden}.exercise-list .exercise-pick:hover{background:var(--surface-2)}.exercise-list small{color:var(--muted);white-space:nowrap}.exercise-list .add-custom{color:var(--accent);font-weight:500}.tag{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);border:1px solid var(--border);border-radius:4px;margin-left:8px;padding:1px 4px;font-size:.7rem}.form .primary{padding:14px}.chips{flex-wrap:wrap;gap:8px;display:flex}.chip{background:var(--surface);border:1px solid var(--border);cursor:pointer;border-radius:999px;align-items:center;gap:8px;min-height:44px;padding:8px 12px;display:inline-flex}.chip input{width:auto;accent-color:var(--accent);margin:0}.last-time{background:var(--surface-2);border-radius:10px;flex-direction:column;gap:2px;padding:10px 12px;font-size:.92rem;display:flex}.last-time small{color:var(--muted)}.config-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;display:grid}.summary-preview{text-align:center;font-variant-numeric:tabular-nums;font-weight:600}.stepper{flex-direction:column;gap:6px;display:flex}.stepper-label{color:var(--muted);font-size:.85rem;font-weight:500}.stepper-row{background:var(--surface);border:1px solid var(--border);border-radius:10px;align-items:stretch;display:flex;overflow:hidden}.stepper-row>button{width:48px;color:var(--accent);flex-shrink:0;font-size:1.4rem}.stepper-row>button:active{background:var(--surface-2)}.stepper-input{border-left:1px solid var(--border);border-right:1px solid var(--border);flex:1;justify-content:center;align-items:center;min-width:0;display:flex}.stepper-input input{text-align:center;font-variant-numeric:tabular-nums;background:0 0;border:none;min-width:0;padding:10px 4px;font-size:1.25rem;font-weight:600}.stepper-input .suffix{color:var(--muted);padding-right:8px;font-size:.85rem}.stepper.compact .stepper-row{min-height:46px}.stepper.compact .stepper-row>button{width:36px;font-size:1.1rem}.stepper.compact .stepper-input input{padding:8px 2px;font-size:1rem}.set-table{flex-direction:column;gap:8px;display:flex}.set-row{align-items:center;gap:8px;display:grid}.set-row.head{color:var(--muted);font-size:.8rem;font-weight:500}.set-num{text-align:center;color:var(--muted);font-weight:600}.plyo-options{flex-direction:column;gap:10px;display:flex}.save-row{gap:10px;display:flex}.save-row>button{flex:1;min-height:52px}.library-section{flex-direction:column;gap:8px;display:flex}.section-title{text-transform:uppercase;letter-spacing:.05em;color:var(--muted);text-align:left;align-items:center;gap:8px;font-size:.85rem;display:flex}.section-title:before{content:"";background:var(--muted);border-radius:50%;width:8px;height:8px}.section-title.plyo:before{background:var(--plyo)}.section-title.weights:before{background:var(--weights)}.library-list{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin:0;padding:0;list-style:none;overflow:hidden}.library-list li{align-items:center;gap:4px;min-height:56px;padding:4px 4px 4px 16px;display:flex}.library-list li+li{border-top:1px solid var(--border)}.library-name{overflow-wrap:anywhere;flex-direction:column;flex:1;min-width:0;display:flex}.library-name small{color:var(--muted)}.row-action{min-height:44px;color:var(--accent);border-radius:8px;flex-shrink:0;padding:0 10px;font-weight:500}.row-action.subtle{color:var(--muted)}.row-action:hover{background:var(--surface-2)}.dialog-backdrop{z-index:20;background:#00000073;justify-content:center;align-items:center;padding:16px;display:flex}.dialog{background:var(--bg);border-radius:16px;flex-direction:column;gap:12px;width:100%;max-width:400px;padding:20px;display:flex;box-shadow:0 10px 40px #00000040}.dialog h2{text-align:left}.dialog p{overflow-wrap:anywhere;margin:0}.dialog .form{flex-direction:column;gap:12px;display:flex}.dialog-actions{gap:10px;margin-top:4px;display:flex}.dialog-actions>button{flex:1;min-height:48px}.field-error{color:var(--danger);font-size:.9rem}.settings-heading{text-align:left;margin-top:8px;font-size:1.05rem}.hint{color:var(--muted);margin:0;font-size:.92rem}.title-rename{border-radius:8px;align-items:center;gap:6px;max-width:100%;min-height:44px;padding:0 8px;font-weight:700;display:inline-flex}.title-rename:hover{background:var(--surface-2)}.title-rename-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.title-rename-icon{color:var(--accent);font-weight:400}.sheet-header h2{min-width:0}.library-list li:has(>.library-link){padding:0}.library-link{width:100%;min-height:56px;color:inherit;text-align:left;flex:1;align-items:center;gap:8px;padding:8px 12px 8px 16px;text-decoration:none;display:flex}.library-link:hover{background:var(--surface-2)}.chevron{color:var(--muted);flex-shrink:0;font-size:1.5rem;line-height:1}.back-link{align-items:center;text-decoration:none;display:inline-flex}.detail-head{flex-direction:column;gap:6px;display:flex}.detail-head h1{min-width:0}.detail-title{margin-left:0;padding:0 8px 0 0;font-size:1.5rem}.detail-meta{color:var(--muted);flex-wrap:wrap;align-items:center;gap:8px;margin:0;font-size:.92rem;display:flex}.detail-meta .tag{margin-left:0}.notice{background:var(--surface-2);border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:4px 4px 4px 14px;display:flex}.history-title{color:var(--muted)}.library-name .history-sets{color:var(--text);font-variant-numeric:tabular-nums}.hide-btn{color:var(--muted);min-height:48px;margin-top:8px}.tag.sl{color:var(--plyo);vertical-align:1px;border-color:currentColor;font-weight:700}.pill .tag.sl{margin-left:2px;padding:0 3px}.switch-row{background:var(--surface);border:1px solid var(--border);cursor:pointer;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;min-height:52px;padding:4px 14px;display:flex}.switch-text{flex-direction:column;font-weight:500;display:flex}.switch-text small{color:var(--muted);font-weight:400}.switch-row input[role=switch]{appearance:none;background:var(--border);cursor:pointer;border:none;border-radius:999px;flex-shrink:0;width:52px;height:32px;margin:0;padding:0;transition:background .15s;position:relative}.switch-row input[role=switch]:after{content:"";background:var(--switch-knob);border-radius:50%;width:26px;height:26px;transition:transform .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0000004d}.switch-row input[role=switch]:checked{background:var(--accent)}.switch-row input[role=switch]:checked:after{transform:translate(20px)}.picker{flex-direction:column;flex:1;min-height:0;display:flex}.picker-search{flex-shrink:0;padding:12px 16px 8px}.picker-results{flex:1;min-height:0;padding-top:4px}.dialog{max-height:100%;overflow-y:auto}.sheet-backdrop:after,.dialog-backdrop:after{content:"";height:100vh;position:absolute;top:100%;left:0;right:0}.sheet-backdrop:after{background:var(--bg)}.dialog-backdrop:after{background:#00000073}@media (width>=700px){.sheet-backdrop:after{background:#00000073}}.signin{max-width:420px;padding-top:calc(40px + env(safe-area-inset-top));gap:24px}.signin-head{flex-direction:column;gap:6px;display:flex}.signin-form{flex-direction:column;gap:14px;display:flex}.signin-form input{min-height:48px}.signin-sent{overflow-wrap:anywhere;margin:0}.code-input{letter-spacing:.3em;text-indent:.3em;text-align:center;font-variant-numeric:tabular-nums;font-size:1.5rem}.signin-links{flex-wrap:wrap;justify-content:space-between;gap:4px;display:flex}.account-email{overflow-wrap:anywhere}.sync-indicator{color:var(--muted);text-align:right;align-items:center;gap:6px;font-size:.85rem;display:inline-flex}.sync-indicator:before{content:"";background:var(--muted);border-radius:50%;flex-shrink:0;width:8px;height:8px}.sync-indicator.syncing:before,.sync-indicator.pending:before{background:var(--plyo)}.sync-indicator.offline:before{background:var(--weights)}.sync-indicator.error,.sync-indicator.blocked{color:var(--danger)}.sync-indicator.error:before,.sync-indicator.blocked:before{background:var(--danger)}.link.subtle-link{color:var(--muted);align-self:center;font-size:.9rem;font-weight:400}.notice.error{color:var(--danger)}.band-dot{width:12px;height:12px;box-shadow:0 0 0 1px var(--muted);vertical-align:-1px;border-radius:50%;flex-shrink:0;display:inline-block}.band-dot.big{width:26px;height:26px}.band-tag-name{white-space:nowrap}.band-tag-name .band-dot{margin-right:5px}.chip.band-choice{font-weight:500}.chip.active{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:var(--surface-2);font-weight:600}.band-name>span{align-items:center;gap:10px;display:inline-flex}.swatches{flex-wrap:wrap;gap:4px;display:flex}.swatch{border-radius:50%;justify-content:center;align-items:center;width:44px;height:44px;display:inline-flex}.swatch.active{box-shadow:inset 0 0 0 2px var(--accent)}.update-notice{bottom:calc(72px + env(safe-area-inset-bottom));background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);z-index:15;align-items:center;gap:4px;width:min(100% - 32px,420px);padding:4px 4px 4px 16px;display:flex;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 6px 24px #00000026}.update-notice>span{flex:1;font-weight:500}
