/* ============================================================================
   GRAPHITE / COGNAC — theme complet Studio — 2026-07-30
   Remplace le bleu #0a84ff + le multicolore par : noir chaud + ambre cognac.
   Charge en DERNIER (27e), HORS @layer -> gagne toutes les egalites sans
   !important ; !important reserve aux styles INLINE poses par le JS
   (avatars/tags/graphiques) et aux rares declarations !important du bundle.
   Decisions proprietaire : identites 100% monochromes ; vert/rouge/orange
   conserves mais reharmonises (--ok #57a97a, --warn #d2a03f, --bad #c2564d).
   Rollback : retirer la balise <link> (bash /opt/studio/ROLLBACK-cognac.sh).
   ========================================================================= */

/* ---------- 1. TOKENS DU BUNDLE (l'essentiel du travail : ~600 usages) ---- */
:root, :host {
  --color-bg: #121110;
  --color-surface: rgba(245,242,238,.05);
  --color-surface-2: rgba(245,242,238,.08);
  --color-border: rgba(245,242,238,.09);
  --color-border-strong: rgba(245,242,238,.16);
  --color-text: #f5f2ee;
  --color-muted: #a49d94;
  --color-faint: #5d574f;
  --color-accent: #c8813c;
  --color-accent-dim: #dfa869;
  --accent-rgb: 200, 129, 60;
  --color-success: #57a97a;
  --color-danger: #c2564d;
  --color-warning: #d2a03f;   /* n'existait pas : les usages retombaient sur #ff9f0a */
}

/* ---------- 2. FOND RACINE : degrade bleu nuit + blobs animes -> a plat --- */
html:has(.tg-standalone), body:has(.tg-standalone) { background: #0a0908 !important; }
.tg-standalone { background: #121110; background-color: #121110; }
.tg-standalone::before, .tg-standalone::after {
  background: transparent; filter: none; animation: none; display: none;
}
.tg-standalone .tg, .tg-standalone .tg:has(.tg-admin) { background: #121110; }
.wallpaper { background: radial-gradient(130% 100% at 70% -20%, #1b1815, #121110 45%, #0a0908); }
.wb-1, .wb-2, .wb-3 { background: transparent; display: none; }

/* ---------- 3. CHAT : bulles, coches, liste, composer --------------------- */
.tg-msg.is-out .tg-bubble, .tg-msgrow.is-out .tg-bubble { background: #c8813c; color: #ffffff; }
.tg-bubble { background: #211f1d; }
.tg-tick.is-seen, .tg-dl-time .tg-tick.is-seen { color: #c8813c; }
.tg-msg.is-out .tg-tick.is-seen, .tg-msgrow.is-out .tg-tick.is-seen { color: rgba(255,255,255,.85); }

.tg-dialog.is-active { background: #c8813c; }
.tg-dialog.is-active .tg-dl-name, .tg-dialog.is-active .tg-dl-last,
.tg-dialog.is-active .tg-dl-time { color: #ffffff; }
.tg-dialog { --tag-tint: transparent !important; }   /* teinte de ligne par tag (inline JS) */

.tg-unread, .tg-tab-badge { background: #c8813c; color: #ffffff; }
.tg-tab-badge.is-new { background: #57a97a; color: #ffffff; }
.tg-presence { background: #57a97a; border-color: #121110; }
.tg-conv-status.is-online { color: #57a97a; }
.tg-send, .tg-attach.is-on { background: #c8813c; color: #ffffff; }
.tg-selbar { background: #0a0908; }

/* selection / focus / surlignages */
::selection { background: rgba(200,129,60,.35); color: #f5f2ee; }
.tg-standalone ::selection, .tg-standalone ::-moz-selection { background: rgba(200,129,60,.32); }
.tg-standalone .tg-bubble::selection { background: rgba(200,129,60,.42); }
.btn:focus-visible { outline: 2px solid rgba(200,129,60,.6); }
.field:focus { box-shadow: 0 0 0 2px rgba(200,129,60,.25); border-color: #c8813c; }
.scroll { scrollbar-color: #332f2b transparent; }
.scroll::-webkit-scrollbar-thumb { background: #332f2b; }
.scroll:hover::-webkit-scrollbar-thumb { background: #5d574f; }

/* fonds bleu-nuit des modales / menus / fenetres -> noir chaud a plat */
.tg-modal, .tg-scriptpop, .tg-vault-movesel, .tg-tagmenu { background: #191817; }
.tg-confirm { background: #211f1d; }
.tg-menu-pop { background: #191817; }
.window { background: #191817; }
.window:has(.tg-admin) { background: #191817; }
.no-glass .glass, .no-glass .liquid, .no-glass .window { background: #191817; }
.no-glass .glass-strong { background: #211f1d; }
.tg-admin, .tg-scr-vaultpicker { background: #191817; }
.tg-admin-photo-cam { background: #c8813c; color: #ffffff; border-color: #191817; }
.tg-msg-video { background: #0a0908; }
.tg-vault-price input, .tg-vault-nameinput, .tg-vault-ppvcfg select { background: #0a0908; }
.dock-tip, .snap-fly { background: #211f1d; }
.snap-ghost { background: rgba(200,129,60,.15); border-color: rgba(200,129,60,.55); }
.snap-zone { box-shadow: inset 0 0 0 1.5px #332f2b; }

/* boutons / etats actifs (les repli hex bleus hors tokens) */
.btn-primary { background: #c8813c; color: #ffffff; box-shadow: none; }
.btn-accent:hover { background: #d9924a; }
.seg-btn[data-on=true] { background: #c8813c; color: #ffffff; box-shadow: none; }
.chip[data-on=true] { background: #c8813c; border-color: #c8813c; color: #ffffff; box-shadow: none; }
.dropzone:hover, .dropzone[data-drag=true] { background: rgba(200,129,60,.08); border-color: #c8813c; }
.tg-tab.is-active, .tg-acc.is-active, .tg-menu-acc.is-active,
.tg-vmode.is-on, .tg-vtab.is-on, .tg-vfolder.is-on, .tg-run-choice-btn.is-on {
  background: rgba(200,129,60,.15); color: #c8813c;
}
.tg-acc.is-active { border-color: rgba(200,129,60,.4); }
.tg-joinbar, .sfn-head { background: rgba(200,129,60,.12); }
.tg-drop { background: rgba(200,129,60,.12); }
.tg-scr-ppv { border-color: rgba(200,129,60,.45); background: rgba(200,129,60,.08); }
.tg-presta-item:hover { background: rgba(200,129,60,.08); }
.tg-lk-bar > span { background: #c8813c; }
.tg-run-step.is-sent .tg-run-step-n { background: #c8813c; color: #ffffff; }
.tg-run-send { box-shadow: none; }
.tg-vault-cell.is-sel { outline: 2px solid #c8813c; }
.tg-vfolder.is-drop, .tg-vcrumb.is-drop { box-shadow: 0 0 0 2px rgba(200,129,60,.4); }
.tg-rename-input { border-color: #c8813c; }
.tg-confirm-check input, .tg-admin-acc input { accent-color: #c8813c; }
.exp-item.is-sel, .exp-row.is-sel { background: rgba(200,129,60,.22); border-color: rgba(200,129,60,.5); }
.exp-tree-row.is-tdrag { background: rgba(200,129,60,.15); box-shadow: inset 0 0 0 1px rgba(200,129,60,.4); }
.trash-item.is-sel { background: rgba(200,129,60,.18); border-color: rgba(200,129,60,.55); }
.dicon.is-sel { background: rgba(200,129,60,.22); box-shadow: inset 0 0 0 1px rgba(200,129,60,.5); }
.dicon.is-drop .dicon-tile, .exp-item.is-drop, .exp-tree-row.is-drop { background: rgba(200,129,60,.18); }
.marquee, .exp-marquee { background: rgba(200,129,60,.15); border-color: #c8813c; }
.exp-lico.is-folder { color: #c8813c; }

/* ---------- 4. SEMANTIQUE reharmonisee (vert / ambre / rouge) ------------- */
.tg-pay-btn { background: #57a97a; color: #ffffff; }
.tg-pay-btn:not(:disabled):hover { background: #64b887; }
.tg-pay-head { background: rgba(87,169,122,.12); border-color: rgba(87,169,122,.3); }
.tg-pay-amt, .tg-paypop-price, .tg-pay-link svg { color: #57a97a; }
.tg-pay-add input:focus { border-color: #c8813c; }
.tg-presta-price, .tg-presta-row-price { color: #57a97a; }
.tg-presta-toggle.is-on { color: #c8813c; background: rgba(200,129,60,.16); border-color: rgba(200,129,60,.4); }
.tg-presta-sales.is-hot { color: #d2a03f; background: rgba(210,160,63,.16); }
.tg-prow-source .tg-prow-val, .tg-prow-source .tg-prow-ico { color: #a49d94; }
.tg-note-ok { color: #57a97a; }
.tg-dl-note { color: #d2a03f; }
.tg-lk-pending, .lk-pending { color: #d2a03f; }
.tg-lk-tagp, .lk-tagp { color: #d2a03f; background: rgba(210,160,63,.15); }
.tg-creators-dot.is-on { background: #57a97a; }
.tg-creators-off { box-shadow: none; }
.tg-err { color: #d98a82; background: rgba(194,86,77,.12); border-color: rgba(194,86,77,.4); }
.ctx-row.is-danger { color: #d98a82; }
.tg-menu-acc-off:hover, .tg-selbar-del:hover:not(:disabled) { background: rgba(194,86,77,.14); }
.tg-flow-dbtn.danger { border-color: rgba(194,86,77,.4); }
.tg-vfolder-x.danger:hover { color: #d98a82; background: rgba(194,86,77,.2); }
.stcm-hero { background: rgba(87,169,122,.1); border-color: rgba(87,169,122,.28); }
.stcm-hero-l svg, .stcm-hero-a, .stcm-a { color: #57a97a; }
.stcm-rank.is-first { color: #ffffff; background: #c8813c; }
.sfn.is-opt .sfn-head { background: rgba(210,160,63,.12); }
.sfn.is-opt .sfn-kind { color: #d2a03f; }
.wr-pipe-total, .hot-dot { color: #d2a03f; }
.wr-live-dot { background: #c2564d; }
.wr-hero { background: rgba(87,169,122,.08); border-color: rgba(87,169,122,.22); }
.wr-goal-fill { background: #57a97a; }
.wr-record-banner { background: rgba(87,169,122,.14); }
.wr-record-banner b { text-shadow: none; }
.wr-goal.done .wr-goal-bar, .wr-pulse-dot, .pipe-row.hot .hot-dot { box-shadow: none; }
.dock-dot { box-shadow: none; background: #c8813c; }

/* ---------- 5. MULTICOLORE -> MONOCHROME (styles INLINE : !important) ----- */
/* avatars (palette Telegram 7 couleurs / couleur serveur / hex en dur) */
.tg-av, .tg-av.tg-av-sm, .tg-av.tg-av-lg, .tg-gav,
.tg-acc-av, .tg-au-av, .tg-au-av.tg-au-av-sm, .tg-au-av.tg-au-av-lg,
.tg-creators-row .tg-acc-av {
  background: #211f1d !important; color: #a49d94 !important;
}
.tg-av-i { color: #a49d94 !important; }
/* nom de l'auteur dans les groupes (couleur serveur) -> accent unique */
.tg-msg-who { color: #c8813c !important; }
/* tags : chips, points, badges (couleur du tag posee inline) */
.tg-tag { border-color: #332f2b !important; color: #a49d94 !important; }
.tg-tag.is-on { background: #c8813c !important; border-color: #c8813c !important; color: #ffffff !important; }
.tg-tag-dot, .tg-tab-dot, .tg-tagmenu-item .tg-tab-dot { background: #c8813c !important; }
.tg-dl-tags .tg-dl-tag { background: #332f2b !important; color: #f5f2ee !important; }
.tg-tab.tg-tab-tag.is-active { background: rgba(200,129,60,.15) !important; color: #c8813c !important; }
.tg-tab-tag .tg-tab-badge { background: #c8813c !important; color: #ffffff !important; }
.tg-flow-rule-tag { background: #c8813c !important; color: #ffffff !important; }
/* selecteur "couleur du tag" : n'a plus d'effet visible -> masque */
.tg-tag-colors { display: none !important; }
/* war room / stats : pastilles chatteur (palette Apple 8 couleurs) */
.feed-chatter, .pipe-chatter { background: #211f1d !important; color: #f5f2ee !important; }
.wr-race-fill { background: #c8813c !important; }
/* feux macOS de la fenetre (rouge/jaune/vert) -> monochrome */
.tl-r, .tl-y, .tl-g { background: #5d574f; }
.traffic:hover .tl-r { background: #c2564d; }
.traffic:hover .tl-y { background: #d2a03f; }
.traffic:hover .tl-g { background: #57a97a; }

/* icones du bureau (tuiles degradees multicolores) -> a plat */
.dt-create, .dt-muapi, .dt-avatars, .dt-gallery, .dt-video, .dt-files, .dt-telegram,
.dt-folder, .fv-ico.is-folder, .exp-ico.is-folder, .trash-ico.is-folder {
  background: #c8813c; color: #ffffff;
}
.dt-trash, .dt-doc, .fv-ico.is-doc, .exp-ico.is-doc, .trash-ico.is-doc {
  background: #332f2b; color: #f5f2ee;
}
.dt-twitter { background: #211f1d; }
.acct-ico { background: #211f1d; color: #f5f2ee; }
.mb-logo { background: #c8813c; color: #ffffff; }

/* ---------- 6. GRAPHIQUES (attributs SVG poses par le JS) ----------------- */
.chart-svg path[stroke="#a855f7"], .chart-svg path[stroke="#0a84ff"],
.spark path[stroke="#a855f7"], .spark path[stroke="#0a84ff"],
.chart-svg circle[fill="#a855f7"], .chart-svg circle[fill="#0a84ff"] {
  stroke: #c8813c !important; fill: #c8813c !important;
}
.chart-svg path[stroke="#30d158"], .spark path[stroke="#30d158"] { stroke: #57a97a !important; }
.chart-svg circle[fill="#30d158"] { fill: #57a97a !important; }
.chart-grid { stroke: rgba(245,242,238,.07); }
.chart-cursor { stroke: rgba(200,129,60,.45); }
.chart-tip { background: #211f1d; }

/* ---------- 7. VUE SCHEMA (React Flow) ------------------------------------ */
.tg-flow, .tg-flow .react-flow__background { background: #0a0908; }
.tg-flow-head, .sfn, .tg-flow .react-flow__controls-button { background: #191817; }
.sfn-add, .tg-flow .react-flow__controls-button:hover { background: #211f1d; }
.tg-flow-drawer { background: #191817; }
.react-flow {
  --xy-resize-background-color-default: #c8813c;
  --xy-selection-background-color-default: rgba(200,129,60,.08);
  --xy-selection-border-default: 1px dotted rgba(200,129,60,.8);
  --xy-edge-stroke-default: #3a352f;
  --xy-edge-stroke-selected-default: #c8813c;
  --xy-connectionline-stroke-default: #5d574f;
  --xy-background-pattern-dots-color-default: #2b2723;
  --xy-node-background-color-default: #191817;
  --xy-node-border-default: 1px solid #332f2b;
  --xy-minimap-background-color-default: #121110;
}
.react-flow__edge.updating .react-flow__edge-path { stroke: #c8813c; }
.react-flow__attribution a { color: #5d574f; }

/* ---------- 8. SYSTEMES DE TOKENS DES PATCHS ------------------------------ */
/* Bot pro (--brc-* en triplets RGB, fond bleu nuit -> noir chaud) */
.bot-pro {
  --brc-canvas: 18 17 16;
  --brc-canvas-hi: 25 24 23;
  --brc-panel: 10 9 8;
  --brc-elevated: 33 31 29;
  --brc-sunken: 10 9 8;
  --brc-line: 39 36 33;
  --brc-line-strong: 51 47 43;
  --brc-mark: 200 129 60;
  --brc-mark-fg: 255 255 255;
  --brc-mark-hover: 217 146 74;
}
.bot-pro-btn { background: #c8813c; color: #ffffff; }
.bot-pro-btn:hover { background: #d9924a; }
.bot-quick:hover { border-color: #c8813c; }
.bot-cta-row input:focus, .bot-edit-modal input:focus, .bot-edit-modal textarea:focus {
  border-color: #c8813c; box-shadow: none;
}
.bot-cta-url.bqs-need { border-color: #c8813c !important; box-shadow: none !important; }
.bqs-chip:hover, .bqs-preview-toggle:hover { border-color: #c8813c; }
.bqs-chip.is-active { border-color: #c8813c; background: rgba(200,129,60,.14); box-shadow: none; }
.bqs-resolved .bqs-rel { color: #a49d94; background: #211f1d; }
.bqs-resolved.is-past { color: #d98a82; }
.bqs-resolved.is-past .bqs-rel { color: #d98a82; background: #211f1d; }
.bqs-cta-help { background: #191817; border-color: #272421; color: #a49d94; }
.bot-phone, .bot-toast { background: #191817; border-color: #332f2b; }
.bot-phone-chat, .bot-bubble { background: #211f1d; }
.bot-phone-avatar { background: #211f1d !important; color: #a49d94 !important; }
.bot-preview-button { background: #211f1d; color: #c8813c; }
.bot-sched-time { color: #f5f2ee; }
.bot-queue-count { background: #211f1d; color: #a49d94; }
.bot-card-btn.danger { color: #c2564d; }
.refonte-tab.is-active { background: #c8813c; color: #ffffff; box-shadow: none; }
.refonte-tab.is-action:hover { background: rgba(200,129,60,.15); border-color: #c8813c; }

/* Bot v2 / parquet (#botv2) */
#botv2 {
  --bg: #121110; --bg-2: #0a0908; --card: #191817; --card-hi: #211f1d;
  --line: #272421; --line-2: #332f2b;
  --ink: #f5f2ee; --muted: #a49d94; --faint: #5d574f;
  --accent: #c8813c; --accent-2: #b06f2f; --accent-sf: rgba(200,129,60,.14);
  --ok: #57a97a; --bad: #c2564d; --warn: #d2a03f;
}

/* Studio OS (#sos) */
#sos {
  --sos-bg: #0d0c0b; --sos-top-bg: #0a0908; --sos-card: #191817;
  --sos-line: rgba(245,242,238,.08); --sos-line2: rgba(245,242,238,.14);
  --sos-ink: #f5f2ee; --sos-muted: #a49d94; --sos-faint: #5d574f;
  --sos-blue: #c8813c; --sos-blue-soft: rgba(200,129,60,.14);
  --sos-green: #57a97a; --sos-amber: #d2a03f;
}

/* Vault admin (tokens shadowes localement par parquet-vault) */
.tg-admin:has(.tg-vault-adminbody) {
  --color-bg: #121110; --color-surface: #191817;
  --color-border: #272421; --color-border-strong: #332f2b;
  --color-text: #f5f2ee; --color-muted: #a49d94; --color-faint: #5d574f;
  --color-accent: #c8813c;
}

/* Equipe (#eqv2) */
#eqv2 { background: #121110; }
#eqv2 .eqv2-tab.is-active { border-bottom-color: #c8813c; }
#eqv2 .eqv2-badge.admin { background: rgba(200,129,60,.15); color: #c8813c; }
#eqv2 .eqv2-btn.primary, .eqv2-modal-row .eqv2-btn.primary {
  background: #c8813c; color: #ffffff; box-shadow: none;
}
#eqv2 .eqv2-input:focus, .eqv2-f input:focus, .eqv2-f select:focus { border-color: #c8813c; }
#eqv2 .eqv2-dot.on { background: #57a97a; box-shadow: none; }
#eqv2 .eqv2-dot.off { background: #c2564d; }

/* Twitter / Veille */
.tw-veille, .tw-modal { background: #191817; }

/* ============================================================================
   v2 — CORRECTIONS DE LA CONTRE-VERIFICATION (24 points)
   ========================================================================= */

/* 1. fond d'ecran : le preset "Aurora" est pose en STYLE INLINE par le JS */
.wallpaper:not([style*="url("]) {
  background: radial-gradient(130% 100% at 70% -20%, #1b1815, #121110 45%, #0a0908) !important;
}

/* 2. coquille Studio OS (desktop) : ses !important plus specifiques */
html.tr-on.sos-on .tg-admin { background: #121110 !important; }
html.tr-on.sos-on #eqv2.is-open, html.tr-on.sos-on #bizv2.is-open { background: #0d0c0b !important; }

/* 3. plein ecran Bot : radial bleu nuit en !important */
.stats-bd.botfs-bd, .stats-bd:has(.bot-pro) {
  background: radial-gradient(130% 100% at 70% -20%, #1b1815, #121110 45%, #0a0908) !important;
}

/* 4. BUSINESS (#bizv2) — completement oublie en v1 */
#bizv2 { background: #121110; }
.biz-tab.is-active { border-bottom-color: #c8813c; }
#bizv2 .biz-hero { background: #191817; border-color: #272421; }
#bizv2 .biz-hero::before { display: none; }
#bizv2 .biz-hero-val { text-shadow: none; }
.biz-bar-fill, .biz-lead-bar i { background: #c8813c; }
.biz-av.ini, .biz-av2.ini { background: #211f1d !important; color: #a49d94 !important; }
.biz-rolebadge { background: rgba(200,129,60,.15); color: #c8813c; }
#biz-day { border-color: #332f2b; background: #191817; }

/* 5-6. Bot v2 : boutons d'action + telephone de preview */
#botv2 .bv2-publish, #botv2 #cn-pop .bv2-dt-set { background: #c8813c; color: #ffffff; }
#botv2 .bv2-publish:hover, #botv2 #cn-pop .bv2-dt-set:hover { background: #d9924a; }
#botv2 .bv2-tab.is-active::after { background: #c8813c; }
.bot-pro .bot-phone { background: #191817; }
.bot-pro .bot-preview-button { color: #c8813c; }

/* 7. outil Credit de spins — oublie en v1 */
.game-credit-btn { background: #c8813c; color: #ffffff; }
.game-credit-btn:hover { background: #d9924a; }
.game-credit-input:focus { border-color: #c8813c; box-shadow: none; }
.game-credit-preset.on { border-color: #c8813c; background: rgba(200,129,60,.13); }
.game-credit-toast { border-color: #c8813c; }
.bot-player-credit { border-color: rgba(200,129,60,.4); background: rgba(200,129,60,.12); color: #c8813c; }
.game-player-spins strong, .game-credit-history-row span:last-child { color: #c8813c; }

/* 8. coches lisibles (envoye = blanc attenue, vu = blanc plein) */
.tg-msg.is-out .tg-tick, .tg-msgrow.is-out .tg-tick { color: rgba(255,255,255,.55); }
.tg-msg.is-out .tg-tick.is-seen, .tg-msgrow.is-out .tg-tick.is-seen { color: #ffffff; }
.tg-dialog.is-active .tg-tick, .tg-dialog.is-active .tg-dl-time .tg-tick.is-seen { color: #ffffff; }
.tg-dialog.is-active .tg-dl-note { color: #ffffff; }

/* 9. profil mobile bleu nuit */
.tg-profile { background: #191817; }

/* 10. Vault admin : regles parquet-vault en dur (meme prefixe :has) */
.tg-admin:has(.tg-vault-adminbody) .tg-vtab.is-on::after { background: #c8813c; }
.tg-admin:has(.tg-vault-adminbody) .tg-vcrumb.is-drop,
.tg-admin:has(.tg-vault-adminbody) .tg-vfolder.is-drop { border: 1px solid #c8813c !important; }
.tg-admin:has(.tg-vault-adminbody) .tg-presta-mrow.is-dragover { border-color: #c8813c; }
.tg-admin:has(.tg-vault-adminbody) input:focus,
.tg-admin:has(.tg-vault-adminbody) select:focus,
.tg-admin:has(.tg-vault-adminbody) textarea:focus { border-color: #c8813c; }
.tg-admin:has(.tg-vault-adminbody) input[type=checkbox],
.tg-admin:has(.tg-vault-adminbody) input[type=radio] { accent-color: #c8813c; }
.tg-admin:has(.tg-vault-adminbody) .vkx-item.is-on::before { background: #c8813c; }
.tg-vault-presta-add input, .tg-vault-pickgroup select { background: #0a0908; }

/* 11. styles inline bleus du bundle (cibles par valeur) */
[style*="rgba(10,132,255,0.18)"] { background: rgba(200,129,60,.18) !important; }
[style*="rgba(10,132,255,0.38)"] { border-color: rgba(200,129,60,.38) !important; }
.pulse-accent[style*="rgba(10,132,255"] { background: radial-gradient(circle, rgba(200,129,60,.45), transparent 70%) !important; }
[style*="rgba(10,132,255,0.15)"] { background: rgba(200,129,60,.15) !important; }

/* 12. aires sous les courbes (degrades SVG) */
.chart-svg stop[stop-color="#a855f7"], .chart-svg stop[stop-color="#0a84ff"],
.spark stop[stop-color="#a855f7"], .spark stop[stop-color="#0a84ff"] { stop-color: #c8813c; }
.chart-svg stop[stop-color="#30d158"], .spark stop[stop-color="#30d158"] { stop-color: #57a97a; }

/* 13. Bot v2 : restes (diffusion, progression, preview, bordures, toast) */
#botv2 .rl-blast { background: #c8813c; color: #ffffff; box-shadow: none; }
#botv2 .rl-blast:hover { background: #d9924a; }
#botv2 .rl-pg-bar > i { background: #c8813c; }
#botv2 .rl-pg.run { border-color: rgba(200,129,60,.4); }
#botv2 .bv2-preview { background: #191817; }
#botv2 .bv2-pv-btn { background: #211f1d; color: #c8813c; }
#botv2 .rl-unbtn:hover, #botv2 .rl-testbtn:hover { background: #d9924a; }
#botv2 .rl-ins, #botv2 .rl-manual, #botv2 .rl-testhint,
#botv2 .bv2-edit-banner, #botv2 .bv2-banner, #botv2 .bv2-qtag.media { border-color: rgba(200,129,60,.35); }
#botv2 .bv2-compose:focus-within { box-shadow: none; border-color: #c8813c; }
#botv2-toast { border-color: #c8813c; }

/* 15-16. survol joinbar + sidebar OS */
.tg-joinbar:hover { background: rgba(200,129,60,.18); }
#sos .sos-item.act::before, .sos-brand .lg { background: #c8813c; }

/* 17. feux macOS sur fenetre non focus */
.window:not(.is-focused) .tl { background: #48443e; }
.window:not(.is-focused) .traffic:hover .tl-r { background: #c2564d; }
.window:not(.is-focused) .traffic:hover .tl-y { background: #d2a03f; }
.window:not(.is-focused) .traffic:hover .tl-g { background: #57a97a; }

/* 18. selection : reflets bleu ciel du patch selection-highlight */
.tg-standalone .tg-msg::selection, .tg-standalone .tg-message::selection,
.tg-standalone [class*="bubble"]::selection, .tg-standalone [class*="message"]::selection {
  background: rgba(200,129,60,.42);
}

/* 19-21. hover equipe, editeur vault, recherche joueurs, vignette video */
#eqv2 .eqv2-btn.primary:hover { box-shadow: none; background: #d9924a; }
#vedit .ve-bar i { background: #c8813c; }
.bot-player-search:focus { box-shadow: 0 0 0 2px rgba(200,129,60,.15); }
.bot-sched-thumb.video { color: #c8813c; }

/* 22-23. React Flow (poignees), video, badge non-lu dans la conv active */
.react-flow {
  --xy-handle-background-color-default: #332f2b;
  --xy-node-boxshadow-selected-default: 0 0 0 .5px #c8813c;
}
.tg-videobox { background: #0a0908; }
.tg-dialog.is-active .tg-unread { background: rgba(20,15,8,.85); color: #ffffff; }
