/* The menu belongs to the outer page, never the experiment iframe. */
html[data-visual-theme] .visual-theme-menu {
  position: fixed; right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom)); z-index: 10000;
  display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 12px;
  color: #243b46; background: #fff; border: 1px solid #b6c7ca;
  border-radius: 10px; box-shadow: 0 4px 16px #0002;
  font: 14px/1.5 "Microsoft YaHei UI", "PingFang SC", sans-serif;
}
html[data-visual-theme] .visual-theme-menu select {
  min-height: 40px; max-width: 150px; margin: 0; padding: 4px 24px 4px 8px;
  color: inherit; background: transparent; border: 0; border-radius: 6px;
  font: inherit; cursor: pointer; color-scheme: light;
}
html[data-visual-theme] .visual-theme-menu select:focus-visible { outline: 3px solid #16776f; outline-offset: 1px; }
html[data-visual-theme="quantum"] .visual-theme-menu { color: #e6f1f8; background: #0d1927; border-color: #476677; }
html[data-visual-theme="quantum"] .visual-theme-menu select { color-scheme: dark; }
html[data-visual-theme="quantum"] .visual-theme-menu select:focus-visible { outline-color: #65e4df; }
html[data-visual-theme] .quantum-display { display: none; }
html[data-visual-theme="quantum"] .quantum-display { display: block; }
html[data-visual-theme="quantum"] .quantum-display { background-color: #0c1c2b; }
html[data-visual-theme="quantum"] .quantum-display > img { display: block; width: 100%; height: auto; }
html[data-visual-theme] .classic-hero-media { display: none; }
html[data-visual-theme="classic"] .classic-hero-media { display: block; }
html[data-visual-theme="classic"] .gallery-home .gallery-hero-layout { display: block; }
html[data-visual-theme="classic"] .gallery-home .hero-copy { position: relative; }
html[data-visual-theme="classic"] .gallery-home .gallery-exhibit,
html[data-visual-theme="classic"] .gallery-home .gallery-hero-note { display: none; }
/* Courses retain their established stage controls and styles. */
html[data-visual-theme] body:has(iframe[data-zhizi-original-runtime]:not([hidden])) > .visual-theme-menu { display: none; }
