/* W448: page-scoped studio. The shared site header, navigation and footer are retained. */
#st334Content:has(#calorie448){width:86.5%;max-width:1120px;padding-left:0;padding-right:0}
#st334Content:has(#calorie448)>h1{color:#09094b;margin-bottom:4px}
#st334Content:has(#calorie448)>.st-master-intro{display:none}
#calorie448{--ink:#09094b;--text:#34466c;--muted:#596c8c;--line:#d4dfec;--paper:#fff;--soft:#f4f8fe;--blue:#0866ff;--result:#e3ffeb;--result-line:#c1ead0;--warm:#fff8e9;--warm-line:#f0deb1;font:14px/1.45 Arial,Helvetica,sans-serif;color:var(--text);background:var(--paper)}
#calorie448 *{box-sizing:border-box}#calorie448 [hidden]{display:none!important}#calorie448 h2,#calorie448 h3{color:var(--ink);line-height:1.25;margin:0 0 13px;font-weight:700;letter-spacing:-.35px}#calorie448 h2{font-size:19px}#calorie448 h3{font-size:16px}#calorie448 p{margin:8px 0}#calorie448 a{color:var(--blue);text-decoration:none}#calorie448 a:hover{text-decoration:underline}#calorie448 button,#calorie448 input,#calorie448 select{font:inherit;touch-action:manipulation}#calorie448 button{border:1px solid #aac9ff;background:var(--paper);border-radius:4px;color:var(--blue);padding:8px 12px;cursor:pointer;line-height:1.3}#calorie448 button:hover{background:var(--soft);border-color:var(--blue)}#calorie448 button.primary,#calorie448 .segmented button.selected{background:var(--blue);border-color:var(--blue);color:#fff}#calorie448 button:disabled{cursor:not-allowed;opacity:.45}#calorie448 :is(button,input,select,a,summary):focus-visible{outline:3px solid #7faefb;outline-offset:3px}#calorie448 img{display:block;max-width:100%;object-fit:contain}#calorie448 input,#calorie448 select{color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:4px;width:100%;min-width:0;padding:8px 10px;height:39px;font-size:14px}#calorie448 input[type=range]{height:22px;padding:0;accent-color:var(--blue)}#calorie448 .intro{font-size:18px;color:var(--ink);margin:2px 0 18px}#calorie448 .hint{font-size:12px;line-height:1.4;color:var(--muted)}

#calorie448 .goal-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:17px}#calorie448 .goal-card{height:166px;padding:7px 10px 9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--ink);border:1px solid var(--line)}#calorie448 .goal-card.selected{border:2px solid var(--blue);background:#f0f7ff;padding:6px 9px 8px}#calorie448 .goal-card .photo{height:109px;width:244px;max-width:100%}#calorie448 .goal-card strong{font-size:17px;line-height:1.2}#calorie448 .goal-card small{font-size:13px;color:var(--text);line-height:1.3}
#calorie448 .photo{position:relative;display:block;min-width:0}#calorie448 .photo>img:first-child{width:100%;height:100%;object-fit:contain}#calorie448 .photo>img.watermark{position:absolute;right:5px;bottom:7px;width:86px;max-width:65%;height:auto;opacity:.4;filter:drop-shadow(0 1px 1px #253848);pointer-events:none}
#calorie448 .panel{padding:15px;border:1px solid var(--line);border-radius:5px;background:var(--paper);min-width:0}#calorie448 .panel-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:13px}#calorie448 .panel-heading h2{margin:0}#calorie448 .studio-grid{display:grid;grid-template-columns:minmax(0,.47fr) minmax(0,.53fr);gap:14px;align-items:stretch}#calorie448 .input-panel{display:flex;flex-direction:column;margin:0}#calorie448 .input-panel .panel-heading{margin-bottom:12px}#calorie448 .segmented{display:flex;min-width:0}#calorie448 .segmented button{flex:1;border-color:var(--line);color:var(--ink);font-size:13px;padding:8px 10px;height:39px}#calorie448 .segmented button+button{border-top-left-radius:0;border-bottom-left-radius:0}#calorie448 .segmented button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}#calorie448 .unit-switch{flex:none}#calorie448 .unit-switch button{height:28px;padding:4px 10px;font-size:12px}#calorie448 .field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px;margin-bottom:14px}#calorie448 .field{display:flex;flex-direction:column;gap:5px;font-size:14px;color:var(--ink);font-weight:400;min-width:0}#calorie448 .field>label{font-size:14px;color:var(--ink);font-weight:400}#calorie448 .input-unit{position:relative;display:block}#calorie448 .input-unit input{padding-right:62px}#calorie448 .input-unit>span{position:absolute;right:10px;top:10px;pointer-events:none;color:var(--muted);font-size:13px}#calorie448 .activity-hint{margin:4px 0 13px}#calorie448 .advanced{margin-top:14px}#calorie448 .advanced>summary{background:#f0f7ff;border:1px solid #dceaff;border-radius:4px;padding:9px 11px;cursor:pointer;color:var(--ink);font-size:13px;font-weight:700;list-style-position:inside}#calorie448 .advanced>.field{margin-top:12px}#calorie448 .equation-alternatives{font-size:12px;margin:10px 0 2px}#calorie448 .equation-alternatives button{border:0;padding:0;background:none;color:var(--blue);font-size:inherit}#calorie448 .advanced>.hint{margin:2px 0 0}#calorie448 .form-actions{display:flex;gap:10px;padding-top:32px;margin-top:auto}#calorie448 .form-actions .primary{flex:1}#calorie448 .form-actions button{height:40px;font-weight:700}#calorie448 .form-actions button[type=reset]{min-width:102px;background:var(--soft);color:var(--ink)}#calorie448 .error{border:1px solid #e0a1a1;background:#fff2f2;color:#9e2525;padding:10px;font-size:13px;border-radius:4px}
#calorie448 .right-column{display:flex;flex-direction:column;gap:14px;min-width:0}#calorie448 .result-card{background:var(--result);border:1px solid var(--result-line);border-radius:5px;padding:18px 19px 12px;color:var(--ink)}#calorie448 .result-card h2{font-size:13px;letter-spacing:0;margin:0 0 3px}#calorie448 .target{display:flex;align-items:baseline;gap:13px;white-space:nowrap;margin:0!important;font-weight:700;line-height:1.15}#calorie448 .target output{font-size:66px;letter-spacing:-2.3px;color:var(--ink)}#calorie448 .target>span{font-size:21px}#calorie448 .target-note{font-size:19px;margin:7px 0 17px}#calorie448 .metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}#calorie448 .metric-grid>div{display:flex;flex-direction:column;gap:1px;padding:10px 12px;background:var(--paper);border:1px solid var(--line);border-radius:4px;min-width:0}#calorie448 .metric-grid span{font-size:12px;color:var(--ink);white-space:nowrap}#calorie448 .metric-grid strong{font-size:23px;line-height:1.15;color:var(--ink)}#calorie448 .metric-grid small{font-size:12px}#calorie448 .result-card>.hint{margin:8px 0 0;font-size:11.5px}#calorie448 .target-caution{padding:9px;background:var(--warm);border:1px solid var(--warm-line);border-radius:4px;font-size:13px}
#calorie448 .macro-panel{flex:1;padding:13px 15px 10px}#calorie448 .macro-panel .panel-heading{margin-bottom:12px}#calorie448 .text-button{padding:0;border:0;background:none;font-size:11px;color:var(--text)}#calorie448 .macro-visual{display:grid;grid-template-columns:minmax(0,1fr) 155px;gap:10px;align-items:center}#calorie448 .macro-visual>.photo{height:137px}#calorie448 .macro-row{margin-bottom:13px}#calorie448 .macro-row>div:first-child{display:flex;justify-content:space-between;gap:7px;font-size:12px;white-space:nowrap;color:var(--ink);margin-bottom:4px}#calorie448 .macro-row small{font-size:inherit}#calorie448 .track{height:10px;border-radius:5px;background:#e5eaf1;overflow:hidden}#calorie448 .track>span{height:100%;display:block;min-width:0;border-radius:5px;background:#09094b}#calorie448 .carbs .track>span{background:#2db6ad}#calorie448 .fat .track>span{background:#f0ab3d}#calorie448 .macro-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}#calorie448 .macro-grid>div{border:1px solid var(--line);border-radius:4px;background:var(--soft);padding:9px 10px;color:var(--ink);display:flex;flex-direction:column;gap:1px}#calorie448 .macro-grid span{font-size:12px}#calorie448 .macro-grid strong{font-size:18px}#calorie448 .macro-grid small{font-size:11px;white-space:nowrap}#calorie448 .macro-panel>.hint{font-size:11px;margin-bottom:0}#calorie448 .macro-controls{padding:9px 12px;margin-bottom:10px;background:var(--soft);border:1px solid var(--line);border-radius:4px}#calorie448 .macro-controls label{display:block;font-size:12px}#calorie448 .macro-controls output{float:right;color:var(--ink);font-weight:bold}
#calorie448 .export-actions{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:17px 0 15px}#calorie448 .export-actions button{height:39px;font-weight:600;border-color:#7facff}#calorie448 .sr-only:empty{display:none}#calorie448 .sr-only:not(:empty){margin:-5px 0 12px;font-size:13px;color:var(--ink)}
#calorie448 .learning-grid,#calorie448 .knowledge-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px;align-items:start}#calorie448 .learning-grid{align-items:stretch}#calorie448 .energy-visual{display:flex;align-items:flex-start;gap:9px;color:var(--ink);margin-top:17px}#calorie448 .energy-combined{flex:2;min-width:0}#calorie448 .energy-track{display:flex;overflow:hidden;border-radius:4px;height:23px;margin-bottom:8px}#calorie448 .energy-track>span:first-child{background:#2878eb;border-right:1px solid white}#calorie448 .energy-track>span:last-child{background:#8abbff}#calorie448 .energy-labels{display:flex;gap:8px;text-align:center}#calorie448 .energy-labels>div{flex:1;min-width:0}#calorie448 .energy-labels strong,#calorie448 .energy-total strong{display:block;font-size:13px}#calorie448 .energy-labels span,#calorie448 .energy-total>span{display:block;font-size:12px;line-height:1.25}#calorie448 .equals{font-size:21px;line-height:23px}#calorie448 .energy-total{flex:1;text-align:center;min-width:0}#calorie448 .energy-total>div{height:23px;background:#33a56d;border-radius:4px;margin-bottom:8px}#calorie448 .energy-panel>.hint{margin:12px 0 0}#calorie448 .assumptions>p{font-size:14px;line-height:1.5;color:var(--ink);margin-bottom:0}#calorie448 .assumptions .assumption-notice{padding:8px 10px;background:var(--warm);border:1px solid var(--warm-line);border-radius:4px;margin-top:9px;font-size:12px;color:var(--ink)}#calorie448 .method-details{margin-top:8px;font-size:11px}#calorie448 .method-details summary{cursor:pointer;color:var(--muted)}#calorie448 .method-details p{font-size:12px}
#calorie448 .faq details{border:1px solid var(--line);border-radius:3px;margin:0 0 3px}#calorie448 .faq summary{padding:4px 10px;cursor:pointer;color:var(--ink);font-size:13px;line-height:1.35}#calorie448 .faq details p{padding:4px 10px 9px;margin:0;font-size:12px}#calorie448 .faq details:last-child{margin-bottom:0}#calorie448 .health-safety{background:var(--warm);border-color:var(--warm-line)}#calorie448 .health-safety p{font-size:13px;line-height:1.5;margin:10px 0 0}
#calorie448 .sources{margin-top:0;margin-bottom:15px;padding:12px 14px}#calorie448 .sources .panel-heading{margin-bottom:10px}#calorie448 .sources .panel-heading small{font-size:11px;color:var(--muted)}#calorie448 .source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}#calorie448 .source-grid>a{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:4px;padding:9px 10px;color:var(--ink);min-width:0}#calorie448 .source-logo{width:84px;min-width:84px;display:flex;align-items:center;justify-content:center}#calorie448 .source-logo img{width:84px;height:auto;max-height:54px;object-fit:contain}#calorie448 .source-grid strong{display:block;font-size:13px;line-height:1.2;margin-bottom:2px}#calorie448 .source-grid b{display:block;font-size:11px;font-weight:400;line-height:1.3;margin-bottom:4px}#calorie448 .source-grid small{display:block;font-size:10px;line-height:1.35;color:var(--muted)}#calorie448 .related h2{margin:0 0 10px}#calorie448 .related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}#calorie448 .related-grid>a{display:flex;align-items:center;min-width:0;gap:12px;border:1px solid var(--line);border-radius:5px;padding:10px 12px;color:var(--ink);min-height:106px}#calorie448 .related-grid .photo{width:118px;height:83px;flex:0 0 118px}#calorie448 .related-grid strong{display:block;font-size:14px;line-height:1.3;margin-bottom:5px}#calorie448 .related-grid small{display:block;font-size:12px;line-height:1.4;color:var(--text)}
html.st-master-dark #calorie448,html.dark #calorie448,html[data-theme=dark] #calorie448,body.dark #calorie448{--ink:#e5eeff;--text:#b8c9e5;--muted:#a2b6d4;--line:#3b5372;--paper:#12263e;--soft:#1b314d;--result:#143e32;--result-line:#356f58;--warm:#3a3022;--warm-line:#6b5935;--blue:#76b2ff}
html.st-master-dark #st334Content:has(#calorie448)>h1,html.dark #st334Content:has(#calorie448)>h1,html[data-theme=dark] #st334Content:has(#calorie448)>h1{color:#e5eeff}

html.st-master-dark #calorie448 .goal-card.selected,html.dark #calorie448 .goal-card.selected,html[data-theme=dark] #calorie448 .goal-card.selected,html.st-master-dark #calorie448 .advanced>summary,html.dark #calorie448 .advanced>summary,html[data-theme=dark] #calorie448 .advanced>summary{background:#1d3c5c;border-color:#76b2ff}
html.st-master-dark #calorie448 button.primary,html.dark #calorie448 button.primary,html[data-theme=dark] #calorie448 button.primary,html.st-master-dark #calorie448 .segmented button.selected,html.dark #calorie448 .segmented button.selected,html[data-theme=dark] #calorie448 .segmented button.selected{background:#0768ff;border-color:#0768ff;color:#fff}
html.st-master-dark #calorie448 .track,html.dark #calorie448 .track,html[data-theme=dark] #calorie448 .track{background:#314761}html.st-master-dark #calorie448 .protein .track>span,html.dark #calorie448 .protein .track>span,html[data-theme=dark] #calorie448 .protein .track>span{background:#adbbff}
html.st-master-dark #calorie448 .source-logo,html.dark #calorie448 .source-logo,html[data-theme=dark] #calorie448 .source-logo{background:#fff;padding:3px;border-radius:3px}
html.st-master-dark #calorie448 .error,html.dark #calorie448 .error,html[data-theme=dark] #calorie448 .error{background:#44282f;color:#ffd4d7;border-color:#96525f}
@media(max-width:1100px){#calorie448 .macro-visual{grid-template-columns:minmax(0,1fr) 115px;gap:8px}#calorie448 .macro-visual>.photo{height:110px}#calorie448 .metric-grid>div{padding:9px 8px}#calorie448 .metric-grid span{font-size:11px}#calorie448 .panel-heading h2{font-size:17px}#calorie448 .related-grid .photo{width:94px;flex-basis:94px}#calorie448 .source-logo{width:64px;min-width:64px}#calorie448 .macro-row>div:first-child{font-size:11px}}
@media(max-width:900px){#st334Content:has(#calorie448){width:calc(100% - 28px)}#calorie448 .studio-grid{grid-template-columns:1fr}#calorie448 .form-actions{padding-top:20px}#calorie448 .source-grid{grid-template-columns:1fr}#calorie448 .source-logo{width:86px;min-width:86px}#calorie448 .related-grid{grid-template-columns:1fr}#calorie448 .related-grid>a{min-height:102px}#calorie448 .related-grid .photo{width:118px;flex-basis:118px}#calorie448 .macro-visual{grid-template-columns:1fr 180px}#calorie448 .macro-visual>.photo{height:155px}#calorie448 .macro-row>div:first-child{font-size:13px}#calorie448 .metric-grid span{font-size:12px}}
@media(max-width:600px){#calorie448 .intro{font-size:15px}#calorie448 .goal-cards{gap:7px}#calorie448 .goal-card{height:132px;padding:6px 4px}#calorie448 .goal-card.selected{padding:5px 3px}#calorie448 .goal-card .photo{height:70px;width:100%}#calorie448 .goal-card strong{font-size:13px}#calorie448 .goal-card small{font-size:10px}#calorie448 .panel{padding:12px}#calorie448 .panel-heading{align-items:flex-start;gap:8px}#calorie448 h2{font-size:17px}#calorie448 .input-panel .panel-heading h2{max-width:180px;font-size:16px}#calorie448 .unit-switch button{padding:4px 6px;font-size:11px}#calorie448 .field-grid{gap:12px}#calorie448 .result-card{padding:15px 12px 12px}#calorie448 .target output{font-size:55px}#calorie448 .target>span{font-size:18px}#calorie448 .target-note{font-size:16px}#calorie448 .metric-grid{gap:6px}#calorie448 .metric-grid span{font-size:9px;white-space:normal}#calorie448 .metric-grid strong{font-size:20px}#calorie448 .metric-grid small{font-size:10px}#calorie448 .macro-visual{grid-template-columns:1fr 95px}#calorie448 .macro-visual>.photo{height:100px}#calorie448 .macro-row>div:first-child{font-size:10px;gap:3px}#calorie448 .macro-row{margin-bottom:12px}#calorie448 .macro-panel .panel-heading{align-items:center}#calorie448 .macro-panel .panel-heading h2{font-size:16px}#calorie448 .text-button{max-width:100px;font-size:10px;text-align:right}#calorie448 .macro-grid{gap:6px}#calorie448 .macro-grid>div{padding:8px 6px}#calorie448 .macro-grid span{font-size:10px}#calorie448 .macro-grid small{font-size:9px;white-space:normal}#calorie448 .learning-grid,#calorie448 .knowledge-grid{grid-template-columns:1fr}#calorie448 .export-actions{gap:9px}#calorie448 .export-actions button{font-size:13px}#calorie448 .sources .panel-heading{flex-direction:column;gap:5px}#calorie448 .form-actions button[type=reset]{min-width:85px}}
@media(prefers-reduced-motion:reduce){#calorie448 *{scroll-behavior:auto!important}}

/* W449: established ST sports/clinical reference component; no vertical accent or divider. */
#calorie448 .st-reference-notice{--ref-shield-paper:#f5faff;--ref-shield-inner:#e1efff;--ref-shield-layer:#cde4fb;display:grid;grid-template-columns:minmax(0,1fr) 140px;gap:12px;align-items:center;padding:9px 16px;min-height:90px;border:1px solid var(--line);border-radius:4px;background:linear-gradient(105deg,#f8fafc,#eff6ff);margin:9px 0 14px}
#calorie448 .st-reference-copy{min-width:0}
#calorie448 .st-reference-notice h2{font-size:16px;line-height:1.2;margin:0 0 3px;letter-spacing:-.2px}
#calorie448 .st-reference-notice p{font-size:12px;line-height:1.4;margin:0}
#calorie448 .st-reference-notice .reference-disclaimer{margin-top:1px}
#calorie448 .st-reference-link{display:inline-block;font-size:12px;margin-top:1px;line-height:1.3}
#calorie448 .st-reference-seal{align-self:stretch;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--ink);padding-left:12px}
#calorie448 .st-reference-shield{display:block;width:40px;height:44px;flex:none;margin:0 0 3px}
#calorie448 .st-reference-seal b{font-size:8px;line-height:1.4;letter-spacing:.15px}
#calorie448 .st-reference-seal small{display:block;font-size:8px;line-height:1.5;margin-top:0;color:var(--muted)}
#calorie448 .form-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
#calorie448 .form-actions button[type=reset],#calorie448 .form-actions button.primary{min-width:0;width:100%}
html:is(.st-master-dark,.st-home-dark,.dark,[data-theme=dark]) #calorie448 .st-reference-notice{--ref-shield-paper:#17334f;--ref-shield-inner:#234b70;--ref-shield-layer:#305b81;background:linear-gradient(105deg,#142a41,#193652)}
@media(max-width:820px){#calorie448 .st-reference-notice{grid-template-columns:minmax(0,1fr) 125px;padding:12px;gap:10px}#calorie448 .st-reference-seal{padding-left:0}}
@media(max-width:540px){#calorie448 .st-reference-notice{grid-template-columns:minmax(0,1fr) 94px;gap:9px;padding:12px}#calorie448 .st-reference-notice h2{font-size:14px}#calorie448 .st-reference-notice p{font-size:11px}#calorie448 .st-reference-notice .reference-disclaimer{font-size:10px}#calorie448 .st-reference-shield{width:40px;height:44px}#calorie448 .st-reference-seal b,#calorie448 .st-reference-seal small{font-size:8px}#calorie448 .st-reference-link{font-size:11px}#calorie448 .photo>img.watermark{width:78px;right:4px;bottom:6px}}
