.graph-projection{display:inline-flex;flex:none;gap:2px;padding:3px;border:1px solid var(--line);border-radius:7px;background:var(--surface)}.graph-projection button.secondary{padding:6px 12px;font-size:12px;border:0;background:transparent;color:var(--muted);border-radius:4px}.graph-projection button[aria-pressed=true]{background:var(--soft);color:var(--ink);box-shadow:0 1px 2px #00000008}.graph-heading #graph-filter{margin-left:auto}.graph-heading #graph-query{width:210px}
:is(#graph-stage,#workflow-map-stage).graph2d-surface{background-color:var(--paper);background-image:radial-gradient(circle,var(--graph-dot,var(--line)) .85px,transparent .85px);background-size:24px 24px;cursor:grab;isolation:isolate}:is(#graph-stage,#workflow-map-stage).graph2d-surface:active{cursor:grabbing}.graph2d-nodes{position:absolute;inset:0;pointer-events:none;overflow:hidden}.graph2d-card{--node-tone:#75828c;position:absolute;left:0;top:0;display:flex;align-items:center;gap:11px;width:248px;height:72px;padding:11px 13px;text-align:left;transform-origin:0 0;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);box-shadow:0 2px 5px #00000008;cursor:grab;pointer-events:auto;transition:opacity .18s ease,filter .18s ease,border-color .16s ease,box-shadow .16s ease;user-select:none;will-change:transform}.graph2d-card[hidden]{display:none}.graph2d-card:hover{background:var(--surface);color:var(--ink)}.graph2d-card[data-kind=goal]{--node-tone:#9580b8}.graph2d-card[data-kind=epic]{--node-tone:#bf9462}.graph2d-card[data-kind=task]{--node-tone:#7199bb}.graph2d-card[data-status=Doing]{--node-tone:var(--graph-flow,#67a560)}.graph2d-card[data-status=Done]{--node-tone:var(--graph-done,#79a087)}.graph2d-card[data-status=Cancelled]{--node-tone:#929a96}.graph2d-card.context{border-style:dashed}.graph2d-card.selected,.graph2d-card.graph2d-hovered{border-color:var(--node-tone);box-shadow:0 0 0 1px color-mix(in srgb,var(--node-tone) 35%,transparent),0 3px 8px #0000000b}.graph2d-card:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.graph2d-card.graph2d-muted{opacity:.42;filter:saturate(.35)}.graph2d-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:7px;color:var(--node-tone);background:color-mix(in srgb,var(--node-tone) 13%,var(--surface))}.graph2d-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linejoin:round;stroke-linecap:round}.graph2d-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}.graph2d-copy strong{font-family:inherit;font-size:13px;font-weight:600;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.graph2d-meta{font-family:inherit;font-size:10px;font-weight:400;line-height:1.2;white-space:nowrap;color:var(--muted);text-transform:capitalize}.graph2d-status{display:grid;place-items:center;flex:none;color:var(--node-tone);width:15px;height:15px;font:600 15px/1 inherit}.graph2d-card:active{cursor:grabbing}
@media(max-width:850px){.graph-heading{gap:12px}.graph-heading #graph-filter{margin-left:0}.graph-heading #graph-query{width:auto;min-width:120px}.graph-projection button.secondary{min-height:34px}}
@media(prefers-reduced-motion:reduce){.graph2d-card{transition:none}}
.graph2d-card[data-kind=agent]{--node-tone:#779f85}.graph2d-card[data-kind=gate]{--node-tone:#a68cbe}.graph2d-card[data-kind=human]{--node-tone:#759cb5}.graph2d-edge-label{position:absolute;left:0;top:0;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 5px;font:10px/1.3 "Avenir Next","Segoe UI",sans-serif;color:var(--muted);background:var(--paper);border-radius:3px;transition:opacity .18s ease}.graph2d-edge-label.graph2d-muted{opacity:.18}.workflow-presentation{margin-left:auto}.workflow-map-toolbar{display:flex;gap:7px;align-items:center;margin:12px 0;flex-wrap:wrap}.workflow-map-toolbar button{font-size:12px;padding:6px 10px}.workflow-map-toolbar span{font-size:11px;color:var(--muted);margin-left:auto}.workflow-map-workspace{display:grid;grid-template-columns:minmax(0,1fr) 280px;min-height:480px;height:calc(100vh - var(--header-offset) - 270px);border:1px solid var(--line);border-radius:8px;overflow:hidden}.workflow-map-workspace #workflow-map-stage{position:relative;min-width:0;overflow:hidden}.workflow-map-workspace canvas{display:block;width:100%;height:100%;touch-action:none}.workflow-map-workspace .graph-inspector{font-size:12px}.workflow-map-workspace .graph-inspector h3{font-size:17px}.workflow-map-workspace [hidden],.workflow-view .flow-canvas-wrap[hidden],.workflow-view .flow-lists[hidden]{display:none}.workflow-routes-scroll{overflow:auto}.workflow-routes-scroll table{font-size:10px;border-collapse:collapse;width:100%;text-align:left}.workflow-routes-scroll th,.workflow-routes-scroll td{padding:7px 5px;border-bottom:1px solid var(--line);vertical-align:top}.workflow-routes-scroll th{font-size:9px;color:var(--muted);font-weight:500}.workflow-routes-scroll td{overflow-wrap:anywhere;min-width:50px}@media(max-width:850px){.workflow-map-workspace{display:block;height:auto}.workflow-map-workspace #workflow-map-stage{height:430px}.workflow-map-workspace .graph-inspector{max-height:320px;border-left:0;border-top:1px solid var(--line)}.workflow-presentation{margin:0}}
