.builder-node:hover{z-index:4}
.builder-node .node-content>b.untitled{color:#8a948e;font-style:italic}
.builder-node.selected,.builder-node:focus{z-index:12;outline:none}
.builder-node [data-delete-node]{position:relative;z-index:13;pointer-events:auto}
.builder-node:not(.decision-node){display:grid;grid-template-columns:50px minmax(0,1fr);overflow:visible}
.builder-node:not(.decision-node) .node-header{position:relative;height:auto;min-height:122px;border-radius:9px 0 0 9px;display:grid;place-items:center;padding:0;background:var(--node-color);cursor:grab}
.builder-node:not(.decision-node) .node-type-icon{width:28px;height:28px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.builder-node:not(.decision-node) .node-type-name{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.builder-node:not(.decision-node) .node-header small{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.builder-node:not(.decision-node) .node-header button{position:absolute;left:14px;bottom:8px;margin:0;background:#ffffff2b}
.builder-node:not(.decision-node) .node-content{min-width:0;padding:16px 13px 8px;display:flex;flex-direction:column}
.builder-node:not(.decision-node) .node-content>b{display:block;color:var(--node-color);line-height:1.2}
.builder-node:not(.decision-node) .node-content p{-webkit-line-clamp:2;margin:6px 0 4px}
.builder-node:not(.decision-node) .node-content small{display:block;margin-top:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.connection-layer{z-index:1;pointer-events:none}
.connection-layer .edge-hit{pointer-events:none}
.edge-delete{opacity:.72;pointer-events:all}
.edge-delete:hover{opacity:1}
.input-handle,.output-handle{opacity:.72}
.builder-stage.linking .builder-node:not(.link-source){cursor:crosshair;box-shadow:0 0 0 2px #159e7130}
.builder-stage.linking .builder-node:not(.link-source) .input-handle{opacity:1;transform:scale(1.35);animation:link-target-pulse .9s ease-in-out infinite alternate}
.builder-stage.linking .builder-node:not(.link-source):hover{box-shadow:0 0 0 4px #159e7140,0 10px 24px #243b3025}
@keyframes link-target-pulse{to{box-shadow:0 0 0 5px #159e7135}}
.decision-node{width:180px;height:150px;min-height:150px;border:0;background:transparent;box-shadow:none}
.decision-node::before{content:"";position:absolute;width:104px;height:104px;left:38px;top:23px;transform:rotate(45deg);border:2px solid #d97b0e;border-radius:10px;background:#fff8ec;box-shadow:0 7px 18px #7d4b111a}
.decision-node:hover,.decision-node.selected,.decision-node:focus{border-color:transparent;box-shadow:none}
.decision-node:hover::before,.decision-node.selected::before,.decision-node:focus::before{box-shadow:0 0 0 4px #ef8b1328,0 9px 22px #7d4b1125}
.decision-node .node-header{position:relative;z-index:2;height:42px;justify-content:center;background:transparent;color:#a85f0b;padding-top:17px;cursor:grab}
.decision-node .node-header small{display:none}.decision-node .node-header button{position:absolute;right:3px;top:2px;background:#ef8b13;color:#fff;opacity:1}
.decision-node .node-content{position:relative;z-index:2;padding:11px 30px 0;text-align:center}.decision-node .node-content p{display:none}.decision-node .node-content small{display:block;margin-top:7px;color:#9b6b31}
.decision-node .input-handle,.decision-node .output-handle{opacity:1}.decision-node .condition-input{left:84px;top:-7px}.decision-node .output-right{right:-7px;left:auto;top:69px}.decision-node .output-left{left:-7px;right:auto;top:69px}
.condition-port-label{position:absolute;z-index:3;top:63px;font-size:8px;font-weight:900;letter-spacing:.04em;color:#9a590d;background:#fff8ec;padding:2px 3px;border-radius:3px;pointer-events:none}.condition-port-label.label-true{right:13px}.condition-port-label.label-false{left:13px}
.builder-node .standard-input{left:99px;top:-7px}.builder-node .standard-output{left:99px;right:auto;top:auto;bottom:-7px}
.builder-node .side-output.side-left{left:-7px;right:auto;top:55px}.builder-node .side-output.side-right{left:auto;right:-7px;top:55px}
.builder-stage.linking .builder-node:not(.link-source) .side-output{opacity:1;transform:scale(1.25)}
.stage-toolbar button[data-tree-layout]{width:auto;padding:0 9px;font-size:9px;font-weight:750;color:#176b4d}
.topbar{height:56px;padding:0 18px}
.topbar nav{margin-left:24px}
.navbtn{padding:7px 10px;font-size:13px}
.mark{width:27px;height:27px;border-radius:7px;font-size:16px}
.topmeta{gap:9px}
.new-canvas-button{border:1px solid #9bcbb4;background:#edf8f2;color:#176b4d;border-radius:8px;padding:8px 11px;font-size:12px;font-weight:800;white-space:nowrap}
.new-canvas-button:hover{background:#dff4e9;border-color:#68af8d}
.canvas-page{max-width:none;width:100%;padding:14px 18px 18px}
.canvas-page .hero{align-items:center;margin-bottom:12px}
.canvas-page .hero h1{font-size:24px;margin:4px 0 2px}
.canvas-page .hero .muted{font-size:12px}
.canvas-page .kpis{gap:10px;margin-bottom:12px}
.canvas-page .kpi{padding:10px 13px}
.canvas-page .kpi .value{font-size:19px;margin-top:3px}
.canvas-page .kpi .sub{font-size:10px;margin-top:2px}
.canvas-page .interactive-workspace{grid-template-columns:235px minmax(620px,1fr) 325px;height:calc(100vh - 235px);min-height:700px;border-radius:10px}
@media(max-width:1100px){.canvas-page .interactive-workspace{grid-template-columns:210px minmax(520px,1fr);min-height:650px}}
@media(max-width:900px){.new-canvas-button{font-size:0;padding:8px}.new-canvas-button::after{content:'＋';font-size:16px}.topmeta{gap:5px}}
