    /* BBSIA mobile: the chat is the product. Hide the rail and give the
       conversation the full viewport instead of a 90px sliver. */
    @media (max-width: 768px) {
        /* #2416 — the rail is a drawer, not a deleted element. `display:none`
           could never be undone by the toggle (it is `!important`), so the
           history and the Apps rail were unreachable on a phone. */
        .chat-sidebar {
            display: flex !important;
            position: fixed !important;
            left: 0;
            top: 0;
            bottom: 0;
            height: 100dvh !important;
            width: min(86vw, 320px) !important;
            max-width: none !important;
            z-index: var(--z-system);
            transform: translateX(-102%);
            transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
            border-right: 1px solid var(--shell-border, rgba(0,0,0,0.12));
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
        }
        .chat-sidebar.collapsed { width: min(86vw, 320px) !important; }
        body.gb-rail-open .chat-sidebar { transform: translateX(0); }
        body.gb-rail-open { overflow: hidden; }
        .gb-rail-backdrop {
            position: fixed;
            inset: 0;
            z-index: var(--z-modal-backdrop);
            background: rgba(0, 0, 0, 0.45);
        }
        .gb-rail-button {
            position: fixed;
            left: 8px;
            top: calc(8px + env(safe-area-inset-top, 0px));
            z-index: var(--z-system);
            width: 44px;
            height: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--border, rgba(0,0,0,0.15));
            border-radius: 12px;
            background: var(--surface, #ffffff);
            color: var(--text, #111111);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
            cursor: pointer;
        }
        .main-wrapper { width: 100vw !important; }
        .window-element,
        .window-element-glass {
            left: 0 !important;
            top: 0 !important;
            width: 100vw !important;
            max-width: none !important;
            height: calc(100vh - var(--gb-chrome-bottom, var(--taskbar-h, 30px)) - env(safe-area-inset-bottom, 0px)) !important;
            height: calc(100dvh - var(--gb-chrome-bottom, var(--taskbar-h, 30px)) - env(safe-area-inset-bottom, 0px)) !important;
            border-radius: 0 !important;
        }
        .window-element .window-body,
        .window-element-glass .window-body {
            height: calc(100% - 34px) !important;
        }
        /* The composer needs the width for the message, not a model legend. */
        #modelPicker { display: none !important; }
    }
    

/* #2326 — honour the OS reduced-motion setting: the transitions in
   this file carry no information, so they simply stop. */
@media (prefers-reduced-motion: reduce) {
  .chat-sidebar {
    animation: none !important;
    transition: none !important;
  }
}
