
#project-page.wf-page {
  display: flex;
  flex-direction: column;
  max-width: none;
  height: 100%;
  min-height: 0;
  padding: 0;
  gap: 0;
}
#project-page.wf-page[hidden] {
  display: none;
}
.main-scroll:has(#project-page.wf-page:not([hidden])) {
  overflow: hidden;
}

.wf-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ds-space-5);
  padding: var(--ds-page-pad) var(--ds-page-pad) var(--ds-space-4-5);
  flex: none;
}
.wf-heading {
  display: flex;
  gap: var(--ds-space-3);
  align-items: flex-start;
  min-width: 0;
}
.wf-heading h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--ds-size-20);
  line-height: var(--ds-leading-heading);
  font-weight: var(--ds-weight-semibold);
  letter-spacing: var(--ds-tracking-tight);
}
.wf-heading p {
  font-size: var(--type-support);
  line-height: var(--ds-leading-body);
  color: var(--muted);
  margin-top: var(--ds-space-1);
}
.wf-snapshot {   
  flex: none;
}
.wf-header-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--type-support);
  line-height: var(--ds-leading-body);
  color: var(--muted);
  white-space: nowrap;
}

.wf-page > .wf-sections {
  align-self: stretch;
  margin-inline: var(--ds-page-pad);
  max-width: calc(100% - 2 * var(--ds-page-pad));
}
.wf-sections .icon {
  width: var(--ds-icon-sm);
  height: var(--ds-icon-sm);
}

.wf-stage-heading {   
  justify-content: space-between;
  padding: var(--ds-space-4-5) var(--ds-page-pad) 0;
  font-size: var(--type-support);
  line-height: var(--ds-leading-body);
  color: var(--muted);
  flex: none;
  position: relative;
  z-index: 4;
}
.wf-search {
  position: relative;
  flex: none;
  width: 220px;
}
.wf-search-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-radius: 7px;
}
.wf-search-label:focus-within {
  border-color: var(--line2);
}
.wf-search-label > .icon {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--muted);
}
.wf-search input {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font: inherit;
  font-size: var(--type-support);
  padding: 6px 0;
}
.wf-search input::placeholder {
  color: var(--muted);
}
.wf-search-results {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 300px;
  max-height: min(360px, 50vh);
  overflow: auto;
  padding: 4px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border-strong);
  border-radius: 10px;
  box-shadow: var(--ds-shadow-overlay);
  scrollbar-width: thin;
  scrollbar-color: var(--line2) transparent;
}
.wf-search-results[hidden] {
  display: none;
}
.wf-search-results [role="option"] {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  min-height: 52px;
  cursor: pointer;
}
.wf-search-results [role="option"]:hover,
.wf-search-results [aria-selected="true"] {
  background: var(--ds-selected);
}
.wf-result-icon {
  display: flex;
  flex: none;
}
.wf-result-icon > .icon {
  width: 20px;
  height: 20px;
}
.wf-search-results [role="option"] > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.wf-search-results strong {
  display: block;
  font-size: var(--type-support);
  line-height: var(--ds-leading-body);
  font-weight: var(--ds-weight-medium);
  color: var(--text);
}
.wf-search-results small {
  display: block;
  font-size: var(--type-support);
  line-height: var(--ds-leading-body);
  color: var(--muted);
}
.wf-search-results [role="option"] > .icon {
  width: 14px;
  height: 14px;
  color: var(--faint);
}
.wf-search-empty {
  padding: 12px;
  font-size: var(--type-support);
  line-height: var(--ds-leading-body);
  color: var(--muted);
}
.wf-canvas-shell {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 260px;
  overflow: hidden;
}
.wf-canvas {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--ds-border-strong) transparent;
  background-color: var(--ds-content);
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px);
  background-size: 16px 16px;
  border-block: 1px solid var(--ds-border);
  cursor: grab;
}
.wf-canvas:focus-visible {
  outline-offset: -3px;
}
.wf-canvas.is-panning {
  cursor: grabbing;
  user-select: none;
}
#wf-world-size {
  position: relative;
  margin: 16px auto;
}
#wf-world {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
}
.wf-connections {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.wf-connections > path {
  fill: none;
  stroke: var(--ds-border-strong);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  marker-end: none;
}
.wf-connections > path.wf-edge-selected {
  stroke: var(--ds-accent);
  stroke-width: 2.5;
  stroke-dasharray: none;
}
.wf-lane-label {
  position: absolute;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 24px;
  color: var(--ds-text-strong);
  font-size: var(--ds-size-15);
  line-height: 20px;
  font-weight: var(--ds-weight-medium);
  white-space: nowrap;
  pointer-events: none;
}
.wf-lane-label > span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 var(--ds-space-1);
  border-radius: var(--ds-radius-xs);
  background: var(--ds-hover);
  box-shadow: inset 0 0 0 0.5px var(--ds-hover);
  color: rgba(255, 255, 255, 0.56);
  font-size: var(--ds-size-12);
  line-height: 12px;
  font-variant-numeric: tabular-nums;
}
.wf-lane-label strong {
  font-weight: inherit;
}
.wf-lane-label small {
  font-size: var(--type-support);
  line-height: var(--ds-leading-body);
  color: var(--ds-text-faint);
}
.wf-node-wrap {
  position: absolute;
  width: 232px;
  height: 112px;
}
.wf-chip {
  position: absolute;
  top: -20px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--ds-radius-pill);
  background: color-mix(in srgb, var(--tone) 12%, var(--ds-content));
  box-shadow: inset 0 0 0 0.5px color-mix(in srgb, var(--tone) 22%, transparent);
  color: var(--tone);
  font-size: var(--ds-size-12);
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}
.wf-chip > .icon {
  width: 12px;
  height: 12px;
}
.wf-chip-intake,
.wf-chip-plan {
  --tone: var(--ds-accent);
}
.wf-chip-build {
  --tone: var(--ds-success);
}
.wf-chip-check {
  --tone: var(--ds-cyan);
}
.wf-chip-ship {
  --tone: var(--ds-accent-purple);
}
.wf-blue {
  color: var(--blue);
}
.wf-green {
  color: var(--ds-success);
}
.wf-amber {
  color: var(--ds-warning);
}
.wf-violet {
  color: var(--ds-violet);
}
.wf-node {
  position: absolute;
  inset: 12px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: var(--ds-radius-xl);
  background: var(--ds-surface);
  box-shadow:
    var(--ds-border) 0 0 0 1px,
    0 16px 32px -16px rgba(0, 0, 0, 0.8);
  color: var(--ds-text);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.wf-node:hover,
.wf-node:focus-visible {
  outline: none;
  background-image: var(--ds-hover-wash);
  box-shadow:
    var(--ds-border-strong) 0 0 0 1px,
    0 16px 32px -16px rgba(0, 0, 0, 0.8);
}
.wf-node:active {
  background-image: var(--ds-selected-wash);
}
.wf-node.is-selected {
  box-shadow:
    var(--ds-accent) 0 0 0 1px,
    0 0 0 4px var(--ds-accent-soft),
    0 16px 32px -16px rgba(0, 0, 0, 0.8);
}
.wf-node-title {
  display: block;
  max-width: 100%;
  padding: 2px 4px 0;
}
.wf-node-title strong {
  display: block;
  overflow: hidden;
  color: var(--ds-text-strong);
  font-size: var(--ds-size-14);
  line-height: 20px;
  font-weight: var(--ds-weight-medium);
  letter-spacing: var(--ds-tracking-normal);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wf-provider-logo {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: none;
}
.wf-node-description {
  display: block;
  max-width: 100%;
  margin-top: 2px;
  padding: 0 4px;
  overflow: hidden;
  color: var(--ds-text-muted);
  font-size: var(--ds-size-13);
  line-height: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wf-node-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  margin-top: auto;
}
.wf-model {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  height: 24px;
  padding: 0 6px;
  border-radius: var(--ds-radius-md);
  background: var(--ds-hover);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.1);
  color: #a3a3b5;
  font-size: var(--ds-size-12);
  line-height: 1;
}
.wf-model > span {
  overflow: hidden;
  line-height: 24px;
  text-overflow: ellipsis;
}
.wf-model > .wf-provider-logo {
  width: 14px;
  height: 14px;
}
.wf-owner {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 4px;
  color: var(--ds-text);
  margin-left: auto;
  white-space: nowrap;
}
.wf-owner .wo-node-badge {
  font-size: var(--ds-size-12);
  line-height: 1;
}
.wf-port {
  position: absolute;
  top: 35px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(12, 13, 15, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
.wf-port::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}
.wf-port-in {
  left: -9px;
}
.wf-port-out {
  right: -9px;
}
.wf-reverse .wf-port-in {
  left: auto;
  right: -9px;
}
.wf-reverse .wf-port-out {
  right: auto;
  left: -9px;
}
.wf-node.is-selected .wf-port {
  box-shadow: inset 0 0 0 1px var(--ds-accent);
}
.wf-overview-scale .wf-chip {
  display: none;
}
.wf-overview-scale .wf-port {
  top: calc(50% - 9px);
}
.wf-overview-scale .wf-node {
  inset: 0;
  justify-content: center;
  padding: 14px;
}
.wf-overview-scale .wf-node-title {
  padding: 0;
}
.wf-overview-scale .wf-node-title strong {
  font-size: var(--ds-size-22);
  line-height: var(--ds-leading-title);
  white-space: normal;
  letter-spacing: var(--ds-tracking-tight);
}
