/* ============================================================
   messagerie.css — M68 « Messagerie en direct » ([POSTE], 04/10) — écran Mail, reproduit à l'identique de la maquette
   validée (MS_Mail clair, MS_Mail_Sombre, MS_Etats). Thème : clair par défaut, sombre si <html data-theme="dark">,
   sinon le réglage de l'appareil (même règle que cit-ds.css). Tout est préfixé .gpm (aucun effet hors de l'écran).
   ============================================================ */
.gpm {
  --gpm-fond: #f2f3f7; --gpm-surface: #fff; --gpm-panneau: #f7f8fa; --gpm-texte: #1c2330; --gpm-texte2: #5b6475; --gpm-pale: #7a8394;
  --gpm-trait: #e3e6ec; --gpm-trait-doux: #eef0f3; --gpm-champ: #cfd5de; --gpm-segment: #e9ecf1; --gpm-segment-actif: #fff;
  --gpm-accent: #0a66d6; --gpm-lien: #0a58c2; --gpm-choisi: #dbe8fb; --gpm-puce: #e8f0fc; --gpm-squelette: #e9ecf1;
  --gpm-fiche-fond: #e3edfb; --gpm-fiche: #1f4f8f; --gpm-annul-fond: #fdeceb; --gpm-annul: #a52a1f; --gpm-dem-fond: #efe7fb; --gpm-dem: #5a3fa0;
  --gpm-autre-fond: #eef1f5; --gpm-autre: #5b6475; --gpm-alerte-fond: #fff1dd; --gpm-alerte: #8a4b00; --gpm-rouge: #d93025; --gpm-vert: #34a853;
  --gpm-ombre: 0 1px 2px rgba(0,0,0,.15);
}
:root[data-theme="dark"] .gpm {
  --gpm-fond: #121418; --gpm-surface: #1c1f25; --gpm-panneau: #17191e; --gpm-texte: #eef0f4; --gpm-texte2: #a7aebb; --gpm-pale: #8d95a3;
  --gpm-trait: #2f333b; --gpm-trait-doux: #272a31; --gpm-champ: #454b56; --gpm-segment: #2b2f37; --gpm-segment-actif: #3a3f49;
  --gpm-accent: #3d8bfd; --gpm-lien: #8ab6ff; --gpm-choisi: #1f2f4a; --gpm-puce: #1d3357; --gpm-squelette: #2b2f37;
  --gpm-fiche-fond: #1d3357; --gpm-fiche: #9cc2ff; --gpm-annul-fond: #45201d; --gpm-annul: #ff9b92; --gpm-dem-fond: #2e2650; --gpm-dem: #c6a6ff;
  --gpm-autre-fond: #2b2f37; --gpm-autre: #a7aebb; --gpm-alerte-fond: #3e2c12; --gpm-alerte: #ffc27a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .gpm {
    --gpm-fond: #121418; --gpm-surface: #1c1f25; --gpm-panneau: #17191e; --gpm-texte: #eef0f4; --gpm-texte2: #a7aebb; --gpm-pale: #8d95a3;
    --gpm-trait: #2f333b; --gpm-trait-doux: #272a31; --gpm-champ: #454b56; --gpm-segment: #2b2f37; --gpm-segment-actif: #3a3f49;
    --gpm-accent: #3d8bfd; --gpm-lien: #8ab6ff; --gpm-choisi: #1f2f4a; --gpm-puce: #1d3357; --gpm-squelette: #2b2f37;
    --gpm-fiche-fond: #1d3357; --gpm-fiche: #9cc2ff; --gpm-annul-fond: #45201d; --gpm-annul: #ff9b92; --gpm-dem-fond: #2e2650; --gpm-dem: #c6a6ff;
    --gpm-autre-fond: #2b2f37; --gpm-autre: #a7aebb; --gpm-alerte-fond: #3e2c12; --gpm-alerte: #ffc27a;
  }
}

.gpm { height: 100%; min-height: 0; display: flex; flex-direction: column; background: var(--gpm-fond); color: var(--gpm-texte);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; font-size: 13px; }
.gpm *, .gpm *::before, .gpm *::after { box-sizing: border-box; }
.gpm svg { flex-shrink: 0; }
.gpm button { font-family: inherit; line-height: normal; cursor: pointer; }   /* pas « font: inherit » : il écraserait les 12,5 px de la maquette */
.gpm button:disabled, .gpm button[aria-disabled="true"] { opacity: .45; cursor: default; }
.gpm :focus-visible { outline: 2px solid var(--gpm-accent); outline-offset: 1px; }
.gpm .ms-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.gpm .ms-scroll::-webkit-scrollbar-track { background: rgba(127,127,127,.12); border-radius: 5px; }
.gpm .ms-scroll::-webkit-scrollbar-thumb { background: rgba(127,127,127,.5); border-radius: 5px; }

/* ---- barre du haut */
.gpm-haut { height: 54px; flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: var(--gpm-surface); border-bottom: 1px solid var(--gpm-trait); }
.gpm-haut b { font-size: 18px; }
.gpm-onglets { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--gpm-segment); }
.gpm-onglets a { height: 28px; padding: 0 14px; border-radius: 7px; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; color: var(--gpm-texte2); }
.gpm-onglets a[aria-current="page"] { background: var(--gpm-segment-actif); box-shadow: var(--gpm-ombre); font-weight: 600; color: var(--gpm-texte); }
.gpm-onglets a[aria-disabled="true"] { opacity: .55; cursor: default; }
.gpm-vide-flex { flex-grow: 1; }
.gpm-etat-ligne { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gpm-pale); }
.gpm-pastille { width: 8px; height: 8px; border-radius: 4px; background: var(--gpm-vert); }
.gpm-pastille.ko { background: #f29900; }
.gpm-btn-icone { height: 28px; border-radius: 8px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; background: transparent; color: var(--gpm-texte2); border: 0; padding: 0 7px; }
.gpm-btn-icone:hover:not(:disabled) { background: var(--gpm-segment); }
.gpm-btn { height: 32px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; background: var(--gpm-surface); color: var(--gpm-texte); border: 1px solid var(--gpm-champ); }
.gpm-btn.petit { height: 28px; }
.gpm-btn.principal { background: var(--gpm-accent); color: #fff; border: 0; font-weight: 600; }
.gpm-btn.doux { background: var(--gpm-puce); color: var(--gpm-lien); border: 0; font-weight: 600; }
.gpm-btn-lien { height: 28px; border-radius: 8px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; background: transparent; color: var(--gpm-lien); border: 0; padding: 0 4px; }
.gpm-tourne svg { animation: gpm-tour 1s linear infinite; }
@keyframes gpm-tour { to { transform: rotate(360deg); } }

/* ---- trois colonnes */
.gpm-corps { flex-grow: 1; min-height: 0; display: flex; }
.gpm-dossiers { width: 230px; flex-shrink: 0; background: var(--gpm-panneau); border-right: 1px solid var(--gpm-trait); display: flex; flex-direction: column; min-height: 0; }
.gpm-dossiers .gpm-nouveau { padding: 10px 10px 4px; }
.gpm-dossiers .gpm-nouveau .gpm-btn { display: flex; width: 100%; justify-content: center; }
/* arborescence façon Outlook (M68b v2) : groupes et sous-dossiers repliables */
.gpm-arbre { flex-grow: 1; overflow: auto; padding: 0 6px 10px; }
.gpm-arbre details.ms-tree { margin-top: 6px; }
.gpm-arbre details.gpm-sous { margin-top: 0; }
.gpm-arbre summary { list-style: none; }
.gpm-arbre summary::-webkit-details-marker { display: none; }
.gpm-boite-titre { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px; cursor: pointer; color: var(--gpm-texte); border-radius: 6px; }
.gpm-boite-titre:hover { background: rgba(127,127,127,.12); }
.gpm-boite-titre .nom { font-size: 13px; font-weight: 700; flex-grow: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpm-boite-titre .libelle { font-size: 10.5px; color: var(--gpm-pale); white-space: nowrap; }
.gpm-boite-titre .nb-replie { font-size: 11px; font-weight: 700; color: var(--gpm-lien); }
.ms-tree[open] > summary .nb-replie { display: none; }
.gpm-chev { display: inline-flex; color: var(--gpm-pale); transition: transform .15s; flex-shrink: 0; }
.ms-tree[open] > summary .gpm-chev { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .gpm-chev { transition: none; } }
.gpm-arbre-corps { display: flex; flex-direction: column; gap: 1px; }
.gpm-arbre-vide { padding: 4px 8px 4px 22px; font-size: 11.5px; color: var(--gpm-pale); }
.gpm-dossier { display: flex; align-items: center; gap: 8px; height: 28px; min-height: 28px; padding: 0 8px 0 22px; border-radius: 6px; text-decoration: none; font-size: 12.5px; color: var(--gpm-texte); border: 0; background: transparent; width: 100%; text-align: left; cursor: pointer; }
.gpm-dossier.avec-chev { gap: 4px; }
.gpm-dossier.avec-chev > svg { margin-left: 4px; margin-right: 4px; }
.gpm-dossier:hover { background: rgba(127,127,127,.12); }
.gpm-dossier[aria-current="true"] { background: var(--gpm-choisi); color: var(--gpm-lien); font-weight: 600; }
.gpm-dossier .nom { flex-grow: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpm-dossier .nb { font-size: 11.5px; font-weight: 700; color: var(--gpm-lien); }
.gpm-dossier .nb.gris { color: var(--gpm-pale); }
.gpm-epingle { display: none; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--gpm-pale); align-items: center; justify-content: center; flex-shrink: 0; }
.gpm-dossier:hover .gpm-epingle, .gpm-dossier:focus-within .gpm-epingle, .gpm-epingle.actif { display: inline-flex; }
.gpm-epingle.actif { color: #e8a200; }
.gpm-epingle.actif svg { fill: currentColor; }
.gpm-epingle:hover { background: rgba(127,127,127,.2); color: var(--gpm-texte); }
.gpm-note-bas { padding: 8px 12px; border-top: 1px solid var(--gpm-trait); font-size: 11.5px; color: var(--gpm-pale); }

.gpm-liste { width: 360px; flex-shrink: 0; background: var(--gpm-surface); border-right: 1px solid var(--gpm-trait); display: flex; flex-direction: column; min-height: 0; }
.gpm.gpm-large .gpm-liste { width: 400px; }
.gpm.gpm-large .gpm-dossiers { width: 260px; }
/* colonnes redimensionnables (demande d'Omar 04/10) : la colonne garde sa bordure de 1 px, la poignée (8 px de prise) la chevauche */
.gpm-poignee { flex: 0 0 8px; margin: 0 -4px; position: relative; z-index: 5; cursor: col-resize; touch-action: none; outline: none; }
.gpm-poignee::after { content: ''; position: absolute; top: 0; bottom: 0; left: 3px; width: 2px; background: transparent; transition: background .12s; }
.gpm-poignee:hover::after, .gpm-poignee.actif::after, .gpm-poignee:focus-visible::after { background: var(--gpm-accent); }
.gpm.gpm-glisse, .gpm.gpm-glisse * { cursor: col-resize !important; user-select: none; }
.gpm.gpm-glisse iframe { pointer-events: none; }
.gpm:not(.gpm-etroit).gpm-l-boites .gpm-dossiers { width: var(--gpm-l-boites); }
.gpm:not(.gpm-etroit).gpm-l-liste .gpm-liste { width: var(--gpm-l-liste); }
.gpm.gpm-etroit .gpm-poignee { display: none; }
/* ---- lot 3 : CONTACTS Outlook (maquette MSP_Contacts) */
.gpm-kliste { width: 320px; flex-shrink: 0; background: var(--gpm-surface); border-right: 1px solid var(--gpm-trait); display: flex; flex-direction: column; min-height: 0; }
.gpm:not(.gpm-etroit).gpm-l-kliste .gpm-kliste { width: var(--gpm-l-kliste); }
.gpm-ligne-outils { display: flex; gap: 8px; }
.gpm-contacts .gpm-filtres { gap: 4px; flex-wrap: nowrap; }
.gpm-contacts .gpm-filtres button { padding: 0 8px; white-space: nowrap; }
.gpm-ligne-outils .gpm-recherche { flex-grow: 1; min-width: 0; }
.gpm-kliste-zone { flex-grow: 1; min-height: 0; display: flex; }
.gpm-kliste-corps { flex-grow: 1; overflow: auto; min-width: 0; }
.gpm-klettre { padding: 8px 14px 4px; }
.gpm-kligne { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 14px; border: 0; background: transparent; color: var(--gpm-texte); text-align: left; }
.gpm-kligne:hover { background: var(--gpm-panneau); }
.gpm-kligne[aria-current="true"] { background: var(--gpm-choisi); }
.gpm-kligne[aria-current="true"] .nom { font-weight: 600; }
.gpm-kavatar { width: 32px; height: 32px; border-radius: 16px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--gpm-puce); color: var(--gpm-lien); font-size: 12px; font-weight: 700; }
.gpm-kavatar.grand { width: 64px; height: 64px; border-radius: 32px; background: #0a3d7a; color: #fff; font-size: 22px; }
.gpm-ktexte { min-width: 0; flex-grow: 1; }
.gpm-ktexte .nom { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpm-ktexte .sous { font-size: 11.5px; color: var(--gpm-pale); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpm-kindex { width: 20px; padding: 6px 0; display: flex; flex-direction: column; align-items: center; flex-shrink: 0; overflow: hidden; }
.gpm-kindex button { border: 0; background: transparent; padding: 0; font-size: 10.5px; line-height: 1.35; color: var(--gpm-lien); }
.gpm-kindex button:disabled { color: var(--gpm-trait); }
.gpm-kfiche { flex-grow: 1; min-width: 0; background: var(--gpm-surface); overflow: auto; display: flex; flex-direction: column; position: relative; }
.gpm-kcarte, .gpm-kform { padding: 22px 28px; max-width: 760px; width: 100%; }
.gpm-kentete { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.gpm-ktitre { min-width: 0; flex-grow: 1; }
.gpm-ktitre .nom { font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.gpm-ktitre .sous { font-size: 13px; color: var(--gpm-texte2); }
.gpm-kchamp { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--gpm-trait-doux); }
.gpm-kchamp .lib { width: 110px; flex-shrink: 0; font-size: 12.5px; color: var(--gpm-pale); }
.gpm-kchamp .val { font-size: 13.5px; flex-grow: 1; min-width: 0; overflow-wrap: anywhere; }
.gpm-kchamp a.gpm-btn-lien { text-decoration: none; }
.gpm-kplanning h3 { margin: 22px 0 4px; font-size: 12px; font-weight: 700; color: var(--gpm-texte2); text-transform: uppercase; letter-spacing: .04em; }
.gpm-kplanning-phrase { font-size: 12.5px; color: var(--gpm-pale); margin-bottom: 6px; }
.gpm-kinter { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 0; border: 0; border-top: 1px solid var(--gpm-trait-doux); background: transparent; color: var(--gpm-texte); text-align: left; }
.gpm-kinter:hover { background: var(--gpm-panneau); }
.gpm-kinter b { font-size: 13px; }
.gpm-kinter .quoi { font-size: 12.5px; color: var(--gpm-texte2); flex-grow: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpm-kbadge { height: 19px; padding: 0 7px; border-radius: 10px; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; white-space: nowrap; }
.gpm-kbadge.orange { background: var(--gpm-alerte-fond); color: var(--gpm-alerte); }
.gpm-kbadge.vert { background: #e3f4e8; color: #1a6e37; }
.gpm-kbadge.rouge { background: var(--gpm-annul-fond); color: var(--gpm-annul); }
.gpm-kbadge.bleu { background: var(--gpm-fiche-fond); color: var(--gpm-fiche); }
.gpm-kbadge.gris { background: var(--gpm-autre-fond); color: var(--gpm-autre); }
:root[data-theme="dark"] .gpm-kbadge.vert { background: #173d25; color: #8fe0a8; }
.gpm-kconfirmer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 28px 0; padding: 10px 12px; border-radius: 8px; background: var(--gpm-annul-fond); color: var(--gpm-annul); font-size: 12.5px; }
.gpm-kconfirmer span { flex-grow: 1; min-width: 200px; }
.gpm-btn.danger { background: var(--gpm-rouge); color: #fff; border: 0; font-weight: 600; }
.gpm-kform h2 { margin: 0 0 14px; font-size: 18px; }
.gpm-kgrille { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.gpm-kfield { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--gpm-texte2); }
.gpm-kfield.large { grid-column: span 2; }
.gpm-kfield input { height: 34px; padding: 0 10px; border: 1px solid var(--gpm-champ); border-radius: 8px; background: var(--gpm-surface); color: var(--gpm-texte); font: inherit; font-size: 13px; }
.gpm-kfield input:focus { outline: 2px solid var(--gpm-accent); outline-offset: -1px; border-color: var(--gpm-accent); }
.gpm-kerreur { min-height: 18px; margin: 10px 0 0; font-size: 12.5px; color: var(--gpm-rouge); }
.gpm-kactions { display: flex; gap: 8px; margin-top: 8px; }
.gpm-btn-retour-k { display: none; margin: -8px 0 8px -6px; }
.gpm-contacts.gpm-etroit .gpm-poignee { display: none; }
.gpm-contacts.gpm-etroit .gpm-kliste { width: 100%; border-right: 0; }
.gpm-contacts.gpm-etroit.fiche-ouverte .gpm-kliste { display: none; }
.gpm-contacts.gpm-etroit:not(.fiche-ouverte) .gpm-kfiche { display: none; }
.gpm-contacts.gpm-etroit .gpm-btn-retour-k { display: inline-flex; }
.gpm-contacts.gpm-etroit .gpm-kgrille { grid-template-columns: 1fr; }
.gpm-contacts.gpm-etroit .gpm-kfield.large { grid-column: auto; }

/* ---- lot 4 : NOTES Outlook (maquette MSP_Notes) */
.gpm-ncol { width: 440px; flex-shrink: 0; background: var(--gpm-panneau); border-right: 1px solid var(--gpm-trait); display: flex; flex-direction: column; min-height: 0; }
.gpm:not(.gpm-etroit).gpm-l-ngrille .gpm-ncol { width: var(--gpm-l-ngrille); }
.gpm-noutils { padding: 10px 12px; border-bottom: 1px solid var(--gpm-trait); background: var(--gpm-surface); }
.gpm-ngrille-zone { flex-grow: 1; overflow: auto; min-height: 0; }
.gpm-ngrille { padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.gpm-ncarte { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 10px; border: 2px solid transparent; color: var(--gpm-texte); min-height: 110px; text-align: left; }
.gpm-ncarte:hover { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.gpm-ncarte[aria-current="true"] { border-color: var(--gpm-accent); }
.gpm-ncarte .titre { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.gpm-ncarte .apercu { font-size: 12.5px; color: var(--gpm-texte2); line-height: 1.4; flex-grow: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.gpm-ncarte .date { font-size: 11.5px; color: var(--gpm-pale); }
.gpm-ngrille > .gpm-etat { grid-column: 1 / -1; background: transparent; }
.gpm-nediteur { flex-grow: 1; min-width: 0; background: var(--gpm-surface); display: flex; flex-direction: column; min-height: 0; }
.gpm-nbarre { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-bottom: 1px solid var(--gpm-trait); }
.gpm-nenr { font-size: 12px; color: var(--gpm-pale); }
.gpm-nenr.ok { color: #1a7f37; }
.gpm-nenr.ko { color: var(--gpm-rouge); }
.gpm-ncouleurs { display: flex; gap: 6px; }
.gpm-ncouleur { width: 20px; height: 20px; border-radius: 10px; border: 1px solid var(--gpm-champ); padding: 0; }
.gpm-ncouleur[aria-checked="true"] { border: 2px solid var(--gpm-accent); }
.gpm-ncorps { flex-grow: 1; min-height: 0; display: flex; flex-direction: column; padding: 22px 28px; overflow: auto; }
.gpm-ntitre { border: 0; outline: 0; background: transparent; font: inherit; font-size: 20px; font-weight: 700; color: var(--gpm-texte); padding: 0; margin-bottom: 10px; }
.gpm-ntexte { flex-grow: 1; min-height: 240px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; line-height: 1.6; color: var(--gpm-texte); resize: none; padding: 0; }
.gpm-ntitre:focus-visible, .gpm-ntexte:focus-visible { outline: none; }
.gpm-btn-retour-n { display: none; }
.gpm-notes .gpm-kconfirmer { margin: 12px 18px 0; }
.gpm-notes.gpm-etroit .gpm-poignee { display: none; }
.gpm-notes.gpm-etroit .gpm-ncol { width: 100%; border-right: 0; }
.gpm-notes.gpm-etroit.note-ouverte .gpm-ncol { display: none; }
.gpm-notes.gpm-etroit:not(.note-ouverte) .gpm-nediteur { display: none; }
.gpm-notes.gpm-etroit .gpm-btn-retour-n { display: inline-flex; }

/* lot 2 : drapeau actif, menu « Déplacer vers », avis en bas d'écran */
.gpm { position: relative; }
.gpm-btn-icone.gpm-actif-rouge { color: var(--gpm-rouge); }
.gpm-menu { position: absolute; z-index: 40; width: 260px; max-height: 340px; overflow: auto; background: var(--gpm-surface); border: 1px solid var(--gpm-trait); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 6px; }
.gpm-menu-titre { padding: 6px 8px; font-size: 11.5px; font-weight: 700; color: var(--gpm-pale); text-transform: uppercase; letter-spacing: .04em; }
.gpm-menu-ligne { display: flex; align-items: center; gap: 8px; width: 100%; height: 30px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--gpm-texte); font-size: 12.5px; text-align: left; }
.gpm-menu-ligne span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpm-menu-ligne:hover, .gpm-menu-ligne:focus { background: var(--gpm-choisi); color: var(--gpm-lien); outline: none; }
.gpm-avis { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px);
  padding: 9px 14px; border-radius: 10px; background: #1c2330; color: #fff; font-size: 12.5px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.gpm-avis .gpm-btn-lien { color: #8ab6ff; font-weight: 600; }
:root[data-theme="dark"] .gpm-avis { background: #eef0f4; color: #1c2330; }
:root[data-theme="dark"] .gpm-avis .gpm-btn-lien { color: #0a58c2; }
.gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn-icone .lib { display: none; }
.gpm-outils { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--gpm-trait); }
.gpm-recherche { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border: 1px solid var(--gpm-champ); border-radius: 8px; color: var(--gpm-pale); background: var(--gpm-surface); }
.gpm-recherche input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; color: var(--gpm-texte); flex-grow: 1; min-width: 0; }
.gpm-filtres { display: flex; gap: 5px; flex-wrap: wrap; }
.gpm-filtres button { height: 26px; padding: 0 9px; border-radius: 13px; border: 1px solid var(--gpm-champ); background: var(--gpm-surface); color: var(--gpm-texte2); font-size: 12px; }
.gpm-filtres button[aria-pressed="true"] { border-color: var(--gpm-accent); background: var(--gpm-puce); color: var(--gpm-lien); font-weight: 600; }
.gpm-titre-liste { display: flex; align-items: center; gap: 6px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; border-bottom: 1px solid var(--gpm-trait-doux); }
.gpm-titre-liste span { color: var(--gpm-pale); font-weight: 400; }
.gpm-mails { flex-grow: 1; overflow: auto; min-height: 0; }
.gpm-groupe { padding: 10px 14px 4px; font-size: 11.5px; font-weight: 700; color: var(--gpm-pale); text-transform: uppercase; letter-spacing: .04em; }
.gpm-mail { display: block; width: 100%; text-align: left; padding: 9px 14px 10px 14px; border: 0; border-bottom: 1px solid var(--gpm-trait-doux); color: var(--gpm-texte); background: transparent; }
.gpm-mail:hover { background: var(--gpm-panneau); }
.gpm-mail.non-lu { padding-left: 11px; border-left: 3px solid var(--gpm-accent); }
.gpm-mail[aria-current="true"] { background: var(--gpm-choisi); padding-left: 11px; border-left: 3px solid var(--gpm-accent); }
.gpm-mail .l1, .gpm-mail .l3 { display: flex; align-items: center; gap: 6px; }
.gpm-mail .l3 { margin-top: 2px; }
.gpm-mail .de { flex-grow: 1; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpm-mail .icones { display: inline-flex; gap: 3px; color: var(--gpm-pale); }
.gpm-mail .heure { font-size: 11.5px; color: var(--gpm-pale); }
.gpm-mail .objet { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.gpm-mail .apercu { flex-grow: 1; font-size: 12px; color: var(--gpm-pale); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpm-mail.non-lu .de, .gpm-mail.non-lu .objet { font-weight: 700; }
.gpm-mail.non-lu .objet { font-weight: 600; }
.gpm-mail.non-lu .heure { color: var(--gpm-lien); font-weight: 600; }
.gpm-plus { padding: 10px; text-align: center; }
.gpm-squelette { padding: 12px 14px; border-bottom: 1px solid var(--gpm-trait-doux); display: flex; flex-direction: column; gap: 7px; }
.gpm-squelette span { display: block; height: 9px; border-radius: 5px; background: var(--gpm-squelette); }

.gpm-badge { height: 19px; padding: 0 7px; border-radius: 10px; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; flex-shrink: 0; }
.gpm-badge.fiche { background: var(--gpm-fiche-fond); color: var(--gpm-fiche); }
.gpm-badge.annulation { background: var(--gpm-annul-fond); color: var(--gpm-annul); }
.gpm-badge.demande { background: var(--gpm-dem-fond); color: var(--gpm-dem); }
.gpm-badge.autre { background: var(--gpm-autre-fond); color: var(--gpm-autre); }

/* ---- mail ouvert */
.gpm-lecture { flex-grow: 1; min-width: 0; background: var(--gpm-surface); display: flex; flex-direction: column; min-height: 0; }
.gpm-barre-mail { display: flex; align-items: center; gap: 2px; padding: 6px 10px; border-bottom: 1px solid var(--gpm-trait); flex-wrap: wrap; }
.gpm-sep { width: 1px; height: 18px; background: var(--gpm-trait); margin: 0 4px; }
.gpm-ouvert { flex-grow: 1; min-height: 0; display: flex; flex-direction: column; padding: 16px 22px 0; overflow: auto; }
.gpm-ouvert h2 { margin: 0 0 8px; font-size: 18px; overflow-wrap: anywhere; }
.gpm-entete { display: flex; align-items: flex-start; gap: 10px; }
.gpm-avatar { width: 36px; height: 36px; border-radius: 18px; background: #0a3d7a; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.gpm-qui { min-width: 0; flex-grow: 1; font-size: 12.5px; }
.gpm-qui .adr { color: var(--gpm-pale); }
.gpm-qui .dest { color: var(--gpm-texte2); overflow-wrap: anywhere; }
.gpm-quand { text-align: right; font-size: 12px; color: var(--gpm-pale); flex-shrink: 0; }
.gpm-quand > div { margin-top: 4px; }
.gpm-pieces { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.gpm-piece { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--gpm-trait); border-radius: 8px; background: var(--gpm-surface); max-width: 100%; }
.gpm-piece > span { color: var(--gpm-texte2); }
.gpm-piece .nom { font-size: 12.5px; font-weight: 600; overflow-wrap: anywhere; }
.gpm-piece .info { font-size: 11px; color: var(--gpm-pale); }
.gpm-bandeau { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 8px; background: var(--gpm-alerte-fond); color: var(--gpm-alerte); font-size: 12.5px; margin-bottom: 10px; }
.gpm-cadre { flex-grow: 1; min-height: 320px; width: 100%; border: 0; display: block; background: transparent; margin-top: 4px; }

/* ---- états (chargement, Exchange en panne, compte non relié, dossier vide) */
.gpm-etat { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; background: var(--gpm-surface); }
.gpm-etat .rond { width: 52px; height: 52px; border-radius: 26px; display: inline-flex; align-items: center; justify-content: center; background: var(--gpm-autre-fond); color: var(--gpm-autre); }
.gpm-etat .rond.alerte { background: var(--gpm-alerte-fond); color: var(--gpm-alerte); }
.gpm-etat .rond.info { background: var(--gpm-fiche-fond); color: var(--gpm-fiche); }
.gpm-etat .titre { font-size: 16px; font-weight: 700; }
.gpm-etat .texte { font-size: 13px; color: var(--gpm-texte2); max-width: 420px; line-height: 1.5; }

/* ---- écrans étroits (le vrai écran téléphone viendra au lot 5) */
/* Largeur de LA MESSAGERIE (pas de la fenêtre : dans Planning, le menu de gauche prend sa part) — classes posées par messagerie.js :
   .gpm-moyen  (< 1100 px) : colonne Boîtes 210 px ;
   .gpm-etroit (< 820 px)  : colonne Boîtes en tiroir (bouton « Dossiers » de l'en-tête, refermé par un dossier, Échap ou un clic à côté),
                             liste OU mail ouvert (bouton « Liste » pour revenir). */
.gpm.gpm-moyen .gpm-dossiers { width: 210px; }
.gpm-btn-dossiers, .gpm-btn-retour { display: none; }
.gpm.gpm-etroit .gpm-btn-dossiers { display: inline-flex; }
.gpm.gpm-etroit.mail-ouvert .gpm-btn-retour { display: inline-flex; }
.gpm.gpm-etroit .gpm-corps { position: relative; }
.gpm.gpm-etroit .gpm-dossiers { position: absolute; left: 0; top: 0; bottom: 0; z-index: 30; width: min(280px, 85%); transform: translateX(-102%); transition: transform .18s ease-out; box-shadow: 10px 0 30px rgba(0,0,0,.18); visibility: hidden; }
.gpm.gpm-etroit.gpm-tiroir .gpm-dossiers { transform: none; visibility: visible; }
.gpm.gpm-etroit .gpm-liste { width: 100%; border-right: 0; }
.gpm.gpm-etroit.mail-ouvert .gpm-liste { display: none; }
.gpm.gpm-etroit:not(.mail-ouvert) .gpm-lecture { display: none; }
.gpm.gpm-etroit .gpm-haut { gap: 8px; padding: 0 10px; }
.gpm.gpm-etroit .gpm-etat-ligne span + span { display: none; }
@media (prefers-reduced-motion: reduce) { .gpm.gpm-etroit .gpm-dossiers { transition: none; } }

/* ============================================================ M74 « Messagerie — compléments » (planches MC_*, validées par Omar le 04/10)
   Bloc placé en fin de fichier : il l'emporte sur les règles précédentes de même poids. Mesures de la maquette. */
/* -- boutons de l'envoi (lot 2b) : grisés, curseur interdit, bulle « Disponible bientôt » */
.gpm-btn-icone.gpm-bientot { color: var(--gpm-pale); opacity: .55; cursor: not-allowed; padding: 0 9px; }
.gpm-btn-icone.gpm-bientot:hover { background: transparent; }
.gpm button.gpm-bientot { opacity: .55; cursor: not-allowed; }
.gpm-bulle { position: absolute; z-index: 60; padding: 4px 8px; border-radius: 6px; background: #1c2330; color: #fff; font-size: 12px; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.2); pointer-events: none; }
:root[data-theme="dark"] .gpm-bulle { background: #eef0f4; color: #1c2330; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .gpm-bulle { background: #eef0f4; color: #1c2330; } }
/* -- barre du mail : lu / drapeau / supprimer = carrés 32 × 28 ; « Déplacer ⌄ » ; drapeau actif rouge sur fond gris */
.gpm-btn-carre { width: 32px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--gpm-texte2); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.gpm-btn-carre:hover:not(:disabled) { background: var(--gpm-segment); }
.gpm-btn-carre[aria-pressed="true"] { background: var(--gpm-segment); }
.gpm-btn-carre[aria-label="Drapeau"][aria-pressed="true"] { color: var(--gpm-rouge); }
.gpm-btn-carre.gpm-inactif { opacity: .45; cursor: not-allowed; }
.gpm-btn-deplacer { height: 28px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--gpm-texte2); display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
.gpm-btn-deplacer:hover:not(:disabled), .gpm-btn-deplacer[aria-expanded="true"] { background: var(--gpm-segment); }
.gpm-menu { width: 230px; box-shadow: 0 10px 30px rgba(15,23,42,.2); }
/* -- avis noir + « Annuler · 9 s » bleu (mêmes couleurs en clair et en sombre, planche sombre) */
.gpm-avis, :root[data-theme="dark"] .gpm-avis { background: #1c2330; color: #fff; border-radius: 10px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.3); gap: 10px; }
.gpm .gpm-avis.gpm-avis-m83 { gap: 12px; padding: 10px 14px; white-space: nowrap; }   /* M83 : avis après « Créer une demande » */
.gpm-btn-encours { height: 28px; padding: 0 9px; border: 0; background: transparent; color: #7a8394; opacity: .55; font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; }
.gpm .gpm-btn-encours:disabled { opacity: .55; cursor: progress; }
.gpm-avis-annuler { height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: #3d8bfd; color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
/* -- étoile Favoris */
.gpm-epingle { color: var(--gpm-pale); }
.gpm-epingle.actif { color: #e0a800; }
/* -- poignées : trait 1 px au repos (bordure de la colonne), 2 px bleu + pastille ⋮ au survol, 3 px pendant le glissement */
.gpm-poignee::after { left: 3px; width: 2px; }
.gpm-poignee:hover::after, .gpm-poignee:focus-visible::after { background: #0a66d6; width: 2px; }
.gpm-poignee.actif::after { background: #3d8bfd; width: 3px; left: 2px; }
.gpm-poignee-pastille { display: none; position: absolute; top: 46%; left: -3px; width: 14px; height: 34px; border-radius: 7px; background: #0a66d6; color: #fff; font-size: 10px; align-items: center; justify-content: center; pointer-events: none; }
.gpm-poignee:hover .gpm-poignee-pastille, .gpm-poignee:focus-visible .gpm-poignee-pastille { display: inline-flex; }
.gpm-poignee.actif .gpm-poignee-pastille { display: inline-flex; background: #3d8bfd; }
/* -- états (MC_Mail_Etats / MC_Contacts_Etats) */
.gpm-etat .rond { width: 50px; height: 50px; border-radius: 25px; }
.gpm-etat .titre { font-size: 15px; }
.gpm-etat .texte { font-size: 12.5px; max-width: 360px; }
.gpm-reco { display: flex; gap: 8px; align-items: center; }
.gpm-mdp { height: 32px; width: 200px; padding: 0 10px; border: 1px solid var(--gpm-champ); border-radius: 7px; font: inherit; font-size: 13px; background: var(--gpm-surface); color: var(--gpm-texte); }
.gpm-mdp[aria-invalid="true"] { border-color: var(--gpm-rouge); }
.gpm-bandeau-bloc { margin-bottom: 10px; }
.gpm-bandeau-bloc .gpm-bandeau { margin-bottom: 4px; }
.gpm-bandeau-note { font-size: 12.5px; color: var(--gpm-texte2); }
/* -- fenêtre étroite : « Dossiers » ou « ‹ Liste » dans l'en-tête, titre 17 px, tiroir 280 px sur voile */
.gpm.gpm-etroit .gpm-haut b { font-size: 17px; }
.gpm.gpm-etroit .gpm-etat-ligne span + span { display: inline; }
.gpm.gpm-etroit.mail-ouvert .gpm-btn-dossiers { display: none; }
.gpm-btn.gpm-btn-retour { gap: 4px; font-size: 13px; }
.gpm.gpm-etroit .gpm-dossiers { width: 280px; box-shadow: 8px 0 30px rgba(0,0,0,.25); }
.gpm.gpm-etroit .gpm-corps::before { content: ''; position: absolute; inset: 0; z-index: 25; background: rgba(15,23,42,.35); opacity: 0; pointer-events: none; transition: opacity .18s; }
.gpm.gpm-etroit.gpm-tiroir .gpm-corps::before { opacity: 1; pointer-events: auto; }
/* -- Contacts : sélecteur CRM / Outlook dans l'en-tête */
.gpm-source { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--gpm-segment); }
.gpm-source button { height: 28px; padding: 0 14px; border: 0; border-radius: 7px; font-size: 13px; background: transparent; color: var(--gpm-texte2); }
.gpm-source button[aria-pressed="true"] { background: var(--gpm-segment-actif); font-weight: 600; color: var(--gpm-texte); box-shadow: var(--gpm-ombre); }
/* -- Contacts : fiche (MC_Contacts_Fiche_Sombre) */
.gpm-kcarte { padding: 18px 24px; }
.gpm-kentete { gap: 14px; }
.gpm-kavatar.grand { width: 56px; height: 56px; border-radius: 28px; font-size: 19px; }
.gpm-ktitre .nom { font-size: 19px; }
.gpm-kchamp { padding: 9px 0; }
.gpm-kplanning-phrase .lib { color: var(--gpm-pale); margin-right: 2px; }
.gpm-kbadge.vert { background: #e3f4e8; color: #1a6e37; }
.gpm-kbadge.gris { background: #eef1f5; color: #5b6475; }
:root[data-theme="dark"] .gpm-kbadge.vert { background: #1d3a26; color: #8fd6a3; }
:root[data-theme="dark"] .gpm-kbadge.gris { background: #2c3038; color: #c3c9d4; }
/* -- confirmation dans la page (contact : alertdialog ; note : version compacte) */
.gpm-kconfirmer { display: flex; align-items: center; gap: 12px; margin: 18px 24px 0; padding: 12px 14px; border-radius: 10px; border: 1px solid #efc4c0; background: #fdeceb; color: var(--gpm-texte); font-size: 13px; }
:root[data-theme="dark"] .gpm-kconfirmer { background: #45201d; border-color: #efc4c0; }
.gpm-kconfirmer > svg { color: var(--gpm-rouge); }
.gpm-kconfirmer .texte { flex-grow: 1; min-width: 180px; }
.gpm-kconfirmer.petit { gap: 10px; margin: 12px 18px 0; padding: 10px 12px; }
.gpm-btn.danger, .gpm-btn.petit.danger { background: #c62828; color: #fff; border: 0; font-weight: 600; padding: 0 12px; }
/* -- Contacts : formulaire (MC_Contacts_Formulaire) */
.gpm-kform { padding: 0; max-width: none; }
.gpm-kform-barre { display: flex; align-items: center; gap: 8px; padding: 12px 22px; border-bottom: 1px solid var(--gpm-trait); }
.gpm-kform-barre b { font-size: 16px; }
.gpm-kgrille { padding: 16px 22px; grid-template-columns: 1fr 1fr; gap: 12px 16px; max-width: 760px; }
.gpm-kfield { gap: 0; }
.gpm-kfield label { font-size: 11.5px; color: var(--gpm-texte2); margin-bottom: 4px; }
.gpm-kfield input { height: 32px; border-radius: 7px; }
.gpm-kfield input[aria-invalid="true"] { border-color: #d93025; }
.gpm-kerreur-champ { font-size: 11.5px; color: #d93025; margin-top: 3px; min-height: 0; }
.gpm-kerreur { margin: 0 22px; }
.gpm-kform-note { padding: 0 22px 16px; font-size: 12px; color: var(--gpm-pale); }
.gpm-contacts.gpm-etroit .gpm-kgrille { grid-template-columns: 1fr; }
/* -- Notes (MC_Notes_Etats) */
.gpm-ngrille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gpm-ncarte { height: 110px; min-height: 0; border: 0; box-shadow: 0 1px 2px rgba(0,0,0,.08); overflow: hidden; }
.gpm-ncarte[aria-current="true"] { border: 0; box-shadow: 0 0 0 2px #0a66d6; }
.gpm-ncouleur { width: 22px; height: 22px; border-radius: 11px; border: 1px solid var(--gpm-champ); }
.gpm-ncouleur[aria-pressed="true"] { border: 2px solid #0a66d6; }
.gpm-nenr { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--gpm-pale); }
.gpm-nenr.ok { color: #1a7f37; }
.gpm-nenr.ko { color: #c62828; }
.gpm-ncorps { margin: 14px 18px; padding: 18px 28px; border-radius: 10px; }
.gpm-ntitre { font-size: 19px; margin-bottom: 8px; }
/* -- Contacts / Notes en fenêtre étroite : « ‹ Liste » dans l'en-tête quand la fiche (ou la note) est ouverte seule */
.gpm-btn-retour-k, .gpm-btn-retour-n, .gpm-contacts.gpm-etroit .gpm-btn-retour-k, .gpm-notes.gpm-etroit .gpm-btn-retour-n { display: none; margin: 0; }
.gpm-contacts.gpm-etroit.fiche-ouverte .gpm-btn-retour-k, .gpm-notes.gpm-etroit.note-ouverte .gpm-btn-retour-n { display: inline-flex; }
.gpm.gpm-etroit .gpm-etat-suite { display: none; }

/* ============================================================ lot 2b-1 : RÉDACTION (planche MS_Redaction) — dans le volet du mail */
.gpm-redaction { flex-grow: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; background: var(--gpm-surface); }
.gpm-r-tete { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid var(--gpm-trait); }
.gpm-r-etat { font-size: 12px; color: var(--gpm-pale); }
.gpm-r-etat.ko { color: var(--gpm-rouge); }
.gpm-r-champs { padding: 4px 16px; }
.gpm-r-ligne { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--gpm-trait-doux); }
.gpm-r-lib { width: 44px; flex-shrink: 0; font-size: 12.5px; color: var(--gpm-pale); }
.gpm-r-puces { flex-grow: 1; min-width: 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.gpm-r-puce { height: 24px; padding: 0 9px; border-radius: 12px; background: var(--gpm-puce); color: var(--gpm-lien); font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; max-width: 100%; }
.gpm-r-puce-x { border: 0; background: transparent; color: inherit; padding: 0; display: inline-flex; cursor: pointer; }
.gpm-r-saisie, .gpm-r-objet { border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; color: var(--gpm-texte); flex-grow: 1; min-width: 120px; padding: 2px 0; }
.gpm-r-sugg { position: absolute; left: 52px; top: 64px; width: 330px; max-width: calc(100% - 64px); z-index: 20; background: var(--gpm-surface); border: 1px solid var(--gpm-trait); border-radius: 9px; box-shadow: 0 10px 30px rgba(15,23,42,.18); overflow: hidden; }
.gpm-r-sugg[hidden] { display: none; }
.gpm-r-option { padding: 8px 12px; cursor: pointer; }
.gpm-r-option[aria-selected="true"], .gpm-r-option:hover { background: var(--gpm-choisi); }
.gpm-r-option .nom { font-size: 13px; font-weight: 600; }
.gpm-r-option .info { font-size: 11.5px; color: var(--gpm-pale); }
.gpm-r-outils { display: flex; gap: 2px; padding: 4px 12px; border-bottom: 1px solid var(--gpm-trait-doux); }
.gpm-r-corps { flex-grow: 1; min-height: 120px; overflow: auto; padding: 14px 18px; font-size: 13.5px; line-height: 1.55; outline: 0; color: var(--gpm-texte); }
.gpm-r-corps blockquote, .gpm-r-corps .gpm-citation { margin: 16px 0 0; padding: 10px 12px; border-left: 3px solid var(--gpm-trait); color: var(--gpm-pale); font-size: 12.5px; }
.gpm-r-corps hr { border: 0; border-top: 1px solid var(--gpm-trait-doux); margin: 12px 0; }
.gpm-r-pied { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--gpm-trait); }
.gpm-redaction .gpm-squelette { padding: 16px; }
/* ============================================================ TÉLÉPHONE (planches MS_Tel_Liste, MS_Tel_Mail_Sombre) */
.gpm.gpm-tel { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--gpm-fond); color: var(--gpm-texte); }
.gpm-t-tete { flex-shrink: 0; display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 8px; background: var(--gpm-surface); border-bottom: 1px solid var(--gpm-trait); }
.gpm-t-icone { width: 44px; height: 44px; border: 0; background: transparent; color: var(--gpm-lien); display: inline-flex; align-items: center; justify-content: center; }
.gpm-t-titre { font-size: 17px; flex-grow: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpm-t-compte { font-size: 13px; color: var(--gpm-lien); font-weight: 600; }
.gpm-t-recherche { padding: 8px 12px; background: var(--gpm-surface); border-bottom: 1px solid var(--gpm-trait); }
.gpm-t-recherche[hidden] { display: none; }
.gpm-t-liste { flex-grow: 1; min-height: 0; overflow: auto; padding-bottom: 84px; }
.gpm-t-groupe { padding: 10px 16px 4px; font-size: 12px; font-weight: 700; color: var(--gpm-pale); text-transform: uppercase; }
.gpm-t-mail { display: flex; gap: 10px; width: 100%; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--gpm-trait-doux); background: var(--gpm-surface); color: var(--gpm-texte); text-align: left; font: inherit; }
.gpm-t-point { width: 8px; flex-shrink: 0; padding-top: 6px; }
.gpm-t-point span { display: block; width: 8px; height: 8px; border-radius: 4px; background: var(--gpm-accent); }
.gpm-t-texte { min-width: 0; flex-grow: 1; }
.gpm-t-texte .l1 { display: flex; gap: 6px; align-items: center; }
.gpm-t-texte .de { flex-grow: 1; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpm-t-texte .h { font-size: 12.5px; color: var(--gpm-pale); }
.gpm-t-texte .l2 { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpm-t-texte .l3 { display: flex; gap: 6px; align-items: center; }
.gpm-t-texte .apercu { flex-grow: 1; min-width: 0; font-size: 13px; color: var(--gpm-pale); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpm-t-mail.non-lu .de { font-weight: 700; }
.gpm-t-mail.non-lu .l2 { font-weight: 600; }
.gpm-t-sq { padding: 12px 16px; }
.gpm-t-nouveau { position: absolute; right: 16px; bottom: 24px; height: 48px; padding: 0 18px; border-radius: 24px; border: 0; background: var(--gpm-accent); color: #fff; font: inherit; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 6px 18px rgba(10,102,214,.35); }
.gpm-t-voile { position: absolute; inset: 0; z-index: 40; background: rgba(15,23,42,.35); }
.gpm-t-tiroir { position: absolute; left: 0; top: 0; bottom: 0; width: 280px; max-width: 85%; background: var(--gpm-surface); box-shadow: 8px 0 30px rgba(0,0,0,.25); overflow: auto; padding: 10px 8px; }
.gpm-t-dossier { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--gpm-texte); font: inherit; font-size: 15px; text-align: left; }
.gpm-t-dossier[aria-current="true"] { background: var(--gpm-choisi); color: var(--gpm-lien); font-weight: 600; }
.gpm-t-dossier .nom { flex-grow: 1; }
.gpm-t-dossier .n { font-size: 13px; color: var(--gpm-lien); font-weight: 600; }
.gpm-t-retour { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--gpm-lien); font: inherit; font-size: 15px; }
.gpm-t-ouvert { flex-grow: 1; min-height: 0; overflow: auto; padding: 14px 16px; background: var(--gpm-surface); }
.gpm-t-ouvert h2 { margin: 0 0 10px; font-size: 19px; line-height: 1.3; }
.gpm-t-qui { display: flex; gap: 10px; align-items: center; }
.gpm-t-qui .gpm-avatar { width: 38px; height: 38px; border-radius: 19px; flex-shrink: 0; }
.gpm-t-qui .nom { font-size: 15px; font-weight: 600; }
.gpm-t-qui .quand { font-size: 12.5px; color: var(--gpm-pale); }
.gpm-t-pastilles { margin: 10px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.gpm-t-pieces { display: flex; gap: 8px; overflow-x: auto; margin: 10px 0 12px; }
.gpm-t-piece { flex-shrink: 0; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--gpm-trait); border-radius: 9px; background: transparent; color: var(--gpm-texte); font: inherit; font-size: 13px; }
.gpm-tel .gpm-cadre { min-height: 320px; }
.gpm-t-actions { flex-shrink: 0; display: flex; border-top: 1px solid var(--gpm-trait); background: var(--gpm-surface); padding-bottom: 6px; }
.gpm-t-action { flex: 1; height: 52px; border: 0; background: transparent; color: var(--gpm-lien); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; font-size: 11px; }
.gpm-t-action:disabled { opacity: .45; }
/* ============================================================ M78 RÉDACTION (planches RD_*) */
.gpm-r-lib { width: 52px; }
.gpm-r-puce { border: 1px solid var(--gpm-puce); padding: 0 8px; }
.gpm-r-puce.externe { background: #fff1dd; border-color: #f3c27a; color: #8a4b00; }
.gpm-r-puce.invalide { background: #fdeceb; border-color: #efc4c0; color: #a52a1f; }
.gpm-r-externe { font-size: 10.5px; font-weight: 700; padding: 0 5px; border-radius: 6px; background: #8a4b00; color: #fff1dd; }
:root[data-theme="dark"] .gpm-r-puce.externe { background: #3e2c12; border-color: #7a5a20; color: #ffc27a; }
:root[data-theme="dark"] .gpm-r-externe { background: #ffc27a; color: #3e2c12; }
:root[data-theme="dark"] .gpm-r-puce.invalide { background: #45201d; border-color: #7a3a35; color: #ff9b92; }
.gpm-r-invalide { font-size: 11.5px; color: #c62828; padding: 0 0 4px 60px; }
.gpm-r-saisie::placeholder { color: var(--gpm-pale); }
.gpm-r-pieces { padding: 8px 16px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--gpm-trait-doux); }
.gpm-r-pieces[hidden] { display: none; }
.gpm-r-piece { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--gpm-trait); border-radius: 8px; background: var(--gpm-surface); }
.gpm-r-piece b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gpm-r-piece .info { font-size: 11.5px; color: var(--gpm-pale); white-space: nowrap; }
.gpm-r-piece.refus { border-color: #efc4c0; background: #fdeceb; }
:root[data-theme="dark"] .gpm-r-piece.refus { border-color: #7a3a35; background: #45201d; }
.gpm-r-refus { font-size: 12px; color: #c62828; white-space: nowrap; }
.gpm-r-barre { width: 120px; height: 6px; border-radius: 3px; background: var(--gpm-segment); overflow: hidden; flex-shrink: 0; }
.gpm-r-barre div { height: 6px; background: var(--gpm-accent); }
.gpm-r-retirer { margin-left: auto; width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--gpm-pale); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gpm-r-note { font-size: 11.5px; color: var(--gpm-pale); }
.gpm-r-corps { padding: 12px 18px; }
.gpm-r-signature { color: var(--gpm-texte2); }
.gpm-r-etat { display: inline-flex; align-items: center; gap: 5px; }
.gpm-r-etat.ko { color: #c62828; }
.gpm-r-bandeau { display: flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 12.5px; border-bottom: 1px solid var(--gpm-trait); }
.gpm-r-bandeau.rouge { background: #fdeceb; color: #a52a1f; border-bottom-color: #efc4c0; }
.gpm-r-bandeau.orange { background: #fff1dd; color: #8a4b00; }
:root[data-theme="dark"] .gpm-r-bandeau.rouge { background: #45201d; color: #ff9b92; border-bottom-color: #efc4c0; }
:root[data-theme="dark"] .gpm-r-bandeau.orange { background: #3e2c12; color: #ffc27a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .gpm-r-puce.externe { background: #3e2c12; border-color: #7a5a20; color: #ffc27a; }
  :root:not([data-theme]) .gpm-r-externe { background: #ffc27a; color: #3e2c12; }
  :root:not([data-theme]) .gpm-r-puce.invalide { background: #45201d; border-color: #7a3a35; color: #ff9b92; }
  :root:not([data-theme]) .gpm-r-piece.refus { border-color: #7a3a35; background: #45201d; }
  :root:not([data-theme]) .gpm-r-bandeau.rouge { background: #45201d; color: #ff9b92; border-bottom-color: #efc4c0; }
  :root:not([data-theme]) .gpm-r-bandeau.orange { background: #3e2c12; color: #ffc27a; }
}
.gpm-r-avis { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 15; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: #1c2330; color: #fff; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.3); white-space: nowrap; }
.gpm-r-envoyer { position: relative; display: inline-flex; }
.gpm-btn.principal.gpm-ferme { opacity: .4; cursor: not-allowed; padding: 0 12px; }
.gpm-bulle.dessus { position: absolute; left: 0; bottom: 40px; top: auto; white-space: nowrap; padding: 5px 9px; }
/* M78 rédaction au téléphone (planche RD_Tel, 390 × 844) */
.gpm-tr-tete { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 12px; background: var(--gpm-surface); border-bottom: 1px solid var(--gpm-trait); }
.gpm-tr-tete b { font-size: 16px; }
.gpm-tr-annuler { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--gpm-lien); font: inherit; font-size: 15px; }
.gpm-tr-envoyer { height: 34px; padding: 0 14px; border-radius: 17px; border: 0; background: var(--gpm-accent); color: #fff; font: inherit; font-size: 15px; font-weight: 600; }
.gpm-tr-tete .gpm-tr-envoyer.gpm-ferme { opacity: .4; cursor: not-allowed; }
.gpm-tr-tete .gpm-bulle.dessus { left: auto; right: 0; bottom: auto; top: 40px; width: 240px; white-space: normal; z-index: 20; }
.gpm-tr-zone { flex-grow: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; background: var(--gpm-surface); }
.gpm-tr-ligne { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-bottom: 1px solid var(--gpm-trait-doux); }
.gpm-tr-lib { width: 50px; flex-shrink: 0; font-size: 15px; color: var(--gpm-pale); }
.gpm-tr-puces { flex-grow: 1; min-width: 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 6px 0; font-size: 15px; }
.gpm-tr-puces .gpm-r-puce { height: 24px; border-radius: 12px; font-size: 12.5px; }
.gpm-tr-saisie, .gpm-tr-objet { flex-grow: 1; min-width: 80px; border: 0; outline: 0; background: transparent; color: var(--gpm-texte); font: inherit; font-size: 15px; padding: 4px 0; }
.gpm-tr-pieces { padding: 10px 16px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--gpm-trait-doux); }
.gpm-tr-pieces[hidden] { display: none; }
.gpm-tr-corps { flex-grow: 1; min-height: 160px; padding: 14px 16px; font-size: 16px; line-height: 1.55; outline: 0; color: var(--gpm-texte); }
.gpm-tr-corps .gpm-r-signature { font-size: 14px; }
.gpm-tr-pied { flex-shrink: 0; display: flex; align-items: center; gap: 6px; padding: 8px 10px 18px; border-top: 1px solid var(--gpm-trait); background: var(--gpm-surface); }
.gpm-tr-joindre { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--gpm-champ); background: var(--gpm-surface); color: var(--gpm-texte); font: inherit; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.gpm-tr-etat { margin-left: auto; font-size: 12.5px; color: var(--gpm-pale); }
.gpm-tr-etat.ko { color: #c62828; }
.gpm-tel .gpm-r-avis { bottom: 84px; }
/* M78 réglages : contenu posé dans un panneau de [PC] (Mon compte › Signature, Configuration › Messagerie) */
.gpm.gpm-reglage { height: auto; display: block; background: transparent; }
.gpm.gpm-reglage.gpm-sg { padding: 20px 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-content: start; }
.gpm-sg-titre { font-size: 16px; }
.gpm-sg-aide { font-size: 12.5px; color: var(--gpm-texte2); margin: 4px 0 10px; }
.gpm-sg-texte { width: 100%; border: 1px solid var(--gpm-champ); border-radius: 8px; padding: 10px; font: inherit; font-size: 13.5px; background: var(--gpm-surface); color: var(--gpm-texte); resize: vertical; }
.gpm-sg-case { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-top: 8px; }
.gpm-sg-pied { margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.gpm-sg-etat { font-size: 12px; color: var(--gpm-pale); }
.gpm-sg-etat.ko { color: #c62828; }
.gpm-sg-lib { font-size: 12px; font-weight: 700; color: var(--gpm-pale); text-transform: uppercase; }
.gpm-sg-apercu { margin-top: 8px; padding: 14px; border: 1px solid var(--gpm-trait); border-radius: 10px; background: var(--gpm-surface); font-size: 13.5px; line-height: 1.55; }
.gpm-sg-apercu .gpm-r-signature[hidden] { display: none; }
@media (max-width: 760px) { .gpm.gpm-reglage.gpm-sg { grid-template-columns: 1fr; padding: 16px; } }
.gpm-ie { padding: 18px 24px; }
.gpm-ie-carte { background: var(--gpm-surface); border: 1px solid var(--gpm-trait); border-radius: 12px; padding: 16px 18px; display: grid; grid-template-columns: 260px 1fr; gap: 18px; max-width: 900px; }
.gpm-ie-titre { font-size: 14px; }
.gpm-ie-aide { font-size: 12.5px; color: var(--gpm-pale); margin-top: 4px; line-height: 1.45; }
.gpm-ie-droite { display: flex; flex-direction: column; gap: 10px; }
.gpm-ie-ligne { display: flex; align-items: center; gap: 10px; }
.gpm-ie-bascule { width: 46px; height: 26px; border-radius: 13px; background: var(--gpm-champ); position: relative; display: inline-block; flex-shrink: 0; }
.gpm-ie-bascule span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.gpm-ie-bascule.ouvert { background: var(--gpm-accent); }
.gpm-ie-bascule.ouvert span { left: 23px; }
.gpm-ie-pastille { height: 19px; padding: 0 7px; border-radius: 10px; background: var(--gpm-alerte-fond); color: var(--gpm-alerte); font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.gpm-ie-pastille[hidden] { display: none; }
.gpm-ie-boutons { display: flex; gap: 8px; }
.gpm-ie-dernier { font-size: 12px; color: var(--gpm-pale); }
@media (max-width: 760px) { .gpm-ie { padding: 12px; } .gpm-ie-carte { grid-template-columns: 1fr; } }
/* ============================================================ M83 « Rattacher à une fiche » (planches MX_ : panneau, chargement sombre, après) */
.gpm-kbadge.violet { background: var(--gpm-dem-fond); color: var(--gpm-dem); }
.gpm-ratt { flex-grow: 1; min-width: 0; min-height: 0; background: var(--gpm-surface); display: flex; flex-direction: column; height: 100%; }
.gpm-ratt-tete { padding: 12px 14px; border-bottom: 1px solid var(--gpm-trait); display: flex; flex-direction: column; gap: 8px; }
.gpm-ratt-l1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gpm-ratt-l1 b { font-size: 15px; white-space: nowrap; }
.gpm-ratt-objet { font-size: 12px; color: var(--gpm-pale); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gpm-ratt-recherche { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border: 1px solid var(--gpm-champ); border-radius: 8px; color: var(--gpm-pale); }
.gpm-ratt-recherche input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; color: var(--gpm-texte); width: 100%; }
.gpm-ratt-groupe { padding: 8px 14px 4px; font-size: 11.5px; font-weight: 700; color: var(--gpm-pale); text-transform: uppercase; }
.gpm-ratt-liste { flex-grow: 1; min-height: 0; overflow: auto; }
.gpm-ratt-ligne { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--gpm-trait-doux); }
.gpm-ratt-ligne.choisie { background: var(--gpm-choisi); }
.gpm-ratt-txt { min-width: 0; flex-grow: 1; }
.gpm-ratt-ref { display: flex; gap: 8px; align-items: center; }
.gpm-ratt-det { font-size: 12.5px; color: var(--gpm-texte2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpm-ratt-pert { margin-top: 4px; }
.gpm-ratt-ligne .gpm-btn.petit { height: 28px; flex-shrink: 0; }
.gpm-ratt-sq { padding: 12px 14px; border-top: 1px solid var(--gpm-trait-doux); display: flex; flex-direction: column; gap: 7px; }
.gpm-ratt-sq span { display: block; height: 9px; border-radius: 5px; background: var(--gpm-squelette); }
.gpm-ratt-refus { margin: 0 14px 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid #efc4c0; background: #fdeceb; display: flex; align-items: center; gap: 12px; }
.gpm-ratt-refus .ic { color: #c62828; display: inline-flex; }
.gpm-ratt-refus .txt { flex-grow: 1; font-size: 13px; color: #1c2330; }
.gpm-ratt-refus .sous { font-size: 12px; color: #5b6475; margin-top: 2px; }
.gpm-ratt-refus .gpm-btn { flex-shrink: 0; }
:root[data-theme="dark"] .gpm-ratt-refus { border-color: #7a3a35; background: #45201d; }
:root[data-theme="dark"] .gpm-ratt-refus .txt { color: #eef0f4; }
:root[data-theme="dark"] .gpm-ratt-refus .sous { color: #a7aebb; }
.gpm-ratt-vide { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 50px 20px; text-align: center; }
.gpm-ratt-vide .rond { width: 48px; height: 48px; border-radius: 24px; background: var(--gpm-segment); color: var(--gpm-pale); display: inline-flex; align-items: center; justify-content: center; }
.gpm-ratt-vide .sous { font-size: 12.5px; color: var(--gpm-texte2); }
/* ============================================================ M84 accès délégué : Configuration (planche 4) et « Qui a ouvert ma boîte » (planche 3, téléphone) */
.gpm.gpm-reglage.gpm-dl { padding: 16px 22px; display: flex; flex-direction: column; gap: 12px; max-width: 1000px; overflow: auto; }
.gpm-dl-carte { background: var(--gpm-surface); border: 1px solid var(--gpm-trait); border-radius: 12px; padding: 14px 16px; display: grid; grid-template-columns: 240px 1fr; gap: 16px; }
.gpm-dl-aide { font-size: 12.5px; color: var(--gpm-pale); margin-top: 4px; line-height: 1.45; }
.gpm-dl-droite { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gpm-dl-note { font-size: 12.5px; color: var(--gpm-texte2); }
.gpm-dl-puces { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.gpm-dl-puce { height: 24px; padding: 0 9px; border-radius: 12px; background: var(--gpm-segment); font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; }
.gpm-dl-retirer { border: 0; background: transparent; color: var(--gpm-pale); padding: 0; display: inline-flex; }
.gpm-dl-saisie { height: 24px; width: 140px; padding: 0 9px; border-radius: 12px; border: 1px solid var(--gpm-champ); background: var(--gpm-surface); color: var(--gpm-texte); font: inherit; font-size: 12.5px; }
.gpm-dl-saisie[hidden] { display: none; }
.gpm-dl-socle { font-size: 12px; color: var(--gpm-pale); }
.gpm-dl-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gpm-dl-table th { text-align: left; padding: 6px 8px; font-size: 12px; color: var(--gpm-texte2); border-bottom: 1px solid var(--gpm-trait); font-weight: 600; }
.gpm-dl-table td { padding: 7px 8px; }
.gpm-dl-table tr { border-bottom: 1px solid var(--gpm-trait-doux); }
.gpm-dl-vide { color: var(--gpm-pale); }
/* recette [PC] 10:48 : à 1366, dans Configuration, la colonne « Refus « personnel » » sortait de la carte → les cellules passent à la ligne
   (adresse de boîte longue comprise) et, en dernier recours, le tableau défile DANS la carte */
.gpm-dl-table th, .gpm-dl-table td { overflow-wrap: anywhere; }
/* recette [BUREAU] 11:30 : dans Configuration, le style global des tableaux (#636366 / #d1d1d6) passait devant → règle plus précise (planche) */
.gpm.gpm-reglage .gpm-dl-table th { color: var(--gpm-texte2); border-bottom: 1px solid var(--gpm-trait); background: transparent; text-transform: none; letter-spacing: 0; }
.gpm.gpm-reglage .gpm-dl-table tr { border-bottom: 1px solid var(--gpm-trait-doux); }
.gpm-dl-droite:has(> .gpm-dl-table) { overflow-x: auto; }
@media (max-width: 760px) { .gpm.gpm-reglage.gpm-dl { padding: 12px; } .gpm-dl-carte { grid-template-columns: 1fr; } }
.gpm.gpm-qo { height: 100%; display: flex; flex-direction: column; background: var(--gpm-fond); overflow: auto; }
.gpm-qo-tete { display: flex; align-items: center; height: 52px; padding: 0 8px; background: var(--gpm-surface); border-bottom: 1px solid var(--gpm-trait); flex-shrink: 0; }
.gpm-qo-titre { padding: 14px 18px 6px; font-size: 22px; font-weight: 800; }
.gpm-qo-intro { padding: 0 18px 10px; font-size: 13.5px; color: var(--gpm-texte2); }
.gpm-qo-carte { margin: 0 14px 16px; background: var(--gpm-surface); border-radius: 12px; overflow: hidden; }
.gpm-qo-ligne { padding: 12px 14px; }
.gpm-qo-ligne + .gpm-qo-ligne { border-top: 1px solid var(--gpm-trait-doux); }
.gpm-qo-ligne .qui { font-size: 15px; font-weight: 600; }
.gpm-qo-ligne .quand { font-size: 13px; color: var(--gpm-texte2); }
/* M84 mode « boîte d'un autre » : bandeau violet, ressaisie (carte 420 px), mail personnel (ligne + volet), note de l'arborescence */
.gpm-bandeau-delegue { display: flex; align-items: center; gap: 10px; padding: 7px 16px; background: var(--gpm-dem-fond); color: var(--gpm-dem); border-bottom: 1px solid var(--gpm-trait); font-size: 12.5px; flex-shrink: 0; min-width: 0; }
.gpm-bandeau-delegue b { white-space: nowrap; }
.gpm-bandeau-delegue .suite { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gpm-bandeau-delegue .gpm-btn { height: 28px; flex-shrink: 0; }
.gpm.gpm-etroit .gpm-bandeau-delegue .suite { display: none; }
.gpm-rs { flex-grow: 1; display: flex; align-items: center; justify-content: center; background: var(--gpm-surface); height: 100%; }
.gpm-rs-carte { width: 420px; max-width: calc(100% - 24px); border: 1px solid var(--gpm-trait); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.gpm-rs-tete { display: flex; gap: 10px; align-items: center; }
.gpm-rs-tete b { font-size: 16px; }
.gpm-rs-tete .rond, .gpm-perso .rond { width: 40px; height: 40px; border-radius: 20px; background: var(--gpm-dem-fond); color: var(--gpm-dem); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gpm-rs-texte { font-size: 13px; color: var(--gpm-texte2); line-height: 1.5; }
.gpm-rs-lib { font-size: 12px; color: var(--gpm-texte2); }
.gpm-rs-champ { display: block; width: 100%; margin-top: 4px; height: 36px; border: 1px solid var(--gpm-champ); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 14px; background: var(--gpm-surface); color: var(--gpm-texte); }
.gpm-rs-erreur { font-size: 12.5px; color: #c62828; }
.gpm-rs-erreur[hidden] { display: none; }
.gpm-rs-boutons { display: flex; gap: 8px; justify-content: flex-end; }
.gpm-perso { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 30px; }
.gpm-perso .rond { width: 50px; height: 50px; border-radius: 25px; }
.gpm-perso b { font-size: 15px; }
.gpm-perso .sous { font-size: 13px; color: var(--gpm-texte2); max-width: 380px; }
.gpm-mail.gpm-mail-perso { color: var(--gpm-pale); cursor: default; padding: 9px 14px 10px; }
.gpm-mail.gpm-mail-perso .l1 { gap: 6px; }
.gpm-mail.gpm-mail-perso .de { font-size: 13px; font-weight: 400; color: var(--gpm-pale); }
.gpm-mail.gpm-mail-perso .objet { font-size: 12.5px; font-style: italic; font-weight: 400; color: var(--gpm-pale); margin-top: 2px; }
.gpm-arbre-note { padding: 8px 10px 4px; font-size: 11.5px; color: var(--gpm-pale); }

/* ============================================================ M105 (planche MF_Mail_FiltreTri validée 07/10) : filtrer / organiser / trier / imprimer
   Valeurs de la planche (clair) ; sombre = mêmes variables que le reste de l'écran. */
.gpm-filtres { align-items: center; gap: 6px; }
.gpm-filtres button { padding: 0 10px; white-space: nowrap; }
.gpm-filtres button[aria-pressed="true"] { background: var(--gpm-fiche-fond); font-weight: 400; }
.gpm-filtres .gpm-ft-btn { margin-left: auto; height: 28px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--gpm-accent); background: var(--gpm-fiche-fond); color: var(--gpm-lien); display: inline-flex; gap: 4px; align-items: center; font-size: 12px; }
.gpm-filtres .gpm-ft-btn[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--gpm-puce); }
.gpm-outils .gpm-titre-liste { padding: 0; border: 0; font-size: 12px; font-weight: 400; color: var(--gpm-texte2); gap: 4px; }
.gpm-outils .gpm-titre-liste span { color: var(--gpm-texte2); }
.gpm-outils .gpm-titre-liste b { font-weight: 700; color: var(--gpm-texte2); }
.gpm-menu.gpm-m105 { width: 300px; max-height: none; padding: 4px 0; border-radius: 10px; border-color: var(--gpm-champ); box-shadow: 0 12px 32px rgba(20,30,50,.18); }
.gpm-menu.gpm-m105-plus { width: 250px; }
.gpm-m105-titre { padding: 6px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--gpm-pale); text-transform: uppercase; }
.gpm-m105-titre ~ .gpm-m105-titre { border-top: 1px solid var(--gpm-trait-doux); }
.gpm-m105-ligne { display: flex; align-items: center; gap: 8px; width: 100%; height: 28px; padding: 0 12px 0 10px; border: 0; border-radius: 0; background: transparent; color: var(--gpm-texte); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.gpm-m105-ligne .lib { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpm-m105-ligne.choisi { background: var(--gpm-fiche-fond); }
.gpm-m105-ligne:hover, .gpm-m105-ligne:focus { background: var(--gpm-choisi); outline: none; }
.gpm-m105-coche { width: 16px; flex: 0 0 16px; color: #1a7f37; display: inline-flex; }
.gpm-m105-raccourci { margin-left: auto; color: var(--gpm-pale); font-size: 11px; }
.gpm-m105-pied { border-top: 1px solid var(--gpm-trait-doux); padding: 6px 12px; font-size: 11.5px; color: var(--gpm-texte2); }
.gpm-m105-pied a { color: var(--gpm-lien); }
.gpm-btn-plus105 { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 7px; border: 1px solid var(--gpm-accent); background: var(--gpm-fiche-fond); color: var(--gpm-lien); display: inline-flex; align-items: center; justify-content: center; padding: 0; margin-left: 6px; }
.gpm-btn-plus105[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--gpm-puce); }
.gpm-btn-plus105:disabled { opacity: .5; cursor: not-allowed; }
/* M113 (planche MF_EnteteComplet) : en-tête complet à la place du corps du mail (le mail masqué reste dans la page, sans s'afficher) */
.gpm-lecture > [hidden] { display: none !important; }
.gpm-entete113 { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; overflow: auto; background: var(--gpm-surface); }
.gpm-e113-tete { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--gpm-trait); }
.gpm-e113-tete b { font-size: 14px; white-space: nowrap; }
.gpm-e113-tete .objet { font-size: 12px; color: var(--gpm-pale); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gpm-e113-retour { height: 30px; padding: 0 10px; white-space: nowrap; border-radius: 7px; border: 1px solid var(--gpm-champ); background: var(--gpm-surface); color: var(--gpm-texte); font: inherit; font-size: 12.5px; }
.gpm-e113-corps { padding: 12px 16px; }
.gpm-e113-corps .info { font-size: 11.5px; color: var(--gpm-pale); margin-bottom: 6px; }
.gpm-e113-corps pre { margin: 0; padding: 12px 14px; border: 1px solid var(--gpm-trait); border-radius: 8px; background: var(--gpm-panneau); color: var(--gpm-texte); font-family: ui-monospace, Consolas, monospace; font-size: 12px; line-height: 1.55; white-space: pre-wrap; word-break: break-all; }
.gpm-e113-corps.etat { padding: 40px 16px; text-align: center; color: var(--gpm-texte2); }
.gpm-e113-corps.etat .titre { font-size: 14px; font-weight: 600; color: var(--gpm-texte); }
.gpm-e113-corps.etat .titre.ko { color: #9b1c1c; }
:root[data-theme="dark"] .gpm-e113-corps.etat .titre.ko { color: var(--gpm-annul); }
.gpm-e113-corps.etat .texte { font-size: 12.5px; margin-top: 6px; }
.gpm-e113-corps.etat .bouton { margin-top: 10px; }
.gpm-m105-ligne.gpm-inactif { color: var(--gpm-pale); cursor: not-allowed; }
.gpm-m105-ligne.gpm-inactif:hover, .gpm-m105-ligne.gpm-inactif:focus { background: transparent; }
/* aperçu avant impression : fond gris, page A4 (595 × 842) à gauche, panneau à droite */
.gpm-impr { position: fixed; inset: 0; z-index: 2000; background: #5b6475; overflow: auto; }
.gpm-impr .gpm-impr-page { position: absolute; left: 40px; top: 30px; width: 595px; height: 842px; border: 0; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.gpm-impr .gpm-impr-panneau { position: absolute; left: 680px; top: 30px; width: 330px; box-sizing: content-box; background: var(--gpm-surface); color: var(--gpm-texte); border-radius: 10px; padding: 16px 18px; font-size: 12.5px; line-height: 1.6; }
.gpm-impr .gpm-impr-panneau .titre { font-size: 14px; }
.gpm-impr .gpm-impr-panneau .txt, .gpm-impr .gpm-impr-panneau .opts { margin-top: 8px; }
.gpm-impr .gpm-impr-panneau .note { margin-top: 10px; color: var(--gpm-texte2); }
.gpm-impr .gpm-impr-panneau .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
@media (max-width: 1060px) { .gpm-impr .gpm-impr-panneau { left: 40px; top: 890px; } }
/* M105 téléphone (planche MF_Mail_FiltreTri_Tel) : bouton rond « Filtrer et trier » + feuille du bas */
.gpm-t-filtre { margin-left: auto; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 20px; border: 0; background: var(--gpm-fiche-fond); color: var(--gpm-lien); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.gpm-t-tete .gpm-t-filtre { margin-right: 6px; }
.gpm-t-voile { position: absolute; inset: 0; z-index: 30; background: rgba(20,30,50,.4); }
.gpm-t-feuille { position: absolute; left: 0; right: 0; bottom: 0; z-index: 31; background: var(--gpm-surface); color: var(--gpm-texte); border-radius: 16px 16px 0 0; padding: 8px 0 24px; max-height: 92%; overflow: auto; }
.gpm-t-poignee { width: 40px; height: 4px; border-radius: 2px; background: var(--gpm-champ); margin: 4px auto 8px; }
.gpm-t-feuille-tete { padding: 0 16px 6px; display: flex; align-items: center; }
.gpm-t-feuille-tete b { font-size: 15px; }
.gpm-t-reinit { margin-left: auto; border: 0; background: transparent; color: var(--gpm-lien); font: inherit; font-size: 13px; padding: 0; }
.gpm-t-feuille-titre { padding: 4px 16px; font-size: 11px; font-weight: 700; color: var(--gpm-pale); text-transform: uppercase; }
.gpm-t-puces { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 8px; }
.gpm-t-puces.fin { padding-bottom: 14px; }
.gpm-t-puce { height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--gpm-champ); background: var(--gpm-surface); color: var(--gpm-texte); display: inline-flex; align-items: center; font: inherit; font-size: 13px; }
.gpm-t-puce[aria-pressed="true"] { border-color: var(--gpm-accent); background: var(--gpm-fiche-fond); }
.gpm-t-feuille-pied { padding: 0 16px; }
.gpm-t-afficher { width: 100%; height: 44px; border: 0; border-radius: 10px; background: var(--gpm-accent); color: #fff; font: inherit; font-size: 14px; font-weight: 600; }

/* ============================================================ LOT 5 MD_ (11/10 [MAILS], planches MD_* validées 16:29, RELEVE_MD_LOT5.md) */
/* B : « Répondre ▾ » (fond #e9ecf1) et menu à 3 choix (370 px) */
.gpm-btn-icone.gpm-md-repondre { color: #0a58c2; }   /* recette D3 : les 3 boutons à menu en bleu (MD_Boite_Autre, MD5_Menu_*) */
.gpm-btn-icone.gpm-md-repondre[aria-expanded="true"] { background: #e9ecf1; border-radius: 7px; }   /* MD5_Menu_* : fond seulement quand son menu est ouvert */
.gpm-menu.gpm-md-menu .gpm-md-ligne { color: #1c2330; }   /* recette D3 : texte #1c2330 (le bouton ne doit pas garder le noir du navigateur) */
.gpm-menu.gpm-md-menu .gpm-md-ligne .t { color: #1c2330; }
.gpm-menu.gpm-md-menu .gpm-md-ligne.choisi .t { color: #5a3fa0; }
.gpm-menu.gpm-md-menu .gpm-md-ligne[aria-disabled="true"] { opacity: .5; }
.gpm-bandeau-delegue .suite { white-space: normal; }   /* recette D2 : texte entier sur 2 lignes (planche MD_Boite_Autre) */
.gpm-avis.gpm-md-ok svg { color: #8fd6a3; }   /* recette D5 : coche verte des avis du lot 5 */
.gpm-md-tde { font-size: 15px; }   /* recette D11 : même taille que les autres lignes de la rédaction téléphone */
.gpm-menu.gpm-md-menu.dlp { width: 380px; }   /* MD5_Menu_* (droit « de la part de ») ; MD_Boite_Autre (« en tant que ») = 370 */
.gpm-menu.gpm-md-menu { width: 370px; padding: 6px 0; border-radius: 10px; border: 1px solid #e3e6ec; background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.2); max-height: none; }
.gpm-md-menu-titre { padding: 4px 12px 6px; font-size: 11.5px; color: #7a8394; font-weight: 700; text-transform: uppercase; }
.gpm-md-ligne { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 7px 12px; border: 0; background: transparent; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.gpm-md-ligne .t { font-weight: 600; color: #1c2330; }
.gpm-md-ligne .s { font-size: 11.5px; color: #7a8394; }
.gpm-md-ligne.choisi { background: #efe7fb; }
.gpm-md-ligne.choisi .t { color: #5a3fa0; }
.gpm-md-ligne[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.gpm-md-ligne:focus-visible { outline: 2px solid #0a58c2; outline-offset: -2px; }
/* C : note bleue + champ « De » */
.gpm-md-note { margin: 8px 16px 0; padding: 8px 10px; border-radius: 8px; background: #e8f0fc; color: #0a58c2; font-size: 12px; line-height: 1.45; }
.gpm-md-de-zone { flex-grow: 1; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.gpm-md-de { height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; background: #efe7fb; color: #5a3fa0; border: 1px solid #d9c9f5; font-weight: 600; box-sizing: border-box; }
.gpm-md-de-note { font-size: 11.5px; color: #7a8394; }
/* D : refus d'Exchange */
.gpm-md-refus { margin: 8px 16px 0; padding: 9px 11px; border: 1px solid #efc4c0; border-radius: 8px; background: #fdeceb; color: #a52a1f; font-size: 12.5px; line-height: 1.45; display: flex; flex-direction: column; gap: 7px; }
.gpm-md-refus-boutons { display: flex; gap: 8px; }
.gpm-md-refus-oui { height: 30px; padding: 0 10px; border-radius: 8px; font: inherit; font-size: 12.5px; background: #0a66d6; color: #fff; border: 0; font-weight: 600; cursor: pointer; }
.gpm-md-refus-garder { height: 30px; padding: 0 10px; border-radius: 8px; font: inherit; font-size: 12.5px; background: #fff; color: #1c2330; border: 1px solid #cfd5de; cursor: pointer; }
/* E : boutons grisés + bulle large */
.gpm-md-grise { color: #7a8394 !important; opacity: .55; cursor: not-allowed; }
.gpm-bulle.gpm-bulle-md { width: 360px; white-space: normal; padding: 8px 10px; line-height: 1.45; box-sizing: border-box; }   /* recette D4 : 340 + 2 × 10 de marge = 360 rendus */
/* G : Configuration › Droits par boîte */
.gpm-md-relire { margin-top: 10px; height: 28px; padding: 0 10px; border-radius: 8px; font: inherit; font-size: 12.5px; background: #fff; color: #0a58c2; border: 1px solid #cfd5de; cursor: pointer; }
.gpm-md-bascule { display: inline-block; width: 34px; height: 20px; border-radius: 10px; background: #cfd5de; position: relative; vertical-align: middle; border: 0; padding: 0; cursor: pointer; }
.gpm-md-bascule[aria-checked="true"] { background: #0a66d6; }
.gpm-md-bascule span { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.gpm-md-bascule[aria-checked="true"] span { left: auto; right: 2px; }
.gpm-md-choix-zone { position: relative; display: inline-flex; align-items: center; }
.gpm-md-choix { height: 26px; padding: 0 20px 0 8px; border-radius: 7px; border: 1px solid #cfd5de; background: #fff; color: #1c2330; font: inherit; font-size: 12.5px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.gpm-md-choix-zone .fl { position: absolute; right: 8px; font-size: 12.5px; pointer-events: none; color: #1c2330; }
.gpm-md-c { color: #5b6475; }
.gpm-md-c.ok { color: #1a7f37; }
.gpm-md-c.refus { color: #8a4b00; }
.gpm-md-table-note { font-size: 12px; color: #7a8394; line-height: 1.45; }
/* MD6_Admin_Vide / MD6_Admin_Erreur */
.gpm-md-vide { padding: 18px 8px !important; text-align: center; color: #5b6475; font-size: 13px; line-height: 1.5; }
.gpm-md-vide span { font-size: 12px; color: #7a8394; }
table.gpm-dl-table td.gpm-md-vide { color: #5b6475; }   /* recette D12 : la couleur des cellules du tableau l'emportait (planche MD6_Admin_Vide : #5b6475 / sombre #9aa4b2) */
table.gpm-dl-table td.gpm-md-vide span { color: #7a8394; }
tr.gpm-md-ko { background: #fdeceb; border-bottom: 0 !important; }
tr.gpm-md-ko-l { background: #fdeceb; border-bottom: 1px solid #eef0f3; }
tr.gpm-md-ko-l > td { padding: 4px 8px 8px !important; }
.gpm-md-ko-msg { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #9b1c1c; }
.gpm-md-ko-re { margin-left: auto; height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid #f1b5b5; background: #fff; color: #9b1c1c; font: inherit; font-size: 12.5px; display: inline-flex; align-items: center; cursor: pointer; }
/* MD5_De_Rappel : bulle du champ « De » ; MD5_Copie_Refusee : triangle orange de l'avis */
.gpm-bulle.gpm-bulle-md.gpm-bulle-de { width: 320px; font-weight: 400; }   /* recette D4 : 300 + 2 × 10 = 320 rendus */
.gpm-avis.gpm-md-copie svg { color: #f5c26b; }
/* MD6_Tel_Redaction : note jaune, « De » rappel, refus d'Exchange */
.gpm-md-tnote { padding: 8px 14px; background: #fff8e6; color: #8a4b00; font-size: 12.5px; line-height: 1.45; border-bottom: 1px solid #f3e2b8; }
.gpm-md-tde { flex-grow: 1; min-width: 0; }
.gpm-md-tde-n { font-size: 12px; color: #7a8394; margin-top: 2px; }
.gpm-md-trefus { margin: 10px 12px 0; padding: 10px 12px; border-radius: 10px; background: #fdeceb; border: 1px solid #f1b5b5; color: #9b1c1c; font-size: 13px; line-height: 1.45; }
.gpm-md-trefus-b { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.gpm-md-trefus-oui, .gpm-md-trefus-garder { min-height: 44px; border-radius: 10px; font: inherit; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gpm-md-trefus-oui { background: #0a66d6; color: #fff; border: 0; font-weight: 600; }
.gpm-md-trefus-garder { background: #fff; border: 1px solid #cfd5de; color: #1c2330; }
/* H : téléphone — feuille basse « Répondre » (planche MD_Tel_Repondre) */
.gpm-md-voile { position: absolute; inset: 0; background: rgba(15,23,42,.35); z-index: 60; }
.gpm-md-feuille { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 16px 16px 0 0; padding: 10px 14px 18px; display: flex; flex-direction: column; gap: 8px; z-index: 61; }
.gpm-md-f-poignee { align-self: center; width: 36px; height: 4px; border-radius: 2px; background: #cfd5de; }
.gpm-md-f-titre { font-size: 16px; padding: 2px 2px 4px; }
.gpm-md-f-choix { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 52px; padding: 8px 14px; border-radius: 10px; font: inherit; text-align: left; background: #fff; border: 1px solid #cfd5de; color: #1c2330; cursor: pointer; }
.gpm-md-f-choix b { font-size: 14.5px; }
.gpm-md-f-choix span { font-size: 12.5px; color: #7a8394; }
.gpm-md-f-choix.choisi { background: #efe7fb; border-color: #d9c9f5; color: #5a3fa0; }
.gpm-md-f-choix.choisi span { color: #5a3fa0; }
.gpm-md-f-choix:disabled { border-color: #e3e6ec; opacity: .5; cursor: not-allowed; }
.gpm-md-f-annuler { min-height: 44px; border-radius: 10px; font: inherit; font-size: 14.5px; background: #fff; border: 1px solid #cfd5de; color: #0a58c2; font-weight: 600; cursor: pointer; }
/* D1 (16/10, planche MD7_D1_Barre_Serree 4e2fa228) : volet de lecture serré = icônes seules (mesuré) ; volet large inchangé */
.gpm-lecture.gpm-serre .gpm-barre-mail { padding: 8px 10px; gap: 2px; }
.gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn-icone, .gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn-carre, .gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn-deplacer { height: 30px; min-width: 30px; width: auto; padding: 0 6px; border-radius: 6px; justify-content: center; gap: 3px; }
.gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn-icone, .gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn-deplacer, .gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn-carre:not([aria-pressed="true"]) { color: #1c2330; }
.gpm-lecture.gpm-serre .gpm-barre-mail .gpm-imprimer, .gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn-deplacer .lib { display: none; }
.gpm-md-fl, .gpm-md-ls { display: none; }
.gpm-lecture.gpm-serre .gpm-md-fl { display: inline; font-size: 10px; }
.gpm-lecture.gpm-serre .gpm-md-ls { display: inline-block; font-size: 11.5px; color: #5b6475; background: #eef0f3; border-radius: 999px; padding: 2px 8px; margin-right: 4px; white-space: nowrap; }
.gpm-lecture.gpm-serre .gpm-btn-icone.gpm-md-repondre[aria-expanded="true"] { background: #e3edfb; border-radius: 6px; }
.gpm-lecture.gpm-serre .gpm-barre-mail .gpm-md-grise { color: #cfd5de !important; opacity: 1; }
.gpm-lecture.gpm-serre .gpm-barre-mail.gpm-md-ls-barre button:not(.gpm-md-lu):not(.gpm-garde-delegue) { color: #cfd5de !important; opacity: 1; }
/* recette D1-a (16/10 15:25) : barre serrée = icônes seules partout (« Ouvrir la fiche », « Rattacher à une fiche » aussi) ; dans la boîte d'un autre,
   « Créer une demande » / « Rattacher » (inactifs) n'y sont pas (MD7_D1) → « ⋯ » reste au bout de la ligne */
.gpm-lecture.gpm-serre .gpm-barre-mail .gpm-md-hors-serre { display: none; }
.gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn.petit { height: 30px; min-width: 30px; padding: 0 6px; border-radius: 6px; justify-content: center; gap: 3px; background: transparent; border-color: transparent; color: #1c2330; }
.gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn.petit .lib { display: none; }
/* claude-chat 19:12Z (recette D1-a 21:00) : « ⋯ » en barre serrée = NU au repos (gris foncé, sans cadre ni fond, comme MD7_D1) ; bleu seulement ouvert */
.gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn-plus105 { width: auto; min-width: 30px; flex: 0 0 auto; padding: 0 6px; border-radius: 6px; }
.gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn-plus105:not([aria-expanded="true"]) { border-color: transparent; background: transparent; color: #1c2330; }
.gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn-plus105[aria-expanded="true"] { background: #e3edfb; border-color: transparent; box-shadow: none; }
/* D7 (16/10, planche MD7_D7_Droits_Etroit 4e2fa228) : carte < 1000 px = en colonne (toutes les cartes de la rubrique) ; noms jamais coupés */
.gpm-dl.gpm-dl-col .gpm-dl-carte { grid-template-columns: 1fr; gap: 10px; }
.gpm-dl.gpm-dl-col .gpm-md-tete { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: start; }
.gpm-dl.gpm-dl-col .gpm-md-tete > b { font-size: 14px; }
.gpm-dl.gpm-dl-col .gpm-md-tete .gpm-dl-aide { grid-column: 1; margin-top: 3px; }
.gpm-dl.gpm-dl-col .gpm-md-tete .gpm-md-relire { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; height: 30px; padding: 0 12px; border-radius: 7px; white-space: nowrap; }
.gpm-md-court { display: none; }
.gpm-dl.gpm-dl-col .gpm-md-court { display: inline; }
.gpm-dl.gpm-dl-col .gpm-md-long { display: none; }
.gpm-dl.gpm-dl-col .gpm-dl-table th, .gpm-dl.gpm-dl-col .gpm-dl-table td.gpm-md-qui, .gpm-dl.gpm-dl-col .gpm-dl-table td.gpm-md-bx { white-space: nowrap; overflow-wrap: normal; }
.gpm-dl.gpm-dl-col .gpm-dl-table td { padding: 8px; }
.gpm-dl.gpm-dl-col .gpm-dl-table td.gpm-md-ct { font-size: 12.5px; overflow-wrap: normal; }
.gpm-md-ko-re { white-space: nowrap; flex-shrink: 0; }   /* D7 : le message passe à la ligne, « Réessayer » reste visible */
/* sombre : planches *_Sombre (lot 5 compléments 2) */
:root[data-theme="dark"] .gpm-md-feuille { background: #20262e; color: #e8ebf0; }
:root[data-theme="dark"] .gpm-md-f-poignee { background: #46505d; }
:root[data-theme="dark"] .gpm-md-f-choix, :root[data-theme="dark"] .gpm-md-f-annuler { background: #20262e; border-color: #46505d; color: #e8ebf0; }
:root[data-theme="dark"] .gpm-md-f-choix span { color: #8a94a3; }
:root[data-theme="dark"] .gpm-md-f-choix:disabled { border-color: #323a45; }
:root[data-theme="dark"] .gpm-md-f-choix.choisi { background: #2d2445; border-color: #4a3d70; color: #c6b3f5; }
:root[data-theme="dark"] .gpm-md-f-choix.choisi span { color: #c6b3f5; }
:root[data-theme="dark"] .gpm-md-f-annuler { color: #7fb2ff; }
:root[data-theme="dark"] .gpm-btn-icone.gpm-md-repondre { color: #7fb2ff; }
:root[data-theme="dark"] .gpm-btn-icone.gpm-md-repondre[aria-expanded="true"] { background: #2a313b; }
:root[data-theme="dark"] .gpm-menu.gpm-md-menu { background: #20262e; border-color: #323a45; }
:root[data-theme="dark"] .gpm-menu.gpm-md-menu .gpm-md-ligne, :root[data-theme="dark"] .gpm-menu.gpm-md-menu .gpm-md-ligne .t { color: #e8ebf0; }
:root[data-theme="dark"] .gpm-menu.gpm-md-menu .gpm-md-ligne.choisi .t { color: #c6b3f5; }
:root[data-theme="dark"] .gpm-bandeau-delegue { background: #2d2445; color: #c6b3f5; border-bottom-color: #323a45; }
:root[data-theme="dark"] .gpm-bandeau-delegue .gpm-btn { background: #20262e; border-color: #46505d; color: #e8ebf0; }
:root[data-theme="dark"] .gpm-md-grise { color: #8a94a3 !important; }
:root[data-theme="dark"] .gpm-md-ligne .s, :root[data-theme="dark"] .gpm-md-menu-titre, :root[data-theme="dark"] .gpm-md-de-note, :root[data-theme="dark"] .gpm-md-table-note, :root[data-theme="dark"] .gpm-md-tde-n, :root[data-theme="dark"] .gpm-md-vide span { color: #8a94a3; }
:root[data-theme="dark"] .gpm-md-ligne.choisi { background: #2d2445; }
:root[data-theme="dark"] .gpm-md-ligne.choisi .t { color: #c6b3f5; }
:root[data-theme="dark"] .gpm-md-de { background: #2d2445; border-color: #4a3d70; color: #c6b3f5; }
:root[data-theme="dark"] .gpm-md-refus-oui { background: #3d8bff; }
:root[data-theme="dark"] .gpm-md-refus-garder, :root[data-theme="dark"] .gpm-md-relire, :root[data-theme="dark"] .gpm-md-choix { background: #20262e; border-color: #46505d; color: #e8ebf0; }
:root[data-theme="dark"] .gpm-md-relire { color: #7fb2ff; }
:root[data-theme="dark"] .gpm-md-choix-zone .fl { color: #e8ebf0; }
:root[data-theme="dark"] .gpm-md-bascule { background: #46505d; }
:root[data-theme="dark"] .gpm-md-bascule[aria-checked="true"] { background: #3d8bff; }
:root[data-theme="dark"] .gpm-md-bascule span { background: #20262e; }
:root[data-theme="dark"] .gpm-md-c, :root[data-theme="dark"] .gpm-md-vide, :root[data-theme="dark"] table.gpm-dl-table td.gpm-md-vide { color: #9aa4b2; }
:root[data-theme="dark"] table.gpm-dl-table td.gpm-md-vide span { color: #8a94a3; }
:root[data-theme="dark"] .gpm-md-c.ok { color: #3fb866; }
:root[data-theme="dark"] .gpm-md-c.refus { color: #f5c27a; }
:root[data-theme="dark"] tr.gpm-md-ko { background: #3a1f22; }
:root[data-theme="dark"] tr.gpm-md-ko-l { background: #3a1f22; border-bottom-color: #2a313b; }
:root[data-theme="dark"] .gpm-md-ko-msg { color: #ff9b8f; }
:root[data-theme="dark"] .gpm-md-ko-re { background: #20262e; border-color: #6a2a2e; color: #ff9b8f; }
:root[data-theme="dark"] .gpm-md-tnote { background: #3a2f14; color: #f5c27a; border-bottom-color: #5a4720; }
:root[data-theme="dark"] .gpm-md-trefus { background: #3a1f22; border-color: #6a2a2e; color: #ff9b8f; }
:root[data-theme="dark"] .gpm-md-trefus-oui { background: #3d8bff; }
:root[data-theme="dark"] .gpm-md-trefus-garder { background: #20262e; border-color: #46505d; color: #e8ebf0; }
:root[data-theme="dark"] .gpm-md-note { background: #1f3556; color: #7fb2ff; }
:root[data-theme="dark"] .gpm-md-refus { background: #3a1f22; color: #ff9b8f; border-color: #6a2a2e; }
:root[data-theme="dark"] .gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn-icone, :root[data-theme="dark"] .gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn-deplacer, :root[data-theme="dark"] .gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn-carre:not([aria-pressed="true"]) { color: #e8ebf0; }
:root[data-theme="dark"] .gpm-lecture.gpm-serre .gpm-md-ls { color: #9aa4b2; background: #2a313b; }
:root[data-theme="dark"] .gpm-lecture.gpm-serre .gpm-btn-icone.gpm-md-repondre[aria-expanded="true"] { background: #1f3556; }
:root[data-theme="dark"] .gpm-lecture.gpm-serre .gpm-barre-mail .gpm-md-grise { color: #46505d !important; }
:root[data-theme="dark"] .gpm-lecture.gpm-serre .gpm-barre-mail.gpm-md-ls-barre button:not(.gpm-md-lu):not(.gpm-garde-delegue) { color: #46505d !important; }
:root[data-theme="dark"] .gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn.petit { color: #e8ebf0; }
:root[data-theme="dark"] .gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn-plus105:not([aria-expanded="true"]) { color: #e8ebf0; }
:root[data-theme="dark"] .gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn-plus105[aria-expanded="true"] { background: #1f3556; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .gpm-md-feuille { background: #20262e; color: #e8ebf0; }
  :root:not([data-theme]) .gpm-md-f-poignee { background: #46505d; }
  :root:not([data-theme]) .gpm-md-f-choix, :root:not([data-theme]) .gpm-md-f-annuler { background: #20262e; border-color: #46505d; color: #e8ebf0; }
  :root:not([data-theme]) .gpm-md-f-choix span { color: #8a94a3; }
  :root:not([data-theme]) .gpm-md-f-choix:disabled { border-color: #323a45; }
  :root:not([data-theme]) .gpm-md-f-choix.choisi { background: #2d2445; border-color: #4a3d70; color: #c6b3f5; }
  :root:not([data-theme]) .gpm-md-f-choix.choisi span { color: #c6b3f5; }
  :root:not([data-theme]) .gpm-md-f-annuler { color: #7fb2ff; }
  :root:not([data-theme]) .gpm-btn-icone.gpm-md-repondre { color: #7fb2ff; }
  :root:not([data-theme]) .gpm-btn-icone.gpm-md-repondre[aria-expanded="true"] { background: #2a313b; }
  :root:not([data-theme]) .gpm-menu.gpm-md-menu { background: #20262e; border-color: #323a45; }
  :root:not([data-theme]) .gpm-menu.gpm-md-menu .gpm-md-ligne, :root:not([data-theme]) .gpm-menu.gpm-md-menu .gpm-md-ligne .t { color: #e8ebf0; }
  :root:not([data-theme]) .gpm-menu.gpm-md-menu .gpm-md-ligne.choisi .t { color: #c6b3f5; }
  :root:not([data-theme]) .gpm-bandeau-delegue { background: #2d2445; color: #c6b3f5; border-bottom-color: #323a45; }
  :root:not([data-theme]) .gpm-bandeau-delegue .gpm-btn { background: #20262e; border-color: #46505d; color: #e8ebf0; }
  :root:not([data-theme]) .gpm-md-grise { color: #8a94a3 !important; }
  :root:not([data-theme]) .gpm-md-ligne .s, :root:not([data-theme]) .gpm-md-menu-titre, :root:not([data-theme]) .gpm-md-de-note, :root:not([data-theme]) .gpm-md-table-note, :root:not([data-theme]) .gpm-md-tde-n, :root:not([data-theme]) .gpm-md-vide span { color: #8a94a3; }
  :root:not([data-theme]) .gpm-md-ligne.choisi { background: #2d2445; }
  :root:not([data-theme]) .gpm-md-ligne.choisi .t { color: #c6b3f5; }
  :root:not([data-theme]) .gpm-md-de { background: #2d2445; border-color: #4a3d70; color: #c6b3f5; }
  :root:not([data-theme]) .gpm-md-refus-oui { background: #3d8bff; }
  :root:not([data-theme]) .gpm-md-refus-garder, :root:not([data-theme]) .gpm-md-relire, :root:not([data-theme]) .gpm-md-choix { background: #20262e; border-color: #46505d; color: #e8ebf0; }
  :root:not([data-theme]) .gpm-md-relire { color: #7fb2ff; }
  :root:not([data-theme]) .gpm-md-choix-zone .fl { color: #e8ebf0; }
  :root:not([data-theme]) .gpm-md-bascule { background: #46505d; }
  :root:not([data-theme]) .gpm-md-bascule[aria-checked="true"] { background: #3d8bff; }
  :root:not([data-theme]) .gpm-md-bascule span { background: #20262e; }
  :root:not([data-theme]) .gpm-md-c, :root:not([data-theme]) .gpm-md-vide, :root:not([data-theme]) table.gpm-dl-table td.gpm-md-vide { color: #9aa4b2; }
  :root:not([data-theme]) table.gpm-dl-table td.gpm-md-vide span { color: #8a94a3; }
  :root:not([data-theme]) .gpm-md-c.ok { color: #3fb866; }
  :root:not([data-theme]) .gpm-md-c.refus { color: #f5c27a; }
  :root:not([data-theme]) tr.gpm-md-ko { background: #3a1f22; }
  :root:not([data-theme]) tr.gpm-md-ko-l { background: #3a1f22; border-bottom-color: #2a313b; }
  :root:not([data-theme]) .gpm-md-ko-msg { color: #ff9b8f; }
  :root:not([data-theme]) .gpm-md-ko-re { background: #20262e; border-color: #6a2a2e; color: #ff9b8f; }
  :root:not([data-theme]) .gpm-md-tnote { background: #3a2f14; color: #f5c27a; border-bottom-color: #5a4720; }
  :root:not([data-theme]) .gpm-md-trefus { background: #3a1f22; border-color: #6a2a2e; color: #ff9b8f; }
  :root:not([data-theme]) .gpm-md-trefus-oui { background: #3d8bff; }
  :root:not([data-theme]) .gpm-md-trefus-garder { background: #20262e; border-color: #46505d; color: #e8ebf0; }
  :root:not([data-theme]) .gpm-md-note { background: #1f3556; color: #7fb2ff; }
  :root:not([data-theme]) .gpm-md-refus { background: #3a1f22; color: #ff9b8f; border-color: #6a2a2e; }
  :root:not([data-theme]) .gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn-icone, :root:not([data-theme]) .gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn-deplacer, :root:not([data-theme]) .gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn-carre:not([aria-pressed="true"]) { color: #e8ebf0; }
  :root:not([data-theme]) .gpm-lecture.gpm-serre .gpm-md-ls { color: #9aa4b2; background: #2a313b; }
  :root:not([data-theme]) .gpm-lecture.gpm-serre .gpm-btn-icone.gpm-md-repondre[aria-expanded="true"] { background: #1f3556; }
  :root:not([data-theme]) .gpm-lecture.gpm-serre .gpm-barre-mail .gpm-md-grise { color: #46505d !important; }
  :root:not([data-theme]) .gpm-lecture.gpm-serre .gpm-barre-mail.gpm-md-ls-barre button:not(.gpm-md-lu):not(.gpm-garde-delegue) { color: #46505d !important; }
  :root:not([data-theme]) .gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn.petit { color: #e8ebf0; }
  :root:not([data-theme]) .gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn-plus105:not([aria-expanded="true"]) { color: #e8ebf0; }
  :root:not([data-theme]) .gpm-lecture.gpm-serre .gpm-barre-mail .gpm-btn-plus105[aria-expanded="true"] { background: #1f3556; }
}
/* recette D12 sombre : plus fort que la peau iOS (td en --ios-label !important) */
html[data-skin="ios"] body.dark-mode table.gpm-dl-table td.gpm-md-vide { color: #9aa4b2 !important; }
/* MAILS_CONTRASTE (17/10, audit 09:13) : en sombre la fenêtre native des listes reste blanche → options lisibles (règle claude-chat 20:25Z) */
.gpm-md-choix option { color: #1c2330; background: #fff; }
