.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  height: 52px;
  background: rgb(17 24 39 / 72%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  box-shadow: 0 4px 24px rgb(0 0 0 / 15%);
}

.site-brand {
  color: #e9d5ff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand span {
  color: #fff;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav-links a {
  color: #ddd6fe;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.site-nav-links a:hover {
  background: rgb(255 255 255 / 10%);
  color: #fff;
}

.site-nav-links a.is-active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 14px rgb(99 102 241 / 35%);
}

body.has-site-nav {
  padding-top: 52px;
}

body.has-site-nav .note-dock {
  top: 68px;
  height: calc(100vh - 68px - 16px);
  max-height: calc(100vh - 68px - 16px);
}

body.has-site-nav #mail-dock {
  top: 68px;
  height: calc(100vh - 68px - 16px);
}

@media (max-width: 640px) {
  .site-header {
    padding: 0 12px;
  }
  .site-brand {
    font-size: 0.82rem;
  }
  .site-nav-links a {
    padding: 7px 10px;
    font-size: 0.8rem;
  }
}
