/* Cópia de src/styles/tokens.css + animações de src/styles/global.css */
:root,
[data-theme='light'] {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --surface-3: #f0f0f2;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --hair: rgba(0, 0, 0, 0.07);
  --hair-2: rgba(0, 0, 0, 0.045);
  --blue: #0071e3;
  --blue-ink: #0064c8;
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.04);
  --sh-2: 0 4px 16px rgba(0, 0, 0, 0.06);
  --sh-3: 0 18px 48px rgba(0, 0, 0, 0.1);
  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #0f0f11;
  --surface: #1a1a1d;
  --surface-2: #17171a;
  --surface-3: #222226;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #86868b;
  --hair: rgba(255, 255, 255, 0.09);
  --hair-2: rgba(255, 255, 255, 0.06);
  --blue: #0a84ff;
  --blue-ink: #409cff;
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sh-2: 0 4px 16px rgba(0, 0, 0, 0.45);
  --sh-3: 0 18px 48px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

:root {
  --text: var(--ink);
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;
  --r-xl: 26px;
  --r-pill: 999px;
  --success-bg: #e8f6ee;
  --success-fg: #1d7a45;
  --error: #c0392b;
  --error-bg: #feecec;
  --warn-bg: #fff4e5;
  --warn-fg: #9a5b00;
  --tint-blue: #eef6ff;
  --agent-grad: linear-gradient(140deg, #5e8bff, #b36bff);
  --hover: color-mix(in srgb, var(--ink) 5%, transparent);
  --hover-strong: color-mix(in srgb, var(--ink) 8%, transparent);
  --seg-track: color-mix(in srgb, var(--ink) 6%, transparent);
  --focus-ring: color-mix(in srgb, var(--blue) 45%, transparent);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, system-ui, sans-serif;
  --sidebar-w: 272px;
  --page-pad: 44px;
  --header-h: 73px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (max-width: 760px) {
  :root {
    --page-pad: 20px;
  }
}

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

html,
body {
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.25s ease;
  min-width: 0;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
}

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

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

::selection {
  background: color-mix(in srgb, var(--blue) 22%, transparent);
}

html {
  overflow-x: clip;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}
