.glass-card.profile-photo {
    margin-bottom: var(--space-lg);
}

.profile-photo__body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.profile-photo__avatar {
    display: flex;
    flex: 0 0 104px;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--accent2-forte);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.3);
    transition: box-shadow var(--transition-base);
}

.profile-photo__avatar.is-preview {
    box-shadow: 0 0 0 4px rgba(var(--accent2-rgb), 0.55), 0 10px 24px rgba(0, 0, 0, 0.3);
}

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

.profile-photo__initials {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 1px;
}

.profile-photo__avatar.avatar-default {
    font-size: 34px;
}

.profile-photo__avatar:not(.avatar-default) .profile-photo__initials {
    color: var(--on-accent);
}

.profile-photo__content {
    flex: 1 1 auto;
    min-width: 0;
}

.profile-photo__hint {
    margin: 0 0 var(--space-md);
    font-size: var(--fs-sm);
    line-height: 1.5;
    color: var(--text-muted);
}

.profile-photo__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-photo__form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-photo__pick {
    cursor: pointer;
}

#profile-photo-input:focus-visible + .profile-photo__pick {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.profile-photo button.profile-photo__remove[type="submit"] {
    color: rgba(var(--accent3-rgb), 0.95);
}

.profile-photo__file {
    margin-top: 10px;
    font-size: var(--fs-sm);
    line-height: 1.5;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.profile-photo__file--error {
    color: var(--accent-error);
}

@media (max-width: 768px) {
    .glass-card.profile-photo {
        margin-bottom: var(--space-md);
    }
}

@media (max-width: 560px) {
    .profile-photo__body {
        flex-direction: column;
        text-align: center;
    }

    .profile-photo__actions,
    .profile-photo__form {
        justify-content: center;
    }
}
