#bed501{--ink:#09094b;--text:#475569;--blue:#1764ed;--paper:#fff;--soft:#f5f7fb;--line:#dce4ef;--mint:linear-gradient(120deg,#effcf7,#f4fcff);--amber:#fff5db;--amber-line:#ead49c;font:15px/1.5 Arial,sans-serif;color:var(--text)}
#bed501 *{box-sizing:border-box}#bed501 [hidden]{display:none!important}#bed501 h2,#bed501 h3,#bed501 strong,#bed501 b,#bed501 label,#bed501 legend,#bed501 summary{color:var(--ink)}#bed501 h2{font-size:22px;line-height:1.25;margin:0 0 16px;font-weight:750;letter-spacing:-.35px}#bed501 p{margin:0 0 8px}#bed501 :is(button,input,select){font:inherit}#bed501 button{cursor:pointer;touch-action:manipulation}#bed501 a{touch-action:manipulation}#bed501 :is(button,a,summary):focus-visible{outline:3px solid #739ef6;outline-offset:3px}#bed501 .bed-intro{font-size:19px;margin:0 0 18px}
/* Shared clinical notice: document seal, no accent stripe or endorsement claim. */
#bed501 .st-reference-notice{--ref-shield-paper:#eff6ff;--ref-shield-inner:#fff;--ref-shield-layer:#dcecff;display:flex;gap:18px;justify-content:space-between;align-items:center;background:linear-gradient(110deg,#f8fafc,#eff6ff);border:1px solid var(--line);border-radius:6px;padding:12px 15px;margin-bottom:8px}#bed501 .st-reference-copy{flex:1;min-width:0}#bed501 .st-reference-copy h2{font-size:17px;letter-spacing:0;margin:0 0 4px}#bed501 .st-reference-copy p{color:var(--text);font-size:12px;line-height:1.45;margin:0}#bed501 a{color:var(--blue)}#bed501 .st-reference-seal{display:grid;grid-template-columns:38px 1fr;gap:2px 10px;align-items:center;max-width:225px;flex-shrink:0;font-size:10px;color:#234ca3}#bed501 .st-reference-shield{grid-row:1/3;width:36px;height:44px;color:var(--blue)}#bed501 .st-reference-seal b{font-size:10px;line-height:1.3;color:inherit}#bed501 .st-reference-seal small{font-size:10px;color:var(--text)}
/* Locked profile geometry: image left, copy right, 112px desktop / 88px mobile. */
#bed501 .bed-profiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:14px 0 18px}#bed501 .bed-profile{min-width:0;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:14px;text-align:left;padding:10px 14px;height:112px;min-height:112px;max-height:112px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--text)}#bed501 .bed-profile[aria-pressed=true]{border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}#bed501 .bed-profile>span:last-child{min-width:0}#bed501 .bed-profile strong{display:block;font-size:16px;line-height:1.25;margin:0 0 5px}#bed501 .bed-profile>span>span{display:block;font-size:12px;line-height:1.4}#bed501 .bed-art{display:block;width:80px;height:80px;flex:0 0 80px;background-image:url('/assets/st-calculator-w501/composition-atlas.webp');background-size:300% 200%;background-repeat:no-repeat}#bed501 .bed-art-scale-tape{background-position:0 0}#bed501 .bed-art-stadiometer{background-position:50% 0}#bed501 .bed-art-books{background-position:100% 0}#bed501 .bed-art-lungs{background-position:0 100%}#bed501 .bed-art-scale{background-position:50% 100%}#bed501 .bed-art-peak{background-position:100% 100%}
#bed501 .bed-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-bottom:18px}#bed501 .bed-panel{min-width:0;padding:20px;background:var(--paper);border:1px solid var(--line);border-radius:7px}#bed501 .bed-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:25px}#bed501 .bed-panel-heading h2{margin:0}#bed501 .bed-units{display:flex;border:1px solid var(--line);border-radius:20px;background:var(--soft);overflow:hidden;flex-shrink:0}#bed501 .bed-units button{border:0;border-radius:18px;background:transparent;color:var(--ink);padding:6px 12px;font-size:12px;min-height:32px}#bed501 .bed-units button[aria-pressed=true]{background:var(--blue);color:#fff}
#bed501 .bed-field{display:grid;grid-template-columns:1fr 1.65fr;align-items:start;gap:12px;margin:0 0 16px}#bed501 .bed-field>label{padding-top:10px}#bed501 label,#bed501 legend{font-size:14px}#bed501 .bed-input{display:flex;border:1px solid var(--line);border-radius:5px;overflow:hidden;min-width:0;background:var(--paper)}#bed501 .bed-input input{min-width:0;width:100%;border:0;padding:10px 12px;background:transparent;color:var(--ink);height:43px;font-size:16px}#bed501 .bed-input input:focus{outline:2px solid var(--blue);outline-offset:-2px}#bed501 [aria-invalid=true]{outline:2px solid #c84646;outline-offset:-2px}#bed501 .bed-input>span{background:var(--soft);padding:0 12px;display:flex;align-items:center;border-left:1px solid var(--line);font-size:12px;min-width:48px}#bed501 select{width:100%;min-width:0;min-height:43px;border:1px solid var(--line);border-radius:5px;background:var(--paper);color:var(--ink);padding:8px 9px;font-size:15px}#bed501 .bed-sex{display:flex;align-items:center;gap:20px;border:0;padding:0;margin:0 0 20px;min-width:0}#bed501 .bed-sex legend{float:left;width:38%;padding:0}#bed501 .bed-sex label{display:flex;align-items:center;gap:5px}#bed501 .bed-sex input{width:17px;height:17px;accent-color:var(--blue)}#bed501 .bed-hint{font-size:12px;line-height:1.5;color:var(--text)}#bed501 #bedFactorHint{margin:5px 0 0;font-size:11px}#bed501 #bedAdultNote{margin:9px 0 0;font-size:11px}#bed501 #bedForm{display:flex;flex-direction:column}#bed501 .bed-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}#bed501 .bed-actions button{padding:11px 8px;border:1px solid var(--blue);border-radius:5px;min-height:44px;color:var(--blue);background:var(--paper);font-size:14px;font-weight:600}#bed501 button.bed-primary{background:var(--blue);border-color:var(--blue);color:white}#bed501 .bed-form-actions{margin-top:auto;padding-top:7px}#bed501 button:disabled{opacity:.5;cursor:not-allowed}#bed501 .bed-error{border:1px solid #dc7777;background:#fff1f1;color:#8b1f1f;padding:10px;border-radius:5px;font-size:13px;margin:12px 0}
#bed501 .bed-hero{background:var(--mint);border:1px solid #9bdfc8;border-radius:6px;padding:22px 16px;text-align:center;color:var(--ink);margin:0 0 14px}#bed501 .bed-hero>span{display:block;font-size:15px;font-weight:600}#bed501 .bed-hero strong{display:block;font-size:56px;line-height:1.15;letter-spacing:-1.5px;font-variant-numeric:tabular-nums;margin:8px 0}#bed501 .bed-hero small{display:block;font-size:12px}#bed501 .bed-hero[data-state=invalid]{background:var(--soft);border-color:var(--line)}#bed501 .bed-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:15px}#bed501 .bed-metrics>div{min-width:0;padding:10px;border:1px solid var(--line);border-radius:5px;background:var(--soft)}#bed501 .bed-metrics span{display:block;color:var(--ink);font-size:11px}#bed501 .bed-metrics strong{font-size:22px;line-height:1.3;display:block;font-variant-numeric:tabular-nums;white-space:nowrap}#bed501 .bed-context,#bed501 .bed-medication{background:var(--amber);border:1px solid var(--amber-line);border-radius:5px;padding:12px;font-size:12px;line-height:1.5}#bed501 .bed-context>strong,#bed501 .bed-medication>strong{font-size:13px;display:block;margin-bottom:4px}#bed501 .bed-context>p,#bed501 .bed-medication>p{margin:0}#bed501 .bed-context[data-state=within]{background:var(--soft);border-color:var(--line)}#bed501 .bed-context[data-state=invalid]{background:var(--soft);border-color:var(--line)}
#bed501 .bed-comparison{margin-bottom:16px}#bed501 .bed-bar-row{display:grid;grid-template-columns:230px 90px minmax(0,1fr);align-items:center;gap:14px;margin-bottom:14px;font-size:14px}#bed501 .bed-bar-row strong{font-size:15px;font-variant-numeric:tabular-nums}#bed501 .bed-track{height:17px;overflow:hidden;background:var(--soft);border-radius:4px}#bed501 .bed-bar{display:block;height:100%;border-radius:4px;width:0}#bed501 .bed-bar-ibw{background:#269fea}#bed501 .bed-bar-adjusted{background:#13b887}#bed501 .bed-bar-actual{background:#68727e}#bed501 .bed-comparison>.bed-hint{margin-bottom:0}#bed501 .bed-export-status{min-height:18px;margin:5px 0 12px}#bed501 .bed-equation{padding:12px;background:var(--soft);border:1px solid var(--line);border-radius:5px;font-size:16px;color:var(--ink);margin-bottom:10px;overflow-wrap:anywhere}#bed501 .bed-equation p{margin:0 0 4px}#bed501 .bed-equation p:last-child{margin:0}#bed501 .bed-medication{margin-top:16px}#bed501 details{font-size:13px;border-bottom:1px solid var(--line);padding:12px 0}#bed501 summary{list-style:none;position:relative;padding-right:24px;cursor:pointer;font-size:14px}#bed501 summary::-webkit-details-marker{display:none}#bed501 summary:beder{content:'+';position:absolute;right:4px;color:var(--blue)}#bed501 details[open] summary:beder{content:'−'}#bed501 details p{margin:9px 0 0}#bed501 .bed-equation-details{font-size:12px}
/* Reference standard: compact horizontal logo + copy; never image-over-copy. */
#bed501 .bed-sources{margin:22px 0 32px}#bed501 .bed-sources h2{font-size:20px;margin-bottom:14px}#bed501 .bed-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}#bed501 .bed-source-grid>a{display:flex;align-items:center;gap:12px;height:88px;min-height:88px;padding:10px 12px;text-decoration:none;color:var(--text);background:var(--paper);border:1px solid var(--line);border-radius:6px;min-width:0}#bed501 .bed-source-grid>a>div:last-child{min-width:0}#bed501 .bed-source-logo{width:94px;flex:0 0 94px}#bed501 .bed-source-logo img{display:block;width:100%;height:40px;object-fit:contain}#bed501 .bed-source-grid strong{font-size:12px;line-height:1.35;display:block}#bed501 .bed-source-grid p{font-size:11px;line-height:1.4;margin:4px 0 0}#bed501 .bed-reference-note{margin-top:8px;font-size:11px}
#bed501 .bed-related-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:15px}#bed501 .bed-related-heading h2{font-size:25px;margin:0}#bed501 .bed-related-heading>a{font-size:12px;white-space:nowrap;text-decoration:none}#bed501 .bed-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}#bed501 .bed-related-grid>a{display:flex;align-items:center;gap:12px;height:134px;padding:12px;border:1px solid var(--line);border-radius:6px;text-decoration:none;background:var(--paper);min-width:0}#bed501 .bed-related-grid .bed-art{width:100px;height:100px;flex-basis:100px}#bed501 .bed-related-grid strong{font-size:15px;display:block}#bed501 .bed-related-grid a>div>span{font-size:12px;display:block;margin-top:5px;color:var(--text)}
main.st-master-page:has(#bed501)>h1{font-family:Arial,sans-serif;font-size:38px;line-height:1.18;font-weight:750;letter-spacing:-1px;color:#09094b;margin-bottom:12px}
:is(html.st-master-dark,html.st-home-dark,html.dark,html[data-theme=dark],body.dark) #bed501{--ink:#e1e9ff;--text:#bcc9dd;--blue:#85b5ff;--paper:#152131;--soft:#1b2a3e;--line:#33465f;--mint:linear-gradient(120deg,#123b32,#172d3b);--amber:#44371e;--amber-line:#8c764a}:is(html.st-master-dark,html.st-home-dark,html.dark,html[data-theme=dark],body.dark) #bed501 :is(input,select){color-scheme:dark}:is(html.st-master-dark,html.st-home-dark,html.dark,html[data-theme=dark],body.dark) #bed501 .bed-source-logo{background:#fff;border-radius:4px;padding:4px}:is(html.st-master-dark,html.st-home-dark,html.dark,html[data-theme=dark],body.dark) #bed501 .bed-error{background:#44222c;color:#ffd7df}:is(html.st-master-dark,html.st-home-dark,html.dark,html[data-theme=dark],body.dark) #bed501 .st-reference-notice{--ref-shield-paper:#1b314e;--ref-shield-inner:#243f60;--ref-shield-layer:#345a7e;background:linear-gradient(110deg,#1a2637,#1a3045)}:is(html.st-master-dark,html.st-home-dark,html.dark,html[data-theme=dark],body.dark) #bed501 .st-reference-seal{color:#aecbfa}:is(html.st-master-dark,html.st-home-dark,html.dark,html[data-theme=dark],body.dark) main.st-master-page:has(#bed501)>h1{color:#e1e9ff}:is(html.st-master-dark,html.st-home-dark,html.dark,html[data-theme=dark],body.dark) #bed501 button.bed-primary,:is(html.st-master-dark,html.st-home-dark,html.dark,html[data-theme=dark],body.dark) #bed501 .bed-units button[aria-pressed=true]{background:#1764ed;border-color:#1764ed;color:#fff}
@media(max-width:950px){#bed501 .bed-panel{padding:16px}#bed501 .bed-panel-heading{flex-wrap:wrap}#bed501 .bed-metrics{gap:5px}#bed501 .bed-metrics>div{padding:7px}#bed501 .bed-metrics strong{font-size:19px}#bed501 .bed-source-logo{width:65px;flex-basis:65px}#bed501 .bed-source-grid>a{gap:8px;padding:8px;height:96px;min-height:96px}#bed501 .bed-related-grid .bed-art{width:75px;height:75px;flex-basis:75px}#bed501 .bed-profile{padding:9px;gap:9px}#bed501 .bed-profile .bed-art{width:64px;height:64px;flex-basis:64px}#bed501 .bed-profile strong{font-size:14px}#bed501 .bed-profile>span>span{font-size:11px}}
@media(max-width:700px){#bed501 .bed-grid{grid-template-columns:1fr;gap:16px}#bed501 .bed-profiles,#bed501 .bed-source-grid,#bed501 .bed-related-grid{grid-template-columns:1fr}#bed501 .bed-profiles{gap:9px}#bed501 .bed-profile{height:88px;min-height:88px;max-height:88px;padding:8px 12px;gap:14px}#bed501 .bed-profile .bed-art{width:66px;height:66px;flex-basis:66px}#bed501 .bed-profile strong{font-size:15px}#bed501 .bed-profile>span>span{font-size:12px}#bed501 .bed-source-grid>a{height:88px;min-height:88px;padding:10px 12px;gap:12px}#bed501 .bed-source-logo{width:94px;flex-basis:94px}#bed501 .bed-bar-row{grid-template-columns:minmax(0,1fr) 90px;gap:5px 12px;font-size:12px}#bed501 .bed-bar-row strong{text-align:right;font-size:14px}#bed501 .bed-track{grid-column:1/-1;height:15px}#bed501 .bed-related-heading{align-items:flex-start;flex-direction:column;gap:8px}#bed501 .bed-related-heading h2{font-size:23px}#bed501 .bed-related-grid .bed-art{width:100px;height:100px;flex-basis:100px}#bed501 .bed-intro{font-size:17px}}
@media(max-width:520px){#bed501 .st-reference-notice{align-items:flex-start;gap:9px;padding:10px}#bed501 .st-reference-seal{display:block;width:42px;min-width:42px}#bed501 .st-reference-seal b,#bed501 .st-reference-seal small{display:none}#bed501 .bed-hero strong{font-size:48px}}
@media(max-width:380px){#bed501 .bed-field{grid-template-columns:1fr;gap:5px}#bed501 .bed-field>label{padding-top:0}#bed501 .bed-sex{flex-wrap:wrap;gap:12px}#bed501 .bed-sex legend{float:none;width:100%;margin-bottom:6px}#bed501 .bed-panel-heading{gap:10px;margin-bottom:18px}#bed501 .bed-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}#bed501 .bed-metrics strong{font-size:17px}#bed501 .bed-metrics span{font-size:10px}#bed501 .bed-source-logo{width:75px;flex-basis:75px}#bed501 .bed-related-grid .bed-art{width:80px;height:80px;flex-basis:80px}main.st-master-page:has(#bed501)>h1{font-size:29px}}


/* Photo frames retain the approved geometry. W502 replaces screenshot crops with high-resolution assets. */
#bed501 .bed-art{position:relative;display:block;width:80px;height:auto;aspect-ratio:var(--crop-w)/var(--crop-h);flex:0 0 80px;overflow:hidden;background:none;border-radius:3px;isolation:isolate}#bed501 .bed-art img{position:absolute;display:block;max-width:none!important;width:calc(97300% / var(--crop-w))!important;height:auto!important;left:calc(-100% * var(--crop-x) / var(--crop-w));top:calc(-100% * var(--crop-y) / var(--crop-h));pointer-events:none}
#bed501 #bedEstimateButton{border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}#bed501 .bed-field{align-items:start;grid-template-columns:1fr 1.9fr;gap:12px;margin-bottom:20px}#bed501 .bed-field>label,#bed501 .bed-field-label{padding-top:10px;color:var(--ink);font-size:14px}#bed501 .bed-field .bed-hint{margin:7px 0 0;font-size:11px}#bed501 .bed-sex-tabs{max-width:200px}#bed501 .bed-sex-tabs button{flex:1}#bed501 .bed-position-note{padding-top:12px;border-top:1px solid var(--line);font-size:11px;margin:0 0 25px}#bed501 .bed-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}#bed501 .bed-metrics>div{text-align:center;padding:13px 8px}#bed501 .bed-metrics span{font-size:13px;font-weight:600}#bed501 .bed-metrics strong{font-size:27px;white-space:normal;overflow-wrap:anywhere}#bed501 .bed-hero strong{font-size:48px;overflow-wrap:anywhere}#bed501 .bed-age-note{background:var(--soft);padding:8px;border-radius:4px;margin-bottom:10px;font-size:11px}#bed501 .bed-context p{font-size:12px}#bed501 .bed-guide-figure{margin:0;position:relative}#bed501 .bed-guide-figure>.bed-art{width:100%;height:auto;aspect-ratio:415/209}#bed501 .bed-guide-figure figcaption{font-size:10px;color:var(--text);margin-top:6px;padding-right:105px;min-height:27px;line-height:1.4}#bed501 .bed-watermark{position:absolute;bottom:0;right:0;font-size:9px;color:var(--text)}#bed501 .bed-guide-note{font-size:11px;margin:10px 0 0}#bed501 .bed-next>p{font-size:13px}#bed501 .bed-next-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}#bed501 .bed-next-grid>a{display:flex;align-items:center;border:1px solid var(--line);padding:10px 8px;gap:8px;border-radius:5px;text-decoration:none;min-width:0;color:var(--text)}#bed501 .bed-next-grid .bed-art{width:65px;flex-basis:65px}#bed501 .bed-next-grid strong{display:block;font-size:12px;line-height:1.3}#bed501 .bed-next-grid small{font-size:11px;line-height:1.4;display:block;margin-top:5px}#bed501 .bed-next-note{background:var(--soft);padding:12px;border-radius:4px;margin-top:25px}#bed501 .bed-next-note>strong{font-size:19px}#bed501 .bed-next-note p{font-size:11px;margin:4px 0 0}#bed501 h3{font-size:13px;margin:12px 0 5px}#bed501 .bed-equation{font-size:13px;margin-bottom:12px;text-align:left;overflow-wrap:anywhere}#bed501 .bed-worked{font-size:13px;color:var(--ink);margin-bottom:14px;overflow-wrap:anywhere}#bed501 .bed-assumptions{background:var(--soft);font-size:11px;padding:10px;border-radius:4px}#bed501 .bed-jags b{display:block;font-family:Georgia,serif;font-size:32px;line-height:1;color:#174680}#bed501 .bed-jags small{font-family:Georgia,serif;font-size:8px;line-height:1.2;display:block;color:#174680}#bed501 .bed-apjcn{font:10px/1.3 Georgia,serif;color:#a02b34}#bed501 .bed-apjcn b{font-size:10px;color:inherit}#bed501 .bed-related-grid .bed-art{height:auto;width:100px;flex-basis:100px}#bed501 .bed-next a[aria-disabled=true]{pointer-events:none;opacity:.5}#bed501 :is(#bedSources,#bedForm,#bedGuide,#bedMethod){scroll-margin-top:150px}
@media(max-width:950px){#bed501 .bed-profile .bed-art{width:64px;flex-basis:64px;height:auto}#bed501 .bed-next-grid{grid-template-columns:1fr}#bed501 .bed-next-note{margin-top:15px}#bed501 .bed-hero strong{font-size:41px}#bed501 .bed-metrics strong{font-size:22px}#bed501 .bed-related-grid .bed-art{height:auto;width:75px;flex-basis:75px}}@media(max-width:700px){#bed501 .bed-profile .bed-art{width:66px;height:auto;flex-basis:66px}#bed501 .bed-related-grid .bed-art{width:100px;height:auto;flex-basis:100px}#bed501 .bed-next-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#bed501 :is(#bedSources,#bedForm,#bedGuide,#bedMethod){scroll-margin-top:18px}}@media(max-width:380px){#bed501 .bed-field{grid-template-columns:1fr;gap:6px}#bed501 .bed-field>label,#bed501 .bed-field-label{padding:0}#bed501 .bed-next-grid{grid-template-columns:1fr}#bed501 .bed-hero strong{font-size:38px}#bed501 .bed-metrics strong{font-size:21px}#bed501 .bed-related-grid .bed-art{width:80px;flex-basis:80px}}

/* W502: original frame dimensions; standalone sharp photos and transparent cutouts. */
#bed501 .bed-art>svg{display:block;position:absolute;inset:0;width:100%;height:100%;overflow:hidden}
#bed501 .bed-art-guide>img{position:static!important;display:block;width:100%!important;max-width:100%!important;height:100%!important;object-fit:cover;object-position:center}
#bed501 .bed-photo-label{position:absolute;z-index:1;left:64%;max-width:34%;font:600 11px/1.25 Arial,sans-serif;color:#09094b;background:rgba(255,255,255,.92);padding:2px 3px;border-radius:2px}
#bed501 .bed-photo-upper{top:3%}#bed501 .bed-photo-lower{top:64%}
#bed501 .bed-photo-label:before{content:'';position:absolute;right:100%;top:9px;width:24px;height:1px;background:#2e66b4}
@media(max-width:380px){#bed501 .bed-photo-label{font-size:8px}#bed501 .bed-photo-label:before{width:12px;top:6px}}

/* W503: the established small ST+ wordmark, sharp at every display density. */
#bed501 .bed-guide-figure figcaption{padding-right:0;min-height:0}
#bed501 .bed-watermark{position:static;display:flex;justify-content:flex-end;margin-top:8px;height:24px}
#bed501 .bed-watermark img{position:static;display:block;width:174px;height:24px;max-width:100%;object-fit:contain}
#bed501 .bed-watermark .st503-mark-night{display:none}
:is(html.st-master-dark,html.st-home-dark,html.dark,html[data-theme=dark],body.dark) #bed501 .bed-watermark .st503-mark-day{display:none}
:is(html.st-master-dark,html.st-home-dark,html.dark,html[data-theme=dark],body.dark) #bed501 .bed-watermark .st503-mark-night{display:block}
