:root{--bg: #202124;--sidebar-bg: #2b2c30;--card-bg: #32343a;--border: #555;--text: #f1f1f1;--primary: #4f8aff;--primary-hover: #3d7bf2;--success-bg: #14532d;--success-text: #bbf7d0;--error-bg: #7f1d1d;--error-text: #fecaca}body{font-family:Inter,system-ui,-apple-system,Segoe UI,Helvetica Neue,Arial,sans-serif;margin:0;padding:0;background:var(--bg);color:var(--text)}.app-header{background:var(--sidebar-bg);border-bottom:1px solid var(--border);padding:.5rem 1rem}.app-header h1{margin:0;font-size:1.5rem}.sidebar{width:300px;float:left;padding:10px;border-right:1px solid var(--border);height:100vh;box-sizing:border-box;background:var(--sidebar-bg)}.content{margin-left:320px;padding:10px;background:var(--bg);position:relative}button{background:var(--primary);color:var(--text);border:none;padding:.5rem .75rem;border-radius:6px;cursor:pointer;transition:background .15s ease-in-out;margin-top:.5rem}button:hover{background:var(--primary-hover)}.icon-btn{background:transparent;border:none;color:var(--text);padding:.25rem;cursor:pointer;font-size:1.1rem}.icon-btn:hover{color:var(--primary-hover)}.agent-actions{display:flex;gap:.25rem;margin-top:.25rem}textarea{width:100%;box-sizing:border-box}textarea,select,input{background:var(--card-bg);color:var(--text);border:1px solid var(--border);border-radius:4px}.artifact-popup{position:absolute;background:var(--card-bg);border:1px solid var(--border);box-shadow:0 2px 6px #0009;padding:10px;max-width:400px;max-height:300px;overflow:auto;z-index:1000}.artifact-popup pre{margin:0;white-space:pre-wrap}.artifact-popup-close{float:right;cursor:pointer;font-weight:700}.graph-wrapper{position:relative}.fit-button{position:absolute;top:10px;right:10px;z-index:5;background:var(--primary);color:var(--text)}.fullscreen-button{position:absolute;top:10px;right:110px;z-index:5;background:var(--primary);color:var(--text)}.agents-container{display:flex;flex-direction:column;gap:.5rem}.agents-group{display:flex;flex-wrap:wrap;gap:.5rem}.agent-card{border:1px solid var(--border);padding:.5rem;background:var(--card-bg);border-radius:6px;min-width:160px;font-size:.9rem}.agent-header{display:flex;justify-content:space-between;align-items:center}.gra-card{border-width:2px}.agent-name{font-weight:700;margin:0;margin-right:.25rem}.agent-timestamp{font-size:.8rem}.agent-metrics{margin-top:.25rem;display:flex;gap:.5rem}.metric-tile{background:var(--card-bg);border:1px solid var(--border);border-radius:6px;padding:.15rem .3rem;text-align:center;min-width:50px;font-size:.8rem}.metric-tile.success{background:var(--success-bg);color:var(--success-text)}.metric-tile.fail{background:var(--error-bg);color:var(--error-text)}.status-online{background:var(--success-bg);color:var(--success-text);font-weight:700;display:inline-block;padding:.1rem .25rem;border-radius:4px}.status-offline{background:var(--error-bg);color:var(--error-text);font-weight:700;display:inline-block;padding:.1rem .25rem;border-radius:4px}.clarification-block{border:1px solid var(--border);padding:.5rem;margin-bottom:1rem;background:var(--card-bg)}.chat-history{max-height:200px;overflow-y:auto;margin-bottom:.5rem;background:var(--bg);border:1px solid var(--border);padding:.25rem}.chat-item{margin-bottom:.25rem}.plan-cards{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}.plan-meta>.plan-cards{margin-top:.5rem}.plan-meta summary{cursor:pointer;font-weight:700;margin-bottom:.5rem}.plan-card{background:var(--card-bg);border:1px solid var(--border);border-radius:8px;padding:.75rem;min-width:160px;flex:1 1 200px;display:flex;flex-direction:column;word-wrap:break-word;overflow-wrap:break-word}.plan-card{background:var(--card-bg);border:1px solid var(--border);border-radius:8px;padding:.75rem;min-width:160px;flex:1;display:flex;flex-direction:row;align-items:flex-start;gap:.5rem}.plan-card.grouped-info{flex-direction:column}.plan-card.grouped-info .info-row{display:flex;align-items:flex-start;gap:.5rem;margin-bottom:.25rem}.card-header{font-weight:700;min-width:140px}.card-content{flex:1;word-break:break-word}.stat-card .card-content{display:flex;flex-wrap:wrap;gap:.25rem}.stat-pill{background:var(--card-bg);border:1px solid var(--border);border-radius:4px;padding:.25rem .5rem;font-size:.9rem}.stat-pill.failed{background:var(--error-bg);color:var(--error-text);font-weight:700}.combined-stats{display:flex;flex-wrap:wrap;gap:.5rem}.stat-section{flex:1 1 200px;display:flex;flex-direction:column;gap:.25rem}.stat-section .card-header{min-width:auto}.plan-card.important{background:var(--primary);color:var(--text);font-weight:700}.plan-info-failure{color:var(--error-text);font-weight:700;margin-top:.5rem}.plan-stats{border:1px solid var(--border);padding:.5rem;margin-bottom:1rem;background:var(--card-bg)}.plan-stats summary{cursor:pointer;margin-bottom:.5rem;font-weight:700}.stats-tiles{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.5rem}.stat-tile{background:var(--card-bg);border:1px solid var(--border);border-radius:6px;padding:.5rem;min-width:120px;text-align:center}.stat-tile.failed{background:var(--error-bg);color:var(--error-text);font-weight:700}.plan-stats pre{margin:0}.existing-plans{border:1px solid var(--border);padding:.5rem;margin-bottom:1rem;background:var(--card-bg)}.existing-plans summary{cursor:pointer;margin-bottom:.5rem;font-weight:700}.graph-section{border:1px solid var(--border);padding:.5rem;margin-bottom:1rem;background:var(--card-bg)}.graph-section summary{cursor:pointer;margin-bottom:.5rem;font-weight:700}.messages-history{margin-top:1rem}.artifacts-container{border:1px solid var(--border);padding:.5rem;margin-bottom:1rem;background:var(--card-bg)}.artifacts-container summary{cursor:pointer;margin-bottom:.5rem;font-weight:700}.artifact-section{margin-bottom:1rem}.artifact-section h5{margin:0 0 .5rem;font-size:1rem}.artifact-header{display:flex;justify-content:space-between;margin-bottom:.25rem;font-size:.85rem}.artifact-title{font-weight:700;margin-bottom:.25rem}.message-item{border:1px solid var(--border);padding:.5rem;margin-bottom:.75rem;background:var(--card-bg);border-radius:8px;box-shadow:0 2px 4px #0003}.message-item pre{margin:0;white-space:pre-wrap;padding:.5rem;background:#272822;border-radius:6px;overflow-x:auto}.message-item code{background:#272822;padding:.2rem .4rem;border-radius:4px}.msg-date{font-size:.8rem;color:#a1a1aa}.json-viewer summary{cursor:pointer;font-weight:700}.json-viewer{margin-left:.5rem}.loading-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:10000}.spinner{border:4px solid var(--border);border-top-color:var(--primary);border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.file-browser{margin-top:1rem;border:1px solid var(--border);padding:.5rem;background:var(--card-bg)}.file-browser table{width:100%;border-collapse:collapse}.file-browser th,.file-browser td{padding:.25rem .5rem;border-bottom:1px solid var(--border)}.file-browser .clickable-row{cursor:pointer}.file-browser .path-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.file-browser .file-actions button{margin-left:.5rem}.file-preview-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#0009;display:flex;align-items:center;justify-content:center;z-index:5000}.file-preview{background:var(--card-bg);border:1px solid var(--border);max-width:80%;max-height:80%;overflow:auto;padding:1rem;position:relative}.file-preview pre{margin:0;white-space:pre-wrap}.file-preview-close{position:absolute;top:.5rem;right:.5rem;cursor:pointer;font-weight:700}.log-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#0009;display:flex;align-items:center;justify-content:center;z-index:5000}.log-modal{background:var(--card-bg);border:1px solid var(--border);max-width:80%;max-height:80%;overflow:auto;padding:1rem;position:relative}.log-modal-close{position:absolute;top:.5rem;right:.5rem;cursor:pointer;font-weight:700}.error-message{color:var(--error-text);font-weight:700}.graph-legend{display:flex;flex-wrap:wrap;gap:.5rem 1rem;margin-bottom:.5rem}.legend-item{display:flex;align-items:center;gap:.25rem;font-size:.85rem}.legend-color,.legend-border{width:14px;height:14px;display:inline-block;border:1px solid var(--border);box-sizing:border-box}.legend-border{background:transparent;border-width:3px}.status-starting{background:#4a4a4a;color:#f1f1f1;font-weight:700;display:inline-block;padding:.1rem .25rem;border-radius:4px}.status-idle{background:#1d4ed8;color:#dbeafe;font-weight:700;display:inline-block;padding:.1rem .25rem;border-radius:4px}.status-busy{background:#9a3412;color:#ffedd5;font-weight:700;display:inline-block;padding:.1rem .25rem;border-radius:4px}.status-sleeping{background:#3f3f46;color:#a1a1aa;font-weight:700;display:inline-block;padding:.1rem .25rem;border-radius:4px}.status-error{background:#991b1b;color:#fecaca;font-weight:700;display:inline-block;padding:.1rem .25rem;border-radius:4px}.graph-editor-modal-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#000c;display:flex;align-items:center;justify-content:center;z-index:9999}.graph-editor-modal-content{position:relative;background:var(--bg);border:1px solid var(--border);border-radius:8px;width:90%;height:90%;max-width:1200px;max-height:800px;padding:20px;box-shadow:0 5px 15px #00000080;display:flex;flex-direction:column;min-height:500px}.react-flow{flex-grow:1;height:100%}.react-flow__pane{background-color:var(--bg)!important}.react-flow__handle{background:var(--primary)!important;border:1px solid var(--border)!important}.react-flow__edge-path{stroke:var(--border)!important;stroke-width:2px!important}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.animated .react-flow__edge-path{stroke:var(--primary)!important;stroke-width:3px!important}.react-flow__minimap{background:var(--sidebar-bg)!important}.react-flow__minimap-mask{fill:#0006!important}.react-flow__minimap-node{fill:var(--card-bg)!important;stroke:var(--border)!important}.react-flow__controls button{background:var(--card-bg)!important;color:var(--text)!important;border:1px solid var(--border)!important;border-radius:4px!important;width:32px;height:32px;display:flex;align-items:center;justify-content:center;margin:2px;font-size:1.2em;cursor:pointer;transition:background .15s ease-in-out,border-color .15s ease-in-out}.react-flow__controls button:hover{background:var(--primary-hover)!important;border-color:var(--primary)!important;color:var(--text)!important}.react-flow__controls button svg{fill:var(--text)!important}.fit-button,.fullscreen-button{background:var(--primary)!important;color:var(--text)!important;border:none!important;padding:.5rem .75rem!important;border-radius:6px!important;cursor:pointer!important;transition:background .15s ease-in-out!important;font-size:.9rem!important}.fit-button:hover,.fullscreen-button:hover{background:var(--primary-hover)!important}textarea,select,input{background:var(--card-bg)!important;color:var(--text)!important;border:1px solid var(--border)!important;padding:.4rem .6rem!important;border-radius:4px!important}textarea:focus,select:focus,input:focus{outline:none!important;border-color:var(--primary)!important;box-shadow:0 0 0 2px #4f8aff80}.react-flow__panel{font-size:.85rem!important;background:var(--card-bg)!important;color:var(--text)!important;border:1px solid var(--border)!important;box-shadow:0 2px 6px #0009!important;border-radius:8px!important;padding:10px!important;max-height:90vh;overflow:auto}.react-flow__panel h4{color:var(--primary)!important;margin-top:0!important;margin-bottom:8px!important;font-size:1rem!important}.react-flow__panel label{display:block;margin-top:10px!important;margin-bottom:4px!important;font-weight:700!important;color:var(--primary)!important}.react-flow__panel input[type=text],.react-flow__panel select{width:calc(100% - 16px)!important;box-sizing:border-box!important;background:var(--sidebar-bg)!important;color:var(--text)!important;border:1px solid var(--border)!important;padding:8px!important;border-radius:4px!important}.react-flow__panel input[type=text]:focus,.react-flow__panel select:focus{outline:none!important;border-color:var(--primary)!important;box-shadow:0 0 0 2px #4f8aff4d!important}.react-flow__panel p{font-size:.75em!important;color:var(--primary-hover)!important}.react-flow__panel ul{list-style:none;padding:0;margin:0}.react-flow__panel ul li{color:var(--text)!important;margin-bottom:5px;font-size:.8em}.react-flow__panel ul li button{background:transparent!important;color:var(--error-text)!important;border:none!important;padding:.1rem .3rem!important;margin-left:5px!important;width:auto!important;min-width:unset!important;font-size:.9em!important;margin-top:0!important}.react-flow__panel ul li button:hover{color:var(--error-bg)!important;background:transparent!important}.react-flow__panel button{background:var(--error-bg)!important;color:var(--error-text)!important;border:none!important;padding:.5rem .75rem!important;border-radius:6px!important;cursor:pointer!important;transition:background .15s ease-in-out!important;margin-top:10px!important;width:100%!important}.close-button{position:absolute;top:10px;right:10px;cursor:pointer;font-size:1.5em;color:var(--text);font-weight:700;line-height:1em;z-index:1}.close-button:hover{color:var(--primary-hover)}.react-flow__panel button:hover{background:#b91c1c!important}.react-flow{direction:ltr}.react-flow__container{position:absolute;width:100%;height:100%;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:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;-webkit-animation: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;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:-webkit-grab;cursor:grab}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:-webkit-grab;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background:#1a192b;border:1px solid white;border-radius:100%}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.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{font-size:10px;background:#ffffff80;padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@-webkit-keyframes dashdraw{0%{stroke-dashoffset:10}}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.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{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.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 rgba(0,89,220,.8)}.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{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.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{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.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-color:#3367d9;border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}
