/* La page Conversation : l'ossature reprise de la maquette retenue par Roméo (temoin/maquette/sources/conversation.css,
   une seule colonne par conversation, les trois rangées d'options en haut de la zone de droite, le fil et la saisie sur les
   quatre cinquièmes de la largeur, le reste en volet flottant), posée dans la coquille. Une seule structure, que Nocturne et
   Régie habillent par les jetons « --t-* » de charte.css : aucune couleur ne s'écrit ici. Ce que la maquette ne montrait pas
   (une colonne libre, une panne, une pause, un arrêt, « l'assistant démarre », les boîtes de dialogue) en prend les formes. */

.scene[data-page="conversation"] { display: flex; flex-direction: column; height: var(--t-hauteur-ecran); padding: 20px 28px 16px; overflow: hidden; }
.scene[data-page="conversation"] > #page { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.conv { --conv-large: min(100%, 1320px, max(80%, 760px)); flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.conv svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; } /* tout symbole de la page est un trait (remarque 43 b) : chaque emploi ne dit plus que sa taille, et sa couleur ou son épaisseur quand elles diffèrent */

/* rangée 1 : créer, tout voir, choisir combien de conversations à l'écran */
.conv__barre { flex: none; display: flex; align-items: center; gap: 10px; }
.conv__barre .bouton { height: 40px; white-space: nowrap; }
.conv__barre .bouton[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--t-texte-2); }
.conv__barre .segment { margin-left: auto; }
.conv__barre .segment button { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px; }
.conv__barre .segment i { width: 11px; height: 11px; border-radius: 2.5px; background: currentColor; opacity: .75; }
.conv__grille { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--colonnes, 1), minmax(0, 1fr)); gap: 12px; }
.conv[data-colonnes="2"] { --colonnes: 2; }
.conv[data-colonnes="3"] { --colonnes: 3; }
.conv[data-vue="toutes"] .conv__grille { display: none; }
.conv:not([data-vue="toutes"]) .conv__toutes { display: none; }
.conv__panneau { container: colonne / inline-size; display: flex; flex-direction: column; min-height: 0; padding: 12px 14px 14px; } /* la forme compacte se règle sur sa largeur (remarque 58) */

/* rangée 2 : la conversation affichée, et ce qu'on fait d'elle */
.conv__choix { position: relative; flex: none; display: flex; align-items: center; gap: 8px; }
.conv__select { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border: 0; border-radius: var(--t-rayon-p); background: var(--t-champ); box-shadow: var(--t-champ-ombre); font: 600 15.5px/1 var(--t-sans); letter-spacing: -.012em; color: var(--t-texte); text-align: left; }
.conv__select > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv__select > .pastille { flex: none; font-size: 12px; }
/* une colonne de moins de 760 px (deux et trois colonnes à l'écran de Roméo, une seule sous 1280 px ; remarque 58, Page RG-16) : la
   forme compacte. Les gestes n'ont que leur icône (le libellé reste en infobulle et en nom accessible), la pastille du sélecteur n'a que
   son point (« À vous » aussi : son point de couleur revient à la place du plein), le titre garde la largeur qui reste. Elle se dit selon
   la largeur de la colonne, pas selon leur nombre, une fois, après les règles qu'elle resserre (remarque 43 a). */
.conv__entete .segment button { display: inline-flex; align-items: center; gap: 7px; }
.conv__entete .segment svg { width: 14px; height: 14px; }
/* le service injoignable (Coquille RG-2) : les pastilles et les gestes ne valent plus, tant que le bandeau est là */
[data-injoignable] .conv .pastille, [data-injoignable] .conv button { opacity: .4; }
.conv__select svg { width: 14px; height: 14px; stroke: var(--t-texte-2); stroke-width: 1.8; }
.carre { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border: 0; border-radius: var(--t-rayon-p); background: var(--t-carte); box-shadow: var(--t-carte-ombre); color: var(--t-texte-2); }
.carre:hover { color: var(--t-texte); }
.carre:disabled { opacity: .4; cursor: default; }
.carre svg { width: 17px; height: 17px; }
.conversations-volet { top: calc(100% + 4px); left: 0; width: min(560px, 100%); max-height: calc(var(--t-hauteur-ecran) * .6); overflow: auto; }
.conversations-volet li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--t-rayon-p); font-size: 14px; color: var(--t-texte); cursor: pointer; }
.conversations-volet li:hover, .conversations-volet li.choisie { background: var(--t-survol); }
.conversations-volet li > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversations-volet li .pastille { font-size: 12px; }
.conversations-volet p.discret { padding: 8px 10px; }

/* rangée 3 : où l'assistant travaille, et les actions de la conversation */
.conv__entete { position: relative; flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 0; border-top: 1px solid var(--t-filet); border-bottom: 1px solid var(--t-filet); }
.conv__chemin { flex: 1; min-width: 8rem; display: inline-flex; align-items: center; gap: 8px; padding: 0 4px; border: 0; background: none; font: 400 12.5px/1.3 var(--t-mono); color: var(--t-texte-3); text-align: left; overflow: hidden; }
.conv__chemin code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: rtl; } /* coupé par le début : la fin du chemin, le dossier de la conversation, reste lisible (remarque 51) */
.conv__chemin code::before, .conv__chemin code::after { content: "\200E"; } /* les deux bouts du chemin restent dans le sens de lecture */
.conv__chemin svg { width: 15px; height: 15px; }
.conv__chemin:hover { color: var(--t-texte); }
.action { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 0; border-radius: var(--t-rayon-p); background: var(--t-carte); box-shadow: var(--t-carte-ombre); font: 500 13px/1 var(--t-sans); color: var(--t-texte); white-space: nowrap; }
.action:hover, .action[aria-expanded="true"] { background: var(--t-survol); }
.action:disabled { opacity: .45; cursor: default; background: var(--t-carte); }
.action svg { width: 15px; height: 15px; }
.conv__corps { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.conv__fil { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-gutter: stable both-edges; scrollbar-color: var(--t-filet-fort) transparent; }

/* une colonne libre : rien dedans, un choix */
.conv__libre { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; font-size: 14px; color: var(--t-texte-2); }
.conv__libre .conv__select { flex: none; width: min(340px, 100%); font-weight: 500; font-size: 14px; color: var(--t-texte-2); }
.conv__libre .conv__choix { width: min(340px, 100%); }
.conv__panneau[data-etat="libre"] > :not(.conv__libre) { display: none; }
.conv__panneau:not([data-etat="libre"]) > .conv__libre { display: none; }

/* « Toutes les conversations » : une ligne par conversation, son état, son dossier, ses gestes */
.conv__toutes { flex: 1; min-height: 0; overflow: auto; }
.conv__lignes { padding: 6px var(--t-pad) 18px; }
.conv__ligne { display: grid; grid-template-columns: minmax(0, 1.3fr) 9.5rem minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 10px 0; border-top: 1px solid var(--t-filet); }
.conv__ligne:first-child { border-top: 0; }
.conv__ligne > button { padding: 0; border: 0; background: none; font: 600 14.5px/1.3 var(--t-sans); letter-spacing: -.01em; color: var(--t-texte); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv__ligne > button:hover { text-decoration: underline; text-underline-offset: 3px; }
.conv__ligne code { font: 400 12px/1.3 var(--t-mono); color: var(--t-texte-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv__ligne .pastille { justify-self: start; }
.conv__gestes { display: flex; gap: 6px; }
.conv__gestes .carre { width: 36px; height: 36px; }
.conv__vide { padding: 18px var(--t-pad); }
/* les notices des dossiers d'effacements, en tête de la liste (Effacer RG-5) : une carte par dossier, ses gestes à droite */
.conv__notices { display: grid; gap: 8px; padding: 12px var(--t-pad) 4px; }
.notice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 14px; border-radius: var(--t-rayon-carte); background: var(--t-carte); box-shadow: var(--t-carte-ombre), inset 0 0 0 1.5px var(--t-attente); font-size: 13.5px; line-height: 1.45; color: var(--t-texte-2); }
.notice > span:first-child { flex: 1 1 24rem; min-width: 0; }
.notice--supprime_pour_de_bon, .notice--aucun { box-shadow: var(--t-carte-ombre), inset 0 0 0 1.5px var(--t-defaut); }
.notice--en_cours { box-shadow: var(--t-carte-ombre); }
.pastille--neuve { color: var(--t-texte-3); }

/* le fil : les tours */
.tours { display: grid; gap: 28px; width: var(--conv-large); margin: 0 auto; padding: 20px 0 26px; }
.tour { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
.tour__nom { display: flex; align-items: baseline; gap: 9px; margin-bottom: 8px; font-size: 12.5px; color: var(--t-texte-3); }
.tour__nom strong { font-weight: 600; color: var(--role-texte); }
.tour__corps { display: grid; gap: 12px; font-size: 15px; line-height: 1.6; color: var(--t-texte); }
.tour__corps > * { min-width: 0; max-width: 100%; }

/* le texte de l'assistant, rendu comme dans l'application (RG-4) : rien n'élargit la colonne, le large défile dans son bloc */
.md { display: grid; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.md p { white-space: normal; }
.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 { font: 600 15.5px/1.3 var(--t-sans); letter-spacing: -.01em; color: var(--t-texte); margin-top: 6px; }
.md h1 { font-size: 19px; }
.md h2 { font-size: 17px; }
.md ul, .md ol { display: grid; gap: 4px; padding-left: 22px; }
.md ul { list-style: disc; }
.md ol { list-style: decimal; }
.md li > ul, .md li > ol { margin-top: 4px; }
.md li::marker { color: var(--t-texte-3); }
.md code { padding: 1px 5px; border-radius: 5px; background: var(--t-creux); font: 500 .88em/1.4 var(--t-mono); }
.md .md-pre { margin: 0; padding: 12px 14px; border-radius: var(--t-rayon-carte); background: var(--t-term-fond); color: var(--t-term-texte); overflow: auto; max-height: 480px; }
.md .md-pre code { padding: 0; background: none; font: 400 12.5px/1.6 var(--t-mono); color: inherit; white-space: pre; }
.md blockquote { padding: 2px 0 2px 14px; border-left: 2px solid var(--t-filet-fort); color: var(--t-texte-2); display: grid; gap: 8px; }
.md hr { border: 0; border-top: 1px solid var(--t-filet); margin: 4px 0; }
.md a { color: var(--t-texte); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--t-filet-fort); }
.md a:hover { text-decoration-color: currentColor; }
.md .md-table { overflow: auto; max-width: 100%; border-radius: var(--t-rayon-carte); background: var(--t-carte); box-shadow: var(--t-carte-ombre); }
.md table { border-collapse: collapse; font-size: 13.5px; min-width: 100%; }
.md th { padding: 9px 12px; font-weight: 600; font-size: 12.5px; text-align: left; color: var(--t-texte-2); border-bottom: 1px solid var(--t-filet-fort); white-space: nowrap; }
.md td { padding: 8px 12px; border-top: 1px solid var(--t-filet); color: var(--t-texte); vertical-align: top; font-variant-numeric: tabular-nums; }
.md tr:first-child td { border-top: 0; }
.md strong { font-weight: 600; }
.tour--vous { grid-template-columns: minmax(0, 1fr); justify-items: end; }
.tour--vous .tour__bulle { max-width: 80%; padding: 12px 17px; border-radius: var(--t-bulle); border-bottom-right-radius: var(--t-bulle-coin); background: var(--t-vous-fond); color: var(--t-vous-texte); font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.tour--vous .tour__bulle.commande { font-family: var(--t-mono); font-size: 13.5px; }
.tour--vous .pieces { justify-content: flex-end; margin-top: 8px; }
.tour--vous small { margin-top: 6px; font-size: 12px; color: var(--t-texte-3); }
.av { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--role-voile); box-shadow: inset 0 0 0 1px var(--role-filet); color: var(--role); font: 700 12px/1 var(--t-sans); }
.av--grand { width: clamp(32px, 9cqi, 44px); height: clamp(32px, 9cqi, 44px); font-size: clamp(14px, 3.6cqi, 18px); } /* la grande pastille de l'écran d'accueil suit la largeur de sa colonne (RG-16) */
.etape svg { width: 14px; height: 14px; stroke-width: 1.7; }
.etapes { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--t-rayon-carte); background: var(--t-carte); box-shadow: var(--t-carte-ombre); overflow: hidden; } /* une ligne longue se coupe dans sa colonne : son état et « Arrêter » restent visibles à deux ou trois colonnes (captures du 22/11) */
.etape { border-top: 1px solid var(--t-filet); }
.etape:first-child { border-top: 0; }
.etape summary { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; list-style: none; cursor: pointer; font-size: 13.5px; color: var(--t-texte-2); }
.etape summary::-webkit-details-marker { display: none; }
.etape summary > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etape summary b { font-weight: 500; color: var(--t-texte); }
.etape summary small { margin-left: auto; font-size: 12px; color: var(--t-texte-3); white-space: nowrap; }
.etape summary:hover { background: var(--t-survol); }
.etape__ok { color: var(--t-net); }
.etape__defaut { color: var(--t-defaut); }
.etape--sous-agent summary { padding-left: 28px; }
.sortie { margin: 0; padding: 12px 14px; border-top: 1px solid var(--t-filet); background: var(--t-term-fond); color: var(--t-term-texte); font: 400 12px/1.6 var(--t-mono); white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; max-height: 420px; }
.sortie .gris { color: var(--t-term-gris); }
.sortie--defaut { color: var(--t-term-moins); }
.entree { margin: 0; padding: 10px 14px; border-top: 1px solid var(--t-filet); font: 400 12px/1.5 var(--t-mono); color: var(--t-texte-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.taches { display: grid; gap: 7px; padding: 14px 16px; border-radius: var(--t-rayon-carte); background: var(--t-carte); box-shadow: var(--t-carte-ombre); font-size: 13.5px; }
.taches li { display: flex; align-items: center; gap: 10px; color: var(--t-texte-2); }
.taches i { display: grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--t-filet-fort); }
.taches .faite { color: var(--t-texte-3); text-decoration: line-through; text-decoration-color: var(--t-filet-fort); }
.taches .faite i { background: var(--t-net); box-shadow: none; }
.taches .faite i::after { content: ""; width: 7px; height: 4px; margin-top: -2px; border-left: 1.6px solid var(--t-net-texte); border-bottom: 1.6px solid var(--t-net-texte); transform: rotate(-45deg); }
.taches .encours { color: var(--t-texte); font-weight: 500; }
.taches .encours i { box-shadow: inset 0 0 0 1.5px var(--t-direct); }
.taches .encours i::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--t-direct); animation: jalon 1.6s ease-in-out infinite; }
@keyframes jalon { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* la demande de l'assistant : un accord, une question, un plan */
.permission { display: grid; gap: 12px; padding: 16px 18px; border-radius: var(--t-rayon-carte); background: var(--t-avous-fond); box-shadow: var(--t-avous-ombre); }
.permission__tete { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--t-texte-2); }
.permission__quoi { font-weight: 600; font-size: 14.5px; color: var(--t-texte); }
.permission code, .permission pre { display: block; margin: 0; padding: 10px 12px; border-radius: var(--t-rayon-p); background: var(--t-term-fond); color: var(--t-term-texte); font: 400 12.5px/1.5 var(--t-mono); overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; }
.permission__effet { font-size: 13px; color: var(--t-texte-2); white-space: pre-wrap; }
.permission__choix { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.permission__choix .saisie { flex: 1; min-width: 12rem; }
.permission__option { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px 10px 38px; border: 0; border-radius: var(--t-rayon-p); background: var(--t-carte); box-shadow: var(--t-carte-ombre), inset 0 0 0 1.5px transparent; font: 500 13.5px/1.35 var(--t-sans); color: var(--t-texte); text-align: left; cursor: pointer; }
.permission__option:hover { background: var(--t-survol); }
.permission__option small { display: block; margin-top: 2px; font-weight: 400; font-size: 12.5px; color: var(--t-texte-2); }
.permission__options { display: grid; gap: 6px; }
.permission[data-repondu] .permission__choix, .permission[data-repondu] .permission__options { display: none; }
.permission[data-repondu] { opacity: .7; }
.produit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--t-rayon-carte); background: var(--t-carte); box-shadow: var(--t-carte-ombre); font-size: 13px; color: var(--t-texte-2); }
.produit svg { width: 22px; height: 22px; stroke: var(--t-net); }
.produit > span { flex: 1 1 140px; min-width: 0; } /* dans une colonne étroite, les boutons passent sous le nom plutôt que de le couper lettre à lettre (vu à trois colonnes, 21/11) */
.produit b { display: block; font: 500 13px/1.3 var(--t-mono); color: var(--t-texte); overflow-wrap: anywhere; }
.produit .bouton { height: 32px; font-size: 12.5px; }
.fait-centre { justify-self: center; display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 9px; max-width: 100%; min-height: 30px; padding: 5px 13px; border-radius: 15px; background: var(--t-creux); font-size: 12.5px; color: var(--t-texte-2); text-align: center; }
.fait-centre .panne__detail { flex-basis: 100%; text-align: left; }
.fait-centre svg { width: 14px; height: 14px; stroke: var(--t-net); stroke-width: 2.2; }
.fait-centre--defaut svg { stroke: var(--t-defaut); }
.panne { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--t-rayon-carte); background: var(--t-carte); box-shadow: var(--t-carte-ombre), inset 0 0 0 1.5px var(--t-defaut); font-size: 13.5px; color: var(--t-texte-2); }
.panne b { font-weight: 600; color: var(--t-texte); }
.panne code { font: 400 12px/1.5 var(--t-mono); color: var(--t-texte-3); white-space: pre-wrap; overflow-wrap: anywhere; }
.panne .gestes { padding-top: 4px; }
.panne__detail summary { cursor: pointer; font-size: 12.5px; color: var(--t-texte-3); }
.panne__detail[open] summary { margin-bottom: 6px; }
.inconnu { margin: 0; padding: 10px 12px; border-radius: var(--t-rayon-p); background: var(--t-carte); box-shadow: var(--t-carte-ombre); font: 400 12px/1.5 var(--t-mono); color: var(--t-texte-2); white-space: pre-wrap; overflow-wrap: anywhere; }
@keyframes point { 0%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.plus-haut-ligne { display: flex; justify-content: center; padding-top: 14px; }
.plus-haut { height: 30px; padding: 0 13px; border: 0; border-radius: 15px; background: var(--t-creux); font: 500 12.5px/1 var(--t-sans); color: var(--t-texte-2); }
.plus-haut:hover { color: var(--t-texte); }
.pause { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 auto 10px; width: var(--conv-large); padding: 10px 14px; border-radius: var(--t-rayon-carte); background: var(--t-carte); box-shadow: var(--t-carte-ombre), inset 0 0 0 1.5px var(--t-attente); font-size: 13px; color: var(--t-texte-2); }
.pause b { font-weight: 600; color: var(--t-texte); }
.pause .bouton { margin-left: auto; }

/* la zone de saisie : une boîte, ses outils dedans, comme dans l'application */
.conv__pied { position: relative; flex: none; width: var(--conv-large); margin: 0 auto; padding-top: 6px; }
.file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 12.5px; color: var(--t-texte-3); }
.file span { display: inline-flex; align-items: center; max-width: 100%; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--t-creux); color: var(--t-texte-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saisie-boite { border-radius: var(--t-rayon-saisie); background: var(--t-champ); box-shadow: var(--t-champ-ombre); }
.saisie-boite:focus-within { box-shadow: var(--t-champ-ombre), 0 0 0 2px var(--t-focus); }
.saisie__champ { display: block; width: 100%; min-height: 56px; max-height: calc(var(--t-hauteur-ecran) * .4); padding: 18px 20px 4px; border: 0; background: none; resize: none; font: 400 15.5px/1.5 var(--t-sans); color: var(--t-texte); outline: none; }
.saisie__champ::placeholder { color: var(--t-texte-3); }
.saisie__pieces { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 0; }
.saisie__pieces .piece button { all: unset; display: inline-grid; place-items: center; width: 16px; height: 16px; cursor: pointer; color: var(--t-texte-3); }
.saisie__pieces .piece button:hover { color: var(--t-texte); }
.saisie__outils { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 2px; padding: 6px 8px 8px 10px; } /* en colonne étroite, les puces passent à la ligne au lieu de se chevaucher */
.saisie__ecart { flex: 1; }
.puce { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border: 0; border-radius: var(--t-rayon-p); background: none; font: 500 13px/1 var(--t-sans); color: var(--t-texte-2); white-space: nowrap; }
.puce:hover, .puce[aria-expanded="true"] { background: var(--t-survol); color: var(--t-texte); }
.puce svg { width: 15px; height: 15px; stroke-width: 1.7; }
.puce b { font-weight: 600; color: var(--t-texte); max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }
.rond { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: none; color: var(--t-texte-2); }
.rond:hover { background: var(--t-survol); color: var(--t-texte); }
.rond svg { width: 18px; height: 18px; }
.envoi { display: grid; place-items: center; width: 36px; height: 36px; flex: none; margin-left: 6px; border: 0; border-radius: 50%; background: var(--t-plein); color: var(--t-plein-texte); box-shadow: var(--t-plein-ombre); }
.envoi:disabled { opacity: .45; cursor: default; }
.envoi svg { width: 18px; height: 18px; stroke-width: 2; }
.saisie__aide { margin-top: 9px; font-size: 12px; color: var(--t-texte-3); text-align: center; }
[data-colonne]:not([data-etat="neuve"]) .saisie__aide { display: none; } /* sous un fil, la ligne d'aide laisse sa place au fil, à toutes les largeurs (remarque 58) ; elle reste à l'écran d'une neuve */
.saisie__aide kbd { padding: 1px 5px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--t-filet-fort); font: 500 11px/1.4 var(--t-mono); color: var(--t-texte-2); }
@container colonne (max-width: 759px) { /* la forme compacte (Page RG-16, remarque 58 ; le seuil, 760 px de colonne, dit plus haut), après les règles qu'elle resserre, saisie comprise */
  .action span, .conv__entete .segment span, .conv__select > .pastille { font-size: 0; gap: 0; }
  .conv__select > .pastille--avous { height: auto; padding: 0; background: none; color: var(--t-avous-plein); }
  .conv__select > .pastille--avous::before { display: block; }
  .conv__select { padding: 0 10px; gap: 8px; }
  .conv__choix { gap: 5px; }
  .carre { width: 32px; }
  /* la rangée d'outils sur une ligne, en icônes de 28 px : le chemin prend ce qui reste, sans son icône (le geste « Fichiers » porte la
     même), coupé par le début, et son dernier segment se lit (remarque 51 ; P8 du pilote, Page RG-16) */
  .conv__entete { flex-wrap: nowrap; gap: 3px; margin-top: 6px; padding: 6px 0; }
  .conv__chemin { flex: 1 1 0; min-width: 0; padding: 0; font-size: 11px; }
  .conv__chemin svg { display: none; }
  .conv__entete .segment { padding: 2px; }
  .action, .conv__entete .segment button { justify-content: center; gap: 0; width: 28px; padding: 0; }
  .action { height: 30px; }
  /* la saisie sur deux rangées : le texte, puis une seule ligne de réglages ; « Commandes » n'a que son icône, le régime et le modèle
     se coupent plutôt que de passer à la ligne (P8) */
  .saisie__champ { min-height: 46px; padding: 12px 14px 2px; }
  .saisie__outils { flex-wrap: nowrap; gap: 2px; padding: 4px 6px 6px 6px; }
  .saisie__outils .puce { min-width: 0; padding: 0 5px; gap: 4px; }
  /* le chevron et l'effort (lu dans le volet du modèle) laissent leur place : le modèle se lit entier, le régime se coupe s'il le faut */
  .puce[data-geste="mode"] > svg, .puce[data-geste="modele"] > svg, .puce__effort { display: none; }
  .puce[data-geste="modele"] { flex: none; }
  .saisie__outils .puce > span, .saisie__outils .puce > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .puce[data-geste="commandes"] > span { font-size: 0; }
  .saisie__outils .rond { width: 30px; }
  .saisie__outils .envoi { margin-left: 2px; }
}
.pieces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.piece { display: inline-flex; align-items: center; gap: 8px; height: 30px; max-width: 100%; padding: 0 10px; border-radius: var(--t-rayon-p); background: var(--t-carte); box-shadow: var(--t-carte-ombre); font: 500 12px/1 var(--t-mono); color: var(--t-texte); }
.piece > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.piece svg { width: 14px; height: 14px; stroke: var(--t-texte-3); }
.piece--ouvrable { cursor: pointer; }
.piece--ouvrable:hover { background: var(--t-survol); }

/* ce qui s'ouvre à la demande : les commandes et les réglages au-dessus de la saisie, les fichiers sous le titre */
.conv .flottant { padding: 8px; }
.conv .flottant > p { padding: 6px 10px 8px; font-size: 12px; color: var(--t-texte-3); }
.commandes, .citations { left: 0; width: min(100%, 640px); bottom: calc(100% + 4px); max-height: calc(var(--t-hauteur-ecran) * .5); overflow: auto; }
.commandes li, .citations li { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 8px 10px; border-radius: var(--t-rayon-p); font-size: 13px; color: var(--t-texte-2); cursor: pointer; }
.citations li { grid-template-columns: minmax(0, 1fr); font: 500 12.5px/1.3 var(--t-mono); color: var(--t-texte); }
.commandes li:hover, .commandes li.choisie, .citations li:hover { background: var(--t-survol); }
.commandes li b { font: 500 12.5px/1.3 var(--t-mono); color: var(--t-texte); }
.reglages-volet { right: 0; bottom: calc(100% + 4px); width: min(100%, 420px); display: grid; gap: 12px; padding: 14px; }
.reglages-volet label { display: grid; gap: 6px; font: 600 12.5px/1.3 var(--t-sans); color: var(--t-texte); }
.reglages-volet .saisie { width: 100%; }
.reglages-volet .note { font-size: 12.5px; }

/* une conversation neuve : le bonjour et la saisie au milieu, rien d'autre ; l'écran d'accueil est une colonne qui défile dans la hauteur qui reste
   sous les rangées fixes, jamais centrée en hauteur quand elle ne tient pas (les marges automatiques tombent à zéro), et la salutation et la pastille
   suivent la largeur de la colonne, bornées (RG-16 ; 22/11, S3 : à trois colonnes, le bonjour recouvrait le sélecteur et la pastille sortait par le haut) */
.conv__neuve { flex: none; container-type: inline-size; display: grid; justify-items: center; gap: 12px; padding: 14px 0 30px; text-align: center; } /* au moins 12 px d'air sous l'en-tête (remarque 51) */
.conv__neuve h2 { font: var(--t-phrase); font-size: clamp(19px, 5.2cqi, 27px); letter-spacing: var(--t-phrase-chasse); color: var(--t-texte); }
.conv__neuve p { max-width: 54ch; font-size: 15px; color: var(--t-texte-2); }
.conv__neuve code { font: 400 13px/1.4 var(--t-mono); color: var(--t-texte-3); overflow-wrap: anywhere; }
.idees { display: none; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.idees button { height: 34px; padding: 0 14px; border: 0; border-radius: 17px; background: var(--t-carte); box-shadow: var(--t-carte-ombre); font: 500 13px/1 var(--t-sans); color: var(--t-texte-2); }
.idees button:hover { color: var(--t-texte); }
.conv__panneau[data-etat="neuve"] .conv__corps { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--t-filet-fort) transparent; }
.conv__panneau[data-etat="neuve"] .conv__neuve { margin-top: auto; }
.conv__panneau[data-etat="neuve"] .conv__pied { margin-bottom: auto; }
.conv__panneau[data-etat="neuve"] .conv__pied .flottant { max-height: calc(var(--t-hauteur-ecran) * .35); } /* le volet s'ouvre au-dessus de la saisie, dans l'écran d'accueil qui défile : plus court, il n'y est pas coupé à 845 px de haut */
.conv__panneau[data-etat="neuve"] .conv__entete, .conv__panneau[data-etat="neuve"] .file, .conv__panneau[data-etat="neuve"] .conv__fil { display: none; }
.conv__panneau[data-etat="neuve"] .idees { display: flex; }
.conv__panneau[data-etat="neuve"] .conv__pied { width: min(100%, 760px); padding-bottom: 20px; } /* à 845 px de haut et une colonne, l'écran d'accueil tient sans défiler (RG-16) */
.conv__panneau:not([data-etat="neuve"]) .conv__neuve { display: none; }

/* la boîte de dialogue : un titre, une phrase, une saisie, deux boutons */
.dialogue { width: min(560px, calc(var(--t-largeur-ecran) - 48px)); padding: 24px 26px; border: 0; border-radius: var(--t-rayon); background: var(--t-flottant); color: var(--t-texte); box-shadow: var(--t-flottant-ombre); }
.dialogue::backdrop { background: var(--t-voile-dialogue); }
.dialogue form { display: grid; gap: 14px; }
.dialogue h2 { font: var(--t-titre); color: var(--t-texte); }
.dialogue p { font-size: 13.5px; line-height: 1.5; color: var(--t-texte-2); white-space: pre-wrap; }
.dialogue .saisie { width: 100%; }
.dialogue .gestes { justify-content: flex-end; }

/* ── les trois vues d'une colonne : « Messagerie » (le fil), « Écran » (RG-9), « Fichiers » (RG-13) ── */
.conv__panneau:not([data-vue="fil"]) .conv__fil, .conv__panneau:not([data-vue="ecran"]) .conv__ecran, .conv__panneau:not([data-vue="fichiers"]) .conv__fichiers { display: none; }
.conv__panneau[data-vue="fichiers"] .conv__pied, .conv__panneau[data-etat="neuve"] .conv__ecran, .conv__panneau[data-etat="neuve"] .conv__fichiers { display: none; }
.conv__panneau[data-etat="neuve"] .conv__fil { display: none; }
.conv[data-colonnes="1"] [data-geste="agrandir"] { display: none; } /* « Agrandir » n'a de sens qu'à deux ou trois colonnes (RG-3) */
.conv[data-agrandie="1"] [data-colonne]:not([data-colonne="1"]), .conv[data-agrandie="2"] [data-colonne]:not([data-colonne="2"]), .conv[data-agrandie="3"] [data-colonne]:not([data-colonne="3"]) { display: none; }
.conv[data-agrandie] .conv__grille { grid-template-columns: minmax(0, 1fr); }
.conv__chemin [data-dossier-a-creer] { font: 400 12px/1.3 var(--t-sans); white-space: nowrap; }
.puce__effort { font-weight: 500; color: var(--t-texte-2); }
.puce__effort::before { content: "· "; }
.survol { outline: 2px dashed var(--t-focus); outline-offset: -2px; }

/* la conversation neuve : le champ « Titre », facultatif (Renommer RG-4) */
.conv__titre-neuf { display: grid; gap: 6px; width: min(100%, 520px); }
.conv__titre-neuf .saisie { width: 100%; text-align: center; }
.conv__titre-neuf .discret { font-size: 12.5px; }

/* ── le bloc de travail d'un tour (RG-7, RG-10) ── */
.travail { border-radius: var(--t-rayon-carte); background: var(--t-carte); box-shadow: var(--t-carte-ombre); overflow: hidden; }
.travail > summary { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px; list-style: none; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--t-texte-2); }
.travail > summary::-webkit-details-marker { display: none; }
.travail > summary:hover { background: var(--t-survol); }
.travail > summary > svg { width: 15px; height: 15px; stroke-width: 1.7; }
.travail[open] > summary { border-bottom: 1px solid var(--t-filet); }
.travail__vivant { display: inline-flex; align-items: center; gap: 10px; color: var(--t-texte); }
.travail__vivant .points { display: inline-flex; gap: 3px; }
.travail__vivant .points::before, .travail__vivant .points::after, .travail__vivant .points b { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--t-direct); animation: point 1.2s ease-in-out infinite; }
.travail__vivant .points b { animation-delay: .18s; }
.travail__vivant .points::after { animation-delay: .36s; }
.travail__mot { font-variant-numeric: tabular-nums; }
.travail .taches { border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--t-filet); }
.travail .etapes { border-radius: 0; box-shadow: none; background: none; }
.travail .etapes:empty { display: none; }
.etape__etat { margin-left: auto; font-size: 12px; color: var(--t-texte-3); white-space: nowrap; }
.etape__mesure { font-size: 12px; color: var(--t-texte-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.etape__mesure:empty { display: none; }
.etape__encours { color: var(--t-pastille-direct); }
.etape__encours::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--t-direct); animation: bat 2s ease-in-out infinite; vertical-align: 1px; }
.etape__attente { color: var(--t-attente); }
.etape summary .bouton--petit { height: 26px; padding: 0 9px; font-size: 12px; }
.etape--pensee summary > span { color: var(--t-texte-2); font-style: italic; }
.pensee__texte { margin: 0; padding: 10px 14px 12px 36px; border-top: 1px solid var(--t-filet); font-size: 13px; line-height: 1.55; color: var(--t-texte-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.etape__note { padding: 8px 14px; border-top: 1px solid var(--t-filet); font-size: 12.5px; color: var(--t-texte-2); }
.vignette { display: block; max-width: 320px; max-height: 240px; margin: 10px 14px; border-radius: var(--t-rayon-p); box-shadow: var(--t-carte-ombre); }

/* ── la question à volets (RG-8) : une option choisie se voit par sa bordure et sa coche ── */
.question { display: grid; gap: 8px; padding-bottom: 6px; }
.question + .question { border-top: 1px solid var(--t-filet); padding-top: 12px; }
.question__options { display: grid; gap: 6px; }
.permission__option .option__coche { position: absolute; left: 11px; top: 11px; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--t-filet-fort); stroke: var(--t-coche-texte); stroke-width: 2.4; padding: 3px; }
.permission__option[aria-pressed="true"] { box-shadow: var(--t-carte-ombre), inset 0 0 0 2px var(--t-coche); background: var(--t-choisi); }
.permission__option[aria-pressed="true"] .option__coche { background: var(--t-coche); box-shadow: none; }
.permission__option[aria-pressed="false"] .option__coche use { visibility: hidden; }
.question__libre-ligne { display: flex; gap: 8px; align-items: center; }
.question__libre-ligne .saisie { flex: 1; min-width: 8rem; height: 34px; font-size: 13.5px; }
.question__libre-ligne .bouton[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--t-coche); }
.question__compte { font-size: 13px; font-weight: 600; color: var(--t-texte); }
.question__manque { font-size: 12.5px; color: var(--t-attente); }
.question__manque:empty { display: none; }
.question__resume { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 6px 16px; font-size: 13.5px; }
.question__resume dt { color: var(--t-texte-2); }
.question__resume dd { color: var(--t-texte); font-weight: 500; }
.permission[data-repondu] .permission__tete { font-weight: 600; color: var(--t-texte); }

/* la file : chaque message, et « Retirer » (RG-10) ; un message retiré reste au fil, marqué */
.file__message { gap: 8px; }
.file__retirer { all: unset; cursor: pointer; font: 600 12px/1 var(--t-sans); color: var(--t-texte); text-decoration: underline; text-underline-offset: 2px; }
.tour--vous[data-retire] .tour__bulle { opacity: .55; text-decoration: line-through; }
.tour--vous[data-en-file] .tour__bulle { opacity: .7; } /* un message qui attend son tour : sa bulle, dite « En file » d'un mot, et rien dessous (RG-10) */
.tour--vous .retire, .tour--vous .en-file { margin-top: 4px; font-size: 12px; color: var(--t-texte-3); }
.piece__vignette { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; }
.saisie__pieces .piece small { font-size: 11px; color: var(--t-texte-3); }

/* les commandes : la zone de recherche, la ligne choisie au clavier (RG-11) */
.commandes [data-recherche] { width: calc(100% - 4px); height: 34px; margin: 0 2px 6px; font-size: 13.5px; }
.commandes li.choisie { background: var(--t-survol); box-shadow: inset 0 0 0 1.5px var(--t-filet-fort); }

/* ── « Écran » : la même conversation en caractères, sur le fond sombre de la maquette (RG-9) ── */
.conv__ecran { flex: 1; min-height: 0; display: flex; flex-direction: column; width: var(--conv-large); margin: 0 auto; }
.terminal { flex: 1; overflow: auto; margin: 12px 0 8px; padding: 18px 20px; border-radius: var(--t-rayon-carte); background: var(--t-term-fond); color: var(--t-term-texte); font: 400 12.5px/1.65 var(--t-mono); scrollbar-width: thin; }
.terminal p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal .invite { margin-top: .9em; color: var(--t-term-gris); }
.terminal .invite b { font-weight: 500; color: var(--t-term-texte); }
.terminal .outil, .terminal .dit, .terminal .pense { position: relative; padding-left: 1.4em; }
.terminal .outil::before, .terminal .dit::before, .terminal .pense::before { content: ""; position: absolute; left: .25em; top: .62em; width: .5em; height: .5em; border-radius: 50%; background: var(--t-net); }
.terminal .dit::before { background: var(--t-term-texte); }
.terminal .pense::before { background: var(--t-term-gris); }
.terminal .dit { margin-top: .6em; }
.terminal .suite { padding-left: 2.6em; color: var(--t-term-gris); max-height: 24em; overflow: auto; }
.terminal .suite.pense { font-style: italic; }
.terminal .plus { color: var(--t-net); }
.terminal .moins { color: var(--t-term-moins); }
.terminal .gris { color: var(--t-term-gris); }
.terminal .note { margin-top: .6em; color: var(--t-term-gris); }
.terminal .en-cours::after { content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: .15em; vertical-align: -.18em; background: var(--t-term-texte); animation: curseur 1.1s steps(1) infinite; }
@keyframes curseur { 50% { opacity: 0; } }
.ecran__demande { margin: .8em 0 .8em 1.4em; max-width: 720px; }
.ecran__demande .permission { font-family: var(--t-mono); }

/* ── la page « Fichiers » de la conversation (RG-13) ── */
.conv__fichiers { flex: 1; min-height: 0; overflow: auto; display: grid; align-content: start; gap: 18px; width: var(--conv-large); margin: 0 auto; padding: 16px 0 24px; outline: none; }
.conv__fichiers.fichiers--survol { outline: 2px dashed var(--t-focus); outline-offset: -4px; }
.fichiers__tete { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fichiers__tete .note { flex-basis: 100%; }
.fichiers__groupe { border-radius: var(--t-rayon-carte); background: var(--t-carte); box-shadow: var(--t-carte-ombre); }
.fichiers__groupe > header { display: flex; align-items: center; gap: 12px; min-height: var(--t-tete-h); padding: 0 14px; border-bottom: 1px solid var(--t-filet); }
.fichiers__groupe > header h3 { font: var(--t-titre); color: var(--t-texte); }
.fichiers__tri { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--t-texte-3); }
.fichiers__tri .saisie { height: 30px; padding: 0 8px; font-size: 12.5px; }
/* une grille pour tout le groupe, chaque ligne sur ses colonnes (subgrid) : une ligne sans « Consulter » garde type, taille et date sous ceux des autres (regard du pilote, points 3 et 8) */
.fichiers__lignes { display: grid; grid-template-columns: 18px minmax(0, 2fr) minmax(0, 1fr) 6.5rem minmax(0, 1fr) auto; padding: 0 14px; }
.fichier-ligne { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--t-filet); font-size: 13.5px; } /* la marge est au groupe : un retrait sur la ligne mangerait sa première colonne (subgrid) */
.fichier-ligne:first-child { border-top: 0; }
.fichier-ligne svg { width: 16px; height: 16px; stroke: var(--t-texte-3); }
.fichier-ligne__nom { font-weight: 500; color: var(--t-texte); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fichier-ligne__type, .fichier-ligne__date { font-size: 12.5px; color: var(--t-texte-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fichier-ligne__taille { font-size: 12.5px; color: var(--t-texte-2); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.fichier-ligne__gestes { display: flex; justify-content: flex-end; gap: 6px; }
.fichier-ligne__gestes .bouton { height: 28px; padding: 0 10px; font-size: 12px; }
.fichiers__groupe > .discret { padding: 12px 14px; }
.conv[data-colonnes="3"] .fichiers__lignes, .conv[data-colonnes="2"] .fichiers__lignes { grid-template-columns: 18px minmax(0, 1fr) auto; }
.conv[data-colonnes="3"] .fichier-ligne__type, .conv[data-colonnes="3"] .fichier-ligne__date, .conv[data-colonnes="3"] .fichier-ligne__taille, .conv[data-colonnes="2"] .fichier-ligne__type, .conv[data-colonnes="2"] .fichier-ligne__date { display: none; }
.depots { display: grid; gap: 8px; }
.depots:empty { display: none; }
.depot { display: grid; grid-template-columns: 18px minmax(0, 1fr) minmax(120px, 2fr) auto auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--t-rayon-carte); background: var(--t-carte); box-shadow: var(--t-carte-ombre); font-size: 13px; }
.depot svg { width: 16px; height: 16px; stroke: var(--t-texte-3); }
.depot__nom { font-weight: 500; color: var(--t-texte); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.depot progress { width: 100%; height: 8px; accent-color: var(--t-jalon); }
.depot__part { font-size: 12.5px; color: var(--t-texte-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── la fenêtre de lecture (RG-17 ; 22/11, S5 et S6 : comme Bebsolo, aux couleurs du thème) : par-dessus l'application entière, la page assombrie
   derrière ; en tête le nom, « Télécharger » et la croix ; le contenu défile dans la fenêtre, sur toute sa hauteur ── */
.lecture { width: min(960px, calc(var(--t-largeur-ecran) - 48px)); max-height: calc(var(--t-hauteur-ecran) - 40px); padding: 0; border: 0; border-radius: var(--t-rayon); background: var(--t-flottant); color: var(--t-texte); box-shadow: var(--t-flottant-ombre); overflow: hidden; }
.lecture[open] { display: flex; flex-direction: column; }
.lecture::backdrop { background: var(--t-voile-dialogue); }
.lecture__tete { flex: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 10px 8px 20px; border-bottom: 1px solid var(--t-filet); }
.lecture__nom { flex: 1; min-width: 0; font: 600 14.5px/1.3 var(--t-sans); color: var(--t-texte); overflow-wrap: anywhere; }
.lecture__croix { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: var(--t-rayon-p); background: none; color: var(--t-texte-2); }
.lecture__croix:hover { background: var(--t-survol); color: var(--t-texte); }
.lecture__croix svg { width: 18px; height: 18px; }
.lecture__corps { flex: 1; min-height: 0; overflow: auto; padding: 20px 24px 24px; scrollbar-width: thin; scrollbar-color: var(--t-filet-fort) transparent; font-size: 15px; line-height: 1.6; color: var(--t-texte); }
.lecture__document { gap: 12px; }
.lecture__document h1 { font-size: 21px; }
.lecture__document h2 { font-size: 18px; }
.lecture__feuille, .lecture__diapositive { padding-top: 8px; }
.lecture__document .md-table + .lecture__feuille, .lecture__document .md-table + .lecture__diapositive, .lecture__document ul + .lecture__diapositive { margin-top: 10px; border-top: 1px solid var(--t-filet); padding-top: 18px; }
.lecture__document td.cellule--chiffre { text-align: right; white-space: nowrap; }
.lecture__document td, .lecture__document th { overflow-wrap: break-word; } /* une cellule de texte garde sa largeur naturelle (« L1C3 » se coupait en deux dans un classeur large, vu le 22/11) ; le tableau défile dans son bloc s'il le faut */
.lecture__note { font-size: 13px; color: var(--t-texte-3); font-style: italic; }
.lecture__texte { margin: 0; padding: 12px 14px; border-radius: var(--t-rayon-carte); background: var(--t-term-fond); color: var(--t-term-texte); font: 400 12.5px/1.6 var(--t-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.lecture__media { display: block; max-width: 100%; max-height: calc(var(--t-hauteur-ecran) - 160px); margin: 0 auto; border-radius: var(--t-rayon-p); }
audio.lecture__media { width: min(100%, 520px); }
.lecture__attente { padding: 40px 0; text-align: center; font-size: 14px; color: var(--t-texte-2); }
.lecture__recours { display: grid; justify-items: start; gap: 12px; padding: 14px 16px; border-radius: var(--t-rayon-carte); background: var(--t-carte); box-shadow: var(--t-carte-ombre); font-size: 13.5px; color: var(--t-texte-2); }
.lecture__echec { box-shadow: var(--t-carte-ombre), inset 0 0 0 1.5px var(--t-defaut); }
.lecture__tronque { margin-top: 16px; box-shadow: var(--t-carte-ombre), inset 0 0 0 1.5px var(--t-attente); }
.lecture__recours p { color: var(--t-texte); }

/* ── le téléphone (module Accès des appareils, Pages servies RG-9 : l'exception nommée), sous la seule capacité « tactile, sans
   survol » : une seule colonne, le fil sur toute la largeur, la saisie en bas de l'écran visible (la hauteur dynamique suit le
   clavier) ; le choix du nombre de colonnes n'y est pas ; la rangée du haut laisse sa place au bouton du menu. Au poste, rien. ── */
@media (hover: none) and (pointer: coarse) {
  .scene[data-page="conversation"] { height: calc(100dvh / var(--t-facteur)); padding: 12px 8px 8px; }
  .conv { gap: 8px; }
  .conv__barre { min-height: 44px; padding-left: 52px; }
  .conv__barre .segment, .conv__barre [data-geste="toutes_les_colonnes"] { display: none; }
  .conv__barre [data-geste="nouvelle"] { flex: 1; min-width: 0; }
  .conv__barre [data-geste="toutes"] { width: 44px; padding: 0; } /* son signe seul ; son nom reste en infobulle */
  .conv__barre [data-geste="toutes"] span { display: none; }
  .conv[data-colonnes] .conv__grille { grid-template-columns: minmax(0, 1fr); }
  .conv__grille > [data-colonne]:not([data-colonne="1"]) { display: none; }
  .conv__panneau { padding: 10px 10px 10px; }
  .conv__ligne { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; } /* le titre, l'état, les gestes : le dossier se lit au poste */
  .conv__ligne > :nth-child(3) { display: none; }
  .conv__fichiers { grid-template-columns: minmax(0, 1fr); }
  .fichiers__groupe > header { flex-wrap: wrap; padding: 8px 14px; }
  .fichiers__lignes { grid-template-columns: 18px minmax(0, 1fr); } /* le nom sur sa ligne, les gestes dessous */
  .fichier-ligne { row-gap: 6px; }
  .fichier-ligne__gestes { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
  .fichier-ligne__type, .fichier-ligne__date, .fichier-ligne__taille { display: none; }
  .depot { grid-template-columns: 18px minmax(0, 1fr) minmax(60px, 1fr) auto; } /* le nom, la barre, « Annuler » : la part se lit dans la barre */
  .depot__part { display: none; }
  /* le doigt fait défiler : la barre, qui rognait le bord droit de la saisie et des réponses, n'y est pas (remarque 10) */
  .conv__fil, .conv__corps, .lecture__corps, .conv__panneau[data-etat="neuve"] .conv__corps { scrollbar-width: none; scrollbar-gutter: auto; } /* l'écran neuf aussi, à la spécificité de sa règle (:281 ; remarque 13) */
  .conv__panneau[data-etat="neuve"] .conv__corps { padding-inline: 3px; } /* le cadre des champs est une ombre tracée dehors : la zone qui défile ne le coupe plus */
}
