:root{
  --ui:"Avenir Next","PingFang SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  --num:var(--ui);
  --radius-card:20px;--radius-button:12px;--radius-input:6px;
  --tabbar-height:calc(60px + env(safe-area-inset-bottom,0px));
  --ios:cubic-bezier(.32,.72,0,1);
}
[data-theme="dark"]{
  --page:#050706;--panel:#101413;--panel-2:#181D1B;
  --bg:#0A0D0C;--s1:#131816;--s2:#1B211F;--s3:#262E2B;--line:rgba(255,255,255,.07);
  --t1:#EEF3F0;--t2:rgba(238,243,240,.64);--t3:rgba(238,243,240,.46);
  --acc:#5BC4A4;--acc-ink:#04221A;--acc-soft:rgba(91,196,164,.14);--acc-line:rgba(91,196,164,.35);
  --amber:#E3A75B;--amber-soft:rgba(227,167,91,.12);--red:#E8735C;--red-soft:rgba(232,115,92,.13);
  --map-base:#2A312E;--map-skin:#353D3A;--glass:rgba(38,46,43,.72);
  --shadow-card:0 9px 24px -15px rgba(0,0,0,.4);
  --shadow-sheet:0 -10px 40px rgba(0,0,0,.25);
}
[data-theme="light"]{
  --page:#EDF2EB;--panel:#FFFFFF;--panel-2:#F0F4ED;
  --bg:#F7F9F5;--s1:#FFFFFF;--s2:#EEF3E9;--s3:#DFEADC;--line:#E1E7DF;
  --t1:#183B2F;--t2:#637267;--t3:#68776B;
  --acc:#21533D;--acc-ink:#FFFFFF;--acc-soft:#EEF5E7;--acc-line:#C4D6B7;
  --amber:#9F653B;--amber-soft:rgba(159,101,59,.10);--red:#B8442F;--red-soft:rgba(184,68,47,.09);
  --map-base:#DFE6DA;--map-skin:#EFF3EA;--glass:rgba(247,249,245,.88);
  --shadow-card:0 9px 24px -15px #1D422E40;
  --shadow-sheet:0 -12px 36px -12px #1C3D313D,0 -2px 4px #1C3D3105;
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;text-align:inherit}
textarea,input{font:inherit;color:inherit}
a{color:var(--acc);text-decoration:none}
:focus-visible{outline:2px solid var(--amber);outline-offset:2px}
body{background:var(--page);color:var(--t1);font:15px/1.5 var(--ui);font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased;transition:background .3s}
.num{font-family:var(--num);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.wrap{display:flex;justify-content:center;align-items:flex-start;gap:28px;padding:24px 20px 40px}

/* ---------- side panels ---------- */
.panel{width:340px;flex:none;display:flex;flex-direction:column;gap:12px;font-size:13.5px;line-height:1.6;position:sticky;top:24px}
.panel.r{width:320px}
.pbox{background:var(--panel);border-radius:var(--radius-card);padding:14px 16px}
.pbox h1{font-size:18px;font-weight:700;line-height:1.35}
.pbox h3{font-size:13.5px;font-weight:700;margin-bottom:6px}
.pbox p{color:var(--t2)}
.pbox p+p{margin-top:6px}
.lbl{font-size:12px;font-weight:600;color:var(--t3);margin:8px 0 4px}
.seg{display:flex;flex-wrap:wrap;gap:6px}
.seg button{border:1px solid var(--line);border-radius:999px;padding:4px 11px;font-size:12.5px;background:var(--panel-2);color:var(--t2)}
.seg button.on{background:var(--t1);color:var(--bg);border-color:var(--t1)}
.jump{display:flex;flex-wrap:wrap;gap:5px}
.jump button{border-radius:8px;background:var(--panel-2);padding:4px 9px;font-size:12.5px;color:var(--t1)}
.jump button:hover{background:var(--s3)}
.note ul{padding-left:18px;color:var(--t2)}
.note li+li{margin-top:5px}
.note li b{color:var(--t1)}
.note .open li::marker{color:var(--amber)}
.ia{width:100%;border-collapse:collapse;font-size:12.5px}
.ia td,.ia th{border-top:1px solid var(--line);padding:5px 4px;vertical-align:top;text-align:left}
.ia th{color:var(--t3);font-weight:600}
.ia td:first-child{white-space:nowrap;color:var(--t1);font-weight:600}
.ia td{color:var(--t2)}
@media (max-width:1180px){.wrap{flex-wrap:wrap}.panel{position:static;width:min(426px,100%)}.panel.r{width:min(426px,100%)}.device{order:-1}}

/* ---------- device ---------- */
.device{position:sticky;top:24px;flex:none;width:426px;height:898px;border-radius:64px;background:#0B0B0C;padding:12px;box-shadow:0 30px 70px rgba(0,0,0,.35),inset 0 0 0 2px #2b2b2e}
.phone{position:relative;width:402px;height:874px;border-radius:54px;overflow:hidden;background:#000;isolation:isolate}
@media (max-width:460px){.device{width:100%;height:100dvh;padding:0;border-radius:0;position:static}.phone{width:100%;height:100%;border-radius:0}.wrap{padding:0;gap:16px}}
.island{position:absolute;top:11px;left:50%;transform:translateX(-50%);width:124px;height:36px;border-radius:20px;background:#000;z-index:90}
.statusbar{position:absolute;top:0;left:0;right:0;height:54px;display:flex;align-items:center;justify-content:space-between;padding:6px 34px 0 46px;z-index:80;font-weight:600;font-size:16px;color:var(--t1);pointer-events:none}
.statusbar svg{fill:currentColor}
.homeind{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);width:140px;height:5px;border-radius:3px;background:var(--t1);opacity:.85;z-index:95;pointer-events:none}
.stage{position:absolute;inset:0;background:var(--bg);overflow:hidden;border-radius:54px;transform-origin:50% 0;transition:transform .38s var(--ios),border-radius .38s var(--ios),filter .38s}
.phone.sheet-on .stage{transform:translateY(14px) scale(.93);border-radius:22px;filter:brightness(.7)}
[data-theme="light"] .phone.sheet-on .stage{filter:brightness(.88)}
.scr{position:absolute;inset:0;overflow-y:auto;overflow-x:hidden;background:var(--bg);scrollbar-width:none}
.scr::-webkit-scrollbar{display:none}
.scr.enter{animation:pushIn .4s var(--ios)}
.scr.under-out{animation:underOut .4s var(--ios) forwards}
.scr.under-in{animation:underIn .36s var(--ios)}
.scr.leave{animation:pushOut .34s var(--ios) forwards;z-index:5}
@keyframes pushIn{from{transform:translateX(100%);box-shadow:-10px 0 30px rgba(0,0,0,.25)}to{transform:none}}
@keyframes pushOut{to{transform:translateX(100%)}}
@keyframes underOut{to{transform:translateX(-28%);filter:brightness(.8)}}
@keyframes underIn{from{transform:translateX(-28%);filter:brightness(.8)}to{transform:none}}
.edge{position:absolute;left:0;top:100px;bottom:90px;width:22px;z-index:30;cursor:grab}
.top-pad{height:54px}
.tabpad{height:110px}

/* nav */
.nav{position:sticky;top:0;z-index:20;height:112px;padding:58px 16px 10px;display:flex;align-items:center;gap:8px;background:linear-gradient(to bottom,var(--bg) 72%,transparent)}
.nav .title{position:absolute;left:70px;right:70px;top:68px;text-align:center;font-size:17px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.round{flex:none;width:44px;height:44px;border-radius:999px;display:grid;place-items:center;background:var(--glass);backdrop-filter:blur(18px) saturate(1.6);-webkit-backdrop-filter:blur(18px) saturate(1.6);border:.5px solid var(--line)}
.round svg,.ic{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.big-h{padding:62px 20px 6px;display:flex;align-items:flex-end;gap:10px}
.big-h h1{font-size:32px;font-weight:700;letter-spacing:-.02em;line-height:1.1}
.big-h .r{margin-left:auto}
.sub-h{padding:0 20px 14px;font-size:13.5px;color:var(--t3)}
.press{transition:transform .15s,opacity .15s}
.press:active{transform:scale(.97);opacity:.85}

/* tabbar */
.tabbar{position:absolute;left:0;right:0;bottom:0;z-index:40;display:grid;grid-template-columns:repeat(4,1fr);padding:8px 0 30px;border-top:.5px solid var(--line);background:color-mix(in srgb,var(--bg) 82%,transparent);backdrop-filter:blur(18px) saturate(1.6);-webkit-backdrop-filter:blur(18px) saturate(1.6);transition:transform .3s var(--ios)}
.tabbar.hide{transform:translateY(110%)}
/* Keep every regular screen above the tab bar; immersive workouts keep the full stage. */
.phone>.tabbar{height:var(--tabbar-height)}
.phone:has(>.tabbar:not(.hide))>.stage{bottom:var(--tabbar-height)}
.phone:has(>.tabbar:not(.hide))>.stage .tabpad{height:20px}
.tabbar button{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10.5px;color:var(--t3)}
.tabbar button.on{color:var(--acc)}
.tabbar svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* sheets / cover / toast / keypad */
#sheets{position:absolute;inset:0;z-index:60;pointer-events:none}
#sheets .backdrop{position:absolute;inset:0;background:rgba(0,0,0,.0);transition:background .38s;pointer-events:auto}
#sheets.on .backdrop{background:rgba(0,0,0,.28)}
.sheet{position:absolute;left:0;right:0;bottom:0;height:calc(100% - 64px);border-radius:22px 22px 0 0;background:var(--bg);transform:translateY(100%);transition:transform .4s var(--ios);display:flex;flex-direction:column;pointer-events:auto;box-shadow:var(--shadow-sheet)}
#sheets.on .sheet{transform:none}
.sheet.dragging{transition:none}
.grab{flex:none;height:22px;display:grid;place-items:center;cursor:grab;touch-action:none}
.grab::before{content:"";width:38px;height:5px;border-radius:3px;background:var(--s3)}
.sheet-body{flex:1;overflow:auto;scrollbar-width:none;padding-bottom:30px;transition:padding .3s var(--ios)}
.sheet-body::-webkit-scrollbar{display:none}
.phone.kbup .sheet-body{padding-bottom:330px}
#cover{position:absolute;inset:0;z-index:55;pointer-events:none}
#cover .scr{pointer-events:auto}
.scr.cover-in{animation:coverIn .45s var(--ios)}
.scr.cover-out{animation:coverOut .34s var(--ios) forwards}
@keyframes coverIn{from{transform:translateY(100%)}to{transform:none}}
@keyframes coverOut{to{transform:translateY(100%)}}
.toast{position:absolute;top:58px;left:50%;z-index:85;transform:translate(-50%,-20px);opacity:0;background:var(--t1);color:var(--bg);border-radius:999px;padding:8px 16px;font-size:13.5px;font-weight:600;white-space:nowrap;transition:transform .35s var(--ios),opacity .25s;pointer-events:none}
.toast.on{transform:translate(-50%,0);opacity:1}
.kbd{position:absolute;left:0;right:0;bottom:0;z-index:70;background:var(--s2);padding:10px 8px 34px;transform:translateY(100%);transition:transform .32s var(--ios);border-top:.5px solid var(--line)}
.phone.kbup .kbd{transform:none}
.kbd .disp{display:flex;align-items:center;gap:10px;padding:2px 8px 10px}
.kbd .disp span{font-size:13px;color:var(--t2)}
.kbd .disp b{margin-left:auto;font:650 26px var(--num);min-width:60px;text-align:right}
.kbd .disp b::after{content:"";display:inline-block;width:2px;height:24px;background:var(--acc);margin-left:3px;vertical-align:-3px;animation:blink 1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}
.kbd .keys{display:grid;grid-template-columns:repeat(3,1fr) 92px;gap:6px}
.kbd .k{height:50px;border-radius:10px;background:var(--s1);font:500 23px var(--num);box-shadow:0 1px 0 rgba(0,0,0,.25)}
.kbd .k:active{background:var(--s3)}
.kbd .k.m{font:500 15px var(--ui);background:var(--s3)}
.kbd .done{grid-row:span 4;height:auto;background:var(--acc);color:var(--acc-ink);font:650 16px var(--ui)}

/* ---------- train root ---------- */
.who-chip{display:flex;align-items:center;gap:6px;background:var(--s2);border-radius:999px;padding:4px 10px 4px 4px;font-size:13px;font-weight:600}
.av{width:28px;height:28px;border-radius:50%;background:var(--acc-soft);color:var(--acc);display:grid;place-items:center;font-size:13px;font-weight:700;flex:none}
.av.lg{width:56px;height:56px;font-size:22px}
.day{margin:0 12px 10px;border-radius:var(--radius-card);background:var(--s1);padding:18px 18px 16px;display:block;width:calc(100% - 24px);position:relative;overflow:hidden}
.day .nm{font-size:22px;font-weight:700;letter-spacing:-.01em}
.day .ex{font-size:13px;color:var(--t2);margin-top:4px;line-height:1.5}
.day .ex,.day .last{position:relative;z-index:1;padding-right:104px}
.day .last{font-size:12px;color:var(--t3);margin-top:10px}
.day .go{position:absolute;right:16px;top:18px;width:36px;height:36px;border-radius:50%;background:var(--s2);display:grid;place-items:center}
.day.next{background:linear-gradient(140deg,color-mix(in srgb,var(--s3) 80%,var(--s1)),var(--s1) 60%)}
.day.next,.face,.card{box-shadow:var(--shadow-card)}
.day.next .go{background:var(--acc);color:var(--acc-ink)}
.day .tag{display:inline-block;font-size:11px;font-weight:700;color:var(--acc);background:var(--acc-soft);border-radius:6px;padding:1px 7px;margin-bottom:8px}
.day .figs{position:absolute;right:52px;bottom:-30px;height:150px;opacity:.9;pointer-events:none;-webkit-mask-image:linear-gradient(to bottom,#000 50%,transparent);mask-image:linear-gradient(to bottom,#000 50%,transparent)}

/* ---------- workout deck ---------- */
.whead{display:flex;align-items:center;gap:10px;padding:58px 16px 0}
.whead .ttl{font-size:18px;font-weight:650}
.whead .clock{color:var(--t3);font-size:14px}
.rest{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--acc);background:var(--acc-soft);border-radius:999px;padding:6px 12px;opacity:0;transform:translateY(-4px);transition:opacity .25s,transform .25s}
.rest.on{opacity:1;transform:none}
.pager{display:flex;gap:6px;padding:12px 22px 12px}
.pager i{height:4px;width:16px;border-radius:2px;background:var(--s3);transition:width .3s var(--ios),background .3s}
.pager i.on{width:32px;background:var(--t1)}
.deck{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 22px 10px;scrollbar-width:none;scroll-padding:0 22px}
.deck::-webkit-scrollbar{display:none}
.slot{flex:none;width:330px;height:572px;scroll-snap-align:start;perspective:1400px}
.card3d{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .7s var(--ios)}
.slot.flipped .card3d{transform:rotateY(180deg)}
.face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:var(--radius-card);background:var(--s1);padding:22px 20px 18px;display:flex;flex-direction:column;overflow:hidden}
.face.back{transform:rotateY(180deg);padding:14px 14px 16px}
.slot.flat .card3d,.slot.flat .face.back{transform:none;transition:none}
.slot.flat .face.front{visibility:hidden}
.face.front>*{position:relative;z-index:1}
.face.front>.hero-fig{position:absolute;z-index:0;right:-34px;top:58px;height:420px;width:auto;pointer-events:none;-webkit-mask-image:linear-gradient(to bottom,#000 60%,transparent 92%);mask-image:linear-gradient(to bottom,#000 60%,transparent 92%)}
.k{font-size:12px;color:var(--t3)}
.f-name{font-size:30px;font-weight:700;letter-spacing:-.02em;margin:6px 0 2px;line-height:1.15;display:inline-flex;align-items:center;gap:4px}
.f-name .chev{width:18px;height:18px;color:var(--t3)}
.f-sub{font-size:13px;color:var(--t3)}
.target{margin:22px 0 4px;display:flex;align-items:baseline;gap:6px}
.target .w{font-size:68px;font-weight:650;line-height:.9;letter-spacing:-.04em}
.target .u{font-size:18px;color:var(--t2);font-weight:600}
.reps{font-size:20px;font-weight:600;color:var(--t2)}
.reps b{color:var(--t1);font-weight:650}
.first{margin:22px 0 4px;font-size:15px;color:var(--t2);max-width:170px;line-height:1.5}
.first b{display:block;font-size:40px;color:var(--t1);font-family:var(--num);line-height:1;margin-bottom:8px}
.lastline{font-size:12px;color:var(--t3);margin-top:6px}
.kp{margin:auto 0 14px;padding:2px 0 2px 14px;border-left:2px solid var(--acc);font-size:16px;line-height:1.5;font-weight:500}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}
.chips a,.chips span{font-size:12.5px;color:var(--t2);background:var(--s2);border-radius:999px;padding:4px 10px}
.f-foot{display:flex;align-items:center;gap:10px}
.pips{display:flex;gap:6px;flex-wrap:nowrap;min-width:0}
.pips.many .pip{width:30px;height:30px;font-size:12px}
.pip{width:34px;height:34px;border-radius:50%;border:1.5px solid var(--s3);font:600 13px var(--num);color:var(--t3);display:grid;place-items:center;transition:background .2s,border-color .2s,color .2s}
.pip.d{background:var(--acc);border-color:var(--acc);color:var(--acc-ink);animation:pop .3s var(--ios)}
@keyframes pop{0%{transform:scale(.8)}60%{transform:scale(1.08)}100%{transform:scale(1)}}
.flipbtn{flex:none;white-space:nowrap;margin-left:auto;background:var(--s2);border-radius:999px;height:36px;padding:0 13px 0 10px;display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600}
.flipbtn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.demo{position:relative;border-radius:var(--radius-button);overflow:hidden;background:#131816;aspect-ratio:4/3.4;flex:none}
.demo img{width:100%;height:100%;display:block;object-fit:cover}
.demo .cap{position:absolute;left:10px;bottom:9px;font-size:11.5px;color:rgba(238,243,240,.85);background:rgba(10,13,12,.55);backdrop-filter:blur(6px);border-radius:8px;padding:3px 8px}
.demo.d3{background:radial-gradient(circle at 50% 35%,#fff 0,#e9eeeb 70%)}
.demo.d3 iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.demo.d3 .wait{position:absolute;inset:0;display:grid;place-items:center;font-size:13px;color:#6b7a74}
.demo.none{display:grid;place-items:center;background:var(--s2);color:var(--t3);font-size:13px;text-align:center;padding:20px;aspect-ratio:auto;height:120px}
.maps{display:flex;gap:10px;align-items:flex-start;margin-top:12px;flex:1;min-height:0}
.maps .fig{display:flex;gap:2px;flex:none}
.maps canvas{height:178px;width:auto;display:block}
.demo.none+.maps canvas{height:300px}
.legend{flex:1;font-size:12px;color:var(--t2);display:flex;flex-direction:column;gap:6px;padding-top:4px}
.legend .r{display:flex;gap:7px;align-items:flex-start;line-height:1.35}
.legend .r i{flex:none;width:9px;height:9px;border-radius:3px;margin-top:3px}
.legend .r b{color:var(--t1);font-weight:600;font-size:11px;display:block}
.legend .src{font-size:10.5px;color:var(--t3);margin-top:4px}
.b-foot{display:flex;align-items:center;gap:10px;margin-top:10px}
.b-foot a,.b-foot button.lnk{font-size:13px;font-weight:600;color:var(--acc)}
.after{margin:4px 22px 0;height:56px;width:calc(100% - 44px);border-radius:var(--radius-button);background:var(--acc);color:var(--acc-ink);font-size:16px;font-weight:650;display:flex;align-items:center;justify-content:center;gap:8px}

/* ---------- log sheet ---------- */
.sh-head{display:flex;align-items:center;gap:10px;padding:6px 18px 4px}
.sh-head .ttl{font-size:22px;font-weight:700}
.who{margin-left:auto;display:flex;background:var(--s2);border-radius:999px;padding:3px}
.who button{border-radius:999px;padding:4px 12px;font-size:13px;color:var(--t2)}
.who button.on{background:var(--t1);color:var(--bg);font-weight:600}
.sh-date{padding:0 18px 12px;font-size:13px;color:var(--t3)}
.say{margin:0 12px 14px;border-radius:var(--radius-card);background:var(--s1);padding:12px 14px}
.say label{font-size:12px;color:var(--t3);display:block;margin-bottom:4px}
.say textarea{width:100%;border:0;background:none;resize:none;outline:none;font-size:15.5px;line-height:1.55;min-height:72px}
.say .bar{display:flex;align-items:center;gap:8px;margin-top:6px}
.say .bar span{font-size:12px;color:var(--t3)}
.say .bar button{margin-left:auto;background:var(--t1);color:var(--bg);border-radius:999px;padding:6px 14px;font-size:13px;font-weight:600}
.parsed{padding:0 12px}
.ent{border-radius:var(--radius-card);background:var(--s1);margin-bottom:8px;overflow:hidden}
.ent.rise{animation:rise .45s var(--ios) both}
@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.ent .row{display:flex;align-items:center;gap:10px;padding:13px 14px;width:100%}
.ent .nm{font-size:16px;font-weight:600;display:flex;align-items:center;gap:6px}
.tg{font-size:10.5px;font-weight:600;border-radius:5px;padding:1px 6px;color:var(--t3);background:var(--s2)}
.tg.lib{color:var(--acc);background:var(--acc-soft)}
.ent .det{font-size:12px;color:var(--t3);margin-top:2px}
.ent .val{margin-left:auto;text-align:right;flex:none}
.ent .val b{font-size:19px;font-weight:650}
.ent .val small{font-size:12px;color:var(--t3);font-family:var(--ui)}
.ent .val div{font-size:12px;color:var(--t2)}
.ent .more{display:grid;grid-template-rows:0fr;transition:grid-template-rows .35s var(--ios)}
.ent.open .more{grid-template-rows:1fr}
.ent .more>div{overflow:hidden}
.ent .in{padding:0 14px 14px;border-top:1px solid var(--line)}
.ent .lb{font-size:11.5px;color:var(--t3);margin:10px 0 6px;display:flex;justify-content:space-between}
.ent .lb button{color:var(--acc);font-weight:600}
.cells{display:flex;gap:6px;flex-wrap:wrap}
.cell{flex:1;min-width:52px;border-radius:var(--radius-input);background:var(--s2);height:46px;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.05}
.cell b{font:650 17px var(--num)}
.cell span{font-size:10px;color:var(--t3)}
.cell.edit{box-shadow:inset 0 0 0 1.5px var(--acc)}
.cell.low b{color:var(--amber)}
.rirs{display:flex;gap:6px}
.rirs button{flex:1;border-radius:var(--radius-input);background:var(--s2);height:36px;font:600 15px var(--num);color:var(--t2)}
.rirs button.on{background:var(--acc);color:var(--acc-ink)}
.rirs button.skip{flex:1.4;font:500 12px var(--ui)}
.rirs button.skip.on{background:var(--s3);color:var(--t1)}
.read{font-size:12px;color:var(--t3);margin-top:10px}
.read button{font-weight:600;color:var(--acc)}
.enote{font-size:12.5px;color:var(--t2);margin-top:8px;padding-left:10px;border-left:2px solid var(--t3)}
.save,.cta,.rirs button,.kbd .k,.who button,.seg button,.cell{text-align:center}
.save{margin:6px 12px 10px;height:56px;width:calc(100% - 24px);border-radius:var(--radius-button);background:var(--acc);color:var(--acc-ink);font-size:16px;font-weight:650}
.save:disabled{opacity:.4}

/* ---------- summary (cover) ---------- */
.sum-x{position:absolute;right:16px;top:58px;z-index:3}
.sum-hd{padding:66px 24px 0;color:var(--t2);font-size:13.5px}
.hero{padding:6px 24px 18px}
.hero .big{font-size:72px;font-weight:650;line-height:1;letter-spacing:-.03em}
.hero .big small{font-size:20px;font-weight:600;color:var(--t2);margin-left:6px;letter-spacing:0}
.hero .sub{margin-top:8px;color:var(--t2);font-size:14px}
.vol{margin:0 24px 16px}
.vol .rw{display:flex;justify-content:space-between;font-size:12.5px;color:var(--t2);margin-bottom:8px}
.vol .bar{position:relative;height:8px;border-radius:4px;background:var(--s2)}
.vol .bar i{position:absolute;left:0;top:0;bottom:0;border-radius:4px;background:var(--acc);transform-origin:left;animation:grow .9s var(--ios) .2s both}
@keyframes grow{from{transform:scaleX(0)}}
.vol .bar .zone{position:absolute;top:-4px;bottom:-4px;border-left:1.5px dashed var(--t3);border-right:1.5px dashed var(--t3)}
.sec{font-size:12px;font-weight:600;color:var(--t3);letter-spacing:.06em;padding:8px 24px 8px}
.line{display:flex;align-items:center;gap:12px;padding:12px 24px;border-top:1px solid var(--line);width:100%}
.lines .line:last-child{border-bottom:1px solid var(--line)}
.line .nm{font-size:15.5px;font-weight:600}
.line .meta{font-size:12px;color:var(--t3)}
.line .r{margin-left:auto;text-align:right}
.line .r .v{font-size:19px;font-weight:600}
.line .r .v small{font-size:12px;color:var(--t3);font-weight:500;font-family:var(--ui)}
.dots{display:flex;gap:3px;justify-content:flex-end;margin-top:4px}
.dots i{width:14px;height:4px;border-radius:2px;background:var(--acc)}
.dots i.lo{background:var(--amber)}
.quote{margin:6px 24px 0;padding:8px 0 8px 12px;border-left:2px solid var(--t3);color:var(--t2);font-size:13.5px}
.next{margin:0 12px 10px;padding:14px 16px;border-radius:var(--radius-card);background:var(--s1)}
.next .t{display:flex;align-items:baseline;gap:8px}
.next .t b{font-size:15px;font-weight:600}
.next .t .act{margin-left:auto;font-size:13px;font-weight:600;color:var(--acc)}
.next p{margin-top:5px;font-size:12.5px;color:var(--t2);line-height:1.5}
.cta{margin:14px 12px 40px;height:56px;width:calc(100% - 24px);border-radius:var(--radius-button);background:var(--acc);color:var(--acc-ink);font-size:16px;font-weight:650}

/* ---------- history ---------- */
.card{margin:0 12px 12px;padding:16px;border-radius:var(--radius-card);background:var(--s1)}
.card .h{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:12px}
.card .h b{font-size:15px;font-weight:600}
.card .h span{font-size:12px;color:var(--t3)}
.week{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;gap:2px}
.week span{font-size:10.5px;color:var(--t3)}
.week span.t{color:var(--acc);font-weight:700}
.week .dd{display:grid;place-items:center;width:36px;height:36px;margin:4px auto 0;padding:0;border:0;border-radius:50%;background:none;font:600 15px var(--num);color:var(--t2)}
.week .dd.w{background:var(--acc);color:var(--acc-ink);cursor:pointer}
.week .dd.t{box-shadow:inset 0 0 0 1.5px var(--acc);color:var(--acc)}
.week .dd.w.t{box-shadow:0 0 0 2px var(--s1),0 0 0 3.5px var(--acc);color:var(--acc-ink)}
.sess{display:flex;align-items:center;gap:12px;padding:14px 16px;margin:0 12px 8px;border-radius:var(--radius-card);background:var(--s1);width:calc(100% - 24px)}
.sess .d{width:40px;text-align:center;flex:none}
.sess .d b{display:block;font:650 22px/1 var(--num)}
.sess .d span{font-size:10.5px;color:var(--t3)}
.sess .nm{font-size:15.5px;font-weight:600;display:flex;align-items:center;gap:6px}
.sess .meta{font-size:12px;color:var(--t3);margin-top:2px}
.sess .r{margin-left:auto;font:600 15px var(--num);color:var(--t2);display:flex;align-items:center;gap:6px}
.pain-dot{width:7px;height:7px;border-radius:50%;background:var(--red)}
.empty{margin:30px 24px;text-align:center;color:var(--t3);font-size:14px;line-height:1.7}
.empty b{display:block;color:var(--t1);font-size:17px;margin-bottom:4px}
.sx{margin:0 12px 10px;padding:14px 16px;border-radius:var(--radius-card);background:var(--s1)}
.sx .t{display:flex;align-items:baseline;gap:8px}
.sx .t b{font-size:16px;font-weight:600}
.sx .t span{font-size:12px;color:var(--t3)}
.sx .t .go{margin-left:auto;font-size:12.5px;font-weight:600;color:var(--acc)}
.sets-row{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.sets-row span{font:600 14px var(--num);background:var(--s2);border-radius:var(--radius-input);padding:6px 10px}
.sets-row span small{font:500 10px var(--ui);color:var(--t3);margin-right:4px}

/* ---------- week overview ---------- */
.wk-h{display:flex;align-items:center;gap:6px;margin-bottom:10px}
.wk-h b{font-size:15px;font-weight:600}
.wk-h .nav2{width:30px;height:30px;border-radius:50%;background:var(--s2);display:grid;place-items:center}
.wk-h .nav2:disabled{opacity:.3}
.wk-h .nav2 svg{width:16px;height:16px}
.wk-h .cnt{margin-left:auto;font-size:12.5px;color:var(--t2)}
.wk-h .cnt b{font:650 15px var(--num);color:var(--t1)}
.wk-maps{display:flex;align-items:flex-end;gap:14px;margin:16px 0 6px}
.wk-maps .fig{display:flex;gap:4px}
.wk-maps canvas{height:236px;width:auto;display:block;cursor:pointer}
.wk-side{flex:1;display:flex;flex-direction:column;gap:12px;padding-bottom:6px}
.wk-stat .k{font-size:11.5px;color:var(--t3)}
.wk-stat .v{font:650 22px/1.1 var(--num)}
.wk-stat .v small{font:500 12px var(--ui);color:var(--t3)}
.pp{display:flex;height:6px;border-radius:3px;overflow:hidden;background:var(--s3);margin-top:6px}
.pp i{display:block;height:100%}
.steps{display:flex;gap:3px;align-items:center;font-size:10.5px;color:var(--t3);margin-top:4px}
.steps i{width:14px;height:8px;border-radius:2px}
.steps span{margin-left:4px}
.pickinfo{margin:10px 0 14px;padding:10px 12px;border-radius:12px;background:var(--s2);font-size:12.5px;color:var(--t2);min-height:44px}
.pickinfo b{color:var(--t1)}
.pickinfo .pk-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--amber);margin-right:7px;vertical-align:1px}
.gbar{display:grid;grid-template-columns:44px 1fr 74px;gap:10px;align-items:center;font-size:13px;margin:9px 0}
.gbar .tr{position:relative;height:8px;border-radius:4px;background:var(--s2)}
.gbar .tr i{position:absolute;left:0;top:0;bottom:0;border-radius:4px;background:var(--acc);transform-origin:left;animation:grow .8s var(--ios) both}
.gbar .tr .zone{position:absolute;top:-3px;bottom:-3px;border-left:1.5px dashed var(--t3);border-right:1.5px dashed var(--t3)}
.gbar .n{text-align:right;font:600 13px var(--num)}
.gbar .n small{font:500 10.5px var(--ui);color:var(--t3);display:block;line-height:1.1}
.missing{font-size:12.5px;color:var(--t3);margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.missing b{color:var(--t2);font-weight:600}
.seclbl{font-size:12px;font-weight:600;color:var(--t3);letter-spacing:.06em;padding:6px 24px 8px}

/* ---------- me ---------- */
.me-h{display:flex;align-items:center;gap:14px;padding:62px 20px 18px}
.me-h .nm{font-size:24px;font-weight:700}
.me-h .meta{font-size:12.5px;color:var(--t3)}
.me-h .who{margin-left:auto}
.ladder{position:relative;display:grid;grid-template-columns:repeat(5,1fr);margin:4px 0 12px}
.ladder::before{content:"";position:absolute;left:10%;right:10%;top:9px;height:2px;background:var(--s3)}
.ladder .fill{position:absolute;left:10%;top:9px;height:2px;background:var(--acc)}
.st{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11px;color:var(--t3);text-align:center;line-height:1.3}
.st i{width:20px;height:20px;border-radius:50%;background:var(--s1);border:2px solid var(--s3);display:grid;place-items:center}
.st.d i{background:var(--acc);border-color:var(--acc)}
.st.d i::after{content:"";width:6px;height:6px;border-radius:50%;background:var(--acc-ink)}
.st.c{color:var(--t1);font-weight:600}
.st.c i{border-color:var(--acc);box-shadow:0 0 0 5px var(--acc-soft)}
.goalnote{font-size:12.5px;color:var(--t2);padding:10px 12px;background:var(--s2);border-radius:12px}
.goalnote b{color:var(--t1);font-weight:600}
.chart{width:100%;height:132px;display:block}
.chart .grid{stroke:var(--line);stroke-width:1}
.chart .lab{font:500 10px var(--num);fill:var(--t3)}
.chart .pt{fill:var(--acc)}
.chart .pt.body-raw{fill:var(--t3);opacity:.55}
.me-body .me-chart-summary{gap:18px}
.me-body .chart+.chart{margin-top:6px}
.chart .tg2{fill:none;stroke:var(--acc);stroke-width:1.6;stroke-dasharray:3 3}
.chart .tl{stroke:var(--acc);stroke-width:1.4;stroke-dasharray:2 4;opacity:.6}
.chart .vl{font:600 12px var(--num);fill:var(--t1)}
.pick{display:flex;gap:6px;margin-bottom:10px;flex-wrap:wrap}
.pick button{font-size:12px;padding:4px 10px;border-radius:999px;background:var(--s2);color:var(--t2)}
.pick button.on{background:var(--t1);color:var(--bg)}
.hint{font-size:12px;color:var(--t3);margin-top:2px}
.pain{border-left:3px solid var(--red);padding:2px 0 2px 12px;font-size:13.5px}
.pain b{color:var(--red);font-family:var(--num)}
.pain .m{font-size:12px;color:var(--t3);margin-top:2px}
.rows{margin:0 12px 12px;border-radius:var(--radius-card);background:var(--s1);overflow:hidden}
.rows button{display:flex;align-items:center;width:100%;padding:14px 16px;font-size:15px;border-top:1px solid var(--line)}
.rows button:first-child{border-top:0}
.rows button span{margin-left:auto;color:var(--t3);font-size:14px}

/* ---------- exercise detail ---------- */
.xd{padding:0 16px}
.xd h2{font-size:28px;font-weight:700;letter-spacing:-.02em;margin:0 4px 2px}
.xd .f-sub{margin:0 4px 14px}
.xd ol{margin:4px 0 0 20px;font-size:15px;line-height:1.6}
.xd ol li+li{margin-top:6px}
.xd .card{margin:12px 0}
.xd .maps canvas{height:220px}
.open3d{display:flex;align-items:center;justify-content:center;gap:6px;height:50px;border-radius:var(--radius-button);background:var(--s2);font-weight:600;margin:12px 0 40px;color:var(--t1)}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* live logging: one row per set on the card */
.whead .more{width:38px;height:38px;margin-left:4px}
.slot.live .hero-fig{opacity:.22}
.from{font-size:12px;color:var(--amber);margin-top:3px}
.sets{margin-top:14px;display:flex;flex-direction:column;gap:6px}
.srow{display:flex;align-items:center;gap:5px;background:var(--s2);border-radius:var(--radius-button);padding:5px 5px 5px 10px;transition:background .2s}
.srow .si{width:16px;font-size:12px;color:var(--t3)}
.srow .sv{width:54px;height:34px;border:0;border-radius:var(--radius-input);background:var(--s1);text-align:center;font-size:17px;font-weight:650;outline:none;padding:0}
.srow .sv:focus{box-shadow:0 0 0 2px var(--acc)}
.srow .sv::placeholder{color:var(--t3);font-weight:500;font-size:13px}
.srow .su{font-size:12px;color:var(--t3)}
.srow .smul{color:var(--t3);margin:0 1px}
.srow .sok{margin-left:auto;width:36px;height:36px;border-radius:50%;border:1.5px solid var(--s3);display:grid;place-items:center;color:var(--t3);flex:none}
.srow .sok svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.srow.d{background:var(--acc-soft)}
.srow.d .sok{background:var(--acc);border-color:var(--acc);color:var(--acc-ink);animation:pop .3s var(--ios)}
.sets-foot{display:flex;align-items:center;gap:10px;margin-top:8px}
.sets-foot .lnk{font-size:13px;font-weight:600;color:var(--acc);padding:4px 0}
.sets-foot .lastline{margin:0 0 0 auto;text-align:right}
.kp.sm{font-size:13.5px;margin:auto 0 12px}
.skipped{margin-top:26px;font-size:15px;color:var(--t3)}
.skipped button{margin-left:10px;color:var(--acc);font-weight:600}
.slot.skip .face.front>:not(.skipped){opacity:.5}
/* workout menu + exercise picker */
.mlb{font-size:12px;color:var(--t3);margin:14px 18px 6px}
.seg2{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 12px}
.seg2 button{text-align:left;padding:12px 14px;border-radius:var(--radius-button);background:var(--s1);border:1.5px solid transparent}
.seg2 button b{display:block;font-size:15px;margin-bottom:2px}
.seg2 button span{font-size:12px;color:var(--t3);line-height:1.4}
.seg2 button.on{border-color:var(--acc)}
.seg2 button.on b{color:var(--acc)}
.rows button span{font-size:12.5px}
.pick-name{display:flex;gap:8px;margin:0 12px 28px}
.pick-name input{flex:1;min-width:0;height:44px;border-radius:var(--radius-button);border:0;background:var(--s1);padding:0 14px;outline:none;font-size:15px}
.pick-name input:focus{box-shadow:0 0 0 2px var(--acc)}
.pick-name button{padding:0 16px;border-radius:var(--radius-button);background:var(--acc);color:var(--acc-ink);font-weight:600}
.slot.live .kp.sm{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;flex:none}

/* One exercise per page; the content scrolls independently of the workout controls. */
.workout-page{height:100%;display:flex;flex-direction:column;min-height:0}
.wo-header{flex:none;background:var(--bg);border-bottom:1px solid var(--line)}
.wo-header .whead{padding-top:calc(env(safe-area-inset-top) + 6px);padding-bottom:6px;gap:6px}
.wo-header .whead>.round{width:36px;height:36px}
.wo-header .wo-heading{display:grid;gap:1px;flex:1;min-width:0}
.wo-context{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0}
.wo-context .tg{font-size:9px;padding:1px 4px}
.wo-finish{flex:none;min-height:40px;padding:0 8px;color:var(--acc);font-size:14px;font-weight:650;border-radius:9px}
.wo-finish:active{background:var(--acc-soft)}
.wo-heading .ttl{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wo-heading .wo-progress{font-size:11px;color:var(--t2);flex:none}
.wo-header .clock{font-size:11px;flex:none;margin-left:0}
.wo-header .more{margin-left:0;flex:none}
.wo-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;padding:10px 16px 16px;scrollbar-width:none}
.wo-content::-webkit-scrollbar{display:none}
.workout-page .wo-exercise.slot{width:100%;height:auto;perspective:none;scroll-snap-align:none}
.wo-exercise-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-top:14px}
.wo-exercise-copy{flex:1;min-width:0}
.wo-exercise-copy h1{font-size:24px;font-weight:650;line-height:1.25;letter-spacing:-.02em}
.wo-exercise-nav{display:flex;align-items:center;gap:2px;color:var(--t2);flex:none}
.wo-exercise-nav .round{width:36px;height:36px;background:none;border:0;backdrop-filter:none;-webkit-backdrop-filter:none}
.wo-exercise-nav .round:disabled{opacity:.25;cursor:default}
.wo-exercise-title{display:flex;align-items:center;gap:5px;max-width:100%;text-align:left}
.wo-exercise-title{font:inherit;line-height:inherit}
.wo-exercise-title .ic{width:17px;height:17px;color:var(--t2);flex:none}
.wo-exercise-sub{font-size:11px;color:var(--t2);margin-top:4px;line-height:1.5}
.wo-exercise .wo-demo{width:100%;height:clamp(250px,33dvh,300px);aspect-ratio:auto;border:1px solid var(--line);border-radius:16px}
.wo-exercise .demo.none{height:150px;background:var(--s2)}
.wo-cue{font-size:12px;line-height:1.5;color:var(--t2);border-left:2px solid var(--acc-line);padding-left:10px;margin:10px 2px 14px}
.wo-skipped{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--s2);border-radius:var(--radius-button);padding:12px;font-size:13px;margin:12px 0}
.wo-skipped button{font-weight:600;color:var(--acc)}
.wo-sets{background:var(--s1);border:1px solid var(--line);border-radius:var(--radius-card);padding:14px 10px 4px;overflow:hidden}
.wo-sets-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 4px 10px}
.wo-sets-heading h2{font-size:14px;font-weight:650}
.wo-sets-heading>span{font-size:11px;color:var(--t2)}
.wo-table{width:100%;table-layout:fixed;border-spacing:0 4px;text-align:center;font-size:13px}
.wo-col-set{width:11%}.wo-col-last{width:26%}.wo-col-weight{width:24%}.wo-col-reps{width:21%}.wo-col-done{width:18%}
.wo-table thead th{font-size:10px;font-weight:500;color:var(--t2);padding:0 1px 5px;line-height:1.2}
.wo-table thead small{font-size:9px;display:block;margin-top:2px}
.wo-table .srow{display:table-row;background:transparent;border-radius:0;padding:0}
.wo-table .srow>th,.wo-table .srow>td{height:42px;padding:4px 3px;border:0;font-weight:500}
.wo-table .srow>:first-child{border-radius:8px 0 0 8px}
.wo-table .srow>:last-child{border-radius:0 8px 8px 0}
.wo-table .srow .si{width:auto;font-size:12px;color:var(--t2)}
.wo-table .wo-last{font-size:11px;color:var(--t2);white-space:nowrap}
.wo-table .srow.current{background:var(--acc-soft)}
.wo-table .srow.current .si{color:var(--acc);font-weight:700}
.wo-table .srow.d{background:color-mix(in srgb,var(--s2) 65%,var(--s1))}
.wo-table .srow .sv{display:block;width:100%;min-width:0;height:34px;font-size:16px;font-weight:600;border:1px solid var(--acc-line);border-radius:var(--radius-input);background:var(--s1);color:var(--t1)}
.wo-table .srow .sv[readonly]{border-color:transparent;background:transparent;font-size:14px;font-weight:500;color:var(--t2);cursor:default}
.wo-table .srow .sv[readonly]:focus{box-shadow:none}
.wo-table .srow.d .sv{color:var(--acc)}
.wo-table .srow .sok{width:30px;height:30px;margin:auto;border-color:var(--acc-line);color:var(--acc)}
.wo-table .srow .sok:disabled{opacity:.25;cursor:default}
.wo-table .srow.d .sok{color:var(--acc-ink);animation:none}
.wo-dash{color:var(--t3)}
.wo-sets-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;padding:0 4px;font-size:11px;color:var(--t2)}
.wo-sets-foot button{font-size:12px;font-weight:600;color:var(--acc);min-height:40px}
.wo-sets-foot button:disabled{opacity:.4;cursor:default}
.wo-dock{flex:none;padding:8px 16px calc(env(safe-area-inset-bottom) + 8px);border-top:1px solid var(--line);background:var(--bg);box-shadow:0 -8px 24px -16px #1D422E26}
.wo-rest-space{display:none}
.wo-rest-space:has(.rest.on){display:flex;align-items:center;margin-bottom:8px}
.wo-dock .rest{display:none;width:100%;margin:0;padding:0 12px;height:38px;border-radius:8px;opacity:1;transform:none;justify-content:space-between;font-size:12px}
.wo-dock .rest.on{display:flex}
.wo-dock .rest b{font-size:16px;font-weight:650;margin-left:6px}
.wo-dock .rest button{display:flex;align-items:center;gap:2px;min-height:38px;font-size:12px;font-weight:600}
.wo-dock .rest button .ic{width:14px;height:14px}
.wo-primary{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:52px;background:var(--acc);color:var(--acc-ink);border-radius:var(--radius-button);font-size:15px;font-weight:650}
.wo-primary .ic{width:18px;height:18px}
@media(max-width:350px){.wo-content{padding-left:12px;padding-right:12px}.wo-sets{padding-left:6px;padding-right:6px}.wo-table .wo-last{font-size:10px}.wo-exercise-copy h1{font-size:22px}.wo-heading .ttl{font-size:16px}}

/* Home: a welcoming illustration, then an overlapping plan with the action. */
.home-page{padding:calc(env(safe-area-inset-top) + 12px) 12px 0}
.me-page{padding:0 18px}
.page-eyebrow{font-size:11px;font-weight:500;line-height:1.5;color:var(--t2)}
.me-page-header h1{font-size:32px;font-weight:700;letter-spacing:-.035em;line-height:1.15;margin-top:3px}
.home-profile{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%}
.home-profile .av{width:28px;height:28px;background:color-mix(in srgb,var(--s1) 80%,transparent);color:var(--acc);font-size:11px}
.home-sync{font-size:12px;margin:0 6px}
.home-sync:empty{display:none}
.home-sync:not(:empty){padding:0 0 8px}
.home-today{position:relative}
.home-hero{position:relative;isolation:isolate;height:250px;overflow:hidden;border-radius:22px 22px 6px 6px;background:#E3ECDF;padding:14px 18px 24px}
.home-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:right bottom;pointer-events:none;z-index:-1}
.home-pet-preview{display:none}
.home-hero-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.home-date{font-size:11px;color:#4B6654}
.home-hero-copy{max-width:100%}
.has-art .home-hero-copy{width:55%}
.home-hero-copy h1{font-size:32px;line-height:1.18;font-weight:650;letter-spacing:-1.1px}
.home-hero-copy>p{font-size:12px;line-height:1.8;color:#3D5947;margin-top:15px}
.home-start-area{position:relative;z-index:2;margin:-18px 6px 0;padding:14px 18px 17px;background:var(--s1);border-radius:19px;box-shadow:var(--shadow-card)}
.home-plan-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:8px;font-size:10px;color:#6A7E62}
.home-plan-menu{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--t2);min-height:32px;margin:-3px -5px -3px 0;padding:0 5px}
.home-plan-menu .ic{width:17px;height:17px}
.home-start-area h2{font-size:25px;line-height:1.3;letter-spacing:-.025em;font-weight:650}
.home-plan-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;font-size:10px;color:var(--t2);margin-top:6px}
.home-last{font-size:10px;color:var(--t2)}
.home-exercises{font-size:11px;line-height:1.7;color:var(--t2);margin-top:10px;overflow-wrap:anywhere}
.home-plan-note{font-size:11px;line-height:1.6;color:var(--t2);margin-top:8px}
.home-start{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:47px;margin-top:14px;background:var(--acc);color:var(--acc-ink);border-radius:var(--radius-button);font-size:14px;font-weight:600}
.home-start .ic{width:16px;height:16px}
.home-week{margin:23px 6px 0}
.home-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:14px}
.home-section-heading h2{font-size:15px;font-weight:650;letter-spacing:-.01em}
.home-section-heading>span{font-size:11px;color:var(--t2)}
.home-section-heading>span b{color:var(--acc);font-weight:650}
.home-week>.home-section-heading{align-items:center;margin-bottom:12px}
.home-week>.home-section-heading h2{font-size:13px;font-weight:600}
.home-week-count{font-weight:500}
.home-history{display:flex;align-items:center;gap:2px;min-height:28px;font-size:10px;color:var(--t2)}
.home-history .ic{width:12px;height:12px}
.home-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}
.home-weekday{display:grid;justify-items:center;gap:6px;font-size:10px;color:#637267}
.home-day-mark{width:29px;height:29px;border:1px solid transparent;border-radius:50%;display:grid;place-items:center;background:#E8EEE4;color:#607358;font-size:11px;font-weight:400;letter-spacing:0}
.home-day-mark .ic{width:14px;height:14px}
.home-weekday.future .home-day-mark{background:transparent;border-color:#DCE4D7;color:#80907D}
.home-weekday.trained .home-day-mark{background:#DCEBCF;border-color:transparent;color:#365A2F}
.home-weekday.today .home-day-mark{background:var(--acc);border-color:transparent;color:#FFFFFF;font-weight:400;box-shadow:0 0 0 3px #D6E4CF}
.home-empty{margin:6px;padding:28px 20px;background:var(--s1);border:1px solid var(--line);border-radius:var(--radius-card)}
.home-empty h1{font-size:19px;margin-bottom:8px}.home-empty p{font-size:13px;color:var(--t2);line-height:1.6}
.home-empty .home-profile{display:flex;width:auto;gap:6px;font-size:12px;color:var(--acc);margin-top:12px}

/* The day picker changes today's selection, not the saved rotation. */
.days-close{margin-left:auto;width:36px;height:36px}
.days-intro{font-size:12px;color:var(--t2);padding:8px 18px 18px;line-height:1.6}
.days-list{display:flex;flex-direction:column;gap:10px;padding:0 12px 24px}
.day-choice{display:flex;align-items:center;gap:14px;width:100%;padding:16px;border-radius:var(--radius-card);border:1px solid var(--line);background:var(--s1);text-align:left}
.day-choice.selected{background:var(--acc-soft);border-color:var(--acc-line)}
.day-choice-copy{flex:1;min-width:0}
.day-choice-title{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:17px;font-weight:650}
.day-choice-title small{font-size:10px;font-weight:500;color:var(--t2);background:var(--s2);padding:2px 6px;border-radius:4px}
.day-choice-exercises{display:block;font-size:12px;color:var(--t2);line-height:1.7;margin-top:6px}
.day-choice-check{display:grid;place-items:center;flex:none;width:25px;height:25px;border:1px solid var(--line);border-radius:50%}
.day-choice.selected .day-choice-check{background:var(--acc);color:var(--acc-ink);border-color:var(--acc)}
.day-choice-check .ic{width:15px;height:15px}

/* Me: identity, goal and progress, followed by data and account controls. */
.me-page-header{padding-top:calc(env(safe-area-inset-top) + 23px);padding-bottom:20px}
.me-profile{padding:18px;background:var(--s2);border-radius:var(--radius-card);margin-bottom:22px}
.me-identity{display:flex;align-items:center;gap:12px}
.me-identity .av{background:var(--s1);width:48px;height:48px;font-size:19px}
.me-identity h2{font-size:21px;font-weight:650;letter-spacing:-.02em;overflow-wrap:anywhere}
.me-identity p{font-size:11px;color:var(--t2);margin-top:2px}
.me-body-stats{display:grid;grid-template-columns:repeat(3,1fr);margin-top:18px;padding-top:15px;border-top:1px solid var(--line)}
.me-body-stats>div{display:flex;flex-direction:column;gap:2px}
.me-body-stats>div+div{border-left:1px solid var(--line);padding-left:14px}
.me-body-stats span{font-size:11px;color:var(--t2)}
.me-body-stats b{font-size:27px;font-weight:600;line-height:1.3;letter-spacing:-.025em}
.me-body-stats small{font-size:12px;color:var(--t2);font-weight:500;margin-left:5px;letter-spacing:0}
.me-body-date{font-size:10px;color:var(--t2);margin-top:9px}
.me-page .me-goal>.card{margin:0 0 18px;padding:16px;border:1px solid var(--line);box-shadow:none}
.me-page .me-goal .goalnote{font-size:12px;line-height:1.6;padding:12px;background:var(--acc-soft)}
.me-page .me-pain{margin:0 0 18px;box-shadow:none;border:1px solid var(--line)}
.me-pain .pain+.pain{margin-top:14px}
.me-trend{padding:16px 0 20px;border-bottom:1px solid var(--line);margin-bottom:23px}
.me-trend>.home-section-heading{margin-bottom:12px}
.me-exercise-pick{flex-wrap:nowrap;overflow-x:auto;padding:2px 0 6px;margin-bottom:10px;scrollbar-width:none}
.me-exercise-pick::-webkit-scrollbar{display:none}
.me-exercise-pick button{flex:none;white-space:nowrap;padding:6px 11px;font-size:11px;min-height:32px}
.me-page .chart{height:auto;aspect-ratio:330/132;overflow:visible}
.me-trend .hint{font-size:11px;line-height:1.6;color:var(--t2);margin-top:10px}
.me-no-trend{padding:20px 12px;text-align:center;color:var(--t2);font-size:13px;line-height:1.8;background:var(--s2);border-radius:var(--radius-button)}
.me-data>.page-eyebrow{font-weight:600;margin-bottom:10px}
.me-page .me-links{margin:0;background:var(--s1);border:1px solid var(--line);border-radius:var(--radius-card)}
.me-page .me-links .row-a{padding:14px 12px;gap:10px}
.me-page .me-links .row-a>span{margin:0}
.me-page .me-links .me-link-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:var(--s2);color:var(--acc)}
.me-link-icon .ic{width:17px;height:17px}
.me-page .me-links .me-link-copy{flex:1;min-width:0;color:var(--t1)}
.me-link-copy b{display:block;font-size:13px;font-weight:600}
.me-link-copy small{display:block;font-size:10px;line-height:1.5;color:var(--t2);margin-top:2px}
.me-links .row-a>.ic{width:15px;height:15px;flex:none;color:var(--t2)}
.me-logout{display:flex;align-items:center;gap:8px;width:100%;margin-top:14px;padding:14px 12px;color:var(--red);border-radius:var(--radius-button);font-size:13px;font-weight:500}
.me-logout small{margin-left:auto;color:var(--t2);font-size:11px;font-weight:400}
.me-logout .ic{width:15px;height:15px;color:var(--t2)}
@media(max-width:350px){.me-page{padding-left:14px;padding-right:14px}.home-page{padding-left:10px;padding-right:10px}.home-hero{padding-left:15px;padding-right:15px;height:235px}.home-hero-copy h1{font-size:28px}.home-start-area{padding-left:14px;padding-right:14px}.home-week>.home-section-heading h2{font-size:12px}.home-weekdays{gap:5px}}
.art-credit{margin:14px 20px 0;font-size:11px;color:var(--t3);text-align:center}

/* Workouts and plan editors use the same coach-green tokens as Today. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.plans-page{padding:calc(env(safe-area-inset-top,0px) + 14px) 20px 0}
.plans-heading{padding-bottom:26px}.plan-back-link{display:flex;align-items:center;gap:3px;font-size:12px;color:var(--t2);min-height:40px;margin-left:-6px;margin-bottom:14px}
.plan-back-link .ic{width:16px;height:16px}.plans-heading h1{font-size:32px;line-height:1.2;letter-spacing:-.04em;font-weight:650;margin-top:5px}
.plans-heading>p:last-child{color:var(--t2);font-size:13px;margin-top:7px}
.plans-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin-bottom:10px}
.plans-section-head h2{font-size:16px;font-weight:650;letter-spacing:-.02em}.plan-text-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;font-size:13px;font-weight:600;color:var(--acc)}
.plan-text-button .ic{width:16px;height:16px}.plans-active{padding:0 16px 12px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--s1);box-shadow:var(--shadow-card)}
.plans-active>.plans-section-head{padding-top:8px;margin-bottom:0}.plans-cycle-label{display:flex;align-items:center;gap:7px;padding-bottom:14px;border-bottom:1px solid var(--line);font-size:13px}
.plans-cycle-label .ic{width:17px;height:17px;color:var(--t2)}.plans-cycle-label b{font-weight:500}.plans-cycle-label>span{margin-left:auto;color:var(--t2);font-size:11px}
.plans-upcoming{list-style:none;margin-top:4px}.plans-upcoming li{display:flex;align-items:center;gap:10px;min-height:45px;border-bottom:1px solid var(--line)}.plans-upcoming li:last-child{border:0}
.plans-date{display:flex;align-items:baseline;gap:6px;flex:none;width:101px;color:var(--t2);font-size:12px}.plans-date small{font-size:10px;color:var(--t3)}
.plans-upcoming-name{display:flex;align-items:center;gap:7px;font-size:13px;overflow-wrap:anywhere}.plans-upcoming-name .ic{width:15px;height:15px;color:var(--t2)}.plans-upcoming .is-today{color:var(--acc);font-weight:600}.is-today .plans-date{color:var(--acc)}
.plans-today-dot{width:5px;height:5px;background:var(--acc);border-radius:50%;margin-left:auto;flex:none}.plans-no-schedule{padding:18px 2px 4px}.plans-empty-icon{display:grid;place-items:center;width:44px;height:44px;background:var(--acc-soft);color:var(--acc);border-radius:13px}
.plans-no-schedule h3{font-size:21px;font-weight:600;letter-spacing:-.025em;margin-top:15px}.plans-no-schedule p{color:var(--t2);font-size:13px;line-height:1.8;margin:8px 0 22px}
.plan-primary{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--acc);color:var(--acc-ink);border-radius:var(--radius-button);font-size:15px;font-weight:600;width:100%;min-height:52px;padding:12px 16px}
.plan-primary .ic{width:18px;height:18px}.plans-routines{margin-top:25px}.plans-routines>.plans-section-head{margin-bottom:5px}
.plans-routine{position:relative;display:block;background:var(--s1);border:1px solid var(--line);border-radius:16px;margin-bottom:10px;overflow:visible}
.plans-routine-open{display:flex;align-items:flex-start;gap:12px;padding:17px 54px 17px 14px;width:100%;min-width:0;text-align:left;border-radius:inherit;-webkit-tap-highlight-color:transparent}.plans-routine-mark{flex:none;display:grid;place-items:center;width:34px;height:36px;font-size:12px;color:var(--acc);background:var(--s2);border-radius:9px;font-weight:600}
.plans-routine-open>span:nth-child(2){flex:1;min-width:0}.plans-routine-open b{display:block;font-size:16px;font-weight:600;overflow-wrap:anywhere}.plans-routine-open small{display:block;font-size:10px;color:var(--t2);margin-top:4px}
.plans-routine-exercises{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;color:var(--t2);line-height:1.7;margin-top:7px}
.plans-routine:has(>.plans-routine-open:active),.plans-routine:has(>.plans-routine-menu>summary:active){background:var(--acc-soft)}.plans-routine-open:focus-visible{outline:2px solid var(--acc);outline-offset:-3px}.plans-routine>.plans-routine-menu{position:absolute;top:7px;right:5px;margin:0}.plans-routine-menu>summary{width:44px}.plans-routine-menu>div{min-width:210px}.plans-routine-menu button{white-space:nowrap}
.plans-empty-routines{padding:24px;text-align:center;border:1px dashed var(--acc-line);border-radius:16px;font-size:13px;color:var(--t2)}

/* Full-height editors: only the content scrolls; Save stays above the keyboard/safe area. */
.plan-editor{height:100%;display:flex;flex-direction:column;background:var(--bg)}
.plan-nav{display:grid;grid-template-columns:64px minmax(0,1fr) 64px;align-items:center;flex:none;padding:calc(env(safe-area-inset-top,0px) + 5px) 18px 5px;border-bottom:1px solid var(--line);background:var(--bg);gap:8px}
.plan-nav h1{font-size:15px;text-align:center;font-weight:600}.plan-nav>.plan-text-button{justify-content:flex-start;font-size:13px;font-weight:500}
.plan-editor-body{flex:1;min-height:0;overflow:auto;padding:27px 20px 24px;scroll-padding:20px;scrollbar-width:none}
.plan-intro{margin-bottom:24px}.plan-intro .page-eyebrow{font-size:10px;letter-spacing:.07em}.plan-intro h2{font-size:27px;line-height:1.25;font-weight:600;letter-spacing:-.04em;margin:9px 0 10px}.plan-intro>p:last-child{font-size:12px;color:var(--t2);line-height:1.7}
.plan-footer{flex:none;padding:12px 20px calc(env(safe-area-inset-bottom,0px) + 14px);border-top:1px solid var(--line);background:var(--bg)}
.plan-footer>p{font-size:10px;color:var(--t2);text-align:center;margin-bottom:10px}.plan-error{padding:12px;background:var(--red-soft);color:var(--red);font-size:12px;border-radius:10px;margin-top:16px;overflow-wrap:anywhere}
.plan-kind{display:flex;flex-direction:column;gap:12px}.plan-kind>button{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr) 22px;gap:3px 12px;align-items:center;width:100%;padding:18px 14px;background:var(--s1);border:1px solid var(--line);border-radius:16px;text-align:left}
.plan-kind>button.selected{border-color:var(--acc-line);background:var(--acc-soft)}.plan-kind b{font-size:15px;font-weight:600}.plan-kind small{grid-column:2;font-size:11px;color:var(--t2)}
.plan-kind-icon{grid-row:1 / 3;display:grid;place-items:center;width:38px;height:38px;background:var(--s2);color:var(--acc);border-radius:10px}.plan-kind-icon .ic{width:21px;height:21px}
.plan-kind-check{grid-column:3;grid-row:1 / 3;display:grid;place-items:center;width:20px;height:20px;border:1px solid var(--acc-line);border-radius:50%}.selected .plan-kind-check{background:var(--acc);color:var(--acc-ink);border-color:var(--acc)}.plan-kind-check .ic{width:13px;height:13px}
.plan-setup-fields{margin-top:26px}.plan-length{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.plan-length h3{font-size:13px;font-weight:600}.plan-length p{font-size:11px;color:var(--t2);margin-top:4px}
.plan-stepper{display:flex;align-items:center;border:1px solid var(--line);border-radius:12px;background:var(--s1);overflow:hidden}.plan-stepper button{display:grid;place-items:center;width:44px;height:44px;font-size:20px;color:var(--acc)}.plan-stepper output{font-size:17px;text-align:center;min-width:26px}
.plan-soft-note{padding:18px 2px;font-size:12px;color:var(--t2);line-height:1.8}
.plan-field{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:500;color:var(--t2);min-width:0}
.plan-field input,.plan-field textarea,.plan-field select{width:100%;min-width:0;background:var(--s1);border:1px solid var(--line);border-radius:10px;padding:11px 12px;color:var(--t1);font-size:16px;font-weight:400;min-height:46px;outline:none}
.plan-field textarea{resize:vertical;line-height:1.6;min-height:76px}.plan-field input:focus,.plan-field textarea:focus,.plan-field select:focus,.routine-set-table input:focus{border-color:var(--acc);box-shadow:0 0 0 2px var(--acc-soft)}
.plan-field input[type=date]{appearance:none;-webkit-appearance:none;min-height:46px}.plan-optional{font-size:10px;color:var(--t3);font-weight:400}.plan-field-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.plan-rhythm-link{display:flex;align-items:center;gap:8px;width:100%;font-size:12px;padding:13px;background:var(--s2);border-radius:12px;margin-bottom:17px}.plan-rhythm-link>b{font-weight:500}.plan-rhythm-link>span{margin-left:auto;font-size:11px;color:var(--t2)}.plan-rhythm-link>.ic{width:16px;height:16px;flex:none}
.schedule-slots{list-style:none}.schedule-slot{display:flex;align-items:center;gap:10px;margin-bottom:10px}.schedule-slot-label{font-size:12px;font-weight:500;color:var(--t2);width:43px;flex:none}
.schedule-slot-pick{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:12px;background:var(--s1);border:1px solid var(--line);border-radius:12px;min-height:58px;font-size:14px;font-weight:600;text-align:left}
.schedule-slot-pick>span:nth-child(2){flex:1;overflow-wrap:anywhere}.schedule-slot-pick>.ic{width:15px;height:15px;color:var(--t2);flex:none}.schedule-slot-symbol{display:grid;place-items:center;flex:none;width:29px;height:29px;background:var(--s2);border-radius:8px;color:var(--acc)}.schedule-slot-symbol .ic{width:17px;height:17px}
.schedule-slot.is-rest .schedule-slot-pick{background:transparent;border-style:dashed;font-weight:400;color:var(--t2)}.schedule-slot.is-rest .schedule-slot-symbol{background:var(--s2);color:var(--t2)}
.schedule-native-pick{position:relative;cursor:pointer}.schedule-native-pick select{position:absolute;inset:0;width:100%;height:100%;padding:0 30px 0 51px;border:0;background:transparent;color:inherit;font:inherit;appearance:none;-webkit-appearance:none;cursor:pointer;outline-offset:3px}.schedule-native-pick>.ic{margin-left:auto;pointer-events:none}.schedule-native-pick>.schedule-slot-symbol{pointer-events:none}
.schedule-rhythm-settings{margin-bottom:17px}.schedule-rhythm-settings>.plan-rhythm-link{margin-bottom:0;list-style:none;cursor:pointer}.schedule-rhythm-settings>.plan-rhythm-link::-webkit-details-marker{display:none}.schedule-rhythm-body{padding:15px 12px;background:var(--s2);border-radius:0 0 12px 12px}.schedule-rhythm-settings[open]>.plan-rhythm-link{border-radius:12px 12px 0 0}.schedule-rhythm-settings[open]>.plan-rhythm-link>.ic:last-child{transform:rotate(180deg)}.schedule-kind-switch{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-bottom:18px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}.schedule-kind-switch button{min-height:40px;font-size:12px;text-align:center;border-radius:7px;color:var(--t2)}.schedule-kind-switch button.selected{background:var(--acc);color:var(--acc-ink)}.schedule-rhythm-body .plan-length{margin-bottom:16px}.schedule-create-routine{display:flex;margin:7px auto 0;font-size:11px}
.plan-menu{position:relative;flex:none}.plan-menu>summary{display:grid;place-items:center;list-style:none;cursor:pointer;width:36px;height:44px;color:var(--t2)}.plan-menu>summary::-webkit-details-marker{display:none}.plan-menu[open]{z-index:10}
.plan-menu>div{position:absolute;right:0;top:42px;background:var(--s1);border:1px solid var(--line);border-radius:12px;min-width:176px;padding:5px;box-shadow:var(--shadow-sheet)}
.plan-menu button{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:8px;font-size:12px;border-radius:7px}.plan-menu button:hover{background:var(--s2)}.plan-menu button>.ic{width:16px;height:16px}.plan-remove{color:var(--red)}
.plan-add-row{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:48px;border:1px dashed var(--acc-line);border-radius:12px;font-size:13px;color:var(--acc);background:var(--acc-soft)}.plan-add-row .ic{width:17px;height:17px}
.plan-effective{margin-top:27px;padding-top:20px;border-top:1px solid var(--line)}.plan-effective>p{font-size:10px;color:var(--t2);line-height:1.7;margin-top:8px}
.schedule-choices .day-choice{border-radius:14px}.schedule-choice-icon{color:var(--acc)}.schedule-choices .day-choice-title{font-size:15px}.schedule-choices .day-choice-exercises{font-size:11px}

/* Routine editing gives sets the space; secondary settings stay collapsed. */
.routine-editor-body{padding-top:22px}.routine-name-block{margin-bottom:24px}.plan-field .routine-name-input{font-size:24px;letter-spacing:-.03em;font-weight:600;border:0;border-radius:0;border-bottom:1px solid var(--line);background:transparent;padding:4px 0 12px;min-height:54px}
.routine-name-block>p{font-size:11px;color:var(--t2);margin-top:9px}.routine-exercise{border:1px solid var(--line);border-radius:16px;background:var(--s1);padding:14px 13px 0;margin-bottom:16px}
.routine-exercise-header{display:flex;align-items:center;gap:9px;margin-bottom:14px}.plan-number{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--s2);color:var(--acc);font-size:11px;font-weight:600}
.routine-exercise-header>div{flex:1;min-width:0}.routine-exercise-header h2{font-size:15px;line-height:1.5;overflow-wrap:anywhere;font-weight:600}.routine-exercise-header p{font-size:10px;line-height:1.5;color:var(--t2);margin-top:3px}.routine-exercise-header>.plan-menu{margin-right:-7px}
.routine-set-table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:12px}.routine-set-table th:first-child{width:34px}.routine-set-table th:last-child{width:35px}.routine-set-table thead th{text-align:center;font-size:10px;font-weight:500;color:var(--t2);padding-bottom:7px}.routine-set-table thead small{font-size:9px;font-weight:400}
.routine-set-table tbody th{color:var(--t2);font-size:12px;font-weight:400;text-align:center}.routine-set-table td{padding:4px}.routine-set-table td:last-child{padding:0}
.routine-set-table input{width:100%;min-width:0;min-height:44px;border-radius:8px;border:1px solid var(--line);background:var(--bg);font-size:16px;text-align:center;color:var(--t1);outline:none;-moz-appearance:textfield}.routine-set-table input::-webkit-inner-spin-button{appearance:none;margin:0}
.plan-icon-button{display:grid;place-items:center;width:36px;height:44px}.plan-icon-button .ic{width:14px;height:14px}.routine-add-set{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;width:100%;color:var(--acc);font-size:12px;margin:4px 0 3px}.routine-add-set .ic{width:15px;height:15px}
.routine-options{border-top:1px solid var(--line)}.routine-options>summary{display:flex;align-items:center;justify-content:space-between;min-height:46px;cursor:pointer;font-size:11px;color:var(--t2);list-style:none}.routine-options>summary::-webkit-details-marker{display:none}.routine-options>summary .ic{width:14px;height:14px}.routine-options[open]>summary .ic{transform:rotate(180deg)}
.routine-options-body{padding:0 0 14px;display:flex;flex-direction:column;gap:14px}.plan-input-unit{position:relative;display:block}.plan-input-unit input{padding-right:40px}.plan-input-unit small{position:absolute;right:12px;top:14px;font-size:11px;color:var(--t2);font-weight:400}
.routine-kept{font-size:10px;color:var(--amber);padding:8px;background:var(--amber-soft);border-radius:8px;margin-bottom:12px}
.routine-empty{text-align:center;padding:18px 8px 28px}.routine-empty .plans-empty-icon{margin:0 auto 16px}.routine-empty h2{font-size:20px;font-weight:600}.routine-empty p{font-size:12px;color:var(--t2);line-height:1.8;margin-top:9px}
.routine-add-exercise{margin-bottom:20px}.routine-notes>summary{display:flex;align-items:center;gap:8px;min-height:44px;font-size:12px;color:var(--t2);cursor:pointer;list-style:none}.routine-notes>summary::-webkit-details-marker{display:none}.routine-notes>summary>.ic{width:14px;height:14px;margin-left:auto}
.routine-notes[open]>summary>.ic{transform:rotate(180deg)}
.plan-editor button:disabled,.plans-page button:disabled{opacity:.38;cursor:default}

/* Entry points and daily status never replace the scheduled routine. */
.home-sync:has(.home-workouts){display:flex;align-items:center;justify-content:space-between;min-height:36px}.home-workouts{display:flex;align-items:center;gap:5px;min-height:36px;font-size:11px;color:var(--acc)}.home-workouts .ic{width:15px;height:15px}
.home-plan-secondary{display:flex;align-items:center;justify-content:space-between;margin-top:5px}.home-plan-secondary button,.home-schedule-link{min-height:44px;font-size:11px;color:var(--t2)}
.home-schedule-link{display:flex;align-items:center;justify-content:center;gap:3px;width:100%}.home-schedule-link .ic{width:13px;height:13px}
.home-plan-status{display:flex;align-items:center;gap:5px;font-size:12px;background:var(--acc-soft);color:var(--acc);border-radius:8px;padding:9px 11px;margin:12px 0;overflow-wrap:anywhere}.home-plan-status .ic{width:15px;height:15px}.home-plan-status.skipped{background:var(--s2);color:var(--t2)}
.home-rest-copy{font-size:12px;color:var(--t2);margin:10px 0 18px}.plan-quiet{font-size:10px;color:var(--t2);text-align:center;line-height:1.7;margin-top:12px}
.home-today-choice{padding:13px 15px;margin:14px 6px 0;border:1px solid var(--acc-line);border-radius:14px;background:var(--acc-soft)}.home-today-choice>p{font-size:10px;color:var(--t2)}.home-today-choice>button{display:flex;align-items:center;gap:7px;width:100%;min-height:44px;color:var(--acc);font-size:13px;font-weight:600;text-align:left}.home-today-choice .ic{width:16px;height:16px;flex:none}.home-today-choice .ic:last-child{margin-left:auto}.home-today-choice>small{display:block;font-size:10px;color:var(--t2)}
.plan-record-links{padding:18px 20px 4px}.plan-record-links>.plan-text-button{justify-content:flex-start;text-align:left}.plan-record-links>p{font-size:11px;color:var(--t2);line-height:1.8}.plan-record-links>p button{min-height:44px;color:var(--acc)}
.plan-history-edit{display:block;min-height:48px;margin:14px 12px 0;width:calc(100% - 24px);border:1px solid var(--acc-line);border-radius:14px;text-align:center;font-size:14px;color:var(--acc)}
.me-workouts-link{display:flex;align-items:center;gap:12px;width:100%;margin-bottom:22px;padding:14px;background:var(--s1);border:1px solid var(--line);border-radius:16px;text-align:left}.me-workouts-link>span:nth-child(2){flex:1}.me-workouts-link b{display:block;font-size:14px;font-weight:600}.me-workouts-link small{display:block;font-size:11px;color:var(--t2);margin-top:3px}.me-workouts-link>.ic{width:17px;height:17px;color:var(--t2)}
@media(max-width:350px){.plans-page{padding-left:14px;padding-right:14px}.plan-editor-body{padding-left:14px;padding-right:14px}.plan-kind>button{padding-left:10px;padding-right:10px;gap:3px 8px}.plan-kind small{font-size:10px}.schedule-slot{gap:6px}.schedule-slot-label{width:38px;font-size:11px}.schedule-slot-pick{padding:10px;gap:7px;font-size:13px}.routine-exercise{padding-left:10px;padding-right:10px}}

/* Exercise picker: controls stay put while the library scrolls. */
.sheet-body:has(>.exercise-picker){display:flex;overflow:hidden;min-height:0;padding-bottom:0}
.exercise-picker{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;background:var(--bg)}
.picker-header{flex:none;padding:6px 18px 10px;background:var(--bg);border-bottom:1px solid var(--line)}
.picker-title-row{display:flex;align-items:center;gap:10px;min-height:48px}.picker-title-row>div{flex:1;min-width:0}.picker-title-row h2{font-size:23px;font-weight:650;letter-spacing:-.03em;line-height:1.3}.picker-title-row .page-eyebrow{font-size:9px;letter-spacing:.04em;margin-bottom:3px}.picker-title-row>.plan-icon-button{flex:none;width:44px;margin-right:-9px;color:var(--t2)}.picker-title-row>.plan-icon-button .ic{width:19px;height:19px}
.picker-swap-caption{font-size:11px;color:var(--t2);margin-top:7px;line-height:1.7}.picker-swap-caption b{color:var(--t1);font-weight:500}
.picker-search{display:flex;align-items:center;gap:9px;margin-top:16px;padding:0 12px;border:1px solid var(--line);background:var(--s1);border-radius:11px;min-height:46px}.picker-search>.ic{width:18px;height:18px;flex:none;color:var(--t2)}.picker-search input{min-width:0;width:100%;height:44px;font-size:16px;background:none;border:0;outline:none;color:var(--t1)}.picker-search input::placeholder{font-size:12px;color:var(--t2)}.picker-search:focus-within{border-color:var(--acc);box-shadow:0 0 0 2px var(--acc-soft)}
.picker-groups{display:flex;align-items:center;gap:5px;overflow-x:auto;scrollbar-width:none;margin-top:11px;padding:2px 0}.picker-groups button{flex:none;min-width:40px;min-height:40px;padding:4px 10px;border:1px solid var(--line);border-radius:10px;background:var(--s1);color:var(--t2);font-size:12px;text-align:center;white-space:nowrap}.picker-groups button.on{background:var(--acc);color:var(--acc-ink);border-color:var(--acc)}
.picker-results{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:0 12px 20px;scroll-padding-top:12px;scrollbar-width:none}.picker-result-count{font-size:10px;color:var(--t2);padding:13px 6px 5px;overflow-wrap:anywhere}.picker-section{margin-top:12px}.picker-section h3{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:600;padding:0 6px 9px;color:var(--t2)}.picker-section h3>span{font-size:10px;font-weight:400;color:var(--t3)}.picker-rows{border:1px solid var(--line);border-radius:15px;background:var(--s1);overflow:hidden}
.picker-exercise{display:flex;align-items:center;gap:11px;min-height:82px;padding:13px 11px;width:100%;text-align:left;border-bottom:1px solid var(--line)}.picker-exercise:last-child{border-bottom:0}.picker-exercise:active{background:var(--acc-soft)}
.picker-exercise-thumb{display:grid;place-items:center;flex:none;width:46px;height:50px;border-radius:10px;background:var(--s2);color:var(--acc);overflow:hidden}.picker-exercise-thumb>.ic{width:23px;height:23px;opacity:.8}.picker-exercise-thumb img{display:block;width:100%;height:100%;object-fit:contain}.picker-exercise-thumb canvas{display:block;height:50px;width:auto}
.picker-exercise-copy{min-width:0;flex:1}.picker-exercise-copy>b{display:block;font-size:14px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}.picker-exercise-meta{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--t2);font-size:10px;line-height:1.7;margin-top:3px}.picker-exercise-last{display:block;color:var(--t2);font-size:10px;margin-top:4px}.picker-exercise-action{display:grid;place-items:center;flex:none;width:24px;height:32px;color:var(--acc)}.picker-exercise-action .ic{width:17px;height:17px}
.picker-footer{flex:none;padding:10px 18px calc(env(safe-area-inset-bottom,0px) + 15px);background:var(--bg);border-top:1px solid var(--line)}.picker-create-button{display:flex;align-items:center;gap:9px;width:100%;min-height:44px;font-size:13px;font-weight:500;color:var(--acc)}.picker-create-button>.ic{width:18px;height:18px}.picker-create-button>span{margin-left:auto;display:grid;place-items:center}.picker-create-button>span>.ic{width:15px;height:15px}
.picker-legacy-label{display:block;font-size:11px;color:var(--t2);margin-bottom:7px}.picker-footer .pick-name{margin:0}.picker-footer .pick-name input{font-size:16px;border:1px solid var(--line);border-radius:10px}.picker-footer .pick-name button{font-size:13px;border-radius:10px}
.picker-empty{text-align:center;padding:50px 15px}.picker-empty>span{display:grid;place-items:center;background:var(--s2);width:48px;height:48px;border-radius:14px;color:var(--t2);margin:0 auto 16px}.picker-empty h3{font-size:17px;font-weight:600}.picker-empty p{font-size:12px;color:var(--t2);line-height:1.8;margin-top:8px}
.custom-exercise-picker .picker-title-row{gap:5px}.custom-exercise-picker .picker-title-row>.plan-icon-button:first-child{margin-left:-9px;margin-right:0}.custom-exercise-picker h2{flex:1;font-size:18px;font-weight:600}.picker-custom-body{flex:1;min-height:0;overflow:auto;padding:20px 22px;scrollbar-width:none}.picker-custom-intro{font-size:12px;color:var(--t2);line-height:1.8;margin-bottom:23px}.picker-custom-body>.plan-field{margin-top:22px}.picker-custom-body>.plan-field:first-of-type{margin-top:0}.picker-target-hint{font-size:11px;color:var(--t2);line-height:1.8;margin-top:9px}.picker-footer .plan-primary:disabled{opacity:.4;cursor:default}
@media(max-width:350px){.picker-header{padding-left:14px;padding-right:14px}.picker-exercise{gap:8px;padding-left:9px;padding-right:9px}.picker-exercise-thumb{width:40px;height:46px}.picker-exercise-copy>b{font-size:13px}.picker-custom-body{padding-left:18px;padding-right:18px}}
.picker-3d{display:inline-block;vertical-align:middle;margin-left:7px;padding:1px 5px;border:1px solid var(--line);border-radius:5px;background:var(--s2);color:var(--acc);font-size:9px;font-weight:600;line-height:1.5;letter-spacing:.02em}
.exercise-picker{position:relative}
.picker-custom-details>summary{list-style:none;cursor:pointer}.picker-custom-details>summary::-webkit-details-marker{display:none}
.picker-create-button>.picker-create-label,.picker-create-button>.picker-back-label{margin:0;display:flex;align-items:center;gap:8px}.picker-create-label>.ic,.picker-back-label>.ic{width:18px;height:18px}.picker-create-button>.ic:last-child{margin-left:auto;width:15px;height:15px}
.picker-create-button>.picker-back-label{display:none}.picker-custom-details[open] .picker-create-label{display:none}.picker-custom-details[open] .picker-back-label{display:flex}.picker-custom-details[open]>summary>.ic:last-child{display:none}
.picker-custom-details[open]{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;background:var(--bg)}
.picker-custom-details[open]>summary{padding:5px 18px;min-height:44px;flex:none;border-bottom:1px solid var(--line)}
.picker-custom-shell{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.picker-custom-shell .picker-title-row h2{flex:1;font-size:22px}.picker-custom-shell .picker-header{padding-top:8px;padding-bottom:8px}
.picker-region-field{padding:0;border:0;min-width:0;margin-top:24px}.picker-region-field legend{font-size:12px;font-weight:500;margin-bottom:12px;color:var(--t2)}
.picker-regions{display:flex;flex-wrap:wrap;gap:8px}.picker-regions button{padding:9px 11px;min-height:42px;border:1px solid var(--line);border-radius:10px;background:var(--s1);color:var(--t2);font-size:12px;line-height:1.6;text-align:left}.picker-regions button.on{border-color:var(--acc);background:var(--acc-soft);color:var(--acc)}
.picker-custom-details :focus-visible,.picker-groups button:focus-visible,.picker-exercise:focus-visible{outline:2px solid var(--acc);outline-offset:-3px}

.plan-remove-prompt{padding:8px;font-size:11px;line-height:1.6;color:var(--t2);border-bottom:1px solid var(--line);margin-bottom:4px}

/* Training-day deletion: one explicit confirmation, with history preservation stated upfront. */
.plans-routine-menu .plans-delete-entry{margin-top:4px;border-top:1px solid var(--line);border-radius:0 0 7px 7px}
.sheet:has(.routine-delete-sheet){height:auto;max-height:calc(100% - 64px)}
.sheet-body:has(>.routine-delete-sheet){padding-bottom:0;min-height:0}
.routine-delete-sheet .picker-title-row h2{flex:1;font-size:22px;font-weight:650;letter-spacing:-.03em}
.routine-delete-sheet .picker-header{padding-top:6px;padding-bottom:10px}
.routine-delete-body{padding:22px 22px 12px;font-size:13px;line-height:1.85;color:var(--t2);overflow-wrap:anywhere}
.routine-delete-body .routine-delete-name{font-size:19px;font-weight:600;color:var(--t1);margin-bottom:13px}
.routine-delete-body b{color:var(--t1);font-weight:600}
.routine-delete-preserved{display:flex;align-items:flex-start;gap:8px;margin-top:18px;padding:12px;border-radius:11px;background:var(--acc-soft);color:var(--acc);font-size:12px;line-height:1.7}
.routine-delete-preserved>.ic{flex:none;width:17px;height:17px;margin-top:2px}
.routine-delete-later{margin-top:13px;font-size:11px}
.routine-delete-footer{padding:12px 22px calc(env(safe-area-inset-bottom,0px) + 14px);display:flex;flex-direction:column;align-items:center;gap:4px;border-top:1px solid var(--line)}
.routine-delete-confirm{background:var(--red);color:#fff;font-size:14px}.routine-delete-confirm:disabled{opacity:.45;cursor:default}
.routine-delete-footer>.plan-text-button{width:100%;color:var(--t2)}

/* History: a weekly footprint, then the actual records. Green carries data, not every surface. */
.history-page{--history-ink:var(--t1);--history-muted:var(--t2);--history-fill:var(--s2);--history-sage:#91B7A3;padding:27px 20px 0;color:var(--history-ink)}
[data-theme="light"] .history-page{--history-ink:#29362F;--history-muted:#69756D;--history-fill:#F2F5EF;--history-sage:#93AD9B}
.history-heading{margin-bottom:23px}.history-heading h1{font-size:29px;font-weight:650;letter-spacing:-.04em;line-height:1.2}.history-heading p{font-size:12px;line-height:1.7;color:var(--history-muted);margin-top:6px}
.history-footprint{padding:17px 16px 15px;background:var(--s1);border:1px solid var(--line);border-radius:20px}
.history-week-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.history-week-head p{font-size:10px;color:var(--history-muted);margin-bottom:3px}.history-week-head h2{font-size:17px;font-weight:600;letter-spacing:-.02em}
.history-week-nav{display:flex;gap:4px;flex:none}.history-week-nav button{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--line);border-radius:12px;color:var(--history-ink)}.history-week-nav .ic{width:16px;height:16px}.history-week-nav button:disabled{opacity:.3;cursor:default}.history-week-nav button:active:not(:disabled){background:var(--history-fill)}
.history-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin:19px -3px 0;text-align:center}.history-calendar-day{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0}.history-calendar-day>span:first-child{font-size:9px;color:var(--history-muted)}
.history-calendar-day button,.history-calendar-date{display:grid;place-items:center;width:29px;height:29px;border:1px solid transparent;border-radius:50%;font-size:11px;font-weight:400;letter-spacing:0;color:var(--history-muted);background:var(--history-fill)}
.history-calendar-day.future .history-calendar-date{background:transparent;border-color:var(--line)}
.history-calendar-day.trained button{background:var(--acc-soft);color:var(--acc)}
.history-calendar-day.today>span:first-child{color:var(--acc);font-weight:600}
.history-calendar-day.today button,.history-calendar-day.today .history-calendar-date{border-color:var(--acc);background:var(--acc);color:var(--acc-ink);box-shadow:0 0 0 3px var(--acc-line)}
[data-theme="light"] .history-calendar-day button,[data-theme="light"] .history-calendar-date{background:#E8EEE4;color:#607358}
[data-theme="light"] .history-calendar-day.future .history-calendar-date{background:transparent;border-color:#DCE4D7;color:#80907D}
[data-theme="light"] .history-calendar-day.trained button{background:#DCEBCF;color:#365A2F}
[data-theme="light"] .history-calendar-day.today button,[data-theme="light"] .history-calendar-day.today .history-calendar-date{background:var(--acc);border-color:var(--acc);color:#fff;box-shadow:0 0 0 3px #D6E4CF}
.history-calendar-day button:active{filter:brightness(.96)}
.history-metrics{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;margin-top:21px;padding:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.history-metrics>div{display:flex;align-items:baseline;gap:8px;min-width:0}.history-metrics>div+div{border-left:1px solid var(--line);padding-left:17px}.history-metrics b{font-size:25px;font-weight:600;line-height:1.2;letter-spacing:-.04em;color:var(--history-ink)}.history-metrics span{font-size:10px;line-height:1.5;color:var(--history-muted)}.history-metrics>p{grid-column:1/-1;font-size:10px;color:var(--history-muted);margin-top:4px}
.history-map-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:17px}.history-map-head h3{font-size:12px;font-weight:600}.history-map-head>span{font-size:9px;color:var(--history-muted)}
.history-map-pair{display:flex;align-items:flex-end;justify-content:center;gap:34px;margin:14px auto 0}.history-map-pair figure{min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px}.history-map-pair canvas{display:block;height:174px;width:auto;max-width:100%;cursor:pointer;opacity:.82}.history-map-pair figcaption{font-size:9px;color:var(--history-muted)}
.history-map-key{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:12px;font-size:9px;color:var(--history-muted)}.history-map-key>div{display:flex;gap:3px;opacity:.82}.history-map-key i{display:block;width:14px;height:6px;border-radius:2px}.history-map-hint{text-align:center;font-size:10px;color:var(--history-muted);margin-top:9px}
.history-muscle-selection{margin-top:14px;padding:12px;background:var(--history-fill);border-radius:12px;font-size:11px}.history-muscle-selection>div{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.history-muscle-selection>div>i{height:6px;width:6px;background:var(--amber);border-radius:50%;flex:none}.history-muscle-selection>div>span{margin-left:auto;font-size:10px;color:var(--history-muted)}.history-muscle-selection ul{list-style:none;margin-top:8px}.history-muscle-selection li{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:5px 0;border-top:1px solid var(--line)}.history-muscle-selection li>span{min-width:0;overflow-wrap:anywhere}.history-muscle-selection li>b{flex:none;font-weight:500}.history-muscle-selection>p{margin-top:7px;color:var(--history-muted)}
.history-records{margin-top:25px}.history-section-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:0 2px 12px}.history-section-head h2{font-size:16px;font-weight:600;letter-spacing:-.02em}.history-section-head>span{font-size:11px;color:var(--history-muted)}
.history-record-list{display:flex;flex-direction:column;gap:9px}.history-record{display:grid;grid-template-columns:35px minmax(0,1fr) auto;align-items:center;gap:11px;width:100%;padding:15px 12px;background:var(--s1);border:1px solid var(--line);border-radius:16px;text-align:left;color:var(--history-ink)}.history-record:active{background:var(--history-fill)}.history-record-date{text-align:center}.history-record-date>b{display:block;font-size:22px;font-weight:600;line-height:1.15;letter-spacing:-.03em}.history-record-date>span{display:block;font-size:9px;color:var(--history-muted);margin-top:4px}
.history-record-copy{min-width:0}.history-record-title{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600;line-height:1.55;overflow-wrap:anywhere}.history-rehab{font-size:8px;font-weight:500;border:1px solid var(--line);border-radius:5px;padding:1px 4px;color:var(--history-muted);flex:none}.history-record-meta{display:block;font-size:9px;color:var(--history-muted);margin-top:3px}.history-record-exercises{display:block;font-size:10px;color:var(--history-muted);line-height:1.6;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.history-record-total{display:flex;align-items:baseline;justify-content:flex-end;gap:3px;min-width:60px;white-space:nowrap;flex:none}.history-record-total>b{font-size:15px;font-weight:600}.history-record-total>span{font-size:10px;color:var(--history-muted)}.history-record-total>.ic{height:12px;width:12px;align-self:center;margin-left:3px;color:var(--history-muted);flex:none}.history-record-total .pain-dot{align-self:center;flex:none}
.history-empty{text-align:center;padding:26px 15px;background:var(--s1);border:1px dashed var(--line);border-radius:16px}.history-empty>span{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--history-fill);color:var(--history-muted);margin:0 auto 12px}.history-empty h3{font-size:14px;font-weight:600}.history-empty p{font-size:11px;color:var(--history-muted);margin-top:6px;line-height:1.8}
.history-muscle-detail{margin-top:20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.history-muscle-detail>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 2px}.history-muscle-detail>summary::-webkit-details-marker{display:none}.history-muscle-detail>summary b{display:block;font-size:12px;font-weight:600}.history-muscle-detail>summary small{display:block;font-size:10px;color:var(--history-muted);margin-top:3px}.history-muscle-detail>summary>.ic{width:16px;height:16px;color:var(--history-muted)}.history-muscle-detail[open]>summary>.ic{transform:rotate(180deg)}
.history-muscle-detail-body{padding:0 2px 17px}.history-muscle-detail-body>p{font-size:10px;color:var(--history-muted);line-height:1.8;margin-bottom:15px}.history-load-row{display:grid;grid-template-columns:40px minmax(0,1fr) 64px;gap:9px;align-items:center;margin-top:17px;font-size:11px}.history-load-track{position:relative;height:5px;border-radius:5px;background:var(--history-fill)}.history-load-fill{display:block;height:100%;background:var(--history-sage);border-radius:5px}.history-load-reference{position:absolute;top:-3px;bottom:-3px;border-left:1px solid var(--line);border-right:1px solid var(--line)}.history-load-value{text-align:right;white-space:nowrap}.history-load-value>b{font-size:12px;font-weight:500}.history-load-value small{display:block;font-size:9px;color:var(--history-muted);line-height:1.5;margin-top:2px}.history-muscle-detail-body>.history-untrained{margin:19px 0 0}.history-muscle-detail-body>.history-reference-note{margin:12px 0 0;font-size:9px}
@media(max-width:350px){.history-page{padding-left:14px;padding-right:14px}.history-footprint{padding-left:12px;padding-right:12px}.history-calendar{gap:1px}.history-calendar-day button,.history-calendar-date{width:29px;height:29px}.history-metrics>div{gap:5px}.history-metrics>div+div{padding-left:11px}.history-metrics span{font-size:9px}.history-record{gap:8px;padding-left:9px;padding-right:9px;grid-template-columns:30px minmax(0,1fr) auto}.history-record-total{min-width:56px}.history-record-title{font-size:13px}}

/* Profile shares History's neutral typography, white cards and restrained accent. */
.me-page{--profile-ink:var(--t1);--profile-muted:var(--t2);padding:0 20px;color:var(--profile-ink)}
[data-theme="light"] .me-page{--profile-ink:#29362F;--profile-muted:#69756D}
.me-page-header{padding-top:27px;padding-bottom:23px}.me-page-header h1{font-size:29px;font-weight:650;letter-spacing:-.04em;line-height:1.2}.me-page-header>p{font-size:12px;color:var(--profile-muted);margin-top:6px;line-height:1.7}
.me-profile{background:var(--s1);border:1px solid var(--line);padding:14px 16px;margin-bottom:25px;box-shadow:none}.me-identity{gap:10px;align-items:center}.me-identity .av{width:34px;height:34px;background:var(--s2);color:var(--profile-ink);font-size:13px;font-weight:500;border:1px solid var(--line)}.me-identity h2{font-size:16px;color:var(--profile-ink);font-weight:600}.me-identity p{color:var(--profile-muted);font-size:10px}
.me-body-stats{display:flex;gap:24px;margin-top:12px;padding-top:0;border-top:0}.me-body-stats>div{display:flex;flex:initial;flex-direction:row;align-items:baseline;gap:7px;padding:0;border:0}.me-body-stats>div>span{width:auto;color:var(--profile-muted);font-size:11px}.me-body-stats b{font-size:15px;color:var(--profile-ink);font-weight:500;letter-spacing:0}.me-body-stats small{font-size:10px;color:var(--profile-muted);margin-left:3px}.me-body-date{font-size:9px;color:var(--profile-muted);margin-top:8px}
.me-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 2px 12px}.me-section-heading h2{font-size:16px;font-weight:600;letter-spacing:-.02em;color:var(--profile-ink)}.me-section-heading>span{font-size:10px;color:var(--profile-muted)}
.me-page .me-goal>.card{padding:17px;border-radius:18px;margin-bottom:25px}.me-page .card .h b{font-size:13px;font-weight:600;color:var(--profile-ink)}.me-page .me-goal .goalnote{background:var(--s2);color:var(--profile-muted);font-size:11px;line-height:1.8}.me-page .goalnote b{color:var(--profile-ink)}.me-page .ladder{margin-top:18px;margin-bottom:18px}.me-page .ladder .st{font-size:9px}.me-page .me-goal .hint{font-size:10px;line-height:1.8;color:var(--profile-muted)}
.me-trend{background:var(--s1);border:1px solid var(--line);border-radius:18px;padding:17px;margin-bottom:25px}.me-trend>.me-section-heading{margin-bottom:14px}.me-trend .me-section-heading h2{font-size:14px}.me-exercise-pick{margin:0 -3px 10px;padding:3px 3px 8px;gap:6px}.me-exercise-pick button{font-size:10px;min-height:36px;padding:6px 10px;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--profile-muted)}.me-exercise-pick button.on{background:var(--acc-soft);color:var(--acc);border-color:var(--acc-line)}
.me-chart-summary{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:17px 0 3px}.me-chart-summary>div>b{display:block;font-size:27px;font-weight:600;line-height:1.2;letter-spacing:-.035em}.me-chart-summary small{font-size:11px;font-weight:400;letter-spacing:0;color:var(--profile-muted);margin-left:5px}.me-chart-summary>div>span{display:block;font-size:10px;color:var(--profile-muted);margin-top:5px}.me-chart-summary>p{font-size:9px;color:var(--profile-muted);text-align:right;max-width:100px}
.me-trend .chart{display:block;margin-top:10px;width:100%;aspect-ratio:330/132}.me-trend .chart .lab{fill:var(--profile-muted);font-size:9px}.me-trend-line{fill:none;stroke:var(--acc);stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}.me-trend .chart .pt{fill:var(--s1);stroke:var(--acc);stroke-width:1.5}.me-trend .chart .pt.latest{fill:var(--acc);stroke:var(--s1);stroke-width:2}.me-trend .hint{padding-top:10px;border-top:1px solid var(--line);font-size:10px;line-height:1.8;color:var(--profile-muted)}
.me-no-trend{background:var(--s1);font-size:12px;color:var(--profile-muted)}.me-data .me-section-heading{margin-bottom:12px}.me-page .me-links{border-radius:18px;overflow:hidden}.me-page .me-links .row-a{padding:15px 13px;gap:11px}.me-page .me-links .me-link-icon{background:transparent;color:var(--profile-muted);width:24px;height:30px}.me-link-copy b{font-size:12px;color:var(--profile-ink)}.me-link-copy small{font-size:10px;color:var(--profile-muted);margin-top:3px}.me-links .row-a>.ic{height:13px;width:13px;color:var(--profile-muted)}.me-page .me-logout{margin-top:16px;min-height:48px;padding-left:2px;padding-right:2px;font-size:12px}.me-page .art-credit{font-size:9px;margin:10px 5px 0;color:var(--profile-muted);line-height:1.8}
@media(max-width:350px){.me-page{padding-left:14px;padding-right:14px}.me-trend{padding:14px}.me-chart-summary>div>b{font-size:24px}}

/* share a workout (share.js) */
.share-entry{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;width:calc(100% - 24px);margin:-26px 12px 40px;border:1px solid var(--acc-line);border-radius:14px;font-size:14px;font-weight:500;color:var(--acc)}
.share-entry .ic{width:17px;height:17px}.share-entry-session{margin:14px 12px 0}
.sheet:has(.share-sheet){height:auto;max-height:calc(100% - 40px)}.sheet-body:has(>.share-sheet){padding-bottom:0;min-height:0;display:flex;flex-direction:column}
.share-sheet{display:flex;flex-direction:column;min-height:0;flex:1}.share-sheet .picker-header{padding-top:6px;padding-bottom:8px}
.share-state{display:flex;flex-direction:column;align-items:center;gap:14px;padding:44px 22px;font-size:13px;color:var(--t2);text-align:center}
.share-spinner{width:26px;height:26px;border-radius:50%;border:2.5px solid var(--line);border-top-color:var(--acc);animation:share-spin .8s linear infinite}
@keyframes share-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.share-spinner{animation-duration:2.4s}}
.share-preview{flex:1;min-height:0;overflow-y:auto;padding:4px 18px 12px;-webkit-overflow-scrolling:touch}
.share-preview img{display:block;width:100%;height:auto;border-radius:12px;border:1px solid var(--line);-webkit-touch-callout:default;user-select:auto}
.share-footer{flex:none;display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 22px calc(env(safe-area-inset-bottom,0px) + 14px);border-top:1px solid var(--line)}
.share-footer>.plan-text-button{width:100%;color:var(--t2)}.share-hint{font-size:13px;color:var(--t1);padding:8px 0 2px}

/* Exercise guides: light discovery on Today, focused search in its own screen. */
.home-guides{margin:26px 6px 0}.home-guides .home-section-heading{margin-bottom:3px;align-items:center}.home-guides .home-section-heading h2{font-size:13px;font-weight:600}.home-guides-intro{font-size:10px;line-height:1.7;color:var(--t2);margin-bottom:12px}
.guide-list{border:1px solid var(--line);border-radius:18px;background:var(--s1);overflow:hidden}.guide-row{display:flex;align-items:center;gap:11px;width:100%;min-height:88px;padding:11px 13px;border-bottom:1px solid var(--line);text-align:left}.guide-row:last-child{border-bottom:0}.guide-row:active{background:var(--s2)}.guide-thumb{display:flex;align-items:center;justify-content:center;width:58px;height:66px;flex:none;background:var(--bg);border-radius:10px;overflow:hidden}.guide-thumb img{width:100%;height:100%;object-fit:contain}.guide-thumb canvas{height:60px;max-width:100%;object-fit:contain}.guide-copy{flex:1;min-width:0}.guide-copy b{font-size:13px;font-weight:550;line-height:1.5;display:block;color:var(--t1)}.guide-copy small{font-size:10px;color:var(--t2);line-height:1.7;display:block;margin-top:4px}.guide-badge{font-size:9px;letter-spacing:.02em;color:var(--acc);border:1px solid var(--acc-line);padding:2px 4px;border-radius:4px;flex:none}.guide-row>.ic{width:12px;height:12px;color:var(--t2);flex:none}
.guides-page .nav{background:var(--bg)}.guides-heading{padding:12px 22px 21px}.guides-heading h1{font-size:27px;line-height:1.2;letter-spacing:-.04em;font-weight:600}.guides-heading p{font-size:11px;line-height:1.7;color:var(--t2);margin-top:10px}.guides-controls{position:sticky;top:0;z-index:2;background:var(--bg);padding:0 20px 12px;border-bottom:1px solid var(--line)}.guides-search{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:11px;background:var(--s1);padding:0 12px;min-height:44px}.guides-search>.ic{width:17px;height:17px;color:var(--t2);flex:none}.guides-search input{width:100%;min-width:0;border:0;background:none;outline:none;font-size:12px;height:44px}.guides-search:focus-within{outline:2px solid var(--acc-line)}.guides-search input::placeholder{color:var(--t2)}.guides-groups{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding:12px 1px 1px}.guides-groups::-webkit-scrollbar{display:none}.guides-groups button{flex:none;white-space:nowrap;border:1px solid var(--line);border-radius:8px;padding:7px 12px;min-height:36px;font-size:11px;background:var(--s1);color:var(--t2)}.guides-groups button[aria-pressed="true"]{background:var(--acc-soft);border-color:var(--acc-line);color:var(--acc)}.guides-results{padding:0 20px}.guides-count{font-size:10px;color:var(--t2);margin:14px 2px 10px}.guides-empty{padding:40px 12px;text-align:center}.guides-empty h2{font-size:16px;font-weight:600}.guides-empty p{font-size:12px;color:var(--t2);margin:8px 0 16px}.guides-empty button{font-size:12px;color:var(--acc);padding:10px 16px;border:1px solid var(--acc-line);border-radius:9px}
.guide-mistakes .h>span{font-size:11px;color:var(--t2)}.guide-mistakes details{border-top:1px solid var(--line)}.guide-mistakes summary{list-style:none;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;cursor:pointer;font-size:13px;line-height:1.7;padding:13px 0}.guide-mistakes summary::-webkit-details-marker{display:none}.guide-mistakes summary>.ic{width:14px;height:14px;margin-top:4px;color:var(--t2);flex:none}.guide-mistakes details[open] summary>.ic{transform:rotate(180deg)}.guide-mistake-body{padding:0 0 14px}.guide-mistake-body p{font-size:12px;line-height:1.9;color:var(--t2)}.guide-mistake-body>a{display:inline-flex;align-items:center;gap:6px;min-height:40px;font-size:12px;font-weight:550;margin-top:8px}.guide-mistake-body>a .ic{width:12px;height:12px}.guide-mistake-body>small{display:block;font-size:10px;color:var(--t2);line-height:1.8;margin-top:5px}.xd>.open3d{height:auto;min-height:50px;text-align:center;padding:10px 14px}
@media(max-width:350px){.guide-row{padding:10px;gap:9px}.guide-thumb{width:48px;height:60px}.guide-copy b{font-size:12px}.guide-badge{font-size:8px}.guides-heading{padding-left:17px;padding-right:17px}.guides-controls,.guides-results{padding-left:14px;padding-right:14px}}

/* Share sits beside navigation, and beside the record it shares on Today. */
.share-topbar{color:var(--acc)}.share-topbar .ic,.home-share .ic{width:19px;height:19px}.sum-toolbar{position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(env(safe-area-inset-top,0px) + 10px) 16px 10px;background:var(--bg)}.sum-toolbar>span{font-size:14px;font-weight:600;text-align:center}.sum-toolbar+.sum-hd{padding:14px 24px 0}.home-plan-status>span{display:flex;align-items:center;gap:5px;flex:1;min-width:0}.home-plan-status:has(.home-share){padding:3px 5px 3px 11px}.home-share{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:8px;color:var(--acc)}.home-share:active{background:var(--acc-line)}

.share-download{display:flex;align-items:center;justify-content:center;min-height:44px;width:100%;border:1px solid var(--acc-line);border-radius:12px;font-size:13px;font-weight:550;color:var(--acc);text-decoration:none}.share-download.plan-primary{color:var(--acc-ink);border-color:var(--acc)}.share-download:active{opacity:.75}.share-footer .share-hint{font-size:11px;color:var(--t2);text-align:center;padding:4px 0}
.share-sheet .picker-title-row h2{flex:1}

/* Manual cardio: a quiet secondary entry, one required metric, optional details. */
.home-log-activity,.picker-cardio{display:flex;align-items:center;gap:12px;width:100%;text-align:left;color:var(--t1);background:var(--s1);border:1px solid var(--line);border-radius:18px;padding:16px 18px}
.home-log-activity{margin:18px 0 4px}.home-log-activity>span,.picker-cardio>span{flex:1;display:grid;gap:4px}.home-log-activity b,.picker-cardio b{font-size:15px;font-weight:600}.home-log-activity small,.picker-cardio small{font-size:12px;color:var(--t2)}.home-log-activity>.ic:first-child,.picker-cardio>.ic:first-child{color:var(--acc)}.home-log-activity>.ic:last-child,.picker-cardio>.ic:last-child{width:17px;color:var(--t2)}.picker-cardio{width:calc(100% - 40px);margin:0 20px 10px}
.cardio-list{margin:20px 20px 12px}.wo-content .cardio-list{margin:24px 0 8px}.cardio-list>header{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:10px}.cardio-list h2{font-size:16px;margin:0;font-weight:600}.cardio-list>header>span{font-size:12px;color:var(--t2)}
.cardio-row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:16px 0;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--t1)}.cardio-icon{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:13px;background:var(--bg);color:var(--acc)}.cardio-row-copy{flex:1;min-width:0;display:grid;gap:5px}.cardio-row-copy b{font-size:15px;font-weight:600}.cardio-row-copy small{font-size:11px;color:var(--t2);line-height:1.6;overflow-wrap:anywhere}.cardio-row-copy .cardio-note{white-space:pre-wrap}.cardio-duration{display:grid;text-align:right;gap:3px;flex-shrink:0}.cardio-duration b{font-size:21px;font-weight:500;font-variant-numeric:tabular-nums}.cardio-duration small{color:var(--t2);font-size:11px}.cardio-row>.ic{width:16px;color:var(--t2);flex-shrink:0}.cardio-add{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;padding:14px 0;margin-top:8px;border:1px dashed var(--line);border-radius:13px;background:transparent;color:var(--acc);font-size:14px;font-weight:600}.cardio-add .ic{width:18px}
.cardio-editor-body{display:grid;gap:20px;padding:12px 20px 24px}.cardio-editor .plan-field{gap:8px}.cardio-editor .plan-field>small{color:var(--t2);font-size:11px;font-weight:400}.cardio-editor select,.cardio-editor textarea{font:inherit;color:var(--t1);background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:13px;width:100%;box-sizing:border-box;min-height:48px}.cardio-editor .plan-input-unit{background:var(--bg)}.cardio-more{border-top:1px solid var(--line);padding-top:16px}.cardio-more>summary{display:flex;align-items:center;justify-content:space-between;list-style:none;font-size:14px;cursor:pointer}.cardio-more>summary::-webkit-details-marker{display:none}.cardio-more>summary span{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--t2)}.cardio-more>summary .ic{width:15px}.cardio-more[open]>summary .ic{transform:rotate(180deg)}.cardio-more>div{display:grid;gap:18px;padding-top:22px}.cardio-editor-footer{display:grid;gap:12px;padding:16px 20px max(20px,env(safe-area-inset-bottom));border-top:1px solid var(--line)}.cardio-editor-footer>p{font-size:12px;color:var(--t2);text-align:center;margin:0;line-height:1.5}.cardio-remove{color:var(--red,#bd5247);border:0;background:transparent;padding:10px;font:inherit;font-size:14px}.history-record-total>small{font-size:10px;color:var(--t2);white-space:nowrap}
.history-metrics.with-cardio{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.history-metrics.with-cardio>div{display:grid;align-content:start;gap:5px}.history-metrics.with-cardio>div+div{padding-left:12px}.history-metrics.with-cardio span{font-size:10px}.cardio-editor .plan-field>small{display:none}

.home-plan-status.home-plan-records{display:grid;gap:8px}.home-record-share{display:flex;align-items:center;gap:12px;padding-top:6px;border-top:1px solid var(--acc-line)}.home-record-share>span{flex:1;min-width:0}.home-record-share .home-share{margin-left:auto}
