/* Keep the shared brand palette aligned with Tetana's app/theme.css. */
:root, [data-theme="light"] {
  --tetana-color-scheme: light;
  color-scheme: light;
  --tetana-primary: #087f8c;
  --tetana-primary-hover: #066673;
  --tetana-primary-active: #05545e;
  --tetana-primary-light: #e5f3f4;
  --tetana-primary-subtle: #f0f9fa;
  --tetana-primary-border: #acd6da;
  --tetana-background: #f7faf8;
  --tetana-surface: #fff;
  --tetana-text: #17231b;
  --tetana-muted: #59685e;
  --tetana-disabled: #7b897f;
  --tetana-border: #dce5df;
  --tetana-control-border: #7a8d80;
  --tetana-accent: var(--tetana-primary);
  --tetana-accent-soft: var(--tetana-primary-light);
  --tetana-accent-subtle: var(--tetana-primary-subtle);
  --tetana-accent-border: var(--tetana-primary-border);
  --tetana-hover: #eaf2f5;
  --tetana-logo-ink: #17231b;
  --tetana-logo-filter: none;
  /* White button labels meet AA on the shared Teal action palette. */
  --tetana-button: var(--tetana-primary);
  --tetana-on-button: #fff;
  --tetana-button-hover: var(--tetana-primary-hover);
  --tetana-on-button-hover: #fff;
  --tetana-chat-surface: #dcfce7;
  --tetana-chat-text: #17231b;
  --tetana-overlay: #101c1680;
}

:root[data-theme="dark"], [data-theme="dark"] {
  --tetana-color-scheme: dark;
  color-scheme: dark;
  --tetana-background: #101c16;
  --tetana-surface: #19271f;
  --tetana-text: #f3f7f4;
  --tetana-muted: #a8b8ad;
  --tetana-disabled: #83998b;
  --tetana-border: #304238;
  --tetana-control-border: #708d7b;
  --tetana-accent: #76bcc3;
  --tetana-accent-soft: #173b40;
  --tetana-accent-subtle: #142f33;
  --tetana-accent-border: #427d84;
  --tetana-hover: #203638;
  --tetana-logo-ink: #fff;
  --tetana-logo-filter: url("/tetana-logo-filters.svg#white-ink");
  --tetana-chat-surface: #193f2b;
  --tetana-chat-text: #f3f7f4;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tetana-color-scheme: dark;
    color-scheme: dark;
    --tetana-background: #101c16;
    --tetana-surface: #19271f;
    --tetana-text: #f3f7f4;
    --tetana-muted: #a8b8ad;
    --tetana-disabled: #83998b;
    --tetana-border: #304238;
    --tetana-control-border: #708d7b;
    --tetana-accent: #76bcc3;
    --tetana-accent-soft: #173b40;
    --tetana-accent-subtle: #142f33;
    --tetana-accent-border: #427d84;
    --tetana-hover: #203638;
    --tetana-logo-ink: #fff;
  --tetana-logo-filter: url("/tetana-logo-filters.svg#white-ink");
    --tetana-chat-surface: #193f2b;
    --tetana-chat-text: #f3f7f4;
  }
}

:root {
    --tetana-focus: #087f8c26;
    --tetana-danger: #a62c27;
    --tetana-danger-surface: #fff3f2;
    --tetana-danger-border: #f4c8c5;
    --tetana-success: #176444;
    --tetana-success-surface: #eefaf3;
    --tetana-success-border: #bfe5cc;
    --tetana-warning: #785918;
    --tetana-warning-surface: #fff8e5;
    --tetana-warning-border: #ead39b;
}
:root[data-theme="dark"] {
    --tetana-focus: #76bcc333;
    --tetana-danger: #ffb4ad;
    --tetana-danger-surface: #392320;
    --tetana-danger-border: #79413b;
    --tetana-success: #a9e3bd;
    --tetana-success-surface: #193f2b;
    --tetana-success-border: #337749;
    --tetana-warning: #efd491;
    --tetana-warning-surface: #352d1c;
    --tetana-warning-border: #786334;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tetana-focus: #76bcc333;
    --tetana-danger: #ffb4ad;
    --tetana-danger-surface: #392320;
    --tetana-danger-border: #79413b;
    --tetana-success: #a9e3bd;
    --tetana-success-surface: #193f2b;
    --tetana-success-border: #337749;
    --tetana-warning: #efd491;
    --tetana-warning-surface: #352d1c;
    --tetana-warning-border: #786334;
  }
}
