/* Keep the first action reachable and allow the list to scroll to the last one. */
html #chat-management[data-compact].open {
  justify-content: flex-start;
  align-items: stretch;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

html #chat-management[data-compact].open > * {
  flex-shrink: 0;
}

@media (min-width: 721px) {
  html #chat-management[data-compact].open {
    max-height: min(650px, calc(100dvh - 160px));
  }
}
