/*
 * Design system Bee-Cases — espace client.
 *
 * Thème clair, charte conservée : le rouge #C4241C reste la couleur de marque, posé sur des
 * neutres légèrement chauds plutôt que sur le dégradé sombre de l'ancien Frontoffice.
 * Tout passe par des variables : aucune couleur en dur dans les composants.
 */

:root {
    /* Marque */
    --bc-accent: #C4241C;
    --bc-accent-hover: #A81D16;
    --bc-accent-active: #8E1913;
    --bc-accent-wash: #FBEDEC;
    --bc-accent-border: #F0C9C6;

    /* Neutres, légèrement biaisés vers le rouge de la marque */
    --bc-ground: #F6F4F3;
    --bc-surface: #FFFFFF;
    --bc-surface-sub: #F1EDEC;
    --bc-ink: #1A1617;
    --bc-ink-soft: #453C3D;
    --bc-muted: #736869;
    --bc-line: #E4DEDD;
    --bc-line-strong: #CFC5C4;

    /* Sémantique — distincte de la couleur de marque */
    --bc-ok: #1F7A4D;
    --bc-ok-wash: #E8F4ED;
    --bc-warn: #8F6207;
    --bc-warn-wash: #FBF2E0;
    --bc-info: #1C5E8F;
    --bc-info-wash: #E7F0F7;

    /* Typographie */
    --bc-font: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --bc-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    /* Trame */
    --bc-radius: 6px;
    --bc-radius-sm: 4px;
    --bc-gap: 16px;
    --bc-shadow: 0 1px 2px rgba(26, 22, 23, .06), 0 1px 3px rgba(26, 22, 23, .04);
    --bc-shadow-raised: 0 4px 12px rgba(26, 22, 23, .10);

    --bc-sidebar-width: 232px;
    --bc-topbar-height: 56px;

    color-scheme: light;
}

/* ── Base ─────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    background: var(--bc-ground);
    color: var(--bc-ink);
    font-family: var(--bc-font);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 700;
    line-height: 1.25;
    text-wrap: balance;
    letter-spacing: -.012em;
}

h1 {
    font-size: 25px;
}

h2 {
    font-size: 21px;
}

h3 {
    font-size: 17px;
}

h4 {
    font-size: 15px;
}

p {
    margin: 0;
}

a {
    color: var(--bc-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

:focus-visible {
    outline: 2px solid var(--bc-accent);
    outline-offset: 2px;
}

code,
.bc-mono {
    font-family: var(--bc-font-mono);
    font-size: .88em;
}

/* ── Boutons ──────────────────────────────────────────────────────────── */

.bc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1px solid transparent;
    border-radius: var(--bc-radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}

.bc-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.bc-btn-primary {
    background: var(--bc-accent);
    border-color: var(--bc-accent);
    color: #FFFFFF;
}

.bc-btn-primary:hover:not(:disabled) {
    background: var(--bc-accent-hover);
    border-color: var(--bc-accent-hover);
}

.bc-btn-primary:active:not(:disabled) {
    background: var(--bc-accent-active);
    border-color: var(--bc-accent-active);
}

.bc-btn-secondary {
    background: var(--bc-surface);
    border-color: var(--bc-line-strong);
    color: var(--bc-ink);
}

.bc-btn-secondary:hover:not(:disabled) {
    background: var(--bc-surface-sub);
    border-color: var(--bc-muted);
}

.bc-btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--bc-ink-soft);
}

.bc-btn-ghost:hover:not(:disabled) {
    background: var(--bc-surface-sub);
    color: var(--bc-ink);
}

.bc-btn-danger {
    background: var(--bc-surface);
    border-color: var(--bc-accent-border);
    color: var(--bc-accent);
}

.bc-btn-danger:hover:not(:disabled) {
    background: var(--bc-accent-wash);
    border-color: var(--bc-accent);
}

.bc-btn-sm {
    padding: 4px 9px;
    font-size: 13px;
}

/* ── Champs ───────────────────────────────────────────────────────────── */

.bc-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bc-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--bc-ink-soft);
}

.bc-input,
.bc-select,
.bc-textarea {
    width: 100%;
    padding: 7px 11px;
    border: 1px solid var(--bc-line-strong);
    border-radius: var(--bc-radius-sm);
    background: var(--bc-surface);
    color: var(--bc-ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.bc-input:focus,
.bc-select:focus,
.bc-textarea:focus {
    outline: none;
    border-color: var(--bc-accent);
    box-shadow: 0 0 0 3px var(--bc-accent-wash);
}

.bc-input::placeholder {
    color: var(--bc-muted);
}

.bc-hint {
    font-size: 12.5px;
    color: var(--bc-muted);
}

/* ── Surfaces ─────────────────────────────────────────────────────────── */

.bc-panel {
    background: var(--bc-surface);
    border: 1px solid var(--bc-line);
    border-radius: var(--bc-radius);
    box-shadow: var(--bc-shadow);
}

.bc-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-bottom: 1px solid var(--bc-line);
}

.bc-panel-body {
    padding: 18px;
}

/* ── Tableaux ─────────────────────────────────────────────────────────── */

.bc-table-scroll {
    overflow-x: auto;
}

.bc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bc-table th {
    text-align: left;
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--bc-muted);
    border-bottom: 1px solid var(--bc-line-strong);
    white-space: nowrap;
}

.bc-table td {
    padding: 11px 18px;
    border-bottom: 1px solid var(--bc-line);
    vertical-align: middle;
}

.bc-table tbody tr:last-child td {
    border-bottom: 0;
}

.bc-table tbody tr:hover td {
    background: var(--bc-surface-sub);
}

.bc-num {
    font-variant-numeric: tabular-nums;
}

/* ── Pastilles d'état ─────────────────────────────────────────────────── */

.bc-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
}

.bc-chip-neutral {
    background: var(--bc-surface-sub);
    border-color: var(--bc-line-strong);
    color: var(--bc-ink-soft);
}

.bc-chip-ok {
    background: var(--bc-ok-wash);
    border-color: var(--bc-ok);
    color: var(--bc-ok);
}

.bc-chip-warn {
    background: var(--bc-warn-wash);
    border-color: var(--bc-warn);
    color: var(--bc-warn);
}

.bc-chip-info {
    background: var(--bc-info-wash);
    border-color: var(--bc-info);
    color: var(--bc-info);
}

.bc-chip-accent {
    background: var(--bc-accent-wash);
    border-color: var(--bc-accent-border);
    color: var(--bc-accent-active);
}

/* ── Mise en page applicative ─────────────────────────────────────────── */

.bc-shell {
    display: grid;
    grid-template-columns: var(--bc-sidebar-width) 1fr;
    min-height: 100vh;
}

.bc-sidebar {
    display: flex;
    flex-direction: column;
    background: var(--bc-surface);
    border-right: 1px solid var(--bc-line);
}

.bc-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--bc-topbar-height);
    padding: 0 18px;
    border-bottom: 1px solid var(--bc-line);
}

.bc-brand img {
    display: block;
    height: 40px;
    margin: auto;
    cursor: pointer;
    border-radius: var(--bc-radius-sm);
}

.bc-brand-mark {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: var(--bc-radius-sm);
    background: var(--bc-accent);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    flex: none;
}

.bc-brand-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.bc-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 10px;
    flex: 1;
}

.bc-nav-section {
    padding: 14px 8px 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bc-muted);
}

.bc-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: var(--bc-radius-sm);
    color: var(--bc-ink-soft);
    font-size: 14px;
    font-weight: 500;
}

.bc-nav-link:hover {
    background: var(--bc-surface-sub);
    color: var(--bc-ink);
    text-decoration: none;
}

.bc-nav-link.active {
    background: var(--bc-accent-wash);
    color: var(--bc-accent-active);
}

.bc-nav-link .bc-nav-icon {
    width: 17px;
    text-align: center;
    flex: none;
    opacity: .85;
}

.bc-sidebar-foot {
    padding: 12px 10px;
    border-top: 1px solid var(--bc-line);
}

.bc-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bc-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--bc-topbar-height);
    padding: 0 24px;
    background: var(--bc-surface);
    border-bottom: 1px solid var(--bc-line);
}

.bc-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.bc-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.bc-page-head p {
    color: var(--bc-muted);
    font-size: 14px;
    max-width: 70ch;
}

/* ── Utilitaires de trame ─────────────────────────────────────────────── */

.bc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bc-stack {
    display: flex;
    flex-direction: column;
    gap: var(--bc-gap);
}

.bc-grid {
    display: grid;
    gap: var(--bc-gap);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.bc-empty {
    padding: 32px 18px;
    text-align: center;
    color: var(--bc-muted);
    font-size: 14px;
}

/* ── Repère d'environnement ───────────────────────────────────────────── */

.bc-env {
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--bc-warn-wash);
    border: 1px solid var(--bc-warn);
    color: var(--bc-warn);
    font-size: 12px;
    font-weight: 600;
}

/* ── Étroit ───────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .bc-shell {
        grid-template-columns: 1fr;
    }

    .bc-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--bc-line);
    }

    .bc-nav {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px;
    }

    .bc-nav-section,
    .bc-sidebar-foot {
        display: none;
    }

    .bc-content {
        padding: 16px;
    }

    .bc-topbar {
        padding: 0 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* ── Connexion et démarrage ───────────────────────────────────────────── */

.bc-login {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
}

.bc-login-card {
    width: 100%;
    max-width: 400px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.bc-login-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bc-login-head h1 {
    font-size: 19px;
}

.bc-login-head p {
    font-size: 13.5px;
    color: var(--bc-muted);
}

.bc-login-card .bc-btn-primary {
    width: 100%;
    padding-block: 9px;
}

.bc-login-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.bc-code {
    font-family: var(--bc-font-mono);
    font-size: 20px;
    letter-spacing: .3em;
    text-align: center;
}

.bc-login-error,
.bc-login-notice {
    font-size: 13.5px;
    padding: 9px 12px;
    border-radius: var(--bc-radius-sm);
    border: 1px solid;
}

.bc-login-error {
    background: var(--bc-accent-wash);
    border-color: var(--bc-accent-border);
    color: var(--bc-accent-active);
}

.bc-login-notice {
    background: var(--bc-ok-wash);
    border-color: var(--bc-ok);
    color: var(--bc-ok);
}

.bc-boot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 60vh;
    color: var(--bc-muted);
    font-size: 14px;
}

.bc-boot-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--bc-line-strong);
    border-top-color: var(--bc-accent);
    border-radius: 50%;
    animation: bc-spin .7s linear infinite;
}

@keyframes bc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Identité en barre haute ──────────────────────────────────────────── */

.bc-identity {
    display: flex;
    align-items: center;
    gap: 9px;
}

.bc-avatar {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bc-accent-wash);
    border: 1px solid var(--bc-accent-border);
    color: var(--bc-accent-active);
    font-size: 11.5px;
    font-weight: 700;
    flex: none;
}

.bc-identity-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.bc-identity-name {
    font-size: 13.5px;
    font-weight: 500;
}

.bc-identity-customer {
    font-size: 12px;
    color: var(--bc-muted);
}

.bc-search {
    width: auto;
    min-width: 220px;
}

@media (max-width: 560px) {
    .bc-search {
        min-width: 0;
        width: 100%;
    }
}

/* ── Indicateurs du tableau de bord ───────────────────────────────────── */

.bc-stats {
    display: grid;
    gap: var(--bc-gap);
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.bc-stat {
    background: var(--bc-surface);
    border: 1px solid var(--bc-line);
    border-radius: var(--bc-radius);
    box-shadow: var(--bc-shadow);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bc-stat-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--bc-muted);
}

.bc-stat-value {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.bc-stat-value-sm {
    font-size: 22px;
}

.bc-stat-unit {
    font-size: 17px;
    font-weight: 500;
    color: var(--bc-muted);
    margin-left: 2px;
}

.bc-stat-hint {
    font-size: 12.5px;
    color: var(--bc-muted);
}

.bc-meter {
    height: 5px;
    border-radius: 999px;
    background: var(--bc-surface-sub);
    border: 1px solid var(--bc-line);
    overflow: hidden;
}

.bc-meter-fill {
    display: block;
    height: 100%;
    background: var(--bc-accent);
}

/* ── Invitation et actions de ligne ───────────────────────────────────── */

.bc-invite-grid {
    display: grid;
    gap: var(--bc-gap);
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.bc-invite-hint {
    margin-top: 10px;
}

.bc-invite-actions {
    margin-top: 14px;
}

.bc-role-select {
    width: auto;
    min-width: 150px;
    padding-block: 4px;
    font-size: 13px;
}

.bc-actions {
    gap: 6px;
    flex-wrap: nowrap;
}

.bc-error-detail {
    margin: 8px 0 0;
    padding: 10px 12px;
    background: var(--bc-surface-sub);
    border: 1px solid var(--bc-line);
    border-radius: var(--bc-radius-sm);
    font-family: var(--bc-font-mono);
    font-size: 12.5px;
    color: var(--bc-ink-soft);
    white-space: pre-wrap;
    overflow-x: auto;
}

/* ── Fiche utilisateur ────────────────────────────────────────────────── */

.bc-detail-grid {
    display: grid;
    gap: var(--bc-gap);
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    align-items: start;
}

.bc-identity-lg {
    gap: 14px;
}

.bc-avatar-lg {
    width: 44px;
    height: 44px;
    font-size: 16px;
}

.bc-identity-link {
    color: inherit;
    text-decoration: none;
}

.bc-identity-link:hover {
    text-decoration: none;
}

.bc-identity-link:hover .bc-identity-name {
    color: var(--bc-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Matrice des accès ────────────────────────────────────────────────── */

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

.bc-matrix-corner {
    min-width: 180px;
}

/* Les noms de casiers sont courts et nombreux : la colonne reste étroite. */
.bc-matrix-head {
    text-align: center;
    min-width: 68px;
    font-size: 11.5px;
}

.bc-matrix-row-head {
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    font-size: 14px;
    color: var(--bc-ink);
    font-weight: 600;
    border-right: 1px solid var(--bc-line);
}

.bc-matrix-cell {
    text-align: center;
    padding-inline: 6px;
}

.bc-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--bc-accent);
    cursor: pointer;
}

.bc-checkbox:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.bc-linklike {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--bc-accent);
    cursor: pointer;
    text-align: left;
}

.bc-linklike:disabled {
    color: var(--bc-ink);
    cursor: default;
}

.bc-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

/* Échéance d'une règle : jour, heure et minutes sur une ligne. */
.bc-schedule {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
}

.bc-panel-flag {
    border-left: 3px solid var(--bc-warn);
}

.bc-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 14px;
}

.bc-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.bc-check input[type="checkbox"] {
    accent-color: var(--bc-accent);
    width: 15px;
    height: 15px;
}

.bc-member-list {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.bc-member {
    padding: 7px 9px;
    border-radius: var(--bc-radius-sm);
}

.bc-member:hover {
    background: var(--bc-surface-sub);
}

/* ── Sélecteur de client ──────────────────────────────────────────────── */

.bc-picker {
    position: relative;
}

.bc-picker-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border: 1px solid var(--bc-line-strong);
    border-radius: var(--bc-radius-sm);
    background: var(--bc-surface);
    color: var(--bc-ink);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    max-width: 260px;
}

.bc-picker-trigger:hover {
    background: var(--bc-surface-sub);
}

.bc-picker-trigger>span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bc-picker-caret {
    font-size: 10px;
    color: var(--bc-muted);
}

.bc-picker-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 40;
    width: 290px;
    max-width: calc(100vw - 32px);
    padding: 10px;
    background: var(--bc-surface);
    border: 1px solid var(--bc-line-strong);
    border-radius: var(--bc-radius);
    box-shadow: var(--bc-shadow-raised);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bc-picker-search {
    font-size: 13.5px;
}

.bc-picker-hint {
    margin: 0;
}

.bc-picker-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 280px;
    overflow-y: auto;
}

.bc-picker-option {
    text-align: left;
    padding: 7px 9px;
    border: 0;
    border-radius: var(--bc-radius-sm);
    background: transparent;
    color: var(--bc-ink);
    font-family: inherit;
    font-size: 13.5px;
    cursor: pointer;
}

.bc-picker-option:hover {
    background: var(--bc-surface-sub);
}

.bc-picker-option.active {
    background: var(--bc-accent-wash);
    color: var(--bc-accent-active);
    font-weight: 600;
}

.bc-picker-error {
    font-size: 12.5px;
    color: var(--bc-accent-active);
    margin: 0;
}

.bc-picker-left {
    right: auto;
    left: 0;
}

.bc-picker-tag {
    margin-left: 7px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--bc-surface-sub);
    border: 1px solid var(--bc-line-strong);
    color: var(--bc-muted);
    font-size: 10.5px;
    font-weight: 600;
}

/* ── Filtres d'activité ───────────────────────────────────────────────── */

.bc-filters {
    display: grid;
    gap: var(--bc-gap);
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

/* ── Fiche de faits ───────────────────────────────────────────────────── */

.bc-facts {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bc-facts>div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bc-facts dt {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--bc-muted);
}

.bc-facts dd {
    margin: 0;
    font-size: 14.5px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bc-date-input {
    width: auto;
    min-width: 140px;
    padding-block: 4px;
    font-size: 13px;
}

/* ── Bandeau d'attention du tableau de bord ──────────────────────────── */

.bc-attention {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bc-attention-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.bc-attention-list {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

.bc-attention-list li {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.bc-recipients {
    margin-top: 16px;
}
/* Journaux techniques : du texte brut, qu'on lit sans le reformater. La largeur est bornée par
   un défilement propre plutôt que par un retour à la ligne qui casserait l'alignement des traces. */
.bc-log {
    margin: 0;
    padding: 12px 14px;
    max-height: 480px;
    overflow: auto;
    background: var(--bc-surface-sunken, #f5f5f7);
    border: 1px solid var(--bc-border, #e2e2e6);
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre;
    tab-size: 4;
}
