.ytb-bmi-header {
    background: #EF4444;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    padding: 16px 20px;
    border-radius: 8px 8px 0 0;
}
.ytb-bmi-header-sub {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255,255,255,.9);
    margin-top: 4px;
}

.ytb-bmi-card {
    background: #fff;
    border: 1px solid #E0E0E0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    margin-bottom: 8px;
}

.ytb-bmi-row-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.ytb-bmi-unit-toggle,
.ytb-bmi-region-toggle {
    flex: 1;
    display: flex;
    gap: 6px;
    min-width: 220px;
}
.ytb-bmi-unit-btn,
.ytb-bmi-region-btn {
    flex: 1;
    padding: 10px 8px;
    border: 1.5px solid #E0E0E0;
    background: #FAFAFA;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #616161;
    cursor: pointer;
}
.ytb-bmi-unit-btn.is-active {
    border-color: #EF4444;
    background: #FEF2F2;
    color: #EF4444;
}
.ytb-bmi-region-btn.is-active {
    border-color: #7C3AED;
    background: #F5F3FF;
    color: #7C3AED;
}

.ytb-bmi-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}
.ytb-bmi-field label {
    display: block;
    font-size: 13px;
    color: #424242;
    margin-bottom: 6px;
}
.ytb-bmi-field input,
.ytb-bmi-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #CFD8DC;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
}

.ytb-bmi-hint {
    font-size: 12.5px;
    color: #9E9E9E;
    margin: -6px 0 14px;
}

.ytb-bmi-btn {
    width: 100%;
    background: #EF4444;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
}
.ytb-bmi-btn:hover { background: #DC2626; }

.ytb-bmi-result {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #EEE;
}
.ytb-bmi-result-value {
    text-align: center;
    margin-bottom: 16px;
}
#ytb-bmi-number {
    font-size: 40px;
    font-weight: 800;
    color: #212121;
}
.ytb-bmi-category-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    vertical-align: middle;
}

.ytb-bmi-bar {
    position: relative;
    display: flex;
    height: 32px;
    border-radius: 6px;
    overflow: visible;
    margin-bottom: 10px;
}
.ytb-bmi-bar-segment {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 700;
    color: #fff;
}
.ytb-bmi-under { background: #60A5FA; border-radius: 6px 0 0 6px; }
.ytb-bmi-normal { background: #34D399; }
.ytb-bmi-over { background: #FBBF24; }
.ytb-bmi-obese { background: #F87171; border-radius: 0 6px 6px 0; }

.ytb-bmi-marker {
    position: absolute;
    top: -8px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid #212121;
    transform: translateX(-50%);
    transition: left 0.3s ease;
}

.ytb-bmi-note {
    text-align: center;
    font-size: 13.5px;
    color: #616161;
    margin: 8px 0 20px;
}

.ytb-bmi-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.ytb-bmi-stat-card {
    background: #FAFAFA;
    border: 1px solid #ECECEC;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}
.ytb-bmi-stat-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #9E9E9E;
    margin-bottom: 6px;
}
.ytb-bmi-stat-value {
    font-size: 19px;
    font-weight: 800;
    color: #212121;
}
.ytb-bmi-stat-sub {
    font-size: 11px;
    color: #9E9E9E;
    margin-top: 4px;
}

@media (max-width: 480px) {
    .ytb-bmi-fields { grid-template-columns: 1fr; }
    .ytb-bmi-row-toggles { flex-direction: column; }
    .ytb-bmi-bar-segment { font-size: 9px; }
}
