/* WingSlide Student Portal — light theme (screenshot reference) */

body.cas-student-portal-light,
body.cas-student-portal-light.cas-lms-page {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: #334155;
	background-color: #f8fafc !important;
	-webkit-font-smoothing: antialiased;
}

body.cas-student-portal-light .cas-lms-main {
	padding: 0;
	margin: 0;
	max-width: none;
}

/* Hide theme header/footer when Blocksy chrome still loads (e.g. new CAS pages). */
body.cas-student-portal-light #header.ct-header,
body.cas-student-portal-light header.ct-header,
body.cas-student-portal-light #main-container > .hero-section,
body.cas-student-portal-light footer.ct-footer {
	display: none !important;
}

body.cas-student-portal-light a {
	text-decoration: none;
}

/* ── Page shell ── */
.sp-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: #f8fafc;
}

.sp-main {
	flex: 1;
	padding: 0 0 48px;
}

.sp-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px;
	width: 100%;
	box-sizing: border-box;
}

/* ── Header ── */
.sp-header {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 88px;
	padding: 14px 40px;
	background: #ffffff;
	border-bottom: 1px solid #e8edf2;
	flex-shrink: 0;
	position: relative;
	z-index: 100;
}

.sp-header__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.sp-header__logo img {
	display: block;
	height: 52px;
	width: auto;
	max-width: 220px;
	object-fit: contain;
	object-position: left center;
}

.sp-header__nav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	margin-left: 24px;
	flex: 1;
}

.sp-header__nav--public {
	margin-left: auto;
	gap: 28px;
}

.sp-header__nav-link {
	display: inline-block;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 500;
	color: #64748b;
	border-radius: 999px;
	line-height: 1.4;
	transition: color 0.15s, background 0.15s;
}

.sp-header__nav-link:hover {
	color: #1e293b;
}

.sp-header__nav-link.is-active {
	background: #e0f2fe;
	color: #0284c7;
	font-weight: 600;
}

.sp-header__right {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
	flex-shrink: 0;
}

.sp-header__admin-btn {
	margin-left: auto;
	padding: 8px 18px;
	font-size: 14px;
	font-weight: 600;
	color: #00a3e0;
	border: 1px solid #00a3e0;
	border-radius: 8px;
}

.sp-user-pill {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 14px 6px 6px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
}

.sp-user-pill__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #00a3e0;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
}

.sp-user-pill__name {
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
	white-space: nowrap;
}

.sp-menu-btn {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 0;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	cursor: pointer;
	flex-shrink: 0;
}

.sp-menu-btn span {
	display: block;
	width: 18px;
	height: 2px;
	background: #64748b;
	border-radius: 1px;
	transition: transform 0.2s, opacity 0.2s;
}

.sp-menu-btn.is-open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.sp-menu-btn.is-open span:nth-child(2) {
	opacity: 0;
}

.sp-menu-btn.is-open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ── Drawer ── */
.sp-drawer-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.35);
	z-index: 200;
}

.sp-drawer-overlay.is-open {
	display: block;
}

.sp-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: 280px;
	max-width: 85vw;
	height: 100vh;
	background: #ffffff;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
	z-index: 201;
	transform: translateX(100%);
	transition: transform 0.28s ease;
	padding: 88px 0 24px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.sp-drawer.is-open {
	transform: translateX(0);
}

.sp-drawer__link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 24px;
	font-size: 15px;
	font-weight: 500;
	color: #1e293b;
}

.sp-drawer__link:hover {
	background: #f8fafc;
}

.sp-drawer__link.is-active {
	background: #ecfdf5;
	color: #16a34a;
}

.sp-drawer__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
}

.sp-drawer__icon svg {
	width: 28px;
	height: 28px;
}

.sp-drawer__link--logout {
	margin-top: auto;
	color: #ef4444;
	font-weight: 600;
}

/* ── Page hero (centered titles) ── */
.sp-page-hero {
	text-align: center;
	padding: 48px 0 32px;
}

.sp-page-hero__title {
	margin: 0 0 10px;
	font-size: 32px;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.sp-page-hero__sub {
	margin: 0;
	font-size: 15px;
	color: #64748b;
	line-height: 1.5;
}

.sp-page-hero__sub--solo {
	text-align: center;
	padding: 24px 0;
}

/* ── Welcome banner (dashboard) ── */
.sp-welcome {
	margin: 32px 0 40px;
	padding: 40px 48px;
	border-radius: 16px;
	background: linear-gradient(135deg, #0077b6 0%, #00a3e0 45%, #48cae4 100%);
	position: relative;
	overflow: hidden;
}

.sp-welcome::after {
	content: '';
	position: absolute;
	right: -40px;
	top: -40px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
}

.sp-welcome h2 {
	margin: 0 0 8px;
	font-size: 28px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.25;
	position: relative;
	z-index: 1;
}

.sp-welcome p {
	margin: 0;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.92);
	position: relative;
	z-index: 1;
}

/* ── Section titles ── */
.sp-section-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 20px;
	font-size: 20px;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.3;
}

.sp-section-title::before {
	content: '';
	display: block;
	width: 4px;
	height: 24px;
	background: #22c55e;
	border-radius: 2px;
	flex-shrink: 0;
}

.sp-section-title--dual::before {
	width: 8px;
	background: linear-gradient(90deg, #00a3e0 0%, #00a3e0 50%, #22c55e 50%, #22c55e 100%);
	border-radius: 2px;
}

/* ── Stat cards row ── */
.sp-stat-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 40px;
}

.sp-stat-card {
	background: #ffffff;
	border-radius: 8px;
	padding: 20px 24px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
	border-top: 4px solid #22c55e;
}

.sp-stat-card--moderate {
	border-top-color: #facc15;
}

.sp-stat-card--difficult {
	border-top-color: #22c55e;
}

.sp-stat-card--easy {
	border-top-color: #2dd4bf;
}

.sp-stat-card__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #64748b;
	margin-bottom: 8px;
}

.sp-stat-card__value {
	font-size: 36px;
	font-weight: 800;
	color: #1e293b;
	line-height: 1;
}

/* ── Difficulty cards ── */
.sp-diff-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 40px;
}

.sp-diff-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: #ffffff;
	border-radius: 20px;
	padding: 32px 24px 28px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
	border-top: 5px solid #4ade80;
	transition: transform 0.15s, box-shadow 0.15s;
	color: inherit;
}

.sp-diff-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px -4px rgba(0, 0, 0, 0.1);
}

.sp-diff-card--moderate {
	border-top-color: #facc15;
}

.sp-diff-card--difficult {
	border-top-color: #f87171;
}

.sp-diff-card__sphere {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	margin-bottom: 16px;
	box-shadow: inset -4px -4px 12px rgba(0, 0, 0, 0.15), inset 4px 4px 12px rgba(255, 255, 255, 0.4);
}

.sp-diff-card__sphere--easy {
	background: radial-gradient(circle at 35% 30%, #86efac, #22c55e);
}

.sp-diff-card__sphere--moderate {
	background: radial-gradient(circle at 35% 30%, #fde68a, #eab308);
}

.sp-diff-card__sphere--difficult {
	background: radial-gradient(circle at 35% 30%, #fca5a5, #ef4444);
}

.sp-diff-card h3 {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 700;
	color: #1e293b;
}

.sp-diff-card p {
	margin: 0 0 16px;
	font-size: 13px;
	color: #64748b;
	line-height: 1.55;
	flex: 1;
}

.sp-diff-card__badge {
	display: inline-block;
	padding: 6px 16px;
	margin-bottom: 20px;
	font-size: 13px;
	font-weight: 600;
	color: #0284c7;
	background: #e0f2fe;
	border-radius: 999px;
}

.sp-diff-card .sp-btn {
	width: 100%;
	justify-content: center;
}

/* ── Exam rules box ── */
.sp-rules-box {
	background: #e0f2fe;
	border-radius: 15px;
	padding: 28px 32px 24px;
	text-align: center;
	position: relative;
	overflow: hidden;
	margin-bottom: 24px;
}

.sp-rules-box::after {
	content: '';
	position: absolute;
	right: -30px;
	bottom: -30px;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: rgba(0, 163, 224, 0.12);
}

.sp-rules-box p {
	margin: 0;
	font-size: 14px;
	color: #64748b;
	line-height: 1.6;
	position: relative;
	z-index: 1;
}

.sp-rules-box strong {
	color: #1e293b;
}

.sp-rules-box__books {
	margin-top: 16px;
	font-size: 28px;
	line-height: 1;
	position: relative;
	z-index: 1;
}

/* ── Course cards ── */
.sp-course-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sp-course-card {
	display: flex;
	align-items: flex-start;
	gap: 0;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 24px 28px;
	color: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.sp-course-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sp-course-card__body {
	flex: 1;
	min-width: 0;
}

.sp-course-card__letter {
	font-size: 14px;
	color: #64748b;
	margin-bottom: 4px;
}

.sp-course-card__title {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 700;
	color: #1e293b;
}

.sp-course-card__meta {
	margin: 0;
	font-size: 14px;
	color: #64748b;
}

.sp-course-card__badge {
	display: inline-block;
	margin-top: 12px;
	padding: 4px 14px;
	font-size: 12px;
	font-weight: 600;
	color: #0284c7;
	background: #e0f2fe;
	border-radius: 999px;
}

.sp-course-card__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #00a3e0;
	color: #ffffff;
	font-size: 16px;
	flex-shrink: 0;
	align-self: flex-end;
	margin-left: 16px;
}

/* ── Profile card ── */
.sp-profile-card {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	margin-bottom: 24px;
	position: relative;
}

.sp-profile-card__header {
	background: #00a3e0;
	padding: 24px 28px;
}

.sp-profile-card__header h2 {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 700;
	color: #ffffff;
}

.sp-profile-card__header p {
	margin: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.9);
}

.sp-profile-card__body {
	padding: 0;
	position: relative;
}

.sp-profile-card__body::after {
	content: '';
	position: absolute;
	right: -40px;
	bottom: -40px;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: rgba(0, 163, 224, 0.06);
	pointer-events: none;
}

.sp-profile-table {
	width: 100%;
	border-collapse: collapse;
}

.sp-profile-table tr {
	border-bottom: 1px solid #f1f5f9;
}

.sp-profile-table tr:last-child {
	border-bottom: none;
}

.sp-profile-table td {
	padding: 16px 28px;
	font-size: 14px;
	color: #334155;
	vertical-align: top;
}

.sp-profile-table td:first-child {
	font-weight: 700;
	color: #1e293b;
	width: 42%;
}

.sp-profile-card__books {
	position: absolute;
	left: 20px;
	bottom: 16px;
	font-size: 22px;
	z-index: 1;
}

.sp-profile-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 100%;
}

.sp-content-narrow {
	max-width: 720px;
	margin: 0 auto;
}

/* ── Empty state card ── */
.sp-empty-card {
	background: #ffffff;
	border-radius: 20px;
	padding: 56px 40px;
	text-align: center;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06);
	margin: 8px 0 24px;
}

.sp-empty-card__icon {
	font-size: 24px;
	color: #94a3b8;
	margin-bottom: 12px;
	line-height: 1;
}

.sp-empty-card p {
	margin: 0 0 24px;
	font-size: 15px;
	color: #64748b;
	line-height: 1.5;
}

/* ── Data table ── */
.sp-table-wrap {
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	border: 1px solid #e2e8f0;
	margin-bottom: 32px;
}

.sp-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.sp-table thead {
	background: #1e293b;
}

.sp-table thead th {
	padding: 14px 20px;
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #ffffff;
}

.sp-table tbody td {
	padding: 16px 20px;
	color: #334155;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: top;
}

.sp-table tbody tr:last-child td {
	border-bottom: none;
}

.sp-table tbody td strong {
	color: #1e293b;
	font-weight: 700;
}

.sp-table tbody td small {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: #94a3b8;
}

/* ── Buttons ── */
.sp-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 24px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	line-height: 1.4;
	transition: background 0.15s, opacity 0.15s;
	box-sizing: border-box;
}

.sp-btn--primary {
	background: #00a3e0;
	color: #ffffff;
}

.sp-btn--primary:hover {
	background: #0090c8;
	color: #ffffff;
}

.sp-btn--outline {
	background: #ffffff;
	color: #1e293b;
	border: 1px solid #e2e8f0;
}

.sp-btn--outline:hover {
	background: #f8fafc;
	color: #1e293b;
}

.sp-empty-card .sp-btn--pill {
	width: auto;
	min-width: 260px;
	max-width: 70%;
	margin: 0 auto;
}

.sp-btn--pill {
	border-radius: 999px;
	padding: 14px 32px;
	font-size: 15px;
	justify-content: center;
}

.sp-btn--sm {
	padding: 8px 16px;
	font-size: 13px;
}

.sp-profile-actions .sp-btn {
	width: 100%;
	justify-content: center;
	padding: 14px 24px;
	border-radius: 8px;
}

/* ── Badges ── */
.sp-badge {
	display: inline-block;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 999px;
}

.sp-badge--easy {
	background: #dcfce7;
	color: #16a34a;
}

.sp-badge--moderate {
	background: #fef9c3;
	color: #ca8a04;
}

.sp-badge--difficult {
	background: #fee2e2;
	color: #dc2626;
}

.sp-badge--primary {
	background: #e0f2fe;
	color: #0284c7;
}

/* ── Footer ── */
.sp-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	padding: 28px 40px;
	background: #ffffff;
	border-top: 1px solid #e8edf2;
	margin-top: auto;
}

.sp-footer__brand {
	display: flex;
	align-items: center;
}

.sp-footer__logo {
	display: flex;
	align-items: center;
}

.sp-footer__logo img {
	display: block;
	height: 52px;
	width: auto;
	max-width: 220px;
	min-width: 160px;
	object-fit: contain;
	object-position: left center;
	filter: drop-shadow(0 2px 6px rgba(0, 160, 227, 0.1));
}

.sp-footer__nav {
	display: flex;
	align-items: center;
	gap: 24px;
}

.sp-footer__nav a {
	font-size: 13px;
	color: #64748b;
}

.sp-footer__nav a:hover {
	color: #1e293b;
}

.sp-footer__copy {
	margin: 0;
	font-size: 12px;
	color: #94a3b8;
}

.sp-footer--hidden {
	display: none;
}

/* ── Exam mode: logo-only header ── */
.sp-page--exam .sp-header {
	justify-content: flex-start;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
	.sp-header__nav {
		display: none;
	}

	.sp-header {
		padding: 14px 24px;
	}
}

@media (max-width: 768px) {
	.sp-page-hero {
		padding: 32px 0 24px;
	}

	.sp-page-hero__title {
		font-size: 26px;
	}

	.sp-welcome {
		padding: 28px 24px;
		margin: 24px 0 32px;
	}

	.sp-welcome h2 {
		font-size: 22px;
	}

	.sp-stat-row,
	.sp-diff-grid {
		grid-template-columns: 1fr;
	}

	.sp-footer {
		flex-direction: column;
		align-items: flex-start;
		padding: 24px;
	}

	.sp-footer__nav {
		flex-wrap: wrap;
		gap: 16px;
	}

	.sp-user-pill__name {
		display: none;
	}

	.sp-empty-card {
		padding: 40px 24px;
	}
}

@media (max-width: 480px) {
	.sp-container {
		padding: 0 16px;
	}

	.sp-header {
		padding: 12px 16px;
		min-height: 72px;
	}

	.sp-header__logo img {
		height: 40px;
	}

	.sp-footer__logo img {
		height: 44px;
		min-width: 140px;
	}
}

.sp-recording-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 32px;
}

.sp-recording-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.sp-recording-card h3 {
	margin: 0 0 6px;
	font-size: 18px;
	color: #1e293b;
}

.sp-recording-card__topic,
.sp-recording-card__date {
	margin: 0 0 4px;
	font-size: 13px;
	color: #64748b;
}

.sp-recording-player {
	margin-top: 16px;
	border-radius: 10px;
	overflow: hidden;
	background: #0f172a;
}

.sp-recording-player video {
	display: block;
	width: 100%;
	max-height: 420px;
}

.sp-recording-player__error {
	margin: 12px 16px 0;
	padding: 10px 12px;
	font-size: 13px;
	color: #fecaca;
	background: rgba(127, 29, 29, 0.35);
	border-radius: 8px;
}

.sp-live-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 28px;
}

.sp-live-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.sp-live-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.sp-live-card__head h3 {
	margin: 0;
	font-size: 18px;
	color: #1e293b;
}

.sp-live-card__batch,
.sp-live-card__time {
	margin: 0 0 6px;
	font-size: 13px;
	color: #64748b;
}

.sp-live-card__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 14px;
}

.sp-live-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.sp-live-badge--live {
	background: #fee2e2;
	color: #b91c1c;
}

.sp-live-badge--upcoming {
	background: #dbeafe;
	color: #1d4ed8;
}

.sp-live-badge--ended {
	background: #e2e8f0;
	color: #475569;
}

.sp-live-watch {
	margin-bottom: 32px;
}

.sp-live-watch__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.sp-live-watch__back {
	font-size: 14px;
	color: #2563eb;
	text-decoration: none;
}

.sp-live-watch__title {
	margin: 0 0 8px;
	font-size: 24px;
	color: #0f172a;
}

.sp-live-watch__meta {
	margin: 0 0 6px;
	font-size: 13px;
	color: #64748b;
}

.sp-live-watch__description {
	margin-top: 20px;
	font-size: 14px;
	color: #334155;
	line-height: 1.6;
}

.sp-live-player {
	margin-top: 16px;
	border-radius: 12px;
	overflow: hidden;
	background: #0f172a;
}

.sp-live-player__frame {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
}

.sp-live-player__frame iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.sp-live-footnote {
	margin-top: 8px;
	font-size: 13px;
}

.sp-chart-card {
	background: #ffffff;
	border-radius: 12px;
	padding: 24px 28px;
	margin-bottom: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	border: 1px solid #e2e8f0;
}

.sp-chart-card .sp-section-title {
	margin-bottom: 16px;
}

/* ── Icon pill nav (secondary tabs) ── */
.cas-ws-pill-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
}

.cas-ws-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 600;
	color: #64748b !important;
	text-decoration: none !important;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.cas-ws-pill:hover {
	border-color: #00a3e0;
	color: #1e293b !important;
}

.cas-ws-pill.is-active {
	background: #e0f2fe;
	border-color: #00a3e0;
	color: #0284c7 !important;
}

.cas-ws-pill svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.cas-ws-pill:not(.is-active) svg [stroke] {
	stroke: #94a3b8;
}

.cas-ws-pill.is-active svg [stroke] {
	stroke: #00a3e0;
}

/* ── Assessment result page ── */
.sp-result {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
	padding: 8px 0 24px;
}

.sp-result__title {
	margin: 0 0 8px;
	font-size: 32px;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.sp-result__level {
	margin: 0 0 24px;
	font-size: 16px;
	font-weight: 500;
	color: #00a3e0;
}

.sp-result__score {
	margin: 0 0 12px;
	font-size: 56px;
	font-weight: 800;
	color: #22c55e;
	line-height: 1;
	letter-spacing: -0.03em;
}

.sp-result__score--fail {
	color: #ef4444;
}

.sp-result__message {
	margin: 0 0 28px;
	font-size: 18px;
	font-weight: 700;
	color: #1e293b;
}

.sp-result-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 24px;
}

.sp-result-stat {
	padding: 18px 12px;
	text-align: center;
	border-right: 1px solid #e2e8f0;
}

.sp-result-stat:last-child {
	border-right: none;
}

.sp-result-stat__val {
	display: block;
	font-size: 20px;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.2;
}

.sp-result-stat__lbl {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 500;
	color: #94a3b8;
}

.sp-alert {
	padding: 14px 18px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 24px;
	text-align: center;
}

.sp-alert--success {
	background: #dcfce7;
	border: 1px solid #86efac;
	color: #16a34a;
}

.sp-result-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sp-result-actions .sp-btn {
	width: 100%;
	justify-content: center;
	padding: 14px 24px;
	border-radius: 10px;
	font-size: 15px;
}

@media (max-width: 600px) {
	.sp-result-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.sp-result-stat:nth-child(2) {
		border-right: none;
	}

	.sp-result-stat:nth-child(1),
	.sp-result-stat:nth-child(2) {
		border-bottom: 1px solid #e2e8f0;
	}

	.sp-result__score {
		font-size: 44px;
	}

	.sp-result__title {
		font-size: 26px;
	}

	.cas-ws-pill-nav {
		gap: 6px;
	}

	.cas-ws-pill {
		padding: 8px 12px;
		font-size: 12px;
	}
}
