/* =====================================================================
   Fenêtres de conversation complètes — DANG, lot L3 (quai.js + quai-modele.js)
   Tout est sous .gq-quai.gq-dang (posée par peindreTout quand l'interrupteur
   DANG est allumé) ou porte une classe qui n'existe qu'avec lui : drapeau
   éteint, le quai d'avant à l'identique.
   Aucune classe ne contient « overlay » (version-check.js).
   ===================================================================== */

/* Onglets — les fenêtres réduites, en rangée au bas de l'écran, à côté des
   fenêtres ouvertes (au lieu de la colonne de bulles rondes). */
.gq-onglets { display: flex; flex-direction: row; align-items: flex-end; gap: 6px; }
.gq-quai.gq-dang .gq-onglet-hote { width: auto; height: auto; }
.gq-quai.gq-dang .gq-onglet { width: 190px; height: 40px; border-radius: 10px 10px 0 0;
    border-bottom: 0; display: flex; align-items: center; gap: 8px; padding: 0 30px 0 8px;
    text-align: left; color: var(--gs-ink); font: inherit; }
.gq-quai.gq-dang .gq-onglet .gq-avatar { width: 26px; height: 26px; flex-shrink: 0; }
.gq-quai.gq-dang .gq-onglet .gq-avatar-lettres { font-size: .7rem; }
.gq-onglet-nom { flex: 1; min-width: 0; font-size: .84rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gq-quai.gq-dang .gq-onglet .gq-nonlus { position: static; flex-shrink: 0; }
/* La croix reste visible sur un onglet (place suffisante, pas de survol à
   viser) et le compteur ne s'efface plus. */
.gq-quai.gq-dang .gq-onglet-hote .gq-bulle-x { top: 11px; right: 6px; opacity: 1; pointer-events: auto;
    border: 0; background: transparent; }
.gq-quai.gq-dang .gq-onglet-hote:hover .gq-nonlus { opacity: 1; }
.gq-quai.gq-dang .gq-onglet:hover { background: var(--gs-panel-2); }

/* Gestes d'un message : ↩ ✏️ 🗑️ portent la classe .gq-reagir — même
   discrétion que le 😊 (style.css : visibles au survol de la bulle). */
.gq-geste { font-size: .8rem; }

/* Citation d'une réponse — auteur + extrait, comme .chat-quote en pleine page. */
.gq-cite { display: flex; flex-direction: column; gap: 1px; width: 100%; margin: 0 0 4px;
    padding: 4px 8px; border: 0; border-left: 3px solid var(--gs-accent);
    border-radius: 6px; background: color-mix(in srgb, var(--gs-ink) 7%, transparent);
    color: inherit; font: inherit; text-align: left; cursor: pointer; }
.gq-cite-aut { font-size: .72rem; font-weight: 700; }
.gq-cite-txt { font-size: .78rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gq-msg-moi .gq-cite { border-left-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .12); }
.gq-msg-modifie { font-size: .7rem; opacity: .65; }
.gq-msg-eclair { outline: 2px solid var(--gs-accent); outline-offset: 2px; }

/* Barre « ↩ Répondre à … » / « ✏️ Modifier le message » au-dessus du champ. */
.gq-reponse { display: flex; align-items: center; gap: 8px; padding: 5px 8px;
    border-left: 3px solid var(--gs-accent); border-radius: 6px; background: var(--gs-panel-2);
    font-size: .8rem; color: var(--gs-ink); }
.gq-reponse.hidden { display: none; }
.gq-reponse-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Gros fichier : la puce d'annulation pendant le téléversement. */
.gq-envoi-x { height: 26px; font-size: .76rem; }

/* Tête : le nom, et dessous le lien « Ouvrir dans Communications » (maquette, écran 2). */
.gq-tete-bloc { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.gq-tete-bloc .gq-tete-nom { flex: 0 0 auto; }
.gq-tete-lien { align-self: flex-start; padding: 0; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: .7rem; line-height: 1.2; color: var(--gs-accent); text-decoration: underline; }
.gq-tete-lien:hover { color: var(--gs-ink); }
.gq-quai.gq-dang .gq-vignette { width: 372px; }
.gq-quai.gq-dang .gq-tete .gq-btn { width: 26px; }

/* Composeur : le champ sur toute la largeur, puis la rangée d'options toujours
   visible — pièce jointe, GIF, vocal, mise en forme, émojis — et ➤ au bout. */
.gq-quai.gq-dang .gq-plus { display: none; }
.gq-quai.gq-dang .gq-ligne { order: 1; }
.gq-quai.gq-dang .gq-outils { order: 2; align-items: center; gap: 5px; }
.gq-quai.gq-dang .gq-outil { width: 30px; height: 30px; padding: 0; border-radius: 50%; background: var(--gs-panel, #fff);
    font-size: .86rem; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.gq-quai.gq-dang .gq-outil[data-gq-outil="gif"] { width: auto; padding: 0 8px; border-radius: 15px; font-size: .66rem; font-weight: 800; }
.gq-quai.gq-dang .gq-outils .gq-envoyer { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; flex: none; }
.gq-quai.gq-dang .gq-outils .gq-fmt-slot { display: inline-flex; }
.gq-tete-lien { white-space: nowrap; }
/* La fenêtre ouverte reste collée au rail ; les onglets attendent à sa gauche (écran 2). */
.gq-quai.gq-dang .gq-onglets { order: -1; }
/* Ordre de la maquette : pièce jointe, GIF, vocal, mise en forme, émojis, puis le reste. */
.gq-quai.gq-dang .gq-outil[data-gq-outil="fichier"] { order: 1; }
.gq-quai.gq-dang .gq-outil[data-gq-outil="gif"] { order: 2; }
.gq-quai.gq-dang .gq-outil[data-gq-outil="micro"] { order: 3; }
.gq-quai.gq-dang .gq-outils .gq-fmt-slot { order: 4; }
.gq-quai.gq-dang .gq-outil[data-gq-outil="emoji"] { order: 5; }
.gq-quai.gq-dang .gq-outil[data-gq-outil="studio"] { order: 6; }
.gq-quai.gq-dang .gq-outil[data-gq-outil="gandalf"] { order: 7; }
.gq-quai.gq-dang .gq-outils .gq-envoyer { order: 9; }
