.page .filter-card {
  gap: 18px 22px !important;
}

.page .filter-card .filter-group {
  display: grid !important;
  grid-template-rows: auto minmax(42px, auto) !important;
  align-content: start !important;
  gap: 12px !important;
  min-width: 0 !important;
}

.page .filter-card .filter-group label {
  display: block !important;
  min-height: 24px !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.page .filter-card .filter-group select,
.page .filter-card .filter-group input {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  line-height: 1.25 !important;
  padding: 9px 38px 9px 12px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.page .filter-card .filter-group select option {
  white-space: nowrap;
}

.download-page .download-selector {
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) auto !important;
  align-items: center !important;
  column-gap: 24px !important;
  row-gap: 18px !important;
}

.download-page .download-selector-heading {
  display: grid !important;
  gap: 6px !important;
  min-width: 190px !important;
}

.download-page .download-selector-heading h3,
.download-page .download-selector-heading span {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.download-page .download-filter-grid {
  display: grid !important;
  grid-column: 1 / -1 !important;
  grid-template-columns: minmax(260px, 1fr) minmax(340px, 1.25fr) minmax(300px, 1.1fr) !important;
  gap: 18px !important;
  min-width: 0 !important;
  align-items: end !important;
}

.download-page .download-filter-grid .filter-group {
  min-width: 0 !important;
}

.download-page .download-filter-grid .filter-group label {
  font-size: 0.9rem !important;
  letter-spacing: 0.03em !important;
}

.download-page .download-filter-grid .filter-group select {
  font-size: 1.02rem !important;
  min-height: 46px !important;
  max-width: none !important;
}

.download-page .download-filter-summary {
  justify-content: flex-end !important;
  align-self: center !important;
  flex-wrap: nowrap !important;
  min-width: max-content !important;
}

.download-page .download-filter-summary .chip {
  white-space: nowrap !important;
}

@media (max-width: 1280px) {
  .download-page .download-selector {
    grid-template-columns: 1fr !important;
  }

  .download-page .download-filter-grid {
    grid-template-columns: repeat(3, minmax(190px, 1fr)) !important;
  }

  .download-page .download-filter-summary {
    justify-content: flex-start !important;
  }
}

@media (max-width: 860px) {
  .download-page .download-filter-grid {
    grid-template-columns: 1fr !important;
  }

  .download-page .download-filter-summary {
    flex-wrap: wrap !important;
    min-width: 0 !important;
  }
}

/* database-cohort-filter-readability-v285 */
.database-explorer-page .database-explorer-controls {
  grid-template-columns: repeat(6, minmax(205px, 1fr)) !important;
  gap: 22px 28px !important;
  align-items: start !important;
  padding-top: 70px !important;
}

.database-explorer-page .explorer-filter-field {
  display: grid !important;
  grid-template-rows: minmax(30px, auto) minmax(46px, auto) !important;
  gap: 12px !important;
  align-content: start !important;
  min-width: 0 !important;
}

.database-explorer-page .explorer-filter-field label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.database-explorer-page .explorer-filter-field label::before {
  flex: 0 0 22px !important;
}

.database-explorer-page .explorer-filter-field select,
.database-explorer-page .explorer-filter-field input {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 38px 0 13px !important;
  line-height: 1.25 !important;
  font-size: 1rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 1680px) {
  .database-explorer-page .database-explorer-controls {
    grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .database-explorer-page .database-explorer-controls {
    grid-template-columns: 1fr !important;
    padding-top: 82px !important;
  }
}
/* database-cohort-filter-readability-v285-end */
