@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400&display=swap');

[hidden] { display: none !important; }

/* ─── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --void:        #090A0D;
  --surface:     #111318;
  --surface-2:   #171B25;
  --hover:       #1D2135;
  --line:        #1F2435;
  --line-2:      #2B3350;
  --ink:         #DDE1EE;
  --ink-2:       #6E7592;
  --ink-3:       #3A4060;

  --amber:       #E8A838;
  --amber-dim:   rgba(232,168,56,0.11);
  --amber-dark:  #C88820;
  --leaf:        #22C58B;
  --leaf-dim:    rgba(34,197,139,0.10);
  --rust:        #E05252;
  --rust-dim:    rgba(224,82,82,0.10);
  --mist:        #4AA3D1;
  --mist-dim:    rgba(74,163,209,0.10);
  --honey:       #D9A441;
  --honey-dim:   rgba(217,164,65,0.10);

  --font-head:   'DM Sans', -apple-system, sans-serif;
  --font-body:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 12px;

  --sidebar-w: 228px;
  --content-max: 1080px;
}

/* ─── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; text-wrap: balance; }
h1 { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.05rem; color: var(--ink); margin-bottom: 14px; }
h3 { font-size: 0.9rem; font-weight: 600; }

/* ─── Layout ──────────────────────────────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-inner { padding: 20px 14px; display: flex; flex-direction: column; height: 100%; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 24px 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  background: var(--amber);
  color: var(--void);
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  letter-spacing: -0.03em;
}

.brand-text {}
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.2;
}
.brand-sub {
  font-size: 0.72rem;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-section-label {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 6px;
  margin-bottom: 6px;
}

nav { flex: 1; }
nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  color: var(--ink-2);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
  margin-bottom: 2px;
}
nav a svg { flex-shrink: 0; opacity: 0.7; }
nav a:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
nav a:hover svg { opacity: 1; }
nav a.actif { background: var(--amber-dim); color: var(--amber); font-weight: 600; }
nav a.actif svg { opacity: 1; }

.sidebar-footer {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: auto;
}
.sidebar-footer-email {
  font-size: 0.75rem;
  color: var(--ink-3);
  padding: 0 6px;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--r-md);
  color: var(--ink-3);
  font-size: 0.82rem;
  transition: background 0.12s, color 0.12s;
}
.sidebar-footer a:hover { background: var(--hover); color: var(--rust); text-decoration: none; }

.content {
  flex: 1;
  min-width: 0;
  padding: 36px 40px;
  max-width: calc(var(--content-max) + 80px);
}

/* ─── Page header ─────────────────────────────────────────────────────────── */
.page-header { margin-bottom: 28px; }
.page-title {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.page-sub {
  color: var(--ink-2);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ─── Flash messages ──────────────────────────────────────────────────────── */
.flashes { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.flash {
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 0.84rem;
  border-left: 3px solid;
}
.flash-succes  { background: var(--leaf-dim);  color: var(--leaf);  border-color: var(--leaf); }
.flash-erreur  { background: var(--rust-dim);  color: var(--rust);  border-color: var(--rust); }
.flash-info    { background: var(--mist-dim);  color: var(--mist);  border-color: var(--mist); }

/* ─── Stat tiles ──────────────────────────────────────────────────────────── */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.tile::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--tile-accent, var(--line-2));
  border-radius: 3px 0 0 3px;
}
.tile-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--tile-accent, var(--ink));
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.tile-label {
  font-size: 0.75rem;
  color: var(--ink-2);
  margin-top: 6px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ─── Panels ──────────────────────────────────────────────────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin-bottom: 16px;
}
.panel h2 { margin-bottom: 16px; }

.panel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* ─── Tables ──────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
th {
  text-align: left;
  padding: 8px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line-2);
}
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--ink);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface-2); }

/* ─── Score bar ───────────────────────────────────────────────────────────── */
.score-wrap { display: flex; align-items: center; gap: 8px; }
.score-num {
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  min-width: 24px;
  color: var(--ink-2);
}
.score-track {
  flex: 1;
  min-width: 48px;
  height: 4px;
  background: var(--line-2);
  border-radius: 2px;
  overflow: hidden;
}
.score-fill { height: 100%; border-radius: 2px; }
.score-lo   { background: var(--ink-3); }
.score-mid  { background: var(--honey); }
.score-hi   { background: var(--leaf); }

/* ─── Badges ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-active,
.badge-a_envoyer  { background: var(--leaf-dim);  color: var(--leaf); }
.badge-proposee   { background: var(--honey-dim); color: var(--honey); }
.badge-rejetee,
.badge-desinscrit,
.badge-erreur_envoi { background: var(--rust-dim); color: var(--rust); }
.badge-envoye     { background: var(--mist-dim);  color: var(--mist); }
.badge-non_qualifie { background: var(--line);    color: var(--ink-3); }
.badge-nouveau    { background: var(--amber-dim); color: var(--amber); }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amber);
  color: var(--void);
  border: none;
  padding: 8px 16px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.14s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { background: var(--amber-dark); text-decoration: none; color: var(--void); }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: var(--hover); color: var(--ink); }
.btn-danger { background: var(--rust); color: #fff; }
.btn-danger:hover { background: #c04040; }
.btn-sm { padding: 5px 10px; font-size: 0.75rem; }
.btn-block { width: 100%; justify-content: center; }

/* ─── Form elements ───────────────────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}
input[type=text],
input[type=number],
input[type=password],
select,
textarea {
  background: var(--void);
  border: 1px solid var(--line-2);
  color: var(--ink);
  padding: 8px 11px;
  border-radius: var(--r-md);
  font-size: 0.85rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.14s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px var(--amber-dim);
}
input[type=checkbox] {
  width: auto;
  accent-color: var(--amber);
}

/* ─── Chips ───────────────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  display: inline-flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 3px 8px;
  font-size: 0.74rem;
  color: var(--ink-2);
}
.chip-signal { color: var(--amber); border-color: var(--amber-dim); background: var(--amber-dim); }

/* ─── Family card ─────────────────────────────────────────────────────────── */
.family-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--fam-accent, var(--line-2));
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin-bottom: 14px;
}
.family-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.family-card-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.97rem;
}
.family-card-desc {
  font-size: 0.84rem;
  color: var(--ink-2);
  margin-bottom: 12px;
  line-height: 1.5;
}
.family-card-logic {
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.5;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}
.family-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

/* ─── Terminal / Log ──────────────────────────────────────────────────────── */
.terminal {
  background: #070810;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 0;
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface);
}
.terminal-dots { display: flex; gap: 5px; }
.terminal-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}
.terminal-title {
  font-size: 0.74rem;
  color: var(--ink-3);
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.terminal-body {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  color: #9AACB8;
  padding: 16px;
  max-height: 460px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.55;
}

/* ─── Run status indicator ────────────────────────────────────────────────── */
.run-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.run-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink-3);
  flex-shrink: 0;
}
.run-dot.active {
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}
.run-status-text { font-size: 0.84rem; color: var(--ink-2); }
.run-times { margin-left: auto; font-size: 0.75rem; color: var(--ink-3); font-family: var(--font-mono); }

/* Dot run dans la nav */
.nav-run-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 5px var(--amber);
  animation: pulse 1.4s ease-in-out infinite;
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}
.nav-run-dot.nav-run-dot-mobile {
  position: absolute;
  top: 4px; right: 4px;
  width: 6px; height: 6px;
  margin: 0;
}

/* ─── Prospect detail ─────────────────────────────────────────────────────── */
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 24px 0;
  align-items: center;
}
.detail-meta .chip { font-size: 0.78rem; }

.score-ring-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.score-big-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.email-preview {
  background: var(--void);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 16px;
  font-size: 0.84rem;
  white-space: pre-wrap;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ─── Filter bar ──────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-bar .field { margin-bottom: 0; }
.filter-bar select { min-width: 140px; }

/* ─── Tab bar ─────────────────────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}
.tab-bar a {
  padding: 8px 14px;
  font-size: 0.84rem;
  color: var(--ink-2);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.12s, border-color 0.12s;
  white-space: nowrap;
}
.tab-bar a:hover { color: var(--ink); text-decoration: none; }
.tab-bar a.actif { color: var(--amber); border-bottom-color: var(--amber); font-weight: 600; }

/* ─── Empty state ─────────────────────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-3);
  font-size: 0.88rem;
}
.empty p { margin-top: 6px; }

/* ─── Action bar ──────────────────────────────────────────────────────────── */
.action-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* ─── Section divider ─────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}

/* ─── Back link ───────────────────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--ink-2);
  margin-bottom: 16px;
  transition: color 0.12s;
}
.back-link:hover { color: var(--ink); text-decoration: none; }

/* ─── Inline label/value pairs ────────────────────────────────────────────── */
.kv-list { display: flex; flex-direction: column; gap: 10px; }
.kv-row { display: flex; gap: 12px; align-items: baseline; font-size: 0.84rem; }
.kv-key { color: var(--ink-2); min-width: 120px; flex-shrink: 0; font-size: 0.78rem; font-weight: 600; }
.kv-val { color: var(--ink); }

/* ─── Outreach panel ──────────────────────────────────────────────────────── */
.outreach-panel {
  background: var(--amber-dim);
  border: 1px solid rgba(232,168,56,0.2);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ─── Login page ──────────────────────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--void);
}
.login-card {
  width: 360px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 36px 32px;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.login-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.login-sub {
  font-size: 0.78rem;
  color: var(--ink-2);
  margin-top: 1px;
}

/* ─── Desinscription page ─────────────────────────────────────────────────── */
.desinscription-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--void);
}
.desinscription-card {
  width: 440px;
  text-align: center;
  padding: 48px 32px;
}
.desinscription-card h1 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.desinscription-card p { color: var(--ink-2); font-size: 0.9rem; }

/* ─── Active list dot ─────────────────────────────────────────────────────── */
.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  flex-shrink: 0;
}
.dot-active  { background: var(--leaf); }
.dot-prop    { background: var(--honey); }
.dot-reject  { background: var(--rust); }

/* ─── Loading state ───────────────────────────────────────────────────────── */
.btn-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.55s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

/* Page progress bar */
#page-loader {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
#page-loader.active { opacity: 1; }
.page-loader-bar {
  height: 100%;
  background: var(--amber);
  width: 0%;
  animation: load-progress 8s cubic-bezier(0.1, 0.4, 0.6, 1) forwards;
}
#page-loader.active .page-loader-bar { animation-play-state: running; }
@keyframes load-progress {
  0%   { width: 0%; }
  30%  { width: 55%; }
  70%  { width: 78%; }
  90%  { width: 90%; }
  100% { width: 95%; }
}

/* Textarea */
textarea {
  background: var(--void);
  border: 1px solid var(--line-2);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: 0.85rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.14s;
  line-height: 1.7;
}
textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px var(--amber-dim);
}

/* ─── Mobile bottom nav ───────────────────────────────────────────────────── */
.mobile-nav { display: none; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Cacher la sidebar desktop */
  .sidebar { display: none; }

  /* Bottom navigation bar */
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mobile-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 4px 8px;
    color: var(--ink-3);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color 0.12s;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-nav a svg { transition: color 0.12s; }
  .mobile-nav a.actif { color: var(--amber); }
  .mobile-nav a:hover { text-decoration: none; }

  /* Main content padding */
  .layout { flex-direction: column; }
  .content {
    padding: 20px 16px 96px;  /* bottom padding for nav bar */
    max-width: 100%;
  }

  /* Ajustements layout */
  .panel-row { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }

  /* Familles : actions en colonne sur mobile */
  .family-card-head { flex-direction: column; gap: 10px; }
  .family-actions { justify-content: flex-start; }

  /* Prospects table : colonnes moins importantes masquées */
  .col-commune { display: none; }
  .col-famille { display: none; }

  /* Filter bar en colonne */
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar select { width: 100%; }

  /* Outreach panel en colonne */
  .outreach-panel { flex-direction: column; align-items: flex-start; gap: 10px; }
  .outreach-panel > div { margin-left: 0 !important; }

  /* Boutons plein largeur sur mobile */
  .panel > .btn,
  .panel > form > .btn { width: 100%; justify-content: center; }

  /* Login card */
  .login-card { width: calc(100vw - 32px); }

  /* Score wrap : réduit */
  .score-track { min-width: 30px; }

  /* Prospect detail : kv en colonne */
  .kv-row { flex-direction: column; gap: 2px; }
  .kv-key { min-width: unset; }

  /* Page header */
  .page-title { font-size: 1.2rem; }

  /* Run : terminal moins haut */
  .terminal-body { max-height: 320px; }
}
