.titlebar {
  height: 44px;
  /* use unified glass material for titlebars */
  background: var(--glass-titlebar-bg);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 9px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;

  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  flex-shrink: 0;
  border-bottom: 1px solid var(--glass-border-soft);
}

.window-content {

  flex: 1;

  overflow-y: auto;

  overflow-x: hidden;

  padding: 18px 20px;

  /* transparent so the parent window material is visible */
  background: transparent;

  -webkit-backdrop-filter: none;

  backdrop-filter: none;

}

.window-title {
  align-self: center;
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.1px;
  flex-shrink: 0;
  margin-left: 2px;
  margin-top: 0px;
  line-height: 1;
}

.titlebar:active {
  cursor: grabbing;
}

.nav-group,
.search-group {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-shrink: 0;
  height: 100%;
}

.nav-arrows {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.nav-btn {
  width: 19px;
  height: 18px;
  border-radius: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  padding: 0;
}

.nav-btn img {
  filter: brightness(0) invert(1);
  opacity: 0.54;
  transition: opacity 0.15s;
}

.nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.nav-btn:hover:not(:disabled) img {
  opacity: 1;
}

.nav-btn:disabled {
  cursor: default;
}

.nav-btn:disabled img {
  opacity: 0.3;
}

.nav-label,
.search-label {
  font-size: 8px;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.15px;
  line-height: 1;
  margin-top: 5px;
  white-space: nowrap;
}

.titlebar-spacer {
  flex: 1;
}

.search-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  height: 18px;
}

.search-input {
  width: 20px;
  height: 18px;
  padding: 0 0 0 20px;
  border: none;
  border-radius: 4px;
  background-color: transparent;
  background-image: url('../assets/symbols/Search.svg');
  background-repeat: no-repeat;
  background-position: 4px center;
  background-size: 11px 11px;
  filter: brightness(0) invert(1);
  opacity: 0.54;
  color: var(--text-main);
  font-size: 10px;
  font-family: inherit;
  outline: none;
  transition: width 0.22s ease, background-color 0.18s ease;
  cursor: pointer;
}

.search-input::placeholder {
  color: rgba(238, 238, 238, 0.48);
  opacity: 0;
}

.search-input:hover {
  background-color: rgba(255, 255, 255, 0.06);
  opacity: 0.78;
}

.search-input:focus {
  width: 120px;
  padding: 0 8px 0 22px;
  background-color: rgba(255, 255, 255, 0.09);
  cursor: text;
  opacity: 1;
}

.search-input:focus::placeholder {
  opacity: 1;
}
