/* DimGrid — estilo base do painel */
:root {
    --fundo: #f4f6fa;
    --superficie: #ffffff;
    --texto: #0f172a;
    --texto-2: #475569;
    --borda: #e2e8f0;
    /* Cores da marca DimGrid (logo: azul-petróleo #142832 e laranja #e26a2c) */
    --lateral: #142832;
    --lateral-texto: #cbd5e1;
    --destaque: #e8742e;
    --destaque-escuro: #b4501a;
    --destaque-claro: #ffb27a;
    --ok: #047857;
    --ok-fundo: #d1fae5;
    --erro: #b91c1c;
    --erro-fundo: #fee2e2;
    --raio: 10px;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --fundo: #0b1120;
        --superficie: #111827;
        --texto: #e5e7eb;
        --texto-2: #94a3b8;
        --borda: #1f2937;
        --lateral: #0a161c;
        --ok-fundo: #064e3b;
        --ok: #a7f3d0;
        --erro-fundo: #7f1d1d;
        --erro: #fecaca;
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--texto); background: var(--fundo); }
a { color: inherit; }
h1, h2 { margin: 0; line-height: 1.2; }

.marca { font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; }
.marca img { border-radius: 8px; flex: none; }
.marca span { color: var(--destaque); }

/* O atributo hidden vence qualquer display de classe (.botao, .navegacao-passos...). */
[hidden] { display: none !important; }
.botao { display: inline-block; border: 0; border-radius: var(--raio); padding: .7rem 1.2rem; background: var(--destaque); color: #1c1003; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.botao:hover { background: var(--destaque-escuro); color: #fff; }
.link { background: none; border: 0; padding: 0; color: var(--lateral-texto); font: inherit; text-decoration: underline; cursor: pointer; }

.aviso { border-radius: var(--raio); padding: .7rem 1rem; margin-bottom: 1rem; }
.aviso-ok { background: var(--ok-fundo); color: var(--ok); }
.aviso-erro { background: var(--erro-fundo); color: var(--erro); }

/* Login e telas soltas */
.tela-login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 30% 20%, #1f3a48, #142832 45%, #0a161c); position: relative; overflow: hidden; }
/* Marca d'água da logo atrás do cartão de login */
.tela-login::before { content: ""; position: absolute; width: min(90vw, 760px); aspect-ratio: 1; right: -12%; bottom: -18%; background: url(/assets/marca/logo-256.png) center / contain no-repeat; opacity: .07; filter: grayscale(1) brightness(1.6); transform: rotate(-12deg); pointer-events: none; }
.cartao-login { position: relative; }
.logo-login { display: block; border-radius: 18px; margin-bottom: .75rem; box-shadow: 0 8px 24px rgb(0 0 0 / .25); }
.cartao-login { width: 100%; max-width: 380px; background: var(--superficie); border-radius: 16px; padding: 2rem; box-shadow: 0 20px 50px rgb(0 0 0 / .35); }
.cartao-login .sub { color: var(--texto-2); margin: .25rem 0 1.5rem; }
.cartao-login form { display: grid; gap: 1rem; }
.cartao-login label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
.cartao-login input { width: 100%; padding: .7rem .8rem; border: 1px solid var(--borda); border-radius: var(--raio); background: var(--fundo); color: var(--texto); font: inherit; }
.cartao-login input:focus { outline: 2px solid var(--destaque); outline-offset: 1px; }
.erro-titulo { margin-top: 1rem; font-size: 1.3rem; }

/* Painel */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.lateral { background: var(--lateral); color: var(--lateral-texto); display: flex; flex-direction: column; padding: 1.25rem 1rem; position: sticky; top: 0; height: 100vh; }
.lateral .marca { color: #fff; margin: 0 .5rem 1.5rem; }
.lateral nav { display: grid; gap: .15rem; }
.lateral nav a { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 8px; text-decoration: none; }
.lateral nav a:hover { background: rgb(255 255 255 / .06); color: #fff; }
.lateral nav a.ativo { background: rgb(232 116 46 / .18); color: var(--destaque-claro); }
.lateral svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.lateral-rodape { margin-top: auto; padding: .7rem; border-top: 1px solid rgb(255 255 255 / .08); display: grid; gap: .1rem; }
.lateral-rodape strong { color: #fff; }
.lateral-rodape small { color: #64748b; margin-bottom: .4rem; }

.conteudo { padding: 1.5rem 2rem; min-width: 0; }
.topo { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.25rem; }
.topo h1 { font-size: 1.5rem; }
.botao-menu { display: none; font-size: 1.4rem; cursor: pointer; }
.fundo-menu { display: none; }

.saudacao { color: var(--texto-2); margin: 0 0 1rem; }
.cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.cartao { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1rem 1.2rem; text-decoration: none; display: grid; gap: .3rem; }
a.cartao:hover { border-color: var(--destaque); }
.cartao span { color: var(--texto-2); font-size: .85rem; }
.cartao strong { font-size: 1.8rem; font-variant-numeric: tabular-nums; }

.bloco { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1.25rem 1.5rem; }
.bloco h2 { font-size: 1.1rem; margin-bottom: .8rem; }
.bloco.vazio { text-align: center; padding: 3rem 1.5rem; }
.bloco.vazio p { color: var(--texto-2); }
.roadmap { margin: 0; padding-left: 1.3rem; display: grid; gap: .35rem; color: var(--texto-2); }
.roadmap .feito { color: var(--texto); }
.roadmap .feito::marker { color: var(--ok); }
.roadmap .feito::after { content: " ✓"; color: var(--ok); font-weight: 700; }

/* Celular: menu lateral vira gaveta */
@media (max-width: 860px) {
    .app { grid-template-columns: 1fr; }
    .lateral { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 20; transform: translateX(-100%); transition: transform .2s; }
    #menu-toggle:checked ~ .lateral { transform: none; }
    #menu-toggle:checked ~ .fundo-menu { display: block; position: fixed; inset: 0; background: rgb(0 0 0 / .4); z-index: 10; }
    .botao-menu { display: block; }
    .conteudo { padding: 1rem 16px; }
}

/* ---------- Componentes de lista e formulário (Etapa 2) ---------- */
.botao-sec { background: transparent; color: var(--texto); border: 1px solid var(--borda); }
.botao-sec:hover { background: var(--fundo); color: var(--texto); border-color: var(--texto-2); }
.link-acao { background: none; border: 0; padding: 0; color: var(--texto-2); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; }
.link-acao:hover { color: var(--texto); }

.abas { display: flex; gap: .25rem; border-bottom: 1px solid var(--borda); margin-bottom: 1rem; overflow-x: auto; }
.abas a { padding: .6rem 1rem; text-decoration: none; color: var(--texto-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.abas a:hover { color: var(--texto); }
.abas a.ativa { color: var(--texto); border-bottom-color: var(--destaque); font-weight: 600; }

.filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; align-items: center; }
.filtros input[type=search] { flex: 1 1 260px; }
.filtros .botao { padding: .55rem 1rem; }
input, select, textarea { padding: .55rem .7rem; border: 1px solid var(--borda); border-radius: 8px; background: var(--superficie); color: var(--texto); font: inherit; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--destaque); outline-offset: 1px; }
input:disabled, select:disabled, textarea:disabled { opacity: .7; }

.contagem { color: var(--texto-2); font-size: .85rem; margin: 0 0 .5rem; }
.tabela-rolagem { overflow-x: auto; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); }
.tabela-alta { max-height: 60vh; overflow-y: auto; }
.tabela { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabela th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--texto-2); font-weight: 600; padding: .7rem .8rem; border-bottom: 1px solid var(--borda); background: var(--superficie); position: sticky; top: 0; }
.tabela td { padding: .6rem .8rem; border-bottom: 1px solid var(--borda); vertical-align: top; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela td small { display: block; color: var(--texto-2); font-size: .8rem; }
.tabela td.num small { display: inline; }
.tabela a { text-decoration: none; }
.tabela a:hover strong { text-decoration: underline; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabela th.num { text-align: right; }
.acoes { text-align: right; white-space: nowrap; }
.acoes form { display: inline; }
tr.inativo td { opacity: .5; }
tr.linha-erro td { background: var(--erro-fundo); }
.negativo { color: var(--erro); font-weight: 600; }

.selo { display: inline-block; font-size: .75rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; }
.selo-ok { background: var(--ok-fundo); color: var(--ok); }
.selo-erro { background: var(--erro-fundo); color: var(--erro); }
.selo-info { background: #dbeafe; color: #1e40af; }
.selo-alerta { background: #fef3c7; color: #92400e; }


.formulario fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.formulario fieldset > * { min-width: 0; }
.grade { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .9rem 1rem; }
.grade[hidden] { display: none; }
.grade label, .bloco-texto { display: grid; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--texto-2); align-content: start; }
.grade label small { font-weight: 400; }
.grade input, .grade select, .grade textarea, .bloco-texto textarea { width: 100%; color: var(--texto); font-weight: 400; font-size: .95rem; }
.bloco-texto { margin-top: 1rem; }
.col-1 { grid-column: span 1; } .col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; } .col-6 { grid-column: 1 / -1; }
.erro-campo { color: var(--erro); font-size: .8rem; font-weight: 600; }
.dica { color: var(--texto-2); font-size: .88rem; margin: 0 0 .8rem; }
.indicador { display: grid; align-content: center; gap: .2rem; padding: .4rem .8rem; background: var(--fundo); border-radius: 8px; }
.indicador span { font-size: .8rem; color: var(--texto-2); }
.indicador strong { font-size: 1.3rem; }
label.check { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--texto); }
label.check input { width: auto; }
.barra-acoes { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; align-items: center; margin-top: 1rem; }
.barra-acoes .check { margin-right: auto; }
.barra-acoes form { display: inline; }

.duas-colunas { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.resumo dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem 1rem; margin: 0; }
.resumo dt { color: var(--texto-2); }
.resumo dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.busca-produto { position: relative; margin-bottom: .8rem; }
.busca-produto input { width: 100%; }
.busca-resultados { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: .3rem; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: 0 10px 30px rgb(0 0 0 / .15); max-height: 320px; overflow-y: auto; }
.busca-resultados button { display: grid; width: 100%; text-align: left; gap: .1rem; padding: .5rem .6rem; border: 0; border-radius: 6px; background: none; color: var(--texto); font: inherit; cursor: pointer; }
.busca-resultados button:hover, .busca-resultados button:focus { background: var(--fundo); }
.busca-resultados small { color: var(--texto-2); font-size: .8rem; }
.busca-resultados .nada { padding: .6rem; color: var(--texto-2); }
.tabela-itens .qtd { width: 5.5rem; text-align: right; }

.passos { color: var(--texto-2); padding-left: 1.2rem; display: grid; gap: .4rem; margin: 0 0 1rem; }
.linha-upload { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

@media (prefers-color-scheme: dark) {
    .selo-info { background: #1e3a8a; color: #bfdbfe; }
    .selo-alerta { background: #78350f; color: #fde68a; }
}
@media (max-width: 860px) {
    .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .col-1, .col-2 { grid-column: span 1; }
    .col-3, .col-4 { grid-column: 1 / -1; }
    .duas-colunas { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- CRM (Etapa 3) ---------- */
.escolha { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: end; padding-bottom: .55rem; }
.escolha label { display: flex; align-items: center; gap: .4rem; font-size: .95rem; font-weight: 600; color: var(--texto); }
.escolha input { width: auto; }
.campo { display: grid; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--texto-2); align-content: start; }
.campo .busca-produto { margin: 0; }
.campo input { font-weight: 400; font-size: .95rem; }
input.invalido { outline: 2px solid var(--erro); outline-offset: 1px; }
.barra-topo { margin: 0 0 1rem; justify-content: flex-start; }
.botao-perigo { background: transparent; color: var(--erro); border: 1px solid currentColor; }
.botao-perigo:hover { background: var(--erro-fundo); color: var(--erro); }
.secao { margin-top: 1rem; }
.cabecalho-secao { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.cabecalho-secao h2 { margin: 0; }
.resumo dl.dados dd { text-align: left; font-weight: 500; overflow-wrap: anywhere; }
.observacoes { margin: 1rem 0 0; padding: .7rem .9rem; background: var(--fundo); border-radius: 8px; color: var(--texto-2); }
.tabela td.num small.abaixo { display: block; }
.tabela-consumo { margin-top: 1rem; max-width: 460px; }
.tabela-consumo input { width: 8rem; text-align: right; }
.tabela-consumo td { vertical-align: middle; padding: .35rem .8rem; }

/* ---------- Permissões e contexto de loja ---------- */
.topo .contexto { margin-left: auto; display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--texto-2); }
.topo .contexto select { max-width: 260px; font-weight: 600; }
.contexto-fixo { background: var(--superficie); border: 1px solid var(--borda); border-radius: 999px; padding: .3rem .8rem; font-weight: 600; color: var(--texto); }
.papeis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; margin-bottom: .8rem; }
.papel-opcao { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--borda); border-radius: var(--raio); padding: .7rem .8rem; cursor: pointer; }
.papel-opcao:has(input:checked) { border-color: var(--destaque); background: rgb(232 116 46 / .08); }
.papel-opcao span { display: grid; gap: .15rem; }
.papel-opcao small { color: var(--texto-2); font-size: .8rem; }
.campo-loja { display: grid; gap: .3rem; max-width: 360px; font-size: .85rem; font-weight: 600; color: var(--texto-2); }
.campo-loja[hidden] { display: none; }
.matriz { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.grupo-perm { border: 1px solid var(--borda); border-radius: var(--raio); padding: .6rem .9rem .8rem; margin: 0; display: grid; gap: .45rem; align-content: start; }
.grupo-perm legend { font-weight: 700; padding: 0 .3rem; }
.grupo-perm:not(:has(.perm:not([hidden]))) { display: none; }
.perm { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.perm[hidden] { display: none; }
.perm input { margin-top: .25rem; }
.perm small { color: var(--texto-2); }
.perm .diferente { margin-left: auto; color: var(--destaque-escuro); font-weight: 600; white-space: nowrap; }
@media (max-width: 860px) {
    .topo { flex-wrap: wrap; }
    .topo .contexto { margin-left: 0; width: 100%; }
    .topo .contexto select { flex: 1; max-width: none; }
}

/* ---------- Gerador de propostas (Etapa 4) ---------- */
.gerador-colunas { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; align-items: start; }
.gerador-entradas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; }
.gerador-entradas > * { min-width: 0; }
.gerador-resumo { position: sticky; top: 1rem; }
.texto-medio { font-size: 1rem !important; }
.mes-a-mes { margin-top: 1rem; }
.mes-a-mes summary, details summary { cursor: pointer; }
.mes-a-mes summary small, details summary small { color: var(--texto-2); font-weight: 400; }
.grade-meses { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; margin-top: .7rem; }
.grade-meses label { display: grid; gap: .25rem; font-size: .8rem; color: var(--texto-2); font-weight: 600; }
.grade-meses input { width: 100%; text-align: right; }
.grade-meses input[hidden] { display: none; }
.grade-espaco { margin-top: 1rem; }
[hidden].so-a, [hidden].so-b { display: none !important; }
.lista-kits { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.kit-cartao { display: grid; gap: .15rem; text-align: left; padding: .6rem .8rem; border: 1px solid var(--borda); border-radius: var(--raio); background: var(--superficie); color: var(--texto); font: inherit; cursor: pointer; }
.kit-cartao:hover { border-color: var(--destaque); }
.kit-cartao.escolhido { border-color: var(--destaque); background: rgb(232 116 46 / .1); }
.kit-cartao span, .kit-cartao small { color: var(--texto-2); font-size: .82rem; }
.tabela-itens .custo { width: 7.5rem; text-align: right; }
.campo-kwp { display: grid; gap: .3rem; max-width: 320px; margin-top: .8rem; font-size: .85rem; font-weight: 600; color: var(--texto-2); }
.campo-kwp[hidden] { display: none; }
.decomposicao { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: .3rem 1rem; margin: 1rem 0 0; padding: .7rem .9rem; background: var(--fundo); border-radius: 8px; font-size: .88rem; }
.decomposicao dt { color: var(--texto-2); }
.decomposicao dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.preco-destaque { display: grid; gap: .1rem; padding: .8rem 1rem; margin-bottom: .8rem; border-radius: var(--raio); background: rgb(232 116 46 / .12); }
.preco-destaque span, .preco-destaque small { color: var(--texto-2); font-size: .85rem; }
.preco-destaque strong { font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.erros-calculo { margin: 0 0 .8rem; padding-left: 1.1rem; color: var(--erro); font-size: .88rem; }
.erros-calculo:empty { display: none; }
.grafico { margin-top: 1rem; }
.grafico svg { width: 100%; height: auto; display: block; }
.grafico text { font-size: 9px; fill: var(--texto-2); }
.grafico .b-geracao { fill: var(--destaque); }
.grafico .b-consumo { fill: var(--texto-2); opacity: .45; }
.legenda { display: flex; align-items: center; gap: .35rem; margin: .3rem 0 0; font-size: .8rem; color: var(--texto-2); }
.legenda span { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.legenda .l-geracao { background: var(--destaque); margin-left: .6rem; }
.legenda .l-consumo { background: var(--texto-2); opacity: .45; }
.resumo h3.sub { font-size: .95rem; margin: 1rem 0 .4rem; }
.versoes { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; }
@media (max-width: 1440px) {
    /* Notebook de 1366px: resumo mais estreito e menos margem para a tabela de itens caber ao lado. */
    .gerador-colunas { grid-template-columns: minmax(0, 1fr) 300px; gap: .75rem; }
    .gerador .conteudo, .conteudo:has(.gerador) { padding-left: 1.25rem; padding-right: 1.25rem; }
}
@media (max-width: 1100px) {
    .gerador-colunas { grid-template-columns: minmax(0, 1fr); }
    .gerador-resumo { position: static; }
}
@media (max-width: 860px) {
    .grade-meses { grid-template-columns: repeat(3, 1fr); }
    .decomposicao { grid-template-columns: auto 1fr; }
}
.grade-kit { margin: 0 0 1rem; align-items: end; }
.campo-botao { display: flex; align-items: end; }
.campo-botao .botao { width: 100%; padding: .55rem .6rem; }
.tabela-itens .imposto { width: 4.8rem; text-align: right; }
.tabela-itens select.grupo { padding: .35rem .4rem; max-width: 14rem; }
tr.linha-avulso td:first-child { border-left: 3px solid var(--texto-2); }
.tabela-fatores .valor { width: 6.5rem; text-align: right; }
.tabela-fatores .qtd { width: 4.5rem; text-align: right; }
.tabela-fatores td small { display: block; color: var(--texto-2); }
tr.linha-off td { opacity: .55; }
.tabela tr.linha-grupo td { background: var(--fundo); }

/* Gerador: kits da proposta (5b) */
.kit-bloco { border: 1px solid var(--borda); border-left: 3px solid var(--destaque); border-radius: var(--raio); padding: .75rem; margin: .75rem 0; }
.kit-acoes { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; margin-top: .5rem; }
.kit-acoes .dica { margin: 0; flex: 1 1 12rem; }
.barra-esquerda { justify-content: flex-start; }
.busca-linha { display: flex; gap: .5rem; }
.busca-linha input { flex: 1; min-width: 0; }
.busca-linha select { max-width: 40%; }
tr.linha-interna td { color: var(--texto-2); font-style: italic; }
.linha-grupo .texto-kit { display: block; font-weight: normal; margin-top: .25rem; }
.linha-grupo .selo { margin-left: .4rem; }
.link-cliente label { display: grid; gap: .35rem; }
.link-cliente .copiar { display: flex; flex-wrap: wrap; gap: .5rem; }
.link-cliente .copiar input { flex: 1 1 18rem; min-width: 0; }
.link-cliente .barra-acoes { margin-top: .6rem; }
/* Gerador: armazenamento (6d) */
.cabecalho-secao select { max-width: 60%; }
.cargas { margin: .8rem 0; }
.cargas summary { cursor: pointer; }
.tabela-cargas .c-nome { min-width: 9rem; }
.tabela-cargas .c-w, .tabela-cargas .c-horas, .tabela-cargas .c-qtd { width: 5rem; text-align: right; }
.avisos-arm li { color: var(--destaque-escuro); }
.painel-estrutura { border: 1px dashed var(--borda); border-radius: var(--raio); padding: .75rem; margin: .5rem 0 1rem; }
.sug-grupos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .5rem 1.5rem; }
.sug-grupos h3 { font-size: .9rem; margin: .3rem 0; }
.sug-grupos ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.sug-grupos li { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; }
.sug-grupos small { color: var(--texto-2); display: block; }

/* Marca d'água (só em alguns lugares: login, painel e telas vazias) */
.marca-dagua { position: relative; isolation: isolate; overflow: hidden; }
.marca-dagua::after { content: ""; position: absolute; right: -36px; bottom: -48px; width: 220px; aspect-ratio: 1; background: url(/assets/marca/logo-256.png) center / contain no-repeat;
    opacity: .06; filter: grayscale(1); transform: rotate(-12deg); pointer-events: none; z-index: -1; }
@media (prefers-color-scheme: dark) { .marca-dagua::after { opacity: .08; filter: grayscale(1) brightness(1.8); } }
.bloco.vazio { position: relative; isolation: isolate; overflow: hidden; }
.bloco.vazio::after { content: ""; position: absolute; left: 50%; top: 50%; width: 180px; aspect-ratio: 1; translate: -50% -50%; background: url(/assets/marca/logo-256.png) center / contain no-repeat;
    opacity: .05; filter: grayscale(1); pointer-events: none; z-index: -1; }

/* Tarefas */
.tarefa-rapida { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.tarefa-rapida input[name=titulo] { flex: 1 1 18rem; }
.tarefa-rapida .botao { padding: .55rem 1rem; }
.tarefas { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; }
.tarefas li { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem 0; border-top: 1px solid var(--borda); }
.tarefas li:first-child { border-top: 0; }
.tarefas .caixa { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--texto-2); background: transparent; color: var(--ok); font-weight: 800; line-height: 1; cursor: pointer; padding: 0; flex: none; margin-top: 2px; }
.tarefas .caixa:hover { border-color: var(--ok); }
.tarefas .tarefa-texto { flex: 1; min-width: 0; }
.tarefas .tarefa-texto strong { display: block; overflow-wrap: anywhere; }
.tarefas .tarefa-texto small { color: var(--texto-2); }
.tarefas .tarefa-texto p { margin: .25rem 0 0; color: var(--texto-2); font-size: .9rem; }
.tarefas li.atrasada .prazo { color: var(--erro); font-weight: 600; }
.tarefas li.hoje .prazo { color: var(--destaque-escuro); font-weight: 600; }
.tarefas li.feita strong { text-decoration: line-through; color: var(--texto-2); }
.tarefas li.feita .caixa { border-color: var(--ok); }
.check-tarefa, .excluir-tarefa { margin: 0; }
.contador { display: inline-block; min-width: 1.4em; padding: 0 .35em; border-radius: 999px; background: var(--borda); font-size: .75rem; text-align: center; }
.contador-alerta { background: var(--erro-fundo); color: var(--erro); }
.abas-espaco { margin-top: 1rem; }

/* Contratos */
.aviso-alerta { background: rgb(232 116 46 / .12); color: var(--destaque-escuro); }
@media (prefers-color-scheme: dark) { .aviso-alerta { color: var(--destaque-claro); } }
.editor-colunas { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1rem; align-items: start; }
.editor-contrato textarea { width: 100%; font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.paleta { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; }
.paleta details { border-top: 1px solid var(--borda); padding: .4rem 0; }
.paleta summary { cursor: pointer; font-weight: 600; }
.paleta .var { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 6px; padding: .3rem .4rem; color: var(--texto); font: inherit; font-size: .88rem; cursor: pointer; }
.paleta .var:hover { background: rgb(232 116 46 / .12); }
.paleta h3 { font-size: .95rem; margin: 1rem 0 .3rem; }
.campo-livre { display: flex; gap: .4rem; }
.campo-livre input { flex: 1; }
.lista-modelos { display: flex; flex-wrap: wrap; gap: .5rem; }
.lista-modelos .kit-cartao { text-decoration: none; }
.documento-contrato { line-height: 1.65; max-width: 860px; }
.documento-contrato .ct-titulo { text-align: center; font-size: 1.15rem; margin: .25rem 0 1rem; }
.documento-contrato .ct-clausula { font-size: 1rem; margin: 1.3rem 0 .4rem; }
.documento-contrato p { margin: 0 0 .7rem; text-align: justify; }
.documento-contrato .ct-lista { margin: 0 0 .7rem; padding-left: 1.3rem; }
.assinaturas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.assinaturas div { display: grid; gap: .15rem; font-size: .9rem; }
.assinaturas span { border-top: 1px solid var(--texto-2); margin-bottom: .3rem; }
.evidencia code { overflow-wrap: anywhere; }
.cancelar summary { cursor: pointer; color: var(--texto-2); }
@media (max-width: 860px) { .editor-colunas { grid-template-columns: minmax(0, 1fr); } .paleta { position: static; max-height: none; } }

/* ---------- Painel ---------- */
:root { --serie-emitido: #2a78d6; --serie-fechado: #eb6834; --grade-grafico: #e8ecf2; }
@media (prefers-color-scheme: dark) { :root { --serie-emitido: #3987e5; --serie-fechado: #d95926; --grade-grafico: #1f2937; } }
.painel-topo { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.painel-topo .saudacao { margin: 0 0 .35rem; font-size: 1.05rem; color: var(--texto); }
.seletor-mes { display: flex; align-items: center; gap: .6rem; }
.seletor-mes > a { text-decoration: none; font-size: 1.3rem; line-height: 1; padding: 0 .35rem; border-radius: 6px; color: var(--texto-2); }
.seletor-mes > a:hover { background: var(--fundo); color: var(--texto); }
.seletor-mes strong { text-transform: capitalize; }
.atalhos { display: flex; flex-wrap: wrap; gap: .5rem; }
.atalhos .botao { padding: .6rem 1rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: .75rem; }
.kpi { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: .9rem 1rem; display: grid; gap: .15rem; text-decoration: none; align-content: start; }
a.kpi:hover { border-color: var(--destaque); }
.kpi > span { color: var(--texto-2); font-size: .85rem; }
.kpi strong { font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--texto-2); font-size: .82rem; }
.kpi-destaque { border-top: 3px solid var(--destaque); }
.delta { color: var(--texto-2); }
.delta-sobe::first-letter, .delta-desce::first-letter { font-weight: 700; }
.rodape-kpi { margin: .5rem 0 1rem; }
.painel-grade { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.painel-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; }
.painel-col > * { min-width: 0; }
.atencao, .feed { list-style: none; margin: 0; padding: 0; display: grid; }
.atencao li, .feed li { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; border-top: 1px solid var(--borda); }
.atencao li:first-child, .feed li:first-child { border-top: 0; padding-top: 0; }
.atencao li > div, .feed li > div { min-width: 0; }
.atencao a, .feed a { text-decoration: none; }
.atencao a:hover, .feed a:hover { text-decoration: underline; }
.atencao small, .feed small { display: block; color: var(--texto-2); }
.atencao .selo { flex: none; min-width: 5.2rem; text-align: center; }
.icone-feed { flex: none; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%; background: var(--fundo); font-size: .7rem; font-weight: 700; color: var(--texto-2); }
.funil { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.funil li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 4.8rem; gap: .6rem; align-items: center; }
.funil-rotulo { font-size: .88rem; }
.funil-trilho { height: 14px; background: var(--fundo); border-radius: 4px; overflow: hidden; }
.funil-barra { display: block; height: 100%; background: var(--serie-emitido); border-radius: 0 4px 4px 0; }
.funil-valor { text-align: right; font-variant-numeric: tabular-nums; }
.funil-valor small { color: var(--texto-2); }
.legenda-serie { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; font-size: .85rem; color: var(--texto-2); }
.legenda-serie .cor { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.cor-emitido { background: var(--serie-emitido); } .cor-fechado { background: var(--serie-fechado); }
.grafico-barras { width: 100%; height: auto; display: block; }
.grafico-barras .grade { stroke: var(--grade-grafico); stroke-width: 1; }
.grafico-barras .eixo { stroke: var(--texto-2); stroke-width: 1; opacity: .5; }
.grafico-barras .rotulo-eixo { font-size: 11px; fill: var(--texto-2); }
.grafico-barras .mes-ativo { fill: var(--texto); font-weight: 700; }
.grafico-barras .rotulo-valor { font-size: 11px; fill: var(--texto); font-weight: 600; }
.grafico-barras .barra-emitido { fill: var(--serie-emitido); }
.grafico-barras .barra-fechado { fill: var(--serie-fechado); }
.grafico-barras .alvo { fill: transparent; }
.grafico-barras .grupo:hover .alvo { fill: var(--fundo); }
.tabela-grafico summary { cursor: pointer; color: var(--texto-2); font-size: .88rem; margin-top: .5rem; }
@media (max-width: 1100px) { .painel-grade { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .funil li { grid-template-columns: 7rem minmax(0, 1fr) 4.2rem; } .kpi strong { font-size: 1.6rem; } }

/* ---------- Gerador em passos ---------- */
.modo-passos [data-passo]:not(.passo-ativo) { display: none; }
.passos ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
.passos button { width: 100%; display: flex; align-items: center; gap: .5rem; padding: .55rem .6rem; border: 1px solid var(--borda); border-radius: var(--raio); background: var(--superficie); color: var(--texto-2); font: inherit; font-size: .88rem; cursor: pointer; text-align: left; position: relative; }
.passos button span { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--fundo); font-weight: 700; font-size: .8rem; }
.passos button:hover { border-color: var(--texto-2); color: var(--texto); }
.passos button.atual { border-color: var(--destaque); color: var(--texto); font-weight: 600; box-shadow: 0 0 0 1px var(--destaque) inset; }
.passos button.atual span { background: var(--destaque); color: #1c1003; }
.passos button.feito span { background: var(--ok-fundo); color: var(--ok); }
.passos button.tem-erro { border-color: var(--erro); }
.passos button.tem-erro span { background: var(--erro-fundo); color: var(--erro); }
.navegacao-passos { display: flex; align-items: center; justify-content: space-between; gap: .75rem; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: .75rem 1rem; }
.navegacao-passos .dica { margin: 0; }
.revisao dl { margin-bottom: .5rem; }
.barra-resultado { display: none; }
@media (max-width: 860px) {
    .passos ol { grid-template-columns: repeat(5, minmax(3.2rem, 1fr)); }
    .passos button { flex-direction: column; text-align: center; font-size: .72rem; padding: .45rem .2rem; gap: .2rem; }
    .modo-passos .barra-resultado:not([hidden]) { display: flex; position: sticky; bottom: 0; z-index: 5; gap: 1rem; align-items: center; justify-content: space-between;
        background: var(--superficie); border-top: 1px solid var(--borda); box-shadow: 0 -6px 18px rgb(0 0 0 / .08); padding: .6rem 16px; margin: 1rem -16px 0; }
    .barra-resultado span { display: grid; }
    .barra-resultado small { color: var(--texto-2); font-size: .75rem; }
    .barra-resultado .botao { padding: .5rem .9rem; }
}

/* ---------- Pipeline ---------- */
:root { --fundo-coluna: #eef1f6; --alerta-borda: #d6a21e; }
@media (prefers-color-scheme: dark) { :root { --fundo-coluna: #0d1526; --alerta-borda: #b88a14; } }
.funis-abas .contador { margin-left: .2rem; }
.funis-abas .aba-config { margin-left: auto; font-size: .88rem; }
.alternar-vista { display: inline-flex; border: 1px solid var(--borda); border-radius: 8px; overflow: hidden; background: var(--superficie); }
.alternar-vista a { padding: .5rem .8rem; text-decoration: none; color: var(--texto-2); font-size: .9rem; }
.alternar-vista a.ativo { background: var(--fundo); color: var(--texto); font-weight: 600; }
.pipe-resumo { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.pipe-resumo p { margin: 0; color: var(--texto-2); }
.pipe-resumo strong { color: var(--texto); font-variant-numeric: tabular-nums; }
.status-abas { display: flex; flex-wrap: wrap; gap: .25rem; }
.status-abas a { padding: .35rem .75rem; border-radius: 999px; text-decoration: none; color: var(--texto-2); font-size: .88rem; border: 1px solid transparent; }
.status-abas a.ativo { background: var(--superficie); border-color: var(--borda); color: var(--texto); font-weight: 600; }

.quadro { display: flex; gap: .75rem; overflow-x: auto; padding: .25rem .1rem 1rem; align-items: flex-start; min-height: 50vh; scroll-snap-type: x proximity; }
.coluna { flex: 0 0 272px; background: var(--fundo-coluna); border: 1px solid var(--borda); border-top: 3px solid var(--cor); border-radius: var(--raio); display: flex; flex-direction: column; max-height: calc(100vh - 230px); scroll-snap-align: start; }
.coluna-topo { display: flex; align-items: baseline; gap: .45rem; padding: .7rem .8rem .3rem; }
.coluna-topo h2 { font-size: .95rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coluna-topo small { margin-left: auto; color: var(--texto-2); font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.coluna-dica { margin: 0 .8rem .35rem; color: var(--texto-2); font-size: .78rem; line-height: 1.35; }
.coluna-cards { list-style: none; margin: 0; padding: .3rem .5rem .5rem; display: grid; gap: .5rem; align-content: start; overflow-y: auto; min-height: 3.5rem; flex: 1; }
.coluna-cards.arrastar-lista-sobre { background: rgb(232 116 46 / .07); border-radius: 8px; }
.coluna-add { display: block; padding: .4rem .8rem .7rem; color: var(--texto-2); text-decoration: none; font-size: .88rem; }
.coluna-add:hover { color: var(--texto); }

.card-negocio a { display: grid; gap: .25rem; background: var(--superficie); border: 1px solid var(--borda); border-radius: 8px; padding: .6rem .7rem; text-decoration: none; box-shadow: 0 1px 2px rgb(15 23 42 / .06); cursor: grab; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.card-negocio a:hover { border-color: var(--texto-2); }
.card-negocio a:focus-visible { outline: 2px solid var(--destaque); outline-offset: 1px; }
.card-negocio.parado a { border-left: 3px solid var(--alerta-borda); }
.card-titulo { font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.card-negocio small { color: var(--texto-2); font-size: .8rem; }
.card-valor { font-variant-numeric: tabular-nums; font-size: .9rem; }
.sem-valor { color: var(--texto-2); font-style: italic; }
.card-sinais { display: flex; flex-wrap: wrap; gap: .25rem; }
.sinal { font-size: .72rem; padding: .05rem .45rem; border-radius: 999px; background: var(--fundo); color: var(--texto-2); }
.sinal-quente, .sinal-ok { background: var(--ok-fundo); color: var(--ok); }
.sinal-quente { font-weight: 600; }
.sinal-atrasada { background: var(--erro-fundo); color: var(--erro); font-weight: 600; }
.card-rodape { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .1rem; }
.dias-etapa { font-size: .75rem; color: var(--texto-2); }
.parado .dias-etapa { color: var(--destaque-escuro); font-weight: 600; }
@media (prefers-color-scheme: dark) { .parado .dias-etapa { color: var(--destaque-claro); } }
.avatar { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; font-weight: 700; background: var(--lateral); color: #fff; box-shadow: 0 0 0 1px var(--borda); }

.arrastar-fantasma { box-shadow: 0 14px 34px rgb(0 0 0 / .22); opacity: .95; list-style: none; }
.arrastar-marcador { border: 2px dashed var(--destaque); border-radius: 8px; background: rgb(232 116 46 / .08); list-style: none; }
.arrastar-origem { display: none !important; }
.arrastando, .arrastando * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }

.zona-fim { position: fixed; left: 50%; bottom: 1rem; translate: -50% 0; z-index: 30; display: flex; gap: .75rem; }
.zona-fim[hidden] { display: none; }
.zona { min-width: 9rem; padding: 1rem 1.25rem; border-radius: var(--raio); border: 2px dashed; text-align: center; font-weight: 700; background: var(--superficie); box-shadow: 0 10px 30px rgb(0 0 0 / .18); transition: transform .12s; }
.zona-ganho { color: var(--ok); }
.zona-perdido { color: var(--erro); }
.zona.arrastar-sobre { transform: scale(1.06); }
.zona-ganho.arrastar-sobre { background: var(--ok-fundo); }
.zona-perdido.arrastar-sobre { background: var(--erro-fundo); }
.dica-arrastar { margin-top: .25rem; }

.dialogo { border: 1px solid var(--borda); border-radius: 14px; padding: 1.25rem; max-width: 440px; width: calc(100% - 32px); background: var(--superficie); color: var(--texto); }
.dialogo::backdrop { background: rgb(0 0 0 / .45); }
.dialogo h2 { font-size: 1.15rem; margin-bottom: .25rem; }
.motivos { display: grid; gap: .35rem; margin: .5rem 0; }
.motivos .check { font-weight: 500; }
.aviso-flutuante { position: fixed; left: 50%; bottom: 1.25rem; translate: -50% 0; z-index: 40; box-shadow: 0 10px 30px rgb(0 0 0 / .18); margin: 0; max-width: calc(100% - 32px); }
.ponto { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--cor); margin-right: .4rem; }

.comecar-pipeline { max-width: 1000px; }
.modelos-funil { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; margin-top: 1rem; }
.modelo-funil { border: 1px solid var(--borda); border-radius: var(--raio); padding: 1rem; display: grid; gap: .5rem; align-content: start; background: var(--superficie); }
.modelo-funil p { margin: 0; color: var(--texto-2); font-size: .9rem; }
.modelo-funil.recomendado { border-color: var(--destaque); box-shadow: 0 0 0 1px var(--destaque) inset; }
.modelo-funil .botao { justify-self: start; margin-top: .25rem; }

.etapas-negocio { margin-bottom: 1rem; }
.trilha { list-style: none; margin: 0 0 .5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.trilha li { flex: 1 1 8rem; }
.trilha form { margin: 0; }
.trilha button, .trilha span { display: block; width: 100%; padding: .5rem .6rem; border: 1px solid var(--borda); border-bottom: 3px solid var(--borda); border-radius: 8px; background: var(--superficie); color: var(--texto-2); font: inherit; font-size: .85rem; text-align: center; cursor: pointer; }
.trilha button:hover { border-color: var(--cor); color: var(--texto); }
.trilha .passou button, .trilha .passou span { border-bottom-color: var(--cor); color: var(--texto); }
.trilha .atual span { border-color: var(--cor); background: color-mix(in srgb, var(--cor) 14%, var(--superficie)); color: var(--texto); font-weight: 700; cursor: default; }
.menu-perda { position: relative; }
.menu-perda summary { list-style: none; }
.menu-perda summary::-webkit-details-marker { display: none; }
.caixa-perda { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; width: min(320px, 90vw); display: grid; gap: .6rem; padding: 1rem; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: 0 12px 30px rgb(0 0 0 / .18); text-align: left; }
.caixa-perda label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--texto-2); }
.caixa-perda label.check { display: flex; align-items: flex-start; gap: .45rem; font-weight: 500; color: var(--texto); }
.caixa-perda label.check input { margin-top: .2rem; }
.caixa-perda .dica { margin: 0; }
.nota-rapida { display: grid; gap: .5rem; margin-bottom: .75rem; }
.nota-rapida .botao { justify-self: end; padding: .5rem 1rem; }
.linha-tempo { list-style: none; margin: 0; padding: 0; display: grid; }
.linha-tempo li { display: grid; grid-template-columns: 5.5rem 1fr; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--borda); font-size: .9rem; }
.linha-tempo li:first-child { border-top: 0; }
.linha-tempo li > div { min-width: 0; overflow-wrap: anywhere; }
.linha-tempo small { display: block; color: var(--texto-2); font-size: .78rem; }
.h-quando { color: var(--texto-2); font-size: .8rem; }
.h-ganho > div { color: var(--ok); font-weight: 600; }
.h-perdido > div { color: var(--erro); }
.h-nota > div { background: var(--fundo); border-radius: 8px; padding: .4rem .6rem; }
.vincular { margin: .75rem 0 0; }

.etapas-montador { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .6rem; }
.etapa-bloco { min-width: 0; border: 1px solid var(--borda); border-top: 4px solid var(--cor); border-radius: var(--raio); padding: .6rem; background: var(--superficie); display: grid; gap: .45rem; align-content: start; }
.etapa-topo { display: flex; align-items: center; gap: .35rem; }
.etapa-topo .etapa-nome { flex: 1; font-weight: 600; }
.alca { border: 0; background: none; color: var(--texto-2); font-size: 1.1rem; cursor: grab; padding: .2rem .25rem; border-radius: 6px; touch-action: none; }
.alca:hover, .alca:focus-visible { background: var(--fundo); color: var(--texto); }
.etapa-num { min-width: 1.45rem; height: 1.45rem; border-radius: 50%; border: 2px solid var(--cor); color: var(--texto); font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.remover { border: 0; background: none; color: var(--texto-2); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: .1rem .35rem; border-radius: 6px; }
.remover:hover { background: var(--erro-fundo); color: var(--erro); }
.cores { display: flex; gap: .3rem; }
.cores label { cursor: pointer; position: relative; }
.cores input { position: absolute; opacity: 0; pointer-events: none; }
.cores span { display: block; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--c); border: 2px solid var(--superficie); box-shadow: 0 0 0 1px var(--borda); }
.cores input:checked + span { box-shadow: 0 0 0 2px var(--texto); }
.cores input:focus-visible + span { outline: 2px solid var(--destaque); outline-offset: 2px; }
.etapa-campos { display: flex; flex-wrap: wrap; gap: .3rem .5rem; }
.etapa-campos label { display: flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--texto-2); }
.etapa-campos input { width: 3.2rem; text-align: right; padding: .3rem .4rem; }
.etapa-bloco textarea { width: 100%; font-size: .85rem; resize: vertical; }
.etapa-cards { color: var(--destaque-escuro); font-weight: 600; }
.biblioteca { border-top: 1px dashed var(--borda); padding-top: .75rem; }
.biblioteca h3 { font-size: .95rem; margin: 0 0 .5rem; }
.biblioteca-grupo { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-bottom: .5rem; }
.biblioteca-grupo > span { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--texto-2); font-weight: 700; min-width: 5.5rem; }
.bloco-pronto { border: 1px dashed var(--texto-2); background: var(--superficie); color: var(--texto); border-radius: 999px; padding: .3rem .7rem; font: inherit; font-size: .85rem; cursor: grab; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.bloco-pronto:hover { border-style: solid; border-color: var(--destaque); }
.gatilhos td { vertical-align: middle; }
.gatilhos td:first-child { width: 55%; }
.gatilhos select { width: 100%; }
.opcoes-funil { display: grid; gap: .7rem; }
.opcoes-funil .campo select { max-width: 340px; }
.opcoes-funil small { color: var(--texto-2); font-weight: 400; }
.mini-etapas { display: flex; flex-wrap: wrap; gap: .25rem; }
.mini-etapas span { font-size: .75rem; padding: .05rem .45rem; border-radius: 999px; border-left: 3px solid var(--cor); background: var(--fundo); }

@media (max-width: 860px) {
    .coluna { flex-basis: 82vw; max-height: none; }
    .quadro { margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-snap-type: x mandatory; }
    .zona-fim { left: 16px; right: 16px; translate: none; }
    .zona { flex: 1; min-width: 0; }
    .linha-tempo li { grid-template-columns: 1fr; gap: .1rem; }
    .funis-abas .aba-config { margin-left: 0; }
}

/* Tabela de itens do gerador: compacta para caber ao lado do resumo em telas de 1366px (rola na horizontal só se precisar). */
.tabela-itens th, .tabela-itens td { padding: .5rem .4rem; }
.tabela-itens input, .tabela-itens select { padding: .35rem .35rem; }
.tabela-itens select.grupo { max-width: 7.5rem; }
.tabela-itens .qtd { width: 3.8rem; }
.tabela-itens .custo { width: 5.8rem; }
.tabela-itens .imposto { width: 3.8rem; }

/* ---------- Modelos de proposta (Configurações) ---------- */
.modelos-pagina, .modelo-editor { display: grid; gap: 1rem; }
.barra-acoes.esquerda { justify-content: flex-start; margin-top: .5rem; }
.logo-linha { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.logo-linha > div:last-child { flex: 1 1 18rem; min-width: 0; }
.logo-previa { width: 180px; height: 90px; border: 1px dashed var(--borda); border-radius: var(--raio); display: grid; place-items: center; background: repeating-conic-gradient(var(--fundo) 0 25%, var(--superficie) 0 50%) 0 0 / 16px 16px; }
.logo-previa img { max-width: 160px; max-height: 76px; }
.logo-previa span { color: var(--texto-2); font-size: .85rem; }
.lista-modelos { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.lista-modelos li { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; border: 1px solid var(--borda); border-radius: var(--raio); padding: .8rem 1rem; }
.lm-nome { display: flex; flex-wrap: wrap; gap: .2rem .6rem; align-items: center; min-width: 0; }
.lm-nome small { flex-basis: 100%; color: var(--texto-2); }
.lm-acoes { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.lm-acoes .botao { padding: .5rem .9rem; }
.confirmar { position: relative; }
.confirmar summary { list-style: none; }
.confirmar summary::-webkit-details-marker { display: none; }
.confirmar form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; width: min(260px, 85vw); display: grid; gap: .5rem; padding: .8rem; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: 0 10px 30px rgb(0 0 0 / .15); }
.prontos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.pronto { border: 1px solid var(--borda); border-radius: var(--raio); padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.pronto .dica { margin: 0 0 .3rem; }
.pronto .botao { align-self: flex-start; margin-top: auto; }
/* Miniatura do layout de cada modelo pronto */
.mini { height: 120px; border-radius: 8px; background: var(--fundo); padding: 6px; display: grid; gap: 4px; align-content: start; overflow: hidden; }
.mini i { display: block; border-radius: 3px; background: var(--borda); height: 8px; }
.mini .m-capa { height: 34px; }
.mini .m-capa.foto { background: linear-gradient(180deg, #94a3b8, #334155); }
.mini .m-capa.cor { background: var(--destaque); }
.mini .m-capa.clara { background: var(--superficie); border-bottom: 3px solid var(--destaque); }
.mini .m-cards { height: 14px; background: repeating-linear-gradient(90deg, var(--superficie) 0 22%, transparent 22% 26%); }
.mini .m-graf { height: 20px; background: repeating-linear-gradient(90deg, var(--destaque) 0 5px, transparent 5px 9px), var(--superficie); background-size: 100% 60%, auto; background-position: bottom, 0 0; background-repeat: no-repeat; }
.mini .m-graf.l { background: linear-gradient(170deg, transparent 48%, var(--destaque) 49% 53%, transparent 54%), var(--superficie); }
.mini .m-tab { height: 22px; background: repeating-linear-gradient(180deg, var(--superficie) 0 4px, var(--borda) 4px 5px); }
.mini .m-txt.c { width: 60%; }

.editor-topo { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: end; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1rem 1.25rem; }
.nome-modelo { display: grid; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--texto-2); flex: 1 1 16rem; }
.nome-modelo input { font-size: 1.05rem; font-weight: 600; color: var(--texto); }
.editor-topo .dica { margin: 0 0 .6rem; }
.editor-topo .barra-acoes { margin: 0; }
.editor-modelo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 1rem; align-items: start; }
.editor-campos { display: grid; gap: 1rem; min-width: 0; }
.editor-previa { position: sticky; top: 1rem; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1rem; min-width: 0; }
.editor-previa iframe { width: 100%; height: calc(100vh - 9rem); min-height: 420px; border: 1px solid var(--borda); border-radius: 8px; background: #fff; }
.editor-previa .dica { margin: .5rem 0 0; }
.linha-cor input[type=color] { width: 4rem; height: 2.4rem; padding: .15rem; }
.linha-cor input[type=color]:disabled { opacity: .45; }
.capas { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .8rem; }
.capa-opcao { display: grid; gap: .3rem; justify-items: center; font-size: .82rem; font-weight: 600; color: var(--texto-2); cursor: pointer; }
.capa-opcao input { position: absolute; opacity: 0; pointer-events: none; }
.capa-mini { width: 96px; height: 60px; border-radius: 8px; border: 2px solid var(--borda); }
.capa-mini-foto { background: linear-gradient(180deg, rgb(8 12 24 / .2), rgb(8 12 24 / .7)), linear-gradient(135deg, #7dd3fc, #475569); }
.capa-mini-cor { background: linear-gradient(135deg, var(--destaque), var(--destaque-escuro)); }
.capa-mini-clara { background: var(--superficie); border-bottom-width: 5px; border-bottom-color: var(--destaque); }
.capa-opcao input:checked + .capa-mini { border-color: var(--texto); box-shadow: 0 0 0 2px var(--destaque); }
.capa-opcao input:checked ~ * { color: var(--texto); }
.capa-opcao input:focus-visible + .capa-mini { outline: 2px solid var(--destaque); outline-offset: 2px; }
.campo-imagem { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 0 0 .9rem; }
.campo-imagem .dica { margin: 0; flex: 1 1 12rem; }
.miniatura { width: 120px; height: 72px; border-radius: 8px; border: 1px dashed var(--borda); background: var(--fundo); display: grid; place-items: center; overflow: hidden; }
.miniatura.larga { width: 168px; height: 96px; }
.miniatura img { width: 100%; height: 100%; object-fit: cover; }
.miniatura span { color: var(--texto-2); font-size: .75rem; text-align: center; padding: .3rem; }
.secoes { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; gap: .45rem; }
.secao-bloco { border: 1px solid var(--borda); border-left: 4px solid var(--destaque); border-radius: var(--raio); background: var(--superficie); padding: .55rem .7rem; display: grid; gap: .35rem; min-width: 0; }
.secao-bloco.desligada { border-left-color: var(--borda); background: var(--fundo); }
.secao-bloco.desligada .secao-nome { color: var(--texto-2); }
.secao-topo { display: flex; align-items: center; gap: .55rem; }
.secao-nome { flex: 1; min-width: 0; font-weight: 600; display: flex; flex-wrap: wrap; gap: 0 .5rem; align-items: baseline; }
.secao-nome small { font-weight: 400; color: var(--texto-2); font-size: .75rem; }
.secao-bloco .remover { border: 0; background: none; color: var(--texto-2); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 .3rem; }
.secao-bloco .remover:hover { color: var(--erro); }
.secao-desc { margin: 0 0 0 3.6rem; font-size: .8rem; }
.secao-opcoes { margin-left: 3.6rem; }
.secao-opcoes summary { cursor: pointer; font-size: .82rem; color: var(--texto-2); }
.secao-opcoes[open] summary { margin-bottom: .5rem; }
.secao-opcoes label:not(.botao) { display: grid; gap: .25rem; font-size: .82rem; font-weight: 600; color: var(--texto-2); margin-bottom: .55rem; }
.secao-opcoes input:not([type=file]), .secao-opcoes select, .secao-opcoes textarea { width: 100%; color: var(--texto); font-weight: 400; font-size: .92rem; }
.secao-opcoes .dica { font-size: .8rem; margin-bottom: .5rem; }
/* Interruptor (checkbox) */
.interruptor { position: relative; display: inline-block; width: 38px; height: 22px; flex: none; cursor: pointer; }
.interruptor input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.interruptor span { position: absolute; inset: 0; border-radius: 999px; background: var(--borda); transition: background .15s; pointer-events: none; }
.interruptor span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .3); transition: translate .15s; }
.interruptor input:checked + span { background: var(--ok); }
.interruptor input:checked + span::after { translate: 16px 0; }
.interruptor input:focus-visible + span { outline: 2px solid var(--destaque); outline-offset: 2px; }
.adicionar-secao { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.adicionar-secao .dica { margin: 0 .2rem 0 0; }
.variaveis code { background: var(--fundo); border-radius: 4px; padding: 0 .25rem; font-size: .78rem; }
.restaurar summary { cursor: pointer; font-weight: 600; color: var(--texto-2); }
.restaurar .dica { margin: 0; flex: 1 1 18rem; }
@media (max-width: 1100px) {
    .editor-modelo { grid-template-columns: minmax(0, 1fr); }
    .editor-previa { position: static; }
    .editor-previa iframe { height: 70vh; }
}
@media (max-width: 560px) {
    .secao-desc, .secao-opcoes { margin-left: 0; }
}
.trocar-modelo { display: flex; flex-wrap: wrap; gap: .5rem .7rem; align-items: center; margin-top: .9rem; }
.trocar-modelo label { display: flex; gap: .5rem; align-items: center; font-size: .88rem; font-weight: 600; color: var(--texto-2); }
.trocar-modelo .dica { margin: 0; }

/* ---------- DimBot (assistente) ---------- */
.dimbot-logo .db-cabeca { fill: var(--lateral); }
.dimbot-logo .db-oculos, .dimbot-logo .db-oculos-ponte { fill: #0b1220; stroke: #0b1220; stroke-width: 3; }
.dimbot-logo .db-oculos { stroke: none; }
.dimbot-logo .db-antena, .dimbot-logo .db-boca { fill: none; stroke: var(--destaque); stroke-width: 3; }
.dimbot-logo .db-antena-ponta, .dimbot-logo .db-orelha { fill: var(--destaque); }
.dimbot-logo .db-brilho { fill: none; stroke: #fff; stroke-opacity: .55; stroke-width: 2; }
.dimbot-logo.invertido .db-cabeca { fill: #fff; }
.dimbot-logo.invertido .db-antena, .dimbot-logo.invertido .db-boca { stroke: #fff; }
.dimbot-logo.invertido .db-antena-ponta, .dimbot-logo.invertido .db-orelha { fill: #fff; }
.dimbot-logo.invertido .db-oculos, .dimbot-logo.invertido .db-oculos-ponte { fill: var(--lateral); stroke: var(--lateral); }
.dimbot-logo.invertido .db-brilho { stroke: #fff; stroke-opacity: .5; }
@media (prefers-color-scheme: dark) { .dimbot-logo .db-cabeca { fill: #243b4a; } }

.dimbot-botao { position: fixed; right: 20px; bottom: 20px; z-index: 35; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--destaque); box-shadow: 0 10px 28px rgb(0 0 0 / .28); cursor: pointer; display: grid; place-items: center; transition: transform .15s; }
.dimbot-botao:hover { transform: scale(1.06); }
.dimbot-botao.aberto { background: var(--lateral); }
.dimbot-balao { position: fixed; right: 20px; bottom: 90px; z-index: 36; width: min(420px, calc(100vw - 32px)); height: min(640px, calc(100vh - 110px)); background: var(--superficie); border: 1px solid var(--borda); border-radius: 16px; box-shadow: 0 18px 50px rgb(0 0 0 / .28); overflow: hidden; }
.dimbot-balao .dimbot-chat { height: 100%; }
.dimbot-chat { display: flex; flex-direction: column; min-height: 0; }
.dimbot-topo { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; border-bottom: 1px solid var(--borda); background: var(--fundo); }
.dimbot-titulo { flex: 1; min-width: 0; display: grid; line-height: 1.15; }
.dimbot-titulo small { color: var(--texto-2); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dimbot-nivel { display: flex; align-items: center; gap: .3rem; font-size: .75rem; color: var(--texto-2); }
.dimbot-nivel select { padding: .25rem .4rem; font-size: .8rem; }
.dimbot-icone { border: 0; background: none; color: var(--texto-2); font-size: 1.25rem; line-height: 1; cursor: pointer; padding: .15rem .3rem; border-radius: 6px; text-decoration: none; }
.dimbot-icone:hover { background: var(--borda); color: var(--texto); }
.dimbot-mensagens { flex: 1; overflow-y: auto; padding: .9rem; display: flex; flex-direction: column; gap: .6rem; background: var(--superficie); }
.dimbot-boasvindas { text-align: center; color: var(--texto-2); padding: 1rem .5rem; display: grid; gap: .6rem; justify-items: center; }
.dimbot-boasvindas p { margin: 0; font-size: .9rem; max-width: 30rem; }
.dimbot-sugestoes { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.dimbot-sugestoes button { border: 1px dashed var(--texto-2); background: none; color: var(--texto); border-radius: 999px; padding: .3rem .7rem; font: inherit; font-size: .8rem; cursor: pointer; }
.dimbot-sugestoes button:hover { border-style: solid; border-color: var(--destaque); }
.dimbot-msg { max-width: 92%; display: grid; gap: .3rem; }
.dimbot-msg-user { align-self: flex-end; }
.dimbot-msg-user .dimbot-texto { background: var(--destaque); color: #1c1003; border-radius: 14px 14px 4px 14px; }
.dimbot-msg-assistant { align-self: flex-start; }
.dimbot-msg-assistant .dimbot-texto { background: var(--fundo); border: 1px solid var(--borda); border-radius: 14px 14px 14px 4px; }
.dimbot-texto { padding: .6rem .85rem; font-size: .93rem; line-height: 1.5; overflow-wrap: anywhere; }
.dimbot-texto p { margin: 0 0 .5rem; }
.dimbot-texto p:last-child, .dimbot-texto ul:last-child, .dimbot-texto ol:last-child { margin-bottom: 0; }
.dimbot-texto ul, .dimbot-texto ol { margin: 0 0 .5rem; padding-left: 1.3rem; }
.dimbot-texto h4 { margin: .2rem 0 .4rem; font-size: .95rem; }
.dimbot-texto code { background: rgb(0 0 0 / .08); border-radius: 4px; padding: 0 .25rem; font-size: .85em; }
.dimbot-texto pre { background: rgb(0 0 0 / .08); border-radius: 8px; padding: .5rem .7rem; overflow-x: auto; font-size: .82rem; }
.dimbot-texto a { color: var(--destaque-escuro); }
@media (prefers-color-scheme: dark) { .dimbot-texto a { color: var(--destaque-claro); } .dimbot-msg-user .dimbot-texto { color: #1c1003; } }
.dimbot-ferramentas { display: flex; flex-wrap: wrap; gap: .3rem; }
.dimbot-ferramentas span { font-size: .72rem; color: var(--texto-2); background: var(--fundo); border: 1px solid var(--borda); border-radius: 999px; padding: .1rem .55rem; }
.dimbot-ferramentas span::before { content: "⚙ "; }
.dimbot-ferramentas span.erro { color: var(--erro); border-color: var(--erro); }
.dimbot-custo { color: var(--texto-2); font-size: .7rem; justify-self: start; }
.dimbot-pensando { align-self: flex-start; color: var(--texto-2); font-size: .85rem; padding: .4rem .2rem; }
.dimbot-pensando span { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: var(--destaque); animation: dimbot-pula 1s infinite; }
.dimbot-pensando span:nth-child(2) { animation-delay: .15s; } .dimbot-pensando span:nth-child(3) { animation-delay: .3s; }
@keyframes dimbot-pula { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.dimbot-aviso { margin: 0; padding: .45rem .9rem; font-size: .82rem; background: rgb(232 116 46 / .12); color: var(--destaque-escuro); border-top: 1px solid var(--borda); }
.dimbot-aviso[data-tipo=erro] { background: var(--erro-fundo); color: var(--erro); }
.dimbot-entrada { display: flex; gap: .5rem; align-items: flex-end; padding: .6rem .8rem; border-top: 1px solid var(--borda); background: var(--fundo); }
.dimbot-entrada textarea { flex: 1; min-width: 0; resize: vertical; max-height: 40vh; min-height: 38px; line-height: 1.4; }
.dimbot-entrada .botao { padding: .55rem .8rem; }
.dimbot-rodape { margin: 0; padding: .3rem .9rem .5rem; display: flex; justify-content: space-between; gap: .5rem; font-size: .72rem; color: var(--texto-2); background: var(--fundo); }
.dimbot-rodape .negativo { color: var(--erro); font-weight: 600; }
/* Página /dimbot */
.dimbot-pagina { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1rem; align-items: start; }
.dimbot-pagina .dimbot-chat { height: calc(100vh - 8rem); min-height: 480px; padding: 0; overflow: hidden; }
.dimbot-lista { padding: 1rem; }
.dimbot-conversas { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; max-height: calc(100vh - 16rem); overflow-y: auto; }
.dimbot-conversas li { display: flex; align-items: stretch; border-radius: 8px; }
.dimbot-conversas li.ativa { background: rgb(232 116 46 / .14); }
.dimbot-conversas li > button:first-child { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: .45rem .6rem; font: inherit; color: var(--texto); cursor: pointer; display: grid; border-radius: 8px; }
.dimbot-conversas li > button:first-child:hover { background: var(--fundo); }
.dimbot-conversas strong { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dimbot-conversas small { color: var(--texto-2); font-size: .72rem; }
.dimbot-arquivar { border: 0; background: none; color: var(--texto-2); cursor: pointer; padding: 0 .5rem; font-size: 1.1rem; }
.dimbot-arquivar:hover { color: var(--erro); }
.dimbot-saldo { margin: .8rem 0 0; }
.dimbot-barras { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.dimbot-barras i { flex: 1; min-height: 2px; background: var(--destaque); border-radius: 3px 3px 0 0; }
.tabela .positivo { color: var(--ok); }
.tabela .negativo { color: var(--erro); }
@media (max-width: 860px) {
    .dimbot-pagina { grid-template-columns: minmax(0, 1fr); }
    .dimbot-pagina .dimbot-chat { height: calc(100vh - 7rem); }
    .dimbot-conversas { max-height: 180px; }
    .dimbot-balao { right: 8px; bottom: 84px; width: calc(100vw - 16px); height: calc(100vh - 100px); }
    .dimbot-botao { right: 12px; bottom: 14px; width: 54px; height: 54px; }
}

/* ---------- Planos, créditos e cobrança ---------- */
.planos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .9rem; }
.plano-cartao { position: relative; border: 1px solid var(--borda); border-radius: var(--raio); padding: 1rem 1.1rem; background: var(--fundo); display: flex; flex-direction: column; gap: .45rem; }
.plano-cartao.atual { border-color: var(--destaque); box-shadow: inset 0 0 0 1px var(--destaque); }
.plano-cartao .selo-atual { position: absolute; top: -.65rem; right: .8rem; }
.plano-cartao h3 { margin: 0; font-size: 1.05rem; }
.plano-preco { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.plano-preco small { font-size: .8rem; font-weight: 400; color: var(--texto-2); }
.plano-cartao ul { margin: 0 0 .4rem; padding-left: 1.1rem; color: var(--texto-2); font-size: .86rem; display: grid; gap: .2rem; }
.plano-cartao form { margin-top: auto; }
.plano-cartao .botao { width: 100%; text-align: center; padding: .55rem .8rem; }
.plano-cartao .botao[disabled] { opacity: .5; cursor: not-allowed; }
.pacotes { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.pacotes form { display: inline; }
.pacotes .botao { padding: .5rem .9rem; }
.linha-compra { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.linha-compra label { font-size: .85rem; font-weight: 600; color: var(--texto-2); }
.linha-compra input { width: 140px; }
.limites input { width: 120px; text-align: right; }
.limites .tabela td { vertical-align: middle; }
.copiar { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; background: var(--fundo); border: 1px solid var(--borda); border-radius: 6px; padding: .35rem .6rem; overflow-wrap: anywhere; user-select: all; }
.aviso a, .dimbot-aviso a { color: inherit; font-weight: 600; margin-left: .35rem; }
.kpi strong.negativo, h2.positivo { color: var(--erro); }
h2.positivo { color: var(--ok); }

/* ---------- DimBot: opções clicáveis e preferências ---------- */
.dimbot-opcoes { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .2rem; }
.dimbot-opcoes button, .dimbot-opcoes label { border: 1px solid var(--destaque); background: none; color: var(--destaque-escuro); border-radius: 999px; padding: .3rem .75rem; font: inherit; font-size: .82rem; cursor: pointer; line-height: 1.3; }
.dimbot-opcoes button:hover { background: var(--destaque); color: #1c1003; }
.dimbot-opcoes label { display: inline-flex; align-items: center; gap: .35rem; }
.dimbot-opcoes label.marcada { background: rgb(232 116 46 / .18); }
.dimbot-opcoes .confirmar { background: var(--destaque); color: #1c1003; font-weight: 600; }
.dimbot-opcoes.usado button, .dimbot-opcoes.usado label { opacity: .45; cursor: default; pointer-events: none; }
@media (prefers-color-scheme: dark) { .dimbot-opcoes button, .dimbot-opcoes label { color: var(--destaque-claro); } }
.dimbot-memorias { margin-top: .8rem; font-size: .85rem; }
.dimbot-memorias summary { cursor: pointer; color: var(--texto-2); }
.dimbot-memorias ul { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .25rem; }
.dimbot-memorias li { display: flex; gap: .4rem; align-items: baseline; }
.dimbot-memorias li code { font-size: .78rem; }
.dimbot-memorias li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--texto-2); }
.dimbot-memorias li small { color: var(--texto-2); font-size: .7rem; }

/* ---------- Listas: tabela ↔ cards, botões de ícone, menus de ações ---------- */
.contagem-com-modo { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.alternar-vista.modo-lista button { border: 0; background: none; color: var(--texto-2); padding: .35rem .55rem; cursor: pointer; display: grid; place-items: center; }
.alternar-vista.modo-lista button.ativo { background: var(--fundo); color: var(--texto); }
.alternar-vista.modo-lista button:hover { color: var(--texto); }
.botao-icone { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--borda); background: var(--superficie); color: var(--texto-2); cursor: pointer; text-decoration: none; padding: 0; vertical-align: middle; }
.botao-icone:hover { border-color: var(--destaque); color: var(--destaque-escuro); background: var(--fundo); }
.botao-icone.whats { color: #128c7e; }
.botao-icone.whats:hover { background: #128c7e; color: #fff; border-color: #128c7e; }
.botao-icone.principal { background: var(--destaque); color: #1c1003; border-color: var(--destaque); }
.botao-icone.principal:hover { background: var(--destaque-escuro); color: #fff; }
@media (prefers-color-scheme: dark) { .botao-icone:hover { color: var(--destaque-claro); } .botao-icone.whats { color: #25d366; } }
.icones { display: inline-flex; gap: .3rem; align-items: center; flex-wrap: wrap; }
.tabela td.acoes .icones { justify-content: flex-end; }
.menu-acoes { position: relative; display: inline-block; }
.menu-acoes > summary { list-style: none; }
.menu-acoes > summary::-webkit-details-marker { display: none; }
.menu-acoes .menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 230px; background: var(--superficie); border: 1px solid var(--borda); border-radius: 10px; box-shadow: 0 12px 32px rgb(0 0 0 / .18); padding: .35rem; display: grid; gap: .1rem; text-align: left; white-space: normal; }
.menu-acoes .menu form { display: block; }
.menu-acoes .menu button, .menu-acoes .menu a { display: block; width: 100%; text-align: left; border: 0; background: none; color: var(--texto); font: inherit; font-size: .88rem; padding: .5rem .7rem; border-radius: 7px; cursor: pointer; text-decoration: none; }
.menu-acoes .menu button:hover, .menu-acoes .menu a:hover { background: var(--fundo); }
.menu-acoes .menu .perigo { color: var(--erro); }
.menu-acoes .menu .titulo { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--texto-2); padding: .4rem .7rem .2rem; }
.menu-acoes .menu input { width: 100%; margin: .2rem 0; font-size: .85rem; padding: .4rem .55rem; }
.selo-neutro { background: var(--fundo); color: var(--texto-2); border: 1px solid var(--borda); }
.selos { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.selos .selo svg { width: 12px; height: 12px; vertical-align: -2px; margin-right: 2px; }
.aviso-rapido { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--lateral); color: #fff; padding: .55rem 1rem; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; }
.aviso-rapido.visivel { opacity: 1; transform: translate(-50%, 0); }
.pergunta-contrato { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.pergunta-contrato .botao { padding: .5rem .9rem; }
.acessos td small { display: inline; }
/* Modo cards: a mesma tabela vira uma grade de cartões; o rótulo da coluna vem de data-rotulo (lista.js). */
.lista.cards { background: none; border: 0; overflow: visible; }
.lista.cards .tabela { display: block; }
.lista.cards thead { display: none; }
.lista.cards tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: .8rem; }
.lista.cards tr { display: flex; flex-direction: column; gap: .4rem; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: .9rem 1rem; }
.lista.cards tr.inativo { opacity: .6; }
.lista.cards tr.inativo td { opacity: 1; }
.lista.cards td { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding: 0; border: 0; text-align: left; white-space: normal; font-size: .9rem; }
.lista.cards td.num { text-align: right; }
.lista.cards td[data-rotulo]::before { content: attr(data-rotulo); color: var(--texto-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; flex: 0 0 auto; padding-top: .1em; }
.lista.cards td:first-child { display: block; font-size: 1.02rem; padding-bottom: .45rem; border-bottom: 1px solid var(--borda); margin-bottom: .15rem; }
.lista.cards td:first-child::before { display: none; }
.lista.cards td.acoes { justify-content: flex-start; border-top: 1px solid var(--borda); padding-top: .55rem; margin-top: auto; }
.lista.cards td.acoes::before { display: none; }
.lista.cards td.acoes .icones { justify-content: flex-start; }
.lista.cards td small { display: inline; }
.lista.cards td:first-child small { display: block; }
.lista.cards td:empty { display: none; }
.lista.cards .menu-acoes .menu { right: auto; left: 0; }
@media (max-width: 760px) { .tabela td.acoes { white-space: normal; } }
.selo-menu { cursor: pointer; }
.barra-topo .icones { gap: .35rem; }

/* ---------- Homologação ---------- */
.quadro-homol .coluna { flex: 0 0 250px; }
.card-homol .card-titulo { font-size: .92rem; }
.homol-grade { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem; align-items: start; }
.homol-col { display: grid; gap: 1rem; }
@media (max-width: 1100px) { .homol-grade { grid-template-columns: minmax(0, 1fr); } }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.checklist li { display: flex; align-items: center; gap: .55rem; font-size: .9rem; padding: .35rem .5rem; border-radius: 8px; background: var(--fundo); }
.checklist li .marca { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; flex: 0 0 auto; background: var(--borda); color: var(--texto-2); }
.checklist li.ok .marca { background: var(--ok-fundo); color: var(--ok); }
.checklist li.falta .marca { background: var(--erro-fundo); color: var(--erro); }
.checklist li.opcional { opacity: .75; }
.checklist li > span:nth-child(2) { flex: 1; }
.checklist li small { color: var(--texto-2); }
.checklist form { display: inline; }
.pasta { border: 1px dashed var(--borda); border-radius: 10px; padding: .6rem .8rem; margin-bottom: .7rem; transition: background .15s, border-color .15s; }
.pasta.solta-aqui { border-color: var(--destaque); background: rgb(232 116 46 / .08); }
.pasta-topo { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.pasta-topo h3 { margin: 0; font-size: .95rem; flex: 1; }
.pasta-topo h3 small { color: var(--texto-2); font-weight: 400; }
.pasta-vazia { margin: 0; font-size: .82rem; }
.form-upload { display: inline; }
.form-upload .botao-icone { cursor: pointer; }
.arquivos { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.arquivo { display: flex; align-items: center; gap: .6rem; padding: .35rem .4rem; border-radius: 8px; background: var(--superficie); border: 1px solid var(--borda); }
.arquivo .ext { width: 40px; height: 40px; border-radius: 8px; background: var(--fundo); color: var(--texto-2); font-size: .68rem; font-weight: 700; display: grid; place-items: center; flex: 0 0 auto; }
.arquivo .miniatura img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; display: block; }
.arquivo-info { flex: 1; min-width: 0; display: grid; }
.arquivo-info strong { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.arquivo-info small { color: var(--texto-2); font-size: .74rem; }
.gerar-botoes { display: flex; flex-wrap: wrap; gap: .4rem; }
.gerar-botoes form { display: inline; }
.gerar-botoes .botao { padding: .45rem .8rem; font-size: .85rem; }
.inversores label, [data-beneficiarias] label { font-size: .8rem; }
h3.sub { font-size: .95rem; margin: .9rem 0 .4rem; }
h3.sub small { color: var(--texto-2); font-weight: 400; font-size: .8rem; }

/* Homologação: padrões por concessionária (abas) */
.abas-padroes { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 1rem; }
.abas-padroes a { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border: 1px solid var(--borda); border-radius: 999px; text-decoration: none; color: var(--texto-2); font-size: .9rem; background: var(--superficie); }
.abas-padroes a.ativo { color: var(--texto); border-color: var(--texto); font-weight: 600; }
.abas-padroes a.adicionar { border-style: dashed; }
.abas-padroes .selo { padding: .05rem .45rem; font-size: .7rem; }

/* Editor de modelos: banco de fotos da plataforma */
.banco-fotos { flex-basis: 100%; }
.banco-fotos summary { cursor: pointer; color: var(--texto-2); font-size: .9rem; }
.banco-fotos summary small { font-weight: 400; }
.banco-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .5rem; margin-top: .6rem; }
.banco-foto { padding: 0; border: 2px solid var(--borda); border-radius: 10px; background: var(--superficie); cursor: pointer; overflow: hidden; display: grid; gap: .25rem; font: inherit; color: var(--texto-2); text-align: left; }
.banco-foto img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.banco-foto span { font-size: .75rem; padding: 0 .45rem .4rem; }
.banco-foto:hover { border-color: var(--texto-2); }
.banco-foto.ativa { border-color: var(--texto); box-shadow: 0 0 0 2px var(--destaque); color: var(--texto); }

/* Submenus (Configurações, Catálogo): botões com ícone; quebram linha no computador, grade de 2 colunas no celular. */
.submenu { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.1rem; }
.submenu a { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border: 1px solid var(--borda); border-radius: 10px;
    background: var(--superficie); color: var(--texto-2); text-decoration: none; font-size: .9rem; line-height: 1.2; transition: border-color .15s, color .15s, background .15s; }
.submenu a svg { flex: none; fill: currentColor; opacity: .85; }
.submenu a:hover { color: var(--texto); border-color: var(--texto-2); }
.submenu a.ativa { color: var(--texto); border-color: var(--destaque); background: color-mix(in srgb, var(--destaque) 12%, var(--superficie)); font-weight: 600; box-shadow: inset 0 0 0 1px var(--destaque); }
.submenu a.ativa svg { fill: var(--destaque); opacity: 1; }
@media (max-width: 640px) {
    .submenu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
    .submenu a { padding: .6rem .65rem; font-size: .84rem; min-height: 2.9rem; }
    .submenu a span { overflow-wrap: anywhere; }
}

/* Busca ao vivo e paginação */
[data-resultado] { transition: opacity .15s; }
[data-resultado].carregando { opacity: .55; }
.so-sem-js { display: none; }
.paginacao { display: flex; flex-wrap: wrap; gap: .6rem 1rem; justify-content: space-between; align-items: center; margin-top: 1rem; color: var(--texto-2); font-size: .9rem; }
.paginacao-paginas { display: inline-flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.paginacao-paginas a, .paginacao-paginas span.atual, .paginacao-paginas span.desligado { min-width: 2.2rem; height: 2.2rem; padding: 0 .55rem; display: inline-grid; place-items: center;
    border: 1px solid var(--borda); border-radius: 8px; text-decoration: none; color: var(--texto); background: var(--superficie); font-variant-numeric: tabular-nums; }
.paginacao-paginas a:hover { border-color: var(--texto-2); }
.paginacao-paginas span.atual { background: var(--destaque); border-color: var(--destaque); color: #fff; font-weight: 700; }
.paginacao-paginas span.desligado { opacity: .4; }
.paginacao-paginas .reticencias { padding: 0 .2rem; }
@media (max-width: 640px) { .paginacao { justify-content: center; } }
.titulo-secao { margin: 1.4rem 0 .4rem; font-size: 1.1rem; }

/* Homologação: unifilar na página, sugestões da comunidade, assinatura */
.unifilar-previa { display: block; border: 1px solid var(--borda); border-radius: 10px; overflow: hidden; background: #fff; }
.unifilar-previa img { display: block; width: 100%; height: auto; }
.aviso-arranjo { color: var(--alerta, #b45309); }
.selo-alerta { background: rgb(234 179 8 / .18); color: #92400e; }
@media (prefers-color-scheme: dark) { .selo-alerta { color: #fcd34d; } }
.sugestoes-comunidade { font-size: .86rem; display: grid; gap: .4rem; padding: .6rem .8rem; border: 1px dashed var(--borda); border-radius: 10px; }
.sugestoes-comunidade .botao-mini { padding: .25rem .6rem; font-size: .8rem; justify-self: start; text-align: left; white-space: normal; word-break: break-all; }
.lista-simples { margin: 0; padding-left: 1.1rem; display: grid; gap: .25rem; }

/* Envio assistido: tela ao vivo do navegador do nó e tela dos nós (master) */
.nav-tela { position: relative; border: 2px solid var(--borda); border-radius: 12px; overflow: hidden; background: #0f1720; aspect-ratio: 1280 / 800; outline: none; }
.nav-tela.sua-vez { border-color: var(--destaque); box-shadow: 0 0 0 4px rgb(232 116 46 / .18); }
.nav-tela img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.nav-tela.sua-vez img { cursor: crosshair; }
.nav-carregando { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .6rem; color: #cbd5e1; font-size: .95rem; }
.nav-captura { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; pointer-events: none; }
.nav-aviso { margin: .2rem 0 .8rem; }
.bloco.destaque { border-color: var(--destaque); }
.linha-copiar { display: flex; gap: .5rem; align-items: stretch; flex-wrap: wrap; margin: .5rem 0; }
.linha-copiar code { flex: 1 1 320px; padding: .6rem .8rem; background: var(--fundo); border: 1px solid var(--borda); border-radius: 8px; font-size: .82rem; word-break: break-all; }

/* ---------- DimBot em toda tela: faixa de dica, bolha que chama, chat interativo (v31) ---------- */
.dimbot-faixa { display: flex; align-items: center; gap: .55rem; margin: 0 0 1rem; padding: .45rem .7rem .45rem .6rem; border: 1px solid rgb(232 116 46 / .35); border-radius: 999px; background: rgb(232 116 46 / .08); font-size: .86rem; }
.dimbot-faixa .dimbot-logo { flex: none; }
.dimbot-faixa-texto { flex: 1; min-width: 0; border: 0; background: none; color: var(--texto); font: inherit; text-align: left; cursor: pointer; padding: 0; line-height: 1.35; transition: opacity .35s; }
.dimbot-faixa-texto.trocando { opacity: 0; }
.dimbot-faixa-texto:hover { color: var(--destaque-escuro); }
.dimbot-faixa-ir { flex: none; border: 0; border-radius: 999px; background: var(--destaque); color: #1c1003; font: inherit; font-size: .8rem; font-weight: 600; padding: .3rem .75rem; cursor: pointer; }
.dimbot-faixa-ir:hover { background: var(--destaque-escuro); color: #fff; }
.dimbot-faixa-fechar { flex: none; border: 0; background: none; color: var(--texto-2); font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 .2rem; }
.dimbot-faixa-fechar:hover { color: var(--texto); }
@media (max-width: 640px) { .dimbot-faixa { border-radius: 14px; flex-wrap: wrap; } .dimbot-faixa-texto { flex-basis: calc(100% - 2.4rem); } .dimbot-faixa-ir { margin-left: 2.1rem; } }
@media (prefers-color-scheme: dark) { .dimbot-faixa { background: rgb(232 116 46 / .12); } .dimbot-faixa-texto:hover { color: var(--destaque-claro); } }

.dimbot-botao.chamando::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--destaque); animation: dimbot-pulsa 1.8s ease-out 3; pointer-events: none; }
.dimbot-botao.chamando { overflow: visible; }
@keyframes dimbot-pulsa { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.dimbot-bolha { position: fixed; right: 88px; bottom: 30px; z-index: 35; max-width: min(260px, calc(100vw - 120px)); animation: dimbot-aparece .25s ease-out; }
.dimbot-bolha button { border: 1px solid var(--borda); border-radius: 14px 14px 4px 14px; background: var(--superficie); color: var(--texto); font: inherit; font-size: .84rem; line-height: 1.35; padding: .5rem .8rem; box-shadow: 0 8px 24px rgb(0 0 0 / .18); cursor: pointer; text-align: left; }
.dimbot-bolha button:hover { border-color: var(--destaque); }
@keyframes dimbot-aparece { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

.dimbot-clipe { display: grid; place-items: center; width: 36px; height: 38px; border-radius: 8px; color: var(--texto-2); cursor: pointer; flex: none; }
.dimbot-clipe:hover { background: var(--borda); color: var(--texto); }
.dimbot-clipe svg { fill: currentColor; }
.dimbot-pendentes { display: flex; flex-wrap: wrap; gap: .35rem; padding: .4rem .8rem 0; background: var(--fundo); border-top: 1px solid var(--borda); }
.dimbot-pendentes span { font-size: .76rem; background: var(--superficie); border: 1px solid var(--borda); border-radius: 999px; padding: .15rem .3rem .15rem .6rem; display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; }
.dimbot-pendentes span i { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.dimbot-pendentes span b { color: var(--texto-2); font-weight: 400; }
.dimbot-pendentes button { border: 0; background: none; color: var(--texto-2); cursor: pointer; padding: 0 .2rem; font-size: .95rem; line-height: 1; }
.dimbot-pendentes button:hover { color: var(--erro); }
.dimbot-pendentes + .dimbot-entrada { border-top: 0; }

/* Blocos interativos no fim da resposta: [[campos]], [[anexar]], [[links]] (os [[opcoes]]/[[marcar]] já existiam) */
.dimbot-campos { display: grid; gap: .4rem; padding: .55rem .7rem; border: 1px solid var(--borda); border-radius: 12px; background: var(--fundo); max-width: 92%; }
.dimbot-campos label { display: grid; gap: .15rem; font-size: .78rem; color: var(--texto-2); }
.dimbot-campos label small { color: var(--texto-2); font-weight: 400; }
.dimbot-campos input { padding: .4rem .55rem; font-size: .9rem; }
.dimbot-campos .confirmar { justify-self: start; margin-top: .2rem; }
.dimbot-campos.usado { opacity: .55; pointer-events: none; }
.dimbot-anexar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .5rem .7rem; border: 1px dashed var(--destaque); border-radius: 12px; background: rgb(232 116 46 / .06); font-size: .84rem; max-width: 92%; }
.dimbot-anexar label { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; background: var(--destaque); color: #1c1003; font-weight: 600; padding: .3rem .8rem; cursor: pointer; }
.dimbot-anexar label:hover { background: var(--destaque-escuro); color: #fff; }
.dimbot-anexar .pular { border: 0; background: none; color: var(--texto-2); font: inherit; font-size: .8rem; cursor: pointer; text-decoration: underline; }
.dimbot-anexar.usado { opacity: .55; pointer-events: none; }
.dimbot-links { display: flex; flex-wrap: wrap; gap: .35rem; max-width: 92%; }
.dimbot-links a { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--borda); border-radius: 999px; background: var(--superficie); color: var(--texto); font-size: .8rem; font-weight: 600; padding: .3rem .75rem; text-decoration: none; }
.dimbot-links a:hover { border-color: var(--destaque); color: var(--destaque-escuro); }
.dimbot-links a::before { content: "↗ "; color: var(--texto-2); }
.dimbot-opcoes, .dimbot-campos, .dimbot-anexar, .dimbot-links { align-self: flex-start; }

/* Botão azul: destaque secundário que contrasta com o laranja (modelos de proposta/contrato) */
.botao-azul { background: #2a78d6; color: #fff; }
.botao-azul:hover { background: #1f5fae; color: #fff; }
@media (prefers-color-scheme: dark) { .botao-azul { background: #3987e5; } .botao-azul:hover { background: #2a78d6; } }
/* Arrastar arquivo para dentro do chat do DimBot */
.dimbot-chat { position: relative; }
.dimbot-chat.solta-aqui::after { content: "Solte aqui para anexar (foto, PDF ou TXT)"; position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgb(232 116 46 / .14); border: 2px dashed var(--destaque); border-radius: inherit; color: var(--destaque-escuro); font-weight: 600; pointer-events: none; }
.menu-prontos .menu { left: 0; right: auto; min-width: 340px; }
.menu-prontos .menu a { display: grid; gap: .1rem; }
.menu-prontos .menu a small { color: var(--texto-2); white-space: normal; line-height: 1.3; }
.dimbot-pensando { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.dimbot-pensando .frase { font-style: italic; }
.dimbot-pensando .medidor { color: var(--texto-2); font-size: .72rem; margin-left: .3rem; }
.dimbot-pensando .medidor b { font-weight: 600; font-variant-numeric: tabular-nums; }
.dimbot-pensando.entregou { color: var(--destaque-escuro); font-weight: 600; animation: dimbot-aparece .25s ease-out; }
@media (prefers-color-scheme: dark) { .dimbot-pensando.entregou { color: var(--destaque-claro); } }
/* Dados do projeto de homologação: cards de resumo + edição em modal (v33) */
.resumos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .8rem; }
.resumo { border: 1px solid var(--borda); border-radius: 12px; padding: .7rem .85rem .6rem; background: var(--fundo); min-width: 0; }
.resumo-topo { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.resumo-topo h3 { margin: 0; font-size: .92rem; }
.resumo dl { margin: 0; display: grid; grid-template-columns: minmax(90px, 38%) minmax(0, 1fr); gap: .2rem .6rem; font-size: .83rem; }
.resumo dt { color: var(--texto-2); font-weight: 600; }
.resumo dd { margin: 0; overflow-wrap: anywhere; }
.resumo dd i { color: var(--texto-2); font-style: normal; }
.dialogo-largo { max-width: 960px; width: calc(100% - 32px); max-height: calc(100vh - 32px); overflow: auto; }
.dialogo-largo .cabecalho-secao { margin-bottom: .6rem; }
.dialogo-largo .barra-acoes { margin-top: 1rem; }
.botao-guia { padding: .5rem .9rem; font-size: .88rem; }
@media (max-width: 640px) { .resumos { grid-template-columns: minmax(0, 1fr); } .resumo dl { grid-template-columns: minmax(0, 1fr); } .resumo dt { margin-top: .25rem; } }
/* Linha de trabalho do DimBot (v9): itálico menor sob o balão enviado; vira o resumo "✻ … · concluído" */
.dimbot-trabalho { align-self: flex-end; max-width: 92%; margin: -.25rem 0 .1rem; font-size: .74rem; font-style: italic; color: var(--texto-2); display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; text-align: right; line-height: 1.3; }
.dimbot-trabalho .pontos { display: inline-flex; gap: 3px; margin-right: .15rem; }
.dimbot-trabalho .pontos i { width: 5px; height: 5px; border-radius: 50%; background: var(--destaque); animation: dimbot-pula 1s infinite; }
.dimbot-trabalho .pontos i:nth-child(2) { animation-delay: .15s; } .dimbot-trabalho .pontos i:nth-child(3) { animation-delay: .3s; }
.dimbot-trabalho .medidor b { font-weight: 600; font-variant-numeric: tabular-nums; }
.dimbot-trabalho.concluido { animation: dimbot-aparece .25s ease-out; }
.dimbot-trabalho .glifo { color: var(--destaque); font-style: normal; }
.dimbot-redim { position: absolute; left: 0; top: 0; width: 18px; height: 18px; cursor: nwse-resize; z-index: 3; border-radius: 16px 0 0 0; }
.dimbot-redim::before { content: ""; position: absolute; left: 4px; top: 4px; width: 8px; height: 8px; border-left: 2px solid var(--texto-2); border-top: 2px solid var(--texto-2); border-radius: 2px 0 0 0; opacity: .6; }
.dimbot-redim:hover::before { opacity: 1; border-color: var(--destaque); }
/* Visualização do link: data e hora à vista (v35) */
.selo-vis { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 600; line-height: 1.2; padding: .05rem .4rem; border-radius: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.selo-vis b { font-weight: 700; opacity: .75; }
.vis-primeira { background: var(--ok-fundo); color: var(--ok); }
.vis-mais { background: #dbeafe; color: #1e40af; }
.vis-vencida { background: var(--erro-fundo); color: var(--erro); }
@media (prefers-color-scheme: dark) { .vis-mais { background: rgb(57 135 229 / .2); color: #8ab8f0; } }
/* Botão do DimBot: antena pisca vermelho de leve e o anel pulsa em vermelho quando chama */
.dimbot-botao .db-antena-ponta { animation: dimbot-antena 3.2s ease-in-out infinite; }
@keyframes dimbot-antena { 0%, 82%, 100% { fill: #fff; } 88% { fill: #ff3b30; } 94% { fill: #fff; } }
.dimbot-botao.chamando::after { border-color: #ff3b30; }
.dimbot-botao.aberto .db-antena-ponta { animation: none; }
.pacote-tokens { display: inline-grid; justify-items: center; line-height: 1.15; }
.pacote-tokens small { font-weight: 400; font-size: .78rem; color: var(--texto-2); }
@media (prefers-reduced-motion: reduce) { .dimbot-botao .db-antena-ponta { animation: none; } }
/* Gerador: tipo de sistema como primeira escolha (v36) */
.tipo-sistema-escolha { border: 0; padding: 0; margin: 0 0 .9rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.tipo-sistema-escolha legend { width: 100%; font-size: .85rem; font-weight: 600; color: var(--texto-2); margin-bottom: .35rem; padding: 0; }
.tipo-sistema-escolha legend small { font-weight: 400; }
.tipo-opcao { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--borda); border-radius: 999px; padding: .4rem .9rem; cursor: pointer; font-size: .9rem; background: var(--superficie); }
.tipo-opcao:has(input:checked) { border-color: var(--destaque); background: rgb(232 116 46 / .1); font-weight: 600; }
.oculto-off { display: none !important; }
[hidden].so-on { display: none !important; }
.formulario .tipo-sistema-escolha .tipo-opcao, .gerador .tipo-sistema-escolha .tipo-opcao { display: inline-flex; width: auto; flex: 0 0 auto; margin: 0; }
.tipo-opcao input { width: auto; margin: 0; }
.formulario fieldset.tipo-sistema-escolha { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Quadro da tela ao vivo do envio assistido, dentro do chat do DimBot: abre sozinho; fechar não encerra a sessão (o botão do canto reabre). */
.nav-modal { position: fixed; z-index: 37; right: 468px; bottom: 90px; width: min(860px, calc(100vw - 500px)); height: min(600px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--superficie); border: 1px solid var(--borda); border-radius: 14px; box-shadow: 0 18px 50px rgb(0 0 0 / .32); overflow: hidden; }
.nav-modal[hidden] { display: none; }
.nav-modal-cab { display: flex; align-items: center; gap: .55rem; padding: .5rem .75rem; border-bottom: 1px solid var(--borda); font-size: .9rem; min-height: 44px; }
.nav-modal-cab strong { white-space: nowrap; }
.nav-modal-cab .espaco { flex: 1; }
.nav-modal-cab a, .nav-modal-cab button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--texto-2); font-size: 1.25rem; line-height: 1; cursor: pointer; text-decoration: none; }
.nav-modal-cab a:hover, .nav-modal-cab button:hover { background: var(--fundo); color: var(--texto); }
.nav-modal-chamado { color: var(--destaque-escuro); font-weight: 600; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nav-modal iframe { flex: 1; width: 100%; border: 0; background: var(--superficie); min-height: 0; }
.nav-modal.chamando { border-color: var(--destaque); animation: nav-chama 1.4s ease-in-out infinite; }
.nav-chip { position: fixed; z-index: 35; left: 16px; bottom: 16px; max-width: calc(100vw - 100px); padding: .5rem .9rem; border: 1px solid var(--borda); border-radius: 999px; background: var(--superficie); color: var(--texto); font: inherit; font-size: .88rem; cursor: pointer; box-shadow: 0 8px 24px rgb(0 0 0 / .2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-chip[hidden] { display: none; }
.nav-chip.chamando { border-color: var(--destaque); color: var(--destaque-escuro); font-weight: 600; animation: nav-chama 1.4s ease-in-out infinite; }
@keyframes nav-chama { 0%, 100% { box-shadow: 0 0 0 3px rgb(232 116 46 / .28), 0 12px 32px rgb(0 0 0 / .28); } 50% { box-shadow: 0 0 0 9px rgb(232 116 46 / .08), 0 12px 32px rgb(0 0 0 / .28); } }
@media (max-width: 1100px) { .nav-modal { inset: 8px 8px 8px 8px; width: auto; height: auto; } }
/* Página da tela ao vivo dentro do quadro (?modal=1): sem menu, a tela cabe na altura do quadro. */
body.nav-embutido { padding: .6rem .75rem .5rem; background: var(--superficie); }
.nav-embutido .barra-topo { margin: 0 0 .5rem; }
.nav-embutido .nav-tela { margin: 0 auto; }
.nav-embutido .nav-aviso { margin: 0 0 .5rem; padding: .4rem .7rem; font-size: .85rem; }
.nav-embutido [data-nav-sua-vez] { margin-top: .5rem; flex-wrap: wrap; }
.nav-embutido [data-nav-sua-vez] .dica { font-size: .78rem; flex: 1 1 220px; margin: 0; }
@media (prefers-reduced-motion: reduce) { .nav-modal.chamando, .nav-chip.chamando { animation: none; } }
