/* Material-only override for existing product cards. No new containers. */
body.is-logged-in { --sp-rich-glass: rgba(249,247,255,.78); --sp-rich-edge: rgba(255,255,255,.72); --sp-rich-shadow: 0 1px 2px rgba(29,25,62,.06),0 6px 14px rgba(29,25,62,.10); }
html[data-theme="dark"] body.is-logged-in { --sp-rich-glass: rgba(28,27,48,.82); --sp-rich-edge: rgba(220,208,255,.28); --sp-rich-shadow: 0 1px 3px rgba(0,0,0,.14),0 6px 14px rgba(0,0,0,.2); }
html:root body.is-logged-in :is(
  .map-card,
  .desktop-activity, .friend-discovery, .vibe-map-idle,
  .friend-discovery-card, .friend-card, .attended-event-card,
  .live-map-event-panel, .live-event-card,
  .timeline-compose-card, .timeline-post, .timeline-post-menu,
  .timeline-map-event-group, .timeline-keep-map-marker,
  .profile-summary-card, .profile-menu-panel, .profile-social-panel,
  .profile-settings-panel:not(.profile-spots-panel), .profile-invite-detail-panel,
  .notification-panel, .comments-sheet, .location-picker-sheet, .spossity-voice-feedback, .spossity-voice-option,
  .sam-chat-panel, .vibe-chat-panel, .vibe-call-panel, .vibe-history-item,
  .home-text-history, .home-text-history-item,
  .host-event-preview, .host-event-audience-dialog,
  .host-event-team-invite-dialog, .host-event-category-panel,
  .host-event-media-panel, .host-map-preview-card,
  .live-watch-dialog, .event-studio-position-dialog, .event-live-chat,
  .avatar-order-dialog, .avatar-studio-panel, .avatar-privacy-card,
  .avatar-source-card, .avatar-upload-card,
  .avatar-studio-consent, .avatar-consent-dignity, .avatar-consent-choice,
  .avatar-room-personalizer, .avatar-order-notice,
  .notification-connect, .profile-invite-person, .host-team-member,
  .spot-created, .spot-detail-identity, .spot-post-card, .spot-post,
  .spot-form-dialog, .office-hours-room-choice, .host-studio-preview-choice
, .vibe-action
):not(.home-view *) {
 background: var(--sp-rich-glass) !important;
 border-color: transparent !important;
 box-shadow: var(--sp-rich-shadow),inset 0 0 0 1px var(--sp-rich-edge) !important;
 backdrop-filter: blur(18px) saturate(115%) !important;
 -webkit-backdrop-filter: blur(18px) saturate(115%) !important;
}
html:root body.is-logged-in :is(.spot-host-dialog > .host-event-preview,.spot-post-dialog .spot-post-card) { background: transparent !important; box-shadow:none !important; backdrop-filter:none !important; }
@media (prefers-reduced-transparency: reduce) {
 body.is-logged-in { --sp-rich-glass:#f7f5fc; }
 html[data-theme="dark"] body.is-logged-in { --sp-rich-glass:#242236; }
}

/* Public cards and independently implemented dialogs share the same material. */
html { --sp-rich-glass: rgba(249,247,255,.78); --sp-rich-edge: rgba(255,255,255,.72); --sp-rich-shadow: 0 1px 2px rgba(29,25,62,.06),0 6px 14px rgba(29,25,62,.10); }
html[data-theme="dark"] { --sp-rich-glass: rgba(28,27,48,.82); --sp-rich-edge: rgba(220,208,255,.28); --sp-rich-shadow: 0 1px 3px rgba(0,0,0,.14),0 6px 14px rgba(0,0,0,.2); }
html:root :is(dialog, .account-dialog, .account-consent-sheet, .account-age-sheet, .float-card, .glimpse-hanging-card, .landing-language-options),
html:root body.is-logged-in :is(.host-event-media-card, .office-hours-dialog, .spot-analytics-dialog, .spossity-account-delete-dialog, .sheet-dialog, .spot-host-dialog, .spot-post-dialog) {
 background: var(--sp-rich-glass) !important;
 border-color: transparent !important;
 box-shadow: var(--sp-rich-shadow),inset 0 0 0 1px var(--sp-rich-edge) !important;
 backdrop-filter: blur(18px) saturate(115%) !important;
 -webkit-backdrop-filter: blur(18px) saturate(115%) !important;
}
@media (prefers-reduced-transparency: reduce) {
 html, body.is-logged-in { --sp-rich-glass: #f7f5fc; }
 html[data-theme="dark"], html[data-theme="dark"] body.is-logged-in { --sp-rich-glass: #242236; }
}

/* Timeline retains its approved violet outline over the shared glass material. */
html:root body.is-logged-in .timeline-view .timeline-post.timeline-post {
 border: 1.5px solid var(--sp-color-violet, #7836ef) !important;
}
/* Media items sit directly on the media panel's glass: no second glass card behind them. */
html:root body.is-logged-in .host-event-media-panel .host-event-media-card { background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
/* The media panel floats over the live 3D room, which glass cannot blur cleanly: give it a solid surface. */
html:root body.is-logged-in section.host-event-media-panel.is-dashboard-media, html:not([data-theme="dark"]):root body.is-logged-in section.host-event-media-panel.is-dashboard-media { z-index: 1000; background: #f7f5fc !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-radius: 24px; }
html[data-theme="dark"]:root body.is-logged-in section.host-event-media-panel.is-dashboard-media { background: #242236 !important; }
