:root,
:root[data-theme],
:root[data-theme-mode='light'] {
  color-scheme: dark !important;
  --bg: #020202 !important;
  --bg-accent: #050505 !important;
  --bg-content: #020202 !important;
  --bg-elevated: #090909 !important;
  --bg-hover: #130303 !important;
  --bg-muted: #0b0b0b !important;
  --card: #060606 !important;
  --card-foreground: #e8e8e8 !important;
  --popover: #080808 !important;
  --popover-foreground: #e8e8e8 !important;
  --panel: #020202 !important;
  --panel-strong: #080808 !important;
  --panel-hover: #130303 !important;
  --chrome: #020202fa !important;
  --chrome-strong: #000 !important;
  --text: #c8c8c8 !important;
  --text-strong: #fff !important;
  --chat-text: #d8d8d8 !important;
  --muted: #777 !important;
  --muted-strong: #999 !important;
  --muted-foreground: #777 !important;
  --border: #321010 !important;
  --border-strong: #711717 !important;
  --border-hover: #b92020 !important;
  --input: #140505 !important;
  --ring: #ff1b1b !important;
  --accent: #ff1b1b !important;
  --accent-hover: #ff4a4a !important;
  --accent-muted: #d31313 !important;
  --accent-subtle: #ff1b1b1c !important;
  --accent-foreground: #fff !important;
  --accent-glow: #ff1b1b52 !important;
  --primary: #ff1b1b !important;
  --primary-foreground: #050000 !important;
  --secondary: #0a0a0a !important;
  --secondary-foreground: #eee !important;
  --accent-2: #f04444 !important;
  --grid-line: #ff1b1b0b !important;
  --font-body: 'Courier New', 'Lucida Console', Monaco, monospace !important;
  --font-display: var(--font-body) !important;
  --mono: 'Courier New', 'Lucida Console', Monaco, monospace !important;
  --radius-sm: 0 !important;
  --radius-md: 1px !important;
  --radius-lg: 2px !important;
  --radius-xl: 2px !important;
  --radius-full: 2px !important;
  --shadow-sm: none !important;
  --shadow-md: none !important;
  --shadow-lg: 0 0 24px #000 !important;
  --shadow-xl: 0 0 40px #000 !important;
  --shadow-glow: 0 0 18px var(--accent-glow) !important;
}

html,
body,
button,
input,
textarea,
select {
  font-family: var(--font-body) !important;
  font-variant-ligatures: none;
}

body {
  background-color: #020202 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 0 5px rgb(255 255 255 / 8%);
}

body::after {
  position: fixed;
  z-index: 9999;
  inset: 0;
  pointer-events: none;
  content: '';
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgb(255 255 255 / 1.6%) 3px,
    rgb(255 255 255 / 1.6%) 4px
  );
  mix-blend-mode: screen;
}

.sidebar-brand__logo,
.topbar-brand__logo,
.connect-splash__logo,
.login-gate__logo,
.sidebar-native-brand {
  content: url('./hal-eye.svg');
  border-radius: 0 !important;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 5px rgb(255 27 27 / 65%));
}

.sidebar-brand {
  min-height: 42px !important;
}

.sidebar-brand__identity {
  gap: 9px !important;
}

.sidebar-brand__logo {
  width: 32px !important;
  height: 32px !important;
  border: 0 !important;
  background: transparent !important;
}

.topbar-brand__logo {
  width: 32px !important;
  height: 32px !important;
  border: 0 !important;
  background: transparent !important;
}

.login-gate__logo,
.connect-splash__logo {
  width: 96px !important;
  height: 96px !important;
}

.connect-splash__logo {
  animation: hal-eye-pulse 1.8s ease-in-out infinite !important;
}

@keyframes hal-eye-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 7px rgb(255 20 20 / 42%));
  }

  50% {
    filter: drop-shadow(0 0 22px rgb(255 20 20 / 100%)) drop-shadow(0 0 48px rgb(180 0 0 / 75%));
  }
}

.sidebar-brand__title,
.topbar-brand__title,
.sidebar-agent-card__name,
.sidebar-identity-card__name,
h1,
h2,
h3,
.dashboard-header__breadcrumb-current {
  color: var(--text-strong) !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

.sidebar,
.topbar,
.card,
button,
input,
textarea,
select {
  backdrop-filter: none !important;
  border-radius: 0 !important;
}

button:hover,
a:hover {
  text-shadow: 0 0 8px var(--accent-glow);
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    display: none;
  }

  .connect-splash__logo {
    animation: none !important;
  }
}
