Thread:Project:Support desk/Ressource Loader advice to style Special:Search (2)/reply

If I understand your question correctly, the problem is not to get the module included on only and exactly Special:Search. That is working correctly. Instead the problem is the order in which your module gets added (after other modules).

According to Manual:$wgResourceModules you can define a key position => top for your module. Maybe you will then have to give your styles a high specificity so that they are not overwritten by those styles, which are loaded after that, but as far as I understand it, this should basically make your styles apply first and only.