.nb-ai-agent-neon{
  --neon-cyan:#7cf5ff;
  --neon-blue:#5c82ff;
  --neon-purple:#c26bff;
  position:relative;
  display:grid;
  place-items:center;
  box-sizing:border-box;
  aspect-ratio:3 / 1;
  min-height:0;
  padding:36px 42px;
  overflow:hidden;
  color:#fff;
  font-family:"Segoe UI","Microsoft YaHei UI",sans-serif;
  background-color:transparent;
  background-image:
    radial-gradient(circle at 50% 10px,rgba(255,214,255,.42) 0 1.5px,rgba(255,255,255,.2) 4px,transparent 12px),
    radial-gradient(circle at 22px 18px,rgba(255,255,255,.34) 0 1.2px,rgba(115,247,255,.18) 4px,transparent 12px),
    radial-gradient(circle at calc(100% - 22px) 18px,rgba(255,255,255,.34) 0 1.2px,rgba(115,247,255,.18) 4px,transparent 12px),
    radial-gradient(circle at 28px calc(100% - 16px),rgba(200,240,255,.26) 0 1px,transparent 8px),
    radial-gradient(circle at calc(100% - 28px) calc(100% - 16px),rgba(200,240,255,.26) 0 1px,transparent 8px),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 280' preserveAspectRatio='none'><defs><linearGradient id='w' x1='0' y1='0' x2='1' y2='0'><stop offset='0' stop-color='%23d7c2ff' stop-opacity='.12'/><stop offset='.5' stop-color='%23ffffff' stop-opacity='.34'/><stop offset='1' stop-color='%2376f6ff' stop-opacity='.16'/></linearGradient><filter id='g' x='-8%' y='-40%' width='116%' height='180%'><feGaussianBlur stdDeviation='2' result='b'/><feMerge><feMergeNode in='b'/><feMergeNode in='SourceGraphic'/></feMerge></filter></defs><g opacity='.34' fill='none' stroke='url(%23w)' stroke-linecap='round' filter='url(%23g)'><path stroke-width='1.45' d='M-20 198 C 170 36, 360 248, 560 148 S 880 36, 1080 176 S 1300 252, 1420 78'/><path stroke-width='1.05' opacity='.68' d='M-20 218 C 200 88, 420 236, 610 164 S 920 68, 1140 198 S 1320 236, 1420 118'/><path stroke-width='.9' opacity='.4' d='M-20 68 C 250 188, 450 28, 670 112 S 960 228, 1180 82 S 1330 28, 1420 148'/></g><g fill='%23fff' opacity='.26'><path transform='translate(168 64)' d='M0-7 1.35-1.35 7 0 1.35 1.35 0 7-1.35 1.35-7 0-1.35-1.35z'/><path transform='translate(312 122) scale(.68)' d='M0-7 1.35-1.35 7 0 1.35 1.35 0 7-1.35 1.35-7 0-1.35-1.35z'/><path transform='translate(1218 72)' d='M0-7 1.35-1.35 7 0 1.35 1.35 0 7-1.35 1.35-7 0-1.35-1.35z'/><path transform='translate(1086 170) scale(.72)' d='M0-7 1.35-1.35 7 0 1.35 1.35 0 7-1.35 1.35-7 0-1.35-1.35z'/><path transform='translate(976 88) scale(.52)' d='M0-7 1.35-1.35 7 0 1.35 1.35 0 7-1.35 1.35-7 0-1.35-1.35z'/><path transform='translate(236 188) scale(.48)' d='M0-7 1.35-1.35 7 0 1.35 1.35 0 7-1.35-1.35z'/><circle cx='430' cy='86' r='1.2'/><circle cx='760' cy='54' r='1'/><circle cx='1284' cy='148' r='1.15'/><circle cx='92' cy='142' r='.95'/><circle cx='640' cy='210' r='.9'/></g></svg>"),
    radial-gradient(ellipse 34% 90% at 10% 50%,rgba(186,96,255,.15),transparent 72%),
    radial-gradient(ellipse 34% 90% at 90% 48%,rgba(64,236,255,.16),transparent 74%),
    radial-gradient(ellipse 48% 54% at 50% 50%,transparent 0 34%,rgba(159,91,255,.13) 58%,rgba(74,180,255,.09) 80%,transparent 100%),
    linear-gradient(102deg,rgba(136,78,238,.08),rgba(38,90,190,.015) 47%,rgba(44,210,255,.05));
  background-size:auto,auto,auto,auto,auto,100% 100%,auto,auto,auto,auto;
  background-repeat:no-repeat;
  border:1px solid rgba(226,252,255,.48);
  border-radius:clamp(22px,3vw,38px);
  box-shadow:none;
  filter:drop-shadow(0 0 8px rgba(120,240,255,.42)) drop-shadow(-16px 0 24px rgba(193,90,255,.28)) drop-shadow(16px 3px 24px rgba(48,210,255,.22));
  isolation:isolate;
  animation:nb-wake-shell 2s ease-out forwards;
}
.nb-ai-agent-neon::before{
  content:"";
  position:absolute;
  inset:7px;
  border:3px solid transparent;
  border-radius:clamp(16px,2.4vw,28px);
  background:linear-gradient(100deg,#a8f8ff,#fff 12%,#d989ff 24%,#fff 38%,#79edff 52%,#f0b0ff 64%,#c16cff 78%,#fff 90%,#8af6ff) border-box;
  -webkit-mask:linear-gradient(#000 0 0) padding-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  filter:drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px var(--neon-cyan)) drop-shadow(0 0 15px var(--neon-purple));
  opacity:0;
  animation:nb-wake-border 700ms ease-out 500ms forwards,nb-neon-breathe 4s ease-in-out 1.2s infinite;
}
.nb-ai-agent-neon::after{
  content:"";
  position:absolute;
  inset:14px;
  border-radius:inherit;
  background:linear-gradient(106deg,transparent 0 25%,rgba(180,100,255,.06) 35%,rgba(255,255,255,.22) 47%,rgba(114,244,255,.12) 56%,rgba(193,102,255,.2) 64%,transparent 78%);
  opacity:0;
  transform:translateX(-110%);
  z-index:-1;
  filter:blur(2px);
}
.nb-ai-agent-neon[data-state="running"]::after{
  opacity:1;
  animation:nb-neon-flow 10s linear infinite;
}
.nb-ai-agent-neon[data-state="idle"]{
  animation:nb-wake-shell 2s ease-out forwards,nb-idle-shell-breathe 4s ease-in-out 1.2s infinite;
}
.nb-ai-agent-neon[data-state="idle"]::before{
  animation:nb-wake-border 700ms ease-out 500ms forwards,nb-idle-border-breathe 4s ease-in-out 1.2s infinite;
}
.nb-ai-agent-neon[data-state="idle"]::after{
  opacity:.04;
  transform:none;
  animation:nb-idle-energy-breathe 4s ease-in-out infinite;
}
.nb-ai-agent-neon[data-state="idle"] .nb-ai-agent-neon__content::before{
  opacity:.04;
  animation:nb-idle-energy-breathe 4s ease-in-out infinite;
}
.nb-ai-agent-neon[data-state="idle"] .nb-ai-agent-neon__content::after{
  opacity:.03;
  animation:nb-idle-stars-breathe 4s ease-in-out .12s infinite;
}
/* Test switch: use the preview URL hash (#running-black) or set data-force-motion="true" on the host. */
.nb-ai-agent-neon[data-state="running"]:target::after,
.nb-ai-agent-neon[data-state="running"][data-force-motion="true"]::after{
  opacity:1;
  transform:translateX(-110%);
  animation:nb-neon-flow 10s linear infinite;
}
.nb-ai-agent-neon__content{
  position:relative;
  z-index:1;
  min-width:min(100%,560px);
  padding:14px 28px 12px;
  text-align:center;
  isolation:isolate;
}
.nb-ai-agent-neon__content::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:-18px -22px;
  border-radius:50%;
  background:
    radial-gradient(ellipse at 50% 50%,rgba(196,124,255,.14) 0 12%,rgba(85,163,255,.06) 34%,transparent 68%),
    repeating-linear-gradient(102deg,transparent 0 22px,rgba(255,255,255,.03) 23px 24px,transparent 25px 46px);
  mask-image:radial-gradient(ellipse at 50% 50%,#000 0 40%,transparent 78%);
  -webkit-mask-image:radial-gradient(ellipse at 50% 50%,#000 0 40%,transparent 78%);
  opacity:0;
  animation:nb-wake-energy 800ms ease-out 1.2s forwards;
  pointer-events:none;
}
.nb-ai-agent-neon__content::after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:-10px -120px;
  background-image:radial-gradient(circle,rgba(240,254,255,.46) 0 1px,transparent 1.6px),radial-gradient(circle,rgba(210,186,255,.3) 0 .9px,transparent 1.5px);
  background-position:left center,right center;
  background-size:14px 14px,17px 17px;
  background-repeat:repeat,repeat;
  mask-image:linear-gradient(90deg,#000 0 10%,transparent 22% 78%,#000 90% 100%);
  -webkit-mask-image:linear-gradient(90deg,#000 0 10%,transparent 22% 78%,#000 90% 100%);
  opacity:0;
  animation:nb-wake-energy 800ms ease-out 1.2s forwards;
  pointer-events:none;
}
.nb-ai-agent-neon__name{
  font-size:clamp(32px,5.5vw,60px);
  line-height:1.02;
  white-space:nowrap;
  color:#fff;
  font-weight:800;
  letter-spacing:.02em;
  text-shadow:0 0 10px rgba(230,248,255,1),0 0 22px rgba(110,200,255,.85),0 0 38px rgba(150,100,255,.4);
  opacity:0;
  animation:nb-wake-text 500ms ease-out forwards;
}
.nb-ai-agent-neon__brand{
  margin-top:10px;
  font-size:12px;
  letter-spacing:.34em;
  font-weight:600;
  color:#f7fbff;
  text-shadow:0 0 10px rgba(176,220,255,.95);
  opacity:.96;
  animation:nb-wake-text 500ms ease-out forwards;
}
@keyframes nb-wake-text{from{opacity:0}to{opacity:1}}
@keyframes nb-wake-shell{0%,25%{box-shadow:none}100%{box-shadow:inset 0 1px 0 rgba(255,255,255,.34),inset 0 0 14px rgba(170,224,255,.18),inset 0 0 34px rgba(135,88,255,.11),0 0 8px rgba(230,255,255,.58),0 0 18px rgba(130,155,255,.38),0 0 30px rgba(78,198,255,.26),-22px 0 48px rgba(193,87,255,.28),22px 2px 48px rgba(40,210,255,.2),0 0 64px rgba(120,86,255,.18)}}
@keyframes nb-wake-border{from{opacity:0;filter:none}to{opacity:1;filter:drop-shadow(0 0 4px var(--neon-cyan)) drop-shadow(0 0 10px var(--neon-purple))}}
@keyframes nb-wake-energy{from{opacity:0}to{opacity:1}}
@keyframes nb-idle-shell-breathe{
  0%,100%{box-shadow:inset 0 0 2px rgba(170,224,255,.035),0 0 2px rgba(120,240,255,.025),0 0 5px rgba(135,88,255,.02)}
  50%{box-shadow:inset 0 0 8px rgba(170,224,255,.18),0 0 8px rgba(230,255,255,.34),0 0 18px rgba(78,198,255,.22),-10px 0 20px rgba(193,87,255,.18),10px 2px 20px rgba(40,210,255,.14)}
}
@keyframes nb-idle-border-breathe{
  0%,100%{opacity:0;filter:none}
  50%{opacity:1;filter:drop-shadow(0 0 4px var(--neon-cyan)) drop-shadow(0 0 10px var(--neon-purple))}
}
@keyframes nb-idle-energy-breathe{
  0%,100%{opacity:.035}
  50%{opacity:.28}
}
@keyframes nb-idle-stars-breathe{
  0%,100%{opacity:.018}
  50%{opacity:.32}
}
@keyframes nb-neon-breathe{
  0%,100%{opacity:.72;filter:drop-shadow(0 0 4px var(--neon-cyan)) drop-shadow(0 0 10px var(--neon-purple))}
  50%{opacity:1;filter:drop-shadow(0 0 8px var(--neon-cyan)) drop-shadow(0 0 18px var(--neon-purple))}
}
@keyframes nb-neon-flow{to{transform:translateX(110%)}}
@media (max-width:520px){
  .nb-ai-agent-neon{min-height:0;aspect-ratio:3 / 1;padding:14px 16px;border-radius:22px}
  .nb-ai-agent-neon::before{inset:5px;border-width:2px;border-radius:16px}
  .nb-ai-agent-neon::after{inset:9px;border-radius:14px}
  .nb-ai-agent-neon__content{min-width:100%;padding:10px 12px}
  .nb-ai-agent-neon__content::before{inset:-12px -24px}
  .nb-ai-agent-neon__content::after{inset:-18px -90px}
  .nb-ai-agent-neon__name{font-size:clamp(24px,9vw,40px)}
  .nb-ai-agent-neon__brand{margin-top:6px;font-size:8px;letter-spacing:.24em}
}
@media (prefers-reduced-motion:reduce){
  .nb-ai-agent-neon,.nb-ai-agent-neon::before,.nb-ai-agent-neon[data-state="idle"]::after,.nb-ai-agent-neon[data-state="running"]::after,
  .nb-ai-agent-neon[data-state="idle"] .nb-ai-agent-neon__content::before,
  .nb-ai-agent-neon[data-state="idle"] .nb-ai-agent-neon__content::after{animation:none}
  .nb-ai-agent-neon[data-state="idle"]::before{opacity:.08;filter:none}
  .nb-ai-agent-neon[data-state="running"]::after{opacity:.28;transform:none}
  .nb-ai-agent-neon[data-state="idle"]::after{opacity:.035;transform:none}
  .nb-ai-agent-neon[data-state="idle"] .nb-ai-agent-neon__content::before{opacity:.035}
  .nb-ai-agent-neon[data-state="idle"] .nb-ai-agent-neon__content::after{opacity:.018}
  .nb-ai-agent-neon[data-state="running"]:target::before,
  .nb-ai-agent-neon[data-state="running"][data-force-motion="true"]::before{animation:nb-neon-breathe 4s ease-in-out infinite}
  .nb-ai-agent-neon[data-state="running"]:target::after,
  .nb-ai-agent-neon[data-state="running"][data-force-motion="true"]::after{opacity:1;transform:translateX(-110%);animation:nb-neon-flow 10s linear infinite}
}

/* Workbench sidebar variant: mount() decorates the host itself, so keep the
   compact title-row rules on the host node rather than an imagined child. */
#councilSection .agent-neon-host.nb-ai-agent-neon{position:relative;z-index:1;left:auto;top:auto;width:100%;height:60px;min-height:60px;aspect-ratio:auto;overflow:hidden;pointer-events:none;padding:8px 16px;border:0;border-radius:16px;background-color:transparent;background-image:none;box-shadow:none;filter:none;animation:none}
#councilSection.neon-theme-active .section-heading{display:none}
#councilSection .agent-neon-host.nb-ai-agent-neon{pointer-events:auto;cursor:pointer}
#councilSection .agent-neon-host.nb-ai-agent-neon[data-state="idle"]{animation:nb-idle-shell-breathe 8s ease-in-out infinite}
#councilSection .agent-neon-host.hidden{display:none!important}
#councilSection .agent-neon-host.nb-ai-agent-neon::before{inset:2px;border-width:2px;border-radius:12px;filter:drop-shadow(0 0 1px rgba(124,245,255,.18)) drop-shadow(0 0 2px rgba(194,107,255,.1));animation:nb-idle-border-breathe 8s ease-in-out .12s infinite}
#councilSection .agent-neon-host.nb-ai-agent-neon[data-state="idle"]::before{animation:nb-idle-border-breathe 8s ease-in-out .12s infinite}
#councilSection .agent-neon-host.nb-ai-agent-neon::after{inset:5px;border-radius:9px}
#councilSection .agent-neon-host.nb-ai-agent-neon::after{background:transparent;opacity:0;box-shadow:none;filter:none}
#councilSection .agent-neon-host .nb-ai-agent-neon__content{min-width:0;width:100%;height:100%;padding:0 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}
#councilSection .agent-neon-host .nb-ai-agent-neon__mark{display:none}
#councilSection .agent-neon-host .nb-ai-agent-neon__content::before{display:block;inset:-8px -22px;opacity:.035;background:radial-gradient(ellipse at 50% 50%,rgba(196,124,255,.2) 0 16%,rgba(85,163,255,.08) 38%,transparent 72%),repeating-linear-gradient(102deg,transparent 0 12px,rgba(255,255,255,.045) 13px 14px,transparent 15px 28px);animation:nb-idle-energy-breathe 8s ease-in-out infinite}
#councilSection .agent-neon-host .nb-ai-agent-neon__content::after{display:block;inset:-4px -28px;opacity:.018;background-image:radial-gradient(circle,rgba(240,254,255,.76) 0 1px,transparent 1.6px),radial-gradient(circle,rgba(210,186,255,.52) 0 .9px,transparent 1.5px);background-size:10px 10px,13px 13px;animation:nb-idle-stars-breathe 8s ease-in-out .12s infinite}
#councilSection .agent-neon-host .nb-ai-agent-neon__name{position:relative;z-index:2;display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:Arial,"Segoe UI",sans-serif;font-size:clamp(18px,3vw,26px);line-height:1.1;font-weight:700;letter-spacing:.01em;color:#f5fbff;background:transparent;-webkit-text-fill-color:#f5fbff;font-synthesis:none;text-rendering:optimizeLegibility;text-shadow:0 0 2px rgba(255,255,255,.98),0 0 6px rgba(92,194,255,.95),0 0 13px rgba(92,98,255,.72);opacity:1;animation:none}
#councilSection .agent-neon-host .nb-ai-agent-neon__brand{display:block;margin-top:0;font-size:8px;line-height:1;letter-spacing:.2em;font-weight:600;white-space:nowrap;color:#f7fbff;text-shadow:0 0 3px rgba(176,220,255,.8);opacity:1;animation:none}
/* The sidebar banner is the requested live status indicator. Keep its
   motion enabled even when the browser advertises reduced motion; otherwise
   the user-visible from-hidden-to-visible effect disappears entirely. */

