[hidden] { display: none !important; }
/* Layout (redesign SnowChat, 2026-10): menu lateral escuro por produto, topo branco com o caminho e o cliente, conteúdo em cartões brancos sobre fundo cinza-azulado bem claro. Fonte Inter. */
:root {
  /* Visual novo (2026-11): fundo neutro, superfícies brancas, um azul só (sem degradê), letra Figtree em pesos leves. */
  --bg: #ffffff;
  --tint: #f1f3f6;
  --tint-2: #e9edf3;
  --line: #e6e8ec;
  --line-2: #d8dce2;
  --ink: #1c2230;
  --ink-2: #3a4252;
  --muted: #6b7383;
  --faint: #9aa1ad;
  --cyan: #1f8fd6;
  --blue: #2f6bea;
  --blue-ink: #1f4fb8;
  --grad: linear-gradient(#2f6bea, #2f6bea);
  --sel: #eaf1fe;
  --ok: #1f8a5b; --ok-soft: #e6f4ec;
  --warn: #9a6200; --warn-soft: #fbf1df;
  --bad: #c42c45; --bad-soft: #fde8ec;
  --info: #1f4fb8; --info-soft: #eaf1fe;
  --wa-bg: #efeae2; --wa-bubble: #d9fdd3; --wa-head: #f0f2f5;
  --display: "Figtree", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --navy: #1c2230;
  --page: #f6f7f9;
  --btn: #2f6bea;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 14px;
  --shadow: 0 1px 2px rgba(28, 34, 48, .04);
  --chat: #1f8fd6; --chat-soft: #e5f3fb;
  --grupos: #6a54d8; --grupos-soft: #efecfb;
  --insta: #d24a86; --insta-soft: #fbeaf2;
  color-scheme: light;
}
* { box-sizing: border-box; }
/* lugar da barra de rolagem sempre reservado: o topo não pula ao trocar de tela ou de módulo */
html { scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--body); }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1rem; font-weight: 600; }
h3 { font-size: .92rem; font-weight: 600; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.mono { font-family: var(--mono); font-size: .86em; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.label { font-size: .8rem; text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 700; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* topo */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 18px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; cursor: pointer; flex: none; }
.wordmark { font-family: var(--display); font-weight: 700; line-height: .9; font-size: .95rem; }
.wordmark span { display: block; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); min-width: 0; flex-wrap: wrap; }
.crumbs button, .crumbs a.crumb { all: unset; cursor: pointer; padding: 4px 8px; border-radius: 8px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.crumbs a.crumb:hover { background: var(--tint); }
.crumbs .cur { font-weight: 600; color: var(--ink); padding: 4px 8px; white-space: nowrap; }
.crumbs .sep { color: var(--faint); }
.top .sp { flex: 1; }
.switcher { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px 4px 4px; background: #fff; cursor: pointer; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.switcher:hover { border-color: var(--line-2); }
.me { list-style: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; cursor: pointer; border: 0; }

.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 600; font-size: 11px; flex: none; }
.av.lg { width: 52px; height: 52px; border-radius: 16px; font-size: 16px; }
.c1 { background: #e5eef9; color: #2a5a93; }
.c2 { background: #efe8f6; color: #6a3f93; }
.c3 { background: #f7e9ee; color: #993a5c; }
.c4 { background: #e4efe8; color: #2c6e4b; }
.c5 { background: #fbece3; color: #9a4f22; }

main { max-width: 1240px; margin: 0 auto; padding: 28px 24px 80px; min-width: 0; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.head .eyebrow { margin-bottom: 6px; }
.head p { margin-top: 6px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.btn { text-decoration: none; display: inline-flex; align-items: center; gap: 7px; border-radius: 11px; padding: 9px 16px; border: 1px solid transparent; background: var(--btn); color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; box-shadow: none; transition: background .15s; }
.btn:hover { background: #2a60d6; }
.btn.ghost:hover, .btn.danger:hover { background: var(--tint); }
.btn.quiet:hover { background: transparent; }
.btn.dark:hover { background: #000; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink-2); }
.btn.dark { background: var(--ink); box-shadow: none; }
.btn.quiet { background: transparent; color: var(--blue); box-shadow: none; padding-inline: 6px; }
.btn.danger { background: #fff; color: var(--bad); border-color: #f3c4cd; box-shadow: none; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn svg, .icon-btn svg { width: 16px; height: 16px; }
.icon-btn { all: unset; cursor: pointer; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { background: var(--tint); color: var(--ink); }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.chip.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.idle { background: var(--tint-2); color: var(--ink-2); }
.chip.fold { background: var(--tint); color: var(--ink-2); border: 1px solid var(--line); font-weight: 600; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); min-width: 0; }
.pad { padding: 20px 22px; }
.card-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { all: unset; cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: 7px; align-items: center; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs a[aria-selected="true"], .tabs button[aria-selected="true"] { color: var(--ink); border-image: var(--grad) 1; border-bottom: 2.5px solid; }
.tabs .count { font-size: 11.5px; background: var(--tint-2); color: var(--ink-2); padding: 0 7px; border-radius: 99px; }

/* login */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.login-art { background: radial-gradient(600px 400px at 20% 20%, rgba(34,211,255,.35), transparent 60%), radial-gradient(500px 500px at 90% 100%, rgba(29,108,242,.45), transparent 60%), #071534; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.login-art h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.12; font-weight: 700; max-width: 14ch; }
.login-art p { color: #b9cbec; max-width: 40ch; }
.login-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.login-art > *:not(canvas) { position: relative; }
.login-form { display: grid; place-items: center; padding: 40px 24px; }
.login-form form, .login-form .auth-box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.btn.wide { justify-content: center; padding: 12px; }
.back-link { text-align: center; font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.label-row label { font-size: 13px; font-weight: 700; color: var(--ink); }
.label-row a { font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; }
.label-row a:hover { text-decoration: underline; }
.pw { position: relative; }
.pw .input { padding-right: 46px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.pw-eye:hover { color: var(--ink); background: var(--tint); }
.pw-eye svg { width: 19px; height: 19px; }
.pw-eye span { display: grid; }
.pw-eye .i-hide, .pw-eye[aria-pressed="true"] .i-show { display: none; }
.pw-eye[aria-pressed="true"] .i-hide { display: grid; }
.input[readonly] { background: var(--tint); color: var(--ink-2); }

/* contas */
.accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.account { all: unset; box-sizing: border-box; cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; }
.account:hover { transform: translateY(-2px); border-color: #b9d6f7; box-shadow: 0 14px 34px -16px rgba(29, 108, 242, .35); }
.account-top { display: flex; gap: 14px; align-items: center; }
.account-top b { font-size: 16px; display: block; line-height: 1.25; }
.account-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px 0; border-block: 1px solid var(--line); }
.account-stats b { display: block; font-family: var(--display); font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.account-stats span { font-size: 12px; color: var(--muted); }
.account-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.enter { font-weight: 700; color: var(--blue); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.account.new { border-style: dashed; border-color: var(--line-2); box-shadow: none; align-items: center; justify-content: center; text-align: center; min-height: 230px; color: var(--muted); background: var(--tint); }
.account.new .plus { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 26px; box-shadow: 0 8px 20px -8px rgba(29,108,242,.6); }
.search { position: relative; max-width: 320px; flex: 1 1 220px; }
.search input { padding-left: 36px; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); }
/* Numa coluna (corpo do modal), o flex da busca virava altura e a lupa descia para o meio do vazio. */
.modal-body > .search { flex: none; }

/* campanhas */
.camps { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.camp { all: unset; box-sizing: border-box; cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.camp:hover { border-color: #b9d6f7; transform: translateY(-2px); }
.camp.archived { opacity: .7; }
.camp-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.camp h3 { font-size: 1rem; }
.meter { height: 8px; border-radius: 99px; background: var(--tint-2); overflow: hidden; display: flex; gap: 2px; }
.meter i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.meter i.full { background: #b8c8de; }
.meter i.empty { background: transparent; }
.camp-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.camp-facts b { color: var(--ink); }

/* campanha */
.linkbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 16px 20px; border-radius: 16px; background: var(--sel); border: 1px solid #d5e2fb; margin-bottom: 22px; }
.linkbar .lk { flex: 1 1 320px; min-width: 0; }
.linkbar code { display: block; font-family: var(--mono); font-size: 15px; color: var(--ink); overflow-wrap: anywhere; margin-top: 2px; }
.linkbar .now { font-size: 13px; color: var(--muted); }
.linkbar .now b { color: var(--ink); }

.groups-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.folders { padding: 10px; position: sticky; top: 80px; }
.folders .label { padding: 8px 10px 6px; display: block; }
.folder { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.folder svg { width: 17px; height: 17px; flex: none; color: var(--faint); }
.folder:hover { background: var(--tint); }
.folder[aria-current="true"] { background: var(--sel); color: var(--ink); }
.folder[aria-current="true"] svg { color: var(--blue); }
.folder .n { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.folder.add { color: var(--blue); }
.folder.add svg { color: var(--blue); }
.folder-sep { height: 1px; background: var(--line); margin: 8px 6px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 14px 14px 0 0; }
.bulk b { margin-right: 6px; }
.bulk .btn.ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12.5px; text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fcfdff; }
td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.sel td { background: var(--sel); }
tbody tr:hover td { background: #f8fbff; }
tr.sel:hover td { background: var(--sel); }
/* Caixa de marcar e bolinha de escolha no visual do sistema (não as do navegador). */
input[type="checkbox"], input[type="radio"] {
  -webkit-appearance: none; appearance: none; margin: 0; flex: none; width: 18px; height: 18px; vertical-align: middle; cursor: pointer;
  border: 1.5px solid var(--line-2); background: #fff center / 72% no-repeat; border-radius: 5px; display: inline-block; position: relative;
  transition: border-color .12s, background-color .12s, box-shadow .12s;
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:hover, input[type="radio"]:hover { border-color: var(--blue); }
input[type="checkbox"]:checked {
  background-color: var(--blue); border-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
input[type="checkbox"]:indeterminate {
  background-color: var(--blue); border-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
input[type="radio"]:checked { border-color: var(--blue); border-width: 5.5px; background: #fff; }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(53,109,243,.2); border-color: var(--blue); }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity: .45; cursor: not-allowed; background-color: var(--tint); }
input[type="checkbox"]:checked:disabled { background-color: var(--faint); border-color: var(--faint); }
.gname { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.gname .gi { width: 34px; height: 34px; border-radius: 10px; background: var(--tint-2); display: grid; place-items: center; color: var(--blue); flex: none; }
.gname .gi svg { width: 18px; height: 18px; }
.gname b { display: block; font-weight: 600; white-space: nowrap; }
.gname small { color: var(--muted); font-size: 12px; }
.cap { min-width: 150px; }
.cap .bar { height: 6px; background: var(--tint-2); border-radius: 99px; overflow: hidden; margin-top: 5px; }
.cap .bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.cap .bar i.full { background: #a9bbd4; }
.order { font-family: var(--display); font-weight: 600; font-size: 12px; color: var(--muted); }

/* mensagens */
.msgs-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--tint); border: 1px solid var(--line); border-radius: 12px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.seg a:hover { color: var(--ink); }
.seg a[aria-current] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20,32,58,.08), 0 0 0 1px var(--line); }
.seg .n { font-size: 11.5px; min-width: 20px; text-align: center; padding: 0 6px; border-radius: 99px; background: var(--tint-2); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.seg a[aria-current] .n { background: var(--info-soft); color: var(--info); }
.msg-list { display: flex; flex-direction: column; }
.msg { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 8px 20px; padding: 18px 20px 18px 22px; border-bottom: 1px solid var(--line); align-items: start; }
.msg:last-child { border-bottom: 0; }
.msg:hover { background: #fbfcff; }
.msg::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--line-2); }
.msg.st-sent::before { background: var(--ok); }
.msg.st-scheduled::before, .msg.st-sending::before { background: var(--info); }
.msg.st-partial::before, .msg.st-stopped::before, .msg.st-stopping::before { background: var(--warn); }
.msg.st-failed::before, .msg.st-interrupted::before, .msg.st-missed::before { background: var(--bad); }
.when { padding-top: 1px; }
.when b { display: block; font-family: var(--display); font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.when span { font-size: 12.5px; color: var(--muted); }
.msg-body { min-width: 0; }
.msg-text { font-size: 14.5px; color: var(--ink); line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.msg-text code { font-family: var(--mono); font-size: .9em; background: var(--tint-2); padding: 0 4px; border-radius: 4px; }
.msg-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.kind { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--tint-2); border-radius: 99px; padding: 3px 9px; }
.kind svg { color: var(--blue); }
.msg-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.msg-actions .btn svg { width: 14px; height: 14px; }
.msg-actions .icon-btn { color: var(--faint); }
.msg-actions .icon-btn:hover { color: var(--bad); }
.deliv { margin-top: 12px; max-width: 680px; }
.deliv-line { max-width: 520px; }
.deliv-line { display: flex; align-items: center; gap: 12px; }
.deliv-n { font-size: 13px; color: var(--muted); white-space: nowrap; }
.deliv-n b { color: var(--ink); font-size: 14px; }
.deliv-n.all b { color: var(--ok); }
.deliv-bar { display: flex; flex: 0 1 180px; min-width: 80px; height: 6px; border-radius: 99px; background: var(--tint-2); overflow: hidden; }
.deliv-bar i { display: block; height: 100%; }
.deliv-bar i.ok { background: var(--ok); }
.deliv-bar i.bad { background: var(--bad); }
.results { font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.deliv .results-all { margin-top: 8px; }
.msg-file { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; width: fit-content; max-width: 100%; margin-bottom: 8px; }
.mf-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--grad); color: #fff; }
.mf-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.mf-txt b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-txt small { font-size: 12px; color: var(--muted); }
.gprob, .ggrid { list-style: none; margin: 0; padding: 0; }
.gprob { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.gp { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 7px 10px; border-radius: 10px; }
.gp.bad { background: var(--bad-soft); } .gp.warn { background: var(--warn-soft); } .gp.wait { background: var(--info-soft); }
.gp b { color: var(--ink); font-weight: 600; }
.gp-why { color: var(--muted); }
.gr-ic { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #fff; margin-top: 1px; }
.gr-ic svg { stroke-width: 3; }
.ok > .gr-ic { background: var(--ok); } .bad > .gr-ic { background: var(--bad); } .warn > .gr-ic { background: var(--warn); } .wait > .gr-ic { background: var(--info); }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; margin-top: 8px; max-height: 300px; overflow: auto; }
.gr { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.gr .gr-ic { margin-top: 0; }
.gr.bad { border-color: #f6c5cf; } .gr.warn { border-color: #f3d9a8; }
.gr-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-ok { color: var(--ok); } .r-bad { color: var(--bad); } .r-warn { color: var(--warn); } .r-wait { color: var(--info); }
.msg-body .msg-note { white-space: normal; margin-top: 8px; overflow: visible; }

/* editor */
.editor { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 22px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .flabel { font-size: 13px; font-weight: 700; color: var(--ink); }
.hint { font-size: 12.5px; color: var(--muted); }
.input { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 11px; background: #fff; color: var(--ink); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29,108,242,.12); }
textarea.input { min-height: 150px; resize: vertical; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }
.row > * { flex: 1 1 180px; }
.fmt { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 11px 11px 0 0; background: var(--tint); }
.fmt + textarea.input { border-radius: 0 0 11px 11px; }
.fmt button { all: unset; cursor: pointer; width: 30px; height: 28px; display: grid; place-items: center; border-radius: 7px; font-weight: 700; color: var(--ink-2); font-size: 13px; }
.fmt button:hover { background: #fff; }
.attach { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.thumb { width: 54px; height: 54px; border-radius: 9px; background: radial-gradient(circle at 75% 25%, #22d3ff, #1d4fc4 70%); color: #fff; display: grid; place-items: center; text-align: center; font: 600 8px/1.15 var(--display); flex: none; }
.seg-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.seg-choice label { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 500; font-size: 14px; }
.seg-choice label b { display: block; font-weight: 700; }
.seg-choice label:has(input:checked) { border-color: var(--blue); background: var(--sel); }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink-2); font: inherit; border: 1px solid var(--line-2); border-radius: 99px; padding: 6px 12px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.pick:has(input:checked) { border-color: var(--blue); background: var(--sel); color: var(--ink); }
.pick input { width: 14px; height: 14px; }
.total { font-size: 13px; color: var(--muted); }
.total b { color: var(--ink); }
.phone { background: var(--wa-bg); border-radius: 28px; overflow: hidden; border: 8px solid #0a1a3a; position: sticky; top: 84px; box-shadow: 0 30px 60px -30px rgba(10, 26, 58, .45); }
.phone-head { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--wa-head); border-bottom: 1px solid #e1e4e8; }
.phone-body { padding: 16px 12px 22px; min-height: 380px; display: flex; flex-direction: column; gap: 8px; }
.day { align-self: center; background: #fff; border-radius: 8px; padding: 3px 10px; font-size: 11.5px; color: #54656f; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.bubble { background: var(--wa-bubble); border-radius: 9px 9px 2px 9px; padding: 4px; margin-left: auto; max-width: 88%; box-shadow: 0 1px 1px rgba(0,0,0,.08); color: #111b21; }
.bubble .img { aspect-ratio: 4 / 3; border-radius: 7px; background: radial-gradient(circle at 75% 25%, #22d3ff, #1d4fc4 60%, #0a1a3a); display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; color: #fff; }
.bubble .img span { font-size: 10.5px; letter-spacing: .2em; font-weight: 700; opacity: .85; }
.bubble .img b { font-family: var(--display); font-size: 1.3rem; line-height: 1.05; }
.bubble p { padding: 6px 6px 2px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble time { display: block; text-align: right; font-size: 11px; color: #667781; padding: 0 6px 2px; }
.bubble time i { color: #53bdeb; font-style: normal; }
.sticky-foot { position: sticky; bottom: 0; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 8px; }
.sticky-foot .sp { flex: 1; font-size: 13px; color: var(--muted); }
/* Campo que recebe o foco (Tab, erro do formulário) não fica escondido atrás da barra de botões. */
html:has(.sticky-foot) { scroll-padding-bottom: 120px; }

/* modal */
dialog.modal { border: 0; padding: 0; color: inherit; }
dialog.modal::backdrop { background: rgba(10, 26, 58, .45); }
.modal { background: #fff; border-radius: 20px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 80px -20px rgba(10,26,58,.5); }
.modal-head { padding: 20px 22px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 18px; }
.modal-foot { padding: 14px 22px 20px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line); }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.checks label { display: flex; gap: 9px; align-items: center; font-size: 14px; font-weight: 600; }
.summary-box { background: var(--tint); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: var(--ink-2); }
.summary-box b { font-family: var(--display); }

/* whatsapp */
.conn { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; }
.qr { width: 200px; height: 200px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: 0 0 0 6px var(--tint); max-width: 100%; }
.qr canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.facts div { background: var(--tint); border-radius: 12px; padding: 12px 14px; }
.facts b { display: block; font-family: var(--display); font-size: 1.05rem; margin-top: 3px; font-variant-numeric: tabular-nums; }
.tips { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.tips li::marker { color: var(--blue); font-weight: 700; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
.step-n { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.prefix { display: flex; }
.prefix span { padding: 10px 11px; background: var(--tint); border: 1px solid var(--line-2); border-right: 0; border-radius: 11px 0 0 11px; font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; display: flex; align-items: center; }
.prefix .input { border-radius: 0 11px 11px 0; min-width: 0; }

.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; z-index: 30; max-width: calc(100% - 32px); box-shadow: 0 10px 30px -10px rgba(10,26,58,.5); }

@media (max-width: 900px) {
  .groups-layout, .editor { grid-template-columns: minmax(0, 1fr); }
  .folders { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
  .folders .label, .folder-sep { display: none; }
  .folder { width: auto; white-space: nowrap; }
  .phone { position: static; }
  .login-wrap { grid-template-columns: minmax(0, 1fr); align-content: start; min-height: 100dvh; }
  /* No celular a arte vira uma faixa com a marca, para o formulário caber na tela. */
  .login-art { padding: 18px 24px; gap: 0; }
  .login-art > :not(.brand, canvas) { display: none; }
  .login-form { place-items: start center; padding: 28px 20px 40px; }
  .msg { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px; }
  .when { display: flex; gap: 8px; align-items: baseline; }
  .when b { display: inline; font-size: .95rem; }
  .msg-actions { justify-content: flex-start; }
  .deliv { max-width: none; }
  .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gr { padding: 5px 8px; font-size: 12.5px; gap: 6px; }
  .msgs-head { padding: 12px; }
  .seg { display: flex; width: 100%; }
  .seg a { flex: 1; justify-content: center; padding: 7px 6px; gap: 5px; font-size: 13px; }
  .conn { grid-template-columns: minmax(0, 1fr); }
  .top-in { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  main { padding-inline: 16px; }
  .switcher .who-name { display: none; }
}

/* extras do sistema */
.flash { margin-bottom: 18px; padding: 11px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 14px; }
.flash.err { background: var(--bad-soft); color: var(--bad); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.empty b { color: var(--ink); font-size: 15px; }
.gerr { color: var(--bad); font-size: 12px; display: block; }
tr[draggable="true"] { cursor: grab; }
tr.dragging td { opacity: .45; }
.drag { color: var(--faint); width: 16px; height: 16px; display: inline-block; vertical-align: middle; margin-right: 2px; }
.drag svg { width: 16px; height: 16px; }
.inline { display: inline; }
.pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.pick-list label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; }
.pick-list label:has(input:checked) { border-color: var(--blue); background: var(--sel); }
.pick-list small { margin-left: auto; color: var(--muted); font-weight: 500; }
.pick-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pick-list .pick-note { margin-left: 0; color: var(--warn); font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.users { display: flex; flex-direction: column; gap: 10px; }
.users .u { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.users .u div { flex: 1; min-width: 0; }
.users .u .u-actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.users .u .chip { vertical-align: 1px; }
.link-box { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; border-radius: 16px; background: var(--sel); border: 1px solid #d5e2fb; }
.link-box code { display: block; font-family: var(--mono); font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; background: #fff; border: 1px solid #d6e6fb; border-radius: 10px; padding: 10px 12px; }
@media (max-width: 640px) {
  .users .u { flex-wrap: wrap; }
  .users .u .u-actions { flex-basis: 100%; justify-content: flex-start; }
  /* Topo do celular numa linha: marca, "‹ página anterior", conta e menu. */
  .top-in { flex-wrap: nowrap; gap: 8px; min-height: 56px; }
  .brand .wordmark { display: none; }
  .crumbs { flex-wrap: nowrap; overflow: hidden; }
  .crumbs .sep, .crumbs .cur, .crumbs a.crumb { display: none; }
  .crumbs a.crumb:nth-last-child(3) { display: block; max-width: 48vw; overflow: hidden; text-overflow: ellipsis; padding-left: 2px; }
  .crumbs a.crumb:nth-last-child(3)::before { content: '‹ '; color: var(--muted); }
  .hide-sm { display: none; }
}
.results-all { margin-top: 2px; }
.results-all summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--blue); width: fit-content; }
.results-all[open] summary { margin-bottom: 4px; }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 210px; z-index: 6; display: flex; flex-direction: column; text-align: left; }
.menu-pop button, .menu-pop a { all: unset; box-sizing: border-box; cursor: pointer; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.menu-pop button:hover, .menu-pop a:hover { background: var(--tint); }
.menu-pop .danger { color: var(--bad); }
/* Enquadrar a foto do grupo: a foto corre por baixo de um círculo, como no WhatsApp. */
.crop { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 10px; }
.crop-stage { position: relative; width: 200px; height: 200px; flex: none; border-radius: 14px; overflow: hidden; background: var(--ink); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; outline-offset: 3px; }
.crop-stage:active { cursor: grabbing; }
.crop-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; -webkit-user-drag: none; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 0 0 999px rgba(10,26,58,.55); pointer-events: none; }
.crop-side { flex: 1; min-width: 170px; display: flex; flex-direction: column; gap: 10px; }
.crop-zoom { display: flex; align-items: center; gap: 10px; }
.crop-zoom input { flex: 1; accent-color: var(--blue); }
/* Na tabela o menu fica preso à tela (o app.js põe na posição do botão), para a rolagem da tabela não cortar. */
.table-wrap .menu-pop { position: fixed; visibility: hidden; z-index: 40; }
.table-wrap .menu-pop.pinned { visibility: visible; }
.media-none { width: 54px; height: 54px; border-radius: 9px; background: var(--tint-2); display: grid; place-items: center; color: var(--muted); flex: none; }
.media-none svg { width: 22px; height: 22px; }
.bubble .file { display: flex; gap: 10px; align-items: center; background: rgba(0,0,0,.05); border-radius: 7px; padding: 10px; font-size: 13px; font-weight: 600; }
.bubble img.real, .bubble video.real { display: block; width: 100%; border-radius: 7px; }
.qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.public-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--tint); }

/* criar grupos e comunidades */
.creation { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px 18px; margin-bottom: 18px; background: var(--sel); border-color: #d5e2fb; }
.creation.ok { background: var(--ok-soft); border-color: #bfe8d4; }
.creation.warn { background: var(--warn-soft); border-color: #f1d9a8; align-items: flex-start; }
.creation-text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.creation .actions { align-items: center; }
.creation-notes { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--tint-2); border-top-color: var(--blue); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.name-qty { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; }
.check-line { display: flex; gap: 9px; align-items: center; font-size: 14px; font-weight: 600; cursor: pointer; }
.bubble .mention { color: #1fa855; font-weight: 600; }
.field .check-line { margin-top: 4px; }
.grid-2.tight { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.gname .gi.community { background: var(--ok-soft); color: var(--ok); }
.gname small .kind { font-size: 10px; padding: 1px 6px; }
textarea.input.short { min-height: 84px; }

/* verificação em duas etapas */
.qr svg { width: 100%; height: 100%; display: block; }
.code-input { font-size: 1.2rem; letter-spacing: .12em; }
.code-input::placeholder { letter-spacing: .12em; }
.link-box code.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; font-size: 15px; }
.hint .key { font-family: var(--mono); font-size: 13px; color: var(--ink); background: var(--tint-2); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--blue); cursor: pointer; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }

/* Páginas legais do Snow Insta (privacidade, exclusão de dados) */
.legal { max-width: 680px; line-height: 1.6; display: flex; flex-direction: column; gap: 10px; }
.legal h1 { font-size: 1.4rem; }
.legal h2 { font-size: 1.05rem; margin-top: 10px; }
.legal ul { padding-left: 20px; }

/* Foco do teclado sempre visível: vários botões e links usam all: unset, que apagava o contorno. */
:focus-visible { outline: 2px solid var(--blue) !important; outline-offset: 2px; }

/* ================= Moldura (SnowChat): menu lateral do produto + topo ================= */
body.in-app, body.in-hub { background: var(--page); margin: 0; }
.app { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 240px; display: flex; flex-direction: column; padding: 22px 14px 16px; overflow-y: auto;
  color: #b9c4df; background: linear-gradient(180deg, #0b1430 0%, #0b1734 58%, #081126 100%); box-shadow: 8px 0 32px rgba(13, 26, 57, .08); }
.side a { text-decoration: none; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: #fff; }
.side-word { display: flex; flex-direction: column; line-height: 1; letter-spacing: .03em; }
.side-word b { font-size: 18px; font-weight: 700; }
.side-word span { margin-top: 3px; font-size: 13px; font-weight: 700; letter-spacing: .22em; color: #45b9ff; }
.side-back { display: flex; align-items: center; gap: 8px; height: 40px; margin: 20px 4px 4px; padding: 0 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 9px;
  background: rgba(255,255,255,.045); color: #aab7d2; font-size: 13.5px; font-weight: 600; }
.side-back:hover { color: #fff; border-color: rgba(103,179,255,.3); background: rgba(64,119,233,.14); }
.side-label { margin: 28px 13px 10px; color: #6b7894; font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 13px; border-radius: 9px; color: #a3b0cc; font-size: 15px; font-weight: 500; }
.side-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-item.two { min-height: 48px; }
.side-item small { display: block; font-size: 11.5px; color: #6b7894; overflow: hidden; text-overflow: ellipsis; }
.side-nav .side-label { margin: 22px 13px 6px; }
.side-item:hover { color: #fff; background: rgba(255,255,255,.05); }
.side-item[aria-current="page"] { color: #fff; font-weight: 600; background: linear-gradient(90deg, rgba(53,109,243,.32), rgba(53,109,243,.14)); box-shadow: inset 3px 0 #48a7ff; }
.side-item[aria-current="page"] svg { color: #70bcff; }
.side-n { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; display: grid; place-items: center; background: #356df3; color: #fff; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.side-div { height: 1px; margin: 12px; background: rgba(255,255,255,.08); }
.side-sp { flex: 1; min-height: 20px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.045); }
.side-av { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: linear-gradient(145deg, #344465, #16213f); color: #fff; font-size: 12px; font-weight: 600; }
.side-who { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.side-who b { color: #edf2ff; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-who span { color: #8190ad; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-gear { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; color: #8b98b4; }
.side-gear:hover { color: #fff; background: rgba(255,255,255,.07); }
.side-scrim { display: none; }

.app-main { margin-left: 240px; min-width: 0; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 10px 28px;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.topbar .sp { flex: 1; }
.topbar-menu { display: none; width: 40px; height: 40px; flex: none; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
.topbar .crumbs { gap: 4px; }
.topbar .crumbs .crumb, .topbar .crumbs .cur { padding: 4px 6px; }
.topbar .crumbs a.crumb { color: var(--muted); font-weight: 500; }
.topbar .crumbs a.crumb:hover { color: var(--ink); }
.topbar .crumbs .cur { font-weight: 600; }
.topbar .switcher { border-radius: 10px; padding: 4px 12px 4px 4px; text-decoration: none; color: var(--ink-2); font-weight: 600; }
.topbar .switcher .av, .topbar .switcher .ig-av { border-radius: 8px; }
.topbar .me, .hub-head .me { border-radius: 10px; width: 40px; height: 40px; background: var(--navy); }
.app-main main { max-width: 1320px; margin: 0; padding: 26px 28px 80px; }

/* tela de entrada: os produtos */
.in-hub { background: radial-gradient(circle at 12% 0%, rgba(77,142,255,.1), transparent 28%), radial-gradient(circle at 92% 78%, rgba(112,86,218,.07), transparent 27%), var(--page); min-height: 100vh; }
.hub-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 10px max(24px, 6.5%); border-bottom: 1px solid rgba(219,226,238,.85); background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hub-head .sp { flex: 1; }
.hub-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.hub-brand .side-word span { color: #3c7af4; }
.hub-who { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; min-width: 0; }
.hub-who b { font-size: 14px; }
.hub-who span { font-size: 12.5px; color: var(--muted); }
.hub-main { width: min(1120px, 100% - 48px); margin: 0 auto; padding: 52px 0 60px; }
.hub-intro { max-width: 620px; margin-bottom: 30px; }
.hub-intro .eyebrow { color: var(--blue); }
.hub-intro h1 { margin-top: 6px; font-size: clamp(1.7rem, 3.4vw, 2.2rem); line-height: 1.2; letter-spacing: -.03em; }
.hub-intro p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.prods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.prod { position: relative; display: flex; flex-direction: column; padding: 24px; overflow: hidden; border: 1px solid #dfe5ef; border-radius: 16px; background: rgba(255,255,255,.95);
  box-shadow: 0 8px 28px rgba(24,39,75,.055); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.prod::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #2bbcef, #3d71ef); }
.prod.grupos::before { background: linear-gradient(90deg, #356df3, #7658d9); }
.prod.insta::before { background: linear-gradient(90deg, #7a50df, #ee578a, #f4a543); }
.prod:hover { transform: translateY(-3px); border-color: #cdd9ed; box-shadow: 0 16px 38px rgba(24,39,75,.09); }
.prod-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.prod-ic { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #25bfe9, #386df1); box-shadow: 0 8px 20px rgba(54,112,239,.18); }
.grupos .prod-ic { background: linear-gradient(145deg, #3d79f5, #7256d7); }
.insta .prod-ic { background: linear-gradient(145deg, #774dd8, #e34f86); }
.prod-name { display: flex; align-items: baseline; gap: 5px; font-size: 17px; font-weight: 700; color: var(--ink); }
.prod-name b { color: #3675ef; letter-spacing: .06em; }
.grupos .prod-name b { color: #6e59cd; }
.insta .prod-name b { color: #cf518e; }
.prod h2 { margin: 12px 0 6px; font-size: 18px; }
.prod p { color: var(--muted); font-size: 14.5px; line-height: 1.55; min-height: 4.6em; }
.prod-feat { display: flex; flex-direction: column; gap: 9px; margin: 18px 0 22px; padding-top: 16px; border-top: 1px solid #edf0f4; }
.prod-feat span { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; }
.prod-feat svg { color: #2aa877; flex: none; }
.prod-go { margin-top: auto; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--btn); color: #fff; font-weight: 600; box-shadow: 0 5px 14px rgba(53,109,243,.18); }

/* tablet e celular: o menu lateral vira gaveta, aberta pelo botão do topo */
@media (max-width: 1024px) {
  .side { transform: translateX(-100%); transition: transform .2s ease; box-shadow: none; }
  .side-open .side { transform: none; box-shadow: 16px 0 40px rgba(5,13,35,.3); }
  .side-open .side-scrim { display: block; position: fixed; inset: 0; z-index: 15; background: rgba(7,16,38,.45); }
  .app-main { margin-left: 0; }
  .topbar-menu { display: grid; }
  .prods { grid-template-columns: minmax(0, 1fr); }
  .prod p { min-height: 0; }
}
@media (max-width: 640px) {
  .topbar { padding: 8px 14px; gap: 10px; min-height: 58px; }
  .topbar .switcher .who-name { display: none; }
  .topbar .switcher { padding: 4px 8px 4px 4px; }
  .app-main main { padding: 20px 16px 64px; }
  .hub-head { padding: 10px 16px; }
  .hub-who { display: none; }
  .hub-main { width: calc(100% - 32px); padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }
/* Com o menu lateral, a tabela de grupos só cabe ao lado das pastas em tela larga; abaixo disso as pastas vão para cima, em linha. */
@media (min-width: 901px) and (max-width: 1599px) {
  .groups-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .folders { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px; }
  .folders .label, .folder-sep { display: none; }
  .folder { width: auto; white-space: nowrap; }
}

/* Faixa da assinatura no topo das telas (atraso, limite do grátis, perto da faixa seguinte) */
.notice { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 11px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; background: var(--info-soft); color: var(--info); }
.notice > span { flex: 1; min-width: 0; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.err { background: var(--bad-soft); color: var(--bad); }
.notice .btn { flex: 0 0 auto; }
@media (max-width: 640px) { .notice { flex-wrap: wrap; } }

/* página pública (/sobre) */
.site { background: #fff; min-height: 100vh; }
.site-in { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.site-top { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-top .site-in { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.site-brand { display: flex; align-items: center; gap: 10px; font: 600 1.15rem var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.site-brand img { border-radius: 9px; }
.site-nav { display: flex; gap: 20px; margin-left: auto; }
.site-nav a { color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-hero { background: radial-gradient(1100px 380px at 80% -10%, #dff4ff, transparent), linear-gradient(180deg, #f4f8fe, #fff); padding: 84px 0 72px; }
.site-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.12; max-width: 820px; margin: 12px 0 18px; letter-spacing: -0.035em; }
.site-hero p { font-size: 1.1rem; color: var(--ink-2); max-width: 680px; }
.site-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.site-sec { padding: 72px 0; }
.site-sec.alt { background: var(--page); }
.site-sec h2 { font-size: 1.6rem; letter-spacing: -0.03em; margin-bottom: 28px; }
.site-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.site-card { border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 8px; background: #fff; box-shadow: var(--shadow); }
.site-card h3 { font-size: 1.1rem; }
.site-card p { color: var(--muted); font-size: 14.5px; }
.site-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 6px; }
.site-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.site-steps li { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.site-steps .n { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; }
.site-steps h3 { font-size: 1rem; margin-bottom: 4px; }
.site-steps p { color: var(--muted); font-size: 14.5px; }
.site-note { margin-top: 22px; padding: 14px 18px; border-radius: 14px; background: var(--info-soft); color: var(--ink-2); font-size: 14.5px; max-width: 860px; }
.site-company { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.site-company p { color: var(--ink-2); font-size: 1.05rem; }
.site-contact { display: flex; flex-direction: column; gap: 8px; }
.site-contact a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 600; text-decoration: none; }
.site-contact a:hover { border-color: var(--blue); }
.site-contact svg { color: var(--blue); }
.site-foot { border-top: 1px solid var(--line); padding: 22px 0; font-size: 13.5px; color: var(--muted); }
.site-foot .site-in { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-foot nav { display: flex; gap: 18px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .site-nav { display: none; }
  .site-top .site-in { justify-content: space-between; }
  .site-hero { padding: 48px 0 44px; }
  .site-sec { padding: 48px 0; }
  .site-company { grid-template-columns: minmax(0, 1fr); }
  .site-in { padding: 0 16px; }
}

/* ---------- Equipe ---------- */

.tm-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 18px; margin-bottom: 18px; }
.tm-legend > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tm-legend .hint { font-size: 13px; }
.tm-head, .tm-row > summary { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, 1.6fr) minmax(0, .8fr) 84px; gap: 14px; align-items: center; }
.tm-head { padding: 0 18px 8px; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--muted); }
.tm-list { display: flex; flex-direction: column; gap: 10px; }
.tm-row { padding: 0; overflow: hidden; }
.tm-row > summary { list-style: none; cursor: pointer; padding: 14px 18px; }
.tm-row > summary::-webkit-details-marker { display: none; }
.tm-row > summary:hover { background: var(--tint); }
.tm-row[open] > summary { border-bottom: 1px solid var(--line); }
.tm-who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.tm-who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.tm-who b, .tm-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-who small { color: var(--muted); font-size: 13px; }
.tm-role { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-reach { display: flex; flex-direction: column; gap: 2px; font-size: 13px; min-width: 0; }
.tm-reach-k { overflow: hidden; text-overflow: ellipsis; }
.tm-seen { font-size: 13px; }
.tm-open { display: inline-flex; gap: 4px; align-items: center; justify-content: flex-end; font-size: 13px; font-weight: 600; color: var(--blue); }
.tm-row[open] .tm-open svg { transform: rotate(90deg); }
.tm-open.tm-self { color: var(--muted); font-weight: 600; }
.tm-body { padding: 18px; display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.tm-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.tm-kind { border: 0; padding: 0; margin: 0; }
.tm-confirm { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); font-size: 14px; }
.tm-confirm input { margin-top: 3px; }
[data-show-role][hidden], [data-hide-role][hidden] { display: none; }
@media (max-width: 820px) {
  .tm-head { display: none; }
  .tm-row > summary { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .tm-who { grid-column: 1 / -1; }
  .tm-reach { grid-column: 1 / -1; }
  .tm-seen { grid-column: 1; }
  .tm-open { grid-column: 2; grid-row: 2; }
}

/* Equipe: setores do SnowChat */
.danger-link { color: var(--bad); }
.tm-sectors { margin-top: 18px; display: grid; gap: 12px; }
.tm-sectors h2 { font-size: 17px; margin: 0; }
.tm-sectors h3 { font-size: 14px; margin: 6px 0 4px; }
.tm-scope-box { display: grid; gap: 10px; }
.tm-sector-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tm-sector-list li { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tm-sector-form { display: flex; gap: 8px; align-items: center; flex: 1 1 260px; min-width: 0; }
.tm-sector-form .input { flex: 1 1 auto; min-width: 0; max-width: 260px; padding: 7px 10px; }
.tm-sector-who { flex: 1 1 160px; }
.tm-sector-new { margin-top: 2px; }
.tm-scope { display: block; margin: 6px 0 4px; font-weight: 600; }

/* Conta de cliente aberta (quem está em mais de uma) e a faixa do modo suporte */
.co-pick { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px 4px 4px; background: #fff; cursor: pointer; font-weight: 600; font-size: 13.5px; white-space: nowrap; color: var(--ink-2); max-width: 240px; }
.co-pick .who-name { overflow: hidden; text-overflow: ellipsis; }
.co-pick .av { border-radius: 8px; flex: none; }
.co-pick:hover { border-color: var(--line-2); }
.co-pop { min-width: 250px; max-height: min(70vh, 520px); overflow-y: auto; }
.co-one { cursor: default; }
.co-one:hover { border-color: var(--line); }
.co-pop form { display: block; }
.menu-pop .co-opt { display: flex; align-items: center; gap: 10px; width: 100%; }
.co-opt > span:not(.av) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.co-opt small { font-size: 12px; font-weight: 500; color: var(--muted); }
.co-opt[aria-current] { background: var(--tint); }
.hub-head .co-menu { margin-right: 8px; }
.notice.support { background: #1e1b4b; color: #fff; }
.notice.support form { flex: 0 0 auto; }
.notice.support .btn { background: #fff; color: #1e1b4b; }
@media (max-width: 640px) {
  .co-pick .who-name { display: none; }
  .co-pick { padding: 4px 8px 4px 4px; }
  .co-pop { position: fixed; top: 58px; left: 12px; right: 12px; min-width: 0; max-height: calc(100vh - 80px); }
  .notice.support { flex-wrap: wrap; }
}

/* ---------- redesenho 2026-10-31: topo com um seletor só, menu da pessoa e ações das listas ---------- */
.co-pick { gap: 10px; padding: 5px 10px 5px 5px; min-height: 44px; font-weight: 600; max-width: 280px; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.co-pick:hover { box-shadow: 0 2px 8px rgba(22, 38, 72, .06); }
.co-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; text-align: left; }
.co-txt small { font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--faint); }
.co-txt .who-name { font-size: 13.5px; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-caret { display: grid; place-items: center; color: var(--muted); margin-left: 2px; flex: none; transition: transform .15s; }
.co-menu[open] .co-caret { transform: rotate(180deg); }
.co-menu[open] > .co-pick { border-color: var(--line-2); box-shadow: 0 0 0 3px var(--tint-2); }
.co-pop { padding: 6px; min-width: 290px; }
.co-list { display: flex; flex-direction: column; gap: 2px; }
.menu-cap { padding: 8px 10px 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.menu-div { height: 1px; background: var(--line); margin: 5px 4px; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; }
.menu-pop a svg, .menu-pop button svg { color: var(--muted); flex: none; }
.topbar .me, .hub-head .me { width: auto; height: auto; background: none; border-radius: 99px; padding: 3px 6px 3px 3px; display: flex; align-items: center; gap: 4px; color: var(--muted); border: 1px solid transparent; }
.topbar .me:hover, .hub-head .me:hover, .me-menu[open] > .me { border-color: var(--line); background: #fff; }
.me-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .02em; flex: none; }
.me-av.lg { width: 40px; height: 40px; font-size: 14px; }
.me-caret { display: grid; place-items: center; }
.me-pop { min-width: 260px; }
.me-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.me-head > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.me-head b { font-size: 14px; }
.me-head small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.menu-pop .me-out { width: 100%; color: var(--bad); }
.menu-pop .me-out svg { color: var(--bad); }
.hub-head .co-menu { margin-right: 4px; }
@media (max-width: 640px) {
  .co-pick { padding: 4px; min-height: 40px; }
  .co-txt, .co-caret, .me-caret { display: none; }
  .topbar .me, .hub-head .me { padding: 2px; }
  .me-pop { position: fixed; top: 58px; left: 12px; right: 12px; min-width: 0; }
}

/* Administração da conta no painel de produtos */
.hub-admin { margin-top: 34px; }
.hub-admin h2 { margin-bottom: 12px; }
.hub-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hub-tile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.hub-tile:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.hub-tile > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
.hub-tile b { font-size: 14.5px; }
.hub-tile small { font-size: 12.5px; color: var(--muted); }
.hub-tile > svg { color: var(--faint); flex: none; }
.hub-tile-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--tint-2); color: var(--blue); flex: none; }
@media (max-width: 1024px) { .hub-tiles { grid-template-columns: minmax(0, 1fr); } }

/* Ações de cada linha das listas (editar, apagar): ícones lado a lado, com o nome no toque e no passar do mouse */
.row-acts { display: flex; align-items: center; gap: 4px; flex: none; }
.row-acts form { display: contents; }
.act-btn { all: unset; box-sizing: border-box; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.act-btn:hover, .act-btn:focus-visible { background: var(--tint); color: var(--ink); }
.act-btn.del:hover, .act-btn.del:focus-visible { background: var(--bad-soft); color: var(--bad); }
.act-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

/* SnowChat, menu novo (2026-11): seletor da caixa no alto, itens "Em breve" e a tela Configurações. */
.side-box { position: relative; margin: 6px 0 2px; }
.side-box-one { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: #fff; }
.side-box-one > svg { color: #4ade80; flex: none; }
.side-box-one > span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.side-box > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.side-box > summary::-webkit-details-marker { display: none; }
.side-box > summary:hover, .side-box[open] > summary { background: rgba(255,255,255,.09); }
.side-box > summary > svg:first-child { color: #4ade80; flex: none; }
.side-box > summary > span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.side-box b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-box small { font-size: 11.5px; color: #8796bd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-box > summary > svg:last-child { color: #8796bd; flex: none; }
.side-box-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(11, 20, 48, .28); padding: 6px; display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow-y: auto; }
.side-box-l { font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--faint); padding: 6px 8px 4px; }
.side-box-pop a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.side-box-pop a:hover, .side-box-pop a[aria-current] { background: var(--tint); }
.side-box-pop a > svg { color: var(--muted); flex: none; }
.side-box-pop a > span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.side-box-pop small { color: var(--muted); }
.side-box-pop em { font-style: normal; font-size: 11px; font-weight: 600; color: #fff; background: var(--blue); border-radius: 99px; padding: 0 7px; line-height: 18px; }
.side-box-add { border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 8px 8px !important; color: var(--blue) !important; }
.side-item.soon { opacity: .55; cursor: default; }
.side-item.soon:hover { background: none; color: #a3b0cc; }
.side-soon { font-style: normal; flex: none; font-size: 9.5px; font-weight: 600; letter-spacing: .04em; color: #c9a8ff; border: 1px solid #5b3fa0; border-radius: 99px; padding: 1px 6px; }
.cfg-sec { margin-top: 26px; }
.cfg-sec h2 { margin-bottom: 10px; }
.cfg-boxes { display: grid; gap: 8px; }
.cfg-box { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; flex-wrap: wrap; }
.cfg-box-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--tint-2); color: var(--blue); flex: none; }
.cfg-box-ic.whats { background: #e3f7ee; color: #0f8a5f; }
.cfg-box-ic.insta { background: #fde8f3; color: #c0267a; }
.cfg-box-t { flex: 1; min-width: 160px; display: flex; flex-direction: column; line-height: 1.35; }
.cfg-box-t small { color: var(--muted); font-size: 12.5px; }
.cfg-add { border-style: dashed; }
.cfg-add:hover { border-color: var(--blue); }
.hub-tile.soon { opacity: .7; border-style: dashed; }
.hub-tile.soon .hub-tile-ic { background: #f1eafd; color: #7a3fe0; }
@media (max-width: 900px) { .hub-tiles { grid-template-columns: 1fr; } }

/* Dica ao passar o mouse, no lugar da dica do navegador (app.js). */
.tip-bubble { position: fixed; z-index: 90; max-width: min(300px, calc(100vw - 16px)); background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.45; padding: 7px 10px; border-radius: 9px; box-shadow: 0 6px 20px rgba(10, 26, 58, .25); pointer-events: none; text-transform: none; letter-spacing: 0; white-space: normal; }
#confirm-dialog .modal-head { padding-bottom: 16px; }

/* Remover compradores: a lista de campanhas só aparece em "Só algumas campanhas". */
.buyer-camps { margin-top: 4px; max-height: none; }
.buyer-camps .gi { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--tint); color: var(--blue); flex: none; }
.buyer-camps input { width: 16px; height: 16px; flex: none; }
.form:has(input[name="scope"][value="all"]:checked) .buyer-camps { display: none; }


/* ---------- Campos no visual do sistema (public/campos.js) ---------- */
/* Número sem as setinhas do navegador. */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
/* Lista de escolha (select): a setinha do sistema. Com o campos.js, a lista aberta também é nossa. */
select { -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%2362728f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 8px center / 18px no-repeat; padding-right: 32px !important; cursor: pointer; }
.sel-native { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; min-width: 0 !important; padding: 0 !important; border: 0 !important; margin: 0 !important; overflow: hidden; }
.sel-btn { display: inline-flex; align-items: center; gap: 8px; text-align: left; cursor: pointer; min-width: 0; background: #fff; }
.sel-btn.input { display: flex; }
.sel-btn:not(.input) { border: 1px solid var(--line-2); border-radius: 9px; padding: 6px 10px; font-size: 14px; color: var(--ink); }
.sel-btn .sel-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-btn .sel-txt.ph { color: var(--faint); }
.sel-btn .sel-car { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform .15s; }
.sel-btn[aria-expanded="true"] { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29,108,242,.12); }
.sel-btn[aria-expanded="true"] .sel-car { transform: rotate(180deg); }
.sel-btn:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29,108,242,.12); }
.sel-btn:disabled { opacity: .55; cursor: not-allowed; background: var(--tint); }
.fl-row > .sel-btn.input { flex: 0 0 auto; width: auto; }
.fl-stats .sel-btn { border-radius: 7px; padding: 2px 6px; font-size: 12.5px; gap: 4px; }
.fl-stats .sel-btn .sel-car { width: 14px; height: 14px; }
.ib-filter-box .sel-btn { padding: 8px 10px; font-size: 14px; }
/* A janela que abre (lista, calendário, sugestões). Fica por cima de tudo, até das janelas do sistema. */
.pop-panel { position: fixed; z-index: 95; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px -8px rgba(10,26,58,.28); padding: 6px; max-height: min(320px, calc(100vh - 24px)); overflow: auto; overscroll-behavior: contain; font-size: 14px; color: var(--ink); }
.pop-opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-opt[aria-selected="true"] { color: var(--blue); }
.pop-opt[aria-selected="true"]::after { content: ""; margin-left: auto; width: 16px; height: 16px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.4' fill='none' stroke='%23356df3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.pop-opt.on { background: var(--tint); }
.pop-opt[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.pop-group { padding: 8px 10px 4px; font-size: 12.5px; text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 700; }
.pop-empty { padding: 10px; color: var(--muted); font-size: 13px; }
/* Data e hora: o campo do sistema, com calendário e lista de horários nossos. */
.dt-wrap { display: flex; gap: 8px; min-width: 0; }
.dt-field { position: relative; display: flex; align-items: center; min-width: 0; flex: 1 1 auto; }
.dt-field .input { padding-right: 38px; font-variant-numeric: tabular-nums; }
.dt-field .dt-ico { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; background: none; border-radius: 8px; display: grid; place-items: center; color: var(--muted); cursor: pointer; padding: 0; }
.dt-field .dt-ico:hover { background: var(--tint); color: var(--blue); }
.dt-field .dt-ico svg { width: 18px; height: 18px; }
.dt-date { min-width: 150px; } .dt-time { min-width: 108px; flex: 0 1 120px; }
.cal { width: 280px; padding: 10px; max-height: none !important; overflow: visible !important; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-head b { font-weight: 700; font-size: 14px; text-transform: capitalize; }
.cal-head button, .cal-foot button { border: 0; background: none; cursor: pointer; border-radius: 8px; padding: 4px 8px; color: var(--ink-2); font-weight: 600; }
.cal-head button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; }
.cal-head button:hover, .cal-foot button:hover { background: var(--tint); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-grid .wd { font-size: 12.5px; font-weight: 700; color: var(--faint); padding: 4px 0; text-transform: none; }
.cal-day { border: 0; background: none; height: 34px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cal-day:hover, .cal-day.on { background: var(--tint); }
.cal-day.out { color: var(--faint); }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.cal-day[aria-selected="true"] { background: var(--btn); color: #fff; }
.cal-day:disabled { opacity: .3; cursor: not-allowed; background: none; }
.cal-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.cal-foot button { color: var(--blue); font-size: 13px; }
/* Arquivo: botão e nome do arquivo no lugar do "Escolher arquivo / Nenhum arquivo escolhido" do navegador. */
.file-pick { display: flex; align-items: center; gap: 10px; min-width: 0; border: 1px dashed var(--line-2); border-radius: 11px; padding: 8px 10px; background: #fff; }
.file-pick .file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 14px; }
.file-pick .file-name.has { color: var(--ink); font-weight: 600; }
.file-pick.drag { border-color: var(--blue); background: var(--sel); }
input[type="file"]::file-selector-button { font: inherit; font-weight: 600; font-size: 13px; border: 1px solid var(--line-2); background: #fff; border-radius: 9px; padding: 6px 12px; margin-right: 10px; cursor: pointer; color: var(--ink-2); }
/* Controle deslizante (zoom da foto). */
input[type="range"] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 99px; background: var(--tint-2); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); box-shadow: 0 2px 6px rgba(10,26,58,.2); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); }
input[type="range"]:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(53,109,243,.2); }
/* Aviso de campo para preencher, no lugar do balão do navegador. */
.field-warn { position: fixed; z-index: 96; max-width: min(320px, calc(100vw - 16px)); background: var(--bad); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.4; padding: 8px 11px; border-radius: 10px; box-shadow: 0 8px 24px rgba(196,44,69,.3); pointer-events: none; }
.field-warn::before { content: ""; position: absolute; left: 16px; top: -5px; width: 10px; height: 10px; background: var(--bad); transform: rotate(45deg); border-radius: 2px; }
.field-warn.up::before { top: auto; bottom: -5px; }
.is-invalid, .is-invalid + .sel-btn { border-color: var(--bad) !important; box-shadow: 0 0 0 4px rgba(196,44,69,.12) !important; }
/* Caixas de marcar com cor própria: a nota interna (amarela) e a IA (roxa). */
.ib-switch input:checked { background-color: #c79a00; border-color: #c79a00; }
.ib-switch.ib-auto-next input:checked { background-color: var(--blue); border-color: var(--blue); }
.ai-toggle input:checked { background-color: #7a3fe0; border-color: #7a3fe0; }

/* ================= Visual novo (2026-11): moldura clara, tela inicial só com os produtos ================= */
body { font-size: 15px; -webkit-font-smoothing: antialiased; }
h1 { font-weight: 600; font-size: 1.5rem; letter-spacing: -.015em; }
h2, h3 { font-weight: 600; letter-spacing: -.01em; }
.label, th, .side-label { font-weight: 500; }
.label.eyebrow, .head .eyebrow { display: none; }
.btn { border-radius: 10px; font-weight: 500; }
.btn.ghost { color: var(--ink); }
.card { box-shadow: none; }
.chip { font-weight: 500; }
.tabs a, .tabs button { font-weight: 500; padding: 10px 2px 12px; margin-right: 20px; }
.tabs a[aria-selected="true"], .tabs button[aria-selected="true"] { border-image: none; border-bottom: 2px solid var(--blue); }
.av { font-weight: 600; }
.me-av { background: #e5eef9; color: #2a5a93; font-weight: 600; }
.menu-pop { box-shadow: 0 12px 40px rgba(28, 34, 48, .12); border-radius: 14px; padding: 8px; }
.menu-pop button, .menu-pop a { font-weight: 500; border-radius: 10px; }

/* menu lateral claro */
.side { width: 236px; padding: 18px 14px 0; color: var(--ink-2); background: #fff; border-right: 1px solid var(--line); box-shadow: none; }
.side-brand { color: var(--ink); padding: 2px 8px 14px; }
.side-word { flex-direction: row; gap: 4px; letter-spacing: -.01em; line-height: 1.2; }
.side-word b, .side-word span, .hub-brand .side-word span { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.side-co { margin-bottom: 8px; }
.side-co .co-menu { display: block; position: relative; }
.side-co .co-pick { width: 100%; max-width: none; border: 0; border-radius: 12px; background: var(--tint); padding: 10px; min-height: 0; gap: 10px; box-shadow: none; }
.side-co .co-pick:hover, .side-co .co-menu[open] > .co-pick { background: var(--tint-2); box-shadow: none; }
.side-co .co-pick .av, .side-co .co-pick .ig-av { width: 32px; height: 32px; border-radius: 50%; font-size: 12px; }
.side-co .co-txt { flex: 1; }
.side-co .co-txt small { order: 2; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.side-co .co-txt .who-name { font-size: 14px; font-weight: 600; }
.side-co .co-caret { color: var(--faint); display: grid; }
.side-co .co-pop { left: 0; right: auto; min-width: 280px; }
.side-back { height: 36px; margin: 0 0 6px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 500; gap: 10px; }
.side-back:hover { color: var(--ink); border: 0; background: var(--tint); }
.side-label { margin: 14px 10px 6px; color: var(--faint); }
.side-nav .side-label { margin: 14px 10px 6px; }
.side-nav > .side-label:first-child, .side-back + .side-label { display: none; }
.side-nav { gap: 2px; }
.side-item { min-height: 40px; padding: 0 10px; border-radius: 10px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.side-item svg { color: var(--muted); flex: none; }
.side-item small { color: var(--faint); }
.side-item:hover { color: var(--ink); background: var(--tint); }
.side-item[aria-current="page"] { color: var(--blue-ink); font-weight: 500; background: var(--sel); box-shadow: none; }
.side-item[aria-current="page"] svg { color: var(--blue); }
.side-item.soon { color: var(--faint); }
.side-n { min-width: 0; height: auto; padding: 0; background: transparent; color: var(--blue-ink); font-size: 12.5px; font-weight: 600; }
.side-div { margin: 8px 10px; background: var(--line); }
.side-me { position: relative; display: block; margin: 8px -14px 0; border-top: 1px solid var(--line); }
.side-me > summary.me { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 22px 16px; cursor: pointer; list-style: none; }
.side-me > summary.me::-webkit-details-marker { display: none; }
.side-me > summary.me:hover { background: var(--tint); }
.side-me .me-av { width: 34px; height: 34px; font-size: 12px; }
.side-me .side-who b { color: var(--ink); font-size: 14px; font-weight: 600; }
.side-me .side-who span { color: var(--muted); font-size: 12.5px; }
.side-me .me-caret { color: var(--faint); margin-left: auto; }
.side-me .me-pop { top: auto; bottom: calc(100% + 6px); left: 10px; right: 10px; min-width: 0; z-index: 30; }

/* topo: no computador some (o título já está na página e a conta está no menu); volta no tablet e no celular */
.app-main { margin-left: 236px; }
.topbar { display: none; min-height: 56px; background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.topbar .crumbs .crumb, .topbar .crumbs .sep { display: none; }
.topbar .crumbs .cur { font-size: 16px; font-weight: 600; }
.topbar-menu { border: 0; }
.topbar .me, .hub-head .me { background: transparent; width: auto; height: auto; }
.app-main main { max-width: none; padding: 36px 44px 72px; }
.head { margin-bottom: 26px; align-items: flex-start; }
.head p { margin-top: 4px; }
@media (max-width: 1024px) {
  .topbar { display: flex; }
  .app-main { margin-left: 0; }
  .app-main main { padding: 24px 24px 64px; }
  .side { width: 264px; }
  .side-open .side { box-shadow: 16px 0 40px rgba(28, 34, 48, .18); }
  .side-open .side-scrim { background: rgba(28, 34, 48, .38); }
  .side-co .co-pop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 0; }
  .side-co .co-txt, .side-co .co-caret { display: flex; }
  .side-co .co-pick .who-name { display: block; }
}
@media (max-width: 640px) { .app-main main { padding: 20px 16px 56px; } .side-me .me-pop { position: absolute; top: auto; left: 10px; right: 10px; } }

/* tela inicial */
.in-hub { background: var(--page); }
.hub-head { min-height: 68px; padding: 10px max(24px, calc((100% - 1056px) / 2)); border-bottom: 1px solid var(--line); background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; gap: 12px; }
.hub-brand .side-word { gap: 0; }
.hub-brand .side-word b { font-size: 18px; }
.hub-brand .side-word span { font-size: 18px; }
.hub-gear { position: relative; }
.hub-gear-btn { list-style: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); cursor: pointer; }
.hub-gear-btn::-webkit-details-marker { display: none; }
.hub-gear-btn:hover, .hub-gear[open] .hub-gear-btn { background: var(--tint); color: var(--ink); }
.hub-gear-pop { min-width: 300px; }
.hub-gear-pop .menu-cap, .menu-cap { display: block; padding: 8px 12px 6px; font-size: 13px; color: var(--muted); font-weight: 400; }
.menu-pop.hub-gear-pop a { align-items: flex-start; gap: 12px; padding: 10px 12px; }
.hub-gear-pop a svg { margin-top: 2px; }
.hub-gear-pop a b { display: block; font-weight: 500; font-size: 14px; color: var(--ink); }
.hub-gear-pop a small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; white-space: normal; }
.hub-main { width: min(1056px, 100% - 48px); padding: 72px 0 64px; }
.hub-intro { margin-bottom: 40px; }
.hub-intro h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 600; letter-spacing: -.02em; }
.hub-intro p { margin-top: 8px; }
.prods { gap: 24px; }
.prod { padding: 28px; gap: 18px; min-height: 248px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.prod::before { display: none; }
.prod:hover { transform: none; border-color: var(--line-2); box-shadow: 0 6px 24px rgba(28, 34, 48, .06); }
.prod-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--chat-soft); color: var(--chat); box-shadow: none; }
.grupos .prod-ic { background: var(--grupos-soft); color: var(--grupos); }
.insta .prod-ic { background: var(--insta-soft); color: var(--insta); }
.prod-txt { display: block; }
.prod h2 { margin: 0; font-size: 20px; font-weight: 600; }
.prod p { margin-top: 6px; min-height: 0; font-size: 15px; }
.prod-now { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.prod-now b { font-weight: 600; color: var(--ink); }
.prod-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.prod-dot.warn { background: var(--warn); }
.prod-dot.idle { background: var(--line-2); }
.prod-go { margin: 0 0 0 auto; height: auto; padding: 0; border-radius: 0; background: transparent; color: var(--blue); box-shadow: none; gap: 6px; font-weight: 600; }
.hub-foot { margin-top: 44px; display: flex; gap: 8px; }
.hub-foot a { display: inline-flex; align-items: center; gap: 8px; margin-left: -12px; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.hub-foot a:hover { background: var(--tint); }
@media (max-width: 1024px) { .prod { min-height: 0; } }
@media (max-width: 640px) {
  .hub-head { padding: 10px 16px; min-height: 60px; }
  .hub-brand .side-word { display: none; }
  .hub-main { width: calc(100% - 32px); padding: 32px 0 40px; }
  .hub-intro { margin-bottom: 24px; }
  .prods { gap: 14px; }
  .prod { padding: 20px; gap: 14px; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .prod-txt { flex: 1; min-width: 0; }
  .prod p { font-size: 14px; }
  .prod-now { width: 100%; padding-top: 14px; }
  .hub-gear-pop { position: fixed; top: 58px; left: 12px; right: 12px; min-width: 0; }
}

/* caixa de entrada escolhida (menu lateral claro) e Disponível/Ausente no pé do menu */
.side-box { margin: 0 0 8px; }
.side-box-one, .side-box > summary { background: var(--tint); border: 0; color: var(--ink); border-radius: 12px; padding: 10px; }
.side-box > summary:hover, .side-box[open] > summary { background: var(--tint-2); }
.side-box-one > svg, .side-box > summary > svg:first-child { color: var(--ok); width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: #fff; }
.side-box small { font-size: 12.5px; color: var(--muted); }
.side-box > summary > svg:last-child { color: var(--faint); }
.side-box-pop { box-shadow: 0 12px 40px rgba(28, 34, 48, .14); border-radius: 14px; padding: 8px; }
.side-co + .side-back, .side-co ~ .side-box { margin-top: 0; }
.side-presence { margin: 0 0 4px; }
.side-presence .side-item { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 10px; border-radius: 10px; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.side-presence .side-item:hover { background: var(--tint); }
.side-presence .lbl { flex: 0 0 auto; }
.side-presence small { margin-left: auto; font-size: 12.5px; color: var(--faint); }
.side-presence .ib-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); flex: none; margin: 0 5px; }
.side-presence .ib-dot.on { background: var(--ok); }
.side-presence .ib-dot.away { background: #e59a1a; }

/* filtros em pílula (período, abas pequenas): a opção escolhida fica branca, não preta */
.seg, .subtabs { background: var(--tint); border: 0; border-radius: 10px; padding: 3px; gap: 2px; }
.seg a, .subtabs a { border: 0; border-radius: 8px; font-weight: 500; color: var(--muted); background: transparent; }
.seg a[aria-current="true"], .subtabs a[aria-current="page"] { background: #fff; color: var(--ink); border: 0; box-shadow: 0 1px 2px rgba(28, 34, 48, .08); }
.seg a[aria-current="true"] .count, .seg a[aria-current="true"] .n { background: var(--tint); color: var(--ink-2); }
/* A caixa em uso (o número): uma linha discreta logo abaixo da conta, sem repetir o nome. */
.side-co { margin-bottom: 4px; }
.side-box { margin: 0 0 6px; }
.side-box-one, .side-box > summary { background: transparent; border: 0; border-radius: 10px; padding: 6px 10px; gap: 9px; color: var(--ink-2); }
.side-box > summary:hover, .side-box[open] > summary { background: var(--tint); }
.side-box-one > svg, .side-box > summary > svg:first-child { width: 18px; height: 18px; padding: 0; background: transparent; border-radius: 0; color: var(--ok); }
.side-box b { font-size: 13.5px; font-weight: 500; }
/* Alto do menu: logo com o botão de trocar de produto ao lado, respiro, a conta, respiro, o menu. */
.side-top { display: flex; align-items: center; gap: 8px; padding: 4px 4px 0 0; margin-bottom: 22px; }
.side-top .side-brand { flex: 1; min-width: 0; padding: 0 8px; }
.side-apps { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); flex: none; }
.side-apps:hover { background: var(--tint); color: var(--ink); }
.side-co { margin-bottom: 22px; }
.side-nav > .side-label:first-child { margin-top: 0; }

/* Lista dos produtos no botão ao lado da logo */
.side-top { position: relative; }
.apps-menu { position: static; flex: none; margin-left: auto; }
.apps-menu > summary { list-style: none; cursor: pointer; }
.apps-menu > summary::-webkit-details-marker { display: none; }
.apps-menu[open] > .side-apps { background: var(--tint-2); color: var(--ink); }
.apps-pop { left: 0; right: 0; top: calc(100% + 8px); min-width: 0; z-index: 30; }
.menu-pop .apps-opt { display: flex; align-items: center; gap: 12px; padding: 9px 10px; width: 100%; }
.apps-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--chat-soft); color: var(--chat); }
.apps-ic.grupos { background: var(--grupos-soft); color: var(--grupos); }
.apps-ic.insta { background: var(--insta-soft); color: var(--insta); }
.menu-pop .apps-ic svg { color: inherit; }
.apps-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.apps-txt b { font-weight: 600; font-size: 14px; color: var(--ink); }
.apps-txt small { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.apps-opt[aria-current] { background: var(--tint); }
.apps-opt.off .apps-ic, .apps-opt.off .apps-txt { opacity: .55; }
.menu-pop span.apps-opt { cursor: default; box-sizing: border-box; border-radius: 10px; }
.apps-get { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 99px; background: var(--tint); color: var(--blue); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.menu-pop .apps-get svg { color: var(--blue); }
.apps-lock { color: var(--muted); display: grid; place-items: center; }

/* Foto de perfil no lugar das iniciais */
img.face { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.av:has(> img.face), .me-av:has(> img.face), .kb-av:has(> img.face) { background: var(--tint); overflow: hidden; }
.av.xs { width: 20px; height: 20px; font-size: 8.5px; display: inline-grid; vertical-align: -5px; }
.db-who { display: inline-flex; align-items: center; gap: 8px; }
.db-who .av { width: 24px; height: 24px; font-size: 9.5px; }
.pf { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.pf-row { display: flex; align-items: center; gap: 16px; }
.pf-av { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: #e5eef9; color: #2a5a93; font-weight: 600; font-size: 30px; overflow: hidden; flex: none; }
.pf-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf .form { width: 100%; }

.connect-del { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.connect-del .danger { color: var(--bad); }

/* Banner da tela inicial (aviso da plataforma para os clientes) */
.hub-bn { margin-bottom: 32px; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.hub-bn.no-img { background: #eef4ff; border-color: #d6e3fb; }
.hub-bn-pic { display: block; }
.hub-bn picture { display: block; }
.hub-bn-img { display: block; width: 100%; max-height: 200px; object-fit: cover; }
.hub-bn-body { display: flex; align-items: center; gap: 20px; padding: 14px 20px; }
.hub-bn-txt { flex: 1; min-width: 0; }
.hub-bn-txt b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.hub-bn-txt p { margin-top: 2px; color: var(--ink-2); font-size: 14px; }
.hub-bn-btn { flex: none; }
.bn-prev { margin-bottom: 20px; display: grid; gap: 12px; }
.bn-prev .hub-bn { margin-bottom: 0; }
.bn-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .bn-forms { grid-template-columns: 1fr; } }
.bn-pick img { display: block; width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.bn-imgs { display: grid; gap: 14px; }
.bn-img { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.bn-img h3 { margin: 0; font-size: 15px; font-weight: 600; }
.bn-cur { display: block; width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.bn-cur.celular { width: 140px; }
/* Caixas dos produtos: borda mais firme, sombra leve e a cor de cada produto no topo. */
.in-hub .prod { border-color: var(--line-2); border-top: 3px solid var(--chat); box-shadow: 0 1px 2px rgba(28, 34, 48, .05), 0 8px 24px rgba(28, 34, 48, .05); }
.in-hub .prod.grupos { border-top-color: var(--grupos); }
.in-hub .prod.insta { border-top-color: var(--insta); }
.in-hub .prod:hover { border-color: #c3c9d3; border-top-color: var(--chat); box-shadow: 0 2px 4px rgba(28, 34, 48, .06), 0 14px 32px rgba(28, 34, 48, .09); }
.in-hub .prod.grupos:hover { border-top-color: var(--grupos); }
.in-hub .prod.insta:hover { border-top-color: var(--insta); }
@media (max-width: 640px) {
  .hub-bn-img { max-height: none; }
  .hub-bn { margin-bottom: 24px; }
  .hub-bn-body { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .hub-bn-btn { justify-content: center; }
}

/* Backoffice: monitor do servidor */
.sv-meters { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sv-m { gap: 6px; }
.sv-bar { display: block; height: 6px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.sv-bar i { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.sv-bar i.warn { background: var(--warn); }
.sv-bar i.bad { background: var(--bad, #d64545); }
.sv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.sv-grid h2 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.sv-chart svg { display: block; width: 100%; height: auto; }
.sv-line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sv-area { fill: var(--blue); opacity: .08; }
.sv-grid-line { stroke: var(--line); stroke-width: 1; }
.sv-axis { fill: var(--muted); font-size: 11px; }
.sv-list { display: grid; gap: 0; }
.sv-list li { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 10px 0; border: 0; border-top: 1px solid var(--line); font-size: 14.5px; }
#sv + .hint { margin-top: 18px; }
.sv-list li:first-child { border-top: 0; }
.sv-list li span { color: var(--ink-2); }
@media (max-width: 860px) { .sv-grid { grid-template-columns: 1fr; } }
