/* Profile1st Clean Social UI
   Ordinary content lives on the page. Cards are reserved for moments that deserve emphasis. */

:root{
  --clean-page:#f7f8fb;
  --clean-surface:#fff;
  --clean-ink:#171a26;
  --clean-muted:#72798a;
  --clean-line:#e7e9ef;
  --clean-accent:#6549e8;
}

/* ---------- My Place ---------- */
.myPlaceV2Active #home .homePremiumShell{
  max-width:1240px!important;
  padding:10px 14px 54px!important;
}
.myPlaceV2Active .mp2Shell{gap:22px!important}
.myPlaceV2Active .mp2Section{gap:9px!important}
.myPlaceV2Active .mp2Head{padding:0 2px}
.myPlaceV2Active .mp2Head h2{font-size:25px!important}

/* Identity should read like a profile header, not a card. */
.myPlaceV2Active .mp2MeRow{
  margin-top:6px!important;
  padding:10px 2px 16px!important;
  border:0!important;
  border-bottom:1px solid var(--clean-line)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.myPlaceV2Active .mp2Avatar{border-radius:50%!important;box-shadow:0 0 0 3px #fff!important}
.myPlaceV2Active .mp2MeCopy h2{font-size:26px!important}

/* Keep the four primary actions branded, but stop making them oversized tiles. */
.myPlaceV2Active .mp2Actions{gap:8px!important}
.myPlaceV2Active .mp2Actions button{
  min-height:70px!important;
  padding:12px 14px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.myPlaceV2Active .mp2Actions button>b{width:38px!important;height:38px!important;border-radius:11px!important;font-size:20px!important}
.myPlaceV2Active .mp2Actions button span{font-size:13px!important}
.myPlaceV2Active .mp2Actions button small{font-size:9px!important}

/* Room artwork and Featured Room remain visual anchors, but regular Room cards are quieter. */
.myPlaceV2Active .mp2Rooms{gap:9px!important}
.myPlaceV2Active .mp2Room{
  border-radius:14px!important;
  box-shadow:none!important;
}
.myPlaceV2Active .mp2Room:not(.featured){border-color:var(--clean-line)!important}

/* Today becomes a social/activity list instead of four cards. */
.myPlaceV2Active .mp2Today{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  column-gap:22px!important;
  row-gap:0!important;
}
.myPlaceV2Active .mp2Today>button{
  min-height:68px!important;
  padding:11px 2px!important;
  border:0!important;
  border-bottom:1px solid var(--clean-line)!important;
  border-radius:0!important;
  background:transparent!important;
}
.myPlaceV2Active .mp2Today>button>i{
  width:34px!important;height:34px!important;border-radius:10px!important;
  background:#f0edff!important;
}

/* Life is a section with tabs + rows, not a tray of boxes. */
.myPlaceV2Active .mp2LifeTabs{
  gap:18px!important;
  padding:0!important;
  border:0!important;
  border-bottom:1px solid var(--clean-line)!important;
  border-radius:0!important;
  background:transparent!important;
}
.myPlaceV2Active .mp2LifeTabs button{
  min-height:42px!important;
  padding:9px 2px!important;
  border-radius:0!important;
  background:transparent!important;
  border-bottom:2px solid transparent!important;
}
.myPlaceV2Active .mp2LifeTabs button.active{
  color:var(--clean-ink)!important;
  background:transparent!important;
  border-bottom-color:var(--clean-accent)!important;
}
.myPlaceV2Active .mp2LifeCards{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:0!important;
  border-bottom:1px solid var(--clean-line);
}
.myPlaceV2Active .mp2LifeCards article,
.myPlaceV2Active .mp2LifeCards article:nth-child(2),
.myPlaceV2Active .mp2LifeCards article:nth-child(3){
  min-height:126px!important;
  padding:15px 18px 17px!important;
  border:0!important;
  border-right:1px solid var(--clean-line)!important;
  border-radius:0!important;
  background:transparent!important;
}
.myPlaceV2Active .mp2LifeCards article:last-child{border-right:0!important}
.myPlaceV2Active .mp2LifeCards h3{margin:9px 0 6px!important}

/* Manage already behaves like settings rows; make it denser. */
.myPlaceV2Active .mp2Manage>button{
  min-height:64px!important;
  padding:10px 4px!important;
  border-left:0!important;
  border-right:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.myPlaceV2Active .mp2Manage>button:first-of-type,
.myPlaceV2Active .mp2Manage>button:last-child{border-radius:0!important}

/* ---------- People + Updates shared page shell ---------- */
body.mposEnhanced #people>.pageShell,
body.mposEnhanced #updates>.pageShell{
  max-width:1160px!important;
  padding:16px 18px 80px!important;
  gap:26px!important;
}
body.mposEnhanced #people:before,
body.mposEnhanced #updates:before{display:none!important}

/* Modern social page title instead of dashboard hero. */
body.mposEnhanced #people .pageHero,
body.mposEnhanced #updates .updatesPremiumHero{
  overflow:visible!important;
  margin:0 0 4px!important;
  padding:6px 0 15px!important;
  border:0!important;
  border-bottom:1px solid var(--clean-line)!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--clean-ink)!important;
  box-shadow:none!important;
}
body.mposEnhanced #people .pageHero:after,
body.mposEnhanced #updates .updatesHeroGlow{display:none!important}
body.mposEnhanced #people .pageHero h2,
body.mposEnhanced #updates .updatesHeroTop h2{
  margin:0 0 4px!important;
  color:var(--clean-ink)!important;
  font-size:29px!important;
  letter-spacing:-.035em!important;
}
body.mposEnhanced #people .pageHero p,
body.mposEnhanced #updates .updatesHeroTop p{
  color:var(--clean-muted)!important;
  font-size:12px!important;
  line-height:1.45!important;
}
body.mposEnhanced #updates .updatesEyebrow{color:var(--clean-accent)!important}
body.mposEnhanced #people .heroAction,
body.mposEnhanced #updates .updatesPublishBtn{
  border:0!important;
  border-radius:10px!important;
  background:var(--clean-ink)!important;
  color:#fff!important;
  box-shadow:none!important;
  padding:9px 13px!important;
}

/* Metrics become quiet metadata. */
body.mposEnhanced #people .metricRow{
  margin-top:14px!important;
  border-top:0!important;
  gap:22px!important;
}
body.mposEnhanced #people .metricBox{
  min-width:0!important;
  padding:0!important;
}
body.mposEnhanced #people .metricBox b{font-size:18px!important;color:var(--clean-ink)!important}
body.mposEnhanced #people .metricBox span{font-size:8px!important;color:#8a91a0!important}

/* People content is a stream, not a dashboard mosaic. */
body.mposEnhanced #people .pageMain{display:block!important}
body.mposEnhanced #people .contentCard{
  margin:0!important;
  padding:18px 0!important;
  border:0!important;
  border-bottom:1px solid var(--clean-line)!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.mposEnhanced #people .compactGrid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:0!important;
  margin:0!important;
  border-bottom:1px solid var(--clean-line);
}
body.mposEnhanced #people .compactTile{
  min-height:112px!important;
  padding:16px!important;
  border:0!important;
  border-right:1px solid var(--clean-line)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.mposEnhanced #people .compactTile:last-child{border-right:0!important}
body.mposEnhanced #people .compactTile:before{display:none!important}
body.mposEnhanced #people .avatarRow{min-height:66px!important}
body.mposEnhanced #people .featureList>*{padding:11px 0!important}

/* Right rails become contextual columns, not stacked cards. */
body.mposEnhanced #people .sideRail,
body.mposEnhanced #updates .sideRail{
  gap:0!important;
  padding-left:20px;
  border-left:1px solid var(--clean-line);
}
body.mposEnhanced #people .railCard,
body.mposEnhanced #updates .railCard{
  padding:14px 0!important;
  border:0!important;
  border-bottom:1px solid var(--clean-line)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.mposEnhanced #people .railCard:first-child,
body.mposEnhanced #updates .railCard:first-child{background:transparent!important}

/* Updates: identity selector stays useful, but stops reading like nested cards. */
body.mposEnhanced #updates .updatesIdentityDock{
  margin-top:12px!important;
  padding-top:12px!important;
  border-top:1px solid var(--clean-line)!important;
}
body.mposEnhanced #updates .updatesIdentityDockHead b{color:var(--clean-ink)!important}
body.mposEnhanced #updates .updatesIdentityDockHead span{color:var(--clean-muted)!important}
body.mposEnhanced #updates .updatesIdentityChip{
  padding:8px 9px!important;
  border:0!important;
  border-radius:10px!important;
  background:#f0f2f6!important;
  color:var(--clean-ink)!important;
}
body.mposEnhanced #updates .updatesIdentityChip small{color:#7d8493!important}
body.mposEnhanced #updates .updatesControlCard{
  margin:0!important;
  padding:12px 0!important;
  border:0!important;
  border-bottom:1px solid var(--clean-line)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.mposEnhanced #updates .updatesPremiumFeed{
  gap:0!important;
  margin-top:0!important;
  padding:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.mposEnhanced #updates .premiumUpdateCard,
body.mposEnhanced #updates .updatesPremiumFeed>*{
  margin:0!important;
  padding:17px 0!important;
  border:0!important;
  border-bottom:1px solid var(--clean-line)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.mposEnhanced #updates .premiumUpdateCard.business,
body.mposEnhanced #updates .premiumUpdateCard.creator,
body.mposEnhanced #updates .premiumUpdateCard.personal{box-shadow:none!important}
body.mposEnhanced #updates .premiumUpdateAvatar{border-radius:50%!important}
body.mposEnhanced #updates .premiumUpdateBody{
  margin:11px 0 9px!important;
  color:#20232d!important;
  font-size:14px!important;
  line-height:1.52!important;
}
body.mposEnhanced #updates .premiumUpdateActions{padding-top:8px!important;margin-top:8px!important}
body.mposEnhanced #updates .premiumUpdateActions button{
  border-radius:7px!important;
  padding:5px 8px!important;
}

/* ---------- Responsive density ---------- */
@media(max-width:900px){
  .myPlaceV2Active .mp2Today{grid-template-columns:1fr!important}
  .myPlaceV2Active .mp2LifeCards{grid-template-columns:1fr!important}
  .myPlaceV2Active .mp2LifeCards article{border-right:0!important;border-bottom:1px solid var(--clean-line)!important}
  body.mposEnhanced #people>.pageShell,
  body.mposEnhanced #updates>.pageShell{padding:12px 14px 78px!important}
  body.mposEnhanced #people .sideRail,
  body.mposEnhanced #updates .sideRail{padding-left:0;border-left:0}
}
@media(max-width:700px){
  .myPlaceV2Active #home .homePremiumShell{padding:6px 10px 34px!important}
  .myPlaceV2Active .mp2Shell{gap:18px!important}
  .myPlaceV2Active .mp2MeRow{padding:8px 0 13px!important}
  .myPlaceV2Active .mp2Actions{grid-template-columns:1fr 1fr!important}
  .myPlaceV2Active .mp2Actions button{min-height:66px!important;padding:10px!important}
  .myPlaceV2Active .mp2Room{border-radius:12px!important}
  body.mposEnhanced #people>.pageShell,
  body.mposEnhanced #updates>.pageShell{padding:8px 10px 82px!important}
  body.mposEnhanced #people .pageHero,
  body.mposEnhanced #updates .updatesPremiumHero{padding:5px 0 12px!important}
  body.mposEnhanced #people .pageHeroTop,
  body.mposEnhanced #updates .updatesHeroTop{gap:10px!important}
  body.mposEnhanced #people .pageHero h2,
  body.mposEnhanced #updates .updatesHeroTop h2{font-size:25px!important}
  body.mposEnhanced #people .compactGrid{grid-template-columns:1fr!important}
  body.mposEnhanced #people .compactTile{min-height:0!important;border-right:0!important;border-bottom:1px solid var(--clean-line)!important;padding:13px 0!important}
  body.mposEnhanced #updates .updatesIdentityStrip{display:flex!important;overflow-x:auto;gap:6px!important;scrollbar-width:none}
  body.mposEnhanced #updates .updatesIdentityChip{flex:0 0 auto;min-width:150px}
  body.mposEnhanced #updates .premiumUpdateCard,
  body.mposEnhanced #updates .updatesPremiumFeed>*{padding:14px 0!important}
}


/* My Place when opened inside a Personal Room owner editor */
body.roomProfileEmbed .sidebar,
body.roomProfileEmbed .topbar,
body.roomProfileEmbed .mobileNav{display:none!important}
body.roomProfileEmbed .app{display:block!important;min-height:100vh!important}
body.roomProfileEmbed .main{width:100%!important;min-width:0!important}
body.roomProfileEmbed #home .homePremiumShell{max-width:1180px!important;padding-top:8px!important}
body.roomProfileEmbed{background:#f7f8fb!important}
