/* Écho — panneau d'entretien (2.64.0 ; static/js/crew-echo.js).
   Déplaçable (en-tête), redimensionnable (poignée), réductible à son en-tête, à onglets. Le niveau du micro anime
   l'anneau de l'avatar, le bouton du micro, l'onde de la transcription masquée et les vumètres : `--niv`, de 0 à 1,
   posé sur le panneau dix fois par seconde. `prefers-reduced-motion` fige tout le mouvement sans retirer aucune
   information (le vumètre reste, en paliers). Couleurs : jetons de app.css uniquement — clair et sombre. */

.crew-echo {
  --niv: 0;
  position: fixed; right: 16px; bottom: 16px; z-index: 61;
  width: 440px; max-width: calc(100vw - 16px); max-height: calc(100vh - 32px);
  display: flex; flex-direction: column; overflow: hidden;
  color: var(--text); background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand) 38%, var(--border)); border-radius: 16px;
  box-shadow: 0 18px 48px rgb(var(--shadow-rgb) / .22), 0 2px 6px rgb(var(--shadow-rgb) / .12);
  animation: crewEchoEntre var(--dur-slow) var(--ease-out) both;
}
.crew-echo.place { right: auto; bottom: auto; }
.crew-echo.sortie { animation: crewEchoSort 160ms ease-in both; pointer-events: none; }
.crew-echo.rebond { animation: crewEchoEntre var(--dur-slow) var(--ease-out) both; }
.crew-echo.glisse { box-shadow: 0 26px 64px rgb(var(--shadow-rgb) / .3), 0 4px 10px rgb(var(--shadow-rgb) / .14); user-select: none; }
.crew-echo [hidden] { display: none !important; }
/* Au-dessus du tiroir de la checklist (on lit une exigence en écoutant), mais SOUS une fenêtre modale : l'accord du
   diagnostic, ouvert depuis le panneau, ne doit pas passer dessous. */
body:has(.modal-bg) .crew-echo { z-index: 59; }
/* Panneau à sa place d'origine, en bas à droite : les notifications se rangent à sa GAUCHE (sa largeur réelle,
   `--crew-echo-w`, est posée par crew-echo.js). En bas, elles couvraient « Clore la séance » ; en haut, l'en-tête d'un
   panneau haut — vus tous deux sur les captures des bancs. */
body:has(.crew-echo:not(.place)) .toasts { right: calc(var(--crew-echo-w, 440px) + 30px); }
.crew-echo .field input, .crew-echo .field select, .crew-echo .field textarea { width: 100%; }

/* --- en-tête : poignée de déplacement, avatar à l'anneau sonore, titre, durée --- */
.crew-echo-head {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; flex: none;
  cursor: grab; user-select: none; touch-action: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, var(--surface)) 0%, var(--surface) 72%);
  border-bottom: 1px solid var(--border);
}
.crew-echo.glisse .crew-echo-head { cursor: grabbing; }
.crew-echo-head:focus-visible { outline: 2px solid var(--brand); outline-offset: -3px; border-radius: 16px 16px 0 0; }
.crew-echo-titres { flex: 1; min-width: 0; }
.crew-echo-titres > b { display: block; font-size: 14px; letter-spacing: .01em; }
.crew-echo-ligne2 { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-width: 0; }
.crew-echo-sous-titre { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crew-echo-puces { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.crew-echo-puces .chip { font-size: 10.5px; padding: 1px 6px; }
.crew-echo-chrono { font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.crew-echo-boutons { display: flex; align-items: center; gap: 2px; flex: none; }
.crew-echo-boutons .btn.ghost { min-width: 28px; }
.crew-echo-ico { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: 8px; }
.crew-echo-ico:hover { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.crew-echo-rec {
  width: 9px; height: 9px; margin-inline-end: 6px; border-radius: 50%; background: var(--error);
  animation: crewEchoRec 1.6s ease-out infinite;
}
.crew-echo-ava { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.crew-echo-anneau {
  position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; pointer-events: none;
  transition: transform 90ms linear, opacity var(--dur) var(--ease);
}
.crew-echo.ecoute .crew-echo-anneau { opacity: calc(.25 + var(--niv) * .75); transform: scale(calc(1 + var(--niv) * .22)); }
.crew-echo-ava.parle .crew-echo-anneau { animation: crewEchoOndeAnneau .8s var(--ease-out); }

/* --- l'exigence suivie et les termes du domaine (communs aux onglets) --- */
.crew-echo-req {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; flex: none;
  padding: 8px 12px; font-size: 13px; background: var(--surface-2); border-bottom: 1px solid var(--border-soft);
}
.crew-echo-req-id { padding: 1px 6px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--brand-100); color: var(--brand); }
.crew-echo-req-titre {
  flex: 1; min-width: 0; font-weight: 600; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.crew-echo-termes { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px; }
.crew-echo-terme {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 1px 8px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 11.5px; color: var(--info-text); background: var(--info-soft); border: 1px solid var(--info-border);
  transition: border-radius var(--dur) var(--ease), background var(--dur) var(--ease);
  animation: crewEchoEntree var(--dur-slow) var(--ease-out) both;
}
.crew-echo-terme:hover { border-color: var(--brand); }
.crew-echo-terme:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.crew-echo-terme-sens { display: none; font-weight: 400; }
.crew-echo-terme[aria-expanded="true"] { border-radius: 8px; text-align: start; }
.crew-echo-terme[aria-expanded="true"] .crew-echo-terme-sens { display: inline; }

/* --- onglets --- */
.crew-echo-onglets { position: relative; display: flex; gap: 2px; padding: 0 8px; flex: none; border-bottom: 1px solid var(--border); background: var(--surface); }
.crew-echo-onglet {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 10px; border: 0; border-radius: 8px 8px 0 0; cursor: pointer;
  background: none; color: var(--text-muted); font: inherit; font-size: 12.5px; font-weight: 600;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.crew-echo-onglet:hover { color: var(--text); background: var(--surface-2); }
.crew-echo-onglet.actif { color: var(--brand); }
.crew-echo-onglet:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.crew-echo-compte {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  font-size: 11px; background: var(--brand); color: var(--on-primary);
}
.crew-echo-compte.pulse { animation: crewEchoPulse .9s var(--ease-out) 2; }
.crew-echo-curseur {
  position: absolute; left: 0; bottom: -1px; width: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand);
  transition: transform var(--dur-slow) var(--ease-out), width var(--dur-slow) var(--ease-out);
}
.crew-echo-curseur.fixe { transition: none; }

/* --- volets --- */
.crew-echo-volets { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.crew-echo-body { padding: 12px; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
/* Une colonne flex qui défile : ses blocs ne se compriment pas (sans `flex-shrink: 0`, la transcription, à hauteur
   minimale nulle, était écrasée à quelques pixels — signalé en production en 2.5.1). */
.crew-echo-body > * { flex-shrink: 0; }
.crew-echo-volet { flex: 1 1 auto; min-height: 0; }
.crew-echo-volet:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.crew-echo-volet.entre { animation: crewEchoVolet var(--dur-slow) var(--ease-out); }
.crew-echo-body h4 { margin: 2px 0 0; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.crew-echo-entete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.crew-echo-liste { display: grid; gap: 6px; }
.crew-echo-vide-grand {
  padding: 18px 12px; border: 1px dashed var(--border); border-radius: 12px;
  text-align: center; font-size: 13px; color: var(--text-muted);
}

/* --- ouverture d'une séance --- */
.crew-echo-ouverture { flex: 1 1 auto; min-height: 0; }
.crew-echo-intro {
  margin: 0; padding: 10px 12px; font-size: 13px; color: var(--text-2);
  background: var(--brand-50); border: 1px solid var(--info-border); border-radius: 12px 12px 12px 4px;
  animation: crewEchoEntree var(--dur-slow) var(--ease-out) both;
}
.crew-echo-grille { display: grid; grid-template-columns: 3fr 2fr; gap: 10px; }
.crew-echo-grille .field { margin: 0; }
.crew-echo-aide-langue { margin-top: -4px; }
.crew-echo-etiquette { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.crew-echo-micro-prep { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.crew-echo-micro-prep .btn.actif { border-color: var(--brand); color: var(--brand); }
.crew-echo-consent { padding: 8px 10px; border: 1px dashed var(--border); border-radius: 10px; }
.crew-echo-voix-option { display: grid; gap: 2px; }
.crew-echo-demarrer { align-self: flex-start; padding-inline: 18px; }
.crew-echo-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; font-size: 12.5px; }
.crew-echo-note.warn { color: var(--warning-text); background: var(--warning-soft); border: 1px solid var(--warning-border); }

/* --- micro : bouton, vumètre, alerte, réglages --- */
.crew-echo-controle { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.crew-echo-controle.actif { border-color: color-mix(in srgb, var(--error) 45%, var(--border)); background: color-mix(in srgb, var(--error) 5%, var(--surface-2)); }
.crew-echo-micro-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.crew-echo-micro-ligne select { flex: 1 1 160px; min-width: 0; }
.crew-echo-micro-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crew-echo-mic {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--on-primary); background: var(--brand);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 35%, transparent);
  transition: background var(--dur) var(--ease), box-shadow 90ms linear, transform var(--dur-fast) var(--ease);
}
.crew-echo-mic:hover { transform: translateY(-1px); }
.crew-echo-mic:active { transform: translateY(0) scale(.98); }
.crew-echo-mic:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.crew-echo-mic-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgb(255 255 255 / .2); }
.crew-echo-mic.actif {
  background: var(--error);
  box-shadow: 0 0 0 calc(var(--niv) * 10px) color-mix(in srgb, var(--error) 22%, transparent), 0 2px 8px color-mix(in srgb, var(--error) 35%, transparent);
}
.crew-echo-mic.mini { width: 30px; height: 30px; padding: 0; justify-content: center; }
.crew-echo-mic.mini .crew-echo-mic-ico { background: none; }
.crew-echo-vu {
  display: inline-flex; align-items: flex-end; gap: 2px; height: 24px; padding: 3px 5px; flex: none;
  border: 1px solid var(--border-soft); border-radius: 6px; background: var(--surface);
}
.crew-echo-vu > span { width: 4px; border-radius: 2px; background: var(--border); transition: background 70ms linear; }
.crew-echo-vu > span.on.v { background: var(--success); }
.crew-echo-vu > span.on.j { background: var(--caution); }
.crew-echo-vu > span.on.r { background: var(--error); }
.crew-echo-boutons .crew-echo-vu { height: 20px; padding: 2px 4px; margin-inline-end: 4px; }
.crew-echo-alerte {
  display: grid; gap: 6px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px;
  color: var(--warning-text); background: var(--warning-soft); border: 1px solid var(--warning-border);
}
.crew-echo-alerte.entre { animation: crewEchoSecoue .5s var(--ease-out); }
.crew-echo-alerte select { width: 100%; }
.crew-echo-reglages > summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 12.5px; color: var(--text-2);
}
.crew-echo-reglages > summary::-webkit-details-marker { display: none; }
.crew-echo-reglages > summary::before {
  content: ''; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform var(--dur) var(--ease);
}
[dir="rtl"] .crew-echo-reglages > summary::before { transform: rotate(135deg); }
.crew-echo-reglages[open] > summary::before { transform: rotate(45deg); }
.crew-echo-reglages[open] { display: grid; gap: 8px; }
.crew-echo-reglages[open] > :not(summary) { animation: crewEchoVolet var(--dur) var(--ease-out); }
.crew-echo-traitements { display: grid; gap: 2px; padding: 6px 10px; border: 1px dashed var(--border); border-radius: 8px; }

/* --- transcription : affichée, ou masquée (une onde dit qu'Écho écoute toujours) --- */
.crew-echo-tt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.crew-echo-transcription { display: grid; gap: 6px; }
.crew-echo-transcript {
  display: flex; flex-direction: column; gap: 3px; min-height: 96px; max-height: 38vh; overflow: auto; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2);
}
.crew-echo-ligne { padding: 2px 4px; border-radius: 6px; font-size: 13px; line-height: 1.45; }
.crew-echo-ligne.nouvelle { animation: crewEchoLigne 1.4s var(--ease-out); }
.crew-echo-t { margin-inline-end: 4px; font-size: 11px; }
.crew-echo-qui { color: var(--brand); }
.crew-echo-partial { min-height: 18px; font-style: italic; }
.crew-echo-masque { flex-direction: row; align-items: center; gap: 12px; min-height: 64px; font-size: 12.5px; color: var(--text-muted); }
.crew-echo-onde { display: inline-flex; align-items: center; gap: 3px; height: 28px; flex: none; transform: scaleY(calc(.7 + var(--niv) * 1.1)); transition: transform 90ms linear; }
.crew-echo-onde i { width: 3px; height: 10px; border-radius: 2px; background: color-mix(in srgb, var(--brand) 65%, transparent); }
.crew-echo.ecoute .crew-echo-onde i { animation: crewEchoOnde 1.1s ease-in-out infinite; }
.crew-echo-onde i:nth-child(2) { animation-delay: .12s; }
.crew-echo-onde i:nth-child(3) { animation-delay: .24s; }
.crew-echo-onde i:nth-child(4) { animation-delay: .36s; }
.crew-echo-onde i:nth-child(5) { animation-delay: .48s; }
.crew-echo-saisie { display: flex; flex-wrap: wrap; gap: 8px; }
.crew-echo-type { flex: 2 1 200px; min-width: 0; }
.crew-echo-speaker { flex: 1 1 150px; min-width: 0; max-width: 220px; }
.crew-echo-micro-ligne .crew-echo-speaker { flex: 1 1 140px; }

/* --- questions --- */
.crew-echo-progres { display: flex; align-items: center; gap: 10px; }
.crew-echo-barre { flex: 1; height: 6px; overflow: hidden; border-radius: 3px; background: var(--surface-3); }
.crew-echo-barre > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--success)); transition: width var(--dur-slow) var(--ease-out); }
.crew-echo-q {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: start; gap: 8px; padding: 8px 10px;
  font-size: 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  animation: crewEchoEntree var(--dur-slow) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 28ms);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.crew-echo-q:hover { border-color: var(--border-hover); }
.crew-echo-q-ico { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 700; background: var(--brand-100); color: var(--brand); }
.crew-echo-q-txt .chip { margin-inline-start: 6px; font-size: 10.5px; }
.crew-echo-q.couverte { background: var(--surface-2); }
.crew-echo-q.couverte .crew-echo-q-txt { color: var(--text-muted); }
.crew-echo-q.couverte .crew-echo-q-ico { background: var(--success); color: var(--on-status); }
.crew-echo-q.change { animation: none; }
.crew-echo-q.change .crew-echo-q-ico { animation: crewEchoCoche .7s var(--ease-out); }

/* --- déclarations --- */
.crew-echo-d {
  display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 8px; padding: 8px 10px; font-size: 13px;
  border: 1px solid var(--border); border-inline-start: 3px solid var(--caution); border-radius: 10px; background: var(--surface);
  animation: crewEchoEntree var(--dur-slow) var(--ease-out) both;
}
.crew-echo-d.retenue { border-inline-start-color: var(--success); }
.crew-echo-d.ecartee { border-inline-start-color: var(--border-strong); opacity: .6; }
.crew-echo-d.ecartee .crew-echo-d-txt { text-decoration: line-through; }
.crew-echo-d.vient { animation: crewEchoDecide .7s var(--ease-out); }
.crew-echo-d-actions { display: flex; gap: 4px; }

/* --- voix séparées (2.6.0) : une ligne par voix — nom, comptes, rôle confirmé, nom facultatif --- */
.crew-echo-voix { display: grid; gap: 6px; }
.crew-echo-voix-ligne { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 8px; }
.crew-echo-voix-ligne select, .crew-echo-voix-ligne input { width: 100%; }
.crew-echo-voix > .btn { justify-self: start; }

/* --- bilan --- */
.crew-echo-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.crew-echo-tuile {
  display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  animation: crewEchoEntree var(--dur-slow) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms);
}
.crew-echo-tuile b { font-size: 20px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.crew-echo-tuile span { font-size: 11.5px; color: var(--text-muted); }
.crew-echo-tuile small { font-size: 11px; color: var(--text-2); }
.crew-echo-doc { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; }
.crew-echo-doc-txt { flex: 1 1 200px; min-width: 0; }
.crew-echo-exports { display: flex; gap: 4px; }

/* --- pied et poignée --- */
.crew-echo-pied { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; flex: none; border-top: 1px solid var(--border); background: var(--surface); }
.crew-echo-poignee {
  position: absolute; right: 2px; bottom: 2px; width: 16px; height: 16px; cursor: nwse-resize; touch-action: none; opacity: .55;
  background: linear-gradient(135deg, transparent 0 52%, var(--border-strong) 52% 60%, transparent 60% 70%, var(--border-strong) 70% 78%, transparent 78%);
}
.crew-echo-poignee:hover { opacity: 1; }
[dir="rtl"] .crew-echo-poignee { right: auto; left: 2px; cursor: nesw-resize; transform: scaleX(-1); }

/* --- réduit : l'en-tête seul, avec le micro et son niveau --- */
.crew-echo.reduit { height: auto !important; width: min(360px, calc(100vw - 16px)) !important; }
.crew-echo.reduit :is(.crew-echo-req, .crew-echo-onglets, .crew-echo-volets, .crew-echo-pied, .crew-echo-ouverture, .crew-echo-poignee) { display: none; }
.crew-echo.reduit .crew-echo-head { border-bottom: 0; }

@keyframes crewEchoEntre { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes crewEchoSort { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes crewEchoVolet { from { opacity: 0; transform: translateY(4px); } }
@keyframes crewEchoEntree { from { opacity: 0; transform: translateY(6px); } }
@keyframes crewEchoLigne { from { background: color-mix(in srgb, var(--brand) 20%, transparent); transform: translateY(4px); } 30% { transform: none; } }
@keyframes crewEchoCoche { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes crewEchoDecide { from { transform: scale(.98); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent); } }
@keyframes crewEchoPulse { 50% { transform: scale(1.3); } }
@keyframes crewEchoRec { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--error) 55%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes crewEchoOnde { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1.8); } }
@keyframes crewEchoOndeAnneau { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); } to { box-shadow: 0 0 0 12px transparent; } }
@keyframes crewEchoSecoue { 0% { transform: translateX(0); } 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }

@media (prefers-reduced-motion: reduce) {
  .crew-echo, .crew-echo *, .crew-echo *::before { animation: none !important; transition: none !important; }
}
@media (max-width: 760px) {
  .crew-echo:not(.place) { left: 8px; right: 8px; bottom: 8px; width: auto; }
  body:has(.crew-echo:not(.place)) .toasts { right: 18px; bottom: auto; top: calc(var(--top-h) + 12px); }
  .crew-echo-grille { grid-template-columns: 1fr; }
}

/* 2.72.0 — réunion à distance (echo-reunion.js, préfixe ecr) */
.crew-echo-lieu { display: flex; flex-direction: column; gap: 6px; }
.crew-echo-import { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }
.crew-echo-import-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.crew-echo-reunion { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.crew-echo-reunion-tete { display: flex; align-items: center; gap: 8px; }
.ecr-import, .ecr-distant, .ecr-rattacher { display: flex; flex-direction: column; gap: 12px; }
.ecr-fournisseur { display: flex; flex-direction: column; gap: 8px; padding: 12px; min-width: 0; }
.ecr-fournisseur code { white-space: normal; overflow-wrap: anywhere; }
.ecr-fournisseur input[type=text], .ecr-fournisseur input[type=password] { width: 100%; min-width: 0; }
.ecr-fournisseur h4 { margin: 0; }
.ecr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ecr-lien { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.ecr-lien .field { flex: 1 1 280px; margin: 0; }
.ecr-liste { display: flex; flex-direction: column; gap: 6px; }
.ecr-reunion { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: space-between; padding: 6px 8px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); }
.ecr-etape { display: flex; flex-direction: column; gap: 8px; }
.ecr-etape h4 { margin: 0; display: flex; align-items: center; gap: 8px; }
.ecr-segments { max-height: 52vh; overflow: auto; }
.ecr-texte { min-width: 240px; max-width: 520px; }
.ecr-choix { display: flex; gap: 4px; align-items: center; }
.ecr-choix select { max-width: 340px; }
.ecr-admin-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 12px 0; }
.ecr-robot { margin-top: 4px; }
/* 2.74.0 — l'invitation collée, les deux façons d'écouter, l'état du robot */
.crew-echo-distance { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; }
.crew-echo-distance textarea { width: 100%; min-height: 64px; font-size: 12.5px; }
.ecr-inv-lu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ecr-inv-lu:empty { display: none; }
.ecr-modes { display: grid; gap: 6px; }
.ecr-mode { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; padding: 8px 10px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.ecr-mode > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ecr-mode input { margin-top: 3px; }
.ecr-mode:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.ecr-mode.off { opacity: .55; cursor: not-allowed; }
.ecr-robot-etat { display: flex; flex-direction: column; gap: 4px; }
.ecr-robot-etat .btn { align-self: flex-start; }
.ecr-robot-admin { display: flex; flex-direction: column; gap: 8px; padding: 12px; margin: 8px 0 12px; }
.ecr-robot-admin h4 { margin: 0; display: flex; align-items: center; gap: 8px; }
.ecr-avance { margin: 4px 0 12px; }
