/* Écran « Emails et SAV » (01/12/2026). Préfixe .e-emails, aussi posé sur le contenu des feuilles. */
@container app (min-width: 0px) {
  .e-emails .zone { margin-top: 14px; display: grid; gap: 12px; min-width: 0; }
  .e-emails .em-liste { display: grid; gap: 10px; min-width: 0; }
  .e-emails .em-carte { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--trait); border-radius: var(--r-2); background: var(--surface); color: var(--encre); text-align: left; font: inherit; min-width: 0; overflow-wrap: anywhere; }
  .e-emails .em-carte.bloque { border-color: var(--critique); }
  .e-emails button.em-carte { cursor: pointer; width: 100%; }
  .e-emails button.em-carte:hover { border-color: var(--trait-fort); }
  .e-emails .em-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
  .e-emails .em-tete .discret { margin-left: auto; font-size: var(--t-13); }
  .e-emails .em-type { font-size: var(--t-13); text-transform: uppercase; letter-spacing: .04em; color: var(--encre-2); }
  .e-emails .em-sujet { font-weight: 600; font-size: var(--t-15); }
  .e-emails .em-qui, .e-emails .em-raison, .e-emails .em-extrait { font-size: var(--t-13); }
  .e-emails .em-extrait { color: var(--encre-2); }
  .e-emails .em-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
  .e-emails .em-parcours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 4px 0; }
  .e-emails .em-puce { display: grid; gap: 1px; min-width: 0; }
  .e-emails .em-puce small { font-size: var(--t-11); color: var(--encre-2); text-transform: uppercase; letter-spacing: .04em; }
  .e-emails .em-puce b { font-weight: 600; font-size: var(--t-13); overflow-wrap: anywhere; }
  .e-emails .em-sequence { list-style: none; margin: 6px 0 0; padding: 8px 0 0; border-top: 1px solid var(--trait); display: grid; gap: 6px; }
  .e-emails .em-sequence li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--t-13); }
  .e-emails .em-seq-nom { font-weight: 700; min-width: 3.2em; }
  .e-emails .em-mode { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--trait); }
  .e-emails .em-mode:first-child { border-top: 0; }
  .e-emails .em-champs { display: grid; gap: 12px; }
  .e-emails .em-champs textarea { min-height: 90px; }
  /* feuilles « Vérifier » et conversation */
  .e-emails.em-verif, .e-emails.em-conv-detail { display: grid; gap: 12px; min-width: 0; }
  .e-emails .em-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: var(--t-13); }
  .e-emails .em-meta dt { color: var(--encre-2); }
  .e-emails .em-meta dd { margin: 0; overflow-wrap: anywhere; }
  .e-emails .em-lien code { overflow-wrap: anywhere; font-size: var(--t-11); }
  .e-emails .em-rendu { width: 100%; height: 360px; border: 1px solid var(--trait); border-radius: var(--r-2); background: #fff; }
  .e-emails textarea { width: 100%; box-sizing: border-box; }
  .e-emails .em-infos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: var(--t-13); }
}
@container app (min-width: 900px) {
  .e-emails .em-parcours { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .e-emails .em-champs { grid-template-columns: 1fr 1fr; }
  .e-emails .em-champs textarea { grid-column: 1 / -1; }
  .e-emails .em-rendu { height: 440px; }
}
