:root{color-scheme:dark;--radius:19px;--red:#f4a7a5;--amber:#edc77e;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;--bg:#080e0a;--surface:#121c15;--surface2:#1a291e;--stroke:#293a2d;--muted:#98a99c;--text:#f0f7f0;--green:#a3f078;--green-2:#80d953;--accent-ink:#0b190a;--soft-text:#bacdbb;--hero-a:#1d3220;--hero-b:#111b13;--hero-c:#0f1611;--hero-border:#3d5b3e;--tint-strong:#263b29;--tint-soft:#1b2820;--border-strong:#3d5b43;--dock-bg:#203420;--field-bg:#0c150f;--nav-bg:#0e1710ef;--timer-bg:#080d09;--modal-bg:#142018;--accent-2:#80d953;--accent-switch:#587e45;--toggle-bg:#334337;}
:root[data-theme="pink"]{--bg:#0c090d;--surface:#19131b;--surface2:#251a28;--stroke:#3b2b3b;--muted:#baa7b9;--text:#fff1f8;--green:#ff89b7;--green-2:#f66fa4;--accent-ink:#25101b;--soft-text:#e0c4d5;--hero-a:#362035;--hero-b:#211521;--hero-c:#130d14;--hero-border:#67405c;--tint-strong:#40263b;--tint-soft:#291c2b;--border-strong:#674359;--dock-bg:#38253a;--field-bg:#110c13;--nav-bg:#120b14ef;--timer-bg:#0c090d;--modal-bg:#241827;--accent-2:#f66fa4;--accent-switch:#7f4268;--toggle-bg:#493349;}
:root[data-theme="purple"]{--bg:#0b0910;--surface:#181320;--surface2:#251c2e;--stroke:#3c304a;--muted:#b7a9c9;--text:#f7f0ff;--green:#c6a0ff;--green-2:#ad80f3;--accent-ink:#1c0d2d;--soft-text:#d7c8e9;--hero-a:#342346;--hero-b:#22192f;--hero-c:#140f1c;--hero-border:#624677;--tint-strong:#3c2a50;--tint-soft:#2a2036;--border-strong:#644d7e;--dock-bg:#322444;--field-bg:#110d19;--nav-bg:#110d18ef;--timer-bg:#0b0910;--modal-bg:#241b30;--accent-2:#ad80f3;--accent-switch:#785a98;--toggle-bg:#493b58;}
:root[data-theme="blue"]{--bg:#080b11;--surface:#121b29;--surface2:#1a293a;--stroke:#293e56;--muted:#a2b7ce;--text:#eff6ff;--green:#79baff;--green-2:#56a2f5;--accent-ink:#091b30;--soft-text:#c3d7eb;--hero-a:#1d3856;--hero-b:#15293e;--hero-c:#0e1928;--hero-border:#3b638e;--tint-strong:#284765;--tint-soft:#1a2c42;--border-strong:#3e648c;--dock-bg:#223d59;--field-bg:#0c1623;--nav-bg:#0b1420ef;--timer-bg:#080b11;--modal-bg:#16263a;--accent-2:#56a2f5;--accent-switch:#456f99;--toggle-bg:#354759;}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.35;cursor:not-allowed}a{color:var(--green)}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(27px,6vw,36px);line-height:1.15;letter-spacing:-.05em;margin-bottom:8px}h2{font-size:19px;letter-spacing:-.03em;margin:0}h3{font-size:16px;margin:0}p{line-height:1.55}.small{font-size:12px}.muted{color:var(--muted)}.tiny{font-size:11px}.eyebrow{text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:.13em;color:var(--green)}.mono{font-variant-numeric:tabular-nums}.hidden{display:none!important}.shell{max-width:780px;padding:20px 17px 138px;margin:auto}.header{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.logo{display:flex;align-items:center;gap:10px}.logo-mark{width:39px;height:39px;border-radius:12px;display:grid;place-items:center;background:var(--green);color:var(--accent-ink)}.brand{font-weight:900;font-size:22px;letter-spacing:-.075em;line-height:1}.brand em{color:var(--green);font-style:normal}.tagline{font-size:9px;color:var(--muted);letter-spacing:.14em;font-weight:800;margin-top:6px}.icon{width:20px;height:20px;display:inline-block;stroke:currentColor;fill:none;stroke-linejoin:round;stroke-linecap:round;stroke-width:1.8;vertical-align:middle}.icon.sm{width:16px;height:16px}.icon.lg{width:25px;height:25px}.icon.xl{width:30px;height:30px}.round{border:1px solid var(--stroke);background:var(--surface);display:grid;place-items:center;border-radius:13px;width:42px;height:42px;flex:none}.panel{background:var(--surface);border:1px solid var(--stroke);border-radius:var(--radius);padding:17px;margin-bottom:14px}.hero{background:linear-gradient(140deg,var(--hero-a) 0%,var(--hero-b) 58%,var(--hero-c) 100%);border-color:var(--hero-border);padding:23px 20px}.hero h1{font-size:clamp(32px,8vw,46px);margin:15px 0 7px}.hero p{margin-bottom:20px;color:var(--soft-text)}.capsule,.pill{display:inline-flex;align-items:center;gap:5px;background:var(--tint-strong);color:var(--green);border:1px solid var(--border-strong);border-radius:999px;padding:5px 9px;font-weight:750;font-size:10px}.pill.dim{background:var(--tint-soft);color:var(--soft-text);border-color:var(--stroke)}.taglist{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:21px}.taglist span{font-size:11px;color:var(--soft-text);display:flex;align-items:center;gap:5px}.btn{border:1px solid var(--stroke);display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;padding:12px 15px;min-height:45px;font-weight:760;font-size:13px;background:var(--surface2);text-align:center;line-height:1.25}.btn:active,.tap:active{transform:scale(.985)}.btn.primary{background:var(--green);color:var(--accent-ink);border-color:var(--green)}.btn.quiet{background:transparent;color:var(--soft-text)}.btn.danger{color:var(--red);border-color:#704144;background:#2a1c20}.btn.wide{width:100%}.btn.slim{padding:8px 11px;min-height:36px}.btn.square{padding:8px;width:44px;height:44px;min-height:0}.btn.iconbtn{border:0;background:transparent;color:var(--soft-text);min-width:34px;min-height:35px;padding:6px}.btn.iconbtn:hover{color:var(--green)}.linkbtn{border:0;background:transparent;color:var(--green);font-size:12px;padding:7px 1px;font-weight:700;display:inline-flex;align-items:center;gap:4px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:28px 0 12px}.section-title h2{font-size:18px}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.stat{text-align:center;background:var(--surface);border:1px solid var(--stroke);padding:16px 7px;border-radius:16px}.stat strong{display:block;font-size:24px;letter-spacing:-.04em}.stat span{font-size:10px;color:var(--muted)}.row{display:flex;gap:10px;align-items:center}.row.between{justify-content:space-between}.grow{flex:1;min-width:0}.stack{display:flex;flex-direction:column;gap:10px}.divider{height:1px;background:var(--stroke);margin:13px 0}.listrow{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--stroke)}.listrow:last-child{border-bottom:0}.countbadge{display:grid;place-items:center;border:1px solid var(--stroke);background:var(--tint-soft);border-radius:12px;width:37px;height:37px;flex:none;color:var(--soft-text);font-size:13px;font-weight:800}.countbadge.current{background:var(--green);border-color:var(--green);color:var(--accent-ink)}.listrow strong{font-size:14px}.listrow p{font-size:11px;margin:5px 0 0;color:var(--muted)}.message{font-size:12px;color:var(--soft-text);line-height:1.6;border:1px solid var(--border-strong);border-radius:12px;padding:12px 13px;background:var(--tint-soft)}.mutedbox{background:var(--tint-soft);border:1px solid var(--stroke);border-radius:13px;padding:13px}.backline{display:flex;align-items:center;justify-content:space-between;margin:8px 0 16px}.backline .linkbtn{color:var(--soft-text)}.progress-track{height:5px;border-radius:99px;background:var(--stroke);overflow:hidden;margin-top:13px}.progress-track>div{height:100%;background:var(--green);border-radius:99px;transition:width .18s}.workout-header h1{margin:10px 0 5px}.workout-header .row{font-size:11px;color:var(--soft-text);gap:12px;flex-wrap:wrap}.workout-header{margin-bottom:17px}.exercise-head{display:flex;justify-content:space-between;gap:9px;align-items:start;margin-bottom:14px}.exercise-head h3{margin:0 0 4px;font-size:16px;line-height:1.3}.exercise-head p{font-size:11px;color:var(--muted);margin:0}.ex-tools{display:flex;align-items:center;gap:0;flex:none}.ex-tools .btn.iconbtn{min-width:33px}.side-label{font-size:10px;color:var(--green);display:inline-flex;align-items:center;gap:5px;margin-top:7px}.set-head,.set-row{display:grid;grid-template-columns:23px minmax(0,1.25fr) minmax(0,.95fr) 34px;gap:6px;align-items:center}.set-head{font-size:9px;color:var(--muted);font-weight:760;letter-spacing:.06em;text-align:center;margin-bottom:5px}.set-row{margin:9px 0}.set-row.completed{opacity:.65}.setnum{font-weight:800;font-size:12px;text-align:center;color:var(--soft-text)}.stepper{display:flex;align-items:center;min-width:0;border:1px solid var(--border-strong);background:var(--field-bg);border-radius:11px;height:43px}.stepper button{width:28px;align-self:stretch;border:0;background:none;color:var(--green);font-size:19px;font-weight:600;flex-shrink:0;padding:0}.stepper input{min-width:0;flex:1;width:20px;height:38px;text-align:center;background:transparent;border:0;color:var(--text);font-size:15px;font-weight:780;font-variant-numeric:tabular-nums;padding:0;-moz-appearance:textfield}.stepper input::-webkit-inner-spin-button,.stepper input::-webkit-outer-spin-button{appearance:none;margin:0}.stepper input:focus{outline:none;color:var(--green)}.checkset{background:var(--tint-strong);color:var(--accent-2);border:1px solid var(--border-strong);width:34px;height:40px;border-radius:10px;display:grid;place-items:center}.completed .checkset{background:var(--green);color:var(--accent-ink);border-color:var(--green)}.subactions{display:flex;gap:15px;align-items:center;flex-wrap:wrap;margin-top:10px}.lasttime{border-top:1px solid var(--stroke);padding-top:12px;margin-top:12px;font-size:11px;color:var(--soft-text)}.insight{display:flex;gap:8px;align-items:flex-start;font-size:11px;color:var(--soft-text);background:var(--tint-soft);padding:10px 11px;border-radius:10px;margin-top:10px}.insight .icon{color:var(--green);flex:none}.extras{margin-top:18px}.extras .listrow{padding:10px 0}.notes{resize:vertical;min-height:72px}.finishbar{position:relative;margin:21px 0 12px}.tabbar{position:fixed;z-index:45;bottom:0;left:0;right:0;background:var(--nav-bg);border-top:1px solid var(--stroke);backdrop-filter:blur(15px);padding-bottom:env(safe-area-inset-bottom);display:flex;justify-content:center}.tabbar-inner{display:flex;max-width:780px;width:100%;justify-content:space-around}.tabbar button{border:0;background:transparent;display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;min-width:55px;height:66px;font-size:10px;color:var(--muted)}.tabbar button.active{color:var(--green)}.tabbar button.active .icon{stroke-width:2.5}.timer-dock{position:fixed;z-index:50;bottom:calc(75px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:var(--dock-bg);border:1px solid var(--border-strong);border-radius:14px;box-shadow:0 8px 45px #0009;display:flex;align-items:center;gap:15px;padding:9px 11px;width:min(calc(100% - 32px),560px)}.timer-dock .left{flex:1;display:flex;align-items:center;gap:10px}.timer-dock .clocknum{font-size:20px;font-weight:850;color:var(--green);font-variant-numeric:tabular-nums}.timer-full{position:fixed;inset:0;z-index:100;background:var(--timer-bg);display:flex;flex-direction:column;justify-content:space-between;padding:calc(23px + env(safe-area-inset-top)) 20px calc(23px + env(safe-area-inset-bottom));align-items:center}.timer-full .top{width:100%;display:flex;justify-content:space-between;align-items:center}.timer-full .dial{position:relative;width:min(78vw,360px);aspect-ratio:1}.timer-full .dial svg{width:100%;height:100%}.timer-full .digits{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;font-variant-numeric:tabular-nums}.timer-full .digits strong{font-size:clamp(55px,17vw,90px);letter-spacing:-.08em}.timer-full .bottom{width:min(100%,420px);display:flex;flex-direction:column;gap:12px}.timer-full .controls{display:flex;justify-content:center;gap:10px}.timer-full .controls .btn{min-width:97px}.overlay{position:fixed;inset:0;z-index:80;background:#000b;display:flex;justify-content:center;align-items:end}.dialog{background:var(--modal-bg);border:1px solid var(--border-strong);border-radius:21px 21px 0 0;width:min(100%,640px);max-height:91dvh;overflow-y:auto;padding:22px 19px calc(24px + env(safe-area-inset-bottom));box-shadow:0 -10px 70px #000a}.dialog h2{margin-bottom:8px}.dialog p{font-size:12px;color:var(--muted);margin-bottom:16px}.dialog .top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}.field{width:100%;min-height:44px;border-radius:11px;border:1px solid var(--border-strong);background:var(--field-bg);color:var(--text);padding:11px 12px;font-size:14px;outline:none}.field:focus{border-color:var(--green)}textarea.field{min-height:70px;resize:vertical}.field-label{display:block;font-size:11px;color:var(--muted);font-weight:700;margin-bottom:7px}.fieldgroup{margin-bottom:14px}.fieldline{display:grid;grid-template-columns:1fr 1fr;gap:10px}.settingsrow{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--stroke)}.settingsrow:last-child{border:0}.settingsrow strong{font-size:13px}.settingsrow p{font-size:11px;margin:4px 0 0;color:var(--muted)}.settingsrow select{max-width:137px;min-height:40px;padding:8px 7px;background:var(--field-bg);color:var(--text);border:1px solid var(--border-strong);border-radius:10px;font-size:12px}.toggle{width:48px;height:29px;background:var(--toggle-bg);border:1px solid var(--border-strong);border-radius:30px;position:relative;flex:none}.toggle:after{content:"";position:absolute;top:3px;left:3px;background:var(--muted);border-radius:50%;width:21px;height:21px;transition:left .18s}.toggle.on{background:var(--accent-switch);border-color:var(--green)}.toggle.on:after{left:22px;background:var(--green)}.builder-workout{border:1px solid var(--stroke);border-radius:14px;padding:13px;margin-bottom:12px;background:var(--tint-soft)}.builder-workout h3{font-size:15px}.builder-sets{font-size:11px;color:var(--muted)}.builder-ex{display:flex;align-items:center;gap:7px;padding:9px 0;border-top:1px solid var(--stroke)}.builder-ex:first-child{border:0}.builder-ex .title{flex:1;min-width:0;font-size:13px}.builder-ex .title small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.builder-ex .btn.iconbtn{min-width:29px}.builder-ex .mini-field{width:54px;padding:7px 3px;text-align:center;border:1px solid var(--border-strong);background:var(--field-bg);color:var(--text);border-radius:9px;font-size:12px}.chiplist{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.chipbtn{border:1px solid var(--border-strong);border-radius:99px;background:var(--surface2);padding:9px 13px;font-size:12px;color:var(--soft-text)}.chipbtn.active{background:var(--green);color:var(--accent-ink);border-color:var(--green)}.catalog-item{display:flex;align-items:center;gap:10px;width:100%;padding:12px 5px;text-align:left;border:0;background:transparent;border-bottom:1px solid var(--stroke)}.catalog-item .label{flex:1;font-size:13px}.catalog-item small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.empty{text-align:center;padding:24px 17px;color:var(--muted);font-size:13px}.empty .icon{width:34px;height:34px;color:var(--green);display:block;margin:0 auto 10px}.chartbox{width:100%;overflow:hidden}.chartbox svg{display:block;width:100%;height:190px}.chartbox text{fill:var(--muted);font-size:11px}.chartbox path{stroke:var(--green);stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round}.chartbox circle{fill:var(--green)}.historycard{width:100%;text-align:left;background:var(--surface);border:1px solid var(--stroke);border-radius:15px;padding:15px;margin-bottom:10px}.historycard strong{font-size:15px}.historycard small{color:var(--muted)}.photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.photo-card{background:var(--surface);border:1px solid var(--stroke);border-radius:13px;padding:8px}.photo-card img,.compare-img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:9px;background:var(--surface2)}.photo-card p{font-size:11px;margin:8px 2px;color:var(--soft-text)}.compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.compare-grid select{max-width:100%;margin-bottom:8px}.photo-upload{position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer}.photo-upload input,.file-hidden{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.toast{position:fixed;bottom:calc(82px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:var(--tint-strong);color:var(--soft-text);border:1px solid var(--border-strong);border-radius:12px;padding:12px 15px;z-index:120;text-align:center;min-width:230px;max-width:calc(100% - 32px);box-shadow:0 9px 25px #0009;font-size:12px}.help details{padding:13px 0;border-bottom:1px solid var(--stroke)}.help summary{cursor:pointer;font-size:13px;font-weight:760}.help p{font-size:12px;color:var(--muted);margin:9px 0 0}.badge-good{color:var(--green)}.badge-warn{color:var(--amber)}.screen-title{margin-bottom:10px}.screen-title+p{font-size:12px;color:var(--muted);margin-bottom:20px}@media(min-width:700px){.shell{padding:27px 28px 135px}.panel{padding:21px}.dialog{border-radius:20px;align-self:center}.overlay{align-items:center}.hero{padding:29px}.stepper button{width:36px}.set-head,.set-row{grid-template-columns:42px 1.2fr 1.1fr 48px;gap:12px}.set-row .stepper{height:48px}.checkset{width:44px;height:45px}}@media(max-width:350px){.shell{padding-left:10px;padding-right:10px}.panel{padding:12px}.stepper button{width:25px}.stepper input{font-size:13px}.set-head,.set-row{gap:4px}}


/* Appearance: a quiet, accessible colour picker in Settings. */
.theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}
.theme-choice{width:100%;min-height:60px;display:flex;align-items:center;gap:10px;text-align:left;border:1px solid var(--stroke);border-radius:13px;background:var(--surface2);padding:10px 11px;font-size:12px;font-weight:750;color:var(--text);transition:border-color .12s,background .12s}
.theme-choice .theme-swatch{width:26px;height:26px;border-radius:50%;border:5px solid #0d0e11;box-shadow:0 0 0 1px #ffffff26;background:var(--swatch);flex:none}
.theme-choice .theme-label{flex:1;min-width:0}
.theme-choice .theme-selected{display:none;color:var(--green)}
.theme-choice[aria-pressed="true"]{border-color:var(--green);background:var(--tint-soft)}
.theme-choice[aria-pressed="true"] .theme-selected{display:inline-flex}
.theme-choice:focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:350px){.theme-choice{gap:7px;padding:9px 7px}}
