:root{--wine-900:#531b24;--wine-700:#6a2931;--sand-400:#c6b7a2;--sand-200:#e7d8c3;--sand-50:#f3ece2;--bg:var(--sand-50);--surface:var(--sand-200);--text:var(--wine-900);--accent:var(--wine-700);--on-accent:var(--sand-50);--hint:#531b24b3;--line:#531b241f;--muted:#c6b7a273;--accent-pressed:var(--wine-900);--surface-pressed:var(--sand-400);--field-border:var(--sand-400);--year:#6a29318c;--tile-weekend:#e7d8c380;--tile-empty:#c6b7a229;--tile-done:var(--sand-400);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;background:var(--bg);color:var(--text);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.45}:root[data-theme=dark]{--bg:#2b0d12;--surface:var(--wine-900);--text:var(--sand-50);--accent:var(--sand-200);--on-accent:var(--wine-900);--hint:#f3ece2b3;--line:#f3ece224;--muted:#531b24e6;--accent-pressed:var(--sand-400);--surface-pressed:var(--wine-700);--field-border:#c6b7a266;--year:#e7d8c380;--tile-weekend:#531b248c;--tile-empty:#531b2440;--tile-done:var(--wine-700);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}body{min-height:var(--tg-viewport-stable-height,100vh);background:var(--bg);margin:0}.screen{padding:calc(16px + max(var(--tg-content-safe-area-inset-top,0px), env(safe-area-inset-top))) 16px  calc(96px + max(var(--tg-content-safe-area-inset-bottom,0px), env(safe-area-inset-bottom)));gap:14px;display:grid}.card{background:var(--surface);border-radius:22px;gap:8px;padding:16px;display:grid}h1{letter-spacing:-.01em;text-wrap:balance;margin:0;font-size:1.5rem;line-height:1.2}p{margin:0}.hint{color:var(--hint)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.button{min-height:48px;font:inherit;background:var(--accent);color:var(--on-accent);cursor:pointer;border:0;border-radius:999px;justify-self:start;padding:0 22px;font-weight:600}.button:active{background:var(--accent-pressed)}.button-wide{justify-self:stretch;width:100%}.button-secondary{background:var(--surface);color:var(--accent);justify-self:stretch}.button-secondary:active{background:var(--surface-pressed)}.button:disabled{opacity:.6;cursor:default}.link-button{min-height:44px;font:inherit;color:var(--accent);cursor:pointer;background:0 0;border:0;justify-self:start;padding:0;font-weight:600}.link-danger{color:var(--text);text-underline-offset:3px;text-decoration:underline}.icon-button{background:var(--surface);width:44px;height:44px;color:var(--text);cursor:pointer;border:0;border-radius:50%;font-size:1.5rem;line-height:1}.main-action{padding:16px 16px calc(12px + max(var(--tg-safe-area-inset-bottom,0px), env(safe-area-inset-bottom)));background:linear-gradient(transparent, var(--bg) 40%);position:fixed;bottom:0;left:0;right:0}.notice{border-left:4px solid var(--accent);background:var(--surface);color:var(--text);border-radius:16px;padding:12px 16px}.confirm-actions{grid-template-columns:1fr 1fr;gap:8px;display:grid}.confirm-actions .button{justify-self:stretch;padding:0 12px}.confirm .confirm-actions .button-secondary{background:var(--bg)}.cal-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.cal-header h1{letter-spacing:-.02em;font-size:clamp(1.45rem,6.6vw,2rem);font-weight:800}.cal-year{color:var(--year)}.cal-nav{border:1px solid var(--line);border-radius:16px;gap:4px;padding:4px;display:flex}.cal-nav button{background:var(--surface);width:40px;height:40px;color:var(--text);font:inherit;cursor:pointer;border:0;border-radius:12px;font-size:1.5rem;line-height:1}.cal-nav .cal-theme{margin-left:4px;font-size:1.15rem}.cal-nav button:active{background:var(--surface-pressed)}.calendar{gap:10px;display:grid}.cal-weekdays,.cal-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;display:grid}.cal-weekdays span{background:var(--muted);text-align:center;letter-spacing:.04em;text-transform:uppercase;border-radius:999px;padding:4px 0;font-size:.72rem;font-weight:600}.cal-tile{aspect-ratio:4/5;background:var(--surface);min-height:44px;color:var(--text);font:inherit;font-variant-numeric:tabular-nums;cursor:pointer;border:0;border-radius:14px;place-items:center;padding:0;font-weight:600;display:grid;position:relative}.cal-tile.cal-weekend{background:var(--tile-weekend)}.cal-tile.cal-empty{background:var(--tile-empty);cursor:default}.cal-tile.cal-done{background:var(--tile-done)}.cal-tile.cal-today{background:var(--accent);color:var(--on-accent)}button.cal-tile:active{transform:scale(.96)}@media (prefers-reduced-motion:no-preference){button.cal-tile{transition:transform .12s ease-out}}.cal-badge{border-radius:50%;place-items:center;width:16px;height:16px;font-size:.62rem;font-weight:800;line-height:1;display:inline-grid}.cal-tile .cal-num{transform:translateY(-5px)}.cal-tile .cal-badge{width:13px;height:13px;font-size:.55rem;position:absolute;bottom:4px;right:4px}.cal-badge-planned{box-shadow:inset 0 0 0 2px var(--accent)}.cal-badge-done{background:var(--accent);color:var(--on-accent)}.cal-today .cal-badge-planned{box-shadow:inset 0 0 0 2px var(--on-accent)}.cal-today .cal-badge-done{background:var(--on-accent);color:var(--accent)}.view-switch{background:var(--muted);border-radius:999px;grid-template-columns:1fr 1fr;gap:4px;padding:4px;display:grid}.view-switch button{min-height:40px;color:var(--text);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:999px;font-weight:600}.view-switch button[aria-pressed=true]{background:var(--accent);color:var(--on-accent)}.cal-header h1.cal-title-week{font-size:clamp(1.25rem,5.6vw,1.6rem)}.week-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.week-day{background:var(--surface);width:100%;min-height:64px;color:var(--text);font:inherit;text-align:left;cursor:pointer;border:0;border-radius:18px;grid-template-columns:52px 1fr;align-items:center;gap:12px;padding:8px 32px 8px 8px;display:grid;position:relative}.week-day[data-status=none]{background:var(--tile-weekend)}.week-day:active{background:var(--surface-pressed)}.week-date{background:var(--bg);border-radius:12px;align-content:center;place-items:center;height:48px;line-height:1.1;display:grid}.week-today .week-date{background:var(--accent);color:var(--on-accent)}.week-weekday{letter-spacing:.04em;text-transform:uppercase;font-size:.68rem;font-weight:700}.week-number{font-variant-numeric:tabular-nums;font-size:1.15rem;font-weight:800}.week-body{gap:2px;min-width:0;display:grid}.week-names{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.week-summary{font-size:.85rem}.week-day .cal-badge{margin-top:-8px;position:absolute;top:50%;right:10px}.legend{justify-content:center;gap:16px;font-size:.85rem;display:flex}.legend-item{align-items:center;gap:6px;display:inline-flex}.day-screen{min-height:100vh;min-height:var(--tg-viewport-stable-height,100dvh);touch-action:pan-y;align-content:start}.day-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.cal-nav button:disabled{opacity:.4;cursor:default}@media (prefers-reduced-motion:no-preference){.day-enter-next{animation:.2s ease-out day-from-right}.day-enter-prev{animation:.2s ease-out day-from-left}}@keyframes day-from-right{0%{opacity:0;transform:translate(24px)}}@keyframes day-from-left{0%{opacity:0;transform:translate(-24px)}}.exercise-list{counter-reset:exercise;margin:0;padding:6px 18px;list-style:none}.exercise{counter-increment:exercise;grid-template-columns:1fr auto;column-gap:12px;padding:12px 0;display:grid}.exercise+.exercise{border-top:1px solid var(--line)}.exercise-name{font-weight:600}.exercise-name:before{content:counter(exercise) ". ";color:var(--hint)}.exercise .hint{grid-column:1}.badge{font-variant-numeric:tabular-nums;color:var(--hint);grid-area:1/2/span 2;align-self:center}.badge-done{color:var(--accent);font-weight:700}.exercise-current .exercise-name{color:var(--accent)}.status-line{font-weight:600}.status-done{color:var(--accent)}.exercise-form{border:0;min-width:0;margin:0}.exercise-form legend{float:left;margin-bottom:4px;padding:0;font-weight:600}.field{gap:4px;min-width:0;font-size:.9rem;display:grid}.field input{border:1px solid var(--field-border);background:var(--bg);width:100%;min-width:0;min-height:46px;color:inherit;font:inherit;border-radius:14px;padding:0 14px;font-size:1rem}.field input::placeholder{color:var(--hint)}.field input:focus-visible{outline:2px solid var(--accent);outline-offset:0;border-color:var(--accent)}.field input[aria-invalid=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.field-error{color:var(--accent);font-weight:600}.field-pair{grid-template-columns:1fr 1fr;gap:12px;display:grid}.exercise-title{font-size:1.75rem}.set-card{text-align:center;justify-items:center;padding:32px 16px}.set-number{color:var(--hint);font-size:1.1rem}.set-reps{font-variant-numeric:tabular-nums;color:var(--accent);font-size:2.75rem;font-weight:800}.progress{background:var(--muted);border-radius:4px;height:8px;overflow:hidden}.progress span{background:var(--accent);border-radius:4px;height:100%;transition:width .2s ease-out;display:block}@media (prefers-reduced-motion:reduce){.progress span{transition:none}}.done{text-align:center;justify-items:center;padding:36px 16px}.done-mark{background:var(--accent);width:72px;height:72px;color:var(--on-accent);border-radius:50%;place-items:center;font-size:2rem;display:grid}
