I’m having a similar challenge. Were you able to find a workaround?
Because of the cross-origin issue, I can’t add any kind of marker on the iframe that my embedded CSS can use to figure out what colors to use: