/* One header geometry for React routes and generated HTML. */
.shared-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid hsl(var(--theme-line));
  background: hsl(var(--theme-paper));
  color: hsl(var(--theme-ink));
  font-family: Inter, system-ui, sans-serif;
}
.shared-header-inner {
  width: 100%;
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
}
.shared-header-start,
.shared-header-actions {
  display: flex;
  align-items: center;
}
.shared-header-start {
  gap: 32px;
}
.shared-header-actions {
  gap: 16px;
}
.shared-header-primary,
.shared-header-secondary {
  display: flex;
  align-items: center;
  gap: 4px;
}
.shared-header .shared-header-link {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: hsl(var(--theme-ink-muted));
  text-decoration: none;
  white-space: nowrap;
}
.shared-header .shared-header-link:hover,
.shared-header .shared-header-link.active,
.shared-header .shared-header-link[aria-current="page"] {
  background: hsl(var(--theme-surface-sunken));
  color: hsl(var(--theme-ink));
}
.shared-header-secondary .shared-header-link {
  padding: 0 6px;
  font-weight: 400;
  color: hsl(var(--theme-ink-faint));
}
.shared-header-account {
  font-size: 13px;
  font-weight: 500;
  color: hsl(var(--theme-ink));
  white-space: nowrap;
  text-decoration: none;
  min-width: 42px;
}
.shared-header-search {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid hsl(var(--theme-line-strong));
  border-radius: 6px;
  padding: 0 12px;
  background: hsl(var(--theme-surface));
  color: hsl(var(--theme-ink-faint));
  font-size: 13px;
  line-height: 20px;
  text-decoration: none;
  box-sizing: border-box;
}
.shared-header-search svg {
  width: 14px;
  height: 14px;
}
.shared-header-search-key {
  font-family: monospace;
  font-size: 10px;
}
.shared-header-menu {
  display: none;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: hsl(var(--theme-ink-muted));
  cursor: pointer;
}
.shared-header-menu svg {
  width: 20px;
  height: 20px;
}
.shared-header-mobile {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  max-height: calc(100dvh - 52px);
  overflow: auto;
  border-bottom: 1px solid hsl(var(--theme-line));
  background: hsl(var(--theme-paper));
}
.shared-header-mobile[hidden] {
  display: none;
}
.shared-header-mobile-inner {
  max-width: var(--page-width);
  padding: 8px var(--page-gutter);
  margin: auto;
  display: flex;
  flex-direction: column;
}
.shared-header-mobile-inner a {
  padding: 12px 0 !important;
  height: auto !important;
  font-size: 14px !important;
  color: hsl(var(--theme-ink-muted));
  text-decoration: none;
  border-bottom: 1px solid hsl(var(--theme-line));
}
.shared-header-mobile-inner a:last-child {
  border-bottom: 0;
}
@media (max-width: 1199px) {
  .shared-header-primary,
  .shared-header-secondary {
    display: none;
  }
  .shared-header-menu {
    display: flex;
  }
}
@media (min-width: 1200px) {
  .shared-header-mobile {
    display: none;
  }
}
@media (max-width: 639px) {
  .shared-header-actions {
    gap: 8px;
  }
  .shared-header-inner {
    gap: 12px;
  }
  .shared-header-search-label,
  .shared-header-search-key {
    display: none;
  }
  .shared-header-search {
    padding: 0 10px;
  }
}
.shared-header {letter-spacing:-0.011em;-webkit-font-smoothing:antialiased;}
.shared-header-start > a {display:flex;align-items:center;flex-shrink:0;}
.shared-header .theme-toggle svg {stroke-width:1.5;}
/* Reserve the same scrollbar rail on short and long routes. */
html {overflow-y:scroll;scrollbar-gutter:stable;}
html::-webkit-scrollbar {width:10px;}
html::-webkit-scrollbar-track {background:transparent;}
html::-webkit-scrollbar-thumb {background:hsl(var(--theme-line-strong));border:2px solid hsl(var(--theme-paper));border-radius:5px;}

.shared-header {display:block;}
.shared-header .brand-mark {display:inline-flex;align-items:flex-start;white-space:nowrap;}
.shared-header .brand-mark img {display:block;flex-shrink:0;}
.shared-header .brand-word {filter:var(--wordmark-filter);}
.shared-header {height:53px;flex-shrink:0;}
