.avatar.member-avatar{padding:0;overflow:hidden;background:#e7edf5;flex-shrink:0;line-height:0}.member-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.team-card>.member-avatar{width:86px;height:86px;border-radius:50%;margin-bottom:6px;border:3px solid #fff;box-shadow:0 2px 12px #102d4f12}
.team-avatar-hint{font-size:12px;color:var(--muted);margin:-3px 0 22px;line-height:1.7}
.team-card-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:18px}.team-card-actions .text-link{font-size:11px}
.team-photo-editor{text-align:center;padding:8px 0 18px}.team-photo-editor h3{margin:14px 0 4px;font-size:17px}.team-photo-editor>p{font-size:12px;color:var(--muted);line-height:1.7}
.team-photo-preview{width:138px;height:138px;border-radius:50%;overflow:hidden;margin:auto;background:#edf2f8;border:4px solid white;box-shadow:0 3px 20px #102d4f16}.team-photo-preview img{width:100%;height:100%;object-fit:cover;display:block}
.team-avatar-choices{padding:16px;background:#f4f7fb;border:1px solid var(--border);border-radius:10px;margin-top:18px}.team-avatar-choices p{margin-bottom:0}
.member-name-cell{display:flex;align-items:center;gap:10px}.member-name-cell>.avatar{width:34px;height:34px}
@media(max-width:600px){.team-card>.member-avatar{width:74px;height:74px}.team-card-actions{gap:12px}.team-card-actions .btn{min-height:38px}.team-photo-preview{width:116px;height:116px}}
/* Invite a registered person from «Шинэ · Багийн гишүүн» and list pending invitations (team-invites-ui.js). */
.member-lookup{border:1px solid #dbe4ee;border-radius:12px;padding:14px;background:#f7fafd;margin-bottom:16px}
.member-lookup>label{font-weight:600;margin-bottom:8px}
.member-lookup-row{display:flex;gap:8px}.member-lookup-row input{flex:1;min-width:0}.member-lookup-row .btn{flex-shrink:0}
.member-lookup [data-member-lookup-result]{margin-top:8px}.member-lookup [data-member-lookup-result] p{margin:0}
.member-lookup-card{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid #bfe3cf;background:#effaf3;border-radius:10px}
.member-lookup-card>div{flex:1;min-width:0}.member-lookup-card b{display:block;font-size:13px}.member-lookup-card small{display:block;font-size:11px;color:#5b6d80;overflow-wrap:anywhere}
.member-lookup-check{width:26px;height:26px;border-radius:50%;background:#2f8f5b;color:#fff;display:grid;place-items:center;font-size:14px;flex-shrink:0}
.team-invites{margin-bottom:18px}.team-invite-list{padding:0 20px 12px}
.team-invite-list article{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--border);flex-wrap:wrap}
.team-invite-list article>div{flex:1;min-width:180px}.team-invite-list b{display:block;font-size:13px}.team-invite-list small{display:block;font-size:11px;color:var(--muted);margin-top:2px}
/* Төслөөс гарах хүсэлт, удирдагчийн багийн хэрэгслүүд */
.panel-head:has(>.panel-head-actions){flex-wrap:wrap;row-gap:10px}.panel-head:has(>.panel-head-actions)>h2{white-space:nowrap}
.panel-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-left:auto}
[data-project-leave]{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}[data-project-leave]:empty{display:none}
.leave-pending{font-size:11px;color:#94480f;background:#fff4ea;border-radius:999px;padding:5px 10px}
.leave-requests{border:1px solid #ffd7a7;background:#fffaf4;border-radius:12px;padding:12px 16px}.leave-requests .join-admin-request:last-child{border-bottom:0}
.team-lead-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 16px;padding:12px 16px;border:1px solid var(--border);border-radius:12px;background:#f8fafc}
.team-lead-tools span{flex:1 1 220px;font-size:12px;color:var(--muted)}
.team-card-actions .team-remove{color:#b4432d}
@media(max-width:600px){.team-lead-tools .btn{flex:1 1 100%}.panel-head-actions{flex:1 1 100%;justify-content:flex-start;margin-left:0}}
