.smart-trend-eye {
	--smart-trend-eye-color: #8b949e;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.32rem;
	min-height: 28px;
	min-width: 52px;
	color: var(--smart-trend-eye-color);
	font-size: 0.875rem;
	font-weight: 650;
	line-height: 1;
	letter-spacing: 0;
	transition: color 160ms ease, opacity 160ms ease;
}

.smart-trend-eye .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 18px;
}

.smart-trend-eye:not(.is-hydrated) {
	opacity: 0.72;
}

.smart-trend-eye.is-seen {
	--smart-trend-eye-color: #087f8c;
}

.smart-trend-eye.is-compact {
	min-height: 24px;
	min-width: 44px;
	font-size: 0.8rem;
}

.smart-trend-progress {
	--smart-trend-gold: #f2b84b;
	--smart-trend-ink: #17212b;
	--smart-trend-teal: #087f8c;
	--smart-trend-green: #379b4a;
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 150px;
	gap: 1.25rem;
	align-items: center;
	margin: 2.25rem 0 0;
	padding: 1.3rem 0;
	border-top: 1px solid #d9dee3;
	border-bottom: 1px solid #d9dee3;
	color: var(--smart-trend-ink);
	letter-spacing: 0;
}

.smart-trend-progress-copy {
	min-width: 0;
}

.smart-trend-progress-kicker,
.smart-trend-toast-kicker {
	display: block;
	margin: 0 0 0.3rem;
	color: var(--smart-trend-teal, #087f8c);
	font-size: 0.75rem;
	font-weight: 750;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0;
}

.smart-trend-progress h2 {
	margin: 0 0 0.35rem;
	font-size: 1.2rem;
	line-height: 1.25;
	letter-spacing: 0;
}

.smart-trend-progress p {
	margin: 0;
}

.smart-trend-progress-track {
	position: relative;
	overflow: hidden;
	height: 10px;
	margin: 0.9rem 0 0.45rem;
	border-radius: 5px;
	background: #e7eaed;
}

.smart-trend-progress-track > span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--smart-trend-teal), var(--smart-trend-green));
	transition: width 280ms ease;
}

.smart-trend-progress-value {
	color: #59636e;
	font-size: 0.85rem;
	font-weight: 650;
}

.smart-trend-progress > img {
	display: block;
	width: 150px;
	height: 150px;
	object-fit: contain;
	transition: filter 160ms ease, opacity 160ms ease;
}

.smart-trend-progress:not(.is-complete) > img {
	filter: grayscale(1);
	opacity: 0.38;
}

.smart-trend-earned,
.smart-trend-badge-gallery {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0.2rem;
}

.smart-trend-earned-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	max-width: 220px;
	color: #27313b;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.25;
}

.smart-trend-earned-badge img {
	width: 54px;
	height: 54px;
	flex: 0 0 54px;
	object-fit: contain;
}

.smart-trend-badge-collection {
	--smart-trend-collection-border: #d9dee3;
	--smart-trend-collection-ink: #27313b;
	--smart-trend-collection-muted: #66717c;
	color: var(--smart-trend-collection-ink);
	letter-spacing: 0;
}

.smart-trend-badge-roadmap {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
}

.smart-trend-roadmap-badge {
	position: relative;
	display: block;
	min-width: 0;
}

.smart-trend-roadmap-badge-button {
	display: grid;
	grid-template-rows: 72px auto auto;
	align-items: start;
	justify-items: center;
	width: 100%;
	min-height: 126px;
	margin: 0;
	padding: 0.45rem 0.35rem 0.5rem;
	border: 1px solid var(--smart-trend-collection-border);
	border-radius: 6px;
	background: #fff;
	box-shadow: none;
	color: var(--smart-trend-collection-ink);
	font: inherit;
	line-height: 1.2;
	letter-spacing: 0;
	cursor: help;
	transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.smart-trend-roadmap-badge-button:hover,
.smart-trend-roadmap-badge-button:focus-visible {
	border-color: #98a3ad;
	background: #f8f9fa;
	outline: 2px solid #087f8c;
	outline-offset: 2px;
	transform: translateY(-1px);
}

.smart-trend-roadmap-badge img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: contain;
	transition: filter 160ms ease, opacity 160ms ease;
}

.smart-trend-roadmap-badge.is-locked img {
	filter: grayscale(1);
	opacity: 0.3;
}

.smart-trend-roadmap-badge-name,
.smart-trend-roadmap-badge-state {
	display: block;
	max-width: 100%;
	text-align: center;
	letter-spacing: 0;
}

.smart-trend-roadmap-badge-name {
	margin-top: 0.25rem;
	font-size: 0.78rem;
	font-weight: 750;
}

.smart-trend-roadmap-badge-state {
	margin-top: 0.18rem;
	color: var(--smart-trend-collection-muted);
	font-size: 0.7rem;
	font-weight: 600;
}

.smart-trend-roadmap-badge.is-earned .smart-trend-roadmap-badge-state {
	color: #087f8c;
}

.smart-trend-roadmap-tooltip {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 10001;
	display: block;
	visibility: hidden;
	width: max-content;
	max-width: min(230px, calc(100vw - 40px));
	padding: 0.5rem 0.6rem;
	border-radius: 6px;
	background: #17212b;
	box-shadow: 0 6px 18px rgba(23, 33, 43, 0.2);
	color: #fff;
	font-size: 0.74rem;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0;
	opacity: 0;
	pointer-events: none;
	transform: translateY(4px);
	transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
}

.smart-trend-roadmap-badge:first-child .smart-trend-roadmap-tooltip {
	left: 0;
	right: auto;
}

.smart-trend-roadmap-tooltip strong,
.smart-trend-roadmap-tooltip span {
	display: block;
	letter-spacing: 0;
}

.smart-trend-roadmap-tooltip strong {
	margin-bottom: 0.18rem;
}

.smart-trend-roadmap-badge:hover .smart-trend-roadmap-tooltip,
.smart-trend-roadmap-badge:focus-within .smart-trend-roadmap-tooltip {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
}

.smart-trend-badge-summary {
	margin: 0.7rem 0 0;
	color: var(--smart-trend-collection-muted);
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
}

#ktfmm-mobile-drawer .smart-trend-badge-collection {
	--smart-trend-collection-border: rgba(255, 255, 255, 0.2);
	--smart-trend-collection-ink: #fff;
	--smart-trend-collection-muted: rgba(255, 255, 255, 0.72);
}

#ktfmm-mobile-drawer .smart-trend-roadmap-badge-button,
#ktfmm-mobile-drawer .smart-trend-roadmap-badge-button:hover,
#ktfmm-mobile-drawer .smart-trend-roadmap-badge-button:focus-visible {
	border-color: var(--smart-trend-collection-border);
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
}

.smart-trend-toast-region {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 100000;
	width: min(390px, calc(100vw - 32px));
	pointer-events: none;
}

.smart-trend-toast {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr) 30px;
	gap: 0.75rem;
	align-items: center;
	padding: 0.85rem;
	border: 1px solid #d6dce1;
	border-left: 4px solid #f2b84b;
	border-radius: 6px;
	background: #ffffff;
	box-shadow: 0 12px 34px rgba(23, 33, 43, 0.2);
	color: #17212b;
	opacity: 0;
	transform: translateY(10px);
	pointer-events: auto;
	transition: opacity 180ms ease, transform 180ms ease;
}

.smart-trend-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.smart-trend-toast img {
	display: block;
	width: 76px;
	height: 76px;
	object-fit: contain;
}

.smart-trend-toast strong,
.smart-trend-toast span {
	display: block;
	letter-spacing: 0;
}

.smart-trend-toast strong {
	margin-bottom: 0.18rem;
	font-size: 1rem;
	line-height: 1.2;
}

.smart-trend-toast div > span:last-child {
	color: #5a6570;
	font-size: 0.82rem;
	line-height: 1.35;
}

.smart-trend-toast-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #59636e;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.smart-trend-toast-close:hover,
.smart-trend-toast-close:focus-visible {
	color: #17212b;
}

@media (max-width: 640px) {
	.smart-trend-progress {
		grid-template-columns: minmax(0, 1fr) 92px;
		gap: 0.8rem;
	}

	.smart-trend-progress > img {
		width: 92px;
		height: 92px;
	}

	.smart-trend-toast-region {
		left: 16px;
		right: 16px;
		bottom: 16px;
		width: auto;
	}

	.smart-trend-toast {
		grid-template-columns: 58px minmax(0, 1fr) 28px;
	}

	.smart-trend-toast img {
		width: 58px;
		height: 58px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.smart-trend-eye,
	.smart-trend-progress > img,
	.smart-trend-progress-track > span,
	.smart-trend-toast {
		transition: none;
	}
}
