.workflow-editor-canvas {
  --xy-background-color: transparent;
}

.workflow-editor-canvas .react-flow__node.workflow-graph-layer-group {
  z-index: 1 !important;
}

.workflow-editor-canvas .react-flow__node.workflow-graph-layer-node {
  z-index: 3 !important;
}

.workflow-editor-canvas .react-flow__nodes {
  z-index: auto !important;
}

.workflow-editor-canvas .react-flow__edges {
  z-index: 2 !important;
}

.workflow-editor-canvas .react-flow__edge.workflow-graph-layer-edge {
  z-index: 2 !important;
}

.workflow-editor-canvas .react-flow__edgelabel-renderer {
  z-index: 2 !important;
}

.workflow-editor-node,
.workflow-editor-group,
.workflow-editor-join-node {
  --workflow-editor-node-outline-color: var(--color-outline);
}

.workflow-editor-node,
.workflow-editor-group {
  border-color: var(--workflow-editor-node-outline-color);
}

.workflow-editor-node[data-kind="script"]::before,
.workflow-editor-node[data-kind="script"]::after {
  background: var(--color-primary);
  border-radius: var(--radius-s);
  bottom: 4.57px;
  content: "";
  position: absolute;
  top: 4.57px;
  width: 2px;
}

.workflow-editor-node[data-kind="script"]::before {
  left: 4.57px;
}

.workflow-editor-node[data-kind="script"]::after {
  right: 4.57px;
}

.workflow-editor-handle {
  background: var(--color-island-1);
  border: 2px solid var(--color-outline);
  height: 10px;
  pointer-events: all;
  width: 10px;
}

.workflow-editor-creation-handle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--color-on-island);
  display: flex;
  height: 18px;
  justify-content: center;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 18px;
}

.workflow-editor-creation-handle-icon {
  color: var(--color-on-island);
  display: block;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  z-index: 1;
}

.workflow-editor-target-connection-handle {
  background: transparent;
  border: 0;
  height: 100%;
  opacity: 0;
  pointer-events: all;
  width: 16px;
}

.workflow-editor-endpoint-handle {
  background: transparent;
  border: 0;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  width: 1px;
}

.workflow-editor-join-diamond {
  width: 30px;
  height: 30px;
  transform: rotate(45deg);
  border: 2px solid var(--workflow-editor-node-outline-color);
  border-radius: var(--radius-s);
  background: color-mix(in srgb, var(--workflow-editor-node-outline-color) 18%, var(--color-island-3));
}

.workflow-editor-node-error .workflow-editor-handle {
  border-color: var(--workflow-editor-node-outline-color);
}

.workflow-editor-node-error {
  --workflow-editor-node-outline-color: var(--color-error);
}

.workflow-editor-node-error .workflow-editor-join-diamond {
  background: color-mix(in srgb, var(--workflow-editor-node-outline-color) 16%, var(--color-island-3));
}

.workflow-editor-node-selected {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 32%, transparent);
}

.workflow-editor-group-drop-active {
  border-color: var(--color-primary);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--color-primary) 28%, transparent),
    var(--shadow-island-1);
}

.workflow-editor-edge-label {
  pointer-events: all;
}

.workflow-editor-output-field {
  animation: workflow-editor-output-field-enter var(--motion-normal) ease-out;
}

@keyframes workflow-editor-output-field-enter {
  from {
    opacity: 0;
    transform: translateY(calc(-1 * var(--space-2)));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
