.database-filter {
  padding: 12px;
  margin: 14px 0;
  border: 1px solid #687381;
  border-radius: 8px;
}
.database-filter label {
  display: block;
  font-weight: bold;
}
.database-filter select {
  display: block;
  min-height: 44px;
  max-width: 100%;
  margin-top: 6px;
  padding-inline: 10px;
  border: 1px solid #8796a9;
  border-radius: 6px;
  background: #18202a;
  color: #f4f4f4;
  font: inherit;
}
.database-filter [role="status"] { margin: 8px 0 0; }
.database-details summary, table details summary {
  cursor: pointer;
  min-height: 32px;
  padding: 5px 0;
  color: #f2d599;
}
.database-character { margin: 16px 0; }
.database-character h3 { margin-top: 0; }
.database-character li { overflow-wrap: anywhere; }
tr[data-allowed] { scroll-margin-top: 110px; }
tr[data-allowed]:target { background: #292c3a; outline: 2px solid #d7bb81; outline-offset: -2px; }
tr[data-allowed] small { color: #d1d7e0; line-height: 1.6; }
tr[data-allowed] th { min-width: 8em; }
@media (max-width: 560px) {
  table:has(tr[data-allowed]) {
    display: block;
  }
  table:has(tr[data-allowed]) thead {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  table:has(tr[data-allowed]) tbody { display: block; }
  tr[data-allowed] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 10px;
    border-bottom: 1px solid #43495b;
    scroll-margin-top: 24px;
  }
  tr[data-allowed] th, tr[data-allowed] td {
    min-width: 0;
    padding: 3px 5px;
    border: 0;
    white-space: normal;
  }
  tr[data-allowed] td:last-child { grid-column: 1 / -1; }
}
