:root{--bg:#f6f8f7;--surface:#fff;--ink:#1b302b;--muted:#667570;--border:#e2e8e5;--green:#176546;--mint:#e7f5ed;--sidebar:#152e28;--shadow:0 10px 35px #132f2812;--radius:12px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #38a775;outline-offset:3px}button{color:inherit}a{color:var(--green)}.icon{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.skip{position:fixed;top:-100px;left:15px;z-index:100;background:white;padding:12px}.skip:focus{top:15px}.boot{padding:60px;color:var(--muted)}
.shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--sidebar);color:#c4d3cd;position:fixed;inset:0 auto 0 0;width:220px;display:flex;flex-direction:column;padding:26px 16px 18px;z-index:20;overflow-y:auto}.brand{display:flex;align-items:center;gap:11px;color:#fff;text-decoration:none;padding:0 11px 27px;font-size:21px;font-weight:650;letter-spacing:-.6px}.brand img{width:35px;height:35px}.brand small{display:block;font-size:10px;letter-spacing:2.2px;font-weight:500;color:#9fb9ad;margin-top:3px}.workspace{display:flex;align-items:center;gap:10px;border:1px solid #456157;border-radius:8px;padding:11px;margin:0 4px 26px;font-size:14px}.workspace span:first-child{background:#395b4d;border-radius:5px;padding:5px 7px;color:white;font-size:12px}.workspace .icon{margin-left:auto;width:14px}.nav-label{font-size:10px;letter-spacing:1.8px;color:#8fa99d;margin:12px 14px 9px}.nav-group{display:grid;gap:4px;margin-bottom:15px}.nav{display:flex;align-items:center;gap:12px;border:0;background:transparent;color:#c4d3cd;text-decoration:none;padding:11px 13px;border-radius:7px;font-size:14px;text-align:left}.nav:hover{background:#234338;color:white}.nav.active{background:#2d5142;color:#b7f2cc}.nav.active .icon{color:#a2ebbf}.nav .count{margin-left:auto;background:#446b55;color:#d8f6e3;border-radius:4px;padding:1px 5px;font-size:11px}.sidebar-bottom{margin-top:auto;padding-top:25px}.local-box{margin:8px 5px 15px;border:1px solid #456157;border-radius:8px;padding:13px;font-size:12px;color:#adc7b8}.local-box strong{display:block;font-size:13px;color:#d5f5df;margin-bottom:7px}.local-box strong:before{content:'';display:inline-block;background:#80d6a0;width:6px;height:6px;border-radius:50%;margin-right:8px}.main-shell{grid-column:2;min-width:0}.topbar{height:72px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 34px;background:#ffffffc9;gap:12px}.breadcrumb{display:flex;align-items:center;gap:13px;color:var(--muted);font-size:13px}.breadcrumb strong{font-weight:500;color:var(--ink)}.top-actions{display:flex;align-items:center;gap:16px;font-size:12px;color:var(--muted)}.top-actions .avatar-small{background:#edf1ef;border:1px solid var(--border);width:31px;height:31px;display:grid;place-items:center;border-radius:50%;font-weight:600;color:#446153}.private{display:flex;align-items:center;gap:6px}.private .icon{width:14px}.mobile-menu{display:none}.content{padding:30px 34px 36px;max-width:1900px;margin:auto}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:27px}.eyebrow{text-transform:uppercase;letter-spacing:1.4px;font-size:10px;color:var(--green);font-weight:650;margin-bottom:9px}h1{font-size:28px;line-height:1.25;letter-spacing:-.9px;font-weight:620;margin:0 0 8px}h2{font-size:18px;letter-spacing:-.35px;margin:0;font-weight:600}h3{font-size:16px;margin:0 0 10px;font-weight:600}p{line-height:1.6}.sub{color:var(--muted);font-size:14px;line-height:1.5;margin:0}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:white;border:1px solid #d9e1dc;border-radius:7px;padding:10px 14px;font-size:13px;font-weight:550;white-space:nowrap;text-decoration:none;line-height:1.25}.btn:hover{background:#f0f5f2;border-color:#b7c9bf}.btn.primary{background:var(--green);border-color:var(--green);color:white}.btn.primary:hover{background:#104e35}.btn.danger{color:#b43d37;background:#fff7f6;border-color:#f0d5d1}.btn.ghost{background:transparent;border-color:transparent}.btn.small{padding:7px 10px;font-size:12px}.btn.icon-only{padding:8px}.btn .icon{width:16px;height:16px}.muted{color:var(--muted)}.badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;border-radius:5px;background:#edf1ef;color:#64726c;padding:4px 7px;white-space:nowrap;font-weight:550}.badge.green{background:#e8f5ed;color:#206a43}.badge.purple{background:#f1edfa;color:#7954a1}.badge.orange{background:#fff3dc;color:#86600e}.badge.red{background:#feebe8;color:#a34034}.badge.blue{background:#eaf2fc;color:#3e699a}.badge.outline{border:1px solid var(--border);background:white}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:26px}.stat{padding:20px 22px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.stat-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:13px}.stat-top .icon{width:17px;color:#7d9588}.stat-value{font-size:29px;letter-spacing:-1px;font-weight:620;line-height:1.2;margin-top:14px}.stat-foot{font-size:11px;color:#809086;margin-top:8px}.section-head{display:flex;justify-content:space-between;align-items:center;margin:24px 0 16px;gap:15px}.card{background:white;border:1px solid var(--border);border-radius:var(--radius);padding:22px;min-width:0}.card:hover{border-color:#bccfc3}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.card-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:20px;gap:10px}.symbol{width:43px;height:43px;border-radius:11px;display:grid;place-items:center;background:#e8f1ed;color:#267150}.symbol.blue{background:#eaf2fc;color:#537fad}.symbol.purple{background:#f0ebfb;color:#9271bd}.symbol.green{background:#e5f4eb;color:#4a8c65}.symbol.orange{background:#fff2dc;color:#ae8640}.symbol .icon{width:23px;height:23px}.card .description{font-size:13px;color:var(--muted);line-height:1.7;min-height:44px;margin:8px 0 18px}.card-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--border);padding-top:15px;margin-top:19px;gap:9px}.tags{display:flex;gap:6px;flex-wrap:wrap}.tag{font-size:11px;color:#64756c;background:#f5f7f5;border:1px solid #e9eeeb;border-radius:5px;padding:4px 7px}.avatars{display:flex;padding-left:0}.avatar{width:29px;height:29px;display:grid;place-items:center;background:#e8eefc;color:#6381b2;border:2px solid white;border-radius:50%;font-size:10px;font-weight:650}.avatar+.avatar{margin-left:-6px}.avatar:nth-child(2){background:#f0eafb;color:#9576b4}.avatar:nth-child(3){background:#e7f3ea;color:#689877}.grid-two{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:20px}.panel{background:white;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.panel-head{padding:18px 22px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-body{padding:22px}.empty{text-align:center;padding:48px 20px;color:var(--muted)}.empty .symbol{margin:0 auto 16px}.empty h3{color:var(--ink)}.empty p{font-size:14px;margin:8px auto 20px;max-width:380px}.notice{display:flex;align-items:flex-start;gap:10px;background:#f0f6f2;color:#4d6f5b;border:1px solid #dce9df;padding:12px 15px;border-radius:8px;font-size:12px;line-height:1.65;margin-bottom:22px}.notice.orange{background:#fff8e9;border-color:#f3e5c4;color:#8c6b29}.notice .icon{width:17px;height:17px;margin-top:2px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}th{font-size:11px;font-weight:550;letter-spacing:.4px;text-transform:uppercase;color:#77867f;background:#fafcfb;padding:13px 20px;border-bottom:1px solid var(--border);white-space:nowrap}td{padding:16px 20px;border-bottom:1px solid #eef1ef}tr:last-child td{border-bottom:0}td strong{font-weight:550}td .sub{font-size:12px;margin-top:4px}.table-actions{display:flex;gap:5px}.row-title{display:flex;align-items:center;gap:12px}.row-title .symbol{width:33px;height:33px;border-radius:8px}.row-title .icon{width:17px;height:17px}.toolbar{display:flex;align-items:center;gap:12px;margin-bottom:20px;justify-content:space-between}.search{display:flex;align-items:center;gap:9px;background:white;border:1px solid var(--border);padding:8px 12px;border-radius:7px;max-width:340px}.search input{border:0;outline:none;background:transparent;width:100%;font-size:13px}.search .icon{width:16px;color:var(--muted)}
.studio{background:white;border:1px solid var(--border);border-radius:12px;overflow:hidden}.studio-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 20px;border-bottom:1px solid var(--border)}.flow-title{display:flex;align-items:center;gap:10px}.flow-title select{border:0;font-weight:600;color:var(--ink);max-width:300px;background:transparent;font-size:14px}.flow-meta{display:flex;gap:12px;font-size:11px;color:var(--muted);margin-top:4px}.studio-tabs{display:flex;justify-content:space-between;align-items:center;padding:0 20px;border-bottom:1px solid var(--border);height:49px}.tab{border:0;background:none;padding:15px 3px 13px;margin-right:22px;border-bottom:2px solid transparent;font-size:12px;color:var(--muted)}.tab.active{color:var(--green);border-bottom-color:var(--green);font-weight:600}.canvas-shell{position:relative;display:flex;min-height:520px}.canvas-wrap{position:relative;min-width:0;flex:1;overflow:auto;background-color:#fafcfb;background-image:radial-gradient(#cfdcd4 1px,transparent 1px);background-size:20px 20px;height:540px}.canvas-area{position:relative;min-width:100%;min-height:100%}.canvas-inner{position:relative;width:1330px;height:670px;transform-origin:0 0}.edges{position:absolute;inset:0;width:1330px;height:670px;pointer-events:none;overflow:visible}.edges path{fill:none;stroke:#b7cbbd;stroke-width:2}.edges text{font-size:12px;fill:#6f8477}.node{position:absolute;width:228px;min-height:112px;background:white;border:1px solid #dbe5df;border-radius:10px;box-shadow:0 3px 8px #1b3f2710;cursor:grab;touch-action:none;user-select:none}.node:hover{border-color:#8eb59d;box-shadow:0 5px 15px #1b3f2720}.node.selected{border:1.7px solid var(--green);box-shadow:0 0 0 3px #25754810}.node-top{display:flex;align-items:center;gap:10px;padding:15px 14px 10px}.node-top .symbol{width:32px;height:32px;border-radius:8px}.node-top .symbol .icon{width:17px;height:17px}.node-title{font-size:12px;font-weight:650;line-height:1.5}.node-type{color:#7a8981;font-size:10px;margin-top:1px}.node-bottom{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#7c8b82;border-top:1px solid #edf1ee;padding:9px 14px}.node-bottom span{display:flex;align-items:center;gap:5px}.node-bottom .icon{width:12px;height:12px}.port{position:absolute;width:11px;height:11px;background:white;border:2px solid #a2b8aa;border-radius:50%;top:49px;padding:0;cursor:crosshair;z-index:2}.port.input{left:-6px}.port.output{right:-6px}.port:hover{background:var(--green);border-color:var(--green)}.canvas-controls{position:absolute;bottom:17px;left:18px;display:flex;align-items:center;gap:4px;background:white;border:1px solid var(--border);border-radius:8px;padding:4px;box-shadow:var(--shadow);font-size:11px}.canvas-controls button{border:0;background:none;padding:5px;display:flex}.canvas-controls .icon{width:16px;height:16px}.canvas-controls span{padding:0 8px;min-width:45px}.canvas-legend{position:absolute;bottom:23px;right:20px;color:#809086;font-size:10px;display:flex;align-items:center;gap:6px;pointer-events:none}.studio-footer{display:flex;align-items:center;justify-content:space-between;padding:13px 20px;border-top:1px solid var(--border);font-size:11px;color:#7e8c84}.studio-footer .icon{width:13px;height:13px}.studio-footer span{display:flex;align-items:center;gap:6px}.inspector{width:310px;border-left:1px solid var(--border);background:white;max-height:540px;overflow:auto;flex-shrink:0}.inspector-head{padding:16px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:600}.inspector-body{padding:16px}.inspector .field{margin-bottom:14px}.inspector label{font-size:11px}.inspector input,.inspector select,.inspector textarea{font-size:12px;padding:9px}.inspector .btn{font-size:11px}.connection-row{display:flex;align-items:center;gap:7px;font-size:11px;margin:8px 0;color:var(--muted)}.connection-row .btn{margin-left:auto}.palette{display:grid;grid-template-columns:1fr 1fr;gap:10px}.palette button{display:flex;align-items:center;gap:12px;text-align:left;padding:13px;background:#fafcfb;border:1px solid var(--border);border-radius:8px;font-size:13px}.palette button:hover{border-color:var(--green);background:var(--mint)}.studio-note{margin-top:18px;display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted)}.studio-note strong{color:#435f4e;font-weight:500}.workflow-mini{display:flex;align-items:center;gap:6px;margin:18px 0 24px;overflow:hidden}.workflow-mini .symbol{width:32px;height:32px;border-radius:7px;flex-shrink:0}.workflow-mini .icon{width:15px;height:15px}.workflow-mini .line{width:22px;height:1px;background:#cbd9d0;flex-shrink:0}
dialog{border:1px solid var(--border);border-radius:15px;box-shadow:0 25px 100px #001e2433;padding:0;max-width:660px;width:calc(100% - 36px);max-height:90vh;color:var(--ink);background:white}dialog::backdrop{background:#102b2455;backdrop-filter:blur(3px)}.dialog-head{padding:22px 25px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:15px}.dialog-head h2{font-size:19px}.dialog-body{padding:24px 25px}.dialog-footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--border);padding:17px 25px;background:#fafcfb;position:sticky;bottom:0}.field{margin-bottom:19px}.field:last-child{margin-bottom:0}.field label{font-size:13px;font-weight:550;display:block;margin-bottom:8px}.field input:not([type=checkbox]):not([type=range]),.field textarea,.field select{width:100%;border:1px solid #dbe3dd;border-radius:7px;background:#fff;color:var(--ink);padding:10px 12px;font-size:14px;line-height:1.5}.field textarea{resize:vertical;min-height:90px}.field select[multiple]{min-height:115px}.help{font-size:11px;color:var(--muted);line-height:1.6;margin-top:6px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid .field{margin-bottom:0}.checks{display:flex;flex-wrap:wrap;gap:8px}.check{display:flex!important;align-items:center;gap:6px;border:1px solid var(--border);border-radius:6px;padding:8px 10px;font-size:12px!important;font-weight:400!important;margin:0!important}.check input{accent-color:var(--green)}.switch-line{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:17px 0;border-bottom:1px solid var(--border)}.switch-line:last-child{border-bottom:0}.switch-line label{display:block;font-size:14px;font-weight:500}.switch-line p{font-size:12px;color:var(--muted);margin:5px 0 0}.switch-line input{accent-color:var(--green);width:19px;height:19px;flex-shrink:0}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.settings-grid .card:hover{border-color:var(--border)}.settings-grid .card h2{margin-bottom:22px}.code,pre,code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.code{font-size:12px!important}.output{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8;background:#f8faf9;border:1px solid var(--border);border-radius:8px;padding:18px;margin:0;max-height:550px;overflow:auto}.trace{display:grid;grid-template-columns:60px 25px minmax(0,1fr);gap:10px;padding:13px 0;border-bottom:1px solid #edf1ee;font-size:12px}.trace time{color:#8c9a91;font-size:10px;padding-top:3px}.trace .icon{width:15px;height:15px;color:var(--green);margin-top:2px}.trace p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;line-height:1.6}.trace .meta{font-size:10px;color:#8a998f;margin-top:4px}.run-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:15px}.run-step{display:flex;align-items:center;gap:10px;font-size:12px;padding:10px 0}.run-step .badge{margin-left:auto}.approval-box{border:1px solid #e8ce8d;background:#fffaf0;border-radius:12px;padding:22px;margin-bottom:20px}.approval-box h3{color:#7c5b1d}.approval-box textarea{margin:15px 0}.checkpoint{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid var(--border);font-size:12px}.checkpoint:last-child{border:0}.checkpoint .sub{font-size:11px}.feedback-row{padding:17px 0;border-bottom:1px solid var(--border)}.feedback-row:last-child{border:0}.feedback-row p{font-size:13px;margin:7px 0}.feedback-score{color:#956f17;font-size:14px;letter-spacing:2px}.error{color:#a43b2d;background:#fff0eb;border:1px solid #f0cfc3;padding:12px;border-radius:7px;font-size:13px;line-height:1.6;margin-bottom:16px}.model-status{font-size:12px;padding:10px 0;color:var(--green)}#toasts{position:fixed;bottom:24px;right:25px;z-index:100;display:grid;gap:10px;max-width:440px}.toast{background:#163b2c;color:white;border:1px solid #406b51;border-radius:9px;padding:14px 19px;box-shadow:var(--shadow);font-size:13px;line-height:1.5}.toast.error-toast{background:#75382f;border-color:#99574e}.running .icon{animation:spin 2s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.footer-note{font-size:11px;color:#8d9a92;text-align:center;padding-top:28px}.hide{display:none!important}
@media(min-width:1550px){.canvas-wrap{height:600px}.inspector{max-height:600px}.content{padding:35px 44px}.canvas-shell{min-height:600px}}
@media(max-width:1150px){.shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{width:190px;padding:24px 11px}.brand{font-size:18px}.content{padding:25px 22px}.topbar{padding:0 22px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.stats{gap:10px}.stat{padding:17px}.inspector{width:270px}.grid-two{grid-template-columns:1fr}.top-actions .private{display:none}}
@media(max-width:800px){.shell{display:block}.sidebar{transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0);width:230px;box-shadow:10px 0 40px #0003}.main-shell{width:100%}.mobile-menu{display:flex}.topbar{height:61px;padding:0 16px}.content{padding:24px 16px}.page-head{align-items:flex-start;flex-direction:column;gap:16px}.page-head h1{font-size:25px}.page-head>.actions{width:100%}.stats{grid-template-columns:1fr 1fr}.stat-value{font-size:26px}.cards{grid-template-columns:1fr 1fr}.studio-bar{align-items:flex-start;flex-direction:column;padding:15px}.studio-tabs{padding:0 15px}.canvas-wrap{height:470px}.canvas-shell{min-height:470px;flex-direction:column}.inspector{width:100%;max-height:450px;border-left:0;border-top:1px solid var(--border)}.studio-note{flex-direction:column}.settings-grid{grid-template-columns:1fr}.top-actions{gap:8px}.breadcrumb{gap:8px}.breadcrumb>span{display:none}.flow-title select{max-width:230px}.canvas-legend{display:none}.canvas-controls{bottom:16px}.studio-footer{gap:15px;align-items:flex-start;line-height:1.6}.studio-footer span:last-child{display:none}.run-header{align-items:flex-start;flex-direction:column}.grid-two{display:block}.grid-two>.panel{margin-bottom:20px}}
@media(max-width:500px){.cards{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.card{padding:19px}.top-actions>.badge{font-size:10px}.toolbar{flex-direction:column;align-items:stretch}.search{max-width:none}.palette{grid-template-columns:1fr}.dialog-body{padding:20px}.dialog-head{padding:18px 20px}.stat{padding:16px}.stat-top{font-size:12px}.tab{margin-right:13px}.studio-tabs>.muted{display:none}.flow-meta{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.node-title{font-size:14px}.node-type,.node-bottom{font-size:12px}.badge,.tag{font-size:12px}.card .description{font-size:14px}.help{font-size:12px}.nav-label{font-size:11px}.btn,.sub{font-size:14px}.btn.small{font-size:13px}.inspector label,.inspector .btn,.inspector input,.inspector select,.inspector textarea{font-size:13px}.output{font-size:14px}.trace{font-size:13px}.flow-meta,.studio-footer,.studio-note{font-size:12px}
