/* LENZARYA RC273 — Social Core Production
   Last-mile UX overrides only. No wallet/LIVE/WebRTC financial semantics changed. */
:root{--lz273-top:64px;--lz273-dock:72px;--lz273-safe-b:env(safe-area-inset-bottom,0px);--lz273-safe-t:env(safe-area-inset-top,0px)}
body.lz273-social-page{background:#000;overflow:hidden}
body.lz273-social-page.nx-world-shell-on>.page{padding:0!important;max-width:none!important;overflow:visible!important}
body.lz273-social-page .sovereign-feed{height:100dvh!important;min-height:100dvh!important;max-width:none!important;margin:0!important}
body.lz273-social-page .feed-stack{height:100dvh!important;padding:0!important;scroll-padding-top:0}
body.lz273-social-page .feed-post{height:100dvh!important;min-height:100dvh!important;border-radius:0!important}
body.lz273-social-page .feed-top{z-index:95!important}
body.lz273-social-page .create-panel{z-index:15000!important}
body.lz273-social-page .create-panel form{overscroll-behavior:contain}
body.lz273-social-page .rc247-publish-state{display:block;min-height:18px;color:#aeb4c3;font-size:12px}
body.lz273-social-page .create-panel[data-submitting="1"] form{pointer-events:none}
body.lz273-social-page .create-panel[data-submitting="1"] .primary{opacity:.65}

/* Search becomes a compact discovery tool instead of a giant landing hero. */
body.lz273-search-page .lenzarya-search{width:min(920px,100%);padding-top:18px}
body.lz273-search-page .lenzarya-search header{padding:24px!important;border-radius:24px!important}
body.lz273-search-page .lenzarya-search h1{font-size:clamp(2rem,8vw,3.7rem)!important;line-height:1!important}
body.lz273-search-page .lenzarya-search section>a{min-height:66px}
body.lz273-search-page .lenzarya-search section>a>div{overflow:hidden}
body.lz273-search-page .lenzarya-search section>a b,body.lz273-search-page .lenzarya-search section>a strong,body.lz273-search-page .lenzarya-search section>a small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Public profile: primary social actions stay reachable and posts do not create huge empty cards. */
body.lz273-profile-page .lz-profile{width:min(1040px,100%);margin:0 auto;padding-inline:14px;padding-bottom:calc(94px + var(--lz273-safe-b))}
body.lz273-profile-page .lz-hero{border-radius:26px!important}
body.lz273-profile-page .lz-actions .lz-btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
body.lz273-profile-page .lz-post{aspect-ratio:1/1;min-height:0!important}
body.lz273-profile-page .lz-post img,body.lz273-profile-page .lz-post video{min-height:0!important;height:100%!important}

@media(max-width:760px){
  body.lz273-social-page .feed-top{top:calc(8px + var(--lz273-safe-t))!important;max-width:calc(100vw - 20px)!important;overflow-x:auto;scrollbar-width:none;white-space:nowrap}
  body.lz273-social-page .feed-top::-webkit-scrollbar{display:none}
  body.lz273-social-page .feed-post{padding-bottom:calc(var(--lz273-dock) + var(--lz273-safe-b))!important}
  body.lz273-social-page .feed-post .post-menu{bottom:calc(var(--lz273-dock) + 10px + var(--lz273-safe-b))!important}
  body.lz273-social-page .caption{bottom:calc(var(--lz273-dock) + 16px + var(--lz273-safe-b))!important}

  body.lz273-social-page .create-panel.open{display:block!important;inset:0!important;background:#07080d!important;padding:0!important}
  body.lz273-social-page .create-panel form{width:100%!important;max-width:none!important;height:var(--lz272-vh,100dvh)!important;max-height:none!important;border:0!important;border-radius:0!important;padding:calc(12px + var(--lz273-safe-t)) 14px calc(18px + var(--lz273-safe-b))!important;overflow-y:auto!important;box-shadow:none!important}
  body.lz273-social-page .create-panel .panel-head{position:sticky;top:calc(-12px - var(--lz273-safe-t));z-index:12;margin:calc(-12px - var(--lz273-safe-t)) -14px 12px;padding:calc(12px + var(--lz273-safe-t)) 14px 10px;background:rgba(7,8,13,.96);backdrop-filter:blur(18px);border-bottom:1px solid #ffffff12}
  body.lz273-social-page .rc235-kind-tabs{display:flex!important;overflow-x:auto!important;gap:8px!important;scrollbar-width:none;padding-bottom:4px}
  body.lz273-social-page .rc235-kind-tabs::-webkit-scrollbar{display:none}
  body.lz273-social-page .rc235-kind-tabs button{flex:0 0 auto!important;min-height:44px!important}
  body.lz273-social-page #postForm textarea[name="content"]{min-height:100px!important;max-height:220px!important;resize:vertical}
  body.lz273-social-page .rc235-media-actions{grid-template-columns:1fr 1fr!important}
  body.lz273-social-page #postForm>.primary{position:sticky;bottom:0;z-index:10;min-height:50px;margin-top:8px;box-shadow:0 -14px 30px #07080dcc}
  body.lz273-social-page.lz272-keyboard-open .nx249-mobile-dock,body.lz273-social-page.lz272-keyboard-open .mobile-dock{display:none!important}

  body.lz273-search-page .lenzarya-search{padding:8px 12px calc(92px + var(--lz273-safe-b))!important}
  body.lz273-search-page .lenzarya-search header{padding:18px 14px!important;border-radius:20px!important}
  body.lz273-search-page .lenzarya-search header>small,body.lz273-search-page .lenzarya-search header>p{display:none}
  body.lz273-search-page .lenzarya-search h1{font-size:1.65rem!important;letter-spacing:-.03em!important;margin:2px 0 14px!important}
  body.lz273-search-page .lenzarya-search form{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;margin-top:0!important}
  body.lz273-search-page .lenzarya-search input,body.lz273-search-page .lenzarya-search button{min-height:46px!important}
  body.lz273-search-page .lenzarya-search button{width:auto!important;padding-inline:15px!important}
  body.lz273-search-page .lenzarya-search section>a{padding:12px!important;border-radius:16px!important;gap:10px!important}
  body.lz273-search-page .lenzarya-search section>a>span{width:55px!important;flex:0 0 55px}

  body.lz273-profile-page .lz-profile{padding:8px 10px calc(88px + var(--lz273-safe-b))!important}
  body.lz273-profile-page .lz-hero{padding:18px 14px!important;border-radius:20px!important}
  body.lz273-profile-page .lz-head{gap:12px!important}
  body.lz273-profile-page .lz-avatar{width:72px!important;height:72px!important;font-size:28px!important}
  body.lz273-profile-page .lz-id{min-width:0!important;flex:1 1 calc(100% - 90px)!important}
  body.lz273-profile-page .lz-id h1{font-size:1.65rem!important;overflow-wrap:anywhere}
  body.lz273-profile-page .lz-actions{width:100%;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
  body.lz273-profile-page .lz-actions .lz-btn{width:100%;padding:10px 8px!important;font-size:.88rem;text-align:center}
  body.lz273-profile-page .lz-stats{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;margin-top:16px!important}
  body.lz273-profile-page .lz-stat{padding:10px 4px!important;border-radius:13px!important}
  body.lz273-profile-page .lz-stat b{font-size:17px!important}
  body.lz273-profile-page .lz-stat span{font-size:9px!important}
  body.lz273-profile-page .rc263-relations{overflow-x:auto;flex-wrap:nowrap!important;padding-bottom:4px;scrollbar-width:none}
  body.lz273-profile-page .rc263-relations::-webkit-scrollbar{display:none}
  body.lz273-profile-page .rc263-chip{flex:0 0 auto}
  body.lz273-profile-page .lz-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:3px!important}
  body.lz273-profile-page .lz-post{border-radius:6px!important}
  body.lz273-profile-page .lz-meta{font-size:9px!important;left:4px!important;right:4px!important;bottom:4px!important;padding:5px!important}
}
