/* ═══════════════════════════════════════════════════════════════════════════
   SANCTIONS CONSOLE — feuille commune aux outils A-05 (criblage) et A-06 (sources)
   ---------------------------------------------------------------------------
   Le tableau de bord (sanctions_bi.html) garde sa feuille interne : c'est une
   console plein écran avec rail de vues. Les outils sont des pages de travail
   qui défilent, avec une barre d'onglets persistante vers les trois modules.
   Même grammaire visuelle : fond nuit, cartes à coins marqués, monospace pour
   les nombres, thème clair piloté par les mêmes variables.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --bg: #04070d;
  --bg-2: #070c15;
  --sheet: #0a111d;
  --panel: #0b1421;
  --panel-2: #0f1a2a;
  --panel-3: #122033;
  --line: #182639;
  --line-2: #22344c;
  --line-3: #2d4460;
  --txt: #dce7f5;
  --txt-2: #95a8bf;
  --txt-3: #62758d;
  --txt-4: #47596f;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #a78bfa;
  --amber: #f0a24a;
  --rose: #fb7185;
  --green: #34d399;
  --cyan-08: rgba(34, 211, 238, .08);
  --cyan-18: rgba(34, 211, 238, .18);
  --cyan-glow: rgba(34, 211, 238, .35);
  --violet-08: rgba(167, 139, 250, .08);
  --amber-08: rgba(240, 162, 74, .08);
  --rose-08: rgba(251, 113, 133, .08);
  --green-08: rgba(52, 211, 153, .08);
  --shadow: 0 18px 48px rgba(0, 0, 0, .45);
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --disp: 'Space Grotesk', var(--ui);
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --r: 7px;
  --top: 58px;
}

html[data-theme="light"] {
  --bg: #eef3f9;
  --bg-2: #e6edf6;
  --sheet: #ffffff;
  --panel: #ffffff;
  --panel-2: #f7fafd;
  --panel-3: #eef4fb;
  --line: #dde6f1;
  --line-2: #cad8e8;
  --line-3: #b4c6da;
  --txt: #10233a;
  --txt-2: #44586f;
  --txt-3: #6b7d92;
  --txt-4: #93a3b6;
  --cyan: #0e8ea8;
  --blue: #1f5fbf;
  --violet: #6d4fd0;
  --amber: #a9660d;
  --rose: #c02b48;
  --green: #0e7a4d;
  --cyan-08: rgba(14, 142, 168, .08);
  --cyan-18: rgba(14, 142, 168, .18);
  --cyan-glow: rgba(14, 142, 168, .3);
  --violet-08: rgba(109, 79, 208, .08);
  --amber-08: rgba(169, 102, 13, .08);
  --rose-08: rgba(192, 43, 72, .08);
  --green-08: rgba(14, 122, 77, .08);
  --shadow: 0 16px 40px rgba(16, 35, 58, .12);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.cx {
  margin: 0;
  background:
    radial-gradient(900px 480px at 12% -12%, rgba(34, 211, 238, .10), transparent 62%),
    radial-gradient(820px 560px at 102% 106%, rgba(167, 139, 250, .09), transparent 62%),
    var(--bg);
  color: var(--txt);
  font-family: var(--ui);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
html[data-theme="light"] body.cx {
  background:
    radial-gradient(900px 480px at 12% -12%, rgba(14, 142, 168, .10), transparent 62%),
    radial-gradient(820px 560px at 102% 106%, rgba(109, 79, 208, .07), transparent 62%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code, .mono, .num { font-family: var(--mono); }
::selection { background: var(--cyan-18); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }


/* ── Barre supérieure + onglets ───────────────────────────────────────────── */
.cx-top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--top);
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--sheet) 88%, transparent);
  backdrop-filter: blur(16px);
}
.cx-top::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-18) 18%, transparent 55%);
  pointer-events: none;
}
.cx-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.cx-mark {
  width: 32px; height: 32px;
  flex: 0 0 32px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: linear-gradient(145deg, var(--panel-3), var(--panel));
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}
.cx-brand-t { display: flex; flex-direction: column; min-width: 0; }
.cx-brand-t b {
  font-family: var(--disp);
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: .01em;
  white-space: nowrap;
}
.cx-brand-t i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--txt-3);
  white-space: nowrap;
}
.cx-tabs { display: flex; align-items: stretch; gap: 2px; align-self: stretch; margin-left: 8px; }
.cx-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border-bottom: 2px solid transparent;
  color: var(--txt-3);
  font-size: 11.5px;
  font-weight: 550;
  white-space: nowrap;
}
.cx-tab .k {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--txt-4);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 3px;
}
.cx-tab:hover { color: var(--txt); background: var(--panel-2); }
.cx-tab[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: linear-gradient(180deg, transparent, var(--cyan-08));
}
.cx-tab[aria-current="page"] .k { color: var(--cyan); border-color: var(--cyan-18); }
.cx-top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cx-ibtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--txt-2);
  font-size: 10.5px;
  font-weight: 550;
  cursor: pointer;
}
.cx-ibtn:hover { border-color: var(--line-2); color: var(--txt); background: var(--panel-2); }
.cx-ibtn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.cx-ibtn.accent { color: var(--cyan); border-color: var(--cyan-18); }
.cx-ibtn .kbd {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--txt-4);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 3px;
}

/* ── Structure de page ────────────────────────────────────────────────────── */
.cx-main { max-width: 1440px; margin: 0 auto; padding: 24px 22px 46px; }
.cx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 16px; }
.cx-eyebrow {
  margin: 0 0 7px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.cx-title {
  margin: 0;
  font-family: var(--disp);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.08;
}
.cx-sub { margin: 8px 0 0; max-width: 820px; color: var(--txt-2); font-size: 12.5px; line-height: 1.65; }
.cx-sub b { color: var(--txt); font-weight: 600; }
.cx-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.cx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  color: var(--txt-3);
  font-size: 10px;
  white-space: nowrap;
}
.cx-chip b { color: var(--txt); font-family: var(--mono); font-size: 10px; font-weight: 550; }
.cx-chip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.cx-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.cx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--panel);
  color: var(--txt-2);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cx-btn:hover { background: var(--panel-2); border-color: var(--line-3); color: var(--txt); }
.cx-btn.primary { background: var(--cyan-18); border-color: var(--cyan); color: var(--cyan); }
.cx-btn.primary:hover { background: rgba(34, 211, 238, .24); }
.cx-btn.ghost { background: transparent; }
.cx-btn:disabled { opacity: .45; cursor: not-allowed; }
.cx-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ── Panneaux et cartes ───────────────────────────────────────────────────── */
.cx-panel {
  position: relative;
  margin-bottom: 15px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  overflow: hidden;
}
.cx-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 12px; height: 12px;
  border-top: 1px solid var(--cyan-18);
  border-left: 1px solid var(--cyan-18);
  pointer-events: none;
}
.cx-panel-h {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px 10px;
  border-bottom: 1px solid var(--line);
}
.cx-panel-h h2 {
  margin: 0;
  font-family: var(--disp);
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -.005em;
}
.cx-panel-h p { margin: 3px 0 0; color: var(--txt-3); font-size: 10.5px; line-height: 1.5; }
.cx-panel-h .meta {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--txt-4);
  white-space: nowrap;
}
.cx-panel-b { padding: 14px 15px; }
.cx-panel-b.flush { padding: 0; }

.cx-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 1px;
  margin-bottom: 15px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--line);
  overflow: hidden;
}
.cx-kpi { min-height: 88px; padding: 12px 13px 11px; background: var(--panel); }
.cx-kpi .l {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--txt-3);
}
.cx-kpi .v {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cx-kpi .d { margin-top: 7px; color: var(--txt-3); font-size: 10px; line-height: 1.4; }
.cx-kpi .v.cyan { color: var(--cyan); }
.cx-kpi .v.rose { color: var(--rose); }
.cx-kpi .v.violet { color: var(--violet); }
.cx-kpi .v.amber { color: var(--amber); }
.cx-kpi .v.green { color: var(--green); }


/* ── Formulaire de recherche et filtres ───────────────────────────────────── */
.cx-searchbar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--bg-2);
  transition: border-color .15s, box-shadow .15s;
}
.cx-searchbar:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-08), 0 0 24px rgba(34, 211, 238, .10);
}
.cx-searchbar svg {
  width: 18px; height: 18px;
  flex: 0 0 18px;
  fill: none; stroke: var(--cyan); stroke-width: 1.7;
}
.cx-searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--txt);
  font-family: var(--ui);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.01em;
  outline: none;
}
.cx-searchbar input::placeholder { color: var(--txt-4); font-weight: 400; }
.cx-searchbar .kbd {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--txt-4);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 5px;
}
.cx-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.cx-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cx-field > label {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt-3);
}
.cx-input, .cx-select {
  width: 100%;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-2);
  color: var(--txt);
  font-family: var(--ui);
  font-size: 11px;
  outline: none;
}
.cx-input:focus, .cx-select:focus { border-color: var(--cyan); }
.cx-select { cursor: pointer; }
.cx-range-row { display: flex; align-items: center; gap: 8px; height: 30px; }
.cx-range { flex: 1; accent-color: var(--cyan); min-width: 0; }
.cx-range-out {
  flex: 0 0 auto;
  min-width: 42px;
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
}
.cx-switches { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.cx-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel-2);
  color: var(--txt-2);
  font-size: 10.5px;
  cursor: pointer;
  user-select: none;
}
.cx-switch:hover { border-color: var(--line-3); }
.cx-switch input { accent-color: var(--cyan); margin: 0; }
.cx-switch:has(input:checked) {
  color: var(--cyan);
  border-color: var(--cyan-18);
  background: var(--cyan-08);
}
.cx-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--txt-3);
  font-size: 10.5px;
}
.cx-status b { color: var(--txt); font-family: var(--mono); font-size: 10px; }
.cx-status .sep { color: var(--line-3); }
.cx-status .right { margin-left: auto; }

/* Mode d'emploi + exemples vérifiés : répondre à « je fais quoi ici ? » avant la saisie. */
.cx-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.cx-steps li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 11px 13px;
  background: var(--panel);
  color: var(--txt-2);
  font-size: 10.5px;
  line-height: 1.5;
}
.cx-steps .n {
  flex: 0 0 18px;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border: 1px solid var(--cyan-18);
  border-radius: 50%;
  background: var(--cyan-08);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 9px;
}
.cx-steps b { color: var(--txt); font-weight: 600; }
.cx-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
}
.cx-examples .lb {
  margin-right: 2px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt-4);
}
.cx-ex {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 8px;
  border: 1px dashed var(--line-2);
  border-radius: 3px;
  background: transparent;
  color: var(--txt-2);
  font-family: var(--ui);
  font-size: 10.5px;
  cursor: pointer;
}
.cx-ex:hover, .cx-ex:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan-18);
  background: var(--cyan-08);
  outline: none;
}
.cx-ex .k {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--txt-4);
}
.cx-ex:hover .k { color: var(--cyan); }


/* ── Tableaux ─────────────────────────────────────────────────────────────── */
.cx-tbl-wrap { overflow-x: auto; }
.cx-tbl { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.cx-tbl thead th {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--txt-3);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .09em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.cx-tbl tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--txt-2);
  vertical-align: top;
}
.cx-tbl tbody tr:last-child td { border-bottom: 0; }
.cx-tbl tbody tr:hover { background: var(--panel-2); }
.cx-tbl td.num, .cx-tbl th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-tbl td.nowrap { white-space: nowrap; }
.cx-tbl .strong { color: var(--txt); font-weight: 600; }
.cx-tbl .sub { display: block; margin-top: 2px; color: var(--txt-4); font-family: var(--mono); font-size: 9px; }
.cx-tbl a { color: var(--cyan); }
.cx-tbl a:hover { text-decoration: underline; }
.cx-tbl tr.is-new td { background: var(--green-08); }
.cx-tbl tr.is-gone td { background: var(--rose-08); }

/* ── Étiquettes, notes, divers ────────────────────────────────────────────── */
.cx-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 5px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: var(--panel-2);
  color: var(--txt-3);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.cx-tag.cyan { color: var(--cyan); border-color: var(--cyan-18); background: var(--cyan-08); }
.cx-tag.green { color: var(--green); border-color: rgba(52, 211, 153, .22); background: var(--green-08); }
.cx-tag.amber { color: var(--amber); border-color: rgba(240, 162, 74, .22); background: var(--amber-08); }
.cx-tag.rose { color: var(--rose); border-color: rgba(251, 113, 133, .22); background: var(--rose-08); }
.cx-tag.violet { color: var(--violet); border-color: rgba(167, 139, 250, .22); background: var(--violet-08); }
.cx-note {
  padding: 10px 12px;
  border-left: 2px solid var(--line-3);
  background: var(--panel-2);
  color: var(--txt-2);
  font-size: 11px;
  line-height: 1.65;
}
.cx-note.cyan { border-left-color: var(--cyan); background: var(--cyan-08); }
.cx-note.amber { border-left-color: var(--amber); background: var(--amber-08); }
.cx-note.rose { border-left-color: var(--rose); background: var(--rose-08); }
.cx-note b { color: var(--txt); }
.cx-note code { color: var(--cyan); font-size: 10px; }
.cx-note .lb {
  display: block;
  margin-bottom: 3px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--txt-3);
}
.cx-empty { padding: 34px 18px; text-align: center; color: var(--txt-3); font-size: 12px; line-height: 1.7; }
.cx-empty b { color: var(--txt); }
.cx-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 22px 30px;
  border-top: 1px solid var(--line);
  color: var(--txt-4);
  font-family: var(--mono);
  font-size: 9px;
}
.cx-foot b { color: var(--txt-2); font-weight: 500; }
.cx-foot .right { margin-left: auto; }


/* ── Résultats de criblage ────────────────────────────────────────────────── */
.cx-results { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cx-hit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 14px;
  padding: 12px 14px;
  background: var(--panel);
  align-items: center;
}
.cx-hit:hover { background: var(--panel-2); }
.cx-hit-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-family: var(--disp);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--txt);
  letter-spacing: .005em;
}
.cx-hit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
  color: var(--txt-3);
  font-family: var(--mono);
  font-size: 9px;
}
.cx-hit-why {
  margin-top: 6px;
  color: var(--txt-2);
  font-size: 10.5px;
  line-height: 1.5;
}
.cx-hit-why b { color: var(--cyan); font-weight: 600; }
.cx-hit-progs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.cx-hit-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.cx-score {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.cx-score small { font-size: 9px; color: var(--txt-4); font-weight: 400; }
.cx-bar { width: 100%; height: 3px; border-radius: 2px; background: var(--panel-3); overflow: hidden; }
.cx-bar i { display: block; height: 100%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan-glow); }
.cx-hit-side .cx-btn { height: 24px; min-height: 24px; padding: 0 7px; font-size: 9px; }
.cx-hit[data-kind="name_variant"] .cx-score { color: var(--violet); }
.cx-hit[data-kind="name_variant"] .cx-bar i { background: var(--violet); }
.cx-hit[data-kind="name_partial"] .cx-score { color: var(--amber); }
.cx-hit[data-kind="name_partial"] .cx-bar i { background: var(--amber); }
.cx-hit[data-kind="address_exact"] .cx-score { color: var(--green); }

/* ── Journal / timeline ───────────────────────────────────────────────────── */
.cx-timeline { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.cx-snap {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.cx-snap:last-child { border-bottom: 0; }
.cx-snap .dot {
  width: 9px; height: 9px;
  margin-top: 5px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  background: var(--cyan-08);
  box-shadow: 0 0 10px var(--cyan-glow);
}
.cx-snap-t { font-family: var(--mono); font-size: 11px; color: var(--txt); }
.cx-snap-d { margin-top: 3px; color: var(--txt-3); font-size: 10px; }
.cx-snap-d b { color: var(--txt-2); font-family: var(--mono); font-size: 9.5px; }
.cx-snap-side { text-align: right; font-family: var(--mono); font-size: 9px; color: var(--txt-4); }
.cx-delta { font-family: var(--mono); font-size: 9px; }
.cx-delta.up { color: var(--green); }
.cx-delta.down { color: var(--rose); }
.cx-delta.flat { color: var(--txt-4); }

/* ── Branchements ─────────────────────────────────────────────────────────── */
.cx-conn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.cx-conn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-2);
}
.cx-conn-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cx-conn-h b { font-size: 11.5px; color: var(--txt); }
.cx-conn-url {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--txt-3);
  word-break: break-all;
  line-height: 1.5;
}
.cx-conn-d { color: var(--txt-3); font-size: 10px; line-height: 1.5; }
.cx-conn-actions { display: flex; gap: 6px; margin-top: 2px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .cx-top { flex-wrap: wrap; padding: 8px 14px; gap: 10px; }
  .cx-tabs { order: 3; width: 100%; margin-left: 0; border-top: 1px solid var(--line); }
  .cx-tab { flex: 1; justify-content: center; padding: 9px 6px; }
  .cx-top-right { margin-left: auto; }
  .cx-main { padding: 18px 14px 34px; }
  .cx-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cx-actions { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .cx-brand-t i { display: none; }
  .cx-tab .k { display: none; }
  .cx-hit { grid-template-columns: 1fr; }
  .cx-hit-side { flex-direction: row; align-items: center; justify-content: space-between; }
  .cx-score { font-size: 16px; }
  .cx-bar { width: 80px; }
  .cx-foot .right { margin-left: 0; }
}
@media print {
  .cx-top, .cx-actions, .cx-searchbar, .cx-filters, .cx-foot { display: none; }
  body.cx { background: #fff; color: #000; }
  .cx-panel { break-inside: avoid; }
}


/* ── Toast ────────────────────────────────────────────────────────────────── */
.cx-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  transform: translate(-50%, 14px);
  padding: 9px 14px;
  border: 1px solid var(--cyan-18);
  border-radius: 4px;
  background: var(--panel-3);
  color: var(--txt);
  box-shadow: var(--shadow);
  font-size: 11.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s, transform .16s;
}
.cx-toast.on { opacity: 1; transform: translate(-50%, 0); }
.cx-toast[data-kind="err"] { border-color: rgba(251, 113, 133, .4); color: var(--rose); }


/* Mobile : le bandeau d'onglets A-06 doit pouvoir rétrécir et défiler,
   sinon sa largeur intrinsèque élargit toute la page. */
@media (max-width: 900px) {
  .cx-tabs {
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cx-tabs::-webkit-scrollbar { display: none; }
  .cx-tab { padding: 0 8px; }
}