/* Demonstração pública do Encanta — usa os tokens de estilo.css (tema claro inspirado na Natura). */
body.demo { background: var(--bg); }
.demo-topo { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.demo-topo .espaco { flex: 1; }
.demo-logo img { display: block; height: 34px; width: auto; }
.demo-selo { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; }
.demo-pagina { max-width: 1240px; margin: 0 auto; padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 48px) 48px; }

.demo-abertura { max-width: 760px; margin-bottom: 28px; }
.demo-sobre { margin: 0 0 14px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; display: flex; align-items: center; gap: 14px; }
.demo-sobre::before { content: ''; width: 36px; height: 1px; background: var(--acc); }
.demo-abertura h1 { font-weight: 300; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -.035em; }
.demo-abertura h1 em { font-style: normal; font-weight: 600; }
.demo-lead { color: var(--ink-2); font-size: 17px; max-width: 640px; margin: 16px 0 0; }

.demo-cenarios { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.demo-cenario { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--raio-m); padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s; }
.demo-cenario b { font-size: 15px; font-weight: 600; }
.demo-cenario span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.demo-cenario:hover { border-color: var(--acc); }
.demo-cenario[aria-pressed="true"] { background: var(--acc-soft-2); border-color: var(--acc); box-shadow: var(--sombra-leve); }

.demo-palco { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.demo-celular { position: sticky; top: 84px; }
.demo-moldura { background: #1A1A1A; border-radius: 40px; padding: 10px; box-shadow: 0 40px 80px -48px rgba(26,26,26,.6); }
.demo-tela { background: #EFEAE2; border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; height: 640px; }
.demo-wa-topo { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #FFFFFF; border-bottom: 1px solid #E6E1D8; color: #1A1A1A; }
.demo-wa-topo b { display: block; font-size: 15px; }
.demo-wa-topo small { color: #6B6B6B; font-size: 12px; }
.demo-avatar-loja { width: 38px; height: 38px; border-radius: 50%; background: #F48646; display: grid; place-items: center; flex: none; }
.demo-avatar-loja img { width: 22px; height: 22px; }
.demo-wa-msgs { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.demo-bolha { max-width: 84%; padding: 9px 12px 6px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; color: #1A1A1A; box-shadow: 0 1px 1px rgba(0,0,0,.06); animation: demoEntra .22s ease; word-wrap: break-word; }
.demo-bolha.cliente { align-self: flex-end; background: #DCF3D0; border-bottom-right-radius: 4px; }
.demo-bolha.ia, .demo-bolha.atendente { align-self: flex-start; background: #FFFFFF; border-bottom-left-radius: 4px; }
.demo-bolha.prod { padding: 8px; }
.demo-quem { display: block; font-size: 11.5px; font-weight: 600; color: #A8481A; margin-bottom: 2px; }
.demo-bolha.atendente .demo-quem { color: #1F5C8B; }
.demo-hora { display: flex; justify-content: flex-end; align-items: center; gap: 3px; font-size: 11px; color: #8A8A8A; margin-top: 2px; }
.demo-bolha.cliente .demo-hora svg { color: #3B9DE0; }
.demo-divisor { align-self: center; font-size: 12px; color: #5A5A5A; background: #FFF6D9; border-radius: 8px; padding: 4px 12px; margin: 6px 0; }
.demo-digitando { align-self: flex-start; background: #FFFFFF; border-radius: 14px; padding: 12px 14px; display: flex; gap: 4px; }
.demo-digitando i { width: 7px; height: 7px; border-radius: 50%; background: #B5B5B5; animation: demoPisca 1s infinite; }
.demo-digitando i:nth-child(2) { animation-delay: .15s; } .demo-digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes demoPisca { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes demoEntra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.demo-prod { display: flex; gap: 10px; align-items: center; background: #FAF7F2; border-radius: 10px; padding: 10px; min-width: 220px; }
.demo-prod b { display: block; font-size: 14px; line-height: 1.3; }
.demo-prod span { display: block; font-size: 12.5px; color: #6B6B6B; }
.demo-prod .demo-prod-preco { margin-top: 4px; color: #1A1A1A; font-size: 14px; }
.demo-prod s { color: #8A8A8A; font-size: 12px; }
.demo-prod em, .demo-item em { font-style: normal; font-size: 11.5px; font-weight: 600; color: #A8481A; }
.demo-frasco { width: 52px; height: 62px; border-radius: 10px; background: #FFFFFF; display: grid; place-items: center; flex: none; }
.demo-frasco.pq { width: 44px; height: 52px; }
.demo-frasco.pq svg { width: 32px; height: 44px; }
.demo-wa-opcoes { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 14px; background: #F6F3EE; border-top: 1px solid #E6E1D8; min-height: 58px; }
.demo-wa-opcoes:empty::before { content: 'A cliente está lendo…'; text-align: center; font-size: 13px; color: #8A8A8A; padding: 8px; }
.demo-opcao { text-align: left; border: 1px solid #D9D3C8; background: #FFFFFF; color: #1A1A1A; border-radius: 999px; padding: 10px 16px; font: 500 14px var(--f); cursor: pointer; transition: border-color .15s, background .15s; }
.demo-opcao:hover { border-color: #F48646; background: #FFF6EF; }
.demo-opcao.forte { background: #F48646; border-color: #F48646; color: #1A1A1A; font-weight: 600; text-align: center; }

.demo-lado { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.demo-painel-topo, .demo-explica-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.demo-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.demo-kpis > div { background: var(--surface-2); border-radius: var(--raio-s); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.demo-kpis span { font-size: 12px; color: var(--muted); }
.demo-kpis b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
#painelExtra { display: flex; flex-direction: column; gap: 10px; }
#painelExtra > * { animation: demoEntra .25s ease; margin: 0; }
.demo-ficha { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--raio-s); padding: 10px 12px; }
.demo-ficha b { display: block; } .demo-ficha span { font-size: 13px; color: var(--muted); }
.demo-ficha .pill { font-style: normal; }
.demo-av { width: 38px; height: 38px; border-radius: 50%; background: var(--acc-soft); color: var(--acc-text); display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
.demo-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--line)); background: var(--warn-soft); border-radius: var(--raio-s); padding: 10px 12px; }
.demo-fila.ok { border-color: var(--line); background: var(--surface-2); }
.demo-fila b { display: block; font-size: 14px; }
.demo-pedido { border: 1px solid var(--line); border-radius: var(--raio-s); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.demo-desc { color: var(--ok); }
.demo-nota { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--raio-s); padding: 10px 12px; }
.demo-estrelas { color: #E0A33A; display: inline-flex; gap: 2px; }
.demo-acao { animation: demoPulsa 1.6s ease-in-out infinite !important; }
@keyframes demoPulsa { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--acc) 45%, transparent); } 50% { box-shadow: 0 0 0 8px transparent; } }
.demo-passos { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; max-height: 300px; overflow-y: auto; }
.demo-passos li { font-size: 14px; line-height: 1.5; color: var(--ink-2); animation: demoEntra .25s ease; }
.demo-passos li::marker { color: var(--acc); font-weight: 600; }
.demo-passos:empty::before { content: 'Toque numa mensagem da cliente para começar.'; color: var(--muted); font-size: 14px; margin-left: -20px; }

.demo-preco { margin-top: 32px; }
.demo-preco-grade { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.demo-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.demo-item:last-child { border-bottom: 0; }
.demo-item-txt { flex: 1; min-width: 0; }
.demo-item-txt b { display: block; font-size: 14.5px; font-weight: 500; }
.demo-item-txt span { font-size: 13px; color: var(--muted); }
.demo-item-txt s { font-size: 12px; }
.demo-qtd { display: flex; align-items: center; gap: 10px; flex: none; }
.demo-qtd button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); font-size: 18px; cursor: pointer; color: var(--ink); }
.demo-qtd button:hover { border-color: var(--acc); }
.demo-qtd b { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.demo-carrinho { background: var(--surface-2); border-radius: var(--raio-m); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 84px; }
.demo-sub { border-top: 1px solid var(--line-2); padding-top: 8px; margin-top: 4px; }
.demo-total { border-top: 1px solid var(--line-2); padding-top: 8px; font-size: 17px; }
.demo-dica { margin: 4px 0 0; background: var(--acc-soft-2); border-radius: 10px; padding: 8px 10px; color: var(--ink-2); }

.demo-final { text-align: center; padding: 56px 16px 8px; }
.demo-final h2 { font-weight: 400; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.025em; }
.demo-final p { max-width: 560px; margin: 10px auto 22px; }
.demo-rodape { text-align: center; padding: 24px 16px 32px; }

@media (max-width: 1100px) { .demo-cenarios { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .demo-palco, .demo-preco-grade { grid-template-columns: minmax(0, 1fr); }
  .demo-celular { position: static; }
  .demo-moldura { border-radius: 32px; padding: 8px; }
  .demo-tela { height: 500px; min-height: 0; border-radius: 26px; }
  .demo-kpis b { font-size: 16px; }
  .demo-carrinho { position: static; }
  .demo-cenarios { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .demo-cenario { flex: 0 0 72%; scroll-snap-align: start; }
  .demo-selo { display: none; }
}
@media (prefers-reduced-motion: reduce) { .demo-wa-msgs { scroll-behavior: auto; } }
.demo-topo.topo { padding: 14px clamp(16px, 4vw, 48px); }
.demo-topo .tema-seletor { box-shadow: none; }
.demo-logo { flex: none; display: block; }
.demo-logo img { flex: none; height: 30px; width: auto; max-width: none; }
@media (max-width: 420px) { .demo-topo .btn { padding: 0 14px; min-height: 40px; font-size: 14px; } .demo-topo .tema-rotulo { display: none; } }
@media (max-width: 640px) { .demo-so-largo { display: none; } }

/* ---------- legenda e fotos ---------- */
.demo-legenda { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.demo-prod { display: flex; gap: 10px; align-items: center; background: #FFFFFF; border-radius: 10px; padding: 4px; min-width: 0; }
.demo-prod img { width: 84px; height: 84px; object-fit: contain; border-radius: 8px; background: #FFFFFF; flex: none; }
.demo-prod em { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: #FFE9DA; color: #A8481A; font-style: normal; font-size: 11px; font-weight: 600; }
.demo-item-foto { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: #FFFFFF; border: 1px solid var(--line); flex: none; }
.demo-aguarda { margin: 4px 0; text-align: center; font-size: 13px; color: #5A5A5A; background: #FFF6D9; border-radius: 12px; padding: 10px 12px; }

/* ---------- CRM (réplica do painel da loja) ---------- */
.crm { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px -56px rgba(26,26,26,.55), 0 2px 10px rgba(26,26,26,.04); }
.crm-janela { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.crm-janela i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.crm-janela span { margin-left: 10px; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 14px; }
.crm-app { display: grid; grid-template-columns: 178px minmax(0, 1fr); height: 640px; }
.crm-lat { background: var(--surface); border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.crm-marca { display: flex; align-items: center; gap: 8px; padding: 2px 8px 14px; }
.crm-marca img { width: 28px; height: 28px; }
.crm-marca b { font-size: 17px; letter-spacing: -.02em; }
.crm-nav { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 999px; font-size: 13px; color: var(--ink-2); transition: background .2s, color .2s; }
.crm-nav svg { width: 17px; height: 17px; flex: none; color: var(--muted); }
.crm-nav.ativo { background: var(--acc-soft); color: var(--ink); font-weight: 600; }
.crm-nav.ativo svg { color: var(--acc-text); }
.crm-nav em { margin-left: auto; background: var(--acc); color: #1A1A1A; font-style: normal; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 6px; animation: demoEntra .3s ease; }
.crm-eu { margin-top: auto; display: flex; gap: 8px; align-items: center; padding: 10px 6px 0; border-top: 1px solid var(--line); }
.crm-eu > span { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.crm-eu b { display: block; font-size: 12.5px; } .crm-eu small { font-size: 11px; color: var(--muted); }
.crm-main { display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.crm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px 14px; }
.crm-kpis > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; }
.crm-kpis span { font-size: 11px; color: var(--muted); }
.crm-kpis b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.crm-kpis > div:first-child { background: linear-gradient(150deg, var(--acc-soft-2), var(--acc-soft)); border-color: color-mix(in srgb, var(--acc) 30%, var(--line)); }
.crm-tela { flex: 1; min-height: 0; padding: 0 14px 14px; animation: demoEntra .25s ease; }
.crm-vazio { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; color: var(--muted); font-size: 13px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: 14px; padding: 20px; }
.crm-vazio svg { width: 34px; height: 34px; color: var(--acc); }
.crm-vazio b { color: var(--ink); font-size: 15px; }
.crm-atend { display: grid; grid-template-columns: 170px minmax(0, 1fr) 190px; gap: 10px; height: 100%; }
.crm-lista, .crm-conversa, .crm-ficha { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; min-height: 0; }
.crm-lista { padding: 8px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.crm-busca { font-size: 12px; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 7px 12px; margin-bottom: 4px; }
.crm-conv { display: flex; gap: 8px; padding: 8px; border-radius: 10px; }
.crm-conv.ativa { background: var(--acc-soft-2); box-shadow: inset 3px 0 0 var(--acc); }
.crm-conv.apagada { opacity: .5; }
.crm-conv b { display: block; font-size: 12.5px; } .crm-conv span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.crm-conv .pill { margin-top: 4px; font-style: normal; font-size: 10.5px; }
.crm-av { width: 30px; height: 30px; border-radius: 50%; background: var(--acc-soft); color: var(--acc-text); display: grid; place-items: center; font-size: 11px; font-weight: 600; flex: none; }
.crm-conversa { display: flex; flex-direction: column; overflow: hidden; }
.crm-conversa-topo { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.crm-conversa-topo span { color: var(--muted); font-size: 12px; } .crm-conversa-topo .pill { margin-left: auto; font-style: normal; }
.crm-chat { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); }
.crm-msg { max-width: 86%; font-size: 12.5px; line-height: 1.45; padding: 7px 10px; border-radius: 12px; animation: demoEntra .2s ease; }
.crm-msg.cliente { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.crm-msg.ia { align-self: flex-end; background: var(--acc-soft-2); border: 1px solid color-mix(in srgb, var(--acc) 20%, transparent); border-bottom-right-radius: 4px; }
.crm-msg.atendente { align-self: flex-end; background: var(--info-soft); border-bottom-right-radius: 4px; }
.crm-msg.prod { display: flex; align-items: center; gap: 8px; }
.crm-msg.prod img { width: 40px; height: 40px; object-fit: contain; background: #FFFFFF; border-radius: 6px; }
.crm-msg.prod b { display: block; }
.crm-tag { display: inline-block; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--acc-text); margin-right: 6px; }
.crm-tag.eq { color: var(--info); }
.crm-divisor { align-self: center; font-size: 11px; color: var(--muted); background: var(--surface); border-radius: 8px; padding: 2px 10px; }
.crm-digitar { font-size: 12px; color: var(--muted); padding: 10px 12px; border-top: 1px solid var(--line); }
.crm-ficha { padding: 12px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; font-size: 12.5px; }
.crm-ficha > b { font-size: 14px; }
.crm-rot { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.crm-tel { color: var(--muted); font-size: 12px; }
.crm-etq { display: flex; flex-wrap: wrap; gap: 4px; }
.crm-etq .pill { font-style: normal; font-size: 10.5px; animation: demoEntra .3s ease; }
.crm-pedido { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 4px; animation: demoEntra .3s ease; }
.crm-pedido > div { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; }
.crm-pedido > div span { color: var(--ink-2); }
.crm-pedido .desc { color: var(--ok); }
.crm-pedido .tot { border-top: 1px solid var(--line); padding-top: 4px; font-size: 13px; }
.crm-pedido small { color: var(--muted); font-size: 11px; }
.crm-alerta { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 8px 10px; font-size: 12px; font-weight: 500; animation: demoEntra .3s ease; }
.crm-alerta.neutro { background: var(--surface-2); color: var(--ink-2); }
.crm-estrelas { color: #E0A33A; display: inline-flex; gap: 2px; }
.crm-botao { border: 0; border-radius: 999px; background: var(--acc); color: #1A1A1A; font: 600 13px var(--f); padding: 10px 16px; cursor: pointer; animation: demoPulsa 1.6s ease-in-out infinite; }
.crm-pagina { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; height: 100%; overflow-y: auto; }
.crm-pagina h3 { margin: 0; font-size: 17px; font-weight: 600; }
.crm-sub { margin: 4px 0 14px; color: var(--muted); font-size: 12.5px; }
.crm-linha-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--line)); background: var(--warn-soft); border-radius: 12px; padding: 12px 14px; animation: demoEntra .3s ease; }
.crm-linha-fila.ok { background: var(--surface-2); border-color: var(--line); }
.crm-linha-fila b { display: block; font-size: 14px; } .crm-linha-fila span { font-size: 12px; color: var(--muted); }
.crm-linha-fila .pill { font-style: normal; }
.crm-responder { display: flex; align-items: center; gap: 8px; }
.crm-responder > span { background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--ink); }
.crm-rolavel { overflow-x: auto; }
.crm-tabela { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.crm-tabela th { text-align: left; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
.crm-tabela td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.crm-tabela tr.novo td { background: var(--acc-soft-2); animation: demoEntra .4s ease; }
.crm-tabela .pill { font-style: normal; }
.crm-reguas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.crm-reguas > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.crm-reguas > div.ativa { border-color: var(--acc); background: var(--acc-soft-2); animation: demoEntra .3s ease; }
.crm-reguas b { font-size: 14px; } .crm-reguas span { font-size: 12px; color: var(--muted); }
.crm-reguas em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ok); margin-top: 4px; }
.crm-reguas > div.ativa em { color: var(--acc-text); }
.crm-toast { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; background: #1A1A1A; color: #FFFFFF; border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 500; box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); animation: demoEntra .3s ease; }
.crm-toast svg { width: 18px; height: 18px; color: #F48646; }
.demo-crm-area { min-width: 0; display: flex; flex-direction: column; }
.demo-explica { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.demo-explica-rot { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--acc-text); }
.demo-explica p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink); animation: demoEntra .3s ease; }
.demo-explica .demo-passos { margin-top: 10px; max-height: 120px; padding-left: 18px; }
.demo-explica .demo-passos li:first-child { display: none; }
.demo-explica .demo-passos li { font-size: 13px; color: var(--muted); }
.demo-explica .demo-passos:empty { display: none; }
@media (max-width: 1180px) { .crm-atend { grid-template-columns: minmax(0, 1fr) 180px; } .crm-lista { display: none; } }
@media (max-width: 860px) {
  .demo-palco { grid-template-columns: minmax(0, 1fr); }
  .crm-app { grid-template-columns: 52px minmax(0, 1fr); height: 560px; }
  .crm-lat { padding: 10px 6px; align-items: center; }
  .crm-marca b, .crm-nav > span, .crm-eu div { display: none; }
  .crm-nav { padding: 9px; position: relative; } .crm-nav em { position: absolute; top: -2px; right: -4px; min-width: 16px; height: 16px; font-size: 10px; }
  .crm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-atend { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .crm-ficha { max-height: 170px; }
}
/* mais espaço para o CRM */
.demo-pagina { max-width: 1420px; }
.demo-palco { grid-template-columns: 320px minmax(0, 1fr); }
.crm-atend { grid-template-columns: 150px minmax(0, 1fr) 176px; }
.crm-conversa-topo { white-space: nowrap; min-width: 0; }
.crm-conversa-topo b, .crm-conversa-topo span { overflow: hidden; text-overflow: ellipsis; }
.crm-conversa-topo .pill { flex: none; }
.crm-conv .pill { white-space: nowrap; }
.crm-msg { max-width: 92%; }
/* a lista de conversas só aparece quando cabe com folga; abaixo disso, conversa + ficha */
@media (max-width: 1499px) { .crm-atend { grid-template-columns: minmax(0, 1fr) 176px; } .crm-lista { display: none; } }
@media (min-width: 1500px) {
  .demo-pagina { max-width: 1640px; }
  .demo-palco { grid-template-columns: 340px minmax(0, 1fr); gap: 28px; }
  .crm-atend { grid-template-columns: 210px minmax(0, 1fr) 210px; }
  .crm-app { height: 680px; }
  .demo-tela { height: 680px; }
}
@media (max-width: 860px) {
  .demo-palco { grid-template-columns: minmax(0, 1fr); }
  .demo-topo { gap: 8px; }
  .demo-topo .btn.pri { padding: 0 14px; min-height: 40px; font-size: 14px; }
  .demo-topo .tema-seletor button { padding: 0 8px; }
}
@media (max-width: 860px) {
  .crm-atend { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .crm-ficha { max-height: 160px; }
  .crm-app { height: 600px; }
}
