/* NearNow Web v240 — MOBILE_BLACK_CANVAS.
   Mobile uses the same true-black app canvas as desktop. Warmth stays inside cards/modules/images;
   mode identity remains fixed: Connect = blue, Sensual = pink/magenta. */
@media (max-width: 860px) {
  html,
  body,
  body.sensual-mode,
  .app,
  .main {
    background:#000!important;
    background-color:#000!important;
  }

  /* The scroll canvas itself is black. Warm v239 treatments remain on actual content modules. */
  .content,
  .screen,
  .screen.active,
  #screen-radar,
  #screen-discover,
  #screen-chats,
  #screen-community,
  #screen-profile,
  #screen-tonight,
  #screen-settings {
    background:#000!important;
    background-color:#000!important;
  }

  .screen.active::after {
    display:none!important;
    content:none!important;
    background:none!important;
  }

  /* Screen wrappers must not repaint the black canvas with page-wide gradients. */
  #screen-community .community-page,
  #screen-discover .discover-page,
  #screen-chats .chat-shell,
  #screen-profile .mock-page,
  #screen-tonight .tonight-page,
  #screen-settings .settings-page {
    background-color:transparent!important;
  }

  /* Keep the warm, inviting module treatment from v239. These are intentionally NOT blacked out. */
  .card,
  .sidebox,
  .settings-group,
  .dialog-card,
  .meeting-card,
  .tonight-panel,
  .profile-editor,
  .profile-summary,
  .social-card,
  #screen-radar .radar-card,
  #screen-radar .radar-empty,
  #screen-radar .nn-empty-state,
  #screen-discover .discover-hero,
  #screen-discover .discover-filters,
  #screen-chats .chat-sidebar,
  #screen-chats .chat-thread,
  #screen-chats .chat-activity-panel,
  #screen-chats .chat-messages,
  #screen-community .community-toolbar,
  #screen-community .community-category-card,
  #screen-community .community-topic-trigger,
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-story-grid .own-profile-section,
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-media-row,
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .profile-story-gallery-card {
    /* Marker only: v239 remains authoritative for warm module backgrounds. */
    isolation:isolate;
  }
}
