/* POK Console — le tableau de strips.
   Monde : la salle de contrôle aérien. Un tableau sombre, des baies, et dans
   les baies des strips de papier imprimé, chacun dans un porte-strip dont la
   couleur dit le type. Le rouge est réservé à l'ACHAT RÉEL : il n'apparaît
   nulle part ailleurs, pas même sur un bouton d'arrêt ou une erreur. */

@font-face { font-family: "Barlow"; src: url("fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  /* Le tableau : graphite bleuté, éclairage tamisé de salle de contrôle. */
  --tableau: #14181c;
  --baie: #1a1f24;
  --rail: #262d34;
  --rail-fort: #36404a;
  --texte: #d3dae0;
  --texte-2: #93a0ab;
  --texte-3: #6c7884;

  /* Les strips : papier imprimé, encre noire, cases tracées à l'encre. */
  --encre: #15191d;
  --encre-2: #47515b;
  --filet: rgb(21 25 29 / 0.22);

  /* Porte-strips : une couleur par type, et rien d'autre ne les emprunte. */
  --scan-porte: #6d7a70;   --scan-papier: #e3e6df;
  --papier-porte: #2d6cb0; --papier-papier: #e2e9f2;
  --achat-porte: #c8281a;  --achat-papier: #f6e1dc;

  /* Voyants. */
  --marche: #3dbb6a;
  --alerte: #e0a23a;
  --eteint: #56626d;

  --sans: "Barlow", system-ui, sans-serif;
  --cond: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --r: 3px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--tableau); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(var(--tableau), var(--tableau)) padding-box;
  color: var(--texte);
  font: 400 15px/1.45 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #2d6cb0; color: #fff; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid #8fb8e6; outline-offset: 2px; border-radius: 2px; }
* { scrollbar-color: var(--rail-fort) transparent; scrollbar-width: thin; }

/* ---- Rail du haut ------------------------------------------------------- */

.rail {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 24px;
  height: 52px;
  border-bottom: 1px solid var(--rail);
  background: #101317;
  position: sticky;
  top: 0;
  z-index: 10;
}
.indicatif {
  font: 700 21px/1 var(--cond);
  letter-spacing: 0.06em;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.indicatif small { font: 500 12px/1 var(--mono); color: var(--texte-3); letter-spacing: 0; }
.rail nav { display: flex; gap: 4px; flex: 1; }
.rail nav a {
  font: 600 15px/1 var(--cond);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--texte-2);
  padding: 9px 12px;
  border-radius: var(--r);
}
.rail nav a:hover { color: var(--texte); background: var(--baie); }
.rail nav a[aria-current="page"] { color: var(--texte); box-shadow: inset 0 -2px 0 var(--texte); border-radius: 0; }
.operateur { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--texte-2); }
.operateur form { margin: 0; }

/* ---- Boutons ------------------------------------------------------------ */

.bouton {
  appearance: none;
  font: 600 14px/1 var(--cond);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--texte);
  background: var(--rail);
  border: 1px solid var(--rail-fort);
  border-radius: var(--r);
  padding: 10px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 120ms ease-out, border-color 120ms ease-out;
}
.bouton:hover { background: var(--rail-fort); border-color: #4a5662; }
.bouton:disabled { opacity: 0.4; cursor: not-allowed; }
.bouton.discret { background: transparent; border-color: transparent; color: var(--texte-2); padding: 8px 10px; }
.bouton.discret:hover { color: var(--texte); background: var(--baie); }
.bouton.plein { background: var(--texte); color: var(--tableau); border-color: var(--texte); }
.bouton.plein:hover { background: #fff; }
.bouton svg { width: 15px; height: 15px; }

/* ---- Page --------------------------------------------------------------- */

main { padding: 28px 24px 64px; max-width: 1480px; margin: 0 auto; }
h1 { font: 700 30px/1.1 var(--cond); letter-spacing: 0.01em; margin: 0; }
h2 { font: 700 19px/1.2 var(--cond); letter-spacing: 0.03em; text-transform: uppercase; margin: 0; }
.annonce {
  margin: 0 0 20px;
  padding: 10px 14px;
  border: 1px solid var(--rail-fort);
  border-radius: var(--r);
  background: var(--baie);
  font-size: 14px;
}

/* ---- Poste backtest : le strip fixe en tête de tableau ------------------ */

.poste {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  margin-bottom: 36px;
  background: var(--baie);
  border: 1px solid var(--rail);
  border-radius: var(--r);
}
.poste h2 { font-size: 22px; text-transform: none; letter-spacing: 0.01em; }
.poste p { margin: 4px 0 0; color: var(--texte-2); font-size: 14px; max-width: 70ch; }

/* ---- Baies -------------------------------------------------------------- */

.baie { margin-bottom: 32px; }
.plaque {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 0 0 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--rail);
}
.plaque .etape { font: 600 13px/1 var(--mono); color: var(--texte-3); }
.plaque h2 { display: flex; align-items: center; gap: 10px; }
.plaque h2::before { content: ""; width: 10px; height: 18px; border-radius: 1px; background: var(--porte); }
.plaque p { margin: 0; color: var(--texte-2); font-size: 14px; }
.plaque .compte { margin-left: auto; font: 500 13px/1 var(--mono); color: var(--texte-3); }
.baie-vide {
  padding: 16px 18px;
  border: 1px dashed var(--rail-fort);
  border-radius: var(--r);
  color: var(--texte-3);
  font-size: 14px;
}

.t-scan   { --porte: var(--scan-porte);   --papier: var(--scan-papier); }
.t-papier { --porte: var(--papier-porte); --papier: var(--papier-papier); }
.t-achat  { --porte: var(--achat-porte);  --papier: var(--achat-papier); }

/* ---- Le strip ----------------------------------------------------------- */

.strips { display: grid; gap: 6px; }
.strip {
  display: grid;
  grid-template-columns: 34px minmax(210px, 1.3fr) minmax(170px, 0.9fr) minmax(220px, 2fr) minmax(110px, 0.6fr) 136px 44px;
  min-height: 66px;
  background: var(--papier);
  color: var(--encre);
  border-radius: 2px;
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.5), 0 3px 8px -2px rgb(0 0 0 / 0.45);
  text-decoration: none;
  position: relative;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 160ms ease-out;
}
a.strip:hover { transform: translateX(6px); box-shadow: 0 1px 0 rgb(0 0 0 / 0.5), 0 8px 18px -6px rgb(0 0 0 / 0.6); }
.strip > * { padding: 9px 12px; border-left: 1px solid var(--filet); min-width: 0; }
.strip > :first-child { border-left: 0; }

/* Le porte-strip : la tranche colorée, le type imprimé dans le sens de la tranche. */
.porte {
  background: var(--porte);
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0 !important;
  border-radius: 2px 0 0 2px;
}
.porte span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 700 12px/1 var(--cond);
  letter-spacing: 0.14em;
}

.case-lbl { display: block; font: 500 10.5px/1 var(--cond); letter-spacing: 0.1em; text-transform: uppercase; color: var(--encre-2); margin-bottom: 5px; }
.indic { font: 700 22px/1.05 var(--cond); letter-spacing: 0.01em; display: block; }
.indic-id { font: 400 11.5px/1.3 var(--mono); color: var(--encre-2); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voyant-l { display: flex; align-items: center; gap: 8px; font: 600 15px/1.1 var(--sans); }
.voyant { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--eteint); box-shadow: inset 0 0 0 1.5px rgb(0 0 0 / 0.25); }
.voyant.on { background: var(--marche); box-shadow: 0 0 0 3px rgb(61 187 106 / 0.22); }
.voyant.ko { background: var(--alerte); box-shadow: 0 0 0 3px rgb(224 162 58 / 0.25); }
.sous { font: 400 12px/1.3 var(--mono); color: var(--encre-2); margin-top: 4px; display: block; }
.route { font: 500 14px/1.35 var(--sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mono-case { font: 500 14px/1.2 var(--mono); }
.fleche { display: grid; place-items: center; color: var(--encre-2); }
.fleche svg { width: 18px; height: 18px; }

/* Un strip d'achat réel s'annonce deux fois : la tranche rouge, et une bande
   imprimée sous l'indicatif avec le wallet et la mise maximale. */
.t-achat .indic::after {
  content: "ACHAT RÉEL";
  display: inline-block;
  margin-left: 8px;
  padding: 2px 5px;
  font: 700 11px/1 var(--cond);
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--achat-porte);
  border-radius: 2px;
  vertical-align: 4px;
}

/* Entrée des strips : poussés dans la baie, une seule fois au chargement. */
@media (prefers-reduced-motion: no-preference) {
  .strips.entree .strip { animation: pousse 420ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .strips.entree .strip:nth-child(2) { animation-delay: 50ms; }
  .strips.entree .strip:nth-child(3) { animation-delay: 100ms; }
  .strips.entree .strip:nth-child(4) { animation-delay: 150ms; }
  @keyframes pousse { from { transform: translateX(28px); opacity: 0; } }
}

/* ---- Fiche d'un bot ----------------------------------------------------- */

.entete-bot { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--texte-2); font-size: 14px; }
.entete-bot a { text-decoration: none; color: var(--texte-2); }
.entete-bot a:hover { color: var(--texte); }
.strip.grand { grid-template-columns: 40px minmax(260px, 1.4fr) minmax(190px, 1fr) minmax(260px, 2.2fr) minmax(130px, 0.7fr) 150px; min-height: 84px; margin-bottom: 22px; }
.strip.grand .indic { font-size: 28px; }

.poste-bot { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.console {
  background: #0b0d0f;
  border: 1px solid var(--rail);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  min-height: 560px;
}
.console-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rail);
  font: 500 12.5px/1 var(--mono);
  color: var(--texte-3);
}
.console-tete strong { font: 600 13px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--texte-2); }
.console pre {
  margin: 0;
  padding: 12px 14px 16px;
  font: 400 12.5px/1.55 var(--mono);
  color: #b9c3cc;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  max-height: 68vh;
  flex: 1;
}
.console pre .l-err { color: var(--alerte); }
.console pre .l-ok { color: #8fd3a6; }

.panneau { display: grid; gap: 18px; }
.bloc { background: var(--baie); border: 1px solid var(--rail); border-radius: var(--r); padding: 16px 18px; }
.bloc h2 { font-size: 15px; margin-bottom: 12px; color: var(--texte-2); }
.commandes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.commandes form { margin: 0; display: contents; }
.commandes .bouton { justify-content: center; min-width: 0; padding: 10px 8px; }
.poste-bot > *, .panneau > * { min-width: 0; }
.verrou { grid-column: 1 / -1; display: grid; gap: 6px; margin-bottom: 4px; }
.verrou p { margin: 0; font-size: 13px; color: var(--texte-2); }
dl.fiche { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
dl.fiche dt { color: var(--texte-3); font: 500 12px/1.6 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; }
dl.fiche dd { margin: 0; }
dl.fiche dd.mono { font: 400 13px/1.5 var(--mono); }
.desc { margin: 0 0 14px; font-size: 14px; color: var(--texte-2); line-height: 1.5; }
.historique { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.historique time { font: 400 12px/1 var(--mono); color: var(--texte-3); margin-right: 8px; }
.vide { color: var(--texte-3); font-size: 13px; margin: 0; }

/* ---- Résultats papier -------------------------------------------------- */

.resultats { background: var(--baie); border: 1px solid var(--rail); border-radius: var(--r); padding: 16px 18px; margin-bottom: 22px; }
.res-tete { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.res-tete h2 { font-size: 15px; color: var(--texte-2); }
.res-tete p { margin: 0; font-size: 13px; color: var(--texte-3); }
dl.compteurs { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--rail); border: 1px solid var(--rail); border-radius: var(--r); overflow: hidden; }
dl.compteurs > div { background: #161b20; padding: 10px 14px; }
dl.compteurs dt { font: 500 11px/1 var(--cond); letter-spacing: 0.1em; text-transform: uppercase; color: var(--texte-3); margin-bottom: 7px; }
dl.compteurs dd { margin: 0; font: 600 22px/1.1 var(--cond); color: var(--texte); font-variant-numeric: tabular-nums; }
dl.compteurs .fort dd { font-size: 24px; }
dl.compteurs .scelle { grid-column: span 3; }
dl.compteurs .scelle dd { font: 500 14px/1.4 var(--sans); color: var(--alerte); }
.pos { color: #6fd39a; }
.neg { color: var(--alerte); }
.historique-papier { margin-top: 14px; }
.historique-papier summary { cursor: pointer; font: 600 13px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--texte-2); padding: 6px 0; }
.table-defile { overflow-x: auto; max-height: 420px; overflow-y: auto; margin-top: 8px; }
.historique-papier table { width: 100%; border-collapse: collapse; font-size: 13px; }
.historique-papier th { position: sticky; top: 0; background: var(--baie); text-align: left; font: 600 11.5px/1.2 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--texte-3); padding: 7px 10px; border-bottom: 1px solid var(--rail-fort); }
.historique-papier td { padding: 7px 10px; border-bottom: 1px solid var(--rail); white-space: nowrap; }
.historique-papier .n { text-align: right; }
.historique-papier .mono { font: 400 12.5px/1.3 var(--mono); }
.historique-papier .attenue { color: var(--texte-3); }
.historique-papier a { text-decoration: none; }
.historique-papier a:hover { text-decoration: underline; }
.historique-papier .st-refuse td, .historique-papier .st-rejete td { color: var(--texte-3); }

/* ---- Recette d'un bot (formulaire) -------------------------------------- */

.intro-form { margin: 0 0 22px; color: var(--texte-2); font-size: 14px; max-width: 80ch; }
.erreurs { border: 1px solid var(--alerte); border-radius: var(--r); padding: 12px 16px; margin-bottom: 20px; color: #f0c47a; font-size: 14px; }
.erreurs ul { margin: 6px 0 0; padding-left: 18px; }
.recette { display: grid; gap: 26px; max-width: 1100px; }
.baie-form .plaque { margin-bottom: 14px; }
.grille-champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 18px; margin-top: 14px; }
.grille-champs[hidden], [data-source][hidden], [data-type][hidden] { display: none; }
.grille-champs > div { display: contents; }
.champ.large { grid-column: 1 / -1; }
.champ .unite { color: var(--texte-3); letter-spacing: 0.04em; }
.champ .aide { font: 400 12px/1.35 var(--sans); letter-spacing: 0; text-transform: none; color: var(--texte-3); }
textarea, select, input[type=url] {
  font: 400 14px/1.4 var(--sans); color: var(--texte); background: #0f1215;
  border: 1px solid var(--rail-fort); border-radius: var(--r); padding: 10px 12px; width: 100%;
}
textarea { font-family: var(--mono); font-size: 13px; resize: vertical; }
textarea:focus, select:focus, input[type=url]:focus { outline: none; border-color: #8fb8e6; box-shadow: 0 0 0 3px rgb(143 184 230 / 0.18); }
.choix-source, .choix-type { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.carte-source, .carte-type {
  display: grid; grid-template-columns: 8px 1fr; gap: 12px; align-items: stretch; cursor: pointer;
  background: var(--baie); border: 1px solid var(--rail); border-radius: var(--r); padding: 12px 14px 12px 0; overflow: hidden;
  transition: border-color 120ms ease-out, background 120ms ease-out;
}
.carte-source input, .carte-type input { position: absolute; opacity: 0; pointer-events: none; }
.carte-source .porte-mini { background: var(--rail-fort); }
.carte-type .porte-mini { background: var(--porte, var(--rail-fort)); }
.carte-source b, .carte-type b { display: block; font: 700 16px/1.2 var(--cond); letter-spacing: 0.02em; margin-bottom: 4px; }
.carte-source small, .carte-type small { color: var(--texte-2); font-size: 13px; line-height: 1.4; }
.carte-source:hover, .carte-type:hover { border-color: var(--rail-fort); }
.carte-source:has(input:checked) { background: var(--papier-papier); color: var(--encre); border-color: var(--papier-papier); }
.carte-source:has(input:checked) .porte-mini { background: var(--papier-porte); }
.carte-source:has(input:checked) small { color: var(--encre-2); }
.carte-type:has(input:checked) { background: var(--papier); color: var(--encre); border-color: var(--papier); }
.carte-type:has(input:checked) small { color: var(--encre-2); }
.carte-source:has(input:focus-visible), .carte-type:has(input:focus-visible) { outline: 2px solid #8fb8e6; outline-offset: 2px; }
.carte-type.inactive { cursor: not-allowed; opacity: 0.55; }
.pied-form { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding-top: 8px; border-top: 1px solid var(--rail); }
.coche { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--texte-2); }
.actions-tableau { display: flex; justify-content: flex-end; margin: -8px 0 18px; }

/* ---- Formulaires -------------------------------------------------------- */

label.champ { display: grid; gap: 6px; font: 500 12px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--texte-2); }
input[type=text], input[type=password] {
  font: 400 15px/1.2 var(--sans);
  color: var(--texte);
  background: #0f1215;
  border: 1px solid var(--rail-fort);
  border-radius: var(--r);
  padding: 10px 12px;
  width: 100%;
  caret-color: #8fb8e6;
}
input:focus { outline: none; border-color: #8fb8e6; box-shadow: 0 0 0 3px rgb(143 184 230 / 0.18); }
input[type=checkbox] { accent-color: var(--papier-porte); width: 16px; height: 16px; }

/* ---- Identification ----------------------------------------------------- */

.ident { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.ident-carte { width: min(460px, 100%); }
.ident .strip { grid-template-columns: 34px 1fr; min-height: 0; margin-bottom: 18px; }
.ident .strip .indic { font-size: 26px; }
.ident form { display: grid; gap: 14px; }
.ident .erreur { margin: 0; padding: 10px 12px; border: 1px solid var(--alerte); border-radius: var(--r); color: #f0c47a; font-size: 14px; }

/* ---- Administration ----------------------------------------------------- */

.grille-admin { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
table.habilitations { width: 100%; border-collapse: collapse; font-size: 14px; }
.habilitations th { font: 600 12px/1.2 var(--cond); letter-spacing: 0.06em; text-transform: uppercase; color: var(--texte-3); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rail-fort); vertical-align: bottom; }
.habilitations td { padding: 10px; border-bottom: 1px solid var(--rail); vertical-align: middle; }
.habilitations th.c, .habilitations td.c { text-align: center; }
.habilitations .nom { font: 700 17px/1 var(--cond); letter-spacing: 0.02em; }
.habilitations .inactif .nom { color: var(--texte-3); text-decoration: line-through; }
.habilitations .actions { display: flex; gap: 2px; justify-content: flex-end; flex-wrap: wrap; }
.habilitations form { margin: 0; }
.habilitations .col-achat { color: #f0a49b; }
.mdp-genere { border: 1px solid var(--papier-porte); background: #14202d; border-radius: var(--r); padding: 14px 16px; margin-bottom: 20px; }
.mdp-genere code { font: 600 17px/1 var(--mono); color: #fff; user-select: all; }
.journal-audit { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; font-size: 13px; }
.journal-audit li { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rail); }
.journal-audit time { font: 400 12px/1.5 var(--mono); color: var(--texte-3); }
.journal-audit b { font-weight: 600; }
.journal-audit .det { color: var(--texte-2); }

/* ---- Petits écrans ------------------------------------------------------ */

@media (max-width: 1100px) {
  .strip { grid-template-columns: 30px minmax(0, 1.4fr) minmax(0, 1fr) 40px; }
  .strip > .c-route, .strip > .c-salon, .strip > .c-activite { display: none; }
  .strip.grand { grid-template-columns: 34px minmax(0, 1.4fr) minmax(0, 1fr); }
  .strip.grand > .c-route, .strip.grand > .c-salon, .strip.grand > .c-activite { display: none; }
  .poste-bot, .grille-admin { grid-template-columns: 1fr; }
  dl.compteurs .scelle { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  main { padding: 18px 16px 48px; }
  .rail { gap: 10px; padding: 0 12px; }
  .rail nav a { padding: 9px 7px; font-size: 14px; }
  .operateur .bouton.discret { padding: 8px 6px; }
  .indicatif small, .operateur .qui { display: none; }
  .poste { grid-template-columns: 1fr; }
  .plaque { flex-wrap: wrap; }
  .plaque p { flex-basis: 100%; }
  .strip { grid-template-columns: 26px minmax(0, 1fr) minmax(0, 0.9fr); }
  .strip > .fleche { display: none; }
  .indic { font-size: 19px; }
  .habilitations .masque-mobile { display: none; }
}
