/* ZIPPRI AI Hub R4: compact-menu legibility. Isolated to the public AI Hub header. */
body.hub-v58:not(.hubAuthenticated) #publicNav .hubcompact-panel {
  width: min(368px, calc(100vw - 32px));
  padding: 11px !important;
  gap: 6px !important;
  border-radius: 17px !important;
  border: 1px solid #b9d0e6 !important;
  background: linear-gradient(155deg, #fffefa 0%, #edf6fd 100%) !important;
  box-shadow: 0 24px 58px rgba(21, 57, 92, .21), 0 2px 12px rgba(21, 57, 92, .09) !important;
  color: #17324c !important;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
}
body.hub-v58:not(.hubAuthenticated) #publicNav .hubcompact-panel a {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 5px !important;
  min-width: 0 !important;
  min-height: 72px !important;
  padding: 12px 15px !important;
  border-radius: 11px !important;
  border: 1px solid rgba(57, 106, 151, .14) !important;
  background: rgba(255, 255, 255, .68) !important;
  text-decoration: none !important;
  text-shadow: none !important;
  letter-spacing: 0 !important;
  font: 600 16px/1.38 Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
  color: #18364e !important;
  transition: background-color .16s ease, border-color .16s ease !important;
}
body.hub-v58:not(.hubAuthenticated) #publicNav .hubcompact-panel a strong {
  display: block !important;
  font: 720 16px/1.35 Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
  letter-spacing: 0 !important;
  color: #17324d !important;
  text-shadow: none !important;
  overflow-wrap: anywhere;
}
body.hub-v58:not(.hubAuthenticated) #publicNav .hubcompact-panel a small {
  display: block !important;
  margin: 0 !important;
  font: 560 14px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
  letter-spacing: 0 !important;
  color: #405c72 !important;
  text-shadow: none !important;
  overflow-wrap: anywhere;
  opacity: 1 !important;
}
body.hub-v58:not(.hubAuthenticated) #publicNav .hubcompact-panel a:hover,
body.hub-v58:not(.hubAuthenticated) #publicNav .hubcompact-panel a:focus-visible {
  background: #e5f2fc !important;
  border-color: #589bc9 !important;
}
body.hub-v58:not(.hubAuthenticated) #publicNav .hubcompact-panel a:focus-visible {
  outline: 2px solid #2376ba !important;
  outline-offset: 2px !important;
}
html[data-theme="dark"] body.hub-v58:not(.hubAuthenticated) #publicNav .hubcompact-panel {
  background: linear-gradient(155deg, #0e2945, #08192d) !important;
  border-color: #356a99 !important;
  color: #f6faff !important;
  box-shadow: 0 24px 58px rgba(0, 0, 0, .5), 0 0 0 1px rgba(76, 157, 235, .1) !important;
}
html[data-theme="dark"] body.hub-v58:not(.hubAuthenticated) #publicNav .hubcompact-panel a {
  background: rgba(22, 58, 94, .58) !important;
  border-color: rgba(113, 176, 236, .18) !important;
  color: #f5faff !important;
}
html[data-theme="dark"] body.hub-v58:not(.hubAuthenticated) #publicNav .hubcompact-panel a strong {
  color: #f5faff !important;
}
html[data-theme="dark"] body.hub-v58:not(.hubAuthenticated) #publicNav .hubcompact-panel a small {
  color: #c6d8eb !important;
}
html[data-theme="dark"] body.hub-v58:not(.hubAuthenticated) #publicNav .hubcompact-panel a:hover,
html[data-theme="dark"] body.hub-v58:not(.hubAuthenticated) #publicNav .hubcompact-panel a:focus-visible {
  background: #1b466e !important;
  border-color: #75bafa !important;
}
html[data-theme="dark"] body.hub-v58:not(.hubAuthenticated) #publicNav .hubcompact-panel a:focus-visible {
  outline-color: #94d5ff !important;
}
@media(max-width:1320px) {
  body.hub-v58:not(.hubAuthenticated) #publicNav .hubcompact-panel,
  body.hub-v58:not(.hubAuthenticated) #publicNav .hubcompact-group:last-child .hubcompact-panel {
    width: auto !important;
    max-width: 100% !important;
    box-shadow: none !important;
    margin: 4px 5px 9px !important;
  }
  body.hub-v58:not(.hubAuthenticated) #publicNav .hubcompact-panel a {
    min-height: 74px !important;
  }
}
@media(max-width:580px) {
  body.hub-v58:not(.hubAuthenticated) #publicNav .hubcompact-panel {
    padding: 8px !important;
    gap: 5px !important;
  }
  body.hub-v58:not(.hubAuthenticated) #publicNav .hubcompact-panel a {
    min-height: 68px !important;
    padding: 11px 12px !important;
  }
}
@media(prefers-reduced-motion:reduce) {
  body.hub-v58:not(.hubAuthenticated) #publicNav .hubcompact-panel a {transition: none !important;}
}
