.user-avatar {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--oj-accent) 35%, var(--oj-border));
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--oj-accent), #8b5cf6);
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
}

.user-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar-xs { width: 1.55rem; height: 1.55rem; font-size: .67rem; }
.user-avatar-sm { width: 2rem; height: 2rem; font-size: .78rem; }
.user-avatar-md { width: 2.65rem; height: 2.65rem; font-size: .95rem; }
.user-avatar-xl {
    width: 8rem;
    height: 8rem;
    border-width: 2px;
    font-size: 2.65rem;
    box-shadow: 0 12px 32px rgba(74, 91, 170, .25);
}

.profile-shortcut .user-avatar { margin-right: .08rem; }
.ranking-user,
.participant-user,
.article-card-author,
.article-author {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(220px, .38fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.profile-card,
.profile-editor { padding: clamp(1.2rem, 3vw, 2rem); }
.profile-card { text-align: center; }
.profile-card h1 { margin: 1rem 0 .15rem; font-size: 1.45rem; }
.profile-avatar-form {
    display: grid;
    gap: .55rem;
    margin-top: 1.35rem;
    text-align: left;
}
.profile-avatar-form .btn { justify-self: start; }
.profile-content-editor { min-height: 18rem; resize: vertical; }
.comment-reply-author { display: flex; align-items: center; gap: .55rem; }
.comment-reply-author .comment-meta { flex: 1; }

@media (max-width: 991.98px) {
    .profile-shortcut > span:not(.user-avatar) { display: none; }
    .profile-layout { grid-template-columns: 1fr; }
    .profile-card { text-align: left; }
    .profile-avatar-large { display: flex; justify-content: flex-start; }
}
