/* Account / profile page — uses dashboard color tokens */

.user-profile-panel {
    background: var(--color-pure-white);
    border: 1px solid var(--color-cloud);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(48, 66, 97, 0.06);
}

.user-profile-panel__title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-blu);
    margin: 0 0 20px 0;
}

.user-profile-panel__title--subsection {
    margin-top: 8px;
}

.user-profile__password-heading {
    margin-top: 0;
}

.user-profile__password-block {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--color-cloud);
}

.user-profile__password-header {
    margin-bottom: 0;
}

.user-profile__password-toggle {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
}

.user-profile__password-toggle-icon {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.user-profile__password-toggle[aria-expanded="true"] .user-profile__password-toggle-icon {
    transform: rotate(180deg);
}

.user-profile__password-collapse {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    padding-top: 0;
    margin-top: 0;
    transition:
        max-height 0.4s ease,
        opacity 0.3s ease,
        padding-top 0.35s ease,
        visibility 0s linear 0.4s;
}

.user-profile__password-collapse.is-open {
    max-height: 420px;
    opacity: 1;
    visibility: visible;
    padding-top: 18px;
    transition:
        max-height 0.4s ease,
        opacity 0.3s ease 0.05s,
        padding-top 0.35s ease,
        visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
    .user-profile__password-collapse,
    .user-profile__password-collapse.is-open {
        transition-duration: 0.01ms;
    }
}

.user-profile__password-hint {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    color: var(--color-secondary-blu);
    margin: 0 0 16px 0;
}

.user-profile__logout-block {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--color-cloud);
}

.user-profile__logout-btn {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    padding: 8px 18px;
}

.user-profile__logout-icon {
    font-size: 20px;
    line-height: 1;
}

.user-profile__avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}

.user-profile__avatar-dropzone {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    border-radius: 50%;
    cursor: default;
    outline: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.user-profile__avatar-dropzone:focus-visible {
    box-shadow: 0 0 0 3px rgba(38, 76, 114, 0.35);
}

.user-profile__avatar-dropzone.is-dragover {
    box-shadow: 0 0 0 3px var(--color-secondary-blu);
    transform: scale(1.02);
}

.user-profile__avatar-dropzone.is-dragover .user-profile__avatar {
    border-color: var(--color-secondary-blu);
}

.user-profile__avatar-dropzone.user-profile__avatar-dropzone--disabled {
    cursor: not-allowed;
    opacity: 0.55;
    pointer-events: none;
}

.user-profile__avatar-dropzone.user-profile__avatar-dropzone--disabled:focus-visible {
    box-shadow: none;
}

.user-profile__avatar {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-cloud);
    background: var(--color-background);
    transition: border-color 0.2s ease;
}

.user-profile__avatar-dropzone-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    text-align: center;
    background: rgba(48, 66, 97, 0.82);
    color: var(--color-pure-white);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.user-profile__avatar-dropzone.is-dragover .user-profile__avatar-dropzone-overlay {
    opacity: 1;
}

.user-profile__avatar-dropzone-icon {
    font-size: 28px;
    line-height: 1;
}

.user-profile__avatar-dropzone-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.user-profile__avatar-drop-hint {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-secondary-blu);
    margin: 0;
    max-width: 280px;
}

.user-profile__avatar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.user-profile__company {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--color-background);
    border-radius: 8px;
    border: 1px solid var(--color-cloud);
}

.user-profile__company-img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--color-cloud);
    background: var(--color-pure-white);
}

.user-profile__company-name {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--color-blu);
    margin: 0;
}

.user-profile__company-hint {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: var(--color-secondary-blu);
    margin: 4px 0 0 0;
}
