.profile-avatar-own {
    align-self: start;
    width: 160px;
}

.profile-avatar-frame {
    position: relative;
    width: 130px;
    height: 130px;
}

.profile-avatar-frame img,
.profile-avatar-frame .fallback {
    width: 130px;
    height: 130px;
    border-radius: 24px;
    object-fit: cover;
}

.profile-avatar-frame img {
    display: block;
}

.avatar-edit-badge {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--accent);
    border: 3px solid #131316;
    box-shadow: 0 7px 24px rgba(0,0,0,.35);
    font-size: 15px;
}

.avatar-controls {
    margin-top: 13px;
    width: 150px;
    display: grid;
    gap: 7px;
}

.avatar-upload-form {
    display: grid;
    gap: 7px;
}

.avatar-file-button {
    min-height: 34px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff08;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 9px;
    color: #f4f4f5;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .18s ease;
}

.avatar-file-button:hover {
    border-color: rgba(255,106,0,.45);
    background: rgba(255,106,0,.08);
}

.avatar-file-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.avatar-save-button {
    width: 100%;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
}

.avatar-delete-button {
    width: 100%;
    padding: 5px;
    border: 0;
    background: transparent;
    color: #a1a1aa;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: .18s ease;
}

.avatar-delete-button:hover {
    color: #f87171;
}

.avatar-hint {
    display: block;
    color: #71717a;
    font-size: 10px;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 700px) {
    .profile-avatar-own {
        width: 100%;
        display: grid;
        justify-items: center;
    }

    .avatar-controls {
        width: min(260px, 100%);
    }
}
