/* ---------- Workflow bubble diagram ---------- */

.workflow-scroll {
  width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.workflow-svg {
  width: 100%;
  max-width: 1700px;
  height: auto;
  min-width: 920px;
}

.workflow-connector {
  fill: none;
  stroke: #262626;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.82;
  transition: opacity 0.2s ease, stroke-width 0.2s ease;
}

.workflow-connector.is-hover {
  stroke-width: 4.5;
  opacity: 1;
}

.workflow-connector-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 22;
  cursor: pointer;
}

.workflow-loop {
  fill: none;
  stroke: #a4503f;
  stroke-width: 2.25;
  stroke-dasharray: 7 6;
  stroke-linecap: round;
  opacity: 0.75;
  transition: opacity 0.2s ease, stroke-width 0.2s ease;
}

.workflow-loop.is-hover {
  stroke-width: 3.5;
  opacity: 1;
}

.workflow-loop-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 22;
  cursor: pointer;
}

.workflow-node-main,
.workflow-node-sub {
  cursor: pointer;
}

.workflow-node-main circle {
  transition: filter 0.2s ease;
}

.workflow-node-main:hover circle {
  filter: brightness(1.06);
}

.workflow-node-sub circle {
  transition: fill 0.2s ease, stroke-width 0.2s ease;
}

.workflow-node-sub:hover circle {
  fill: #ffffff;
  stroke-width: 2.5;
}

.workflow-node-main text,
.workflow-node-sub text {
  font-family: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  user-select: none;
}

/* ---------- Workflow hover tooltip ---------- */

.wf-tooltip {
  position: fixed;
  z-index: 90;
  max-width: 220px;
  background: #1c1c1c;
  color: #ffffff;
  font-family: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  line-height: 1.55;
  padding: 10px 13px;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.wf-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.wf-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #1c1c1c transparent transparent transparent;
}
