> if they're working against the elected leadership of the US, who are they working FOR?

Unironically: Either themselves, or the American people.

All institutions are supposed to work for the people no? And kind of supposed to have some amount of independence for check and balances? To make sure none of them stop working for the people?

That's what I always thought.

There's the "at the pleasure of the president" kind of thing.

https://en.wikipedia.org/wiki/At_the_pleasure_of_the_preside...

These jobs are pretty big ones like CISA chief but it doesn't matter much how well you serve the people or whatever. It just matters how well you serve the president

It depends on the definition of "people" I guess.

I find it incredibly weird that people stroll into a conversation like this, basically flexing the complete lack of civic knowledge they have.

I think it was sarcasm:)