.production-node{transition:border-color .16s,box-shadow .16s}
.production-node:hover:not(.selected):not(.connection-target){border-color:#747474;box-shadow:none}
.production-node .port{transition:border-color .16s,color .16s,background .16s,scale .16s;touch-action:none}
.production-node .port:hover{border-color:#ddd;color:#fff;background:#292929;box-shadow:none;scale:1.1}
#canvas.is-connection-dragging,#canvas.is-connection-dragging *{cursor:crosshair!important}
#canvas.is-connection-dragging .node .port.in,#canvas.is-connection-dragging.connection-reverse .node .port.out{display:block}
.production-node.connection-target,.production-node.connection-invalid{border-color:transparent!important;box-shadow:none!important}
.production-node.connection-target:after,.production-node.connection-invalid:after{content:'';position:absolute;inset:-1px;border:1.5px solid #ddd;border-radius:inherit;pointer-events:none;transform:perspective(800px) rotateX(var(--connection-rotate-x,0deg)) rotateY(var(--connection-rotate-y,0deg));transition:transform .1s ease-out,opacity .15s;opacity:1}
.production-node.connection-invalid:after{border-color:#999}
.production-node.connection-target .port{border-color:#c9c9c9;color:#eee;background:#242424;box-shadow:none;scale:1}
.connections .canvas-edge .edge-hit{pointer-events:stroke;stroke:transparent;stroke-width:18;opacity:1;fill:none;cursor:pointer}
.connections .canvas-edge .edge-line{pointer-events:none;stroke:#a5aaae;stroke-width:1.4;opacity:.7;transition:stroke .15s,stroke-width .15s,opacity .15s}
.connections .canvas-edge .edge-flow{pointer-events:none;stroke:#70bfff;stroke-width:3;stroke-linecap:round;stroke-dasharray:24 125;opacity:0;animation:connection-stream 2.5s linear infinite;filter:drop-shadow(0 0 2px #68baff55);transition:opacity .15s}
.connections .canvas-edge:hover .edge-line,.connections .canvas-edge.edge-hover .edge-line{stroke:#e1e4e6;stroke-width:2.6;opacity:1}
.connections .canvas-edge:hover .edge-flow,.connections .canvas-edge.edge-hover .edge-flow,.connections .canvas-edge .style-edge{opacity:1}
.connections .connection-preview{pointer-events:none;stroke:#969fa6;stroke-width:1.6;stroke-dasharray:none;opacity:.9;fill:none}
.connections .connection-preview.valid-target{stroke:#68b9ef;stroke-width:2;filter:drop-shadow(0 0 2px #66c6f640)}
.connections .connection-preview.pending-connection{stroke:#d4dce0;stroke-width:2}
.connections .connection-preview-flow{pointer-events:none;fill:none;stroke:#7ac4ff;stroke-width:2.5;stroke-linecap:round;stroke-dasharray:24 125;animation:connection-stream 2.5s linear infinite;opacity:.8}
@keyframes connection-stream{to{stroke-dashoffset:-149}}
.connection-create-menu{position:fixed;bottom:auto;transform:none;width:234px;padding:10px;border:1px solid #373737;border-radius:16px;background:#242424;z-index:40;max-height:calc(100dvh - 16px);overflow:auto}
.connection-create-menu header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 5px 9px;color:#888;font-size:13px}
.connection-create-menu header button{width:25px;height:25px;padding:0;display:grid;place-items:center;font-size:20px}
.connection-create-menu>button{display:flex;align-items:center;gap:12px;width:100%;height:44px;padding:0 10px;border-radius:9px;font-size:15px}
.connection-create-menu>button:hover,.connection-create-menu>button:focus-visible{background:#3a3a3a;outline:none}
.connection-create-menu svg{width:20px;height:20px;fill:currentColor;stroke:none}
.edge-disconnect{position:fixed;width:28px;height:28px;display:grid;place-items:center;transform:translate(-50%,-50%);padding:6px;border:1px solid #424242;border-radius:50%;background:#222e;color:#bbb;z-index:8;cursor:pointer;animation:edge-button-in .12s ease-out}
.edge-disconnect:hover{color:#fff;background:#303030}
.edge-disconnect svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#connection-invalid-hint{position:fixed;z-index:40;pointer-events:none;padding:5px 9px;background:#303030;border:1px solid #414141;border-radius:8px;color:#bbb;font-size:11px}
@keyframes edge-button-in{from{opacity:0;scale:.8}to{opacity:1;scale:1}}
@media(prefers-reduced-motion:reduce){.production-node,.production-node .port,.connections .edge-line,.connections .edge-flow{transition:none}.connections .edge-flow,.connections .connection-preview-flow,.edge-disconnect{animation:none}.production-node.connection-target:after,.production-node.connection-invalid:after{transform:none;transition:none}}

.connection-preview-layer{z-index:6;pointer-events:none}
