.message-panel {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
}

@media (min-width: 801px) {
  .inbox-shell {
    height: calc(100dvh - 230px);
    min-height: 420px;
  }
}

.message-stream {
  min-height: 0;
}

.reply-box {
  position: sticky;
  bottom: 0;
  z-index: 2;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  background: #fff;
}

.reply-box textarea {
  height: 48px;
  min-height: 48px;
  max-height: 110px;
  resize: vertical;
}

.reply-box .btn {
  align-self: end;
  min-width: 112px;
  height: 48px;
  white-space: nowrap;
}

@media (max-width: 800px) {
  .reply-box {
    grid-template-columns: 1fr;
  }

  .reply-box .btn {
    width: 100%;
  }
}
