.profile-dialog {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f7f8fc;
    color: #0f172a;
}

.profile-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-subtitle {
    color: #475569;
    font-size: 0.95rem;
}

.profile-loading {
    padding: 1rem 0;
    color: #475569;
}

.profile-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-avatar-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.profile-avatar-frame {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: #e2e8f0;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-fallback {
    font-size: 2rem;
    font-weight: 600;
    color: #475569;
}

.profile-avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.profile-upload-input {
    display: none;
}

.profile-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
    cursor: pointer;
}

.profile-upload-meta {
    font-size: 0.85rem;
    color: #475569;
    text-align: center;
    max-width: 220px;
    word-break: break-word;
}
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-input {
    width: 100%;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-cancel {
    background-color: #ef4444 !important;
    color: #ffffff !important;
}

@media (min-width: 640px) {
    .profile-actions {
        flex-direction: row;
        justify-content: flex-end;
    }
}

@media (min-width: 768px) {
    .profile-body {
        flex-direction: row;
        align-items: flex-start;
    }

    .profile-avatar-column {
        align-items: flex-start;
    }
}