/* Plantão: as telas do sistema, no visual da demonstração aprovada.
   Regra visual: o app é neutro; cor só aparece para dizer temperatura (e situação do aluguel).
   Um só HTML: no celular (até 999 px) a tela inteira com as abas embaixo; a partir de 1000 px,
   a lateral do painel do computador com o corpo rolando ao lado. */

:root {
  --palco: #E8EBEF;
  --app: #F4F5F7;
  --superficie: #FFFFFF;
  --tinta: #0E1116;
  --tinta-2: #475061;
  --tinta-3: #848D9C;
  --linha: #E4E7EC;
  --linha-forte: #CDD2DA;

  --quente: #E5484D;  --quente-texto: #B3242A;  --quente-fundo: #FDECEC;
  --morno: #F2A42B;   --morno-texto: #925600;   --morno-fundo: #FEF3E0;
  --frio: #3B82F6;    --frio-texto: #1D50C2;    --frio-fundo: #EAF1FE;
  --ok: #0F7A55;      --ok-fundo: #E4F5EE;

  --bolha-assistente: #E8ECF2;
  --dourado: #F2C14E;        /* a cor da marca do corretor: o ícone do app e o que precisa chamar atenção (sessão vencida) */
  --dourado-forte: #E6AE2C;
  --raio: 16px;
  --sombra-1: 0 1px 2px rgba(14, 17, 22, .05), 0 2px 10px rgba(14, 17, 22, .05);
  --sombra-2: 0 14px 34px rgba(14, 17, 22, .16), 0 2px 8px rgba(14, 17, 22, .06);
  --suave: cubic-bezier(.2, .8, .2, 1);
  --lado: 236px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.45; color: var(--tinta); background: var(--app);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
button:focus-visible, textarea:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }
img { display: block; max-width: 100%; }
.ic { width: 20px; height: 20px; flex: none; }
.num { font-variant-numeric: tabular-nums; }

@keyframes surge { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, .45); } 100% { box-shadow: 0 0 0 14px rgba(59, 130, 246, 0); } }
@keyframes pulso-escuro { 0% { box-shadow: 0 0 0 0 rgba(14, 17, 22, .38), 0 10px 24px rgba(14, 17, 22, .25); } 100% { box-shadow: 0 0 0 16px rgba(14, 17, 22, 0), 0 10px 24px rgba(14, 17, 22, .25); } }
@keyframes onda { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes ponto { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@keyframes gravando { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.botao .ic { width: 18px; height: 18px; }
.botao.primario { background: var(--tinta); color: #fff; }
.botao.primario:hover { transform: translateY(-1px); background: #232a35; }
.botao.secundario { border: 1px solid var(--linha-forte); background: var(--superficie); }
.botao.secundario:hover { border-color: var(--tinta); transform: translateY(-1px); }
.botao.claro { background: #fff; color: var(--tinta); }
.botao.claro:hover { transform: translateY(-1px); }
.botao.fantasma { color: var(--tinta-2); padding: 0 10px; }
.botao.fantasma:hover { color: var(--tinta); }
.botao:disabled { opacity: .55; cursor: default; transform: none; }
.largo { width: 100%; height: 46px; }

/* ---------- Disposição: celular (padrão) ---------- */
.p-app { min-height: 100vh; min-height: 100dvh; }
.p-lado { display: none; }
.p-main { position: relative; min-width: 0; padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
.p-topo {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: calc(16px + env(safe-area-inset-top)) 20px 14px;
}
.p-topo-txt { min-width: 0; }
.p-topo .sobre { font-size: 13px; color: var(--tinta-3); }
.p-topo h1 { font-size: 30px; line-height: 1.06; letter-spacing: -.028em; font-weight: 650; text-wrap: balance; }
.p-vazio { padding: 12px 14px; font-size: 13px; color: var(--tinta-3); }
.respiro { height: 20px; }

/* A foto do corretor (ou as iniciais) */
.retrato { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: #D9DDE3; box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(14, 17, 22, .18); }
.retrato.iniciais { display: grid; place-items: center; background: var(--tinta); color: #fff; font-size: 14px; font-weight: 650; letter-spacing: .02em; }
.monograma { flex: none; display: block; border-radius: 50%; transition: transform .15s ease; }
.monograma:hover { transform: translateY(-1px); }
.monograma .retrato { width: 38px; height: 38px; font-size: 13px; }

/* Faixas no topo: suspensão, pacote e sessão vencida (aviso neutro, sem valores) */
.faixas { position: sticky; top: 0; z-index: 25; }
.faixa {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--tinta); color: #fff;
  font-size: 13.5px; line-height: 1.35; font-weight: 500; animation: aparece .3s ease;
}
.faixa + .faixa, #faixas:not(:empty) + .faixa { border-top: 1px solid rgba(255, 255, 255, .12); }
.faixa > .ic { width: 18px; height: 18px; color: var(--dourado); }
.faixa > span { min-width: 0; }
.faixa-acao {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 999px;
  background: var(--dourado); color: var(--tinta); font-size: 13.5px; font-weight: 650; transition: background .15s ease;
}
.faixa-acao:hover { background: var(--dourado-forte); }

/* ---------- Abas (celular) ---------- */
.abas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--linha); padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
}
.aba {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0;
  padding: 6px 0 2px; font-size: 11px; font-weight: 600; color: var(--tinta-3); transition: color .15s ease; text-align: center;
}
.aba:hover { color: var(--tinta-2); }
.aba.ativa { color: var(--tinta); }
.aba .ic { width: 23px; height: 23px; }
.contador {
  position: absolute; top: 1px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px;
  border-radius: 999px; background: var(--quente); color: #fff; font-size: 10.5px; line-height: 17px; text-align: center;
}
.aba-central { justify-content: flex-end; }
.aba-central .bola {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-top: -24px; margin-bottom: 1px;
  background: var(--tinta); color: #fff; box-shadow: 0 6px 16px rgba(14, 17, 22, .28); transition: transform .15s ease;
}
.aba-central .bola .ic { width: 22px; height: 22px; }
.aba-central:hover .bola { transform: translateY(-2px); }
.aba-central.ativa { color: var(--tinta); }

/* Botão + (Adicionar) */
.fab {
  position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 31; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: var(--tinta); color: #fff;
  box-shadow: 0 10px 24px rgba(14, 17, 22, .25); transition: transform .15s ease;
}
.fab .ic { width: 26px; height: 26px; }
.fab:hover { transform: translateY(-2px); }
.fab.convite { animation: pulso-escuro 1.6s ease-out infinite; }

/* ---------- Lateral (computador) e gaveta da conta (celular) ---------- */
.p-marca { display: flex; align-items: center; gap: 10px; padding: 0 6px 16px; }
.p-marca > span { min-width: 0; }
.p-marca b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.015em; line-height: 1.15; }
.p-marca > span > span { display: block; font-size: 12px; color: var(--tinta-3); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-adicionar {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; margin-bottom: 12px; border-radius: 12px;
  background: var(--tinta); color: #fff; font-size: 14px; font-weight: 600; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.p-adicionar .ic { width: 18px; height: 18px; }
.p-adicionar:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(14, 17, 22, .18); }
.p-navs { display: flex; flex-direction: column; gap: 2px; }
.p-nav {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; height: 40px; padding: 0 10px;
  border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--tinta-2); transition: background .15s ease, color .15s ease;
}
.p-nav .ic { width: 20px; height: 20px; }
.p-nav:hover { background: #F3F5F7; color: var(--tinta); }
.p-nav.ativa { background: #ECEFF3; color: var(--tinta); }
.p-nav b {
  min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--quente); color: #fff;
  font-size: 11.5px; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums;
}
.p-lado-pe { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.p-status {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px;
  background: #F4F6F8; font-size: 12.5px; line-height: 1.38; color: var(--tinta-2);
}
.p-status i { flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-fundo); }
.p-status.parada i { background: var(--tinta-3); box-shadow: 0 0 0 3px #E6E9EE; }
.p-status b { display: block; color: var(--tinta); font-size: 13px; font-weight: 650; margin-bottom: 1px; }
.p-saldo { display: grid; gap: 7px; padding: 2px 4px; font-size: 12.5px; line-height: 1.3; color: var(--tinta-2); }
.p-saldo b { color: var(--tinta); font-weight: 650; white-space: nowrap; }
.p-saldo-barra { display: block; height: 5px; border-radius: 999px; background: #E9ECF0; overflow: hidden; }
.p-saldo-barra i { display: block; height: 100%; border-radius: 999px; background: var(--tinta-2); }
.p-rodape { display: flex; flex-direction: column; gap: 2px; }
.p-rodape a, .p-admin summary {
  display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--tinta-2); transition: background .15s ease, color .15s ease; cursor: pointer;
}
.p-rodape a:hover, .p-admin summary:hover { background: #F3F5F7; color: var(--tinta); }
.p-rodape a.ativa { background: #ECEFF3; color: var(--tinta); }
.p-rodape .ic { width: 16px; height: 16px; }
.p-admin summary { list-style: none; }
.p-admin summary::-webkit-details-marker { display: none; }
.p-admin summary .ic { margin-left: auto; transition: transform .15s ease; }
.p-admin[open] summary .ic { transform: rotate(90deg); }
.p-admin a { padding-left: 16px; }
.p-usuario { display: flex; align-items: center; gap: 10px; padding: 12px 4px 0; border-top: 1px solid var(--linha); }
.p-usuario-nome { flex: 1; min-width: 0; }
.p-usuario-nome b { display: block; font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-usuario-nome span { display: block; font-size: 11.5px; color: var(--tinta-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-usuario .botao { height: 32px; padding: 0 12px; font-size: 13px; }
.gaveta .p-marca { padding: 2px 0 14px; }
.gaveta .p-marca .icone-botao { margin-left: auto; }
.gaveta .p-status { margin-bottom: 12px; }
.gaveta .p-saldo { margin-bottom: 10px; }
.gaveta .p-rodape { margin-bottom: 12px; }
.gaveta .p-rodape a, .gaveta .p-admin summary { height: 44px; font-size: 14.5px; }
.gaveta .p-rodape .ic { width: 18px; height: 18px; }

/* ---------- Seções ---------- */
.secao { margin-top: 22px; padding: 0 14px; }
.secao-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 6px 8px; }
.secao-cab h2 { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.secao-cab .mais { font-size: 13px; font-weight: 600; color: var(--tinta-2); white-space: nowrap; }
.secao-cab .mais:hover { color: var(--tinta); }

/* Resumo da noite (cartão escuro do Hoje) */
.resumo-noite { margin: 2px 14px 0; padding: 18px 18px 16px; border-radius: 20px; background: var(--tinta); color: #fff; }
.resumo-noite .rotulo { font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.resumo-noite .frase { margin-top: 6px; font-size: 19px; line-height: 1.22; font-weight: 600; letter-spacing: -.012em; text-wrap: balance; }
.numeros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 6px; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); }
.numeros strong { display: block; font-size: 25px; line-height: 1.1; font-weight: 650; font-variant-numeric: tabular-nums; }
.numeros strong.quente { color: #FF8A8E; }
.numeros span { display: block; font-size: 12px; line-height: 1.3; color: rgba(255, 255, 255, .62); }

/* Hoje: uma coluna no celular, duas no computador */
.p-col { display: flex; flex-direction: column; min-width: 0; }
.p-pilha { display: flex; flex-direction: column; gap: 10px; }

/* Listas */
.lista { background: var(--superficie); border-radius: var(--raio); box-shadow: var(--sombra-1); overflow: hidden; }
.item {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: start; width: 100%;
  padding: 13px 14px 13px 12px; border-bottom: 1px solid var(--linha); transition: background .15s ease;
}
.item:last-child { border-bottom: 0; }
a.item:hover, button.item:hover { background: #F8F9FB; }
.item.sem-rank { grid-template-columns: minmax(0, 1fr) auto; padding-left: 14px; align-items: center; }
.rank { font-size: 12px; font-weight: 600; color: var(--tinta-3); font-variant-numeric: tabular-nums; padding-top: 2px; text-align: center; }
.item-nome { display: block; font-weight: 600; font-size: 15px; line-height: 1.25; }
.item-linha { display: block; font-size: 13px; color: var(--tinta-2); margin-top: 2px; }
.item-hora { font-size: 12px; color: var(--tinta-3); white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: 2px; }
.etiquetas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.pilula {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.pilula .ic { width: 13px; height: 13px; }
.pilula.quente { background: var(--quente-fundo); color: var(--quente-texto); }
.pilula.morno { background: var(--morno-fundo); color: var(--morno-texto); }
.pilula.frio { background: var(--frio-fundo); color: var(--frio-texto); }
.pilula.urgente { background: var(--quente); color: #fff; }
.pilula.esfriando { background: #E9EEF5; color: #3D4C63; }
.pilula.ok { background: var(--ok-fundo); color: var(--ok); }
.pilula.neutra { background: #EEF0F3; color: var(--tinta-2); }
.humor {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--tinta-2); border: 1px solid var(--linha-forte); white-space: nowrap;
}
.humor .ic { width: 13px; height: 13px; }
/* De onde o cliente veio: neutro (a cor é só da temperatura). Os canais dele, cheios; o da imobiliária, tracejado. */
.origem {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--tinta); background: #ECEEF2; white-space: nowrap;
}
.origem .ic { width: 13px; height: 13px; }
.origem.imob { background: transparent; color: var(--tinta-2); border: 1px dashed var(--linha-forte); }
.leitura-origem { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 13px; font-weight: 600; color: var(--tinta); line-height: 1.3; }
.leitura-origem .ic { width: 15px; height: 15px; flex: none; }
.leitura-origem em { font-style: normal; font-weight: 500; color: var(--tinta-3); }
.leitura-origem.imob { color: var(--tinta-2); }
.origens { padding: 12px 14px 6px; border-radius: var(--raio); background: var(--superficie); box-shadow: var(--sombra-1); }
.or-frase { font-size: 14px; color: var(--tinta-2); padding-bottom: 8px; }
.or-frase strong { color: var(--tinta); font-weight: 650; }
.or-linha {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) 76px 22px; gap: 9px; align-items: center; width: 100%;
  padding: 9px 0; border-top: 1px solid var(--linha); font-size: 13.5px; transition: opacity .15s ease;
}
.or-linha:hover { opacity: .75; }
.or-linha .ic { width: 16px; height: 16px; color: var(--tinta-2); }
.or-nome { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.or-barra { height: 6px; border-radius: 999px; background: #EEF0F3; overflow: hidden; }
.or-barra i { display: block; height: 100%; border-radius: 999px; background: var(--tinta); }
.or-linha.imob .or-nome { color: var(--tinta-2); }
.or-linha.imob .or-barra i { background: var(--tinta-3); }
.or-linha b { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.esperando { font-size: 12px; font-weight: 600; color: var(--tinta); display: inline-flex; align-items: center; gap: 4px; }
.esperando::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--tinta); }

/* Esfriando */
.esfriando-cartao { padding: 14px; border-radius: var(--raio); background: var(--superficie); box-shadow: var(--sombra-1); }
.esfriando-cartao .linha-topo { display: flex; justify-content: space-between; gap: 10px; }
.esfriando-cartao .linha-topo > div { min-width: 0; }
.esfriando-cartao p { font-size: 13px; color: var(--tinta-2); margin-top: 3px; }
.esfriando-cartao .acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.esfriando-cartao .botao { height: 36px; font-size: 13.5px; }

/* Agenda */
.agenda { background: var(--superficie); border-radius: var(--raio); box-shadow: var(--sombra-1); padding: 4px 0; }
.compromisso { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 6px; width: 100%; padding: 10px 14px; transition: background .15s ease; }
a.compromisso:hover { background: #F8F9FB; }
.compromisso time { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; padding-top: 1px; }
.compromisso strong { display: block; font-size: 14.5px; font-weight: 600; }
.compromisso .c-det { display: block; font-size: 12.5px; color: var(--tinta-2); }
.compromisso.novo { animation: surge .4s var(--suave); background: #F3F6FA; }

.linha-atalho {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 14px; border-radius: var(--raio); background: var(--superficie); box-shadow: var(--sombra-1); transition: transform .15s ease;
}
.linha-atalho:hover { transform: translateY(-1px); }
.linha-atalho strong { display: block; font-size: 14.5px; font-weight: 600; }
.linha-atalho .la-sub { display: block; font-size: 12.5px; color: var(--tinta-2); margin-top: 2px; }

/* Cartão de texto simples (telas de ajuste, alertas) */
.cartao-texto { padding: 16px; border-radius: var(--raio); background: var(--superficie); box-shadow: var(--sombra-1); font-size: 14.5px; color: var(--tinta-2); }
.cartao-texto p + p { margin-top: 8px; }
.situacao-alerta { color: var(--tinta); font-weight: 600; }
.botoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.retorno { margin-top: 10px; font-size: 13px; color: var(--tinta-2); }
.retorno:empty { display: none; }
.passo-a-passo { display: grid; gap: 10px; }

/* ---------- Quadro ---------- */
.filtros { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 12px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.filtro {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--tinta-2); background: var(--superficie); border: 1px solid var(--linha);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.filtro span { font-size: 12px; color: var(--tinta-3); font-variant-numeric: tabular-nums; }
.filtro:hover { border-color: var(--linha-forte); color: var(--tinta); }
.filtro.ativo { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.filtro.ativo span { color: rgba(255, 255, 255, .6); }
/* Régua de etapas: mostra em que coluna do pipeline a pessoa está e leva a qualquer uma */
.etapas { position: relative; display: flex; gap: 4px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.etapas::-webkit-scrollbar { display: none; }
.etapa {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px 0 5px; border-radius: 999px;
  border: 1px solid transparent; font-size: 13px; font-weight: 600; color: var(--tinta-3);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.etapa b {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #E1E5EA;
  font-size: 11.5px; color: var(--tinta-2); font-variant-numeric: tabular-nums;
}
.etapa span { font-size: 12px; color: var(--tinta-3); font-variant-numeric: tabular-nums; }
.etapa:hover { color: var(--tinta); }
.etapa.ativa { background: var(--superficie); border-color: var(--linha-forte); color: var(--tinta); box-shadow: 0 1px 2px rgba(14, 17, 22, .06); }
.etapa.ativa b { background: var(--tinta); color: #fff; }

/* O pipeline: moldura com borda, e cada coluna com borda e cabeçalho numerado */
.pipeline { margin: 0 12px 24px; border: 1px solid var(--linha-forte); border-radius: 18px; background: var(--superficie); overflow: hidden; box-shadow: var(--sombra-1); }
.colunas { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; align-items: stretch; }
.colunas::-webkit-scrollbar { display: none; }
.coluna {
  flex: 0 0 86%; scroll-snap-align: start; display: flex; flex-direction: column; min-height: 440px;
  background: #F2F4F7; border-right: 1px solid var(--linha-forte);
}
.coluna:last-child { border-right: 0; }
.coluna-cab { padding: 11px 12px 10px; background: var(--superficie); border-bottom: 1px solid var(--linha-forte); }
.coluna-cab h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; }
.coluna-cab h2 span {
  margin-left: auto; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center;
  background: #EEF1F4; font-size: 12px; font-weight: 600; color: var(--tinta-2); font-variant-numeric: tabular-nums;
}
.etapa-num {
  width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--tinta); color: #fff; font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums;
}
.coluna-cab p { margin-top: 3px; padding-left: 30px; font-size: 12px; color: var(--tinta-3); }
.coluna-corpo { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.coluna-corpo .cartao { border: 1px solid var(--linha); box-shadow: 0 1px 2px rgba(14, 17, 22, .05); }
.coluna-vazia { padding: 18px 12px; border: 1px dashed var(--linha-forte); border-radius: 14px; font-size: 12.5px; color: var(--tinta-3); text-align: center; }

.cartao {
  position: relative; display: block; width: 100%; padding: 12px 13px 12px 16px; border-radius: 14px;
  background: var(--superficie); box-shadow: var(--sombra-1); transition: transform .15s ease, box-shadow .15s ease;
}
.cartao::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--cor, var(--linha-forte));
}
.cartao.t-quente { --cor: var(--quente); }
.cartao.t-morno { --cor: var(--morno); }
.cartao.t-frio { --cor: var(--frio); }
.cartao.urgente { --cor: var(--quente); }
.cartao.pago { --cor: var(--ok); }
.cartao:hover { transform: translateY(-2px); box-shadow: var(--sombra-2); }
.cartao-topo { display: flex; justify-content: space-between; gap: 8px; }
.cartao-topo strong { font-size: 14.5px; font-weight: 650; line-height: 1.25; }
.cartao-topo time { font-size: 11.5px; color: var(--tinta-3); white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: 2px; }
.cartao-resumo { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-size: 13px; color: var(--tinta-2); line-height: 1.38; }
.cartao .etiquetas { margin-top: 9px; }
.cartao .esperando { display: flex; margin-top: 8px; }
.cartao .mensagem-pronta {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; background: var(--tinta); color: #fff;
}
/* Pipeline: o próximo passo no cartão, o arrasto entre colunas e o espaço dos filtros */
.quadro-regiao { display: contents; }
.cartao-passo { display: flex; align-items: flex-start; gap: 4px; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--tinta); line-height: 1.35; }
.cartao-passo .ic { width: 14px; height: 14px; margin-top: 1px; color: var(--tinta-3); }
.cartao[draggable="true"] { cursor: grab; -webkit-user-drag: element; }
.cartao.levando { opacity: .4; }
.coluna.alvo { background: #E6EAF0; box-shadow: inset 0 0 0 2px var(--tinta); }
.coluna-corpo .coluna-vazia[hidden] { display: none; }
.cartao.destaque { animation: pulso 1.4s ease-out 2; }
.cartao.chegou { animation: surge .45s var(--suave); }

/* ---------- Conversa ---------- */
.app-corpo { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; }
.app-corpo::-webkit-scrollbar { display: none; }
.conversa-topo {
  flex: none; display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 12px 10px;
  background: var(--superficie); border-bottom: 1px solid var(--linha); position: relative; z-index: 5;
}
.voltar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; transition: background .15s ease; }
.voltar:hover { background: #EEF0F3; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 13px; font-weight: 650; background: #E5E8ED; color: var(--tinta-2);
}
.avatar.escuro { background: var(--tinta); color: #fff; }
.conversa-topo .quem-e { display: block; min-width: 0; flex: 1; }
.conversa-topo .quem-e strong { display: block; font-size: 15.5px; font-weight: 650; line-height: 1.2; color: var(--tinta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversa-topo .quem-e span { display: block; font-size: 12.5px; color: var(--tinta-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icone-botao { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--tinta-2); transition: background .15s ease; }
.icone-botao:hover { background: #EEF0F3; color: var(--tinta); }

.leitura {
  position: sticky; top: 8px; z-index: 4; margin: 10px 12px 2px; padding: 12px 14px; border-radius: var(--raio);
  background: var(--superficie); box-shadow: 0 1px 2px rgba(14, 17, 22, .06), 0 6px 18px rgba(14, 17, 22, .08);
}
.leitura::before { content: ''; position: absolute; left: -12px; right: -12px; top: -10px; height: 10px; background: var(--app); }
.leitura.ao-vivo .motivos { display: none; }
.ultimo-motivo { display: flex; align-items: flex-start; gap: 6px; margin-top: 9px; font-size: 12.5px; line-height: 1.35; color: var(--tinta); animation: surge .4s var(--suave); }
.ultimo-motivo .ic { width: 14px; height: 14px; margin-top: 1px; color: var(--ok); }
.leitura-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.leitura-rotulo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--tinta-3); }
.leitura-rotulo .ic { width: 15px; height: 15px; }
.leitura-alternar { font-size: 12.5px; font-weight: 600; color: var(--tinta-2); }
.leitura-alternar:hover { color: var(--tinta); }
.leitura-linha { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px; }
.leitura-linha .porque { font-size: 12.5px; color: var(--tinta-2); }
.lendo { display: flex; align-items: center; gap: 8px; height: 22px; font-size: 13px; color: var(--tinta-3); }
.motivos { list-style: none; margin-top: 10px; border-top: 1px solid var(--linha); padding-top: 8px; display: none; }
.leitura.aberta .motivos { display: block; }
.motivos li { position: relative; padding: 3px 0 3px 16px; font-size: 13px; color: var(--tinta-2); animation: surge .35s var(--suave); }
.motivos li::before { content: ''; position: absolute; left: 3px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--tinta-3); }
.proximo { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--linha); font-size: 13px; color: var(--tinta); }
.proximo b { font-weight: 650; }

.termometro { margin-top: 10px; }
.termo-topo { display: flex; align-items: center; gap: 8px; }
.termo-tend { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--tinta-3); }
.termo-tend .ic { width: 14px; height: 14px; }
.termo-trilho {
  position: relative; height: 8px; border-radius: 999px; margin: 12px 0 6px;
  background: linear-gradient(90deg, var(--frio), var(--morno) 52%, var(--quente));
}
.termo-trilho::after {
  content: ''; position: absolute; top: 0; bottom: 0; right: 0; left: var(--nivel, 0%);
  border-radius: 0 999px 999px 0; background: rgba(228, 231, 236, .92); transition: left .9s var(--suave);
}
.termo-marca {
  position: absolute; z-index: 1; top: 50%; left: var(--nivel, 0%); width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--tinta); transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(14, 17, 22, .25); transition: left .9s var(--suave);
}
.termo-escala { display: flex; justify-content: space-between; font-size: 11px; color: var(--tinta-3); }

.mensagens { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 18px; }
.separador-dia {
  align-self: center; margin: 10px 0 6px; font-size: 11.5px; font-weight: 600; color: var(--tinta-2);
  background: #E6E9EE; padding: 3px 10px; border-radius: 999px; text-transform: capitalize;
}
.bolha {
  position: relative; max-width: 84%; padding: 8px 11px 5px; border-radius: 16px; font-size: 14.5px; line-height: 1.36;
  box-shadow: 0 1px 1px rgba(14, 17, 22, .05); animation: surge .3s var(--suave) both; overflow-wrap: anywhere;
}
.bolha.cliente { align-self: flex-start; background: var(--superficie); border-bottom-left-radius: 6px; }
.bolha.assistente { align-self: flex-end; background: var(--bolha-assistente); border-bottom-right-radius: 6px; }
.bolha.corretor { align-self: flex-end; background: var(--tinta); color: #fff; border-bottom-right-radius: 6px; }
.bolha time { display: block; text-align: right; font-size: 10.5px; color: var(--tinta-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.bolha.corretor time { color: rgba(255, 255, 255, .55); }
.autor { font-size: 10.5px; font-weight: 600; color: var(--tinta-3); margin: 6px 6px 0; }
.autor.direita { align-self: flex-end; }
.autor.esquerda { align-self: flex-start; }
.nota-sistema {
  align-self: center; display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 4px; padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--quente-texto); background: var(--quente-fundo); animation: surge .35s var(--suave);
}
.nota-sistema.frio { color: #3D4C63; background: #E9EEF5; }
.nota-sistema .ic { width: 14px; height: 14px; }

.bolha .texto { display: block; }
.digitando-bolha { padding: 0; }
.digitando { display: inline-flex; gap: 4px; padding: 12px 14px; }
.digitando i { width: 6px; height: 6px; border-radius: 50%; background: var(--tinta-3); animation: ponto 1s infinite; }
.digitando i:nth-child(2) { animation-delay: .15s; }
.digitando i:nth-child(3) { animation-delay: .3s; }

.midia { display: grid; place-items: center; width: 210px; height: 150px; border-radius: 10px; margin-bottom: 4px; overflow: hidden; }
.midia.foto { position: relative; background: linear-gradient(160deg, #D3D8DF 0%, #A9B2BE 100%); color: rgba(255, 255, 255, .9); }
.midia.foto .ic { width: 30px; height: 30px; }
.midia .legenda-foto { position: absolute; z-index: 1; left: 10px; bottom: 8px; font-size: 11.5px; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(14, 17, 22, .3); }
.midia.foto.real { width: 220px; height: 212px; background: #DDE2E8; }
.midia.foto.real img { width: 100%; height: 100%; object-fit: cover; }
.midia.foto.real::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: linear-gradient(transparent, rgba(14, 17, 22, .5)); }
.recibo { width: 210px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--linha); margin-bottom: 4px; }
.recibo .r-topo { display: flex; justify-content: space-between; font-size: 11px; color: var(--tinta-3); }
.recibo .r-valor { margin-top: 8px; font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.recibo .r-linha { height: 6px; border-radius: 3px; background: #EEF0F3; margin-top: 7px; }
.recibo .r-linha.curta { width: 60%; }
.arquivo { display: flex; align-items: center; gap: 10px; width: 220px; padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, .7); margin-bottom: 4px; }
.arquivo .ic-caixa { width: 36px; height: 42px; border-radius: 6px; background: #fff; border: 1px solid var(--linha); display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--quente-texto); }
.arquivo .a-texto { display: block; }
.arquivo strong { display: block; font-size: 13px; color: var(--tinta); }
.arquivo .a-texto span { font-size: 11.5px; color: var(--tinta-3); }
.mapa {
  width: 220px; height: 120px; border-radius: 10px; margin-bottom: 4px; position: relative; overflow: hidden;
  background-color: #E7EBE3;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .8) 2px, transparent 2px), linear-gradient(rgba(255, 255, 255, .8) 2px, transparent 2px);
  background-size: 34px 34px;
}
.mapa::after { content: ''; position: absolute; left: 50%; top: 46%; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; background: var(--quente); transform: translate(-50%, -50%) rotate(-45deg); }
.mapa-legenda { font-size: 12.5px; font-weight: 600; }

.audio { display: flex; align-items: center; gap: 10px; min-width: 210px; padding: 2px 0 4px; }
.audio .tocar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); flex: none; }
.bolha.assistente .audio .tocar, .bolha.cliente .audio .tocar { background: rgba(14, 17, 22, .08); }
.audio .tocar .ic { width: 14px; height: 14px; }
.ondas { display: flex; align-items: center; gap: 2px; height: 22px; flex: 1; }
.ondas i { width: 3px; border-radius: 2px; background: currentColor; opacity: .55; }
.audio .dur { font-size: 11.5px; opacity: .7; font-variant-numeric: tabular-nums; }
.transcricao { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 13px; line-height: 1.38; opacity: .9; }
.transcricao b { font-weight: 600; opacity: .7; font-size: 11px; display: block; margin-bottom: 1px; }

.acoes-conversa {
  flex: none; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--superficie); border-top: 1px solid var(--linha);
}
.acoes-conversa .botao { flex: 1; }
.rever { display: flex; width: max-content; margin: 6px auto 0; }

/* ---------- Assistente ---------- */
.organizado {
  align-self: flex-start; width: 90%; background: var(--superficie); border-radius: 16px; border-bottom-left-radius: 6px;
  padding: 10px 10px 5px; box-shadow: 0 1px 1px rgba(14, 17, 22, .05); animation: surge .3s var(--suave) both;
}
.organizado .titulo { font-size: 14px; font-weight: 600; margin: 0 2px 8px; }
.org-item {
  display: grid; grid-template-columns: 30px 1fr; gap: 9px; align-items: start; width: 100%; padding: 9px; margin-bottom: 6px;
  border-radius: 11px; background: #F2F4F7; animation: surge .4s var(--suave) both; transition: transform .15s ease, background .15s ease;
}
.org-item:hover { transform: translateY(-1px); background: #ECEFF3; }
.org-item .caixa-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #fff; color: var(--tinta); box-shadow: 0 1px 2px rgba(14, 17, 22, .06); }
.org-item .caixa-ic .ic { width: 16px; height: 16px; }
.org-rotulo { display: block; font-size: 11.5px; font-weight: 600; color: var(--tinta-3); }
.org-texto { display: block; font-size: 13.5px; font-weight: 550; line-height: 1.32; margin-top: 1px; }
.organizado .fecho { font-size: 14px; margin: 4px 2px 0; }
.organizado time { display: block; text-align: right; font-size: 10.5px; color: var(--tinta-3); margin-top: 2px; }
.resumo-msg ul { list-style: none; margin-top: 6px; }
.resumo-msg li { position: relative; padding: 2px 0 2px 12px; font-size: 13.5px; line-height: 1.36; }
.resumo-msg li::before { content: '•'; position: absolute; left: 0; color: var(--tinta-3); }
.respostas { align-self: flex-end; display: flex; gap: 6px; margin: 6px 0 2px; animation: surge .3s var(--suave) both; }
.respostas button {
  height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--linha-forte); background: var(--superficie);
  font-size: 13px; font-weight: 600; transition: border-color .15s ease, transform .15s ease;
}
.respostas button:hover { border-color: var(--tinta); transform: translateY(-1px); }

.perguntas { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 6px; scrollbar-width: none; background: var(--app); }
.perguntas::-webkit-scrollbar { display: none; }
.perguntas button {
  flex: none; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--superficie); border: 1px solid var(--linha);
  font-size: 13px; font-weight: 600; color: var(--tinta-2); transition: border-color .15s ease, color .15s ease;
}
.perguntas button:hover { border-color: var(--linha-forte); color: var(--tinta); }
.gravador {
  flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) 18px;
  background: var(--superficie); border-top: 1px solid var(--linha);
}
.gravador .instrucao { flex: 1; font-size: 13.5px; color: var(--tinta-2); line-height: 1.3; }
.gravador .instrucao b { display: block; color: var(--tinta); font-weight: 600; }
.mic {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--tinta); color: #fff; transition: transform .15s ease, background .15s ease;
}
.mic:hover { transform: scale(1.05); }
.mic .ic { width: 24px; height: 24px; }
.mic.convite { animation: pulso-escuro 1.6s ease-out infinite; }
.mic:disabled { opacity: .5; cursor: default; animation: none; }
.gravando-agora { flex: 1; display: flex; align-items: center; gap: 10px; }
.gravando-agora .ponto { width: 9px; height: 9px; border-radius: 50%; background: var(--quente); animation: gravando 1s infinite; }
.gravando-agora .tempo { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ondas.vivas i { opacity: .8; background: var(--tinta); animation: onda .9s ease-in-out infinite; transform-origin: center; }

/* ---------- Aluguéis (fase 2) ---------- */
.receita { margin: 2px 14px 0; padding: 16px; border-radius: 20px; background: var(--superficie); box-shadow: var(--sombra-1); }
.receita .rotulo { font-size: 12.5px; color: var(--tinta-3); }
.receita .valor { margin-top: 4px; font-size: 28px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.receita .valor small { font-size: 14px; font-weight: 500; color: var(--tinta-3); letter-spacing: 0; }
.barra { height: 8px; border-radius: 999px; background: #EDF0F3; margin-top: 12px; overflow: hidden; }
.barra i { display: block; height: 100%; border-radius: 999px; background: var(--ok); }
.contagem { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.contagem strong { display: block; font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.contagem span { font-size: 12px; color: var(--tinta-2); }
.contagem .atraso strong { color: var(--quente-texto); }

.comprovante { display: grid; grid-template-columns: 92px 1fr; gap: 12px; width: 100%; padding: 12px; border-radius: var(--raio); background: var(--superficie); box-shadow: var(--sombra-1); transition: transform .15s ease; }
.comprovante:hover { transform: translateY(-1px); }
.mini-recibo { display: block; align-self: start; padding: 8px; border-radius: 8px; border: 1px solid var(--linha); background: #FBFCFD; }
.mini-recibo > span { display: block; }
.mini-recibo .r-topo { font-size: 9px; color: var(--tinta-3); }
.mini-recibo .r-valor { font-size: 12.5px; font-weight: 650; margin-top: 4px; font-variant-numeric: tabular-nums; }
.mini-recibo .r-linha { height: 4px; border-radius: 2px; background: #ECEFF3; margin-top: 5px; }
.comprovante .c-texto { display: block; }
.comprovante strong { display: block; font-size: 14px; font-weight: 600; }
.comprovante .c-sub { display: block; font-size: 12.5px; color: var(--tinta-2); margin-top: 2px; }
.comprovante .etiquetas { margin-top: 8px; }

.aluguel { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 14px; border-bottom: 1px solid var(--linha); }
.aluguel:last-child { border-bottom: 0; }
.aluguel strong { font-size: 14px; font-weight: 600; }
.aluguel .quem { font-size: 12.5px; color: var(--tinta-2); }
.aluguel .valor { font-size: 14px; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.aluguel .estado { grid-column: 2; justify-self: end; }
.aluguel .nota { grid-column: 1 / -1; font-size: 12px; color: var(--tinta-3); }
.aluguel.novo { animation: surge .45s var(--suave); background: #F3F6FA; }

/* Assinatura de quem fez o sistema (só aparece se o painel de licenças mandar mostrar) */
.assinatura { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.assinatura img { height: 26px; width: auto; }
.assinatura span { font-size: 12px; color: var(--tinta-3); }

/* ---------- Camadas: avisos curtos e gavetas ---------- */
.avisos {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90;
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; max-width: min(92vw, 440px); pointer-events: none;
}
.aviso {
  pointer-events: auto; display: block; padding: 10px 14px; border-radius: 12px; background: var(--tinta); color: #fff;
  font-size: 13.5px; line-height: 1.35; text-align: center; box-shadow: var(--sombra-2);
  opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease;
}
.aviso.visivel { opacity: 1; transform: none; }
a.aviso { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); }

.camada {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; background: rgba(14, 17, 22, .36);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s;
}
.camada.aberta { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.gaveta {
  width: 100%; max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; background: var(--superficie);
  border-radius: 24px 24px 0 0; padding: 10px 18px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .3s var(--suave);
}
.camada.aberta .gaveta { transform: none; }
.gaveta:focus { outline: none; }
.gaveta .alca { width: 38px; height: 5px; border-radius: 3px; background: var(--linha-forte); margin: 0 auto 14px; }
.gaveta h3 { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.gaveta .sub { font-size: 13px; color: var(--tinta-2); margin-top: 2px; }
.gaveta textarea {
  width: 100%; margin-top: 12px; min-height: 112px; padding: 12px; border-radius: 12px; border: 1px solid var(--linha-forte);
  font: inherit; font-size: 14.5px; line-height: 1.4; color: var(--tinta); resize: vertical; background: #FAFBFC;
}
.gaveta .acoes { display: flex; gap: 8px; margin-top: 12px; }
.gaveta .acoes .botao { flex: 1; }

/* ---------- Conversas ---------- */
.busca {
  display: flex; align-items: center; gap: 8px; height: 42px; margin: 0 16px 10px; padding: 0 12px;
  border-radius: 12px; background: var(--superficie); border: 1px solid var(--linha); color: var(--tinta-3); cursor: text;
}
.busca .ic { width: 18px; height: 18px; }
.busca input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 14.5px; color: var(--tinta); }
.lista-conversas { margin: 0 14px; }
.conversa-linha {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 11px; width: 100%; padding: 11px 14px 11px 12px;
  border-bottom: 1px solid var(--linha); transition: background .15s ease;
}
.conversa-linha:last-child { border-bottom: 0; }
.conversa-linha:hover { background: #F8F9FB; }
.avatar.com-ponto { position: relative; width: 44px; height: 44px; }
.ponto-temp { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid var(--superficie); }
.ponto-temp.quente { background: var(--quente); }
.ponto-temp.morno { background: var(--morno); }
.ponto-temp.frio { background: var(--frio); }
.cl-meio { display: block; min-width: 0; }
.cl-topo { display: flex; justify-content: space-between; gap: 8px; }
.cl-topo strong { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-topo time { flex: none; font-size: 12px; color: var(--tinta-3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.cl-previa { display: block; margin-top: 1px; font-size: 13.5px; color: var(--tinta-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-estado { display: block; margin-top: 3px; font-size: 12px; color: var(--tinta-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-origem { color: var(--tinta-2); }
.cl-estado b { font-weight: 600; }
.cl-estado.esperando b { color: var(--tinta); }
.cl-estado.esperando b::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--tinta); margin: 0 5px 1px 0; }
.cl-estado.voce b { color: var(--ok); }
.cl-temp { font-weight: 600; }
.cl-temp.quente { color: var(--quente-texto); }
.cl-temp.morno { color: var(--morno-texto); }
.cl-temp.frio { color: var(--frio-texto); }

/* Caixa de resposta da conversa */
.compositor { flex: none; padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); background: var(--superficie); border-top: 1px solid var(--linha); }
.faixa-atendimento { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px 8px; font-size: 12.5px; color: var(--tinta-2); }
.faixa-atendimento > span { display: inline-flex; align-items: center; gap: 6px; line-height: 1.3; }
.faixa-atendimento .ic { width: 15px; height: 15px; }
.faixa-atendimento.voce { color: var(--tinta); }
.faixa-atendimento.voce .ic { color: var(--ok); }
.faixa-atendimento button {
  flex: none; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--linha-forte);
  font-size: 12.5px; font-weight: 600; transition: border-color .15s ease;
}
.faixa-atendimento button:hover { border-color: var(--tinta); }
.sugestao {
  display: block; width: 100%; margin-bottom: 8px; padding: 9px 11px; border-radius: 12px;
  background: #F2F4F7; border: 1px dashed var(--linha-forte); transition: background .15s ease, border-color .15s ease; animation: surge .35s var(--suave);
}
.sugestao:hover { background: #ECEFF3; border-color: var(--tinta-3); }
.sugestao .s-rot { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--tinta-3); }
.sugestao .s-rot .ic { width: 13px; height: 13px; }
.sugestao .s-texto { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; font-size: 13.5px; line-height: 1.35; color: var(--tinta); }
.campo-msg { display: flex; align-items: flex-end; gap: 6px; }
.campo-msg .icone-botao { width: 40px; height: 40px; }
.campo-msg textarea {
  flex: 1; min-width: 0; height: 40px; max-height: 120px; padding: 9px 14px; border-radius: 20px; border: 1px solid var(--linha-forte);
  background: #FAFBFC; font: inherit; font-size: 14.5px; line-height: 1.35; resize: none; color: var(--tinta); overflow-y: auto;
}
.enviar-msg { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--tinta); color: #fff; transition: transform .15s ease; }
.enviar-msg:hover { transform: scale(1.05); }
.enviar-msg .ic { width: 18px; height: 18px; }

/* ---------- Imóveis ---------- */
.segmentos { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 16px 4px; padding: 4px; border-radius: 12px; background: #E6E9ED; }
.segmento { height: 36px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--tinta-2); text-align: center; transition: background .15s ease, color .15s ease; }
.segmento span { margin-left: 5px; font-size: 12px; color: var(--tinta-3); font-variant-numeric: tabular-nums; }
.segmento.ativo { background: var(--superficie); color: var(--tinta); box-shadow: 0 1px 3px rgba(14, 17, 22, .1); }
.lista-imoveis { display: flex; flex-direction: column; gap: 10px; }
.imovel { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: var(--raio); background: var(--superficie); box-shadow: var(--sombra-1); }
.imovel.novo { animation: surge .45s var(--suave); box-shadow: 0 0 0 2px var(--tinta), var(--sombra-1); }
.im-foto { display: block; width: 96px; height: 96px; border-radius: 11px; overflow: hidden; background: linear-gradient(160deg, #DFE3E9, #BEC6D0); }
.im-foto img { width: 100%; height: 100%; object-fit: cover; }
.sem-foto { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; color: #fff; }
.sem-foto .ic { width: 24px; height: 24px; }
.sem-foto em { font-style: normal; font-size: 11px; font-weight: 600; }
.im-texto { display: block; min-width: 0; }
.im-titulo { display: block; font-size: 14.5px; font-weight: 650; line-height: 1.25; }
.im-bairro { display: block; margin-top: 2px; font-size: 12.5px; color: var(--tinta-2); line-height: 1.3; }
.im-valor { display: block; margin-top: 4px; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.im-pe { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.im-interessados { font-size: 12.5px; font-weight: 600; color: var(--tinta); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--linha-forte); }
.im-interessados:hover { text-decoration-color: var(--tinta); }
.im-sem, .im-rascunho { font-size: 12px; color: var(--tinta-3); }
.im-rascunho { font-weight: 600; color: var(--morno-texto); }
.nota-imoveis { margin: 12px 6px 0; font-size: 12.5px; color: var(--tinta-3); }

/* Interruptor (ligado = verde) */
.interruptor { position: relative; flex: none; width: 32px; height: 19px; border-radius: 999px; background: var(--linha-forte); transition: background .2s ease; }
.interruptor::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(14, 17, 22, .25); transition: transform .2s ease;
}
.ligada .interruptor { background: var(--ok); }
.ligada .interruptor::after { transform: translateX(13px); }
.chave-oferta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--tinta-3); white-space: nowrap; }
.chave-oferta.ligada { color: var(--ok); }

/* Cartões de imóvel, canais dos anúncios e a ficha (componentes do painel que servem nas duas telas) */
.p-anuncios {
  display: grid; gap: 16px; padding: 18px 20px; border-radius: 18px; background: var(--superficie); box-shadow: var(--sombra-1);
}
.p-anuncios-texto h2 { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.p-anuncios-texto p { margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--tinta-2); text-wrap: pretty; }
.p-canais { display: grid; gap: 8px; }
.p-canal { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #F4F6F8; }
.p-canal.imob { background: transparent; border: 1px dashed var(--linha-forte); }
.p-canal-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--superficie); box-shadow: 0 1px 2px rgba(14, 17, 22, .08); }
.p-canal-ic .ic { width: 17px; height: 17px; }
.p-canal b { display: block; font-size: 13.5px; font-weight: 650; }
.p-canal > span > span { display: block; font-size: 12.5px; color: var(--tinta-2); }
.p-grade-imoveis { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 16px; }
.p-imovel {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--superficie);
  box-shadow: var(--sombra-1); transition: transform .15s ease, box-shadow .15s ease;
}
.p-imovel:hover { transform: translateY(-2px); box-shadow: var(--sombra-2); }
.p-imovel.novo { animation: surge .45s var(--suave); box-shadow: 0 0 0 2px var(--tinta), var(--sombra-1); }
.pi-foto { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(160deg, #DFE3E9, #BEC6D0); }
.pi-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } /* foto em pé não estica o cartão */
.pi-foto .sem-foto .ic { width: 30px; height: 30px; }
.pi-selo {
  position: absolute; left: 10px; top: 10px; height: 24px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center;
  font-style: normal; font-size: 11.5px; font-weight: 650; background: rgba(255, 255, 255, .92); color: var(--tinta);
}
.pi-corpo { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; }
.p-imovel .im-titulo { font-size: 15px; }
.pi-anuncios { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pi-colar {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px;
  border: 1px dashed var(--linha-forte); font-size: 12px; font-weight: 600; color: var(--tinta-2); transition: border-color .15s ease, color .15s ease;
}
.pi-colar .ic { width: 13px; height: 13px; }
.pi-colar:hover { border-color: var(--tinta); color: var(--tinta); }
.p-imovel .im-pe { margin-top: auto; padding-top: 12px; }
.p-voltar {
  display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px 0 8px; border-radius: 999px;
  border: 1px solid var(--linha-forte); font-size: 13px; font-weight: 600; color: var(--tinta-2); transition: border-color .15s ease, color .15s ease;
}
.p-voltar .ic { width: 16px; height: 16px; }
.p-voltar:hover { border-color: var(--tinta); color: var(--tinta); }
.p-ficha-bloco { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--linha); }
.p-ficha-bloco h3 { margin-bottom: 8px; font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-3); }
.p-ficha-bloco > p { font-size: 13.5px; line-height: 1.45; color: var(--tinta-2); }
.p-etapa {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border-radius: 10px; background: #F4F6F8;
  font-size: 13.5px; font-weight: 600; transition: background .15s ease;
}
.p-etapa:hover { background: #ECEFF3; }
.p-etapa > .ic { width: 16px; height: 16px; margin-left: auto; color: var(--tinta-3); }
.p-ag { display: grid; gap: 1px; padding: 7px 0; border-bottom: 1px solid var(--linha); font-size: 13.5px; }
.p-ag:last-child { border-bottom: 0; }
.p-ag time { font-size: 12px; font-weight: 650; color: var(--tinta-3); font-variant-numeric: tabular-nums; }
.p-ag.novo span { font-weight: 600; }
.p-mini {
  display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; width: 100%; padding: 6px; margin-bottom: 6px;
  border-radius: 12px; transition: background .15s ease;
}
.p-mini:hover { background: #F4F6F8; }
.p-mini-foto { display: block; width: 56px; height: 56px; border-radius: 9px; overflow: hidden; background: linear-gradient(160deg, #DFE3E9, #BEC6D0); }
.p-mini-foto img { width: 100%; height: 100%; object-fit: cover; }
.p-mini-foto .sem-foto .ic { width: 20px; height: 20px; }
.p-mini b { display: block; font-size: 13.5px; font-weight: 650; line-height: 1.25; }
.p-mini > span > span { display: block; font-size: 12.5px; color: var(--tinta-2); }
.p-mini em { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--tinta-3); }
.p-mini em .ic { width: 12px; height: 12px; }
.p-tabela {
  width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 14px;
  background: var(--superficie); border-radius: var(--raio); box-shadow: var(--sombra-1);
}
.p-tabela th {
  padding: 10px 14px; text-align: left; font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: var(--tinta-3); background: #FAFBFC; border-bottom: 1px solid var(--linha);
}
.p-tabela td { padding: 11px 14px; border-bottom: 1px solid var(--linha); vertical-align: top; }
.p-tabela tbody tr:last-child td { border-bottom: 0; }
.p-tabela td strong { font-weight: 600; }
.p-tabela .valor { text-align: right; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.p-tabela .nota { display: block; margin-top: 4px; font-size: 12px; color: var(--tinta-3); }
.p-tabela tfoot td { border-top: 1px solid var(--linha); border-bottom: 0; font-size: 13px; color: var(--tinta-3); background: #FAFBFC; }
.p-tabela tbody tr { transition: background .15s ease; }
.p-tabela tbody tr:hover td { background: #F8F9FB; }
.p-al.novo td { background: #F3F6FA; animation: surge .45s var(--suave); }

/* ---------- Adicionar e formulários ---------- */
.add-rapido {
  display: grid; grid-template-columns: 22px 1fr 18px; gap: 12px; align-items: center; width: 100%; margin-top: 14px;
  padding: 12px 14px; border-radius: 14px; background: var(--tinta); color: #fff; transition: transform .15s ease;
}
.add-rapido:hover { transform: translateY(-1px); }
.add-rapido b { display: block; font-size: 14px; font-weight: 600; }
.add-rapido > span > span { display: block; margin-top: 1px; font-size: 12px; color: rgba(255, 255, 255, .65); }
.add-lista { margin-top: 6px; }
.add-item { display: grid; grid-template-columns: 36px 1fr 18px; gap: 12px; align-items: center; width: 100%; padding: 11px 2px; border-bottom: 1px solid var(--linha); transition: background .15s ease; }
.add-item:last-child { border-bottom: 0; }
.add-item:hover { background: #F8F9FB; }
.add-item .caixa-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #EEF1F4; }
.add-item .caixa-ic .ic { width: 18px; height: 18px; }
.add-item b { display: block; font-size: 14.5px; font-weight: 600; }
.add-item > span > span { display: block; font-size: 12.5px; color: var(--tinta-2); }
.add-item > .ic:last-child, .add-rapido > .ic:last-child { width: 18px; height: 18px; color: var(--tinta-3); }
.add-rapido > .ic:last-child { color: rgba(255, 255, 255, .6); }
.form-topo { display: flex; align-items: center; gap: 4px; margin-left: -8px; }
.form { max-height: min(62vh, 540px); overflow-y: auto; margin-top: 6px; padding-right: 2px; scrollbar-width: thin; }
.campo { display: block; padding: 7px 0; }
.campo .rotulo { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 600; color: var(--tinta-3); }
.campo input, .campo textarea, .campo select {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--linha-forte); background: #FAFBFC;
  font: inherit; font-size: 14.5px; color: var(--tinta); resize: none; transition: border-color .15s ease, background .15s ease;
}
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: none; border-color: var(--tinta); background: #fff; }
.campo textarea { line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--linha-forte); background: var(--superficie);
  font-size: 13px; font-weight: 600; color: var(--tinta-2); transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--tinta); }
.chip.ativo { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.fotos-form { display: flex; gap: 6px; }
.foto-add {
  width: 62px; height: 62px; border-radius: 10px; border: 1.5px dashed var(--linha-forte); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; color: var(--tinta-3);
}
.foto-add .ic { width: 20px; height: 20px; }
.foto-add em { font-style: normal; font-size: 10.5px; font-weight: 600; }
.foto-mini { width: 62px; height: 62px; border-radius: 10px; background: linear-gradient(160deg, #D3D8DF, #A9B2BE); }
.campo-chave { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 0; font-size: 14px; font-weight: 500; text-align: left; }

/* ---------- Entrada ---------- */
.entrada-caixa {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center;
  width: 100%; max-width: 420px; margin: 0 auto; padding: calc(32px + env(safe-area-inset-top)) 20px calc(32px + env(safe-area-inset-bottom));
}
.entrada-marca { padding: 0 6px 18px; }
.entrada-cartao { padding: 22px 20px 20px; border-radius: 20px; background: var(--superficie); box-shadow: var(--sombra-1); }
.entrada-cartao h1 { font-size: 26px; line-height: 1.1; letter-spacing: -.024em; font-weight: 650; }
.entrada-cartao .sub { margin: 4px 0 6px; font-size: 13.5px; color: var(--tinta-2); text-wrap: pretty; }
.entrada-erro {
  display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 4px; padding: 10px 12px; border-radius: 12px;
  background: var(--quente-fundo); color: var(--quente-texto); font-size: 13.5px; line-height: 1.35;
}
.entrada-erro.neutro { background: #E9EEF5; color: #3D4C63; }
.entrada-erro .ic { width: 16px; height: 16px; margin-top: 1px; }
.campo-senha { position: relative; display: block; }
.campo-senha input { padding-right: 46px; }
.campo-senha .icone-botao { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; }
.lembrar { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--tinta-2); cursor: pointer; }
.lembrar input { width: 18px; height: 18px; flex: none; accent-color: var(--tinta); }
.entrada-cartao .largo { margin-top: 18px; font-size: 15px; }
.entrada-nota { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--tinta-3); }

/* No celular, campo com fonte menor que 16 px faz o iPhone aproximar a tela ao tocar. */
@media (max-width: 999px) {
  .campo input, .campo textarea, .campo select, .gaveta textarea, .campo-msg textarea, .busca input { font-size: 16px; }
}

/* ---------- Conversas: as telas (lista, conversa e ficha) ---------- */
/* Celular: uma tela de cada vez. A lista abre em /conversas, a conversa ocupa a tela toda (sem as abas) e a ficha abre por cima. */
.modo-lista .p-chat, .modo-lista .p-ficha { display: none; }
.modo-conversa .p-lista { display: none; }
.p-lista .lista-conversas { margin: 0 14px; background: var(--superficie); border-radius: var(--raio); box-shadow: var(--sombra-1); overflow: hidden; }
.p-lista .busca { margin-top: 0; }
.p-lista .filtro { text-decoration: none; }
body.tela-conversa .abas, body.tela-conversa .fab { display: none; }
body.tela-conversa .p-main { padding-bottom: 0; }
.p-conversas.modo-conversa { display: flex; flex-direction: column; height: calc(100vh - var(--faixas, 0px)); height: calc(100dvh - var(--faixas, 0px)); }
.p-chat { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
.p-chat .conversa-topo .quem-e { color: inherit; }
.p-chat .app-corpo { background: var(--app); }
.p-chat .icone-botao[href] { color: var(--tinta-2); }
.so-celular { display: grid; }
.resumo-conversa {
  flex: none; display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 14px 9px 16px;
  background: var(--superficie); border-bottom: 1px solid var(--linha); text-align: left;
}
.resumo-conversa .rc-linha { display: flex; flex: 1; min-width: 0; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.resumo-conversa .etiquetas { margin-top: 0; }
.resumo-conversa .rc-etapa { font-size: 12.5px; font-weight: 600; color: var(--tinta-2); }
.resumo-conversa > .ic { width: 16px; height: 16px; color: var(--tinta-3); }
.bolha .player { display: block; width: 230px; max-width: 100%; height: 38px; margin-bottom: 4px; }
.bolha .video { display: block; width: 230px; max-width: 100%; max-height: 260px; border-radius: 10px; margin-bottom: 4px; background: #000; }
.bolha .sem-midia { font-size: 12.5px; color: var(--tinta-3); margin-bottom: 4px; }
.bolha a.midia { display: block; }
.bolha a.arquivo { color: inherit; }
.bolha.cliente .transcricao, .bolha.assistente .transcricao { border-top-color: var(--linha-forte); }
.bolha .falha { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 600; color: var(--quente-texto); }
.bolha.corretor .falha { color: #FFB4B7; }
.nota-sistema .ic { flex: none; }
#atendimento .faixa-atendimento { padding: 9px 14px; background: var(--superficie); border-top: 1px solid var(--linha); }
#atendimento + .compositor { padding-top: 8px; border-top: 0; }
.mensagens .separador-dia { text-transform: none; }
.faixa-atendimento form { flex: none; }
.faixa-atendimento button { background: var(--superficie); }
.compositor { position: relative; }
.compositor .sugestao { text-align: left; }
.compositor .icone-botao { cursor: pointer; }
.compositor .icone-botao .ic { width: 20px; height: 20px; }
.anexo-escolhido { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 7px 12px; border-radius: 10px; background: #F2F4F7; font-size: 13px; color: var(--tinta-2); }
.anexo-escolhido[hidden] { display: none; }
.anexo-escolhido .ic { width: 16px; height: 16px; }
.anexo-escolhido span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anexo-escolhido button { font-size: 12.5px; font-weight: 600; color: var(--tinta-2); }
.anexo-escolhido button:hover { color: var(--quente-texto); }
.erro-envio { margin: 8px 6px 0; font-size: 12.5px; color: var(--quente-texto); }
.chat-vazio { flex: 1; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 40px 24px; text-align: center; color: var(--tinta-3); }
.chat-vazio .ic { width: 30px; height: 30px; }
.chat-vazio p { font-weight: 650; color: var(--tinta-2); }
.chat-vazio span { font-size: 13px; }

/* A ficha: no celular é uma tela por cima, aberta pelo botão do topo da conversa */
.p-ficha { padding: 0 18px 28px; background: var(--superficie); }
.p-ficha-topo { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -18px 6px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px 18px; background: var(--superficie); border-bottom: 1px solid var(--linha); }
.p-ficha-topo strong { font-size: 16px; font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tela-conversa .p-ficha { display: none; }
body.tela-conversa.ficha-aberta .p-ficha { display: block; position: fixed; inset: 0; z-index: 70; overflow-y: auto; overscroll-behavior: contain; }
.p-ficha .leitura { position: static; margin: 12px 0 0; padding: 0; background: none; box-shadow: none; }
.p-ficha .leitura::before { display: none; }
.p-ficha .leitura .motivos { display: block; }
.p-ficha .leitura-alternar { display: none; }
.leitura-hora { font-size: 12px; color: var(--tinta-3); }
.leitura-vazio { margin-top: 10px; font-size: 13px; color: var(--tinta-3); }
.ficha-aviso { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; padding: 10px 12px; border-radius: 12px; background: #F4F6F8; font-size: 13px; line-height: 1.4; color: var(--tinta-2); }
.ficha-aviso .ic { width: 16px; height: 16px; margin-top: 1px; }
.triagem { display: grid; gap: 0; }
.triagem div { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; border-bottom: 1px solid var(--linha); font-size: 13.5px; }
.triagem div:last-child { border-bottom: 0; }
.triagem dt { color: var(--tinta-3); }
.triagem dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.etapa-lista { display: grid; gap: 4px; }
.etapa-opcao {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 6px 10px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--tinta-2); background: #F4F6F8; transition: background .15s ease, color .15s ease;
}
.etapa-opcao:hover { background: #ECEFF3; color: var(--tinta); }
.etapa-opcao.ativa { background: var(--tinta); color: #fff; }
.etapa-opcao .etapa-num { flex: none; }
.etapa-opcao:disabled { opacity: .6; cursor: default; }
.p-mini-foto .sem-foto { width: 100%; }
a.p-mini { color: inherit; }
.ficha-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.ficha-acoes .botao { height: 36px; font-size: 13px; }
.ficha-nota { margin-top: 10px; font-size: 12.5px; line-height: 1.4; color: var(--tinta-3); }

/* ---------- Computador: a lateral do painel e o corpo rolando ao lado ---------- */
@media (min-width: 1000px) {
  body { overflow: hidden; }
  .p-app { display: grid; grid-template-columns: var(--lado) minmax(0, 1fr); height: 100vh; height: 100dvh; min-height: 0; }
  .p-lado {
    display: flex; flex-direction: column; gap: 4px; min-height: 0; overflow-y: auto; scrollbar-width: thin;
    padding: 18px 14px 14px; background: var(--superficie); border-right: 1px solid var(--linha);
  }
  .p-lado > * { flex-shrink: 0; } /* com o menu de admin aberto a lateral rola, nada se espreme */
  .p-main { display: flex; flex-direction: column; min-height: 0; padding-bottom: 0; }
  .faixas { position: static; flex: none; }
  .faixa { padding: 10px 28px; }
  .p-topo { flex: none; flex-wrap: wrap; gap: 18px 24px; padding: 22px 28px 16px; }
  .p-topo h1 { font-size: 28px; line-height: 1.08; }
  .p-topo-extra .filtros { padding: 0; flex-wrap: wrap; overflow: visible; }
  .p-topo-extra .segmentos { margin: 0; width: 300px; }
  .p-corpo { flex: 1; min-height: 0; overflow-y: auto; padding: 0 28px 32px; scrollbar-width: thin; }
  .abas, .fab, .monograma { display: none; }

  /* Avisos curtos em cima, no meio da área principal; janelas no meio da tela */
  .avisos { top: calc(18px + var(--faixas, 0px)); bottom: auto; left: calc(50% + var(--lado) / 2); }
  .aviso { transform: translateY(-12px); }
  .aviso.visivel { transform: none; }
  .camada { align-items: center; justify-content: center; padding: 24px; }
  .gaveta {
    width: 540px; max-width: 100%; max-height: calc(100vh - 48px); border-radius: 20px; padding: 22px 24px 24px;
    transform: translateY(14px) scale(.98); opacity: 0; transition: transform .25s var(--suave), opacity .2s ease; box-shadow: var(--sombra-2);
  }
  .camada.aberta .gaveta { transform: none; opacity: 1; }
  .gaveta .alca { display: none; }
  .gaveta .form { max-height: none; overflow: visible; }

  /* Seções dentro do corpo do painel: a margem já vem do corpo */
  .p-largura { max-width: 760px; }
  .p-largura .secao { padding: 0; }
  .p-largura .secao:first-child { margin-top: 0; }
  .passo-a-passo { grid-template-columns: 1fr 1fr; }

  /* Hoje: o resumo à esquerda, a agenda e de onde vieram à direita */
  .p-hoje { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; max-width: 1280px; }
  .p-col { gap: 22px; }
  .p-col .resumo-noite, .p-col .receita { margin: 0; }
  .p-col .secao { margin: 0; padding: 0; }
  .p-col .secao-cab { padding: 0 4px 8px; }
  .resumo-noite .frase { font-size: 21px; }

  /* Conversas: lista | conversa | ficha */
  .p-conversas { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr) 330px; }
  .p-lista { display: flex; flex-direction: column; min-height: 0; background: var(--superficie); border-right: 1px solid var(--linha); }
  .p-lista .p-topo { padding: 22px 18px 12px; }
  .p-lista .busca { margin: 0 16px 10px; background: #F4F5F7; border-color: transparent; }
  .p-lista .busca:focus-within { border-color: var(--linha-forte); background: var(--superficie); }
  .p-lista .filtros { flex-wrap: wrap; overflow: visible; padding: 0 16px 12px; }
  .p-lista .filtro { height: 30px; padding: 0 10px; font-size: 12.5px; }
  .p-lista .lista-conversas { flex: 1; min-height: 0; overflow-y: auto; margin: 0; border-top: 1px solid var(--linha); scrollbar-width: thin; }
  .conversa-linha.ativa { background: #EEF1F5; box-shadow: inset 3px 0 0 var(--tinta); }
  .conversa-linha.ativa:hover { background: #EAEEF3; }
  .p-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--app); }
  .p-chat .conversa-topo { padding: 12px 16px 12px 22px; gap: 12px; }
  .p-chat .conversa-topo .quem-e strong { font-size: 16px; }
  .p-chat .app-corpo { scrollbar-width: thin; }
  .p-chat .mensagens { padding: 14px clamp(18px, 5%, 64px) 22px; }
  .p-chat .bolha { max-width: min(68%, 560px); }
  .p-chat .organizado { max-width: 560px; }
  .p-chat .compositor { padding: 10px 18px 16px; }
  .p-chat #atendimento .faixa-atendimento { padding: 9px 18px; }
  .p-ficha { min-height: 0; overflow-y: auto; padding: 18px 18px 28px; background: var(--superficie); border-left: 1px solid var(--linha); scrollbar-width: thin; }
  .p-ficha .leitura { position: static; margin: 0; padding: 0; background: none; box-shadow: none; }
  .p-ficha .leitura::before { display: none; }
  .p-ficha .leitura .motivos { display: block; }
  .p-ficha .leitura.ao-vivo .motivos { display: none; }
  .p-ficha .leitura-alternar { display: none; }
  .modo-lista .p-chat, .modo-lista .p-ficha { display: flex; }
  .modo-lista .p-ficha { display: block; }
  .modo-conversa .p-lista { display: flex; }
  .p-conversas.modo-conversa { display: grid; height: auto; }
  .so-celular, .p-chat .voltar { display: none; }
  body.tela-conversa .p-ficha, body.tela-conversa.ficha-aberta .p-ficha { display: block; position: static; z-index: auto; }
  .p-ficha { padding: 18px 18px 28px; }
  .p-ficha .leitura { margin: 0; }

  /* Pipeline: as colunas lado a lado, cada uma rolando */
  .etapas { display: none; }
  .p-quadro-filtros { padding: 0 28px 14px; flex-wrap: wrap; overflow: visible; }
  .p-quadro { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 22px; }
  .p-quadro .pipeline { flex: 1; min-height: 0; margin: 0; display: flex; flex-direction: column; }
  .p-quadro .colunas { flex: 1; min-height: 0; overflow-x: auto; scroll-snap-type: none; scrollbar-width: thin; }
  .p-quadro .coluna { flex: 1 0 222px; max-width: 330px; min-height: 0; }
  .p-quadro .coluna-cab { flex: none; min-height: 106px; } /* mesma altura em todas: os cartões começam na mesma linha */
  .p-quadro .coluna-corpo { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding-top: 12px; }
  .p-quadro .cartao:hover { transform: none; box-shadow: 0 0 0 1px var(--linha-forte), var(--sombra-2); }

  /* Assistente: a conversa de teste no meio e o que ela já sabe ao lado */
  .p-assist { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
  .p-assist-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
  .p-assist-chat .p-topo { padding-bottom: 8px; }
  .p-assist-chat .app-corpo { scrollbar-width: thin; }
  .p-assist-chat .mensagens { width: 100%; max-width: 780px; margin: 0 auto; padding: 8px 28px 22px; }
  .p-assist-chat .organizado { max-width: 560px; }
  .p-assist-chat .perguntas { justify-content: center; flex-wrap: wrap; padding: 10px 28px 8px; }
  .p-assist-chat .gravador { padding: 14px max(28px, calc((100% - 780px) / 2 + 28px)) 18px; }
  .p-assist-lado {
    display: flex; flex-direction: column; gap: 20px; min-height: 0; overflow-y: auto; scrollbar-width: thin;
    padding: 22px 18px 28px; background: var(--superficie); border-left: 1px solid var(--linha);
  }
  .p-assist-lado .secao-cab { padding: 0 4px 8px; }
  .p-assist-lado .agenda, .p-assist-lado .lista { background: #F7F8FA; box-shadow: none; border: 1px solid var(--linha); }
  .p-assist-lado .compromisso.novo { background: #EEF2F7; }

  /* Imóveis */
  .p-anuncios { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; gap: 18px 24px; align-items: center; max-width: 1280px; margin-bottom: 22px; }
  .p-grade-imoveis { max-width: 1280px; }
  .nota-imoveis { max-width: 1280px; margin: 16px 4px 0; }

  /* Aluguéis (fase 2) */
  .p-alug { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 24px; align-items: start; max-width: 1320px; }
}

/* Telas médias (notebook de 1280 a 1440) */
@media (min-width: 1000px) and (max-width: 1440px) {
  .p-conversas { grid-template-columns: 310px minmax(0, 1fr) 300px; }
  .p-assist { grid-template-columns: minmax(0, 1fr) 310px; }
}
@media (min-width: 1000px) and (max-width: 1280px) {
  :root { --lado: 212px; }
  .p-conversas { grid-template-columns: 290px minmax(0, 1fr) 280px; }
  .p-anuncios { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .p-anuncios > .botao { grid-column: 1 / -1; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Imóveis, Adicionar e Assistente (Tarefa 13) ---------- */
.oculto { display: none !important; }
.sr-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }

/* Chips de escolha e interruptores dos formulários: caixas de rádio e de seleção com a cara da demonstração */
label.chip { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.chip input, .campo-chave input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.chip:has(input:focus-visible), .campo-chave:has(input:focus-visible) { outline: 2px solid var(--tinta); outline-offset: 2px; }
.campo-chave { cursor: pointer; }
.campo-chave:has(input:checked) .interruptor { background: var(--ok); }
.campo-chave:has(input:checked) .interruptor::after { transform: translateX(13px); }
.gaveta .form-topo + .sub { margin: 4px 0 4px 0; }
.campo-msg ~ .erro-envio { margin-top: 6px; }

/* Imóveis: abas, cabeça da lista e o cartão */
a.segmento { display: flex; align-items: center; justify-content: center; }
.p-imoveis-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 12px; }
.p-imoveis-cab h2 { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.p-imoveis-cab .botao { height: 36px; font-size: 13.5px; }
.tela-imoveis .p-grade-imoveis { align-items: stretch; }
a.origem[href] { transition: background .15s ease; }
a.origem[href]:hover { background: #E1E4EA; }
a.origem.imob[href]:hover { background: #F4F6F8; }
a.im-interessados { display: inline-block; }
.pi-editar { align-self: flex-start; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--tinta-3); }
.pi-editar:hover { color: var(--tinta); }
.chave-oferta .interruptor { margin-right: 0; }
.chave-oferta:disabled { opacity: .6; cursor: default; }

/* Formulário do imóvel */
.imovel-form { display: grid; gap: 14px; }
.cartao-form { padding: 16px 16px 12px; border-radius: 18px; background: var(--superficie); box-shadow: var(--sombra-1); }
.cartao-form h2 { font-size: 15px; font-weight: 650; letter-spacing: -.01em; margin-bottom: 4px; }
.cartao-form .dica { font-size: 13px; line-height: 1.4; color: var(--tinta-2); }
.cartao-form .campo-chave { border-top: 1px solid var(--linha); }
.cartao-form .campo-chave:first-of-type { border-top: 0; }
.cartao-form .erro-campo, .imovel-form .erro-campo { margin-top: 8px; font-size: 12.5px; color: var(--quente-texto); }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 10px; }
.foto-botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.foto-opcao {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 10px; border-radius: 14px;
  border: 1.5px dashed var(--linha-forte); text-align: center; cursor: pointer; color: var(--tinta-2); transition: border-color .15s ease, background .15s ease;
}
.foto-opcao:hover, .foto-opcao:has(input:focus-visible) { border-color: var(--tinta); background: #F8F9FB; }
.foto-opcao .ic { width: 26px; height: 26px; margin-bottom: 4px; color: var(--tinta); }
.foto-opcao b { font-size: 14px; font-weight: 650; color: var(--tinta); }
.foto-opcao span { font-size: 12px; color: var(--tinta-3); }
.cartao-form .escolhidas { margin-top: 10px; font-weight: 600; color: var(--ok); }
.previas, .fotos-atuais { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin-top: 10px; }
.previas img, .fotos-atuais img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #DDE2E8; }
.fotos-atuais { margin-bottom: 4px; }
.fotos-atuais figure { position: relative; }
.foto-tirar {
  position: absolute; right: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(14, 17, 22, .72); color: #fff; transition: background .15s ease;
}
.foto-tirar:hover { background: var(--quente); }
.foto-tirar .ic { width: 14px; height: 14px; }
.form-rodape { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.form-rodape .botao.primario { min-width: 170px; }
.apagar-imovel { margin-top: 18px; }
.botao.perigo { color: var(--quente-texto); }
.botao.perigo:hover { color: var(--quente); }

/* Assistente: teste e regras */
.teste-intro {
  align-self: center; display: flex; gap: 10px; max-width: 460px; margin: 18px 0; padding: 12px 14px; border-radius: 14px;
  background: #F4F6F8; font-size: 13.5px; line-height: 1.45; color: var(--tinta-2);
}
.teste-intro .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--tinta-3); }
.teste-form { flex: none; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); background: var(--superficie); border-top: 1px solid var(--linha); }
.teste-aviso { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12.5px; color: var(--quente-texto); }
.teste-aviso .ic { width: 15px; height: 15px; }
.teste-form textarea:disabled { opacity: .6; }
.teste-corpo .nota-sistema { text-align: center; }
.regras .regra { display: grid; gap: 8px; padding: 13px 14px; border-bottom: 1px solid var(--linha); }
.regras .regra:last-child { border-bottom: 0; }
.regra.desligada .regra-texto > .item-nome, .regra.desligada .regra-texto > .item-linha { opacity: .55; }
.regra-texto { display: block; min-width: 0; }
.regra-texto .item-linha { white-space: pre-line; overflow-wrap: anywhere; }
.regra-texto .pilula { margin-top: 6px; }
.regra-acoes { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.regra-acoes form { display: inline; }
.regra-botao { font-size: 12.5px; font-weight: 600; color: var(--tinta-2); padding: 2px 0; }
.regra-botao:hover { color: var(--tinta); text-decoration: underline; text-underline-offset: 2px; }
.regra-botao.perigo:hover { color: var(--quente-texto); }
.regra-edicao { padding-top: 6px; border-top: 1px dashed var(--linha-forte); }
.regra-edicao textarea { min-height: 96px; }
.regra-edicao-acoes { display: flex; gap: 8px; margin-top: 6px; }
.regra-edicao-acoes .botao { height: 36px; }
.regras-aviso {
  display: flex; align-items: flex-start; gap: 8px; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px;
  background: var(--morno-fundo); color: var(--morno-texto); font-size: 13px; line-height: 1.4;
}
.regras-aviso .ic { width: 16px; height: 16px; margin-top: 1px; }
.p-assist-lado .nota-imoveis { margin: 12px 4px 0; }

@media (max-width: 999px) {
  .tela-imoveis .p-corpo, .tela-imovel-form .p-corpo { padding: 0 14px; }
  .tela-imoveis .p-topo { flex-wrap: wrap; }
  .tela-imoveis .p-topo-extra { order: 3; flex: 0 0 100%; }
  .tela-imoveis .p-topo-extra .segmentos { margin: 4px 0 0; }
  .oculto-celular { display: none; }
  .tela-imoveis .p-imoveis-cab { justify-content: flex-end; margin-top: 14px; }
  .p-assist-chat .teste-corpo { flex: none; height: min(52vh, 440px); background: var(--app); border-radius: 18px; margin: 0 14px; }
  .p-assist-chat .perguntas { margin: 0 14px; padding-left: 0; padding-right: 0; }
  .p-assist-chat .teste-form { margin: 0 14px; border-radius: 0 0 18px 18px; border: 1px solid var(--linha); }
  .p-assist-lado { padding: 22px 14px 0; }
  .tela-assistente .p-main { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  .tela-adicionar .p-corpo { padding: 0; }
  .tela-adicionar .p-largura .secao { padding: 0 14px; }
}
@media (min-width: 1000px) {
  .p-assist-chat .teste-corpo { background: var(--app); }
  .p-assist-chat .perguntas { padding-left: 28px; padding-right: 28px; }
  .teste-form { padding: 12px max(28px, calc((100% - 780px) / 2 + 28px)) 18px; }
  .tela-imoveis .p-imoveis-cab { max-width: 1280px; }
  .p-largura .p-imoveis-cab { margin-top: 0; }
  .tela-imovel-form .p-largura { max-width: 680px; }
  .tela-imovel-form .p-topo { align-items: flex-end; }
  .p-assist-lado .regras { background: #F7F8FA; box-shadow: none; border: 1px solid var(--linha); }
  .tela-adicionar .lista { max-width: 560px; }
}

/* ---------- Configurações, WhatsApp, IA, Consumo, Usuários, Suspensão e Sobre ---------- */
.cfg-form { display: grid; gap: 14px; }
.cfg-form .entrada-erro { margin: 0; }
.cfg-form .cartao-form + .cartao-form { margin-top: 0; }
.cfg-perfil { display: flex; align-items: center; gap: 14px; margin: 12px 0 4px; }
.cfg-foto { width: 72px; height: 72px; flex: none; border-radius: 50%; object-fit: cover; background: #E6E9ED; }
.cfg-foto.sem { display: grid; place-items: center; color: var(--tinta-3); }
.cfg-foto.sem .ic { width: 30px; height: 30px; }
.cfg-perfil-acoes { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cfg-perfil-acoes .botao { position: relative; height: 38px; font-size: 13.5px; cursor: pointer; }
.cfg-remover { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tinta-2); cursor: pointer; }
.cfg-remover input { accent-color: var(--tinta); }
.cfg-dias { display: grid; margin: 8px 0 10px; }
.cfg-dia { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--linha); }
.cfg-dia:first-child { border-top: 0; }
.cfg-dia > b { font-size: 14px; font-weight: 600; }
.cfg-janelas { display: grid; gap: 6px; }
.cfg-janela { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.cfg-janela i { font-style: normal; font-size: 12.5px; color: var(--tinta-3); }
.cfg-janela input, .cfg-form select, .cfg-form .campo input[type=time] {
  width: 100%; min-width: 0; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--linha-forte); background: #FAFBFC; font: inherit; font-size: 14.5px; color: var(--tinta);
}
.cfg-janela input:focus { outline: none; border-color: var(--tinta); background: #fff; }
.cfg-sub { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--tinta-2); }
.cfg-escolha { display: grid; gap: 8px; margin: 12px 0 4px; }
.cfg-opcao { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--linha-forte); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.cfg-opcao:has(input:checked) { border-color: var(--tinta); background: #F8F9FB; }
.cfg-opcao:has(input:disabled) { cursor: default; opacity: .75; }
.cfg-opcao input { margin-top: 3px; accent-color: var(--tinta); }
.cfg-opcao b { display: block; font-size: 14.5px; font-weight: 650; }
.cfg-opcao small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--tinta-2); }
.cfg-estado { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.cfg-qr { display: inline-block; margin: 10px 0; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--linha); }
.cfg-qr img { width: 256px; height: 256px; max-width: 100%; height: auto; }
.cfg-codigo { margin: 10px 0; font-size: 30px; font-weight: 650; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.cfg-linha { display: grid; gap: 8px; margin: 12px 0 0; justify-items: start; }
.cfg-codigo-caixa { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--linha); }
.cfg-codigo-caixa summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--tinta-2); }
.cfg-codigo-caixa .cfg-linha { justify-items: stretch; }
.cfg-url { display: block; margin-top: 4px; font-weight: 600; word-break: break-all; color: var(--tinta); }
.cfg-travado { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: #E9EEF5; color: #3D4C63; font-size: 13.5px; line-height: 1.35; }
.cfg-travado .ic { width: 16px; height: 16px; margin-top: 1px; }
.cfg-saldo { margin: 12px 0 4px; padding: 10px 12px; border-radius: 12px; background: #F4F6F8; font-size: 13.5px; color: var(--tinta-2); }
.cfg-sub-titulo { margin: 16px 0 2px; font-size: 13.5px; font-weight: 650; }
.cfg-pacote { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.cfg-chave { padding: 14px 0; border-top: 1px solid var(--linha); }
.cfg-chave:first-of-type { border-top: 0; }
.cfg-chave-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.cfg-chave-cab b { font-size: 14.5px; font-weight: 650; }
.cfg-chave-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; }
.cfg-chave-acoes .botao { height: 36px; font-size: 13.5px; }
.cfg-usuario .regra-acoes { align-items: center; }
.cfg-usuario .regra-botao { white-space: nowrap; }
.consumo-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.consumo-kpis > div { padding: 14px; border-radius: var(--raio); background: var(--superficie); box-shadow: var(--sombra-1); }
.consumo-kpis > div.destaque { background: var(--tinta); color: #fff; }
.consumo-kpis span { display: block; font-size: 12px; font-weight: 600; color: var(--tinta-3); }
.consumo-kpis .destaque span, .consumo-kpis .destaque small { color: rgba(255, 255, 255, .65); }
.consumo-kpis b { display: block; margin-top: 2px; font-size: 22px; line-height: 1.15; font-weight: 650; letter-spacing: -.015em; }
.consumo-kpis small { display: block; margin-top: 2px; font-size: 12px; color: var(--tinta-3); }
.consumo-nota { margin: 10px 6px 0; font-size: 13px; line-height: 1.45; color: var(--tinta-2); }
.consumo-valor { font-size: 14.5px; font-weight: 650; white-space: nowrap; }
a.item { color: inherit; }
a.item:hover { background: #F8F9FB; }
.sobre-vazio { padding: 16px 14px; font-size: 13.5px; color: var(--tinta-3); }
.sobre-data { display: block; margin-bottom: 2px; }
.sobre-texto { margin-top: 0; font-size: 14px; color: var(--tinta); }
.sobre-assinatura { justify-content: center; margin-top: 26px; font-size: 12px; color: var(--tinta-3); }
.tela-config .p-corpo, .tela-consumo .p-corpo { padding-bottom: 32px; }
@media (max-width: 999px) {
  .tela-config .p-corpo { padding: 0 14px 32px; }
  .tela-config .p-largura .secao { padding: 0; }
  .tela-config .p-topo { padding-bottom: 8px; }
}
@media (min-width: 1000px) {
  .consumo-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .consumo-kpis.tres-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tela-config .p-largura { max-width: 700px; }
  .cfg-dia { grid-template-columns: 96px minmax(0, 1fr); }
  .cfg-janelas { grid-template-columns: 1fr 1fr; }
}
.cfg-form .form-rodape { padding-top: 14px; }
