/* ============ OKLAC Plataforma — modern SaaS design system ============ */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --ink: #14171f;
  --ink-2: #454b57;
  --muted: #7a828f;
  --line: #e7e9ef;
  --line-2: #d9dce4;
  --accent: #0c5cef;
  --accent-ink: #0846bd;
  --accent-tint: #eaf1fe;
  --sidebar: #171a22;
  --sidebar-2: #1f2530;
  --sidebar-ink: #aab2c2;
  --yellow: #ffcb02;
  --green: #1f9d57; --green-bg: #e6f5ec;
  --amber: #b7791f; --amber-bg: #fbf1de;
  --red: #d0332e; --red-bg: #fbe9e8;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20,23,31,.04), 0 4px 16px rgba(20,23,31,.04);
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
button { cursor: pointer; font: inherit; }
a { color: var(--accent); text-decoration: none; }
.muted { color: var(--muted); }
.error { color: var(--red); min-height: 1.2em; font-size: 13px; }
.boot { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }

/* ---------- login (OKLAC split-screen) ---------- */
.login { position: fixed; inset: 0; background: #1b2436 url("assets/background_login.png") no-repeat center center; background-size: cover; z-index: 200; }
.login::before { content: ""; background: url("assets/client.png") no-repeat center center; background-size: contain; position: absolute; width: 18%; height: 13%; top: 3%; right: 2%; z-index: 4; }
.login::after { content: ""; background: url("assets/fifty.png") no-repeat center center; background-size: contain; position: absolute; width: 22%; height: 44%; top: calc(50% - 22%); left: 12%; z-index: 3; }
.login-form { width: 38%; max-width: 470px; position: absolute; top: calc(50% - 210px); right: 10%; z-index: 5; background: url("assets/background_form.svg") no-repeat center center; background-size: 100% 100%; }
.login-form form { padding: 13% 14%; display: flex; flex-direction: column; gap: 7px; }
.login-badge { font-weight: 800; letter-spacing: .06em; font-size: 30px; color: #fff; margin-bottom: 12px; }
.login-form label { color: #fff; font-size: 13px; }
.login-form input { padding: 9px 12px; border-radius: 6px; border: 0; font-size: 14px; background: #fff; color: var(--ink); }
.login-gap { height: 4px; }
.login-acessar { margin-top: 14px; padding: 11px; border: 0; border-radius: 6px; background: #f1ba3f; color: #000; font-weight: 700; font-size: 15px; }
.login-acessar:hover { filter: brightness(1.06); }
.login .error { color: #ffd7d3; margin-top: 6px; }
.login-divisor label { position: absolute; bottom: 3%; right: 2.5%; color: #817f7f; font-size: 12px; z-index: 4; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar { background: var(--sidebar); color: var(--sidebar-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sb-brand { padding: 20px 20px 14px; }
.sb-brand img { height: 30px; width: auto; display: block; }
.sidenav { flex: 1; overflow-y: auto; padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; }
.sidenav .sb-group { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #5f6875; padding: 14px 12px 6px; }
.sidenav button { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: transparent; border: 0; color: var(--sidebar-ink); font-size: 14px; font-weight: 500; padding: 9px 12px; border-radius: 8px; position: relative; }
.sidenav button .ic { font-size: 16px; width: 20px; text-align: center; }
.sidenav button:hover { background: var(--sidebar-2); color: #fff; }
.sidenav button.active { background: var(--sidebar-2); color: #fff; }
.sidenav button.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--accent); }
.sb-foot { padding: 14px 16px; border-top: 1px solid #262b36; display: flex; flex-direction: column; gap: 8px; }
.sb-empresa { font-size: 12px; color: #6b7482; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-empresa b { color: #cfd4dd; font-weight: 600; }
.sb-logout { background: transparent; border: 1px solid #3a4150; color: #cfd4dd; padding: 7px; border-radius: 7px; font-size: 13px; }
.sb-logout:hover { background: var(--sidebar-2); }

.main { display: flex; flex-direction: column; min-width: 0; }
.appbar { height: 60px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 26px; position: sticky; top: 0; z-index: 30; }
.page-title { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.appbar-right { display: flex; align-items: center; gap: 16px; }
.clock { color: var(--muted); font-size: 12px; line-height: 1.15; text-align: right; font-variant-numeric: tabular-nums; }
.genial-launch { background: var(--accent-tint); color: var(--accent-ink); border: 1px solid #cfe0fd; padding: 7px 13px; border-radius: 8px; font-weight: 600; font-size: 13px; }
.genial-launch:hover { background: #dfeafe; }

/* O conteúdo usa toda a largura disponível — antes travava em 1180px e sobrava
   um vão morto à direita em telas largas (feedback Glaysom "Espaçamento"). */
.content { padding: 24px 26px 60px; max-width: 1720px; width: 100%; }
.view { display: flex; flex-direction: column; gap: 18px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-h { padding: 15px 18px; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--line); }
.card-h.row-between, .row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-b { padding: 18px; }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.dash-chart .card-b { min-height: 220px; }

/* ---------- KPI tiles ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi .k-label { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.kpi .k-value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .k-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi .k-icon { float: right; font-size: 22px; opacity: .9; }

/* ---------- buttons ---------- */
.btn-primary, .primary { background: var(--accent); color: #fff; border: 0; padding: 9px 15px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.btn-primary:hover, .primary:hover { background: var(--accent-ink); }
.btn-primary.sm { padding: 7px 12px; font-size: 13px; }
.btn-ghost, .btn { background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); padding: 7px 13px; border-radius: 8px; font-size: 13px; }
.btn:hover, .btn-ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--red); border-color: #eecfcd; }
.inp, .field input, .field select, .inline-form input, .genial-inputbar input { padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 14px; color: var(--ink); background: var(--surface); }
.inp:focus, input:focus, select:focus { outline: none; border-color: var(--accent); }

/* ---------- sub-nav (inside a module) ---------- */
.subnav { display: flex; gap: 4px; }
.subnav button { background: transparent; border: 1px solid transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 8px; }
.subnav button:hover { background: var(--surface-2); }
.subnav button.active { background: var(--accent-tint); color: var(--accent-ink); }

/* ---------- lists / rows ---------- */
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.card-b .row:first-child { padding-top: 0; }
.row:last-child { border-bottom: 0; padding-bottom: 0; }
.row .name { font-weight: 600; }
.row .meta { color: var(--muted); font-size: 13px; }
.row .actions { display: flex; gap: 8px; }
.pill { font-size: 12px; padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.pill.on { background: var(--green-bg); color: var(--green); }
.pill.off { background: var(--red-bg); color: var(--red); }
.pill.idle { background: var(--surface-2); color: var(--muted); }
.status-pill { font-size: 12px; padding: 3px 9px; border-radius: 999px; font-weight: 600; text-transform: capitalize; }
.st-draft{background:var(--surface-2);color:var(--muted)}.st-pending_review{background:var(--amber-bg);color:var(--amber)}.st-running{background:var(--green-bg);color:var(--green)}.st-rejected{background:var(--red-bg);color:var(--red)}.st-ended{background:var(--surface-2);color:var(--muted)}.st-paused{background:var(--accent-tint);color:var(--accent-ink)}

/* ---------- module cards (dashboard/marketplace) ---------- */
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 14px; }
.mod-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 9px; background: var(--surface); }
.mod-card .mc-icon { font-size: 26px; }
.mod-card h3 { margin: 0; font-size: 16px; font-weight: 700; }
.mod-card .mc-blurb { color: var(--muted); font-size: 13px; flex: 1; line-height: 1.45; }
.mod-card .mc-tiers { display: flex; flex-direction: column; gap: 6px; }
.mod-card .mc-tier { display: flex; justify-content: space-between; align-items: center; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.mod-card .mc-price { font-weight: 700; color: var(--accent); }
.mod-card .mc-foot { display: flex; gap: 8px; }
.mod-card.subscribed { border-color: #bfe3cd; }
.badge-soon { font-size: 11px; background: var(--surface-2); color: var(--muted); padding: 2px 8px; border-radius: 999px; }
.badge-active { font-size: 11px; background: var(--green-bg); color: var(--green); padding: 2px 8px; border-radius: 999px; font-weight: 600; }

/* ---------- forms / detail ---------- */
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.section { padding: 16px 18px; border-top: 1px solid var(--line); }
.section:first-child { border-top: 0; }
.section h3 { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--accent); text-transform: none; letter-spacing: 0; }
.detail-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.detail-head h2 { margin: 0; font-size: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 10px; }
.slide-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px; }
.slide-item .s-meta { color: var(--muted); font-size: 13px; }
.tipo-badge { font-family: ui-monospace, monospace; font-size: 11px; background: var(--accent-tint); color: var(--accent-ink); padding: 2px 8px; border-radius: 6px; margin-right: 8px; }
.advisor { background: var(--accent-tint); border: 1px solid #d5e0fb; border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.advisor .miss { color: var(--amber); margin-top: 4px; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 12px; margin-top: 14px; }
.preview-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; }
.preview-card iframe { width: 100%; height: 124px; border: 0; display: block; pointer-events: none; }
.preview-card .pc-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; background: var(--surface); }
.preview-card .pc-foot label { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.cap-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.cap-row .cap-mod { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); background: var(--surface-2); padding: 2px 7px; border-radius: 6px; }
.cap-row .cap-sens { font-size: 11px; color: var(--amber); }

/* ---------- Estúdio (creative studio) ---------- */
.studio-hero { background: linear-gradient(120deg, var(--accent) 0%, #0846bd 100%); color: #fff; border-radius: var(--radius); padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; box-shadow: var(--shadow); }
.studio-hero h2 { margin: 0 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.studio-hero p { margin: 0; font-size: 14px; line-height: 1.5; color: #dbe6ff; max-width: 560px; }
.studio-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-shrink: 0; }
.studio-steps li { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border-radius: 999px; padding: 7px 14px 7px 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.studio-steps li span { width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; font-size: 12px; font-weight: 800; }

.studio-workspace { display: grid; grid-template-columns: 1fr 440px; gap: 18px; align-items: start; }
.studio-form { display: flex; flex-direction: column; gap: 18px; }
.studio-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.studio-fields .field { gap: 6px; }
.studio-fields .field.wide { grid-column: 1 / -1; }
.studio-fields label { font-size: 12px; color: var(--muted); font-weight: 600; }
.studio-fields input, .studio-fields select { padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 14px; background: var(--surface); color: var(--ink); }
.logo-row { display: flex; align-items: center; gap: 10px; }
.logo-thumb { display: inline-flex; align-items: center; }
.logo-thumb img { height: 34px; max-width: 90px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; padding: 3px; background: #fff; }
.color-in { display: flex; align-items: center; gap: 8px; }
.color-in input[type=color] { width: 42px; height: 34px; padding: 2px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); cursor: pointer; }
.color-in span { font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); }
.kit-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.kit-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--ink-2); }
.kit-chip:hover { background: var(--accent-tint); color: var(--accent-ink); }
.kit-chip .sw { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }

.studio-preview { position: sticky; top: 78px; }
.preview-stage { width: 100%; border-radius: 10px; overflow: hidden; background: #0b0d12; border: 1px solid var(--line); margin: 0 auto; }
.preview-stage.land { aspect-ratio: 16 / 9; }
.preview-stage.port { aspect-ratio: 9 / 16; max-width: 260px; }
.preview-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 8px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; font-size: 12px; font-weight: 600; color: var(--muted); padding: 5px 12px; border-radius: 6px; }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.fmt-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.fmt-seg button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; padding: 7px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink-2); }
.fmt-seg button b { font-size: 13px; }
.fmt-seg button span { font-size: 10.5px; color: var(--muted); }
.fmt-seg button.active { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-ink); }
.fmt-seg button.active span { color: var(--accent-ink); }
.dest-tabs { display: flex; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.dest-tab { background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 6px; margin-bottom: -1px; }
.dest-tab.active { color: var(--accent-ink); border-bottom-color: var(--accent); }
.dest-tab.locked { opacity: .7; }
.dest-tab.locked::after { content: " 🔒"; font-size: 11px; }
.layout-cyc { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.fmt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.fmt-row label { font-size: 12px; color: var(--muted); font-weight: 600; }
.fmt-row input[type=range] { width: 100%; accent-color: var(--accent); }
.studio-gen { width: 100%; margin-top: 16px; padding: 12px; font-size: 15px; }
.studio-advisor { margin-top: 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.advisor-head { display: flex; align-items: center; gap: 12px; }
.advisor-head b { font-size: 14px; }
.score-ring { --v: 0; width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--v) * 1%), var(--line-2) 0); }
.score-ring span { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.advisor-tips { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }
.advisor-tips li { font-size: 12.5px; color: var(--amber); }
.advisor-ok { margin-top: 8px; font-size: 13px; color: var(--green); }

.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 14px; }
.result-card { display: block; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--surface); transition: border-color .12s; }
.result-card:has(.cr-pick:checked) { border-color: var(--accent); }
.rc-frame { background: #0b0d12; overflow: hidden; }
.rc-frame.land { aspect-ratio: 16 / 9; }
.rc-frame.port { aspect-ratio: 9 / 16; }
.rc-frame iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.rc-foot { display: flex; align-items: center; gap: 8px; padding: 9px 11px; font-size: 13px; font-weight: 600; }
.rc-foot .cr-pick { accent-color: var(--accent); width: 15px; height: 15px; }
.rc-foot .rc-h { font-weight: 400; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }

@media (max-width: 980px) { .studio-workspace { grid-template-columns: 1fr; } .studio-preview { position: static; } }

/* ---------- Divulgador (distribution cockpit) ---------- */
.div-hero { background: linear-gradient(120deg, #7b2ff7 0%, var(--accent) 100%); color: #fff; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.div-hero h2 { margin: 0 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.div-hero p { margin: 0; font-size: 14px; line-height: 1.5; color: #e7e0ff; max-width: 680px; }
.cmp-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 16px 0 8px; }
.card-b > .cmp-label:first-child { margin-top: 0; }
.chan-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chan-pick { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.chan-pick.on { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-ink); }
.chan-pick .cp-off, .post-chan .cp-off { font-size: 10px; color: var(--amber); font-weight: 600; margin-left: 2px; }
textarea.inp { width: 100%; resize: vertical; font-family: inherit; }
.creative-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 10px; }
.cp-item { display: block; border: 2px solid var(--line); border-radius: 9px; overflow: hidden; cursor: pointer; background: var(--surface); }
.cp-item.on { border-color: var(--accent); }
.cp-frame { aspect-ratio: 16 / 9; background: #0b0d12; overflow: hidden; }
.cp-frame iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.cp-item span { display: block; padding: 6px 8px; font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chan-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.chip.on { background: var(--accent-tint); color: var(--accent-ink); border-color: var(--accent); }
.queue-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.queue-col { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.qc-head { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.qc-count { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; padding: 1px 8px; color: var(--muted); }
.qc-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 14px 0; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin-bottom: 10px; box-shadow: var(--shadow); }
.post-frame { aspect-ratio: 16 / 9; background: #0b0d12; overflow: hidden; }
.post-frame iframe, .post-frame img { width: 100%; height: 100%; border: 0; object-fit: cover; display: block; pointer-events: none; }
.post-media { padding: 20px; text-align: center; color: var(--muted); background: var(--surface-2); }
.post-text { padding: 14px; font-size: 14px; color: var(--ink); background: var(--surface-2); }
.post-body { padding: 11px 12px; display: flex; flex-direction: column; gap: 6px; }
.post-chan { font-size: 13px; font-weight: 700; }
.post-cap { font-size: 13px; color: var(--ink-2); }
.post-when { font-size: 12px; color: var(--amber); font-weight: 600; }
.post-proof { font-size: 12px; font-weight: 600; }
.post-actions { display: flex; gap: 8px; margin-top: 4px; }
.btn-ghost.sm, .btn-primary.sm { padding: 6px 11px; font-size: 12px; }
@media (max-width: 820px) { .queue-cols { grid-template-columns: 1fr; } }

/* ---------- Publicador (screens + campaigns) ---------- */
.screen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 14px; }
.screen-card { border: 1px solid var(--line); border-radius: 10px; padding: 15px; display: flex; flex-direction: column; gap: 7px; background: var(--surface); }
.sc-top { display: flex; align-items: center; justify-content: space-between; }
.sc-icon { font-size: 24px; }
.screen-card h3 { margin: 0; font-size: 16px; font-weight: 700; }
.sc-meta { font-size: 13px; color: var(--muted); }
.sc-stat { font-size: 12px; color: var(--muted); }
.sc-foot { display: flex; gap: 8px; margin-top: 6px; }

.detail-bar { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); }
.db-title { display: flex; align-items: center; gap: 10px; flex: 1; }
.db-title h2 { margin: 0; font-size: 18px; }
.db-plan { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.db-actions { display: flex; gap: 8px; }
.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; margin-top: 18px; }
.detail-side { display: flex; flex-direction: column; gap: 18px; }
.inline-add { display: flex; gap: 8px; }
.inline-add input { padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 7px; font-size: 13px; }

.playlist-block { border: 1px solid var(--line); border-radius: 9px; margin-bottom: 12px; overflow: hidden; }
.pl-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--surface-2); }
.slides-host { padding: 0 12px; }
.slide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 10px; padding: 12px 0; }
.slide-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.slide-card.muted-slide { opacity: .55; }
.sl-frame { aspect-ratio: 16 / 9; background: #0b0d12; display: grid; place-items: center; overflow: hidden; }
.sl-frame img { width: 100%; height: 100%; object-fit: cover; }
.sl-frame.sl-ic { font-size: 30px; }
.slide-info { padding: 8px 9px 4px; }
.slide-info .tipo-badge { display: inline-block; margin-bottom: 4px; }
.sl-name { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-dur { font-size: 11px; color: var(--muted); }
.slide-actions { display: flex; gap: 4px; padding: 6px 8px 8px; }
.slide-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 12px 0 14px; border-top: 1px dashed var(--line); }
.slide-add .field { gap: 4px; font-size: 12px; color: var(--muted); }

.sched-form { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.sched-row { display: flex; gap: 8px; }
.sched-row .field { flex: 1; gap: 4px; font-size: 12px; color: var(--muted); }
.sched-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.sched-item:last-of-type { border-bottom: 0; }
.sched-item .muted { font-size: 12px; }
.planb-on { background: var(--green-bg); border: 1px solid #bfe3cd; border-radius: 9px; padding: 12px 14px; font-size: 13px; color: #17603a; }

.camp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 14px; }
.camp-card { border: 1px solid var(--line); border-radius: 10px; padding: 15px; display: flex; flex-direction: column; gap: 9px; background: var(--surface); }
.cc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cc-head b { font-size: 15px; }
.cc-price { font-size: 14px; font-weight: 700; }
.cc-bar { height: 7px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.cc-fill { height: 100%; background: var(--accent); border-radius: 999px; }
.cc-budget { display: flex; justify-content: space-between; font-size: 12px; }
.report-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 14px 0; }
.rg-cell { background: var(--surface-2); border-radius: 9px; padding: 14px; text-align: center; }
.rg-v { font-size: 22px; font-weight: 800; }
.rg-l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }

/* ---------- Recepção (AI receptionist) ---------- */
.rec-hero { background: linear-gradient(120deg, #0f9d8f 0%, #1466c9 100%); color: #fff; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.rec-hero h2 { margin: 0 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.rec-hero p { margin: 0; font-size: 14px; line-height: 1.5; color: #dcf3f0; max-width: 680px; }
.tab-badge { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; align-items: center; justify-content: center; background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; margin-left: 4px; }
.rec-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.rec-simcard { display: flex; flex-direction: column; height: calc(100vh - 320px); min-height: 380px; }
.rec-chat { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.conf-tag { display: inline-block; background: var(--green-bg); color: var(--green); font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-left: 6px; white-space: nowrap; }
.lead-note { margin-top: 8px; font-size: 12px; color: var(--amber); }
.faq-add { display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.faq-add .field { gap: 5px; font-size: 12px; color: var(--muted); }
.faq-add textarea.inp { resize: vertical; }
.faq-list { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; }
.faq-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; }
.faq-item.faq-off { opacity: .55; }
.faq-q { font-weight: 700; font-size: 14px; }
.faq-a { font-size: 13px; color: var(--muted); margin-top: 3px; }
.faq-actions { display: flex; gap: 4px; flex-shrink: 0; }
@media (max-width: 900px) { .rec-shell { grid-template-columns: 1fr; } .rec-simcard { height: auto; min-height: 320px; } }

/* ---------- Qualidade (generic quality monitoring) ---------- */
.qual-hero { background: linear-gradient(120deg, #1f9d57 0%, #b7791f 55%, #d0332e 100%); color: #fff; border-radius: var(--radius); padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; box-shadow: var(--shadow); }
.qual-hero h2 { margin: 0 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.qual-hero p { margin: 0; font-size: 14px; line-height: 1.5; color: #fdf3e7; max-width: 620px; }
.btn-hero { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #fff; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 9px; white-space: nowrap; flex-shrink: 0; }
.btn-hero:hover { background: rgba(255,255,255,.26); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 14px; }
.tpl-card { border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.tpl-icon { font-size: 30px; }
.tpl-card h3 { margin: 0; font-size: 16px; font-weight: 700; }
.tpl-desc { font-size: 13px; color: var(--muted); flex: 1; line-height: 1.45; }
.tpl-meta { font-size: 12px; color: var(--muted); }
.tpl-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.tpl-row { display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 11px 13px; }
.tpl-row:hover { border-color: var(--accent); background: var(--accent-tint); }
.tpl-row small { display: block; color: var(--muted); font-size: 12px; }
.sem-card { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.sem-top { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sem-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sem-area { font-size: 12px; color: var(--muted); margin: 2px 0 0 18px; }
.sem-val { font-size: 26px; font-weight: 800; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.sem-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.area-block { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.area-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; background: var(--surface-2); font-size: 14px; }
.ind-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); }
.ind-info { flex: 1; min-width: 0; }
.ind-info b { font-size: 14px; }
.ind-info .muted { font-size: 12px; }
.ind-val { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 60px; text-align: right; }
.qi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 14px; }
.chk-card { border: 1px solid var(--line); border-radius: 10px; padding: 15px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.chk-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chk-head b { font-size: 15px; }
.chk-last { font-size: 13px; color: var(--ink-2); }
.chk-foot { display: flex; gap: 8px; }
.chk-inline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.run-list { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; max-height: 42vh; overflow-y: auto; }
.run-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; cursor: pointer; }
.run-item input { width: 17px; height: 17px; accent-color: var(--green); }

/* ---------- Analytics (cross-module cockpit) ---------- */
.an-hero { background: linear-gradient(120deg, #16324a 0%, var(--accent) 100%); color: #fff; border-radius: var(--radius); padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; box-shadow: var(--shadow); }
.an-hero h2 { margin: 0 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.an-hero p { margin: 0; font-size: 14px; line-height: 1.5; color: #d6e4f5; max-width: 640px; }
.an-hero .seg { background: rgba(255,255,255,.14); }
.an-hero .seg button { color: #cfe0fd; }
/* O fundo do hero é azul fixo nos dois temas, e este fundo é #fff literal.
   Com var(--accent-ink) o tema escuro trocava a tinta por azul-claro: azul
   claro sobre branco, 1,7:1 — o período SELECIONADO virava o menos legível
   dos três. Fundo literal pede tinta literal. */
.an-hero .seg button.active { background: #fff; color: #0a48c4; }
.trend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 16px; }
.trend-card .card-h { font-size: 14px; }
.tr-total { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tr-total small { font-size: 11px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.trend-body { position: relative; padding: 10px 12px 12px; }
.trend-svg { width: 100%; height: 120px; display: block; overflow: visible; }
.tr-cross line { stroke-dasharray: 3 3; }
.tr-tip { position: absolute; top: 4px; transform: translateX(-50%); background: var(--sidebar); color: #fff; padding: 4px 9px; border-radius: 7px; font-size: 12px; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow); }
.tr-tip b { font-variant-numeric: tabular-nums; } .tr-tip span { color: #aab2c2; margin-left: 6px; }
.qual-bar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.qual-bar div { height: 100%; }
.qual-legend { display: flex; gap: 18px; margin-top: 12px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.qual-legend span { display: inline-flex; align-items: center; gap: 6px; }
.qual-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* ---------- Genial chat ---------- */
.genial-shell { display: grid; grid-template-columns: 1fr 260px; gap: 18px; align-items: start; }
.genial-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; height: calc(100vh - 150px); }
.genial-chat { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.g-msg { max-width: 78%; padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.g-user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.g-bot { align-self: flex-start; background: var(--surface-2); color: var(--ink); border-bottom-left-radius: 4px; }
.g-bot.think { color: var(--muted); font-style: italic; }
.g-toolcard { align-self: flex-start; max-width: 78%; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.g-toolcard .tc-h { background: var(--surface-2); padding: 7px 12px; font-size: 12px; color: var(--muted); font-weight: 600; }
.g-toolcard pre { margin: 0; padding: 12px; font-family: ui-monospace, monospace; font-size: 12px; overflow-x: auto; white-space: pre-wrap; }
.genial-suggest { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 20px 12px; }
.genial-suggest .sug { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.genial-suggest .sug:hover { background: var(--accent-tint); color: var(--accent-ink); }
.genial-inputbar { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.genial-inputbar input { flex: 1; }
.genial-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.gs-title { font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.gs-summary { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- Configurações ---------- */
.set-hero { background: linear-gradient(120deg, #2a2f3a 0%, #4a5568 100%); color: #fff; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.set-hero h2 { margin: 0 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.set-hero p { margin: 0; font-size: 14px; color: #d6dae2; max-width: 640px; }
.conn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; font-size: 14px; }
.conn-row code { font-family: ui-monospace, monospace; font-size: 13px; }
.plan-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-row b { font-size: 16px; }

/* ---------- Genial dock (floating, over the whole platform) ---------- */
.genial-fab { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--accent), #7b2ff7); color: #fff; font-size: 26px; box-shadow: 0 8px 24px rgba(12,92,239,.4); z-index: 90; display: grid; place-items: center; transition: transform .12s; }
.genial-fab:hover { transform: scale(1.06); }
.genial-dock { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--surface); border-left: 1px solid var(--line); box-shadow: -12px 0 40px rgba(20,23,31,.14); z-index: 95; display: flex; flex-direction: column; }
.gd-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.gd-brand { font-weight: 800; font-size: 15px; }
.gd-modelwrap { position: relative; margin-left: auto; }
.gd-modelbtn { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.gd-modelbtn:hover { background: var(--accent-tint); color: var(--accent-ink); }
.gd-modelmenu { position: absolute; right: 0; top: 110%; width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; z-index: 5; display: flex; flex-direction: column; gap: 2px; }
.gd-modelopt { text-align: left; background: transparent; border: 0; border-radius: 8px; padding: 8px 10px; }
.gd-modelopt:hover { background: var(--surface-2); }
.gd-modelopt.on { background: var(--accent-tint); }
.gd-modelopt b { font-size: 13px; } .gd-modelopt small { display: block; color: var(--muted); font-size: 11.5px; }
.gd-badge { font-size: 10px; background: var(--green-bg); color: var(--green); padding: 1px 6px; border-radius: 999px; font-weight: 700; }
.gd-lock { font-size: 10px; color: var(--amber); font-weight: 700; }
.gd-close { background: transparent; border: 0; font-size: 16px; color: var(--muted); width: 30px; height: 30px; border-radius: 7px; }
.gd-close:hover { background: var(--surface-2); color: var(--ink); }
.gd-usage { padding: 7px 14px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.gd-usage a { font-weight: 600; } .gd-warn { color: var(--amber); font-weight: 600; }
.gd-chat { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 11px; }
.gd-chat .g-msg { max-width: 88%; }
.gd-msgatts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gd-msgatts img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.gd-suggest { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 8px; }
.gd-suggest .sug { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; padding: 6px 11px; border-radius: 999px; }
.gd-suggest .sug:hover { background: var(--accent-tint); color: var(--accent-ink); }
.gd-atts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px; }
.gd-atts:not(:empty) { padding-bottom: 8px; }
.gd-attchip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: 12px; }
.gd-attx { color: var(--muted); font-weight: 700; }
.gd-inputbar { display: flex; align-items: flex-end; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
.gd-iconbtn { background: transparent; border: 0; font-size: 18px; width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; }
.gd-iconbtn:hover { background: var(--surface-2); }
.gd-iconbtn.on { background: var(--accent-tint); }
#gd-input { flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14px; max-height: 120px; line-height: 1.4; }
#gd-input:focus { outline: none; border-color: var(--accent); }
.gd-send { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--accent); color: #fff; font-size: 16px; }
.gd-send:hover { background: var(--accent-ink); }
.gd-tools { display: flex; flex-wrap: wrap; gap: 5px; }
.gd-toolchip { font-size: 11px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); padding: 2px 8px; border-radius: 999px; }
.gd-genimg img { width: 100%; max-width: 320px; border-radius: 10px; display: block; }
.gd-vedit { font-size: 12px; font-weight: 600; background: var(--accent-tint); color: var(--accent-ink); border: 1px solid #cfe0fd; border-radius: 8px; padding: 5px 11px; }
.gd-vedit:hover { background: #dfeafe; }
.gd-genvid video { width: 100%; max-width: 320px; border-radius: 10px; display: block; background: #000; }
.gd-vidfoot { font-size: 12px; color: var(--muted); margin-top: 6px; }
@media (max-width: 560px) { .genial-dock { width: 100vw; } }

/* ---------- modal + toast ---------- */
.modal-host { position: fixed; inset: 0; background: rgba(20,23,31,.45); display: flex; align-items: center; justify-content: center; z-index: 100; }
/* Pop-ups mais largos p/ caber o conteúdo (feedback Glaysom "aumentar o pop up").
   min() mantém responsivo; formulários de 2 colunas param de espremer. */
.modal { background: #fff; border-radius: 12px; padding: 24px 26px; width: min(560px, calc(100vw - 40px)); max-height: 90dvh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal h3 { margin: 0 0 14px; }
.modal .code { font-family: ui-monospace, monospace; font-size: 40px; letter-spacing: .2em; text-align: center; color: var(--accent); background: var(--accent-tint); border-radius: 12px; padding: 18px; margin: 10px 0; }
.modal .muted { font-size: 13px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
#toastHost { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--sidebar); color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 14px; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,.25); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: none; }
.toast-ok { background: #1c7a44; } .toast-err { background: #b1302b; } .toast-warn { background: #8a6414; }

/* ---------- simple bar chart (dashboard) ---------- */
.barchart { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 10px; }
.barchart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.barchart .bar .fill { width: 100%; max-width: 44px; background: var(--accent); border-radius: 4px 4px 2px 2px; min-height: 3px; }
.barchart .bar .bl { font-size: 11px; color: var(--muted); }
.barchart .bar .bv { font-size: 12px; font-weight: 700; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.empty .ico { font-size: 34px; margin-bottom: 8px; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .dash-grid, .genial-shell { grid-template-columns: 1fr; }
}

/* Divulgador — aggregator connect hero */
.connect-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; margin-bottom: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: var(--radius); }
.connect-hero .ch-hero-txt h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.connect-hero .ch-hero-txt p { margin: 0; font-size: 13px; max-width: 640px; }
.connect-hero .btn-primary { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 640px) { .connect-hero { flex-direction: column; align-items: stretch; } }
