.workspace-v4 .canvas-node.operation[data-operation=custom]>.port-source{top:75px}.workspace-v4 .canvas-node.operation[data-operation=custom]>.port-reference{top:286px}.workspace-v4 .canvas-node.operation[data-operation=custom]:has(.text-creation-panel.collapsed)>.port-reference{top:210px}.text-creation-panel{height:292px;padding:0 12px;color:#4a4a55;cursor:default;box-sizing:border-box}.text-creation-panel.collapsed{height:146px}.text-creation-toolbar{height:26px;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#81818c}.text-creation-toolbar button{display:flex;align-items:center;gap:4px;background:transparent;color:#8a8a95;font-size:10px;padding:4px}.text-creation-panel textarea{width:100%;height:126px;box-sizing:border-box;padding:12px;border:1px solid #e5e5ed;border-radius:8px;resize:none;background:#fafafb;color:#41414a;font-family:inherit;font-size:13px;line-height:1.8;outline-offset:2px}.text-creation-summary{display:block;width:100%;height:48px;background:#fafafb;color:#777783;text-align:left;padding:8px 10px;font-size:12px;line-height:1.6;overflow:hidden;border-radius:6px}.text-reference-dropzone{display:flex;align-items:center;gap:7px;height:76px;padding:5px 7px;margin-top:8px;box-sizing:border-box;border:1px dashed #d8d8e1;border-radius:7px;background:#fcfcfd}.text-reference-dropzone>span{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;font-size:12px;color:#a1a1ac}.text-reference-chip{height:63px;width:77px;position:relative;flex:none;display:flex;align-items:center;justify-content:center;border-radius:5px;border:1px solid #e7e7ed;background:#fff;overflow:hidden}.text-reference-chip>button:first-child{height:100%;width:100%;padding:0;background:transparent;color:#62626f;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:10px}.text-reference-chip img{width:100%;height:43px;object-fit:cover}.text-reference-chip .text-reference-settings{position:absolute;left:2px;top:2px;background:#ffffffed;color:#61616d;font-size:8px;padding:2px 4px;border-radius:3px}.text-reference-chip .text-reference-remove{position:absolute;top:2px;right:2px;border-radius:50%;background:#333338d9;color:#fff;font-size:11px;width:15px;height:15px;padding:0;line-height:15px}.text-reference-add{height:35px;width:28px;display:grid;place-items:center;color:#a5a5af;background:transparent;flex:none}.text-reference-actions{height:35px;display:flex;align-items:center;gap:8px;white-space:nowrap}.text-reference-actions button{display:flex;gap:4px;align-items:center;background:transparent;padding:4px 0;font-size:10px;color:#787885}.text-reference-actions button[aria-pressed=true]{color:#386bac}.text-reference-actions>span{margin-left:auto;font-size:10px;color:#a4a4af}.text-creation-panel.collapsed .text-reference-dropzone{height:40px;margin-top:5px}.text-creation-panel.collapsed .text-reference-chip{height:31px;width:72px}.text-creation-panel.collapsed .text-reference-chip>button:first-child{flex-direction:row;font-size:10px;padding-right:8px}.text-creation-panel.collapsed .text-reference-chip img{height:31px;width:27px}.text-creation-panel.collapsed .text-reference-settings{display:none}.text-creation-panel.collapsed .text-reference-remove{width:12px;height:12px;font-size:9px;line-height:12px}.text-creation-panel.collapsed .text-reference-actions{height:27px}.text-reference-picker-banner{position:absolute;left:50%;top:54px;transform:translateX(-50%);padding:10px 14px;display:flex;align-items:center;gap:15px;background:#fffffff5;border:1px solid #dedee8;border-radius:10px;box-shadow:0 6px 24px #20202d12;color:#6a6a78;font-size:12px;z-index:90;white-space:nowrap}.text-reference-picker-banner button{background:#303038;color:#fff;padding:5px 10px;border-radius:5px;font-size:11px}.canvas-area.is-picking-reference .canvas-node.image{cursor:copy;outline:1px dashed #8ba6d2}.text-reference-choices .source-choices>button small{color:#6585ac;font-size:11px}.image-reference-drag{position:absolute;right:4px;bottom:4px;display:none;padding:4px 7px;background:#fffffff2;border:1px solid #e3e3eb;color:#7d7d89;border-radius:5px;font-size:10px;cursor:grab}.canvas-node.image:hover .image-reference-drag,.canvas-node.image.selected .image-reference-drag{display:block}.open-composer[draggable=true]{cursor:grab}
@media(max-width:700px){.text-reference-picker-banner{font-size:10px;max-width:calc(100% - 30px);white-space:normal;width:280px}}

.workspace-v4 .node-error{bottom:84px}.node-error .node-check-original{display:inline-block;margin:5px 0 0 7px;padding:4px 7px;background:#fff;border:1px solid #dfcbd0;border-radius:5px;color:#8e626d;font-size:10px}.task-outcome-message{font-size:11px;line-height:1.6;color:#9a7c84;max-width:270px;margin:6px 0 0}.task-item>div{min-width:0}

.node-error-unknown{max-height:155px!important;font-size:11px!important}.node-task-actions{display:flex;gap:7px;margin-top:7px}.node-task-actions button{margin:0!important;font-size:11px!important;padding:5px 8px!important;border-radius:5px}.node-task-actions .node-retry-original{background:#35353c;color:#fff}.node-error-unknown>small{display:block;color:#9a7370;font-size:10px;margin-top:6px}.retry-generation-review{padding:24px;font-size:14px;line-height:1.8;color:#686873}.retry-generation-review>strong{display:block;color:#303038;font-size:25px;margin:16px 0}.retry-generation-review>small{font-size:12px;color:#9696a0}

.workspace-v4 .node-card-heading>.node-drag-handle{display:flex;align-items:center;gap:8px;flex:1;min-width:0;align-self:stretch;padding:0;border:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:grab;touch-action:none;user-select:none}.workspace-v4 .node-card-heading>.node-drag-handle:active{cursor:grabbing}.workspace-v4 .node-card-heading>.node-drag-handle>svg{flex-shrink:0}.workspace-v4 .node-card-heading>.node-drag-handle:focus-visible{outline:2px solid #b2c4df;outline-offset:2px;border-radius:4px}

.node-drag-handle>.node-drag-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
