.app-nav { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(520px, calc(100% - 24px)); z-index: 6; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 7px 8px; border: 1px solid #c9e2ed; border-radius: 22px; background: #fffffff2; backdrop-filter: blur(16px); box-shadow: 0 10px 32px #193f5224, 0 2px 8px #193f520a; gap: 5px; }
.app-nav button { min-height: 54px; padding: 5px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 15px; background: transparent; color: #4c697a; font-size: 12px; font-weight: 650; border: 1px solid transparent; }
.app-nav button .icon { width: 21px; height: 21px; }
.app-nav-label { display: inline-flex; align-items: center; gap: 4px; }
.app-nav button[aria-current="page"] { background: #e0f2f9; color: var(--accent); border-color: #abd6e5; box-shadow: 0 2px 6px #2568820d; font-weight: 750; }
.nav-unread { display: inline-block; background: #2994ed; color: white; font-size: 9px; padding: 0 5px; border-radius: 8px; margin-left: 3px; }
.social-view { padding: 20px; min-height: 460px; }
.social-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 15px; }
.social-heading h2 { font-size: 19px; margin: 0; }
#friends-view, #inbox-view, #account-view { padding-top: 12px; }
#friends-view .social-heading, #inbox-view .social-heading, #account-view .social-heading { min-height: 36px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #dcebf1; }
#friends-view .social-heading h2, #inbox-view .social-heading h2, #account-view .social-heading h2 { font-size: 18px; color: var(--ink); }
body.compact-social-header .hero, body.compact-social-header .hero.is-collapsed { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: calc(64px + env(safe-area-inset-top,0px)); padding: max(10px,env(safe-area-inset-top)) 18px 10px; }
body.compact-social-header .hero .brand-row { min-width: 0; }
body.compact-social-header .hero .brand { font-size: 18px; gap: 8px; }
body.compact-social-header .hero .brand-symbol { width: 32px; height: 32px; border-radius: 11px; }
body.compact-social-header .hero .brand-symbol .icon { width: 22px; height: 22px; }
body.compact-social-header .hero .greeting, body.compact-social-header .hero h1, body.compact-social-header .hero .hero-description, body.compact-social-header .hero .hero-stats, body.compact-social-header .hero .edition { display: none; }
body.compact-social-header .hero .language-control { position: static; display: flex; margin-left: auto; flex-shrink: 0; }
@media (min-width:960px) { body.compact-social-header .hero, body.compact-social-header .hero.is-collapsed { height: 64px; padding: 10px 26px; } }
.app-nav.has-apps{grid-template-columns:repeat(5,minmax(0,1fr))}
.connection-status { font-size: 12px; color: var(--muted); }
.connection-status.connected { color: #238366; }

@media (min-width: 960px) {
  .app-nav { width: min(600px, calc(100% - 40px)); padding: 7px 8px; gap: 5px; border: 1px solid #c9e2ed; box-shadow: 0 10px 32px #193f5224, 0 2px 8px #193f520a; }
  .app-nav button { font-size: 12px; min-height: 54px; font-weight: 650; color: #4c697a; border: 1px solid transparent; }
  .social-view { flex: 1; min-height: 0; overflow-y: auto; width: min(760px, 100%); margin: 0 auto; padding: 28px; }
}
