/* Open sidebar: profile is the single destination for account and settings. */
body:not(.sidebar-collapsed) .sidebar .sidebar-footer .footer-actions {
    display: block !important;
}

body:not(.sidebar-collapsed) .sidebar .sidebar-footer .profile-btn.wide {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 58px !important;
    padding: 12px !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

body:not(.sidebar-collapsed) .sidebar .sidebar-footer .profile-btn.wide:hover,
body:not(.sidebar-collapsed) .sidebar .sidebar-footer .profile-btn.wide:focus-visible {
    background: rgba(255, 255, 255, 0.06) !important;
    outline: none !important;
}

body.light-mode:not(.sidebar-collapsed) .sidebar .sidebar-footer .profile-btn.wide:hover,
body.light-mode:not(.sidebar-collapsed) .sidebar .sidebar-footer .profile-btn.wide:focus-visible {
    background: rgba(0, 0, 0, 0.05) !important;
}

body:not(.sidebar-collapsed) .sidebar .sidebar-footer .profile-btn.wide .profile-avatar {
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
    border: 0 !important;
    background: transparent !important;
}

body:not(.sidebar-collapsed) .sidebar .sidebar-footer .profile-btn.wide .profile-avatar svg {
    width: 21px !important;
    height: 21px !important;
}

body:not(.sidebar-collapsed) .sidebar .sidebar-footer #profileButtonText {
    font-size: 14.5px !important;
    line-height: 1.2 !important;
    color: var(--text-primary) !important;
}

/* Protect the one-destination rule if a legacy script injects the old gear. */
.sidebar-footer .settings-btn {
    display: none !important;
}
