@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap");

/* =====================================================================
   Sentinel — Dashboard V2
   Style language ported from the marketing site (landing / tarifs page):
   Geist + Instrument Serif italic + JetBrains Mono, pill buttons, italic-serif accents, ink/cream warm palette.

   Mode plein écran : body.v2-active cache la sidebar globale et fait que
   #main-content prend toute la viewport. La vue v2 a sa propre sidebar
   interne (.dash-v2-page .sb), incompatible avec la nav globale `.sidebar`.
   ===================================================================== */
body.v2-active .sidebar,
body.v2-active #mobile-header,
body.v2-active .skip-link {
  display: none !important;
}
body.v2-active #app {
  display: block !important;
  grid-template-columns: 1fr !important;
}
body.v2-active #main-content {
  margin: 0 !important;
  padding: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
}
body.v2-active .dash-v2-page {
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
.dash-v2-page {
  /* ── Static ink/paper pair ──────────────────────────────────────
     "ink" and "paper" are the high-contrast semantic pair used for
     dark-on-light surfaces (hero brief, primary button, brand mark,
     active sidebar item). They DO NOT flip with the theme — they
     always represent the warm dark / warm cream contrast. */
  --ink:           #14110c;
  --paper:         #f8f7f3;

  /* Stone neutrals — pierre, cooler than cream. The marketing site's
     palette-tweaks.js « stone » option, made the default here so the
     bg reads as pierre rather than terra cotta. */
  --ink-2:         #2a241e;
  --ink-3:         #4a4138;
  --cream:         #ecebe6;
  --cream-2:       #e1e0d9;
  --line:          #d8d6cc;
  --line-strong:   #1a1612;
  --hair:          rgba(20,20,15,.10);
  --hair-light:    rgba(244,240,232,.14);

  --muted:         #8a8278;
  --muted-dark:    #756d63;
  --muted-on-dark: #a39c91;

  --accent:        #2b5fbf;
  --accent-soft:   #e3ebf7;
  --accent-dark:   #6e9aef;

  --ok:            #6b8e4e;
  --warn:          #b85a3a;

  --sans:          'Geist', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --serif:         'Instrument Serif', Georgia, serif;
  --mono:          'JetBrains Mono', ui-monospace, monospace;

  --r-sm:          6px;
  --r-md:          10px;
  --r-lg:          16px;

  /* ── Theme-aware semantic tokens (flip in body.dark) ─────────
     These represent abstract roles ("page background", "primary
     text", "card surface") and ARE the ones that change with
     theme. */
  --bg:            var(--cream);     /* page background */
  --surface:       var(--paper);     /* card / panel surface */
  --surface-2:     var(--cream-2);   /* alt / hover surface */
  --text:          var(--ink);       /* primary text */
  --text-2:        var(--ink-2);     /* secondary text */
  --text-3:        var(--ink-3);     /* tertiary text / metadata */
  --border:        var(--line);      /* visible border */
  --border-strong: var(--line-strong);
  --hairline:      var(--hair);      /* faint divider */
}

/* Règles globales — appliquées UNIQUEMENT en mode v2 plein écran pour
   ne pas casser le scroll, la hauteur et la font de l'app principale. */
body.v2-active { overflow: hidden; }
body.v2-active .dash-v2-page * { box-sizing: border-box; }
.dash-v2-page {
  font-family: 'Geist','Inter',ui-sans-serif,system-ui,sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Bg page = stone warm cream (le mockup l'applique sur <body>, mais en
     scope on doit l'appliquer sur le wrapper de la vue) */
  background: var(--bg);
  color: var(--text);
}
.dash-v2-page button, .dash-v2-page input { font-family: inherit; }
.dash-v2-page a { color: inherit; text-decoration: none; }

/* Groupes profils dépliables + sélecteur d'axe */
.dash-v2-page .v2-group-selector {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: auto; margin-right: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--muted-dark);
}
.dash-v2-page .v2-group-label { text-transform: uppercase; letter-spacing: .1em; }
.dash-v2-page .v2-group-axis {
  font-family: var(--sans); font-size: 12.5px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 10px; cursor: pointer;
}
.dash-v2-page .v2-group-axis:hover { border-color: var(--line-strong); }

.dash-v2-page .v2-profile-group { border-top: 1px solid var(--hairline); }
.dash-v2-page .v2-profile-group:first-child { border-top: none; }
.dash-v2-page .v2-profile-group-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 4px;
  cursor: pointer; user-select: none;
  font-family: var(--sans); font-size: 14.5px; font-weight: 500;
  color: var(--text);
  transition: color .12s;
}
.dash-v2-page .v2-profile-group-head:hover { color: var(--accent); }
.dash-v2-page .v2-profile-group-head .v2-chev {
  color: var(--muted-dark); transition: transform .2s; flex-shrink: 0;
}
.dash-v2-page .v2-profile-group.collapsed .v2-profile-group-head .v2-chev { transform: rotate(-90deg); }
.dash-v2-page .v2-profile-group-head .v2-group-count {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em;
  color: var(--muted-dark);
  background: var(--surface-2); padding: 2px 9px; border-radius: 999px;
  font-weight: 500;
}
.dash-v2-page .v2-profile-group-head .v2-group-stat {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 500;
  padding: 2px 8px; border-radius: 999px;
}
.dash-v2-page .v2-profile-group-head .v2-group-stat.alert {
  background: rgba(184,90,58,.13); color: var(--warn);
}
.dash-v2-page .v2-profile-group-head .v2-group-stat.unread {
  background: var(--accent-soft); color: var(--accent);
}
.dash-v2-page .v2-profile-group.collapsed .v2-profile-group-body { display: none; }
.dash-v2-page .v2-profile-group-body { padding-bottom: 8px; }

.dash-v2-page .serif-em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.dash-v2-page .mono { font-family: var(--mono); }

/* ── App shell ───────────────────────────────────────────────────── */
.dash-v2-page .app {
  display: grid;
  grid-template-columns: 252px 1fr;
  height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────────────── */
.dash-v2-page .sb {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 18px 14px 14px;
  display: flex; flex-direction: column; gap: 20px;
  overflow-y: auto;
  min-height: 0;
}
.dash-v2-page .sb-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 2px 8px 16px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  letter-spacing: -.01em;
}
.dash-v2-page .brand-mark {
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--ink); position: relative;
  flex-shrink: 0;
}
.dash-v2-page .brand-mark::after {
  content: ''; position: absolute; inset: 6px;
  border: 1.5px solid var(--paper); border-radius: 2px;
}

.dash-v2-page .sb-search {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg);
}
.dash-v2-page .sb-search input {
  flex: 1; min-width: 0;
  font-family: var(--sans); font-size: 13px;
  border: none; background: transparent; color: var(--text);
  outline: none;
}
.dash-v2-page .sb-search .kbd {
  font-family: var(--mono); font-size: 10px; color: var(--muted-dark);
  padding: 2px 7px; border-radius: 999px; background: rgba(20,17,12,.05);
  letter-spacing: 0.02em;
}
.dash-v2-page .sb-search .glyph { font-family: var(--mono); font-size: 12px; color: var(--muted-dark); }

.dash-v2-page .sb-group { display: flex; flex-direction: column; gap: 1px; }
.dash-v2-page .sb-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-dark); padding: 6px 8px 6px;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 500;
}
.dash-v2-page .sb-label .add {
  cursor: pointer;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--accent); color: var(--paper);
  font-family: var(--sans); font-size: 18px; font-weight: 400;
  line-height: 1;
  transition: background-color .12s, transform .12s;
  border: none;
}
.dash-v2-page .sb-label .add:hover { background: #234fa3; transform: translateY(-1px); }

.dash-v2-page .sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 6px;
  font-family: var(--sans); font-size: 13.5px;
  color: var(--text-2); cursor: pointer;
  transition: background-color .12s, color .12s;
}
.dash-v2-page .sb-item:hover { background: var(--surface-2); color: var(--text); }
.dash-v2-page .sb-item.active { background: var(--ink); color: var(--paper); font-weight: 500; }
.dash-v2-page .sb-item.active .count { color: var(--muted-on-dark); }
.dash-v2-page .sb-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.dash-v2-page .sb-item .dot.ok { background: var(--ok); }
.dash-v2-page .sb-item .dot.new { background: var(--accent); }
.dash-v2-page .sb-item .dot.warn { background: var(--warn); }
.dash-v2-page .sb-item .count {
  margin-left: auto;
  font-family: var(--mono); font-size: 10.5px; color: var(--muted-dark);
  letter-spacing: 0.02em;
}
.dash-v2-page .sb-item .badge-unread {
  margin-left: auto;
  font-family: var(--mono); font-size: 10px;
  background: var(--accent); color: var(--paper);
  padding: 1px 7px; border-radius: 999px; letter-spacing: 0.04em;
  font-weight: 500;
}

.dash-v2-page .sb-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 10px; }
.dash-v2-page .sb-user { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
.dash-v2-page .sb-user .av {
  width: 32px; height: 32px; border-radius: 50%;
  background-image: repeating-linear-gradient(135deg, rgba(20,17,12,.08) 0 4px, transparent 4px 8px);
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dash-v2-page .sb-user .who { font-family: var(--sans); font-size: 13.5px; font-weight: 500; color: var(--text); line-height: 1.2; }
.dash-v2-page .sb-user .role { font-family: var(--mono); font-size: 10px; color: var(--muted-dark); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }

.dash-v2-page .sb-scheduler {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: var(--mono); font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.dash-v2-page .sb-scheduler .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.dash-v2-page .sb-scheduler.paused .pulse { background: var(--muted); }
.dash-v2-page .sb-scheduler .when { color: var(--muted-dark); margin-left: auto; font-size: 10.5px; }

/* ── Buttons (pills) ─────────────────────────────────────────────── */
.dash-v2-page .btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
  line-height: 1;
}
.dash-v2-page .btn:hover { transform: translateY(-1px); }
.dash-v2-page .btn.primary { background: var(--accent); color: var(--paper); }
.dash-v2-page .btn.primary:hover { background: #234fa3; }
.dash-v2-page .btn.primary.on-dark { background: var(--paper); color: var(--ink); }
.dash-v2-page .btn.primary.on-dark:hover { background: #fff; }
.dash-v2-page .btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.dash-v2-page .btn.ghost:hover { background: var(--surface-2); }
.dash-v2-page .btn.ghost.on-dark { color: var(--paper); border-color: rgba(255,255,255,.3); }
.dash-v2-page .btn.ghost.on-dark:hover { border-color: var(--paper); }
.dash-v2-page .btn.text { background: transparent; color: var(--text-2); border: none; padding: 8px 12px; }
.dash-v2-page .btn.text:hover { color: var(--text); transform: none; }
.dash-v2-page .btn.sm { padding: 7px 14px; font-size: 12.5px; }
.dash-v2-page .btn .arrow { font-family: var(--mono); transition: transform .15s; font-size: 13px; }
.dash-v2-page .btn:hover .arrow { transform: translateX(3px); }
.dash-v2-page .btn .icn { display: inline-flex; }
.dash-v2-page .btn .icn svg { display: block; }

/* ── Main column ─────────────────────────────────────────────────── */
.dash-v2-page .main { display: grid; grid-template-rows: 1fr; overflow: hidden; min-width: 0; }
.dash-v2-page .scroll { overflow-y: auto; }

.dash-v2-page .dash {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 40px 96px;
}

/* ── Page header ─────────────────────────────────────────────────── */
.dash-v2-page .page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.dash-v2-page .page-head .eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark);
  margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
}
.dash-v2-page .page-head .eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.dash-v2-page .page-head h1 {
  font-family: var(--sans); font-weight: 500;
  font-size: 48px; line-height: 1.05; letter-spacing: -.015em;
  color: var(--text); margin: 0;
}
.dash-v2-page .page-head h1 .em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
}
.dash-v2-page .page-head .actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ── Status bar — pill chip row ──────────────────────────────────── */
.dash-v2-page .status-bar {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.dash-v2-page .status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  font-family: var(--sans); font-size: 13.5px;
  color: var(--text-2);
  border-radius: 999px;
  cursor: default;
  background: transparent;
  border: none;
  transition: background-color .12s, color .12s;
}
.dash-v2-page .status-chip.clickable { cursor: pointer; }
.dash-v2-page .status-chip.clickable:hover { background: var(--surface-2); color: var(--text); }
.dash-v2-page .status-chip .num {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 18px; line-height: 1;
  color: var(--text); letter-spacing: -.01em;
}
.dash-v2-page .status-chip.alert .num { color: var(--warn); }
.dash-v2-page .status-chip.alert .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex-shrink: 0; }
.dash-v2-page .status-chip.unread .num { color: var(--accent); }
.dash-v2-page .status-chip.briefs .num { color: var(--accent); }
.dash-v2-page .status-sep {
  font-family: var(--mono); color: var(--line); font-size: 12px;
  padding: 0 1px;
  line-height: 1;
  user-select: none;
}
.dash-v2-page .status-spacer { flex: 1; min-width: 8px; }
.dash-v2-page .status-chip.scheduler { gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; }
.dash-v2-page .status-chip.scheduler .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(107,142,78,.5);
  animation: pulse 2.4s ease-out infinite;
}
.dash-v2-page .status-chip.scheduler.paused .pulse { background: var(--muted); animation: none; }
.dash-v2-page .status-chip.scheduler .label { color: var(--text-2); }
.dash-v2-page .status-chip.scheduler .when { color: var(--muted-dark); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(107,142,78,.4); }
  70%  { box-shadow: 0 0 0 7px rgba(107,142,78,0); }
  100% { box-shadow: 0 0 0 0 rgba(107,142,78,0); }
}

/* ── Hero brief ──────────────────────────────────────────────────── */
.dash-v2-page .hero-brief {
  display: block;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: 36px 40px 28px;
  margin-bottom: 48px;
  cursor: pointer;
  transition: background-color .15s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.dash-v2-page .hero-brief::before {
  content: '';
  position: absolute;
  top: -45%; right: -8%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
  opacity: .28;
  pointer-events: none;
}
.dash-v2-page .hero-brief:hover { background: #1c1812; }
.dash-v2-page .hero-brief.has-alert::before {
  background: radial-gradient(circle, var(--warn) 0%, transparent 65%);
  opacity: .26;
}

.dash-v2-page .hero-brief-row {
  display: flex; align-items: flex-start; gap: 32px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.dash-v2-page .hero-brief-row .left { flex: 1; min-width: 0; }
.dash-v2-page .hero-brief-row .right {
  flex-shrink: 0; padding-top: 6px;
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 4px;
  text-align: right;
}
.dash-v2-page .hero-brief-row .right .stat {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-on-dark);
}
.dash-v2-page .hero-brief-row .right .stat .num {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 30px; line-height: 1;
  color: var(--paper); letter-spacing: -.02em;
}
.dash-v2-page .hero-brief-row .right .stat.alert .num { color: var(--accent-dark); }
.dash-v2-page .hero-brief.has-alert .hero-brief-row .right .stat.alert .num { color: #e89175; }

.dash-v2-page .hero-eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-on-dark); font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.dash-v2-page .hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-dark); }

.dash-v2-page .hero-brief h2 {
  font-family: var(--sans); font-weight: 500;
  font-size: 36px; line-height: 1.1; letter-spacing: -.02em;
  color: var(--paper); margin: 0;
  text-wrap: pretty;
  max-width: 22ch;
}
.dash-v2-page .hero-brief h2 .em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--accent-dark);
}
.dash-v2-page .hero-brief.has-alert h2 .em { color: #e89175; }

.dash-v2-page .hero-punchline {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 22px; line-height: 1.4;
  color: var(--paper);
  margin: 20px 0 24px;
  max-width: 60ch;
  position: relative;
  z-index: 1;
  letter-spacing: -.005em;
}

.dash-v2-page .hero-signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.dash-v2-page .signal-card {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--hair-light);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.dash-v2-page .signal-badge {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .12em; text-transform: uppercase;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 5px;
  align-self: flex-start;
  padding: 3px 8px; border-radius: 999px;
}
.dash-v2-page .signal-badge.alerte { background: rgba(232,145,117,.18); color: #e89175; }
.dash-v2-page .signal-badge.rupture { background: rgba(212,163,104,.18); color: #d4a368; }
.dash-v2-page .signal-badge.inflexion { background: rgba(110,154,239,.18); color: var(--accent-dark); }
.dash-v2-page .signal-badge.tendance { background: rgba(255,255,255,.08); color: var(--muted-on-dark); }
.dash-v2-page .signal-card p {
  font-family: var(--sans); font-size: 13px; line-height: 1.5;
  color: var(--paper); margin: 0;
}

.dash-v2-page .hero-cta-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--hair-light);
  position: relative;
  z-index: 1;
}
.dash-v2-page .hero-cta-row .digest-meta {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted-on-dark);
}

/* ── Tile list ───────────────────────────────────────────────────── */
.dash-v2-page .tiles { display: flex; flex-direction: column; gap: 16px; }
.dash-v2-page .tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.dash-v2-page .tile-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
}
.dash-v2-page .tile-head:hover { background: var(--bg); }
.dash-v2-page .tile-head .title-row { display: flex; align-items: baseline; gap: 12px; }
.dash-v2-page .tile-head h3 {
  font-family: var(--sans); font-weight: 600; font-size: 17px;
  letter-spacing: -.005em;
  color: var(--text); margin: 0;
}
.dash-v2-page .tile-head .count-chip {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--muted-dark);
  padding: 2px 9px; border-radius: 999px;
  background: var(--surface-2);
}
.dash-v2-page .tile-head .chev {
  color: var(--muted-dark);
  transition: transform .2s;
}
.dash-v2-page .tile.collapsed .tile-head .chev { transform: rotate(-90deg); }
.dash-v2-page .tile-body { padding: 0 24px 16px; }
.dash-v2-page .tile.collapsed .tile-body { display: none; }
.dash-v2-page .tile-foot {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  font-family: var(--sans); font-size: 13px;
  color: var(--muted-dark);
}
.dash-v2-page .tile-foot a { color: var(--text); font-weight: 500; }
.dash-v2-page .tile-foot a:hover { color: var(--accent); }
.dash-v2-page .tile-foot a .arrow { font-family: var(--mono); transition: transform .15s; display: inline-block; }
.dash-v2-page .tile-foot a:hover .arrow { transform: translateX(3px); }

/* Digests list */
.dash-v2-page .digest-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  transition: opacity .12s;
}
.dash-v2-page .digest-row:last-child { border-bottom: none; }
.dash-v2-page .digest-row:hover { opacity: .75; }
.dash-v2-page .digest-row .date {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-dark);
}
.dash-v2-page .digest-row .title { font-family: var(--sans); font-size: 14.5px; color: var(--text); line-height: 1.4; }
.dash-v2-page .digest-row .title .em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.dash-v2-page .digest-row .meta {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--muted-dark); text-align: right;
}
.dash-v2-page .digest-row .meta .alerts { color: var(--warn); }

/* Profiles list */
.dash-v2-page .profile-row {
  display: grid;
  grid-template-columns: 1fr 90px 90px 150px;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  transition: opacity .12s;
}
.dash-v2-page .profile-row:last-child { border-bottom: none; }
.dash-v2-page .profile-row:hover { opacity: .75; }
.dash-v2-page .profile-row .profile-name {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 14.5px; color: var(--text); font-weight: 500;
}
.dash-v2-page .profile-row .profile-name .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.dash-v2-page .profile-row .profile-name .dot.ok { background: var(--ok); }
.dash-v2-page .profile-row .profile-name .dot.new { background: var(--accent); }
.dash-v2-page .profile-row .profile-name .dot.warn { background: var(--warn); }
.dash-v2-page .profile-row .num-col {
  display: flex; align-items: baseline;
}
.dash-v2-page .profile-row .num-col .num {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 22px; line-height: 1;
  color: var(--text); letter-spacing: -.01em;
}
.dash-v2-page .profile-row .num-col.alert .num { color: var(--warn); }
.dash-v2-page .profile-row .num-col.zero .num { color: var(--muted); }
.dash-v2-page .profile-row .last-digest {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted-dark); text-align: right;
}

.dash-v2-page .profile-row-head {
  display: grid;
  grid-template-columns: 1fr 90px 90px 150px;
  gap: 16px;
  padding: 6px 0 10px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-dark); font-weight: 500;
}
.dash-v2-page .profile-row-head > div:last-child { text-align: right; }

/* Activity feed */
.dash-v2-page .activity-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  transition: opacity .12s;
}
.dash-v2-page .activity-row:last-child { border-bottom: none; }
.dash-v2-page .activity-row:hover { opacity: .75; }
.dash-v2-page .activity-row .marker {
  font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  flex-shrink: 0; margin-top: 2px;
  min-width: 62px; text-align: center;
}
.dash-v2-page .activity-row .marker.alert { background: rgba(184,90,58,.13); color: var(--warn); }
.dash-v2-page .activity-row .marker.unread { background: var(--accent-soft); color: var(--accent); }
.dash-v2-page .activity-row .body { flex: 1; min-width: 0; }
.dash-v2-page .activity-row .title-line {
  font-family: var(--sans); font-size: 14.5px; color: var(--text); line-height: 1.4;
}
.dash-v2-page .activity-row .meta-line {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--muted-dark); margin-top: 5px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.dash-v2-page .activity-row .meta-line .sep { color: var(--line); }

/* Flux récent */
.dash-v2-page .flux-row {
  display: flex; align-items: baseline; gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  transition: opacity .12s;
}
.dash-v2-page .flux-row:last-child { border-bottom: none; }
.dash-v2-page .flux-row:hover { opacity: .75; }
.dash-v2-page .flux-row .when {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted-dark);
  width: 64px; flex-shrink: 0;
}
.dash-v2-page .flux-row .src {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .04em;
  color: var(--text-2);
  width: 130px; flex-shrink: 0;
}
.dash-v2-page .flux-row .title {
  font-family: var(--sans); font-size: 14.5px; color: var(--text); line-height: 1.4;
  flex: 1; min-width: 0;
  display: flex; align-items: baseline; gap: 8px;
  flex-wrap: wrap;
}
.dash-v2-page .flux-marker {
  font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px;
  flex-shrink: 0;
}
.dash-v2-page .flux-marker.alert { background: rgba(184,90,58,.13); color: var(--warn); }
.dash-v2-page .flux-marker.unread { background: var(--accent-soft); color: var(--accent); }

/* Top sources */
.dash-v2-page .source-row {
  display: grid;
  grid-template-columns: 1fr 140px 56px;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.dash-v2-page .source-row:last-child { border-bottom: none; }
.dash-v2-page .source-row .source-name {
  font-family: var(--sans); font-size: 14.5px; color: var(--text); font-weight: 500;
}
.dash-v2-page .source-row .source-kind {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-dark); margin-left: 8px;
}
.dash-v2-page .source-row .bar-track {
  height: 6px; background: var(--surface-2); border-radius: 999px; position: relative; overflow: hidden;
}
.dash-v2-page .source-row .bar-fill {
  position: absolute; inset: 0;
  background: var(--text);
  border-radius: 999px;
  opacity: .85;
}
.dash-v2-page .source-row .num {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 22px; line-height: 1;
  color: var(--text); text-align: right; letter-spacing: -.01em;
}

/* ── Empty state global ──────────────────────────────────────────── */
.dash-v2-page .empty-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: 100%;
  height: 100%;
  padding: 48px;
}
.dash-v2-page .empty-card {
  max-width: 560px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 64px 56px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dash-v2-page .empty-card::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  width: 360px; height: 360px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
  opacity: .08;
  pointer-events: none;
}
.dash-v2-page .empty-card .mark-block {
  display: inline-flex;
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--ink);
  position: relative;
  margin-bottom: 28px;
}
.dash-v2-page .empty-card .mark-block::after {
  content: ''; position: absolute; inset: 14px;
  border: 1.5px solid var(--paper); border-radius: 4px;
}
.dash-v2-page .empty-card .eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-dark); font-weight: 500;
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  justify-content: center; width: 100%;
}
.dash-v2-page .empty-card .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.dash-v2-page .empty-card h2 {
  font-family: var(--sans); font-weight: 500;
  font-size: 36px; line-height: 1.1; letter-spacing: -.02em;
  color: var(--text); margin: 0 0 16px;
}
.dash-v2-page .empty-card h2 .em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--accent);
}
.dash-v2-page .empty-card p {
  font-family: var(--sans); font-size: 15.5px; line-height: 1.55;
  color: var(--text-3); margin: 0 0 32px;
  max-width: 44ch; margin-left: auto; margin-right: auto;
}

/* ── Personalization modal ───────────────────────────────────────── */
.dash-v2-page .modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(20,17,12,0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  z-index: 100;
  animation: fadeIn .12s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.dash-v2-page .modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -30px rgba(20,17,12,.4);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.dash-v2-page .modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 28px 32px 16px;
  gap: 16px;
}
.dash-v2-page .modal-head .titles { flex: 1; }
.dash-v2-page .modal-head .eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-dark); margin-bottom: 8px;
  display: inline-flex; align-items: center; gap: 8px;
}
.dash-v2-page .modal-head .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.dash-v2-page .modal-head h2 {
  font-family: var(--sans); font-weight: 500;
  font-size: 26px; line-height: 1.2; color: var(--text); margin: 0 0 6px;
  letter-spacing: -.015em;
}
.dash-v2-page .modal-head h2 .em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.dash-v2-page .modal-head p {
  font-family: var(--sans); font-size: 14px; line-height: 1.5;
  color: var(--text-3); margin: 0;
}
.dash-v2-page .modal-head .close {
  font-family: var(--mono); font-size: 18px;
  color: var(--muted-dark); background: transparent; border: none;
  width: 32px; height: 32px; border-radius: 999px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}
.dash-v2-page .modal-head .close:hover { background: var(--surface-2); color: var(--text); }
.dash-v2-page .modal-body { padding: 8px 32px 4px; overflow-y: auto; flex: 1; min-height: 0; }
.dash-v2-page .modal-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  gap: 12px;
}
.dash-v2-page .modal-foot .left {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-dark);
}

.dash-v2-page .tile-config-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--hairline);
}
.dash-v2-page .tile-config-row:last-child { border-bottom: none; }
.dash-v2-page .tile-config-row .label {
  flex: 1; min-width: 0;
  font-family: var(--sans); font-size: 14px; color: var(--text); font-weight: 500;
}
.dash-v2-page .tile-config-row .label .sub {
  display: block;
  font-family: var(--sans); font-size: 12.5px; color: var(--muted-dark);
  margin-top: 3px; font-weight: 400;
}
.dash-v2-page .tile-config-row .reorder { display: flex; gap: 4px; }
.dash-v2-page .tile-config-row .reorder button {
  width: 30px; height: 30px; border-radius: 999px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px;
  transition: background-color .12s, border-color .12s;
}
.dash-v2-page .tile-config-row .reorder button:hover:not(:disabled) {
  background: var(--surface-2); border-color: var(--line-strong); color: var(--text);
}
.dash-v2-page .tile-config-row .reorder button:disabled { opacity: 0.3; cursor: not-allowed; }

.dash-v2-page .tile-config-row .toggle {
  position: relative;
  width: 40px; height: 22px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background-color .12s, border-color .12s;
  flex-shrink: 0;
}
.dash-v2-page .tile-config-row .toggle::before {
  content: ""; position: absolute;
  top: 1px; left: 1px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(20,17,12,.15);
  transition: transform .12s;
}
.dash-v2-page .tile-config-row .toggle.on { background: var(--ink); border-color: var(--text); }
.dash-v2-page .tile-config-row .toggle.on::before { transform: translateX(18px); background: var(--surface); }

/* ── Density modifier ────────────────────────────────────────────── */
.dash-v2-page .dash.compact .status-bar { padding: 6px 14px; margin-bottom: 28px; }
.dash-v2-page .dash.compact .hero-brief { padding: 28px 32px 22px; margin-bottom: 32px; }
.dash-v2-page .dash.compact .hero-brief h2 { font-size: 30px; }
.dash-v2-page .dash.compact .hero-punchline { font-size: 19px; margin: 16px 0 20px; }
.dash-v2-page .dash.compact .hero-signals { margin-bottom: 18px; gap: 10px; }
.dash-v2-page .dash.compact .tile-head { padding: 14px 20px; }
.dash-v2-page .dash.compact .tile-body { padding: 0 20px 12px; }
.dash-v2-page .dash.compact .tiles { gap: 12px; }
.dash-v2-page .dash.compact .digest-row, .dash-v2-page .dash.compact .activity-row, .dash-v2-page .dash.compact .flux-row, .dash-v2-page .dash.compact .source-row { padding-top: 9px; padding-bottom: 9px; }
.dash-v2-page .dash.compact .profile-row { padding-top: 10px; padding-bottom: 10px; }

/* ── Hero editorial variant ──────────────────────────────────────── */
.dash-v2-page .hero-brief.editorial {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.dash-v2-page .hero-brief.editorial::before { display: none; }
.dash-v2-page .hero-brief.editorial:hover { background: var(--bg); }
.dash-v2-page .hero-brief.editorial .hero-eyebrow { color: var(--muted-dark); }
.dash-v2-page .hero-brief.editorial .hero-eyebrow .dot { background: var(--accent); }
.dash-v2-page .hero-brief.editorial h2 {
  font-family: var(--serif); font-style: normal; font-weight: 400;
  font-size: 44px; line-height: 1.05; color: var(--text);
  max-width: 22ch;
  letter-spacing: -.015em;
}
.dash-v2-page .hero-brief.editorial h2 .em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--accent);
}
.dash-v2-page .hero-brief.editorial .hero-brief-row .right { border-left-color: var(--border); }
.dash-v2-page .hero-brief.editorial .hero-brief-row .right .stat { color: var(--muted-dark); border-right-color: var(--border); }
.dash-v2-page .hero-brief.editorial .hero-brief-row .right .stat .num { color: var(--text); }
.dash-v2-page .hero-brief.editorial .hero-brief-row .right .stat.alert .num { color: var(--warn); }
.dash-v2-page .hero-brief.editorial .hero-punchline {
  font-family: var(--sans); font-style: normal; font-weight: 400;
  font-size: 16px; line-height: 1.6;
  color: var(--text-3);
  margin: 18px 0 24px;
}
.dash-v2-page .hero-brief.editorial .hero-signals {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
  margin-bottom: 0;
}
.dash-v2-page .hero-brief.editorial .signal-card {
  background: transparent; border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 16px 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: baseline;
  gap: 18px;
}
.dash-v2-page .hero-brief.editorial .signal-card:last-child { border-bottom: none; }
.dash-v2-page .hero-brief.editorial .signal-card p { font-size: 15px; color: var(--text); }
.dash-v2-page .hero-brief.editorial .signal-badge.alerte { background: rgba(184,90,58,.13);  color: var(--warn); }
.dash-v2-page .hero-brief.editorial .signal-badge.rupture { background: rgba(212,163,104,.15); color: #8a5a23; }
.dash-v2-page .hero-brief.editorial .signal-badge.inflexion { background: var(--accent-soft);    color: var(--accent); }
.dash-v2-page .hero-brief.editorial .signal-badge.tendance { background: var(--surface-2);        color: var(--text-2); }
.dash-v2-page .hero-brief.editorial .hero-cta-row {
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.dash-v2-page .hero-brief.editorial .hero-cta-row .digest-meta { color: var(--muted-dark); }

/* ── Scrollbars ──────────────────────────────────────────────────── */
.dash-v2-page .scroll::-webkit-scrollbar { width: 10px; }
.dash-v2-page .scroll::-webkit-scrollbar-track { background: transparent; }
.dash-v2-page .scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; border: 2px solid var(--bg); }
.dash-v2-page .scroll::-webkit-scrollbar-thumb:hover { background: var(--muted-dark); }
.dash-v2-page .sb::-webkit-scrollbar { width: 8px; }
.dash-v2-page .sb::-webkit-scrollbar-track { background: transparent; }
.dash-v2-page .sb::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.dash-v2-page /* =====================================================================
   Dark mode — only the theme-aware semantic tokens flip.
   The static ink/paper pair stays intact, .dash-v2-page so dark surfaces (hero brief, primary buttons, brand mark, active sidebar) keep their dark-on-light
   contrast in BOTH modes.
   ===================================================================== */
.dash-v2-page.dark {
  /* “Minuit” palette — cool blue-nuit, mirrors the marketing site's
     dark palette (palette-tweaks.js « midnight »). */
  --bg:            #0f1620;     /* page bg, deepest blue-nuit */
  --surface:       #1b2330;     /* card surface, +1 elevation */
  --surface-2:     #161e2a;     /* alt / hover, between bg and surface */

  --text:          #f1f3f7;     /* primary text */
  --text-2:        #d5dae3;     /* secondary text */
  --text-3:        #a8b1c0;     /* tertiary text */

  --border:        #2a3344;
  --border-strong: #3d4759;
  --hairline:      rgba(255,255,255,.08);

  --muted:         #7a8294;
  --muted-dark:    #9098a8;
  --muted-on-dark: #9098a8;

  /* Accent: same #2b5fbf as light mode — matches the marketing site's
     midnight palette which keeps the deep blue accent and only flips the
     soft tint. */
  --accent-soft:   rgba(110,154,239,.15);
}

/* Targeted overrides for things the token map can't reach */
.dash-v2-page.dark { background: var(--bg); color: var(--text); }

/* Inverse buttons & active sidebar item: in dark mode they flip to a light
   pill on dark surface (rather than warm-dark on dark navy, which would look
   like a chocolate pill stranded on a navy page). */
.dash-v2-page.dark .btn.primary:not(.on-dark) { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.dash-v2-page.dark .btn.primary:not(.on-dark):hover { background: #234fa3; }
.dash-v2-page.dark .sb-item.active { background: var(--surface-2); color: var(--text); }
.dash-v2-page.dark .sb-item.active .count { color: var(--text-3); }
.dash-v2-page.dark .brand-mark { background: var(--paper); }
.dash-v2-page.dark .brand-mark::after { border-color: var(--ink); }

/* In dark mode, the "featured" hero surface picks up the accent blue. */
.dash-v2-page.dark .hero-brief { background: var(--accent); color: var(--paper); }
.dash-v2-page.dark .hero-brief:hover { background: #234fa3; }
.dash-v2-page.dark .hero-brief::before { display: none; }
.dash-v2-page.dark .hero-brief.has-alert { background: #c87858; }
.dash-v2-page.dark .hero-brief.has-alert .hero-brief-row .right .stat.alert .num,
.dash-v2-page.dark .hero-brief-row .right .stat.alert .num { color: var(--paper); }
.dash-v2-page.dark .hero-brief h2 .em { color: var(--paper); opacity: .88; }
.dash-v2-page.dark .hero-brief.editorial { background: var(--surface); border: 1px solid var(--border); }
.dash-v2-page.dark .hero-brief.editorial:hover { background: var(--surface-2); }
.dash-v2-page.dark .hero-brief.editorial h2 { color: var(--text); }
.dash-v2-page.dark .hero-brief.editorial h2 .em { color: var(--accent); opacity: 1; }
.dash-v2-page.dark .hero-brief.editorial .signal-card p { color: var(--text); }
.dash-v2-page.dark .sb-search { background: var(--surface-2); }
.dash-v2-page.dark .sb-search .kbd { background: rgba(255,255,255,.06); color: var(--text-3); }
.dash-v2-page.dark .sb-scheduler { background: var(--surface-2); }
.dash-v2-page.dark .sb-user .av {
  background-color: var(--surface-2);
  color: var(--text-3);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 4px, transparent 4px 8px);
}
.dash-v2-page.dark .tile-config-row .toggle { background: var(--surface-2); border-color: var(--border-strong); }
.dash-v2-page.dark .tile-config-row .toggle::before { background: var(--text); }
.dash-v2-page.dark .tile-config-row .toggle.on { background: var(--accent); border-color: var(--accent); }
.dash-v2-page.dark .tile-config-row .toggle.on::before { background: var(--paper); }

/* Alert tones — warmer terra colors on dark */
.dash-v2-page.dark .status-chip.alert .num, .dash-v2-page.dark .status-chip.alert .pip, .dash-v2-page.dark .digest-row .meta .alerts, .dash-v2-page.dark .profile-row .num-col.alert .num, .dash-v2-page.dark .hero-brief.editorial .signal-badge.alerte { color: #e89175; }
.dash-v2-page.dark .status-chip.alert .pip { background: #e89175; }
.dash-v2-page.dark .activity-row .marker.alert { background: rgba(232,145,117,.18); color: #e89175; }
.dash-v2-page.dark .hero-brief.editorial .signal-badge.alerte { background: rgba(232,145,117,.18); }
.dash-v2-page.dark .activity-row .marker.unread { background: var(--accent-soft); color: var(--accent); }
.dash-v2-page.dark .hero-brief.editorial .signal-badge.inflexion { background: var(--accent-soft); color: var(--accent); }
.dash-v2-page.dark .hero-brief.editorial .signal-badge.tendance { background: var(--surface-2); color: var(--text-2); }

/* Empty state: switch the .mark-block from solid ink to a softer treatment
   on dark so it doesn't look like a black hole on a black page. */
.dash-v2-page.dark .empty-card .mark-block { background: var(--accent-soft); }
.dash-v2-page.dark .empty-card .mark-block::after { border-color: var(--accent); }

/* Scrollbar tracks need to match the bg */
.dash-v2-page.dark .scroll::-webkit-scrollbar-thumb { background: var(--border); border-color: var(--bg); }
.dash-v2-page.dark .sb::-webkit-scrollbar-thumb { background: var(--border); }