.canvas{overflow:clip}
.edge-bridge-clear{fill:none;stroke:#f6f7f3;stroke-width:6;stroke-linecap:round;pointer-events:none}
html[data-theme="dark"] .edge-bridge-clear{stroke:#111714}
.edge-port-label{color:#647657;pointer-events:none}.edge-port-label rect{fill:#f6f7f3;stroke:#dce4d6;stroke-width:.6}.edge-port-label text{fill:#506344;pointer-events:none}.edge-port-label path{pointer-events:none}html[data-theme="dark"] .edge-port-label{color:#a9bd98}html[data-theme="dark"] .edge-port-label rect{fill:#17221a;stroke:#44563b}html[data-theme="dark"] .edge-port-label text{fill:#d9e6cd}
.legend-jump{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;opacity:.85;font-size:7px}.legend-jump svg{width:25px;height:12px;overflow:visible}
.io-picker-tabs{display:flex;gap:8px;margin:0 0 16px}.io-picker-tabs button{flex:1;min-height:44px;padding:8px;border:1px solid var(--border);border-radius:7px;font-size:12px}.io-picker-tabs button.active{background:#d4f68a;color:#26331f;font-weight:600}
.node-io-button{position:absolute;left:58px;top:29px;z-index:2;min-width:64px;height:18px;border:1px solid #889b68;border-radius:5px;background:#26331fe8;color:#e5efd4;font-size:8px;font-weight:600;line-height:16px;touch-action:manipulation}.node-io-button:before{content:'';position:absolute;inset:calc(-6px / var(--canvas-scale,1))}.io-port-section{margin:6px 0 24px}.io-port-row{border:1px solid var(--border);border-radius:8px;padding:12px;margin:9px 0}.io-port-heading{display:flex;align-items:center;gap:7px;font-size:12px}.io-port-heading i{height:8px;width:8px;flex-shrink:0;background:var(--port-color);border-radius:50%}.io-port-heading small{margin-left:auto;font-size:10px;opacity:.65}.io-port-signal{font-size:12px;margin-top:9px;line-height:1.6;opacity:.65}.io-port-signal.connected{opacity:1;font-weight:600}.io-port-peer,.io-port-capability{font-size:10px;line-height:1.7;opacity:.7;margin-top:5px;overflow-wrap:anywhere}.io-port-action{height:auto;min-height:44px;margin-top:10px;padding:8px 10px;white-space:normal;line-height:1.6;font-size:11px}.io-shared-endpoints{display:grid;gap:7px;margin:0 0 18px}.io-shared-endpoint{display:flex;flex-direction:column;gap:5px;padding:12px;border:1px solid var(--border);border-radius:8px;font-size:12px;line-height:1.5}.io-shared-endpoint small{font-size:9px;letter-spacing:1px;opacity:.6}.io-shared-endpoint span{opacity:.75}.io-shared-endpoint b{color:#789b50;font-size:13px}.io-shared-arrow{text-align:center;font-size:17px;opacity:.55;line-height:1}.io-follow-label{display:flex;align-items:center;gap:8px;min-height:44px;font-size:12px;line-height:1.6;margin-bottom:12px}.io-follow-label input{width:18px;height:18px}.io-picker .section-label{font-size:12px}.io-picker .io-port-action{width:100%}
html[data-theme="dark"] .io-shared-endpoint b{color:#c5e49e}
.display-resolution{font-weight:600;letter-spacing:.2px}.display-signals{margin-top:16px}.display-signal{padding:12px 0;border-top:1px solid var(--border)}.display-signal-value{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;margin-bottom:8px;font-size:11px}.resolution-note{display:block;font-size:10px;line-height:1.7;opacity:.8;margin:7px 0}.resolution-warning{font-size:10px;line-height:1.7;color:#b88847;margin:9px 0 0}.follow-display{max-width:100%;height:auto;min-height:40px;white-space:normal;text-align:left;line-height:1.5;margin:4px 0 8px;padding:8px 10px}.field input[readonly]{opacity:.75}
.edge-hit{vector-effect:non-scaling-stroke;cursor:grab}.edge-label{cursor:grab}.canvas.connecting{cursor:grabbing}.edge-pull-hint{font-size:10px;line-height:1.6;opacity:.8}
.edge-toolbar{position:absolute;z-index:10;display:flex;flex-direction:column;gap:8px;width:340px;padding:10px;border:1px solid #c6d5b3;border-radius:10px;background:#fff;box-shadow:0 5px 28px #1c291b25;touch-action:manipulation}
.edge-toolbar-header{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;font-weight:600}.edge-toolbar-header button{width:32px;height:30px;border-radius:5px}
.edge-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}.edge-actions button{min-height:44px;padding:8px 5px;border:1px solid #dbe4cf;border-radius:6px;background:#f5f9ef;font-size:10px;white-space:nowrap}.edge-actions .delete-cable{background:#fff3f1;color:#b66558;border-color:#e8c8c1}.edge-actions button:hover{filter:brightness(.96)}
.edge-endpoint{position:absolute;z-index:6;transform:translate(-50%,-50%);width:28px;height:28px;display:flex;align-items:center;justify-content:center;border:2px solid #fff;border-radius:50%;background:var(--c);box-shadow:0 0 0 2px var(--c),0 3px 10px #15221c40;color:#fff;font-size:13px;cursor:grab;touch-action:none;user-select:none}.edge-endpoint:active{cursor:grabbing}.edge-endpoint::before{content:'';position:absolute;inset:-7px;border-radius:50%}
.device-photo-wrap{width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:4px}.device-photo{width:100%;height:100%;object-fit:contain;display:block;pointer-events:none;user-select:none}.device-photo-fallback{width:100%;height:100%}.device-photo-fallback .device-art{width:100%;height:100%}.brand-guide-btn{padding:5px 0;color:#7b915f;font-size:10px;text-align:left;text-decoration:underline}.brand-group{padding:0 0 18px;margin-bottom:17px;border-bottom:1px solid #e0e7d6}.brand-group h3{font-size:15px;margin:0 0 12px}.brand-guide-item{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:8px 0}.brand-guide-item a{font-size:12px;text-decoration:none;color:#6b8b47}.brand-guide-item small{display:block;font-size:10px;color:#8e9e7e;line-height:1.7;margin-top:4px}.brand-guide-filter{padding:7px 9px;border:1px solid #dce6d1;border-radius:5px;white-space:nowrap;font-size:9px}
@media(max-width:850px){.edge-toolbar{width:min(350px,calc(100% - 20px));padding:10px}.edge-actions button{font-size:11px;min-height:46px}.edge-toolbar-header{font-size:12px}.edge-toolbar-header button{width:40px;height:40px}.edge-endpoint{width:30px;height:30px}.library-panel .library-footer{display:flex;padding:8px 16px;flex-shrink:0}.brand-guide-btn{font-size:12px;min-height:36px}.brand-guide-item a{font-size:14px}.brand-guide-filter{min-height:40px}}
@media print{.edge-toolbar,.edge-endpoint{display:none!important}}
