*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--fs-md); line-height: 1.5; letter-spacing: -0.015em; color-scheme: light; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
:is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* botões genéricos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--stroke-strong); background: var(--surface); color: var(--ink); font-weight: 550; text-decoration: none; }
.btn:hover { background: #f1f3ec; }
.btn-primary { border-color: #a15137; background: var(--accent); color: #fffaf5; }
.btn-primary:hover { background: var(--accent-strong); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* estados de carregamento e erro (compartilhados por todas as telas) */
.page-loading { display: grid; gap: 16px; }
.skeleton { border-radius: var(--radius-lg); background: linear-gradient(90deg, #eceee8 0%, #f4f5f1 50%, #eceee8 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.state { max-width: 520px; margin: 48px auto; text-align: center; display: grid; gap: 12px; justify-items: center; }
.state h1 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.6px; }
.state p { color: var(--secondary); }
.state .state-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }

.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 40px)); }
.toast { background: var(--surface); border: 1px solid var(--stroke-strong); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow-2); font-size: 13px; }

.nuvora-signature { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.nuvora-signature img { width: 20px; height: 20px; border-radius: 6px; }
.nuvora-signature strong { font-weight: 600; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* foco programático no título ao trocar de tela (leitores de tela anunciam a página): sem moldura visual */
[tabindex="-1"]:focus { outline: none; }
