
/* V42: requested UI fixes */
/* V44: restore the exact gray slider fill of V41. */
#loginView .npxgate-slide-fill{
  background:linear-gradient(90deg,#cecece,#acacac) !important;
  background-size:auto !important;
  background-position:0 0 !important;
  border-radius:inherit !important;
  filter:none !important;
  box-shadow:none !important;
  animation:none !important;
}

/* Mobile-only brand topbar */
#appView .npx-mobile-topbar{display:none}
@media (max-width:760px){
  #appView > header.topbar.topbar-premium-header{display:none !important}
  #appView > main#pageRoot.page-root{padding-top:12px !important}
  #appView .npx-mobile-topbar{
    display:flex !important;align-items:center !important;justify-content:space-between !important;
    gap:12px !important;margin:10px 10px 8px !important;padding:14px 16px !important;
    border:1px solid rgba(0,0,0,.08) !important;border-radius:26px !important;
    background:rgba(248,248,248,.96) !important;
    box-shadow:0 12px 28px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.9) !important;
    backdrop-filter:blur(16px) saturate(1.04) !important;-webkit-backdrop-filter:blur(16px) saturate(1.04) !important;
  }
  #appView .npx-mobile-topbar-brand{display:flex !important;align-items:center !important;gap:12px !important;min-width:0 !important;flex:1 1 auto !important}
  #appView .npx-mobile-topbar-logo{
    width:42px !important;height:42px !important;min-width:42px !important;overflow:hidden !important;
    display:grid !important;place-items:center !important;border-radius:14px !important;
    background:#111 !important;border:1px solid rgba(0,0,0,.12) !important;box-shadow:0 6px 16px rgba(0,0,0,.12) !important;
  }
  #appView .npx-mobile-topbar-logo img{display:block !important;width:100% !important;height:100% !important;object-fit:cover !important}
  #appView .npx-mobile-topbar-copy{min-width:0 !important;display:flex !important;flex-direction:column !important;gap:2px !important}
  #appView .npx-mobile-topbar-copy strong{
    color:#111 !important;font-size:14px !important;line-height:1.05 !important;font-weight:600 !important;letter-spacing:-.02em !important;
    white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;
  }
  #appView .npx-mobile-topbar-copy span{
    color:#666 !important;font-size:10px !important;line-height:1 !important;font-weight:500 !important;letter-spacing:.12em !important;
  }
  #appView .npx-mobile-topbar-logout{
    min-height:42px !important;padding:0 16px !important;border-radius:16px !important;border:1px solid rgba(0,0,0,.08) !important;
    background:#fff !important;color:#1a1a1a !important;box-shadow:none !important;font-size:12px !important;font-weight:500 !important;
    display:inline-flex !important;align-items:center !important;justify-content:center !important;flex:0 0 auto !important;
  }
  #appView .npx-mobile-topbar-logout:active{transform:translateY(1px) !important}
}

/* Bottom nav: inactive items must NOT have white framed icon tiles */
#appView #mobileNav .mobile-nav-item .mobile-nav-glyph{
  background:transparent !important;border-color:transparent !important;box-shadow:none !important;
}
#appView #mobileNav .mobile-nav-item.active .mobile-nav-glyph{
  background:#111 !important;border-color:#111 !important;color:#fff !important;box-shadow:0 10px 22px rgba(0,0,0,.16) !important;
}
#appView #mobileNav .mobile-nav-item:hover .mobile-nav-glyph,
#appView #mobileNav .mobile-nav-item:focus-visible .mobile-nav-glyph{
  background:transparent !important;border-color:transparent !important;box-shadow:none !important;
}

/* Runtime/server status: tighter proportion + icon spacing + warning ring */
#appView #hostCard .runtime-grid{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:14px !important;
}
#appView #hostCard .runtime-stat{
  display:grid !important;
  grid-template-columns:56px minmax(0,1fr) !important;
  align-items:center !important;
  align-content:center !important;
  justify-content:initial !important;
  min-height:92px !important;
  height:auto !important;
  gap:14px !important;
  padding:14px !important;
}
#appView #hostCard .runtime-stat .runtime-copy{
  display:flex !important;flex-direction:column !important;justify-content:center !important;gap:5px !important;min-width:0 !important;
}
#appView #hostCard .runtime-stat .runtime-meta{
  margin-bottom:0 !important;justify-content:flex-start !important;gap:8px !important;
}
#appView #hostCard .runtime-stat .runtime-meta span{
  font-size:11px !important;line-height:1.1 !important;letter-spacing:0 !important;font-weight:500 !important;color:#686868 !important;
}
#appView #hostCard .runtime-copy > strong{
  margin:0 !important;font-size:18px !important;line-height:1.12 !important;letter-spacing:-.02em !important;color:#1f1f1f !important;
}
#appView #hostCard .runtime-icon{
  width:56px !important;height:56px !important;border-radius:18px !important;
  color:#555 !important;background:linear-gradient(180deg,#f7f7f7,#ececec) !important;border:1px solid #dfdfdf !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92), 0 6px 16px rgba(0,0,0,.05) !important;
}
#appView #hostCard .runtime-icon svg{width:22px !important;height:22px !important;stroke-width:1.85 !important}
#appView #hostCard .runtime-icon-signal{
  width:14px !important;height:14px !important;right:-3px !important;top:-3px !important;border:2px solid #fff !important;
}
#appView #hostCard .runtime-stat[data-health="watch"] .runtime-icon,
#appView #hostCard .runtime-stat[data-health="abnormal"] .runtime-icon{
  overflow:visible !important;
}
#appView #hostCard .runtime-stat[data-health="watch"] .runtime-icon::after,
#appView #hostCard .runtime-stat[data-health="abnormal"] .runtime-icon::after{
  content:"";position:absolute;inset:-4px;border-radius:22px;border:2px solid currentColor;opacity:.55;pointer-events:none;
  animation:npxV42StatusRing 1.55s ease-out infinite;
}
#appView #hostCard .runtime-stat[data-health="watch"] .runtime-icon{color:#f59e0b !important;border-color:rgba(245,158,11,.28) !important;box-shadow:0 0 0 1px rgba(245,158,11,.12),0 8px 18px rgba(245,158,11,.14) !important}
#appView #hostCard .runtime-stat[data-health="abnormal"] .runtime-icon{color:#ef4444 !important;border-color:rgba(239,68,68,.28) !important;box-shadow:0 0 0 1px rgba(239,68,68,.12),0 8px 18px rgba(239,68,68,.14) !important}
#appView #hostCard .runtime-stat[data-health="abnormal"] .runtime-icon::after{animation-duration:1.05s}
@keyframes npxV42StatusRing{0%{transform:scale(.92);opacity:.58}75%{transform:scale(1.06);opacity:.12}100%{transform:scale(1.11);opacity:0}}
@media (max-width:760px){
  #appView #hostCard .runtime-grid{gap:10px !important;margin-top:10px !important;align-items:stretch !important}
  #appView #hostCard .runtime-stat{
    display:grid !important;
    flex-direction:row !important; /* neutralize legacy mobile column layout */
    grid-template-columns:44px minmax(0,1fr) !important;
    grid-template-rows:auto !important;
    align-items:center !important;
    align-content:center !important;
    justify-content:initial !important;
    height:92px !important;
    min-height:92px !important;
    gap:10px !important;
    padding:10px !important;
    border-radius:18px !important;
  }
  /* Legacy V34 used more-specific min-height rules for each resource type. */
  #appView #hostCard .runtime-stat.runtime-cpu,
  #appView #hostCard .runtime-stat.runtime-ram,
  #appView #hostCard .runtime-stat.runtime-ssd,
  #appView #hostCard .runtime-stat.runtime-uptime{
    display:grid !important;
    height:92px !important;
    min-height:92px !important;
  }
  #appView #hostCard .runtime-icon{width:44px !important;height:44px !important;border-radius:15px !important}
  #appView #hostCard .runtime-icon svg{width:19px !important;height:19px !important}
  #appView #hostCard .runtime-stat .runtime-copy{align-self:center !important;gap:5px !important}
  #appView #hostCard .runtime-stat .runtime-meta span{font-size:10px !important;line-height:1.25 !important}
  #appView #hostCard .runtime-copy > strong{font-size:15px !important;line-height:1.15 !important}
}
@media (max-width:430px){
  #appView #hostCard .runtime-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  #appView #hostCard .runtime-stat{grid-template-columns:40px minmax(0,1fr) !important;gap:8px !important;padding:9px !important;height:90px !important;min-height:90px !important}
  #appView #hostCard .runtime-icon{width:40px !important;height:40px !important;border-radius:14px !important}
  #appView #hostCard .runtime-copy > strong{font-size:14px !important}
}
@media (max-width:350px){
  #appView #hostCard .runtime-stat{grid-template-columns:34px minmax(0,1fr) !important;gap:7px !important;padding:8px !important}
  #appView #hostCard .runtime-icon{width:34px !important;height:34px !important;border-radius:12px !important}
  #appView #hostCard .runtime-copy > strong{font-size:13px !important}
  #appView #hostCard .runtime-stat .runtime-meta span{font-size:9px !important}
}
@media (prefers-reduced-motion:reduce){
  #appView #hostCard .runtime-stat[data-health="watch"] .runtime-icon::after,
  #appView #hostCard .runtime-stat[data-health="abnormal"] .runtime-icon::after,
  #appView #hostCard .runtime-icon-signal::after{animation:none !important;opacity:.24 !important;transform:none !important}
}
