:root {
  /* Kanoniczne aliasy motywu. Starsze moduły używają nazw accent/gold,
     a główny motyw nadal przechowuje paletę pod historycznymi nazwami blue. */
  --accent: var(--blue-500);
  --accent-strong: var(--blue-600);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, var(--surface));
  --accent-text: #211707;
  --brand-gold: var(--blue-500);
  --gold-200: var(--blue-200);
  --gold-300: color-mix(in srgb, var(--blue-200) 55%, var(--blue-500));
  --gold-500: var(--blue-500);
  --muted: var(--text-secondary);
  --text-muted: var(--text-secondary);
  --text-primary: var(--text);
  --input-bg: var(--surface);
  --surface-muted: var(--surface-hover);
  --border-color: var(--border);
  --shadow-lg: var(--shadow);
  --sheet-height: calc(100dvh - 250px);
  --notification-surface: var(--surface);
  --notification-surface-hover: var(--surface-soft);
  --notification-text: var(--text);
  --notification-muted: var(--text-secondary);
  --notification-border: var(--border);
  --notification-accent: var(--accent);
  /* Dashboard semantic attention colors. Classic keeps the historical amber palette;
     Modern overrides these without changing dashboard markup or business tones. */
  --dashboard-attention-fill: #d9952b;
  --dashboard-attention-text: #b97815;
}

html.dark {
  --accent-soft: color-mix(in srgb, var(--accent) 15%, var(--surface));
  --input-bg: var(--surface-soft);
}

/* Brand compatibility tokens.
   Starsze moduły miały część palety Paleto Bay wpisaną bezpośrednio w reguły CSS.
   Tokeny zachowują identyczny wygląd Klasycznego, a Modern może zmienić paletę bez
   duplikowania logiki komponentów. */
:root {
  --brand-accent-rgb: 199 148 63;
  --brand-accent-light-rgb: 213 170 88;
  --brand-accent-dark-rgb: 127 84 24;
  --brand-accent-100: #f0d59e;
  --brand-accent-200: #e2c27d;
  --brand-accent-300: #e5c982;
  --brand-accent-500: #d5aa58;
  --brand-accent-muted: #b8a27e;
  --brand-accent-muted-alt: #b9a98d;
  --brand-accent-muted-light: #d8bf8b;
  --brand-accent-border: #80602f;
}
