/* Gemeinsame Emoji-Auswahl (em-core 0.53.0), siehe em-emoji.js. */
.em-emoji { position: relative; display: inline-block; }
.em-emoji__feld {
	position: absolute;
	z-index: 20;
	top: calc(100% + 6px);
	left: 0;
	width: 340px;
	max-width: calc(100vw - 32px);
	max-height: 320px;
	overflow-y: auto;
	padding: 10px;
	background: var(--surface, #fff);
	border: 1px solid var(--line, #e2d2d6);
	border-radius: 12px;
	box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.4);
	text-align: left;
}
.em-emoji__feld[hidden] { display: none; }
.em-emoji__gruppe {
	margin: 8px 0 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-faint, #7c6a72);
}
.em-emoji__gruppe:first-child { margin-top: 0; }
.em-emoji__raster { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.em-emoji__raster button {
	height: 36px;
	font-size: 21px;
	line-height: 1;
	background: none;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	padding: 0;
}
.em-emoji__raster button:hover,
.em-emoji__raster button:focus-visible { background: var(--gold-soft, rgba(196, 148, 42, 0.18)); outline: none; }
/* Im Nachrichtenfenster öffnet das Feld nach oben, sonst liegt es unter dem Bildschirmrand. */
.em-emoji--oben .em-emoji__feld { top: auto; bottom: calc(100% + 6px); }
