/* One calm empty message. Record-bearing lists retain their existing actions,
   scroll ownership and unread status; absence of records is a semantic state. */
html body main.app-shell section.map-stage #notificationHub {
  padding: 20px !important;
  gap: 12px !important;
  border-radius: 24px !important;
}

html body main.app-shell section.map-stage #notificationHub .notification-heading {
  align-items: center !important;
}

html body main.app-shell section.map-stage #notificationHub .notification-body {
  display: contents;
}

html body main.app-shell section.map-stage #notificationHub .notification-heading > div > strong {
  font-size: 1.1875rem !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere;
}

html body main.app-shell section.map-stage #notificationHub .notification-close {
  min-width: 44px !important;
  min-height: 44px !important;
  flex-shrink: 0;
}

html body main.app-shell section.map-stage #notificationHub.is-empty {
  height: auto !important;
  min-height: 0 !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: max-content minmax(0, 1fr) max-content !important;
  grid-template-areas: "heading" "updates" "footer" !important;
  align-content: start !important;
}

html body main.app-shell section.map-stage #notificationHub.is-empty .notification-heading {
  grid-area: heading !important;
  grid-template-columns: 36px minmax(0, 1fr) 44px !important;
  min-height: 44px !important;
}

html body main.app-shell section.map-stage #notificationHub.is-empty .notification-close {
  position: static !important;
  top: auto !important;
  right: auto !important;
}

html body main.app-shell section.map-stage #notificationHub.is-empty .notification-list {
  grid-area: updates !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

html body main.app-shell section.map-stage #notificationHub.is-empty .notification-empty-state {
  min-height: 0 !important;
  padding: 14px 2px 18px !important;
  gap: 7px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body main.app-shell section.map-stage #notificationHub.is-empty .notification-empty-state strong {
  font-size: 1rem !important;
  line-height: 1.35 !important;
}

html body main.app-shell section.map-stage #notificationHub.is-empty .notification-empty-state small {
  max-width: 30em;
  color: #c4d8e3 !important;
  font-size: .875rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere;
}

html body main.app-shell section.map-stage #notificationHub.is-empty .notification-private-note {
  grid-area: footer !important;
  min-width: 0 !important;
  padding-top: 8px !important;
  font-size: .6875rem !important;
}

html body main.app-shell section.map-stage #notificationHub .notification-private-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

html body main.app-shell section.map-stage #notificationHub .notification-settings-button {
  min-width: 44px !important;
  font-size: .75rem !important;
  line-height: 1.4 !important;
}

@media (orientation: landscape) and (max-height: 520px) {
  html body main.app-shell section.map-stage #notificationHub.is-empty {
    gap: 6px !important;
  }

  html body main.app-shell section.map-stage #notificationHub {
    padding: 12px !important;
  }

  html body main.app-shell section.map-stage #notificationHub.is-empty .notification-empty-state {
    padding: 4px 2px 8px !important;
    gap: 4px !important;
  }
}

@media (max-width: 360px) {
  html body main.app-shell section.map-stage #notificationHub.is-empty .notification-heading {
    grid-template-columns: 28px minmax(0, 1fr) 44px !important;
  }
}

/* A 320px-tall phone cannot fit fixed header + footer + large text. Keep the
   close control visible and let the real content/settings scroll together. */
@media (orientation: landscape) and (max-height: 360px) {
  html body main.app-shell section.map-stage #notificationHub {
    gap: 3px !important;
    grid-template-rows: max-content minmax(0, 1fr) !important;
    grid-template-areas: "heading summary ." "updates updates updates" !important;
  }

  html body main.app-shell section.map-stage #notificationHub.is-empty {
    grid-template-areas: "heading" "updates" !important;
  }

  html body main.app-shell section.map-stage #notificationHub .notification-body {
    display: block !important;
    grid-area: updates !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-color: #75d9c3 #00243f;
  }

  html body main.app-shell section.map-stage #notificationHub .notification-list {
    overflow: visible !important;
    min-height: auto !important;
  }

  html body main.app-shell section.map-stage #notificationHub .notification-private-note {
    margin-top: 8px !important;
  }

  html body main.app-shell section.map-stage #notificationHub:not(.is-empty) .notification-heading {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body main.app-shell section.map-stage #notificationHub:not(.is-empty) .notification-heading-icon {
    display: none !important;
  }

  html body main.app-shell section.map-stage #notificationHub .notification-heading > div > strong {
    font-size: 1.125rem !important;
    line-height: 1.2 !important;
  }

  html body main.app-shell section.map-stage #notificationHub .notification-private-note {
    padding-top: 0 !important;
    border-top: 0 !important;
  }

  html body main.app-shell section.map-stage #notificationHub .notification-settings-button {
    padding: 4px 8px !important;
  }
}
