/* Dappled branch shadows live behind interface content, never in photo artwork. */
#top :is(.collection-proof, .pack-stage, .workspace-stage, .dropzone,
  .repeat-finish, .pack-empty, .auto-layout-section, .brand-section,
  .saved-looks-section, .text-studio-entry, .quality-section,
  .review-photo, .review-global, .feedback-card, .install-status, .install-steps,
  .pip-help-dialog, .pip-help-header, .install-dialog, .text-studio-dialog,
  .cutout-brush, .look-dialog, #quality-dialog, #preview-dialog,
  #tour-guide.collection-walkthrough, #music-prompt, #music-volume-panel) {
  background-image: url('./leaf-shadows.svg');
  background-position: right top;
  background-size: min(100%, 640px) auto;
  background-repeat: no-repeat;
}
#top #photos-stage.has-photos { background-image: none; }
#top .pack-gift {
  background-image: url('./leaf-shadows.svg'), linear-gradient(120deg,#f1ecd9,#fcf9ee);
  background-position: right top, center;
  background-size: 460px auto, cover;
  background-repeat: no-repeat;
}
#top .pip-dock:not(.pip-in-tour):not(.pip-welcoming) .pip-bubble,
#top .pip-in-tour .pip-widget,
#top #pip-welcome-slot .pip-widget {
  background-image: url('./leaf-shadows.svg');
  background-position: right top;
  background-size: 420px auto;
  background-repeat: no-repeat;
}
/* Preserve the solid backing beneath transparent cutouts and editing canvases. */
#top .large-preview-wrap { background-color: #f3f0e8; }
@media (forced-colors: active) {
  #top :is(.collection-proof, .pack-stage, .workspace-stage, .dropzone,
    .repeat-finish, .pack-empty, .auto-layout-section, .brand-section,
    .saved-looks-section, .text-studio-entry, .quality-section,
    .review-photo, .review-global, .feedback-card, .install-status, .install-steps,
    .pip-help-dialog, .pip-help-header, .install-dialog, .text-studio-dialog,
    .cutout-brush, .look-dialog, #quality-dialog, #preview-dialog,
    #tour-guide.collection-walkthrough, #music-prompt, #music-volume-panel,
    .pack-gift, .pip-bubble, .pip-widget) { background-image: none; }
}
