:root{font-family:Inter,"Microsoft YaHei",system-ui,sans-serif;color:#26374c;background:#edf1f6;font-size:14px;--blue:#266ed5;--green:#07855e;--line:#dce3ec}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{border:1px solid var(--line);border-radius:6px;background:white;padding:8px 12px;color:inherit;cursor:pointer;white-space:nowrap}button:hover{background:#edf4ff;border-color:#9bbbed}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #5f9eff;outline-offset:2px}input,select,textarea{border:1px solid #cfd8e4;border-radius:6px;padding:8px 10px;background:white;color:#26374c;min-width:0}select{appearance:none;padding-right:27px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%23697b90' fill='none'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 9px center}header{height:84px;background:#14263b;color:white;display:flex;align-items:center;padding:0 24px;gap:28px}.brand{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:650;min-width:300px}.brand b{font-size:13px;letter-spacing:2px;margin-left:10px;color:#90a9c4}.brand small{display:block;font-size:13px;color:#9eb1c7;font-weight:400;margin-top:6px}.logo{display:grid;place-items:center;width:43px;height:43px;border:2px solid #42c79d;color:#53ddaf;border-radius:10px;font-size:34px}.file-actions{display:flex;gap:8px}.file-actions button,.file-actions select{background:#233b55;color:#e4edf6;border-color:#34506d}.connection{margin-left:auto;color:#a4b6ca;font-size:14px}.connection.connected{color:#5de2ad}nav{padding:12px 20px;display:flex;justify-content:space-between;gap:20px;background:white;border-bottom:1px solid var(--line)}.toolbar-group{display:flex;gap:7px;align-items:center}.divider{height:24px;width:1px;background:var(--line);margin:0 6px}.blue{background:#266ed5;color:white;border-color:#266ed5}.green{background:#07855e;color:white;border-color:#07855e}.red{color:#b7413b;background:#fff6f5;border-color:#eccbc8}.modebar{height:57px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;background:#f7f9fc;border-bottom:1px solid var(--line)}.tabs{display:flex;height:100%}.tabs button{border:0;background:transparent;border-bottom:3px solid transparent;border-radius:0;padding:0 22px;color:#75849a}.tabs .active{border-bottom-color:var(--blue);color:var(--blue);font-weight:600}.run-actions{display:flex;align-items:center;gap:9px}.status{font-weight:650;padding:5px 14px;border-radius:20px;color:#687b94;background:#e7edf5;margin-right:10px}.status.running{background:#dff4e9;color:#087451}main{display:flex;height:calc(100vh - 243px);min-height:550px}.left{width:204px;flex-shrink:0;background:#f8fafc;border-right:1px solid var(--line);padding:18px 12px;overflow-y:auto}.pane-head{font-size:14px;color:#526781;font-weight:650;margin:0 5px 12px}.spaced{margin-top:26px}#project-name{width:100%;margin-bottom:12px;font-size:14px}.rung-item{display:flex;padding:9px 10px;border-radius:6px;margin:4px 0;gap:9px;cursor:pointer;color:#64758a}.rung-item.selected{background:#e5effe;color:#225fad}.rung-index{font-family:Consolas,monospace;color:#96a3b4}.palette{display:grid;grid-template-columns:1fr 1fr;gap:7px}.palette button{padding:10px 3px;font-size:13px;display:flex;flex-direction:column;align-items:center;gap:6px}.palette b{font-family:Consolas,monospace;font-size:17px;color:#375674;min-height:22px}.left-note{font-size:13px;line-height:1.8;color:#8a98aa;padding:20px 7px}.center{flex:1;min-width:0;display:flex;flex-direction:column}.canvas-head{padding:17px 22px;display:flex;justify-content:space-between;align-items:center;background:white;min-height:66px}.canvas-head strong{font-size:17px}.canvas-head span{font-size:13px;color:#8291a4;margin-left:16px}.canvas-head button{font-size:13px;padding:5px 8px}.notice{background:#fff4dd;color:#94681b;padding:10px 22px;border-top:1px solid #f1dfb9;line-height:1.6}#canvas{flex:1;overflow:auto;padding:22px;background-color:#f3f6fa;background-image:radial-gradient(#d6dfe9 .7px,transparent .7px);background-size:16px 16px;min-height:220px}.network{background:white;border:1px solid #dce4ef;border-radius:9px;min-width:640px;margin-bottom:18px;box-shadow:0 3px 8px #23436605}.network.selected{border-color:#72a7ed;box-shadow:0 0 0 1px #72a7ed22}.network-header{padding:11px 16px;background:#f9fbfe;border-bottom:1px solid #edf1f6;display:flex;gap:14px;align-items:center;border-radius:9px 9px 0 0;cursor:pointer}.network-header span{font:14px Consolas,monospace;color:#96a4b6}.network-header strong{font-size:14px;font-weight:550}.network-header .comment{margin-left:auto;color:#9aa7b7;font-size:13px}.network svg{display:block;min-width:100%;overflow:visible}.svg-wrap{overflow-x:auto;padding:8px 0}.wire{stroke:#aebbc9;stroke-width:2;fill:none}.rail{stroke:#6a8098;stroke-width:3}.node{cursor:pointer}.node .hit{fill:transparent;stroke:transparent;stroke-width:1.5}.node:hover .hit{fill:#edf4ff55;stroke:#9ebfec}.node.selected .hit{fill:#e7f0ff66;stroke:#3479db}.node .symbol{stroke:#385778;stroke-width:2;fill:none}.node .node-label{font:600 14px Consolas,monospace;fill:#355674}.node .node-detail{font-size:12px;fill:#91a0b2}.node .function-box{fill:white;stroke:#59748e;stroke-width:1.5}.node.energized .symbol{stroke:#079d67;stroke-width:2.5}.node.energized .function-box{fill:#e8f9ef;stroke:#0b9a68}.node.energized .node-label{fill:#07754c}.wire.energized{stroke:#13a66f;stroke-width:2.5}.io-panel{background:white;border-top:1px solid var(--line);padding:14px 22px}.io-title{display:flex;gap:18px;align-items:center;margin-bottom:12px}.io-title span{font-size:13px;color:#8796a9}.io-line{display:flex;align-items:center;gap:14px;margin:7px 0}.io-line>span{font-size:13px;color:#7c8ea3;width:32px;flex-shrink:0}.io-line>div{display:flex;flex-wrap:wrap;gap:6px}.io-chip{font:13px Consolas,monospace;padding:5px 10px;border-radius:5px;background:#f0f3f8;border:1px solid #e0e6ee;cursor:default}.io-chip.on{color:#087c53;background:#dcf7e9;border-color:#9bdcba}.io-chip.interactive{cursor:pointer}.device-meta{font-size:13px;color:#8294a9;margin-top:12px}.right{width:290px;flex-shrink:0;background:white;border-left:1px solid var(--line);padding:16px;overflow-y:auto}.right-tabs{display:flex;border-bottom:1px solid var(--line);margin:-4px 0 18px}.right-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:none;padding:10px 15px}.right-tabs .active{color:var(--blue);border-bottom-color:var(--blue)}.field{display:flex;flex-direction:column;gap:8px;margin:16px 0}.field label{color:#74869e;font-size:13px}.field input,.field select,.field textarea{width:100%}.field textarea{height:90px;resize:vertical}.helper{color:#91a0b2;font-size:13px;line-height:1.8}.inspector-kind{color:#2c5e99;font-size:18px;font-weight:650;margin-top:4px}.inspector-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.inspector-buttons button{font-size:13px}.limits{font-size:13px;color:#97a5b6;line-height:1.9;border-top:1px solid #edf1f6;margin-top:20px;padding-top:16px}#diagnostics{font:13px Consolas,"Microsoft YaHei",monospace;line-height:1.8;max-height:160px;overflow:auto;color:#71839b;white-space:pre-wrap}.log-error{color:#b74a42}.log-ok{color:#138059}.watch-entry{display:flex;gap:7px}.watch-entry input{width:calc(100% - 60px)}.watch-row{padding:12px 0;border-bottom:1px solid #edf1f6}.watch-row .row{display:flex;justify-content:space-between;gap:10px}.watch-row strong{font-family:Consolas,monospace}.watch-value{color:#137c57;font-family:Consolas,monospace;font-size:14px}.watch-row button{padding:4px 8px;font-size:12px}.watch-row input{width:110px;padding:5px}.watch-row small{display:block;color:#97a5b6;margin:7px 0}footer{height:42px;background:#e9eef5;display:flex;align-items:center;justify-content:space-between;padding:0 22px;color:#71839b;font-size:13px;border-top:1px solid #d3dce8}#toast{position:fixed;bottom:65px;left:50%;transform:translateX(-50%);padding:13px 24px;border-radius:8px;background:#142d45;color:white;box-shadow:0 6px 30px #112c4455;z-index:50}.help-button{position:fixed;right:18px;bottom:55px;border-radius:50%;width:30px;height:30px;padding:0;color:#7b8da4}dialog{border:0;border-radius:16px;padding:28px;max-width:580px;box-shadow:0 20px 80px #14263b44}dialog p{line-height:1.9;color:#71839b}dialog::backdrop{background:#14263b66}#empty{padding:50px;text-align:center;color:#9aa8b9}@media(max-width:1250px){header{gap:15px;padding:0 16px}.brand{min-width:260px}.brand b{display:none}.right{width:250px}.left{width:180px}nav{flex-wrap:wrap;gap:8px}.modebar{height:auto;min-height:57px;flex-wrap:wrap;padding:8px 15px;gap:8px}main{height:calc(100vh - 285px)}.tabs button{padding:10px 15px}.file-actions button{padding:7px 9px}.canvas-head{padding:15px}.canvas-head span{display:block;margin:7px 0 0}}@media(max-width:950px){.right{width:220px}.left{width:160px}.brand{min-width:210px;font-size:17px}header{height:96px;flex-wrap:wrap;gap:8px}.connection{font-size:12px}.file-actions{gap:5px}.palette{gap:5px}.run-actions{gap:5px}.run-actions button{padding:6px 9px}.center{min-width:350px}main{overflow-x:auto}}
#inspector-close,#inspector-toggle{display:none}@media(max-width:1000px){#inspector-close,#inspector-toggle{display:inline-block}.right{display:none;position:fixed;right:10px;top:255px;bottom:48px;width:290px;z-index:20;border:1px solid #c9d6e6;border-radius:10px;box-shadow:0 12px 60px #152a4055}.show-inspector .right{display:block}.center{min-width:0}.toolbar-group{flex-wrap:wrap}.canvas-head{gap:10px}.canvas-head strong{font-size:15px}.canvas-head button{font-size:12px}main{min-height:550px}.io-panel{padding:12px 16px}.io-title{flex-wrap:wrap;gap:6px}.io-title span{font-size:12px}}
