:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#000;--surface:#0e0e10;--surface-2:#1a1a1d;--surface-3:#232327;--border:#232327;--divider:#1c1c1f;--fg:#f5f5f7;--muted:#9a9aa0;--disabled:#636368;--accent:#30d158;--accent-soft:#30d15824;--accent-fg:#000;--danger:#ff453a;--danger-soft:#ff453a24;--warning:#ffd60a;--warning-soft:#ffd60a24;--info:#0a84ff;--info-soft:#0a84ff24;--recovery:#64d2ff;--recovery-soft:#64d2ff24;--radius:16px;--radius-sm:10px;--radius-md:12px;--radius-xs:6px;--tabbar-h:64px;--safe-bottom:env(safe-area-inset-bottom,0px);font-variant-numeric:tabular-nums;background:var(--bg);color:var(--fg);-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,sans-serif;line-height:1.45}*{box-sizing:border-box}html,body{background:var(--bg);min-height:100dvh;margin:0}body{overflow-x:hidden}h1,h2,h3,h4{letter-spacing:-.015em;margin:0;font-weight:700;line-height:1.2}h1{font-size:1.9rem}h2{font-size:1.15rem}h3{font-size:1rem}p{margin:0}a{color:var(--fg);text-decoration:none}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;background:0 0;border:none;padding:0}button:disabled{cursor:default}input,textarea{border-radius:var(--radius-sm)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.layout{max-width:720px;min-height:100dvh;margin:0 auto}.layout.with-tabs{padding-bottom:calc(var(--tabbar-h) + var(--safe-bottom))}.layout.with-banner{padding-bottom:84px}.layout.with-tabs.with-banner{padding-bottom:calc(var(--tabbar-h) + var(--safe-bottom) + 76px)}.screen{flex-direction:column;gap:14px;min-height:60dvh;padding:20px 16px 32px;display:flex}.screen-header{flex-direction:column;gap:12px;padding-top:6px;display:flex}.screen-header.with-action{flex-direction:row;justify-content:space-between;align-items:flex-start}.subtitle{color:var(--muted);margin-top:4px;font-size:.88rem}.compact-header{align-items:center;gap:10px;padding-top:8px;padding-bottom:4px;display:flex}.compact-header-body{flex:1;min-width:0}.compact-header h1{text-overflow:ellipsis;white-space:nowrap;font-size:1.3rem;overflow:hidden}.header-save{color:var(--accent);padding:8px 4px;font-weight:700}.meta{color:var(--muted);font-size:.82rem}.overline{color:var(--muted);letter-spacing:.1em;text-transform:uppercase;font-size:.68rem;font-weight:600;display:block}.section-label{color:var(--muted);letter-spacing:.1em;text-transform:uppercase;justify-content:space-between;align-items:center;gap:8px;padding-top:8px;font-size:.68rem;font-weight:600;display:flex}.section-label-trailing{color:var(--disabled);letter-spacing:.02em;text-transform:none;font-size:.68rem;font-weight:500}.tone-normal{color:var(--fg)}.tone-success{color:var(--accent)}.tone-info{color:var(--info)}.tone-warning{color:var(--warning)}.tone-danger{color:var(--danger)}.tone-recovery{color:var(--recovery)}.tone-muted{color:var(--muted)}.text-danger{color:var(--danger)}.center{text-align:center}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);text-align:left;color:var(--fg);flex-direction:column;gap:12px;width:100%;padding:16px;display:flex}.card-clickable{cursor:pointer;transition:border-color .15s,background-color .15s}.card-clickable:hover{border-color:#34343a}.card-title{font-size:.95rem}.divider{background:var(--divider);height:1px;margin:0 -16px}.divider.inset{margin-left:44px}.btn{border-radius:var(--radius-md);border:1px solid #0000;justify-content:center;align-items:center;gap:8px;width:100%;min-height:46px;padding:0 18px;font-size:.92rem;font-weight:700;display:inline-flex}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}.btn.secondary{background:var(--surface-2);border-color:var(--border);color:var(--fg)}.btn.secondary.tone-success{color:var(--accent)}.btn.secondary.tone-danger{color:var(--danger)}.btn.ghost{background:0 0;width:auto;min-height:40px}.btn.ghost.primary{color:var(--accent)}.btn.ghost.danger{color:var(--danger)}.btn.danger{background:var(--danger);border-color:var(--danger);color:#fff}.btn:disabled{opacity:.42}.icon-btn{background:var(--surface-2);width:40px;height:40px;color:var(--fg);border-radius:50%;flex:none;place-items:center;display:grid}.icon-btn:hover{background:var(--surface-3)}.icon-btn.success{color:var(--accent)}.text-button{color:var(--muted);justify-content:center;align-items:center;gap:6px;padding:10px;font-size:.9rem;font-weight:600;display:inline-flex}.text-button.danger{color:var(--danger)}.chips{scrollbar-width:none;gap:7px;margin:0 -16px;padding:0 16px;display:flex;overflow-x:auto}.screen>.chips{margin:0;padding:0}.chips::-webkit-scrollbar{display:none}.chips.wrap{flex-wrap:wrap;margin:0;padding:0;overflow:visible}.chip{border:1px solid var(--border);background:var(--surface);color:var(--muted);white-space:nowrap;border-radius:999px;flex:none;padding:7px 14px;font-size:.8rem;font-weight:500}.chip.selected{background:var(--fg);border-color:var(--fg);color:var(--bg);font-weight:700}.segmented{border-radius:var(--radius-md);background:var(--surface);gap:3px;padding:3px;display:flex}.segment{min-height:32px;color:var(--muted);border-radius:9px;flex:1;font-size:.8rem;font-weight:600}.segment.active{background:var(--surface-3);color:var(--fg)}.stat-strip{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);align-items:stretch;padding:12px 4px;display:flex}.stat-strip-item{flex-direction:column;flex:1;align-items:center;gap:3px;min-width:0;padding:0 6px;display:flex}.stat-strip-item.with-divider{border-left:1px solid var(--divider)}.stat-strip-value{white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:1rem;font-weight:700;overflow:hidden}.stat-strip-label{color:var(--disabled);letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:.58rem;font-weight:600;overflow:hidden}.stat-grid{grid-template-columns:1fr 1fr;gap:8px;display:grid}.stat-tile{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;gap:4px;min-width:0;padding:12px;display:flex}.stat-tile-label{color:var(--disabled);letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;text-overflow:ellipsis;font-size:.62rem;font-weight:600;overflow:hidden}.stat-tile-value{white-space:nowrap;text-overflow:ellipsis;font-size:1.22rem;font-weight:700;overflow:hidden}.stat-tile-caption{color:var(--disabled);font-size:.7rem}.field{flex-direction:column;gap:6px;min-width:0;display:flex}.field-label{color:var(--muted);letter-spacing:.06em;text-transform:uppercase;font-size:.68rem;font-weight:600}.field input,.field textarea{background:var(--surface);border:1px solid var(--border);width:100%;color:var(--fg);resize:vertical;outline:none;padding:12px;font-size:.95rem}.field input:focus,.field textarea:focus{border-color:var(--muted)}.field input::placeholder,.field textarea::placeholder{color:var(--disabled)}.field-row{grid-template-columns:1fr 1fr;gap:10px;display:grid}.stepper{flex-direction:column;gap:6px;min-width:0;display:flex}.stepper-control{border-radius:var(--radius-sm);background:var(--surface-2);align-items:center;height:38px;display:flex}.stepper-btn{width:38px;height:38px;color:var(--fg);border-radius:var(--radius-sm);place-items:center;display:grid}.stepper-btn:disabled{color:var(--disabled)}.stepper-value{text-align:center;white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:.92rem;font-weight:700;overflow:hidden}.stepper-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.switch{background:var(--surface-2);border:1px solid var(--border);border-radius:999px;flex:none;width:46px;height:28px;transition:background-color .18s,border-color .18s;display:inline-block;position:relative}.switch>span{background:var(--disabled);border-radius:50%;width:20px;height:20px;transition:transform .18s,background-color .18s;position:absolute;top:3px;left:3px}.switch.checked{background:var(--accent);border-color:var(--accent)}.switch.checked>span{background:var(--bg);transform:translate(18px)}.switch-row{text-align:left;justify-content:space-between;align-items:center;gap:12px;padding:4px 0;display:flex}.switch-row strong{font-size:.92rem;display:block}.switch-row small{color:var(--muted);font-size:.78rem;display:block}.search{background:var(--surface);border:1px solid var(--border);height:46px;color:var(--muted);border-radius:999px;align-items:center;gap:8px;padding:0 14px;display:flex}.search input{min-width:0;color:var(--fg);background:0 0;border:none;outline:none;flex:1}.search-clear{width:26px;height:26px;color:var(--muted);place-items:center;display:grid}.list-row{text-align:left;width:100%;color:var(--fg);align-items:center;gap:12px;padding:10px 0;display:flex}.list-row-icon{background:var(--surface-2);border-radius:9px;flex:none;place-items:center;width:34px;height:34px;display:grid}.list-row-body{flex-direction:column;flex:1;min-width:0;display:flex}.list-row-title{font-size:.95rem}.list-row-subtitle{color:var(--muted);font-size:.78rem}.list-row-trailing{color:var(--muted);flex:none;align-items:center;display:flex}.pill{background:var(--surface-3);color:var(--muted);border-radius:999px;align-items:center;padding:2px 8px;font-size:.68rem;font-weight:600;display:inline-flex}.pill.tone-success{background:var(--accent-soft);color:var(--accent)}.empty-state{text-align:center;flex-direction:column;align-items:center;gap:10px;padding:34px 18px;display:flex}.empty-state-icon{background:var(--surface-2);width:58px;height:58px;color:var(--muted);border-radius:50%;place-items:center;display:grid}.empty-state h2{font-size:1.08rem}.empty-state p{color:var(--muted);max-width:300px;font-size:.86rem}.empty-state-action{margin-top:6px}.modal-backdrop{z-index:60;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);padding:16px;padding-bottom:calc(16px + var(--safe-bottom));background:#000000c2;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.modal{background:var(--surface-2);border:1px solid var(--border);border-radius:22px;flex-direction:column;width:100%;max-width:520px;max-height:88dvh;display:flex;overflow:hidden}.modal.wide{max-width:640px}.modal-header{justify-content:space-between;align-items:center;gap:10px;padding:16px 16px 10px;display:flex}.modal-header h2{font-size:1.05rem}.modal-body{flex-direction:column;gap:14px;padding:6px 16px 16px;display:flex;overflow-y:auto}.modal-footer{padding:10px 16px calc(14px + var(--safe-bottom));border-top:1px solid var(--border)}.modal-message{color:var(--muted);font-size:.9rem;line-height:1.5}.modal-actions{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.popmenu{flex:none;position:relative}.popmenu-trigger.custom{border-radius:var(--radius-sm);background:0 0;width:auto;height:auto}.popmenu-trigger.custom:hover{background:0 0}.popmenu-panel{z-index:40;background:var(--surface-2);border:1px solid var(--border);border-radius:14px;min-width:210px;padding:6px;position:absolute;top:calc(100% + 6px);box-shadow:0 16px 40px #0009}.popmenu-panel.align-right{right:0}.popmenu-panel.align-left{left:0}.popmenu-item{width:100%;color:var(--fg);text-align:left;border-radius:9px;align-items:center;gap:10px;padding:10px;font-size:.88rem;display:flex}.popmenu-item:hover{background:var(--surface-3)}.popmenu-item.danger{color:var(--danger)}.toast{left:50%;bottom:calc(20px + var(--safe-bottom));z-index:80;background:var(--surface-2);border:1px solid var(--border);border-radius:12px;justify-content:space-between;align-items:center;gap:12px;width:min(420px,100% - 32px);padding:12px 14px;font-size:.86rem;animation:.18s ease-out toast-in;display:flex;position:fixed;transform:translate(-50%);box-shadow:0 10px 32px #0009}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%)}}.toast-action{color:var(--accent);white-space:nowrap;font-weight:700}.tabbar{z-index:20;background:var(--bg);border-top:1px solid var(--divider);padding-bottom:var(--safe-bottom);justify-content:center;display:flex;position:fixed;inset:auto 0 0}.tab{max-width:180px;height:var(--tabbar-h);color:var(--disabled);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:.64rem;font-weight:500;display:flex}.tab-icon{border-radius:15px;place-items:center;width:56px;height:30px;transition:background-color .15s,color .15s;display:grid}.tab.active{color:var(--fg);font-weight:700}.tab.active .tab-icon{background:var(--surface-3);color:var(--fg)}.active-banner{left:50%;bottom:calc(8px + var(--safe-bottom));z-index:25;border-radius:var(--radius);background:var(--surface-2);border:1px solid var(--border);align-items:center;gap:10px;width:min(688px,100% - 24px);padding:10px 14px;display:flex;position:fixed;transform:translate(-50%);box-shadow:0 10px 30px #0000008c}.active-banner.with-tabs{bottom:calc(var(--tabbar-h) + var(--safe-bottom) + 8px)}.live-dot{background:var(--accent);border-radius:50%;flex:none;width:8px;height:8px;animation:1.8s ease-in-out infinite pulse}@keyframes pulse{0%,to{opacity:1}50%{opacity:.3}}.active-banner-body{flex-direction:column;flex:1;min-width:0;display:flex}.active-banner-name{text-overflow:ellipsis;white-space:nowrap;font-size:.86rem;font-weight:700;overflow:hidden}.active-banner-meta{color:var(--muted);font-size:.74rem}.active-banner-rest{color:var(--muted);flex-direction:column;align-items:flex-end;font-size:.62rem;display:flex}.active-banner-rest strong{color:var(--accent);font-size:.9rem}.rest-bar{border-radius:var(--radius);background:var(--surface);border:1px solid var(--border);margin:8px 12px 4px;padding:12px 14px}.rest-bar-main{justify-content:space-between;align-items:center;gap:10px;display:flex}.rest-bar-info{min-width:0}.rest-bar-clock{color:var(--accent);font-size:1.35rem;font-weight:700;line-height:1.15;display:block}.rest-bar-name{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;max-width:170px;font-size:.74rem;display:block;overflow:hidden}.rest-bar-actions{align-items:center;gap:6px;display:flex}.rest-chip{background:var(--surface-2);border-radius:8px;height:34px;padding:0 10px;font-size:.76rem;font-weight:600}.rest-skip{background:var(--surface-3);border-radius:8px;place-items:center;width:36px;height:36px;display:grid}.progress-track{background:var(--surface-2);border-radius:999px;height:4px;overflow:hidden}.progress-track>span{background:var(--accent);border-radius:999px;height:100%;transition:width .4s linear;display:block}.rest-progress{margin-top:10px}.week-card{gap:16px}.week-top{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.week-count{align-items:baseline;gap:6px;margin-top:2px;display:flex}.week-count strong{font-size:2.1rem;line-height:1}.week-count span{color:var(--muted);font-size:.82rem}.week-metric{text-align:right;max-width:55%}.week-metric strong{margin-top:3px;font-size:1.02rem;display:block}.week-streak{color:var(--muted);margin-top:2px;font-size:.68rem;display:block}.week-days{justify-content:space-between;display:flex}.week-day{flex-direction:column;align-items:center;gap:7px;display:flex}.week-day-label{color:var(--disabled);font-size:.62rem;font-weight:600}.week-day-label.today{color:var(--fg)}.week-day-dot{border-radius:50%;place-items:center;width:28px;height:28px;display:grid}.week-day-dot.trained{background:var(--accent)}.week-day-dot.today{background:var(--surface-2)}.week-day-dot.today.trained{background:var(--accent)}.day-pin{background:var(--muted);border-radius:50%;width:4px;height:4px}.week-last{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:.76rem;overflow:hidden}.template-card{gap:14px}.template-head-row{align-items:flex-start;gap:8px;display:flex}.template-title-btn{text-align:left;flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.template-name{text-overflow:ellipsis;white-space:nowrap;font-size:1rem;font-weight:700;overflow:hidden}.template-preview{flex-direction:column;gap:5px;display:flex}.template-preview-row{justify-content:space-between;align-items:center;gap:10px;display:flex}.template-preview-name{color:#f5f5f7d6;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;overflow:hidden}.template-preview-target{color:var(--muted);text-align:right;white-space:nowrap;font-size:.74rem}.template-more{color:var(--disabled);padding-top:2px;font-size:.7rem}.start-template{border-radius:var(--radius-md);background:var(--accent-soft);height:42px;color:var(--accent);justify-content:center;align-items:center;gap:6px;font-size:.88rem;font-weight:700;display:flex}.start-template.disabled{background:var(--surface-2);color:var(--disabled)}.history-month{flex-direction:column;gap:8px;display:flex}.history-row{flex-direction:row;align-items:center;gap:12px;padding:12px}.history-date{flex-direction:column;flex:none;align-items:center;gap:1px;width:40px;display:flex}.history-date strong{font-size:1.24rem;line-height:1}.history-body{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.history-title-line{align-items:center;gap:8px;display:flex}.history-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:.92rem;font-weight:700;overflow:hidden}.history-badge{white-space:nowrap;font-size:.78rem;font-weight:700}.history-preview{color:var(--disabled);text-overflow:ellipsis;white-space:nowrap;font-size:.7rem;overflow:hidden}.catalog-list{gap:0;padding:2px 14px}.catalog-row{align-items:center;gap:8px;display:flex}.catalog-main{text-align:left;flex:1;align-items:center;gap:12px;min-width:0;padding:10px 0;display:flex}.catalog-body{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.catalog-name-line{align-items:center;gap:8px;min-width:0;display:flex}.catalog-name{text-overflow:ellipsis;white-space:nowrap;font-size:.9rem;overflow:hidden}.catalog-name.archived{color:var(--disabled)}.archive-btn{width:38px;height:38px;color:var(--disabled);background:0 0}.archive-btn.success{color:var(--accent)}.selector-list{flex-direction:column;gap:2px;max-height:52dvh;display:flex;overflow-y:auto}.selector-row{border-radius:var(--radius-sm);text-align:left;align-items:center;gap:12px;padding:8px 4px;display:flex}.selector-row:hover{background:var(--surface-3)}.selector-create-icon{background:var(--accent-soft);width:40px;height:40px;color:var(--accent);border-radius:10px;flex:none;place-items:center;display:grid}.selector-body{flex-direction:column;flex:1;min-width:0;display:flex}.selector-name{text-overflow:ellipsis;white-space:nowrap;font-size:.9rem;overflow:hidden}.exercise-thumb{border-radius:var(--radius-md);background:var(--surface-2);flex:none;place-items:center;display:grid;overflow:hidden}.exercise-animation{width:100%;height:100%;padding:2px}.motion-arm{transform-box:view-box;transform-origin:50px 62px;animation:2.2s ease-in-out infinite alternate motion-arm}.motion-forearm{transform-box:view-box;transform-origin:38px 48px;animation:2s ease-in-out infinite alternate motion-forearm}.motion-figure{transform-box:view-box;transform-origin:50px 92px}.motion-squat .motion-figure{animation:2.4s ease-in-out infinite alternate motion-squat}.motion-hinge .motion-arm{transform-origin:56px 46px;animation:2.2s ease-in-out infinite alternate motion-hinge}.motion-pull .motion-figure{animation:2.2s ease-in-out infinite alternate motion-pull}.motion-leg-a,.motion-leg-b,.motion-arm-a,.motion-arm-b{transform-box:view-box;transform-origin:48px 54px}.motion-run .motion-leg-a{animation:.9s ease-in-out infinite alternate motion-run-a}.motion-run .motion-leg-b{animation:.9s ease-in-out infinite alternate motion-run-b}.motion-cycle .motion-figure{transform-origin:46px 60px;animation:1.1s ease-in-out infinite alternate motion-cycle}.motion-jump .motion-arm-a,.motion-jump .motion-arm-b{transform-origin:50px 34px;animation:1.6s ease-in-out infinite alternate motion-jump}.motion-stretch .motion-figure{transform-origin:48px 92px;animation:3s ease-in-out infinite alternate motion-stretch}.motion-idle .motion-figure{transform-origin:50px 92px;animation:3.2s ease-in-out infinite alternate motion-idle}@keyframes motion-arm{0%{transform:translateY(7px)}to{transform:translateY(-7px)}}@keyframes motion-forearm{0%{transform:rotate(28deg)}to{transform:rotate(-42deg)}}@keyframes motion-squat{0%{transform:translateY(0)scaleY(1)}to{transform:translateY(8px)scaleY(.92)}}@keyframes motion-hinge{0%{transform:rotate(6deg)}to{transform:rotate(-16deg)}}@keyframes motion-pull{0%{transform:translateY(7px)}to{transform:translateY(-4px)}}@keyframes motion-run-a{0%{transform:rotate(18deg)}to{transform:rotate(-26deg)}}@keyframes motion-run-b{0%{transform:rotate(-26deg)}to{transform:rotate(18deg)}}@keyframes motion-cycle{0%{transform:translateY(2px)rotate(2deg)}to{transform:translateY(-2px)rotate(-3deg)}}@keyframes motion-jump{0%{transform:rotate(0)translateY(0)}to{transform:rotate(-38deg)translateY(-4px)}}@keyframes motion-stretch{0%{transform:rotate(-3deg)}to{transform:rotate(5deg)}}@keyframes motion-idle{0%{transform:scaleY(1)}to{transform:scaleY(1.02)}}@media (prefers-reduced-motion:reduce){.exercise-animation *{animation:none!important}}.template-index{width:18px;color:var(--disabled);flex:none;font-size:.8rem;font-weight:600}.template-item-head{align-items:center;gap:10px;display:flex}.template-item-body{flex-direction:column;flex:1;min-width:0;display:flex}.template-item-name{text-overflow:ellipsis;white-space:nowrap;font-size:.9rem;font-weight:600;overflow:hidden}.active-workout{padding-bottom:24px}.workout-header{z-index:12;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--divider);background:#000000f0;position:sticky;top:0}.workout-topline{align-items:center;gap:8px;padding:10px 12px;display:flex}.workout-header .icon-btn{background:0 0}.workout-title{text-align:left;flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.workout-title strong{text-overflow:ellipsis;white-space:nowrap;font-size:.96rem;overflow:hidden}.workout-title span{font-size:.72rem}.finish-button{width:auto;min-height:38px;padding:0 16px;font-size:.82rem}.workout-progress{border-radius:0;height:2px}.workout-content{flex-direction:column;gap:12px;padding:12px 12px 0;display:flex}.exercise-card{gap:10px;padding:12px}.exercise-card-head{align-items:center;gap:10px;display:flex}.exercise-card-title{text-align:left;flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.exercise-card-name{-webkit-line-clamp:2;word-break:break-word;-webkit-box-orient:vertical;font-size:.92rem;font-weight:700;line-height:1.25;display:-webkit-box;overflow:hidden}.rest-pill{background:var(--surface-2);height:30px;color:var(--muted);white-space:nowrap;border-radius:8px;align-items:center;gap:4px;padding:0 9px;font-size:.7rem;display:inline-flex}.set-list{flex-direction:column;gap:4px;display:flex}.set-row{border-radius:var(--radius-sm);background:0 0;padding:4px;transition:background-color .15s}.set-row.completed{background:var(--accent-soft)}.set-main{align-items:flex-start;gap:8px;display:flex}.set-badge{border-radius:8px;flex:none;place-items:center;width:34px;height:34px;font-size:.82rem;font-weight:700;display:grid}.set-badge.working{background:var(--surface-2);color:var(--fg)}.set-badge.warmup{background:var(--warning-soft);color:var(--warning)}.set-badge.recovery{background:var(--recovery-soft);color:var(--recovery)}.set-badge.cooldown{background:var(--info-soft);color:var(--info)}.set-body{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.set-prev{color:var(--disabled);white-space:nowrap;text-overflow:ellipsis;font-size:.64rem;line-height:1.2;overflow:hidden}.set-fields{align-items:center;gap:5px;display:grid}.set-fields.weight_reps{grid-template-columns:1fr 1fr}.set-fields.distance_time{grid-template-columns:1fr 1fr auto}.set-fields.duration{grid-template-columns:1fr auto}.set-fields.reps_only{grid-template-columns:1fr}.set-input{background:var(--surface-2);width:100%;min-width:0;height:36px;color:var(--fg);text-align:center;border:1px solid #0000;border-radius:8px;outline:none;padding:0 8px;font-size:.88rem;font-weight:600}.set-input:focus{border-color:var(--muted)}.set-input::placeholder{color:var(--disabled);font-weight:500}.set-input.running{border-color:var(--accent);background:var(--accent-soft);color:var(--accent);justify-content:center;align-items:center;display:flex}.stopwatch{background:var(--surface-2);min-width:52px;height:36px;color:var(--accent);white-space:nowrap;border-radius:8px;justify-content:center;align-items:center;gap:3px;padding:0 6px;font-size:.62rem;font-weight:600;display:inline-flex}.stopwatch.running{background:var(--danger-soft);color:var(--danger)}.set-extra{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.pr-label{color:var(--warning);align-items:center;gap:3px;font-size:.68rem;font-weight:600;display:inline-flex}.pace-label{color:var(--info);font-size:.68rem}.quick-adjust{gap:5px;display:flex}.quick-adjust button{background:var(--surface-3);border-radius:7px;height:28px;padding:0 9px;font-size:.7rem;font-weight:600}.set-check{background:var(--surface-2);width:38px;height:36px;color:var(--disabled);border-radius:8px;flex:none;place-items:center;display:grid}.set-check.completed{background:var(--accent);color:var(--bg)}.set-actions{border-top:1px solid var(--divider);align-items:center;gap:2px;padding-top:5px;display:flex}.set-action{height:38px;color:var(--muted);border-radius:8px;flex:1;justify-content:center;align-items:center;gap:4px;font-size:.78rem;font-weight:600;display:inline-flex}.set-action:hover{background:var(--surface-2)}.action-divider{background:var(--divider);flex:none;width:1px;height:18px}.workout-footer{flex-direction:column;align-items:center;gap:6px;padding-top:4px;padding-bottom:16px;display:flex}.finish-dialog{flex-direction:column;gap:12px;display:flex}.finish-dialog .stat-strip{background:var(--surface)}.pr-banner{color:var(--warning);align-items:center;gap:8px;font-size:.88rem;font-weight:600;display:flex}.rest-options{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.rest-option{border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--border);height:42px;color:var(--muted);font-size:.82rem;font-weight:600}.rest-option.selected{background:var(--fg);border-color:var(--fg);color:var(--bg)}.quick-history{flex-direction:column;gap:12px;display:flex}.quick-history-session{border-bottom:1px solid var(--divider);flex-direction:column;gap:2px;padding-bottom:8px;font-size:.84rem;display:flex}.progress-screen{gap:12px}.header-segment{margin-top:10px}.chart-block{flex-direction:column;gap:10px;display:flex}.chart-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.chart-head h3{font-size:.9rem}.chart-latest{text-align:right;font-size:.74rem;font-weight:600}.heatmap-scroll{gap:6px;padding-bottom:2px;display:flex;overflow-x:auto}.heatmap-days{flex-direction:column;flex:none;gap:4px;padding-top:1px;display:flex}.heatmap-days span{height:13px;color:var(--disabled);font-size:.55rem;line-height:13px}.heatmap{flex:none;width:272px;height:122px}.heat-legend{color:var(--disabled);align-items:center;gap:4px;font-size:.58rem;display:flex}.heat-swatch{border-radius:2px;width:10px;height:10px}.muscle-bars{flex-direction:column;gap:8px;display:flex}.muscle-row{align-items:center;gap:8px;display:flex}.muscle-name{width:106px;color:var(--fg);text-overflow:ellipsis;white-space:nowrap;flex:none;font-size:.76rem;overflow:hidden}.muscle-track{background:var(--surface-2);border-radius:999px;flex:1;height:12px;overflow:hidden}.muscle-track>span{background:var(--accent);border-radius:999px;height:100%;display:block}.muscle-count{text-align:right;width:26px;color:var(--accent);font-size:.74rem;font-weight:700}.bar-chart,.line-chart{width:100%;height:auto;display:block;overflow:visible}.chart-axis{color:var(--disabled);justify-content:space-between;font-size:.62rem;display:flex}.chart-empty{padding:20px 0}.chart-point{cursor:pointer}.exercise-chart-head{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px;font-size:.86rem;display:flex}.exercise-picker-button{border-radius:var(--radius);background:var(--surface);border:1px solid var(--border);text-align:left;align-items:center;gap:12px;width:100%;padding:12px;display:flex}.exercise-picker-empty{border-radius:var(--radius-md);background:var(--surface-2);width:44px;height:44px;color:var(--muted);flex:none;place-items:center;display:grid}.exercise-picker-body{flex-direction:column;flex:1;min-width:0;display:flex}.exercise-picker-name{text-overflow:ellipsis;white-space:nowrap;font-size:.92rem;font-weight:600;overflow:hidden}.progress-history{gap:8px;padding:12px}.progress-history-head{align-items:center;gap:8px;display:flex}.progress-history-date{flex-direction:column;flex:1;min-width:0;display:flex}.progress-history-date strong{font-size:.84rem}.trend{align-items:center;gap:2px;font-size:.66rem;font-weight:600;display:inline-flex}.progress-history-value{white-space:nowrap;font-size:.82rem;font-weight:700}.progress-history-sets{color:var(--muted);font-size:.78rem;line-height:1.45}.history-exercise{gap:10px;padding:12px}.exercise-metric{text-align:right;flex:none}.exercise-metric strong{font-size:.84rem;display:block}.history-set-list{flex-direction:column;gap:5px;display:flex}.history-set-row{align-items:center;gap:8px;padding:2px 0;display:flex}.history-set-row .set-fields{flex:1;min-width:0}.history-set-row .set-badge{height:32px;font-size:.78rem}.history-set-summary{display:none}.session-repeat{margin-top:4px}.settings-card{gap:8px;padding:14px 16px}.settings-block{flex-direction:column;gap:5px;padding:4px 0;display:flex}.settings-block h3{font-size:.94rem}.settings-footer{color:var(--muted);flex-direction:column;align-items:center;gap:2px;padding:18px 0 6px;font-size:.74rem;display:flex}.settings-footer span:last-child{color:var(--disabled);font-size:.66rem}.json-guide{border-top:1px solid var(--divider);flex-direction:column;gap:10px;padding-top:12px;display:flex}.json-guide h4{color:var(--fg);font-size:.82rem}.rules{color:var(--muted);flex-direction:column;gap:4px;margin:0;padding-left:18px;font-size:.72rem;line-height:1.5;display:flex}.json-example{background:var(--bg);border:1px solid var(--border);color:var(--fg);white-space:pre;border-radius:8px;margin:0;padding:10px;font-family:ui-monospace,Cascadia Code,Consolas,monospace;font-size:.62rem;line-height:1.45;overflow-x:auto}.json-guide-actions{flex-direction:column;gap:6px;display:flex}.import-type{color:var(--accent);font-size:.9rem;font-weight:600}.import-counts{color:var(--muted);margin:0;padding-left:18px;font-size:.84rem;line-height:1.6}.import-modes{flex-direction:column;gap:8px;display:flex}.radio-row{border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);cursor:pointer;align-items:flex-start;gap:8px;padding:10px;font-size:.84rem;display:flex}.radio-row input{accent-color:var(--accent);margin-top:3px}.radio-row span{flex-direction:column;display:flex}.radio-row small{color:var(--muted);font-size:.72rem}.radio-row.selected{border-color:var(--muted)}.radio-row.danger strong{color:var(--danger)}@media (width<=380px){:root{font-size:15px}.screen{padding-left:12px;padding-right:12px}.rest-bar-name{max-width:120px}.muscle-name{width:92px}.finish-button{padding:0 12px}}@media (width>=640px){.modal-backdrop{align-items:center}}
