body {
    background: aliceblue;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 16px;
}

h1 {
    text-align: center;
    font-size: 1.3rem;
    color: #333;
    margin: 4px 0 2px 0;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    max-height: 420px;
}

canvas {
    width: 100% !important;
    max-height: 420px;
}

.legend-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    font-size: 0.78rem;
    color: #555;
    margin-top: 4px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
}
