.mks-sat-si-wrap,
.mks-sat-si-wrap * {
	box-sizing: border-box;
}

.mks-sat-si-wrap {
	width: 100%;
	min-width: 0;
}

.mks-sat-si {
	--mks-si-panel: #111827;
	--mks-si-surface: #182136;
	--mks-si-border: rgba(148, 163, 184, 0.22);
	--mks-si-muted: #a8b3c7;
	--mks-si-ink: #f8fafc;
	--mks-si-blue: #0ea5e9;
	--mks-si-green: #10b981;
	position: relative;
	display: grid;
	gap: 14px;
	width: 100%;
	min-width: 0;
	padding: 16px;
	border: 1px solid rgba(196, 181, 253, 0.2);
	border-radius: var(--mks-si-radius, 22px);
	background:
		linear-gradient(160deg, rgba(124, 58, 237, 0.2) 0%, rgba(14, 165, 233, 0.12) 48%, rgba(15, 23, 42, 0.08) 100%),
		linear-gradient(180deg, #17152d 0%, #101827 54%, #0b1220 100%);
	color: var(--mks-si-ink);
	font-family: inherit;
	box-shadow: 0 18px 38px rgba(2, 6, 23, 0.26);
	overflow: hidden;
}

.mks-sat-si::after {
	content: "";
	position: absolute;
	inset: -44px -52px auto auto;
	width: 132px;
	height: 132px;
	border-radius: 999px;
	background: radial-gradient(circle, rgba(124, 58, 237, 0.35) 0%, transparent 66%);
	pointer-events: none;
}

.mks-sat-si::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 3px;
	background: linear-gradient(180deg, var(--mks-si-accent, #7c3aed), var(--mks-si-blue), var(--mks-si-green));
}

.mks-sat-si > * {
	position: relative;
	z-index: 1;
}

.mks-sat-si-ticker {
	width: 100%;
	min-width: 0;
	overflow: hidden;
	background: transparent;
	color: #e9d5ff;
	font: inherit;
	mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.mks-sat-si-ticker:focus-visible {
	border-radius: 6px;
	outline: 2px solid #c4b5fd;
	outline-offset: 3px;
}

.mks-sat-si-ticker-track {
	display: flex;
	width: max-content;
	will-change: transform;
	animation: mks-sat-si-ticker-scroll 54s linear infinite;
}

.mks-sat-si-ticker-group {
	display: flex;
	align-items: center;
	flex: none;
	gap: 28px;
	padding-right: 28px;
}

.mks-sat-si-ticker-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0.015em;
	white-space: nowrap;
}

.mks-sat-si-ticker-item::before {
	content: "";
	flex: 0 0 6px;
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--mks-si-green);
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.mks-sat-si-ticker:hover .mks-sat-si-ticker-track,
.mks-sat-si-ticker:focus .mks-sat-si-ticker-track,
.mks-sat-si-ticker:focus-within .mks-sat-si-ticker-track {
	animation-play-state: paused;
}

@keyframes mks-sat-si-ticker-scroll {
	to {
		transform: translate3d(-50%, 0, 0);
	}
}

.mks-sat-si-head {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.mks-sat-si-content {
	display: grid;
	gap: 14px;
	min-width: 0;
}

.mks-sat-si-toggle {
	display: none;
}

.mks-sat-si-avatar {
	flex: 0 0 58px;
	display: block;
	width: 58px;
	height: 58px;
	border: 3px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	background: #1f2937;
	object-fit: cover;
	box-shadow: 0 8px 20px rgba(2, 6, 23, 0.32);
}

.mks-sat-si-guest-login {
	flex: 0 0 58px;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border: 2px solid rgba(196, 181, 253, 0.38);
	border-radius: 999px;
	background: linear-gradient(145deg, rgba(124, 58, 237, 0.3), rgba(14, 165, 233, 0.16));
	color: #ddd6fe;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(2, 6, 23, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
	transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.mks-sat-si-guest-login:hover,
.mks-sat-si-guest-login:focus-visible {
	border-color: #c4b5fd;
	background: linear-gradient(145deg, rgba(124, 58, 237, 0.48), rgba(14, 165, 233, 0.24));
	color: #ffffff;
	outline: none;
	transform: translateY(-1px);
}

.mks-sat-si-guest-login svg {
	display: block;
	width: 27px;
	height: 27px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.mks-sat-si-identity {
	flex: 1 1 auto;
	display: grid;
	gap: 3px;
	min-width: 0;
}

.mks-sat-si-kicker {
	color: #c4b5fd;
	font-size: 10px;
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.mks-sat-si-name {
	overflow: hidden;
	color: #ffffff;
	font-size: 19px;
	font-weight: 900;
	line-height: 1.15;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mks-sat-si-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	color: #86efac;
	font-size: 11px;
	font-weight: 750;
	line-height: 1.25;
}

.mks-sat-si-status i {
	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-sat-si.is-expired .mks-sat-si-status {
	color: #fecaca;
}

.mks-sat-si.is-expired .mks-sat-si-status i {
	background: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.mks-sat-si-snapshot {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
}

.mks-sat-si-snapshot > div {
	display: grid;
	gap: 4px;
	min-width: 0;
	padding: 12px;
	border: 1px solid rgba(196, 181, 253, 0.2);
	border-radius: 14px;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.06) 100%);
	box-shadow: 0 10px 22px rgba(2, 6, 23, 0.2);
}

.mks-sat-si-snapshot span {
	color: var(--mks-si-muted);
	font-size: 10px;
	font-weight: 850;
	line-height: 1.2;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.mks-sat-si-snapshot strong {
	color: #ffffff;
	font-size: 22px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0;
}

.mks-sat-si-details,
.mks-sat-si-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
}

.mks-sat-si-detail,
.mks-sat-si-stat {
	display: grid;
	gap: 4px;
	min-width: 0;
	padding: 11px 12px;
	border: 1px solid var(--mks-si-border);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
}

.mks-sat-si-detail span,
.mks-sat-si-stat span,
.mks-sat-si-score-card span,
.mks-sat-si-chart-head span,
.mks-sat-si-pie-meta > span,
.mks-sat-si-recommendation span {
	color: var(--mks-si-muted);
	font-size: 10px;
	font-weight: 850;
	line-height: 1.2;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.mks-sat-si-detail strong {
	color: #f8fafc;
	font-size: 12px;
	font-weight: 850;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.mks-sat-si-stat strong {
	color: #ffffff;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.05;
}

.mks-sat-si-score-grid {
	display: grid;
	gap: 9px;
}

.mks-sat-si-score-card {
	display: grid;
	gap: 9px;
	padding: 11px 12px;
	border: 1px solid var(--mks-si-border);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
}

.mks-sat-si-score-card > strong {
	color: #f8fafc;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.25;
	text-align: center;
}

.mks-sat-si-score-card > div {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.mks-sat-si-score-card.has-no-attempts > div,
.mks-sat-si-course-card > div {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mks-sat-si-score-card span {
	display: grid;
	gap: 4px;
	justify-items: center;
	text-align: center;
}

.mks-sat-si-score-card b {
	color: #c4b5fd;
	font-size: 18px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
}

.mks-sat-si-analytics {
	display: grid;
	gap: 9px;
	min-width: 0;
}

.mks-sat-si-chart-card {
	min-width: 0;
	padding: 12px 13px;
	border: 1px solid var(--mks-si-border);
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.06) 100%);
	box-shadow: 0 10px 24px rgba(2, 6, 23, 0.22);
}

.mks-sat-si-chart-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.mks-sat-si-chart-head > div {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.mks-sat-si-chart-head strong,
.mks-sat-si-pie-meta strong {
	overflow: hidden;
	color: #f8fafc;
	font-size: 12px;
	font-weight: 900;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mks-sat-si-chart-head b {
	flex: 0 0 auto;
	min-width: 58px;
	padding: 5px 8px;
	border-radius: 999px;
	background: rgba(196, 181, 253, 0.16);
	color: #c4b5fd;
	font-size: 15px;
	font-weight: 900;
	line-height: 1;
	text-align: center;
}

.mks-sat-si-line-chart {
	display: block;
	width: 100%;
	height: auto;
	min-height: 86px;
	overflow: visible;
}

.mks-sat-si-grid-line {
	fill: none;
	stroke: rgba(148, 163, 184, 0.22);
	stroke-linecap: round;
	stroke-width: 1;
}

.mks-sat-si-line-area {
	fill: color-mix(in srgb, var(--mks-si-accent, #7c3aed) 14%, transparent);
}

.mks-sat-si-line-stroke {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 3.2;
}

.mks-sat-si-line-stroke.is-rw {
	stroke: var(--mks-si-accent, #7c3aed);
}

.mks-sat-si-line-stroke.is-math {
	stroke: var(--mks-si-blue);
}

.mks-sat-si-line-stroke.is-full {
	stroke: #f97316;
}

.mks-sat-si-line-dot {
	fill: #111827;
	stroke-width: 2;
}

.mks-sat-si-line-dot.is-rw {
	stroke: var(--mks-si-accent, #7c3aed);
}

.mks-sat-si-line-dot.is-math {
	stroke: var(--mks-si-blue);
}

.mks-sat-si-line-dot.is-full {
	stroke: #f97316;
}

.mks-sat-si-axis-label {
	fill: #94a3b8;
	font-size: 8px;
	font-weight: 850;
	line-height: 1;
	pointer-events: none;
}

.mks-sat-si-axis-label.is-left {
	text-anchor: end;
}

.mks-sat-si-axis-label.is-right {
	text-anchor: start;
}

.mks-sat-si-trend-legend {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	margin-top: 6px;
	color: #cbd5e1;
	font-size: 10px;
	font-weight: 850;
	line-height: 1.2;
}

.mks-sat-si-trend-legend span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	white-space: nowrap;
}

.mks-sat-si-trend-legend i {
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--mks-si-accent, #7c3aed);
}

.mks-sat-si-trend-legend .is-math i {
	background: var(--mks-si-blue);
}

.mks-sat-si-trend-legend .is-full i {
	background: #f97316;
}

.mks-sat-si-empty-chart {
	display: grid;
	place-items: center;
	min-height: 72px;
	border: 1px dashed #cbd5e1;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--mks-si-muted);
	font-size: 11px;
	font-weight: 800;
	line-height: 1.3;
	text-align: center;
}

.mks-sat-si-pie-card {
	display: grid;
	grid-template-columns: 86px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
}

.mks-sat-si-donut {
	position: relative;
	width: 86px;
	height: 86px;
	border-radius: 999px;
	background:
		conic-gradient(
			var(--mks-si-accent, #7c3aed) 0 var(--mks-si-rw-stop, 0%),
			var(--mks-si-blue) var(--mks-si-rw-stop, 0%) var(--mks-si-math-stop, 0%),
			#cbd5e1 var(--mks-si-math-stop, 0%) 100%
		);
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.mks-sat-si-donut::after {
	content: "";
	position: absolute;
	inset: 17px;
	border-radius: inherit;
	background: #111827;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.mks-sat-si-donut.is-empty {
	background: conic-gradient(#e2e8f0 0 100%);
}

.mks-sat-si-donut span {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	color: #ffffff;
	font-size: 18px;
	font-weight: 900;
	line-height: 1;
}

.mks-sat-si-pie-meta {
	display: grid;
	gap: 5px;
	min-width: 0;
}

.mks-sat-si-legend {
	display: grid;
	grid-template-columns: 1fr;
	gap: 4px;
	margin-top: 4px;
}

.mks-sat-si-legend em {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-width: 0;
	min-height: 20px;
	padding-left: 10px;
	color: #cbd5e1;
	font-size: 10px;
	font-style: normal;
	font-weight: 850;
	line-height: 1.2;
	white-space: nowrap;
}

.mks-sat-si-legend em::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 6px;
	height: 6px;
	border-radius: 999px;
	transform: translateY(-50%);
}

.mks-sat-si-legend .is-rw::before {
	background: var(--mks-si-accent, #7c3aed);
}

.mks-sat-si-legend .is-math::before {
	background: var(--mks-si-blue);
}

.mks-sat-si-legend .is-full::before {
	background: #f97316;
}

.mks-sat-si-legend b {
	margin-left: auto;
	color: #ffffff;
	font-size: 11px;
	font-weight: 900;
}

.mks-sat-si-recommendation {
	display: grid;
	gap: 4px;
	padding: 12px 13px;
	border: 1px solid rgba(196, 181, 253, 0.2);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
}

.mks-sat-si-recommendation strong {
	color: #f8fafc;
	font-size: 13px;
	font-weight: 850;
	line-height: 1.35;
}

.mks-sat-si-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 9px 15px;
	border: 1px solid color-mix(in srgb, var(--mks-si-accent, #7c3aed) 72%, #0f172a);
	border-radius: 12px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--mks-si-accent, #7c3aed) 78%, #ffffff), var(--mks-si-accent, #7c3aed));
	color: #ffffff;
	font-size: 13px;
	font-weight: 850;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 10px 20px color-mix(in srgb, var(--mks-si-accent, #7c3aed) 20%, transparent);
	transition: transform 0.16s ease, filter 0.16s ease;
}

.mks-sat-si-button:hover,
.mks-sat-si-button:focus {
	color: #ffffff;
	filter: brightness(0.96) saturate(1.08);
	transform: translateY(-1px);
}

.mks-sat-si.is-logged-out .mks-sat-si-status {
	color: #64748b;
}

.mks-sat-si.is-logged-out .mks-sat-si-status i {
	background: #94a3b8;
	box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.16);
}

@media (max-width: 782px) {
	.mks-sat-si.has-mobile-toggle {
		gap: 0;
		padding: 14px 16px;
		border-radius: min(var(--mks-si-radius, 22px), 18px);
	}

	.mks-sat-si.has-mobile-toggle .mks-sat-si-ticker {
		display: none;
	}

	.mks-sat-si.has-mobile-toggle.is-mobile-expanded .mks-sat-si-ticker {
		display: block;
		margin-bottom: 14px;
	}

	.mks-sat-si-toggle {
		position: relative;
		flex: 0 0 42px;
		display: grid;
		place-items: center;
		width: 42px;
		height: 42px;
		margin: 0 0 0 auto;
		padding: 0;
		border: 1px solid rgba(196, 181, 253, 0.42);
		border-radius: 10px;
		background: rgba(255, 255, 255, 0.1);
		color: #ffffff;
		box-shadow: 0 8px 18px rgba(2, 6, 23, 0.22);
		cursor: pointer;
		transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
	}

	.mks-sat-si-toggle:hover,
	.mks-sat-si-toggle:focus-visible {
		border-color: #c4b5fd;
		background: rgba(124, 58, 237, 0.28);
		outline: none;
	}

	.mks-sat-si-toggle:active {
		transform: scale(0.96);
	}

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

	.mks-sat-si-toggle span {
		position: relative;
	}

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

	.mks-sat-si.is-mobile-expanded .mks-sat-si-toggle span::after {
		opacity: 0;
		transform: rotate(0deg);
	}

	.mks-sat-si.has-mobile-toggle .mks-sat-si-content {
		display: none;
	}

	.mks-sat-si.has-mobile-toggle.is-mobile-expanded .mks-sat-si-content {
		display: grid;
		margin-top: 14px;
		padding-top: 14px;
		border-top: 1px solid rgba(196, 181, 253, 0.2);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mks-sat-si-ticker {
		mask-image: none;
		-webkit-mask-image: none;
	}

	.mks-sat-si-ticker-track {
		width: auto;
		animation: none;
	}

	.mks-sat-si-ticker-group {
		width: 100%;
		padding-right: 0;
		overflow-x: auto;
		scrollbar-width: thin;
	}

	.mks-sat-si-ticker-group[aria-hidden="true"] {
		display: none;
	}
}

@media (max-width: 420px) {
	.mks-sat-si {
		padding: 15px;
	}

	.mks-sat-si.has-mobile-toggle {
		padding: 13px 14px;
	}

	.mks-sat-si-avatar {
		flex-basis: 54px;
		width: 54px;
		height: 54px;
	}

	.mks-sat-si-guest-login {
		flex-basis: 54px;
		width: 54px;
		height: 54px;
	}

	.mks-sat-si-name {
		font-size: 17px;
	}

	.mks-sat-si-details,
	.mks-sat-si-stats {
		grid-template-columns: 1fr;
	}
}
