/*!
 * jan-mention.css —— 回帖框 @提及下拉面板
 */

.jan-at {
	position: absolute;
	z-index: 1080;
	box-sizing: border-box;
	padding: 4px;
	background: #fff;
	border: 1px solid #e6ebf2;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .06);
	animation: jan-at-in .12s ease-out;
}

@keyframes jan-at-in {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: translateY(0); }
}

.jan-at[hidden] {
	display: none !important;
}

.jan-at__rows {
	max-height: 264px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.jan-at__rows::-webkit-scrollbar {
	width: 6px;
}

.jan-at__rows::-webkit-scrollbar-thumb {
	background: #d7dee8;
	border-radius: 3px;
}

.jan-at__item {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 7px 9px;
	border-radius: 7px;
	cursor: pointer;
	line-height: 1.3;
}

.jan-at__item.is-active,
.jan-at__item:hover {
	background: #eff5ff;
}

.jan-at__avatar {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	object-fit: cover;
	background: #eef2f7;
}

.jan-at__avatar--empty {
	display: inline-block;
}

.jan-at__name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13px;
	font-weight: 600;
	color: #2b3445;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.jan-at__tag {
	flex: 0 0 auto;
	font-size: 11px;
	color: #9aa5b5;
	white-space: nowrap;
}

.jan-at__item .jan-at__tag:empty {
	display: none;
}

@media (max-width: 575.98px) {
	.jan-at {
		max-width: calc(100vw - 24px);
	}

	.jan-at__rows {
		max-height: 216px;
	}
}
