/* Workout Lab 3.35 – typographic and alignment pass, cyberpunk theme only.
   Decorative HUD imagery stays intact. No app logic, persistence or base theme changed. */
body.theme-cyberpunk{
 --ui-small:11px;
 --ui-label:10.5px;
 --ui-leading:1.38;
}
body.theme-cyberpunk .view,
body.theme-cyberpunk .page-title,
body.theme-cyberpunk .section,
body.theme-cyberpunk .settings-group,
body.theme-cyberpunk .card,
body.theme-cyberpunk .plan,
body.theme-cyberpunk .exercise{min-width:0}
/* Consistent typography: avoid condensed decorative type for explanatory copy. */
body.theme-cyberpunk .page-title h2,
body.theme-cyberpunk .bodymatrix-title,
body.theme-cyberpunk .settings-group-title{line-height:1.11!important;overflow-wrap:break-word}
body.theme-cyberpunk .page-title p,
body.theme-cyberpunk .planmeta,
body.theme-cyberpunk .exmeta,
body.theme-cyberpunk .settings-help,
body.theme-cyberpunk .settings-row small{line-height:1.46!important;overflow-wrap:break-word}
body.theme-cyberpunk .page-title p{font-size:12px!important;margin-top:8px!important}
body.theme-cyberpunk .sectionhead{
 align-items:flex-end!important;
 gap:10px!important;
 min-height:38px!important;
 margin-bottom:11px!important;
}
body.theme-cyberpunk .sectionhead h2{min-width:0;max-width:70%;font-size:clamp(16px,4.4vw,21px)!important;line-height:1.12!important;margin:0 0 9px!important}
body.theme-cyberpunk .sectionhead .link,
body.theme-cyberpunk .sectionhead .body-note{max-width:42%;font-size:11px!important;line-height:1.3!important;white-space:normal;overflow-wrap:break-word;padding-bottom:9px!important}
/* KPI tiles: fixed-height 110px variants clipped subtitles on narrow iPhones. */
body.theme-cyberpunk .dashboard-kpis .kpi{
 height:auto!important;min-height:139px!important;
 padding:15px 13px 14px!important;
 justify-content:flex-start!important;
}
body.theme-cyberpunk .dashboard-kpis .kpi .hud-kpi-icon{top:18px!important;left:14px!important}
body.theme-cyberpunk .dashboard-kpis .kpi .kpi-label{
 flex:0 0 auto!important;
 min-height:27px!important;max-height:none!important;
 font-size:10px!important;line-height:1.23!important;
 letter-spacing:.085em!important;
 padding:0 12px 0 26px!important;
 margin:0!important;
 align-items:center!important;
 overflow-wrap:normal;
}
body.theme-cyberpunk .dashboard-kpis .kpi strong{
 flex:0 0 auto!important;
 font-size:clamp(28px,7.8vw,40px)!important;
 line-height:1.04!important;
 margin:8px 0 0!important;
 letter-spacing:-.025em!important;
 white-space:nowrap!important;
 font-variant-numeric:tabular-nums;
}
body.theme-cyberpunk .dashboard-kpis .kpi>span:last-child{
 flex:0 0 auto!important;
 position:relative;z-index:4;
 margin-top:9px!important;
 font-size:10.5px!important;
 line-height:1.33!important;
 max-width:100%;
 overflow-wrap:break-word;
 text-wrap:pretty;
 background:linear-gradient(90deg,rgba(14,5,8,.90),rgba(14,5,8,.49) 74%,transparent);
}
body.theme-cyberpunk .dashboard-kpis .kpi::before{
 bottom:14px!important;right:11px!important;
 width:53px!important;height:39px!important;
 opacity:.45!important;
}
/* Weight and calorie details frequently occupy three lines. Reserve that space. */
body.theme-cyberpunk .bulk-kpi{
 height:auto!important;min-height:156px!important;
 padding:16px 13px 14px!important;
 justify-content:flex-start!important;
}
body.theme-cyberpunk .bulk-kpi .kpi-label{
 font-size:10px!important;line-height:1.25!important;
 min-height:27px!important;
 margin:0!important;
 letter-spacing:.07em!important;
}
body.theme-cyberpunk .bulk-kpi strong{
 font-size:clamp(25px,7vw,36px)!important;
 line-height:1.09!important;
 letter-spacing:-.045em!important;
 margin:7px 0 0!important;
 font-variant-numeric:tabular-nums;
}
body.theme-cyberpunk .bulk-kpi>span:last-child{
 margin-top:9px!important;
 font-size:10.5px!important;
 line-height:1.34!important;
 overflow-wrap:break-word;
 background:linear-gradient(90deg,rgba(14,5,8,.94),rgba(14,5,8,.45) 82%,transparent)!important;
}
body.theme-cyberpunk #homeWeightCard::before,
body.theme-cyberpunk #homeConsumption .bulk-kpi:nth-child(2)::before{opacity:.27!important;right:12px!important}
/* Longer plan/exercise names wrap inside their own column, not underneath actions. */
body.theme-cyberpunk .plan,body.theme-cyberpunk .exercise,body.theme-cyberpunk .training-hub-card{
 min-width:0!important;
 column-gap:11px!important;
}
body.theme-cyberpunk .planleft,body.theme-cyberpunk .exbody,body.theme-cyberpunk .hub-copy,
body.theme-cyberpunk .exercise>div:nth-child(2){min-width:0!important;max-width:100%}
body.theme-cyberpunk .planname,body.theme-cyberpunk .exname{
 font-size:clamp(14px,3.9vw,17px)!important;
 line-height:1.32!important;
 overflow-wrap:break-word;
 hyphens:auto;
 letter-spacing:.002em!important;
}
body.theme-cyberpunk .planmeta,body.theme-cyberpunk .exmeta{font-size:11px!important}
body.theme-cyberpunk .plan-actions,body.theme-cyberpunk .editor-actions{flex:0 0 auto;gap:6px}
body.theme-cyberpunk .iconbtn,body.theme-cyberpunk .addbtn{flex:0 0 auto;min-width:38px;min-height:38px}
body.theme-cyberpunk .training-hub-card{grid-template-columns:42px minmax(0,1fr) 18px!important;padding:14px 13px!important}
body.theme-cyberpunk .training-hub-card strong{font-size:clamp(14px,4vw,17px);line-height:1.3}
/* Training set rows and comparisons: consistent numeric column alignment. */
body.theme-cyberpunk .gains-card .gains-head{gap:9px!important;min-width:0}
body.theme-cyberpunk .gains-head strong,body.theme-cyberpunk .session-head .exname{line-height:1.3!important;overflow-wrap:break-word}
body.theme-cyberpunk .stepbox,body.theme-cyberpunk .gains-set{min-width:0}
body.theme-cyberpunk .stepbox input,body.theme-cyberpunk .gains-set input{font-variant-numeric:tabular-nums}
body.theme-cyberpunk .sethead{letter-spacing:.035em!important;font-size:9.5px!important}
body.theme-cyberpunk .sheethead h3{line-height:1.2;overflow-wrap:break-word}
body.theme-cyberpunk .sheetbody{overflow-x:hidden}
/* The Body panel uses a separate illustration and metric tiles; keep all controls aligned. */
body.theme-cyberpunk #bodymatrixView .bodymatrix-titlebar{align-items:start!important;gap:12px!important}
body.theme-cyberpunk #bodymatrixView .bodymatrix-title{font-size:clamp(25px,7.7vw,34px)!important;line-height:1.12!important}
body.theme-cyberpunk #bodymatrixView .bodymatrix-kicker{line-height:1.45!important;font-size:9.5px!important;letter-spacing:.11em!important}
body.theme-cyberpunk #bodymatrixView .body-weight-shortcut{min-height:85px!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
body.theme-cyberpunk #bodymatrixView .body-weight-shortcut strong{font-size:18px!important;line-height:1.15!important}
body.theme-cyberpunk #bodymatrixView .body-weight-shortcut small{font-size:9px!important;line-height:1.35!important}
body.theme-cyberpunk .bodymatrix-datebar{grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;gap:9px!important}
body.theme-cyberpunk .bodymatrix-datebar label{font-size:11px!important;line-height:1.3!important}
body.theme-cyberpunk .bodymatrix-datebar input{font-size:16px!important;min-height:48px!important}
body.theme-cyberpunk .bodymatrix-datebar .body-smallbtn{min-height:48px!important;line-height:1.2!important;white-space:normal;max-width:130px}
body.theme-cyberpunk .bodymatrix-fields{align-items:stretch!important;gap:10px!important}
body.theme-cyberpunk .bodymetric-entry{
 min-height:130px!important;padding:14px 12px!important;
 align-items:stretch!important;justify-content:flex-start!important;
}
body.theme-cyberpunk .bodymetric-label{font-size:10.5px!important;line-height:1.25!important;letter-spacing:.075em!important}
body.theme-cyberpunk .bodymetric-inputrow{align-items:baseline!important;gap:5px!important;min-height:39px!important}
body.theme-cyberpunk .bodymetric-inputrow input{
 font-size:clamp(21px,6vw,27px)!important;
 line-height:1.1!important;
 font-variant-numeric:tabular-nums;
 max-width:calc(100% - 28px)!important;
}
body.theme-cyberpunk .bodymetric-unit{font-size:11px!important;line-height:1.2}
body.theme-cyberpunk .bodymetric-delta{
 white-space:normal!important;overflow-wrap:anywhere;
 max-width:100%!important;line-height:1.3!important;font-size:10px!important;
}
/* Settings: labels at left, compact inputs at right, no collision. */
body.theme-cyberpunk .settings-panel{gap:12px!important;padding:15px!important}
body.theme-cyberpunk .settings-row{min-width:0;gap:11px!important;align-items:center!important;padding:13px 0!important}
body.theme-cyberpunk .settings-row>span,
body.theme-cyberpunk .settings-row>label{flex:1 1 auto;min-width:0}
body.theme-cyberpunk .settings-row strong{font-size:13px!important;line-height:1.35!important}
body.theme-cyberpunk .settings-row small{font-size:11px!important;line-height:1.45!important}
body.theme-cyberpunk .settings-row .body-field{flex:0 0 92px;min-width:0!important;max-width:92px!important}
body.theme-cyberpunk .settings-row .body-field input{width:100%!important;min-width:0!important;font-size:16px!important;text-align:center}
body.theme-cyberpunk .settings-row input[type=checkbox]{flex:0 0 auto}
body.theme-cyberpunk .settings-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px!important}
body.theme-cyberpunk .settings-actions button{line-height:1.25!important;white-space:normal!important;padding:9px 7px!important;font-size:11px!important}
/* Footer: match vertical alignment without modifying the stable independent scroll region. */
body.theme-cyberpunk .bottomnav>.nav{align-items:stretch;grid-template-columns:repeat(6,minmax(0,1fr))!important}
body.theme-cyberpunk .nav button{min-width:0;min-height:59px!important;line-height:1.17!important;padding:5px 1px!important;gap:5px!important;justify-content:center}
body.theme-cyberpunk .nav .ico{font-size:19px!important;line-height:1!important}
body.theme-cyberpunk .nav button:last-child{font-size:clamp(7.6px,1.96vw,9px)!important;letter-spacing:-.05em!important}
@media(max-width:390px){
 body.theme-cyberpunk .dashboard-kpis .kpi{min-height:139px!important;height:auto!important;padding:14px 11px 12px!important}
 body.theme-cyberpunk .dashboard-kpis .kpi .hud-kpi-icon{left:11px!important;top:17px!important}
 body.theme-cyberpunk .dashboard-kpis .kpi .kpi-label{padding-left:25px!important;padding-right:8px!important}
 body.theme-cyberpunk .dashboard-kpis .kpi strong{font-size:clamp(27px,7.8vw,32px)!important}
 body.theme-cyberpunk .bulk-kpi{min-height:161px!important;height:auto!important;padding:15px 11px 13px!important}
 body.theme-cyberpunk .bulk-kpi strong{font-size:clamp(23px,6.9vw,29px)!important}
 body.theme-cyberpunk .bodymetric-entry{min-height:126px!important;padding:12px 9px!important}
}
@media(max-width:355px){
 body.theme-cyberpunk .dashboard-kpis .kpi strong{font-size:25px!important}
 body.theme-cyberpunk .bulk-kpi strong{font-size:23px!important}
 body.theme-cyberpunk .sectionhead h2{max-width:65%}
 body.theme-cyberpunk .bodymatrix-datebar{grid-template-columns:minmax(0,1fr)!important}
 body.theme-cyberpunk .bodymatrix-datebar .body-smallbtn{max-width:100%!important;width:100%!important}
 body.theme-cyberpunk .bodymetric-entry{padding:11px 8px!important}
}
@media(orientation:landscape) and (max-height:500px){
 body.theme-cyberpunk .dashboard-kpis .kpi{min-height:130px!important}
 body.theme-cyberpunk .bulk-kpi{min-height:147px!important}
}
/* Final spacing corrections from scrolled body and settings screenshots. */
body.theme-cyberpunk .bodymetric-inputrow input{
 width:84px!important;
 field-sizing:content;
 flex:0 1 auto!important;
 min-width:3ch!important;
 max-width:calc(100% - 32px)!important;
 text-align:left!important;
}
body.theme-cyberpunk .bodymetric-inputrow .bodymetric-unit{
 margin-left:0!important;
 align-self:baseline!important;
}
body.theme-cyberpunk .settings-panel{padding:16px 16px 22px!important}
body.theme-cyberpunk .settings-panel>.settings-help:last-child,
body.theme-cyberpunk .settings-panel>.settings-help{line-height:1.5!important}
body.theme-cyberpunk .settings-panel>.settings-help:last-child{margin-bottom:6px!important}
body.theme-cyberpunk .dashboard-kpis .kpi .kpi-label{
 max-width:calc(100% - 8px)!important;
 padding-right:18px!important;
}
@media(max-width:390px){
 body.theme-cyberpunk .dashboard-kpis .kpi .kpi-label{padding-right:14px!important}
}
