/* Mentex — base visual compartilhada */

:root {
  --tinta: #1b2130;
  --tinta-2: #535c6d;
  --tinta-3: #8b93a3;
  --linha: #e0e4eb;
  --linha-forte: #c9d0db;
  --fundo: #f3f5f8;
  --papel: #ffffff;
  --acento: #2458d3;
  --acento-escuro: #1a44a8;
  --acento-suave: #e8eefc;
  --perigo: #c0392b;
  --perigo-suave: #fbeceb;
  --sucesso: #1d8a5b;

  --fonte: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --fonte-titulo: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;

  --raio: 8px;
  --raio-g: 14px;
  --sombra-flutuante: 0 12px 32px rgba(27, 33, 48, 0.14), 0 2px 6px rgba(27, 33, 48, 0.08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
  font-family: var(--fonte);
  font-size: 14px;
  line-height: 1.45;
  color: var(--tinta);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--fonte-titulo); font-weight: 600; margin: 0; letter-spacing: -0.01em; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }

[hidden] { display: none !important; }

.svg-ico { display: block; flex: none; }
.ico { display: inline-flex; }

/* ---------------------------------------------------------------- botões */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  background: var(--papel);
  color: var(--tinta);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.12s, border-color 0.12s;
}
.btn:hover { background: #f6f8fb; border-color: var(--linha-forte); }
.btn:active { transform: translateY(0.5px); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-primario { background: var(--acento); border-color: var(--acento); color: #fff; font-weight: 600; }
.btn-primario:hover { background: var(--acento-escuro); border-color: var(--acento-escuro); }
.btn-perigo { background: var(--perigo); border-color: var(--perigo); color: #fff; font-weight: 600; }
.btn-perigo:hover { background: #a3301f; border-color: #a3301f; }
.btn-icone { width: 34px; padding: 0; border-color: transparent; background: transparent; color: var(--tinta-2); }
.btn-icone:hover { background: rgba(27, 33, 48, 0.06); border-color: transparent; color: var(--tinta); }
.btn-bloco { width: 100%; height: 40px; }

/* ------------------------------------------------------------ formulários */

input[type="text"], input[type="password"], input[type="search"], input[type="url"], textarea {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--linha-forte);
  border-radius: var(--raio);
  background: var(--papel);
}
textarea { height: auto; padding: 8px 10px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 3px var(--acento-suave); }

label { display: grid; gap: 6px; font-weight: 600; font-size: 13px; color: var(--tinta-2); }

/* ---------------------------------------------------------------- diálogos */

dialog.dialogo {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: none;
  border-radius: var(--raio-g);
  background: var(--papel);
  color: var(--tinta);
  box-shadow: var(--sombra-flutuante);
}
dialog.dialogo::backdrop { background: rgba(27, 33, 48, 0.35); }
.dialogo-corpo { padding: 22px 22px 8px; display: grid; gap: 14px; }
.dialogo-corpo h2 { font-size: 17px; }
.dialogo-corpo p { margin: 0; color: var(--tinta-2); }
.dialogo-rodape { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 22px 20px; }
.dialogo-erro { color: var(--perigo); font-size: 13px; margin: 0; min-height: 1em; }
dialog.dialogo.largo { width: min(640px, calc(100vw - 32px)); }

/* ------------------------------------------------------------------- menus */

.menu-ancora { position: relative; }
.menu {
  position: fixed;
  z-index: 50;
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--linha);
  border-radius: 10px;
  background: var(--papel);
  box-shadow: var(--sombra-flutuante);
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--tinta);
}
.menu-item:hover, .menu-item:focus-visible { background: var(--fundo); outline: none; }
.menu-item .svg-ico { color: var(--tinta-2); }
.menu-item .atalho { margin-left: auto; padding-left: 16px; color: var(--tinta-3); font-size: 12px; }
.menu-item.perigo, .menu-item.perigo .svg-ico { color: var(--perigo); }
.popover-titulo { padding: 2px 4px 8px; font-weight: 650; font-size: 13px; }
.menu-sep { height: 1px; margin: 5px 4px; background: var(--linha); }

/* ------------------------------------------------------------------ toasts */

.toasts {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  display: grid;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--tinta);
  color: #fff;
  box-shadow: var(--sombra-flutuante);
  pointer-events: auto;
  animation: toast-entra 0.18s ease-out;
}
.toast.erro { background: var(--perigo); }
.selo-modelo {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: #f3ecfd;
  color: #6a3fc4;
  font-size: 11px;
  font-weight: 700;
  vertical-align: 2px;
  letter-spacing: 0.01em;
}
.selo-barra { flex: none; margin-left: -2px; }
.toast-acao { margin-left: 8px; padding: 3px 10px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 6px; background: transparent; color: #fff; font-weight: 600; cursor: pointer; }
.toast-acao:hover { background: rgba(255, 255, 255, 0.14); }
@keyframes toast-entra { from { opacity: 0; transform: translateY(6px); } }

/* ------------------------------------------------------------------- login */

.pagina-login {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 24px;
  background:
    radial-gradient(circle at 1px 1px, #d3d9e3 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--fundo);
}
.login { width: min(380px, 100%); display: grid; gap: 22px; }
.login-marca { display: flex; align-items: center; gap: 12px; }
.login-marca strong { display: block; font-family: var(--fonte-titulo); font-size: 20px; line-height: 1.1; }
.login-marca span { color: var(--tinta-2); font-size: 13px; }
.login-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--linha);
  border-radius: var(--raio-g);
  background: var(--papel);
}
.login-form h1 { font-size: 19px; }
.login-dica { margin: -8px 0 0; color: var(--tinta-2); }
.login-erro { margin: 0; padding: 9px 12px; border-radius: var(--raio); background: var(--perigo-suave); color: var(--perigo); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ------------------------------------------------------ visualizador de imagem */

dialog.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(14, 17, 25, 0.94);
  color: #fff;
  overflow: hidden;
  animation: lb-entra 0.16s ease-out;
}
dialog.lightbox::backdrop { background: transparent; }
@keyframes lb-entra { from { opacity: 0; } }

.lb-topo {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 10px 0 20px;
  background: linear-gradient(rgba(14, 17, 25, 0.85), rgba(14, 17, 25, 0));
}
.lb-legenda { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-contador { color: rgba(255, 255, 255, 0.6); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-botao {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.lb-botao:hover { background: rgba(255, 255, 255, 0.12); }

.lb-palco {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 72px 48px;
  overflow: hidden;
}
.lb-palco img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  user-select: none;
  -webkit-user-select: none;
}
.lightbox.carregando .lb-palco img { opacity: 0; }
.lightbox.ampliavel .lb-palco img { cursor: zoom-in; }
.lightbox.ampliada .lb-palco { display: block; overflow: auto; padding: 64px 24px 24px; }
.lightbox.ampliada .lb-palco img { max-width: none; max-height: none; margin: 0 auto; cursor: grab; }
.lightbox.ampliada .lb-palco img:active { cursor: grabbing; }

.lb-seta {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}
.lb-seta:hover { background: rgba(255, 255, 255, 0.22); }
.lb-seta.anterior { left: 14px; }
.lb-seta.proxima { right: 14px; }
.lb-seta.proxima .svg-ico { transform: scaleX(-1); }

/* Player de vídeo */
.lb-palco-video { padding: 64px 24px 32px; }
.lb-video { width: min(1100px, 100%); aspect-ratio: 16 / 9; max-height: 100%; background: #000; border-radius: 10px; overflow: hidden; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45); }
.lb-video iframe, .lb-video video { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.lb-video.arquivo { aspect-ratio: auto; height: auto; width: auto; max-width: 100%; }
.lb-video.arquivo video { width: auto; height: auto; max-width: min(1100px, 92vw); max-height: calc(100dvh - 120px); }

/* Novidades */
.novidades { display: grid; gap: 18px; max-height: 62vh; overflow-y: auto; padding-right: 4px; }
.versao-topo { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.versao-topo strong { font-family: var(--fonte-titulo); font-size: 15px; }
.versao-titulo { font-weight: 600; color: var(--tinta-2); }
.versao-data { margin-left: auto; font-size: 12px; color: var(--tinta-3); white-space: nowrap; }
.versao.atual .versao-topo strong { color: var(--acento); }
.versao ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.versao li { display: grid; grid-template-columns: 76px 1fr; gap: 8px; align-items: baseline; font-size: 13.5px; line-height: 1.45; }
.tag { justify-self: start; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.tag-novo { background: #e3f4ea; color: #1d6b45; }
.tag-melhoria { background: var(--acento-suave); color: var(--acento-escuro); }
.tag-correcao { background: #fdecea; color: #a8321f; }
.btn-novidades { position: relative; }
.btn-novidades.tem-novidade::after { content: ""; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--perigo); box-shadow: 0 0 0 2px var(--papel); }

/* Janela “Novo mapa” */
.novo-mapa { gap: 12px; }
.novo-mapa textarea { width: 100%; }
.campos-titulo { font-size: 12.5px; font-weight: 650; color: var(--tinta-2); }
.grade-modelos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; padding: 2px; }
.opcao-modelo {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 10px;
  border: 1.5px solid var(--linha);
  border-radius: 10px;
  background: var(--papel);
  text-align: left;
  cursor: pointer;
}
.opcao-modelo:hover { border-color: var(--linha-forte); background: #fafbfc; }
.opcao-modelo.ativo { border-color: var(--acento); background: var(--acento-suave); }
.opcao-modelo strong { font-size: 13px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.opcao-modelo small { font-size: 11.5px; color: var(--tinta-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opcao-mini { display: flex; align-items: center; gap: 4px; height: 26px; margin-bottom: 2px; }
.opcao-mini i { width: 22px; height: 8px; border-radius: 3px; border: 1.5px solid var(--c); background: color-mix(in srgb, var(--c) 15%, #fff); }
.opcao-mini.vazio { color: var(--tinta-3); }
.campos-modelo { display: grid; gap: 10px; }
.campos-modelo:empty { display: none; }
.dica-campos { margin: 0; font-size: 12.5px; color: var(--tinta-3); line-height: 1.5; }

.lb-dica {
  position: absolute;
  left: 50%;
  bottom: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12.5px;
  transform: translateX(-50%);
  pointer-events: none;
  display: none;
}
.lightbox.ampliavel:not(.ampliada) .lb-dica { display: block; }

@media (max-width: 640px) {
  .lb-palco { padding: 60px 8px 40px; }
  .lb-seta { top: auto; bottom: 10px; margin-top: 0; width: 44px; height: 44px; }
  .lb-dica { bottom: 24px; }
}

/* ------------------------------------------------------ listas de tarefas */

ul.tarefas { list-style: none; padding-left: 0 !important; }
ul.tarefas > li { position: relative; padding-left: 1.45em; }
ul.tarefas > li::before {
  content: "";
  position: absolute;
  left: 0.05em;
  top: 0.22em;
  box-sizing: border-box;
  width: 0.95em;
  height: 0.95em;
  border: 1.5px solid currentColor;
  border-radius: 0.2em;
  opacity: 0.6;
  cursor: pointer;
}
ul.tarefas > li[data-feito]::before {
  border-color: #1d8a5b;
  background: #1d8a5b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 80% no-repeat;
  opacity: 1;
}
ul.tarefas > li[data-feito] { text-decoration: line-through; text-decoration-color: currentColor; }
ul.tarefas > li[data-feito] > * , ul.tarefas > li[data-feito] { opacity: 0.85; }

/* Importação */
.importar-item { display: grid; gap: 4px; }
.importar-item small { font-weight: 500; color: var(--tinta-3); }
.login-rodape { margin: 0; font-size: 12.5px; color: var(--tinta-3); text-align: center; }

/* Pagamento por Pix */
.pagar { width: min(420px, 100%); }
.pix-valor { display: grid; justify-items: center; gap: 2px; padding: 10px; border-radius: 10px; background: var(--fundo); }
.pix-valor span { font-size: 12px; color: var(--tinta-3); font-weight: 600; }
.pix-valor strong { font-family: var(--fonte-titulo); font-size: 28px; }
.pix-valor small { color: var(--tinta-2); }
.pix-qr { display: grid; place-items: center; padding: 10px; border: 1px solid var(--linha); border-radius: 12px; background: #fff; }
.pix-qr svg { display: block; max-width: 100%; height: auto; }
.pix-codigo { font: 12px/1.4 ui-monospace, Consolas, monospace; word-break: break-all; resize: none; color: var(--tinta-2); background: var(--fundo); }
.pix-passos { margin: 0; font-size: 13px; color: var(--tinta-2); line-height: 1.5; }
.pix-passos code { padding: 0 4px; border-radius: 4px; background: var(--fundo); }
.pagar-rodape { display: flex; justify-content: space-between; font-size: 13px; }
.pagar-rodape a { color: var(--acento); text-decoration: none; font-weight: 600; }
.dialogo-pix { display: grid; gap: 10px; justify-items: stretch; }

/* Visualizador de arquivos (imagem, PDF, áudio, vídeo, texto) */
.arq-modal { width: min(1180px, 96vw); height: min(880px, 92vh); padding: 0; border: 0; border-radius: 14px; background: #1b2130; color: #fff; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.arq-modal[open] { display: flex; flex-direction: column; }
.arq-modal::backdrop { background: rgba(10, 14, 22, 0.72); }
.arq-topo { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 18px; background: #222a3a; }
.arq-info { flex: 1; display: grid; min-width: 0; }
.arq-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arq-info small { color: rgba(255, 255, 255, 0.6); font-size: 12px; }
.arq-pos { color: rgba(255, 255, 255, 0.7); font-size: 13px; white-space: nowrap; }
.arq-topo .btn { border-color: rgba(255, 255, 255, 0.22); background: transparent; color: #fff; text-decoration: none; }
.arq-topo .btn:hover { background: rgba(255, 255, 255, 0.12); }
.arq-topo .btn-primario { gap: 6px; border-color: var(--acento); background: var(--acento); }
.arq-topo .btn-primario:hover { background: var(--acento-escuro); }
.arq-topo [hidden] { display: none; }
.arq-corpo { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: auto; padding: 16px; }
.arq-imagem { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; cursor: zoom-in; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); }
.arq-corpo.ampliada { place-items: start; }
.arq-corpo.ampliada .arq-imagem { max-width: none; max-height: none; cursor: zoom-out; }
.arq-corpo.tipo-pdf { padding: 0; }
.arq-pdf { width: 100%; height: 100%; border: 0; background: #fff; }
.arq-video { max-width: 100%; max-height: 100%; border-radius: 8px; background: #000; }
.arq-audio { width: min(460px, 90%); }
.arq-corpo.tipo-audio { align-content: center; gap: 18px; }
.arq-corpo.tipo-texto, .arq-corpo.tipo-csv { place-items: start; background: #fff; color: var(--tinta); }
.arq-texto { margin: 0; width: 100%; font: 13px/1.55 ui-monospace, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.arq-csv { border-collapse: collapse; font-size: 13px; }
.arq-csv th, .arq-csv td { padding: 5px 10px; border: 1px solid #e3e7ee; text-align: left; white-space: nowrap; }
.arq-csv th { position: sticky; top: -16px; background: #f3f5f8; font-weight: 650; }
.arq-aviso { color: rgba(255, 255, 255, 0.7); }
.tipo-texto .arq-aviso, .tipo-csv .arq-aviso { color: var(--tinta-3); }
.arq-cartao { display: grid; justify-items: center; gap: 12px; max-width: 420px; padding: 30px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); text-align: center; }
.arq-cartao p { margin: 0; color: rgba(255, 255, 255, 0.75); line-height: 1.5; }
.arq-cartao .btn { gap: 6px; text-decoration: none; }
.arq-icone-grande { font-size: 56px; line-height: 1; }
.arq-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; }
.arq-nav:hover:not(:disabled) { background: rgba(255, 255, 255, 0.26); }
.arq-nav:disabled { opacity: 0.25; cursor: default; }
.arq-nav[hidden] { display: none; }
.arq-nav.anterior { left: 14px; }
.arq-nav.proximo { right: 14px; }
@media (max-width: 640px) { .arq-modal { width: 100vw; height: 100dvh; max-width: none; max-height: none; border-radius: 0; } .arq-topo .btn-primario span { display: none; } }

/* Avatar com foto de perfil (a foto cobre as iniciais) */
.com-foto { position: relative; overflow: hidden; }
.com-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: #fff; }
.perfil-foto { display: flex; align-items: center; gap: 16px; padding-bottom: 6px; }
.perfil-avatar { flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; color: #fff; font-size: 28px; font-weight: 700; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--linha); }
.perfil-foto-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.perfil-foto-acoes small { flex-basis: 100%; color: var(--tinta-3); font-size: 12px; }
.btn-icone.com-avatar { padding: 0; border-color: transparent; }
.conta-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; }

/* Instruções de instalação (iPhone) */
.pwa-passos { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.5; }
.pwa-dica { margin: 12px 0 0; color: var(--tinta-3); font-size: 13px; }
.perfil-push { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--linha); border-radius: 10px; background: #fafbfc; }
.perfil-push p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--tinta-2); }

.login-codigo { font-size: 24px; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }
.login-dica.pequeno { font-size: 12.5px; }
.dupla-ativar { display: grid; gap: 10px; }
.dupla-qr { display: grid; place-items: center; padding: 8px; }
.dupla-qr svg { width: 200px; height: 200px; border-radius: 8px; border: 1px solid var(--linha); }
.dupla-chave { padding: 2px 6px; border-radius: 6px; background: var(--fundo); font-size: 13px; letter-spacing: 0.06em; user-select: all; }
.dupla-codigos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.dupla-codigos code { padding: 8px; border-radius: 8px; background: var(--fundo); font-size: 15px; text-align: center; letter-spacing: 0.05em; }
.perfil-ical { width: 100%; font-size: 12.5px; }
.perfil-dica { color: var(--tinta-3); font-size: 12px; }

/* Busca global (Ctrl+K) */
.busca-global { width: min(680px, 94vw); max-height: 76vh; margin-top: 10vh; padding: 0; border: 0; border-radius: 14px; background: var(--papel, #fff); box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3); overflow: hidden; }
.busca-global[open] { display: flex; flex-direction: column; }
.busca-global::backdrop { background: rgba(15, 23, 42, 0.35); }
.busca-global input { height: 54px; padding: 0 20px; border: 0; border-bottom: 1px solid var(--linha); border-radius: 0; font-size: 17px; box-shadow: none; }
.bg-resultados { overflow-y: auto; padding: 6px; }
.bg-dica { margin: 14px; color: var(--tinta-3); font-size: 13px; }
.bg-grupo { margin: 10px 10px 4px; font-size: 11.5px; font-weight: 700; color: var(--tinta-3); text-transform: uppercase; letter-spacing: 0.04em; }
.bg-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; }
.bg-item.ativo { background: var(--acento-suave); }
.bg-icone { flex: none; font-size: 18px; }
.bg-corpo { display: grid; min-width: 0; }
.bg-corpo strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bg-corpo small { color: var(--tinta-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bg-item mark { padding: 0 1px; border-radius: 3px; background: #ffe58f; color: inherit; }
html[data-tema="escuro"] .bg-item mark, html[data-tema="escuro"] .chat-resultado mark { background: #6b5410; }
.login-erro.login-ok { border-color: #b7e2c8; background: #eaf7ef; color: #1d6b45; }

/* Logotipo Mentex (versão clara e versão para o modo escuro) */
.logo-mentex { display: block; width: auto; }
.logo-mentex.logo-escuro { display: none; }
html[data-tema="escuro"] .logo-mentex.logo-claro { display: none; }
html[data-tema="escuro"] .logo-mentex.logo-escuro { display: block; }
.login-marca { flex-direction: column; align-items: flex-start; gap: 6px; }
.login-slogan { color: var(--tinta-2); font-size: 13px; }
