.canvas-node-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;width:100%;height:100%;min-height:100px;color:#6f7780;cursor:default}.canvas-node-empty-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;pointer-events:none}.canvas-node-empty-icon .canvas-node-type-icon{display:block}.canvas-node-empty-text .canvas-node-empty-icon{color:rgb(255 255 255 / 50%)}.canvas-node-empty .canvas-node-empty-action{display:flex;align-items:center;justify-content:center;gap:4px;flex:none;width:88px;height:36px;min-height:36px;margin:0;padding:0 8px;border:0;border-radius:10px;background:#3d3e46;color:#f4fbff;font-size:14px;font-weight:400;line-height:20px;cursor:pointer}.canvas-node-empty .canvas-node-empty-action:hover{background:#343b47}.canvas-node-empty .canvas-node-empty-action:focus-visible{outline:2px solid #95c0ff;outline-offset:3px}.canvas-node-empty .canvas-node-empty-action svg{flex:none;pointer-events:none}.canvas-node-empty .canvas-node-empty-action span{pointer-events:none}.canvas-node-type-icon{flex:none;vertical-align:middle}.canvas-node-prompt-entry{display:flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:4px 10px;border:1px solid #414653;border-radius:9px;background:#2b3039;color:#eaf4ff;font-size:13px}.canvas-node-prompt-entry:hover{background:#363d49}.canvas-node-prompt-entry:focus-visible{outline:2px solid #95c0ff;outline-offset:3px}

.graph-editor .graph-node{border:2.5px solid transparent;border-radius:22px;background:#222328;box-shadow:none;padding:0;overflow:visible}.graph-editor .graph-node.selected{border-color:#95c0ff;box-shadow:none}.graph-editor .graph-node .graph-node-head{position:absolute;left:0;right:0;bottom:calc(100% + 4px);top:auto;height:36px;min-height:36px;margin:0;padding:0;border:0;display:flex;gap:6px;align-items:center;color:#5f6870;font-size:15px;line-height:22px}.graph-editor .graph-node .graph-node-head span{flex:1;min-width:0}.graph-editor .graph-node .graph-node-head span:before{content:none}.graph-editor .graph-node .graph-node-head button{color:#b3c0cd;background:transparent;padding:0 2px;width:26px;height:28px;font-size:20px}.graph-editor .graph-node .graph-media,.graph-editor .graph-node .graph-text-content{position:relative;margin:0;padding:0;border-radius:19.5px;overflow:hidden;height:100%;width:100%;min-height:0;flex:1;background:transparent}.graph-editor .graph-node .text-node{width:100%;height:100%;min-height:0;border-radius:19px;padding:18px;resize:none;border:0;background:transparent;outline:0;box-sizing:border-box}.graph-editor .graph-node .node-port{width:30px;height:30px;top:calc(50% - 15px);border:1px solid #5f6870;background:#101214;box-shadow:none;color:transparent;opacity:0;pointer-events:none;padding:0;transition:opacity .1s}.graph-editor .graph-node .node-port.in{left:-41.5px}.graph-editor .graph-node .node-port.out{right:-41.5px}.graph-editor .graph-node .node-port:after{color:#798791;font-size:20px;line-height:24px}.graph-editor .graph-node:hover .node-port,.graph-editor .graph-node.selected .node-port,.graph-editor .graph-node:focus-within .node-port{opacity:1;pointer-events:auto}.graph-editor .graph-node.multi-selected .node-port{opacity:0;pointer-events:none}.graph-editor .node-port:focus-visible{outline:2px solid #95c0ff;outline-offset:3px}.graph-editor .graph-node .node-resize{width:22px;height:22px;bottom:-6px;right:-6px;background:transparent;border:0;border-right:3px solid #ddf1fc;border-bottom:3px solid #ddf1fc;border-radius:0 0 20px 0;color:transparent}.graph-editor .graph-node .video-replace{position:absolute;top:8px;right:8px;padding:5px 9px;background:#3d3e46db;border:0;border-radius:9px;font-size:12px}.graph-editor .graph-node .graph-caption{display:none}

.compact-media-composer{padding:16px}.compact-media-composer #node-prompt{min-height:80px;height:86px;margin-top:8px}.compact-media-composer .inspector-actions{display:flex;gap:5px;flex-wrap:wrap}.compact-media-composer .inspector-actions button{font-size:12px;padding:7px 9px}.compact-media-state{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:#879ba7;margin-top:10px}.compact-media-state .video-generate-button{width:34px;height:34px}

.graph-editor .graph-node .node-port:disabled,.graph-editor .graph-node .node-resize:disabled{opacity:0!important;pointer-events:none}

.graph-editor .graph-node .graph-node-head .node-quick-delete,.graph-editor .canvas-group header .node-quick-delete{display:grid;place-items:center;flex:none;width:28px;height:28px;padding:0;border:0;background:transparent;border-radius:6px;color:#aab6c4;cursor:pointer}.graph-editor .graph-node .graph-node-head .node-quick-delete:hover:not(:disabled),.graph-editor .canvas-group header .node-quick-delete:hover:not(:disabled){color:#ffb3b3;background:#82333340}.graph-editor .graph-node .graph-node-head .node-quick-delete:focus-visible,.graph-editor .canvas-group header .node-quick-delete:focus-visible{outline:2px solid #95c0ff;outline-offset:2px}.graph-editor .graph-node .graph-node-head .node-quick-delete:disabled,.graph-editor .canvas-group header .node-quick-delete:disabled{opacity:.35;cursor:not-allowed}.node-quick-delete svg{display:block;pointer-events:none}

/* Original-image viewing is available to both owners and read-only viewers. */
.graph-editor [data-node-image-view]{cursor:zoom-in}
.image-viewer-dialog{position:fixed;inset:20px;width:calc(100vw - 40px);height:calc(100vh - 40px);max-width:none;max-height:none;margin:0;padding:0;border:1px solid #485466;border-radius:14px;background:#11151c;color:#e3ebf5;box-shadow:0 24px 90px #000a;overflow:hidden}
.image-viewer-dialog[open]{display:flex;flex-direction:column}
.image-viewer-dialog::backdrop{background:#05080ddd;backdrop-filter:blur(4px)}
.image-viewer-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;min-height:58px;padding:11px 14px;border-bottom:1px solid #344050;background:#202733}
.image-viewer-heading>strong{flex:1;min-width:80px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:500}
.image-viewer-controls{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.image-viewer-controls button{min-width:34px;min-height:34px;padding:7px 11px;border:1px solid #455369;border-radius:7px;background:#293344;color:#dce9fa;font-size:12px;line-height:1.5}
.image-viewer-controls button:hover:not(:disabled){border-color:#98b7e6;background:#35445c}
.image-viewer-controls button:focus-visible,.image-viewer-viewport:focus-visible{outline:2px solid #a9caff;outline-offset:-3px}
.image-viewer-controls button:disabled{opacity:.4;cursor:not-allowed}
.image-viewer-controls [data-viewer-action=close]{font-size:22px;line-height:1;padding:5px 9px}
.image-viewer-controls [data-viewer-action=download]{border-color:#5e89c3;background:#365b8c}
.image-viewer-controls output{min-width:48px;text-align:center;color:#b4c9e5;font-size:12px;font-variant-numeric:tabular-nums}
.image-viewer-viewport{flex:1;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:none;cursor:grab;background-color:#10151c;background-image:linear-gradient(45deg,#ffffff04 25%,transparent 25%),linear-gradient(-45deg,#ffffff04 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ffffff04 75%),linear-gradient(-45deg,transparent 75%,#ffffff04 75%);background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0}
.image-viewer-viewport.dragging{cursor:grabbing}
.image-viewer-surface{display:grid;place-items:center;min-width:100%;min-height:100%}
.image-viewer-surface img{display:block;max-width:none;max-height:none;object-fit:contain;user-select:none;-webkit-user-drag:none}
.image-viewer-message{flex:none;min-height:34px;margin:0;padding:9px 14px;border-top:1px solid #2c3746;background:#1a222e;color:#a2b5cf;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:700px){.image-viewer-dialog{inset:8px;width:calc(100vw - 16px);height:calc(100dvh - 16px);border-radius:10px}.image-viewer-heading{align-items:flex-start;flex-direction:column;gap:9px;padding:10px}.image-viewer-heading>strong{width:100%;flex:none}.image-viewer-controls{justify-content:flex-start;gap:5px}.image-viewer-controls button{min-height:34px;padding:6px 8px;font-size:11px}.image-viewer-controls output{min-width:42px}.image-viewer-message{padding:8px 10px}}
.graph-editor .graph-node .graph-node-head .node-title-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.graph-editor .graph-node .graph-node-head .node-rename{flex:none;width:25px;height:26px;border-radius:6px;font-size:15px;line-height:1;cursor:pointer}
.graph-editor .graph-node .graph-node-head .node-rename:hover,.graph-editor .graph-node .graph-node-head .node-rename:focus-visible{color:#e3efff;background:#344456;outline:2px solid #95c0ff;outline-offset:1px}

.graph-editor .graph-node .graph-node-head .node-title-text[role="button"]:focus-visible{outline:2px solid #95c0ff;outline-offset:2px;border-radius:4px;color:#e3efff}
.graph-editor .graph-edges path{stroke-linecap:round;fill:none;pointer-events:none;vector-effect:non-scaling-stroke}
.graph-editor .graph-edges .wire-halo{stroke:#41bbff;stroke-width:6;opacity:.09}
.graph-editor .graph-edges .wire-line{stroke:#4882a3;stroke-width:1.3;opacity:.65}
.graph-editor .graph-edges .wire-flow{stroke:#9ce9ff;stroke-width:2;stroke-dasharray:32 968;stroke-dashoffset:0;opacity:0}
.graph-editor .graph-edges .wire-animated .wire-flow{opacity:.8;animation:canvas-wire-flow 3s linear infinite}
.graph-editor .graph-edges .wire-hit{stroke:transparent;stroke-width:14;pointer-events:stroke;cursor:pointer}
.graph-editor .graph-edges .wire-focused .wire-halo,.graph-editor .graph-edges .canvas-wire:hover .wire-halo{opacity:.25;stroke-width:8}
.graph-editor .graph-edges .wire-focused .wire-line,.graph-editor .graph-edges .canvas-wire:hover .wire-line{stroke:#66ceff;stroke-width:1.8;opacity:1}
.graph-editor .graph-edges .wire-focused .wire-flow,.graph-editor .graph-edges .canvas-wire:hover .wire-flow{stroke:#d5f7ff}
.graph-editor .graph-edges .wire-muted{opacity:.22}
.graph-editor .graph-edges .temporary-edge{stroke:#80dcff;stroke-width:2;stroke-dasharray:6 5;pointer-events:none;vector-effect:non-scaling-stroke}
@keyframes canvas-wire-flow{to{stroke-dashoffset:-1000}}
@media(prefers-reduced-motion:reduce){.graph-editor .graph-edges .wire-animated .wire-flow{animation:none;opacity:0}}
