/* Keeps the chat stream as the single scrollable area without touching other layouts. */
:root {
  --chat-shell-vh: calc(var(--vh, 1vh) * 100);
}

#chat-with-bot-container.glass-shell {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: var(--chat-shell-vh, 100vh);
  height: var(--chat-shell-vh, 100vh);
  overflow: hidden;
}

@supports (height: 100dvh) {
  #chat-with-bot-container.glass-shell {
    min-height: 100dvh;
    height: 100dvh;
  }
}

#chat-with-bot-container.glass-shell > * {
  flex-shrink: 0;
}

#chat-with-bot-container.glass-shell > #full-conversation,
.full-conversation.glass-stream {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  width: 100% !important;
  left: 0 !important;
}

#full-conversation.glass-stream {
  display: flex;
  flex-direction: column;
}
