.resource-binding {
  padding: 8px 0;
  border-bottom: 1px solid #dce4ef;
  display: grid;
  gap: 5px;
}
.resource-binding small {
  color: #687a92;
}
.resource-binding label:has(input[type='checkbox']) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.resource-binding input[type='checkbox'] {
  width: auto;
}
.resource-policy {
  border: 1px solid #d3ddec;
  border-radius: 8px;
  padding: 14px;
  margin: 12px 0;
  display: grid;
  gap: 8px;
}
.resource-policy legend {
  font-weight: 600;
}
.automatic-run-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: #edf4fb;
  border-bottom: 1px solid #cbd9ea;
  font-size: 12px;
}
.automatic-run-status[hidden] {
  display: none;
}
.automatic-run-status .button {
  padding: 5px 8px;
  font-size: 11px;
}
.automatic-run-status small {
  color: #885d13;
}
.run-node-count {
  position: absolute;
  right: 8px;
  top: -12px;
  z-index: 3;
  background: #edf3fa;
  border: 1px solid #b9cbe3;
  color: #25446d;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 10px;
  white-space: nowrap;
  pointer-events: none;
}
#graph-stage .graph-node.run-running {
  outline: 3px solid #4789d5;
  outline-offset: 2px;
}
#graph-stage .graph-node.run-waiting {
  outline: 2px dashed #b78935;
  outline-offset: 2px;
}
#graph-stage .graph-node.run-succeeded {
  border-color: #55977d;
}
#graph-stage .graph-node.run-failed {
  outline: 3px solid #be4d59;
  outline-offset: 2px;
}
.graph-node.run-running > .run-node-count {
  background: #dcebff;
}
.graph-node.run-failed > .run-node-count {
  background: #ffe9ed;
  color: #9f3042;
}
.resource-settings > label:has(input[type='checkbox']) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.resource-settings input[type='checkbox'] {
  width: auto;
}
.debug-node-state {
  position: absolute;
  right: 8px;
  top: -12px;
  z-index: 3;
  background: #edf3fa;
  border: 1px solid #b9cbe3;
  color: #25446d;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 10px;
  white-space: nowrap;
  pointer-events: none;
}
.loop-frame-heading > .loop-progress {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 40%;
  font-size: 10px;
  color: #35577e;
  background: #e3eaf5;
  padding: 3px 5px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: auto;
}
.graph-node > .loop-progress {
  position: absolute;
  top: -12px;
  left: 8px;
  font-size: 10px;
  color: #35577e;
  background: #edf3fa;
  border: 1px solid #b9cbe3;
  border-radius: 4px;
  padding: 2px 5px;
  pointer-events: auto;
}
.transfer-count rect {
  fill: #fff;
  stroke: #b6c9e3;
  stroke-width: 1;
}
.transfer-count text {
  fill: #264f7e;
  font:
    11px system-ui,
    sans-serif;
}
.transfer-count.available rect {
  fill: #f3f6fa;
  stroke-dasharray: 3 2;
}
.transfer-count.available text {
  fill: #64758c;
}
.data-edge.transferring {
  stroke: #3479c9;
  stroke-width: 2.5;
  stroke-dasharray: 7 4;
  animation: execution-flow 0.65s linear infinite;
}
@keyframes execution-flow {
  to {
    stroke-dashoffset: -22;
  }
}
@media (prefers-reduced-motion: reduce) {
  .data-edge.transferring {
    animation: none;
  }
}
