.ml-home-app .material-symbols-rounded {
	font-size: 21px;
	line-height: 1;
	font-variation-settings:
		"FILL" 0,
		"wght" 520,
		"GRAD" 0,
		"opsz" 24;
}

.ml-home-app,
.ml-home-app * {
	box-sizing: border-box;
}

.ml-home-app {
	--ml-home-text: var(--mb-text, var(--ml-app-text, #f4f6fb));
	--ml-home-muted: var(--mb-muted, var(--ml-app-muted, #8f98aa));
	--ml-home-border: var(--mb-border, var(--ml-app-border, rgba(255, 255, 255, 0.11)));
	--ml-home-border-soft: var(--mb-border-soft, var(--ml-app-border-soft, rgba(255, 255, 255, 0.07)));
	--ml-home-surface: var(--mb-surface, var(--ml-app-surface, #111722));
	--ml-home-surface-2: var(--mb-surface-2, var(--ml-app-surface-2, #171e29));
	--ml-home-surface-3: var(--mb-surface-3, #202735);
	--ml-home-toolbar: var(--mb-toolbar, rgba(255, 255, 255, 0.018));
	--ml-home-accent: var(--skin-accent,
		var(--theme-accent,
		var(--accent-color,
		var(--primary-color,
		var(--mb-accent,
		var(--ml-app-accent,
		var(--bs-primary, #7c8aa5)))))));
	--ml-home-accent-hover: var(--skin-accent-hover,
		var(--theme-accent-hover,
		var(--mb-accent-hover,
		var(--ml-app-accent-hover,
		color-mix(in srgb, var(--ml-home-accent) 78%, white)))));
	--ml-home-accent-soft: var(--skin-accent-soft,
		var(--theme-accent-soft,
		var(--mb-accent-soft,
		var(--ml-app-accent-soft,
		color-mix(in srgb, var(--ml-home-accent) 9%, transparent)))));
	--ml-home-accent-subtle: color-mix(in srgb, var(--ml-home-accent) 3%, transparent);
	--ml-home-accent-border: color-mix(in srgb, var(--ml-home-accent) 24%, transparent);
	--ml-home-accent-border-strong: color-mix(in srgb, var(--ml-home-accent) 55%, transparent);
	--ml-home-accent-focus: color-mix(in srgb, var(--ml-home-accent) 74%, transparent);
	--ml-home-accent-ring: color-mix(in srgb, var(--ml-home-accent) 11%, transparent);
	--ml-home-success: var(--mb-success, #4fd19d);
	--ml-home-danger: var(--ml-app-danger, #ff6258);

	width: 100%;
	margin: 0.75rem 0 1.5rem;
	color: var(--ml-home-text);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}


@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
	.ml-home-app {
		--ml-home-accent-hover: var(--skin-accent-hover,
			var(--theme-accent-hover,
			var(--mb-accent-hover,
			var(--ml-app-accent-hover, #9aa8c4))));
		--ml-home-accent-soft: var(--skin-accent-soft,
			var(--theme-accent-soft,
			var(--mb-accent-soft,
			var(--ml-app-accent-soft, rgba(124, 138, 165, 0.09)))));
		--ml-home-accent-subtle: rgba(124, 138, 165, 0.03);
		--ml-home-accent-border: rgba(124, 138, 165, 0.24);
		--ml-home-accent-border-strong: rgba(124, 138, 165, 0.55);
		--ml-home-accent-focus: rgba(124, 138, 165, 0.74);
		--ml-home-accent-ring: rgba(124, 138, 165, 0.11);
	}
}


.ml-app-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.72fr);
	gap: 0.75rem;
	align-items: start;
	width: 100%;
}

.ml-app-card {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--ml-home-border);
	border-radius: 16px;
	background: var(--ml-home-surface); 
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16); 
}

.ml-workspace {
	min-width: 0;
}

.ml-workspace-nav {
	display: grid;
	grid-template-columns: minmax(190px, 1fr) auto auto;
	align-items: center;
	gap: 0.65rem;
	min-height: 58px;
	padding: 0.65rem 0.8rem;
	border-bottom: 1px solid var(--ml-home-border-soft);
	background: var(--bg-primary);
}

.ml-home-heading {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	min-width: 0;
}

.ml-home-heading__icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	color: var(--ml-home-accent);
	border: 1px solid var(--ml-home-accent-border);
	background: var(--ml-home-accent-soft);
}

.ml-home-heading__icon {
	width: 36px;
	height: 36px;
	flex-basis: 36px;
	border-radius: 10px;
}

.ml-home-heading__icon .material-symbols-rounded {
	font-size: 21px;
}

.ml-home-heading h1,
.ml-home-heading p {
	margin: 0;
}

.ml-home-heading h1 {
	color: var(--ml-home-text);
	font-size: 1rem;
	font-weight: 850;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.ml-home-heading p {
	margin-top: 0.12rem;
	overflow: hidden;
	color: var(--ml-home-muted);
	font-size: 0.68rem;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ml-workspace-tabs {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	padding: 3px;
	border: 1px solid var(--ml-home-border-soft);
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.025);
}

.ml-workspace-tab {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 32px;
	padding: 0.45rem 0.62rem;
	color: var(--ml-home-muted);
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	font-size: 0.68rem;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.ml-workspace-tab:hover {
	color: var(--ml-home-text);
	background: rgba(255, 255, 255, 0.03);
}

.ml-workspace-tab:active {
	transform: translateY(1px);
}

.ml-workspace-tab:focus-visible,
.ml-workspace-menu-button:focus-visible,
.ml-side-tab:focus-visible,
.ml-icon-button:focus-visible,
.ml-text-button:focus-visible,
.ml-send-button:focus-visible,
.ml-chat-image-button:focus-visible,
.ml-chat-action-button:focus-visible,
.ml-chat-bb-badge__remove:focus-visible,
.ml-greeting-button:focus-visible,
.ml-picker-close:focus-visible,
.ml-picker-smiley:focus-visible,
.ml-picker-greeting:focus-visible {
	outline: 2px solid var(--ml-home-accent-focus);
	outline-offset: 2px;
}

.ml-workspace-tab.is-active {
	color: var(--ml-home-text);
	border-color: var(--ml-home-accent-border-strong);
	background: var(--ml-home-accent-soft);
	box-shadow: inset 0 0 0 1px var(--ml-home-accent-soft);
}

.ml-workspace-tab .material-symbols-rounded {
	font-size: 18px;
}

.ml-workspace-tab.is-active .ml-workspace-tab__count,
.ml-side-tab.is-active .ml-side-tab__count {
	color: var(--ml-home-accent-hover);
	border-color: var(--ml-home-accent-border-strong);
	background: transparent;
}

.ml-workspace-tab__count,
.ml-side-tab__count,
.ml-segmented-tab__count {
	display: inline-grid;
	min-width: 20px;
	height: 20px;
	place-items: center;
	padding: 0 0.32rem;
	color: var(--ml-home-accent-hover);
	border: 1px solid var(--ml-home-accent-border);
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	font-size: 0.6rem;
	font-weight: 850;
	line-height: 1;
}

.ml-mobile-nav {
	display: none;
}

.ml-mobile-tab {
	appearance: none;
	position: relative;
	display: inline-grid;
	min-width: 0;
	min-height: 42px;
	place-items: center;
	padding: 0.35rem;
	color: var(--ml-home-muted);
	border: 1px solid transparent;
	border-radius: 9px;
	background: transparent;
	cursor: pointer;
	transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.ml-mobile-tab:hover {
	color: var(--ml-home-text);
	background: rgba(255, 255, 255, 0.03);
}

.ml-mobile-tab:active {
	transform: translateY(1px);
}

.ml-mobile-tab:focus-visible {
	outline: 2px solid var(--ml-home-accent-focus);
	outline-offset: 2px;
}

.ml-mobile-tab.is-active {
	color: var(--ml-home-accent-hover);
	border-color: var(--ml-home-accent-border-strong);
	background: var(--ml-home-accent-soft);
}

.ml-mobile-tab .material-symbols-rounded {
	font-size: 21px;
}

.ml-mobile-tab__count {
	position: absolute;
	top: 2px;
	right: 3px;
	display: inline-grid;
	min-width: 17px;
	height: 17px;
	place-items: center;
	padding: 0 0.24rem;
	color: var(--ml-home-accent-hover);
	border: 1px solid var(--ml-home-accent-border);
	border-radius: 999px;
	background: var(--ml-home-surface-2);
	font-size: 0.52rem;
	font-weight: 850;
	line-height: 1;
}

.ml-workspace-menu-wrap[hidden],
.ml-app-sidebar[hidden] {
	display: none !important;
}

.ml-workspace-menu-wrap {
	position: relative;
	flex: 0 0 auto;
}

/* A hárompontos menü vezérlője minden nézetben maradjon látható. */
.ml-home-app .ml-workspace-menu-wrap,
.ml-home-app .ml-workspace-menu-wrap[hidden] {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.ml-home-app .ml-workspace-menu-button,
.ml-home-app .ml-workspace-menu-button[hidden] {
	display: inline-flex !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.ml-workspace-menu-button,
.ml-icon-button,
.ml-text-button,
.ml-send-button {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ml-home-text);
	border: 1px solid var(--ml-home-border);
	background: var(--ml-home-surface-2);
	text-decoration: none !important;
	cursor: pointer;
	transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease, filter 150ms ease;
}

.ml-workspace-menu-button {
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 9px;
}

.ml-workspace-menu-button:hover,
.ml-workspace-menu-button[aria-expanded="true"],
.ml-icon-button:hover,
.ml-text-button:hover {
	color: var(--ml-home-accent-hover) !important;
	border-color: var(--ml-home-accent-border-strong);
	background: var(--ml-home-surface-3);
}

.ml-workspace-menu-button:active,
.ml-icon-button:active,
.ml-text-button:active,
.ml-send-button:active {
	transform: translateY(1px);
}

.ml-workspace-menu {
	position: absolute;
	z-index: 30;
	top: calc(100% + 0.45rem);
	right: 0;
	width: min(230px, calc(100vw - 2rem));
	padding: 0.4rem;
	border: 1px solid var(--ml-home-border);
	border-radius: 12px;
	background: var(--ml-home-surface-2);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

.ml-workspace-menu[hidden] {
	display: none !important;
}

.ml-workspace-menu--mobile {
	display: none;
}

.ml-workspace-menu__section-title {
	padding: 0.34rem 0.58rem 0.28rem;
	color: var(--ml-home-muted);
	font-size: 0.58rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ml-workspace-menu__divider {
	height: 1px;
	margin: 0.35rem 0.2rem;
	background: var(--ml-home-border-soft);
}

.ml-workspace-menu__view {
	justify-content: flex-start !important;
}

.ml-workspace-menu__view.is-active {
	color: var(--ml-home-accent-hover);
	background: var(--ml-home-accent-soft);
}

.ml-workspace-menu__view-label {
	min-width: 0;
	flex: 1 1 auto;
}

.ml-workspace-menu__count {
	display: inline-grid;
	min-width: 21px;
	height: 21px;
	margin-left: auto;
	place-items: center;
	padding: 0 0.34rem;
	color: var(--ml-home-accent-hover);
	border: 1px solid var(--ml-home-accent-border);
	border-radius: 999px;
	background: transparent;
	font-size: 0.57rem;
	font-weight: 850;
	line-height: 1;
}

.ml-workspace-menu a,
.ml-workspace-menu button,
.ml-workspace-menu__empty {
	display: flex;
	align-items: center;
	gap: 0.48rem;
	width: 100%;
	min-height: 38px;
	padding: 0.5rem 0.58rem;
	color: var(--ml-home-text);
	border-radius: 8px;
	text-decoration: none !important;
	font-family: inherit;
	text-align: left;
	font-size: 0.72rem;
	font-weight: 760;
}

.ml-workspace-menu a:hover,
.ml-workspace-menu button:hover {
	color: var(--ml-home-accent-hover);
	background: rgba(255, 255, 255, 0.04);
}

.ml-workspace-menu__empty {
	color: var(--ml-home-muted);
}

.ml-workspace-menu button {
	border: 0;
	background: transparent;
	cursor: pointer;
}

.ml-workspace-menu button.ml-workspace-menu__danger:hover {
	color: var(--ml-home-danger);
	background: rgba(255, 98, 88, 0.08);
}

.ml-workspace-panel[hidden],
.ml-side-panel[hidden] {
	display: none !important;
}

.ml-workspace-body {
	padding: 0.48rem;
}

.ml-content-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.65rem;
}

.ml-content-head h3 {
	margin: 0;
	color: var(--ml-home-text);
	font-size: 0.9rem;
	font-weight: 850;
}

.ml-content-head p {
	margin: 0.18rem 0 0;
	color: var(--ml-home-muted);
	font-size: 0.67rem;
}

.ml-live-chip,
.ml-status-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.32rem;
	min-height: 26px;
	padding: 0.28rem 0.48rem;
	border-radius: 999px;
	font-size: 0.58rem;
	font-weight: 820;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.ml-live-chip {
	color: var(--ml-home-accent-hover);
	border: 1px solid var(--ml-home-accent-border);
	background: transparent;
}

.ml-status-chip {
	color: var(--ml-home-muted);
	border: 1px solid var(--ml-home-border);
	background: transparent;
}

.ml-live-dot {
	width: 7px;
	height: 7px;
	flex: 0 0 7px;
	border-radius: 50%;
	background: var(--ml-home-success);
	box-shadow: 0 0 0 3px rgba(79, 209, 157, 0.12);
}

.ml-icon-button {
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 9px;
}

.ml-text-button {
	min-height: 36px;
	gap: 0.35rem;
	padding: 0.5rem 0.68rem;
	border-radius: 9px;
	font-size: 0.7rem;
	font-weight: 780;
	line-height: 1;
}

.ml-primary-button {
	color: #fff !important;
	border-color: var(--ml-home-accent);
	background: var(--ml-home-accent);
}

.ml-primary-button:hover {
	color: #fff !important;
	border-color: var(--ml-home-accent-hover);
	background: var(--ml-home-accent-hover);
}

.ml-header-actions,
.ml-quiz-actions {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.ml-app-loading {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--ml-home-muted);
	font-size: 0.7rem;
}

.ml-chat-wall {
	--ml-chat-composer-height: 56px;
	--ml-chat-input-height: 56px;
	position: relative;
	height: 590px;
	min-height: 430px;
	overflow: hidden;
	border: 1px solid var(--ml-home-border-soft);
	border-radius: 13px;
	background: var(--ml-home-surface);
}

#chat_uzenetek {
	position: absolute;
	top: 0;
	right: 0;
	bottom: var(--ml-chat-composer-height, 56px);
	left: 0;
	display: flex;
	width: 100%;
	height: auto;
	flex-direction: column;
	/* padding: 0.38rem 0.42rem 0.35rem; */
	overflow-y: auto;
	overflow-x: hidden;
	text-align: left;
	font-size: 15px;
	scrollbar-color: var(--ml-home-border) transparent;
	transition: bottom 140ms ease;
}

/*
 * Kevés üzenetnél is ahhoz az élhez igazítjuk a listát, ahol a legújabb
 * üzenet található: asc = alul, desc = felül.
 */
#chat_uzenetek[data-chat-order="asc"] > :first-child {
	margin-top: auto;
}

#chat_uzenetek[data-chat-order="desc"] > :last-child {
	margin-bottom: auto;
}

#chat_uzenetek::-webkit-scrollbar,
.ml-scroll-area::-webkit-scrollbar,
#smilies-card::-webkit-scrollbar {
	width: 7px;
}

#chat_uzenetek::-webkit-scrollbar-thumb,
.ml-scroll-area::-webkit-scrollbar-thumb,
#smilies-card::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: var(--ml-home-border);
}

.ml-home-app .chat_uzenet {
	max-width: 100%;
	margin: 0 0 0.26rem;
	padding: 0.48rem 0.6rem;
	color: rgba(244, 246, 251, 0.84);
/*	background: rgba(255, 255, 255, 0.022); */
	font-size: 15px;
	line-height: 1.4;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: normal;
	transition: border-color 150ms ease, background 150ms ease;
	font-weight: 600;
}

.ml-home-app .chat_uzenet p {
	margin-top: 0;
	margin-bottom: 0;
}

.ml-home-app .chat_uzenet img {
	max-width: 100%;
	vertical-align: middle;
}

.ml-home-app .chat_uzenet .float-end,
.ml-home-app .chat_uzenet .pull-right,
.ml-home-app .chat_uzenet [style*="float: right"],
.ml-home-app .chat_uzenet [style*="float:right"] {
	float: right !important;
	margin-left: 0.5rem;
}

.ml-home-app .chat_uzenet:hover {
	border-color: rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.038);
}

.ml-home-app .form-control,
.ml-home-app .form-select {
	width: 100%;
	min-height: 40px;
	padding: 0.55rem 0.65rem;
	color: var(--ml-home-text);
	border: 1px solid var(--ml-home-border);
	border-radius: 9px;
	background: var(--ml-home-surface-2);
	font-size: 0.75rem;
	outline: none;
}

.ml-home-app textarea.form-control {
	min-height: 72px;
	max-height: 170px;
	line-height: 1.5;
	resize: vertical;
}

.ml-home-app .form-control::placeholder {
	color: #747e91;
}

.ml-home-app .form-control:focus,
.ml-home-app .form-select:focus {
	border-color: var(--ml-home-accent-focus);
	box-shadow: 0 0 0 0.18rem var(--ml-home-accent-ring);
}

.ml-chat-edit,
.ml-inline-panel,
.ml-quiz-panel {
	margin: 0 0 0.48rem;
	padding: 0.65rem;
	border: 1px solid var(--ml-home-border);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.022);
}

.ml-inline-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.5rem;
}

.ml-chat-form {
	position: absolute;
	z-index: 10;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	margin: 0;
	padding: 0.32rem 0.42rem 0.38rem;
	background: transparent;
	pointer-events: none;
}

.ml-chat-composer {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.ml-chat-composer:focus-within {
	box-shadow: none;
}


.ml-chat-composer__main {
	display: grid;
	pointer-events: auto;
	grid-template-columns: 36px minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.18rem;
	width: 100%;
	min-height: 46px;
	padding: 0.24rem 0.3rem;
	/* border: 1px solid var(--ml-home-border); */
	border-radius: 10px;
	background: var(--ml-home-surface-2);
	box-shadow: 0 7px 20px rgba(0, 0, 0, 0.2);
	transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}


.ml-chat-composer__main:focus-within {
	border-color: var(--ml-home-accent-border-strong);
	background: color-mix(in srgb, var(--ml-home-surface-2) 94%, var(--ml-home-accent) 6%);
	box-shadow: 0 0 0 3px var(--ml-home-accent-ring), 0 8px 22px rgba(0, 0, 0, 0.22);
}

@supports not (background: color-mix(in srgb, #000 50%, #fff)) {
	.ml-chat-composer__main:focus-within {
		background: var(--ml-home-surface-2);
	}
}

.ml-chat-composer__leading,
.ml-chat-composer__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.ml-chat-composer__leading {
	padding: 0;
}

.ml-chat-composer__actions {
	position: relative;
	gap: 0.12rem;
	padding: 0;
}

/* A +, a szmájli és a küldés külön kör alakú vezérlők. */
.ml-chat-image-button,
.ml-chat-action-button,
.ml-chat-composer .ml-send-button {
	appearance: none;
	display: inline-grid;
	width: 34px;
	height: 34px;
	min-height: 34px;
	flex: 0 0 34px;
	place-items: center;
	margin: 0;
	padding: 0;
	color: var(--ml-home-muted) !important;
	border: 1px solid var(--ml-home-border-soft);
	border-radius: 50%;
	background: var(--ml-home-surface-3);
	text-decoration: none !important;
	cursor: pointer;
	opacity: 1;
	transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.ml-chat-image-button:hover,
.ml-chat-action-button:hover,
.ml-chat-image-button:focus-visible,
.ml-chat-action-button:focus-visible,
.ml-chat-composer .ml-send-button:hover,
.ml-chat-composer .ml-send-button:focus-visible {
	color: var(--ml-home-accent-hover) !important;
	border-color: var(--ml-home-accent-border-strong);
	background: var(--ml-home-accent-soft);
	box-shadow: 0 0 0 3px var(--ml-home-accent-ring);
	outline: none;
}

.ml-chat-image-button:active,
.ml-chat-action-button:active,
.ml-chat-composer .ml-send-button:active {
	transform: scale(0.94);
}

.ml-chat-image-button.is-active,
.ml-chat-action-button.is-active,
.ml-chat-action-button[aria-expanded="true"] {
	color: var(--ml-home-accent-hover) !important;
	border-color: var(--ml-home-accent-border-strong);
	background: var(--ml-home-accent-soft);
}

.ml-chat-image-button .material-symbols-rounded {
	font-size: 22px;
	font-variation-settings:
		"FILL" 0,
		"wght" 620,
		"GRAD" 0,
		"opsz" 24;
}

.ml-chat-action-button .material-symbols-rounded,
.ml-chat-composer .ml-send-button .material-symbols-rounded {
	font-size: 20px;
}

.ml-chat-smiley-menu {
	position: relative;
	display: inline-grid;
	flex: 0 0 auto;
	place-items: center;
}

.ml-chat-smiley-bubble {
	position: absolute;
	z-index: 18;
	right: -0.12rem;
	bottom: calc(100% + 0.48rem);
	display: grid;
	width: 174px;
	gap: 0.22rem;
	padding: 0.34rem;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	border: 1px solid var(--ml-home-border);
	border-radius: 13px;
	background: var(--ml-home-surface-2);
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
	transform: translateY(5px) scale(0.98);
	transform-origin: right bottom;
	transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
}

.ml-chat-smiley-bubble::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -10px;
	width: 48px;
	height: 11px;
}

.ml-chat-smiley-menu.is-open .ml-chat-smiley-bubble {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

/* Hover csak valódi egérrel. Telefonon kizárólag külön tap nyitja. */
@media (hover: hover) and (pointer: fine) {
	.ml-chat-smiley-menu:hover .ml-chat-smiley-bubble {
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0) scale(1);
	}
}

.ml-chat-smiley-choice {
	appearance: none;
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	align-items: center;
	gap: 0.42rem;
	width: 100%;
	min-height: 36px;
	padding: 0.24rem 0.42rem;
	color: var(--ml-home-text);
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	font: inherit;
	font-size: 0.68rem;
	font-weight: 760;
	text-align: left;
	cursor: pointer;
}

.ml-chat-smiley-choice:hover,
.ml-chat-smiley-choice:focus-visible,
.ml-chat-smiley-choice.is-active {
	color: var(--ml-home-accent-hover);
	border-color: var(--ml-home-accent-border);
	background: var(--ml-home-accent-soft);
	outline: none;
}

.ml-chat-smiley-choice .material-symbols-rounded {
	font-size: 19px;
}

.ml-chat-composer__source {
	display: block;
	width: 100%;
	height: 36px;
	min-height: 36px;
	max-height: 96px;
	margin: 0;
	padding: 0.46rem 0.42rem 0.34rem;
	overflow-y: auto;
	color: var(--ml-home-text);
	caret-color: var(--ml-home-accent-hover);
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-family: inherit;
	line-height: 1.25;
	outline: none;
	resize: none;
	overflow-wrap: anywhere;
	-webkit-appearance: none;
	appearance: none;
}

.ml-chat-composer__source:hover,
.ml-chat-composer__source:focus {
	border: 0;
	box-shadow: none;
}

.ml-chat-composer__source::placeholder {
	color: var(--ml-home-muted);
	opacity: 1;
}

.ml-chat-composer .ml-send-button {
	color: var(--ml-home-muted) !important;
}

.ml-chat-composer.is-ready .ml-send-button {
	color: #fff !important;
	border-color: var(--ml-home-accent);
	background: var(--ml-home-accent);
	box-shadow: none;
}

.ml-chat-composer.is-ready .ml-send-button:hover,
.ml-chat-composer.is-ready .ml-send-button:focus-visible {
	color: #fff !important;
	border-color: var(--ml-home-accent-hover);
	background: var(--ml-home-accent-hover);
	box-shadow: 0 0 0 3px var(--ml-home-accent-ring);
}

.ml-chat-tools {
	display: none;
}

.ml-chat-wall > #smilies-card {
	position: absolute;
	z-index: 12;
	right: 0.45rem;
	bottom: calc(var(--ml-chat-composer-height, 56px) + 0.38rem);
	left: 0.45rem;
	width: auto;
	max-height: min(300px, calc(100% - var(--ml-chat-composer-height, 56px) - 0.85rem));
	margin: 0;
	overflow-y: auto;
	border-color: var(--ml-home-border);
	background: var(--ml-home-surface-2);
	box-shadow: none;
	contain: layout paint style;
	transform-origin: center bottom;
}

.ml-chat-wall > #smilies-card.ml-smiley-preparing {
	display: block !important;
	visibility: hidden !important;
	opacity: 0;
	pointer-events: none;
	transform: translate3d(0, 8px, 0);
}

.ml-chat-wall > #smilies-card.ml-smiley-visible {
	display: block !important;
	visibility: visible !important;
	opacity: 1;
	pointer-events: auto;
	transform: translate3d(0, 0, 0);
	transition: opacity 100ms ease-out, transform 100ms ease-out;
}

.ml-chat-wall > #smilies-card.ml-smiley-visible.ml-smiley-settled {
}

.ml-chat-wall > #smilies-card.ml-smiley-closing {
	display: block !important;
	visibility: visible !important;
	opacity: 0;
	pointer-events: none;
	transform: translate3d(0, 8px, 0);
	transition: opacity 90ms ease-in, transform 90ms ease-in;
}

.ml-greeting-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.42rem;
}

.ml-greeting-button {
	min-height: 36px;
	padding: 0.45rem 0.55rem;
	color: var(--ml-home-text);
	border: 1px solid var(--ml-home-border);
	border-radius: 9px;
	background: var(--ml-home-surface-2);
	font-size: 0.7rem;
	cursor: pointer;
}

.ml-greeting-button:hover {
	color: var(--ml-home-accent-hover);
	border-color: var(--ml-home-accent-border-strong);
}

#smilies-card {
	max-height: 300px;
	overflow-y: auto;
}

.ml-quiz-panel {
	position: fixed;
	z-index: 120;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	max-height: min(72vh, 560px);
	margin: 0;
	padding: 0.82rem clamp(0.75rem, 2vw, 1.35rem) calc(0.82rem + env(safe-area-inset-bottom));
	overflow-y: auto;
	border: 1px solid var(--ml-home-border);
	border-bottom: 0;
	border-radius: 16px 16px 0 0;
	background: var(--ml-home-surface-2);
	box-shadow: 0 -18px 46px rgba(0, 0, 0, 0.38);
}

.ml-quiz-panel__head {
	margin-bottom: 0.75rem;
}

.ml-quiz-panel__head-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.42rem;
}

.ml-quiz-panel__bot-icon {
	color: var(--ml-home-accent-hover);
	font-size: 22px;
}

.ml-quiz-close {
	flex: 0 0 auto;
	color: var(--ml-home-muted);
	background: transparent;
}

.ml-quiz-close:hover {
	color: var(--ml-home-text) !important;
	border-color: var(--ml-home-border);
	background: rgba(255, 255, 255, 0.04);
}

.ml-quiz-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.6rem;
}

.ml-quiz-grid--prize {
	grid-template-columns: 0.72fr 1.35fr 1fr;
	margin-top: 0.6rem;
}

.ml-quiz-panel label {
	color: var(--ml-home-muted);
	font-size: 0.66rem;
	font-weight: 720;
}

.ml-quiz-panel .ml-text-button {
	width: 100%;
	margin-top: 0.45rem;
}

/* A kvíz küldő/jóváíró gombjai szándékosan visszafogottak. */
.ml-quiz-submit-button {
	color: var(--ml-home-text) !important;
	border-color: var(--ml-home-border);
	background: var(--ml-home-surface-3);
	box-shadow: none;
}

.ml-quiz-submit-button:hover,
.ml-quiz-submit-button:focus-visible {
	color: var(--ml-home-accent-hover) !important;
	border-color: var(--ml-home-accent-border-strong);
	background: var(--ml-home-accent-soft);
	box-shadow: none;
}

.ml-quiz-actions {
	flex-wrap: wrap;
	margin-top: 0.65rem;
}

.ml-quiz-desktop-prizes {
	display: none;
}

.ml-empty-state {
	display: grid;
	min-height: 220px;
	place-items: center;
	align-content: center;
	gap: 0.42rem;
	padding: 1.25rem;
	color: var(--ml-home-muted);
	text-align: center;
	border: 1px dashed var(--ml-home-border);
	border-radius: 12px;
}

.ml-empty-state .material-symbols-rounded {
	color: var(--ml-home-accent);
	font-size: 31px;
}

.ml-empty-state h4,
.ml-empty-state p {
	margin: 0;
}

.ml-empty-state h4 {
	color: var(--ml-home-text);
	font-size: 0.88rem;
}

.ml-empty-state p {
	max-width: 520px;
	font-size: 0.68rem;
	line-height: 1.5;
}

.ml-empty-state a {
	color: var(--ml-home-accent-hover);
}


.ml-app-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
	min-width: 0;
}

.ml-side-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 0 0.4rem;
	border-bottom: 1px solid var(--ml-home-border-soft);
	background: var(--ml-home-toolbar);
}

.ml-side-tab {
	position: relative;
	appearance: none;
	display: grid;
	min-width: 0;
	min-height: 58px;
	place-items: center;
	align-content: center;
	gap: 0.2rem;
	padding: 0.42rem 0.2rem;
	color: var(--ml-home-muted);
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	font-size: 0.62rem;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.ml-side-tab + .ml-side-tab::before {
	content: "";
	position: absolute;
	top: 11px;
	bottom: 11px;
	left: 0;
	width: 1px;
	background: var(--ml-home-border-soft);
}

.ml-side-tab .material-symbols-rounded {
	font-size: 19px;
}

.ml-side-tab:hover {
	color: var(--ml-home-text);
	background: rgba(255, 255, 255, 0.03);
}

.ml-side-tab.is-active {
	color: var(--ml-home-text);
	border-bottom-color: var(--ml-home-accent);
	background: linear-gradient(180deg, var(--ml-home-accent-subtle), var(--ml-home-accent-soft));
}

.ml-side-panel {
	min-height: 520px;
	max-height: 600px;
	padding: 0.48rem;
	overflow-y: auto;
}

.ml-online-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem;
	margin-bottom: 0.48rem;
	padding: 0.58rem;
	border: 1px solid var(--ml-home-border-soft);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.022);
}

.ml-online-summary strong {
	color: var(--ml-home-text);
	font-size: 1.05rem;
}

.ml-online-summary span {
	color: var(--ml-home-muted);
	font-size: 0.66rem;
}

.ml-class-list {
	display: grid;
	gap: 0.28rem;
	margin: 0 0 0.48rem;
	padding: 0;
	list-style: none;
}

.ml-class-list li {
	display: flex;
	justify-content: space-between;
	gap: 0.6rem;
	padding: 0.38rem 0.48rem;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.02);
	font-size: 0.68rem;
}

.online-users,
.online-users-24 {
	line-height: 1.72;
}

.online-user-item {
	display: inline-block;
	margin: 0.16rem 0.12rem;
	padding: 0.3rem 0.4rem;
	white-space: nowrap;
	border: 1px solid var(--ml-home-border-soft);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.022);
}

.online-user-icon,
.user-icon {
	object-fit: contain;
	vertical-align: middle;
}

.online-user-icon {
	width: 12px;
	height: 12px;
}

.user-icon {
	width: 15px;
	height: 15px;
}

.ml-birthday-list {
	display: grid;
	gap: 0.34rem;
}

.ml-birthday-item {
	padding: 0.55rem 0.58rem;
	border: 1px solid var(--ml-home-border-soft);
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.022);
	font-size: 0.7rem;
}

.ml-birthday-note {
	margin-top: 0.55rem;
	color: var(--ml-home-muted);
	font-size: 0.65rem;
	text-align: center;
}


.ml-picker-panel {
	width: 100%;
}

.ml-picker-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.55rem;
}

.ml-picker-title {
	color: var(--ml-home-text);
	font-size: 0.78rem;
	font-weight: 820;
}

.ml-picker-close {
	appearance: none;
	display: inline-grid;
	width: 32px;
	height: 32px;
	place-items: center;
	flex: 0 0 32px;
	padding: 0;
	color: var(--ml-home-muted);
	border: 1px solid var(--ml-home-border);
	border-radius: 8px;
	background: var(--ml-home-surface-2);
	cursor: pointer;
	transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.ml-picker-close:hover {
	color: var(--ml-home-danger);
	border-color: rgba(255, 98, 88, 0.45);
	background: rgba(255, 98, 88, 0.08);
}

.ml-picker-close .material-symbols-rounded {
	font-size: 18px;
}

.ml-picker-table-wrap {
	width: 100%;
	overflow-x: auto;
}

.ml-picker-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0.34rem;
	table-layout: fixed;
}

.ml-picker-cell {
	width: 25%;
	padding: 0;
	text-align: center;
	vertical-align: middle;
	border: 0;
}

.ml-picker-smiley,
.ml-picker-greeting {
	width: 100%;
	min-height: 50px;
	padding: 0.5rem;
	color: var(--ml-home-text);
	border: 1px solid var(--ml-home-border-soft);
	border-radius: 9px;
	background: var(--ml-home-surface-2);
	cursor: pointer;
	transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.ml-picker-smiley:hover,
.ml-picker-greeting:hover {
	color: var(--ml-home-accent-hover);
	border-color: var(--ml-home-accent-border-strong);
	background: var(--ml-home-accent-soft);
}

.ml-picker-smiley {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ml-picker-smiley img {
	display: block;
	margin: auto;
}

.ml-picker-greeting {
	font-family: inherit;
	font-size: 0.68rem;
	font-weight: 750;
}

.ml-picker-empty {
	padding: 0.8rem;
	color: var(--ml-home-muted);
	text-align: center;
	font-size: 0.7rem;
}



/* Adatbázisból betöltött GIF-választó. */
.ml-gif-search {
	margin-bottom: 0.55rem;
}

.ml-gif-search-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 38px;
	align-items: center;
	gap: 0.42rem;
	margin-bottom: 0.55rem;
}

.ml-gif-search-row .ml-gif-search,
.ml-gif-search-row [data-gif-search] {
	margin-bottom: 0;
}

.ml-gif-refresh {
	appearance: none;
	display: inline-grid;
	width: 38px;
	height: 38px;
	place-items: center;
	padding: 0;
	color: var(--ml-home-muted);
	border: 1px solid var(--ml-home-border);
	border-radius: 9px;
	background: var(--ml-home-surface-3);
	cursor: pointer;
}

.ml-gif-refresh:hover,
.ml-gif-refresh:focus-visible {
	color: var(--ml-home-accent-hover);
	border-color: var(--ml-home-accent-border-strong);
	outline: none;
}

.ml-gif-refresh.is-loading .material-symbols-rounded {
	animation: ml-gif-refresh-spin 700ms linear infinite;
}

@keyframes ml-gif-refresh-spin {
	to { transform: rotate(360deg); }
}

.ml-gif-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.4rem;
}

.ml-picker-gif {
	appearance: none;
	display: block;
	width: 100%;
	aspect-ratio: 1;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--ml-home-border-soft);
	border-radius: 9px;
	background: var(--ml-home-surface-2);
	cursor: pointer;
	transition: border-color 150ms ease, transform 150ms ease;
}

.ml-picker-gif:hover,
.ml-picker-gif:focus-visible {
	border-color: var(--ml-home-accent-border-strong);
	outline: none;
	transform: translateY(-1px);
}

.ml-picker-gif img {
	display: block;
	max-width: 160px;
  	max-height: 90px;
}

.ml-gif-loading {
	grid-column: 1 / -1;
	padding: 0.8rem;
	color: var(--ml-home-muted);
	text-align: center;
	font-size: 0.7rem;
}

@media (max-width: 575.98px) {
	.ml-gif-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1100px) {
	.ml-app-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ml-side-panel {
		min-height: 300px;
		max-height: 460px;
	}
}

@media (max-width: 900px) {
	.ml-workspace-nav {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.ml-workspace-tabs {
		grid-column: 1 / -1;
		grid-row: 2;
		width: 100%;
	}

	.ml-workspace-tab {
		flex: 1 1 50%;
	}

	.ml-workspace-menu-wrap {
		grid-column: 2;
		grid-row: 1;
	}

}

@media (max-width: 767.98px) {
	.ml-home-app {
		margin-top: 0.5rem;
	}

	.ml-app-grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 0.75rem;
		align-items: start;
	}

	.ml-app-grid > .ml-app-sidebar,
	.ml-app-grid > .ml-app-sidebar[hidden] {
		display: grid !important;
		visibility: visible !important;
		opacity: 1 !important;
		width: 100%;
		min-width: 0;
		gap: 0.75rem;
		margin: 0;
	}

	/*
	 * Az Aktívak / 24 óra / Szülinap kártya közvetlenül az üzenőfal után
	 * jelenjen meg. A műsornaptár ezután következik.
	 */
	.ml-app-grid > .ml-app-sidebar > .ml-app-card:not(.ml-radio-calendar-card) {
		order: -1;
	}

	.ml-workspace-tabs {
		display: none;
	}

	/* A régi mobil nézetválasztó semmilyen formában ne jelenjen meg. */
	.ml-mobile-nav,
	.ml-workspace-menu--mobile,
	[data-workspace-mobile-menu] {
		display: none !important;
	}

	/*
	 * A normál hárompontos menü mobilon is használható.
	 * Ebben marad az ürítés és a kvízpanel.
	 */
	.ml-workspace-menu[data-workspace-menu][hidden] {
		display: none !important;
	}

	.ml-workspace-menu[data-workspace-menu]:not([hidden]) {
		display: block !important;
	}

	.ml-workspace-nav {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-rows: auto;
		align-items: center;
		gap: 0.5rem;
		min-height: 52px;
		padding: 0.5rem 0.58rem;
	}

	.ml-home-heading {
		grid-column: 1;
		grid-row: 1;
		min-width: 0;
	}

	.ml-home-heading h1 {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.ml-home-heading p {
		display: none;
	}

	.ml-home-heading__icon {
		width: 32px;
		height: 32px;
		flex-basis: 32px;
	}

	.ml-workspace-menu-wrap {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
		align-self: center;
	}

	.ml-workspace-menu-button {
		width: 36px;
		height: 36px;
	}

	/*
	 * Az oldalsáv saját három füle mobilon is látható.
	 * Ezek NEM főoldali nézetek: csak az alatta lévő információs panelt váltják.
	 */
	.ml-app-grid > .ml-app-sidebar .ml-side-tabs {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ml-app-grid > .ml-app-sidebar .ml-side-panel {
		height: auto;
		min-height: 320px;
		max-height: 470px;
		padding: 0.38rem;
		overflow-y: auto;
	}

	.ml-app-card {
		border-radius: 13px;
	}

	.ml-workspace-body,
	.ml-side-panel {
		padding: 0.38rem;
	}

	.ml-chat-wall {
		height: 530px;
		min-height: 390px;
	}

	#chat_uzenetek {
		font-size: 13px;
	}

	.ml-home-app .chat_uzenet {
		margin-bottom: 0.2rem;
		padding: 0.4rem 0.46rem;
		font-size: 13px;
		line-height: 1.3;
	}

	.ml-greeting-grid,
	.ml-quiz-grid,
	.ml-quiz-grid--prize {
		grid-template-columns: minmax(0, 1fr);
	}

	.ml-chat-form {
		padding: 0.28rem 0.32rem 0.32rem;
	}

	.ml-chat-composer {
		width: 100%;
		padding: 0;
	}

	/* iOS Safari: 16px alatt fókuszkor automatikusan ránagyít az űrlapmezőkre. */
	.ml-home-app .form-control,
	.ml-home-app .form-select,
	.ml-home-app .ml-chat-composer__source {
		font-size: 16px;
	}

	.ml-chat-composer,
	.ml-chat-composer__main,
	.ml-chat-image-button,
	.ml-chat-action-button,
	.ml-chat-composer .ml-send-button {
		transition: none !important;
	}

	.ml-header-actions,
	.ml-quiz-actions {
		flex-wrap: wrap;
	}
}

@media (max-width: 575.98px) {
	.ml-workspace-nav {
		gap: 0.45rem;
	}

	.ml-workspace > .ml-app-sidebar .ml-side-panel {
		max-height: 470px;
	}
	

	.ml-workspace > .ml-app-sidebar .ml-side-panel {
		height: 470px;
		min-height: 350px;
	}

	.ml-side-tab {
		min-height: 54px;
		font-size: 0.58rem;
	}

	.ml-side-tab .material-symbols-rounded {
		font-size: 18px;
	}

	.ml-chat-wall {
		height: 470px;
		min-height: 350px;
		border-radius: 11px;
	}

	.ml-chat-form {
		padding: 0.24rem 0.26rem 0.28rem;
	}

	.ml-chat-composer__main {
		grid-template-columns: 34px minmax(0, 1fr) auto;
		gap: 0.1rem;
		min-height: 44px;
		padding: 0.2rem 0.24rem;
	}

	.ml-chat-composer__leading,
	.ml-chat-composer__actions {
		padding: 0;
	}

	.ml-chat-composer__actions {
		gap: 0.08rem;
	}

	.ml-chat-image-button,
	.ml-chat-action-button,
	.ml-chat-composer .ml-send-button {
		width: 32px;
		height: 32px;
		min-height: 32px;
		flex-basis: 32px;
	}

	.ml-chat-composer__source {
		height: 34px;
		min-height: 34px;
		max-height: 84px;
		padding: 0.34rem 0.28rem 0.26rem;
		overscroll-behavior: contain;
	}

	.ml-chat-smiley-bubble {
		right: -2.25rem;
		width: min(174px, calc(100vw - 1.1rem));
		transition: none !important;
	}

	#smilies-card .ml-picker-smiley,
	#smilies-card .ml-picker-greeting,
	#smilies-card img {
		transition: none !important;
		animation: none !important;
	}

	.ml-inline-form {
		grid-template-columns: minmax(0, 1fr);
	}

	.ml-inline-form .ml-icon-button {
		width: 100%;
	}


}


@media (prefers-reduced-motion: reduce) {
	.ml-home-app *,
	.ml-home-app *::before,
	.ml-home-app *::after {
		animation-duration: 1ms !important;
		transition-duration: 1ms !important;
	}
}

/* Közvetlen képfeltöltés: fájlválasztó, előnézet és feltöltési állapot. */
.ml-chat-image-input {
	display: none !important;
}

.ml-chat-image-preview[hidden] {
	display: none !important;
}

.ml-chat-image-preview {
	position: absolute;
	z-index: 16;
	top: 0;
	right: 0;
	bottom: var(--ml-chat-composer-height, 56px);
	left: 0;
	display: grid;
	place-items: center;
	padding: 0.7rem;
	background: rgba(7, 10, 16, 0.72);
}

.ml-chat-image-preview__card {
	position: relative;
	display: grid;
	width: min(430px, 100%);
	max-height: 100%;
	gap: 0.62rem;
	padding: 0.72rem;
	overflow-y: auto;
	border: 1px solid var(--ml-home-border);
	border-radius: 14px;
	background: var(--ml-home-surface-2);
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
}

.ml-chat-image-preview__close {
	appearance: none;
	position: absolute;
	z-index: 2;
	top: 0.45rem;
	right: 0.45rem;
	display: inline-grid;
	width: 32px;
	height: 32px;
	place-items: center;
	padding: 0;
	color: var(--ml-home-muted);
	border: 1px solid var(--ml-home-border);
	border-radius: 8px;
	background: var(--ml-home-surface-3);
	cursor: pointer;
}

.ml-chat-image-preview__close:hover {
	color: var(--ml-home-danger);
	border-color: rgba(255, 98, 88, 0.45);
	background: rgba(255, 98, 88, 0.08);
}

.ml-chat-image-preview__media {
	display: grid;
	min-height: 150px;
	max-height: 290px;
	place-items: center;
	padding: 0.4rem;
	overflow: hidden;
	border: 1px solid var(--ml-home-border-soft);
	border-radius: 11px;
	background: rgba(0, 0, 0, 0.2);
}

.ml-chat-image-preview__media img {
	display: block;
	max-width: 100%;
	max-height: 270px;
	object-fit: contain;
	border-radius: 8px;
}

.ml-chat-image-preview__details {
	display: grid;
	gap: 0.2rem;
	min-width: 0;
}

.ml-chat-image-preview__details strong,
.ml-chat-image-preview__details span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ml-chat-image-preview__details strong {
	color: var(--ml-home-text);
	font-size: 0.76rem;
}

.ml-chat-image-preview__details span {
	color: var(--ml-home-muted);
	font-size: 0.66rem;
}

.ml-chat-image-preview__question {
	margin: 0;
	color: var(--ml-home-text);
	font-size: 0.73rem;
	font-weight: 760;
	text-align: center;
}

.ml-chat-image-preview__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.42rem;
}

.ml-chat-image-preview__button {
	appearance: none;
	display: inline-flex;
	min-height: 38px;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.52rem 0.66rem;
	color: var(--ml-home-text);
	border: 1px solid var(--ml-home-border);
	border-radius: 9px;
	background: var(--ml-home-surface-3);
	font: inherit;
	font-size: 0.7rem;
	font-weight: 800;
	cursor: pointer;
}

.ml-chat-image-preview__button:hover {
	color: var(--ml-home-accent-hover);
	border-color: var(--ml-home-accent-border-strong);
}

.ml-chat-image-preview__button--primary {
	color: #fff;
	border-color: var(--ml-home-accent);
	background: var(--ml-home-accent);
}

.ml-chat-image-preview__button--primary:hover {
	color: #fff;
	border-color: var(--ml-home-accent-hover);
	background: var(--ml-home-accent-hover);
}

.ml-chat-image-preview__close:focus-visible,
.ml-chat-image-preview__button:focus-visible {
	outline: 2px solid var(--ml-home-accent-focus);
	outline-offset: 2px;
}

.ml-chat-upload-message {
	display: grid !important;
	grid-template-columns: 56px minmax(0, 1fr) auto !important;
	grid-template-rows: auto auto !important;
	column-gap: 0.6rem !important;
	row-gap: 0.3rem !important;
	align-items: center !important;
	border: 1px solid var(--ml-home-accent-border) !important;
	background: var(--ml-home-accent-soft) !important;
}

.ml-chat-upload-message__thumb {
	grid-column: 1;
	grid-row: 1 / span 2;
	display: block;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border: 1px solid var(--ml-home-border);
	border-radius: 10px;
	background: var(--ml-home-surface-3);
}

.ml-chat-upload-message__body {
	grid-column: 2;
	grid-row: 1;
	display: grid;
	gap: 0.18rem;
	min-width: 0;
}

.ml-chat-upload-message__title,
.ml-chat-upload-message__text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ml-chat-upload-message__title {
	color: var(--ml-home-text);
	font-size: 0.73rem;
	font-weight: 850;
}

.ml-chat-upload-message__text {
	color: var(--ml-home-muted);
	font-size: 0.66rem;
}

.ml-chat-upload-message__spinner {
	grid-column: 3;
	grid-row: 1 / span 2;
	display: inline-grid;
	width: 34px;
	height: 34px;
	place-items: center;
	color: var(--ml-home-accent-hover);
}

.ml-chat-upload-message__spinner .material-symbols-rounded {
	font-size: 23px;
	animation: ml-chat-image-spin 0.8s linear infinite;
}

.ml-chat-upload-message__progress {
	grid-column: 2;
	grid-row: 2;
	width: 100%;
	height: 6px;
	overflow: hidden;
	border: 0;
	border-radius: 999px;
	background: var(--ml-home-surface-3);
}

.ml-chat-upload-message__progress::-webkit-progress-bar {
	background: var(--ml-home-surface-3);
}

.ml-chat-upload-message__progress::-webkit-progress-value {
	border-radius: 999px;
	background: var(--ml-home-accent);
}

.ml-chat-upload-message__progress::-moz-progress-bar {
	border-radius: 999px;
	background: var(--ml-home-accent);
}

.ml-chat-upload-message.is-error {
	border-color: rgba(255, 98, 88, 0.45) !important;
	background: rgba(255, 98, 88, 0.07) !important;
}

.ml-chat-upload-message.is-error .ml-chat-upload-message__spinner {
	color: var(--ml-home-danger);
}

.ml-chat-upload-message.is-error .ml-chat-upload-message__spinner .material-symbols-rounded {
	animation: none;
}

.ml-chat-upload-message__dismiss {
	appearance: none;
	display: none;
	width: 34px;
	height: 34px;
	place-items: center;
	padding: 0;
	color: var(--ml-home-danger);
	border: 1px solid rgba(255, 98, 88, 0.4);
	border-radius: 8px;
	background: rgba(255, 98, 88, 0.08);
	cursor: pointer;
}

.ml-chat-upload-message.is-error .ml-chat-upload-message__spinner {
	display: none;
}

.ml-chat-upload-message.is-error .ml-chat-upload-message__dismiss {
	display: inline-grid;
	grid-column: 3;
	grid-row: 1 / span 2;
}

@keyframes ml-chat-image-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 575.98px) {
	.ml-chat-image-preview {
		padding: 0.45rem;
	}

	.ml-chat-image-preview__card {
		padding: 0.58rem;
	}

	.ml-chat-image-preview__media {
		min-height: 120px;
		max-height: 230px;
	}

	.ml-chat-image-preview__media img {
		max-height: 210px;
	}

	.ml-chat-upload-message {
		grid-template-columns: 48px minmax(0, 1fr) auto !important;
	}

	.ml-chat-upload-message__thumb {
		width: 48px;
		height: 48px;
	}
}



.ml-home-app {
	--ml-home-stage-height: 590px;
}

/* Asztali nézetben a 590 px-es fal +20%-kal magasabb: 708 px. */
@media (min-width: 1101px) {
	.ml-home-app {
		--ml-home-stage-height: 708px;
	}

	.ml-chat-wall {
		height: var(--ml-home-stage-height);
		min-height: 516px;
	}
}


/* Watermark alap minden főoldali tartalmi blokkhoz. */
.ml-watermark-panel {
	position: relative;
	isolation: isolate;
}

.ml-watermark-panel::before {
	content: attr(data-watermark-icon);
	position: absolute;
	z-index: -1;
	top: 50%;
	left: 50%;
	display: block;
	color: var(--ml-home-accent);
	font-family: "Material Symbols Rounded";
	font-size: clamp(92px, 10vw, 148px);
	font-style: normal;
	font-weight: normal;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	opacity: 0.055;
	pointer-events: none;
	user-select: none;
	transform: translate(-50%, -50%);
	-webkit-font-feature-settings: "liga";
	font-feature-settings: "liga";
	-webkit-font-smoothing: antialiased;
	font-variation-settings:
		"FILL" 1,
		"wght" 500,
		"GRAD" 0,
		"opsz" 48;
}

/* A tényleges tartalom mindig a watermark fölött marad. */
.ml-side-panel > .online-users,
.ml-side-panel > .online-users-24,
.ml-side-panel > .visitors-24-users,
.ml-side-panel > .ml-birthday-list,
.ml-side-panel > .ml-birthday-note,
.ml-side-panel > .ml-empty-state,
.ml-side-panel > .ml-app-loading {
	position: relative;
	z-index: 1;
}

/*
 * Kétoszlopos asztali nézet:
 * 590px üzenőfal + a bal oldali .ml-workspace-body függőleges
 * paddingje (2 × 0.48rem). Így a két külső kártya alja egy vonalba kerül.
 */
@media (min-width: 1101px) {
	.ml-app-sidebar .ml-side-panel {
		height: calc(var(--ml-home-stage-height) + 0.96rem - 1px);
		min-height: calc(var(--ml-home-stage-height) + 0.96rem - 1px);
		max-height: calc(var(--ml-home-stage-height) + 0.96rem - 1px);
	}
}

/* =========================================================
   FELHASZNÁLÓ ÁLTAL KAPCSOLHATÓ SZÉLES ÜZENŐFAL
   - alapállapot: a jelenlegi kétoszlopos elrendezés
   - .ml-home-app--wide-wall: Üzenőfal teljes szélességben,
     alatta Műsornaptár + információs panel
   - nincs localStorage / cookie / szerveroldali mentés
   ========================================================= */
@media (min-width: 1101px) {
	.ml-home-app.ml-home-app--wide-wall .ml-app-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ml-home-app.ml-home-app--wide-wall .ml-app-sidebar {
		display: grid;
		grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
		gap: 0.75rem;
		align-items: stretch;
		width: 100%;
		min-width: 0;
	}

	.ml-home-app.ml-home-app--wide-wall .ml-app-sidebar > .ml-radio-calendar-card {
		width: 100%;
		max-width: 440px;
		justify-self: start;
	}

	.ml-home-app.ml-home-app--wide-wall .ml-app-sidebar > .ml-app-card:not(.ml-radio-calendar-card) {
		display: flex;
		min-width: 0;
		min-height: 0;
		flex-direction: column;
	}

	.ml-home-app.ml-home-app--wide-wall .ml-app-sidebar > .ml-app-card:not(.ml-radio-calendar-card) > .ml-side-panel {
		flex: 1 1 auto;
		height: 382px;
		min-height: 382px;
		max-height: 382px;
		overflow-y: auto;
	}
}

@media (max-width: 767.98px) {
	.ml-home-app {
		--ml-home-stage-height: 530px;
	}


	.ml-watermark-panel::before {
		font-size: clamp(82px, 26vw, 126px);
		opacity: 0.05;
	}
}

@media (max-width: 575.98px) {
	.ml-home-app {
		--ml-home-stage-height: 470px;
	}
}



/* =========================================================
   ÜZENŐFAL KÜLDŐIKONOK – NAGY, HÁTTÉR NÉLKÜLI HOVER-EFFEKT
   Csak asztali nézetben, kizárólag:
   - közvetlen képfeltöltés (+)
   - szmájli
   - küldés
   ========================================================= */
@media (min-width: 768px) {
	.ml-chat-composer__main {
		grid-template-columns: 44px minmax(0, 1fr) auto;
	}

	.ml-chat-composer__actions {
		gap: 0.28rem;
	}

	.ml-chat-image-button,
	.ml-chat-action-button,
	.ml-chat-composer .ml-send-button {
		width: 42px;
		height: 42px;
		min-height: 42px;
		flex-basis: 42px;
		color: var(--ml-home-muted) !important;
		border: 0 !important;
		border-radius: 0;
		background: transparent !important;
		box-shadow: none !important;
		transform: translateY(0) scale(1);
		transform-origin: center;
		transition:
			color 180ms ease,
			transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1) !important;
	}

	.ml-chat-image-button .material-symbols-rounded,
	.ml-chat-action-button .material-symbols-rounded,
	.ml-chat-composer .ml-send-button .material-symbols-rounded {
		font-size: 27px;
		transform-origin: center;
		transition:
			transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
			font-variation-settings 220ms ease;
	}

	.ml-chat-image-button:hover,
	.ml-chat-action-button:hover,
	.ml-chat-composer .ml-send-button:hover,
	.ml-chat-image-button:focus-visible,
	.ml-chat-action-button:focus-visible,
	.ml-chat-composer .ml-send-button:focus-visible {
		color: var(--ml-home-accent-hover) !important;
		border: 0 !important;
		background: #ffffff10 !important;
		box-shadow: none !important;
		/* transform: translateY(-3px) scale(1.13); */
		transform: scale(1.13);
		border-radius:10px;
	}

	.ml-chat-image-button:hover .material-symbols-rounded,
	.ml-chat-action-button:hover .material-symbols-rounded,
	.ml-chat-composer .ml-send-button:hover .material-symbols-rounded,
	.ml-chat-image-button:focus-visible .material-symbols-rounded,
	.ml-chat-action-button:focus-visible .material-symbols-rounded,
	.ml-chat-composer .ml-send-button:focus-visible .material-symbols-rounded {
		font-variation-settings:
			"FILL" 1,
			"wght" 650,
			"GRAD" 80,
			"opsz" 28;
		animation: ml-chat-icon-pop 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
	}

	.ml-chat-image-button:active,
	.ml-chat-action-button:active,
	.ml-chat-composer .ml-send-button:active {
		background: transparent !important;
		transform: translateY(0) scale(0.92);
	}

	.ml-chat-image-button.is-active,
	.ml-chat-action-button.is-active,
	.ml-chat-action-button[aria-expanded="true"],
	.ml-chat-composer.is-ready .ml-send-button {
		color: var(--ml-home-accent-hover) !important;
		border: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
	}

	.ml-chat-composer.is-ready .ml-send-button:hover,
	.ml-chat-composer.is-ready .ml-send-button:focus-visible {
		color: var(--ml-home-accent-hover) !important;
		border: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
	}
}

@keyframes ml-chat-icon-pop {
	0% {
		transform: rotate(0deg) scale(1);
	}
	38% {
		transform: rotate(-9deg) scale(1.18);
	}
	68% {
		transform: rotate(7deg) scale(1.08);
	}
	100% {
		transform: rotate(0deg) scale(1);
	}
}

/* =========================================================
   JOBB OLDALI MŰSORNAPTÁR – PRÓBA 5 / KÖNNYÍTETT MŰSORHENGER
   - a Próba 1 és 4 függőleges görgetését tartja meg
   - nincs képszűrő, háttérelmosás, perspektíva vagy fényudvar
   - nincs fölösleges kompozitálási kényszer
   - kizárólag opacity, translate, scale, háttér és szegély animálódik
   - kizárólag a program.username jelenik meg
   ========================================================= */
.ml-radio-calendar-card {
	position: relative;
	overflow: hidden;
	box-shadow: none;
}

.ml-radio-calendar__header {
	display: flex;
	min-height: 64px;
	align-items: center;
	justify-content: space-between;
	gap: 0.7rem;
	padding: 0.72rem 0.78rem;
	border-bottom: 1px solid var(--ml-home-border-soft);
	background: var(--bg-primary);
}

.ml-radio-calendar__heading {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 0.66rem;
}

.ml-radio-calendar__icon {
	display: grid;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	place-items: center;
	color: var(--ml-home-accent-hover);
	border: 1px solid var(--ml-home-accent-border);
	border-radius: 12px;
	background: var(--ml-home-accent-soft);
	transition: border-color 160ms ease, transform 180ms ease;
}

.ml-radio-calendar__icon .material-symbols-rounded {
	font-size: 23px;
}

.ml-radio-calendar__heading h2,
.ml-radio-calendar__heading p {
	margin: 0;
}

.ml-radio-calendar__heading h2 {
	color: var(--ml-home-text);
	font-size: 1rem;
	font-weight: 850;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.ml-radio-calendar__heading p {
	margin-top: 0.1rem;
	color: var(--ml-home-muted);
	font-size: 0.6rem;
	line-height: 1.35;
}

.ml-radio-calendar__link {
	display: inline-grid;
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	place-items: center;
	color: var(--ml-home-muted);
	border: 1px solid var(--ml-home-border-soft);
	border-radius: 50%;
	background: transparent;
	text-decoration: none !important;
	transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.ml-radio-calendar__link:hover,
.ml-radio-calendar__link:focus-visible {
	color: var(--ml-home-accent-hover);
	border-color: var(--ml-home-accent-border-strong);
	background: var(--ml-home-accent-soft);
	outline: 2px solid var(--ml-home-accent-ring);
	outline-offset: 2px;
	transform: translateY(-1px);
}

.ml-radio-calendar__tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.24rem;
	padding: 0.48rem;
	border-bottom: 1px solid var(--ml-home-border-soft);
	background: var(--ml-home-toolbar);
}

.ml-radio-calendar__tab {
	appearance: none;
	position: relative;
	display: grid;
	min-width: 0;
	min-height: 62px;
	place-items: center;
	align-content: center;
	gap: 0;
	padding: 0.46rem 0.2rem;
	overflow: hidden;
	isolation: isolate;
	color: var(--ml-home-muted);
	border: 1px solid transparent;
	border-radius: 10px;
	background: transparent;
	font: inherit;
	cursor: pointer;
	transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.ml-radio-calendar__tab::after {
	content: "";
	position: absolute;
	right: 32%;
	bottom: 0;
	left: 32%;
	height: 2px;
	opacity: 0;
	border-radius: 999px 999px 0 0;
	background: var(--ml-home-accent-hover);
	transform: scaleX(0.5);
	transition: opacity 150ms ease, transform 180ms ease;
}

.ml-radio-calendar__tab:hover {
	color: var(--ml-home-text);
	border-color: var(--ml-home-border-soft);
	background: rgba(255, 255, 255, 0.026);
}

.ml-radio-calendar__tab:active {
	transform: translateY(1px);
}

.ml-radio-calendar__tab:focus-visible {
	outline: 2px solid var(--ml-home-accent-focus);
	outline-offset: 1px;
}

.ml-radio-calendar__tab.is-active {
	color: var(--ml-home-text);
	border-color: var(--ml-home-accent-border);
	background: var(--ml-home-accent-soft);
}

.ml-radio-calendar__tab.is-active::after {
	opacity: 1;
	transform: scaleX(1);
}

.ml-radio-calendar__tab strong {
	position: relative;
	z-index: 2;
	letter-spacing: -0.01em;
}

/* A dátum egyszerű második sor: jól olvasható, de nem versenyez a nap nevével. */
.ml-radio-calendar__tab small {
	position: relative;
	z-index: 2;
	overflow: hidden;
	color: inherit;
	font-weight: 760;
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
	text-overflow: ellipsis;
	white-space: nowrap;
	opacity: 0.72;
}

.ml-radio-calendar__tab.is-active small {
	color: var(--ml-home-accent-hover);
	opacity: 0.88;
}

.ml-radio-calendar__navigator {
	position: relative;
	padding: 0.54rem 0.56rem 0.5rem;
}

.ml-radio-calendar__reel-shell {
	--ml-radio-reel-height: 252px;
	--ml-radio-item-height: 76px;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border: 1px solid var(--ml-home-border-soft);
	border-radius: 16px;
	background: var(--ml-home-surface);
	transition: border-color 160ms ease;
}

/* Egyszerű, állandó középső fókuszsáv, költséges képhatások nélkül. */
.ml-radio-calendar__reel-shell::before {
	content: "";
	position: absolute;
	z-index: 3;
	top: 50%;
	right: 0.92rem;
	left: 0.34rem;
	height: calc(var(--ml-radio-item-height) + 8px);
	pointer-events: none;
	border: 1px solid var(--ml-home-accent-border);
	border-left: 3px solid var(--ml-home-accent);
	border-radius: 15px;
	background: linear-gradient(90deg, var(--ml-home-accent-subtle), transparent 58%);
	transform: translateY(-50%);
	transition: border-color 160ms ease, background 160ms ease;
}

.ml-radio-calendar__reel-shell:focus-within {
	border-color: var(--ml-home-accent-border-strong);
	outline: 2px solid var(--ml-home-accent-ring);
	outline-offset: 1px;
}

.ml-radio-calendar__reel-shell:focus-within::before {
	border-color: var(--ml-home-accent-border-strong);
	border-left-color: var(--ml-home-accent-hover);
	background: linear-gradient(90deg, var(--ml-home-accent-soft), transparent 62%);
}

.ml-radio-calendar__viewport {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: var(--ml-radio-reel-height);
	min-width: 0;
	padding:
		calc((var(--ml-radio-reel-height) - var(--ml-radio-item-height)) / 2)
		1.34rem
		calc((var(--ml-radio-reel-height) - var(--ml-radio-item-height)) / 2)
		0.42rem;
	overflow-x: hidden;
	overflow-y: auto;
	outline: none;
	scroll-behavior: smooth;
	scroll-padding-block: calc((var(--ml-radio-reel-height) - var(--ml-radio-item-height)) / 2);
	scroll-snap-type: y proximity;
	scrollbar-width: none;
	overscroll-behavior-y: auto;
	touch-action: pan-y;
	cursor: grab;
	-webkit-overflow-scrolling: touch;
}

.ml-radio-calendar__viewport.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
	user-select: none;
}

.ml-radio-calendar__viewport::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.ml-radio-calendar__viewport.is-entering .ml-radio-program {
	animation: ml-radio-light-reel-enter 260ms ease-out both;
}

.ml-radio-calendar__viewport.is-entering .ml-radio-program:nth-child(2) {
	animation-delay: 18ms;
}

.ml-radio-calendar__viewport.is-entering .ml-radio-program:nth-child(3) {
	animation-delay: 36ms;
}

.ml-radio-calendar__viewport.is-entering .ml-radio-program:nth-child(n + 4) {
	animation-delay: 50ms;
}

.ml-radio-calendar__rail {
	position: absolute;
	z-index: 5;
	top: 50%;
	right: 0.42rem;
	width: 5px;
	height: 48%;
	overflow: hidden;
	border-radius: 999px;
	background: var(--ml-home-border-soft);
	opacity: 0.8;
	pointer-events: none;
	transform: translateY(-50%);
}

.ml-radio-calendar__rail-thumb {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	min-height: 18px;
	border-radius: 999px;
	background: var(--ml-home-accent-hover);
	transition: top 180ms ease, height 160ms ease, opacity 150ms ease;
}

.ml-radio-calendar__scroll-meta {
	display: flex;
	min-height: 28px;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.42rem 0.18rem 0;
	color: var(--ml-home-muted);
	font-size: 0.55rem;
}

.ml-radio-calendar__scroll-hint {
	display: inline-flex;
	min-width: 0;
	align-items: center;
	gap: 0.28rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: opacity 180ms ease, transform 180ms ease;
}

.ml-radio-calendar__scroll-hint .material-symbols-rounded {
	font-size: 15px;
}

.ml-radio-calendar-card.has-radio-interaction .ml-radio-calendar__scroll-hint {
	opacity: 0.42;
	transform: translateX(-2px);
}

.ml-radio-calendar__counter {
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.ml-radio-program {
	--ml-radio-opacity: 0.52;
	--ml-radio-scale: 0.97;
	--ml-radio-shift: 6px;
	position: relative;
	display: grid;
	grid-template-columns: minmax(64px, 0.34fr) 1px minmax(0, 1fr) auto;
	grid-template-areas: "time divider body stats";
	align-items: center;
	gap: 0.64rem;
	width: 100%;
	height: var(--ml-radio-item-height);
	min-width: 0;
	margin: 0.34rem 0;
	padding: 0.46rem 0.58rem;
	overflow: hidden;
	color: inherit;
	border: 1px solid transparent;
	border-radius: 13px;
	background: rgba(255, 255, 255, 0.012);
	cursor: pointer;
	opacity: var(--ml-radio-opacity);
	outline: none;
	scroll-snap-align: center;
	scroll-snap-stop: normal;
	transform: translateX(var(--ml-radio-shift)) scale(var(--ml-radio-scale));
	transform-origin: center;
	contain: layout paint;
	transition:
		opacity 110ms linear,
		transform 160ms ease-out,
		border-color 150ms ease,
		background 150ms ease;
}

.ml-radio-program::before {
	content: "";
	position: absolute;
	top: 18%;
	bottom: 18%;
	left: 0;
	width: 2px;
	opacity: 0;
	border-radius: 0 999px 999px 0;
	background: var(--ml-home-accent-hover);
	transform: scaleY(0.45);
	transition: opacity 150ms ease, transform 170ms ease;
}

.ml-radio-program.is-active {
	--ml-radio-opacity: 1 !important;
	--ml-radio-scale: 1 !important;
	--ml-radio-shift: 0px !important;
	z-index: 2;
	border-color: var(--ml-home-accent-border);
	background: color-mix(in srgb, var(--ml-home-surface-2) 88%, var(--ml-home-accent) 12%);
}

@supports not (background: color-mix(in srgb, #000 50%, #fff)) {
	.ml-radio-program.is-active {
		background: var(--ml-home-surface-2);
	}
}

.ml-radio-program.is-active::before {
	opacity: 1;
	transform: scaleY(1);
}

.ml-radio-program.is-live {
	background: rgba(79, 209, 157, 0.045);
}

.ml-radio-program.is-live::before {
	background: var(--ml-home-success);
}

.ml-radio-program:focus-visible {
	border-color: var(--ml-home-accent-focus);
	outline: 2px solid var(--ml-home-accent-ring);
	outline-offset: 1px;
}

.ml-radio-program__media {
	grid-area: time;
	position: relative;
	display: block;
	align-self: stretch;
	min-width: 0;
	min-height: 58px;
	overflow: hidden;
	border: 1px solid var(--ml-home-border);
	border-radius: 10px;
	background: var(--ml-home-surface-2);
	transition: border-color 150ms ease, transform 150ms ease;
}

.ml-radio-program__avatar-fallback {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--ml-home-muted);
	background: rgba(255, 255, 255, 0.025);
}

.ml-radio-program__avatar-fallback .material-symbols-rounded {
	font-size: 30px;
}

.ml-radio-program__avatar {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.ml-radio-program__time {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 0;
	left: 0;
	display: block;
	padding: 0.34rem 0.18rem 0.22rem;
	color: #fff;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
/*	font-size: 0.67rem; */
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	line-height: 1;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
	white-space: nowrap;
}

.ml-radio-program.is-active .ml-radio-program__media {
	border-color: var(--ml-home-accent-border-strong);
}

.ml-radio-program.is-live .ml-radio-program__media {
	border-color: rgba(79, 209, 157, 0.58);
}

.ml-radio-program.is-live .ml-radio-program__time {
	color: #d9fff0;
}

.ml-radio-program__divider {
	grid-area: divider;
	width: 1px;
	height: 56%;
	justify-self: center;
	border-radius: 999px;
	background: var(--ml-home-border);
	transition: background 150ms ease, height 150ms ease;
}

.ml-radio-program.is-active .ml-radio-program__divider {
	height: 68%;
	background: var(--ml-home-accent-border-strong);
}

.ml-radio-program__body {
	grid-area: body;
	display: grid;
	min-width: 0;
	align-content: center;
	gap: 0.24rem;
}

.ml-radio-program__title-line {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 0.36rem;
}

.ml-radio-program__title {
	min-width: 0;
	margin: 0;
	overflow: hidden;
	color: var(--ml-home-text);
	font-size: 0.8rem;
	font-weight: 850;
	line-height: 1.22;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: font-size 150ms ease, letter-spacing 150ms ease;
}

.ml-radio-program.is-active .ml-radio-program__title {
	font-size: 0.91rem;
	letter-spacing: -0.01em;
}

.ml-radio-program__user {
	min-width: 0;
	overflow: hidden;
	color: var(--ml-home-muted) !important;
	font-size: 0.68rem;
	font-weight: 720;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: font-size 150ms ease, opacity 150ms ease;
}

.ml-radio-program.is-active .ml-radio-program__user {
	font-size: 0.73rem;
	opacity: 0.96;
}

/* A műsorvezető neve kizárólag username, rang- és accentszín nélkül. */
.ml-radio-program__user a,
.ml-radio-program__user-link {
	color: inherit !important;
	font: inherit;
	text-decoration: none !important;
}

.ml-radio-program__user a:hover,
.ml-radio-program__user-link:hover {
	color: var(--ml-home-text) !important;
	text-decoration: underline !important;
}

.ml-radio-program__fixed {
	display: inline-grid;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	place-items: center;
	padding: 0;
	color: var(--ml-home-muted);
	border: 1px solid var(--ml-home-border-soft);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.024);
}

.ml-radio-program__fixed .material-symbols-rounded {
	font-size: 13px;
}

.ml-radio-program__stats {
	grid-area: stats;
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: flex-end;
	gap: 0.24rem;
	min-width: 0;
}

.ml-radio-program__stat {
	display: inline-grid;
	width: 33px;
	height: 33px;
	flex: 0 0 33px;
	place-items: center;
	padding: 0;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 50%;
	font-size: 1.12rem;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	letter-spacing: -0.045em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
	white-space: nowrap;
	transition: transform 150ms ease, filter 150ms ease, opacity 150ms ease;
}

/* Több számjegynél finoman csökken a méret, hogy biztosan a körben maradjon. */
.ml-radio-program__stat.is-two-digit {
	font-size: 0.96rem;
	letter-spacing: -0.055em;
}

.ml-radio-program__stat.is-three-digit {
	font-size: 0.76rem;
	letter-spacing: -0.065em;
}

/* Sötét UI-hoz tompított, nem rikító stat-színek. */
.ml-radio-program__stat--min {
	background: #8f4542;
}

.ml-radio-program__stat--avg {
	background: #416486;
}

.ml-radio-program__stat--max {
	background: #3f705b;
}

.ml-radio-program.is-active .ml-radio-program__stat {
	transform: scale(1.04);
}

@media (hover: hover) and (pointer: fine) {
	.ml-radio-calendar-card:hover {
		border-color: var(--ml-home-accent-border);
	}

	.ml-radio-calendar-card:hover .ml-radio-calendar__icon {
		border-color: var(--ml-home-accent-border-strong);
		transform: translateY(-1px);
	}

	.ml-radio-calendar__tab:hover {
		transform: translateY(-1px);
	}

	.ml-radio-program:hover {
		border-color: var(--ml-home-accent-border);
	}

	.ml-radio-program:hover .ml-radio-program__media {
		transform: scale(1.015);
	}

	.ml-radio-program:hover .ml-radio-program__stat {
		filter: brightness(1.08);
		transform: scale(1.06);
	}

	.ml-radio-program:hover .ml-radio-program__user,
	.ml-radio-program:hover .ml-radio-program__user a {
		color: var(--ml-home-muted) !important;
	}
}

/* =========================================================
   MŰSORNAPTÁR – ÜRES NAP
   Nincs henger, nincs rail, nincs számláló/súgó, nincs belső tekergetés.
   Csak középen az ikon + „Nincs beosztott adás!”.
   ========================================================= */
.ml-radio-calendar-card.is-radio-empty .ml-radio-calendar__reel-shell::before,
.ml-radio-calendar-card.is-radio-empty .ml-radio-calendar__rail,
.ml-radio-calendar-card.is-radio-empty .ml-radio-calendar__scroll-meta {
	display: none !important;
}

.ml-radio-calendar-card.is-radio-empty .ml-radio-calendar__reel-shell:focus-within {
	border-color: var(--ml-home-border-soft);
	outline: none;
}

.ml-radio-calendar-card.is-radio-empty .ml-radio-calendar__viewport {
	padding: 0;
	overflow: hidden;
	scroll-behavior: auto;
	scroll-padding-block: 0;
	scroll-snap-type: none;
	overscroll-behavior-y: auto;
	touch-action: pan-y;
	cursor: default;
}

.ml-radio-calendar__empty {
	display: grid;
	width: 100%;
	height: 100%;
	min-height: var(--ml-radio-reel-height);
	place-content: center;
	justify-items: center;
	gap: 0.5rem;
	padding: 1rem;
	color: var(--ml-home-muted);
	text-align: center;
	pointer-events: none;
	user-select: none;
}

.ml-radio-calendar__empty .material-symbols-rounded {
	color: var(--ml-home-accent);
	font-size: 32px;
	line-height: 1;
}

.ml-radio-calendar__empty strong {
	color: var(--ml-home-text);
	font-size: 0.78rem;
	font-weight: 850;
	line-height: 1.3;
}

@keyframes ml-radio-light-reel-enter {
	from {
		opacity: 0;
		transform: translateX(8px) translateY(10px) scale(0.98);
	}
	to {
		opacity: var(--ml-radio-opacity);
		transform: translateX(var(--ml-radio-shift)) translateY(0) scale(var(--ml-radio-scale));
	}
}

@media (max-width: 767.98px) {
	.ml-radio-calendar-card {
		border-radius: 13px;
	}

	.ml-radio-calendar__reel-shell {
		--ml-radio-reel-height: 236px;
	}

	.ml-radio-calendar__viewport {
		cursor: default;
	}
}

@media (max-width: 430px) {
	.ml-radio-calendar__header {
		min-height: 58px;
		padding: 0.62rem 0.64rem;
	}

	.ml-radio-calendar__icon {
		width: 36px;
		height: 36px;
		flex-basis: 36px;
	}

	.ml-radio-calendar__heading h2 {
		font-size: 0.92rem;
	}

	.ml-radio-calendar__tabs {
		padding: 0.4rem;
	}

	.ml-radio-calendar__tab {
		min-height: 56px;
	}

	.ml-radio-calendar__tab strong {
		font-size: 0.76rem;
	}

	.ml-radio-calendar__tab small {
		font-size: 1.02rem;
	}

	.ml-radio-calendar__navigator {
		padding: 0.42rem 0.4rem 0.42rem;
	}

	.ml-radio-calendar__reel-shell {
		--ml-radio-reel-height: 224px;
		--ml-radio-item-height: 72px;
		border-radius: 13px;
	}

	.ml-radio-calendar__viewport {
		padding-right: 1.18rem;
		padding-left: 0.3rem;
	}

	.ml-radio-calendar__reel-shell::before {
		right: 0.78rem;
		left: 0.22rem;
	}

	.ml-radio-calendar__rail {
		right: 0.32rem;
	}

	.ml-radio-program {
		grid-template-columns: minmax(56px, 0.31fr) 1px minmax(0, 1fr) auto;
		gap: 0.42rem;
		padding: 0.4rem 0.42rem;
		border-radius: 11px;
	}

	.ml-radio-program__media {
		min-height: 54px;
		border-radius: 9px;
	}

	.ml-radio-program__time,
	.ml-radio-program.is-active .ml-radio-program__time {
		padding: 0.3rem 0.12rem 0.18rem;
		font-size: 0.60rem;
	}

	.ml-radio-program__title,
	.ml-radio-program.is-active .ml-radio-program__title {
		font-size: 0.76rem;
	}

	.ml-radio-program__user,
	.ml-radio-program.is-active .ml-radio-program__user {
		font-size: 0.64rem;
	}

	.ml-radio-program__fixed {
		width: 18px;
		height: 18px;
		flex-basis: 18px;
	}

	.ml-radio-program__stats {
		gap: 0.16rem;
	}

	.ml-radio-program__stat {
		width: 30px;
		height: 30px;
		flex-basis: 30px;
		font-size: 0.98rem;
	}

	.ml-radio-program__stat.is-two-digit {
		font-size: 0.86rem;
	}

	.ml-radio-program__stat.is-three-digit {
		font-size: 0.70rem;
	}

	.ml-radio-calendar__scroll-meta {
		font-size: 0.52rem;
	}
}


/* =========================================================
   ÜZENŐFAL – TELJES KÉPERNYŐS NÉZET
   A meglévő composert használja, nincs klónozás.
   ========================================================= */
html.ml-chat-fullscreen-lock,
body.ml-chat-fullscreen-lock {
	overflow: hidden !important;
	overscroll-behavior: none;
}

.ml-chat-wall.ml-chat-wall--fullscreen {
	position: fixed !important;
	z-index: 2147483000 !important;
	top: var(--ml-chat-fullscreen-top, 0px) !important;
	right: auto !important;
	bottom: auto !important;
	left: var(--ml-chat-fullscreen-left, 0px) !important;
	width: var(--ml-chat-fullscreen-width, 100vw) !important;
	height: 100vh !important;
	height: var(--ml-chat-fullscreen-height, 100dvh) !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	border: 0 !important;
	border-radius: 0 !important;
	/* background: var(--ansi-black); */
	background:var(--gradient-body);
	box-shadow: none !important;
	isolation: isolate;
}

/* extrával
.ml-chat-wall.ml-chat-wall--fullscreen {
    position: fixed !important;
    z-index: 2147483000 !important;
    top: var(--ml-chat-fullscreen-top, 0px) !important;
    right: auto !important;
    bottom: auto !important;
    left: var(--ml-chat-fullscreen-left, 0px) !important;
    width: var(--ml-chat-fullscreen-width, 100vw) !important;
    height: 100vh !important;
    height: var(--ml-chat-fullscreen-height, 100dvh) !important;

    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;

    background-color: #000000ab !important;
    background-image: url("/assets/wall.png") !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;

    box-shadow: none !important;
    isolation: isolate;
}

@media (max-width: 768px) {
    .ml-chat-wall.ml-chat-wall--fullscreen {
        background-image: url("/assets/wall2.png") !important;
    }
}
*/

.ml-chat-wall.ml-chat-wall--fullscreen #chat_uzenetek {
	top: 0 !important;
	right: 0 !important;
	bottom: var(--ml-chat-composer-height, 56px) !important;
	left: 0 !important;
	width: 100% !important;
	height: auto !important;
	padding-top: 3.4rem;
	padding-bottom: 0.35rem;
	overscroll-behavior: contain;
}

/*
 * Fullscreenben ugyanaz a form rögzül a látható viewport aljára.
 * Nincs kapszula: teljes szélesség, 0 border-radius, az ikonok bent maradnak.
 */
.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-form {
	position: fixed !important;
	z-index: 2147483647 !important;
	top: auto !important;
	right: auto !important;
	bottom: var(--ml-chat-fullscreen-bottom, 0px) !important;
	left: var(--ml-chat-fullscreen-left, 0px) !important;
	width: var(--ml-chat-fullscreen-width, 100vw) !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 0 env(safe-area-inset-bottom, 0px) !important;
	background: var(--ml-home-surface-2, #171e29) !important;
	box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.28);
	pointer-events: none;
}

.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-composer {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
}

.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-composer__main,
.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-composer__main:hover,
.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-composer__main:focus-within {
	width: 100% !important;
	max-width: none !important;
	min-height: 54px;
	margin: 0 !important;
	padding: 0.3rem 0.55rem !important;
	border: 0 !important;
	border-top: 1px solid var(--ml-home-border, rgba(255, 255, 255, 0.11)) !important;
	border-radius: 0 !important;
	background: var(--ml-home-surface-2, #171e29) !important;
	box-shadow: none !important;
	pointer-events: auto;
}

.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-composer__source {
	max-height: min(132px, 28vh);
	border-radius: 0 !important;
}

.ml-chat-wall.ml-chat-wall--fullscreen > #smilies-card {
	z-index: 2147483645 !important;
	right: 0.55rem !important;
	bottom: calc(var(--ml-chat-composer-height, 56px) + 0.55rem) !important;
	left: 0.55rem !important;
	max-height: min(360px, calc(100% - var(--ml-chat-composer-height, 56px) - 1.1rem));
}

.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-image-preview {
	z-index: 2147483644 !important;
	top: 0 !important;
	right: 0 !important;
	bottom: var(--ml-chat-composer-height, 56px) !important;
	left: 0 !important;
}

.ml-chat-fullscreen-exit[hidden] {
	display: none !important;
}

.ml-chat-fullscreen-exit {
	appearance: none;
	position: fixed;
	z-index: 2147483646;
	top: calc(var(--ml-chat-fullscreen-top, 0px) + max(0.55rem, env(safe-area-inset-top, 0px)));
	right: max(0.55rem, env(safe-area-inset-right, 0px));
	display: inline-grid;
	width: 42px;
	height: 42px;
	place-items: center;
	padding: 0;
	color: var(--ml-home-text, #f4f6fb);
	border: 1px solid var(--ml-home-border, rgba(255, 255, 255, 0.11));
	border-radius: 10px;
	background: color-mix(in srgb, var(--ml-home-surface-2, #171e29) 92%, transparent);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
	cursor: pointer;
	backdrop-filter: blur(8px);
}

.ml-chat-fullscreen-exit:hover,
.ml-chat-fullscreen-exit:focus-visible {
	color: var(--ml-home-accent-hover, #9aa8c4);
	border-color: var(--ml-home-accent-border-strong, rgba(124, 138, 165, 0.55));
	outline: none;
}

.ml-chat-fullscreen-exit .material-symbols-rounded {
	font-size: 24px;
}

@supports not (background: color-mix(in srgb, #000 50%, transparent)) {
	.ml-chat-fullscreen-exit {
		background: var(--ml-home-surface-2, #171e29);
	}
}

@media (max-width: 575.98px) {
	.ml-chat-wall.ml-chat-wall--fullscreen #chat_uzenetek {
		padding-top: 3.05rem;
	}

	.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-composer__main,
	.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-composer__main:hover,
	.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-composer__main:focus-within {
		grid-template-columns: 36px minmax(0, 1fr) auto;
		gap: 0.08rem;
		min-height: 50px;
		padding: 0.22rem 0.3rem !important;
	}

	.ml-chat-fullscreen-exit {
		width: 38px;
		height: 38px;
		top: calc(var(--ml-chat-fullscreen-top, 0px) + max(0.4rem, env(safe-area-inset-top, 0px)));
		right: max(0.4rem, env(safe-area-inset-right, 0px));
		border-radius: 8px;
	}
}



/* =========================================================
   ÜZENŐFAL GYORSGOMBOK
   Sorrend: Kvíz → Ürítés → fal-szélesség → fullscreen.
   A hárompontos menü helyett közvetlen ikonok.
   ========================================================= */
.ml-chat-quick-actions {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.28rem;
	min-width: 0;
}

.ml-chat-quick-action {
	flex: 0 0 auto;
}

.ml-chat-quick-action--danger:hover,
.ml-chat-quick-action--danger:focus-visible {
	color: var(--ml-home-danger) !important;
	border-color: rgba(255, 98, 88, 0.42) !important;
	background: rgba(255, 98, 88, 0.08) !important;
}

@media (max-width: 900px) {
	.ml-chat-quick-actions {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
		align-self: center;
	}
}

/* Mobilon/tableten nincs normál/széles fal váltó. */
@media (max-width: 1100px) {
	.ml-chat-quick-action--wide {
		display: none !important;
	}
}

@media (max-width: 575.98px) {
	.ml-chat-quick-actions {
		gap: 0.12rem;
	}

	.ml-chat-quick-action {
		width: 34px;
		height: 34px;
	}

	.ml-chat-quick-action .material-symbols-rounded {
		font-size: 20px;
	}
}


/* =========================================================
   DESKTOP CHAT PANEL – CSAK NORMÁL ASZTALI NÉZETBEN
   - >= 1101px
   - fullscreenben NEM aktív
   - a panel mindig az üzenőfal ALATT nyílik ki
   - teljes fal-szélességet használ
   - valódi helyet foglal: semmit nem fed le
   ========================================================= */
@media (min-width: 1101px) {
	.ml-home-app:not(.ml-home-app--chat-fullscreen) #homeChatPanel > .ml-chat-workspace-body {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto var(--ml-home-stage-height) auto;
		row-gap: 0;
		align-items: stretch;
		overflow: visible;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) #homeChatPanel > .ml-chat-workspace-body > #chat_szerkesztes {
		grid-column: 1;
		grid-row: 1;
		min-width: 0;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) #homeChatPanel > .ml-chat-workspace-body > .ml-chat-wall {
		grid-column: 1;
		grid-row: 2;
		width: 100%;
		height: var(--ml-home-stage-height);
		min-width: 0;
		min-height: 0;
		margin: 0;
		transition: border-radius 180ms ease, border-color 180ms ease;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen)
	#homeChatPanel > .ml-chat-workspace-body.ml-chat-dock-open > .ml-chat-wall {
		border-bottom-right-radius: 0;
		border-bottom-left-radius: 0;
		border-bottom-color: transparent;
	}

	/* Desktopon a kis lebegő smiley-menü helyett az alsó, tabos panel nyílik. */
	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-chat-smiley-bubble {
		display: none !important;
	}

	/* Közös desktop alsó dock: szmájlik, GIF-ek és kvíz. */
	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock {
		grid-column: 1;
		grid-row: 3;
		width: 100%;
		min-width: 0;
		min-height: 0;
		height: 0;
		max-width: none;
		max-height: 0;
		margin: 0;
		overflow: hidden;
		border: 0 solid var(--ml-home-border);
		border-top: 0;
		border-radius: 0 0 13px 13px;
		background: var(--ml-home-surface-2);
		box-shadow: none;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translate3d(0, -12px, 0);
		transform-origin: top center;
		transition:
			max-height 260ms cubic-bezier(.2, .75, .25, 1),
			height 260ms cubic-bezier(.2, .75, .25, 1),
			opacity 150ms ease,
			transform 220ms cubic-bezier(.2, .75, .25, 1),
			visibility 0s linear 260ms,
			border-width 0s linear 260ms;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen)
	#homeChatPanel > .ml-chat-workspace-body.ml-chat-dock-open
	> .ml-desktop-smiley-dock {
		height: min(520px, 56vh);
		max-height: min(520px, 56vh);
		border-width: 1px;
		border-top-width: 1px;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translate3d(0, 0, 0);
		transition-delay: 0s;
	}

	/* ---------- Szmájli / GIF desktop alsó panel ---------- */
	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock {
		display: grid;
		grid-template-rows: auto minmax(0, 1fr);
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock__head {
		position: relative;
		z-index: 3;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 0.5rem;
		min-width: 0;
		padding: 0.5rem 0.55rem;
		border-bottom: 1px solid var(--ml-home-border-soft);
		background: var(--ml-home-surface-2);
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock__tabs {
		display: flex;
		align-items: center;
		gap: 0.28rem;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: none;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock__tabs::-webkit-scrollbar {
		display: none;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock__tab {
		appearance: none;
		display: inline-flex;
		flex: 0 0 auto;
		align-items: center;
		justify-content: center;
		gap: 0.3rem;
		min-height: 34px;
		padding: 0.38rem 0.52rem;
		color: var(--ml-home-muted);
		border: 1px solid transparent;
		border-radius: 8px;
		background: transparent;
		font: inherit;
		font-size: 0.66rem;
		font-weight: 790;
		line-height: 1;
		white-space: nowrap;
		cursor: pointer;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock__tab:hover,
	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock__tab:focus-visible,
	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock__tab.is-active {
		color: var(--ml-home-accent-hover);
		border-color: var(--ml-home-accent-border);
		background: var(--ml-home-accent-soft);
		outline: none;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock__tab .material-symbols-rounded {
		font-size: 18px;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock__close {
		appearance: none;
		display: inline-grid;
		width: 34px;
		height: 34px;
		place-items: center;
		padding: 0;
		color: var(--ml-home-muted);
		border: 1px solid var(--ml-home-border);
		border-radius: 8px;
		background: var(--ml-home-surface-3);
		cursor: pointer;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock__close:hover,
	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock__close:focus-visible {
		color: var(--ml-home-text);
		border-color: var(--ml-home-accent-border-strong);
		background: var(--ml-home-accent-soft);
		outline: none;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock__body {
		min-width: 0;
		min-height: 0;
		overflow: hidden;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock #smilies-card {
		position: relative;
		z-index: 1;
		inset: auto;
		width: 100%;
		height: 100%;
		max-width: none;
		max-height: none;
		margin: 0;
		padding: 0.65rem;
		overflow-x: hidden;
		overflow-y: auto;
		border: 0;
		border-radius: 0;
		background: var(--ml-home-surface-2);
		box-shadow: none;
		contain: layout paint style;
		transform: none;
		transform-origin: center;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock #smilies-card.ml-smiley-preparing,
	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock #smilies-card.ml-smiley-visible,
	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock #smilies-card.ml-smiley-closing {
		transform: none;
	}

	/* A betöltött picker saját fejléce desktopon fölösleges;
	   a felső tabsor és X gomb marad mindig látható. */
	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock #smilies-card > .ml-picker-panel > .ml-picker-header {
		display: none;
	}

	/* Desktop GIF-ek: eredeti képarány, legfeljebb 160 px szélesség. */
	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock .ml-gif-grid {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 0.4rem;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock .ml-picker-gif {
		display: inline-block;
		flex: 0 0 auto;
		width: auto;
		height: auto;
		aspect-ratio: auto;
		overflow: hidden;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock .ml-picker-gif img {
		display: block;
		width: auto;
		height: auto;
		max-width: 160px;
		max-height: none;
		object-fit: initial;
	}

	/* ---------- Kvíz: TÉNYLEG ugyanabban a #smilies-card dobozban ---------- */
	/*
	 * Desktopon nincs külön kvíz-scrollbox és nincs második tartalompaneI.
	 * A JS a #kviz_panel elemet közvetlenül a #smilies-card belsejébe mozgatja,
	 * ezért a szmájlik, GIF-ek és a kvíz pontosan ugyanazt az egyetlen
	 * tartalomterületet és scrollbar-t használják.
	 */
	.ml-home-app:not(.ml-home-app--chat-fullscreen)
	.ml-desktop-smiley-dock #smilies-card > #kviz_panel {
		position: relative;
		z-index: 1;
		inset: auto;
		display: none;
		width: 100%;
		height: auto;
		min-height: 0;
		max-width: none;
		max-height: none;
		margin: 0;
		padding: 0.12rem;
		overflow: visible;
		overscroll-behavior: auto;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen)
	.ml-desktop-smiley-dock #smilies-card > #kviz_panel.is-open {
		display: block;
	}

	/* Kvíznél is a #smilies-card görget, pontosan úgy, mint a smiley/GIF nézetben. */
	.ml-home-app:not(.ml-home-app--chat-fullscreen)
	#homeChatPanel > .ml-chat-workspace-body[data-chat-dock="quiz"]
	> .ml-desktop-smiley-dock {
		height: min(520px, 56vh);
		max-height: min(520px, 56vh);
		overflow: hidden;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen)
	#homeChatPanel > .ml-chat-workspace-body[data-chat-dock="quiz"]
	> .ml-desktop-smiley-dock > .ml-desktop-smiley-dock__body {
		min-height: 0;
		overflow: hidden;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen)
	#homeChatPanel > .ml-chat-workspace-body[data-chat-dock="quiz"]
	> .ml-desktop-smiley-dock #smilies-card {
		height: 100%;
		max-height: none;
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: auto;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock #kviz_panel > .ml-quiz-panel__head {
		display: none;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock .ml-quiz-compose-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.7rem;
		margin: 0;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock .ml-quiz-compose-card {
		display: grid;
		grid-template-rows: auto auto auto;
		gap: 0.46rem;
		padding: 0.72rem;
		border: 1px solid var(--ml-home-border-soft);
		border-radius: 11px;
		background: color-mix(in srgb, var(--ml-home-surface-3) 58%, transparent);
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock .ml-quiz-compose-card label {
		margin: 0;
		color: var(--ml-home-text);
		font-size: 0.68rem;
		font-weight: 820;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock .ml-quiz-compose-card .ml-text-button {
		width: auto;
		min-width: 145px;
		justify-self: start;
		margin: 0;
	}

	/* Mobilon/fullscreenben a régi egyhelyezettes mező marad. */
	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock .ml-quiz-mobile-prize {
		display: none;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock .ml-quiz-desktop-prizes {
		display: block;
		margin-top: 0.78rem;
		padding: 0.72rem;
		border: 1px solid var(--ml-home-border-soft);
		border-radius: 11px;
		background: rgba(255, 255, 255, 0.018);
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-prizes-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
		margin-bottom: 0.58rem;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-prizes-head h4,
	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-prizes-head p {
		margin: 0;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-prizes-head h4 {
		color: var(--ml-home-text);
		font-size: 0.78rem;
		font-weight: 850;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-prizes-head p {
		margin-top: 0.12rem;
		color: var(--ml-home-muted);
		font-size: 0.62rem;
		line-height: 1.35;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-prize-reset {
		appearance: none;
		flex: 0 0 auto;
		min-height: 32px;
		padding: 0.38rem 0.55rem;
		color: var(--ml-home-muted);
		border: 1px solid var(--ml-home-border);
		border-radius: 8px;
		background: transparent;
		font: inherit;
		font-size: 0.63rem;
		font-weight: 760;
		cursor: pointer;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-prize-reset:hover,
	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-prize-reset:focus-visible {
		color: var(--ml-home-accent-hover);
		border-color: var(--ml-home-accent-border-strong);
		background: var(--ml-home-accent-soft);
		outline: none;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-prize-table {
		display: grid;
		gap: 0.34rem;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-prize-table__head,
	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-prize-row {
		display: grid;
		grid-template-columns: 98px minmax(180px, 1fr) 150px;
		align-items: center;
		gap: 0.48rem;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-prize-table__head {
		padding: 0 0.48rem 0.14rem;
		color: var(--ml-home-muted);
		font-size: 0.58rem;
		font-weight: 820;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-prize-row {
		min-height: 48px;
		padding: 0.36rem 0.42rem;
		border: 1px solid transparent;
		border-radius: 9px;
		background: rgba(255, 255, 255, 0.022);
		transition: border-color 140ms ease, background 140ms ease;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-prize-row:focus-within {
		border-color: var(--ml-home-accent-border);
		background: var(--ml-home-accent-subtle);
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-place-field,
	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-taller-field {
		display: grid;
		align-items: center;
		gap: 0.34rem;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-place-field {
		display: flex;
		align-items: center;
		gap: 0.42rem;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-taller-field {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-place-badge {
		display: inline-grid;
		min-width: 34px;
		height: 30px;
		place-items: center;
		padding: 0 0.38rem;
		color: var(--ml-home-accent-hover);
		border: 1px solid var(--ml-home-accent-border);
		border-radius: 8px;
		background: var(--ml-home-accent-soft);
		font-size: 0.68rem;
		font-weight: 900;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-place-label {
		color: var(--ml-home-text);
		font-size: 0.68rem;
		font-weight: 820;
		white-space: nowrap;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-prize-row[hidden] {
		display: none !important;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-prize-row:not([hidden]) {
		animation: ml-quiz-prize-row-in 150ms ease-out both;
	}

	@keyframes ml-quiz-prize-row-in {
		from { opacity: 0; transform: translateY(-4px); }
		to { opacity: 1; transform: translateY(0); }
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-taller-suffix {
		color: var(--ml-home-muted);
		font-size: 0.63rem;
		font-weight: 800;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-prize-row .form-control {
		min-height: 36px;
		padding: 0.42rem 0.5rem;
		font-size: 0.7rem;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-prizes-actions {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.7rem;
		margin-top: 0.62rem;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-prizes-actions .ml-text-button {
		width: auto;
		margin: 0;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-award-status {
		min-width: 0;
		color: var(--ml-home-muted);
		font-size: 0.64rem;
		font-weight: 700;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) #kviz_panel > .ml-quiz-actions {
		margin: 0.7rem 0 0;
		padding-top: 0.65rem;
		border-top: 1px solid var(--ml-home-border-soft);
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) #kviz_panel > .ml-quiz-actions .ml-text-button {
		width: auto;
		margin: 0;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-desktop-smiley-dock #kviz_panel > .ml-quiz-actions [data-chat-action="quiz-prize"] {
		display: none;
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-prize-row.is-success {
		border-color: rgba(79, 209, 157, 0.34);
		background: rgba(79, 209, 157, 0.055);
	}

	.ml-home-app:not(.ml-home-app--chat-fullscreen) .ml-quiz-prize-row.is-error {
		border-color: rgba(255, 98, 88, 0.42);
		background: rgba(255, 98, 88, 0.065);
	}
}


/* =========================================================
   FULLSCREEN CHAT COMPOSER – LEVEGŐSEBB MÉRETEZÉS
   Desktop: 72px / 40x40
   Mobil:   62px / 36x36
   ========================================================= */

/* A fullscreenhez tartozó alsó helyfoglalás is kövesse
   a tényleges composer alapmagasságát. */
.ml-chat-wall.ml-chat-wall--fullscreen {
	--ml-chat-composer-height: 72px;
	--ml-chat-input-height: 72px;
}


/* ---------- DESKTOP / TABLET ---------- */

.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-composer__main,
.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-composer__main:hover,
.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-composer__main:focus-within {
	grid-template-columns: 40px minmax(0, 1fr) auto;

	/* nagyobb tér a + ikon, input és jobb oldali ikonok között */
	column-gap: 0.7rem;

	min-height: 72px;

	/* levegősebb belső tér */
	padding: 0.65rem 0.9rem !important;
}


/* Jobb oldali ikonok között is legyen egy kis plusz tér. */
.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-composer__actions {
	gap: 0.35rem;
}


/* Fullscreen desktop ikonvezérlők: 40 × 40 px */
.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-image-button,
.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-action-button,
.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-composer .ml-send-button {
	width: 40px;
	height: 40px;
	min-height: 40px;
	flex: 0 0 40px;
}


/* Maga a textarea is kapjon több belső teret. */
.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-composer__source {
	height: 42px;
	min-height: 42px;
	max-height: min(132px, 28vh);

	padding:
		0.6rem
		0.72rem
		0.5rem;
}


/* ---------- MOBIL ---------- */

@media (max-width: 575.98px) {

	.ml-chat-wall.ml-chat-wall--fullscreen {
		--ml-chat-composer-height: 62px;
		--ml-chat-input-height: 62px;
	}

	.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-composer__main,
	.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-composer__main:hover,
	.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-composer__main:focus-within {
		grid-template-columns: 36px minmax(0, 1fr) auto;

		column-gap: 0.4rem;

		min-height: 62px;

		/* mobilon levegősebb, de nem túl vastag */
		padding: 0.45rem 0.55rem !important;
	}

	.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-composer__actions {
		gap: 0.18rem;
	}

	/* Mobil fullscreen ikonok: 36 × 36 px */
	.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-image-button,
	.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-action-button,
	.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-composer .ml-send-button {
		width: 36px;
		height: 36px;
		min-height: 36px;
		flex: 0 0 36px;
	}

	.ml-chat-wall.ml-chat-wall--fullscreen .ml-chat-composer__source {
		height: 40px;
		min-height: 40px;

		padding:
			0.52rem
			0.5rem
			0.42rem;
	}
}