.msm-wrapper {
    width: 100%;
    max-width: 1100px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}

.msm-header {
    padding: 28px 36px 8px;
    border-bottom: 1px solid #f0f0f0;
}

.msm-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.3px;
    margin: 0;
}

.msm-header p {
    font-size: 13px;
    color: #888;
    margin: 4px 0 0;
}

#msm-chartdiv {
    width: 100%;
}

.msm-loading,
.msm-error {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.msm-loading {
    color: #999;
}

.msm-error {
    color: #e05555;
}

.msm-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px;
    padding: 20px 36px 24px;
    border-top: 1px solid #f0f0f0;
    justify-content: center;
}

.msm-legend-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s;
}

.msm-legend-item.hidden {
    opacity: 0.35;
}

.msm-legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 2px;
}

.msm-legend-label {
    line-height: 1.3;
}

.msm-legend-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

.msm-legend-sub {
    font-size: 11.5px;
    color: #999;
}

@media (max-width: 468px) {
    .msm-legend {
        padding: 20px 20px 24px;
        justify-content: flex-start;
    }

    #msm-chartdiv {
        height: 320px !important;
    }
}
