@import"https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap";:root{font-family:Figtree,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#222;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--primary-bg: #f5f5f5;--secondary-bg: #ffffff;--border-color: #e0e0e0;--text-color: #333333;--button-bg: #b8860b;--button-hover: #daa520;--button-disabled: #cccccc;--shadow: 0 2px 4px rgba(0, 0, 0, .1);--border-radius: 8px;--body-bg: #1a1a1a}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-content:flex-start;min-width:320px;min-height:100vh;font-family:Figtree,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;background-color:var(--body-bg);color:var(--text-color)}h1{margin-top:0;font-size:2rem;font-weight:600}h2{font-size:2em;line-height:1;margin-top:0;margin-bottom:0;color:#333;font-size:1.5rem;font-weight:500}h3{color:#333;margin-top:0;margin-bottom:0;font-size:1.2rem;font-weight:500}label{color:#222}#header-pill{height:25px;border-radius:10px;text-align:center;color:#eee;margin-left:4%;margin-top:20px;margin-bottom:20px;padding-left:1em;padding-right:1em;padding-bottom:1.5em}#connect{margin-right:5%;margin-top:20px;margin-bottom:20px;padding:1em;background-color:#b3d9b2;color:#000;transition:all .3s ease}#connect.connected{background-color:#ffb3b3}#connect.connected:hover{background-color:#f99}#main-app{width:90%;margin:auto;background-color:var(--secondary-bg);border-radius:var(--border-radius);display:flex;flex-direction:row;padding:20px;height:100%;box-shadow:var(--shadow)}#leftColumn{display:flex;flex-direction:column;flex:3;gap:1rem}#rightColumn{margin:10px;padding:20px;flex:1;background-color:#f5f5f5;border-radius:8px;box-shadow:0 2px 4px #0000001a}#capture,#gerber,#sliceSettings,#generatedDiv,#repl{background-color:var(--primary-bg);border-radius:var(--border-radius);padding:1.5rem;margin-bottom:1rem;box-shadow:var(--shadow)}#sliceSettings,#generatedDiv,#repl{display:flex;flex-direction:column;gap:1rem}#console{height:200px;background-color:var(--secondary-bg);border:1px solid var(--border-color);border-radius:var(--border-radius);padding:1rem;overflow-y:auto;font-family:Figtree,monospace;font-size:.9rem;box-shadow:inset 0 0 4px #0000000d}#repl-input{flex:1;padding:.75rem;border:1px solid var(--border-color);border-radius:var(--border-radius);font-family:Figtree,sans-serif;font-size:.9rem;background-color:var(--secondary-bg);color:#000}#send{padding:.75rem 1.5rem;min-width:60px}.control-section{display:flex;flex-direction:column;padding:1.5rem;background-color:var(--primary-bg);border-radius:var(--border-radius);gap:1rem;margin-left:1rem;height:100%;min-width:500px;max-width:520px;box-shadow:var(--shadow)}.repl-section{display:flex;flex-direction:column;gap:.75rem;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border-color)}#console{height:200px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:.5rem;overflow-y:auto;font-family:monospace;font-size:.9em}#repl-bottom-row{display:flex;gap:.5rem;align-items:center}#repl-input{flex:1;padding:.5rem;border:1px solid #ccc;border-radius:4px}#send{padding:.5rem 1rem;min-width:60px}.fifthwidth{width:17%;margin:1% 1% 0}.fourthwidth{width:22%;margin:1%}.thirdwidth{width:31%;margin:1%}.halfwidth{width:48%;margin:1%}.position-item{display:flex;align-items:center;justify-content:space-between;margin:4px 0}.position-item .position-text{flex:1}.position-item .button-group{display:flex;gap:8px;margin-left:16px}.position-item button{width:28px;height:28px;padding:0;border:1px solid #ccc;border-radius:4px;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;min-width:28px;min-height:28px}.position-item .move-btn{color:#2196f3;font-family:monospace}.position-item .remove-btn{color:#f44336}.position-item button:hover{background:#f5f5f5}#capture-controls{display:flex;justify-content:space-around;align-items:center}#capture-output{max-height:220px;overflow-y:auto;overflow-x:auto;position:relative;scroll-snap-type:proximity;font-family:monospace;margin-top:10px;width:100%}#pendant{display:flex;flex-flow:row nowrap;flex-grow:2}#pendant-buttons{display:flex;flex-flow:column nowrap;justify-content:space-around;align-items:center;flex-grow:2;margin:10px}#capture-buttons{display:flex;flex-flow:column nowrap;justify-content:space-around;flex-grow:1;align-items:center}datalist{display:flex;flex-direction:column;justify-content:space-between;height:200px;margin-left:10px;position:absolute;left:100%}option{padding:0;color:var(--text-color);font-family:Figtree,sans-serif;font-size:.9rem}input[type=range]{height:200px;margin:0;writing-mode:vertical-lr}.alignbuttonsvert{display:flex;flex-flow:column nowrap;justify-content:space-around;align-items:center}.alignEvenlyHoriz{display:flex;flex-flow:row nowrap;justify-content:space-around;align-items:center}#speed-slider{display:flex;flex-flow:row nowrap;width:100px;align-items:center}#pointViz{border:1px solid #000000;background-color:#fff;width:500px;height:500px;align-self:center}#secondRow{display:flex;background-color:#ccc;margin-top:10px}#generatedGcode{display:none;background-color:#ccc;padding:5px;text-align:center;color:#000;text-align:left;max-height:450px;overflow-y:auto;overflow-x:auto;position:relative;scroll-snap-type:proximity;font-family:monospace;margin-bottom:10px;width:97%}#gerber{flex:1;display:flex;padding:10px;justify-content:space-between}#gerberSettings{display:flex;flex-flow:column nowrap;justify-content:flex-start;align-items:flex-start;margin:10px;flex-grow:2}#footer{height:30px;text-align:center;margin:20px auto 100px;width:100%}#footer img{height:40px}.logo{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.vanilla:hover{filter:drop-shadow(0 0 2em #f7df1eaa)}.card{padding:2em}.read-the-docs{color:#888}.control-row button{padding:10px}button{border:none;border-radius:var(--border-radius);background-color:var(--button-bg);color:#fff;font-family:Figtree,sans-serif;font-size:.8rem;font-weight:500;cursor:pointer;transition:all .2s ease;box-shadow:var(--shadow)}button[style*="background-color: var(--button-bg)"],button[style*="background-color: #AF8000"],button[style*="background-color: var(--button-hover)"],button[style*="background-color: #daa520"]{color:#000}button:hover{background-color:var(--button-hover);transform:translateY(-1px)}button:disabled{background-color:var(--button-disabled);cursor:not-allowed;transform:none}input[type=text],input[type=number],input[type=file],select{padding:.75rem;border:1px solid var(--border-color);border-radius:var(--border-radius);font-family:Figtree,sans-serif;font-size:.9rem;background-color:var(--secondary-bg);transition:all .2s ease}input[type=text]:focus,input[type=number]:focus,select:focus{outline:none;border-color:var(--button-bg);box-shadow:0 0 0 2px #646cff33}#modal{display:none;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;gap:.4rem;width:60%;padding:1.3rem;position:fixed;margin:0 auto;top:20%;left:20%;background-color:#fff;border:1px solid #ddd;border-radius:15px;z-index:5;align-items:center;justify-content:space-between}#modal-ok{padding:10px}#modal-ng{padding:10px;background-color:#1a1a1a;color:#fff}#toast{display:none;flex-direction:row;flex-wrap:nowrap;align-content:flex-end;align-items:center;justify-content:space-evenly;gap:.1rem;width:60%;position:fixed;margin:0 auto;height:10%;bottom:-1px;left:20%;background-color:#fff;border:2px solid #af8000;box-shadow:0 0 40px 20px #daa520;border-top-left-radius:15px;border-top-right-radius:15px;z-index:5}#toast .flex{display:flex;align-items:center;justify-content:space-between;width:100%}#toast-close{background-color:red;width:40px;height:40px}#overlay{position:fixed;display:none;top:0;bottom:0;left:0;right:0;width:100%;height:100%;background:#17171780;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:1}#modal .btn-close{transform:translate(10px,-20px);padding:.5rem .8rem;background:#333;border-radius:50%;color:#eee}#modal img{height:60px;transform:translateY(-10px)}#modal .flex{display:flex;align-items:center;justify-content:space-between;width:100%}#modal h2,#modal p{width:100%;color:#222}#modal-num-input{margin:0 auto 20px}#opencv-section{margin:30px 0;padding:25px;background-color:#f8f9fa;border-radius:12px;box-shadow:0 2px 8px #0000001a}.opencv-container{display:flex;flex-direction:column;align-items:center;gap:20px}#opencv-canvas,#processed-canvas{width:480px;height:360px;border:1px solid var(--border-color);border-radius:var(--border-radius);background-color:#000;object-fit:contain;box-shadow:var(--shadow)}.opencv-controls button{padding:8px 16px;background-color:#4caf50;color:#fff;border:none;border-radius:4px;cursor:pointer}.opencv-controls button:hover{background-color:#45a049}.opencv-section{margin:30px 0;padding:25px;background-color:#f8f9fa;border-radius:12px;box-shadow:0 2px 8px #0000001a}.opencv-controls{display:flex;gap:15px;margin-bottom:20px;align-items:center;padding:15px;background-color:#fff;border-radius:8px;box-shadow:0 1px 4px #0000000d}.opencv-container{width:100%;max-width:100%}.canvas-container{display:flex;justify-content:center;gap:20px;margin-top:15px;padding:15px 15px 25px;background-color:#fff;border-radius:8px;box-shadow:0 1px 4px #0000000d;width:100%}.canvas-wrapper{width:50%;max-width:640px;height:480px;background-color:#f8f9fa;border-radius:8px;padding:15px;box-shadow:inset 0 0 8px #0000001a;display:flex;flex-direction:column}.canvas-label{text-align:center;margin-bottom:10px;font-weight:500;color:#333;font-size:1.1em}#processed-canvas{width:480px;height:360px;border:1px solid #ccc;border-radius:4px;background-color:#000;object-fit:contain}#camera-select{padding:8px 12px;border-radius:6px;border:1px solid #ddd;background-color:#fff;font-size:.9em;min-width:200px;color:#333;height:auto;line-height:1.5}#camera-select option{color:#333;background-color:#fff;padding:8px}#camera-select:focus{outline:none;border-color:#646cff;box-shadow:0 0 0 2px #646cff33}#camera-toggle{padding:8px 16px;border-radius:6px;border:none;background-color:#646cff;color:#fff;font-weight:500;cursor:pointer;transition:all .2s ease}#camera-toggle:hover{background-color:#535bf2;transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}#camera-toggle:active{transform:translateY(0);box-shadow:none}#canvas-frame{display:none}#top-controls{display:flex;gap:10px;align-items:center;margin:10px 0;padding:0 20px}#top-controls select{padding:5px 10px;border-radius:4px;border:1px solid #ccc;background-color:#fff;height:auto;margin-top:20px;margin-bottom:20px}.control-container{display:flex;gap:20px;align-items:flex-start}.control-container .opencv-section{flex:1;margin:0;padding:0;background:none;box-shadow:none}.control-container #pendant{flex:1;display:flex;gap:20px;align-items:flex-start}#capture{margin-top:20px}#capture-buttons{margin-top:20px;display:flex;flex-direction:column;gap:10px}#capture-buttons button{padding:8px 16px;border-radius:4px;border:1px solid #ccc;background-color:#fff;cursor:pointer}#capture-buttons button:hover{background-color:#f0f0f0}#process-button:hover{transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}#process-button:active{transform:translateY(0);box-shadow:none}.video-feed{display:flex;flex-direction:column;align-items:center;gap:1rem;margin-bottom:20px}.jog-controls{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:1rem;margin-top:1rem}.jog-buttons{display:flex;flex-direction:column;gap:.5rem}.jog-row{display:flex;gap:.5rem;justify-content:center}.jog-slider-container{display:flex;flex-direction:column;align-items:center;gap:.5rem;margin-left:1rem;position:relative}#jog-distance{width:100px;height:200px;writing-mode:vertical-lr;direction:rtl;margin:0;background-color:var(--secondary-bg);border:1px solid var(--border-color);border-radius:var(--border-radius)}#jog-distance-label{writing-mode:vertical-lr;transform:rotate(180deg);margin:0;padding:.5rem;font-family:Figtree,sans-serif;font-size:.9rem;color:var(--text-color);text-align:center;white-space:nowrap;height:200px;display:flex;align-items:center;justify-content:center}#left-air-on,#left-air-off,#left-vac,#disable-steppers,#ring-lights-on,#ring-lights-off,#home-x,#home-y,#home-z{background-color:#6c757d}#left-air-on:hover,#left-air-off:hover,#left-vac:hover,#disable-steppers:hover,#ring-lights-on:hover,#ring-lights-off:hover,#home-x:hover,#home-y:hover,#home-z:hover{background-color:#5a6268}.goldenrod-button{background-color:var(--button-bg);color:#000;padding:.75rem 1.5rem}.goldenrod-button:hover{background-color:var(--button-hover);color:#000}.button-row{display:flex;gap:.5rem;justify-content:center}.control-buttons{display:flex;flex-direction:column;gap:.75rem;width:100%}.control-row{display:flex;gap:.75rem;justify-content:center;margin-bottom:.75rem}.control-row:last-child{margin-bottom:0}.section-container{background-color:#f5f5f5;border:1px solid var(--accent-color);border-radius:8px;padding:20px;margin:10px;display:flex;flex-direction:column;gap:20px}.import-section{padding:20px;background-color:#fff;border:1px solid var(--accent-color);border-radius:8px}.settings-container{display:flex;flex-direction:column;gap:20px;width:100%}.settings-section{padding:20px;background-color:#fff;border:1px solid var(--accent-color);border-radius:8px;color:#000}.settings-row{display:flex;gap:30px;justify-content:space-between;align-items:center;margin-top:10px;padding:0 10px}.setting-item{display:flex;flex-direction:column;gap:8px;flex:1;max-width:calc(33.33% - 20px)}.setting-item label{color:#000;font-size:.9em;margin:0}.setting-item input{color:#000;background-color:#fff;padding:8px;border:2px solid #666;border-radius:4px;width:100%;font-size:1em;box-sizing:border-box}.setting-item input:focus{border-color:var(--button-bg);outline:none;box-shadow:0 0 0 2px #b8860b33}.setting-item input:hover{border-color:#999}.positions-section{padding:20px;background-color:#fff;border:1px solid var(--accent-color);border-radius:8px;color:#000;display:flex;flex-direction:column;max-height:400px}.positions-section h2{color:#000}.positions-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;flex-shrink:0}.positions-list{flex:1;overflow-y:auto;padding-right:10px}.positions-list::-webkit-scrollbar{width:8px}.positions-list::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}.positions-list::-webkit-scrollbar-thumb{background:#888;border-radius:4px}.positions-list::-webkit-scrollbar-thumb:hover{background:#555}.position-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background-color:#f8f9fa;border:1px solid #dee2e6;border-radius:4px;margin-bottom:.5rem}.gerber-settings{flex:1;padding:20px;background-color:#fff;border:1px solid var(--accent-color);border-radius:8px}.gerber-visualization{flex:2;padding:20px;background-color:#fff;border:1px solid var(--accent-color);border-radius:8px;display:flex;justify-content:space-around}.export-section{margin-top:2rem;padding-top:1rem;border-top:1px solid var(--accent-color)}.export-section h3{color:#000;margin-bottom:1rem}.export-input{display:flex;gap:.5rem;align-items:center}.export-input input{flex:1;padding:.5rem;border:1px solid var(--accent-color);border-radius:4px;color:#000;background-color:#fff}
