/* Be Connect — visual da Visão Executiva (8102), 13/10/2026.
   Tokens, menu lateral, topo, cartões, indicadores, tabelas e temas copiados do 8102
   (visao-executiva-novo/src/index.html). O tema base é ESCURO; Claro e Painel entram por cima
   (Painel = claro mantendo a arte da montanha na lateral). Os nomes de classe são os do Be Connect. */
:root {
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --violet: #7A2BFF; --violet-bright: #A46BFF; --violet-dim: #6A3BC9;
  --violet-050: #1C1530; --violet-100: #2B2049;

  --fundo: #0A0A14; --fundo-2: #0D0D1A;
  --paper: #12121F; --paper-2: #171728;
  --text: #EDEAF6; --text-2: #C9C4DC; --muted: #8B85A3;
  --line: #22213A; --line-2: #2C2B4A; --grid: #1C1B30;

  --ok: #2FC36D; --ruim: #F2506E; --aviso: #F2994A; --teal: #12B0A0; --azul: #3A8DFF;
  --texto-realce: var(--text);

  --r-btn: 9px; --r-card: 14px; --r-pill: 999px;
  --tip-bg: #05050C; --tip-fg: #FFFFFF;
  --veu: rgba(5, 5, 12, .72);
  --sh: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px -14px rgba(0, 0, 0, .8);
  --sh-2: 0 2px 6px rgba(0, 0, 0, .5), 0 20px 48px -18px rgba(122, 43, 255, .45);
  --topo-fundo: rgba(10, 10, 20, .82);

  /* nomes que as telas do Be Connect já usam */
  --violet-solido: var(--violet);
  --ink-2: var(--tip-bg);
  --grid-2: var(--line-2);
  --sev-ok: var(--ok); --sev-critico: var(--ruim); --sev-atencao: var(--aviso); --sev-neutro: var(--muted);
  --sev-ok-fundo: rgba(47, 195, 109, .14); --sev-critico-fundo: rgba(242, 80, 110, .14);
  --sev-atencao-fundo: rgba(242, 153, 74, .14);
  --positivo: var(--ok); --negativo: var(--ruim); --alerta: var(--aviso);
  --borda: var(--line); --texto: var(--text); --texto-3: var(--muted); --superficie-2: var(--paper-2);
  --primaria-2: var(--violet); --serie-1: var(--violet); --info-fundo: var(--violet-050); --raio: var(--r-card);
  --shadow-card: var(--sh); --shadow-violet: 0 4px 14px rgba(122, 43, 255, .45);
}
[data-tema="claro"], [data-tema="claro-painel"] {
  --fundo: #F7F6FB; --fundo-2: #FFFFFF;
  --paper: #FFFFFF; --paper-2: #F4F2FA;
  --text: #1B1A24; --text-2: #3A3548; --muted: #7C7889;
  --line: #E7E3F0; --line-2: #DCD6EB; --grid: #EFEDF6;
  --violet-050: #F5F0FF; --violet-100: #E9DDFF;
  --texto-realce: var(--violet);
  --ok: #1E9E56; --ruim: #D92E52; --aviso: #C77A2B; --teal: #0E8F83; --azul: #2A6FD6;
  --tip-bg: #12101C; --tip-fg: #FFFFFF;
  --veu: rgba(28, 22, 52, .38);
  --sh: 0 1px 2px rgba(11, 10, 18, .05), 0 8px 24px -12px rgba(11, 10, 18, .12);
  --sh-2: 0 2px 4px rgba(11, 10, 18, .05), 0 18px 44px -18px rgba(122, 43, 255, .22);
  --topo-fundo: rgba(255, 255, 255, .86);
  --shadow-violet: 0 3px 12px rgba(122, 43, 255, .32);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; scrollbar-color: var(--line-2) transparent; }
html[data-tema="claro"], html[data-tema="claro-painel"] { color-scheme: light; }
body { margin: 0; background: var(--fundo); color: var(--text); font-family: var(--font-body); font-weight: 400; font-size: 13px; line-height: 1.5; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
h2 { font-weight: 600; font-size: 13.5px; }
h3 { font-family: var(--font-display); font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--violet-bright); }
[data-tema="claro"] a:not(.nav-btn), [data-tema="claro-painel"] a:not(.nav-btn) { color: var(--violet); }

/* ================= casca: lateral + principal ================= */
.app { display: grid; grid-template-columns: auto 1fr; min-height: 100vh; }
.lateral {
  width: 196px; flex: none; position: sticky; top: 0; height: 100vh; background: var(--fundo-2);
  border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden;
}
.lat-marca { padding: 18px 16px 14px; text-align: center; }
.lat-marca .logo { display: block; height: 48px; width: auto; max-width: 100%; margin-inline: auto; filter: invert(1); }
[data-tema="claro"] .lat-marca .logo, [data-tema="claro-painel"] .lat-marca .logo { filter: none; }
.lat-marca .tag { font-size: 7.5px; letter-spacing: .17em; text-indent: .17em; color: var(--muted); text-transform: uppercase; margin-top: 5px; font-weight: 600; }
.lat-marca .produto { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: -.01em; margin-top: 8px; color: var(--text); }
.lat-marca .produto em { font-style: normal; color: var(--violet-bright); }
[data-tema="claro"] .lat-marca .produto em, [data-tema="claro-painel"] .lat-marca .produto em { color: var(--violet); }
.lat-nav { padding: 6px 10px; display: flex; flex-direction: column; gap: 1px; flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.lat-secao { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 12px 11px 5px; }
.lat-secao:first-child { padding-top: 4px; }
.nav-btn {
  display: flex; align-items: center; gap: 10px; padding: 8px 11px; border-radius: var(--r-btn);
  color: var(--muted); font-size: 12.5px; font-weight: 500; width: 100%; text-align: left; border: 0;
  background: transparent; cursor: pointer; font-family: var(--font-body); text-decoration: none; line-height: 1.3;
  transition: background .16s, color .16s;
}
.nav-btn svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-btn:hover { background: var(--violet-050); color: var(--text); }
.nav-btn.ativa { background: linear-gradient(95deg, var(--violet), #6322D6); color: #fff; box-shadow: 0 4px 14px rgba(122, 43, 255, .45); }
[data-tema="claro"] .nav-btn.ativa, [data-tema="claro-painel"] .nav-btn.ativa { box-shadow: 0 3px 12px rgba(122, 43, 255, .32); }
.nav-btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

/* montanha + frase no pé (escuro e Painel); no Claro sobra a frase em texto */
.lat-arte { position: relative; height: 230px; flex: none; }
.lat-arte svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lat-frase { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; font-family: var(--font-display); font-style: italic; font-size: 12.5px; line-height: 1.45; color: #C9C4DC; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.lat-frase::after { content: ''; display: block; width: 26px; height: 2px; background: var(--violet); margin-top: 9px; border-radius: 2px; }
.lat-lema { display: none; padding: 16px; border-top: 1px solid var(--line); margin-top: auto; font-family: var(--font-display); font-style: italic; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.lat-lema::after { content: ''; display: block; width: 26px; height: 2px; background: var(--violet); margin-top: 9px; border-radius: 2px; }
[data-tema="claro"] .lat-arte { display: none; }
[data-tema="claro"] .lat-lema { display: block; }

.lat-usuario { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-top: 1px solid var(--line); flex: none; }
.lat-usuario .av { width: 30px; height: 30px; border-radius: var(--r-pill); flex: none; display: grid; place-items: center; background: linear-gradient(145deg, var(--violet-bright), var(--violet)); color: #fff; font-size: 10.5px; font-weight: 700; font-family: var(--font-mono); }
.lat-usuario .quem { font-size: 12px; font-weight: 600; line-height: 1.2; max-width: 96px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lat-usuario .onde { font-size: 10px; color: var(--muted); }
.lat-usuario button { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 600; padding: 4px 6px; border-radius: 6px; font-family: var(--font-body); }
.lat-usuario button:hover { color: var(--text); background: var(--violet-050); }

.principal {
  min-width: 0; display: flex; flex-direction: column;
  background: radial-gradient(900px 420px at 20% -8%, rgba(122, 43, 255, .10), transparent 60%),
              radial-gradient(700px 360px at 92% -4%, rgba(58, 141, 255, .07), transparent 60%);
}
[data-tema="claro"] .principal, [data-tema="claro-painel"] .principal {
  background: radial-gradient(900px 420px at 20% -8%, rgba(122, 43, 255, .06), transparent 60%),
              radial-gradient(700px 360px at 92% -4%, rgba(58, 141, 255, .05), transparent 60%);
}
.topo-pagina {
  display: flex; align-items: center; gap: 10px; padding: 13px 20px; position: sticky; top: 0; z-index: 40;
  background: var(--topo-fundo); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.topo-pagina h1 { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.topo-pagina .espaco { flex: 1; }
.topo-pagina .relogio { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.selo { display: inline-flex; align-items: center; border-radius: var(--r-pill); padding: 4px 12px; font-size: 10.5px; font-weight: 600; background: var(--violet-050); border: 1px solid var(--violet-100); color: var(--violet-bright); }
[data-tema="claro"] .selo, [data-tema="claro-painel"] .selo { color: var(--violet); }
.conteudo { padding: 20px clamp(.875rem, 1.4vw, 1.25rem) 34px; width: 100%; max-width: 120rem; margin-inline: auto; }

/* seletor de tema (topo, igual ao 8102) */
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; font-family: var(--font-body); font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 5px 12px; border-radius: var(--r-pill); cursor: pointer; transition: background .18s, color .18s; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--violet); color: #fff; }
.seg .bolinha { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); display: inline-block; margin-right: 5px; vertical-align: -1px; }

/* filtro em "chip" (como "Todos os assessores" do 8102) */
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-btn); padding: 7px 11px; font-size: 12px; font-weight: 600; color: var(--text); cursor: pointer; font-family: var(--font-body); margin: 0; }
.chip svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.chip select { border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; outline: 0; padding: 0; width: auto; max-width: 180px; box-shadow: none; }
.chip select:focus { box-shadow: none; }
.chip:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(122, 43, 255, .22); }

/* ================= componentes ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 34px;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-btn); padding: 0 13px;
  font-size: 12px; font-weight: 600; color: var(--text); cursor: pointer; font-family: var(--font-body); white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
}
.btn svg { width: 15px; height: 15px; }
.btn:hover:not(:disabled) { border-color: var(--violet); color: var(--text); }
.btn:focus-visible { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(122, 43, 255, .22); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primario, .btn.sucesso { background: linear-gradient(95deg, var(--violet), #6322D6); border-color: transparent; color: #fff; box-shadow: var(--shadow-violet); }
.btn.primario:hover:not(:disabled), .btn.sucesso:hover:not(:disabled) { filter: brightness(1.1); color: #fff; border-color: transparent; }
.btn.perigo { background: var(--ruim); border-color: var(--ruim); color: #fff; }
.btn.perigo:hover:not(:disabled) { filter: brightness(1.08); color: #fff; border-color: var(--ruim); }
.btn.grande { min-height: 42px; padding: 0 20px; font-size: 13.5px; }
.btn.pequeno { min-height: 26px; padding: 0 9px; font-size: 11px; }

.cartao { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh); min-width: 0; transition: box-shadow .2s, border-color .2s; }
.cartao:hover { box-shadow: var(--sh-2); }
.modal.cartao:hover, .caixa-login.cartao:hover { box-shadow: var(--sh-2); }
.cartao > .cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 17px 0; flex-wrap: wrap; }
.cartao > .cab h2 { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; letter-spacing: -.01em; }
.cartao > .corpo { padding: 12px 17px 15px; }

/* pílula de estado (mesmo desenho do .pill do 8102, com o ponto de status) */
.pilula {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: var(--r-pill);
  font-size: 10px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; border: 1px solid transparent;
  background: rgba(139, 133, 163, .14); color: var(--muted);
}
.pilula::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.est-offline { background: rgba(139, 133, 163, .14); color: var(--muted); }
.est-pausado { background: rgba(242, 153, 74, .14); color: var(--aviso); }
.est-discando, .est-analisando, .est-aguardando, .est-parado { background: rgba(122, 43, 255, .16); color: var(--violet-bright); border-color: var(--violet-100); }
[data-tema="claro"] :is(.est-discando, .est-analisando, .est-aguardando, .est-parado),
[data-tema="claro-painel"] :is(.est-discando, .est-analisando, .est-aguardando, .est-parado) { color: var(--violet); }
.est-em_chamada { background: rgba(47, 195, 109, .14); color: var(--ok); }
.est-tabulando { background: rgba(58, 141, 255, .14); color: var(--azul); }
.est-sem_leads, .est-erro { background: rgba(242, 80, 110, .14); color: var(--ruim); }
.est-em_chamada::before, .est-discando::before, .est-analisando::before { animation: pisca 1.4s ease-in-out infinite; }
@keyframes pisca { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.aviso { padding: 10px 13px; border-radius: var(--r-btn); margin-bottom: 12px; border: 1px solid transparent; font-size: 12px; line-height: 1.5; }
.aviso.alerta { background: rgba(242, 153, 74, .12); border-color: rgba(242, 153, 74, .35); color: var(--aviso); }
.aviso.erro { background: rgba(242, 80, 110, .12); border-color: rgba(242, 80, 110, .35); color: var(--ruim); }
.aviso.info { background: var(--violet-050); border-color: var(--violet-100); color: var(--text-2); }
.aviso a { color: inherit; font-weight: 700; }
.oculto { display: none !important; }

label { display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-bottom: 5px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=time],
input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 12px; padding: 7px 11px; border: 1px solid var(--line-2);
  border-radius: var(--r-btn); background: var(--paper-2); color: var(--text); transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(122, 43, 255, .22); }
select option { background: var(--paper); color: var(--text); }
input[type=file] { font-size: 12px; color: var(--muted); }
input[type=range], input[type=checkbox], input[type=radio] { accent-color: var(--violet); }
textarea { resize: vertical; min-height: 110px; }
.campo { margin-bottom: 12px; }
.linha { display: flex; gap: 12px; flex-wrap: wrap; }
.linha > * { flex: 1; min-width: 140px; }

table.tabela { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12px; }
.tabela th, .tabela td { padding: 8px 9px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabela th { font-size: 9.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
.tabela th.num, .tabela td.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tabela tbody tr { transition: background .12s; }
.tabela tbody tr:hover { background: var(--violet-050); }
.tabela tbody tr:last-child td { border-bottom: 0; }
.tabela td:first-child { min-width: 150px; }
.rolagem { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.rolagem::-webkit-scrollbar { width: 10px; height: 10px; }
.rolagem::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }

/* indicadores (mesmo desenho dos KPIs do 8102) */
.resumo, .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi {
  position: relative; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 13px; box-shadow: var(--sh); min-width: 0; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--violet-100); }
.kpi .rot { font-size: 11px; color: var(--muted); font-weight: 500; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .val { font-family: var(--font-mono); font-weight: 700; font-size: 20px; letter-spacing: -.035em; line-height: 1.1; white-space: nowrap; }
.kpi .sub { margin-top: auto; padding-top: 8px; font-size: 10px; color: var(--muted); line-height: 1.35; }
.kpi .sub:not(:empty) { border-top: 1px solid var(--line); margin-top: 10px; }

.meta { margin-bottom: 14px; }
.meta .barra-meta { height: 11px; background: var(--paper-2); border-radius: 5px; overflow: hidden; margin-top: 8px; }
.meta .barra-meta > div { height: 100%; background: linear-gradient(90deg, #5A21C4, var(--violet-bright)); border-radius: 5px; transition: width .45s; }
.meta .topo-meta { display: flex; justify-content: space-between; align-items: baseline; }
.meta .grande { font-family: var(--font-mono); font-size: 30px; font-weight: 700; letter-spacing: -.035em; color: var(--text); line-height: 1.1; }

.grafico { position: relative; height: 120px; display: flex; align-items: flex-end; gap: 2px; padding-top: 8px; border-bottom: 1px solid var(--line-2); }
.grafico .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.grafico .barra { background: linear-gradient(180deg, var(--violet-bright), #5A21C4); border-radius: 4px 4px 0 0; transition: filter .15s; }
.grafico .col:hover .barra { filter: brightness(1.2); }
.grafico-eixo { display: flex; gap: 2px; font-family: var(--font-mono); font-size: 9.5px; color: var(--muted); margin-top: 4px; }
.grafico-eixo span { flex: 1; text-align: center; }
.dica { position: fixed; pointer-events: none; background: var(--tip-bg); color: var(--tip-fg); font-size: 11.5px; padding: 6px 9px; border-radius: 8px; z-index: 50; white-space: nowrap; box-shadow: var(--sh-2); }

.progresso { height: 8px; background: var(--paper-2); border-radius: 4px; overflow: hidden; min-width: 90px; }
.progresso > div { height: 100%; background: linear-gradient(90deg, #5A21C4, var(--violet-bright)); border-radius: 4px; }

.vazio { color: var(--muted); font-size: 12px; padding: 8px 0; }
.muted { color: var(--text-2); }
.pequeno-txt { font-size: 11px; color: var(--muted); }

/* login */
.tela-login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(900px 420px at 50% -8%, rgba(122, 43, 255, .16), transparent 60%), var(--fundo); }
.caixa-login { width: 100%; max-width: 380px; padding: 28px; box-shadow: var(--sh-2); }
.caixa-login .lat-marca { padding: 0 0 18px; }
.caixa-login h1 { font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; margin-bottom: 3px; }

/* janelas, avisos flutuantes */
.modal-fundo { position: fixed; inset: 0; background: var(--veu); display: grid; place-items: center; z-index: 60; padding: 16px; }
.modal { width: 100%; max-width: 460px; padding: 20px; box-shadow: var(--sh-2); }
.modal h2 { margin-bottom: 14px; font-size: 15px; }
.acoes { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--tip-bg); color: var(--tip-fg); padding: 9px 15px; border-radius: var(--r-btn); z-index: 70; font-size: 12px; box-shadow: var(--sh-2); }

/* escuta ao vivo (gestor) */
.painel-escuta { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: min(340px, calc(100vw - 32px)); padding: 14px 16px; box-shadow: var(--sh-2); border-color: var(--violet-100); }
.painel-escuta .pe-topo { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.painel-escuta h3 { margin: 0 0 2px; color: var(--violet-bright); }
.painel-escuta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-ondas { display: flex; align-items: flex-end; gap: 3px; height: 22px; flex: 0 0 auto; }
.pe-ondas i { width: 4px; height: 6px; border-radius: 2px; background: var(--muted); }
.painel-escuta.recebendo .pe-ondas i { background: var(--violet-bright); animation: pe-onda .9s ease-in-out infinite; }
.painel-escuta.recebendo .pe-ondas i:nth-child(2) { animation-delay: .15s; }
.painel-escuta.recebendo .pe-ondas i:nth-child(3) { animation-delay: .3s; }
.painel-escuta.recebendo .pe-ondas i:nth-child(4) { animation-delay: .45s; }
@keyframes pe-onda { 0%, 100% { height: 6px; } 50% { height: 22px; } }

/* ================= telas ================= */
.principal { overflow-x: clip; }
img, video, canvas { max-width: 100%; }
.tab-linha > * { min-width: 0; }

@media (max-width: 1100px) {
  .grade { grid-template-columns: 1fr !important; }
  .tab-linha { grid-template-columns: minmax(0, 1fr) 160px 90px 36px; }
}
@media (max-height: 800px) and (min-width: 901px) {
  .lat-arte { height: 150px; }
  .lat-marca { padding: 12px 16px 10px; }
  .nav-btn { padding: 7px 11px; }
}
@media (max-width: 900px) {
  .app { display: block; }
  .lateral { position: static; width: auto; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .lat-marca { padding: 0 8px 0 0; }
  .lat-marca .logo { height: 30px; }
  .lat-marca .tag, .lat-secao, .lat-arte, .lat-lema { display: none !important; }
  .lat-nav { flex-direction: row; flex-wrap: wrap; padding: 0; }
  .nav-btn { width: auto; }
  .lat-usuario { border: 0; padding: 0 4px; margin-left: auto; }
  .conteudo { padding: 16px; }
}
@media (max-width: 700px) {
  .tab-linha { grid-template-columns: 1fr 1fr; }
  .lead-topo .cronometro { margin-left: 0; text-align: left; }
  .topo-pagina { padding: 10px 14px; }
}
@media (min-width: 2200px) { body { zoom: 1.2; } .lateral { height: calc(100vh / 1.2); } }
@media (min-width: 3000px) { body { zoom: 1.5; } .lateral { height: calc(100vh / 1.5); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
  .kpi:hover { transform: none; }
}
