/* LoveApp visual shell port — staging-only presentation layer.
   Source reference: room-weaver-live/src/styles.css (2026-11-21).
   Keep liveOVER Vanilla JS, routes, authentication, media and LIVE-room geometry unchanged. */
body:not(.in-live-room) {
  --bg: #081822;
  --panel: #112532;
  --raised: #152834;
  --text: #ffffff;
  --muted: #b8ced8;
  --outline: rgba(27,163,198,.23);
  --accent: #1ba3c6;
  --accent2: #107896;
  --glass: rgba(8,24,34,.76);
  --card-gradient: linear-gradient(135deg,#1ba3c6,#107896);
  --shadow: 0 12px 32px rgba(0,10,20,.48);
  color: var(--text);
  background: #081822;
}
body:not(.in-live-room) :is(header.top,aside.sidebar,.card,.panel,.modal,.post-card) {
  border-color: var(--outline);
}
body:not(.in-live-room) header.top {
  background: rgba(8,24,34,.91);
  border-bottom-color: rgba(27,163,198,.22);
  box-shadow: 0 5px 24px rgba(0,7,16,.22);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
body:not(.in-live-room) header.top .brand strong {
  font-weight: 800;
  letter-spacing: -.03em;
}
body:not(.in-live-room) header.top .brand small {
  color: #68cce5;
  letter-spacing: .1em;
}
body:not(.in-live-room) header.top form.search {
  border-color: rgba(27,163,198,.28);
  background: rgba(17,37,50,.88);
}
body:not(.in-live-room) header.top form.search:focus-within {
  border-color: #1ba3c6;
  box-shadow: 0 0 0 2px rgba(27,163,198,.16);
}
body:not(.in-live-room) aside.sidebar {
  background: #081822;
  border-right-color: rgba(27,163,198,.20);
}
body:not(.in-live-room) aside.sidebar .nav {
  min-height: 43px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #b8ced8;
}
body:not(.in-live-room) aside.sidebar .nav:hover {
  color: #fff;
  background: rgba(27,163,198,.10);
}
body:not(.in-live-room) aside.sidebar .nav.active {
  color: #56c8e7;
  background: #112532;
  border-color: rgba(27,163,198,.28);
  box-shadow: inset 3px 0 #1ba3c6;
}
body:not(.in-live-room) :is(.card,.panel,.post-card) {
  background: #112532;
  border-color: rgba(27,163,198,.20);
  box-shadow: 0 8px 26px rgba(0,9,20,.27);
}
body:not(.in-live-room) .btn.primary {
  background: linear-gradient(135deg,#1ba3c6,#107896);
  border-color: rgba(126,218,240,.25);
  color: #fff;
  box-shadow: 0 4px 16px rgba(27,163,198,.18);
}
body:not(.in-live-room) .btn.primary:hover {
  box-shadow: 0 6px 22px rgba(27,163,198,.32);
}
body:not(.in-live-room) :is(input,textarea,select) {
  border-color: rgba(27,163,198,.24);
  background-color: #0b202d;
  color: #fff;
}
body:not(.in-live-room) :is(input,textarea,select):focus {
  border-color: #1ba3c6;
  box-shadow: 0 0 0 2px rgba(27,163,198,.17);
}
body:not(.in-live-room) .modal {
  background: #112532;
  border-color: rgba(27,163,198,.33);
  box-shadow: 0 18px 70px rgba(0,8,16,.72);
}
@media (max-width: 860px) {
  body:not(.in-live-room) nav.phone-nav {
    background: rgba(8,24,34,.90);
    border-color: rgba(27,163,198,.24);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  body:not(.in-live-room) nav.phone-nav .nav.active {
    color: #69d0ee;
  }
  body:not(.in-live-room) nav.phone-nav .nav-create {
    background: linear-gradient(135deg,#1ba3c6,#107896);
    color: #fff;
    box-shadow: 0 5px 20px rgba(27,163,198,.27);
  }
}

/* LoveApp shell geometry: condensed icon rail on tablet, full sidebar on desktop.
   Presentation-only; existing hash links and role controls remain unchanged. */
@media (min-width:861px) and (max-width:1023px) {
  body:not(.in-live-room) { --sidebar: 72px; }
  body:not(.in-live-room) aside.sidebar {
    width:72px;
    padding:18px 8px;
    align-items:center;
    gap:10px;
  }
  body:not(.in-live-room) aside.sidebar .nav {
    width:50px;
    min-height:46px;
    padding:9px;
    justify-content:center;
    gap:0;
  }
  body:not(.in-live-room) aside.sidebar .nav .text,
  body:not(.in-live-room) aside.sidebar .user-strip .content,
  body:not(.in-live-room) aside.sidebar .foot {
    display:none;
  }
  body:not(.in-live-room) aside.sidebar .user-strip {
    width:100%;
    padding:9px 0;
    justify-content:center;
  }
  body:not(.in-live-room) main#main.container {
    padding-inline:clamp(12px,2.2vw,28px);
  }
}
@media (min-width:1024px) {
  body:not(.in-live-room) { --sidebar:240px; }
  body:not(.in-live-room) aside.sidebar {
    padding:22px 14px 16px;
    gap:7px;
  }
  body:not(.in-live-room) aside.sidebar .nav {
    min-height:43px;
    padding:9px 12px;
    font-size:14px;
  }
  body:not(.in-live-room) aside.sidebar .nav .ic {
    flex:0 0 24px;
    font-size:21px;
  }
  body:not(.in-live-room) main#main.container {
    padding-inline:clamp(20px,2.3vw,42px);
  }
}
/* Keep LoveApp-style lower navigation visible and legible on touch devices. */
@media (max-width:860px) {
  body:not(.in-live-room) nav.phone-nav {
    min-height:calc(62px + env(safe-area-inset-bottom,0px));
    padding-inline:max(8px,env(safe-area-inset-left,0px));
    padding-bottom:env(safe-area-inset-bottom,0px);
  }
  body:not(.in-live-room) nav.phone-nav :is(a,button) {
    min-width:0;
    min-height:44px;
    touch-action:manipulation;
  }
  body:not(.in-live-room) nav.phone-nav .nav-label {
    font-size:10px;
    line-height:1.15;
  }
}
/* Earlier feed CSS uses !important for its old pink button, so explicitly
   supersede that color without changing the menu's placement or behavior. */
@media (max-width:767px) {
  html body:not(.in-live-room):has(.feed #feed-posts) .phone-nav .nav-create {
    background:linear-gradient(135deg,#1ba3c6,#107896)!important;
    box-shadow:0 6px 20px rgba(27,163,198,.32)!important;
    color:#fff!important;
  }
  html body:not(.in-live-room):has(.feed #feed-posts) .phone-nav a.active .ic {
    color:#69d0ee!important;
  }
}

/* Desktop For You: retain the previously approved full-screen 9:16 feed.
   Prevent visible browser/card scrollbars and unintended horizontal strips.
   The feed's internal snap-scroll remains available for video navigation.
   Mobile layout (<861px) is intentionally untouched. */
@media (min-width:861px) {
  html body:not(.in-live-room):has(.feed #feed-posts) {
    overflow:hidden!important;
  }
  html body:not(.in-live-room) .feed #feed-posts {
    overflow-x:hidden!important;
    scrollbar-width:none!important;
    overscroll-behavior-x:none;
  }
  html body:not(.in-live-room) .feed #feed-posts::-webkit-scrollbar,
  html body:not(.in-live-room) .feed #feed-posts .actionbar::-webkit-scrollbar {
    width:0!important;
    height:0!important;
    display:none!important;
  }
  html body:not(.in-live-room) .feed #feed-posts>article {
    box-sizing:border-box!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
  }
  html body:not(.in-live-room) .feed #feed-posts .post-card .caption,
  html body:not(.in-live-room) .feed #feed-posts .post-card .info {
    max-width:calc(100% - 85px)!important;
    overflow-wrap:anywhere!important;
  }
  html body:not(.in-live-room) .feed #feed-posts .post-card .caption {
    overflow:hidden!important;
    scrollbar-width:none!important;
  }
}

/* LoveApp Explore: browse real LIVE rooms and actual streamer rankings.
   Keep every existing #explore search handler and hash route intact. */
body:not(.in-live-room) #main .lov-prelive-page:has(.lov-search-form) {
  width:min(100%,1080px);
  margin-inline:auto;
  padding:clamp(10px,2vw,28px);
}
body:not(.in-live-room) #main .lov-prelive-page .lov-search-form {
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border:1px solid rgba(27,163,198,.26);
  border-radius:17px;
  background:#112532;
  box-shadow:0 8px 24px #0003;
}
body:not(.in-live-room) #main .lov-prelive-page .lov-search-form input {
  min-width:0;
  flex:1;
  border-radius:12px;
  background:#081822;
}
body:not(.in-live-room) #main .lov-prelive-page #search-results {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));
  gap:14px;
  align-items:start;
  margin-top:18px;
}
body:not(.in-live-room) #main .lov-prelive-page #search-results>.card {
  margin:0;
  min-width:0;
}
body:not(.in-live-room) #main .lov-prelive-page #search-results .lov-follow-row {
  min-width:0;
  border-bottom:1px solid rgba(27,163,198,.13);
}
@media (max-width:600px) {
  body:not(.in-live-room) #main .lov-prelive-page .lov-search-form {
    padding:7px;
    gap:6px;
  }
  body:not(.in-live-room) #main .lov-prelive-page .lov-search-form .btn {
    padding:10px 12px;
  }
}

/* For You: three tabs left and Create right on desktop. Full video cards
   restored; existing mobile 9:16 and its bottom create button stay intact. */
@media(min-width:861px){
 html body:not(.in-live-room):has(.feed #feed-posts) #main.container{
  overflow-y:auto!important;overflow-x:hidden!important;
  height:100%!important;scrollbar-width:none!important;
 }
 html body:not(.in-live-room):has(.feed #feed-posts) #main.container::-webkit-scrollbar{
  display:none!important;width:0!important;
 }
 html body:not(.in-live-room):has(.feed #feed-posts) .feed{
  display:block!important;height:auto!important;min-height:0!important;
  overflow:visible!important;position:relative!important;inset:auto!important;
 }
 html body:not(.in-live-room):has(.feed #feed-posts) .feed .lov-feed-toolbar{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  width:100%!important;gap:16px!important;min-height:46px!important;
  padding:0 0 12px!important;margin:0 0 12px!important;
 }
 html body:not(.in-live-room):has(.feed #feed-posts) .lov-feed-toolbar .ocean-tabs{
  position:static!important;inset:auto!important;
  display:flex!important;justify-content:flex-start!important;
  width:auto!important;flex:0 1 auto!important;min-width:0!important;
  height:auto!important;padding:0!important;margin:0!important;
  transform:none!important;border:0!important;background:transparent!important;
 }
 html body:not(.in-live-room):has(.feed #feed-posts) .lov-feed-toolbar .ocean-tab-links{
  display:flex!important;align-items:center!important;
  margin:0!important;gap:10px!important;
 }
 html body:not(.in-live-room):has(.feed #feed-posts) .lov-feed-toolbar .lov-feed-create{
  display:inline-flex!important;flex:0 0 auto!important;
  align-items:center!important;justify-content:center!important;
  min-height:39px!important;padding:8px 20px!important;margin-left:auto!important;
  white-space:nowrap!important;
 }
 html body:not(.in-live-room):has(.feed #feed-posts) #feed-posts{
  position:static!important;inset:auto!important;transform:none!important;
  display:grid!important;grid-template-columns:repeat(auto-fill,minmax(270px,1fr))!important;
  align-items:start!important;gap:20px!important;
  width:100%!important;height:auto!important;max-height:none!important;
  margin:0!important;padding:0!important;
  overflow:visible!important;scroll-snap-type:none!important;
 }
 html body:not(.in-live-room):has(.feed #feed-posts) #feed-posts>article{
  height:auto!important;min-height:0!important;max-width:100%!important;
  overflow:hidden!important;white-space:normal!important;
 }
 html body:not(.in-live-room):has(.feed #feed-posts) #feed-posts .post-card .info{
  min-width:0!important;max-width:100%!important;
 }
 html body:not(.in-live-room):has(.feed #feed-posts) #feed-posts .post-card .names{
  flex:1 1 auto!important;min-width:0!important;
 }
 html body:not(.in-live-room):has(.feed #feed-posts) #feed-posts .post-card .names :is(a,strong,small){
  display:block!important;max-width:100%!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  overflow-wrap:normal!important;word-break:normal!important;
 }
 html body:not(.in-live-room):has(.feed #feed-posts) #feed-posts .post-card .post-media{
  height:clamp(360px,52vh,460px)!important;max-height:none!important;
 }
 html body:not(.in-live-room):has(.feed #feed-posts) #more-posts{
  display:flex!important;
 }
}
/* Mobile route preserves original snap-video For You and bottom navigation. */
@media(max-width:860px){
 html body:not(.in-live-room):has(.feed #feed-posts) .lov-feed-toolbar{display:contents!important}
 html body:not(.in-live-room):has(.feed #feed-posts) .lov-feed-create{display:none!important}
}
/* LIVE directory uses compact real room cards, rather than the For You video cards.
   No mock LIVE rooms: data remains /api/live with SSE updates. */
@media(min-width:861px){
 html body:not(.in-live-room) .lov-official-live-list .lov-live-list-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-auto-rows:minmax(185px,1fr)!important;
  gap:clamp(8px,1.2vw,16px)!important;
  align-items:stretch!important;
  width:100%!important;margin-top:14px!important;
 }
 html body:not(.in-live-room) .lov-official-live-list .lov-live-room-card{
  position:relative!important;display:flex!important;flex-direction:column!important;
  min-width:0!important;min-height:0!important;overflow:hidden!important;
  border-radius:14px!important;border:1px solid rgba(27,163,198,.32)!important;
  background:#112532!important;color:#f5fbff!important;text-decoration:none!important;
 }
 html body:not(.in-live-room) .lov-official-live-list .lov-live-room-cover{
  position:relative!important;display:flex!important;flex:1 1 auto!important;
  justify-content:space-between!important;align-items:flex-start!important;
  min-height:105px!important;padding:10px!important;
  background:linear-gradient(155deg,#18435b,#061825)!important;
 }
 html body:not(.in-live-room) .lov-official-live-list .lov-live-room-desc{
  flex:0 0 auto!important;min-width:0!important;padding:8px 10px!important;
 }
 html body:not(.in-live-room) .lov-official-live-list .lov-live-room-desc h3,
 html body:not(.in-live-room) .lov-official-live-list .lov-live-room-desc p{
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  max-width:100%!important;margin:0!important;
 }
 html body:not(.in-live-room) .lov-official-live-list .lov-live-room-desc .host-line{
  display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important;
 }
}
@media(min-width:861px) and (max-width:1180px){
 html body:not(.in-live-room) .lov-official-live-list .lov-live-list-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
 }
}

/* LIVE directory: same top controls as For You, compact active-room cards only.
   Empty directory contains one status line, never fictitious LIVE entries. */
body:not(.in-live-room) #main .lov-live-feed {
 width:100%;max-width:100%;min-width:0;
}
body:not(.in-live-room) #main .lov-live-feed .lov-feed-toolbar {
 display:flex;align-items:center;justify-content:space-between;
 gap:16px;width:100%;min-width:0;min-height:46px;
 padding:0 0 12px;margin:0 0 12px;
}
body:not(.in-live-room) #main .lov-live-feed .lov-feed-toolbar .ocean-tabs {
 position:static!important;inset:auto!important;transform:none!important;
 display:flex!important;justify-content:flex-start;
 width:auto!important;height:auto!important;min-width:0;
 margin:0!important;padding:0!important;
 border:0!important;background:transparent!important;
}
body:not(.in-live-room) #main .lov-live-feed .lov-feed-toolbar .ocean-tab-links {
 display:flex;flex-wrap:nowrap;gap:10px;margin:0!important;
}
body:not(.in-live-room) #main .lov-live-feed .lov-feed-create {
 margin-left:auto;flex:0 0 auto;white-space:nowrap;min-height:39px;
 padding:8px 20px;
}
body:not(.in-live-room) #main .lov-live-feed .lov-live-empty {
 margin:clamp(24px,7vh,72px) auto;
 color:#b8ced8;font-size:clamp(15px,1.8vw,19px);
 text-align:center;
}
body:not(.in-live-room) #main .lov-live-feed .lov-official-live-list {
 padding:0!important;margin:0!important;
}
body:not(.in-live-room) #main .lov-live-feed .lov-live-list-grid {
 grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));
 gap:clamp(8px,1vw,16px);
}
@media (max-width:860px) {
 body:not(.in-live-room) #main .lov-live-feed .lov-feed-toolbar {
  padding:8px;gap:8px;
 }
 body:not(.in-live-room) #main .lov-live-feed .lov-feed-toolbar .ocean-tab-links {
  gap:4px;
 }
 body:not(.in-live-room) #main .lov-live-feed .lov-feed-create {
  padding:7px 10px;font-size:12px;
 }
}

/* Dedicated full-size LIVE slide on phones, parallel to For You videos.
   The source is the same /api/live SSE-fed directory; no sample broadcasts. */
body:not(.in-live-room) .lov-live-slide-feed{display:none}
@media (max-width:860px) {
 html body:not(.in-live-room):has(.lov-live-slide-feed) {
  overflow:hidden!important;background:#000!important;
 }
 html body:not(.in-live-room) #main:has(.lov-live-feed) {
  overflow:hidden!important;padding:0!important;height:100dvh!important;
 }
 html body:not(.in-live-room) #main .lov-live-feed {
  position:fixed!important;inset:0!important;height:100dvh!important;
  width:100vw!important;max-width:100vw!important;overflow:hidden!important;
  background:#000!important;
 }
 html body:not(.in-live-room) #main .lov-live-feed .lov-feed-toolbar {
  position:absolute!important;top:env(safe-area-inset-top,0px)!important;
  left:0!important;right:0!important;z-index:45!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  height:60px!important;padding:8px 12px!important;background:linear-gradient(#000a,#0000)!important;
 }
 html body:not(.in-live-room) #main .lov-live-feed .lov-feed-toolbar .ocean-tabs {
  flex:0 1 auto!important;max-width:100%!important;pointer-events:auto!important;
 }
 html body:not(.in-live-room) #main .lov-live-feed .lov-feed-toolbar .lov-feed-create{display:none!important}
 html body:not(.in-live-room) #main .lov-live-feed .lov-live-empty{
  position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;
  margin:0!important;width:min(90vw,430px)!important;text-align:center!important;
  color:#e2f6fc!important;z-index:10!important;
 }
 html body:not(.in-live-room) #main .lov-live-feed .lov-official-live-list {
  position:absolute!important;inset:0!important;margin:0!important;padding:0!important;
  width:100vw!important;height:100dvh!important;overflow:hidden!important;
 }
 html body:not(.in-live-room) #main .lov-live-feed .lov-live-list-grid{display:none!important}
 html body:not(.in-live-room) #main .lov-live-feed .lov-live-slide-feed {
  display:block!important;position:absolute!important;inset:0!important;
  width:100vw!important;height:100dvh!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  scroll-snap-type:y mandatory!important;overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;scrollbar-width:none!important;background:#000!important;
 }
 html body:not(.in-live-room) #main .lov-live-feed .lov-live-slide-feed::-webkit-scrollbar{display:none!important}
 html body:not(.in-live-room) #main .lov-live-feed .lov-live-slide-feed>article {
  position:relative!important;display:flex!important;flex-direction:column!important;
  width:100%!important;height:100dvh!important;min-height:100dvh!important;
  max-height:100dvh!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;
  scroll-snap-align:start!important;scroll-snap-stop:always!important;overflow:hidden!important;
 }
 html body:not(.in-live-room) #main .lov-live-feed .lov-live-slide-feed .ocean-live-top {
  padding:calc(env(safe-area-inset-top,0px) + 78px) 18px 12px!important;
 }
 html body:not(.in-live-room) #main .lov-live-feed .lov-live-slide-feed .ocean-live-center {
  flex:1!important;min-height:0!important;
 }
 html body:not(.in-live-room) #main .lov-live-feed .lov-live-slide-feed .ocean-live-bottom {
  padding:14px 20px calc(100px + env(safe-area-inset-bottom,0px))!important;
 }
 html body:not(.in-live-room) #main .lov-live-feed .lov-live-slide-feed .ocean-enter-live {
  min-height:44px!important;
 }
}
@media(min-width:861px) {
 body:not(.in-live-room) #main .lov-live-feed .lov-live-slide-feed{display:none!important}
}

/* LoveApp desktop profile: compact profile and horizontal video slides
   retain the main left navigation, without an outer page scrollbar. */
@media (min-width:861px) {
 html body:not(.in-live-room):has(#main .lov-profile-page-title){
  height:100dvh!important;max-height:100dvh!important;overflow:hidden!important;
 }
 html body:not(.in-live-room):has(#main .lov-profile-page-title) .app-shell {
  display:grid!important;grid-template-columns:var(--sidebar,240px) minmax(0,1fr)!important;
  height:calc(100dvh - var(--header-h,64px))!important;min-height:0!important;overflow:hidden!important;
 }
 html body:not(.in-live-room):has(#main .lov-profile-page-title) aside.sidebar{
  display:flex!important;min-height:0!important;height:100%!important;overflow-y:auto!important;
  overflow-x:hidden!important;scrollbar-width:none!important;
 }
 html body:not(.in-live-room):has(#main .lov-profile-page-title) aside.sidebar::-webkit-scrollbar{display:none!important;}
 html body:not(.in-live-room):has(#main .lov-profile-page-title) main#main.container{
  width:100%!important;height:100%!important;max-width:none!important;min-height:0!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;
  overflow:hidden!important;scrollbar-width:none!important;
  gap:clamp(5px,1vh,12px)!important;
  padding:clamp(8px,1.3vh,18px) clamp(14px,3vw,44px)!important;
 }
 html body:not(.in-live-room):has(#main .lov-profile-page-title) #main .lov-profile-page-title{
  display:block!important;flex:0 0 auto!important;width:min(100%,1200px)!important;
  margin:0!important;padding:0!important;font-size:14px!important;line-height:1.3!important;
 }
 html body:not(.in-live-room):has(#main .lov-profile-page-title) #main>.card{
  display:block!important;flex:0 0 auto!important;
  width:min(100%,1200px)!important;min-width:0!important;
  margin:0!important;max-height:51dvh!important;
  overflow:hidden!important;border-radius:16px!important;
 }
 html body:not(.in-live-room):has(#main .lov-profile-page-title) #main>.card .profile-cover{
  height:clamp(62px,10dvh,108px)!important;min-height:0!important;max-height:108px!important;
  background-position:center 44%!important;background-size:cover!important;
 }
 html body:not(.in-live-room):has(#main .lov-profile-page-title) #main>.card .profile-meta{
  display:flex!important;align-items:center!important;gap:14px!important;
  margin:0!important;padding:8px 16px!important;min-height:0!important;
 }
 html body:not(.in-live-room):has(#main .lov-profile-page-title) #main>.card .lov-profile-avatar-wrap{
  flex:0 0 auto!important;width:64px!important;height:64px!important;min-width:64px!important;
 }
 html body:not(.in-live-room):has(#main .lov-profile-page-title) #main>.card .lov-profile-avatar-wrap .avatar{
  width:64px!important;height:64px!important;max-width:64px!important;max-height:64px!important;
 }
 html body:not(.in-live-room):has(#main .lov-profile-page-title) #main>.card .identity{
  flex:1 1 auto!important;min-width:0!important;
 }
 html body:not(.in-live-room):has(#main .lov-profile-page-title) #main>.card .identity h1{
  font-size:clamp(20px,2.3vw,28px)!important;line-height:1.2!important;
  margin:0!important;
 }
 html body:not(.in-live-room):has(#main .lov-profile-page-title) #main>.card .profile-stats{
  display:flex!important;justify-content:flex-start!important;
  gap:clamp(25px,6vw,80px)!important;
  margin:6px 0!important;padding:6px 0!important;
 }
 html body:not(.in-live-room):has(#main .lov-profile-page-title) #main>.card .profile-actions{
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;
  gap:8px!important;padding:5px 0!important;margin:0!important;
 }
 html body:not(.in-live-room):has(#main .lov-profile-page-title) #main>.card .profile-actions .btn{
  padding:7px 12px!important;min-height:32px!important;font-size:12px!important;
 }
 html body:not(.in-live-room):has(#main .lov-profile-page-title) #main>.lov-profile-tab-head{
  width:min(100%,1200px)!important;min-height:0!important;margin:0!important;
  padding:0!important;flex:0 0 auto!important;
 }
 html body:not(.in-live-room):has(#main .lov-profile-page-title) #main>.postgrid{
  display:grid!important;grid-auto-flow:column!important;grid-auto-columns:minmax(160px,220px)!important;
  grid-template-rows:minmax(0,1fr)!important;grid-template-columns:none!important;
  width:min(100%,1200px)!important;height:auto!important;flex:1 1 auto!important;
  min-height:110px!important;max-height:100%!important;
  justify-content:start!important;align-items:stretch!important;
  gap:clamp(8px,1vw,14px)!important;margin:0!important;padding:0 0 8px!important;
  overflow-x:auto!important;overflow-y:hidden!important;
  scroll-snap-type:x mandatory!important;scrollbar-width:none!important;overscroll-behavior-x:contain;
 }
 html body:not(.in-live-room):has(#main .lov-profile-page-title) #main>.postgrid::-webkit-scrollbar{
  display:none!important
 }
 html body:not(.in-live-room):has(#main .lov-profile-page-title) #main>.postgrid>.postthumb{
  width:100%!important;height:100%!important;min-height:0!important;
  max-width:none!important;overflow:hidden!important;
  border-radius:12px!important;scroll-snap-align:start!important;
 }
 html body:not(.in-live-room):has(#main .lov-profile-page-title) #main>.postgrid>.postthumb :is(video,img){
  width:100%!important;height:100%!important;object-fit:cover!important;
 }
 html body:not(.in-live-room):has(#main .lov-profile-page-title) #main>.lov-profile-extras{
  display:flex!important;flex:0 0 auto!important;gap:10px!important;
  width:min(100%,1200px)!important;max-height:17dvh!important;min-height:0!important;
  margin:0!important;overflow-x:auto!important;overflow-y:hidden!important;
  scroll-snap-type:x mandatory!important;scrollbar-width:none!important;
 }
 html body:not(.in-live-room):has(#main .lov-profile-page-title) #main>.lov-profile-extras>.card{
  min-width:min(46vw,480px)!important;flex:0 0 auto!important;
  padding:8px!important;overflow:hidden!important;scroll-snap-align:start!important;
 }
 html body:not(.in-live-room):has(#main .lov-profile-page-title) #main>.lov-profile-extras::-webkit-scrollbar{
  display:none!important;
 }
}

/* LoveApp-inspired sidebar: native liveOVER routes and no clipped labels.
   Shop and Wallet remain unlisted until their standalone routes are real. */
@media (min-width:861px) {
 body:not(.in-live-room) aside.sidebar{
  display:flex!important;flex-direction:column!important;
  height:calc(100dvh - var(--header-h,64px))!important;
  min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;
  scrollbar-width:none!important;padding-bottom:12px!important;
 }
 body:not(.in-live-room) aside.sidebar::-webkit-scrollbar{display:none!important}
 body:not(.in-live-room) aside.sidebar .nav{
  display:flex;align-items:center;flex:0 0 auto;
  min-width:0;min-height:40px;line-height:1.2;
  gap:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
 }
 body:not(.in-live-room) aside.sidebar .nav .text{
  min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 }
 body:not(.in-live-room) aside.sidebar .nav-studio{
  width:100%;font:inherit;cursor:pointer;text-align:left;
  background:linear-gradient(135deg,rgba(27,163,198,.18),rgba(16,120,150,.09))!important;
  border-color:rgba(27,163,198,.30)!important;color:#b6efff;
 }
 body:not(.in-live-room) aside.sidebar .nav-studio:hover{
  background:linear-gradient(135deg,rgba(27,163,198,.3),rgba(16,120,150,.2))!important;
 }
 body:not(.in-live-room) aside.sidebar .user-strip{
  flex:0 0 auto;min-height:55px;margin-top:auto;
 }
 body:not(.in-live-room) aside.sidebar .foot{
  flex:0 0 auto;padding-top:7px!important;
  font-size:11px;line-height:1.3;
 }
}
@media (min-width:861px) and (max-width:1023px){
 body:not(.in-live-room) aside.sidebar .nav-studio{justify-content:center!important}
 body:not(.in-live-room) aside.sidebar .nav-studio .text{display:none!important}
}
