/* ════════════════════════════════════════════════════════════════
   SmartCM — Dashboard. Thème clair "SaaS", inspiré influencermarketing.ai :
   fond blanc, accents bleu/indigo, boutons arrondis, ombres douces.
   ════════════════════════════════════════════════════════════════ */
:root {
  /* Surfaces (du fond aux cartes) */
  --bg: #f6f7fb;
  --bg-grad: radial-gradient(1100px 520px at 82% -12%, rgba(124, 92, 255, 0.10) 0%, transparent 58%),
             radial-gradient(820px 460px at -8% -4%, rgba(59, 91, 253, 0.08) 0%, transparent 52%);
  --panel: #ffffff;
  --panel2: #f3f4f8;
  --panel3: #eaecf3;
  --border: #e3e6ee;
  --border-soft: #eef0f6;

  /* Texte */
  --text: #141826;
  --muted: #5b6576;
  --faint: #97a0b1;

  /* Accents */
  --accent: #4f46e5;
  --accent2: #7c3aed;
  --accent-grad: linear-gradient(135deg, #4f6bff 0%, #7c4dff 100%);
  --accent-weak: rgba(79, 70, 229, 0.10);
  --green: #15a865;
  --green-weak: rgba(21, 168, 101, 0.12);
  --red: #e23a64;
  --red-weak: rgba(226, 58, 100, 0.11);
  --amber: #d98a09;
  --amber-weak: rgba(217, 138, 9, 0.13);
  --violet: #8b5cf6;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(23, 30, 56, 0.10);
  --shadow-sm: 0 1px 3px rgba(23, 30, 56, 0.06), 0 1px 2px rgba(23, 30, 56, 0.04);
  --ring: 0 0 0 3px var(--accent-weak);

  /* Tokens sémantiques (adaptés par le thème) */
  --field-bg: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.82);
  --footer-bg: #0f1426;
  --code-bg: #f7f8fc;
}

/* ── Thème sombre ─────────────────────────────────────────────── */
html[data-theme="dark"] {
  --bg: #0c0f17;
  --bg-grad: radial-gradient(1100px 520px at 82% -12%, rgba(124, 109, 255, 0.16) 0%, transparent 58%),
             radial-gradient(820px 460px at -8% -4%, rgba(59, 91, 253, 0.13) 0%, transparent 52%);
  --panel: #151a24;
  --panel2: #1c2230;
  --panel3: #28303f;
  --border: #2b3342;
  --border-soft: #232a37;

  --text: #eef1f6;
  --muted: #9aa4b3;
  --faint: #6b7384;

  --accent: #8b97ff;
  --accent2: #a98bff;
  --accent-grad: linear-gradient(135deg, #6f7bff 0%, #9a6bff 100%);
  --accent-weak: rgba(124, 141, 255, 0.16);
  --green: #3fcf8e;
  --green-weak: rgba(63, 207, 142, 0.16);
  --red: #f0657f;
  --red-weak: rgba(240, 101, 127, 0.16);
  --amber: #e0a83a;
  --amber-weak: rgba(224, 168, 58, 0.16);
  --violet: #b48bf0;

  --shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);

  --field-bg: #11151e;
  --nav-bg: rgba(15, 18, 26, 0.8);
  --footer-bg: #080b12;
  --code-bg: #0e1219;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text);
  font: 13.5px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { max-width: none; margin: 0 auto; padding: 0 18px; }

/* ── Barre supérieure ─────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 22px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.brand {
  font-weight: 800; font-size: 17px; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand::before {
  content: "🤖"; font-size: 18px; -webkit-text-fill-color: initial;
  filter: drop-shadow(0 2px 7px rgba(108, 92, 255, 0.4));
}
.project-pick { display: flex; gap: 8px; align-items: center; }
#projectSelect { min-width: 200px; max-width: 320px; }
@media (max-width: 560px) { #projectSelect { min-width: 120px; } .brand { font-size: 15px; } }

/* ── Contrôles de formulaire ──────────────────────────────────── */
select, input, textarea {
  background: var(--field-bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 11px; font: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
select:hover, input:hover, textarea:hover { border-color: #c7cdda; }
select:focus, input:focus, textarea:focus { border-color: var(--accent); box-shadow: var(--ring); }
textarea { width: 100%; resize: vertical; line-height: 1.45; }
select { cursor: pointer; appearance: none; padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6576' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
}
input::placeholder, textarea::placeholder { color: var(--faint); }

/* ── Boutons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--field-bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; font: inherit; font-weight: 600;
  transition: transform .08s, border-color .15s, background .15s, box-shadow .15s, color .15s;
  white-space: nowrap; box-shadow: var(--shadow-sm);
}
.btn:hover { border-color: #c7cdda; background: var(--panel2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { box-shadow: var(--ring); }
.btn.primary {
  background: var(--accent-grad); border-color: transparent; color: #fff; font-weight: 700;
  box-shadow: 0 6px 16px rgba(94, 92, 255, 0.32);
}
.btn.primary:hover { filter: brightness(1.05); border-color: transparent; background: var(--accent-grad); }
.btn.ghost { background: transparent; box-shadow: none; border-color: transparent; }
.btn.ghost:hover { background: var(--panel2); border-color: var(--border); }
.btn.ok { border-color: rgba(21,168,101,.4); color: var(--green); background: var(--green-weak); box-shadow: none; }
.btn.ok:hover { background: rgba(21,168,101,.18); border-color: var(--green); }
.btn.danger { border-color: rgba(226,58,100,.38); color: var(--red); background: var(--red-weak); box-shadow: none; }
.btn.danger:hover { background: rgba(226,58,100,.18); border-color: var(--red); }
.btn.small { padding: 6px 11px; font-size: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── Barre d'actions ──────────────────────────────────────────── */
.actions {
  display: flex; gap: 9px; align-items: center; flex-wrap: wrap;
  padding: 18px 0 6px;
}
.actions .btn { font-size: 13px; }
.actions .btn:hover { border-color: var(--accent); color: var(--accent); }
.action-msg { color: var(--muted); margin-left: 4px; font-size: 12px; }

/* ── Panneau (génération) ─────────────────────────────────────── */
.panel {
  margin: 12px 0; padding: 16px 18px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  animation: pop .16s ease;
}
.panel h3 { margin: 0 0 12px; font-size: 14.5px; letter-spacing: -.01em; }
.form-row { display: flex; gap: 8px; margin-bottom: 9px; }
.form-row.end { justify-content: flex-end; margin-bottom: 0; margin-top: 12px; }
.form-row > select { flex: 0 0 auto; }
.form-row > input { flex: 1; }
.hidden { display: none !important; }
@keyframes pop { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

/* ── Colonnes (file / planifiés) ──────────────────────────────── */
.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 12px 0 4px; }
@media (max-width: 1100px) { .columns { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .columns { grid-template-columns: 1fr; } }
.col > h2, .messaging > h2 {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
}
.count {
  background: var(--accent-weak); border: 1px solid rgba(79,70,229,.22);
  border-radius: 999px; padding: 0 8px; font-size: 11px; font-weight: 700;
  color: var(--accent); letter-spacing: 0; line-height: 1.55;
}
.cards { display: flex; flex-direction: column; gap: 11px; }

/* ── Carte de post ────────────────────────────────────────────── */
.card {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 13px 14px 12px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .12s, border-color .15s, box-shadow .15s;
  animation: pop .16s ease;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent-grad); opacity: .9;
}
.card:hover { transform: translateY(-2px); border-color: #d2d8e6; box-shadow: var(--shadow); }
.card .meta { display: flex; gap: 6px; align-items: center; margin-bottom: 9px; flex-wrap: wrap; }
.card .edit-text { font-size: 13.5px; }
.card textarea { padding: 7px 9px; }
.card > div:not(.meta):not(.hashtags):not(.row) { color: var(--text); font-size: 13.5px; }

.badge {
  font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted); text-transform: capitalize;
  display: inline-flex; align-items: center; gap: 4px; line-height: 1.45;
  background: var(--panel2);
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.platform { color: var(--accent); border-color: rgba(79,70,229,.3); background: var(--accent-weak); }
.badge.origin-ai { color: var(--green); border-color: rgba(21,168,101,.3); background: var(--green-weak); }
.badge.origin-scrape { color: var(--amber); border-color: rgba(217,138,9,.32); background: var(--amber-weak); }
.badge.origin-recycle { color: var(--violet); border-color: rgba(139,92,246,.32); background: rgba(139,92,246,.10); }
.badge.origin-manual { color: var(--muted); }

.card .hashtags { color: var(--accent); font-size: 12.5px; margin-top: 7px; font-weight: 600; }
.card .hashtags:empty { display: none; }
.card .when {
  color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; gap: 4px;
  margin-left: auto;
}
.card .row { display: flex; gap: 6px; align-items: center; margin-top: 11px; flex-wrap: wrap; }
.card .sched-input { flex: 1 1 auto; min-width: 140px; }

/* ── État vide ────────────────────────────────────────────────── */
.empty {
  color: var(--faint); padding: 22px 16px; text-align: center;
  border: 1px dashed var(--border); border-radius: var(--radius);
  background: rgba(79, 70, 229, 0.018); font-size: 13px;
}

/* ── Toast ────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(0);
  background: var(--panel); border: 1px solid var(--border);
  color: var(--text); padding: 11px 16px; border-radius: 12px; z-index: 60;
  box-shadow: var(--shadow); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  animation: toastIn .2s cubic-bezier(.2,.8,.2,1);
}
.toast::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px rgba(79,70,229,.6); }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(12px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ── Messagerie ───────────────────────────────────────────────── */
.messaging { padding: 18px 0 40px; }
.auto-toggle {
  margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600;
  display: flex; align-items: center; gap: 7px; text-transform: none; letter-spacing: 0;
  cursor: pointer; user-select: none;
  background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px 5px 10px;
  box-shadow: var(--shadow-sm);
}
.auto-toggle input { width: 14px; height: 14px; accent-color: var(--accent); cursor: pointer; }

.msg-layout { display: grid; grid-template-columns: 280px 1fr; gap: 14px; min-height: 300px; }
@media (max-width: 900px) { .msg-layout { grid-template-columns: 1fr; } }

.conv-list { display: flex; flex-direction: column; gap: 7px; max-height: 440px; overflow-y: auto; padding-right: 3px; }
.conv-item {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; cursor: pointer; transition: border-color .15s, background .15s, transform .08s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
}
.conv-item:hover { border-color: #c7cdda; background: var(--panel2); }
.conv-item:active { transform: scale(.99); }
.conv-item.active { border-color: var(--accent); background: var(--accent-weak); }
.conv-item .name { font-weight: 700; margin-bottom: 2px; font-size: 13px; }
.conv-item .status { font-size: 11.5px; color: var(--faint); display: flex; align-items: center; gap: 5px; }
.conv-item .status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.conv-item .status.needs_reply { color: var(--amber); }
.conv-item .status.needs_reply::before { background: var(--amber); box-shadow: 0 0 7px rgba(217,138,9,.5); }

.conv-detail {
  display: flex; flex-direction: column; background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.msg-thread {
  flex: 1; padding: 14px; overflow-y: auto; max-height: 360px;
  display: flex; flex-direction: column; gap: 8px;
}
.bubble {
  max-width: 76%; padding: 9px 12px; border-radius: 13px; font-size: 13px; line-height: 1.42;
  box-shadow: var(--shadow-sm); word-wrap: break-word;
}
.bubble.in { background: var(--panel2); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.out { background: var(--accent-grad); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 500; }
.bubble .sugg {
  font-style: italic; color: #b45309; margin-top: 6px; font-size: 12px;
  padding-top: 6px; border-top: 1px dashed rgba(217,138,9,.35);
}
.bubble.out .sugg { color: #fef3c7; border-top-color: rgba(255,255,255,.35); }
.reply-box { display: flex; gap: 8px; padding: 11px; border-top: 1px solid var(--border); background: var(--panel2); }
.reply-box textarea { flex: 1; }

/* ── Scrollbars ───────────────────────────────────────────────── */
.conv-list::-webkit-scrollbar, .msg-thread::-webkit-scrollbar { width: 8px; }
.conv-list::-webkit-scrollbar-thumb, .msg-thread::-webkit-scrollbar-thumb { background: #d6dae4; border-radius: 8px; }
.conv-list::-webkit-scrollbar-thumb:hover, .msg-thread::-webkit-scrollbar-thumb:hover { background: #c2c8d6; }

/* ── Page Aide / documentation ────────────────────────────────── */
.help-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 18px; overflow-y: auto;
  background: rgba(23, 30, 56, 0.34);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: toastIn .18s ease;
}
.help-doc {
  width: 100%; max-width: 1060px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 24px 26px; animation: pop .18s ease;
}
/* Onglet Aide en colonnes (WhatsApp/OpenClaw · Facebook · Instagram) */
.help-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.help-col { min-width: 0; } /* min-width:0 => les <pre> scrollent au lieu d'étirer la colonne */
.help-col > h3:first-child { margin-top: 0; }
@media (max-width: 760px) { .help-cols { gap: 8px; } }
.help-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.help-head h2 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.help-tabs { display: flex; gap: 4px; }
.help-tab {
  background: transparent; border: 1px solid transparent; color: var(--muted);
  border-radius: 999px; padding: 7px 14px; cursor: pointer; font: inherit; font-weight: 600;
}
.help-tab:hover { color: var(--text); background: var(--panel2); }
.help-tab.active { color: var(--accent); background: var(--accent-weak); border-color: rgba(79,70,229,.25); }

/* ── Gestionnaire de configs ──────────────────────────────────── */
.cfg-add { margin: 12px 0 16px; }
.cfg-add #cfgNewName { flex: 1; }
.cfg-list { display: flex; flex-direction: column; gap: 8px; }
.cfg-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--panel2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 13px;
}
.cfg-item.off { opacity: .6; }
.cfg-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cfg-name { font-weight: 700; }
.cfg-secret, .cfg-off { font-size: 11.5px; color: var(--muted); }
.cfg-off { color: var(--amber); }

.cfg-editor {
  margin-top: 14px; padding: 16px; background: var(--panel2);
  border: 1px solid rgba(79,70,229,.22); border-radius: var(--radius); animation: pop .16s ease;
}
.cfg-edit-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cfg-edit-head [data-cfg-name] { flex: 1; min-width: 140px; font-weight: 700; }
.cfg-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 11px; }
.cfg-field > span { font-size: 12px; color: var(--muted); font-weight: 600; }
.cfg-field > span em { color: var(--green); font-style: normal; font-weight: 600; }
.cfg-numbers {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px; background: var(--field-bg);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chips.empty-chips { color: var(--faint); font-size: 12.5px; margin-bottom: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent-weak); border: 1px solid rgba(79,70,229,.25);
  color: var(--text); border-radius: 999px; padding: 2px 4px 2px 11px; font-size: 12.5px;
}
.chip button {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 12px; line-height: 1; padding: 2px 4px; border-radius: 50%;
}
.chip button:hover { color: var(--red); background: var(--red-weak); }
.cfg-num-add { display: flex; gap: 6px; }
.cfg-num-add input { flex: 1; }

.cfg-sync { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--border-soft); }
.cfg-sync-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cfg-preview {
  margin: 12px 0 0; background: var(--code-bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 15px; max-height: 320px; overflow: auto;
}
.cfg-preview code {
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px; color: var(--text); white-space: pre;
}
.cfg-preview::-webkit-scrollbar { width: 8px; height: 8px; }
.cfg-preview::-webkit-scrollbar-thumb { background: #d6dae4; border-radius: 8px; }
.help-doc h3 {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin: 24px 0 10px;
}
.help-doc p { color: var(--text); margin: 0 0 12px; }
.help-note {
  background: var(--amber-weak); border: 1px solid rgba(217,138,9,.32);
  border-radius: var(--radius-sm); padding: 11px 13px; font-size: 13px;
}
.help-tip {
  background: var(--accent-weak); border: 1px solid rgba(79,70,229,.25);
  border-radius: var(--radius-sm); padding: 11px 13px; font-size: 13px;
}
.help-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 14px; }
.help-steps li { line-height: 1.55; }
.help-sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.help-doc pre {
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px; margin: 8px 0 0;
  overflow-x: auto;
}
.help-doc code {
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px;
}
.help-doc p code, .help-sub code, .help-steps li > code {
  background: var(--accent-weak); border: 1px solid rgba(79,70,229,.18);
  border-radius: 5px; padding: 1px 5px; color: var(--accent);
}
.help-doc pre code { color: var(--text); background: none; border: none; padding: 0; }
.help-links { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.help-links a { color: var(--accent); text-decoration: none; font-weight: 600; }
.help-links a:hover { text-decoration: underline; }
.help-doc pre::-webkit-scrollbar { height: 8px; }
.help-doc pre::-webkit-scrollbar-thumb { background: #d6dae4; border-radius: 8px; }

/* ── Carte publiée (lecture seule) ────────────────────────────── */
.card.published::before { background: var(--green); opacity: .85; }
.card.published .metrics { color: var(--muted); font-size: 12.5px; }
.card.published .ext-link { color: var(--accent); text-decoration: none; font-size: 12.5px; margin-left: auto; }
.card.published .ext-link:hover { text-decoration: underline; }

/* ── Filtre période (colonne Publiés) ─────────────────────────── */
.pub-filter {
  margin-left: auto; font-size: 11px; font-weight: 600;
  padding: 3px 22px 3px 9px; border-radius: 999px; text-transform: none; letter-spacing: 0;
  background-position: right 7px center;
}

/* ── Onglet Comptes (connecteur assisté) ──────────────────────── */
.acc-connect { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.acc-connect h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.acc-meta { margin: 4px 0; }
.acc-meta #accPages { width: 100%; }

/* ── Statut passerelle OpenClaw + aide lancement ──────────────── */
.oc-status { font-size: 12px; font-weight: 600; }
.oc-status.ok { color: var(--green); }
.oc-status.off { color: var(--red); }
.oc-launch { margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.oc-launch code { background: var(--code-bg, var(--panel3)); border: 1px solid var(--border-soft); border-radius: 5px; padding: 1px 6px; font-size: 12px; }

/* ── Inbox multi-canal : filtre par canal ─────────────────────── */
.conv-col { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.conv-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.conv-chip {
  font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--panel); color: var(--muted);
  cursor: pointer; text-transform: capitalize; transition: border-color .15s, color .15s, background .15s;
}
.conv-chip:hover { border-color: var(--accent); color: var(--text); }
.conv-chip.active { background: var(--accent-weak); border-color: rgba(124,141,255,.4); color: var(--accent); }
