.df-profile-card-head {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(45, 28, 15, .10);
    background:
        linear-gradient(135deg, rgba(187, 132, 93, .16), rgba(255, 255, 255, .18)),
        rgba(255, 255, 255, .30);
}

.df-profile-card-head img {
    width: 148px;
    height: 148px;
    border: 2px solid rgba(255, 255, 255, .82);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

.df-profile-card-head p {
    margin-top: 6px;
}

.df-profile-form {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.df-profile-form label {
    display: grid;
    gap: 7px;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 800;
}

.df-profile-photo-field,
.df-profile-photo-control {
    display: grid;
    gap: 9px;
    width: fit-content;
    padding: 14px;
    border: 1px dashed rgba(45, 28, 15, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .38);
}

.df-profile-photo-control > span {
    color: var(--color-text);
    font-size: 13px;
    font-weight: 900;
}

.df-profile-photo-control-main {
    position: relative;
    width: 104px;
    height: 104px;
}

.df-profile-photo-control.is-avatar-only {
    padding: 0;
    border: 0;
    background: transparent;
}

.df-profile-card-head .df-profile-photo-control.is-avatar-only {
    overflow: visible;
}

.df-profile-card-head .df-profile-photo-control.is-avatar-only .df-profile-photo-control-main {
    width: 148px;
    height: 148px;
}

.df-profile-photo-control-main img {
    width: 104px;
    height: 104px;
    border: 2px solid rgba(255, 255, 255, .84);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

.df-profile-card-head img.df-staff-user-avatar {
    width: 148px;
    height: 148px;
}

.df-profile-card-head .df-profile-photo-control.is-avatar-only .df-profile-photo-control-main img {
    width: 148px;
    height: 148px;
}

.df-profile-card-head .df-profile-photo-control.is-avatar-only .df-profile-photo-action {
    width: 42px;
    height: 42px;
    border-width: 3px;
    font-size: 28px;
}

.df-profile-photo-action {
    position: absolute;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    box-shadow: var(--shadow-soft);
}

.df-profile-photo-action input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.df-profile-photo-action.is-add {
    right: -3px;
    bottom: 5px;
}

.df-profile-photo-action.is-remove {
    right: -3px;
    top: 5px;
    background: #8b2f2f;
}

.df-profile-photo-action.is-selected {
    outline: 3px solid rgba(139, 47, 47, .22);
    transform: scale(1.04);
}

.df-profile-photo-action.is-disabled {
    opacity: .35;
    pointer-events: none;
}

.df-profile-form small {
    color: var(--color-muted);
    font-weight: 600;
    line-height: 1.45;
}

.df-profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.df-profile-form-wide {
    grid-column: 1 / -1;
}

.df-profile-form button {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    font-weight: 900;
}

.df-profile-form button:hover {
    background: var(--color-primary-dark);
}
