/* Gym screens (WP-F2). Gym-only rules; tokens and base components (.card .chip .btn .li .av .sets .step .ring) come from styles.css. */
.gx{min-height:100%;padding-bottom:12px}
.gx .pad{padding-left:20px;padding-right:20px}
.gx-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.gx-spacer{width:44px;flex:none}
.gx-top{padding-top:14px;gap:8px}
.gx-title{margin:0;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gx-mid{text-align:center;min-width:0}
.gx-subtitle{font-size:12px;color:var(--mute);font-variant-numeric:tabular-nums}
.gx-head{margin-top:16px}
.gx-body{margin-top:14px;display:flex;flex-direction:column;gap:12px}
.gx-sub{font-size:13px;color:var(--mute);margin:-4px 2px 0}
.gx-muted{color:var(--mute)}
.gx-right{text-align:right}
.gx-error{color:var(--neg);font-size:13px;min-height:0}
.gx-error:empty{display:none}

/* buttons, links and hit areas (44 px targets without changing the look) */
.gx-back,.gx-iconbtn,.gx-heart{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:var(--acc-text);flex:none}
.gx-back{margin-left:-10px}
.gx-iconbtn{color:var(--mute)}
.gx-heart{color:var(--mute)}
.gx-heart[aria-pressed="true"]{color:var(--neg)}
.gx-heart[aria-pressed="true"] svg{fill:currentColor}
.gx-linkbtn{font-size:14px;font-weight:650;min-height:44px;display:inline-flex;align-items:center;padding:0 4px}
a.btn{text-decoration:none}
.gx a.chip{min-height:44px}
.gx-more{margin-top:4px}
.gx-links{gap:10px}
.gx-links .btn{flex:1;min-height:48px;font-size:14px}
.gx-start{margin-top:2px}

/* lists */
.gx-list,.gx-plan{padding:4px 16px}
.gx-row,.gx-planrow,.gx-hrow,.gx-bwitem{gap:8px}
.gx-rowlink{display:flex;align-items:center;gap:12px;flex:1;min-width:0;color:inherit}
.gx-rowlink .sp{min-width:0}
.gx-thumb{width:48px;height:48px;border-radius:14px;object-fit:contain;background:var(--s2);flex:none}
.gx-av{width:48px;height:48px;border-radius:14px}
.gx-empty{text-align:center;padding:28px 20px;display:flex;flex-direction:column;gap:8px;align-items:center}
.gx-empty p{color:var(--mute);margin:0 0 6px}
.gx-empty p:empty{display:none}
.gx-sechead{margin:6px 0 -4px}

/* today */
.gx-bw{color:inherit}
.gx-bwnum{font-size:34px;margin-top:4px}
.gx-bwnum small{font-size:16px;color:var(--mute);font-weight:600}
.gx-delta{font-size:13px;font-weight:600;color:var(--mute)}
.gx-delta.pos{color:var(--pos)}
.gx-spark{width:130px;height:54px;flex:none;overflow:visible}
.gx-chart .gx-spark{width:100%;height:110px;margin-top:10px}
.gx-spark-line{fill:none;stroke:var(--acc);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.gx-spark-raw{fill:none;stroke:var(--mute);stroke-width:1.2;stroke-dasharray:3 3;stroke-linejoin:round;vector-effect:non-scaling-stroke;opacity:.7}

/* catalogue */
.gx-search{padding:0 10px 0 14px}
.gx-search .gx-input{background:none;border:0;min-height:48px;flex:1;min-width:0}
.gx-input,.gx-select{background:var(--s1);border:1px solid var(--line);border-radius:14px;padding:10px 12px;min-height:48px;font-size:16px;width:100%}
.gx-select{width:auto;max-width:118px;min-height:44px;border-radius:99px;padding:6px 12px;font-size:13px;font-weight:600;color:var(--mute);background:var(--s2);border-color:transparent}
.gx-input:focus-visible,.gx-select:focus-visible{outline:3px solid var(--acc-text);outline-offset:2px}
.gx-search .gx-input:focus-visible{outline:none}
.gx-tabs{gap:6px;flex-wrap:nowrap}
.gx-tabs .chip{padding-left:12px;padding-right:12px}
.gx-tabs .chip[aria-pressed="true"]{color:var(--acc-text);background:var(--soft)}
.gx-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.gx-group{display:block;padding:14px;color:inherit;text-align:left;min-height:44px}
.gx-gav{width:46px;height:46px;border-radius:50%}
.gx-gname{font-size:18px;margin-top:10px}
.gx-gstat{color:var(--mute);font-size:12.5px}
button.gx-group{width:100%}

/* sheet form */
.gx-sheet{display:flex;flex-direction:column;gap:2px;min-height:0;padding-bottom:0}
.gx-sheet-title{font-size:20px;font-weight:750;margin:2px 0 6px}
.gx-sheet label{display:block;font-size:12px;color:var(--mute);font-weight:600;margin:10px 0 4px}
.gx-sheet .gx-select{width:100%;max-width:none;border-radius:14px;font-size:16px;color:var(--ink);background:var(--s1);border-color:var(--line)}
.gx-sheet input[type=file]{font-size:14px;min-height:44px}
.gx-sheet-actions{margin-top:14px}
.gx-sheet-actions .btn{flex:1}

/* exercise */
.gx-pics{gap:8px;align-items:stretch}
.gx-pic{flex:1;width:0;height:170px;object-fit:contain;border-radius:20px;background:var(--s2)}
.gx-name{font-size:26px;margin-top:2px}
.gx-chips{flex-wrap:wrap;gap:8px}
.gx-howto{padding:12px 16px;font-size:14px;line-height:1.5}
.gx-howto ol{margin:6px 0 0 18px;padding:0}
.gx-howto li{margin:4px 0}
.gx-stats{padding:12px 16px}
.gx-stat{font-size:20px;margin-top:2px}
.gx-cta{position:sticky;bottom:0;padding-top:10px;padding-bottom:10px;background:linear-gradient(180deg,transparent,var(--bg) 30%)}

/* workout */
.gx-sets{padding:6px 12px}
.gx-sets caption{caption-side:top}
.gx-steppers{gap:10px;align-items:stretch}
.gx-step{padding:6px;gap:4px}
.gx-stepbtn{width:44px;height:44px;border-radius:12px;background:var(--soft);display:grid;place-items:center;font-size:24px;color:var(--acc-text);font-weight:600;flex:none;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.gx-stepbtn:active{filter:brightness(.95)}
.gx-stepval{flex:1;min-width:0;width:100%;text-align:center;border:0;background:none;font-size:26px;font-weight:750;font-variant-numeric:tabular-nums;min-height:44px}
.gx-hint{font-size:12.5px;color:var(--mute);margin:-2px 2px 0}
.gx-pb{background:var(--soft);border-color:transparent;box-shadow:none;gap:10px}
.gx-pb-ico{font-size:24px}
.gx-pb-sub{font-size:12.5px;color:var(--mute)}
.gx-rest{margin-top:2px;gap:12px}
.gx-ring{background:conic-gradient(var(--acc) 0 var(--p,0%),var(--s2) 0);flex:none}
.gx-rest-sub{font-size:14px;color:var(--mute);margin-top:2px}
.gx-skip{flex:none}
.gx-complete{margin-top:2px}
.gx-exnav{gap:6px;flex-wrap:nowrap}
.gx-exnav .chip{white-space:nowrap}
.gx-exnav .chip[disabled]{opacity:.45}
.gx-sum-date{font-size:13px;color:var(--mute);margin:-4px 2px 0}
.gx-sum-list{padding:4px 16px}
.gx-pills{margin-top:0}

/* bodyweight */
.gx-bwform{display:flex;flex-direction:column;gap:12px}
.gx-bwrow{align-items:flex-start;gap:10px}
.gx-bwrow label{display:block;margin-bottom:4px}
.gx-field{width:100%}

@media (prefers-reduced-motion:reduce){.gx *{transition:none!important;animation:none!important}}

/* round 2: quick log, filters, csv */
.gx-qlwrap{display:flex;flex-direction:column;gap:6px}
.gx-ql{gap:8px}
.gx-ql-input{flex:1;min-width:0;width:auto}
.gx-ql-note{font-size:12.5px;color:var(--mute)}
.gx-ql-sets,.gx-ql-unres ul{margin:6px 0 6px 18px;padding:0}
.gx-ql-sets li,.gx-ql-unres li{margin:4px 0}
.gx-ql-unres{background:var(--warn-bg);border:1.5px dashed var(--warn-line);border-radius:14px;padding:10px 12px;margin:8px 0}
.gx-ql-ai{margin-top:8px;display:flex;flex-direction:column;gap:6px}
.gx-qlsheet{padding-bottom:0}
.gx-csv{gap:10px;margin-top:12px}
.gx-csv .btn{flex:1}
.gx-filters{display:flex;flex-direction:column;gap:8px}
.gx-more-filters{align-self:flex-start}
.gx-muscle-chips{flex-wrap:wrap;gap:6px}
.gx-muscle-chips .chip[aria-pressed="true"]{color:var(--acc-text);background:var(--soft)}
.gx-input[aria-invalid="true"],.gx-stepval[aria-invalid="true"]{outline:2px solid var(--neg);border-radius:12px}

/* round 3: set editing */
.gx-setbtn{min-width:44px;min-height:44px;display:inline-grid;place-items:center;border-radius:12px;font-weight:inherit;color:inherit;text-decoration:underline dotted}
.gx-rpe{color:var(--mute);font-weight:500}
.gx-sum-ex{padding:6px 0;border-bottom:1px solid var(--line)}
.gx-sum-ex:last-child{border:0}
.gx-sum-name{display:block;padding:6px 0;min-height:44px;line-height:32px}
.gx-sum-set{width:100%;text-align:left;min-height:44px;padding:4px 0;border:0}
.gx-sum-no{width:28px;color:var(--mute);font-variant-numeric:tabular-nums}
.gx-seform .chk{display:flex;gap:12px;align-items:center;min-height:44px;margin-top:6px;font-size:15px;color:var(--ink)}
.gx-se-delete{margin-top:10px}
.gx-hrow .gx-rowlink{flex:1}

/* WP-O: routines, picker, charts, progress, measurements, notes, plan suggestions */
.gx-routine-chips{flex-wrap:wrap;gap:8px}
.gx-routine-chips .chip[aria-pressed="true"],.gx-days .chip[aria-pressed="true"]{color:var(--acc-text);background:var(--soft)}
.gx-days{flex-wrap:wrap;gap:6px}
.gx-days .chip{min-width:44px;min-height:44px;justify-content:center}
.gx-routine{padding:14px 16px;display:flex;flex-direction:column;gap:8px}
button.gx-routine.chip{display:inline-flex}
.gx-rt-ex{margin-top:-2px}
.gx-rt-list{display:flex;flex-direction:column;gap:10px}
.gx-rt-ex-card{padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.gx-rt-targets{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.gx-num{display:flex;flex-direction:column;gap:2px;min-width:0}
.gx-num .gx-input{padding:8px 6px;text-align:center;min-height:44px}
.gx-rt-delete{margin-top:2px}
.gx-picker{padding:10px 14px;display:flex;flex-direction:column;gap:8px}
.gx-pick-sum{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:650;font-size:14px;color:var(--acc-text)}
.gx-pick-list{display:flex;flex-direction:column;max-height:340px;overflow-y:auto}
.gx-pick-item{display:flex;align-items:center;gap:12px;width:100%;text-align:left;min-height:56px;padding:6px 0;border:0;background:none;color:inherit}
.gx-pick-item[disabled]{opacity:.5}
.gx-notes{padding:8px 14px;display:flex;flex-direction:column;gap:8px}
.gx-note{width:100%;min-height:64px;resize:vertical;font:inherit}
.gx-note-text{margin:2px 0 6px;font-size:13px;color:var(--mute);white-space:pre-wrap}
.gx-h-note{display:block;color:var(--mute);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.gx-target{margin:-4px 2px 0}

/* charts */
.gx-linechart,.gx-barchart{width:100%;height:auto;display:block;margin-top:8px;overflow:visible}
.gx-grid-line{stroke:var(--line);stroke-width:1}
.gx-axis{fill:var(--mute);font-size:10px;font-variant-numeric:tabular-nums}
.gx-line{fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.gx-line-a{stroke:var(--acc)}
.gx-line-b{stroke:var(--mute);stroke-dasharray:5 4}
.gx-dot-a{fill:var(--acc)}
.gx-dot-b{fill:var(--mute)}
.gx-bar{fill:var(--s2);stroke:var(--acc);stroke-width:1.2}
.gx-bar-cur{fill:var(--acc);stroke:var(--acc)}
.gx-legend{gap:14px;flex-wrap:wrap;margin-top:6px;font-size:12px;color:var(--mute)}
.gx-key::before{content:"";display:inline-block;width:18px;height:0;border-top:3px solid var(--acc);margin-right:6px;vertical-align:middle}
.gx-key-b::before{border-top:3px dashed var(--mute)}
.gx-chart-sub{margin-top:12px}
.gx-records{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}
.gx-records small{color:var(--mute)}
.gx-hbars{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.gx-hbar-row{display:grid;grid-template-columns:84px 1fr auto;align-items:center;gap:10px;font-size:13px}
.gx-hbar-track{height:12px;border-radius:99px;background:var(--s2);overflow:hidden}
.gx-hbar-fill{display:block;height:100%;background:var(--acc);border-radius:99px;min-width:3px}
.gx-hbar-val{font-size:13px;font-variant-numeric:tabular-nums}
.gx-record small{display:block;color:var(--mute)}
.gx-weekly,.gx-groupvol,.gx-recs{padding:14px 16px}

/* measurements */
.gx-ms-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.gx-ms-trends{display:flex;flex-direction:column;gap:10px}
.gx-ms-card{align-items:center}
.gx-msform{display:flex;flex-direction:column;gap:6px}
.gx-photo-pick{display:flex;flex-direction:column;gap:8px}

/* plan suggestion */
.gx-suggestion{padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.gx-sug-list{margin:2px 0 4px 20px;padding:0;display:flex;flex-direction:column;gap:8px}
.gx-sug-list small{display:block;color:var(--mute)}
