/* Native conversation scrolling: intro, suggestions and messages share the page scroll.
   Preserve the fixed composer, sidebar, consent controls, and member data. */
html:has(body.bt-chat) {
  overflow-x: clip !important;
  overflow-y: auto !important;
  scroll-behavior: auto;
}
body.bt-chat {
  height: auto !important;
  min-height: 100dvh !important;
  overflow: visible !important;
}
body.bt-chat .app {
  display: block !important;
  height: auto !important;
  min-height: 100dvh !important;
  overflow: visible !important;
}
body.bt-chat main.chat-page {
  display: block !important;
  height: auto !important;
  min-height: calc(100dvh - 64px) !important;
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 150px !important;
}
body.bt-chat main.chat-page > .hero,
body.bt-chat main.chat-page > .chat-starters,
body.bt-chat main.chat-page > #miimochi-report-consent,
body.bt-chat main.chat-page > .b2t-worldbrain-opt {
  position: relative !important;
}
body.bt-chat main.chat-page > .hero {
  margin-bottom: 12px !important;
}
body.bt-chat main.chat-page .chat-shell {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}
body.bt-chat main.chat-page .chat-log {
  display: block !important;
  height: auto !important;
  min-height: 240px !important;
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 30px !important;
  overscroll-behavior: auto !important;
}
body.bt-chat main.chat-page .chat-head {
  height: auto !important;
  min-height: 0 !important;
}
@media (max-width: 767px) {
  body.bt-chat main.chat-page {
    padding-bottom: calc(150px + env(safe-area-inset-bottom)) !important;
  }
  body.bt-chat main.chat-page .chat-log {
    min-height: 220px !important;
  }
}
