セレクターの表現を色々変えて試したら、少なくとも私の環境では性能が改善したみたいです。「:is(…)」を避けて、検索すべき範囲をゴリゴリ狭めまくった。
従来はこんなセレクターだった。
body:has(:is(.drawer, .compose-panel) .search__input[value*="/color01"])
次のようにした。
body.layout-single-column:has(> :first-child>:first-child>.ui>:nth-child(2) > .columns-area__panels__pane--compositional >*>*> .search > .search__input[value*="/color01"]),
body.layout-multiple-columns:has(> :first-child>:first-child>.ui>:nth-child(2) > .drawer > .search > .search__input[value*="/color01"])