@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; }

/* A cor do Direct mora aqui. Cada tema troca só estas linhas; o escolhido vai em data-tema no <html> (Configurações, Aparência).
   --realce: texto de destaque e links · --acao: botões · --lado: menu e blocos escuros · --lado-luz: destaque sobre o escuro · --brilho: luz do fundo da entrada.
   A mesma regra vale para a miniatura da tela de Aparência, que carrega o próprio data-tema. */
:root, [data-tema=violeta-limao] {
  --realce: oklch(0.46 0.2 295); --realce-claro: oklch(0.956 0.025 295);
  --lado: oklch(0.22 0.07 298); --lado-fundo: var(--lado); --lado-texto: oklch(0.88 0.025 295); --lado-fraco: oklch(0.73 0.05 295);
  --acao: oklch(0.88 0.2 125); --acao-forte: oklch(0.82 0.19 125); --sobre-acao: oklch(0.22 0.07 298); --lado-luz: oklch(0.9 0.19 125);
  --marca-fundo: var(--acao); --marca-traco: var(--lado); --brilho: oklch(0.45 0.22 295);
}
[data-tema=azul-ambar] {
  --realce: oklch(0.46 0.2 263); --realce-claro: oklch(0.955 0.022 263);
  --lado: oklch(0.215 0.06 265); --lado-fundo: var(--lado); --lado-texto: oklch(0.88 0.02 265); --lado-fraco: oklch(0.73 0.04 265);
  --acao: oklch(0.82 0.16 80); --acao-forte: oklch(0.76 0.16 78); --sobre-acao: oklch(0.22 0.05 265); --lado-luz: oklch(0.84 0.15 82);
  --marca-fundo: var(--acao); --marca-traco: var(--lado); --brilho: oklch(0.42 0.2 263);
}
/* o azul vivo em degradê, no estilo da Gaio; o fim do degradê é um pouco mais escuro para o texto do menu continuar legível */
[data-tema=azul-classico] {
  --realce: #0028fe; --realce-claro: oklch(0.9371 0.031 283.8);
  --lado: oklch(0.5053 0.2773 265.14); --lado-fundo: linear-gradient(oklch(0.5053 0.2773 265.14) 0%, oklch(0.62 0.2 272) 100%);
  --lado-texto: oklch(0.985 0.01 265); --lado-fraco: oklch(0.92 0.04 270);
  --acao: #0028fe; --acao-forte: #0020d6; --sobre-acao: #fff; --lado-luz: #fff;
  --marca-fundo: #fff; --marca-traco: #0028fe; --brilho: #1d3cff;
}
:root {
  --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);
  --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.52 0.11 68); --laranja-claro: oklch(0.955 0.05 85);
  --vermelho: oklch(0.52 0.2 17); --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);
}
* { 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(--realce); 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-forte); border-radius: 10px; box-shadow: 0 1px 0 var(--linha); font-weight: 600; cursor: pointer; transition: background .12s, border-color .12s, transform .08s, box-shadow .08s; }
button:hover { background: var(--caixa); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: default; }
button.principal { background: var(--acao); border-color: transparent; border-radius: 999px; padding: 0 18px; color: var(--sobre-acao); box-shadow: inset 0 -2px 0 oklch(0 0 0 / 0.2); }
button.principal:hover { background: var(--acao-forte); }
button.principal:active:not(:disabled) { box-shadow: inset 0 -1px 0 oklch(0 0 0 / 0.2); }
button.quadrado.principal { padding: 0; }
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; border-radius: 999px; 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; border-radius: 50%; 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(--realce); }
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(--realce); box-shadow: 0 0 0 3px color-mix(in oklch, var(--realce) 14%, transparent); }
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(--realce) 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(--realce); }
input[type=radio]:checked { border: 5px solid var(--realce); }
textarea { resize: vertical; min-height: 90px; }
:focus-visible { outline: 2px solid var(--realce); outline-offset: 2px; }

/* ---------- moldura: menu lateral e folha ---------- */
.moldura { display: grid; grid-template-columns: 236px minmax(0, 1fr); height: 100vh; background: var(--lado-fundo); }
.moldura.sem-topo { grid-template-columns: 68px minmax(0, 1fr); }
.trilho { display: flex; flex-direction: column; padding: 16px 12px 14px; color: var(--lado-texto); min-height: 0; overflow-y: auto; scrollbar-width: none; }
.trilho .logo { display: flex; align-items: center; gap: 10px; min-height: 36px; margin: 0 4px 18px; flex: none; color: #fff; font-size: 19px; letter-spacing: -0.4px; }
.trilho .logo:hover { text-decoration: none; }
.selo-marca { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 12px 12px 12px 4px; background: var(--marca-fundo); color: var(--marca-traco); }
.trilho button.eu { justify-content: flex-start; gap: 10px; width: 100%; min-height: 52px; margin-bottom: 14px; padding: 8px 10px; flex: none; border: 1px solid oklch(1 0 0 / 0.12); border-radius: 12px; background: oklch(1 0 0 / 0.06); box-shadow: none; color: #fff; text-align: left; }
.trilho button.eu:hover { background: oklch(1 0 0 / 0.11); }
.trilho .retrato { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: oklch(1 0 0 / 0.14); font-size: 12px; }
.trilho .quem { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.trilho .quem b, .trilho .quem small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.trilho .quem b { font-size: 13px; font-weight: 600; }
.trilho .quem small { color: var(--lado-fraco); font-weight: 400; }
.trilho .itens { display: flex; flex-direction: column; gap: 2px; flex: none; }
.trilho a.item, .trilho button.item { position: relative; display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; height: 40px; min-height: 40px; padding: 0 12px; flex: none; border: 0; border-radius: 10px; background: transparent; box-shadow: none; color: var(--lado-texto); font-weight: 500; text-align: left; }
.trilho .item:hover { background: oklch(1 0 0 / 0.07); color: #fff; text-decoration: none; }
.trilho .item.ativo { background: oklch(1 0 0 / 0.11); color: #fff; font-weight: 600; }
.trilho .item.ativo .ic { color: var(--lado-luz); }
.ic .mancha { fill: currentColor; fill-opacity: .26; }
.trilho .dentro-do-item { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 8px 21px; padding-left: 14px; border-left: 1px solid oklch(1 0 0 / 0.16); }
.trilho .dentro-do-item a { display: flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 8px; color: var(--lado-fraco); font-size: 13px; font-weight: 500; }
.trilho .dentro-do-item a:hover { color: #fff; text-decoration: none; }
.trilho .dentro-do-item a.ativo { background: oklch(1 0 0 / 0.08); color: #fff; font-weight: 600; }
.trilho .espaco { flex: 1; min-height: 16px; }
.trilho .progresso { display: flex; flex-direction: column; gap: 10px; padding: 12px; flex: none; border-radius: 12px; background: oklch(1 0 0 / 0.06); color: #fff; }
.trilho .progresso:hover { background: oklch(1 0 0 / 0.11); text-decoration: none; }
.trilho .progresso > span { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.trilho .progresso b { font-size: 12px; font-weight: 600; } .trilho .progresso small { color: var(--lado-fraco); }
.trilho .progresso > i { display: block; height: 6px; border-radius: 99px; background: oklch(1 0 0 / 0.16); overflow: hidden; }
.trilho .progresso > i > i { display: block; height: 100%; border-radius: 99px; background: var(--lado-luz); }
.trilho .baixo { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; flex: none; }
/* no editor só os ícones, para o fluxo ganhar a largura */
.sem-topo .trilho { align-items: center; padding-inline: 0; }
.sem-topo .trilho .nome { display: none; }
.sem-topo .trilho .logo { margin-inline: 0; }
.sem-topo .trilho button.eu { width: 44px; justify-content: center; padding: 0; }
.sem-topo .trilho .itens, .sem-topo .trilho .baixo { align-items: center; }
.sem-topo .trilho a.item, .sem-topo .trilho button.item { justify-content: center; width: 44px; padding: 0; }
.sem-topo .trilho .progresso { display: none; }
.sem-topo ~ * .menu-conta, body:has(.sem-topo) .menu-conta { left: 74px; top: 62px; }
.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; }
.folha { background: var(--fundo); border-radius: 20px 0 0 20px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.faixa-topo { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 28px; flex: none; background: var(--papel); border-bottom: 1px solid var(--linha); }
.faixa-topo .espaco { flex: 1; }
.faixa-topo .sino { position: relative; }
.faixa-topo .bolinha { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--vermelho); border: 1.5px solid #fff; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 12px; flex: none; border-radius: 99px; background: var(--caixa); color: var(--tinta); font-size: 12px; font-weight: 600; white-space: nowrap; }
a.chip:hover { text-decoration: none; background: var(--linha); }
.chip .luz { width: 8px; height: 8px; border-radius: 50%; background: var(--apagado); }
.chip.bom .luz { background: var(--verde); }
.chip.alerta, a.chip.alerta:hover { background: var(--laranja-claro); color: oklch(0.43 0.09 65); }
.barra-topo { display: flex; align-items: center; gap: 24px; height: 72px; 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; }
.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: 16px; 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(--realce); }
.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: 2px; background: var(--papel); border: 1px solid var(--linha); border-radius: 999px; }
.segmento button { min-height: 29px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; box-shadow: none; }
.segmento button.ativo { background: var(--lado); color: #fff; }
.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(--realce-claro); color: var(--realce); }
.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(--realce-claro); color: var(--realce); 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 { max-width: 1280px; margin: 0 auto; padding: 28px 28px 32px; --sentimento-positivo: var(--verde); --sentimento-neutro: oklch(0.551 0.027 264.36); --sentimento-negativo: var(--vermelho); }
.abertura { align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.saudacao { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -0.8px; margin: 0 0 4px; }
.saudacao em { color: var(--realce); font-style: normal; }
.titulo-grande { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.6px; margin: 0; }
.numeros { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.numero { min-height: 82px; padding: 16px; border-radius: 12px; }
.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; }
.inicio hr.do-inicio { margin: 32px 0; }
/* o placar: um bloco só, com o número que importa em destaque */
.placar { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); overflow: hidden; background: var(--papel); border: 1px solid var(--linha); border-radius: 18px; }
.placar > div { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 116px; padding: 20px 24px; }
.placar b { line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.placar .maior { flex-direction: row; align-items: center; justify-content: flex-start; gap: 18px; background: var(--lado); color: var(--lado-texto); }
.placar .maior b { color: var(--lado-luz); font-size: 52px; }
.placar .maior span { max-width: 230px; font-weight: 500; line-height: 20px; }
.placar .menor b { font-size: 28px; }
.placar .menor span { color: var(--fraco); font-size: 13px; }
.placar .menor + .menor { border-left: 1px solid var(--linha); }
.dupla { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.agora-e-pedido { margin-top: 16px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
.agora-e-pedido.sozinho { grid-template-columns: minmax(0, 1fr); }
/* ajustes iniciais: o próximo em destaque, a lista curta ao lado */
.arranque { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; background: var(--papel); border: 1px solid var(--linha); border-radius: 18px; }
.arranque .vez { display: flex; flex-direction: column; align-items: flex-start; padding: 22px; background: var(--realce-claro); }
.arranque .vez > small { margin-bottom: 18px; color: var(--realce); font-weight: 600; }
.selo-passo { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px 14px 14px 5px; background: var(--realce-claro); color: var(--realce); }
.arranque .selo-passo { background: var(--papel); }
.arranque .vez h3 { margin: 14px 0 2px; font-size: 19px; line-height: 1.3; letter-spacing: -0.3px; text-wrap: balance; }
.arranque .vez p { margin: 4px 0 18px; }
.arranque .vez button { margin-top: auto; }
.arranque ol { display: flex; flex-direction: column; justify-content: center; gap: 2px; margin: 0; padding: 14px 12px; list-style: none; }
.arranque li a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 10px; border-radius: 10px; color: var(--tinta); font-weight: 500; line-height: 18px; }
.arranque li a:hover { background: var(--caixa); text-decoration: none; }
.arranque li i { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border: 2px solid var(--linha-forte); border-radius: 50%; }
.arranque li.agora i { border-color: var(--realce); }
.arranque li.feito i { border-color: var(--verde); background: var(--verde); color: #fff; }
.arranque li.feito span { color: var(--fraco); }
.arranque li em { margin-left: auto; color: var(--fraco); font-size: 12px; font-style: normal; white-space: nowrap; }
/* o pedido em uma frase */
.pedir { display: flex; flex-direction: column; padding: 22px; border-radius: 18px; }
.pedir h3 { margin: 0; font-size: 19px; letter-spacing: -0.3px; }
.pedir p { margin: 4px 0 14px; color: var(--fraco); }
.pedir textarea { min-height: 84px; resize: none; }
.sugestoes { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.sugestoes button { min-height: 30px; padding: 0 12px; font-size: 12px; font-weight: 500; }
.pedir .levar { align-self: flex-start; margin-top: auto; }
/* receitas: cada cartão mostra o caminho que a pessoa percorre */
.cabeca-objetivos { margin: 32px 0 14px; }
.receitas { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.receitas .receita { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 14px; height: auto; min-height: 156px; padding: 18px; border: 1px solid var(--linha); border-radius: 18px; background: var(--papel); box-shadow: none; color: var(--tinta); font-weight: 400; text-align: left; transition: border-color .15s, transform .2s cubic-bezier(0.16, 1, 0.3, 1); }
.receitas .receita:hover { border-color: var(--realce); transform: translateY(-2px); text-decoration: none; }
.receita > b { font-size: 16px; font-weight: 600; }
.caminho { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: auto; color: var(--apagado); }
.caminho em { padding: 3px 10px; border-radius: 99px; background: var(--caixa); color: var(--tinta); font-size: 12px; font-style: normal; font-weight: 500; }
.receitas a.todas { flex-direction: row; align-items: center; justify-content: center; gap: 10px; border-style: dashed; border-color: var(--linha-forte); color: var(--realce); }
.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(--realce); font-weight: 500; margin-left: 4px; }
.titulo-medio { font-size: 20px; line-height: 25px; font-weight: 600; margin: 0 0 20px; }
.origens { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); align-items: center; gap: 28px; border-radius: 18px; }
.origens .soma h2 { margin: 0 0 12px; font-size: 18px; }
.origens .soma b { display: block; font-size: 40px; line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.origens ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.origens li { display: grid; grid-template-columns: minmax(140px, 200px) minmax(0, 1fr) 44px; align-items: center; gap: 14px; }
.origens li > span { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.origens li > div { height: 10px; border-radius: 99px; background: var(--caixa); overflow: hidden; }
.origens li > div i { display: block; height: 100%; border-radius: 99px; background: var(--realce); }
.origens li > b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.o-que-e { display: inline-flex; color: var(--apagado); }
.cartao-grafico { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid var(--linha); border-radius: 18px; background: var(--papel); }
.cartao-grafico h3 { margin: 0; font-size: 18px; line-height: 26px; letter-spacing: -.3px; }
.cartao-grafico .intervalo { margin: 2px 0 0; color: var(--fraco); font-size: 13px; }
.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: 280px; margin-top: 16px; }
.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(--realce); }
.dupla.de-graficos { margin-top: 20px; }
.de-graficos .cartao-grafico { min-height: 460px; }
.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(--realce); color: var(--realce); background: var(--realce-claro); }
.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(--realce); }
.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: 1320px) { .agora-e-pedido { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1000px) { .dupla { grid-template-columns: 1fr; } .faixa-periodo { flex-wrap: wrap; } .receitas { grid-template-columns: repeat(2, minmax(0, 1fr)); } .origens { grid-template-columns: minmax(0, 1fr); gap: 18px; } .placar { grid-template-columns: repeat(3, minmax(0, 1fr)); } .placar .maior { grid-column: 1 / -1; } .placar .menor:nth-child(2) { border-left: 0; } .arranque { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .inicio { padding: 20px 12px; } .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(--realce); }
.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(--realce); 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(--realce); } .interruptor input:checked + i::after { left: 15px; }
.interruptor input:focus-visible + i { outline: 2px solid var(--realce); 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(--realce-claro); color: var(--realce); }
.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 { position: relative; display: grid; grid-template-columns: minmax(0, 567px) minmax(0, 1fr); gap: 20px; min-height: 100vh; padding: 20px; background: var(--lado); overflow: hidden; isolation: isolate; }
.entrada ::selection { background: #c9d2ff; color: var(--tinta-forte); }
.entrada input { caret-color: var(--realce); }

/* fundo: duas luzes que passeiam devagar sob uma grade fina */
.ent-ceu { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ent-ceu .ent-luz { position: absolute; border-radius: 50%; will-change: transform; }
.ent-ceu .ent-luz.ent-um { width: 120vw; height: 90vh; left: -20vw; top: 30vh; background: radial-gradient(closest-side, var(--brilho) 0%, color-mix(in oklch, var(--brilho) 82%, transparent) 35%, transparent 100%); animation: deriva 19s ease-in-out infinite alternate; }
.ent-ceu .ent-luz.ent-dois { width: 70vw; height: 70vh; right: -28vw; bottom: -40vh; background: radial-gradient(closest-side, var(--lado-luz) 0%, color-mix(in oklch, var(--lado-luz) 55%, transparent) 45%, transparent 100%); animation: deriva 23s ease-in-out -7s infinite alternate-reverse; }
.ent-ceu .ent-grade { position: absolute; inset: 0; background-image: linear-gradient(#ffffff12 1px, transparent 1px), linear-gradient(90deg, #ffffff12 1px, transparent 1px); background-size: 93px 93px; -webkit-mask-image: radial-gradient(120% 90% at 60% 35%, #000 30%, transparent 78%); mask-image: radial-gradient(120% 90% at 60% 35%, #000 30%, transparent 78%); }
.ent-ceu .ent-flutua { position: absolute; color: #ffffff2e; animation: boiar 9s ease-in-out infinite alternate; }
.ent-ceu .ent-flutua svg { stroke-width: 0.6; }
.ent-ceu .ent-flutua.ent-baixo { left: min(567px, 40vw); bottom: -64px; --giro: -16deg; }
.ent-ceu .ent-flutua.ent-alto-direita { right: -46px; top: -92px; --giro: 12deg; animation-delay: -4s; }
@keyframes deriva { from { transform: translate3d(-4vw, 2vh, 0) scale(1); } to { transform: translate3d(7vw, -6vh, 0) scale(1.12); } }
@keyframes boiar { from { transform: translateY(-9px) rotate(var(--giro)); } to { transform: translateY(11px) rotate(calc(var(--giro) + 5deg)); } }

.entrada main { display: flex; flex-direction: column; min-height: calc(100vh - 40px); border-radius: 24px; background: var(--papel); box-shadow: 0 24px 60px -24px #03052080; animation: chega 700ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
@keyframes chega { from { opacity: 0.4; transform: translateX(-18px); } }
.entrada main > header { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 68px; border-bottom: 1px solid var(--linha); font-size: 22px; letter-spacing: -0.5px; }
.entrada .logo { color: var(--realce); display: grid; }
.entrada .corpo { width: min(428px, calc(100% - 40px)); margin: auto; padding: 28px 0; }
.entrada main > footer { padding: 0 20px 24px; text-align: center; font-size: 12px; color: var(--fraco); }
.entrada h1 { margin: 0; text-align: center; font-size: 26px; line-height: 32px; letter-spacing: -0.5px; text-wrap: balance; }
.entrada .sub { margin: 6px 0 26px; text-align: center; color: var(--fraco); }
.entrada form { display: grid; gap: 16px; }
.entrada form .campo { margin: 0; }
.entrada input { width: 100%; min-height: 40px; }
.entrada .senha { display: flex; }
.entrada .senha input { border-radius: 8px 0 0 8px; }
.entrada .senha button { flex: none; width: 44px; min-height: 40px; border-radius: 0 8px 8px 0; margin-left: -1px; }
.entrada .senha button[aria-pressed=true] { color: var(--realce); }
.entrada form > button.texto { justify-self: start; }
.entrada button.entrar { position: relative; width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; }
.entrada button.entrar svg { transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1); }
.entrada button.entrar:hover svg { transform: translateX(4px); }
.entrada button.entrar:disabled { opacity: 0.85; cursor: progress; }
.entrada button.ent-esperando > * { visibility: hidden; }
.entrada button.ent-esperando::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #ffffff66; border-top-color: #fff; animation: gira 700ms linear infinite; }
@keyframes gira { to { transform: rotate(1turn); } }
.entrada form.ent-treme { animation: treme 320ms ease-out; }
@keyframes treme { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
.erro-da-entrada { margin: -6px 0 0; min-height: 19px; text-align: center; color: #b42318; font-size: 13px; line-height: 19px; }
.entrada .com-instagram { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1px solid var(--linha); border-radius: 8px; background: var(--papel); box-shadow: 0 1px 2px #1018280d; color: var(--tinta-forte); font-size: 16px; font-weight: 500; text-decoration: none; transition: border-color 160ms, box-shadow 220ms; }
.entrada .com-instagram:hover { border-color: var(--realce); box-shadow: 0 8px 20px -12px #10182855; text-decoration: none; }
.entrada .ou { display: flex; align-items: center; gap: 12px; margin: 22px 0; font-size: 12px; color: var(--fraco); }
.entrada .ou::before, .entrada .ou::after { content: ""; flex: 1; border-top: 1px solid var(--linha); }

/* o palco: o produto funcionando */
.ent-palco { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; min-width: 0; color: #fff; }
.ent-palco h2 { max-width: 560px; margin: 0; text-align: center; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.15; letter-spacing: -0.8px; text-wrap: balance; }
.ent-demo { display: flex; flex-direction: column; gap: 12px; width: min(380px, 100%); padding: 18px; border-radius: 22px; background: #ffffff; color: var(--tinta); box-shadow: 0 34px 70px -28px #020438cc; }
.ent-demo .ent-peca { opacity: 0; transform: translateY(12px) scale(0.97); transition: opacity 160ms ease-in, transform 160ms ease-in, filter 160ms; filter: blur(4px); }
.ent-demo .ent-peca.ent-visivel { opacity: 1; transform: none; filter: none; transition: opacity 420ms cubic-bezier(0.16, 1, 0.3, 1), transform 520ms cubic-bezier(0.16, 1, 0.3, 1), filter 420ms; }
.ent-demo .ent-comentario { display: flex; gap: 10px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--linha); }
.ent-demo .ent-comentario small { display: block; color: var(--fraco); }
.ent-demo .ent-rosto { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #a94cff, #f4359e); color: #fff; font-weight: 600; }
.ent-demo .ent-vez { display: grid; }
.ent-demo .ent-vez > .ent-peca { grid-area: 1 / 1; align-self: start; }
.ent-demo .ent-deles, .ent-demo .ent-digitando { justify-self: start; }
.ent-demo .ent-bolha { max-width: 280px; padding: 10px 12px; border-radius: 16px 16px 16px 5px; background: var(--caixa); }
.ent-demo .ent-bolha p { margin: 0; line-height: 1.4; }
.ent-demo .ent-botao-da-bolha { display: block; margin-top: 8px; padding: 7px 12px; border: 1px solid var(--linha); border-radius: 9px; background: var(--papel); text-align: center; font-weight: 600; color: var(--tinta-forte); transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), background 180ms, color 180ms; }
/* o toque no primeiro botão, um passo antes de a resposta aparecer */
.ent-demo[data-passo="4"] .ent-toque { transform: scale(0.94); background: var(--realce); border-color: var(--realce); color: #fff; }
.ent-demo .ent-minha { align-self: flex-end; }
.ent-demo .ent-bolha.ent-eu-mando { border-radius: 16px 16px 5px 16px; background: var(--realce); color: #fff; }
.ent-demo .ent-digitando { display: flex; gap: 4px; padding: 13px 14px; border-radius: 16px 16px 16px 5px; background: var(--caixa); }
.ent-demo .ent-digitando i { width: 7px; height: 7px; border-radius: 50%; background: var(--fraco); animation: pontinho 900ms ease-in-out infinite; }
.ent-demo .ent-digitando i:nth-child(2) { animation-delay: 130ms; }
.ent-demo .ent-digitando i:nth-child(3) { animation-delay: 260ms; }
@keyframes pontinho { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-4px); } }
.ent-demo .ent-marcado { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--realce-claro); color: var(--acao-forte); font-size: 12px; font-weight: 600; }
.ent-selo-api { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; border-radius: 99px; background: #070a33b3; font-size: 13px; }

@media (max-width: 960px) { .entrada { grid-template-columns: minmax(0, 1fr); padding: 14px; } .entrada main { min-height: calc(100vh - 28px); } .ent-palco, .ent-ceu .ent-flutua { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .entrada main, .entrada form.ent-treme, .ent-ceu .ent-luz.ent-um, .ent-ceu .ent-luz.ent-dois, .ent-ceu .ent-flutua { animation: none; }
  .ent-demo .ent-peca, .ent-demo .ent-peca.ent-visivel { transition: none; }
  .ent-demo .ent-digitando i, .entrada button.ent-esperando::after { animation: none; }
  .ent-ceu .ent-flutua { transform: rotate(var(--giro)); }
}

/* ---------- espera: o anel gira em volta da marca ---------- */
.giro-da-marca { position: relative; display: grid; place-items: center; width: 72px; height: 72px; color: var(--realce); }
.giro-da-marca::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 8%, color-mix(in oklch, var(--realce) 14%, transparent) 30%, var(--realce)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); animation: gira 1100ms linear infinite; }
.giro-da-marca svg { animation: respira 1600ms ease-in-out infinite; }
@keyframes respira { 50% { transform: scale(0.86); opacity: 0.75; } }
.abrindo-painel { display: grid; place-items: center; height: 100%; animation: aparece 300ms ease-out 150ms backwards; }
@keyframes aparece { from { opacity: 0; } }
.espera-da-meta { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 14px; background: var(--lado) radial-gradient(90% 60% at 50% 105%, var(--brilho) 0%, transparent 70%); }
.espera-da-meta section { display: flex; flex-direction: column; align-items: center; width: min(460px, 100%); min-height: min(640px, calc(100vh - 28px)); min-height: min(640px, calc(100dvh - 28px)); padding: 0 24px 24px; border-radius: 24px; background: var(--papel); box-shadow: 0 24px 60px -24px #03052080; text-align: center; animation: chega 500ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.espera-da-meta header { display: flex; align-items: center; justify-content: center; gap: 10px; align-self: stretch; min-height: 68px; margin: 0 -24px; border-bottom: 1px solid var(--linha); color: var(--realce); font-size: 22px; letter-spacing: -0.5px; }
.espera-da-meta header b { color: var(--tinta-forte); }
.espera-da-meta [role=status] { display: flex; flex-direction: column; align-items: center; margin: auto 0 20px; }
.espera-da-meta h1 { margin: 24px 0 6px; font-size: 22px; line-height: 28px; text-wrap: balance; }
.espera-da-meta p { max-width: 290px; margin: 0; color: var(--fraco); }
.espera-da-meta a { margin-bottom: auto; padding: 10px 16px; font-weight: 500; }
.espera-da-meta [role=alert] { display: flex; flex-direction: column; align-items: center; margin: auto 0 28px; }
.espera-da-meta a.principal { margin-bottom: 6px; align-self: stretch; padding: 12px 16px; border-radius: 12px; background: var(--realce); color: #fff; text-decoration: none; }
.entrada .com-instagram.abrindo { pointer-events: none; color: var(--fraco); background: var(--caixa); }
.entrada .com-instagram.abrindo .ic { display: none; }
.entrada .com-instagram.abrindo::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--linha-forte); border-top-color: var(--realce); animation: gira 700ms linear infinite; }
@media (prefers-reduced-motion: reduce) { .giro-da-marca::before, .giro-da-marca svg, .abrindo-painel, .espera-da-meta section, .entrada .com-instagram.abrindo::before { animation: none; } }

/* ---------- 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(--realce); }

.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(--realce); 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(--realce); border-top-left-radius: 0; }
.no.com-erro { --borda: var(--laranja); border-top-left-radius: 0; }
.no.escolhido.gatilho { --borda: var(--realce); }
.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(--realce); }
.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(--realce); }
.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(--realce); }
.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: var(--lado); box-shadow: var(--sombra-painel); }
.assistente-botao:hover { background: var(--realce); }
@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(--realce-claro); color: var(--realce); }
.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(--acao); color: var(--sobre-acao); }
.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(--realce); }
.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(--realce); 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(--realce); }
.ficha { background: var(--papel); border-radius: 8px; padding: 12px 14px; margin-top: 10px; cursor: grab; border: 1px solid var(--linha); }

@media (max-width: 900px) {
  .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; }
  .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: 12px; top: 126px; width: min(340px, calc(100vw - 24px)); max-height: calc(100vh - 140px); overflow-y: auto; 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(--realce-claro); color: var(--realce); 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(--realce-claro); }
.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(--realce-claro); border: 1px solid var(--realce); color: var(--realce); }
.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(--realce); }
.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(--realce); }
.modelo-relatorio .capa { display: grid; place-items: center; height: 144px; background: var(--realce-claro); color: var(--realce); }
.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(--realce); }

.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: color-mix(in oklch, var(--realce) 12%, transparent); border: 1px dashed var(--realce); }
.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(--realce); background: var(--papel); }
.bloco-pronto .capa { display: grid; place-items: center; height: 80px; margin-bottom: 4px; border-radius: 6px; background: var(--realce-claro); color: var(--realce); }
.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(--realce); background: var(--realce-claro); }
.tipos-de-grafico button.ativo .ic { color: var(--realce); }
.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; }


.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(--realce); }
.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(--realce-claro); border-color: var(--realce); color: var(--realce); }
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: 12px; }
.template { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; border: 1px solid var(--linha); border-radius: 18px; background: var(--papel); }
.template > b { margin-top: 4px; font-size: 16px; font-weight: 600; }
.template p { margin: 0; color: var(--fraco); line-height: 21px; }
.template footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-self: stretch; margin-top: auto; padding-top: 10px; }
.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(--realce); }
.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(--realce); color: #fff; font-size: 15px; line-height: 22px; letter-spacing: 0; }
.compositor { width: 100%; padding: 2px; border-radius: 14px; background: var(--realce); }
.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(--realce); }
.compositor button.enviar { width: 36px; padding: 0; border: 0; border-radius: 6px; background: var(--realce); 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(--realce); 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(--realce); 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(--realce); 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(--realce); }
.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(--realce); 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(--realce-claro); color: var(--realce); 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; }

/* ---------- movimento: tudo com prefixo mv-, para não bater com as classes das telas ---------- */
.recado { position: relative; overflow: hidden; animation: mv-entra 340ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
/* a regra geral de erro pinta o texto de vermelho, que não se lê neste fundo escuro */
#recados .recado { color: #fff; }
.recado > span { flex: 1; }
.recado.mv-saindo { opacity: 0; transform: translateY(-8px) scale(0.98); transition: opacity 160ms ease-in, transform 160ms ease-in; }
.recado button.mv-fechar { flex: none; display: grid; place-items: center; width: 24px; min-height: 24px; padding: 0; border: 0; background: transparent; box-shadow: none; color: #ffffffb3; }
.recado button.mv-fechar:hover { color: #fff; background: #ffffff1f; }
.recado button.mv-fechar .ic { color: inherit; }
.recado .mv-tempo { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: oklch(0.871 0.15 154.4); transform-origin: left; animation: mv-gasta linear forwards; }
.recado.erro .mv-tempo { background: oklch(0.808 0.114 19.57); }
.recado:hover .mv-tempo { animation-play-state: paused; }
@keyframes mv-entra { from { opacity: 0; transform: translateY(-14px) scale(0.97); } }
@keyframes mv-gasta { to { transform: scaleX(0); } }

.mv-sucesso { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; pointer-events: none; }
.mv-sucesso > div { display: grid; justify-items: center; gap: 8px; width: min(340px, calc(100% - 40px)); padding: 28px 24px; border: 1px solid var(--linha); border-radius: 16px; background: var(--papel); box-shadow: 0 30px 70px -24px #0b103866; text-align: center; animation: mv-surge 320ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.mv-sucesso svg { width: 64px; height: 64px; fill: none; stroke: var(--verde); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.mv-sucesso circle, .mv-sucesso path { stroke-dasharray: 1; animation: mv-risca 520ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.mv-sucesso path { animation-delay: 300ms; animation-duration: 360ms; }
.mv-sucesso b { font-size: 17px; }
.mv-sucesso span { color: var(--fraco); }
.mv-sucesso.mv-saindo { opacity: 0; transition: opacity 200ms ease-in; }
@keyframes mv-surge { from { opacity: 0; transform: scale(0.94) translateY(8px); } }
@keyframes mv-risca { from { stroke-dashoffset: 1; opacity: 0; } 5% { opacity: 1; } }

.mv-esqueleto { flex: none; display: grid; gap: 18px; width: min(980px, calc(100% - 48px)); margin: 28px auto; align-content: start; }
.mv-esqueleto i { display: block; border-radius: 8px; background: linear-gradient(100deg, var(--caixa) 30%, #f8f9fc 50%, var(--caixa) 70%); background-size: 260% 100%; animation: mv-brilho 1300ms linear infinite; }
.mv-esqueleto .mv-titulo { height: 28px; width: 38%; }
.mv-esqueleto .mv-cartoes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mv-esqueleto .mv-cartoes i { height: 96px; }
.mv-esqueleto .mv-linha { display: flex; align-items: center; gap: 14px; }
.mv-esqueleto .mv-linha > div { flex: 1; display: grid; gap: 8px; }
.mv-esqueleto .mv-linha > div i { height: 12px; }
.mv-esqueleto .mv-linha > div i:last-child { width: 62%; }
.mv-esqueleto .mv-bola { flex: none; width: 40px; height: 40px; border-radius: 50%; }
@keyframes mv-brilho { from { background-position: 130% 0; } to { background-position: -130% 0; } }

button.mv-copiado { color: var(--verde); border-color: var(--verde); justify-content: center; }
button.mv-copiado .ic { animation: mv-surge 240ms cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes mv-acende { from { background-color: var(--linha); } }
@keyframes mv-marca { from { stroke-dashoffset: 24; } }

@media (prefers-reduced-motion: reduce) {
  .recado, .mv-sucesso > div, .mv-sucesso circle, .mv-sucesso path, .mv-esqueleto i, button.mv-copiado .ic { animation: none; }
  .recado .mv-tempo { display: none; }
  .recado.mv-saindo { transform: none; }
}

/* Configurações, Aparência: cada tema vira uma miniatura que já mostra as cores dele */
.temas { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.temas button.tema { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 12px; height: auto; padding: 12px 12px 16px; border: 1px solid var(--linha); border-radius: 18px; background: var(--papel); box-shadow: none; text-align: left; font-weight: 400; }
.temas button.tema:hover { border-color: var(--linha-forte); }
.temas button.tema[aria-pressed=true] { border-color: var(--realce); box-shadow: 0 0 0 3px color-mix(in oklch, var(--realce) 14%, transparent); }
.temas .previa-tema { display: grid; grid-template-columns: 32% minmax(0, 1fr); height: 104px; overflow: hidden; border: 1px solid var(--linha); border-radius: 12px; background: var(--fundo); }
.previa-tema .lado { display: flex; flex-direction: column; gap: 7px; padding: 12px 10px; background: var(--lado-fundo); }
.previa-tema .lado i { display: block; height: 7px; border-radius: 99px; background: var(--lado-texto); opacity: .55; }
.previa-tema .lado i:first-child { width: 60%; height: 12px; margin-bottom: 4px; border-radius: 4px; background: var(--marca-fundo); opacity: 1; }
.previa-tema .lado i.aqui { background: var(--lado-luz); opacity: 1; }
.previa-tema .corpo { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 12px 14px; }
.previa-tema .corpo b { display: block; width: 62%; height: 9px; border-radius: 99px; background: var(--realce); }
.previa-tema .corpo i { display: block; width: 90%; height: 6px; border-radius: 99px; background: var(--linha-forte); }
.previa-tema .corpo u { display: block; width: 46%; height: 22px; margin-top: 4px; border-radius: 99px; background: var(--acao); }
.temas .tema > span { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.temas .tema b { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.temas .tema b .ic { color: var(--realce); }
.temas .tema small { line-height: 18px; }
