/* NearNow Web v216 — compact chat density + current desktop profile target */
@media (min-width:861px){
  #screen-chats .chat-thread-head{
    min-height:82px!important;padding:9px 14px!important;gap:10px!important;
    grid-template-columns:minmax(190px,1fr) auto!important;
  }
  #screen-chats .chat-thread-copy{grid-template-columns:54px minmax(0,1fr)!important;gap:10px!important}
  #screen-chats .chat-thread-avatar{width:54px!important;height:54px!important;box-shadow:0 5px 16px rgba(0,0,0,.24)!important}
  #screen-chats .chat-thread-avatar .chat-avatar-presence{width:12px!important;height:12px!important;right:1px!important;bottom:1px!important;border-width:2px!important}
  #screen-chats .chat-thread-copy h3{font-size:19px!important}
  #screen-chats .chat-thread-meta{font-size:11px!important}
  #screen-chats .chat-head-actions{grid-template-columns:repeat(4,50px)!important;gap:6px!important}
  #screen-chats .chat-action-lounge,#screen-chats .chat-more-wrap{width:50px!important;min-width:50px!important;height:50px!important}
  #screen-chats .chat-action-lounge{height:50px!important;padding:4px!important;border-radius:14px!important;gap:1px!important;font-size:8px!important;line-height:1!important;font-weight:760!important}
  #screen-chats .chat-action-lounge svg{width:19px!important;height:19px!important;filter:drop-shadow(0 0 4px rgba(var(--action-rgb),.30))!important}
  #screen-chats .chat-action-lounge span:not(.sr-only){display:block!important;white-space:nowrap!important}
  #screen-chats .chat-more-menu{right:0!important;top:calc(100% + 6px)!important;width:236px!important;padding:6px!important;border-radius:14px!important;z-index:250!important}
  #screen-chats .chat-more-action{min-height:46px!important;padding:7px 8px!important;grid-template-columns:30px minmax(0,1fr)!important}
  #screen-chats .chat-more-action svg{width:19px!important;height:19px!important}
  #screen-chats .chat-more-action b{font-size:11px!important}#screen-chats .chat-more-action small{font-size:9px!important}
  #screen-chats .meeting-chat-card{margin:5px 10px 0!important;border-radius:12px!important;padding:0!important;overflow:hidden!important}
  #screen-chats .meeting-chat-card .meeting-card-collapsed{min-height:34px!important;padding:6px 9px!important;display:flex!important;align-items:center!important;gap:8px!important;cursor:pointer!important}
  #screen-chats .meeting-chat-card .meeting-card-collapsed b{font-size:11px!important}.meeting-chat-card .meeting-card-collapsed small{font-size:9px!important;color:var(--muted)}
  #screen-chats .meeting-chat-card .meeting-card-dismiss{margin-left:auto!important;width:26px!important;height:26px!important;min-width:26px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#94a1bd!important;padding:0!important;font-size:17px!important}
  #screen-chats .meeting-chat-card .meeting-card-detail{padding:9px 11px!important;display:grid!important;gap:5px!important}
  #screen-chats .meeting-chat-card .meeting-card-actions{display:flex!important;gap:6px!important;flex-wrap:wrap!important;margin-top:4px!important}
  #screen-chats .meeting-chat-card .meeting-card-actions button{min-height:32px!important;padding:5px 9px!important;border-radius:9px!important;font-size:10px!important}
  #screen-chats .chat-messages{gap:7px!important;padding:10px 16px 12px!important}
  #screen-chats .message-row{gap:7px!important}
  #screen-chats .chat-message-avatar .chat-avatar{width:34px!important;height:34px!important}
  #screen-chats .bubble{max-width:min(70%,760px)!important;padding:7px 10px!important;border-radius:14px 14px 14px 4px!important;font-size:13px!important;line-height:1.28!important;box-shadow:0 4px 14px rgba(0,0,0,.13)!important}
  #screen-chats .message-row.own .bubble{border-radius:14px 14px 4px 14px!important}
  #screen-chats .bubble-meta{margin-top:2px!important;font-size:9px!important;gap:4px!important}
  #screen-chats .message-actions{margin-top:2px!important}

  /* Current own-profile target: one large, fully visible image without banner chrome or text overlay. */
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard.profile-story-own{width:min(100%,1080px)!important;max-width:1080px!important;margin:0 auto!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-hero-frame{width:max-content!important;max-width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:auto!important;margin:0 auto 18px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;line-height:0!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-hero{display:block!important;width:min(52vw,720px)!important;height:auto!important;max-width:100%!important;max-height:min(70vh,760px)!important;object-fit:contain!important;object-position:center!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-hero-edge{position:absolute!important;inset:0!important;pointer-events:none!important;border-radius:0!important;box-shadow:none!important;background:linear-gradient(90deg,#0a0c11 0%,rgba(10,12,17,.56) 2.5%,rgba(10,12,17,.12) 8%,transparent 15%,transparent 85%,rgba(10,12,17,.12) 92%,rgba(10,12,17,.56) 97.5%,#0a0c11 100%),linear-gradient(180deg,#0a0c11 0%,rgba(10,12,17,.40) 2.5%,rgba(10,12,17,.08) 8%,transparent 15%,transparent 85%,rgba(10,12,17,.08) 92%,rgba(10,12,17,.40) 97.5%,#0a0c11 100%)!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-hero-strip{display:none!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .profile-story-own-head{width:min(100%,980px)!important;margin:0 auto 14px!important;align-items:flex-end!important;gap:16px!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-avatar{display:none!important}
  #screen-profile:not(.viewing-other-profile) #ownProfileModeLabel{font-size:11px!important;letter-spacing:.11em!important}
  #screen-profile:not(.viewing-other-profile) #ownProfileName{font-size:31px!important;margin:3px 0!important}
  #screen-profile:not(.viewing-other-profile) #ownProfileMeta{font-size:12px!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .profile-story-own-actions{display:flex!important;justify-content:flex-end!important;gap:6px!important;flex-wrap:wrap!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .profile-story-own-actions .pill{min-height:36px!important;padding:0 11px!important;border-radius:10px!important;font-size:11px!important;font-weight:760!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .profile-overview-body{width:min(100%,980px)!important;margin:0 auto!important}
}

@media (max-width:860px){
  #screen-chats .chat-thread-head{grid-template-areas:"back identity actions"!important;grid-template-columns:auto minmax(0,1fr) auto!important;gap:6px!important;padding:5px 4px!important}
  #screen-chats .chat-head-actions{grid-area:actions!important;grid-template-columns:repeat(4,36px)!important;gap:3px!important;width:auto!important}
  #screen-chats .chat-action-lounge,#screen-chats .chat-more-wrap{width:36px!important;min-width:36px!important;height:38px!important}
  #screen-chats .chat-action-lounge{height:38px!important;padding:2px!important;border-radius:11px!important;font-size:0!important;gap:0!important}
  #screen-chats .chat-action-lounge svg{width:18px!important;height:18px!important}
  #screen-chats .chat-action-lounge span:not(.sr-only){display:none!important}
  #screen-chats .chat-mobile-activity-toggle{height:38px!important;min-width:58px!important}
  #screen-chats .chat-thread-copy{grid-template-columns:40px minmax(0,1fr)!important;gap:6px!important}
  #screen-chats .chat-thread-avatar{width:40px!important;height:40px!important}
  #screen-chats .chat-messages{gap:6px!important;padding:8px 7px 10px!important}
  #screen-chats .bubble{padding:6px 9px!important;font-size:13px!important;line-height:1.26!important;border-radius:13px 13px 13px 4px!important}
  #screen-chats .message-row.own .bubble{border-radius:13px 13px 4px 13px!important}
  #screen-chats .bubble-meta{margin-top:2px!important;font-size:8.5px!important}
  #screen-chats .meeting-chat-card{margin:4px 5px 0!important;border-radius:11px!important}
}
