/* NearNow Web v242 — mobile Connect/Sensual profile parity + per-chat safety menu */
@media (max-width:860px){
  /* Connect and Sensual use one mobile profile layout. Mode changes color/content, never geometry. */
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard.connect-profile-story,
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard.sensual-profile-story{
    --nn242-card-radius:22px;
    --nn242-card-min:112px;
    --nn242-card-pad:18px 18px 18px 76px;
    --nn242-media-min:92px;
    --nn242-shadow:0 16px 38px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.045);
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard.connect-profile-story{
    --nn242-border:rgba(80,147,250,.30);
    --nn242-panel:rgba(8,17,31,.94);
    --nn242-icon-border:rgba(90,157,255,.38);
    --nn242-icon-bg:linear-gradient(180deg,rgba(34,83,159,.50),rgba(16,38,75,.74));
    --nn242-icon-fg:#d9e9ff;
    --nn242-edit-border:rgba(95,153,245,.34);
    --nn242-edit-bg:rgba(7,16,30,.76);
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard.sensual-profile-story{
    --nn242-border:rgba(233,93,151,.30);
    --nn242-panel:rgba(30,9,21,.94);
    --nn242-icon-border:rgba(240,101,160,.40);
    --nn242-icon-bg:linear-gradient(180deg,rgba(133,41,82,.58),rgba(67,21,45,.76));
    --nn242-icon-fg:#ffd7e8;
    --nn242-edit-border:rgba(238,99,158,.35);
    --nn242-edit-bg:rgba(55,14,35,.76);
  }

  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .profile-overview-body,
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-story-grid{
    gap:13px!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-story-grid .own-profile-section{
    min-height:var(--nn242-card-min)!important;
    padding:var(--nn242-card-pad)!important;
    border-radius:var(--nn242-card-radius)!important;
    border:1px solid var(--nn242-border)!important;
    box-shadow:var(--nn242-shadow)!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-section-head{
    min-height:42px!important;
    align-items:flex-start!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-section-head::before{
    width:42px!important;height:42px!important;border-radius:14px!important;
    border:1px solid var(--nn242-icon-border)!important;
    background:var(--nn242-icon-bg)!important;color:var(--nn242-icon-fg)!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-edit-cue{
    width:38px!important;height:38px!important;flex:0 0 38px!important;border-radius:50%!important;
    border:1px solid var(--nn242-edit-border)!important;background:var(--nn242-edit-bg)!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-media-row{
    min-height:var(--nn242-media-min)!important;
    padding:18px 48px 18px 72px!important;
    border-radius:var(--nn242-card-radius)!important;
    border:1px solid var(--nn242-border)!important;
    box-shadow:var(--nn242-shadow)!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-restricted-section>.own-profile-section{
    margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;
  }

  /* "Ich suche" exists exactly once: as its editable profile card. */
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-quick-tags{
    display:none!important;
  }

  /* Every real conversation exposes the same compact three-dot safety menu. */
  #screen-chats .chat-contact-signals{
    display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;
  }
  #screen-chats .chat-list-menu-wrap{
    position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
    z-index:12!important;
  }
  #screen-chats .chat-list-menu-button{
    width:34px!important;min-width:34px!important;height:34px!important;padding:0!important;
    display:grid!important;place-items:center!important;
    border:1px solid rgba(111,128,186,.28)!important;border-radius:11px!important;
    background:rgba(8,14,27,.86)!important;color:#c7d3ef!important;
    font-size:22px!important;line-height:1!important;font-weight:800!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 6px 16px rgba(0,0,0,.18)!important;
    pointer-events:auto!important;
  }
  .sensual-mode #screen-chats .chat-list-menu-button{
    border-color:rgba(220,82,145,.30)!important;background:rgba(43,10,29,.88)!important;color:#ffd5e6!important;
  }
  #screen-chats .chat-list-menu-button:focus-visible{
    outline:2px solid #6d96ff!important;outline-offset:2px!important;
  }
  .sensual-mode #screen-chats .chat-list-menu-button:focus-visible{outline-color:#f263a4!important}
  #screen-chats .chat-list-menu-panel{
    position:absolute!important;right:0!important;top:calc(100% + 7px)!important;z-index:260!important;
    width:176px!important;padding:6px!important;display:grid!important;gap:3px!important;
    border:1px solid rgba(108,126,188,.32)!important;border-radius:14px!important;
    background:rgba(7,12,23,.985)!important;
    box-shadow:0 18px 44px rgba(0,0,0,.52)!important;backdrop-filter:blur(18px)!important;
  }
  .sensual-mode #screen-chats .chat-list-menu-panel{
    border-color:rgba(213,75,143,.32)!important;background:rgba(28,7,20,.988)!important;
  }
  #screen-chats .chat-list-menu-panel[hidden]{display:none!important}
  #screen-chats .chat-list-menu-panel button{
    width:100%!important;min-height:42px!important;padding:8px 11px!important;
    border:0!important;border-radius:10px!important;background:transparent!important;
    color:#edf2ff!important;text-align:left!important;font-size:12px!important;font-weight:800!important;
  }
  #screen-chats .chat-list-menu-panel button:hover,
  #screen-chats .chat-list-menu-panel button:focus-visible{
    background:rgba(71,91,151,.22)!important;outline:none!important;
  }
  .sensual-mode #screen-chats .chat-list-menu-panel button:hover,
  .sensual-mode #screen-chats .chat-list-menu-panel button:focus-visible{background:rgba(143,43,91,.24)!important}
  #screen-chats .chat-list-menu-panel button.danger{color:#ff9eb9!important}
  #screen-chats .chat-contact-row.chat-list-menu-open{z-index:40!important}
  #screen-chats .chat-contact-side{min-width:78px!important}

  /* Harden the existing detail three-dot menu so it always receives clicks and visibly opens. */
  #screen-chats .chat-more-wrap{z-index:150!important;pointer-events:auto!important}
  #screen-chats #chatMoreBtn{pointer-events:auto!important}
  #screen-chats #chatMoreMenu:not([hidden]){display:grid!important;pointer-events:auto!important;z-index:300!important}

  @media (max-width:560px){
    #screen-chats .chat-contact.chat-contact-compact{
      grid-template-columns:50px minmax(0,1fr) 82px!important;
    }
    #screen-chats .chat-contact-side{min-width:82px!important}
    #screen-chats .chat-list-menu-panel{
      position:fixed!important;left:14px!important;right:14px!important;top:auto!important;
      bottom:calc(var(--nn-mobile-nav,70px) + env(safe-area-inset-bottom) + 10px)!important;
      width:auto!important;
    }
  }
}
