/* ============================================================
   n8n-flow component — Jira anomaly demo
   Used by FlowExample.jsx
   ============================================================ */
.n8n-flow {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-5);
  padding: 18px 20px 14px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-2);
}
.n8n-flow-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
}
.n8n-flow-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 4px;
  color: var(--ink);
}
.n8n-flow-meta { display: flex; align-items: center; gap: 12px; }
.n8n-flow-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  border: 1px solid;
  letter-spacing: 0.08em;
}
.n8n-flow-pill.ok {
  color: var(--signal);
  background: var(--signal-soft);
  border-color: var(--signal-line);
}
.n8n-flow-pill.ok .dot {
  width: 5px; height: 5px; border-radius: 999px; background: currentColor;
  animation: n8nPulse 2s ease-out infinite;
}
@keyframes n8nPulse {
  0%   { box-shadow: 0 0 0 0 currentColor; }
  100% { box-shadow: 0 0 0 5px transparent; }
}

.n8n-flow-canvas {
  background: var(--surface-lo);
  border: 1px solid var(--border);
  border-radius: var(--r-4);
  padding: 8px;
  overflow-x: auto;
}
.n8n-flow-canvas svg { display: block; min-width: 800px; }

.n8n-dash {
  animation: n8nDashFlow 1.6s linear infinite;
}
@keyframes n8nDashFlow {
  to { stroke-dashoffset: -24; }
}

.n8n-glow {
  animation: n8nGlow 2.4s ease-in-out infinite;
}
@keyframes n8nGlow {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

.n8n-flow-foot {
  display: flex; flex-wrap: wrap; gap: 16px;
  padding-top: 4px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}
.n8n-flow-foot .leg { display: flex; align-items: center; gap: 6px; }
.n8n-flow-foot .leg .sw {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px;
}
