.relations-editor{display:grid;gap:16px;margin:16px 0}.relations-editor fieldset{min-width:0;margin:0;padding:14px;border:1px solid #dce1eb;border-radius:9px}.relations-editor legend{font-weight:700;color:#173d75;padding:0 6px}.relations-editor input:not([type=checkbox]){width:100%;min-width:0}.relations-editor small{display:block;margin:6px 0;line-height:1.5}.relations-editor #tlChildren button{display:block;text-align:left;white-space:normal;overflow-wrap:anywhere;width:100%;margin:6px 0}.relations-badge{display:block;color:#173d75;background:#edf2fa;padding:4px 6px;border-radius:5px;margin:4px 0;font-size:11px}.relations-owner-cell{white-space:normal;overflow-wrap:anywhere;min-width:200px}.relations-editor :focus-visible{outline:2px solid #ffb676;outline-offset:-2px}

.owners-select{border:1px solid #c8d2e1;border-radius:8px;background:white;padding:7px;min-width:0}.owners-selected{display:flex;flex-wrap:wrap;gap:6px}.owners-chip{display:flex;align-items:center;gap:5px;max-width:100%;padding:4px 7px;border-radius:5px;background:#edf2fa;color:#173d75;font-size:13px}.owners-chip>span{overflow-wrap:anywhere;min-width:0}.owners-chip button{border:0!important;background:transparent!important;color:#173d75!important;padding:2px 5px!important;min-height:28px;flex-shrink:0;font-size:20px;cursor:pointer}.owners-select #tlOwnersSearch{border:0;box-shadow:none;min-height:38px;margin-top:4px;padding:6px;background:transparent}.relations-choices{max-height:200px;overflow:auto;border-top:1px solid #dce1eb;margin-top:5px}.relations-choices[hidden]{display:none}.relations-choices [role=option]{padding:10px 8px;cursor:pointer;font-size:13px;overflow-wrap:anywhere;color:#173d75}.relations-choices [role=option]:hover,.relations-choices .is-active{background:#fff0df}.relations-choices [aria-selected=true]{background:#edf2fa;font-weight:600}.relations-choices p{padding:8px;font-size:13px}.owners-select:focus-within{outline:2px solid #ffb676;outline-offset:-2px}

.relations-editor #tlParentId{display:block;width:100%;max-width:100%;min-width:0;min-height:40px;padding:8px 10px;border:1px solid #ccd4e2;border-radius:8px;background-color:#fff;color:inherit;font:inherit}.relations-editor #tlParentId:focus{outline:2px solid #ffb676;outline-offset:-2px}

.owners-select #tlOwnersSearch:focus-visible{outline:none}

.relations-parent-field{display:flex;align-items:center;gap:8px;min-width:0}.relations-parent-field #tlParentId{flex:1;width:0}.relations-parent-field #tlRemoveParent{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;padding:8px;border:1px solid #dce1eb;border-radius:8px;background:#fff;color:#64748b;cursor:pointer}.relations-parent-field #tlRemoveParent:hover:not(:disabled){background:#fff1f2;color:#b45353;border-color:#f3c6c6}.relations-parent-field #tlRemoveParent:disabled{opacity:.4;cursor:default}

/* Native compact picker, matching the Phase field, with selections below. */
.relations-editor .owners-select{border:0;padding:0;background:transparent;outline:none;box-shadow:none}
.relations-editor .owners-select:focus-within{outline:none;box-shadow:none}
.relations-editor #tlOwnersSearch{display:block;width:100%;min-height:40px;padding:8px 10px;border:1px solid #ccd4e2;border-radius:8px;background-color:#fff;color:inherit;font:inherit}
.relations-editor #tlOwnersSearch:focus-visible{outline:2px solid #ffb676;outline-offset:-2px}
.relations-editor .owners-selected{margin-top:10px}.relations-editor .owners-selected:empty{display:none}
