/* Sent messages fill the free space below every seat. The original composer,
   action row, media reserve and usable GIF picker keep their own geometry. */
body.immersive-live #roomsPanel[data-live-chat-fill='true'] #sharedChatDock{
 left:max(10px,env(safe-area-inset-left,0px));right:max(10px,env(safe-area-inset-right,0px));width:auto;
}
body.immersive-live #roomsPanel[data-live-chat-fill='true'] #sharedChatDock .overlive-chat-embedded{
 width:100%;max-width:none;
}
body.immersive-live #roomsPanel[data-live-chat-fill='true'][data-live-chat-fill-mode='messages'] #sharedChatDock{
 height:var(--live-chat-fill-height,var(--live-chat-height));min-height:0;max-height:none;
}
body.immersive-live #roomsPanel[data-live-chat-fill='true'] #sharedChatDock .overlive-chat-messages{
 width:100%;max-width:none;min-height:0;max-height:none;flex:1 1 auto;
 overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;touch-action:pan-y;
 scroll-behavior:auto;scrollbar-width:thin;
}
/* The palette remains its existing options overlay. Only the sent log is
   seat-bounded; its normal picker height/controls are deliberately untouched. */

/* Sent animations fit the readable log, including their compact metadata. */
body.immersive-live #roomsPanel[data-live-chat-fill='true'] #sharedChatDock .overlive-chat-message :is(.chat-mood-image,.chat-reaction-image){
 width:auto!important;height:auto!important;max-width:min(112px,100%);
 max-height:min(112px,max(20px,calc(var(--live-chat-log-height,120px) - 24px)));
 object-fit:contain;
}
