:root{--bg: #f5f6f8;--surface: #ffffff;--surface-2: #eceef2;--text: #161a22;--muted: #5d6573;--accent: #e8590c;--accent-text: #ffffff;--accent-soft: #fde5d6;--ok: #2b8a3e;--warn: #c92a2a;--line: #d8dce3;--fig-near: #1f2633;--fig-far: #9aa3b2;--prop: #b7a58a;--kb: #3b4252;--band: #2f9e44;color-scheme:light}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg: #11151c;--surface: #1a2029;--surface-2: #232b36;--text: #eef1f5;--muted: #9aa3b2;--accent: #ff7a2f;--accent-text: #11151c;--accent-soft: #3d2618;--ok: #51cf66;--warn: #ff6b6b;--line: #2e3744;--fig-near: #eef1f5;--fig-far: #6b7585;--prop: #8a7a62;--kb: #c7ced9;--band: #51cf66;color-scheme:dark}}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-tap-highlight-color:transparent}.figure{width:100%;height:100%;display:block}.figure .limb polyline,.figure .limb line{fill:none;stroke-width:7;stroke-linecap:round;stroke-linejoin:round}.figure .near polyline,.figure .near line{stroke:var(--fig-near)}.figure .far polyline,.figure .far line{stroke:var(--fig-far)}.figure .head{fill:var(--fig-near)}.figure .ground{stroke:var(--line);stroke-width:2}.figure .prop-thick,.figure .prop-thin{stroke:var(--prop);stroke-linecap:round}.figure .prop-thick{stroke-width:5}.figure .prop-thin{stroke-width:3}.figure .prop-fill{fill:var(--prop);opacity:.35}.figure .kettlebell circle{fill:var(--kb)}.figure .kettlebell path{fill:none;stroke:var(--kb);stroke-width:3}.figure .band{stroke:var(--band);stroke-width:2.5}.gallery{display:flex;flex-wrap:wrap;gap:12px 28px;padding:16px}.gallery-row{display:flex;flex-wrap:wrap;gap:8px}.gallery figure{margin:0;width:180px;height:200px;background:var(--surface);border-radius:8px}.gallery figcaption{text-align:center;font-size:12px;color:var(--muted)}button{font:inherit;color:inherit}.app{min-height:100dvh;display:flex;flex-direction:column}.content{flex:1;padding-bottom:calc(76px + env(safe-area-inset-bottom))}.screen{max-width:640px;margin:0 auto;padding:16px}.screen-head{padding:8px 4px 12px}.screen-head h1{margin:0;font-size:28px}.eyebrow{margin:0 0 2px;font-size:13px;font-weight:600;letter-spacing:.02em;color:var(--muted)}h2,h3,h4{margin:0 0 8px}p{line-height:1.45}.muted{color:var(--muted)}.center{text-align:center}.hint{color:var(--muted);font-size:14px;padding:0 4px}.note{font-size:14px;color:var(--ok)}.card{background:var(--surface);border-radius:16px;padding:16px;margin-bottom:12px;border:1px solid var(--line)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border-radius:12px;border:1px solid var(--line);background:var(--surface-2);font-weight:600;cursor:pointer;text-decoration:none}.btn:disabled{opacity:.35}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.btn.danger{color:var(--warn)}.btn.small{min-height:34px;padding:4px 12px;font-size:14px}.btn.big{min-height:60px;font-size:19px;width:100%;flex-direction:column;gap:0}.btn.big small{font-size:13px;font-weight:500;opacity:.85}.btn.icon{width:44px;padding:0;font-size:22px}.btn.ghost{background:transparent;border-color:transparent}.btn.file input{display:none}.segmented{display:flex;background:var(--surface-2);border-radius:12px;padding:3px;gap:3px}.segmented button{flex:1;min-height:40px;border:0;border-radius:9px;background:transparent;font-weight:600;color:var(--muted);cursor:pointer}.segmented button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #00000026}.segmented .fb-easy.active{background:#d3f9d8;color:#1b5e20}.segmented .fb-ok.active{background:var(--accent-soft);color:var(--text)}.segmented .fb-hard.active{background:#ffe3e3;color:#8f1d1d}.tabbar{position:fixed;left:0;right:0;bottom:0;display:flex;background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}.tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 0 10px;color:var(--muted);text-decoration:none;font-size:12px;font-weight:600}.tabbar svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.tabbar a.active{color:var(--accent)}.status h2{font-size:21px}.status p{color:var(--muted);margin:0 0 14px}.status-done,.status-goalReached{border-color:var(--ok)}.week{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;gap:4px}.week-day{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;color:var(--muted)}.week-day .dot,.cal-day{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-size:14px;font-weight:600;color:var(--text);border:2px solid transparent}.week-day.trained .dot,.cal-day.trained{background:var(--accent);color:var(--accent-text)}.week-day.today .dot,.cal-day.today{border-color:var(--text)}.week-day.next .dot,.cal-day.next{border:2px dashed var(--accent)}.stats{display:grid;grid-template-columns:repeat(3,1fr);margin-top:16px;text-align:center}.stats strong{display:block;font-size:22px}.stats span{font-size:12px;color:var(--muted)}.level-list{list-style:none;margin:0;padding:0}.level-list li{display:flex;align-items:center;gap:12px;padding:8px 0;border-top:1px solid var(--line)}.level-list li:first-child{border-top:0}.level-list div{display:flex;flex-direction:column}.level-list span:not(.level-badge){font-size:14px;color:var(--muted)}.level-badge{flex:none;width:32px;height:32px;border-radius:10px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-weight:700}.month-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.month-nav h2{margin:0;font-size:18px}.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);justify-items:center;gap:6px 0}.cal-wd{font-size:12px;color:var(--muted);font-weight:600}.cal-day{background:transparent;cursor:pointer;padding:0}.cal-day.outside{opacity:.3}.legend{display:flex;justify-content:center;gap:16px;margin-top:14px;font-size:13px;color:var(--muted)}.legend span{display:flex;align-items:center;gap:6px}.lg{width:14px;height:14px;border-radius:50%;display:inline-block}.lg.trained{background:var(--accent)}.lg.next{border:2px dashed var(--accent)}.lg.today{border:2px solid var(--text)}.session-detail{border-top:1px solid var(--line);padding:8px 0}.session-detail ul{margin:4px 0 8px;padding-left:18px;font-size:14px;color:var(--muted)}.modal-backdrop{position:fixed;inset:0;background:#00000080;display:flex;align-items:flex-end;justify-content:center;z-index:20}.modal{background:var(--surface);width:100%;max-width:640px;border-radius:20px 20px 0 0;padding:20px 16px calc(20px + env(safe-area-inset-bottom));max-height:85dvh;overflow:auto}.modal-actions{display:flex;gap:8px;margin-top:12px}.modal-actions .btn{flex:1}.modal-actions.column{flex-direction:column}.pattern-head{display:flex;width:100%;justify-content:space-between;align-items:flex-start;text-align:left;background:none;border:0;padding:0;cursor:pointer}.pattern-head p{margin:0 0 12px;font-size:14px}.chevron{color:var(--muted);font-size:18px}.level-row{display:flex;align-items:center;gap:12px}.level-info{flex:1;display:flex;flex-direction:column;text-align:center}.level-info span:last-child{color:var(--muted);font-size:14px}.progress{display:flex;gap:4px;margin-top:12px}.progress span{flex:1;height:6px;border-radius:3px;background:var(--surface-2)}.progress span.on{background:var(--accent)}.pattern-detail{margin-top:12px}.preview{height:220px;background:var(--bg);border-radius:12px}.tips{padding-left:20px;line-height:1.5}.tips.compact{font-size:15px;color:var(--muted);margin:4px 0 0;text-align:left}.ladder{padding-left:22px;font-size:14px;color:var(--muted);line-height:1.7}.ladder .done{text-decoration:line-through;opacity:.7}.ladder .current{color:var(--accent);font-weight:700}.form{display:flex;flex-direction:column;gap:8px}.form label{font-size:14px;font-weight:600;color:var(--muted);margin-top:6px}.form label.check{display:flex;align-items:center;gap:10px;color:var(--text);font-weight:500;font-size:16px}.form input[type=checkbox]{width:22px;height:22px;accent-color:var(--accent)}.form label.btn{color:var(--text);margin-top:0;font-size:16px}.workout-overview .overview-list{padding-left:22px;margin:8px 0}.overview-list li{padding:4px 0}.overview-list span{display:block;font-size:14px;color:var(--muted)}.bottom-actions{display:flex;gap:8px;margin-top:16px}.bottom-actions .btn:not(.big){min-height:60px}.runner{height:100dvh;display:flex;flex-direction:column;max-width:640px;margin:0 auto;padding:0 16px calc(12px + env(safe-area-inset-bottom));-webkit-user-select:none;user-select:none}.runner-top{padding-top:8px}.overall{height:4px;background:var(--surface-2);border-radius:2px;overflow:hidden}.overall span{display:block;height:100%;background:var(--accent)}.runner-head{display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:600;color:var(--muted)}.runner-figure{flex:1 1 40%;min-height:0}.runner.rest .runner-figure{opacity:.55}.runner-info{text-align:center}.runner-info h2{font-size:24px;margin:0}.runner-info h2 small{font-size:16px;color:var(--muted);font-weight:600}.runner-info .amount{margin:2px 0 0;color:var(--muted)}.big-number{font-size:88px;font-weight:800;line-height:1.05;font-variant-numeric:tabular-nums}.big-number small{font-size:32px;color:var(--muted);font-weight:700}.runner.rest .big-number{font-size:64px;color:var(--accent)}.cue-word{margin:0;min-height:1.3em;font-size:28px;font-weight:700;color:var(--accent);text-transform:uppercase;letter-spacing:.04em}.runner-actions{display:grid;grid-template-columns:1fr 1fr 2fr;gap:8px;margin-top:12px}.runner-actions .btn{min-height:64px}.paused-overlay{position:fixed;inset:0;background:#0009;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:32px;z-index:10;font-size:28px;font-weight:700}.paused-overlay .btn{max-width:320px}.feedback{display:flex;flex-direction:column;gap:8px}.done-screen{min-height:100dvh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:8px}.done-badge{width:96px;height:96px;border-radius:50%;background:var(--accent);color:var(--accent-text);display:grid;place-items:center;font-size:52px;font-weight:800}.done-screen p{color:var(--muted);max-width:320px}.done-screen .btn{max-width:320px;margin-top:16px}@media(max-height:700px){.big-number{font-size:64px}.tips.compact{display:none}}.card>p:first-child{margin-top:0}.card>p:last-child{margin-bottom:0}
