/* --- Die Suchzeile (`.asg-db-suchzeile`) ---------------------------------- */

.mo__suchzeile {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
}

.mo__suchfeld {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 26px 7px 9px;
  background: rgb(0 0 0 / 28%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 7px;
  color: rgb(238 228 208 / 92%);
  font: inherit;
  font-size: 0.75rem;
}

.mo__suchfeld:focus {
  border-color: rgb(214 176 106 / 55%);
  outline: none;
}

.mo__suchfeld::-webkit-search-cancel-button {
  display: none;
}

.mo__leeren {
  position: absolute;
  right: 5px;
  padding: 0 4px;
  cursor: pointer;
  background: transparent;
  border: 0;
  color: rgb(210 190 150 / 60%);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1;
}

.mo__leeren:hover {
  color: rgb(238 228 208 / 95%);
}

/* --- Die Gliederung (`Gliederung.tsx`, Spalte 1 des Launchers) ------------- */

/*
  Sie steht über der Trefferliste und darf höchstens ein Drittel der Spalte
  einnehmen; darüber hinaus rollt sie innen. Sonst nähme eine aufgeklappte
  Rassenliste mit dreizehn Einträgen der Trefferliste den ganzen Platz.
*/
.mo__gliederung {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 6px;
  max-height: 34vh;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgb(232 195 122 / 45%) transparent;
}

.mo__gruppe {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  width: 100%;
  padding: 6px 9px;
  text-align: left;
  cursor: pointer;
  background: rgb(255 255 255 / 3%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 7px;
  color: rgb(238 228 208 / 88%);
  font: inherit;
  font-size: 0.75rem;
}

.mo__gruppe:hover {
  background: rgb(255 255 255 / 7%);
}

.mo__gruppe.is-active {
  background: rgb(214 176 106 / 16%);
  border-color: rgb(214 176 106 / 45%);
}

/* Die Untergruppen rücken ein und tragen einen Faden nach links. */
.mo__unterliste {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 4px 0 6px 10px;
  padding-left: 8px;
  border-left: 1px solid rgb(214 176 106 / 28%);
}

.mo__untergruppe {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
  width: 100%;
  padding: 4px 7px;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  color: rgb(238 228 208 / 78%);
  font: inherit;
  font-size: 0.6875rem;
}

.mo__untergruppe:hover {
  background: rgb(255 255 255 / 5%);
}

.mo__untergruppe.is-active {
  background: rgb(214 176 106 / 14%);
  border-color: rgb(214 176 106 / 38%);
}

/* Die Anzahl, rechts und blass: Auskunft nebenbei, nicht der Name. */
.mo__zahl {
  flex: 0 0 auto;
  color: rgb(210 190 150 / 52%);
  font-size: 0.5625rem;
  font-variant-numeric: tabular-nums;
}

/* "Art" und der Umschalter Navigation/Kategorien in einer Zeile. */
.mo__spaltenkopf {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.mo__modus {
  padding: 1px 6px;
  border: 1px solid rgb(232 195 122 / 28%);
  border-radius: 4px;
  background: transparent;
  color: #a89a7c;
  cursor: pointer;
  font: inherit;
  font-size: 0.6rem;
  white-space: nowrap;
}

.mo__modus:hover {
  border-color: rgb(232 195 122 / 60%);
  color: var(--gold);
}

.mo__modus[aria-pressed='true'] {
  border-color: rgb(232 195 122 / 60%);
  background: rgb(232 195 122 / 12%);
  color: var(--gold);
}

/* --- Zählzeile und Umschalter "Alle Formen" -------------------------------- */

.mo__zaehlerzeile {
  display: flex;
  flex: none;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.mo__zaehler {
  margin: 0;
  color: rgb(210 190 150 / 62%);
  font-size: 0.625rem;
}

/* Der Kasten für "hier ist nichts" (`.asg-db-leer`). */
.mo__zustand {
  flex: none;
  margin: 0;
  padding: 9px 10px;
  background: rgb(214 176 106 / 8%);
  border: 1px solid rgb(214 176 106 / 26%);
  border-radius: 7px;
  color: rgb(238 228 208 / 82%);
  font-size: 0.6875rem;
  line-height: 1.4;
}
