/* HMS — composants du 25/10/2026 : Jellyfin au cœur (avatars, « Reprendre »), frise des demandes, dernière chance, dépannage,
   statistiques de visionnage (carte de chaleur, classement, en direct). Tout s'appuie sur les couleurs du thème (themes.css). */

/* ─── avatar (image du compte Jellyfin) ─── */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.moi .avatar { box-shadow: 0 0 0 2px rgba(var(--lueur), .55), 0 0 18px -4px rgba(var(--lueur), .8); }
.connexion-aide { margin: 2px 0 6px; padding: 10px 12px; border-radius: 12px; background: var(--grad-doux); border: 1px solid var(--trait); font-size: .85rem; color: var(--doux); }
.connexion-aide b { color: var(--encre); }

/* ─── badges « vu » et progression ─── */
.vu-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; color: var(--bien); }
.ligne-episode.deja-vu .titre-ep { color: var(--doux); }
.ligne-episode .vu-marque { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--bien) 22%, transparent); color: var(--bien); flex: none; }
.ligne-episode .vu-marque svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 3; }
.mini-prog { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; width: 70px; }
.mini-prog i { display: block; height: 100%; width: var(--p, 0%); background: var(--grad); }

/* ─── frise des demandes : Demandée → Acceptée → Recherche → Téléchargement → Rangement → Disponible ─── */
.frise { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 10px 0 4px; position: relative; }
.frise-etape { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: .72rem; color: var(--pale); padding-top: 2px; }
.frise-etape::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: rgba(255, 255, 255, .08); z-index: 0; }
.frise-etape:first-child::before { display: none; }
.frise-etape.faite::before, .frise-etape.courante::before { background: var(--grad); box-shadow: 0 0 10px rgba(var(--lueur), .6); }
.frise-pastille { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--trait); transition: transform .3s, box-shadow .3s; }
.frise-pastille .ico { width: 16px; height: 16px; }
.frise-etape.faite .frise-pastille { background: var(--grad); border-color: transparent; color: var(--sur-grad); }
.frise-etape.courante .frise-pastille { border-color: rgba(var(--lueur), .9); box-shadow: 0 0 0 4px rgba(var(--lueur), .18), 0 0 22px rgba(var(--lueur), .55); color: var(--encre); animation: frise-pouls 2.2s ease-in-out infinite; }
.frise-etape.faite, .frise-etape.courante { color: var(--encre); }
.frise-etape.alerte .frise-pastille { border-color: var(--attention); box-shadow: 0 0 0 4px color-mix(in srgb, var(--attention) 20%, transparent); }
.frise-etape.bloquee .frise-pastille { border-color: var(--mal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mal) 22%, transparent); }
.frise-pct { font-weight: 800; font-size: .78rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes frise-pouls { 50% { transform: scale(1.08); } }
.frise-barre { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; margin: 8px 0 2px; }
.frise-barre i { display: block; height: 100%; width: var(--p, 0%); background: var(--grad); box-shadow: 0 0 14px rgba(var(--lueur), .7); transition: width .8s cubic-bezier(.2, .8, .2, 1); position: relative; }
.frise-barre i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: frise-reflet 1.8s linear infinite; }
@keyframes frise-reflet { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.frise-texte { font-size: .82rem; color: var(--doux); margin-top: 6px; }
.origine-discord { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: rgba(88, 101, 242, .18); color: #a5b4fc; border: 1px solid rgba(88, 101, 242, .35); }
@media (max-width: 560px) { .frise-etape span:not(.frise-pct) { display: none; } .frise-etape.courante span { display: block; } }

/* ─── dernière chance ─── */
.dc-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 16px; }
.dc-carte { position: relative; border-radius: var(--rayon); overflow: hidden; background: var(--verre); border: 1px solid var(--trait); display: grid; grid-template-rows: auto 1fr; transition: transform .25s, box-shadow .25s; }
.dc-carte:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(var(--lueur), .6); }
.dc-image { position: relative; aspect-ratio: 2 / 3; background: var(--surface-2); }
.dc-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.dc-image img.charge { opacity: 1; }
.dc-image .initiale { position: absolute; inset: 0; display: grid; place-items: center; font: 800 3rem var(--titre); color: var(--pale); }
.dc-rebours { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 6px 10px; border-radius: 12px; font-weight: 800; font-size: .8rem; text-align: center;
  background: linear-gradient(115deg, rgba(251, 113, 133, .92), rgba(251, 191, 36, .92)); color: #1a0b0b; box-shadow: 0 6px 18px -6px rgba(251, 113, 133, .8); }
.dc-rebours.urgent { animation: dc-alerte 1.4s ease-in-out infinite; }
@keyframes dc-alerte { 50% { filter: brightness(1.25); transform: scale(1.03); } }
.dc-corps { padding: 10px 12px 12px; display: grid; gap: 8px; align-content: start; }
.dc-corps b { font-family: var(--titre); font-size: .95rem; line-height: 1.2; }
.dc-raison { font-size: .75rem; color: var(--doux); }
.dc-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.dc-actions .bouton { padding: 7px 11px; font-size: .78rem; flex: 1 1 auto; }
.bouton.coeur[aria-pressed="true"] { background: linear-gradient(115deg, rgba(244, 114, 182, .35), rgba(251, 113, 133, .35)); border-color: rgba(244, 114, 182, .6); }
.dc-votes { font-size: .72rem; color: var(--doux); }
.dc-bandeau { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--rayon); margin-bottom: 18px;
  background: linear-gradient(115deg, rgba(251, 113, 133, .16), rgba(251, 191, 36, .12)); border: 1px solid rgba(251, 113, 133, .3); }

/* ─── dépannage ─── */
.dp-situations { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.dp-situation { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 16px; border-radius: var(--rayon); cursor: pointer;
  background: var(--verre); border: 1px solid var(--trait); transition: transform .2s, border-color .2s, box-shadow .2s; }
.dp-situation:hover, .dp-situation[aria-pressed="true"] { transform: translateY(-2px); border-color: rgba(var(--lueur), .6); box-shadow: 0 10px 30px -14px rgba(var(--lueur), .8); }
.dp-situation .ico { width: 34px; height: 34px; padding: 7px; border-radius: 12px; background: var(--grad-doux); color: var(--encre); }
.dp-situation b { font-size: .92rem; line-height: 1.3; }
.dp-entrees { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 16px 0 6px; }
.dp-entrees > div { flex: 1 1 220px; }
.dp-resultat { display: grid; gap: 10px; margin-top: 14px; }
.dp-resume { padding: 14px 16px; border-radius: var(--rayon); font-weight: 600; border: 1px solid var(--trait); }
.dp-resume.ok, .dp-resume.info { background: color-mix(in srgb, var(--bien) 12%, transparent); border-color: color-mix(in srgb, var(--bien) 40%, transparent); }
.dp-resume.attention { background: color-mix(in srgb, var(--attention) 13%, transparent); border-color: color-mix(in srgb, var(--attention) 45%, transparent); }
.dp-resume.probleme { background: color-mix(in srgb, var(--mal) 14%, transparent); border-color: color-mix(in srgb, var(--mal) 45%, transparent); }
.dp-etape { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px 16px; border-radius: var(--rayon); background: var(--verre); border: 1px solid var(--trait); border-left-width: 4px; animation: dp-entree .4s both; }
.dp-etape:nth-child(2) { animation-delay: .06s; } .dp-etape:nth-child(3) { animation-delay: .12s; } .dp-etape:nth-child(4) { animation-delay: .18s; } .dp-etape:nth-child(5) { animation-delay: .24s; }
@keyframes dp-entree { from { opacity: 0; transform: translateY(8px); } }
.dp-etape.ok { border-left-color: var(--bien); } .dp-etape.info { border-left-color: var(--info); }
.dp-etape.attention { border-left-color: var(--attention); } .dp-etape.probleme { border-left-color: var(--mal); }
.dp-etat { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .9rem; }
.dp-etape.ok .dp-etat { background: color-mix(in srgb, var(--bien) 22%, transparent); color: var(--bien); }
.dp-etape.info .dp-etat { background: color-mix(in srgb, var(--info) 22%, transparent); color: var(--info); }
.dp-etape.attention .dp-etat { background: color-mix(in srgb, var(--attention) 22%, transparent); color: var(--attention); }
.dp-etape.probleme .dp-etat { background: color-mix(in srgb, var(--mal) 22%, transparent); color: var(--mal); }
.dp-etape h4 { margin: 0 0 4px; font-size: .95rem; }
.dp-etape p { margin: 0; color: var(--doux); font-size: .88rem; }
.dp-conseil { margin-top: 8px !important; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); color: var(--encre) !important; }
.dp-conseil::before { content: "💡 "; }
.dp-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ─── statistiques de visionnage ─── */
.st-onglets { display: inline-flex; gap: 2px; flex-wrap: wrap; margin: 4px 0 16px; }
.st-chaleur { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; font-size: .66rem; color: var(--pale); }
.st-chaleur i { aspect-ratio: 1; border-radius: 4px; background: rgba(var(--lueur), calc(.06 + var(--i, 0) * .94)); box-shadow: 0 0 calc(var(--i, 0) * 12px) rgba(var(--lueur), calc(var(--i, 0) * .7)); transition: transform .15s; }
.st-chaleur i:hover { transform: scale(1.35); }
.st-chaleur .h { text-align: center; }
.st-classement { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-classement li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.st-classement .rang { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--surface-2); }
.st-classement li:nth-child(1) .rang { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #3b2300; box-shadow: 0 0 16px rgba(245, 158, 11, .6); }
.st-classement li:nth-child(2) .rang { background: linear-gradient(135deg, #f1f5f9, #94a3b8); color: #1e293b; }
.st-classement li:nth-child(3) .rang { background: linear-gradient(135deg, #fed7aa, #c2410c); color: #2a1004; }
.st-classement .barre { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: 4px; }
.st-classement .barre i { display: block; height: 100%; width: var(--l); background: var(--grad); }
.en-direct { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.en-direct li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--verre); border: 1px solid var(--trait); }
.point-direct { width: 10px; height: 10px; border-radius: 50%; background: var(--mal); box-shadow: 0 0 0 0 rgba(251, 113, 133, .7); animation: direct 1.6s infinite; }
.point-direct.pause { background: var(--pale); animation: none; }
@keyframes direct { 70% { box-shadow: 0 0 0 10px rgba(251, 113, 133, 0); } 100% { box-shadow: 0 0 0 0 rgba(251, 113, 133, 0); } }
.en-direct small { display: block; color: var(--doux); }
.puce.conversion { background: color-mix(in srgb, var(--attention) 18%, transparent); color: var(--attention); }
.st-moi-tete { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.st-moi-tete .avatar { width: 64px; height: 64px; font-size: 1.6rem; }
.st-flamme { font-size: 1.6rem; }

/* ─── administration : comptes Jellyfin, appairages, réglages ─── */
.puce.jellyfin { background: rgba(170, 92, 195, .18); color: #e0b3f5; border-color: rgba(170, 92, 195, .4); }
.ad-avatar { width: 30px; height: 30px; border-radius: 50%; vertical-align: middle; margin-right: 8px; object-fit: cover; display: inline-block; background: var(--surface-2); }
.code-geant { font: 800 2rem/1 var(--titre); letter-spacing: .25em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reglages-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.reglages-grille label { display: grid; gap: 6px; }
.choix-segment { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--trait); gap: 2px; flex-wrap: wrap; }
.choix-segment button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--doux); }
.choix-segment button[aria-pressed="true"] { background: var(--grad); color: var(--sur-grad); box-shadow: 0 4px 16px -6px rgba(var(--lueur), .9); }

@media (prefers-reduced-motion: reduce) {
  .frise-etape.courante .frise-pastille, .dc-rebours.urgent, .point-direct, .frise-barre i::after { animation: none; }
  .dp-etape { animation: none; }
}

/* ─── machines (OMS 2.0) ─── */
.mc-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.mc-carte { display: grid; gap: 8px; padding: 18px; border-radius: var(--rayon); background: var(--verre); border: 1px solid var(--trait); transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden; }
.mc-carte::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 220px; height: 220px; background: radial-gradient(circle, rgba(var(--lueur), .22), transparent 70%); pointer-events: none; }
.mc-carte:hover { transform: translateY(-4px); border-color: rgba(var(--lueur), .55); box-shadow: 0 18px 40px -18px rgba(var(--lueur), .7); }
.mc-carte.hors-ligne { opacity: .6; }
.mc-carte h3 { margin: 4px 0 0; font-size: 1.1rem; }
.mc-carte-tete { display: flex; gap: 6px; flex-wrap: wrap; }
.mc-anneaux { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.mc-anneau { position: relative; width: var(--t, 92px); height: var(--t, 92px); flex: none; }
.mc-anneau svg { width: 100%; height: 100%; }
.mc-anneau .piste { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 9; }
.mc-anneau .arc { fill: none; stroke: url(#mc-grad) var(--braise); stroke: var(--braise); stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray .8s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 0 6px rgba(var(--lueur), .7)); }
.mc-anneau.bien .arc { stroke: var(--bien); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--bien) 70%, transparent)); }
.mc-anneau.attention .arc { stroke: var(--attention); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--attention) 70%, transparent)); }
.mc-anneau.mal .arc { stroke: var(--mal); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--mal) 80%, transparent)); }
.mc-centre { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.mc-centre b { font: 800 1.15rem var(--titre); }
.mc-centre span { font-size: .62rem; color: var(--doux); text-transform: uppercase; letter-spacing: .06em; }
.mc-centre small { font-size: .62rem; color: var(--pale); }
.mc-reseau { margin: 4px 0 0; font-size: .82rem; color: var(--doux); }
.mc-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.mc-section { display: grid; gap: 10px; align-content: start; }
.mc-section h4 { margin: 6px 0 0; font-size: .85rem; color: var(--doux); }
.mc-section-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mc-section-tete h3 { margin: 0; }
.mc-cpu { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.mc-cpu-chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; flex: 1 1 220px; }
.mc-cpu-chiffres > div { display: grid; }
.mc-cpu-chiffres b { font: 700 1.05rem var(--titre); }
.mc-cpu-chiffres b.bien { color: var(--bien); } .mc-cpu-chiffres b.attention { color: var(--attention); } .mc-cpu-chiffres b.mal { color: var(--mal); }
.mc-cpu-chiffres span { font-size: .72rem; color: var(--doux); }
.mc-cpu-chiffres .mc-courbe { grid-column: 1 / -1; }
.mc-coeurs { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px; }
.mc-coeur { display: grid; justify-items: center; gap: 2px; font-size: .62rem; }
.mc-coeur-piste { width: 100%; height: 64px; border-radius: 8px; background: rgba(255, 255, 255, .05); display: flex; align-items: flex-end; overflow: hidden; }
.mc-coeur-piste i { width: 100%; background: var(--grad); transition: height .6s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 0 12px rgba(var(--lueur), .5); }
.mc-coeur-piste i.attention { background: linear-gradient(180deg, var(--attention), color-mix(in srgb, var(--attention) 50%, transparent)); }
.mc-coeur-piste i.mal { background: linear-gradient(180deg, var(--mal), color-mix(in srgb, var(--mal) 50%, transparent)); }
.mc-barre { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 10px; align-items: center; font-size: .82rem; }
.mc-barre-nom { color: var(--doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-barre-piste { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.mc-barre-piste i { display: block; height: 100%; background: var(--grad); border-radius: inherit; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.mc-barre-piste i.attention { background: var(--attention); } .mc-barre-piste i.mal { background: var(--mal); }
.mc-barre.neutre .mc-barre-piste { display: none; }
.mc-barre-val { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.mc-gpus { display: grid; gap: 16px; }
.mc-gpu { display: grid; gap: 8px; padding-top: 6px; }
.mc-gpu + .mc-gpu { border-top: 1px solid var(--trait); padding-top: 14px; }
.mc-disque { display: grid; gap: 4px; }
.mc-courbe { width: 100%; height: 44px; display: block; }
.mc-courbe-attente { height: 44px; border-radius: 8px; background: rgba(255, 255, 255, .03); }
.mc-courbe .trait { fill: none; stroke: var(--or); stroke-width: 2; vector-effect: non-scaling-stroke; }
.mc-courbe .aire { fill: rgba(var(--lueur), .14); stroke: none; }
.mc-courbe.c2 .trait { stroke: #f472b6; } .mc-courbe.c3 .trait { stroke: #34d399; } .mc-courbe.c4 .trait { stroke: #60a5fa; }
.mc-capteurs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mc-capteur-bloc { display: grid; gap: 6px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); align-content: start; }
.mc-capteur-groupe { display: grid; gap: 2px; }
.mc-capteur { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; }
.mc-capteur b { font-variant-numeric: tabular-nums; }
.mc-capteur b.bien { color: var(--bien); } .mc-capteur b.attention { color: var(--attention); } .mc-capteur b.mal { color: var(--mal); }
td.bien { color: var(--bien); } td.attention { color: var(--attention); } td.mal { color: var(--mal); }
@media (max-width: 560px) { .mc-barre { grid-template-columns: 90px 1fr auto; } .mc-anneau { --t: 80px !important; } }

/* machines : ce qu'il faut regarder (25/10) */
.mc-alertes { grid-column: 1 / -1; }
.mc-alerte { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--bord, rgb(255 255 255 / .08)); }
.mc-alerte:first-of-type { border-top: 0; }
.mc-alerte .puce { flex: none; text-transform: capitalize; }
.mc-alerte p { margin: 2px 0 0; }
.mc-carte > .puce { align-self: flex-start; margin-top: 4px; }

/* ─── Jeux : onglet Gestion (mondes, réglages, joueurs, planning) ─── */
.gm-monde { display: grid; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--trait); }
.gm-monde.actif { border-color: color-mix(in srgb, var(--bien) 45%, var(--trait)); }
.gm-monde-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.gm-monde-tete > div:first-child { display: grid; gap: 4px; min-width: 0; }
.gm-monde-tete small { color: var(--doux); }
.gm-panneau { display: grid; gap: 12px; padding: 12px; border-radius: 10px; background: var(--surface); border: 1px dashed var(--trait); }
.gm-ligne { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.gm-ligne label { display: grid; gap: 6px; flex: 1 1 200px; }
.gm-ligne input:not([type=checkbox]) { min-width: 0; }
.rangee-tete .gm-ligne { flex: 0 1 360px; }
.rangee-tete .gm-ligne input { flex: 1 1 160px; padding: 8px 11px; }
.gm-cases { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.gm-case { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--encre); cursor: pointer; }
.gm-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gm-liste li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; background: var(--surface-2); flex-wrap: wrap; }
.gm-liste li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.gm-trois { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.gm-trois h4 { margin: 0 0 6px; }
.gm-details summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.gm-details[open] summary { margin-bottom: 10px; }
.gm-formulaire fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.gm-formulaire fieldset[disabled] { opacity: .75; }
.bouton.danger { border-color: color-mix(in srgb, var(--mal) 55%, var(--trait)); color: var(--mal); }
.bouton.danger:hover { background: color-mix(in srgb, var(--mal) 14%, transparent); }
p.mal { color: var(--mal); }

/* ─── Administration : conversations d'Hestia (journal-hestia.js) ─── */
.jh-liste { display: grid; gap: 12px; }
.jh-conv, .jh-ligne { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--trait); min-width: 0; }
.jh-ligne.grave { border-color: color-mix(in srgb, var(--attention) 45%, var(--trait)); }
.jh-tete { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.jh-tete .doux { font-size: .85rem; }
.jh-bulle { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; max-width: min(760px, 100%); min-width: 0; }
.jh-bulle p, .jh-ligne p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.jh-eux { background: var(--surface-2); justify-self: start; border-bottom-left-radius: 4px; }
.jh-elle { background: color-mix(in srgb, var(--braise) 10%, var(--surface-2)); justify-self: end; border-bottom-right-radius: 4px; }
.jh-elle.mal { background: color-mix(in srgb, var(--mal) 12%, var(--surface-2)); }
.jh-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.jh-puces .puce { font-size: .78rem; }
.jh-erreurs { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--encre); }
.jh-brut { margin: 0; max-height: 420px; overflow: auto; font-size: .78rem; background: var(--nuit); border: 1px solid var(--trait); border-radius: 10px; padding: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.jh-bulle .bouton.petit, .jh-ligne .bouton.petit { justify-self: start; }
