.notes-shell-page {
  --notes-shell-height: 46px;
}

.notes-sitebar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--notes-shell-height);
  padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(31, 41, 55, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: #25313d;
  font: 700 14px/1.35 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.notes-sitebar a {
  color: inherit;
  text-decoration: none;
  border: 0;
}

.notes-sitebar a:hover {
  color: #165f73;
  text-decoration: none;
  border: 0;
}

.notes-sitebar__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  white-space: nowrap;
}

.notes-sitebar__mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #1f6678;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.42);
}

.notes-sitebar__links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.notes-sitebar__link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(31, 41, 55, 0.13) !important;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
  color: #4f5d6a !important;
  white-space: nowrap;
}

.notes-sitebar__link:hover {
  border-color: rgba(31, 102, 120, 0.38) !important;
  background: rgba(232, 244, 247, 0.88);
  color: #165f73 !important;
}

.notes-shell-page .sidebar {
  top: var(--notes-shell-height);
  height: calc(100vh - var(--notes-shell-height));
}

.notes-shell-page .mobile-tools {
  top: var(--notes-shell-height);
}

@media (max-width: 720px) {
  .notes-sitebar {
    gap: 10px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .notes-sitebar__links {
    gap: 6px;
  }

  .notes-sitebar__link {
    min-height: 28px;
    padding: 3px 8px;
  }
}

@media print {
  .notes-sitebar {
    display: none;
  }

  .notes-shell-page .sidebar,
  .notes-shell-page .mobile-tools {
    top: 0;
    height: auto;
  }
}
