/* Shared typography and compact native controls across all application pages. */
body { font-size: 13px; }
body select:not([multiple]) {
  box-sizing: border-box;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  width: 180px;
  max-width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 7px 28px 7px 10px;
}
body select option, body select optgroup {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
}
body select option { font-weight: 400; }
body select:is(#routing, #routingKey, #routingKeyFocus, #comparisonKey, #animationKey,
  #geocodeStreetFilter, #geocodeNeighborhoodFilter) { width: 240px; }
body .market-select { min-width: 0; }
body .filters label, body .viz-controls label { flex: 0 1 auto; min-width: 0; }
@media (min-width: 801px) {
  body .filters { grid-template-columns: repeat(4, minmax(0, 180px)); }
  body .filterBar { grid-template-columns: repeat(3, minmax(0, 180px)) auto auto; justify-content: start; }
  body .filterGrid { grid-template-columns: repeat(auto-fit, minmax(150px, 180px)); }
  body .timelapseGrid { grid-template-columns: repeat(3, minmax(0, 180px)); }
}
@media (max-width: 600px) {
  body select:not([multiple]) { min-height: 40px; }
}

/* Let grid labels shrink around native selects with long option text. */
body label:has(> select) { min-width: 0; grid-template-columns: minmax(0, 1fr); }
