Based on the information provided in the extracts, it seems like you're encountering an issue similar to the one discussed in this GitHub issue (https://github.com/withastro/astro/issues/8377). The issue was that the styles were being applied to the <script> tag that Astro uses for hydration of components, causing it to be rendered as visible text in the DOM.
A temporary workaround suggested in the discussion was to explicitly set display: none to the <script> and <style> tags added at runtime by Astro. This can prevent your CSS from unintentionally targeting these tags. However, please note that this is a workaround and might not be the best solution.
Here's an example of how you might apply this workaround:
script[astro-island], style[astro-island] {
display: none;
}
This issue has been acknowledged by the Astro team and a fix might be provided in future updates. For now, you might want to follow the discussion in the linked GitHub issue for any updates or better solutions.
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: