.relationship-panel{width:min(100%,520px);max-height:min(88dvh,760px);overflow:auto;background:#081927;color:#f7fbff}
.relationship-panel>[data-relationship-list],.relationship-panel>[data-profile-search-results]{display:grid;gap:10px;padding:14px 16px 24px}
.relationship-row{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #17384c}
.relationship-identity{min-width:0;border:0;background:transparent;color:inherit;display:grid;grid-template-columns:46px minmax(0,1fr);gap:10px;align-items:center;text-align:left}
.relationship-identity>span:last-child{min-width:0;display:grid;gap:3px}.relationship-identity b,.relationship-identity small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.relationship-row>button:not(.relationship-identity),.relationship-row-actions button,.relationship-more,.profile-follow-requests{min-height:44px;padding:0 13px;border:1px solid #2fd3d5;border-radius:12px;background:transparent;color:#45dfe1;font-weight:800}
.relationship-row-actions{display:flex;gap:7px}.relationship-row-actions button:first-child{background:#2fd3d5;color:#061321}
.relationship-empty{padding:34px 14px;text-align:center;color:#9eb6c7}.relationship-more{width:100%;margin-top:6px}
.profile-follow-requests{width:calc(100% - 36px);margin:0 18px 16px;display:flex;align-items:center;justify-content:space-between}.profile-follow-requests b{min-width:26px;padding:4px;border-radius:999px;background:#2fd3d5;color:#061321}
.relationship-panel .discovery-search{margin:14px 16px 8px}.relationship-panel .discovery-search input{width:100%;min-height:48px;padding:0 14px;border:1px solid #1d5268;border-radius:14px;background:#0b2233;color:#f7fbff}
.relationship-panel .discovery-filters{display:flex;gap:8px;padding:0 16px}.relationship-panel .discovery-filters button{min-height:42px;padding:0 13px;border:1px solid #24556b;border-radius:999px;background:transparent;color:#b9d0dd}.relationship-panel .discovery-filters button[aria-selected=true]{border-color:#2fd3d5;background:#123c4b;color:#55e5e7}

.profile-relations-view>.mentor-header-button{display:none!important}.phone.profile-relations-view>.screen{width:100%;max-width:100%;padding:0 12px 104px}
.profile-relationship-page{--relationship-accent:#25d4cf;--relationship-panel:#0b1d2d;--relationship-raised:#10283a;--relationship-line:#1c3a4f;min-height:calc(100dvh - 78px);color:#f4f8fb}
.profile-relationship-header{position:sticky;z-index:12;top:0;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;min-height:64px;margin:0 -12px 12px;padding:max(8px,env(safe-area-inset-top)) 12px 8px;border-bottom:1px solid var(--relationship-line);background:#071522f2;backdrop-filter:blur(16px)}
.profile-relationship-header h1{margin:0;overflow:hidden;font-size:19px;font-weight:700;line-height:1.2;text-align:center;text-overflow:ellipsis;white-space:nowrap}
.profile-relationship-back{display:grid;width:44px;height:44px;place-items:center;padding:0;border:0;border-radius:12px;background:transparent;color:#f4f8fb;cursor:pointer}
.profile-relationship-back svg,.profile-relationship-context svg,.profile-relationship-search svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.profile-relationship-back:hover{background:#10283a}
.profile-relationship-back:focus-visible{outline:2px solid var(--relationship-accent);outline-offset:2px}
.profile-relationship-context{display:flex;align-items:center;gap:7px;margin:0 0 12px;color:#91aabd;font-size:11px}.profile-relationship-context svg{width:16px;height:16px;flex:none}
.profile-relationship-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-bottom:12px;padding:4px;border-radius:13px;background:var(--relationship-panel)}
.profile-relationship-tabs button{min-height:44px;padding:0 10px;border:0;border-radius:10px;background:transparent;color:#91aabd;font-weight:700;cursor:pointer}.profile-relationship-tabs button[aria-selected=true]{background:var(--relationship-raised);color:var(--relationship-accent)}
.profile-relationship-tabs button:focus-visible{outline:2px solid var(--relationship-accent);outline-offset:2px}
.profile-relationship-search{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:8px;min-height:48px;margin:0 0 12px;padding:0 13px;border:1px solid var(--relationship-line);border-radius:13px;background:var(--relationship-panel);color:#91aabd}
.profile-relationship-search input{width:100%;min-height:44px;padding:0;border:0;outline:0;background:transparent;color:#f4f8fb;font:inherit}.profile-relationship-search:focus-within{border-color:var(--relationship-accent);box-shadow:0 0 0 2px #25d4cf1c}.profile-relationship-search input::placeholder{color:#91aabd}
.profile-relationship-list-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:15px 2px 6px}.profile-relationship-list-head h2{margin:0;font-size:14px;font-weight:700}.profile-relationship-list-head span{color:#91aabd;font-size:11px;white-space:nowrap}
.profile-relationship-results{min-height:220px}.profile-relationship-list{display:grid}.profile-relationship-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-height:70px;padding:8px 2px;border-bottom:1px solid var(--relationship-line)}
.profile-relationship-item .relationship-identity{grid-template-columns:48px minmax(0,1fr);min-height:48px;padding:0}.profile-relationship-item .feed-avatar{display:grid;width:46px;height:46px;place-items:center;overflow:hidden;border:1px solid #25d4cf75;border-radius:50%;background:var(--relationship-raised);color:var(--relationship-accent);font-size:12px;font-weight:750}.profile-relationship-item.organization .feed-avatar{border-radius:13px;color:#e8ba55}.profile-relationship-item .feed-avatar img{width:100%;height:100%;object-fit:cover}
.profile-relationship-item .relationship-identity b,.profile-relationship-item .relationship-identity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-relationship-item .relationship-identity b{font-size:13px;font-weight:720}.profile-relationship-item .relationship-identity small{margin-top:3px;color:#91aabd;font-size:10px}
.profile-relationship-action{min-width:82px;min-height:44px;padding:0 10px;border:1px solid var(--relationship-accent);border-radius:10px;background:transparent;color:var(--relationship-accent);font-size:10px;font-weight:750;cursor:pointer}.profile-relationship-action.is-following{background:#25d4cf16}.profile-relationship-action.is-danger{border-color:#d96d78;color:#ff9aa4}.profile-relationship-action:disabled{cursor:wait;opacity:.58}
.profile-relationship-action:focus-visible,.profile-relationship-item .relationship-identity:focus-visible,.profile-relationship-more:focus-visible,.profile-relationship-state button:focus-visible{outline:2px solid var(--relationship-accent);outline-offset:2px}
.profile-relationship-reason{display:flex;align-items:center;gap:5px;color:#91aabd;font-size:10px}.profile-relationship-reason strong{color:#b8d0dc;font-weight:700}
.profile-relationship-state{display:grid;min-height:220px;place-content:center;justify-items:center;padding:30px 18px;color:#91aabd;text-align:center}.profile-relationship-state svg{width:34px;height:34px;margin-bottom:10px;fill:none;stroke:var(--relationship-accent);stroke-width:1.5}.profile-relationship-state h2{margin:0 0 6px;color:#f4f8fb;font-size:16px}.profile-relationship-state p{max-width:330px;margin:0;font-size:12px}.profile-relationship-state button,.profile-relationship-more{min-height:44px;margin-top:14px;padding:0 16px;border:1px solid var(--relationship-accent);border-radius:11px;background:transparent;color:var(--relationship-accent);font-weight:750}.profile-relationship-more{display:block;width:100%}
.profile-relationship-banner{margin:8px 0;padding:10px 12px;border:1px solid #a27635;border-radius:10px;background:#2a2113;color:#f0d28f;font-size:11px}
.profile-relationship-skeleton{display:grid;grid-template-columns:46px minmax(0,1fr) 84px;gap:10px;align-items:center;min-height:70px;border-bottom:1px solid var(--relationship-line)}.profile-relationship-skeleton span{height:12px;border-radius:999px;background:linear-gradient(90deg,#10283a,#17384b,#10283a);background-size:200% 100%;animation:relationship-shimmer 1.25s linear infinite}.profile-relationship-skeleton span:first-child{width:46px;height:46px;border-radius:50%}.profile-relationship-skeleton span:last-child{height:44px;border-radius:10px}
@keyframes relationship-shimmer{to{background-position:-200% 0}}
@media(max-width:360px){.phone.profile-relations-view>.screen{padding-inline:9px}.profile-relationship-header{margin-inline:-9px;padding-inline:9px}.profile-relationship-item{gap:7px}.profile-relationship-action{min-width:72px;padding-inline:7px}.profile-relationship-item .relationship-identity{grid-template-columns:44px minmax(0,1fr)}.profile-relationship-item .feed-avatar{width:42px;height:42px}}
@media(max-width:320px){.profile-relationship-header h1{font-size:17px}.profile-relationship-action{min-width:66px;font-size:9px}.profile-relationship-context{font-size:10px}}
@media(min-width:900px){.phone.profile-relations-view>.screen{max-width:920px;padding:26px 34px 120px}.profile-relationship-page{min-height:700px}.profile-relationship-header{position:relative;top:auto;margin:0 0 22px;padding:8px 0 14px;background:transparent}.profile-relationship-results{min-height:360px}.profile-relationship-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px}.profile-relationship-tabs,.profile-relationship-search{max-width:620px}.profile-relationship-list-head{margin-top:24px}}
@media(max-width:520px){.relationship-panel{width:100%;height:min(92dvh,760px);border-radius:22px 22px 0 0}.relationship-row-actions{flex-direction:column}.relationship-row-actions button{min-height:40px}}
@media(prefers-reduced-motion:reduce){.relationship-panel *,.profile-relationship-page *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
