/* Body Performance — scoped to the existing member portal. */
.spm-bd{--bd-green:#278263;--bd-dark:#12513e;--bd-blue:#226bb0;--bd-red:#b7373c;min-width:0}.spm-bd *{box-sizing:border-box}.bd-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#e7f3ed;border:1px solid #c9dfd3;border-radius:16px;padding:28px 32px;margin-bottom:20px}.bd-hero h2{font-size:clamp(1.55rem,3vw,2.25rem);line-height:1.2;margin:8px 0 12px;max-width:700px}.bd-hero p{max-width:700px}.bd-triangle{font-size:100px;color:#9b7833;line-height:1;font-family:serif}.bd-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 20px}.bd-tabs a{padding:11px 16px;border-radius:9px;border:1px solid #d9e2dc;background:#fff;font-weight:800;text-decoration:none;color:#34463d;min-height:44px}.bd-tabs a[aria-current]{color:#fff;background:#12513e;border-color:#12513e}.bd-date{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin-bottom:22px}.bd-date label{display:grid;gap:5px;font-size:.82rem;font-weight:800}.bd-date input{padding:10px;border:1px solid #b5c5bc;border-radius:7px;min-height:44px;font:inherit}.bd-date>a{padding-bottom:12px}.bd-trio{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:24px}.bd-trio>.spm-panel{margin:0}.bd-trio .bd-primary{grid-column:1/-1;border-top:4px solid #278263;display:grid;grid-template-columns:1fr auto;gap:0 32px;align-items:center;background:#f7fbf8}.bd-primary>.spm-kicker{grid-column:1/-1}.bd-card .spm-button{margin-top:18px}.bd-primary .spm-button{margin-top:0}.bd-gauge{--gauge:#718079;min-width:0}.bd-low{--gauge:#226bb0}.bd-good{--gauge:#278263}.bd-perfect{--gauge:#12513e}.bd-high{--gauge:#b7373c}.bd-gauge-label{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.bd-gauge-label>span{font-size:.75rem;font-weight:800;color:var(--gauge)}.bd-gauge p{margin:10px 0}.bd-gauge b{font-size:1.8rem;line-height:1.2}.bd-gauge p>span{font-size:.85rem;color:#52635a}.spm-bd progress{height:9px;width:100%;accent-color:var(--gauge);border:0;border-radius:10px;overflow:hidden}.spm-bd progress::-webkit-progress-bar{background:#e2e8e4}.spm-bd progress::-webkit-progress-value{background:var(--gauge)}.spm-bd progress::-moz-progress-bar{background:var(--gauge)}.bd-macros{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px;margin:22px 0}.bd-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:20px 0}.bd-calendar a{display:grid;text-decoration:none;text-align:center;gap:3px;border-radius:8px;background:#eef1ef;color:#4e5e55;padding:8px 2px;min-height:51px}.bd-calendar small{font-size:.68rem}.bd-calendar strong{font-size:.9rem}.bd-calendar .bd-low{background:#e2effb;color:#174c7d}.bd-calendar .bd-good{background:#cee9d9;color:#165238}.bd-calendar .bd-perfect{background:#12513e;color:#fff}.bd-calendar .bd-high{background:#fbe4e4;color:#91242b}.bd-callout{padding:18px 22px;background:#f5f0e4;border-left:4px solid #b38a36;border-radius:6px;margin-bottom:22px}.bd-food-line{display:flex;justify-content:space-between;align-items:center;gap:18px;border-top:1px solid #e2e8e3;padding:18px 0}.bd-food-line:first-of-type{border-top:0}.bd-food-line p{margin:4px 0}.bd-food-line .spm-form{display:block;margin:0}.bd-food-line .spm-button{background:#fff;color:#97373a;border:1px solid #dfbec0;font-size:.8rem}.bd-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.bd-plan{border:1px solid #dce6df;border-radius:10px;padding:20px}.bd-plan p{margin:10px 0}.bd-exercise{padding:20px;border:1px solid #d6e2da;border-radius:12px;background:#fbfcfb}.bd-exercise-head{display:flex;gap:18px;align-items:center;margin-bottom:18px}.bd-exercise-image{width:92px;height:110px;object-fit:contain;background:#edf4ef;border-radius:10px;flex-shrink:0}.bd-exercise-head h3{margin-bottom:8px}.bd-exercise-head p{font-size:.85rem}.bd-set{display:grid;grid-template-columns:52px 1fr 1fr;gap:12px;align-items:end;margin-bottom:12px}.bd-set>span{padding-bottom:12px;font-size:.8rem;font-weight:800}.bd-set label,.bd-editor-grid label{display:grid;gap:6px;font-size:.78rem;font-weight:800;min-width:0}.spm-bd input,.spm-bd select{max-width:100%;min-width:0}.bd-set input,.bd-editor-grid input,.bd-editor-grid select{width:100%;border:1px solid #b9c9bf;border-radius:7px;padding:11px;font:inherit;font-size:1rem;min-height:44px;background:#fff;color:#25372c}.bd-exercise>.spm-button{margin:8px 5px 0 0;font-size:.78rem}.bd-timer{display:block;font-weight:800;margin-top:8px;color:#12513e}.bd-exercise-editor{border:1px solid #cbdacf;padding:20px;border-radius:10px;margin-bottom:20px;min-width:0}.bd-exercise-editor legend{padding:0 8px;font-weight:800}.bd-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.bd-exercise-editor p{margin-top:14px}.bd-history a{display:flex;gap:15px;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid #e2e8e3;font-size:.85rem;text-decoration:none}.bd-training-history{padding:18px 0;border-bottom:1px solid #e2e8e3}.bd-training-history summary{min-height:44px;cursor:pointer;font-weight:800}.spm-bd summary{cursor:pointer}.spm-bd summary:focus-visible,.spm-bd a:focus-visible,.spm-bd button:focus-visible,.spm-bd input:focus-visible,.spm-bd select:focus-visible{outline:3px solid #226bb0;outline-offset:3px}.spm-bd .spm-panel>h2{margin-bottom:14px}.spm-bd .spm-small{line-height:1.6}.bd-workout .spm-form{margin-top:22px}.bd-workout .bd-exercise{margin-bottom:10px}
@media(max-width:650px){.bd-hero{padding:22px}.bd-triangle{display:none}.bd-trio,.bd-plan-grid{grid-template-columns:1fr}.bd-trio .bd-primary{display:block;grid-column:auto}.bd-primary .spm-button{margin-top:18px}.bd-tabs{gap:6px}.bd-tabs a{padding:10px 12px;font-size:.82rem;flex-grow:1;text-align:center}.bd-gauge b{font-size:1.6rem}.bd-macros{gap:22px 16px}.bd-calendar{gap:5px}.bd-exercise{padding:14px}.bd-exercise-image{width:65px;height:85px}.bd-exercise-head{gap:12px;align-items:start}.bd-set{grid-template-columns:38px 1fr 1fr;gap:8px}.bd-set label{font-size:.7rem}.bd-set input{padding:10px 6px}.bd-editor-grid{grid-template-columns:1fr}.bd-exercise-editor{padding:14px}.bd-food-line{align-items:start}.bd-food-line .spm-button{padding:10px;font-size:.72rem}.bd-date{gap:10px}.bd-date input{width:100%}.bd-date label{flex:1}.bd-gauge-label{align-items:start}.bd-gauge-label>span{font-size:.68rem}.bd-history a{display:grid;gap:4px}}
@media(prefers-reduced-motion:reduce){.spm-bd *{scroll-behavior:auto}}
/* Explicit flexible widths avoid nested grid sizing differences. */
.spm-bd>.spm-panel{margin-bottom:20px}.bd-trio{display:flex;flex-wrap:wrap;width:100%}.bd-trio>.bd-card{flex:1 1 calc(50% - 18px);width:calc(50% - 18px);max-width:100%;min-width:0}.bd-trio>.bd-primary{display:block;flex-basis:100%;width:100%;border-top:4px solid #278263}.bd-primary .spm-button{margin-top:18px}.bd-food-line>div{flex:1;min-width:0}.bd-food-line>.spm-form{flex:0 0 auto;width:auto;max-width:40%;min-width:0}.bd-food-line .spm-button{width:auto;min-width:0;max-width:100%;padding:10px 12px}.bd-workout .spm-form>.bd-exercise{flex:0 1 100%;width:100%;max-width:100%;min-width:0}.spm-bd .bd-date button{width:auto;min-height:44px;padding:10px 18px}.spm-bd .bd-card>.spm-button{display:inline-flex;max-width:100%;min-height:44px;align-items:center;justify-content:center}.spm-bd .bd-hero h2{font-size:1.8rem}.spm-bd .bd-hero .spm-button{margin-top:16px}
@media(max-width:650px){.bd-trio>.bd-card{flex-basis:100%;width:100%}.spm-bd .bd-hero h2{font-size:1.35rem}.bd-workout .spm-form{display:block}.bd-workout .spm-form>.spm-field{margin:16px 0}.bd-workout .spm-form>.bd-exercise{width:100%}.bd-trio>.bd-card>.spm-button{display:flex;width:100%}}
/* 1.5.1: focused daily forms, reversible edits and compact set controls. */
.bd-set{grid-template-columns:48px minmax(0,1fr) minmax(0,1fr);align-items:end}.bd-clear-set{grid-column:2/4;justify-self:start;background:transparent;border:0;color:#64504c;font:inherit;font-size:.75rem;min-height:32px;padding:2px 0;text-decoration:underline;cursor:pointer}.bd-food-line{flex-wrap:wrap}.bd-food-edit{flex:0 1 100%;order:3;border-top:1px solid #e2e8e3;padding-top:12px}.bd-food-edit summary,.bd-delete summary{min-height:44px;padding:10px 0;font-weight:700;cursor:pointer}.bd-food-edit>.spm-form{display:flex;width:100%;max-width:none;margin-top:12px}.bd-food-line>.spm-form{order:2}.bd-food-line>div:first-child{order:1}.bd-food-edit .spm-button{color:#174a39;border-color:#a0bdac}.bd-delete{margin-top:14px}.bd-history article{padding:16px 0;border-bottom:1px solid #e2e8e3;min-width:0}.bd-history article p{overflow-wrap:anywhere;margin:8px 0}.bd-gauge>small{display:block;margin-top:9px;color:#52635a;font-size:.76rem}.spm-bd .spm-panel>summary{font-weight:800;min-height:44px;cursor:pointer}.spm-bd .spm-panel[open]>summary{margin-bottom:18px}.spm-bd [data-product-status]:empty{display:none}.bd-exercise-editor [data-limit]{color:#983438}.spm-bd .spm-button:disabled{opacity:.6;cursor:not-allowed}.spm-bd .bd-clear-set:focus-visible{outline:3px solid #226bb0;outline-offset:3px}
@media(max-width:650px){.bd-food-edit>.spm-form{display:block}.bd-food-edit>.spm-form>.spm-field{margin-bottom:16px}.bd-set{grid-template-columns:38px minmax(0,1fr) minmax(0,1fr)}.bd-gauge-label>span{font-size:.75rem}.spm-bd .bd-hero{padding:20px}}
