:root {
  --primary:        #1d1675;
  --primary-dark:   #14104d;
  --primary-soft:   #eceaf7;
  --secondary:      #1d72aa;
  --accent:         #fbb03b;
  --bg:             #f7f9fc;
  --surface:        #ffffff;
  --border:         #e5e9f0;
  --border-strong:  #cdd5e0;
  --text:           #14181f;
  --text-muted:     #5a6475;
  --text-soft:      #8a94a3;
  --danger:         #e03b3b;
  --danger-soft:    #fde4e4;
  --success:        #0ca678;
  --success-soft:   #d8f3e8;
  --warn:           #d4860c;
  --warn-soft:      #fbeacc;
  --radius:         10px;
  --radius-sm:      6px;
  --shadow-sm:      0 1px 2px rgba(20,30,50,.04);
  --shadow:         0 6px 24px rgba(20,30,50,.08);
  --shadow-lg:      0 12px 40px rgba(20,30,50,.18);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-size: 14px;
}
button { font-family: inherit; cursor: pointer; }
input, button, textarea, select { font-family: inherit; font-size: 14px; }
a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── ICONS ──────────────────────────────────────────────────────── */
.icon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-lg { width: 20px; height: 20px; }
.icon-xl { width: 28px; height: 28px; }

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  font-size: .85rem;
  transition: all .15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--bg); border-color: var(--text-soft); }
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}
.btn-secondary:hover { filter: brightness(.92); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--primary-soft); border-color: transparent; }
.btn-danger {
  background: var(--surface);
  border-color: var(--danger);
  color: var(--danger);
}
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: .35rem .65rem; font-size: .78rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-icon { padding: .5rem; width: 34px; height: 34px; justify-content: center; }

/* ─── INPUTS ─────────────────────────────────────────────────────── */
.input, .select, textarea.input {
  width: 100%;
  padding: .55rem .8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: .9rem;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, textarea.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,22,117,.08);
}
textarea.input { min-height: 80px; resize: vertical; line-height: 1.5; font-family: inherit; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.field { margin-bottom: .85rem; }
.field label, .field-label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .35rem;
}

/* ─── BADGES ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.badge-technicien   { background: #e6f4ee; color: #0a5942; }
.badge-cadre        { background: var(--primary-soft); color: var(--primary); }
.badge-cadre_sup    { background: #e2f0fb; color: var(--secondary); }
.badge-exec         { background: #fff3d9; color: #8a5a09; border-color: #fbb03b40; }
.badge-autre        { background: var(--bg); color: var(--text-muted); }
.match-snippet { font-size: .82rem; color: var(--text-muted); margin-top: .25rem; line-height: 1.5; }
.match-snippet mark { background: #fff3d9; color: var(--text); padding: 0 2px; border-radius: 3px; }
.badge-success      { background: var(--success-soft); color: var(--success); }
.badge-warn         { background: var(--warn-soft); color: var(--warn); }
.badge-danger       { background: var(--danger-soft); color: var(--danger); }
.badge-neutral      { background: var(--bg); color: var(--text-muted); border-color: var(--border-strong); }

/* ─── ALERTS ─────────────────────────────────────────────────────── */
.alert {
  padding: .7rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  margin-bottom: 1rem;
}
.alert-error { background: var(--danger-soft); color: #762626; }
.alert-success { background: var(--success-soft); color: #0a5942; }
.alert-info { background: var(--primary-soft); color: var(--primary); }
.alert-warn { background: var(--warn-soft); color: #8a5a06; }

/* ═══════════════════════════════════════════════════════════════════
   LOGIN SCREEN
   ═══════════════════════════════════════════════════════════════════ */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at top left, rgba(29,114,170,.12), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(251,176,59,.10), transparent 50%),
    var(--bg);
}
.login-card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
}
.login-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 2rem 1.75rem 1.5rem;
  text-align: center;
  color: #fff;
}
.login-logo {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.01em;
}
.login-logo span { color: var(--accent); }
.login-tagline {
  margin: .35rem 0 0;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .75;
}
.login-body { padding: 2rem 1.75rem 1.75rem; }
.login-title { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 600; }
.login-sub { margin: 0 0 1.4rem; color: var(--text-muted); font-size: .85rem; line-height: 1.5; }
.input-code {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 1.4rem;
  text-align: center;
  letter-spacing: .35em;
  font-weight: 700;
  padding: .8rem;
}
.btn-block { width: 100%; justify-content: center; padding: .75rem; font-size: .9rem; }
.btn-link {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: .8rem;
  margin-top: .85rem;
  padding: 0;
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════
   APP SHELL
   ═══════════════════════════════════════════════════════════════════ */
.app { display: none; min-height: 100vh; }
.app.active { display: grid; grid-template-columns: 232px 1fr; }

.sidebar {
  background: var(--primary-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-brand {
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand-logo {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.01em;
}
.sidebar-brand-logo span { color: var(--accent); }
.sidebar-brand-sub {
  margin: .15rem 0 0;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .55;
}
.nav { padding: 1rem 0; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem 1.5rem;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.nav-item:hover { background: rgba(255,255,255,.04); color: #fff; }
.nav-item.active {
  background: rgba(255,255,255,.06);
  border-left-color: var(--accent);
  color: #fff;
}
.sidebar-user {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-user-name { font-weight: 600; font-size: .9rem; }
.sidebar-user-email { opacity: .55; font-size: .72rem; margin-top: .1rem; }
.sidebar-user button {
  margin-top: .65rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
  padding: .35rem .7rem;
  border-radius: 6px;
  font-size: .75rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.sidebar-user button:hover { background: rgba(255,255,255,.08); color: #fff; }

.main { padding: 1.75rem 2.25rem 3rem; min-width: 0; }
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.page-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.page-sub { margin: .15rem 0 0; color: var(--text-muted); font-size: .87rem; }

/* ─── TOOLBAR (search + filters) ─────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 460px;
}
.search-wrap .icon {
  position: absolute;
  left: .8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
}
.search-wrap input {
  width: 100%;
  padding: .6rem 2.5rem .6rem 2.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: .88rem;
  transition: border-color .15s, box-shadow .15s;
}
.search-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,22,117,.08);
}
.filter-chips { display: flex; gap: .35rem; flex-wrap: wrap; }
.chip {
  padding: .4rem .8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.chip:hover { border-color: var(--text-soft); color: var(--text); }
.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ─── TABLE ──────────────────────────────────────────────────────── */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cands-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .87rem;
}
.cands-table th {
  text-align: left;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.cands-table td {
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.cands-table tbody tr {
  cursor: pointer;
  transition: background .12s;
}
.cands-table tbody tr:hover { background: var(--bg); }
.cands-table tbody tr:last-child td { border-bottom: none; }
.cand-name { font-weight: 600; color: var(--text); }
.cand-poste { color: var(--text-muted); font-size: .8rem; margin-top: .15rem; }
.cand-meta { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.cand-tag-list { display: flex; gap: .25rem; flex-wrap: wrap; }
.tag-pill {
  background: var(--primary-soft);
  color: var(--primary);
  padding: .1rem .5rem;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 500;
}

.empty-state {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-muted);
}
.empty-state strong { color: var(--text); display: block; margin-bottom: .35rem; font-size: 1rem; }

/* ─── DASHBOARD ──────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.stat-label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.stat-value { font-size: 1.7rem; font-weight: 700; margin-top: .25rem; letter-spacing: -.02em; }
.stat-sub { font-size: .76rem; color: var(--text-soft); margin-top: .15rem; }

/* ═══════════════════════════════════════════════════════════════════
   DRAWER (fiche candidat)
   ═══════════════════════════════════════════════════════════════════ */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(15,20,30,.45);
  backdrop-filter: blur(2px);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.drawer-overlay.active { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(760px, 100vw);
  height: 100vh;
  background: var(--surface);
  z-index: 60;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.drawer.active { transform: translateX(0); }
.drawer-header {
  padding: 1.4rem 1.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.drawer-close-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .8rem;
}
.drawer-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: .25rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
}
.drawer-close:hover { background: var(--bg); color: var(--text); }
.drawer-name { margin: 0; font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.drawer-sub { margin: .15rem 0 0; color: var(--text-muted); font-size: .88rem; }
.drawer-actions {
  display: flex;
  gap: .45rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.drawer-tabs {
  display: flex;
  gap: 0;
  padding: 0 1.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.drawer-tab {
  padding: .85rem 0;
  margin-right: 1.4rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.drawer-tab:hover { color: var(--text); }
.drawer-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.drawer-tab .count {
  background: var(--bg);
  color: var(--text-muted);
  padding: .05rem .4rem;
  border-radius: 999px;
  font-size: .7rem;
  margin-left: .35rem;
}
.drawer-tab.active .count { background: var(--primary-soft); color: var(--primary); }
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.75rem;
}
/* ─── Carte Pitch IA compacte (en tête du drawer-body, tous onglets) ──── */
.pitch-card-compact {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem 1rem;
  margin: 0 0 1.4rem;
  background: linear-gradient(135deg, var(--primary-soft), rgba(29,114,170,.08));
  border: 1px solid rgba(29,22,117,.18);
  border-radius: 10px;
  font-size: .85rem;
  color: var(--primary);
}
.pitch-card-compact.failed {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger);
}
.pitch-card-compact .pitch-card-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--text);
}
.pitch-card-compact.failed .pitch-card-label { color: var(--danger); }
.pitch-card-compact .pitch-card-icon { font-size: 1rem; line-height: 1; }
.pitch-card-compact .pitch-card-orb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary), transparent 70%);
  animation: pitchOrbSpin 1.2s linear infinite;
  flex-shrink: 0;
}
@keyframes pitchOrbSpin { to { transform: rotate(360deg); } }
.pitch-card-compact .pitch-card-timer {
  font-size: .78rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
/* Sections fusionnées : titre fin gris uppercase entre groupes */
.drawer-section-header {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 .8rem;
}
.drawer-section-header + .drawer-section-header,
.drawer-section + .drawer-section-header { margin-top: 2.2rem; }
.drawer-section { margin-bottom: 1.75rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   PIPELINE TIMELINE - parcours commercial du candidat
   ─────────────────────────────────────────────────────────────────────────
   3 etapes (Vivier -> Pitch prospect -> Mission client) en timeline verticale.
   Chaque etape : dot colore (etat) + ligne (progression) + carte (contenu).
   Cards expand/collapse au clic. Hierarchie visuelle radicale : 1 seul accent.
   ═══════════════════════════════════════════════════════════════════════════ */
.pipeline-hero {
  background: linear-gradient(135deg, var(--primary-soft) 0%, rgba(29, 114, 170, .04) 100%);
  border: 1px solid rgba(29, 22, 117, .12);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.8rem;
  position: relative;
  overflow: hidden;
}
.pipeline-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 140px; height: 140px;
  background: radial-gradient(circle at top right, var(--primary) 0%, transparent 70%);
  opacity: .06;
  pointer-events: none;
}
.pipeline-hero-stage {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .55rem;
}
.pipeline-hero-stage::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  animation: pipelinePulse 2.4s ease-in-out infinite;
}
@keyframes pipelinePulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--primary-soft); }
  50%      { box-shadow: 0 0 0 7px rgba(29, 22, 117, .06); }
}
.pipeline-hero-narr {
  font-size: 1.02rem; line-height: 1.55;
  color: var(--text);
  margin: 0 0 1rem;
  max-width: 580px;
}
.pipeline-hero-narr strong { color: var(--primary); font-weight: 600; }
.pipeline-hero-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--primary); color: #fff;
  border: none; border-radius: 8px;
  padding: .65rem 1.1rem;
  font-size: .9rem; font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .15s ease;
  box-shadow: 0 4px 12px -4px rgba(29, 22, 117, .35);
}
.pipeline-hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(29, 22, 117, .45);
  background: #14155a;
}
.pipeline-hero-cta:active { transform: translateY(0); }
.pipeline-hero-cta-arrow { transition: transform .2s ease; }
.pipeline-hero-cta:hover .pipeline-hero-cta-arrow { transform: translateX(3px); }
.pipeline-hero-cta-secondary {
  background: transparent; color: var(--primary);
  box-shadow: none;
  border: 1px solid rgba(29, 22, 117, .2);
  margin-left: .5rem;
}
.pipeline-hero-cta-secondary:hover {
  background: var(--primary-soft);
  box-shadow: none;
}

.pipeline-timeline {
  position: relative;
  padding-left: 0;
}
.pipeline-node {
  position: relative;
  padding-left: 2.6rem;
  padding-bottom: 1.4rem;
}
.pipeline-node:last-child { padding-bottom: 0; }
/* Rail vertical entre les dots */
.pipeline-node::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: -.4rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--border) 0%, var(--border) 100%);
  z-index: 0;
}
.pipeline-node:last-child::before { display: none; }
.pipeline-node.is-done::before {
  background: linear-gradient(to bottom, var(--success) 0%, var(--success) 100%);
}
.pipeline-node.is-active::before {
  background: linear-gradient(to bottom, var(--primary) 0%, var(--border) 100%);
}

/* Dot */
.pipeline-dot {
  position: absolute;
  left: 0; top: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  transition: all .2s ease;
}
.pipeline-dot svg { width: 12px; height: 12px; stroke-width: 2.6; }
.pipeline-node.is-empty  .pipeline-dot { border-color: var(--border); color: var(--text-soft); }
.pipeline-node.is-active .pipeline-dot {
  border-color: var(--primary); background: var(--primary); color: #fff;
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.pipeline-node.is-done   .pipeline-dot {
  border-color: var(--success); background: var(--success); color: #fff;
}

/* Card */
.pipeline-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .2s ease;
}
.pipeline-card:hover { border-color: rgba(29, 22, 117, .18); }
.pipeline-node.is-active .pipeline-card { border-color: rgba(29, 22, 117, .22); }

.pipeline-card-head {
  display: flex; align-items: center; gap: 1rem;
  padding: .95rem 1.1rem;
  cursor: pointer;
  user-select: none;
  transition: background .15s ease;
}
.pipeline-card-head:hover { background: rgba(29, 22, 117, .025); }
.pipeline-card-head-main { flex: 1; min-width: 0; }
.pipeline-card-title {
  font-size: .95rem; font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -.005em;
}
.pipeline-card-meta {
  font-size: .8rem; color: var(--text-muted);
  margin-top: .2rem;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.pipeline-card-meta-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--text-muted); opacity: .5;
}
.pipeline-card-count {
  background: var(--bg);
  color: var(--text);
  font-size: .78rem; font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 999px;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.pipeline-node.is-done   .pipeline-card-count { background: var(--success-soft); color: var(--success); }
.pipeline-node.is-active .pipeline-card-count { background: var(--primary-soft); color: var(--primary); }

.pipeline-chevron {
  width: 18px; height: 18px;
  color: var(--text-muted);
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
  flex-shrink: 0;
}
.pipeline-card.is-open .pipeline-chevron { transform: rotate(90deg); }

.pipeline-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4, 0, .2, 1), padding .25s ease;
  padding: 0 1.1rem;
}
.pipeline-card.is-open .pipeline-card-body {
  max-height: 5000px;
  padding: .3rem 1.1rem 1.2rem;
  border-top: 1px solid var(--border);
}

/* Empty state interne au node : message + CTA discret */
.pipeline-empty {
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.55;
  padding: 1rem 0 .25rem;
}
.pipeline-empty strong { color: var(--text-soft); font-weight: 600; display: block; margin-bottom: .25rem; }

/* Mini-puces qui materialisent les pieces (CV / Grille / BIG5) dans le node mission */
.pipeline-pieces {
  display: inline-flex; gap: .35rem; margin-left: .65rem;
}
.pipeline-piece {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border);
  transition: background .15s ease;
}
.pipeline-piece.is-on      { background: var(--success); }
.pipeline-piece.is-draft   { background: var(--accent); }
.pipeline-piece[title]     { cursor: help; }
.drawer-section-title {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 .6rem;
}
.field-grid { display: grid; grid-template-columns: 140px 1fr; gap: .55rem .9rem; align-items: start; }
.field-grid > .lbl { color: var(--text-muted); font-size: .82rem; padding-top: .15rem; }
.field-grid > .val { font-size: .9rem; color: var(--text); }
.field-grid > .val .empty { color: var(--text-soft); font-style: italic; }
.editable {
  cursor: text;
  border: 1px dashed transparent;
  padding: .15rem .4rem;
  border-radius: 4px;
  margin-left: -.4rem;
  transition: border-color .15s, background .15s;
  display: inline-block;
  min-width: 80px;
  min-height: 1.2em;
}
.editable:hover { border-color: var(--border-strong); }
.editable.editing { background: var(--bg); border-color: var(--primary); border-style: solid; }

.note-card, .eval-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: .75rem;
  background: var(--surface);
}
.note-meta, .eval-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: .55rem;
}
.note-content, .eval-comment {
  font-size: .88rem;
  line-height: 1.55;
  white-space: pre-wrap;
  color: var(--text);
}
.note-actions, .eval-actions {
  display: flex;
  gap: .35rem;
  margin-top: .65rem;
}
.eval-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .35rem .8rem;
  margin-top: .65rem;
  align-items: center;
}
.eval-grid .comp-name { font-size: .85rem; }
.score-dots { display: inline-flex; gap: .15rem; }
.score-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  cursor: pointer;
  transition: all .12s;
}
.score-dot.filled { background: var(--primary); border-color: var(--primary); }
.score-dot:hover { transform: scale(1.15); }
.decision-badge { padding: .15rem .55rem; border-radius: 4px; font-size: .72rem; font-weight: 600; }
.decision-go { background: var(--success-soft); color: var(--success); }
.decision-reserve { background: var(--warn-soft); color: var(--warn); }
.decision-no_go { background: var(--danger-soft); color: var(--danger); }
.decision-en_cours { background: var(--bg); color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════════════════
   PITCH PROSPECT - sous-onglet glamour
   ─────────────────────────────────────────────────────────────────────────
   Hierarchie radicale : 1 hero status, 1 angle premium, 1 destinataire card,
   1 CTA accentue. Coaching IA discret en bas. Editor mail glassmorphism.
   ═══════════════════════════════════════════════════════════════════════════ */
.prosp {
  display: flex; flex-direction: column; gap: 1.6rem;
}

/* === HERO STATUS === */
.prosp-hero {
  position: relative;
  background: linear-gradient(135deg, #f3f5ff 0%, #ffffff 50%, #fffdfa 100%);
  border: 1px solid rgba(29, 22, 117, .1);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  overflow: hidden;
}
.prosp-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(29, 22, 117, .055) 0%, transparent 55%),
              radial-gradient(ellipse at bottom left, rgba(216, 169, 81, .04) 0%, transparent 55%);
  pointer-events: none;
}
.prosp-hero-row {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap;
}
.prosp-hero-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, #2a2890 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px -4px rgba(29, 22, 117, .35);
  flex-shrink: 0;
}
.prosp-hero-icon svg { width: 18px; height: 18px; stroke-width: 2.2; }
.prosp-hero-main { flex: 1; min-width: 200px; }
.prosp-hero-eyebrow {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 .15rem;
}
.prosp-hero-ref {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.02rem; font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}
.prosp-hero-ref-empty { color: var(--text-muted); font-weight: 500; font-style: italic; font-family: inherit; font-size: .85rem; }
.prosp-hero-status {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .35rem .75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .78rem; font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.prosp-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-soft);
  flex-shrink: 0;
}
.prosp-status-dot.is-idle    { background: #b8bcc8; }
.prosp-status-dot.is-running { background: var(--warn); animation: prospPulse 1.4s ease-in-out infinite; }
.prosp-status-dot.is-done    { background: var(--success); box-shadow: 0 0 0 3px rgba(16, 185, 129, .15); }
.prosp-status-dot.is-failed  { background: var(--danger); animation: prospShake .5s ease 1; }
@keyframes prospPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 119, 6, .4); }
  50%      { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(217, 119, 6, 0); }
}
@keyframes prospShake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-2px); }
  75%      { transform: translateX(2px); }
}
.prosp-hero-action {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--primary); color: #fff;
  border: none; border-radius: 8px;
  padding: .5rem .9rem;
  font-size: .82rem; font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  box-shadow: 0 2px 8px -2px rgba(29, 22, 117, .3);
}
.prosp-hero-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(29, 22, 117, .4);
  background: #14155a;
}
.prosp-hero-action.is-secondary {
  background: rgba(29, 22, 117, .06);
  color: var(--primary);
  box-shadow: none;
}
.prosp-hero-action.is-secondary:hover { background: rgba(29, 22, 117, .12); transform: none; }

.prosp-rgpd-hint {
  position: relative; z-index: 1;
  margin-top: .9rem;
  padding-top: .85rem;
  border-top: 1px dashed rgba(29, 22, 117, .12);
  font-size: .78rem; color: var(--text-muted); line-height: 1.5;
}
.prosp-rgpd-hint strong { color: var(--primary); font-weight: 600; }

/* === ANGLE COMMERCIAL (champ premium) === */
.prosp-angle-zone {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.prosp-angle-zone:focus-within {
  border-color: rgba(29, 22, 117, .35);
  box-shadow: 0 0 0 4px rgba(29, 22, 117, .06);
}
.prosp-angle-label {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem;
  margin-bottom: .6rem;
}
.prosp-angle-title {
  font-size: .98rem; font-weight: 600;
  color: var(--text);
  letter-spacing: -.005em;
  margin: 0;
}
.prosp-angle-title::after {
  content: '*'; color: var(--danger); margin-left: .2rem;
}
.prosp-angle-helper {
  font-size: .76rem; color: var(--text-muted);
  font-weight: 400;
}
.prosp-angle-textarea {
  width: 100%;
  min-height: 88px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: .95rem; line-height: 1.6;
  color: var(--text);
  padding: 0;
  resize: vertical;
  outline: none;
}
.prosp-angle-textarea::placeholder {
  color: var(--text-soft);
  font-style: italic;
}

/* === DESTINATAIRE === */
.prosp-recipient-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
}
.prosp-recipient-head {
  display: flex; align-items: center; gap: .9rem;
  margin-bottom: 1rem;
}
.prosp-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d1675 0%, #6366f1 50%, #d8a951 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px -3px rgba(29, 22, 117, .3);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.prosp-recipient-card:hover .prosp-avatar { transform: scale(1.05) rotate(-3deg); }
.prosp-avatar.is-empty {
  background: linear-gradient(135deg, #e5e9f0 0%, #cdd5e0 100%);
  color: var(--text-muted);
  box-shadow: none;
}
.prosp-recipient-title {
  font-size: .98rem; font-weight: 600;
  margin: 0;
}
.prosp-recipient-sub {
  font-size: .8rem; color: var(--text-muted);
  margin-top: .15rem;
}

.prosp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.prosp-field { display: flex; flex-direction: column; gap: .3rem; }
.prosp-field-label {
  font-size: .72rem; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .02em;
}
.prosp-input {
  width: 100%;
  padding: .55rem .75rem;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .88rem;
  color: var(--text);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
  outline: none;
}
.prosp-input:hover { background: #eef0f6; }
.prosp-input:focus {
  background: #fff;
  border-color: rgba(29, 22, 117, .35);
  box-shadow: 0 0 0 4px rgba(29, 22, 117, .06);
}
.prosp-input::placeholder { color: var(--text-soft); }
.prosp-input-with-action {
  display: flex; gap: .35rem; align-items: stretch;
}
.prosp-input-with-action .prosp-input { flex: 1; min-width: 0; }
.prosp-action-btn {
  padding: 0 .8rem;
  background: rgba(29, 22, 117, .08);
  color: var(--primary);
  border: none; border-radius: 8px;
  cursor: pointer;
  font-size: .82rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .35rem;
  transition: all .15s ease;
  white-space: nowrap;
}
.prosp-action-btn:hover {
  background: var(--primary); color: #fff;
}
.prosp-action-btn svg { width: 14px; height: 14px; stroke-width: 2.2; }

.prosp-enrich-badge {
  font-size: .8rem;
  padding: .6rem .85rem;
  margin-top: .85rem;
  border-radius: 8px;
  line-height: 1.5;
  border: 1px solid transparent;
  animation: prospFadeSlide .35s cubic-bezier(.4, 0, .2, 1);
}
@keyframes prospFadeSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === ACTIONS PRINCIPALES === */
.prosp-cta-row {
  display: flex; gap: .65rem; align-items: center;
  flex-wrap: wrap;
}
.prosp-cta-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(135deg, var(--primary) 0%, #2a2890 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .75rem 1.3rem;
  font-size: .92rem; font-weight: 600;
  letter-spacing: -.005em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all .2s ease;
  box-shadow: 0 4px 14px -3px rgba(29, 22, 117, .4), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.prosp-cta-primary::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
  transition: left .6s ease;
}
.prosp-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -4px rgba(29, 22, 117, .5), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.prosp-cta-primary:hover::before { left: 100%; }
.prosp-cta-primary:active { transform: translateY(0); }
.prosp-cta-ghost {
  display: inline-flex; align-items: center; gap: .4rem;
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(29, 22, 117, .2);
  border-radius: 10px;
  padding: .7rem 1.1rem;
  font-size: .88rem; font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.prosp-cta-ghost:hover {
  background: rgba(29, 22, 117, .05);
  border-color: rgba(29, 22, 117, .35);
}
.prosp-cta-status {
  font-size: .78rem; color: var(--text-muted);
  font-style: italic;
}

/* === COACHING IA (panneau discret en bas) === */
.prosp-coaching {
  background: linear-gradient(135deg, #fffbeb 0%, #fefce8 100%);
  border: 1px solid rgba(217, 119, 6, .18);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.prosp-coaching[open] { border-color: rgba(217, 119, 6, .3); }
.prosp-coaching > summary {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1.2rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: .88rem; font-weight: 600;
  color: #92400e;
  transition: background .15s ease;
}
.prosp-coaching > summary::-webkit-details-marker { display: none; }
.prosp-coaching > summary:hover { background: rgba(217, 119, 6, .04); }
.prosp-coaching-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 700;
  box-shadow: 0 2px 6px -1px rgba(217, 119, 6, .3);
  flex-shrink: 0;
}
.prosp-coaching-sub {
  margin-left: auto;
  font-size: .73rem; font-weight: 400;
  color: var(--text-muted);
}
.prosp-coaching-chev {
  width: 14px; height: 14px;
  color: #92400e;
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
}
.prosp-coaching[open] .prosp-coaching-chev { transform: rotate(90deg); }
.prosp-coaching-body {
  padding: 0 1.2rem 1.1rem;
}
.prosp-coaching-examples {
  font-size: .76rem; color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 .65rem;
}
.prosp-coaching-textarea {
  width: 100%;
  padding: .65rem .8rem;
  background: #fff;
  border: 1px solid rgba(217, 119, 6, .2);
  border-radius: 8px;
  font-family: inherit;
  font-size: .85rem; line-height: 1.5;
  color: var(--text);
  resize: vertical;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.prosp-coaching-textarea:focus {
  border-color: rgba(217, 119, 6, .5);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, .1);
}
.prosp-coaching-actions {
  display: flex; gap: .65rem; align-items: center;
  margin-top: .65rem; flex-wrap: wrap;
}
.prosp-coaching-save {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #d97706; color: #fff;
  border: none; border-radius: 8px;
  padding: .5rem .85rem;
  font-size: .82rem; font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  box-shadow: 0 2px 8px -2px rgba(217, 119, 6, .4);
}
.prosp-coaching-save:hover {
  background: #b45309;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(217, 119, 6, .5);
}

/* === EDITOR MAIL (apparait apres compose) === */
.prosp-editor {
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  margin-top: 1.2rem;
  animation: prospEditorSlide .4s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 4px 24px -6px rgba(29, 22, 117, .08);
}
@keyframes prospEditorSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.prosp-editor-eyebrow {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 .8rem;
  display: inline-flex; align-items: center; gap: .35rem;
}
.prosp-editor-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.prosp-editor-subject {
  width: 100%;
  padding: .7rem .9rem;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 1.05rem; font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
  outline: none;
  margin-bottom: .85rem;
  transition: all .15s ease;
}
.prosp-editor-subject:focus {
  background: #fff;
  border-color: rgba(29, 22, 117, .25);
  box-shadow: 0 0 0 4px rgba(29, 22, 117, .05);
}
.prosp-editor-body-label {
  display: block;
  font-size: .72rem; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .02em;
  margin-bottom: .35rem;
}
.prosp-editor-body {
  width: 100%;
  padding: .9rem 1rem;
  background: #fafbfd;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .85rem; line-height: 1.7;
  color: var(--text);
  resize: vertical;
  outline: none;
  transition: all .15s ease;
}
.prosp-editor-body:focus {
  background: #fff;
  border-color: rgba(29, 22, 117, .25);
  box-shadow: 0 0 0 4px rgba(29, 22, 117, .05);
}
.prosp-editor-actions {
  display: flex; gap: .65rem;
  margin-top: 1.1rem;
}
.prosp-send-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(135deg, #d8a951 0%, #c9943a 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .8rem 1.5rem;
  font-size: .95rem; font-weight: 700;
  letter-spacing: -.005em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all .2s ease;
  box-shadow: 0 4px 16px -4px rgba(216, 169, 81, .5), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.prosp-send-btn::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transition: left .7s ease;
}
.prosp-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -6px rgba(216, 169, 81, .6), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.prosp-send-btn:hover::before { left: 130%; }

/* === ENVOIS PRECEDENTS (timeline mini) === */
.prosp-envois-section {
  margin-top: .5rem;
}
.prosp-envois-title {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 .85rem;
}
.prosp-envoi {
  display: flex; align-items: center; gap: .85rem;
  padding: .75rem .9rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: .55rem;
  transition: all .15s ease;
}
.prosp-envoi:hover {
  border-color: rgba(29, 22, 117, .2);
  transform: translateX(2px);
  box-shadow: 0 2px 10px -2px rgba(29, 22, 117, .08);
}
.prosp-envoi-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .78rem;
  flex-shrink: 0;
}
.prosp-envoi-main { flex: 1; min-width: 0; }
.prosp-envoi-to {
  font-size: .9rem; font-weight: 600;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prosp-envoi-meta {
  font-size: .76rem; color: var(--text-muted);
  margin-top: .15rem;
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
}
.prosp-envoi-status {
  font-size: .68rem; font-weight: 700;
  padding: .15rem .55rem;
  border-radius: 999px;
  letter-spacing: .04em; text-transform: uppercase;
  flex-shrink: 0;
}
.prosp-envoi-status.is-envoye { background: var(--success-soft); color: var(--success); }
.prosp-envoi-status.is-erreur { background: var(--danger-soft); color: var(--danger); }
.prosp-envoi-empty {
  color: var(--text-muted);
  font-size: .85rem;
  padding: 1.2rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 10px;
}

/* === LIEN MISSION + TON (row discret) === */
.prosp-meta-row {
  display: flex; gap: .85rem; align-items: end;
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px dashed var(--border);
}
.prosp-meta-row .prosp-field { flex: 1; }
.prosp-select {
  width: 100%;
  padding: .55rem .75rem;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .88rem;
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: all .15s ease;
}
.prosp-select:hover { background: #eef0f6; }
.prosp-select:focus {
  background: #fff;
  border-color: rgba(29, 22, 117, .35);
  box-shadow: 0 0 0 4px rgba(29, 22, 117, .06);
}

/* === Mobile breakpoint === */
@media (max-width: 640px) {
  .prosp-grid { grid-template-columns: 1fr; }
  .prosp-meta-row { flex-direction: column; align-items: stretch; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SYNTHESES COPIABLES - onglet drawer dedie au copy-paste vers outils externes
   ─────────────────────────────────────────────────────────────────────────
   2 cards IA : Experiences (CV+notes) + Personnalite (Big5 points forts).
   Style cohérent avec pitch-prospect : glassmorphism, hierarchie radicale,
   un seul CTA accentue par card (Copier devient star quand le texte est la).
   ═══════════════════════════════════════════════════════════════════════════ */
.syn { display: flex; flex-direction: column; gap: 1.4rem; }

.syn-intro {
  background: linear-gradient(135deg, #f3f5ff 0%, #fff 100%);
  border: 1px solid rgba(29, 22, 117, .1);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}
.syn-intro strong { color: var(--primary); font-weight: 600; }
.syn-intro-eyebrow {
  display: block;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .35rem;
}

.syn-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.syn-card:hover { border-color: rgba(29, 22, 117, .18); box-shadow: 0 4px 16px -6px rgba(29, 22, 117, .08); }
.syn-card.is-loading { border-color: rgba(217, 119, 6, .25); }
.syn-card.is-stale { border-color: rgba(217, 119, 6, .35); background: linear-gradient(135deg, #fffbeb 0%, #fff 60%); }
.syn-card.is-unavailable { background: var(--bg); border-style: dashed; }

.syn-card-head {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem .85rem;
  border-bottom: 1px solid var(--border);
}
.syn-card.is-unavailable .syn-card-head { border-bottom: none; padding-bottom: 1rem; }

.syn-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 3px 10px -3px rgba(29, 22, 117, .25);
}
.syn-card-icon svg { width: 18px; height: 18px; stroke-width: 2.2; }
.syn-card[data-type="experiences"] .syn-card-icon {
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
}
.syn-card[data-type="personnalite"] .syn-card-icon {
  background: linear-gradient(135deg, #6366f1 0%, #d8a951 100%);
  box-shadow: 0 3px 10px -3px rgba(216, 169, 81, .35);
}
.syn-card.is-unavailable .syn-card-icon {
  background: linear-gradient(135deg, #e5e9f0 0%, #cdd5e0 100%);
  box-shadow: none;
  color: var(--text-muted);
}

.syn-card-titles { flex: 1; min-width: 0; }
.syn-card-title {
  margin: 0;
  font-size: 1rem; font-weight: 600;
  color: var(--text);
  letter-spacing: -.005em;
}
.syn-card-sub {
  margin: .15rem 0 0;
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.syn-card-status {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.syn-card-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-soft);
  flex-shrink: 0;
}
.syn-card-status-dot.is-fresh   { background: var(--success); box-shadow: 0 0 0 3px rgba(16, 185, 129, .12); }
.syn-card-status-dot.is-stale   { background: var(--warn); }
.syn-card-status-dot.is-loading { background: var(--warn); animation: synPulse 1.4s ease-in-out infinite; }
.syn-card-status-dot.is-empty   { background: var(--text-soft); }
@keyframes synPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 119, 6, .4); }
  50%      { transform: scale(1.3); box-shadow: 0 0 0 5px rgba(217, 119, 6, 0); }
}

.syn-card-body {
  padding: 1.1rem 1.25rem;
}

.syn-text-zone {
  position: relative;
  background: #fafbfd;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  font-size: .9rem; line-height: 1.65;
  color: var(--text);
  white-space: pre-wrap;
  word-wrap: break-word;
  user-select: text;
  cursor: text;
  max-height: 480px;
  overflow-y: auto;
  transition: border-color .15s ease;
}
.syn-text-zone:hover { border-color: rgba(29, 22, 117, .15); }
.syn-card.is-stale .syn-text-zone {
  background: #fffef9;
  border-color: rgba(217, 119, 6, .25);
}

.syn-stale-banner {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem .85rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  border: 1px solid rgba(217, 119, 6, .25);
  border-radius: 8px;
  font-size: .8rem; color: #92400e;
  margin-bottom: .85rem;
}
.syn-stale-banner svg { width: 14px; height: 14px; flex-shrink: 0; }

.syn-empty {
  text-align: center;
  padding: 1.8rem 1rem 1.6rem;
  color: var(--text-muted);
}
.syn-empty-illu {
  width: 48px; height: 48px;
  color: var(--text-soft);
  opacity: .6;
  margin: 0 auto .65rem;
  display: block;
}
.syn-empty-title {
  font-size: .92rem; font-weight: 600;
  color: var(--text);
  margin: 0 0 .35rem;
}
.syn-empty-sub {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 1.1rem;
}

.syn-card-actions {
  display: flex; gap: .55rem; align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.syn-btn-primary {
  display: inline-flex; align-items: center; gap: .45rem;
  background: linear-gradient(135deg, var(--primary) 0%, #2a2890 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .6rem 1.1rem;
  font-size: .85rem; font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all .2s ease;
  box-shadow: 0 3px 12px -3px rgba(29, 22, 117, .35), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.syn-btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
  transition: left .6s ease;
}
.syn-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -4px rgba(29, 22, 117, .45); }
.syn-btn-primary:hover::before { left: 120%; }
.syn-btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.syn-btn-primary svg { width: 14px; height: 14px; stroke-width: 2.4; }

.syn-btn-ghost {
  display: inline-flex; align-items: center; gap: .4rem;
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(29, 22, 117, .2);
  border-radius: 8px;
  padding: .55rem 1rem;
  font-size: .83rem; font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.syn-btn-ghost:hover { background: rgba(29, 22, 117, .04); border-color: rgba(29, 22, 117, .35); }
.syn-btn-ghost:disabled { opacity: .5; cursor: not-allowed; }
.syn-btn-ghost svg { width: 13px; height: 13px; stroke-width: 2.2; }

.syn-copy-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  background: linear-gradient(135deg, #d8a951 0%, #c9943a 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .6rem 1.1rem;
  font-size: .85rem; font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: all .2s ease;
  box-shadow: 0 3px 12px -3px rgba(216, 169, 81, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.syn-copy-btn:hover { transform: translateY(-1px); box-shadow: 0 7px 20px -4px rgba(216, 169, 81, .55); }
.syn-copy-btn:active { transform: translateY(0); }
.syn-copy-btn svg { width: 14px; height: 14px; stroke-width: 2.4; }
.syn-copy-btn.is-copied {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  box-shadow: 0 3px 12px -3px rgba(16, 185, 129, .5);
}
.syn-copy-btn.is-copied::after {
  content: ''; position: absolute; inset: 0;
  animation: synCopyPulse .6s ease 1;
  border-radius: 8px;
  pointer-events: none;
}
@keyframes synCopyPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); }
  100% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
}

.syn-loader {
  display: flex; flex-direction: column; align-items: center;
  padding: 2rem 1rem;
  gap: .85rem;
}
.syn-loader-orb {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--primary));
  animation: synSpin 1s linear infinite;
  position: relative;
}
.syn-loader-orb::before {
  content: ''; position: absolute; inset: 3px;
  border-radius: 50%;
  background: #fff;
}
@keyframes synSpin {
  to { transform: rotate(360deg); }
}
.syn-loader-text {
  font-size: .85rem; color: var(--text-muted);
}
.syn-loader-sub {
  font-size: .76rem; color: var(--text-soft);
}

/* ═══ Refonte évaluation : grille d'entretien structurée ═══════════════════ */
.evg-ed-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.evg-ed-title { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; }
.evg-ed-sub { color: var(--text-muted); font-size: .85rem; margin-top: .15rem; }
.evg-block { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin-bottom: 1rem; background: var(--surface); }
.evg-block-title { font-size: .73rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 .7rem; }
.evg-mini-label { display: block; font-size: .78rem; font-weight: 600; color: var(--text-muted); margin-bottom: .3rem; }
.evg-hint { font-size: .74rem; color: var(--text-soft); margin-top: .4rem; }
.evg-seg-toggle { display: flex; gap: .4rem; margin-bottom: .9rem; }
.evg-toggle-btn { flex: 1; padding: .6rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-size: .84rem; font-weight: 600; color: var(--text-muted); }
.evg-toggle-btn:hover:not(:disabled) { border-color: var(--text-soft); }
.evg-toggle-btn:disabled { opacity: .45; cursor: not-allowed; }
.evg-toggle-btn.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.evg-gen-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.evg-gen-actions .btn { display: inline-flex; align-items: center; }
.evg-gen-loading { text-align: center; padding: 3rem 1rem; }

/* bandeau récap (score live) */
.evg-recap-strip { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .85rem 1rem; margin-bottom: 1.2rem; }
.evg-recap-poste { font-size: .8rem; color: var(--text-muted); margin-bottom: .55rem; }
.evg-recap-poste strong { color: var(--text); font-weight: 600; }
.evg-score-row { display: flex; align-items: center; gap: .9rem; }
.evg-score-num { font-size: 1.75rem; font-weight: 800; font-family: "JetBrains Mono", monospace; line-height: 1; }
.evg-score-unit { font-size: .8rem; color: var(--text-soft); font-weight: 600; }
.evg-score-meta { flex: 1; min-width: 0; }
.evg-score-label { font-size: .82rem; font-weight: 600; }
.evg-bar { height: 7px; background: var(--border); border-radius: 999px; overflow: hidden; margin-top: .35rem; }
.evg-bar-fill { height: 100%; border-radius: 999px; transition: width .25s ease; }
.evg-score-count { font-size: .72rem; color: var(--text-soft); margin-top: .3rem; }

/* axe + critère (éditeur) */
.evg-axe { margin: 1.4rem 0 .55rem; }
.evg-axe-name { width: 100%; font-size: .92rem; font-weight: 700; color: var(--primary); border: 1px solid transparent; border-radius: 5px; padding: .25rem .4rem; background: transparent; }
.evg-axe-name:hover { background: var(--bg); }
.evg-axe-name:focus { border-color: var(--primary); outline: none; background: #fff; }
.evg-crit { border: 1px solid var(--border); border-left: 3px solid var(--border-strong); border-radius: var(--radius-sm); padding: .8rem .9rem; margin-bottom: .6rem; background: var(--surface); }
.evg-crit-n1 { border-left-color: var(--danger); }
.evg-crit-n2 { border-left-color: var(--warn); }
.evg-crit-n3 { border-left-color: var(--secondary); }
.evg-crit-n4 { border-left-color: var(--success); }
.evg-crit-top { display: flex; gap: .5rem; align-items: center; }
.evg-crit-name { flex: 1; min-width: 0; font-weight: 600; font-size: .9rem; border: 1px solid var(--border); border-radius: 5px; padding: .35rem .45rem; background: var(--bg); color: var(--text); }
.evg-crit-name:focus { border-color: var(--primary); outline: none; background: #fff; }
.evg-crit-del { background: transparent; border: none; color: var(--text-soft); cursor: pointer; padding: .25rem; display: inline-flex; border-radius: 5px; flex-shrink: 0; }
.evg-crit-del:hover { background: var(--danger-soft); color: var(--danger); }
.evg-crit-att { width: 100%; font-size: .8rem; color: var(--text-muted); border: 1px solid var(--border); border-radius: 5px; padding: .35rem .45rem; margin-top: .45rem; background: var(--bg); }
.evg-crit-att:focus { border-color: var(--primary); outline: none; background: #fff; color: var(--text); }
.evg-poids { display: flex; gap: .3rem; margin-top: .55rem; flex-wrap: wrap; }
.evg-chip { padding: .26rem .6rem; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); font-size: .72rem; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.evg-chip:hover { border-color: var(--text-soft); }
.evg-chip.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.evg-seg { display: flex; gap: .3rem; margin-top: .5rem; }
.evg-seg-btn { flex: 1; padding: .42rem .2rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: .74rem; font-weight: 600; color: var(--text-muted); cursor: pointer; text-align: center; }
.evg-seg-btn:hover { border-color: var(--text-soft); }
.evg-seg-btn.active.n1 { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.evg-seg-btn.active.n2 { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.evg-seg-btn.active.n3 { background: #e2f0fb; color: var(--secondary); border-color: var(--secondary); }
.evg-seg-btn.active.n4 { background: var(--success-soft); color: var(--success); border-color: var(--success); }
.evg-crit-preuve { margin-top: .5rem; font-size: .83rem; resize: vertical; }
.evg-add { width: 100%; padding: .5rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: transparent; color: var(--text-muted); font-size: .8rem; font-weight: 600; cursor: pointer; }
.evg-add:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.evg-dec { display: flex; gap: .4rem; }
.evg-dec-btn { flex: 1; padding: .5rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: .8rem; font-weight: 700; color: var(--text-muted); cursor: pointer; }
.evg-dec-btn:hover { border-color: var(--text-soft); }
.evg-dec-btn.active[data-dec="go"] { border-color: var(--success); background: var(--success-soft); color: var(--success); }
.evg-dec-btn.active[data-dec="reserve"] { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
.evg-dec-btn.active[data-dec="no_go"] { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.evg-dec-btn.active[data-dec="en_cours"] { border-color: var(--text-soft); background: var(--bg); color: var(--text); }
.evg-ed-footer { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* carte récap (lecture seule) */
.evg-recap { padding: 1.1rem 1.2rem; }
.evg-recap-head { display: flex; align-items: flex-start; gap: .6rem; }
.evg-recap-poste-t { font-weight: 700; font-size: .96rem; }
.evg-recap-meta { font-size: .76rem; color: var(--text-muted); margin-top: .1rem; }
.evg-table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.evg-table td { padding: .5rem .5rem; border-bottom: 1px solid var(--border); vertical-align: top; font-size: .82rem; }
.evg-table tr:last-child td { border-bottom: none; }
.evg-t-axe { background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; padding: .4rem .5rem !important; }
.evg-t-name { font-weight: 600; }
.evg-t-att { color: var(--text-muted); font-size: .74rem; margin-top: .2rem; line-height: 1.45; }
.evg-t-niv { white-space: nowrap; width: 1%; }
.evg-niv { display: inline-block; padding: .2rem .5rem; border-radius: 4px; font-size: .71rem; font-weight: 700; }
.evg-niv-0 { background: var(--bg); color: var(--text-soft); }
.evg-niv-1 { background: var(--danger-soft); color: var(--danger); }
.evg-niv-2 { background: var(--warn-soft); color: var(--warn); }
.evg-niv-3 { background: #e2f0fb; color: var(--secondary); }
.evg-niv-4 { background: var(--success-soft); color: var(--success); }
.evg-t-preuve { color: var(--text); line-height: 1.45; }
.evg-t-preuve.empty { color: var(--text-soft); font-style: italic; }
.evg-poids-tag { font-size: .67rem; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .03em; margin-top: .15rem; }
.evg-synth { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .85rem; }
.evg-synth-box { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .65rem .75rem; font-size: .8rem; line-height: 1.5; background: var(--bg); }
.evg-synth-cap { font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3rem; }

/* titre de section (colonne vertébrale de la grille) */
.evg-section-title { display: flex; align-items: baseline; gap: .5rem; font-size: .82rem; font-weight: 700; color: var(--text); margin: 1.5rem 0 .5rem; padding-bottom: .35rem; border-bottom: 1px solid var(--border); }
.evg-section-title .evg-section-sub { font-weight: 500; font-size: .73rem; color: var(--text-soft); }
.evg-block-sub { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text-soft); font-size: .72rem; margin-left: .35rem; }

/* qualification candidat (données factuelles recueillies en entretien) */
.evg-qual { border: 1px solid var(--border); border-left: 3px solid var(--secondary); border-radius: var(--radius-sm); padding: .6rem .7rem; margin-bottom: .5rem; background: var(--surface); }
.evg-qual-head { display: flex; gap: .5rem; align-items: center; }
.evg-qual-lbl { flex: 1; min-width: 0; font-weight: 600; font-size: .86rem; border: 1px solid transparent; border-radius: 5px; padding: .25rem .4rem; background: transparent; color: var(--text); }
.evg-qual-lbl:hover { background: var(--bg); }
.evg-qual-lbl:focus { border-color: var(--primary); outline: none; background: #fff; }
.evg-qual-del { background: transparent; border: none; color: var(--text-soft); cursor: pointer; padding: .25rem; display: inline-flex; border-radius: 5px; flex-shrink: 0; }
.evg-qual-del:hover { background: var(--danger-soft); color: var(--danger); }
.evg-qual-hint { font-size: .74rem; color: var(--text-soft); margin: .1rem .4rem .45rem; line-height: 1.4; }
.evg-qual-rep { width: 100%; font-size: .84rem; border: 1px solid var(--border); border-radius: 5px; padding: .4rem .5rem; background: var(--bg); color: var(--text); resize: vertical; font-family: inherit; line-height: 1.45; }
.evg-qual-rep:focus { border-color: var(--primary); outline: none; background: #fff; }

/* qualification en lecture seule (carte récap) */
.evg-qual-recap { margin: .3rem 0 .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.evg-qual-recap-row { display: grid; grid-template-columns: 38% 1fr; gap: .6rem; padding: .42rem .65rem; border-bottom: 1px solid var(--border); font-size: .8rem; }
.evg-qual-recap-row:last-child { border-bottom: none; }
.evg-qual-recap-lbl { font-weight: 600; color: var(--text-muted); }
.evg-qual-recap-rep { color: var(--text); line-height: 1.4; }
.evg-qual-recap-rep.empty { color: var(--text-soft); font-style: italic; }

/* ── Écran unique d'entretien (refonte radicale : sujets + verdict) ────────── */
.evg-poste-line { display: flex; gap: .5rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.evg-poste-input { flex: 1; min-width: 160px; font-size: .95rem; font-weight: 600; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .5rem .6rem; background: var(--surface); color: var(--text); }
.evg-poste-input:focus { border-color: var(--primary); outline: none; }
.evg-poste-projet { max-width: 45%; }
.evg-regen { display: inline-flex; align-items: center; gap: .15rem; background: transparent; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: .45rem .7rem; font-size: .8rem; font-weight: 600; color: var(--primary); cursor: pointer; white-space: nowrap; }
.evg-regen:hover { background: var(--primary-soft); border-color: var(--primary); }
.evg-sujet { border: 1px solid var(--border); border-left: 3px solid var(--secondary); border-radius: var(--radius-sm); padding: .65rem .75rem; margin-bottom: .55rem; background: var(--surface); }
.evg-sujet-head { display: flex; gap: .5rem; align-items: center; }
.evg-sujet-num { flex-shrink: 0; width: 1.35rem; height: 1.35rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: .74rem; font-weight: 700; }
.evg-sujet-theme { flex: 1; min-width: 0; font-weight: 600; font-size: .9rem; border: 1px solid transparent; border-radius: 5px; padding: .25rem .4rem; background: transparent; color: var(--text); }
.evg-sujet-theme:hover { background: var(--bg); }
.evg-sujet-theme:focus { border-color: var(--primary); outline: none; background: #fff; }
.evg-sujet-del { background: transparent; border: none; color: var(--text-soft); cursor: pointer; padding: .25rem; display: inline-flex; border-radius: 5px; flex-shrink: 0; }
.evg-sujet-del:hover { background: var(--danger-soft); color: var(--danger); }
.evg-sujet-hint { font-size: .76rem; color: var(--text-soft); margin: .1rem .4rem .45rem; line-height: 1.4; }
.evg-sujet-note { width: 100%; font-size: .88rem; border: 1px solid var(--border); border-radius: 5px; padding: .45rem .55rem; background: var(--bg); color: var(--text); resize: vertical; font-family: inherit; line-height: 1.5; }
.evg-sujet-note:focus { border-color: var(--primary); outline: none; background: #fff; }
.evg-verdict-block { margin: 1.4rem 0 .4rem; }
.evg-verdict-q { font-size: .8rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.evg-verdict { display: flex; gap: .5rem; }
.evg-verdict-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .7rem .4rem; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: .85rem; font-weight: 700; color: var(--text-muted); cursor: pointer; }
.evg-verdict-emoji { font-size: 1.3rem; line-height: 1; }
.evg-verdict-btn:hover { border-color: var(--text-soft); }
.evg-verdict-btn.v-go.active { border-color: var(--success); background: var(--success-soft); color: var(--success); }
.evg-verdict-btn.v-reserve.active { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
.evg-verdict-btn.v-no_go.active { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.evg-note-interne { margin-top: 1.1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .3rem .6rem; background: var(--surface); }
.evg-note-interne summary { font-size: .78rem; font-weight: 600; color: var(--text-muted); cursor: pointer; padding: .35rem 0; }
.evg-note-interne textarea { margin: .3rem 0 .5rem; }
.evg-recap-sujets { margin: .55rem 0 .2rem; }
.evg-recap-sujet { padding: .5rem 0; border-bottom: 1px solid var(--border); }
.evg-recap-sujet:last-child { border-bottom: none; }
.evg-recap-sujet-t { font-weight: 600; font-size: .84rem; margin-bottom: .15rem; }
.evg-recap-sujet-n { font-size: .82rem; color: var(--text); line-height: 1.45; }
.evg-recap-sujet-n.empty { color: var(--text-soft); font-style: italic; }

/* ─── Bouton "Mener l'entretien" (CTA éditeur) ──────────────────────────── */
.evg-lead-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin: 0 0 1.1rem; padding: .8rem 1rem;
  border: 1.5px solid var(--primary); border-radius: var(--radius-sm);
  background: var(--primary-soft); color: var(--primary);
  font-size: .92rem; font-weight: 700; cursor: pointer; transition: background .15s, box-shadow .15s;
}
.evg-lead-btn:hover { background: #e3e0f3; box-shadow: var(--shadow-sm); }
.evg-lead-btn .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }

/* ─── MODE FOCUS : conducteur d'entretien plein écran ───────────────────── */
.evg-focus {
  position: fixed; inset: 0; z-index: 80;
  background: var(--bg);
  display: flex; flex-direction: column;
  animation: evgFocusIn .18s ease;
}
@keyframes evgFocusIn { from { opacity: 0; } to { opacity: 1; } }
.evg-focus-bar {
  flex-shrink: 0; display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1.6rem; border-bottom: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.evg-focus-who { flex: 1; min-width: 0; font-size: 1.05rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evg-focus-poste { font-weight: 500; color: var(--text-muted); }
.evg-focus-progress { flex-shrink: 0; font-size: .82rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: .3rem .7rem; border-radius: 999px; }
.evg-focus-exit {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: .5rem .8rem; font-size: .84rem; font-weight: 600; color: var(--text-muted); cursor: pointer;
}
.evg-focus-exit:hover { border-color: var(--text-soft); color: var(--text); }
.evg-focus-exit kbd { font-size: .68rem; font-family: "JetBrains Mono", monospace; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: .05rem .3rem; color: var(--text-soft); }
.evg-focus-scroll { flex: 1; overflow-y: auto; padding: 2.2rem 1.5rem 6rem; }
.evg-focus-fil { max-width: 820px; margin: 0 auto; }
.evg-focus-empty { text-align: center; color: var(--text-soft); padding: 3rem 1rem; }

.evg-focus-sujet {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  padding: 1.1rem 1.3rem; margin-bottom: 1rem; opacity: .5;
  transition: opacity .2s, box-shadow .2s, border-color .2s; cursor: pointer;
}
.evg-focus-sujet:hover { opacity: .8; }
.evg-focus-sujet.active { opacity: 1; border-color: var(--primary); box-shadow: var(--shadow); cursor: default; }
.evg-focus-sujet-head { display: flex; align-items: center; gap: .7rem; }
.evg-focus-num { flex-shrink: 0; width: 1.7rem; height: 1.7rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: .9rem; font-weight: 800; }
.evg-focus-theme { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; color: var(--text); line-height: 1.25; }
.evg-focus-sujet.active .evg-focus-theme { font-size: 1.55rem; }
.evg-focus-indice { font-size: 1rem; color: var(--text-muted); margin: .5rem 0 0; line-height: 1.5; }

/* Amorces STAR : aide-mémoire passif, jamais persisté. */
.evg-focus-star { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .9rem 0 .3rem; }
.evg-star-cell { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); padding: .5rem .65rem; }
.evg-star-cell.is-r { border-color: var(--primary); background: var(--primary-soft); }
.evg-star-k { display: block; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); margin-bottom: .2rem; }
.evg-star-cell.is-r .evg-star-k { color: var(--primary); }
.evg-star-v { display: block; font-size: .85rem; color: var(--text-muted); line-height: 1.4; }

.evg-focus-note {
  width: 100%; margin-top: .9rem; font-family: inherit;
  font-size: 1.12rem; line-height: 1.7; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .7rem .8rem;
  background: var(--bg); resize: vertical; min-height: 64px;
}
.evg-focus-note:focus { border-color: var(--primary); outline: none; background: #fff; }

/* Bloc socle épinglé */
.evg-focus-socle {
  border: 1px solid var(--primary); border-radius: var(--radius);
  background: var(--primary-soft); padding: 1.1rem 1.3rem; margin: 1.6rem 0 1rem;
}
.evg-focus-socle-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .9rem; }
.evg-focus-socle-title { font-size: .95rem; font-weight: 800; color: var(--primary); }
.evg-focus-socle-count { font-size: .78rem; font-weight: 700; color: var(--primary); background: #fff; border-radius: 999px; padding: .25rem .7rem; }
.evg-socle-item { background: var(--surface); border-radius: var(--radius-sm); padding: .8rem .9rem; margin-bottom: .6rem; }
.evg-socle-item:last-child { margin-bottom: 0; }
.evg-socle-theme { font-size: .92rem; font-weight: 700; color: var(--text); margin-bottom: .55rem; }
.evg-socle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.evg-socle-f { display: block; }
.evg-socle-f span { display: block; font-size: .74rem; font-weight: 600; color: var(--text-muted); margin-bottom: .3rem; }
.evg-socle-f .input { width: 100%; font-size: 1rem; }
.evg-socle-item .evg-focus-note { margin-top: 0; font-size: 1rem; }

/* Verdict à chaud + sortie */
.evg-focus-verdict { border-top: 1px solid var(--border); margin-top: 1.8rem; padding-top: 1.4rem; }
.evg-focus-verdict-q { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: .7rem; }
.evg-focus-done { width: 100%; margin-top: 1.2rem; padding: .8rem; font-size: .95rem; }

@media (max-width: 899px) { .evg-focus { display: none; } }

.big5-bar {
  display: grid;
  grid-template-columns: 140px 1fr 50px;
  gap: .85rem;
  align-items: center;
  margin-bottom: .55rem;
  font-size: .85rem;
}
.big5-bar .track {
  height: 8px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
}
.big5-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  border-radius: 999px;
}
.big5-score { text-align: right; font-weight: 600; font-family: "JetBrains Mono", monospace; font-size: .82rem; }

.cv-zone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: border-color .15s, background .15s;
}
.cv-zone:hover, .cv-zone.dragging { border-color: var(--primary); background: var(--primary-soft); }
.cv-zone.has-cv { border-style: solid; border-color: var(--success); background: #fff; text-align: left; }
.cv-row {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.cv-icon {
  width: 44px; height: 44px;
  background: var(--success-soft); color: var(--success);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cv-name { font-weight: 600; font-size: .9rem; }
.cv-meta { color: var(--text-muted); font-size: .78rem; }

/* ═══════════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,20,30,.5);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--surface);
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.modal-lg { max-width: 680px; }
.modal-header {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { margin: 0; font-size: 1.05rem; font-weight: 600; }
.modal-body { padding: 1.25rem 1.4rem; overflow-y: auto; }
.modal-footer {
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  background: var(--bg);
}

/* ═══════════════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════════════ */
.toast-stack {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.toast {
  background: #14181f;
  color: #fff;
  padding: .7rem 1rem;
  border-radius: 8px;
  font-size: .85rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 240px;
  max-width: 360px;
  animation: toast-in .2s ease;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes toast-in {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ─── LOADING ─────────────────────────────────────────────────────── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, var(--surface) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 4px;
  height: 14px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ─── AVATAR ──────────────────────────────────────────────────────── */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #fff;
  text-transform: uppercase;
  user-select: none;
  font-size: .82rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18);
}
.avatar-sm { width: 28px; height: 28px; font-size: .7rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.15rem; }
.avatar-xl { width: 76px; height: 76px; font-size: 1.6rem; }

/* ─── COMMAND PALETTE ─────────────────────────────────────────────── */
.cmdk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 30, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1rem 1rem;
}
.cmdk-overlay.active { display: flex; }
.cmdk-modal {
  background: var(--surface);
  border-radius: 14px;
  width: 100%;
  max-width: 640px;
  max-height: 70vh;
  box-shadow: 0 24px 80px rgba(15,20,30,.30);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: cmdkPop .18s ease-out;
}
@keyframes cmdkPop {
  from { opacity: 0; transform: translateY(-12px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cmdk-header {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .95rem 1.2rem;
  border-bottom: 1px solid var(--border);
}
.cmdk-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: .98rem;
  color: var(--text);
  font-family: inherit;
}
.cmdk-input::placeholder { color: var(--text-soft); }
.cmdk-shortcut {
  display: inline-flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: .15rem .45rem;
  border-radius: 5px;
  font-size: .7rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: ui-monospace, "JetBrains Mono", monospace;
}
.cmdk-results {
  overflow-y: auto;
  padding: .35rem 0 .5rem;
}
.cmdk-section {
  padding: .6rem 1.2rem .25rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.cmdk-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .55rem 1.2rem;
  cursor: pointer;
  font-size: .9rem;
  color: var(--text);
  transition: background .12s;
}
.cmdk-item.selected { background: var(--primary-soft); }
.cmdk-item-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--bg);
  color: var(--text-muted);
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.cmdk-item-icon svg { width: 14px; height: 14px; }
.cmdk-item.selected .cmdk-item-icon { background: var(--primary); color: #fff; }
.cmdk-item-main { flex: 1; min-width: 0; overflow: hidden; }
.cmdk-item-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-item-sub { font-size: .76rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-item-meta {
  font-size: .72rem;
  color: var(--text-soft);
  font-family: ui-monospace, "JetBrains Mono", monospace;
}
.cmdk-empty {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .88rem;
}
.cmdk-footer {
  padding: .6rem 1.2rem;
  border-top: 1px solid var(--border);
  font-size: .7rem;
  color: var(--text-soft);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.cmdk-footer span { display: inline-flex; align-items: center; gap: .35rem; }

/* ─── TIMELINE ────────────────────────────────────────────────────── */
.tl { position: relative; padding-left: 1.85rem; }
.tl::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--border);
}
.tl-item { position: relative; padding-bottom: 1.3rem; }
.tl-item:last-child { padding-bottom: .35rem; }
.tl-dot {
  position: absolute;
  left: -1.85rem;
  top: 0;
  width: 28px; height: 28px;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  z-index: 1;
}
.tl-dot svg { width: 13px; height: 13px; }
.tl-dot.tl-note    { border-color: var(--primary);     color: var(--primary); }
.tl-dot.tl-eval    { border-color: var(--secondary);   color: var(--secondary); }
.tl-dot.tl-projet  { border-color: var(--accent-dark); color: var(--accent-dark); }
.tl-dot.tl-portail { border-color: var(--success);     color: var(--success); }
.tl-dot.tl-big5    { border-color: #6b46c1;            color: #6b46c1; }
.tl-meta {
  font-size: .76rem;
  color: var(--text-soft);
  margin-bottom: .2rem;
}
.tl-title { font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: .15rem; }
.tl-content {
  font-size: .85rem;
  line-height: 1.55;
  color: var(--text-muted);
  white-space: pre-wrap;
}

/* ─── RADAR Big5 ──────────────────────────────────────────────────── */
.radar-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (max-width: 600px) { .radar-wrap { grid-template-columns: 1fr; } .radar-svg { margin: 0 auto; } }
.radar-svg { display: block; }
.radar-grid-shape { fill: var(--bg); fill-opacity: .55; stroke: var(--border); stroke-width: 1; }
.radar-axis { stroke: var(--border); stroke-width: 1; }
.radar-poly { fill: var(--primary); fill-opacity: .18; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; }
.radar-point { fill: var(--primary); stroke: #fff; stroke-width: 2; }
.radar-label { font-size: 11px; fill: var(--text-muted); font-weight: 600; }
.radar-legend { display: flex; flex-direction: column; gap: .15rem; }
.radar-legend-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  font-size: .85rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.radar-legend-row:last-child { border-bottom: none; }
.radar-legend-row strong { font-weight: 500; color: var(--text); }
.radar-legend-row .v { color: var(--primary); font-weight: 700; font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .92rem; min-width: 36px; text-align: right; }

/* ─── ONGLET BIG5 / Profil de personnalité ────────────────────────── */
.b5 { display: flex; flex-direction: column; gap: 1.6rem; }
.b5-sec { margin: 0; }
.b5-mono { font-family: ui-monospace, "JetBrains Mono", monospace; }

/* severité : pilote la couleur d'accent via --b5-c */
.b5-good { --b5-c: var(--success); }
.b5-warn { --b5-c: var(--warn); }
.b5-bad  { --b5-c: var(--danger); }

/* Hero archétype */
.b5-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: 1.35rem 1.45rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, #3a2fc0 100%);
  color: #fff;
}
.b5-hero-emoji {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.1rem; line-height: 1;
  background: rgba(255,255,255,.13);
  border-radius: 16px;
}
.b5-hero-title { margin: 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.b5-hero-sub { margin: .12rem 0 .55rem; font-size: .84rem; color: rgba(255,255,255,.74); font-weight: 500; }
.b5-hero-summary { margin: 0; font-size: .85rem; line-height: 1.6; color: rgba(255,255,255,.93); }
.b5-hero-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; }
.b5-hero-tag {
  font-size: .69rem; font-weight: 600;
  padding: .2rem .55rem; border-radius: 999px;
  background: rgba(255,255,255,.15); color: #fff;
}

/* KPI : force prédictive + fiabilité */
.b5-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .b5-kpis { grid-template-columns: 1fr; } }
.b5-kpi {
  position: relative; overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .95rem 1.05rem;
  background: var(--surface);
}
.b5-kpi::before {
  content: ""; position: absolute;
  top: 0; left: 0; bottom: 0; width: 4px;
  background: var(--b5-c, var(--primary));
}
.b5-kpi-cap { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .045em; color: var(--text-muted); }
.b5-kpi-val { display: flex; align-items: baseline; gap: .28rem; margin: .35rem 0 .1rem; }
.b5-kpi-num { font-size: 1.95rem; font-weight: 800; line-height: 1; color: var(--b5-c, var(--primary)); }
.b5-kpi-den { font-size: .78rem; color: var(--text-soft); font-weight: 600; }
.b5-kpi-status { font-size: .82rem; font-weight: 700; color: var(--b5-c, var(--primary)); }
.b5-kpi-desc { font-size: .75rem; line-height: 1.5; color: var(--text-muted); margin-top: .45rem; }

/* Panneau fiabilité du protocole */
.b5-rel {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
  background: var(--surface);
}
.b5-rel.b5-good { background: var(--success-soft); border-color: rgba(12,166,120,.28); }
.b5-rel.b5-warn { background: var(--warn-soft);    border-color: rgba(212,134,12,.32); }
.b5-rel.b5-bad  { background: var(--danger-soft);  border-color: rgba(224,59,59,.32); }
.b5-rel-head { display: flex; align-items: center; gap: .55rem; }
.b5-rel-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--b5-c); flex: none; }
.b5-rel-title { font-size: .88rem; font-weight: 700; color: var(--text); }
.b5-rel-verdict { font-size: .82rem; font-weight: 700; color: var(--b5-c); }
.b5-rel-score { margin-left: auto; font-size: .82rem; font-weight: 800; color: var(--b5-c); }
.b5-rel-body { margin-top: .8rem; display: flex; flex-direction: column; gap: .65rem; }
.b5-rel-line { font-size: .78rem; line-height: 1.5; color: var(--text); }
.b5-rel-line .lbl { font-weight: 700; }
.b5-coh-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.b5-coh-tag {
  font-size: .67rem; font-weight: 600;
  padding: .15rem .45rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.7); color: var(--text-muted);
  border: 1px solid var(--border);
}
.b5-coh-tag.atyp { background: var(--danger-soft); color: var(--danger); border-color: rgba(224,59,59,.3); }
.b5-rel-flags { margin: .15rem 0 0; padding-left: 1.05rem; font-size: .76rem; line-height: 1.55; color: var(--text); }
.b5-rel-flags li { margin-bottom: .15rem; }

/* Radar + barres dimensionnelles */
.b5-radar-row { display: grid; grid-template-columns: 230px 1fr; gap: 1.5rem; align-items: center; }
@media (max-width: 620px) { .b5-radar-row { grid-template-columns: 1fr; } .b5-radar-row .radar-svg { margin: 0 auto; } }
.b5-bars { display: flex; flex-direction: column; gap: .75rem; }
.b5-bar-head { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .26rem; }
.b5-bar-name { font-size: .81rem; font-weight: 600; color: var(--text); }
.b5-bar-niveau { font-size: .69rem; color: var(--text-soft); }
.b5-bar-val { margin-left: auto; font-size: .82rem; font-weight: 800; color: var(--b5-c, var(--primary)); }
.b5-bar-track { height: 9px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.b5-bar-fill { height: 100%; border-radius: 999px; background: var(--b5-c, var(--primary)); transition: width .5s ease; }
.b5-bar-pctl { font-size: .67rem; color: var(--text-muted); margin-top: .22rem; }

/* Cartes dimensions détaillées */
.b5-dims { display: flex; flex-direction: column; gap: .7rem; }
.b5-dim {
  border: 1px solid var(--border);
  border-left: 4px solid var(--b5-c, var(--primary));
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  background: var(--surface);
}
.b5-dim-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .45rem; }
.b5-dim-name { font-size: .92rem; font-weight: 700; color: var(--text); }
.b5-dim-niveau { font-size: .72rem; font-weight: 600; color: var(--b5-c); }
.b5-dim-pctl {
  font-size: .65rem; font-weight: 700;
  padding: .12rem .45rem; border-radius: 999px;
  background: var(--bg); color: var(--text-muted); border: 1px solid var(--border);
}
.b5-dim-pct { margin-left: auto; font-size: 1rem; font-weight: 800; color: var(--b5-c); }
.b5-dim-desc { font-size: .81rem; line-height: 1.58; color: var(--text-muted); margin: .55rem 0 0; }
.b5-dim-sub { margin-top: .65rem; }
.b5-dim-sub-cap { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-soft); margin-bottom: .32rem; }
.b5-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.b5-chip {
  font-size: .71rem; font-weight: 600;
  padding: .18rem .5rem; border-radius: var(--radius-sm);
  background: var(--primary-soft); color: var(--primary);
}
.b5-watch {
  font-size: .78rem; line-height: 1.5; color: #6b4a08;
  background: var(--warn-soft);
  border-left: 3px solid var(--warn);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: .5rem .7rem; margin-top: .6rem;
}

/* Facettes BFI-2 */
.b5-facets { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
@media (max-width: 560px) { .b5-facets { grid-template-columns: 1fr; } }
.b5-facet-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .7rem .8rem;
}
.b5-facet-group-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: .55rem; padding-bottom: .35rem;
  border-bottom: 1px solid var(--border);
}
.b5-facet-group-name { font-size: .78rem; font-weight: 700; color: var(--b5-c, var(--primary)); }
.b5-facet-group-glob { font-size: .67rem; font-weight: 600; color: var(--text-soft); }
.b5-facet { margin-bottom: .58rem; }
.b5-facet:last-child { margin-bottom: 0; }
.b5-facet-head { display: flex; justify-content: space-between; font-size: .735rem; margin-bottom: .2rem; }
.b5-facet-name { color: var(--text); font-weight: 600; }
.b5-facet-pct { font-weight: 700; color: var(--text-muted); }
.b5-facet-track { height: 5px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.b5-facet-fill { height: 100%; border-radius: 999px; background: var(--b5-c, var(--primary)); }
.b5-facet-interp { font-size: .685rem; line-height: 1.42; color: var(--text-soft); margin-top: .22rem; }
.b5-facet-interp.hi { color: var(--success); }
.b5-facet-interp.lo { color: var(--danger); }

/* Lecture IA */
.b5-ai-intro { font-size: .76rem; color: var(--text-muted); margin: 0 0 .7rem; line-height: 1.5; }
.b5-ai-block {
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: .8rem 1rem; margin-bottom: .65rem;
  background: var(--surface);
}
.b5-ai-block:last-child { margin-bottom: 0; }
.b5-ai-block.signal { border-left-color: var(--accent); background: #fff8e6; }
.b5-ai-block.candidat { border-left-color: var(--secondary); }
.b5-ai-cap { font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); margin-bottom: .35rem; }
.b5-ai-block.signal .b5-ai-cap { color: #8a5a09; }
.b5-ai-block.candidat .b5-ai-cap { color: var(--secondary); }
.b5-ai-text { font-size: .835rem; line-height: 1.62; color: var(--text); }
.b5-ai-questions { margin: .15rem 0 0; padding-left: 1.15rem; display: flex; flex-direction: column; gap: .42rem; }
.b5-ai-questions li { font-size: .82rem; line-height: 1.55; color: var(--text); }

/* Pied de page : liens rapport */
.b5-foot { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.b5-foot-note { font-size: .72rem; color: var(--text-soft); }

/* ─── BADGE À QUALIFIER ───────────────────────────────────────────── */
.badge-qualifier {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-color: rgba(212, 134, 12, .25);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.badge-qualifier::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 2.2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.25); opacity: .55; }
}

/* ─── DASHBOARD HUB ──────────────────────────────────────────────── */
.hub-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 880px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.hub-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: .65rem;
}
.hub-card-title {
  font-size: .9rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.hub-card-title svg { width: 16px; height: 16px; color: var(--text-muted); }
.hub-card-action {
  font-size: .78rem;
  color: var(--secondary);
  text-decoration: none;
  cursor: pointer;
}
.hub-card-action:hover { text-decoration: underline; }
.qualifier-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .65rem .25rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .12s;
  border-radius: 6px;
  margin: 0 -.5rem;
  padding-left: .75rem;
  padding-right: .75rem;
}
.qualifier-row:last-child { border-bottom: none; }
.qualifier-row:hover { background: var(--bg); }
.qualifier-info { flex: 1; min-width: 0; }
.qualifier-name { font-weight: 600; font-size: .9rem; }
.qualifier-poste { color: var(--text-muted); font-size: .78rem; margin-top: .1rem; }
.qualifier-time { color: var(--text-soft); font-size: .75rem; white-space: nowrap; }

/* ─── EMPTY STATE ILLUSTRÉ ────────────────────────────────────────── */
.empty-illu {
  width: 96px; height: 96px;
  margin: 0 auto 1.1rem;
  color: var(--text-soft);
  opacity: .85;
}

/* ═══════════════════════════════════════════════════════════════════
   AI - SPARKLE & WOW EFFECT
   ═══════════════════════════════════════════════════════════════════ */
.ai-btn {
  background: linear-gradient(135deg, var(--primary) 0%, #2d2398 50%, var(--secondary) 100%);
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
}
.ai-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .6s;
  pointer-events: none;
}
.ai-btn:hover { filter: brightness(1.08); border-color: transparent; color: #fff; }
.ai-btn:hover::before { transform: translateX(100%); }
.ai-btn .sparkle { width: 14px; height: 14px; animation: sparkleSpin 4s linear infinite; }
@keyframes sparkleSpin { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(180deg); } }

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .15rem .5rem;
  background: linear-gradient(135deg, rgba(29,22,117,.10), rgba(29,114,170,.10));
  border: 1px solid rgba(29,22,117,.18);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary);
}
.ai-badge svg { width: 11px; height: 11px; }

.ai-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  gap: 1rem;
}
.ai-loading-orb {
  width: 56px; height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff 0%, transparent 35%),
    conic-gradient(from 180deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  animation: aiOrbSpin 2.5s linear infinite;
  box-shadow: 0 0 24px rgba(29,22,117,.35);
}
@keyframes aiOrbSpin { to { transform: rotate(360deg); } }
.ai-loading-text {
  font-size: .88rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
}
.ai-loading-timer {
  margin-top: .35rem;
  font-size: .72rem;
  color: var(--text-muted);
  opacity: .55;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
.ai-loading-text::after {
  content: '';
  display: inline-block;
  animation: aiDots 1.4s steps(4, end) infinite;
}
@keyframes aiDots { 0%{content:''} 25%{content:'.'} 50%{content:'..'} 75%{content:'...'} 100%{content:''} }
/* Progression du scoring projet (async) */
.match-progress { text-align: center; padding: 2.5rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.match-progress-txt { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: .9rem; font-variant-numeric: tabular-nums; }
.match-progress-bar { max-width: 320px; height: 8px; margin: 0 auto .9rem; background: var(--primary-soft); border-radius: 999px; overflow: hidden; }
.match-progress-fill { height: 100%; background: var(--primary); border-radius: 999px; transition: width .4s ease; }
.match-progress-sub { font-size: .82rem; color: var(--text-muted); max-width: 440px; margin: 0 auto; line-height: 1.5; }
/* Statut de relation candidat (badge + select colorés) */
.sr-badge { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .66rem; font-weight: 700; letter-spacing: .01em; vertical-align: middle; line-height: 1.5; }
.sr-select { font: inherit; font-size: .8rem; font-weight: 600; padding: .22rem .5rem; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.sr-select:focus { outline: none; box-shadow: 0 0 0 3px var(--primary-soft); }
.sr-select-sm { font-size: .74rem; padding: .14rem .4rem; }
.sr-filter { font: inherit; font-size: .85rem; padding: .45rem .7rem; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.drawer-statut { display: flex; align-items: center; gap: .5rem; margin-top: .55rem; }
.drawer-statut-lbl { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-soft); }
.cand-dispo { display: flex; align-items: center; gap: .4rem; margin-top: .45rem; }
.cand-dispo-lbl { font-size: .7rem; font-weight: 600; color: var(--text-soft); }
.sr-badge.sr-discussion { background: #e0e7ff; color: #3538cd; }
.sr-select.sr-discussion { border-color: #9aa6f5; color: #3538cd; }
.sr-badge.sr-pasint { background: var(--danger-soft); color: var(--danger); }
.sr-select.sr-pasint { border-color: #f0a3a3; color: var(--danger); }
.sr-badge.sr-injoignable { background: var(--warn-soft); color: var(--warn); }
.sr-select.sr-injoignable { border-color: #e6c07a; color: var(--warn); }
.sr-badge.sr-indispo { background: #eef0f4; color: var(--text-muted); }
.sr-select.sr-indispo { border-color: var(--border-strong); color: var(--text-muted); }
.sr-badge.sr-place { background: var(--success-soft); color: var(--success); }
.sr-select.sr-place { border-color: #86d9bf; color: var(--success); }
.sr-badge.sr-ecarte { background: #3f3f46; color: #fafafa; }
.sr-select.sr-ecarte { border-color: #3f3f46; color: #3f3f46; }
.sr-select.sr-actif { color: var(--text); }

/* Écartement : motif affiché (drawer + carte kanban) et hint IA du modal */
.drawer-ecarte-motif { margin-top: .35rem; font-size: .78rem; color: var(--text-muted); font-style: italic; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pk-motif { font-size: .72rem; color: var(--text-muted); font-style: italic; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ecarte-hint { display: flex; gap: .5rem; align-items: flex-start; margin-top: .7rem; padding: .6rem .7rem; border-radius: var(--radius-sm); background: var(--primary-soft, #eef1ff); color: var(--text-muted); font-size: .78rem; line-height: 1.45; }
.ecarte-hint svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: .1rem; color: var(--primary); }

/* Match results */
.match-result {
  display: grid;
  grid-template-columns: auto 60px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .55rem;
  background: var(--surface);
  transition: border-color .15s, transform .15s;
}
.match-result:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.match-score {
  text-align: center;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -.02em;
  position: relative;
}
.match-score-fort   { color: var(--success); }
.match-score-moyen  { color: var(--accent-dark); }
.match-score-faible { color: var(--text-soft); }
.match-score-pct { font-size: .66rem; color: var(--text-soft); display: block; font-weight: 500; margin-top: -2px; letter-spacing: 0; font-family: inherit; }
.match-info { min-width: 0; }
.match-name { font-weight: 600; font-size: .95rem; }
.match-poste { color: var(--text-muted); font-size: .8rem; margin-top: .1rem; }
.match-reason {
  margin-top: .4rem;
  font-size: .82rem;
  color: var(--text);
  line-height: 1.5;
  padding-left: .65rem;
  border-left: 2px solid var(--primary-soft);
  background: linear-gradient(90deg, var(--primary-soft) 0%, transparent 100%);
  padding: .45rem .65rem .45rem .8rem;
  border-radius: 4px;
}

/* Projet : description (offre d'emploi + notes de brief) */
.projet-desc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.projet-desc-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: .5rem;
}
.projet-desc-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text);
}
.projet-desc.collapsed .projet-desc-body {
  max-height: 9rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent);
  mask-image: linear-gradient(180deg, #000 62%, transparent);
}
.projet-desc-toggle {
  margin-top: .55rem;
  background: none;
  border: none;
  color: var(--primary);
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.projet-desc-toggle:hover { text-decoration: underline; }

/* Projet : score IA dans le tableau candidats */
.proj-score {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 1.05rem;
}
.proj-score span {
  font-family: inherit;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-top: 1px;
}
.proj-score-fort   { color: var(--success); }
.proj-score-moyen  { color: var(--accent-dark); }
.proj-score-faible { color: var(--text-soft); }
.proj-score-reason {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: .25rem;
}
.proj-score-stale {
  display: inline-block;
  font-size: .64rem;
  font-weight: 600;
  color: var(--warn);
  margin-top: 2px;
}

/* ── Panneau d'explication du scoring (ligne expansible sous chaque candidat) */
.proj-score-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: background .12s, color .12s, transform .15s;
}
.proj-score-toggle:hover { background: var(--bg); color: var(--text); }
.proj-score-toggle .icon { width: 14px; height: 14px; }
.proj-score-toggle.is-open { background: var(--bg); color: var(--primary); }
.proj-score-toggle.is-open .icon { transform: rotate(180deg); }

.proj-score-detail-row > td {
  padding: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.proj-score-detail {
  padding: 1rem 1.25rem 1.15rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.1rem 1.4rem;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--text);
}
.proj-score-detail h4 {
  margin: 0 0 .35rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.proj-score-detail-summary {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .75rem .9rem;
}
.proj-score-detail-summary p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
}

.proj-score-sources {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .55rem;
}
.proj-score-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
}
.proj-score-chip.is-used {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}
.proj-score-chip.is-missing {
  color: var(--text-soft);
  text-decoration: line-through;
  opacity: .75;
}
.proj-score-chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  opacity: .55;
}

.proj-score-criteria { display: flex; flex-direction: column; gap: .55rem; }
.proj-score-crit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .1rem .65rem;
  padding: .55rem .7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.proj-score-crit-head {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  font-size: .84rem;
  color: var(--text);
}
.proj-score-crit-weight {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .12rem .4rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.proj-score-crit-weight.is-critique  { color: var(--danger, #b42318); border-color: color-mix(in srgb, var(--danger, #b42318) 35%, var(--border)); }
.proj-score-crit-weight.is-important { color: var(--accent-dark); border-color: color-mix(in srgb, var(--accent-dark) 35%, var(--border)); }
.proj-score-crit-weight.is-mineur    { color: var(--text-soft); }
.proj-score-crit-score {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: .92rem;
  align-self: center;
  min-width: 32px;
  text-align: right;
}
.proj-score-crit-bar {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 3px;
  background: var(--bg);
  overflow: hidden;
  margin-top: .15rem;
}
.proj-score-crit-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--primary);
  transition: width .25s ease;
}
.proj-score-crit-bar-fill.is-high { background: var(--success); }
.proj-score-crit-bar-fill.is-mid  { background: var(--accent-dark); }
.proj-score-crit-bar-fill.is-low  { background: var(--text-soft); }
.proj-score-crit-evidence {
  grid-column: 1 / -1;
  margin-top: .35rem;
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.proj-score-lists {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.proj-score-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .65rem .85rem;
}
.proj-score-list ul {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.proj-score-list li {
  font-size: .85rem;
  line-height: 1.45;
  color: var(--text);
}
.proj-score-list.is-strengths h4 { color: var(--success); }
.proj-score-list.is-gaps      h4 { color: var(--warn); }

@media (max-width: 880px) {
  .proj-score-detail { grid-template-columns: 1fr; }
}

/* Outreach variants */
.outreach-tabs {
  display: flex;
  gap: .35rem;
  margin-bottom: 1rem;
  background: var(--bg);
  padding: .25rem;
  border-radius: 8px;
}
.outreach-tab {
  flex: 1;
  padding: .55rem .75rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
}
.outreach-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.outreach-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.outreach-subject {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .25rem;
}
.outreach-subject strong { color: var(--text); text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 600; display: block; margin-top: .15rem; }
.outreach-body {
  font-size: .9rem;
  line-height: 1.65;
  white-space: pre-wrap;
  color: var(--text);
}
.outreach-actions {
  display: flex;
  gap: .5rem;
  margin-top: .85rem;
  justify-content: flex-end;
}

/* Onglet Contacter (mail personnel premium genere par IA) */
.contact-wrap { display: flex; flex-direction: column; gap: 1rem; }
.contact-intro {
  background: var(--primary-soft); border-radius: var(--radius);
  padding: .85rem 1rem; font-size: .88rem; line-height: 1.55; color: var(--text);
}
.contact-intro .syn-intro-eyebrow { display: block; margin-bottom: .25rem; }
.contact-intro strong { color: var(--primary); }
.contact-controls { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 560px) { .contact-controls { grid-template-columns: 1fr; } }
.contact-ctrl { display: flex; flex-direction: column; gap: .3rem; }
.contact-lbl {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted);
}
.contact-lbl-opt { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text-soft); }
.contact-select, .contact-input, .contact-textarea {
  width: 100%; box-sizing: border-box; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; padding: .5rem .65rem;
}
.contact-select:focus, .contact-input:focus, .contact-textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.contact-textarea { resize: vertical; line-height: 1.6; }
.contact-angle { min-height: 2.6rem; }
.contact-draft-zone {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  padding: 1rem; display: flex; flex-direction: column; gap: .45rem;
}
.contact-draft-zone.is-empty { align-items: center; text-align: center; gap: .8rem; padding: 2rem 1rem; }
.contact-empty-hint { margin: 0; font-size: .84rem; color: var(--text-muted); max-width: 430px; line-height: 1.55; }
.contact-draft-badge { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.contact-draft-hint { font-size: .78rem; color: var(--text-soft); }
.contact-draft-zone .contact-lbl { margin-top: .35rem; }
.contact-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .5rem; }
.contact-sig-preview { border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--bg); padding: .5rem .7rem; }
.contact-sig-label { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-soft); margin-bottom: .3rem; }
.contact-sig-body { font-size: .82rem; line-height: 1.45; color: var(--text-muted); }
.contact-history { margin-top: .35rem; }
.contact-history-head {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: .5rem; display: flex; align-items: center; gap: .4rem;
}
.contact-history-head .count {
  background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: .05rem .45rem; font-size: .72rem;
}
.contact-history-empty { margin: 0; font-size: .84rem; color: var(--text-soft); font-style: italic; }
.contact-hist-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .55rem .7rem;
  margin-bottom: .4rem; cursor: pointer; background: var(--surface); transition: border-color .15s;
}
.contact-hist-item:hover { border-color: var(--border-strong); }
.contact-hist-row { display: flex; align-items: center; gap: .5rem; }
.contact-hist-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.contact-hist-dot.is-ok { background: var(--success); }
.contact-hist-dot.is-ko { background: var(--danger); }
.contact-hist-subj { flex: 1; min-width: 0; font-size: .86rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-hist-date { font-size: .76rem; color: var(--text-soft); flex: none; }
.contact-hist-body {
  margin-top: .5rem; padding-top: .5rem; border-top: 1px dashed var(--border);
  white-space: pre-wrap; font-size: .84rem; line-height: 1.55; color: var(--text-muted);
}

/* Dictée vocale */
.dictee-zone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  text-align: center;
  background: var(--bg);
  transition: all .25s;
}
.dictee-zone.recording {
  border-style: solid;
  border-color: var(--danger);
  background: #fff7f7;
}
.dictee-zone.processing {
  border-style: solid;
  border-color: var(--primary);
  background: var(--primary-soft);
}
.dictee-mic-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .65rem;
  transition: transform .15s, box-shadow .25s;
  box-shadow: 0 4px 16px rgba(29,22,117,.25);
}
.dictee-mic-btn:hover { transform: scale(1.05); }
.dictee-mic-btn:active { transform: scale(.97); }
.dictee-mic-btn.recording {
  background: var(--danger);
  animation: micPulse 1.4s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(224,59,59,.4);
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(224,59,59,.4), 0 0 0 0 rgba(224,59,59,.5); }
  50%      { box-shadow: 0 4px 16px rgba(224,59,59,.4), 0 0 0 14px rgba(224,59,59,0); }
}
.dictee-mic-btn svg { width: 24px; height: 24px; }
.dictee-status { font-size: .85rem; color: var(--text-muted); }
.dictee-time {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-weight: 600;
  color: var(--text);
}

/* ─── KBD ─────────────────────────────────────────────────────────── */
.kbd {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: .7rem;
  font-family: ui-monospace, monospace;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.4;
}

/* ─── SEARCH HINT (cmdk shortcut in search bar) ──────────────────── */
.search-wrap .kbd-hint {
  position: absolute;
  right: .65rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .app.active { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .nav { display: flex; padding: .5rem; }
  .nav-item { border-left: none; border-bottom: 3px solid transparent; }
  .nav-item.active { border-bottom-color: var(--accent); border-left-color: transparent; }
  .sidebar-user { display: none; }
  .main { padding: 1rem; }
  .field-row { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; gap: .15rem; }
  .field-grid > .lbl { font-size: .72rem; }
  .drawer { width: 100vw; }
}

/* ═══════════════════════════════════════════════════════════════════
   POLISH — micro-details qui font la difference
   ═══════════════════════════════════════════════════════════════════ */

/* Rendu typographique plus precis sur tous les ecrans */
body {
  font-feature-settings: "ss01", "cv11", "ss02";
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
}

/* Chiffres alignes verticalement partout (KPI, scores, dates) */
.stat-value, .qualifier-time, .cands-table td, .drawer-name,
.match-score, .badge { font-variant-numeric: tabular-nums; }

/* ─── App shell : respiration ────────────────────────────────────── */
.app.active { grid-template-columns: 244px 1fr; }
.main { padding: 2.4rem 2.75rem 4rem; }

/* ─── Sidebar : plus calme, plus haut de gamme ───────────────────── */
.sidebar { background: #0d0937; }
.sidebar-brand { padding: 1.85rem 1.65rem 1.4rem; border-bottom-color: rgba(255,255,255,.06); }
.sidebar-brand-logo { font-size: 1.4rem; letter-spacing: -.018em; }
.sidebar-brand-sub { opacity: .5; font-size: .66rem; letter-spacing: .14em; }
.nav { padding: 1.1rem .55rem; }
.nav-item {
  margin: .12rem .35rem;
  padding: .58rem .95rem .58rem 1.05rem;
  border-radius: 8px;
  border-left: 2px solid transparent;
  font-size: .89rem;
  letter-spacing: -.005em;
  transition: background .18s ease, color .18s ease;
}
.nav-item:hover { background: rgba(255,255,255,.05); }
.nav-item.active {
  background: rgba(255,255,255,.08);
  border-left-color: var(--accent);
}
.sidebar-user { padding: 1.1rem 1.5rem 1.25rem; border-top-color: rgba(255,255,255,.06); }

/* ─── Titres de page : presence et hierarchie ────────────────────── */
.page-header { margin-bottom: 1.85rem; }
.page-title {
  font-size: 1.9rem;
  letter-spacing: -.024em;
  line-height: 1.15;
  font-weight: 700;
}
.page-sub { font-size: .92rem; margin-top: .4rem; line-height: 1.45; }

/* ─── Cartes : ombres plus subtiles, coins plus doux ─────────────── */
.stat-card, .hub-card, .table-wrap {
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(20,30,50,.025), 0 1px 2px rgba(20,30,50,.04);
  transition: box-shadow .3s ease, transform .25s ease, border-color .25s ease;
}
.stat-card:hover, .hub-card:hover {
  box-shadow: 0 1px 0 rgba(20,30,50,.03), 0 10px 28px rgba(20,30,50,.07);
}

/* ─── Stats : chiffres heroiques ─────────────────────────────────── */
.stat-card { padding: 1.4rem 1.5rem 1.45rem; }
.stat-label {
  text-transform: none;
  letter-spacing: 0;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
}
.stat-value {
  font-size: 2.5rem;
  letter-spacing: -.035em;
  line-height: 1;
  margin-top: .55rem;
  font-weight: 700;
}
.stat-sub { font-size: .78rem; margin-top: .55rem; color: var(--text-muted); }

/* ─── Hub cards : plus aerees ─────────────────────────────────────── */
.hub-card { padding: 1.55rem 1.65rem; }
.hub-card-title { font-size: .92rem; letter-spacing: -.005em; }

/* ─── Animation d'entree des elements de page ────────────────────── */
.stat-grid > *, .hub-grid > *, #recentCandidats, .table-wrap, #candidatsTableWrap {
  animation: pageFadeUp .5s cubic-bezier(.2,.7,.2,1) both;
}
.stat-grid > *:nth-child(1) { animation-delay: .02s; }
.stat-grid > *:nth-child(2) { animation-delay: .07s; }
.stat-grid > *:nth-child(3) { animation-delay: .12s; }
.stat-grid > *:nth-child(4) { animation-delay: .17s; }
.hub-grid > *:nth-child(1) { animation-delay: .2s; }
.hub-grid > *:nth-child(2) { animation-delay: .24s; }
#recentCandidats, #candidatsTableWrap { animation-delay: .28s; }
@keyframes pageFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ─── Boutons : presence et reactivite ──────────────────────────── */
.btn { border-radius: 9px; padding: .58rem 1rem; letter-spacing: -.005em; font-weight: 500; }
.btn-primary {
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  transition: box-shadow .22s ease, transform .12s ease, background .15s ease;
}
.btn-primary:hover { box-shadow: 0 8px 22px rgba(29,22,117,.22); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.btn-sm { padding: .38rem .7rem; font-size: .78rem; border-radius: 7px; }

/* ─── Table candidats : plus aeree, hover plus delicat ─────────── */
.cands-table th { padding: .95rem 1.25rem; font-size: .68rem; letter-spacing: .08em; }
.cands-table td { padding: 1.05rem 1.25rem; }
.cands-table tbody tr { transition: background .2s ease; }
.cands-table tbody tr:hover { background: rgba(29,22,117,.028); }
.cand-name { font-weight: 600; letter-spacing: -.008em; }

/* ─── Toolbar / recherche ────────────────────────────────────────── */
.search-wrap input {
  padding: .68rem 2.5rem .68rem 2.5rem;
  border-radius: 10px;
  font-size: .9rem;
  background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-wrap .icon { left: .95rem; }
.search-wrap input:focus { box-shadow: 0 0 0 4px rgba(29,22,117,.09); }
.chip { padding: .42rem .9rem; font-size: .78rem; border-radius: 999px; transition: all .18s ease; }
.chip.active { box-shadow: 0 4px 14px rgba(29,22,117,.22); }

/* ─── Drawer : ouverture plus soyeuse ────────────────────────────── */
.drawer-overlay { transition: opacity .3s ease; backdrop-filter: blur(4px); }
.drawer {
  transition: transform .35s cubic-bezier(.25,.85,.25,1);
  box-shadow: -20px 0 60px rgba(15,20,30,.18), -2px 0 14px rgba(15,20,30,.05);
}
.drawer-header { padding: 1.55rem 2rem 1.15rem; }
.drawer-name { font-size: 1.45rem; letter-spacing: -.022em; }
.drawer-sub { font-size: .9rem; margin-top: .25rem; }
.drawer-tabs { padding: 0 2rem; }
.drawer-tab { font-size: .86rem; padding: .9rem 0; margin-right: 1.55rem; letter-spacing: -.005em; }

/* ─── Login : minimaliste ────────────────────────────────────────── */
.login-card { border-radius: 18px; box-shadow: 0 30px 80px rgba(15,20,30,.12), 0 4px 16px rgba(15,20,30,.04); }
.login-title { font-size: 1.15rem; letter-spacing: -.012em; }

/* ─── Badges IA : un cran plus precieux ─────────────────────────── */
.ai-badge { font-size: .65rem; letter-spacing: .08em; padding: .2rem .55rem; }

/* ─── Focus rings universels ─────────────────────────────────────── */
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, .nav-item:focus-visible, .chip:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ─── Scrollbar discrete ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(15,20,30,.14); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(15,20,30,.26); background-clip: padding-box; border: 3px solid transparent; }

/* ─── Selection ──────────────────────────────────────────────────── */
::selection { background: rgba(29,22,117,.16); color: var(--primary-dark); }

/* ─── Toast plus precieux ────────────────────────────────────────── */
.toast {
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(15,20,30,.14), 0 2px 6px rgba(15,20,30,.06);
  letter-spacing: -.005em;
}

/* ─── Command palette : plus large, plus soyeux ─────────────────── */
.cmdk-modal { border-radius: 16px; box-shadow: 0 40px 100px rgba(15,20,30,.22), 0 8px 24px rgba(15,20,30,.08); }
.cmdk-input { font-size: .98rem; letter-spacing: -.008em; }

/* ─── Empty state plus chaleureux ────────────────────────────────── */
.empty-state { padding: 4.5rem 2rem; }
.empty-state strong { font-size: 1.05rem; letter-spacing: -.01em; }

/* ─── Responsive overrides du polish ─────────────────────────────── */
@media (max-width: 880px) {
  .main { padding: 1.35rem 1.15rem 2.5rem; }
  .page-title { font-size: 1.55rem; }
  .stat-value { font-size: 2.1rem; }
  .nav-item { margin: 0; border-radius: 0; }
}

/* ── Acte III : accessibilite & confort tactile ──────────────────────────── */
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
.toast-stack { max-width: min(400px, calc(100vw - 2rem)); }
@media (max-width: 880px) {
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; }
  .drawer-close, .dictee-mic-btn { min-width: 44px; min-height: 44px; }
  .nav-item { min-height: 44px; }
  .nav-item.active { background: rgba(29, 22, 117, .08); border-radius: 8px 8px 0 0; }
}

/* ── Acte III : composant generique "job IA" (langage visuel unifie) ──────── */
.ai-job { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; background: var(--primary-soft); border: 1px solid var(--border); border-radius: 10px; font-size: .85rem; }
.ai-job-orb { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(from 0deg, var(--primary), transparent 70%); animation: aijobspin .9s linear infinite; flex-shrink: 0; }
.ai-job.done .ai-job-orb { animation: none; background: var(--success); }
.ai-job.failed .ai-job-orb { animation: none; background: var(--danger); }
.ai-job-timer { margin-left: auto; color: var(--text-muted); font-variant-numeric: tabular-nums; font-size: .78rem; }
@keyframes aijobspin { to { transform: rotate(360deg); } }

/* ── Acte III : editeur d'entretien, saisie sans friction ─────────────────── */
.evg-ed-footer { position: sticky; bottom: -1px; background: var(--surface); padding: .7rem 0 .4rem; border-top: 1px solid var(--border); z-index: 3; }
.evg-sujet-note { transition: min-height .15s ease; }
.evg-sujet-note:focus { min-height: 88px; }

/* ── Acte III : QuickMail en modal iframe ─────────────────────────────────── */
.qm-frame { width: 100%; height: 74vh; border: 0; border-radius: 10px; background: var(--bg); display: block; }
.modal:has(.qm-frame) { max-width: min(1140px, 94vw); width: 94vw; }

/* ── Acte IV : carte relances du tableau de bord ──────────────────────────── */
.relance-prop { padding: .75rem .2rem; border-bottom: 1px solid var(--border); }
.relance-prop:last-of-type { border-bottom: none; }

/* ── Acte IV : kanban pipeline projet ─────────────────────────────────────── */
.pk-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(178px, 1fr); gap: .7rem; overflow-x: auto; padding-bottom: .4rem; }
.pk-col { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: .55rem; min-height: 120px; }
.pk-col-h { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin: 0 0 .55rem .15rem; display: flex; align-items: center; gap: .4rem; }
.pk-count { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0 .45rem; font-size: .68rem; }
.pk-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: .55rem; margin-bottom: .5rem; cursor: pointer; transition: box-shadow .12s, transform .12s; }
.pk-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.pk-name { font-weight: 600; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-poste { font-size: .72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-score { font-size: .7rem; color: var(--text-muted); margin: .4rem 0 .35rem; }
.pk-card .sr-select-sm { width: 100%; margin-top: .35rem; }
.pk-empty { color: var(--text-soft); font-size: .75rem; text-align: center; padding: .8rem 0; }

/* ── Acte IV : import de CV en lot ────────────────────────────────────────── */
.batch-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .5rem .2rem; border-bottom: 1px solid var(--border); }
.batch-row:last-of-type { border-bottom: none; }
.batch-name { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46%; }
.batch-status { display: flex; align-items: center; gap: .4rem; }
.batch-status .ai-job { padding: .3rem .6rem; }
