  /* ── Beam trace — neon signal with full gradient ── */
  .beam-trace {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 0;
    transform: translateX(-2px);
    z-index: 0;
    pointer-events: none;
    border-radius: 2px;
    will-change: height, background;
    contain: layout style;
    /* Gradient set dynamically by JS — shows full color journey */
  }

  /* Outer glow layer */
  .beam-trace::before {
    content: '';
    position: absolute;
    inset: 0 -6px;
    border-radius: 8px;
    filter: blur(8px);
    opacity: 0.4;
    background: inherit;
  }

  /* Wider ambient glow */
  .beam-trace::after {
    content: '';
    position: absolute;
    inset: 0 -16px;
    border-radius: 16px;
    filter: blur(20px);
    opacity: 0.15;
    background: inherit;
  }

  /* The glowing head of the beam */
  .beam-head {
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .beam-trace.active .beam-head {
    opacity: 1;
    animation: beam-head-pulse 1.5s ease-in-out infinite;
  }

  @keyframes beam-head-pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.3); }
  }

  /* ── Persistent node aura — stays after beam reaches ── */
  .pipe-node.aura-red {
    box-shadow:
      0 0 20px 6px rgba(255,58,58,0.3),
      0 0 50px 15px rgba(255,58,58,0.1),
      inset 0 0 12px rgba(255,58,58,0.1);
    border-color: #ff5a4a;
    transition: box-shadow 0.6s, border-color 0.6s;
  }

  .pipe-node.aura-blue {
    box-shadow:
      0 0 20px 6px rgba(0,212,255,0.35),
      0 0 50px 15px rgba(0,212,255,0.12),
      inset 0 0 12px rgba(0,212,255,0.1);
    border-color: #00d4ff;
    transition: box-shadow 0.6s, border-color 0.6s;
  }

  .pipe-node.aura-gold {
    box-shadow:
      0 0 20px 6px rgba(232,200,74,0.4),
      0 0 50px 15px rgba(232,200,74,0.12),
      inset 0 0 12px rgba(232,200,74,0.1);
    border-color: #e8c84a;
    transition: box-shadow 0.6s, border-color 0.6s;
  }

  .pipe-node.aura-green {
    box-shadow:
      0 0 20px 6px rgba(122,255,74,0.3),
      0 0 50px 15px rgba(122,255,74,0.1),
      inset 0 0 12px rgba(122,255,74,0.1);
    border-color: #7aff4a;
    transition: box-shadow 0.6s, border-color 0.6s;
  }

  /* Shield-like aura ring — pseudo-element on hit nodes */
  .pipe-node.aura-red::before,
  .pipe-node.aura-red::after,
  .pipe-node.aura-blue::before,
  .pipe-node.aura-blue::after,
  .pipe-node.aura-gold::before,
  .pipe-node.aura-gold::after,
  .pipe-node.aura-green::before,
  .pipe-node.aura-green::after {
    /* Override dendrite lines with shield ring */
  }

  /* Outer aura ring */
  .pipe-node[class*="aura-"]::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid currentColor;
    opacity: 0.25;
    animation: aura-ring-pulse 2s ease-in-out infinite;
    width: auto;
    height: auto;
    right: -8px;
    top: -8px;
    left: -8px;
    bottom: -8px;
    background: none;
  }

  .pipe-node[class*="aura-"]::after {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 1px solid currentColor;
    opacity: 0.1;
    animation: aura-ring-pulse 2s ease-in-out infinite 0.5s;
    width: auto;
    height: auto;
    right: -16px;
    top: -16px;
    left: -16px;
    bottom: -16px;
    background: none;
  }

  .pipe-node.aura-red { color: #ff5a4a; }
  .pipe-node.aura-blue { color: #00d4ff; }
  .pipe-node.aura-gold { color: #e8c84a; }
  .pipe-node.aura-green { color: #7aff4a; }

  /* Keep SVG icon color gold regardless of node color */
  .pipe-node[class*="aura-"] svg {
    color: initial;
  }

  @keyframes aura-ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.08); opacity: 0.35; }
  }

  /* Security bar glow when beam passes through */
  .pipe-security-bar.beam-passing {
    box-shadow: inset 0 0 40px rgba(255,58,58,0.12), 0 0 25px rgba(255,58,58,0.08);
    border-color: rgba(255,58,58,0.35);
    transition: box-shadow 0.4s, border-color 0.4s;
  }

  .pipe-security-bar.beam-cleared {
    box-shadow: inset 0 0 30px rgba(0,212,255,0.08), 0 0 20px rgba(0,212,255,0.06);
    border-color: rgba(0,212,255,0.25);
    transition: box-shadow 0.4s, border-color 0.4s;
  }

  /* Code block inside pipeline */
  .pipe-code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 11px;
    line-height: 1.7;
    background: var(--slate);
    color: #c8d6e5;
    padding: 16px 20px;
    margin-top: 10px;
    border: 1px solid #2a3545;
    overflow-x: auto;
    white-space: pre;
    position: relative;
  }

  .pipe-code .code-label {
    position: absolute;
    top: 6px;
    right: 10px;
    font-family: 'Goldman', sans-serif;
    font-size: 8px;
    letter-spacing: 0.2em;
    color: #4a5a6a;
    text-transform: uppercase;
  }

  .pipe-code .hl-key { color: #b8963e; }
  .pipe-code .hl-str { color: #7ec8a0; }
  .pipe-code .hl-num { color: #d4976c; }
  .pipe-code .hl-kw { color: #c47a3a; font-weight: 500; }
  .pipe-code .hl-fn { color: #9db1c8; }
  .pipe-code .hl-op { color: #8899aa; }
  .pipe-code .hl-comment { color: #4a5a6a; font-style: italic; }

  /* PII masking visual */
  .pipe-pii-example {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding: 14px 18px;
    background: rgba(139,58,42,0.04);
    border: 1px solid rgba(139,58,42,0.15);
  }

  .pii-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 11px;
  }

  .pii-raw { color: var(--muted); text-decoration: none; opacity: 1; }
  .pii-arrow { color: var(--rust); font-size: 14px; }
  .pii-masked {
    color: var(--rust);
    background: rgba(139,58,42,0.08);
    padding: 2px 8px;
    border: 1px solid rgba(139,58,42,0.2);
    font-weight: 500;
    letter-spacing: 0.05em;
  }

  /* Dashed separator line across pipeline */
  .pipe-separator {
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
  }

  .pipe-separator::before {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    top: 50%;
    border-top: 2px dashed var(--divider);
  }

  .pipe-separator span {
    position: relative;
    background: var(--paper);
    padding: 0 16px;
    font-family: 'Goldman', sans-serif;
    font-size: 8px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
  }
