/* Externalise de la modification #56 le 23/08/2026 (G6M_EXTERNALISATION_V1016).
   Ce bloc etait inline dans PAGE_CONTAINER : il repartait donc dans le HTML de
   CHAQUE page, sans jamais etre mis en cache. En fichier, il est recupere une
   fois puis servi depuis le cache.
   Le <link> occupe la position EXACTE de l ancien <style> : l ordre de cascade
   est donc rigoureusement identique. */

/* G6M_CHAT_EMPTY_GAP_V294
   Remove empty gap between Siropu chat messages and the editor.
   Cause: forced height:230px on .siropuChatMessages left unused dark space.
   Visual only — Siropu floats / editor unchanged. */

/* Outer shell: no forced tall empty box */
html body #siropuChat,
html body .siropuChat,
html body .siropuChat--aboveForumList,
html body .block--siropuChat,
html body .siropuChatContainer,
html body .siropuChatAboveForumList {
	min-height: 0 !important;
	height: auto !important;
}

/* Messages + users panes: grow with content, scroll when tall */
html body #siropuChat .siropuChatMessages,
html body #siropuChat .siropuChatUsers,
html body #siropuChat .siropuChatRoom,
html body #siropuChat .siropuChatRoom.siropuChatMessages,
html body #siropuChat .siropuChatRoom.siropuChatUsers,
html body #siropuChat .siropuChatConversation.siropuChatMessages,
html body #siropuChat .siropuChatConversation.siropuChatUsers,
html body .siropuChat .siropuChatMessages,
html body .siropuChat .siropuChatUsers,
html body .siropuChat .siropuChatRoom {
	height: auto !important;
	min-height: 0 !important;
	max-height: min(280px, 42vh) !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	box-sizing: border-box !important;
}

/* Keep messages packed toward the editor (no canyon above the input) */
html body #siropuChat .siropuChatMessages,
html body #siropuChat .siropuChatRoom.siropuChatMessages,
html body #siropuChat .siropuChatConversation.siropuChatMessages,
html body .siropuChat .siropuChatMessages {
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-end !important;
}

html body #siropuChat .siropuChatMessages > *,
html body #siropuChat .siropuChatRoom.siropuChatMessages > * {
	flex: 0 0 auto !important;
}

/* Content wrapper: no extra min-height / phantom spacer */
html body #siropuChat #siropuChatContent,
html body #siropuChatContent,
html body .siropuChatAboveForumList #siropuChatContent {
	min-height: 0 !important;
	height: auto !important;
}

/* Editor sits flush under messages — kill accidental top margin/padding gap */
html body #siropuChat #siropuChatEditor,
html body #siropuChat .siropuChatEditor,
html body #siropuChat .message-editorWrapper {
	margin-top: 0 !important;
	padding-top: 0.35rem !important;
}

@media (max-width: 900px) {
	html body #siropuChat .siropuChatMessages,
	html body #siropuChat .siropuChatUsers,
	html body #siropuChat .siropuChatRoom {
		max-height: min(240px, 38vh) !important;
	}
}

/* END G6M_CHAT_EMPTY_GAP_V294 */

