:root{font-family:Inter,system-ui,sans-serif;color:#21324c;background:#f4f7fb;font-size:13px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #d8e1ed;background:white;color:#284364;border-radius:7px;padding:7px 11px}button:hover{border-color:#447de1;background:#f0f5ff}button:disabled{opacity:.45;cursor:default}.primary{background:#245bd3;color:white;border-color:#245bd3}.primary:hover:not(:disabled){background:#1b49ad;border-color:#1b49ad;color:#fff}.primary:active:not(:disabled){background:#163c8f;border-color:#163c8f;color:#fff}.primary:focus-visible{outline:2px solid #8eb4ff;outline-offset:2px}.danger{color:#b83251;margin-top:16px}input,select,textarea{border:1px solid #d6dfec;border-radius:6px;padding:7px;background:white;color:#21324c}textarea{resize:vertical;font:12px/1.6 ui-monospace,monospace;tab-size:2}label{display:flex;gap:7px;align-items:center}header{height:65px;display:flex;gap:10px;align-items:center;padding:12px 20px;background:white;border-bottom:1px solid #e2e8f2}header img{width:26px;height:26px;flex:none}header strong{font-size:17px}small,header small{display:block;color:#77869b;font-size:11px}.spacer{flex:1}#connection,#repository-state{font-size:11px;color:#637892}#notice{padding:8px 20px;color:#486687;background:#edf4ff;min-height:34px}#notice.error{background:#fff0f1;color:#ac2649}main{display:grid;grid-template-columns:245px minmax(400px,1fr) 285px;height:calc(100vh - 144px);min-height:650px}aside{background:white;padding:16px;overflow:auto}h2{font-size:14px;margin:4px 0 12px}h3{font-size:12px;margin-top:20px}.library{border-right:1px solid #e1e8f0}.library input{width:100%;margin-bottom:12px}.operator{border:1px solid #dce5f2;border-radius:9px;padding:10px;margin-bottom:8px;cursor:grab;background:#fff;box-shadow:0 3px 10px #1c3e6810}.operator strong{display:block;overflow-wrap:anywhere;font-size:12px}.operator p{font-size:11px;color:#74829a;margin:5px 0 0}.dataset{margin:9px 0}.dataset button{width:100%;text-align:left;word-break:break-all}.item{display:block;padding:6px;font-size:11px;border-bottom:1px solid #edf1f6;cursor:pointer;word-break:break-all}.item:hover{background:#eff5ff}.workspace{display:flex;flex-direction:column;min-width:0}.canvas-toolbar{display:flex;align-items:center;gap:7px;padding:10px;flex-wrap:wrap;border-bottom:1px solid #e1e8f0;background:white}#job-name{width:180px}#canvas{position:relative;flex:1;min-height:280px;overflow:auto;background-color:#f8fbff;background-image:radial-gradient(#c5d4eb .8px,transparent .8px);background-size:20px 20px}#world{position:relative;width:6000px;height:4000px;transform-origin:0 0}#cards,#edges{position:absolute;inset:0}#edges{overflow:visible;pointer-events:none}#edges path{fill:none;stroke:#7192c3;stroke-width:2.3;pointer-events:stroke;cursor:pointer}#edges path:hover,#edges path.selected{stroke:#245bd3;stroke-width:4}#edges text{font-size:10px;fill:#5b718c;paint-order:stroke;stroke:#f8fbff;stroke-width:5;stroke-linejoin:round}.card{position:absolute;width:232px;border:1px solid #cbd9ed;border-top:4px solid var(--accent,#3b73e0);border-radius:10px;background:white;box-shadow:0 5px 16px #24436614;user-select:none}.card.selected{outline:2px solid #346ded;box-shadow:0 0 0 5px #346ded19}.card-head{padding:10px;cursor:grab}.card-head strong{display:block;overflow-wrap:anywhere}.card-head small{margin-top:4px;overflow-wrap:anywhere}.ports{display:grid;grid-template-columns:1fr 1fr;padding:6px 0 10px;border-top:1px solid #edf1f6;gap:4px}.ports>div{display:flex;flex-direction:column;gap:6px}.ports button{font-size:10px;padding:3px 5px;border:0;border-radius:0;color:#5c779d;text-align:left}.ports .out button{text-align:right}.ports button.active{background:#dbe8ff;color:#1648b7}.ports button:before{content:'●';font-size:9px;margin-right:4px}.ports .out button:before{content:''}.ports .out button:after{content:'●';font-size:9px;margin-left:4px}#empty{position:absolute;top:38%;left:10%;right:10%;text-align:center;color:#8a9cb8;pointer-events:none;font-size:20px}#empty small{margin-top:12px}.bottom{height:300px;min-height:200px;display:flex;flex-direction:column;background:white;border-top:1px solid #dce5f2}.tabs{display:flex;gap:5px;padding:8px 10px}.tabs button{border-color:transparent}.tabs .active{background:#eaf1ff;color:#2059c6}.tab{padding:0 12px 12px;overflow:auto;flex:1}.tab[hidden]{display:none!important}#tab-yaml,#tab-variables{display:flex;flex-direction:column}.row{display:flex;gap:7px;align-items:center;margin:6px 0}.row .muted{flex:1}#yaml,#variables{width:100%;flex:1;min-height:100px}.inspector{border-left:1px solid #dce5f2}.inspector label{display:block;margin:11px 0}.inspector input,.inspector select,.inspector textarea{width:100%;margin-top:5px}#step-params{min-height:140px}.input-row{padding:7px 0;border-bottom:1px solid #edf1f6;display:flex;align-items:center;gap:5px;word-break:break-all;font-size:11px}.input-row span{flex:1}.muted{color:#77879c;font-size:11px}.schema-port{border:1px solid #dde5f1;border-radius:7px;padding:10px;margin:9px 0}.schema-port h3{margin:0 0 6px}table{border-collapse:collapse;width:100%;font-size:11px}td,th{text-align:left;padding:5px;border-bottom:1px solid #e1e8f0}pre{white-space:pre-wrap;font-size:11px;word-break:break-word}.chat-message{padding:8px 12px;background:#f1f5fc;border-radius:8px;margin:6px 0;white-space:pre-wrap}.chat-message.user{background:#e6f0ff}#chat-form{display:flex;gap:8px;margin:10px 0}#chat-input{flex:1;min-width:0}@media(max-width:1050px){main{grid-template-columns:190px minmax(320px,1fr)}.inspector{grid-column:1/-1;max-height:400px}header small{display:none}}

#cards{pointer-events:none}.card{pointer-events:auto}

.workspace{min-height:0;overflow:hidden}.bottom{flex:0 0 300px}#canvas{min-height:0;flex:1 1 0}.library,.inspector{min-height:0}

html{height:100%;overflow:hidden}body{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
header,#notice{flex-shrink:0}header{height:auto;min-height:65px;flex-wrap:wrap}
main{position:relative;flex:1;min-height:0;min-width:0;height:auto;overflow:hidden;grid-template-columns:225px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.library{overscroll-behavior:contain}.workspace{position:relative}.canvas-toolbar{flex-shrink:0}
.inspector{position:absolute;right:12px;top:62px;bottom:12px;width:min(310px,calc(100% - 24px));z-index:20;border:1px solid #dce5f2;border-radius:12px;box-shadow:0 12px 40px #21324c26;overscroll-behavior:contain}
.inspector[hidden]{display:none}.inspector-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.inspector-heading h2{margin:0}
.bottom{height:auto;min-height:0;flex:0 0 min(300px,42%);overflow:hidden}.bottom.collapsed{flex:0 0 auto}.bottom.collapsed .tab{display:none!important}.tabs{flex-shrink:0;align-items:center}.tab{min-height:0}#yaml,#variables{min-height:0;resize:none}
@media(max-width:1050px){main{grid-template-columns:190px minmax(0,1fr)}.inspector{grid-column:auto;max-height:none}}
@media(max-width:650px){main{grid-template-columns:145px minmax(0,1fr)}header{padding:8px 12px;gap:6px}header img{width:26px;height:26px;flex:none}.library{padding:10px}.canvas-toolbar{padding:6px;gap:4px}#job-name{width:130px}.tabs{gap:0;padding:5px}.tabs button{padding:6px}}

.parameter-row{margin:9px 0;padding:9px;border:1px solid #dde5f1;border-radius:7px;min-width:0}.parameter-heading{display:flex;gap:6px;align-items:center}.parameter-heading input{min-width:0;flex:1}.inspector .parameter-heading button{flex:0 0 auto}.parameter-value>select{font-size:11px;background:#f4f7fb}.parameter-value textarea{min-height:55px;resize:vertical}.parameter-collection .parameter-collection{border-left:2px solid #dce5f2;padding-left:7px}.parameter-value input,.parameter-value select,.parameter-value textarea{max-width:100%}#step-params{min-height:0}

header{min-height:48px;padding:6px 14px;gap:8px}header img{width:26px;height:26px;flex:none}header strong{font-size:15px}header small{display:none}header button{padding:6px 9px}#header-connection{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#notice{min-height:24px;padding:4px 14px;font-size:11px;max-height:48px;overflow:auto}.canvas-toolbar{padding:6px 10px;gap:6px}.canvas-toolbar button,.canvas-toolbar input{padding:5px 8px}.tabs{padding:5px 8px}.tabs button{padding:5px 9px}
@media(max-width:800px){#header-connection{display:none}header{gap:5px}header button{font-size:11px;padding:5px 7px}}

.inspector-tabs{display:flex;gap:4px;margin:14px 0;border-bottom:1px solid #dce5f2;padding-bottom:6px}.inspector-tabs button{flex:1;font-size:12px;padding:7px 5px}.inspector-tabs [aria-selected=true]{background:#eaf1ff;border-color:#b6ccf8;color:#2059c6}.parameter-heading input[type=checkbox]{flex:0 0 16px;width:16px;margin:0}.parameter-value[hidden],[role=tabpanel][hidden]{display:none}.parameter-row p{font-size:11px;line-height:1.5;margin:6px 0;overflow-wrap:anywhere}.parameter-error{color:#b83251}#save-step{margin-top:14px}

.job-output-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:5px;align-items:center;margin:10px 0}.job-output-row small{grid-column:1/-1}.inspector .job-output-row input{min-width:0;margin:0}.job-output-row button{padding:6px}#edges path:focus-visible{outline:none;stroke:#245bd3;stroke-width:5}

#edges #connection-preview{stroke:#3479e9;stroke-width:2.6;stroke-dasharray:7 5;pointer-events:none}#edges #connection-preview.snapped{stroke:#15916a;stroke-dasharray:none;stroke-width:3}.ports button.connection-target{background:#daf5e8;color:#08744b;box-shadow:none;outline:none}

/* Conventional tab navigation: persistent baseline, active underline, quiet inactive tabs. */
.inspector{padding:0 16px 16px;font-size:12px}.inspector-heading{height:54px;position:sticky;top:0;z-index:3;background:#fff;margin:0 -16px;padding:14px 16px 10px;border-bottom:1px solid #edf1f6}.inspector-heading h2{font-size:13px;font-weight:600}.inspector-heading button{padding:2px 7px;font-size:20px;line-height:1.2;border-color:transparent;color:#708199}.inspector-tabs{position:sticky;top:54px;z-index:2;background:#fff;display:flex;gap:20px;margin:0 -16px 16px;padding:0 16px;border-bottom:1px solid #dce5f2}.inspector-tabs [role=tab]{position:relative;flex:0 0 auto;margin:0;padding:13px 0 12px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#68788f;font-size:11px;font-weight:500;line-height:20px;white-space:nowrap}.inspector-tabs [role=tab]:hover{background:transparent;color:#245bd3}.inspector-tabs [role=tab][aria-selected=true]{background:transparent;border:0;color:#245bd3;font-weight:600}.inspector-tabs [role=tab][aria-selected=true]:after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:3px;border-radius:3px 3px 0 0;background:#245bd3}.inspector-tabs [role=tab]:focus-visible{outline:2px solid #82aaf4;outline-offset:3px}.inspector [role=tabpanel]{min-height:160px;animation:inspector-panel-in .12s ease-out}.inspector-actions{position:sticky;bottom:-16px;padding:12px 0;background:#fff;border-top:1px solid #edf1f6;margin-top:16px;z-index:1}.inspector-actions #save-step{margin:0;width:100%}#inspector-empty{padding:16px 0}@keyframes inspector-panel-in{from{opacity:.6}to{opacity:1}}@media(prefers-reduced-motion:reduce){.inspector [role=tabpanel]{animation:none}}

/* Inspector typography is one pixel smaller than the rest of the editor. */
.inspector h3{font-size:11px}.inspector textarea{font-size:11px}.inspector .muted,.inspector small,.inspector .parameter-row p,.inspector .input-row{font-size:10px}

/* Selection is represented by the connection stroke, without a rectangular focus box. */
#canvas.edge-selected:focus,#canvas.edge-selected:focus-visible,#edges path:focus{outline:none}


/* Docked inspector: a dedicated grid column, never an overlay on the drawing. */
main.inspector-open{grid-template-columns:225px minmax(0,1fr) 300px}.inspector{position:relative;grid-column:3;grid-row:1;top:auto;right:auto;bottom:auto;width:auto;min-width:0;z-index:auto;border:0;border-left:1px solid #dce5f2;border-radius:0;box-shadow:none;max-height:none}.inspector-heading{border-bottom:1px solid #e6ebf2;background:#fafbfd}.inspector-tabs{background:#fff}.inspector-actions{background:#fff}@media(max-width:1050px){main.inspector-open{grid-template-columns:190px minmax(0,1fr) 285px}.inspector{grid-column:3}}@media(max-width:700px){main.inspector-open{grid-template-columns:145px minmax(0,1fr) 260px}}

/* Docked properties tabs share the header with the explicit close control. */
.inspector-tabs{top:0;gap:5px;padding:10px 10px 0;margin:0 -16px 16px;background:#edf1f7;border-bottom:1px solid #aebdd0;align-items:end}.inspector-tabs [role=tab]{flex:1;padding:8px 5px;border:1px solid #b7c5d8;border-bottom:0;border-radius:6px 6px 0 0;background:linear-gradient(#f9fbfe,#e0e7f1);box-shadow:inset 0 1px 0 #fff,0 -1px 3px #18345312;color:#50627a}.inspector-tabs [role=tab]:hover{background:linear-gradient(#fff,#edf3fc)}.inspector-tabs [role=tab][aria-selected=true]{background:linear-gradient(#fff,#f7faff);border:1px solid #8ca9d3;border-bottom:0;box-shadow:0 -2px 5px #244c7d18,inset 0 2px 0 #3c73d9;color:#2059bc}.inspector-tabs [role=tab][aria-selected=true]:after{height:2px;bottom:-1px;background:#f7faff;border-radius:0}.inspector-tabs #close-inspector{flex:0 0 23px;align-self:center;margin-bottom:6px;padding:0;border:0;background:transparent;box-shadow:none;font-size:20px;line-height:24px;color:#68788f}

/* Visio-style collapsible operator stencils. */
.library{padding:12px 10px}.operator-category{margin:0 0 5px;border:1px solid #d8e2ef;border-radius:6px;overflow:hidden;background:#fff}.operator-category summary{display:flex;align-items:center;gap:6px;cursor:pointer;list-style:none;padding:10px 8px;background:linear-gradient(#fafcff,#edf2f8);font-size:11px;font-weight:600;border-left:3px solid #6486b5;user-select:none}.operator-category summary::-webkit-details-marker{display:none}.operator-category summary:before{content:'▸';color:#71839b}.operator-category[open] summary:before{content:'▾'}.operator-category summary span{flex:1}.operator-category summary small{font-size:10px;border-radius:9px;background:#e2e9f3;padding:1px 6px;color:#5e718b}.operator-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:7px}.operator-grid .operator{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:6px;min-width:0;min-height:32px;margin:0;padding:4px 5px;border:1px solid transparent;border-radius:5px;background:transparent;box-shadow:none;color:#344b68;cursor:grab}.operator-grid .operator:hover,.operator-grid .operator:focus-visible{border-color:#a9c4e9;background:#edf5ff;box-shadow:0 2px 5px #24436612}.operator-grid .operator:active{cursor:grabbing}.operator svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.operator-name{min-width:0;font-size:11px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}.operator-grid .operator small{font-size:9px;color:#8a98aa}.operator-tooltip{position:fixed;z-index:100;pointer-events:none;width:min(340px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:hidden;padding:14px 16px;border:1px solid #bdcfe5;border-radius:8px;background:#fff;box-shadow:0 8px 28px #1839582b;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.operator-tooltip strong{display:block;font-size:13px;color:#234369}.operator-tooltip small{margin-top:5px;font-size:10px}.operator-tooltip p{margin:10px 0;color:#536881}.tooltip-detail{font-size:11px;margin:6px 0;color:#52677f}@media(max-width:700px){.operator-grid{gap:3px;padding:4px}.operator-category summary{padding:9px 5px;font-size:10px}.operator svg{width:27px;height:27px}.operator-name{font-size:9px}}

/* Persistent folding rails keep both sidebars accessible without floating controls. */
main,main.inspector-open{--library-width:300px;--inspector-width:0px;grid-template-columns:var(--library-width) 18px minmax(0,1fr) 18px var(--inspector-width)}main.inspector-open{--inspector-width:225px}main.library-collapsed{--library-width:0px}.library{grid-column:1;grid-row:1}.library[hidden]{display:none}.workspace{grid-column:3;grid-row:1}.inspector{grid-column:5;grid-row:1}.sidebar-toggle{grid-row:1;display:flex;justify-content:center;align-items:center;min-width:0;padding:0;border:0;border-radius:0;box-shadow:none;background:#edf2f8;color:#70849e;font-size:17px;line-height:1;border-left:1px solid #e0e7f1;border-right:1px solid #e0e7f1}.sidebar-toggle:hover{background:#e0ebfa;color:#245bd3}.sidebar-toggle:focus-visible{outline:2px solid #447de1;outline-offset:-2px}.library-toggle{grid-column:2}.inspector-toggle{grid-column:4}.inspector-tabs{padding-right:10px}@media(max-width:1050px){main,main.inspector-open{--library-width:285px}main.inspector-open{--inspector-width:190px}main.library-collapsed{--library-width:0px}}@media(max-width:700px){main,main.inspector-open{--library-width:260px}main.inspector-open{--inspector-width:145px}main.library-collapsed{--library-width:0px}}

/* Compact edge handles: only the centered capsule is a control. */
main,main.inspector-open{grid-template-columns:var(--library-width) 18px minmax(0,1fr) 18px var(--inspector-width)}
.sidebar-toggle{align-self:center;justify-self:center;position:relative;width:14px;height:44px;padding:0;border:1px solid #d1dce9;border-radius:8px;background:linear-gradient(90deg,#f5f8fc,#fff);box-shadow:0 1px 4px #24436610;cursor:pointer;font-size:0;color:#8294aa;transition:background .15s,border-color .15s,box-shadow .15s}
.sidebar-toggle:after{content:'';display:block;width:5px;height:5px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);margin-left:-2px}
.library-toggle[aria-expanded=true]:after,.inspector-toggle[aria-expanded=false]:after{transform:rotate(135deg);margin-left:2px}
.sidebar-toggle:hover{border-color:#9bb9df;color:#2b65b6;background:#f4f8ff;box-shadow:0 2px 6px #2443661c}
.sidebar-toggle:active{background:#e8f0fc;box-shadow:inset 0 1px 3px #24436614}
.sidebar-toggle:focus-visible{outline:2px solid #447de1;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.sidebar-toggle{transition:none}}

.selection-marquee{position:absolute;z-index:10;border:1px solid #367de0;background:#4386ed16;box-shadow:0 0 0 1px #ffffff80;pointer-events:none}#canvas{touch-action:none}.card-head{touch-action:none}




#canvas:focus,#canvas:focus-visible{outline:none}

.history-controls{display:flex;align-items:center;gap:0;border:1px solid #d6e0ed;border-radius:6px;overflow:hidden;flex-shrink:0;background:#fff}.canvas-toolbar .history-controls button{display:flex;align-items:center;gap:5px;border:0;border-radius:0;padding:5px 8px;min-height:28px;font-size:11px}.history-controls button+button{border-left:1px solid #e1e8f1!important}.history-controls svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.history-controls button:disabled{opacity:.4;background:#f6f8fb}

.card-head{position:relative;padding-right:46px}.step-heading{min-width:0}

/* Compact, schema-driven parameter rows. Names are labels, not value editors. */
.inspector .parameter-row{margin:0;padding:8px 0;border:0;border-bottom:1px solid #edf1f6;border-radius:0}
.parameter-heading{gap:5px;min-height:22px;margin-bottom:4px}.parameter-name{font-size:11px;font-weight:600;color:#435a76;overflow-wrap:anywhere;min-width:0}.parameter-required{color:#b05d62;font-size:11px}.parameter-help{font-size:11px;color:#91a0b2;cursor:help}.parameter-controls{display:flex;align-items:center;gap:4px;margin-left:auto;flex-shrink:0}.parameter-controls[hidden]{display:none}.parameter-type{font-size:10px;color:#8a97a9;font-weight:400}.inspector .parameter-controls select{width:auto;max-width:110px;margin:0;padding:2px 4px;font-size:10px;border-color:#e3e9f1;background:#fafbfd}.parameter-variable,.parameter-remove{padding:1px 5px;font-size:11px;min-height:21px;border-color:transparent;background:transparent;color:#8798ad}.parameter-variable.active{color:#2862c0;background:#edf4ff;border-color:#d5e4fa}.parameter-unset .parameter-heading{margin-bottom:0}.parameter-unset .parameter-name{color:#8a97a9}.inspector .parameter-value input,.inspector .parameter-value textarea,.inspector .parameter-value select{margin:0;padding:5px 7px;font-size:11px;line-height:17px;border-radius:5px}.parameter-value textarea{min-height:28px;max-height:150px;resize:vertical}.parameter-heading input[type=checkbox]{width:13px;flex:0 0 13px;height:13px}.parameter-collection .parameter-collection{border-left:1px solid #e5ebf3;padding-left:8px}.parameter-add{margin-top:6px;font-size:10px;padding:3px 7px}.parameter-create{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.inspector .parameter-create input{margin:0;width:100%;padding:5px 7px;font-size:11px}.parameter-create button{font-size:10px;padding:3px 6px}

/* Vertical resource rail, distinct from the horizontal property tabs. */
.library{display:grid;grid-template-columns:56px minmax(0,1fr);grid-template-rows:minmax(0,1fr);padding:0;overflow:hidden}.library-tabs{display:flex;flex-direction:column;align-items:stretch;grid-column:1;grid-row:1;gap:5px;margin:0;padding:9px 4px;background:#f2f5fa;border-right:1px solid #e5ebf3}.library-tabs button{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;flex:none;padding:10px 1px;border:0;border-radius:8px;background:transparent;box-shadow:none;color:#7a8ba2;font-size:9px;font-weight:500}.library-tabs button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-tabs button:hover{background:#e3ebf5;color:#4a668b}.library-tabs button[aria-selected=true]{background:#fff;color:#2b5d9d;box-shadow:0 1px 4px #203b6110}.library-tabs button:focus-visible{outline:2px solid #98b4d6;outline-offset:-2px}.library-tabs svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.library-panel{grid-column:2;grid-row:1;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:10px 8px 12px}.library-panel[hidden]{display:none}.library-hint{margin:0 0 12px;line-height:1.55}.library-panel #datasets-refresh{width:100%;text-align:center;margin-bottom:5px}@media(max-width:700px){.library{grid-template-columns:50px minmax(0,1fr)}.library-tabs{padding:8px 2px}.library-panel{padding:8px 5px 10px}.library-panel .operator-grid{grid-template-columns:minmax(0,1fr)}}
/* Compact operator rows keep names, icons and versions on one line. */
.library-panel .operator-grid{grid-template-columns:minmax(0,1fr);gap:1px;padding:3px}
.library-panel .operator-category summary{padding:5px 7px;line-height:1.4}
.library-panel .operator-mark{min-width:22px;width:22px}
.library-panel .operator svg{width:22px;height:22px}
.library-panel .operator small{white-space:nowrap;font-size:9px}
.library-panel #search{margin-bottom:7px;padding:6px 7px}



.port-schema{margin:0 4px 3px;padding:1px 2px;font:8px/1.3 ui-monospace,monospace;color:#62758d;user-select:text;overflow-wrap:anywhere;text-align:left}.port-schema-structure{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font:inherit}.port-schema.schema-error{max-height:32px;overflow:auto}



.inspector-tabs{gap:3px;padding:6px 7px 0;margin-bottom:10px}.inspector-tabs [role=tab]{min-width:0;padding:5px 3px;font-size:10px;line-height:16px;border-radius:4px 4px 0 0;white-space:normal}

.dataset .dataset-button{display:flex;align-items:center;gap:7px}.dataset-button svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.dataset-button span{min-width:0;overflow-wrap:anywhere}

.library-panel .dataset{margin:1px 0}.dataset .dataset-button{width:100%;min-height:24px;padding:3px 5px;border:0;border-radius:5px;background:transparent;box-shadow:none;font-size:11px;text-align:left;color:#405b79;gap:6px}.dataset .dataset-button:hover{background:#f0f5fa;color:#265d99}.dataset .dataset-button:focus-visible{outline:2px solid #98b4d6;outline-offset:-2px}.dataset-button .dataset-chevron{flex:none;font-size:12px;color:#8a9aaf;transition:transform .15s}.dataset-button[aria-expanded=true] .dataset-chevron{transform:rotate(90deg)}.dataset-children{margin:0 0 3px 13px;padding-left:12px;border-left:1px solid #e2eaf3}.dataset-children[hidden]{display:none}.dataset-children .item{border:0;border-radius:4px;padding:6px 4px;font-size:10px}

#notice{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-height:26px}#notice.warning{color:#8a631e;background:#fff7e7}#tab-logs{display:flex;flex-direction:column;overflow:hidden;padding-top:0}.log-toolbar{display:flex;align-items:center;gap:14px;padding:5px 0 8px;font-size:11px;flex-shrink:0}.log-toolbar select,.log-toolbar button{font-size:11px;padding:4px 7px}.log-toolbar label{gap:5px}.log-toolbar input{margin:0}#log-output{flex:1;min-height:0;overflow:auto;border:1px solid #dfe7f1;border-radius:6px;background:#f9fbfe;font:11px/1.6 ui-monospace,monospace;overscroll-behavior:contain}.log-entry{display:grid;grid-template-columns:65px 62px 65px minmax(0,1fr);gap:7px;padding:4px 8px;border-bottom:1px solid #edf1f6;align-items:start}.log-entry time,.log-source{color:#8593a6}.log-level{color:#4b7baf;font-size:10px;font-weight:600}.log-message{white-space:pre-wrap;overflow-wrap:anywhere;color:#47617f}.log-warning{background:#fff9ef}.log-warning .log-level,.log-warning .log-message{color:#936b27}.log-error{background:#fff3f3}.log-error .log-level,.log-error .log-message{color:#b04755}#log-retention{padding-top:5px;font-size:9px}.tabs [data-tab=logs] span{margin-left:3px;color:#8394ac;font-size:9px}@media(max-width:700px){.log-entry{grid-template-columns:60px 50px minmax(0,1fr);gap:4px}.log-source{display:none}.log-toolbar{gap:7px}}

.tabs [data-tab="logs"]{margin-left:auto}

.tabs [data-tab],.inspector-tabs [role=tab]{display:inline-flex;align-items:center;justify-content:center;gap:4px}.tabs .tab-icon,.inspector-tabs .tab-icon{width:13px;height:13px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.inspector-tabs .tab-icon{width:12px;height:12px}
/* Keep supporting controls compact so the workflow canvas remains the main surface. */
header{min-height:40px;padding:4px 12px;gap:7px}header img{width:26px;height:26px;flex:none}header strong{font-size:14px}header button{font-size:11px;padding:4px 8px}#notice{min-height:20px;max-height:22px;padding:3px 12px;font-size:10px}.canvas-toolbar{padding:4px 8px;gap:4px;font-size:11px}.canvas-toolbar button,.canvas-toolbar input{padding:4px 6px;font-size:11px}#job-name{width:150px}.bottom{flex-basis:min(230px,30%)}.bottom.collapsed{flex-basis:auto}.tabs{padding:3px 6px;gap:3px}.tabs button{padding:3px 7px;font-size:10px;line-height:16px}.tabs .tab-icon{width:12px;height:12px}.tab{padding:0 8px 7px}.tab .row{margin:3px 0;gap:5px}.tab .row button{padding:4px 7px;font-size:10px}.tab textarea{font-size:11px;line-height:1.5}.log-toolbar{padding:3px 0 5px;gap:10px;font-size:10px}.log-toolbar select,.log-toolbar button{padding:3px 6px;font-size:10px}#log-retention{padding-top:3px}.tab>p{margin:5px 0;font-size:10px}.schema-port{padding:7px;margin:6px 0}.schema-port h3{font-size:11px}.tabs #toggle-details{padding:2px 5px}

#export-dialog{width:min(850px,90vw);max-height:85vh;padding:16px;border:1px solid #d6e1ef;border-radius:12px;box-shadow:0 20px 70px #18385b40;color:#35516f}#export-dialog::backdrop{background:#172c4866}.export-heading,.export-actions{display:flex;align-items:center;gap:8px;justify-content:space-between}.export-heading{font-size:15px}.export-heading button{font-size:20px;border:0;background:transparent}.export-option{display:flex;align-items:center;gap:6px;margin-top:12px;font-size:12px}#export-dialog>p{font-size:11px;margin:6px 0 10px}#export-preview{height:min(52vh,520px);margin:10px 0}.export-actions{justify-content:flex-end}.export-actions button{font-size:12px}#export-status{margin-right:auto;font-size:11px}

/* CodeMirror owns text scrolling; keep the surrounding panels compact. */
.yaml-editor{min-width:0;min-height:0;overflow:hidden;border:1px solid #dce5f1;border-radius:6px;background:#fff}
.yaml-editor .cm-editor{height:100%;font:11px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;color:#334b68}
.yaml-editor .cm-editor.cm-focused{outline:2px solid #98b4d6;outline-offset:-2px}
.yaml-editor .cm-scroller{overflow:auto;font-family:inherit}
.yaml-editor .cm-content{padding:5px 0;tab-size:2}
.yaml-editor .cm-line{padding:0 7px}
.yaml-editor .cm-gutters{background:#f5f8fc;color:#8796ab;border-right:1px solid #e5ecf5;font-size:10px}
.yaml-editor .cm-activeLine,.yaml-editor .cm-activeLineGutter{background:#edf4fd}
.yaml-editor .cm-foldGutter .cm-gutterElement{padding:0 3px;cursor:pointer}
.yaml-editor .cm-search{font:11px/1.5 system-ui,sans-serif;padding:3px 6px}
.yaml-editor .cm-search input,.yaml-editor .cm-search button{font-size:11px;padding:2px 5px;max-width:150px}
.yaml-editor .cm-search label{display:inline-flex;font-size:10px;margin-right:5px}
.yaml-editor .cm-tooltip{font:11px/1.5 system-ui,sans-serif}
.yaml-editor .yaml-key{color:#205da6}.yaml-editor .yaml-string{color:#28724b}.yaml-editor .yaml-number{color:#9a4d14}.yaml-editor .yaml-literal{color:#8346a0}.yaml-editor .yaml-comment{color:#788696;font-style:italic}.yaml-editor .yaml-punctuation{color:#667894}.yaml-editor .yaml-variable{color:#ae3979;font-weight:600}
#export-preview .cm-editor{background:#f8fafd;font-size:12px}#tab-yaml,#tab-variables{overflow:hidden}

/* Parameter descriptions stay inside the sidebar instead of floating over controls. */
.parameter-heading .parameter-help{display:inline-flex;align-items:center;justify-content:center;flex:none;width:14px;height:14px;min-width:14px;padding:0;border:1px solid #aec0d6;border-radius:50%;background:#f2f6fc;color:#5d7da3;font:10px/1 system-ui,sans-serif;cursor:help}
.parameter-heading .parameter-help:hover,.parameter-heading .parameter-help:focus-visible{background:#e5eefb;border-color:#648bb9;color:#2e5f98;outline:1px solid #98b4d6;outline-offset:1px}
.parameter-description{position:sticky;bottom:0;z-index:2;margin-top:10px;padding:8px 7px;border-top:1px solid #dae4f0;background:#f6f9fd;box-shadow:0 -3px 9px #edf2f7;max-height:170px;overflow:auto;font-size:10px;color:#58708d;overflow-wrap:anywhere}
.parameter-description strong{font-size:10px;color:#355b86}.parameter-description p{margin:5px 0 0;white-space:pre-wrap;line-height:1.6}

#log-output{position:relative;overflow-anchor:none}

.inspector-tabs{gap:2px;padding:5px 4px 0}.inspector-tabs [role=tab]{font-size:9px;padding:4px 2px;line-height:14px;gap:2px}.inspector-tabs .tab-icon{width:11px;height:11px}.output-preview-port{padding:8px 0;border-bottom:1px solid #e3eaf3}.output-preview-port h3{font-size:11px;margin:0 0 5px}.output-preview-port h4{font-size:10px;margin:9px 0 4px}.output-preview-port table{font-size:9px;table-layout:fixed}.output-preview-port td{padding:4px 2px;overflow-wrap:anywhere;vertical-align:top}.output-preview-port pre{font:10px/1.5 ui-monospace,monospace;max-height:220px;overflow:auto;background:#f7fafd;border:1px solid #e2eaf4;padding:6px;border-radius:4px}.output-preview-port summary{cursor:pointer;font-size:10px;margin:6px 0}.port-schema.schema-error{color:#ad4251;background:#fff4f4;border-color:#efd6d9}

.port-schema.schema-status{display:flex;align-items:center;gap:4px;white-space:nowrap;overflow:hidden;max-height:none;background:transparent}.schema-status-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 10px;width:10px;height:10px;border:1px solid currentColor;border-radius:50%;font:700 8px/1 sans-serif}.schema-status>span:last-child{overflow:hidden;text-overflow:ellipsis}.port-schema.schema-unknown{color:#8390a1}.port-schema.schema-pending{color:#7189a2}.schema-pending .schema-status-icon{border-color:transparent}


.port-schema:has(.port-schema-table){max-height:96px;overflow:auto;padding:0}.port-schema-table{table-layout:fixed;width:100%;border-collapse:collapse;font:8px/1.25 ui-monospace,monospace}.port-schema-table th,.port-schema-table td{padding:1px 3px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-bottom:1px solid #eaf0f5;font-weight:400}.port-schema-table th{width:48%;color:#50657e}.port-schema-table td{color:#7a899c;border-left:1px solid #edf1f5}.port-schema-table tr:last-child>*{border-bottom:0}

.validation-issue{display:flex;align-items:baseline;gap:7px;padding:5px 0;border-bottom:1px solid #edf1f5;font-size:11px}.validation-issue.error{color:#ad4251}.validation-issue.warning{color:#98722b}.validation-issue button{font-size:10px;padding:2px 5px;flex:none}

.output-sample-scroll{max-height:200px;overflow:auto;border:1px solid #e2eaf4;border-radius:4px}.output-preview-port .output-sample-table{table-layout:auto;width:max-content;min-width:100%;font:9px/1.35 ui-monospace,monospace}.output-sample-table th,.output-preview-port .output-sample-table td{padding:3px 5px;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-right:1px solid #edf1f5}.output-sample-table th{position:sticky;top:0;background:#f1f6fb;font-weight:500}.output-sample-table tbody tr:nth-child(even){background:#f8fafd}.sample-null{color:#9a8b9d;font-style:italic}

.canvas-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:4px}.toolbar-icon{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}

.export-actions a{display:inline-flex;align-items:center;padding:7px 11px;border:1px solid #245bd3;border-radius:7px;text-decoration:none;cursor:pointer;font:inherit}

/* Catalog hierarchy: hosts, datasets, folders and data Items have distinct symbols. */
#datasets .catalog-icon{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#datasets .item{display:flex;align-items:center;gap:6px}
#datasets .item-chevron{width:8px;flex:none;color:#8a9aaf;transition:transform .15s}
#datasets .item[aria-expanded=true] .item-chevron{transform:rotate(90deg)}
#datasets .item-label{min-width:0;overflow-wrap:anywhere}
#datasets .item-children:not(:empty){margin-left:14px;padding-left:10px;border-left:1px solid #e2eaf3}
#datasets .item-children[hidden]{display:none}

#datasets .item-symbol{display:inline-flex;align-items:center;gap:2px;flex:none;min-height:20px}
#datasets .item-capabilities{display:flex;flex-direction:column;gap:1px;flex:none}
#datasets .item-capability{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

#datasets .item .item-label{flex:1;min-width:0}
#datasets .item{position:relative;padding:2px 4px;line-height:1.25;gap:4px}
#datasets .item>.catalog-icon{width:16px;height:16px}
#datasets .item-chevron[role=button]{cursor:pointer}
#datasets .item-actions-open{background:#edf4ff}
.item-quick-actions{position:fixed;display:flex;align-items:center;gap:2px;width:max-content;max-width:calc(100vw - 16px);overflow-x:auto;padding:2px 3px;border:1px solid #d4e1f1;border-radius:7px;background:#fff;box-shadow:0 4px 14px #365c8526;z-index:10000}
.item-quick-actions button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:25px;height:25px;padding:3px;border:0;border-radius:5px;background:transparent}
.item-quick-actions button:hover,.item-quick-actions button:focus-visible{background:#e7f0ff;outline:1px solid #b8cef0}
.item-quick-actions .catalog-icon{display:none}
.item-quick-actions .item-capability{width:16px;height:16px}
.item-quick-actions .item-symbol{min-height:0}
.item-quick-actions .item-path-action{margin-left:3px;border-left:1px solid #dce6f2!important}
.item-quick-actions .item-path-action>svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.item-quick-actions .item-symbol,.item-quick-actions .item-capabilities{display:inline-flex;align-items:center}
.item-quick-actions .item-capability{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Repository trust in operator details and canvas cards. */
.operator-mark{display:inline-flex;flex-direction:column;align-items:center;gap:2px;flex-shrink:0;min-width:38px}
.operator-mark{position:relative;overflow:visible}
.operator-role-badge{position:absolute;top:-4px;left:-5px;display:grid;place-items:center;width:13px;height:13px;border:1px solid #fff;border-radius:50%;background:var(--role-soft);color:var(--role-ink);font:700 10px/1 system-ui;box-shadow:0 1px 3px #21395130;pointer-events:none}
.operator-mark.role-source{--role-soft:#e3f3ed;--role-ink:#16835d}.operator-mark.role-transform{--role-soft:#e8effc;--role-ink:#376ac7}.operator-mark.role-sink{--role-soft:#fff0d8;--role-ink:#bf7416}
.operator-type-badge{position:absolute;right:-7px;bottom:-5px;padding:1px 2px;border:1px solid #fff;border-radius:3px;background:var(--role-soft);color:var(--role-ink);font:700 6px/1.15 system-ui;letter-spacing:.01em;box-shadow:0 1px 3px #21395130;pointer-events:none}

.library-panel .operator-mark{margin-right:7px}
.library-panel[data-operator-view=icons] .operator-mark{margin-right:0}
.operator-rating{display:flex;justify-content:center;gap:0;font-size:8px;line-height:10px;white-space:nowrap}
.operator-rating .rated{color:#159785}.operator-rating .unrated{color:#c9d1d7}
.operator-rating.unscored{color:#77879c;font-size:8px}
.step-mark{position:absolute;right:8px;top:9px}
.step-mark>svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.card-head{padding-right:54px;min-height:52px}
#step-description{display:block;width:100%;min-height:78px;max-height:240px;resize:vertical;font:inherit;line-height:1.5}

.dataset-tooltip p{white-space:pre-wrap;overflow-wrap:anywhere}.dataset-tooltip strong{display:block;font-weight:700}

.operator-rating .trust-icon{width:10px;height:11px;display:block;fill:currentColor;stroke:none;flex:none}.operator-rating .trust-check{fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.tooltip-rating{display:flex;align-items:center;gap:7px}.tooltip-rating .operator-rating{justify-content:flex-start}.tooltip-rating .trust-icon{width:12px;height:14px}

.target-picker{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px;font-weight:400;background:#eef4f7;border-color:#d5e1e7;color:#405b6d}.target-picker:hover{background:#e4eef3;border-color:#b9cdd8;color:#304e61}.target-picker:focus-visible{outline:2px solid #8eb4cf;outline-offset:2px}

#target-dialog{max-width:520px;border:1px solid #cbd8df;border-radius:12px;padding:22px;color:#234155}#target-dialog::backdrop{background:#172d4566}#target-dialog p{line-height:1.5}#target-dialog select{display:block;width:100%;margin-top:8px;padding:8px}.target-change-hint{font-size:11px;color:#567386;margin-left:6px}.target-picker #target-label{font-size:inherit;font-weight:400;max-width:180px;overflow:hidden;text-overflow:ellipsis}

header button{display:inline-flex;align-items:center;justify-content:center;gap:6px}header button[hidden]{display:none}.header-action-icon{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}

.examples-intro{font-size:11px;line-height:1.55;color:#718299;margin:2px 2px 12px}.example-job{padding:12px 10px;margin-bottom:10px;border:1px solid #dde6ef;border-radius:9px;background:#fff}.example-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.example-heading strong{font-size:12px;color:#35516f}.example-count{font-size:10px;white-space:nowrap;background:#edf3f9;color:#6c8199;border-radius:8px;padding:2px 6px}.example-job p{font-size:11px;line-height:1.55;color:#748399;margin:8px 0}.example-job .example-requirements{color:#946c30}.example-job button{font-size:11px;padding:5px 9px;color:#34668f;background:#f1f6fa}

.example-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:7px}.example-tag{font-size:10px;line-height:1.4;padding:2px 6px;border-radius:4px;background:#eaf3f5;color:#42777e;border:1px solid #d6e8eb;white-space:nowrap}

.example-title{display:flex;align-items:baseline;gap:6px;min-width:0}.example-number{font-size:10px;font-weight:600;font-variant-numeric:tabular-nums;color:#7393a5;flex:none}

#confirmation-dialog{width:min(440px,calc(100vw - 32px));box-sizing:border-box;padding:20px;border:1px solid #cedbea;border-radius:14px;background:#fff;color:#284561;box-shadow:0 18px 70px #18385b38}#confirmation-dialog::backdrop{background:#172c4866;backdrop-filter:blur(2px)}.confirmation-heading{display:flex;align-items:center;gap:10px}.confirmation-heading h2{margin:0;flex:1;font-size:16px;font-weight:600;line-height:1.4}.confirmation-symbol{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#eaf1ff;color:#3062ad;font-weight:700}.confirmation-heading button{border:0;background:transparent;font-size:22px;color:#668099;padding:2px 6px}#confirmation-message{margin:16px 0 20px;font-size:13px;line-height:1.65;overflow-wrap:anywhere}.confirmation-actions{display:flex;gap:8px;justify-content:flex-end}.confirmation-actions button{padding:7px 12px;font-size:12px}#confirmation-dialog.destructive .confirmation-symbol{background:#fff0ed;color:#b84035}#confirmation-dialog.destructive #confirmation-accept{background:#ba433c;border-color:#ba433c;color:#fff}#confirmation-dialog.destructive #confirmation-accept:hover{background:#9d342e}#confirmation-dialog button:focus-visible{outline:2px solid #2563eb;outline-offset:3px}

#tab-chat{display:flex;flex-direction:column;min-height:0;overflow:hidden}#chat-mode{flex:none}#messages{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding-right:3px}#chat-form{flex:none;width:100%;margin:5px 0 0;gap:6px;align-items:center}#chat-input{height:29px;min-height:29px;font:12px/1.4 system-ui,sans-serif;padding:5px 8px}#chat-send{height:29px;padding:4px 12px}.chat-message{overflow-wrap:anywhere}#tab-chat details pre{user-select:text}.chat-thinking{height:28px;display:flex;align-items:center;padding:3px 10px;color:#739cc8}.chat-thinking svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;animation:chat-thinking-spin 1.1s linear infinite}.chat-thinking circle{opacity:.18}.chat-thinking path{stroke-linecap:round}.chat-error{color:#ad4258;background:#fff1f3}@keyframes chat-thinking-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.chat-thinking svg{animation:none}}

#messages{display:flex;flex-direction:column;align-items:stretch;gap:7px}.chat-message{flex:none;max-width:85%;margin:0;padding:7px 11px;white-space:normal;line-height:1.55;border:1px solid #e2e8f0;box-shadow:0 1px 3px #24436606}.chat-message.assistant{align-self:flex-start;background:#f5f7fa;border-radius:3px 11px 11px 11px;color:#344b64}.chat-message.user{align-self:flex-end;background:#e9f1ff;border-color:#d4e2fa;border-radius:11px 3px 11px 11px;color:#274e85}.chat-speaker{display:block;margin-bottom:3px;font-size:9px;font-weight:600;color:#778ba2;letter-spacing:.2px}.chat-message.user .chat-speaker{color:#557db3}.chat-message-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.chat-proposal{align-self:flex-start;max-width:85%;padding:7px 11px;border:1px solid #e2e8f0;border-radius:3px 10px 10px;background:#f5f7fa}.chat-proposal summary{cursor:pointer;color:#5f7794;font-size:11px}.chat-message.assistant.chat-error{background:#fff1f3;color:#ad4258;border-color:#f0d1d8}

.chat-thinking,.chat-proposal{flex:none}

.chat-proposal-actions{display:flex;flex:none;align-self:flex-start;gap:6px;flex-wrap:wrap;margin-top:-2px}.chat-proposal-actions button{font-size:11px;padding:5px 9px}

#tab-chat.chat-floating{position:fixed;z-index:1200;right:24px;bottom:56px;width:calc(100vw / 4);height:min(560px,calc(100vh - 24px));min-width:min(240px,calc(100vw / 4));min-height:min(280px,calc(100vh - 24px));max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);padding:0 14px 14px;border:1px solid #becfe6;border-radius:13px;background:#fff;box-shadow:0 18px 60px #18385b35,0 3px 12px #18385b18;resize:both;isolation:isolate}#tab-chat.chat-floating[hidden]{display:none!important}#chat-titlebar{display:flex;align-items:center;justify-content:space-between;flex:none;margin:0 -14px;padding:9px 12px;border-bottom:1px solid #dce5f2;background:linear-gradient(#f9fbff,#edf3fc);cursor:move;touch-action:none;user-select:none}#chat-title{display:flex;align-items:center;gap:7px;font-weight:600;color:#35557c}#chat-titlebar button{border:0;background:transparent;font-size:21px;line-height:1;padding:3px 6px;color:#6d819a}#chat-titlebar button:hover{background:#dfe9f7;color:#274f86}#tab-chat #chat-mode{font-size:11px;margin:9px 0}#tab-chat #chat-form{padding-right:8px;margin-top:10px}[data-tab="chat"][aria-expanded="true"]{background:#eaf1ff;color:#2059c6}

.chat-thinking{height:auto;min-height:32px;gap:8px}.chat-thinking svg{flex:none}.chat-progress{font-size:11px;line-height:1.5;color:#6b819b;overflow-wrap:anywhere}

#chat-input{height:auto;min-height:31px;max-height:140px;resize:none;overflow-y:hidden;white-space:pre-wrap;line-height:18px;padding:5px 8px;font-family:inherit}#tab-chat #chat-form{align-items:flex-end}#chat-send{flex:none;align-self:flex-end}

.chat-message.assistant .chat-message-text{white-space:normal}.chat-message-text>:first-child{margin-top:0}.chat-message-text>:last-child{margin-bottom:0}.chat-message-text p{margin:0 0 7px}.chat-message-text ul,.chat-message-text ol{padding-left:20px;margin:6px 0}.chat-message-text li{margin:3px 0}.chat-message-text li>p{margin:3px 0}.chat-message-text code{font:11px/1.5 ui-monospace,monospace;background:#e7edf5;padding:1px 4px;border-radius:4px}.chat-message-text pre{background:#eaf0f7;border:1px solid #dbe4ef;border-radius:6px;padding:8px;overflow:auto;white-space:pre-wrap;margin:7px 0}.chat-message-text pre code{background:none;padding:0}.chat-message-text h1,.chat-message-text h2,.chat-message-text h3{font-size:13px;margin:9px 0 5px}.chat-message-text blockquote{margin:6px 0;padding-left:9px;border-left:3px solid #bdcde2;color:#6c819c}.chat-message-text a{color:#245bd3;text-decoration:underline}.chat-message-text table{display:block;overflow:auto;max-width:100%}

/* Operator browser: compact rows or icon tiles, sharing search and drag behavior. */
.operator-toolbar{display:flex;align-items:center;gap:6px;margin-bottom:7px}.operator-toolbar #search{flex:1;min-width:0;margin-bottom:0}.operator-view-switch{display:flex;gap:1px;padding:2px;background:#eaf0f7;border-radius:6px}.operator-view-switch button{padding:3px 6px;border:0;background:transparent;color:#74869d;box-shadow:none;font-size:15px;line-height:20px}.operator-view-switch button[aria-pressed=true]{background:#fff;color:#285f9b;box-shadow:0 1px 3px #203b6120}.operator-view-switch button:focus-visible{outline:2px solid #6495cd}
.library-panel[data-operator-view=icons] .operator-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:6px}.library-panel[data-operator-view=icons] .operator{display:flex;flex-direction:column;justify-content:flex-start;gap:4px;padding:8px 4px;min-height:86px;background:#f8faff;border:1px solid #e7edf5;border-radius:7px}.library-panel[data-operator-view=icons] .operator:hover{background:#edf5ff;border-color:#a9c4e9}.library-panel[data-operator-view=icons] .operator-mark{width:32px;min-width:32px}.library-panel[data-operator-view=icons] .operator svg{width:32px;height:32px}.library-panel[data-operator-view=icons] .operator-name{width:100%;text-align:center;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:10px;line-height:1.3}

#empty{top:20%;font-size:18px}
/* Catalog browsing must not select labels; other sidebar panels retain normal selection. */
#library-datasets-panel,#library-datasets-panel *{-webkit-user-select:none;user-select:none}
#library-datasets-panel input,#library-datasets-panel textarea,#library-datasets-panel [contenteditable="true"],#library-datasets-panel [contenteditable="true"] *{-webkit-user-select:text;user-select:text}

/* Port names and View badges stay visible inside each step. */
.ports{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.ports>div{min-width:0}
.ports button{display:flex;align-items:center;gap:4px;min-width:0;max-width:100%}
.ports .out button{justify-content:flex-end}
.ports .port-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ports .port-view{display:inline-flex;align-items:center;justify-content:center;flex:0 0 18px;width:18px;height:18px;padding:1px;border:1px solid #dce6f0;border-radius:4px;background:#edf4fa;color:#456b89}
.ports .port-view svg{display:block;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ports .port-view[data-view="records"]{color:#197b65;background:#eef9f5;border-color:#cde8de}
.ports .port-view[data-view="array"]{color:#ad7221;background:#fff8ec;border-color:#eee0bf}
.ports .port-view[data-view="items"]{color:#386ec2;background:#eef4ff;border-color:#d3e1f7}
.ports .port-view[data-view="pending"],.ports .port-view[data-view="any"]{color:#8a95a4;background:#f4f6f9;border-color:#e5e9ef}

.ports .port-view[data-view="variant"]{color:#7558a1;background:#f4eefb;border-color:#ded0f0}

/* Type mismatches never snap or replace an existing binding. */
.ports button.connection-incompatible{background:#fff0f1;color:#b83251;outline:1px solid #e6a2b1;cursor:not-allowed}
#edges #connection-preview.incompatible{stroke:#be3f5b;stroke-dasharray:3 5}
