*{box-sizing:border-box}:root{--color-bg:#f1f4f9;--color-surface:#fff;--color-border:#e2e8f0;--color-border-strong:#cbd5e1;--color-text:#1e293b;--color-text-muted:#64748b;--color-text-faint:#94a3b8;--color-primary:#2563eb;--color-primary-hover:#1d4ed8;--color-primary-soft:#eff6ff;--color-success:#16a34a;--color-success-soft:#dcfce7;--color-success-text:#166534;--color-danger:#dc2626;--color-danger-hover:#b91c1c;--color-danger-soft:#fdecea;--color-danger-text:#991b1b;--color-warning:#d97706;--color-warning-soft:#fff7e6;--color-header-bg:#0f172a;--color-header-bg-alt:#1a2438;--color-header-border:#263043;--color-header-text-muted:#94a3b8;--radius-sm:5px;--radius:8px;--radius-lg:12px;--radius-pill:999px;--shadow-sm:0 1px 2px #0f172a0f;--shadow-md:0 4px 14px #0f172a14;--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace}html{font-family:var(--font-sans)}body{font-family:var(--font-sans);background:var(--color-bg);color:var(--color-text);-webkit-font-smoothing:antialiased;margin:0;font-size:14px;line-height:1.45}h1,h2,h3,h4{color:var(--color-text);letter-spacing:-.01em;font-weight:600}code{font-family:var(--font-mono);background:var(--color-primary-soft);color:var(--color-primary-hover);border-radius:var(--radius-sm);padding:1px 5px;font-size:.9em}button{cursor:pointer;border:1px solid var(--color-border-strong);background:var(--color-surface);color:var(--color-text);border-radius:var(--radius-sm);padding:6px 12px;font-size:13px;font-weight:500;transition:background-color .12s,border-color .12s,box-shadow .12s}button:hover{border-color:var(--color-text-faint);background:#f8fafc}button:active{background:#f1f5f9}button.danger{border-color:var(--color-danger);color:var(--color-danger)}button.danger:hover{background:var(--color-danger-soft)}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--color-primary);outline-offset:1px}input,select,textarea{border:1px solid var(--color-border-strong);border-radius:var(--radius-sm);background:var(--color-surface);color:var(--color-text);padding:5px 8px;font-family:inherit;font-size:13px}input::placeholder,textarea::placeholder{color:var(--color-text-faint)}input:disabled,select:disabled,textarea:disabled{color:var(--color-text-faint);background:#f8fafc}label{color:var(--color-text)}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--color-border-strong);border-radius:var(--radius-pill);border:2px solid var(--color-bg)}::-webkit-scrollbar-thumb:hover{background:var(--color-text-faint)}.react-flow{direction:ltr}.react-flow__container{width:100%;height:100%;position:absolute;top:0;left:0}.react-flow__pane{z-index:1;cursor:-webkit-grab;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1px;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:.5s linear infinite dashdraw}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:.5s linear infinite dashdraw}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{-webkit-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:-webkit-grab;cursor:grab;position:absolute}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:0 0;pointer-events:none}.react-flow__nodesselection-rect{pointer-events:all;cursor:-webkit-grab;cursor:grab;position:absolute}.react-flow__handle{pointer-events:none;background:#1a192b;border:1px solid #fff;border-radius:100%;width:6px;min-width:5px;height:6px;min-height:5px;position:absolute}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;bottom:-4px;left:50%;transform:translate(-50%)}.react-flow__handle-top{top:-4px;left:50%;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{top:50%;right:-4px;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{z-index:5;margin:15px;position:absolute}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{background:#ffffff80;margin:0;padding:2px 3px;font-size:10px}.react-flow__attribution a{color:#999;text-decoration:none}@keyframes dashdraw{0%{stroke-dashoffset:10px}}.react-flow__edgelabel-renderer{pointer-events:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{color:#222;text-align:center;background-color:#fff;border:1px solid #1a192b;border-radius:3px;width:150px;padding:10px;font-size:12px}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:#0059dc14;border:1px dotted #0059dccc}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{box-sizing:content-box;cursor:pointer;-webkit-user-select:none;user-select:none;background:#fefefe;border:none;border-bottom:1px solid #eee;justify-content:center;align-items:center;width:16px;height:16px;padding:5px;display:flex}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{background-color:#3367d9;border:1px solid #fff;border-radius:1px;width:4px;height:4px;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{top:50%;left:0}.react-flow__resize-control.handle.right{top:50%;left:100%}.react-flow__resize-control.handle.top{top:0;left:50%}.react-flow__resize-control.handle.bottom{top:100%;left:50%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border:0 solid #3367d9}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;height:100%;top:0;transform:translate(-50%)}.react-flow__resize-control.line.left{border-left-width:1px;left:0}.react-flow__resize-control.line.right{border-right-width:1px;left:100%}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{width:100%;height:1px;left:0;transform:translateY(-50%)}.react-flow__resize-control.line.top{border-top-width:1px;top:0}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}html,body,#root{height:100%}.app{flex-direction:column;height:100dvh;display:flex}.app-header{background:var(--color-header-bg);border-bottom:1px solid var(--color-header-border);color:#fff;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:10px 20px;display:flex}.app-header h1{letter-spacing:-.01em;white-space:nowrap;color:#fff;margin:0;font-size:17px;font-weight:700}.app-header select{background:var(--color-header-bg-alt);border:1px solid var(--color-header-border);color:#fff;border-radius:var(--radius-sm);padding:6px 8px}.app-header .project-name{background:var(--color-header-bg-alt);border:1px solid var(--color-header-border);color:#fff;border-radius:var(--radius-sm);width:180px;padding:6px 10px}.app-header .project-name::placeholder{color:var(--color-header-text-muted)}.app-header nav{flex-wrap:wrap;flex:1;gap:4px;display:flex}.app-header nav button{color:var(--color-header-text-muted);border-radius:var(--radius-pill);background:0 0;border:1px solid #0000;padding:6px 12px;font-weight:500}.app-header nav button:hover{background:var(--color-header-bg-alt);color:#fff}.app-header nav button.active{background:var(--color-primary);border-color:var(--color-primary);color:#fff}.app-header>button{border:1px solid var(--color-header-border);color:#fff;white-space:nowrap;background:0 0}.app-header>button:hover{background:var(--color-header-bg-alt);border-color:var(--color-text-faint)}main{scrollbar-gutter:stable;flex:1;min-height:0;overflow:auto scroll}.app-footer{background:var(--color-header-bg);border-top:1px solid var(--color-header-border);color:var(--color-header-text-muted);flex-shrink:0;justify-content:center;align-items:center;gap:8px;padding:8px 16px;font-size:12px;display:flex}.footer-logo{border-radius:4px;width:18px;height:18px}.footer-link{color:inherit;align-items:center;gap:8px;text-decoration:none;display:flex}.footer-link:hover{color:#fff;text-decoration:underline}.footer-version{opacity:.6;font-variant-numeric:tabular-nums}.page{padding:20px}.page-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.page-header h2{margin:0;font-size:19px}.table-scroll{border:1px solid var(--color-border);border-radius:var(--radius);background:var(--color-surface);width:100%;overflow-x:auto}.pin-table{border-collapse:collapse;width:100%;min-width:640px;font-size:13px}.pin-table th,.pin-table td{border-bottom:1px solid var(--color-border);text-align:left;padding:8px 12px}.pin-table tbody tr:last-child td{border-bottom:none}.pin-table th{color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.03em;background:#f8fafc;font-size:12px;font-weight:600}.pin-table tbody tr:hover{background:#f8fafc}.hint{color:var(--color-text-muted);font-size:13px}.flow-page{height:100%;display:flex}.palette{border-right:1px solid var(--color-border);background:var(--color-surface);flex-direction:column;gap:6px;width:230px;padding:14px;display:flex;overflow-y:auto}.palette h3{text-transform:uppercase;letter-spacing:.03em;color:var(--color-text-muted);margin:0 0 4px;font-size:13px}.palette button{text-align:left}.canvas{background:var(--color-bg);flex:1}.inspector-panel{border-left:1px solid var(--color-border);background:var(--color-surface);width:300px;padding:16px;overflow-y:auto}.inspector label{color:var(--color-text-muted);flex-direction:column;gap:4px;margin-bottom:12px;font-size:13px;font-weight:500;display:flex}.inspector textarea{min-height:60px}.function-card{border:1px solid var(--color-border);border-radius:var(--radius-lg);background:var(--color-surface);box-shadow:var(--shadow-sm);max-width:700px;margin-bottom:16px;padding:16px 18px}.function-card-header{justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:10px;display:flex}.function-card-header label{flex-direction:column;flex:1;gap:4px;font-size:13px;display:flex}.code-editor{width:100%;min-height:180px;font-family:var(--font-mono);tab-size:2;resize:vertical;font-size:13px;line-height:1.5}.code-preview{color:#e2e8f0;border-radius:var(--radius);font-size:12px;font-family:var(--font-mono);white-space:pre;background:#0f172a;padding:16px;overflow:auto}.connect-grid{grid-template-columns:1fr 1fr;gap:16px;max-width:700px;display:grid}.connect-grid label{color:var(--color-text-muted);flex-direction:column;gap:4px;font-size:13px;font-weight:500;display:flex}.monitor{max-width:420px}.process-jump-bar{flex-wrap:wrap;flex:1;gap:6px;min-width:0;display:flex}.process-jump-bar button{border-radius:var(--radius-pill);background:var(--color-primary-soft);color:var(--color-primary-hover);white-space:nowrap;border-color:#bfdbfe;padding:5px 10px;font-size:12px}.process-jump-bar button:hover{border-color:var(--color-primary);background:#dbeafe}.process-jump-bar button{cursor:grab}.process-jump-bar button.dragging{opacity:.4}.process-jump-item{gap:2px;display:inline-flex}.process-jump-item.focused button:first-child{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}.process-focus-toggle{cursor:pointer!important;padding:5px 7px!important}.graph-search-results{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);width:360px;max-height:320px;box-shadow:var(--shadow-md);z-index:50;position:absolute;top:calc(100% + 4px);left:0;overflow-y:auto}.graph-search-results button{text-align:left;border:none;border-bottom:1px solid var(--color-border);white-space:normal;background:0 0;border-radius:0;width:100%;padding:6px 10px;font-size:12px;display:block}.graph-search-results button:last-child{border-bottom:none}.graph-search-results button:hover{background:var(--color-primary-soft)}.mode-switch{border-radius:var(--radius-pill);background:#eef1f6;gap:2px;padding:3px;display:inline-flex}.mode-switch button{border-radius:var(--radius-pill);color:var(--color-text-muted);background:0 0;border:none}.mode-switch button:hover{background:#0f172a0f}.mode-switch button.active{background:var(--color-surface);color:var(--color-text);box-shadow:var(--shadow-sm)}.pill{border-radius:var(--radius-pill);cursor:pointer;border:none;padding:3px 10px;font-size:12px;font-weight:600;display:inline-block}.pill-high{background:var(--color-success-soft);color:var(--color-success-text)}.pill-low{color:var(--color-text-muted);background:#f1f5f9}.mon-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);margin-bottom:16px;padding:16px 18px}.mon-card summary{cursor:pointer;color:var(--color-text);list-style:revert;font-size:14px;font-weight:600}.mon-card h4{text-transform:uppercase;letter-spacing:.03em;color:var(--color-text-muted);margin:0 0 8px;font-size:13px}.mon-process-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;display:grid}.mon-process-card{border:1px solid var(--color-border);border-radius:var(--radius);background:#f8fafc;padding:10px 12px}.mon-columns{grid-template-columns:repeat(4,1fr);gap:20px;display:grid}@media (width<=1100px){.mon-columns{grid-template-columns:repeat(2,1fr)}}@media (width<=600px){.mon-columns{grid-template-columns:1fr}}.step-requirements{border:1px solid var(--color-border);border-radius:var(--radius);background:#f8fafc;margin-bottom:14px;padding:12px 16px;font-size:13px}.step-requirements ul{margin:6px 0 0;padding-left:18px}.req-met{color:var(--color-success-text)}.req-unmet{color:var(--color-danger-text)}.sequence-layout{align-items:flex-start;gap:20px;display:flex}.setup-panel{flex-shrink:0;width:320px}.setup-panel h3{margin-top:0}.loop-panel{flex:1;min-width:0}.loop-panel h3{margin:0}.sequence-table{min-width:820px}.sequence-table td{vertical-align:top}.field-row{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.row-unreachable{background:var(--color-warning-soft)}.errors{background:var(--color-danger-soft);color:var(--color-danger-text);border-radius:var(--radius);border:1px solid #f5c2c0;margin-bottom:12px;padding:10px 14px}.read-only-view input,.read-only-view select,.read-only-view textarea,.read-only-view button{pointer-events:none;opacity:.65}@media (width<=900px){.sequence-layout{flex-direction:column}.setup-panel{width:100%}}@media (width<=760px){.app-header{padding:8px 12px}.app-header h1{display:none}.app-header .project-name{order:1;width:100%}.app-header nav{flex-wrap:wrap;flex:100%;order:2}.app-header nav button{flex:auto;padding:6px 4px;font-size:12px}.app-header>button{flex:auto;order:3;font-size:12px}.flow-page{flex-direction:column;height:auto}.palette{border-right:none;border-bottom:1px solid var(--color-border);flex-flow:wrap;width:auto;max-height:140px}.palette h3{flex-basis:100%}.canvas{height:50vh;min-height:320px}.inspector-panel{border-left:none;border-top:1px solid var(--color-border);width:auto;max-height:40vh}.connect-grid{grid-template-columns:1fr;max-width:none}.page{padding:12px}.graph-search{order:1;width:100%}.graph-search input{width:100%!important}.graph-search-results{width:100%;max-width:calc(100vw - 24px)}}@media (pointer:coarse){.edge-drag-handle,.edge-delete-btn{width:30px!important;height:30px!important;font-size:15px!important;line-height:28px!important}.process-focus-toggle{padding:10px 12px!important;font-size:15px!important}.process-jump-bar button,.mode-switch button,button{min-height:36px}}
