.mks-gre-insight {
	--mks-gre-insight-accent: #8222ee;
	--mks-gre-insight-bg: #2a1553;
	--mks-gre-insight-border: #5b2fc7;
	--mks-gre-insight-max: 360px;
	--mks-gre-insight-radius: 8px;
	--mks-gre-verbal: #8222ee;
	--mks-gre-quant: #2563eb;
	--mks-gre-full: #f97316;
	box-sizing: border-box;
	width: min(100%, var(--mks-gre-insight-max));
	margin: 0;
	padding: 12px;
	border: 1px solid var(--mks-gre-insight-border);
	border-radius: var(--mks-gre-insight-radius);
	background-color: var(--mks-gre-insight-bg);
	background-image:
		radial-gradient(circle at 12% 0, rgba(255, 255, 255, 0.16), transparent 34%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.20) 100%);
	color: #ffffff;
	font-family: inherit;
	box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.mks-gre-insight *,
.mks-gre-insight *::before,
.mks-gre-insight *::after {
	box-sizing: border-box;
}

.mks-gre-insight__ticker {
	position: relative;
	width: 100%;
	margin: 0 0 10px;
	padding: 7px 0;
	overflow: hidden;
	border-block: 1px solid rgba(216, 180, 254, 0.2);
	background: transparent;
	color: rgba(255, 255, 255, 0.92);
	font-family: inherit;
	font-size: 11px;
	font-weight: 750;
	line-height: 1.35;
	white-space: nowrap;
	outline: none;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.mks-gre-insight__ticker-track {
	display: flex;
	width: max-content;
	will-change: transform;
	animation: mks-gre-insight-ticker-scroll 52s linear infinite;
}

.mks-gre-insight__ticker-group {
	display: flex;
	align-items: center;
	flex: none;
	gap: 28px;
	padding-right: 28px;
}

.mks-gre-insight__ticker-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex: none;
}

.mks-gre-insight__ticker-item i {
	display: block;
	width: 6px;
	height: 6px;
	flex: none;
	border-radius: 999px;
	background: var(--mks-gre-insight-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--mks-gre-insight-accent) 18%, transparent);
}

.mks-gre-insight__ticker:hover .mks-gre-insight__ticker-track,
.mks-gre-insight__ticker:focus .mks-gre-insight__ticker-track,
.mks-gre-insight__ticker:focus-within .mks-gre-insight__ticker-track {
	animation-play-state: paused;
}

.mks-gre-insight__ticker:focus-visible {
	box-shadow: inset 0 0 0 2px rgba(216, 180, 254, 0.5);
}

.mks-gre-insight[hidden] .mks-gre-insight__ticker,
.mks-gre-insight.is-hidden .mks-gre-insight__ticker,
.mks-gre-insight.is-collapsed .mks-gre-insight__ticker,
.mks-gre-insight[aria-hidden="true"] .mks-gre-insight__ticker {
	display: none;
}

@keyframes mks-gre-insight-ticker-scroll {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(-50%, 0, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mks-gre-insight__ticker {
		overflow-x: auto;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.mks-gre-insight__ticker-track {
		animation: none;
		transform: none;
		will-change: auto;
	}

	.mks-gre-insight__ticker-group[aria-hidden="true"] {
		display: none;
	}
}

.mks-gre-insight__header {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	min-width: 0;
	min-height: 0;
	margin-bottom: 10px;
	padding: 0;
}

.mks-gre-insight .mks-gre-insight__profile-summary {
	display: flex !important;
	flex: 1 1 auto;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: center;
	gap: 0 !important;
	min-width: 0;
	text-align: center;
}

.mks-gre-insight__content {
	display: block;
}

.mks-gre-insight__toggle {
	display: none;
}

.mks-gre-insight__avatar {
	flex: 0 0 76px;
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	margin: 0 !important;
	border: 3px solid rgba(255, 255, 255, 0.20);
	border-radius: 999px;
	background: #1f2937;
	color: #ffffff;
	overflow: hidden;
	box-shadow: 0 8px 20px rgba(2, 6, 23, 0.32);
}

.mks-gre-insight__avatar img,
.mks-gre-insight__avatar .avatar,
.mks-gre-insight__avatar .mks-gre-insight__avatar-image {
	display: block;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	object-fit: cover;
}

.mks-gre-insight__avatar svg {
	width: 38px;
	height: 38px;
	fill: rgba(255, 255, 255, 0.16);
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
}

.mks-gre-insight .mks-gre-insight__profile-summary .mks-gre-insight__identity {
	flex: 0 1 auto;
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-width: 0;
	text-align: center;
}

.mks-gre-insight__eyebrow {
	margin: 0 !important;
	padding: 0 !important;
	color: #c4b5fd;
	font-size: 10px;
	font-weight: 900;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.mks-gre-insight__identity h3,
.mks-gre-insight__guest-copy h3 {
	margin: 0;
	color: #ffffff;
	font-size: 19px;
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mks-gre-insight__status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	margin: 0;
	padding: 0;
	background: transparent;
	color: #86efac;
	font-size: 11px;
	font-weight: 750;
	line-height: 1.25;
}

.mks-gre-insight__status::before {
	content: "";
	flex: 0 0 7px;
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

.mks-gre-insight__status.is-expired {
	background: transparent;
	color: #fecaca;
}

.mks-gre-insight__status.is-expired::before {
	background: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.mks-gre-insight__meta-grid,
.mks-gre-insight__metric-grid,
.mks-gre-insight__score-row {
	display: grid;
	gap: 6px;
	margin-top: 8px;
}

.mks-gre-insight__meta-grid,
.mks-gre-insight__metric-grid.is-two,
.mks-gre-insight__score-row {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mks-gre-insight__metric-grid.is-three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mks-gre-insight__meta,
.mks-gre-insight__metric {
	min-width: 0;
	padding: 7px 8px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.10);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mks-gre-insight__meta span,
.mks-gre-insight__metric span {
	display: block;
	margin-bottom: 2px;
	color: rgba(255, 255, 255, 0.68);
	font-size: 10px;
	font-weight: 750;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.mks-gre-insight__meta strong,
.mks-gre-insight__metric strong {
	display: block;
	color: #ffffff;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.12;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

.mks-gre-insight__score-row .mks-gre-insight__metric {
	border-color: rgba(216, 180, 254, 0.34);
	background: rgba(168, 85, 247, 0.16);
}

.mks-gre-insight__test-summary {
	display: grid;
	gap: 6px;
	margin-top: 8px;
}

.mks-gre-insight__test-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
}

.mks-gre-insight__test-row.has-two-cards {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mks-gre-insight__test-card {
	display: flex;
	min-width: 0;
	min-height: 0;
	align-items: flex-start;
	justify-content: center;
	padding: 7px 8px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.10);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
	color: #ffffff;
	flex-direction: column;
	text-align: left;
}

.mks-gre-insight__test-card span {
	display: block;
	max-width: 100%;
	margin-bottom: 2px;
	color: rgba(255, 255, 255, 0.68);
	font-size: 9px;
	font-weight: 750;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.mks-gre-insight__test-card strong {
	display: block;
	margin-top: 0;
	color: #ffffff;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.12;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

.mks-gre-insight__charts {
	display: grid;
	gap: 8px;
	margin-top: 10px;
}

.mks-gre-insight-chart {
	min-width: 0;
	padding: 8px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.92);
}

.mks-gre-insight-chart__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

.mks-gre-insight-chart__head strong {
	color: #111827;
	font-size: 11px;
	font-weight: 900;
	line-height: 1.2;
}

.mks-gre-insight-chart__legend {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 5px 8px;
	min-width: 0;
}

.mks-gre-insight-chart__legend span,
.mks-gre-insight-donut__legend dt {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #4b5563;
	font-size: 9px;
	font-weight: 800;
	line-height: 1.1;
	white-space: nowrap;
}

.mks-gre-insight-chart__legend i,
.mks-gre-insight-donut__legend i {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 999px;
}

.mks-gre-insight-line-chart {
	display: block;
	width: 100%;
	height: auto;
	min-height: 142px;
}

.mks-gre-insight-line-chart__grid {
	stroke: #e5e7eb;
	stroke-width: 1;
}

.mks-gre-insight-line-chart__axis-line {
	stroke: #cbd5e1;
	stroke-width: 1;
}

.mks-gre-insight-line-chart__axis {
	fill: #64748b;
	font-size: 9px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.mks-gre-insight-line-chart__line {
	fill: none;
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mks-gre-insight-line-chart__point {
	stroke: #ffffff;
	stroke-width: 1.5;
}

.mks-gre-insight-chart__empty {
	margin: -6px 0 0;
	color: #6b7280;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
}

.mks-gre-insight-donut {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.mks-gre-insight-donut__ring {
	display: grid;
	place-items: center;
	width: 74px;
	height: 74px;
	border-radius: 999px;
	background:
		radial-gradient(circle at center, #ffffff 0 53%, transparent 54%),
		conic-gradient(
			var(--mks-gre-verbal) 0 var(--mks-gre-mix-verbal),
			var(--mks-gre-quant) var(--mks-gre-mix-verbal) var(--mks-gre-mix-quant),
			var(--mks-gre-full) var(--mks-gre-mix-quant) 360deg
		);
	box-shadow: inset 0 0 0 1px #e5e7eb;
}

.mks-gre-insight-donut__ring b {
	grid-area: 1 / 1;
	color: #111827;
	font-size: 18px;
	font-weight: 900;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.mks-gre-insight-donut__ring small {
	grid-area: 1 / 1;
	align-self: end;
	margin-bottom: 15px;
	color: #6b7280;
	font-size: 8px;
	font-weight: 800;
	line-height: 1;
}

.mks-gre-insight-donut__legend {
	display: grid;
	gap: 5px;
	min-width: 0;
	margin: 0;
}

.mks-gre-insight-donut__legend div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-width: 0;
}

.mks-gre-insight-donut__legend dd {
	margin: 0;
	color: #111827;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.mks-gre-insight-donut__legend .is-verbal {
	background: var(--mks-gre-verbal);
}

.mks-gre-insight-donut__legend .is-quant {
	background: var(--mks-gre-quant);
}

.mks-gre-insight-donut__legend .is-full {
	background: var(--mks-gre-full);
}

.mks-gre-insight__recommendation {
	margin-top: 10px;
	padding: 9px 10px;
	border-left: 3px solid #c084fc;
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.10);
}

.mks-gre-insight__recommendation span {
	display: block;
	margin-bottom: 3px;
	color: #e9d5ff;
	font-size: 10px;
	font-weight: 900;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0;
}

.mks-gre-insight__recommendation p,
.mks-gre-insight__guest-copy p {
	margin: 0;
	color: rgba(255, 255, 255, 0.84);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.mks-gre-insight__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 36px;
	margin-top: 10px;
	padding: 8px 12px;
	border: 1px solid color-mix(in srgb, var(--mks-gre-insight-accent) 72%, #0f172a);
	border-radius: 7px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--mks-gre-insight-accent) 78%, #ffffff), var(--mks-gre-insight-accent));
	color: #ffffff;
	font-size: 12px;
	font-weight: 850;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

.mks-gre-insight__button:hover,
.mks-gre-insight__button:focus-visible {
	background: linear-gradient(135deg, color-mix(in srgb, var(--mks-gre-insight-accent) 88%, #ffffff), var(--mks-gre-insight-accent));
	color: #ffffff;
	text-decoration: none;
	outline: none;
	box-shadow: 0 0 0 3px rgba(216, 180, 254, 0.22);
}

.mks-gre-insight__guest-panel {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 10px;
}

.mks-gre-insight__guest-panel .mks-gre-insight__button {
	grid-column: 1 / -1;
	margin-top: 0;
}

.mks-gre-insight-editor .mks-gre-insight {
	margin-top: 0;
	margin-bottom: 0;
}

/* Match the SAT insight panel on small screens: keep the identity visible and
 * reveal the detailed stats only when the student chooses to expand it. */
@media (max-width: 782px) {
	.mks-gre-insight.has-mobile-toggle {
		position: relative;
		display: grid;
		gap: 0;
		width: 100%;
		max-width: none;
		min-width: 0;
		padding: 14px 16px;
		border-color: var(--mks-gre-insight-border);
		border-radius: var(--mks-gre-insight-radius);
		background-color: var(--mks-gre-insight-bg);
		background-image:
			radial-gradient(circle at 100% 0, color-mix(in srgb, var(--mks-gre-insight-accent) 28%, transparent) 0%, transparent 42%),
			linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.20) 100%);
		overflow: hidden;
	}

	.mks-gre-insight.has-mobile-toggle::before {
		content: "";
		position: absolute;
		inset: 0 auto 0 0;
		width: 3px;
		background: linear-gradient(180deg, var(--mks-gre-insight-accent), #0ea5e9, #10b981);
	}

	.mks-gre-insight.has-mobile-toggle::after {
		content: "";
		position: absolute;
		inset: -44px -52px auto auto;
		width: 132px;
		height: 132px;
		border-radius: 999px;
		background: radial-gradient(circle, color-mix(in srgb, var(--mks-gre-insight-accent) 35%, transparent) 0%, transparent 66%);
		pointer-events: none;
	}

	.mks-gre-insight.has-mobile-toggle > * {
		position: relative;
		z-index: 1;
	}

	.mks-gre-insight.has-mobile-toggle .mks-gre-insight__ticker {
		display: none;
	}

	.mks-gre-insight.has-mobile-toggle.is-mobile-expanded .mks-gre-insight__ticker {
		display: block;
		margin-bottom: 14px;
	}

	.mks-gre-insight.has-mobile-toggle .mks-gre-insight__header {
		display: flex;
		align-items: center;
		gap: 12px;
		min-width: 0;
		min-height: 0;
		margin-bottom: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	.mks-gre-insight.has-mobile-toggle .mks-gre-insight__header.has-avatar {
		grid-template-columns: none;
	}

	.mks-gre-insight.has-mobile-toggle .mks-gre-insight__avatar {
		flex: 0 0 66px;
		width: 66px;
		height: 66px;
	}

	.mks-gre-insight.has-mobile-toggle .mks-gre-insight__identity {
		display: grid;
		flex: 1 1 auto;
		gap: 3px;
		min-width: 0;
	}

	.mks-gre-insight.has-mobile-toggle .mks-gre-insight__eyebrow {
		margin: 0;
		color: #c4b5fd;
		font-size: 10px;
		font-weight: 900;
		line-height: 1.2;
		letter-spacing: 0.1em;
	}

	.mks-gre-insight.has-mobile-toggle .mks-gre-insight__identity h3 {
		margin: 0;
		min-width: 0;
		color: #ffffff;
		font-size: 19px;
		font-weight: 900;
		line-height: 1.15;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.mks-gre-insight.has-mobile-toggle .mks-gre-insight__status {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		min-width: 0;
		margin: 0;
		padding: 0;
		border-radius: 0;
		background: transparent;
		color: #86efac;
		font-size: 11px;
		font-weight: 750;
		line-height: 1.25;
	}

	.mks-gre-insight.has-mobile-toggle .mks-gre-insight__status::before {
		flex: 0 0 7px;
		width: 7px;
		height: 7px;
		background: #22c55e;
		box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
	}

	.mks-gre-insight.has-mobile-toggle .mks-gre-insight__status.is-expired {
		background: transparent;
		color: #fecaca;
	}

	.mks-gre-insight.has-mobile-toggle .mks-gre-insight__status.is-expired::before {
		background: #ef4444;
		box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
	}

	.mks-gre-insight.has-mobile-toggle .mks-gre-insight__toggle {
		flex: 0 0 42px;
		margin-left: auto;
	}

	.mks-gre-insight__toggle {
		position: relative;
		display: grid;
		place-items: center;
		width: 42px;
		height: 42px;
		margin: 0;
		padding: 0;
		border: 1px solid rgba(216, 180, 254, 0.48);
		border-radius: 10px;
		background: rgba(255, 255, 255, 0.10);
		color: #ffffff;
		box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
		cursor: pointer;
		transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
	}

	.mks-gre-insight__toggle:hover,
	.mks-gre-insight__toggle:focus-visible {
		border-color: var(--mks-gre-insight-accent);
		background: color-mix(in srgb, var(--mks-gre-insight-accent) 30%, transparent);
		outline: none;
	}

	.mks-gre-insight__toggle:active {
		transform: scale(0.96);
	}

	.mks-gre-insight__toggle span,
	.mks-gre-insight__toggle span::after {
		display: block;
		width: 18px;
		height: 2px;
		border-radius: 999px;
		background: currentColor;
	}

	.mks-gre-insight__toggle span {
		position: relative;
	}

	.mks-gre-insight__toggle span::after {
		content: "";
		position: absolute;
		inset: 0;
		transform: rotate(90deg);
		transition: opacity 0.16s ease, transform 0.16s ease;
	}

	.mks-gre-insight.is-mobile-expanded .mks-gre-insight__toggle span::after {
		opacity: 0;
		transform: rotate(0deg);
	}

	.mks-gre-insight.has-mobile-toggle .mks-gre-insight__content {
		display: none;
	}

	.mks-gre-insight.has-mobile-toggle.is-mobile-expanded .mks-gre-insight__content {
		display: block;
		margin-top: 14px;
		padding-top: 14px;
		border-top: 1px solid rgba(216, 180, 254, 0.20);
	}
}

@media (max-width: 420px) {
	.mks-gre-insight {
		padding: 10px;
	}

	.mks-gre-insight.has-mobile-toggle {
		padding: 13px 14px;
	}

	.mks-gre-insight.has-mobile-toggle .mks-gre-insight__avatar {
		flex-basis: 60px;
		width: 60px;
		height: 60px;
	}

	.mks-gre-insight.has-mobile-toggle .mks-gre-insight__identity h3 {
		font-size: 17px;
	}

	.mks-gre-insight__metric-grid.is-three,
	.mks-gre-insight__meta-grid,
	.mks-gre-insight__metric-grid.is-two,
	.mks-gre-insight__score-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.mks-gre-insight__test-row,
	.mks-gre-insight__test-row.has-two-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.mks-gre-insight-donut {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
	}

	.mks-gre-insight-donut__legend {
		width: 100%;
	}
}
