/* Chat VortexAQ brand overlays.
   Dark palette only under html.dark without high-contrast — never on :root —
   so light / high-contrast ThemeProvider vars keep winning. */

/* Brand accent + CTA in light/dark; leave high-contrast tokens alone */
html:not(.high-contrast) {
  --accent-primary: 173 198 255 !important;
  --accent-primary-hover: 140 170 240 !important;
  --link: 173 198 255 !important;
  --link-hover: 140 170 240 !important;
  --ring-primary: 173 198 255 !important;
  --surface-submit: 173 198 255 !important;
  --surface-submit-hover: 196 214 255 !important;
  --brand-purple: 173 198 255 !important;
}

html.dark:not(.high-contrast) {
  color-scheme: dark;

  --text-primary: 229 226 225 !important;
  --text-secondary: 194 198 214 !important;
  --text-secondary-alt: 140 144 159 !important;
  --text-tertiary: 140 144 159 !important;
  --text-muted: 140 144 159 !important;

  --link: 173 198 255 !important;
  --link-hover: 200 216 255 !important;
  --accent-primary: 173 198 255 !important;
  --accent-primary-hover: 200 216 255 !important;

  --surface-primary: 10 10 10 !important;
  --surface-primary-alt: 14 14 14 !important;
  --surface-primary-contrast: 19 19 19 !important;
  /* Match chat canvas to sidebar (surface-primary-alt) */
  --presentation: 14 14 14 !important;
  --surface-secondary: 19 19 19 !important;
  --surface-secondary-alt: 19 19 19 !important;
  --surface-tertiary: 28 27 27 !important;
  --surface-tertiary-alt: 28 27 27 !important;
  --surface-dialog: 14 14 14 !important;
  --surface-chat: 28 27 27 !important;
  --surface-code: 19 19 19 !important;
  --surface-hover: 32 32 34 !important;
  --surface-hover-alt: 36 36 38 !important;
  --surface-composer-hover: 36 36 38 !important;
  --surface-active: 45 48 58 !important;
  --surface-active-alt: 28 27 27 !important;
  --surface-overlay: 0 0 0 !important;

  --header-primary: 19 19 19 !important;
  --header-hover: 28 27 27 !important;
  --header-button-hover: 28 27 27 !important;

  --border-light: 28 27 27 !important;
  --border-medium: 45 48 58 !important;
  --border-medium-alt: 45 48 58 !important;
  --border-heavy: 89 94 112 !important;

  --surface-submit: 173 198 255 !important;
  --surface-submit-hover: 196 214 255 !important;

  --status-success: 78 222 163 !important;
  --ring-primary: 173 198 255 !important;
  --brand-purple: 173 198 255 !important;
}

/* Periwinkle CTA → ink label (all modes) */
button.bg-surface-submit,
.bg-surface-submit {
  color: #0a0a0a !important;
}

/* Dark-only atmosphere; leave light / high-contrast canvases alone */
html.dark:not(.high-contrast) body {
  background-color: #0a0a0a;
}

html.dark:not(.high-contrast) #root {
  background:
    radial-gradient(circle at 72% 12%, rgba(173, 198, 255, 0.08), transparent 28rem),
    linear-gradient(rgba(140, 144, 159, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 144, 159, 0.04) 1px, transparent 1px),
    #0a0a0a;
  background-size: auto, 96px 96px, 96px 96px, auto;
}

html.dark:not(.high-contrast) #loading-container {
  background-color: #0a0a0a !important;
}

/* Sign-in: no mark above the form */
div.mt-6.h-10.w-full.bg-cover {
  display: none !important;
}

/* Hide non-gov warning only; keep Gov Hosted banner */
[data-testid='cui-notice'] {
  display: none !important;
}

/* Empty-chat landing: hide the endpoint/robot icon */
#messages-view .relative.size-10.justify-center {
  display: none !important;
}

/* Auth-shell site link (injected in index.html; hidden after login) */
#vaq-site-footer {
  position: fixed;
  bottom: 1rem;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

#vaq-site-footer[hidden] {
  display: none !important;
}

#vaq-site-footer a {
  pointer-events: auto;
  font-size: 0.875rem;
  color: rgb(var(--accent-primary));
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

#vaq-site-footer a:hover {
  color: rgb(var(--accent-primary-hover));
}
