.logic-gates-viz-root{--color-off:#333;--color-low:#622;--color-high:#4f4;--color-unknown:#444;--glow-high:0 0 10px #4f4,0 0 20px #4f4;--glow-low:0 0 5px #500;--gate-bg:#222;--gate-border:#666;--wire-speed:.5s}.logic-gates-viz-root .gate{background:var(--gate-bg);border:2px solid var(--gate-border);z-index:2;border-radius:4px;justify-content:center;align-items:center;width:60px;height:40px;font-size:12px;font-weight:700;transition:all .2s;display:flex;position:relative}.logic-gates-viz-root .gate.interactive{cursor:pointer}.logic-gates-viz-root .gate.interactive:hover{border-color:#fff;transform:scale(1.05)}.logic-gates-viz-root .gate.high{border-color:var(--gate-border)}.logic-gates-viz-root .gate.high.gate-type-INPUT,.logic-gates-viz-root .gate.high.gate-type-OUTPUT{border-color:var(--color-high);color:var(--color-high)}.logic-gates-viz-root .gate.low{border-color:var(--gate-border)}.logic-gates-viz-root .gate-port.high{background:var(--color-high);box-shadow:0 0 5px var(--color-high)}.logic-gates-viz-root .gate-port.low{background:#f66;box-shadow:0 0 2px #500}.logic-gates-viz-root .gate-port{background:#888;border-radius:50%;width:8px;height:8px;position:absolute}.logic-gates-viz-root .gate-port.in-0{top:20%;left:-4px}.logic-gates-viz-root .gate-port.in-1{bottom:20%;left:-4px}.logic-gates-viz-root .gate-port.out{top:50%;right:-4px;transform:translateY(-50%)}.logic-gates-viz-root .gate-type-NOT,.logic-gates-viz-root .gate-type-AND{border-radius:0 20px 20px 0}.logic-gates-viz-root .gate-type-INPUT .gate-port.out{inset:auto auto -4px 50%;transform:translate(-50%)}.logic-gates-viz-root .gate-port.fake-in{background:#555;inset:-4px auto auto 50%;transform:translate(-50%);box-shadow:none!important}.logic-gates-viz-root .gate-type-OUTPUT .gate-port.in-0{top:-4px;bottom:auto;left:50%;transform:translate(-50%)}.logic-gates-viz-root .wire-path{fill:none;stroke:var(--color-unknown);stroke-width:2px;stroke-linecap:round;transition:stroke var(--wire-speed)linear}.logic-gates-viz-root .wire-path.high{stroke:var(--color-high);filter:drop-shadow(0 0 2px #4f4)}.logic-gates-viz-root .wire-path.low{stroke:var(--color-low)}.logic-gates-viz-root .adder-bit-row{background:#1a1a1a;border:1px solid #333;gap:40px;margin:10px;padding:20px;display:flex;position:relative}.logic-gates-viz-root .group-box{border:1px dashed #555;padding:10px;position:relative}.logic-gates-viz-root .group-label{color:#aaa;background:#1a1a1a;padding:0 5px;font-size:10px;position:absolute;top:-10px;left:10px}.logic-gates-viz-root *,.logic-gates-viz-root :before,.logic-gates-viz-root :after{box-sizing:border-box;margin:0;padding:0}.logic-gates-viz-root{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#eee;background-color:#0f0f15;font-family:sans-serif;line-height:1.5}.logic-gates-viz-root button,.logic-gates-viz-root input,.logic-gates-viz-root select,.logic-gates-viz-root textarea{margin:0;font-family:inherit;font-size:100%;line-height:1.15}.logic-gates-viz-root button{cursor:pointer;-webkit-appearance:button;background-color:#0000;background-image:none;border:none;border-radius:0}.logic-gates-viz-root.app-container{width:100%;height:950px;display:flex;position:relative;overflow:hidden}.logic-gates-viz-root .control-group{background:#111;border:1px solid #333;border-radius:8px;align-items:center;gap:10px;padding:10px;display:flex;box-shadow:0 4px 12px #00000080}.logic-gates-viz-root .control-group label{color:#aaa;text-transform:uppercase;font-size:12px}.logic-gates-viz-root .btn-restart{color:#fff;background:#d33;border:1px solid #0000;border-radius:4px;padding:8px 16px;font-weight:700}.logic-gates-viz-root .btn-restart:hover{background:#f44}.logic-gates-viz-root .btn-zoom{color:#eee;background-color:#333;border:1px solid #555;border-radius:4px;justify-content:center;align-items:center;width:28px;height:28px;padding:0;font-weight:700;display:flex}.logic-gates-viz-root .btn-zoom:hover{background-color:#444;border-color:#777}.logic-gates-viz-root .circuit-container{background-image:linear-gradient(#1e1e23 1px,#0000 1px),linear-gradient(90deg,#1e1e23 1px,#0000 1px);background-size:20px 20px;justify-content:center;padding-top:70px;display:flex;position:absolute;inset:0;overflow:auto}.logic-gates-viz-root .inner-circuit-wrapper{width:fit-content;position:relative}.logic-gates-viz-root .inner-circuit{z-index:0;flex-direction:column;align-items:center;min-width:fit-content;min-height:fit-content;padding:40px;display:flex;position:relative}.logic-gates-viz-root .section{pointer-events:none;margin-bottom:40px;position:relative}.logic-gates-viz-root .section>*{pointer-events:auto}.logic-gates-viz-root .section h3{color:#666;text-transform:uppercase;letter-spacing:1px;margin:0 0 10px;font-size:14px}.logic-gates-viz-root .inputs-section{z-index:20;gap:40px;display:flex}.logic-gates-viz-root .input-block{background:#00000080;border:1px solid #333;border-radius:8px;padding:10px}.logic-gates-viz-root .bits-row{gap:15px;display:flex}.logic-gates-viz-root .stack-container{flex-direction:row;align-items:flex-start;gap:30px;display:flex}.logic-gates-viz-root .output-bit-wrapper{flex-direction:column;align-items:center;gap:5px;display:flex}.logic-gates-viz-root .bit-label{color:#888;font-size:10px}.logic-gates-viz-root .logic-group-box{border:1px dashed #666;border-radius:4px;margin:4px;padding:8px;position:relative}.logic-gates-viz-root .logic-label{color:#aaa;z-index:5;background:#1a1a1a;padding:0 4px;font-size:9px;font-weight:700;position:absolute;top:-8px;right:5px}.logic-gates-viz-root .or-logic-box{border-color:#8f8}.logic-gates-viz-root .or-logic-box .logic-label{color:#8f8}.logic-gates-viz-root .and-box{border-color:#88f}.logic-gates-viz-root .and-box .logic-label{color:#88f}.logic-gates-viz-root .xor-box{border-color:#fa0}.logic-gates-viz-root .xor-box .logic-label{color:#fa0}.logic-gates-viz-root .not-box{border-color:#f88}.logic-gates-viz-root .not-box .logic-label{color:#f88}@keyframes logic-gates-blink{50%{opacity:.5}}.logic-gates-viz-root .chip-box{pointer-events:auto;z-index:30;background:#222;border:2px solid #666;border-radius:6px;flex-direction:column;justify-content:center;align-items:center;min-width:100px;padding:15px;display:flex;position:relative;box-shadow:0 4px 10px #00000080}.logic-gates-viz-root .chip-label{color:#aaa;text-transform:uppercase;background:#1a1a1a;padding:0 5px;font-size:10px;font-weight:700;position:absolute;top:-10px;left:10px}.logic-gates-viz-root .chip-input{color:#4f4;text-align:center;pointer-events:auto;cursor:text;background:#111;border:1px solid #444;border-radius:4px;width:80px;padding:5px;font-family:Courier New,monospace;font-size:18px}.logic-gates-viz-root .chip-input:focus{border-color:#4f4;outline:none;box-shadow:0 0 5px #44ff444d}.logic-gates-viz-root .chip-display{color:#4f4;background:#000;border:1px solid #333;border-radius:4px;flex-direction:column;justify-content:center;align-items:center;width:100px;height:40px;font-family:Courier New,monospace;font-size:24px;display:flex;position:relative}.logic-gates-viz-root .chip-overflow-warning{color:#f44;font-size:8px;font-weight:700;animation:1s infinite logic-gates-blink;position:absolute;bottom:2px}.logic-gates-viz-root .chip-ports-right{flex-direction:column;justify-content:space-between;display:flex;position:absolute;top:10px;bottom:10px;right:-6px}.logic-gates-viz-root .chip-ports-left{flex-direction:column;justify-content:space-between;display:flex;position:absolute;top:10px;bottom:10px;left:-6px}.logic-gates-viz-root .chip-port{background:#888;border:1px solid #222;border-radius:50%;width:8px;height:8px;transition:all .2s}.logic-gates-viz-root .chip-port.high{background:#4f4;border-color:#4f4;box-shadow:0 0 5px #4f4}.logic-gates-viz-root .chip-port.low{background:#f66;border-color:#933;box-shadow:0 0 2px #500}
/*$vite$:1*/