/* Left-nav label filter — inherit Valentus (--valentus-*) or Default UI panel/body tokens. */

.nav-panel-menu[data-panel='menu'] .nav-tree-filter {
  position: sticky;
  top: 0;
  z-index: 1;
  box-sizing: border-box;
  padding: 0.45rem var(--valentus-mast-pad-h, 0.75rem) 0.3rem;
  background: transparent;
  color: inherit;
}

@media screen and (max-width: 1023.5px) {
  .nav-panel-menu[data-panel='menu'] .nav-tree-filter {
    background: var(--valentus-canvas, var(--body-background, inherit));
  }
}

.nav-tree-filter-input {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0.4rem 0.55rem;
  color-scheme: inherit;
  font: inherit;
  font-family: var(--valentus-font, var(--body-font-family, inherit));
  font-size: 0.875rem;
  line-height: 1.35;
  border: 1px solid var(--valentus-border, var(--panel-border-color, var(--color-gray-50, currentColor)));
  border-radius: var(--valentus-radius, var(--valentus-radius-sm, 0.25rem));
  background: var(--valentus-elevated, var(--body-background, inherit));
  color: var(--valentus-ink, var(--body-font-color, inherit));
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.nav-tree-filter-input::-webkit-search-decoration,
.nav-tree-filter-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.nav-tree-filter-input::placeholder {
  color: var(--valentus-ink-muted, var(--body-font-color-alt, var(--color-gray-70, inherit)));
  opacity: 0.85;
}

.nav-tree-filter-input:hover {
  background: var(--valentus-elevated, var(--body-background, inherit));
}

.nav-tree-filter-input:focus {
  outline: none;
  border-color: var(--valentus-accent, var(--link-font-color, currentColor));
  box-shadow: 0 0 0 3px var(--valentus-accent-soft, color-mix(in srgb, currentColor 12%, transparent));
}

nav.nav-menu li.nav-item.nav-tree-filter-hidden {
  display: none;
}
