.wf-hero .gk-stagerow + .marquee { margin-top: -1px; }

.wf-node {
  position: relative;
  display: flex; align-items: center; gap: 9px;
  width: 236px; padding: 9px 10px;
  border-radius: 10px; background: #fff; border: 1px solid var(--gk-line);
  transition: opacity .3s ease, border-color .3s ease;
}
.wf-node__ico {
  flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--tile, #f3f4f6); color: var(--mark, #4a4a55);
}
.wf-node__ico svg { width: 16px; height: 16px; }
.wf-node__ico--logo { background: #fff; border: 1px solid var(--gk-line); }
.wf-node__ico--logo img { display: block; width: 15px; height: 15px; object-fit: contain; }
.wf-node__ico--app img { width: 18px; height: 18px; border-radius: 4px; }
.wf-node__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-align: left; }
.wf-node__kind { font: 400 10.5px/1.1 var(--font-ui); color: var(--gk-grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-node__name { font: 500 12.5px/1.2 var(--font-ui); color: var(--ink-nav); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wf-node__mark {
  flex: none; margin-left: auto;
  display: grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  opacity: 0; transition: opacity .2s ease, background-color .2s ease;
}
.wf-node__mark svg { grid-area: 1 / 1; display: none; width: 12px; height: 12px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wf-node.is-done { border-color: #c9d1ff; }
.wf-node.is-done .wf-node__mark { opacity: 1; background: rgb(35 71 255 / .1); }
.wf-node.is-done .wf-node__ok { display: block; stroke: var(--brand); }
.wf-node.is-end .wf-node__mark { background: #e7f6ec; }
.wf-node.is-end .wf-node__ok { stroke: #15803d; }
.wf-node.is-stop { border-color: #d9dbe1; }
.wf-node.is-stop .wf-node__mark { opacity: 1; background: #eef0f3; }
.wf-node.is-stop .wf-node__ok { display: none; }
.wf-node.is-stop .wf-node__stop { display: block; stroke: #6b7280; }
.wf-node.is-fail { border-color: #f3b4b4; }
.wf-node.is-fail .wf-node__mark { opacity: 1; background: #fdecec; }
.wf-node.is-fail .wf-node__ok { display: none; }
.wf-node.is-fail .wf-node__fail { display: block; stroke: #dc2626; }

.wf-node.is-selected { border-color: var(--brand); }

.wf-pill {
  display: inline-block; padding: 3px 6px; border-radius: 5px;
  border: 1px solid; white-space: nowrap;
  font: 500 10px/1 var(--font-ui);
  transition: opacity .3s ease;
}
.wf-pill--case { color: #15803d; border-color: #c4e8d0; background: #f0faf3; }
.wf-pill--default { color: #6b7280; border-color: #e3e5ea; background: #f7f7f9; }

.wf-stage { padding: 32px; }
.wf { padding: 40px; }
.wf-app { position: relative; overflow: hidden; }

.wf-bar {
  display: flex; align-items: center; gap: 9px;
  height: 46px; padding: 0 12px;
  border-bottom: 1px solid #eef0f3;
  font: 500 12.5px/1 var(--font-ui); color: var(--ink-nav);
  white-space: nowrap;
}
.wf-bar__mark { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #0a0a0b; }
.wf-bar__mark svg { width: 9px; fill: #fff; }
.wf-bar__crumb { display: inline-flex; align-items: center; gap: 6px; margin-left: 3px; font-weight: 400; color: var(--gk-soft); }
.wf-bar__crumb em {
  padding: 3px 5px; border-radius: 4px; background: rgb(35 71 255 / .08);
  font: 600 9px/1 var(--font-ui); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--brand);
}
.wf-bar__sep { color: #c7cad1; font-weight: 400; }
.wf-bar__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wf-bar__status {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 7px; border-radius: 6px; background: #e7f6ec;
  font: 500 11px/1 var(--font-ui); color: #15803d;
}
.wf-bar__status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.wf-bar__btns { flex: none; display: flex; gap: 6px; margin-left: auto; }
.wf-bar__btns > span { padding: 7px 11px; border-radius: 7px; font: 500 12px/1 var(--font-ui); }
.wf-bar__save { background: rgb(35 71 255 / .08); color: var(--brand); }
.wf-bar__pub { background: var(--brand); color: #fff; }

.wf-body { display: grid; grid-template-columns: 44px minmax(0, 1fr) 360px; }
.wf-tools { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; border-right: 1px solid #eef0f3; }
.wf-tools span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: #6b7280; }
.wf-tools svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.wf-tools .wf-tools__add { background: var(--brand); color: #fff; }
.wf-tools .is-on { background: #eef0f4; color: var(--ink-nav); }

.wf-canvas {
  position: relative; display: grid; align-items: center;
  container-type: inline-size;
  background:
    radial-gradient(circle at 1px 1px, rgb(31 41 70 / .1) 1px, transparent 0) 0 0 / 16px 16px,
    #f7f7f9;
}
.wf-tree { display: flex; flex-direction: column; align-items: center; padding: 32px 28px 36px; }

.wf-w { position: relative; display: block; flex: none; background: #d4d7de; transition: opacity .3s ease; }
.wf-w--v { width: 1px; height: 24px; }
.wf-w--h { height: 1px; }
.wf-w i { position: absolute; background: var(--brand); transition: transform .26s linear; }
.wf-w--v i { top: 0; bottom: 0; left: -.5px; width: 2px; transform: scaleY(0); transform-origin: top; }
.wf-w--h i { left: 0; right: 0; top: -.5px; height: 2px; transform: scaleX(0); }
.wf-w.is-lit i { transform: none; }

.wf-fan { position: relative; flex: none; width: 100%; height: 68px; }
.wf-fan__stem { position: absolute; left: 50%; top: 0; height: 18px; }
.wf-fan__arm { position: absolute; top: 18px; width: calc(100% / 3); }
.wf-fan__arm--l { right: 50%; }
.wf-fan__arm--l i { transform-origin: right; }
.wf-fan__arm--r { left: 50%; }
.wf-fan__arm--r i { transform-origin: left; }
.wf-fan__drop { position: absolute; top: 18px; bottom: 0; height: auto; left: calc((var(--c) + .5) * 100% / 3); }
.wf-fan__pill { position: absolute; top: 33px; left: calc((var(--c) + .5) * 100% / 3); translate: -50% 0; }
.wf-branches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
.wf-branches .wf-node { width: auto; margin: 0 6px; }

@container (max-width: 580px) {
  .wf-branches .wf-node { flex-direction: column; gap: 6px; margin: 0 3px; padding: 9px 6px 8px; text-align: center; }
  .wf-branches .wf-node__text { align-items: center; text-align: center; max-width: 100%; }
  .wf-branches .wf-node__name { font-size: 11.5px; }
  .wf-branches .wf-node__mark { position: absolute; top: 5px; right: 5px; width: 16px; height: 16px; margin: 0; }
}
@container (max-width: 400px) {
  .wf-branches .wf-node__kind { display: none; }
}

.wf-canvas.has-run .wf-node:not(.is-path),
.wf-canvas.has-run .wf-pill:not(.is-path) { opacity: .42; }
.wf-canvas.has-run .wf-w:not(.is-path) { opacity: .55; }
.wf-canvas.is-instant * { transition: none !important; }

.wf-runs { display: flex; flex-direction: column; min-width: 0; padding-top: 16px; border-left: 1px solid #eef0f3; }
.wf-runs__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; }
.wf-runs__title { margin: 0; font: 600 14px/1 var(--font-ui); color: var(--ink-nav); }
.wf-runs__range { display: flex; gap: 1px; padding: 2px; border-radius: 7px; background: #f3f4f6; }
.wf-runs__range > * { padding: 4px 6px; border-radius: 5px; font: 500 10.5px/1 var(--font-ui); color: var(--gk-soft); }
.wf-runs__range b { background: #fff; color: var(--ink-nav); }
.wf-runs__sum {
  display: flex; gap: 14px; margin: 14px 0 0; padding: 0 16px 13px;
  border-bottom: 1px solid #eef0f3;
  font: 400 12px/1 var(--font-ui); color: var(--gk-soft);
}
.wf-runs__sum > span:not(.visually-hidden) { display: inline-flex; align-items: center; gap: 4px; }
.wf-runs__sum > span:not(.visually-hidden)::before { content: ""; width: 6px; height: 6px; margin-right: 2px; border-radius: 50%; background: #16a34a; }
.wf-runs__sum > span:nth-child(3)::before { background: #b4b8c1; }
.wf-runs__sum > span:nth-child(4)::before { background: #dc2626; }
.wf-runs__sum b { font-weight: 600; color: var(--ink-nav); font-variant-numeric: tabular-nums; }

.wf-runs__list { flex: 1; margin: 0; padding: 6px 8px; list-style: none; }
.wf-runs__list > li { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s cubic-bezier(.2, .8, .3, 1), opacity .45s ease; }
.wf-runs__list > li.is-new { grid-template-rows: 0fr; opacity: 0; }
.wf-run {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; align-items: baseline;
  min-height: 0; overflow: hidden;
  width: 100%; padding: 0 10px; border: 0; border-radius: 8px; background: none;
  font: inherit; text-align: left; cursor: pointer;
  transition: background-color .15s ease;
}
.wf-run::before, .wf-run::after { content: ""; grid-column: 1 / -1; height: 4px; }
.wf-run:hover { background: var(--gk-tint); }
.wf-run[aria-pressed="true"] { background: rgb(35 71 255 / .06); }
.wf-run:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.wf-run__name { font: 500 13px/1.25 var(--font-ui); color: var(--ink-nav); }
.wf-run__res { justify-self: end; display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1.25 var(--font-ui); color: var(--ink-nav); white-space: nowrap; }
.wf-run__res i { width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }
.wf-run__res--stop { color: var(--gk-soft); }
.wf-run__res--stop i { background: #b4b8c1; }
.wf-run__res--fail { color: #dc2626; }
.wf-run__res--fail i { background: #dc2626; }
.wf-run__res--run { color: var(--brand); }
.wf-run__res--run i { background: none; border: 1.5px solid var(--brand); width: 7px; height: 7px; }
.wf-run__meta, .wf-run__time { font: 400 11.5px/1.25 var(--font-ui); color: var(--gk-grey); }
.wf-run__time { justify-self: end; font-variant-numeric: tabular-nums; }

.wf-runs__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0; padding: 12px 16px;
  border-top: 1px solid #eef0f3;
  font: 400 11.5px/1 var(--font-ui); color: var(--gk-grey);
}
.wf-runs__live { padding: 0; border: 0; background: none; cursor: pointer; font: 500 12px/1 var(--font-ui); color: var(--brand); }
.wf-runs__live:hover { text-decoration: underline; }
.wf-runs__live[hidden] { display: none; }

.wf-ncell { display: flex; flex-direction: column; }
.wf-ncell .gk-cell__title { margin-top: 10px; }
.wf-ncell__group { margin: 20px 0 0; font: 500 11.5px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--sk-mute, #8b8f9a); }

.wf-sk .sk-frame__in { display: flex; gap: 18px; }
.wf-sk p { margin: 0; }
.wf-sk svg { display: block; }
.wf-sk__canvas { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.wf-sk--split .wf-sk__canvas { flex: none; width: 46%; padding-top: 20px; }
.wf-sk--http .wf-sk__canvas, .wf-sk--action .wf-sk__canvas { padding-top: 0; }
.wf-sk__panel {
  flex: 1; min-width: 0; align-self: flex-start;
  display: flex; flex-direction: column; gap: 8px;
  padding: 11px 11px 14px; border-radius: 10px; border: 1px solid var(--sk-edge);
}

.wf-sk__node {
  position: relative; display: flex; align-items: center; gap: 9px;
  width: 80%; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--sk-edge); background: #fff;
  font: 500 12.5px/1 var(--font-ui); color: var(--sk-ink); white-space: nowrap;
}
.wf-sk--split .wf-sk__node { width: 100%; }
.wf-sk__node.is-ghost, .wf-sk__node.is-prev { border-color: #f1f1f4; }
.wf-sk__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wf-sk__ico { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #f5f5f7; color: var(--sk-faint); }
.wf-sk__ico svg { width: 13px; height: 13px; }
.wf-sk__node.is-pick .wf-sk__ico { background: var(--sk-brand-lo); color: var(--brand); }
.wf-sk__ico--logo, .wf-sk__node.is-pick .wf-sk__ico--logo { background: #fff; border: 1px solid var(--sk-edge); }
.wf-sk__ico--logo img { display: block; width: 13px; height: 13px; border-radius: 3px; }
.wf-sk__wire { flex: none; width: 1px; height: 16px; background: #d9dce3; }

.wf-sk__fan {
  position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px;
  width: min(100%, calc(var(--n) * 31%)); padding-top: 26px;
}
.wf-sk__fan::before, .wf-sk__fan::after, .wf-sk__branch::before { content: ""; position: absolute; background: #d9dce3; }
.wf-sk__fan::before { left: 50%; top: 0; width: 1px; height: 13px; }
.wf-sk__fan::after { top: 13px; height: 1px; left: calc((100% - (var(--n) - 1) * 8px) / var(--n) / 2); right: calc((100% - (var(--n) - 1) * 8px) / var(--n) / 2); }
.wf-sk__branch { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.wf-sk__branch::before { left: 50%; top: -13px; width: 1px; height: 13px; }
.wf-sk__branch .wf-sk__wire { height: 10px; }
.wf-sk__case { padding: 3px 6px; border-radius: 5px; border: 1px solid var(--sk-edge); background: #fff; font: 500 10px/1 var(--sk-mono); color: var(--sk-mute); }
.wf-sk__ghost { display: flex; align-items: center; justify-content: center; width: 100%; height: 32px; border-radius: 8px; border: 1px solid #f1f1f4; }

.wf-sk__ph { display: flex; align-items: center; gap: 8px; padding-bottom: 9px; border-bottom: 1px solid #f3f3f5; }
.wf-sk__row { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 9px; border-radius: 8px; border: 1px solid #f1f1f4; }
.wf-sk__toggle { position: relative; flex: none; width: 24px; height: 14px; margin-left: auto; border-radius: 999px; background: #e3e5ea; }
.wf-sk__toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.wf-sk__toggle.is-on { background: var(--brand); }
.wf-sk__toggle.is-on::after { left: 12px; }
.wf-sk__cond { display: flex; gap: 4px; }
.wf-sk__cond > span {
  display: flex; align-items: center; height: 24px; padding: 0 7px; min-width: 0;
  border-radius: 6px; border: 1px solid var(--sk-edge);
  font: 400 11px/1 var(--font-ui); color: var(--sk-ink); white-space: nowrap; overflow: hidden;
}
.wf-sk__cond > span { flex: 0 1 auto; text-overflow: ellipsis; }
.wf-sk__cond > span:last-child { flex: 1 0 auto; }
.wf-sk__cond.is-bones > span { border-color: #f1f1f4; }
.wf-sk__join { align-self: flex-start; padding: 3px 6px; border-radius: 5px; background: #f3f3f5; font: 500 10px/1 var(--sk-mono); color: var(--sk-mute); }
.wf-sk__field {
  display: block; height: 28px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--sk-edge);
  font: 400 11px/26px var(--sk-mono); color: var(--sk-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wf-sk__field--m { align-self: flex-start; font-weight: 500; }
.wf-sk__map {
  display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 9px;
  border-radius: 8px; border: 1px solid #f1f1f4;
  font: 400 11px/1 var(--font-ui); color: var(--sk-ink); white-space: nowrap;
}
.wf-sk__map > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wf-sk__map > span:last-child { font-family: var(--sk-mono); }
.wf-sk__map > svg { flex: none; width: 11px; height: 11px; fill: none; stroke: #b4b8c1; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.wf-sk__map.is-bones .sk-bone { flex: none; }

@media (max-width: 1100px) {
  .wf { padding: 28px; }
  .wf-body { grid-template-columns: 44px minmax(0, 1fr) 320px; }
  .wf-nodes__cells--3 .wf-sk__node { width: 90%; }
  .wf-sk .sk-frame__in { gap: 12px; padding-inline: 14px; }
  .wf-sk--split .wf-sk__canvas { width: 45%; }
  .wf-sk--split .wf-sk__node { gap: 8px; padding: 0 9px; font-size: 12px; }
}
@media (max-width: 900px) {
  .wf-stage { padding: 20px; }
  .wf { padding: 20px; }
  .wf-nodes__cells--3 .wf-sk__node { width: min(80%, 260px); }
  .wf-sk__fan { max-width: 380px; }
}
@media (max-width: 860px) {
  .wf-body { grid-template-columns: 44px minmax(0, 1fr); }
  .wf-runs { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #eef0f3; }
  .wf-runs__list > li:nth-child(n + 5) { display: none; }
}
@media (max-width: 640px) {
  .wf-stage { padding: 14px; }
  .wf { padding: 12px; }
  .wf-tools, .wf-bar__btns, .wf-bar__crumb, .wf-bar__sep { display: none; }
  .wf-bar__mark { margin-right: 2px; }
  .wf-body { grid-template-columns: minmax(0, 1fr); }
  .wf-tree { padding: 24px 12px 28px; }
  .wf-tree > .wf-node { width: min(236px, 100%); }
  .wf-runs__head { flex-wrap: wrap; }
}
@media (max-width: 400px) {
  .wf-runs__range > :nth-child(n + 5) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wf *, .wf-runs__list > li { transition: none !important; animation: none !important; }
}
