.chart-card {
    min-height: 520px;
}

.chart-wrap {
    position: relative;
    width: 100%;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background:
        radial-gradient(circle at 18% 12%, rgba(110, 231, 249, 0.08), transparent 20rem),
        linear-gradient(180deg, rgba(5, 10, 20, 0.76), rgba(8, 13, 24, 0.94));
}

.chart-wrap canvas {
    display: block;
    width: 100%;
    height: 430px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.chart-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.56);
    font-size: 0.85rem;
    font-weight: 800;
}

.chart-legend__swatch {
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
}

.chart-status {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

@media (max-width: 760px) {
    .chart-wrap {
        min-height: 330px;
    }

    .chart-wrap canvas {
        height: 330px;
    }
}
