/* One centered navigation row stays visible while the workspace scrolls. */
.app-shell > .site-header {
  position: sticky;
  inset: auto;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(0, max-content) minmax(170px, 1fr);
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 12px clamp(17px, 2.5vw, 40px);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 15, 25, .98);
  transform: none;
  box-shadow: none;
}
.site-header .brand {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  padding: 0;
  font-size: 19px;
  letter-spacing: 1.5px;
}
.site-header .brand-mark { width: 36px; height: 36px; }
.header-actions { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; min-width: 0; }
.site-header .topbar-right { margin: 0; gap: 14px; }
.site-header .updated-at { display: none; }
.site-header .nav-list {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: safe center;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 6px;
  overflow-x: auto;
  scroll-padding-inline: 4px;
  scrollbar-width: thin;
}
.site-header .nav-item {
  flex: 0 0 auto;
  justify-content: center;
  gap: 9px;
  width: auto;
  min-height: 42px;
  padding: 10px 17px;
  font-size: 13px;
  white-space: nowrap;
}
.site-header .nav-count, .site-header .nav-dot { margin-left: 2px; }
.site-header + .main-shell { margin-left: 0; min-width: 0; }
.toast { left: 50%; }

@media (min-width: 1800px) {
  .site-header .updated-at { display: inline; }
}
@media (max-width: 1400px) {
  .site-header .nav-list { gap: 6px; }
  .site-header .nav-item { padding-inline: 12px; gap: 7px; }
}
@media (max-width: 1200px) {
  .app-shell > .site-header { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 12px; }
  .site-header .brand > span { display: none; }
  .site-header .refresh-button { width: 36px; height: 36px; padding: 8px; justify-content: center; }
  .site-header .refresh-button > span:last-child { display: none; }
}
@media (max-width: 600px) {
  .app-shell > .site-header { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 6px; padding: 8px 12px; }
  .site-header .brand { font-size: 16px; letter-spacing: .8px; gap: 7px; padding: 0; }
  .site-header .brand-mark { width: 29px; height: 29px; }
  .site-header .refresh-button { width: 34px; height: 34px; padding: 8px; justify-content: center; }
  .site-header .refresh-button > span:last-child { display: none; }
  .site-header .nav-list { gap: 7px; }
  .site-header .nav-item { min-height: 42px; padding: 10px 14px; font-size: 12px; }
}
