.wf-root { --wf-ink:var(--app-fg-1); --wf-muted:var(--app-fg-3); --wf-border:var(--app-border-strong); font-family:Geist,Inter,system-ui,-apple-system,sans-serif; color:var(--wf-ink); display:flex; flex-direction:column; height:100%; min-height:300px; background:var(--app-surface); overflow:hidden; }
.wf-root *, .wf-root *::before, .wf-root *::after { box-sizing:border-box; }
.wf-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:24px 26px; border-bottom:1px solid var(--wf-border); }
.wf-heading h2 { font-size:19px; font-weight:600; margin:8px 0; letter-spacing:-.5px; }
.wf-eyebrow { font-size:11px; font-weight:600; letter-spacing:0.04em; color:var(--wf-muted); }
.wf-count { font-size:11px; color:var(--wf-muted); }
.wf-button { font:inherit; font-size:12px; border:1px solid var(--wf-border); background:var(--app-surface); color:var(--wf-ink); padding:9px 12px; border-radius:8px; cursor:pointer; white-space:nowrap; user-select:none; -webkit-user-select:none; }
.wf-button:hover { background:var(--app-surface-soft); border-color:var(--app-border-strong); }
.wf-root :focus-visible { outline:2px solid var(--app-focus); outline-offset:3px; }
.wf-button:disabled { opacity:.4; cursor:default; }
.wf-primary { background:var(--app-action-grad); color:var(--app-slate-50); border-color:transparent; }
.wf-primary:hover { box-shadow:var(--app-shadow-md); }
.wf-body { display:flex; flex:1; min-height:0; }
.wf-canvas-wrap { position:relative; flex:1; min-width:0; min-height:0; user-select:none; -webkit-user-select:none; }
.wf-canvas { position:absolute; inset:0; overflow:hidden; background:var(--app-surface-soft); background-image:radial-gradient(var(--app-border-strong) 1px, transparent 1px); background-size:20px 20px; touch-action:none; cursor:grab; }
.wf-world { position:absolute; width:1px; height:1px; transform-origin:0 0; }
.wf-edges { position:absolute; left:0; top:0; width:1px; height:1px; overflow:visible; pointer-events:none; }
.wf-edge, .wf-connection-preview { fill:none; stroke:var(--app-fg-3); stroke-width:1.8; }
.wf-connection-preview { stroke:var(--app-focus); stroke-dasharray:6 4; }
.wf-edge[data-path-tone='recheck'] { stroke:var(--wf-return, var(--app-fg-3)); }
.wf-root marker[data-path-tone='continue'] path, .wf-root marker[data-path-tone='decision'] path { fill:var(--app-fg-3); }
.wf-root marker[data-path-tone='recheck'] path { fill:var(--wf-return, var(--app-fg-3)); }
.wf-edge-label { font-size:10px; font-weight:600; fill:var(--app-fg-2); }
.wf-edge-label rect { fill:var(--app-surface); stroke:var(--wf-border); stroke-width:.8; }
.wf-node { position:absolute; width:170px; height:90px; padding:16px; background:var(--app-surface); border:1px solid var(--app-border-strong); border-radius:8px; box-shadow:0 3px 8px transparent; user-select:none; cursor:pointer; }
.wf-edit .wf-node { cursor:grab; touch-action:none; }
.wf-node.wf-dragging, .wf-canvas.wf-panning { cursor:grabbing; }
.wf-node-title { display:block; font-size:13px; font-weight:600; line-height:18px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wf-node-description { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:11px; color:var(--app-fg-3); margin-top:7px; line-height:15px; }
.wf-selected { border-color:var(--app-focus); box-shadow:0 0 0 3px var(--app-active); }
.wf-pending { border-color:var(--app-focus); }
.wf-port { position:absolute; top:36px; width:18px; height:18px; border:3px solid var(--app-surface); border-radius:50%; background:var(--app-fg-3); padding:0; cursor:crosshair; touch-action:none; }
.wf-port:hover, .wf-pending .wf-port-out { background:var(--app-focus); box-shadow:0 0 0 3px var(--app-active); }
.wf-port-in { left:-10px; } .wf-port-out { right:-10px; }
.wf-connecting .wf-port-in { box-shadow:0 0 0 3px var(--app-active); }
.wf-tools { display:flex; flex-wrap:wrap; align-items:center; gap:3px; position:absolute; bottom:20px; left:20px; max-width:calc(100% - 40px); padding:4px; background:var(--app-surface); border:1px solid var(--wf-border); border-radius:8px; box-shadow:0 3px 12px transparent; }
.wf-tools .wf-button { border:0; padding:6px 10px; font-size:17px; }
.wf-zoom { font-size:11px; width:40px; text-align:center; color:var(--wf-muted); }
.wf-tools-divider { height:18px; width:1px; background:var(--wf-border); margin:0 3px; }
.wf-tools .wf-auto-zoom { display:flex; align-items:center; gap:6px; font-size:11px; padding:7px 9px; color:var(--wf-muted); }
.wf-auto-zoom::before { content:''; width:5px; height:5px; border-radius:50%; background:var(--app-fg-3); }
.wf-auto-zoom[aria-pressed='true'] { background:var(--app-active); color:var(--app-fg-1); }
.wf-auto-zoom[aria-pressed='true']::before { background:var(--app-focus); }
.wf-inspector { width:235px; flex-shrink:0; border-left:1px solid var(--wf-border); padding:24px 20px; overflow:auto; overscroll-behavior:contain; background:var(--app-surface); }
.wf-inspector h3 { font-size:17px; font-weight:600; margin:12px 0 24px; overflow-wrap:anywhere; }
.wf-inspector h4 { font-size:11px; margin:24px 0 10px; font-weight:600; }
.wf-form { display:flex; flex-direction:column; gap:18px; }
.wf-label { display:flex; flex-direction:column; gap:7px; font-size:11px; font-weight:500; }
.wf-input { font:inherit; font-size:12px; line-height:1.5; width:100%; border:1px solid var(--wf-border); border-radius:8px; padding:9px; color:var(--wf-ink); background:var(--app-surface); resize:vertical; }
.wf-help { font-size:11px; line-height:1.7; color:var(--wf-muted); font-weight:400; }
.wf-draft-hint { color:var(--app-attention-fg); margin:0; }
.wf-draft-hint[hidden] { display:none; }
.wf-connection-row { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:11px; padding:6px 0; }
.wf-connection-row span { overflow-wrap:anywhere; }
.wf-connection-row .wf-button { padding:3px 8px; }
.wf-danger { margin-top:25px; color:var(--app-danger-fg); }
.wf-status { border-top:1px solid var(--wf-border); padding:13px 24px; font-size:11px; color:var(--wf-muted); min-height:41px; }
.wf-empty { position:absolute; top:45%; left:10%; right:10%; text-align:center; color:var(--wf-muted); font-size:12px; pointer-events:none; }
