.react-flow{--xy-edge-stroke-default:#b1b1b7;--xy-edge-stroke-width-default:1;--xy-edge-stroke-selected-default:#555;--xy-connectionline-stroke-default:#b1b1b7;--xy-connectionline-stroke-width-default:1;--xy-attribution-background-color-default:#ffffff80;--xy-minimap-background-color-default:#fff;--xy-minimap-mask-background-color-default:#f0f0f099;--xy-minimap-mask-stroke-color-default:transparent;--xy-minimap-mask-stroke-width-default:1;--xy-minimap-node-background-color-default:#e2e2e2;--xy-minimap-node-stroke-color-default:transparent;--xy-minimap-node-stroke-width-default:2;--xy-background-color-default:transparent;--xy-background-pattern-dots-color-default:#91919a;--xy-background-pattern-lines-color-default:#eee;--xy-background-pattern-cross-color-default:#e2e2e2;background-color:var(--xy-background-color,var(--xy-background-color-default));--xy-node-color-default:inherit;--xy-node-border-default:1px solid #1a192b;--xy-node-background-color-default:#fff;--xy-node-group-background-color-default:#f0f0f040;--xy-node-boxshadow-hover-default:0 1px 4px 1px #00000014;--xy-node-boxshadow-selected-default:0 0 0 .5px #1a192b;--xy-node-border-radius-default:3px;--xy-handle-background-color-default:#1a192b;--xy-handle-border-color-default:#fff;--xy-selection-background-color-default:#0059dc14;--xy-selection-border-default:1px dotted #0059dccc;--xy-controls-button-background-color-default:#fefefe;--xy-controls-button-background-color-hover-default:#f4f4f4;--xy-controls-button-color-default:inherit;--xy-controls-button-color-hover-default:inherit;--xy-controls-button-border-color-default:#eee;--xy-controls-box-shadow-default:0 0 2px 1px #00000014;--xy-edge-label-background-color-default:#fff;--xy-edge-label-color-default:inherit;--xy-resize-background-color-default:#3367d9;direction:ltr}.react-flow.dark{--xy-edge-stroke-default:#3e3e3e;--xy-edge-stroke-width-default:1;--xy-edge-stroke-selected-default:#727272;--xy-connectionline-stroke-default:#b1b1b7;--xy-connectionline-stroke-width-default:1;--xy-attribution-background-color-default:#96969640;--xy-minimap-background-color-default:#141414;--xy-minimap-mask-background-color-default:#3c3c3c99;--xy-minimap-mask-stroke-color-default:transparent;--xy-minimap-mask-stroke-width-default:1;--xy-minimap-node-background-color-default:#2b2b2b;--xy-minimap-node-stroke-color-default:transparent;--xy-minimap-node-stroke-width-default:2;--xy-background-color-default:#141414;--xy-background-pattern-dots-color-default:#555;--xy-background-pattern-lines-color-default:#333;--xy-background-pattern-cross-color-default:#333;--xy-node-color-default:#f8f8f8;--xy-node-border-default:1px solid #3c3c3c;--xy-node-background-color-default:#1e1e1e;--xy-node-group-background-color-default:#f0f0f040;--xy-node-boxshadow-hover-default:0 1px 4px 1px #ffffff14;--xy-node-boxshadow-selected-default:0 0 0 .5px #999;--xy-handle-background-color-default:#bebebe;--xy-handle-border-color-default:#1e1e1e;--xy-selection-background-color-default:#c8c8dc14;--xy-selection-border-default:1px dotted #c8c8dccc;--xy-controls-button-background-color-default:#2b2b2b;--xy-controls-button-background-color-hover-default:#3e3e3e;--xy-controls-button-color-default:#f8f8f8;--xy-controls-button-color-hover-default:#fff;--xy-controls-button-border-color-default:#5b5b5b;--xy-controls-box-shadow-default:0 0 2px 1px #00000014;--xy-edge-label-background-color-default:#141414;--xy-edge-label-color-default:#f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props,var(--xy-background-color,var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{width:100%;height:100%;position:absolute;top:0;left:0}.react-flow__pane{z-index:1;touch-action:none}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.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__edge-path{stroke:var(--xy-edge-stroke,var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width,var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke,var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width,var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{pointer-events:none;position:absolute;overflow:visible}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:.5s linear infinite dashdraw}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray: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.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected,var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke,var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke,var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:.5s linear infinite dashdraw}svg.react-flow__connectionline{z-index:1001;position:absolute;overflow:visible}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{-webkit-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default;position:absolute}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:0 0;pointer-events:none}.react-flow__nodesselection-rect{pointer-events:all;cursor:grab;position:absolute}.react-flow__handle{pointer-events:none;background-color:var(--xy-handle-background-color,var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color,var(--xy-handle-border-color-default));border-radius:100%;width:6px;min-width:5px;height:6px;min-height:5px;position:absolute}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;bottom:0;left:50%;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{z-index:5;margin:15px;position:absolute}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px)translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px)translateY(-50%)}.react-flow__attribution{background:var(--xy-attribution-background-color,var(--xy-attribution-background-color-default));margin:0;padding:2px 3px;font-size:10px}.react-flow__attribution a{color:#999;text-decoration:none}@keyframes dashdraw{0%{stroke-dashoffset:10px}}.react-flow__edgelabel-renderer{pointer-events:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute;top:0;left:0}.react-flow__viewport-portal{-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute;top:0;left:0}.react-flow__minimap{background:var(--xy-minimap-background-color-props,var(--xy-minimap-background-color,var(--xy-minimap-background-color-default)))}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var(--xy-minimap-mask-background-color-props,var(--xy-minimap-mask-background-color,var(--xy-minimap-mask-background-color-default)));stroke:var(--xy-minimap-mask-stroke-color-props,var(--xy-minimap-mask-stroke-color,var(--xy-minimap-mask-stroke-color-default)));stroke-width:var(--xy-minimap-mask-stroke-width-props,var(--xy-minimap-mask-stroke-width,var(--xy-minimap-mask-stroke-width-default)))}.react-flow__minimap-node{fill:var(--xy-minimap-node-background-color-props,var(--xy-minimap-node-background-color,var(--xy-minimap-node-background-color-default)));stroke:var(--xy-minimap-node-stroke-color-props,var(--xy-minimap-node-stroke-color,var(--xy-minimap-node-stroke-color-default)));stroke-width:var(--xy-minimap-node-stroke-width-props,var(--xy-minimap-node-stroke-width,var(--xy-minimap-node-stroke-width-default)))}.react-flow__background-pattern.dots{fill:var(--xy-background-pattern-color-props,var(--xy-background-pattern-color,var(--xy-background-pattern-dots-color-default)))}.react-flow__background-pattern.lines{stroke:var(--xy-background-pattern-color-props,var(--xy-background-pattern-color,var(--xy-background-pattern-lines-color-default)))}.react-flow__background-pattern.cross{stroke:var(--xy-background-pattern-color-props,var(--xy-background-pattern-color,var(--xy-background-pattern-cross-color-default)))}.react-flow__controls{box-shadow:var(--xy-controls-box-shadow,var(--xy-controls-box-shadow-default));flex-direction:column;display:flex}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{background:var(--xy-controls-button-background-color,var(--xy-controls-button-background-color-default));border:none;border-bottom:1px solid var(--xy-controls-button-border-color-props,var(--xy-controls-button-border-color,var(--xy-controls-button-border-color-default)));width:26px;height:26px;color:var(--xy-controls-button-color-props,var(--xy-controls-button-color,var(--xy-controls-button-color-default)));cursor:pointer;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;padding:4px;display:flex}.react-flow__controls-button svg{fill:currentColor;width:100%;max-width:12px;max-height:12px}.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-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{border-radius:var(--xy-node-border-radius,var(--xy-node-border-radius-default));width:150px;color:var(--xy-node-color,var(--xy-node-color-default));text-align:center;border:var(--xy-node-border,var(--xy-node-border-default));background-color:var(--xy-node-background-color,var(--xy-node-background-color-default));padding:10px;font-size:12px}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover,var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.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:var(--xy-node-boxshadow-selected,var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color,var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color,var(--xy-selection-background-color-default));border:var(--xy-selection-border,var(--xy-selection-border-default))}.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-button:hover{background:var(--xy-controls-button-background-color-hover-props,var(--xy-controls-button-background-color-hover,var(--xy-controls-button-background-color-hover-default)));color:var(--xy-controls-button-color-hover-props,var(--xy-controls-button-color-hover,var(--xy-controls-button-color-hover-default)))}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var(--xy-controls-button-border-color-props,var(--xy-controls-button-border-color,var(--xy-controls-button-border-color-default)))}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.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{background-color:var(--xy-resize-background-color,var(--xy-resize-background-color-default));border:1px solid #fff;border-radius:1px;width:5px;height:5px;translate:-50% -50%}.react-flow__resize-control.handle.left{top:50%;left:0}.react-flow__resize-control.handle.right{top:50%;left:100%}.react-flow__resize-control.handle.top{top:0;left:50%}.react-flow__resize-control.handle.bottom{top:100%;left:50%}.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:var(--xy-resize-background-color,var(--xy-resize-background-color-default));border-style:solid;border-width:0}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;height:100%;top:0;transform:translate(-50%)}.react-flow__resize-control.line.left{border-left-width:1px;left:0}.react-flow__resize-control.line.right{border-right-width:1px;left:100%}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{width:100%;height:1px;left:0;transform:translateY(-50%)}.react-flow__resize-control.line.top{border-top-width:1px;top:0}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color,var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color,var(--xy-edge-label-color-default))}:root{--bg:#f4f1ea;--panel-bg:#fff;--ink:#23262b;--muted:#6c6f75;--line:#ddd8cc;--accent:#2f7cf6;--live:#ffb300;--error:#d93025;--warn:#c77700;--ok:#1e8e3e;--brass:#caa23a;--silver:#c3c7cc;--green:#2e8b3d;color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}html,body,#root{background:var(--bg);height:100%;margin:0}button{font:inherit;cursor:pointer}.app{flex-direction:column;height:100%;display:flex}header{color:#f4f1ea;background:#23262b;align-items:center;gap:24px;height:52px;padding:0 16px;display:flex}header h1{letter-spacing:.2px;margin:0;font-size:17px;font-weight:650}.logo{color:var(--live)}.status{gap:8px;font-size:12px;display:flex}.status span{background:#ffffff14;border-radius:999px;padding:3px 9px}.status .bad{background:var(--error);color:#fff}.status .warn{background:var(--warn);color:#fff}.status .good{color:#9fd9ad}.actions{gap:6px;margin-left:auto;display:flex}.actions button{color:inherit;background:#ffffff14;border:1px solid #ffffff2a;border-radius:6px;padding:5px 12px;font-size:13px}.actions button:hover{background:#ffffff26}main{flex:1;grid-template-columns:190px 1fr 320px;min-height:0;display:grid}.canvas{min-width:0;position:relative}.palette{background:var(--panel-bg);border-right:1px solid var(--line);padding:12px;overflow-y:auto}.palette h3{text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:14px 0 6px;font-size:11px}.palette section:first-child h3{margin-top:0}.palette button{text-align:left;border:1px solid var(--line);background:#faf8f3;border-radius:6px;align-items:center;gap:8px;width:100%;margin-bottom:4px;padding:6px 8px;font-size:13px;display:flex}.palette button:hover{border-color:var(--accent)}.palette .grid2{grid-template-columns:1fr 1fr;gap:0 4px;display:grid}.swatch{border:1px solid #0004;border-radius:3px;flex:none;width:14px;height:10px}.hint{color:var(--muted);margin-top:16px;font-size:11.5px;line-height:1.45}aside{background:var(--panel-bg);border-left:1px solid var(--line);flex-direction:column;min-height:0;display:flex}aside h2{align-items:center;gap:8px;margin:0 0 10px;font-size:13px;display:flex}aside h2 code{color:var(--muted);font-size:11px;font-weight:400}.inspector{border-bottom:1px solid var(--line);padding:14px}.inspector.empty p{color:var(--muted);margin:0;font-size:12.5px}.field{grid-template-columns:110px 1fr;align-items:center;gap:8px;margin-bottom:8px;font-size:12.5px;display:grid}.field span{color:var(--muted)}.field input,.field select{font:inherit;border:1px solid var(--line);border-radius:5px;min-width:0;padding:4px 6px}.check{align-items:center;gap:6px;margin:6px 0 10px;font-size:12.5px;display:flex}.chips{flex-wrap:wrap;gap:4px;margin-bottom:10px;display:flex}.chips button{border:1px solid var(--line);background:#faf8f3;border-radius:999px;padding:3px 8px;font-size:11.5px}.stat{margin:4px 0 10px;font-size:12.5px}.danger{color:var(--error);background:#fff6f5;border:1px solid #e8b4b0;border-radius:6px;padding:5px 10px;font-size:12.5px}.problems{flex:1;padding:14px;overflow-y:auto}.problems .count{background:#eee9dd;border-radius:999px;padding:1px 8px;font-size:11px}.problems ul{margin:0;padding:0;list-style:none}.problems li{border:1px solid var(--line);cursor:pointer;border-radius:7px;grid-template-columns:20px 1fr;gap:2px 6px;margin-bottom:6px;padding:8px;font-size:12.5px;line-height:1.4;display:grid}.problems li.error{border-left:4px solid var(--error)}.problems li.warning{border-left:4px solid var(--warn)}.problems li.active{background:#fff4d6}.problems .nec{color:#3b4b66;background:#eef1f6;border-radius:4px;grid-column:2;justify-self:start;padding:1px 6px;font-size:10.5px;font-weight:600}.problems .ok{color:var(--ok);font-size:13px}.disclaimer{color:var(--muted);margin-top:12px;font-size:10.5px}.react-flow__handle.screw{border:1.5px solid #0006;border-radius:50%;width:13px;height:13px;box-shadow:inset 0 0 0 2px #fff5}.react-flow__handle.screw:after{content:"";background:#0006;height:1.5px;margin-top:-.75px;position:absolute;top:50%;left:2px;right:2px;transform:rotate(-35deg)}.screw-brass{background:var(--brass)}.screw-silver{background:var(--silver)}.screw-green{background:var(--green)}.screw-dark{background:#3a3d42}.react-flow__handle.live{box-shadow:0 0 0 3px #ffb30066, 0 0 8px 2px var(--live)}.react-flow__handle:hover{outline:2px solid var(--accent);outline-offset:1px}.wire-glow{fill:none;stroke:var(--live);stroke-width:13px;stroke-opacity:.38;stroke-linecap:round;filter:blur(2px)}.wire-hl{fill:none;stroke:var(--error);stroke-width:12px;stroke-opacity:.35;stroke-linecap:round}.panel{background:#e9eaec;border:2px solid #7b8088;border-radius:8px;width:250px;padding-bottom:6px;box-shadow:0 2px 6px #0002}.panel-title{color:#fff;background:#4a4f57;border-radius:5px 5px 0 0;justify-content:space-between;padding:7px 10px;font-size:13px;font-weight:600;display:flex}.panel-title span{opacity:.8;font-weight:400}.panel-empty{color:var(--muted);padding:8px 10px;font-size:11.5px}.brk{cursor:pointer;background:#fff;border:1px solid #c4c7cc;border-radius:5px;grid-template-columns:30px 1fr auto 8px;align-items:center;gap:8px;margin:6px 8px 0;padding:5px 6px;display:grid;position:relative}.brk.inspecting{border-color:var(--accent)}.brk.tripped{border-color:var(--warn);background:#fff1e0}.brk.overloaded .brk-amps{color:var(--error);font-weight:700}.brk-toggle{background:#2b2e33;border:1px solid #555;border-radius:4px;width:28px;height:34px;padding:0;position:relative}.brk-toggle span{background:#d9dadc;border-radius:2px;height:13px;transition:top .12s;position:absolute;left:5px;right:5px}.brk.on .brk-toggle span{background:#e94d3f;top:3px}.brk.off .brk-toggle span{top:16px}.brk.tripped .brk-toggle span{background:var(--warn);top:10px}.brk-info{font-size:12px;line-height:1.3}.brk-info em{color:var(--warn);margin-left:6px;font-size:10.5px;font-style:normal;font-weight:700}.brk-label{color:var(--muted);font-size:11px}.brk-amps{color:#a06b00;font-variant-numeric:tabular-nums;font-size:11px}.brk-lugs{flex-direction:column;justify-content:space-evenly;display:flex;position:absolute;top:0;bottom:0;right:0}.brk-lug{height:1px;position:relative}.bar-row{color:#444;background:#d8dadd;border-radius:4px;margin:6px 8px 0;padding:5px 8px;font-size:11.5px;position:relative}.device{background:#fdfcf9;border:1.5px solid #8d8a83;border-radius:9px;min-width:150px;padding-bottom:12px;position:relative;box-shadow:0 2px 5px #0001}.device-title{text-align:center;white-space:nowrap;text-overflow:ellipsis;border-bottom:1px solid #e6e2d8;max-width:190px;padding:5px 10px;font-size:11.5px;font-weight:600;overflow:hidden}.device-body{align-items:stretch;padding-top:6px;display:flex}.terms{flex-direction:column;justify-content:center;gap:4px;min-width:34px;display:flex}.term{height:22px;color:var(--muted);align-items:center;font-size:10px;display:flex;position:relative}.terms-left .term{padding-left:11px}.terms-right .term{justify-content:flex-end;padding-right:11px}.device-center{flex-direction:column;flex:1;justify-content:center;align-items:center;gap:4px;padding:0 6px;display:flex}.device>.react-flow__handle-bottom{bottom:-7px}.toggle{background:#f1eee6;border:1px solid #b9b5ab;border-radius:5px;align-items:center;gap:6px;padding:3px 8px;font-size:11px;font-weight:600;display:flex}.toggle .lever{background:#8f8b82;border-radius:2px;width:8px;height:14px;transition:transform .12s;transform:translateY(3px)}.toggle.active .lever{background:var(--ink);transform:translateY(-3px)}.contacts line{stroke:#3a3d42;stroke-width:2.2px;stroke-linecap:round}.bulb{background:radial-gradient(circle at 40% 35%,#fff,#e6e3da);border:2px solid #9a968c;border-radius:50%;width:38px;height:38px}.bulb.lit{background:radial-gradient(circle at 40% 35%,#fffbe6,#ffd54f 60%,#ffb300);border-color:#e0a100;box-shadow:0 0 18px 8px #ffd54f99,0 0 50px 18px #ffe08255}.bulb.blown{border-color:var(--error);background:radial-gradient(circle,#ffd7d2,#e86b5f);animation:.4s infinite alternate flash}@keyframes flash{to{opacity:.4}}.readout{color:var(--muted);font-variant-numeric:tabular-nums;font-size:10.5px}.duplex{background:#ece9e1;border:1px solid #c9c4b8;border-radius:6px;flex-direction:column;gap:4px;padding:5px 8px;display:flex}.face{background:#fbfaf6;border:1px solid #c9c4b8;border-radius:7px;width:26px;height:20px;position:relative}.face i{background:#333;width:2.5px;height:7px;position:absolute;top:4px}.face i:first-child{left:7px}.face i:nth-child(2){height:8px;right:7px}.face b{background:#333;border-radius:50% 50% 0 0;width:5px;height:5px;margin-left:-2.5px;position:absolute;bottom:2px;left:50%}.cable{width:180px;position:relative}.cable-sheath{border:1.5px solid #0004;border-radius:6px;flex-direction:column;justify-content:center;align-items:center;font-size:11px;line-height:1.3;display:flex;position:absolute;inset:0 34px;box-shadow:inset 0 -6px 10px #0000001a,inset 0 4px 6px #fff6,0 2px 4px #0002}.cable-sheath span{opacity:.75;font-size:10px}.stub{border:1px solid #0005;border-radius:3px;width:34px;height:6px;position:absolute}.stub-a{left:0}.stub-b{right:0}.stub.live{box-shadow:0 0 6px 2px var(--live)}.stub.taped:after{content:"";background:#151515;width:8px;position:absolute;top:-1px;bottom:-1px}.stub-a.taped:after{left:6px}.stub-b.taped:after{right:6px}.react-flow__handle.stub-tip{background:#b87333;border:1.5px solid #0006;border-radius:50%;width:10px;height:10px}.stub-tip-black{background:#151515!important}.stub-tip-white{background:#f4f4ef!important}.stub-tip-red{background:#c62828!important}.wirenut{background:linear-gradient(#f39a2b,#d06f12);border:1.5px solid #8a4a0c;border-radius:45% 45% 12px 12px;width:26px;height:30px;position:relative}.wirenut.live{box-shadow:0 0 8px 2px var(--live)}.react-flow__handle.nut-handle{background:#3a3d42;border:1.5px solid #fff;width:12px;height:12px;top:70%;left:50%}.hl,.device.hl,.panel.hl,.cable.hl .cable-sheath{outline:3px solid var(--error);outline-offset:3px}.react-flow__node.selected .device,.react-flow__node.selected .panel,.react-flow__node.selected .cable-sheath,.react-flow__node.selected .wirenut{outline:2px solid var(--accent);outline-offset:3px}.device-title{justify-content:center;align-items:center;gap:6px;max-width:230px;display:flex}.device-title .name{text-overflow:ellipsis;overflow:hidden}.loc{color:#2c4f8a;background:#e7eefb;border-radius:999px;flex:none;padding:1px 6px;font-size:9.5px;font-weight:600}.brk.two-pole{padding-top:9px;padding-bottom:9px}.brk.two-pole .brk-toggle{height:44px}.brk.two-pole.on .brk-toggle span{top:4px}.brk.two-pole.off .brk-toggle span{top:26px}.brk-type{color:#4b3a8f;background:#e8e3f7;border-radius:3px;margin-left:5px;padding:0 4px;font-size:9.5px;font-style:normal;font-weight:700}.brk-type.t-gfci{color:#1f6b38;background:#ddf0e3}.brk-type.t-dual{color:#8a4a0c;background:#fde7cf}.brk-tie{margin-left:4px;font-size:11px;font-style:normal}.toggle.disabled{opacity:.45}.smart-led{background:#bbb;border-radius:50%;width:8px;height:8px}.smart-led.standby{background:#4c8bf5;box-shadow:0 0 5px #4c8bf5}.smart-led.on{background:#3ccf6e;box-shadow:0 0 6px #3ccf6e}.device.smart{background:#f7f8fb}.face.powered{box-shadow:0 0 0 2px #1e8e3e66}.face.over{box-shadow:0 0 0 2px var(--error)}.tab-broken{color:var(--warn);text-align:center;font-size:9px;font-weight:600}.gfci-buttons{gap:3px;display:flex}.gfci-buttons button{border:1px solid #b9b5ab;border-radius:3px;padding:2px 4px;font-size:8.5px;font-weight:700}.gfci-buttons .test{color:#fff;background:#2b2e33}.gfci-buttons .reset{color:#fff;background:#e0473b}.motor{background:repeating-conic-gradient(#d6d2c8 0 30deg, #f3f1ea 30deg 60deg);border:2px solid #9a968c;border-radius:50%;width:36px;height:36px}.motor.running{border-color:var(--ok);background:repeating-conic-gradient(#8fd3a4 0 30deg, #e8f6ec 30deg 60deg);animation:1.2s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.readout.bad{color:var(--error);font-weight:600}.readout.good{color:var(--ok);font-weight:600}.wire-hit{fill:none;stroke:#0000;stroke-width:14px;pointer-events:stroke}.palette button .tag{color:var(--muted);background:#efebe1;border-radius:3px;margin-left:auto;padding:0 5px;font-size:9.5px;font-style:normal;font-weight:700}.palette button[draggable=true]{cursor:grab}kbd{border:1px solid var(--line);background:#efebe1;border-radius:3px;padding:0 3px;font:10.5px ui-monospace,monospace}.hint-small{color:var(--muted);margin:0 0 8px;font-size:11.5px}.chips button.on{border-color:var(--accent);background:#e9f1fe}.actions .sep{background:#ffffff2a;width:1px;margin:4px}.actions button:disabled{opacity:.4;cursor:default}.actions select.examples{width:220px;font:inherit;color:inherit;background:#ffffff14;border:1px solid #ffffff2a;border-radius:6px;padding:4px 8px;font-size:13px}.actions select.examples option{color:var(--ink)}.device.inovelli{background:#fbfbfd;border-color:#3d6fb6}.inov-body{background:#f1f2f4;border:1px solid #d3d6dc;border-radius:6px;align-items:stretch;gap:5px;padding:4px 6px;display:flex}.inov-body.unpowered{opacity:.55}.inov-led{flex-direction:column;justify-content:center;gap:2px;display:flex}.inov-led i{background:#dcdfe4;border-radius:1px;width:4px;height:6px;display:block}.inov-led i.on{background:#2f7cf6;box-shadow:0 0 4px #2f7cf6}.inov-led i.idle{background:#b9c7dd}.inov-paddle{border:1px solid #c3c7cf;border-radius:4px;flex-direction:column;width:30px;display:flex;overflow:hidden;box-shadow:0 1px 2px #0002}.inov-paddle button{background:#fff;border:none;flex:1 0 22px;height:22px;padding:0}.inov-paddle button.up{border-bottom:1px solid #e3e5ea}.inov-paddle button:hover{background:#e9f1fe}.inov-paddle button:active{background:#cfe0fd}.inov-side{flex-direction:column;align-items:center;gap:2px;display:flex}.inov-side button{background:#fff;border:1px solid #c3c7cf;border-radius:3px;width:18px;height:16px;padding:0;font-size:11px;line-height:1}.inov-gap{background:#c3c7cf;border-radius:1px;width:12px;height:4px;margin-top:auto}.inov-gap.pulled{background:var(--error);transform:translateY(3px)}.stat .bad{color:var(--error)}.side-panel{flex-direction:column;flex:1;min-height:0;display:flex}.tabs{border-bottom:1px solid var(--line);gap:2px;padding:10px 14px 0;display:flex}.tabs button{color:var(--muted);background:0 0;border:1px solid #0000;border-bottom:none;border-radius:6px 6px 0 0;margin-bottom:-1px;padding:6px 12px;font-size:13px;font-weight:600}.tabs button.on{color:var(--ink);background:var(--panel-bg);border-color:var(--line)}.tabs .count{background:#eee9dd;border-radius:999px;margin-left:4px;padding:1px 7px;font-size:11px}.problems .chips-row{grid-column:2;align-items:center;gap:6px;display:flex}a.nec{color:#3b4b66;background:#eef1f6;border-radius:4px;padding:1px 6px;font-size:10.5px;font-weight:600;text-decoration:none}a.nec:hover{background:#dfe6f2;text-decoration:underline}.explain{border:1px solid var(--line);color:var(--accent);background:#fff;border-radius:4px;padding:1px 7px;font-size:10.5px}.rules{flex:1;padding:12px 14px;overflow-y:auto}.rules-search{width:100%;font:inherit;border:1px solid var(--line);border-radius:6px;margin-bottom:8px;padding:6px 9px;font-size:13px}.rules ul{margin:0;padding:0;list-style:none}.rules li{border:1px solid var(--line);background:#fff;border-radius:7px;margin-bottom:6px}.rules li.open{background:#f9fbff;border-color:#b9c9e6}.rule-head{text-align:left;background:0 0;border:none;align-items:baseline;gap:8px;width:100%;padding:7px 9px;font-size:12.5px;display:flex}.rule-title{flex:1;font-weight:600}.rule-cat{color:var(--muted);white-space:nowrap;font-size:10px}.rule-body{padding:0 10px 9px;font-size:12px;line-height:1.45}.rule-body p{margin:0 0 6px}.pull-chain{cursor:pointer;background:0 0;border:none;flex-direction:column;align-items:center;margin-top:-2px;padding:0 6px;display:flex;position:relative}.pull-chain .chain{background:repeating-linear-gradient(#8f8b82 0 3px,#0000 3px 5px);width:2px;height:18px;transition:height .12s}.pull-chain.on .chain{height:24px}.pull-chain .bob{background:#b08d57;border:1px solid #7a5f33;border-radius:40% 40% 50% 50%;width:8px;height:10px}.pull-chain:hover .bob{background:#c9a46a}.pull-chain .chain-label{color:var(--muted);font-size:9.5px;position:absolute;top:12px;left:18px}.splice-dot{stroke:#fff;stroke-width:1.2px}.splice-dot.c-black{fill:#151515}.splice-dot.c-white{fill:#9a9a94}.splice-dot.c-red{fill:#c62828}.splice-dot.c-ground{fill:#b87333}.view-toggles{border:1px solid var(--line);background:#fffffff0;border-radius:6px;padding:4px 9px;font-size:12px}.view-toggles label{cursor:pointer;align-items:center;gap:6px;display:flex}.project{border-left:1px solid #fff2;flex-direction:column;flex:0 auto;min-width:200px;max-width:360px;padding-left:16px;display:flex}.project-name{font:inherit;color:#fff;text-align:left;white-space:nowrap;text-overflow:ellipsis;background:0 0;border:1px solid #0000;border-radius:5px;max-width:100%;margin-left:-7px;padding:1px 6px;font-size:14px;font-weight:600;overflow:hidden}button.project-name:hover{background:#ffffff10;border-color:#fff3}input.project-name.editing{border-color:var(--accent);background:#ffffff18;outline:none;width:340px}.project-name .dirty{color:var(--live);margin-left:6px}.project-status{color:#b9bcc2;white-space:nowrap;text-overflow:ellipsis;font-size:11px;overflow:hidden}.project-status.example{color:#23262b;background:var(--live);border-radius:3px;align-self:flex-start;padding:0 5px;font-weight:600}.legs{flex-direction:column;gap:3px;padding:6px 10px 2px;display:flex}.leg{color:#444;grid-template-columns:18px 1fr 52px;align-items:center;gap:6px;font-size:10.5px;display:grid}.leg-track{background:#d3d5d9;border-radius:3px;height:6px;overflow:hidden}.leg-fill{background:#4c8bf5;height:100%;transition:width .2s;display:block}.leg.high .leg-fill{background:var(--warn)}.leg.over .leg-fill{background:var(--error)}.leg.over .leg-amps{color:var(--error);font-weight:700}.leg-amps{text-align:right;font-variant-numeric:tabular-nums}.calc{flex:1;padding:12px 14px;overflow-y:auto}.calc-result{border:1px solid var(--line);border-left:4px solid var(--ok);border-radius:7px;margin:4px 0 12px;padding:8px 10px;font-size:12.5px}.calc-result.high{border-left-color:var(--warn)}.calc-result.over{border-left-color:var(--error);background:#fff6f5}.calc-amps b{font-size:15px}.calc-bar{background:#e6e2d8;border-radius:4px;height:8px;margin:6px 0 4px;overflow:hidden}.calc-bar span{background:var(--ok);height:100%;display:block}.calc-result.high .calc-bar span{background:var(--warn)}.calc-result.over .calc-bar span{background:var(--error)}.calc-note{color:var(--muted);font-size:11.5px}.calc-table{border-collapse:collapse;width:100%;font-size:12px}.calc-table th{text-align:left;color:var(--muted);border-bottom:1px solid var(--line);padding:4px;font-size:10.5px;font-weight:600}.calc-table td{vertical-align:top;border-bottom:1px solid #efebe1;padding:5px 4px}.calc-table td:nth-child(2),.calc-table td:nth-child(3),.calc-table th:nth-child(2),.calc-table th:nth-child(3){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.calc-table tr.sub td:first-child>div:first-child{color:var(--muted)}.calc-table tfoot td{border-bottom:none;font-weight:700}.calc-detail{color:var(--muted);margin-top:2px;font-size:10.5px}.view-toggles{align-items:center;gap:12px;display:flex}.view-toggles .tidy{border:1px solid var(--accent);color:#1d4fa8;background:#e9f1fe;border-radius:5px;padding:3px 9px;font-size:12px;font-weight:600}.view-toggles .tidy:hover{background:#d6e6fd}.wire-hit{touch-action:none}.wire-hit.dragging{cursor:grabbing!important}.wire-reset{border:1.5px solid var(--accent);width:20px;height:20px;color:var(--accent);cursor:pointer;pointer-events:all;z-index:1001;background:#fff;border-radius:50%;padding:0;font-size:13px;line-height:1;position:absolute;top:0;left:0;box-shadow:0 1px 3px #0003}.wire-reset:hover{background:#d6e6fd}.react-flow__edgelabel-renderer{z-index:1001}.wire-end{background:var(--accent);cursor:grab;pointer-events:all;z-index:1001;touch-action:none;border:1.5px solid #fff;border-radius:2px;width:10px;height:10px;position:absolute;top:0;left:0;box-shadow:0 1px 3px #0004}.wire-end.dragging{cursor:grabbing;opacity:.6}.modal-backdrop{z-index:2000;background:#0006;justify-content:center;align-items:flex-start;padding-top:10vh;display:flex;position:fixed;inset:0}.modal{background:var(--panel-bg);border-radius:10px;flex-direction:column;width:min(560px,100vw - 32px);max-height:75vh;padding:16px 18px;display:flex;box-shadow:0 12px 40px #0004}.modal h2{margin:0 0 6px;font-size:16px}.modal code{font-size:11px}.project-list{margin:6px 0;padding:0;list-style:none;overflow-y:auto}.project-list button{text-align:left;border:1px solid var(--line);background:#fff;border-radius:7px;flex-direction:column;align-items:flex-start;width:100%;margin-bottom:4px;padding:8px 10px;display:flex}.project-list button:hover{border-color:var(--accent);background:#f5f9ff}.pl-name{font-size:13px;font-weight:600}.pl-meta{color:var(--muted);font-size:11px}.modal-actions{justify-content:flex-end;gap:8px;margin-top:8px;display:flex}.modal-actions button{border:1px solid var(--line);background:#faf8f3;border-radius:6px;padding:5px 12px;font-size:13px}.ebox{background:#2f6fd60f;border:2px solid #2f6fd673;border-radius:10px;width:100%;height:100%}.ebox.junction{background:#6e747c14;border-color:#6e747c99}.ebox.selected{border-color:var(--accent);box-shadow:0 0 0 2px #2f7cf640}.ebox-title{color:#3f5f99;white-space:nowrap;text-overflow:ellipsis;padding:4px 10px;font-size:11px;overflow:hidden}.ebox.junction .ebox-title{color:#5d6268}.ebox-title b{font-weight:600}.ebox-title span{opacity:.8}.box-members{margin:0 0 8px;padding:0;list-style:none}.box-members button,button.link{color:var(--accent);cursor:pointer;text-align:left;background:0 0;border:none;padding:2px 0;font-size:13px}.box-members button:hover,button.link:hover{text-decoration:underline}.ebox-title{gap:6px;display:flex}.ebox-fill{font-variant-numeric:tabular-nums;margin-left:auto}.ebox-fill.over{color:var(--error);opacity:1;font-weight:600}.box-buy{flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0;font-size:13px;display:flex}.box-buy button{border:1px solid var(--line);background:var(--panel-bg);cursor:pointer;border-radius:12px;padding:3px 8px;font-size:12px}.box-buy button:hover{border-color:var(--accent)}.box-buy button.on{border-color:var(--accent);background:#2f7cf61a}.notice{z-index:10;color:#fff;overflow-wrap:anywhere;background:#23262b;border-radius:8px;max-width:80%;padding:8px 14px;font-size:13px;position:absolute;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 4px 14px #00000040}header{z-index:30;position:relative}.save-anchor{display:flex;position:relative}.save-pop{background:var(--ok);color:#fff;white-space:nowrap;pointer-events:none;border-radius:6px;padding:6px 12px;font-size:13px;font-weight:600;animation:2.5s forwards save-pop;position:absolute;top:calc(100% + 10px);left:50%;transform:translate(-50%);box-shadow:0 4px 12px #00000040}.save-pop:before{content:"";border:5px solid #0000;border-top:0;border-bottom-color:var(--ok);margin-left:-5px;position:absolute;top:-5px;left:50%}@keyframes save-pop{0%{opacity:0;transform:translate(-50%,-4px)}8%,80%{opacity:1;transform:translate(-50%)}to{opacity:0}}.save-anchor button{align-items:center;gap:6px;display:inline-flex}.save-anchor button:disabled{cursor:progress}.spinner{border:2px solid;border-top-color:#0000;border-radius:50%;width:11px;height:11px;animation:.7s linear infinite spin}.actions .save-anchor button[aria-busy=true]{opacity:1;color:inherit}
