/* Reiko Chat: painel da equipe. Vanilla, sem dependencia externa. */
:root {
  --bg: #f3f4f0;
  --surface: #ffffff;
  --surface-2: #f9faf7;
  --ink: #10161d;
  --ink-2: #39424d;
  --muted: #6a7380;
  --muted-2: #9aa1aa;
  --line: #e4e7e0;
  --line-2: #eef0ea;
  --green: #25d366;
  --green-2: #1fb457;
  --green-ink: #0b7247;
  --green-soft: #e8f8ee;
  --green-softer: #f2fbf5;
  --red: #d33a3a;
  --red-ink: #a32222;
  --red-soft: #fdecec;
  --amber: #a86a0c;
  --amber-soft: #fdf3e1;
  --blue-ink: #2457a6;
  --r: 14px;
  --r-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 22, 29, .05), 0 1px 1px rgba(16, 22, 29, .03);
  --shadow: 0 6px 24px -8px rgba(16, 22, 29, .14), 0 2px 6px rgba(16, 22, 29, .05);
  --shadow-lg: 0 24px 60px -16px rgba(16, 22, 29, .28), 0 6px 16px rgba(16, 22, 29, .08);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --top-h: 60px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--green-ink); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }

/* ------------------------------------------------------------ botoes */
.btn {
  --b: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--b); background: var(--surface); color: var(--ink);
  font-weight: 550; font-size: 13.5px; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, border-color .18s, color .18s;
  position: relative; overflow: hidden;
}
.btn:hover { border-color: #cfd4cb; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primaria { background: var(--ink); color: #fff; --b: var(--ink); }
.btn-primaria:hover { background: #1d2731; border-color: #1d2731; box-shadow: 0 8px 20px -8px rgba(16, 22, 29, .5); }
.btn-verde { background: var(--green); color: #05301a; --b: var(--green); }
.btn-verde:hover { background: #2be070; border-color: #2be070; box-shadow: 0 8px 22px -8px rgba(37, 211, 102, .7); }
.btn-fantasma { background: transparent; --b: transparent; color: var(--ink-2); }
.btn-fantasma:hover { background: rgba(16, 22, 29, .05); box-shadow: none; }
.btn-perigo:hover { color: var(--red-ink); border-color: #f1c2c2; background: var(--red-soft); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn .ripple { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .18; animation: ripple .55s var(--ease) forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
.icone-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2);
  display: inline-grid; place-items: center; transition: background .18s, color .18s, transform .18s var(--ease);
}
.icone-btn:hover { background: rgba(16, 22, 29, .06); color: var(--ink); }
.icone-btn:active { transform: scale(.92); }
.icone-btn svg { width: 18px; height: 18px; }

.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: girar .7s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ login */
.login {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px 16px;
  background: #0d1512; overflow: hidden;
}
.login-fundo { position: absolute; inset: -20%; filter: blur(60px); opacity: .9; }
.login-fundo span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: deriva 18s ease-in-out infinite alternate; }
.login-fundo span:nth-child(1) { width: 46vmax; height: 46vmax; left: 8%; top: 12%; background: radial-gradient(circle, rgba(37, 211, 102, .55), transparent 65%); }
.login-fundo span:nth-child(2) { width: 38vmax; height: 38vmax; right: 6%; top: 30%; background: radial-gradient(circle, rgba(18, 140, 126, .6), transparent 65%); animation-duration: 22s; animation-delay: -6s; }
.login-fundo span:nth-child(3) { width: 30vmax; height: 30vmax; left: 35%; bottom: 0; background: radial-gradient(circle, rgba(200, 255, 220, .25), transparent 65%); animation-duration: 26s; animation-delay: -12s; }
@keyframes deriva { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6vmax, -4vmax) scale(1.12); } 100% { transform: translate(-5vmax, 5vmax) scale(.94); } }
.login-grao { position: absolute; inset: 0; opacity: .07; pointer-events: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.login-bolhas { position: absolute; inset: 0; pointer-events: none; }
.login-bolhas i {
  position: absolute; display: block; height: 30px; border-radius: 16px 16px 16px 4px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(4px); animation: sobe 16s linear infinite; opacity: 0;
}
.login-bolhas i:nth-child(odd) { border-radius: 16px 16px 4px 16px; background: rgba(37, 211, 102, .12); }
.login-bolhas i:nth-child(1) { left: 8%; width: 120px; animation-delay: 0s; }
.login-bolhas i:nth-child(2) { left: 22%; width: 80px; animation-delay: -4s; animation-duration: 19s; }
.login-bolhas i:nth-child(3) { left: 70%; width: 150px; animation-delay: -9s; }
.login-bolhas i:nth-child(4) { left: 84%; width: 90px; animation-delay: -2s; animation-duration: 21s; }
.login-bolhas i:nth-child(5) { left: 52%; width: 70px; animation-delay: -12s; animation-duration: 18s; }
.login-bolhas i:nth-child(6) { left: 36%; width: 110px; animation-delay: -7s; animation-duration: 23s; }
@keyframes sobe { 0% { transform: translateY(105vh); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(-15vh); opacity: 0; } }
.login-cartao {
  position: relative; width: min(400px, 100%); padding: 34px 30px 28px; border-radius: 22px;
  background: rgba(255, 255, 255, .96); box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .4) inset;
  animation: entra .7s var(--ease) both;
}
@keyframes entra { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.login-cartao h1 { margin: 18px 0 4px; font-size: 24px; letter-spacing: -.02em; font-weight: 700; }
.login-cartao p { margin: 0 0 22px; color: var(--muted); }
.login-cartao label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.campo {
  display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 6px 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2); transition: border-color .2s, box-shadow .2s, background .2s;
}
.campo:focus-within { border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(37, 211, 102, .16); }
.campo input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 100%; font-size: 15px; letter-spacing: .02em; }
.login-cartao .btn { width: 100%; height: 46px; margin-top: 14px; font-size: 15px; border-radius: 12px; }
.login-erro { min-height: 20px; margin-top: 10px; color: var(--red-ink); font-size: 13px; font-weight: 500; }
.login-rodape { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 12.5px; }
.treme { animation: treme .42s var(--ease); }
@keyframes treme { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }

/* ------------------------------------------------------------ marca */
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.marca-icone {
  position: relative; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(145deg, #17221d, #0a0f0c); color: #fff; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .4);
}
.marca-icone svg { width: 18px; height: 18px; }
.marca-icone::after { content: ""; position: absolute; right: -2px; top: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid var(--surface); }
.marca b { font-size: 15px; letter-spacing: -.01em; }
.marca small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; margin-top: -2px; }
.login .marca-icone { width: 44px; height: 44px; border-radius: 13px; }
.login .marca-icone svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------ topo */
.topo {
  position: sticky; top: 0; z-index: 20; height: var(--top-h);
  display: flex; align-items: center; gap: 18px; padding: 0 18px;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--bg); }
.nav a {
  position: relative; z-index: 1; padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2);
  font-weight: 550; font-size: 13.5px; transition: color .2s; display: inline-flex; align-items: center; gap: 7px;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav-marcador { position: absolute; z-index: 0; top: 4px; bottom: 4px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); transition: left .35s var(--ease), width .35s var(--ease); }
.nav .bolinha { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--green); color: #05301a; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.topo-dir { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.online {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px;
  background: var(--green-softer); color: var(--green-ink); font-size: 12.5px; font-weight: 600; border: 1px solid #d3f0de;
}
.online.off { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.ponto { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.ponto::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulsa 2s ease-out infinite; }
.online.off .ponto { background: var(--muted-2); }
.online.off .ponto::after { animation: none; }
@keyframes pulsa { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
.online.bate .ponto { animation: bate .5s var(--spring); }
@keyframes bate { 40% { transform: scale(1.7); } }
.agente {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 4px; border-radius: 999px;
  border: 1px solid transparent; background: transparent; transition: background .2s, border-color .2s;
}
.agente:hover { background: var(--surface-2); border-color: var(--line); }
.agente span:last-child { font-weight: 550; font-size: 13px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu {
  position: absolute; right: 14px; top: calc(var(--top-h) - 4px); min-width: 220px; padding: 6px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform-origin: top right;
  animation: abre .2s var(--ease);
}
@keyframes abre { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 9px; text-align: left; color: var(--ink); text-decoration: none; font-size: 13.5px; }
.menu button:hover, .menu a:hover { background: var(--bg); }
.menu svg { width: 16px; height: 16px; color: var(--muted); }
.menu hr { border: 0; border-top: 1px solid var(--line-2); margin: 6px 4px; }
.menu .menu-info { padding: 8px 10px 10px; color: var(--muted); font-size: 12px; }

/* ------------------------------------------------------------ faixa da ponte */
.faixa {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 18px;
  background: linear-gradient(90deg, #c92f2f, #e14848); color: #fff; font-weight: 500; font-size: 13.5px;
  overflow: hidden; animation: desce .4s var(--ease);
}
.faixa::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .16) 50%, transparent 70%); transform: translateX(-100%); animation: brilho 3.2s ease-in-out infinite; }
@keyframes brilho { 60%, 100% { transform: translateX(100%); } }
@keyframes desce { from { transform: translateY(-100%); opacity: 0; } }
.faixa svg { width: 18px; height: 18px; flex: none; }
.faixa a { color: #fff; font-weight: 650; margin-left: auto; white-space: nowrap; text-underline-offset: 3px; }
.faixa p { margin: 0; }

/* ------------------------------------------------------------ inbox */
.inbox {
  display: grid; grid-template-columns: 340px minmax(0, 1fr) 300px;
  height: calc(100dvh - var(--top-h) - var(--faixa-h, 0px));
  min-height: 420px;
}
.lista { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-right: 1px solid var(--line); }
.lista-topo { padding: 16px 16px 10px; display: grid; gap: 10px; }
.lista-titulo { display: flex; align-items: baseline; gap: 8px; }
.lista-titulo h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.lista-titulo span { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.busca { height: 38px; border-radius: 11px; padding: 0 10px; gap: 8px; }
.busca svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.busca input { font-size: 13.5px; letter-spacing: 0; }
.filtros { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding: 3px; border-radius: 11px; background: var(--bg); }
.filtros button { position: relative; z-index: 1; height: 30px; border: 0; background: none; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); transition: color .2s; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.filtros button[aria-pressed="true"] { color: var(--ink); }
.filtros button em { font-style: normal; font-size: 11px; color: var(--muted-2); font-weight: 600; }
.filtros-marcador { position: absolute; z-index: 0; top: 3px; bottom: 3px; border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); transition: left .32s var(--ease), width .32s var(--ease); }
.itens { flex: 1; overflow-y: auto; padding: 4px 8px 16px; overscroll-behavior: contain; }
.itens::-webkit-scrollbar, .mensagens::-webkit-scrollbar { width: 10px; }
.itens::-webkit-scrollbar-thumb, .mensagens::-webkit-scrollbar-thumb { background: #dfe2dc; border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
.grupo-rotulo { padding: 12px 10px 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted-2); }
.item {
  position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: start;
  width: 100%; padding: 11px 10px; border: 0; border-radius: 12px; background: transparent; text-align: left;
  transition: background .18s, transform .18s var(--ease);
}
.item:hover { background: var(--surface-2); }
.item:active { transform: scale(.99); }
.item[aria-selected="true"] { background: var(--green-softer); box-shadow: inset 0 0 0 1px #d6f1e0; }
.item.nao-lida::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--green); }
.item.chegou { animation: chega .7s var(--ease); }
@keyframes chega { 0% { opacity: 0; transform: translateY(-10px); background: var(--green-soft); } 40% { opacity: 1; transform: none; background: var(--green-soft); } 100% { background: transparent; } }
.item.mexeu { animation: mexeu 1.2s var(--ease); }
@keyframes mexeu { 0% { background: var(--green-soft); } 100% { background: transparent; } }
.item-linha { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.item-nome { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item.nao-lida .item-nome { font-weight: 750; }
.item-hora { flex: none; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.item.nao-lida .item-hora { color: var(--green-ink); font-weight: 650; }
.item-previa { margin-top: 2px; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.item.nao-lida .item-previa { color: var(--ink-2); }
.item-previa b { font-weight: 600; color: var(--ink-2); }
.item-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--bg); color: var(--ink-2); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip svg { width: 11px; height: 11px; }
.chip-wa { background: var(--green-soft); color: var(--green-ink); }
.chip-pagina { color: var(--muted); background: transparent; padding: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; min-width: 0; display: block; line-height: 20px; }
.chip-espera { background: var(--amber-soft); color: var(--amber); }
.chip-fechada { background: var(--bg); color: var(--muted); }
.badge { margin-left: auto; flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--green); color: #05301a; font-size: 11.5px; font-weight: 750; display: inline-grid; place-items: center; animation: pop .35s var(--spring); }
@keyframes pop { from { transform: scale(.4); } }
.digitando-txt { color: var(--green-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

.avatar {
  --h: 150; position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: hsl(var(--h) 45% 92%); color: hsl(var(--h) 45% 28%); font-weight: 700; font-size: 14px; letter-spacing: -.02em; flex: none;
}
.avatar.g { width: 64px; height: 64px; font-size: 21px; }
.avatar.p { width: 36px; height: 36px; font-size: 13px; }
.avatar .canal { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; border: 2px solid #fff; }
.avatar .canal svg { width: 10px; height: 10px; }
.avatar.g .canal { width: 22px; height: 22px; }
.avatar.g .canal svg { width: 12px; height: 12px; }

.dots { display: inline-flex; gap: 3px; align-items: center; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: dot 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

/* skeleton */
.esqueleto { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 12px 10px; }
.esqueleto i { display: block; border-radius: 8px; background: linear-gradient(90deg, #eef0eb 25%, #f7f8f5 50%, #eef0eb 75%); background-size: 200% 100%; animation: brilha 1.4s linear infinite; }
.esqueleto i:first-child { width: 42px; height: 42px; border-radius: 50%; grid-row: span 2; }
.esqueleto i:nth-child(2) { height: 12px; width: 60%; margin-top: 6px; }
.esqueleto i:nth-child(3) { height: 10px; width: 85%; }
@keyframes brilha { to { background-position: -200% 0; } }

/* vazio */
.vazio { display: grid; place-items: center; text-align: center; padding: 32px 22px; color: var(--muted); }
.vazio h3 { margin: 16px 0 6px; color: var(--ink); font-size: 16px; letter-spacing: -.01em; }
.vazio p { margin: 0 auto; max-width: 300px; font-size: 13.5px; }
.vazio-ilustra { width: 148px; height: 112px; }
.vazio-ilustra .b1 { animation: flutua 5s ease-in-out infinite; }
.vazio-ilustra .b2 { animation: flutua 5s ease-in-out infinite -2.5s; }
.vazio-ilustra .d { animation: dot 1.4s ease-in-out infinite; transform-box: fill-box; }
.vazio-ilustra .d:nth-of-type(2) { animation-delay: .18s; }
.vazio-ilustra .d:nth-of-type(3) { animation-delay: .36s; }
@keyframes flutua { 50% { transform: translateY(-6px); } }

.radar { position: relative; width: 132px; height: 132px; display: grid; place-items: center; margin: 0 auto 6px; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(37, 211, 102, .5); animation: radar 3.6s cubic-bezier(.2, .6, .3, 1) infinite; opacity: 0; }
.radar i:nth-child(2) { animation-delay: 1.2s; }
.radar i:nth-child(3) { animation-delay: 2.4s; }
.radar span { position: relative; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #2be070, #18a957); box-shadow: 0 14px 30px -10px rgba(24, 169, 87, .7); animation: flutua 4s ease-in-out infinite; }
.radar span svg { width: 26px; height: 26px; }
@keyframes radar { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }

/* ------------------------------------------------------------ conversa */
.conversa { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.conversa-vazia { flex: 1; display: grid; place-items: center; }
.conversa-vazia .vazio { max-width: 420px; }
.conversa-vazia .resumo-frase { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.conversa-vazia .resumo-frase b { color: var(--green-ink); }
.conversa-topo {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.conversa-topo .voltar { display: none; margin-left: -6px; }
.conversa-quem { min-width: 0; flex: 1; }
.conversa-quem h2 { margin: 0; font-size: 15.5px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; min-width: 0; }
.conversa-quem h2 span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversa-quem p { margin: 1px 0 0; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversa-quem p .ao-vivo { color: var(--green-ink); font-weight: 600; }
.acoes { display: flex; align-items: center; gap: 6px; flex: none; }
.estado { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 650; flex: none; }
.estado::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.estado.aberta, .estado.aguardando_visitante { background: var(--green-soft); color: var(--green-ink); }
.estado.aguardando_equipe { background: var(--amber-soft); color: var(--amber); }
.estado.fechada { background: #eceee9; color: var(--muted); }

.mensagens {
  flex: 1; overflow-y: auto; padding: 22px clamp(14px, 4vw, 48px) 12px; overscroll-behavior: contain;
  background-image: radial-gradient(rgba(16, 22, 29, .045) 1px, transparent 1px); background-size: 22px 22px;
  scroll-behavior: smooth;
}
.dia { display: flex; justify-content: center; margin: 14px 0 10px; position: sticky; top: 0; z-index: 1; }
.dia span { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); font-size: 11.5px; font-weight: 650; color: var(--muted); box-shadow: var(--shadow-sm); }
.msg { display: flex; flex-direction: column; align-items: flex-start; margin: 3px 0; max-width: min(620px, 82%); }
.msg.equipe { margin-left: auto; align-items: flex-end; }
.msg.cola { margin-top: 1px; }
.msg-autor { display: flex; align-items: center; gap: 6px; margin: 10px 4px 4px; font-size: 11.5px; font-weight: 650; color: var(--ink-2); }
.msg-autor small { font-weight: 500; color: var(--muted); }
.msg-autor svg { width: 12px; height: 12px; color: var(--muted); }
.bolha {
  position: relative; padding: 9px 13px 8px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5;
}
.msg.visitante .bolha { border-top-left-radius: 6px; }
.msg.visitante.cola .bolha { border-top-left-radius: 16px; }
.msg.equipe .bolha { background: linear-gradient(180deg, #e9f9ef, #def5e7); border-color: #cdeedb; border-top-right-radius: 6px; color: #0d2a1b; }
.msg.equipe.cola .bolha { border-top-right-radius: 16px; }
.msg-hora { margin: 3px 6px 0; font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; display: inline-flex; gap: 4px; align-items: center; }
.msg-hora svg { width: 13px; height: 13px; }
.msg.enviando .bolha { opacity: .65; }
.msg.falhou .bolha { border-color: #f0b8b8; background: var(--red-soft); }
.msg.falhou .msg-hora { color: var(--red-ink); }
.msg.nova { animation: msgEntra .38s var(--ease) both; }
.msg.equipe.nova { animation-name: msgEntraDir; }
@keyframes msgEntra { from { opacity: 0; transform: translate(-10px, 8px) scale(.97); } }
@keyframes msgEntraDir { from { opacity: 0; transform: translate(10px, 8px) scale(.97); } }
.evento { display: flex; justify-content: center; margin: 12px 0; }
.evento span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(16, 22, 29, .05); color: var(--muted); font-size: 12px; font-weight: 500; text-align: center; }
.evento.nova { animation: aparece .45s ease both; }
.evento small { color: var(--muted-2); font-variant-numeric: tabular-nums; }
.digitando-bolha { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 4px; padding: 10px 14px; border-radius: 16px; border-top-left-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; animation: msgEntra .3s var(--ease); }
.descer {
  position: absolute; right: 22px; bottom: 98px; z-index: 3; height: 36px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; color: var(--ink-2);
  animation: pop .3s var(--spring);
}
.descer svg { width: 16px; height: 16px; }
.descer b { color: var(--green-ink); }

/* compositor */
.compositor { position: relative; padding: 10px 16px 14px; background: linear-gradient(180deg, rgba(243, 244, 240, 0), var(--bg) 30%); }
.aviso-compositor { display: flex; align-items: center; gap: 8px; margin: 0 4px 8px; font-size: 12.5px; color: var(--muted); }
.aviso-compositor svg { width: 14px; height: 14px; flex: none; }
.aviso-compositor button { margin-left: auto; }
.caixa {
  display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 18px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .25s;
}
.caixa:focus-within { border-color: #9fe2b9; box-shadow: 0 0 0 4px rgba(37, 211, 102, .13), var(--shadow); }
.caixa textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: transparent; padding: 9px 0; max-height: 160px; line-height: 1.45; font-size: 14px; }
.caixa .icone-btn { flex: none; margin-bottom: 1px; }
.enviar { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: var(--green); color: #05301a; display: grid; place-items: center; transition: transform .2s var(--spring), background .2s, box-shadow .2s, opacity .2s; }
.enviar svg { width: 18px; height: 18px; transform: translateX(1px); }
.enviar:hover { background: #2be070; box-shadow: 0 8px 18px -6px rgba(37, 211, 102, .7); transform: scale(1.06); }
.enviar:active { transform: scale(.9); }
.enviar[disabled] { background: #e6e9e3; color: var(--muted-2); box-shadow: none; transform: none; }
.enviar.voou svg { animation: voa .45s var(--ease); }
@keyframes voa { 50% { transform: translate(14px, -10px) scale(.6); opacity: 0; } 51% { transform: translate(-12px, 8px) scale(.6); opacity: 0; } }
.dica-teclas { margin: 6px 6px 0; font-size: 11.5px; color: var(--muted-2); }
.dica-teclas kbd { font: inherit; font-weight: 650; color: var(--muted); padding: 0 5px; border-radius: 5px; background: #fff; border: 1px solid var(--line); }

.prontas {
  position: absolute; left: 16px; right: 16px; bottom: calc(100% - 6px); max-height: 280px; overflow-y: auto; z-index: 5;
  padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: abre .18s var(--ease);
}
.prontas-topo { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 8px; font-size: 11.5px; font-weight: 700; color: var(--muted-2); letter-spacing: .06em; text-transform: uppercase; }
.prontas-topo button { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; border: 0; background: none; color: var(--green-ink); padding: 2px 6px; border-radius: 6px; }
.prontas-topo button:hover { background: var(--green-softer); }
.pronta { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; text-align: left; }
.pronta[aria-selected="true"] { background: var(--green-softer); }
.pronta code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; font-weight: 650; color: var(--green-ink); }
.pronta span { color: var(--ink-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pronta mark { background: #d4f5e0; color: inherit; border-radius: 3px; }
.prontas-vazio { padding: 12px 10px; color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------ detalhes */
.detalhes { min-height: 0; overflow-y: auto; background: var(--surface); border-left: 1px solid var(--line); }
.detalhes-cabeca { padding: 26px 20px 18px; text-align: center; display: grid; justify-items: center; gap: 4px; }
.detalhes-cabeca h3 { margin: 10px 0 0; font-size: 16px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.detalhes-cabeca p { margin: 0; color: var(--muted); font-size: 12.5px; }
.detalhes-fechar { display: none; position: absolute; z-index: 2; right: 10px; top: 10px; }
.secao { padding: 14px 20px; border-top: 1px solid var(--line-2); }
.secao h4 { margin: 0 0 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted-2); }
.dado { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 6px 0; font-size: 13.5px; }
.dado > svg { width: 16px; height: 16px; color: var(--muted); margin-top: 2px; }
.dado small { display: block; color: var(--muted); font-size: 12px; }
.dado a { word-break: break-all; text-decoration: none; font-weight: 550; }
.dado a:hover { text-decoration: underline; text-underline-offset: 3px; }
.relogio { font-variant-numeric: tabular-nums; font-weight: 650; }
.vazio-dado { color: var(--muted-2); }

/* ------------------------------------------------------------ dialogo */
.veu { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(13, 21, 18, .42); backdrop-filter: blur(4px); animation: aparece .2s ease; }
@keyframes aparece { from { opacity: 0; } }
.dialogo { width: min(440px, 100%); padding: 22px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); animation: entra .3s var(--ease); }
.dialogo h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
.dialogo p { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; }
.dialogo label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 10px 0 6px; }
.dialogo textarea { width: 100%; min-height: 90px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); resize: vertical; outline: 0; }
.dialogo textarea:focus { border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(37, 211, 102, .16); }
.dialogo-acoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.dialogo .erro { color: var(--red-ink); font-size: 13px; min-height: 18px; margin-top: 8px; }

/* toast */
.toasts { position: fixed; right: 18px; top: calc(var(--top-h) + var(--faixa-h, 0px) + 14px); z-index: 70; display: grid; gap: 8px; justify-items: end; pointer-events: none; width: max-content; max-width: min(420px, calc(100vw - 32px)); }
.toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: #111a16; color: #fff; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg); animation: toastEntra .35s var(--spring); }
.toast.sai { animation: toastSai .25s var(--ease) forwards; }
.toast svg { width: 16px; height: 16px; color: var(--green); flex: none; }
.toast.erro svg { color: #ff8b8b; }
@keyframes toastEntra { from { opacity: 0; transform: translateX(24px) scale(.96); } }
@keyframes toastSai { to { opacity: 0; transform: translateX(16px); } }
@media (min-width: 1241px) {
  body.sem-conversa .inbox { grid-template-columns: 340px minmax(0, 1fr); }
  body.sem-conversa .detalhes { display: none; }
}

/* ------------------------------------------------------------ paginas (whatsapp, relatorio) */
.pagina { max-width: 1040px; margin: 0 auto; padding: 32px 22px 64px; }
.pagina-cabeca { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.pagina-cabeca h1 { margin: 0; font-size: 26px; letter-spacing: -.025em; }
.pagina-cabeca p { margin: 4px 0 0; color: var(--muted); }
.cartao { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.cartao + .cartao { margin-top: 18px; }
.cartao-secao { padding: 22px 24px; }
.cartao-secao + .cartao-secao { border-top: 1px solid var(--line-2); }
.cartao-secao h2 { margin: 0 0 4px; font-size: 15px; letter-spacing: -.01em; }
.cartao-secao > p.sub { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.seg { position: relative; display: inline-grid; grid-auto-flow: column; padding: 3px; border-radius: 11px; background: #e9ebe5; }
.seg button { position: relative; z-index: 1; height: 32px; padding: 0 14px; border: 0; background: none; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); transition: color .2s; }
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg-marcador { position: absolute; top: 3px; bottom: 3px; border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); transition: left .32s var(--ease), width .32s var(--ease); }

/* relatorio */
.leitura { margin: 0; font-size: clamp(20px, 2.4vw, 27px); line-height: 1.38; letter-spacing: -.02em; font-weight: 500; color: var(--ink-2); max-width: 880px; text-wrap: pretty; }
.leitura b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.leitura b.v { color: var(--green-ink); }
.grafico-cabeca { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.numero-grande { font-size: 40px; font-weight: 750; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.numero-grande small { font-size: 14px; font-weight: 550; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.tendencia { font-size: 13px; font-weight: 600; color: var(--muted); }
.tendencia.sobe { color: var(--green-ink); }
.grafico { position: relative; height: 220px; margin: 6px -6px 0; }
.grafico svg { width: 100%; height: 100%; display: block; overflow: visible; }
.grafico .linha { fill: none; stroke: var(--green-2); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.grafico .linha.desenha { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: desenha 1.2s var(--ease) forwards; }
@keyframes desenha { to { stroke-dashoffset: 0; } }
.grafico .area { opacity: 0; animation: aparece2 .9s .4s ease forwards; }
@keyframes aparece2 { to { opacity: 1; } }
.grafico .grade { stroke: var(--line-2); stroke-width: 1; }
.grafico .eixo { fill: var(--muted-2); font-size: 11px; font-family: var(--font); }
.grafico .ponta { fill: var(--green-2); }
.grafico .ponta-pulso { fill: var(--green); transform-box: fill-box; transform-origin: center; animation: pulsaSvg 2s ease-out infinite; }
@keyframes pulsaSvg { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
.grafico .guia { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: .35; }
.dica { position: absolute; pointer-events: none; padding: 7px 10px; border-radius: 10px; background: #111a16; color: #fff; font-size: 12px; font-weight: 550; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); box-shadow: var(--shadow); transition: opacity .15s; }
.dica b { font-variant-numeric: tabular-nums; }
.linhas { list-style: none; margin: 0; padding: 0; }
.linhas li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-2); }
.linhas li:first-child { border-top: 0; }
.linhas .rotulo { min-width: 0; }
.linhas .rotulo a, .linhas .rotulo span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; text-decoration: none; color: var(--ink); }
.linhas .rotulo a:hover { color: var(--green-ink); }
.linhas .barra { display: block; height: 4px; margin-top: 7px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.linhas .barra i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--green-2), var(--green)); transition: width 1s var(--ease); }
.linhas .qtd { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.linhas .pct { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.divisao { display: flex; height: 12px; border-radius: 8px; overflow: hidden; background: var(--line-2); margin: 6px 0 12px; }
.divisao i { display: block; height: 100%; width: 0; transition: width 1s var(--ease); }
.divisao i:nth-child(1) { background: var(--ink); }
.divisao i:nth-child(2) { background: var(--green); }
.legenda { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
.legenda span { display: inline-flex; align-items: center; gap: 8px; }
.legenda i { width: 10px; height: 10px; border-radius: 3px; background: var(--ink); }
.legenda span:nth-child(2) i { background: var(--green); }
.legenda b { font-variant-numeric: tabular-nums; }
.duas { display: grid; grid-template-columns: 1fr 1fr; }
.duas > .cartao-secao + .cartao-secao { border-top: 0; border-left: 1px solid var(--line-2); }

/* whatsapp */
.wa-grade { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.wa-grade > .cartao-secao + .cartao-secao { border-top: 0; border-left: 1px solid var(--line-2); }
.wa-estado { display: flex; align-items: center; gap: 16px; }
.wa-anel { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--green-soft); color: var(--green-ink); }
.wa-anel svg { width: 26px; height: 26px; }
.wa-anel::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid currentColor; opacity: .25; animation: pulsaAnel 2.4s ease-out infinite; }
@keyframes pulsaAnel { 0% { transform: scale(.9); opacity: .4; } 100% { transform: scale(1.35); opacity: 0; } }
.wa-anel.close { background: var(--red-soft); color: var(--red-ink); }
.wa-anel.connecting { background: var(--amber-soft); color: var(--amber); }
.wa-estado h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.wa-estado p { margin: 2px 0 0; color: var(--muted); }
.qr-caixa { position: relative; width: 248px; max-width: 100%; aspect-ratio: 1; margin: 22px 0 14px; padding: 12px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.qr-caixa img { width: 100%; height: 100%; display: block; image-rendering: pixelated; animation: aparece .4s ease; }
.qr-caixa .varredura { position: absolute; left: 12px; right: 12px; top: 12px; height: 2px; background: linear-gradient(90deg, transparent, var(--green), transparent); box-shadow: 0 0 12px var(--green); animation: varre 2.6s ease-in-out infinite; }
@keyframes varre { 50% { top: calc(100% - 14px); } }
.qr-tempo { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; }
.qr-tempo svg { width: 22px; height: 22px; transform: rotate(-90deg); }
.qr-tempo circle { fill: none; stroke-width: 3; }
.qr-tempo .trilho { stroke: var(--line); }
.qr-tempo .resto { stroke: var(--green); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.passos { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: p; display: grid; gap: 10px; }
.passos li { counter-increment: p; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 13.5px; color: var(--ink-2); }
.passos li::before { content: counter(p); width: 24px; height: 24px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink); }
/* código de 8 letras (Conectar com número de telefone) */
.par-bloco { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line); }
.par-bloco h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.par-bloco .sub { margin: 2px 0 12px; color: var(--muted); font-size: 13px; }
.par-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.par-form .campo { flex: 1 1 200px; max-width: 260px; }
.par-form .campo input { font-variant-numeric: tabular-nums; }
.par-form .btn { height: 46px; border-radius: 12px; }
.par-mais { color: var(--muted); font-weight: 650; }
.par-cartao { margin-top: 4px; padding: 20px; border-radius: 18px; background: linear-gradient(180deg, var(--green-softer), #fff 70%); border: 1px solid #d6f1e0; box-shadow: var(--shadow-sm); animation: aparece .35s var(--ease); }
.par-letras { font: 700 clamp(30px, 6vw, 42px)/1.1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .12em; color: var(--ink); margin: 0 0 12px; user-select: all; }
.par-letras.esperando { color: var(--muted-2); animation: respira 1.4s ease-in-out infinite; }
.par-letras.renovado { animation: renova .7s var(--spring); }
@keyframes respira { 50% { opacity: .45; } }
@keyframes renova { 0% { transform: scale(.94); color: var(--green-ink); } 100% { transform: none; } }
.par-nota { margin: 10px 0 0; color: var(--ink-2); font-size: 13px; }
.par-cartao .passos { margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .par-letras.esperando, .par-letras.renovado, .par-cartao { animation: none; } }
.grupos { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.grupo { display: grid; grid-template-columns: 22px 38px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; cursor: pointer; transition: background .18s; }
.grupo:hover { background: var(--surface-2); }
.grupo:has(input:checked) { background: var(--green-softer); box-shadow: inset 0 0 0 1px #d6f1e0; }
.grupo input { width: 18px; height: 18px; accent-color: var(--green-2); margin: 0; }
.grupo b { display: block; font-weight: 600; }
.grupo small { color: var(--muted); font-size: 12px; }
.grupo .avatar { width: 38px; height: 38px; font-size: 13px; }
.grupo .atual { margin-left: 6px; font-size: 11px; font-weight: 650; color: var(--green-ink); }
.wa-dado { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.wa-dado:first-of-type { border-top: 0; }
.wa-dado span { color: var(--muted); }
.wa-dado b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* ------------------------------------------------------------ responsivo */
@media (max-width: 1240px) {
  .inbox { grid-template-columns: 320px minmax(0, 1fr); }
  .detalhes { position: fixed; z-index: 30; right: 0; top: var(--top-h); bottom: 0; width: min(340px, 92vw); box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .35s var(--ease); }
  body.ver-detalhes .detalhes { transform: none; }
  .detalhes-fechar { display: inline-grid; }
  .detalhes-cabeca { position: relative; }
}
@media (min-width: 1241px) {
  .btn-info { display: none; }
}
@media (max-width: 900px) {
  :root { --top-h: 56px; }
  .topo { gap: 10px; padding: 0 12px; }
  .marca small, .agente span:last-child, .online span.txt { display: none; }
  .online { padding: 0 10px; }
  .nav a { padding: 6px 10px; }
  .nav a .txt-longo { display: none; }
  .inbox { grid-template-columns: minmax(0, 1fr); overflow: hidden; }
  .lista, .conversa { grid-column: 1; grid-row: 1; min-width: 0; }
  .conversa { transform: translateX(100%); transition: transform .35s var(--ease); visibility: hidden; }
  body.ver-conversa .conversa { transform: none; visibility: visible; }
  body.ver-conversa .lista { visibility: hidden; transition: visibility 0s .35s; }
  .conversa-topo .voltar { display: inline-grid; }
  .conversa-topo { padding: 8px 10px; gap: 8px; }
  .acoes .btn .txt { display: none; }
  .acoes .btn { width: 36px; padding: 0; }
  .mensagens { padding: 16px 12px 8px; }
  .msg { max-width: 88%; }
  .compositor { padding: 8px 10px 10px; }
  .dica-teclas { display: none; }
  .descer { right: 14px; bottom: 84px; }
  .faixa { padding: 8px 12px; font-size: 12.5px; gap: 10px; line-height: 1.35; }
  .faixa-longo { display: none; }
  .faixa a { margin-left: 4px; }
  .conversa-quem h2 .estado { font-size: 0; width: 18px; height: 18px; padding: 0; justify-content: center; gap: 0; }
  .pagina { padding: 22px 16px 48px; }
  .toasts { left: 16px; right: 16px; top: auto; bottom: 96px; justify-items: center; width: auto; max-width: none; }
  .duas, .wa-grade { grid-template-columns: 1fr; }
  .duas > .cartao-secao + .cartao-secao, .wa-grade > .cartao-secao + .cartao-secao { border-left: 0; border-top: 1px solid var(--line-2); }
  .cartao-secao { padding: 18px 16px; }
  .numero-grande { font-size: 34px; }
  .grafico { height: 180px; }
  .linhas li { gap: 10px; }
}
@media (max-width: 600px) {
  .topo { gap: 8px; }
  .topo > .marca { display: none; }
  .nav { flex: 1; min-width: 0; }
  .nav a { flex: 1; justify-content: center; padding: 6px 4px; font-size: 13px; gap: 5px; }
  .nav .bolinha { min-width: 17px; height: 17px; font-size: 10.5px; padding: 0 4px; }
  .topo-dir { gap: 4px; }
  .online { width: 30px; padding: 0; justify-content: center; }
  .agente { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
