/* ═══════════════════════════════════════════════════════════════════════════
   tableau.css — DASHBOARD.  Le poste de pilotage de Centurion.

   ── L'IDENTITÉ : LA CARTE NOIRE ───────────────────────────────────────────
   Centurion, c'est le nom de la carte American Express noire. Le projet porte
   déjà ce nom, et `hub.css` avait déjà écrit la bonne phrase — « de l'ARGENT
   GRAVÉ SUR NOIR ». Le premier jet avait plaqué par-dessus le verre dépoli et
   le rose holographique de kissbot.app : c'est l'univers d'un produit grand
   public, pas celui d'une carte en titane anodisé. D'où cette refonte.

   ── LE MÉTAL EST MESURÉ, PAS CHOISI ───────────────────────────────────────
   Toutes les teintes de métal ci-dessous sont extraites du médaillon
   (`centurion.png`), pixel par pixel. Le relevé a tranché le détail qui faisait
   tout : ce métal est CHAUD (#8c8982, #bbb2aa, #e0dbd5 — R ≥ G ≥ B), alors que
   l'argent de la barre latérale était bleuté (#d6dae0). Deux gris de
   température opposée côte à côte : c'est exactement ce qui « ne matchait pas ».

   ── LES QUATRE MATIÈRES, ET RIEN D'AUTRE ──────────────────────────────────
   1. LE NOIR MAT   le fond. Pas de flou, pas de transparence : de l'anodisé.
   2. LE MÉTAL      les chiffres et les arêtes. Il remplace la couleur d'accent :
                    sur cette carte, L'ACCENT EST LE MÉTAL.
   3. LES LAMPES    jade / laiton / rouge. Réservées au statut, jamais
                    décoratives — trois voyants sur un tableau de bord.
   4. LA TRAME      ce qu'on ne sait pas. Des hachures, partout, à l'identique.

   ── LES COULEURS DE DONNÉES SONT VALIDÉES ─────────────────────────────────
   Courbes or #bd8a47 × acier #3981b3 : bande de clarté, plancher de chroma,
   daltonisme (ΔE 18,4 protan), vision normale (22,8), contraste — TOUS passent.
   Lampes jade/laiton/rouge : vision normale ΔE 19,2 ; daltonisme 7,3, donc dans
   la bande 6-8 — légal UNIQUEMENT avec un second encodage. C'est pour ÇA que
   chaque bande de la jauge porte son libellé, que 2 px de fond la sépare de sa
   voisine, et que l'inconnu porte la trame. La couleur ne fait que confirmer.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ⚙️ CETTE FEUILLE HABILLE LES ÉCRANS DE LECTURE : le Dashboard et la Flotte.
   Ce sont les mêmes briques (héros, signaux, plaques, rangées, tuiles) — les
   lister ici plutôt que de recopier `.tb-*` dans une feuille par écran, c'est
   la même règle que pour la matière : une définition, plusieurs écrans. */
/* Les conteneurs d'écran. ⚠️ `#mod-adspower`, `#mod-berger`, `#mod-revenu` et
   `#mod-incidents` restent listés à dessein : leurs ÉCRANS ont été absorbés
   (parc, dashboard, journal) mais retirer leur nom ici n'apporte rien et le
   remettre coûterait une enquête si l'un d'eux revenait. */
#mod-tableau, #mod-flotte, #mod-lignes, #mod-adspower, #mod-archives, #mod-va, #mod-memoire, #mod-market, #mod-revenu, #mod-berger, #mod-incidents, #mod-machines, #mod-phonefarm, #mod-radar, #mod-registre, #mod-compta, #mod-vitrine {
  /* ⛔ LA MATIÈRE N'EST PLUS DÉFINIE ICI. Elle vit dans `:root` (hub.css) et
     sert les trois écrans : dashboard, registre, compta. C'est le même objet —
     trois copies du même métal, c'était trois métaux qui divergent au premier
     réglage. Ne restent ci-dessous que les jetons PROPRES à cet écran. */

  /* ===== LE NOIR DE LA CARTE ===== */
  --n-0: #000;
  --n-1: #0a0a0b;
  --n-2: #0f0f10;

  /* L'encre EST du métal : il n'y a pas de blanc sur cette carte. */
  --encre: var(--m-arete);
  --encre-2: #9d9992;
  --encre-3: #6d6a65;
  --encre-4: #4a4744;

  /* Les filets de CET écran sont des alphas, pas les gris pleins du rail. */
  --filet: rgba(224, 219, 213, .075);
  --filet-fort: rgba(224, 219, 213, .14);
  --filet-tenu: rgba(224, 219, 213, .045);

  /* ===== LES DONNÉES — paire validée (voir l'en-tête) ===== */
  --serie-1: #bd8a47;   /* les demandes — or    */
  --serie-2: #3981b3;   /* les accepts  — acier */

  --ombre-carte: inset 0 1px 0 rgba(224, 219, 213, .06), 0 24px 60px -22px rgba(0, 0, 0, .95);
  --r-sm: 5px; --r-md: 8px; --r-lg: 11px; --r-xl: 14px; --r-pill: 999px;
  --dt: cubic-bezier(.16, 1, .3, 1);

  display: block; overflow-y: auto; overflow-x: hidden;
  font-family: var(--f-txt); color: var(--encre-2);
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  /* Le fond : du noir, et UNE lumière rasante froide en haut à gauche — celle
     qui court sur une carte qu'on incline. Aucune couleur. */
  background:
    radial-gradient(120% 68% at 12% -14%, rgba(224, 219, 213, .05), transparent 58%),
    radial-gradient(90% 55% at 104% 106%, rgba(224, 219, 213, .028), transparent 62%),
    var(--brosse), var(--n-0);
  background-attachment: fixed;
}
#mod-tableau::-webkit-scrollbar { width: 11px }
#mod-tableau::-webkit-scrollbar-thumb { background: #24221f; border-radius: 6px }
#mod-tableau::-webkit-scrollbar-thumb:hover { background: #35322e }

.tb { max-width: 1180px; margin: 0 auto; padding: 34px 40px 90px }
@media (max-width: 860px) { .tb { padding: 24px 18px 70px } }

/* ── L'EN-TÊTE ──────────────────────────────────────────────────────────── */
.tb-tete { display: flex; align-items: center; gap: 15px; margin-bottom: 24px }
/* ⛔ Pas de médaillon dans cet en-tête : il est déjà en haut de la barre
   latérale, à 200 px à gauche. Deux fois la même pièce sur un écran, ce n'est
   pas une signature, c'est un doublon. Le filigrane du héros suffit. */
.tb-tete h1 {
  font: 600 25px/1.05 var(--f-aff); letter-spacing: .012em; color: var(--m-arete);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .9);
}
.tb-tete p { margin-top: 4px; font-size: 13px; color: var(--encre-3) }
.tb-tete .tb-droite { margin-left: auto; display: flex; align-items: center; gap: 12px }
.tb-lu { font: 400 10.5px var(--f-num); color: var(--encre-4); white-space: nowrap }
.tb-recharger {
  border: 1px solid var(--filet-fort); background: linear-gradient(180deg, #1a1918, #101010);
  color: var(--encre-2); border-radius: var(--r-sm); padding: 7px 14px;
  font: 500 10px var(--f-txt); letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; box-shadow: var(--grave); transition: all .2s var(--dt);
}
.tb-recharger:hover { border-color: rgba(224, 219, 213, .26); color: var(--m-arete) }
.tb-recharger:disabled { opacity: .45; cursor: progress }

/* ── LE VERDICT — la carte, frappée ─────────────────────────────────────── */
.tb-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 34px; padding: 38px 40px 34px; margin-bottom: 28px;
  border-radius: var(--r-xl);
  background: var(--brosse), linear-gradient(168deg, #151413 0%, #0c0c0c 48%, #080808 100%);
  border: 1px solid var(--filet); box-shadow: var(--ombre-carte);
  animation: tbEntre .55s var(--dt) both;
}
@keyframes tbEntre { from { opacity: 0; transform: translateY(9px) } to { opacity: 1; transform: none } }
/* L'arête supérieure : la tranche fraisée de la carte. */
.tb-hero::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--arete-h);
}
/* Le médaillon en filigrane. Il ne se lit pas, il se devine — comme un
   hologramme de sécurité qu'on ne voit que si la lumière tombe bien. */
.tb-hero-amb {
  position: absolute; right: -48px; top: 50%; transform: translateY(-50%);
  width: 330px; height: 330px; pointer-events: none;
  background: url(centurion.png) center/contain no-repeat;
  opacity: .04; filter: grayscale(1) contrast(1.35);
}
.tb-hero > *:not(.tb-hero-amb) { position: relative; z-index: 1 }
.tb-hero-g { flex: 1 1 400px; min-width: 0 }

/* L'exergue : capitales très espacées, comme frappées dans le métal. */
.tb-sur {
  font: 500 9.5px var(--f-txt); text-transform: uppercase; letter-spacing: .28em;
  color: var(--encre-4); display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.tb-sur .pastille { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; background: var(--l-inconnu) }
.tb-hero[data-gravite="3"] .tb-sur .pastille { background: var(--l-mal); box-shadow: 0 0 9px rgba(208, 80, 79, .8) }
.tb-hero[data-gravite="2"] .tb-sur .pastille { background: var(--l-attente); box-shadow: 0 0 9px rgba(224, 176, 99, .6) }
.tb-hero[data-gravite="1"] .tb-sur .pastille { background: var(--m) }
.tb-hero[data-gravite="0"] .tb-sur .pastille { background: var(--l-bon); box-shadow: 0 0 9px rgba(74, 169, 105, .6) }

/* ★ LE TITRE EN MÉTAL POLI. Un dégradé vertical clippé sur le texte : arête
   claire en haut, creux à la taille, rebond de lumière en bas. C'est la seule
   façon d'avoir des lettres qui ont l'air FRAPPÉES plutôt qu'écrites. */
.tb-hero h2 {
  font: 600 clamp(29px, 4.2vw, 43px)/1.05 var(--f-aff);
  letter-spacing: -.021em; max-width: 19ch;
  background: var(--poli); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .95));
}
.tb-hero-phrase { margin-top: 17px; font-size: 14.5px; line-height: 1.62; color: var(--encre-2); max-width: 54ch }
.tb-hero-geste {
  margin-top: 19px; display: block; font-size: 13px; line-height: 1.55;
  color: var(--m-clair); border-left: 1px solid var(--filet-fort);
  padding-left: 14px; max-width: 52ch;
}

/* les chiffres — chacun PORTE SA DATE, c'est non négociable */
.tb-hero-d { display: flex; gap: 11px; flex-wrap: wrap }
.tb-kpi {
  min-width: 134px; padding: 15px 18px 14px; border-radius: var(--r-md);
  background: linear-gradient(180deg, #131312, #0b0b0b);
  border: 1px solid var(--filet); box-shadow: var(--grave);
}
.tb-kpi .n {
  font: 600 26px/1 var(--f-aff); letter-spacing: -.018em; font-variant-numeric: tabular-nums;
  background: var(--poli); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.tb-kpi .n .u { font-size: 13px; margin-left: 3px; font-weight: 500;
  -webkit-text-fill-color: var(--encre-4); color: var(--encre-4) }
.tb-kpi .l { margin-top: 7px; font-size: 11.5px; color: var(--encre-3); max-width: 19ch; line-height: 1.35 }
/* Le seul chiffre qui a le droit d'être rouge : celui qui saigne. Une classe,
   pas un style en ligne — `-webkit-text-fill-color` mangerait un `color`. */
.tb-kpi .n.alarme {
  background-image: none; color: var(--l-mal); -webkit-text-fill-color: var(--l-mal);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .9);
}
.tb-horo {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 8px;
  font: 400 10px var(--f-num); color: var(--encre-4);
}
.tb-horo::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--l-bon);
  flex: 0 0 5px; opacity: .85;
}
.tb-horo[data-etat="perime"] { color: var(--l-attente) }
.tb-horo[data-etat="perime"]::before { background: var(--l-attente) }
.tb-horo[data-etat="jamais"] { color: var(--l-mal) }
.tb-horo[data-etat="jamais"]::before { background: var(--l-mal) }
/* ★ un chiffre périmé PERD SON POLI : il devient mat, comme un métal terni.
   On voit qu'il est vieux avant même d'avoir lu sa date.
   ⚠️ `background:` est un RACCOURCI — il remet `background-clip` à `border-box`
   et le dégradé se peint alors SUR le texte : trois pavés gris à la place des
   chiffres. Il faut viser `background-image`, la seule sous-propriété concernée. */
.tb-kpi[data-etat="perime"] .n { background-image: var(--poli-mat); opacity: .6 }

/* ── LES TITRES DE SECTION ──────────────────────────────────────────────── */
.tb-titre {
  display: flex; align-items: baseline; gap: 12px; margin: 0 2px 15px;
  font: 500 9.5px var(--f-txt); text-transform: uppercase; letter-spacing: .26em;
  color: var(--encre-4);
}
.tb-titre .q { text-transform: none; letter-spacing: .01em; font-size: 11.5px;
  font-family: var(--f-num); color: var(--encre-4); opacity: .8 }
.tb-bloc { margin-bottom: 34px }

/* ── CE QUI SAUTE AUX YEUX ──────────────────────────────────────────────── */
.tb-sigs { display: flex; flex-direction: column }
.tb-sig {
  display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: start;
  gap: 17px; padding: 15px 9px; border-top: 1px solid var(--filet-tenu);
  text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0;
  width: 100%; font: inherit; color: inherit; transition: background .16s var(--dt);
}
.tb-sig:first-child { border-top: 0 }
button.tb-sig { cursor: pointer }
button.tb-sig:hover { background: rgba(224, 219, 213, .022) }
.tb-sig .pt { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--l-inconnu) }
.tb-sig[data-g="3"] .pt { background: var(--l-mal); box-shadow: 0 0 8px rgba(208, 80, 79, .7) }
.tb-sig[data-g="2"] .pt { background: var(--l-attente) }
.tb-sig[data-g="1"] .pt { background: var(--m) }
.tb-sig .tt { font-size: 14px; font-weight: 500; color: var(--m-arete) }
.tb-sig .ph { margin-top: 4px; font-size: 12.8px; line-height: 1.55; color: var(--encre-3) }
.tb-sig .ge { margin-top: 5px; font-size: 12.3px; color: var(--encre-4); font-style: italic }
.tb-sig .fl { color: var(--encre-4); font-size: 15px; align-self: center; transition: transform .2s var(--dt) }
button.tb-sig:hover .fl { color: var(--m-clair); transform: translateX(3px) }

/* ── LES PLAQUES ────────────────────────────────────────────────────────── */
.tb-duo { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; margin-bottom: 34px }
.tb-duo.egal { grid-template-columns: 1fr 1fr }
@media (max-width: 940px) { .tb-duo, .tb-duo.egal { grid-template-columns: 1fr } }

/* Une plaque anodisée posée sur la carte : mate, jamais translucide. */
.tb-carte {
  position: relative; background: linear-gradient(180deg, #111110, #0a0a0a);
  border: 1px solid var(--filet); border-radius: var(--r-lg);
  padding: 21px 23px 23px; box-shadow: var(--ombre-plaque); min-width: 0;
}
.tb-carte::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--arete-h); opacity: .6;
}
.tb-carte > h3 {
  font: 500 12.5px var(--f-txt); color: var(--m-arete); display: flex;
  align-items: baseline; gap: 10px; margin-bottom: 4px;
}
.tb-carte > h3 .n { margin-left: auto; font: 400 11px var(--f-num); color: var(--encre-4) }
.tb-carte > .sous { font-size: 12.2px; color: var(--encre-3); margin-bottom: 17px; line-height: 1.5 }

/* ── LA CHAÎNE ──────────────────────────────────────────────────────────── */
.tb-etage { padding: 11px 0; border-top: 1px solid var(--filet-tenu) }
.tb-etage:first-of-type { border-top: 0 }
.tb-etage-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px }
.tb-etage-n {
  font: 400 9.5px var(--f-num); color: var(--encre-4); flex: 0 0 auto;
  border: 1px solid var(--filet); border-radius: 3px; padding: 1px 5px;
}
.tb-etage-nom { font-size: 13.2px; color: var(--encre-2); font-weight: 500 }
.tb-etage-v {
  margin-left: auto; font: 600 17px var(--f-aff); font-variant-numeric: tabular-nums;
  letter-spacing: -.018em; white-space: nowrap;
  background: var(--poli); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.tb-etage-v .u { font-size: 11px; margin-left: 3px; font-weight: 500;
  -webkit-text-fill-color: var(--encre-4); color: var(--encre-4) }
.tb-etage-q { font-size: 11.8px; color: var(--encre-4); line-height: 1.45; margin-bottom: 9px }

/* La barre : une seule échelle. L'accent est du MÉTAL, pas une couleur. */
.tb-barre {
  height: 7px; border-radius: var(--r-pill); background: rgba(224, 219, 213, .045);
  overflow: hidden; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .7);
}
.tb-barre > i {
  display: block; height: 100%; border-radius: var(--r-pill);
  background: linear-gradient(90deg, #6d6a65, #bbb2aa 62%, #e8e3dd);
  transition: width .75s var(--dt);
}
/* ★ L'ÉTAGE DANS LE NOIR : ni barre ni zéro — une trame et une adresse. */
.tb-etage.noir .tb-etage-nom { color: var(--encre-3) }
.tb-etage.noir .tb-barre { background: var(--hachure), rgba(224, 219, 213, .018) }
.tb-etage-ou {
  display: flex; align-items: flex-start; gap: 7px; margin-top: 9px;
  font: 400 11px var(--f-num); color: var(--encre-4); line-height: 1.5;
}
.tb-etage-ou::before { content: '↳'; color: var(--encre-4); font-family: var(--f-txt); opacity: .55 }
.tb-etage.phare .tb-etage-nom { color: var(--m-clair) }
.tb-noir-etiq {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font: 500 8.5px var(--f-txt); text-transform: uppercase; letter-spacing: .2em;
  color: var(--encre-4); border: 1px solid var(--filet); border-radius: 3px;
  padding: 2px 7px; white-space: nowrap;
}
.tb-noir-etiq::before {
  content: ''; width: 8px; height: 8px; border-radius: 2px; flex: 0 0 8px;
  background: var(--hachure), rgba(224, 219, 213, .05);
}

.tb-six { display: flex; gap: 12px; margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--filet-tenu) }
.tb-six > div { flex: 1; min-width: 0 }
.tb-six .n {
  font: 600 19px var(--f-aff); letter-spacing: -.018em;
  background: var(--poli-mat); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.tb-six .l { font-size: 11.2px; color: var(--encre-4); margin-top: 4px }

/* ── LE PARC ────────────────────────────────────────────────────────────── */
/* 2 px de fond entre les segments : c'est LE second encodage qui rend légal le
   ΔE daltonien de 7,3 entre le laiton et le jade. Ce n'est pas du style. */
.tb-jauge {
  display: flex; height: 32px; border-radius: var(--r-sm); overflow: hidden; gap: 2px;
  margin-bottom: 18px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .8);
}
.tb-jauge > span { display: block; min-width: 3px; transition: flex-grow .75s var(--dt) }
.tb-jauge .b-bon { background: linear-gradient(180deg, #58bb79, #3f9159) }
.tb-jauge .b-attente { background: linear-gradient(180deg, #ecbd72, #c9974f) }
.tb-jauge .b-mal { background: linear-gradient(180deg, #dd6160, #b84241) }
.tb-jauge .b-inconnu { background: var(--hachure), rgba(224, 219, 213, .05) }

.tb-leg { display: flex; flex-direction: column; gap: 1px }
.tb-leg-l { display: flex; align-items: center; gap: 11px; padding: 7px 2px; font-size: 12.8px }
.tb-leg-l .c { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 9px }
.tb-leg-l .c.b-bon { background: var(--l-bon) }
.tb-leg-l .c.b-attente { background: var(--l-attente) }
.tb-leg-l .c.b-mal { background: var(--l-mal) }
.tb-leg-l .c.b-inconnu { background: var(--hachure), rgba(224, 219, 213, .09) }
.tb-leg-l .nm { flex: 1; color: var(--encre-2); min-width: 0 }
.tb-leg-l .nm small { display: block; color: var(--encre-4); font-size: 11.2px; margin-top: 1px }
.tb-leg-l .v {
  font: 600 14px var(--f-aff); font-variant-numeric: tabular-nums;
  background: var(--poli-mat); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.tb-leg-l .p { font: 400 11px var(--f-num); color: var(--encre-4); min-width: 42px; text-align: right }

/* ── LES ROBINETS ───────────────────────────────────────────────────────── */
.tb-pouls { display: grid; grid-template-columns: repeat(auto-fit, minmax(166px, 1fr)); gap: 9px }
.tb-pouls-c {
  background: linear-gradient(180deg, #100f0f, #0a0a0a);
  border: 1px solid var(--filet-tenu); border-radius: var(--r-md);
  padding: 12px 14px; box-shadow: var(--grave);
}
.tb-pouls-c[data-etat="perime"] { border-color: rgba(224, 176, 99, .26) }
.tb-pouls-c[data-etat="jamais"] { border-color: rgba(208, 80, 79, .28) }
.tb-pouls-c .h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
.tb-pouls-c .led { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; background: var(--l-bon) }
.tb-pouls-c[data-etat="frais"] .led { box-shadow: 0 0 7px rgba(74, 169, 105, .6) }
.tb-pouls-c[data-etat="perime"] .led { background: var(--l-attente); box-shadow: 0 0 7px rgba(224, 176, 99, .55) }
.tb-pouls-c[data-etat="jamais"] .led { background: var(--l-mal); box-shadow: 0 0 7px rgba(208, 80, 79, .6) }
.tb-pouls-c .nm { font-size: 12.5px; font-weight: 500; color: var(--encre-2); flex: 1 1 auto; min-width: 0 }
.tb-pouls-c .ag { margin-left: auto; font: 400 10.5px var(--f-num); color: var(--encre-4);
  white-space: nowrap; padding-left: 16px }
.tb-pouls-c[data-etat="perime"] .ag { color: var(--l-attente) }
.tb-pouls-c[data-etat="jamais"] .ag { color: var(--l-mal) }
.tb-pouls-c .qq { margin-top: 6px; font-size: 11px; color: var(--encre-4); line-height: 1.45 }

/* ── LES FILES — des piles cliquables ───────────────────────────────────── */
.tb-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(166px, 1fr)); gap: 10px }
.tb-file {
  position: relative; overflow: hidden; text-align: left; cursor: pointer; font: inherit;
  background: linear-gradient(180deg, #121211, #0a0a0a);
  border: 1px solid var(--filet); border-radius: var(--r-md); padding: 15px 16px 14px;
  color: inherit; box-shadow: var(--grave); transition: all .2s var(--dt);
}
.tb-file:hover { border-color: var(--filet-fort); transform: translateY(-1px) }
.tb-file::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--t, var(--l-inconnu)); opacity: .7;
}
.tb-file[data-ton="gain"] { --t: var(--m-clair) }
.tb-file[data-ton="attente"] { --t: var(--l-attente) }
.tb-file[data-ton="risque"] { --t: var(--l-mal) }
.tb-file[data-ton="bon"] { --t: var(--l-bon) }
.tb-file .n {
  font: 600 25px/1 var(--f-aff); letter-spacing: -.024em; font-variant-numeric: tabular-nums;
  background: var(--poli); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.tb-file .nm { margin-top: 9px; font-size: 12.8px; font-weight: 500; color: var(--encre-2) }
.tb-file .qq { margin-top: 4px; font-size: 11.2px; color: var(--encre-4); line-height: 1.45 }
.tb-file .vo {
  margin-top: 10px; font: 500 9px var(--f-txt); text-transform: uppercase;
  letter-spacing: .18em; color: var(--encre-4); display: flex; align-items: center; gap: 5px;
}
.tb-file:hover .vo { color: var(--m-clair) }

/* ── LES GRAPHIQUES ─────────────────────────────────────────────────────── */
.tb-graf { position: relative }
.tb-graf svg { display: block; width: 100%; height: auto; overflow: visible }
.tb-grille { stroke: rgba(224, 219, 213, .055); stroke-width: 1 }
.tb-axe { fill: var(--encre-4); font: 400 9.5px var(--f-num) }
/* `preserveAspectRatio:none` étire le dessin : sans ça, un trait de 2 px n'en
   fait plus 2. Le vecteur garde son épaisseur quelle que soit l'échelle. */
.tb-ligne { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke }
.tb-aire { stroke: none; opacity: .14 }
.tb-pt { stroke: #0a0a0a; stroke-width: 2; vector-effect: non-scaling-stroke }
.tb-viseur { stroke: rgba(224, 219, 213, .24); stroke-width: 1 }

.tb-legende { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px }
.tb-legende span { display: inline-flex; align-items: center; gap: 7px; font-size: 11.8px; color: var(--encre-2) }
.tb-legende i { width: 14px; height: 3px; border-radius: 2px; flex: 0 0 14px }

.tb-bulle {
  position: absolute; pointer-events: none; z-index: 5; opacity: 0;
  transform: translate(-50%, -112%); transition: opacity .12s;
  background: #0d0d0c; border: 1px solid var(--filet-fort);
  border-radius: var(--r-sm); padding: 9px 11px; box-shadow: 0 8px 26px rgba(0, 0, 0, .9);
  font-size: 11.8px; white-space: nowrap;
}
.tb-bulle.on { opacity: 1 }
.tb-bulle b { display: block; font: 400 10.5px var(--f-num); color: var(--encre-4); margin-bottom: 5px }
.tb-bulle div { display: flex; align-items: center; gap: 7px; color: var(--encre-2); line-height: 1.7 }
.tb-bulle i { width: 9px; height: 3px; border-radius: 2px; flex: 0 0 9px }
.tb-bulle .vv { margin-left: auto; font-family: var(--f-num); color: var(--m-arete); padding-left: 14px }

/* ── MACHINES & LIGNES ──────────────────────────────────────────────────── */
.tb-rang { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--filet-tenu) }
.tb-rang:first-of-type { border-top: 0 }
.tb-rang .nm { font-size: 12.8px; color: var(--encre-2); min-width: 92px; flex: 0 0 auto;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.tb-rang .nm.mono { font: 400 11px var(--f-num); color: var(--encre-3) }
.tb-rang .bar {
  flex: 1; height: 6px; background: rgba(224, 219, 213, .045); border-radius: var(--r-pill);
  overflow: hidden; min-width: 40px; display: flex; gap: 2px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .7);
}
.tb-rang .bar i { display: block; height: 100%; background: rgba(224, 219, 213, .16) }
.tb-rang .bar i.ouv { background: var(--l-bon) }
.tb-rang .v {
  font: 600 13px var(--f-aff); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right;
  background: var(--poli-mat); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.tb-rang .sec { font: 400 10.5px var(--f-num); color: var(--encre-4); min-width: 62px; text-align: right }

/* ── LA NOTE DE PIED ────────────────────────────────────────────────────── */
.tb-note {
  margin-top: 30px; padding: 16px 19px; border-radius: var(--r-md);
  border: 1px solid var(--filet-tenu); background: rgba(224, 219, 213, .012);
  font-size: 12.2px; line-height: 1.68; color: var(--encre-3); max-width: 74ch;
}
.tb-note b { color: var(--encre-2); font-weight: 500 }
.tb-note code { font: 400 11px var(--f-num); color: var(--m-clair) }

/* ── ÉTATS ──────────────────────────────────────────────────────────────── */
.tb-attente { display: grid; place-items: center; min-height: 260px; color: var(--encre-4);
  font: 500 10px var(--f-txt); text-transform: uppercase; letter-spacing: .26em }
.tb-erreur {
  margin: 20px 0; padding: 18px 20px; border-radius: var(--r-md);
  border: 1px solid rgba(208, 80, 79, .32); background: rgba(208, 80, 79, .06);
  color: #e4a09d; font-size: 13.2px; line-height: 1.6;
}
.tb-erreur b { display: block; color: var(--m-arete); margin-bottom: 5px; font-weight: 500 }

@media (prefers-reduced-motion: reduce) {
  #mod-tableau *, #mod-tableau *::before, #mod-tableau *::after {
    animation: none !important; transition: none !important;
  }
}

/* ═══ LE CADRE SUIT L'ÉCRAN ══════════════════════════════════════════════
   Le dashboard est TOUJOURS noir, même quand le hub est en clair (le registre
   l'est par défaut : c'est l'apparence d'Airtable, et c'est ce qui rend ses
   jetons lisibles). Sans cette règle, le thème clair posait un bandeau BLANC
   au-dessus d'une carte noire. */
body:has(#mod-tableau:not([hidden])) .entete {
  background: #070707; border-bottom-color: rgba(224, 219, 213, .07);
}
body:has(#mod-tableau:not([hidden])) .fil { color: #57544f }
body:has(#mod-tableau:not([hidden])) .fil .ici { color: #bbb2aa }

/* Une ligne « creux » dit ce qui MANQUE sous un chiffre : elle porte la trame
   de l'inconnu, comme tout le reste de ce qu'on ne sait pas. */
#mod-tableau .tb-creux { color: var(--l-attente); opacity: .92 }
#mod-tableau .tb-creux::before { content: '⌀'; opacity: .7 }

/* ═══ FLEET MANAGEMENT ════════════════════════════════════════════════════
   La page « Tracker » du hub node1, reprise dans sa structure : tuiles,
   répartition, météo, todos, vues, légende, tableau. Seule la MATIÈRE change —
   elle est celle de Centurion, comme partout ailleurs. */
.fl h1 { display: flex; align-items: baseline; gap: 9px }
.fl-sous {
  font: 500 14px var(--f-txt); letter-spacing: .18em; text-transform: uppercase;
  color: var(--encre-4); -webkit-text-fill-color: var(--encre-4);
}
.fl-section {
  margin: 30px 2px 12px; font: 500 9.5px var(--f-txt); letter-spacing: .26em;
  text-transform: uppercase; color: var(--encre-4);
}

/* ── les quatre tuiles ─────────────────────────────────────────────────── */
.fl-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 11px }
.fl-tuile {
  position: relative; overflow: hidden; padding: 16px 18px 15px; border-radius: var(--r-md);
  background: var(--plaque); border: 1px solid var(--filet); box-shadow: var(--grave);
}
.fl-tuile::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--arete-h); opacity: .6;
}
.fl-tuile::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--t, var(--m-sombre)); opacity: .7;
}
.fl-tuile[data-ton="bon"] { --t: var(--l-bon) }
.fl-tuile[data-ton="mal"] { --t: var(--l-mal) }
.fl-tuile[data-ton="attente"] { --t: var(--l-attente) }
.fl-tuile .l {
  font: 500 9.5px var(--f-txt); letter-spacing: .2em; text-transform: uppercase; color: var(--encre-4);
}
.fl-tuile .v {
  margin-top: 9px; font: 600 28px/1 var(--f-aff); letter-spacing: -.024em;
  font-variant-numeric: tabular-nums;
  background: var(--poli); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.fl-tuile .d { margin-top: 7px; font-size: 11.5px; color: var(--encre-3) }

/* ── la répartition des états ──────────────────────────────────────────── */
/* 2 px de fond entre les segments : le même second encodage que partout. */
.fl-bar {
  display: flex; height: 26px; gap: 2px; border-radius: var(--r-sm); overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .8);
}
.fl-bar > span { display: block; min-width: 3px }
.fl-leg { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 12px }
.fl-leg span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--encre-3) }
.fl-leg i { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 9px }
.fl-leg b {
  font: 600 12.5px var(--f-aff); color: var(--m-clair); font-variant-numeric: tabular-nums;
}
.fl-leg-ton { margin: 10px 2px 0 }

/* ── la météo ──────────────────────────────────────────────────────────── */
.fl-meteo { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 11px }
.fl-meteo .mt {
  position: relative; overflow: hidden; padding: 15px 17px; border-radius: var(--r-md);
  background: var(--plaque); border: 1px solid var(--filet-tenu);
}
.fl-meteo .mv {
  font: 600 26px/1 var(--f-aff); letter-spacing: -.024em; font-variant-numeric: tabular-nums;
  background: var(--poli-mat); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.fl-meteo .ml { margin-top: 7px; font-size: 11.5px; color: var(--encre-3); line-height: 1.4 }

/* ── les todos : chaque ligne ouvre sa vue ─────────────────────────────── */
.fl-todos { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 16px }
.fl-todos button {
  text-align: left; cursor: pointer; font: inherit; color: inherit; padding: 13px 15px;
  background: var(--plaque); border: 1px solid var(--filet); border-radius: var(--r-md);
  box-shadow: var(--grave); transition: border-color .2s var(--dt), transform .2s var(--dt);
}
.fl-todos button:hover { border-color: var(--filet-fort); transform: translateY(-1px) }
.fl-todos b {
  display: block; font: 600 22px/1 var(--f-aff); letter-spacing: -.024em;
  font-variant-numeric: tabular-nums;
  background: var(--poli); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.fl-todos .nm { display: block; margin-top: 8px; font-size: 12.8px; color: var(--encre-2); font-weight: 500 }
.fl-todos .qq { display: block; margin-top: 3px; font-size: 11.2px; color: var(--encre-4) }

/* ── les sept vues ─────────────────────────────────────────────────────── */
.fl-vues { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 30px }
.fl-vbtn {
  display: inline-flex; align-items: baseline; gap: 8px; cursor: pointer; font: inherit;
  padding: 8px 14px; border-radius: var(--r-pill); font-size: 12.8px; color: var(--encre-3);
  background: var(--plaque); border: 1px solid var(--filet); transition: all .18s var(--dt);
}
.fl-vbtn:hover { border-color: var(--filet-fort); color: var(--m-arete) }
.fl-vbtn .vn { font: 500 11px var(--f-num); color: var(--encre-4); font-variant-numeric: tabular-nums }
/* L'onglet actif : du métal poli, comme le reste de la carte. */
.fl-vbtn.on {
  background: linear-gradient(180deg, #e8e3dd, #b4aca3); border-color: #8c8982;
  color: #0c0c0b; font-weight: 600; text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.fl-vbtn.on .vn { color: #3a3733 }

/* ── filtre modèle + recherche ─────────────────────────────────────────── */
.fl-outils { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px }
.fl-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .45); border: 1px solid var(--filet) }
.fl-seg button {
  cursor: pointer; font: 500 11.5px var(--f-txt); padding: 5px 13px; border: 0;
  border-radius: 4px; background: none; color: var(--encre-3);
}
.fl-seg button:hover { color: var(--m-arete) }
.fl-seg button.on { background: var(--plaque-h); color: var(--m-arete); box-shadow: var(--grave) }
.fl-rech {
  flex: 1; min-width: 200px; background: rgba(0, 0, 0, .45); border: 1px solid var(--filet);
  border-radius: var(--r-sm); padding: 7px 12px; color: var(--encre); font: 12.5px var(--f-txt);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .7);
}
.fl-rech::placeholder { color: var(--encre-4) }
.fl-rech:focus { outline: 0; border-color: var(--filet-fort) }

/* ── le tableau ────────────────────────────────────────────────────────── */
.fl-tete-tbl { display: flex; align-items: baseline; gap: 14px; margin: 22px 2px 10px }
.fl-n { font: 500 12px var(--f-num); color: var(--m-clair) }
.fl-aide { font-size: 11.5px; color: var(--encre-4) }
.fl-zone-tbl {
  border: 1px solid var(--filet); border-radius: var(--r-lg); overflow: auto;
  background: var(--plaque); box-shadow: var(--ombre-plaque); max-height: 62vh;
}
.fl-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px }
.fl-tbl thead th {
  position: sticky; top: 0; z-index: 2; background: #101010; cursor: pointer;
  text-align: left; padding: 11px 13px; white-space: nowrap;
  font: 500 9.5px var(--f-txt); letter-spacing: .16em; text-transform: uppercase;
  color: var(--encre-4); border-bottom: 1px solid var(--filet);
}
.fl-tbl thead th:hover { color: var(--m-arete) }
.fl-tbl thead th.tri { color: var(--m-clair) }
.fl-tbl th.num, .fl-tbl td.num { text-align: right; font-variant-numeric: tabular-nums }
.fl-tbl th.pt, .fl-tbl td.pt { width: 26px; padding-left: 14px; padding-right: 0 }
.fl-tbl td { padding: 9px 13px; border-bottom: 1px solid var(--filet-tenu); color: var(--encre-2);
  white-space: nowrap }
.fl-tbl tbody tr:last-child td { border-bottom: 0 }
.fl-tbl tbody tr:hover td { background: rgba(224, 219, 213, .022) }
.fl-tbl td.pt i { display: block; width: 7px; height: 7px; border-radius: 50% }
.fl-tbl td.ps { color: var(--m-arete); font-weight: 500 }

/* La règle de la vue ouverte : un onglet qui compte doit dire ce qu'il compte. */
.fl-regle {
  margin: 12px 2px 0; font-size: 12px; line-height: 1.6; color: var(--encre-3); max-width: 96ch;
}
.fl-regle b { color: var(--m-clair); font-weight: 500 }
.fl-cousine { color: var(--l-attente) }

/* ═══ LES LIGNES — un tableau, une ligne par proxy ════════════════════════
   Quatre lignes se comparent dans un tableau, pas dans quatre cartes qu'il
   faut lire l'une après l'autre. Les colonnes font le travail de comparaison
   à la place de l'œil : c'est tout l'intérêt de l'alignement. */
.lg-zone {
  margin-top: 8px; border: 1px solid var(--filet); border-radius: var(--r-lg);
  overflow-x: auto; background: var(--plaque); box-shadow: var(--ombre-plaque);
}
.lg-tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px;
  table-layout: auto }
.lg-tbl thead th {
  text-align: left; padding: 11px 12px; white-space: nowrap;
  font: 500 9.5px var(--f-txt); letter-spacing: .18em; text-transform: uppercase;
  color: var(--encre-4); border-bottom: 1px solid var(--filet); background: #101010;
}
.lg-tbl th.num, .lg-tbl td.num { text-align: right; font-variant-numeric: tabular-nums }
.lg-tbl th.jg { width: 138px }
/* ⚠️ `nowrap` PARTOUT faisait déborder le tableau : la colonne « IP » sortait
   du cadre et une barre de défilement apparaissait sous cinq lignes. Seules
   les colonnes qui ne DOIVENT pas se couper le gardent (le nom, l'hôte, les
   nombres) ; la nature peut passer à la ligne, elle ne perd rien. */
.lg-tbl td {
  padding: 11px 12px; border-bottom: 1px solid var(--filet-tenu);
  color: var(--encre-2); vertical-align: middle;
}
.lg-tbl td.nm, .lg-tbl td.mono, .lg-tbl td.num, .lg-tbl td.jg { white-space: nowrap }
.lg-tbl tbody tr:last-child td { border-bottom: 0 }
.lg-tbl tbody tr:hover td { background: rgba(224, 219, 213, .022) }
.lg-tbl tr.morte td, .lg-tbl tr.sans td { opacity: .52 }

/* le nom, avec sa lampe : verte sous le seuil, ambre en approche, rouge au-delà */
.lg-tbl td.nm { display: flex; align-items: center; gap: 10px;
  font: 600 14px var(--f-aff); color: var(--m-arete); letter-spacing: -.01em }
.lg-tbl td.nm i { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px }
.lg-tbl td.mono { font: 400 11px var(--f-num); color: var(--encre-3) }
.lg-tbl td.nat { font-size: 12px; color: var(--encre-3) }
.lg-tbl td.num { font: 600 13.5px var(--f-aff); color: var(--m-clair) }

/* la jauge : fine, avec le repère du bas de fourchette (50 sur 70) */
.lg-jauge {
  position: relative; height: 7px; border-radius: var(--r-pill); width: 114px;
  background: rgba(224, 219, 213, .05);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .75);
}
.lg-jauge > i {
  display: block; height: 100%; border-radius: var(--r-pill);
  background: linear-gradient(90deg, #6d6a65, #bbb2aa 62%, #e8e3dd);
  transition: width .6s var(--dt);
}
.lg-repere { position: absolute; top: -3px; bottom: -3px; width: 1px;
  background: rgba(224, 219, 213, .38) }

/* les notes de chaque ligne, une par une, sous le tableau */
.lg-notes { margin: 16px 2px 0; display: flex; flex-direction: column; gap: 6px }
.lg-notes p { font-size: 12.2px; color: var(--encre-3); line-height: 1.55 }
.lg-notes b { color: var(--m-clair); font-weight: 500 }

/* ce qu'on ne peut pas mesurer : trois lignes, pas trois cartes */
.lg-hp { display: flex; flex-direction: column; gap: 1px }
.lg-hp > div {
  display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: baseline;
  padding: 10px 2px; border-top: 1px solid var(--filet-tenu);
  background: var(--hachure), transparent;
}
.lg-hp > div:first-child { border-top: 0 }
.lg-hp b { font-size: 12.8px; font-weight: 500; color: var(--encre-2) }
.lg-hp span { font-size: 12.2px; color: var(--encre-4); line-height: 1.5 }

/* ── la part, sous le nombre : « 8 5 % » se lit d'un coup ───────────────── */
.lg-tbl td.num .gros { font: 600 13.5px var(--f-aff); color: var(--m-clair) }
.lg-tbl td.num .part { font: 400 10.5px var(--f-num); color: var(--encre-4); margin-left: 5px }
.lg-aide { margin: 10px 2px 0; font-size: 11.5px; color: var(--encre-4); line-height: 1.55 }

/* ── le tableau des naissances ──────────────────────────────────────────── */
.lg-naiss { min-width: 420px }
.lg-naiss td, .lg-naiss th { padding: 8px 12px }
.lg-naiss td.tot { color: var(--m-arete); border-left: 1px solid var(--filet-tenu) }
.lg-naiss th:last-child { border-left: 1px solid var(--filet-tenu) }
.lg-alerte {
  margin-left: 12px; font: 500 9.5px var(--f-txt); letter-spacing: .12em;
  text-transform: uppercase; color: var(--l-mal);
}

/* ═══ ADSPOWER ════════════════════════════════════════════════════════════ */
.ap-pt { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px }
.fl-vbtn.on .ap-pt { box-shadow: 0 0 0 1px rgba(0, 0, 0, .3) }
.ap-tbl { min-width: 860px }
.ap-tbl td.nm { font-size: 13px }
.ap-verdict { font-size: 12px; white-space: nowrap }
.ap-preuve { font: 400 11px var(--f-num); color: var(--encre-4) }
/* La ligne alarmante porte un liseré rouge à gauche : sur 400 lignes, une
   couleur de texte seule se perd. */
.ap-tbl tr.ap-alarme td:first-child { box-shadow: inset 2px 0 0 var(--l-mal) }

/* ═══ HUB node1 — l'archive ═══════════════════════════════════════════════ */
.ar-intro { margin: 0 2px 26px; font-size: 13px; line-height: 1.7; color: var(--encre-3); max-width: 84ch }
.ar-intro b { color: var(--encre-2); font-weight: 500 }
.ar-intro code { font: 400 11.5px var(--f-num); color: var(--m-clair) }
.ar-pt { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px }
.tb-titre .ar-pt { align-self: center }

.ar-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 10px;
  margin-bottom: 26px }
.ar-item {
  position: relative; overflow: hidden; text-align: left; cursor: pointer; font: inherit;
  background: var(--plaque); border: 1px solid var(--filet); border-radius: var(--r-md);
  padding: 14px 16px 13px; color: inherit; box-shadow: var(--grave);
  transition: border-color .2s var(--dt), transform .2s var(--dt);
}
.ar-item:hover { border-color: var(--filet-fort); transform: translateY(-1px) }
.ar-item .nm { display: block; font: 600 14px var(--f-aff); color: var(--m-arete); letter-spacing: -.01em }
.ar-item .qq { display: block; margin-top: 5px; font-size: 12px; color: var(--encre-3); line-height: 1.45 }
.ar-item .pq { display: block; margin-top: 6px; font-size: 11px; color: var(--encre-4); line-height: 1.45 }
.ar-item .ou { display: block; margin-top: 7px; font: 500 11px var(--f-txt); color: var(--l-bon) }
.ar-item .fic { display: block; margin-top: 8px; font: 400 10px var(--f-num); color: var(--encre-4) }

/* ── la page ouverte ───────────────────────────────────────────────────── */
.ar-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
  padding: 12px 15px; border-radius: var(--r-md);
  background: var(--plaque); border: 1px solid var(--filet); box-shadow: var(--grave);
}
.ar-bar i { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px }
.ar-bar b { font: 600 14px var(--f-aff); color: var(--m-arete) }
.ar-bar .et { font: 500 9.5px var(--f-txt); letter-spacing: .18em; text-transform: uppercase;
  color: var(--encre-4); border: 1px solid var(--filet); border-radius: 3px; padding: 2px 8px }
.ar-bar .dit { flex: 1; min-width: 200px; font-size: 12px; color: var(--encre-3); line-height: 1.45 }
.ar-go {
  cursor: pointer; font: 500 11.5px var(--f-txt); padding: 7px 14px; border-radius: var(--r-sm);
  background: linear-gradient(180deg, #e8e3dd, #b4aca3); border: 1px solid #8c8982;
  color: #0c0c0b; font-weight: 600; white-space: nowrap;
}
.ar-cadre {
  display: block; width: 100%; height: calc(100vh - 220px); min-height: 420px;
  border: 1px solid var(--filet); border-radius: var(--r-lg); background: #000;
}

/* ═══ VA ══════════════════════════════════════════════════════════════════ */
.va-tbl { min-width: 680px }
.va-tbl td.nm { font-size: 13.5px }

/* ═══ VA — la fiche CRM ═══════════════════════════════════════════════════ */
.va-tbl tr.va-clic { cursor: pointer }
.va-tbl tr.va-clic:hover td { background: rgba(224, 219, 213, .03) }
.va-tbl tr.ouvert td { background: rgba(224, 219, 213, .045) }
.va-tbl tr.ouvert td:first-child { box-shadow: inset 2px 0 0 var(--m-clair) }
.va-signal { font: 400 11px var(--f-num); white-space: nowrap }

.va-fiche td { padding: 0 !important; background: #0a0a09 !important }
.va-fiche-z {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px;
  padding: 20px 22px 22px; border-top: 1px solid var(--filet);
}
.va-bloc { min-width: 0 }
.va-h {
  font: 500 9.5px var(--f-txt); letter-spacing: .2em; text-transform: uppercase;
  color: var(--encre-4); margin-bottom: 10px;
}
.va-li {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 6px 0; border-top: 1px solid var(--filet-tenu); font-size: 12px;
}
.va-li:first-of-type { border-top: 0 }
.va-li .ln { min-width: 74px; color: var(--m-clair); font-weight: 500 }
.va-li .nn { min-width: 84px; font-family: var(--f-num); font-size: 11px; color: var(--encre-2) }
.va-li .bb { flex: 1; font-family: var(--f-num); font-size: 11px; color: var(--encre-3) }
.va-li .ag { font-family: var(--f-num); font-size: 10.5px; color: var(--encre-4) }
.va-note { margin-top: 10px; font-size: 11px; color: var(--encre-4); line-height: 1.5 }
.va-bloc .tb-six { margin-top: 0; padding-top: 0; border-top: 0 }

/* ═══════════════════════════════════════════════════════════════════════════
   LA MÉMOIRE — le fil, ce qui bouge, les captures, les sorties.

   ⚠️ Aucun chiffre d'état n'est poli ici. Le poli passe par
   `background-clip:text`, et il efface une couleur de statut : on l'a déjà
   payé sur les quatre KPI de Market. Le métal est pour NOS libellés, pas pour
   une valeur qui doit rester verte ou rouge.
   ⚠️ `nowrap` seulement là où une coupure ferait un faux sens (une heure, une
   valeur avant/après). Partout ailleurs on laisse respirer — sinon la dernière
   colonne sort du cadre, comme sur Proxy.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── LE FIL ────────────────────────────────────────────────────────────────── */
.mm-fil { margin-top: 4px; border-top: 1px solid var(--filet-tenu) }
.mm-l {
  display: grid; align-items: baseline; gap: 10px; padding: 7px 2px;
  grid-template-columns: 62px 88px minmax(96px, 1.1fr) minmax(110px, 1.2fr) minmax(60px, .9fr) 12px minmax(60px, .9fr);
  border-bottom: 1px solid var(--filet-tenu);
}
.mm-l:hover { background: rgba(224, 219, 213, .022) }
.mm-l .h { font: 400 10.5px var(--f-num); color: var(--encre-4); white-space: nowrap }
.mm-l .t { font-size: 11px; color: var(--encre-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.mm-l .q { font-size: 12.4px; color: var(--encre-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.mm-l .c { font-size: 12px; color: var(--encre-3); overflow: hidden; text-overflow: ellipsis }
.mm-l .av, .mm-l .ap {
  font: 400 11.5px var(--f-num); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mm-l .av { color: var(--encre-4) }
.mm-l .ap { color: var(--encre-2) }
.mm-l .fl { color: var(--m-sombre); font-size: 11px; text-align: center }
/* apparue / disparue / revenue : l'événement occupe les quatre dernières
   colonnes, parce qu'il n'a ni avant ni après à aligner. */
.mm-l .vie { grid-column: 4 / -1; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase }
.mm-l .vie[data-etat="apparue"] { color: var(--l-bon) }
.mm-l .vie[data-etat="disparue"] { color: var(--l-mal) }
.mm-l .vie[data-etat="revenue"] { color: var(--l-attente) }

/* ── CE QUI BOUGE ──────────────────────────────────────────────────────────── */
.mm-bouge { margin-top: 4px }
.mm-b {
  display: grid; align-items: center; gap: 12px; padding: 8px 2px;
  grid-template-columns: minmax(120px, 1.4fr) minmax(60px, 2fr) 56px 76px;
  border-top: 1px solid var(--filet-tenu);
}
.mm-b:first-child { border-top: 0 }
.mm-b .nm { font-size: 12.4px; color: var(--encre-2); overflow: hidden; text-overflow: ellipsis }
.mm-b .ja {
  height: 6px; border-radius: var(--r-pill); overflow: hidden;
  background: rgba(224, 219, 213, .045); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .7);
}
.mm-b .ja i { display: block; height: 100%; background: rgba(224, 219, 213, .22) }
.mm-b .n {
  font: 600 13px var(--f-aff); font-variant-numeric: tabular-nums; text-align: right;
  background: var(--poli-mat); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.mm-b .l { font: 400 10.5px var(--f-num); color: var(--encre-4); text-align: right; white-space: nowrap }

/* ── LES CAPTURES ET LES SORTIES — même forme, même lecture ────────────────── */
.mm-cap { margin-top: 4px; border-top: 1px solid var(--filet-tenu) }
.mm-c {
  display: grid; align-items: baseline; gap: 12px; padding: 7px 2px;
  grid-template-columns: 104px 92px 1fr 62px;
  border-bottom: 1px solid var(--filet-tenu);
}
.mm-c .h { font: 400 10.5px var(--f-num); color: var(--encre-4); white-space: nowrap }
.mm-c .s { font-size: 11.5px; color: var(--encre-3); overflow: hidden; text-overflow: ellipsis }
.mm-c .q { font-size: 12.2px; color: var(--encre-2); line-height: 1.5 }
.mm-c .ms { font: 400 10.5px var(--f-num); color: var(--encre-4); text-align: right; white-space: nowrap }
.mm-c[data-mal="1"] .q { color: var(--l-mal) }
.mm-c[data-saute="1"] .q { color: var(--l-attente) }

/* ── LE VERROU DE PROD ─────────────────────────────────────────────────────── */
.mm-verrou {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  margin: 14px 0 6px; padding: 12px 15px; border-radius: var(--r-md);
  border: 1px solid var(--filet-tenu); background: rgba(224, 219, 213, .012);
}
.mm-verrou b { font: 600 12px var(--f-aff); letter-spacing: .05em; text-transform: uppercase }
.mm-verrou span { font-size: 12.2px; color: var(--encre-3); line-height: 1.6 }
.mm-verrou[data-etat="libre"] b { color: var(--l-bon) }
.mm-verrou[data-etat="pose"] b { color: var(--l-attente) }
.mm-verrou[data-etat="perime"] b { color: var(--encre-4) }

@media (max-width: 1080px) {
  .mm-l { grid-template-columns: 58px minmax(90px, 1fr) minmax(80px, 1fr) minmax(70px, 1fr); }
  .mm-l .t, .mm-l .fl { display: none }
  .mm-l .vie { grid-column: 3 / -1 }
  .mm-c { grid-template-columns: 96px 1fr 58px }
  .mm-c .s { display: none }
}

/* Les quatre chiffres de la Mémoire : même carte que le Dashboard, mais en
   bandeau plein — ils n'ont pas de héros à leur gauche. */
.mm-chiffres { margin: 18px 0 8px }
.mm-chiffres .tb-kpi { flex: 1 1 180px }
/* L'émoji d'alerte du bandeau : une espace en tête de template littéral est
   avalée au rendu, et « ⚠️La mémoire » se lisait collé. */
.mm-av { margin-right: 7px }

/* ═══════════════════════════════════════════════════════════════════════════
   L'ÉCONOMIE DU COMPTE (écran VA) — le classement par ratio.

   ⚠️ La barre ne porte PAS la couleur de statut toute seule. Un écart
   significatif est marqué par un badge écrit (« pire » / « mieux ») À CÔTÉ du
   nom : la couleur seule ne se lit pas pour tout le monde, et une barre rouge
   sans mot ne dit pas pourquoi elle est rouge.
   ═══════════════════════════════════════════════════════════════════════════ */
.ec-t { margin-top: 6px }
.ec-l, .ec-tete { grid-template-columns: minmax(110px, 1fr) minmax(70px, 2fr) 52px 76px 82px }
.ec-tete {
  border-top: 0; padding-bottom: 4px;
  font: 400 10px var(--f-num); letter-spacing: .07em; text-transform: uppercase; color: var(--encre-4);
}
.ec-tete .n, .ec-tete .l { text-align: right }
.ec-l .nm { display: flex; align-items: baseline; gap: 7px }
.ec-l .ja i[data-q="pire"] { background: var(--l-mal) }
.ec-l .ec-cout { color: var(--encre-2); font: 400 11.5px var(--f-num) }
.ec-ec {
  font: 500 9.5px var(--f-num); letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 5px; border-radius: var(--r-pill); font-style: normal; flex: 0 0 auto;
}
.ec-ec[data-q="pire"]  { color: var(--l-mal);  background: rgba(208, 80, 79, .13) }
.ec-ec[data-q="mieux"] { color: var(--l-bon);  background: rgba(74, 169, 105, .13) }

@media (max-width: 1080px) {
  .ec-l, .ec-tete { grid-template-columns: minmax(96px, 1fr) 46px 66px 74px }
  .ec-l .ja, .ec-tete .ja { display: none }
}
/* L'en-tête hérite de `.ja`, donc du rail gris de la barre : un libellé posé
   dans une gouttière. On lui retire le décor, il ne garde que le mot. */
.ec-tete .ja { background: none; box-shadow: none; height: auto; align-self: end }

/* ═══════════════════════════════════════════════════════════════════════════
   MANAGER (écran VA) — la seule partie du poste de pilotage qui ÉCRIT.
   Elle se distingue à l'œil : une plaque encadrée, pas une simple liste. Un
   écran qui agit ne doit pas ressembler à un écran qui regarde.
   ═══════════════════════════════════════════════════════════════════════════ */
.vg-retour {
  margin: 4px 0 14px; padding: 9px 13px; border-radius: var(--r-md);
  border: 1px solid var(--filet-tenu); background: rgba(224, 219, 213, .012);
  font-size: 12px; color: var(--encre-3);
}
.vg-retour[data-mal="1"] { color: var(--l-mal); border-color: rgba(208, 80, 79, .3) }
.vg-retour[data-mal="0"] { color: var(--l-bon); border-color: rgba(74, 169, 105, .26) }

.vg-carte {
  position: relative; margin-bottom: 16px; padding: 17px 19px 15px;
  border: 1px solid var(--filet); border-radius: var(--r-lg);
  background: linear-gradient(180deg, #111110, #0a0a0a); box-shadow: var(--ombre-plaque);
}
.vg-carte::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--arete-h); opacity: .6; border-radius: var(--r-lg) var(--r-lg) 0 0 }
.vg-carte h4 {
  margin: 0 0 13px; font: 600 12.5px var(--f-aff); letter-spacing: .05em; text-transform: uppercase;
  color: var(--encre-2);
}
.vg-form { display: flex; flex-wrap: wrap; gap: 11px 16px }
.vg-ch { display: flex; flex-direction: column; gap: 5px; min-width: 128px; flex: 0 1 auto }
.vg-ch .k { font: 400 10.5px var(--f-num); color: var(--encre-4); letter-spacing: .04em }
.vg-iw { position: relative; display: inline-flex; align-items: center; gap: 6px }
.vg-iw i { font-style: normal; font: 400 10.5px var(--f-num); color: var(--encre-4) }
.vg-i {
  background: #0a0a09; border: 1px solid var(--filet); border-radius: var(--r-sm);
  color: var(--encre-1); font: 400 12.5px var(--f-num); padding: 7px 9px; min-width: 96px;
}
.vg-i:focus { outline: none; border-color: var(--m-sombre); background: #0d0d0c }
select.vg-i { min-width: 178px }

.vg-bas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px }
.vg-aide { font-size: 11.5px; color: var(--encre-4); line-height: 1.55; flex: 1 1 220px }
.vg-aide b { color: var(--encre-3); font-weight: 500 }
.vg-vide { font-size: 12.2px; color: var(--encre-4); margin: 2px 0 0 }

.vg-b {
  font: 500 11.5px var(--f-aff); letter-spacing: .03em; padding: 8px 14px; cursor: pointer;
  border-radius: var(--r-pill); border: 1px solid var(--filet);
  background: var(--plaque-h); color: var(--encre-2); transition: none;
}
.vg-b:hover { border-color: var(--m-sombre); color: var(--encre-1) }
.vg-b:disabled { opacity: .5; cursor: default }
/* ARMÉ : le bouton dit ce qu'il va faire, et il faut recliquer. Pas de modale —
   une boîte de dialogue navigateur bloque tout, y compris la vérification. */
.vg-b[data-arme="1"] {
  background: rgba(224, 176, 99, .14); border-color: var(--l-attente); color: var(--l-attente);
}
.vg-b[data-danger="1"][data-arme="1"] {
  background: rgba(208, 80, 79, .14); border-color: var(--l-mal); color: var(--l-mal);
}
.vg-r { grid-template-columns: 88px 92px 1fr auto }
.vg-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end }

/* La bande de chiffres vivants posée AU-DESSUS de la page Market de Clem :
   un bandeau, pas un écran. Son globe reste le sujet. */
#marketVivant .tb { padding-bottom: 6px }
#marketVivant .tb-tete { margin-bottom: 14px }
#mod-market .mk-bas { padding-top: 26px; border-top: 1px solid var(--filet-tenu); margin-top: 22px }

/* ═══ LES MACHINES — le battement, posé sur l'écran Flotte (22/09) ═════════
   Le seul bloc de cette page qui décrive le présent : tout le reste relit le
   registre. D'où le parti pris visuel — l'âge de la mesure est écrit partout,
   et un bandeau barre le bloc dès qu'il est périmé. Une mesure vieille ne doit
   jamais avoir l'air d'une mesure fraîche : c'est ce qui a laissé une base
   figée 12 h s'afficher comme vivante. */
.fl-machines { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 11px }
.fl-mach {
  position: relative; padding: 14px 16px 15px; border-radius: var(--r-md);
  background: var(--plaque); border: 1px solid var(--filet); box-shadow: var(--grave);
}
.fl-mach[data-perime] { opacity: .55 }
.fl-mach-tete { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap }
.fl-mach-tete b { font: 600 15px var(--f-aff); letter-spacing: -.01em; color: var(--encre) }
.fl-mach-etat {
  font: 500 9.5px var(--f-txt); letter-spacing: .14em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 3px; color: var(--m); border: 1px solid var(--filet-fort);
}
.fl-mach-etat[data-ton="bon"] { color: var(--l-bon); border-color: color-mix(in srgb, var(--l-bon) 38%, transparent) }
.fl-mach-etat[data-ton="mal"] { color: var(--l-mal); border-color: color-mix(in srgb, var(--l-mal) 38%, transparent) }
.fl-mach-etat[data-ton="attente"] { color: var(--l-attente); border-color: color-mix(in srgb, var(--l-attente) 38%, transparent) }
.fl-mach-role { margin-left: auto; font-size: 10.5px; color: var(--encre-4); letter-spacing: .05em }

.fl-mach-jauge-l {
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  margin-top: 13px; font-size: 11.5px; color: var(--encre-3);
}
.fl-mach-sur { color: var(--encre-4); font-size: 10.5px }
.fl-mach-jauge {
  margin-top: 5px; height: 5px; border-radius: 99px; overflow: hidden;
  background: var(--m-creux); border: 1px solid var(--filet);
}
.fl-mach-jauge i { display: block; height: 100%; border-radius: 99px; background: var(--m-sombre) }
.fl-mach-jauge i[data-ton="bon"] { background: var(--l-bon) }
.fl-mach-jauge i[data-ton="attente"] { background: var(--l-attente) }
.fl-mach-jauge i[data-ton="mal"] { background: var(--l-mal) }

.fl-mach-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 13px }
.fl-mach-chiffres b {
  display: block; font: 600 15px/1 var(--f-aff); font-variant-numeric: tabular-nums;
  color: var(--encre); letter-spacing: -.015em;
}
.fl-mach-chiffres span { display: block; margin-top: 4px; font-size: 9.5px; color: var(--encre-4); line-height: 1.3 }
.fl-mach-rien { margin-top: 12px; font-size: 12px; color: var(--encre-4); font-style: italic }

.fl-mach-pied { margin-top: 11px; font-size: 11.5px; color: var(--encre-3); line-height: 1.55 }
.fl-mach-pied b { color: var(--encre-2); font-weight: 600 }

.fl-mach-perime, .fl-mach-muet {
  margin-bottom: 11px; padding: 11px 14px; border-radius: var(--r-md); font-size: 12.5px;
  line-height: 1.55; color: var(--encre-2);
  border: 1px solid color-mix(in srgb, var(--l-mal) 34%, transparent);
  background: color-mix(in srgb, var(--l-mal) 7%, transparent);
}
.fl-mach-muet {
  border-color: var(--filet-fort); background: var(--m-creux); color: var(--encre-3);
}
.fl-mach-perime b { color: var(--l-mal) }

/* L'écart entre ce que le registre compte et ce que le cockpit valide.
   Il se lit À CÔTÉ du chiffre, pas à sa place : on ne choisit pas lequel
   des deux a raison, on montre qu'ils ne disent pas la même chose. */
.va-ecart {
  font: 500 9.5px var(--f-num); font-style: normal; margin-left: 5px;
  padding: 1px 4px; border-radius: var(--r-pill);
  color: var(--encre-4); background: rgba(224, 219, 213, .06);
}
.va-ecart[data-q="manque"] { color: var(--l-attente); background: rgba(224, 176, 99, .12) }

/* L'écran Revenu — une ligne par jour. Le jour en cours porte sa barre en
   creux : il n'est pas fini, et il ne doit pas se lire comme une chute. */
.rv-l { grid-template-columns: 86px minmax(70px, 1.6fr) 92px 96px 78px 64px }
.rv-l .ja { height: 7px }
.rv-l .ja i { background: rgba(74, 169, 105, .55) }
.rv-l .ja i[data-q="partiel"] { background: repeating-linear-gradient(135deg,
  rgba(74,169,105,.5) 0 3px, transparent 3px 6px) }
.rv-l .rv-m { font: 600 12.5px var(--f-aff); text-align: right; color: var(--encre-2); font-variant-numeric: tabular-nums }
.rv-l .rv-c { font: 400 11px var(--f-num); text-align: right; color: var(--encre-4) }
.rv-l .rv-p { font: 400 11.5px var(--f-num); text-align: right; color: var(--l-attente) }
.rv-l .rv-e { font: 400 10px var(--f-num); text-align: right; color: var(--encre-4); letter-spacing: .04em }
@media (max-width: 1080px) {
  .rv-l { grid-template-columns: 78px 86px 84px 60px }
  .rv-l .ja, .rv-l .rv-c { display: none }
}

/* L'écran Berger — les états du troupeau et le rendement des gestes. */
.bg-l  { grid-template-columns: minmax(110px,1fr) minmax(60px,1.4fr) 50px 52px minmax(120px,1.6fr) }
.bg-g  { grid-template-columns: minmax(120px,1fr) minmax(60px,1.4fr) 52px 60px 62px 108px }
.bg-tete { border-top: 0; font: 400 10px var(--f-num); letter-spacing: .07em;
  text-transform: uppercase; color: var(--encre-4); padding-bottom: 4px }
.bg-tete .ja { background: none; box-shadow: none; height: auto; align-self: end }
.bg-tete .n, .bg-tete .l { text-align: right }
.bg-sens { color: var(--encre-4); font-size: 11px; text-align: left !important; font-family: inherit }
.bg-rec { font: 400 10.5px var(--f-num); text-align: right; color: var(--encre-4) }
.bg-rec[data-q="arrete"]   { color: var(--l-bon) }
.bg-rec[data-q="continue"] { color: var(--l-mal) }
@media (max-width: 1080px) {
  .bg-l { grid-template-columns: minmax(96px,1fr) 46px 48px }
  .bg-l .ja, .bg-sens { display: none }
  .bg-g { grid-template-columns: minmax(104px,1fr) 48px 56px 96px }
  .bg-g .ja { display: none }
}

/* L'écran Incidents — une carte par panne. Celles dont le remède manque
   portent un liseré : on doit les repérer sans lire. */
.in-liste { display: flex; flex-direction: column; gap: 10px; margin-top: 4px }
.in-c {
  position: relative; padding: 14px 17px 13px 19px; border-radius: var(--r-md);
  border: 1px solid var(--filet-tenu); background: rgba(224, 219, 213, .012);
}
.in-c::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px;
  border-radius: 2px; background: var(--m-sombre) }
.in-c[data-ton="mal"]::before { background: var(--l-mal) }
.in-c[data-ouvert="1"] { background: rgba(208, 80, 79, .045); border-color: rgba(208, 80, 79, .22) }
.in-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; margin-bottom: 6px }
.in-h .d { font: 500 11.5px var(--f-num); color: var(--encre-3) }
.in-h .et { font: 500 9.5px var(--f-num); letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 6px; border-radius: var(--r-pill); color: var(--encre-4); background: rgba(224,219,213,.06) }
.in-h .et[data-ton="mal"] { color: var(--l-mal); background: rgba(208, 80, 79, .13) }
.in-h .co { margin-left: auto; font: 400 10.5px var(--f-num); color: var(--encre-4); text-align: right }
.in-q { margin: 0 0 9px; font-size: 13.2px; color: var(--encre-1); line-height: 1.5 }
.in-d { display: grid; gap: 7px }
.in-b { display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: baseline }
.in-b .k { font: 400 10px var(--f-num); letter-spacing: .06em; text-transform: uppercase; color: var(--encre-4) }
.in-b .v { font-size: 12.2px; color: var(--encre-3); line-height: 1.6 }
.in-regles { display: flex; flex-direction: column; gap: 8px; margin-top: 4px }
.in-r { display: grid; grid-template-columns: 8px 1fr; gap: 12px; align-items: start;
  padding: 9px 2px; border-top: 1px solid var(--filet-tenu); font-size: 12.4px;
  color: var(--encre-2); line-height: 1.6 }
.in-r i { width: 5px; height: 5px; border-radius: 50%; background: var(--m-sombre); margin-top: 7px }
@media (max-width: 900px) { .in-b { grid-template-columns: 1fr; gap: 2px } }

/* ═══ MODIFIER UNE COLONNE — renommer, statuts, créer (22/09) ══════════════
   Ce qu'on faisait dans Airtable et qui revient à la maison. Le menu s'ouvre
   au clic droit sur un en-tête ; le « + » au bout des colonnes crée. */
.menu-col {
  position: fixed; z-index: 400; width: 290px; padding: 4px 0 8px;
  background: var(--plaque); border: 1px solid var(--filet-fort);
  border-radius: var(--r-md); box-shadow: 0 10px 34px rgba(0,0,0,.42), var(--grave);
  font-size: 13px; color: var(--encre-2);
}
.menu-col.mc-centre {
  left: 50% !important; top: 50% !important; transform: translate(-50%, -50%);
  width: 340px;
}
.mc-titre {
  padding: 11px 14px 9px; border-bottom: 1px solid var(--filet);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px;
}
.mc-titre b { font: 600 13.5px var(--f-aff); color: var(--encre); letter-spacing: -.01em }
/* Le nom technique, toujours visible : c'est lui que la machine écrit. */
.mc-vrai { font: 400 10.5px var(--f-num); color: var(--encre-4) }
.mc-type { margin-left: auto; font: 400 10px var(--f-num); color: var(--encre-4);
  border: 1px solid var(--filet); border-radius: 3px; padding: 1px 5px }

.mc-bloc { padding: 10px 14px 4px; display: flex; flex-direction: column; gap: 5px }
.mc-bloc label {
  font: 500 9.5px var(--f-txt); letter-spacing: .16em; text-transform: uppercase;
  color: var(--encre-4);
}
.mc-bloc input, .mc-bloc select {
  width: 100%; padding: 6px 9px; font: inherit; color: var(--encre);
  background: var(--m-creux); border: 1px solid var(--filet); border-radius: 4px;
}
.mc-bloc input:focus, .mc-bloc select:focus { outline: none; border-color: var(--m-sombre) }

.mc-actions { display: flex; gap: 7px; align-items: center; margin-top: 3px }
.mc-actions input { flex: 1 }
.mc-ok, .mc-raz {
  font: 500 12px var(--f-txt); padding: 6px 12px; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--filet-fort); background: var(--plaque-h); color: var(--encre-2);
  white-space: nowrap;
}
.mc-ok { border-color: color-mix(in srgb, var(--l-bon) 45%, transparent); color: var(--l-bon) }
.mc-ok:hover { background: color-mix(in srgb, var(--l-bon) 12%, transparent) }
.mc-ok:disabled { opacity: .5; cursor: default }
.mc-raz:hover { border-color: var(--m-sombre); color: var(--encre) }

.mc-statuts { display: flex; flex-wrap: wrap; gap: 5px; max-height: 108px; overflow-y: auto }
.mc-st {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px;
  border-radius: 3px; font-size: 11.5px; background: var(--m-creux);
  border: 1px solid var(--filet); color: var(--encre-3);
}
/* Les nôtres se distinguent : ce sont les seuls qu'on peut retirer. */
.mc-st.mien { border-color: color-mix(in srgb, var(--l-bon) 40%, transparent); color: var(--encre-2) }
.mc-x {
  border: 0; background: none; cursor: pointer; padding: 0 0 0 2px;
  color: var(--encre-4); font-size: 13px; line-height: 1;
}
.mc-x:hover { color: var(--l-mal) }

.mc-note {
  margin: 8px 14px 0; padding-top: 8px; border-top: 1px solid var(--filet);
  font-size: 11.5px; line-height: 1.5; color: var(--encre-4);
}

/* le « + » au bout des colonnes, là où Airtable l'a appris à tout le monde */
.col-plus { width: 38px; text-align: center }
.th-plus {
  border: 1px dashed var(--filet-fort); background: none; color: var(--encre-4);
  cursor: pointer; border-radius: 4px; width: 22px; height: 22px; line-height: 1;
  font-size: 15px; padding: 0;
}
.th-plus:hover { color: var(--l-bon); border-color: color-mix(in srgb, var(--l-bon) 50%, transparent) }
/* la marque discrète d'une colonne renommée */
.renomme { color: var(--encre-4); font-size: 9px; margin-left: 2px }

/* ── déplacer · masquer : la rangée d'actions rapides du menu de colonne ── */
.mc-rangee {
  display: flex; align-items: center; gap: 4px; padding: 9px 14px 2px; flex-wrap: wrap;
}
.mc-g {
  font: 500 12px var(--f-txt); padding: 4px 8px; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--filet); background: var(--m-creux); color: var(--encre-2);
  line-height: 1.2;
}
.mc-g:hover:not(:disabled) { border-color: var(--m-sombre); color: var(--encre) }
.mc-g:disabled { opacity: .35; cursor: default }
.mc-pos {
  font: 400 10.5px var(--f-num); color: var(--encre-4); margin: 0 2px 0 5px;
  font-variant-numeric: tabular-nums;
}
.mc-masque { margin-left: auto }
.mc-cache {
  display: flex; align-items: center; gap: 9px; justify-content: space-between;
  padding: 4px 0; font-size: 12.5px; color: var(--encre-2);
}
.mc-cache + .mc-cache { border-top: 1px solid var(--filet) }
.th-caches {
  display: block; margin-top: 3px; font: 400 9.5px var(--f-txt); cursor: pointer;
  border: 0; background: none; color: var(--encre-4); padding: 0; white-space: nowrap;
}
.th-caches:hover { color: var(--l-attente); text-decoration: underline }

/* ── créer une vue : le dialogue et le bouton ───────────────────────────── */
.mc-large { width: 460px }
.mc-conds { display: flex; flex-direction: column; gap: 6px }
.mc-cond { display: flex; gap: 5px; align-items: center }
.mc-cond select, .mc-cond input {
  padding: 5px 7px; font: inherit; font-size: 12px; color: var(--encre);
  background: var(--m-creux); border: 1px solid var(--filet); border-radius: 4px;
  min-width: 0;
}
.mc-cond select:first-child { flex: 2 }
.mc-cond select:nth-child(2) { flex: 1.2 }
.mc-val { flex: 1.6; display: flex; min-width: 0 }
.mc-val .val { width: 100% }
.vue-neuve {
  display: block; width: 100%; margin-top: 10px; padding: 7px 10px; cursor: pointer;
  font: 500 12px var(--f-txt); text-align: left; color: var(--encre-4);
  background: none; border: 1px dashed var(--filet-fort); border-radius: var(--r-sm);
}
.vue-neuve:hover { color: var(--l-bon); border-color: color-mix(in srgb, var(--l-bon) 45%, transparent) }
/* une vue dont le filtre pointe dans le vide : elle rend zéro, ce n'est pas pareil que « rien à faire » */
.vue-cassee .nm { text-decoration: underline dotted var(--l-attente); text-underline-offset: 3px }

/* ═══ LE PARC — la colonne « Profil » ═════════════════════════════════════
   Le texte est celui du registre (emoji compris). Le ton n'ajoute qu'une
   chose : rendre lisible d'un coup d'œil, sur 400 lignes, celle qui alarme. */
.fl-verdict { font-size: 12px; white-space: nowrap; color: var(--encre-3) }
.fl-verdict[data-ton="mal"] { color: var(--l-mal) }
.fl-verdict[data-ton="bon"] { color: var(--encre-3) }
.fl-verdict[data-ton="neutre"] { color: var(--encre-4) }

/* ═══ LES MACHINES ════════════════════════════════════════════════════════
   Une carte par serveur. Le ton de la carte vient de sa saturation, pas de
   son importance : la machine qui étouffe se voit avant qu'on la cherche. */
.mc-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; margin: 0 2px 26px }
.mc-c { background: var(--plaque); border: 1px solid var(--filet); border-radius: 10px; padding: 16px 17px 14px;
  display: flex; flex-direction: column; gap: 13px; position: relative; overflow: hidden }
.mc-c::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--filet) }
.mc-c[data-ton="mal"]::before { background: var(--l-mal) }
.mc-c[data-ton="attente"]::before { background: var(--l-attente) }
.mc-c[data-ton="bon"]::before { background: var(--l-bon) }
.mc-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px }
.mc-h h3 { margin: 0; font: 500 15px var(--f-aff); color: var(--encre) }
.mc-role { margin: 3px 0 0; font-size: 11.5px; color: var(--encre-4) }
.mc-et { font: 400 10.5px var(--f-num); text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 7px; border-radius: 4px; border: 1px solid var(--filet); color: var(--encre-3); white-space: nowrap }
.mc-et[data-ton="mal"] { color: var(--l-mal); border-color: color-mix(in srgb, var(--l-mal) 40%, transparent) }
.mc-et[data-ton="bon"] { color: var(--l-bon); border-color: color-mix(in srgb, var(--l-bon) 32%, transparent) }
.mc-sat { display: flex; align-items: center; gap: 9px }
.mc-satn { font: 500 17px var(--f-num); color: var(--encre); min-width: 52px; font-variant-numeric: tabular-nums }
.mc-jauge { flex: 1; height: 5px; border-radius: 3px; background: var(--filet); overflow: hidden }
.mc-jauge i { display: block; height: 100%; background: var(--m-clair); border-radius: 3px }
.mc-jauge i[data-ton="mal"] { background: var(--l-mal) }
.mc-jauge i[data-ton="attente"] { background: var(--l-attente) }
.mc-jauge i[data-ton="bon"] { background: var(--l-bon) }
.mc-sats { font: 400 10.5px var(--f-num); color: var(--encre-4); text-transform: uppercase; letter-spacing: .05em }
.mc-g { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px 14px }
.mc-m { display: flex; flex-direction: column; gap: 1px }
.mc-m .n { font: 500 15px var(--f-num); color: var(--encre-2); font-variant-numeric: tabular-nums }
.mc-m .l { font-size: 11px; color: var(--encre-4) }
.mc-m .s { font-size: 10.5px; color: var(--encre-4); opacity: .85 }
.mc-p { border-top: 1px solid var(--filet); padding-top: 11px }
.mc-pt { margin: 0 0 8px; font-size: 11.5px; color: var(--encre-3) }
.mc-vide { margin: 0; font-size: 11.5px; color: var(--encre-4); font-style: italic }
.mc-l { display: flex; flex-wrap: wrap; gap: 5px }
.mc-s { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 7px; border-radius: 4px;
  background: var(--noir); border: 1px solid var(--filet) }
.mc-s b { font: 500 11.5px var(--f-txt); color: var(--encre-2) }
.mc-s i { font: 400 10px var(--f-num); color: var(--encre-4); font-style: normal }
/* Un service qu'on n'a pas su nommer se signale : c'est une dette, pas un détail. */
.mc-s[data-inconnu] b { color: var(--encre-4) }
.mc-s[data-inconnu] { border-style: dashed }
.mc-ec { margin: 8px 0 0; font-size: 10.5px; color: var(--encre-4) }
.mc-quoi { font-size: 11.5px !important; color: var(--encre-4); text-align: left }
.tb-alerte { margin: 0 2px 14px; padding: 11px 13px; border-radius: 8px; font-size: 12.5px;
  color: var(--l-mal); background: color-mix(in srgb, var(--l-mal) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--l-mal) 28%, transparent) }

/* ═══ LES GESTES — Centurion agit ═════════════════════════════════════════
   Le bouton porte son risque dans sa bordure, pas dans un libellé : sur une
   carte dense, un mot de plus se lit après coup, une couleur se lit avant. */
.mc-gestes { border-top: 1px solid var(--filet); padding-top: 11px }
.cm-l { display: flex; flex-wrap: wrap; gap: 6px }
.cm-b { font: 400 11.5px var(--f-txt); padding: 5px 10px; border-radius: 5px; cursor: pointer;
  background: var(--noir); color: var(--encre-2); border: 1px solid var(--filet); transition: border-color .12s, color .12s }
.cm-b:hover:not(:disabled) { border-color: var(--m-clair); color: var(--encre) }
.cm-b[data-risque="sec"] { border-color: color-mix(in srgb, var(--l-attente) 42%, var(--filet)); color: var(--l-attente) }
.cm-b[data-risque="interdit"] { border-style: dashed; color: var(--encre-4); cursor: not-allowed; opacity: .6 }
.cm-b:disabled { cursor: wait; opacity: .55 }
.cm-b:focus-visible { outline: 2px solid var(--m-clair); outline-offset: 1px }
.cm-zone:empty { display: none }
.cm-zone { margin-top: 9px }
.cm-conf { padding: 10px 11px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--l-attente) 34%, transparent);
  background: color-mix(in srgb, var(--l-attente) 7%, transparent); display: flex; flex-direction: column; gap: 8px }
.cm-q { margin: 0; font-size: 11.5px; line-height: 1.55; color: var(--encre-2) }
.cm-cmd { font: 400 10.5px var(--f-num); color: var(--encre-4); word-break: break-all;
  background: var(--noir); padding: 6px 8px; border-radius: 4px; border: 1px solid var(--filet) }
.cm-go, .cm-non { font: 400 11.5px var(--f-txt); padding: 5px 12px; border-radius: 5px; cursor: pointer; border: 1px solid var(--filet) }
.cm-go { background: var(--l-attente); color: var(--noir); border-color: var(--l-attente); font-weight: 500 }
.cm-non { background: transparent; color: var(--encre-4) }
.cm-conf .cm-go, .cm-conf .cm-non { align-self: flex-start; display: inline-block }
.cm-res { display: flex; flex-direction: column; gap: 4px; padding: 9px 11px; border-radius: 6px; font-size: 11.5px;
  border: 1px solid var(--filet); background: var(--noir) }
.cm-res[data-ton="bon"] { border-color: color-mix(in srgb, var(--l-bon) 34%, transparent) }
.cm-res[data-ton="bon"] b { color: var(--l-bon) }
.cm-res[data-ton="attente"] { border-color: color-mix(in srgb, var(--l-attente) 34%, transparent) }
.cm-res[data-ton="attente"] b { color: var(--l-attente) }
.cm-res[data-ton="mal"] { border-color: color-mix(in srgb, var(--l-mal) 34%, transparent) }
.cm-res[data-ton="mal"] b { color: var(--l-mal) }
.cm-res b { font-weight: 500 }
.cm-pr { font: 400 10.5px var(--f-num); color: var(--encre-4) }

/* ═══ LE RADAR QUICK-ADS — un cadran par machine (23/09) ═══════════════════
   Parti pris : ce radar montre ce qu'il NE voit pas. La couronne hachurée
   autour de chaque cadran occupe la part des comptes hors de portée de la
   sonde — sur une machine peu sondée elle mange l'écran, et c'est le message. */
.rd-sous { color: var(--encre-3); font-weight: 400 }
.rd-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 13px }
.rd-carte {
  padding: 15px 16px 14px; border-radius: var(--r-md); background: var(--plaque);
  border: 1px solid var(--filet); box-shadow: var(--grave);
}
.rd-carte[data-muette] { opacity: .78; border-style: dashed }
.rd-tete { display: flex; align-items: baseline; gap: 9px; margin-bottom: 4px }
.rd-tete b { font: 600 15px var(--f-aff); color: var(--encre); letter-spacing: -.01em }
.rd-age { margin-left: auto; font: 400 10.5px var(--f-num); color: var(--encre-4) }
.rd-age[data-vieux] { color: var(--l-mal) }

.rd-svg { display: block; width: 100%; max-width: 208px; margin: 4px auto 8px; overflow: visible }
.rd-anneau { fill: none; stroke: var(--filet); stroke-width: 1 }
/* le seuil sous lequel un compte ne peut rien produire */
.rd-seuil { fill: none; stroke: var(--l-attente); stroke-width: 1; stroke-dasharray: 2 3; opacity: .55 }
/* la couronne d'ombre : ce que la sonde ne voit pas */
.rd-ombre {
  fill: none; stroke: var(--m-sombre);
  stroke-dasharray: 1.5 3.5; stroke-linecap: round;
}
.rd-pt { fill: var(--l-bon); opacity: .8 }
.rd-pt.etouffe { fill: var(--l-attente); opacity: .7 }
.rd-pt.banni { fill: var(--l-mal); opacity: .5 }
.rd-pt.produit { stroke: var(--plaque); stroke-width: 1 }

.rd-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 4px }
.rd-b b {
  display: block; font: 600 16px/1 var(--f-aff); color: var(--encre);
  font-variant-numeric: tabular-nums; letter-spacing: -.015em;
}
.rd-b span { display: block; margin-top: 4px; font-size: 9.5px; color: var(--encre-4); line-height: 1.3 }
.rd-b[data-ton="bon"] b { color: var(--l-bon) }
.rd-b[data-ton="attente"] b { color: var(--l-attente) }
.rd-b[data-ton="mal"] b { color: var(--l-mal) }
.rd-b[data-ton="neutre"] b { color: var(--encre-3) }

.rd-aveugle {
  margin: 11px 0 0; padding-top: 9px; border-top: 1px solid var(--filet);
  font-size: 11.5px; line-height: 1.5; color: var(--encre-4);
}
.rd-aveugle b { color: var(--encre-2) }
.rd-alerte {
  margin: 14px 0 4px; padding: 12px 15px; border-radius: var(--r-md);
  font-size: 13px; line-height: 1.55; color: var(--encre-2);
  border: 1px solid color-mix(in srgb, var(--l-attente) 35%, transparent);
  background: color-mix(in srgb, var(--l-attente) 7%, transparent);
}
.rd-alerte b { color: var(--l-attente) }

/* ── LA MOSAÏQUE : un compte, une tuile ───────────────────────────────────
   Elle passe AVANT les cadrans : un cadran informe, une tuile se répare. */
.rd-bilan { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; margin: 4px 0 14px }
.rd-bc { padding: 11px 13px; border-radius: var(--r-md); background: var(--plaque); border: 1px solid var(--filet) }
.rd-bc b { display: block; font: 600 21px/1 var(--f-aff); font-variant-numeric: tabular-nums; letter-spacing: -.02em }
.rd-bc span { display: block; margin-top: 5px; font-size: 10.5px; color: var(--encre-4); line-height: 1.35 }
.rd-bc[data-ton="bon"] b { color: var(--l-bon) }
.rd-bc[data-ton="attente"] b { color: var(--l-attente) }
.rd-bc[data-ton="mal"] b { color: var(--l-mal) }

.rd-mosaique { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 8px }
.rd-tuile {
  padding: 10px 12px 9px; border-radius: var(--r-sm); background: var(--plaque);
  border: 1px solid var(--filet); border-left-width: 3px; cursor: default;
}
/* la couleur du liseré dit le GESTE, pas la gravité : réparable = à faire ce soir */
.rd-tuile[data-verdict="reparable"] { border-left-color: var(--l-attente) }
.rd-tuile[data-verdict="perdu"] { border-left-color: var(--l-mal); opacity: .62 }
.rd-tuile[data-verdict="travaille"] { border-left-color: var(--l-bon); opacity: .8 }
.rd-t-tete { display: flex; align-items: baseline; gap: 8px }
.rd-t-nom { font: 500 12.5px var(--f-txt); color: var(--encre-2); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap }
.rd-t-offre { margin-left: auto; font: 600 16px/1 var(--f-aff); color: var(--encre);
  font-variant-numeric: tabular-nums }
.rd-portes { display: flex; gap: 3px; margin: 8px 0 7px }
.rd-porte {
  flex: 1; text-align: center; font: 500 8.5px var(--f-num); letter-spacing: .06em;
  padding: 3px 0; border-radius: 2px; background: var(--m-creux);
  border: 1px solid var(--filet); color: var(--encre-4); text-transform: uppercase;
}
.rd-porte.ok { background: color-mix(in srgb, var(--l-bon) 17%, transparent);
  border-color: color-mix(in srgb, var(--l-bon) 35%, transparent); color: var(--l-bon) }
.rd-t-pied { display: flex; gap: 7px; align-items: baseline; font-size: 9.5px; color: var(--encre-4) }
.rd-t-vps { font-family: var(--f-num) }
.rd-t-verdict { margin-left: auto; text-align: right; color: var(--encre-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.rd-legende { margin: 11px 0 0; font-size: 11.5px; line-height: 1.55; color: var(--encre-4); max-width: 78ch }
.rd-t-verdict[data-verdict="reparable"] { color: var(--l-attente); font-weight: 500 }
.rd-t-verdict[data-verdict="perdu"] { color: var(--l-mal) }
.rd-t-verdict[data-verdict="travaille"] { color: var(--encre-4) }

/* ═══ LA RÈGLE DU PARC — ce qui est à sa place, ce qui est en trop ════════ */
.mc-pt[data-ton="mal"] { color: var(--l-mal) }
.mc-pt[data-ton="bon"] { color: var(--l-bon) }
/* Le module posé sur une machine à Snaps se voit : c'est le poids en trop. */
.mc-s[data-role="trop"] { border-color: color-mix(in srgb, var(--l-mal) 45%, var(--filet)) }
.mc-s[data-role="trop"] b { color: var(--l-mal) }
.mc-s[data-role="snap"] b { color: var(--encre) }
.mc-s[data-role="mesure"] b { color: var(--m-clair) }

/* ── VOIR L'ÉCRAN RÉEL : le bouton et la visionneuse ──────────────────────
   Le seul endroit de Centurion qui montre la machine au lieu du registre. */
.rd-voir {
  display: block; width: 100%; margin-top: 8px; padding: 4px 0; cursor: pointer;
  font: 500 10px var(--f-txt); letter-spacing: .04em; color: var(--encre-4);
  background: none; border: 1px dashed var(--filet-fort); border-radius: 3px;
}
.rd-voir:hover { color: var(--bleu, #6e9fd4); border-color: color-mix(in srgb, #6e9fd4 50%, transparent) }

.rd-vis {
  position: fixed; inset: 5vh 5vw auto; margin: 0 auto; z-index: 500;
  max-width: 1020px; max-height: 88vh; display: flex; flex-direction: column;
  background: var(--plaque); border: 1px solid var(--filet-fort);
  border-radius: var(--r-md); box-shadow: 0 24px 70px rgba(0,0,0,.6);
  overflow: hidden;
}
.rd-vis-tete {
  display: flex; align-items: center; gap: 11px; padding: 11px 15px;
  border-bottom: 1px solid var(--filet); background: var(--plaque-h); flex-wrap: wrap;
}
.rd-vis-tete b { font: 600 14px var(--f-aff); color: var(--encre) }
.rd-vis-vps { font: 400 10.5px var(--f-num); color: var(--encre-4) }
/* l'âge de l'image, qui vieillit sous les yeux */
.rd-vis-quand { margin-left: auto; font: 400 11px var(--f-num); color: var(--encre-3) }
.rd-vis-quand[data-vieux] { color: var(--l-mal) }
.rd-vis-b {
  font: 500 11.5px var(--f-txt); padding: 5px 11px; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--filet-fort); background: var(--m-creux); color: var(--encre-2);
}
.rd-vis-b:hover:not(:disabled) { border-color: var(--m-sombre); color: var(--encre) }
.rd-vis-b:disabled { opacity: .5; cursor: default }
.rd-vis-zone { padding: 14px 15px 16px; overflow: auto; display: flex;
  flex-direction: column; align-items: center; gap: 10px }
.rd-vis-img { max-width: 100%; border-radius: var(--r-sm); border: 1px solid var(--filet) }
.rd-vis-verdict { font: 500 13px var(--f-txt); padding: 6px 13px; border-radius: 4px }
.rd-vis-verdict[data-ton="mal"] { color: var(--l-mal);
  background: color-mix(in srgb, var(--l-mal) 10%, transparent) }
.rd-vis-verdict[data-ton="bon"] { color: var(--l-bon);
  background: color-mix(in srgb, var(--l-bon) 10%, transparent) }
.rd-vis-url { font: 400 10.5px var(--f-num); color: var(--encre-4); word-break: break-all;
  text-align: center; max-width: 90% }
.rd-vis-attente, .rd-vis-err { padding: 40px 20px; text-align: center; color: var(--encre-4); font-size: 13px }
.rd-vis-err b { color: var(--l-mal) }

/* ═══ TELEGRAM — le chiffre qui compte ════════════════════════════════════
   Il passe DEVANT le reste du Dashboard : c'est le résultat, tout le reste est
   le moyen. D'où la place, la taille, et le seul accent vert de la page. */
.tg { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 26px; align-items: start;
  margin: 0 2px 26px; padding: 22px 24px; border-radius: 12px;
  background: var(--plaque); border: 1px solid var(--filet) }
.tg-g { display: flex; flex-direction: column; gap: 14px }
.tg-n { display: flex; flex-direction: column; gap: 3px }
.tg-n b { font: 300 46px var(--f-num); color: var(--encre); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; line-height: 1 }
.tg-u { font-size: 11.5px; color: var(--encre-4) }
.tg-cmp { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--filet) }
.tg-r { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline }
.tg-r .l { font-size: 12px; color: var(--encre-3) }
.tg-r .v { display: inline-flex; align-items: baseline; gap: 7px }
.tg-r .v b { font: 400 15px var(--f-num); color: var(--encre-2); font-variant-numeric: tabular-nums }
.tg-r .s { grid-column: 1 / -1; font-size: 10.5px; color: var(--encre-4) }
.tg-e { font: 400 11px var(--f-num); padding: 1px 5px; border-radius: 3px; border: 1px solid var(--filet) }
.tg-e[data-sens="haut"] { color: var(--l-bon); border-color: color-mix(in srgb, var(--l-bon) 32%, transparent) }
.tg-e[data-sens="bas"] { color: var(--l-mal); border-color: color-mix(in srgb, var(--l-mal) 32%, transparent) }
.tg-e[data-sens="plat"] { color: var(--encre-4) }
.tg-t { margin: 0; font-size: 12px; line-height: 1.5; color: var(--encre-3) }
.tg-t[data-sens="haut"] { color: var(--l-bon) }
.tg-t[data-sens="bas"] { color: var(--l-mal) }
.tg-d { min-width: 0 }
.tg-s { margin: 8px 0 0; font-size: 10.5px; color: var(--encre-4) }
@media (max-width: 900px) { .tg { grid-template-columns: 1fr } }

/* ═══ LE RÉSULTAT — l'argent à côté des conversations ═════════════════════ */
.tg-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px;
  margin: 0 2px 22px; padding: 18px 20px; border-radius: 10px;
  background: var(--plaque); border: 1px solid var(--filet) }
/* Le jour en cours se signale : il n'est pas comparable aux autres. */
.mm-b .nm[data-encours] { color: var(--l-attente) }
.mm-b .nm[data-encours]::after { content: ' · en cours'; font-size: 10px; opacity: .8 }

/* ═══ CE QUI RESTE SUR UNE MACHINE À SNAPS ════════════════════════════════
   Dit avant ce qui part : ces pièces-là SONT la machine. */
.mc-reste { margin: 0 0 9px; font-size: 11.5px; color: var(--encre-3); line-height: 1.5 }
.mc-reste b { color: var(--l-bon); font-weight: 500 }

/* ═══ LA CAPTURE EN COURS — un témoin, pas un écran vide ══════════════════
   Les vignettes restent lisibles pendant la nouvelle capture ; seules elles
   pâlissent légèrement, et le témoin de l'en-tête bat. */
#mod-vitrine[data-en-cours] .vt-grille { opacity: .72; transition: opacity .25s }
.tb-lu[data-vif] { color: var(--l-attente) }
.tb-lu[data-vif]::before { content: '● '; animation: vt-bat 1.1s ease-in-out infinite }
@keyframes vt-bat { 0%, 100% { opacity: .25 } 50% { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .tb-lu[data-vif]::before { animation: none } }

/* ═══ EN DIRECT — la liste du parc ════════════════════════════════════════
   Une ligne par compte. Le chiffre qui commande (« en attente ») est le seul
   mis en avant ; tout le reste se lit sans effort et ne crie pas. */
.vt-mach { display: inline-flex; gap: 4px; margin-right: 8px }
.vt-b { font: 400 11.5px var(--f-txt); padding: 5px 11px; border-radius: 5px; cursor: pointer;
  background: var(--noir); color: var(--encre-3); border: 1px solid var(--filet) }
.vt-b:hover { border-color: var(--m-clair); color: var(--encre) }
.vt-b.on { border-color: var(--m-clair); color: var(--encre); background: var(--plaque) }
.vt-tbl { min-width: 820px }
.vt-tbl tbody tr[data-ton="bon"] .pt i { background: var(--l-bon) }
.vt-tbl tbody tr[data-ton="attente"] .pt i { background: var(--l-attente) }
.vt-tbl tbody tr[data-ton="mal"] .pt i { background: var(--l-mal) }
.vt-tbl .pt i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--filet) }
/* Le seul chiffre mis en avant : c'est lui qu'on vient chercher. */
.vt-fort { font-weight: 500 !important; font-size: 14px !important; color: var(--encre-2) }
.vt-fort[data-chaud] { color: var(--l-bon) }
.vt-tbl td[data-mal] { color: var(--l-mal) }
.vt-ph[data-clic] { cursor: pointer; color: var(--m-clair); text-decoration: underline; text-underline-offset: 2px }
.vt-r-photo td { padding: 0 !important; background: var(--noir) }
.vt-photo { padding: 14px 18px; display: flex; flex-direction: column; gap: 7px; align-items: flex-start }
.vt-photo img { max-width: 100%; height: auto; border-radius: 7px; border: 1px solid var(--filet) }
.vt-age { margin: 0; font: 400 10.5px var(--f-num); color: var(--encre-4); text-transform: uppercase; letter-spacing: .05em }
.vt-age[data-vieux] { color: var(--l-attente) }
.vt-vide { margin: 0; font-size: 11.5px; color: var(--encre-4); font-style: italic }
.vt-prendre { font: 400 11.5px var(--f-txt); padding: 6px 12px; border-radius: 5px; cursor: pointer;
  background: var(--plaque); color: var(--encre-2); border: 1px solid var(--filet) }
.vt-prendre:hover:not(:disabled) { border-color: var(--m-clair); color: var(--encre) }
.vt-prendre:disabled { opacity: .6; cursor: wait }

/* ═══ EN DIRECT — LA GRILLE DE VIGNETTES ══════════════════════════════════
   C'est la vue par défaut : voir les écrans, tous, d'un coup d'œil. Elle est
   instantanée parce qu'elle LIT des photos déjà prises — la lenteur d'avant
   venait de la capture à l'ouverture, plus de l'affichage. */
.vt-vues { margin: 0 2px 14px }
.vt-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 13px; margin: 0 2px 26px }
.vt-t { background: var(--plaque); border: 1px solid var(--filet); border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column; position: relative }
.vt-t::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--filet); z-index: 1 }
.vt-t[data-ton="bon"]::before { background: var(--l-bon) }
.vt-t[data-ton="attente"]::before { background: var(--l-attente) }
.vt-t[data-ton="mal"]::before { background: var(--l-mal) }
.vt-th { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 9px 11px 7px }
.vt-th b { font: 500 12.5px var(--f-num); color: var(--encre) }
/* Le seul chiffre mis en avant sur la vignette : les gens qui attendent. */
.vt-att { font: 500 17px var(--f-num); color: var(--encre-4); font-variant-numeric: tabular-nums; line-height: 1 }
.vt-att[data-chaud] { color: var(--l-bon) }
.vt-iz { position: relative; background: var(--noir); line-height: 0; min-height: 96px }
.vt-iz img { display: block; width: 100%; height: auto }
.vt-f { position: absolute; right: 7px; bottom: 7px; font: 400 9.5px var(--f-num);
  text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border-radius: 3px;
  background: color-mix(in srgb, var(--noir) 84%, transparent); color: var(--encre-4);
  border: 1px solid var(--filet); line-height: 1.3 }
.vt-f[data-vieux] { color: var(--l-attente); border-color: color-mix(in srgb, var(--l-attente) 34%, transparent) }
.vt-sans { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  padding: 26px 12px; line-height: 1.4; font-size: 11px; color: var(--encre-4); font-style: italic; text-align: center }
.vt-tf { display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 8px 11px 9px; border-top: 1px solid var(--filet); font-size: 11px; color: var(--encre-3) }
.vt-tf[data-mal] { color: var(--l-mal) }
.vt-tfd { font: 400 10.5px var(--f-num); color: var(--encre-4) }

/* ═══ PHONEFARM — les iPhone du robot (12/10/2026) ═══════════════════════════
   Cinquante téléphones : une ligne chacun. Les colonnes de chiffres sont
   étroites et fixes ; « ce qu'il fait » prend ce qui reste, et se coupe — la
   phrase entière est dans l'infobulle. Les cartes (`.mc-c`, celles des
   machines) ne servent qu'aux téléphones qu'il faut regarder. */
.pf-g { grid-template-columns: minmax(104px, .9fr) 96px minmax(120px, 2.4fr) 54px 60px 50px 60px 70px }
.pf-e { grid-template-columns: 104px minmax(84px, .8fr) minmax(96px, 1fr) 84px minmax(120px, 2fr) 64px }
.pf-nom { display: flex; align-items: center; gap: 8px; white-space: nowrap }
/* La place dans le rack, dite par la table « PhoneFarm » : petite, après le nom. */
.pf-empl { font: 400 10px var(--f-num); color: var(--encre-4); letter-spacing: .04em }
.pf-pt { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; background: var(--l-inconnu) }
.pf-pt[data-ton="mal"] { background: var(--l-mal) }
.pf-pt[data-ton="attente"] { background: var(--l-attente) }
.pf-pt[data-ton="bon"] { background: var(--l-bon) }
.pf-mot { font: 400 10.5px var(--f-num); text-transform: uppercase; letter-spacing: .06em;
  color: var(--encre-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.pf-mot[data-ton="mal"] { color: var(--l-mal) }
.pf-mot[data-ton="attente"] { color: var(--l-attente) }
.pf-mot[data-ton="bon"] { color: var(--l-bon) }
.pf-quoi { font-size: 12px; color: var(--encre-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.pf-quoi[data-alerte]::after { content: ' ⚠'; color: var(--l-attente) }
.pf-quoi[data-alerte="mal"]::after { color: var(--l-mal) }
.pf-c { text-align: right }
/* Une valeur dite bien avant le dernier battement : elle s'efface, et l'infobulle dit son âge. */
.pf-c[data-vieux] { opacity: .55; font-style: italic }
.pf-c[data-mal] { color: var(--l-mal) }
.pf-phrase { margin: 0; font-size: 12.8px; line-height: 1.5; color: var(--encre-2) }
.pf-alerte { margin: 0 0 6px; font-size: 11.5px; color: var(--l-attente) }
.pf-alerte[data-ton="mal"] { color: var(--l-mal) }
.pf-lignes { margin: 0 2px 26px }
/* Un tableau suivi d'un autre titre : sans cette marge le titre colle à la dernière ligne. */
.pf-t { margin-bottom: 26px }
@media (max-width: 1080px) {
  .pf-g { grid-template-columns: minmax(96px, 1fr) 92px 50px 64px }
  .pf-g > :nth-child(3), .pf-g > :nth-child(4), .pf-g > :nth-child(5), .pf-g > :nth-child(7) { display: none }
  .pf-e { grid-template-columns: 96px minmax(84px, 1fr) 84px }
  .pf-e > :nth-child(2), .pf-e > :nth-child(5), .pf-e > :nth-child(6) { display: none }
}
