/*
 * L'OUVERTURE DE SESSION — ce qui précède le bureau, dans le même OS (2 octobre 2026, plan/steps/12-session-opening.md).
 * La forme fait foi dans la maquette `plan/essais/session.html` ; cette feuille la reprend. La barre système et les
 * fenêtres viennent de `os.css` et de `hud.css` ; aucune couleur neuve, tout descend des jetons.
 */

/* ═══ L'ALLUMAGE : noir plein, le journal en haut à gauche ; il s'efface sur ce qui suit ══════════════════════ */
.allumage {
  position: fixed; inset: 0; z-index: 1100; padding: 56px 64px; cursor: pointer;
  background: var(--fond); color: var(--encre); transition: opacity 0.5s;
}
.allumage.fini { opacity: 0; pointer-events: none; }
/* ⚠️ MÊME MARGE QUE L'AMORCE (`os.css`) : l'allumage se fond sur elle, et deux journaux décalés se liraient en double. */
@media (max-width: 640px) { .allumage { padding: 40px 20px; } }

/* ═══ LA SESSION : le ciel du bureau, qui est au poste, ses mondes en dossiers ═════════════════════════════════ */
.session__ressort { flex: 1; }
.session__lien { font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--discret); text-decoration: none; }
.session__lien:hover { color: var(--encre); }
.session__salle {
  position: absolute; top: 36px; left: 0; right: 0; bottom: 0; z-index: 2; overflow: auto;
  display: flex; flex-direction: column; gap: 56px; padding: 56px max(48px, calc((100vw - 1100px) / 2)) 120px;
  user-select: none;
}

.poste { display: flex; align-items: center; gap: 20px; }
.poste__tuile {
  --coupe: 14px;
  flex: none; width: 76px; height: 76px; display: grid; place-items: center; border: 0; cursor: pointer;
  font-family: var(--titre); font-size: 20px; letter-spacing: 3px; color: var(--encre); background: var(--creux);
  clip-path: polygon(0 0, calc(100% - var(--coupe)) 0, 100% var(--coupe), 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px var(--structureVive), inset 0 2px 0 0 var(--accent);
}
.poste__tuile:hover { box-shadow: inset 0 0 0 1px var(--encre), inset 0 2px 0 0 var(--accent); }
.poste[data-qui='anonymous'] .poste__tuile { --accent: var(--signal); color: var(--discret); }
.poste[data-qui='none'] .poste__tuile { color: var(--efface); box-shadow: inset 0 0 0 1px var(--structure); }
.poste__nom { margin: 0; }
.poste__nom button {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-family: var(--titre); font-size: 19px; font-weight: 400; letter-spacing: 6px; text-transform: uppercase; color: var(--encre);
}
.poste__nom button:hover { color: var(--signalVif); }
.poste__dit { margin: 6px 0 0; display: flex; align-items: center; gap: 14px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--efface); }
.poste__dit .plaque.discret > span { height: 24px; }

.session__mondes { display: flex; flex-direction: column; }
.session__groupe { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 10px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--efface); }
.session__groupe::after { content: ''; order: 1; flex: 1; height: 1px; background: var(--structure); }
.session__groupe b { order: 2; font-weight: 500; color: var(--discret); }
.session__rangee { display: flex; flex-wrap: wrap; gap: 22px 26px; margin-bottom: 44px; }

/* Les fenêtres se posent sur la salle ; elles seules prennent les gestes, le vide reste aux dossiers. */
.session__fenetres { position: absolute; top: 36px; left: 0; right: 0; bottom: 0; z-index: 5; pointer-events: none; }
.session__fenetres > .fenetre { pointer-events: auto; }
.session__fenetres > .fenetre > .corps { min-height: 0; overflow: auto; }

/* ═══ LA FENÊTRE D'UN SERVEUR : le cadre d'hier sans sa planche ═══════════════════════════════════════════════ */
.serveur { display: flex; flex-direction: column; gap: 16px; }
.serveur__nom { margin: 0; font-family: var(--texte); font-weight: 600; font-size: 25px; letter-spacing: 0.4px; color: var(--encre); }
.serveur .mesures { flex-wrap: wrap; }
.humeurs { display: flex; flex-direction: column; gap: 12px; }
.humeur { display: flex; flex-direction: column; gap: 5px; }
.humeur .lib { font-size: 9px; font-weight: 500; letter-spacing: 1.6px; color: var(--efface); }
.humeur__muet { font-size: 9px; letter-spacing: 1.4px; color: var(--efface); opacity: 0.7; }
.serveur__empire { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: color-mix(in srgb, var(--gris) 5%, transparent); box-shadow: inset 2px 0 0 var(--signal); }
.serveur__mono {
  --coupe: 8px;
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  font-family: var(--titre); font-size: 12px; letter-spacing: 2px; color: var(--encre); background: var(--creux);
  clip-path: polygon(0 0, calc(100% - var(--coupe)) 0, 100% var(--coupe), 100% 100%, 0 100%);
}
.serveur__empire b { display: block; font-size: 16px; color: var(--encre); }
.serveur__empire small { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--efface); }
.serveur__echeances > div {
  display: flex; justify-content: space-between; gap: 12px; padding: 6px 4px; font-size: 13px; color: var(--encre);
  border-top: 1px solid color-mix(in srgb, var(--structure) 60%, transparent);
}
.serveur__echeances b { font-weight: 600; color: var(--signal); font-variant-numeric: tabular-nums; }
.serveur__echeances .note { margin: 0; }
.serveur__verbe { margin-top: 4px; }

/* ═══ LA BOÎTE SYSTÈME : par-dessus tout, la session derrière s'assombrit ════════════════════════════════════ */
.boite-systeme {
  position: fixed; inset: 36px 0 0 0; z-index: 950; display: grid; place-items: center; padding: 16px;
  background: color-mix(in srgb, var(--fond) 62%, transparent); backdrop-filter: blur(3px);
}
.boite-systeme__cadre { width: 540px; max-width: 100%; max-height: calc(100vh - 84px); background: var(--panneau); animation: boite-arrive 0.3s ease-out; }
.boite-systeme__cadre > .corps { min-height: 0; overflow: auto; }
@keyframes boite-arrive { from { opacity: 0; transform: translateY(8px) scale(0.98); } }

/* ═══ LE BADGE : une carte d'accès, et ses clés à côté ═══════════════════════════════════════════════════════ */
.compte { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
/* La carte d'accès (`.badge`, `.tampon`) et la porte (`.connexion`, `.cle-saisie`, `.code`) vivent dans `hud.css` depuis le 7 octobre 2026. */
.badge .langue__menu { left: 0; right: auto; z-index: 3; }
.badge .note, .badge .refus { margin: -4px 0 0; font-size: 12px; }
.renommer { border: 0; background: none; padding: 0 2px; cursor: pointer; font-size: 14px; color: var(--efface); }
.renommer:hover { color: var(--signal); }
.badge .renomme input { font-family: var(--titre); font-size: 15px; letter-spacing: 3px; text-transform: uppercase; }

.cles { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cles .note { margin: 0; }
.note.petite { font-size: 12px; color: var(--efface); }
.cle {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 11px 12px 11px 14px;
  background: color-mix(in srgb, var(--gris) 5%, transparent); box-shadow: inset 2px 0 0 var(--structureVive);
}
.cle svg { width: 22px; height: 22px; color: var(--discret); }
.cle__nom { font-size: 13.5px; color: var(--encre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cle b { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--signal); font-weight: 600; }
.cle.vive { box-shadow: inset 2px 0 0 var(--signal); }
.cle.vive svg { color: var(--signal); }
.cle .plaque.discret > span { height: 26px; }
.compte__pied { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--structure); }
.compte__pied .gestes { margin: 0; }
.compte__liens { display: flex; gap: 18px; }

/* ═══ L'ASSISTANT : créer sa session sur un serveur, en trois étapes ═════════════════════════════════════════ */
.assistant {
  position: absolute; top: 36px; left: 0; right: 0; bottom: 0; z-index: 8;
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  background: color-mix(in srgb, var(--fond) 88%, transparent); backdrop-filter: blur(6px); animation: boite-arrive 0.35s ease-out;
}
.assistant__rail { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 34px 26px 26px 40px; border-right: 1px solid var(--structure); }
.assistant__tete { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--titre); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--efface); }
.assistant__monde { margin: 14px 0 0; font-family: var(--titre); font-size: 26px; font-weight: 400; letter-spacing: 6px; text-transform: uppercase; color: var(--encre); overflow-wrap: anywhere; }
.assistant__faits { margin: 0 0 26px; font-size: 12px; color: var(--discret); }
.assistant__etapes { display: flex; flex-direction: column; margin-bottom: 14px; }
.assistant__etape {
  display: grid; grid-template-columns: 30px 1fr 16px; align-items: center; gap: 6px; padding: 13px 0; border: 0;
  border-top: 1px solid var(--structure); background: none; text-align: left; cursor: default;
  font-family: var(--texte); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--efface);
}
.assistant__etape:last-child { border-bottom: 1px solid var(--structure); }
.assistant__etape:not(:disabled) { cursor: pointer; }
.assistant__etape:not(:disabled):hover .mot { color: var(--signalVif); }
.assistant__etape .idx { font-size: 10px; opacity: 0.7; }
.assistant__etape .marque { text-align: center; }
.assistant__etape.faite { color: var(--encre); }
.assistant__etape.faite .marque { color: var(--accent); }
.assistant__etape.encours { color: var(--signal); }
.assistant__etape.encours .marque { animation: amorce-respire 2.4s ease-in-out infinite; }
.assistant__scene { min-width: 0; min-height: 0; display: flex; padding: 26px 40px 26px 30px; overflow: auto; }
.assistant__scene > .chemise { flex: 1; min-height: 0; }
.assistant__scene .feuille { padding: 18px 22px 22px; }
.assistant__duo { display: grid; grid-template-columns: 320px minmax(0, 560px); gap: 44px; align-items: start; margin: 24px auto 0; }
.assistant__form { display: flex; flex-direction: column; gap: 14px; }
.assistant__form .note, .assistant__form .refus { margin: 0; }
.assistant__titre { margin: 0 0 4px; font-family: var(--titre); font-size: 12px; font-weight: 400; letter-spacing: 4px; text-transform: uppercase; color: var(--discret); }
.assistant__retouche { margin-left: 12px; font-size: 11px; }
.assistant__histoire { margin: 6px 0 0; font-size: 15px; color: var(--encre); }

@media (prefers-reduced-motion: reduce) {
  .badge__fond::after, .tampon, .boite-systeme__cadre, .assistant { animation: none; }
}
/* Le dossier d'un peuple, tel que la maquette validée le dessine : son titre de section ne crie pas. */
.assistant__scene .implantation .titre-ecran { font-size: 11px; letter-spacing: 3px; color: var(--discret); }

/* ═══ LA CONNEXION : on présente sa carte, un champ à la fois (2 octobre 2026) ════════════════════════════════════ */
.connexion__autres { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.connexion__autres .ou { margin: 0; }
.connexion__autres .tierces { flex-direction: row; }
.connexion__autres .porte-tierce { flex: 1; height: 40px; font-size: 13px; }
.connexion__annuler { align-self: center; margin-top: 4px; color: var(--efface); }
.connexion .note { margin: 0; text-align: center; }

/* ── Le bilan « depuis ta dernière lecture » (lot 5, 3 octobre 2026) — le dessin de la maquette `session-bilan.js` ───── */
.bilan__verdict { margin: 0; font-size: 15px; line-height: 1.45; color: var(--encre); font-weight: 500; }
.absence__frise { position: relative; height: 66px; margin: 4px 6px 2px; }
.absence__axe { position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: var(--structureVive); }
.absence__axe::after { content: ''; position: absolute; right: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.absence__jour { position: absolute; top: 14px; height: 32px; width: 1px; background: var(--structure); }
.absence__jour span { position: absolute; top: 34px; left: 0; transform: translateX(-50%); font-style: normal; font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--efface); }
.absence__bout { position: absolute; top: 50px; font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--discret); }
.absence__bout.gauche { left: 0; } .absence__bout.droite { right: 0; color: var(--signal); }
.absence__point { position: absolute; top: 20px; width: 3px; height: 21px; transform: translateX(-50%); background: var(--c); cursor: default; transition: opacity .15s, height .15s, top .15s; }
.absence__point.perte { width: 5px; top: 16px; height: 29px; background: var(--alerte); box-shadow: 0 0 8px var(--alerte); }
.absence__frise.filtre .absence__point { opacity: .18; }
.absence__frise.filtre .absence__point.vif { opacity: 1; top: 14px; height: 33px; }
.absence__point:hover::after {
  content: attr(data-dit); position: absolute; bottom: 30px; left: 50%; z-index: 3; transform: translateX(-50%); white-space: nowrap; padding: 5px 9px;
  background: var(--panneau); box-shadow: 0 0 0 1px var(--structureVive); font-family: var(--texte); font-size: 11.5px; color: var(--encre); pointer-events: none;
}
.absence__signataires { display: flex; flex-direction: column; }
.absence__signataire { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(0, auto); gap: 12px; align-items: center; padding: 8px 6px; border-top: 1px solid color-mix(in srgb, var(--structure) 70%, transparent); }
.absence__signataire:last-child { border-bottom: 1px solid color-mix(in srgb, var(--structure) 70%, transparent); }
.absence__signataire:hover { background: color-mix(in srgb, var(--c) 7%, transparent); }
.absence__signataire .mono {
  width: 34px; height: 34px; display: grid; place-items: center; font-family: var(--titre); font-size: 10px; letter-spacing: 1px; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, var(--panneau)); box-shadow: inset 2px 0 0 var(--c);
}
.absence__signataire .qui { min-width: 0; } .absence__signataire .qui b { display: block; font-size: 13.5px; font-weight: 600; color: var(--encre); }
.absence__signataire .qui span { font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--efface); }
.absence__signataire .quoi { min-width: 0; text-align: right; } .absence__signataire .quoi b { display: block; font-size: 12px; font-weight: 600; color: var(--c); }
.absence__signataire .quoi span { font-size: 11.5px; color: var(--discret); }

/* ═══ LA PORTE EN TUILES (27 novembre 2026, ADR-020 de l'appli ; n'existe pas dans web-v2) ═══════════════════════
   L'écran verrouillé d'un OS : la carte au centre, les comptes du poste en bas à gauche, Échap en bas à droite. Les
   liens sous la carte (`.connexion__liens`, `.connexion__annuler`) ne servent plus ici. */
.touche {
  --coupe: 5px;
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 20px; padding: 0 6px;
  clip-path: polygon(0 0, calc(100% - var(--coupe)) 0, 100% var(--coupe), 100% 100%, 0 100%);
  background: var(--creux); box-shadow: inset 0 0 0 1px var(--structureVive), inset 0 -2px 0 var(--structure);
  font-family: var(--texte); font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--encre);
}
.coin { position: absolute; bottom: 28px; display: flex; flex-direction: column; gap: 6px; }
.coin--gauche { left: 32px; }
.coin--droite { right: 32px; align-items: flex-end; }
.coin__titre { margin: 0 0 6px 3px; font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--efface); }
.geste-coin {
  display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 3px; cursor: pointer;
  font-family: var(--texte); font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--discret);
}
.geste-coin:hover, .geste-coin.choisi { color: var(--encre); }
.geste-coin:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.compte-tuile {
  --coupe: 8px;
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  clip-path: polygon(0 0, calc(100% - var(--coupe)) 0, 100% var(--coupe), 100% 100%, 0 100%);
  background: var(--creux); box-shadow: inset 0 0 0 1px var(--structure);
  font-family: var(--titre); font-size: 11px; letter-spacing: 2px; color: var(--discret);
}
.compte-tuile > span { display: contents; }
.compte-tuile svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.geste-coin:hover .compte-tuile { box-shadow: inset 0 0 0 1px var(--structureVive); color: var(--encre); }
.geste-coin.choisi .compte-tuile { box-shadow: inset 0 0 0 1px var(--encre), inset 0 2px 0 var(--accent); color: var(--encre); }
/* La création, à sa dernière étape : ce qui est fait, ce qui reste. */
.carte__pas { display: flex; gap: 14px; font-size: 9.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--efface); }
.carte__pas b { font-weight: 500; color: var(--bon); }
.carte__pas i { font-style: normal; color: var(--encre); }
.carte__demande .consent { margin: 2px 0 4px; }
/* À l'étroit, les coins quittent les bords et passent sous la carte. */
@media (max-width: 760px), (max-height: 600px) {
  .connexion .coin { position: static; margin: 0 16px 20px; }
  .connexion .coin--droite { align-items: flex-start; }
}

/* ═══ LES MONDES EN TROIS PRÉSENTATIONS (27 novembre 2026, ADR-021 de l'appli ; n'existe pas dans web-v2) ═════════
   Comme les vues d'un explorateur : des dossiers qui disent ce qu'ils contiennent, une liste détaillée, un aperçu en
   volet. La barre de présentation se pose à droite, au-dessus des groupes. */
.presentation { display: flex; justify-content: flex-end; gap: 4px; margin: -28px 0 14px; }
.presentation button {
  --coupe: 6px;
  width: 30px; height: 26px; display: grid; place-items: center; border: 0; cursor: pointer; color: var(--discret);
  background: none; box-shadow: inset 0 0 0 1px var(--structure);
  clip-path: polygon(0 0, calc(100% - var(--coupe)) 0, 100% var(--coupe), 100% 100%, 0 100%);
}
.presentation button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.presentation button:hover { color: var(--encre); box-shadow: inset 0 0 0 1px var(--structureVive); }
.presentation button.choisi { color: var(--encre); background: var(--creux); box-shadow: inset 0 0 0 1px var(--encre); }
.presentation button:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

/* Le dossier qui parle : sa pastille compte les échéances (un dixième du signal, jamais plein : rien n'est choisi). */
.pochette__cadre { position: relative; display: block; line-height: 0; }
.pochette__pastille {
  --coupe: 5px;
  position: absolute; top: 14px; right: 4px; min-width: 22px; height: 20px; padding: 0 6px; display: grid; place-items: center;
  clip-path: polygon(0 0, calc(100% - var(--coupe)) 0, 100% var(--coupe), 100% 100%, 0 100%);
  background: color-mix(in srgb, var(--signal) 16%, var(--panneau)); box-shadow: inset 0 0 0 1px var(--signal);
  font-size: 11px; line-height: 1; font-weight: 700; color: var(--signal); font-variant-numeric: tabular-nums;
}
.pochette__empire { font-size: 12px; color: var(--encre); letter-spacing: 0.3px; }
.pochette__empire small { color: var(--efface); font-size: 11px; }
.pochette__visite { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--efface); }
.vue-icones .pochette { gap: 6px; }
.vue-icones .pochette__mot { margin-bottom: 2px; }

/* La liste détaillée. */
.liste-mondes { width: 100%; border-collapse: collapse; margin-bottom: 44px; font-size: 13px; color: var(--encre); }
.liste-mondes th {
  padding: 0 12px 8px; text-align: left; font-weight: 500; font-size: 9px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--efface);
  border-bottom: 1px solid var(--structureVive);
}
.liste-mondes td { padding: 0 12px; height: 46px; border-bottom: 1px solid color-mix(in srgb, var(--structure) 70%, transparent); white-space: nowrap; }
.liste-mondes tbody tr { cursor: default; outline: none; }
.liste-mondes tbody tr:hover { background: color-mix(in srgb, var(--gris) 5%, transparent); }
.liste-mondes tbody tr.choisie { background: var(--creux); box-shadow: inset 2px 0 0 var(--encre); }
.liste-mondes tbody tr:focus-visible { box-shadow: inset 0 0 0 1px var(--accent); }
.liste-mondes tbody tr.eteinte { color: var(--efface); }
.liste-mondes .nom { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; }
.liste-mondes .nom svg { width: 34px; height: 26px; overflow: visible; }
.liste-mondes .nom svg .pochette__rang { display: none; }
.liste-mondes .discret { color: var(--discret); }
.liste-mondes .signal { color: var(--signal); font-variant-numeric: tabular-nums; }
.liste-mondes .efface { color: var(--efface); }
@media (max-width: 1100px) { .liste-mondes { display: block; overflow-x: auto; } }

/* L'aperçu : les dossiers, et le volet du monde choisi. */
.vue-apercu { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.vue-apercu .session__rangee { gap: 18px 14px; }
.apercu {
  --coupe: 18px;
  position: sticky; top: 0; display: flex; flex-direction: column; gap: 12px; padding: 0 0 16px;
  background: color-mix(in srgb, var(--panneau) 88%, transparent);
  clip-path: polygon(0 0, calc(100% - var(--coupe)) 0, 100% var(--coupe), 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px var(--structureVive), inset 0 2px 0 var(--accent);
}
.apercu > :not(.apercu__galaxie) { margin: 0 18px; }
.apercu__galaxie { display: block; width: calc(100% - 2px); height: 150px; margin: 2px 1px 0; border-bottom: 1px solid var(--structure); }
.apercu__etat { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--efface); }
.apercu__etat.signal { color: var(--signal); }
.apercu .serveur__nom { margin-top: -4px; }
.apercu__vide { padding: 40px 0; text-align: center; color: var(--efface); font-size: 12px; }
@media (max-width: 900px) {
  .vue-apercu { grid-template-columns: minmax(0, 1fr); }
  .apercu { position: static; }
}

/* ═══ LA FENÊTRE D'UN MONDE EN TABLEAU DE BORD (27 novembre 2026, ADR-022 de l'appli ; n'existe pas dans web-v2) ════
   Deux colonnes : la galaxie, l'état, le nom, les mesures et les humeurs ; puis l'empire, la frise des échéances sur
   douze heures, le bilan de lecture et le geste. Étroite, la fenêtre les empile. */
.bord { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 22px; }
.bord__gauche, .bord__droite { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bord__galaxie { display: block; width: 100%; height: 210px; box-shadow: inset 0 0 0 1px var(--structure); background: color-mix(in srgb, var(--panneau) 70%, #000); }
.bord__etat { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--efface); }
.bord__etat.signal { color: var(--signal); }
.bord .serveur__nom { margin-top: -6px; }
.bord .serveur__verbe { margin-top: auto; padding-top: 6px; }
.bord .note { margin: 0; }
.frise { display: flex; flex-direction: column; gap: 9px; }
.frise__ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 12.5px; color: var(--encre); }
.frise__ligne b { text-align: right; font-weight: 600; color: var(--signal); font-variant-numeric: tabular-nums; }
.frise__rail { grid-column: 1 / -1; height: 4px; background: color-mix(in srgb, var(--structure) 70%, transparent); }
.frise__rail i { display: block; height: 100%; background: color-mix(in srgb, var(--signal) 60%, transparent); }
.frise__echelle { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: 1.2px; color: var(--efface); }
.bord__lisez { margin: 0; font-size: 13px; line-height: 1.6; color: var(--encre); }
.bord__compte { font-family: var(--titre); font-size: 30px; letter-spacing: 3px; color: var(--encre); }
@container (max-width: 680px) {
  .bord { grid-template-columns: minmax(0, 1fr); }
}

/* ═══ LA FONDATION EN UNE PAGE (27 novembre 2026, ADR-023 de l'appli ; n'existe pas dans web-v2) ══════════════════
   Comme une création de personnage : les peuples en vignettes, le peuple choisi au centre (sa planche reste la seule
   grande image du parcours), l'empire à droite. Plus d'étapes : le rail garde le monde et « Annuler ». */
.assistant__scene > .createur { flex: 1; min-height: 0; }
.createur { display: grid; grid-template-columns: 150px minmax(0, 1fr) 340px; gap: 22px; min-height: 0; }
.vignettes { display: flex; flex-direction: column; gap: 10px; }
.vignette {
  --coupe: 10px;
  position: relative; flex: none; height: 128px; border: 0; padding: 0; cursor: pointer; background-color: var(--creux);
  background-size: cover; background-position: center 15%;
  clip-path: polygon(0 0, calc(100% - var(--coupe)) 0, 100% var(--coupe), 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px var(--structure); filter: grayscale(0.7) brightness(0.7); transition: filter 0.15s;
}
.vignette:hover:not(:disabled), .vignette.choisie { filter: none; }
.vignette.choisie { box-shadow: inset 0 0 0 2px var(--encre), inset 0 3px 0 var(--signal); }
.vignette:disabled { cursor: default; }
.vignette:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.vignette span {
  position: absolute; inset: auto 0 0 0; padding: 5px 8px; text-align: left; font-family: var(--titre); font-size: 10px;
  letter-spacing: 2.5px; color: var(--encre); background: color-mix(in srgb, var(--fond) 78%, transparent);
}
.createur__centre { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; min-height: 0; }
.createur__centre .planche { min-height: 0; height: 100%; }
.createur__texte { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: auto; padding-right: 4px; }
.createur__texte h2 { margin: 0; font-family: var(--titre); font-size: 22px; font-weight: 400; letter-spacing: 6px; text-transform: uppercase; color: var(--encre); }
.createur__texte p { margin: 0; }
.createur__histoire { white-space: pre-line; line-height: 1.6; }
.createur__droite { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow: auto; padding-left: 22px; border-left: 1px solid var(--structure); }
.createur__droite .assistant__titre { margin-bottom: 0; }
.createur__droite .registre__ligne { grid-template-columns: 84px minmax(0, 1fr); }
.nom-tire { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.nom-tire .champ { flex: 1; min-width: 0; }
.de {
  --coupe: 6px;
  flex: none; width: 38px; height: 38px; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--discret);
  background: var(--creux); box-shadow: inset 0 0 0 1px var(--structureVive);
  clip-path: polygon(0 0, calc(100% - var(--coupe)) 0, 100% var(--coupe), 100% 100%, 0 100%);
}
.de svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.de svg circle { fill: currentColor; stroke: none; }
.de:hover:not(:disabled) { color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); }
.de:disabled { opacity: 0.4; cursor: default; }
/* À l'étroit : la planche passe au-dessus du texte, puis les vignettes se rangent en ligne. */
@media (max-width: 1440px) {
  .createur__centre { grid-template-columns: minmax(0, 1fr); grid-template-rows: 280px auto; }
}
@media (max-width: 1100px) {
  .createur { grid-template-columns: minmax(0, 1fr); }
  .vignettes { flex-direction: row; }
  .vignette { flex: 1; height: 96px; }
  .createur__droite { padding-left: 0; border-left: 0; }
}
