This is a limitation to shortcodes, unfortunately. By the time the shortcode is rendered by WordPress, the
<head> of your website has already been rendered and can’t be manipulated.
We could move those styles to the footer, but then you’ll see a flash of unstyled content until the CSS is reached.
Once we transition to a block-based system instead of shortcode-based, this will no longer be an issue 🙂