/* SavorIP UX v2: pair text with the existing native photo-studio surface.
   The canvas, uploaded room photo, placement handlers and gallery layout keep
   their original owners. The same subtree is used in normal and expanded mode. */
html:has(#sgSystemGlassTheme) body #creation20#creation20#creation20 #ps-gallery[data-photo-mode="photo"] .ps-photo-root .ps-photo-caption,
html:has(#sgSystemGlassTheme) body #creation20#creation20#creation20 #ps-gallery[data-photo-mode="photo"] .ps-photo-root .ps-photo-controls .ps-photo-slider,
html:has(#sgSystemGlassTheme) body #creation20#creation20#creation20 #ps-gallery[data-photo-mode="photo"] .ps-photo-root .ps-photo-controls .ps-photo-slider > span,
html:has(#sgSystemGlassTheme) body #creation20#creation20#creation20 #ps-gallery[data-photo-mode="photo"] .ps-photo-root .ps-photo-controls .ps-photo-slider > output,
html:has(#sgSystemGlassTheme) body #creation20#creation20#creation20 #ps-gallery[data-photo-mode="photo"] .ps-photo-root .ps-photo-controls .ps-photo-private {
  color:var(--ps-photo-ink,#232a36)!important;
}

/* This is the existing outlined reset button. Its previous transparent
   background received white text from the shared dark-gallery button rule. */
html:has(#sgSystemGlassTheme) body #creation20#creation20#creation20 #ps-gallery[data-photo-mode="photo"] .ps-photo-root .ps-photo-controls .ps-photo-buttons > button {
  color:var(--ps-photo-ink,#232a36)!important;
  background:linear-gradient(135deg,rgba(255,255,255,.38),rgba(255,255,255,.08)),var(--ps-photo-surface,#f6f4ef)!important;
}

/* Native loading/error text also sits on an opaque light photo pane. */
html:has(#sgSystemGlassTheme) body #creation20#creation20#creation20 #ps-gallery[data-photo-mode="photo"] .ps-photo-root .ps-photo-message {
  color:var(--ps-photo-ink,#232a36)!important;
  background:var(--ps-photo-surface,#f6f4ef)!important;
}

@media (forced-colors:active) {
  html:has(#sgSystemGlassTheme) body #creation20#creation20#creation20 #ps-gallery[data-photo-mode="photo"] .ps-photo-root .ps-photo-caption,
  html:has(#sgSystemGlassTheme) body #creation20#creation20#creation20 #ps-gallery[data-photo-mode="photo"] .ps-photo-root .ps-photo-controls .ps-photo-slider,
  html:has(#sgSystemGlassTheme) body #creation20#creation20#creation20 #ps-gallery[data-photo-mode="photo"] .ps-photo-root .ps-photo-controls .ps-photo-slider > span,
  html:has(#sgSystemGlassTheme) body #creation20#creation20#creation20 #ps-gallery[data-photo-mode="photo"] .ps-photo-root .ps-photo-controls .ps-photo-slider > output,
  html:has(#sgSystemGlassTheme) body #creation20#creation20#creation20 #ps-gallery[data-photo-mode="photo"] .ps-photo-root .ps-photo-controls .ps-photo-private,
  html:has(#sgSystemGlassTheme) body #creation20#creation20#creation20 #ps-gallery[data-photo-mode="photo"] .ps-photo-root .ps-photo-message,
  html:has(#sgSystemGlassTheme) body #creation20#creation20#creation20 #ps-gallery[data-photo-mode="photo"] .ps-photo-root .ps-photo-controls .ps-photo-buttons > button {
    color:CanvasText!important;
    background:Canvas!important;
    border-color:CanvasText!important;
  }
}
