/* Styles communs de la vitrine (/) et de l'espace connecté (/app), extraits d'index.html le 2026-10-23.
   Palette de la refonte du 2026-10-24 : les anciennes variables « blue » / « navy » portent désormais
   les verts de la charte (vert principal #0F766E, vert profond #0B2620, vert d'eau #CCFBEF). */
:root {
  --navy-950: #0B2620;
  --navy-900: #163A31;
  --blue-600: #0F766E;
  --blue-500: #14B8A6;
  --blue-100: #CCFBEF;
  --blue-50: #F1F7F5;
  --page-bg: #F6FAF8;
  --surface: #FFFFFF;
  --surface-soft: #F1F7F5;
  --text-primary: #0B2620;
  --text-secondary: #3F5B54;
  --text-muted: #5B7770;
  --border: #D5E7E1;
  --border-strong: #C3DBD3;
  --red-600: #DC3C30;
  --red-100: #FEE2E2;
  --red-50: #FFF5F4;
  --amber-600: #C47A08;
  --amber-100: #FEF0C7;
  --amber-50: #FFFAEB;
  --green-600: #168653;
  --green-100: #DDF5E8;
  --green-50: #F0FAF5;
}
:root {
  --bg: #F6FAF8;
  --surface: #ffffff;
  --surface-2: #F1F7F5;
  --ink: #0B2620;
  --ink-muted: #3F5B54;
  --ink-faint: #5B7770;
  --line: #D5E7E1;
  --line-strong: #C3DBD3;
  --primary: #0F766E;
  --primary-strong: #115E59;
  --primary-tint: #CCFBEF;
  --impact-high: #cf3a2b;
  --impact-high-tint: #fdece9;
  --impact-high-line: #f0bcb3;
  --impact-medium: #a9760a;
  --impact-medium-tint: #fdf2db;
  --impact-medium-line: #edcf87;
  --impact-low: #1f8a4c;
  --impact-low-tint: #e7f6ec;
  --impact-low-line: #a9dcbb;
  --impact-info: #3f68a8;
  --impact-info-tint: #eaf1fa;
  --impact-info-line: #bcd0e8;
  --shadow: 0 2px 10px rgba(18,22,29,.06);
  --font-ui: "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", ui-monospace, Consolas, "SFMono-Regular", Menlo, monospace;
  --radius: 12px;
  --radius-sm: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1420;
    --surface: #141c29;
    --surface-2: #1a2433;
    --ink: #e8ecf2;
    --ink-muted: #a7b0bf;
    --ink-faint: #71798a;
    --line: #263142;
    --line-strong: #354258;
    --primary: #2DD4BF;
    --primary-strong: #5EEAD4;
    --primary-tint: #12302B;
    --impact-high: #e58a7c;
    --impact-high-tint: #3a2320;
    --impact-high-line: #5e372f;
    --impact-medium: #e3ba5c;
    --impact-medium-tint: #372c12;
    --impact-medium-line: #5c4a22;
    --impact-low: #7bc496;
    --impact-low-tint: #16281d;
    --impact-low-line: #2e4a35;
    --impact-info: #90b0dd;
    --impact-info-tint: #182636;
    --impact-info-line: #33475f;
    --shadow: 0 2px 10px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --bg: #0d1420; --surface: #141c29; --surface-2: #1a2433; --ink: #e8ecf2; --ink-muted: #a7b0bf; --ink-faint: #71798a;
  --line: #263142; --line-strong: #354258; --primary: #2DD4BF; --primary-strong: #5EEAD4; --primary-tint: #12302B;
  --impact-high: #e58a7c; --impact-high-tint: #3a2320; --impact-high-line: #5e372f;
  --impact-medium: #e3ba5c; --impact-medium-tint: #372c12; --impact-medium-line: #5c4a22;
  --impact-low: #7bc496; --impact-low-tint: #16281d; --impact-low-line: #2e4a35;
  --impact-info: #90b0dd; --impact-info-tint: #182636; --impact-info-line: #33475f;
  --shadow: 0 2px 10px rgba(0,0,0,.35);
}
:root[data-theme="light"] {
  --bg: #F6FAF8; --surface: #ffffff; --surface-2: #F1F7F5; --ink: #0B2620; --ink-muted: #3F5B54; --ink-faint: #5B7770;
  --line: #D5E7E1; --line-strong: #C3DBD3; --primary: #0F766E; --primary-strong: #115E59; --primary-tint: #CCFBEF;
  --impact-high: #cf3a2b; --impact-high-tint: #fdece9; --impact-high-line: #f0bcb3;
  --impact-medium: #a9760a; --impact-medium-tint: #fdf2db; --impact-medium-line: #edcf87;
  --impact-low: #1f8a4c; --impact-low-tint: #e7f6ec; --impact-low-line: #a9dcbb;
  --impact-info: #3f68a8; --impact-info-tint: #eaf1fa; --impact-info-line: #bcd0e8;
  --shadow: 0 2px 10px rgba(18,22,29,.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

a { color: var(--primary-strong); }

.top-accent { height: 4px; background: var(--primary); }

.wrap { max-width: 900px; margin: 0 auto; padding: 0 20px 96px; }

/* ---------- Header ---------- */
header.top {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg);
  padding: 26px 0 16px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary-strong);
  background: var(--primary-tint);
  border-radius: 999px;
  padding: 4px 10px;
  margin: 0 0 10px;
}
h1 {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -.008em;
  margin: 0 0 5px;
  text-wrap: balance;
  color: var(--ink);
}
.subhead {
  color: var(--ink-muted);
  font-size: 13.5px;
  margin: 0 0 14px;
  max-width: 68ch;
}

.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; color: var(--impact-low);
  background: var(--impact-low-tint); border: 1px solid var(--impact-low-line);
  border-radius: 999px; padding: 4px 11px;
}
.trust-badge .check { font-size: 11px; }

.meta-strip {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  align-items: center;
  font-size: 12px;
  color: var(--ink-muted);
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.meta-strip time, .meta-strip .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.next-check-note { margin: 7px 0 0; color: var(--ink-faint); font-size: 11px; }

#glossary { margin-top: 2px; }
#glossary summary {
  cursor: pointer; font-size: 12px; color: var(--primary-strong);
  font-weight: 700; list-style: none; padding: 2px 0;
}
#glossary summary::-webkit-details-marker { display: none; }
#glossary summary::before { content: "Qui fait quoi dans le dispositif CEE ? "; }
#glossary summary::after { content: "▾"; display: inline-block; margin-left: 4px; font-size: 9px; }
#glossary[open] summary::after { content: "▴"; }
.glossary-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px;
  margin-top: 10px;
}
.glossary-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 15px; box-shadow: var(--shadow);
}
.glossary-card .gc-head { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.glossary-card h4 {
  font-family: var(--font-ui); font-weight: 700; font-size: 13.5px; margin: 0; color: var(--ink);
}
.glossary-card p { margin: 0; font-size: 12px; color: var(--ink-muted); line-height: 1.6; }

.mono-badge {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary-tint); color: var(--primary-strong);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -.02em;
}

.stats-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 16px;
}
.stat-tile {
  flex: 1 1 130px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 15px; box-shadow: var(--shadow);
}
.stat-tile .n { font-family: var(--font-mono); font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.stat-tile .l { font-size: 11px; color: var(--ink-muted); margin-top: 5px; font-weight: 600; }
.stat-tile.total .n { color: var(--ink); }
.stat-tile.high .n { color: var(--impact-high); }
.stat-tile.medium .n { color: var(--impact-medium); }
.stat-tile.low .n { color: var(--impact-low); }

/* ---------- View tabs ---------- */
.view-tabs { display: flex; gap: 6px; margin-top: 18px; }
.view-tab {
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 700;
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-muted); cursor: pointer;
}
.view-tab:hover { border-color: var(--primary); color: var(--primary-strong); }
.view-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(15,118,110,.22); }

/* ---------- Filter bar ---------- */
.filter-bar {
  position: sticky; top: 138px; z-index: 4;
  background: var(--bg);
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.filter-row .label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-faint); margin-right: 4px; flex: none;
}
.chip {
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-muted);
  border-radius: 999px; padding: 5px 13px; cursor: pointer;
  transition: border-color .12s, color .12s, background .12s, box-shadow .12s;
}
.chip:hover { border-color: var(--primary); color: var(--primary-strong); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(15,118,110,.28); }

.search-row { display: flex; gap: 8px; align-items: center; }
input[type="search"] {
  flex: 1; min-width: 160px;
  font-family: var(--font-ui); font-size: 13px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
  padding: 8px 12px;
}
input[type="search"]:focus-visible, .chip:focus-visible, button:focus-visible, .item-head:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 1px;
}
.btn {
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 700;
  border: 1px solid var(--primary); background: var(--primary); color: #fff;
  border-radius: 999px; padding: 8px 16px; cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15,118,110,.22);
}
.btn:hover { background: var(--primary-strong); border-color: var(--primary-strong); color: var(--surface); }

/* ---------- Feed ---------- */
.feed { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.empty-state {
  padding: 36px 20px; text-align: center; color: var(--ink-muted);
  font-size: 13px; border: 1px dashed var(--line-strong); border-radius: var(--radius);
}

.item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.item[data-impact="high"] { border-left-color: var(--impact-high); }
.item[data-impact="medium"] { border-left-color: var(--impact-medium); }
.item[data-impact="low"] { border-left-color: var(--impact-low); }
.item[data-impact="info"] { border-left-color: var(--impact-info); }

.item-head {
  display: block; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 14px 16px 13px;
  font-family: inherit; color: inherit;
}
.item-toprow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  margin-bottom: 7px;
}
time.item-date {
  font-family: var(--font-mono); font-size: 11.5px; font-variant-numeric: tabular-nums;
  color: var(--ink-muted); font-weight: 600;
}
.ref-code {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint);
}
.tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .01em;
  padding: 3px 9px; border-radius: var(--radius-sm); border: 1px solid transparent;
}
.tag.cat { background: var(--surface-2); color: var(--ink-muted); border-color: var(--line); font-weight: 600; }
.tag.impact-high { background: var(--impact-high-tint); color: var(--impact-high); border-color: var(--impact-high-line); }
.tag.impact-medium { background: var(--impact-medium-tint); color: var(--impact-medium); border-color: var(--impact-medium-line); }
.tag.impact-low { background: var(--impact-low-tint); color: var(--impact-low); border-color: var(--impact-low-line); }
.tag.impact-info { background: var(--impact-info-tint); color: var(--impact-info); border-color: var(--impact-info-line); }
.tag.new { background: var(--primary); color: #fff; border-radius: 999px; }
.tag.status { background: none; color: var(--ink-faint); border-color: var(--line); font-weight: 500; }

h3.item-title {
  font-family: var(--font-ui); font-weight: 700; font-size: 16px;
  margin: 0 0 4px; text-wrap: balance; color: var(--ink); letter-spacing: -.003em;
}
.item-summary { font-size: 13px; color: var(--ink-muted); margin: 0; max-width: 70ch; }

.fiches { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.fiche-code {
  font-family: var(--font-mono); font-size: 10.5px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-muted);
  padding: 2px 7px; border-radius: 999px;
}

.chev { float: right; color: var(--ink-faint); font-size: 11px; transition: transform .15s; }
.item.open .chev { transform: rotate(180deg); }

.item-body {
  display: none;
  padding: 0 16px 16px 16px;
  border-top: 1px solid var(--line);
  margin-top: 2px;
}
.item.open .item-body { display: block; }
.impact-block {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 13px;
}
.impact-block .h {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 5px;
}
.impact-block p { margin: 0; font-size: 13px; color: var(--ink); }

.actor-block-h {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-faint); margin: 15px 0 8px;
}
.actor-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px;
}
.actor-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 11px 11px; background: var(--surface);
}
.actor-name {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  margin-bottom: 7px;
}
.actor-name-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--ink-muted);
}
.actor-mono {
  flex: none; width: 19px; height: 19px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-faint);
  font-family: var(--font-mono); font-size: 8.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.actor-level {
  font-family: var(--font-ui); font-size: 9.5px; font-weight: 700; letter-spacing: .01em;
  padding: 2px 8px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.actor-level.high { background: var(--impact-high-tint); color: var(--impact-high); border-color: var(--impact-high-line); }
.actor-level.medium { background: var(--impact-medium-tint); color: var(--impact-medium); border-color: var(--impact-medium-line); }
.actor-level.low { background: var(--impact-low-tint); color: var(--impact-low); border-color: var(--impact-low-line); }
.actor-level.info { background: var(--impact-info-tint); color: var(--impact-info); border-color: var(--impact-info-line); }
.actor-level.none { background: var(--surface-2); color: var(--ink-faint); border-color: var(--line); }
.actor-card p { margin: 0; font-size: 12px; color: var(--ink); line-height: 1.5; }

.attach-block {
  margin-top: 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); overflow: hidden;
}
.attach-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 13px; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.attach-clip { font-size: 13px; flex: none; }
.attach-title { font-size: 12.5px; font-weight: 700; color: var(--ink); flex: 1 1 auto; }
.attach-badge {
  font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-faint); flex: none;
}
.attach-badge.unofficial { background: var(--impact-medium-tint); color: var(--impact-medium); border-color: var(--impact-medium-line); }
.attach-body { padding: 12px 13px; }
.attach-note { font-size: 11.5px; color: var(--ink-muted); margin: 0 0 10px; line-height: 1.5; }
.attach-table-wrap { overflow-x: auto; }
table.attach-table { border-collapse: collapse; width: 100%; font-size: 12px; }
table.attach-table th, table.attach-table td {
  text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.attach-table th {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700;
}
table.attach-table td { color: var(--ink); font-variant-numeric: tabular-nums; }
table.attach-table tr:last-child td { border-bottom: none; }
ul.attach-list { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--ink); }
ul.attach-list li { margin-bottom: 4px; }
.attach-foot { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--ink-faint); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.attach-foot a { font-weight: 700; }

.item-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 10px; flex-wrap: wrap; }
.source-link { font-size: 12px; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.official-tag { font-size: 10.5px; color: var(--ink-faint); }

/* ---------- Chronology view ---------- */
.chrono-note {
  font-size: 12.5px; color: var(--ink-muted); line-height: 1.55;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; margin: 16px 0 4px;
}
.chrono-note strong { color: var(--ink); }
.chrono-list {
  display: flex; flex-direction: column;
  margin-top: 14px; border-left: 2px solid var(--line); margin-left: 17px;
}
.chrono-row {
  display: flex; gap: 14px; padding: 12px 0 12px 20px; position: relative;
}
.chrono-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 800; font-size: 12px;
  margin-left: -37px; background: var(--surface); border: 2px solid var(--primary); color: var(--primary-strong);
}
.chrono-row.gap .chrono-num { border: 2px dashed var(--line-strong); color: var(--ink-faint); background: var(--bg); }
.chrono-body { flex: 1; padding-top: 3px; }
.chrono-title { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.chrono-row.gap .chrono-title { color: var(--ink-faint); font-style: italic; font-weight: 500; }
.chrono-meta { font-size: 11.5px; color: var(--ink-faint); margin-top: 3px; font-family: var(--font-mono); }
.chrono-link { font-size: 12px; font-weight: 600; margin-top: 5px; display: inline-block; }

/* ---------- Catalogue view ---------- */
.catalog-note {
  font-size: 12.5px; color: var(--ink-muted); line-height: 1.55;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; margin: 16px 0 4px;
}
.catalog-note strong { color: var(--ink); }
.catalog-search-row { display: flex; gap: 8px; margin-top: 12px; }
.catalog-search-row input[type="search"] { flex: 1; }
.synthese-search-row { display: flex; gap: 8px; margin-top: 12px; }
.synthese-search-row input[type="search"] { flex: 1; }
.synthese-group { margin-top: 22px; }
.synthese-group-title { font-family: var(--font-ui); font-weight: 800; font-size: 15px; color: var(--ink); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.synthese-group-count { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); font-weight: 600; }
.synthese-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.synthese-card {
  position: relative; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; box-shadow: var(--shadow); text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.synthese-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,35,65,.12); }
.synthese-badge { display: inline-block; margin-bottom: 6px; margin-right: 4px; padding: 2px 9px; border-radius: 999px; background: var(--amber-50); color: var(--amber-600); font: 800 10px var(--font-ui); }
.synthese-badge-applicability.is-applicable { background: var(--green-50); color: var(--green-600); }
.synthese-badge-applicability.is-superseded { background: var(--surface-2); color: var(--ink-faint); }
.synthese-badge-applicability.is-ambiguous { background: var(--red-50); color: var(--red-600); }
.synthese-card-title { font-size: 12.5px; color: var(--ink); line-height: 1.4; margin: 0 0 6px; }
.synthese-card-link { display: block; margin-top: 8px; font-size: 11.5px; font-weight: 800; color: var(--primary-strong); }
.catalog-stats { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sector-block { margin-top: 22px; }
.sector-title {
  font-family: var(--font-ui); font-weight: 800; font-size: 15px; color: var(--ink);
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.sector-count { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); font-weight: 600; }
.fiche-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.fiche-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; box-shadow: var(--shadow);
}
.fiche-card.is-abrogee { opacity: .6; }
.fiche-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.fiche-code-lg { font-family: var(--font-mono); font-size: 12.5px; font-weight: 800; color: var(--primary-strong); }
.fiche-status { font-size: 9.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; border: 1px solid transparent; text-transform: uppercase; letter-spacing: .01em; }
.fiche-status.active { background: var(--impact-low-tint); color: var(--impact-low); border-color: var(--impact-low-line); }
.fiche-status.abrogee { background: var(--surface-2); color: var(--ink-faint); border-color: var(--line); }
.fiche-card-title { font-size: 12.5px; color: var(--ink); line-height: 1.4; }
.fiche-pdf-link {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 8px;
  font-size: 11px; font-weight: 700; color: var(--primary-strong); text-decoration: none;
}
.fiche-pdf-link:hover { text-decoration: underline; }
.fiche-evolution { margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--line); font-size: 11px; }
.fiche-evolution a { font-weight: 600; }
.no-evolution { font-size: 11px; color: var(--ink-faint); margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--line); }

.fiche-guide-badge {
  display: inline-block; margin-top: 6px; font-size: 10px; font-weight: 700;
  color: var(--primary-strong); background: var(--primary-tint); border-radius: 999px; padding: 2px 8px;
}
.fiche-card.has-guide:has(.fiche-guide[open]) { grid-column: 1 / -1; }
.fiche-guide { margin-top: 9px; border-top: 1px solid var(--line); padding-top: 8px; }
.fiche-guide > summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--primary-strong); list-style: none; }
.fiche-guide > summary::-webkit-details-marker { display: none; }
.fiche-guide > summary::before { content: "▸ "; }
.fiche-guide[open] > summary::before { content: "▾ "; }
.fiche-guide-body { margin-top: 10px; font-size: 12.5px; color: var(--ink); line-height: 1.55; }
.fiche-guide-body section { margin-top: 14px; }
.fiche-guide-body h4 { font-size: 12px; font-weight: 800; color: var(--ink); margin: 0 0 6px; }
.fiche-guide-body ul, .fiche-guide-body ol { margin: 0; padding-left: 18px; }
.fiche-guide-body li { margin-bottom: 4px; }
.fiche-guide-version { font-size: 11px; color: var(--ink-faint); font-family: var(--font-mono); }
.fiche-version { margin: 5px 0 0; color: var(--ink-muted); font: 600 11px var(--font-mono); }
.fiche-version.upcoming { color: var(--impact-medium); }
.fiche-guide-badge.outdated { background: var(--impact-medium-tint); color: var(--impact-medium); border-color: var(--impact-medium-line); }
.fiche-guide-outdated {
  margin-top: 8px; padding: 9px 11px; border-radius: var(--radius-sm);
  background: var(--impact-medium-tint); border: 1px solid var(--impact-medium-line); color: var(--impact-medium);
  font-size: 12px; font-weight: 700; line-height: 1.5;
}
.fiche-guide-outdated a { color: inherit; text-decoration: underline; }
.fiche-guide-stale {
  margin-top: 8px; padding: 8px 10px; border-radius: var(--radius-sm);
  background: var(--impact-medium-tint); border: 1px solid var(--impact-medium-line); color: var(--impact-medium);
  font-size: 11.5px; line-height: 1.5;
}
.fiche-guide-stale a { color: inherit; font-weight: 700; }
.fiche-guide-note { font-size: 11px; color: var(--ink-faint); margin-top: 6px; }
.fiche-guide-formula { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); background: var(--surface-2); border-radius: var(--radius-sm); padding: 6px 9px; margin: 6px 0; }
.fiche-guide-variables { font-size: 11.5px; margin: 6px 0 0; padding-left: 18px; }
.fiche-guide-variables li { margin-bottom: 3px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.pill-list li { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; font-size: 11px; margin: 0; }
.fiche-guide-table-wrap { overflow-x: auto; }
.fiche-guide-table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 11.5px; }
.fiche-guide-table caption { text-align: left; font-size: 11px; color: var(--ink-faint); margin-bottom: 6px; caption-side: top; }
.fiche-guide-table th, .fiche-guide-table td { border: 1px solid var(--line); padding: 4px 7px; text-align: right; }
.fiche-guide-table th:first-child, .fiche-guide-table td:first-child,
.fiche-guide-table th:nth-child(2), .fiche-guide-table td:nth-child(2) { text-align: left; }
.fiche-guide-table thead th { background: var(--surface-2); font-weight: 700; }
.control-rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 8px 0; }
.control-rates ul { padding-left: 16px; margin-top: 4px; }
.fiche-guide-sources ul { padding-left: 16px; }
.fiche-guide-disclaimer { margin-top: 14px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 10.5px; color: var(--ink-faint); }

footer.page-foot {
  margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-faint); display: flex; flex-direction: column; gap: 6px;
}
footer.page-foot a { color: var(--ink-muted); }
#raw-data summary { cursor: pointer; color: var(--ink-muted); }
#raw-data summary:hover { color: var(--ink); }
#raw-data pre {
  margin-top: 10px; padding: 12px 14px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 10.5px; line-height: 1.5; color: var(--ink-muted);
  max-height: 320px; overflow: auto;
}

@media (max-width: 560px) {
  /* Sur petit écran, l'en-tête (titre + badges + glossaire + stats + onglets) dépasse
     facilement la hauteur de l'écran. En position "sticky", il peut alors occuper tout
     le viewport et masquer le registre en dessous. On désactive donc le collage sur
     mobile : l'en-tête défile normalement avec le reste de la page. */
  header.top { position: static; }
  .filter-bar { position: static; top: auto; }
  h1 { font-size: 23px; }
}
.site-switch { display: flex; max-width: 900px; margin: 0 auto; }
.site-tab { flex: 1; text-align: center; padding: 11px 12px; font-family: var(--font-ui); font-size: 12.5px; font-weight: 700; background: var(--surface); border: none; border-bottom: 2px solid var(--line); cursor: pointer; color: var(--ink-muted); }
.site-tab.active { color: var(--primary-strong); border-bottom-color: var(--primary); background: var(--primary-tint); }
.site-tab:hover:not(.active) { color: var(--ink); background: var(--surface-2); }
#otherSiteFrameWrap { display: none; }
#otherSiteFrameWrap.visible { display: block; }
iframe.site-frame { width: 100%; height: calc(100vh - 45px); border: 0; display: block; background: var(--bg); }
@media (max-width: 560px) { .site-tab { font-size: 11px; padding: 10px 6px; } }

/* --- Redesign additions --- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-muted); background: none; border-radius: 0; padding: 0;
}
.hero-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.hero-text { flex: 1 1 auto; min-width: 0; }
.hero-illustration { flex: none; display: none; margin-top: -6px; }
@media (min-width: 720px) { .hero-illustration { display: block; } }
.meta-strip { row-gap: 8px; }
.meta-item { display: inline-flex; align-items: center; gap: 6px; }
.meta-icon { width: 13px; height: 13px; color: var(--ink-faint); flex: none; }
#glossary summary {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--primary-tint); color: var(--primary-strong);
  border-radius: 999px; padding: 6px 12px 6px 10px;
}
#glossary summary::before { font-size: 13px; margin-right: 1px; }
.stat-tile { position: relative; overflow: hidden; padding-top: 42px; }
.stat-icon-wrap {
  position: absolute; top: 12px; left: 13px; width: 28px; height: 28px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.stat-tile.total .stat-icon-wrap { background: var(--primary-tint); color: var(--primary-strong); }
.stat-tile.high .stat-icon-wrap { background: var(--impact-high-tint); color: var(--impact-high); }
.stat-tile.medium .stat-icon-wrap { background: var(--impact-medium-tint); color: var(--impact-medium); }
.stat-tile.low .stat-icon-wrap { background: var(--impact-low-tint); color: var(--impact-low); }
.stat-icon { width: 15px; height: 15px; }
.stat-spark { display: block; width: 100%; height: 20px; margin-top: 9px; }
.stat-spark polyline { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stat-tile.total .stat-spark polyline { stroke: var(--primary); }
.stat-tile.high .stat-spark polyline { stroke: var(--impact-high); }
.stat-tile.medium .stat-spark polyline { stroke: var(--impact-medium); }
.stat-tile.low .stat-spark polyline { stroke: var(--impact-low); }
.view-tab { display: inline-flex; align-items: center; gap: 6px; }
.tab-icon { width: 21px; height: 21px; flex: none; }
.item-head { position: relative; }
.item-actions { float: right; display: inline-flex; align-items: center; gap: 10px; }
.item-actions .chev { float: none; }
.bookmark-icon { width: 14px; height: 14px; color: var(--ink-faint); }

/* ---------- Compliance dashboard refresh (CEE France) ---------- */
/* Ce bloc l'emporte sur les précédents : palette et police de la refonte du 2026-10-24. */
:root {
  --bg: #F6FAF8;
  --surface: #ffffff;
  --surface-2: #F1F7F5;
  --ink: #0B2620;
  --ink-muted: #3F5B54;
  --ink-faint: #5B7770;
  --line: #D5E7E1;
  --line-strong: #C3DBD3;
  --primary: #0F766E;
  --primary-strong: #115E59;
  --primary-tint: #CCFBEF;
  --shadow: 0 1px 2px rgba(11, 38, 32, .04);
  --radius: 16px;
  --radius-sm: 12px;
  --font-ui: "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
body { background: var(--bg); letter-spacing: -.005em; }
.top-accent { height: 3px; background: var(--primary); }
.site-switch { max-width: none; min-height: 64px; margin: 0; padding: 0 max(20px, calc((100% - 1120px) / 2)); background: #fff; border-bottom: 1px solid var(--line); align-items: stretch; gap: 2px; }
.site-brand { display: flex; flex: 1 1 220px; flex-direction: column; justify-content: center; min-width: 176px; margin-right: 20px; }
.site-brand strong { color: var(--navy-950); font-size: 14px; letter-spacing: -.015em; }
.site-brand small { margin-top: 2px; color: var(--text-muted); font-size: 9.5px; font-weight: 700; letter-spacing: .035em; }
.site-tab { flex: 0 0 auto; min-width: 142px; padding: 15px 17px 13px; font-size: 12px; letter-spacing: .01em; background: transparent; border-bottom: 3px solid transparent; }
.guide-link { min-width: auto; margin-left: auto; }
.notification-zone { margin-left: 6px; }
.account-zone { margin-left: 6px; }
.site-tab.active { color: var(--primary-strong); border-bottom-color: var(--primary); background: transparent; }
.site-tab.active::after { content: "ACTIF"; margin-left: 9px; padding: 3px 6px; border-radius: 999px; background: var(--primary-tint); color: var(--primary-strong); font-size: 8.5px; letter-spacing: .08em; }
.wrap { max-width: 1120px; padding: 0 24px 80px; }
header.top { position: static; background: transparent; border: 0; padding: 37px 0 18px; }
.eyebrow { color: var(--primary-strong); font-weight: 800; letter-spacing: .11em; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-tint); }
.hero-row { align-items: center; gap: 28px; margin: 9px 0 13px; }
h1 { max-width: 760px; font-size: clamp(32px, 4vw, 47px); line-height: 1.08; letter-spacing: -.04em; margin-bottom: 12px; }
.subhead { max-width: 72ch; font-size: 14.5px; line-height: 1.62; }
.hero-illustration { display: block; padding: 8px; border-radius: 22px; background: radial-gradient(circle at 30% 25%, #fff, var(--primary-tint)); }
.trust-row { gap: 9px; margin: 15px 0 13px; }
.trust-badge { padding: 7px 11px; background: #fff; color: #2b6b48; border-color: #cfe9d9; box-shadow: 0 2px 8px rgba(25, 75, 46, .04); }
.trust-badge .check { color: var(--impact-low); font-weight: 900; }
.meta-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.meta-strip > span { padding: 11px 15px; border-right: 1px solid var(--line); }
.meta-strip > span:nth-child(even) { display: none; }
.meta-strip > span:last-child { border-right: 0; }
#glossary { margin-top: 12px; }
#glossary summary { background: transparent; border: 0; color: var(--ink-faint); padding: 4px 0; font-size: 11.5px; font-weight: 700; }
#glossary summary::before { content: none; }
#glossary summary::after { content: "→"; font-size: 12px; }
#glossary summary:hover { border-color: var(--primary); color: var(--primary-strong); }
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.stats-row::before { content: "À retenir"; grid-column: 1 / -1; margin-bottom: -4px; font-size: 11px; font-weight: 800; color: var(--ink-faint); letter-spacing: .1em; text-transform: uppercase; }
.stat-tile { min-height: 124px; padding: 47px 16px 13px; border-radius: var(--radius); border-color: var(--line); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.stat-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(28, 47, 78, .11); }
.stat-spark { display: none; }
.kpi-filter { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.kpi-filter:focus-visible { outline: 3px solid rgba(20, 99, 216, .28); outline-offset: 2px; }
.kpi-filter.kpi-active { background: var(--blue-50); border-color: #BFDBFE; }
.kpi-filter.high.kpi-active { background: var(--red-50); border-color: var(--red-100); }
.kpi-filter.medium.kpi-active { background: var(--amber-50); border-color: var(--amber-100); }
.kpi-filter.low.kpi-active { background: var(--green-50); border-color: var(--green-100); }
.stat-tile .n { font-size: 31px; font-weight: 900; letter-spacing: -.055em; }
.stat-tile .l { font-size: 12px; }
.stat-tile .stat-icon-wrap { top: 15px; left: 16px; width: 29px; height: 29px; }
.action-panel { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(220px, .8fr); gap: 12px; margin: 22px 0 22px; }
.priority-card, .update-card { min-height: 118px; padding: 15px 18px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.priority-card { border: 1px solid var(--impact-high-line); background: linear-gradient(100deg, #fff7f5, #fff); }
.update-card { border: 1px solid var(--line); }
.action-panel .action-label { margin: 0 0 3px; color: var(--impact-high); font-size: 10px; font-family: var(--font-mono); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.action-panel h2 { margin: 0; color: var(--ink); font-size: 16px; letter-spacing: -.015em; }
.priority-count { color: var(--impact-high); font-size: 24px; font-weight: 900; }
.update-card .action-label { color: var(--primary-strong); }
.update-card p:last-child { margin: 7px 0 0; color: var(--ink-muted); font-size: 12px; line-height: 1.55; }
.update-state { color: var(--impact-low); font-weight: 800; }
.update-state.partial { color: var(--amber-600); }
.update-state.unavailable { color: var(--ink-faint); }
.watch-detail { margin-top: 7px; font-size: 11px; color: var(--ink-muted); }
.watch-detail summary { cursor: pointer; color: var(--blue-600); font-weight: 800; }
.watch-detail ul { margin: 6px 0 0; padding-left: 16px; }
.watch-detail li { margin: 2px 0; }
.watch-health { margin: 0 0 22px; padding: 17px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.watch-health-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.watch-health-label { margin: 0 0 4px; color: var(--ink-faint); font: 800 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.watch-health-status { margin: 0; color: var(--impact-low); font-size: 16px; font-weight: 900; letter-spacing: -.015em; }
.watch-health-status.degraded { color: var(--amber-600); }
.watch-health-status.critical { color: var(--impact-high); }
.watch-health-date { margin: 5px 0 0; color: var(--ink-muted); font-size: 11.5px; }
.watch-health-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.watch-health-group { min-height: 76px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.watch-health-group.complete { border-color: #cfe9d9; background: #f5fbf7; }
.watch-health-group.partial { border-color: var(--amber-100); background: var(--amber-50); }
.watch-health-group.critical { border-color: var(--red-100); background: var(--red-50); }
.watch-health-group p { margin: 0; color: var(--ink-muted); font-size: 11px; font-weight: 800; }
.watch-health-group strong { display: block; margin-top: 5px; color: var(--ink); font: 900 22px var(--font-mono); letter-spacing: -.04em; }
.watch-health details { margin-top: 13px; border-top: 1px solid var(--line); padding-top: 11px; }
.watch-health summary { cursor: pointer; color: var(--blue-600); font-size: 11.5px; font-weight: 800; }
.watch-health-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 11px 0 0; padding: 0; list-style: none; }
.watch-health-list li { color: var(--ink-muted); font-size: 11.5px; line-height: 1.45; }
.watch-health-list strong { color: var(--ink); }
.watch-health-list .failed { color: var(--amber-600); }
.watch-health-list .failed.critical { color: var(--impact-high); }
.watch-health-note { display: block; margin-top: 2px; color: var(--ink-faint); font-size: 10.5px; }
.action-panel .action-link { margin-top: 9px; flex: none; border: 1px solid #e8aaa0; border-radius: 999px; background: #fff; color: #ad3024; padding: 6px 11px; font: 700 11.5px var(--font-ui); cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.action-panel .action-link:hover { background: var(--impact-high); color: #fff; transform: translateX(2px); }
.view-tabs { gap: 2px; margin: 0; padding: 4px; width: fit-content; background: #E6F1ED; border-radius: 11px; }
.view-tab { padding: 8px 13px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-muted); box-shadow: none; }
.view-tab.active { background: #fff; color: var(--primary-strong); box-shadow: 0 2px 8px rgba(29, 58, 99, .1); }
.filter-bar { position: static; margin-top: 18px; padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.filter-controls { display: flex; gap: 9px; align-items: center; }
.filter-toggle { padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink-muted); font: 800 12px var(--font-ui); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.filter-toggle:hover, .filter-toggle[aria-expanded="true"], .filter-toggle[aria-pressed="true"] { border-color: var(--primary); color: var(--primary-strong); background: var(--primary-tint); }
.filter-details { display: none; margin-top: 12px; }
.filter-bar.filters-open .filter-details { display: block; }
.active-filters { display: none; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0f2f6; }
.active-filters.has-filters { display: flex; }
.active-filters-label { color: var(--ink-faint); font: 800 10px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.active-filter { display: inline-flex; align-items: center; gap: 6px; padding: 5px 7px 5px 9px; border: 1px solid #bad2f6; border-radius: 999px; background: var(--primary-tint); color: var(--primary-strong); font: 700 11px var(--font-ui); }
.active-filter button { display: grid; place-items: center; width: 16px; height: 16px; border: 0; border-radius: 50%; background: transparent; color: inherit; font: 700 14px/1 var(--font-ui); cursor: pointer; }
.active-filter button:hover { background: #d8e8fd; }
.filter-row { gap: 7px; }
.filter-row + .filter-row { padding-top: 12px; border-top: 1px solid #f0f2f6; }
.filter-row .label { min-width: 138px; color: var(--ink-faint); font-weight: 800; }
.chip { padding: 6px 11px; color: var(--ink-muted); transition: color .15s, border-color .15s, background .15s, transform .15s; }
.chip:hover { transform: translateY(-1px); background: var(--primary-tint); }
.search-row { margin-top: 0; padding-top: 0; border-top: 0; }
input[type="search"] { padding: 11px 13px 11px 39px; background: #fbfcfe; border-color: var(--line-strong); box-shadow: inset 0 1px 1px rgba(19, 35, 59, .02); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238792a5' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 17px; background-position: 13px center; }
input[type="search"]:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(20, 99, 216, .12); outline: none; }
.btn { padding: 10px 15px; box-shadow: none; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.feed { gap: 12px; margin-top: 16px; }
.item { position: relative; border-left-width: 5px; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.item:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(28, 47, 78, .11); }
.item-head { padding: 18px 64px 17px 19px; }
h3.item-title { font-size: 17px; line-height: 1.35; margin-top: 5px; }
.item-summary { line-height: 1.6; }
.item-actors { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 10px; }
.item-actors-label { color: var(--ink-faint); font: 800 9.5px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; margin-right: 2px; }
.item-actor { padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-muted); background: var(--surface-2); font-size: 10.5px; font-weight: 700; }
.item-detail-link { display: inline-flex; margin-top: 13px; color: var(--primary-strong); font-size: 11.5px; font-weight: 800; }
.item-detail-link::after { content: "→"; margin-left: 6px; }
.bookmark-button { position: absolute; z-index: 2; top: 17px; right: 17px; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink-faint); cursor: pointer; transition: color .15s, border-color .15s, background .15s, transform .15s; }
.bookmark-button:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-tint); transform: translateY(-1px); }
.bookmark-button.is-favorite { color: var(--primary); border-color: #b6d0f8; background: var(--primary-tint); }
.bookmark-button.is-favorite .bookmark-icon { fill: currentColor; }
.bookmark-icon { width: 16px; height: 16px; }
.item-actions { display: none; }
.item-body { padding: 0 19px 19px; }
.chrono-note, .catalog-note { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.fiche-card { border-radius: var(--radius-sm); transition: transform .15s, box-shadow .15s; }
.fiche-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
footer.page-foot { margin-top: 48px; }
@media (max-width: 760px) {
  .wrap { padding-inline: 16px; }
  header.top { padding-top: 30px; }
  .hero-illustration { display: none; }
  .meta-strip, .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta-strip > span:nth-child(3) { border-right: 0; }
  .meta-strip > span:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .filter-row .label { min-width: 100%; }
}
@media (max-width: 760px) {
  .site-brand { flex: 0 0 auto; min-width: 144px; margin-right: 6px; }
  .site-brand small { display: none; }
  .site-tab { min-width: 0; padding-inline: 11px; }
}
@media (max-width: 560px) {
  .site-switch { min-height: 52px; padding-inline: 8px; gap: 0; }
  .site-brand { display: none; }
  .site-tab { flex: 1; min-width: 0; padding: 13px 7px 11px; }
  .guide-link { margin-left: 0; }
  .site-tab.active::after { display: none; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-tile { min-height: 126px; padding: 50px 13px 12px; }
  .action-panel { grid-template-columns: 1fr; gap: 10px; }
  .priority-card, .update-card { padding: 16px; }
  .watch-health-grid, .watch-health-list { grid-template-columns: 1fr; }
  .view-tabs { width: 100%; }
  .view-tab { flex: 1; justify-content: center; padding-inline: 7px; font-size: 11px; }
  .tab-icon { display: none; }
  .filter-controls, .search-row { align-items: stretch; flex-direction: column; }
  .filter-toggle { width: 100%; }
  .item-head { padding: 16px 55px 16px 15px; }
  .bookmark-button { top: 14px; right: 13px; }
}
@media (max-width: 360px) { .stats-row { grid-template-columns: 1fr; } }

/* ---------- Premium compliance palette ---------- */
:root, :root[data-theme="light"], :root[data-theme="dark"] {
  --bg: var(--page-bg); --surface: #fff; --surface-2: var(--surface-soft);
  --ink: var(--text-primary); --ink-muted: var(--text-secondary); --ink-faint: var(--text-muted);
  --line: var(--border); --line-strong: var(--border-strong);
  --primary: var(--blue-600); --primary-strong: var(--blue-600); --primary-tint: var(--blue-50);
  --impact-high: var(--red-600); --impact-high-tint: var(--red-50); --impact-high-line: var(--red-100);
  --impact-medium: var(--amber-600); --impact-medium-tint: var(--amber-50); --impact-medium-line: var(--amber-100);
  --impact-low: var(--green-600); --impact-low-tint: var(--green-50); --impact-low-line: var(--green-100);
  --impact-info: var(--blue-600); --impact-info-tint: var(--blue-50); --impact-info-line: var(--blue-100);
  --shadow: 0 8px 24px rgba(15, 35, 65, .06);
}
body { background: var(--page-bg); color: var(--text-primary); }
.site-switch { background: #fff; box-shadow: 0 1px 0 var(--border); }
.site-tab { color: var(--navy-900); }
.site-tab.active { color: var(--blue-600); border-bottom-color: var(--blue-600); }
.guide-link { text-decoration: none; }
.site-tab.active::after { background: var(--blue-50); color: var(--blue-600); }
.top-accent { background: var(--blue-600); }
h1, h2, h3.item-title, .sector-title, .fiche-card-title { color: var(--navy-950); }
.subhead, .item-summary, .update-card p:last-child { color: var(--text-secondary); }
.meta-strip, .stat-tile, .priority-card, .update-card, .filter-bar, .item, .fiche-card, .chrono-note, .catalog-note { background: #fff; border-color: var(--border); }
.item:hover, .stat-tile:hover { box-shadow: 0 12px 30px rgba(15, 35, 65, .09); }
.eyebrow, .update-card .action-label, .item-detail-link, .source-link, .fiche-pdf-link { color: var(--blue-600); }
.trust-badge { background: #fff; color: var(--green-600); border-color: var(--green-100); }
.stat-tile.total .n, .stat-tile.total .stat-icon-wrap { color: var(--blue-600); }
.stat-tile.total .stat-icon-wrap { background: var(--blue-50); }
.stat-tile.high .n, .stat-tile.high .stat-icon-wrap { color: var(--red-600); }
.stat-tile.high .stat-icon-wrap { background: var(--red-50); }
.stat-tile.medium .n, .stat-tile.medium .stat-icon-wrap { color: var(--amber-600); }
.stat-tile.medium .stat-icon-wrap { background: var(--amber-50); }
.stat-tile.low .n, .stat-tile.low .stat-icon-wrap { color: var(--green-600); }
.stat-tile.low .stat-icon-wrap { background: var(--green-50); }
.priority-card { border-left: 4px solid var(--red-600); background: #fff; }
.action-panel .action-label { color: var(--red-600); }
.priority-count { color: var(--red-600); }
.action-panel .action-link { color: var(--red-600); border-color: #f0b8b3; }
.action-panel .action-link:hover { background: var(--red-600); border-color: var(--red-600); }
.update-state { color: var(--green-600); }
.view-tabs { background: var(--surface-soft); }
.view-tab.active { color: var(--blue-600); }
.btn { background: var(--blue-600); border-color: var(--blue-600); }
.btn:hover { background: #115E59; border-color: #115E59; }
.filter-toggle, .chip { color: var(--navy-900); border-color: var(--border); background: #fff; }
.filter-toggle:hover, .filter-toggle[aria-expanded="true"], .filter-toggle[aria-pressed="true"], .chip:hover { color: var(--blue-600); border-color: var(--blue-100); background: var(--blue-50); }
.chip.active { color: var(--blue-600); border-color: #BFDBFE; background: var(--blue-50); box-shadow: none; }
#impactRow .chip[data-impact="high"].active { color: var(--red-600); border-color: var(--red-100); background: var(--red-50); }
#impactRow .chip[data-impact="medium"].active { color: var(--amber-600); border-color: var(--amber-100); background: var(--amber-50); }
#impactRow .chip[data-impact="low"].active { color: var(--green-600); border-color: var(--green-100); background: var(--green-50); }
input[type="search"] { color: var(--navy-950); background-color: var(--surface-soft); border-color: var(--border); }
input[type="search"]:focus { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(15, 118, 110, .12); }
.active-filter { color: var(--blue-600); border-color: #BFDBFE; background: var(--blue-50); }
.item { border-left-width: 4px; }
.tag.impact-high { color: var(--red-600); background: var(--red-50); border-color: var(--red-100); }
.tag.impact-medium { color: var(--amber-600); background: var(--amber-50); border-color: var(--amber-100); }
.tag.impact-low { color: var(--green-600); background: var(--green-50); border-color: var(--green-100); }
.tag.impact-info { color: var(--blue-600); background: var(--blue-50); border-color: var(--blue-100); }
.tag.new { background: var(--blue-600); }
.bookmark-button:hover, .bookmark-button.is-favorite { color: var(--blue-600); border-color: #BFDBFE; background: var(--blue-50); }

/* ---------- Register overview ---------- */
.register-overview { margin: 2px 0 20px; }
.overview-heading, .registry-heading { margin: 0 0 10px; color: var(--text-muted); font: 800 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.overview-panel { padding: 13px; border: 1px solid var(--border); border-top: 3px solid var(--blue-600); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow); }
.overview-panel.high { border-top-color: var(--red-600); }
.overview-panel.medium { border-top-color: var(--amber-600); }
.overview-panel-title { margin: 0 0 10px; color: var(--navy-950); font-size: 13px; font-weight: 800; }
.overview-list { display: grid; gap: 7px; }
.overview-card { padding: 9px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.overview-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-bottom: 5px; }
.overview-date { color: var(--text-muted); font: 700 10px var(--font-mono); }
.overview-card .tag { padding: 2px 6px; font-size: 9px; }
.overview-title { display: -webkit-box; overflow: hidden; margin: 0; color: var(--navy-950); font-size: 11.5px; font-weight: 750; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.overview-summary { display: -webkit-box; overflow: hidden; margin: 4px 0 0; color: var(--text-secondary); font-size: 10.5px; line-height: 1.4; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.overview-see { margin-top: 6px; padding: 0; border: 0; background: transparent; color: var(--blue-600); font: 800 10.5px var(--font-ui); cursor: pointer; }
.overview-panel.high .overview-see { color: var(--red-600); }
.overview-panel.medium .overview-see { color: var(--amber-600); }
.overview-see:hover, .overview-all:hover { text-decoration: underline; }
.overview-all { margin-top: 10px; padding: 0; border: 0; background: transparent; color: var(--blue-600); font: 800 11px var(--font-ui); cursor: pointer; }
.overview-panel.high .overview-all { color: var(--red-600); }
.overview-panel.medium .overview-all { color: var(--amber-600); }
.registry-heading { margin: 0 0 -4px; padding-top: 1px; }
@media (max-width: 760px) { .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .overview-panel.medium { grid-column: 1 / -1; } }
@media (max-width: 560px) { .overview-grid { grid-template-columns: 1fr; } .overview-panel.medium { grid-column: auto; } }

/* ---------- Regulatory analysis detail ---------- */
.item-body { display: block; max-height: 0; margin-top: 0; padding: 0 19px; overflow: hidden; opacity: 0; border-top: 0; transition: max-height .28s ease, opacity .2s ease, padding .28s ease; }
.item.open .item-body { display: block; max-height: 5000px; margin-top: 2px; padding: 17px 19px 19px; opacity: 1; border-top: 1px solid var(--border); }
.analysis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.analysis-section { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-soft); }
.analysis-section.full { grid-column: 1 / -1; }
.analysis-section h4 { margin: 0 0 9px; color: var(--navy-950); font-size: 12px; font-weight: 800; }
.analysis-section p { margin: 0; color: var(--text-secondary); font-size: 12.5px; line-height: 1.6; }
.analysis-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.analysis-date { color: var(--text-secondary); font: 700 10.5px var(--font-mono); }
.analysis-actors { display: grid; gap: 7px; }
.analysis-actor { padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.analysis-actor-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.analysis-actor-name { color: var(--navy-900); font-size: 11.5px; font-weight: 800; }
.analysis-actor p { font-size: 11.5px; line-height: 1.5; }
.analysis-fiches { display: flex; flex-wrap: wrap; gap: 6px; }
.analysis-fiches .fiche-code { background: #fff; color: var(--blue-600); border-color: var(--blue-100); padding: 4px 8px; }
.analysis-source { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.analysis-source-meta { color: var(--text-secondary); font-size: 11.5px; }
.source-trust { display: inline-flex; align-items: center; padding: 4px 7px; border: 1px solid var(--border); border-radius: 999px; font: 800 10px var(--font-ui); }
.source-trust.verified { border-color: var(--green-100); background: var(--green-50); color: var(--green-600); }
.source-trust.confirm { border-color: var(--amber-100); background: var(--amber-50); color: var(--amber-600); }
/* Mention sous la source d'une entrée officielle (2026-10-25). */
.source-notice { margin: 10px 0 0; color: var(--text-muted, #5B7770); font-size: 12px; line-height: 1.5; }
.source-notice a { color: var(--primary, #0F766E); font-weight: 700; }
.analysis-source-link { display: inline-flex; align-items: center; padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; color: var(--blue-600); font-size: 11.5px; font-weight: 800; text-decoration: none; transition: border-color .16s ease, background .16s ease; }
.analysis-source-link:hover { border-color: var(--blue-600); background: var(--blue-50); }
.analysis-disclaimer { margin-top: 9px !important; padding-top: 9px; border-top: 1px solid var(--border); color: var(--text-muted) !important; font-size: 10.5px !important; line-height: 1.5 !important; }
.analysis-attachments { margin-top: 11px; }
.analysis-attachments .attach-block { margin-top: 0; background: #fff; }
@media (max-width: 560px) { .analysis-grid { grid-template-columns: 1fr; } .analysis-section.full { grid-column: auto; } .item.open .item-body { padding-inline: 15px; } }

/* ---------- Operational actions ---------- */
.actions-panel { margin: 0 0 18px; }
.actions-head { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; }
.actions-title { margin: 0; color: var(--text-muted); font: 800 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.actions-note { margin: 0 0 8px; color: var(--text-muted); font-size: 10.5px; }
.actions-help { margin-left: auto; border: 0; background: transparent; color: var(--blue-600); font: 800 10.5px var(--font-ui); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.actions-explanation { margin: 0 0 9px; padding: 9px 11px; border: 1px solid var(--blue-100); border-radius: 8px; background: var(--blue-50); color: var(--text-secondary); font-size: 10.5px; line-height: 1.45; }
.actions-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.action-filter { min-height: 63px; padding: 10px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--navy-900); font: inherit; text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; }
.action-filter:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15, 35, 65, .07); }
.action-filter:focus-visible { outline: 3px solid rgba(15, 118, 110, .24); outline-offset: 2px; }
.action-filter-count { font: 900 20px/1 var(--font-mono); }
.action-filter-label { margin-top: 5px; font-size: 10.5px; font-weight: 750; }
.action-filter.analyze .action-filter-count { color: var(--blue-600); }
.action-filter.apply .action-filter-count { color: var(--red-600); }
.action-filter.monitor .action-filter-count { color: var(--amber-600); }
.action-filter.deadline .action-filter-count { color: #7C3AED; }
.action-filter.info .action-filter-count { color: var(--text-secondary); }
.action-filter.is-active.analyze { color: var(--blue-600); border-color: #BFDBFE; background: var(--blue-50); }
.action-filter.is-active.apply { color: var(--red-600); border-color: var(--red-100); background: var(--red-50); }
.action-filter.is-active.monitor { color: var(--amber-600); border-color: var(--amber-100); background: var(--amber-50); }
.action-filter.is-active.deadline { color: #6D28D9; border-color: #DDD6FE; background: #F5F3FF; }
.action-filter.is-active.info { color: var(--blue-600); border-color: #BFDBFE; background: var(--blue-50); }
.sort-control { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.sort-control select { padding: 8px 24px 8px 9px; border: 1px solid var(--border-strong); border-radius: 999px; background: #fff; color: var(--navy-900); font: inherit; cursor: pointer; }
.item-actions-label { margin: 10px 0 4px; color: var(--text-muted); font: 800 9.5px var(--font-mono); letter-spacing: .07em; text-transform: uppercase; }
.item-action-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.item-action-tag { padding: 3px 7px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-soft); color: var(--text-secondary); font-size: 10px; font-weight: 800; }
.item-action-tag.apply { color: var(--red-600); border-color: var(--red-100); background: var(--red-50); }
.item-action-tag.monitor { color: var(--amber-600); border-color: var(--amber-100); background: var(--amber-50); }
.item-action-tag.analyze { color: var(--blue-600); border-color: var(--blue-100); background: var(--blue-50); }
.item-action-tag.deadline { color: #6D28D9; border-color: #DDD6FE; background: #F5F3FF; }
@media (max-width: 760px) { .actions-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sort-control { justify-content: space-between; } }

/* ---------- Personal tracking ---------- */
.priorities-panel { margin: 0 0 13px; padding: 12px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow); }
.priorities-title { margin: 0 0 9px; color: var(--text-muted); font: 800 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.priorities-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.priority-filter { min-height: 49px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); color: var(--navy-900); text-align: left; cursor: pointer; }
.priority-filter:hover, .priority-filter.is-active { border-color: var(--blue-100); background: var(--blue-50); }
.priority-filter-count { display: block; color: var(--blue-600); font: 900 18px/1 var(--font-mono); }
.priority-filter-label { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 800; }
.tracking-panel { margin: 0 0 14px; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow); }
.tracking-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tracking-title { margin: 0; color: var(--text-muted); font: 800 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.tracking-tools { display: flex; gap: 6px; }
.tracking-tool { padding: 5px 8px; border: 1px solid var(--border-strong); border-radius: 7px; background: #fff; color: var(--blue-600); font: 800 10.5px var(--font-ui); cursor: pointer; }
.tracking-tool:hover { border-color: var(--blue-600); background: var(--blue-50); }
.tracking-grid { display: flex; gap: 7px; }
.tracking-filter { padding: 5px 8px; display: inline-flex; align-items: baseline; gap: 5px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-soft); color: var(--navy-900); font: inherit; text-align: left; cursor: pointer; }
.tracking-filter:focus-visible, .tracking-select:focus-visible, .tracking-tool:focus-visible { outline: 3px solid rgba(15, 118, 110, .24); outline-offset: 2px; }
.tracking-filter-count { font: 900 15px/1 var(--font-mono); }
.tracking-filter-label { font-size: 10px; font-weight: 800; }
.tracking-filter.todo .tracking-filter-count { color: var(--red-600); }
.tracking-filter.progress .tracking-filter-count { color: var(--blue-600); }
.tracking-filter.done .tracking-filter-count { color: var(--green-600); }
.tracking-filter.is-active.todo { border-color: var(--red-100); background: var(--red-50); }
.tracking-filter.is-active.progress { border-color: #BFDBFE; background: var(--blue-50); }
.tracking-filter.is-active.done { border-color: var(--green-100); background: var(--green-50); }
.tracking-control { position: absolute; z-index: 2; top: 17px; right: 59px; display: flex; align-items: center; gap: 5px; }
.tracking-control label { color: var(--text-muted); font: 800 9px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.tracking-select { max-width: 106px; padding: 6px 20px 6px 7px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text-secondary); font: 700 10px var(--font-ui); cursor: pointer; }
.tracking-select.status-todo { color: var(--red-600); border-color: var(--red-100); background: var(--red-50); }
.tracking-select.status-progress { color: var(--blue-600); border-color: #BFDBFE; background: var(--blue-50); }
.tracking-select.status-done { color: var(--green-600); border-color: var(--green-100); background: var(--green-50); }
@media (max-width: 560px) { .tracking-head { align-items: flex-start; flex-direction: column; } .tracking-grid { grid-template-columns: 1fr; } .tracking-tools { width: 100%; } .tracking-tool { flex: 1; } .tracking-control { top: 14px; right: 55px; } .tracking-control label { display: none; } .tracking-select { max-width: 102px; } }

/* ---------- Future account surface ---------- */
.account-zone { position: relative; margin-left: auto; align-self: center; }
.notification-zone { position: relative; align-self: center; margin-left: auto; }
.notification-button { position: relative; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; color: var(--navy-900); font-size: 16px; cursor: pointer; }
.notification-button:hover, .notification-button[aria-expanded="true"] { border-color: var(--blue-600); color: var(--blue-600); background: var(--blue-50); }
.notification-count { position: absolute; top: -6px; right: -7px; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid #fff; border-radius: 999px; background: var(--red-600); color: #fff; font: 800 9px/13px var(--font-mono); text-align: center; }
.notification-count[hidden] { display: none; }
.notification-panel { position: absolute; z-index: 22; top: calc(100% + 8px); right: 0; width: min(410px, calc(100vw - 24px)); max-height: min(620px, calc(100vh - 84px)); overflow: auto; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 18px 42px rgba(15, 35, 65, .16); }
.notification-panel[hidden] { display: none; }
.notification-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.notification-head h2 { margin: 0; color: var(--navy-950); font-size: 16px; }
.notification-read-all { padding: 5px 7px; border: 0; background: transparent; color: var(--blue-600); font: 800 10px var(--font-ui); cursor: pointer; }
.notification-filter-row { display: flex; gap: 5px; margin: 12px 0 9px; overflow-x: auto; }
.notification-filter { flex: 0 0 auto; padding: 5px 8px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text-secondary); font: 800 10px var(--font-ui); cursor: pointer; }
.notification-filter.is-active { border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-600); }
.notification-list { display: grid; gap: 7px; }
.notification-item { width: 100%; padding: 10px; border: 1px solid var(--border); border-left: 3px solid var(--blue-300); border-radius: 8px; background: #fff; text-align: left; cursor: pointer; }
.notification-item.is-unread { border-color: var(--blue-100); background: #F8FBFF; }
.notification-item.high { border-left-color: var(--red-500); }
.notification-item.deadline { border-left-color: var(--amber-500); }
.notification-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-muted); font: 800 9px var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
.notification-item h3 { margin: 5px 0 3px; color: var(--navy-900); font-size: 11.5px; line-height: 1.35; }
.notification-item p { margin: 0; color: var(--text-secondary); font-size: 10.5px; line-height: 1.4; }
.notification-state { color: var(--blue-600); font-size: 9px; }
.notification-empty { padding: 18px 8px; color: var(--text-muted); font-size: 11px; text-align: center; }
.visit-summary { display: flex; align-items: center; gap: 11px; margin: 0 0 12px; padding: 9px 11px; border: 1px solid var(--blue-100); border-radius: 9px; background: #F8FBFF; }
.visit-summary h3 { flex: 0 0 auto; margin: 0; color: var(--navy-900); font: 800 10px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.visit-summary-list { display: flex; flex-wrap: wrap; gap: 9px; color: var(--text-secondary); font-size: 10.5px; }
.visit-summary-list b { color: var(--blue-600); }
.account-button { padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; color: var(--navy-900); font: 800 11px var(--font-ui); cursor: pointer; }
.account-button:hover, .account-button[aria-expanded="true"] { border-color: var(--blue-600); color: var(--blue-600); background: var(--blue-50); }
.account-button:focus-visible { outline: 3px solid rgba(15, 118, 110, .24); outline-offset: 2px; }
.account-popover { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; width: min(310px, calc(100vw - 24px)); padding: 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; box-shadow: 0 12px 30px rgba(15, 35, 65, .12); }
.account-popover p { margin: 0; color: var(--text-secondary); font-size: 11.5px; line-height: 1.5; }
.account-counts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin: 11px 0; }
.account-counts span { padding: 7px; border-radius: 7px; background: var(--surface-soft); color: var(--text-secondary); font-size: 10px; }
.account-counts b { display: block; margin-bottom: 2px; color: var(--navy-950); font: 900 16px/1 var(--font-mono); }
.account-popover small { color: var(--text-muted); font-size: 10px; }
.account-email { margin: 0 0 8px !important; color: var(--navy-950) !important; font-size: 11px !important; font-weight: 800; overflow-wrap: anywhere; }
.account-signout { width: 100%; margin-top: 10px; padding: 7px 9px; border: 1px solid var(--border-strong); border-radius: 7px; background: #fff; color: var(--navy-900); font: 800 11px var(--font-ui); cursor: pointer; }
.account-admin { display: block; box-sizing: border-box; margin-top: 10px; text-align: center; text-decoration: none; }
.account-admin[hidden] { display: none; }
.account-signout:hover { border-color: var(--blue-600); color: var(--blue-600); background: var(--blue-50); }
.auth-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 18px; background: rgba(11, 31, 58, .46); }
.auth-modal { width: min(420px, 100%); padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 18px 48px rgba(11, 31, 58, .2); }
.auth-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.auth-modal h2 { margin: 0; color: var(--navy-950); font-size: 20px; }
.auth-close { width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--text-secondary); font-size: 19px; line-height: 1; cursor: pointer; }
.auth-tabs { display: flex; gap: 4px; margin: 17px 0; padding: 4px; border-radius: 9px; background: var(--surface-soft); }
.auth-tab { flex: 1; padding: 8px; border: 0; border-radius: 6px; background: transparent; color: var(--text-secondary); font: 800 12px var(--font-ui); cursor: pointer; }
.auth-tab.is-active { background: #fff; color: var(--blue-600); box-shadow: 0 1px 4px rgba(15, 35, 65, .1); }
.auth-form { display: grid; gap: 12px; }
.auth-backdrop[hidden], .auth-form[hidden] { display: none !important; }
.auth-field { display: grid; gap: 5px; color: var(--navy-900); font-size: 11.5px; font-weight: 800; }
.auth-field input { width: 100%; padding: 10px; border: 1px solid var(--border-strong); border-radius: 8px; color: var(--navy-950); font: 14px var(--font-ui); }
.auth-field input:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); outline: none; }
.auth-resend { width: 100%; margin-top: 4px; padding: 8px; border: 0; background: transparent; color: var(--blue-600); font: 800 12px var(--font-ui); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.access-gate { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.access-gate[hidden] { display: none !important; }
.access-gate-card { width: min(420px, 100%); padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.access-gate-brand { margin: 0 0 14px; color: var(--primary-strong); font: 800 13px var(--font-ui); text-transform: uppercase; letter-spacing: .04em; }
.access-gate-status { display: inline-block; margin-bottom: 12px; padding: 5px 13px; border-radius: 999px; font: 800 11.5px var(--font-ui); }
.access-gate-status.pending { background: var(--amber-50); color: var(--amber-600); }
.access-gate-status.rejected, .access-gate-status.error { background: var(--red-50); color: var(--red-600); }
.access-gate-card h1 { margin: 0 0 10px; color: var(--ink); font-size: 19px; }
.access-gate-card p { margin: 0 0 22px; color: var(--ink-muted); font-size: 13.5px; line-height: 1.55; }
.access-gate-action { width: 100%; padding: 11px; border: 1px solid var(--primary); border-radius: 9px; background: var(--primary); color: #fff; font: 800 13px var(--font-ui); cursor: pointer; }
.access-gate-action:hover { background: var(--primary-strong); border-color: var(--primary-strong); }
.access-gate-action.secondary { margin-top: 10px; background: transparent; border-color: var(--line-strong); color: var(--ink-muted); }
.access-gate-action.secondary:hover { border-color: var(--primary); color: var(--primary-strong); background: transparent; }
.access-gate-action[hidden] { display: none !important; }
.access-gate-action + .access-gate-action:not(.secondary) { margin-top: 10px; }
.access-gate-card[hidden] { display: none !important; }
.access-gate.is-landing { display: block; overflow-y: auto; padding: 0; }
/* Haut du tableau de bord compact (refonte du 2026-10-14) : le registre doit être visible dès le premier écran. */
.dash-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.dash-title { flex: 1 1 420px; min-width: 0; }
.dash-title h1 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.01em; }
.dash-title .subhead { margin: 4px 0 0; color: var(--ink-muted); font-size: 14px; }
.watch-status { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.watch-status[open] { flex: 1 1 100%; }
.watch-status > summary { display: flex; align-items: center; gap: 10px; list-style: none; cursor: pointer; font-size: 13.5px; font-weight: 700; }
.watch-status > summary::-webkit-details-marker { display: none; }
.watch-status-more { color: var(--primary); }
.watch-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-faint); }
.watch-dot.ok { background: var(--impact-low); }
.watch-dot.partial { background: var(--impact-medium); }
.watch-dot.failed { background: var(--impact-high); }
/* Maintenance annoncée par une source (EMMY) : neutre, l'orange reste réservé aux vrais échecs. */
.watch-maintenance { color: var(--ink-muted); font-weight: 600; }
.watch-status-body { margin-top: 12px; }
.watch-status-line { margin: 0 0 4px; font-size: 14px; }
.watch-status-body .next-check-note { margin: 0 0 10px; }
.watch-status-body .watch-health { margin: 0; }
.dash-summary { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.dash-summary .stats-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.dash-summary .stats-row .stat-tile { display: flex; align-items: baseline; gap: 6px; min-height: 0; margin: 0; padding: 7px 12px; border: 0; border-radius: 9px; box-shadow: none; background: var(--primary-tint); }
.dash-summary .stats-row .stat-tile .stat-icon-wrap { display: none; }
.dash-summary .stats-row .stat-tile .n { font-size: 15px; line-height: 1.2; }
.dash-summary .stats-row .stat-tile .l { font-size: 13px; font-weight: 700; }
.dash-summary .stats-row .stat-tile.high { background: var(--impact-high-tint); }
.dash-summary .stats-row .stat-tile.medium { background: var(--impact-medium-tint); }
.dash-summary .stats-row .stat-tile.low { background: var(--impact-low-tint); }
.dash-more > summary { width: max-content; padding: 6px 2px; color: var(--primary); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.dash-more-body { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.export-menu { position: relative; }
.export-menu > summary { list-style: none; cursor: pointer; }
.export-menu > summary::-webkit-details-marker { display: none; }
.export-menu-list { position: absolute; right: 0; z-index: 20; display: grid; min-width: 220px; margin-top: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.export-menu-list button { padding: 9px 11px; border: 0; border-radius: 7px; background: none; color: var(--ink); font: 700 13px var(--font-ui); text-align: left; cursor: pointer; }
.export-menu-list button:hover, .export-menu-list button:focus-visible { background: var(--primary-tint); color: var(--primary-strong); }
.sources-group { margin-top: 6px; line-height: 1.6; }
.sources-group .mono-badge { margin-right: 4px; }
.legal-links { margin: 14px 0 0; color: var(--ink-faint); font-size: 12px; }
.legal-links a { color: var(--ink-muted); }
.plan-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding: 9px 16px; background: var(--amber-50); color: var(--amber-600); font: 700 13px var(--font-ui); text-align: center; }
.plan-banner[hidden] { display: none !important; }
/* Annonce des alertes e-mail (fermable, une fois par compte). */
.notice-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; padding: 9px 44px 9px 16px; position: relative; background: var(--blue-50); color: var(--navy-900); border-bottom: 1px solid var(--blue-100); font: 700 13px var(--font-ui); text-align: center; }
.notice-banner[hidden] { display: none !important; }
.notice-banner-action { padding: 6px 12px; border: 1px solid var(--primary); border-radius: 8px; background: var(--primary); color: #fff; font: 800 12px var(--font-ui); cursor: pointer; }
.notice-banner-close { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-muted); font: 700 18px/1 var(--font-ui); cursor: pointer; }
.notice-banner-close:hover { background: var(--blue-100); color: var(--navy-950); }
.alerts-welcome { margin: 0 0 14px; padding: 11px 13px; border: 1px solid var(--blue-100); border-radius: 9px; background: var(--blue-50); color: var(--navy-900); font-size: 12.5px; line-height: 1.5; }
.plan-banner-action { padding: 6px 12px; border: 1px solid var(--primary); border-radius: 8px; background: var(--primary); color: #fff; font: 800 12px var(--font-ui); cursor: pointer; }
.plan-banner-action:disabled, .access-gate-action:disabled { cursor: wait; opacity: .65; }
.account-plan { margin-top: 12px; }
.account-plan[hidden] { display: none; }
.account-plan p { margin: 4px 0 8px; }
.personal-view { margin-left: auto; padding: 5px 8px; border: 1px solid var(--border-strong); border-radius: 7px; background: #fff; color: var(--blue-600); font: 800 10.5px var(--font-ui); cursor: pointer; }
.personal-view.is-active { border-color: var(--blue-600); background: var(--blue-50); }
.analysis-note { display: grid; gap: 7px; }
.analysis-note textarea { width: 100%; min-height: 76px; resize: vertical; padding: 9px; border: 1px solid var(--border-strong); border-radius: 8px; color: var(--navy-950); font: 12px var(--font-ui); }
.analysis-note textarea:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); outline: none; }
.note-save { justify-self: start; padding: 6px 9px; border: 1px solid var(--blue-600); border-radius: 7px; background: var(--blue-600); color: #fff; font: 800 11px var(--font-ui); cursor: pointer; }
.note-status { color: var(--text-muted); font-size: 10px; }
.why-priority { margin-top: 8px; padding: 0; border: 0; background: transparent; color: var(--blue-600); font: 800 10.5px var(--font-ui); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.priority-reasons { display: none; margin-top: 8px; padding: 9px 11px; border: 1px solid var(--blue-100); border-radius: 8px; background: var(--blue-50); color: var(--text-secondary); font-size: 10.5px; line-height: 1.45; }
.priority-reasons.is-open { display: block; }
.priority-reasons strong { display: block; margin-bottom: 4px; color: var(--navy-900); }
.priority-reasons ul { margin: 0; padding-left: 16px; }
.deadline-urgent { color: var(--red-600) !important; border-color: var(--red-100) !important; background: var(--red-50) !important; }
.deadline-anticipate { color: var(--amber-600) !important; border-color: var(--amber-100) !important; background: var(--amber-50) !important; }
@media (max-width: 760px) { .priorities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.auth-submit { margin-top: 4px; padding: 10px 13px; border: 1px solid var(--blue-600); border-radius: 8px; background: var(--blue-600); color: #fff; font: 800 13px var(--font-ui); cursor: pointer; }
.auth-submit:hover:not(:disabled) { background: #115E59; border-color: #115E59; }
.auth-submit:disabled { opacity: .65; cursor: wait; }
.auth-message { min-height: 18px; margin: 2px 0 0; color: var(--text-secondary); font-size: 11.5px; line-height: 1.45; }
.auth-message.error { color: var(--red-600); }
.auth-message.success { color: var(--green-600); }
.alerts-summary { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid var(--border); }
.alerts-summary strong { display: block; margin-bottom: 4px; color: var(--navy-900); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.alerts-manage { width: 100%; margin-top: 7px; padding: 7px 9px; border: 1px solid var(--blue-600); border-radius: 7px; background: var(--blue-50); color: var(--blue-600); font: 800 11px var(--font-ui); cursor: pointer; }
.alerts-modal { width: min(680px, 100%); max-height: min(720px, calc(100vh - 36px)); overflow: auto; }
.alert-group { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--border); }
.alert-group h3 { margin: 0 0 8px; color: var(--navy-900); font-size: 12px; }
.alert-options { display: flex; flex-wrap: wrap; gap: 7px; }
.alert-option { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 7px; color: var(--text-secondary); font-size: 10.5px; font-weight: 700; cursor: pointer; }
.alert-option input { accent-color: var(--blue-600); }
.alert-fos { display: flex; gap: 7px; }
.alert-fos input { flex: 1; min-width: 0; padding: 8px; border: 1px solid var(--border-strong); border-radius: 7px; font: 12px var(--font-ui); }
.alert-fos button, .alert-footer button { padding: 8px 10px; border: 1px solid var(--blue-600); border-radius: 7px; background: #fff; color: var(--blue-600); font: 800 11px var(--font-ui); cursor: pointer; }
.alert-fos-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.alert-fos-tag { padding: 4px 7px; border: 1px solid var(--blue-100); border-radius: 999px; background: var(--blue-50); color: var(--blue-600); font: 800 10px var(--font-mono); }
.alert-fos-tag button { margin-left: 4px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.alert-preview { margin: 13px 0 0; padding: 10px; border-radius: 8px; background: var(--surface-soft); color: var(--text-secondary); font-size: 11.5px; }
.alert-email { padding: 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-soft); }
.alert-email-option { font-size: 12px; color: var(--navy-900); background: #fff; }
.alert-email-note { margin: 8px 0 10px; color: var(--text-secondary); font-size: 11.5px; line-height: 1.5; }
.alert-email-test { padding: 7px 10px; border: 1px solid var(--blue-600); border-radius: 7px; background: #fff; color: var(--blue-600); font: 800 11px var(--font-ui); cursor: pointer; }
.alert-email-test:disabled { opacity: .6; cursor: wait; }
/* ---------- Mobile (< 480 px), 2026-10-23 : rien ne change au-delà ---------- */
.lbl-short { display: none; }
.overview-tabs { display: none; }
.summary-more { display: inline-block; margin-top: 4px; color: var(--primary-strong); font-size: 12.5px; font-weight: 800; cursor: pointer; }
.summary-more[hidden] { display: none; }
@media (max-width: 479px) {
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  /* Espace connecté : boutons d'export et « Tout lu » moins hauts, sur une ligne. */
  .filter-controls .export-menu > summary, #markRead { min-height: 0; padding-top: 7px; padding-bottom: 7px; font-size: 12px; white-space: nowrap; }
  /* Vue d'ensemble : un seul bloc à trois onglets. */
  .overview-tabs { display: flex; gap: 4px; margin: 0 0 8px; padding: 4px; border-radius: 10px; background: #E6F1ED; }
  .overview-tab { flex: 1; padding: 7px 4px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-muted); font: 800 12px var(--font-ui); cursor: pointer; }
  .overview-tab[aria-selected="true"] { background: #fff; color: var(--navy-950); box-shadow: 0 2px 8px rgba(29, 58, 99, .1); }
  .overview-tab.high[aria-selected="true"] { color: var(--red-600); }
  .overview-tab.medium[aria-selected="true"] { color: var(--amber-600); }
  .overview-grid { display: block; }
  .overview-grid .overview-panel { display: none; }
  .overview-grid[data-active-tab="latest"] .overview-panel.latest,
  .overview-grid[data-active-tab="high"] .overview-panel.high,
  .overview-grid[data-active-tab="medium"] .overview-panel.medium { display: block; }
  .overview-grid .overview-panel-title { display: none; }
  /* Registre complet : résumé limité à 3 lignes, « Lire plus » le déplie. */
  .item-head .item-summary:not(.is-expanded) { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .item.open .item-head .item-summary { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
  .item.open .summary-more { display: none; }
}
/* Mobile (< 480 px) : référence JORFTEXT sur sa ligne sous le titre, « Pourquoi prioritaire ? »
   aligné sur le contenu de la carte, onglets du haut sur une ligne. */
.ref-code-mobile { display: none; }
@media (max-width: 479px) {
  .item-toprow .ref-code-top { display: none; }
  .ref-code-mobile { display: block; margin: 3px 0 6px; color: var(--ink-faint); font-size: 10.5px; overflow-wrap: anywhere; }
  .why-priority, .priority-reasons { margin-left: 15px; margin-right: 15px; }
  /* La ligne des badges ne passe plus sous le menu « Non suivi » (placé en haut à droite). */
  .item-toprow { padding-right: 100px; }
  .site-tab { white-space: nowrap; }
}
.alert-preview.is-all { border: 1px solid var(--blue-100); background: var(--blue-50); color: var(--navy-900); font-weight: 700; }
.alert-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin-top: 14px; }
.alert-footer .alert-save { background: var(--blue-600); color: #fff; }
@media (max-width: 560px) { .notification-zone { margin-left: auto; } .account-zone { margin-left: 5px; } .account-button { padding: 7px; font-size: 10px; } .notification-panel { position: fixed; inset: auto 0 0; width: 100%; max-height: 78vh; border-radius: 16px 16px 0 0; } .visit-summary { align-items: flex-start; flex-direction: column; gap: 6px; } }
/* ---------- Ajustements 2026-10-23 ---------- */
.account-button.is-connected::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--green-600); vertical-align: 1px; }
/* Impact faible en gris neutre : rouge = fort, orange = modéré ; le vert reste réservé aux états « OK ». */
:root { --impact-neutral: #596579; --impact-neutral-tint: #F1F5F9; --impact-neutral-line: #CBD5E1; --impact-neutral-strong: #94A3B8; }
.tag.impact-low, .actor-level.low, #impactRow .chip[data-impact="low"].active { color: var(--impact-neutral); background: var(--impact-neutral-tint); border-color: var(--impact-neutral-line); }
.item[data-impact="low"] { border-left-color: var(--impact-neutral-strong); }
.stat-tile.low .n, .stat-tile.low .stat-icon-wrap { color: var(--impact-neutral); }
.stat-tile.low .stat-icon-wrap, .dash-summary .stats-row .stat-tile.low { background: var(--impact-neutral-tint); }
.stat-tile.low .stat-spark polyline { stroke: var(--impact-neutral); }
.kpi-filter.low.kpi-active { background: var(--impact-neutral-tint); border-color: var(--impact-neutral-line); }
.actor-level.none { color: var(--text-muted); background: var(--surface-soft); border: 1px dashed var(--border-strong); font-weight: 700; }
/* Barre d'outils du registre : retour à la ligne au lieu de déborder (700-900 px). */
.search-row { flex-wrap: wrap; }
.filter-controls { flex-wrap: wrap; min-width: 0; }
/* La largeur de base du champ ne vaut qu'en ligne ; en colonne (≤ 760 px) elle deviendrait sa hauteur. */
@media (min-width: 761px) { .search-row input[type="search"] { flex: 1 1 260px; min-width: 0; } }
/* Mobile : tri sur toute la largeur, puis « Filtres » + « Mes fiches » et « Exporter » + « Tout marquer comme lu » côte à côte. */
@media (max-width: 760px) {
  .search-row input[type="search"] { flex: none; }
  .filter-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .filter-controls .sort-control { grid-column: 1 / -1; }
  .filter-controls .filter-toggle, .filter-controls .export-menu, .filter-controls .export-menu > summary, #markRead { width: 100%; min-width: 0; }
  .filter-controls .export-menu > summary, #markRead { display: flex; align-items: center; justify-content: center; height: 100%; margin: 0; padding-inline: 8px; text-align: center; white-space: normal; }
  .export-menu-list { left: 0; right: auto; }
}
/* Registre complet affiché par 20. */
.feed-more { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0 4px; }
.feed-more-count { color: var(--ink-faint); font-size: 12px; }
.text-ref { color: var(--primary-strong); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.text-ref:hover, .text-ref:focus-visible { color: var(--navy-950); }
.tag.press-source { color: #9A3412; background: #FFF7ED; border: 1px solid #FDBA74; font-weight: 800; }

/* Thème sombre désactivé jusqu'à une revue complète (2026-10-24) : thème clair pour tous. */
:root { color-scheme: light; }

/* ==========================================================================
   Espace connecté : mise en page de la refonte du 2026-10-24 (maquettes Espace et EspaceMobile).
   Ordinateur : menu à gauche, contenu au centre, colonne à droite. Téléphone : une colonne et une
   barre de navigation fixe en bas. Règles préfixées par les conteneurs de la refonte (.app-top,
   .app-shell, .app-nav, .app-main, .app-side) pour primer sur les couches précédentes.
   ========================================================================== */
body { font-family: var(--font-ui); }

/* Barre du haut */
.site-switch.app-top { position: sticky; top: 0; z-index: 25; display: flex; flex-wrap: nowrap; align-items: center; gap: 18px; max-width: none; min-height: 0; margin: 0; padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: none; }
.app-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 17px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.app-brand:hover { color: var(--ink); }
.app-logo { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); }
.app-top .site-tabs { display: flex; gap: 4px; margin-left: 12px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.app-top .site-tab { flex: none; min-width: 0; padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-muted); font: 600 13px var(--font-ui); letter-spacing: 0; }
.app-top .site-tab:hover:not(.active) { background: transparent; color: var(--ink); }
.app-top .site-tab.active { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.app-top .site-tab.active::after { content: none; }
.app-search { display: flex; flex: 1 1 260px; align-items: center; gap: 8px; max-width: 460px; height: 42px; margin-left: auto; padding: 0 14px; border-radius: 999px; background: var(--surface-2); color: var(--ink-faint); }
.app-search:focus-within { box-shadow: 0 0 0 3px rgba(15, 118, 110, .18); }
.app-search input[type="search"] { flex: 1; min-width: 0; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ink); font: 14px var(--font-ui); outline: none; }
.app-search input[type="search"]:focus { border: 0; box-shadow: none; }
.app-top .notification-zone, .app-top .account-zone { margin-left: 0; }
.app-top .notification-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); }
.app-top .account-button { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 700 14px var(--font-ui); }
.app-top .account-button:has(.account-avatar) { padding-left: 6px; }
.app-top .account-button.is-connected::after { content: none; }
.account-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-tint); color: var(--primary-strong); font-size: 13px; font-weight: 800; }

/* Grille */
.wrap.app-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr) 290px; align-items: start; gap: 24px; max-width: 1440px; margin: 0 auto; padding: 24px 24px 64px; }
.app-main { min-width: 0; }

/* Menu de gauche */
.app-nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 4px; }
.app-nav .view-tabs { display: flex; flex-direction: column; gap: 4px; width: auto; margin: 0; padding: 0; border-radius: 0; background: transparent; }
.app-nav .view-tab, .app-nav-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border: 0; border-radius: 12px; background: transparent; box-shadow: none; color: var(--ink-muted); font: 600 14px var(--font-ui); text-align: left; text-decoration: none; cursor: pointer; }
.app-nav .view-tab:hover, .app-nav-link:hover { background: #E6F1ED; color: var(--ink); }
.app-nav .view-tab.active { background: var(--navy-950); color: #fff; font-weight: 700; box-shadow: none; }
.app-nav .tab-icon { width: 18px; height: 18px; }
.app-nav-sep { height: 1px; margin: 10px 4px; background: var(--line); }
.app-nav .plan-banner { display: block; margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--primary-tint); color: var(--primary-strong); font: 500 13px/1.45 var(--font-ui); text-align: left; }
.plan-banner-title { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 800; }
.app-nav #planBannerText { display: block; margin-bottom: 10px; }
.app-nav .plan-banner-action { padding: 9px 14px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font: 700 13px var(--font-ui); }
.app-nav .plan-banner-action:hover { background: var(--primary-strong); }

/* Contenu central */
.app-main header.top { padding: 0 0 18px; }
.app-main .dash-head { align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.app-main .dash-title h1 { margin: 0 0 4px; color: var(--ink); font-size: 28px; font-weight: 800; letter-spacing: -.015em; }
.app-main .dash-title .subhead { margin: 0; color: var(--ink-faint); font-size: 14px; line-height: 1.45; }
.app-main .dash-title .subhead b { color: var(--ink); }
.app-main .dash-title .subhead b.visit-high { color: #B91C1C; }
.app-main .watch-status { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: none; }
.app-main .watch-status > summary { font-size: 13px; font-weight: 600; }
.app-main .watch-status[open] { border-radius: 18px; }
.app-main .dash-summary .stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.app-main .dash-summary .stats-row::before { content: none; }
.app-main .dash-summary .stats-row .stat-tile { display: block; min-height: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: none; transform: none; }
.app-main .dash-summary .stats-row .stat-tile .n { color: var(--ink); font: 800 28px var(--font-ui); letter-spacing: -.02em; }
.app-main .dash-summary .stats-row .stat-tile .l { margin-top: 2px; color: var(--ink-faint); font-size: 13px; font-weight: 500; }
.app-main .dash-summary .stats-row .stat-tile.high { border-color: #FECACA; background: #FEF2F2; }
.app-main .dash-summary .stats-row .stat-tile.high .n { color: #B91C1C; }
.app-main .dash-summary .stats-row .stat-tile.high .l { color: #7F1D1D; }
.app-main .dash-summary .stats-row .stat-tile.medium { border-color: #FDE68A; background: #FFFBEB; }
.app-main .dash-summary .stats-row .stat-tile.medium .n { color: #B45309; }
.app-main .dash-summary .stats-row .stat-tile.medium .l { color: #78350F; }
.app-main .dash-summary .stats-row .stat-tile.low { border-color: #E2E8F0; background: #F8FAFC; }
.app-main .dash-summary .stats-row .stat-tile.low .n, .app-main .dash-summary .stats-row .stat-tile.low .l { color: #475569; }
.app-main .dash-summary .stats-row .stat-tile.kpi-active { box-shadow: 0 0 0 2px var(--primary); }
.app-main .dash-more > summary { color: var(--primary); }

/* Barre de filtres et registre */
.app-main .filter-bar { border-color: var(--line); border-radius: 20px; box-shadow: none; }
.app-main .filter-bar .filter-toggle, .app-main .filter-bar .btn, .app-main .filter-bar .export-menu > summary, .app-main .filter-bar .sort-control select { border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: none; color: var(--ink); font: 600 13px var(--font-ui); }
.app-main .filter-bar .filter-toggle, .app-main .filter-bar .btn, .app-main .filter-bar .export-menu > summary { padding: 9px 14px; }
.app-main .filter-bar .filter-toggle[aria-pressed="true"], .app-main .filter-bar .filter-toggle[aria-expanded="true"] { border-color: var(--navy-950); background: var(--navy-950); color: #fff; }
.app-main .chip { border-radius: 999px; }
.app-main .register-overview { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: none; }
.app-main .overview-heading { display: none; }
.app-main .overview-tabs { display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 0 0 14px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.app-main .overview-tab { flex: none; padding: 9px 16px; border: 0; border-radius: 999px; background: transparent; box-shadow: none; color: var(--ink-muted); font: 600 13px var(--font-ui); }
.app-main .overview-tab[aria-selected="true"] { background: var(--navy-950); color: #fff; font-weight: 700; box-shadow: none; }
.app-main .overview-tab.high[aria-selected="true"], .app-main .overview-tab.medium[aria-selected="true"] { color: #fff; }
.app-main .overview-grid { display: block; }
.app-main .overview-grid .overview-panel { display: none; padding: 0; border: 0; box-shadow: none; background: transparent; }
.app-main .overview-grid[data-active-tab="latest"] .overview-panel.latest,
.app-main .overview-grid[data-active-tab="high"] .overview-panel.high,
.app-main .overview-grid[data-active-tab="medium"] .overview-panel.medium { display: block; }
.app-main .overview-grid .overview-panel-title { display: none; }
.app-main .item { border: 1px solid var(--line); border-left-width: 1px; border-radius: 16px; box-shadow: none; }
.app-main .item:hover { transform: none; box-shadow: 0 2px 10px rgba(11, 38, 32, .06); }
.app-main .item[data-impact="high"] { border-color: #FECACA; background: #FFFBFB; }
/* Résumés du registre limités à 3 lignes sur toutes les largeurs, avec « Lire plus ». */
.app-main .item-head .item-summary:not(.is-expanded) { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.app-main .item.open .item-head .item-summary { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.app-main .item.open .summary-more { display: none; }
/* Barre de filtres sur une ligne : « Tout lu » sur toutes les largeurs. */
.app-main #markRead .lbl-long { display: none; }
.app-main #markRead .lbl-short { display: inline; }
.app-main .filter-controls { flex-wrap: nowrap; }
/* Ligne de veille : version longue par défaut, courte sur téléphone. */
.watch-short { display: none; }
/* Première ligne de la carte : place réservée au sélecteur « Mon suivi » et au marque-page. */
.app-main .item-toprow { padding-right: 230px; }
.app-main .why-priority, .app-main .priority-reasons { margin-left: 19px; margin-right: 19px; }
.app-main .why-priority { margin-bottom: 14px; }
.app-main .filter-bar { margin-top: 0; }
.app-main .dash-more { margin-top: 4px; }

/* Colonne de droite */
.app-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.side-card { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.side-card h2 { margin: 0 0 12px; color: var(--ink); font-size: 15px; font-weight: 800; }
.side-rows { display: flex; flex-direction: column; gap: 4px; }
.side-row { display: flex; justify-content: space-between; width: 100%; padding: 6px 0; border: 0; background: none; color: var(--ink); font: 500 14px var(--font-ui); text-align: left; cursor: pointer; }
.side-row:hover span { color: var(--primary); text-decoration: underline; }
.side-row { align-items: center; }
.side-count { min-width: 28px; padding: 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 800; text-align: center; }
.side-row .side-count.todo { background: #FEE2E2; color: #B91C1C; }
.side-row .side-count.progress { background: #FEF3C7; color: #B45309; }
.side-row .side-count.done { background: var(--primary-tint); color: var(--primary-strong); }
.side-deadlines, .side-deadlines ul, .side-fiches { margin: 0; padding: 0; list-style: none; }
.side-deadlines { display: flex; flex-direction: column; gap: 12px; }
.side-deadlines > li { display: flex; align-items: flex-start; gap: 10px; }
.side-deadlines ul { display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.side-day { flex: 0 0 46px; padding: 5px 0; border-radius: 10px; background: var(--primary-tint); color: var(--primary-strong); text-align: center; }
.side-day b { display: block; font-size: 17px; font-weight: 800; line-height: 1.2; }
.side-day small { display: block; font-size: 10px; font-weight: 700; }
.side-day.later { background: var(--surface-2); color: var(--ink-muted); }
.side-day.later b { font-size: 14px; line-height: 1.45; }
.side-link { padding: 0; border: 0; background: none; color: var(--ink); font: 500 13px/1.4 var(--font-ui); text-align: left; cursor: pointer; }
.side-link:hover { color: var(--primary); text-decoration: underline; }
.side-project { display: inline-block; padding: 1px 8px; border: 1px solid #94A3B8; border-radius: 999px; background: #F1F5F9; color: #334155; font-size: 11px; font-weight: 800; }
.side-fiches { display: flex; flex-direction: column; gap: 4px; }
.side-fiche { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 5px 0; border: 0; background: none; color: var(--ink); font: 13px var(--font-ui); cursor: pointer; }
.side-fiche b { font-weight: 700; }
.side-fiche span { color: var(--ink-faint); }
.side-fiche:hover b { color: var(--primary); text-decoration: underline; }
.side-manage { margin-top: 10px; color: var(--primary); font-weight: 700; }
.side-empty { margin: 0; color: var(--ink-faint); font-size: 13px; line-height: 1.45; }
/* Guides chantier (2026-10-26) : téléchargement direct depuis la colonne de droite. */
.side-guides { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.side-guide { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font: 13px/1.4 var(--font-ui); text-decoration: none; }
.side-guide:hover { border-color: var(--primary); }
.side-guide-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-guide-top b { font-weight: 800; }
.side-guide-meta { color: var(--ink-faint); }
.side-guide-action { color: var(--primary); font-weight: 700; }
.side-new, .nav-new { padding: 1px 8px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 800; white-space: nowrap; }
.nav-new { margin-left: auto; }
a.side-manage { display: inline-block; text-decoration: none; }
.side-dark { border-color: var(--navy-950); background: var(--navy-950); }
.side-dark h2 { margin-bottom: 6px; color: #fff; }
.side-dark p { margin: 0 0 12px; color: #A7C4BC; font-size: 13px; line-height: 1.5; }
.side-button { padding: 9px 14px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font: 700 13px var(--font-ui); cursor: pointer; }
.side-button:hover { background: #14B8A6; }

/* Écrans d'état du compte (en attente, essai terminé, autre appareil…) : au-dessus de toute la page,
   même charte que les pages /connexion et /inscription (lot 3, 2026-10-24). */
.access-gate { z-index: 50; }
.access-gate-card { display: flex; flex-direction: column; gap: 14px; width: min(480px, 100%); padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: none; text-align: left; }
.access-gate-brand { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--ink); font: 800 15px var(--font-ui); letter-spacing: 0; text-transform: none; }
.access-gate-brand::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 140'%3E%3Ccircle cx='70' cy='70' r='70' fill='%230F766E'/%3E%3Cg transform='translate(-8 0)' fill='none' stroke='%23fff' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M48 34h30l14 14v18'/%3E%3Cpath d='M48 34v72h26'/%3E%3Ccircle cx='90' cy='88' r='13'/%3E%3Cpath d='m100 98 9 9'/%3E%3C/g%3E%3C/svg%3E") center / 100% no-repeat; }
.gate-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #CCFBEF; color: #0F766E; }
.access-gate-card .access-gate-status { display: none; }
.access-gate-card h1 { margin: 0; color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.access-gate-card p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 1.55; }
.gate-extra[hidden] { display: none; }
.gate-steps { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 14px; }
.gate-steps li { display: flex; align-items: center; gap: 10px; }
.gate-steps li span { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); }
.gate-steps li.current { font-weight: 700; }
.gate-steps li.current span { box-sizing: border-box; border: 2px solid var(--primary); background: transparent; }
.gate-price { font-size: 28px !important; font-weight: 800; }
.gate-price span { font-size: 14px; font-weight: 600; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.access-gate-card .access-gate-action { display: inline-flex; align-items: center; justify-content: center; width: auto; min-height: 46px; margin: 0; padding: 0 20px; border-radius: 999px; font: 700 14px var(--font-ui); text-decoration: none; }
.access-gate-card .access-gate-action.secondary { border-color: var(--line-strong); background: #fff; color: var(--ink); font-weight: 600; }
.access-gate-card .access-gate-action[hidden] { display: none !important; }
.access-gate-card .legal-links { margin: 6px 0 0; }
/* Teintes par état */
.access-gate-card.tone-amber { border-color: #FDE68A; }
.access-gate-card.tone-amber .gate-icon { background: #FEF3C7; color: #B45309; }
.access-gate-card.tone-red .gate-icon { background: #FEE2E2; color: #B91C1C; }
.access-gate-card.tone-dark { border-color: var(--navy-950); background: var(--navy-950); }
.access-gate-card.tone-dark .access-gate-brand, .access-gate-card.tone-dark h1, .access-gate-card.tone-dark .gate-price { color: #fff; }
.access-gate-card.tone-dark p, .access-gate-card.tone-dark .gate-price span, .access-gate-card.tone-dark .legal-links, .access-gate-card.tone-dark .legal-links a { color: #A7C4BC; }
.access-gate-card.tone-dark .gate-icon { background: rgba(255, 255, 255, .1); color: #5EEAD4; }
.access-gate-card.tone-dark .access-gate-action.secondary { border-color: rgba(255, 255, 255, .3); background: transparent; color: #fff; }
@media (max-width: 480px) { .access-gate-card { padding: 24px 20px; } .gate-actions .access-gate-action { flex: 1 1 100%; } }

/* Bascule France / España : petits drapeaux (lot 4, 2026-10-25). */
.app-top .site-tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.flag { display: inline-flex; flex: none; width: 18px; height: 12px; overflow: hidden; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.flag span { flex: 1; }
.flag-fr span:nth-child(1) { background: #1E3A8A; } .flag-fr span:nth-child(2) { background: #fff; } .flag-fr span:nth-child(3) { background: #DC2626; }
.flag-es { flex-direction: column; }
.flag-es span { background: #AA151B; } .flag-es span:nth-child(2) { flex: 2; background: #F1BF00; }
body.cae-active .app-search { visibility: hidden; }
/* Téléphone, onglet España : la recherche masquée ne garde pas sa place (pas d'espace vide au-dessus de la bandelette). */
@media (max-width: 760px) { body.cae-active .app-search { display: none; } }
/* Veille Espagne dans /app : le cadre occupe la hauteur sous la barre du haut. */
body.cae-active iframe.site-frame { height: calc(100vh - 67px); }

/* Barre de navigation du téléphone (masquée sur ordinateur) */
.app-bottom-nav { display: none; }

/* Écrans moyens : la colonne de droite passe sous le contenu */
@media (max-width: 1099px) {
  .wrap.app-shell { grid-template-columns: 200px minmax(0, 1fr); }
  .app-side { grid-column: 2; }
}

/* Téléphone : une colonne et une barre de navigation fixe en bas */
@media (max-width: 760px) {
  .site-switch.app-top { position: static; flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .app-brand { flex: 1; font-size: 16px; }
  .app-top .site-tabs { order: 4; flex: 1 1 100%; margin-left: 0; }
  .app-top .site-tab { flex: 1; padding: 10px; font-size: 14px; }
  .app-search { order: 5; flex: 1 1 100%; max-width: none; height: 46px; margin-left: 0; border: 1px solid var(--line); background: #fff; }
  .app-top .notification-button { width: 44px; height: 44px; }
  .app-top .account-button:has(.account-avatar) { width: 44px; height: 44px; padding: 0; justify-content: center; border: 0; background: var(--primary-tint); }
  .app-top .account-button:has(.account-avatar) .account-label { display: none; }
  .wrap.app-shell { display: block; padding: 16px 16px 96px; }
  .app-nav { position: static; display: block; }
  .app-nav > :not(.plan-banner) { display: none; }
  .app-nav .plan-banner { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0 0 14px; padding: 14px 16px; }
  .app-nav .plan-banner[hidden] { display: none !important; }
  .app-nav .plan-banner-title { margin: 0; }
  .app-nav #planBannerText { margin: 0 0 8px; }
  /* Ligne de veille courte, sur une seule ligne : « Veille à jour · 14 h 05 · 32/34 sources ». */
  .watch-long { display: none; }
  .watch-short { display: inline; }
  .app-main .watch-status > summary > span:nth-of-type(2) { white-space: nowrap; }
  .app-main .watch-maintenance:not([hidden]) { display: block; white-space: normal; }
  /* « Fiches » et les autres vues : directement le contenu, sans l'accueil ni les tuiles. */
  body:not([data-view="feed"])[data-view] .app-main header.top { display: none; }
  /* « Mon suivi » : la colonne de suivi seule. */
  body.mobile-suivi .app-main, body.mobile-suivi .app-nav { display: none; }
  body.mobile-suivi .app-side { margin-top: 0; }
  .app-main .dash-title h1 { font-size: 23px; }
  .app-main .dash-head { align-items: flex-start; }
  .app-main .dash-summary .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .app-main .dash-summary .stats-row .stat-tile { padding: 12px 14px; border-radius: 14px; }
  .app-main .dash-summary .stats-row .stat-tile .n { font-size: 24px; }
  .app-main .overview-tabs { display: flex; width: 100%; }
  .app-main .overview-tab { flex: 1; padding: 10px 4px; }
  .app-main .overview-tab-count { display: none; }
  .app-main .item-toprow { padding-right: 100px; }
  .app-main .why-priority, .app-main .priority-reasons { margin-left: 15px; margin-right: 15px; }
  .app-side { margin-top: 16px; scroll-margin-top: 16px; }
  .app-bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px 4px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
  .app-bottom-link { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border: 0; background: none; color: var(--ink-faint); font: 600 11px var(--font-ui); cursor: pointer; }
  .app-bottom-link.is-active { color: var(--primary); font-weight: 700; }
}
