/*
 * 橙流 AI — global theme override for New API frontend (v1.0.0-rc.47)
 * Injected into every page <head> by nginx sub_filter.
 * Overrides the default (blue) palette with the brand orange palette.
 * Selectors use html:root / html.dark to outrank the app's :root / .dark rules,
 * and skip user-selected presets other than "default".
 */

html:root:not([data-theme-preset]),
html:root[data-theme-preset="default"] {
  --primary: #d84315;
  --primary-foreground: #ffffff;
  --secondary-foreground: #bf360c;
  --ring: #f4511e;

  --sidebar-primary: #d84315;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent-foreground: #bf360c;
  --sidebar-ring: #f4511e;

  --chart-1: #f4511e;
  --chart-2: #ffa726;
  --chart-3: #00a3aa;
  --chart-4: #9095e8;
  --chart-5: #20b46b;

  --brand-1: #ffa726;
  --brand-2: #f4511e;
}

html.dark:not([data-theme-preset]),
html.dark[data-theme-preset="default"] {
  --primary: #e64a19;
  --primary-foreground: #ffffff;
  --secondary-foreground: #ffccbc;
  --ring: #ff8a65;

  --sidebar-primary: #e64a19;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent-foreground: #ffccbc;
  --sidebar-ring: #ff8a65;

  --chart-1: #ff7043;
  --chart-2: #ffb74d;
  --chart-3: #00c9d1;
  --chart-4: #a9a5ff;
  --chart-5: #5ccb89;
}

::selection {
  background: rgba(244, 81, 30, 0.22);
}
