.graph-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin:6px 0 24px}.graph-heading h1{font-size:clamp(25px,2.4vw,36px);letter-spacing:-.05em;margin:10px 0 8px}.graph-heading p{font-size:13px;color:#8f90a4;line-height:1.6;max-width:570px}.graph-kicker,.graph-eyebrow{font-size:9px;letter-spacing:.15em;font-weight:800;color:#a89cfb}.graph-kicker{display:flex;align-items:center;gap:8px}.graph-kicker span,.graph-dot{width:7px;height:7px;background:#a89cfb;border-radius:50%;box-shadow:0 0 12px #a89cfc}.graph-heading-actions{display:flex;align-items:center;gap:14px;flex-shrink:0}.graph-save-state{font-size:11px;color:#8b8b9b}.graph-shell{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:660px;border:1px solid #ffffff15;background:rgba(22,22,30,.78);border-radius:18px;overflow:hidden;box-shadow:0 26px 70px #0005,0 1px 0 #ffffff0a inset;backdrop-filter:blur(20px)}.graph-palette{background:linear-gradient(180deg,#1d1d27dd,#17171fd9);border-right:1px solid #ffffff11;padding:22px 14px;min-width:0}.graph-palette-head{display:flex;align-items:center;justify-content:space-between;padding:0 7px}.graph-palette-head h2{font-size:18px;margin-top:8px}.graph-count{font:600 10px 'DM Sans',sans-serif;color:#8d899d;background:#ffffff0b;border:1px solid #ffffff0b;border-radius:8px;padding:7px}.graph-palette>p{color:#858596;font-size:11px;line-height:1.6;margin:13px 7px 22px}.graph-category{font-size:9px;font-weight:800;color:#777789;letter-spacing:.12em;display:flex;justify-content:space-between;margin:19px 7px 9px}.graph-category span{color:#5d5d6e}.graph-palette-item{display:flex;text-align:left;align-items:center;gap:10px;width:100%;padding:11px 9px;margin:5px 0;border-radius:10px;background:transparent;color:#e9e9f1;border:1px solid transparent;transition:.18s}.graph-palette-item:hover,.graph-palette-item:focus-visible{background:#ffffff08;border-color:#ffffff12}.graph-palette-item>span:nth-child(2){min-width:0;flex:1}.graph-palette-item strong,.graph-palette-item small{display:block}.graph-palette-item strong{font-size:11px;line-height:1.3}.graph-palette-item small{font-size:9px;line-height:1.4;margin-top:4px;color:#818192}.graph-palette-item b{font-size:16px;font-weight:400;color:#747483}.graph-kind-icon{display:grid;place-items:center;flex:none;width:31px;height:31px;border-radius:9px;font-size:15px;font-weight:700}.graph-kind-icon.violet{color:#c3b9ff;background:#a899ff25}.graph-kind-icon.blue{color:#a7c7ff;background:#7da9ff24}.graph-kind-icon.teal{color:#99e4cf;background:#66d5b526}.graph-kind-icon.amber{color:#f3d09d;background:#e6ad5926}.graph-palette-tip{margin:30px 3px 0;padding:14px;border:1px solid #ad9aff1b;background:linear-gradient(130deg,#a594ff13,#ffffff03);border-radius:12px}.graph-palette-tip>span{display:inline-block;color:#b9abff;margin-bottom:10px}.graph-palette-tip strong{display:block;font-size:11px}.graph-palette-tip p{font-size:10px;color:#898899;line-height:1.55;margin-top:6px}.graph-workspace{min-width:0;display:flex;flex-direction:column;background:#111119}.graph-toolbar{height:60px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 19px;border-bottom:1px solid #ffffff0e;background:#1a1a23b8}.graph-toolbar>div:first-child{display:flex;align-items:center;gap:9px;font-size:11px}.graph-toolbar-sub{color:#777788}.graph-toolbar-actions{display:flex;align-items:center;gap:5px;color:#a4a4b4;font-size:10px}.graph-toolbar-actions>span{min-width:38px;text-align:center}.graph-tool{color:#b4b4c3;border:1px solid #ffffff12;background:#ffffff08;border-radius:7px;min-width:28px;height:28px;padding:0 8px;font-size:14px}.graph-tool:hover{background:#ffffff16;color:white}.graph-tool.graph-reset{font-size:10px;margin-left:7px}.graph-viewport{height:570px;min-height:420px;overflow:auto;overscroll-behavior:contain;background:#111119}.graph-canvas{position:relative;width:1700px;height:1000px;background-color:#12121a;background-image:linear-gradient(#ffffff08 1px,transparent 1px),linear-gradient(90deg,#ffffff08 1px,transparent 1px),radial-gradient(ellipse at 38% 30%,#826fe50e,transparent 45%);background-size:24px 24px,24px 24px,100% 100%}.graph-wires{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.graph-wire{fill:none;stroke:#a99df7;stroke-width:2}.graph-wire-glow{fill:none;stroke:#9985ff;stroke-width:7;opacity:.13;filter:blur(4px)}.graph-wire-preview{stroke-dasharray:6 5;opacity:.8}.graph-node{position:absolute;width:270px;border:1px solid #ffffff1b;border-radius:13px;background:linear-gradient(155deg,#292a35f5,#20212bf5);box-shadow:0 16px 35px #0006,0 1px 0 #ffffff0c inset;color:#ededf4;z-index:2}.graph-node.dragging{z-index:3;box-shadow:0 24px 55px #0009,0 0 0 1px #b6a8ff66}.graph-node-top{display:flex;align-items:center;gap:10px;padding:13px 13px 12px;border-bottom:1px solid #ffffff0c;cursor:grab;touch-action:none;user-select:none}.graph-node.dragging .graph-node-top{cursor:grabbing}.graph-node-top>div{flex:1;min-width:0}.graph-node-top small,.graph-node-top strong{display:block}.graph-node-top small{font-size:8px;letter-spacing:.12em;color:#9290a2;font-weight:800;margin-bottom:3px}.graph-node-top strong{font-size:12px}.graph-node-delete{width:24px;height:24px;border-radius:7px;background:#ffffff08;color:#a4a3b2;font-size:18px;line-height:1}.graph-node-delete:hover{background:#ff777721;color:#ff9999}.graph-node-body{padding:14px 14px 10px}.graph-node-body label{display:block;font-size:10px;font-weight:700;color:#9e9eae;margin-bottom:12px}.graph-node-body input,.graph-node-body textarea{display:block;width:100%;margin-top:7px;border:1px solid #ffffff14;border-radius:8px;background:#14151ddd;color:#f1f0f8;font-size:11px;padding:9px 10px;outline:none;resize:vertical;min-height:34px}.graph-node-body input:focus,.graph-node-body textarea:focus{border-color:#a798fc;box-shadow:0 0 0 3px #a798fc20}.graph-command-input{position:relative}.graph-command-input span{position:absolute;left:10px;top:15px;color:#a89bf6}.graph-command-input input{padding-left:22px}.graph-var{display:block;font-size:9px;color:#868697;margin-top:-3px;line-height:1.4}.graph-node-ports{display:flex;justify-content:space-between;align-items:center;padding:5px 0 12px}.graph-port-label{display:flex;align-items:center;gap:7px;color:#a0a0b0;font-size:9px;background:transparent;padding:4px 0}.graph-port-label i{width:12px;height:12px;display:block;border-radius:50%;border:2px solid #1d1e27;background:#aca0fc;box-shadow:0 0 0 2px #aca0fc70;transition:.15s}.graph-port-label.input{margin-left:-6px}.graph-port-label.output{margin-right:-6px}.graph-port-label:hover i,.graph-port-label.armed i{background:#fff;box-shadow:0 0 0 4px #a89cfc55,0 0 15px #ae9fff}.graph-footer{display:flex;justify-content:space-between;gap:15px;padding:13px 18px;font-size:10px;color:#838393;line-height:1.5;border-top:1px solid #ffffff0b}.graph-footer b{color:#a698f5;font-size:8px;margin-right:5px}.graph-feedback{min-height:30px;padding:0 18px 12px;color:#a79dec;font-size:10px;line-height:1.4}.graph-feedback.is-error{color:#f49ca5}
@media(max-width:1100px){.graph-shell{grid-template-columns:205px minmax(0,1fr)}.graph-palette{padding:18px 10px}.graph-footer{display:block}.graph-footer span+span{display:block;margin-top:4px}}
@media(max-width:700px){.graph-heading{align-items:flex-start;flex-direction:column}.graph-heading-actions{width:100%;justify-content:space-between}.graph-shell{display:flex;flex-direction:column}.graph-palette{border-right:0;border-bottom:1px solid #ffffff10}.graph-palette>p,.graph-palette-tip,.graph-category{display:none}.graph-palette-head{margin-bottom:10px}.graph-palette-item{display:inline-flex;width:auto;vertical-align:top;padding:7px;margin:2px;border:1px solid #ffffff0d}.graph-palette-item small,.graph-palette-item b{display:none}.graph-palette-item strong{font-size:10px}.graph-palette-item .graph-kind-icon{width:26px;height:26px}.graph-toolbar{padding:0 12px}.graph-toolbar-sub,.graph-reset{display:none}.graph-viewport{height:490px;min-height:0}.graph-footer{padding:10px 12px}.graph-feedback{padding-left:12px}.graph-heading h1{font-size:26px}}
.graph-connections{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:0 18px 12px;font-size:9px;color:#818192}.graph-connections strong{letter-spacing:.1em;margin-right:3px}.graph-connections button{border:1px solid #ffffff12;background:#ffffff08;color:#c5c3d5;border-radius:7px;padding:5px 8px;font-size:9px}.graph-connections button:hover{border-color:#f49ca566;color:#f49ca5}.graph-connections button span[aria-hidden]{font-size:12px;margin-left:4px}.graph-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.graph-node-body textarea{resize:none}
/* A dedicated full-width workspace gives the canvas room to breathe. */
.content:has(.graph-shell){max-width:none;padding:22px 26px 36px}
.graph-heading{margin:0 0 16px;align-items:center}
.graph-heading h1{font-size:clamp(23px,2vw,31px);margin:7px 0 4px}
.graph-heading p{max-width:none;color:#a6a6b8}
.graph-shell{grid-template-columns:252px minmax(0,1fr);height:calc(100vh - 220px);min-height:680px;background:#14141c;border-radius:16px;box-shadow:0 32px 90px #0008,0 1px 0 #ffffff0a inset}
.graph-palette{height:100%;overflow:auto;scrollbar-color:#555261 transparent;padding:19px 13px;background:linear-gradient(180deg,#1d1d28,#17171f)}
.graph-palette-item{padding:9px 10px}.graph-palette-item strong{font-size:12px}.graph-palette-item small{font-size:10px}
.graph-workspace{min-height:0}.graph-toolbar{height:54px;flex-shrink:0;background:#1a1a25}.graph-viewport{height:auto;min-height:0;flex:1;scrollbar-color:#555261 #171721}
.graph-canvas{width:2400px;height:1750px;background-color:#101018;background-image:linear-gradient(#ffffff09 1px,transparent 1px),linear-gradient(90deg,#ffffff09 1px,transparent 1px),radial-gradient(ellipse at 38% 30%,#826fe50d,transparent 45%);background-size:28px 28px,28px 28px,100% 100%}
.graph-node{width:310px;border-radius:14px;background:linear-gradient(155deg,#292a36,#1e202b);box-shadow:0 20px 50px #0008,0 1px 0 #ffffff10 inset}
.graph-node-top{padding:14px 15px}.graph-node-top strong{font-size:13px}.graph-node-top small{font-size:9px}
.graph-node-body{padding:15px 16px 10px}.graph-node-body label,.graph-field-title{font-size:11px;color:#b1b2c2}.graph-node-body input,.graph-node-body textarea{font-size:12px;padding:10px 11px;background:#11121bdd;min-height:38px}
.graph-node-body .graph-command-input input{padding-left:27px}
.graph-node-body select{display:block;width:100%;margin-top:7px;border:1px solid #ffffff14;border-radius:8px;background:#11121bdd;color:#f1f0f8;font-size:12px;padding:10px 11px;min-height:38px}
.graph-node-body select:focus{border-color:#a798fc;box-shadow:0 0 0 3px #a798fc20}
.graph-node-body .graph-check{display:flex;align-items:center;gap:8px;margin:12px 0 5px;line-height:1.4}.graph-node-body .graph-check input{width:15px;min-height:0;height:15px;margin:0;padding:0;accent-color:#a798fc;flex:none}
.graph-branch-ports{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.graph-port-label.branch-true i{background:#75ddb1;box-shadow:0 0 0 2px #75ddb177}.graph-port-label.branch-false i{background:#f0a2a3;box-shadow:0 0 0 2px #f0a2a377}.graph-wire.branch-true{stroke:#75ddb1}.graph-wire.branch-false{stroke:#f0a2a3}
.graph-var{font-size:10px;color:#a1a1b4;line-height:1.55}.graph-field{margin:0 0 13px}.graph-field-title{margin:0 0 2px}.graph-field input,.graph-field textarea{margin-top:7px}.graph-warning{color:#e7ad92}
.graph-data-outputs{margin:15px -16px -1px;padding:12px 0 0;border-top:1px solid #ffffff0d}.graph-data-outputs>span{display:block;color:#777b92;font-size:9px;font-weight:800;letter-spacing:.1em;margin:0 16px 6px}
.graph-data-port{display:flex;align-items:center;gap:8px;font-size:10px;color:#a8c8f2;background:transparent;padding:5px 0;text-align:left}.graph-data-port.output{justify-content:flex-end;width:100%;margin-right:-6px;padding-right:0}.graph-data-port.input{margin-left:-21px}.graph-data-port i{display:block;flex:none;width:11px;height:11px;border:2px solid #1e202b;border-radius:50%;background:#79bdf6;box-shadow:0 0 0 2px #79bdf677}.graph-data-port:hover i,.graph-data-port.armed i{background:white;box-shadow:0 0 0 4px #79bdf655,0 0 16px #79bdf6}.graph-wire.data{stroke:#79bdf6}.graph-wire-glow.data{stroke:#79bdf6}
.graph-data-port.input.linked:after{content:'VERBUNDEN';font-size:8px;font-weight:800;letter-spacing:.06em;color:#8dcaf8;background:#79bdf61a;border-radius:4px;padding:3px 5px}
html:lang(en) .graph-data-port.input.linked:after{content:'CONNECTED'}
.graph-kind-icon.rose{color:#ffb6a7;background:#ef897b24}.graph-embed-summary{display:flex;align-items:center;gap:9px;margin:12px 0 5px;padding:11px;border:1px solid #a798fc25;background:#a798fc0d;border-radius:10px}.graph-embed-summary>span{color:#bdadff;font-size:19px}.graph-embed-summary div{flex:1;min-width:0}.graph-embed-summary strong,.graph-embed-summary small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.graph-embed-summary strong{font-size:11px}.graph-embed-summary small{font-size:9px;color:#9594a8;margin-top:3px}.graph-embed-summary button{font-size:10px;font-weight:700;color:#d6ceff;background:#a798fc20;border-radius:7px;padding:8px}
.graph-connections{max-height:70px;overflow:auto;flex-shrink:0}.graph-connections button.data{color:#a7cff7;border-color:#79bdf633}.graph-footer{padding:10px 18px}.graph-feedback{min-height:26px}
@media(max-width:1100px){.graph-shell{grid-template-columns:220px minmax(0,1fr)}.graph-footer span+span{display:none}}
@media(max-width:700px){.content:has(.graph-shell){padding:18px 12px 30px}.graph-heading{margin-bottom:14px}.graph-shell{display:flex;height:auto;min-height:0}.graph-palette{height:auto;max-height:220px;overflow:auto}.graph-palette-item{padding:7px}.graph-viewport{height:65vh;min-height:440px;flex:none}.graph-node{width:290px}.graph-heading-actions{gap:10px}.graph-footer{font-size:9px}}
.graph-workspace{position:relative}
.graph-wire-hit{fill:none;stroke:transparent;stroke-width:18;pointer-events:stroke;cursor:pointer}
.graph-wire-hit:hover{stroke:#ffffff22}
.graph-wire-menu[hidden],.graph-binding-help[hidden]{display:none}
.graph-wire-menu{position:absolute;z-index:20;width:min(330px,calc(100% - 16px));max-height:250px;overflow:auto;padding:14px;background:#23232a;border:1px solid #ffffff24;border-radius:12px;box-shadow:0 16px 45px #000b;color:#f2eff6}
.graph-wire-menu strong{display:block;font:700 12px Manrope,sans-serif}.graph-wire-menu p{font-size:10px;line-height:1.5;color:#b1adbb;margin:6px 0 10px}.graph-wire-remove{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:5px 0;padding:10px;text-align:left;background:#ffffff08;color:#eae7ef;border:1px solid #ffffff10;border-radius:8px;font-size:10px;line-height:1.45;overflow-wrap:anywhere}.graph-wire-remove:hover,.graph-wire-remove:focus-visible{background:#e690901a;border-color:#e6909070;color:#ffe1e1}.graph-wire-remove b{font-size:17px;font-weight:400}.graph-wire-cancel{display:block;margin:10px 0 0 auto;padding:7px 10px;border-radius:7px;background:#ffffff0b;color:#c5c0ce;font-size:10px}.graph-wire-cancel:hover{background:#ffffff16;color:#fff}
.graph-wire-remove small{display:block;margin-top:4px;color:#e9bbac;font-size:10px;line-height:1.4}
.graph-binding-help{display:block;margin-top:8px;color:#a8c8f2;font-size:10px;line-height:1.5}.graph-footer span:first-child{max-width:100%}
/* Block library and spacious workspace */
.content:has(.graph-shell){padding:16px 20px 24px}
.graph-heading{margin:0 0 12px}.graph-heading h1{font-size:clamp(22px,1.8vw,28px)}
.graph-shell{grid-template-columns:280px minmax(0,1fr);height:calc(100vh - 180px);min-height:720px;border-radius:14px;background:#141419}
.graph-palette{padding:18px 14px;background:#19191e;scrollbar-width:thin}
.graph-palette>p{margin:9px 7px 14px;color:#96949f}
.graph-search{display:flex;align-items:center;gap:8px;margin:0 4px 14px;padding:0 11px;background:#101014;border:1px solid #ffffff16;border-radius:9px;color:#b8a8da}
.graph-search:focus-within{border-color:#a790dc;box-shadow:0 0 0 3px #a790dc18}
.graph-search span{font-size:22px;line-height:1}.graph-search input{width:100%;height:39px;border:0;outline:0;background:transparent;color:#f6f3fa;font-size:12px}.graph-search input::placeholder{color:#77747f}
.graph-palette-group{border-top:1px solid #ffffff0d}.graph-palette-group>summary{display:flex;align-items:center;gap:8px;list-style:none;padding:15px 7px 10px;cursor:pointer;color:#a6a2af;font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;user-select:none}.graph-palette-group>summary::-webkit-details-marker{display:none}.graph-palette-group>summary::before{content:'›';font-size:16px;color:#8d849d;transition:transform .15s}.graph-palette-group[open]>summary::before{transform:rotate(90deg)}.graph-palette-group>summary>span:first-child{flex:1}.graph-group-count{font-size:10px;letter-spacing:0;color:#85818e;background:#ffffff09;border-radius:5px;padding:3px 6px}.graph-palette-item{margin:2px 0;padding:9px 8px;gap:9px}.graph-palette-item:hover{background:#ffffff0b;border-color:#ffffff12}.graph-palette-item small{color:#8e8b99}.graph-palette-item b{color:#b9a2d9}.graph-no-results{padding:12px 8px;color:#93909d;font-size:11px}
.graph-toolbar{background:#1b1b20}.graph-workspace,.graph-viewport{background:#111115}.graph-canvas{background-color:#111115;background-image:linear-gradient(#ffffff08 1px,transparent 1px),linear-gradient(90deg,#ffffff08 1px,transparent 1px);background-size:28px 28px}.graph-node{background:linear-gradient(155deg,#29292e,#202025)}.graph-feedback{flex-shrink:0}.graph-footer{flex-shrink:0}
@media(max-width:1100px){.graph-shell{grid-template-columns:240px minmax(0,1fr)}}
@media(max-width:700px){.content:has(.graph-shell){padding:14px 10px 24px}.graph-shell{display:flex;height:auto;min-height:0}.graph-palette{height:auto;max-height:300px;padding:14px}.graph-palette>p{display:block;margin:7px}.graph-palette-group>summary{padding:10px 5px}.graph-palette-item{display:flex;width:100%;padding:7px 8px;margin:2px 0}.graph-palette-item small,.graph-palette-item b{display:block}.graph-viewport{height:70vh;min-height:440px}.graph-heading-actions{align-items:center}.graph-search{margin:10px 4px}}
.graph-slash-options{margin:12px 0;padding:0 10px 10px;border:1px solid #ffffff12;background:#ffffff05;border-radius:9px}.graph-slash-options>summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;list-style:none;padding:11px 0;color:#d4d0dc;font-size:11px;font-weight:700}.graph-slash-options>summary::-webkit-details-marker{display:none}.graph-slash-options>summary::before{content:'+';margin-right:7px;color:#bba5dc;font-size:14px}.graph-slash-options[open]>summary::before{content:'-'} .graph-slash-options>summary span{margin-left:auto;color:#8f8999;font-size:10px;font-weight:500}.graph-slash-options>p{font-size:10px;line-height:1.5;color:#9993a3;margin:0 0 10px}.graph-option{margin:8px 0;padding:10px;border:1px solid #ffffff0d;border-radius:8px;background:#111116}.graph-option-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px;color:#d1cbd9;font-size:10px}.graph-option-head button{background:#ffffff0b;border-radius:5px;color:#aaa1b0;padding:2px 6px;font-size:14px}.graph-option label{margin-bottom:9px}.graph-option .graph-check{margin-bottom:0}.graph-add-option{width:100%;margin-top:5px;padding:8px;border:1px dashed #a796c84f;border-radius:7px;background:#a796c80a;color:#c9b8e4;font-size:10px;font-weight:700}.graph-add-option:hover{background:#a796c81c}.graph-add-option:disabled{opacity:.4;cursor:not-allowed}
.graph-modal-fields{margin:14px 0 2px;padding:10px;border:1px solid #ffffff12;background:#ffffff05;border-radius:9px}.graph-modal-fields-head{display:flex;justify-content:space-between;align-items:center;color:#d4d0dc;font-size:11px}.graph-modal-fields-head span{color:#8f8999;font-size:10px}.graph-modal-fields .graph-option{margin-top:10px}
.graph-permissions details{margin-top:7px;border:1px solid #ffffff12;background:#ffffff05;border-radius:8px}.graph-permissions summary{padding:9px 10px;color:#c5b4df;font-size:10px;font-weight:700;cursor:pointer;list-style:none}.graph-permissions summary::-webkit-details-marker{display:none}.graph-permissions summary::before{content:'+';margin-right:7px}.graph-permissions details[open] summary::before{content:'-'}.graph-permissions details>p{margin:0;padding:0 10px 9px;color:#a6a0ad;font-size:10px;line-height:1.45}.graph-permission-group{max-height:210px;overflow:auto;padding:0 9px 6px;border-top:1px solid #ffffff0a;scrollbar-width:thin}.graph-permission-group>strong{display:block;color:#a49aaa;font-size:9px;letter-spacing:.08em;text-transform:uppercase;padding:10px 0 5px}.graph-node-body .graph-permission-choice{display:flex;align-items:center;gap:7px;margin:0;padding:5px 0;color:#d4ced9;font-size:10px;font-weight:500;line-height:1.3}.graph-node-body .graph-permission-choice input{width:14px;height:14px;min-height:0;margin:0;padding:0;accent-color:#ad92dc;flex:none}

/* A virtual camera keeps the workspace navigable in every direction. */
.graph-viewport{position:relative;overflow:hidden;touch-action:none;cursor:grab;background-color:#111115;background-image:linear-gradient(#ffffff08 1px,transparent 1px),linear-gradient(90deg,#ffffff08 1px,transparent 1px)}
.graph-viewport.is-panning{cursor:grabbing}
.graph-canvas{position:absolute;left:0;top:0;width:1px;height:1px;background:none;transform-origin:0 0;overflow:visible}
.graph-canvas [data-graph-nodes]{position:absolute;left:0;top:0;width:1px;height:1px;overflow:visible}
.graph-tool.graph-layout-button{font-size:10px;white-space:nowrap}
.graph-voice-presets{margin:10px 0 14px;padding:8px;border:1px solid #ffffff12;background:#ffffff04;border-radius:8px}
.graph-voice-presets>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.graph-voice-presets .graph-tool{height:auto;min-height:27px;padding:5px 4px;line-height:1.2;font-size:10px;font-weight:650}
.graph-voice-presets .graph-tool[aria-pressed="true"]{border-color:#bca9de60;background:#bca9de20;color:#e5d9f4}
.graph-voice-presets .graph-tool:disabled{opacity:.55;cursor:not-allowed}
.graph-voice-presets .graph-var{margin:7px 0 0}

/* The monochrome canvas keeps flow, data, and branch connections legible. */
.shell .graph-heading { gap: 14px; margin: 0 0 14px; }
.shell .graph-heading h1 {
  margin: 0 0 5px;
  color: var(--graphite-ink, #f3f4f4);
  font-size: clamp(28px, 3vw, 41px);
  line-height: 1.04;
  letter-spacing: -.062em;
}
.shell .graph-heading p { color: var(--graphite-muted, #b0b3b8); line-height: 1.55; }
.shell .graph-heading-actions {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 9px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}
.shell .graph-heading-actions [data-graph-save] { min-height: 44px; }
.shell .graph-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border: 1px solid #b5b8bf;
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
}
.shell .graph-save-state {
  grid-column: 2;
  justify-self: end;
  text-align: end;
  color: var(--graphite-muted, #b0b3b8);
}
.shell .graph-save-state:empty { display: none; }
.shell .graph-shell {
  border-color: var(--graphite-hairline, #ffffff1a);
  border-radius: 14px;
  background: var(--graphite-stage, #202124);
  box-shadow: 0 14px 40px #090a0d39;
  backdrop-filter: none;
}
.shell .graph-palette {
  border-color: var(--graphite-hairline, #ffffff1a);
  background: var(--graphite-stage, #202124);
  scrollbar-color: #666971 transparent;
}
.shell .graph-palette-head { gap: 8px; margin-bottom: 12px; }
.shell .graph-palette-head h2 { margin: 0; font-size: 22px; font-weight: 720; letter-spacing: -.045em; }
.shell .graph-search {
  border-color: var(--graphite-line, #414349);
  border-radius: 8px;
  background: var(--graphite-bg, #17181a);
  color: var(--graphite-muted, #b0b3b8);
  transition: border-color .2s, box-shadow .2s;
}
.shell .graph-search:focus-within { border-color: #999da6; box-shadow: 0 0 0 3px #e6e9f218; }
.shell .graph-search input { color: var(--graphite-ink, #f3f4f4); }
.shell .graph-search input::placeholder { color: var(--graphite-muted, #b0b3b8); }
.shell .graph-palette-group { border-color: var(--graphite-hairline, #ffffff1a); }
.shell .graph-palette-group > summary {
  margin: 4px 0;
  padding: 9px 7px;
  border-radius: 8px;
  color: var(--graphite-accent, #dfe2e6);
  transition: background-color .18s, color .18s;
}
.shell .graph-palette-group > summary::before { color: var(--graphite-muted, #b0b3b8); }
.shell .graph-palette-group > summary:hover, .shell .graph-palette-group > summary:focus-visible {
  color: var(--graphite-ink, #f3f4f4);
  background: #ffffff08;
}
.shell .graph-group-count { background: #ffffff09; color: var(--graphite-muted, #b0b3b8); }
.shell .graph-palette-item { border-radius: 8px; transition: background .18s, border-color .18s; }
.shell .graph-palette-item:hover, .shell .graph-palette-item:focus-visible {
  background: var(--graphite-raised, #2d2f33);
  border-color: var(--graphite-hairline, #ffffff1a);
}
.shell .graph-palette-item strong { font-size: 12px; }
.shell .graph-palette-item small { color: var(--graphite-muted, #b0b3b8); font-size: 10px; }
.shell .graph-palette-item b { color: var(--graphite-muted, #b0b3b8); transition: color .18s, transform .2s var(--graphite-ease, ease); }
.shell .graph-palette-item:hover b, .shell .graph-palette-item:focus-visible b { color: var(--graphite-ink, #f3f4f4); transform: translateX(2px); }
.shell .graph-workspace { background: var(--graphite-stage, #202124); }
.shell .graph-toolbar {
  height: auto;
  min-height: 54px;
  padding: 8px 14px;
  border-color: var(--graphite-hairline, #ffffff1a);
  background: var(--graphite-stage, #202124);
}
.shell .graph-toolbar > div:first-child { flex: 0 1 auto; font-size: 12px; }
.shell .graph-toolbar-actions { color: var(--graphite-muted, #b0b3b8); }
.shell .graph-toolbar-actions { flex-wrap: wrap; justify-content: flex-end; gap: 5px; font-variant-numeric: tabular-nums; min-width: 0; }
.shell .graph-toolbar-actions > span { min-width: 33px; }
.shell .graph-tool {
  border-color: var(--graphite-hairline, #ffffff1a);
  background: var(--graphite-panel, #25272a);
  color: var(--graphite-accent, #dfe2e6);
  transition: background-color .18s, border-color .18s, color .18s;
}
.shell .graph-tool:hover, .shell .graph-tool:focus-visible {
  background: var(--graphite-raised, #2d2f33);
  border-color: #72757c;
  color: var(--graphite-ink, #f3f4f4);
}
.shell .graph-toolbar .graph-tool {
  height: 33px;
  min-width: 33px;
  border-radius: 7px;
}
.shell .graph-toolbar .graph-variable-button { font-size: 10px; white-space: nowrap; }
.shell .graph-toolbar .graph-tool.graph-reset { margin-left: 2px; }
.shell .graph-viewport {
  background-color: #17191c;
  background-image: radial-gradient(circle at center, #c0c6d241 1px, transparent 1.25px);
}
.shell .graph-canvas { background: none; }
.shell .graph-node {
  --graph-node-tone: 193, 159, 230;
  border-color: #53565e;
  border-radius: 11px;
  background: var(--graphite-panel, #25272a);
  box-shadow: 0 12px 26px #090a0d91;
}
.shell .graph-node:has(.graph-kind-icon.blue) { --graph-node-tone: 148, 183, 234; }
.shell .graph-node:has(.graph-kind-icon.teal) { --graph-node-tone: 136, 207, 183; }
.shell .graph-node:has(.graph-kind-icon.amber) { --graph-node-tone: 236, 191, 131; }
.shell .graph-node:has(.graph-kind-icon.rose) { --graph-node-tone: 234, 151, 155; }
.shell .graph-node.dragging {
  border-color: rgba(var(--graph-node-tone), .53);
  box-shadow: 0 14px 28px #090a0db0, 0 0 0 2px rgba(var(--graph-node-tone), .19);
}
.shell .graph-node-top {
  border-radius: 11px 11px 0 0;
  border-color: var(--graphite-hairline, #ffffff1a);
  background: #ffffff04;
}
.shell .graph-node-top .graph-kind-icon { background: rgba(var(--graph-node-tone), .15); }
.shell .graph-node-top small { color: rgba(var(--graph-node-tone), .94); }
.shell .graph-node-body label { color: var(--graphite-muted, #b0b3b8); }
.shell .graph-node-body :is(input,textarea,select) { background: var(--graphite-bg, #17181a); border-color: var(--graphite-line, #414349); }
.shell .graph-node-body :is(input,textarea,select):focus {
  border-color: #a5a9b2;
  box-shadow: 0 0 0 3px #e6e9f218;
}
.shell .graph-node-body .graph-check input { accent-color: #b6a4d5; }
.shell .graph-var, .shell .graph-data-outputs > span { color: var(--graphite-muted, #b0b3b8); }
.graph-name-variables { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.graph-name-variables .graph-tool {
  min-height: 27px;
  height: auto;
  padding: 3px 7px;
  border-color: var(--graphite-hairline);
  color: var(--graphite-accent);
  font-size: 10px;
}
.graph-name-variables .graph-tool::before { content: '+'; margin-right: 4px; color: var(--graphite-muted); }
.graph-field:not(:has([data-data-input="name"].linked)) .graph-connected-name-variable { display: none; }
.shell .graph-port-label { color: var(--graphite-muted, #b0b3b8); }
.shell .graph-port-label:not(.branch-true):not(.branch-false) i { background: #b9a2d9; box-shadow: 0 0 0 2px #b9a2d947; }
.shell .graph-wire:not(.data):not(.branch-true):not(.branch-false) { stroke: #c2addf; }
.shell .graph-wire-glow:not(.data) { stroke: #b69bde; opacity: .09; }
.shell .graph-port-label:is(:hover,.armed):not(.branch-true):not(.branch-false) i { background: #f5eaff; box-shadow: 0 0 0 4px #bda9dc4d; }
.shell .graph-footer, .shell .graph-connections { color: var(--graphite-muted, #b0b3b8); }
.shell .graph-footer { border-color: var(--graphite-hairline, #ffffff1a); }
.shell .graph-wire-menu { background: var(--graphite-panel, #25272a); border-color: var(--graphite-line, #414349); }
.shell .graph-search:has(input:focus-visible) { outline: 2px solid var(--graphite-accent, #dfe2e6); outline-offset: 2px; }
.shell :is(.graph-tool,.graph-node-top,.graph-palette-group > summary):focus-visible {
  outline: 2px solid var(--graphite-accent, #dfe2e6);
  outline-offset: 2px;
}

@media (max-width: 1050px) {
  .shell .graph-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 700px) {
  .shell .graph-heading-actions { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
  .shell .graph-heading-actions .builder-runtime-actions { grid-column: 1 / -1; }
  .shell .graph-heading-actions [data-graph-save] { grid-column: 2; grid-row: 2; }
  .shell .graph-save-state { grid-column: 1; grid-row: 2; justify-self: start; text-align: start; }
  .shell .graph-palette { max-height: 245px; }
  .shell .graph-toolbar { flex-wrap: wrap; gap: 7px; padding: 8px 10px; }
  .shell .graph-toolbar-actions { justify-content: flex-start; width: 100%; }
  .shell .graph-toolbar .graph-reset { display: inline-flex; align-items: center; }
  .shell .graph-toolbar .graph-tool { font-size: 11px; height: 35px; }
  .shell .graph-toolbar .graph-tool[aria-label] { font-size: 15px; }
}
.graph-leave-dialog {
  position: fixed;
  inset: 0;
  width: min(460px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: clamp(16px, 4vw, 27px);
  border: 1px solid var(--graphite-line, #414349);
  border-radius: 16px;
  background: var(--graphite-stage, #202124);
  color: var(--graphite-ink, #f3f4f4);
  box-shadow: 0 24px 70px #08090bbf;
}
.graph-leave-dialog::backdrop { background: #090a0cb8; backdrop-filter: blur(6px); }
.graph-leave-dialog h2 { font-size: clamp(19px, 4vw, 24px); line-height: 1.2; letter-spacing: -.04em; }
.graph-leave-dialog p { margin: 10px 0 0; color: var(--graphite-muted, #b0b3b8); font-size: 13px; line-height: 1.5; }
.graph-leave-dialog .graph-leave-error { color: #ffb5ab; }
.graph-leave-error:empty { display: none; }
.graph-leave-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 21px; }
.graph-leave-actions .btn { flex: 1 1 auto; justify-content: center; min-height: 39px; font-size: 11px; }
.graph-leave-discard { background: #372b2d; border: 1px solid #674749; color: #ffbfbd; }
.graph-leave-discard:not(:disabled):hover { background: #483235; }
.graph-leave-dialog :focus-visible { outline: 2px solid var(--graphite-accent, #dfe2e6); outline-offset: 3px; }
@media (max-width: 420px) {
  .graph-leave-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .graph-leave-dialog[open] { animation: graph-leave-enter 230ms var(--graphite-ease, ease); }
  @keyframes graph-leave-enter { from { opacity: .7; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  .shell :is(.graph-search,.graph-palette-item,.graph-palette-item b,.graph-tool,.graph-port-label i,.graph-palette-group > summary,.graph-palette-group > summary::before) {
    transition: none;
  }
  .shell .graph-palette-item:hover b, .shell .graph-palette-item:focus-visible b { transform: none; }
}

.graph-toolbar { position: relative; z-index: 4; }
.graph-annotation-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}
.graph-annotation-toggle::-webkit-details-marker { display: none; }
.graph-annotation-toggle i { font: 16px/1 system-ui, sans-serif; }
.shell .graph-annotation-tools[open] .graph-annotation-toggle,
.shell .graph-annotation-tools[data-active="true"] .graph-annotation-toggle,
.shell .graph-annotation-modes button[aria-pressed="true"] {
  border-color: #bda7df80;
  background: #bda7df20;
  color: #e6d8fa;
}
.graph-annotation-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 12px;
  width: min(305px, calc(100% - 24px));
  padding: 14px;
  display: grid;
  gap: 12px;
  border: 1px solid #ffffff25;
  border-radius: 12px;
  background: var(--graphite-panel, #25272a);
  color: var(--graphite-ink, #f3f4f4);
  font-size: 12px;
  box-shadow: 0 16px 34px #090a0d99;
}
.graph-annotation-modes, .graph-annotation-edit { display: flex; flex-wrap: wrap; gap: 5px; }
.graph-annotation-edit[hidden], .graph-annotation-edit button[hidden] { display: none; }
.graph-annotation-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
  row-gap: 8px;
  color: var(--graphite-muted, #b0b3b8);
}
.graph-annotation-options label { display: flex; align-items: center; gap: 8px; }
.graph-annotation-options :is(input, select) {
  height: 33px;
  padding: 3px 6px;
  background: var(--graphite-stage, #202124);
  color: var(--graphite-ink, #f3f4f4);
  border: 1px solid #ffffff28;
  border-radius: 7px;
  font: inherit;
}
.graph-annotation-options input { width: 42px; cursor: pointer; }
.graph-annotation-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  z-index: 3;
  padding: 7px 10px;
  border: 1px solid #ffffff26;
  border-radius: 8px;
  background: #202124ee;
  color: #d6cadf;
  font-size: 11px;
  pointer-events: none;
}
.graph-viewport[data-annotation-mode="line"] { cursor: crosshair; }
.graph-viewport[data-annotation-mode="text"] { cursor: text; }
.graph-viewport:focus-visible { outline: 1px solid #bda7df80; outline-offset: -1px; }
.graph-annotation-lines, .graph-annotation-labels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.graph-annotation-lines polyline { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.graph-annotation-lines .graph-annotation-hit { stroke: transparent; }
.graph-annotation-lines [data-selected] .graph-annotation-line,
.graph-annotation-lines [data-annotation-id]:focus-visible .graph-annotation-line {
  filter: drop-shadow(0 0 4px #e6d8fa);
}
.graph-annotation-preview { opacity: .8; }
.graph-annotation-preview[hidden] { display: none; }
.graph-annotation-label {
  position: absolute;
  width: max-content;
  max-width: 330px;
  padding: 8px 11px;
  border: 1px solid #ffffff20;
  border-radius: 8px;
  background: #25272aed;
  color: #e6d8fa;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.graph-annotation-label[data-selected], .graph-annotation-label:focus-visible { outline: 2px solid #bda7df; }
.graph-viewport[data-annotation-mode="select"] .graph-annotation-hit { pointer-events: stroke; cursor: move; }
.graph-viewport[data-annotation-mode="select"] .graph-annotation-label { pointer-events: auto; cursor: move; }
.graph-annotation-dialog label {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: var(--graphite-muted, #b0b3b8);
  font-size: 12px;
}
.graph-annotation-dialog textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid #ffffff25;
  border-radius: 8px;
  background: var(--graphite-stage, #202124);
  color: var(--graphite-ink, #f3f4f4);
  font: inherit;
  font-size: 14px;
}

.graph-wire.is-cable { stroke-linecap: round; stroke-linejoin: round; }
.graph-wire.is-selected { stroke-width: 3; }
.graph-wire-handles {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: visible;
  pointer-events: none;
}
.graph-wire-handle {
  position: absolute;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(var(--graph-handle-scale, 1));
  background: transparent;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}
.graph-wire-handle::before {
  content: '';
  width: 11px;
  height: 11px;
  border: 2px solid #c9b2ee;
  border-radius: 4px;
  background: #232126;
  box-shadow: 0 0 0 3px #201e24e0, 0 0 10px #c9b2ee55;
  transition: background-color .15s, box-shadow .15s;
  pointer-events: none;
}
.graph-wire-handle:is(:hover, :focus-visible, .is-dragging)::before {
  background: #ddcef5;
  box-shadow: 0 0 0 3px #302940, 0 0 12px #ddcef577;
}
.graph-wire-handle.is-dragging { cursor: grabbing; }
.graph-wire-menu:has(.graph-wire-settings) {
  max-height: min(340px, 60dvh);
  overscroll-behavior: contain;
}
.graph-wire-settings { display: grid; gap: 8px; }
.graph-wire-settings strong { font-size: 13px; }
.graph-wire-settings p { margin: 0; overflow-wrap: anywhere; }
.graph-wire-style-options {
  display: flex;
  min-width: 0;
  gap: 4px;
  padding: 4px;
  border: 1px solid #ffffff16;
  border-radius: 9px;
  background: var(--graphite-stage, #202124);
}
.graph-wire-style, .graph-wire-action {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--graphite-muted, #b0b3b8);
  background: transparent;
  font: 650 11px / 1.4 Manrope, sans-serif;
  transition: background-color .15s, color .15s, border-color .15s;
  overflow-wrap: anywhere;
}
.graph-wire-style { flex: 1 1 0; min-width: 0; }
.graph-wire-style[aria-pressed="true"] {
  border-color: #bda7df60;
  color: #eadbf9;
  background: #bda7df1e;
}
.graph-wire-style:not(:disabled):hover,
.graph-wire-action:not(:disabled):hover { color: #f3eff8; background: #bda7df22; }
.graph-wire-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.graph-wire-action { flex: 1 1 auto; border-color: #ffffff19; background: #ffffff06; }
.graph-wire-action:disabled { opacity: .48; cursor: default; }
.graph-wire-settings + .graph-wire-remove { margin-top: 12px; }
.graph-wire-handle:focus-visible,
.graph-wire-menu :is(.graph-wire-style, .graph-wire-action):focus-visible {
  outline: 2px solid #d5bfef;
  outline-offset: -2px;
}
.graph-music-preview-card {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border-inline-start: 4px solid #9d6dff;
  border-radius: 6px;
  background: #19191d;
  color: #e8e7ed;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.graph-music-preview-card strong { color: #fbf9ff; font-size: 12px; }
.graph-music-preview-card small { margin-top: 3px; color: #d3b9eb; font-size: 10px; font-weight: 750; }
.graph-music-preview-card ol { margin: 0; padding-inline-start: 16px; }
@media (prefers-reduced-motion: reduce) {
  .graph-wire-handle::before, .graph-wire-style, .graph-wire-action { transition: none; }
}
