.model-result-panel,.model-result-panel .result-content{min-width:0;overflow:hidden}
.model-result-panel .result-content{width:100%}
.model-result-panel .result-number{display:block;width:100%;max-width:100%;margin-top:4px;line-height:.98;letter-spacing:-.045em;white-space:nowrap;overflow:visible;word-break:normal}
.model-result-panel .result-number.result-wrap{white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.result-label{display:inline-flex;align-items:center;margin-top:10px;padding:7px 11px;border:1px solid rgba(244,189,70,.25);border-radius:999px;background:linear-gradient(90deg,rgba(244,189,70,.14),rgba(255,143,87,.07));color:#fff2c6;font-size:16px;font-weight:800;line-height:1.3}
.result-sentence{margin-top:13px;padding-left:12px;border-left:2px solid rgba(86,184,255,.55);color:#b8c0ca;line-height:1.65}
.result-note{margin-top:16px;padding:13px 14px;border:1px solid rgba(244,189,70,.18);border-left:3px solid #f4bd46;border-radius:10px;background:linear-gradient(100deg,rgba(244,189,70,.09),rgba(86,184,255,.045) 58%,rgba(172,120,255,.045));color:#aeb4bc;font-size:12px;line-height:1.55}
.source-list{display:grid;gap:10px;margin-top:12px}
.source-list a{display:block;padding:13px;border:1px solid rgba(255,255,255,.09);border-radius:10px;color:#dfe2e6}
.source-list a:hover{border-color:rgba(244,189,70,.35);color:#f4bd46}
.metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}
.metric-card{--metric-accent:#56b8ff;position:relative;min-width:0;padding:13px 12px 12px 15px;border:1px solid color-mix(in srgb,var(--metric-accent) 26%,transparent);border-radius:10px;background:linear-gradient(145deg,color-mix(in srgb,var(--metric-accent) 12%,transparent),rgba(0,0,0,.12));overflow:hidden}
.metric-card::before{content:"";position:absolute!important;inset:0 auto 0 0!important;width:3px!important;background:var(--metric-accent)!important;box-shadow:0 0 14px color-mix(in srgb,var(--metric-accent) 48%,transparent)}
.metric-card.cyan{--metric-accent:#56b8ff}.metric-card.purple{--metric-accent:#ac78ff}.metric-card.green{--metric-accent:#64d39b}.metric-card.orange{--metric-accent:#ffac5f}
.metric-card span{display:block;color:var(--metric-accent)!important;font-size:11px!important;font-weight:850;line-height:1.3;text-transform:uppercase;letter-spacing:.055em}
.metric-card strong{display:block;margin-top:6px;color:#f5f7fa;font-size:15px!important;line-height:1.4;overflow-wrap:anywhere}
.result-actions .result-action-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.result-actions .result-action-btn svg{width:15px;height:15px;flex:0 0 auto}
html[data-theme="light"] .metric-card{background:linear-gradient(145deg,color-mix(in srgb,var(--metric-accent) 15%,white),rgba(255,255,255,.9));border-color:color-mix(in srgb,var(--metric-accent) 34%,#dfe6ee)}
html[data-theme="light"] .metric-card strong{color:#17212d}
html[data-theme="light"] .result-label{color:#473000;border-color:rgba(183,121,8,.26);background:linear-gradient(90deg,rgba(255,226,142,.75),rgba(255,193,148,.38))}
html[data-theme="light"] .result-sentence{color:#4f5d6d;border-left-color:rgba(49,116,180,.46)}
@media(max-width:560px){.metric-grid{grid-template-columns:1fr}.model-result-panel .result-number{font-size:clamp(34px,11vw,52px)}}

/* Keep native select menus readable in both themes, including the opened list. */
select{color-scheme:dark}
select option{background:#080a0d;color:#f3f5f7}
select option:checked{background:#d9ab39;color:#090a0c}
html[data-theme="light"] select{color-scheme:light}
html[data-theme="light"] select option{background:#fff;color:#17212d}
html[data-theme="light"] select option:checked{background:#efd078;color:#2d2105}

/* Exact compact footer proportions used by the supplied BMI Calculator model. */
.bmi-model-footer{margin-top:42px;border-top:1px solid rgba(255,255,255,.11);background:rgba(5,7,10,.72)}
.bmi-model-footer .footer-grid{display:grid;grid-template-columns:1.28fr .8fr .95fr .8fr 1fr;gap:30px;padding:34px 0 31px}
.bmi-model-footer .footer-brand .brand-logo{width:250px;height:auto}
.bmi-model-footer .footer-brand p{max-width:260px;margin:13px 0 17px;color:#969ba3;font-size:12.5px;line-height:1.6}
.bmi-model-footer h2{margin:0 0 13px;color:#f0f1f3;font-family:Georgia,"Times New Roman",serif;font-size:15px;line-height:1.2;text-transform:none;letter-spacing:0}
.bmi-model-footer .footer-links{list-style:none;margin:0;padding:0;display:grid;gap:7px;color:#a4a8af;font-size:12.5px}
.bmi-model-footer .footer-links a{color:#a4a8af;font-size:12.5px}
.bmi-model-footer .footer-links a:hover{color:var(--gold)}
.bmi-model-footer .contact-line{display:flex;align-items:flex-start;gap:9px;color:#a4a8af;font-size:12.5px;margin-bottom:9px;line-height:1.45}
.bmi-model-footer .contact-line svg{color:var(--gold);margin-top:2px;flex:0 0 auto}
.bmi-model-footer .copyright{border-top:1px solid rgba(255,255,255,.08);min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:#747a83;font-size:11.5px}
html[data-theme="light"] .bmi-model-footer{background:rgba(255,255,255,.78);border-color:rgba(38,55,76,.14)}
html[data-theme="light"] .bmi-model-footer h2{color:#182431}
html[data-theme="light"] .bmi-model-footer .footer-brand p,html[data-theme="light"] .bmi-model-footer .footer-links,html[data-theme="light"] .bmi-model-footer .footer-links a,html[data-theme="light"] .bmi-model-footer .contact-line{color:#596676}
html[data-theme="light"] .bmi-model-footer .copyright{color:#6f7b89;border-color:rgba(38,55,76,.12)}
@media(max-width:1050px){.bmi-model-footer .footer-grid{grid-template-columns:1.35fr repeat(2,1fr)}}
@media(max-width:720px){.bmi-model-footer .footer-grid{grid-template-columns:1fr 1fr}.bmi-model-footer .footer-brand{grid-column:1/-1}.bmi-model-footer .footer-brand .brand-logo{width:225px}.bmi-model-footer .copyright{align-items:flex-start;flex-direction:column;padding:15px 0}}
@media(max-width:470px){.bmi-model-footer .footer-brand .brand-logo{width:205px}.bmi-model-footer .footer-grid{grid-template-columns:1fr}}
