:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:dark;--bg:#111410;--surface:#1b1f19;--surface-2:#23291f;--text:#f1f3eb;--muted:#969e90;--border:#343b2e;--accent:#c3f36a;--on-accent:#1b280c;--shadow:0 20px 60px #0000000d;--down:#c3f36a;--hold:#e5c378;--up:#93cbbd;--end:#b5a3e0;background:var(--bg);color:var(--text)}
:root[data-theme=light]{color-scheme:light;--bg:#f3f4ed;--surface:#fffef9;--surface-2:#edeee6;--text:#20271b;--muted:#66715e;--border:#dde1d3;--accent:#b9e963;--down:#6b8e2c;--hold:#9f751b;--up:#2c8576;--end:#8266b2}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button{color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button{transition:background .15s,transform .15s}button:not(:disabled):active{transform:translateY(1px)}.topbar,main,footer{width:min(1120px,calc(100% - 80px));margin:auto}.topbar{height:101px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;font-size:26px;font-weight:800;letter-spacing:-1.3px;position:relative}.brand>span:not(.brand-icon),.footer-brand>span{font-weight:400}.brand-icon{display:inline-grid;place-items:center;background:var(--accent);color:var(--on-accent);width:38px;height:38px;border-radius:11px;font-size:29px;margin-right:12px;font-weight:700}.brand small{font-size:8px;letter-spacing:1.7px;font-weight:600;position:absolute;left:51px;bottom:-10px;color:var(--muted)}.header-actions{display:flex;align-items:center;gap:15px}.local-badge{font-size:11px;color:var(--muted);margin-right:12px}.local-badge i{display:inline-block;width:6px;height:6px;background:var(--accent);border-radius:50%;margin-right:7px}.icon-button{width:40px;height:40px;border-radius:50%;border:1px solid var(--border);background:transparent;font-size:23px}.install-button{border:1px solid var(--border);background:transparent;border-radius:9px;font-size:12px;padding:12px 16px}.install-button span{margin-left:16px}.intro{display:flex;align-items:center;justify-content:space-between;padding:51px 0 39px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:2px;margin:0 0 17px}.eyebrow>span{display:inline-block;width:16px;height:2px;background:var(--accent);vertical-align:middle;margin-right:8px}h1{font-size:clamp(46px,5.8vw,72px);line-height:1.02;letter-spacing:-3.8px;margin:0;font-weight:750}h1 em{font-style:normal;color:var(--accent)}[data-theme=light] h1 em{color:#698b29}.subtitle{font-size:14px;line-height:1.65;color:var(--muted);margin:20px 0 0}.intro-art{display:flex;align-items:center;gap:9px;position:relative;width:400px;height:200px;transform:skewX(-15deg);justify-content:center;padding-bottom:20px;opacity:.8}.art-line{display:block;width:17px;border-radius:4px;background:linear-gradient(0deg,var(--surface),var(--accent));height:50px}.art-line:nth-child(2n){height:83px}.art-line:nth-child(3n){height:122px}.art-line:nth-child(4n){height:153px}.art-line:nth-child(5n){height:185px}.intro-art small{position:absolute;bottom:-17px;left:73px;font-size:8px;letter-spacing:4px;color:var(--muted);transform:skewX(15deg)}.workspace{display:grid;grid-template-columns:1fr 1fr;gap:24px}.card{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:28px;box-shadow:var(--shadow)}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.section-heading .eyebrow{font-size:9px;margin-bottom:9px;letter-spacing:1.8px}.muted{color:var(--muted)}h2{font-size:20px;letter-spacing:-.6px;margin:0;font-weight:650}.tiny-tag,.status{font-size:9px;letter-spacing:1.2px;border:1px solid var(--border);padding:7px 9px;border-radius:6px;color:var(--muted)}fieldset{border:0;margin:0;padding:0;min-width:0}.presets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:25px}.preset{background:transparent;border:1px solid var(--border);border-radius:10px;padding:12px 5px;font-size:12px}.preset small{display:block;font-size:10px;color:var(--muted);margin-top:6px;letter-spacing:2px}.preset.active{background:var(--surface-2);border-color:var(--accent);color:var(--accent)}[data-theme=light] .preset.active{color:var(--text)}.phase-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding-bottom:23px;border-bottom:1px solid var(--border)}.phase-input{text-align:center}.phase-symbol{font-size:21px;display:block;margin-bottom:10px;color:var(--down)}.phase-input:nth-child(2) .phase-symbol{color:var(--hold)}.phase-input:nth-child(3) .phase-symbol{color:var(--up)}.phase-input:nth-child(4) .phase-symbol{color:var(--end)}.phase-input label{display:block;font-size:11px;color:var(--muted);margin-bottom:10px}.phase-input input{width:100%;background:var(--surface-2);border:1px solid transparent;border-radius:10px;color:var(--text);font-size:29px;font-weight:600;text-align:center;padding:10px 0;appearance:textfield;-moz-appearance:textfield}.phase-input input::-webkit-inner-spin-button,.stepper input::-webkit-inner-spin-button{appearance:none}.phase-input small{display:block;color:var(--muted);font-size:9px;margin-top:8px}.rep-setting{display:flex;align-items:center;justify-content:space-between;padding:21px 0}.rep-setting label,.sound-heading label{font-size:13px;font-weight:550}.rep-setting p{font-size:10px;color:var(--muted);margin:6px 0 0}.stepper{display:flex;background:var(--surface-2);border:1px solid var(--border);border-radius:9px;padding:4px}.stepper button{background:transparent;border:0;font-size:19px;width:30px;height:32px;color:var(--muted)}.stepper input{appearance:textfield;-moz-appearance:textfield;width:37px;background:transparent;border:0;text-align:center;font-size:16px;color:var(--text)}.sound-heading{display:flex;align-items:center;justify-content:space-between;margin:4px 0 11px}.text-button{background:transparent;border:0;padding:0;font-size:10px;color:var(--muted)}select{width:100%;background:var(--surface-2);color:var(--text);border:1px solid var(--border);border-radius:9px;padding:13px;font-size:12px}.toggles{padding:14px 0 7px}.toggles label{position:relative;display:flex;justify-content:space-between;align-items:center;min-height:34px;font-size:11px;color:var(--muted);cursor:pointer}.toggles input{position:absolute;right:0;width:34px;height:22px;opacity:0}.switch{width:31px;height:18px;border-radius:20px;background:var(--border);padding:3px;pointer-events:none}.switch:after{content:"";display:block;width:12px;height:12px;background:var(--muted);border-radius:50%;transition:transform .15s}.toggles input:checked+.switch{background:var(--accent)}.toggles input:checked+.switch:after{background:var(--on-accent);transform:translateX(13px)}.toggles input:focus-visible+.switch{outline:2px solid var(--accent);outline-offset:4px}.toggles small{font-size:9px}.session-summary{border-top:1px solid var(--border);display:flex;justify-content:space-between;margin-top:12px;padding-top:19px;font-size:10px;color:var(--muted)}.session-summary b{color:var(--text);font-size:12px;margin-right:4px}.training{display:flex;flex-direction:column;align-items:stretch}.training .section-heading{margin-bottom:12px}.timer{width:270px;max-width:100%;aspect-ratio:1;position:relative;margin:0 auto}.timer svg{width:100%;height:100%;transform:rotate(-90deg)}.timer circle{fill:none;stroke-width:3}.track{stroke:var(--border)}#progress-ring{stroke:var(--accent);stroke-width:4;stroke-linecap:round;stroke-dasharray:785.4;stroke-dashoffset:196.35;transition:stroke .2s}.timer-content{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}#phase-label{font-size:10px;letter-spacing:2.5px;color:var(--muted)}#countdown{font-size:48px;letter-spacing:-2px;font-weight:550;line-height:1.5;font-variant-numeric:tabular-nums}#timer-caption{font-size:10px;color:var(--muted)}.timer.running #countdown{font-size:90px;line-height:1.2}.phase-legend{display:flex;justify-content:center;gap:18px;margin:12px 0 25px;font-size:10px;color:var(--muted)}.phase-legend i{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--down);margin-right:5px}.phase-legend span:nth-child(2) i{background:var(--hold)}.phase-legend span:nth-child(3) i{background:var(--up)}.phase-legend span:nth-child(4) i{background:var(--end)}.phase-legend .active{color:var(--text);font-weight:700}.rep-progress{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:auto}.rep-progress>span{font-size:9px;letter-spacing:1.6px;color:var(--muted)}.rep-progress strong{font-size:23px;font-weight:550}.rep-progress small{font-size:13px;color:var(--muted)}.progress-track{height:4px;background:var(--border);width:100%;border-radius:5px;margin:13px 0 23px;overflow:hidden}#rep-bar{height:100%;width:0;background:var(--accent);transition:width .2s}.primary-button{width:100%;background:var(--accent);color:var(--on-accent);border:0;border-radius:10px;padding:19px 18px;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:space-between}.primary-button:hover{filter:brightness(1.04)}.primary-button>span:first-child{font-size:12px}.primary-button>span:last-child{font-size:18px}.session-note{text-align:center;font-size:9px;line-height:1.5;color:var(--muted);margin:14px 0 0}.reset-button{background:transparent;border:0;color:var(--muted);font-size:11px;margin-top:13px;padding:6px}.tip{display:flex;align-items:center;gap:20px;margin-top:24px;border:1px solid var(--border);border-radius:13px;padding:22px 26px}.tip-icon{font-size:24px;color:var(--accent);border:1px solid var(--border);width:42px;height:42px;display:grid;place-items:center;border-radius:50%;flex-shrink:0}.tip strong{font-size:12px;font-weight:550}.tip p{font-size:11px;color:var(--muted);margin:7px 0 0;line-height:1.6}.tip-number{margin-left:auto;font-size:11px;color:var(--muted);white-space:nowrap}.help{font-size:12px;color:var(--muted);margin:26px 0}.help summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between}.help p{line-height:1.8;max-width:800px}.help summary::-webkit-details-marker{display:none}footer{border-top:1px solid var(--border);padding:23px 0 28px;display:flex;justify-content:space-between;align-items:center;font-size:9px;color:var(--muted)}.footer-brand{font-size:16px;font-weight:750;letter-spacing:-.7px;color:var(--text)}.footer-brand small{font-size:8px;letter-spacing:1px;color:var(--muted);margin-left:7px;font-weight:400}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);width:max-content;background:var(--text);color:var(--bg);padding:15px 22px;border-radius:12px;font-size:12px;box-shadow:0 10px 40px #0003;z-index:10}dialog{border:1px solid var(--border);border-radius:20px;max-width:430px;width:calc(100% - 32px);padding:32px;background:var(--surface);color:var(--text)}dialog::backdrop{background:#0009;backdrop-filter:blur(4px)}dialog .brand-icon{margin-bottom:22px}dialog p{font-size:13px;line-height:1.7;color:var(--muted)}.dialog-close{position:absolute;right:15px;top:15px}[hidden]{display:none!important}
@media(min-width:1400px){.intro{padding-top:65px;padding-bottom:50px}}
@media(max-width:800px){.topbar,main,footer{width:calc(100% - 40px)}.topbar{height:86px}.local-badge{display:none}.intro-art{width:280px;gap:6px}.art-line{width:12px}.intro-art small{left:20px;font-size:7px}.workspace{gap:15px}.card{padding:21px}.phase-legend{gap:10px}.phase-input input{font-size:26px}.section-heading h2{font-size:17px}.tiny-tag{display:none}}
@media(max-width:620px){.topbar,main,footer{width:calc(100% - 32px)}.brand{font-size:23px}.brand-icon{width:34px;height:34px;font-size:26px;margin-right:9px}.brand small{left:43px;font-size:7px}.header-actions{gap:8px}.install-button{font-size:11px;padding:10px}.install-button span{display:none}.icon-button{width:35px;height:35px}.intro{padding:35px 3px 30px;overflow:hidden;position:relative}.intro .eyebrow{font-size:8px;letter-spacing:1.6px}h1{font-size:55px;letter-spacing:-3px}.subtitle{font-size:12px;margin-top:16px}.intro-art{position:absolute;right:-48px;top:32px;transform:skewX(-15deg) scale(.7);transform-origin:right;opacity:.28;pointer-events:none}.intro-art small{display:none}.workspace{grid-template-columns:1fr;gap:17px}.card{padding:24px;border-radius:16px}.section-heading h2{font-size:20px}.tiny-tag{display:block}.phase-grid{gap:12px}.phase-input input{font-size:30px}.training .section-heading{margin-bottom:18px}.timer{width:265px}.phase-legend{gap:20px;margin-bottom:28px}.tip{padding:18px 16px;gap:13px}.tip p{font-size:10px}.tip-number{display:none}.tip-icon{width:34px;height:34px}.tip strong{font-size:11px}footer{align-items:flex-start;gap:15px}footer>span:last-child{max-width:125px;text-align:right;line-height:1.5}.footer-brand small{display:block;margin:7px 0 0}.training.is-active{scroll-margin-top:14px}.help{line-height:1.6}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
