  /* ───── QUERY PIPELINE DIAGRAM ───── */
  .pipeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  /* Central vertical spine — axon */
  .pipeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
      var(--gold) 0%, rgba(184,150,62,0.4) 30%,
      var(--gold) 50%, rgba(184,150,62,0.4) 70%,
      var(--gold) 100%);
    transform: translateX(-1px);
    z-index: 0;
  }

  .pipe-stage {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 64px 1fr;
    align-items: center;
    min-height: 80px;
  }

  .pipe-stage + .pipe-stage {
    margin-top: 0;
  }

  /* ── Central node — neuron soma ── */
  .pipe-node {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--slate);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    z-index: 2;
    position: relative;
    box-shadow: 0 0 20px rgba(184,150,62,0.15), 0 0 40px rgba(184,150,62,0.05);
    transition: box-shadow 0.3s, transform 0.3s;
  }

  /* Dendrite lines — left */
  .pipe-node::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    width: 28px;
    height: 1px;
    background: linear-gradient(270deg, var(--gold), transparent);
  }

  /* Dendrite lines — right */
  .pipe-node::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
  }

  .pipe-node:hover {
    box-shadow: 0 0 30px rgba(184,150,62,0.35), 0 0 60px rgba(184,150,62,0.1);
    transform: scale(1.08);
  }

  .pipe-node svg {
    width: 24px;
    height: 24px;
  }

  .pipe-node.large {
    width: 64px;
    height: 64px;
    border-width: 3px;
  }

  .pipe-node.large svg {
    width: 30px;
    height: 30px;
  }

  /* DB cylinder shape override */
  .pipe-node.cylinder {
    border-radius: 8px;
    width: 52px;
    height: 60px;
    background: linear-gradient(180deg, var(--slate) 0%, #1a2028 50%, var(--slate) 100%);
    border-top: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
    border-left: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
  }

  .pipe-node.cylinder.large {
    width: 60px;
    height: 68px;
  }

  /* Content panels left/right */
  .pipe-left, .pipe-right {
    padding: 20px 28px;
  }

  .pipe-left {
    text-align: right;
  }

  .pipe-label {
    font-family: 'Goldman', 'IBM Plex Serif', serif;
    font-size: 9px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
  }

  .pipe-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
  }

  .pipe-desc {
    font-family: 'IBM Plex Serif', serif;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.6;
  }

  .pipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
  }

  .pipe-left .pipe-tags {
    justify-content: flex-end;
  }

  .pipe-tag {
    font-family: 'Goldman', 'IBM Plex Serif', serif;
    font-size: 9px;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border: 1px solid var(--divider);
    color: var(--muted);
    text-transform: uppercase;
    background: var(--slate-mid);
    transition: border-color 0.2s, color 0.2s;
  }

  .pipe-tag:hover {
    border-color: var(--gold);
    color: var(--ink);
  }

  .pipe-tag.warn {
    border-color: var(--rust);
    color: var(--rust);
    background: rgba(139,58,42,0.05);
  }

  .pipe-tag.accent {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(184,150,62,0.06);
  }

  /* ── Stage spacing (arrows removed — beam shows flow) ── */
  .pipe-stage + .pipe-stage,
  .pipe-stage + .pipe-security-stack,
  .pipe-security-stack + .pipe-stage,
  .pipe-separator + .pipe-stage { margin-top: 12px; }
