/* Aurora 12.9.1 - overview header layout hotfix.
   Isolated stylesheet so existing themes and application routing stay unchanged.
   On EVERY viewport the explanatory copy owns an entire grid row. The range
   selector gets a separate row instead of shrinking the description. */
:is(body.admin-surface .admin-premium-overview, body.public-surface .user-overview-section) > .module-heading.range-heading {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: start !important;
  justify-content: stretch !important;
  column-gap: 0 !important;
  row-gap: 14px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 0 20px !important;
}
:is(body.admin-surface .admin-premium-overview, body.public-surface .user-overview-section) > .module-heading.range-heading > div:first-child {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: none !important;
  overflow: visible !important;
}
:is(body.admin-surface .admin-premium-overview, body.public-surface .user-overview-section) > .module-heading.range-heading :is(.eyebrow, h2, p) {
  box-sizing: border-box !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
:is(body.admin-surface .admin-premium-overview, body.public-surface .user-overview-section) > .module-heading.range-heading h2 {
  margin: 5px 0 8px !important;
  line-height: 1.2 !important;
  text-wrap: wrap !important;
}
:is(body.admin-surface .admin-premium-overview, body.public-surface .user-overview-section) > .module-heading.range-heading p {
  width: 100% !important;
  max-width: 72ch !important;
  margin: 0 !important;
  font-size: clamp(12px, 1vw, 14px) !important;
  line-height: 1.72 !important;
  letter-spacing: 0 !important;
  color: #687b95 !important;
  text-wrap: pretty !important;
}
:is(body.admin-surface .admin-premium-overview, body.public-surface .user-overview-section) > .module-heading.range-heading > .range-switcher {
  box-sizing: border-box !important;
  grid-column: 1 !important;
  grid-row: 2 !important;
  position: static !important;
  float: none !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  justify-self: end !important;
  align-self: start !important;
  width: min(100%, 390px) !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 5px !important;
  gap: 4px !important;
  border-radius: 14px !important;
  border: 1px solid #e0e8f6 !important;
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(43, 66, 105, .05) !important;
  overflow: hidden !important;
}
:is(body.admin-surface .admin-premium-overview, body.public-surface .user-overview-section) > .module-heading.range-heading > .range-switcher a {
  box-sizing: border-box !important;
  display: flex !important;
  min-width: 0 !important;
  min-height: 36px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 4px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}
:is(body.admin-surface .admin-premium-overview, body.public-surface .user-overview-section) > .module-heading.range-heading > .range-switcher a.active {
  background: #5274eb !important;
  color: #fff !important;
}
@media (max-width: 820px) {
  :is(body.admin-surface .admin-premium-overview, body.public-surface .user-overview-section) > .module-heading.range-heading {
    gap: 12px !important;
    margin-bottom: 14px !important;
  }
  :is(body.admin-surface .admin-premium-overview, body.public-surface .user-overview-section) > .module-heading.range-heading p {
    max-width: 100% !important;
    font-size: 12px !important;
    line-height: 1.65 !important;
  }
  :is(body.admin-surface .admin-premium-overview, body.public-surface .user-overview-section) > .module-heading.range-heading > .range-switcher {
    justify-self: stretch !important;
    width: 100% !important;
    gap: 2px !important;
    padding: 4px !important;
  }
  :is(body.admin-surface .admin-premium-overview, body.public-surface .user-overview-section) > .module-heading.range-heading > .range-switcher a {
    min-height: 34px !important;
    font-size: clamp(10px, 2.5vw, 12px) !important;
    padding: 7px 1px !important;
  }
}
