/* chat-panel.css — shared visual rules for the Chat sidebar tab.
   Used by both /viewer/ (3D) and /viewer2d/ (2D).

   Scope: iframe sizing + chat-panel body chrome only. Positioning of
   #chat-panel itself (fixed-position slide-in in 3D vs CSS grid in 2D)
   stays in each viewer's own stylesheet, mirroring the convention used
   by sidebar.css for pdf/camera panels. */

#chat-panel .chat-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  display: block;
  background: #16181d;
}

/* While the sidebar resizer is being dragged, swallow pointer events on every
   iframe (chat panel, ads, etc) so mouseup fires in the parent document and
   the resizer can release. Without this, the iframe captures mouseup and the
   parent stays in drag-mode until page reload. */
body.sidebar-resizing iframe { pointer-events: none; }
