/* Keep the live neural cortex unmistakable against both workspace themes. */
:root[data-theme] .unified-shell .topbar #richard-launcher {
  position:relative;
  inset:auto;
  flex:0 0 56px;
  width:56px!important;
  min-width:56px!important;
  height:56px!important;
  min-height:56px!important;
  padding:2px!important;
  overflow:visible;
  border:0!important;
  border-radius:50%;
  background:radial-gradient(circle at 50% 44%,#184b66 0%,#071d31 64%,#03101e 100%)!important;
  box-shadow:0 0 0 1px #1489a2,0 0 16px #00cfe488,0 0 34px #00a9d044!important;
  animation:cortex-header-idle 2.35s ease-in-out infinite;
}
:root[data-theme] .unified-shell .topbar #richard-launcher::before {
  content:"";
  position:absolute;
  inset:-3px;
  z-index:0;
  border:1.5px solid #24dce8;
  border-radius:50%;
  box-shadow:0 0 10px #00d9eeb0,0 0 26px #00b7e277;
  opacity:.85;
  pointer-events:none;
}
:root[data-theme] .unified-shell .topbar #richard-launcher img {
  position:relative;
  z-index:1;
  display:block;
  width:52px;
  height:52px;
  object-fit:contain;
  transform:scale(1.12);
  filter:brightness(1.28) contrast(1.35) saturate(1.4) drop-shadow(0 0 7px #24eeff) drop-shadow(0 0 13px #7d67ff88);
}
:root[data-theme] .unified-shell .topbar #richard-launcher[data-task-state="active"] {
  animation:cortex-header-active 1.55s ease-in-out infinite;
}
:root[data-theme] .unified-shell .topbar #richard-launcher[data-task-state="attention"] {
  animation:none;
  filter:drop-shadow(0 0 9px color-mix(in srgb,var(--amber,#ffb454) 70%,transparent));
}
:root[data-theme] .unified-shell .topbar #richard-launcher[data-task-state="attention"]::before {
  border-color:var(--amber,#ffb454);
  box-shadow:0 0 12px color-mix(in srgb,var(--amber,#ffb454) 55%,transparent);
  opacity:.9;
}
@keyframes cortex-header-idle {
  0%,44%,100% { filter:drop-shadow(0 0 5px #00bcd499); }
  12%,30% { filter:drop-shadow(0 0 15px #00d9eedd); }
  21% { filter:drop-shadow(0 0 8px #00cbe8bb); }
}
@keyframes cortex-header-active {
  0%,44%,100% { transform:scale(1); filter:drop-shadow(0 0 7px var(--cyan)); }
  12% { transform:scale(1.075); filter:drop-shadow(0 0 18px var(--cyan)); }
  24% { transform:scale(1.015); }
  34% { transform:scale(1.055); filter:drop-shadow(0 0 15px var(--cyan)); }
}
@media(prefers-reduced-motion:reduce) {
  :root[data-theme] .unified-shell .topbar #richard-launcher,
  :root[data-theme] .unified-shell .topbar #richard-launcher[data-task-state="active"] {
    animation:none!important;
    filter:drop-shadow(0 0 8px color-mix(in srgb,var(--cyan) 60%,transparent));
    transform:none!important;
  }
}
@media(forced-colors:active) {
  :root[data-theme] .unified-shell .topbar #richard-launcher::before { border-color:Highlight; box-shadow:none; }
  :root[data-theme] .unified-shell .topbar #richard-launcher img { filter:none; }
}
