/* VIP Hub | painel de grupos e disparos de WhatsApp */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700&family=Public+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #edf1f3;
  --surface: #ffffff;
  --surface-2: #f6f8f9;
  --ink: #0f2230;
  --ink-2: #33495a;
  --muted: #667a89;
  --line: #dbe3e8;
  --line-strong: #c4d0d8;
  --accent: #0b7a75;
  --accent-hover: #09655f;
  --accent-ink: #ffffff;
  --accent-soft: #dcf1ee;
  --reserve: #2f6fb3;
  --reserve-soft: #e3eefa;
  --full: #0f2230;
  --danger: #c4361d;
  --danger-soft: #fbe9e5;
  --warn: #9a5b00;
  --warn-soft: #fff0d3;
  --ok: #0b7a4a;
  --ok-soft: #dcf3e6;
  --side: #0f2230;
  --side-2: #17313f;
  --side-ink: #b4c6d2;
  --chat-bg: #e9e3d8;
  --bubble: #dcf8c6;
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Public Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(15, 34, 48, .06), 0 10px 28px -12px rgba(15, 34, 48, .18);
  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #0a151d;
  --surface: #112330;
  --surface-2: #0e1d28;
  --ink: #e8f0f5;
  --ink-2: #bccbd6;
  --muted: #8399a8;
  --line: #213645;
  --line-strong: #2d4757;
  --accent: #2bb3aa;
  --accent-hover: #4ccbc2;
  --accent-ink: #04201e;
  --accent-soft: #0f3a38;
  --reserve: #6aa6e6;
  --reserve-soft: #13304c;
  --full: #8fb3c9;
  --danger: #ff8a73;
  --danger-soft: #3a1c16;
  --warn: #ffbf5c;
  --warn-soft: #3a2a0c;
  --ok: #5fd39c;
  --ok-soft: #0f3524;
  --side: #07111a;
  --side-2: #0f2230;
  --chat-bg: #0b141a;
  --bubble: #005c4b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.lead { color: var(--ink-2); margin: 4px 0 18px; max-width: 62ch; }
.ico { width: 18px; height: 18px; flex: none; }
small { color: var(--muted); font-size: 12.5px; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  background: var(--side); color: var(--side-ink);
  display: flex; flex-direction: column; padding: 20px 14px; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px 11px 11px 3px;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font: 700 17px var(--font-display);
}
.brand-name { font: 600 19px var(--font-display); color: #fff; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 10px; color: var(--side-ink); text-decoration: none; font-weight: 500;
}
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a.on { background: #fff; color: var(--side); }
[data-theme='dark'] .nav a.on { background: var(--side-2); color: #fff; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 4px; }
.mode-badge {
  font-size: 12.5px; padding: 8px 10px; border-radius: 10px; background: var(--side-2);
  display: flex; align-items: center; gap: 8px;
}
.mode-badge i { width: 8px; height: 8px; border-radius: 50%; background: #e8a317; }
.mode-badge.live i { background: #3ddc97; }
.side-btn {
  display: flex; align-items: center; gap: 10px; background: transparent; border: 0;
  color: var(--side-ink); padding: 8px 8px; border-radius: 8px; text-align: left;
}
.side-btn:hover { background: var(--side-2); color: #fff; }

.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px; padding: 16px 32px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 26px; flex: 1; min-width: 0; }
#page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.menu-btn { display: none; }
#view { padding: 28px 32px 64px; max-width: 1180px; }

/* ---------- buttons and controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--surface-2); border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 6px 11px; font-size: 13.5px; border-radius: 8px; }
.btn:disabled, .btn.busy { opacity: .55; pointer-events: none; }
.btn.busy::after {
  content: ''; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid transparent; background: transparent; color: var(--muted);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > span { font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
input[type='text'], input[type='number'], input[type='url'], input[type='datetime-local'], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font: inherit;
}
textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
input:disabled, select:disabled { background: var(--surface-2); color: var(--muted); }
input::placeholder, textarea::placeholder { color: #8da0ad; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.switch-row:first-child { border-top: 0; }
.switch-row b { display: block; font-weight: 600; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch .slider { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background .15s; }
.switch .slider::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::after { transform: translateX(18px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--accent); outline-offset: 2px; }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font-weight: 600; color: var(--ink-2); }
.seg button small { margin-left: 4px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 34, 48, .15); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.off { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.info { background: var(--reserve-soft); color: var(--reserve); }
.pill.bad { background: var(--danger-soft); color: var(--danger); }
.pill.dark { background: var(--full); color: var(--surface); }

/* ---------- panels, lists ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; margin-bottom: 18px;
}
.panel > h4, .panel > h3 { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.panel h4 small { font-weight: 400; }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.list-row {
  display: grid; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
.list-row:first-child { border-top: 0; }
a.list-row:hover, .list-row.hover:hover { background: var(--surface-2); }
.list-head {
  display: grid; gap: 16px; padding: 10px 20px; background: var(--surface-2);
  font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line);
}
.row-accounts { grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 1fr) 150px auto; }
.row-actions { grid-template-columns: 38px minmax(0, 1.6fr) minmax(0, 1fr) 120px 150px 90px; }
.row-campaigns { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 130px; }
.row-groups { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) 120px 110px auto; }

.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font: 600 18px var(--font-display); color: #fff;
  background: hsl(var(--h, 190) 45% 36%);
}
.cell-main b { display: block; font-weight: 600; }
.cell-main span { color: var(--muted); font-size: 13.5px; }
.type-ico {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.row-end { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 6px; }
.progress i { display: block; height: 100%; background: var(--accent); transition: width .4s; }

.tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button {
  border: 1px solid var(--line); background: var(--surface); padding: 6px 14px; border-radius: 999px;
  font-weight: 600; font-size: 13.5px; color: var(--ink-2);
}
.tabs button.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }

.empty {
  text-align: center; padding: 56px 24px; background: var(--surface); border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}
.empty .ico { width: 34px; height: 34px; color: var(--accent); margin-bottom: 10px; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 46ch; margin: 0 auto 18px; }

.stats { display: flex; gap: 28px; flex-wrap: wrap; }
.stats div { display: flex; flex-direction: column; }
.stats b { font: 600 24px var(--font-display); }
.stats span { color: var(--muted); font-size: 13px; }

.callout {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--warn-soft); color: var(--warn); margin-bottom: 16px;
}
.callout.info { background: var(--reserve-soft); color: var(--reserve); }
.callout.bad { background: var(--danger-soft); color: var(--danger); }
.callout .btn { margin-left: auto; flex: none; }
.callout p { flex: 1; }
.copy-line {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); min-width: 0;
}
.copy-line code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }

/* ---------- group queue (signature element) ---------- */
.queue { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.qg {
  --c: var(--accent);
  position: relative; min-width: 92px; padding: 7px 10px 8px; border-radius: 10px;
  border: 1.5px solid var(--c); background: var(--surface); display: flex; flex-direction: column; gap: 5px;
}
.qg-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; }
.qg-bar { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--c) 18%, transparent); overflow: hidden; }
.qg-bar i { display: block; height: 100%; background: var(--c); }
.qg.ativo { background: var(--accent-soft); }
.qg.reserva { --c: var(--reserve); border-style: dashed; }
.qg.lotado { --c: var(--full); background: color-mix(in srgb, var(--full) 8%, var(--surface)); }
.qg.ativo::before {
  content: 'recebendo'; position: absolute; top: -9px; left: 8px; font-size: 11px; font-weight: 600;
  background: var(--accent); color: var(--accent-ink); padding: 0 7px; border-radius: 99px;
}
.queue.compact .qg { min-width: 56px; padding: 5px 8px 6px; }
.queue.compact .qg-top span:last-child { display: none; }
.queue.compact .qg.ativo::before { display: none; }
.queue-wrap { padding-top: 10px; }

/* ---------- modal and toast ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(8, 20, 29, .55);
  display: grid; place-items: center; padding: 20px; overflow-y: auto;
}
.modal {
  background: var(--surface); border-radius: var(--r-lg); width: min(560px, 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35); display: flex; flex-direction: column; max-height: calc(100vh - 40px);
}
.modal.sm { width: min(420px, 100%); }
.modal.lg { width: min(780px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 8px; }
.modal-head h3 { font-size: 20px; }
.modal-body { padding: 8px 22px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
#toast-root { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--ink); color: var(--surface); padding: 11px 16px; border-radius: 10px; max-width: 360px;
  box-shadow: var(--shadow); animation: toast-in .2s ease-out; font-weight: 500;
}
.toast.success { background: var(--ok); color: #fff; }
.toast.error { background: var(--danger); color: #fff; }
.toast.hide { opacity: 0; transition: opacity .3s; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

/* ---------- QR ---------- */
.qr-wrap { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.qr-box {
  width: 248px; height: 248px; padding: 12px; background: #fff; border-radius: 16px;
  border: 1px solid var(--line); display: grid; place-items: center;
}
.qr-box img, .qr-box canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.qr-steps { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 8px; }

/* ---------- wizard ---------- */
.wizard { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.stepper { list-style: none; margin: 0; padding: 0; position: sticky; top: 92px; display: grid; gap: 4px; }
.stepper li {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--muted); font-weight: 600;
}
.stepper li > span {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px;
  border: 1.5px solid var(--line-strong); background: var(--surface); flex: none;
}
.stepper li.done { color: var(--ink-2); cursor: pointer; }
.stepper li.done > span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.stepper li.done > span .ico { width: 14px; height: 14px; }
.stepper li.on { color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.stepper li.on > span { border-color: var(--accent); color: var(--accent); }
.wiz-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.wiz-panel > h2 { font-size: 22px; }
.wiz-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.wiz-foot .grp { display: flex; gap: 8px; }
.wiz-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.sticky { position: sticky; top: 92px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.select-card {
  position: relative; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md);
}
.select-card:hover { border-color: var(--line-strong); }
.select-card.on { border-color: var(--accent); background: var(--accent-soft); }
.select-card[disabled] { opacity: .5; cursor: not-allowed; }
.select-card b { font-weight: 600; padding-right: 26px; }
.select-card small { line-height: 1.35; }
.select-card .check {
  position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; color: var(--accent-ink);
}
.select-card.on .check { background: var(--accent); border-color: var(--accent); }
.select-card .check .ico { width: 13px; height: 13px; }
.select-card .t-ico { color: var(--accent); margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-weight: 600; font-size: 13.5px; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.target-panel { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; margin-bottom: 12px; }
.target-panel header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.palette { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.item-card { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; background: var(--surface); }
.item-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r-md) var(--r-md) 0 0; }
.item-head b { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.item-body { padding: 14px; }
.item-body .field:last-child { margin-bottom: 0; }
.file-pick {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-sm); cursor: pointer; color: var(--ink-2); margin-bottom: 14px; position: relative;
}
.file-pick:hover { border-color: var(--accent); background: var(--accent-soft); }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-pick.has { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.opt-row { display: flex; gap: 6px; margin-bottom: 8px; }
.hint.warn { color: var(--warn); }
.hint { display: block; margin-top: 8px; }

.summary { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; margin: 0 0 18px; }
.summary dt { color: var(--muted); font-weight: 500; }
.summary dd { margin: 0; font-weight: 600; }

/* chat preview */
.chat { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--chat-bg); }
.chat-head { background: var(--side-2); color: #fff; padding: 10px 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.chat-head .avatar { width: 28px; height: 28px; font-size: 12px; }
.chat-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; min-height: 160px; }
.bubble {
  align-self: flex-end; max-width: 92%; background: var(--bubble); color: #111b21; padding: 7px 9px 4px;
  border-radius: 10px 10px 2px 10px; box-shadow: 0 1px 1px rgba(0, 0, 0, .13); font-size: 14px; word-wrap: break-word;
}
[data-theme='dark'] .bubble { color: #e9edef; }
.bubble p { margin: 0 0 2px; }
.bubble .ph { opacity: .55; }
.b-time { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 11px; opacity: .6; }
.b-time .ico { width: 11px; height: 11px; }
.b-media { width: 100%; border-radius: 8px; display: block; margin-bottom: 4px; max-height: 190px; object-fit: cover; }
.ph-media { height: 110px; background: rgba(0, 0, 0, .1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; }
.b-audio { display: flex; align-items: center; gap: 8px; min-width: 190px; }
.wave { display: flex; align-items: center; gap: 2px; height: 22px; flex: 1; }
.wave i { width: 3px; background: currentColor; opacity: .5; border-radius: 2px; height: 40%; }
.wave i:nth-child(3n) { height: 85%; }
.wave i:nth-child(4n+1) { height: 60%; }
.b-audio span { font-size: 11px; opacity: .6; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-file { display: flex; align-items: center; gap: 8px; padding: 8px; background: rgba(0, 0, 0, .07); border-radius: 8px; margin-bottom: 3px; }
.b-file small { margin-left: auto; color: inherit; opacity: .6; }
.b-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; border-top: 1px solid rgba(0, 0, 0, .12);
  margin: 6px -9px 2px; padding: 8px; color: #027eb5; font-weight: 600;
}
.b-poll { min-width: 200px; display: grid; gap: 6px; }
.b-poll small { color: inherit; opacity: .6; }
.b-opt { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(0, 0, 0, .1); }
.b-opt i { width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; opacity: .5; }
.b-mention { color: #027eb5; font-weight: 600; margin-right: 6px; }
.changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.changes li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.changes s { color: var(--muted); }
.note-box { padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.preview-title { font-weight: 600; margin-bottom: 10px; color: var(--ink-2); }
.img-prev { width: 100%; border-radius: var(--r-md); max-height: 220px; object-fit: cover; }

.log { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; max-height: 190px; overflow-y: auto; font-size: 13px; display: grid; gap: 3px; }
.log div { color: var(--ink-2); }
.log time { color: var(--muted); margin-right: 8px; }
pre.code { background: var(--side); color: #d3e3ec; padding: 14px; border-radius: var(--r-md); overflow-x: auto; font-size: 12.5px; line-height: 1.5; margin: 8px 0 18px; }
.endpoint { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.endpoint .method { background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.endpoint code { font-size: 14px; font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .wiz-split { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .row-actions { grid-template-columns: 38px minmax(0, 1fr) 110px 80px; }
  .row-actions .col-hide { display: none; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 50; transform: translateX(-102%);
    transition: transform .2s; height: 100%;
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(8, 20, 29, .5); z-index: 45; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 12px 16px; }
  .topbar h1 { font-size: 21px; }
  #view { padding: 18px 16px 56px; }
  .wizard { grid-template-columns: 1fr; }
  .stepper { position: static; grid-auto-flow: column; overflow-x: auto; gap: 2px; }
  .stepper li { padding: 6px 8px; white-space: nowrap; }
  .row-accounts { grid-template-columns: 44px minmax(0, 1fr); }
  .row-accounts > :nth-child(n+3) { grid-column: 2; }
  .row-campaigns { grid-template-columns: 1fr; }
  .row-groups { grid-template-columns: 1fr; }
  .list-head { display: none; }
  .qr-wrap { grid-template-columns: 1fr; justify-items: center; }
  .summary { grid-template-columns: 1fr; gap: 2px; }
  .summary dd { margin-bottom: 10px; }
  .wiz-panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
