Of course, you should be with your mother. Me suggesting something doesn't mean I expect you to commit something the next hour. Your own life has a higher priority than your projects, and it's completely fine if you do not push any commits for the next month.
But generally speaking, you do not need to implement the logic part through CSS. The conditions when to place the "fake dark" can be set via Java first, thus only inserting "fake Dark CSS" if the conditions are met.
Of course, that comes with complexity as well as increasing the possibility of bugs. It also won't be 100 % correct. It is a "feasible estimate", or an heuristic approach if one wants to call it that way.
That also means that there are valid reasons to not implement it at all. Especially taking in consideration the amount of time you have to put into implementing a near-complete "fake dark" which won't be used anymore if Google updates their Androidx library to include the original method back again (hopefully).
In corporate language, we'd call it "it's not feasible to invest more time and resources in this, so it won't be implemented". Which is fine. As a "product owner", that's up to your judgement
P.S.: I hope the chemo helps. With a family friend of mine, it helped her and she has gotten rid of cancer. So, it's not always as "useless" as the probability rate suggests. Stay strong!