/* ORACLE-BDBV Data Hub — feuille de style unique (thèmes clair et sombre). */
:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --surface-3: #eef0f4;
  --border: #e1e4ea;
  --border-strong: #cdd2db;
  --text: #141a26;
  --text-2: #4a5263;
  --text-3: #6b7385;
  --brand: #1c2f5e;
  --brand-2: #243d78;
  --brand-ink: #ffffff;
  --accent: #2a78d6;
  --accent-soft: #e6f0fc;
  --good: #11813a;
  --good-soft: #e5f4ea;
  --warning: #9a6200;
  --warning-soft: #fdf2d9;
  --critical: #c42b2b;
  --critical-soft: #fbe7e7;
  --info: #256abf;
  --info-soft: #e8f0fb;
  --neutral-soft: #eef0f4;
  --chart-grid: #e7e9ee;
  --chart-axis: #9aa1ae;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --series-6: #008300;
  --series-7: #4a3aa7;
  --series-8: #e34948;
  --focus: #2a78d6;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --radius: 10px;
  --sidebar-w: 256px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111318;
    --surface: #1a1d24;
    --surface-2: #20242c;
    --surface-3: #282c36;
    --border: #2d323d;
    --border-strong: #3b4150;
    --text: #eef0f4;
    --text-2: #b7bcc8;
    --text-3: #8e95a4;
    --brand: #16213f;
    --brand-2: #1f2d55;
    --accent: #3987e5;
    --accent-soft: #1b2b44;
    --good: #4cc27a;
    --good-soft: #17301f;
    --warning: #e0a53a;
    --warning-soft: #33280f;
    --critical: #ef6b6b;
    --critical-soft: #3a1b1b;
    --info: #6aa6ee;
    --info-soft: #1a2738;
    --neutral-soft: #262a33;
    --chart-grid: #2a2f39;
    --chart-axis: #6e7686;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
  --series-4: #c98500;
  --series-5: #d55181;
  --series-6: #008300;
  --series-7: #9085e9;
  --series-8: #e66767;
    --series-4: #c98500;
    --series-5: #d55181;
    --series-6: #008300;
    --series-7: #9085e9;
    --series-8: #e66767;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111318;
  --surface: #1a1d24;
  --surface-2: #20242c;
  --surface-3: #282c36;
  --border: #2d323d;
  --border-strong: #3b4150;
  --text: #eef0f4;
  --text-2: #b7bcc8;
  --text-3: #8e95a4;
  --brand: #16213f;
  --brand-2: #1f2d55;
  --accent: #3987e5;
  --accent-soft: #1b2b44;
  --good: #4cc27a;
  --good-soft: #17301f;
  --warning: #e0a53a;
  --warning-soft: #33280f;
  --critical: #ef6b6b;
  --critical-soft: #3a1b1b;
  --info: #6aa6ee;
  --info-soft: #1a2738;
  --neutral-soft: #262a33;
  --chart-grid: #2a2f39;
  --chart-axis: #6e7686;
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: 22px; font-weight: 650; }
h2 { font-size: 16px; font-weight: 620; }
h3 { font-size: 14px; font-weight: 620; }
p { margin: 0 0 8px; }
small, .small { font-size: 12px; }
.muted { color: var(--text-3); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- structure ---- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); flex: 0 0 var(--sidebar-w); background: var(--brand); color: #dfe5f3; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; }
.brand img { width: 38px; height: auto; background: #fff; border-radius: 8px; padding: 3px; }
.brand strong { display: block; font-size: 15px; letter-spacing: .2px; }
.brand span { display: block; font-size: 11.5px; color: #aab5d1; }
.nav { padding: 6px 10px 16px; flex: 1; }
.nav-group { margin-top: 14px; }
.nav-group > p { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #8f9cbe; margin: 0 8px 4px; font-weight: 600; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; color: #dfe5f3; font-size: 13.5px; }
.nav a:hover { background: rgba(255,255,255,.07); text-decoration: none; }
.nav a.active { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }
.nav a .count { margin-left: auto; background: #c0272d; color: #fff; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 0 7px; line-height: 18px; }
.nav svg { width: 16px; height: 16px; flex: 0 0 16px; opacity: .85; }
.sidebar-foot { padding: 12px 18px 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 11.5px; color: #8f9cbe; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.topbar .spacer { flex: 1; }
.topbar .menu-btn { display: none; }
.lock-pill { background: var(--critical-soft); color: var(--critical); border-radius: 20px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.user-chip { display: flex; align-items: center; gap: 8px; color: var(--text); }
.user-chip .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.user-chip small { display: block; color: var(--text-3); line-height: 1.1; }
.icon-btn { background: none; border: 1px solid var(--border); border-radius: 8px; height: 34px; min-width: 34px; display: inline-grid; place-items: center; color: var(--text-2); cursor: pointer; position: relative; padding: 0 8px; }
.icon-btn:hover { background: var(--surface-2); text-decoration: none; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .dot { position: absolute; top: -4px; right: -4px; background: #c0272d; color: #fff; font-size: 10px; border-radius: 9px; padding: 0 5px; line-height: 16px; font-weight: 700; }
.content { padding: 22px 24px 48px; max-width: 1440px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .lead { color: var(--text-2); margin-top: 4px; max-width: 760px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 600; margin-bottom: 4px; }
.breadcrumb { font-size: 12.5px; color: var(--text-3); margin-bottom: 6px; }

/* ---- blocs ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card, .card + .grid, .grid + .card, .grid + .grid { margin-top: 16px; }
.grid > .card { margin-top: 0; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; flex-wrap: wrap; }
.card-head .sub { color: var(--text-3); font-size: 12.5px; }
.card-head .tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-body { padding: 4px 16px 16px; }
.card-body.flush { padding: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.stat { padding: 14px 16px; }
.stat .label { color: var(--text-2); font-size: 12.5px; }
.stat .value { font-size: 26px; font-weight: 650; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .value small { font-size: 13px; color: var(--text-3); font-weight: 500; }
.stat .foot { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.stat.critical .value { color: var(--critical); }
.stat.good .value { color: var(--good); }
.stat a { color: inherit; }
.hero { font-size: 48px; font-weight: 650; line-height: 1; }
.meter { height: 8px; background: var(--accent-soft); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.meter.good > span { background: var(--good); }
.meter.warning > span { background: var(--warning); }
.meter.critical > span { background: var(--critical); }

/* ---- badges / alertes ---- */
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 20px; padding: 1px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 20px; }
.badge-neutral { background: var(--neutral-soft); color: var(--text-2); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-good { background: var(--good-soft); color: var(--good); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-critical { background: var(--critical-soft); color: var(--critical); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.alert { border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; border: 1px solid transparent; display: flex; gap: 10px; align-items: flex-start; }
.alert strong { display: block; }
.alert-success { background: var(--good-soft); color: var(--good); border-color: color-mix(in srgb, var(--good) 25%, transparent); }
.alert-error { background: var(--critical-soft); color: var(--critical); border-color: color-mix(in srgb, var(--critical) 25%, transparent); }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 25%, transparent); }
.alert-info { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.alert .alert-text { color: var(--text); }
.banner-state { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.banner-state.OK { border-left: 4px solid var(--good); }
.banner-state.VIGILANCE { border-left: 4px solid var(--warning); }
.banner-state.PAUSE { border-left: 4px solid var(--critical); background: var(--critical-soft); }

/* ---- tableaux ---- */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 600; background: var(--surface-2); white-space: nowrap; }
tbody tr:hover td { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.table-compact td, .table-compact th { padding: 6px 10px; }
.kv { display: grid; grid-template-columns: minmax(140px, 38%) 1fr; gap: 6px 14px; font-size: 13.5px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; }
.empty { padding: 28px 16px; text-align: center; color: var(--text-3); }

/* ---- formulaires ---- */
.form { display: grid; gap: 12px; }
.form-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
label.field { display: grid; gap: 4px; font-size: 12.5px; color: var(--text-2); font-weight: 550; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], select, textarea {
  font: inherit; font-size: 14px; font-weight: 400; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 7px; padding: 7px 10px; width: 100%; min-height: 36px;
}
textarea { min-height: 90px; resize: vertical; }
input[type=file] { font: inherit; font-size: 13px; }
.hint { font-size: 12px; color: var(--text-3); font-weight: 400; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 13.5px; font-weight: 600; border-radius: 7px; padding: 7px 14px; min-height: 36px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn-primary { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn-primary:hover { background: var(--brand); }
.btn-danger { background: var(--critical); border-color: var(--critical); color: #fff; }
.btn-danger:hover { filter: brightness(.95); background: var(--critical); }
.btn-sm { font-size: 12.5px; padding: 3px 10px; min-height: 28px; }
.btn-link { background: none; border: none; color: var(--accent); padding: 0; min-height: 0; font-weight: 500; }
.btn-link:hover { background: none; text-decoration: underline; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.filters label.field { min-width: 140px; }
.filters .btn { align-self: flex-end; }
.inline-form { display: inline; }
details.disclosure > summary { cursor: pointer; color: var(--accent); font-size: 13px; list-style: none; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::before { content: "▸ "; }
details.disclosure[open] > summary::before { content: "▾ "; }

/* ---- onglets ---- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--text-2); border-bottom: 2px solid transparent; font-weight: 550; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }
.tabs a .n { color: var(--text-3); font-weight: 500; margin-left: 4px; }

/* ---- fiche participant ---- */
.p-header { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 16px; }
.p-id { font-size: 24px; font-weight: 700; font-family: var(--mono); }
.p-facts { display: flex; flex-wrap: wrap; gap: 18px; }
.p-facts div { font-size: 12.5px; color: var(--text-3); }
.p-facts strong { display: block; color: var(--text); font-size: 14px; }
.timeline { display: flex; gap: 6px; flex-wrap: wrap; }
.tl-item { flex: 1 1 110px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: var(--surface-2); min-width: 110px; }
.tl-item .code { font-weight: 700; }
.tl-item .when { font-size: 12px; color: var(--text-3); }
.symptom-grid td, .symptom-grid th { text-align: center; padding: 6px 8px; font-size: 12.5px; }
.symptom-grid th:first-child, .symptom-grid td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); }
.cell-yes { background: var(--critical-soft); color: var(--critical); font-weight: 700; border-radius: 4px; }
.cell-no { color: var(--text-3); }
.cell-good { background: var(--good-soft); color: var(--good); font-weight: 700; border-radius: 4px; }
.diff-old { background: var(--critical-soft); color: var(--critical); text-decoration: line-through; padding: 0 4px; border-radius: 3px; }
.diff-new { background: var(--good-soft); color: var(--good); padding: 0 4px; border-radius: 3px; }

/* ---- matrice CRF ---- */
.matrix th, .matrix td { text-align: center; padding: 6px 4px; font-size: 12px; }
.matrix th:first-child, .matrix td:first-child { text-align: left; padding-left: 12px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.mx { display: inline-grid; place-items: center; min-width: 28px; height: 24px; border-radius: 5px; font-weight: 700; font-size: 11.5px; }
.mx-done { background: var(--good-soft); color: var(--good); }
.mx-late { background: var(--warning-soft); color: var(--warning); }
.mx-due { background: var(--accent-soft); color: var(--accent); }
.mx-overdue { background: var(--critical-soft); color: var(--critical); }
.mx-na { color: var(--text-3); }
.mx-up { color: var(--text-3); background: var(--surface-3); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--text-2); padding: 10px 16px; border-top: 1px solid var(--border); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---- graphiques ---- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--text-3); font-size: 13px; font-family: var(--font); }
.chart .grid-line { stroke: var(--chart-grid); stroke-width: 1; }
.chart .axis-line { stroke: var(--chart-axis); stroke-width: 1; }
.chart .ref-line { stroke: var(--critical); stroke-width: 1; stroke-dasharray: 4 3; }
.chart .hit { fill: transparent; cursor: default; }
.chart .label-strong { fill: var(--text); font-weight: 600; font-size: 14px; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin: 0 0 6px; }
.chart-legend span { display: inline-flex; gap: 6px; align-items: center; }
.chart-legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.tooltip { position: fixed; z-index: 100; pointer-events: none; background: var(--text); color: var(--surface); font-size: 12px; padding: 6px 9px; border-radius: 6px; max-width: 280px; box-shadow: var(--shadow); white-space: pre-line; }
.hbar { display: grid; grid-template-columns: 210px 1fr 48px; gap: 8px; align-items: center; font-size: 13px; padding: 4px 0; }
.hbar .track { height: 14px; background: transparent; position: relative; }
.hbar .fill { height: 14px; background: var(--series-1); border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---- divers ---- */
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 9px 16px; border-bottom: 1px solid var(--border); display: flex; gap: 10px; align-items: flex-start; }
.list-plain li:last-child { border-bottom: 0; }
.list-plain .meta { margin-left: auto; color: var(--text-3); font-size: 12px; white-space: nowrap; }
.thread { display: grid; gap: 10px; }
.msg { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: var(--surface-2); }
.msg .who { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.pagination { display: flex; gap: 6px; padding: 12px 16px; align-items: center; }
.split { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.code-block { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px; font-family: var(--mono); font-size: 12px; white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; }

/* ---- pages sans menu ---- */
.bare { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(160deg, #1c2f5e 0%, #16213f 60%, #10182f 100%); }
.bare-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: 14px; padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.bare-card.wide { max-width: 640px; }
.bare-logo { display: block; width: 240px; max-width: 80%; margin: 0 auto 14px; }
.bare-card h1 { text-align: center; font-size: 19px; margin-bottom: 4px; }
.bare-card .sub { text-align: center; color: var(--text-3); margin-bottom: 18px; font-size: 13px; }
.bare-foot { color: #9fb0d6; font-size: 12px; text-align: center; margin-top: 16px; }

/* ---- impression ---- */
@media print {
  .sidebar, .topbar, .no-print, .filters, .actions { display: none !important; }
  .content { padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
  body { background: #fff; }
}

/* ---- responsive ---- */
@media (max-width: 1200px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s ease; }
  body.nav-open .sidebar { box-shadow: 0 0 40px rgba(0,0,0,.35); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 25; }
  .topbar { padding: 10px 16px; }
  .topbar .menu-btn { display: inline-grid; }
  .content { padding: 16px 16px 40px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .user-chip .who { display: none; }
}
@media (max-width: 560px) {
  .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hbar { grid-template-columns: 110px 1fr 40px; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: 6px; }
}
a.card, a.card:hover { color: inherit; text-decoration: none; display: block; }

/* Diagnostic d'installation */
.diag-title { font-size: 14px; margin: 6px 0 8px; }
.diag { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; }
.diag li { display: grid; grid-template-columns: 14px minmax(120px, 190px) 1fr; gap: 10px; align-items: start; padding: 9px 12px; font-size: 13px; }
.diag li + li { border-top: 1px solid var(--border); }
.diag-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; background: var(--good, #1a7f4b); }
.diag li.ko .diag-dot { background: var(--critical, #c62828); }
.diag li.warn .diag-dot { background: var(--warning, #b7791f); }
.diag-label { font-weight: 600; }
.diag-detail { color: var(--text-2); overflow-wrap: anywhere; }
.diag li.ko .diag-detail { color: var(--text); }
@media (max-width: 560px) { .diag li { grid-template-columns: 14px 1fr; } .diag-detail { grid-column: 2; } }

/* Évolution clinique J0 → J28 */
.evo-wrap { overflow-x: auto; border-top: 1px solid var(--border); }
.evo-wrap:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.evo-grid { border-collapse: separate; border-spacing: 0; font-size: 12px; min-width: 100%; }
.evo-grid th, .evo-grid td { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 7px 4px; text-align: center; min-width: 46px; vertical-align: middle; line-height: 1.25; }
.evo-grid thead th { background: var(--surface-2); color: var(--text-2); font-size: 11.5px; font-weight: 650; position: sticky; top: 0; z-index: 1; }
.evo-grid thead th span { display: block; font-weight: 400; color: var(--text-3); font-size: 10.5px; }
.evo-grid th[scope="row"] { position: sticky; left: 0; z-index: 2; background: var(--surface); text-align: left; min-width: 170px; max-width: 190px; font-weight: 600; font-size: 12.5px; padding-left: 14px; }
.evo-grid thead th:first-child { left: 0; z-index: 3; text-align: left; padding-left: 14px; }
.evo-grid small { display: block; font-size: 10.5px; font-weight: 500; }
.evo-grid a { text-decoration: none; }
.evo-grid .is-today { background: var(--accent-soft); }
.evo-grid thead th.is-today { color: var(--accent); }
.evo-grid .is-death { background: var(--critical-soft); }
.evo-empty { color: var(--text-3); }
.evo-no { color: var(--text-3); }
.evo-yes, .evo-pos { display: inline-block; color: var(--critical); background: var(--critical-soft); font-weight: 700; border-radius: 4px; padding: 1px 5px; }
.evo-ok, .evo-neg { display: inline-block; color: var(--good); background: var(--good-soft); font-weight: 700; border-radius: 4px; padding: 1px 5px; }
.evo-warn { display: inline-block; color: var(--warning); background: var(--warning-soft); font-weight: 700; border-radius: 4px; padding: 1px 5px; }
.evo-temp { color: var(--text-3); margin-top: 2px; }
.evo-temp.hot { color: var(--critical); font-weight: 700; animation: evo-pulse 1.6s ease-in-out infinite; }
@keyframes evo-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .evo-temp.hot { animation: none; } }
.evo-stage { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 5px; border-radius: 4px; background: var(--neutral-soft); color: var(--text-2); }
.evo-stage.stage-wet { background: var(--warning-soft); color: var(--warning); }
.evo-stage.stage-critical { background: var(--critical-soft); color: var(--critical); }
.evo-stage.stage-recovering { background: var(--good-soft); color: var(--good); }
.evo-marker { display: block; font-size: 10.5px; font-weight: 650; color: var(--info); white-space: nowrap; }
.evo-marker.death { color: var(--critical); }
.evo-marker.good { color: var(--good); }
.evo-source a { font-size: 11px; }
.evo-dup { color: var(--warning); font-weight: 700; }
.evo-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.evo-today-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--accent-soft); border: 1px solid var(--accent); vertical-align: -2px; }
.evo-soap { white-space: normal; max-width: 900px; line-height: 1.5; }
@media print { .evo-wrap { overflow: visible; } .evo-temp.hot { animation: none; } }
.evo-grid tbody th[scope="row"] { text-transform: none; letter-spacing: 0; color: var(--text); }
.evo-grid thead th { text-transform: none; letter-spacing: 0; }
.evo-grid .is-after { background: repeating-linear-gradient(135deg, transparent 0 5px, var(--surface-3) 5px 6px); }
.evo-grid thead th.is-after { color: var(--text-3); }
.evo-after-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--border-strong); vertical-align: -2px; background: repeating-linear-gradient(135deg, transparent 0 3px, var(--border-strong) 3px 4px); }
.evo-grid .evo-ap { margin-left: 2px; font-size: 9px; font-weight: 700; color: var(--info); }
.evo-source a { white-space: nowrap; }
.evo-grid td, .evo-grid thead th:not(:first-child) { width: 54px; min-width: 54px; max-width: 64px; }
.evo-marker { white-space: normal; line-height: 1.15; }
@media (max-width: 700px) {
  .evo-grid th[scope="row"], .evo-grid thead th:first-child { min-width: 118px; max-width: 128px; font-size: 11.5px; padding-left: 10px; }
}
.card-body .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }

/* Carte RDC — 26 provinces, site ORACLE-BDBV clignotant à Bunia */
.drc-map { display: block; width: 100%; height: auto; max-height: 620px; margin: 0 auto;
  --drc-fill-1: #e3f3f9; --drc-fill-2: #bfe2ee; --drc-stroke: #7cc8df; --drc-site: #d99a1e; --drc-site-fill: #f6e2b5;
  --drc-name: #173049; --drc-cap: #4f6b80; --drc-halo: #ffffff; --drc-box: #10233f; --drc-box-text: #ffffff; --drc-box-sub: #9fdcec; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .drc-map {
  --drc-fill-1: #0e5f82; --drc-fill-2: #2f9fbd; --drc-stroke: #5ed0e7; --drc-site: #f1c678; --drc-site-fill: #7a6030;
  --drc-name: #e2f7fb; --drc-cap: #a9dbe6; --drc-halo: #03080b; --drc-box: #071015; --drc-box-text: #e9f8fb; --drc-box-sub: #8fd7e5; } }
:root[data-theme="dark"] .drc-map {
  --drc-fill-1: #0e5f82; --drc-fill-2: #2f9fbd; --drc-stroke: #5ed0e7; --drc-site: #f1c678; --drc-site-fill: #7a6030;
  --drc-name: #e2f7fb; --drc-cap: #a9dbe6; --drc-halo: #03080b; --drc-box: #071015; --drc-box-text: #e9f8fb; --drc-box-sub: #8fd7e5; }
.drc-map .drc-stop1 { stop-color: var(--drc-fill-1); }
.drc-map .drc-stop2 { stop-color: var(--drc-fill-2); }
.drc-map .drc-glow { fill: none; stroke: var(--drc-stroke); stroke-width: 5; opacity: .22; }
.drc-map .drc-prov { stroke: var(--drc-stroke); stroke-width: 1.15; stroke-linejoin: round; transition: filter .15s; }
.drc-map .drc-prov:hover { filter: brightness(1.06) saturate(1.2); }
.drc-map .drc-prov.is-site { stroke: var(--drc-site); stroke-width: 2.4; fill: var(--drc-site-fill); fill-opacity: .55; }
.drc-map .drc-label { font-family: var(--font); text-anchor: middle; pointer-events: none; paint-order: stroke; }
.drc-map .drc-label text, .drc-map .drc-bunia { paint-order: stroke; stroke: var(--drc-halo); stroke-width: 3px; stroke-linejoin: round; }
.drc-map .drc-name { fill: var(--drc-name); font-size: 10.5px; font-weight: 700; }
.drc-map .drc-cap { fill: var(--drc-cap); font-size: 7.7px; font-weight: 600; }
.drc-map .drc-cap-dot { fill: var(--drc-cap); stroke: var(--drc-halo); stroke-width: 1.5px; }
.drc-map .drc-site { font-family: var(--font); }
.drc-map .drc-bunia { fill: var(--drc-site); font-size: 9.5px; font-weight: 800; }
.drc-map .drc-site-line { fill: none; stroke: var(--drc-site); stroke-width: 1.4; stroke-dasharray: 3 3; }
.drc-map .drc-site-dot { fill: var(--drc-site); stroke: var(--drc-halo); stroke-width: 2; animation: drc-blink 1.2s ease-in-out infinite; }
.drc-map .drc-site-ring { fill: none; stroke: var(--drc-site); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: drc-pulse 2.4s ease-out infinite; }
.drc-map .drc-site-ring2 { animation-delay: 1.2s; }
.drc-map .drc-site-box { fill: var(--drc-box); fill-opacity: .94; stroke: var(--drc-site); stroke-opacity: .8; }
.drc-map .drc-site-kicker { fill: var(--drc-site); font-size: 7px; font-weight: 800; letter-spacing: 1px; }
.drc-map .drc-site-title { fill: var(--drc-box-text); font-size: 11px; font-weight: 800; }
.drc-map .drc-site-place { fill: var(--drc-box-sub); font-size: 8px; font-weight: 700; }
@keyframes drc-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes drc-pulse { 0% { opacity: .95; transform: scale(.6); } 75%, 100% { opacity: 0; transform: scale(2.6); } }
@media (prefers-reduced-motion: reduce) { .drc-map .drc-site-dot, .drc-map .drc-site-ring { animation: none; } .drc-map .drc-site-ring2 { display: none; } }
.map-card .card-body { padding: 8px 16px 12px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 12.5px; color: var(--text-2); }
.map-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #d99a1e; margin-right: 6px; vertical-align: -1px; box-shadow: 0 0 0 3px rgba(217,154,30,.25); }
/* Fond de carte des pages de connexion */
.bare { position: relative; overflow: hidden; }
.bare::before { content: ""; position: absolute; inset: 0; background: url("../img/drc-map.svg") center / min(1100px, 120vw) auto no-repeat; opacity: .16; pointer-events: none; }
.bare > div { position: relative; }

/* Carte de la RDC en fond de toutes les pages */
.app-map { position: fixed; top: 0; right: 0; bottom: 0; left: var(--sidebar-w); z-index: 0; pointer-events: none;
  background: url("../img/drc-map.svg") center 55% / min(1150px, 94%) auto no-repeat; opacity: .13; }
.main > :not(.app-map):not(.topbar) { position: relative; z-index: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-map { opacity: .2; } }
:root[data-theme="dark"] .app-map { opacity: .2; }
@media (max-width: 900px) { .app-map { left: 0; background-size: 135% auto; background-position: 70% 40%; } }
@media print { .app-map { display: none; } }
/* Cartes légèrement translucides pour laisser deviner la carte */
.card { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cap-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.cap-group { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px 12px; margin: 0; }
.cap-group legend { font-weight: 700; font-size: 13px; padding: 0 6px; color: var(--text-2); }
.cap-group .cap { align-items: flex-start; padding: 5px 0; font-weight: 400; }
.cap-group .cap input { margin-top: 2px; flex: 0 0 auto; }
.cap-group .cap-sensitive span { color: var(--text); }

/* Administration → Apparence */
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.preset { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer; font-size: 12.5px; }
.preset:hover, .preset.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.preset .sw { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.color-row { display: flex; align-items: center; gap: 10px; }
.color-row input[type=color] { width: 54px; height: 36px; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; }
.image-field { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); margin-top: 10px; }
.image-field img { max-height: 48px; max-width: 160px; border-radius: 6px; border: 1px solid var(--border); background: repeating-conic-gradient(#e6e8ec 0 25%, #fff 0 50%) 50% / 12px 12px; }
.image-field input[type=file] { grid-column: 1 / -1; font-size: 13px; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.appearance-side { position: sticky; top: 76px; }
.preview { --pv-brand: var(--brand); --pv-accent: var(--accent); display: grid; grid-template-columns: 42% 1fr; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; min-height: 190px; font-size: 11px; }
.pv-side { background: var(--pv-brand); color: #fff; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.pv-side strong { font-size: 12px; } .pv-side small { opacity: .75; margin-bottom: 8px; }
.pv-mark { width: 18px; height: 18px; border-radius: 5px; background: rgba(255,255,255,.85); }
.pv-item { padding: 4px 6px; border-radius: 5px; opacity: .85; } .pv-item.on { background: rgba(255,255,255,.16); opacity: 1; font-weight: 700; }
.pv-main { background: var(--bg); padding: 12px; }
.pv-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.pv-card span { font-size: 18px; font-weight: 700; } .pv-card a { color: var(--pv-accent); font-weight: 600; }
.pv-card button { align-self: flex-start; background: var(--pv-brand); color: #fff; border: 0; border-radius: 6px; padding: 5px 10px; font-size: 11px; }
@media (max-width: 1200px) { .appearance-side { position: static; } }

/* Laboratoire : résultats par participant */
.lab-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.lab-tabs a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 13px; text-decoration: none; }
.lab-tabs a.on { background: var(--brand-2); border-color: var(--brand-2); color: #fff; font-weight: 600; }
.lab-wrap { overflow-x: auto; border-top: 1px solid var(--border); }
.lab-grid { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 13px; }
.lab-grid th, .lab-grid td { padding: 8px 10px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lab-grid thead th { background: var(--surface-2); font-size: 12px; font-weight: 650; position: sticky; top: 0; z-index: 1; }
.lab-grid thead th span { display: block; font-weight: 400; font-size: 11px; color: var(--text-3); }
.lab-grid th[scope="row"], .lab-grid thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--surface); text-align: left; min-width: 180px; font-weight: 600; }
.lab-grid thead th:first-child { background: var(--surface-2); z-index: 3; }
.lab-grid td:nth-child(2) { text-align: left; }
.lab-grid .lab-meta th, .lab-grid .lab-meta td { background: var(--surface-2); font-size: 12px; }
.lab-high, .lab-low, .lab-crit, .lab-pos, .lab-neg { display: inline-block; padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.lab-high { background: var(--warning-soft); color: var(--warning); }
.lab-low { background: var(--info-soft); color: var(--info); }
.lab-crit, .lab-pos { background: var(--critical-soft); color: var(--critical); }
.lab-neg { background: var(--good-soft); color: var(--good); }
.lab-grid th { text-transform: none; letter-spacing: 0; }
.lab-grid tbody th[scope="row"] { color: var(--text); font-size: 13px; }

/* ---- Discussions (évolution clinique, panneau de droite) ---- */
.evo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; margin-top: 16px; }
.evo-main { min-width: 0; }
.evo-main > .card:first-child { margin-top: 0; }
.disc { position: sticky; top: 70px; min-width: 0; }
.disc-card { display: flex; flex-direction: column; max-height: calc(100vh - 86px); overflow: hidden; }
.disc-card .card-head { border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.disc-card .card-head h2 { display: flex; align-items: center; gap: 8px; flex: 1; }
.disc-card h3 { font-size: 15px; margin: 0 0 4px; }
.disc-total { font-size: 11.5px; font-weight: 650; border-radius: 20px; padding: 1px 8px; background: var(--neutral-soft); color: var(--text-2); }
.disc-total.has-unread { background: var(--accent); color: #fff; }
.disc-note { font-size: 12px; line-height: 1.45; color: var(--text-2); background: var(--info-soft); border-bottom: 1px solid var(--border); padding: 9px 14px; }
.disc-note strong { color: var(--text); }
.disc-you { display: inline-block; margin-left: 4px; color: var(--good); font-weight: 650; }
.disc-view { padding: 12px 14px; overflow-y: auto; min-height: 0; }
.disc-view[hidden], .disc-card [hidden] { display: none !important; }
.disc-filter { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; padding: 5px 10px; margin-bottom: 10px; }
.disc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.disc-item-btn { display: grid; gap: 3px; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; cursor: pointer; }
.disc-item-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.disc-item-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.disc-item.is-unread .disc-item-btn { border-left: 3px solid var(--accent); }
.disc-item.is-closed .disc-item-btn { opacity: .72; }
.disc-item-top { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-3); }
.disc-tag { font-weight: 700; font-family: var(--mono); color: var(--brand-2); background: var(--accent-soft); border-radius: 5px; padding: 0 6px; }
.disc-topic { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disc-state { font-weight: 600; color: var(--text-3); background: var(--neutral-soft); border-radius: 10px; padding: 0 7px; }
.disc-unread { font-weight: 700; color: #fff; background: var(--accent); border-radius: 10px; min-width: 20px; text-align: center; padding: 0 6px; }
.disc-item-title { font-size: 13.5px; line-height: 1.3; }
.disc-item-preview { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disc-item-foot, .disc-item-admin { font-size: 11.5px; color: var(--text-3); }
.disc-item-admin { font-style: italic; }
.disc-empty { font-size: 13px; color: var(--text-2); margin: 4px 0; }
.disc-back { margin-bottom: 6px; }
.disc-form { display: grid; gap: 10px; }
.disc-row { display: grid; grid-template-columns: 1fr 110px; gap: 8px; }
.disc-people { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px 10px; margin: 0; min-width: 0; }
.disc-people legend { font-size: 12.5px; color: var(--text-2); font-weight: 550; padding: 0 4px; }
.disc-search { width: 100%; margin-bottom: 6px; }
.disc-people-list { max-height: 180px; overflow-y: auto; display: grid; gap: 2px; }
.disc-person { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.disc-person:hover { background: var(--surface-2); }
.disc-person small { display: block; font-size: 11.5px; color: var(--text-3); }
.disc-person input { flex: none; }
.disc-avatar { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 700; background: var(--accent-soft); color: var(--brand-2); }
.disc-actions { display: flex; justify-content: flex-end; gap: 8px; }
.disc-error { font-size: 12.5px; color: var(--critical); background: var(--critical-soft); border-radius: 6px; padding: 6px 9px; margin: 6px 0 0; }
.disc-thread { display: flex; flex-direction: column; gap: 8px; overflow: hidden; padding-bottom: 10px; }
.disc-thread-head { border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.disc-thread-head p { margin: 2px 0; }
.disc-members { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px !important; }
.disc-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; padding: 1px 8px 1px 2px; }
.disc-chip .disc-avatar { width: 20px; height: 20px; font-size: 9.5px; }
.disc-tools { display: flex; gap: 6px; margin-top: 8px; }
.disc-invite { border: 1px solid var(--border); border-radius: 8px; padding: 8px; display: grid; gap: 6px; }
.disc-messages { list-style: none; margin: 0; padding: 2px 2px 4px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 120px; flex: 1; }
.disc-msg { align-self: flex-start; max-width: 88%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px 10px 10px 3px; padding: 7px 10px; }
.disc-msg.is-mine { align-self: flex-end; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, var(--border)); border-radius: 10px 10px 3px 10px; }
.disc-msg.is-deleted .disc-msg-body { font-style: italic; color: var(--text-3); }
.disc-msg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 11.5px; color: var(--text-3); margin-bottom: 2px; }
.disc-msg-head strong { font-size: 12.5px; color: var(--text); }
.disc-role { font-size: 11px; }
.disc-msg-head time { margin-left: auto; }
.disc-msg-body { font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.disc-del { font-size: 11.5px; margin-top: 2px; color: var(--text-3); }
.disc-sys { align-self: center; font-size: 11.5px; color: var(--text-3); text-align: center; background: var(--neutral-soft); border-radius: 12px; padding: 2px 10px; }
.disc-closed { color: var(--text-2); background: var(--neutral-soft); border-radius: 6px; padding: 6px 9px; margin: 0; }
.disc-readonly { margin: 0; }
.disc-composer { display: flex; gap: 6px; align-items: flex-end; border-top: 1px solid var(--border); padding-top: 8px; }
.disc-composer textarea { flex: 1; resize: vertical; min-height: 40px; max-height: 160px; font-size: 13.5px; }
.disc-composer .btn { min-height: 40px; padding: 0 12px; }
.disc-composer .btn svg { width: 18px; height: 18px; }
/* pastilles sur les jours de la grille */
.evo-disc-badge { display: block; margin: 3px auto 0; min-width: 20px; height: 18px; border: none; border-radius: 9px; padding: 0 5px; font: 700 10.5px/18px var(--font); background: var(--accent-soft); color: var(--brand-2); cursor: pointer; }
.evo-disc-badge.has-unread { background: var(--accent); color: #fff; }
.evo-disc-add { display: block; margin: 2px auto 0; width: 18px; height: 16px; border: 1px dashed var(--border-strong); border-radius: 5px; background: transparent; color: var(--text-3); font: 600 12px/13px var(--font); padding: 0; cursor: pointer; opacity: 0; transition: opacity .12s; }
.evo-grid thead th:hover .evo-disc-add, .evo-disc-add:focus-visible { opacity: 1; }
@media (hover: none) { .evo-disc-add { opacity: .6; } }
@media (max-width: 1280px) {
  .evo-layout { grid-template-columns: minmax(0, 1fr); }
  .disc { position: static; }
  .disc-card { max-height: none; }
  .disc-messages { max-height: 60vh; }
}
@media print { .disc, .evo-disc-add, .evo-disc-badge { display: none !important; } .evo-layout { display: block; } }
.dept-caps .cap { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; margin: 5px 0; line-height: 1.35; }
.dept-caps .cap input { margin-top: 2px; flex: none; }
.journal-reminder a { font-weight: 600; }

/* ==== Responsive tablette et téléphone (v2.7) ==== */
.grid > *, .form-row > *, .split > *, .page-head > * { min-width: 0; }
.kv dd, .kv dt { min-width: 0; overflow-wrap: anywhere; }
.hbar { grid-template-columns: minmax(0, 210px) minmax(0, 1fr) 48px; }
.hbar > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
img, svg, video { max-width: 100%; }
.chart { max-width: 100%; height: auto; }
input, select, textarea { max-width: 100%; }
.table-wrap { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 > .span-2 { grid-column: 1 / -1; }
  .page-head .actions { margin-left: 0; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head { align-items: flex-start; }
  .page-head h1 { font-size: 21px; }
  .filters { padding: 10px 12px; }
  .filters label.field { min-width: 0; flex: 1 1 140px; }
  .filters .btn { flex: 0 0 auto; }
  .card-head { padding: 12px 12px 8px; }
  .card-body { padding-left: 12px; padding-right: 12px; }
  th, td { padding: 8px 10px; }
  .p-header { padding: 12px; gap: 12px; }
  .p-facts { gap: 12px 16px; }
  .topbar { gap: 6px; }
  .lock-pill { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 14px; }
  .content { padding: 12px 12px 32px; }
  .topbar { padding: 8px 12px; }
  .page-head { margin-bottom: 12px; gap: 10px; }
  .page-head h1 { font-size: 19px; }
  .page-head .lead { font-size: 13.5px; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1 1 auto; }
  .grid { gap: 10px; }
  .stat .value { font-size: 22px; }
  .stat .label, .stat .foot { font-size: 12px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .filters label.field { flex: 1 1 100%; }
  .filters .btn { flex: 1 1 auto; }
  .hbar { grid-template-columns: minmax(0, 96px) minmax(0, 1fr) 40px; font-size: 12px; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .split { gap: 8px; }
  .split > input[type=text] { flex: 1 1 100%; max-width: none !important; }
  .btn { min-height: 40px; }
  .btn-sm { min-height: 34px; }
  .icon-btn { width: 38px; height: 38px; }
  input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], select, textarea { font-size: 16px; } /* pas de zoom automatique iOS */
  .tabs a { padding: 9px 11px; }
  .lab-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .lab-tabs a { white-space: nowrap; }
  .alert { padding: 10px 12px; }
  .user-chip .avatar { width: 34px; height: 34px; }
  .pagination { flex-wrap: wrap; }
  .disc-row { grid-template-columns: minmax(0, 1fr) 124px; }
  .disc-msg { max-width: 94%; }
  .evo-grid th[scope="row"] { min-width: 108px; max-width: 120px; white-space: normal; font-size: 11.5px; }
  .lab-grid th[scope="row"], .lab-grid thead th:first-child { min-width: 120px; max-width: 140px; white-space: normal; font-size: 12px; }
}
@media (hover: none) and (pointer: coarse) {
  .nav a { padding-top: 10px; padding-bottom: 10px; }
  .btn-link { min-height: 32px; display: inline-flex; align-items: center; }
}

/* Graphiques : lisibles sur téléphone (défilement horizontal plutôt que texte minuscule) */
.chart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) { .chart-scroll .chart { min-width: 620px; } }

/* Tableaux empilés en fiches sur téléphone (classe .stack posée par app.js) */
@media (max-width: 640px) {
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { border-bottom: 1px solid var(--border); padding: 8px 12px; }
  table.stack tbody tr:hover td { background: transparent; }
  table.stack td { border: 0; padding: 4px 0 4px 40%; position: relative; text-align: left !important; overflow-wrap: anywhere; white-space: normal; min-height: 26px; }
  table.stack td::before { content: attr(data-label); float: left; margin-left: -66.67%; width: calc(66.67% - 10px); padding-top: 2px; font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .03em; line-height: 1.3; }
  table.stack td::after { content: ""; display: table; clear: both; }
  table.stack td.stack-nolabel, table.stack td:not([data-label]) { padding-left: 0; }
  table.stack td.stack-nolabel::before, table.stack td:not([data-label])::before { content: none; }
  table.stack td:empty { display: none; }
  table.stack td:has(form), table.stack td:has(details) { padding-left: 0; }
  table.stack td:has(form)::before, table.stack td:has(details)::before { float: none; display: block; margin: 0 0 4px; width: auto; }
  table.stack td form, table.stack td form select, table.stack td form input:not([type=checkbox]):not([type=radio]) { max-width: 100%; }
  table.stack td form { display: grid; gap: 6px; }
  table.stack td:first-child { font-size: 14.5px; }
  table.stack td > form, table.stack td .btn { max-width: 100%; }
  table.stack tr.stack-group td { display: block; background: var(--surface-2); font-weight: 650; padding: 6px 0; }
  table.stack tr.stack-group td::before { content: none; }
  table.stack td.nowrap, table.stack .nowrap { white-space: normal; }
  .table-wrap:has(> table.stack) { overflow-x: visible; }
}
.p-actions { margin-left: auto; align-self: flex-start; }
@media (max-width: 560px) { .p-actions { margin-left: 0; width: 100%; } .p-actions .btn { width: 100%; } }

/* ---- Timesheet (v2.9) ---- */
.field[hidden] { display: none !important; }
.ts-auto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.ts-auto span { display: block; font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .03em; }
.ts-auto strong { font-size: 14px; }
.ts-questions, .ts-sites { border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px 10px; margin: 0; min-width: 0; }
.ts-questions legend, .ts-sites legend { font-size: 13px; font-weight: 650; padding: 0 4px; }
.ts-q { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.ts-q:last-child { border-bottom: 0; }
.ts-q-label { font-size: 13.5px; }
.ts-q-label span { display: block; font-size: 11.5px; color: var(--text-3); font-style: italic; }
.ts-q-choices { display: flex; gap: 6px; flex: none; }
.ts-q-choices label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong); border-radius: 7px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.ts-q-choices label:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); font-weight: 600; }
.ts-sites .check { margin: 6px 0; }
.ts-answers { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.ts-yes, .ts-no { display: inline-block; min-width: 38px; text-align: center; font-size: 11.5px; font-weight: 700; border-radius: 10px; padding: 1px 6px; margin-right: 6px; }
.ts-yes { background: var(--good-soft); color: var(--good); }
.ts-no { background: var(--critical-soft); color: var(--critical); }
.ts-task p { margin: 4px 0 0; white-space: pre-wrap; }
.ts-card .card-head .tools input[type=text] { max-width: 220px; min-height: 30px; padding: 3px 8px; }
.mx-up { background: var(--accent-soft); color: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- Performance Indicator ---- */
.perf-legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--text-2); margin-bottom: 10px; }
.perf-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
.perf-c { background: var(--series-1); }
.perf-s { background: var(--series-2); }
.perf-p { background: repeating-linear-gradient(45deg, var(--surface-3), var(--surface-3) 3px, var(--border) 3px, var(--border) 6px); }
.perf-bars { display: grid; gap: 6px; }
.perf-row { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr) 96px 150px; gap: 10px; align-items: center; }
.perf-name { font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perf-name small { display: block; font-weight: 400; color: var(--text-3); font-size: 11.5px; }
.perf-track { position: relative; height: 18px; display: flex; gap: 2px; background: repeating-linear-gradient(45deg, var(--surface-3), var(--surface-3) 3px, var(--surface-2) 3px, var(--surface-2) 6px); border-radius: 4px; overflow: hidden; }
.perf-seg { height: 100%; min-width: 0; }
.perf-seg:last-of-type { border-radius: 0 4px 4px 0; }
.perf-mark { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--text-3); opacity: .45; }
.perf-val { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; font-size: 13px; }
.perf-table select { min-width: 64px; }
.perf-table input[type=text] { margin-top: 4px; width: 100%; min-width: 160px; }
.perf-cat td { background: var(--surface-2); font-weight: 650; font-size: 12.5px; color: var(--text-2); }
.perf-total td { border-top: 2px solid var(--border-strong); font-weight: 650; }
@media (max-width: 900px) {
  .perf-row { grid-template-columns: minmax(0, 1fr) 90px; }
  .perf-track { grid-column: 1 / -1; order: 3; }
  .perf-row > div:last-child { grid-column: 1 / -1; order: 4; }
  .ts-auto { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ts-q { flex-direction: column; align-items: flex-start; }
}

/* ---- Recherche (panneau de droite) ---- */
.search-drawer { position: fixed; inset: 0; z-index: 60; }
.search-drawer[hidden] { display: none; }
.search-backdrop { position: absolute; inset: 0; background: rgba(10, 14, 24, .38); }
.search-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); border-left: 1px solid var(--border); box-shadow: -12px 0 40px rgba(0,0,0,.18); display: flex; flex-direction: column; padding: 14px 16px; gap: 10px; animation: search-in .16s ease-out; }
@keyframes search-in { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .search-panel { animation: none; } }
.search-head { display: flex; align-items: center; justify-content: space-between; }
.search-head h2 { font-size: 17px; margin: 0; }
.search-head .icon-btn { font-size: 22px; line-height: 1; }
.search-form input { width: 100%; font-size: 15px; padding: 10px 12px; }
.search-hint { margin: 0; }
.search-results { overflow-y: auto; flex: 1; min-height: 0; }
.search-group h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin: 12px 0 4px; }
.search-item { display: block; padding: 7px 9px; border-radius: 7px; color: var(--text); text-decoration: none; }
.search-item:hover, .search-item:focus { background: var(--accent-soft); outline: none; text-decoration: none; }
.search-item strong { display: block; font-size: 13.5px; font-weight: 600; }
.search-item span { display: block; font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-all { align-self: flex-start; }
.search-list li { display: grid; gap: 2px; }
body.search-open { overflow: hidden; }
.ts-return { display: inline-block; }
.ts-return > summary { list-style: none; cursor: pointer; }
.ts-return > summary::-webkit-details-marker { display: none; }
.ts-return[open] { display: block; width: 100%; margin-top: 6px; }
.ts-edit[open] form { border: 1px solid var(--border); border-radius: 8px; padding: 10px; background: var(--surface-2); text-align: left; }
.ts-sites-inline { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ts-urgent { color: var(--critical); }
.ts-days { border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px 10px; margin: 0; min-width: 0; display: grid; gap: 10px; }
.ts-days legend { font-size: 13px; font-weight: 650; padding: 0 4px; }
.ts-day { display: grid; gap: 4px; }
.ts-day-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ts-day-head .check { margin: 0; }
.ts-day:has(input[data-day-off]:checked) textarea { opacity: .55; }
.ts-week { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 10px 0; }
.ts-week-day { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; min-width: 0; }
.ts-week-day p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ts-scores { border: 1px solid var(--border); background: var(--surface-2); border-radius: 8px; padding: 8px 12px; margin: 10px 0; font-size: 13.5px; }
.ts-scores ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px 18px; }
.ts-scores li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--border); padding: 2px 0; }
.ts-actions { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; display: grid; gap: 8px; justify-items: start; }
.ts-score-form { width: 100%; }
.ts-score-form fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px 10px; margin: 0; min-width: 0; }
.ts-score-form legend { font-size: 13px; font-weight: 650; padding: 0 4px; }
.ts-score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 4px 16px; }
.ts-score-grid .field { font-size: 13px; }
.ts-card .card-head .tools { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

/* Dossier du participant (v2.12) */
.dossier-tiles { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.dossier-tile { color: inherit; border: 1px solid var(--border); }
.dossier-tile:hover { text-decoration: none; border-color: var(--accent); }
.dossier-tile.on { outline: 2px solid var(--accent); outline-offset: -2px; }
.dossier-tile.tone-critical .value { color: var(--critical); }
.dossier-tile.tone-warning .value { color: var(--warning); }
.dossier-tile.tone-good .value { color: var(--good); }
.dossier-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 2px; overflow-x: auto; margin: 14px 0; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.dossier-nav a { padding: 6px 10px; border-radius: 6px; color: var(--text-2); font-size: 13px; font-weight: 550; white-space: nowrap; }
.dossier-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
section[id] { scroll-margin-top: 140px; }
.dossier-verdict { border-left: 4px solid var(--border); }
.dossier-verdict.tone-good { border-left-color: var(--good); }
.dossier-verdict.tone-critical { border-left-color: var(--critical); }
.dossier-verdict.tone-warning { border-left-color: var(--warning); }
.verdict-row { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.verdict-badge .badge { font-size: 15px; padding: 4px 14px; line-height: 24px; }
.verdict-text { margin: 2px 0 0; font-size: 15px; flex: 1; min-width: 240px; }
.list-tight { margin: 6px 0 0; padding-left: 18px; }
.list-tight li { margin: 2px 0; }
.dom-table th[scope="row"] { text-align: left; white-space: nowrap; font-weight: 600; }
.dom-table td { vertical-align: top; }
.dom-table tr.muted th { color: var(--text-3); }
.sev { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 12px; font-weight: 650; }
.sev-0 { background: var(--good-soft); color: var(--good); }
.sev-1 { background: var(--neutral-soft); color: var(--text-2); }
.sev-2 { background: var(--warning-soft); color: var(--warning); }
.sev-3 { background: var(--critical-soft); color: var(--critical); }
.dossier-lab h3 { font-size: 14px; margin: 14px 16px 6px; }
.soap { min-width: 220px; max-width: 420px; white-space: normal; }
.visit-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
.visit-chip { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; font-size: 12.5px; }
.trace { list-style: none; margin: 0; padding: 0; }
.trace li { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.trace li:last-child { border-bottom: 0; }
.trace-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); margin-bottom: 2px; }
@media (max-width: 640px) { .dossier-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dossier-nav { position: static; } }
@media print { .dossier-nav, .p-actions { display: none; } section { break-inside: avoid-page; } }
#courbes, #identite { margin-bottom: 16px; }

/* Archive et comparaison des bilans (v2.13) */
#comparaison, #historique { margin-bottom: 16px; }
.compare-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.compare-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-3); }
.compare-form select { max-width: 320px; }
.compare-cols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; padding: 14px 16px; align-items: start; }
.compare-col p { margin: 6px 0 0; }
.compare-arrow { font-size: 24px; color: var(--text-3); padding-top: 18px; }
.compare-alerts { border-top: 1px solid var(--border); }
.compare-new { margin-top: 6px; }
.compare-table tr.cmp-sub th { padding-left: 28px; font-weight: 500; color: var(--text-2); }
.compare-table tr.cmp-worse > th:first-child { box-shadow: inset 3px 0 0 var(--critical); }
.compare-table tr.cmp-better > th:first-child { box-shadow: inset 3px 0 0 var(--good); }
tr.row-on td { background: var(--accent-soft); }
@media (max-width: 640px) { .compare-cols { grid-template-columns: 1fr; } .compare-arrow { display: none; } }

/* Application installable (v2.14) */
.install-btn { display: inline-flex; align-items: center; gap: 6px; }
.install-btn svg { width: 16px; height: 16px; }
.install-btn[hidden], [data-install][hidden], [data-install-state][hidden] { display: none !important; }
.install-card { margin-top: 16px; }
.bare-install { text-align: center; margin: 12px 0 0; }
.offline-card { text-align: center; max-width: 440px; margin: 0 auto; }
@media (max-width: 640px) { .install-btn span { display: none; } }
html.is-app .topbar { padding-top: max(10px, env(safe-area-inset-top)); }

/* Langue (v2.15) */
.lang-btn { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.bare-lang { text-align: right; font-size: 13px; margin: 0 0 10px; }
.bare-lang a { color: var(--text-2); }
.bare-lang a.on { font-weight: 700; color: var(--accent); }
html[lang="en"] .ts-q-label span { display: none; } /* question déjà traduite : la version anglaise d’origine n’est pas répétée */

/* Bouton Retour (v2.16) */
.back-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 13px; font-weight: 600; }
.back-btn svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .back-btn span { display: none; } }
@media print { .back-btn { display: none; } }

/* Corrections de données (v2.17) */
tr.row-corrected td { background: var(--warning-soft); }
.corr-list li { align-items: flex-start; }
.corr-list .disclosure { margin-top: 4px; }
.ar-response { margin-top: 4px; padding: 4px 8px; border-left: 3px solid var(--info); background: var(--info-soft); border-radius: 4px; }
.compare-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 16px; margin-bottom: 12px; }
.compare-grid td { text-align: left; vertical-align: top; }

/* champ mot de passe avec bouton « œil » */
.pw-wrap { position: relative; display: block; }
.pw-wrap > input { width: 100%; padding-right: 44px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 6px; background: transparent; color: var(--text-3); cursor: pointer; }
.pw-toggle:hover { color: var(--text); background: var(--surface-2); }
.pw-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.pw-toggle[aria-pressed="true"] { color: var(--brand); }
.danger-zone { border-color: var(--critical); }
.danger-zone .card-head h2 { color: var(--critical); }
.ana-sel { display: grid; gap: 8px; }
.ana-filters { margin: 0 0 6px 26px; }
.ana-sel .compare-picks { margin-left: 26px; }
.ana-profile td, .ana-profile th { vertical-align: top; }
.ana-profile tbody th { font-weight: 500; min-width: 220px; }
.ana-stats td { vertical-align: top; min-width: 150px; }
.ana-vars { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px 16px; max-height: 420px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; margin: 8px 0; }
.ana-vars-h { grid-column: 1 / -1; font-weight: 650; font-size: 12.5px; color: var(--text-2); margin-top: 8px; text-transform: uppercase; letter-spacing: .03em; }
.ana-vars .check { margin: 2px 0; font-size: 13px; }
@media (max-width: 720px) { .ana-filters, .ana-sel .compare-picks { margin-left: 0; } }
.ana-profile tbody tr:not(.lab-meta) th, .ana-stats tbody th { text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--text); font-weight: 500; }

/* Dashboard graphique (v2.47) */
.charts-export { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; }
.charts-export [data-export-status] { flex: 1 1 260px; }
.grid-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 1200px) { .grid-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-7 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.charts-kpis .stat .value { font-size: 24px; }
.charts-toc { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; margin-bottom: 18px; }
@media (min-width: 900px) { .charts-toc { position: sticky; top: 0; z-index: 5; } }
.charts-toc a { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 13px; text-decoration: none; white-space: nowrap; }
.charts-toc a:hover { background: var(--accent-soft); color: var(--text); }
.charts-section { margin-bottom: 26px; scroll-margin-top: 140px; }
.charts-section-head h2 { margin: 0 0 2px; font-size: 18px; }
.charts-section-head p { margin: 0 0 12px; }
.chart-card { margin: 0; min-width: 0; display: flex; flex-direction: column; }
.chart-head { display: block; }
.chart-head h3 { margin: 0; font-size: 14.5px; }
.chart-sub { margin: 4px 0 0; color: var(--text-3); font-size: 12.5px; line-height: 1.45; }
.chart-canvas { width: 100%; padding: 4px 10px 10px; box-sizing: border-box; }
@media (max-width: 900px) { .chart-wide.span-2 { grid-column: auto; } }
.chart-explain { margin-top: auto; padding: 10px 16px 14px; border-top: 1px solid var(--border); font-size: 13px; line-height: 1.5; color: var(--text-2); }
.chart-read strong { display: block; color: var(--text); font-size: 12.5px; margin-bottom: 2px; }
.chart-read ul { margin: 0 0 6px; padding-left: 18px; }
.chart-read li { margin: 2px 0; }
.chart-ids { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.chart-how summary { cursor: pointer; color: var(--accent); font-size: 12.5px; }
.chart-how p { margin: 6px 0 0; }

/* Assistant du Hub (v2.50) */
.ask { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .ask { grid-template-columns: minmax(0, 1fr); } .ask-side { order: 2; } }
.ask-side { padding: 12px; }
.ask-side-head { margin-bottom: 8px; }
.ask-convs { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.ask-convs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 6px; padding: 6px 8px; border-radius: 8px; align-items: center; }
.ask-convs li a { color: var(--text); text-decoration: none; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-convs li .muted { grid-column: 1; font-size: 11.5px; }
.ask-convs li .ask-del { grid-column: 2; grid-row: 1 / span 2; border: 0; background: none; color: var(--text-3); cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.ask-convs li .ask-del:hover { background: var(--critical-soft); color: var(--critical); }
.ask-convs li.active, .ask-convs li:hover { background: var(--surface-2); }
.ask-keep { margin: 10px 4px 0; }
.ask-main { display: flex; flex-direction: column; min-height: 62vh; }
.ask-log { flex: 1; padding: 16px; overflow-y: auto; max-height: 64vh; display: flex; flex-direction: column; gap: 12px; }
.ask-msg { flex-shrink: 0; max-width: 92%; padding: 10px 14px; border-radius: 12px; line-height: 1.55; font-size: 14px; overflow-x: auto; }
.ask-msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.ask-msg.assistant { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.ask-msg.assistant p { margin: 0 0 8px; }
.ask-msg.assistant p:last-child, .ask-msg.assistant ul:last-child, .ask-msg.assistant table:last-child { margin-bottom: 0; }
.ask-msg.assistant ul, .ask-msg.assistant ol { margin: 4px 0 8px; padding-left: 20px; }
.ask-msg.assistant h3, .ask-msg.assistant h4 { margin: 8px 0 4px; font-size: 14.5px; }
.ask-msg.assistant table { border-collapse: collapse; margin: 6px 0 8px; font-size: 13px; }
.ask-msg.assistant th, .ask-msg.assistant td { border: 1px solid var(--border); padding: 4px 8px; text-align: left; vertical-align: top; }
.ask-msg.assistant th { background: var(--surface-3); }
.ask-msg.assistant blockquote { margin: 4px 0; padding-left: 10px; border-left: 3px solid var(--border-strong); color: var(--text-2); }
.ask-msg.assistant code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-3); padding: 0 4px; border-radius: 4px; }
.ask-meta { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }
.ask-notice { flex-shrink: 0; align-self: center; font-size: 12.5px; color: var(--warning); }
.ask-typing { align-self: flex-start; color: var(--text-3); font-size: 13px; }
.ask-empty { margin: auto; text-align: center; max-width: 640px; }
.ask-suggest { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.ask-suggest .chip { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.ask-suggest .chip:hover { background: var(--accent-soft); color: var(--text); }
.ask-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); align-items: flex-end; }
.ask-form textarea { flex: 1; resize: vertical; min-height: 44px; max-height: 200px; }
.ask-foot { margin: 0; padding: 0 16px 12px; }

/* Assistant : relances et boîte à suggestions (v2.51) */
.ask-follow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ask-follow button { border: 1px solid var(--border); background: var(--surface); color: var(--accent); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; }
.ask-follow button:hover { background: var(--accent-soft); }
.ask-sug { margin-top: 16px; scroll-margin-top: 70px; }
.ask-sug-h { font-size: 15px; margin: 18px 0 8px; }
.ask-sug-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ask-sug-list li { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); }
.ask-sug-list p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; }
.ask-sug-reply { padding: 6px 10px; border-left: 3px solid var(--good); background: var(--good-soft); border-radius: 6px; }
.ask-sug-admin { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.ask-sug-admin input[type=text] { flex: 1 1 260px; }
.ask-sug-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ask-sug-filter .chip { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); font-size: 12.5px; color: var(--text-2); text-decoration: none; }
.ask-sug-filter .chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.ask-msg.assistant h4 { font-size: 15px; }
.icon-btn.active { background: var(--accent-soft); color: var(--accent); }

/* Cure de NV-387 : étapes 6 / 9 / 12 jours (v2.52) */
.plan-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.plan-steps li { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; background: var(--surface-2); }
.plan-steps li span { font-size: 12.5px; color: var(--text-3); }
.plan-steps li.done { border-color: var(--good); background: var(--good-soft); }
.plan-steps li.todo { border-color: var(--accent); border-style: dashed; }
.plan-steps li.off { opacity: .55; }
@media (max-width: 640px) { .plan-steps { grid-template-columns: minmax(0, 1fr); } }

/* Rapport de la boîte à suggestions (v2.52) */
.ask-sug-report { margin-top: 22px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.ask-sug-report-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ask-sug-report-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ask-sug-stats { margin-bottom: 10px; }
.ask-sug-lines { margin: 0 0 8px; padding-left: 18px; color: var(--text-2); }

/* v2.53 : rapport hebdomadaire PCI et boîte « Rapports reçus » */
.pci-form { display: grid; gap: 14px; margin-top: 14px; }
.pci-form .card { margin: 0; }
.pci-fs { border: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.pci-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pci-grid2 .span-all { grid-column: 1 / -1; margin: 0; }
.pci-days { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pci-day strong { font-size: 13px; }
.pci-day.sunday strong { color: var(--accent); }
.pci-recs { display: grid; gap: 10px; }
.pci-rec { display: grid; gap: 8px; grid-template-columns: 2fr 1.2fr 1fr auto; align-items: end; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.pci-rec .check { padding-bottom: 8px; }
.pci-rec .pci-rec-detail { grid-column: 1 / -1; order: 5; }
.pci-inline { width: 100%; font: inherit; padding: 2px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); }
.pci-prev { margin: 0 0 4px; font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; }
.pci-prev summary { cursor: pointer; font-weight: 600; }
.pci-prev ul { margin: 6px 0 0; padding-left: 20px; }
.pci-actions .card-body { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pci-actions .card-body p { flex-basis: 100%; margin: 0; }
.pci-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.pci-side { display: grid; gap: 14px; min-width: 0; }
.pci-side .card { margin: 0; }
.pci-doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; min-width: 0; }
.pci-doc tbody th { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); background: transparent; }
.pci-doc .card { margin: 0; }
.pci-doc ul { margin: 0 0 8px; padding-left: 20px; }
.pci-doc li { margin: 2px 0; }
.pci-doc th[scope="row"] { font-weight: 600; width: 30%; vertical-align: top; }
.pci-h3 { font-size: 13.5px; margin: 12px 0 4px; color: var(--text-2); }
.pci-h3:first-child { margin-top: 0; }
.pci-sign { margin-top: 14px; }
.inbox-list li { align-items: center; }
.inbox-list li > svg { width: 20px; height: 20px; flex: none; color: var(--text-3); }
.inbox-list li.unread { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.inbox-list li.unread > svg { color: var(--accent); }
@media (max-width: 760px) {
  .pci-grid2 { grid-template-columns: 1fr; }
  .pci-rec { grid-template-columns: 1fr; }
  .pci-layout { grid-template-columns: minmax(0, 1fr); }
}
.pci-doc th, .pci-doc td { overflow-wrap: anywhere; }
@media (max-width: 640px) { .pci-doc table.stack tbody th { display: block; width: 100%; padding: 4px 0; } }
@media (min-width: 641px) { .pci-doc table { table-layout: fixed; width: 100%; } }
/* v2.67.1 : les en-têtes de ligne longs passent à la ligne au lieu de déborder sur les colonnes voisines */
.pci-doc th, .pci-doc td { white-space: normal; word-break: normal; hyphens: auto; }
.pci-doc th, .pci-doc td { overflow-wrap: break-word; }
.pci-doc table.pci-t-ind th[scope="row"] { width: auto; }
.pci-doc td .badge { white-space: nowrap; }
@media (max-width: 640px) { .pci-doc table.pci-t-ind colgroup { display: none; } }
/* Section 6 : une fiche par recommandation (le texte libre ne tient pas dans 5 colonnes) */
.pci-recs-view { list-style: none; margin: 0; padding: 0; counter-reset: pcirec; }
.pci-recs-view > li { counter-increment: pcirec; padding: 12px 16px; border-top: 1px solid var(--border); display: grid; gap: 6px; min-width: 0; }
.pci-recs-view > li:first-child { border-top: 0; }
.pci-recv-head { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.pci-recv-measure { overflow-wrap: break-word; min-width: 0; }
.pci-recv-measure::before { content: counter(pcirec) ". "; color: var(--text-3); }
.pci-recv-head .badge { flex: none; white-space: nowrap; }
.pci-recv-detail { color: var(--text-2); overflow-wrap: break-word; }
.pci-recv-meta { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; font-size: 13px; }
.pci-recv-meta > div { display: flex; gap: 6px; min-width: 0; }
.pci-recv-meta dt { color: var(--text-3); flex: none; white-space: nowrap; }
.pci-recv-meta dt::after { content: " :"; }
.pci-recv-meta dd { margin: 0; overflow-wrap: break-word; min-width: 0; }
/* v2.53.1 : liste des rapports envoyés à droite du formulaire PCI */
.pci-layout-form { margin-top: 14px; }
.pci-layout-form .pci-form { margin-top: 0; min-width: 0; }
.pci-layout-form .pci-side { position: sticky; top: 72px; }
.pci-sent .list-plain { max-height: calc(100vh - 220px); overflow-y: auto; }
.pci-sent li { flex-direction: column; align-items: stretch; gap: 6px; }
.pci-sent li > div { display: grid; gap: 2px; }
.pci-sent li.on { background: var(--accent-soft); }
.pci-sent .meta { display: flex; gap: 4px; margin-left: 0; }
.pci-sent-tags { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 760px) { .pci-layout-form .pci-side { position: static; } .pci-sent .list-plain { max-height: none; } }
@media (min-width: 761px) { .pci-sent-jump { display: none; } }

/* v2.54 : activité du laboratoire */
.lv-filters { gap: 12px; }
.lv-filter-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.lv-lines { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; }
.lv-table tr.lv-total td { font-weight: 700; background: var(--surface-2); border-top: 2px solid var(--border); }
.lv-table tr.lv-group td { background: var(--surface-2); }
.lv-table td.lv-indent { padding-left: 26px; }
.lv-matrix th, .lv-matrix td { white-space: nowrap; }
.lv-matrix td:first-child, .lv-matrix th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.lv-matrix tr.lv-total td:first-child { background: var(--surface-2); }
.lv-matrix td.lv-zero { color: var(--text-3); }
.lv-scroll { max-height: 520px; overflow: auto; }
.lv-detail > summary { cursor: pointer; list-style: none; }
.lv-detail > summary::-webkit-details-marker { display: none; }
.lv-detail > summary h2::before { content: "▸ "; color: var(--text-3); }
.lv-detail[open] > summary h2::before { content: "▾ "; }
.lv-table:not(.lv-matrix) th { white-space: normal; vertical-align: bottom; }
.lv-table td, .lv-table th { padding-left: 10px; padding-right: 10px; }
.lv-params td, .lv-params th { white-space: nowrap; }

/* v2.56 : suivi post-traitement (CREC) */
.ptx-list { display: grid; gap: 10px; padding: 0 16px 16px; }
.ptx-contact { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; background: var(--surface); }
.ptx-contact.ptx-alert { border-color: color-mix(in srgb, var(--critical) 55%, var(--border)); box-shadow: inset 3px 0 0 var(--critical); }
.ptx-contact.missed { background: var(--surface-2); }
.ptx-contact header { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.ptx-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.ptx-alerts { margin: 8px 0 4px; padding: 6px 10px; border-radius: 6px; background: color-mix(in srgb, var(--critical) 9%, transparent); color: var(--critical); font-size: 13px; font-weight: 600; display: grid; gap: 2px; }
.ptx-facts { display: grid; grid-template-columns: minmax(120px, 160px) 1fr; gap: 4px 12px; margin: 8px 0; font-size: 13.5px; }
.ptx-facts dt { color: var(--text-3); }
.ptx-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ptx-contact footer { border-top: 1px solid var(--border); padding-top: 6px; margin-top: 4px; }
.ptx-schedule td.ptx-cell { min-width: 130px; vertical-align: top; }
@media (max-width: 640px) { .ptx-facts { grid-template-columns: 1fr; } .ptx-facts dt { margin-top: 4px; } .ptx-list { padding: 0 10px 10px; } }
/* v2.57 : base CREC */
.ptx-top { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.ptx-top .card { margin: 0; }
.ptx-visits { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 0 16px 16px; }
.ptx-visit { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; display: grid; gap: 3px; justify-items: start; }
@media (max-width: 900px) { .ptx-top { grid-template-columns: minmax(0, 1fr); } }
.ptx-top { margin-bottom: 16px; }
.ptx-top .list-plain li { flex-wrap: wrap; align-items: center; }
.ptx-top .list-plain li > .small { flex-basis: 100%; order: 3; }
/* v2.59 — scores WHODAS-12 / WHO-5 (suivi post-traitement) */
.stat.warning .value { color: var(--warning); }
a.stat { color: inherit; text-decoration: none; }
.ptx-wb { margin-bottom: 16px; }
.ptx-score { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ptx-meter { display: inline-block; width: 64px; height: 6px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--border); margin-left: 6px; overflow: hidden; vertical-align: middle; }
.ptx-meter > span { display: block; height: 100%; background: var(--text-3); border-radius: 0 3px 3px 0; }
.ptx-score.low .ptx-meter > span { background: var(--warning); }
.ptx-wb-note { padding: 0 16px 14px; margin: 8px 0 0; }
.ptx-wbbox { margin: 8px 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); font-size: 13.5px; display: grid; gap: 4px; }
.ptx-wbbox .ptx-scores { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.ptx-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 14px; font-size: 12.5px; }
.ptx-items span { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dotted var(--border); }
.ptx-wbbox details summary { cursor: pointer; color: var(--text-2); font-size: 12.5px; }
/* v2.67 — note de la plateforme (étoiles) */
.rating-card { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(360px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 32px rgba(15, 20, 35, .18); padding: 16px 18px 12px; }
.rating-card h2 { font-size: 1.02rem; margin: 0 28px 4px 0; }
.rating-card p { margin: 4px 0 10px; }
.rating-close { position: absolute; top: 8px; right: 8px; }
.rating-stars { display: grid; gap: 6px; margin-bottom: 8px; }
.rating-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 8px; padding: 6px 10px; cursor: pointer; font: inherit; }
.rating-btn:hover, .rating-btn:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.rating-glyph { color: var(--warning); letter-spacing: 1px; font-size: 1.05rem; white-space: nowrap; }
.rating-label { font-size: .9rem; }
.rating-follow { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .rating-card { right: 16px; left: 16px; bottom: 16px; width: auto; } }
.rating-dist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.rating-dist li { display: grid; grid-template-columns: 90px 90px 1fr 32px; align-items: center; gap: 8px; }
.rating-bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.rating-bar > span { display: block; height: 100%; background: var(--warning); }
/* ===== v2.68 : console d'administration (performance et santé de la plateforme) ===== */
.cx-hero { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: flex-end; justify-content: space-between;
  padding: 26px 26px 22px; border-radius: 16px; color: #e8eefc; isolation: isolate;
  background: radial-gradient(120% 140% at 100% 0%, rgba(57, 135, 229, .38) 0%, transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(27, 175, 122, .20) 0%, transparent 60%), linear-gradient(135deg, #0b1226 0%, #13214a 55%, #0d1a3a 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 10px 30px -12px rgba(8, 15, 40, .55); }
.cx-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(140, 170, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 170, 255, .09) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(180deg, #000 0%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%); }
.cx-hero h1 { margin: 6px 0 4px; font-size: 28px; letter-spacing: -.01em; color: #fff; }
.cx-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9fb6e8; }
.cx-sub { margin: 0; font-size: 13px; color: #b5c3e3; }
.cx-sub .mono { color: #dfe8ff; }
.cx-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4cc27a; box-shadow: 0 0 0 0 rgba(76, 194, 122, .6); animation: cx-pulse 2s infinite; }
@keyframes cx-pulse { 0% { box-shadow: 0 0 0 0 rgba(76, 194, 122, .55); } 70% { box-shadow: 0 0 0 9px rgba(76, 194, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 194, 122, 0); } }
@media (prefers-reduced-motion: reduce) { .cx-live-dot { animation: none; } }
.cx-pulse { display: grid; grid-template-columns: repeat(4, minmax(84px, auto)); gap: 2px 0; padding: 10px 4px 8px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(160, 190, 255, .18); backdrop-filter: blur(6px); }
.cx-pulse > div { display: grid; padding: 0 14px; border-left: 1px solid rgba(160, 190, 255, .16); }
.cx-pulse > div:first-child { border-left: 0; }
.cx-pulse-v { font: 600 22px/1.15 var(--mono); color: #fff; font-variant-numeric: tabular-nums; }
.cx-pulse-l { font-size: 11px; color: #9fb0d6; white-space: nowrap; }
.cx-pulse-at { grid-column: 1 / -1; margin: 6px 14px 0; font-size: 10.5px; color: #7f92bd; letter-spacing: .04em; }
.cx-pulse.has-errors [data-k="errors"] { color: #ff8a8a; }
.cx-pulse.stale { opacity: .6; }
.cx-tabs { display: flex; gap: 4px; margin: 14px 0 18px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.cx-tabs::-webkit-scrollbar { display: none; }
.cx-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 9px; color: var(--text-2); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cx-tabs a svg { width: 16px; height: 16px; }
.cx-tabs a:hover { background: var(--surface-2); color: var(--text); }
.cx-tabs a.on { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #7c4dff)); color: #fff; box-shadow: 0 4px 14px -6px color-mix(in srgb, var(--accent) 80%, transparent); }
.cx-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); min-width: 0; }
.cx-card > header { padding: 14px 16px 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cx-card > header h2 { margin: 0; font-size: 15px; }
.cx-card > header p { margin: 0; flex-basis: 100%; font-size: 12.5px; color: var(--text-3); }
.cx-count { font: 600 12px var(--mono); padding: 1px 8px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); }
.cx-pad { padding: 0 16px; }
.cx-h3 { margin: 14px 16px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.cx-empty { display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 16px 18px; color: var(--text-3); font-size: 13.5px; }
.cx-empty svg { width: 18px; height: 18px; color: var(--good); }
.cx-overview { display: grid; grid-template-columns: minmax(300px, 1.05fr) 2fr; gap: 14px; margin-bottom: 14px; }
.cx-score { display: flex; align-items: center; gap: 20px; padding: 18px 20px;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, color-mix(in srgb, var(--accent) 55%, transparent), transparent 45%, color-mix(in srgb, var(--series-3) 45%, transparent)) border-box; border: 1px solid transparent; }
.cx-score h2 { margin: 0 0 4px; font-size: 17px; }
.cx-verdict { margin: 0 0 8px; font-weight: 600; }
.cx-ring { flex: none; }
.cx-ring-track { fill: none; stroke: var(--surface-3); stroke-width: 10; }
.cx-ring-ticks { fill: none; stroke: var(--border); stroke-width: 1; stroke-dasharray: 1 5.1; }
.cx-ring-val { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dasharray .8s ease; }
.cx-ring.tone-good .cx-ring-val { stroke: var(--good); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--good) 55%, transparent)); }
.cx-ring.tone-warning .cx-ring-val { stroke: var(--warning); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--warning) 55%, transparent)); }
.cx-ring.tone-critical .cx-ring-val { stroke: var(--critical); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--critical) 55%, transparent)); }
.cx-ring.tone-neutral .cx-ring-val { stroke: var(--text-3); }
.cx-ring-num { font: 700 34px var(--mono); fill: var(--text); }
.cx-ring-max { font: 500 10px var(--font); fill: var(--text-3); }
.cx-areas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cx-area { display: grid; align-content: start; gap: 6px; padding: 14px; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.cx-area:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: 0 8px 22px -12px color-mix(in srgb, var(--accent) 60%, transparent); text-decoration: none; }
.cx-area-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.cx-area-score { font: 700 30px/1 var(--mono); }
.cx-area.tone-good .cx-area-score { color: var(--good); }
.cx-area.tone-warning .cx-area-score { color: var(--warning); }
.cx-area.tone-critical .cx-area-score { color: var(--critical); }
.cx-area-desc { font-size: 12px; color: var(--text-3); line-height: 1.35; }
.cx-bar { display: block; height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.cx-bar > span { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.tone-good .cx-bar > span { background: var(--good); }
.tone-warning .cx-bar > span { background: var(--warning); }
.tone-critical .cx-bar > span { background: var(--critical); }
.cx-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 14px; }
.cx-kpi { display: grid; gap: 3px; padding: 13px 14px 12px; overflow: hidden; }
.cx-kpi::after { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--border-strong); }
.cx-kpi.tone-good::after { background: var(--good); }
.cx-kpi.tone-warning::after { background: var(--warning); }
.cx-kpi.tone-critical::after { background: var(--critical); }
.cx-kpi-icon { position: absolute; right: 12px; top: 12px; color: var(--text-3); opacity: .55; }
.cx-kpi-icon svg { width: 18px; height: 18px; }
.cx-kpi-label { font-size: 12px; color: var(--text-3); font-weight: 600; padding-right: 24px; }
.cx-kpi-value { font: 650 22px/1.2 var(--mono); font-variant-numeric: tabular-nums; color: var(--text); overflow-wrap: anywhere; }
.cx-kpi-foot { font-size: 11.5px; color: var(--text-3); }
.cx-kpi .cx-bar { margin-top: 4px; }
.cx-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; align-items: start; }
.cx-split-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cx-split > .cx-charts { margin: 0; }
.cx-stack { display: grid; gap: 14px; min-width: 0; }
.cx-issues ol { list-style: none; margin: 0; padding: 4px 0 8px; }
.cx-issues li { display: grid; grid-template-columns: 124px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 16px; border-top: 1px solid var(--border); }
.cx-issues li:first-child { border-top: 0; }
.cx-issues li p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-2); }
.cx-issues li strong { font-size: 13.5px; }
.cx-lvl { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 99px; justify-self: start; }
.cx-lvl svg { width: 13px; height: 13px; }
.lvl-critical .cx-lvl { background: var(--critical-soft); color: var(--critical); }
.lvl-warning .cx-lvl { background: var(--warning-soft); color: var(--warning); }
.lvl-info .cx-lvl { background: var(--info-soft); color: var(--info); }
.cx-action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 6px 12px 14px; }
.cx-action-grid a { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); text-decoration: none; transition: border-color .15s, background .15s; }
.cx-action-grid a:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); background: var(--accent-soft); text-decoration: none; }
.cx-action-grid a > span { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface); color: var(--accent); border: 1px solid var(--border); }
.cx-action-grid a > span svg { width: 16px; height: 16px; }
.cx-action-grid strong { font-size: 13px; }
.cx-action-grid small { font-size: 11.5px; color: var(--text-3); line-height: 1.3; }
.cx-charts { display: grid; gap: 14px; margin-bottom: 14px; }
.cx-g1 { grid-template-columns: minmax(0, 1fr); }
.cx-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cx-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cx-chart { margin: 0; padding: 12px 12px 8px; }
.cx-chart figcaption { padding: 2px 4px 6px; }
.cx-chart h3 { margin: 0; font-size: 14px; }
.cx-chart figcaption p { margin: 2px 0 0; font-size: 12px; color: var(--text-3); }
.cx-table .table-wrap { padding: 0 4px 6px; }
.cx-table table { font-size: 13px; }
.cx-table th, .cx-table td.num { white-space: nowrap; }
.cx-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 12px; }
.cx-chip { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.cx-chip:hover { border-color: var(--accent); text-decoration: none; }
.cx-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.cx-method { display: inline-block; min-width: 38px; text-align: center; font: 700 10px var(--mono); padding: 2px 5px; border-radius: 5px; background: var(--info-soft); color: var(--info); vertical-align: 1px; }
.cx-method.m-post { background: var(--warning-soft); color: var(--warning); }
.cx-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--text-3); vertical-align: 1px; }
.cx-dot.tone-good { background: var(--good); box-shadow: 0 0 6px color-mix(in srgb, var(--good) 70%, transparent); }
.cx-dot.tone-warning { background: var(--warning); box-shadow: 0 0 6px color-mix(in srgb, var(--warning) 70%, transparent); }
.cx-dot.tone-critical { background: var(--critical); box-shadow: 0 0 6px color-mix(in srgb, var(--critical) 70%, transparent); }
.cx-dot.tone-info { background: var(--info); }
.cx-inline-bar { display: inline-block; width: 56px; height: 5px; margin-right: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; vertical-align: 2px; }
.cx-inline-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--series-7)); border-radius: 99px; }
.cx-hbars { list-style: none; margin: 0; padding: 4px 16px 12px; display: grid; gap: 7px; }
.cx-hbars li { display: grid; grid-template-columns: minmax(0, 1fr) 80px 66px; align-items: center; gap: 8px; }
.cx-hbars li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-hbars .cx-inline-bar { width: 100%; margin: 0; }
.cx-hbars .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-jobs { list-style: none; margin: 0; padding: 4px 16px 14px; display: grid; gap: 8px; }
.cx-jobs li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 6px; font-size: 13px; }
.cx-errors { list-style: none; margin: 0; padding: 0 0 8px; }
.cx-errors li { display: grid; gap: 2px; padding: 9px 16px; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.cx-errors li:first-child { border-top: 0; }
.cx-people { list-style: none; margin: 0; padding: 2px 16px 10px; display: grid; gap: 8px; }
.cx-people li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.cx-people li > span:nth-child(2) { display: grid; min-width: 0; }
.cx-people .avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.cx-checks { list-style: none; margin: 0; padding: 4px 16px 14px; display: grid; gap: 8px; }
.cx-checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 13.5px; }
.cx-check svg { width: 18px; height: 18px; }
.cx-checks .ok .cx-check { color: var(--good); }
.cx-checks .ko .cx-check { color: var(--critical); }
.cx-dl { margin: 0; padding: 4px 16px 6px; display: grid; gap: 7px; font-size: 13px; }
.cx-dl > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.cx-dl dt { color: var(--text-3); }
.cx-dl dd { margin: 0; text-align: right; }
.cx-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0 16px 14px; }
.cx-tags li { font-size: 12px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--border); }
.cx-tags li.ok { background: var(--good-soft); color: var(--good); border-color: transparent; }
.cx-tags li.ko { background: var(--surface-2); color: var(--text-3); text-decoration: line-through; }
@media (max-width: 1280px) {
  .cx-overview { grid-template-columns: minmax(0, 1fr); }
  .cx-split-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .cx-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cx-g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-split, .cx-split-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .cx-hero { padding: 20px 16px 16px; border-radius: 14px; }
  .cx-hero h1 { font-size: 23px; }
  .cx-pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 10px 0; }
  .cx-pulse > div:nth-child(3) { border-left: 0; }
  .cx-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-g2, .cx-g3 { grid-template-columns: minmax(0, 1fr); }
  .cx-score { flex-direction: column; text-align: center; }
  .cx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-kpi-value { font-size: 18px; }
  .cx-issues li { grid-template-columns: minmax(0, 1fr) auto; }
  .cx-issues li .cx-lvl { grid-column: 1 / -1; }
  .cx-hbars li { grid-template-columns: minmax(0, 1fr) 60px 44px; }
}
/* ===== v2.71 : Édit stock (pertes de réactifs du laboratoire) ===== */
.btn-accent { background: var(--good); border-color: var(--good); color: #fff; }
.btn-accent:hover { background: color-mix(in srgb, var(--good) 85%, #000); color: #fff; text-decoration: none; }
.btn-accent svg { width: 15px; height: 15px; }
.sl-status { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; margin-bottom: 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.sl-status p { margin: 2px 0 0; color: var(--text-2); }
.sl-status-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--info-soft); color: var(--info); }
.sl-status-icon svg { width: 18px; height: 18px; }
.sl-status.done { border-color: color-mix(in srgb, var(--good) 40%, var(--border)); }
.sl-status.done .sl-status-icon { background: var(--good-soft); color: var(--good); }
.sl-status.due { border-color: color-mix(in srgb, var(--warning) 50%, var(--border)); background: var(--warning-soft); }
.sl-status.due .sl-status-icon { background: var(--surface); color: var(--warning); }
.sl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.sl-side { display: grid; gap: 14px; min-width: 0; }
.sl-side .card, .sl-form { margin: 0; }
.sl-none { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); border-radius: var(--radius) var(--radius) 0 0; }
.sl-none .btn svg { width: 16px; height: 16px; }
.sl-lines { display: grid; gap: 10px; padding: 4px 16px 6px; }
.sl-line { margin: 0; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px 10px; background: var(--surface-2);
  grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sl-line .field { margin: 0; min-width: 0; }
.sl-line .field select, .sl-line .field input { width: 100%; min-width: 0; }
.sl-line .sl-item, .sl-line .sl-type, .sl-line .sl-who, .sl-line .sl-note { grid-column: span 3; }
.sl-line .sl-qty, .sl-line .sl-unit, .sl-line .sl-date { grid-column: span 2; }
.sl-line .sl-who[hidden] + .sl-note { grid-column: 1 / -1; }
.sl-foot { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 10px 16px 16px; }
.sl-foot .check { margin-right: auto; }
.sl-types { list-style: none; margin: 0; padding: 4px 16px 14px; display: grid; gap: 8px; }
.sl-types li { display: grid; gap: 1px; font-size: 13px; }
.sl-recent li { flex-direction: column; align-items: stretch; gap: 2px; }
.sl-card .sl-total td { border-top: 2px solid var(--border-strong); }
@media (max-width: 900px) { .sl-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .sl-line .sl-item, .sl-line .sl-type, .sl-line .sl-who, .sl-line .sl-note, .sl-line .sl-date { grid-column: 1 / -1; } .sl-line .sl-qty, .sl-line .sl-unit { grid-column: span 3; } .sl-none .btn, .sl-foot .btn-primary { width: 100%; justify-content: center; } }
.sl-line[hidden], .sl-line [hidden], .sl-foot [hidden] { display: none !important; }
/* ===== v2.74 : complétude, CRF-09, sorties d'étude, consentements ===== */
.crf-recap { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); display: grid; gap: 6px; font-size: 13px; color: var(--text-2); }
.crf-recap p { margin: 0; }
.exit-card { margin-top: 16px; }
.exit-card.exit-missing { border-color: color-mix(in srgb, var(--warning) 55%, var(--border)); }
.exit-card .card-body p { margin: 0 0 8px; }
.exit-notes { margin: 4px 0 10px; }
.exit-notes li { flex-direction: column; align-items: stretch; gap: 3px; }
.exit-notes .inline-form { display: inline; margin-left: 8px; }
.exit-form { margin-top: 6px; }
.consent-th { white-space: normal !important; min-width: 70px; max-width: 92px; line-height: 1.25; letter-spacing: 0 !important; text-transform: none !important; font-size: 12px !important; }
/* ===== v2.75 : consentements scannés ===== */
.cs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.cs-layout > .card, .cs-side .card { margin: 0; }
.cs-side { display: grid; gap: 14px; min-width: 0; }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; padding: 4px 16px 12px; }
.cs-item { margin: 0; display: grid; gap: 6px; border: 1px solid var(--border); border-radius: 10px; padding: 8px; background: var(--surface-2); min-width: 0; }
.cs-thumb { display: grid; place-items: center; height: 220px; border-radius: 8px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.cs-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cs-pdf { display: grid; place-items: center; gap: 4px; font: 700 13px var(--mono); color: var(--text-3); }
.cs-pdf svg { width: 30px; height: 30px; }
.cs-item figcaption { display: grid; gap: 2px; min-width: 0; }
.cs-item figcaption strong { overflow-wrap: anywhere; }
.cs-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cs-del { display: contents; }
.cs-del[open] form { flex-basis: 100%; display: grid; gap: 4px; }
.cs-upload { padding: 4px 16px 16px; display: grid; gap: 10px; }
.cs-drop { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 22px 16px; border: 2px dashed var(--border-strong); border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.cs-drop:hover, .cs-drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.cs-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cs-drop-icon svg { width: 28px; height: 28px; color: var(--accent); }
.cs-preview { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-prev { display: grid; gap: 2px; justify-items: center; width: 96px; }
.cs-prev img { width: 96px; height: 120px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.cs-check { list-style: none; margin: 0; padding: 4px 16px 10px; display: grid; gap: 6px; }
.cs-check li { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 8px; font-size: 13px; }
.cs-check li > span:last-child { grid-column: 2; }
.cs-check li.ok > span:first-child { color: var(--good); font-weight: 700; }
.cs-check li.ko > span:first-child { color: var(--critical); font-weight: 700; }
.cs-check li.na > span:first-child { color: var(--text-3); }
@media (max-width: 960px) { .cs-layout { grid-template-columns: minmax(0, 1fr); } }

/* v2.77 : numéros de participant réservés (pages Participants et Suivi des CRF) */
.reserved-ids .alert-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.reserved-ids .alert-text > strong { color: var(--warning); }
.reserved-ids strong.mono, .reserved-ids .small strong { display: inline; }
.reserved-ids-site { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.reserved-ids-label { font-weight: 600; }
.reserved-ids-next { margin-left: 4px; }
.reserved-ids-next strong { font-size: 15px; color: var(--text); }
@media (max-width: 600px) { .reserved-ids-next { margin-left: 0; flex-basis: 100%; } }
