/* App « Bot Compte-rendu » — styles sur la charte Cobalt (tokens --cb-*).
   Pas de build : feuille unique, classes maison .cr-*. */

html, body { height: 100%; }
#root { height: 100vh; display: flex; }

/* ── Layout : rail + zone principale ─────────────────────────────────────── */
.cr-rail {
  width: 248px; flex: none; background: var(--cb-rail); color: var(--cb-rail-text);
  display: flex; flex-direction: column; padding: 22px 14px 16px; gap: 4px;
}
.cr-rail__brand { display: flex; align-items: center; gap: 9px; padding: 0 8px 14px; }
.cr-rail__brand img { height: 26px; width: auto; }
.cr-rail__name { font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--cb-rail-text); }
.cr-rail__section {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.42); padding: 10px 10px 6px; font-weight: 600;
}
.cr-nav {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px;
  border: none; border-radius: 11px; cursor: pointer; font: inherit; font-size: 14px;
  background: transparent; color: rgba(255,255,255,.86); text-align: left; transition: background .15s;
}
.cr-nav:hover { background: rgba(255,255,255,.07); }
.cr-nav.is-active { background: var(--cb-primary); color: #fff; font-weight: 600; }
.cr-nav svg { width: 18px; height: 18px; flex: none; }
.cr-rail__spacer { flex: 1; }
.cr-rail__foot { font-size: 12px; color: rgba(255,255,255,.4); padding: 8px 10px; }

.cr-main { flex: 1; min-width: 0; overflow: auto; }
.cr-head { padding: 28px 34px 18px; }
.cr-head h1 { font-family: var(--cb-font-display); font-weight: 700; font-size: 26px; margin: 0; letter-spacing: -.01em; }
.cr-head p { color: var(--cb-text-secondary); margin: 7px 0 0; max-width: 64ch; }
.cr-body { padding: 22px 34px 48px; max-width: 1080px; }

/* ── Cartes / surfaces ───────────────────────────────────────────────────── */
.cr-card {
  background: var(--cb-surface-card); border: 1px solid var(--cb-border);
  border-radius: 16px; padding: 24px 26px; box-shadow: var(--cb-shadow-sm);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.cr-card + .cr-card { margin-top: 18px; }

/* Sections d'un formulaire : petit en-tête (icône cobalt) + filet de séparation */
.cr-group + .cr-group { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--cb-border); }
.cr-group__title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: .01em; margin-bottom: 16px; }
.cr-group__title svg { width: 16px; height: 16px; flex: none; color: var(--cb-primary); }
.cr-grid { display: grid; gap: 14px; }
.cr-grid--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .cr-grid--2 { grid-template-columns: 1fr; } }

/* ── Champs ──────────────────────────────────────────────────────────────── */
.cr-field { margin-bottom: 16px; }
.cr-label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.cr-hint { font-size: 12px; color: var(--cb-text-tertiary); margin-top: 6px; }
.cr-input, .cr-select, .cr-textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 14px;
  color: var(--cb-text); background: var(--cb-surface-section);
  border: 1px solid var(--cb-border-strong); border-radius: 9px; outline: none;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.cr-input:focus, .cr-select:focus, .cr-textarea:focus {
  background: var(--cb-surface-card);
  border-color: var(--cb-primary); box-shadow: 0 0 0 3px rgba(63,113,222,.18);
}
.cr-input::placeholder { color: var(--cb-text-tertiary); }
.cr-textarea { resize: vertical; min-height: 160px; font-family: var(--cb-font-mono); font-size: 13px; line-height: 1.5; }

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.cr-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  font: inherit; font-size: 14px; font-weight: 600; border-radius: 9px; cursor: pointer;
  border: 1px solid transparent; background: var(--cb-primary); color: #fff; transition: background .15s, border-color .15s;
}
.cr-btn:hover { background: var(--cb-primary-hover); }
.cr-btn:disabled { opacity: .55; cursor: not-allowed; }
.cr-btn--ghost { background: transparent; color: var(--cb-text); border-color: var(--cb-border-strong); }
.cr-btn--ghost:hover { background: var(--cb-surface-section); }
.cr-btn--danger { background: transparent; color: var(--cb-danger); border-color: var(--cb-border-strong); }
.cr-btn--danger:hover { background: var(--cb-danger-soft); border-color: var(--cb-danger); }
.cr-btn--sm { padding: 6px 11px; font-size: 13px; }
.cr-btn svg { width: 16px; height: 16px; }

/* ── Chips / tags ────────────────────────────────────────────────────────── */
.cr-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.cr-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  background: var(--cb-primary-soft); color: var(--cb-blue-90); border-radius: 999px;
  font-size: 13px; font-weight: 500;
}
.cr-chip button { border: none; background: none; cursor: pointer; color: inherit; opacity: .6; padding: 0; display: flex; }
.cr-chip svg { width: 14px; height: 14px; flex: none; }
.cr-chip button:hover { opacity: 1; }
.cr-chip--n { background: var(--cb-surface-section); color: var(--cb-text-secondary); }
.cr-chip__txt { cursor: text; }
.cr-chip__txt:hover { text-decoration: underline dotted; text-underline-offset: 3px; }
.cr-chip input { border: none; background: transparent; color: inherit; font: inherit; outline: none; padding: 0; min-width: 2ch; }

/* Barre au-dessus d'un tag input (filtre + compteur + bascule chips/texte) */
.cr-tagbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

/* Barre de filtres cliquables (ex. filtrage de l'annuaire par équipe) */
.cr-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.cr-filter {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13px;
  border: 1px solid var(--cb-border); background: var(--cb-surface-card); color: var(--cb-text-secondary);
}
.cr-filter svg { width: 14px; height: 14px; }
.cr-filter:hover { background: var(--cb-surface-select); }
.cr-filter.is-on { border-color: var(--cb-primary); background: var(--cb-primary-tint); color: var(--cb-text); font-weight: 600; }

/* Filtre par équipe en cartes COMPACTES (pastilles qui s'enroulent — ergonomique pour ~25 équipes) */
.cr-section-label { font-weight: 600; font-size: 13px; color: var(--cb-text-secondary); margin: 2px 0 8px; }
.cr-rolecards { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.cr-rolecard {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; cursor: pointer;
  border: 1px solid var(--cb-border); border-radius: 8px; background: var(--cb-surface-card);
  font: inherit; font-size: 13px; color: var(--cb-text);
}
.cr-rolecard:hover { background: var(--cb-surface-select); }
.cr-rolecard.is-on { border-color: var(--cb-primary); background: var(--cb-primary-tint); font-weight: 600; }
.cr-rolecard__name { white-space: nowrap; }
.cr-rolecard__count {
  font-size: 11px; font-weight: 600; color: var(--cb-text-secondary);
  background: var(--cb-surface-section); border-radius: 999px; padding: 1px 7px; min-width: 18px; text-align: center;
}
.cr-rolecard.is-on .cr-rolecard__count { background: var(--cb-surface-card); }

/* Sélection épinglée au-dessus de l'annuaire (reste visible pendant le scroll de la liste) */
.cr-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; }
.cr-selbar__label { font-size: 12px; font-weight: 600; color: var(--cb-text-secondary); margin-right: 3px; }

/* sélecteur multi (lexiques / participants) */
.cr-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; max-height: 240px; overflow: auto; padding: 2px; }
@media (max-width: 760px) { .cr-pick { grid-template-columns: 1fr; } }
.cr-opt {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; cursor: pointer;
  border: 1px solid var(--cb-border); border-radius: 10px; background: var(--cb-surface-section); text-align: left; font: inherit;
  transition: background .12s, border-color .12s;
}
.cr-opt:hover { background: var(--cb-surface-select); border-color: var(--cb-border-strong); }
.cr-opt.is-on { border-color: var(--cb-primary); background: var(--cb-primary-tint); }
.cr-opt__name { font-size: 14px; font-weight: 500; }
.cr-opt__meta { font-size: 12px; color: var(--cb-text-tertiary); }
.cr-opt__check { margin-left: auto; color: var(--cb-primary); display: flex; }
.cr-opt__check svg { width: 16px; height: 16px; flex: none; }

/* ── Badges de statut ────────────────────────────────────────────────────── */
.cr-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.cr-badge::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.cr-badge--pending  { background: var(--cb-surface-section); color: var(--cb-text-secondary); }
.cr-badge--running  { background: var(--cb-info-soft); color: var(--cb-info); }
.cr-badge--delivered{ background: var(--cb-success-soft); color: var(--cb-success); }
.cr-badge--error    { background: var(--cb-danger-soft); color: var(--cb-danger); }
.cr-badge--cancelled{ background: var(--cb-surface-section); color: var(--cb-text-tertiary); }

/* ── Listes / lignes ─────────────────────────────────────────────────────── */
.cr-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--cb-border); border-radius: 12px; background: var(--cb-surface-card);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cr-row:hover { border-color: var(--cb-border-strong); box-shadow: var(--cb-shadow-sm); }
.cr-row + .cr-row { margin-top: 10px; }
.cr-row__main { flex: 1; min-width: 0; }
.cr-row__title { font-weight: 600; font-size: 15px; }
.cr-row__meta { font-size: 12px; color: var(--cb-text-tertiary); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; }
.cr-row__actions { display: flex; gap: 8px; flex: none; }

/* ── Onglets (bibliothèque) ──────────────────────────────────────────────── */
.cr-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--cb-border); margin-bottom: 20px; }
.cr-tab {
  padding: 10px 16px; border: none; background: none; cursor: pointer; font: inherit; font-size: 14px;
  font-weight: 600; color: var(--cb-text-secondary); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.cr-tab:hover { color: var(--cb-text); }
.cr-tab.is-active { color: var(--cb-primary); border-bottom-color: var(--cb-primary); }

/* ── Alerte / encart ─────────────────────────────────────────────────────── */
.cr-alert {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px;
  background: var(--cb-info-soft); border: 1px solid var(--cb-blue-20); color: var(--cb-blue-90); font-size: 13px;
}
.cr-alert svg { flex: none; width: 20px; height: 20px; color: var(--cb-primary); }
.cr-alert b { color: var(--cb-blue-100); }

/* ── Éditeur markdown (templates) ────────────────────────────────────────── */
.cr-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--cb-border); border-radius: 12px; overflow: hidden; }
.cr-editor > div { min-height: 420px; }
.cr-editor__pane { border-right: 1px solid var(--cb-border); display: flex; flex-direction: column; }
.cr-editor__pane > .cr-editor__bar { padding: 8px 14px; font-size: 12px; font-weight: 600; color: var(--cb-text-tertiary); border-bottom: 1px solid var(--cb-border); background: var(--cb-surface-section); }
.cr-editor textarea { flex: 1; border: none; border-radius: 0; min-height: 380px; }
.cr-md { padding: 14px 20px; overflow: auto; }
.cr-md h1, .cr-md h2, .cr-md h3 { font-family: var(--cb-font-display); }
.cr-md h1 { font-size: 22px; } .cr-md h2 { font-size: 18px; } .cr-md h3 { font-size: 15px; }
.cr-md code { background: var(--cb-surface-sunken); padding: 1px 5px; border-radius: 4px; font-family: var(--cb-font-mono); font-size: .9em; }
.cr-md ul { padding-left: 20px; }
@media (max-width: 760px) { .cr-editor { grid-template-columns: 1fr; } }

/* ── Empty state, spinner, toasts ────────────────────────────────────────── */
.cr-empty { text-align: center; padding: 48px 20px; color: var(--cb-text-tertiary); }
.cr-empty svg { width: 34px; height: 34px; opacity: .5; margin-bottom: 8px; }
.cr-spin { width: 30px; height: 30px; border-radius: 999px; border: 3px solid var(--cb-border); border-top-color: var(--cb-primary); animation: cr-spin .8s linear infinite; margin: 40px auto; }
@keyframes cr-spin { to { transform: rotate(360deg); } }

/* Entrée en fondu du contenu à chaque navigation (purement visuel ; pas sur .cr-row
   pour éviter un re-jeu lors du rafraîchissement des listes). */
@keyframes cr-rise { from { opacity: 0; transform: translateY(6px); } }
.cr-card, .cr-empty, .cr-alert { animation: cr-rise .24s ease both; }
@media (prefers-reduced-motion: reduce) { .cr-card, .cr-empty, .cr-alert { animation: none; } }

#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 50; }
.cr-toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 11px;
  background: var(--cb-surface-card); border: 1px solid var(--cb-border); box-shadow: 0 8px 28px rgba(0,0,0,.14);
  font-size: 14px; min-width: 240px; max-width: 380px; animation: cr-in .2s ease;
}
.cr-toast--success { border-left: 4px solid var(--cb-success); }
.cr-toast--error   { border-left: 4px solid var(--cb-danger); }
.cr-toast--info    { border-left: 4px solid var(--cb-primary); }
.cr-toast__title { font-weight: 600; }
.cr-toast__msg { color: var(--cb-text-secondary); font-size: 13px; }
@keyframes cr-in { from { opacity: 0; transform: translateY(8px); } }

/* ── Modal ───────────────────────────────────────────────────────────────── */
.cr-overlay { position: fixed; inset: 0; background: var(--cb-overlay); display: flex; align-items: center; justify-content: center; z-index: 40; padding: 20px; }
.cr-modal { background: var(--cb-surface-card); border-radius: 16px; width: 100%; max-width: 520px; max-height: 86vh; overflow: auto; padding: 24px; }
.cr-modal h2 { font-family: var(--cb-font-display); font-size: 19px; margin: 0 0 18px; }
.cr-modal__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

.cr-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cr-toolbar .cr-input { max-width: 320px; }
.cr-toolbar__spacer { flex: 1; }
.cr-inline { display: flex; gap: 8px; align-items: flex-start; }
.cr-inline .cr-input { flex: 1; }

/* ── Connexion (login plein écran) ───────────────────────────────────────── */
.cr-login { width: 100%; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--cb-surface-section); }
.cr-login__card { width: 100%; max-width: 380px; background: var(--cb-surface-card); border: 1px solid var(--cb-border); border-radius: 18px; padding: 30px 30px 28px; box-shadow: var(--cb-shadow-sm); animation: cr-rise .24s ease both; }
.cr-login__brand { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.cr-login__brand img { height: 28px; width: auto; }
.cr-login__brand span { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.cr-login__card h1 { font-family: var(--cb-font-display); font-size: 22px; margin: 0 0 4px; }
.cr-login__sub { color: var(--cb-text-secondary); font-size: 13px; margin: 0 0 20px; line-height: 1.5; }
.cr-login__err { color: var(--cb-danger); font-size: 13px; min-height: 18px; margin-bottom: 6px; }
.cr-btn--block { width: 100%; justify-content: center; margin-top: 6px; }

/* ── Encart utilisateur (bas du rail) ────────────────────────────────────── */
.cr-user { border-top: 1px solid rgba(255,255,255,.1); margin-top: 6px; padding: 12px 8px 2px; }
.cr-user__id { display: flex; align-items: center; gap: 10px; }
.cr-user__avatar { flex: none; width: 32px; height: 32px; border-radius: 999px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: var(--cb-rail-text); }
.cr-user__avatar svg { width: 17px; height: 17px; }
.cr-user__meta { min-width: 0; }
.cr-user__name { font-size: 13px; font-weight: 600; color: var(--cb-rail-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-user__role { font-size: 11px; color: rgba(255,255,255,.5); }
.cr-user__actions { display: flex; gap: 6px; margin-top: 10px; }
.cr-user__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; background: transparent; color: rgba(255,255,255,.8); cursor: pointer; font: inherit; font-size: 12px; transition: background .15s, color .15s; }
.cr-user__btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.cr-user__btn svg { width: 14px; height: 14px; }

/* ── Badges de rôle (écran Utilisateurs) + marqueur « vous » ─────────────── */
.cr-badge--admin { background: var(--cb-primary-soft); color: var(--cb-blue-90); }
.cr-badge--user  { background: var(--cb-surface-section); color: var(--cb-text-secondary); }
.cr-tagme { margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--cb-text-tertiary); background: var(--cb-surface-section); border-radius: 999px; padding: 1px 8px; vertical-align: middle; }
/* ── Relance / affiner ──────────────────────────────────────────────────────── */
.cr-modal--wide { max-width: 860px; }
.cr-ver { display: inline-block; font-size: 11px; font-weight: var(--cb-w-semibold); color: var(--cb-text-secondary); background: var(--cb-surface-sunken); border-radius: var(--cb-radius-sm); padding: 1px 7px; margin-right: 8px; }
.cr-modehint { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--cb-radius-md); background: var(--cb-info-soft); }
.cr-modehint svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--cb-info); }
.cr-modehint.is-warn { background: var(--cb-warning-soft); }
.cr-modehint.is-warn svg { color: var(--cb-warning); }
/* ── Visite guidée (onboarding en surimpression) ────────────────────────────── */
.cr-tour { position: fixed; inset: 0; z-index: 60; }
.cr-tour__spot {
  position: fixed; border-radius: var(--cb-radius-lg);
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, .62);
  transition: left .26s ease, top .26s ease, width .26s ease, height .26s ease;
  pointer-events: none;
}
.cr-tour__pop {
  position: fixed; z-index: 61; width: 340px; max-width: calc(100vw - 32px);
  background: var(--cb-surface-card); border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-xl); box-shadow: var(--cb-shadow-pop);
  padding: 18px 20px; transition: left .26s ease, top .26s ease;
}
.cr-tour__pop.is-center { left: 50%; top: 50%; transform: translate(-50%, -50%); transition: none; }
.cr-tour__count { font-size: 12px; font-weight: 700; color: var(--cb-primary); letter-spacing: .02em; }
.cr-tour__pop h3 { font-family: var(--cb-font-display); font-size: 17px; margin: 6px 0 8px; }
.cr-tour__pop p { color: var(--cb-text-secondary); margin: 0; font-size: 14px; line-height: 1.5; }
.cr-tour__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 10px; }
.cr-tour__nav { display: flex; gap: 8px; }
.cr-tour__skip { background: none; border: none; color: var(--cb-text-tertiary); font-size: 13px; cursor: pointer; padding: 4px; }
.cr-tour__skip:hover { color: var(--cb-text-secondary); }
/* ── Retours utilisateurs (bugs · qualité des CR · idées) ───────────────────── */
/* Statuts : mêmes codes visuels que les jobs (info → en cours → succès), pour ne pas
   inventer un second langage de couleurs dans la même application. */
.cr-badge--tnew  { background: var(--cb-info-soft); color: var(--cb-info); }
.cr-badge--tprog { background: var(--cb-warning-soft); color: var(--cb-warning); }
.cr-badge--tdone { background: var(--cb-success-soft); color: var(--cb-success); }
.cr-badge--tno   { background: var(--cb-surface-section); color: var(--cb-text-tertiary); }

/* Type de retour : pastille sans point, pour se distinguer d'un badge de statut. */
.cr-kind {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.cr-kind--bug  { background: var(--cb-red-10); color: var(--cb-red-70); }
.cr-kind--idee { background: var(--cb-teal-10); color: var(--cb-teal-70); }

/* Compteur de retours à traiter, dans le rail (fond sombre → pastille claire). */
.cr-navbadge {
  margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 999px;
  background: var(--cb-danger); color: #fff; font-size: 11px; font-weight: 700; text-align: center;
}

/* Captures d'écran : vignettes en ligne, dans le formulaire comme dans le détail. */
.cr-shots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.cr-shot {
  position: relative; display: block; width: 132px; height: 92px; overflow: hidden;
  border: 1px solid var(--cb-border); border-radius: var(--cb-radius-md);
  background: var(--cb-surface-sunken);
}
.cr-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cr-shot__x {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; padding: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  border: none; border-radius: 999px; background: rgba(15, 23, 42, .72); color: #fff;
}
.cr-shot__x svg { width: 13px; height: 13px; }

/* Détail d'un retour */
.cr-tk__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cr-tk__head h2 { margin: 0; }
.cr-tk__body { white-space: pre-wrap; margin: 14px 0; line-height: 1.55; user-select: text; }
/* Contexte technique : dense et discret, on le consulte, on ne le lit pas. */
.cr-tk__ctx {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 12px 14px;
  border-radius: var(--cb-radius-md); background: var(--cb-surface-sunken); font-size: 12px;
}
.cr-tk__ctxrow { display: contents; }
.cr-tk__ctxkey { color: var(--cb-text-tertiary); }
.cr-tk__ctxval { color: var(--cb-text-secondary); word-break: break-word; user-select: text; }

/* Fil de discussion : la réponse de l'admin est visuellement distincte de la demande. */
.cr-thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.cr-msg {
  padding: 10px 13px; border-radius: var(--cb-radius-md); background: var(--cb-surface-section);
  font-size: 14px; line-height: 1.5; white-space: pre-wrap; user-select: text;
}
/* Liseré à gauche en plus de la teinte : en thème sombre, `primary-tint` seul se distingue à
   peine de `surface-section` — on ne devinait plus qui répondait. */
.cr-msg--admin {
  background: var(--cb-primary-tint); border: 1px solid var(--cb-primary-soft);
  border-left: 3px solid var(--cb-primary);
}
.cr-msg__head {
  display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px;
  font-size: 12px; font-weight: 600; color: var(--cb-text-secondary);
}
.cr-msg__head span { font-weight: 400; color: var(--cb-text-tertiary); }
