flow-graph{display:block;position:relative;overflow:hidden;touch-action:none;height:var(--fg-height, 34rem);border:3px solid var(--color-border-soft);border-radius:var(--radius-md);background:var(--color-cloud);cursor:grab;-webkit-user-select:none;user-select:none}flow-graph.fg-panning{cursor:grabbing}.fg-canvas{position:absolute;left:0;top:0;transform-origin:0 0}.fg-wires{position:absolute;left:0;top:0;overflow:visible;pointer-events:none}.fg-wire{fill:none;stroke:var(--color-text-muted);stroke-width:2.5}.fg-wire.fg-refused{stroke:var(--color-coral);stroke-dasharray:7 6}.fg-wire.fg-dim{stroke:var(--color-border-soft);stroke-width:1.5}.fg-wire.fg-drop{stroke:var(--color-sun);stroke-width:7}.fg-hit{fill:none;stroke:transparent;stroke-width:16;pointer-events:stroke;cursor:pointer}.fg-end{fill:var(--color-surface);stroke:var(--color-coral);stroke-width:2.5}.fg-arrow path{fill:var(--color-text-muted)}.fg-label{font-family:var(--font-body);font-size:13px;font-weight:700;fill:var(--color-text-muted);paint-order:stroke;stroke:var(--color-cloud);stroke-width:4px;pointer-events:none}.fg-node{--fg: var(--color-plum);--fg-fill: var(--fill-plum);position:absolute;width:var(--fg-w, 15rem);background:var(--color-surface);border:3px solid var(--fg);border-radius:var(--radius-sm);box-shadow:var(--shadow-sm);font-size:.85rem;line-height:1.35;cursor:default}.fg-node.fg-selected,.fg-node.fg-focus{box-shadow:0 0 0 4px var(--fg-fill)}.fg-node.fg-dim{opacity:.35}.fg-node.fg-ghost{border-style:dashed;box-shadow:none}.fg-node.fg-ghost .fg-head{border-bottom:0}.fg-node.fg-now{background:var(--fill-sun);border-color:var(--color-sun);box-shadow:0 0 0 4px var(--color-sun)}.fg-node.fg-now .fg-head{background:var(--fill-sun)}.fg-head{display:flex;align-items:center;gap:.35rem;padding:.3rem .5rem;background:var(--fg-fill);border-bottom:2px solid var(--fg);cursor:move;touch-action:none}.fg-title{flex:1;font-family:var(--font-heading);font-weight:700;color:var(--fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fg-tag{font-size:.7rem;font-weight:700;color:var(--color-text-muted)}.fg-btn{font:inherit;font-size:.75rem;font-weight:700;line-height:1;min-width:1.6rem;height:1.6rem;padding:0 .3rem;border:2px solid var(--fg);border-radius:6px;background:var(--color-surface);color:var(--fg);cursor:pointer}.fg-btn:hover,.fg-btn[aria-pressed=true]{background:var(--fg-fill)}.fg-lines{list-style:none;margin:0;padding:.35rem .55rem;color:var(--color-text)}.fg-lines li{overflow-wrap:anywhere}.fg-lines li b{color:var(--color-text-muted);font-weight:700}.fg-body{padding:.35rem .55rem .5rem;border-top:1px dashed var(--color-border-soft)}.fg-port{position:absolute;left:50%;width:.8rem;height:.8rem;margin-left:-.4rem;border:2px solid var(--fg);border-radius:50%;background:var(--color-surface)}.fg-port.fg-in{top:-.5rem}.fg-port.fg-out{bottom:-.5rem}.fg-node.fg-small{width:auto;min-width:0;border-width:2px;border-radius:5px;box-shadow:none}.fg-node.fg-small .fg-head{padding:.05rem .2rem;border:0;font-size:.7rem;justify-content:center}.fg-node.fg-small .fg-title{flex:none}.fg-node.fg-small .fg-port{display:none}smol-dialog dialog{margin:auto;max-width:min(46rem,92vw);max-height:82vh;padding:0;border:3px solid var(--color-plum);border-radius:var(--radius-md);background:var(--color-surface);color:var(--color-text)}smol-dialog dialog::backdrop{background:#3c325040}smol-dialog dialog header{display:flex;align-items:center;gap:.5rem;padding:.5rem .8rem;background:var(--fill-plum);border-bottom:2px solid var(--color-plum);color:var(--color-plum);font-family:var(--font-heading)}smol-dialog dialog header strong{flex:1}smol-dialog dialog header .actions{display:flex;gap:.4rem}smol-dialog dialog header button{font:inherit;font-weight:700;padding:.15rem .6rem;border:2px solid var(--color-plum);border-radius:6px;background:var(--color-surface);color:var(--color-plum);cursor:pointer}smol-dialog dialog pre{margin:0;padding:.8rem 1rem;max-height:70vh;overflow:auto;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.85rem;line-height:1.45;white-space:pre-wrap}flow-panel{display:flex;flex-direction:column;gap:.4rem}.fp-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem}.fp-group{display:inline-flex;gap:.25rem}.fp-group[hidden],.fp-btn[hidden]{display:none}.fp-btn{font:inherit;font-size:.85rem;font-weight:700;padding:.2rem .7rem;border:2px solid var(--color-plum);border-radius:var(--radius-sm);background:var(--color-surface);color:var(--color-plum);cursor:pointer}.fp-btn[aria-pressed=true]{background:var(--fill-plum)}.fg-node.fg-current{box-shadow:0 0 0 4px var(--fg)}.fg-menu-btn{margin-left:auto}.fg-head .fg-btn+.fg-menu-btn{margin-left:.15rem}.fg-menu{position:absolute;z-index:4;display:grid;min-width:9rem;padding:.25rem;background:var(--color-surface);border:2px solid var(--color-plum);border-radius:var(--radius-sm);box-shadow:var(--shadow-md)}.fg-menu[hidden]{display:none}.fg-menu button{padding:.4rem .6rem;text-align:left;font:inherit;font-weight:700;color:var(--color-text);background:none;border:0;border-radius:var(--radius-sm);cursor:pointer}.fg-menu button:hover,.fg-menu button:focus-visible{background:var(--fill-plum);outline:none}.fg-sheet{--fg: var(--color-plum);--fg-fill: var(--fill-plum);position:absolute;z-index:3;display:flex;flex-direction:column;overflow:hidden;background:var(--color-surface);border:3px solid var(--fg);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);cursor:default}.fg-sheet[hidden]{display:none}.fg-sheet.fg-ghost{--fg: var(--color-text-muted);--fg-fill: var(--color-cloud);border-style:dashed}.fg-sheet-head{display:flex;align-items:center;gap:.5rem;padding:.35rem .6rem;background:var(--fg-fill);border-bottom:2px solid var(--fg);color:var(--fg)}.fg-sheet-head strong{flex:1;font-family:ui-monospace,monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fg-sheet-body{flex:1;overflow:auto;padding:.6rem .9rem 1rem;font-size:.95rem;line-height:1.5;color:var(--color-text)}.fg-table{border-collapse:collapse;margin-top:.6rem;font-size:.85rem}.fg-table th,.fg-table td{padding:.2rem .6rem .2rem 0;text-align:left;vertical-align:top}.fg-table th{color:var(--color-text-muted);font-weight:700;white-space:nowrap}.fg-table td{font-family:ui-monospace,monospace;word-break:break-word}.fg-doc{padding-bottom:.6rem;border-bottom:2px dashed var(--color-border-soft)}.fg-doc h2{margin:.2rem 0 .5rem;font-size:1.3rem}.fg-doc p,.fg-doc ul{margin:.4rem 0}.fg-doc ul{padding-left:1.4rem}.fg-doc table{border-collapse:collapse}.fg-doc th,.fg-doc td{padding:.15rem .7rem .15rem 0;text-align:left}.fg-doc code{font-family:ui-monospace,monospace;font-size:.9em;background:var(--color-cloud);padding:0 .25rem;border-radius:4px}flow-graph.fg-connector .fg-dot{padding:0;cursor:pointer;z-index:1;width:1rem;height:1rem;margin-left:-.5rem;top:-.6rem}flow-graph.fg-connector .fg-dot:hover,flow-graph.fg-connector .fg-target .fg-dot{background:var(--fg)}flow-graph.fg-connector .fg-node.fg-small .fg-port.fg-in{display:block}flow-graph.fg-connector .fg-node{cursor:pointer;transition:translate .28s cubic-bezier(.34,1.56,.64,1)}.fg-node.fg-open{z-index:2;box-shadow:var(--shadow-md)}.fg-node.fg-target{box-shadow:0 0 0 4px var(--fg)}.fg-node.fg-was{outline:3px dashed var(--fg);outline-offset:4px}.fg-node.fg-path{box-shadow:0 0 0 4px var(--color-sun)}.fg-node.fg-under{opacity:.25}.fg-wire.fg-hot{stroke:var(--color-coral);stroke-width:4.5}.fg-wire.fg-pathwire{stroke:var(--color-sun);stroke-width:4}.fg-wire.fg-lift{stroke:var(--color-plum);stroke-width:3.5}.fg-wire.fg-under{opacity:.2}.fg-lightbox{position:absolute;border:1.5px solid var(--color-plum);border-radius:var(--radius-md);background:#fffdf78c;pointer-events:none}@media (prefers-reduced-motion: reduce){flow-graph.fg-connector .fg-node{transition:none}}
