/* Community Hub 12.2.10 — last-in-cascade, compact edge-locked navigation.
   Overrides previous v12.2.5/v12.2.7 sizing without touching menu JS.
   Keep the Create Story fix from v12.2.9 unchanged. */
@media screen and (max-width: 950px) {
  html body { padding-bottom: 58px !important; }
  html { scroll-padding-bottom: 58px !important; }
  html body nav.mobile-bottom-nav,
  html[data-theme="dark"] body nav.mobile-bottom-nav,
  html[data-theme="light"] body nav.mobile-bottom-nav {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    inset-block-end: 0 !important;
    left: 0 !important;
    right: 0 !important;
    inset-inline: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: center !important;
    justify-items: stretch !important;
    align-content: center !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    box-sizing: border-box !important;
    padding: 0 5px !important;
    margin: 0 !important;
    border: 0 !important;
    border-top: 1px solid rgba(136, 177, 212, .30) !important;
    border-radius: 16px 16px 0 0 !important;
    overflow: hidden !important;
    box-shadow: 0 -3px 14px rgba(0,0,0,.20) !important;
    translate: none !important;
    transform: none !important;
    z-index: 99 !important;
    background: linear-gradient(180deg, #1b2b40 0%, #142133 100%) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  html[data-theme="light"] body nav.mobile-bottom-nav {
    background: #f5f7fb !important;
    border-top-color: rgba(56,82,116,.18) !important;
  }
  html body nav.mobile-bottom-nav > a.mobile-tab,
  html body nav.mobile-bottom-nav > button.mobile-create-trigger,
  html[data-theme="dark"] body nav.mobile-bottom-nav > a.mobile-tab,
  html[data-theme="dark"] body nav.mobile-bottom-nav > button.mobile-create-trigger {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    align-self: stretch !important;
    gap: 2px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 54px !important;
    min-height: 0 !important;
    max-height: 54px !important;
    padding: 2px 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    transform: none !important;
    font-size: inherit !important;
    text-decoration: none !important;
  }
  html body nav.mobile-bottom-nav > :is(a.mobile-tab, button.mobile-create-trigger) > span {
    display: block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 23px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 23px !important;
    transform: none !important;
  }
  html body nav.mobile-bottom-nav > :is(a.mobile-tab, button.mobile-create-trigger) > small {
    display: block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    height: 12px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 12px !important;
    white-space: nowrap !important;
  }
  html body nav.mobile-bottom-nav > .mobile-tab.current,
  html[data-theme="dark"] body nav.mobile-bottom-nav > .mobile-tab.current,
  html body nav.mobile-bottom-nav > button.mobile-create-trigger {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  html body nav.mobile-bottom-nav > .mobile-tab.current::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    bottom: auto !important;
    left: 32% !important;
    right: 32% !important;
    width: auto !important;
    height: 2px !important;
    border-radius: 0 0 3px 3px !important;
    background: #28ccd0 !important;
  }
  html body .mobile-create-sheet { bottom: 56px !important; }
}
