/* Sight Harpy. Primitivos, papéis semânticos e contratos de componentes. */
:root {
  color-scheme: dark;
  /* Carbono: escala acromática levemente fria, do canvas (0) ao elemento selecionado (5) */
  --carbon-0: #08080a;
  --carbon-1: #0e0e10;
  --carbon-2: #131316;
  --carbon-3: #1a1a1e;
  --carbon-4: #212126;
  --carbon-5: #2a2a30;
  --carbon-line: #222227;
  --carbon-line-strong: #34343b;
  --neutral-0: #ffffff;
  --color-canvas: var(--carbon-0);
  --color-bg: var(--carbon-1);
  --color-surface: var(--carbon-2);
  --color-surface-strong: var(--carbon-2);
  --color-surface-hover: var(--carbon-3);
  --color-surface-selected: var(--carbon-4);
  --color-field: var(--carbon-1);
  --color-text: #f2f2f4;
  --color-text-soft: #c8c8ce;
  --color-text-muted: #94949c;
  --color-text-faint: #86868e;  /* 4,8:1 sobre a superfície; WCAG AA pede 4,5 */
  --color-line: var(--carbon-line);
  --color-line-strong: var(--carbon-line-strong);
  --color-focus: #6b93ff;
  --color-focus-ring: rgb(91 140 255 / .32);
  --color-primary: #2f63ff;  /* texto branco no botão: 4,8:1 */
  --color-primary-ink: #ffffff;
  --color-primary-hover: #3769ff;
  --color-accent: #7ea2ff;
  --color-accent-soft: rgb(91 140 255 / .12);
  --color-accent-strong: #a9c0ff;
  --color-info: #7ea2ff;
  --color-success: #4ccb7f;
  --color-warning: #f0b44c;
  --color-danger: #f47272;
  --color-danger-ink: #1a0b0b;  /* texto sobre fundo de perigo: branco ficava em 2,8:1 */
  --color-info-soft: rgb(91 140 255 / .12);
  --color-success-soft: rgb(76 203 127 / .12);
  --color-warning-soft: rgb(240 180 76 / .12);
  --color-danger-soft: rgb(244 114 114 / .12);
  --color-purple: #a78bfa;
  --color-purple-soft: rgb(167 139 250 / .12);
  --color-score-low: #f47272;
  --color-score-mid: #f0b44c;
  --color-score-high: #4ccb7f;
  --shadow-xs: 0 0 0 1px rgb(255 255 255 / .02), 0 1px 2px rgb(0 0 0 / .4);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .32);
  --shadow-md: 0 12px 32px -8px rgb(0 0 0 / .56), 0 0 0 1px rgb(255 255 255 / .04);
  --highlight-top: inset 0 1px 0 rgb(255 255 255 / .04);
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-frame: 16px;
  --font-sans: "Inter UI", InterVariable, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tracking-body: -0.006em;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  /* Escala tipográfica: 12 rótulo, 13 dado denso, 14 corpo, 16 título de item, 20 seção, 28 página */
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 16px;
  --text-lg: 20px;
  --text-xl: 28px;
  --leading-xs: 16px;
  --leading-base: 20px;
  --leading-md: 24px;
  --leading-lg: 28px;
  --leading-xl: 36px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --sidebar-width: 240px;
  --z-overlay: 80;
  --z-toast: 140;
}
:root[data-theme="light"] {
  color-scheme: light;
  --color-canvas: #eceef1;
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-strong: #fbfbfc;
  --color-surface-hover: #f5f6f8;
  --color-surface-selected: #eef0f3;
  --color-field: #ffffff;
  --color-text: #101114;
  --color-text-soft: #3b3d44;
  --color-text-muted: #636670;
  --color-text-faint: #676a73;  /* 4,65:1 sobre o canvas claro */
  --color-line: #e7e8ec;
  --color-line-strong: #c9ccd3;
  --color-focus: #2f63ff;
  --color-focus-ring: rgb(47 99 255 / .22);
  --color-primary: #2f63ff;
  --color-primary-ink: #ffffff;
  --color-primary-hover: #1f52ee;
  --color-accent: #2353e0;  /* texto pequeno sobre superfície cinza: #2f63ff ficava em 4,15:1 */
  --color-accent-soft: #edf2ff;
  --color-accent-strong: #1d47c9;
  --color-info: #2f63ff;
  --color-success: #126b33;  /* 4,5:1 também sobre fundos tingidos (#15803d ficava em 4,27:1) */
  --color-warning: #b45309;
  --color-danger: #c42b2b;
  --color-danger-ink: #ffffff;
  --color-info-soft: #edf2ff;
  --color-success-soft: #ebf8ef;
  --color-warning-soft: #fdf4e3;
  --color-danger-soft: #fdeeee;
  --color-purple: #6d4ed8;
  --color-purple-soft: #f2eefe;
  --color-score-low: #c42b2b;
  --color-score-mid: #b45309;
  --color-score-high: #126b33;
  --shadow-xs: 0 0 0 1px rgb(16 17 20 / .02), 0 1px 2px rgb(16 17 20 / .05);
  --shadow-sm: 0 1px 2px rgb(16 17 20 / .06);
  --shadow-md: 0 16px 40px -12px rgb(16 17 20 / .18), 0 0 0 1px rgb(16 17 20 / .04);
  --highlight-top: inset 0 1px 0 rgb(255 255 255 / .8);
}
