@font-face{font-family:Inter;src:local('Inter'),local('Segoe UI')}*{box-sizing:border-box} :root{--bg:#f3f7fc;--surface:#fff;--text:#101c44;--muted:#77839e;--line:#e2eaf5;--blue:#0967ff;--blue-soft:#eef5ff;--grid:#e3eaf3;--grid-major:#dce4ee;--shadow:0 6px 25px #18377404;--green:#069b72;--canvas:#fefeff}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,'Segoe UI',Arial,sans-serif;font-size:13px}body.dark{--bg:#111a2c;--surface:#1a2539;--text:#e6edff;--muted:#96a7c2;--line:#2d3a50;--blue-soft:#182f52;--grid:#29374c;--grid-major:#35445a;--canvas:#172235;--shadow:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0;background:none}button:disabled{opacity:.38;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,svg:focus-visible{outline:3px solid #80b2ff;outline-offset:3px}a{color:var(--blue);text-decoration:none}svg{display:block}button svg{width:19px;height:19px;flex-shrink:0} .header{height:78px;background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 28px;gap:38px}.brand{display:flex;gap:9px;align-items:center;color:var(--text);font-size:25px;font-weight:800;letter-spacing:-1px;flex-shrink:0}.brand-bolt{color:#ffbc25;font-size:59px;font-family:Arial;line-height:1;font-weight:900}.brand-sub{display:block;font-size:8px;letter-spacing:2.7px;color:var(--muted);font-weight:600;margin-top:4px}.navigation{display:flex;align-items:center;gap:27px;height:100%;flex:1}.nav-item{position:relative;padding:25px 0;font-size:13px;font-weight:500;white-space:nowrap}.nav-item.active{color:var(--blue);font-weight:700}.nav-item.active:after{content:'';position:absolute;height:3px;border-radius:3px;bottom:13px;left:0;right:0;background:var(--blue)}.header-actions{display:flex;align-items:center;gap:18px}.network{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}.network i{width:6px;height:6px;background:var(--green);border-radius:50%}.network.offline i{background:#ecae26}.icon-button{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:7px;flex-shrink:0}.icon-button:hover{background:var(--blue-soft);color:var(--blue)}.icon-button.small{width:28px;height:28px;font-size:22px}.pro-button{background:var(--blue);color:white;padding:12px 18px;border-radius:8px;font-weight:600;box-shadow:0 4px 12px #0967ff20;display:flex;align-items:center;gap:9px;white-space:nowrap}.pro-button span{color:#ffd67c;font-size:22px;line-height:19px}.avatar{width:38px;height:38px;background:#e7f0ff;color:var(--blue);border-radius:50%;display:grid;place-items:center;font-weight:700}.avatar svg{width:23px;height:23px}.workspace{padding:18px 20px 14px;max-width:2100px;margin:auto}.workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:17px}.tabs{display:flex;padding:4px;background:#e9eff9;border-radius:9px;gap:3px}.dark .tabs{background:var(--surface)}.tab{display:flex;align-items:center;gap:9px;padding:11px 18px;font-size:12px;font-weight:600;border-radius:6px;white-space:nowrap}.tab svg{width:18px;height:18px}.tab.active{background:var(--blue);color:#fff;box-shadow:0 3px 9px #0967ff20}.mini-pro{font-size:8px;letter-spacing:.5px;border:1px solid #bac8e1;border-radius:3px;padding:2px 4px;color:#647ca1}.project-meta{display:flex;align-items:center;font-size:10px;color:var(--muted);gap:8px}.project-meta button{font-size:11px;color:var(--text);font-weight:500;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-dot{background:#6c93ce;width:5px;height:5px;border-radius:50%}.meta-divider{margin:0 4px;color:#c3ccdc}.workspace-grid{display:grid;grid-template-columns:252px minmax(350px,1fr) 270px;gap:16px;height:calc(100dvh - 167px);min-height:570px;max-height:1200px}.panel{border:1px solid var(--line);border-radius:11px;background:var(--surface);box-shadow:var(--shadow);overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:15px 15px 12px;gap:8px}.panel-heading h2{font-size:13px;margin:0;font-weight:750;letter-spacing:-.25px}.library{display:flex;flex-direction:column}.search-box{display:flex;align-items:center;gap:7px;margin:0 13px 8px;padding:8px 10px;border:1px solid var(--line);border-radius:6px;color:#8a9abc;background:var(--surface)}.search-box svg{width:15px;height:15px}.search-box input{border:0;outline:0!important;min-width:0;width:100%;background:transparent;color:var(--text);font-size:11px}.search-box input::placeholder{color:#8793ad}.search-box kbd{font-size:10px;border:1px solid var(--line);border-radius:3px;padding:0 4px;color:#a5afc0}.catalog{overflow-y:auto;padding:0 13px 16px;flex:1;scrollbar-width:thin;scrollbar-color:#dbe5f4 transparent}.category h3{font-size:12px;margin:17px 0 9px;font-weight:750}.component-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.component-card{background:linear-gradient(150deg,var(--surface),var(--bg));border:1px solid var(--line);border-radius:7px;padding:5px 3px 7px;display:flex;flex-direction:column;align-items:center;position:relative;min-height:91px;transition:transform .15s,border-color .15s,box-shadow .15s;touch-action:manipulation}.component-card:hover{border-color:#8bb8ff;box-shadow:0 3px 12px #0967ff12;transform:translateY(-2px)}.component-card svg{width:47px;height:62px;margin-bottom:3px}.component-card .component-name{font-size:9px;line-height:13px;text-align:center;min-height:13px}.component-card .lock{position:absolute;right:4px;top:5px;color:#c69a39;font-size:8px;font-weight:700;background:#fff6db;border-radius:3px;padding:1px 3px}.library-footer{font-size:9px;color:var(--muted);padding:11px 8px;text-align:center;border-top:1px solid var(--line)}.tiny-bolt{color:#f4b72d;font-size:17px;vertical-align:-1px;margin-right:4px}.editor{min-width:0;display:flex;flex-direction:column;gap:12px}.top-toolbar{display:flex;align-items:center;gap:7px;height:45px;flex-shrink:0;overflow-x:auto;scrollbar-width:none}.file-tools,.edit-tools{display:flex;gap:5px;align-items:center}.top-toolbar button{background:var(--surface);border:1px solid var(--line);border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:7px;height:41px;white-space:nowrap;font-size:11px;padding:0 12px}.top-toolbar .icon-button{padding:0;width:38px}.top-toolbar button:hover{border-color:#91b9ff;color:var(--blue)}.toolbar-divider{height:22px;width:1px;background:var(--line);margin:0 3px;flex-shrink:0}.tool.active,.bottom-tool.active{border:1px solid #77a6ff!important;background:var(--blue-soft)!important;color:var(--blue)}.danger{color:#f15364!important}.canvas-container{position:relative;flex:1;background:var(--canvas);border:1px solid var(--line);border-radius:10px;overflow:hidden;min-height:300px}.canvas-container #canvas{width:100%;height:100%;touch-action:none;user-select:none}.canvas-container.pan{cursor:grab}.canvas-container.wire{cursor:crosshair}.canvas-top-label{position:absolute;top:17px;left:19px;display:flex;gap:9px;align-items:center;pointer-events:none;font-size:8px;letter-spacing:1.3px;color:#a1afc7;font-weight:600}.canvas-tag{font-size:8px;letter-spacing:0;background:var(--surface);border:1px solid var(--line);padding:3px 5px;border-radius:4px;color:#8998b2}.canvas-bottom-label{position:absolute;bottom:14px;left:17px;right:17px;display:flex;align-items:center;font-size:9px;color:var(--muted);gap:7px;pointer-events:none}.canvas-bottom-label #component-count{margin-left:auto}.status-dot{width:5px;height:5px;border-radius:50%;background:#91a1bb}.status-dot.running{background:var(--green)}.empty-canvas{position:absolute;top:50%;left:50%;transform:translate(-50%,-46%);text-align:center;white-space:nowrap;pointer-events:none}.empty-canvas button{pointer-events:auto}.empty-symbol{width:102px;height:89px;border:1px solid #d7e5fb;border-radius:14px;margin:0 auto 27px;background:linear-gradient(140deg,#fcfeff,#eef5ff);display:grid;place-items:center;position:relative;box-shadow:0 10px 30px #0967ff09}.dark .empty-symbol{background:var(--blue-soft)}.empty-symbol:before,.empty-symbol:after{content:'';position:absolute;height:1px;width:20px;background:#b3cef6;top:45px}.empty-symbol:before{left:-20px}.empty-symbol:after{right:-20px}.empty-bolt{font-family:Arial;color:#0766ff;font-size:62px;font-weight:bold}.empty-node{position:absolute;width:8px;height:8px;background:var(--surface);border:2px solid #80acf0;border-radius:50%}.n1{left:-24px;top:41px}.n2{right:-24px;top:41px}.n3{top:-4px;left:47px}.n4{bottom:-4px;left:47px}.eyebrow{font-size:8px;font-weight:700;letter-spacing:1.65px;color:#87a0c4}.empty-canvas h1{font-size:24px;font-weight:700;letter-spacing:-.8px;margin:11px 0 12px}.empty-canvas p{font-size:12px;color:var(--muted);line-height:1.9;margin:0 0 22px}.soft-button{padding:10px 16px;display:inline-flex;align-items:center;gap:16px;background:var(--blue-soft);color:var(--blue);border:1px solid #d7e7ff;border-radius:6px;font-size:11px;font-weight:600}.empty-hint{display:block;margin-top:17px;font-size:9px;color:#9caac0}.editor-bottom{display:flex;align-items:stretch;gap:12px;min-height:77px}.logic-card{background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:14px;display:flex;align-items:center;gap:12px;flex:1;min-width:0}.logic-icon{border:1px solid #c6ddff;border-radius:50%;background:var(--blue-soft);color:var(--blue);width:34px;height:34px;display:grid;place-items:center;flex-shrink:0}.logic-icon svg{width:16px;height:16px}.logic-card h3{font-size:11px;margin:0 0 5px}.logic-card p{font-size:9px;line-height:1.7;color:var(--muted);margin:0}.help-button{border:1px solid #c0cde1;border-radius:50%;color:#7b8eae;width:18px;height:18px;display:grid;place-items:center;font-size:10px;flex-shrink:0}.logic-card>.help-button{margin-left:auto}.viewport-toolbar{border:1px solid var(--line);background:var(--surface);border-radius:9px;display:flex;align-items:center;gap:2px;padding:8px}.viewport-toolbar button{min-width:35px;height:45px;border-radius:6px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;border:1px solid transparent;padding:0 6px;font-size:8px;color:#7182a3}.viewport-toolbar button svg{width:17px;height:17px;color:var(--text)}.viewport-toolbar button:hover{background:var(--blue-soft)}.viewport-toolbar .zoom-value{font-size:10px;min-width:42px;color:var(--text)}.inspector{display:flex;flex-direction:column;gap:12px;overflow-y:auto;scrollbar-width:thin}.run-button{height:45px;min-height:45px;border-radius:8px;background:var(--blue);color:white;display:flex;align-items:center;justify-content:center;gap:10px;font-size:12px;font-weight:600;box-shadow:0 4px 12px #0967ff1a}.run-button svg{width:19px;height:19px}.run-button.running{background:#ed5269}.properties{flex-shrink:0;min-height:227px}.properties .panel-heading{border-bottom:1px solid var(--line);padding:14px}.property-empty{padding:28px 22px 30px;text-align:center}.property-empty .empty-property-icon{width:42px;height:42px;border-radius:11px;background:var(--bg);display:grid;place-items:center;margin:0 auto 12px;color:#99a9c0}.property-empty .empty-property-icon svg{width:22px;height:22px}.property-empty strong{font-size:11px;display:block;margin-bottom:7px}.property-empty p{font-size:10px;line-height:1.8;color:var(--muted);margin:0}.property-item{display:flex;align-items:flex-start;gap:11px;padding:15px}.property-thumb{width:47px;min-width:47px;height:63px;background:var(--bg);border-radius:6px;padding:3px}.property-thumb svg{width:100%;height:100%}.property-fields{flex:1;min-width:0}.property-fields h3{font-size:12px;margin:0 0 12px}.field{display:block;margin-bottom:13px}.field>span{font-size:11px;color:var(--muted);display:block;margin-bottom:6px}.field input,.field select,.field textarea{width:100%;min-height:37px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:6px;padding:8px 10px;outline:0}.field textarea{resize:vertical;min-height:95px}.property-actions{display:flex;border-top:1px solid var(--line);gap:5px;padding:7px}.property-actions button{flex:1;min-height:32px;font-size:10px;border-radius:5px}.property-actions button:hover{background:var(--bg)}.selected-meta{font-size:9px;color:var(--muted);padding:0 15px 12px;display:flex;justify-content:space-between}.results{flex-shrink:0}.results-heading{display:flex;align-items:center;gap:8px;background:var(--blue-soft);color:var(--blue);padding:12px 14px}.results-heading h2{margin:0;font-size:12px;font-weight:650}.result-bolt{background:var(--blue);border-radius:50%;color:#fff;font-family:Arial;font-weight:bold;font-size:20px;display:grid;place-items:center;width:22px;height:22px}.live-label{font-size:7px;letter-spacing:1px;background:#dce9ff;border-radius:3px;padding:3px 5px;margin-left:auto;display:none}.results-body{padding:6px 15px 10px}.result-row{display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding:9px 0;font-size:11px;color:var(--muted)}.result-row:last-child{border:0}.result-row strong{font-weight:600;color:var(--text);font-variant-numeric:tabular-nums}.result-row .unit{font-size:9px;color:#9aa7bc;margin-left:4px;font-weight:400}.condition{padding:5px 9px;border-radius:5px;background:var(--bg);font-size:9px;font-weight:600;color:var(--muted)}.condition.normal{background:#e5f8ef;color:#008e60}.condition.error{background:#fff0f0;color:#d7485a}.condition.open{background:#fff6de;color:#ab7c1a}.result-note{border:1px solid #d3e5ff;background:var(--blue-soft);margin:2px 11px 12px;border-radius:6px;padding:10px;display:flex;gap:8px;color:#6684ad}.result-note>span{background:#2378f6;color:white;width:15px;height:15px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;font-family:serif;font-weight:bold;font-size:11px}.result-note p{font-size:9px;line-height:1.8;margin:0}.learning-note{display:flex;align-items:flex-start;padding:6px 9px;gap:9px;color:var(--muted)}.learning-note svg{width:19px;height:19px;color:#9bb1ce;flex-shrink:0}.learning-note strong{font-size:9px;font-weight:500}.learning-note p{font-size:8px;line-height:1.8;margin:4px 0}.floating-panel{display:none;position:absolute;top:45px;background:var(--surface);border:1px solid var(--line);width:36px;height:36px;border-radius:7px;box-shadow:0 2px 8px #12244415;font-size:20px}.floating-panel.left{left:12px}.floating-panel.right{right:12px}.left-collapsed .library{display:none}.left-collapsed{grid-template-columns:minmax(350px,1fr) 270px}.left-collapsed .floating-panel.left{display:block}.right-collapsed .inspector{display:none}.right-collapsed{grid-template-columns:252px minmax(350px,1fr)}.right-collapsed .floating-panel.right{display:block}.left-collapsed.right-collapsed{grid-template-columns:1fr}.mobile-toolbar{display:none}.c-body{cursor:move}.c-selection{fill:none;stroke:#3988ff;stroke-width:1.5;stroke-dasharray:5 4;pointer-events:none}.c-label{font-size:12px;font-weight:600;fill:var(--text);text-anchor:middle;pointer-events:none}.c-value{font-size:10px;fill:var(--muted);text-anchor:middle;pointer-events:none}.terminal-hit{fill:transparent;cursor:crosshair}.terminal-dot{stroke:#fff;stroke-width:2;cursor:crosshair;pointer-events:none}.terminal-label{font-size:8px;font-weight:600;fill:var(--muted);pointer-events:none}.terminal.selected .terminal-dot{stroke:#ffbf46;stroke-width:4}.wire-hit{stroke:transparent;stroke-width:18;fill:none;cursor:pointer}.wire-visible{stroke-width:5;fill:none;stroke-linejoin:round;stroke-linecap:round;pointer-events:none}.wire-selected{stroke-width:13;stroke:#b6d7ff;fill:none;pointer-events:none}.wire-active{stroke-dasharray:7 6;animation:flow 1s linear infinite;stroke-width:1;stroke:#fff9;fill:none;pointer-events:none}.current-label{fill:var(--green);font-weight:600;font-size:10px;paint-order:stroke;stroke:var(--canvas);stroke-width:5px;stroke-linejoin:round;pointer-events:none}.junction{stroke:var(--canvas);stroke-width:1.5}.waypoint{fill:var(--surface);stroke:var(--blue);stroke-width:2;cursor:move}@keyframes flow{to{stroke-dashoffset:-26}}dialog{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:16px;width:min(640px,calc(100vw - 28px));max-height:85dvh;padding:26px;box-shadow:0 30px 100px #0d1c4630;overflow-y:auto}dialog.wide{width:min(980px,calc(100vw - 28px))}dialog::backdrop{background:#09193655;backdrop-filter:blur(5px)}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.modal-header h2{font-size:23px;letter-spacing:-.6px;margin:7px 0 0}.modal-header .icon-button{font-size:27px;color:var(--muted)}.modal-intro{color:var(--muted);font-size:12px;line-height:1.9;margin:0 0 20px}.primary-button{display:inline-flex;justify-content:center;align-items:center;gap:8px;background:var(--blue);color:#fff;border-radius:7px;padding:12px 18px;font-weight:600;min-height:42px}.secondary-button{display:inline-flex;justify-content:center;align-items:center;gap:7px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:7px;padding:11px 15px;min-height:42px}.form-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:16px}.form-error{padding:12px;border:1px solid #f4c9cf;background:#fff0f2;color:#c44254;border-radius:6px;margin-top:14px;font-size:12px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.full{grid-column:1/-1}.auth-links{display:flex;justify-content:space-between;margin-top:19px;font-size:12px}.auth-links button{color:var(--blue);padding:5px}.plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.plan-card{border:1px solid var(--line);border-radius:11px;padding:22px;position:relative}.plan-card.featured{border-color:#76a8ff;background:var(--blue-soft)}.plan-card h3{font-size:16px;margin:6px 0 14px}.plan-price{font-size:29px;letter-spacing:-1px;font-weight:750}.plan-price small{font-size:11px;color:var(--muted);font-weight:400;letter-spacing:0}.plan-card ul{padding:0;list-style:none;color:var(--muted);line-height:2.6;font-size:11px;margin:17px 0}.plan-card li:before{content:'✓';color:var(--green);margin-right:8px}.plan-card button{width:100%}.tag{display:inline-block;font-size:9px;letter-spacing:.3px;color:var(--blue);background:var(--blue-soft);border-radius:4px;padding:4px 7px}.project-list{display:flex;flex-direction:column;gap:10px}.list-card{padding:15px;border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:15px}.list-card h3{font-size:13px;margin:0 0 6px}.list-card p{font-size:10px;color:var(--muted);margin:0;line-height:1.7}.list-actions{display:flex;gap:4px;flex-shrink:0}.list-actions button{font-size:11px;padding:9px;border-radius:5px;color:var(--blue)}.list-actions button:hover{background:var(--blue-soft)}.section-label{font-size:11px;color:var(--muted);font-weight:600;margin:21px 0 10px}.article-card{border:1px solid var(--line);border-radius:9px;padding:20px;margin-bottom:13px}.article-card h3{margin:0 0 10px;font-size:15px}.article-card p{white-space:pre-wrap;line-height:1.9;font-size:12px;color:var(--muted);margin:0}.shortcut-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;font-size:12px;margin-top:20px}.shortcut-grid span{display:flex;align-items:center;justify-content:space-between;color:var(--muted);gap:12px}.shortcut-grid kbd{background:var(--bg);border:1px solid var(--line);border-radius:4px;padding:4px 8px;color:var(--text);font-size:10px}.invoice-total{background:var(--blue-soft);border:1px solid var(--line);border-radius:9px;padding:20px;margin:18px 0}.invoice-total strong{font-size:28px;color:var(--blue);display:block;margin-top:7px}.invoice-row{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.invoice-row span{color:var(--muted)}.admin-nav{display:flex;gap:5px;overflow-x:auto;margin:0 0 22px;padding-bottom:8px}.admin-nav button{padding:9px 13px;border-radius:6px;white-space:nowrap;font-size:11px}.admin-nav .active{background:var(--blue-soft);color:var(--blue)}.stats-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.stat-card{background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:16px}.stat-card span{font-size:10px;color:var(--muted)}.stat-card strong{display:block;font-size:24px;margin-top:9px;letter-spacing:-.6px}.table-wrapper{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:11px}th{text-align:left;color:var(--muted);font-weight:500;padding:12px 9px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:12px 9px;border-bottom:1px solid var(--line)}td .secondary-button{font-size:10px;padding:7px 10px;min-height:32px}td input{border:1px solid var(--line);border-radius:4px;padding:5px;width:100px;background:var(--surface);color:var(--text)}.admin-form{background:var(--bg);border-radius:10px;padding:20px;margin:14px 0}.empty-list{padding:22px;text-align:center;background:var(--bg);border-radius:8px;color:var(--muted);font-size:12px}.checkbox{display:flex;align-items:center;gap:8px;margin-bottom:15px;color:var(--muted);font-size:12px}.checkbox input{width:16px;height:16px;accent-color:var(--blue)}#toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,15px);background:#152b51;color:#fff;box-shadow:0 8px 28px #10224426;border-radius:9px;padding:13px 20px;max-width:calc(100vw - 40px);font-size:12px;line-height:1.6;opacity:0;pointer-events:none;transition:.2s;z-index:100}#toast.show{transform:translate(-50%,0);opacity:1}.modal-note{background:var(--blue-soft);border:1px solid var(--line);padding:13px;border-radius:7px;color:var(--muted);font-size:11px;line-height:1.8;margin-top:17px}.wires-color{display:flex;gap:9px;margin:12px 0}.color-choice{width:30px;height:30px;border-radius:50%;border:3px solid var(--surface);box-shadow:0 0 0 1px var(--line)}.color-choice.active{box-shadow:0 0 0 2px var(--blue)}
@media(min-width:1550px){.workspace-grid{grid-template-columns:290px minmax(500px,1fr) 300px}.component-card svg{width:53px;height:71px}.component-card{min-height:105px}.component-name{font-size:10px!important}.top-toolbar button{height:44px}.top-toolbar .icon-button{width:42px}.workspace{padding:20px 24px}.header{padding:0 35px;gap:65px}.navigation{gap:35px}.workspace-grid.left-collapsed{grid-template-columns:1fr 300px}.workspace-grid.right-collapsed{grid-template-columns:290px 1fr}.workspace-grid.left-collapsed.right-collapsed{grid-template-columns:1fr}.viewport-toolbar button{min-width:42px}}@media(max-width:1240px){.header{gap:25px;padding:0 20px}.navigation{gap:20px}.header-actions{gap:10px}.network{display:none}.brand{font-size:22px}.workspace-grid{grid-template-columns:220px minmax(300px,1fr) 240px;gap:12px}.workspace{padding:15px 14px}.top-toolbar button{padding:0 9px}.top-toolbar .icon-button{width:33px}.top-toolbar{gap:2px}.file-tools,.edit-tools{gap:3px}.editor-bottom{flex-wrap:wrap;gap:8px}.logic-card{min-width:100%;padding:10px 13px}.viewport-toolbar{margin-left:auto;height:60px}.empty-canvas h1{font-size:21px}.project-meta{display:none}.workspace-grid.left-collapsed{grid-template-columns:1fr 240px}.workspace-grid.right-collapsed{grid-template-columns:220px 1fr}.workspace-grid.left-collapsed.right-collapsed{grid-template-columns:1fr}.inspector .learning-note{display:none}}@media(max-width:1000px){.navigation{gap:18px}.nav-item{font-size:11px}.brand{font-size:20px}.brand-bolt{font-size:50px}.brand-sub{font-size:7px;letter-spacing:2px}.header{height:70px;gap:25px}.pro-button{font-size:11px;padding:10px 12px}.workspace-grid{grid-template-columns:205px minmax(0,1fr);height:calc(100dvh - 150px)}.inspector{display:none;position:fixed;right:15px;top:135px;bottom:18px;width:280px;background:var(--bg);border:1px solid var(--line);padding:12px;border-radius:12px;z-index:30;box-shadow:0 15px 70px #101f4520}.workspace-grid.right-collapsed .inspector{display:flex}.workspace-grid.right-collapsed{grid-template-columns:205px minmax(0,1fr)}.workspace-grid.left-collapsed{grid-template-columns:1fr}.workspace-grid.left-collapsed.right-collapsed{grid-template-columns:1fr}.floating-panel.right{display:block}.editor-bottom{flex-wrap:nowrap}.logic-card{min-width:0}.viewport-toolbar{height:auto;flex-shrink:0}.logic-card p{font-size:8px}.top-toolbar .icon-button{width:38px}.top-toolbar{gap:6px}.file-tools,.edit-tools{gap:5px}.top-toolbar button{padding:0 11px}.tabs .tab{font-size:11px}.empty-canvas h1{font-size:24px}}@media(max-width:760px){.header{height:65px;padding:0 14px;gap:12px}.brand{font-size:20px}.brand-bolt{font-size:46px}.brand-sub{font-size:6px;letter-spacing:2.1px}.navigation{display:none}.header-actions{margin-left:auto;gap:7px}.header-actions .icon-button{width:33px}.pro-button{padding:9px 10px;font-size:10px;gap:5px}.pro-button span{font-size:18px}.avatar{width:33px;height:33px}.workspace{padding:12px 10px 80px}.workspace-heading{margin-bottom:12px}.tabs{width:100%}.tab{padding:11px 9px;justify-content:center;flex:1;font-size:10px!important;gap:6px}.tab svg{width:15px;height:15px}.mini-pro{font-size:6px;padding:1px 3px}.workspace-grid{grid-template-columns:minmax(0,1fr)!important;height:calc(100dvh - 205px);min-height:390px;gap:0}.library{display:none;position:fixed;z-index:35;bottom:65px;left:10px;right:10px;max-height:65dvh;border-radius:14px 14px 10px 10px;box-shadow:0 -15px 70px #101f4520}.workspace-grid.left-collapsed .library{display:flex}.component-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.component-card{min-height:105px}.component-card svg{width:53px;height:70px}.component-card .component-name{font-size:10px}.library-footer{font-size:10px}.panel-heading h2{font-size:14px}.search-box{min-height:42px}.search-box input{font-size:13px}.category h3{font-size:13px}.inspector{right:10px;left:10px;top:auto;bottom:65px;width:auto;max-height:70dvh;z-index:35}.inspector .properties{min-height:130px}.inspector .property-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.property-fields h3{grid-column:1/-1}.field select,.field input{min-height:42px}.floating-panel.left{display:none!important}.floating-panel.right{display:none!important}.top-toolbar{height:44px}.top-toolbar button{height:42px;font-size:10px;padding:0 10px}.top-toolbar .icon-button{width:42px}.editor{gap:9px}.empty-canvas h1{font-size:21px}.empty-canvas p{font-size:11px}.empty-symbol{width:86px;height:73px;margin-bottom:21px}.empty-bolt{font-size:50px}.empty-symbol:before,.empty-symbol:after{top:37px}.empty-symbol .n1,.empty-symbol .n2{top:33px}.empty-symbol .n3,.empty-symbol .n4{left:39px}.eyebrow{font-size:6.7px;letter-spacing:1.2px}.canvas-top-label{top:12px;left:12px;font-size:7px}.canvas-bottom-label{font-size:8px;bottom:11px;left:11px;right:11px}.editor-bottom{min-height:60px;gap:5px;flex-wrap:wrap}.logic-card{display:none}.viewport-toolbar{width:100%;justify-content:center;gap:7px;border-radius:8px;height:57px;padding:5px}.viewport-toolbar button{min-width:39px;height:43px;font-size:7px}.mobile-toolbar{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:40;background:var(--surface);border-top:1px solid var(--line);padding:9px 8px calc(9px + env(safe-area-inset-bottom));gap:5px}.mobile-toolbar button{flex:1;min-height:41px;font-size:11px;background:var(--bg);border:1px solid var(--line);border-radius:6px}.mobile-toolbar button:last-child{color:#fff;background:var(--blue);border-color:var(--blue)}dialog{padding:21px;max-height:87dvh}.modal-header h2{font-size:21px}.plan-grid{grid-template-columns:1fr}.plan-card{padding:20px}.plan-card ul{margin:11px 0}.form-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,1fr)}.stat-card:last-child{grid-column:1/-1}.shortcut-grid{grid-template-columns:1fr}.list-card{padding:13px;gap:5px}.list-actions button{padding:7px;font-size:10px}#toast{bottom:80px}.modal-intro{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}body:not(.simulation-running) .wire-active,body.page-hidden .wire-active{animation:none}

.segment-handle{fill:white;stroke:#1678f5;stroke-width:2;cursor:move;pointer-events:all}.waypoint{cursor:move}

.brand-logo{width:46px;height:46px;object-fit:contain}.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.profile-avatar{width:80px;height:80px;border-radius:50%;object-fit:cover}.settings-image{max-width:140px;max-height:90px;object-fit:contain}.component-context{position:absolute;display:flex;gap:3px;padding:4px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 4px 20px #101c4420;z-index:8}.component-context[hidden]{display:none}.component-context button{width:40px;height:40px;display:grid;place-items:center;border-radius:7px;background:var(--blue-soft);color:var(--blue);font-size:20px}.component-context button svg{width:21px;height:21px}.component-context button[data-action=delete]{color:#ef5264}.canvas-container{cursor:grab}.canvas-container:active{cursor:grabbing}.segment-handle{stroke-width:2;vector-effect:non-scaling-stroke}.brand{max-width:35%;}.brand>span:last-child{overflow:hidden;text-overflow:ellipsis}.empty-canvas p{white-space:normal;max-width:330px;margin-left:auto;margin-right:auto} .field input[type=file]{padding:9px;font-size:12px}
@media(max-width:760px){.header{padding:0 10px;gap:6px}.brand{font-size:17px;max-width:44%;}.brand-logo{width:34px;height:34px}.brand-sub{letter-spacing:1px}.pro-button{display:none}.header-actions{gap:4px}.component-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.component-card{min-height:116px;padding:10px 5px;touch-action:pan-y}.component-card .component-name{font-size:12px;line-height:16px}.component-card:hover{transform:none}.component-context button{width:42px;height:42px}.canvas-container #canvas{touch-action:none}.c-body{cursor:pointer}.mobile-toolbar button{font-size:12px;min-height:44px}.empty-canvas{max-width:90%;white-space:normal}.brand-bolt{font-size:38px}.header-actions .icon-button{height:44px;width:38px}.brand-sub{font-size:6px}.inspector .property-fields{display:block}}

.component-context #component-operation,.component-context #component-operation2{width:auto;min-width:48px;padding:0 10px;font-size:12px;white-space:nowrap;touch-action:none}.component-context .pressed{background:var(--blue);color:white}.c-body{cursor:grab}.c-body:active{cursor:grabbing}
.component-context button[hidden]{display:none}

/* Each graphic has isolated SVG definitions; keep shadows and pins visible. */
.component-card>svg,.property-thumb>svg,.c-body>svg{overflow:visible;flex-shrink:0}
@media(max-width:760px){.component-card>svg{width:53px;height:71px;min-height:71px}.component-card{height:auto;min-height:128px}.property-thumb{overflow:visible}}

.terminal-label-bg{fill:var(--surface);opacity:.94;pointer-events:none}.terminal-label{fill:var(--text);font-weight:700}.terminal.magnet .terminal-dot{stroke:#18b68a;stroke-width:5;paint-order:stroke;filter:drop-shadow(0 0 4px #18b68a)}
.motor-status rect{fill:#eaf0f5;stroke:#cad8e3}.motor-status text{font-size:10px;font-weight:700;fill:#526477}.motor-status.motor-on rect{fill:#dcf8ea;stroke:#78cdae}.motor-status.motor-on text{fill:#087d56}.motor-details{padding:10px;border-radius:8px;background:#eff3f7;font-size:12px;line-height:1.5;margin:10px 0}.motor-details p{margin:5px 0}.motor-details small{display:block;color:var(--muted)}.motor-details.motor-on{background:#dff8ee;color:#09734e}.motor-rotor{transform-box:fill-box;transform-origin:center}.motor-rotor.spin-right{animation:motor-rotate 1.1s linear infinite}.motor-rotor.spin-left{animation:motor-rotate 1.1s linear infinite reverse}@keyframes motor-rotate{to{rotate:360deg}}@media(prefers-reduced-motion:reduce){.motor-rotor{animation:none!important}}
.pin-hint,.pin-picker{position:absolute;z-index:12;background:var(--surface);border:1px solid #29a987;border-radius:10px;box-shadow:0 5px 22px #13284622;padding:9px;max-width:250px;color:var(--text)}.pin-hint{width:190px;pointer-events:none;font-size:12px}.pin-hint strong,.pin-hint span{display:block}.pin-hint span{font-size:16px;color:#07986f;font-weight:700}.pin-picker{width:250px;font-size:12px}.pin-picker>div{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:8px}.pin-picker button{min-height:44px;border:1px solid var(--line);border-radius:6px;font-size:16px;font-weight:700;color:var(--text);background:var(--blue-soft)}.pin-picker button.nearest{border:2px solid #1bab83}.pin-hint[hidden],.pin-picker[hidden]{display:none}

/* Insulated cables: rounded bends and isolated crossing bridges. */
.wire-clearance,.wire-shadow,.wire-outline,.wire-shine{pointer-events:none}
.wire-unpowered .wire-visible,.wire-unpowered .wire-outline,.wire-unpowered .wire-shadow,.wire-unpowered .wire-shine{opacity:.25}
.wire-phase-flow{stroke:#fff4ba;stroke-width:2;stroke-dasharray:3 11;animation-duration:.7s}
@media(max-width:760px){.viewport-toolbar{gap:2px;justify-content:space-evenly}.viewport-toolbar button{min-width:44px;min-height:44px;padding:0 3px}.viewport-toolbar .toolbar-divider{margin:0;width:1px}.viewport-toolbar .zoom-value{min-width:34px}.viewport-toolbar #reset-view-button{display:none}}

@media(max-width:380px){.viewport-toolbar .zoom-value{display:none}}
