/* Shared web light-mode card material. Keep geometry, media and controls local.
 * Explicit surfaces avoid turning cardless sections, backdrops or scene canvases
 * into cards. Layering backgrounds leaves text and existing pseudo-elements sharp.
 */
html:not([data-theme="dark"]) {
  --sp-card-mint-haze: radial-gradient(ellipse at 32% 22%, rgba(137,221,194,.24), rgba(169,231,212,.16) 62%, rgba(229,249,242,.12));
  --sp-card-light-base: linear-gradient(145deg, #f7faff 0%, #edf4ff 42%, #e3eeff 100%);
  --sp-card-light-material: var(--sp-card-mint-haze), var(--sp-card-light-base);
  --sp-card-light-shadow: inset 0 1px 1px rgba(255,255,255,.55), inset 0 -1px 1px rgba(255,255,255,.35), 0 16px 30px rgba(40,60,100,.12);
}

html:not([data-theme="dark"]) 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,
  .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,
  .spot-created, .spot-detail-identity, .spot-post-card, .spot-post,
  .spot-form-dialog, .office-hours-room-choice, .host-studio-preview-choice
):not(.home-view *),
html:not([data-theme="dark"]) :is(.account-dialog, .account-consent-sheet, .account-age-sheet) {
  background: var(--sp-card-light-material) !important;
  box-shadow: var(--sp-card-light-shadow) !important;
}

/* These are form contents, not additional cards inside the dialog. */
html:not([data-theme="dark"]) body.is-logged-in :is(
  .spot-host-dialog > .host-event-preview,
  .spot-post-dialog .spot-post-card
) {
  background: transparent !important;
  box-shadow: none !important;
}
