#modal.port-editor-dialog{width:min(1100px,96vw);max-width:1100px;padding:28px}#portEditor{--studio-panel:#1c2230;--studio-border:#47546a;--studio-ink:#e8eef9;--studio-muted:#b2bfd3;color:var(--studio-ink)}.port-editor-heading{display:flex;justify-content:space-between;gap:20px;margin-right:30px}.port-editor-heading h2{margin:5px 0;font-size:27px}.port-editor-heading p{color:var(--studio-muted)}.edit-mode{display:flex;align-items:center;gap:8px;white-space:nowrap}.port-studio-grid{display:grid;grid-template-columns:245px minmax(0,1fr);gap:20px;margin:15px 0}.port-palette{background:var(--studio-panel);border:1px solid var(--studio-border);border-radius:12px;padding:16px;max-height:65vh;overflow:auto}.port-palette h3{font-size:15px;margin:10px 0}.port-counts{display:grid;gap:7px;margin:14px 0}.port-counts label{display:flex;align-items:center;justify-content:space-between;gap:12px}.port-counts input{width:65px;padding:5px;border:1px solid var(--studio-border);border-radius:6px}.port-stage-column{min-width:0}.port-zoom{display:flex;align-items:center;gap:14px;margin-bottom:12px}.port-zoom label{display:flex;align-items:center;gap:8px;margin-left:auto}.port-zoom input{width:100px}.port-stage-scroll{height:440px;overflow:auto;border:1px solid var(--studio-border);border-radius:12px;background:radial-gradient(#67789244 1px,transparent 1px),var(--studio-panel);background-size:18px 18px;padding:65px;display:grid;align-items:center;justify-items:center}#portStage{width:var(--device-width);height:var(--device-height);position:relative;flex-shrink:0;border:3px solid #8095b0;border-radius:20px;background:linear-gradient(140deg,#344258,#222d40);box-shadow:0 16px 35px #0004;touch-action:none;user-select:none}#portStage.editing{cursor:crosshair}.port-device-label{position:absolute;inset:0;display:grid;place-items:center;color:#acbdd3;font-size:18px;pointer-events:none;text-align:center;padding:15px}#portMarkers{position:absolute;inset:0;pointer-events:none}.studio-port{position:absolute;transform:translate(-50%,-50%);width:42px;height:30px;min-height:30px;border:2px solid #80dfc4;border-radius:7px;background:#152c2e;color:#d8fff2;padding:2px;pointer-events:auto;cursor:grab;touch-action:none;z-index:1}.studio-port span{font-size:10px;font-weight:700}.studio-port small{position:absolute;top:32px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:11px!important;background:#192331e8;color:#eff7ff!important;padding:3px 5px;border-radius:4px;pointer-events:none}.studio-port.selected{outline:3px solid #ff768e;outline-offset:3px;z-index:3}.studio-port.locked{cursor:default;border-color:#a8b7cc}.tray-port{display:flex;justify-content:space-between;gap:8px;width:100%;margin-bottom:7px;text-align:left;cursor:grab;touch-action:none}.tray-port.selected{border:2px solid #ff768e}.studio-port-details{display:flex;flex-wrap:wrap;gap:10px;align-items:end;padding:16px 0}.studio-port-details label{flex:1;min-width:130px}.studio-port-details input,.studio-port-details select{display:block;width:100%;padding:8px;border-radius:6px;border:1px solid var(--studio-border);margin-top:5px}.port-editor-footer{display:flex;align-items:center;gap:12px;border-top:1px solid var(--studio-border);padding-top:16px}.port-editor-footer span{margin-right:auto;color:var(--studio-muted)}#portEditorStatus{font-size:13px;line-height:1.5;color:var(--studio-muted)}[data-appearance=light] #portEditor{--studio-panel:#f0f5fb;--studio-border:#bdccdf;--studio-ink:#253950;--studio-muted:#51657e}[data-appearance=light] #portStage{background:linear-gradient(140deg,#fdfefe,#dce7f3);border-color:#7892b0;box-shadow:0 15px 30px #233b581a}[data-appearance=light] .port-device-label{color:#5d748f}[data-appearance=light] .studio-port{background:#edfff8;color:#185b4b;border-color:#25876b}[data-appearance=light] .studio-port small{background:#fff;color:#294b42!important}@media(max-width:750px){#modal.port-editor-dialog{padding:18px}.port-studio-grid{grid-template-columns:1fr}.port-palette{max-height:none}.port-counts{grid-template-columns:1fr 1fr}.port-stage-scroll{height:360px;padding:50px}.port-editor-heading{flex-wrap:wrap}.port-zoom{flex-wrap:wrap}.port-editor-footer{flex-wrap:wrap}.port-stage-column{order:-1}}
.port-type-icon{width:24px;height:24px;display:inline-block;vertical-align:middle;flex-shrink:0}.port-type-label{display:flex;align-items:center;gap:9px}.studio-port .port-type-icon{width:25px;height:23px;pointer-events:none}.tray-port{align-items:center}.port-batch-selection,.port-batch-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-bottom:9px}.port-batch-selection b{margin-right:auto}.port-batch-selection button,.port-batch-actions button{font-size:12px;padding:7px 9px}#portBatchTools{padding:12px;background:var(--studio-panel);border:1px solid var(--studio-border);border-radius:10px;margin-bottom:12px}#portBatchTools small{line-height:1.5;display:block}.port-multi-row{display:flex;gap:8px;align-items:center;padding:8px 0}.port-multi-row span{font-size:12px}.port-multi-row input{width:17px;height:17px}.port-counts label{gap:6px}.port-counts input{width:58px}#portMultiList{margin-top:16px}#portMultiList summary{cursor:pointer;font-size:13px}.studio-port.selected{z-index:3}.studio-port small{max-width:140px;overflow:hidden;text-overflow:ellipsis}
/* Names stay in the inspector and accessible labels; layouts show connector icons. */
.studio-port small{display:none}#canvas .port-type-icon{width:revert;height:revert}html[data-appearance=light] #canvas .port-type-icon{color:#13745c!important}
#addAttachedCable{width:100%;margin-top:10px}.attached-lead-options{display:flex;flex-wrap:wrap;align-items:end;gap:12px;background:var(--studio-panel);border:1px solid var(--studio-border);border-radius:10px;padding:14px}.attached-lead-options>b{width:100%}.attached-lead-options label{flex:1;min-width:150px}.attached-lead-options input,.attached-lead-options select{display:block;width:100%;padding:8px;margin-top:6px;border-radius:6px;border:1px solid var(--studio-border)}.attached-lead-options p{width:100%;margin:0}#attachedCableError{color:#f09090}
