/* Selective Figma-inspired navigation. Keep the existing theme and page navigation. */
@media (min-width:821px){
  html body.user-mode .site-header.pro-top-header{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,max-content) minmax(0,1fr)!important;
    align-items:center!important;
    direction:ltr!important;
    gap:14px!important;
  }
  html body.user-mode .site-header.pro-top-header .top-nav{
    grid-column:2!important;
    grid-row:1!important;
    justify-self:center!important;
    justify-content:center!important;
    min-width:0!important;
    max-width:min(100%,64vw)!important;
    overflow-x:auto!important;
    direction:rtl!important;
  }
  html body.user-mode .site-header.pro-top-header .header-center-stats{
    position:static!important;
    grid-column:1!important;
    grid-row:1!important;
    justify-self:start!important;
    justify-content:flex-start!important;
    width:auto!important;
    max-width:100%!important;
    margin:0!important;
    transform:none!important;
    pointer-events:auto!important;
  }
  html body.user-mode .site-header.pro-top-header .header-actions{
    grid-column:3!important;
    grid-row:1!important;
    justify-self:end!important;
    justify-content:flex-start!important;
    direction:rtl!important;
    min-width:0!important;
    max-width:100%!important;
    flex-wrap:wrap!important;
    row-gap:6px!important;
  }
  html body.user-mode .site-header.pro-top-header .header-actions .login-link,
  html body.user-mode .site-header.pro-top-header .header-actions .header-user-chip-v16618,
  html body.user-mode .site-header.pro-top-header .header-actions [href*="logout"]{
    order:-10!important;
  }
  html body.user-mode .site-header.pro-top-header .header-actions .header-logout-v16915{
    order:-20!important;
  }
}

@media (min-width:821px) and (max-width:1199px){
  html body.user-mode .site-header.pro-top-header{
    grid-template-columns:minmax(176px,1fr) minmax(0,max-content) minmax(176px,1fr)!important;
    grid-template-rows:auto auto!important;
    height:auto!important;
    row-gap:6px!important;
  }
  html body.user-mode .site-header.pro-top-header .top-nav{
    max-width:min(100%,calc(100vw - 430px))!important;
  }
  html body.user-mode .site-header.pro-top-header .header-actions{
    grid-column:1/-1!important;
    grid-row:2!important;
    justify-self:end!important;
    justify-content:flex-start!important;
    max-width:100%!important;
  }
}

/* The mobile app already has a bottom navigation; match it to the dark site theme. */
@media (max-width:820px){
  html body.user-mode:not(.home-screen-lock-v16714) .mobile-app-tabbar-v16630{
    background:rgba(9,26,39,.96)!important;
    border:1px solid rgba(73,199,212,.23)!important;
    box-shadow:0 14px 38px rgba(0,0,0,.38)!important;
  }
  html body.user-mode:not(.home-screen-lock-v16714) .mobile-app-tabbar-v16630>a,
  html body.user-mode:not(.home-screen-lock-v16714) .mobile-app-tabbar-v16630>button{
    color:#c4d5dc!important;
    min-height:44px!important;
    touch-action:manipulation;
  }
  html body.user-mode:not(.home-screen-lock-v16714) .mobile-app-tabbar-v16630>.active{
    background:linear-gradient(135deg,rgba(25,191,204,.28),rgba(27,139,182,.22))!important;
    color:#ecfffe!important;
    outline:1px solid rgba(57,226,220,.44)!important;
  }
}
