﻿:root {
  color-scheme: light;
  --page: #f6f7f4;
  --surface: #fcfcfb;
  --ink: #0f1a1f;
  --ink-2: #4d5a5e;
  --muted: #7d8a8c;
  --hair: #e1e4dd;
  --axis: #c3c7bd;
  --accent: #127a5a;
  --mint: #72e0ba;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --good: #0ca30c;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* En-tête */
.topbar { position: sticky; top: 0; z-index: 10; background: #101a22; color: #edf2f2; border-bottom: 1px solid #23333d; }
.topbar-inner { max-width: 1140px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--mint); color: #10251e; }
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font-weight: 760; font-size: 17px; letter-spacing: -.5px; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a { padding: 7px 11px; border-radius: 8px; color: #b8c6c9; font-size: 13.5px; font-weight: 600; }
.nav a:hover { background: #1b2a33; color: #fff; text-decoration: none; }
.nav a.active { background: #1d3a33; color: var(--mint); }

/* Contenu */
main { padding-block: 26px 48px; min-height: 70vh; }
/* Bandeaux fixes : réserver leur hauteur */
body.with-bars { padding-top: calc(var(--rs-top-h) + env(safe-area-inset-top, 0px)); padding-bottom: calc(var(--rs-bottom-h) + env(safe-area-inset-bottom, 0px)); }
body.with-bars h2[id], body.with-bars [id] { scroll-margin-top: calc(var(--rs-top-h) + 12px); }
.crumbs { margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.crumbs a { color: var(--ink-2); }
h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: -.8px; line-height: 1.15; }
.lede { margin: 0 0 24px; max-width: 760px; color: var(--ink-2); }
h2 { margin: 34px 0 12px; font-size: 19px; letter-spacing: -.3px; }
h2 small { margin-left: 8px; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: 12.5px; margin-top: 8px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { padding: 14px 16px; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); }
.tile-label { color: var(--ink-2); font-size: 13px; }
.tile-value { margin-top: 2px; font-size: 26px; font-weight: 650; letter-spacing: -.5px; }
.tile-sub { color: var(--muted); font-size: 12px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.card { display: block; padding: 18px; border: 1px solid var(--hair); border-radius: 14px; background: var(--surface); color: var(--ink); transition: border-color .15s, transform .15s; }
.card:hover { border-color: #9fcab9; text-decoration: none; transform: translateY(-1px); }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.card .card-figure { margin-top: 12px; font-size: 13px; color: var(--muted); }
.card .card-figure b { color: var(--ink); font-size: 18px; }

.panel { padding: 18px 18px 14px; border: 1px solid var(--hair); border-radius: 14px; background: var(--surface); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.panel h3 { margin: 0 0 12px; font-size: 15px; }

/* Formulaires */
.search-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 200px; font-size: 12.5px; color: var(--ink-2); }
.field input, .field select { padding: 10px 12px; border: 1px solid #cdd3cb; border-radius: 9px; background: #fff; font: inherit; font-size: 15px; color: var(--ink); }
.field input:focus, .field select:focus { outline: 2px solid #9fd8c2; border-color: var(--accent); }
.btn { padding: 10px 16px; border: 0; border-radius: 9px; background: var(--accent); color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.btn:hover { background: #0e654a; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { padding: 6px 12px; border: 1px solid #cdd3cb; border-radius: 20px; background: #fff; color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Tableaux */
.table-wrap { overflow-x: auto; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { position: sticky; top: 0; padding: 10px 12px; background: #f0f2ed; color: var(--ink-2); font-size: 12px; font-weight: 650; text-align: left; white-space: nowrap; }
td { padding: 9px 12px; border-top: 1px solid var(--hair); vertical-align: top; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:hover td { background: #f6f9f5; }
.time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.time s { color: var(--muted); margin-right: 4px; }
.time .late { color: #b45309; font-weight: 650; }

.cc { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 4px; background: #e6ebe5; color: var(--ink-2); font-size: 11px; font-weight: 700; line-height: 18px; }
.op-dot { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: var(--c); vertical-align: 1px; }
.platform { display: inline-block; min-width: 24px; padding: 0 6px; border-radius: 4px; background: #1f3a4d; color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.platform.changed { background: #c2410c; }

.status { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.status i { font-style: normal; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 800; }
.status.good i { background: var(--good); }
.status.warning i { background: var(--warning); color: #0b0b0b; }
.status.serious i { background: var(--serious); }
.status.critical i { background: var(--critical); }
.status.neutral i { background: #9aa4a5; }

/* Graphiques */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--hair); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover + .bar-group rect, .chart .hit:focus + .bar-group rect { opacity: .82; }
.chart .hit:focus { outline: none; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 10px; color: var(--ink-2); font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
details.table-view { margin-top: 10px; font-size: 13px; }
details.table-view summary { color: var(--accent); cursor: pointer; }
details.table-view .table-wrap { margin-top: 8px; max-height: 320px; }

.bars { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 10px; align-items: center; font-size: 13.5px; }
.bar-row .bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.bar-track { position: relative; display: flex; align-items: center; gap: 8px; }
.bar-fill { height: 12px; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--c, var(--series-1)); }
.bar-value { color: var(--ink-2); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.tooltip { position: fixed; z-index: 50; padding: 8px 10px; border-radius: 8px; background: #0f1a1f; color: #fff; font-size: 12.5px; line-height: 1.4; pointer-events: none; box-shadow: 0 6px 20px #0003; max-width: 260px; }
.tooltip b { display: block; margin-bottom: 2px; }
.tooltip .row { display: flex; align-items: center; gap: 6px; }
.tooltip .row i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

.run { margin-top: 18px; }
.run-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; margin-bottom: 10px; }
.run-head h3 { margin: 0; font-size: 17px; }
.stops td.passed { color: var(--muted); }
.stops tr.skipped td { color: var(--critical); text-decoration: line-through; }

.tabs { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: #e9ede7; width: fit-content; margin-bottom: 10px; }
.tabs button { padding: 7px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; }
.tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #0001; }

.empty { padding: 26px; color: var(--muted); text-align: center; }
.loading { opacity: .55; transition: opacity .2s; }
.list-inline { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.list-inline a { display: inline-block; padding: 6px 11px; border: 1px solid var(--hair); border-radius: 20px; background: var(--surface); font-size: 13.5px; color: var(--ink); }
.list-inline a:hover { border-color: #9fcab9; text-decoration: none; }
.stations-strip { display: flex; flex-wrap: wrap; gap: 6px 0; padding: 0; margin: 0; list-style: none; font-size: 13.5px; }
.stations-strip li:not(:last-child)::after { content: "→"; margin: 0 8px; color: var(--muted); }
.foot { padding: 22px 0 30px; border-top: 1px solid var(--hair); color: var(--muted); font-size: 12.5px; }

/* Comptes, contributions, FAQ */
.link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; }
.link:hover { text-decoration: underline; }
.btn-s { padding: 6px 12px; font-size: 13px; }
.btn-danger { background: var(--critical); }
.btn-danger:hover { background: #a92b2b; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.form-grid h3, .form-grid .wide { grid-column: 1 / -1; margin: 0; }
.field textarea { padding: 10px 12px; border: 1px solid #cdd3cb; border-radius: 9px; font: inherit; resize: vertical; }
.form-msg { margin-left: 8px; font-size: 13px; }
.form-msg.err { color: var(--critical); }
.form-msg.ok { color: #0a7a0a; }
.teaser { margin: 14px 0; border-color: #e7d29a; background: #fffaf0; }
.teaser p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.faq { display: grid; gap: 10px; }
.faq-item summary { font-weight: 650; cursor: pointer; }
.faq-item p { margin: 10px 0 0; color: var(--ink-2); }
.wiki { margin-bottom: 18px; overflow: hidden; }
.wiki p { margin: 0 0 6px; color: var(--ink-2); }
.wiki-img { float: right; max-width: 160px; margin: 0 0 8px 14px; border-radius: 10px; }
.alert-l { margin: 0 0 10px; padding: 10px 12px; border-left: 4px solid var(--serious); border-radius: 8px; background: #fdf1e9; color: #5a3416; font-size: 14px; }
/* Page Config */
.btn-ghost { background: #fff; color: var(--accent); border: 1px solid #b9d7c9; }
.btn-ghost:hover { background: #eef7f2; }
.cfg-tabs { margin-bottom: 14px; }
/* Accès réservé (comptes Premium, super admin) */
.premium-lock { max-width: 760px; margin: 24px auto 0; display: flex; flex-direction: column; gap: 14px; }
.premium-lock h1 { margin: 0; }
.premium-lock .lede { margin: 0; }
.lock-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: #1d3a33; color: #72e0ba; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.lock-badge::before { content: ""; width: 10px; height: 11px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 11'%3E%3Cpath d='M2 5V3.5a3 3 0 0 1 6 0V5h.5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-5a.5.5 0 0 1 .5-.5Zm1.3 0h3.4V3.5a1.7 1.7 0 0 0-3.4 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 11'%3E%3Cpath d='M2 5V3.5a3 3 0 0 1 6 0V5h.5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-5a.5.5 0 0 1 .5-.5Zm1.3 0h3.4V3.5a1.7 1.7 0 0 0-3.4 0Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.lock-list ul { margin: 8px 0 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; }
.lock-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.role-badge { display: inline-block; margin-right: 8px; padding: 2px 9px; border-radius: 99px; background: #e9ede7; color: var(--ink-2); font-size: 12px; font-weight: 700; vertical-align: 1px; }
.role-badge.premium { background: #1d3a33; color: #72e0ba; }
.role-badge.superadmin { background: #3b2a0c; color: #f3c86b; }
.role-badge.business { background: #1c2b4a; color: #8fb4ff; }
.role-badge.admin { background: #3a1d2f; color: #f0a3c8; }
.acc-roles { margin-bottom: 14px; }
.acc-roles summary { cursor: pointer; font-weight: 650; }
.acc-roles ul { margin: 10px 0 0; padding-left: 20px; }
.acc-roles li { margin: 4px 0; }
.acc-create { margin: 16px 0; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.legal { max-width: 860px; }
.legal h2 { margin-top: 28px; }
.legal p, .legal li { line-height: 1.6; }
.legal-missing { padding: 1px 6px; border-radius: 4px; background: #fdecc8; color: #7a4b00; font-size: .92em; }
.fx-views { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 20px; }
.fx-views legend { grid-column: 1 / -1; }
.fx-view-col { display: flex; flex-direction: column; gap: 6px; padding-left: 10px; border-left: 3px solid var(--k); }
.fx-view-head { display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--muted, #667); }
.fx-view-head b { color: var(--ink, inherit); font-size: 14px; margin-right: auto; }
.acc-reg { display: flex; flex-direction: column; gap: 2px; }
.acc-reg .fx-switch { margin-top: 2px; }
.acc-audit td { font-size: 13px; white-space: nowrap; }
.acc-audit td:nth-child(4) { white-space: normal; }
.acc-audit tr.alert td:nth-child(2) { color: #b42318; font-weight: 600; }
.acc-table select { padding: 5px 8px; border: 1px solid var(--hair); border-radius: 7px; font: inherit; }
.acc-pw-box { margin-top: 14px; }
/* Config › Focus */
.fx-help { margin-bottom: 16px; font-size: 13.5px; }
.fx-help summary { cursor: pointer; font-weight: 650; }
.fx-help p { margin: 8px 0 0; max-width: 75ch; }
.fx-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.fx-card { border-left: 4px solid var(--c); }
.fx-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.fx-head h2 { margin: 0; font-size: 20px; }
.fx-swatch { width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.fx-count { margin-left: auto; color: var(--muted); font-size: 13px; }
.fx-count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.fx-desc { margin: 6px 0 0; color: var(--ink-2); }
.fx-dl { display: grid; gap: 8px; margin: 12px 0 4px; }
.fx-dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.fx-dl dt { color: var(--muted); font-size: 12.5px; font-weight: 650; }
.fx-dl dd { margin: 0; min-width: 0; }
.fx-gates { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fx-gates li { display: flex; flex-direction: column; min-width: 0; max-width: 100%; padding: 5px 10px; border: 1px solid var(--hair); border-radius: 8px; font-size: 13px; }
.fx-gates li span { color: var(--muted); font-size: 12px; }
.fx-confirm { font-weight: 650; color: var(--critical); }
.fx-editor h2 { margin: 0 0 12px; font-size: 18px; }
.fx-fields { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 10px; }
.fx-wide { grid-column: 1 / -1; }
.fx-color input { height: 38px; padding: 2px; }
.fx-set { margin: 14px 0 0; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.fx-set legend { padding: 0 4px; font-weight: 650; font-size: 13px; }
.fx-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; cursor: pointer; }
.fx-gates-edit { flex-direction: column; flex-wrap: nowrap; }
.fx-gate { padding: 8px 10px; border-radius: 8px; background: var(--bg, #f4f6f2); display: flex; flex-direction: column; gap: 6px; }
.fx-gate-head { display: flex; gap: 8px; align-items: center; }
.fx-gate-head input { flex: 1; min-width: 0; padding: 6px 8px; border: 1px solid var(--hair); border-radius: 7px; font: inherit; font-weight: 650; }
.fx-stations { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fx-st { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 9px; border-radius: 14px; background: #fff; border: 1px solid var(--hair); font-size: 12.5px; }
.fx-st button { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; }
.fx-st button:hover { background: #e9ede7; color: var(--critical); }
.fx-search { position: relative; }
.fx-search input { width: 200px; max-width: 100%; padding: 5px 8px; border: 1px dashed var(--hair); border-radius: 14px; font: inherit; font-size: 12.5px; }
.fx-sugg { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; display: flex; flex-direction: column; min-width: 260px; max-width: 80vw; padding: 4px; border: 1px solid var(--hair); border-radius: 10px; background: #fff; box-shadow: 0 8px 24px #0002; }
.fx-sugg button { padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; text-align: left; font: inherit; font-size: 13px; cursor: pointer; }
.fx-sugg button:hover, .fx-sugg button:focus-visible { background: #eef3ee; }
.fx-look { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.fx-sw { width: 14px; height: 14px; border-radius: 3px; background: var(--c); }
.fx-theme { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 16px; }
.fx-switch { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; cursor: pointer; font-weight: 600; }
.fx-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fx-switch-track { position: relative; width: 44px; height: 24px; border-radius: 12px; background: #1b2a33; transition: background .2s; }
.fx-switch-track i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.fx-switch input:checked + .fx-switch-track { background: #d8b24a; }
.fx-switch input:checked + .fx-switch-track i { transform: translateX(20px); }
.fx-switch input:focus-visible + .fx-switch-track { outline: 2px solid var(--ink); outline-offset: 2px; }
.fx-colors { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.fx-colorpick { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12.5px; color: var(--muted); }
.fx-colorpick input { width: 44px; height: 34px; padding: 2px; border: 1px solid var(--hair); border-radius: 8px; background: #fff; cursor: pointer; }
.fx-colorpick span { display: flex; flex-direction: column; }
.fx-colorpick b { color: var(--ink); font-size: 13px; }
.fx-preview { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; padding: 12px 16px; border-radius: 10px; background: #0a1117; color: #e9f1f1; border-left: 4px solid var(--c); }
.fx-preview.light { background: #f3f5f2; color: #142026; border: 1px solid #d2dbd6; border-left: 4px solid var(--c); }
.fx-pv-name { font-size: 22px; font-weight: 700; margin-right: auto; }
.fx-pv-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--k); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.fx-pv-tag::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--k); }
.fx-pv-num { font-size: 28px; font-weight: 700; }
.fx-pv-num small { font-size: 13px; opacity: .7; }
@media (max-width: 600px) { .fx-dl > div { grid-template-columns: 1fr; gap: 2px; } .fx-fields { grid-template-columns: 1fr; } }
.tabs a { padding: 7px 14px; border-radius: 8px; color: var(--ink-2); font-size: 13.5px; font-weight: 650; text-decoration: none; }
.tabs a.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #0001; }
.tabs a:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.bk-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.bk-summary > div { display: flex; flex-direction: column; gap: 2px; }
.bk-summary b { font-size: 20px; font-variant-numeric: tabular-nums; }
.bk-k { color: var(--muted); font-size: 12.5px; }
.bk-table td { vertical-align: middle; }
.bk-hint { font-size: 12px; }
.bk-choices { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 10px; background: #e9ede7; width: fit-content; }
.bk-choice { position: relative; }
.bk-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bk-choice span { display: block; padding: 6px 11px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.bk-choice input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #0001; }
.bk-choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 1px; }
.bk-choice input:disabled { cursor: default; }
.bk-warn { margin-top: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--critical); color: var(--critical); background: #fdf0ef; font-size: 13.5px; }
.cfg-progress { margin-bottom: 16px; }
.cfg-bar { height: 8px; margin-top: 8px; border-radius: 4px; background: #e2e9e3; overflow: hidden; }
.cfg-bar i { display: block; height: 100%; border-radius: 4px; background: var(--good); }
.cfg-bulk { margin-bottom: 8px; }
.cfg-bulk summary { cursor: pointer; color: var(--ink-2); }
.cfg-table tr.cfg-row { cursor: pointer; }
.cfg-table tr.cfg-row:focus-visible td { outline: 2px solid #9fd8c2; outline-offset: -2px; }
.cfg-chevron { color: var(--muted); font-size: 11px; text-align: center; }
.cfg-badge { display: inline-block; padding: 0 6px; border-radius: 4px; background: #1f3a4d; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; }
.cfg-formation { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 12px; }
.cfg-radio { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid #cdd3cb; border-radius: 9px; background: #fff; cursor: pointer; font-size: 14px; }
.cfg-radio:has(input:checked) { border-color: var(--accent); background: #eef7f2; }
.cfg-total { margin-left: auto; font-weight: 700; font-size: 15px; }
.cfg-rame { display: grid; grid-template-columns: 2fr repeat(3, minmax(90px, 1fr)) 1fr; gap: 10px; margin: 0 0 10px; padding: 10px 12px 12px; border: 1px solid #cdd3cb; border-radius: 10px; background: #fff; }
.cfg-rame legend { padding: 0 6px; font-weight: 700; font-size: 13px; }
@media (max-width: 760px) { .cfg-rame { grid-template-columns: 1fr 1fr; } .cfg-rame label:first-of-type { grid-column: 1 / -1; } }
.cfg-table tr.open td { background: #eef7f2; }
.cfg-editor td { background: #f6f9f5; }
.cfg-editor-head { margin-bottom: 10px; font-size: 14px; }
.cfg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.cfg-wide { grid-column: 1 / -1; }
.cfg-services { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 8px 12px; border: 1px solid #cdd3cb; border-radius: 9px; font-size: 13.5px; }
.cfg-services legend { padding: 0 4px; color: var(--ink-2); font-size: 12.5px; }
.cfg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.cfg-pager { display: flex; justify-content: space-between; margin-top: 14px; }
.why { color: #b45309; font-size: 12.5px; font-weight: 600; }
.pill { display: inline-block; padding: 5px 11px; border-radius: 20px; background: #e6efe9; color: #2d4a40; font-size: 13px; }
tr.hl td { background: #eef7f2; font-weight: 600; }

@media (max-width: 640px) {
  h1 { font-size: 24px; }
  .topbar-inner { gap: 8px; }
  .nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .nav a { flex: 0 0 auto; }
  .tile-value { font-size: 22px; }
  .bar-row { grid-template-columns: minmax(90px, 42%) 1fr; }
}

/* ===== Fiche train (onglets Sélectionné / Passés / À venir / Statistiques) ===== */
body.has-tp { padding-bottom: 70px; }
.tp { max-width: 640px; margin: 0 auto; }
.tp-ico { width: 18px; height: 18px; flex: 0 0 auto; }
.tp-top { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.tp-back { display: inline-flex; align-items: center; gap: 2px; color: var(--ink); font-weight: 650; text-decoration: none; }
.tp-back .tp-ico { width: 16px; height: 16px; }
.tp-cat { padding: 3px 12px; border-radius: 20px; background: #3d6b94; color: #fff; font-size: 12.5px; font-weight: 700; }
.tp-top-actions { display: flex; gap: 6px; margin-left: auto; }
.tp-icon-btn { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); cursor: pointer; }
.tp-icon-btn:hover, .tp-icon-btn:focus-within { background: #e9ede7; }
.tp-icon-btn.on { color: #3d6b94; }
.tp-icon-btn.on .tp-ico path { fill: currentColor; }
.tp-cal { background: #edf0ec; }
.tp-cal input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.tp-cal input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.tp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.tp-op { color: var(--ink-2); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.tp-title { display: flex; align-items: center; gap: 10px; }
.tp-title h1 { margin: 0; font-size: 28px; letter-spacing: -.5px; }
.tp-tag { height: 26px; min-width: 34px; padding: 0 10px 0 14px; border: 0; border-radius: 4px 7px 7px 4px; background: #e3e8ee; color: var(--ink-2); font: 700 13px/26px system-ui, sans-serif; cursor: pointer;
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 9px 100%, 0 50%); }
.tp-tag:hover { background: #d4dde7; }
.tp-date { margin-top: 2px; color: var(--ink-2); font-size: 13.5px; }
.tp-status { flex: 0 0 auto; padding: 3px 10px; border-radius: 20px; background: #edf0ec; color: var(--ink-2); font-size: 12px; font-weight: 650; }
.tp-status.running { background: #e3eefa; color: #1d5ea8; }
.tp-status.arrived { background: #e6f4e6; color: #17661a; }
.tp-status.canceled { background: #fbe6e6; color: #a32424; }
.tp-toast { position: fixed; left: 50%; bottom: 130px; z-index: 1200; transform: translateX(-50%); max-width: 90vw; padding: 9px 14px; border-radius: 10px; background: #101a22; color: #fff; font-size: 13.5px; overflow-wrap: anywhere; }
.tp-card { position: relative; margin: 0 0 12px; padding: 14px 14px; border: 1px solid var(--hair); border-radius: 14px; background: #fff; box-shadow: 0 1px 4px #0000000d; }
.tp-h { margin: 0; font-size: 12.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); }
.tp-sub { color: var(--muted); font-size: 12.5px; }
.tp-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.tp-toggle { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font-size: 20px; line-height: 1; cursor: pointer; }
.tp-toggle:hover { background: #edf0ec; }
.tp-map-card { padding: 0; overflow: hidden; background: #f3f1ec; }
#train-map { height: 260px; }
#train-map .tiles-light { filter: grayscale(.9) brightness(1.06) contrast(.88); }
#train-map .leaflet-tooltip { font: 600 12px/1.3 system-ui, sans-serif; }
.tp-train-ico { color: #3d6b94; }
.tp-train-ico .tp-ico { width: 26px; height: 26px; fill: #3d6b94; stroke: #fff; stroke-width: 1.5; filter: drop-shadow(0 1px 2px #0005); }
#train-map .leaflet-top.leaflet-left { top: 48px; }
.tp-od { display: grid; grid-template-columns: 1fr 1.3fr 1fr; align-items: start; gap: 8px; }
.tp-od-end.r { text-align: right; }
.tp-lbl { color: var(--ink-2); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .03em; }
.tp-time { margin-top: 4px; font-size: 24px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.tp-time s { color: var(--muted); font-size: 15px; font-weight: 600; }
.tp-time .late, .tp-it-time .late { color: #c2410c; }
.tp-st { margin-top: 10px; font-weight: 700; font-size: 14px; }
.tp-st a { color: var(--ink); }
.tp-od-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 18px; }
.tp-dur { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 14px; background: #edf0ec; font-size: 12.5px; font-weight: 700; }
.tp-dur .tp-ico { width: 14px; height: 14px; }
.tp-track { position: relative; display: flex; align-items: center; width: 100%; max-width: 170px; }
.tp-line { flex: 1; height: 0; margin: 0 2px; border-top: 2px dotted #9aa6b3; position: relative; }
.tp-line span { position: absolute; left: 0; top: -2px; height: 2px; background: #3d6b94; }
.tp-dot { width: 10px; height: 10px; border-radius: 50%; background: #3d6b94; flex: 0 0 auto; }
.tp-dot.b { background: #fff; border: 2px solid #3d6b94; }
.tp-dot.b.done { background: #3d6b94; }
.tp-train { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #eb6834; box-shadow: 0 0 0 2px #fff; }
.tp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.tp-kpi { padding: 10px 6px; border: 1px solid var(--hair); border-radius: 12px; background: #fff; text-align: center; box-shadow: 0 1px 4px #0000000d; }
.tp-kpi .tp-ico { width: 15px; height: 15px; color: var(--ink-2); }
.tp-kpi-l { margin-top: 4px; color: var(--ink-2); font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .02em; }
.tp-kpi-v { margin-top: 2px; font-size: 14px; font-weight: 800; }
.t-good { color: var(--good); } .t-serious { color: #c2410c; } .t-critical { color: var(--critical); }
.tp-itin { list-style: none; margin: 0; padding: 0; }
.tp-itin li { display: grid; grid-template-columns: 74px 22px 1fr auto; align-items: start; gap: 6px; min-height: 46px; }
.tp-it-time { font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tp-it-time s { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.tp-it-dot { position: relative; align-self: stretch; }
.tp-it-dot::before { content: ""; position: absolute; left: 50%; top: 4px; width: 10px; height: 10px; margin-left: -6px; border: 2px solid #b6bec6; border-radius: 50%; background: #fff; z-index: 1; }
.tp-it-dot::after { content: ""; position: absolute; left: 50%; top: 18px; bottom: -4px; width: 2px; margin-left: -1px; background: #d0d6db; }
.tp-itin li:last-child .tp-it-dot::after { display: none; }
.tp-itin li.passed .tp-it-dot::before { background: #3d6b94; border-color: #3d6b94; }
.tp-itin li.passed .tp-it-dot::after { background: #3d6b94; }
.tp-itin li.skipped .tp-it-name a { text-decoration: line-through; color: var(--muted); }
.tp-it-name { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding-bottom: 10px; font-size: 14.5px; }
.tp-it-name a { color: var(--ink); }
.tp-chip { display: inline-block; padding: 1px 8px; border-radius: 8px; background: #edf0ec; color: var(--ink-2); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.tp-chip.voie { margin-top: 2px; }
.tp-chip.changed { background: #fff1d6; color: #8a5a00; }
.tp-chip.red { background: #fbe6e6; color: #a32424; }
.tp-dl { margin: 10px 0 0; }
.tp-dl div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #eef0ec; font-size: 13.5px; }
.tp-dl div:last-child { border-bottom: 0; }
.tp-dl dt { color: var(--ink-2); }
.tp-dl dd { margin: 0; font-weight: 700; text-align: right; }
.tp-bug { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--hair); border-radius: 10px; background: #f6f7f4; color: var(--ink); font-weight: 650; font-size: 13.5px; text-decoration: none; }
.tp-bug:hover { background: #eef1ec; }
.tp-bug .tp-chev, .tp-row .tp-chev { margin-left: auto; width: 16px; height: 16px; color: var(--ink-2); }
.tp-unit h3 { margin: 0 0 8px; font-size: 15px; }
.tp-unit-form { display: grid; gap: 10px; }
.tp-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.tp-unit-actions { display: flex; align-items: center; gap: 8px; }
.tp-list { padding: 12px 0 4px; }
.tp-list .tp-h { padding: 0 14px 6px; }
.tp-empty { padding: 8px 14px 12px; margin: 0; }
.tp-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid #eef0ec; color: var(--ink); text-decoration: none; }
.tp-row:first-of-type { border-top: 0; }
.tp-row:hover { background: #f6f8f5; }
.tp-row.sel { background: #f1f5fa; }
.tp-row-time { font-weight: 800; font-variant-numeric: tabular-nums; }
.tp-row-date { font-weight: 700; }
.tp-row-sel { color: var(--ink-2); font-size: 12px; }
.tp-row-pill { margin-left: auto; }
.tp-row-pill + .tp-chev { margin-left: 0 !important; }
.tp-pill { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; font-weight: 650; }
.tp-pill.good { background: #e3f4e3; color: #17661a; }
.tp-pill.warning { background: #fff3d1; color: #7a5300; }
.tp-pill.serious { background: #fde8dc; color: #9a3a0e; }
.tp-pill.critical { background: #fbe2e2; color: #a32424; }
.tp-pill.neutral { background: #edf0ec; color: var(--ink-2); }
.tp-h2 { margin: 4px 0 10px; font-size: 18px; }
.tp-h3 { margin: 0 0 8px; font-size: 16px; }
.tp-select { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 12px; padding: 0 10px; height: 38px; border: 1px solid var(--hair); border-radius: 10px; background: #fff; box-shadow: 0 1px 3px #0000000f; }
.tp-select select { border: 0; background: transparent; font: 700 13.5px system-ui, sans-serif; color: var(--ink); cursor: pointer; }
.tp-overview { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 18px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.tp-overview div { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 6px; text-align: center; }
.tp-overview div + div { border-left: 1px solid var(--hair); }
.tp-overview b { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.tp-overview b small { font-size: 14px; font-weight: 700; }
.tp-overview span { font-size: 13px; font-weight: 650; }
.tp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 18px; padding-top: 18px; border-top: 1px solid var(--hair); }
.tp-grid > section { padding: 0 18px 0 0; }
.tp-grid > section + section { padding: 0 0 0 18px; border-left: 1px solid var(--hair); }
.tp-grid-wide { grid-template-columns: 1.4fr 1fr; }
.tp-meter { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 8px; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.tp-meter-v { font-size: 12px; text-align: right; }
.tp-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: #e6eaee; overflow: hidden; }
.tp-bar i { display: block; height: 100%; border-radius: 3px; background: #1f3a4d; }
.tp-big { margin: 6px 0 2px; font-size: 22px; font-weight: 800; }
.tp-chart { margin-top: 6px; }
.tp-chart svg { width: 100%; height: auto; display: block; }
.tp-chart.empty { padding: 30px 0; color: var(--muted); font-size: 13px; text-align: center; }
.tp-records div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: center; padding: 8px 0; }
.tp-records dt { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; }
.tp-records dt i { flex: 0 0 auto; width: 16px; height: 3px; border-radius: 2px; background: var(--c); }
.tp-records dd { margin: 0; font-weight: 800; font-size: 14px; }
.tp-records dd span { color: var(--muted); font-weight: 400; }
.tp-tabbar { position: fixed; left: 0; right: 0; bottom: calc(var(--rs-bottom-h) + env(safe-area-inset-bottom, 0px)); z-index: 999; display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 640px; margin: 0 auto; padding: 4px; border: 1px solid var(--hair); border-bottom: 0; border-radius: 14px 14px 0 0; background: #fff; box-shadow: 0 -2px 10px #0000000f; }
.tp-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 10px; color: var(--ink-2); font-size: 11.5px; font-weight: 650; text-decoration: none; }
.tp-tabbar a .tp-ico { width: 19px; height: 19px; }
.tp-tabbar a:hover { background: #f1f3ef; }
.tp-tabbar a.active { color: #c2410c; background: #fdf1ea; }
@media (max-width: 640px) {
  .tp-kpis { grid-template-columns: repeat(2, 1fr); }
  .tp-overview { grid-template-columns: repeat(2, 1fr); }
  .tp-overview div:nth-child(3) { border-left: 0; }
  .tp-overview div:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .tp-grid, .tp-grid-wide { grid-template-columns: 1fr; }
  .tp-grid > section, .tp-grid > section + section { padding: 0; border-left: 0; }
  .tp-grid > section + section { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hair); }
  .tp-time { font-size: 20px; }
  .tp-itin li { grid-template-columns: 58px 20px 1fr auto; }
}
/* ===== Intelligence réseau ===== */
.ig-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 16px; }
.ig-filters .field { min-width: 170px; flex: 1 1 170px; }
.ig-note { margin-bottom: 14px; border-left: 4px solid var(--warning); }
.ig-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 16px; margin: 6px 0 26px; align-items: start; }
.ig-map-wrap { position: relative; border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; background: #e8ece6; }
#ig-map { height: 640px; }
#ig-map .ig-tiles { filter: grayscale(1) brightness(1.08) contrast(.8) opacity(.75); }
.ig-legend { position: absolute; left: 10px; bottom: 10px; z-index: 500; display: grid; gap: 4px; max-width: calc(100% - 20px); padding: 7px 10px; border-radius: 9px; background: #fffffff0; box-shadow: 0 1px 5px #0002; font-size: 12px; color: var(--ink-2); }
.ig-legend-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.ig-legend-row span { display: inline-flex; align-items: center; gap: 5px; }
.ig-legend-row i { width: 16px; height: 4px; border-radius: 2px; }
.ig-weights b { display: inline-block; width: 18px; border-radius: 4px; background: #6b7a80; }
.ig-hover { position: absolute; z-index: 600; max-width: 260px; padding: 6px 9px; border-radius: 8px; background: #101a22; color: #fff; font-size: 12.5px; pointer-events: none; }
.ig-hover .muted { color: #a9b6ba; font-size: 11.5px; }
.ig-panel { max-height: 640px; overflow: auto; padding: 16px; border: 1px solid var(--hair); border-radius: 14px; background: var(--surface); }
.ig-intro h2 { margin-top: 0; }
.ig-intro ul { padding-left: 18px; color: var(--ink-2); }
.ig-loading { padding: 30px 0; color: var(--muted); text-align: center; }
.ig-panel-head { display: flex; justify-content: space-between; gap: 10px; }
.ig-panel-head h2 { margin: 2px 0 10px; font-size: 19px; }
.ig-kicker { color: var(--muted); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .03em; }
.ig-close { flex: 0 0 auto; width: 30px; height: 30px; border: 0; border-radius: 8px; background: #edf0ec; font-size: 18px; cursor: pointer; }
.ig-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 10px; }
.ig-kpis div { padding: 9px 10px; border: 1px solid var(--hair); border-radius: 10px; background: #fff; }
.ig-kpis b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.ig-kpis span { color: var(--ink-2); font-size: 12px; }
.ig-free { margin: 0 0 6px; font-size: 13px; color: var(--ink-2); }
.ig-panel h3 { margin: 16px 0 6px; font-size: 14.5px; }
.ig-panel h3 small { color: var(--muted); font-weight: 500; font-size: 12px; }
.ig-chart .chart svg { width: 100%; height: auto; }
.ig-table td, .ig-table th { padding: 6px 8px; font-size: 13px; }
.ig-chips { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.ig-chips span { display: inline-flex; align-items: center; gap: 5px; }
.ig-chips i { width: 10px; height: 10px; border-radius: 3px; }
.ig-why { margin: 0; padding-left: 18px; font-size: 13.5px; }
.ig-why li { margin-bottom: 6px; }
.ig-why em { font-style: normal; font-weight: 650; color: var(--ink); }
.ig-markets { margin: 0; padding-left: 20px; font-size: 13px; }
.ig-markets li span { display: inline-block; max-width: calc(100% - 50px); }
.ig-markets li b { float: right; font-variant-numeric: tabular-nums; }
.ig-trains-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ig-trains-head .btn { padding: 5px 10px; font-size: 12.5px; }
.ig-trains { max-height: 420px; overflow: auto; }
.ig-trains td { font-size: 12.5px; padding: 6px 8px; }
.ig-trains .muted { font-size: 11.5px; }
tr.ig-top { cursor: pointer; }
tr.ig-top:hover td, tr.ig-top:focus td { background: #eef4fc; }
@media (max-width: 980px) {
  .ig-layout { grid-template-columns: 1fr; }
  #ig-map { height: 460px; }
  .ig-panel { max-height: none; }
}

/* Config › Messages (formulaire de contact) */
.rep-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0; }
.rep-card { margin-bottom: 12px; }
.rep-card.done { opacity: .72; }
.rep-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; }
.rep-cat { padding: 2px 9px; border-radius: 99px; background: #e7f1ec; color: #0e654a; font-weight: 650; font-size: 12px; }
.rep-cat.rep-donnees { background: #fbe6e6; color: #a32424; }
.rep-done { color: var(--good); font-weight: 600; }
.rep-meta { margin-top: 6px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.rep-msg { margin: 10px 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rep-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rep-actions a.btn { text-decoration: none; }

/* Statistiques : lien vers « Revoir une journée » */
.replay-cta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 16px; color: inherit; text-decoration: none; }
.replay-cta b { color: var(--accent); }
.replay-cta span { color: var(--muted); font-size: 13px; }
.replay-cta:hover { border-color: var(--accent); }

/* Config › Sources (santé des flux) */
.status.info i { background: #5b8fd6; }
.src-problem { margin-top: 3px; color: var(--muted); font-size: 12px; white-space: normal; }
.src-ok { color: var(--good); }
.src-degraded { color: var(--serious); }
.src-loading { color: var(--muted); }
.src-stalled { color: var(--critical); }
.src-table td { vertical-align: top; }
