:root {
  --scalar-custom-header-height: 45px;
  --header-accent-color: var(--scalar-color-accent, #666666);
}

.custom-header {
  height: var(--scalar-custom-header-height);
  background-color: var(--scalar-background-1);
  box-shadow: inset 0 -1px 0 var(--scalar-border-color);
  color: var(--scalar-color-1);
  font-size: var(--scalar-font-size-2);
  padding: 0 18px;
  position: sticky;
  justify-content: space-between;
  top: 0;
  z-index: 100;
}

.custom-header,
.custom-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.custom-header select {
  background: var(--scalar-background-2);
  color: var(--header-accent-color);
  border: 1px solid var(--header-accent-color);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: var(--scalar-font-size-2);
  cursor: pointer;
}

.custom-header select:focus {
  outline: none;
  box-shadow: 0 0 5px color-mix(in srgb, var(--header-accent-color) 30%, transparent);
}

.custom-header label {
  color: var(--header-accent-color);
  font-size: var(--scalar-font-size-2);
}

/* Dark mode - use lime green accent */
.dark-mode .custom-header select,
.dark-mode .custom-header label {
  --header-accent-color: #c7ff6d;
}

.dark-mode .custom-header select:focus {
  box-shadow: 0 0 5px rgba(199, 255, 109, 0.3);
}
