/* TESS · tema de app (claro e escuro) · GERADO por _core/engines/derive_brand.py — não editar.
   Dono: glob_00_templates/_core/tokens/tess.json (seção ui). Norma: _core/brands/tess/DESIGN.md.
   Consumo: copiado para src/styles/tess_theme.css pelo brand-install do adapta; o sha256 é conferido no brand-check. */

:root {
  --background: 48 38.5% 97.5%; /* #FBFAF6 ui_cream */
  --foreground: 0 0% 6.7%; /* #111111 ui_ink */
  --card: 0 0% 100%; /* #FFFFFF white */
  --card-foreground: 0 0% 6.7%; /* #111111 ui_ink */
  --popover: 0 0% 100%; /* #FFFFFF white */
  --popover-foreground: 0 0% 6.7%; /* #111111 ui_ink */
  --primary: 0 0% 6.7%; /* #111111 ui_ink */
  --primary-foreground: 0 0% 100%; /* #FFFFFF white */
  --secondary: 43.6 31.4% 93.1%; /* #F3F0E8 ui_sand */
  --secondary-foreground: 0 0% 6.7%; /* #111111 ui_ink */
  --muted: 42.9 41.2% 96.7%; /* #FAF8F3 ui_sand_light */
  --muted-foreground: 42 4.7% 41.6%; /* #6F6C65 ui_muted */
  --accent: 43.6 31.4% 93.1%; /* #F3F0E8 ui_sand */
  --accent-foreground: 0 0% 6.7%; /* #111111 ui_ink */
  --brand: 42.9 65.7% 50.8%; /* #D4A52F gold_leaf */
  --brand-foreground: 0 0% 6.7%; /* #111111 ui_ink */
  --brand-strong: 43 76.9% 30.6%; /* #8A6812 gold_strong */
  --brand-light: 42.9 65.7% 50.8%; /* #D4A52F gold_leaf */
  --brand-soft: 44.2 70.4% 94.7%; /* #FBF6E8 gold_tint */
  --success: 132.6 10.9% 34.3%; /* #4E6152 sage */
  --success-foreground: 0 0% 100%; /* #FFFFFF white */
  --success-soft: 108 15.2% 93.5%; /* #EDF1EC sage_soft */
  --warning: 43 76.9% 30.6%; /* #8A6812 gold_strong */
  --warning-foreground: 0 0% 100%; /* #FFFFFF white */
  --warning-soft: 44.2 70.4% 94.7%; /* #FBF6E8 gold_tint */
  --info: 206.4 12.7% 38.6%; /* #56646F slate */
  --info-foreground: 0 0% 100%; /* #FFFFFF white */
  --info-soft: 210 18.7% 93.7%; /* #ECEFF2 slate_soft */
  --destructive: 4.5 31.7% 49.4%; /* #A65C56 terracotta */
  --destructive-foreground: 0 0% 100%; /* #FFFFFF white */
  --destructive-soft: 15 57.1% 97.3%; /* #FCF6F4 terracotta_soft */
  --border: 40 27.3% 87.1%; /* #E7E1D5 ui_line */
  --input: 40 7.3% 51.4%; /* #8C867A ui_input */
  --ring: 0 0% 6.7%; /* #111111 ui_ink */
  --sidebar-background: 0 0% 6.7%; /* #111111 ui_ink */
  --sidebar-foreground: 48 38.5% 97.5%; /* #FBFAF6 ui_cream */
  --sidebar-primary: 42.9 65.7% 50.8%; /* #D4A52F gold_leaf */
  --sidebar-primary-foreground: 0 0% 6.7%; /* #111111 ui_ink */
  --sidebar-accent: 0 0% 14.9%; /* #262626 dark_raised */
  --sidebar-accent-foreground: 48 38.5% 97.5%; /* #FBFAF6 ui_cream */
  --sidebar-border: 0 0% 18%; /* #2E2E2E dark_line */
  --sidebar-ring: 42.9 65.7% 50.8%; /* #D4A52F gold_leaf */
  --chart-1: 42.9 65.7% 50.8%; /* #D4A52F gold_leaf */
  --chart-2: 0 0% 6.7%; /* #111111 ui_ink */
  --chart-3: 126.3 7.9% 46.9%; /* #6E8170 sage_mid */
  --chart-4: 206.9 11.8% 48%; /* #6C7C89 slate_mid */
  --chart-5: 4.5 31.7% 49.4%; /* #A65C56 terracotta */
  --radius: 0.5rem;
  --font-sans: 'Poppins', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-wordmark: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.dark {
  --background: 0 0% 12.5%; /* #202020 dark_base */
  --foreground: 48 38.5% 97.5%; /* #FBFAF6 ui_cream */
  --card: 0 0% 9%; /* #171717 dark_card */
  --card-foreground: 48 38.5% 97.5%; /* #FBFAF6 ui_cream */
  --popover: 0 0% 9%; /* #171717 dark_card */
  --popover-foreground: 48 38.5% 97.5%; /* #FBFAF6 ui_cream */
  --primary: 42.9 65.7% 50.8%; /* #D4A52F gold_leaf */
  --primary-foreground: 0 0% 6.7%; /* #111111 ui_ink */
  --secondary: 0 0% 18%; /* #2E2E2E dark_line */
  --secondary-foreground: 48 38.5% 97.5%; /* #FBFAF6 ui_cream */
  --muted: 0 0% 14.9%; /* #262626 dark_raised */
  --muted-foreground: 40 6.5% 63.5%; /* #A8A49C dark_muted */
  --accent: 0 0% 18%; /* #2E2E2E dark_line */
  --accent-foreground: 48 38.5% 97.5%; /* #FBFAF6 ui_cream */
  --brand: 42.9 65.7% 50.8%; /* #D4A52F gold_leaf */
  --brand-foreground: 0 0% 6.7%; /* #111111 ui_ink */
  --brand-strong: 42.9 65.7% 50.8%; /* #D4A52F gold_leaf */
  --brand-light: 42.9 65.7% 50.8%; /* #D4A52F gold_leaf */
  --brand-soft: 42.5 40% 11.8%; /* #2A2312 gold_dark_tint */
  --success: 124.1 15% 62.2%; /* #90AD92 sage_light */
  --success-foreground: 0 0% 6.7%; /* #111111 ui_ink */
  --success-soft: 126.7 12.7% 13.9%; /* #1F2820 sage_dark_tint */
  --warning: 42.9 65.7% 50.8%; /* #D4A52F gold_leaf */
  --warning-foreground: 0 0% 6.7%; /* #111111 ui_ink */
  --warning-soft: 42.5 40% 11.8%; /* #2A2312 gold_dark_tint */
  --info: 206.7 15.1% 64.9%; /* #98A7B3 slate_light */
  --info-foreground: 0 0% 6.7%; /* #111111 ui_ink */
  --info-soft: 206.7 11.7% 15.1%; /* #22272B slate_dark_tint */
  --destructive: 4.1 45.4% 62%; /* #CA7872 terracotta_light */
  --destructive-foreground: 0 0% 6.7%; /* #111111 ui_ink */
  --destructive-soft: 2.6 29.9% 15.1%; /* #321C1B terracotta_dark_tint */
  --border: 0 0% 18%; /* #2E2E2E dark_line */
  --input: 40 5.2% 45.5%; /* #7A766E dark_input */
  --ring: 42.9 65.7% 50.8%; /* #D4A52F gold_leaf */
  --sidebar-background: 0 0% 9%; /* #171717 dark_card */
  --sidebar-foreground: 48 38.5% 97.5%; /* #FBFAF6 ui_cream */
  --sidebar-primary: 42.9 65.7% 50.8%; /* #D4A52F gold_leaf */
  --sidebar-primary-foreground: 0 0% 6.7%; /* #111111 ui_ink */
  --sidebar-accent: 0 0% 14.9%; /* #262626 dark_raised */
  --sidebar-accent-foreground: 48 38.5% 97.5%; /* #FBFAF6 ui_cream */
  --sidebar-border: 0 0% 18%; /* #2E2E2E dark_line */
  --sidebar-ring: 42.9 65.7% 50.8%; /* #D4A52F gold_leaf */
  --chart-1: 42.9 65.7% 50.8%; /* #D4A52F gold_leaf */
  --chart-2: 48 38.5% 97.5%; /* #FBFAF6 ui_cream */
  --chart-3: 124.1 15% 62.2%; /* #90AD92 sage_light */
  --chart-4: 206.7 15.1% 64.9%; /* #98A7B3 slate_light */
  --chart-5: 4.1 45.4% 62%; /* #CA7872 terracotta_light */
}

/* Foco acessível (WCAG 2.4.7 / 1.4.11): anel duplo onde o componente não declara o seu.
   :where() tem especificidade zero, então os utilitários ring-* do Tailwind continuam valendo. */
:where(:focus-visible) {
  outline: none;
  box-shadow:
    0 0 0 2px hsl(var(--foreground)),
    0 0 0 4px hsl(var(--brand));
}
