/* G6M_BUNDLE_23 — 4 feuilles, ordre du document preserve */
/* ==== g6m-category-separators-v381.css ==== */
/* G6M_CATEGORY_SEPARATORS_V381
   Remove redundant horizontal frames between forum categories.

   ORIGIN: unscoped G6M_SHOP_PREMIUM_V229 rules
     html body .p-body-content .block / .p-body-main .block
   painted border + 1px ring on:
     - .uix_nodeList.block  (mega wrapper → line above first category)
     - .block--category     (outer frame → lines between categories)
   and forced .block-container { border:0 }, so the real card chrome
   lived on the outer .block instead of the intended container.

   KEEP: category header + .block-container neon card, node rows,
   glows, radii, internal .node separators, sidebar, chat, widgets.
*/

:root {
	--g6m-cat-sep-v: V381;
	--g6m-cat-gap: 1.5rem; /* 24px — within 20–30px */
}

/* —— 1) Wrapper: no mega-panel around the whole node list —— */
html body[data-template="forum_list"] .uix_nodeList.block,
html body.template-forum_list .uix_nodeList.block,
html body .p-body-content .uix_nodeList.block,
html body .p-body-main .uix_nodeList.block,
html body .p-body-pageContent > .uix_nodeList.block {
	border: none !important;
	border-width: 0 !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	outline: none !important;
	border-radius: 0 !important;
	overflow: visible !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* —— 2) Category outer .block = layout only (no second frame) —— */
html body[data-template="forum_list"] .block.block--category,
html body.template-forum_list .block.block--category,
html body .p-body-content .block.block--category,
html body .p-body-main .block.block--category,
html body .uix_nodeList > .block.block--category {
	border: none !important;
	border-width: 0 !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	outline: none !important;
	border-radius: 0 !important;
	overflow: visible !important;
	padding: 0 !important;
	margin: 0 0 var(--g6m-cat-gap) 0 !important;
}

html body[data-template="forum_list"] .uix_nodeList > .block.block--category:last-child,
html body.template-forum_list .uix_nodeList > .block.block--category:last-child {
	margin-bottom: 0 !important;
}

/* Kill leftover separator pseudos on category wrappers only */
html body[data-template="forum_list"] .block.block--category::before,
html body[data-template="forum_list"] .block.block--category::after,
html body[data-template="forum_list"] .uix_nodeList.block::before,
html body[data-template="forum_list"] .uix_nodeList.block::after {
	content: none !important;
	display: none !important;
	border: none !important;
	background: none !important;
	box-shadow: none !important;
}

/* —— 3) Restore real category card on .block-container —— */
html body[data-template="forum_list"] .block--category > .block-container,
html body.template-forum_list .block--category > .block-container,
html body .p-body-content .block--category > .block-container,
html body .p-body-main .block--category > .block-container {
	border: 1px solid rgba(141, 56, 255, 0.22) !important;
	border-radius: 16px !important;
	background: linear-gradient(
		165deg,
		rgba(18, 14, 28, 0.92) 0%,
		rgba(8, 6, 14, 0.9) 100%
	) !important;
	box-shadow:
		0 10px 28px rgba(0, 0, 0, 0.32),
		0 0 0 1px rgba(255, 11, 139, 0.08) !important;
	overflow: hidden !important;
}

/* Header outside wrapper: form one continuous card with container */
html body[data-template="forum_list"] .block--category > .block-header,
html body.template-forum_list .block--category > .block-header {
	border-radius: 16px 16px 0 0 !important;
	margin: 0 !important;
}

html body[data-template="forum_list"] .block--category > .block-header + .block-container,
html body.template-forum_list .block--category > .block-header + .block-container {
	border-top-left-radius: 0 !important;
	border-top-right-radius: 0 !important;
	border-top-color: transparent !important;
	border-top-width: 0 !important;
}

/* —— 4) Do NOT touch internal forum-row separators / node cards —— */
/* (intentionally no rules for .node + .node, .node-body, etc.) */

/* END G6M_CATEGORY_SEPARATORS_V381 */

/* ==== g6m-inline-p2-31-v701.css ==== */
/* Externalise (passe 2) — bloc inline #31 — position inchangee */

/* G6M_CATEGORY_SEPARATORS_V381
   Remove redundant horizontal frames between forum categories.

   ORIGIN: unscoped G6M_SHOP_PREMIUM_V229 rules
     html body .p-body-content .block / .p-body-main .block
   painted border + 1px ring on:
     - .uix_nodeList.block  (mega wrapper → line above first category)
     - .block--category     (outer frame → lines between categories)
   and forced .block-container { border:0 }, so the real card chrome
   lived on the outer .block instead of the intended container.

   KEEP: category header + .block-container neon card, node rows,
   glows, radii, internal .node separators, sidebar, chat, widgets.
*/

:root {
	--g6m-cat-sep-v: V381;
	--g6m-cat-gap: 1.5rem; /* 24px — within 20–30px */
}

/* —— 1) Wrapper: no mega-panel around the whole node list —— */
html body[data-template="forum_list"] .uix_nodeList.block,
html body.template-forum_list .uix_nodeList.block,
html body .p-body-content .uix_nodeList.block,
html body .p-body-main .uix_nodeList.block,
html body .p-body-pageContent > .uix_nodeList.block {
	border: none !important;
	border-width: 0 !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	outline: none !important;
	border-radius: 0 !important;
	overflow: visible !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* —— 2) Category outer .block = layout only (no second frame) —— */
html body[data-template="forum_list"] .block.block--category,
html body.template-forum_list .block.block--category,
html body .p-body-content .block.block--category,
html body .p-body-main .block.block--category,
html body .uix_nodeList > .block.block--category {
	border: none !important;
	border-width: 0 !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	outline: none !important;
	border-radius: 0 !important;
	overflow: visible !important;
	padding: 0 !important;
	margin: 0 0 var(--g6m-cat-gap) 0 !important;
}

html body[data-template="forum_list"] .uix_nodeList > .block.block--category:last-child,
html body.template-forum_list .uix_nodeList > .block.block--category:last-child {
	margin-bottom: 0 !important;
}

/* Kill leftover separator pseudos on category wrappers only */
html body[data-template="forum_list"] .block.block--category::before,
html body[data-template="forum_list"] .block.block--category::after,
html body[data-template="forum_list"] .uix_nodeList.block::before,
html body[data-template="forum_list"] .uix_nodeList.block::after {
	content: none !important;
	display: none !important;
	border: none !important;
	background: none !important;
	box-shadow: none !important;
}

/* —— 3) Restore real category card on .block-container —— */
html body[data-template="forum_list"] .block--category > .block-container,
html body.template-forum_list .block--category > .block-container,
html body .p-body-content .block--category > .block-container,
html body .p-body-main .block--category > .block-container {
	border: 1px solid rgba(141, 56, 255, 0.22) !important;
	border-radius: 16px !important;
	background: linear-gradient(
		165deg,
		rgba(18, 14, 28, 0.92) 0%,
		rgba(8, 6, 14, 0.9) 100%
	) !important;
	box-shadow:
		0 10px 28px rgba(0, 0, 0, 0.32),
		0 0 0 1px rgba(255, 11, 139, 0.08) !important;
	overflow: hidden !important;
}

/* Header outside wrapper: form one continuous card with container */
html body[data-template="forum_list"] .block--category > .block-header,
html body.template-forum_list .block--category > .block-header {
	border-radius: 16px 16px 0 0 !important;
	margin: 0 !important;
}

html body[data-template="forum_list"] .block--category > .block-header + .block-container,
html body.template-forum_list .block--category > .block-header + .block-container {
	border-top-left-radius: 0 !important;
	border-top-right-radius: 0 !important;
	border-top-color: transparent !important;
	border-top-width: 0 !important;
}

/* —— 4) Do NOT touch internal forum-row separators / node cards —— */
/* (intentionally no rules for .node + .node, .node-body, etc.) */

/* END G6M_CATEGORY_SEPARATORS_V381 */

/* ==== g6m-chat-premium-polish-v382.css ==== */
/* G6M_CHAT_PREMIUM_POLISH_V382
   Presentation-only polish for Siropu Chat.
   Keeps Discord fixed-pane scroll from v377. No feature changes.
*/

:root {
	--g6m-chat-polish: V382;
	--g6m-chat-card-pad: 1.125rem; /* 18px */
	--g6m-chat-card-gap: 0.7rem;
	--g6m-chat-card-r: 18px;
	--g6m-chat-ease: 200ms cubic-bezier(0.22, 1, 0.36, 1);
	--g6m-chat-glass: rgba(22, 18, 32, 0.72);
	--g6m-chat-glass-border: rgba(255, 255, 255, 0.07);
	--g6m-chat-pink: #ff0b8b;
	--g6m-chat-violet: #8d38ff;
	--g6m-chat-cyan: #00d7ff;
}

/* ═══════════ MESSAGE CARDS ═══════════ */
html body #siropuChat .siropuChatMessages > li,
html body #siropuChat li.siropuChatMessageRow,
html body #siropuChat .siropuChatMessages li[data-id],
html body #siropuChat .siropuChatMessages li[data-user-id],
html body #siropuChat ul.siropuChatMessages > li {
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start !important;
	justify-content: space-between !important;
	gap: 0.75rem !important;
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 0 var(--g6m-chat-card-gap) 0 !important;
	padding: var(--g6m-chat-card-pad) !important;
	border-radius: var(--g6m-chat-card-r) !important;
	border: 1px solid var(--g6m-chat-glass-border) !important;
	background: linear-gradient(
		165deg,
		rgba(28, 22, 40, 0.88) 0%,
		rgba(16, 13, 24, 0.78) 100%
	) !important;
	backdrop-filter: blur(10px) saturate(1.15) !important;
	-webkit-backdrop-filter: blur(10px) saturate(1.15) !important;
	box-shadow:
		0 8px 20px rgba(0, 0, 0, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
	color: rgba(244, 241, 251, 0.94) !important;
	line-height: 1.45 !important;
	transition:
		transform var(--g6m-chat-ease),
		box-shadow var(--g6m-chat-ease),
		border-color var(--g6m-chat-ease),
		background-color var(--g6m-chat-ease) !important;
	animation: g6mChatMsgIn 280ms ease-out both !important;
}

html body #siropuChat .siropuChatMessages > li:last-child,
html body #siropuChat ul.siropuChatMessages > li:last-child {
	margin-bottom: 0.15rem !important;
}

html body #siropuChat .siropuChatMessages > li:hover,
html body #siropuChat li.siropuChatMessageRow:hover {
	transform: translateY(-2px) !important;
	border-color: rgba(141, 56, 255, 0.32) !important;
	box-shadow:
		0 12px 28px rgba(0, 0, 0, 0.34),
		0 0 18px rgba(141, 56, 255, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

@keyframes g6mChatMsgIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	html body #siropuChat .siropuChatMessages > li,
	html body #siropuChat li.siropuChatMessageRow {
		animation: none !important;
		transition: none !important;
	}
	html body #siropuChat .siropuChatMessages > li:hover {
		transform: none !important;
	}
}

/* Left column: author + text — consistent width */
html body #siropuChat .siropuChatMessageContentLeft {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	align-content: flex-start !important;
	gap: 0.35rem 0.45rem !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
	width: auto !important;
	max-width: 100% !important;
	vertical-align: top !important;
	box-sizing: border-box !important;
}

html body #siropuChat .siropuChatMessageContentRight {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-end !important;
	justify-content: flex-start !important;
	gap: 0.35rem !important;
	flex: 0 0 auto !important;
	min-width: 0 !important;
	max-width: 42% !important;
	vertical-align: top !important;
	text-align: right !important;
}

/* ═══════════ AUTHOR ═══════════ */
html body #siropuChat .siropuChatMessageContentLeft .username,
html body #siropuChat .siropuChatMessages .username,
html body #siropuChat .siropuChatMessageContentLeft a.username {
	display: inline-flex !important;
	align-items: center !important;
	font-family: Rajdhani, Orbitron, system-ui, sans-serif !important;
	font-size: 1.05rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.03em !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	vertical-align: middle !important;
}

html body #siropuChat .siropuChatMessages .avatar,
html body #siropuChat .siropuChatMessages .avatar img {
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	min-height: 36px !important;
	max-width: 36px !important;
	max-height: 36px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	vertical-align: middle !important;
	align-self: center !important;
	border: 1px solid rgba(141, 56, 255, 0.45) !important;
	box-shadow: 0 0 10px rgba(141, 56, 255, 0.22) !important;
}

html body #siropuChat .siropuChatMessageText,
html body #siropuChat .siropuChatMessageText .bbWrapper {
	display: inline !important;
	flex: 1 1 100% !important;
	width: 100% !important;
	margin-top: 0.2rem !important;
	color: rgba(244, 241, 251, 0.94) !important;
	font-size: 0.95rem !important;
	line-height: 1.55 !important;
	word-break: break-word !important;
}

/* Rank / admin badges stay readable */
html body #siropuChat .siropuChatMessages .userBanner,
html body #siropuChat .siropuChatMessages .userTitle,
html body #siropuChat .siropuChatMessages [class*="userBanner"] {
	display: inline-flex !important;
	align-items: center !important;
	margin: 0 0 0 0.25rem !important;
	padding: 0.15rem 0.5rem !important;
	border-radius: 999px !important;
	font-size: 0.58rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	line-height: 1.2 !important;
	opacity: 1 !important;
	visibility: visible !important;
}

/* ═══════════ TIMESTAMP BADGE ═══════════ */
html body #siropuChat .siropuChatDateTime,
html body #siropuChat time.siropuChatDateTime,
html body #siropuChat .siropuChatMessageContentRight .siropuChatDateTime,
html body #siropuChat .siropuChatMessageContentRight time,
html body #siropuChat .siropuChatMessageContentRight .u-dt {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.3rem !important;
	box-sizing: border-box !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0.32rem 0.65rem !important;
	border-radius: 999px !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	background: rgba(8, 7, 14, 0.62) !important;
	backdrop-filter: blur(6px) !important;
	-webkit-backdrop-filter: blur(6px) !important;
	box-shadow: none !important;
	color: rgba(196, 190, 220, 0.78) !important;
	-webkit-text-fill-color: rgba(196, 190, 220, 0.78) !important;
	font-family: Rajdhani, system-ui, sans-serif !important;
	font-size: 0.7rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

html body #siropuChat .siropuChatMessageActions {
	opacity: 0.55 !important;
	transition: opacity var(--g6m-chat-ease) !important;
}
html body #siropuChat .siropuChatMessages > li:hover .siropuChatMessageActions {
	opacity: 1 !important;
}

/* ═══════════ MEMBERS ONLINE PANEL ═══════════ */
html body #siropuChat .siropuChatUsers,
html body #siropuChat .siropuChatRoom.siropuChatUsers,
html body #siropuChat .siropuChatConversation.siropuChatUsers {
	box-sizing: border-box !important;
	padding: 0.65rem 0.55rem !important;
	border-left: 1px solid rgba(255, 255, 255, 0.06) !important;
	background: linear-gradient(
		180deg,
		rgba(18, 14, 28, 0.55) 0%,
		rgba(10, 8, 16, 0.4) 100%
	) !important;
}

html body #siropuChat .siropuChatUsers > li:not(.siropuChatNoRoomUsers):not(.g6m-chat-users-title) {
	margin: 0 0 0.45rem 0 !important;
	padding: 0.55rem 0.65rem !important;
	border-radius: 12px !important;
	border: 1px solid rgba(255, 255, 255, 0.06) !important;
	background: rgba(22, 18, 32, 0.65) !important;
	transition: border-color var(--g6m-chat-ease), box-shadow var(--g6m-chat-ease) !important;
}

html body #siropuChat .siropuChatUsers > li:not(.siropuChatNoRoomUsers):hover {
	border-color: rgba(141, 56, 255, 0.35) !important;
	box-shadow: 0 0 14px rgba(141, 56, 255, 0.12) !important;
}

/* Empty state */
html body #siropuChat .siropuChatUsers > li.siropuChatNoRoomUsers,
html body #siropuChat .siropuChatNoRoomUsers {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.55rem !important;
	min-height: calc(100% - 2.5rem) !important;
	margin: 0.35rem 0 0 !important;
	padding: 1.4rem 0.85rem !important;
	text-align: center !important;
	border-radius: 14px !important;
	border: 1px dashed rgba(141, 56, 255, 0.28) !important;
	background: rgba(16, 12, 26, 0.45) !important;
	color: rgba(196, 190, 220, 0.72) !important;
	font-family: Rajdhani, system-ui, sans-serif !important;
	font-size: 0.88rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em !important;
	line-height: 1.35 !important;
}

html body #siropuChat .siropuChatNoRoomUsers::before {
	content: "" !important;
	display: block !important;
	width: 2.1rem !important;
	height: 2.1rem !important;
	border-radius: 50% !important;
	background-color: rgba(141, 56, 255, 0.85) !important;
	-webkit-mask: url("/forum/styles/fa/solid/comments.svg?v=5.15.3") no-repeat center / contain !important;
	mask: url("/forum/styles/fa/solid/comments.svg?v=5.15.3") no-repeat center / contain !important;
	opacity: 0.85 !important;
	filter: drop-shadow(0 0 10px rgba(141, 56, 255, 0.45)) !important;
}

/* ═══════════ EDITOR TOOLBAR ═══════════ */
html body #siropuChat #siropuChatEditor,
html body #siropuChat .siropuChatEditor {
	margin-top: 0.35rem !important;
	padding: 0.55rem 0.65rem 0.75rem !important;
	border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
	background: linear-gradient(
		180deg,
		rgba(14, 11, 22, 0.55) 0%,
		rgba(10, 8, 16, 0.72) 100%
	) !important;
}

html body #siropuChat #siropuChatEditor .fr-toolbar,
html body #siropuChat #siropuChatEditor .fr-toolbar.fr-top,
html body #siropuChat #siropuChatEditor .editorToolbar {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 0.35rem 0.2rem !important;
	padding: 0.35rem 0.25rem 0.55rem !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* Visual tool families via Froala groups */
html body #siropuChat #siropuChatEditor .fr-btn-grp {
	display: inline-flex !important;
	align-items: center !important;
	gap: 0.15rem !important;
	margin: 0 0.35rem 0 0 !important;
	padding: 0.15rem 0.45rem 0.15rem 0.2rem !important;
	border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 0 !important;
}

html body #siropuChat #siropuChatEditor .fr-btn-grp:last-child {
	border-right: none !important;
	margin-right: 0 !important;
	padding-right: 0.1rem !important;
}

html body #siropuChat #siropuChatEditor .fr-toolbar .fr-btn,
html body #siropuChat #siropuChatEditor .fr-command.fr-btn,
html body #siropuChat #siropuChatEditor .editorToolbar .button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 2.15rem !important;
	height: 2.15rem !important;
	min-width: 2.15rem !important;
	min-height: 2.15rem !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 10px !important;
	border: 1px solid transparent !important;
	background: transparent !important;
	color: rgba(220, 214, 240, 0.78) !important;
	opacity: 1 !important;
	visibility: visible !important;
	transition:
		color var(--g6m-chat-ease),
		background-color var(--g6m-chat-ease),
		border-color var(--g6m-chat-ease),
		box-shadow var(--g6m-chat-ease),
		transform var(--g6m-chat-ease) !important;
}

html body #siropuChat #siropuChatEditor .fr-toolbar .fr-btn:hover,
html body #siropuChat #siropuChatEditor .fr-command.fr-btn:hover,
html body #siropuChat #siropuChatEditor .editorToolbar .button:hover,
html body #siropuChat #siropuChatEditor .fr-toolbar .fr-btn:focus-visible {
	color: #fff !important;
	background: rgba(141, 56, 255, 0.22) !important;
	border-color: rgba(255, 11, 139, 0.35) !important;
	box-shadow: 0 0 12px rgba(255, 11, 139, 0.2) !important;
	transform: translateY(-1px) !important;
}

/* Never hide toolbar buttons via legacy class */
html body #siropuChat #siropuChatEditor .fr-toolbar .fr-btn.g6m-chat-tool-hide,
html body #siropuChat #siropuChatEditor .fr-command.fr-btn.g6m-chat-tool-hide {
	display: inline-flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 2.15rem !important;
	height: 2.15rem !important;
}

/* ═══════════ INPUT FIELD ═══════════ */
html body #siropuChat #siropuChatEditor .fr-box,
html body #siropuChat #siropuChatEditor .fr-box.fr-basic {
	border-radius: 14px !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	background: rgba(12, 10, 18, 0.78) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
	overflow: hidden !important;
	transition:
		border-color var(--g6m-chat-ease),
		box-shadow var(--g6m-chat-ease) !important;
}

html body #siropuChat #siropuChatEditor .fr-box.fr-basic.fr-focus,
html body #siropuChat #siropuChatEditor .fr-box:focus-within {
	border-color: rgba(255, 11, 139, 0.45) !important;
	box-shadow:
		0 0 0 1px rgba(141, 56, 255, 0.35),
		0 0 22px rgba(255, 11, 139, 0.18) !important;
}

html body #siropuChat #siropuChatEditor .fr-wrapper,
html body #siropuChat #siropuChatEditor .fr-element,
html body #siropuChat #siropuChatEditor textarea,
html body #siropuChat #siropuChatEditor .input {
	min-height: 3.25rem !important;
	max-height: 9rem !important;
	padding: 0.85rem 1rem !important;
	background: transparent !important;
	color: rgba(244, 241, 251, 0.95) !important;
	font-size: 0.95rem !important;
	line-height: 1.45 !important;
	border: none !important;
	box-shadow: none !important;
}

html body #siropuChat #siropuChatEditor .fr-placeholder,
html body #siropuChat #siropuChatEditor .fr-element[data-placeholder]:empty::before {
	color: rgba(180, 174, 205, 0.55) !important;
	font-style: normal !important;
	opacity: 1 !important;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1100px) {
	:root {
		--g6m-chat-card-pad: 0.95rem;
		--g6m-chat-card-r: 16px;
	}
	html body #siropuChat .siropuChatMessageContentRight {
		max-width: 38% !important;
	}
}

@media (max-width: 768px) {
	html body #siropuChat .siropuChatMessages > li,
	html body #siropuChat li.siropuChatMessageRow {
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 0.45rem !important;
		padding: 0.9rem !important;
		border-radius: 16px !important;
	}
	html body #siropuChat .siropuChatMessageContentRight {
		flex-direction: row !important;
		align-items: center !important;
		justify-content: space-between !important;
		max-width: 100% !important;
		width: 100% !important;
		text-align: left !important;
	}
	html body #siropuChat #siropuChatEditor .fr-toolbar .fr-btn,
	html body #siropuChat #siropuChatEditor .fr-command.fr-btn {
		width: 2.35rem !important;
		height: 2.35rem !important;
		min-width: 2.35rem !important;
		min-height: 2.35rem !important;
	}
	html body #siropuChat .siropuChatUsers {
		border-left: none !important;
		border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
	}
	html body #siropuChat .siropuChatNoRoomUsers {
		min-height: 7rem !important;
	}
}

@media (max-width: 420px) {
	html body #siropuChat .siropuChatDateTime {
		font-size: 0.65rem !important;
		padding: 0.22rem 0.45rem !important;
	}
	html body #siropuChat .siropuChatMessageContentLeft .username {
		font-size: 0.98rem !important;
	}
}

/* END G6M_CHAT_PREMIUM_POLISH_V382 */

/* ==== g6m-inline-42-v700.css ==== */
/* Externalise depuis la modification #56, bloc inline #42 — position et ordre de cascade inchanges */

/* G6M_CHAT_PREMIUM_POLISH_V382
   Presentation-only polish for Siropu Chat.
   Keeps Discord fixed-pane scroll from v377. No feature changes.
*/

:root {
	--g6m-chat-polish: V382;
	--g6m-chat-card-pad: 1.125rem; /* 18px */
	--g6m-chat-card-gap: 0.7rem;
	--g6m-chat-card-r: 18px;
	--g6m-chat-ease: 200ms cubic-bezier(0.22, 1, 0.36, 1);
	--g6m-chat-glass: rgba(22, 18, 32, 0.72);
	--g6m-chat-glass-border: rgba(255, 255, 255, 0.07);
	--g6m-chat-pink: #ff0b8b;
	--g6m-chat-violet: #8d38ff;
	--g6m-chat-cyan: #00d7ff;
}

/* ═══════════ MESSAGE CARDS ═══════════ */
html body #siropuChat .siropuChatMessages > li,
html body #siropuChat li.siropuChatMessageRow,
html body #siropuChat .siropuChatMessages li[data-id],
html body #siropuChat .siropuChatMessages li[data-user-id],
html body #siropuChat ul.siropuChatMessages > li {
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start !important;
	justify-content: space-between !important;
	gap: 0.75rem !important;
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 0 var(--g6m-chat-card-gap) 0 !important;
	padding: var(--g6m-chat-card-pad) !important;
	border-radius: var(--g6m-chat-card-r) !important;
	border: 1px solid var(--g6m-chat-glass-border) !important;
	background: linear-gradient(
		165deg,
		rgba(28, 22, 40, 0.88) 0%,
		rgba(16, 13, 24, 0.78) 100%
	) !important;
	backdrop-filter: blur(10px) saturate(1.15) !important;
	-webkit-backdrop-filter: blur(10px) saturate(1.15) !important;
	box-shadow:
		0 8px 20px rgba(0, 0, 0, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
	color: rgba(244, 241, 251, 0.94) !important;
	line-height: 1.45 !important;
	transition:
		transform var(--g6m-chat-ease),
		box-shadow var(--g6m-chat-ease),
		border-color var(--g6m-chat-ease),
		background-color var(--g6m-chat-ease) !important;
	animation: g6mChatMsgIn 280ms ease-out both !important;
}

html body #siropuChat .siropuChatMessages > li:last-child,
html body #siropuChat ul.siropuChatMessages > li:last-child {
	margin-bottom: 0.15rem !important;
}

html body #siropuChat .siropuChatMessages > li:hover,
html body #siropuChat li.siropuChatMessageRow:hover {
	transform: translateY(-2px) !important;
	border-color: rgba(141, 56, 255, 0.32) !important;
	box-shadow:
		0 12px 28px rgba(0, 0, 0, 0.34),
		0 0 18px rgba(141, 56, 255, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

@keyframes g6mChatMsgIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	html body #siropuChat .siropuChatMessages > li,
	html body #siropuChat li.siropuChatMessageRow {
		animation: none !important;
		transition: none !important;
	}
	html body #siropuChat .siropuChatMessages > li:hover {
		transform: none !important;
	}
}

/* Left column: author + text — consistent width */
html body #siropuChat .siropuChatMessageContentLeft {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	align-content: flex-start !important;
	gap: 0.35rem 0.45rem !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
	width: auto !important;
	max-width: 100% !important;
	vertical-align: top !important;
	box-sizing: border-box !important;
}

html body #siropuChat .siropuChatMessageContentRight {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-end !important;
	justify-content: flex-start !important;
	gap: 0.35rem !important;
	flex: 0 0 auto !important;
	min-width: 0 !important;
	max-width: 42% !important;
	vertical-align: top !important;
	text-align: right !important;
}

/* ═══════════ AUTHOR ═══════════ */
html body #siropuChat .siropuChatMessageContentLeft .username,
html body #siropuChat .siropuChatMessages .username,
html body #siropuChat .siropuChatMessageContentLeft a.username {
	display: inline-flex !important;
	align-items: center !important;
	font-family: Rajdhani, Orbitron, system-ui, sans-serif !important;
	font-size: 1.05rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.03em !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	vertical-align: middle !important;
}

html body #siropuChat .siropuChatMessages .avatar,
html body #siropuChat .siropuChatMessages .avatar img {
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	min-height: 36px !important;
	max-width: 36px !important;
	max-height: 36px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	vertical-align: middle !important;
	align-self: center !important;
	border: 1px solid rgba(141, 56, 255, 0.45) !important;
	box-shadow: 0 0 10px rgba(141, 56, 255, 0.22) !important;
}

html body #siropuChat .siropuChatMessageText,
html body #siropuChat .siropuChatMessageText .bbWrapper {
	display: inline !important;
	flex: 1 1 100% !important;
	width: 100% !important;
	margin-top: 0.2rem !important;
	color: rgba(244, 241, 251, 0.94) !important;
	font-size: 0.95rem !important;
	line-height: 1.55 !important;
	word-break: break-word !important;
}

/* Rank / admin badges stay readable */
html body #siropuChat .siropuChatMessages .userBanner,
html body #siropuChat .siropuChatMessages .userTitle,
html body #siropuChat .siropuChatMessages [class*="userBanner"] {
	display: inline-flex !important;
	align-items: center !important;
	margin: 0 0 0 0.25rem !important;
	padding: 0.15rem 0.5rem !important;
	border-radius: 999px !important;
	font-size: 0.58rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	line-height: 1.2 !important;
	opacity: 1 !important;
	visibility: visible !important;
}

/* ═══════════ TIMESTAMP BADGE ═══════════ */
html body #siropuChat .siropuChatDateTime,
html body #siropuChat time.siropuChatDateTime,
html body #siropuChat .siropuChatMessageContentRight .siropuChatDateTime,
html body #siropuChat .siropuChatMessageContentRight time,
html body #siropuChat .siropuChatMessageContentRight .u-dt {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.3rem !important;
	box-sizing: border-box !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0.32rem 0.65rem !important;
	border-radius: 999px !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	background: rgba(8, 7, 14, 0.62) !important;
	backdrop-filter: blur(6px) !important;
	-webkit-backdrop-filter: blur(6px) !important;
	box-shadow: none !important;
	color: rgba(196, 190, 220, 0.78) !important;
	-webkit-text-fill-color: rgba(196, 190, 220, 0.78) !important;
	font-family: Rajdhani, system-ui, sans-serif !important;
	font-size: 0.7rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

html body #siropuChat .siropuChatMessageActions {
	opacity: 0.55 !important;
	transition: opacity var(--g6m-chat-ease) !important;
}
html body #siropuChat .siropuChatMessages > li:hover .siropuChatMessageActions {
	opacity: 1 !important;
}

/* ═══════════ MEMBERS ONLINE PANEL ═══════════ */
html body #siropuChat .siropuChatUsers,
html body #siropuChat .siropuChatRoom.siropuChatUsers,
html body #siropuChat .siropuChatConversation.siropuChatUsers {
	box-sizing: border-box !important;
	padding: 0.65rem 0.55rem !important;
	border-left: 1px solid rgba(255, 255, 255, 0.06) !important;
	background: linear-gradient(
		180deg,
		rgba(18, 14, 28, 0.55) 0%,
		rgba(10, 8, 16, 0.4) 100%
	) !important;
}

html body #siropuChat .siropuChatUsers > li:not(.siropuChatNoRoomUsers):not(.g6m-chat-users-title) {
	margin: 0 0 0.45rem 0 !important;
	padding: 0.55rem 0.65rem !important;
	border-radius: 12px !important;
	border: 1px solid rgba(255, 255, 255, 0.06) !important;
	background: rgba(22, 18, 32, 0.65) !important;
	transition: border-color var(--g6m-chat-ease), box-shadow var(--g6m-chat-ease) !important;
}

html body #siropuChat .siropuChatUsers > li:not(.siropuChatNoRoomUsers):hover {
	border-color: rgba(141, 56, 255, 0.35) !important;
	box-shadow: 0 0 14px rgba(141, 56, 255, 0.12) !important;
}

/* Empty state */
html body #siropuChat .siropuChatUsers > li.siropuChatNoRoomUsers,
html body #siropuChat .siropuChatNoRoomUsers {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.55rem !important;
	min-height: calc(100% - 2.5rem) !important;
	margin: 0.35rem 0 0 !important;
	padding: 1.4rem 0.85rem !important;
	text-align: center !important;
	border-radius: 14px !important;
	border: 1px dashed rgba(141, 56, 255, 0.28) !important;
	background: rgba(16, 12, 26, 0.45) !important;
	color: rgba(196, 190, 220, 0.72) !important;
	font-family: Rajdhani, system-ui, sans-serif !important;
	font-size: 0.88rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em !important;
	line-height: 1.35 !important;
}

html body #siropuChat .siropuChatNoRoomUsers::before {
	content: "" !important;
	display: block !important;
	width: 2.1rem !important;
	height: 2.1rem !important;
	border-radius: 50% !important;
	background-color: rgba(141, 56, 255, 0.85) !important;
	-webkit-mask: url("/forum/styles/fa/solid/comments.svg?v=5.15.3") no-repeat center / contain !important;
	mask: url("/forum/styles/fa/solid/comments.svg?v=5.15.3") no-repeat center / contain !important;
	opacity: 0.85 !important;
	filter: drop-shadow(0 0 10px rgba(141, 56, 255, 0.45)) !important;
}

/* ═══════════ EDITOR TOOLBAR ═══════════ */
html body #siropuChat #siropuChatEditor,
html body #siropuChat .siropuChatEditor {
	margin-top: 0.35rem !important;
	padding: 0.55rem 0.65rem 0.75rem !important;
	border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
	background: linear-gradient(
		180deg,
		rgba(14, 11, 22, 0.55) 0%,
		rgba(10, 8, 16, 0.72) 100%
	) !important;
}

html body #siropuChat #siropuChatEditor .fr-toolbar,
html body #siropuChat #siropuChatEditor .fr-toolbar.fr-top,
html body #siropuChat #siropuChatEditor .editorToolbar {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 0.35rem 0.2rem !important;
	padding: 0.35rem 0.25rem 0.55rem !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* Visual tool families via Froala groups */
html body #siropuChat #siropuChatEditor .fr-btn-grp {
	display: inline-flex !important;
	align-items: center !important;
	gap: 0.15rem !important;
	margin: 0 0.35rem 0 0 !important;
	padding: 0.15rem 0.45rem 0.15rem 0.2rem !important;
	border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 0 !important;
}

html body #siropuChat #siropuChatEditor .fr-btn-grp:last-child {
	border-right: none !important;
	margin-right: 0 !important;
	padding-right: 0.1rem !important;
}

html body #siropuChat #siropuChatEditor .fr-toolbar .fr-btn,
html body #siropuChat #siropuChatEditor .fr-command.fr-btn,
html body #siropuChat #siropuChatEditor .editorToolbar .button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 2.15rem !important;
	height: 2.15rem !important;
	min-width: 2.15rem !important;
	min-height: 2.15rem !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 10px !important;
	border: 1px solid transparent !important;
	background: transparent !important;
	color: rgba(220, 214, 240, 0.78) !important;
	opacity: 1 !important;
	visibility: visible !important;
	transition:
		color var(--g6m-chat-ease),
		background-color var(--g6m-chat-ease),
		border-color var(--g6m-chat-ease),
		box-shadow var(--g6m-chat-ease),
		transform var(--g6m-chat-ease) !important;
}

html body #siropuChat #siropuChatEditor .fr-toolbar .fr-btn:hover,
html body #siropuChat #siropuChatEditor .fr-command.fr-btn:hover,
html body #siropuChat #siropuChatEditor .editorToolbar .button:hover,
html body #siropuChat #siropuChatEditor .fr-toolbar .fr-btn:focus-visible {
	color: #fff !important;
	background: rgba(141, 56, 255, 0.22) !important;
	border-color: rgba(255, 11, 139, 0.35) !important;
	box-shadow: 0 0 12px rgba(255, 11, 139, 0.2) !important;
	transform: translateY(-1px) !important;
}

/* Never hide toolbar buttons via legacy class */
html body #siropuChat #siropuChatEditor .fr-toolbar .fr-btn.g6m-chat-tool-hide,
html body #siropuChat #siropuChatEditor .fr-command.fr-btn.g6m-chat-tool-hide {
	display: inline-flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 2.15rem !important;
	height: 2.15rem !important;
}

/* ═══════════ INPUT FIELD ═══════════ */
html body #siropuChat #siropuChatEditor .fr-box,
html body #siropuChat #siropuChatEditor .fr-box.fr-basic {
	border-radius: 14px !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	background: rgba(12, 10, 18, 0.78) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
	overflow: hidden !important;
	transition:
		border-color var(--g6m-chat-ease),
		box-shadow var(--g6m-chat-ease) !important;
}

html body #siropuChat #siropuChatEditor .fr-box.fr-basic.fr-focus,
html body #siropuChat #siropuChatEditor .fr-box:focus-within {
	border-color: rgba(255, 11, 139, 0.45) !important;
	box-shadow:
		0 0 0 1px rgba(141, 56, 255, 0.35),
		0 0 22px rgba(255, 11, 139, 0.18) !important;
}

html body #siropuChat #siropuChatEditor .fr-wrapper,
html body #siropuChat #siropuChatEditor .fr-element,
html body #siropuChat #siropuChatEditor textarea,
html body #siropuChat #siropuChatEditor .input {
	min-height: 3.25rem !important;
	max-height: 9rem !important;
	padding: 0.85rem 1rem !important;
	background: transparent !important;
	color: rgba(244, 241, 251, 0.95) !important;
	font-size: 0.95rem !important;
	line-height: 1.45 !important;
	border: none !important;
	box-shadow: none !important;
}

html body #siropuChat #siropuChatEditor .fr-placeholder,
html body #siropuChat #siropuChatEditor .fr-element[data-placeholder]:empty::before {
	color: rgba(180, 174, 205, 0.55) !important;
	font-style: normal !important;
	opacity: 1 !important;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1100px) {
	:root {
		--g6m-chat-card-pad: 0.95rem;
		--g6m-chat-card-r: 16px;
	}
	html body #siropuChat .siropuChatMessageContentRight {
		max-width: 38% !important;
	}
}

@media (max-width: 768px) {
	html body #siropuChat .siropuChatMessages > li,
	html body #siropuChat li.siropuChatMessageRow {
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 0.45rem !important;
		padding: 0.9rem !important;
		border-radius: 16px !important;
	}
	html body #siropuChat .siropuChatMessageContentRight {
		flex-direction: row !important;
		align-items: center !important;
		justify-content: space-between !important;
		max-width: 100% !important;
		width: 100% !important;
		text-align: left !important;
	}
	html body #siropuChat #siropuChatEditor .fr-toolbar .fr-btn,
	html body #siropuChat #siropuChatEditor .fr-command.fr-btn {
		width: 2.35rem !important;
		height: 2.35rem !important;
		min-width: 2.35rem !important;
		min-height: 2.35rem !important;
	}
	html body #siropuChat .siropuChatUsers {
		border-left: none !important;
		border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
	}
	html body #siropuChat .siropuChatNoRoomUsers {
		min-height: 7rem !important;
	}
}

@media (max-width: 420px) {
	html body #siropuChat .siropuChatDateTime {
		font-size: 0.65rem !important;
		padding: 0.22rem 0.45rem !important;
	}
	html body #siropuChat .siropuChatMessageContentLeft .username {
		font-size: 0.98rem !important;
	}
}

/* END G6M_CHAT_PREMIUM_POLISH_V382 */
