/* PRISM Phase 2AQ — flowing red neon on the existing, data-driven workflow.
   Decorative only. Completion and current stage remain determined by dashboard.js.
   Selectors intentionally scope the effect to Glass; Classic remains unchanged. */
html.prismThemeGlass #app #homePage .prismWorkflowTrack {
  isolation:isolate;
  --aq-red:#ff354b;
}
/* The unvisited part of the pipeline stays dark and neutral. */
html.prismThemeGlass #app #homePage .prismWorkflowTrack::before {
  height:4px;
  background:linear-gradient(90deg,rgba(150,169,206,.53),rgba(107,130,173,.31))!important;
  box-shadow:0 0 7px rgba(163,183,225,.18)!important;
}
/* The actual progress interval, defined by the official selected PR stage.
   Three layers: streaming SVG waves, traveling hot-white pulse, red beam. */
/* Hide the legacy (cyan/gradient) completed-path stripe only in Glass. */
html.prismThemeGlass #app #homePage .prismWorkflowTrack::after {
  opacity:0!important;box-shadow:none!important;
}
/* The visual-only child is separate from legacy ::after which has an important
   background shorthand. This keeps the red wave animation reliable in browsers. */
.prismWorkflowFlow{display:none;}
html.prismThemeGlass #app #homePage .prismWorkflowFlow{
  display:block;
  position:absolute;z-index:0;
  left:56px;top:0;
  width:max(0px,calc(var(--progress,0%) - 56px));
  max-width:calc(100% - 112px);
  height:46px;
  background-image:
    url('prism2aq-red-energy.svg'),
    radial-gradient(ellipse 28px 5px at center,rgba(255,251,244,.87) 0%,rgba(255,110,117,.75) 28%,rgba(255,37,58,0) 80%),
    linear-gradient(to bottom,transparent calc(50% - 1px),#ff4b5c calc(50% - 1px),#ffe7ed 50%,#ff1639 calc(50% + 1px),transparent calc(50% + 2px));
  background-size:240px 46px,210px 46px,100% 100%;
  background-repeat:repeat-x,repeat-x,no-repeat;
  background-position:0 50%,0 50%,center;
  filter:drop-shadow(0 0 2px #ff8a8e) drop-shadow(0 0 6px #ff123e) drop-shadow(0 0 11px rgba(239,13,49,.51));
  pointer-events:none;
  will-change:background-position;
  animation:prism2aqRedCurrent 3.2s linear infinite;
  transition:width .52s cubic-bezier(.2,.8,.2,1);
}
/* Preserve center of line at 23px, matching the original 21px + 4px track. */
@keyframes prism2aqRedCurrent {
  from { background-position:0 50%,-210px 50%,center; }
  to   { background-position:240px 50%,210px 50%,center; }
}
/* Completed spheres remain unmistakably green inside; the chrome rim glows red. */
html.prismThemeGlass #app #homePage .prismWorkflowStep.complete .prismWorkflowCircle{
 border:2px solid #ffe9e8!important;
 box-shadow:inset 0 2px 3px #ffffffdb,inset 0 -5px 8px #003b55a1,0 0 0 2px rgba(255,35,62,.95),0 0 12px 3px rgba(255,34,65,.82),0 0 25px 5px rgba(255,22,55,.38)!important;
 animation:prism2aqNodeBreathe 3s ease-in-out infinite;
}
/* Blue current-stage center, intense red halo; distinct from completed stages. */
html.prismThemeGlass #app #homePage .prismWorkflowStep.current .prismWorkflowCircle{
 border:2px solid #fff5f5!important;
 box-shadow:inset 0 2px 3px #ffffffcf,inset 0 -6px 8px #061959aa,0 0 0 3px rgba(255,30,58,.96),0 0 16px 5px rgba(255,30,62,.9),0 0 31px 10px rgba(255,25,60,.45)!important;
 animation:prism2aqActiveBreathe 2.4s ease-in-out infinite;
}
@keyframes prism2aqNodeBreathe{
 0%,100%{filter:drop-shadow(0 0 1px rgba(255,65,83,.15));}
  50%{filter:drop-shadow(0 0 6px rgba(255,42,70,.74));}
}
@keyframes prism2aqActiveBreathe{
 0%,100%{filter:drop-shadow(0 0 2px rgba(255,35,65,.4));}
  50%{filter:drop-shadow(0 0 10px rgba(255,38,70,.95));}
}
/* Keep workflow labels above the decorative SVG; clicks remain real buttons. */
html.prismThemeGlass #app #homePage .prismWorkflowStep{z-index:1;}
html.prismThemeGlass #app #homePage .prismWorkflowStep:focus-visible{
 outline:2px solid #fff!important;outline-offset:3px!important;
}
/* Motion accessibility and energy-saving mode. Keep static red glass, no movement. */
@media (prefers-reduced-motion:reduce) {
 html.prismThemeGlass #app #homePage .prismWorkflowFlow,
 html.prismThemeGlass #app #homePage .prismWorkflowStep.complete .prismWorkflowCircle,
 html.prismThemeGlass #app #homePage .prismWorkflowStep.current .prismWorkflowCircle{
   animation:none!important;transition:none!important;will-change:auto!important;
 }
}
