.pro-photo-switch{margin:12px 0;max-width:360px}.pro-photo-switch button{min-height:42px}.pro-media-badge{display:inline-flex;align-items:center;gap:4px;padding:5px 9px;border-radius:999px;background:#291224;color:#ff91ba;font-size:12px;font-weight:650;line-height:1}.pro-media-badge .icon{width:14px;height:14px}.private-media{position:relative}.private-media>.pro-media-badge{position:absolute;top:10px;left:10px;z-index:2}.pro-photo-edit-preview{position:relative;display:grid;place-items:center;max-height:42vh;background:#17121c;border-radius:16px;overflow:hidden;margin:16px 0}.pro-photo-edit-preview img{max-height:42vh;max-width:100%;object-fit:contain}.pro-photo-edit-preview>.pro-media-badge{position:absolute;left:10px;top:10px}#pro-photo-prompts-form label{display:grid;gap:8px;margin:18px 0}#pro-photo-prompts-form .pro-sound-toggle{display:flex}#pro-photo-prompts-form textarea{width:100%}#pro-photo-edit-form textarea{width:100%}#pro-photo-prompts-form details{margin:18px 0}.chat-photo-details>.pro-photo-switch{margin:8px 0}
.chat-media-item>.pro-media-badge{position:absolute;top:8px;left:8px;z-index:2;display:inline-flex;align-items:center;gap:4px;padding:5px 8px;color:#ff91ba;font-size:11px;line-height:1;white-space:nowrap;pointer-events:none}

.pro-photo-switch [data-pro-photo-engine="pro"]:is([data-pro-photo-context="chat"], [data-pro-photo-context="studio"]) {
  position: relative;
  overflow: visible;
}

.pro-photo-switch [data-pro-photo-engine="pro"]:is([data-pro-photo-context="chat"], [data-pro-photo-context="studio"])[aria-pressed="false"]:not(:disabled)::after,
.pro-photo-fireworks {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.pro-photo-switch [data-pro-photo-engine="pro"]:is([data-pro-photo-context="chat"], [data-pro-photo-context="studio"])[aria-pressed="false"]:not(:disabled)::after {
  content: "";
  box-shadow: 0 0 0 1px #ff759e91, 0 0 8px #ff386b55;
  opacity: .45;
}

.pro-photo-fireworks {
  box-shadow: 0 0 0 1px #ff638c58, 0 0 6px #ff386b30;
}

.pro-photo-burst {
  display: none;
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.pro-photo-burst:nth-child(1) { top: 0; left: 20%; --burst-angle: -108deg; --burst-delay: -.16s; }
.pro-photo-burst:nth-child(2) { top: 0; left: 76%; --burst-angle: -64deg; --burst-delay: -.98s; }
.pro-photo-burst:nth-child(3) { top: 59%; left: 0; --burst-angle: 186deg; --burst-delay: -1.77s; }
.pro-photo-burst:nth-child(4) { top: 44%; right: 0; --burst-angle: -12deg; --burst-delay: -2.63s; }
.pro-photo-burst:nth-child(5) { bottom: 0; left: 27%; --burst-angle: 115deg; --burst-delay: -3.47s; }
.pro-photo-burst:nth-child(6) { bottom: 0; left: 79%; --burst-angle: 64deg; --burst-delay: -4.34s; }

.pro-photo-burst i {
  position: absolute;
  top: -1px;
  left: 0;
  width: .25rem;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, #f93764, #ffd3df);
  box-shadow: 0 0 3px #ff537f;
  transform-origin: left center;
  transform: rotate(var(--ray-angle, 0deg)) translateX(var(--ray-distance, .33rem));
}

.pro-photo-burst i:first-child { width: .19rem; --ray-angle: -46deg; --ray-distance: .26rem; }
.pro-photo-burst i:last-child { width: .23rem; --ray-angle: 44deg; --ray-distance: .31rem; }

@media (prefers-reduced-motion: no-preference) {
  .pro-photo-switch [data-pro-photo-engine="pro"]:is([data-pro-photo-context="chat"], [data-pro-photo-context="studio"])[aria-pressed="false"]:not(:disabled)::after {
    animation: pro-photo-edge-glow 5.4s ease-in-out -.65s infinite;
  }

  .pro-photo-burst {
    display: block;
    animation: pro-photo-firework 5.4s ease-out var(--burst-delay) infinite;
  }
}

@keyframes pro-photo-edge-glow {
  0%, 44%, 100% { opacity: .34; }
  21% { opacity: .85; }
}

@keyframes pro-photo-firework {
  0% { opacity: 0; transform: rotate(var(--burst-angle)) scale(.14); }
  4% { opacity: .74; }
  9% { opacity: .58; }
  18%, 100% { opacity: 0; transform: rotate(var(--burst-angle)) scale(1.32); }
}
