.user-card.profile-enabled { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px; }
.profile-avatar-button { position: relative; width: 46px; height: 46px; padding: 0; overflow: hidden; border: 2px solid rgba(255,255,255,.22); border-radius: 50%; background: #f7f0e8; cursor: pointer; }
.profile-avatar-button img, .staff-user-avatar, .client-person-list img, .client-assigned-team img, .access-user-avatar, .presence-avatar { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.profile-avatar-button > span { position: absolute; inset: auto 0 0; margin: 0; padding: 4px 2px; background: rgba(35,22,31,.9); color: #fff; font-size: 7px; font-weight: 800; line-height: 1.05; text-align: center; text-transform: none; transform: translateY(100%); transition: transform .16s ease; }
.profile-avatar-button:hover > span, .profile-avatar-button:focus-visible > span, .profile-avatar-button.uploading > span { transform: translateY(0); }
.profile-avatar-button:focus-visible { outline: 3px solid rgba(242,133,93,.55); outline-offset: 2px; }
.profile-avatar-button.uploading { opacity: .65; pointer-events: none; }
.profile-photo-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.profile-account-copy { min-width: 0; }
.profile-account-copy strong, .profile-account-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-user-identity { display: flex; align-items: center; gap: 9px; min-width: 180px; }
.staff-user-identity > span { min-width: 0; }
.staff-user-avatar { flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid var(--line); background: #f7f0e8; }
.staff-gender-select { min-width: 118px; }
.access-user-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #f7f0e8; }
.presence-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.presence-avatar { flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid var(--line); background: #f7f0e8; }
.client-assigned-team { margin: 16px 0; }
.client-assigned-clinic-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.client-assigned-clinic-list > span { padding: 7px 10px; border: 1px solid #cfe0dc; border-radius: 999px; background: #eff7f5; color: #315f59; font-size: 10px; font-weight: 750; }
.client-assigned-team-list { display: flex; flex-wrap: wrap; gap: 10px; }
.client-assigned-team-list article { display: flex; align-items: center; gap: 9px; min-width: 180px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft, #fff9f2); }
.client-assigned-team img { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #f7f0e8; }
.client-assigned-team strong { color: var(--ink); font-size: 12px; }
.client-person-list span { display: inline-flex; align-items: center; gap: 7px; }
.client-person-list img { width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 50%; background: #f7f0e8; }
html[data-theme="dark"] .staff-user-avatar, html[data-theme="dark"] .client-assigned-team img, html[data-theme="dark"] .client-person-list img, html[data-theme="dark"] .profile-avatar-button { border-color: rgba(245,218,208,.25); background: #30242e; }
html[data-theme="dark"] .client-assigned-team-list article { background: #2d222b; }
html[data-theme="dark"] .client-assigned-clinic-list > span { border-color: #4e5a50; background: #2d352d; color: #d7e3d3; }
@media (max-width: 820px) { .sidebar-footer { display: block; } .user-card.profile-enabled { grid-template-columns: 44px minmax(0,1fr); } }
