.site-top-spacer { display: none; }

@media (max-width: 767px) {
  .site-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 1px 0 rgba(226, 232, 240, 0.9);
  }

  .site-top-spacer {
    display: block;
    height: var(--site-top-height, 108px);
    flex-shrink: 0;
  }

  .site-top .header {
    position: static;
    height: auto;
    min-height: 0;
    padding: 0.55rem 0.75rem;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  }

  .site-top .scroll-nav {
    position: static;
    margin-top: 0;
    top: auto;
    min-height: var(--nav-bar-height, 42px);
    padding: 0.2rem 0.5rem 0.35rem;
    background: #fff;
    backdrop-filter: none;
    border-bottom: none;
  }

  .logo { min-width: 0; flex: 1; overflow: hidden; }
  .logo > div { min-width: 0; overflow: hidden; }
  .logo-text {
    font-size: 0.84rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }
  .logo-sub { display: none; }
  .logo-img { width: 36px; height: 36px; }
  .scroll-nav-inner { gap: 0.2rem; }
  .scroll-nav a {
    padding: 0.55rem 0.65rem;
    font-size: 0.72rem;
    letter-spacing: -0.01em;
  }

  .btn-primary.is-user-panel .btn-user-name {
    display: none;
  }

  .btn-primary.is-user-panel {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    align-items: center;
    gap: 0;
    overflow: visible;
  }

  .btn-primary.is-user-panel svg {
    display: block;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    fill: currentColor;
    stroke: none;
  }
}

@media (max-width: 400px) {
  .logo-text { max-width: 11.5rem; }
}
