/* ============================================================
   ElectroCAD — Chat d'assistance
   Couleurs de la marque ElectroCAD (rouge suisse #DC2626), AUTONOME
   (fonctionne sur la page standalone /support-chat + WebView2 plugin)
   et THEME-AWARE (clair/sombre via html[data-theme]).
   Utilisé par : page /support-chat, widget flottant, vue admin.
   ============================================================ */

/* ── Palette : valeurs par défaut = thème sombre ── */
.ecc-root, .ecc-admin, .ecc-launcher, .ecc-widget {
  --ecc-accent: #DC2626;
  --ecc-accent-hover: #B91C1C;
  --ecc-grad: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  --ecc-bg: #0A0A0B;
  --ecc-panel: #131315;
  --ecc-raised: #1C1C1F;
  --ecc-input-bg: #1C1C1F;
  --ecc-recv: #1C1C1F;
  --ecc-text: #E8E5DC;
  --ecc-text2: #B5B2A8;
  --ecc-muted: #8B8985;
  --ecc-border: rgba(255, 255, 255, 0.09);
  --ecc-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
/* ── Overrides thème clair (crème ElectroCAD) ── */
html[data-theme="light"] .ecc-root,
html[data-theme="light"] .ecc-admin,
html[data-theme="light"] .ecc-launcher,
html[data-theme="light"] .ecc-widget {
  --ecc-accent: #B91C1C;
  --ecc-accent-hover: #991B1B;
  --ecc-grad: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  --ecc-bg: #FAF7EE;
  --ecc-panel: #FFFEF8;
  --ecc-raised: #EFEADC;
  --ecc-input-bg: #FFFEF8;
  --ecc-recv: #EFEADC;
  --ecc-text: #1A1A1F;
  --ecc-text2: #3A3A40;
  --ecc-muted: #5C5B58;
  --ecc-border: rgba(20, 18, 12, 0.14);
  --ecc-shadow: 0 12px 40px rgba(20, 18, 12, 0.16);
}

.ecc-root {
  display: flex; flex-direction: column; height: 100%; min-height: 0;
  background: var(--ecc-bg); color: var(--ecc-text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px; overflow: hidden;
}

/* ── En-tête ── */
.ecc-header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--ecc-grad); color: #fff; flex: 0 0 auto; }
.ecc-header .ecc-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.ecc-header .ecc-h-title { font-weight: 700; font-size: 15px; line-height: 1.2; }
.ecc-header .ecc-h-sub { font-size: 12px; opacity: 0.9; display: flex; align-items: center; gap: 6px; }
.ecc-header .ecc-close { margin-left: auto; flex: 0 0 auto; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.15); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ecc-header .ecc-close:hover { background: rgba(255,255,255,0.28); }
.ecc-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: ecc-pulse 2s infinite; }
.ecc-dot.off { background: rgba(255,255,255,.5); animation: none; }
@keyframes ecc-pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

/* ── Liste des messages ── */
.ecc-messages { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.ecc-messages::-webkit-scrollbar { width: 8px; }
.ecc-messages::-webkit-scrollbar-thumb { background: var(--ecc-border); border-radius: 4px; }

.ecc-msg { max-width: 82%; display: flex; flex-direction: column; animation: ecc-in 0.18s ease-out; }
@keyframes ecc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ecc-msg.mine { align-self: flex-end; align-items: flex-end; }
.ecc-msg.other { align-self: flex-start; align-items: flex-start; }

.ecc-bubble { padding: 10px 14px; border-radius: 16px; line-height: 1.45; word-break: break-word; white-space: pre-wrap; }
.ecc-msg.mine .ecc-bubble { background: var(--ecc-grad); color: #fff; border-bottom-right-radius: 4px; }
.ecc-msg.other .ecc-bubble { background: var(--ecc-recv); color: var(--ecc-text); border-bottom-left-radius: 4px; }
.ecc-msg.ai .ecc-bubble { background: var(--ecc-recv); border: 1px solid var(--ecc-accent); }
.ecc-msg.system { align-self: center; max-width: 90%; }
.ecc-msg.system .ecc-bubble { background: transparent; color: var(--ecc-muted); font-size: 12.5px; text-align: center; padding: 4px 10px; }

.ecc-sender { font-size: 11px; font-weight: 700; color: var(--ecc-accent); margin: 0 4px 3px; }
.ecc-footer { font-size: 10px; color: var(--ecc-muted); margin: 3px 4px 0; display: flex; gap: 5px; align-items: center; }
.ecc-msg.mine .ecc-footer { color: rgba(255,255,255,.6); }
.ecc-tick-read { color: #fff; font-weight: 700; }
.ecc-msg.mine .ecc-tick-read { color: #fff; }

/* ── Action assistée (bouton lancer une commande, plugin) ── */
.ecc-action { margin: 5px 4px 0; }
.ecc-action button { background: var(--ecc-grad); color: #fff; border: 0; border-radius: 14px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.ecc-action button:hover { filter: brightness(1.06); }
.ecc-action button:disabled { opacity: .6; cursor: default; filter: none; }

/* ── Feedback 👍/👎 sur les réponses IA ── */
.ecc-fb { display: flex; gap: 6px; margin: 3px 4px 0; }
.ecc-fb button { background: transparent; border: 0; cursor: pointer; font-size: 14px; opacity: 0.4; padding: 0 2px; line-height: 1; }
.ecc-fb button:hover { opacity: 0.8; }
.ecc-fb button.on { opacity: 1; transform: scale(1.15); }

/* ── Images dans les bulles ── */
.ecc-images { display: grid; gap: 4px; margin-top: 6px; }
.ecc-images.single { grid-template-columns: 1fr; }
.ecc-images.multi { grid-template-columns: 1fr 1fr; }
.ecc-images img { width: 100%; max-width: 240px; border-radius: 12px; cursor: pointer; object-fit: cover; transition: transform .15s; }
.ecc-images.multi img { aspect-ratio: 1; }
.ecc-images img:hover { transform: scale(1.02); }

/* ── Indicateur de saisie ── */
.ecc-typing { align-self: flex-start; display: none; padding: 8px 14px; }
.ecc-typing.show { display: flex; gap: 4px; }
.ecc-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ecc-muted); animation: ecc-bounce 1.2s infinite; }
.ecc-typing span:nth-child(2) { animation-delay: .15s; }
.ecc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ecc-bounce { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* ── Formulaire invité (nom + email) ── */
.ecc-guest { margin: auto; width: 100%; max-width: 320px; padding: 24px 22px; box-sizing: border-box; }
.ecc-guest h3 { margin: 0 0 6px; color: var(--ecc-text); font-size: 17px; }
.ecc-guest p { margin: 0 0 16px; color: var(--ecc-muted); font-size: 13px; line-height: 1.5; }
.ecc-guest label { display: block; font-size: 12px; color: var(--ecc-text2); margin: 0 0 4px; font-weight: 600; }
.ecc-guest input { width: 100%; box-sizing: border-box; margin-bottom: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--ecc-border); background: var(--ecc-input-bg); color: var(--ecc-text); font: inherit; outline: none; }
.ecc-guest input:focus { border-color: var(--ecc-accent); }
.ecc-guest button { width: 100%; padding: 11px; border: 0; border-radius: 10px; background: var(--ecc-grad); color: #fff; font-weight: 700; cursor: pointer; font-size: 14px; }
.ecc-guest button:hover { filter: brightness(1.05); }
.ecc-guest .ecc-guest-err { color: #ef4444; font-size: 12px; margin: -6px 0 10px; min-height: 0; }

/* ── Aperçu images avant envoi ── */
.ecc-previews { display: flex; gap: 8px; padding: 8px 14px 0; flex-wrap: wrap; }
.ecc-previews:empty { display: none; }
.ecc-preview { position: relative; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; border: 1px solid var(--ecc-border); }
.ecc-preview img { width: 100%; height: 100%; object-fit: cover; }
.ecc-preview button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: 12px; line-height: 1; }

/* ── Barre « Terminer l'assistance » ── */
.ecc-endbar { display: none; justify-content: center; padding: 8px 12px 0; }
.ecc-end { background: transparent; border: 1px solid var(--ecc-border); color: var(--ecc-muted); border-radius: 14px; padding: 5px 16px; font-size: 12.5px; cursor: pointer; font-family: inherit; }
.ecc-end:hover { color: var(--ecc-accent); border-color: var(--ecc-accent); }

/* ── Barre de saisie (style WhatsApp) ── */
.ecc-composer { flex: 0 0 auto; padding: 10px 12px 12px; border-top: 1px solid var(--ecc-border); background: var(--ecc-panel); }
.ecc-input-row { display: flex; align-items: flex-end; gap: 8px; background: var(--ecc-input-bg); border: 1px solid var(--ecc-border); border-radius: 22px; padding: 6px 8px 6px 14px; }
.ecc-input-row textarea { flex: 1; border: 0; background: transparent; color: var(--ecc-text); resize: none; outline: none; font: inherit; max-height: 120px; line-height: 1.4; padding: 6px 0; }
.ecc-input-row textarea::placeholder { color: var(--ecc-muted); }
.ecc-btn-icon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 17px; background: transparent; color: var(--ecc-muted); transition: background .15s, color .15s; }
.ecc-btn-icon:hover { background: var(--ecc-raised); color: var(--ecc-text); }
.ecc-btn-send { background: var(--ecc-grad); color: #fff; }
.ecc-btn-send:hover { filter: brightness(1.06); }
.ecc-btn-send:disabled { opacity: .45; cursor: default; }

/* ── États vides / chargement ── */
.ecc-empty { margin: auto; text-align: center; color: var(--ecc-muted); padding: 24px; }
.ecc-empty .ecc-empty-ico { font-size: 42px; margin-bottom: 10px; }
.ecc-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.ecc-chip { background: var(--ecc-raised); border: 1px solid var(--ecc-border); color: var(--ecc-text); border-radius: 16px; padding: 7px 14px; font-size: 12.5px; cursor: pointer; font-family: inherit; }
.ecc-chip:hover { border-color: var(--ecc-accent); color: var(--ecc-accent); }

/* ── Proactif / Anti-churn ── */
.pro-summary { background: var(--ecc-panel, #131315); border: 1px solid var(--ecc-accent, #DC2626); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; color: var(--ecc-text, #E8E5DC); font-size: 13.5px; line-height: 1.6; }
.pro-summary strong { color: var(--ecc-accent, #DC2626); display: block; margin-bottom: 6px; }
.pro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .pro-cols { grid-template-columns: 1fr; } }
.pro-col h4 { color: var(--ecc-text, #E8E5DC); margin: 0 0 8px; }
.pro-item { border: 1px solid var(--ecc-border, rgba(255,255,255,.09)); border-radius: 10px; padding: 9px 12px; margin-bottom: 8px; color: var(--ecc-text, #E8E5DC); font-size: 13px; }
.pro-tag { display: inline-block; font-size: 10.5px; font-weight: 700; color: #fff; padding: 1px 8px; border-radius: 8px; }
.pro-d { color: var(--ecc-muted, #8B8985); font-size: 11.5px; margin-top: 2px; }
.kb-auto-wrap { margin: 12px 0; }
.kb-auto-h { color: var(--ecc-muted, #8B8985); font-size: 12.5px; margin-bottom: 8px; }
.kb-auto-item { border: 1px dashed var(--ecc-accent, #DC2626); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; color: var(--ecc-text, #E8E5DC); font-size: 13px; }
.kb-auto-item:hover { background: rgba(220,38,38,.08); }
.kb-auto-item div { color: var(--ecc-muted, #8B8985); font-size: 11.5px; margin-top: 2px; }

/* ── Top questions ── */
.tq-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--ecc-border, rgba(255,255,255,.07)); }
.tq-bar-wrap { width: 120px; flex: 0 0 120px; height: 10px; background: var(--ecc-raised, #1C1C1F); border-radius: 5px; overflow: hidden; }
.tq-bar { height: 100%; background: var(--ecc-accent, #DC2626); border-radius: 5px; }
.tq-lab { color: var(--ecc-text, #E8E5DC); font-size: 13.5px; }
.tq-lab span { color: var(--ecc-accent, #DC2626); font-weight: 700; }
.tq-ex { color: var(--ecc-muted, #8B8985); font-size: 11.5px; font-style: italic; margin-top: 2px; }

/* ── Toolbar + base de connaissances (admin) ── */
.ecc-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.kb-wrap { display: grid; grid-template-columns: 360px 1fr; gap: 16px; }
@media (max-width: 760px) { .kb-wrap { grid-template-columns: 1fr; } }
.kb-form { display: flex; flex-direction: column; gap: 8px; align-self: start; }
.kb-in { width: 100%; box-sizing: border-box; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--ecc-border, rgba(255,255,255,.12)); background: var(--ecc-input-bg, #1C1C1F); color: var(--ecc-text, #E8E5DC); font: inherit; }
.kb-in:focus { outline: none; border-color: var(--ecc-accent, #DC2626); }
.kb-form-a { display: flex; gap: 8px; }
.kb-list { display: flex; flex-direction: column; gap: 10px; }
.kb-item { border: 1px solid var(--ecc-border, rgba(255,255,255,.09)); border-radius: 12px; padding: 12px 14px; background: var(--ecc-panel, #131315); }
.kb-item-h { color: var(--ecc-text, #E8E5DC); }
.kb-off { color: #ef4444; font-size: 11px; }
.kb-item-k { font-size: 11.5px; color: var(--ecc-accent, #DC2626); margin: 2px 0; }
.kb-item-c { font-size: 12.5px; color: var(--ecc-muted, #8B8985); white-space: pre-wrap; }
.kb-item-a { display: flex; gap: 6px; margin-top: 8px; }
.kb-item-a button { font-size: 11.5px; padding: 3px 10px; border-radius: 8px; border: 1px solid var(--ecc-border, rgba(255,255,255,.12)); background: transparent; color: var(--ecc-muted, #8B8985); cursor: pointer; }
.kb-item-a button:hover { color: var(--ecc-accent, #DC2626); border-color: var(--ecc-accent, #DC2626); }

/* ============================================================
   Tableau de bord (stats) — au-dessus de la vue admin
   ============================================================ */
.ecc-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ecc-stats:empty { display: none; }
.ecc-stat { flex: 1 1 120px; min-width: 110px; background: var(--ecc-panel, #131315); border: 1px solid var(--ecc-border, rgba(255,255,255,.09)); border-radius: 12px; padding: 12px 14px; }
.ecc-stat-v { font-size: 22px; font-weight: 700; color: var(--ecc-text, #E8E5DC); line-height: 1.1; }
.ecc-stat-l { font-size: 11.5px; color: var(--ecc-muted, #8B8985); margin-top: 3px; }
.ecc-stat-l span { color: var(--ecc-accent, #DC2626); font-weight: 600; }
.ecc-spark { display: flex; flex-direction: column; justify-content: flex-end; flex: 2 1 200px; }
.ecc-spark-bars { display: flex; align-items: flex-end; gap: 2px; height: 36px; }
.ecc-spark-bars span { flex: 1; background: var(--ecc-accent, #DC2626); border-radius: 2px 2px 0 0; min-height: 2px; opacity: .85; }

/* ============================================================
   Vue ADMIN (master-détail)
   ============================================================ */
.ecc-admin { display: grid; grid-template-columns: 320px 1fr; gap: 0; height: 72vh; min-height: 480px; border: 1px solid var(--ecc-border); border-radius: 14px; overflow: hidden; background: var(--ecc-bg); color: var(--ecc-text); font-family: Inter, system-ui, sans-serif; }
.ecc-admin-list { border-right: 1px solid var(--ecc-border); overflow-y: auto; background: var(--ecc-panel); }
.ecc-admin-item { padding: 12px 14px; border-bottom: 1px solid var(--ecc-border); cursor: pointer; transition: background .12s; display: flex; gap: 10px; }
.ecc-admin-item:hover { background: var(--ecc-raised); }
.ecc-admin-item.active { background: var(--ecc-raised); box-shadow: inset 3px 0 0 var(--ecc-accent); }
.ecc-admin-ava { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; }
.ecc-admin-meta { flex: 1; min-width: 0; }
.ecc-admin-name { font-weight: 600; font-size: 13.5px; color: var(--ecc-text); display: flex; align-items: center; gap: 6px; }
.ecc-admin-sub { font-size: 11.5px; color: var(--ecc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecc-admin-time { font-size: 10.5px; color: var(--ecc-muted); margin-left: auto; }
.ecc-badge { font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 9px; }
.ecc-badge.unread { background: var(--ecc-accent); color: #fff; }
.ecc-badge.src-plugin { background: rgba(220,38,38,.16); color: var(--ecc-accent); }
.ecc-badge.src-web { background: rgba(120,113,108,.2); color: var(--ecc-text2); }
.ecc-badge.st-open { background: rgba(234,179,8,.2); color: #b78103; }
html[data-theme="dark"] .ecc-badge.st-open { color: #fcd34d; }
.ecc-badge.st-active { background: rgba(16,185,129,.2); color: #059669; }
html[data-theme="dark"] .ecc-badge.st-active { color: #6ee7b7; }
.ecc-badge.st-answered { background: rgba(220,38,38,.16); color: var(--ecc-accent); }
.ecc-badge.st-closed { background: rgba(120,113,108,.2); color: var(--ecc-muted); }
.ecc-admin-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; background: var(--ecc-bg); }
.ecc-admin-thead { padding: 12px 16px; border-bottom: 1px solid var(--ecc-border); background: var(--ecc-panel); }
.ecc-admin-thead .t-name { font-weight: 700; color: var(--ecc-text); }
.ecc-admin-thead .t-info { font-size: 11.5px; color: var(--ecc-muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ecc-admin-thead .t-diag { margin-top: 8px; padding: 8px 10px; background: rgba(220,38,38,.1); border: 1px solid rgba(220,38,38,.3); border-radius: 8px; font-size: 12px; color: var(--ecc-text); line-height: 1.5; }
.ecc-admin-thead .t-diag span { color: var(--ecc-muted); }
.ecc-admin-thead .t-actions { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.ecc-admin-thead .t-actions button { font-size: 11.5px; padding: 3px 10px; border-radius: 8px; border: 1px solid var(--ecc-border); background: transparent; color: var(--ecc-text2); cursor: pointer; }
.ecc-admin-thead .t-actions button:hover { color: var(--ecc-text); border-color: var(--ecc-accent); }
.ecc-admin-back { display: none; align-items: center; gap: 5px; background: transparent; border: 0; color: var(--ecc-accent); cursor: pointer; font-size: 13px; font-weight: 600; padding: 0 0 8px; }

/* ── Responsive : sur mobile, master-détail empilé (liste OU discussion) ── */
@media (max-width: 760px) {
  .ecc-admin { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .ecc-admin-list { border-right: 0; max-height: 72vh; }
  .ecc-admin .ecc-admin-thread { display: none; }
  .ecc-admin.viewing .ecc-admin-list { display: none; }
  .ecc-admin.viewing .ecc-admin-thread { display: flex; height: 80vh; }
  .ecc-admin.viewing .ecc-admin-back { display: inline-flex; }
}

/* ============================================================
   Widget flottant (launcher + panneau)
   ============================================================ */
.ecc-launcher { position: fixed; right: 22px; bottom: 22px; z-index: 9998; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; background: var(--ecc-grad); color: #fff; font-size: 24px; box-shadow: var(--ecc-shadow); display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.ecc-launcher:hover { transform: scale(1.06); }
.ecc-launcher .ecc-unread { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; background: #fff; color: var(--ecc-accent); border: 2px solid var(--ecc-accent); border-radius: 10px; font-size: 11px; font-weight: 700; display: none; align-items: center; justify-content: center; }
.ecc-launcher .ecc-unread.show { display: flex; }
.ecc-widget { position: fixed; right: 22px; bottom: 92px; z-index: 9998; width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 130px); border-radius: 16px; overflow: hidden; box-shadow: var(--ecc-shadow); display: none; flex-direction: column; opacity: 0; transform: translateY(12px); transition: opacity .18s, transform .18s; }
.ecc-widget.open { display: flex; opacity: 1; transform: none; }
.ecc-widget .ecc-root { height: 100%; }
@media (max-width: 480px) {
  .ecc-widget { right: 0; bottom: 0; width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .ecc-launcher { right: 16px; bottom: 16px; }
}

/* ── Lightbox ── */
.ecc-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; z-index: 99999; }
.ecc-lightbox.show { display: flex; }
.ecc-lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 8px; }

/* ── Bannière hors-ligne / erreur ── */
.ecc-banner { padding: 8px 14px; font-size: 12.5px; text-align: center; display: none; }
.ecc-banner.show { display: block; }
.ecc-banner.err { background: rgba(220,38,38,.15); color: #ef4444; }
.ecc-banner.warn { background: rgba(234,179,8,.15); color: #b78103; }
html[data-theme="dark"] .ecc-banner.warn { color: #fcd34d; }
