:root {
  color-scheme: dark;
  --bg:#121521; --panel:#1b2031; --line:#3a4257; --text:#f7f8fa; --muted:#b8c0d3; --accent:#defa82;
  --mint:#a0eacf; --lilac:#d5c4ff; --amber:#ffda90; --red:#ffb9b5;
  font-family:"Heebo","Segoe UI",Arial,sans-serif;
  color:var(--text); background:var(--bg);
}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
.locked-home{--bg:#1b1b1b;--panel:#262626;--line:#4a4a4a;--muted:#c8c8c8;--accent:#ededed;background:#1b1b1b}
.locked-home .topbar,.locked-home .btn{background:#252525}
.locked-home .brand img{filter:grayscale(1)}
.lock-panel{margin-block-start:clamp(36px,10vw,115px);justify-items:center;padding-block:40px;text-align:center}
.lock-panel h1{letter-spacing:-.035em}
.lock-icon{display:block;position:relative;border:2px solid #c6c6c6;border-radius:7px;width:37px;height:29px;margin-block:23px 12px}
.lock-icon::before{content:"";position:absolute;width:21px;height:23px;inset-inline:6px;bottom:100%;border:2px solid #c6c6c6;border-bottom:0;border-radius:12px 12px 0 0}
.lock-icon::after{content:"";position:absolute;width:4px;height:9px;inset-inline:14.5px;top:8px;background:#c6c6c6;border-radius:5px}
body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 5% 0%,#283454 0,transparent 49rem),var(--bg)}
h1,h2,h3,p{margin:0} h1{font-size:clamp(2.35rem,7vw,5.2rem);line-height:1.02;letter-spacing:-.06em}
h2{font-size:clamp(1.2rem,2.5vw,1.65rem);line-height:1.25}h3{font-size:1.04rem}
p,li{line-height:1.65} a{color:inherit;text-decoration:none} button,input,select,textarea{font:inherit}
button{cursor:pointer}button:disabled{cursor:progress;opacity:.7}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.shell{width:min(1100px,calc(100% - 44px));margin-inline:auto}
.topbar{border-bottom:1px solid #ffffff19;background:#121521d4}
.topbar>.shell{min-height:75px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.brand{display:flex;align-items:center;gap:11px;font-weight:850;letter-spacing:.04em}
.brand img,.preview img{object-fit:contain}.brand b,.accent{color:var(--accent)}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 15px;
  color:var(--text);border:1px solid var(--line);border-radius:12px;background:#1b2031;font-weight:700;text-align:center}
.btn:hover{background:#2b3652}.btn.primary,.btn[aria-current=page]{border-color:var(--accent);background:var(--accent);color:#17211a}
.btn.primary:hover{background:#ebffaa}.btn.subtle{background:none}.btn.danger{color:var(--red)}
.row,.actions,.split-row{display:flex;align-items:center;gap:10px}.actions{flex-wrap:wrap}
.split-row{justify-content:space-between}.row>*{min-width:0}
.muted{color:var(--muted)}.foot,.tag,.label{color:var(--muted);font-size:.88rem;line-height:1.5}
.tag{padding:4px 9px;border:1px solid var(--line);border-radius:999px;white-space:nowrap}
.tag.ok{color:var(--accent);border-color:#69774e}
.panel,.preview{padding:clamp(16px,3vw,24px);border-radius:21px;border:1px solid var(--line);background:var(--panel);min-width:0}
.panel{display:grid;gap:13px}.panel.feature{background:linear-gradient(135deg,#28382c,#22283a);border-color:#667756}
.stack{display:grid;gap:13px}.columns,.how,.hero{display:grid;gap:15px;align-items:start}
.columns{grid-template-columns:1fr 1fr}.how{grid-template-columns:repeat(3,1fr)}.how .panel{height:100%}
.hero{grid-template-columns:1.12fr .88fr;align-items:center;gap:clamp(24px,6vw,76px);padding:clamp(42px,8vw,110px) 0 clamp(34px,6vw,75px)}
.hero p{font-size:1.11rem;max-width:39ch}
.preview{border-color:#606b82;background:linear-gradient(145deg,#2a3246,#181d2a);box-shadow:0 22px 68px #060b1880}
.preview-head{padding:0 0 13px;border-bottom:1px solid var(--line);margin-bottom:13px}
.preview .entry{border:0;background:#ffffff09;border-radius:14px;padding:12px}
.dot{display:grid;place-items:center;min-width:40px;height:40px;border-radius:10px;font-weight:800;font-family:Arial,sans-serif}
.dot.run{color:var(--mint);background:#a0eacf20}.dot.strength{color:var(--lilac);background:#d5c4ff1f}.dot.food{color:var(--amber);background:#ffda901d}
.page-head{margin:34px 0 16px}.page-head h1,.form h1{font-size:clamp(1.9rem,5vw,3.65rem);margin-bottom:5px}
nav{display:flex;gap:7px;margin-bottom:18px}nav .btn{min-width:100px}
.stats,.days{display:grid;gap:7px}.stats{grid-template-columns:repeat(3,1fr)}
.stat{padding:10px;border-radius:12px;background:#ffffff08;display:grid;gap:5px}
.stat b{font-size:1.25rem;font-variant-numeric:tabular-nums}
.days{grid-template-columns:repeat(7,1fr)}.days .btn{display:grid;gap:3px;padding:8px 3px;min-height:60px}
.days .btn[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}
.entry{padding:10px 0;border-bottom:1px solid var(--line)}.entry:last-child{border-bottom:0}
.entry small{display:block;color:var(--muted);margin-top:3px;font-size:.88rem;line-height:1.55}
.form{width:min(100%,680px);margin:28px auto 0}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:grid;gap:6px;color:var(--muted);min-width:0}
.field b{color:var(--text)}fieldset{border:0;padding:0;margin:0;min-width:0}legend{font-weight:700;margin-bottom:8px}
input:not([type=checkbox]),select,textarea{min-height:44px;min-width:0;width:100%;padding:8px 10px;border-radius:9px;border:1px solid var(--line);background:#131725;color:var(--text)}
textarea{min-height:70px;resize:vertical}input[type=checkbox]{width:1.13rem;height:1.13rem;accent-color:var(--accent);margin:0}
.choice{display:inline-flex;align-items:center;gap:8px;min-height:43px;padding:7px 10px;border-radius:9px;background:#ffffff0a}
.sets{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:7px;align-items:end}
details,.exercise{padding:13px;border:1px solid var(--line);border-radius:13px}
details>summary{cursor:pointer;line-height:1.45;font-weight:700;min-height:28px}
details[open]>summary{margin-bottom:10px}.exercise{display:grid;gap:9px}
.alert{padding:12px;border-radius:11px;border:1px solid #7a864c;color:#eeffd1;background:#aeca5514}
.alert.error{color:#ffddda;border-color:#965d61;background:#50252a85}
#notice:not(:empty){position:fixed;inset:auto max(12px,4vw) 16px auto;border:1px solid #7785a7;padding:12px 16px;border-radius:12px;background:#29334c;max-width:calc(100% - 30px);box-shadow:0 9px 27px #0008}
.workout-shell{display:grid;gap:14px;width:min(100%,740px);margin:26px auto 0}
.workout-header h1{font-size:clamp(1.65rem,5vw,3rem);margin-top:5px}
.workout-header .btn{flex-shrink:0}
.workout-progress{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px}
.workout-progress progress{width:100%;height:10px;accent-color:var(--accent)}
.workout-progress span{direction:ltr;color:var(--muted);font-variant-numeric:tabular-nums}
.workout-active{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:20px}
.workout-stage{display:grid;place-items:center;min-height:195px;overflow:hidden;border-radius:15px;background:radial-gradient(ellipse at 48% 27%,#394761 0,#252b3c 65%,#202536 100%);}
.workout-figure{display:block;width:100%;max-width:390px}
.motion-shadow{fill:#121521;opacity:.44}
.motion-track,.motion-equipment,.motion-body,.motion-far,.motion-near{fill:none;stroke-linecap:round;stroke-linejoin:round}
.motion-track{stroke:#7a89a9;opacity:.48;stroke-width:1.4}
.motion-equipment{stroke:var(--lilac);stroke-width:5}
.motion-body{stroke:var(--accent);stroke-width:19}
.motion-far{stroke:#8aacc9;stroke-width:9}
.motion-near{stroke:#c8e4f4;stroke-width:10}
.motion-head{fill:#e7f6ff}
.workout-counter{flex-shrink:0;color:var(--accent);font-size:clamp(1.45rem,5vw,2.1rem);font-variant-numeric:tabular-nums}
.workout-counter small{font-size:.8rem}
.workout-cues{margin:10px 0 0;padding-inline-start:19px;color:var(--muted)}
.workout-docks{display:grid;gap:10px}
.workout-status{min-height:1lh}
@media(max-width:650px){.workout-active{grid-template-columns:1fr;gap:13px}.workout-stage{min-height:160px}.workout-figure{max-width:310px}.workout-docks .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.workout-docks .btn{padding-inline:6px;font-size:.89rem}}
bdi,.numbers{font-variant-numeric:tabular-nums}.skip{position:absolute;inset:-70px 10px auto auto;background:var(--accent);color:#111;padding:12px;z-index:6}.skip:focus{inset-block-start:8px}
footer{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;color:var(--muted);font-size:.86rem;border-top:1px solid var(--line);margin-top:34px;padding:16px 0 23px}
footer div{display:flex;gap:13px}footer a:hover{color:var(--accent)}
@media(max-width:760px){.shell{width:calc(100% - 30px)}.columns,.how,.hero{grid-template-columns:1fr}.topbar>.shell{min-height:63px}.brand img{height:39px;width:39px}.brand{font-size:.9rem;gap:6px}.page-head{margin-top:22px}}
@media(max-width:450px){.days{gap:3px}.days .btn{font-size:.79rem}.stat b{font-size:1rem}.tag{white-space:normal}nav .btn{flex:1;min-width:0}}
.run-console{max-width:46rem}.run-console .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.run-console .stat b{font-variant-numeric:tabular-nums;font-size:clamp(1.5rem,7vw,2.8rem)}.run-console .btn{min-height:48px}.run-console svg{display:block;width:100%;max-height:180px;color:var(--accent,#b8ed65)}.run-console.run-dim{background:#0b1015;color:#cad4cf}
