.mcc {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid color-mix(in srgb, var(--bs-secondary) 16%, white);
    background:
        radial-gradient(
            circle at top right,
            color-mix(in srgb, var(--bs-primary) 6%, white),
            transparent 28%
        ),
        linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
    padding: 1.1rem 1.1rem 1rem;
    box-shadow:
        0 16px 34px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.mcc::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--bs-primary) 75%, white),
        color-mix(in srgb, var(--bs-secondary) 45%, white),
        transparent
    );
    opacity: 0.95;
}

.mcc__header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}

.mcc__meta {
    min-width: 0;
}

.mcc__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1f2a3d;
    letter-spacing: -0.015em;
}

.mcc__subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #7a8699;
}

.mcc__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mcc__chart {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: 1rem;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--bs-primary) 4%, white),
        transparent 70%
    );
    border: 1px solid color-mix(in srgb, var(--bs-secondary) 10%, white);
    padding: 0.45rem;
}

.mcc__chart--sm {
    min-height: 240px;
}
.mcc__chart--md {
    min-height: 300px;
}
.mcc__chart--lg {
    min-height: 360px;
}
.mcc__chart--xl {
    min-height: 430px;
}

[data-bs-theme="dark"] .mcc {
    background:
        radial-gradient(
            circle at top right,
            color-mix(in srgb, var(--bs-primary) 10%, #1f2637),
            transparent 30%
        ),
        linear-gradient(180deg, #1f2637 0%, #1c2535 100%);
    border-color: #344054;
    box-shadow: none;
}

[data-bs-theme="dark"] .mcc__title {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .mcc__subtitle {
    color: #98a2b3;
}

[data-bs-theme="dark"] .mcc__chart {
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--bs-primary) 6%, #1f2637),
        transparent 70%
    );
    border-color: #344054;
}
