@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/inter-latin-400-normal-C38fXH4l.woff2)format("woff2"),url(/assets/inter-latin-400-normal-CyCys3Eg.woff)format("woff")}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/inter-latin-500-normal-Cerq10X2.woff2)format("woff2"),url(/assets/inter-latin-500-normal-BL9OpVg8.woff)format("woff")}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/inter-latin-600-normal-LgqL8muc.woff2)format("woff2"),url(/assets/inter-latin-600-normal-CiBQ2DWP.woff)format("woff")}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2)format("woff2"),url(/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff)format("woff")}:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:#f2f5f7;font-synthesis:none;text-rendering:optimizelegibility;--background:#0b0f14;--panel:#131a22;--panel-raised:#19222c;--border:#26313d;--border-strong:#394858;--text:#f2f5f7;--muted:#93a1af;--accent:#24c8db;--accent-dark:#087f8e;--success:#35d07f;--warning:#f5b942;--error:#f05a67;background:#0b0f14;font-family:Inter,system-ui,sans-serif}*{box-sizing:border-box}html,body,#root{min-width:320px;height:100%;margin:0}body{background:var(--background)}html,body{overflow:hidden}button,input,select{font:inherit}button,select,input[type=range],input[type=color],summary{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}a{color:var(--accent)}.app-shell{grid-template-rows:auto minmax(0,1fr) auto;height:100dvh;min-height:0;display:grid;position:fixed;inset:0}.app-header{border-bottom:1px solid var(--border);z-index:10;background:#0b0f14f5;justify-content:space-between;align-items:center;gap:16px;min-height:72px;padding:12px 18px;display:flex;position:relative}.brand{color:var(--text);align-items:center;gap:11px;text-decoration:none;display:inline-flex}.brand>span:last-child{gap:2px;display:grid}.brand strong{letter-spacing:-.02em;font-size:16px}.brand small{color:var(--muted);font-size:11px}.brand-mark{color:#82f1fd;background:linear-gradient(90deg,#0000 48%,#24c8db61 49% 51%,#0000 52%),linear-gradient(#0000 48%,#24c8db61 49% 51%,#0000 52%),#14252b;border:1px solid #39717a;border-radius:10px;place-items:center;width:42px;height:42px;font-family:JetBrains Mono,monospace;font-size:12px;font-weight:600;display:grid}.project-actions{align-items:center;gap:8px;min-width:0;display:flex}.project-select select{width:min(230px,26vw)}.button,.tool-button{border:1px solid var(--border-strong);min-height:42px;color:var(--text);background:var(--panel-raised);border-radius:8px;font-weight:600;transition:border-color .12s,background .12s,transform .12s}.button{padding:0 15px}.button:hover,.tool-button:hover{background:#202c38;border-color:#52667a}.button:active,.tool-button:active{transform:translateY(1px)}.button:disabled{opacity:.48;cursor:not-allowed}.tool-button:disabled{opacity:.42;cursor:not-allowed}.button--primary{color:#061114;background:var(--accent);border-color:#50e1f1}.button--primary:hover{background:#48d8e8;border-color:#8cf2fc}.button--danger,.danger-text{color:var(--error)!important}.more-menu{position:relative}.more-menu>summary{place-items:center;min-width:44px;list-style:none;display:grid}.more-menu>summary::-webkit-details-marker{display:none}.menu-popover{z-index:30;border:1px solid var(--border-strong);background:#17202a;border-radius:10px;width:250px;padding:7px;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 16px 50px #00000073}.menu-popover button{text-align:left;width:100%;min-height:42px;color:var(--text);background:0 0;border:0;border-radius:6px;padding:9px 10px}.menu-popover button:hover{background:#222e3a}.menu-popover button:disabled{opacity:.4}.workspace{grid-template-columns:380px minmax(0,1fr);min-height:0;display:grid;overflow:hidden}.settings-panel{border-right:1px solid var(--border);background:#10161d;min-height:0;overflow-y:auto}.controls{padding:0 16px 28px}.control-section{border-bottom:1px solid var(--border);padding:20px 2px}.control-section:last-child{border-bottom:0}.control-section--intro{padding-top:16px}.section-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.section-heading h2{letter-spacing:.01em;margin:0;font-size:13px;font-weight:600}.badge{color:#8beaf5;text-transform:uppercase;letter-spacing:.06em;background:#10292e;border:1px solid #285964;border-radius:999px;padding:4px 7px;font-size:10px}.segmented{border:1px solid var(--border);background:#0b1117;border-radius:9px;grid-template-columns:1fr 1fr;margin-bottom:16px;padding:3px;display:grid}.segmented button{min-height:40px;color:var(--muted);background:0 0;border:0;border-radius:6px;font-weight:600}.segmented button.is-active{color:#e8fcff;background:#16464f;box-shadow:inset 0 0 0 1px #247582}.field{gap:7px;min-width:0;margin:0 0 13px;display:grid}.field>span:first-child,.export-name>span{color:var(--muted);letter-spacing:.015em;font-size:11px;font-weight:600}.field-row{grid-template-columns:1fr 1fr;gap:10px;display:grid}input:not([type=range],[type=checkbox],[type=color],[type=file]),select{border:1px solid var(--border-strong);width:100%;min-height:42px;color:var(--text);background:#0d1319;border-radius:7px;padding:9px 10px}input[aria-invalid=true]{box-shadow:0 0 0 1px color-mix(in srgb, var(--error) 28%, transparent);border-color:var(--error)!important}.field-error{color:var(--error);font-size:10px;line-height:1.35}input[type=number],.color-text{font-family:JetBrains Mono,monospace;font-size:12px}.input-with-suffix{position:relative}.input-with-suffix input{padding-right:42px!important}.input-with-suffix>span{color:var(--muted);pointer-events:none;font-size:11px;position:absolute;top:50%;right:10px;translate:0 -50%}.color-field{grid-template-columns:minmax(0,1fr) auto;align-items:center}.color-field-error{grid-column:1/-1}.color-input{align-items:center;gap:7px;display:flex}input[type=color]{border:1px solid var(--border-strong);background:#0d1319;border-radius:7px;width:42px;height:42px;padding:4px}.color-text{width:92px!important}.toggle-grid{gap:10px;margin-bottom:14px;display:grid}.toggle{color:#d9e0e6;cursor:pointer;align-items:center;gap:9px;min-height:32px;font-size:12px;display:flex}.toggle input{opacity:0;pointer-events:none;position:absolute}.toggle-track{background:#222c36;border:1px solid #475666;border-radius:999px;flex:none;width:36px;height:20px;padding:2px;transition:all .12s}.toggle-track:after{content:"";background:#aab5c0;border-radius:50%;width:14px;height:14px;transition:all .12s;display:block}.toggle input:checked+.toggle-track{background:#175662;border-color:#2392a0}.toggle input:checked+.toggle-track:after{background:#72effb;translate:16px}.toggle input:focus-visible+.toggle-track{outline:2px solid var(--accent);outline-offset:2px}.range-field>span{justify-content:space-between;display:flex}.range-field output{color:var(--text);font-family:JetBrains Mono,monospace}input[type=range]{width:100%;accent-color:var(--accent)}.file-picker{color:#d9e1e8;text-align:center;cursor:pointer;overflow-wrap:anywhere;background:#0d1319;border:1px dashed #526270;border-radius:8px;place-items:center;min-height:46px;padding:11px;font-size:12px;display:grid;position:relative}.file-picker:hover{border-color:var(--accent)}.file-picker input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.control-hint{color:var(--muted);margin:-3px 0 16px;font-size:11px;line-height:1.55}.control-hint strong{color:#dffbff}.power-label-field{margin-top:12px}.route-list{gap:7px;margin-top:17px;display:grid}.route-item{border:1px solid var(--border);background:#0d1319;border-radius:8px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;min-height:48px;padding:6px 7px 6px 10px;display:grid}.route-swatch{width:9px;height:28px;box-shadow:0 0 10px color-mix(in srgb, currentColor 35%, transparent);border-radius:99px}.route-item>span:nth-child(2){gap:2px;min-width:0;display:grid}.route-item strong,.route-item small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.route-item strong{font-size:11px}.route-item small{color:var(--muted);font-size:10px}.route-item button{width:34px;height:34px;color:var(--muted);background:0 0;border:0;border-radius:6px;font-size:19px}.route-item button:hover{color:var(--error);background:#f05a671a}.clear-routes{width:100%;margin-top:4px}.preview-panel{background:radial-gradient(circle at 50% 25%,#18232e 0,#0b0f14 58%);grid-template-rows:minmax(0,1fr) auto;gap:12px;min-width:0;min-height:0;padding:16px;display:grid}.preview-shell{border:1px solid var(--border);background:#0a0d11;border-radius:12px;grid-template-rows:auto minmax(0,1fr);min-width:0;min-height:0;display:grid;overflow:hidden;box-shadow:0 18px 70px #00000047}.preview-toolbar{border-bottom:1px solid var(--border);background:#121920;justify-content:space-between;align-items:center;gap:12px;min-height:58px;padding:9px 10px 9px 14px;display:flex}.preview-status{flex-wrap:wrap;align-items:baseline;gap:4px 14px;min-width:0;display:flex}.preview-status strong{font-family:JetBrains Mono,monospace;font-size:12px}.preview-status span{color:var(--muted);font-size:10px}.preview-actions{flex-wrap:wrap;justify-content:flex-end;gap:5px;display:flex}.tool-button{min-width:40px;min-height:40px;padding:0 10px}.tool-button--wide{min-width:52px;font-size:11px}.tool-button.is-active,.cable-tool.is-active{color:#081315;background:var(--accent);border-color:#69eefb}.tool-button--confirm{color:#06130c;background:var(--success);border-color:#3acb7e}.preview-stage{touch-action:none;cursor:grab;background-color:#202832;background-image:linear-gradient(45deg,#2a3540 25%,#0000 25%),linear-gradient(-45deg,#2a3540 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#2a3540 75%),linear-gradient(-45deg,#0000 75%,#2a3540 75%);background-position:0 0,0 8px,8px -8px,-8px 0;background-size:16px 16px;min-width:0;min-height:0;position:relative;overflow:hidden}.preview-stage:active{cursor:grabbing}.preview-stage.is-drawing-cable,.preview-stage.is-drawing-cable:active{cursor:crosshair}.preview-stage canvas{display:block}.preview-stage:fullscreen{width:100vw;height:100vh}.drawing-help{color:#e9fdff;pointer-events:none;white-space:nowrap;background:#08171beb;border:1px solid #307c86;border-radius:8px;align-items:baseline;gap:9px;max-width:calc(100% - 28px);padding:8px 12px;font-size:11px;display:flex;position:absolute;top:12px;left:50%;translate:-50%;box-shadow:0 10px 30px #0000004d}.drawing-help span{color:#9ac0c5;font-size:10px}.cursor-readout,.zoom-readout{color:#dce4ea;pointer-events:none;background:#080c10db;border:1px solid #42505e;border-radius:6px;padding:6px 8px;font:500 10px JetBrains Mono,monospace;position:absolute;bottom:10px}.cursor-readout{left:10px}.zoom-readout{right:10px}.export-bar{border:1px solid var(--border);background:var(--panel);border-radius:10px;align-items:end;gap:10px;padding:10px;display:flex}.export-name{flex:1;gap:6px;min-width:0;display:grid}.export-name input{font-family:JetBrains Mono,monospace;font-size:11px}.export-button{min-width:140px}.app-footer{border-top:1px solid var(--border);min-height:42px;color:var(--muted);background:#0b0f14;justify-content:space-between;align-items:center;gap:16px;padding:9px 18px;font-size:10px;display:flex}.footer-info{flex-direction:column;gap:2px;min-width:0;display:flex}.footer-copyright{color:var(--text)}.footer-links{white-space:nowrap;flex:none;justify-content:flex-end;align-items:center;gap:12px;display:flex}.notice{z-index:50;border:1px solid var(--border-strong);background:#17202a;border-radius:9px;max-width:min(420px,100vw - 36px);padding:12px 14px;font-size:12px;position:fixed;bottom:58px;right:18px;box-shadow:0 18px 60px #00000073}.notice--success{border-color:#278957}.notice--error{border-color:#a83d48}.notice--info{border-color:#287985}.error-text,.danger-text{color:var(--error)}.fatal-error{min-height:100dvh;color:var(--text);background:var(--page);place-items:center;padding:24px;display:grid}.fatal-error>div{border:1px solid var(--border-strong);background:var(--panel);border-radius:12px;max-width:560px;padding:24px}.fatal-error p{color:var(--muted)}.sr-only{clip:rect(0, 0, 0, 0)!important;white-space:nowrap!important;border:0!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;position:absolute!important;overflow:hidden!important}@media (max-width:900px){html,body,#root{height:auto;min-height:100%}html{overflow:hidden auto}body{min-height:100dvh;overflow:visible}#root{min-height:100dvh}.app-shell{height:auto;min-height:100dvh;display:block;position:static;inset:auto}.app-header{flex-wrap:wrap;position:sticky;top:0}.brand small{display:none}.project-actions{flex:1;justify-content:flex-end}.project-select{flex:1;max-width:260px}.project-select select{width:100%}.workspace{flex-direction:column;display:flex;overflow:visible}.preview-panel{order:-1;grid-template-rows:minmax(360px,52vh) auto;padding:10px}.settings-panel{border-right:0;border-top:1px solid var(--border);overflow:visible}.controls{max-width:720px;margin:0 auto}.app-footer{margin-top:0}}@media (max-width:580px){.app-header{gap:8px;padding:9px 10px}.brand-mark{width:38px;height:38px}.brand strong{display:none}.project-actions{gap:5px}.project-actions>.button{padding:0 10px}.project-select{min-width:105px}.preview-panel{grid-template-rows:minmax(310px,48vh) auto}.preview-toolbar{flex-direction:column;align-items:flex-start}.preview-actions{justify-content:flex-start;width:100%}.tool-button{flex:44px}.drawing-help span{display:none}.export-bar{flex-direction:column;align-items:stretch}.export-button{width:100%}.field-row{grid-template-columns:1fr;gap:0}.app-footer{flex-direction:column;align-items:flex-start;gap:3px}.footer-links{flex-wrap:wrap;justify-content:flex-start}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important}}
