:root{--bg: #0e0f12;--surface: #17191e;--surface-2: #20232a;--line: #2b2f38;--text: #f2f3f5;--muted: #8b919c;--accent: #c6f432;--accent-ink: #12160a;--accent-soft: rgba(198, 244, 50, .12);--danger: #ff5d5d;--danger-soft: rgba(255, 93, 93, .12);--warm: #ffb547;--drop: #6aa8ff;--done: rgba(198, 244, 50, .1);--radius: 14px;--tabbar-h: 64px;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0}body{background:var(--bg);color:var(--text);font:15px/1.4 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-tap-highlight-color:transparent}button,input,select{font:inherit;color:inherit}h1{font-size:28px;margin:8px 0 4px;letter-spacing:-.02em}h2{font-size:18px;margin:0}h3{font-size:16px;margin:0 0 6px}.muted{color:var(--muted)}.small{font-size:13px}.center{text-align:center}.grow{flex:1;min-width:0}.clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.clamp1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.contents{display:contents}.app{min-height:100vh}.content{max-width:720px;margin:0 auto;padding:max(12px,env(safe-area-inset-top)) 16px calc(var(--tabbar-h) + 96px + env(safe-area-inset-bottom))}.stack{display:flex;flex-direction:column;gap:12px}.grid2{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.empty{color:var(--muted);text-align:center;padding:24px 8px;margin:0}.btn{border:0;border-radius:10px;padding:10px 14px;cursor:pointer;background:var(--surface-2);font-weight:600;transition:filter .15s,transform .05s}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.4;cursor:default}.btn.block{width:100%}.btn.big{padding:16px;font-size:16px}.btn.primary{background:var(--accent);color:var(--accent-ink)}.btn.primary-soft{background:var(--accent-soft);color:var(--accent)}.btn.danger-soft{background:var(--danger-soft);color:var(--danger)}.btn.ghost{background:transparent;color:var(--accent);padding:8px 10px}.btn.ghost.muted{color:var(--muted)}.btn.icon{background:transparent;padding:6px 9px;min-width:34px;color:var(--muted)}.btn.icon.danger{color:var(--danger)}.btn:hover:not(:disabled){filter:brightness(1.12)}.card{background:var(--surface);border-radius:var(--radius);padding:14px;border:1px solid var(--line)}button.card{text-align:left;width:100%;cursor:pointer}input:not([type]),input[type=search],select,.field input{background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:10px 12px;width:100%;outline:none}input:focus,select:focus{border-color:var(--accent)}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}.field>span{color:var(--muted);font-size:13px}.field.inline{flex-direction:row;align-items:center;justify-content:space-between;margin:0}.field.inline select{width:auto}.seg{display:inline-flex;background:var(--surface-2);border-radius:10px;padding:3px}.seg button{border:0;background:transparent;padding:6px 16px;border-radius:8px;cursor:pointer;font-weight:600;color:var(--muted)}.seg button.on{background:var(--accent);color:var(--accent-ink)}.filters{display:flex;flex-direction:column;gap:10px}.chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}.chips::-webkit-scrollbar{display:none}.chip{border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:999px;padding:6px 12px;white-space:nowrap;cursor:pointer;font-size:13px;font-weight:600}.chip.on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.ex-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.ex-row{display:flex;align-items:center;gap:12px;width:100%;padding:10px 6px;background:none;border:0;border-bottom:1px solid var(--line);text-align:left;cursor:pointer}.ex-row.on{background:var(--accent-soft)}.ex-avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;flex:none;background:var(--surface-2);font-weight:700;color:var(--accent)}.ex-text{display:flex;flex-direction:column;flex:1;min-width:0}.pick-num,.count{min-width:26px;height:26px;border-radius:13px;display:grid;place-items:center;padding:0 6px;background:var(--accent);color:var(--accent-ink);font-weight:700;font-size:13px}.count{background:var(--surface-2);color:var(--muted)}.active{display:flex;flex-direction:column;gap:12px}.active-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:5;background:var(--bg);padding:8px 0}.title-input{background:transparent!important;border:0!important;padding:0!important;font-size:22px;font-weight:700}.ex-card{padding:12px 10px}.ex-card-head{display:flex;align-items:center;justify-content:space-between;gap:6px}.ex-card-head h3{color:var(--accent);margin:0;padding-left:4px}.row-actions{display:flex;flex:none}.note-input{background:transparent!important;border:0!important;padding:4px!important;font-size:13px;color:var(--muted)}.set-grid{display:grid;grid-template-columns:38px 1fr 72px 60px 42px;gap:6px;align-items:center;padding:3px 2px}.set-head{color:var(--muted);font-size:12px;font-weight:600;text-align:center}.set-row{border-radius:8px;transition:background .2s}.set-row.done{background:var(--done)}.set-num{background:var(--surface-2);border:0;border-radius:8px;height:34px;font-weight:700;cursor:pointer}.t-warmup{color:var(--warm)}.t-drop{color:var(--drop)}.t-failure{color:var(--danger)}.prev{background:none;border:0;color:var(--muted);font-size:13px;cursor:pointer;text-align:center;padding:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.prev:disabled{cursor:default}input.num{text-align:center;padding:7px 4px!important;font-weight:600;height:34px}.set-row.done input.num{background:transparent;border-color:transparent}.check{height:34px;border:0;border-radius:8px;background:var(--surface-2);color:var(--muted);font-weight:800;cursor:pointer}.check.on{background:var(--accent);color:var(--accent-ink)}.ex-card-foot{display:flex;justify-content:space-between;margin-top:6px}.rest-bar{position:fixed;left:50%;transform:translate(-50%);bottom:calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom));width:min(688px,calc(100% - 32px));background:var(--surface-2);border:1px solid var(--line);border-radius:16px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;overflow:hidden;z-index:20;box-shadow:0 10px 30px #00000080}.rest-progress{position:absolute;left:0;top:0;bottom:0;background:var(--accent-soft);transition:width .5s linear;z-index:-1}.rest-bar .btn.icon{color:var(--text);background:var(--surface)}.rest-time{display:flex;flex-direction:column;align-items:center;line-height:1.1}.rest-time strong{font-size:22px;font-variant-numeric:tabular-nums}.rest-time small{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em}.resume-bar{display:flex;justify-content:space-between;align-items:center;width:100%;border:0;cursor:pointer;background:var(--accent);color:var(--accent-ink);border-radius:12px;padding:12px 14px;margin-bottom:12px}.routine{display:flex;flex-direction:column;gap:6px}.routine-head{display:flex;justify-content:space-between;align-items:center}.routine-head h3{margin:0}.routine-list{list-style:none;padding:0;margin:0 0 12px;display:flex;flex-direction:column;gap:6px}.routine-item{display:flex;align-items:center;gap:4px;background:var(--surface-2);border-radius:10px;padding:6px 6px 6px 12px}.sets-count{font-size:13px;color:var(--muted);min-width:48px;text-align:center}.month{margin-top:8px}.workout-card{display:flex;flex-direction:column;gap:8px}.wc-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.wc-head h3{margin:0}.wc-stats{display:flex;gap:14px;flex-wrap:wrap}.pr-badge{color:var(--accent)}.wc-table{display:grid;grid-template-columns:1fr auto;gap:4px 12px;font-size:14px}.set-list{list-style:none;padding:0;margin:6px 0 0;display:flex;flex-direction:column;gap:6px}.set-tag{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:6px;background:var(--surface-2);font-size:12px;font-weight:700;margin-right:10px}.stats2{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}.stats2>div,.stats3>div{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:12px;display:flex;flex-direction:column;gap:2px}.stats2 small,.stats3 small{color:var(--muted);font-size:12px}.stats2 strong{font-size:20px}.stats3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.stats3>div{align-items:center;text-align:center}.stats3 strong{font-size:17px}.summary-hero{text-align:center;padding:8px 0}.summary-hero h2{font-size:24px}.summary-hero p{margin:4px 0 0}.trophy{font-size:56px}.pr-card{border-color:var(--accent)}.pr-card ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px}.chart{width:100%;height:auto;display:block;margin-top:8px}.chart-line{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}.chart-area{fill:var(--accent-soft)}.chart-dot{fill:var(--bg);stroke:var(--accent);stroke-width:2}.chart-bar{fill:var(--accent)}.chart-label{fill:var(--muted);font-size:11px}.chart-label.strong{fill:var(--text);font-weight:700}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;z-index:50;display:flex;align-items:flex-end;justify-content:center;animation:fade .15s ease-out}.modal{background:var(--bg);width:100%;max-width:720px;max-height:94vh;border-radius:20px 20px 0 0;display:flex;flex-direction:column;animation:up .2s ease-out;border:1px solid var(--line);border-bottom:0}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:10px 8px;border-bottom:1px solid var(--line)}.modal-head h2{font-size:17px;text-align:center;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.modal-head .btn{color:var(--muted);font-size:18px}.modal-body{padding:14px 16px;overflow-y:auto;display:flex;flex-direction:column;gap:12px}.modal-foot{padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}@media (min-width: 760px){.modal-backdrop{align-items:center}.modal{border-radius:20px;border-bottom:1px solid var(--line);max-height:86vh}}@keyframes fade{0%{opacity:0}}@keyframes up{0%{transform:translateY(40px);opacity:0}}.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:30;height:calc(var(--tabbar-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#0e0f12eb;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--line);display:flex;justify-content:center}.tab{flex:1;max-width:160px;background:none;border:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--muted);font-size:11px;font-weight:600;cursor:pointer}.tab-icon{font-size:20px;line-height:1;filter:grayscale(1);opacity:.8}.tab.on{color:var(--accent)}.tab.on .tab-icon{filter:none;opacity:1}.tab-main .tab-icon{width:34px;height:26px;border-radius:9px;display:grid;place-items:center;background:var(--surface-2);font-weight:800;filter:none}.tab-main.on .tab-icon{background:var(--accent);color:var(--accent-ink)}@media (max-width: 380px){.set-grid{grid-template-columns:34px 1fr 62px 50px 38px;gap:4px}.prev{font-size:12px}}.chips.wrap{flex-wrap:wrap;overflow:visible;padding:0}.tag{font-size:12px;font-weight:600;padding:3px 9px;border-radius:999px;background:var(--accent-soft);color:var(--accent)}.grid2.tight{grid-template-columns:1fr 1fr}.grid2.tight .field{margin:0}.hint{background:#ffb5471a;color:var(--warm);border-radius:10px;padding:8px 10px;margin:0}.goal-numbers{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:8px;text-align:center}.goal-numbers>div{display:flex;flex-direction:column}.goal-numbers small{color:var(--muted);font-size:12px}.goal-numbers strong{font-size:17px}.goal-current strong{font-size:26px;color:var(--accent)}.progress{height:10px;background:var(--surface-2);border-radius:999px;overflow:hidden}.progress-fill{height:100%;background:var(--accent);border-radius:999px;transition:width .4s}.goal-meta{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.goal-status{border-radius:10px;padding:8px 12px;font-weight:600}.goal-status.ok{background:var(--accent-soft);color:var(--accent)}.goal-status.warn{background:#ffb5471f;color:var(--warm)}.goal-status.bad{background:var(--danger-soft);color:var(--danger)}.weight-entry{display:flex;align-items:baseline;justify-content:center;gap:8px;padding:8px 0}.weight-entry input.num{font-size:40px;height:64px;width:160px;font-weight:700}.weight-entry span{font-size:20px;color:var(--muted)}.weigh-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.weigh-list li{display:flex;align-items:center;gap:10px;padding:6px 0;border-bottom:1px solid var(--line)}.down{color:var(--accent)}.up{color:var(--warm)}.chart-grid{stroke:var(--line);stroke-width:1}.chart-goal{stroke:var(--muted);stroke-width:1.5;stroke-dasharray:5 4}.chart-goal-dot{fill:var(--bg);stroke:var(--muted);stroke-width:2}.chart-today{stroke:var(--warm);stroke-width:1;stroke-dasharray:2 3;opacity:.7}.muscle-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}.muscle-tile{text-align:left;border:1px solid var(--line);background:var(--surface-2);border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:6px;cursor:pointer}.mt-head{display:flex;justify-content:space-between;align-items:center}.mt-icon{font-weight:800}.mt-bar{height:6px;border-radius:999px;background:var(--bg);overflow:hidden}.mt-bar>div{height:100%;border-radius:999px;background:currentColor}.mt-foot{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);gap:4px}.muscle-tile.done{color:var(--accent);border-color:#c6f43259}.muscle-tile.partial{color:var(--warm)}.muscle-tile.missing{color:var(--danger);border-style:dashed}.muscle-tile strong{color:var(--text)}.missed{display:flex;flex-direction:column;gap:10px;background:var(--danger-soft);border-radius:12px;padding:12px}.tab{max-width:130px}.body-map{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-width:360px;margin:0 auto;width:100%}.body-fig{margin:0;text-align:center}.body-fig svg{width:100%;height:auto;display:block}.body-fig figcaption{color:var(--muted);font-size:12px;margin-top:2px}.bm-skin{fill:var(--surface-2)}.bm-muscle{cursor:pointer;stroke:var(--bg);stroke-width:1.2;transition:opacity .15s}.bm-muscle:hover{opacity:.8}.bm-muscle.fresh{fill:#7fae1f}.bm-muscle.mid{fill:#d9932c}.bm-muscle.tired{fill:#d24a4a}.legend{display:flex;justify-content:center;gap:14px;color:var(--muted);flex-wrap:wrap}.legend span{display:inline-flex;align-items:center;gap:5px}.dot{width:10px;height:10px;border-radius:50%;display:inline-block}.dot.fresh{background:#7fae1f}.dot.mid{background:#d9932c}.dot.tired{background:#d24a4a}.rec.fresh{color:var(--accent)}.rec.mid{color:var(--warm)}.rec.tired{color:var(--danger)}.suggest{border-color:#c6f43259;background:linear-gradient(160deg,rgba(198,244,50,.08),var(--surface) 55%)}.suggest-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.suggest-list li{display:flex;gap:8px;padding:7px 0;border-bottom:1px solid var(--line)}.suggest-list li:last-child{border-bottom:0}.measure-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.measure-grid>div{background:var(--surface-2);border-radius:10px;padding:8px 10px;display:flex;flex-direction:column}.measure-grid small{color:var(--muted);font-size:11px}.overload{font-size:12.5px;padding:6px 8px;margin:6px 2px 0;border-radius:8px;background:var(--surface-2)}.overload.weight{background:var(--accent-soft)}.overload.weight strong{color:var(--accent)}.overload.reps strong{color:var(--drop)}.overload.new{color:var(--muted)}.superset{border-left:3px solid var(--drop)}.ss-cont{border-bottom-left-radius:0;border-bottom-right-radius:0;margin-bottom:-12px;border-bottom-style:dashed}.ss-mid{border-top-left-radius:0;border-top-right-radius:0}.ss-label{font-size:12px;font-weight:700;color:var(--drop);margin:-2px 2px 6px}.ex-card-foot{align-items:center}.ex-card-head .btn.icon{font-size:20px;color:var(--text)}.tips ol{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:4px;font-size:14px}.menu-list{display:flex;flex-direction:column;gap:8px}.menu-item{display:flex;gap:12px;align-items:flex-start;text-align:left;width:100%;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:12px;cursor:pointer;font-weight:600}.menu-item.static{cursor:default}.menu-item:disabled{opacity:.45;cursor:default}.menu-item>span:first-child{font-size:20px;line-height:1.2}.menu-item small{display:block;font-weight:400;margin-top:2px}.menu-item .chips{flex-wrap:wrap}.barbell{display:flex;align-items:center;justify-content:center;gap:2px;min-height:96px;overflow-x:auto}.bar-mid{height:8px;width:70px;background:#9aa0a8;border-radius:2px}.bar-end{height:6px;width:18px;background:#9aa0a8;border-radius:2px}.plate{width:11px;border-radius:3px;flex:none}.p-red{background:#d24a4a}.p-blue{background:#3f7fd8}.p-yellow{background:#e0bc2c}.p-green{background:#3fa45b}.p-white{background:#e8e8e8}.p-grey{background:#6b717b}.cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.cal-head .btn.icon{font-size:22px;color:var(--text)}.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center}.cal-dow{color:var(--muted);font-size:11px;font-weight:600}.cal-day{aspect-ratio:1;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:13px;display:grid;place-items:center;max-width:40px;margin:0 auto;width:100%}.cal-day.has{background:var(--accent);color:var(--accent-ink);font-weight:700;cursor:pointer}.cal-day.today{box-shadow:inset 0 0 0 2px var(--text);color:var(--text)}.cal-day.has.today{color:var(--accent-ink)}.records{display:grid;grid-template-columns:auto 1fr auto;gap:6px 14px;align-items:baseline}
