/* ════════════════════════════════════════════════════════════════════════════
   MESSAGES, L'APPLI (29/11/2026, charte d'ergonomie) · la vue d'ensemble (.msx), ses stats, et les retouches de la boîte (.msx-boite).
   Couleur signature : rose poudré #f5f5fb, réservée à l'action et aux pastilles. Une seule surface vedette (fond noir teinté
   à 8 % du rose, filet 1 px). Socle : noir #07080b, verre .045, filet .14, police système. Tailles : 12, 14, 16, 22, 32.
   ════════════════════════════════════════════════════════════════════════════ */
body.stu-on #view:has(> .msx){background:#07080b}
.msx{--app-accent:#f5f5fb;--rose:var(--app-accent);--rose-d:rgba(245,245,251,.14);--rose-l:rgba(245,245,251,.32);--verre:rgba(255,255,255,.045);--filet:rgba(255,255,255,.14);--filet2:rgba(255,255,255,.08);
  --enc:#f5f5f7;--enc2:rgba(245,245,247,.7);--enc3:rgba(245,245,247,.5);--alerte:#ff5a4f;
  position:relative;isolation:isolate;overflow-x:clip;max-width:1360px;margin:0 auto;padding:26px 0 40px;color:var(--enc);font:14px/1.45 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",system-ui,sans-serif;font-variant-numeric:tabular-nums}
.msx::before{content:"";position:absolute;z-index:-1;pointer-events:none;border-radius:50%;top:-120px;right:-80px;width:560px;height:420px;background:radial-gradient(closest-side,rgba(245,245,251,.08),transparent 72%)}
.msx button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.msx .ecx-i{width:16px;height:16px;flex:none}

/* ── en-tête : titre, une ligne de contexte, « Chercher dans Messages », un seul bouton blanc ── */
.msx-tete{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.msx-ti{min-width:0}
.msx-ti h1{margin:0;font-size:22px;font-weight:650;letter-spacing:-.02em;line-height:1.2}
.msx-ti p{margin:4px 0 0;font-size:14px;color:var(--enc2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.msx-ret{display:none;border:0;background:none;padding:0;margin:0 0 6px;font-size:14px!important;color:var(--enc2)!important}
.msx-act{display:flex;align-items:center;gap:8px;flex:none}
.msx-cherche{display:inline-flex;align-items:center;gap:8px;height:40px;min-width:230px;padding:0 14px;border-radius:12px;border:1px solid var(--filet2);background:rgba(255,255,255,.04);color:var(--enc3)!important;font-size:14px!important;text-align:left}
.msx-cherche:hover{border-color:var(--filet);color:var(--enc2)!important}
.msx-b{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 16px;border-radius:20px;border:1px solid var(--filet2);background:rgba(255,255,255,.07);color:var(--enc);font-size:14px!important;font-weight:600!important;white-space:nowrap}
.msx-b:hover{background:rgba(255,255,255,.12)}
.msx-b-p{background:#f5f5f7;border-color:#f5f5f7;color:#0b0b0d!important}
.msx-b-p:hover{background:#fff}
.msx-b:disabled{opacity:.5;cursor:default}
/* le geste d'une ligne (Oui, Répondre) : monochrome, plus marqué que son voisin, jamais blanc plein */
.msx-b-oui{border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.12)}
.msx-tabs{display:none}

/* ── la panne : un bandeau rouge d'une ligne ── */
.msx-panne{display:flex;align-items:center;gap:12px;margin:-4px 0 16px;padding:8px 8px 8px 16px;border-radius:14px;border:1px solid rgba(255,90,79,.4);background:rgba(255,90,79,.1);font-size:14px;color:#ffc2bd}
.msx-panne i{width:8px;height:8px;border-radius:50%;background:var(--alerte);flex:none}
.msx-panne span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msx-panne .msx-b{height:36px;background:rgba(255,255,255,.1)}

/* ── haut d'écran : le grand bloc « À traiter » (la surface vedette) et la carte « À valider » ── */
.msx-haut{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:14px;align-items:stretch;margin-bottom:14px}
.msx-c{padding:18px 18px 16px;border-radius:22px;border:1px solid var(--filet);background:var(--verre);min-width:0}
.msx-ved{display:flex;flex-direction:column;background:color-mix(in srgb,var(--app-accent) 8%,#07080b);border-color:color-mix(in srgb,var(--app-accent) 34%,transparent)}
.msx-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 10px}
.msx-h h2{display:flex;align-items:center;gap:8px;margin:0;font-size:16px;font-weight:640;letter-spacing:-.01em}
.msx-nb{font-style:normal;min-width:22px;height:22px;padding:0 7px;border-radius:11px;background:var(--rose-d);color:var(--rose);font-size:12px;font-weight:700;display:inline-grid;place-items:center}
.msx-nb:empty{display:none}
.msx-lien{border:0;background:none;padding:0;font-size:14px!important;font-weight:600;color:var(--enc2)!important}
.msx-lien:hover{color:var(--enc)!important}
.msx-pied{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:auto 2px 0;padding-top:14px;font-size:12px;color:var(--enc3)}
.msx-pied .msx-lien{font-size:12px!important}
.msx-pied .msx-br{display:inline-flex;align-items:center;gap:4px;margin-left:auto}
.msx-pied .msx-br .ecx-i{width:13px;height:13px}
.msx-sous{margin:14px 2px 2px;padding-top:12px;border-top:1px solid rgba(255,255,255,.07);font-size:12px;font-weight:600;color:var(--enc3)}
.msx-r.calme .msx-r-l1 b{font-weight:560;color:rgba(245,245,247,.88)}
.msx-r.calme .msx-r-t small{color:var(--enc3)}
.msx-q30{flex:none;font-size:12px;font-weight:600;color:#ff8f86}

/* une conversation à traiter : qui, ce qu'il a écrit (2 lignes), quand, puis Fait et Répondre */
.msx-r{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:10px 0;border-top:1px solid rgba(255,255,255,.07)}
.msx-r:first-child{border-top:0}
.msx-r-o{min-width:0;display:flex;align-items:center;gap:12px;padding:2px;border:0;background:none;text-align:left;border-radius:12px}
.msx-r-o:hover b{text-decoration:underline;text-decoration-color:var(--enc3);text-underline-offset:3px}
.msx-r-o>.stu-m-av,.msx-r-o>.msx-ini,.msx-r-o>.msx-lg{width:40px!important;height:40px!important;flex:none;border-radius:50%;font-size:12px}
.msx-r-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.msx-r-l1{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;min-width:0}
.msx-r-l1 b{flex:0 1 auto;min-width:6em;font-size:14px;font-weight:620;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msx-r-l1 em{flex:none;font-style:normal;padding:1px 8px;border-radius:99px;background:rgba(255,255,255,.08);font-size:12px;color:var(--enc2)}
.msx-r-t small{font-size:14px;color:var(--enc2);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.msx-r-d{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.msx-r-d time{font-size:12px;color:var(--enc3);white-space:nowrap}
.msx-pt{font-style:normal;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--rose);color:#2a2a30;font-size:12px;font-weight:700;display:grid;place-items:center}
.msx-r-b{display:flex;gap:8px}
.msx-r-b .msx-b{height:36px;padding:0 14px}
.msx-ini{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;flex:none;font-size:12px;font-weight:700;color:#fff;letter-spacing:.02em}

/* « À valider » : quoi, pour qui, échéance, Ouvrir à gauche et Oui à droite */
.msx-ov{display:flex;flex-direction:column}
.msx-v{display:flex;flex-direction:column;gap:3px;padding:11px 0;border-top:1px solid rgba(255,255,255,.07)}
.msx-v:first-child{border-top:0;padding-top:2px}
.msx-v b{font-size:14px;font-weight:600;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.msx-v small{font-size:12px;color:var(--enc3)}
.msx-retard{color:#ff8f86}
.msx-v small span{white-space:nowrap}
.msx-v-b{display:flex;justify-content:space-between;gap:8px;margin-top:6px}
.msx-v-b .msx-b{height:36px;padding:0 16px}
@media (min-width:761px){
  .msx-v{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:3px;align-items:center}
  .msx-v b,.msx-v small{grid-column:1}
  .msx-v-b{grid-column:2;grid-row:1 / span 2;margin:0}
}
.msx-v-tout{align-self:flex-start;margin-top:auto;padding-top:10px!important}

/* les états vides : une coche dans l'accent, une phrase courte */
.msx-ok{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:10px 2px}
.msx-ok b{font-size:16px;font-weight:620}
.msx-ok span{font-size:14px;color:var(--enc2)}
.msx-coche{display:grid!important;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--rose-d);color:var(--rose)!important}
.msx-coche .ecx-i{width:18px;height:18px;stroke:currentColor;stroke-width:2.2;fill:none}
.msx-vide{margin:0;padding:10px 2px;font-size:14px;color:var(--enc3)}

/* ── les chiffres : une rangée, chacun ouvre sa page ── */
.msx-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:28px}
.msx-k{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:108px;padding:14px 16px;border-radius:20px;border:1px solid var(--filet);background:var(--verre);text-align:left;transition:transform .18s cubic-bezier(.22,1,.36,1),background .15s}
button.msx-k:hover{background:rgba(255,255,255,.07);transform:translateY(-2px)}
.msx-kl{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:var(--enc2);white-space:nowrap}
.msx-kl .ecx-i{width:14px!important;height:14px!important}
.msx-k b{margin-top:auto;font-size:22px;font-weight:640;letter-spacing:-.01em;line-height:1.2}
.msx-k small{font-size:12px;color:var(--enc3);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.msx-k.inconnu b{color:var(--enc3);font-weight:560}
.msx-k.inconnu{border-style:dashed;opacity:.85}
.msx-k.inconnu small{color:#ff8f86}
.msx-k-ok{display:inline-flex;align-items:center;gap:8px;font-size:16px;font-weight:620}
.msx-k-ok .ecx-i{width:18px;height:18px;color:var(--rose);stroke:currentColor;stroke-width:2.2;fill:none}
.msx-j{display:block;width:100%;height:4px;margin:6px 0 2px;border-radius:2px;background:rgba(255,255,255,.1);overflow:hidden}
.msx-j i{display:block;height:100%;border-radius:2px;background:var(--rose)}

/* ── les dernières conversations, sous la ligne de flottaison ── */
.msx-fils{margin-bottom:22px}
.msx-tuiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
.msx-t{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:6px;min-height:150px;padding:14px;border-radius:20px;border:1px solid var(--filet2);background:var(--verre);text-align:left;min-width:0;transition:transform .18s cubic-bezier(.22,1,.36,1),background .15s,border-color .15s}
.msx-t:hover{background:rgba(255,255,255,.07);transform:translateY(-2px)}
.msx-t-h{display:flex;align-items:center;gap:8px;margin-bottom:4px}
.msx-t-av{display:grid;place-items:center;width:34px;height:34px;flex:none}
.msx-t-av .stu-m-av,.msx-t-av .msx-ini,.msx-lg{width:34px!important;height:34px!important;font-size:12px;border-radius:50%}
.msx-t-av .stu-m-ag{display:grid;place-items:center;background:var(--rose-d);color:var(--rose)}
.msx-t-k{padding:2px 8px;border-radius:99px;background:rgba(255,255,255,.07);font-size:12px;font-weight:600;color:var(--enc2)}
.msx-t-k:empty{display:none}
.msx-t b{font-size:14px;font-weight:620;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.msx-t p{margin:0;font-size:12px;color:var(--enc2);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.msx-t-p{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:6px}
.msx-t-p time{font-size:12px;color:var(--enc3)}
.msx-t-p em{font-style:normal;padding:2px 8px;border-radius:99px;background:var(--rose-d);color:var(--rose);font-size:12px;font-weight:650;white-space:nowrap}
.msx-t-br{border-style:dashed;background:transparent;border-color:rgba(255,255,255,.16)}
.msx-t-br b{color:var(--enc2)}
.msx-plus{display:grid!important;place-items:center;background:rgba(255,255,255,.07);color:var(--enc2)}
.msx-live{margin-left:auto;width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.16);flex:none}
.msx-live.nl{background:var(--rose)}
.msx-live.on{background:var(--rose);animation:msx-pouls 1.6s ease-out infinite}
.msx-t.neuf{animation:msx-arrive 1.4s cubic-bezier(.22,1,.36,1)}

/* ── « Fait pour toi » : replié sur une ligne, en bas ── */
.msx-fpt{border-radius:20px;border:1px solid var(--filet2);background:rgba(255,255,255,.025)}
.msx-fpt summary{display:flex;align-items:center;gap:10px;min-height:56px;padding:0 18px;list-style:none;cursor:pointer;font-size:14px;color:var(--enc2)}
.msx-fpt summary::-webkit-details-marker{display:none}
.msx-fpt summary b{color:var(--enc);font-weight:620}
.msx-fpt summary span#msxFptS::before{content:"·";margin-right:8px;color:var(--enc3)}
.msx-fpt summary em.alerte{font-style:normal;color:#ff8f86}
.msx-fpt summary>i{margin-left:auto;font-style:normal;font-size:16px;color:var(--enc3);transition:transform .2s}
.msx-fpt[open] summary>i{transform:rotate(90deg)}
.msx-fpt-ic{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--rose-d);color:var(--rose)}
.msx-fpt-ic .ecx-i{width:15px!important;height:15px!important}
.msx-fpt-c{padding:4px 16px 16px}
.msx-dem{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px;padding:8px;border-radius:18px;border:1px solid var(--filet2);background:rgba(0,0,0,.25)}
.msx-dem-q{display:flex;gap:4px;padding:3px;border-radius:99px;background:rgba(0,0,0,.35)}
.msx-dem-q button{height:34px;padding:0 12px;border:0;border-radius:99px;background:none;color:var(--enc2);font-size:12px!important;font-weight:600}
.msx-dem-q button.on{background:rgba(255,255,255,.14);color:var(--enc)}
.msx-dem input{flex:1;min-width:180px;height:40px;border:0;background:none;color:var(--enc);font-size:16px;font-family:inherit;outline:none;padding:0 6px}
.msx-dem input::placeholder{color:var(--enc3)}
.msx-ags{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:start}
.msx-a{display:flex;flex-direction:column;padding:14px;border-radius:18px;border:1px solid var(--filet2);background:rgba(255,255,255,.03)}
.msx-a>header{display:flex;align-items:center;gap:10px}
.msx-a-av{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;flex:none;background:var(--rose-d);color:var(--rose)}
.msx-a-n{flex:1;min-width:0;display:flex;flex-direction:column}
.msx-a-n b{font-size:14px;font-weight:620}
.msx-a-n small{font-size:12px!important;color:var(--enc3)!important}
.msx-etat{display:inline-flex;align-items:center;gap:6px;flex:none;padding:4px 9px;border-radius:99px;background:rgba(255,255,255,.06);font-size:12px;font-weight:600;color:var(--enc2)}
.msx-etat i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.3)}
.msx-etat.on{color:var(--rose);background:var(--rose-d)}
.msx-etat.on i{background:var(--rose);animation:msx-pouls 1.6s ease-out infinite}
.msx-etat.alerte{color:var(--alerte);background:rgba(255,90,79,.12)}
.msx-etat.alerte i{background:var(--alerte)}
.msx-a-c.muet{border-color:rgba(255,90,79,.32)}
.msx-a-s{display:flex;align-items:center;gap:6px;margin:12px 0 4px;font-size:12px;font-weight:600;color:var(--enc3)}
.msx-a-s em{font-style:normal;padding:1px 7px;border-radius:99px;background:var(--rose-d);color:var(--rose);font-size:12px}
.msx-a-f{list-style:none;margin:0;padding:0}
.msx-a-f li{border-top:1px solid rgba(255,255,255,.05)}
.msx-a-f li:first-child{border-top:0}
.msx-a-l{display:flex;align-items:baseline;gap:10px;width:100%;padding:6px 2px;border:0;background:none;text-align:left;font-size:14px;border-radius:8px}
button.msx-a-l:hover span{color:var(--enc);text-decoration:underline;text-decoration-color:var(--enc3);text-underline-offset:3px}
.msx-a-l span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgba(245,245,247,.86)}
.msx-a-l time{flex:none;font-size:12px;color:var(--enc3)}
.msx-a-go{align-self:flex-start;margin-top:4px;padding-top:10px!important}
.msx-cit{display:flex;flex-direction:column;gap:2px;width:100%;margin-top:6px;padding:9px 11px;border-radius:14px;border:1px solid rgba(255,255,255,.06);background:rgba(0,0,0,.22);text-align:left}
.msx-cit:hover{background:rgba(255,255,255,.05)}
.msx-cit small{font-size:12px!important;color:var(--enc3)!important}
.msx-cit span{font-size:12px;color:var(--enc2);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ── les stats : quatorze jours, deux séries côte à côte ── */
.msx-stats{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);gap:14px;align-items:start}
.msx-kpis-s{grid-template-columns:minmax(0,1fr);margin:0}
.msx-flux{display:flex;flex-direction:column}
.msx-leg{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--enc3);white-space:nowrap}
.msx-leg i,.msx-tip i{width:8px;height:8px;border-radius:2px;display:inline-block;flex:none}
.msx-leg i.hu{margin-left:8px}
.msx-leg i.ag,.msx-bar i.ag,.msx-tip i.ag{background:var(--rose)}
.msx-leg i.hu,.msx-bar i.hu,.msx-tip i.hu{background:rgba(255,255,255,.55)}
.msx-flux-c{display:flex;flex-direction:column}
.msx-ch{display:flex;gap:8px;height:260px}
.msx-ax{position:relative;width:22px;flex:none;margin:0 0 22px}
.msx-ax span{position:absolute;right:0;transform:translateY(-50%);font-size:12px;color:var(--enc3);line-height:1}
.msx-pl{position:relative;flex:1;min-width:0;display:flex;flex-direction:column}
.msx-gl{position:absolute;left:0;right:0;top:0;bottom:22px;pointer-events:none}
.msx-gl i{position:absolute;left:0;right:0;height:0;border-top:1px dashed rgba(255,255,255,.09)}
.msx-gl i:last-child{border-top-style:solid;border-top-color:rgba(255,255,255,.16)}
.msx-bars{position:relative;flex:1;display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:4px;align-items:stretch}
.msx-bar{display:flex;flex-direction:column;gap:6px;min-width:0;padding:0;border:0;background:none;border-radius:8px}
.msx-bar-c{flex:1;display:flex;align-items:flex-end;justify-content:center;gap:2px;padding:0 2px}
.msx-bar-c i{display:block;flex:1;max-width:14px;min-height:0;border-radius:3px 3px 1px 1px;transition:opacity .15s}
.msx-bar small{height:16px;font-size:12px;color:var(--enc3);text-align:center}
.msx-bar.auj small{color:var(--enc);font-weight:650}
.msx-bars:hover .msx-bar:not(.on) .msx-bar-c i{opacity:.45}
.msx-bar:focus-visible{outline:2px solid rgba(255,255,255,.4);outline-offset:2px}
.msx-tip{position:absolute;top:-6px;z-index:3;transform:translate(-50%,-100%);display:flex;flex-direction:column;gap:3px;min-width:150px;padding:9px 11px;border-radius:12px;border:1px solid var(--filet);background:rgba(18,18,22,.96);box-shadow:0 10px 30px rgba(0,0,0,.45);font-size:12px;color:var(--enc2);pointer-events:none;white-space:nowrap}
.msx-tip[hidden]{display:none}
.msx-tip b{font-size:12px;font-weight:620;color:var(--enc)}
.msx-tip b::first-letter{text-transform:uppercase}
.msx-tip span{display:flex;align-items:center;gap:7px}
.msx-flux-p{margin:10px 2px 0;font-size:12px;color:var(--enc2)}
.msx-flux-p b{color:var(--enc);font-weight:650}

@keyframes msx-arrive{0%{box-shadow:0 0 0 0 rgba(245,245,251,.55);border-color:var(--rose)}100%{box-shadow:0 0 0 10px rgba(245,245,251,0)}}
@keyframes msx-pouls{0%{box-shadow:0 0 0 0 rgba(245,245,251,.55)}70%{box-shadow:0 0 0 7px rgba(245,245,251,0)}100%{box-shadow:0 0 0 0 rgba(245,245,251,0)}}
@media (prefers-reduced-motion:reduce){.msx-t.neuf,.msx-live.on,.msx-etat.on i{animation:none}.msx-k,.msx-t{transition:none}}

/* ── la boîte (liste + conversation) : l'accent rose, les mêmes mots, la recherche à 16 px ── */
.msx-boite .stu-m-it em.prop{background:rgba(245,245,251,.16)!important;color:#f5f5fb!important}
body.stu-on #view > .stu-m.msx-boite{margin-right:-28px}
.msx-boite .stu-m-it.on{box-shadow:inset 2px 0 0 #f5f5fb}
.msx-boite .stu-m-ag{background:rgba(245,245,251,.14)!important;color:#f5f5fb!important;border-color:rgba(245,245,251,.35)!important}
.msx-boite .msx-ret{display:none;border:0;background:none;padding:0;margin:0 0 6px;font:inherit;font-size:14px;color:rgba(245,245,247,.7);cursor:pointer}
.msx-boite .msx-tabs{display:none}
.msx-boite .stu-m-q input{font-size:16px}
.msx-boite .stu-m-nv.msx-nv{display:inline-flex;align-items:center;flex-direction:row;width:auto;height:36px;gap:6px;padding:0 14px;border-radius:18px;font-size:14px;font-weight:600;white-space:nowrap;flex:none}
.msx-boite .stu-m-cote>header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.msx-boite .stu-m-nv.msx-nv .ecx-i{width:15px;height:15px}
.msx-boite .stu-m-it small{font-size:12px}
.msx-boite .stu-m-sous{font-size:12px}

/* le rail de l'iPad : un nom court toujours visible, sous l'icône */
.msx-court{display:none}
@media (min-width:861px) and (max-width:1180px){
  body[data-page="messages"] #stuSide .ecx-nav>button[data-mo]{overflow:visible}
  body[data-page="messages"] #stuSide .ecx-nav>button[data-mo] .stu-long{display:none!important}
  body[data-page="messages"] #stuSide .ecx-nav>button[data-mo] .msx-court{display:block;max-width:none;margin:0 -6px;font-size:12px;letter-spacing:-.02em;line-height:1.2;text-align:center;white-space:nowrap;overflow:visible}
}

/* ── tablette ── */
@media (max-width:1180px){
  .msx-b,.msx-cherche{height:44px}
  .msx-r-b .msx-b,.msx-v-b .msx-b{height:44px}
  .msx-ags{grid-template-columns:repeat(2,minmax(0,1fr))}
  .msx-a-c{grid-column:1 / -1}
  .msx-cherche{min-width:200px}
}
@media (max-width:1180px){
  .msx-haut{grid-template-columns:minmax(0,1fr)}
  .msx-stats{grid-template-columns:minmax(0,1fr)}
}
/* ── téléphone : en-tête « ‹ Accueil », puis les pages en puces collées, « À valider », le grand bloc, les chiffres, les agents ── */
@media (max-width:760px){
  .msx{padding:6px 0 calc(104px + env(safe-area-inset-bottom));font-size:14px}
  .msx-ret,.msx-boite .msx-ret{display:block}
  .msx-tete{flex-direction:column;align-items:stretch;gap:12px;margin-bottom:12px}
  .msx-ti p{font-size:13px;white-space:normal}
  .msx-act{width:100%;flex-direction:column;align-items:stretch}
  .msx-cherche{min-width:0;width:100%}
  .msx-act .msx-b-p span{display:inline}
  .msx-tabs,.msx-boite .msx-tabs{display:flex;position:sticky;top:0;z-index:5;gap:8px;margin:0 -16px 14px;padding:8px 16px;overflow-x:auto;scrollbar-width:none;background:#07080b;-webkit-mask-image:linear-gradient(90deg,#000 82%,transparent);mask-image:linear-gradient(90deg,#000 82%,transparent)}
  .msx-tabs::-webkit-scrollbar{display:none}
  .msx-boite .msx-tabs{margin:0 0 10px;padding:4px 0}
  .msx-panne{padding:8px 8px 8px 12px;gap:10px}
  .msx-panne span{white-space:normal;font-size:13px;line-height:1.35}
  .msx-panne .msx-b{height:44px;padding:0 14px}
  .msx-haut{display:flex;flex-direction:column;gap:12px}
  .msx-ov{order:-1}
  .msx-c{padding:14px;border-radius:20px}
  .msx-r{grid-template-columns:minmax(0,1fr) auto;row-gap:8px}
  .msx-r-b{grid-column:1 / -1;justify-content:flex-end}
  .msx-r-b .msx-b{flex:1}
  .msx-r-t small,.msx-v small,.msx-k small,.msx-r-d time,.msx-pied,.msx-t p,.msx-t-p time,.msx-kl,.msx-a-l time,.msx-a-s,.msx-a-n small,.msx-etat{font-size:13px!important}
  .msx-r-l1 em{display:none}
  .msx-v-b .msx-b{flex:1}
  .msx-kpis{grid-template-columns:minmax(0,1fr);gap:8px}
  .msx-k{min-height:0;padding:12px 14px}
  .msx-k b{margin-top:4px}
  .msx-k b.txt{font-size:16px}
  .msx-fpt summary{flex-wrap:wrap;row-gap:2px;padding:10px 14px}
  .msx-fpt summary b{white-space:nowrap}
  .msx-fpt summary span#msxFptS{order:3;flex:1 1 100%;padding-left:40px;font-size:13px}
  .msx-fpt summary span#msxFptS::before{content:none}
  .msx-boite .msx-ret{align-self:flex-start;text-align:left;width:auto}
  .msx-boite #stuMTitre{font-size:22px;line-height:1.2}
  .msx-tuiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .msx-t{min-height:130px;padding:12px}
  .msx-t-k{display:none}
  .msx-ags{grid-template-columns:minmax(0,1fr)}
  .msx-dem input{min-width:0;flex:1 1 100%}
  .msx-ch{height:200px;gap:6px}
  .msx-ax{width:16px}
  .msx-bars{gap:2px}
  .msx-bar-c{padding:0;gap:1px}
  .msx-flux .msx-h{flex-wrap:wrap}
  body.stu-on #view > .stu-m.msx-boite{padding-bottom:calc(104px + env(safe-area-inset-bottom))}
}
