.nav__toggle {
  list-style: none;
  cursor: pointer;
}

.nav__toggle::-webkit-details-marker {
  display: none;
}

.nav__chevron {
  display: inline-flex;
  margin-left: auto;
  color: var(--color-muted);
  transition: transform var(--motion);
}

details.nav__group:not([open]) > .nav__toggle .nav__chevron {
  transform: rotate(-90deg);
}

.nav__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav__badge {
  flex: 0 0 auto;
  margin-left: auto;
}

.nav__badge:empty {
  display: none;
}

.nav__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--tone-danger-fg);
}

.nav__dot--warning {
  background: var(--tone-warning-fg);
}

.nav__group--shortcuts:not(:has(a)) {
  display: none;
}

.nav__link--shortcut {
  min-height: 30px;
  font-size: var(--text-sm);
}

.nav__link--shortcut svg {
  color: var(--color-muted);
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  height: 28px;
  padding: 0 var(--space-1) 0 var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: var(--header-control);
  color: var(--header-muted);
  font-size: var(--text-sm);
  cursor: text;
}

.topbar-search:hover {
  background: var(--header-control-hover);
  color: var(--header-fg);
}

.topbar-search__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

kbd,
.topbar-search__key {
  display: inline-flex;
  align-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-badge);
  background: var(--color-page);
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
}

.topbar-search__key {
  border-color: transparent;
  background: var(--header-bg);
  color: var(--header-muted);
}

.env-label {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-badge);
  background: var(--tone-warning-bg);
  color: var(--tone-warning-fg);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
}

.menu__badge {
  margin-left: auto;
}

.sidebar-staff {
  display: none;
}

.bell {
  position: relative;
}

.bell__button {
  position: relative;
}

.bell__count {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--tone-danger-fg);
  color: var(--color-page);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.bell__panel {
  width: min(380px, calc(100vw - 32px));
  max-height: 520px;
  padding: 0;
}

.bell__head,
.bell__filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-3) 0;
}

.bell__filter {
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
}

.bell__filter .select {
  width: 100%;
}

.bell__title {
  font-weight: 600;
  color: var(--color-ink);
}

.bell__list {
  margin: 0;
  padding: var(--space-1);
  list-style: none;
}

.bell__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px var(--space-2);
  width: 100%;
  padding: var(--space-2);
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--color-body);
  font: inherit;
  font-size: var(--text-sm);
  text-align: left;
  cursor: pointer;
}

.bell__item:hover {
  background: var(--color-nav-hover);
}

.bell__item--unread .bell__text {
  color: var(--color-ink);
  font-weight: 600;
}

.bell__kind {
  grid-column: 1 / -1;
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.bell__item time {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.bell__empty {
  padding: var(--space-4) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-muted);
}
