:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17312c;background:#f4f7f5;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px}.flow-page{width:min(1600px,100% - 36px);margin:30px auto 60px}.flow-topbar,.top-actions,.editor-toolbar,.canvas-toolbar{display:flex;align-items:center;gap:14px}.flow-topbar{justify-content:space-between;margin-bottom:14px}.top-actions{justify-content:flex-end}.eyebrow{margin:0 0 5px;color:#648078;font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}h1{margin:0;font-size:clamp(1.8rem,4vw,2.6rem);letter-spacing:-.04em}h2{margin:0;font-size:1.15rem;letter-spacing:-.02em}.status{min-height:24px;color:#4d6e63}.status.error{color:#a33d31}.muted,.hint{color:#61786f;font-size:.88rem;line-height:1.5}.hint{margin:14px 0 0}.card{border:1px solid #dce6e1;border-radius:16px;background:white;box-shadow:0 8px 28px #17312c0a}.login-card{max-width:440px;margin:36px auto;padding:24px}.login-card form>label{display:block;margin:16px 0 8px;font-weight:650}.login-card input{width:100%;min-height:44px;padding:10px;border:1px solid #c9d8d0;border-radius:9px;font:inherit}.primary,.secondary,.quiet,.palette-item,.inspector button{min-height:40px;padding:9px 13px;border:0;border-radius:9px;font:inherit;font-weight:650;cursor:pointer}.primary{background:#176347;color:#fff}.secondary{display:inline-flex;align-items:center;justify-content:center;background:#e8f3ec;color:#1d6049;text-decoration:none}.quiet{background:transparent;color:#376b54}.hidden{display:none!important}.notice{margin:14px 0;padding:13px 16px;border:1px solid #d8e7dc;border-radius:11px;background:#edf7f0;color:#315d47;line-height:1.5}.editor-toolbar{margin:14px 0;padding:12px;border:1px solid #dce6e1;border-radius:13px;background:white}.editor-toolbar label{font-size:.9rem;font-weight:650;white-space:nowrap}.editor-toolbar input{flex:1;min-width:140px;min-height:40px;padding:8px 10px;border:1px solid #c9d8d0;border-radius:9px;font:inherit}.editor-toolbar #reset{margin-left:auto}.flow-layout{display:grid;grid-template-columns:210px minmax(420px,1fr) 270px;align-items:stretch;gap:14px;min-height:690px}.palette,.inspector{padding:16px}.palette h2,.inspector h2{margin-bottom:10px}.palette>.muted{margin:0 0 14px}.palette-item{display:flex;width:100%;align-items:center;gap:10px;margin:8px 0;padding:10px;border:1px solid #e3ebe6;background:#fbfcfb;text-align:left}.palette-item:hover{border-color:#8bbba0;background:#f1f8f3}.palette-item span:last-child{display:grid;gap:3px}.palette-item small{color:#698078;font-size:.72rem;font-weight:400}.node-mark{display:grid;width:31px;height:31px;place-items:center;border-radius:9px;font-size:15px}.mark-start{background:#e5f4e9;color:#167747}.mark-message{background:#e8f0ff;color:#356cbd}.mark-condition{background:#fff1d8;color:#a86913}.mark-replies{background:#f4eaff;color:#7a4bb0}.mark-handoff{background:#ffebe7;color:#b34c3d}.canvas-panel{min-width:0;padding:10px;overflow:hidden}.canvas-toolbar{justify-content:space-between;min-height:34px;padding:0 4px 8px}.canvas-scroll{height:640px;overflow:auto;border:1px solid #e1e9e4;border-radius:11px;background-color:#f7faf8;background-image:radial-gradient(#c9d9d0 1px,transparent 1px);background-size:20px 20px}.canvas{position:relative;width:1800px;height:1200px}.edges,.nodes{position:absolute;inset:0;width:1800px;height:1200px}.edges{z-index:1;pointer-events:none}.edges path{fill:none;stroke:#74a58b;stroke-width:2.5}.edges circle{fill:#74a58b}.edges text{fill:#567b68;font-size:12px}.nodes{z-index:2;pointer-events:none}.flow-node{position:absolute;width:280px;min-height:110px;padding:0 12px 10px;border:1px solid #cfddd5;border-radius:12px;background:white;box-shadow:0 5px 18px #17312c16;pointer-events:auto}.flow-node.selected{border:2px solid #2c8a60;box-shadow:0 0 0 3px #2c8a6024,0 5px 18px #17312c16}.flow-node__head{display:flex;align-items:center;gap:9px;margin:0 -12px 8px;padding:10px 12px;border-radius:11px 11px 0 0;background:#f0f6f2;cursor:grab;touch-action:none}.flow-node__head:active{cursor:grabbing}.flow-node__icon{display:grid;width:26px;height:26px;place-items:center;border-radius:7px;background:#e1efe6;color:#286849}.flow-node__title{overflow:hidden;color:#244b3c;font-size:.86rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.flow-node__input{position:absolute;top:33px;left:-10px;width:20px;height:20px;border:2px solid #6d9c81;border-radius:50%;background:white;color:#437354;cursor:pointer}.flow-node__input:disabled{opacity:.35;cursor:not-allowed}.flow-node__body{min-height:34px;color:#5d746a;font-size:.78rem;line-height:1.4;overflow-wrap:anywhere}.flow-node__ports{display:grid;gap:5px;margin-top:8px}.port-row{display:flex;align-items:center;justify-content:flex-end;gap:7px;color:#678174;font-size:.7rem}.port-button{width:18px;height:18px;padding:0;border:2px solid #75a589;border-radius:50%;background:white;cursor:pointer}.port-button.pending{background:#246f4f;box-shadow:0 0 0 3px #246f4f2b}.inspector label{display:block;margin:14px 0 6px;color:#365749;font-size:.83rem;font-weight:650}.inspector input,.inspector textarea{width:100%;min-height:40px;padding:9px;border:1px solid #c9d8d0;border-radius:9px;font:inherit;font-size:.88rem}.inspector textarea{min-height:170px;resize:vertical;line-height:1.5}.inspector .field-help{margin:5px 0;color:#71857d;font-size:.73rem;line-height:1.4}.inspector .button-edit{display:grid;grid-template-columns:1fr auto;gap:7px;margin:8px 0}.inspector .button-edit input{min-width:0}.inspector .button-edit button{padding:0 8px;background:#f4ecea;color:#8b4137}.inspector-actions{display:flex;gap:8px;margin-top:18px}.inspector-actions .danger{background:#fff0ee;color:#a24437}.flow-topbar .quiet{border:1px solid #dce6e1}@media(max-width:1050px){.flow-layout{grid-template-columns:180px minmax(0,1fr)}.inspector{grid-column:1/-1}.palette-item small{display:none}}@media(max-width:650px){.flow-page{width:calc(100% - 20px);margin-top:18px}.flow-topbar{align-items:flex-start}.top-actions{flex-direction:column;align-items:stretch}.editor-toolbar{align-items:stretch;flex-wrap:wrap}.editor-toolbar label{width:100%}.editor-toolbar input{flex-basis:100%}.editor-toolbar #reset{margin-left:0}.flow-layout{grid-template-columns:1fr}.palette{display:grid;grid-template-columns:1fr 1fr;gap:6px}.palette h2,.palette>.muted,.palette .hint{grid-column:1/-1}.palette-item{margin:0;padding:8px}.canvas-scroll{height:500px}.inspector{grid-column:auto}}

.port-clear{width:18px;height:18px;padding:0;border:0;border-radius:50%;background:#f4ecea;color:#9b4e44;font-size:15px;line-height:16px;cursor:pointer}

.runtime-map{margin:0 0 14px;padding:16px}
.runtime-map__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.runtime-map__head h2{margin:0 0 5px}
.runtime-map__head .muted{margin:0;max-width:850px}
.runtime-map__badge{flex:none;padding:7px 10px;border:1px solid #dce6e1;border-radius:999px;background:#f7faf8;color:#376b54;font-size:.78rem;font-weight:750;letter-spacing:.04em}
.runtime-map__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}
.runtime-node{min-width:0;padding:13px;border:1px solid #dce6e1;border-radius:12px;background:#fbfdfb}
.runtime-node__kind{display:block;margin-bottom:8px;color:#61786f;font-size:.72rem;font-weight:750;letter-spacing:.045em;text-transform:uppercase}
.runtime-node strong{display:block;color:#17312c;font-size:.94rem;line-height:1.35}
.runtime-node p{margin:7px 0 0;color:#536b62;font-size:.82rem;line-height:1.5}
.runtime-node--language{border-color:#c9e0d1;background:#f3faf5}
.runtime-node--llm{border-color:#d7d0ed;background:#faf8ff}
.runtime-node--local{border-color:#e7d8b7;background:#fffaf0}
.runtime-map__note{margin:12px 0 0;color:#61786f;font-size:.8rem;line-height:1.45}
@media(max-width:1050px){.runtime-map__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.runtime-map{padding:13px}.runtime-map__head{display:block}.runtime-map__badge{display:inline-block;margin-top:8px}.runtime-map__grid{grid-template-columns:1fr}}

.inspector .fallback-rule{margin:10px 0;padding:10px;border:1px solid color-mix(in srgb,currentColor 22%,transparent);border-radius:10px}.inspector .fallback-rule summary{cursor:pointer;font-weight:700}.inspector .fallback-rule__enabled{display:flex;align-items:center;gap:9px}.inspector .fallback-rule__enabled input{width:auto;min-height:auto}.inspector .fallback-terms{min-height:88px}.inspector .fallback-responses{min-height:110px}
