.avatar[data-profile-avatar] { position: relative; overflow: hidden; flex-shrink: 0; }
.avatar[data-profile-avatar] img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-banner { padding: 0; overflow: hidden; max-width: 1200px; }
.profile-cover { aspect-ratio: 3 / 1; background: linear-gradient(120deg, #d4e8e1, #799b97); position: relative; }
.profile-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-identity { display: flex; align-items: flex-start; gap: 20px; padding: 0 24px 24px; position: relative; margin-top: -42px; }
.profile-picture { width: 110px; height: 110px; font-size: 38px; border: 5px solid #fff; box-shadow: 0 3px 12px #173b3220; }
.profile-identity h2 { margin: 8px 0 0; overflow-wrap: anywhere; }
.profile-identity > div { padding-top: 52px; min-width: 0; }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; overflow-wrap: anywhere; }
.profile-links:empty { display: none; }
.profile-links a { min-width: 0; }
.profile-links-fields { min-width: 0; }
.profile-image-actions { padding: 0 24px 24px; }
.profile-image-dialog { width: min(760px, 95vw); max-height: 95vh; overflow: auto; }
.profile-image-dialog canvas { display: block; width: 100%; height: auto; background: #e8efeb; touch-action: none; border: 2px solid #53796d; cursor: grab; }
.profile-image-dialog.is-avatar canvas { max-width: 320px; margin-inline: auto; }
.profile-image-dialog canvas:active { cursor: grabbing; }
.profile-author { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.profile-author .avatar { width: 36px; height: 36px; font-size: 14px; }
.profile-author > :not(.avatar) { min-width: 0; overflow-wrap: anywhere; }
.profile-moderation-image { max-width: 240px; max-height: 120px; object-fit: contain; }
@media (max-width: 520px) {
    .profile-identity { padding-inline: 16px; gap: 12px; margin-top: -30px; }
    .profile-picture { width: 80px; height: 80px; font-size: 26px; border-width: 4px; }
    .profile-identity > div { padding-top: 38px; }
    .profile-image-actions { padding-inline: 16px; }
}
