/* ISCE Prospection : feuille de style
   Aubergine dérivé du violet ISCE (navigation + console d'appel), violet ISCE pour les actions,
   vert « ligne ouverte » pour appeler, rouge pour raccrocher. Une seule famille : Manrope,
   chiffres tabulaires pour les numéros et les minuteurs. */

:root {
  --ink: #34204f;
  --ink-2: #452a68;
  --ink-3: #231538;
  --ink-text: #d8cde8;
  --paper: #f2f3f7;
  --card: #ffffff;
  --text: #1a1d33;
  --muted: #646a85;
  --faint: #9aa0b8;
  --border: #e2e4ec;
  --border-2: #cfd3e0;
  --signal: #683a93;
  --signal-600: #572f7c;
  --signal-50: #f2ebf8;
  --line: #1e9e62;
  --line-600: #17834f;
  --line-bright: #34c27a;
  --hang: #d9433b;
  --hang-600: #bd342d;
  --amber: #b57a06;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-pop: 0 18px 50px rgba(17, 22, 60, 0.22);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 22px; font-weight: 800; }
h2 { font-size: 15px; font-weight: 700; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.num, .tabular { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
body:not(.is-admin) .admin-only { display: none !important; }
body.is-admin .agent-only { display: none !important; }
body:not(.is-lead) .lead-only { display: none !important; }
.ic { display: block; flex: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--border-2); background: var(--card); color: var(--text);
  font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color .12s, border-color .12s, color .12s;
}
.btn:hover { background: #f6f7fb; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.small { height: 32px; padding: 0 10px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.primary { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn.primary:hover { background: var(--signal-600); }
.btn.go { background: var(--line); border-color: var(--line); color: #fff; }
.btn.go:hover { background: var(--line-600); }
.btn.pause { background: #f2b33d; border-color: #f2b33d; color: #2b2100; }
.btn.danger { color: var(--hang); }
.btn.danger-fill { background: var(--hang); border-color: var(--hang); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(33, 39, 94, .06); }
.btn.on-dark { background: transparent; border-color: rgba(255,255,255,.22); color: #fff; }
.btn.on-dark:hover { background: rgba(255,255,255,.08); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: rgba(33, 39, 94, .07); color: var(--text); }

/* ---------- Champs ---------- */
input, select, textarea {
  width: 100%; height: 38px; padding: 0 11px;
  border: 1px solid var(--border-2); border-radius: 8px; background: #fff;
}
textarea { height: auto; padding: 9px 11px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(104, 58, 147, .18); }
input[readonly] { background: #f6f7fa; color: var(--muted); }
input[type='checkbox'], input[type='radio'] { width: 16px; height: 16px; accent-color: var(--signal); }
.field { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin: 0 0 6px; }
label.field input, label.field select { margin-top: 6px; font-weight: 500; }
.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 18px 0 8px; flex-wrap: wrap; }
.field-row .field { margin: 0; }
.hint { font-size: 12px; color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); cursor: pointer; }
.form-error { color: var(--hang); min-height: 1.2em; margin: 0; font-size: 13px; }

/* ---------- Connexion ---------- */
.login { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(1200px 500px at 50% -10%, #53307d 0%, var(--ink) 55%, var(--ink-3) 100%); }
.login-card { width: 100%; max-width: 360px; background: #fff; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-pop); }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 8px; }
.login-logo { width: 240px; height: auto; }
.login-brand h1 { font-size: 18px; font-weight: 800; color: #3a3a3a; }

/* ---------- Structure ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 76px; z-index: 30;
  background: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 0;
}
.side-logo { width: 46px; height: 46px; border-radius: 12px; background: #fff; padding: 3px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.side-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }
.nav-item {
  width: 64px; padding: 9px 0 7px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-text);
  display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: rgba(255,255,255,.14); color: #fff; }
.nav-label { font-size: 11px; font-weight: 600; }
.nav-spacer { flex: 1; }
.nav-avatar { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); background: #7a5aa3; color: #fff; font-weight: 700; cursor: pointer; }
.main { flex: 1; margin-left: 76px; min-width: 0; }
.page { padding: 22px 26px 40px; max-width: 1500px; }
.page-dial { padding-top: 16px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-note { color: var(--muted); font-size: 13px; max-width: 80ch; margin: 12px 2px 0; }
.search { width: 240px; }
.grow { flex: 1; min-width: 200px; width: auto; }

/* ---------- Console d'appel ---------- */
.console {
  display: grid; grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr); align-items: center; gap: 16px;
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 14px 18px;
}
.console-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.console-select { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; font-weight: 600; max-width: 300px; }
.console-select option { color: var(--text); }
.line-mode { font-size: 12px; color: var(--ink-text); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.line-mode::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.line-mode.ready::before { background: var(--line-bright); }
.line-mode.warn::before { background: #f2b33d; }
.console-phone { display: flex; align-items: center; gap: 12px; }
.console-readout { display: flex; flex-direction: column; align-items: flex-end; min-width: 190px; }
.readout-number { font-size: 22px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.readout-state { font-size: 12px; color: var(--ink-text); }
.readout-name { font-size: 12px; font-weight: 700; color: #fff; opacity: .85; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.readout-timer { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-text); min-width: 66px; text-align: center; }
body.in-call .readout-timer { color: #fff; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; }
.round.call { width: 56px; height: 56px; background: var(--line); box-shadow: 0 0 0 4px rgba(52, 194, 122, .18); }
.round.call:hover { background: var(--line-600); }
.round.call:disabled { background: #5d4a78; box-shadow: none; cursor: not-allowed; }
.round.hang { width: 56px; height: 56px; background: var(--hang); }
.round.hang .ic { transform: rotate(135deg); }
.round.hang:hover { background: var(--hang-600); }
.round.soft { background: rgba(255,255,255,.1); }
.round.soft:hover:not(:disabled) { background: rgba(255,255,255,.18); }
.round.soft:disabled { opacity: .35; cursor: not-allowed; }
.round.soft.active { background: #f2b33d; color: #2b2100; }
.console-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.session-info { font-size: 12px; color: var(--ink-text); text-align: right; font-variant-numeric: tabular-nums; }
body.state-ringing .round.hang { animation: ring 1.1s ease-in-out infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 9px rgba(217, 67, 59, .22); } }
.keypad-wrap { position: relative; }
.keypad { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); z-index: 20; background: #fff; border-radius: 12px; padding: 10px;
  display: grid; grid-template-columns: repeat(3, 48px); gap: 6px; box-shadow: var(--shadow-pop); }
.keypad button { height: 42px; border-radius: 8px; border: 1px solid var(--border); background: #fff; font-size: 17px; font-weight: 700; cursor: pointer; color: var(--text); }
.keypad button:hover { background: var(--signal-50); }

/* ---------- Bandeau et état vide ---------- */
.banner { margin-top: 12px; padding: 11px 14px; border-radius: var(--radius); display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--signal-50); color: var(--signal-600); font-weight: 600; }
.banner .call-number { font-size: 20px; font-weight: 800; letter-spacing: .03em; font-variant-numeric: tabular-nums; user-select: all; }
.banner.warn { background: #fdf1db; color: #6b4a00; }
.banner .btn { height: 30px; }
.empty-state { margin-top: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px 24px; text-align: center; }
.empty-state h2 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.empty-state p { max-width: 52ch; margin: 0 auto; color: var(--muted); }
.empty-actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.empty-actions .btn.go { height: 46px; padding: 0 22px; font-size: 15px; }
.empty-figures { display: flex; justify-content: center; gap: 36px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.empty-figures div { display: flex; flex-direction: column; align-items: center; }
.empty-figures b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.empty-figures span { font-size: 12px; color: var(--muted); }

/* ---------- Grille de l'écran d'appel ---------- */
.dial-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.05fr) minmax(320px, 380px); gap: 14px; margin-top: 14px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-head .muted { font-size: 12px; }

.lead-id { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--signal-50); color: var(--signal-600); font-weight: 800; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.avatar.lg { width: 46px; height: 46px; font-size: 16px; }
.lead-name { font-size: 18px; font-weight: 800; line-height: 1.2; }
.lead-sub { color: var(--muted); font-size: 13px; }
.lead-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 14px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 13px; }
.lead-facts dt { color: var(--muted); }
.lead-facts dd { margin: 0; font-weight: 600; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.lead-form .wide { grid-column: 1 / -1; }
.lead-form label { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.save-hint { font-size: 12px; color: var(--line-600); min-height: 18px; margin-top: 8px; }

/* Résultat */
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.outcome {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--border-2); background: #fff; cursor: pointer; text-align: left; font-weight: 700;
}
.outcome::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--dot, var(--faint)); flex: none; }
.outcome:hover { border-color: var(--dot); background: #fcfaff; }
.outcome .kbd { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--faint); border: 1px solid var(--border); border-radius: 5px; padding: 0 6px; line-height: 18px; }
.outcome[data-outcome='interested'] { --dot: #1e9e62; }
.outcome[data-outcome='callback'] { --dot: #7a4fd6; }
.outcome[data-outcome='no_answer'] { --dot: #d99a12; }
.outcome[data-outcome='not_interested'] { --dot: #d9433b; }
.outcome[data-outcome='wrong_number'] { --dot: #7b819b; }
.outcome[data-outcome='interested'] { grid-column: 1 / -1; min-height: 52px; background: #f1faf5; border-color: #bfe6d1; }
.outcomes.attention .outcome { border-color: #e9b949; box-shadow: 0 0 0 3px rgba(242, 179, 61, .22); }
.callback-box { margin-top: 12px; padding: 14px; border-radius: 12px; background: #f6f2fe; border: 1px solid #e2d6fb; }
.cb-title { font-weight: 700; margin-bottom: 10px; }
.cb-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cb-presets button { height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid #d7c8f6; background: #fff; cursor: pointer; font-size: 13px; font-weight: 600; }
.cb-presets button:hover, .cb-presets button.active { background: #7a4fd6; border-color: #7a4fd6; color: #fff; }
.cb-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cb-row input[type='datetime-local'] { width: auto; flex: 1; min-width: 200px; }
.cb-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.result-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.wrap-setting { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.wrap-setting input { width: 64px; height: 32px; }

/* ---------- Activité (chronologie) ---------- */
.activity-panel { padding: 0; display: flex; flex-direction: column; max-height: calc(100vh - 150px); position: sticky; top: 14px; }
.activity-panel .panel-head { padding: 16px 18px 0; margin-bottom: 8px; }
.subtabs { display: flex; gap: 18px; padding: 0 18px; border-bottom: 1px solid var(--border); }
.subtabs button { border: 0; background: none; padding: 9px 0; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs button.active { color: var(--signal-600); border-bottom-color: var(--signal); }
.subtabs .count { font-size: 11px; color: var(--faint); margin-left: 3px; }
.note-form { padding: 12px 18px 0; display: flex; flex-direction: column; gap: 8px; }
.note-form .btn { align-self: flex-end; }
.tl-scroll { overflow-y: auto; padding: 14px 18px 18px; flex: 1; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding-bottom: 16px; }
.tl-dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
  font-size: 12px; font-weight: 800; background: #fff; border: 2px solid var(--border); color: var(--muted); }
.tl-dot.person { background: var(--signal-50); border-color: #fff; color: var(--signal-600); }
.tl-dot.system { color: var(--faint); }
.tl-item[data-tone='interested'] .tl-dot.person { background: #ddf4e8; color: #157347; }
.tl-item[data-tone='callback'] .tl-dot.person { background: #efe7fc; color: #6b3fc9; }
.tl-item[data-tone='no_answer'] .tl-dot.person { background: #fdf1db; color: #8a5a00; }
.tl-item[data-tone='not_interested'] .tl-dot.person { background: #fbe4e2; color: #b4312a; }
.tl-item[data-tone='wrong_number'] .tl-dot.person { background: #eceef3; color: #555b73; }
.tl-title { font-size: 13px; line-height: 1.45; }
.tl-title b { font-weight: 700; }
.tl-meta { font-size: 12px; color: var(--faint); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; }
.tl-card { margin-top: 8px; background: #f6f7fa; border-radius: 9px; padding: 9px 11px; font-size: 13px; }
.tl-card p { margin: 0; white-space: pre-wrap; }
.tl-card .tl-line { color: var(--muted); }
.tl-card audio { width: 100%; height: 34px; margin-top: 8px; }
.tl-empty { color: var(--muted); font-size: 13px; padding: 4px 2px; }

/* ---------- Pastilles de statut ---------- */
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #eceef3; color: #555b73; }
.st-new { background: #dcf1f6; color: #1c6f84; }
.st-no_answer { background: #fdf1db; color: #8a5a00; }
.st-callback { background: #efe7fc; color: #6b3fc9; }
.st-interested { background: #ddf4e8; color: #157347; }
.st-not_interested { background: #fbe4e2; color: #b4312a; }
.st-wrong_number { background: #eceef3; color: #555b73; }
.st-never_answers { background: #2c3150; color: #fff; }

/* ---------- Tableaux ---------- */
.table-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; }
.table-card .card-title { padding: 16px 18px 4px; }
.table { width: 100%; border-collapse: collapse; }
.table-card { overflow-x: auto; }
.table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--border); background: #fafbfc; white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:nth-child(even) td { background: #fbfbfd; }
.table tr.row-link { cursor: pointer; }
.table tr.row-link:hover td { background: #f7f2fb; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table th.num { text-align: right; }
.table .strong { font-weight: 700; }
.table .empty-row td { color: var(--muted); text-align: center; padding: 28px; }
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--text); }
.sort-mark { display: inline-block; width: 12px; margin-left: 4px; color: var(--faint); font-size: 10px; }
th.sorted .sort-mark { color: var(--signal); }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.pager { display: flex; align-items: center; gap: 6px; }
.toolbar { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.toolbar select { width: auto; min-width: 180px; }
.person-cell { display: flex; align-items: center; gap: 10px; }
.person-cell .sub { font-size: 12px; color: var(--muted); }
.agent-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.agent-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: #ddf4e8; color: #157347; font-size: 12px; font-weight: 700; }
.agent-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.agent-chip.dialing { background: #dcf1f6; color: #1c6f84; }
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line-bright); margin-left: 6px; vertical-align: middle; }

/* ---------- Indicateurs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; }
.kpi b { display: block; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi.rdv b { color: var(--line-600); }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.segmented { display: inline-flex; background: #e6e8f0; border-radius: 9px; padding: 3px; }
.segmented button { border: 0; background: none; height: 32px; padding: 0 12px; border-radius: 7px; font-weight: 600; color: var(--muted); cursor: pointer; }
.segmented button.active { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* ---------- Tiroir (fiche, réglages) ---------- */
.drawer-wrap { position: fixed; inset: 0; z-index: 50; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(17, 21, 52, .35); }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--paper); box-shadow: var(--shadow-pop); display: flex; flex-direction: column;
  animation: slide-in .18s ease-out; }
.drawer.wide { width: min(1000px, 100%); }
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px; background: #fff; border-bottom: 1px solid var(--border); }
.drawer-head h2 { font-size: 19px; font-weight: 800; }
.drawer-body { overflow-y: auto; padding: 18px 22px 30px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.drawer-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 22px; background: #fff; border-bottom: 1px solid var(--border); }
.drawer-tools select { width: auto; }
.drawer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.drawer-cols .activity-panel { position: static; max-height: none; }
.set-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.set-card > h3 { font-size: 14px; font-weight: 800; padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.set-row { display: grid; grid-template-columns: 1fr 180px; gap: 14px; align-items: center; padding: 12px 16px; }
.set-row + .set-row { border-top: 1px solid var(--border); }
.set-row .label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.set-row .desc { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.set-pad { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.set-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.set-figures div { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.set-figures b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.set-figures span { font-size: 12px; color: var(--muted); }
.info { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--signal-50); color: var(--signal-600); font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; cursor: help; flex: none; }
.info .tip { display: none; position: absolute; left: 50%; bottom: 135%; transform: translateX(-50%); width: 260px; background: var(--ink-3); color: #fff;
  font-size: 12px; font-weight: 500; line-height: 1.45; padding: 9px 11px; border-radius: 8px; z-index: 5; }
.info:hover .tip, .info:focus .tip { display: block; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: #f6f7fa; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--border-2); border-radius: 8px; cursor: pointer; font-weight: 600; background: #fff; }
.checks label:has(input:checked) { border-color: var(--signal); background: var(--signal-50); }
.dropzone { border: 1.5px dashed var(--border-2); border-radius: 12px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; background: #fafbfc; }
.dropzone:hover, .dropzone.over { border-color: var(--signal); background: var(--signal-50); color: var(--signal-600); }
.mapping { font-size: 13px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.mapping dt { color: var(--muted); }
.mapping dd { margin: 0; font-weight: 600; }
.progress { height: 8px; border-radius: 99px; background: #e6e8f0; overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--signal); transition: width .2s; }
.danger-zone { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Fenêtres, menus, notifications ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 70; background: rgba(17, 21, 52, .4); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: 100%; max-width: 420px; background: #fff; border-radius: 16px; padding: 22px; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; gap: 12px; max-height: 90vh; overflow-y: auto; }
.modal h3 { font-size: 17px; font-weight: 800; }
.modal p { margin: 0; color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.menu { position: fixed; z-index: 80; background: #fff; border-radius: 12px; box-shadow: var(--shadow-pop); padding: 6px; min-width: 220px; }
.menu .menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.menu .menu-head b { display: block; }
.menu .menu-head span { font-size: 12px; color: var(--muted); }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; font-weight: 600; }
.menu button:hover { background: #f2f3f8; }
.menu button.danger { color: var(--hang); }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink-3); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; box-shadow: var(--shadow-pop); max-width: 90vw; }
.toast.ok { background: #145c3b; }
.toast.error { background: #9d2b25; }

/* ---------- Téléphone (clavier) ---------- */
.phone-toggle { position: relative; }
.phone-toggle.active { background: var(--line); color: #fff; }
.nav-badge { position: absolute; top: 4px; right: 10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--hang); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; }
.phone-panel { position: fixed; top: 0; bottom: 0; left: 76px; z-index: 45; width: 340px; background: #fff; border-right: 1px solid var(--border);
  box-shadow: 12px 0 40px rgba(17, 22, 60, .14); display: flex; flex-direction: column; animation: panel-in .16s ease-out; }
@keyframes panel-in { from { transform: translateX(-16px); opacity: 0; } }
.phone-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 18px 6px; }
.phone-head h2 { font-size: 17px; font-weight: 800; }
.phone-line { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.phone-line::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.phone-line.ready::before { background: var(--line-bright); }
.phone-line.warn::before { background: #f2b33d; }
.phone-screen { display: flex; align-items: center; gap: 6px; padding: 8px 18px 0; }
.dial-input { height: 54px; border: 0; border-bottom: 2px solid var(--border); border-radius: 0; font-size: 26px; font-weight: 700; text-align: center;
  font-variant-numeric: tabular-nums; letter-spacing: .04em; padding: 0 4px; }
.dial-input:focus { box-shadow: none; border-bottom-color: var(--signal); }
.dial-match { min-height: 42px; padding: 6px 18px 0; text-align: center; font-size: 13px; color: var(--muted); }
.dial-match b { color: var(--text); }
.dial-match button { margin-top: 4px; }
.dialpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 6px 30px 4px; }
.dialpad button { height: 58px; border-radius: 16px; border: 0; background: #f2f3f8; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.dialpad button:hover { background: #e7e9f3; }
.dialpad button:active { background: #dfe2f0; }
.dialpad b { font-size: 22px; font-weight: 700; }
.dialpad small { font-size: 9px; font-weight: 700; letter-spacing: .14em; color: var(--faint); min-height: 11px; }
.phone-call-row { display: flex; justify-content: center; padding: 10px 0 12px; }
.round.small { width: 40px; height: 40px; }
.free-call { margin: 0 18px 10px; padding: 10px 12px; border-radius: 12px; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 12px; }
.free-call > div { flex: 1; display: flex; flex-direction: column; }
.free-call span { font-size: 12px; color: var(--ink-text); }
.recent-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 6px; border-top: 1px solid var(--border); }
.recent-head h3 { font-size: 14px; font-weight: 800; }
.recent-list { list-style: none; margin: 0; padding: 0 8px 16px; overflow-y: auto; flex: 1; }
.recent-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.recent-list li:hover { background: #f7f2fb; }
.recent-list .dir { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #eef0f6; color: var(--muted); font-size: 14px; font-weight: 800; }
.recent-list .dir.missed { background: #fbe4e2; color: #b4312a; }
.recent-list .dir.in { background: #dcf1f6; color: #1c6f84; }
.recent-list .dir.out { background: #ddf4e8; color: #157347; }
.recent-list .who { font-weight: 700; font-size: 13px; }
.recent-list .what { font-size: 12px; color: var(--muted); }
.recent-list .when { font-size: 12px; color: var(--faint); text-align: right; }
.recent-empty { color: var(--muted); font-size: 13px; padding: 10px; }

/* Appel entrant */
.incoming { position: fixed; top: 18px; right: 18px; z-index: 96; /* au-dessus des alertes de rappel : « Décrocher » reste visible */ width: 340px; background: var(--ink); color: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column; gap: 10px; animation: panel-in .2s ease-out; }
.incoming .in-top { display: flex; align-items: center; gap: 12px; }
.incoming .in-ring { width: 44px; height: 44px; border-radius: 50%; background: var(--line); display: flex; align-items: center; justify-content: center; flex: none; animation: ring-green 1.2s ease-in-out infinite; }
@keyframes ring-green { 50% { box-shadow: 0 0 0 10px rgba(52, 194, 122, .25); } }
.incoming h3 { font-size: 12px; font-weight: 700; color: var(--ink-text); }
.incoming .in-name { font-size: 18px; font-weight: 800; line-height: 1.2; }
.incoming .in-sub { font-size: 13px; color: var(--ink-text); }
.incoming .in-hint { font-size: 12px; color: var(--ink-text); }
.incoming .in-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.incoming.ended .in-hint { display: none; }
.incoming.ended .in-ring { background: #5d4a78; animation: none; }

/* Réglages */
.settings-cols { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.mode-list { display: flex; flex-direction: column; gap: 8px; }
.mode-list label { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 12px; border: 1px solid var(--border-2); border-radius: 10px; cursor: pointer; }
.mode-list label:has(input:checked) { border-color: var(--signal); background: var(--signal-50); }
.mode-list input { margin-top: 3px; }
.mode-list b { display: block; }
.mode-list span { font-size: 13px; color: var(--muted); }
.mode-list label.disabled { opacity: .5; cursor: not-allowed; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.steps li::marker { font-weight: 800; color: var(--signal); }
.key-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.test-result { font-size: 13px; font-weight: 600; }
.test-result.ok { color: var(--line-600); }
.test-result.ko { color: var(--hang); }

/* ---------- Mobile ---------- */
@media (max-width: 1280px) {
  .dial-grid { grid-template-columns: 1fr 1fr; }
  .activity-panel { grid-column: 1 / -1; position: static; max-height: 520px; }
  .drawer-cols { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .console { grid-template-columns: 1fr; }
  .console-phone { justify-content: center; flex-wrap: wrap; }
  .console-right { justify-content: center; }
  .console-readout { align-items: center; min-width: 0; }
  .two-cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar { inset: auto 0 0 0; width: auto; height: 64px; flex-direction: row; justify-content: space-around; padding: 0 6px; }
  .side-logo, .nav-spacer { display: none; }
  .nav-item { width: auto; flex: 1; }
  .nav-avatar { width: 34px; height: 34px; }
  .main { margin-left: 0; padding-bottom: 72px; }
  .page { padding: 14px 12px 28px; }
  .dial-grid { grid-template-columns: 1fr; }
  .result-panel { order: -1; }
  .lead-form { grid-template-columns: 1fr; }
  .outcomes { grid-template-columns: 1fr; }
  .search { width: 100%; }
  .set-row { grid-template-columns: 1fr; }
  .set-figures { grid-template-columns: 1fr 1fr; }
  .console-select { max-width: none; }
  .table th, .table td { padding: 10px 12px; }
  .toasts { bottom: 80px; }
  .phone-panel { left: 0; right: 0; width: auto; bottom: 64px; }
  .incoming { left: 10px; right: 10px; width: auto; top: 10px; }
  .nav-badge { right: 18%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.btn.hang { background: var(--hang); border-color: var(--hang); color: #fff; }
.btn.hang:hover { filter: brightness(.94); }
/* Choix de la campagne (écran Appeler) */
.camp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; max-width: 900px; margin: 22px auto 0; text-align: left; }
.camp-card { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); cursor: pointer; font: inherit; color: inherit; text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; }
.camp-card:hover { border-color: var(--line); box-shadow: 0 6px 18px rgba(52, 32, 79, .08); transform: translateY(-1px); }
.camp-card:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.camp-card.current { border-color: var(--signal); }
.camp-name { font-weight: 800; font-size: 15px; line-height: 1.3; }
.camp-figs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.camp-figs b { color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; margin-right: 2px; }
.camp-go { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 2px; padding: 6px 12px; border-radius: 999px; background: var(--line); color: #fff; font-size: 13px; font-weight: 700; }
.camp-go svg { width: 14px; height: 14px; }
.empty-actions.small-actions { margin-top: 14px; }
/* Mon activité : choix de la période */
.period-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.date-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.date-range label { display: inline-flex; align-items: center; gap: 6px; }
.date-range input[type="date"] { height: 34px; padding: 0 8px; border: 1px solid var(--border); border-radius: 8px; font: inherit; color: var(--text); background: #fff; }
.period-label { margin: -6px 0 12px; color: var(--muted); font-size: 13px; }
/* Choix de la campagne : la barre d'appel n'apparaît qu'une fois dans une campagne */
.page-dial.choosing .console, .page-dial.choosing #wrapBanner { display: none; }
.page-dial.choosing .empty-state { margin-top: 0; }
.camp-back { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px 0 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.camp-back:hover { background: rgba(255,255,255,.14); }
.camp-back svg { width: 16px; height: 16px; }
.camp-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
#campTitle { color: #fff; font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.camp-mode { color: rgba(255,255,255,.65); font-size: 12px; }
.camp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.camp-foot .camp-go { margin-top: 0; }
.camp-mode-tag { font-size: 12px; color: var(--muted); }
.nowrap { white-space: nowrap; }
td.nowrap .btn { margin-right: 4px; vertical-align: middle; }

/* « Pas de réponse / répondeur » : le résultat le plus fréquent, en grand */
.outcome[data-outcome='interested'] { order: 1; }
.outcome[data-outcome='no_answer'] { order: 2; grid-column: 1 / -1; min-height: 64px; font-size: 16px; background: #fff8e8; border-color: #f0d38a; }
.outcome[data-outcome='no_answer']:hover { background: #fff1d1; border-color: #d99a12; }
.outcome[data-outcome='callback'] { order: 3; }
.outcome[data-outcome='not_interested'] { order: 4; }
.outcome[data-outcome='wrong_number'] { order: 5; grid-column: 1 / -1; }
.num-unit { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.num-unit input { width: 72px; }

/* ---------- Fenêtres : version large, zones de texte ---------- */
.modal.wide { max-width: 620px; }
.modal .field textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--border-2); border-radius: var(--radius); font: inherit; font-weight: 500; font-size: 14px; line-height: 1.5; color: var(--text); resize: vertical; background: #fff; }
.modal .field textarea:focus { outline: 2px solid var(--signal); outline-offset: -1px; border-color: transparent; }
.modal .field .hint { display: block; margin-top: 4px; font-weight: 500; }
.err { color: var(--hang); }
.warn-text { color: var(--amber); margin: -4px 0 6px; }
.pre { white-space: pre-wrap; }
.page-hint { margin: -8px 0 14px; }
body:not(.is-admin):not(.is-lead) .staff-only { display: none !important; }

/* ---------- SMS / e-mails ---------- */
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.msg-actions .btn svg { width: 15px; height: 15px; }
.tpl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tpl-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); }
/* Mode succès : les modèles de RDV gardés, rangés à part (1.11.1) */
.tpl-rdv { margin-top: 10px; }
.tpl-rdv summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; padding: 4px 0; }
.tpl-rdv[open] summary { margin-bottom: 8px; }
.tpl-kind { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 3px 8px; border-radius: 999px; background: var(--signal-50); color: var(--signal); }
.tpl-kind.email { background: #e9f5ef; color: var(--line-600); }
.tpl-kind svg { width: 13px; height: 13px; }
.tpl-text { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.tpl-text span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Sauvegardes ---------- */
.backup-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.backup-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.backup-list li:last-child { border-bottom: 0; }
.backup-list li span:first-child { flex: 1; }
.backup-list a.btn { text-decoration: none; }

/* ---------- Objectifs du jour ---------- */
.goal-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.goal-inputs input { display: block; width: 100%; margin-top: 6px; }
.gauge { min-width: 120px; }
.gauge-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.gauge-top b { color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
.gauge-top small { color: var(--faint); font-weight: 600; font-size: 12px; }
.gauge-bar { height: 7px; border-radius: 999px; background: #e9e6f0; overflow: hidden; margin-top: 4px; }
.gauge-bar i { display: block; height: 100%; border-radius: inherit; background: var(--signal); transition: width .4s ease; }
.gauge.done .gauge-bar i { background: var(--line); }
.gauge.done .gauge-top b { color: var(--line-600); }
.goal-card { display: grid; grid-template-columns: repeat(2, minmax(150px, 220px)); gap: 10px 22px; align-items: end; justify-content: center; max-width: 560px; margin: 18px auto 0; padding: 14px 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); text-align: left; }
.goal-card .goal-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--text); }
.goal-card .goal-head svg { width: 16px; height: 16px; color: var(--signal); }
.goal-card.wide { max-width: none; margin: 0 0 16px; justify-content: start; grid-template-columns: repeat(2, minmax(180px, 300px)); }
.console-gauges { display: grid; grid-template-columns: repeat(2, 120px); gap: 12px; text-align: left; }
.console-gauges .gauge-top { color: rgba(255,255,255,.7); }
.console-gauges .gauge-top b { color: #fff; }
.console-gauges .gauge-top small { color: rgba(255,255,255,.55); }
.console-gauges .gauge-bar { background: rgba(255,255,255,.16); }
.console-gauges .gauge-bar i { background: #c9a6ef; }
.console-gauges .gauge.done .gauge-bar i { background: var(--line-bright); }
.console-gauges .gauge.done .gauge-top b { color: var(--line-bright); }
td.goal-col, th.goal-col { min-width: 230px; }
.goal-cell { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }

/* ---------- Écoutes ---------- */
.rec-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.rec-list { list-style: none; margin: 0; padding: 0; }
.rec-item { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(260px, 340px); gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.rec-item:last-child { border-bottom: 0; }
.rec-item audio { width: 100%; height: 36px; }
.rec-notes { margin-top: 4px; font-style: italic; }
.rec-list .empty-row { padding: 28px 18px; text-align: center; color: var(--muted); }
@media (max-width: 760px) {
  .rec-item { grid-template-columns: 1fr; }
  .goal-card, .goal-card.wide { grid-template-columns: 1fr 1fr; }
  td.goal-col { min-width: 180px; }
}
.rec-filters select { width: auto; min-width: 150px; }
.rec-info .strong { font-weight: 700; }
.rec-info .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------- Prise de RDV ---------- */
.book-btn { border-color: #bfe6d1; background: #f1faf5; color: var(--line-600); }
.book-btn:hover { background: #e3f5eb; }
.booking-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(17, 21, 52, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.booking-box { width: min(1000px, 100%); height: min(780px, 100%); background: #fff; border-radius: 16px; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; overflow: hidden; }
.booking-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.booking-head b { display: inline-flex; align-items: center; gap: 8px; }
.booking-box iframe { flex: 1; width: 100%; border: 0; }
.banner.ok { background: #e3f5eb; color: #11643c; }

/* ---------- Mot de passe oublié ---------- */
.link-btn { background: none; border: 0; padding: 2px; color: var(--signal); font-weight: 600; font-size: 13px; cursor: pointer; align-self: center; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--signal-600); }
.login-text { margin: -4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.form-ok { margin: 0; color: var(--line-600); font-size: 14px; line-height: 1.5; }
.form-ok:empty, .form-error:empty { display: none; }

/* ---------- Vérification du numéro affiché ---------- */
.verify-text { margin: 0; color: var(--text) !important; line-height: 1.5; }
.verify-code { font-size: 34px; font-weight: 800; letter-spacing: .12em; text-align: center; padding: 14px; border-radius: 12px; background: var(--signal-50); color: var(--signal); font-variant-numeric: tabular-nums; }
.verify-status { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.verify-status.ok { color: var(--line-600) !important; font-weight: 700; }
.verify-status.err { color: var(--hang) !important; }
.spinner { width: 14px; height: 14px; border: 2px solid var(--border-2); border-top-color: var(--signal); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn.left { align-self: flex-start; padding: 0; }
.booking-tools { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Listes (appels, SMS, e-mails) ---------- */
.jr-toolbar { flex-wrap: wrap; }
.jr-toolbar select { width: auto; min-width: 140px; }
.jr-toolbar .date-range input { width: auto; }
.table-scroll { overflow-x: auto; }
td.jr-text { max-width: 380px; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-flag { display: inline-flex; vertical-align: middle; color: var(--signal); }
.rec-flag svg { width: 14px; height: 14px; }
.set-row.sub-row { justify-content: flex-end; padding-top: 0; margin-top: -6px; }
.max-auto { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.max-auto select { width: auto; }

/* ---------- En direct ---------- */
.section-title { font-size: 17px; font-weight: 800; margin: 26px 0 12px; }
.live-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.live-count { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-size: 13px; font-weight: 700; }
.live-count i, .live-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--state, #9aa); display: inline-block; }
.st-call { --state: #1e9e62; } .st-waiting { --state: #2f7be0; } .st-pause { --state: #e3a21a; } .st-idle { --state: #9b95a8; } .st-offline { --state: #cfcad8; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.live-card { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--state); border-radius: var(--radius-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.live-card.st-offline { opacity: .7; }
.live-card header { display: flex; align-items: center; gap: 10px; }
.live-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.live-who b { font-size: 15px; }
.live-who span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }
.live-state small { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.live-call { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #edf8f2; font-size: 13px; }
.live-call span { flex: 1; min-width: 0; }
.live-call svg { width: 14px; height: 14px; color: var(--line-600); flex: none; }
.live-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; }
.live-stats div { min-width: 0; }
.live-stats dt { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.live-stats dd { margin: 2px 0 0; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.live-stats dd small { font-weight: 600; color: var(--muted); font-size: 11px; }
.live-stats.work { padding-top: 10px; border-top: 1px dashed var(--border); }
.live-stats.work dd { font-size: 14px; }
.live-coach { align-self: flex-start; }
.empty-note { color: var(--muted); padding: 20px 0; list-style: none; }
.live-calls:empty { display: none; }
.live-calls { margin-bottom: 14px; padding-top: 12px; }
.live-calls .card-title { display: flex; align-items: center; gap: 6px; padding: 0 18px; margin: 0 0 4px; font-size: 15px; }
.st-call-pill { background: #e3f5eb; color: var(--line-600); }
.listen-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px;
  background: var(--ink); color: #fff; border-radius: 14px; box-shadow: var(--shadow-pop); }
.listen-bar > svg { width: 18px; height: 18px; color: #9ee6bf; }
.listen-bar div { display: flex; flex-direction: column; }
.listen-bar div span { font-size: 12px; color: rgba(255,255,255,.7); }
.listen-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.listen-bar.hidden { display: none; }

/* ---------- Notifications (rappels, RDV) ---------- */
.notice-stack { position: fixed; top: 16px; right: 16px; z-index: 95; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.notice { position: relative; overflow: hidden; display: flex; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--signal);
  border-radius: 14px; box-shadow: var(--shadow-pop); animation: notice-in .25s ease-out; }
.notice.out { opacity: 0; transform: translateX(20px); transition: all .5s; }
.notice-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--signal-50); color: var(--signal); display: grid; place-items: center; flex: none; font-size: 18px; }
.notice-icon svg { width: 18px; height: 18px; }
.notice-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.notice-body span { font-size: 13px; color: var(--muted); }
.notice-actions { display: flex; gap: 8px; margin-top: 8px; }
.notice.rdv { border-left-color: var(--line); }
.notice.rdv .notice-icon { background: #e3f5eb; }
@keyframes notice-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -8px; left: calc(var(--i) * 7%); width: 6px; height: 10px; border-radius: 2px; background: hsl(calc(var(--i) * 47), 80%, 60%);
  animation: confetti 1.6s ease-in calc(var(--i) * 60ms) forwards; }
@keyframes confetti { to { transform: translateY(110px) rotate(540deg); opacity: 0; } }

/* ---------- Classement ---------- */
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 820px; }
.rank-row { display: grid; grid-template-columns: 44px 40px 1fr auto auto auto; align-items: center; gap: 14px; padding: 12px 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.rank-row.top { border-color: #f0d38a; background: #fffcf3; }
.rank-row.me { box-shadow: inset 0 0 0 2px var(--signal); }
.rank-pos { font-size: 22px; font-weight: 800; text-align: center; color: var(--muted); }
.rank-name { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.rank-fig { font-size: 13px; color: var(--muted); white-space: nowrap; }
.rank-fig b { font-size: 18px; color: var(--text); margin-right: 2px; font-variant-numeric: tabular-nums; }
.rank-fig.rdv b { color: var(--line-600); font-size: 22px; }
@media (max-width: 640px) { .rank-row { grid-template-columns: 34px 1fr auto auto; } .rank-row .avatar, .rank-row .muted-fig { display: none; } }

/* ---------- Coaching IA, résumé IA ---------- */
.coach-box { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow: auto; }
.coach-date { margin: 0; font-size: 12px; color: var(--muted); }
.coach-resume { margin: 0; font-weight: 600; }
.coach-h { margin: 10px 0 2px; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.coach-h.ok { color: var(--line-600); } .coach-h.warn { color: #b7791f; }
.coach-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.ai-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 10px; margin: 6px 0 0; font-size: 13px; }
.ai-card dt { color: var(--muted); font-weight: 600; }
.ai-card dd { margin: 0; }
.ai-box { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #f6f2fc; border: 1px solid #e4daf5; font-size: 13.5px; }
.ai-box header { display: flex; align-items: center; gap: 6px; color: #5b2d8e; margin-bottom: 6px; }
.ai-box header .muted { margin-left: auto; font-size: 12px; }
.ai-box p { margin: 0 0 6px; line-height: 1.45; }
.ai-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 10px; margin: 0; }
.ai-box dt { color: var(--muted); font-weight: 600; }
.ai-box dd { margin: 0; }
/* Tester une campagne */
.checklist { list-style: none; margin: 0; padding: 4px 0; }
.checklist li { display: flex; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--border, #eceaf1); align-items: flex-start; }
.checklist li:first-child { border-top: 0; }
.checklist li div { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.checklist li div span { color: var(--muted); font-size: 12.5px; }
.ck-mark { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; margin-top: 1px; }
.ck-mark svg { width: 13px; height: 13px; }
.ck-ok .ck-mark { background: #e3f6ec; color: #17834f; }
.ck-warn .ck-mark { background: #fff1d6; color: #a86a00; }
.ck-err .ck-mark { background: #fde4e4; color: #c62828; }
.ck-info .ck-mark { background: #eef0f5; color: #5d6276; font-style: italic; font-family: Georgia, serif; }
.test-grid { display: flex; flex-direction: column; gap: 12px; }
.test-grid > .hint { margin: 0; }
.test-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: center; padding-top: 12px; border-top: 1px solid var(--border, #eceaf1); }
.test-row:not(.simple) > div:first-child { grid-column: 1 / -1; }
.test-row > div { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.test-row .btn { white-space: nowrap; justify-content: center; }
.test-sent { background: #f3faf6; border: 1px solid #cfeedd; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.test-sent p { margin: 6px 0 0; }
.test-sent .pre { white-space: pre-wrap; }
@media (max-width: 520px) { .test-row { grid-template-columns: 1fr; } }
.test-sent > b, .test-sent > .hint { display: block; }
.sub.clamp { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Message du matin */
.modal.morning { max-width: 460px; text-align: center; gap: 14px; padding: 28px 26px 24px; animation: morningIn .35s ease-out; }
@keyframes morningIn { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.morning-sun { font-size: 40px; line-height: 1; }
.modal.morning h3 { font-size: 22px; }
.modal.morning .morning-msg { color: var(--ink, #1c1f3a); font-size: 15px; line-height: 1.5; }
.morning-stats { display: flex; align-items: stretch; justify-content: center; gap: 8px; flex-wrap: wrap; position: relative; padding-top: 18px; }
.morning-stats .ms-label { position: absolute; top: 0; left: 0; right: 0; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: capitalize; }
.morning-stats > div { flex: 1; min-width: 70px; background: #f4f5fa; border-radius: 12px; padding: 8px 6px; display: flex; flex-direction: column; }
.morning-stats > div b { font-size: 20px; }
.morning-stats > div span { font-size: 12px; color: var(--muted); }
.morning-stats > div.rdv { background: #e3f6ec; color: #17834f; }
.morning-box { text-align: left; background: #f6f2fc; border-radius: 12px; padding: 10px 14px; }
.morning-box.defi { background: #fff6e3; }
.morning-box .mb-head { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; color: #5b2d8e; }
.morning-box.defi .mb-head { color: #a86a00; }
.modal.morning .morning-box p { margin: 4px 0 0; color: var(--ink, #1c1f3a); font-size: 14px; line-height: 1.45; }
.modal.morning .morning-goal { font-size: 13px; }
.btn.big { padding: 12px 18px; font-size: 16px; justify-content: center; }
.set-sep { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.ai-key { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; }
.ai-key label { display: flex; align-items: center; gap: 8px; }
.ai-key .hint { margin: 0; }
.ai-key-row { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.ai-key-row input { flex: 1; font-family: ui-monospace, Menlo, monospace; }
.pill.ok { background: #e3f6ec; color: #17834f; }
/* Connecter son Gmail */
.gmail-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.gmail-steps li { padding-left: 4px; }
.gmail-steps li b { display: block; font-weight: 700; margin-bottom: 4px; }
.gmail-steps li .btn { margin: 2px 0 2px; }
.gmail-steps li .hint { display: block; }
.gmail-steps.admin li b { display: inline; }
.gmail-steps.admin li .btn { display: inline-flex; margin-top: 6px; }
input.mono, .mono { font-family: ui-monospace, Menlo, monospace; letter-spacing: .04em; }
details.hint summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details.hint[open] summary { margin-bottom: 6px; }
/* Messages automatiques par scénario */
.auto-grid { display: grid; grid-template-columns: minmax(150px, 1.1fr) 1fr 1fr; gap: 10px 12px; align-items: start; }
.auto-grid > b { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.auto-grid select { width: 100%; }
.auto-grid .max-auto { display: flex; gap: 4px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 6px; }
.auto-grid .max-auto select { width: auto; height: 28px; font-size: 12px; }
.auto-label { display: flex; gap: 8px; align-items: flex-start; padding-top: 6px; }
.auto-label b { display: block; font-size: 13.5px; }
.auto-label .hint { display: block; font-size: 11.5px; margin: 2px 0 0; }
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border: 1px solid var(--border); border-radius: 5px; font-size: 11px; font-weight: 700; color: var(--muted); background: #fafbfc; }
.test-pick { display: flex; flex-direction: column; gap: 6px; }
/* Doublons */
.dup-banner { display: flex; gap: 10px; align-items: flex-start; background: #fff6e3; border: 1px solid #f3dfb0; color: #7a5200; border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; font-size: 13px; }
.dup-banner > div { display: flex; flex-direction: column; gap: 4px; }
.dup-banner span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dup-banner .btn { height: 26px; }
.dup-group { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.dup-rows { display: flex; flex-direction: column; gap: 8px; }
.dup-row { display: flex; gap: 10px; align-items: flex-start; }
.dup-row > div, .merge-item > div { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.dup-row .hint, .merge-item .hint { margin: 0; font-size: 12px; }
.dup-actions { display: flex; gap: 8px; }
.merge-list { display: flex; flex-direction: column; gap: 8px; }
.merge-item { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.merge-item:has(input:checked) { border-color: var(--signal); background: var(--signal-50); }
.nav-badge.inline { position: static; margin-left: 6px; }
/* Source du lead */
.origin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.origin-chip { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.origin-chip:hover, .origin-chip.on { border-color: var(--signal); background: var(--signal-50); }
.panel.origins { margin-top: 16px; }
.panel.origins ul { list-style: none; margin: 0; padding: 8px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.panel.origins li { display: grid; grid-template-columns: 160px 1fr 40px; gap: 10px; align-items: center; font-size: 13.5px; }
.panel.origins .bar { height: 10px; background: #eef0f5; border-radius: 99px; overflow: hidden; }
.panel.origins .bar i { display: block; height: 100%; background: var(--signal); border-radius: 99px; }
.panel.origins b { text-align: right; }
/* Mes rappels du jour */
.tcb { margin: 22px auto 0; max-width: 760px; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; }
.tcb header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tcb h3 { display: flex; align-items: center; gap: 6px; font-size: 15px; margin: 0; }
.tcb h4 { display: flex; align-items: center; gap: 6px; font-size: 13px; margin: 14px 0 6px; color: #a86a00; }
.tcb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tcb-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--border); }
.tcb-row:first-child { border-top: 0; }
.tcb-time { font-weight: 800; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; }
.tcb-time em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--hang); }
.tcb-row.late .tcb-time { color: var(--hang); }
.tcb-who { display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; min-width: 0; }
.tcb-who span { color: var(--muted); font-size: 12.5px; }
.tcb-who .tcb-note { font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill.hot { background: #ffe8dc; color: #c2410c; }
/* Transfert d'appel */
.menu .menu-sec { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px 2px; }
.menu .menu-meta { margin-left: auto; padding-left: 12px; font-size: 12px; font-weight: 500; color: var(--muted); }
.menu button:disabled { opacity: .5; cursor: not-allowed; }
.menu .menu-empty { padding: 8px 10px; font-size: 13px; color: var(--muted); max-width: 280px; margin: 0; }
.tc-list { display: flex; flex-direction: column; gap: 8px; }
.tc-row { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px; align-items: center; }
.row-actions { display: flex; gap: 8px; justify-content: space-between; align-items: center; }
/* Rapport de la semaine */
.rep-when { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.rep-when select, .rep-when input { width: auto; }
.report-frame { width: 100%; height: calc(100vh - 140px); border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.dup-row .pill, .merge-item .pill { align-self: flex-start; }
/* Bandeau « Connecte ton Gmail » */
.gmail-banner { display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 0 auto 16px; padding: 12px 14px; text-align: left;
  background: #fff6e3; border: 1px solid #f3dfb0; border-radius: 14px; color: #7a5200; }
.gmail-banner > div { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.gmail-banner b { color: #5c3d00; }

/* ---------- Menu regroupé et sous-onglets ---------- */
.nav-items { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.page-tabs { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 26px 0; max-width: 1500px; }
.page-tabs h1 { font-size: 22px; }
.page-tabs .segmented button { display: inline-flex; align-items: center; gap: 6px; }
body.has-tabs .page > .page-head h1 { display: none; }
body.has-tabs .page > .page-head { justify-content: flex-end; }
/* Sous des onglets, le titre de la page est caché ; ses boutons et filtres restent (période des statistiques, de « Mon activité », filtres des écoutes…) */
body.has-tabs .page > .page-head:not(:has(> :not(h1))) { display: none; }
body.has-tabs .page { padding-top: 14px; }
.tab-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--hang); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }

/* ---------- Réglages en rubriques ---------- */
.set-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 4px; }
.set-nav button { display: flex; gap: 11px; align-items: flex-start; text-align: left; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; color: var(--text); font: inherit; }
.set-nav button svg { margin-top: 1px; color: var(--muted); flex: none; }
.set-nav button b { display: block; font-size: 14px; }
.set-nav button small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.set-nav button:hover { background: #e8e9f0; }
.set-nav button.active { background: #fff; box-shadow: 0 0 0 1px var(--border), 0 1px 3px rgba(17,22,60,.06); }
.set-nav button.active svg { color: var(--signal); }
.set-content { display: flex; flex-direction: column; gap: 16px; max-width: 860px; min-width: 0; }

/* ---------- Panneau de campagne en onglets ---------- */
.drawer-tabs { display: flex; width: 100%; flex: none; }
.drawer-tabs button { flex: 1; white-space: nowrap; padding: 0 8px; font-size: 13px; }
.save-bar { position: sticky; bottom: -30px; margin: 0 -22px -30px; padding: 12px 22px 16px; background: #fff; border-top: 1px solid var(--border); z-index: 2; }

/* ---------- Alertes coaching ---------- */
.page-note.top { margin: -4px 2px 14px; }
.alert-agents { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; font-size: 13px; }
.alert-agent { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 5px 0 12px; border-radius: 99px; background: #fff; border: 1px solid var(--border); font-weight: 600; }
.alert-agent b { background: #eef0f5; border-radius: 99px; padding: 0 8px; font-size: 12px; line-height: 20px; }
.alert-agent.hot { border-color: #f3c4c1; background: #fdf0ef; }
.alert-agent.hot b { background: var(--hang); color: #fff; }
.alert-list { display: flex; flex-direction: column; gap: 12px; max-width: 1100px; }
.alert-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--hang); border-radius: 12px; padding: 14px 16px; }
.alert-card.as-reviewed { border-left-color: var(--line); }
.alert-card.as-dismissed { border-left-color: var(--border-2); opacity: .75; }
.alert-top { display: flex; gap: 10px; align-items: flex-start; }
.alert-top > div { flex: 1; font-size: 14px; line-height: 1.45; }
.alert-top .hint { display: block; margin: 2px 0 0; }
.coach-quote { font-style: italic; color: var(--text); background: #fff6e3; border-radius: 8px; padding: 8px 10px; margin: 10px 0 6px; font-size: 13.5px; }
.coach-advice { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.45; }
.alert-actions { display: flex; flex-direction: column; gap: 6px; min-width: 170px; }
.alert-actions .btn { justify-content: center; }
.alert-card audio { width: 100%; margin-top: 10px; height: 36px; }
.pill.al-new { background: #fde4e4; color: #c62828; }
.pill.al-ok { background: #e3f6ec; color: #17834f; }
.pill.al-muted { background: #eef0f5; color: #646a85; }
.notice.coach { border-left-color: var(--hang); }
.notice.coach .notice-icon { background: #fdecea; }
.notice .coach-quote { margin: 6px 0 2px; }
.notice span.coach-advice { color: var(--text); }

/* ---------- Gmail des agents ---------- */
.gmail-status { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gmail-status li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; flex-wrap: wrap; }
.gmail-status .gs-name { font-weight: 700; min-width: 140px; }
.gmail-status .pill svg { width: 12px; height: 12px; margin-right: 4px; }
.pill.warn { background: #fff1d6; color: #a86a00; }

@media (max-width: 1000px) {
  .settings-cols { grid-template-columns: 1fr; }
  .set-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .set-nav button { flex: none; }
  .set-nav button small { display: none; }
}
@media (max-width: 760px) {
  .nav-items { flex-direction: row; flex: 1; justify-content: space-around; }
  .page-tabs { padding: 14px 12px 0; gap: 10px; }
  .page-tabs .segmented { max-width: 100%; overflow-x: auto; }
  .alert-card { grid-template-columns: 1fr; }
  .alert-actions { flex-direction: row; flex-wrap: wrap; }
  .drawer-tabs { overflow-x: auto; }
  .drawer-tabs button { flex: none; }
}

/* Filtres de page compacts */
.page-actions select { width: auto; min-width: 170px; }

/* Actions d'une campagne */
.action-list { display: flex; flex-direction: column; }
.action-row { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 12px 16px; border: 0; border-top: 1px solid var(--border); background: #fff; text-align: left; cursor: pointer; font: inherit; color: var(--text); text-decoration: none; }
.action-row:first-child { border-top: 0; }
.action-row:hover { background: #f7f5fb; }
.action-row svg { flex: none; margin-top: 1px; color: var(--signal); }
.action-row b { display: block; font-size: 14px; }
.action-row small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.danger-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--border); background: #fcfcfd; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.danger-row .hint { margin: 0; }

/* Interrupteurs qui s'enregistrent tout seuls */
.switch-row { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--border); cursor: pointer; }
.set-pad > .switch-row:first-of-type { border-top: 0; padding-top: 2px; }
.switch-row b { display: block; font-size: 14px; }
.switch-row small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; line-height: 1.45; }
input.switch { appearance: none; -webkit-appearance: none; width: 40px; height: 24px; border-radius: 99px; background: #d5d8e3; position: relative; cursor: pointer; margin: 0; transition: background .15s; border: 0; padding: 0; }
input.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
input.switch:checked { background: var(--line); }
input.switch:checked::after { transform: translateX(16px); }
input.switch:disabled { opacity: .45; cursor: not-allowed; }
.switch-sub { margin: -4px 0 8px 56px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.switch-sub.off { opacity: .5; pointer-events: none; }
.inline-field { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-field select { width: auto; }

/* ---------- Coach en direct : gros pop-up pendant l'appel ---------- */
.live-coach-wrap { position: fixed; inset: 0; z-index: 130; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(120, 18, 18, .45); }
.live-coach-wrap.show { display: flex; animation: lcFade .15s ease-out; }
@keyframes lcFade { from { opacity: 0; } to { opacity: 1; } }
.live-coach-pop { position: relative; overflow: hidden; width: min(640px, 100%); background: #fff; border-radius: 22px; border: 4px solid #d32f2f;
  box-shadow: 0 30px 80px rgba(80, 0, 0, .45); padding: 26px 30px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px;
  animation: lcIn .35s cubic-bezier(.2, 1.4, .4, 1), lcShake .5s .35s; }
@keyframes lcIn { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lcShake { 0%, 100% { translate: 0; } 20% { translate: -10px; } 40% { translate: 10px; } 60% { translate: -6px; } 80% { translate: 6px; } }
.live-coach-pop .lc-top { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #c62828; }
.live-coach-pop .lc-icon { font-size: 44px; line-height: 1; }
.live-coach-pop h2 { font-size: 30px; line-height: 1.2; font-weight: 800; color: #1a1d33; margin: 0; }
.live-coach-pop .lc-quote { margin: 0; font-size: 16px; color: #646a85; font-style: italic; background: #fdf0ef; border-radius: 12px; padding: 10px 14px; }
.live-coach-pop .lc-ok { height: 52px; padding: 0 26px; font-size: 17px; background: #c62828; border-color: #c62828; color: #fff; border-radius: 14px; margin-top: 4px; }
.live-coach-pop .lc-ok:hover { background: #a91f1f; }
.live-coach-pop .lc-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: #fbe3e1; }
.live-coach-wrap.show .lc-bar i { display: block; height: 100%; background: #d32f2f; animation: lcBar 15s linear forwards; }
@keyframes lcBar { from { width: 100%; } to { width: 0; } }
@media (max-width: 760px) { .live-coach-pop h2 { font-size: 22px; } .live-coach-pop { padding: 20px; } }

/* Tableau Équipe plus lisible */
.user-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; background: #eef0f5; color: #555b73; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.tag svg { width: 12px; height: 12px; }
.tag.ok { background: #e3f6ec; color: #17834f; }
.tag.warn { background: #fff1d6; color: #a86a00; }
.camp-count { border-bottom: 1px dotted var(--faint); cursor: help; white-space: nowrap; }

/* ---------- Mode apprentissage ---------- */
.tag.learn { background: #efe7ff; color: #5b2bb5; }
.learn-brief { margin: -4px 0 14px; }
.learn-brief .lb, .learn-brief > .lb-head { background: linear-gradient(180deg, #f6f1ff, #fbf9ff); border: 1px solid #ddd0fb; border-radius: 14px; padding: 10px 14px; }
.lb-head { display: flex; align-items: center; gap: 8px; color: #4a2596; font-size: 14px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.lb-head::-webkit-details-marker { display: none; }
.lb-head svg { color: #7c4ddb; }
.lb-wait { color: var(--muted); font-size: 13px; font-weight: 500; animation: lbPulse 1.2s infinite alternate; }
@keyframes lbPulse { to { opacity: .4; } }
.lb-goal { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; background: #fff; border: 1px solid #ddd0fb; border-radius: 999px; padding: 3px 10px; color: #4a2596; }
.lb small, .lt-item small, .rv small { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #7c4ddb; margin-bottom: 4px; }
.lb-say { margin-top: 10px; background: #fff; border-left: 4px solid #7c4ddb; border-radius: 10px; padding: 10px 12px; font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.45; }
.lb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.lb ul, .rv ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.45; }
.lb ul li + li, .rv ul li + li { margin-top: 3px; }
.lb-obj { margin-top: 10px; font-size: 13.5px; background: #fff7e8; border-radius: 10px; padding: 8px 12px; }
.lb-obj small { color: #a26200; text-transform: none; letter-spacing: 0; font-size: 12.5px; }
@media (max-width: 1200px) { .lb-cols { grid-template-columns: 1fr; } }

.live-tips { position: fixed; right: 20px; bottom: 20px; width: 340px; max-width: calc(100vw - 40px); z-index: 900; background: #fff; border: 2px solid #7c4ddb; border-radius: 16px;
  box-shadow: 0 18px 50px rgba(60, 20, 140, .25); transform: translateY(20px); opacity: 0; pointer-events: none; transition: .25s; }
.live-tips.show { transform: none; opacity: 1; pointer-events: auto; }
.live-tips header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: #4a2596; border-bottom: 1px solid #eee6fd; }
.live-tips header .icon-btn { margin-left: auto; }
.lt-list { padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.lt-item { animation: ltIn .3s; }
.lt-item.old { opacity: .5; font-size: 13px; }
.lt-item.old .lt-ex { display: none; }
@keyframes ltIn { from { transform: translateX(16px); opacity: 0; } }
.lt-said { margin: 0 0 2px; font-size: 12.5px; color: var(--muted); font-style: italic; }
.lt-tip { margin: 0; font-size: 16px; font-weight: 800; color: #2a1660; line-height: 1.3; }
.lt-item.old .lt-tip { font-size: 13.5px; font-weight: 600; }
.lt-ex { margin: 6px 0 0; font-size: 14px; background: #f6f1ff; border-radius: 10px; padding: 8px 10px; }

.rv { display: flex; gap: 18px; align-items: flex-start; text-align: left; }
.rv-score { flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-content: center; text-align: center; color: #fff; }
.rv-score b { font-size: 40px; line-height: 1; } .rv-score span { font-size: 13px; opacity: .85; }
.sc-good { background: #1f9d60; } .sc-mid { background: #e39a12; } .sc-low { background: #d64541; }
.rv-main { flex: 1; min-width: 0; }
.rv-resume { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.rv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rv-good small { color: #17834f; } .rv-bad small { color: #b45a00; }
.rv-phrase { margin-top: 12px; background: #f6f1ff; border-left: 4px solid #7c4ddb; border-radius: 10px; padding: 10px 12px; font-size: 14.5px; font-weight: 600; }
@media (max-width: 640px) { .rv { flex-direction: column; align-items: center; } .rv-cols { grid-template-columns: 1fr; } }

.learn-on { display: flex; gap: 10px; align-items: flex-start; background: #f6f1ff; border: 1px solid #ddd0fb; color: #3b1f7a; border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.learn-on.off { background: var(--card); border-color: var(--border); color: var(--text); }
.learn-on svg { flex: none; color: #7c4ddb; margin-top: 2px; }
.learn-kpis { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 12px; margin-bottom: 16px; }
.learn-kpis .kpi small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.learn-kpis .kpi em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.prog { display: flex; align-items: flex-end; gap: 10px; height: 110px; margin-top: 8px; }
.prog-col { flex: 1; max-width: 70px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.prog-col i { width: 100%; border-radius: 8px 8px 3px 3px; display: block; }
.prog-col b { font-size: 13px !important; line-height: 1 !important; }
.prog-col span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.prog-col i { order: 0; } .prog-col b { order: -1; }
@media (max-width: 900px) { .learn-kpis { grid-template-columns: 1fr 1fr; } .learn-kpis .wide { grid-column: 1 / -1; } }
.learn-card { margin-bottom: 16px; }
.learn-card .panel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.learn-card .panel-head h2 { display: flex; align-items: center; gap: 8px; }
.persona-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.persona { text-align: left; background: #fff; border: 1.5px solid var(--border); border-radius: 14px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; font: inherit; color: inherit; transition: .15s; }
.persona:hover { border-color: #7c4ddb; box-shadow: 0 6px 18px rgba(80, 40, 160, .12); transform: translateY(-1px); }
.persona b { font-size: 15.5px; } .persona small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.lvl { align-self: flex-start; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 8px; }
.lvl-facile { background: #e3f6ec; color: #17834f; } .lvl-moyen { background: #fff2dc; color: #a26200; } .lvl-difficile { background: #fde6e5; color: #b3261e; }
.tr-chat { height: 380px; overflow-y: auto; background: #f7f7fb; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.tr-b { max-width: 75%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.4; }
.tr-b small { display: block; font-size: 11px; font-weight: 800; opacity: .7; margin-bottom: 2px; }
.tr-b.prospect { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.tr-b.agent { align-self: flex-end; background: #7c4ddb; color: #fff; border-bottom-right-radius: 4px; }
.tr-b.note { align-self: center; background: none; color: var(--muted); font-size: 13px; font-style: italic; text-align: center; }
.tr-b.typing { display: flex; gap: 4px; }
.tr-b.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: lbPulse .6s infinite alternate; }
.tr-b.typing span:nth-child(2) { animation-delay: .2s; } .tr-b.typing span:nth-child(3) { animation-delay: .4s; }
.tr-tip { display: flex; gap: 8px; align-items: center; margin-top: 10px; background: #fff7e8; border-radius: 10px; padding: 8px 12px; font-size: 14px; color: #6b4300; }
.tr-input { display: flex; gap: 8px; margin-top: 12px; }
.tr-input input { flex: 1; min-width: 0; }
.tr-mic { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tr-mic.rec { background: #d64541; color: #fff; border-color: #d64541; animation: lbPulse .8s infinite alternate; }
.tr-actions { display: flex; justify-content: space-between; margin-top: 12px; }
.rv-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 4px; background: none; border: 0; border-bottom: 1px solid var(--border); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.rv-row:hover { background: #faf8ff; }
.rv-mini { flex: none; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 800; display: grid; place-content: center; }
.rv-what { flex: 1; min-width: 0; } .rv-what b { display: block; font-size: 14.5px; }
.rv-what small { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-open { padding: 12px 0; border-bottom: 1px solid var(--border); }
.learn-x { max-height: 50vh; overflow-y: auto; margin-bottom: 8px; }
.pad { padding: 12px 4px; }

/* ---------- Erreurs de la veille ---------- */
.mk-pop { width: min(640px, 100%); max-height: 88vh; overflow-y: auto; border-top: 6px solid #e39a12; }
.mk-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 8px; }
.mk-head h3 { margin: 0 0 4px; font-size: 21px; }
.mk-head p { margin: 0; color: var(--muted); }
.mk-big { font-size: 40px; line-height: 1; }
.mk-list { list-style: none; margin: 12px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mk-item { display: flex; gap: 12px; background: #fff8ec; border: 1px solid #f3dfb8; border-radius: 12px; padding: 10px 12px; }
.mk-item.mk-live { background: #fdf0ef; border-color: #f2cfcb; }
.mk-item.mk-review { background: #f6f1ff; border-color: #ddd0fb; }
.mk-ico { font-size: 22px; line-height: 1.2; }
.mk-item b { font-size: 14.5px; }
.mk-quote { margin: 4px 0 0; font-style: italic; color: #5c6178; font-size: 14px; }
.mk-advice { margin: 4px 0 6px; font-size: 14px; }
.mk-pop .btn.big { width: 100%; justify-content: center; }
.mk-card .mk-list { margin: 0; }
.coach-users { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; margin: 6px 0 4px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.google-setup { margin-top: 14px; border: 1.5px dashed #c9b8f2; border-radius: 12px; padding: 12px 14px; background: #fbf9ff; display: flex; flex-direction: column; gap: 10px; }
.google-setup.ready { border-style: solid; border-color: #bfe5cf; background: #f3fbf6; }
.google-setup h4 { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 15px; }
.google-setup.ready h4 { color: #17834f; }
.google-setup summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.google-setup .gmail-steps li { margin-bottom: 8px; }
.google-setup .copy-row { margin: 6px 0; }
/* Connecter sa boîte mail : Gmail ou Outlook (1.11.0) */
.box-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 14px 0; }
.box-choice { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; min-height: 76px; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-2); background: var(--card); color: var(--text); cursor: pointer; }
.box-choice b { font-size: 17px; }
.box-choice span { color: var(--muted); font-size: 13.5px; }
.box-choice:hover, .box-choice:focus-visible { border-color: var(--signal); background: var(--signal-50); outline: none; }

/* ---------- Erreurs sur la fiche, phrase à dire ---------- */
.lead-mistakes { margin: 12px 0; background: #fff6f4; border: 1px solid #f2cfcb; border-left: 4px solid #d64541; border-radius: 12px; padding: 10px 12px; }
.lead-mistakes header { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 14px; color: #a12f26; }
.lead-mistakes header .muted { font-size: 12.5px; }
.lead-mistakes ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lead-mistakes li { background: #fff; border-radius: 10px; padding: 8px 10px; font-size: 13.5px; }
.lm-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lm-top .muted { font-size: 12px; }
.lm-quote { margin: 4px 0 0; font-style: italic; color: #5c6178; }
.lm-advice { margin: 4px 0 0; }
.lm-say, .mk-say { margin: 6px 0 0; background: #e9f7ef; border-radius: 8px; padding: 6px 9px; color: #11603a; }
.lc-say { margin: 0; font-size: 16px; background: #e9f7ef; color: #11603a; border-radius: 12px; padding: 10px 14px; text-align: left; }

/* ---------- Pas intéressés à relancer ---------- */
.page-intro { margin: -6px 0 14px; color: var(--muted); max-width: 900px; }
.ni-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.ni-cat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 150px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--card); cursor: pointer; font: inherit; color: inherit; text-align: left; }
.ni-cat b { font-size: 24px; line-height: 1; }
.ni-cat span { font-size: 13px; color: var(--muted); }
.ni-cat.active { border-color: #7c4ddb; box-shadow: 0 0 0 3px #efe7ff; }
.ni-ecole b { color: #2f6fd6; } .ni-sceptique b { color: #c27c0e; } .ni-pas_projet b { color: #7c4ddb; } .ni-pas_interesse b, .ni-hors_cible b { color: #6b7086; } .ni-none b { color: #d64541; }
.ni-reason { max-width: 320px; font-size: 13.5px; color: #4b5068; }
.ni-grid { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(130px, .8fr) minmax(200px, 1.5fr); gap: 8px 12px; align-items: center; margin: 10px 0; }
.ni-grid b { font-size: 12.5px; color: var(--muted); }
.pill.blue { background: #e8effd; color: #2f5fb3; } .pill.muted { background: #eef0f4; color: #6b7086; }
.small { font-size: 12.5px; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
button.link:hover { text-decoration: underline; }

/* ---------- Relance du mois ---------- */
.monthly-card { display: flex; align-items: center; gap: 14px; background: linear-gradient(180deg, #fff7e8, #fffdf8); border: 1.5px solid #f3d59b; border-radius: 16px; padding: 14px 16px; margin: 0 0 16px; }
.monthly-card.done { background: #f1fbf5; border-color: #bfe5cf; }
.monthly-card .mc-ico { font-size: 30px; }
.monthly-card .mc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.monthly-card .mc-main > b { font-size: 16px; }
.monthly-card .mc-main > span, .monthly-card.done span { font-size: 13.5px; color: #5c6178; }
.monthly-card.done div { display: flex; flex-direction: column; }
.mc-bar { height: 8px; background: #f3e4c4; border-radius: 99px; overflow: hidden; max-width: 360px; }
.mc-bar i { display: block; height: 100%; background: #e39a12; border-radius: 99px; }
.monthly-card small { color: #8a6a2c; font-weight: 600; }
.monthly-list { margin: 8px 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.monthly-team { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.mt-user { background: #fff7e8; border-radius: 99px; padding: 3px 10px; }
.mt-user.ok { background: #e3f6ec; color: #17834f; }
.ni-sub { margin: 12px 0 0; font-size: 14.5px; }
.monthly-card { text-align: left; max-width: 860px; margin: 0 auto 16px; }
.monthly-card .mc-bar { width: 100%; }
.ml-why { display: block; font-size: 13px; color: #11603a; }

/* ---------- Réglages › Téléphonie : les numéros et leur santé ---------- */
.num-list { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.num-row { border: 1px solid var(--border); border-left: 4px solid #b9bfd0; border-radius: 12px; padding: 12px 14px; background: #fff; }
.num-row.h-ok { border-left-color: #1e9e62; }
.num-row.h-warn { border-left-color: #e39a12; }
.num-row.h-bad { border-left-color: #d9433b; background: #fffafa; }
.num-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.num-phone { font-size: 19px; font-weight: 800; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.num-health { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eef0f4; color: #5c6178; }
.num-health i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.num-health.h-ok { background: #e3f6ec; color: #17834f; }
.num-health.h-warn { background: #fff1d6; color: #a86a00; }
.num-health.h-bad { background: #fde8e7; color: #b8312a; }
.num-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 28px; margin-left: auto; }
.num-bars i { width: 7px; border-radius: 2px; background: #9aa6c4; }
.num-row.h-ok .num-bars i { background: #7cc9a3; }
.num-row.h-warn .num-bars i { background: #f0c069; }
.num-row.h-bad .num-bars i { background: #ee9a95; }
.num-bars i.off { background: #e4e6ee !important; }
.num-stat { margin: 6px 0 2px; font-size: 13.5px; color: var(--text); }
.num-why { margin: 2px 0; font-size: 13px; color: #6b4a00; }
.num-row.h-bad .num-why { color: #8a1c1c; font-weight: 600; }
.num-row.h-ok .num-why { color: #17834f; }
.num-row .hint { margin: 4px 0 0; }
.num-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.num-check { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #f6f7fb; font-size: 13px; }
.num-check p { margin: 0 0 6px; }
.num-buy { align-items: center; }
.btn.danger-text { color: #b8312a; }
.notice.num-alert .notice-icon { background: #fff1d6; }
.notice.num-alert.bad .notice-icon { background: #fde8e7; }

/* ---------- Corrections d'affichage (petits écrans) ---------- */
@media (max-width: 760px) {
  /* Relance du mois : le texte prend toute la largeur, le bouton passe dessous */
  .monthly-card { flex-wrap: wrap; align-items: flex-start; }
  .monthly-card .mc-main { flex: 1 1 220px; }
  .monthly-card [data-monthly-start] { width: 100%; }
}
.camp-title > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.console-left .line-mode { flex: none; }
@media (max-width: 1320px) {
  .console { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; }
  .console-right { grid-column: 1 / -1; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); padding-top: 10px; }
  .console-readout { min-width: 150px; }
}
@media (max-width: 1000px) {
  .console { grid-template-columns: 1fr; }
}
.show-md { display: none; }
@media (max-width: 1200px) {
  .table th, .table td { padding: 10px 10px; }
  .table .hide-md { display: none; }
  .table .show-md { display: block; }
  .sub.clamp { max-width: 220px; }
}
#niTable select { min-width: 190px; width: auto; }
#niTable td.ni-when { min-width: 120px; }
#niTable td:last-child { white-space: nowrap; }
.notice.coach { max-width: 360px; }
.auto-grid { grid-template-columns: minmax(130px, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); }
.auto-grid select { min-width: 0; max-width: 100%; }
.auto-grid .max-auto { flex-wrap: wrap; }

/* =====================================================================
   Version 3.1 : RDV pris sans Calendly, documents joints, copilote IA, point IA des agents
   ===================================================================== */
/* Panneau de la campagne : deux façons de prendre un RDV */
.rdv-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rdv-mode { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; background: #fafbfc; }
.rdv-mode b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.rdv-mode span { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.rdv-mode.on { border-color: var(--signal); background: var(--signal-50); }
.rdv-mode.on b { color: var(--signal-600); }
.rdv-fill { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--signal-50); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.rdv-fill span { display: flex; align-items: center; gap: 8px; color: var(--signal-600); font-weight: 600; }
@media (max-width: 760px) { .rdv-modes { grid-template-columns: 1fr; } }

/* Fenêtre « RDV confirmé » : date, heure, lieu */
.rdv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rdv-grid input { display: block; width: 100%; margin-top: 6px; }
.rdv-times { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.chip-btn { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid #d7c8f6; background: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: var(--text); }
.chip-btn:hover, .chip-btn.on { background: #7a4fd6; border-color: #7a4fd6; color: #fff; }
.rdv-place, .rdv-plan { display: flex; gap: 8px; align-items: flex-start; background: #f7f8fb; border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font-size: 13.5px; margin: 4px 0 10px; }
.rdv-place svg, .rdv-plan svg { flex: none; margin-top: 2px; color: var(--signal); }
.rdv-plan { background: #effaf4; border-color: #c9ecd9; color: #17603d; }
.rdv-plan svg { color: var(--line); }
/* Sur la fiche : le RDV et le bouton pour le déplacer */
.rdv-fact { display: inline-flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; }
.rdv-fact > svg { color: var(--line); margin-top: 3px; flex: none; }
.rdv-fact > span { display: flex; flex-direction: column; }
.rdv-fact small { color: var(--muted); font-size: 12px; }
.rdv-fact.past > svg { color: var(--faint); }
.rdv-fact .link-btn { align-self: flex-start; font-size: 12.5px; }
.drawer-tools [data-rdv-box] { background: #effaf4; border-radius: 10px; padding: 4px 10px; font-size: 13px; }

/* Réglages › Rendez-vous */
.place-list { display: flex; flex-direction: column; gap: 10px; }
.place-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 36px; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: #fafbfc; }
.place-row input { width: 100%; }
.place-row input.wide { grid-column: 1 / 3; }
.place-row .icon-btn { grid-row: 1; grid-column: 3; }
.goal-inputs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.goal-inputs select { display: block; width: 100%; margin-top: 6px; }
.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.doc-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.doc-row > svg { color: var(--signal); flex: none; }
.doc-row a { font-weight: 700; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.doc-row a:hover { color: var(--signal); text-decoration: underline; }
@media (max-width: 760px) { .goal-inputs.three { grid-template-columns: 1fr; } .place-row { grid-template-columns: 1fr 36px; } .place-row input.wide { grid-column: 1 / 2; } }

/* Copilote IA pendant l'appel */
.copilot { position: fixed; right: 20px; bottom: 20px; width: 390px; max-width: calc(100vw - 40px); max-height: calc(100vh - 150px); z-index: 60; /* sous les fenêtres (RDV…) */ display: flex; flex-direction: column;
  background: #fff; border: 2px solid #7c4ddb; border-radius: 16px; box-shadow: var(--shadow-pop); transform: translateY(16px); opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s; }
.copilot.show { transform: none; opacity: 1; pointer-events: auto; }
.copilot header { display: flex; align-items: center; gap: 8px; padding: 9px 10px 9px 12px; border-bottom: 1px solid #eee6fd; color: #4a2596; }
.copilot .cp-title { display: flex; align-items: center; gap: 8px; flex: 1; cursor: pointer; }
.cp-live { margin-left: 4px; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--line-600); background: #e9f8f0; border-radius: 999px; padding: 2px 8px; }
.cp-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-bright); animation: cpPulse 1.4s infinite; }
@keyframes cpPulse { 50% { opacity: .3; } }
.cp-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.copilot.min { width: auto; }
.copilot.min .cp-body { display: none; }
.copilot.min header { border-bottom: 0; }
.copilot.flash header { animation: cpFlash 1s 4; border-radius: 14px; }
@keyframes cpFlash { 50% { background: #f1eafe; } }
.cp-empty { margin: 0; color: var(--muted); font-size: 13px; }
.cp-tip { border-radius: 12px; padding: 10px 12px; background: #f6f1ff; border-left: 4px solid #7c4ddb; animation: ltIn .3s; }
.cp-tip small { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #6b3fd0; margin-bottom: 4px; }
.cp-tip.t-objection { background: #fff5e8; border-left-color: #e3a21a; } .cp-tip.t-objection small { color: #a26200; }
.cp-tip.t-interet { background: #eaf8f0; border-left-color: var(--line); } .cp-tip.t-interet small { color: var(--line-600); }
.cp-say { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.4; color: var(--text); }
.cp-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.cp-tip.old { opacity: .6; padding: 6px 10px; }
.cp-tip.old .cp-say { font-size: 13px; font-weight: 600; }
.cp-tip.old .cp-hint { display: none; }
.cp-lines { border-top: 1px solid var(--border); padding-top: 8px; max-height: 170px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.cp-line { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--text); }
.cp-line b { display: inline-block; min-width: 62px; font-size: 11.5px; color: var(--muted); }
.cp-line.them b { color: #a26200; }
/* Téléphone : au-dessus de la barre de navigation du bas */
@media (max-width: 760px) { .copilot { right: 10px; bottom: 74px; width: calc(100vw - 20px); max-height: 55vh; } .live-tips { right: 10px; bottom: 74px; } }

/* Suivi › Point IA (admin seulement) */
.review-info { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 2px 14px; font-size: 13px; color: var(--muted); }
.review-info span { display: inline-flex; align-items: center; gap: 6px; }
.review-info .warn-text { margin: 0; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.rv-card { background: var(--card); border: 1px solid var(--border); border-top: 4px solid var(--border-2); border-radius: var(--radius-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.rv-card.c-good { border-top-color: #1f9d60; } .rv-card.c-mid { border-top-color: #e39a12; } .rv-card.c-low { border-top-color: #d64541; }
.rv-card header { display: flex; align-items: center; gap: 10px; }
.rv-who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.rv-who b { font-size: 15px; }
.rv-who span { font-size: 12.5px; color: var(--muted); }
.rv-note { flex: none; display: flex; align-items: baseline; gap: 2px; padding: 4px 10px; border-radius: 12px; color: #fff; position: relative; }
.rv-note b { font-size: 24px; line-height: 1.1; } .rv-note > span { font-size: 12px; opacity: .85; }
.rv-trend { position: absolute; right: -6px; top: -10px; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 6px; background: #fff; border: 1px solid var(--border); white-space: nowrap; }
.rv-trend.up { color: var(--line-600); } .rv-trend.down { color: var(--hang-600); } .rv-trend.same { color: var(--muted); }
.rv-hero .rv-trend { position: static; margin-left: 6px; }
.rv-sum { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-chip { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; background: #eef0f5; color: #555b73; }
.rv-chip.ok { background: #e3f6ec; color: #17834f; } .rv-chip.warn { background: #fff1d6; color: #a86a00; } .rv-chip.bad { background: #fde4e4; color: #c62828; }
.rv-card footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--border); }
.rv-card footer .muted { font-size: 12px; }
.rv-actions { display: flex; gap: 6px; }
.rv-card.empty { border-top-color: var(--border); }
.rv-card.empty p { margin: 0; font-size: 13px; }
.rv-card.busy { border-top-color: #7c4ddb; }
.rv-wait { margin: 0; display: flex; align-items: center; gap: 8px; color: #4a2596; font-weight: 700; animation: lbPulse 1.2s infinite alternate; }
/* Le détail d'un point */
.review-body .rv-hero { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.rv-note.big { flex-direction: column; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; padding: 0; gap: 0; }
.rv-note.big b { font-size: 40px; line-height: 1; }
.review-body .rv-resume { margin: 0 0 6px; font-size: 15.5px; }
.review-body .rv-hero .muted { margin: 0; font-size: 12.5px; }
.review-body .rv-cols > div { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px; }
.review-body .rv-cols small { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.review-body .rv-cols ul, .rv-advice ol { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.5; }
.review-body .rv-cols li + li, .rv-advice li + li { margin-top: 4px; }
.rv-tasks-txt { margin: 0; font-size: 13.5px; font-weight: 600; }
.task-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.task { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 9px 10px; border-radius: 10px; background: #fafbfc; border: 1px solid var(--border); }
.task b { display: block; font-size: 13.5px; } .task small { display: block; color: var(--muted); font-size: 12.5px; }
.task-mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-content: center; font-weight: 800; font-size: 13px; color: #fff; background: var(--faint); }
.task.lv-ok .task-mark { background: var(--line); } .task.lv-warn .task-mark { background: #e39a12; } .task.lv-bad .task-mark { background: var(--hang); }
.task.lv-bad { background: #fff6f6; border-color: #f6d0d0; } .task.lv-warn { background: #fffaf0; border-color: #f3e2bf; }
.task-items { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.task-items li { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.task-items .link-btn { padding: 0; font-size: 13px; }
.task-items .muted { font-size: 12.5px; }
.rv-advice { background: linear-gradient(180deg, #f6f1ff, #fbf9ff); border: 1px solid #ddd0fb; border-radius: var(--radius-lg); padding: 12px 16px; }
.rv-advice small { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #7c4ddb; margin-bottom: 4px; }
.rv-advice p { margin: 0 0 8px; font-size: 14.5px; font-weight: 600; color: #2a1660; }
.rv-advice b { font-size: 13px; }
.rv-kpis { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin-bottom: 0; }
.rv-kpis .kpi b { font-size: 21px; }
.rv-quality { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; }
.rv-history { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.rv-bar { flex: 1; max-width: 46px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; background: none !important; }
.rv-bar i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; opacity: .55; }
.rv-bar.sc-good i { background: #1f9d60; } .rv-bar.sc-mid i { background: #e39a12; } .rv-bar.sc-low i { background: #d64541; }
.rv-bar.cur i { opacity: 1; }
.rv-bar b { font-size: 12px; order: -1; } .rv-bar span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.drawer-foot-actions { display: flex; justify-content: flex-end; }
@media (max-width: 640px) { .review-body .rv-hero { flex-direction: column; text-align: center; } .review-grid { grid-template-columns: 1fr; } }
.inline-field input[type=time] { width: auto; }
.tl-card .pre, .tl-card p { overflow-wrap: anywhere; }

/* ---------- 3.2 : Calendly de chaque agent, « Envoyé par », durée et quarts d'heure du RDV ---------- */
.rdv-modes.three { grid-template-columns: 1fr; }
label.rdv-mode { cursor: pointer; }
.rdv-mode input[type=radio] { margin: 0 2px 0 0; accent-color: var(--signal); }
[data-bm-url], [data-bm-agents] { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
[data-bm-url].hidden, [data-bm-agents].hidden { display: none; }
[data-bm-agents] .label { font-size: 13px; font-weight: 600; }
.bm-list { display: flex; flex-direction: column; gap: 6px; }
.bm-row { display: grid; grid-template-columns: minmax(90px, 140px) 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; }
.bm-row .bm-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--signal-600); }
.bm-row .muted { font-size: 12.5px; }
.auto-grid > *, .auto-label > div { min-width: 0; }
.auto-label .via { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.auto-label .via select { display: block; width: 100%; max-width: 170px; height: 30px; font-size: 12.5px; padding: 0 8px; margin-top: 3px; color: var(--text); }
.rdv-grid { grid-template-columns: 1.3fr 1fr 1fr; }
.rdv-quarters { display: inline-flex; gap: 4px; margin-left: 6px; padding-left: 8px; border-left: 1px solid var(--border); }
.chip-btn.small { height: 30px; padding: 0 9px; font-size: 12px; font-weight: 600; }
.rdv-grid select { display: block; width: 100%; margin-top: 6px; }
@media (max-width: 760px) { .rdv-modes.three { grid-template-columns: 1fr; } .rdv-grid { grid-template-columns: 1fr 1fr; } .bm-row { grid-template-columns: 1fr auto; } .bm-row .bm-link, .bm-row .muted { grid-column: 1 / -1; grid-row: 2; } }
.copilot .cp-learn { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #fff3cd; color: #8a5a00; margin-left: 4px; }
.copilot .cp-hint b { font-weight: 700; }

/* ---------- 3.4.0 : créneaux libres, alerte d'heure déjà prise, réponse du prospect ---------- */
.rdv-slots { margin: 4px 0 10px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.rdv-slots .muted { display: inline-flex; align-items: center; gap: 6px; }
.rdv-free { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rdv-free b { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted, #6b6f86); margin-right: 2px; }
.chip-btn.free { border-color: #9fd8b5; background: #effaf3; color: #11643a; }
.chip-btn.free:hover { background: #16a34a; border-color: #16a34a; color: #fff; }
.chip-btn.busy:not(.on) { background: #f4f4f7; border-color: #e1e1e8; color: #9a9cad; text-decoration: line-through; }
.rdv-busy { color: var(--muted, #6b6f86); line-height: 1.5; }
.rdv-busy span { white-space: nowrap; }
.rdv-slots .hint { margin: 0; }
.rdv-warn { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #fff6e5; border: 1px solid #f3d29a; color: #7a4a00; font-size: 13.5px; line-height: 1.45; }
.rdv-warn .ic { flex: none; margin-top: 1px; }
.rdv-warn.hidden { display: none; }
.rdv-fact .rdv-ok { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: #11643a; }
.notice-quote { display: block; margin-top: 4px; font-style: italic; color: var(--text); }
.notice.rdv-reply { border-left-color: #16a34a; }
.notice.rdv-reply .notice-icon { background: #e7f7ee; }
.pause-pair { display: flex; align-items: center; gap: 6px; }
.pause-pair input { min-width: 0; flex: 1; }

/* ---------- SaaS : nom du logiciel, entreprise, abonnement ---------- */
.saas-wordmark { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 26px; font-weight: 800; color: #2d1a5c; margin: 6px 0 4px; letter-spacing: -.01em; }
.saas-wordmark img { border-radius: 11px; }
.login-company { text-align: center; margin: -4px 0 10px; color: #4b4f66; }
.saas-banner { margin: 16px 26px 0; max-width: 1448px; }
@media (max-width: 760px) { .saas-banner { margin: 10px 12px 0; } }
.saas-banner.sb-info { background: #eef2fd; color: #1d3f7c; }
.saas-banner.sb-warn { background: #fdf1db; color: #6b4a00; }
.saas-banner.sb-bad { background: #fdeaea; color: #8a1c1c; }
.saas-kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; margin: 0 0 14px; }
.saas-kv dt { color: #6b7086; }
.saas-kv dd { margin: 0; word-break: break-word; }
#blockedCard .btn-row { justify-content: center; }
.saas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.saas-grid .full { grid-column: 1 / -1; }
.saas-grid label.field { margin: 0; }
.saas-grid label.field input, .saas-grid label.field select { width: 100%; }
.saas-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.saas-note { border-radius: 10px; padding: 10px 12px; background: #fff6e2; color: #6b4a00; font-size: 13px; }
.saas-note.ok { background: #e3f6ec; color: #145c38; }
.saas-note.info { background: #eef2fd; color: #1d3f7c; }
.saas-file { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.saas-big { font-size: 22px; font-weight: 800; letter-spacing: .02em; }
.crm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.crm-table td, .crm-table th { padding: 6px 6px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.crm-table select, .crm-table input[type=text] { width: 100%; }
.crm-log { display: flex; flex-direction: column; gap: 6px; font-size: 13px; max-height: 320px; overflow: auto; }
.crm-log > div { display: grid; grid-template-columns: 120px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); }
.sup-list { display: flex; flex-direction: column; gap: 8px; }
.sup-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; font: inherit; width: 100%; }
.sup-item:hover { border-color: var(--border-2); }
.sup-thread { display: flex; flex-direction: column; gap: 8px; }
.sup-msg { border-radius: 12px; padding: 10px 12px; white-space: pre-wrap; word-break: break-word; max-width: 88%; font-size: 13.5px; }
.sup-msg.client { background: #fff; border: 1px solid var(--border); align-self: flex-end; }
.sup-msg.support { background: var(--signal-50); align-self: flex-start; }
.sup-msg small { display: block; font-weight: 700; color: var(--muted); margin-bottom: 3px; }
.sup-form textarea { width: 100%; min-height: 110px; }
@media (max-width: 700px) { .saas-grid { grid-template-columns: 1fr; } .crm-log > div { grid-template-columns: 1fr; } }
#blockedCard .saas-kv { text-align: left; }
.sender-row { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: center; margin: 4px 0 8px; }
.sender-row label.field { margin: 0; }
.sender-row input { width: 100%; font-weight: 700; letter-spacing: .02em; }
.sender-phone { border: 1px solid var(--border); border-radius: 18px; background: #f6f7fb; padding: 12px; }
.sender-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; }
.sender-avatar { width: 28px; height: 28px; border-radius: 50%; background: #c9cde0; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.sender-bubble { background: #e6e8f0; border-radius: 14px 14px 14px 4px; padding: 9px 11px; font-size: 13px; color: #2b2f45; line-height: 1.35; }
@media (max-width: 700px) { .sender-row { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .saas-kv { grid-template-columns: 1fr; } }

/* Réglages › Abonnement : derniers accès de l'équipe de la plateforme */
.saas-access { margin-top: 8px; }
.saas-access-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--muted); }
.saas-access-list .pill { margin-left: 4px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }

/* ---------- 3.4.1 : erreurs de la veille, courtes et regroupées ---------- */
.mk-pop { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.mk-pop .mk-head { flex: none; }
.mk-sum { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mk-count { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #fff8ec; color: #7a4a00; border: 1px solid #f3dfb8; }
.mk-count.mk-live { background: #fdf0ef; color: #8f2c22; border-color: #f2cfcb; }
.mk-count.mk-review { background: #f6f1ff; color: #4d2a9a; border-color: #ddd0fb; }
.mk-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 4px -4px 0; padding: 0 4px; }
.mk-top { list-style: none; margin: 10px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: mk; }
.mk-tp { display: flex; gap: 10px; background: #fff8ec; border: 1px solid #f3dfb8; border-radius: 12px; padding: 10px 12px; }
.mk-tp.mk-live { background: #fdf0ef; border-color: #f2cfcb; }
.mk-tp.mk-review { background: #f6f1ff; border-color: #ddd0fb; }
.mk-tp > div { min-width: 0; flex: 1; }
.mk-tp-head { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; }
.mk-tp-head b { font-size: 14.5px; line-height: 1.35; }
.mk-times { flex: none; font-size: 12px; font-weight: 700; color: #fff; background: #c2410c; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.mk-live .mk-times { background: #b42318; }
.mk-review .mk-times { background: #6d3fd1; }
.mk-line { margin: 4px 0 0; font-size: 13.5px; color: var(--muted, #5c6178); }
.mk-tp .mk-say { margin-top: 6px; font-size: 13.5px; }
.mk-foot { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0 16px; background: #fff; border-top: 1px solid #ececf2; margin-top: 8px; }
.mk-foot .btn.big { width: 100%; justify-content: center; }
.mk-foot .link-btn { font-size: 13.5px; }
.mk-card .panel-head .muted { font-size: 13px; }
.mk-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.mk-groups { display: flex; flex-direction: column; gap: 6px; padding: 0 16px 6px; }
.mk-group { border: 1px solid #f3dfb8; background: #fffbf3; border-radius: 10px; }
.mk-group.mk-live { border-color: #f2cfcb; background: #fff7f6; }
.mk-group.mk-review { border-color: #ddd0fb; background: #faf7ff; }
.mk-group.hidden { display: none; }
.mk-group summary { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; list-style: none; }
.mk-group summary::-webkit-details-marker { display: none; }
.mk-group summary .mk-ico { font-size: 18px; }
.mk-group summary b { flex: 1; font-size: 14px; font-weight: 600; line-height: 1.35; }
.mk-group summary .ic { flex: none; color: var(--muted, #6b6f86); transition: transform .15s; }
.mk-group[open] summary .ic { transform: rotate(90deg); }
.mk-body { padding: 0 12px 10px 42px; }
.mk-body .mk-say { margin-top: 0; }
.mk-occ { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mk-occ li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; padding: 6px 0 0; border-top: 1px dashed #e6e3ee; }
.mk-occ .mk-who { color: var(--muted, #6b6f86); }
.mk-occ .mk-q { color: #3b3f58; flex: 1 1 260px; }
.mk-occ .btn { margin-left: auto; }
.mk-more { display: block; margin: 4px 16px 14px; }
@media (max-width: 760px) {
  .mk-pop .mk-big { font-size: 30px; }
  .mk-pop .mk-head h3 { font-size: 18px; }
  .mk-pop .mk-count { font-size: 11.5px; padding: 2px 7px; }
  .mk-body { padding-left: 12px; }
  .mk-filters, .mk-groups { padding-left: 12px; padding-right: 12px; }
}
.mk-pop .mk-sum { margin: 2px 0 0; flex: none; }
.mk-sub { flex: none; margin: 14px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted, #6b6f86); }
.mk-pop .mk-top { margin-top: 8px; }

/* ---------- 3.5.0 : mes derniers appels ---------- */
.reloading { opacity: .55; transition: opacity .2s; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-2); background: #fff;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; }
.rc-chip b { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.rc-chip:hover { background: #f6f3fa; }
.rc-chip.active { background: var(--signal); border-color: var(--signal); color: #fff; }
.rc-chip.active b { color: #fff; }
.rc-table .rc-day td { background: #f6f4f9 !important; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--muted); padding-top: 8px; padding-bottom: 8px; cursor: default; }
.rc-table .rc-time { font-weight: 700; width: 64px; }
.rc-table .rc-who .sub { font-size: 12.5px; color: var(--muted); }
.rc-table .rc-camp-inline { display: none; }
.rc-res { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.rc-dur { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-next { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--signal); font-weight: 600; white-space: nowrap; }
.rc-table .rc-note { min-width: 200px; max-width: 360px; }
.rc-none { white-space: nowrap; }
.menu .rc-row .rc-l-who b, .menu .rc-row .rc-l-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.rc-note-txt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; color: var(--text); }
.rc-none { font-size: 12.5px; color: var(--faint); }
@media (max-width: 1200px) {
  .rc-table .rc-camp { display: none; }
  .rc-table .rc-camp-inline { display: block; }
}
@media (max-width: 760px) {
  .rc-table .rc-call-label { display: none; }
  .rc-table .rc-time { width: auto; }
  #page-mycalls .toolbar { flex-direction: column; align-items: stretch; }
}
/* Carte de l'écran d'accueil */
.rc-card ol { gap: 0; }
.rc-line { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--border); padding: 6px 0; }
.rc-line:first-child { border-top: 0; }
.rc-l-main { flex: 1; min-width: 0; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left;
  background: none; border: 0; padding: 4px 6px; margin-left: -6px; border-radius: 8px; font: inherit; color: inherit; cursor: pointer; }
.rc-l-main:hover { background: #f6f3fa; }
.rc-l-time { font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.rc-l-who { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; }
.rc-l-who small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-l-res { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.rc-l-res small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Liste de la console d'appel */
.recent-btn { gap: 6px; white-space: nowrap; }
.menu .rc-menu { width: 400px; max-width: calc(100vw - 32px); }
.menu .rc-list { max-height: min(60vh, 520px); overflow-y: auto; }
.menu .rc-row { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--border); }
.menu .rc-row:first-child { border-top: 0; }
.menu .rc-row .rc-main { flex: 1; min-width: 0; display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 10px; font-weight: 500; }
.menu .rc-row .rc-l-time { font-size: 12px; color: var(--muted); }
.menu .rc-row .rc-call { width: 38px; height: 38px; flex: none; justify-content: center; padding: 0; border-radius: 50%; color: #fff; background: var(--line); }
.menu .rc-row .rc-call:hover { background: var(--line-600); }
.menu .rc-all { justify-content: center; color: var(--signal); border-top: 1px solid var(--border) !important; border-radius: 0 0 8px 8px; margin-top: 4px; }
@media (max-width: 760px) {
  .recent-btn .recent-label { display: none; }
  .rc-l-main { grid-template-columns: 64px minmax(0, 1fr); }
  .rc-l-res { grid-column: 2; flex-direction: row; align-items: center; gap: 8px; }
  .rc-line .btn { padding: 0 10px; }
}

/* ---------- 3.5.0 : santé des numéros ---------- */
.nh-intro { max-width: 820px; margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.nh-list { display: flex; flex-direction: column; gap: 14px; max-width: 1100px; }
.nh-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; }
.nh-card.nh-red { border-color: #f1c4c1; }
.nh-card.nh-orange { border-color: #f3dfb4; }
.nh-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nh-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nh-name b { display: block; font-size: 15px; }
.nh-name span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nh-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--signal-50); color: var(--signal); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.nh-pill { gap: 6px; height: 26px; padding: 0 11px; font-size: 12.5px; }
.nh-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 14px; align-items: start; }
.nh-figure { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.nh-figure b { font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.nh-figure span { font-size: 13.5px; color: var(--muted); }
/* La jauge : remplissage = taux des 7 jours, couleur = état ; piste du même ton, plus clair ; trait = l'habitude */
.nh-meter { position: relative; }
.nh-track { position: relative; height: 12px; border-radius: 999px; background: #eceef3; }
.nh-fill { height: 100%; border-radius: 999px; background: #9aa0b8; min-width: 0; }
.nh-green .nh-track { background: #d6efe2; } .nh-green .nh-fill { background: #1e9e62; }
.nh-orange .nh-track { background: #fbecc9; } .nh-orange .nh-fill { background: #e39a12; }
.nh-red .nh-track { background: #f8dcda; } .nh-red .nh-fill { background: #d9433b; }
.nh-ref { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--text); border-radius: 1px; box-shadow: 0 0 0 2px #fff; }
.nh-scale { position: relative; display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.nh-ref-label { position: absolute; top: 0; transform: translateX(-50%); color: var(--muted); font-weight: 700; white-space: nowrap; }
.nh-ref-label.start { transform: none; }
.nh-ref-label.end { transform: translateX(-100%); }
/* Barres jour par jour */
.nh-bars-head { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.nh-bars-head .muted { font-weight: 500; color: var(--faint); }
.nh-bars { position: relative; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 2px; height: 86px; align-items: end; border-bottom: 1px solid var(--border-2); }
.nh-col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; outline: none; border-radius: 4px; }
.nh-col i { display: block; width: 100%; max-width: 18px; background: #8c6bb1; border-radius: 4px 4px 0 0; }
.nh-col:hover i, .nh-col:focus-visible i { background: var(--signal); }
.nh-col:focus-visible { box-shadow: 0 0 0 2px var(--signal-50); }
.nh-bars-ref { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--text); opacity: .45; pointer-events: none; }
.nh-bars-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); margin-top: 4px; }
.nh-table { margin-top: 8px; font-size: 13px; }
.nh-table summary { cursor: pointer; color: var(--signal); font-weight: 600; font-size: 12.5px; }
.nh-table table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.nh-table th, .nh-table td { padding: 4px 6px; border-bottom: 1px solid var(--border); text-align: left; font-size: 12.5px; }
.nh-table th { color: var(--muted); font-weight: 700; }
.nh-table .num { text-align: right; }
.nh-tip { position: fixed; z-index: 90; background: var(--text); color: #fff; font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 8px; pointer-events: none; max-width: 260px; }
.nh-advice { margin-top: 14px; background: #fff8e8; border: 1px solid #f3dfb4; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; }
.nh-advice.bad { background: #fff2f1; border-color: #f1c4c1; }
.nh-advice ol { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 3px; }
.nh-advice code { font-size: 12px; background: rgba(0,0,0,.05); padding: 1px 5px; border-radius: 5px; }
.nh-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; }
.nh-foot .btn { gap: 6px; }
.nh-empty { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; color: var(--muted); max-width: 720px; }
.nh-empty b { color: var(--text); }
.notice.nh-notice { border-left-color: var(--hang); }
@media (max-width: 900px) {
  .nh-main { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 760px) {
  .nh-card { padding: 14px; }
  .nh-figure b { font-size: 26px; }
}

/* ---------- 3.5.0 : affichage avec beaucoup de données ---------- */
/* Pile des alertes : 3 au plus à l'écran (2 sur téléphone), les autres derrière « + N autres » */
.notice.waiting { display: none; }
.notice-stack .notice.coach { max-width: none; }
.notice-stack.expanded { max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 2px; }
.notice-more { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 8px 10px 8px 14px; box-shadow: var(--shadow-pop); font-size: 13px; font-weight: 700; color: var(--text); }
.notice-more span { margin-right: auto; }
.notice-stack.expanded .notice-more { position: sticky; bottom: 0; }
/* « Voir les N autres » au bas d'une longue liste */
.tcb-more { display: block; width: 100%; margin-top: 6px; padding: 9px 12px; border: 0; border-radius: 10px; background: #f6f3fa; color: var(--signal);
  font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; text-align: center; }
.tcb-more:hover { background: var(--signal-50); }
.table .more-row td { background: #fff !important; padding: 8px 12px; cursor: default; }
.more-row { padding: 4px 0 0; }
.tcb .tcb-late { color: var(--hang); font-weight: 700; }
.tcb h4 .muted { font-weight: 600; }
/* Colonnes « Campagne » : 2 lignes au plus */
.table td.cell-camp { max-width: 240px; min-width: 120px; }
.cell-camp > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; }
/* Alertes coaching : un agent cliquable pour ne voir que ses alertes */
button.alert-agent { font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; }
button.alert-agent:hover { border-color: var(--border-2); }
button.alert-agent.active { border-color: var(--signal); box-shadow: 0 0 0 2px var(--signal-50); }
.alert-list .more-row { margin-top: 4px; }
.phone-panel .recent-all { display: block; margin: 6px auto 4px; font-size: 13px; }
@media (max-width: 760px) {
  /* Choix de la campagne : une ligne compacte par campagne */
  .camp-cards { gap: 8px; margin-top: 16px; }
  .camp-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name go" "figs go"; gap: 2px 12px; padding: 11px 12px 11px 14px; align-items: center; }
  .camp-card .camp-name { grid-area: name; font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .camp-card .camp-figs { grid-area: figs; font-size: 12.5px; }
  .camp-card .camp-figs b { font-size: 15px; }
  .camp-card .camp-foot { grid-area: go; margin: 0; }
  .camp-card .camp-mode-tag { display: none; }
  /* Mes rappels du jour, mes derniers appels : une ligne lisible, bouton d'appel rond */
  .tcb { padding: 12px; margin-top: 16px; }
  .tcb header { flex-wrap: wrap; gap: 2px 10px; }
  .tcb h3 { white-space: nowrap; }
  .tcb-row { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; }
  .tcb-time { font-size: 13px; }
  .tcb-who b, .tcb-who > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tcb-row .btn, .rc-line .btn { width: 40px; height: 40px; min-width: 40px; padding: 0; border-radius: 50%; justify-content: center; font-size: 0; gap: 0; }
  .tcb-row .btn svg, .rc-line .btn svg { width: 16px; height: 16px; }
  .rc-l-main { grid-template-columns: 52px minmax(0, 1fr); gap: 8px; }
  .rc-l-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Console d'appel : le nom de la campagne n'est plus écrasé */
  .console-left { flex-wrap: wrap; row-gap: 6px; }
  .console-left .line-mode { order: 3; width: 100%; }
  /* Mes derniers appels : une carte par appel */
  .rc-table thead { display: none; }
  .rc-table, .rc-table tbody { display: block; }
  .rc-table tr.row-link { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-areas: "time who call" "time res call" "time note note"; column-gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--border); }
  .rc-table tr.row-link td { display: block; padding: 0; border: 0; background: none !important; min-width: 0; max-width: none; }
  .rc-table tr.row-link:nth-child(even) { background: #fbfbfd; }
  .rc-table .rc-time { grid-area: time; padding-top: 1px !important; }
  .rc-table .rc-who { grid-area: who; }
  .rc-table .rc-who .strong, .rc-table .rc-who .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rc-table .rc-camp-inline { display: block; }
  .rc-table .rc-result { grid-area: res; margin-top: 6px; }
  .rc-table .rc-res { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 8px; }
  .rc-table td.num { grid-area: call; align-self: center; }
  .rc-table td.num .btn { width: 40px; height: 40px; padding: 0; border-radius: 50%; justify-content: center; }
  .rc-table .rc-camp { display: none !important; }
  .rc-table td.rc-note { display: block; grid-area: note; margin-top: 4px; }
  .rc-table .rc-note .rc-none { display: none; }
  .rc-table .rc-note-txt { font-size: 12.5px; color: var(--muted); -webkit-line-clamp: 1; }
  .rc-table tr.rc-day, .rc-table tr.rc-day td { display: block; }
  .rc-table tr.empty-row, .rc-table tr.empty-row td { display: block; }
}
/* Fenêtres au contenu long : les boutons restent en bas, toujours visibles */
#modal > .modal-actions { position: sticky; bottom: -22px; margin: 6px -22px -22px; padding: 12px 22px 18px; background: #fff; border-radius: 0 0 16px 16px; z-index: 1; }
#modal.scrolls > .modal-actions { border-top: 1px solid var(--border); }
/* Santé des numéros : les numéros sans problème sont repliés */
.nh-sum { margin: 0 0 2px; font-size: 14px; color: var(--muted); }
.nh-sum b { color: var(--text); }
details.nh-card > summary { list-style: none; cursor: pointer; }
details.nh-card > summary::-webkit-details-marker { display: none; }
details.nh-card > summary.nh-head { flex-wrap: nowrap; align-items: center; }
.nh-head .nh-name { flex: 1; }
.nh-quick { font-size: 15px; font-weight: 800; white-space: nowrap; }
.nh-quick small { font-size: 12px; font-weight: 600; color: var(--muted); }
details.nh-card[open] .nh-quick { display: none; }
.nh-chev { color: var(--faint); transition: transform .15s; display: inline-flex; }
details.nh-card[open] .nh-chev { transform: rotate(90deg); }
details.nh-card:not([open]) { padding-top: 12px; padding-bottom: 12px; }
@media (max-width: 760px) {
  details.nh-card > summary.nh-head { flex-wrap: wrap; }
  .nh-head .nh-name { flex-basis: 100%; }
  .nh-quick { margin-left: 46px; }
  .rc-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 2px; }
  .rc-chips::-webkit-scrollbar { display: none; }
  .rc-chip { flex: none; }
}
/* Menus longs (transfert vers beaucoup de collègues…) : jamais plus hauts que l'écran */
.menu { max-height: calc(100vh - 16px); overflow-y: auto; }
/* Adresse ou entreprise très longue sous le nom d'un lead : une ligne */
.person-cell > div { min-width: 0; }
.person-cell .sub:not(.clamp) { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .person-cell .sub:not(.clamp) { max-width: 200px; }
  /* Listes (admin) sur téléphone : le tableau défile de côté au lieu d'écraser les colonnes */
  #jrTable { min-width: 880px; }
}
@media (max-width: 760px) {
  /* Onglets d'une page : sur une ligne, ils défilent de côté */
  .page-tabs .segmented { display: flex; flex-wrap: nowrap; scrollbar-width: none; }
  .page-tabs .segmented::-webkit-scrollbar { display: none; }
  .page-tabs .segmented button { white-space: nowrap; flex: none; padding: 0 11px; }
}

/* ===================== Agenda des RDV (jour, semaine, mois) ===================== */
.ag-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ag-nav { display: flex; align-items: center; gap: 6px; }
.ag-nav .btn svg { width: 16px; height: 16px; }
.ag-arrow { padding: 0 7px; }
.ag-range { margin: 0 0 0 4px; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ag-bar .grow { flex: 1; }
.ag-filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ag-filters select { width: auto; height: 34px; padding: 0 10px; border: 1px solid var(--border-2); border-radius: 9px; font: inherit; font-weight: 600; background: #fff; color: var(--text); max-width: 240px; }
.ag-filters .ag-cancel { font-weight: 600; color: var(--muted); white-space: nowrap; }
.ag-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.ag-chips:empty { display: none; }
.ag-chip { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-2); background: #fff; font: inherit; font-weight: 700; font-size: 12.5px; color: var(--text); display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.ag-chip:hover { border-color: var(--signal); }
.ag-chip.active { border-color: var(--signal); box-shadow: 0 0 0 2px var(--signal-50); }
.ag-chip.off { opacity: .45; }
.ag-chip.off i { background: transparent !important; box-shadow: inset 0 0 0 2px var(--faint); }
.ag-chip i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ag-chip b { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.ag-chip:focus-visible, .ag-ev:focus-visible, .ag-md:focus-visible, .ag-free:focus-visible, .ag-li:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.ag-kpis { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.ag-kpi { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 9px 16px; min-width: 120px; }
.ag-kpi b { display: block; font-size: 20px; font-weight: 800; line-height: 1.25; font-variant-numeric: tabular-nums; }
.ag-kpi span { font-size: 12.5px; color: var(--muted); }
.ag-kpis .hint { margin: 0; font-size: 12.5px; color: var(--muted); max-width: 420px; }
.ag-body { transition: opacity .15s; }
.ag-body.reloading { opacity: .55; pointer-events: none; }
/* Grille jour / semaine */
.ag-grid { display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(var(--colmin), 1fr)); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow-x: auto; overflow-y: hidden; }
.ag-colh { height: 46px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 8px; font-weight: 800; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; position: sticky; top: 0; background: var(--card); z-index: 2; }
.ag-colh small { color: var(--muted); font-weight: 600; text-transform: none; flex: none; }
.ag-colt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-colh i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ag-hours { border-right: 1px solid var(--border); position: sticky; left: 0; background: var(--card); z-index: 3; }
.ag-hour { height: 56px; font-size: 11.5px; color: var(--faint); text-align: right; padding: 2px 8px 0 0; border-top: 1px solid #f0f1f5; font-variant-numeric: tabular-nums; }
.ag-col { border-right: 1px solid var(--border); min-width: 0; }
.ag-col:last-child { border-right: 0; }
.ag-col.today { background: #fbf9fe; }
.ag-col.today .ag-colh { color: var(--signal); background: #fbf9fe; }
.ag-colb { position: relative; }
.ag-slot { height: 56px; border-top: 1px solid #f0f1f5; }
.ag-pause { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, #f5f5f8, #f5f5f8 6px, transparent 6px, transparent 12px); pointer-events: none; }
.ag-now { position: absolute; left: 0; right: 0; border-top: 2px solid var(--hang); z-index: 4; pointer-events: none; }
.ag-now::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--hang); }
.ag-ev { position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 4px 8px; border: 0; border-left: 4px solid var(--c); border-radius: 8px;
  background: #f4f5f9; background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--text); font: inherit; font-size: 12px; line-height: 1.3; text-align: left; overflow: hidden; cursor: pointer; box-shadow: 0 0 0 2px var(--card); }
.ag-ev:hover { background: color-mix(in srgb, var(--c) 22%, #fff); }
.ag-ev b { display: block; max-width: 100%; font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-ev span { max-width: 100%; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-ev.compact { justify-content: center; padding: 2px 7px; }
.ag-ev.compact b { font-size: 11.5px; }
.ag-ev.cancelled { background: #f6f6f8; border-left-style: dashed; opacity: .75; }
.ag-ev.cancelled b { text-decoration: line-through; text-decoration-color: var(--faint); }
.ag-ok { color: #17834f; font-weight: 800; }
.ag-x { color: #c62828; font-weight: 800; font-size: 11px; text-decoration: none; display: inline-block; }
.ag-ev .ag-x { background: #fde4e4; border-radius: 4px; padding: 0 4px; margin-right: 2px; line-height: 16px; }
.ag-free { position: absolute; left: 3px; right: 3px; z-index: 1; border: 1.5px dashed #8fd0ae; border-radius: 8px; background: #f2fbf6; color: #17834f; font: inherit; font-size: 11.5px; font-weight: 700; text-align: left; padding: 3px 8px; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ag-free:hover { background: #e3f6ec; border-color: var(--line); }
.ag-busy { position: absolute; left: 3px; right: 3px; z-index: 2; border-radius: 8px; background: repeating-linear-gradient(135deg, #eceef3, #eceef3 5px, #f5f6f9 5px, #f5f6f9 10px); color: #555b73; font-size: 11.5px; font-weight: 700; padding: 3px 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ag-busy small { font-weight: 600; color: var(--faint); }
.ag-freepeople { display: flex; align-items: center; gap: 6px; margin: 10px 2px 0; font-size: 13px; color: var(--muted); }
.ag-freepeople svg { width: 14px; height: 14px; flex: none; }
.ag-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--muted); text-align: center; }
.ag-empty svg { color: var(--faint); }
.ag-empty b { color: var(--text); font-size: 15px; }
/* Mois */
.ag-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.ag-mh { padding: 10px; font-size: 12px; font-weight: 800; color: var(--muted); border-bottom: 1px solid var(--border); }
.ag-md { display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-height: 112px; padding: 6px 7px; border: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: none; font: inherit; font-size: 11.5px; color: var(--text); text-align: left; cursor: pointer; min-width: 0; }
.ag-md:nth-child(7n) { border-right: 0; }
.ag-md:hover { background: #faf8fd; }
.ag-md.out { background: #fafafc; color: var(--faint); }
.ag-mdn { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 2px; }
.ag-mdn b { font-size: 12.5px; font-weight: 800; min-width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 999px; }
.ag-md.today .ag-mdn b { background: var(--signal); color: #fff; }
.ag-mdn span { background: var(--signal-50); color: var(--signal); border-radius: 999px; padding: 0 7px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.ag-ml { display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ag-ml i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ag-ml.cancelled { color: var(--faint); text-decoration: line-through; }
.ag-more { color: var(--signal); font-weight: 800; }
/* Téléphone : liste par jour */
.ag-lday { font-size: 12.5px; color: var(--muted); margin: 16px 2px 6px; text-transform: uppercase; letter-spacing: .03em; }
.ag-lday:first-child { margin-top: 0; }
.ag-li { width: 100%; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--c); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.ag-li > svg { color: var(--faint); flex: none; margin-left: auto; }
.ag-li.cancelled { opacity: .7; border-left-style: dashed; }
.ag-li.cancelled b { text-decoration: line-through; }
.ag-lt { font-weight: 800; width: 64px; flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ag-lw { display: flex; flex-direction: column; min-width: 0; }
.ag-lw b, .ag-lw small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-lw small { color: var(--muted); }
.ag-lw em { font-style: normal; font-size: 12px; }
.ag-lw em.ag-ok { color: #17834f; }
.ag-lfree { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 6px; }
.ag-lfree button { height: 30px; padding: 0 10px; border: 1.5px dashed #8fd0ae; border-radius: 999px; background: #f2fbf6; color: #17834f; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
/* Détail d'un RDV */
.ag-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100vw; z-index: 48; background: #fff; box-shadow: -10px 0 40px rgba(17, 22, 60, .18); padding: 20px 22px; display: flex; flex-direction: column; gap: 11px; overflow-y: auto; }
.ag-ph { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ag-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.ag-tel { color: var(--signal); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.ag-tel:hover { text-decoration: underline; }
.ag-panel h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.ag-row { display: flex; gap: 10px; font-size: 13.5px; align-items: baseline; }
.ag-row > span:first-child { color: var(--muted); width: 118px; flex: none; }
.ag-row > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.ag-row b { text-transform: none; }
.ag-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.ag-note { background: #f6f7fa; border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--muted); white-space: pre-line; }
.ag-acts { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 8px; }
.ag-acts .btn { justify-content: center; height: 40px; }
.ag-acts .btn svg { width: 16px; height: 16px; }
/* Nouveau RDV : recherche du prospect */
.ag-search { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; margin: -4px 0 12px; }
.ag-search .hint { margin: 0; }
.ag-res { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.ag-res:hover:not([disabled]) { border-color: var(--signal); background: #faf8fd; }
.ag-res small { color: var(--muted); }
.ag-res[disabled] { opacity: .6; cursor: not-allowed; }
.modal-check { display: flex; margin: 4px 0 14px; }
.notice.role-changed { border-left-color: var(--amber); }
@media (max-width: 760px) {
  .ag-bar { gap: 8px; }
  .ag-views { width: 100%; }
  .ag-views button { flex: 1; }
  .ag-range { font-size: 15px; width: 100%; margin: 0; }
  .ag-bar .grow { display: none; }
  .ag-filters { width: 100%; gap: 8px; }
  .ag-filters select { flex: 1 1 100%; max-width: none; min-width: 0; }
  #page-agenda .page-head { margin-bottom: 10px; }
  .ag-kpi { min-width: 0; flex: 1 1 40%; padding: 8px 12px; }
  .ag-kpi b { font-size: 18px; }
  .ag-panel { top: auto; left: 0; width: auto; max-height: 86vh; border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); bottom: 0; z-index: 48; }
  .ag-row > span:first-child { width: 96px; }
}

/* Barre du bas sur téléphone : jusqu'à 8 entrées + l'avatar, sans déborder de l'écran */
.nl-short { display: none; }
@media (max-width: 760px) {
  .sidebar { padding: 0 4px; gap: 2px; }
  .nav-items { flex: 1 1 auto; min-width: 0; gap: 0; }
  .nav-item { flex: 1 1 auto; min-width: 0; padding: 7px 3px 5px; }
  .phone-toggle { flex: 0 0 auto; padding: 7px 8px 5px; }
  .nav-label { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .nl-long { display: none; }
  .nl-short { display: inline; }
  .phone-toggle .nav-label { display: none; }
  .nav-avatar { flex: none; }
}
@media (max-width: 420px) {
  .sidebar.crowded .nav-item { justify-content: center; min-height: 52px; }
  .sidebar.crowded .nav-item:not(.active) .nav-label { display: none; }
  .sidebar.crowded .nav-item.active { flex: 0 0 auto; padding: 7px 8px 5px; }
}

/* ---------- SaaS : option SMS ---------- */
.sms-state { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; font-size: 14px; color: #4b4f66; }
.check-line { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.check-line input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--signal, #5b34b8); }
.sms-count { margin: -4px 0 10px; }

/* ---------- 1.9.0 : des RDV ou un succès (Vente, Accord…) ---------- */
[data-goal-hide] { display: none !important; }
.drawer-tools [data-rdv-box]:empty { display: none; } /* pas de RDV : pas de pastille vide */

/* ---------- 1.10.0 : les succès de la période, avec leur fiche ---------- */
.su-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.su-bar select { height: 36px; border: 1px solid var(--border-2); border-radius: 10px; padding: 0 10px; font: inherit; background: #fff; max-width: 260px; }
.ag-chip b { font-weight: 800; color: var(--muted); }
.ag-chip.active b { color: var(--signal); }
.su-table tbody tr.su-row { cursor: pointer; }
.su-table tbody tr.su-row:hover td { background: var(--signal-50); }
.su-table .su-time { width: 64px; font-weight: 700; }
.su-table .su-who { white-space: nowrap; }
.su-table .su-who .avatar.sm { width: 26px; height: 26px; font-size: 11px; margin-right: 8px; vertical-align: middle; }
.su-table .su-open { text-align: right; white-space: nowrap; }
.su-table tr.su-dayrow th { background: var(--paper, #f4f5f9); text-align: left; font-size: 13px; font-weight: 800; padding: 10px 14px; color: var(--text); }
.su-table tr.su-dayrow th small { margin-left: 10px; font-weight: 600; color: var(--muted); }
.su-short { display: none; }
@media (max-width: 760px) {
  .su-long { display: none; }
  .su-short { display: inline; }
  /* Sur téléphone : une carte par succès (toute la carte ouvre la fiche) */
  .su-table thead { display: none; }
  .su-table, .su-table tbody { display: block; width: 100%; }
  .su-table tr.su-dayrow { display: block; }
  .su-table tr.su-dayrow th { display: block; }
  .su-table tr.su-row { display: grid; grid-template-columns: 52px 1fr; column-gap: 10px; row-gap: 3px; padding: 12px 14px; border-top: 1px solid var(--border); }
  .su-table tr.su-row td { display: block; padding: 0; border: 0; text-align: left; min-width: 0; }
  .su-table tr.su-row td.su-time { grid-column: 1; grid-row: 1 / span 5; padding-top: 1px; }
  .su-table tr.su-row td:not(.su-time) { grid-column: 2; }
  .su-table tr.su-row td:nth-child(n) { order: 6; }
  .su-table tr.su-row td.su-time { order: 0; }
  .su-table tr.su-row td.su-lead { order: 1; }
  .su-table tr.su-row td.su-who { order: 2; font-size: 13px; color: var(--muted); }
  .su-table tr.su-row td.cell-camp { order: 3; font-size: 13px; color: var(--muted); }
  .su-table tr.su-row td.su-phone { order: 4; font-size: 13px; }
  .su-table tr.su-row td.act-note { order: 5; font-size: 13.5px; }
  .su-table .su-who .avatar.sm { display: none; }
  .su-table tr.su-row td { background: transparent !important; }
  .su-table tr.su-row td.su-open { display: none; }
}
.num-link { font: inherit; font-weight: 800; color: var(--signal); background: none; border: 0; padding: 4px 6px; margin: -4px -6px; border-radius: 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.num-link:hover { background: var(--signal-50); }

/* ---------- 1.11.0 : champs de la campagne sur la fiche ---------- */
.lead-form .lf-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border); }
.lead-form .lf-field { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.lf-label { display: inline-flex; align-items: center; gap: 6px; }
.ai-badge { display: inline-flex; align-items: center; padding: 0 6px; border-radius: 99px; background: var(--signal-50); color: var(--signal-600); font-size: 10.5px; font-weight: 800; line-height: 17px; letter-spacing: .03em; cursor: help; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg2 button { font: inherit; font-weight: 700; min-height: 38px; border-radius: 9px; border: 1px solid var(--border-2); background: #fff; color: var(--text); cursor: pointer; }
.seg2 button.on { background: var(--signal); border-color: var(--signal); color: #fff; }
.lf-unit { display: flex; align-items: center; gap: 6px; }
.lf-unit input { flex: 1; min-width: 0; }
.lf-unit span { font-weight: 700; color: var(--muted); }
.lf-flash { animation: lfFlash 2.2s ease-out; border-radius: 8px; }
@keyframes lfFlash { 0% { background: #efe6fb; box-shadow: 0 0 0 6px #efe6fb; } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }
.tl-changes { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.tl-changes small { display: block; color: var(--muted); font-style: italic; }

/* ---------- 1.11.0 : import des leads en étapes ---------- */
.imp-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.imp-steps li { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; color: var(--muted); }
.imp-steps li span { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; border: 2px solid var(--border-2); font-size: 12px; box-sizing: border-box; }
.imp-steps li.on { color: var(--text); }
.imp-steps li.on span { background: var(--signal); border-color: var(--signal); color: #fff; }
.imp-steps li.done { color: var(--text); }
.imp-steps li.done span { background: var(--line-600); border-color: var(--line-600); color: #fff; }
.drawer-body.imp { display: flex; flex-direction: column; gap: 14px; }
.imp-file { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; }
.imp-file > svg { color: var(--line-600); }
.imp-file > div { flex: 1 1 260px; display: flex; flex-direction: column; }
.imp-file span { color: var(--muted); font-size: 13px; }
.imp-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.imp-check { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; }
.imp-check svg { flex: none; margin-top: 2px; }
.imp-check.is-ok { background: #e3f4ea; color: #145c38; }
.imp-check.is-warn { background: #fff4dc; color: #7a4d00; }
.imp-check.is-info { background: var(--signal-50); color: var(--signal-600); }
.imp-table { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow-x: auto; }
.imp-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 360px; gap: 16px; padding: 14px 16px; align-items: start; border-top: 1px solid #eceef3; min-width: 760px; }
.imp-row.imp-head { border-top: 0; background: #f7f7fb; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 16px; }
.imp-col { display: flex; flex-direction: column; }
.imp-col small { color: var(--muted); font-size: 12px; }
.imp-ex { display: flex; flex-wrap: wrap; gap: 6px; }
.imp-ex span { padding: 2px 8px; border-radius: 7px; background: #f5f6fa; border: 1px solid #e8eaf1; font-size: 13px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-ex i { color: var(--faint); }
.imp-dest { display: flex; flex-direction: column; gap: 6px; }
.imp-dest-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.imp-dest select { width: 100%; }
.imp-badge { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.imp-badge.is-auto { background: #e3f4ea; color: #145c38; }
.imp-badge.is-new { background: var(--signal-50); color: var(--signal-600); }
.imp-badge.is-camp { background: #e6effc; color: #1d4c8f; }
.imp-badge.is-skip { background: #eceef3; color: #4a5068; }
.imp-new { display: grid; grid-template-columns: 1fr 140px; gap: 8px; }
.imp-new label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 700; color: var(--muted); }
.imp-new .wide { grid-column: 1 / -1; }
.imp-new p { margin: 0; }
.imp-note { font-size: 12.5px; color: var(--muted); }
.imp-note.is-ok { color: #145c38; font-weight: 700; }
.imp-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.imp-btns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.imp-btns .hint { max-width: 360px; }
.imp-sum h3 { display: flex; align-items: center; gap: 8px; }
.imp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 10px 0; }
.imp-kpi { padding: 14px; border-radius: 12px; display: flex; flex-direction: column; gap: 2px; }
.imp-kpi b { font-size: 26px; line-height: 1.1; }
.imp-kpi span { font-weight: 800; }
.imp-kpi small { font-size: 12.5px; opacity: .9; }
.imp-kpi.is-ok { background: #e3f4ea; color: #145c38; }
.imp-kpi.is-camp { background: #e6effc; color: #1d4c8f; }
.imp-kpi.is-warn { background: #fff4dc; color: #7a4d00; }
.imp-kpi.is-new { background: var(--signal-50); color: var(--signal-600); }
.imp-exist { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin: 6px 0 0; }
.imp-exist legend { font-weight: 800; padding: 0 6px; }
.imp-exist .check { align-items: flex-start; padding: 4px 0; }
.imp-exist .check span { display: flex; flex-direction: column; }
.imp-exist small { color: var(--muted); font-weight: 500; }
.imp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; padding: 0 14px 14px; }
.imp-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.imp-card h4 { margin: 0; font-size: 16px; }
.imp-card .imp-badge { align-self: flex-start; }
.imp-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0 0; font-size: 13.5px; }
.imp-card dt { color: var(--muted); }
.imp-card dd { margin: 0; font-weight: 700; }
.imp-card dd.bad { color: #a1261d; }
.imp-history { margin-top: 14px; display: flex; flex-direction: column; }
.imp-history h4 { margin: 0 0 6px; font-size: 14px; }
.imp-hrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.imp-hrow > div { display: flex; flex-direction: column; }
.imp-hrow small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 720px) {
  .imp-new { grid-template-columns: 1fr; }
  .imp-steps { margin-left: 0; }
}

/* ---------- 1.11.0 : champs de la campagne (réglages) ---------- */
.fld-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin: 8px 0 12px; }
.fld-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--border); background: #fff; }
.fld-order { grid-row: span 2; }
.fld-line2 { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.fld-line2 .fld-act { margin-left: auto; }
.fld-row:first-child { border-top: 0; }
.fld-order { display: flex; flex-direction: column; }
.fld-order .icon-btn { width: 28px; height: 20px; padding: 0; }
.fld-name { display: flex; flex-direction: column; min-width: 0; }
.fld-name small, .fld-fill small { color: var(--muted); font-size: 12px; font-weight: 500; display: block; }
.fld-fill { font-size: 13px; font-weight: 600; text-align: right; }
.fld-sw { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.fld-act { display: flex; gap: 6px; }
@media (max-width: 520px) {
  .fld-row { grid-template-columns: 30px 1fr; }
  .fld-fill { grid-column: 2; }
}
/* Crédit SMS prépayé (1.12) : dernières recharges */
.sms-topups { margin: 0 0 12px; font-size: 13px; }
.sms-topups summary { cursor: pointer; color: #4b4f66; font-weight: 600; }
.sms-topups ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.sms-topups li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sms-topups li span:first-child { color: #6b7086; min-width: 150px; }
.sms-topups li small { flex-basis: 100%; color: #b4442c; }

/* Exporter les leads (1.13.1) */
.exp-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.exp-count { margin: 4px 0 6px; font-weight: 600; }

/* Sécurité de mon compte (1.15.0) */
#modal h4 { margin: 18px 0 8px; font-size: 14px; }
#modal h4:first-of-type { margin-top: 4px; }
.sec-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.sec-logins { display: grid; gap: 6px; margin: 6px 0 8px; }
.sec-login { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13.5px; }
.sec-login small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; overflow-wrap: anywhere; }
.sec-login.refused { background: #fff6f5; border-color: #f3cfcb; }
.tag.danger { background: #fde4e1; color: #b8312a; }
.sec-staff { display: grid; gap: 4px; margin: 6px 0 10px; }
.sec-staff > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.sec-more summary { cursor: pointer; font-size: 13.5px; color: var(--muted); margin: 6px 0; }
.sec-qr { display: grid; place-items: center; margin: 10px 0; }
.sec-qr svg { width: 200px; height: 200px; background: #fff; border-radius: 8px; }
.sec-key { font-size: 13px; letter-spacing: .04em; overflow-wrap: anywhere; }
.sec-codes { font: 600 15px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; background: #f6f7fb; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; margin: 10px 0; columns: 2; white-space: pre-wrap; }
@media (max-width: 560px) { .sec-codes { columns: 1; } .sec-staff > div { flex-wrap: wrap; } }

/* Appels entrants détaillés (1.16.0) : la fiche dans l'alerte, l'étiquette « Entrant », le résultat du test */
.incoming .in-card { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; gap: 8px; }
.incoming .in-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-text); }
.incoming .in-ai { display: flex; gap: 7px; align-items: flex-start; }
.incoming .in-ai svg { flex: none; margin-top: 2px; }
.incoming .in-ai p { font-size: 12.5px; line-height: 1.45; color: #fff; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tag.in-tag { background: #e6f0ff; color: #1d4ed8; vertical-align: 1px; }
.inb-test { margin-top: 4px; padding: 10px 12px; border-radius: 10px; background: #f6f7fb; display: grid; gap: 4px; }
.inb-test .hint { margin: 0; }
.inb-test code { word-break: break-all; }
