/*
 * A piscina à noite, viva. A água fica em #agua (agua.js); tudo aqui em cima é vidro líquido e cromo.
 * Azul do selo da pousada como cor principal, amarelo da flor só em pequenos destaques.
 */
@font-face { font-family: Cinzel; src: url(/fontes/cinzel.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: Montserrat; src: url(/fontes/montserrat.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@property --giro { syntax: "<angle>"; inherits: false; initial-value: 210deg; }

:root {
  color-scheme: dark;
  --abismo: #030921;
  --noite: #050f2c;
  --lagoa: #0a1f52;
  --vidro: rgb(15 36 100 / 74%);
  --borda: rgb(190 220 255 / 36%);
  --sombra-3d: inset 0 1px 0 rgb(255 255 255 / 44%), inset 0 -2px 3px rgb(0 0 0 / 30%), 0 2px 0 rgb(1 5 24 / 60%), 0 12px 24px rgb(1 5 24 / 52%), 0 30px 56px -14px rgb(1 5 24 / 72%);
  --sombra-pilula: inset 0 1px 0 rgb(255 255 255 / 32%), inset 0 0 0 1px var(--borda), 0 2px 0 rgb(1 5 24 / 55%), 0 5px 10px rgb(1 5 24 / 38%);
  --vidro-forte: rgb(6 16 52 / 80%);
  --fio: rgb(170 205 255 / 14%);
  --fio-forte: rgb(170 205 255 / 28%);
  --oceano: #1f9bf0;
  --oceano-fundo: #0a57c9;
  --ceu: #9fd8ff;
  --sol: #ffcf3f;
  --folha: #66e6bd;
  --coral: #ff8473;
  --papel: #f3f7ff;
  --nevoa: #aec1de;
  --l1: #52c0ff;
  --l2: #ffcf3f;
  --l3: #ff9a70;
  --s-novos: #3a8de8;
  --s-reservas: #b98c12;
  --s-leads: #8e80f0;
  --s-cancel: #e4579a;
  --cromo: linear-gradient(135deg, #fff 0%, #cfdcf0 16%, #6d84a8 34%, #f6faff 50%, #8aa2c4 66%, #e9f0fb 82%, #58708f 100%);
  --titulo: Cinzel, "Iowan Old Style", Georgia, serif;
  --texto: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mola: cubic-bezier(.2, .9, .25, 1.15);
  --suave: cubic-bezier(.22, .8, .24, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(1200px 800px at 70% 8%, #0f3a9c 0%, transparent 62%), radial-gradient(900px 700px at 10% 90%, #1d1a78 0%, transparent 60%), var(--abismo);
  color: var(--papel);
  font: 400 14.5px/1.5 var(--texto);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
.defs-ocultas { position: absolute; width: 0; height: 0; overflow: hidden; }
#agua { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; opacity: 0; transition: opacity 1.2s ease; }
#agua.pronta { opacity: 1; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 600; margin: 0; line-height: 1.18; letter-spacing: .01em; }
h1 { font-size: 30px; }
h2 { font-size: 19px; }
h3 { font-size: 14.5px; }
a { color: inherit; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.cromo-texto, h1 { background: linear-gradient(176deg, #fff 6%, #d6e6fa 36%, #8ba8cc 52%, #f6faff 64%, #bcd2ec 88%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Ícones cromados */
svg.ico { width: 20px; height: 20px; flex: none; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile {
  position: relative; width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px;
  background: radial-gradient(120% 90% at 30% 12%, rgb(255 255 255 / 30%), transparent 55%), linear-gradient(160deg, #2a4688, #0a1a48);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 55%), inset 0 -2px 4px rgb(0 0 0 / 45%), 0 6px 16px rgb(0 8 44 / 55%);
  transition: transform .3s var(--mola), box-shadow .3s;
}
.tile::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; background: var(--cromo); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.tile.azul { background: radial-gradient(120% 90% at 30% 12%, rgb(255 255 255 / 55%), transparent 55%), linear-gradient(160deg, #38b6ff, #0a57c9); box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%), inset 0 -2px 4px rgb(0 20 80 / 50%), 0 8px 22px rgb(31 155 240 / 55%); }
.tile.sol { background: radial-gradient(120% 90% at 30% 12%, rgb(255 255 255 / 60%), transparent 55%), linear-gradient(160deg, #ffd65c, #b97e0a); box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%), inset 0 -2px 4px rgb(80 50 0 / 50%), 0 8px 22px rgb(255 190 60 / 40%); }
.tile.rosa { background: radial-gradient(120% 90% at 30% 12%, rgb(255 255 255 / 50%), transparent 55%), linear-gradient(160deg, #f073ac, #a82a6e); box-shadow: inset 0 1px 0 rgb(255 255 255 / 60%), inset 0 -2px 4px rgb(70 0 40 / 50%), 0 8px 22px rgb(228 87 154 / 40%); }
.tile.lilas { background: radial-gradient(120% 90% at 30% 12%, rgb(255 255 255 / 50%), transparent 55%), linear-gradient(160deg, #a497f7, #4d3cc7); box-shadow: inset 0 1px 0 rgb(255 255 255 / 60%), inset 0 -2px 4px rgb(20 0 70 / 50%), 0 8px 22px rgb(142 128 240 / 42%); }

/* Vidro líquido */
.painel, .vidro {
  position: relative; border-radius: 22px; padding: 20px;
  background: linear-gradient(165deg, rgb(255 255 255 / 15%), rgb(255 255 255 / 3%) 42%, rgb(0 0 0 / 14%)), var(--vidro);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: var(--sombra-3d);
}
.painel::before, .vidro::before, .kpi::before, .vista::before, .cartao-entrar::before, .lateral::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--giro), rgb(255 255 255 / 95%), rgb(170 210 255 / 34%) 18%, rgb(255 255 255 / 62%) 36%, rgb(150 195 255 / 30%) 55%, rgb(255 255 255 / 85%) 75%, rgb(170 210 255 / 36%) 88%, rgb(255 255 255 / 95%));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.kpi::before, .vista::before, .cartao-entrar::before { animation: giro 16s linear infinite; }
@keyframes giro { to { --giro: 570deg; } }

/* Reação em 3D */
[data-3d] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--suave); transform-style: preserve-3d; }
[data-3d].sob-ponteiro { transition: transform .08s linear; }
[data-3d]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / 16%), transparent 62%); }
[data-3d].sob-ponteiro::after { opacity: 1; }

/* Estrutura */
.shell { display: grid; grid-template-columns: 284px minmax(0, 1fr); height: 100dvh; }
.lateral {
  position: relative; display: flex; flex-direction: column; gap: 1px; margin: 12px 0 12px 12px; padding: 14px 10px 10px; border-radius: 26px; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--fio-forte) transparent;
  background: linear-gradient(170deg, rgb(255 255 255 / 14%), rgb(255 255 255 / 3%) 50%, rgb(0 0 0 / 12%)), rgb(13 32 92 / 76%);
  -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
  box-shadow: var(--sombra-3d); view-transition-name: lateral;
}
.lateral-topo { flex: none; display: flex; align-items: center; gap: 6px; padding: 0 2px 12px 4px; }
.marca { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; text-decoration: none; }
.marca img { flex: none; width: 78px; height: auto; filter: drop-shadow(0 4px 14px rgb(31 155 240 / 60%)); transition: transform .5s var(--mola); }
.marca:hover img { transform: rotate(-6deg) scale(1.07); }
.marca strong { display: block; font: 600 18px/1.12 var(--titulo); }
.marca small { display: block; font-size: 13px; color: var(--nevoa); margin-top: 4px; }
.nav-item { position: relative; flex: none; display: flex; align-items: center; gap: 13px; padding: 6px 8px; border-radius: 15px; font-size: 16px; text-decoration: none; color: var(--nevoa); font-weight: 500; background: none; border: 0; cursor: pointer; text-align: left; transition: color .2s, background-color .2s; }
.nav-item .tile { width: 40px; height: 40px; border-radius: 13px; }
.nav-item svg.ico { width: 21px; height: 21px; }
.nav-item .selo { font-size: 13px; line-height: 22px; min-width: 24px; }
.nav-item:hover { color: var(--papel); background: rgb(255 255 255 / 6%); }
.nav-item:hover .tile { transform: translateY(-1px) scale(1.05); }
.nav-item.ativo { color: #fff; font-weight: 600; }
.nav-pill { position: absolute; inset: 0; z-index: -1; border-radius: 15px; view-transition-name: nav-ativa; background: linear-gradient(120deg, rgb(31 155 240 / 56%), rgb(31 155 240 / 18%)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 50%), inset 0 0 0 1px rgb(170 225 255 / 50%), 0 2px 0 rgb(1 5 24 / 55%), 0 10px 22px rgb(31 155 240 / 30%); }
.nav-item .nome { flex: 1; }
.selo { background: var(--sol); color: #2a2003; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 0 7px; line-height: 19px; min-width: 19px; text-align: center; animation: pop .45s var(--mola); box-shadow: 0 3px 10px rgb(255 190 60 / 50%); }
.rodape-nav { flex: none; margin-top: auto; padding: 8px 8px 0; font-size: 14px; color: var(--nevoa); }
.link-botao { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; color: inherit; }
.so-celular { display: none; }
.conteudo { overflow: auto; min-width: 0; view-transition-name: conteudo; scrollbar-color: var(--fio-forte) transparent; }
.pagina { max-width: 1180px; margin: 0 auto; padding: 26px 26px 64px; display: flex; flex-direction: column; gap: 20px; }
.cabeca { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sub { color: var(--nevoa); }
.vazio { color: var(--nevoa); padding: 34px 16px; text-align: center; }
.pilha { display: flex; flex-direction: column; gap: 11px; }
.fila { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.entre { justify-content: space-between; }
.cresce { flex: 1; min-width: 0; }
.dica { font-size: 12.5px; font-weight: 400; color: var(--nevoa); }

/* Início */
.vista { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 236px; align-items: center; gap: 12px; padding: 20px 26px; border-radius: 28px; background: linear-gradient(150deg, rgb(255 255 255 / 17%), rgb(255 255 255 / 3%) 48%, rgb(255 207 63 / 8%)), rgb(16 38 106 / 74%); -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%); box-shadow: var(--sombra-3d); }
.vista h1 { font-size: 36px; }
.vista-texto { display: flex; flex-direction: column; gap: 14px; }
.agora { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.pilula { display: inline-flex; align-items: baseline; gap: 7px; padding: 7px 14px; border-radius: 999px; text-decoration: none; font-size: 13px; color: var(--papel); background: linear-gradient(180deg, rgb(255 255 255 / 20%), rgb(255 255 255 / 7%)); box-shadow: var(--sombra-pilula); transition: transform .25s var(--mola), box-shadow .2s; }
.pilula:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 42%), inset 0 0 0 1px rgb(190 220 255 / 56%), 0 3px 0 rgb(1 5 24 / 55%), 0 10px 16px rgb(1 5 24 / 44%); }
.pilula b { font: 600 18px/1 var(--titulo); }
.pilula.quente b { color: var(--sol); }
.selo-3d { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.selo-3d img { width: 56%; height: auto; display: block; filter: drop-shadow(0 12px 30px rgb(31 155 240 / 60%)); animation: flutua 7s ease-in-out infinite alternate; }
.selo-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .9s ease; }
.selo-3d canvas.pronta { opacity: 1; }

.periodo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.periodo .abas { min-width: 0; }
.datas { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--nevoa); }
.datas input { width: 150px; padding: 6px 10px; border-radius: 999px; }
.aviso-demo { margin-top: 3px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 15px 16px 13px; border-radius: 22px; text-decoration: none; background: linear-gradient(160deg, rgb(255 255 255 / 19%), rgb(255 255 255 / 4%) 46%, rgb(0 0 0 / 14%)), var(--vidro); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); box-shadow: var(--sombra-3d); transition: box-shadow .25s, filter .25s; }
a.kpi:hover { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgb(255 255 255 / 55%), inset 0 -2px 3px rgb(0 0 0 / 30%), 0 3px 0 rgb(1 5 24 / 60%), 0 18px 32px rgb(1 5 24 / 58%), 0 36px 60px -14px rgb(1 5 24 / 78%); }
.kpi-topo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kpi-rotulo { font-size: 12.5px; font-weight: 500; line-height: 1.25; color: #d5e2f6; }
.kpi b { font: 600 40px/1 var(--titulo); background: linear-gradient(176deg, #fff 6%, #d6e6fa 40%, #8ba8cc 56%, #f6faff 68%, #bcd2ec 92%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi-pe { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--nevoa); line-height: 1.2; }
.delta svg.ico { width: 13px; height: 13px; }
.sparkline { width: 76px; height: 26px; flex: none; overflow: visible; }
.sparkline path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.graficos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.grafico-grande { grid-column: span 6; }
.grafico-medio { grid-column: span 3; }
.grafico-topo { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.legenda { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: #d5e2f6; }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 14px; height: 3px; border-radius: 2px; }
.plot { position: relative; width: 100%; touch-action: pan-y; }
.plot svg { display: block; width: 100%; overflow: visible; }
.grade-linha { stroke: rgb(170 205 255 / 12%); stroke-width: 1; }
.eixo-texto { fill: var(--nevoa); font-size: 11px; }
.rotulo-direto { fill: #d5e2f6; font-size: 11px; font-weight: 500; }
.traca { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: traca 1.1s var(--suave) both; }
.area-traca { animation: aparece 1.2s ease both; }
.sem-animar { animation: none !important; }
@keyframes traca { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.cruz { stroke: rgb(255 255 255 / 34%); stroke-width: 1; }
.dica-grafico { position: absolute; z-index: 5; min-width: 150px; padding: 9px 11px; border-radius: 12px; font-size: 12.5px; pointer-events: none; background: rgb(6 16 52 / 92%); box-shadow: 0 14px 34px rgb(0 0 0 / 50%), inset 0 0 0 1px var(--fio-forte); transition: transform .08s linear; }
.dica-grafico strong { display: block; margin-bottom: 4px; font-weight: 600; }
.dica-grafico div { display: flex; justify-content: space-between; gap: 14px; }
.dica-grafico div span { display: inline-flex; align-items: center; gap: 6px; color: #d5e2f6; }
.dica-grafico i { width: 8px; height: 8px; border-radius: 50%; }
.barras-h { display: flex; flex-direction: column; gap: 13px; }
.barra-h { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; }
.barra-h .trilha { grid-column: 1 / -1; height: 10px; border-radius: 4px; background: rgb(255 255 255 / 7%); overflow: hidden; }
.barra-h .trilha i { display: block; height: 100%; border-radius: 4px; background: var(--s-novos); width: 0; transition: width .9s var(--suave); }
.barra-h small { grid-column: 1 / -1; color: var(--nevoa); font-size: 11.5px; }
.horas { display: flex; align-items: flex-end; gap: 3px; height: 150px; }
.hora-col { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.hora-col i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--s-novos); height: 0; transition: height .8s var(--suave), filter .2s; }
.hora-col:hover i { filter: brightness(1.4); }
.horas-eixo { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--nevoa); }
details.tabela { margin-top: 10px; font-size: 13px; }
details.tabela summary { cursor: pointer; color: var(--nevoa); }
details.tabela .rola { overflow: auto; max-height: 260px; margin-top: 8px; }
table.dados-tabela { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.dados-tabela th, table.dados-tabela td { padding: 5px 9px; text-align: right; border-bottom: 1px solid var(--fio); white-space: nowrap; }
table.dados-tabela th:first-child, table.dados-tabela td:first-child { text-align: left; }

.faixa { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; overflow: hidden; }
.faixa > a { padding: 16px 18px; text-decoration: none; display: flex; flex-direction: column; gap: 7px; border-left: 1px solid var(--fio); transition: background-color .2s; }
.faixa > a:first-child { border-left: 0; }
.faixa > a:hover { background: rgb(255 255 255 / 5%); }
.ponto { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--nevoa); flex: none; }
.ponto.ok { background: var(--folha); box-shadow: 0 0 10px rgb(102 230 189 / 70%); }
.ponto.erro { background: var(--coral); box-shadow: 0 0 10px rgb(255 132 115 / 70%); }
.ponto.espera { background: var(--sol); animation: pulsa 1.6s ease-in-out infinite; }
.alerta { display: block; padding: 11px 14px; border-radius: 13px; text-decoration: none; font-weight: 500; transition: transform .2s var(--suave); box-shadow: inset 0 0 0 1px currentcolor; }
a.alerta:hover { transform: translateX(3px); }
.alerta.erro { background: rgb(255 132 115 / 13%); color: #ffcfc6; }
.alerta.aviso { background: rgb(255 207 63 / 10%); color: #fbe6a3; }
.linha-pedido { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 6px; border-top: 1px solid var(--fio); text-decoration: none; transition: background-color .2s; border-radius: 8px; }
.linha-pedido:first-child { border-top: 0; }
.linha-pedido:hover { background: rgb(255 255 255 / 5%); }

/* Etiquetas */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 9px 5px 7px; border-radius: 999px; background: linear-gradient(180deg, rgb(255 255 255 / 15%), rgb(255 255 255 / 5%)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 24%), inset 0 0 0 1px var(--borda), 0 1px 0 rgb(1 5 24 / 50%); white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentcolor; flex: none; }
.chip em { font-style: normal; font-weight: 500; color: var(--nevoa); }
.chip.l1 i { background: var(--l1); }
.chip.l2 i { background: var(--l2); }
.chip.l3 i { background: var(--l3); }
.chip.cheio.l1 { box-shadow: inset 0 0 0 1px var(--l1); background: rgb(82 192 255 / 18%); }
.chip.cheio.l2 { box-shadow: inset 0 0 0 1px var(--l2); background: rgb(255 207 63 / 14%); }
.chip.cheio.l3 { box-shadow: inset 0 0 0 1px var(--l3); background: rgb(255 154 112 / 15%); }
.etiqueta { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 8px; background: rgb(255 255 255 / 11%); color: #d5e2f6; white-space: nowrap; box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%), inset 0 0 0 1px rgb(190 220 255 / 22%); }
.etiqueta.ia { background: rgb(31 155 240 / 24%); color: var(--ceu); }
.etiqueta.equipe, .etiqueta.aguardando_equipe { background: rgb(255 207 63 / 16%); color: var(--sol); }
.etiqueta.novo { background: rgb(159 216 255 / 16%); color: var(--ceu); }
.etiqueta.em_atendimento { background: rgb(31 155 240 / 24%); color: var(--ceu); }
.etiqueta.reservado, .etiqueta.cliente { background: rgb(102 230 189 / 16%); color: var(--folha); }
.etiqueta.perdido { background: rgb(255 255 255 / 8%); color: var(--nevoa); }
.pilha > .etiqueta, .pilha > .chip { align-self: flex-start; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 600 15px var(--titulo); flex: none; color: #fff; background: radial-gradient(90% 80% at 30% 20%, rgb(255 255 255 / 55%), transparent 55%), linear-gradient(140deg, var(--oceano), var(--oceano-fundo)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 50%), 0 6px 16px rgb(10 87 201 / 50%); }
.avatar.l2 { background: radial-gradient(90% 80% at 30% 20%, rgb(255 255 255 / 55%), transparent 55%), linear-gradient(140deg, #e8b52e, #8f6a0e); box-shadow: inset 0 1px 0 rgb(255 255 255 / 50%), 0 6px 16px rgb(143 106 14 / 50%); }
.avatar.l3 { background: radial-gradient(90% 80% at 30% 20%, rgb(255 255 255 / 55%), transparent 55%), linear-gradient(140deg, #ef8656, #99462a); box-shadow: inset 0 1px 0 rgb(255 255 255 / 50%), 0 6px 16px rgb(153 70 42 / 50%); }

/* Formulários */
label.campo { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: #d5e2f6; }
label.campo.pendente > span:first-child::after { content: "  falta preencher"; font-weight: 500; color: var(--sol); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=tel], input[type=date], input[type=time], input[type=datetime-local], input[type=file], select, textarea {
  width: 100%; background: rgb(2 8 34 / 52%); border: 0; box-shadow: inset 0 2px 4px rgb(0 0 0 / 50%), inset 0 0 0 1px var(--borda), 0 1px 0 rgb(255 255 255 / 10%); border-radius: 13px; padding: 10px 13px; font-weight: 400; font-size: 14.5px;
  transition: box-shadow .2s, background-color .2s;
}
input::placeholder, textarea::placeholder { color: rgb(174 193 222 / 72%); }
input:focus, select:focus, textarea:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--oceano), 0 0 0 4px rgb(31 155 240 / 22%); background: rgb(2 8 34 / 74%); }
input[type=date]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.7); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--ceu); outline-offset: 2px; }
select option { background: var(--lagoa); }
textarea { resize: vertical; min-height: 76px; }
.grade-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.grade-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.busca { position: relative; display: block; flex: 1; min-width: 200px; }
.busca svg.ico { position: absolute; left: 13px; top: 50%; translate: 0 -50%; width: 17px; height: 17px; pointer-events: none; }
.busca input { padding-left: 38px; border-radius: 999px; }
.botao {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 13px; padding: 10px 16px; font-weight: 600; cursor: pointer; text-decoration: none; color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #52c1ff, #1079ea 58%, #0a5ad0);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 75%), inset 0 0 0 1px rgb(170 225 255 / 45%), inset 0 -2px 2px rgb(0 20 90 / 45%), 0 3px 0 #06348f, 0 12px 22px rgb(10 87 201 / 58%);
  transition: transform .2s var(--mola), box-shadow .2s, filter .2s;
}
.botao::after { content: ""; position: absolute; inset: 0 -40%; z-index: -1; background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / 34%) 50%, transparent 62%); translate: -60% 0; transition: translate .7s var(--suave); }
.botao:hover::after { translate: 60% 0; }
.botao:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: inset 0 1px 0 rgb(255 255 255 / 75%), inset 0 0 0 1px rgb(170 225 255 / 55%), inset 0 -2px 2px rgb(0 20 90 / 45%), 0 4px 0 #06348f, 0 16px 28px rgb(10 87 201 / 66%); }
.botao:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 50%), inset 0 0 0 1px rgb(170 225 255 / 40%), 0 1px 0 #06348f, 0 4px 10px rgb(10 87 201 / 48%); }
.botao.claro { background: linear-gradient(180deg, rgb(255 255 255 / 22%), rgb(255 255 255 / 7%)); color: var(--papel); box-shadow: inset 0 1px 0 rgb(255 255 255 / 48%), inset 0 0 0 1px rgb(190 220 255 / 44%), 0 3px 0 rgb(1 5 24 / 62%), 0 8px 16px rgb(1 5 24 / 42%); }
.botao.claro:hover { background: linear-gradient(180deg, rgb(255 255 255 / 30%), rgb(255 255 255 / 11%)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 58%), inset 0 0 0 1px rgb(190 220 255 / 58%), 0 4px 0 rgb(1 5 24 / 62%), 0 12px 22px rgb(1 5 24 / 48%); }
.botao.claro:active { box-shadow: inset 0 1px 0 rgb(255 255 255 / 34%), inset 0 0 0 1px rgb(190 220 255 / 38%), 0 1px 0 rgb(1 5 24 / 62%), 0 3px 8px rgb(1 5 24 / 40%); }
.botao.perigo { background: linear-gradient(180deg, rgb(255 132 115 / 16%), rgb(255 132 115 / 5%)); color: #ffb3a7; box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%), inset 0 0 0 1px rgb(255 132 115 / 62%), 0 3px 0 rgb(60 10 10 / 62%), 0 8px 16px rgb(1 5 24 / 42%); }
.botao.perigo:hover { background: rgb(255 132 115 / 12%); }
.botao.mini { padding: 6px 11px; font-size: 12px; border-radius: 10px; font-weight: 600; }
.botao.icone-so { padding: 9px; }
.botao[disabled] { opacity: .55; cursor: default; transform: none; }
.chave { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.chave input { position: absolute; opacity: 0; width: 0; height: 0; }
.chave .trilho { flex: none; width: 44px; height: 25px; margin-top: 1px; border-radius: 999px; background: rgb(255 255 255 / 12%); box-shadow: inset 0 1px 3px rgb(0 0 0 / 50%), inset 0 0 0 1px var(--fio); position: relative; transition: background-color .25s; }
.chave .trilho::after { content: ""; position: absolute; top: 2.5px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--cromo); box-shadow: 0 2px 7px rgb(0 0 0 / 50%), inset 0 0 0 .5px rgb(255 255 255 / 60%); transition: transform .3s var(--mola); }
.chave input:checked + .trilho { background: linear-gradient(135deg, var(--oceano), var(--ceu)); }
.chave input:checked + .trilho::after { transform: translateX(18px); }
.chave input:focus-visible + .trilho { outline: 2px solid var(--ceu); outline-offset: 2px; }
.chave small { display: block; color: var(--nevoa); font-size: 12.5px; }
.erro-txt { font-size: 13px; color: var(--coral); }
.abas { display: flex; flex-wrap: wrap; gap: 6px; }
.aba { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(180deg, rgb(255 255 255 / 18%), rgb(255 255 255 / 6%)), rgb(13 32 92 / 70%); border: 0; box-shadow: var(--sombra-pilula); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; color: #e3edfb; text-decoration: none; transition: color .2s, transform .2s var(--mola), box-shadow .2s; }
.aba:hover { color: #fff; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 42%), inset 0 0 0 1px rgb(190 220 255 / 56%), 0 3px 0 rgb(1 5 24 / 55%), 0 8px 14px rgb(1 5 24 / 42%); }
.aba:active { transform: translateY(1px); }
.aba.ativa { background: linear-gradient(180deg, #52c1ff, #1079ea 60%, #0a5ad0); color: #fff; font-weight: 600; box-shadow: inset 0 1px 0 rgb(255 255 255 / 72%), inset 0 0 0 1px rgb(170 225 255 / 52%), 0 2px 0 #06348f, 0 8px 18px rgb(10 87 201 / 58%); }
.segmento { display: inline-flex; padding: 4px; gap: 3px; border-radius: 16px; background: rgb(2 8 34 / 62%); box-shadow: inset 0 2px 4px rgb(0 0 0 / 60%), inset 0 0 0 1px var(--borda), 0 1px 0 rgb(255 255 255 / 12%); }
.segmento a, .segmento button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px; border: 0; background: none; cursor: pointer; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 13.5px; color: var(--nevoa); transition: color .2s; }
.segmento .ativa { color: #fff; background: linear-gradient(180deg, #52c1ff, #1079ea 60%, #0a5ad0); box-shadow: inset 0 1px 0 rgb(255 255 255 / 72%), 0 2px 0 #06348f, 0 6px 14px rgb(10 87 201 / 55%); }
.segmento .quantos { font-weight: 500; opacity: .85; }

/* Conversas */
.conversas { display: grid; grid-template-columns: 350px minmax(0, 1fr) 280px; height: 100%; min-height: 0; padding: 14px; gap: 12px; }
.conversas:not(.com-fio) { grid-template-columns: 350px minmax(0, 1fr); }
.lista-conversas, .fio, .resumo-lead { position: relative; border-radius: 22px; overflow: hidden; background: linear-gradient(165deg, rgb(255 255 255 / 13%), rgb(255 255 255 / 3%) 40%), rgb(13 32 92 / 78%); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); box-shadow: inset 0 0 0 1.5px var(--borda), var(--sombra-3d); }
.lista-conversas { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.lista-topo { padding: 16px 14px 12px; display: flex; flex-direction: column; gap: 9px; border-bottom: 1px solid var(--fio); }
.lista-rolagem { overflow: auto; flex: 1; scrollbar-color: var(--fio-forte) transparent; }
.conversa-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 11px; padding: 12px 14px; border-bottom: 1px solid rgb(170 205 255 / 8%); text-decoration: none; transition: background-color .18s; }
.conversa-item:hover { background: rgb(255 255 255 / 5%); }
.conversa-item.ativa { background: linear-gradient(90deg, rgb(31 155 240 / 28%), rgb(31 155 240 / 5%)); box-shadow: inset 2px 0 0 var(--ceu); }
.conversa-item .nome { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversa-item .previa { color: var(--nevoa); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversa-item .hora { color: var(--nevoa); font-size: 11.5px; flex: none; }
.linha-1 { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.linha-2 { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 1px; }
.linha-3 { display: flex; gap: 5px; align-items: center; margin-top: 7px; flex-wrap: wrap; }
.linha-3 .chip, .linha-3 .etiqueta { font-size: 10.5px; padding: 3px 7px; border-radius: 7px; }
.linha-3 .chip { padding: 3px 8px 3px 6px; border-radius: 999px; }
.fio { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.fio-topo { padding: 11px 16px; border-bottom: 1px solid var(--fio); display: flex; flex-wrap: wrap; gap: 9px; align-items: center; justify-content: space-between; }
.voltar { display: none; text-decoration: none; padding: 2px 4px 2px 0; }
.mensagens { flex: 1; overflow: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 7px; scrollbar-color: var(--fio-forte) transparent; }
.balao { max-width: min(76%, 540px); padding: 9px 13px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: inset 0 1px 0 rgb(255 255 255 / 38%), inset 0 0 0 1px rgb(190 220 255 / 26%), 0 2px 0 rgb(1 5 24 / 50%), 0 7px 14px rgb(1 5 24 / 42%); }
.balao.entrada { align-self: flex-start; background: linear-gradient(170deg, rgb(243 247 255 / 24%), rgb(243 247 255 / 11%)); border-bottom-left-radius: 5px; }
.balao.saida { align-self: flex-end; background: linear-gradient(165deg, #3fa9f5, #0a57c9); border-bottom-right-radius: 5px; }
.balao.saida.celular, .balao.saida.painel { background: linear-gradient(165deg, #c29a2e, #80600f); }
.balao.novo { animation: surge .36s var(--mola) both; }
.balao.saida.novo { transform-origin: bottom right; }
.balao.entrada.novo { transform-origin: bottom left; }
.balao .meta { display: block; margin-top: 3px; font-size: 11px; color: rgb(243 247 255 / 72%); text-align: right; }
.balao .meta.alerta-envio { color: #ffd6cd; font-weight: 600; }
.digitando { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 12px 14px; border-radius: 16px; border-bottom-left-radius: 5px; background: rgb(243 247 255 / 13%); animation: surge .25s var(--suave) both; }
.digitando.saida { align-self: flex-end; border-bottom-left-radius: 16px; border-bottom-right-radius: 5px; background: rgb(31 155 240 / 34%); }
.digitando i { width: 7px; height: 7px; border-radius: 50%; background: var(--ceu); animation: ponto 1.15s ease-in-out infinite; }
.digitando i:nth-child(2) { animation-delay: .16s; }
.digitando i:nth-child(3) { animation-delay: .32s; }
.nota-sistema { align-self: center; font-size: 12px; color: #fbe6a3; background: rgb(255 207 63 / 11%); box-shadow: inset 0 0 0 1px rgb(255 207 63 / 26%); border-radius: 9px; padding: 5px 10px; max-width: 92%; text-align: center; animation: surge .3s var(--suave) both; }
.composicao { display: flex; gap: 9px; padding: 11px 14px calc(11px + env(safe-area-inset-bottom)); border-top: 1px solid var(--fio); align-items: flex-end; }
.composicao textarea { min-height: 44px; max-height: 140px; }
.largura-toda { flex: 1; min-width: 0; }
.resumo-lead { overflow: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 16px; }
.dados { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 12px; font-size: 13px; margin: 0; }
.dados dt { color: var(--nevoa); }
.dados dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* Listas */
.quadro { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(214px, 1fr); gap: 12px; overflow-x: auto; padding: 2px 2px 14px; scroll-snap-type: x proximity; scrollbar-color: var(--fio-forte) transparent; }
.coluna { display: flex; flex-direction: column; gap: 9px; padding: 11px; border-radius: 20px; background: linear-gradient(170deg, rgb(255 255 255 / 9%), rgb(255 255 255 / 2%) 40%), rgb(12 30 86 / 72%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 30%), inset 0 0 0 1.5px var(--borda), 0 2px 0 rgb(1 5 24 / 55%), 0 12px 24px rgb(1 5 24 / 44%); min-height: 240px; max-height: max(400px, calc(100dvh - 372px)); scroll-snap-align: start; transition: background-color .2s, box-shadow .2s; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.coluna.sobre { background: rgb(31 155 240 / 22%); box-shadow: inset 0 0 0 2px var(--ceu); }
.coluna-topo { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 4px; }
.coluna-topo h3 { font-size: 13.5px; }
.contador { font-size: 12px; color: var(--nevoa); font-weight: 600; }
.lead-cartao { position: relative; display: flex; flex-direction: column; gap: 7px; padding: 12px 13px; border-radius: 15px; text-decoration: none; background: linear-gradient(160deg, rgb(255 255 255 / 19%), rgb(255 255 255 / 6%)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 42%), inset 0 0 0 1px var(--borda), 0 2px 0 rgb(1 5 24 / 58%), 0 8px 16px rgb(1 5 24 / 42%); transition: transform .25s var(--suave), box-shadow .2s; cursor: grab; }
.lead-cartao:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 50%), inset 0 0 0 1px rgb(190 220 255 / 52%), 0 3px 0 rgb(1 5 24 / 58%), 0 16px 28px rgb(1 5 24 / 50%); }
.lead-cartao.arrastando { opacity: .4; }
.lead-cartao strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resumo-curto { font-size: 12.5px; color: #d5e2f6; }
.pessoas-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 13px; }
.pessoa-cartao { display: flex; flex-direction: column; gap: 10px; text-decoration: none; padding: 16px; }
.pessoa-topo { display: flex; align-items: center; gap: 11px; min-width: 0; }
.pessoa-topo strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vista-escolha { flex: none; }
.vista-escolha button { padding: 6px 13px; }
.vista-escolha svg.ico { width: 16px; height: 16px; }
.lista-pessoas { padding: 6px 8px; }
.pessoa-linha { display: grid; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 13px; text-decoration: none; font-size: 13px; transition: background-color .15s; }
.pessoa-linha + .pessoa-linha { box-shadow: 0 -1px 0 rgb(190 220 255 / 13%); }
a.pessoa-linha:hover { background: rgb(255 255 255 / 8%); }
.pessoa-linha.de-lead { grid-template-columns: minmax(170px, 1.35fr) 126px 138px 172px minmax(120px, 1.25fr) minmax(120px, 1fr) 132px; }
.pessoa-linha.de-cliente { grid-template-columns: minmax(170px, 1.35fr) 126px 92px 172px minmax(120px, 1.25fr) minmax(120px, 1fr); }
.pessoa-linha .c-fone, .pessoa-linha .c-datas { white-space: nowrap; }
.pessoa-linha .c-acao { justify-self: end; }
.pessoa-linha.cabecalho { padding-top: 6px; padding-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--nevoa); }
.pessoa-linha .c-nome { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pessoa-linha .c-nome strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pessoa-linha .avatar { width: 32px; height: 32px; font-size: 12px; }
.pessoa-linha .c-numeros { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.pessoa-linha .c-numeros .chip, .pessoa-linha .c-numeros .etiqueta { font-size: 11px; padding-top: 4px; padding-bottom: 4px; }
.pessoa-linha .c-datas { font-size: 12.5px; }
.historico { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }

/* Número de WhatsApp: um trilho próprio, diferente dos filtros */
.seletor-numero { display: inline-flex; flex-wrap: wrap; align-self: flex-start; gap: 3px; padding: 4px; border-radius: 12px; background: rgb(2 8 34 / 66%); box-shadow: inset 0 2px 5px rgb(0 0 0 / 62%), inset 0 0 0 1px rgb(255 207 63 / 26%), 0 1px 0 rgb(255 255 255 / 12%); }
.seletor-numero button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-size: 12.5px; font-weight: 500; color: #c8d7ee; white-space: nowrap; transition: color .15s, background-color .15s; }
.seletor-numero button:hover { color: #fff; background: rgb(255 255 255 / 7%); }
.seletor-numero i { width: 8px; height: 8px; border-radius: 50%; background: var(--l1); box-shadow: 0 0 6px currentcolor; }
.seletor-numero .l2 i { background: var(--l2); }
.seletor-numero .l3 i { background: var(--l3); }
.seletor-numero .ativa { color: #1a1402; font-weight: 700; background: linear-gradient(180deg, #ffe08a, #f2bb2c); box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%), 0 2px 8px rgb(242 187 44 / 45%); }
.seletor-numero .ativa i { background: #1a1402; box-shadow: none; }
.seletor-numero.compacto { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-self: stretch; }
.seletor-numero.compacto button { justify-content: center; padding: 5px 4px; }

/* Etiquetas da conversa */
.etiqueta.e-ia { background: rgb(31 155 240 / 26%); color: var(--ceu); box-shadow: inset 0 0 0 1px rgb(82 192 255 / 44%); }
.etiqueta.e-humano { background: rgb(255 207 63 / 16%); color: var(--sol); box-shadow: inset 0 0 0 1px rgb(255 207 63 / 40%); }
.etiqueta.e-aguardando { background: rgb(255 154 112 / 18%); color: #ffbd9f; box-shadow: inset 0 0 0 1px rgb(255 154 112 / 44%); }
.etiqueta.e-reservou { background: rgb(102 230 189 / 16%); color: var(--folha); box-shadow: inset 0 0 0 1px rgb(102 230 189 / 42%); }
.etiqueta.e-cliente { background: rgb(142 128 240 / 22%); color: #cfc7ff; box-shadow: inset 0 0 0 1px rgb(164 151 247 / 46%); }
.etiqueta.e-perdido { background: rgb(255 255 255 / 9%); color: var(--nevoa); box-shadow: inset 0 0 0 1px rgb(190 220 255 / 22%); }
.filtros-conversa { align-items: center; flex-wrap: nowrap; gap: 5px; }
.lista-topo .aba { padding: 5px 10px; font-size: 12.5px; }
.filtro-etiquetas { position: relative; margin-left: auto; }
.filtro-etiquetas summary { list-style: none; }
.filtro-etiquetas summary::-webkit-details-marker { display: none; }
.filtro-etiquetas summary b { min-width: 17px; padding: 0 5px; border-radius: 999px; font-size: 11px; line-height: 17px; text-align: center; color: #06348f; background: #fff; }
.filtro-etiquetas svg.ico { width: 15px; height: 15px; }
.etiquetas-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: flex; flex-direction: column; align-items: stretch; gap: 3px; width: 236px; padding: 9px; border-radius: 14px; background: rgb(8 22 70 / 97%); box-shadow: 0 18px 40px rgb(0 0 0 / 56%), inset 0 0 0 1px var(--borda); }
.etiqueta-opcao { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 9px; cursor: pointer; }
.etiqueta-opcao:hover { background: rgb(255 255 255 / 7%); }
.etiqueta-opcao .etiqueta { justify-self: start; }
.etiqueta-opcao small { color: var(--nevoa); font-size: 12px; }
.etiquetas-menu .link-botao { align-self: flex-end; margin: 3px 4px 1px; font-size: 12px; color: var(--nevoa); }
.carregar-mais { display: flex; justify-content: center; padding: 12px; }

/* Quadro: cada coluna rola por dentro */
.coluna-lista { display: flex; flex-direction: column; gap: 9px; flex: 1; min-height: 0; overflow-y: auto; margin: 0 -4px; padding: 2px 4px 6px; scrollbar-width: thin; scrollbar-color: var(--fio-forte) transparent; }
.coluna-lista > .botao { flex: none; }
.lead-cartao { flex: none; }
.cartao-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-width: 0; }
.botao-whats { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 9px; cursor: pointer; background: linear-gradient(180deg, #3bd877, #16a34f); box-shadow: inset 0 1px 0 rgb(255 255 255 / 60%), 0 2px 0 #0c6e34, 0 4px 10px rgb(22 163 79 / 42%); transition: transform .18s var(--mola), filter .18s; }
.botao-whats:hover { transform: translateY(-1px) scale(1.06); filter: brightness(1.08); }
.botao-whats:active { transform: translateY(1px); }
.botao-whats svg.ico { width: 17px; height: 17px; }
.botao-whats svg.ico path { stroke: #fff; }
.botao-whats svg.ico path[stroke="none"] { fill: rgb(255 255 255 / 22%); stroke: none; }
.pessoa-linha .c-nome .botao-whats { margin-left: auto; }
.paginacao { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.paginacao .aba[disabled] { opacity: .45; cursor: default; transform: none; }
.paginacao .dica { margin-left: 8px; }
.paginacao svg.ico { width: 14px; height: 14px; }

/* Agendinha do menu */
.agenda-lateral { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding: 0 2px; }
.agenda { flex: none; display: flex; flex-direction: column; gap: 5px; padding: 8px 9px; border-radius: 15px; background: rgb(2 8 34 / 40%); box-shadow: inset 0 1px 3px rgb(0 0 0 / 46%), inset 0 0 0 1px rgb(190 220 255 / 16%); }
.agenda-topo { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.agenda-topo strong { font-size: 14.5px; font-weight: 600; text-transform: capitalize; }
.agenda-topo button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; cursor: pointer; background: rgb(255 255 255 / 8%); }
.agenda-topo button:hover { background: rgb(255 255 255 / 16%); }
.agenda-topo svg.ico { width: 15px; height: 15px; }
.agenda-grade { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; }
.agenda-sem { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--nevoa); padding-bottom: 2px; }
.agenda-dia { position: relative; height: 27px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; font-size: 13.5px; color: #d5e2f6; font-variant-numeric: tabular-nums; }
.agenda-dia:hover { background: rgb(255 255 255 / 12%); }
.agenda-dia.hoje-no-mes { color: #fff; font-weight: 700; background: linear-gradient(180deg, #52c1ff, #0d6fe0); box-shadow: inset 0 1px 0 rgb(255 255 255 / 60%); }
.agenda-dia.com-nota::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; border-radius: 50%; translate: -50% 0; background: var(--sol); box-shadow: 0 0 4px rgb(255 207 63 / 80%); }
.hoje { flex: 1 1 76px; min-height: 76px; display: flex; flex-direction: column; gap: 4px; padding: 8px 9px; border-radius: 15px; background: rgb(2 8 34 / 40%); box-shadow: inset 0 1px 3px rgb(0 0 0 / 46%), inset 0 0 0 1px rgb(190 220 255 / 16%); }
.hoje-topo { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hoje-topo strong { font-size: 14px; font-weight: 600; }
.hoje-anotar { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border: 0; border-radius: 8px; background: rgb(255 255 255 / 8%); color: var(--ceu); cursor: pointer; font-size: 12.5px; }
.hoje-anotar:hover { background: rgb(255 255 255 / 16%); color: #fff; }
.hoje-anotar svg.ico { width: 13px; height: 13px; }
.hoje-lista { flex: 1 1 auto; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--fio-forte) transparent; }
.hoje-item { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; border-top: 1px solid var(--fio); }
.hoje-item:first-child { border-top: 0; }
.hoje-item input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; cursor: pointer; }
.hoje-texto { flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: #d5e2f6; cursor: pointer; text-align: left; font-size: 13.5px; line-height: 1.32; }
.hoje-texto:hover { color: #fff; }
.hoje-texto span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.hoje-texto .lembrete-hora { margin-right: 5px; }
.hoje-vazio { margin: 4px 0 0; font-size: 13px; color: var(--nevoa); }
.lembretes { display: flex; flex-direction: column; gap: 6px; max-height: 44dvh; overflow: auto; }
.lembrete { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgb(255 255 255 / 6%); box-shadow: inset 0 0 0 1px rgb(190 220 255 / 16%); }
.lembrete-texto { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; min-width: 0; }
.lembrete-texto input { margin-top: 3px; flex: none; }
.lembrete-texto span { overflow-wrap: anywhere; }
.lembrete-texto small { display: block; font-size: 11.5px; color: var(--nevoa); }
.lembrete.feito .lembrete-texto span { text-decoration: line-through; color: var(--nevoa); }
.lembrete .botao.icone-so { padding: 5px; }
.lembrete svg.ico { width: 15px; height: 15px; }
.agenda-folha { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.agenda-folha .agenda-dia { height: 38px; font-size: 15px; }
.agenda-folha .hoje { flex: none; min-height: 0; }
.agenda-folha .hoje-lista { max-height: 190px; }

/* Sininho e aviso de lembrete */
.sino { position: relative; flex: none; align-self: flex-start; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px; cursor: pointer; background: radial-gradient(120% 90% at 30% 12%, rgb(255 255 255 / 30%), transparent 55%), linear-gradient(160deg, #2a4688, #0a1a48); box-shadow: inset 0 1px 0 rgb(255 255 255 / 55%), inset 0 0 0 1px var(--borda), 0 2px 0 rgb(1 5 24 / 62%), 0 6px 14px rgb(1 5 24 / 50%); transition: transform .2s var(--mola); }
.sino:hover { transform: translateY(-1px) scale(1.05); }
.sino svg.ico { width: 21px; height: 21px; transform-origin: 50% 12%; }
.sino.so-celular { display: none; }
.sino.tocando svg.ico { animation: balanca 1.1s ease-in-out infinite; }
.sino .selo { position: absolute; top: -6px; right: -6px; font-size: 10.5px; line-height: 17px; min-width: 17px; padding: 0 4px; }
@keyframes balanca { 0%, 55%, 100% { transform: rotate(0); } 10% { transform: rotate(16deg); } 25% { transform: rotate(-14deg); } 40% { transform: rotate(8deg); } }
.lembrete-opcoes { display: grid; grid-template-columns: 124px minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.lembrete-opcoes input[type=time]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.7); }
.lembrete-hora { flex: none; padding: 1px 7px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--ceu); background: rgb(31 155 240 / 22%); box-shadow: inset 0 0 0 1px rgb(82 192 255 / 38%); }
.janela-lembrete { width: min(460px, calc(100vw - 28px)); }
.aviso-sino { display: grid; place-items: center; width: 54px; height: 54px; margin: -2px auto 2px; border-radius: 17px; background: radial-gradient(120% 90% at 30% 12%, rgb(255 255 255 / 60%), transparent 55%), linear-gradient(160deg, #ffd65c, #b97e0a); box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%), 0 8px 22px rgb(255 190 60 / 42%); }
.aviso-sino svg.ico { width: 28px; height: 28px; transform-origin: 50% 12%; animation: balanca 1.1s ease-in-out infinite; }
.aviso-lembrete { display: flex; flex-direction: column; gap: 9px; padding: 13px; border-radius: 15px; background: rgb(255 255 255 / 6%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%), inset 0 0 0 1px var(--borda); }
.aviso-lembrete-hora { display: flex; align-items: baseline; gap: 9px; }
.aviso-lembrete-hora b { font: 600 24px/1 var(--titulo); }
.aviso-lembrete-hora small { font-size: 12.5px; color: var(--sol); }
.aviso-lembrete p { overflow-wrap: anywhere; font-size: 15px; }

/* Notificações no celular */
.notificacoes h3 { margin: 0; font-size: 15px; font-weight: 600; }
.push-ligado { display: flex; align-items: center; gap: 12px; }
.push-ligado strong { display: block; }
.push-passos { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.push-pergunta { margin-top: 6px !important; }
.push-grupo { gap: 12px; padding-top: 12px; border-top: 1px solid var(--fio); }
.push-grupo h3 { color: var(--ceu); font-size: 13.5px; }
.push-aparelho { padding: 8px 0; border-top: 1px solid var(--fio); }
.chave small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--nevoa); }

/* Disparos */
.secao-abas { display: flex; flex-wrap: wrap; align-self: flex-start; gap: 4px; padding: 5px; border-radius: 18px; background: rgb(2 8 34 / 40%); box-shadow: inset 0 1px 3px rgb(0 0 0 / 46%), inset 0 0 0 1px rgb(190 220 255 / 16%); }
.secao-aba { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 14px; text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--nevoa); }
.secao-aba svg.ico { width: 18px; height: 18px; }
.secao-aba:hover { color: var(--papel); }
.secao-aba.ativa { color: #fff; background: linear-gradient(120deg, rgb(31 155 240 / 56%), rgb(31 155 240 / 18%)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 50%), inset 0 0 0 1px rgb(170 225 255 / 50%); }
.st-verde { background: rgb(102 230 189 / 15%); color: var(--folha); box-shadow: inset 0 0 0 1px rgb(102 230 189 / 34%); }
.st-azul { background: rgb(82 192 255 / 16%); color: var(--ceu); box-shadow: inset 0 0 0 1px rgb(82 192 255 / 36%); }
.st-sol { background: rgb(255 207 63 / 14%); color: var(--sol); box-shadow: inset 0 0 0 1px rgb(255 207 63 / 34%); }
.st-rosa { background: rgb(255 132 115 / 15%); color: #ffb3a7; box-shadow: inset 0 0 0 1px rgb(255 132 115 / 36%); }
.st-cinza { background: rgb(255 255 255 / 8%); color: var(--nevoa); box-shadow: inset 0 0 0 1px var(--fio-forte); }
.conta-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.conta-cartao { display: flex; flex-direction: column; gap: 7px; }
.conta-cartao > b { font: 600 28px/1.1 var(--titulo); }
.medidor { height: 9px; border-radius: 5px; overflow: hidden; background: rgb(255 255 255 / 9%); box-shadow: inset 0 1px 2px rgb(0 0 0 / 45%); }
.medidor i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, #52c1ff, #1f9bf0); transition: width .5s var(--suave); }
.pilha-curta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.disparo-cartao { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; transition: transform .2s var(--suave); }
.disparo-cartao:hover { transform: translateY(-2px); }
.disparo-nome { font-size: 16.5px; font-weight: 600; }
.aviso-pausa { color: #ffb3a7; }
.funil { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.funil-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.funil-item b { font: 600 27px/1 var(--titulo); }
.funil-item span { font-size: 13px; color: #d5e2f6; }
.funil-item .trilho { height: 7px; margin-top: 3px; border-radius: 4px; overflow: hidden; background: rgb(255 255 255 / 9%); }
.funil-item .trilho i { display: block; height: 100%; width: 0; border-radius: 4px; transition: width .5s var(--suave); }
.funil-item.c-a .trilho i { background: var(--s-novos); }
.funil-item.c-b .trilho i { background: var(--s-leads); }
.funil-item.c-c .trilho i { background: var(--s-reservas); }
.funil-item.c-d .trilho i { background: var(--s-cancel); }
.whats-previa { display: flex; flex-direction: column; gap: 3px; width: 100%; max-width: 340px; }
.whats-bolha { padding: 9px 11px; border-radius: 10px 10px 3px 10px; background: #0f5249; color: #eafff7; font-size: 14px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%), 0 2px 8px rgb(0 0 0 / 30%); }
.whats-bolha mark { padding: 0 3px; border-radius: 4px; background: rgb(255 207 63 / 22%); color: inherit; }
.whats-botao { padding: 8px; border-radius: 3px 3px 10px 10px; background: #0f5249; color: #7fdcff; font-size: 13.5px; font-weight: 500; text-align: center; box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%); }
.novo-disparo { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 16px; }
.novo-coluna { gap: 14px; }
.resumo-disparo { position: sticky; top: 14px; }
.passo h2 { display: flex; align-items: center; gap: 10px; }
.passo-n { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; font: 600 14px/1 var(--texto); color: #fff; background: linear-gradient(180deg, #52c1ff, #0d6fe0); box-shadow: inset 0 1px 0 rgb(255 255 255 / 60%); }
.opcoes-modelo, .opcoes-numero { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.opcao { display: flex; flex-direction: column; gap: 3px; padding: 11px 13px; border: 0; border-radius: 14px; text-align: left; cursor: pointer; font-size: 14.5px; color: var(--papel); background: rgb(255 255 255 / 6%); box-shadow: inset 0 0 0 1px var(--fio-forte); }
.opcao:hover:not(:disabled) { background: rgb(255 255 255 / 11%); }
.opcao.ativa { background: linear-gradient(120deg, rgb(31 155 240 / 48%), rgb(31 155 240 / 16%)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 44%), inset 0 0 0 1.5px rgb(170 225 255 / 76%); }
.opcao:disabled { opacity: .5; cursor: not-allowed; }
.campo-bloco { display: flex; flex-direction: column; gap: 6px; }
.etiqueta-escolha { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 11px; cursor: pointer; font-size: 13.5px; background: rgb(255 255 255 / 6%); box-shadow: inset 0 0 0 1px var(--fio-forte); }
.etiqueta-escolha.ativa { background: rgb(31 155 240 / 28%); box-shadow: inset 0 0 0 1px rgb(170 225 255 / 66%); }
.etiqueta-escolha input { margin: 0; }
.marcar { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; cursor: pointer; }
.marcar input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; }
.quantos { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.quantos b { font: 600 44px/1 var(--titulo); }
.quantos span { font-size: 14.5px; color: #d5e2f6; }
.fora-lista { display: flex; flex-direction: column; gap: 5px; padding: 10px 11px; border-radius: 12px; font-size: 13.5px; background: rgb(2 8 34 / 34%); box-shadow: inset 0 0 0 1px var(--fio); }
.fora-lista .fila { flex-wrap: nowrap; align-items: baseline; }
.custo-linha { font-size: 15px; }
.botao.grande { justify-content: center; padding: 13px 16px; font-size: 15.5px; width: 100%; }
.botao:disabled { opacity: .55; cursor: not-allowed; }
.progresso-envio { display: flex; flex-direction: column; gap: 9px; }
.detalhe-disparo { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 16px; }
.detalhe-lado { position: sticky; top: 14px; }
.destinos { display: flex; flex-direction: column; }
.destino { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 11px 2px; border-top: 1px solid var(--fio); }
.destino:first-child { border-top: 0; }
.destino-quem { flex: 1 1 200px; }
.destino-erro { color: #ffb3a7; }
.modelos-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.modelo-cartao h2 { font-size: 17px; }
.modelo-acoes { margin-top: 2px; }
.janela-larga { width: min(560px, calc(100vw - 28px)); }

/* Senha com olho, colaboradores, cadastro repetido */
.senha-campo { position: relative; display: block; }
.senha-campo input { padding-right: 44px; }
.olho { position: absolute; right: 6px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: none; cursor: pointer; }
.olho:hover { background: rgb(255 255 255 / 10%); }
.olho svg.ico { width: 18px; height: 18px; }
.selo-pequeno { width: 86px; height: auto; align-self: center; filter: drop-shadow(0 8px 20px rgb(31 155 240 / 55%)); }
.link-botao.centro { align-self: center; font-size: 13px; color: var(--nevoa); }
.colaborador { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 14px; background: rgb(255 255 255 / 5%); box-shadow: inset 0 0 0 1px rgb(190 220 255 / 18%); }
.colaborador .pessoa-topo { flex: 1 1 240px; }
.colaborador select { width: auto; padding: 6px 10px; font-size: 13px; }
.ja-cadastrado { display: flex; flex-direction: column; gap: 9px; padding: 13px; border-radius: 15px; background: rgb(255 255 255 / 6%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%), inset 0 0 0 1px var(--borda); }
.historico time { color: var(--nevoa); margin-right: 7px; }
.solicitacao { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--fio); font-size: 13px; }
.solicitacao:first-child { border-top: 0; }
.nota-ia { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 13px; background: rgb(102 230 189 / 11%); box-shadow: inset 0 0 0 1px rgb(102 230 189 / 34%); font-size: 13px; }

/* Auditoria */
.auditoria { display: flex; flex-direction: column; }
.reg { display: grid; grid-template-columns: 112px 150px minmax(0, 1fr); gap: 12px; padding: 11px 4px; border-top: 1px solid var(--fio); font-size: 13px; animation: surge .3s var(--suave) both; }
.reg:first-child { border-top: 0; }
.reg time { color: var(--nevoa); }
.reg .quem { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.reg .detalhe { display: block; margin-top: 3px; color: var(--nevoa); font-size: 12.5px; overflow-wrap: anywhere; }
.reservada { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--nevoa); }

/* WhatsApp */
.numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; align-items: start; }
.qr-moldura { position: relative; width: 100%; max-width: 270px; aspect-ratio: 1; margin: 0 auto; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 4px rgb(31 155 240 / 40%), 0 14px 40px rgb(0 0 0 / 44%); animation: surge .45s var(--mola) both; }
.qr-moldura img { width: 100%; height: 100%; display: block; }
.qr-moldura::after { content: ""; position: absolute; left: 0; right: 0; height: 26%; background: linear-gradient(180deg, transparent, rgb(31 155 240 / 28%), transparent); animation: varre 2.6s ease-in-out infinite; }
.passos { margin: 0; padding-left: 20px; font-size: 13px; color: #d5e2f6; display: flex; flex-direction: column; gap: 3px; }

/* Dados da pousada e o que falta */
.progresso { height: 8px; border-radius: 999px; background: rgb(255 255 255 / 10%); overflow: hidden; box-shadow: inset 0 1px 2px rgb(0 0 0 / 40%); }
.progresso i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--oceano), var(--ceu)); transition: width .9s var(--suave); }
.falta { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 18px; font-size: 13px; }
.falta a { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; text-decoration: none; color: #d5e2f6; }
.falta a:hover { color: #fff; text-decoration: underline; }
.falta a::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--sol); translate: 0 -1px; }
.acomodacao { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--fio); }
.acomodacao:last-child { border-bottom: 0; }
.acomodacao .campos { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.acomodacao .largo { grid-column: 1 / -1; }
.salvar-fixo { position: sticky; bottom: 12px; z-index: 3; display: flex; gap: 12px; align-items: center; pointer-events: none; }
.salvar-fixo .botao { pointer-events: auto; }
.rota { display: flex; flex-direction: column; gap: 9px; padding: 14px; border-radius: 16px; background: linear-gradient(170deg, rgb(255 255 255 / 10%), rgb(255 255 255 / 3%)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 26%), inset 0 0 0 1px var(--borda), 0 2px 0 rgb(1 5 24 / 50%); }
.rota.vazia { box-shadow: inset 0 1px 0 rgb(255 255 255 / 26%), inset 0 0 0 1px rgb(255 207 63 / 52%), 0 2px 0 rgb(1 5 24 / 50%); }
.rota-topo { display: flex; gap: 11px; align-items: flex-start; }
.rota h3 { font-size: 14px; }
.pessoa-rota { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.previa-relatorio { white-space: pre-wrap; font-size: 13.5px; line-height: 1.5; padding: 14px; border-radius: 14px; background: rgb(2 8 34 / 50%); box-shadow: inset 0 0 0 1px var(--fio); }

/* Testar a IA e simulações */
.ensaio { display: grid; grid-template-columns: 240px minmax(0, 1fr) 260px; gap: 14px; align-items: start; }
.cenarios { display: flex; flex-direction: column; gap: 7px; }
.cenario { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; text-align: left; border: 0; cursor: pointer; border-radius: 14px; font-size: 13px; font-weight: 500; background: linear-gradient(180deg, rgb(255 255 255 / 15%), rgb(255 255 255 / 5%)); box-shadow: var(--sombra-pilula); transition: background-color .2s, transform .2s var(--mola); }
.cenario:hover { background: rgb(255 255 255 / 11%); transform: translateX(2px); }
.cenario.rodando { background: rgb(31 155 240 / 26%); box-shadow: inset 0 0 0 1px var(--ceu); }
.cenario[disabled] { opacity: .5; cursor: default; transform: none; }
.cenario .tile { width: 30px; height: 30px; border-radius: 10px; }
.cenario svg.ico { width: 16px; height: 16px; }
.celular { width: 100%; display: flex; flex-direction: column; border-radius: 30px; overflow: hidden; padding: 0; position: relative; background: rgb(4 11 40 / 76%); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); box-shadow: 0 0 0 3px #0b1a44, 0 0 0 4.5px rgb(200 220 245 / 70%), 0 34px 80px rgb(0 0 0 / 56%); }
.celular-topo { display: flex; align-items: center; gap: 11px; padding: 12px 16px; background: linear-gradient(180deg, rgb(255 255 255 / 12%), rgb(255 255 255 / 3%)); border-bottom: 1px solid var(--fio); }
.celular-topo img { width: 40px; height: auto; }
.celular-topo small { display: block; font-size: 12px; color: var(--ceu); min-height: 18px; }
.ensaio-chat { display: flex; flex-direction: column; gap: 7px; padding: 18px 16px; min-height: 320px; height: 54dvh; overflow: auto; scrollbar-color: var(--fio-forte) transparent; }
.celular .composicao { padding-bottom: 12px; }
.ficha .dados dd { transition: color .3s; }
.ficha .dados dd.vazio-campo { color: var(--nevoa); font-weight: 400; }
.ficha .dados dd.chegou { animation: chegou 1.2s var(--suave) both; }
@keyframes chegou { 0% { color: var(--sol); transform: translateX(4px); } 100% { transform: none; } }

/* Entrada */
.tela-entrar { position: relative; min-height: 100dvh; display: grid; place-items: center; padding: 22px; overflow: hidden; }
.cartao-entrar { position: relative; width: min(404px, 100%); padding: 18px 30px 28px; border-radius: 28px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(155deg, rgb(255 255 255 / 15%), rgb(255 255 255 / 2%) 50%, rgb(255 207 63 / 6%)), rgb(6 16 52 / 46%); -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 44%), 0 38px 90px rgb(0 4 24 / 62%); animation: sobe .7s var(--suave) .15s both; }
.cartao-entrar .selo-3d { width: 210px; align-self: center; margin: -6px 0 -18px; animation: chega .9s var(--mola) .3s both; }
.cartao-entrar h1 { text-align: center; font-size: 24px; }
.cartao-entrar .sub { text-align: center; margin-top: -9px; }
.cartao-entrar .botao { padding: 12px; margin-top: 3px; }

/* Janelas */
dialog.janela { width: min(660px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); overflow: auto; color: var(--papel); border: 0; padding: 24px; border-radius: 26px; background: linear-gradient(155deg, rgb(255 255 255 / 12%), rgb(255 255 255 / 2%) 40%), rgb(6 16 52 / 90%); box-shadow: 0 40px 100px rgb(0 0 0 / 64%), inset 0 1px 0 rgb(255 255 255 / 36%), inset 0 0 0 1px var(--fio-forte); }
dialog.janela[open] { animation: janela .34s var(--mola) both; }
dialog.janela::backdrop { background: rgb(1 5 24 / 58%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: aparece .25s ease both; }
.folha-itens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.folha-itens a { display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: 16px; text-decoration: none; font-weight: 600; background: rgb(255 255 255 / 6%); box-shadow: inset 0 0 0 1px var(--fio); }

/* Avisos rápidos */
.avisos-tela { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.aviso-tela { display: flex; align-items: center; gap: 12px; padding: 11px 15px; border-radius: 14px; font-weight: 500; background: rgb(6 16 52 / 94%); box-shadow: 0 14px 40px rgb(0 0 0 / 48%), inset 0 0 0 1px var(--fio-forte); animation: sobe .32s var(--mola) both; max-width: min(420px, calc(100vw - 36px)); }
.aviso-tela.ok { box-shadow: 0 14px 40px rgb(0 0 0 / 48%), inset 0 0 0 1px rgb(102 230 189 / 56%); }
.aviso-tela.erro { box-shadow: 0 14px 40px rgb(0 0 0 / 48%), inset 0 0 0 1px rgb(255 132 115 / 62%); }
.aviso-tela.sai { animation: some .25s ease both; }

/* Entrada das telas */
.cascata > * { animation: sobe .55s var(--suave) both; }
.cascata > *:nth-child(2) { animation-delay: .06s; }
.cascata > *:nth-child(3) { animation-delay: .12s; }
.cascata > *:nth-child(4) { animation-delay: .18s; }
.cascata > *:nth-child(5) { animation-delay: .24s; }
.cascata > *:nth-child(n+6) { animation-delay: .3s; }
.kpis > * { animation: sobe .6s var(--mola) both; }
.kpis > *:nth-child(2) { animation-delay: .07s; }
.kpis > *:nth-child(3) { animation-delay: .14s; }
.kpis > *:nth-child(4) { animation-delay: .21s; }
.esqueleto { height: 62px; margin: 10px 14px; border-radius: 14px; background: linear-gradient(100deg, rgb(255 255 255 / 5%) 30%, rgb(255 255 255 / 14%) 50%, rgb(255 255 255 / 5%) 70%); background-size: 240% 100%; animation: brilho 1.3s linear infinite; }

@keyframes sobe { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes some { to { opacity: 0; transform: translateY(8px); } }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes surge { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(.4); } to { transform: scale(1); } }
@keyframes chega { from { opacity: 0; transform: scale(.6) rotate(-10deg); } to { opacity: 1; transform: none; } }
@keyframes janela { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes flutua { from { transform: translateY(-3px) rotate(-1.4deg); } to { transform: translateY(4px) rotate(1.4deg); } }
@keyframes pulsa { 50% { opacity: .35; transform: scale(.82); } }
@keyframes ponto { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes varre { from { top: -26%; } to { top: 100%; } }
@keyframes brilho { from { background-position: 140% 0; } to { background-position: -100% 0; } }

/* Troca de tela */
::view-transition-old(conteudo) { animation: 140ms ease both some-tela; }
::view-transition-new(conteudo) { animation: 280ms var(--suave) both entra-tela; }
::view-transition-group(nav-ativa) { animation-duration: 360ms; animation-timing-function: var(--mola); }
::view-transition-old(lateral), ::view-transition-new(lateral) { animation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
@keyframes some-tela { to { opacity: 0; } }
@keyframes entra-tela { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Aparelho sem fôlego: menos vidro, a mesma cara */
.leve .painel, .leve .vidro, .leve .coluna, .leve .kpi, .leve .lista-conversas, .leve .fio, .leve .resumo-lead, .leve .celular { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: rgb(15 36 100 / 92%); }
.leve .kpi::before, .leve .vista::before, .leve .cartao-entrar::before { animation: none; }

@media (max-width: 1240px) {
  .conversas, .conversas:not(.com-fio) { grid-template-columns: 320px minmax(0, 1fr); }
  .resumo-lead { display: none; }
  .ensaio { grid-template-columns: minmax(0, 1fr) 250px; }
  .ensaio > section { grid-column: 1 / -1; }
  .cenarios { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
@media (max-width: 1540px) {
  .pessoa-linha.de-lead { grid-template-columns: minmax(170px, 1.35fr) 126px 138px 172px minmax(110px, 1fr) 132px; }
  .pessoa-linha.de-lead .c-numeros { display: none; }
}
@media (max-width: 1240px) {
  .pessoa-linha.de-lead { grid-template-columns: minmax(150px, 1fr) 126px 134px 172px 132px; }
  .pessoa-linha.de-cliente { grid-template-columns: minmax(150px, 1fr) 126px 88px 172px minmax(110px, 1fr); }
  .pessoa-linha .c-pessoas { display: none; }
}
@media (max-width: 1100px) {
  .pessoa-linha.de-lead { grid-template-columns: minmax(150px, 1fr) 126px 134px 132px; }
  .pessoa-linha.de-cliente { grid-template-columns: minmax(150px, 1fr) 126px 88px 172px; }
  .pessoa-linha.de-lead .c-datas, .pessoa-linha.de-cliente .c-numeros { display: none; }
}
@media (max-width: 1040px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grafico-medio { grid-column: span 6; }
}
/* O menu acompanha a altura da tela: nunca menor que dá para ler bem. */
@media (min-width: 861px) and (min-height: 1080px) {
  .nav-item { padding-top: 7px; padding-bottom: 7px; font-size: 16.5px; }
  .nav-item .tile { width: 42px; height: 42px; border-radius: 14px; }
  .nav-item svg.ico { width: 23px; height: 23px; }
  .marca img { width: 84px; }
  .agenda-dia { height: 31px; font-size: 14px; }
}
@media (min-width: 861px) and (min-height: 916px) and (max-height: 979px) {
  .nav-item { padding-top: 5px; padding-bottom: 5px; }
  .nav-item .tile { width: 38px; height: 38px; border-radius: 12px; }
  .nav-item svg.ico { width: 20px; height: 20px; }
  .marca img { width: 72px; }
  .agenda-dia { height: 26px; }
}
@media (min-width: 861px) and (max-height: 915px) {
  .nav-item { padding-top: 3px; padding-bottom: 3px; font-size: 15.5px; }
  .nav-item .tile { width: 34px; height: 34px; border-radius: 11px; }
  .nav-item svg.ico { width: 19px; height: 19px; }
  .lateral-topo { padding-bottom: 6px; }
  .marca img { width: 58px; }
  .marca strong { font-size: 16px; }
  .marca small { font-size: 12px; margin-top: 2px; }
  .agenda-dia { height: 24px; font-size: 13px; }
}
@media (max-width: 1100px) {
  .novo-disparo, .detalhe-disparo { grid-template-columns: minmax(0, 1fr); }
  .resumo-disparo, .detalhe-lado { position: static; }
  .conta-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .conta-meta { grid-template-columns: minmax(0, 1fr); }
  .funil { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modelos-grade { grid-template-columns: minmax(0, 1fr); }
  body { font-size: 15px; }
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .lateral { order: 2; flex-direction: row; margin: 0 8px calc(8px + env(safe-area-inset-bottom)); padding: 5px; gap: 0; justify-content: space-around; border-radius: 24px; overflow: visible; background: linear-gradient(170deg, rgb(255 255 255 / 16%), rgb(255 255 255 / 3%) 50%), rgb(13 32 92 / 84%); }
  .marca, .rodape-nav, .so-largo { display: none; }
  .so-celular { display: flex; }
  .nav-item { flex-direction: column; flex: 1; gap: 2px; font-size: 10.5px; padding: 4px 1px 3px; text-align: center; min-width: 0; align-items: center; }
  .nav-item .tile { width: 30px; height: 30px; border-radius: 10px; }
  .nav-item svg.ico { width: 17px; height: 17px; }
  .nav-item .nome { flex: none; }
  .nav-item .selo { position: absolute; top: -3px; left: 54%; font-size: 10px; line-height: 15px; min-width: 15px; padding: 0 4px; }
  .pagina { padding: 14px 12px 30px; gap: 14px; }
  .painel, .vidro { padding: 16px; border-radius: 20px; -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
  .vista { grid-template-columns: minmax(0, 1fr) 112px; padding: 14px 16px; border-radius: 22px; }
  .vista h1 { font-size: 25px; }
  .vista-texto { gap: 10px; }
  .pilula { padding: 5px 10px; font-size: 12px; }
  .pilula b { font-size: 15px; }
  .kpi { padding: 12px 13px 10px; border-radius: 18px; -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); }
  .kpi b { font-size: 32px; }
  .kpi .tile { width: 30px; height: 30px; border-radius: 10px; }
  .kpi-rotulo { font-size: 11.5px; }
  .sparkline { width: 54px; }
  .faixa, .numeros, .grade-2, .grade-3, .falta { grid-template-columns: minmax(0, 1fr); }
  .faixa > a { border-left: 0; border-top: 1px solid var(--fio); }
  .faixa > a:first-child { border-top: 0; }
  .conversas, .conversas:not(.com-fio) { grid-template-columns: minmax(0, 1fr); padding: 8px; gap: 0; }
  .conversas.com-fio .lista-conversas { display: none; }
  .conversas:not(.com-fio) .fio { display: none; }
  .voltar { display: inline-flex; }
  .acomodacao { grid-template-columns: minmax(0, 1fr); }
  .balao { max-width: 86%; }
  .quadro { grid-auto-columns: 82%; }
  .coluna { max-height: 72dvh; }
  .seletor-numero:not(.compacto) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-self: stretch; }
  .seletor-numero:not(.compacto) button { justify-content: center; }
  .coluna { -webkit-backdrop-filter: none; backdrop-filter: none; }
  input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=tel], input[type=date], input[type=time], input[type=datetime-local], input[type=file], select, textarea { font-size: 16px; }
  .avisos-tela { right: 12px; left: 12px; bottom: 84px; align-items: stretch; }
  .celular { border-radius: 24px; }
  .ensaio { grid-template-columns: minmax(0, 1fr); }
  .ensaio-chat { height: 52dvh; }
  .cenarios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reg { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pessoa-rota { grid-template-columns: minmax(0, 1fr) auto; }
  .pessoa-rota input:nth-child(2) { grid-column: 1; }
  .pessoa-rota button { grid-row: 1 / span 2; grid-column: 2; }
  .cartao-entrar { padding: 12px 22px 24px; }
  .composicao .rotulo { display: none; }
  .sino.so-celular { display: grid; position: fixed; z-index: 30; top: 12px; right: 14px; width: 36px; height: 36px; }
  .sino.so-celular svg.ico { width: 19px; height: 19px; }
  .lembrete-opcoes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lembrete-opcoes .botao { grid-column: 1 / -1; }
  .vista-escolha { width: 100%; }
  .vista-escolha button { flex: 1; justify-content: center; }
  .pessoa-linha.de-lead, .pessoa-linha.de-cliente { display: flex; flex-wrap: wrap; gap: 5px 8px; padding: 11px 8px; }
  .pessoa-linha.cabecalho.de-lead, .pessoa-linha.cabecalho.de-cliente { display: none; }
  .pessoa-linha .c-nome { flex: 1 0 100%; }
  .pessoa-linha .c-fone { flex: 1 1 auto; }
  .pessoa-linha.de-cliente .c-etapa { display: none; }
  .pessoa-linha.de-lead .c-datas, .pessoa-linha.de-cliente .c-datas { display: block; flex: 1 0 100%; }
  .pessoa-linha.de-lead .c-pessoas, .pessoa-linha.de-cliente .c-pessoas { display: block; flex: 1 0 100%; }
  .pessoa-linha.de-lead .c-numeros, .pessoa-linha.de-cliente .c-numeros { display: flex; flex: 1 0 100%; }
  .pessoa-linha .c-datas:empty, .pessoa-linha .c-pessoas:empty, .pessoa-linha .c-numeros:empty { display: none; }
  .pessoa-linha .c-acao { flex: 1 0 100%; }
  .composicao .botao { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
