.bmi-page .bmi-hero { align-items: center; }
.bmi-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.bmi-card { min-width: 0; }
.bmi-input-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 15px; }
.bmi-page .field label { display: block; margin-bottom: 6px; font-weight: 700; }
.bmi-page .input-with-unit { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.bmi-page .input-with-unit:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12); }
.bmi-page .input-with-unit input { width: 100%; min-width: 0; padding: 12px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; }
.bmi-page .input-with-unit span { padding: 0 11px; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.bmi-page .field small { display: block; margin-top: 6px; color: var(--muted); font-size: .78rem; }
.bmi-form-message { min-height: 1.6em; margin: 7px 0; color: #b42318; }
.bmi-submit { width: 100%; }
.bmi-result { display: none; margin-top: 24px; padding-top: 23px; border-top: 1px solid var(--border); }
.bmi-result.show { display: block; }
.result-score { display: flex; align-items: baseline; gap: 7px; color: var(--primary-dark); }
.result-score span { font-size: clamp(2.35rem, 6vw, 3.6rem); font-weight: 900; line-height: 1; }
.result-score small { color: var(--muted); font-size: 1rem; }
.bmi-category { display: inline-block; margin: 13px 0 7px; padding: 6px 12px; border-radius: 999px; font-weight: 800; }
.bmi-category-under { background: #e0f2fe; color: #075985; }
.bmi-category-healthy { background: #dcfce7; color: #166534; }
.bmi-category-over { background: #fef3c7; color: #92400e; }
.bmi-category-obese { background: #fee2e2; color: #991b1b; }
.bmi-description { max-width: 58ch; margin: 0; color: var(--muted); line-height: 1.8; }
.bmi-range { margin-top: 20px; }
.bmi-range-track { position: relative; height: 13px; border-radius: 999px; background: linear-gradient(90deg, #38bdf8 0 24%, #4ade80 24% 43%, #facc15 43% 57%, #f87171 57% 100%); }
.bmi-range-marker { position: absolute; top: 50%; width: 19px; height: 19px; border: 3px solid #fff; border-radius: 50%; background: var(--text); box-shadow: 0 1px 5px rgba(15, 23, 42, .3); transform: translate(50%, -50%); transition: right .35s ease; }
.bmi-range-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 9px; color: var(--muted); font-size: .73rem; line-height: 1.45; text-align: center; }
.bmi-range-labels b { color: var(--text); font-weight: 700; }
.bmi-breakdown { margin-top: 18px; padding: 14px; border-radius: 11px; background: var(--bg); }
.bmi-breakdown h3 { margin: 0 0 7px; font-size: 1rem; }
.bmi-breakdown p { margin: 0; color: var(--muted); line-height: 1.8; }
.bmi-steps { display: grid; gap: 14px; margin: 0; padding: 0 20px 0 0; }
.bmi-steps li { padding-right: 4px; color: var(--muted); }
.bmi-steps strong, .bmi-steps span { display: block; }
.bmi-steps strong { color: var(--text); }
.bmi-steps span { margin-top: 3px; line-height: 1.6; }
.bmi-content-figure { margin: 28px auto 0; max-width: 800px; padding: 12px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(145deg, #e4f8f4, #fff8e7); }
.bmi-content-figure img { display: block; width: 100%; height: auto; }
.bmi-content-figure figcaption { padding: 8px 4px 0; color: var(--muted); font-size: .86rem; text-align: center; }
.bmi-content .formula-box { margin: 16px 0; padding: 14px 16px; border-right: 4px solid var(--primary); border-radius: 8px; background: var(--bg); line-height: 2; }
.bmi-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 24px; }
.bmi-category-card { padding: 15px; border: 1px solid var(--border); border-top: 4px solid currentColor; border-radius: 12px; background: #fff; }
.bmi-category-card strong, .bmi-category-card span { display: block; }
.bmi-category-card strong { font-size: 1.04rem; }
.bmi-category-card span { margin-top: 4px; font-weight: 800; }
.bmi-category-card p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.bmi-under { color: #0284c7; }
.bmi-healthy { color: #16a34a; }
.bmi-over { color: #ca8a04; }
.bmi-obese { color: #dc2626; }
.bmi-content .faq-item { margin: 9px 0; }
@media (max-width: 820px) { .bmi-layout { grid-template-columns: 1fr; } .bmi-layout .calc-aside { order: 2; } }
@media (max-width: 560px) { .bmi-input-grid, .bmi-category-grid { grid-template-columns: 1fr; } .bmi-range-labels { font-size: .68rem; } }
