.main-container-messages--profile .menu-contacts,
.main-container-messages--profile .chat {
    display: none !important;
}

.profile-section {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding: 1.25rem 1.5rem 2rem;
    background: var(--office-surface);
}

.profile-back {
    border: none;
    background: transparent;
    color: var(--office-accent);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0 0 1rem;
    margin: 0 0 0.5rem;
}

.profile-back:hover {
    text-decoration: underline;
}

.profile-block {
    max-width: 420px;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--office-border);
}

.profile-block:last-child {
    border-bottom: none;
}

.profile-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.profile-avatar-edit {
    font-size: 0.85rem;
    color: var(--office-accent);
    cursor: pointer;
}

.profile-avatar-edit:hover span {
    text-decoration: underline;
}

.profile-username {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--office-text);
}

.profile-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--office-text);
}

.profile-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.profile-row--between {
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.profile-label--inline {
    margin-bottom: 0;
}

.profile-btn--sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
}

.profile-notify-history {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-notify-history:empty {
    display: none;
}

.profile-notify-history__item {
    border: 1px solid var(--office-border);
    border-radius: var(--office-radius-sm);
    background: var(--office-surface-2);
    padding: 0.65rem 0.75rem;
}

.profile-notify-history__item--clickable {
    cursor: pointer;
    transition: border-color var(--office-transition), background var(--office-transition);
}

.profile-notify-history__item--clickable:hover {
    border-color: var(--office-accent);
    background: rgba(59, 130, 246, 0.08);
}

.profile-notify-history__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.profile-notify-history__type {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--office-accent);
}

.profile-notify-history__time {
    font-size: 0.72rem;
    color: var(--office-muted);
    flex-shrink: 0;
}

.profile-notify-history__from {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--office-text);
    margin: 0 0 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-notify-history__text {
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--office-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-input {
    flex: 1;
    min-width: 160px;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--office-border);
    border-radius: var(--office-radius-sm);
    background: var(--office-surface-2);
    color: var(--office-text);
    font-size: 0.9rem;
}

.profile-input:focus {
    outline: none;
    border-color: var(--office-accent);
}

.profile-btn {
    padding: 0.55rem 1rem;
    border-radius: var(--office-radius-sm);
    border: 1px solid var(--office-border);
    background: var(--office-surface-2);
    color: var(--office-text);
    font-size: 0.88rem;
    cursor: pointer;
    transition: background var(--office-transition);
}

.profile-btn:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.12);
    border-color: var(--office-accent);
}

.profile-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.profile-btn--danger {
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
}

.profile-btn--danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.12);
}

.profile-hint {
    font-size: 0.82rem;
    margin: 0.5rem 0 0;
    color: var(--office-muted);
}

.profile-hint--success {
    color: #86efac;
}

.profile-hint--error {
    color: #fca5a5;
}

.profile-hint--warning {
    color: #fcd34d;
}

.profile-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.profile-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.profile-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--office-border);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.profile-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.profile-toggle input:checked + .profile-toggle-slider {
    background: var(--office-accent);
}

.profile-toggle input:checked + .profile-toggle-slider::before {
    transform: translateX(20px);
}

#profile-password-step2 {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

#profile-password-step2.hidden {
    display: none !important;
}
