/* Visa Financeiro — tokens (gerado de tokens.json; não editar à mão) */

/* Tema claro (padrão) */
:root, [data-theme="light"] {
  --page-base: #ffffff;
  --surface: #f6f6f7;
  --surface-muted: #ffffff;
  --surface-raised: #ffffff;
  --scrim: rgba(0, 0, 0, 0.4);
  --surface-hover: rgba(142, 150, 170, 0.14);
  --control: #ebebef;
  --control-hover: #e4e4e9;
  --line: #e2e2e3;
  --line-strong: #c2c2c4;
  --ink: #3c3c43;
  --ink-secondary: #67676c;
  --ink-muted: #67676c;
  --ink-disabled: #929295;
  --brand: #4c90e9;
  --brand-hover: #5599f2;
  --brand-soft: rgba(76, 144, 233, 0.14);
  --brand-text: #1860bf;
  --series-1: #1baf7a;
  --series-2: #2a78d6;
  --series-3: #eda100;
  --series-4: #6250d6;
  --series-5: #e87ba4;
  --series-neutral: #8a9aa6;
  --status-good: #166f48;
  --status-good-text: #158051;
  --status-good-bg: rgba(16, 185, 129, 0.14);
  --status-warn: #915930;
  --status-warn-text: #a85d00;
  --status-warn-bg: rgba(234, 179, 8, 0.14);
  --status-crit: #b8272c;
  --status-crit-text: #b8272c;
  --status-crit-bg: rgba(244, 63, 94, 0.14);
  --aging-0: #1baf7a;
  --aging-1: #e3b23c;
  --aging-2: #e58a2e;
  --aging-3: #d9603b;
  --aging-4: #c23b3b;
  --shadow-popover: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Tema escuro */
[data-theme="dark"] {
  --page-base: #1b1b1f;
  --surface: #202127;
  --surface-muted: #1b1b1f;
  --surface-raised: #202127;
  --scrim: rgba(0, 0, 0, 0.6);
  --surface-hover: rgba(101, 117, 133, 0.16);
  --control: #32363f;
  --control-hover: #414853;
  --line: #2e2e32;
  --line-strong: #3c3f44;
  --ink: #dfdfd6;
  --ink-secondary: #98989f;
  --ink-muted: #98989f;
  --ink-disabled: #6a6a71;
  --brand: #16a36a;
  --brand-hover: #18b173;
  --brand-soft: rgba(22, 163, 106, 0.16);
  --brand-text: #1fb87a;
  --series-1: #199e70;
  --series-2: #3987e5;
  --series-3: #c98500;
  --series-4: #9085e9;
  --series-5: #d55181;
  --series-neutral: #7b8c99;
  --status-good: #3dd68c;
  --status-good-text: #3dd68c;
  --status-good-bg: rgba(16, 185, 129, 0.16);
  --status-warn: #f9b44e;
  --status-warn-text: #f9b44e;
  --status-warn-bg: rgba(234, 179, 8, 0.16);
  --status-crit: #f66f81;
  --status-crit-text: #f66f81;
  --status-crit-bg: rgba(244, 63, 94, 0.16);
  --aging-0: #1baf7a;
  --aging-1: #e3b23c;
  --aging-2: #e58a2e;
  --aging-3: #d9603b;
  --aging-4: #c23b3b;
}

/* Espaçamento, raio, fonte */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 12px;
  --radius-card: 12px;
  --radius-pill: 999px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Estilos de texto */
.text-display { font-family: var(--font-sans); font-size: 40px; line-height: 1.12; font-weight: 700; letter-spacing: -1px; }
.text-title-xl { font-family: var(--font-sans); font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -0.6px; }
.text-figure-lg { font-family: var(--font-sans); font-size: 26px; line-height: 1.1; font-weight: 700; letter-spacing: -0.5px; }
.text-greeting { font-family: var(--font-sans); font-size: 22px; line-height: 1.25; font-weight: 500; }
.text-figure-md { font-family: var(--font-sans); font-size: 20px; line-height: 1.15; font-weight: 700; letter-spacing: -0.4px; }
.text-figure-sm { font-family: var(--font-sans); font-size: 17px; line-height: 1.2; font-weight: 700; }
.text-card-title { font-family: var(--font-sans); font-size: 15.5px; line-height: 1.3; font-weight: 700; }
.text-body { font-family: var(--font-sans); font-size: 14.5px; line-height: 1.5; font-weight: 400; }
.text-nav { font-family: var(--font-sans); font-size: 13.5px; line-height: 1.3; font-weight: 500; }
.text-label { font-family: var(--font-sans); font-size: 13px; line-height: 1.4; font-weight: 600; }
.text-body-sm { font-family: var(--font-sans); font-size: 13px; line-height: 1.45; font-weight: 400; }
.text-caption { font-family: var(--font-sans); font-size: 12.5px; line-height: 1.4; font-weight: 400; }
.text-micro { font-family: var(--font-sans); font-size: 11.5px; line-height: 1.3; font-weight: 600; }
