.metrics-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 18px 32px;
}

.metrics-header {
    margin-bottom: 14px;
}

.metrics-title {
    font-size: 2.4rem;
    margin: 0 0 10px;
}

.metrics-preamble {
    font-size: 1rem;
    line-height: 1.6;
    color: inherit;
    margin: 0 0 6px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 12px 0 8px;
}

.stat-card {
    background: var(--card-bg, #0f111a);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .stat-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 24px -20px rgba(0, 0, 0, 0.38);
}

.stat-card h3 {
    font-size: 1rem;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-card .stat-meta {
    color: #8a8f9d;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.stat-card .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.stat-card svg {
    width: 100%;
    height: 180px;
}

.stat-card .beeminder-goal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .stat-card .beeminder-goal {
    background: rgba(0, 0, 0, 0.02);
}

.stat-card .beeminder-goal strong {
    font-size: 0.95rem;
}

.stat-card .beeminder-goal small {
    color: #777;
}

.stat-card .beeminder-goal a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.stat-card .pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.8rem;
    color: #555;
}

[data-theme="light"] .stat-card .pill {
    background: rgba(0, 0, 0, 0.06);
}

.stat-card .chart-empty {
    color: #888;
    font-size: 0.9rem;
    text-align: center;
    padding: 30px 0;
}

.stats-intro {
    margin-bottom: 18px;
}
