/* Reset, tipografia e utilitários. */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100dvh;
    background: var(--bg-base);
    color: var(--text);
    font-family: var(--font-text);
    font-size: 15px;
    line-height: 1.45;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, p { margin: 0; letter-spacing: -0.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

/* Ícones (Material Symbols Rounded) */
.ms {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 1.25em;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    user-select: none;
    visibility: hidden; /* some até a fonte carregar: nada de nome-de-ícone em texto */
}
html.icons-ready .ms { visibility: visible; }

.muted { color: var(--text-muted); font-size: 0.9rem; }
.spacer { flex: 1; }
.stack { display: grid; gap: var(--space-3); }
.stack--tight { gap: var(--space-2); }
.stack--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #cfd8df; border-radius: 6px; }

#fx-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 400; }

body[data-reduce-motion="true"] *, body[data-reduce-motion="true"] *::before, body[data-reduce-motion="true"] *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
}

.skeleton__line { display: block; height: 14px; margin: 8px 0; border-radius: 8px; background: linear-gradient(90deg, var(--bg-card), var(--bg-active), var(--bg-card)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
