/* ══════════════════════════════════════════════════════════════════
   CRMOne — Primes en direct · skin "console"
   Fonds quasi-noirs, filets 1px, titres blancs, chiffres tabulaires,
   badges pastilles, bouton primaire blanc. Accent bleu #3b82f6.
   ══════════════════════════════════════════════════════════════════ */
/* Typo : pile systeme geometrique, rendu garanti sans requete reseau
   (le CSP de CRMOne peut bloquer une police distante).
   Pour embarquer Outfit : deposer outfit-{400,500,600,700}.woff2 dans
   l'extension, ajouter "web_accessible_resources" au manifest et decommenter :
@font-face { font-family: "Outfit"; font-weight: 400 700; font-display: swap;
  src: url(chrome-extension://__MSG_@@extension_id__/outfit.woff2) format("woff2"); }
*/

#cp-overlay, #cp-bigpanel {
  --cp-bg: #1a1d1e;
  --cp-card: #212324;
  --cp-card-h: #282c2d;
  --cp-line: #2f3334;
  --cp-line-s: #3b4041;
  --cp-ink: #f7f8f8;
  --cp-ink2: #a8aeb0;
  --cp-ink3: #6b7274;
  --cp-blue: #3b82f6;
  --cp-font: "Outfit", "SF Pro Display", "Segoe UI Variable Display", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

#cp-overlay {
  position: fixed; top: 70px; right: 16px; z-index: 999999;
  width: 348px; background: var(--cp-bg); border: 1px solid var(--cp-line);
  border-radius: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.55);
  font-family: var(--cp-font); font-size: 13px; color: var(--cp-ink);
  user-select: none; font-variant-numeric: tabular-nums;
  transition: box-shadow .2s, width .2s;
}
#cp-overlay.cp-collapsed { width: auto; }
#cp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; background: transparent;
  border-bottom: 1px solid var(--cp-line); border-radius: 10px 10px 0 0; cursor: grab;
}
#cp-overlay.cp-collapsed #cp-header { border-radius: 10px; border-bottom: none; }
#cp-header:active { cursor: grabbing; }
#cp-title { font-weight: 600; font-size: 14px; color: var(--cp-ink); letter-spacing: -.2px; }
#cp-controls { display: flex; gap: 2px; }
#cp-controls button {
  background: transparent; border: none; color: var(--cp-ink3); width: 26px; height: 26px;
  border-radius: 6px; cursor: pointer; font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: .15s;
}
#cp-controls button:hover { background: var(--cp-card-h); color: var(--cp-ink); }
#cp-controls button:disabled { opacity: .35; }
#cp-body { padding: 14px; max-height: 78vh; overflow-y: auto; }

/* ── Prime du mois : bloc chiffre ── */
.cp-hero {
  text-align: center; padding: 16px 14px 15px; margin-bottom: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.09); border-radius: 12px;
}
.cp-hero-label { font-size: 10px; font-weight: 500; letter-spacing: .9px; color: var(--cp-ink3); text-transform: uppercase; }
.cp-hero-val { font-size: 36px; font-weight: 600; color: var(--cp-ink); line-height: 1.05; margin: 6px 0 4px; letter-spacing: -1.5px; }
.cp-hero-range { font-size: 11.5px; color: var(--cp-ink3); }
.cp-hero-range span { color: var(--cp-ink2); font-weight: 500; }

.cp-sec { margin-bottom: 16px; }
.cp-sec-t {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--cp-ink); text-transform: none;
  letter-spacing: -.1px; margin-bottom: 9px;
}
.cp-sec-t::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cp-line-s); flex-shrink: 0; }
.cp-today .cp-sec-t::before { background: var(--cp-blue); box-shadow: 0 0 0 3px rgba(59,130,246,.16); }
.cp-sec-t2 { font-size: 10px; font-weight: 500; color: var(--cp-ink3); text-transform: uppercase; letter-spacing: .8px; margin: 14px 0 7px; }
.cp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cp-m {
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07);
  border-radius: 9px; padding: 9px 11px; display: flex; flex-direction: column-reverse; gap: 2px;
}
.cp-l { font-size: 10px; color: var(--cp-ink3); letter-spacing: .2px; }
.cp-v { font-size: 19px; font-weight: 600; color: var(--cp-ink); letter-spacing: -.5px; line-height: 1.1; }
.cp-v.cp-live { color: var(--cp-ink); }
.cp-today .cp-m {
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  border-color: rgba(255,255,255,.11);
}

.cp-break { font-size: 11px; color: var(--cp-ink2); margin-top: 9px; line-height: 1.5; }
.cp-flag {
  font-size: 11px; color: #f0b95f; margin-top: 8px; line-height: 1.45;
  background: rgba(240,185,95,.07); border: 1px solid rgba(240,185,95,.18);
  border-radius: 7px; padding: 7px 9px;
}

/* ── Barres par heure ── */
.cp-hbars { display: flex; align-items: flex-end; gap: 4px; height: 64px; padding-top: 2px; }
.cp-hbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.cp-hstack { width: 100%; display: flex; flex-direction: column-reverse; border-radius: 3px; overflow: hidden; min-height: 2px; background: var(--cp-card); }
.cp-seg { width: 100%; }
.cp-seg-c { background: #3b82f6; }
.cp-seg-a { background: #4b5563; }
.cp-seg-x { background: #ef4444; }
.cp-seg-m { background: #10b981; }
.cp-hlbl { font-size: 8.5px; color: var(--cp-ink3); margin-top: 4px; }
.cp-legend { font-size: 10px; color: var(--cp-ink3); margin-top: 9px; display: flex; align-items: center; gap: 3px; }
.cp-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin: 0 3px 0 9px; }
.cp-dot-c { background: #3b82f6; } .cp-dot-a { background: #4b5563; } .cp-dot-x { background: #ef4444; } .cp-dot-m { background: #10b981; }

/* ── Modes ── */
#cp-modes { display: flex; gap: 3px; padding: 11px 14px 0; }
.cp-mode {
  flex: 1; background: var(--cp-card); border: 1px solid var(--cp-line); color: var(--cp-ink2);
  border-radius: 7px; padding: 7px 6px; font-family: var(--cp-font); font-size: 11.5px; font-weight: 500;
  cursor: pointer; transition: .15s; white-space: nowrap;
}
.cp-mode:hover { background: var(--cp-card-h); color: var(--cp-ink); }
.cp-mode.cp-on { background: #f7f8f8; border-color: #f7f8f8; color: #0c0d0e; font-weight: 600; }
#cp-consult-banner {
  margin: 11px 14px 0; border-radius: 7px; background: var(--cp-card);
  color: var(--cp-ink2); font-size: 11px; font-weight: 500;
  padding: 8px 10px; border: 1px solid var(--cp-line); text-align: center;
}

/* ── Picker compact (overlay) ── */
.cp-picker-ctrls { display: flex; gap: 6px; margin-bottom: 8px; }
.cp-picker-ctrls input, .cp-picker-ctrls select {
  background: var(--cp-card); border: 1px solid var(--cp-line); color: var(--cp-ink);
  border-radius: 7px; padding: 7px 9px; font-family: var(--cp-font); font-size: 11.5px;
}
.cp-picker-ctrls input::placeholder { color: var(--cp-ink3); }
.cp-picker-ctrls input:focus, .cp-picker-ctrls select:focus { outline: none; border-color: var(--cp-line-s); }
.cp-picker-ctrls input { flex: 1; min-width: 0; }
.cp-picker-refresh {
  background: var(--cp-card); border: 1px solid var(--cp-line); color: var(--cp-ink2); border-radius: 7px;
  cursor: pointer; padding: 0 10px; font-size: 13px;
}
.cp-picker-refresh:hover { background: var(--cp-card-h); color: var(--cp-ink); }
.cp-pick-count { font-size: 10.5px; color: var(--cp-ink3); margin-bottom: 8px; }
.cp-pick-list { max-height: 250px; overflow-y: auto; display: flex; flex-direction: column; }
.cp-pick-row {
  display: flex; align-items: flex-start; gap: 9px; background: transparent;
  border: none; border-bottom: 1px solid var(--cp-line); border-radius: 0; padding: 10px 2px;
}
.cp-pick-row:hover { background: var(--cp-card); }
.cp-pick-info { flex: 1; min-width: 0; }
.cp-pick-dem { font-size: 12.5px; color: var(--cp-ink); font-weight: 600; letter-spacing: -.1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-pick-type { font-size: 9.5px; color: #93b8fb; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-left: 6px; }
.cp-pick-age { font-size: 10px; color: var(--cp-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-pick-btn {
  background: #f7f8f8; border: none; color: #0c0d0e; border-radius: 7px;
  padding: 7px 11px; font-family: var(--cp-font); font-size: 11.5px; font-weight: 600; cursor: pointer; flex-shrink: 0;
}
.cp-pick-btn:hover { background: #fff; }
.cp-pick-btn:disabled { opacity: .45; cursor: default; }
.cp-pick-btn.cp-ok { background: #10b981; color: #04120c; }
.cp-pick-open {
  background: var(--cp-card); border: 1px solid var(--cp-line); color: var(--cp-ink2); border-radius: 7px;
  padding: 7px 10px; font-family: var(--cp-font); font-size: 11.5px; font-weight: 500; cursor: pointer; flex-shrink: 0;
}
.cp-pick-open:hover { background: var(--cp-card-h); color: var(--cp-ink); }
.cp-pick-more { font-size: 10px; color: var(--cp-ink3); text-align: center; padding: 6px; }
.cp-pick-motif { font-size: 10.5px; color: var(--cp-ink2); margin: 3px 0 1px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-pick-seen { font-size: 9px; color: #f0b95f; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-left: 6px; }
.cp-pick-resume { font-size: 10.5px; color: var(--cp-ink2); margin-top: 6px; line-height: 1.45; white-space: normal; background: var(--cp-card); border: 1px solid var(--cp-line); border-left: none; border-radius: 6px; padding: 7px 9px; }
.cp-pick-actions { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.cp-pick-preview { background: var(--cp-card); border: 1px solid var(--cp-line); color: var(--cp-ink2); border-radius: 7px; padding: 6px 10px; font-size: 12px; cursor: pointer; }
.cp-pick-preview:hover { background: var(--cp-card-h); color: var(--cp-ink); }
.cp-pick-preview:disabled { opacity: .45; cursor: default; }
.cp-pick-actions .cp-pick-open, .cp-pick-actions .cp-pick-btn { padding: 6px 10px; }
.cp-pick-list::-webkit-scrollbar { width: 6px; }
.cp-pick-list::-webkit-scrollbar-thumb { background: var(--cp-line-s); border-radius: 4px; }

/* ── Reglages ── */
.cp-cfgpanel .cp-row { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--cp-ink2); margin-bottom: 9px; gap: 8px; }
.cp-cfgpanel input[type=number], .cp-cfgpanel select { width: 74px; background: var(--cp-card); border: 1px solid var(--cp-line); color: var(--cp-ink); border-radius: 6px; padding: 5px 7px; font-family: var(--cp-font); font-size: 12px; }
.cp-cfgpanel input[type=number]:focus, .cp-cfgpanel select:focus { outline: none; border-color: var(--cp-line-s); }
.cp-cfgpanel input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--cp-blue); }
.cp-btn { width: 100%; background: #f7f8f8; color: #0c0d0e; border: none; border-radius: 7px; padding: 9px; font-family: var(--cp-font); font-weight: 600; cursor: pointer; margin-top: 6px; font-size: 12.5px; }
.cp-btn:hover { background: #fff; }
.cp-btn2 { background: var(--cp-card); color: var(--cp-ink2); border: 1px solid var(--cp-line); }
.cp-btn2:hover { background: var(--cp-card-h); color: var(--cp-ink); }
.cp-debug { background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: 7px; padding: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9.5px; color: var(--cp-ink2); max-height: 120px; overflow: auto; white-space: pre-wrap; word-break: break-all; margin-top: 8px; }

#cp-footer { display: flex; justify-content: space-between; padding: 9px 14px; border-top: 1px solid var(--cp-line); }
#cp-updated, #cp-note { font-size: 10px; color: var(--cp-ink3); }
#cp-body::-webkit-scrollbar { width: 6px; }
#cp-body::-webkit-scrollbar-thumb { background: var(--cp-line-s); border-radius: 4px; }

/* ══ Skin V2 discret : au repos, juste un "+" fondu dans le theme CRMOne ══ */
#cp-overlay.cp-skin-v2 #cp-header { background: transparent; }
#cp-overlay.cp-skin-v2.cp-collapsed {
  width: auto; background: rgb(26, 29, 30);
  border: 1px solid rgba(255,255,255,.06); border-radius: 8px; box-shadow: none;
  opacity: .85; transition: opacity .15s, border-color .15s;
}
#cp-overlay.cp-skin-v2.cp-collapsed:hover { opacity: 1; border-color: rgba(255,255,255,.2); }
#cp-overlay.cp-skin-v2.cp-collapsed #cp-header {
  background: rgb(26, 29, 30); border: none; padding: 2px; border-radius: 8px;
}
#cp-overlay.cp-skin-v2.cp-collapsed #cp-title,
#cp-overlay.cp-skin-v2.cp-collapsed #cp-cfg,
#cp-overlay.cp-skin-v2.cp-collapsed #cp-refresh,
#cp-overlay.cp-skin-v2.cp-collapsed #cp-opentab,
#cp-overlay.cp-skin-v2.cp-collapsed #cp-modes { display: none; }
#cp-overlay.cp-skin-v2.cp-collapsed #cp-controls { gap: 0; }
#cp-overlay.cp-skin-v2.cp-collapsed #cp-toggle { width: 24px; height: 24px; font-size: 16px; color: var(--cp-ink3); }
#cp-overlay.cp-skin-v2.cp-collapsed:hover #cp-toggle { color: var(--cp-ink); }

/* ══ Mode onglet plein ecran ══ */
#cp-tabbg { position: fixed; inset: 0; background: #1f2223; z-index: 999990; }
.cp-tabmode #cp-bigpanel { left: 0; top: 0; height: 100vh; width: calc(100% - 380px); max-width: none; box-shadow: none; border-right: 1px solid var(--cp-line); z-index: 999998; }
.cp-tabmode #cp-overlay {
  left: auto; right: 0; top: 0; height: 100vh; width: 380px; max-height: none;
  border-radius: 0; box-shadow: none; border: none; border-left: 1px solid var(--cp-line);
  display: flex; flex-direction: column; z-index: 999998;
}
.cp-tabmode #cp-overlay #cp-body { flex: 1; max-height: none; }
.cp-tabmode #cp-header { cursor: default; }
.cp-tabmode #cp-toggle, .cp-tabmode #cp-opentab { display: none; }
.cp-tabmode #cp-bp-close { display: none; }
.cp-tabmode.cp-dash-hidden #cp-overlay { display: none !important; }
.cp-tabmode.cp-dash-hidden #cp-bigpanel { width: 100%; }
#cp-bp-dash { display: none; }
.cp-tabmode #cp-bp-dash { display: inline-flex; align-items: center; justify-content: center; }
.cp-tabmode .cp-hbars { height: 170px; gap: 6px; }
.cp-hcap { font-size: 9.5px; color: var(--cp-ink2); text-align: center; margin-bottom: 4px; font-weight: 500; }
.cp-tabmode .cp-hlbl { font-size: 10px; margin-top: 5px; }
@media (max-width: 900px) {
  .cp-tabmode #cp-bigpanel { width: 100%; }
  .cp-tabmode #cp-overlay { display: none; }
}

/* ══ Dossiers de l'equipe : liste en tableau + detail ══ */
#cp-bigpanel {
  position: fixed; top: 0; left: 0; height: 100vh; width: 700px; max-width: 92vw; z-index: 999998;
  background: #1f2223; border-right: 1px solid var(--cp-line); box-shadow: 8px 0 50px rgba(0,0,0,.45);
  display: flex; flex-direction: column; color: var(--cp-ink);
  font-family: var(--cp-font); font-size: 13px; font-variant-numeric: tabular-nums;
}
#cp-bp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 16px; background: transparent; border-bottom: 1px solid var(--cp-line);
}
#cp-bp-title { font-weight: 700; font-size: 21px; color: var(--cp-ink); letter-spacing: -.6px; }
#cp-bp-headctrls { display: flex; gap: 6px; }
#cp-bp-headctrls button {
  background: rgba(0,0,0,.22); border: 1px solid var(--cp-line); color: var(--cp-ink2);
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 14px; line-height: 1;
}
#cp-bp-headctrls button:hover { background: rgba(0,0,0,.35); color: var(--cp-ink); }
#cp-bp-ctrls { display: flex; gap: 8px; padding: 14px 22px 8px; }
#cp-bp-filter, #cp-bp-sort {
  background: rgba(0,0,0,.22); border: 1px solid var(--cp-line); color: var(--cp-ink);
  border-radius: 8px; padding: 9px 12px; font-family: var(--cp-font); font-size: 12.5px;
}
#cp-bp-filter { flex: 1; }
#cp-bp-filter::placeholder { color: var(--cp-ink3); }
#cp-bp-filter:focus, #cp-bp-sort:focus { outline: none; border-color: var(--cp-line-s); }
#cp-bp-count { padding: 0 22px 10px; font-size: 11px; color: var(--cp-ink3); letter-spacing: .2px; }
#cp-bp-main { flex: 1; display: flex; min-height: 0; }
#cp-bp-list { width: 46%; min-width: 250px; overflow-y: auto; border-right: 1px solid var(--cp-line); padding: 0 0 12px; display: flex; flex-direction: column; gap: 0; }
#cp-bp-detail { flex: 1; overflow-y: auto; padding: 22px 24px; }

/* lignes de dossier : rangees de tableau, pas de cartes */
.cp-bp-card {
  background: transparent; border: none; border-bottom: 1px solid var(--cp-line);
  border-left: 2px solid transparent; border-radius: 0;
  padding: 13px 20px 13px 18px; cursor: pointer; transition: background .12s, border-color .12s;
}
.cp-bp-card:hover { background: rgba(0,0,0,.18); }
.cp-bp-card.cp-bp-sel { background: rgba(0,0,0,.3); border-left-color: #f7f8f8; }
.cp-bp-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cp-bp-nom { font-size: 14px; font-weight: 600; color: var(--cp-ink); letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-bp-age { font-size: 10.5px; color: var(--cp-ink3); flex-shrink: 0; }
.cp-bp-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 7px 0 4px; }
.cp-bp-badge {
  font-size: 10px; font-weight: 600; text-transform: none; letter-spacing: .1px;
  border-radius: 999px; padding: 2.5px 9px; line-height: 1.5; white-space: nowrap;
}
.cp-bp-dem { background: #12315e; color: #7cb0f8; }              /* demande : Mobile, Assistance… */
.cp-bp-ctx { background: #103427; color: #34d399; }              /* contexte : Freebox, Pop… */
.cp-bp-seen { background: #3a2a10; color: #f0b95f; }             /* deja contacte */
.cp-bp-age2 { background: #2b2247; color: #b7a4f5; }             /* 1er contact / attente */
.cp-bp-motif { font-size: 11.5px; color: var(--cp-ink2); line-height: 1.45; margin-top: 3px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.cp-bp-empty { color: var(--cp-ink3); font-size: 13px; line-height: 1.6; text-align: center; margin-top: 70px; padding: 0 28px; }
.cp-bp-d-head { border-bottom: 1px solid var(--cp-line); padding-bottom: 16px; margin-bottom: 18px; }
.cp-bp-d-nom { font-size: 26px; font-weight: 700; color: var(--cp-ink); margin-bottom: 11px; letter-spacing: -.8px; }
.cp-bp-d-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cp-bp-d-actions { display: flex; gap: 8px; margin-bottom: 22px; }
.cp-bp-open, .cp-bp-reserve { border: none; border-radius: 8px; padding: 10px 18px; font-family: var(--cp-font); font-size: 13px; font-weight: 600; cursor: pointer; transition: .12s; }
.cp-bp-open { background: rgba(0,0,0,.24); border: 1px solid var(--cp-line); color: var(--cp-ink2); }
.cp-bp-open:hover { background: rgba(0,0,0,.4); color: var(--cp-ink); }
.cp-bp-reserve { background: #f7f8f8; color: #0c0d0e; }
.cp-bp-reserve:hover { background: #fff; }
.cp-bp-reserve.cp-ok { background: #10b981; color: #04120c; }
.cp-bp-reserve:disabled, .cp-bp-open:disabled { opacity: .45; cursor: default; }
.cp-bp-loading { color: var(--cp-ink3); font-size: 13px; }
.cp-bp-block { margin-bottom: 22px; }
.cp-bp-block-t {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 500; color: var(--cp-ink3); text-transform: uppercase;
  letter-spacing: .9px; margin-bottom: 8px;
}
.cp-bp-block-c {
  font-size: 13.5px; color: var(--cp-ink); line-height: 1.6; background: #171a1b;
  border: 1px solid #2a2e2f; border-radius: 12px; padding: 18px 20px;
  white-space: pre-wrap; word-break: break-word;
}
.cp-bp-block-c i { color: var(--cp-ink3); }
.cp-bp-reform { margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--cp-line); color: var(--cp-ink2); font-size: 12px; }
.cp-bp-reform b { color: #93b8fb; font-weight: 600; }
.cp-bp-msgmeta { font-size: 10.5px; color: var(--cp-ink3); margin-top: 8px; }
.cp-bp-h { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 9px 0; }
.cp-bp-h + .cp-bp-h { border-top: 1px solid var(--cp-line); }
.cp-bp-h-d { color: var(--cp-ink3); font-size: 11px; flex-shrink: 0; }
#cp-bp-list::-webkit-scrollbar, #cp-bp-detail::-webkit-scrollbar { width: 6px; }
#cp-bp-list::-webkit-scrollbar-thumb, #cp-bp-detail::-webkit-scrollbar-thumb { background: var(--cp-line-s); border-radius: 4px; }
@media (max-width: 900px) {
  #cp-bigpanel { width: 100vw; max-width: 100vw; }
  #cp-bp-main { flex-direction: column; }
  #cp-bp-list { width: auto; border-right: none; border-bottom: 1px solid var(--cp-line); max-height: 45%; }
}

/* ══ Elements v3.7.x rebranches sur le skin "console" ══ */
/* En mode reduit (V2 discret), ne montrer QUE le "+" (cacher aussi l'icone plein ecran) */
#cp-overlay.cp-skin-v2.cp-collapsed #cp-opentab { display: none; }

/* Selecteur de dossiers : nb a scanner + bouton Scanner (barre de controles) */
#cp-bp-scanN {
  background: rgba(0,0,0,.22); border: 1px solid var(--cp-line); color: var(--cp-ink);
  border-radius: 8px; padding: 9px 6px; font-family: var(--cp-font); font-size: 12.5px;
}
#cp-bp-scanN:focus { outline: none; border-color: var(--cp-line-s); }
.cp-bp-scan {
  background: var(--cp-card); border: 1px solid var(--cp-line); color: var(--cp-ink2);
  border-radius: 8px; padding: 9px 13px; font-family: var(--cp-font); font-size: 12.5px;
  font-weight: 600; cursor: pointer; white-space: nowrap; transition: .12s;
}
.cp-bp-scan:hover { background: var(--cp-card-h); color: var(--cp-ink); }
.cp-bp-scan:disabled { opacity: .5; cursor: default; }
.cp-bp-scan.cp-on { background: #f0b95f; border-color: #f0b95f; color: #1a1400; }

/* Dossiers "opportunite" (mots-cles trouves par le scan) */
.cp-bp-card.cp-bp-hit { border-left-color: #f0b95f; background: rgba(240,185,95,.05); }
.cp-bp-card.cp-bp-hit .cp-bp-nom { color: #f6d99a; }
.cp-bp-badge.cp-bp-kw { background: #3a2a10; color: #f0b95f; }

/* Reglages : champ mots-cles du scanner */
.cp-cfgpanel .cp-row.cp-row-col { flex-direction: column; align-items: stretch; gap: 6px; }
.cp-cfg-scan {
  width: 100%; background: var(--cp-card); border: 1px solid var(--cp-line); color: var(--cp-ink);
  border-radius: 8px; padding: 8px 10px; font-family: var(--cp-font); font-size: 11.5px;
  resize: vertical; line-height: 1.5;
}
.cp-cfg-scan:focus { outline: none; border-color: var(--cp-line-s); }
