:root {
  --tinta: #0B1B3A;
  --tinta-2: #16294F;
  --azul: #1E5EFF;
  --azul-escuro: #1447C7;
  --azul-claro: #E6EEFF;
  --fundo: #F3F6FC;
  --papel: #FFFFFF;
  --linha: #DCE3F0;
  --texto: #0B1B3A;
  --texto-2: #5B667A;
  --texto-3: #8C96A8;
  --ambar: #B7791F; --ambar-bg: #FFF4DE;
  --coral: #D9480F; --coral-bg: #FFE9DF;
  --verde: #1B7F4C; --verde-bg: #DFF5E8;
  --display: 'Cabinet Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --corpo: 'General Sans', -apple-system, 'Segoe UI', Arial, sans-serif;
  --raio: 14px;
  --raio-s: 8px;
  --sombra: 0 1px 2px rgba(11,27,58,.06), 0 8px 24px -12px rgba(11,27,58,.18);
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font-family: var(--corpo); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; min-height: 100dvh;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.1; margin: 0; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
.mudo { color: var(--texto-2); }
.mini { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- entrada ---------- */
@keyframes surgir { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulsar { 0%,100% { box-shadow: 0 0 0 0 rgba(30,94,255,.45); } 70% { box-shadow: 0 0 0 10px rgba(30,94,255,0); } }
@keyframes gravando { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.tela { animation: surgir .32s var(--ease) both; }
.lista > * { animation: surgir .36s var(--ease) both; }
.lista > *:nth-child(1) { animation-delay: .02s } .lista > *:nth-child(2) { animation-delay: .06s }
.lista > *:nth-child(3) { animation-delay: .10s } .lista > *:nth-child(4) { animation-delay: .14s }
.lista > *:nth-child(5) { animation-delay: .18s } .lista > *:nth-child(6) { animation-delay: .22s }
.lista > *:nth-child(n+7) { animation-delay: .26s }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- login ---------- */
.login { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.login-marca {
  background: var(--tinta); color: #fff; padding: 56px 28px 40px;
  background-image: radial-gradient(ellipse at 20% 0%, rgba(30,94,255,.55), transparent 55%);
}
.login-marca .wordmark { font-size: 44px; }
.login-marca p { color: rgba(255,255,255,.72); max-width: 32ch; margin-top: 14px; font-size: 16px; }
.login-form { padding: 32px 24px 48px; max-width: 420px; width: 100%; margin: 0 auto; align-self: center; }
@media (min-width: 860px) {
  .login { grid-template-rows: 1fr; grid-template-columns: 1.1fr 1fr; }
  .login-marca { padding: 72px 64px; display: flex; flex-direction: column; justify-content: flex-end; }
  .login-marca .wordmark { font-size: 64px; }
  .login-form { padding: 64px 56px; }
}
.wordmark { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: 1; display: inline-flex; align-items: center; gap: .18em; }
.wordmark i { width: .32em; height: .32em; border-radius: 50%; background: var(--azul); display: inline-block; margin-top: .18em; }

/* ---------- formulários ---------- */
.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.campo label { font-weight: 500; font-size: 14px; }
.campo .ajuda { font-size: 13px; color: var(--texto-3); }
.entrada {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--linha); border-radius: var(--raio-s);
  background: var(--papel); transition: border-color .15s, box-shadow .15s;
}
.entrada:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(30,94,255,.12); }
textarea.entrada { min-height: 110px; resize: vertical; }
select.entrada { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235B667A' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.erro-form { color: var(--coral); font-size: 14px; margin-top: -6px; margin-bottom: 14px; min-height: 1em; }

.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 15px;
  background: var(--azul); color: #fff; transition: transform .12s var(--ease), background .15s, box-shadow .15s;
  white-space: nowrap;
}
.botao:hover { background: var(--azul-escuro); text-decoration: none; }
.botao:active { transform: scale(.97); }
.botao:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.botao.cheio { width: 100%; }
.botao.claro { background: var(--papel); color: var(--tinta); border-color: var(--linha); }
.botao.claro:hover { background: var(--azul-claro); border-color: transparent; }
.botao.fantasma { background: transparent; color: var(--texto-2); }
.botao.google { background: var(--papel); color: var(--tinta); border-color: var(--linha); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.botao.google:hover { background: var(--papel); border-color: var(--tinta); box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.login-alternativa { margin-top: 6px; }
.login-alternativa summary { cursor: pointer; font-size: 14px; color: var(--texto-2); padding: 8px 0 16px; list-style: none; text-align: center; }
.login-alternativa summary::-webkit-details-marker { display: none; }
.login-alternativa summary:hover { color: var(--tinta); text-decoration: underline; }
.botao.fantasma:hover { background: var(--azul-claro); color: var(--tinta); }
.botao.verde { background: var(--verde); }
.botao.verde:hover { background: #156a3e; }
.botao.coral { background: var(--papel); color: var(--coral); border-color: #F2C3AF; }
.botao.coral:hover { background: var(--coral-bg); }
.botao.pequeno { padding: 8px 14px; font-size: 14px; }
.botao svg { width: 18px; height: 18px; flex: none; }
.icone-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: inline-grid; place-items: center; color: var(--texto-2); }
.icone-btn:hover { background: var(--azul-claro); color: var(--tinta); }
.icone-btn svg { width: 20px; height: 20px; }

/* ---------- shell ---------- */
.topo {
  position: sticky; top: 0; z-index: 20; background: rgba(243,246,252,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linha);
}
.topo-in { max-width: 1040px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.topo .wordmark { font-size: 22px; color: var(--tinta); }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--texto-2); font-weight: 500; font-size: 14px; }
.nav a:hover { text-decoration: none; background: var(--azul-claro); color: var(--tinta); }
.nav a.ativo { background: var(--tinta); color: #fff; }
.topo .espaco { flex: 1; }
.chip-empresa { font-size: 13px; color: var(--texto-2); padding: 6px 12px; border: 1px solid var(--linha); border-radius: 999px; background: var(--papel); max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--tinta); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--display); border: 0; }
.menu { position: absolute; right: 16px; top: 54px; background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); padding: 6px; min-width: 200px; animation: surgir .18s var(--ease); }
.menu button, .menu a { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: var(--raio-s); color: var(--texto); }
.menu button:hover, .menu a:hover { background: var(--azul-claro); text-decoration: none; }
.menu .quem { padding: 8px 12px 10px; border-bottom: 1px solid var(--linha); margin-bottom: 6px; }
.pagina { max-width: 1040px; margin: 0 auto; padding: 20px 16px 96px; }
.cabecalho { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.cabecalho .sub { color: var(--texto-2); margin-top: 4px; }
@media (max-width: 640px) {
  .topo-in { padding: 8px 12px; gap: 8px; }
  .nav { margin-left: 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 7px 10px; font-size: 13px; white-space: nowrap; }
  .topo .wordmark { font-size: 19px; flex-shrink: 0; }
  .chip-empresa { display: none; } /* a empresa já aparece no subtítulo da fila */
  .avatar { flex-shrink: 0; width: 32px; height: 32px; }
}

/* ---------- filtros ---------- */
.filtros { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.filtro { flex: none; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--linha); background: var(--papel); font-size: 13px; font-weight: 500; color: var(--texto-2); display: inline-flex; gap: 6px; align-items: center; }
.filtro b { font-weight: 600; color: var(--texto-3); }
.filtro.ativo { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.filtro.ativo b { color: rgba(255,255,255,.7); }
.barra-ferramentas { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.barra-ferramentas select { width: auto; min-width: 200px; }

/* ---------- lista de posts ---------- */
.lista { display: flex; flex-direction: column; gap: 8px; }
.ficha {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
  background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 10px 14px 10px 10px;
  color: inherit; transition: transform .15s var(--ease), box-shadow .15s, border-color .15s;
}
.ficha:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--sombra); border-color: #C9D4EA; }
.miniatura { width: 64px; height: 64px; border-radius: 10px; background: var(--tinta-2); overflow: hidden; display: grid; place-items: center; color: #fff; position: relative; }
.miniatura img { width: 100%; height: 100%; object-fit: cover; display: block; }
.miniatura svg { width: 24px; height: 24px; opacity: .9; }
.miniatura .v { position: absolute; right: 4px; bottom: 3px; font-family: var(--display); font-weight: 800; font-size: 11px; background: rgba(11,27,58,.75); color: #fff; padding: 1px 6px; border-radius: 6px; }
.ficha-texto { min-width: 0; }
.ficha-titulo { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ficha-meta { color: var(--texto-2); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ficha-meta b { color: var(--texto); font-weight: 500; }
.ficha .pilula { justify-self: end; }
@media (max-width: 480px) {
  .ficha { grid-template-columns: 56px 1fr; }
  .miniatura { width: 56px; height: 56px; }
  .ficha .pilula { grid-column: 2; justify-self: start; margin-top: 2px; }
}

.pilula { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pilula::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pilula.em_revisao { background: var(--ambar-bg); color: var(--ambar); }
.pilula.em_correcao { background: var(--coral-bg); color: var(--coral); }
.pilula.aprovado { background: var(--verde-bg); color: var(--verde); }
.pilula.agendado { background: var(--azul-claro); color: var(--azul-escuro); }
.pilula.publicado { background: var(--tinta); color: #fff; }
.pilula.pendente { background: var(--azul-claro); color: var(--azul-escuro); }
.pilula.publicando { background: var(--azul-claro); color: var(--azul-escuro); }
.pilula.erro { background: var(--coral-bg); color: var(--coral); }
.pilula.cancelado { background: #EEF1F7; color: var(--texto-3); }

.vazio { text-align: center; padding: 56px 20px; border: 1.5px dashed var(--linha); border-radius: var(--raio); color: var(--texto-2); }
.vazio h3 { color: var(--texto); margin-bottom: 6px; }
.vazio .botao { margin-top: 18px; }

/* botão flutuante no celular */
.fab { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 15; box-shadow: 0 10px 30px -8px rgba(30,94,255,.6); padding: 14px 20px; }
@media (min-width: 720px) { .fab { display: none; } }
@media (max-width: 719px) { .so-desktop { display: none !important; } }

/* ---------- novo post ---------- */
.cartao { background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 20px; }
.cartao + .cartao { margin-top: 14px; }
.formulario { max-width: 640px; }
.dropzone {
  border: 2px dashed #C3CEE4; border-radius: var(--raio); padding: 28px 18px; text-align: center; cursor: pointer;
  background: var(--fundo); transition: border-color .15s, background .15s; position: relative;
}
.dropzone:hover, .dropzone.sobre { border-color: var(--azul); background: var(--azul-claro); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone svg { width: 32px; height: 32px; color: var(--azul); margin-bottom: 8px; }
.dropzone .titulo { font-weight: 600; }
.dropzone .ajuda { font-size: 13px; color: var(--texto-3); margin-top: 4px; }
.previa-arquivo { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; margin-top: 12px; padding: 10px; border: 1px solid var(--linha); border-radius: var(--raio-s); background: var(--papel); }
.previa-arquivo .miniatura { width: 72px; height: 72px; }
.previa-arquivo .nome { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progresso { height: 6px; background: var(--azul-claro); border-radius: 999px; overflow: hidden; margin-top: 14px; }
.progresso i { display: block; height: 100%; width: 0; background: var(--azul); transition: width .2s linear; border-radius: 999px; }

/* ---------- post ---------- */
.voltar { display: inline-flex; align-items: center; gap: 6px; color: var(--texto-2); font-size: 14px; margin-bottom: 10px; }
.voltar svg { width: 16px; height: 16px; }
.post-cab { margin-bottom: 18px; }
.post-cab h1 { font-size: 26px; }
.post-cab .sub { color: var(--texto-2); margin-top: 6px; font-size: 14px; }
.post-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .post-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } .col-fixa { position: sticky; top: 72px; } }

/* trilho — a assinatura */
.trilho { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; margin: 6px 0 22px; }
.trilho::before { content: ""; position: absolute; left: 10%; right: 10%; top: 9px; height: 2px; background: var(--linha); }
.trilho .etapa { text-align: center; position: relative; font-size: 12px; color: var(--texto-3); font-weight: 500; }
.trilho .etapa i { display: block; width: 20px; height: 20px; margin: 0 auto 8px; border-radius: 50%; background: var(--papel); border: 2px solid var(--linha); position: relative; z-index: 1; transition: all .3s var(--ease); }
.trilho .etapa.feita i { background: var(--tinta); border-color: var(--tinta); }
.trilho .etapa.feita i::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.trilho .etapa.feita { color: var(--tinta); }
.trilho .etapa.atual i { background: var(--azul); border-color: var(--azul); animation: pulsar 1.8s ease-out infinite; }
.trilho .etapa.atual { color: var(--azul-escuro); font-weight: 600; }
.trilho .etapa.correcao i { background: var(--coral); border-color: var(--coral); animation-name: pulsar; }
.trilho .etapa.correcao { color: var(--coral); font-weight: 600; }
.trilho .etapa small { display: block; font-weight: 400; color: var(--texto-3); }
@media (max-width: 420px) { .trilho .etapa { font-size: 11px; } }

/* mídia */
.midia { background: var(--tinta); border-radius: var(--raio); overflow: hidden; position: relative; display: grid; place-items: center; min-height: 240px; max-height: 70vh; }
.midia img, .midia video { max-width: 100%; max-height: 70vh; display: block; }
.midia .doc { color: #fff; text-align: center; padding: 40px 20px; }
.midia .doc svg { width: 40px; height: 40px; margin-bottom: 10px; }
.midia .doc .botao { margin-top: 14px; }
.midia .selo-v { position: absolute; left: 12px; top: 10px; font-family: var(--display); font-weight: 800; font-size: 22px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); letter-spacing: -.03em; }
.versoes { display: flex; gap: 6px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.versoes button { padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--linha); background: var(--papel); font-size: 13px; font-weight: 600; }
.versoes button.ativa { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.versoes .baixar { margin-left: auto; }
.contexto { margin-top: 14px; white-space: pre-wrap; }
.contexto .rotulo { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--texto-3); font-weight: 600; margin-bottom: 4px; }

/* ações */
.acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.aviso { padding: 12px 14px; border-radius: var(--raio-s); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.aviso svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.aviso.coral { background: var(--coral-bg); color: #8A2E07; }
.aviso.verde { background: var(--verde-bg); color: #115530; }
.aviso.azul { background: var(--azul-claro); color: var(--tinta); }

/* conversa */
.conversa { display: flex; flex-direction: column; gap: 10px; }
.sistema { text-align: center; font-size: 12.5px; color: var(--texto-3); padding: 2px 0; }
.sistema time { margin-left: 6px; }
.balao { max-width: 88%; padding: 10px 14px; border-radius: 16px; background: var(--papel); border: 1px solid var(--linha); position: relative; animation: surgir .25s var(--ease) both; }
.balao.atitude { align-self: flex-start; border-bottom-left-radius: 4px; }
.balao.cliente { align-self: flex-end; background: var(--azul-claro); border-color: transparent; border-bottom-right-radius: 4px; }
.balao .quem { font-size: 12px; font-weight: 600; color: var(--texto-2); display: flex; gap: 8px; justify-content: space-between; margin-bottom: 3px; }
.balao .quem time { font-weight: 400; color: var(--texto-3); }
.balao p { white-space: pre-wrap; word-break: break-word; }
.balao audio { width: min(280px, 70vw); display: block; margin-top: 4px; }
.balao .correcao-tag { font-size: 11.5px; font-weight: 600; color: var(--coral); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }

.compositor { margin-top: 14px; background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 10px; }
.compositor textarea { border: 0; width: 100%; resize: none; min-height: 44px; max-height: 160px; padding: 8px 6px; background: transparent; }
.compositor textarea:focus { outline: none; }
.compositor-barra { display: flex; align-items: center; gap: 8px; }
.compositor-barra .espaco { flex: 1; }
.mic { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--linha); background: var(--papel); display: grid; place-items: center; color: var(--tinta); }
.mic svg { width: 20px; height: 20px; }
.mic.gravando { background: var(--coral); border-color: var(--coral); color: #fff; animation: gravando 1s ease-in-out infinite; }
.gravacao { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--texto-2); padding: 4px 6px; }
.gravacao audio { height: 36px; flex: 1; }
.alternar { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--texto-2); cursor: pointer; user-select: none; }
.alternar input { accent-color: var(--coral); width: 16px; height: 16px; }

/* agendamentos */
.agenda-item { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--linha); }
.agenda-item:first-child { border-top: 0; }
.rede { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--azul-claro); color: var(--tinta); overflow: hidden; }
.rede img { width: 100%; height: 100%; object-fit: cover; }
.rede svg { width: 18px; height: 18px; }
.agenda-item .quando { font-size: 13px; color: var(--texto-2); }
.agenda-item .erro-txt { font-size: 12.5px; color: var(--coral); margin-top: 2px; }
.secao { margin-top: 18px; }
.secao-titulo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }

/* contas conectadas */
.conta { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--linha); }
.conta:first-child { border-top: 0; }
.conta .rede { width: 44px; height: 44px; }
.conta .nome { font-weight: 600; }
.conta .sub { font-size: 13px; color: var(--texto-2); }
.marca-rede { position: absolute; }
.selecionar-conta { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--linha); border-radius: var(--raio-s); cursor: pointer; margin-bottom: 8px; }
.selecionar-conta:has(input:checked) { border-color: var(--azul); background: var(--azul-claro); }
.selecionar-conta input { accent-color: var(--azul); width: 18px; height: 18px; }

/* empresas */
.empresa-linha { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--linha); }
.empresa-linha:first-child { border-top: 0; }
.empresa-linha .nome { font-weight: 600; font-size: 16px; }
.empresa-linha .sub { font-size: 13px; color: var(--texto-2); }
.detalhe-empresa { background: var(--fundo); border-radius: var(--raio-s); padding: 14px; margin: 0 0 8px; }
.usuario-linha { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--linha); font-size: 14px; }
.usuario-linha:first-child { border-top: 0; }
.usuario-linha .inativo { color: var(--texto-3); text-decoration: line-through; }
.grade-2 { display: grid; gap: 12px; }
@media (min-width: 640px) { .grade-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- toasts / modal ---------- */
.toasts { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { background: var(--tinta); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--sombra); font-size: 14px; animation: surgir .25s var(--ease); pointer-events: auto; }
.toast.erro { background: var(--coral); }
.toast.ok { background: var(--verde); }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(11,27,58,.45); display: grid; place-items: end center; padding: 0; }
.modal-caixa { background: var(--papel); width: 100%; max-width: 560px; border-radius: 20px 20px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); max-height: 92dvh; overflow: auto; animation: subir .28s var(--ease); }
@keyframes subir { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 640px) { .modal { place-items: center; padding: 20px; } .modal-caixa { border-radius: 20px; } }
.modal-caixa h2 { margin-bottom: 14px; }
.modal-rodape { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.contador { font-size: 12px; color: var(--texto-3); text-align: right; }
.contador.estourou { color: var(--coral); }
.codigo { font-family: ui-monospace, Menlo, monospace; background: var(--fundo); padding: 10px 12px; border-radius: var(--raio-s); font-size: 13px; user-select: all; word-break: break-all; white-space: pre-wrap; }
.carregando { text-align: center; padding: 48px; color: var(--texto-3); }
