/**
 * Scripter (/chat, scripter.mitverse.com): mobile overlay aligned with mail.mitverse.com.
 * Load after Vite bundle CSS. Primary styles live in theme-overlay.css (bundled).
 */
@media (max-width: 768px) {
  .scripter-standalone {
    height: 100dvh;
    height: 100vh;
    overflow: hidden;
  }

  .scripter-standalone .scripter-standalone-main {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .scripter-standalone .scripter-page.scripter-layout {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .scripter-standalone .mobile-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    border: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
  }

  .scripter-standalone .scripter-mobile-top-bar {
    display: grid;
  }

  .scripter-standalone .scripter-sidebar {
    width: auto;
    max-height: none;
    border-bottom: none;
    overflow: hidden;
  }

  .scripter-standalone .scripter-sidebar--chats {
    max-height: none;
  }

  .scripter-standalone .scripter-main {
    padding: 0;
    min-height: 0;
  }

  .scripter-standalone .scripter-conversation-pane.agents-console-messages {
    max-height: none;
  }

  body.scripter-drawer-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}
