.market-health-chart {
    min-height: 280px;
}

.market-health-gauge {
    width: 100%;
    height: 276px;
    min-height: 276px;
}

.market-health-direction-card {
    overflow: hidden;
}

.market-health-gauge-shell {
    width: 100%;
}

.market-health-direction-card .market-health-split-visual,
.market-health-direction-card .market-health-gauge-shell {
    min-height: 300px;
}

.market-health-direction-card .market-health-gauge {
    height: 100%;
    min-height: 300px;
}

.market-health-split-visual {
    display: flex;
    align-items: stretch;
}

.market-health-direction-card .market-health-gauge-shell {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.market-health-split-visual > .market-health-chart,
.market-health-gauge-shell {
    flex: 1 1 auto;
}

.market-health-split-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.market-health-direction-card [data-bs-toggle="tooltip"],
.card-custom [data-bs-toggle="tooltip"] {
    cursor: help;
}

.market-health-heatmap {
    min-height: 360px;
}

.market-health-summary {
    color: var(--text-main);
    line-height: 1.75;
}

.market-health-conclusion-cards {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 4px;
}

.market-health-conclusion-card {
    background-color: var(--bg-block);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    min-width: 0;
    padding: 10px 12px;
}

.market-health-conclusion-label,
.market-health-conclusion-meta {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.market-health-conclusion-main {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-health-conclusion-score,
.market-health-conclusion-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 2px;
}

.market-health-conclusion-score {
    color: var(--text-main);
}

.market-health-helper-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.65;
    text-align: right;
}

.market-health-helper-card {
    display: flex;
    flex-direction: column;
}

.market-health-helper-card > .market-health-helper-text {
    align-self: flex-end;
    margin-top: auto !important;
}

.market-health-axis-panel > .market-health-helper-text {
    align-self: flex-end;
    margin-top: auto !important;
}

.market-health-reason-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.market-health-reason {
    align-items: flex-start;
    background-color: var(--bg-block);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    padding: 10px 12px;
}

.market-health-reason strong {
    margin-right: 0.4rem;
}

.market-health-axis-panel {
    min-height: 280px;
}

.market-health-axis-card .market-health-radar-chart {
    min-height: 380px;
}

.market-health-axis-card .market-health-axis-panel {
    justify-content: stretch;
    min-height: 380px;
}

.market-health-axis-card .market-health-helper-text {
    align-self: flex-end;
    margin-top: auto !important;
}

.market-health-axis-content {
    margin-bottom: auto;
    margin-top: auto;
    width: 100%;
}

.market-health-axis-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.market-health-axis-list .health-item {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(78px, max-content) minmax(190px, 1fr);
    margin-bottom: 0;
}

.market-health-axis-list .health-item > span {
    min-width: 0;
}

.market-health-axis-list .dash-group {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(5, minmax(18px, 1fr)) minmax(40px, auto);
    justify-self: stretch;
    width: 100%;
}

.market-health-axis-list .dash {
    min-width: 0;
}

.market-health-axis-list .health-score {
    color: var(--text-main);
    font-weight: 800;
    margin-left: 4px;
    text-align: right;
}

.market-health-drivers-card .card-label {
    font-size: 1rem;
}

.market-health-score-display {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    line-height: 1;
}

.market-health-detail-title {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.market-health-detail-title .bi {
    font-size: 0.95rem;
}

@media (min-width: 1200px) {
    .market-health-split-visual {
        border-right: 1px solid var(--border-color);
    }
}

@media (min-width: 992px) {
    .market-health-direction-card .market-health-split-visual {
        border-right: 1px solid var(--border-color);
    }
}

@media (max-width: 575.98px) {
    .market-health-chart,
    .market-health-gauge {
        min-height: 240px;
    }

    .market-health-direction-card .market-health-split-visual,
    .market-health-direction-card .market-health-gauge-shell,
    .market-health-direction-card .market-health-gauge {
        min-height: 240px;
    }

    .market-health-conclusion-cards {
        grid-template-columns: 1fr;
    }

    .market-health-axis-list .health-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .market-health-heatmap {
        min-height: 420px;
    }
}
