/* ELIA: tema noir e dourado (o mesmo da marca no Elegancia-CRM). Sempre escuro.
   Estilos com propriedades lógicas (inline-start/end), pensando primeiro no celular. */

@font-face { font-family: "Antonio"; font-weight: 200; font-display: swap; src: url(fontes/antonio-latin-200-normal.woff2) format("woff2"); }
@font-face { font-family: "Antonio"; font-weight: 300; font-display: swap; src: url(fontes/antonio-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url(fontes/montserrat-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url(fontes/montserrat-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url(fontes/montserrat-latin-600-normal.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --display: "Antonio", "Arial Narrow", sans-serif;
  --texto: "Montserrat", system-ui, sans-serif;
  --bg: #0D0D0F;
  --surface: #151417;
  --surface-2: #1E1C20;
  --field: #121114;
  --line: #2C2930;
  --fg: #EDEAE3;
  --muted: #9A958C;
  --gold: #D1AD54;
  --gold-hi: #F0D88F;
  --danger: #E5675B;
  --ok: #5DBB7A;
  --warn: #E8C877;
  --raio: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--fg); font: 400 14px/1.5 var(--texto); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold-hi); }

/* ---------- botões e campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); cursor: pointer; font-weight: 500;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--gold); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primario { background: var(--gold); border-color: var(--gold); color: #141210; font-weight: 600; }
.btn.primario:hover { background: var(--gold-hi); }
.btn.perigo { color: var(--danger); }
.btn.perigo:hover { border-color: var(--danger); }
.btn.pequeno { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn svg { width: 18px; height: 18px; }
.ico-btn {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: 10px;
  background: transparent; color: var(--fg); cursor: pointer; text-decoration: none;
}
.ico-btn:hover { background: var(--surface-2); color: var(--gold-hi); }
.ico-btn svg { width: 21px; height: 21px; }

.campo { display: grid; gap: 6px; }
.campo > span { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.campo small { color: var(--muted); font-size: 12px; }
input[type=text], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); outline: 0;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
.senha-box { position: relative; }
.senha-box input { padding-inline-end: 44px; }
.senha-box .olho { position: absolute; inset-inline-end: 4px; inset-block-start: 1px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--gold); width: 17px; height: 17px; flex: none; }
.check b { font-weight: 500; display: block; }
.check small { color: var(--muted); font-size: 12px; }

.msg { border-radius: 10px; padding: 9px 12px; font-size: 13px; }
.msg.erro { background: color-mix(in srgb, var(--danger) 14%, transparent); border-inline-start: 3px solid var(--danger); }
.msg.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); border-inline-start: 3px solid var(--ok); }
.msg.aviso { background: #2A2312; color: var(--warn); }

/* ---------- login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login-caixa { width: 100%; max-width: 360px; display: grid; gap: 18px; }
.login-marca { width: 150px; justify-self: center; }
.marca-nome { text-align: center; }
.marca-nome .nome { font-family: var(--display); font-weight: 200; font-size: 54px; letter-spacing: .3em; margin-inline-end: -.3em; line-height: 1; }
.marca-nome .sub { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 10px; color: var(--gold); font-size: 11.5px; letter-spacing: .3em; }
.marca-nome .sub::before, .marca-nome .sub::after { content: ""; width: 28px; height: 1px; background: color-mix(in srgb, var(--gold) 60%, transparent); }
.login form { display: grid; gap: 14px; margin-top: 8px; }
.login .btn.primario { width: 100%; min-height: 46px; }
.rodape { text-align: center; color: var(--muted); font-size: 11.5px; }

/* ---------- barra superior ---------- */
.topo {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 8px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topo .marca { display: flex; align-items: center; gap: 10px; margin-inline-end: auto; padding-inline-start: 6px; text-decoration: none; color: var(--fg); }
.topo .marca .elia-mark { width: 30px; }
.topo .marca span { font-family: var(--display); font-weight: 300; font-size: 21px; letter-spacing: .22em; color: var(--gold-hi); }
.topo .marca em { font-style: normal; font-family: var(--texto); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600;
  background: color-mix(in srgb, var(--gold) 22%, var(--surface-2)); color: var(--gold-hi); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}

.faixa { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: center; padding: 10px 16px; background: #2A2312; color: var(--warn); font-size: 13px; text-align: center; }

/* ---------- chat ---------- */
.chat { display: grid; grid-template-rows: 1fr auto; }
.chat-rolagem { overflow-y: auto; padding: 24px 16px; }
.boas-vindas { max-width: 560px; margin: 4vh auto 0; display: grid; justify-items: center; text-align: center; gap: 12px; }
.boas-vindas-marca { width: 120px; }
.boas-vindas h1 { margin: 10px 0 0; font-size: 20px; font-weight: 600; }
.boas-vindas p { margin: 0; color: var(--muted); max-width: 40ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 13px;
}
.chip[aria-pressed=true] { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold-hi); }
.chip.estatico { cursor: default; }
.chat-baixo { padding: 8px 12px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.entrada { max-width: 760px; margin: 0 auto; display: flex; align-items: flex-end; gap: 6px; border: 1px solid var(--line); background: var(--field); border-radius: 24px; padding: 6px 6px 6px 16px; }
.entrada:focus-within { border-color: var(--gold); }
.entrada textarea { flex: 1; min-height: 0; max-height: 160px; border: 0; background: transparent; padding: 8px 0; resize: none; }
.enviar { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 0; background: var(--gold); color: #141210; display: grid; place-items: center; cursor: pointer; }
.enviar:disabled { opacity: .4; cursor: default; }
.enviar svg { width: 18px; height: 18px; }
.nota-baixo { max-width: 760px; margin: 6px auto 0; text-align: center; font-size: 11.5px; color: var(--muted); }

/* ---------- folha (modal; tela cheia no celular) ---------- */
.fundo-folha { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .6); display: grid; place-items: end center; }
.folha {
  width: 100%; max-height: 100dvh; overflow-y: auto; background: var(--surface); border-top: 1px solid var(--line);
  border-radius: 18px 18px 0 0; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); animation: subir .2s ease-out;
}
@keyframes subir { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.folha-topo { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 12px 0; background: var(--surface); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.folha-topo h2 { margin: 0; font-size: 16px; font-weight: 600; margin-inline-end: auto; }
.folha-corpo { display: grid; gap: 16px; }
.folha-acoes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding-top: 4px; }
.folha-acoes .esquerda { margin-inline-end: auto; }
@media (min-width: 700px) {
  .fundo-folha { place-items: center; padding: 24px; }
  .folha { max-width: 620px; max-height: calc(100dvh - 48px); border: 1px solid var(--line); border-radius: 18px; }
}
.grupo { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--raio); }
.grupo > h3 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.grade-2 { display: grid; gap: 12px; }
@media (min-width: 520px) { .grade-2 { grid-template-columns: 1fr 1fr; } .grade-2 .largo { grid-column: 1 / -1; } }

/* ---------- administração ---------- */
.admin { max-width: 980px; margin: 0 auto; padding: 16px; display: grid; gap: 16px; }
.abas { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.aba { border: 0; background: none; padding: 10px 14px; cursor: pointer; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.aba[aria-selected=true] { color: var(--gold-hi); border-bottom-color: var(--gold); }
.barra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.barra input[type=search] { flex: 1; min-width: 180px; }
.cartoes { display: grid; gap: 10px; }
@media (min-width: 700px) { .cartoes { grid-template-columns: 1fr 1fr; } }
.cartao {
  display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--raio); background: var(--surface);
  text-align: start; cursor: pointer; width: 100%;
}
.cartao:hover { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); }
.cartao-topo { display: flex; align-items: center; gap: 10px; }
.cartao-topo .titulo { min-width: 0; flex: 1; }
.cartao-topo b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cartao-topo small { color: var(--muted); }
.etiquetas { display: flex; flex-wrap: wrap; gap: 6px; }
.etiqueta { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.etiqueta.ouro { color: var(--gold-hi); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.etiqueta.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.etiqueta.erro { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.vazio { padding: 32px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--raio); }
.lista-checks { display: grid; gap: 10px; }
@media (min-width: 520px) { .lista-checks.duas { grid-template-columns: 1fr 1fr; } }
.contador { text-align: end; }
.confirmar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--danger); font-size: 13px; }

.conta-cab { display: flex; gap: 12px; align-items: center; }
.conta-cab .avatar { width: 48px; height: 48px; font-size: 17px; }
.conta-cab small { display: block; color: var(--muted); }
.avatar svg { width: 18px; height: 18px; }
/* O app ocupa a tela: a faixa de aviso não empurra a caixa de pergunta para fora. */
#tela-app:not([hidden]) { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
#tela-app .chat { flex: 1; min-height: 0; }
.cartoes > .vazio { grid-column: 1 / -1; }

/* ---------- chat: histórico + conversa ---------- */
.app-corpo { flex: 1; min-height: 0; display: flex; }
.historico {
  position: fixed; z-index: 40; inset: 56px auto 0 0; width: min(86vw, 300px); background: var(--surface); border-inline-end: 1px solid var(--line);
  transform: translateX(-102%); transition: transform .2s ease; display: grid; grid-template-rows: auto 1fr; min-height: 0;
}
.historico.aberto { transform: none; box-shadow: 12px 0 30px rgba(0, 0, 0, .35); }
.fundo-historico { position: fixed; inset: 56px 0 0; z-index: 39; background: rgba(0, 0, 0, .5); }
@media (min-width: 1000px) {
  .historico { position: static; transform: none; box-shadow: none; flex: none; width: 280px; }
  .historico.fechado-desktop { display: none; }
  .fundo-historico { display: none; }
}
.historico .nova { margin: 12px; justify-content: flex-start; }
.lista-conversas { overflow-y: auto; padding: 0 8px 16px; min-height: 0; }
.grupo-data { margin: 14px 8px 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.item-conversa { display: flex; align-items: center; border-radius: 8px; }
.item-conversa .abrir { flex: 1; min-width: 0; text-align: start; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.item-conversa:hover .abrir { background: var(--surface-2); }
.item-conversa.ativa .abrir { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold-hi); }
.item-conversa .apagar { opacity: 0; width: 30px; height: 30px; }
.item-conversa .apagar svg { width: 16px; height: 16px; }
.item-conversa:hover .apagar, .item-conversa .apagar:focus-visible { opacity: 1; }
@media (hover: none) { .item-conversa .apagar { opacity: .6; } }
.item-conversa .confirmar { padding: 6px 10px; }

.chat { flex: 1; min-width: 0; }
.mensagens { max-width: 780px; margin: 0 auto; display: grid; gap: 22px; padding-bottom: 12px; }
.m-usuario { justify-self: end; max-width: 85%; background: var(--surface-2); border-radius: 18px 18px 4px 18px; padding: 9px 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.m-elia { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.m-elia .av { width: 30px; height: 30px; border-radius: 50%; background: var(--elia-noir); border: 1px solid rgba(209, 173, 84, .35); display: grid; place-items: center; }
.m-elia .av .elia-mark { width: 21px; }
.m-corpo { min-width: 0; display: grid; gap: 10px; padding-top: 4px; }
.vivo { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.md { line-height: 1.6; overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; } .md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 10px; }
.md ul, .md ol { margin: 0 0 10px; padding-inline-start: 22px; } .md li { margin: 3px 0; }
.md h1, .md h2, .md h3 { font-size: 15px; margin: 14px 0 6px; }
.md strong { color: #fff; font-weight: 600; }
.md code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.md pre { background: #111014; padding: 10px 12px; border-radius: 8px; overflow-x: auto; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.md .tabela { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin: 0 0 10px; }
.md table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
.md th, .md td { padding: 7px 12px; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; }
.md tr:last-child td { border-bottom: 0; }
.md th { background: var(--surface-2); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.consultas summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.consultas pre { margin: 6px 0 0; background: #111014; color: #D9F2C7; border-radius: 8px; padding: 9px 11px; font: 12px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.consultas pre.falhou { color: #F2B8B0; }
.acoes-msg { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.acoes-msg button { border: 0; background: none; padding: 0; color: var(--muted); cursor: pointer; font-size: 12px; }
.acoes-msg button:hover { color: var(--gold-hi); }
.enviar.parar { background: var(--surface-2); color: var(--fg); border: 1px solid var(--line); }
.chip.geral { border-style: dashed; }
.lista-modelos { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- anexos, microfone e voz ---------- */
.entrada { padding-inline-start: 6px; }
.entrada .clipe, .entrada .microfone { width: 38px; height: 38px; color: var(--muted); }
.entrada .clipe:hover, .entrada .microfone:hover { color: var(--gold-hi); }
.entrada textarea { padding-inline-start: 4px; }
.microfone.gravando { color: #fff; background: var(--danger); border-radius: 50%; animation: gravando 1.4s ease-in-out infinite; }
@keyframes gravando { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 55%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }
.anexos-compondo { max-width: 760px; margin: 0 auto 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.anexo {
  display: inline-flex; align-items: center; gap: 8px; max-width: 260px; padding: 4px 6px 4px 4px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-2); font-size: 12.5px; line-height: 1.25;
}
.anexo .miniatura { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex: none; }
.anexo .tipo { width: 38px; height: 38px; border-radius: 8px; flex: none; display: grid; place-items: center; background: #3a3540; color: var(--gold-hi); }
.anexo .tipo svg { width: 18px; height: 18px; }
.anexo .info { display: grid; min-width: 0; }
.anexo .info b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anexo .info small { color: var(--muted); }
.anexo .tirar { width: 26px; height: 26px; }
.anexo .tirar svg { width: 14px; height: 14px; }
.anexo.erro { border-color: var(--danger); }
.anexo.erro small { color: var(--danger); }
.m-usuario-caixa { justify-self: end; max-width: 85%; display: grid; justify-items: end; gap: 6px; }
.m-usuario-caixa .m-usuario { max-width: 100%; }
.acoes-msg button.tocando { color: var(--gold-hi); }
.codigo { display: block; background: #111014; color: #EADFBF; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font: 12.5px/1.55 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }

/* ---------- uso e servidor ---------- */
.grafico { position: relative; width: 100%; }
.grafico svg { display: block; font-family: var(--texto); }
.grafico-dica { position: absolute; z-index: 2; pointer-events: none; background: #232026; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12px; display: grid; gap: 1px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.grafico-dica span { color: var(--muted); }
.indicadores { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .indicadores { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.indicador { border: 1px solid var(--line); border-radius: var(--raio); background: var(--surface); padding: 12px 14px; display: grid; gap: 6px; min-width: 0; }
.indicador > span { font-size: 12px; color: var(--muted); }
.indicador b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; }
.indicador small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.medidor { height: 6px; border-radius: 3px; background: #2A2620; overflow: hidden; }
.medidor i { display: block; height: 100%; border-radius: 3px; background: var(--gold); transition: width .4s; }
.medidor i.aviso { background: var(--warn); }
.medidor i.perigo { background: var(--danger); }
.painel { border: 1px solid var(--line); border-radius: var(--raio); background: var(--surface); padding: 14px; display: grid; gap: 10px; min-width: 0; align-content: start; }
.painel > h3 { margin: 0; font-size: 13px; font-weight: 600; }
.painel > h3 small { font-weight: 400; color: var(--muted); margin-inline-start: 6px; }
.duas-colunas { display: grid; gap: 12px; }
@media (min-width: 860px) { .duas-colunas { grid-template-columns: 1fr 1fr; } }
.tabela-simples { overflow-x: auto; }
.tabela-simples table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tabela-simples th, .tabela-simples td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; }
.tabela-simples th { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tabela-simples td.n, .tabela-simples th.n { text-align: end; }
.tabela-simples tr:last-child td { border-bottom: 0; }
.tabela-simples td.quebra { white-space: normal; min-width: 220px; }
.estado { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.estado::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.estado.ok { color: var(--ok); }
.estado.falha { color: var(--danger); }
.segmentos { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.segmentos button { border: 0; background: none; color: var(--muted); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 13px; }
.segmentos button[aria-pressed=true] { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold-hi); }
.maquina { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--muted); }
.maquina b { color: var(--fg); font-weight: 500; }

/* ---------- gráficos e exportação nas respostas ---------- */
.acoes-msg { flex-wrap: wrap; align-items: center; row-gap: 6px; }
.acoes-msg .sep { width: 1px; height: 12px; background: var(--line); }
.acoes-msg button:disabled { cursor: default; color: var(--gold-hi); }
.grafico-chat { margin: 4px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 12px 8px; }
.grafico-chat.falhou { color: var(--muted); font-size: 13px; padding: 12px 14px; }
.gc-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.gc-topo figcaption { font-weight: 600; font-size: 13.5px; color: var(--fg); }
.gc-acoes { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.gc-acoes button, .gc-acoes select {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); border-radius: 999px;
  font-size: 11.5px; padding: 3px 10px; min-height: 26px; cursor: pointer;
}
.gc-acoes select { width: auto; padding-inline-end: 6px; }
.gc-acoes button:hover, .gc-acoes select:hover, .gc-acoes button.ativo { color: var(--gold-hi); border-color: var(--gold); }
.gc-area { width: 100%; }
.gc-dados { margin-top: 8px; }
.gc-dados .tabela { margin: 0; }
.gc-dados td.n { text-align: end; }
.grafico-montando { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; border: 1px dashed var(--line); border-radius: 12px; padding: 14px; margin: 4px 0 12px; }
