/* Desktop: keep an internal scroll inside every Gmail mailbox. */
.message-table{
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-width:thin;
  scrollbar-color:#426887 #08192a;
  scroll-behavior:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
.message-table::-webkit-scrollbar{width:7px}
.message-table::-webkit-scrollbar-thumb{background:#426887;border-radius:10px}
.message-table::-webkit-scrollbar-track{background:#08192a}
.message-labels{position:sticky;top:0;z-index:1;background:#0b2035}

/* Mobile: remove the nested mailbox scroller.
   A swipe anywhere on a mailbox now scrolls the page itself. */
@media(max-width:760px){
  .mailbox-panel{
    height:auto!important;
    min-height:235px;
    overflow:visible!important;
  }
  .message-table{
    height:auto!important;
    min-height:187px;
    max-height:none!important;
    overflow:visible!important;
    scroll-behavior:auto!important;
    overscroll-behavior:auto!important;
    scrollbar-gutter:auto!important;
    touch-action:pan-y!important;
    -webkit-overflow-scrolling:auto;
  }
  .message-labels{position:static!important}
}
