.lab-dialog{width:min(1160px,94vw);max-height:90vh;background:#0c1d2b;color:#e6f1f7;border:1px solid #3b5d6d;border-radius:14px;padding:24px;font:14px/1.5 system-ui}.lab-dialog::backdrop{background:#010914bd;backdrop-filter:blur(5px)}.lab-dialog header{display:flex;justify-content:space-between}.lab-dialog h2{font-size:30px;letter-spacing:-1px;margin:5px 0}.lab-dialog small{font-size:10px;color:#85dbbc;letter-spacing:1px}.lab-dialog p,.lab-muted{color:#9fb5c4;font-size:12px}.lab-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:12px}.lab-toolbar label{font-size:11px}.lab-toolbar input[type=number]{width:75px}.lab-toolbar input:not([type=number]){max-width:230px}.lab-dialog button,.lab-toolbar button,#plcStudio button{background:#18364a;color:#e5eff8;border:1px solid #3b6176;border-radius:6px;padding:8px 11px;cursor:pointer;font:12px system-ui}.lab-dialog button:hover,.lab-toolbar button:hover{border-color:#73e0b3}.lab-dialog button:disabled{opacity:.35}.lab-dialog input,.lab-dialog select,.lab-toolbar input,.lab-toolbar select,#plcStudio input{background:#081620;color:#e5eff8;border:1px solid #34586c;border-radius:5px;padding:8px}.lab-dialog footer{display:flex;gap:14px;align-items:center;margin-top:16px}.lab-results{font-size:11px;color:#91aebf;margin:8px 0}.lab-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-height:56vh;overflow:auto}.lab-cards article{border:1px solid #2c4859;border-radius:9px;padding:14px;background:#102536;min-width:0}.lab-cards h3{font-size:15px;margin:6px 0}.lab-cards code{font-size:10px;color:#85d6e6;display:block;margin:10px 0}.lab-cards article>div{display:flex;gap:8px}.lab-two{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px}#plcStudio{color:#e3f0f8;font:12px system-ui}#plcStudio aside{background:#102536;border:1px solid #2b4759;padding:14px;border-radius:8px;min-width:0}#plcStudio pre{white-space:pre-wrap;max-height:330px;overflow:auto;font-size:11px}.lab-io{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.plc-rung{display:flex;gap:12px;align-items:center;border-left:3px solid #4b6980;border-right:3px solid #4b6980;background:#0b1e2e;padding:14px 8px;margin:10px 0;overflow:auto}.plc-rung.powered{border-color:#70e3aa;background:#11352e;box-shadow:inset 0 0 24px #58eaa412}.plc-branches{flex:1}.plc-branches>div{display:flex;align-items:center;gap:3px;border-top:1px solid #3a6174;padding:5px}.plc-rung.powered .plc-branches>div{border-color:#70e3aa}.plc-contact{white-space:nowrap}#plcStatus{padding:10px;background:#102c40;color:#9fe3bf;border-radius:7px}#plcTrace{width:100%;background:#071521;border:1px solid #26475d;margin:12px 0}.live-current{fill:none;stroke:#ffda7e;stroke-width:3;stroke-dasharray:1 13;stroke-linecap:round;pointer-events:none;animation:liveCurrent .8s linear infinite;filter:drop-shadow(0 0 3px #f5c77688)}@keyframes liveCurrent{to{stroke-dashoffset:-28}}.live-flow-status{position:absolute;left:16px;bottom:13px;z-index:5;padding:7px 11px;background:#0c2335ed;border:1px solid #315b70;border-radius:6px;color:#a4dfcb;font:10px ui-monospace,monospace;max-width:calc(100% - 120px);pointer-events:none}.canvas-help{bottom:50px!important}.wire-preview{stroke:#f8c779!important;stroke-width:2.5;stroke-dasharray:5 4}.wire-bend-handle{fill:#f8c779;stroke:#092036;stroke-width:2;cursor:move}.component .contract-symbol{color:#bce8ed}.schematic-hint{font-size:10px;color:#a8bfcf;padding:8px;line-height:1.5}.lab-confirm{width:min(500px,92vw)}@media(max-width:850px){.lab-two{grid-template-columns:1fr}.lab-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.lab-cards{grid-template-columns:1fr}.lab-dialog{padding:14px}.live-flow-status{font-size:8px;left:5px;bottom:5px}}

.lab-external-links{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;padding:9px;background:#0a1b29;font:10px system-ui}.lab-external-links a{color:#81c9d9;text-decoration:none}.sim-shell+.lab-external-links{font-size:9px}.lab-dialog code{white-space:normal}
