/**
 * 站内通知：侧栏头像红点（有未读才出现）。列表在个人中心「消息」Tab。
 */

.mytheme-login-account {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.mytheme-login-avatar-wrap {
	position: relative;
	display: flex;
	flex-shrink: 0;
}

.mytheme-login-name {
	font-size: 15px;
	font-weight: 400;
	color: #666666;
}

.mytheme-login-vip {
	font-size: 13px;
	font-weight: 500;
}

.mytheme-notify-avatar-dot {
	position: absolute;
	top: -2px;
	right: -2px;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #e03030;
	border: 2px solid #ffffff;
	box-sizing: content-box;
	pointer-events: none;
}

@media (max-width: 639px) {
	#mount-login-box-mobile .mytheme-login-name,
	#mount-login-box-mobile .mytheme-login-vip {
		display: none;
	}
}

.app-sidebar__login .mytheme-login-name,
.app-sidebar__login .mytheme-login-vip {
	display: none !important;
}

.app-sidebar .mytheme-login-avatar-wrap .mytheme-notify-avatar-dot {
	display: none !important;
}

html.mytheme-sidebar-collapsed .app-sidebar__login .mytheme-login-account {
	justify-content: center;
}

.mytheme-notify-live {
	position: fixed;
	z-index: 50;
	display: flex;
	align-items: flex-start;
	gap: 4px;
	width: min(16rem, calc(100vw - 24px));
	pointer-events: none;
}

.mytheme-notify-live[hidden] {
	display: none;
}

.mytheme-notify-live.is-on {
	pointer-events: auto;
}

.mytheme-notify-live__card {
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: #ffffff;
	border: 1px solid #e5e5e5;
	box-shadow: 0 8px 24px rgba(34, 34, 34, 0.12);
	text-decoration: none;
	color: inherit;
}

.mytheme-notify-live__title {
	display: block;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: #222222;
}

.mytheme-notify-live__body {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 330;
	line-height: 1.4;
	color: #666666;
}

.mytheme-notify-live__body[hidden] {
	display: none;
}

.mytheme-notify-live__close {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #ffffff;
	color: #666666;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.mytheme-notify-live__card:focus-visible,
.mytheme-notify-live__close:focus-visible {
	outline: 2px solid #111111;
	outline-offset: 2px;
}

.mytheme-notify-live.is-on .mytheme-notify-live__card {
	animation: mytheme-notify-live-in 0.22s ease;
}

@media (prefers-reduced-motion: reduce) {
	.mytheme-notify-live.is-on .mytheme-notify-live__card {
		animation: none;
	}
}

@keyframes mytheme-notify-live-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mytheme-notice__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.85rem;
	font-size: 15px;
	line-height: 1.4;
	font-weight: 500;
	color: #222222;
}

.mytheme-notice__eyebrow::before {
	content: "";
	flex: 0 0 auto;
	width: 4px;
	height: 0.95em;
	border-radius: 1px;
	background: #e03030;
}

.mytheme-notice__time {
	margin: 0.75rem 0 0;
	font-size: 14px;
	line-height: 1.5;
	font-weight: 400;
	color: #666666;
}

.mytheme-notice__body {
	margin-top: 1.15rem;
	padding-top: 1.15rem;
	border-top: 1px solid #eeeeee;
	font-size: 16px;
	line-height: 1.5;
	font-weight: 330;
	color: #222222;
}

.mytheme-notice__action {
	margin: 1.5rem 0 0;
}
