@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/vendor/inter-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/vendor/inter-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --azul: #0028fe; --azul-forte: #0020d6;
  --tinta: oklch(0.2795 0.0368 260.03); --tinta-forte: oklch(0.2077 0.0398 265.75); --fraco: oklch(0.5544 0.0407 257.42); --apagado: oklch(0.7107 0.0351 256.79);
  --linha: oklch(0.9288 0.0126 255.51); --linha-forte: oklch(0.869 0.0198 252.89); --caixa: oklch(0.9683 0.0069 247.9); --fundo: oklch(0.9851 0 0); --papel: oklch(1 0 0);
  --lavanda: oklch(0.9371 0.031 283.8); --noite: oklab(0.2077 -0.0029 -0.0397 / 0.9);
  --verde: oklch(0.627 0.194 149.2); --verde-claro: oklch(0.962 0.044 156.7); --laranja: oklch(0.6461 0.1943 41.12); --laranja-claro: oklab(0.6461 0.1461 0.1277 / 0.1);
  --vermelho: oklch(0.577 0.215 27.33); --vermelho-claro: oklch(0.971 0.013 17.4);
  --sombra: 0 1px 2px 0 oklch(0 0 0 / 0.05);
  --sombra-alta: 0 4px 6px -1px oklch(0 0 0 / 0.1), 0 2px 4px -2px oklch(0 0 0 / 0.1);
  --sombra-painel: 0 10px 15px -3px oklch(0 0 0 / 0.1), 0 4px 6px -4px oklch(0 0 0 / 0.1);
  --degrade: linear-gradient(oklch(0.5053 0.2773 265.14) 0%, oklch(0.7992 0.1033 280.75) 100%);
  --degrade-diagonal: linear-gradient(135deg, oklch(0.5053 0.2773 265.14) 0%, oklch(0.7992 0.1033 280.75) 100%);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 Inter, sans-serif; color: var(--tinta); background: var(--fundo); -webkit-font-smoothing: antialiased; }
h1 { font-size: 20px; line-height: 1.25; font-weight: 600; margin: 0; } h2 { font-size: 18px; line-height: 1.35; font-weight: 600; margin: 0; } h3 { font-size: 14px; font-weight: 600; margin: 0 0 12px; }
p { margin: 6px 0; } small { color: var(--fraco); font-size: 12px; line-height: 1.5; } a { color: var(--azul); text-decoration: none; } a:hover { text-decoration: underline; }
.ic { flex: none; }
.ic.virar { transform: rotate(180deg); }

/* ---------- controles ---------- */
button, input, select, textarea { font: inherit; color: inherit; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 16px; background: var(--papel); border: 1px solid var(--linha); border-radius: 8px; box-shadow: var(--sombra); font-weight: 500; cursor: pointer; transition: background .12s, border-color .12s; }
button:hover { background: var(--caixa); }
button:disabled { opacity: .5; cursor: default; }
button.principal { background: var(--azul); border-color: var(--azul); color: var(--fundo); box-shadow: none; }
button.principal:hover { background: var(--azul-forte); }
button.alto { min-height: 40px; }
button.perigo { color: var(--vermelho); }
button.perigo:hover { background: var(--vermelho-claro); }
button.suave { background: var(--caixa); border-color: transparent; box-shadow: none; color: var(--tinta-forte); }
button.suave:hover { background: var(--linha); }
button.liso { border-color: transparent; background: transparent; box-shadow: none; }
button.liso:hover { background: var(--caixa); }
button.quadrado { width: 36px; padding: 0; background: var(--caixa); border-color: transparent; box-shadow: none; flex: none; }
button.quadrado:hover { background: var(--linha); }
button.quadrado.grande { width: 40px; min-height: 40px; }
button.quadrado.mini { width: 32px; min-height: 32px; }
button.icone { min-height: 24px; width: 24px; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--tinta); }
button.icone:hover { background: var(--caixa); }
button.texto { min-height: 24px; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--azul); }
button.texto:hover { background: transparent; text-decoration: underline; }
input, select, textarea { width: 100%; min-height: 40px; padding: 8px 12px; background: var(--papel); border: 1px solid var(--linha); border-radius: 8px; box-shadow: var(--sombra); }
select { appearance: none; padding-right: 36px; cursor: pointer; font-weight: 500; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2362748e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
input::placeholder, textarea::placeholder { color: var(--fraco); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--azul); box-shadow: 0 0 0 3px #0028fe22; }
input[type=checkbox], input[type=radio] { appearance: none; display: inline-grid; place-content: center; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; flex: none; background: var(--papel); border: 1px solid var(--linha-forte); box-shadow: none; cursor: pointer; }
input[type=checkbox] { border-radius: 6px; } input[type=radio] { border-radius: 50%; }
input[type=checkbox]:checked { background: var(--azul) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--azul); }
input[type=radio]:checked { border: 5px solid var(--azul); }
textarea { resize: vertical; min-height: 90px; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }

/* ---------- moldura: trilho de ícones e folha branca ---------- */
.moldura { display: grid; grid-template-columns: 64px 1fr; height: 100vh; background: var(--degrade); }
.trilho { display: flex; flex-direction: column; align-items: center; padding: 12px 0; color: var(--fundo); min-height: 0; overflow: hidden; }
.trilho .logo { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 48px; color: var(--fundo); flex: none; }
.trilho .itens { display: flex; flex-direction: column; gap: 16px; }
.trilho a.item, .trilho button.item { position: relative; display: grid; place-items: center; width: 40px; height: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: oklab(0.9851 0 0 / 0.8); }
.trilho .item:hover { background: oklch(1 0 0 / 0.12); color: var(--fundo); }
.trilho .item.ativo { background: oklch(1 0 0 / 0.2); color: var(--fundo); }
.trilho .espaco { flex: 1; }
.trilho .beta { position: absolute; top: -9px; right: -9px; padding: 0 7px; border-radius: 99px; background: #000; color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; pointer-events: none; }
.etiqueta-flutuante { position: fixed; z-index: 90; max-width: 300px; padding: 8px 12px; border-radius: 6px; background: oklch(0.278 0.033 256.848); color: #fff; font-size: 14px; line-height: 20px; box-shadow: 0 4px 12px oklch(0 0 0 / 0.18); pointer-events: none; }
.etiqueta-flutuante[hidden] { display: none; }
.etiqueta-flutuante b, .etiqueta-flutuante span { display: block; }
.etiqueta-flutuante b + span { margin-top: 4px; font-size: 12px; line-height: 17px; opacity: .85; }
.etiqueta-flutuante::before { content: ''; position: absolute; width: 8px; height: 8px; background: inherit; transform: translate(-50%, -50%) rotate(45deg); }
.etiqueta-flutuante[data-lado="direita"]::before { left: 0; top: var(--seta); }
.etiqueta-flutuante[data-lado="cima"]::before { left: var(--seta); top: 100%; }
.etiqueta-flutuante[data-lado="baixo"]::before { left: var(--seta); top: 0; }
.trilho .divisor { width: 40px; height: 1px; background: oklch(1 0 0 / 0.3); margin: 20px 0 24px; flex: none; }
.trilho .anel { position: relative; display: grid; place-items: center; width: 41px; height: 41px; margin-top: 16px; font-size: 10px; font-weight: 600; color: var(--fundo); flex: none; }
.trilho .anel svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.trilho .baixo { display: flex; flex-direction: column; gap: 24px; align-items: center; }
.trilho button.eu { width: 36px; height: 36px; min-height: 36px; margin-top: 14px; padding: 0; border: 0; border-radius: 6px; background: var(--linha); color: var(--tinta); font-size: 12px; font-weight: 600; flex: none; }
.trilho button.eu:hover { background: var(--papel); }
.trilho .bolinha { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--vermelho); border: 1.5px solid #fff; }
.folha { background: var(--fundo); border-radius: 16px 0 0 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.barra-topo { display: flex; align-items: center; gap: 24px; height: 80px; padding: 0 33px; background: var(--papel); border-bottom: 1px solid var(--linha); flex: none; }
.barra-topo .espaco { flex: 1; }
.barra-topo .acoes { display: flex; gap: 8px; align-items: center; }
.barra-topo .migalhas { display: flex; align-items: center; gap: 8px; color: var(--fraco); font-size: 14px; }
.miolo { flex: 1; display: flex; min-height: 0; }
.sublado { position: relative; width: 288px; flex: none; background: var(--papel); border-right: 1px solid var(--linha); padding: 32px 24px; overflow-y: auto; }
.sublado h2 { margin-bottom: 24px; }
.sublado h4 { margin: 20px 8px 8px; font-size: 12px; font-weight: 500; color: var(--fraco); }
.sublado a { position: relative; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 26px; margin-bottom: 12px; border-radius: 8px; color: var(--tinta); font-weight: 500; }
.sublado a:hover { background: var(--caixa); text-decoration: none; }
.sublado a.ativo { background: var(--lavanda); }
.sublado a.ativo::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--azul); }
.sublado.compacto a { height: 40px; margin-bottom: 4px; padding: 0 14px; }
.rolo { flex: 1; overflow: auto; min-width: 0; }
.pagina { padding: 32px 24px 64px; }
.pagina.estreita { max-width: 1120px; margin: 0 auto; }

/* ---------- peças ---------- */
.cartao { background: var(--papel); border: 1px solid var(--linha); border-radius: 12px; padding: 24px; }
.grade { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); }
.secao { margin-top: 32px; }
.titulo-secao { display: flex; align-items: center; gap: 12px; min-height: 36px; margin-bottom: 16px; }
.titulo-secao h3 { font-size: 16px; margin: 0; }
.titulo-secao .espaco { flex: 1; }
.contagem { display: inline-grid; place-items: center; min-width: 25px; height: 22px; padding: 0 7px; border: 1px solid var(--linha-forte); border-radius: 99px; font-size: 12px; font-weight: 500; }
.contagem.cheia { border-color: transparent; background: var(--caixa); font-weight: 600; color: var(--tinta-forte); }
.divisoria { border: 0; border-top: 1px solid var(--linha); margin: 24px 0; }
.filtros { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filtros .espaco { flex: 1; }
.filtros > input { width: auto; flex: 0 1 320px; }
.filtros > select { width: auto; min-width: 144px; min-height: 44px; }
.busca { display: flex; align-items: center; gap: 12px; flex: 0 1 320px; height: 40px; padding: 0 17px; background: var(--papel); border: 1px solid var(--linha); border-radius: 8px; box-shadow: var(--sombra); color: var(--fraco); }
.busca:focus-within { border-color: var(--azul); }
.busca input { border: 0; padding: 0; min-height: 36px; box-shadow: none; color: var(--tinta); }
.marcavel { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; cursor: pointer; }
.segmento { display: inline-flex; padding: 3px; gap: 0; background: var(--linha); border-radius: 8px; }
.segmento button { min-height: 29px; padding: 0 10px; border: 0; background: transparent; box-shadow: none; }
.segmento button.ativo { background: var(--papel); box-shadow: var(--sombra); }
.vista { display: inline-flex; }
.vista button { width: 36px; padding: 0; border-color: var(--linha); border-radius: 0; }
.vista button:first-child { border-radius: 8px 0 0 8px; } .vista button:last-child { border-radius: 0 8px 8px 0; }
.vista button.ativo { background: var(--caixa); }
.rolagem { overflow-x: auto; background: var(--papel); border: 1px solid var(--linha); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--linha); vertical-align: middle; }
th { height: 40px; padding-block: 0; font-size: 12px; font-weight: 500; color: var(--fraco); background: var(--caixa); }
tbody tr:last-child td { border-bottom: 0; }
tr.clicavel { cursor: pointer; } tr.clicavel:hover td { background: var(--fundo); }
.rolagem.dentro { margin: 0 8px 8px; }
.rolagem.dentro th, .rolagem.dentro td { border-right: 1px solid var(--linha); }
.rolagem.dentro th:last-child, .rolagem.dentro td:last-child { border-right: 0; width: 70px; text-align: center; }
.grupo-canal { display: flex; align-items: center; gap: 8px; height: 53px; padding: 0 16px; }
.grupo-canal b { font-weight: 500; } .grupo-canal .espaco { flex: 1; }
.selo { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; font-size: 12px; font-weight: 500; padding: 0 9px; margin: 2px 6px 2px 0; border: 1px solid transparent; border-radius: 99px; background: var(--caixa); color: var(--tinta-forte); white-space: nowrap; }
.selo.forte { font-weight: 600; }
.selo.contorno { background: var(--papel); border-color: var(--linha-forte); }
.selo.bom { background: var(--verde-claro); color: oklch(0.448 0.119 151.3); }
.selo.alerta { background: var(--laranja-claro); color: var(--laranja); }
.selo.erro { background: var(--vermelho-claro); color: var(--vermelho); }
.selo.azul { background: var(--lavanda); color: var(--azul); }
.vazio { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 20px; color: var(--fraco); }
.vazio .marcador { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 8px; background: var(--caixa); color: var(--tinta); }
.vazio strong { color: var(--tinta); font-size: 16px; font-weight: 600; }
.vazio p { max-width: 340px; font-weight: 500; }
.vazio button { margin-top: 16px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--lavanda); color: var(--azul); display: inline-grid; place-items: center; font-weight: 600; flex: none; object-fit: cover; }
.pessoa { display: flex; gap: 12px; align-items: center; min-width: 0; }
.pessoa > div { min-width: 0; font-weight: 600; }
.pessoa small { display: block; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.canal-ic { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: #fff; background: linear-gradient(45deg, #fcb045, #fd1d1d 45%, #c13584 70%, #833ab4); flex: none; }
.canal-ic .ic, .menu-blocos .itens button .canal-ic .ic { width: 15px; height: 15px; color: #fff; margin: 0; }
.canal-ic.mini { width: 16px; height: 16px; border-radius: 5px; } .canal-ic.mini .ic { width: 12px; height: 12px; }

/* ---------- lista de automações: um cartão por linha ---------- */
.linhas-auto { display: grid; gap: 12px; }
.linha-auto { display: grid; grid-template-columns: minmax(240px, 1fr) 216px 216px 80px 128px 36px; gap: 16px; align-items: center; min-height: 80px; padding: 14px 16px; background: var(--papel); border: 1px solid var(--linha); border-radius: 8px; cursor: pointer; }
.linha-auto:hover { border-color: var(--linha-forte); }
.linha-auto .nome { display: grid; grid-template-columns: 16px 1fr; gap: 4px 8px; align-items: center; min-width: 0; }
.linha-auto .nome b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linha-auto .nome > div { grid-column: 2; }
.linha-auto .dado b { display: block; font-weight: 500; } .linha-auto .dado span { color: var(--fraco); font-weight: 500; }
.linhas-auto.em-grade { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.linhas-auto.em-grade .linha-auto { grid-template-columns: 1fr auto; grid-auto-flow: row; align-content: start; }
.linhas-auto.em-grade .linha-auto .nome { grid-column: 1 / -1; }
.linha-auto .nome > div { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
/* quem manda é o espaço que sobra para a lista, não a largura da janela: a lateral e o menu comem parte dela */
.linhas-auto:not(.em-grade) { container: lista-de-autos / inline-size; }
@container lista-de-autos (max-width: 980px) {
  .linhas-auto:not(.em-grade) .linha-auto { grid-template-columns: minmax(0, 1fr) 88px 120px 36px; }
  .linhas-auto:not(.em-grade) .linha-auto .some { display: none; }
}
@container lista-de-autos (max-width: 600px) {
  .linhas-auto:not(.em-grade) .linha-auto { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; }
  .linhas-auto:not(.em-grade) .linha-auto .nome { grid-area: 1 / 1; }
  .linhas-auto:not(.em-grade) .linha-auto > button { grid-area: 1 / 2; justify-self: end; }
  .linhas-auto:not(.em-grade) .linha-auto .dado:not(.some) { grid-area: 2 / 1; display: flex; gap: 6px; padding-left: 24px; }
  .linhas-auto:not(.em-grade) .linha-auto .interruptor { grid-area: 2 / 2; }
}

/* ---------- início ---------- */
/* ---------- página inicial ---------- */
.inicio { padding: 32px 24px 24px; --sentimento-positivo: var(--verde); --sentimento-neutro: oklch(0.551 0.027 264.36); --sentimento-negativo: var(--vermelho); }
.saudacao { font-size: 30px; line-height: 1; font-weight: 600; letter-spacing: -1px; margin: 0 0 32px; }
.saudacao em { color: var(--azul); font-style: normal; }
.titulo-grande { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -1px; margin: 0; }
.numeros { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.numero { min-height: 82px; padding: 16px; border-radius: 8px; }
.numero b { display: block; font-size: 20px; line-height: 1.25; font-weight: 600; font-variant-numeric: tabular-nums; }
.numero > span { display: block; margin-top: 8px; color: var(--fraco); font-size: 12px; }
.numero .rotulo { display: flex; align-items: center; gap: 6px; color: var(--fraco); font-weight: 600; font-size: 12px; margin-bottom: 6px; }
.cabeca-resumo { align-items: flex-end; margin-bottom: 14px; }
.cabeca-resumo small { font-weight: 500; }
.inicio hr.do-inicio { margin: 32px 0; }
.passos-titulo { margin-bottom: 20px; }
.dupla { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.missoes { display: flex; flex-direction: column; min-height: 562px; padding: 24px; border-radius: 12px; color: var(--fundo); background: var(--degrade-diagonal); }
.missoes .cabeca { display: flex; justify-content: space-between; gap: 12px; align-items: center; height: 25px; }
.missoes .cabeca b { font-size: 18px; font-weight: 600; }
.missoes .cabeca span { padding: 2px 8px; line-height: 18px; border-radius: 99px; background: var(--caixa); color: var(--tinta-forte); font-size: 12px; font-weight: 500; }
.missoes > p { margin: 4px 0 0; font-weight: 500; line-height: 20px; }
.missoes .trilha-topo { display: flex; justify-content: space-between; align-items: center; margin: 25px 0 12px; line-height: 20px; }
.missoes .trilha-topo b { font-weight: 600; }
.missoes .trilha-topo span { font-size: 12px; font-weight: 600; }
.missoes .trilha { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; height: 8px; border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.missoes .trilha i { background: oklch(1 0 0 / 0.3); }
.missoes .trilha i.cheio { background: var(--papel); }
.missoes ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.missoes li { display: flex; align-items: center; gap: 12px; min-height: 69px; padding: 12px; border-radius: 12px; background: var(--papel); color: var(--tinta); }
.missoes li.depois { opacity: .7; }
.missoes li > i { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 1px solid var(--linha); border-radius: 4px; background: var(--caixa); }
.missoes li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.missoes li a { color: var(--tinta); font-weight: 600; line-height: 20px; }
.missoes li small { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; line-height: 16px; border-radius: 99px; background: #000; color: #fff; font-size: 10px; font-weight: 500; }
.missoes li button { min-height: 32px; padding: 0 12px; flex: none; }
.missoes li .trancado, .missoes li .marca-feito { display: grid; place-items: center; width: 32px; height: 32px; margin-right: 8px; flex: none; color: var(--fraco); }
.missoes li .marca-feito { border-radius: 50%; background: var(--verde-claro); color: var(--verde); }
.destaque-lado { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.destaque-lado .enfeite { position: absolute; top: 24px; right: 32px; }
.destaque-lado h3 { font-size: 20px; margin: 0 0 8px; } .destaque-lado h3 em { color: var(--azul); font-style: normal; }
.destaque-lado p { max-width: min(460px, calc(100% - 150px)); margin: 0 0 20px; color: var(--fraco); line-height: 23px; }
.destaque-lado ul { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 4px; font-weight: 500; }
.destaque-lado li { display: flex; gap: 16px; align-items: center; min-height: 32px; padding: 6px 8px; }
.cabeca-objetivos { margin-bottom: 20px; }
a.botao-suave { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 12px; border-radius: 8px; background: var(--caixa); color: var(--tinta-forte); font-weight: 500; }
a.botao-suave:hover { background: var(--linha); text-decoration: none; }
.faixa-objetivos { position: relative; }
.carrossel-objetivos { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.carrossel-objetivos::-webkit-scrollbar { display: none; }
button.objetivo { flex: 0 0 260px; display: flex; align-items: flex-start; justify-content: flex-start; gap: 20px; height: auto; min-height: 117px; padding: 16px; border-radius: 8px; text-align: left; box-shadow: none; font-weight: 400; }
.objetivo > .ic { margin-top: 2px; }
.objetivo > span { display: flex; flex-direction: column; gap: 2px; }
.objetivo b { font-weight: 500; line-height: 20px; }
.objetivo small { font-size: 14px; line-height: 20px; }
button.seta-objetivos { position: absolute; top: calc(50% - 18px); width: 36px; padding: 0; z-index: 2; box-shadow: var(--sombra-alta); }
button.seta-objetivos.vai { right: 8px; } button.seta-objetivos.volta { left: 8px; }
button.seta-objetivos[hidden] { display: none; }
.faixa-periodo { gap: 16px; align-items: center; min-height: 48px; margin-bottom: 20px; }
.total-contatos { display: inline-flex; align-items: center; gap: 8px; padding-left: 16px; font-weight: 500; }
.carimbos { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; line-height: 20px; color: var(--fraco); }
.carimbos span { display: inline-flex; align-items: center; gap: 6px; }
button.caixa-periodo { min-height: 48px; gap: 8px; padding: 8px 12px; border-radius: 6px; font-weight: 500; }
.caixa-periodo b { color: var(--azul); font-weight: 500; margin-left: 4px; }
.titulo-medio { font-size: 20px; line-height: 25px; font-weight: 600; margin: 0 0 20px; }
.interacoes { display: grid; gap: 16px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.interacao-numero { min-height: 104px; padding: 16px; border-radius: 8px; }
.interacao-numero .rotulo { display: flex; align-items: center; gap: 6px; color: var(--fraco); font-size: 12px; line-height: 16px; font-weight: 600; }
.interacao-numero .rotulo span { display: inline-flex; }
.interacao-numero b { display: block; font-size: 20px; line-height: 27px; font-weight: 500; font-variant-numeric: tabular-nums; }
.interacao-numero small { display: block; margin-top: 10px; line-height: 16px; }
.cartao-grafico { display: flex; flex-direction: column; min-width: 0; padding: 24px; border-radius: 8px; background: var(--papel); box-shadow: 0 1px 3px 0 oklch(0 0 0 / 0.1), 0 1px 2px -1px oklch(0 0 0 / 0.1); }
.cartao-grafico h3 { margin: 0; text-align: center; font-size: 24px; line-height: 24px; letter-spacing: -.5px; }
.cartao-grafico .intervalo { margin: 8px 0 0; text-align: center; color: var(--fraco); font-size: 16px; }
.cartao-grafico .sem-dados { flex: 1; display: grid; place-items: center; min-height: 200px; color: var(--fraco); font-size: 16px; }
.cartao-grafico .total { margin: auto 0 0; padding-top: 16px; text-align: center; font-weight: 500; }
.cartao-grafico.por-lista { min-height: 494px; margin-top: 20px; }
.cartao-grafico.por-lista h3 { font-size: 18px; line-height: 28px; letter-spacing: 0; }
.por-assunto { list-style: none; width: min(900px, 100%); margin: auto; padding: 0; display: grid; gap: 20px; }
.por-assunto li { display: grid; grid-template-columns: minmax(120px, 200px) 1fr 40px; align-items: center; gap: 16px; }
.por-assunto li > span { text-align: right; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.por-assunto li i { display: block; height: 28px; min-width: 3px; border-radius: 0 4px 4px 0; background: var(--azul); }
.dupla.de-graficos { margin-top: 20px; }
.de-graficos .cartao-grafico { min-height: 576px; }
.modos { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 24px; }
.modos button { min-height: 45px; padding: 0 16px; box-shadow: none; }
.modos button.ativo { border-color: var(--azul); color: var(--azul); background: oklch(0.97 0.02 266); }
.grafico-grade { flex: 1; display: flex; gap: 8px; margin: 32px 0 0; min-height: 260px; }
.grafico-grade .escala-y { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 24px; margin: -7px 0; text-align: right; font-size: 12px; color: var(--fraco); min-width: 24px; }
.grafico-grade .area { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.grafico-grade .plano { flex: 1; display: flex; align-items: flex-end; gap: 2px; background: repeating-linear-gradient(to bottom, var(--linha) 0 1px, transparent 1px 25%); border-bottom: 1px solid var(--linha-forte); }
.ponto-grade { position: relative; flex: 1; display: flex; align-items: flex-end; justify-content: center; height: 100%; min-width: 0; }
.ponto-grade i { display: block; width: 100%; max-width: 24px; border-radius: 4px 4px 0 0; background: var(--azul); }
.ponto-grade:hover, .ponto-grade:focus-visible { background: oklch(0.2795 0.0368 260.03 / 0.05); }
.ponto-grade:hover::after, .ponto-grade:focus-visible::after { content: attr(data-dica); position: absolute; top: 4px; left: 50%; transform: translateX(-50%); z-index: 3; padding: 4px 8px; border-radius: 6px; background: var(--tinta-forte); color: #fff; font-size: 12px; white-space: nowrap; pointer-events: none; }
.ponto-grade:first-child:hover::after, .ponto-grade:first-child:focus-visible::after { left: 0; transform: none; }
.ponto-grade:last-child:hover::after, .ponto-grade:last-child:focus-visible::after { left: auto; right: 0; transform: none; }
.grafico-grade .eixo-x { display: flex; gap: 2px; height: 24px; }
.grafico-grade .eixo-x span { flex: 1; min-width: 0; display: flex; justify-content: center; padding-top: 6px; font-size: 12px; color: var(--fraco); white-space: nowrap; }
.pizza { width: 100%; max-width: 520px; margin: auto; overflow: visible; }
.pizza .fatia { stroke: var(--papel); stroke-width: 2; }
.pizza .guia { fill: none; stroke: var(--apagado); }
.pizza text { fill: var(--fraco); font-size: 12px; }
@media (max-width: 1000px) { .dupla { grid-template-columns: 1fr; } .interacoes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .faixa-periodo { flex-wrap: wrap; } }
@media (max-width: 640px) { .inicio { padding: 20px 12px; } .destaque-lado .enfeite { display: none; } .destaque-lado p { max-width: none; } .por-assunto li { grid-template-columns: 90px 1fr 32px; } }
.barras { display: grid; gap: 10px; }
.barra { display: grid; grid-template-columns: 130px 1fr 36px; gap: 10px; align-items: center; font-size: 13px; }
.barra div { height: 8px; border-radius: 99px; background: var(--caixa); }
.barra i { display: block; height: 100%; border-radius: 99px; background: var(--azul); }
.escolhas { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 1103px; margin: 150px auto 0; }
.escolhas button { position: relative; flex-direction: column; justify-content: flex-start; gap: 12px; height: auto; min-height: 262px; padding: 28px; border-radius: 8px; text-align: center; box-shadow: none; }
.escolhas button:hover { border-color: var(--azul); background: var(--papel); }
.escolhas button b { font-size: 16px; font-weight: 600; } .escolhas button small { font-size: 14px; font-weight: 400; }
.escolhas .etiqueta-topo { position: absolute; top: 20px; right: 20px; margin: 0; }

/* ---------- camadas ---------- */
.fundo { position: fixed; inset: 0; background: oklch(0 0 0 / 0.5); display: grid; place-items: center; z-index: 30; padding: 16px; }
.janela { background: var(--papel); border-radius: 12px; width: min(480px, 100%); max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 25px 50px -12px oklch(0 0 0 / 0.25); }
.janela.larga { width: min(820px, 100%); }
.janela > header, .janela > footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 24px; }
.janela > header { border-bottom: 1px solid var(--linha); } .janela > footer { border-top: 1px solid var(--linha); justify-content: flex-end; }
.janela .corpo { padding: 20px 24px; overflow-y: auto; }
.lista-acoes { display: grid; gap: 8px; } .lista-acoes button { justify-content: flex-start; min-height: 44px; }
.campo { display: block; margin-bottom: 16px; }
.campo > span { display: block; font-weight: 500; margin-bottom: 8px; }
.campo > small { display: block; margin-top: 6px; }
.campo.ajuda-antes > small { margin: -2px 0 12px; }
.linha { display: flex; gap: 10px; align-items: center; }
.linha > .espaco { flex: 1; }
.marcar { display: flex; gap: 12px; align-items: center; min-height: 47px; padding: 12px 16px; border: 1px solid var(--linha); border-radius: 12px; margin-bottom: 16px; cursor: pointer; background: var(--papel); font-weight: 500; }
.marcar:hover, .marcar:has(:checked) { background: var(--caixa); }
.marcar small { font-weight: 400; display: block; }
.interruptor { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interruptor i { width: 32px; height: 18px; border-radius: 99px; background: var(--linha-forte); position: relative; flex: none; box-shadow: var(--sombra); transition: background .12s; }
.interruptor i::after { content: ""; position: absolute; width: 16px; height: 16px; top: 1px; left: 1px; border-radius: 50%; background: #fff; transition: left .12s; }
.interruptor input:checked + i { background: var(--azul); } .interruptor input:checked + i::after { left: 15px; }
.interruptor input:focus-visible + i { outline: 2px solid var(--azul); outline-offset: 2px; }
#recados { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 50; }
.recado { display: flex; align-items: center; gap: 12px; background: var(--tinta-forte); color: #fff; padding: 18px 20px; border-radius: 8px; min-width: 356px; max-width: 560px; box-shadow: var(--sombra-painel); font-weight: 500; }
.recado.erro .ic { color: oklch(0.808 0.114 19.57); } .recado .ic { color: oklch(0.871 0.15 154.4); }
.faixa { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; background: var(--noite); color: var(--linha); flex: none; }
.faixa .ic-caixa { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 4px; background: var(--lavanda); color: var(--azul); }
.faixa span.texto-faixa { flex: 1; }
.aviso-fixo { display: flex; gap: 12px; align-items: flex-start; background: var(--laranja-claro); color: var(--laranja); border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-weight: 500; }
.aviso-fixo ul { margin: 8px 0 0; padding-left: 18px; font-weight: 400; }
.erro { color: var(--vermelho); }
.entrada { max-width: 384px; margin: 16vh auto; display: grid; gap: 14px; background: var(--papel); border: 1px solid var(--linha); border-radius: 12px; padding: 32px; }
.entrada .logo { color: var(--azul); }

/* ---------- editor ---------- */
.editor { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.editor .barra-topo .nome-fluxo { display: flex; align-items: center; gap: 8px; min-width: 0; }
.editor .barra-topo input.titulo { width: auto; min-width: 60px; max-width: 460px; field-sizing: content; min-height: 32px; padding: 2px 0; border: 0; box-shadow: none; background: transparent; font-size: 16px; font-weight: 600; }
.palco { flex: 1; display: flex; min-height: 0; position: relative; }
.painel { position: absolute; top: 0; bottom: 0; left: 0; z-index: 10; width: min(448px, 100%); display: flex; flex-direction: column; background: var(--papel); border-right: 1px solid var(--linha); box-shadow: var(--sombra-painel); }
.painel.direita { left: auto; right: 0; z-index: 12; border-right: 0; border-left: 1px solid var(--linha); }
.painel > header { display: flex; justify-content: space-between; align-items: center; height: 69px; padding: 0 16px; border-bottom: 1px solid var(--linha); flex: none; }
.painel > header h2 { font-size: 20px; }
.painel > .corpo { padding: 20px 32px; overflow-y: auto; flex: 1; }
.painel.estreito-dentro > .corpo { padding: 20px 16px; }
.painel > footer { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 16px; flex: none; }
.painel .pergunta-grande { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.linha-bloco { display: flex; width: 100%; justify-content: flex-start; gap: 16px; height: auto; min-height: 46px; margin-bottom: 11px; padding: 12px 17px; border-radius: 12px; text-align: left; box-shadow: none; font-weight: 600; }
.linha-bloco > span:not(.canal-ic) { flex: 1; } .linha-bloco small { display: block; font-size: 14px; font-weight: 500; }
.linha-bloco.grande { min-height: 70px; }
.linha-bloco.marcado { border-color: var(--azul); }

.area { flex: 1; position: relative; min-width: 0; }
.tela { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; background: var(--fundo); }
.tela.arrastando { cursor: grabbing; }
.mundo { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.mundo > svg { position: absolute; overflow: visible; top: 0; left: 0; width: 1px; height: 1px; }
.mundo path.ligacao { fill: none; stroke: var(--apagado); stroke-width: 2; cursor: pointer; }
.mundo path.ligacao:hover { stroke: var(--vermelho); stroke-width: 3; }
.mundo path.ligacao.provisoria { stroke: var(--azul); stroke-dasharray: 6 5; pointer-events: none; }

/* os contornos dos passos são sombras de 1px por dentro: não mudam o tamanho do cartão */
.no { --borda: var(--linha); position: absolute; width: 300px; background: var(--papel); border-radius: 12px; box-shadow: 0 0 0 1px var(--borda) inset; cursor: move; user-select: none; }
.no.gatilho { --borda: var(--fraco); width: 326px; border-top-left-radius: 0; }
.no.escolhido { --borda: var(--azul); border-top-left-radius: 0; }
.no.com-erro { --borda: var(--laranja); border-top-left-radius: 0; }
.no.escolhido.gatilho { --borda: var(--azul); }
.no.visitado { outline: 3px solid oklch(0.723 0.219 149.58 / 0.5); }
.no > .orelha { position: absolute; bottom: 100%; left: 0; display: none; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 8px 8px 0 0; background: var(--fraco); color: var(--fundo); font-size: 12px; font-weight: 500; white-space: nowrap; }
.no.gatilho > .orelha, .no.escolhido > .orelha, .no.com-erro > .orelha { display: flex; }
.no.escolhido > .orelha { background: var(--azul); }
.no.com-erro > .orelha { background: var(--laranja); }
.no > .acoes-no { position: absolute; bottom: calc(100% + 8px); right: 0; display: none; gap: 8px; }
.no.escolhido:not(.gatilho) > .acoes-no { display: flex; }
.no > header { position: relative; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; border-radius: 12px 12px 0 0; box-shadow: 0 0 0 1px var(--borda) inset; font-weight: 600; }
.no.escolhido > header, .no.com-erro > header { border-top-left-radius: 0; }
.no > header .nome { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.no > header .tipo-ic { display: grid; place-items: center; width: 20px; height: 20px; color: var(--tinta); }
.no > header .entrada-do-no { position: absolute; left: -10px; top: 14px; width: 20px; height: 20px; border-radius: 50%; background: var(--linha-forte); border: 3px solid #fff; box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); }
.no.gatilho > header { display: block; height: auto; padding: 16px 16px 0; box-shadow: none; }
.no.gatilho > header span { display: block; font-size: 14px; font-weight: 500; color: var(--fraco); }
.no.gatilho > header b { display: block; font-size: 16px; font-weight: 600; }
.no .previa { display: grid; gap: 12px; padding: 16px 16px 0; }
.no.gatilho .previa { padding-top: 24px; gap: 23px; }
.no .balao { background: var(--caixa); border-radius: 8px; padding: 16px; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 130px; overflow: hidden; }
.no .balao.vazia { background: var(--papel); border: 1px solid var(--linha); text-align: center; }
.no .gatilho-ativo { display: flex; align-items: center; gap: 16px; min-height: 87px; border: 1px solid var(--linha); border-radius: 12px; padding: 12px 16px; }
.no .gatilho-ativo > div { flex: 1; min-width: 0; } .no .gatilho-ativo b { display: block; font-weight: 600; } .no .gatilho-ativo span { display: block; color: var(--fraco); font-weight: 500; }
.no .previa button.suave { width: 100%; min-height: 48px; font-size: 16px; }
.saidas { display: grid; gap: 12px; padding: 12px 16px 14px; }
.saida { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--linha-forte); border-radius: 8px; box-shadow: var(--sombra); font-weight: 500; }
.saida > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saida.seguinte { height: 18px; justify-content: flex-end; padding: 0; border: 0; box-shadow: none; font-size: 12px; color: var(--fraco); gap: 8px; }
.porta { flex: none; width: 12px; height: 12px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: var(--linha-forte); box-shadow: none; cursor: crosshair; }
.porta.ligada { background: var(--apagado); }
.porta:hover { background: var(--azul); }
.saida.seguinte .porta { width: 20px; height: 20px; display: grid; place-items: center; background: var(--papel); color: var(--fraco); }
.saida.seguinte .porta.ligada { width: 10px; height: 10px; background: var(--apagado); }
.no.escolhido .saida.seguinte .porta:not(.ligada) { color: var(--azul); }
.mais-saida { position: absolute; left: calc(100% + 31px); top: 50%; width: 24px; height: 24px; min-height: 0; margin-top: -12px; padding: 0; border-radius: 4px; border-color: var(--linha-forte); background: var(--caixa); box-shadow: none; }
.mais-saida::before { content: ""; position: absolute; right: 100%; top: 10px; width: 44px; height: 2px; background: var(--linha-forte); }

.assistente-botao { width: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 8px; color: var(--fundo); background: linear-gradient(135deg, rgb(22, 65, 255) 0%, rgb(177, 182, 255) 100%); box-shadow: var(--sombra-painel); }
.assistente-botao:hover { background: var(--azul); }
@media (max-height: 760px) { .ferramentas { top: 40px !important; gap: 16px !important; } }
.ferramentas { position: absolute; right: 40px; top: 82px; bottom: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 32px; z-index: 5; pointer-events: none; }
.ferramentas > * { pointer-events: auto; }
.ferramentas .pilha { display: flex; flex-direction: column; gap: 8px; width: 56px; min-height: 0; padding: 8px; background: var(--papel); border-radius: 16px; box-shadow: var(--sombra-alta); }
.ferramentas .pilha button { width: 40px; min-height: 32px; height: 40px; padding: 0; flex: 0 1 40px; }
.ferramentas .pilha button.ativo { background: var(--lavanda); color: var(--azul); }
.ferramentas .pilha .respiro { flex: 0 100 18px; min-height: 0; }
.salvo { position: absolute; right: 32px; bottom: 16px; display: flex; align-items: center; gap: 12px; color: var(--fraco); pointer-events: none; }
.salvo .ic { color: var(--verde); }
.pendencias { position: absolute; right: 32px; bottom: 48px; z-index: 6; display: flex; gap: 8px; padding: 10px 12px; border: 1px solid oklab(0.646 0.146 0.127 / 0.2); border-radius: 8px; background: oklch(0.975 0.015 60); color: var(--laranja); box-shadow: var(--sombra); }
.pendencias button { color: var(--laranja); text-decoration: underline; justify-content: flex-start; }

.menu-blocos, .flutuante { position: fixed; z-index: 25; background: var(--papel); border: 1px solid var(--linha); border-radius: 8px; box-shadow: var(--sombra-painel); }
.menu-blocos { display: flex; flex-direction: column; width: 250px; max-height: min(520px, 92vh); padding: 10px; }
.menu-blocos > input { min-height: 36px; padding-left: 36px; flex: none; background: var(--papel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2362748e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") 12px center no-repeat; }
.menu-blocos .itens { overflow-y: auto; margin-top: 8px; }
.menu-blocos .itens button { display: flex; width: 100%; justify-content: flex-start; align-items: center; gap: 14px; min-height: 36px; height: auto; padding: 8px 10px; border: 0; border-radius: 6px; box-shadow: none; text-align: left; line-height: 20px; }
.menu-blocos .itens button.destaque { align-items: flex-start; background: var(--linha); }
.menu-blocos .itens button small { display: block; font-size: 14px; font-weight: 400; line-height: 20px; }
.menu-blocos .itens .grupo { padding: 14px 10px 6px; color: var(--fraco); font-weight: 500; border-top: 1px solid var(--linha); margin-top: 8px; }
.menu-blocos .itens button.abrir-grupo { justify-content: center; background: var(--caixa); margin-top: 8px; }
.menu-blocos > .pedir-ia { margin-top: 8px; flex: none; border: 0; border-top: 1px solid var(--linha); border-radius: 0; box-shadow: none; justify-content: flex-start; gap: 14px; min-height: 40px; }
.flutuante { width: 318px; }
.flutuante > header { display: flex; align-items: center; justify-content: space-between; height: 57px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--linha); }
.flutuante > header h2 { font-size: 16px; }
.flutuante > .corpo { padding: 16px; max-height: 64vh; overflow-y: auto; }

.bloco-texto { position: relative; margin-bottom: 20px; }
.bloco-texto .caixa-msg { border-radius: 8px; }
.bloco-texto textarea { display: block; min-height: 72px; border-color: var(--linha-forte); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--caixa); box-shadow: none; padding: 12px 16px; resize: none; field-sizing: content; }
.bloco-texto textarea:last-child { border-bottom: 1px solid var(--linha-forte); border-radius: 8px; }
.bloco-texto .linha-botao { display: flex; width: 100%; justify-content: center; min-height: 44px; border-color: var(--linha-forte); border-radius: 0; box-shadow: none; }
.bloco-texto .linha-botao:last-child { border-radius: 0 0 8px 8px; }
.bloco-texto .linha-botao.incompleto { color: var(--vermelho); border-color: var(--vermelho); justify-content: flex-start; padding-left: 16px; }
.bloco-texto .linha-botao.incompleto .final { margin-left: auto; display: grid; place-items: center; align-self: stretch; width: 44px; margin-right: -16px; border-left: 1px solid var(--vermelho); }
.bloco-texto .linha-botao.novo { color: oklch(0.372 0.044 257.29); }
.bloco-texto > .lado { position: absolute; left: calc(100% + 6px); top: 0; display: flex; flex-direction: column; gap: 8px; opacity: 0; transition: opacity .12s; }
.bloco-texto:hover > .lado, .bloco-texto:focus-within > .lado { opacity: 1; }
.bloco-texto .contador { text-align: right; }
.bloco-texto .contador:not(.perto, .passou) { display: none; }
.bloco { border: 1px solid var(--linha); border-radius: 8px; padding: 14px; margin-bottom: 16px; }
.bloco > .linha:first-child { margin-bottom: 10px; }
.contador { font-size: 11px; color: var(--apagado); padding-top: 3px; }
.contador.passou { color: var(--vermelho); font-weight: 700; }
.problemas { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.problemas li { padding: 10px 14px; border-radius: 8px; font-size: 13px; background: var(--laranja-claro); color: var(--laranja); }
.problemas li.impede { background: var(--vermelho-claro); color: var(--vermelho); }
.chips button { min-height: 32px; margin: 0 6px 6px 0; border-radius: 99px; }

/* ---------- celular do teste ---------- */
.celular { display: flex; flex-direction: column; height: 520px; overflow: hidden; border: 9px solid var(--tinta-forte); border-radius: 34px; background: #fff; }
.celular > .cabeca { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--linha); font-weight: 600; font-size: 13px; }
.fio { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.fala { max-width: 82%; padding: 10px 14px; border-radius: 18px; background: var(--caixa); white-space: pre-wrap; overflow-wrap: anywhere; align-self: flex-start; }
.fala.minha { align-self: flex-end; background: var(--degrade-diagonal); color: #fff; }
.fala button { display: flex; width: 100%; margin-top: 8px; color: var(--tinta); }
.fala img { max-width: 100%; border-radius: 10px; }
.fala .hora { font-size: 11px; opacity: .65; margin-top: 3px; }
.escrever { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--linha); }
.celular .escrever input { border-radius: 99px; }

/* ---------- live chat ---------- */
.conversas { flex: 1; display: grid; grid-template-columns: 240px 380px 1fr; min-height: 0; background: var(--papel); }
.conversas > aside, .conversas > section { display: flex; flex-direction: column; border-right: 1px solid var(--linha); overflow-y: auto; min-height: 0; }
.conversas .lateral { padding: 22px 16px 16px; }
.conversas .lateral .cab { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 600; }
.conversas .lateral .cab span { flex: 1; }
.conversas .lateral .contas { justify-content: flex-start; width: 100%; min-height: 37px; margin-bottom: 18px; }
.conversas .lateral .contas .ic:last-child { margin-left: auto; }
.conversas .lateral .assunto { display: flex; justify-content: space-between; width: 100%; min-height: 32px; margin-bottom: 4px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; box-shadow: none; }
.conversas .lateral .assunto.ativo { background: var(--linha); }
.conversas .organizar { margin-top: auto; flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; text-align: center; border: 1px solid var(--linha); border-radius: 8px; }
.conversas .organizar p { font-weight: 600; margin: 8px 4px; }
.conversas .organizar button { width: 100%; }
.conversas .cabeca-lista { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; font-weight: 600; }
.conversas .cabeca-lista .espaco { flex: 1; }
.conversas .ferramentas-lista { display: flex; justify-content: space-between; padding: 0 16px 12px; }
.conversas .ferramentas-lista select { width: auto; min-height: 36px; border: 0; background-color: var(--caixa); font-size: 12px; }
.conversa-item { padding: 12px 8px; margin: 0 16px; border-radius: 8px; cursor: pointer; }
.conversa-item:hover { background: var(--fundo); }
.conversa-item.ativo { background: var(--caixa); }
.conversa-item .topo-item { display: flex; gap: 8px; align-items: flex-start; }
.conversa-item .topo-item > div { min-width: 0; flex: 1; }
.conversa-item b { font-weight: 500; } .conversa-item .previa-msg { display: block; font-size: 12px; color: var(--fraco); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.conversa-item .quando { flex: none !important; text-align: right; font-size: 12px; font-weight: 500; color: var(--azul); }
.conversa-item .base-item { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 12px; }
.conversa-item .base-item select { width: auto; min-height: 24px; padding: 0 30px 0 10px; border-radius: 99px; font-size: 12px; background-position: right 8px center; }
.nao-lidas { display: inline-grid; place-items: center; min-width: 21px; height: 20px; margin-top: 4px; padding: 0 5px; border-radius: 99px; background: var(--azul); color: var(--fundo); font-size: 12px; font-weight: 600; }
.fim-lista { text-align: center; padding: 16px; color: var(--fraco); font-size: 12px; }
.chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat > header { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--linha); flex-wrap: wrap; }
.chat > header select { width: auto; max-width: 200px; min-height: 36px; }
.chat .fio { background: var(--fundo); }
.chat .escrever { flex-wrap: wrap; align-items: flex-end; padding: 14px 18px; }
.chat .escrever textarea { min-height: 44px; flex: 1; width: auto; }
.chat > .vazio { margin: auto; }
.chat > .vazio .desenho { transform: scale(1.5); margin-bottom: 44px; }
.chat > .vazio strong { font-weight: 500; }

.quadro { display: flex; gap: 16px; align-items: flex-start; overflow-x: auto; padding-bottom: 14px; }
.coluna { width: 300px; flex: none; background: var(--caixa); border-radius: 12px; padding: 12px; max-height: calc(100vh - 200px); overflow-y: auto; }
.coluna.sobre { outline: 2px dashed var(--azul); }
.ficha { background: var(--papel); border-radius: 8px; padding: 12px 14px; margin-top: 10px; cursor: grab; border: 1px solid var(--linha); }

@media (max-width: 900px) {
  .sublado { width: 200px; padding: 20px 10px; } .sublado a { padding: 0 12px; }
  .conversas { grid-template-columns: 300px 1fr; }
  .conversas > .lateral { display: none; }
  .dupla { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .moldura { grid-template-columns: 52px 1fr; }
  .sublado { display: none; }
  .barra-topo { padding: 0 14px; gap: 12px; height: auto; min-height: 64px; flex-wrap: wrap; }
  .conversas { grid-template-columns: 1fr; grid-template-rows: 40vh 1fr; }
}

html, body { overflow: hidden; }
#app { height: 100vh; }

.painel > .corpo { scrollbar-width: none; }

.bloco-texto .linha-botao.acao { align-items: center; gap: 8px; border: 1px solid var(--linha-forte); border-bottom-width: 0; background: var(--papel); cursor: pointer; font-weight: 500; }
.bloco-texto .linha-botao.acao:last-child { border-bottom-width: 1px; }
.bloco-texto .linha-botao.acao.incompleto { border-color: var(--vermelho); border-bottom-width: 1px; padding-right: 16px; }
.bloco-texto .linha-botao.acao input { width: auto; max-width: 280px; min-height: 0; padding: 0; border: 0; background: transparent; box-shadow: none; text-align: center; font-weight: 500; }
.bloco-texto .linha-botao.acao.incompleto input { text-align: left; color: var(--vermelho); }
.bloco-texto .linha-botao.acao.incompleto input::placeholder { color: var(--vermelho); }
.flutuante .linha-bloco { border-radius: 12px; }
.flutuante .avancadas { display: flex; width: 100%; justify-content: center; align-items: center; gap: 8px; min-height: 36px; margin-top: 25px; border-color: var(--linha-forte); }
.flutuante .avancadas + .perigo { margin-top: 12px; }

.menu-conta { position: fixed; z-index: 30; left: 87px; bottom: 13px; width: 394px; padding: 12px; background: var(--papel); border: 1px solid var(--linha); border-radius: 8px; box-shadow: var(--sombra-painel); }
.menu-conta h4 { margin: 8px; font-size: 12px; font-weight: 500; color: var(--fraco); }
.menu-conta button, .menu-conta a { display: flex; width: 100%; justify-content: flex-start; align-items: center; gap: 10px; min-height: 32px; padding: 4px 8px; border: 0; border-radius: 6px; background: transparent; box-shadow: none; color: var(--tinta); font-weight: 500; text-align: left; }
.menu-conta button:hover, .menu-conta a:hover { background: var(--caixa); text-decoration: none; }
.menu-conta hr { border: 0; border-top: 1px solid var(--linha); margin: 8px 0; }
.menu-conta .retrato { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 6px; background: var(--caixa); font-size: 12px; }
.menu-conta .conta-atual { min-height: 48px; height: auto; }
.menu-conta .conta-atual > span:not(.retrato) { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.menu-conta .conta-atual em { padding: 0 8px; border-radius: 99px; background: var(--lavanda); color: var(--azul); font-size: 12px; font-style: normal; }
.menu-conta .outras[hidden] { display: none; }

.barra-topo .migalhas a { color: var(--fraco); }
.barra-topo .migalhas b { color: var(--tinta); font-weight: 500; }
.ajustes { display: grid; grid-template-columns: 298px minmax(0, 1fr); align-items: start; padding: 32px 33px 40px 24px; }
.ajustes > aside h2 { font-size: 18px; margin-bottom: 12px; }
.ajustes > aside > p { max-width: 190px; color: var(--fraco); margin: 0 0 14px; }
.ajustes > aside h4 { margin: 20px 0 10px; font-size: 12px; font-weight: 500; color: var(--fraco); }
.ajustes > aside a { display: flex; align-items: center; gap: 12px; width: 262px; height: 40px; padding: 0 20px; margin-bottom: 4px; border-radius: 8px; color: var(--tinta); font-weight: 500; }
.ajustes > aside a:hover { background: var(--caixa); text-decoration: none; }
.ajustes > aside a.ativo { background: var(--lavanda); }
.cartao-ajustes { padding: 24px 23px 32px; background: var(--papel); border: 1px solid var(--linha); border-radius: 16px; box-shadow: var(--sombra); }
.cartao-ajustes > .titulo { font-size: 18px; margin: 0; }
.cartao-ajustes > .descricao { margin: 10px 0 0; color: var(--fraco); }
.cartao-ajustes > hr { border: 0; border-top: 1px solid var(--linha); margin: 24px 0; }
.canal { padding: 28px 16px 16px; margin-bottom: 16px; border: 1px solid var(--linha); border-radius: 12px; box-shadow: var(--sombra); }
.canal > header { display: flex; align-items: center; gap: 16px; padding: 0 16px 12px; }
.canal > header > div { flex: 1; }
.canal > header p { margin: 4px 0 0; color: var(--fraco); }
.canal > header .botao { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--linha); border-radius: 8px; color: var(--tinta); font-weight: 500; }
.canal > header .botao:hover { background: var(--caixa); text-decoration: none; }
.canal > h4 { margin: 20px 0 8px; font-size: 14px; font-weight: 500; }
.canal .conectado { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; margin-bottom: 8px; border: 1px solid var(--linha); border-radius: 12px; box-shadow: var(--sombra); }
.canal .conectado small { display: block; font-size: 14px; color: var(--fraco); margin-top: 2px; }
.canal .conectado small.erro { color: var(--vermelho); }
.canal > details { margin: 12px 16px 0; color: var(--fraco); }
.canal > details summary { cursor: pointer; }
.canal-ic.grande { width: 40px; height: 40px; border-radius: 10px; }
.canal-ic.grande .ic { width: 28px; height: 28px; }
.canal-ic.zap { background: var(--verde); }
.canal-ic.zap .ic { width: 22px; height: 22px; }
@media (max-width: 900px) { .ajustes { grid-template-columns: 1fr; padding: 16px; gap: 16px; } .menu-conta { left: 8px; right: 8px; width: auto; } }

.conversas .lateral .contas { overflow: hidden; }
.conversas .lateral .contas .nome-conta { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.conversas .lateral .contas .ic { flex: none; }
.conversas .lateral .assunto .n { min-width: 22px; padding: 0 6px; border-radius: 99px; background: var(--papel); font-size: 12px; line-height: 20px; }
.conversas .expandir { display: none; }
.conversas.recolhida { grid-template-columns: 380px 1fr; }
.conversas.recolhida > .lateral { display: none; }
.conversas.recolhida .expandir { display: inline-grid; }
.ferramentas-lista .filtro-situacao { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--caixa); cursor: pointer; }
.ferramentas-lista .filtro-situacao.ligado { background: var(--lavanda); border: 1px solid var(--azul); color: var(--azul); }
.ferramentas-lista .filtro-situacao.ligado b::after { content: "1"; position: absolute; top: -7px; right: -7px; min-width: 18px; border-radius: 99px; background: var(--caixa); color: var(--tinta); font-size: 11px; line-height: 18px; text-align: center; }
.ferramentas-lista .filtro-situacao select { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; cursor: pointer; }
.ferramentas-lista .filtro-situacao:focus-within { outline: 2px solid var(--azul); }
.ferramentas-lista .ordem { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin-left: auto; border: 0; background: var(--caixa); box-shadow: none; }
.ferramentas-lista .filtro-situacao b { position: absolute; top: 0; right: 0; }
.ferramentas-lista .filtro-situacao.ligado b::after { position: static; display: block; transform: translate(7px, -7px); }

.cartao.com-busca { padding: 16px; }
.cartao.com-busca > .busca { display: flex; max-width: 320px; margin-bottom: 16px; }
.acoes-linha { white-space: nowrap; width: 1%; }
.acoes-linha .icone { margin-right: 4px; }

/* ---------- relatórios ---------- */
.relatorios { padding: 32px 24px 64px; }
.relatorios > .topo { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.relatorios h1 { font-size: 28px; line-height: 36px; font-weight: 700; margin: 0 0 4px; }
.relatorios .topo p { margin: 0; }
.relatorios > .busca { display: flex; max-width: 384px; height: 36px; margin-bottom: 16px; }
.relatorios .quadro { background: var(--papel); border: 1px solid var(--linha); border-radius: 8px; overflow-x: auto; }
.relatorios th { height: 40px; font-size: 14px; }
.relatorios td a { color: var(--tinta); font-weight: 500; }
.relatorios .sem-linhas td { height: 200px; border-bottom: 0; }
.ordenar-coluna { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--fraco); font-weight: 500; }

.janela.de-modelos { width: min(1024px, 100%); }
.de-modelos > header { border-bottom: 0; padding-bottom: 0; }
.de-modelos .corpo { padding-top: 6px; }
.de-modelos .sub { margin: 0 0 16px; color: var(--fraco); }
.busca-modelos { gap: 12px; margin-bottom: 16px; }
.busca-modelos .busca { flex: 1; }
.modelos-relatorio { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.modelo-relatorio { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; height: auto; padding: 0; overflow: hidden; border: 1px solid var(--linha); border-radius: 8px; background: var(--papel); text-align: left; white-space: normal; }
.modelo-relatorio:hover { border-color: var(--azul); }
.modelo-relatorio .capa { display: grid; place-items: center; height: 144px; background: var(--lavanda); color: var(--azul); }
.modelo-relatorio .capa .ic { stroke-width: 1.5; }
.modelo-relatorio .texto-do-modelo { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; }
.modelo-relatorio b { font-size: 16px; font-weight: 500; }
.modelo-relatorio .texto-do-modelo span { color: var(--fraco); font-weight: 400; line-height: 20px; }
.modelo-relatorio em { font-size: 12px; font-style: normal; color: var(--azul); }

.relatorios .nome-do-relatorio { display: flex; align-items: center; gap: 8px; }
.relatorios td small { display: block; margin-top: 4px; font-size: 14px; color: var(--tinta); }
.pilula { display: inline-block; padding: 2px 8px; line-height: 16px; border: 1px solid var(--linha-forte); border-radius: 99px; font-size: 12px; font-weight: 500; }
.menu-solto { position: fixed; z-index: 45; width: 380px; max-width: calc(100vw - 16px); overflow: auto; display: flex; flex-direction: column; gap: 2px; padding: 12px; background: var(--papel); border: 1px solid var(--linha); border-radius: 8px; box-shadow: var(--sombra-painel); }
.menu-solto > button { flex: none; justify-content: flex-start; min-height: 40px; border: 0; box-shadow: none; font-weight: 400; text-align: left; }
.menu-solto > button.escolhido { background: var(--caixa); }
.menu-solto.curto { width: 128px; }
.menu-solto > button.perigo { color: var(--vermelho); }
.menu-solto.de-contas { width: 280px; gap: 8px; }
.menu-solto.de-contas h4 { margin: 0; font-size: 12px; }
.menu-solto.de-contas label { display: flex; align-items: center; gap: 8px; padding-left: 12px; }
.nos-ultimos { display: flex; align-items: center; gap: 6px; padding: 8px 16px; }
.nos-ultimos > span { margin-right: auto; white-space: nowrap; }
.nos-ultimos input { width: 56px; min-height: 32px; text-align: center; padding: 4px; }
.nos-ultimos select { width: auto; min-height: 32px; padding-top: 4px; padding-bottom: 4px; }
.nos-ultimos button.principal { min-height: 32px; padding: 0 10px; }
.menu-solto details { flex: none; }
.menu-solto summary { padding: 10px 16px; cursor: pointer; list-style: none; border-radius: 8px; }
.menu-solto summary:hover { background: var(--caixa); }
.menu-solto details > div { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 8px; }
.menu-solto details input { flex: 1; min-width: 140px; min-height: 36px; }

.relatorio-aberto { padding: 32px 24px 64px; }
.linha-titulo { display: flex; align-items: center; gap: 12px; }
.linha-titulo h1 { font-size: 24px; line-height: 29px; font-weight: 600; letter-spacing: -.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.linha-titulo .espaco, .filtros-relatorio .espaco, .bloco-do-relatorio header .espaco { flex: 1; }
.linha-titulo input.edicao { max-width: 460px; min-height: 36px; font-size: 20px; font-weight: 600; }
.linha-descricao { display: flex; align-items: center; gap: 4px; margin: 6px 0 0 8px; min-height: 28px; }
.linha-descricao .descricao { margin: 0; color: var(--fraco); font-size: 12px; }
.linha-descricao button { opacity: 0; }
.linha-descricao:hover button, .linha-descricao button:focus-visible { opacity: 1; }
.linha-descricao input.edicao { max-width: 640px; min-height: 28px; font-size: 12px; }
.filtros-relatorio { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 8px 0 20px; font-size: 12px; }
.filtros-relatorio > button, .filtros-relatorio select { width: auto; min-height: 28px; height: 28px; padding-top: 0; padding-bottom: 0; font-size: 12px; border-radius: 6px; }
.filtros-relatorio > button.quadrado { width: 36px; height: 36px; }
.filtros-relatorio .rotulo { color: var(--fraco); }
.filtros-relatorio .interruptor { font-size: 14px; font-weight: 400; }
.filtros-relatorio > button.atualizado { border: 0; background: none; box-shadow: none; padding: 0; color: var(--fraco); text-decoration: underline dotted; text-underline-offset: 4px; font-weight: 400; }

.grade-blocos { position: relative; }
.grade-blocos.arrastando { user-select: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='96'%3E%3Crect width='100%25' height='80' fill='%2362748e' fill-opacity='.06'/%3E%3C/svg%3E"); }
.sombra-do-bloco { position: absolute; border-radius: 8px; background: oklch(0.45 0.25 265 / 0.12); border: 1px dashed var(--azul); }
.bloco-do-relatorio { position: absolute; display: flex; flex-direction: column; min-width: 0; background: var(--papel); border: 1px solid var(--linha); border-radius: 8px; box-shadow: 0 1px 3px 0 oklch(0 0 0 / 0.1), 0 1px 2px -1px oklch(0 0 0 / 0.1); transition: left .15s, top .15s, width .15s, height .15s; }
.bloco-do-relatorio.solto { z-index: 5; transition: none; box-shadow: var(--sombra-painel); }
.bloco-do-relatorio > header { display: flex; align-items: center; gap: 4px; min-height: 41px; padding: 4px 8px 4px 16px; border-bottom: 1px solid var(--linha); cursor: grab; touch-action: none; border-radius: 8px 8px 0 0; }
.bloco-do-relatorio.solto > header { cursor: grabbing; }
.bloco-do-relatorio h3 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.bloco-do-relatorio header input.edicao { flex: 1; min-height: 30px; padding: 2px 8px; cursor: text; }
.bloco-do-relatorio .ao-passar { opacity: 0; flex: none; }
.bloco-do-relatorio:hover .ao-passar, .bloco-do-relatorio:focus-within .ao-passar, .bloco-do-relatorio .ver-dados[aria-pressed="true"] { opacity: 1; }
.bloco-do-relatorio .ver-dados { min-height: 28px; padding: 0 10px; font-size: 14px; }
.bloco-do-relatorio .ver-dados[aria-pressed="true"] { background: var(--caixa); }
.miolo-do-bloco { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 12px 16px; }
.alca-tamanho { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border-right: 2px solid transparent; border-bottom: 2px solid transparent; border-radius: 0 0 6px 0; cursor: nwse-resize; touch-action: none; }
.bloco-do-relatorio:hover .alca-tamanho { border-color: var(--fraco); }
.grade-blocos.empilhada { display: flex; flex-direction: column; gap: 16px; height: auto !important; }
.grade-blocos.empilhada .bloco-do-relatorio { position: static; width: 100%; }
.grade-blocos.empilhada .alca-tamanho { display: none; }
.grade-blocos.empilhada .ao-passar { opacity: 1; }
.grade-blocos .relatorio-vazio { padding-top: 48px; }
@media (hover: none) { .bloco-do-relatorio .ao-passar { opacity: 1; } }

.sem-dados-bloco { margin: 0; color: var(--fraco); font-size: 16px; }
.numero-bloco { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: auto; }
.numero-bloco .valores { display: flex; flex-wrap: wrap; gap: 16px 40px; }
.numero-bloco .valores > div { display: flex; flex-direction: column; }
.numero-bloco b { font-size: 40px; line-height: 52px; font-weight: 500; font-variant-numeric: tabular-nums; }
.numero-bloco b.sem { font-size: 24px; color: var(--fraco); }
.numero-bloco .nome-do-valor { font-size: 12px; color: var(--fraco); }
.numero-bloco .comparado { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.numero-bloco .comparado i { width: 8px; height: 8px; border: 2px solid var(--fraco); border-radius: 50%; }
.nota-do-bloco { margin: auto 0 0; padding-top: 8px; font-size: 12px; line-height: 16px; color: var(--fraco); }
.grafico-bloco { position: relative; flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 0; margin: 0; }
.plano-grafico { flex: 1; min-height: 0; overflow: hidden; }
.plano-grafico svg { display: block; overflow: visible; }
.plano-grafico text { font-size: 12px; fill: var(--fraco); }
.plano-grafico .grade { stroke: var(--linha); stroke-dasharray: 4 4; }
.plano-grafico .base, .plano-grafico .guia { stroke: var(--linha-forte); }
.plano-grafico .linha { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.plano-grafico .linha.antes { stroke-dasharray: 5 5; opacity: .6; }
.plano-grafico .barra.antes { opacity: .35; }
.plano-grafico .fatia { stroke: var(--papel); stroke-width: 2; }
.plano-grafico .guia-fatia { fill: none; stroke: var(--apagado); }
.legenda { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--fraco); max-height: 44px; overflow: auto; }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 8px; height: 8px; border-radius: 50%; }
.legenda .antes i { width: 14px; height: 0; border-radius: 0; border-top: 2px dashed var(--fraco); }
.dica-grafico { position: absolute; z-index: 6; min-width: 172px; max-width: 280px; padding: 10px 12px; background: var(--papel); border-radius: 8px; box-shadow: var(--sombra-painel); border: 1px solid var(--linha); font-size: 12px; pointer-events: none; }
.dica-grafico[hidden] { display: none; }
.dica-grafico > b { display: block; margin-bottom: 6px; }
.dica-grafico div { display: flex; align-items: center; gap: 8px; }
.dica-grafico div i { width: 8px; height: 8px; flex: none; border-radius: 50%; }
.dica-grafico div.antes i { opacity: .4; }
.dica-grafico div span { flex: 1; color: var(--fraco); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tabela-bloco { flex: 1; min-height: 0; overflow: auto; }
.tabela-bloco table { width: 100%; }
.tabela-bloco th { position: sticky; top: 0; background: var(--papel); }
.tabela-bloco th, .tabela-bloco td { height: 40px; padding: 4px 8px; text-align: right; white-space: nowrap; }
.tabela-bloco th:first-child, .tabela-bloco td:first-child { text-align: left; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }

.fundo-painel { position: fixed; inset: 0; z-index: 30; background: oklch(0 0 0 / 0.14); }
.painel-lateral { position: absolute; top: 16px; right: 16px; bottom: 16px; width: min(767px, calc(100vw - 32px)); display: flex; flex-direction: column; background: var(--papel); border-radius: 12px; box-shadow: var(--sombra-painel); }
.painel-lateral > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 12px; }
.painel-lateral > .corpo { flex: 1; overflow: auto; padding: 0 16px 16px; }
.painel-lateral > footer { display: flex; justify-content: flex-end; padding: 12px 16px 16px; }
.painel-lateral > footer[hidden] { display: none; }
.catalogo-de-blocos > p { margin: 20px 0 16px; color: var(--fraco); }
.catalogo-de-blocos .busca { display: flex; margin-bottom: 16px; }
.catalogo-de-blocos .busca input { flex: 1; }
.catalogo-de-blocos h4 { margin: 16px 0 12px; font-size: 12px; font-weight: 500; color: var(--fraco); }
button.personalizado { width: 100%; flex-direction: column; align-items: flex-start; gap: 6px; height: auto; padding: 16px; border: 1px dashed var(--linha-forte); background: var(--caixa); box-shadow: none; text-align: left; }
.personalizado b { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.personalizado small { font-weight: 400; }
.blocos-prontos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
button.bloco-pronto { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; height: auto; padding: 16px; border-radius: 8px; box-shadow: none; text-align: left; white-space: normal; }
button.bloco-pronto:hover { border-color: var(--azul); background: var(--papel); }
.bloco-pronto .capa { display: grid; place-items: center; height: 80px; margin-bottom: 4px; border-radius: 6px; background: var(--lavanda); color: var(--azul); }
.bloco-pronto b { font-weight: 500; line-height: 20px; }
.bloco-pronto small { font-weight: 400; }
.form-grafico { display: flex; flex-direction: column; gap: 8px; }
.form-grafico > label { margin-top: 12px; font-weight: 500; }
.form-grafico > small + select, .form-grafico > small + input { margin-top: 2px; }
.tipos-de-grafico { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.tipos-de-grafico button { flex-direction: column; gap: 12px; width: 113px; height: 112px; border-radius: 8px; box-shadow: none; font-weight: 400; }
.tipos-de-grafico button .ic { color: var(--fraco); stroke-width: 1.5; }
.tipos-de-grafico button.ativo { border-color: var(--azul); background: oklch(0.97 0.02 266); }
.tipos-de-grafico button.ativo .ic { color: var(--azul); }
.cartao-serie { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--linha); border-radius: 8px; }
.linha-serie, .linha-filtro { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.linha-serie .letra { display: grid; place-items: center; width: 26px; height: 20px; border-radius: 4px; background: var(--caixa); font-size: 12px; }
.linha-serie input, .linha-serie select { flex: 1; width: auto; min-width: 130px; }
.linha-filtro { padding-left: 16px; }
.linha-filtro select, .linha-filtro input, .linha-filtro > span { flex: 1; width: auto; min-width: 130px; min-height: 32px; }
.cartao-serie .adicionar-filtro { align-self: flex-start; margin-left: 20px; color: var(--tinta); }
button.adicionar-serie { align-self: flex-start; }
.erro-campo { margin: 0; color: var(--vermelho); font-size: 12px; }
.erro-campo:empty { display: none; }
.ajuda-campo { margin: 0; color: var(--fraco); font-size: 12px; }
.relatorios > .busca input { min-height: 32px; }

.sublado .alternar { position: absolute; top: 20px; right: 16px; color: var(--fraco); }
.sublado.recolhido { width: 72px; padding: 20px 12px; }
.sublado.recolhido h2 { display: none; }
.sublado.recolhido .alternar { position: static; width: 48px; height: 40px; margin-bottom: 12px; }
.sublado.recolhido .alternar .ic { transform: rotate(180deg); }
.sublado.recolhido a { justify-content: center; padding: 0; gap: 0; font-size: 0; }

.barra-topo .principal .n { min-width: 20px; padding: 0 6px; border-radius: 99px; background: oklch(1 0 0 / 0.22); font-size: 12px; line-height: 20px; }
.nome-com-caixa { display: inline-flex; align-items: center; gap: 12px; }
input.marca-linha { width: 18px; height: 18px; min-height: 0; flex: none; margin: 0; padding: 0; box-shadow: none; accent-color: var(--azul); }
.grupo-filtros { display: flex; }
.grupo-filtros button { gap: 8px; min-height: 40px; border-radius: 8px; }
.grupo-filtros button + button { border-left: 0; border-radius: 0 8px 8px 0; }
.grupo-filtros button:first-child:not(:last-child) { border-radius: 8px 0 0 8px; }
.grupo-filtros.ligado button { background: var(--lavanda); border-color: var(--azul); color: var(--azul); }
tr.detalhe td { background: var(--fundo-linha, transparent); padding-block: 8px 14px; }

.grade-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 40px; }
.template .capa { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 255px; padding: 24px 24px 40px; border-radius: 12px; color: #fff; text-align: center; background: var(--degrade-diagonal); }
.template .capa .da-casa { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; opacity: .85; }
.template .capa strong { font-size: 24px; line-height: 30px; font-weight: 600; }
.template .capa .detalhes { position: absolute; right: 16px; bottom: 16px; gap: 8px; min-height: 32px; border: 0; background: oklch(1 0 0 / 0.85); color: var(--tinta); }
.template .nome { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.template .nome span { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 6px; background: var(--caixa); font-size: 12px; font-weight: 500; }
.template .nome b { font-size: 16px; font-weight: 600; }
.template .selo { display: inline-flex; align-items: center; gap: 6px; }
.template footer { display: flex; justify-content: flex-end; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--linha); }
button.suave { gap: 8px; border-color: var(--azul); background: var(--lavanda); color: var(--azul); }
.dica-titulo { display: inline-grid; place-items: center; margin-left: -16px; color: var(--fraco); }
.cartao.com-busca > .topo-cartao { margin-bottom: 16px; }
.cartao.com-busca .topo-cartao .busca { flex: 0 1 576px; }
.filtros select[aria-label="Canal"] { width: auto; max-width: 260px; }

/* ---------- assistente ---------- */
.assistente { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--papel); }
.assistente.de-entrada { justify-content: center; align-items: center; overflow: auto; padding: 24px 12px 80px; }
.entrada-assistente { width: min(600px, 100%); display: flex; flex-direction: column; align-items: center; }
.entrada-assistente h1 { position: relative; display: flex; align-items: center; gap: 14px; margin: 0 0 66px; font-size: 52px; line-height: 64px; letter-spacing: -2px; }
.entrada-assistente h1 .marca-ic { color: var(--azul); }
.entrada-assistente h1 .beta { position: absolute; top: -28px; left: -16px; padding: 2px 10px; border-radius: 99px; background: var(--tinta-forte); color: #fff; font-size: 11px; line-height: 16px; letter-spacing: 0; }
.entrada-assistente h1 sup { align-self: flex-start; margin: 8px 0 0 -8px; padding: 0 6px; border-radius: 5px; background: var(--azul); color: #fff; font-size: 15px; line-height: 22px; letter-spacing: 0; }
.compositor { width: 100%; padding: 3px; border-radius: 10px; background: linear-gradient(100deg, rgb(22, 65, 255), rgb(150, 160, 255)); }
.compositor > div { display: flex; flex-direction: column; min-height: 124px; border-radius: 7px; background: var(--papel); padding: 8px; }
.compositor textarea { flex: 1; min-height: 56px; max-height: 200px; resize: none; border: 0; box-shadow: none; padding: 8px; font-size: 15px; }
.compositor textarea:focus { box-shadow: none; }
.compositor .pe { display: flex; align-items: center; gap: 8px; }
.compositor .pe .espaco { flex: 1; }
.compositor button.redondo { width: 36px; padding: 0; }
.compositor button.redondo[aria-pressed="true"] { background: var(--vermelho-claro); color: var(--vermelho); }
.compositor .modelo { display: inline-flex; align-items: center; gap: 6px; padding-left: 8px; color: var(--fraco); font-size: 13px; }
.compositor .modelo .marca-ic { color: var(--azul); }
.compositor button.enviar { width: 36px; padding: 0; border: 0; border-radius: 6px; background: var(--azul); color: #fff; box-shadow: none; }
.compositor button.enviar:disabled { opacity: 1; background: rgb(131, 147, 255); }
.compositor .anexos { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px; }
.compositor .anexos span { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 8px; border-radius: 6px; background: var(--caixa); font-size: 12px; }
.faixa-atalhos { position: relative; width: 100%; margin-top: 20px; }
.atalhos { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.atalhos::-webkit-scrollbar { display: none; }
.atalhos button { flex: none; min-height: 32px; border-radius: 99px; font-weight: 400; box-shadow: none; }
button.seta-atalhos { position: absolute; right: 0; top: 6px; width: 24px; min-height: 24px; padding: 0; border-radius: 6px; }
button.seta-atalhos[hidden] { display: none; }
.conversa-assistente { flex: 1; overflow: auto; padding: 16px 12px 24px; }
.coluna-chat { width: min(580px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.rodape-chat { width: min(624px, 100%); margin: 0 auto; padding: 8px 12px 32px; }
.coluna-chat .turno.minha { display: flex; justify-content: flex-end; }
.coluna-chat .turno.minha > div { max-width: 85%; padding: 12px 16px; border-radius: 8px; background: var(--caixa); line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.coluna-chat .turno.minha small { display: flex; align-items: center; gap: 4px; }
.coluna-chat .turno.dele > small { display: block; margin-bottom: 10px; font-size: 14px; }
.coluna-chat .turno.dele p { margin: 0 0 16px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.coluna-chat .turno.dele p:last-child { margin-bottom: 0; }
.coluna-chat .turno.falhou { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 8px; background: var(--vermelho-claro); color: var(--vermelho); }
.coluna-chat .criado { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px; border: 1px solid var(--linha); border-radius: 12px; }
.coluna-chat .criado > i { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 1px solid var(--linha); border-radius: 4px; background: var(--caixa); }
.coluna-chat .criado > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.coluna-chat .criado b { font-weight: 600; }
.coluna-chat .pensando { display: flex; align-items: center; gap: 4px; color: var(--fraco); }
.coluna-chat .pensando i { width: 6px; height: 6px; border-radius: 50%; background: var(--apagado); animation: pensar 1.2s infinite ease-in-out; }
.coluna-chat .pensando i:nth-child(2) { animation-delay: .2s; } .coluna-chat .pensando i:nth-child(3) { animation-delay: .4s; }
.coluna-chat .pensando span { margin-left: 8px; }
@keyframes pensar { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .coluna-chat .pensando i { animation: none; } }
@media (max-width: 640px) { .entrada-assistente h1 { font-size: 34px; margin-bottom: 40px; } }
.linha.dias-da-semana { flex-wrap: wrap; gap: 12px; }

.filtros-relatorio select { field-sizing: content; padding-right: 28px; background-position: right 8px center; }

/* ---------- gatilhos ---------- */
.painel .titulo-de-secao { display: block; margin-bottom: 12px; font-size: 16px; font-weight: 600; }
.painel .corpo hr { margin: 24px 0; border: 0; border-top: 1px solid var(--linha); }
.cartao-gatilho { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding-right: 12px; border: 1px solid var(--linha); border-radius: 12px; }
.cartao-gatilho:hover { border-color: var(--linha-forte); }
.cartao-gatilho button.corpo-do-cartao { flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; gap: 4px; height: auto; padding: 12px 0 12px 16px; border: 0; background: none; box-shadow: none; text-align: left; white-space: normal; }
.corpo-do-cartao b { font-weight: 600; line-height: 20px; }
.corpo-do-cartao span { color: var(--fraco); font-weight: 400; line-height: 20px; }
.corpo-do-cartao small { color: var(--azul); font-weight: 500; }
.sem-gatilho { color: var(--fraco); }
button.adicionar-gatilho { width: 100%; min-height: 48px; font-size: 16px; }
.cabeca-palavras { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cabeca-palavras .titulo-de-secao { margin: 0; }
button.seletor-de-modo { width: 100%; justify-content: space-between; height: auto; min-height: 70px; padding: 12px 16px; border-radius: 8px; box-shadow: none; text-align: left; }
.seletor-de-modo > span { display: flex; flex-direction: column; gap: 4px; font-weight: 500; }
.seletor-de-modo small { font-size: 14px; font-weight: 400; }
.menu-solto.de-modos { width: 402px; }
.menu-solto.de-modos > button { justify-content: flex-start; gap: 12px; min-height: 32px; }
.menu-solto .vago { width: 16px; flex: none; }
.menu-solto.curto > button { justify-content: flex-start; gap: 10px; }
.menu-solto.de-opcoes { width: 300px; gap: 8px; }
.menu-solto.de-opcoes h4 { margin: 4px 8px 8px; font-size: 14px; font-weight: 500; color: var(--fraco); }
.opcao-de-palavra { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid var(--linha); border-radius: 8px; cursor: pointer; }
.opcao-de-palavra > span { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.opcao-de-palavra b { font-weight: 600; }
.opcao-de-palavra small { font-size: 14px; line-height: 20px; }
.palavras-chave hr { margin: 24px 0 !important; }
.titulo-palavras { display: block; margin-bottom: 16px; font-size: 16px; font-weight: 600; }
.nova-palavra { display: flex; gap: 12px; }
.nova-palavra input { flex: 1; }
.nova-palavra button.confirma { width: 40px; min-height: 40px; padding: 0; flex: none; }
.fichas-de-palavra { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ficha-palavra { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; border: 1px solid var(--linha-forte); border-radius: 99px; font-weight: 600; font-size: 13px; overflow-wrap: anywhere; }
.sem-palavras, .sem-midia { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 24px 8px; text-align: center; color: var(--fraco); }
.sem-palavras i, .sem-midia i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--caixa); color: var(--tinta); }
.sem-midia b { color: var(--azul); font-size: 16px; font-weight: 500; }
.sem-midia p { max-width: 220px; margin: 0; }

.janela.de-gatilhos { width: min(512px, 100%); }
.janela.de-gatilhos > .corpo > div { display: flex; flex-direction: column; }
.janela.de-gatilhos .marcar { margin-bottom: 16px; }
.janela.de-gatilhos h4 { margin: 0 0 12px; font-size: 12px; font-weight: 500; color: var(--fraco); }
.janela.de-gatilhos hr { width: 100%; margin: 0 0 16px; border: 0; border-top: 1px solid var(--linha); }
button.como-funciona { align-self: flex-start; gap: 8px; margin: 0 0 16px 8px; color: var(--tinta); font-size: 12px; }
button.opcoes-avancadas { box-shadow: none; min-height: 40px; }
button.grande-de-gatilho { flex: none; min-height: 48px; margin-top: 24px; font-size: 16px; }
.explicacoes { max-height: min(440px, 52vh); overflow: auto; }
.explicacao { display: flex; gap: 12px; margin-bottom: 20px; }
.explicacao > i { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 1px solid var(--linha); border-radius: 6px; background: var(--caixa); color: var(--fraco); }
.explicacao b { font-weight: 500; }
.explicacao p { margin: 6px 0 0; color: var(--fraco); }
.rodape-da-ajuda { color: var(--fraco); font-size: 12px; }

.painel .progresso { margin-bottom: 24px; }
.progresso small { color: var(--fraco); font-size: 14px; }
.trilho-da-etapa { height: 8px; border-radius: 99px; background: var(--caixa); overflow: hidden; }
.trilho-da-etapa i { display: block; height: 100%; background: var(--azul); border-radius: 99px; transition: width .2s; }
.linha-da-etapa { display: flex; align-items: center; justify-content: space-between; min-height: 32px; margin-bottom: 6px; }
.painel h3.pergunta-da-etapa { margin: 0 0 20px; font-size: 18px; line-height: 26px; }
.sob-a-pergunta { margin: -12px 0 24px; color: var(--fraco); line-height: 20px; }
.opcao-de-alvo { margin-bottom: 16px; border: 1px solid var(--linha); border-radius: 12px; }
.opcao-de-alvo > label { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 16px; cursor: pointer; font-weight: 500; }
.opcao-de-alvo:hover { border-color: var(--linha-forte); }
.opcao-de-alvo.marcada { border-color: var(--azul); }
.midias { padding: 4px 16px 16px; }
.barra-de-midias { display: flex; gap: 20px; margin-bottom: 16px; }
.barra-de-midias .busca { flex: 1; }
.barra-de-midias .busca input { width: 100%; }
.grade-de-midias { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
.midia { display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.quadro-da-midia { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--caixa); }
.quadro-da-midia img { width: 100%; height: 100%; object-fit: cover; }
.sem-miniatura { display: grid; place-items: center; height: 100%; color: var(--apagado); }
.quadro-da-midia input { position: absolute; top: 6px; left: 6px; }
.quadro-da-midia em { position: absolute; left: 4px; bottom: 4px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 4px; background: var(--papel); font-size: 12px; font-style: normal; font-weight: 500; }
.midia:has(input:checked) .quadro-da-midia { outline: 2px solid var(--azul); outline-offset: -2px; }
.legenda-da-midia { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--fraco); line-height: 20px; }
.pe-das-midias { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.pe-das-midias .espaco { flex: 1; }
.linha-de-resposta { display: flex; gap: 8px; margin-bottom: 12px; }
.linha-de-resposta input { flex: 1; }
button.outra-resposta { width: 100%; margin-bottom: 16px; }
button.gerar-respostas { width: 100%; min-height: 48px; font-size: 16px; }
.dica-da-ia { margin: 16px 0; text-align: center; color: var(--fraco); }
.painel .corpo > select { margin-top: 8px; }

/* ---------- ficha do contato ---------- */
.painel-lateral:has(.ficha-do-contato) { width: min(520px, calc(100vw - 32px)); }
.painel-lateral > footer.separado { justify-content: space-between; border-top: 1px solid var(--linha); }
.cabeca-da-ficha { display: flex; align-items: center; gap: 12px; }
.cabeca-da-ficha > div { display: flex; flex-direction: column; min-width: 0; }
.cabeca-da-ficha b { font-size: 16px; font-weight: 600; }
.cabeca-da-ficha .espaco { flex: 1; }
.numeros-da-ficha { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 8px; }
.numeros-da-ficha > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 1px solid var(--linha); border-radius: 8px; }
.numeros-da-ficha b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.secao-da-ficha { margin-top: 24px; }
.secao-da-ficha h3 { margin: 0 0 10px; font-size: 14px; }
.etiquetas-da-ficha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.etiquetas-da-ficha input { flex: 1; min-width: 160px; min-height: 36px; }
.linha-de-campo { display: grid; grid-template-columns: 140px 1fr 32px; align-items: center; gap: 8px; margin-bottom: 8px; }
.linha-de-campo span { color: var(--fraco); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.linha-de-campo input { min-height: 36px; }
.linha-do-tempo { list-style: none; margin: 0; padding: 0; }
.linha-do-tempo li { padding: 10px 0; border-top: 1px solid var(--linha); }
.linha-do-tempo li > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.linha-do-tempo li small { margin-left: auto; }
.linha-do-tempo li p { margin: 6px 0 0; overflow-wrap: anywhere; }

/* ---------- live chat ---------- */
.chat > header { flex-wrap: nowrap; }
.chat > header .quem { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat > header .quem b, .chat > header .quem small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat > header select { flex: none; }
.chat .ponto { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--laranja); }
.chat .ponto.aberta { background: var(--verde); }
.chat .escrever { flex-wrap: wrap; align-items: flex-end; gap: 8px; padding: 12px 18px; }
.chat .escrever textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; field-sizing: content; border-radius: 10px; padding-top: 11px; }
.chat .escrever button.enviar { width: 44px; min-height: 44px; padding: 0; border-radius: 10px; }
.chat .sugestoes { display: flex; flex-direction: column; width: 100%; max-height: 180px; overflow: auto; }
.chat .sugestoes:not(:empty) { border: 1px solid var(--linha); border-radius: 8px; padding: 4px; }
.chat .sugestoes button { flex: none; justify-content: flex-start; gap: 12px; border: 0; box-shadow: none; text-align: left; }
.chat .sugestoes span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--fraco); font-weight: 400; }
.janela-fechada { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 18px; border-top: 1px solid var(--linha); color: var(--fraco); text-align: center; }
.botao-enviado { display: block; margin-top: 8px; padding: 6px 12px; border-radius: 8px; background: var(--papel); color: var(--tinta); text-align: center; font-weight: 500; }
.menu-solto.curto:has(h4) { width: 280px; }
.menu-solto h4 { margin: 8px 8px 4px; font-size: 12px; font-weight: 500; color: var(--fraco); }
.menu-solto.curto > button { justify-content: flex-start; gap: 10px; }

/* ---------- cadastros dos ajustes ---------- */
.topo-do-cadastro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.topo-do-cadastro p { margin: 0; color: var(--fraco); max-width: 560px; }
.topo-do-cadastro button { flex: none; }
.vazio.do-cadastro p { max-width: 420px; }
.opcao-de-cadastro { display: flex; margin-top: 12px; }
td code { padding: 2px 6px; border-radius: 4px; background: var(--caixa); font-size: 12px; }

/* ---------- editor: variáveis, teste e botões do gatilho ---------- */
.variavel { display: inline-block; padding: 0 6px; border-radius: 4px; background: var(--lavanda); color: var(--azul); font-size: 12px; font-weight: 500; line-height: 18px; }
.no.gatilho .previa button.suave, .no.gatilho.escolhido .previa button.suave { background: var(--caixa); border-color: transparent; color: var(--tinta-forte); }
.no.gatilho .previa button.suave:hover { background: var(--linha); }
.cabeca-palavras button.suave, .cabeca-palavras button.suave:focus-visible { background: var(--caixa); border-color: transparent; color: var(--tinta-forte); }
.cartao-gatilho > button.liso { background: transparent; }
.cartao-gatilho > button.liso:hover { background: var(--caixa); }
.painel.de-teste > .corpo { display: flex; flex-direction: column; gap: 12px; padding: 16px 24px; }
.comeco-do-teste { display: flex; align-items: flex-end; gap: 8px; }
.comeco-do-teste .campo { flex: 1; margin: 0; }
.comeco-do-teste button { flex: none; min-height: 40px; }
.painel.de-teste .interruptor { flex: none; align-self: flex-start; }
/* o celular ocupa o que sobra; a conversa rola dentro dele e o campo de resposta não sai da tela */
.painel.de-teste .celular { flex: 1 0 300px; height: auto; min-height: 300px; }
.painel.de-teste > .corpo > :not(.celular) { flex: none; }
.painel.de-teste > footer { border-top: 1px solid var(--linha); }

/* ---------- integrações, filtros salvos e histórico do assistente ---------- */
.segredo { display: flex; align-items: center; gap: 8px; }
.segredo code { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--linha); border-radius: 8px; background: var(--caixa); font-size: 12px; overflow-wrap: anywhere; user-select: all; }
.lista-de-marcar { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 10px; }
.lista-de-marcar span { display: flex; flex-direction: column; }
.lista-de-marcar small { font-weight: 400; }
.cabeca-das-entregas { margin: 28px 0 8px; }
.cabeca-das-entregas h4 { margin: 0; }
.menu-solto.de-salvos { width: 320px; }
.filtro-salvo { display: flex; align-items: center; gap: 4px; flex: none; }
.filtro-salvo > button:first-child { flex: 1; min-width: 0; justify-content: flex-start; height: auto; min-height: 36px; text-align: left; font-weight: 500; }
.filtro-salvo > button:first-child.escolhido { background: var(--caixa); }
.filtro-salvo span { display: flex; flex-direction: column; min-width: 0; }
.filtro-salvo span small { font-weight: 400; }
.menu-solto.de-salvos > button.principal { justify-content: center; margin-top: 8px; }
.assistente { position: relative; }
.topo-do-assistente { position: absolute; top: 16px; right: 20px; z-index: 2; display: flex; gap: 8px; }
.conversa-assistente { padding-top: 64px; }
