/* One compact top-level panel for public pages and the console. */
html:root, html:root[data-appearance] { --qq-nav-h: 74px; }
html body header.qq-nav[class],
html body header.qq-nav[class] * { box-sizing: border-box; }
html body header.qq-nav[class] {
  height: 60px;
  margin: 10px 16px 4px;
  top: 10px;
  border: 1px solid #e5e9e9;
  border-radius: 18px;
  background: #fff;
  color: #30383b;
  box-shadow: 0 6px 20px #263b3b14, 0 2px 5px #263b3b08;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: isolate;
}
html body header.qq-nav[class] .qq-nav-inner {
  display: flex;
  width: calc(100% - 32px);
  max-width: none;
  height: 100%;
  gap: 24px;
  align-items: center;
}
html body header.qq-nav[class] .qq-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 600;
  color: #252d30;
  text-decoration: none;
}
html body header.qq-nav[class] .qq-links {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 100%;
  margin: 0;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
html body header.qq-nav[class] .qq-links::-webkit-scrollbar { display: none; }
html body header.qq-nav[class] .qq-nav-inner :is(.qq-link,.qq-user,.qq-signin) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
  height: 36px;
  min-height: 36px;
  margin-top: 0;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #535e62;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  opacity: 1;
  box-shadow: none;
  transition: none;
}
html body header.qq-nav[class] .qq-nav-inner :is(.qq-link,.qq-user,.qq-signin):hover {
  background: #f2f6f6;
  color: #007c85;
}
html body header.qq-nav[class] .qq-nav-inner :is(.qq-link,.qq-user,.qq-signin)[aria-current] {
  color: #006e77;
  background: #e4f4f3;
  border-color: #d6eceb;
}
html body header.qq-nav[class] .qq-nav-inner .qq-user {
  gap: 8px;
  max-width: 170px;
  margin-left: auto;
  padding: 0 9px 0 5px;
  background: #f5f7f7;
  border-color: #ebeeee;
}
html body header.qq-nav[class] .qq-user > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body header.qq-nav[class] .qq-avatar { flex-shrink: 0; width: 26px; height: 26px; background: #e0f1f0; color: #007982; font-weight: 600; }
html body header.qq-nav[class] .qq-nav-inner .qq-signin { margin-left: auto; border-color: #dce5e5; }
html body header.qq-nav[class] :is(a,button):focus-visible { outline: 2px solid #008c95; outline-offset: -3px; }
html body header.qq-nav[class] .qq-menu-toggle { display: none; }
@media (max-width: 1100px) {
  html body header.qq-nav[class] .qq-nav-inner { gap: 14px; }
  html body header.qq-nav[class] .qq-nav-inner .qq-link { padding-inline: 10px; }
}
@media (max-width: 900px) {
  html:root, html:root[data-appearance] { --qq-nav-h: 68px; }
  html body header.qq-nav[class] { height: 56px; margin: 8px 8px 4px; top: 8px; border-radius: 15px; }
  html body header.qq-nav[class] .qq-nav-inner { width: calc(100% - 20px); gap: 8px; }
  html body header.qq-nav[class] .qq-logo { font-size: 15px; gap: 6px; }
  html body header.qq-nav[class] .qq-menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 36px; padding: 0 8px; margin-left: auto; flex-shrink: 0; white-space: nowrap;
    border: 1px solid #e4e9e9; border-radius: 10px;
    color: #535e62; background: #f5f7f7; font: inherit; font-size: 12px; cursor: pointer;
  }
  html body header.qq-nav[class] .qq-menu-toggle[aria-expanded='true'] { color: #006e77; background: #e4f4f3; border-color: #d6eceb; }
  html body header.qq-nav[class] .qq-links {
    display: none;
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    height: auto; max-height: calc(100svh - 90px); overflow: auto;
    margin: 0; padding: 12px; gap: 6px;
    border: 1px solid #e5e9e9; border-radius: 16px;
    background: #fff; box-shadow: 0 8px 24px #263b3b1a;
  }
  html body header.qq-nav[class][data-menu-open] .qq-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  html body header.qq-nav[class] .qq-nav-inner .qq-link { height: 40px; }
  html body header.qq-nav[class] .qq-nav-inner :is(.qq-user,.qq-signin) { margin-left: 0; }
  html body header.qq-nav[class] .qq-user > span:last-child { display: none; }
  html body header.qq-nav[class] .qq-nav-inner .qq-user { width: 36px; padding: 0; }
}

@media (max-width: 400px) {
  html body header.qq-nav[class] .qq-logo { font-size: 13px; }
  html body header.qq-nav[class] .qq-nav-inner .qq-signin { padding-inline: 10px; }
}
