/* Variáveis de marca (mesma paleta do PWA legado — public/style.css /
   manifest.json) + reset básico. */
:root {
  --bg: #0f0d17;
  --card: #1a1725;
  --border: #2c2740;
  --text: #ece9f5;
  --muted: #9b93b3;
  --accent: #7c3aed;
  --accent-hover: #8b5cf6;
  --ok: #22c55e;
  --err: #ef4444;
  --warn: #eab308;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --gap: 14px;
  --sidebar-w: 240px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Garante que [hidden] esconda mesmo elementos com display próprio
   (ex.: #app-shell{display:grid}). */
[hidden] {
  display: none !important;
}

html {
  color-scheme: dark;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-hover);
  text-decoration: none;
}

h1, h2, h3 {
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: 0.98rem; }

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

/* Reset de aparência nativa: componentes (.btn, .nav-link, etc.) definem seu
   próprio visual e têm especificidade maior, então sempre vencem isto. */
button {
  background: none;
  border: none;
  cursor: pointer;
  text-align: inherit;
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--accent);
  color: #fff;
}
