/* ══════════════════════════════════════════════════════════════════════════
   HorizonMetaAPI — tema visual (02/10/2026)
   Carregado DEPOIS do atendimento.css (herdado). Só aparência: cores da marca
   (verde-azulado da logo), menu escuro, lista, conversa, campos e cartões no
   padrão das grandes plataformas de atendimento.
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  --hm-brand:      #0d9488;   /* verde-azulado (cor principal) */
  --hm-brand-2:    #10b981;   /* verde (degradê) */
  --hm-brand-50:   #ecfdf8;
  --hm-brand-100:  #ccfbef;
  --hm-side:       #0b1220;   /* menu lateral */
  --hm-side-2:     #111a2b;
  --hm-side-line:  rgba(255,255,255,.07);

  --cfv-ink:       #0f172a;
  --cfv-ink-2:     #475569;
  --cfv-ink-3:     #8391a7;
  --cfv-line:      #e6e9ef;
  --cfv-line-2:    #eef1f5;
  --cfv-bg:        #ffffff;
  --cfv-bg-soft:   #f5f7fa;
  --cfv-bg-2:      #f6f8fb;
  --cfv-surface:   #ffffff;
  --cfv-green:     #10b981;

  --cfv-radius:    12px;
  --cfv-radius-sm: 9px;
  --cfv-radius-lg: 18px;
  --cfv-shadow-xs: 0 1px 2px rgba(15,23,42,.05);
  --cfv-shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 0 0 1px rgba(15,23,42,.04);
  --cfv-shadow:    0 12px 32px -14px rgba(15,23,42,.22), 0 2px 6px rgba(15,23,42,.05);
  --cfv-shadow-md: 0 6px 20px -6px rgba(15,23,42,.14), 0 1px 3px rgba(15,23,42,.06);
  --cfv-shadow-lg: 0 24px 60px -18px rgba(15,23,42,.32), 0 4px 12px rgba(15,23,42,.08);

  --at-bubble-me-bg:        #dff7ec;
  --at-bubble-me-color:     #0f172a;
  --at-bubble-other-bg:     #ffffff;
  --at-bubble-other-color:  #0f172a;
  --at-bubble-me-shadow:    0 1px 1.5px rgba(13,148,136,.16);
  --at-bubble-other-shadow: 0 1px 1.5px rgba(15,23,42,.08);
}
body.at-dark {
  --hm-side: #070c15; --hm-side-2: #0c1320;
  --at-bubble-me-bg: #0f4a3f; --at-bubble-me-color: #e7f6f1;
  --hm-brand-50: #0f2a27;
}
body { -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }

/* ── Menu lateral ─────────────────────────────────────────────────────────── */
.at-sidebar {
  width: 244px;
  background: linear-gradient(180deg, var(--hm-side) 0%, var(--hm-side-2) 100%);
  border-right: 1px solid var(--hm-side-line);
}
.at-sidebar::before {   /* brilho da marca no topo */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 180px; pointer-events: none;
  background: radial-gradient(120% 100% at 30% 0%, rgba(16,185,129,.16), transparent 70%);
}
.at-sidebar__logo { padding-top: 20px; padding-bottom: 6px; position: relative; }
.at-sidebar__divider { background: var(--hm-side-line) !important; opacity: 1; }
.at-nav { padding: 6px 10px 14px; gap: 2px; }
.at-nav-section {
  color: rgba(226,232,240,.38) !important; font-size: 10.5px !important; font-weight: 700 !important;
  letter-spacing: .11em !important; padding: 16px 12px 6px !important;
}
.at-nav-item {
  color: rgba(226,232,240,.68); font-size: 13.5px; font-weight: 500; padding: 8.5px 12px; border-radius: 10px;
}
.at-nav-item svg { opacity: .8; }
.at-nav-item:hover { background: rgba(255,255,255,.05); color: #fff; transform: none; }
.at-nav-item.active {
  background: linear-gradient(90deg, rgba(16,185,129,.20), rgba(13,148,136,.08));
  color: #fff; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(16,185,129,.22);
}
.at-nav-item.active::before {
  content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #34d399, #14b8a6);
}
.at-nav-item.active svg { opacity: 1; color: #5eead4; }
.at-nav-badge { background: #ef4444; box-shadow: 0 0 0 2px var(--hm-side); }
.at-sidebar__agent { margin: 6px 12px 4px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--hm-side-line); }
.at-sidebar__agent-name { color: #f1f5f9 !important; }
.at-sidebar__agent-role { color: rgba(226,232,240,.5) !important; }
.at-sidebar__footer { border-top: 1px solid var(--hm-side-line) !important; }
.at-sidebar__logout { color: rgba(226,232,240,.55) !important; }
.at-sidebar__logout:hover { color: #fff !important; }
.at-sidebar::-webkit-scrollbar { width: 6px; }
.at-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }

/* ── Lista de conversas ──────────────────────────────────────────────────── */
.at-conv-panel { background: #fff; border-right: 1px solid var(--cfv-line); }
.at-conv-item {
  margin: 2px 8px; padding: 11px 12px; border-radius: 12px; border-bottom: 0; border-left: 0 !important;
  transition: background .15s var(--cfv-ease), box-shadow .15s var(--cfv-ease);
}
.at-conv-item:hover { background: var(--cfv-bg-2); }
/* selecionada: tom claro da marca (antes era chapada com texto branco) */
.at-conv-item.is-selected, .at-conv-item.is-closed.is-selected {
  background: var(--hm-brand-50) !important; color: var(--cfv-ink); opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(13,148,136,.18);
}
.at-conv-item.is-selected .at-conv-item__name { color: var(--cfv-ink) !important; }
.at-conv-item.is-selected .at-conv-item__preview { color: var(--cfv-ink-2) !important; opacity: 1 !important; }
.at-conv-item.is-selected .at-conv-item__time { color: var(--hm-brand) !important; opacity: 1 !important; font-weight: 600; }
.at-conv-item.is-selected .at-conv-item__status { border-color: var(--hm-brand-50) !important; }
.at-conv-item.has-urgent { box-shadow: inset 3px 0 0 #ef4444; }
.at-conv-item__name { font-weight: 650; }
.at-conv-item__preview { color: var(--cfv-ink-3); }
.at-conv-item__time { font-size: 11.5px; color: var(--cfv-ink-3); font-variant-numeric: tabular-nums; }
.at-conv-item__unread {
  background: linear-gradient(135deg, var(--hm-brand-2), var(--hm-brand)) !important; color: #fff !important;
  min-width: 20px; height: 20px; border-radius: 10px; font-weight: 700; font-size: 11px; box-shadow: 0 2px 6px -1px rgba(16,185,129,.5);
}
.at-conv-item__avatar img, .at-conv-item__avatar > div { box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(15,23,42,.12); }
.at-filt-bar, .at-filt-header { border-bottom-color: var(--cfv-line-2) !important; }
.at-filt-chip, .at-filt-btn { border-radius: 999px !important; }

/* ── Conversa aberta ─────────────────────────────────────────────────────── */
.at-chat-header { background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--cfv-line); box-shadow: 0 1px 0 rgba(15,23,42,.02); }
body.at-dark .at-chat-header { background: rgba(17,27,33,.92); }
.at-chat-header__name { font-weight: 700; }
.at-chat-area.at-chat-bg-default, .at-chat-bg-default {
  background-color: #f3f5f8 !important;
  background-image: radial-gradient(rgba(15,23,42,.045) 1px, transparent 1px) !important;
  background-size: 18px 18px !important;
}
body.at-dark .at-chat-bg-default { background-color: #0b141a !important; background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px) !important; }
.at-bubble { font-size: 14.2px; line-height: 1.45; }
.at-bubble--me { border-radius: 16px 6px 16px 16px; border: 1px solid rgba(13,148,136,.14); }
.at-bubble--other { border-radius: 6px 16px 16px 16px; border: 1px solid rgba(15,23,42,.05); }
.at-bubble__meta { opacity: .75; }
.at-bubble__check--read { color: #0ea5e9 !important; }

/* caixa de digitar */
.at-chat-input-bar { background: #fff; border-top: 1px solid var(--cfv-line); box-shadow: 0 -6px 18px -14px rgba(15,23,42,.25); }
body.at-dark .at-chat-input-bar { background: var(--cfv-surface); }
.at-input-textarea {
  border-radius: 14px !important; border: 1.5px solid var(--cfv-line) !important; background: var(--cfv-bg-2) !important;
  font-size: 14.5px !important; transition: border-color .15s, box-shadow .15s, background .15s;
}
.at-input-textarea:focus { border-color: var(--hm-brand) !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(13,148,136,.12) !important; outline: none; }
body.at-dark .at-input-textarea:focus { background: var(--cfv-bg) !important; }
.at-send-btn {
  background: linear-gradient(135deg, var(--hm-brand-2), var(--hm-brand)) !important; color: #fff !important;
  box-shadow: 0 6px 16px -6px rgba(13,148,136,.65) !important; border-radius: 13px !important;
}
.at-input-iconbtn { border-radius: 10px !important; border-color: transparent !important; background: transparent !important; color: var(--cfv-ink-3) !important; }
.at-input-iconbtn:hover { background: var(--cfv-bg-2) !important; color: var(--cfv-ink) !important; }

/* botões de ação do cabeçalho */
.at-action-pill-group { border-radius: 12px !important; border: 1px solid var(--cfv-line) !important; background: #fff !important; box-shadow: var(--cfv-shadow-xs); }
.at-action-pill { border-radius: 9px !important; font-weight: 600 !important; }
.at-action-pill--primary { background: linear-gradient(135deg, var(--hm-brand-2), var(--hm-brand)) !important; color: #fff !important; }

/* ── Botões, campos, cartões, modais ─────────────────────────────────────── */
.at-btn { border-radius: 11px; font-weight: 650; transition: transform .12s, box-shadow .15s, filter .15s; }
.at-btn--primary { background: linear-gradient(135deg, var(--hm-brand-2), var(--hm-brand)); box-shadow: 0 8px 20px -10px rgba(13,148,136,.75); }
.at-btn--primary:hover:not(:disabled) { filter: brightness(1.05); box-shadow: 0 10px 24px -10px rgba(13,148,136,.85); }
.at-btn:active:not(:disabled) { transform: translateY(1px); }
.at-btn:disabled { filter: grayscale(.35); opacity: .55; }
.at-field input, .at-field select, .at-field textarea {
  border-radius: 11px !important; border: 1.5px solid var(--cfv-line) !important; background: #fff !important;
  transition: border-color .15s, box-shadow .15s;
}
.at-field input:focus, .at-field select:focus, .at-field textarea:focus {
  border-color: var(--hm-brand) !important; box-shadow: 0 0 0 4px rgba(13,148,136,.14) !important; outline: none;
}
.at-cfg-card, .at-card, .at-kpi-card, .at-rel-card, .at-alert-card {
  border-radius: 16px !important; border: 1px solid var(--cfv-line) !important; box-shadow: var(--cfv-shadow-xs) !important;
}
.at-cfg-card__head { padding-top: 16px !important; padding-bottom: 16px !important; }
.at-cfg-card__head-icon { border-radius: 12px !important; background: var(--hm-brand-50) !important; color: var(--hm-brand) !important; }
.at-cfg__title, .at-module-header h1, .at-module-header h2 { letter-spacing: -.012em; }
.at-modal { border-radius: 18px !important; box-shadow: var(--cfv-shadow-lg) !important; border: 1px solid var(--cfv-line); }
.at-modal-backdrop { background: rgba(15,23,42,.45) !important; backdrop-filter: blur(3px); }
.at-toast { border-radius: 14px !important; box-shadow: var(--cfv-shadow-lg) !important; }
.at-tabbar__tab.active, .at-tabbar__tab--active { color: var(--hm-brand) !important; border-color: var(--hm-brand) !important; }

/* rolagem discreta */
* { scrollbar-width: thin; scrollbar-color: rgba(15,23,42,.18) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(15,23,42,.16); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }

/* ── Login ───────────────────────────────────────────────────────────────── */
.at-login__card { border-radius: 22px !important; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06) !important; }
.at-login__tag { background: var(--hm-brand-50) !important; color: var(--hm-brand) !important; }
.at-login .at-btn--primary { height: 46px; font-size: 15px; }

/* cartão do atendente no menu: botões discretos */
.at-sidebar__agent button:not(.at-sidebar__agent-foto-wrap) {
  background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.08) !important; color: rgba(226,232,240,.82) !important;
  border-radius: 9px !important; font-weight: 600 !important;
}
.at-sidebar__agent button:not(.at-sidebar__agent-foto-wrap):hover { background: rgba(255,255,255,.1) !important; color: #fff !important; }
.at-sidebar__agent a { color: rgba(226,232,240,.5) !important; }

/* barra de cima no celular: escura como o menu; só o nome da empresa no meio */
.at-mobile-bar { background: linear-gradient(90deg, var(--hm-side), var(--hm-side-2)) !important; border-bottom: 1px solid var(--hm-side-line) !important; }
.at-mobile-bar__logo-wrap { display: none !important; }
.at-mobile-bar__btn { background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.08) !important; color: #e2e8f0 !important; border-radius: 10px !important; }

/* ══ Menu em TRILHO de ícones (padrão no computador; botão expande/recolhe) ══ */
.hm-logo-mini, .hm-empresa-mini { display: none; }
.hm-trilho-pe { margin-top: auto; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--hm-side-line); position: relative; }
.hm-trilho-btn { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--hm-side-line); background: rgba(255,255,255,.04); color: rgba(226,232,240,.7); display: grid; place-items: center; cursor: pointer; position: relative; }
.hm-trilho-btn:hover { background: rgba(255,255,255,.09); color: #fff; }
.hm-eu { position: relative; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; display: none; }
.hm-eu > div { box-shadow: 0 0 0 2px var(--hm-side), 0 0 0 3.5px rgba(255,255,255,.15); border-radius: 50%; }
.hm-eu__dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--hm-side); }
.hm-eu-menu {
  position: absolute; bottom: 0; left: calc(100% + 14px); z-index: 1001; width: 268px; background: var(--cfv-surface); color: var(--cfv-ink);
  border: 1px solid var(--cfv-line); border-radius: 16px; box-shadow: var(--cfv-shadow-lg); padding: 8px; display: grid; gap: 2px;
  animation: hmSobe .14s var(--cfv-ease-out);
}
@keyframes hmSobe { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hm-eu-menu__topo { display: flex; gap: 11px; align-items: center; padding: 8px 8px 12px; border-bottom: 1px solid var(--cfv-line-2); margin-bottom: 4px; }
.hm-eu-menu__topo b { display: block; font-size: 14px; }
.hm-eu-menu__topo span { display: block; font-size: 12px; color: var(--cfv-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-eu-menu__aviso { margin: 2px 4px 6px; padding: 7px 10px; border-radius: 9px; background: #fff7ed; color: #c2410c; font-size: 12.5px; font-weight: 600; }
.hm-eu-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--cfv-ink-2); font: 500 13.5px var(--cfv-font); text-align: left; cursor: pointer; }
.hm-eu-menu button:hover { background: var(--cfv-bg-2); color: var(--cfv-ink); }
.hm-eu-menu .hm-eu-menu__sair { color: #dc2626; border-top: 1px solid var(--cfv-line-2); border-radius: 0 0 10px 10px; margin-top: 4px; }
.hm-empresa-pop--trilho { left: calc(100% + 14px) !important; top: 0 !important; transform: none !important; }

@media (min-width: 769px) {
  .at-sidebar--trilho { width: 76px; overflow: visible; z-index: 60; }
  .at-sidebar--trilho::before { height: 120px; }
  .at-sidebar--trilho .at-sidebar__logo { padding: 16px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .at-sidebar--trilho .at-sidebar__logo-wrap, .at-sidebar--trilho .hm-empresa-chip, .at-sidebar--trilho .at-sidebar__agent,
  .at-sidebar--trilho .at-sidebar__divider, .at-sidebar--trilho .at-sidebar__footer, .at-sidebar--trilho .at-nav-section,
  .at-sidebar--trilho .hm-nav-rot { display: none !important; }
  .at-sidebar--trilho .hm-logo-mini { display: block; width: 42px; height: 42px; border-radius: 12px; }
  .at-sidebar--trilho .hm-empresa-mini {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(94,234,212,.28);
    background: linear-gradient(135deg, rgba(16,185,129,.22), rgba(13,148,136,.12)); color: #ccfbf1; font: 800 13px var(--cfv-font); cursor: pointer; position: relative;
  }
  .at-sidebar--trilho .at-nav { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0; }
  .at-sidebar--trilho .at-nav-item { width: 50px; height: 46px; padding: 0; justify-content: center; border-radius: 13px; margin: 0; }
  .at-sidebar--trilho .at-nav-item.active::before { left: -13px; }
  .at-sidebar--trilho .at-nav-badge { position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; font-size: 9.5px; padding: 0 4px; margin: 0; }
  .at-sidebar--trilho .hm-trilho-pe { flex-direction: column-reverse; padding: 12px 0 16px; border-top: 0; }
  .at-sidebar--trilho .hm-eu { display: block; }
  /* dica com o nome ao passar o mouse */
  .at-sidebar--trilho [data-tip]:hover::after {
    content: attr(data-tip); position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%);
    background: #0f172a; color: #f8fafc; font: 600 12.5px var(--cfv-font); padding: 7px 11px; border-radius: 9px; white-space: nowrap;
    box-shadow: 0 8px 24px -8px rgba(0,0,0,.5); z-index: 1002; pointer-events: none;
  }
  .at-sidebar:not(.at-sidebar--trilho) .hm-eu-menu { left: 0; bottom: calc(100% + 10px); }
}
@media (max-width: 768px) { .hm-trilho-pe { display: none; } }

/* trilho: só o meio rola; topo e rodapé fixos; dicas e menus flutuam (position: fixed) */
@media (min-width: 769px) {
  .at-sidebar--trilho { overflow: hidden; }
  .at-sidebar--trilho .at-nav { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
  .at-sidebar--trilho .at-nav::-webkit-scrollbar { display: none; }
  .at-sidebar--trilho [data-tip]:hover::after { display: none; }
  .at-sidebar--trilho .hm-eu-menu { position: fixed; left: 88px; bottom: 16px; }
  .at-sidebar--trilho .hm-empresa-pop--trilho { position: fixed !important; left: 88px !important; top: 64px !important; }
}
.hm-tip { position: fixed; z-index: 3000; background: #0f172a; color: #f8fafc; font: 600 12.5px var(--cfv-font); padding: 7px 11px; border-radius: 9px; white-space: nowrap; box-shadow: 0 8px 24px -8px rgba(0,0,0,.5); pointer-events: none; transform: translateY(-50%); animation: hmSobe .1s ease-out; }
.hm-tip::before { content: ""; position: absolute; left: -4px; top: 50%; width: 8px; height: 8px; background: #0f172a; transform: translateY(-50%) rotate(45deg); }

/* expandido também: avatar com menu no rodapé (sem o cartão antigo), meio rolando */
@media (min-width: 769px) {
  .at-sidebar { overflow: hidden; }
  .at-sidebar .at-nav { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
  .at-sidebar .at-nav::-webkit-scrollbar { display: none; }
  .at-sidebar .at-sidebar__agent, .at-sidebar .at-sidebar__footer, .at-sidebar .at-sidebar__divider { display: none !important; }
  .at-sidebar .hm-eu { display: flex; align-items: center; gap: 10px; text-align: left; border-radius: 12px; padding: 4px 6px 4px 4px; }
  .at-sidebar:not(.at-sidebar--trilho) .hm-eu:hover { background: rgba(255,255,255,.06); }
  .at-sidebar:not(.at-sidebar--trilho) .hm-trilho-pe { flex-direction: row-reverse; }
  .at-sidebar:not(.at-sidebar--trilho) .hm-trilho-pe > div { flex: 1; min-width: 0; }
  .hm-eu__nome { display: grid; min-width: 0; line-height: 1.25; }
  .hm-eu__nome b { color: #f1f5f9; font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hm-eu__nome span { color: rgba(226,232,240,.5); font-size: 11.5px; }
  .at-sidebar--trilho .hm-eu__nome { display: none; }
  .at-sidebar:not(.at-sidebar--trilho) .hm-eu-menu { position: fixed; left: 12px; bottom: 72px; }
  .at-sidebar:not(.at-sidebar--trilho) .hm-eu__dot { left: 30px; right: auto; bottom: 3px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   2026 — fonte, cores aurora e movimento
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  --cfv-font: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hm-aurora: linear-gradient(120deg, #34d399 0%, #14b8a6 45%, #22d3ee 100%);
  --hm-aurora-forte: linear-gradient(135deg, #10b981 0%, #0d9488 50%, #0891b2 100%);
  --hm-brilho: 0 10px 30px -10px rgba(20,184,166,.55);
  --hm-ease: cubic-bezier(.22, 1, .36, 1);
}
body, button, input, select, textarea { font-family: var(--cfv-font); }
body { letter-spacing: 0; }
h1, h2, h3, .at-cfg__title { letter-spacing: -.012em; }
.at-chat-header__name, .at-conv-item__name { letter-spacing: -.005em; }

/* menu: aurora viva e suave */
.at-sidebar::before {
  height: 100%;
  background:
    radial-gradient(60% 35% at 10% 0%, rgba(52,211,153,.20), transparent 70%),
    radial-gradient(55% 30% at 100% 18%, rgba(34,211,238,.12), transparent 70%),
    radial-gradient(70% 40% at 50% 110%, rgba(20,184,166,.14), transparent 70%);
  animation: hmAurora 18s ease-in-out infinite alternate;
}
@keyframes hmAurora { 0% { transform: translate3d(0,0,0) scale(1); filter: hue-rotate(0deg); } 100% { transform: translate3d(0,-14px,0) scale(1.06); filter: hue-rotate(-18deg); } }
.at-sidebar > * { position: relative; }
.at-nav-item { transition: background .25s var(--hm-ease), color .2s, transform .25s var(--hm-ease), box-shadow .25s; font-size: 13.8px; }
.at-nav-item svg { transition: transform .3s var(--hm-ease), color .2s, opacity .2s; }
.at-nav-item:hover svg { transform: translateX(2px) scale(1.06); opacity: 1; }
.at-nav-item.active {
  background: linear-gradient(100deg, rgba(52,211,153,.24) 0%, rgba(20,184,166,.12) 55%, rgba(34,211,238,.06) 100%);
  box-shadow: inset 0 0 0 1px rgba(94,234,212,.22), 0 8px 24px -14px rgba(20,184,166,.9);
}
.at-nav-item.active::before { background: var(--hm-aurora); box-shadow: 0 0 12px rgba(52,211,153,.8); animation: hmEntra .35s var(--hm-ease); }
.at-nav-item.active svg { color: #6ee7b7; }
.hm-empresa-chip { transition: background .2s, box-shadow .2s; }
.hm-empresa-chip:hover { box-shadow: 0 0 0 4px rgba(52,211,153,.12); }

/* telas entram deslizando */
.at-main > *:not(.at-mobile-bar) { animation: hmTela .38s var(--hm-ease) both; }
@keyframes hmTela { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hmEntra { from { opacity: 0; transform: scaleY(.3); } to { opacity: 1; transform: none; } }

/* lista de conversas */
.at-conv-item { transition: background .2s var(--hm-ease), box-shadow .25s var(--hm-ease), transform .25s var(--hm-ease); }
.at-conv-item:hover { transform: translateX(2px); }
.at-conv-item.is-selected, .at-conv-item.is-closed.is-selected {
  background: linear-gradient(100deg, #ecfdf5 0%, #f0fdfa 60%, #ecfeff 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(20,184,166,.22), 0 6px 18px -12px rgba(13,148,136,.55);
}
body.at-dark .at-conv-item.is-selected { background: linear-gradient(100deg, #0f2f2a, #0f2a2e) !important; }
.at-conv-item__unread { background: var(--hm-aurora-forte) !important; animation: hmPulso 2.4s ease-in-out infinite; }
@keyframes hmPulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(20,184,166,.45); } 50% { box-shadow: 0 0 0 5px rgba(20,184,166,0); } }

/* conversa: fundo com brilho suave e mensagens que surgem */
.at-chat-area.at-chat-bg-default, .at-chat-bg-default {
  background-color: #f4f7f9 !important;
  background-image:
    radial-gradient(40% 30% at 100% 0%, rgba(34,211,238,.07), transparent 70%),
    radial-gradient(45% 35% at 0% 100%, rgba(52,211,153,.08), transparent 70%),
    radial-gradient(rgba(15,23,42,.04) 1px, transparent 1px) !important;
  background-size: auto, auto, 20px 20px !important;
}
.at-msg-row { animation: hmBolha .32s var(--hm-ease) both; }
@keyframes hmBolha { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
.at-bubble--me { background: linear-gradient(135deg, #e6fbf2 0%, #dcf7f2 100%); border-color: rgba(20,184,166,.18); }
body.at-dark .at-bubble--me { background: linear-gradient(135deg, #10443a, #0e3b3f); }
.at-chat-header__name { font-size: 15.5px; }

/* botões com reflexo e brilho */
.at-btn--primary, .at-send-btn, .at-action-pill--primary { background: var(--hm-aurora-forte) !important; background-size: 160% 160% !important; transition: background-position .5s var(--hm-ease), box-shadow .25s, transform .15s !important; position: relative; overflow: hidden; }
.at-btn--primary:hover:not(:disabled), .at-send-btn:hover, .at-action-pill--primary:hover { background-position: 100% 50% !important; box-shadow: var(--hm-brilho) !important; }
.at-btn--primary::after, .at-send-btn::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--hm-ease); pointer-events: none;
}
.at-btn--primary:hover::after, .at-send-btn:hover::after { transform: translateX(120%); }
.at-send-btn:active { transform: scale(.94) !important; }

/* cartões elevam no mouse */
.at-cfg-card, .at-card, .at-kpi-card, .at-rel-card { transition: box-shadow .3s var(--hm-ease), transform .3s var(--hm-ease), border-color .3s; }
.at-kpi-card:hover, .at-rel-card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -18px rgba(15,23,42,.35) !important; border-color: rgba(20,184,166,.28) !important; }

/* login: aurora animada */
.at-login { position: relative; overflow: hidden; }
.at-login::before, .at-login::after { content: ""; position: absolute; width: 720px; height: 720px; border-radius: 50%; filter: blur(90px); opacity: .45; pointer-events: none; }
.at-login::before { background: #10b981; top: -300px; left: -200px; animation: hmFlutua 16s ease-in-out infinite alternate; }
.at-login::after { background: #0891b2; bottom: -320px; right: -220px; animation: hmFlutua 20s ease-in-out infinite alternate-reverse; }
@keyframes hmFlutua { from { transform: translate(0, 0) scale(1); } to { transform: translate(80px, 60px) scale(1.15); } }
.at-login > * { position: relative; z-index: 1; }
.at-login__card { background: rgba(255,255,255,.96) !important; backdrop-filter: blur(16px); animation: hmTela .6s var(--hm-ease) both; }

/* quem pede menos movimento no sistema não vê animações */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ícones de traço no lugar dos emojis: alinhados ao texto */
.at-main svg, .at-modal svg, .hm-eu-menu svg { vertical-align: -0.18em; }
.hm-ponto { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: .05em; margin-right: 2px; }

/* ══ Métricas (método dataviz: paleta de referência validada sobre #fff e #202c33) ══ */
.hmv {
  --hmv-surface: var(--cfv-surface); --hmv-s1: #2a78d6; --hmv-s2: #eb6834; --hmv-s3: #1baf7a;
  --hmv-pos: #2a78d6; --hmv-neg: #e34948; --hmv-neutro: #d6d4cd;
  --hmv-grade: #e6e8ec; --hmv-base: #c3c2b7; --hmv-muted: #a3a9b4; --hmv-zero: #f1f3f6;
  --hmv-bom: #006300; --hmv-ruim: #b42318;
  padding: 22px 24px 32px; overflow-y: auto; height: 100%; box-sizing: border-box; display: grid; gap: 16px; align-content: start;
}
body.at-dark .hmv {
  --hmv-s1: #3987e5; --hmv-s2: #d95926; --hmv-s3: #199e70; --hmv-pos: #3987e5; --hmv-neg: #e66767; --hmv-neutro: #4a5560;
  --hmv-grade: #2c3a42; --hmv-base: #3d4b53; --hmv-muted: #5f6e78; --hmv-zero: #26343c; --hmv-bom: #0ca30c; --hmv-ruim: #e66767;
}
.hmv-topo { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.hmv-topo > div:first-child { flex: 1; min-width: 200px; }
.hmv-topo h1 { margin: 0; font-size: 22px; font-weight: 700; color: var(--cfv-ink); }
.hmv-topo span { color: var(--cfv-ink-3); font-size: 13px; }
.hmv-filtro { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--cfv-bg-2); border: 1px solid var(--cfv-line); }
.hmv-filtro button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font: 600 13px var(--cfv-font); color: var(--cfv-ink-2); cursor: pointer; transition: background .2s, color .2s; }
.hmv-filtro button:hover { background: rgba(15,23,42,.05); }
.hmv-filtro button.on { background: var(--cfv-surface); color: var(--cfv-ink); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.hmv-card { background: var(--hmv-surface); border: 1px solid var(--cfv-line); border-radius: 16px; padding: 18px 20px; position: relative; min-width: 0; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.hmv-rot { font-size: 12.5px; font-weight: 600; color: var(--cfv-ink-2); }
.hmv-sub { display: block; font-size: 12px; color: var(--cfv-ink-3); margin-top: 2px; }
.hmv-linha1 { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 3fr); gap: 16px; }
.hmv-hero { display: grid; align-content: start; gap: 4px; background: linear-gradient(160deg, var(--hmv-surface) 55%, rgba(42,120,214,.06)); }
.hmv-hero__num { font-size: 56px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; color: var(--cfv-ink); margin: 6px 0 2px; }
.hmv-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.hmv-tile { display: grid; align-content: start; gap: 3px; }
.hmv-tile__num { font-size: 28px; font-weight: 700; color: var(--cfv-ink); margin-top: 6px; line-height: 1.15; }
.hmv-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--cfv-ink-3); margin-top: 4px; flex-wrap: wrap; }
.hmv-delta span { font-weight: 500; color: var(--cfv-ink-3); }
.hmv-delta.bom { color: var(--hmv-bom); } .hmv-delta.ruim { color: var(--hmv-ruim); }
.hmv-spark { width: 100%; height: 40px; margin-top: 8px; display: block; }
.hmv-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hmv-larga { grid-column: 1 / -1; }
@media (max-width: 1000px) { .hmv-linha1, .hmv-grade { grid-template-columns: 1fr; } }
.hmv-graf header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.hmv-graf h3 { margin: 0; font-size: 15px; font-weight: 650; color: var(--cfv-ink); }
.hmv-graf header span { font-size: 12.5px; color: var(--cfv-ink-3); }
.hmv-tabbtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--cfv-line); background: var(--cfv-surface); color: var(--cfv-ink-2); border-radius: 9px; padding: 5px 10px; font: 600 12px var(--cfv-font); cursor: pointer; }
.hmv-tabbtn:hover { color: var(--cfv-ink); border-color: var(--cfv-ink-3); }
.hmv-plot { position: relative; }
.hmv-plot svg { display: block; overflow: visible; }
.hmv-eixo { fill: var(--cfv-ink-3); font: 500 11px var(--cfv-font); font-variant-numeric: tabular-nums; }
.hmv-cat { fill: var(--cfv-ink-2); font: 500 12.5px var(--cfv-font); }
.hmv-val, .hmv-fim { fill: var(--cfv-ink); font: 600 12.5px var(--cfv-font); }
.hmv-fim { fill: var(--cfv-ink-2); font-weight: 600; }
.hmv-marca { transition: opacity .15s, filter .15s; cursor: default; outline: none; }
.hmv-marca:hover, .hmv-marca:focus { filter: brightness(1.12) saturate(1.05); }
.hmv-legenda { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--cfv-ink-2); margin-bottom: 10px; }
.hmv-legenda span { display: inline-flex; align-items: center; gap: 7px; }
.hmv-legenda i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.hmv-legenda i.lin { width: 16px; height: 2px; border-radius: 1px; }
.hmv-legenda--valores { margin: 12px 0 0; }
.hmv-legenda--valores b { color: var(--cfv-ink); font-weight: 650; margin-left: 2px; }
.hmv-total { font-size: 13px; color: var(--cfv-ink-2); margin-bottom: 12px; }
.hmv-total b { font-size: 22px; color: var(--cfv-ink); margin-right: 4px; }
.hmv-escala { display: flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--cfv-ink-3); margin-top: 8px; }
.hmv-escala i { width: 18px; height: 10px; border-radius: 2px; }
.hmv-escala span { margin: 0 6px; }
.hmv-semdados { font-size: 13px; color: var(--cfv-ink-3); padding: 6px 0 10px; }
.hmv-dica { position: absolute; z-index: 20; pointer-events: none; background: var(--cfv-surface); border: 1px solid var(--cfv-line); border-radius: 12px; box-shadow: 0 12px 30px -10px rgba(15,23,42,.35); padding: 9px 12px; min-width: 130px; animation: hmSobe .12s ease-out; }
.hmv-dica__tit { font-size: 12px; color: var(--cfv-ink-3); margin-bottom: 5px; }
.hmv-dica__lin { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--cfv-ink-2); }
.hmv-dica__lin i { width: 12px; height: 2px; border-radius: 1px; }
.hmv-dica__lin b { color: var(--cfv-ink); font-size: 14px; font-weight: 700; min-width: 24px; }
.hmv-tabela { max-height: 320px; overflow: auto; border: 1px solid var(--cfv-line); border-radius: 12px; }
.hmv-tabela table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hmv-tabela th { position: sticky; top: 0; background: var(--cfv-bg-2); text-align: left; font-weight: 600; color: var(--cfv-ink-2); padding: 8px 12px; border-bottom: 1px solid var(--cfv-line); }
.hmv-tabela td { padding: 7px 12px; border-bottom: 1px solid var(--cfv-line-2); color: var(--cfv-ink); }
.hmv-tabela td.num, .hmv-tabela th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.hmv-vazio { display: grid; place-items: center; gap: 6px; padding: 80px 20px; color: var(--cfv-ink-3); text-align: center; }
.hmv-vazio b { color: var(--cfv-ink); font-size: 16px; }
