@import "https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;800&display=swap";.pin-node>circle:first-child{r:6px!important}.pin-node>circle:nth-child(2){r:3.2px!important}.dense-pin-node>circle:first-child{r:3.8px!important}.dense-pin-node>circle:nth-child(2){r:2px!important}.component-arduino .pin-node>circle:first-child,.component-esp32 .pin-node>circle:first-child,.component-nodemcu-esp32s .pin-node>circle:first-child{r:3.8px!important}.component-arduino .pin-node>circle:nth-child(2),.component-esp32 .pin-node>circle:nth-child(2),.component-nodemcu-esp32s .pin-node>circle:nth-child(2){r:2px!important}.component-breadboard400 .pin-node>circle:first-child,.component-breadboard830 .pin-node>circle:first-child{r:3px!important}.component-breadboard400 .pin-node>circle:nth-child(2),.component-breadboard830 .pin-node>circle:nth-child(2){r:1.5px!important}.junctions circle{r:3.2px!important;stroke-width:12px!important;stroke:#fff0!important}.wire-group>polyline:first-child{stroke-width:1.9px!important}.wire-bridges path:first-child{stroke-width:2.2px!important}.wire-bridges path:last-child{stroke-width:1.8px!important}.wires>polyline[stroke-dasharray]{stroke-width:2px!important}:root{color:#19344d;background:#eef3f7;font-family:Noto Sans TC,system-ui,sans-serif;font-size:14px}*{box-sizing:border-box}body{min-width:320px;margin:0}.app{height:100vh;overflow:hidden}.topbar{background:#fff;border-bottom:1px solid #dce6ee;justify-content:space-between;align-items:center;gap:18px;height:64px;padding:0 20px;display:flex}.brand{white-space:nowrap;align-items:center;gap:10px;display:flex}.brand-mark{color:#62e0cc;background:#112d4a;border-radius:10px;place-items:center;width:36px;height:36px;font-size:25px;display:grid}.brand strong{font-size:16px;display:block}.brand small{color:#7890a2;font-size:10px;display:block}.toolbar{align-items:center;gap:4px;display:flex;overflow:auto}.toolbar button,.canvas-tools button,.tabs button,.inspector button{font:inherit;color:#284960;cursor:pointer;white-space:nowrap;background:0 0;border:1px solid #0000;border-radius:6px;padding:7px 10px}.toolbar button:hover,.canvas-tools button:hover,.tabs button:hover{background:#edf4f9}.toolbar button:disabled{opacity:.35;cursor:default}.toolbar .active,.canvas-tools .on{color:#1b6598;background:#e7f2fb;border-color:#b8d6eb}.toolbar .primary{color:#fff;background:#2d72b8;border-color:#2d72b8}.divider{background:#dce6ee;width:1px;height:25px;margin:0 4px}.layout{grid-template-columns:260px minmax(460px,1fr) 260px;height:calc(100vh - 64px);min-height:0;display:grid}.library,.inspector{background:#fff;flex-direction:column;min-width:0;min-height:0;padding:18px 14px;display:flex}.library{border-right:1px solid #dce6ee}.inspector{border-left:1px solid #dce6ee}.panel-title span{letter-spacing:.16em;color:#8aa0b0;font-size:10px;font-weight:800}.panel-title h2{margin:2px 0 15px;font-size:20px}.search{color:#7891a2;background:#f3f7fa;border:1px solid #e1e9ef;border-radius:7px;align-items:center;gap:6px;padding:8px 9px;display:flex}.search input{font:inherit;color:#19344d;background:0 0;border:0;outline:0;width:100%}.categories{gap:4px;margin:10px 0;padding-bottom:3px;display:flex;overflow:auto}.categories button{color:#71889a;font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:5px;padding:5px 7px;font-size:12px}.categories button.selected{color:#1d659a;background:#edf5fb;font-weight:700}.tiles{grid-template-columns:1fr 1fr;gap:7px;padding:2px 1px 10px;display:grid;overflow:auto}.tile{text-align:left;cursor:grab;color:#19344d;background:#fff;border:1px solid #e0e9f0;border-radius:9px;flex-direction:column;justify-content:space-between;min-height:91px;padding:7px 6px;display:flex}.tile:hover{border-color:#8cc7e1;transform:translateY(-1px);box-shadow:0 4px 12px #18334d16}.tile:active{cursor:grabbing}.tile svg{width:100%;height:43px}.tile strong{font-size:12px}.tile small{color:#8aa0b0;font-size:10px;line-height:1.3}.library-foot{color:#8197a7;border-top:1px solid #dce6ee;padding-top:10px;font-size:11px}.workspace{flex-direction:column;min-width:0;min-height:0;padding:18px 20px 12px;display:flex}.workspace-head{justify-content:space-between;align-items:flex-start;gap:10px;height:43px;display:flex}.title{color:#19344d;background:0 0;border:0;outline:0;min-width:200px;font:700 19px inherit}.canvas-tools{color:#748b9c;align-items:center;gap:4px;display:flex}.canvas-tools span{text-align:center;min-width:42px;font-size:12px}.canvas-wrap{background:#f8fbfd;border:1px solid #d6e2eb;border-radius:11px;flex:1;min-height:380px;position:relative;overflow:hidden;box-shadow:0 12px 28px #17395412}.canvas{touch-action:none;width:100%;height:100%;display:block}.background,.component{cursor:grab}.component.selected{filter:none}.component text{-webkit-user-select:none;user-select:none}.component g{cursor:crosshair}.pin-active{stroke-width:4px;stroke:#2d72b8!important}.hint{z-index:2;color:#7d94a5;pointer-events:none;font-size:11px;position:absolute;top:13px;left:16px}.hint b{color:#17689e}.empty{text-align:center;color:#8197a8;pointer-events:none;place-content:center;display:grid;position:absolute;inset:0}.empty div{color:#bfd0dc;font-size:42px}.empty h3{color:#5f7c92;margin:4px 0;font-size:15px}.empty p{margin:0 0 12px;font-size:12px}.empty button{pointer-events:auto;color:#17679a;cursor:pointer;background:#edf7fd;border:1px solid #b9d6e9;border-radius:6px;padding:7px 11px}.workspace-foot{color:#7890a0;justify-content:space-between;align-items:center;height:31px;font-size:11px;display:flex}.autosave{color:#2b988d}.tabs{border-bottom:1px solid #dce6ee;gap:4px;margin-bottom:13px;padding-bottom:8px;display:flex}.tabs button.active{color:#1d659a;background:#edf5fb;font-weight:700}.inspector-content{overflow:auto}.inspector-content section{border-bottom:1px solid #e3ebf0;margin-bottom:15px;padding:0 2px 15px}.inspector-content h3{letter-spacing:.08em;color:#70889a;margin:0 0 10px;font-size:11px}.inspector-content .big{margin-bottom:3px;font-size:17px;display:block}.inspector-content section>small{color:#8aa0b0;font-size:11px}.inspector-content label{color:#617b8e;justify-content:space-between;align-items:center;gap:8px;margin:9px 0;font-size:12px;display:flex}.inspector-content input,.inspector-content select{color:#19344d;width:130px;font:inherit;background:#fff;border:1px solid #d4e1ea;border-radius:6px;padding:6px 7px}.pin-row{color:#617b8e;justify-content:space-between;margin:8px 0;font-size:12px;display:flex}.colors{gap:5px;display:flex}.colors button{border:2px solid #fff;border-radius:4px;width:21px;height:21px;padding:0;box-shadow:0 0 0 1px #d2dee7}.colors button.chosen{box-shadow:0 0 0 2px #2d72b8}.danger{width:100%;color:#c2494e!important;background:#fff4f4!important;border:1px solid #f0c8ca!important}.net{border-bottom:1px solid #edf1f4;justify-content:space-between;gap:8px;padding:9px 0;font-size:11px;display:flex}.net b{font-weight:600}.muted,.inspector-empty{color:#8da0ae;font-size:12px;line-height:1.8}.inspector-empty{text-align:center;margin-top:120px}.inspector-empty:first-letter{color:#bfd0db;font-size:32px}.toast{z-index:20;color:#fff;opacity:0;background:#163c5c;border-radius:8px;padding:10px 16px;font-size:13px;animation:2.2s forwards toast;position:fixed;bottom:22px;left:50%;transform:translate(-50%,18px);box-shadow:0 5px 18px #17395435}@keyframes toast{10%,90%{opacity:1;transform:translate(-50%)}to{opacity:0;transform:translate(-50%,18px)}}.hidden-import{display:none}@media (width<=1050px){.layout{grid-template-columns:225px minmax(400px,1fr) 225px}.toolbar button:nth-last-child(-n+3){display:none}}@media (width<=820px){.app{overflow:auto}.topbar{height:58px;padding:0 10px}.brand small{display:none}.brand strong{font-size:14px}.toolbar{gap:1px}.toolbar button{padding:6px 7px;font-size:12px}.layout{height:auto;min-height:calc(100vh - 58px);display:block}.library,.inspector{z-index:10;width:275px;position:fixed;top:58px;bottom:0;box-shadow:0 10px 30px #17395420}.library{left:0}.inspector{display:none;right:0}.workspace{height:calc(100vh - 58px);padding:12px 9px}.workspace-head{height:42px}.title{max-width:50vw;font-size:16px}.canvas-wrap{min-height:520px}.workspace-foot{font-size:10px}.workspace-foot>span:first-child{max-width:65%;line-height:1.4}.canvas-tools button{padding:6px 7px;font-size:11px}.inspector-content{padding-bottom:30px}}.brand em{color:#2d72b8;vertical-align:middle;background:#eaf3fb;border:1px solid #c7deef;border-radius:4px;margin-left:4px;padding:2px 5px;font-size:10px;font-style:normal}.wire-group{cursor:grab}.wire-group:active{cursor:grabbing}.junctions circle{cursor:move}.delete-zone{z-index:3;color:#c4555d;white-space:nowrap;pointer-events:none;background:#fff5f5;border:1px dashed #df8b91;border-radius:0 8px 8px 0;padding:12px 10px;font-size:11px;transition:transform .15s,background .15s,color .15s;position:absolute;top:50%;left:0;transform:translate(-100%,-50%)}.delete-zone.armed{color:#fff;background:#c94f58;border-color:#c94f58;transform:translateY(-50%);box-shadow:0 4px 12px #a32f3a35}.library{position:relative;overflow:hidden}.library-delete-zone{z-index:12;color:#c4555d;pointer-events:none;opacity:.9;background:linear-gradient(#fff7f7 0%,#fff 92%);border-bottom:1px dashed #e5a2a7;justify-content:center;align-items:flex-end;height:72px;padding:0 10px 9px;font-size:12px;font-weight:700;transition:background .15s,color .15s,border-color .15s;display:flex;position:absolute;top:0;left:0;right:0}.library-delete-zone.armed{color:#fff;opacity:1;background:#c94f58;border-color:#c94f58;box-shadow:0 4px 12px #a32f3a35}.categories{flex:none;overflow:auto hidden}.tiles{flex:auto;min-height:0;overflow:hidden auto}.library-foot{flex:none}.dense-pin-node>text{opacity:0}.dense-pin-node:hover>circle:nth-of-type(2),.dense-pin-node:hover>text,.dense-pin-node .pin-active{opacity:1}.dense-pin-node:hover>circle:nth-of-type(2){r:4}.pin-node:hover>circle:nth-of-type(2){stroke-width:3.5px;stroke:#2d72b8!important}.pin-node:hover>text{fill:#1d6a9d;font-weight:700}.value-editor{gap:8px;display:grid}.value-editor label{margin:0}.value-editor select{color:#284b65;background:#fff;border:1px solid #cbd8e2;border-radius:7px;width:100%;padding:8px}.value-editor small{color:#6b7d8d;align-items:center;gap:4px;display:flex}.value-editor small i{border:1px solid #8a9299;border-radius:2px;width:11px;height:22px;display:block}.display-options{background:#f7fafc;border:1px solid #e1e9ef;border-radius:8px;gap:6px;margin-top:12px;padding:10px;display:grid}.display-options>span{color:#70889a;font-size:11px;font-weight:700}.display-options label{flex-direction:row;justify-content:flex-start;gap:7px;margin:0;font-size:12px;display:flex}.display-options input{width:15px;height:15px;padding:0}.component-color-editor{color:#617b8e;background:#f7fafc;border:1px solid #e1e9ef;border-radius:8px;gap:7px;margin-top:12px;padding:10px;font-size:11px;display:grid}.component-color-editor>span{color:#70889a;font-weight:700}.component-color-editor small{color:#8aa0b0}.component-colors{flex-wrap:wrap;align-items:center}.component-colors button{width:22px;height:22px}.custom-color{align-items:center;gap:5px;margin:0!important;display:flex!important}.custom-color input[type=color]{cursor:pointer;border:1px solid #d4e1ea;border-radius:5px;width:30px;height:24px;padding:2px}.alignment-actions{background:#f7fafc;border:1px solid #e1e9ef;border-radius:8px;gap:7px;margin-top:12px;padding:10px;display:grid}.alignment-actions>span{color:#70889a;font-size:11px;font-weight:700}.alignment-actions>div{flex-wrap:wrap;gap:5px;display:flex}.alignment-actions button{background:#fff!important;border:1px solid #d4e1ea!important;padding:5px 7px!important;font-size:11px!important}.alignment-actions button:hover{background:#edf5fb!important;border-color:#9fc8e1!important}.auto-align{color:#1b6598!important;background:#edf5fb!important;border-color:#b8d6eb!important}.save-state{z-index:20;color:#56758b;pointer-events:none;background:#fff;border:1px solid #dce6ee;border-radius:999px;padding:5px 10px;font-size:11px;position:fixed;bottom:12px;right:14px;box-shadow:0 3px 10px #17334d12}.save-state.error{color:#b42318;background:#fff7f6;border-color:#f0b7b2}.three-d-workspace{position:relative}.firmware-panel{z-index:8;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#27485e;background:#fffe;border:1px solid #cbdde7;border-radius:10px;flex-direction:column;gap:9px;width:min(360px,100% - 28px);max-height:calc(100% - 178px);padding:13px;display:flex;position:absolute;top:68px;right:14px;overflow:auto;box-shadow:0 12px 34px #17395425}.firmware-panel-head{justify-content:space-between;align-items:start;display:flex}.firmware-panel-head span{letter-spacing:.14em;color:#7c98a8;font-size:9px}.firmware-panel-head h3{color:#19344d;margin:2px 0 0;font-size:16px}.firmware-counts{gap:5px;display:flex}.firmware-counts b{color:#5e7b8e;text-align:center;background:#e7f2f7;border-radius:12px;min-width:22px;padding:3px 6px;font-size:11px}.firmware-counts b.bad{color:#be3f45;background:#fde5e5}.firmware-counts b.warn{color:#a96a12;background:#fff1d4}.firmware-tabs{border-bottom:1px solid #e1ebf0;gap:5px;display:flex}.firmware-tabs button{color:#71899a;font:inherit;cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;padding:6px 9px;font-size:12px}.firmware-tabs button.active{color:#1f6591;border-bottom-color:#2d72b8;font-weight:700}.firmware-board{grid-template-columns:1fr 1.5fr;align-items:center;gap:7px;font-size:11px;font-weight:700;display:grid}.firmware-board select{color:#31566d;font:inherit;background:#fff;border:1px solid #cfdee6;border-radius:6px;padding:6px 7px}.firmware-status{border-radius:6px;align-items:center;gap:7px;padding:7px 9px;font-size:11px;display:flex}.firmware-status span{background:#35b686;border-radius:50%;width:8px;height:8px}.firmware-status.stale{color:#9a671c;background:#fff3db}.firmware-status.stale span{background:#e29b29}.firmware-status.fresh{color:#27795d;background:#e7f8ef}.firmware-editor{resize:vertical;color:#d5e8ed;tab-size:2;background:#172832;border:1px solid #cbdde7;border-radius:7px;min-height:230px;padding:9px;font:11px/1.55 Consolas,Cascadia Mono,monospace}.firmware-actions{gap:7px;display:flex}.firmware-actions button{color:#355b72;font:inherit;cursor:pointer;background:#fff;border:1px solid #cbdde7;border-radius:6px;flex:1;padding:7px 8px;font-size:11px}.firmware-actions button.primary{color:#fff;background:#2d72b8;border-color:#2d72b8}.firmware-note{color:#7b919f;font-size:10px;line-height:1.45}.diagnostic-list{gap:7px;display:grid}.diagnostic{background:#f4f8fa;border-left:3px solid #8ea6b4;border-radius:5px;padding:8px 9px}.diagnostic.error{background:#fff0f0;border-color:#d34c52}.diagnostic.warning{background:#fff7e7;border-color:#e1a12e}.diagnostic.info{background:#edf8fc;border-color:#4a9bc2}.diagnostic strong{font-size:10px}.diagnostic p{margin:3px 0 0;font-size:11px;line-height:1.45}.diagnostic-empty{color:#7891a0;margin:12px 0;font-size:12px}.firmware-panel-foot{color:#8197a7;border-top:1px solid #e1ebf0;padding-top:4px;font-size:10px}@media (width<=820px){.firmware-panel{width:min(340px,100% - 16px);max-height:calc(100% - 190px);padding:10px;top:54px;right:8px}.firmware-editor{min-height:150px}.firmware-panel-foot{display:none}}.three-d-overlay{z-index:25;background:#edf4f7;position:fixed;inset:64px 260px 0;box-shadow:0 18px 42px #17395425}.three-d-workspace{flex-direction:column;min-width:0;height:100%;display:flex}.three-d-head{background:#fff;border-bottom:1px solid #dce6ee;justify-content:space-between;align-items:center;gap:12px;height:58px;padding:9px 16px;display:flex}.three-d-head strong{color:#19344d;font-size:15px;display:block}.three-d-head small{color:#8197a7;margin-top:2px;font-size:10px;display:block}.three-d-actions{gap:5px;display:flex}.three-d-actions button{color:#36566d;font:inherit;cursor:pointer;background:#fff;border:1px solid #d2e0e9;border-radius:6px;padding:6px 9px;font-size:12px}.three-d-actions button:hover,.three-d-actions button.active{color:#17679a;background:#eaf5fb;border-color:#9fc8e1}.three-d-canvas{flex:1;min-height:300px;position:relative;overflow:hidden}.three-d-canvas canvas{display:block}.three-d-empty{color:#71899a;pointer-events:none;place-items:center;font-size:13px;display:grid;position:absolute;inset:0}.three-d-label{color:#235d7b;white-space:nowrap;background:#fff;border:1px solid #b6d7e7;border-radius:5px;padding:4px 7px;font:700 11px Noto Sans TC,sans-serif;display:block;box-shadow:0 3px 9px #1739541c}.simulation-dock{background:#fff;border-top:1px solid #d2e0e9;grid-template-columns:190px 1fr 260px;align-items:center;gap:12px;min-height:96px;padding:10px 14px;display:grid}.simulation-status{color:#3a596e;grid-template-columns:auto 1fr;align-items:center;gap:6px;font-size:12px;font-weight:700;display:grid}.simulation-status small{color:#8298a6;grid-column:2;font-size:10px;font-weight:400}.status-dot{background:#b7c5cc;border-radius:50%;width:9px;height:9px}.status-dot.on{background:#36b686;box-shadow:0 0 0 4px #d9f4e9}.simulation-inputs{flex-wrap:wrap;align-items:center;gap:7px;display:flex}.simulation-inputs button,.simulation-inputs label{color:#4e697b;font:inherit;background:#f8fbfd;border:1px solid #d2e0e9;border-radius:6px;padding:6px 8px;font-size:11px}.simulation-inputs button{cursor:pointer}.simulation-inputs button.input-active{color:#237c5c;background:#e5f8ef;border-color:#75cda9}.simulation-inputs label{align-items:center;gap:7px;display:flex}.simulation-inputs input{accent-color:#2d72b8;width:76px}.serial-output{color:#d5e8ed;white-space:pre-wrap;background:#1d2d36;border-radius:6px;height:60px;margin:0;padding:7px 9px;font:10px/1.45 Consolas,monospace;overflow:auto}.three-d-workspace button{font-family:inherit}@media (width<=1050px){.three-d-overlay{left:225px;right:225px}.simulation-dock{grid-template-columns:160px 1fr}.serial-output{display:none}}@media (width<=820px){.three-d-overlay{top:58px;left:0;right:0}.three-d-head{padding:8px 10px}.three-d-head small{display:none}.three-d-actions button{padding:6px 7px;font-size:11px}.simulation-dock{grid-template-columns:1fr;gap:7px;max-height:170px;overflow:auto}.simulation-status{display:flex}.simulation-status small{margin-left:5px}.serial-output{height:48px;display:block}.three-d-canvas{min-height:280px}}
