:root{--text:#4b4555;--text-h:#08060d;--bg:#f7f6f9;--panel-bg:#fff;--border:#e5e4e7;--accent:#aa3bff;--accent-text:#fff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--chip-bg:#f4f3ec;--shadow:#00000014 0 10px 15px -3px, #0000000a 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;font:17px/145% var(--sans);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--text:#b7bac3;--text-h:#f3f4f6;--bg:#101116;--panel-bg:#191a21;--border:#2e303a;--accent:#c084fc;--accent-text:#16171d;--accent-bg:#c084fc26;--accent-border:#c084fc80;--chip-bg:#1f2028;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}}*{box-sizing:border-box}body{margin:0}h1,h2,h3{color:var(--text-h);margin:0 0 8px;font-weight:600}h1{letter-spacing:-.5px;font-size:34px}h2{font-size:20px}h3{font-size:17px}p{margin:0}button{font:inherit;cursor:pointer}.page{max-width:760px;margin:0 auto;padding:32px 20px 64px}.page-header{text-align:center;margin-bottom:32px}.page-header p{color:var(--text)}.page-main{flex-direction:column;gap:20px;display:flex}.panel{background:var(--panel-bg);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:16px;padding:20px}.muted{color:var(--text);opacity:.75;font-size:14px}.equipment-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin-top:14px;display:grid}.equipment-chip,.difficulty-chip{border:1px solid var(--border);background:var(--chip-bg);color:var(--text-h);border-radius:12px;justify-content:center;align-items:center;gap:8px;padding:10px 14px;font-size:14px;transition:background-color .15s,border-color .15s,color .15s;display:flex}.equipment-chip.selected,.difficulty-chip.selected{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.equipment-icon{font-size:18px}.difficulty-row{flex-wrap:wrap;gap:10px;margin-top:14px;display:flex}.difficulty-chip{flex:120px}.generate-panel{text-align:center}.generate-button{background:var(--accent);color:var(--accent-text);box-shadow:var(--shadow);border:none;border-radius:999px;padding:14px 32px;font-size:16px;font-weight:600}.generate-button:hover{filter:brightness(1.05)}.workout{flex-direction:column;gap:18px;margin-top:8px;display:flex}.workout-section{padding-top:4px}.workout-section+.workout-section{border-top:1px solid var(--border);padding-top:16px}.simple-list{margin:0;padding-left:20px}.simple-list li{margin-bottom:4px}.exercise-list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.tab-row{justify-content:center;gap:8px;margin-bottom:24px;display:flex}.tab-button{border:1px solid var(--border);background:var(--panel-bg);color:var(--text);border-radius:999px;padding:8px 20px;font-size:14px;font-weight:600}.tab-button.active{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.exercise-row{background:var(--chip-bg);border:1px solid var(--border);border-radius:12px;align-items:center;gap:12px;padding:8px 12px;display:flex}.exercise-row .exercise-anim{background:var(--panel-bg);border-radius:10px;width:56px;height:72px}.exercise-row-info{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.exercise-name{color:var(--text-h);overflow-wrap:anywhere;font-weight:600}.exercise-row.done .exercise-name{opacity:.6;text-decoration:line-through}.exercise-sets{color:var(--accent);font-size:13px;font-weight:600}.exercise-cue{color:var(--text);opacity:.85;font-size:12px}.exercise-done-checkbox{width:20px;height:20px;accent-color:var(--accent);flex-shrink:0}.log-panel{text-align:center}.log-button{background:var(--accent);color:var(--accent-text);border:none;border-radius:999px;padding:12px 28px;font-size:15px;font-weight:600}.log-button:disabled{opacity:.5;cursor:default}.log-confirmation{color:var(--accent);margin-top:10px;font-size:14px}.start-button{background:var(--accent);color:var(--accent-text);box-shadow:var(--shadow);border:none;border-radius:999px;margin-bottom:8px;padding:16px 40px;font-size:18px;font-weight:700}.start-button:hover{filter:brightness(1.05)}.session-overlay{z-index:100;background:var(--bg);flex-direction:column;display:flex;position:fixed;inset:0}.session-header{justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.session-exit{background:var(--chip-bg);border:1px solid var(--border);color:var(--text-h);border-radius:999px;width:36px;height:36px;font-size:16px;line-height:1}.session-progress{color:var(--text);font-weight:600}.session-body{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:10px;padding:20px;display:flex}.session-muscle{text-transform:uppercase;letter-spacing:.08em;color:var(--accent);font-size:12px;font-weight:700}.session-name{margin:0;font-size:26px}.session-anim-wrap{margin:12px 0}.session-anim-wrap .exercise-anim{width:140px;height:180px}.session-timer{color:var(--accent);font-variant-numeric:tabular-nums;font-size:56px;font-weight:800}.session-target{color:var(--accent);font-size:32px;font-weight:800}.session-cue{max-width:320px;color:var(--text)}.session-body .generate-button{min-width:220px;margin-top:16px}.session-rest .session-rest-label{text-transform:uppercase;letter-spacing:.1em;color:var(--text);opacity:.75;font-size:14px;font-weight:700}.session-done{text-align:center;flex-direction:column;align-items:center;gap:10px;display:flex}.session-done-icon{font-size:48px}.history-empty{color:var(--text);opacity:.75;text-align:center;padding:16px 0}.history-stats{flex-wrap:wrap;justify-content:center;gap:20px;margin-bottom:8px;display:flex}.history-stat{text-align:center}.history-stat strong{color:var(--text-h);font-size:22px;display:block}.history-stat span{color:var(--text);font-size:12px}.history-list{flex-direction:column;gap:14px;display:flex}.history-entry{border:1px solid var(--border);border-radius:12px;padding:14px 16px}.history-entry-header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.history-entry-title{color:var(--text-h);font-weight:600}.history-entry-meta{color:var(--text);opacity:.85;margin-top:2px;font-size:13px}.history-delete{border:1px solid var(--border);color:var(--text);background:0 0;border-radius:999px;flex-shrink:0;padding:4px 12px;font-size:12px}.history-delete:hover{color:#e5484d;border-color:#e5484d}.history-exercise-list{margin:10px 0 0;padding-left:18px;font-size:13px}.history-exercise-list li{margin-bottom:2px}.exercise-anim{flex-shrink:0;width:84px;height:108px}.exercise-anim .limb{stroke:var(--accent);stroke-width:7px;stroke-linecap:round;stroke-linejoin:round;fill:none}.exercise-anim .floor{stroke:var(--border);stroke-width:3px;stroke-linecap:round}.exercise-anim .head{fill:var(--accent)}.exercise-anim .figure,.exercise-anim .upper-body,.exercise-anim .lower-body{transform-box:view-box;transform-origin:50px 68px;animation-duration:1.2s;animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-direction:alternate}.exercise-anim .arm-left,.exercise-anim .arm-right,.exercise-anim .leg-left,.exercise-anim .leg-right{animation-duration:1.2s;animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-direction:alternate}@keyframes anim-arm-l-push{to{d:path("M38,27 L24,36 L32,48")}}@keyframes anim-arm-r-push{to{d:path("M62,27 L76,36 L68,48")}}.pattern-push .arm-left{animation-name:anim-arm-l-push}.pattern-push .arm-right{animation-name:anim-arm-r-push}@keyframes anim-arm-l-pull{to{d:path("M38,27 L32,42 L44,34")}}@keyframes anim-arm-r-pull{to{d:path("M62,27 L68,42 L56,34")}}@keyframes anim-upper-pull{to{transform:translateY(-2px)rotate(-6deg)}}.pattern-pull .arm-left{animation-name:anim-arm-l-pull}.pattern-pull .arm-right{animation-name:anim-arm-r-pull}.pattern-pull .upper-body{animation-name:anim-upper-pull}@keyframes anim-arm-l-curl{to{d:path("M38,27 L30,46 L38,30")}}@keyframes anim-arm-r-curl{to{d:path("M62,27 L70,46 L62,30")}}.pattern-curl .arm-left{animation-name:anim-arm-l-curl}.pattern-curl .arm-right{animation-name:anim-arm-r-curl}@keyframes anim-arm-l-raise{to{d:path("M38,27 L18,30 L4,26")}}@keyframes anim-arm-r-raise{to{d:path("M62,27 L82,30 L96,26")}}.pattern-raise .arm-left{animation-name:anim-arm-l-raise}.pattern-raise .arm-right{animation-name:anim-arm-r-raise}@keyframes anim-leg-l-squat{to{d:path("M44,82 L38,92 L40,108")}}@keyframes anim-leg-r-squat{to{d:path("M56,82 L62,92 L60,108")}}@keyframes anim-upper-squat{to{transform:translateY(14px)}}.pattern-squat .leg-left{animation-name:anim-leg-l-squat}.pattern-squat .leg-right{animation-name:anim-leg-r-squat}.pattern-squat .upper-body{animation-name:anim-upper-squat}@keyframes anim-upper-hinge{to{transform:rotate(35deg)}}@keyframes anim-leg-l-hinge{to{d:path("M44,68 L40,90 L40,108")}}@keyframes anim-leg-r-hinge{to{d:path("M56,68 L60,90 L60,108")}}.pattern-hinge .upper-body{animation-name:anim-upper-hinge}.pattern-hinge .leg-left{animation-name:anim-leg-l-hinge}.pattern-hinge .leg-right{animation-name:anim-leg-r-hinge}@keyframes anim-leg-l-lunge{to{d:path("M44,72 L34,88 L28,108")}}@keyframes anim-leg-r-lunge{to{d:path("M56,72 L66,96 L74,116")}}@keyframes anim-upper-lunge{to{transform:translateY(8px)}}.pattern-lunge .leg-left{animation-name:anim-leg-l-lunge}.pattern-lunge .leg-right{animation-name:anim-leg-r-lunge}.pattern-lunge .upper-body{animation-name:anim-upper-lunge}@keyframes anim-figure-plank{to{transform:translateY(3px)}}.pattern-plank .figure{animation-name:anim-figure-plank}@keyframes anim-upper-core{to{transform:rotate(-18deg)translateY(4px)}}@keyframes anim-lower-core{to{transform:translateY(-5px)}}@keyframes anim-leg-l-core{to{d:path("M44,63 L46,80 L50,98")}}@keyframes anim-leg-r-core{to{d:path("M56,63 L54,80 L50,98")}}.pattern-core .upper-body{animation-name:anim-upper-core}.pattern-core .lower-body{animation-name:anim-lower-core}.pattern-core .leg-left{animation-name:anim-leg-l-core}.pattern-core .leg-right{animation-name:anim-leg-r-core}@keyframes anim-upper-twist{to{transform:rotate(22deg)}}.pattern-twist .upper-body{animation-name:anim-upper-twist}@keyframes anim-figure-jump{to{transform:translateY(-10px)}}@keyframes anim-leg-l-jump{to{d:path("M44,72 L48,86 L46,100")}}@keyframes anim-leg-r-jump{to{d:path("M56,72 L52,86 L54,100")}}.pattern-jump .figure{animation-name:anim-figure-jump}.pattern-jump .leg-left{animation-name:anim-leg-l-jump}.pattern-jump .leg-right{animation-name:anim-leg-r-jump}@media (prefers-reduced-motion:reduce){.exercise-anim .figure,.exercise-anim .upper-body,.exercise-anim .lower-body,.exercise-anim .leg-left,.exercise-anim .leg-right,.exercise-anim .arm-left,.exercise-anim .arm-right{animation:none}}.library{flex-direction:column;gap:18px;margin-top:14px;display:flex}.library-card{background:var(--bg);border:1px solid var(--border);border-radius:14px;padding:16px}.library-card-header{align-items:center;gap:14px;margin-bottom:14px;display:flex}.library-card-header h3{margin-bottom:2px}.muscle-silhouette{flex-shrink:0;width:58px;height:106px}.muscle-silhouette .region{fill:var(--chip-bg);stroke:var(--border);stroke-width:2px;transition:fill .15s}.muscle-silhouette .region.on{fill:var(--accent);stroke:var(--accent-border)}.muscle-silhouette .rear-view-hint path{fill:none;stroke:var(--panel-bg);stroke-width:2px;stroke-linecap:round;opacity:.55}.library-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;display:grid}.library-tile{text-align:center;background:var(--chip-bg);border:1px solid var(--border);border-radius:12px;flex-direction:column;align-items:center;gap:4px;padding:10px 8px 12px;display:flex}.library-tile-name{color:var(--text-h);font-size:13px;font-weight:600;line-height:1.25}.library-tile-sets{color:var(--accent);font-size:12px;font-weight:700}.library-tile-equipment{color:var(--text);opacity:.75;font-size:11px}
