:root { --bar-min: clamp(62px, 4.7vw, 82px); }
html { scroll-padding-top: var(--bar-height, var(--bar-min)); }
body { padding-top: var(--bar-height, var(--bar-min)); }
body > header#siteBar[id] {
  position: fixed; inset: 0 0 auto; z-index: 20; width: 100%; box-sizing: border-box;
  min-height: var(--bar-min); height: auto; display: flex; flex-wrap: nowrap;
  align-items: center; gap: clamp(18px, 2.4vw, 46px); padding: 7px 4%;
  background: #000; color: #fff; border: 0; overflow: visible;
  font: 600 16px/1.35 "Segoe UI", Arial, sans-serif;
}
#siteBar [hidden] { display: none !important; }
#siteBar .brand { display: flex; align-items: center; flex: none; }
#siteBar .brand img { display: block; width: clamp(104px, 8.3vw, 160px); height: auto; }
#siteBar nav, #siteBar .tools, #siteBar .more-wrap {
  display: flex; align-items: center; height: auto; flex-wrap: nowrap;
}
#siteBar nav { gap: clamp(12px, 1.65vw, 32px); }
#siteBar a { color: inherit; text-decoration: none; }
#siteBar nav > a, #siteBar .more-menu a { font: inherit; white-space: nowrap; }
#siteBar button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 44px; min-height: 44px; padding: 4px; background: transparent;
  border: 0; color: inherit; font: inherit; cursor: pointer;
}
#siteBar .tools { margin-left: auto; gap: clamp(8px, 1.8vw, 32px); }
#siteBar .tools svg {
  width: 26px; height: 26px; stroke: currentColor; fill: none;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
#siteBar .account { white-space: nowrap; font-size: clamp(16px, 1.35vw, 25px); font-weight: 700; }
#siteBar .account[data-avatar]::before {
  content: attr(data-avatar); display: grid; place-items: center;
  width: 1.8em; height: 1.8em; border-radius: 50%; color: #fff;
  background: linear-gradient(140deg, #ffa44f, #bc440a);
}
#siteBar .account[data-avatar] svg { display: none; }
#siteBar .more-wrap { position: relative; }
#siteBar .nav-more { font-size: 24px; padding-bottom: 10px; }
#siteBar .more-menu {
  position: absolute; z-index: 1; inset: 100% auto auto 0; box-sizing: border-box;
  width: max-content; min-width: 205px; max-height: calc(100dvh - var(--bar-height, var(--bar-min)));
  overflow: auto; padding: 6px; background: #171717; border-radius: 14px;
  box-shadow: 0 12px 30px #0008;
}
#siteBar .more-menu a { display: block; padding: 11px 14px; border-radius: 10px; }
#siteBar .more-menu a:hover, #siteBar .more-menu a:focus-visible { background: #303030; }
#siteBar a:hover, #siteBar button:hover { color: #ff984d; }
@media (max-width: 760px) {
  :root { --bar-min: 58px; }
  body > header#siteBar[id] { padding: 6px 12px; gap: 6px; }
  #siteBar nav > a, #siteBar .account span { display: none; }
  #siteBar .tools { gap: 2px; }
  #siteBar .more-menu { position: fixed; inset: var(--bar-height, var(--bar-min)) auto auto 12px; max-width: calc(100vw - 24px); }
}
