
#project-page.wf-page {
  container-type: inline-size;
}

.wf-view-switch[hidden],
.wf-canvas-shell[hidden],
.wf-overview[hidden],
.wf-clear-trace[hidden] {
  display: none;
}
.wf-stage-heading > .wf-search {
  margin-left: auto;
}

.wf-overview {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: var(--ds-space-5) var(--ds-page-pad) var(--ds-page-pad);
  scrollbar-width: thin;
  scrollbar-color: var(--ds-border-strong) transparent;
  background: transparent;
}
.wf-overview:focus-visible {
  outline: none;
}
.wf-overview-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-5);
  margin-bottom: var(--ds-space-4);
}
.wf-overview-intro h3,
.wf-support-heading h3 {
  font-size: var(--ds-size-18);
  line-height: var(--ds-leading-heading);
  font-weight: var(--ds-weight-medium);
  color: var(--ds-text-strong);
}
.wf-overview-intro p,
.wf-support-heading p {
  font-size: var(--ds-size-14);
  line-height: var(--ds-leading-body);
  color: var(--ds-text-muted);
  margin-top: var(--ds-space-1);
}

.wf-delivery-stages {
  display: grid;
  grid-template-columns: repeat(var(--wf-stage-columns, 4), minmax(0, 1fr));
  gap: var(--ds-space-4);
  align-items: start;
}
.wf-overview-stage {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--ds-card-radius);
  background: var(--ds-card-bg);
  box-shadow: var(--ds-card-shadow);
}
.wf-overview-stage > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-2);
  min-height: calc(var(--ds-control-md) + 2 * var(--ds-space-3));
  padding: var(--ds-space-2) var(--ds-space-2) var(--ds-space-2) var(--ds-space-4);
  border-bottom: 1px solid var(--ds-border);
  background: transparent;
}
.wf-overview-stage > header > div {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  min-width: 0;
}
#project-page .wf-overview-stage h3 {
  overflow: hidden;
  font-size: var(--ds-size-16);
  line-height: var(--ds-leading-body);
  font-weight: var(--ds-weight-medium);
  color: var(--ds-text-strong);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.wf-stage-number > .icon {
  width: var(--ds-icon-xs);
  height: var(--ds-icon-xs);
}
.wf-stage-open {   
  display: grid;
  place-items: center;
  flex: none;
  width: var(--ds-control-md);
  height: var(--ds-control-md);
  border-radius: var(--ds-radius-md);
  color: var(--ds-text-muted);
  transition: background-color var(--ds-duration-hover) ease, color var(--ds-duration-hover) ease;
}
.wf-stage-open:is(:hover, :focus-visible) {
  outline: none;
  background: var(--ds-hover);
  color: var(--ds-text-strong);
}
.wf-stage-open:active {
  background: var(--ds-selected);
}
.wf-stage-open > .icon {
  width: var(--ds-icon-sm);
  height: var(--ds-icon-sm);
}

.wf-overview-node {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  width: 100%;
  min-height: 0;
  padding: var(--ds-space-3) var(--ds-space-4);
  text-align: left;
  background: transparent;
  color: var(--ds-text);
  transition: background-color var(--ds-duration-hover) ease;
  border-radius: 0;
}
.wf-overview-node + .wf-overview-node {
  border-top: 1px solid var(--ds-border);
}
.wf-overview-node > span:first-child {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--ds-control-sm);
  height: var(--ds-control-sm);
  border-radius: var(--ds-radius-md);
  background: color-mix(in srgb, currentColor 10%, transparent);
  box-shadow: inset 0 0 0 0.5px color-mix(in srgb, currentColor 10%, transparent);
}
.wf-overview-node > span:first-child > :is(.icon, img, svg) {
  width: var(--ds-icon-sm);
  height: var(--ds-icon-sm);
}
.wf-overview-node > .icon {
  width: var(--ds-icon-xs);
  height: var(--ds-icon-xs);
  flex: none;
  color: var(--ds-text-faint);
}
.wf-overview-node > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
#project-page .wf-overview-node strong {
  display: block;
  font-size: var(--ds-size-14);
  line-height: var(--ds-leading-body);
  font-weight: var(--ds-weight-medium);
  color: var(--ds-text-strong);
  overflow-wrap: break-word;
}
.wf-overview-node small {
  display: block;
  font-size: var(--ds-size-13);
  line-height: var(--ds-leading-body);
  color: var(--ds-text-muted);
  margin-top: 2px;
  text-wrap: pretty;
}
.wf-overview-node:hover {
  background-image: var(--ds-hover-wash);
}
.wf-overview-node:active {
  background-image: var(--ds-selected-wash);
}
.wf-overview-node:focus-visible {
  outline: none;
  background-image: var(--ds-hover-wash);
}
.wf-overview-node.is-selected {
  background: var(--ds-selected);
}
.wf-overview-subgroup h4 {
  margin: 0;
  font-size: var(--type-support);
  line-height: var(--ds-leading-body);
  color: var(--ds-text-muted);
  font-weight: var(--ds-weight-regular);
  padding: 12px 12px 0;
}
.wf-overview-subgroup + .wf-overview-subgroup {
  border-top: 1px solid var(--ds-border);
}
.wf-overview-subgroup > .wf-overview-node {
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.wf-return-path {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 12px 0;
  color: var(--ds-text-muted);
  border-bottom: 1px solid var(--ds-border);
}
.wf-return-path > span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--type-support);
  line-height: var(--ds-leading-body);
}
.wf-return-path .icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--ds-accent);
}
.wf-return-path button {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-size: var(--type-support);
  line-height: var(--ds-leading-body);
  color: var(--ds-accent);
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 6px;
}
.wf-return-path button:hover {
  background: var(--ds-hover);
}
.wf-return-path button:active {
  background: var(--ds-selected);
}
.wf-support-heading {
  margin: var(--ds-space-5) 0 var(--ds-space-4);
}
.wf-support-stages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ds-space-4);
}
.wf-support-stages > .wf-overview-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}
.wf-support-stages > .wf-overview-stage > header {
  grid-column: 1/-1;
}
.wf-support-stages .wf-overview-node {
  border-top: 0;
  border-bottom: 1px solid var(--ds-border);
}
.wf-overview-note {
  display: flex;
  gap: var(--ds-space-2);
  align-items: flex-start;
  font-size: var(--ds-size-14);
  line-height: var(--ds-leading-body);
  color: var(--ds-text-muted);
  margin-top: var(--ds-space-5);
  max-width: 88ch;
}
.wf-overview-note > .icon {
  width: var(--ds-icon-sm);
  height: var(--ds-icon-sm);
  flex: none;
  margin-top: 2px;
  color: var(--ds-text-faint);
}
.wf-overview-mode .wf-zoom,
.wf-overview-mode .wf-mobile-hint {
  display: none;
}
.wf-overview-mode .wf-pan-hint {
  display: none;
}

#wf-view-count {
  display: none;
}
.wf-overview-mode .wf-footer:not(:has(.wf-clear-trace:not([hidden]))) {
  display: none;
}
.wf-clear-trace {
  font-size: var(--type-support);
  line-height: var(--ds-leading-body);
  padding: 4px 8px;
  border: 1px solid var(--line2);
  border-radius: 6px;
  color: var(--ds-accent);
  margin-left: auto;
}
.wf-clear-trace:hover {
  background: var(--ds-hover);
}
.wf-clear-trace:active {
  background: var(--ds-selected);
}
.wf-path-focus .wf-connections > path:not(.wf-edge-selected) {
  opacity: 0.12;
}
.wf-path-focus .wf-node:not(.is-related) {
  background: var(--ds-surface);
}
.wf-path-focus .wf-node:not(.is-related) strong {
  color: var(--ds-text-muted);
}
.wf-path-focus .wf-node:not(.is-related) .wf-node-description {
  color: var(--ds-text-muted);
}
.wf-path-focus .wf-node.is-related:not(.is-selected) {
  box-shadow:
    var(--ds-accent) 0 0 0 1px,
    0 16px 32px -16px rgba(0, 0, 0, 0.8);
}
.wf-lane-label > .icon {
  width: 14px;
  height: 14px;
  color: var(--ds-text-muted);
}
