/* Zippri AI Hub: public header control visibility and responsive usability.
 * Scoped to the public marketing page; authenticated workspace untouched.
 */
body.hub-v58:not(.hubAuthenticated) .top-shell{
  grid-template-columns:minmax(165px,210px) minmax(175px,230px) minmax(0,1fr) auto!important;
  gap:9px!important;
}
body.hub-v58:not(.hubAuthenticated) #publicNav{
  min-width:0!important;
  max-width:100%!important;
  justify-content:flex-start!important;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:thin;
  gap:13px!important;
  padding:6px 2px;
  scroll-behavior:smooth;
}
body.hub-v58:not(.hubAuthenticated) #publicNav a{
  flex:none;
  font-size:12px!important;
  white-space:nowrap;
}
body.hub-v58:not(.hubAuthenticated) .top-shell .header-actions{
  justify-self:end;
  min-width:0;
  position:relative;
  gap:5px;
  white-space:nowrap;
}
body.hub-v58:not(.hubAuthenticated) #fxToggle{display:none!important}
body.hub-v58:not(.hubAuthenticated) .header-actions #theme{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-width:65px;
  height:42px;
  padding:0 8px;
  font-size:12px;
}
body.hub-v58:not(.hubAuthenticated) #topAccess{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:122px;
  height:42px;
  padding:0 10px;
  font-size:13px;
  text-decoration:none;
}
body.hub-v58:not(.hubAuthenticated) #topAccess b{font-size:15px}
@media(max-width:1180px){
 body.hub-v58:not(.hubAuthenticated) .top-shell{
   grid-template-columns:minmax(0,1fr) auto!important;
   grid-template-rows:auto auto;
   gap:8px!important;
 }
 body.hub-v58:not(.hubAuthenticated) .top-shell .brand{grid-column:1;grid-row:1}
 body.hub-v58:not(.hubAuthenticated) .top-shell .mode-switch{grid-row:2;grid-column:1/-1;width:100%!important}
 body.hub-v58:not(.hubAuthenticated) .top-shell .header-actions{
   grid-row:1;grid-column:2;right:auto!important;top:auto!important;
 }
 body.hub-v58:not(.hubAuthenticated) #publicNav{display:none!important}
}
@media(max-width:620px){
 body.hub-v58:not(.hubAuthenticated) .top-shell{padding:8px 10px!important}
 body.hub-v58:not(.hubAuthenticated) .top-shell .brand{gap:6px}
 body.hub-v58:not(.hubAuthenticated) .top-shell .brand-mark{width:38px!important;height:38px!important}
 body.hub-v58:not(.hubAuthenticated) .top-shell .brand-copy strong{font-size:15px!important;letter-spacing:2px!important}
 body.hub-v58:not(.hubAuthenticated) .header-actions #theme{
   width:37px;min-width:37px;padding:0 6px;font-size:0;
 }
 body.hub-v58:not(.hubAuthenticated) #theme .sun-glyph{font-size:18px;margin:0}
 body.hub-v58:not(.hubAuthenticated) #topAccess{min-width:88px;max-width:111px;padding:0 8px;font-size:12px}
 body.hub-v58:not(.hubAuthenticated) #topAccess b{display:none}
 body.hub-v58:not(.hubAuthenticated) .mode-switch{margin-top:2px}
}
@media(prefers-reduced-motion:reduce){
 body.hub-v58:not(.hubAuthenticated) #publicNav{scroll-behavior:auto}
}

/* Keep all public controls clear of the fixed multi-row mobile header
 * during keyboard focus, hash navigation and browser scrollIntoView.
 */
html:has(body.hub-v58:not(.hubAuthenticated)){scroll-padding-top:110px}
body.hub-v58:not(.hubAuthenticated) :is(#access,#build,#hf-experience,#publicCatalogSearch,#publicCatalogBtn,#publicCatalogClear,#signupTab,#loginTab,#signupForm,#loginForm){scroll-margin-top:130px}
@media(max-width:900px){
 html:has(body.hub-v58:not(.hubAuthenticated)){scroll-padding-top:170px}
 body.hub-v58:not(.hubAuthenticated) :is(#access,#build,#hf-experience,#publicCatalogSearch,#publicCatalogBtn,#publicCatalogClear,#signupTab,#loginTab,#signupForm,#loginForm){scroll-margin-top:175px}
}
