.emoji-cat-btn.is-active {
	background: #eff6ff;
	color: #2563eb;
	border-color: #93c5fd;
}
.emoji-panel {
	background: #fff;
}
.emoji-panel-head {
	padding: 20px 16px 12px;
	background: #fff;
}
.emoji-toolbar {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.emoji-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
.emoji-search-icon {
	position: absolute;
	left: 14px;
	color: #9ca3af;
	font-size: 15px;
	line-height: 1;
	pointer-events: none;
	transition: color .2s ease;
}
.emoji-search-wrap.is-focused .emoji-search-icon {
	color: #3b82f6;
}
.emoji-search-input {
	width: 100%;
	height: 46px;
	padding: 0 40px 0 42px;
	border: 1px solid #d1d5db;
	border-radius: 12px;
	background: #fff;
	color: #111827;
	font-size: 16px;
	line-height: 46px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
	-webkit-appearance: none;
	appearance: none;
}
.emoji-search-input:hover {
	border-color: #9ca3af;
}
.emoji-search-input::placeholder {
	color: #9ca3af;
}
.emoji-search-input:focus {
	outline: none;
	border-color: #3b82f6;
	background: #fff;
	box-shadow: none;
}
.emoji-search-input::-webkit-search-cancel-button,
.emoji-search-input::-webkit-search-decoration {
	-webkit-appearance: none;
}
.emoji-search-clear {
	position: absolute;
	right: 8px;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #9ca3af;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
}
.emoji-search-wrap.has-value .emoji-search-clear {
	display: flex;
}
.emoji-search-clear:hover {
	background: #f3f4f6;
	color: #6b7280;
}
.emoji-cats-bar {
	padding: 0 16px 12px;
	overflow-x: auto;
	border-bottom: 1px solid #f3f4f6;
}
.emoji-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-width: max-content;
}
.emoji-cat-btn {
	padding: 6px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	color: #374151;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.emoji-cat-btn:hover {
	background: #f9fafb;
}
.emoji-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
	gap: 4px;
}
.emoji-item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 48px;
	padding: 0;
	border: 0;
	background: transparent;
	border-radius: 10px;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}
.emoji-item:hover,
.emoji-item:focus-visible {
	background: #eff6ff;
	outline: none;
}
.emoji-modal-mask {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, 0.45);
}
.emoji-modal-mask.hidden {
	display: none;
}
.emoji-modal {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
	padding: 28px 24px 22px;
}
.emoji-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	color: #9ca3af;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	border-radius: 999px;
}
.emoji-modal-close:hover {
	background: #f3f4f6;
	color: #6b7280;
}
.emoji-modal-preview {
	text-align: center;
	font-size: 72px;
	line-height: 1;
	margin-bottom: 12px;
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}
.emoji-modal-name {
	text-align: center;
	font-size: 18px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 18px;
}
.emoji-modal-copy {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	max-width: 220px;
	margin: 0 auto 22px;
	padding: 11px 18px;
	border: 0;
	border-radius: 12px;
	background: #2563eb;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.emoji-modal-copy:hover {
	background: #1d4ed8;
}
.emoji-modal-meta {
	border-top: 1px solid #f3f4f6;
	padding-top: 16px;
	font-size: 14px;
	color: #374151;
}
.emoji-meta-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 12px;
}
.emoji-meta-row:last-child {
	margin-bottom: 0;
}
.emoji-meta-label {
	flex: 0 0 auto;
	color: #6b7280;
	line-height: 1.6;
}
.emoji-meta-value {
	flex: 1;
	line-height: 1.6;
	word-break: break-all;
}
.emoji-keyword-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.emoji-keyword {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: #eff6ff;
	color: #2563eb;
	font-size: 13px;
	line-height: 1.5;
}
@media (min-width: 768px) {
	.emoji-panel-head {
		padding: 24px 24px 12px;
	}
	.emoji-cats-bar {
		padding: 0 24px 12px;
	}
	.emoji-cats {
		min-width: 0;
	}
	.emoji-grid {
		grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
	}
	.emoji-item {
		height: 52px;
		font-size: 30px;
	}
}
