*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 14px;
  line-height: 1.45;
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
body.sem-rolagem { overflow: hidden; }

h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { letter-spacing: -0.025em; font-weight: 700; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
::selection { background: var(--acento); color: #fff; }

* { scrollbar-width: thin; scrollbar-color: var(--borda2) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: var(--borda2); border-radius: 9px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--texto3); background-clip: content-box; border: 2px solid transparent; }

:focus-visible { outline: none; box-shadow: var(--foco); }
button:focus-visible, a:focus-visible { border-radius: var(--raio-p); }

.icone { flex: none; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--texto2); }
.fraco { color: var(--texto3); }
.nowrap { white-space: nowrap; }
.truncar { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rotulo-mini {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texto2);
}

/* logos: troca de arquivo por tema, nunca filtro */
.logo-claro { display: none; }
:root[data-tema='claro'] .logo-escuro { display: none; }
:root[data-tema='claro'] .logo-claro { display: block; }

@keyframes giro { to { transform: rotate(360deg); } }
@keyframes entrar { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes brilho { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

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