/* Profile1st Immersive My Place — approved visual direction, 2026-10-29.
   Scoped to authenticated app shell/My Place. Personal-room owner styles remain authoritative. */
:root{--p1-neon:#a448ff;--p1-hot:#eb35e9;--p1-ice:#53b8ff;--p1-glass:rgba(13,18,47,.82)}
body:not(.authPending){color-scheme:dark;background:radial-gradient(ellipse at 75% -20%,#38206b 0,transparent 48%),linear-gradient(145deg,#080c27,#100c29 52%,#080f25)!important;color:#f7f5ff!important}
body:not(.authPending) .app{background:transparent!important}
body:not(.authPending) .sidebar{background:linear-gradient(180deg,#090e2c,#140b38 56%,#080e25)!important;border-right:1px solid rgba(157,119,255,.22)!important;box-shadow:10px 0 50px rgba(4,3,22,.3)}
body:not(.authPending) .sidebar .nav button{color:#d8d8f8!important;border-radius:12px!important}
body:not(.authPending) .sidebar .nav button.active{color:#fff!important;background:linear-gradient(110deg,#3b27c5,#2d176f)!important;box-shadow:0 0 24px rgba(109,66,255,.18)}
body:not(.authPending) .topbar{background:rgba(7,11,36,.9)!important;border-bottom:1px solid rgba(155,122,255,.19)!important;backdrop-filter:blur(20px)}
body:not(.authPending) .topbar b,body:not(.authPending) .p1TopContext{color:#fff!important}
body:not(.authPending) .topbar input{background:rgba(24,32,76,.88)!important;border:1px solid rgba(156,144,255,.28)!important;color:#fff!important}
body:not(.authPending) #home .boardHome{max-width:1600px;margin:auto;padding:12px 18px 40px}
body:not(.authPending) #home .boardHomeHero{position:relative;isolation:isolate;overflow:hidden;min-height:350px;border:1px solid rgba(173,127,255,.5)!important;border-radius:26px!important;background:linear-gradient(90deg,rgba(7,9,33,.9) 0%,rgba(9,9,38,.56) 54%,rgba(11,8,41,.2)),radial-gradient(ellipse at 78% 22%,rgba(241,68,238,.52),transparent 42%),linear-gradient(115deg,#111b53,#4c1c78 58%,#111c45)!important;box-shadow:0 20px 75px rgba(3,1,22,.45),inset 0 0 90px rgba(84,58,191,.2)}
body:not(.authPending) #home .boardHomeHero:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.62;background:repeating-linear-gradient(90deg,transparent 0 110px,rgba(195,107,255,.12) 111px,transparent 113px),linear-gradient(0deg,rgba(13,7,47,.9),transparent 55%);z-index:-1}
body:not(.authPending) #home .boardHomeHero:after{content:"YOUR WORLD · YOUR RULES";position:absolute;top:24px;right:24px;letter-spacing:.22em;font-size:10px;font-weight:800;color:#d8bfff}
body:not(.authPending) #home .boardHomeCopy{position:relative;z-index:1;max-width:700px;padding:56px 38px 44px!important}
body:not(.authPending) #home .boardHomeCopy>span{color:#bbadff!important;letter-spacing:.22em!important}
body:not(.authPending) #home .boardHomeCopy h1{font-size:clamp(38px,5.3vw,76px)!important;color:#fff!important;line-height:1.02!important;text-shadow:0 4px 24px rgba(14,4,39,.6)}
body:not(.authPending) #home .boardHomeCopy h1 em{color:#df93ff!important;font-style:normal;text-shadow:0 0 26px rgba(205,82,255,.35)}
body:not(.authPending) #home .boardHomeCopy p{color:#e0ddff!important;font-size:16px!important}
body:not(.authPending) #home .boardHomeActions{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
body:not(.authPending) #home .boardHomeActions button{border:1px solid rgba(188,147,255,.45)!important;border-radius:12px!important;background:rgba(15,15,58,.76)!important;color:#fff!important;padding:13px 18px!important;box-shadow:none!important}
body:not(.authPending) #home .boardHomeActions button:first-child,
body:not(.authPending) #home .boardHomeActions button:nth-child(2){background:linear-gradient(110deg,#6339ff,#d01dda)!important;border-color:transparent!important;box-shadow:0 8px 30px rgba(158,42,239,.32)!important}
body:not(.authPending) #home .boardHomeDestinations{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:16px 0!important}
body:not(.authPending) #home .boardHomeDestinations button,
body:not(.authPending) #home .boardHomePanel,
body:not(.authPending) #home .boardHomeSide>div{background:var(--p1-glass)!important;border:1px solid rgba(122,119,231,.34)!important;border-radius:20px!important;color:#f8f7ff!important;box-shadow:0 12px 34px rgba(3,6,24,.16)!important}
body:not(.authPending) #home .boardHomeDestinations button{min-height:92px;transition:transform .16s,border-color .16s}
body:not(.authPending) #home .boardHomeDestinations button:hover{transform:translateY(-3px);border-color:#b36dff!important}
body:not(.authPending) #home .boardHomeDestinations button i{color:#c998ff!important}
body:not(.authPending) #home .boardHomeDestinations button small{color:#b4b9db!important}
body:not(.authPending) #home .boardPanelHead h2,body:not(.authPending) #home .boardHomeSide b{color:#fff!important}
body:not(.authPending) #home .boardPanelHead span,body:not(.authPending) #home .boardHomeSide span{color:#ac8cfb!important}
body:not(.authPending) #home #myPlaceOSHub{color:#eef0ff}
body:not(.authPending) #home .boardHomeSide button,body:not(.authPending) #home .boardPanelHead button{background:linear-gradient(110deg,#342a89,#632cc7)!important;color:white!important;border:1px solid rgba(183,133,255,.44)!important;border-radius:11px!important}
@media(max-width:850px){body:not(.authPending) #home .boardHomeDestinations{grid-template-columns:repeat(2,minmax(0,1fr))}body:not(.authPending) #home .boardHomeCopy{padding:62px 22px 30px!important}body:not(.authPending) #home .boardHomeHero{min-height:340px}body:not(.authPending) #home .boardHomeHero:after{left:22px;right:auto;font-size:8px}body:not(.authPending) #home .boardHome{padding:8px 10px 100px}}
@media(prefers-reduced-motion:reduce){body:not(.authPending) #home .boardHomeDestinations button{transition:none}}

/* Integrated identity panel, bound to the authenticated profile. */
#home .p1ImmersiveIdentity{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:13px 16px;margin:22px 0 6px;border:1px solid rgba(186,145,255,.4);border-radius:18px;background:rgba(10,11,42,.65);backdrop-filter:blur(15px)}
#home .p1ImmersiveAvatar{width:62px;height:62px;flex:none;display:grid;place-items:center;border:3px solid #ae64ff;border-radius:50%;background:#252059 center/cover;color:#fff;font-size:26px;box-shadow:0 0 18px rgba(164,72,255,.35)}
#home .p1ImmersiveWho{min-width:140px;flex:1;display:grid;gap:5px;color:#fff}
#home .p1ImmersiveWho strong{font-size:19px;line-height:1.15}
#home .p1ImmersiveWho small{color:#c8b9ec;font-size:12px}
#home .p1ImmersiveIdentity button{border-radius:12px;border:1px solid rgba(184,151,255,.43);padding:12px 17px;color:#fff;background:#231b58;cursor:pointer}
#home .p1ImmersiveIdentity .p1ImmersiveEnter{background:linear-gradient(110deg,#5e31fa,#cd25cc);border-color:transparent;font-weight:800;box-shadow:0 7px 28px rgba(160,37,222,.3)}
@media(max-width:680px){#home .p1ImmersiveIdentity{padding:12px}#home .p1ImmersiveWho{flex-basis:calc(100% - 90px)}#home .p1ImmersiveIdentity button{flex:1}}

/* Screenshot-driven layout correction: preserve live data, remove legacy illustration. */
body:not(.authPending) #home .boardHomeHero:after{content:"YOUR WORLD · YOUR RULES"!important;position:absolute!important;left:auto!important;right:24px!important;top:22px!important;bottom:auto!important;width:auto!important;height:auto!important;opacity:1!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;pointer-events:none!important}
body:not(.authPending) #home .boardHomeHero{min-height:300px!important}
body:not(.authPending) #home .boardHomeCopy{padding:52px 28px 26px!important;max-width:100%!important}
body:not(.authPending) #home .boardHomeCopy h1{font-size:clamp(32px,4.5vw,62px)!important;max-width:820px}
body:not(.authPending) #home .p1ImmersiveIdentity{max-width:820px;box-shadow:0 10px 35px rgba(0,0,0,.16)}
body:not(.authPending) #home .boardHomeActions{margin-top:13px!important}
body:not(.authPending) #home .boardHomeActions button{min-height:44px!important}
body:not(.authPending) #home .boardHomeDestinations button{min-width:0;padding:15px!important}
body:not(.authPending) #home .boardHomeDestinations button small,body:not(.authPending) #home .boardHomeDestinations button b{overflow-wrap:anywhere}
body:not(.authPending) #home .boardHomePanel{min-width:0;overflow:hidden}
body:not(.authPending) #home .mp3QuickRail{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
body:not(.authPending) #home .mp3QuickRail button{min-width:0!important;min-height:90px!important;padding:14px!important;display:flex!important;align-items:center!important;gap:10px!important;white-space:normal!important;text-align:left!important}
body:not(.authPending) #home .mp3QuickRail button b,body:not(.authPending) #home .mp3QuickRail button small{overflow-wrap:anywhere!important;line-height:1.4!important}
@media(min-width:1250px){body:not(.authPending) #home .boardHomeBelow{grid-template-columns:minmax(0,1fr) 270px!important}}
@media(max-width:900px){body:not(.authPending) #home .boardHomeBelow{grid-template-columns:minmax(0,1fr)!important}body:not(.authPending) #home .mp3QuickRail{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:580px){body:not(.authPending) #home .boardHomeHero{min-height:0!important}body:not(.authPending) #home .boardHomeCopy{padding:62px 15px 20px!important}body:not(.authPending) #home .boardHomeHero:after{right:15px!important;font-size:8px!important}body:not(.authPending) #home .boardHomeDestinations{grid-template-columns:repeat(2,minmax(0,1fr))!important}body:not(.authPending) #home .mp3QuickRail{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* One real profile hero: dynamic My Place V3 renders the actual user details. */
body.myPlaceV3Active #home .boardHomeHero{display:none!important}
body.myPlaceV3Active #home .boardHomeDestinations{margin-top:4px!important}
body.myPlaceV3Active #home .boardPanelHead{padding-bottom:8px}
body.myPlaceV3Active #home .mp3Hero{min-height:330px!important;padding:48px 28px 30px!important;border:1px solid rgba(171,119,255,.45)!important;border-radius:22px!important;overflow:hidden!important;background-color:#0e1237!important;box-shadow:0 12px 42px rgba(3,4,21,.28)}
body.myPlaceV3Active #home .mp3Identity h1{font-size:clamp(30px,3.8vw,54px)!important;line-height:1.08!important}
body.myPlaceV3Active #home .mp3Brief{position:relative!important;inset:auto!important;top:auto!important;right:auto!important;left:auto!important;width:auto!important;min-height:0!important;padding:18px 20px!important;margin:10px 0!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
body.myPlaceV3Active #home .mp3Brief h2{font-size:clamp(19px,2vw,29px)!important}
body.myPlaceV3Active #home .mp3Hero .p1ImmersiveIdentity{width:fit-content;max-width:100%;margin:24px 0 0;position:relative;z-index:2}
body.myPlaceV3Active #home .mp3Hero .p1ImmersiveWho{display:none}
body.myPlaceV3Active #home .mp3Hero .p1ImmersiveAvatar{display:none}
body.myPlaceV3Active #home .mp3Hero .p1ImmersiveIdentity{padding:8px;background:rgba(12,10,38,.8)}
body.myPlaceV3Active #home .mp3World{margin-top:12px!important}
@media(max-width:750px){body.myPlaceV3Active #home .mp3Hero{min-height:300px!important;padding:56px 16px 22px!important}body.myPlaceV3Active #home .mp3Hero .p1ImmersiveIdentity button{padding:10px!important}body.myPlaceV3Active #home .mp3Brief{padding:15px!important}}

/* Mobile layout repair — 2026-10-29 screenshot at phone width */
@media (max-width: 600px){
  html,body{max-width:100%;overflow-x:hidden!important}
  body:not(.authPending) .app,body:not(.authPending) .main,body:not(.authPending) #home,body:not(.authPending) #home .boardHome,body:not(.authPending) #home .boardHomeBelow,body:not(.authPending) #home .boardHomePanel,body:not(.authPending) #home #myPlaceOSHub,body:not(.authPending) #home .mp3Shell{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  body:not(.authPending) #home .boardHome{padding:8px 10px 96px!important}
  body:not(.authPending) #home .boardHomeDestinations{gap:9px!important;margin:6px 0 12px!important}
  body:not(.authPending) #home .boardHomeDestinations button{min-height:92px!important;padding:13px!important;border-radius:18px!important}
  body:not(.authPending) #home .boardHomeDestinations button i{font-size:23px!important}
  body:not(.authPending) #home .boardHomeDestinations button b{font-size:17px!important;line-height:1.22!important}
  body:not(.authPending) #home .boardHomeDestinations button small{font-size:11px!important}
  body:not(.authPending) #home .boardHomePanel{padding:12px!important}
  body:not(.authPending) #home .boardPanelHead{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:10px!important}
  body:not(.authPending) #home .boardPanelHead h2{font-size:21px!important;line-height:1.2!important;margin:6px 0!important}
  body:not(.authPending) #home .boardPanelHead button{font-size:12px!important;padding:10px!important}
  body.myPlaceV3Active #home .mp3Shell{width:100%!important;padding:0!important;margin:0!important;display:block!important}
  body.myPlaceV3Active #home .mp3HeroSection{width:100%!important;min-width:0!important;margin:0!important;padding:0!important;display:block!important}
  body.myPlaceV3Active #home .mp3Hero{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-height:0!important;overflow:hidden!important;margin:0!important;padding:75px 14px 18px!important;border-radius:16px!important}
  body.myPlaceV3Active #home .mp3HeroTop{position:absolute!important;top:14px!important;left:14px!important;right:14px!important;display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;justify-content:space-between!important;gap:8px!important}
  body.myPlaceV3Active #home .mp3HeroTop .mp3Kicker{font-size:9px!important;letter-spacing:.09em!important;max-width:130px!important;overflow-wrap:anywhere}
  body.myPlaceV3Active #home .mp3HeroTop .mp3Customize{position:static!important;min-width:0!important;max-width:150px!important;padding:9px!important;font-size:10px!important;line-height:1.3!important;white-space:normal!important}
  body.myPlaceV3Active #home .mp3Identity{width:100%!important;min-width:0!important;display:flex!important;align-items:flex-start!important;gap:10px!important}
  body.myPlaceV3Active #home .mp3Identity>div{min-width:0!important;max-width:100%!important}
  body.myPlaceV3Active #home .mp3Identity h1{font-size:clamp(24px,7vw,34px)!important;line-height:1.12!important;letter-spacing:-.035em!important;overflow-wrap:anywhere!important;margin:4px 0 10px!important;white-space:normal!important}
  body.myPlaceV3Active #home .mp3Identity p{font-size:13px!important;line-height:1.45!important}
  body.myPlaceV3Active #home .mp3Identity small{font-size:12px!important;line-height:1.5!important}
  body.myPlaceV3Active #home .mp3HeroChips{display:flex!important;flex-wrap:wrap!important;gap:7px!important;max-width:100%!important}
  body.myPlaceV3Active #home .mp3HeroChips span{max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:11px!important;line-height:1.4!important;padding:8px 11px!important}
  body.myPlaceV3Active #home .mp3Hero .p1ImmersiveIdentity{box-sizing:border-box!important;width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;margin:16px 0 0!important;padding:8px!important}
  body.myPlaceV3Active #home .mp3Hero .p1ImmersiveIdentity button{min-width:0!important;width:100%!important;white-space:normal!important;font-size:12px!important;line-height:1.35!important}
  body.myPlaceV3Active #home .mp3Brief{margin:9px 0!important;padding:12px!important;border-radius:14px!important}
  body.myPlaceV3Active #home .mp3Brief h2{font-size:19px!important;line-height:1.25!important}
  body.myPlaceV3Active #home .mp3World{min-width:0!important;overflow:hidden!important}
  body.myPlaceV3Active #home .mp3QuickRail{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.myPlaceV3Active #home .mp3QuickRail button{min-width:0!important;padding:10px!important;gap:8px!important;min-height:76px!important}
  body.myPlaceV3Active #home .mp3QuickRail button b{font-size:12px!important}
  body.myPlaceV3Active #home .mp3QuickRail button small{font-size:10px!important}
}

/* Immersive room spotlight: real current profile and room, not mock content. */
#home .p1RoomSpotlight{min-width:0;width:100%;margin:0 0 14px}
#home .p1RoomSpotlightVisual{isolation:isolate;position:relative;overflow:hidden;min-height:215px;padding:32px 30px;border:1px solid rgba(183,102,255,.46);border-radius:22px;background-color:#14133e;background-image:radial-gradient(ellipse at 85% 10%,rgba(225,53,212,.45),transparent 42%),linear-gradient(125deg,#11183d,#231059 68%,#0e153c);background-position:center;background-size:cover;box-shadow:0 16px 45px rgba(6,3,28,.2)}
#home .p1RoomSpotlightVisual:before{content:"";pointer-events:none;position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(5,8,30,.8),transparent 75%)}
#home .p1RoomSpotlightEyebrow{font-size:10px;font-weight:800;letter-spacing:.18em;color:#ca9aff}
#home .p1RoomSpotlight h2{font-size:clamp(25px,3vw,39px)!important;line-height:1.1!important;color:white!important;margin:14px 0 8px!important;overflow-wrap:anywhere}
#home .p1RoomSpotlight p{font-size:13px;line-height:1.5;color:#e0d7f5;max-width:520px}
#home .p1RoomSpotlightActions{display:flex;flex-wrap:wrap;gap:10px;margin-top:19px}
#home .p1RoomSpotlightActions a,#home .p1RoomSpotlightActions button{display:inline-flex;justify-content:center;align-items:center;min-height:42px;padding:10px 16px;border-radius:12px;border:1px solid rgba(173,140,255,.46);background:rgba(20,19,65,.82);color:white;text-decoration:none;font-size:12px;font-weight:750;cursor:pointer}
#home .p1RoomSpotlightActions .p1RoomSpotlightEnter{background:linear-gradient(110deg,#673dff,#d429c1);border-color:transparent}
@media(max-width:600px){
  body:not(.authPending) #home .boardHomeDestinations{display:flex!important;gap:8px!important;overflow-x:auto!important;scroll-snap-type:x proximity;padding:0 0 8px!important;scrollbar-width:thin}
  body:not(.authPending) #home .boardHomeDestinations button{flex:0 0 120px!important;min-height:72px!important;padding:10px!important;scroll-snap-align:start}
  body:not(.authPending) #home .boardHomeDestinations button b{font-size:13px!important}
  body:not(.authPending) #home .boardHomeDestinations button small{font-size:9px!important}
  #home .p1RoomSpotlightVisual{padding:22px 16px;min-height:195px;border-radius:16px}
  #home .p1RoomSpotlightActions a,#home .p1RoomSpotlightActions button{flex:1 1 120px;font-size:11px}
}

/* Profile photo first — restore prominent profile identity, eliminate competing hero */
body.myPlaceV3Active #home .p1RoomSpotlight{display:none!important}
body.myPlaceV3Active #home .mp3Hero{background-image:linear-gradient(100deg,rgba(7,8,31,.68),rgba(24,10,50,.25)),var(--mp3-cover,linear-gradient(125deg,#131641,#46217e,#aa34bc))!important}
body.myPlaceV3Active #home .mp3Identity{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:20px!important;margin-top:40px!important}
body.myPlaceV3Active #home .mp3Identity>.mp2Avatar{flex:0 0 132px!important;width:132px!important;height:132px!important;min-width:132px!important;border:4px solid rgba(229,201,255,.95)!important;border-radius:50%!important;background-position:center!important;background-size:cover!important;color:#fff!important;font-size:44px!important;box-shadow:0 0 0 4px rgba(118,59,255,.48),0 0 35px rgba(182,73,252,.48)!important}
body.myPlaceV3Active #home .mp3Identity>div:nth-child(2){min-width:0!important;flex:1 1 220px!important}
body.myPlaceV3Active #home .mp3Identity h1{text-shadow:0 3px 12px rgba(0,0,0,.48)!important}
body.myPlaceV3Active #home .mp3HeroChips{margin-top:17px!important}
body.myPlaceV3Active #home .mp3Hero .p1ImmersiveIdentity{margin-top:20px!important}
@media(max-width:600px){
 body.myPlaceV3Active #home .mp3Hero{padding:70px 14px 18px!important}
 body.myPlaceV3Active #home .mp3Identity{display:flex!important;flex-wrap:wrap!important;align-items:center!important;margin-top:12px!important;gap:12px!important}
 body.myPlaceV3Active #home .mp3Identity>.mp2Avatar{flex:0 0 92px!important;width:92px!important;height:92px!important;min-width:92px!important;border-radius:50%!important;font-size:32px!important}
 body.myPlaceV3Active #home .mp3Identity>div:nth-child(2){min-width:0!important;flex:1 1 calc(100% - 110px)!important}
 body.myPlaceV3Active #home .mp3Identity h1{font-size:clamp(23px,6vw,31px)!important;line-height:1.13!important}
 body.myPlaceV3Active #home .mp3Identity p{font-size:12px!important;margin:5px 0!important}
 body.myPlaceV3Active #home .mp3HeroChips{margin-top:15px!important}
}
