* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: aliceblue;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px 20px;
    text-align: center;
}

h2 {
    font-size: 1.3rem;
    color: #3F51B5;
    margin-bottom: 12px;
}

.toggle-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.toggle-btn {
    padding: 8px 18px;
    border: 2px solid #3F51B5;
    background: white;
    color: #3F51B5;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.toggle-btn:hover {
    background: #e8eaf6;
}

.toggle-btn.active {
    background: #3F51B5;
    color: white;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    max-height: 380px;
    margin: 0 auto;
}

.chart-wrapper canvas {
    width: 100% !important;
    max-height: 380px;
}

.qc-summary {
    margin-top: 12px;
    padding: 10px 16px;
    background: #fff3e0;
    border-left: 4px solid #FF7043;
    border-radius: 4px;
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.5;
}

.qc-summary strong {
    color: #e64a19;
}

.tooltip-info {
    margin-top: 10px;
    padding: 10px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    text-align: left;
    min-height: 40px;
    line-height: 1.5;
    display: none;
}

@media (max-width: 600px) {
    .container {
        padding: 10px 12px;
    }

    h2 {
        font-size: 1.1rem;
    }

    .toggle-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}
