body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    color: #0f172a;
}

.page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 18px 48px;
    background: rgba(255, 255, 255, 0.95);
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    color: #020617;
}

.page-header h1 {
    margin: 0;
    font-size: 2.2rem;
}

.page-subtitle {
    margin: 6px 0 0;
    font-size: 1rem;
    color: #475569;
}

.page-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #475569;
    font-size: 0.95rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #38bdf8;
    color: #0369a1;
    text-decoration: none;
    background: rgba(56, 189, 248, 0.15);
    font-weight: 600;
}

.back-link:hover {
    background: rgba(56, 189, 248, 0.25);
}

.generated-at {
    font-size: 0.85rem;
}

section {
    margin-top: 28px;
}

h2 {
    margin: 0 0 14px;
    font-size: 1.5rem;
    color: #0f172a;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.summary-card {
    border-radius: 16px;
    padding: 16px;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.summary-card .label {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.85;
}

.summary-card .value {
    font-size: 1.8rem;
    font-weight: 700;
}

.summary-card .note {
    font-size: 0.85rem;
    opacity: 0.9;
}

.summary-card.blue {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
}

.summary-card.green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.summary-card.purple {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
}

.summary-card.orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.summary-card.yellow {
    background: linear-gradient(135deg, #facc15, #f59e0b);
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.chart-card {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.28);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chart-card.full-width {
    width: 100%;
    padding: 18px;
    box-sizing: border-box;
}

.chart-card header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.chart-card canvas {
    width: 100% !important;
    max-height: 520px;
}

.chart-card.full-width canvas {
    max-height: 680px;
}

.chart-empty {
    padding: 32px 12px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.95rem;
}

.dot {
    display: inline-flex;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-blue {
    background: #38bdf8;
}

.dot-green {
    background: #22c55e;
}

.dot-purple {
    background: #a855f7;
}

.dot-orange {
    background: #f97316;
}

.dot-yellow {
    background: #facc15;
}

.dot-cyan {
    background: #06b6d4;
}

.highlight-list {
    display: grid;
    gap: 14px;
}

.highlight-card {
    border-radius: 14px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(59, 130, 246, 0.12));
    border: 1px solid rgba(14, 116, 144, 0.15);
    color: #0f172a;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.highlight-card .title {
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.loading-card {
    border-radius: 12px;
    padding: 16px;
    background: rgba(148, 163, 184, 0.15);
    color: #475569;
    text-align: center;
}

@media (max-width: 720px) {
    .page {
        padding: 20px 14px 32px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .chart-card canvas {
        max-height: 220px;
    }

    .chart-card.full-width canvas {
        max-height: 280px;
    }
}
