::ng-deep :root {
  --background-element-color: rgba(0, 0, 0, 0.1);
  --selection-area-color: rgba(100, 108, 255, 0.14);
  --disabled-color: #e2e2e2;
  --node-background-color: #ffffff;
  --node-background-color-inverse: #000000;
  --node-border-radius: 8px;
  --node-border-color: rgba(60, 60, 67, 0.36);
  --node-selected-border-color: #3451b2;
  --node-color: rgba(60, 60, 67, 0.78);
  --node-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --connection-color: rgba(60, 60, 67, 0.78);
  --snap-connection-color: rgba(60, 60, 67, 0.38);
  --connection-gradient-1: #b8272c;
  --connection-gradient-2: #30a46c;
  --outlet-color: #3451b2;
  --input-output-color: rgba(60, 60, 67, 0.78);
  --minimap-background-color: #ffffff;
  --minimap-node-color: rgba(60, 60, 67);
  --minimap-node-selected-color: #3451b2;
  --minimap-view-color: rgba(100, 108, 255, 0.14);
  &.dark {
    --background-element-color: rgba(255, 255, 255, 0.1);
    --selection-area-color: rgba(100, 108, 255, 0.16);
    --disabled-color: #2c2c2e;
    --node-background-color: #000000;
    --node-background-color-inverse: #ffffff;
    --node-border-radius: 8px;
    --node-border-color: rgba(235, 235, 245, 0.38);
    --node-selected-border-color: #a8b1ff;
    --node-color: rgba(235, 235, 245, 0.6);
    --node-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --connection-color: rgba(235, 235, 245, 0.6);
    --snap-connection-color: rgba(235, 235, 245, 0.2);
    --connection-gradient-1: #f66f81;
    --connection-gradient-2: #298459;
    --outlet-color: #a8b1ff;
    --input-output-color: rgba(235, 235, 245, 0.6);
    --minimap-background-color: #1b1b1f;
    --minimap-node-color: rgba(255, 255, 245, 0.86);
    --minimap-node-selected-color: #a8b1ff;
    --minimap-view-color: rgba(100, 108, 255, 0.16);
  }
  --form-field-text-color: var(--node-color);
  --form-field-background: var(--minimap-view-color);
  --form-field-panel-shadow: var(--shadow-4);
  --form-field-panel-background: var(--node-background-color);
  --form-field-active-color: var(--minimap-node-selected-color);
}
@mixin connection {
  .f-connection {
    .f-connection-drag-handle {
      fill: transparent;
    }
    .f-connection-selection {
      fill: none;
    }
    .f-connection-path {
      fill: none;
      stroke: var(--connection-color);
      stroke-width: 2;
    }
    .f-connection-text, .f-connection-center {
      fill: var(--connection-color);
      color: var(--connection-color);
    }
    &.f-snap-connection {
      .f-connection-path {
        stroke: var(--snap-connection-color);
      }
    }
  }
}
@mixin background {
  .f-background {
    line {
      stroke: rgba(0, 0, 0, 0.6);
    }
  }
}
@mixin line-alignment {
  .f-line-alignment {
    .f-line {
      background-color: var(--connection-color);
    }
  }
}
@mixin minimap {
  .f-minimap {
    background-color: var(--minimap-background-color);
    bottom: 16px;
    right: 16px;
    width: 120px;
    height: 120px;
    .f-minimap-node {
      fill: var(--minimap-node-color);
      &.f-selected {
        fill: var(--minimap-node-selected-color);
      }
    }
    .f-minimap-view {
      fill: var(--minimap-view-color)
    }
  }
}
@mixin node {
  width: 120px;
  padding: 24px;
  color: var(--node-color);
  text-align: center;
  background: var(--node-background-color);
  border-radius: var(--node-border-radius);
  border: 0.2px solid var(--node-border-color);
  cursor: move;
  &:active {
    box-shadow: var(--node-shadow);
  }
}
@mixin connectors {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 0.2px solid var(--node-border-color);
  background-color: var(--node-background-color);
  &.left {
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
  }
  &.right {
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
  }
  &.top {
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
  }
  &.top-left {
    top: -8px;
    left: -8px;
  }
  &.top-right {
    top: -8px;
    right: -8px;
  }
  &.bottom {
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
  }
  &.bottom-left {
    bottom: -8px;
    left: -8px;
  }
  &.bottom-right {
    bottom: -8px;
    right: -8px;
  }
}
@mixin connector {
  .f-node-input, .f-node-output {
    &:not(.f-node) {
      @include connectors;
      &.f-node-output-not-connectable, &.f-node-input-not-connectable {
        background-color: var(--disabled-color);
      }
    }
  }
  .f-node-input {
    &:not(.f-node) {
      border-radius: 4px;
    }
  }
}
@mixin toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  position: absolute;
  right: 16px;
  top: 16px;
  button {
    font-weight: 500;
    border: none;
    border-radius: 2px;
    padding: 4px 8px;
    line-height: normal;
  }
}