/* NearNow Web mobile interaction pass — Social navigation, card editing,
   measured mobile shell geometry and stable circular avatars. */

/* Circular profile pictures use one crop contract across the app. Full profile/gallery
   media is intentionally excluded. */
.marker img,
.mini,
.radar-avatar-wrap img,
.radar-cluster-avatar,
.radar-history-avatar,
.chat-avatar img,
.chat-avatar-thumb img,
.chat-thread-avatar img,
.chat-message-avatar img,
.own-profile-avatar,
.social-row .chat-avatar img,
.tonight-contact img {
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:50% 50%!important;
  border-radius:50%!important;
  transform:none!important;
  transition:none!important;
}
.chat-avatar,.chat-avatar-thumb,.chat-thread-avatar,.chat-message-avatar,
.radar-cluster-avatar,.radar-history-avatar {
  overflow:hidden!important;
  border-radius:50%!important;
}

/* Desktop/tablet gets a real free Social action. Radar+ history remains a separate
   premium action and no longer masquerades as the Social row. */
.radar-social-card .radar-social-trigger{margin-top:12px}
.radar-social-card .radar-history-trigger{margin-top:8px}
.social-back-profile{display:none}
#screen-profile.profile-social-focus .profile-page-head,
#screen-profile.profile-social-focus #viewedProfileOverviewCard,
#screen-profile.profile-social-focus #profileOverviewCard,
#screen-profile.profile-social-focus #profileEditorCard,
#screen-profile.profile-social-focus #sensualProfileEditorCard,
#screen-profile.profile-social-focus .age-card,
#screen-profile.profile-social-focus .profile-summary{display:none!important}
#screen-profile.profile-social-focus .social-card{display:block!important}
#screen-profile.profile-social-focus:has(#profileOverviewCard:not(.hidden)) .social-card{display:block!important}
#screen-profile.profile-social-focus .social-back-profile{display:inline-flex}

/* Completed profiles use one editing concept on desktop and mobile: click the
   profile header/card you want to change and edit only that section. */
#screen-profile:not(.viewing-other-profile) .own-profile-section-editable,
#screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-identity[data-profile-edit-section]{
  cursor:pointer!important;
  -webkit-tap-highlight-color:transparent;
  transition:border-color .16s ease,background .16s ease,transform .12s ease,box-shadow .16s ease;
}
#screen-profile:not(.viewing-other-profile) .own-profile-section-editable:hover,
#screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-identity[data-profile-edit-section]:hover{
  border-color:rgba(81,139,231,.52)!important;
  box-shadow:0 0 0 2px rgba(47,111,237,.08)!important;
}
.sensual-mode #screen-profile:not(.viewing-other-profile) .own-profile-section-editable:hover,
.sensual-mode #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-identity[data-profile-edit-section]:hover{
  border-color:rgba(221,70,132,.50)!important;
  box-shadow:0 0 0 2px rgba(221,70,132,.08)!important;
}
#screen-profile:not(.viewing-other-profile) .own-profile-section-editable:active,
#screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-identity[data-profile-edit-section]:active{
  transform:scale(.995);
}
#screen-profile:not(.viewing-other-profile) .own-profile-section-head{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;
}
#screen-profile:not(.viewing-other-profile) .own-profile-section-head h4{margin:0!important}
#screen-profile:not(.viewing-other-profile) .own-profile-edit-cue{
  display:inline-flex!important;align-items:center!important;flex:none;
  color:#65a3ff!important;font-size:10px!important;font-weight:850!important;white-space:nowrap!important;
}
.sensual-mode #screen-profile:not(.viewing-other-profile) .own-profile-edit-cue{color:#ff78ad!important}
#screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-identity[data-profile-edit-section]::after{
  content:"Bearbeiten ›";margin-left:auto;align-self:center;flex:none;color:#65a3ff;font-size:10px;font-weight:850;
}
.sensual-mode #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-identity[data-profile-edit-section]::after{color:#ff78ad}
#screen-profile:not(.viewing-other-profile) #ownProfileHero,
#screen-profile:not(.viewing-other-profile) #ownProfileAvatar{cursor:pointer!important}

/* The existing forms remain the single persistence path. A card click focuses the
   matching section on every web width instead of opening a separate desktop editor. */
#screen-profile .profile-editor[data-profile-edit-section-focus] .profile-editor-identity,
#screen-profile .profile-editor[data-profile-edit-section-focus] .profile-onboarding-banner{display:none!important}
#screen-profile .profile-editor[data-profile-edit-section-focus] .mobile-profile-edit-heading{
  display:flex!important;align-items:center!important;gap:10px!important;margin:0 0 12px!important;
}
#screen-profile .mobile-profile-edit-back{
  width:42px;height:42px;min-width:42px;border:1px solid rgba(91,132,202,.32);border-radius:13px;
  background:rgba(10,21,37,.90);color:#eef5ff;font-size:28px;line-height:1;cursor:pointer;
}
#screen-profile .mobile-profile-edit-heading small{display:block;color:#91a2b8;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}
#screen-profile .mobile-profile-edit-heading h3{margin:2px 0 0!important;font-size:21px!important;color:#f6f9ff!important}
#screen-profile .profile-editor[data-profile-edit-section-focus] .profile-form-section{display:none!important}
#screen-profile #profileEditorCard[data-profile-edit-section-focus="identity"] .profile-normal-basic,
#screen-profile #profileEditorCard[data-profile-edit-section-focus="about"] .profile-normal-basic,
#screen-profile #profileEditorCard[data-profile-edit-section-focus="looking"] .profile-normal-preferences,
#screen-profile #profileEditorCard[data-profile-edit-section-focus="interests"] .profile-normal-preferences,
#screen-profile #profileEditorCard[data-profile-edit-section-focus="search"] .profile-form-section[data-profile-editor-section="search"],
#screen-profile #profileEditorCard[data-profile-edit-section-focus="appearance"] .profile-form-section[data-profile-editor-section="appearance"]{display:block!important}
#screen-profile #profileEditorCard[data-profile-edit-section-focus="identity"] .profile-normal-basic .profile-fields>*:not([data-profile-editor-section="identity"]),
#screen-profile #profileEditorCard[data-profile-edit-section-focus="about"] .profile-normal-basic .profile-fields>*:not([data-profile-editor-section="about"]){display:none!important}
#screen-profile #profileEditorCard[data-profile-edit-section-focus="identity"] .profile-normal-basic>h4,
#screen-profile #profileEditorCard[data-profile-edit-section-focus="identity"] .profile-normal-basic>.sub,
#screen-profile #profileEditorCard[data-profile-edit-section-focus="about"] .profile-normal-basic>h4,
#screen-profile #profileEditorCard[data-profile-edit-section-focus="about"] .profile-normal-basic>.sub{display:none!important}
#screen-profile #profileEditorCard[data-profile-edit-section-focus="looking"] .profile-normal-preferences>*:not([data-profile-editor-section="looking"]),
#screen-profile #profileEditorCard[data-profile-edit-section-focus="interests"] .profile-normal-preferences>*:not(.profile-fields){display:none!important}
#screen-profile #profileEditorCard[data-profile-edit-section-focus="interests"] .profile-normal-preferences .profile-fields>*:not([data-profile-editor-section="interests"]),
#screen-profile #profileEditorCard[data-profile-edit-section-focus="looking"] .profile-normal-preferences .profile-fields{display:none!important}
#screen-profile #sensualProfileEditorCard[data-profile-edit-section-focus] .profile-form-section[data-profile-editor-section]{display:none!important}
#screen-profile #sensualProfileEditorCard[data-profile-edit-section-focus="identity"] .profile-form-section[data-profile-editor-section="identity"],
#screen-profile #sensualProfileEditorCard[data-profile-edit-section-focus="about"] .profile-form-section[data-profile-editor-section="about"],
#screen-profile #sensualProfileEditorCard[data-profile-edit-section-focus="looking"] .profile-form-section[data-profile-editor-section="looking"],
#screen-profile #sensualProfileEditorCard[data-profile-edit-section-focus="interests"] .profile-form-section[data-profile-editor-section="interests"],
#screen-profile #sensualProfileEditorCard[data-profile-edit-section-focus="boundaries"] .profile-form-section[data-profile-editor-section="boundaries"],
#screen-profile #sensualProfileEditorCard[data-profile-edit-section-focus="hard_boundaries"] .profile-form-section[data-profile-editor-section="hard_boundaries"]{display:block!important}
/* Back in the focused editor replaces the completed Sensual profile's second close button.
   The button remains available during first-time onboarding where it still has meaning. */
#screen-profile #sensualProfileEditorCard[data-profile-edit-section-focus] #sensualProfileCancel{display:none!important}

@media (max-width:860px){
  /* Radar > Social & Verlauf is now a functional Core destination. */
  #screen-radar .radar-social-card .radar-social-trigger{
    position:absolute!important;
    right:10px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    display:block!important;
    width:38px!important;
    min-width:38px!important;
    height:38px!important;
    min-height:38px!important;
    margin:0!important;
    padding:0!important;
    border-radius:12px!important;
    border:1px solid rgba(93,127,180,.26)!important;
    background:rgba(10,20,34,.84)!important;
    color:transparent!important;
    font-size:0!important;
    overflow:hidden!important;
  }
  #screen-radar .radar-social-card .radar-social-trigger::after{
    content:"›";
    position:absolute;inset:0;display:grid;place-items:center;
    color:#dbe8fb;font-size:28px;line-height:1;
  }
  #screen-radar .radar-social-card .radar-history-trigger{display:none!important}

  /* Focused Social view opened from Radar. */
  #screen-profile.profile-social-focus .profile-page-head,
  #screen-profile.profile-social-focus #viewedProfileOverviewCard,
  #screen-profile.profile-social-focus #profileOverviewCard,
  #screen-profile.profile-social-focus #profileEditorCard,
  #screen-profile.profile-social-focus #sensualProfileEditorCard,
  #screen-profile.profile-social-focus .age-card,
  #screen-profile.profile-social-focus .profile-summary{display:none!important}
  #screen-profile.profile-social-focus .placeholder-grid{display:grid!important;grid-template-columns:1fr!important;gap:0!important}
  #screen-profile.profile-social-focus .social-card{
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:15px!important;
    border-radius:18px!important;
  }
  #screen-profile.profile-social-focus .social-head{align-items:flex-start!important}
  #screen-profile.profile-social-focus .social-head-copy{display:grid;gap:5px;min-width:0}
  #screen-profile.profile-social-focus .social-back-profile{
    display:inline-flex!important;align-items:center;justify-content:flex-start;
    width:max-content;min-height:36px;padding:0 10px;margin:0 0 4px;
    border:1px solid rgba(87,126,191,.28);border-radius:11px;
    background:rgba(10,20,34,.82);color:#e9f1ff;font-weight:850;
  }
  #screen-profile.profile-social-focus .social-tabs{grid-template-columns:1fr 1fr!important}

  /* Focused section editor keeps the same card-click concept on every web width;
     only the sticky mobile action placement is width-specific. */
  #screen-profile .profile-editor[data-profile-edit-section-focus]{
    width:100%!important;max-width:none!important;margin:0!important;padding:14px!important;
  }
  #screen-profile .profile-editor[data-profile-edit-section-focus] .profile-actions{
    position:sticky;bottom:calc(var(--nn-mobile-nav,72px) + env(safe-area-inset-bottom) + 6px);z-index:5;
    margin-top:12px!important;padding:9px!important;border:1px solid rgba(74,117,185,.24)!important;border-radius:14px!important;
    background:rgba(7,14,25,.94)!important;backdrop-filter:blur(14px)!important;
  }
  #screen-profile .profile-editor[data-profile-edit-section-focus] .profile-save{min-height:46px!important}

  /* Chat geometry now follows the actual measured, possibly wrapped top bar. */
  #screen-chats .chat-shell{
    height:calc(100dvh - var(--nn-mobile-topbar,62px) - var(--nn-mobile-nav,72px) - env(safe-area-inset-bottom) - 8px)!important;
  }
}
