/* La messagerie : une boîte mail dans l'OS. Les jetons viennent de hud.css ; mono, catégorie et poids de reports.css. */
.os .fenetre, .os .fenetre * { pointer-events: auto; }
.os__tenue > .fenetre { transition: none !important; animation: none !important; opacity: 1 !important; background: var(--panneau); }
.fenetre > .corps:has(> .mm) { padding: 0; gap: 0; overflow: hidden; display: flex; }
.maquette { top: 48px; max-height: calc(100vh - 70px); }
.mm { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; font-family: var(--texte); }

/* ── La barre d'outils ──────────────────────────────────────────────────── */
.mm-outils { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--structure); min-height: 46px; box-sizing: border-box; }
.mm-outils.selection { background: color-mix(in srgb, var(--signal) 8%, transparent); }
.mm-outils.selection > b { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--signal); margin-right: 6px; }
.mm-cherche { flex: 1; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; background: var(--creux); box-shadow: inset 0 0 0 1px var(--structure); color: var(--efface); }
.mm-cherche svg { width: 15px; height: 15px; flex: none; }
.mm-cherche input { all: unset; flex: 1; font-family: var(--texte); font-size: 12.5px; color: var(--encre); }
.mm-outil { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--discret); white-space: nowrap; }
.mm-outil svg { width: 15px; height: 15px; flex: none; }
.mm-outil:hover { color: var(--encre); background: color-mix(in srgb, var(--gris) 10%, transparent); }
.mm-outil.actif { color: var(--signal); }

/* ── Les trois colonnes ─────────────────────────────────────────────────── */
.mm-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 196px minmax(300px, 400px) minmax(0, 1fr); }
.mm-cote { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 1px; padding: 10px 10px 12px; border-right: 1px solid var(--structure); background: color-mix(in srgb, var(--creux) 25%, transparent); }
.mm-cote > .geste { margin: 0 0 10px; }
.mm-cote > small { margin: 10px 0 4px 6px; font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--efface); }
.mm-boite { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 6px 8px; font-size: 12.5px; color: var(--discret); }
.mm-boite svg { width: 15px; height: 15px; }
.mm-boite b { font-size: 11px; font-weight: 600; color: var(--encre); font-variant-numeric: tabular-nums; }
.mm-boite:hover { background: color-mix(in srgb, var(--gris) 8%, transparent); color: var(--encre); }
.mm-boite.choisie { background: color-mix(in srgb, var(--signal) 11%, transparent); color: var(--encre); box-shadow: inset 2px 0 0 var(--signal); }
.mm-boite.dossier > i { width: 8px; height: 8px; margin-left: 4px; background: var(--t); }
.mm-regles { all: unset; cursor: pointer; margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px 8px 2px; font-size: 10.5px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--discret); }
.mm-regles svg { width: 15px; height: 15px; } .mm-regles:hover { color: var(--encre); }

/* ── La liste ───────────────────────────────────────────────────────────── */
.mm-liste { min-height: 0; overflow: auto; border-right: 1px solid var(--structure); }
.mm-onglets { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; background: var(--panneau); border-bottom: 1px solid var(--structure); }
.mm-onglet { all: unset; cursor: pointer; display: flex; justify-content: center; gap: 8px; padding: 10px 0 9px; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--discret); }
.mm-onglet b { font-weight: 600; color: var(--efface); } .mm-onglet:hover { color: var(--encre); }
.mm-onglet.choisi { color: var(--encre); box-shadow: inset 0 -2px 0 var(--signal); } .mm-onglet.choisi b { color: var(--signal); }
.mm-liste__tete { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--panneau); border-bottom: 1px solid var(--structure); font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--efface); }
.mm-onglets + .mm-liste__tete { top: 38px; }
.mm-liste__tete > span { margin-right: auto; }
.mm-puce { all: unset; cursor: pointer; padding: 2px 8px; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--discret); box-shadow: inset 0 0 0 1px var(--structure); }
.mm-puce.choisie { color: var(--encre); box-shadow: inset 0 0 0 1px var(--signal); }
.mm-liste__tete .app-lien { color: var(--signal); }
.mm-groupe { display: flex; align-items: center; gap: 6px; padding: 10px 12px 4px; font-size: 9.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--efface); }
.mm-groupe.appels { color: var(--alerte); } .mm-groupe svg { width: 13px; height: 13px; }
.mm-vide { padding: 14px 12px; margin: 0; }
.mm-coche { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 15px; height: 15px; display: grid; place-items: center; font-size: 10px; color: var(--fond, #050506); box-shadow: inset 0 0 0 1px var(--structureVive); }
.mm-coche.pleine, .mm-ligne.cochee .mm-coche { background: var(--signal); box-shadow: none; }
.mm-ligne { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; padding-left: 8px; box-shadow: inset 3px 0 0 transparent; border-bottom: 1px solid color-mix(in srgb, var(--structure) 60%, transparent); }
.mm-ligne .mm-coche { opacity: 0; } .mm-ligne:hover .mm-coche, .mm-ligne.cochee .mm-coche, .mm-liste:has(.cochee) .mm-coche { opacity: 1; }
.mm-ligne__lire { all: unset; box-sizing: border-box; cursor: pointer; min-width: 0; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 14px; gap: 2px 10px; align-items: center; padding: 8px 10px 8px 0; }
.mm-ligne__lire .app-mono { grid-row: 1 / span 2; width: 28px; height: 28px; font-size: 9px; }
.mm-ligne__qui { font-size: 12.5px; color: var(--discret); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-ligne__qui em { font-style: normal; font-size: 10.5px; color: var(--efface); padding: 0 5px; box-shadow: inset 0 0 0 1px var(--structure); margin-left: 4px; }
.mm-ligne__h { font-size: 11px; color: var(--efface); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mm-ligne__sujet { grid-column: 2 / span 2; min-width: 0; font-size: 12.5px; color: var(--efface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-ligne__sujet b { font-weight: 500; color: var(--discret); } .mm-ligne__sujet i { font-style: normal; }
.mm-ligne__drapeau { grid-row: 1 / span 2; grid-column: 4; color: var(--signal); } .mm-ligne__drapeau svg { width: 13px; height: 13px; }
.mm-ligne.nonlu .mm-ligne__qui { color: var(--encre); font-weight: 600; } .mm-ligne.nonlu .mm-ligne__sujet b { color: var(--encre); font-weight: 600; }
.mm-ligne.nonlu { box-shadow: inset 3px 0 0 var(--peuple); } .mm-ligne.nonlu.critique { box-shadow: inset 3px 0 0 var(--alerte); }
.mm-ligne:hover { background: color-mix(in srgb, var(--gris) 7%, transparent); }
.mm-ligne.choisie { background: color-mix(in srgb, var(--signal) 10%, transparent); }
.mm-ligne.cochee { background: color-mix(in srgb, var(--signal) 6%, transparent); }
.mm-ligne.neuve { animation: mm-neuve 2s ease-out; } @keyframes mm-neuve { from { background: color-mix(in srgb, var(--alerte) 28%, transparent); } }
.mm-ligne__outils { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: none; gap: 2px; background: var(--panneau); box-shadow: 0 0 0 1px var(--structure); }
.mm-ligne__outils .mm-outil span { display: none; } .mm-ligne:hover .mm-ligne__outils { display: flex; }
.mm-marque { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; padding: 0 5px; font-size: 9px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; vertical-align: 1px; }
.mm-marque svg { width: 11px; height: 11px; }
.mm-marque.critique, .mm-marque.appel { color: var(--alerte); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--alerte) 60%, transparent); }
.mm-marque.traiter { color: var(--signal); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--signal) 60%, transparent); }

/* ── La lecture ─────────────────────────────────────────────────────────── */
.mm-lecture { min-width: 0; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: 10px 22px 20px; }
.mm-lecture__outils { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 -10px; padding-bottom: 8px; border-bottom: 1px solid var(--structure); }
.mm-etiquettes { display: flex; align-items: center; gap: 10px; }
.mm-sujet { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.3; color: var(--encre); }
.mm-de { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; }
.mm-de__visage { width: 44px; height: 44px; background: var(--creux) 50% 8% / 220% no-repeat; box-shadow: inset 0 0 0 1px var(--structureVive); }
.mm-de .app-mono { width: 44px; height: 44px; font-size: 13px; }
.mm-de b { display: block; font-size: 13.5px; font-weight: 600; color: var(--encre); }
.mm-de span { display: block; font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--discret); }
.mm-de small { display: block; margin-top: 2px; font-size: 11px; color: var(--efface); }
.mm-corps p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.6; color: var(--discret); } .mm-corps p.premier { color: var(--encre); font-size: 14.5px; }
.mm-chiffres { margin: 0; padding: 8px 12px; font-size: 13px; color: var(--encre); background: color-mix(in srgb, var(--creux) 50%, transparent); box-shadow: inset 2px 0 0 var(--gris); font-variant-numeric: tabular-nums; }
.mm-gestes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 12px; }
.mm-gestes .geste { min-width: 0; }
.mm-appel { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 12.5px; color: var(--encre); background: color-mix(in srgb, var(--alerte) 9%, transparent); box-shadow: inset 2px 0 0 var(--alerte); }
.mm-appel svg { width: 15px; height: 15px; color: var(--alerte); flex: none; } .mm-appel .app-lien { margin-left: auto; }
.mm-conv { display: flex; flex-direction: column; gap: 6px; }
.mm-conv p { margin: 0; max-width: 85%; align-self: flex-start; padding: 7px 10px; font-size: 13.5px; line-height: 1.45; color: var(--encre); background: color-mix(in srgb, var(--gris) 9%, transparent); }
.mm-conv p.moi { align-self: flex-end; background: color-mix(in srgb, var(--peuple) 12%, transparent); }
.mm-conv small { display: block; font-size: 9.5px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--efface); }
.mm-repondre { all: unset; box-sizing: border-box; min-height: 74px; padding: 8px 10px; font-family: var(--texte); font-size: 13px; color: var(--encre); background: var(--creux); box-shadow: inset 0 0 0 1px var(--structure); }
.mm-fil { display: flex; flex-direction: column; gap: 1px; }
.mm-fil__ligne { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 6px 10px; font-size: 13px; background: color-mix(in srgb, var(--creux) 35%, transparent); }
.mm-fil__ligne span { font-size: 11px; color: var(--efface); font-variant-numeric: tabular-nums; } .mm-fil__ligne b { font-weight: 500; color: var(--encre); } .mm-fil__ligne em { font-style: normal; color: var(--discret); white-space: nowrap; }
.mm-lecture > .note { margin: 0; }

/* ── La notification d'annulation, les règles ───────────────────────────── */
.mm-toast { position: absolute; z-index: 5; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; padding: 10px 16px; font-size: 13px; color: var(--encre); background: color-mix(in srgb, var(--panneau) 96%, transparent); box-shadow: inset 0 0 0 1px var(--structureVive), inset 3px 0 0 var(--signal); white-space: nowrap; }
.mm-toast .app-lien { display: inline-flex; align-items: center; gap: 5px; color: var(--signal); } .mm-toast svg { width: 14px; height: 14px; }
.mm-voile { position: absolute; z-index: 6; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, #000 55%, transparent); }
.mm-regles-fenetre { width: min(720px, 90%); display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; background: var(--panneau); box-shadow: inset 0 0 0 1px var(--structureVive), inset 0 2px 0 var(--signal); }
.mm-regles-fenetre h3 { margin: 0 0 6px; font-family: var(--titre); font-size: 11px; font-weight: 400; letter-spacing: 2.6px; text-transform: uppercase; color: var(--encre); }
.mm-regle { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 36px; gap: 14px; align-items: center; padding: 8px 10px; font-size: 13px; color: var(--encre); background: color-mix(in srgb, var(--creux) 40%, transparent); }
.mm-regle small { display: block; font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--efface); }
.mm-bascule { all: unset; cursor: pointer; width: 32px; height: 16px; position: relative; background: color-mix(in srgb, var(--gris) 20%, transparent); }
.mm-bascule i { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; background: var(--discret); transition: left .15s; }
.mm-bascule.on { background: color-mix(in srgb, var(--signal) 40%, transparent); } .mm-bascule.on i { left: 18px; background: var(--signal); }

/* ── B · le centre de notifications ; C · la transmission ───────────────── */
.mm-cloche svg { width: 14px; height: 14px; } .mm-cloche.ouverte { box-shadow: inset 0 0 0 1px var(--signal); }
.os__annonces.mm-annonces { right: 352px; width: 360px; z-index: 40; }
.mm-centre { position: fixed; z-index: 40; right: 352px; top: 48px; bottom: 16px; width: 370px; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px; background: color-mix(in srgb, var(--panneau) 82%, transparent); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--structureVive); }
.mm-centre__tete { display: flex; justify-content: space-between; align-items: baseline; }
.mm-centre__tete b { font-family: var(--titre); font-size: 11px; font-weight: 400; letter-spacing: 2.4px; text-transform: uppercase; color: var(--encre); }
.mm-centre .os__annonce { animation: none; }
.mm-centre .os__annonce .mm-gestes, .mm-annonces .mm-gestes { grid-template-columns: 1fr; margin-top: 4px; }
.mm-centre .os__annonce .mm-gestes .geste + .geste { margin-top: 8px; }
.mm-centre .os__annonce .app-lien { align-self: flex-start; margin-top: 4px; }
.mm-centre > .note { margin: 0; }
.os__annonce .tag svg { width: 13px; height: 13px; display: block; }
.mm-appel__dit { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--encre); }
.mm-cherche input, .mm-cherche input::placeholder { text-transform: none; letter-spacing: 0.2px; font-size: 12.5px; }
.mm-cherche input::placeholder { color: var(--efface); }
.mm-outil.court span { display: none; }
.mm-lecture__outils { flex-wrap: nowrap; }
.mm-lecture__outils .mm-outil.court { margin-left: auto; } .mm-lecture__outils .mm-outil.court ~ .mm-outil.court { margin-left: 0; }
.mm-fil__ligne b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-centre .os__annonce { cursor: pointer; }
.mm-centre .os__annonce:hover .cadre { box-shadow: inset 0 0 0 1px var(--structureVive); }
.mm-cloche svg { display: inline-block !important; flex: none; }
