.meo-emoji {
	display: inline-block;
	width: 1.25em;
	height: 1.25em;
	vertical-align: -0.25em;
	object-fit: contain;
	user-select: none;
}

.meo-emoji-run {
	display: inline;
}

.meo-emp {
	position: fixed;
	z-index: 1650;
	width: min(352px, 94vw);
	display: flex;
	flex-direction: column;
	background: var(--bg-card);
	border: 1.5px solid var(--brd);
	border-radius: var(--radius-section);
	box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
	overflow: hidden;
}

.meo-emp-top {
	padding: 10px 10px 8px;
	border-bottom: 1px solid var(--brd-lt);
	flex-shrink: 0;
}

.meo-emp-search {
	box-sizing: border-box;
	width: 100%;
	height: var(--btn-h-md);
	padding: 0 10px;
	font-family: inherit;
	font-size: 13px;
	color: var(--t1);
	background: var(--bg-field);
	border: 1px solid var(--brd-lt);
	border-radius: var(--radius-big);
	outline: none;
}

.meo-emp-search:focus {
	border-color: var(--or-border);
}

.meo-emp-tabs {
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 6px 8px;
	border-bottom: 1px solid var(--brd-lt);
	flex-shrink: 0;
}

.meo-emp-tab {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	padding: 0;
	color: var(--t3);
	background: transparent;
	border: none;
	border-radius: var(--radius-standard);
	cursor: pointer;
}

.meo-emp-tab:hover {
	color: var(--or);
	background: var(--bg-hover);
}

.meo-emp-body {
	flex: 1;
	min-height: 0;
	max-height: 288px;
	overflow-y: auto;
	padding: 0 8px 10px;
	scrollbar-gutter: stable;
}

.meo-emp-cv .meo-emp-sec {
	content-visibility: auto;
}

.meo-emp-load {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-card);
	opacity: .72;
	z-index: 2;
}

.meo-emp-load[hidden] {
	display: none;
}

.meo-emp-sec-h {
	position: sticky;
	top: 0;
	padding: 8px 2px 6px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--t3);
	background: var(--bg-card);
}

.meo-emp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
	gap: 2px;
}

.meo-emp-cell {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: var(--radius-standard);
	cursor: pointer;
}

.meo-emp-cell:hover,
.meo-emp-cell:focus-visible {
	background: var(--bg-hover);
	outline: none;
}

.meo-emp-cell[hidden] {
	display: none;
}

.meo-emp-img {
	width: 24px;
	height: 24px;
	vertical-align: middle;
	pointer-events: none;
}

.meo-emp-empty {
	padding: 24px 8px;
	text-align: center;
	font-size: 12.5px;
	color: var(--t3);
}

.meo-emp-tones {
	position: fixed;
	z-index: 1680;
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 4px;
	background: var(--bg-card);
	border: 1.5px solid var(--brd);
	border-radius: var(--radius-big);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}

.meo-emp-tone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: var(--radius-standard);
	cursor: pointer;
}

.meo-emp-tone:hover {
	background: var(--bg-hover);
}

.meo-emp-tone.is-on {
	background: var(--or-pill-bg);
	box-shadow: inset 0 0 0 1px var(--or-border);
}

@media (max-width: 600px) {
	.meo-emp {
		width: calc(100vw - 16px);
	}

	.meo-emp-body {
		max-height: 44vh;
	}
}

.meo-ems {
	position: fixed;
	z-index: 1660;
	width: min(344px, 94vw);
	display: flex;
	flex-direction: column;
	background: var(--bg-card);
	border: 1.5px solid var(--brd);
	border-radius: var(--radius-section);
	box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
	overflow: hidden;
}

.meo-ems-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 12px;
	background: var(--set-head-bg);
	border-bottom: 1px solid var(--brd-lt);
	flex-shrink: 0;
}

.meo-ems-title {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--t3);
	white-space: nowrap;
}

.meo-ems-q {
	flex-shrink: 1;
	min-width: 0;
	padding: 2px 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--or-pill-fg);
	background: var(--or-pill-bg);
	border: 1px solid var(--or-pill-border);
	border-radius: var(--radius-small);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.meo-ems-list {
	max-height: 272px;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 5px;
	scrollbar-gutter: stable;
}

.meo-ems-row {
	position: relative;
	display: flex;
	align-items: center;
	gap: 11px;
	width: 100%;
	height: 34px;
	padding: 0 9px;
	background: transparent;
	border: none;
	border-radius: var(--radius-standard);
	cursor: pointer;
	text-align: left;
}

@media (hover: hover) and (pointer: fine) {
	.meo-ems-row:hover {
		background: var(--bg-hover);
	}
}

.meo-ems-row.is-on {
	background: var(--or-pill-bg);
}

.meo-ems-img {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	pointer-events: none;
}

.meo-ems-name {
	flex: 1;
	min-width: 0;
	font-size: 13px;
	color: var(--t2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.meo-ems-hit {
	font-weight: 700;
	color: var(--or);
}

.meo-ems-row.is-on .meo-ems-name {
	color: var(--t1);
}

.meo-ems-foot {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 7px 10px;
	border-top: 1px solid var(--brd-lt);
	flex-shrink: 0;
}

.meo-ems-key {
	padding: 2px 7px;
	font-size: 10.5px;
	color: var(--t3);
	background: var(--bg-field);
	border: 1px solid var(--brd-lt);
	border-radius: var(--radius-small);
	white-space: nowrap;
}

@media (pointer: coarse) {
	.meo-ems-foot {
		display: none;
	}
}

@media (max-width: 600px) {
	.meo-ems {
		width: calc(100vw - 16px);
	}

	.meo-ems-list {
		max-height: 38vh;
	}
}
