/* NearNow Web v180 — MOBILE_PROFILE_VISUAL_MATCH.
   Mobile-only visual layer for the own Profile tab. Functionality, DOM order, ids,
   profile editing/media/settings/social behavior, API contracts and desktop layout remain unchanged. */
@media (max-width: 860px) {
  #screen-profile:not(.viewing-other-profile){
    position:relative;
    isolation:isolate;
    --profile-mobile-accent:#2f82ff;
    --profile-mobile-accent-rgb:47,130,255;
  }
  .sensual-mode #screen-profile:not(.viewing-other-profile){
    --profile-mobile-accent:#d43d7a;
    --profile-mobile-accent-rgb:212,61,122;
  }
  #screen-profile:not(.viewing-other-profile)::before{
    content:"";
    position:absolute;
    z-index:-1;
    inset:-105px -20px auto;
    height:680px;
    pointer-events:none;
    background:
      radial-gradient(circle at 84% 5%,rgba(var(--profile-mobile-accent-rgb),.18),transparent 35%),
      radial-gradient(circle at 8% 44%,rgba(27,77,171,.10),transparent 39%);
    filter:blur(6px);
  }
  .sensual-mode #screen-profile:not(.viewing-other-profile)::before{
    background:
      radial-gradient(circle at 84% 5%,rgba(var(--profile-mobile-accent-rgb),.19),transparent 35%),
      radial-gradient(circle at 8% 44%,rgba(111,34,127,.10),transparent 39%);
  }

  #screen-profile:not(.viewing-other-profile) .mock-page{
    max-width:none!important;
    width:100%!important;
    margin:0!important;
    padding:0 0 8px!important;
  }
  #screen-profile:not(.viewing-other-profile) .placeholder-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    width:100%!important;
  }

  /* Page heading is used while editing/incomplete; complete overview keeps the existing hidden rule. */
  #screen-profile:not(.viewing-other-profile) .profile-page-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:0 0 12px!important;
    padding:13px 14px!important;
    border:1px solid rgba(67,126,217,.30)!important;
    border-radius:18px!important;
    background:
      radial-gradient(circle at 96% 0%,rgba(var(--profile-mobile-accent-rgb),.16),transparent 34%),
      linear-gradient(180deg,rgba(10,22,39,.96),rgba(7,15,28,.985))!important;
    box-shadow:0 12px 28px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.025)!important;
  }
  .sensual-mode #screen-profile:not(.viewing-other-profile) .profile-page-head{
    border-color:rgba(178,52,104,.31)!important;
    background:
      radial-gradient(circle at 96% 0%,rgba(var(--profile-mobile-accent-rgb),.16),transparent 34%),
      linear-gradient(180deg,rgba(35,12,27,.96),rgba(17,8,17,.985))!important;
  }
  #screen-profile:not(.viewing-other-profile) .profile-page-title{
    margin:0!important;
    color:#f7f9ff!important;
    font-size:clamp(25px,7vw,31px)!important;
    line-height:1!important;
    font-weight:950!important;
    letter-spacing:-.035em!important;
  }
  #screen-profile:not(.viewing-other-profile) .profile-settings-entry{
    min-height:42px!important;
    padding:0 12px!important;
    gap:7px!important;
    border:1px solid rgba(82,132,217,.36)!important;
    border-radius:13px!important;
    background:linear-gradient(180deg,rgba(20,40,74,.58),rgba(10,23,45,.64))!important;
    color:#e9f1ff!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important;
  }
  #screen-profile:not(.viewing-other-profile) .profile-settings-entry svg{width:18px!important;height:18px!important;}
  #screen-profile:not(.viewing-other-profile) .profile-settings-entry span{font-size:11px!important;font-weight:850!important;}

  /* Completed own profile: premium story card using the real/original profile media. */
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard.profile-story-own{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-hero-frame{
    position:relative!important;
    width:100%!important;
    max-width:none!important;
    height:min(58dvh,520px)!important;
    min-height:330px!important;
    margin:0 0 9px!important;
    overflow:hidden!important;
    border:1px solid rgba(var(--profile-mobile-accent-rgb),.46)!important;
    border-radius:22px!important;
    background:
      radial-gradient(circle at 50% 18%,rgba(var(--profile-mobile-accent-rgb),.11),transparent 35%),
      #07101d!important;
    box-shadow:0 18px 42px rgba(0,0,0,.30),0 0 30px rgba(var(--profile-mobile-accent-rgb),.08),inset 0 1px 0 rgba(255,255,255,.025)!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-hero{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:contain!important;
    object-position:center center!important;
    background:#07101d!important;
    border:0!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-hero-edge{
    border-radius:inherit!important;
    background:
      linear-gradient(180deg,rgba(4,8,15,.01) 0%,transparent 57%,rgba(4,8,15,.20) 78%,rgba(4,8,15,.65) 100%),
      linear-gradient(90deg,rgba(4,8,15,.30),transparent 12%,transparent 88%,rgba(4,8,15,.30))!important;
    box-shadow:inset 0 0 44px rgba(5,9,16,.12)!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-hero-strip{
    max-width:100%!important;
    margin:0 0 12px!important;
    padding:2px 1px 3px!important;
    gap:7px!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-hero-thumb,
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-hero-more{
    flex:0 0 62px!important;
    height:54px!important;
    border-radius:11px!important;
    border-color:rgba(99,133,187,.32)!important;
    background:#09121f!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-hero-thumb.active{
    border-color:rgba(var(--profile-mobile-accent-rgb),.9)!important;
    box-shadow:0 0 0 1px rgba(var(--profile-mobile-accent-rgb),.22),0 7px 18px rgba(var(--profile-mobile-accent-rgb),.12)!important;
  }

  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .profile-story-own-head{
    display:grid!important;
    grid-template-columns:1fr!important;
    align-items:stretch!important;
    gap:10px!important;
    margin:0 0 12px!important;
    padding:15px!important;
    border:1px solid rgba(67,126,217,.31)!important;
    border-radius:19px!important;
    background:
      radial-gradient(circle at 100% 0%,rgba(var(--profile-mobile-accent-rgb),.13),transparent 35%),
      linear-gradient(180deg,rgba(10,21,38,.97),rgba(7,15,27,.99))!important;
    box-shadow:0 12px 28px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.02)!important;
  }
  .sensual-mode #screen-profile:not(.viewing-other-profile) #profileOverviewCard .profile-story-own-head{
    border-color:rgba(178,52,104,.31)!important;
    background:
      radial-gradient(circle at 100% 0%,rgba(var(--profile-mobile-accent-rgb),.14),transparent 35%),
      linear-gradient(180deg,rgba(34,11,26,.97),rgba(17,8,16,.99))!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-identity{
    display:block!important;
    min-width:0!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-avatar{display:none!important;}
  #screen-profile:not(.viewing-other-profile) #ownProfileModeLabel{
    margin-bottom:4px!important;
    color:rgb(var(--profile-mobile-accent-rgb))!important;
    font-size:10px!important;
    line-height:1.15!important;
    font-weight:950!important;
    letter-spacing:.11em!important;
  }
  #screen-profile:not(.viewing-other-profile) #ownProfileName{
    margin:0 0 4px!important;
    color:#f8faff!important;
    font-size:clamp(27px,7.4vw,34px)!important;
    line-height:1.04!important;
    font-weight:950!important;
    letter-spacing:-.035em!important;
  }
  #screen-profile:not(.viewing-other-profile) #ownProfileMeta{
    color:#9ca9bd!important;
    font-size:11px!important;
    line-height:1.35!important;
  }

  /* Same five actions, clearer primary/secondary hierarchy. */
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .profile-story-own-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
    margin:0!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .profile-story-own-actions .pill{
    width:100%!important;
    min-width:0!important;
    min-height:46px!important;
    margin:0!important;
    padding:0 9px!important;
    border:1px solid rgba(89,127,188,.32)!important;
    border-radius:13px!important;
    background:linear-gradient(180deg,rgba(16,29,49,.96),rgba(9,18,32,.99))!important;
    color:#eaf1fb!important;
    font-size:clamp(10.5px,2.9vw,12px)!important;
    line-height:1.12!important;
    font-weight:850!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard #profileEditBtn{
    grid-column:1/-1!important;
    border-color:rgba(100,162,255,.60)!important;
    background:linear-gradient(180deg,#3484ff,#286fe3)!important;
    color:#fff!important;
    font-size:14px!important;
    box-shadow:0 8px 20px rgba(31,103,225,.25),0 0 18px rgba(var(--profile-mobile-accent-rgb),.10),inset 0 1px 0 rgba(255,255,255,.16)!important;
  }
  .sensual-mode #screen-profile:not(.viewing-other-profile) #profileOverviewCard #profileEditBtn{
    border-color:rgba(238,96,153,.56)!important;
    background:linear-gradient(180deg,#cf437d,#a92c60)!important;
    box-shadow:0 8px 20px rgba(166,37,89,.24),0 0 18px rgba(var(--profile-mobile-accent-rgb),.10),inset 0 1px 0 rgba(255,255,255,.13)!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard #profileInviteBtn{grid-column:1/-1!important;}

  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .profile-overview-body{
    display:grid!important;
    gap:11px!important;
    margin:0!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-quick-tags{
    display:flex!important;
    gap:6px!important;
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    padding:1px 1px 2px!important;
    scrollbar-width:none!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-quick-tags::-webkit-scrollbar{display:none!important;}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .profile-story-chip,
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-chip{
    flex:0 0 auto!important;
    border:1px solid rgba(var(--profile-mobile-accent-rgb),.30)!important;
    border-radius:999px!important;
    background:rgba(var(--profile-mobile-accent-rgb),.07)!important;
    color:#eaf2ff!important;
    padding:7px 10px!important;
    font-size:11px!important;
    font-weight:700!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-story-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:9px!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-story-grid .own-profile-section{
    grid-column:auto!important;
    margin:0!important;
    padding:14px!important;
    border:1px solid rgba(76,120,190,.27)!important;
    border-radius:17px!important;
    background:
      radial-gradient(circle at 100% 0%,rgba(var(--profile-mobile-accent-rgb),.055),transparent 35%),
      linear-gradient(180deg,rgba(11,22,38,.95),rgba(7,15,27,.985))!important;
    box-shadow:0 9px 22px rgba(0,0,0,.15),inset 0 1px 0 rgba(255,255,255,.018)!important;
  }
  .sensual-mode #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-story-grid .own-profile-section{
    border-color:rgba(163,52,98,.27)!important;
    background:
      radial-gradient(circle at 100% 0%,rgba(var(--profile-mobile-accent-rgb),.06),transparent 35%),
      linear-gradient(180deg,rgba(30,11,24,.95),rgba(15,8,15,.985))!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-section h4{
    margin:0 0 7px!important;
    color:#f2f6fc!important;
    font-size:13px!important;
    line-height:1.2!important;
    font-weight:900!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-copy{
    color:#cbd5e3!important;
    font-size:12px!important;
    line-height:1.55!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-chips{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:6px!important;
  }

  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .profile-story-gallery-manager{
    display:grid!important;
    gap:8px!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-media-row{
    position:relative!important;
    display:grid!important;
    gap:3px!important;
    width:100%!important;
    min-height:64px!important;
    padding:13px 40px 13px 14px!important;
    border:1px solid rgba(83,126,194,.28)!important;
    border-radius:15px!important;
    background:linear-gradient(180deg,rgba(12,24,42,.95),rgba(8,16,29,.985))!important;
    color:#f1f5fb!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.02)!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-media-row::after{
    content:"›";
    position:absolute;
    right:14px;
    top:50%;
    transform:translateY(-50%);
    color:rgb(var(--profile-mobile-accent-rgb));
    font-size:24px;
    font-weight:500;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-media-row b{font-size:13px!important;font-weight:900!important;}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-media-row>span{font-size:10.5px!important;color:#8796ab!important;line-height:1.35!important;}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-public-media-preview{margin-top:8px!important;}

  /* Profile editor — same fields and logic, visually aligned with Radar/Discover/Community. */
  #screen-profile:not(.viewing-other-profile) #profileEditorCard,
  #screen-profile:not(.viewing-other-profile) #sensualProfileEditorCard{
    padding:14px!important;
    border:1px solid rgba(70,125,211,.34)!important;
    border-radius:21px!important;
    background:
      radial-gradient(circle at 100% 0%,rgba(var(--profile-mobile-accent-rgb),.10),transparent 30%),
      linear-gradient(180deg,rgba(10,21,37,.97),rgba(7,14,25,.995))!important;
    box-shadow:0 14px 32px rgba(0,0,0,.21),inset 0 1px 0 rgba(255,255,255,.02)!important;
  }
  .sensual-mode #screen-profile:not(.viewing-other-profile) #profileEditorCard,
  .sensual-mode #screen-profile:not(.viewing-other-profile) #sensualProfileEditorCard{
    border-color:rgba(173,54,103,.34)!important;
    background:
      radial-gradient(circle at 100% 0%,rgba(var(--profile-mobile-accent-rgb),.11),transparent 30%),
      linear-gradient(180deg,rgba(31,11,24,.97),rgba(15,8,15,.995))!important;
  }
  #screen-profile:not(.viewing-other-profile) .profile-editor-identity{
    display:grid!important;
    grid-template-columns:68px minmax(0,1fr)!important;
    gap:11px!important;
    align-items:center!important;
    margin:0 0 12px!important;
    padding:12px!important;
    border:1px solid rgba(81,126,196,.24)!important;
    border-radius:16px!important;
    background:rgba(7,16,29,.70)!important;
  }
  #screen-profile:not(.viewing-other-profile) .profile-editor-identity .editor-avatar{
    width:68px!important;
    height:68px!important;
    flex-basis:68px!important;
    border:1px solid rgba(var(--profile-mobile-accent-rgb),.45)!important;
    box-shadow:0 8px 20px rgba(0,0,0,.25),0 0 18px rgba(var(--profile-mobile-accent-rgb),.08)!important;
  }
  #screen-profile:not(.viewing-other-profile) .profile-editor-identity-copy h3{
    margin:0 0 3px!important;
    color:#f7f9ff!important;
    font-size:19px!important;
    font-weight:950!important;
    letter-spacing:-.02em!important;
  }
  #screen-profile:not(.viewing-other-profile) .profile-editor-identity-copy .sub{
    color:#8f9db2!important;
    font-size:10px!important;
    line-height:1.35!important;
  }
  #screen-profile:not(.viewing-other-profile) .profile-photo-open{
    width:100%!important;
    min-height:38px!important;
    margin-top:7px!important;
    padding:0 9px!important;
    border:1px solid rgba(var(--profile-mobile-accent-rgb),.38)!important;
    border-radius:11px!important;
    background:rgba(var(--profile-mobile-accent-rgb),.08)!important;
    color:#e8f2ff!important;
    font-size:10px!important;
    font-weight:850!important;
  }

  #screen-profile:not(.viewing-other-profile) .profile-form{
    gap:10px!important;
    margin-top:0!important;
  }
  #screen-profile:not(.viewing-other-profile) .profile-form-section{
    margin:0!important;
    padding:13px!important;
    border:1px solid rgba(78,121,187,.24)!important;
    border-radius:16px!important;
    background:linear-gradient(180deg,rgba(10,20,35,.88),rgba(7,14,25,.94))!important;
  }
  #screen-profile:not(.viewing-other-profile) .profile-form-section:first-child{padding-top:13px!important;border-top:1px solid rgba(78,121,187,.24)!important;}
  .sensual-mode #screen-profile:not(.viewing-other-profile) .profile-form-section,
  .sensual-mode #screen-profile:not(.viewing-other-profile) .profile-form-section:first-child{
    border-color:rgba(158,52,96,.24)!important;
    background:linear-gradient(180deg,rgba(28,11,22,.88),rgba(14,8,15,.94))!important;
  }
  #screen-profile:not(.viewing-other-profile) .profile-form-section h4{
    margin:0 0 4px!important;
    color:#f0f4fb!important;
    font-size:13px!important;
    line-height:1.25!important;
    font-weight:900!important;
  }
  #screen-profile:not(.viewing-other-profile) .profile-form-section>.sub{
    color:#8391a6!important;
    font-size:10px!important;
    line-height:1.4!important;
  }
  #screen-profile:not(.viewing-other-profile) .profile-fields,
  #screen-profile:not(.viewing-other-profile) .profile-age-grid{
    grid-template-columns:1fr!important;
    gap:9px!important;
    margin-top:10px!important;
  }
  #screen-profile:not(.viewing-other-profile) .profile-field.full{grid-column:auto!important;}
  #screen-profile:not(.viewing-other-profile) .profile-field label{
    margin:0 0 5px!important;
    color:#97a5b9!important;
    font-size:10px!important;
    font-weight:700!important;
  }
  #screen-profile:not(.viewing-other-profile) .profile-field input,
  #screen-profile:not(.viewing-other-profile) .profile-field textarea,
  #screen-profile:not(.viewing-other-profile) .profile-field select{
    width:100%!important;
    min-height:47px!important;
    padding:11px 12px!important;
    border:1px solid rgba(88,120,167,.30)!important;
    border-radius:13px!important;
    background:linear-gradient(180deg,rgba(7,15,27,.96),rgba(5,11,21,.99))!important;
    color:#eef3fb!important;
    font-size:15px!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.016)!important;
  }
  #screen-profile:not(.viewing-other-profile) .profile-field textarea{min-height:96px!important;line-height:1.45!important;}
  #screen-profile:not(.viewing-other-profile) .profile-field input:focus,
  #screen-profile:not(.viewing-other-profile) .profile-field textarea:focus,
  #screen-profile:not(.viewing-other-profile) .profile-field select:focus{
    outline:none!important;
    border-color:rgba(var(--profile-mobile-accent-rgb),.72)!important;
    box-shadow:0 0 0 3px rgba(var(--profile-mobile-accent-rgb),.10)!important;
  }
  #screen-profile:not(.viewing-other-profile) .profile-switch{
    min-height:46px!important;
    padding:9px 10px!important;
    border:1px solid rgba(80,117,171,.22)!important;
    border-radius:13px!important;
    background:rgba(7,15,27,.67)!important;
    color:#c5cfdd!important;
    font-size:11px!important;
    line-height:1.35!important;
  }
  #screen-profile:not(.viewing-other-profile) .profile-switch input{accent-color:rgb(var(--profile-mobile-accent-rgb))!important;}

  #screen-profile:not(.viewing-other-profile) .chip-set{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:7px!important;
    margin-top:9px!important;
  }
  #screen-profile:not(.viewing-other-profile) .choice-chip{
    min-height:37px!important;
    padding:0 11px!important;
    border:1px solid rgba(91,122,170,.30)!important;
    border-radius:999px!important;
    background:linear-gradient(180deg,rgba(11,21,36,.96),rgba(7,14,25,.99))!important;
    color:#c9d3e1!important;
    font-size:10.5px!important;
    font-weight:800!important;
  }
  #screen-profile:not(.viewing-other-profile) .choice-chip.on{
    border-color:rgba(var(--profile-mobile-accent-rgb),.66)!important;
    background:linear-gradient(180deg,rgba(var(--profile-mobile-accent-rgb),.26),rgba(var(--profile-mobile-accent-rgb),.14))!important;
    color:#eef6ff!important;
    box-shadow:0 0 14px rgba(var(--profile-mobile-accent-rgb),.08)!important;
  }

  #screen-profile:not(.viewing-other-profile) .sensual-name-option{
    min-height:58px!important;
    padding:10px 11px!important;
    border:1px solid rgba(141,71,102,.30)!important;
    border-radius:14px!important;
    background:rgba(26,10,20,.72)!important;
  }
  #screen-profile:not(.viewing-other-profile) .sensual-name-option:has(input:checked){
    border-color:rgba(var(--profile-mobile-accent-rgb),.62)!important;
    box-shadow:0 0 0 1px rgba(var(--profile-mobile-accent-rgb),.10),0 0 16px rgba(var(--profile-mobile-accent-rgb),.06)!important;
  }

  #screen-profile:not(.viewing-other-profile) .profile-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    width:100%!important;
    margin-top:2px!important;
  }
  #screen-profile:not(.viewing-other-profile) .profile-actions .profile-save{
    width:100%!important;
    min-height:50px!important;
    border:1px solid rgba(100,162,255,.58)!important;
    border-radius:13px!important;
    background:linear-gradient(180deg,#3484ff,#286fe3)!important;
    color:#fff!important;
    font-size:14px!important;
    font-weight:950!important;
    box-shadow:0 8px 20px rgba(31,103,225,.25),inset 0 1px 0 rgba(255,255,255,.15)!important;
  }
  .sensual-mode #screen-profile:not(.viewing-other-profile) .profile-actions .profile-save{
    border-color:rgba(236,92,150,.55)!important;
    background:linear-gradient(180deg,#cf427c,#a92b60)!important;
    box-shadow:0 8px 20px rgba(166,37,89,.24),inset 0 1px 0 rgba(255,255,255,.12)!important;
  }
  #screen-profile:not(.viewing-other-profile) .profile-actions>.pill{
    width:100%!important;
    min-height:45px!important;
    border:1px solid rgba(86,119,170,.31)!important;
    border-radius:13px!important;
    background:linear-gradient(180deg,rgba(16,28,47,.95),rgba(9,17,30,.98))!important;
    color:#e7eef9!important;
    font-weight:850!important;
  }
  #screen-profile:not(.viewing-other-profile) .profile-message{
    padding:0 2px!important;
    font-size:10.5px!important;
    line-height:1.4!important;
  }

  /* Status/social side cards shown during setup/editor state. */
  #screen-profile:not(.viewing-other-profile) .profile-summary,
  #screen-profile:not(.viewing-other-profile) .social-card,
  #screen-profile:not(.viewing-other-profile) #adultAttestationCard{
    padding:14px!important;
    border:1px solid rgba(69,120,199,.27)!important;
    border-radius:18px!important;
    background:linear-gradient(180deg,rgba(10,20,35,.95),rgba(7,14,25,.985))!important;
    box-shadow:0 10px 24px rgba(0,0,0,.17),inset 0 1px 0 rgba(255,255,255,.018)!important;
  }
  .sensual-mode #screen-profile:not(.viewing-other-profile) .profile-summary,
  .sensual-mode #screen-profile:not(.viewing-other-profile) .social-card,
  .sensual-mode #screen-profile:not(.viewing-other-profile) #adultAttestationCard{
    border-color:rgba(158,52,96,.27)!important;
    background:linear-gradient(180deg,rgba(29,11,23,.95),rgba(14,8,15,.985))!important;
  }
  #screen-profile:not(.viewing-other-profile) .profile-summary h3,
  #screen-profile:not(.viewing-other-profile) .social-card h3,
  #screen-profile:not(.viewing-other-profile) #adultAttestationCard h3{
    color:#f2f6fc!important;
    font-size:16px!important;
    font-weight:950!important;
  }
  #screen-profile:not(.viewing-other-profile) .profile-summary .summary-row{
    padding:9px 0!important;
    border-bottom-color:rgba(83,116,165,.16)!important;
    font-size:11px!important;
  }
  #screen-profile:not(.viewing-other-profile) .social-head{gap:10px!important;}
  #screen-profile:not(.viewing-other-profile) .social-tabs{
    display:flex!important;
    gap:7px!important;
    overflow-x:auto!important;
    padding-bottom:2px!important;
    scrollbar-width:none!important;
  }
  #screen-profile:not(.viewing-other-profile) .social-tabs::-webkit-scrollbar{display:none!important;}
  #screen-profile:not(.viewing-other-profile) .social-tab{
    flex:0 0 auto!important;
    min-height:38px!important;
    padding:0 11px!important;
    border-radius:999px!important;
    border:1px solid rgba(88,120,167,.27)!important;
    background:rgba(8,16,28,.78)!important;
    color:#aeb9c9!important;
    font-size:10px!important;
    font-weight:800!important;
  }
  #screen-profile:not(.viewing-other-profile) .social-tab.active{
    border-color:rgba(var(--profile-mobile-accent-rgb),.60)!important;
    background:rgba(var(--profile-mobile-accent-rgb),.15)!important;
    color:#eef5ff!important;
  }

  @media (max-width: 390px) {
    #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-hero-frame{
      height:min(54dvh,460px)!important;
      min-height:300px!important;
    }
    #screen-profile:not(.viewing-other-profile) #profileOverviewCard .profile-story-own-actions .pill{
      min-height:44px!important;
      padding-inline:7px!important;
      font-size:10px!important;
    }
    #screen-profile:not(.viewing-other-profile) #ownProfileName{font-size:26px!important;}
    #screen-profile:not(.viewing-other-profile) .profile-editor-identity{grid-template-columns:60px minmax(0,1fr)!important;}
    #screen-profile:not(.viewing-other-profile) .profile-editor-identity .editor-avatar{width:60px!important;height:60px!important;flex-basis:60px!important;}
    #screen-profile:not(.viewing-other-profile) .choice-chip{padding-inline:9px!important;font-size:10px!important;}
  }
}
