*{box-sizing:border-box}html,body{margin:0;background:#06090b;color:#f4f6f8;font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif}body{min-height:100vh}button,input,select{font:inherit}button{color:inherit;border:0;background:none;touch-action:manipulation}header{height:60px;border-bottom:1px solid #20272d;display:flex;align-items:center;justify-content:space-between;padding:0 15px;position:sticky;top:0;background:#070a0df5;z-index:30}header b{font-size:20px;letter-spacing:1px}header b span,.brand span{color:#2196ff}header button{font-size:21px}main{max-width:760px;margin:auto;padding:22px 14px 95px}.hero{padding:18px 0}.hero h1,h1{font-size:31px;margin:7px 0}.hero p,.muted{color:#8c979f;line-height:1.5}.hero small,main>small{font-size:10px;letter-spacing:1.4px;color:#87929b;font-weight:800}.primary{width:100%;background:#147ee5;padding:15px;border-radius:10px;font-weight:900;margin-top:12px}.outline{width:100%;padding:13px;border:1px solid #147ee5;border-radius:10px;color:#50aaff;margin:7px 0}.statbar{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.statbar div,.metric,.recent,.empty{background:#0d1215;border:1px solid #232d33;border-radius:11px;padding:13px}.statbar b{display:block;font-size:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.statbar small,.metric small,.recent span{display:block;color:#87929b;font-size:10px;margin-top:4px}.recent{display:flex;justify-content:space-between;gap:10px;margin:8px 0}.empty{text-align:center;color:#87929b;padding:28px 15px}.chips{display:flex;gap:7px;overflow:auto;margin:5px 0 10px}.chips button{white-space:nowrap;background:#10171b;border:1px solid #29343b;border-radius:20px;padding:8px 11px;font-size:11px}.chips button.on{background:#147ee5;border-color:#147ee5}.search{width:100%;background:#0d1215;color:#fff;border:1px solid #303a42;border-radius:10px;padding:13px;outline:none;margin:8px 0}.excard,.pickcard{display:flex;align-items:center;gap:11px;background:#0d1215;border:1px solid #222c32;border-radius:10px;padding:8px;margin:7px 0}.excard img,.pickcard img,.exhead img,.ph{width:82px;height:62px;object-fit:cover;border-radius:7px;background:#eef0f2}.ph{display:grid;place-items:center;font-size:25px}.excard>div,.pickcard>div{flex:1}.excard b,.pickcard b,.exhead b{display:block}.excard small,.pickcard small,.exhead small{display:block;color:#1997ff;margin-top:4px;font-size:11px}.excard em{font-size:9px;color:#8c979f}.pickcard button{background:#151e23;border:1px solid #344149;border-radius:8px;padding:9px;font-size:10px;font-weight:900}.pickcard button.selected{background:#147ee5;border-color:#147ee5}.partgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0}.partgrid button{background:#0d1215;border:1px solid #29343b;border-radius:12px;text-align:left;padding:17px;transition:.15s}.partgrid button.selected{background:#147ee5;border-color:#147ee5}.partgrid button.selected span{color:#fff}.partgrid button:disabled{opacity:.5}.partgrid strong{display:block;font-size:17px}.partgrid span{display:block;color:#87929b;font-size:10px;margin-top:5px}.warmlist{margin:15px 0}.warmlist label{display:flex;align-items:center;gap:12px;background:#0d1215;border:1px solid #232d33;border-radius:10px;padding:14px;margin:8px 0}.warmlist input{width:20px;height:20px;accent-color:#147ee5}.warmcard,.warmtag{background:#0c151b;border:1px solid #1e536f;border-radius:10px;padding:12px;margin:10px 0;color:#a7d9f6}.warmcard p{color:#87929b;font-size:12px}.worktop{display:flex;justify-content:space-between;align-items:center;padding:4px 0 14px;border-bottom:1px solid #20282e}.worktop small,.worktop b{display:block}.worktop small{color:#87929b;font-size:9px}.worktop strong{font-size:20px}.rest{display:flex;align-items:center;gap:12px;background:#10202a;border:1px solid #1d5a82;border-radius:10px;padding:10px;margin:10px 0}.rest span{color:#55b6ff;font-size:10px;font-weight:900}.rest strong{font-size:22px}.rest button{margin-left:auto;background:#18252d;border-radius:7px;padding:6px 9px}.exercise{background:#0d1215;border:1px solid #263139;border-radius:12px;overflow:hidden;margin:12px 0}.exhead{display:flex;align-items:center;gap:11px;padding:11px}.exhead div{flex:1}.exhead em{display:block;color:#87929b;font-size:9px;font-style:normal;margin-top:4px}.trash{color:#69747c;font-size:22px}.sethead,.setrow{display:grid;grid-template-columns:42px 1fr 1fr 25px;gap:7px;align-items:center;padding:8px 10px}.sethead{border-top:1px solid #20282e;color:#87929b;font-size:9px}.setrow{border-top:1px solid #1b2328;min-height:39px}.setrow span:last-child{color:#61df78}.setnum{color:#8c979f;font-size:11px}.entry{display:grid;grid-template-columns:1fr 1fr auto;gap:7px;border-top:1px solid #20282e;padding:9px}.entry>button:not(.log){min-height:56px;background:#080c0f;border:1px solid #3a4650;border-radius:9px;font-size:22px;font-weight:900}.entry small{display:block;color:#87929b;font-size:9px;font-weight:600}.entry .log{background:#147ee5;border-radius:9px;padding:0 13px;font-weight:900}.shortcuts{display:flex;gap:6px;overflow:auto;padding:0 9px 9px}.shortcuts button{white-space:nowrap;background:#151d22;border:1px solid #2c3840;border-radius:8px;padding:8px 10px;font-size:10px;font-weight:800}.addbig{width:100%;padding:15px;border:1px solid #147ee5;color:#50aaff;border-radius:10px;font-weight:900}.modal,.padmodal{position:fixed;inset:0;background:#000b;z-index:100;display:flex;align-items:flex-end}.sheet,.pad{width:100%;max-height:90vh;overflow:auto;background:#0b1013;border-radius:18px 18px 0 0;padding:15px}.sheethead{display:flex;justify-content:space-between;font-size:16px;margin-bottom:8px}.sheet label{display:block;color:#87929b;font-size:11px;margin:10px 0}.sheet input,.sheet select{width:100%;margin-top:5px;padding:12px;background:#0d1215;color:#fff;border:1px solid #303a42;border-radius:9px}.pad{padding-bottom:20px}.padtitle{text-align:center;position:relative;padding:4px 0 12px}.padtitle small{display:block;color:#87929b;font-size:10px}.padtitle b{font-size:38px}.padtitle button{position:absolute;right:0;top:0;font-size:20px}.keys{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.keys button{height:58px;background:#151d22;border:1px solid #2c3840;border-radius:10px;font-size:23px;font-weight:800}.done{width:100%;height:54px;background:#147ee5;border-radius:10px;margin-top:9px;font-weight:900}.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.metric b{font-size:28px}.auth{min-height:100vh;display:grid;place-items:center;padding:20px;background:#06090b}.brand{font-size:28px;font-weight:900;text-align:center;margin-bottom:18px}.authbox{width:min(420px,100%);background:#0d1215;border:1px solid #263139;border-radius:15px;padding:18px}.tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #283138;margin-bottom:15px}.tabs button{padding:12px;color:#87929b;font-size:11px;font-weight:900}.tabs .active{color:#fff;border-bottom:2px solid #147ee5}.authbox input{width:100%;padding:14px;margin:5px 0;background:#080c0f;color:#fff;border:1px solid #344149;border-radius:9px}.privacy{color:#74818a;font-size:10px;line-height:1.5;margin-top:14px}.err{color:#ff7d7d;font-size:11px}.authbox .primary{margin-top:8px}nav{position:fixed;left:0;right:0;bottom:0;height:67px;background:#070a0df5;border-top:1px solid #20282e;display:flex;align-items:center;justify-content:center;gap:25px;z-index:40}nav button{color:#87929b;font-size:19px;text-align:center}nav small{display:block;font-size:8px}#quick{width:47px;height:47px;border-radius:50%;background:#147ee5;color:#fff;font-size:27px}@media(min-width:700px){main{padding-bottom:100px}}

.partgrid button{min-height:150px;position:relative;overflow:hidden}
.part-visual{height:78px;display:flex;align-items:center;justify-content:center}
.part-icon{font-size:46px;filter:saturate(.8)}
.yourstyle{width:100%;display:flex;align-items:center;gap:12px;text-align:left;background:#171225;border:1px solid #7056c9;border-radius:12px;padding:13px;margin:10px 0}
.yourstyle.selected{background:#24183e;border-color:#9b7cff;box-shadow:0 0 0 1px #9b7cff inset}
.yourstyle .style-visual{font-size:31px}
.yourstyle div:nth-child(2){flex:1}
.yourstyle strong{display:block;font-size:15px}
.yourstyle span{display:block;color:#a9a0bd;font-size:10px;margin-top:4px}
.yourstyle>b{font-size:25px;color:#aaa0bd}
.addwarm{width:100%;padding:14px;border:1px solid #147ee5;border-radius:10px;background:#0c151b;color:#50aaff;font-weight:900;margin-top:9px}
.warm-note{background:#0d151a;border:1px solid #26343d;color:#89959e;border-radius:10px;padding:11px;font-size:11px;margin-top:9px}
.user-warmup{display:flex;align-items:center;gap:11px;background:#0d1215;border:1px solid #263139;border-radius:10px;padding:9px;margin:8px 0}
.user-warmup img,.warm-placeholder{width:72px;height:58px;object-fit:cover;border-radius:7px;background:#151c21}
.warm-placeholder{display:grid;place-items:center;font-size:28px}
.user-warmup>div:nth-child(2){flex:1}
.user-warmup b{display:block}
.user-warmup small{display:block;color:#87929b;margin-top:4px}
.user-warmup button{font-size:22px;color:#6f7b83}
.warm-input-row{display:grid;grid-template-columns:1fr 120px;gap:7px}
.half{margin-top:12px!important}
.blank-ph{background:#151c21!important}

/* Mobile-first gym UI */
html,body{width:100%;max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%}button,input,select{min-height:44px}main{width:100%;padding:18px 12px calc(92px + env(safe-area-inset-bottom))}.auth{min-height:100svh;padding:20px 12px}.authbox{width:min(100%,420px)}.partgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.partgrid button{min-width:0}.pickcard{min-width:0}.pickcard button{min-width:68px}.search{font-size:16px}.chips{display:flex;overflow-x:auto;gap:6px;scrollbar-width:none}.chips::-webkit-scrollbar{display:none}.chips button{flex:0 0 auto}.actions{grid-template-columns:minmax(82px,.35fr) 1fr}.sheet{padding:14px 12px calc(22px + env(safe-area-inset-bottom))}.sheet input,.sheet select{font-size:16px}.report-grid{grid-template-columns:repeat(2,1fr)}.report-card{background:#0d1317;border:1px solid #253038;border-radius:12px;padding:13px;margin:10px 0}.report-head{display:flex;justify-content:space-between;gap:8px;margin-bottom:12px}.report-head span,.muted{color:#87939c;font-size:11px}.week-bars{height:120px;display:flex;align-items:end;justify-content:space-around;gap:10px}.week-bars>div{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:4px}.week-bars .bar{width:34px;background:#1689e8;border-radius:6px 6px 2px 2px;min-height:18px}.week-bars small{color:#74818a;font-size:9px}.week-bars b{font-size:10px}.muscle-row{display:grid;grid-template-columns:75px 1fr 20px;gap:7px;align-items:center;margin:9px 0;font-size:11px}.muscle-row div{height:7px;background:#1c252b;border-radius:5px;overflow:hidden}.muscle-row i{display:block;height:100%;background:#1689e8;border-radius:5px}.highlight{display:flex;justify-content:space-between;align-items:center}.highlight small{display:block;color:#7f8b94;font-size:9px}.highlight strong{display:block;font-size:28px;margin-top:3px}.trend{color:#47c987;font-weight:800;font-size:12px}.demo-login{width:100%;min-height:46px;margin-top:9px;border:1px dashed #6d57c7;border-radius:10px;background:#151022;color:#b9aaff;font-weight:800}
@media(max-width:380px){main{padding-left:9px;padding-right:9px}.partgrid button{min-height:118px}.pickcard button{min-width:58px;padding:6px;font-size:10px}}
@media(min-width:700px){main{padding-left:18px;padding-right:18px}.partgrid{grid-template-columns:repeat(4,1fr)}}

.stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0}.stat{background:#0d1317;border:1px solid #26333b;border-radius:13px;padding:15px;min-height:88px}.stat b{display:block;font-size:29px}.stat span{color:#7e9bb3;font-size:11px}
.progress-panel{background:#0d1317;border:1px solid #26333b;border-radius:13px;padding:13px;margin:9px 0}.panel-head{display:flex;justify-content:space-between;gap:8px}.panel-head h2{font-size:17px;margin:0}.panel-head span{font-size:10px;color:#82909a}
.bars{height:160px;display:flex;align-items:flex-end;justify-content:space-around}.bar-wrap{height:145px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.bar{width:38px;background:#168bea;border-radius:7px 7px 2px 2px}.bar-wrap small{margin-top:7px;color:#80909a;font-size:10px}.bar-wrap b{font-size:11px}
.pr-row,.week-row{display:grid;grid-template-columns:1fr auto;gap:8px;padding:10px 0;border-bottom:1px solid #202b32}.pr-row:last-child,.week-row:last-child{border-bottom:0}.pr-row small,.week-row small{display:block;color:#7d8991;font-size:10px}.week-row{grid-template-columns:1fr auto auto;font-size:11px}
.history-list{display:grid;gap:8px;margin:12px 0}.history-card{width:100%;text-align:left;background:#0d1317;border:1px solid #26333b;border-radius:12px;padding:13px;color:inherit}.history-top{display:flex;justify-content:space-between;gap:8px}.history-top span{color:#80909a;font-size:10px}.history-parts{font-size:15px;font-weight:800;margin-top:7px}.history-exercises{color:#82909a;font-size:10px;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-summary{display:flex;justify-content:space-between;gap:8px;background:#0d1317;border:1px solid #26333b;border-radius:12px;padding:13px;margin:10px 0}.history-summary span{font-size:10px;color:#82909a}.history-exercise{background:#0d1317;border:1px solid #26333b;border-radius:11px;margin:8px 0;padding:11px}.history-ex-head{display:flex;justify-content:space-between}.history-ex-head small{color:#82909a}.set-history{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}.set-history span{font-size:10px;background:#151d22;border-radius:7px;padding:8px;color:#b3bec5}
@media(max-width:380px){.stats-grid{gap:6px}.stat{padding:11px 9px}.stat b{font-size:25px}.set-history{grid-template-columns:1fr}}

.page-back{min-width:72px!important;font-size:12px!important;font-weight:800!important}
.page-back span{font-size:10px}
.partgrid button .part-visual{height:112px;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:12px}
.partgrid button .part-visual img{width:100%;height:100%;object-fit:contain;display:block}
.partgrid button strong{display:block;margin-top:8px}
.partgrid button span{display:block}
.style-visual{font-size:34px;width:58px;height:58px;display:flex;align-items:center;justify-content:center;background:#10181d;border-radius:12px}
@media(max-width:600px){
 header{position:sticky;top:0;z-index:20}
 main{padding-bottom:88px}
 .partgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .partgrid button .part-visual{height:105px}
 .partgrid button{padding:9px}
 .yourstyle{min-height:78px}
}

/* Final mobile test pass */
html{overscroll-behavior-y:none}
body{padding-bottom:env(safe-area-inset-bottom)}
input,select,button{font-size:16px}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
@media(max-width:600px){
  header{height:56px;padding:0 12px}
  header b{font-size:18px}
  main{max-width:520px;margin:0 auto;padding:14px 12px calc(86px + env(safe-area-inset-bottom))}
  h1{font-size:28px;line-height:1.15}
  h2{font-size:20px}
  .hero{padding:12px 0}
  .hero h1{font-size:30px}
  .partgrid button .part-visual{height:112px}
  .partgrid button strong{font-size:16px}
  .pickcard{align-items:center;padding:8px}
  .pickcard img,.excard img,.exhead img{width:76px;height:62px;flex:0 0 76px}
  .pickcard button{min-height:46px;padding:8px 10px}
  .sethead,.setrow{grid-template-columns:38px minmax(0,1fr) minmax(0,1fr) 26px;gap:5px;padding-left:8px;padding-right:8px}
  .entry{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 76px;gap:6px}
  .entry>button:not(.log){min-height:54px}
  .entry .log{min-width:70px;padding:0 8px}
  .shortcuts{padding-left:8px;padding-right:8px}
  .rest strong{font-size:20px}
  nav{height:64px;padding-bottom:env(safe-area-inset-bottom);gap:20px}
  nav button{min-width:48px}
  #quick{width:48px;height:48px}
  .sheet{max-height:92svh;border-radius:18px 18px 0 0}
  .keys button{height:56px}
  .actions{display:grid;grid-template-columns:88px minmax(0,1fr);gap:7px}
  .actions .primary,.actions .outline{margin-top:7px}
}
@media(max-width:360px){
  main{padding-left:9px;padding-right:9px}
  .partgrid{gap:7px}
  .partgrid button .part-visual{height:94px}
  .partgrid button{min-height:130px;padding:7px}
  .partgrid button strong{font-size:14px}
  .partgrid button span{font-size:9px}
  .pickcard img,.excard img,.exhead img{width:66px;height:56px;flex-basis:66px}
  .entry{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 68px}
  nav{gap:13px}
}

/* Body profile / personalized starting point */
.profile-mini{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;background:#0d151a;border:1px solid #263b47;border-radius:13px;padding:13px;margin:12px 0;color:#fff}.profile-mini div{min-width:0}.profile-mini small,.profile-mini span{display:block;color:#7f909b;font-size:10px}.profile-mini b{display:block;font-size:14px;margin:4px 0;white-space:normal}.profile-mini strong{font-size:25px;color:#46a9ff}.profile-form{display:grid;gap:8px;margin:12px 0}.profile-form label{position:relative;display:grid;grid-template-columns:1fr 90px 34px;align-items:center;gap:7px;background:#0d151a;border:1px solid #26343d;border-radius:10px;padding:5px 8px;color:#d9e0e5;font-size:11px}.profile-form label small{color:#7e8a93}.profile-form input{width:100%;border:0;background:transparent;color:#fff;outline:none;min-height:42px;font-size:16px}.profile-form label span{color:#7e9bb3;font-size:11px}.profile-result{background:#0e1820;border:1px solid #2a78ad;border-radius:12px;padding:13px;margin:10px 0}.profile-result small{display:block;color:#50aaff;font-size:9px;font-weight:800}.profile-result b{display:block;font-size:18px;margin:4px 0}.profile-result span{display:block;color:#9aa7af;font-size:11px;line-height:1.45}.profile-illustration{background:#f7f8f9;border-radius:14px;border:1px solid #dce2e6;overflow:hidden;margin:10px 0}.profile-illustration img{display:block;width:100%;height:auto}.profile-disclaimer{font-size:9px;line-height:1.5;color:#77848d;margin:8px 2px 12px}.profile-form + .profile-result{margin-top:4px}

/* Saved warm-up presets */
.saved-warmups{margin:18px 0;padding:14px;border:1px solid var(--line,#26323a);border-radius:16px;background:var(--panel,#0d1216)}
.saved-warmups .panel-head{margin-bottom:10px}
.saved-warmup-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line,#26323a)}
.saved-warmup-row:first-of-type{border-top:0}
.saved-warmup-row img,.saved-warmup-row .warm-placeholder{width:48px;height:48px;flex:0 0 48px;border-radius:12px;object-fit:cover}
.saved-warmup-row>div:nth-child(2){flex:1;min-width:0}
.saved-warmup-row b,.saved-warmup-row small{display:block}
.saved-warmup-row small{margin-top:3px;color:var(--muted,#8da0ad);font-size:12px}
.warm-placeholder.small{display:grid;place-items:center;font-size:20px;background:#141b20}
.checkline{display:flex!important;align-items:center;gap:9px;margin:12px 0!important;font-size:14px!important;color:var(--text,#f4f7f9)}
.checkline input{width:18px!important;height:18px!important;margin:0!important;accent-color:#168cff}

/* Personalized profile form + per-user visual */
.profile-form label{display:grid;grid-template-columns:minmax(72px,1fr) minmax(0,1.5fr) 34px;align-items:center;gap:8px;min-width:0;padding:7px 9px}
.profile-form .field-name{min-width:0;color:#d9e0e5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-form .field-name small{color:#7e8a93;font-size:9px}
.profile-form input{min-width:0;width:100%;height:44px;padding:0 6px;border:0!important;background:transparent!important;color:#fff;outline:none;font-size:16px}
.profile-form input::placeholder{color:#68757d;font-size:13px;opacity:1}
.profile-form .unit{color:#7e9bb3;font-size:11px;text-align:right;white-space:nowrap}
.profile-visual-wrap{background:linear-gradient(180deg,#f8fafb,#eef2f4);border:1px solid #d6dfe5;border-radius:14px;overflow:hidden;margin:10px 0;color:#18324b}
.profile-svg{display:block;width:100%;height:auto;max-height:430px}
.profile-skin{fill:#dce7ed;stroke:#18324b;stroke-width:3}
.profile-body{fill:url(#bodyShade);stroke:#18324b;stroke-width:4;stroke-linejoin:round}
.profile-limb{fill:none;stroke:#18324b;stroke-width:8;stroke-linecap:round}
.profile-center{stroke:#9ab1c0;stroke-width:2;stroke-dasharray:4 5}
.profile-svg-label{font:10px system-ui,sans-serif;fill:#6b7d89}
.profile-measures{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;padding:0 10px 12px}
.profile-measures span{background:#fff;border:1px solid #d8e0e5;border-radius:999px;padding:6px 9px;font-size:10px;color:#6c7b84}
.profile-measures b{color:#17324a}
.profile-visual-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:210px;padding:28px 20px;background:linear-gradient(180deg,#f8fafb,#eef2f4);border:1px solid #d6dfe5;border-radius:14px;color:#17324a;margin:10px 0}
.profile-avatar-placeholder{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;background:#dce7ed;border:3px solid #18324b;font-size:30px;margin-bottom:10px}
.profile-visual-empty b{font-size:15px}
.profile-visual-empty span{display:block;max-width:300px;color:#6d7d88;font-size:11px;line-height:1.5;margin-top:5px}
@media(max-width:420px){.profile-form label{grid-template-columns:76px minmax(0,1fr) 28px;gap:5px;padding:6px 7px}.profile-form input::placeholder{font-size:12px}.profile-form .unit{font-size:10px}}

/* Gender-specific personalized starting profile */
.gender-choice{margin:12px 0;padding:13px;background:#0d151a;border:1px solid #26343d;border-radius:13px}
.gender-title{font-size:12px;font-weight:800;margin-bottom:9px;color:#dfe7ec}
.gender-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.gender-option{min-height:52px;border:1px solid #2b3942!important;border-radius:10px!important;background:#111a20!important;color:#dce5ea!important;font-weight:800;font-size:16px}
.gender-option span{font-size:11px;color:#8fa0aa;margin-left:5px}
.gender-option.on{background:#147ee5!important;border-color:#147ee5!important}
.gender-option.on span{color:#fff}
.profile-height-line{stroke:#667d8d;stroke-width:2;stroke-dasharray:6 6}
.profile-height-text{font:11px system-ui,sans-serif;fill:#5e7380}
.profile-face{fill:none;stroke:#18324b;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.profile-body-side{fill:url(#profileShade);stroke:#18324b;stroke-width:4;stroke-linejoin:round}
.profile-measure-line{stroke:#2196ff;stroke-width:2;stroke-dasharray:5 5}
.profile-measure-line.hip-line{stroke:#52c779}
.profile-dot{fill:#2196ff}
.profile-dot.hip-dot{fill:#52c779}
.profile-measure-label{font:700 11px system-ui,sans-serif;fill:#17324a}
@media(max-width:520px){
  .gender-options{grid-template-columns:1fr 1fr}
  .gender-option{font-size:14px;padding:8px 4px}
  .gender-option span{display:block;margin:2px 0 0;font-size:10px}
  .profile-svg{max-height:none}
}

/* Personalized profile visuals: real raster illustrations, not SVG silhouettes */
.photo-profile{background:linear-gradient(180deg,#07121a,#0b1720);border:1px solid #263b47;color:#eef6fb;padding-top:0}
.profile-visual-title{font-size:13px;font-weight:800;text-align:center;padding:13px 10px 4px;color:#f3f7fa}
.profile-visual-title span{font-weight:500;color:#8ea0ad;font-size:10px}
.profile-photo-stage{position:relative;height:430px;overflow:hidden;background:radial-gradient(circle at 52% 42%,rgba(52,91,112,.16),transparent 44%),linear-gradient(180deg,#08141d,#09151e)}
.profile-photo{position:absolute;left:22%;top:12px;height:405px;width:auto;max-width:none;object-fit:contain;display:block;filter:saturate(1.02) contrast(1.02);z-index:1}
.profile-height-guide{position:absolute;left:7%;top:5%;height:88%;width:72px;border-left:2px dashed #8396a2;z-index:3;color:#a9b8c1;font-size:9px;line-height:1.15}
.profile-height-guide:before,.profile-height-guide:after{content:"";position:absolute;left:-7px;width:12px;border-top:2px solid #8396a2}
.profile-height-guide:before{top:0}.profile-height-guide:after{bottom:0}
.profile-height-guide i{display:none}
.profile-height-guide span{position:absolute;left:-2px;top:45%;transform:translate(-100%,-50%);width:62px;text-align:right}
.profile-height-guide b{display:block;color:#f4f8fa;font-size:10px;margin-top:2px}.profile-height-guide small{display:block;color:#8ea0ad;font-size:9px;margin-top:1px}
.profile-callout{position:absolute;left:37%;right:5%;height:2px;border-top:2px dashed;z-index:4}
.profile-callout:before{content:"";position:absolute;left:0;top:-1px;width:var(--line-width);border-top:2px dashed}
.profile-callout i{position:absolute;left:calc(var(--line-width) - 2px);top:-5px;width:7px;height:7px;border-radius:50%;background:currentColor}
.profile-callout span{position:absolute;left:calc(var(--line-width) + 12px);top:-10px;white-space:nowrap;font-size:10px;font-weight:700;color:currentColor}
.profile-callout span b{display:block;font-size:11px;color:#fff;margin-top:1px}
.profile-callout.chest-callout{color:#39a8ff}.profile-callout.waist-callout{color:#54d07c}.profile-callout.hip-callout{color:#ff65b1}
.profile-measures{border-top:1px solid #263b47;padding:10px 8px 7px}
.photo-profile .profile-measures span{background:#101d26;border-color:#2b414e;color:#93a6b2}
.photo-profile .profile-measures b{color:#f4f8fa}
.profile-photo-note{text-align:center;color:#7e919d;font-size:9px;line-height:1.4;padding:0 12px 12px}
.photo-profile.female .profile-callout.chest-callout{color:#55aaff}
.photo-profile.female .profile-callout.waist-callout{color:#5bd18a}
@media(max-width:520px){
  .profile-photo-stage{height:420px}
  .profile-photo{left:18%;height:400px}
  .profile-height-guide{left:6%;width:58px}
  .profile-callout{left:36%;right:3%}
  .profile-callout span{font-size:9px}
  .profile-callout span b{font-size:10px}
}
.build-choice{background:#0b141a;border:1px solid #26343d;border-radius:12px;padding:10px;margin:10px 0}.build-options{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:8px}.build-option{min-height:48px;border:1px solid #2b3942!important;border-radius:9px!important;background:#111a20!important;color:#dce5ea!important;font-weight:800;font-size:12px}.build-option span{display:block;color:#8fa0aa;font-size:9px;margin-top:2px}.build-option.on{background:#147ee5!important;border-color:#147ee5!important}.build-option.on span{color:#fff}@media(max-width:420px){.build-options{grid-template-columns:repeat(2,1fr)}.build-option{min-height:44px}}
.profile-section-title{font-size:10px;font-weight:900;letter-spacing:.12em;color:#58b4ff;margin:15px 2px 7px}.target-title{margin-top:18px}.small-note{font-size:10px!important;line-height:1.4}.targets{margin-top:7px}.goal-box{background:#0d151a;border:1px solid #26343d;border-radius:12px;padding:11px;margin:12px 0}.goal-box select,.goal-box input[type=date]{width:100%;box-sizing:border-box;background:#111b22;color:#eef4f7;border:1px solid #30404a;border-radius:9px;padding:11px;font-size:14px;outline:none}.goal-box .date-field{display:grid;grid-template-columns:1fr 1.2fr;gap:8px;align-items:center;margin-top:9px;color:#aebbc3;font-size:11px}.goal-box .date-field span{color:#9eb0bb}.goal-box .date-field small{color:#74838d}.gender-choice{background:#0b141a;border:1px solid #26343d;border-radius:12px;padding:10px;margin:10px 0}.gender-title{font-size:10px;font-weight:900;letter-spacing:.08em;color:#8ea0aa}.gender-options{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}.gender-option{min-height:42px;border:1px solid #2b3942!important;border-radius:9px!important;background:#111a20!important;color:#dce5ea!important;font-weight:800}.gender-option.on{background:#147ee5!important;border-color:#147ee5!important}.profile-disclaimer{font-size:9px;line-height:1.5;color:#77848d;margin:10px 2px 12px}.profile-result span{white-space:normal}
.trend-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}.trend-card{background:#111a20;border:1px solid #26343d;border-radius:10px;padding:10px;min-width:0}.trend-card small{display:block;color:#7f93a0;font-size:10px}.trend-card b{display:block;font-size:22px;margin:4px 0}.trend-card span{display:block;color:#9aa7af;font-size:9px}.trend-card em{display:block;color:#55b5ff;font-size:10px;font-style:normal;margin-top:7px}.metric-goal{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center;background:#111a20;border:1px solid #26343d;border-radius:10px;padding:10px;margin-top:7px;position:relative}.metric-goal small{display:block;color:#7f93a0;font-size:9px}.metric-goal b{display:block;font-size:15px;margin-top:3px}.metric-arrow{color:#4caeff;font-size:18px}.metric-goal>span{position:absolute;right:8px;bottom:6px;color:#7ed0a0;font-size:8px;font-weight:800}.measurement-row{display:grid;grid-template-columns:1.25fr .8fr .9fr .9fr;gap:5px;padding:9px 0;border-bottom:1px solid #202b32;font-size:10px;align-items:center}.measurement-row:last-of-type{border-bottom:0}.measurement-row span{color:#9ba8b0}.full{width:100%;margin-top:10px}
@media(max-width:380px){.trend-grid{gap:5px}.trend-card{padding:8px}.trend-card b{font-size:19px}.measurement-row{grid-template-columns:1.2fr .75fr .9fr .9fr;font-size:9px}}

/* V1.5 warm-up, signup gender and feedback fixes */
.saved-warmup-row > .outline[data-add-saved-warm]{
  width:auto;
  min-width:74px;
  flex:0 0 74px;
  margin:0;
  padding:10px 12px;
}
.saved-warmup-row > .outline[data-add-saved-warm]:active{transform:scale(.98)}
.signup-gender{margin:12px 0;padding:13px;background:#0d151a;border:1px solid #26343d;border-radius:13px}
.signup-gender>b{display:block;font-size:10px;letter-spacing:.08em;color:#8ea0aa}
.signup-gender>small{display:block;color:#74838d;font-size:10px;line-height:1.45;margin-top:5px}
.signup-gender-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}
.signup-gender-option{min-height:48px;border:1px solid #2b3942!important;border-radius:9px!important;background:#111a20!important;color:#dce5ea!important;font-weight:800}
.signup-gender-option.on{background:#147ee5!important;border-color:#147ee5!important;color:#fff!important}
.signup-gender-option span{font-size:11px;margin-left:5px}
.profile-account-note{background:#0d151a;border:1px solid #26343d;border-radius:10px;padding:10px 11px;color:#84939d;font-size:10px;line-height:1.45;margin:10px 0}
.profile-account-note b{color:#dce7ee}
.feedback-btn{width:100%;min-height:46px;border:1px solid #7056c9;border-radius:10px;color:#c6b7ff;background:#171225;font-weight:900;margin:3px 0 8px}
.feedback-sheet textarea{width:100%;box-sizing:border-box;margin-top:5px;padding:12px;background:#0d1215;color:#fff;border:1px solid #303a42;border-radius:9px;resize:vertical;font:inherit}
.feedback-sheet label{margin:12px 0}


/* Daily workout reminder + history date editing */
.reminder-card{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;background:#0d151a;border:1px solid #26343d;border-radius:13px;color:#edf5f9;padding:13px 14px;margin:10px 0;box-sizing:border-box}
.reminder-card:active{transform:scale(.995)}
.reminder-card div{min-width:0}.reminder-card small{display:block;color:#58b4ff;font-size:9px;font-weight:900;letter-spacing:.09em}.reminder-card b{display:block;font-size:14px;margin:4px 0}.reminder-card span{display:block;color:#82939d;font-size:10px;line-height:1.35}.reminder-card>strong{font-size:24px;color:#78909d;margin-left:10px}
.reminder-sheet .toggle-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px;background:#0d151a;border:1px solid #26343d;border-radius:10px}
.toggle-row span{display:block}.toggle-row b{display:block;font-size:13px}.toggle-row small{display:block;color:#7f909a;font-size:10px;margin-top:3px;line-height:1.35}
.toggle-row input{width:20px;height:20px;accent-color:#1689ef}
.reminder-sheet input[type=time]{width:100%;box-sizing:border-box;background:#111b22;color:#eef4f7;border:1px solid #30404a;border-radius:9px;padding:11px;font-size:16px}

/* V1.7 full-screen workout reminder alarm */
body.alarm-active{overflow:hidden}
.alarm-screen{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:22px;box-sizing:border-box;background:radial-gradient(circle at 50% 35%,#173b53 0,#08131b 38%,#030609 100%);color:#f5fbff;overflow:auto;animation:alarmFade .2s ease-out}
.alarm-glow{width:min(560px,100%);text-align:center;padding:30px 18px 26px;border:1px solid #2c566f;border-radius:26px;background:rgba(7,17,24,.92);box-shadow:0 0 0 1px rgba(56,177,255,.08),0 20px 80px rgba(0,0,0,.55);position:relative}
.alarm-icon{width:82px;height:82px;margin:0 auto 15px;border-radius:50%;display:grid;place-items:center;font-size:43px;background:#132b39;border:2px solid #38a9ef;box-shadow:0 0 0 10px rgba(56,169,239,.08);animation:alarmPulse 1.25s infinite}
.alarm-kicker{font-size:11px;letter-spacing:.18em;font-weight:900;color:#58b8ff}
.alarm-screen h1{font-size:clamp(30px,7vw,54px);line-height:1.02;margin:12px auto;max-width:520px}
.alarm-screen p{color:#9db0bb;font-size:14px;line-height:1.55;max-width:450px;margin:0 auto}
.alarm-time{font-size:clamp(48px,13vw,82px);font-weight:900;letter-spacing:.04em;margin:18px 0 20px;color:#fff}
.alarm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-width:460px;margin:0 auto}
.alarm-actions button{min-height:56px;border-radius:13px;font-weight:900;font-size:13px;border:1px solid #344d5a;cursor:pointer}
.alarm-snooze{background:#142632;color:#bfe6ff}.alarm-close{background:#171c20;color:#dce4e8}.alarm-log{grid-column:1/-1;background:#1689ef;color:#fff;border-color:#1689ef!important;font-size:15px!important}
.alarm-hint{display:block;color:#667b87;font-size:10px;margin-top:13px}
@keyframes alarmPulse{0%,100%{transform:scale(1);box-shadow:0 0 0 10px rgba(56,169,239,.08)}50%{transform:scale(1.05);box-shadow:0 0 0 18px rgba(56,169,239,.02)}}
@keyframes alarmFade{from{opacity:0;transform:scale(1.01)}to{opacity:1;transform:none}}
@media(max-width:420px){.alarm-screen{padding:12px}.alarm-glow{padding:25px 13px 20px;border-radius:20px}.alarm-actions button{min-height:54px}.alarm-screen p{font-size:13px}.alarm-icon{width:72px;height:72px;font-size:38px}}

/* V1.8 gym-tested logging improvements */
.selection-summary{background:#0b1821;border:1px solid #1e5d85;border-radius:10px;padding:10px 12px;margin:9px 0;color:#8fcfff;font-size:11px;line-height:1.45;position:sticky;top:66px;z-index:10}.selection-summary b{color:#fff}.pickcard.is-selected{border-color:#147ee5;background:#0d1820}.pickcard button.selected{color:#fff}.duplicate-hint{font-size:10px;color:#87929b;line-height:1.4;background:#0d151a;border:1px solid #26343d;border-radius:8px;padding:8px}.saved-warmup-row{flex-wrap:wrap}.saved-warmup-row>div:nth-child(2){min-width:110px}.mini-action{width:40px!important;min-width:40px!important;padding:8px!important;margin:0!important;border:1px solid #344149!important;border-radius:8px!important;background:#151e23!important;color:#9eb0bb!important;font-weight:900}.mini-action.danger{color:#ff8c8c!important}.setrow-btn{width:100%;border:0;background:transparent;color:inherit;text-align:left;font:inherit}.setrow-btn:active{background:#111a20}.entry .quick-entry{width:100%;min-width:0;min-height:56px;background:#080c0f;color:#fff;border:1px solid #3a4650;border-radius:9px;padding:0 12px;font-size:20px;font-weight:800;text-align:center;outline:none}.entry .quick-entry:focus{border-color:#147ee5;box-shadow:0 0 0 2px #147ee533}.entry .quick-entry::placeholder{color:#87929b;font-size:13px;letter-spacing:.04em}.user-warmup{display:flex;align-items:center;gap:10px}.user-warmup>div:nth-child(2){flex:1}.addwarm{width:100%;padding:14px;border:1px dashed #147ee5;color:#50aaff;border-radius:10px;font-weight:900;margin-top:9px}.warm-note{font-size:10px;color:#87929b;padding:8px 2px;line-height:1.4}.actions{display:grid;grid-template-columns:.7fr 1.3fr;gap:8px;margin-top:10px}.actions .half{margin:12px 0 0}.panel-head{display:flex;justify-content:space-between;align-items:center}.panel-head h2{font-size:16px;margin:0}.panel-head span{color:#87929b;font-size:10px}.saved-warmups{background:#0d1215;border:1px solid #263139;border-radius:12px;padding:10px;margin:10px 0}.saved-warmup-row .outline{margin:0;width:auto}.cooldown-note{background:#0d1820;border:1px solid #1e5d85;border-radius:10px;padding:10px;color:#9fc9e4;font-size:11px}
@media(max-width:420px){.selection-summary{top:60px}.saved-warmup-row>div:nth-child(2){flex:1;min-width:90px}.mini-action{width:36px!important;min-width:36px!important}.entry{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 76px}.entry .quick-entry{font-size:18px}}
.cloud-status-card{margin:14px 0;padding:14px 16px;border:1px solid #26333d;border-radius:14px;background:#0d1317;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cloud-status-card>b{font-size:13px;letter-spacing:.04em}
.cloud-status-card>span{font-size:13px;color:#9aa8b3;flex:1;min-width:220px}
.cloud-status-card.cloud-ok{border-color:#245b3b}
.cloud-status-card.cloud-ok>span{color:#78d69a}
.cloud-status-card.cloud-bad{border-color:#6b3030}
.cloud-status-card.cloud-bad>span{color:#ff9c9c}
.cloud-status-card button{margin-left:auto}

/* Welcome / first-launch page */
.welcome-page{min-height:100svh;background:#06090b;padding:24px 16px;display:flex;align-items:center;justify-content:center}
.welcome-wrap{width:min(100%,520px);padding:10px 0 26px}
.welcome-page .brand{margin-bottom:22px}
.welcome-badge{display:inline-block;color:#55aef4;font-size:9px;font-weight:900;letter-spacing:1.4px;border:1px solid #1f5e8e;background:#0a1720;border-radius:999px;padding:7px 10px;margin-bottom:12px}
.welcome-page h1{font-size:42px;line-height:1.02;letter-spacing:-1.5px;margin:6px 0 14px;font-weight:900}
.welcome-page h1 span{color:#168bea}
.welcome-lead{color:#98a5ae;font-size:14px;line-height:1.55;margin:0 0 20px;max-width:500px}
.welcome-features{display:grid;gap:8px;margin:18px 0}
.welcome-feature{display:flex;gap:12px;align-items:flex-start;background:#0d1317;border:1px solid #26333b;border-radius:12px;padding:12px}
.welcome-feature>b{color:#168bea;font-size:11px;min-width:24px;padding-top:2px}
.welcome-feature strong{display:block;font-size:14px;margin-bottom:3px}
.welcome-feature span{display:block;color:#82909a;font-size:11px;line-height:1.4}
.welcome-start{width:100%;min-height:52px;margin-top:8px;font-size:13px;font-weight:900}
.welcome-note{text-align:center;color:#68757e;font-size:9px;line-height:1.5;margin:12px 8px 0}
@media(max-width:600px){.welcome-page{align-items:flex-start;padding-top:28px}.welcome-page h1{font-size:38px}.welcome-wrap{padding-bottom:18px}}
@media(min-width:700px){.welcome-page h1{font-size:52px}.welcome-features{grid-template-columns:1fr 1fr}}
