Shadow color doesn't change in Variables Modes

I couldn’t find any topics addressing this issue, so I’m reaching out for help. I’ve set up my variables in the shadow properties but they aren’t working with the auto-switcher light/dark mode. Has anyone else experienced this problem or know how to resolve it?

What’s your setup looks like?

You say your shadows don’t respect that?
Why don’t you share more details? I’d post more screenshots. What is the shadow setup? What is the outcome?