.relationship-dialog{width:min(920px,calc(100vw - 28px));max-width:calc(100vw - 28px);height:min(650px,calc(100dvh - 28px));max-height:calc(100dvh - 28px);padding:16px;--dialog-header-surface:var(--crm-panel);background:var(--crm-panel);overflow:hidden}
.relationship-dialog[open]{display:flex;flex-direction:column}
.relationship-dialog>.dialog-head{flex:none;margin-bottom:8px}
.relationship-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;flex:none;padding:8px;background:var(--crm-section-band);border:1px solid var(--crm-section-border)}
.relationship-toolbar label{display:flex;align-items:center;gap:6px;margin:0}
.relationship-toolbar select{width:auto}
.relationship-help,#relationshipStatus{flex:none;margin:6px 0;font-size:var(--crm-font-small);color:var(--crm-blue-muted)}
#relationshipStatus{min-height:20px}
#relationshipViewport{min-height:0;flex:1;overflow:auto;border:1px solid var(--crm-section-border);background:var(--crm-surface);overscroll-behavior:contain}
#relationshipCanvas{width:max-content;min-width:100%}
.relationship-edge{fill:none;stroke:var(--crm-heading-ink);stroke-width:1.2}
#relationshipArrow path{fill:var(--crm-heading-ink)}
.relationship-node{cursor:pointer;outline:none}
.relationship-node ellipse{fill:var(--crm-section-border);stroke:var(--crm-blue-muted);stroke-width:1}
.relationship-node.current ellipse{fill:#00ffff}
.relationship-node.external ellipse{stroke-dasharray:4 2}
.relationship-node:hover ellipse,.relationship-node:focus ellipse{stroke:var(--crm-heading-ink);stroke-width:2}
.relationship-node text{fill:#101820;font-size:12px;font-family:inherit;pointer-events:none}
.relationship-node-menu{position:absolute;z-index:45;max-width:calc(100% - 24px);padding:4px;background:var(--crm-surface);border:1px solid var(--crm-section-border);box-shadow:0 3px 12px var(--crm-shadow)}
.relationship-node-menu button{max-width:100%;white-space:normal;text-align:left}
.introduction-batch-dialog{width:min(950px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);padding:16px;background:var(--crm-panel)}
.introduction-table{max-height:52dvh;overflow:auto;margin-top:10px}
.introduction-table td{vertical-align:middle}
.introduction-table select{min-width:190px;max-width:290px;width:100%}
.introduction-table input{min-width:130px;width:100%}
.introduction-batch-dialog .dialog-actions{position:sticky;bottom:-16px;background:var(--crm-panel);padding:12px 0;margin-bottom:0}
@media(max-width:680px){.relationship-dialog{padding:10px}.relationship-toolbar{gap:5px;padding:5px}.relationship-help{font-size:11px}}
