:root {
  --bg: #f4f5f7; --surface: #ffffff; --ink: #1d2330; --muted: #6b7385; --line: #e2e5eb;
  --side: #161b26; --side-ink: #c9cfdb; --side-strong: #ffffff; --side-muted: #8a92a3; --side-hover: #232a39;
  --side-line: #2a3142; --accent: #f2a516; --accent-ink: #1d2330; --accent-hover: #e39a10;
  --blue: #2f6fde; --green: #1f9d6b; --red: #d64545; --amber-bg: #fff4dc; --blue-bg: #e8f0fe;
  --green-bg: #e3f6ee; --red-bg: #fde8e8; --radius: 10px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 20px; margin: 0 0 16px; }
h2 { font-size: 15px; margin: 0 0 12px; }

.layout { display: flex; min-height: 100vh; }
.side { width: 220px; background: var(--side); color: var(--side-ink); padding: 20px 14px; flex-shrink: 0; }
.brand { font-weight: 700; color: var(--side-strong); font-size: 15px; margin-bottom: 4px; }
.brand span { color: var(--accent); }
.sub { font-size: 12px; color: var(--side-muted); margin-bottom: 24px; }
.side nav a { display: block; color: var(--side-ink); padding: 8px 10px; border-radius: 8px; margin-bottom: 2px; }
.side nav a:hover, .side nav a.ativo { background: var(--side-hover); color: var(--side-strong); text-decoration: none; }
.side nav a.ativo { box-shadow: inset 3px 0 0 var(--accent); }
.side .sair { margin-top: 24px; font-size: 12px; }
main { flex: 1; padding: 24px 28px; min-width: 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.clicavel:hover { background: #fafbfc; cursor: pointer; }
.trunc { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.st-ia { background: var(--blue-bg); color: var(--blue); }
.st-aguardando_engenheiro { background: var(--amber-bg); color: #9a6200; }
.st-com_engenheiro { background: #efe7fd; color: #6b3fd1; }
.st-resolvido { background: var(--green-bg); color: var(--green); }
.pr-critica { background: var(--red-bg); color: var(--red); }
.pr-alta { background: var(--amber-bg); color: #9a6200; }
.pr-normal, .pr-baixa { background: #eef0f3; color: var(--muted); }
.doc-pronto { background: var(--green-bg); color: var(--green); }
.doc-processando { background: var(--blue-bg); color: var(--blue); }
.doc-erro { background: var(--red-bg); color: var(--red); }

.filtros a { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 13px; }
.filtros a.ativo { background: var(--ink); color: #fff; border-color: var(--ink); text-decoration: none; }

input[type=text], input[type=password], input[type=search], input[type=email], input[type=number], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
textarea { resize: vertical; min-height: 80px; }
label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 4px; font-weight: 600; }
button, .btn {
  display: inline-block; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
}
button:hover, .btn:hover { background: #f6f7f9; text-decoration: none; }
.primario { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.primario:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.perigo { color: var(--red); }
form.inline { display: inline; }

.alerta { background: var(--amber-bg); border: 1px solid #f3d69a; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; }
.alerta b { display: block; margin-bottom: 4px; }
.info { background: var(--blue-bg); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }

/* conversa */
.conversa { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 80%; padding: 10px 12px; border-radius: 12px; white-space: pre-wrap; word-wrap: break-word; }
.msg .quem { font-size: 11px; font-weight: 700; margin-bottom: 2px; opacity: .7; }
.msg-cliente { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.msg-ia { align-self: flex-end; background: var(--blue-bg); }
.msg-engenheiro { align-self: flex-end; background: #fff2d6; }
.msg-nota { align-self: center; max-width: 92%; background: #f1f2f4; border: 1px dashed #c9ced8; font-size: 13px; }
.fontes { margin-top: 6px; font-size: 11px; color: var(--muted); white-space: normal; }

/* simulador */
.sim { max-width: 720px; }
.sim .janela { height: 460px; overflow-y: auto; background: #ece5dd; border-radius: var(--radius); padding: 14px; }
.sim .msg-cliente { align-self: flex-end; background: #dcf8c6; border: none; }
.sim .msg-ia, .sim .msg-engenheiro { align-self: flex-start; background: #fff; }
.digitando { font-size: 12px; color: var(--muted); padding: 6px 2px; min-height: 24px; }

.login { max-width: 360px; margin: 12vh auto; }
pre.trecho { white-space: pre-wrap; background: #fafbfc; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 13px; font-family: inherit; }

@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .side { width: 100%; padding: 12px 16px; }
  .side nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .sub, .side .sair { display: none; }
  main { padding: 16px; }
  .grid { grid-template-columns: 1fr; }
  .msg { max-width: 92%; }
  .trunc { max-width: 160px; }
}

.anexo-img { display: block; max-width: 260px; max-height: 260px; border-radius: 8px; margin: 4px 0 6px; }
.alerta b + * { margin-top: 0; }
.alerta b { display: block; }
.eu { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--side-line); font-size: 12px; }
.eu-nome { color: var(--side-strong); font-weight: 600; font-size: 13px; }
.eu-perfil { color: var(--side-muted); margin-bottom: 6px; }
.eu-links a { color: var(--side-ink); }
.senha-provisoria { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 18px; font-weight: 700; background: #fff; padding: 6px 10px; border-radius: 6px; display: inline-block; margin: 6px 0; user-select: all; }
.inativo td { opacity: .5; }
@media (max-width: 900px) { .eu { margin-top: 8px; padding-top: 8px; } }

.filtros a.ativo { background: var(--side); border-color: var(--side); color: var(--side-strong); }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: inline-flex;
  align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13px; }
.avatar.p { width: 22px; height: 22px; font-size: 10px; }
.avatar.g { width: 88px; height: 88px; font-size: 30px; }
.eu-topo { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.quem-linha { display: flex; gap: 6px; align-items: center; }
.paleta { display: flex; gap: 8px; flex-wrap: wrap; }
.paleta button { display: flex; gap: 6px; align-items: center; }
.amostra { width: 18px; height: 18px; border-radius: 4px; border: 1px solid rgba(0,0,0,.15); display: inline-block; }
input[type=color] { width: 56px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.campos-cor { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.previa-fundo { width: 100%; max-width: 360px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.login-pagina { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background-size: cover; background-position: center; }
.login-pagina .login { margin: 0; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.ficha dt { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 8px; }
.ficha dd { margin: 0; }
.badge { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--accent);
  color: var(--accent-ink); font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; }
.badge.critico { background: var(--red); color: #fff; }
.badge[hidden] { display: none; }
.logo-menu { display: block; max-width: 100%; max-height: 56px; margin-bottom: 10px; }
.logo-login { display: block; max-width: 220px; max-height: 80px; margin-bottom: 12px; }
.abas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; position: sticky; top: 0; background: var(--bg); padding: 8px 0; z-index: 2; }
.abas a { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 13px; }
.abas a:hover { text-decoration: none; border-color: var(--accent); }
.secao { scroll-margin-top: 60px; }
.chave { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--ink); font-size: 14px; margin: 4px 0 10px; }
.chave input { width: auto; }
.dias { display: flex; flex-wrap: wrap; gap: 6px; }
.dias label { display: flex; gap: 4px; align-items: center; margin: 0; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); font-weight: 400; }
.dias input { width: auto; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.kpi .v { font-size: 24px; font-weight: 700; line-height: 1.2; }
.kpi .r { font-size: 12px; color: var(--muted); }
.barra { height: 8px; background: #eef0f3; border-radius: 99px; overflow: hidden; min-width: 80px; }
.barra span { display: block; height: 100%; background: var(--accent); }
.estado { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 99px; }
.estado.on { background: var(--green-bg); color: var(--green); }
.estado.off { background: #eef0f3; color: var(--muted); }
.duas-colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .duas-colunas { grid-template-columns: 1fr; } .abas { position: static; } }
.anexo-audio { display: block; width: 260px; max-width: 100%; margin: 4px 0 6px; }
.anexo-video { display: block; max-width: 300px; max-height: 260px; border-radius: 8px; margin: 4px 0 6px; }
.anexo-doc { margin: 4px 0 6px; }
details.lido { margin-top: 6px; font-size: 12px; }
details.lido summary { cursor: pointer; color: var(--blue); }
.ferramentas-envio { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.ferramentas-envio details { padding: 6px 0; }
.ferramentas-envio summary { cursor: pointer; font-weight: 600; }
.anexar { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; font-size: 18px; }
.gravando { background: var(--red) !important; color: #fff !important; border-color: var(--red) !important; }

/* ---- ajustes de layout para telas de notebook (100% de zoom) ---- */
.msg { white-space: normal; }
.msg .texto { white-space: pre-wrap; }
td select { width: auto; min-width: 150px; }
td input[type=text] { min-width: 160px; }
.acoes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.acoes form { display: inline; margin: 0; }
.acoes button, .acoes .btn, button.p, .btn.p { padding: 5px 10px; font-size: 13px; font-weight: 600; }
.trunc { max-width: 260px; }
.c-cliente { min-width: 170px; }
.c-equip { min-width: 160px; }
.c-resp { min-width: 130px; }
.c-data { white-space: nowrap; }
.c-doc { min-width: 260px; }
.legenda-perfis { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.form-linha { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr auto; gap: 10px; align-items: end; }
.form-linha label { margin-top: 0; }
@media (max-width: 1100px) { .form-linha { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .form-linha { grid-template-columns: 1fr; } }
@media (max-width: 1440px) { .c-ultima { display: none; } }
@media (max-width: 1500px) { .grid-largo { grid-template-columns: 1fr; } .grid-largo > div:last-child { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; } .grid-largo > div:last-child > .card { margin-bottom: 0; } }

/* ícones, botões de ícone e emojis */
.ico { display: block; flex-shrink: 0; }
.icone-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.icone-btn:hover { color: var(--ink); background: #f3f4f6; }
.icone-btn.gravando { background: var(--red); border-color: var(--red); color: #fff; animation: pulsar 1.2s infinite; }
@keyframes pulsar { 0%, 100% { box-shadow: 0 0 0 0 rgba(214,69,69,.5); } 50% { box-shadow: 0 0 0 6px rgba(214,69,69,0); } }
.btn-enviar { display: inline-flex; align-items: center; gap: 6px; }
.emoji-wrap { display: inline-flex; }
.emoji-painel { display: none; position: absolute; z-index: 50; width: 320px; max-height: 300px; overflow-y: auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 8px; }
.emoji-grupo { font-size: 11px; font-weight: 700; color: var(--muted); margin: 6px 4px 2px; }
.emoji-grade { display: grid; grid-template-columns: repeat(8, 1fr); }
.emoji-grade button { border: none; background: none; font-size: 20px; padding: 4px; border-radius: 6px; line-height: 1; font-weight: 400; }
.emoji-grade button:hover { background: #f1f2f4; }
.ferramentas-envio summary { display: flex; align-items: center; gap: 8px; list-style: none; }
.ferramentas-envio summary::-webkit-details-marker { display: none; }
.ferramentas-envio summary::before { content: "›"; font-size: 18px; color: var(--muted); transition: transform .15s; width: 10px; }
.ferramentas-envio details[open] summary::before { transform: rotate(90deg); }
.ferramentas-envio summary .ico { color: var(--muted); }
.barra-resposta { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
/* tags */
.tag-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 700;
  color: #fff; white-space: nowrap; margin: 2px 4px 0 0; line-height: 18px; }
.tags-lista { display: flex; flex-wrap: wrap; gap: 6px; }
.tags-lista label { display: inline-flex; align-items: center; margin: 0; cursor: pointer; }
.tags-lista input { display: none; }
.tags-lista input + .tag-chip { opacity: .35; filter: grayscale(.4); font-size: 12px; padding: 3px 10px; }
.tags-lista input:checked + .tag-chip { opacity: 1; filter: none; box-shadow: 0 0 0 2px rgba(0,0,0,.08); }
.form-tag { display: grid; grid-template-columns: 1fr 70px 1.6fr auto auto; gap: 10px; align-items: end; }
.form-tag label { margin-top: 0; }
@media (max-width: 1100px) { .form-tag { grid-template-columns: 1fr 70px; } }
.filtro-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -6px 0 14px; font-size: 12px; }
.filtro-tags a { text-decoration: none; }
.filtro-tags a .tag-chip { opacity: .55; }
.filtro-tags a.ativo .tag-chip { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.canais { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.canal-opcao { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px;
  margin: 0; color: var(--ink); font-weight: 400; font-size: 13px; cursor: pointer; }
.canal-opcao input { width: auto; margin-top: 3px; }
.canal-opcao:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.waha-status { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
#qr-img { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 6px; }
code { background: #f1f2f4; padding: 1px 5px; border-radius: 4px; font-size: 12px; word-break: break-all; }
@media (max-width: 900px) { .canais, .waha-status { grid-template-columns: 1fr; } }
.menu-secao { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--side-muted); margin: 14px 10px 4px; }

/* mensagem que acabou de chegar (atualização automática) */
@keyframes chegou { from { box-shadow: 0 0 0 3px var(--accent, #f2a516); } to { box-shadow: 0 0 0 0 transparent; } }
.msg-nova { animation: chegou 2.5s ease-out; }

.eu .versao { margin-top: 6px; font-size: 11px; opacity: .5; }
@media (max-width: 700px) { .dica-enter { display: none; } }

/* linhas de produto */
.linha-chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; margin: 0 6px 2px 0;
  border: 1px solid var(--accent); border-radius: 999px; color: var(--ink, inherit); background: transparent; white-space: nowrap; }
.filtro-linhas { margin-bottom: 12px; }
.c-linha select { min-width: 150px; font-size: 13px; padding: 4px 6px; }
.filtro-linhas a { padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface); }
.filtro-linhas a.ativo { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
/* senha provisória (cadastro e redefinição) */
.senha-opcoes { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.opcao { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; margin: 0; color: var(--ink); }
.opcao input { width: auto; }
details.redefinir { position: relative; }
details.redefinir > summary { list-style: none; cursor: pointer; }
details.redefinir > summary::-webkit-details-marker { display: none; }
details.redefinir[open] > form { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; width: 260px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); display: flex; flex-direction: column; gap: 8px; }
/* auditoria */
.aud-filtros { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto; gap: 8px; align-items: end; }
.aud-filtros label { margin-top: 0; }
@media (max-width: 1100px) { .aud-filtros { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 600px) { .aud-filtros { grid-template-columns: 1fr; } }
.aud-cat { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); white-space: nowrap; }
.aud-falha td { background: rgba(214, 51, 47, .06); }
.aud-falha .aud-acao { color: var(--red, #d6332f); }
.aud-det { font-size: 12px; color: var(--muted); max-width: 420px; word-break: break-word; }
.kpis-aud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 800px) { .kpis-aud { grid-template-columns: 1fr 1fr; } }
.aud-filtros input[type=date] { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--surface); color: var(--ink); }

/* ================= tela de acesso (login, esqueci, redefinir) ================= */
.pagina-acesso { margin: 0; }
.acesso { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(400px, 38%) 1fr; background: var(--surface); }
.acesso.direita { grid-template-columns: 1fr minmax(400px, 38%); }
.acesso .acesso-painel { order: 0; }
.acesso .acesso-foto { order: 1; }
.acesso.direita .acesso-foto { order: 0; }
.acesso.direita .acesso-painel { order: 1; }
.acesso-painel { display: flex; align-items: center; justify-content: center; padding: 48px clamp(24px, 5vw, 72px); background: var(--surface); }
.acesso-form { width: 100%; max-width: 380px; }
.acesso-marca { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; }
.acesso-marca span { color: var(--accent); }
.acesso-sub { color: var(--muted); margin: 6px 0 0; }
.acesso-titulo { font-size: 18px; margin: 36px 0 14px; }
.acesso-form label { margin-top: 14px; }
.acesso-form input[type=text], .acesso-form input[type=password] { padding: 12px 14px; font-size: 15px; }
.rotulo-linha { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.rotulo-linha label { margin-top: 0; }
.acesso-botao { display: block; width: 100%; margin-top: 22px; padding: 12px; font-size: 15px; font-weight: 600; }
.acesso-rodape { margin: 40px 0 0; font-size: 11px; color: var(--muted); }
.acesso .logo-login { margin-bottom: 18px; }

.acesso-foto { position: relative; overflow: hidden; min-height: 240px;
  background: linear-gradient(135deg, var(--side) 0%, color-mix(in srgb, var(--side) 70%, var(--accent)) 100%); }
.acesso-foto .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0;
  transition: opacity 1.4s ease; transform: scale(1.02); }
.acesso-foto .slide.ativa { opacity: 1; animation: aproximar 20s ease-out forwards; }
@keyframes aproximar { from { transform: scale(1.02); } to { transform: scale(1.08); } }
.acesso-foto::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0, calc(var(--escuro, .25) + .25)) 0%, rgba(0,0,0, var(--escuro, .25)) 45%, rgba(0,0,0, calc(var(--escuro, .25) * .6)) 100%); }
.acesso-foto.sem-foto::after { display: none; }
.acesso-legenda { position: absolute; left: clamp(24px, 5vw, 64px); right: clamp(24px, 5vw, 64px); bottom: clamp(24px, 6vh, 64px); z-index: 2; color: #fff; }
.acesso-legenda h2 { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.15; margin: 0 0 10px; font-weight: 800; letter-spacing: -.02em; max-width: 16em; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.acesso-legenda p { font-size: clamp(14px, 1.2vw, 17px); margin: 0; max-width: 34em; opacity: .92; text-shadow: 0 1px 10px rgba(0,0,0,.4); }

/* login centralizado sobre a foto */
.acesso.centro { display: block; position: relative; }
.acesso.centro .acesso-foto { position: fixed; inset: 0; }
.acesso.centro .acesso-painel { position: relative; z-index: 3; min-height: 100vh; min-height: 100dvh; background: transparent; padding: 24px 16px; }
.acesso.centro .acesso-form { background: var(--surface); border-radius: 16px; padding: 36px 32px; box-shadow: 0 20px 60px rgba(0,0,0,.35); max-width: 420px; }
.acesso.centro .acesso-legenda { display: none; }

@media (max-width: 900px) {
  .acesso, .acesso.direita { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .acesso .acesso-foto { min-height: 180px; order: 0; }
  .acesso.direita .acesso-painel, .acesso .acesso-painel { order: 1; padding: 32px 20px 40px; align-items: flex-start; }
  .acesso-legenda { display: none; }
  .acesso.centro .acesso-foto { min-height: 0; }
  .acesso.centro .acesso-painel { align-items: center; }
  .acesso.centro .acesso-form { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) { .acesso-foto .slide { transition: none; animation: none !important; } }

/* configurações da tela de login */
.galeria-login { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 10px 0; }
.galeria-login figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.galeria-login img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.galeria-login figcaption { display: flex; gap: 4px; padding: 6px; justify-content: space-between; align-items: center; }
.galeria-login figcaption button { padding: 3px 8px; font-size: 12px; }
.layout-opcoes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.layout-opcoes label { margin: 0; border: 2px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; font-weight: 500; color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.layout-opcoes input { display: none; }
.layout-opcoes label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.mini-layout { display: flex; height: 54px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.mini-layout .p { width: 38%; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.mini-layout .p::before { content: ""; width: 60%; height: 18px; border-radius: 3px; background: var(--line); }
.mini-layout .f { flex: 1; background: linear-gradient(135deg, #6b7a90, #2c3646); }
.mini-layout.centro { position: relative; }
.mini-layout.centro .p { position: absolute; left: 30%; top: 12px; width: 40%; height: 30px; border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
@media (max-width: 700px) { .layout-opcoes { grid-template-columns: 1fr; } }
.contatos-usuario { display: grid; grid-template-columns: 1.4fr 1fr; gap: 6px; margin-top: 6px; }
.contatos-usuario input { padding: 5px 8px; font-size: 12px; }
.form-linha > div:nth-child(5), .form-linha > div:nth-child(6) { grid-column: span 2; }
@media (max-width: 1100px) { .form-linha > div:nth-child(5), .form-linha > div:nth-child(6) { grid-column: span 1; } }

/* canais */
.canal-chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); white-space: nowrap; }
.sub-secao { font-size: 14px; margin: 14px 0 2px; }
.regras-fixas { white-space: pre-wrap; font-size: 12px; line-height: 1.5; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px; max-height: 420px; overflow-y: auto; margin: 0; }

/* conexão do WhatsApp */
.wa-painel { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.wa-status { flex: 1; min-width: 280px; }
.wa-titulo { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.wa-ponto { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.wa-ponto.on { background: #22a559; box-shadow: 0 0 0 4px rgba(34,165,89,.15); }
.wa-ponto.alerta { background: var(--accent); }
.wa-ponto.erro { background: var(--red, #d6332f); }
.wa-acoes { margin-top: 14px; gap: 8px; }
.wa-qr { text-align: center; }
.wa-qr img { border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; }
details.avancado { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
details.avancado > summary { cursor: pointer; font-weight: 600; color: var(--muted); font-size: 14px; }
details.avancado[open] > summary { margin-bottom: 8px; }
