/* Stabilise extension widget iframes for the virtualized message list.
   vishrun destroys and recreates each widget iframe on rebuild. During that
   window the frame contributes 0px, so TanStack Virtual re-measures the row,
   the list total shrinks then grows, and the viewport snaps to the top.
   A pinned height plus contain-intrinsic-size keeps the row measurement
   stable across the destroy/recreate cycle. */
iframe[sandbox*="allow-same-origin"] {
  display: block;
  border: 0;
  height: 340px !important;
  min-height: 340px !important;
  max-height: 340px !important;
  content-visibility: auto;
  contain-intrinsic-size: 340px;
}
