/* Case/chat pages only: remove the large blank strip before the footer. */
#main:has(> #detail:not([hidden])) {
  margin-bottom: 0;
}
#detail > #conversation-panel:last-child {
  margin-bottom: 0;
}
#main:has(> #detail:not([hidden])) + footer {
  padding-top: 16px;
}
