.docs-page-with-topbar {
  padding-top: 64px;
}

.docs-page-with-topbar [hidden] {
  display: none !important;
}

.docs-topbar {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(23, 37, 43, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #17252b;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(16px);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Apple SD Gothic Neo", sans-serif;
}

.docs-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  min-width: 0;
  color: #19323c;
  font-size: 0.98rem;
  font-weight: 850;
  text-decoration: none;
}

.docs-brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(63, 124, 127, 0.16);
}

.docs-topbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: 0;
}

.docs-nav-link,
.docs-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 0.82rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.docs-nav-link {
  color: #ffffff;
  border: 1px solid #19323c;
  background: #19323c;
}

.docs-logout {
  color: #5f6f78;
  border: 1px solid rgba(63, 124, 127, 0.18);
  background: rgba(255, 255, 255, 0.78);
}

.docs-access-user {
  max-width: min(260px, 30vw);
  overflow: hidden;
  color: #5f6f78;
  font-size: 0.78rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-page-with-topbar .sidebar,
.docs-page-with-topbar .viewer {
  height: calc(100vh - 64px);
}

@media (max-width: 720px) {
  .docs-topbar {
    min-height: 58px;
    padding: 0 12px;
  }

  .docs-page-with-topbar {
    padding-top: 58px;
  }

  .docs-page-with-topbar .sidebar,
  .docs-page-with-topbar .viewer {
    height: calc(100vh - 58px);
  }

  .docs-brand-lockup span {
    display: none;
  }

  .docs-topbar-actions {
    gap: 0.38rem;
  }

  .docs-nav-link,
  .docs-logout {
    min-height: 34px;
    padding: 0.38rem 0.56rem;
    font-size: 0.74rem;
  }

  .docs-access-user {
    max-width: 34vw;
    font-size: 0.68rem;
  }
}
