body {
    background: #f6f7f9;
}

.card {
    border-radius: .6rem;
}

.card-header {
    background: #fff;
    font-weight: 600;
}

.stat-card .valeur {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.1;
}

.stat-card .libelle {
    color: #6c757d;
    font-size: .85rem;
}

.email-preview {
    white-space: pre-wrap;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    padding: .9rem 1rem;
    font-size: .93rem;
}

.thread-entrant {
    border-left: 4px solid #0dcaf0;
}

.thread-sortant {
    border-left: 4px solid #6c757d;
}

.table td, .table th {
    vertical-align: middle;
}

.text-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .85rem;
}

.score-pill {
    display: inline-block;
    min-width: 2.6rem;
    text-align: center;
    border-radius: 1rem;
    padding: .1rem .5rem;
    font-weight: 600;
    color: #fff;
}

.score-haut { background: #198754; }
.score-moyen { background: #fd7e14; }
.score-bas { background: #6c757d; }

.criteres-badges .badge {
    font-weight: 500;
    margin: 0 .2rem .2rem 0;
}
