.page {
	display: grid;
	gap: 1.1rem;
}

.heroCard,
.classroomCard,
.emptyState {
	background: var(--surface-panel);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-3xl);
	box-shadow: var(--shadow-soft);
	padding: 1.1rem;
}

.heroCard {
	display: grid;
	gap: 1rem;
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--surface-panel) 86%, var(--surface-info) 14%), var(--surface-panel)),
		var(--surface-panel);

	@include respond(desktop-md) {
		grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
		align-items: start;
	}
}

.heroCopy {
	display: grid;
	gap: 0.5rem;

	h1 {
		font-size: clamp(1.45rem, 2vw, 2.1rem);
		line-height: 1.06;
		max-width: 18ch;
	}

	p:last-child {
		color: var(--text-muted);
		max-width: 58ch;
	}
}

.eyebrow {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--info);
}

.heroStats {
	display: grid;
	gap: 0.8rem;
}

.statCard {
	display: grid;
	gap: 0.3rem;
	padding: 0.95rem;
	border-radius: var(--radius-lg);
	background: var(--surface-panel-strong);
	border: 1px solid var(--border-soft);

	span {
		font-size: 0.8rem;
		font-weight: 700;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: var(--text-subtle);
	}

	strong {
		font-size: 1.55rem;
		line-height: 1;
	}

	small {
		color: var(--text-muted);
	}
}

.grid {
	display: grid;
	gap: 0.9rem;

	@media (min-width: 1100px) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.classroomCard {
	display: grid;
	gap: 0.9rem;
	background: var(--surface-panel-strong);
	border-color: var(--border-soft);
}

.cardHeader {
	display: flex;
	justify-content: space-between;
	align-items: start;
	gap: 0.8rem;

	h2 {
		font-size: 1.08rem;
		margin-bottom: 0.18rem;
	}

	p {
		color: var(--text-muted);
	}
}

.codePill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.4rem 0.66rem;
	border-radius: var(--radius-pill);
	background: var(--surface-soft);
	color: var(--text-muted);
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
}

.metaRow {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;

	span {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 0.42rem 0.68rem;
		border-radius: var(--radius-pill);
		background: color-mix(in srgb, var(--surface-info-soft-tint) 70%, white 30%);
		color: var(--info);
		font-size: 0.8rem;
		font-weight: 600;
	}
}

.reviewRow {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.8rem;
	padding-top: 0.2rem;

	strong {
		color: var(--text-main);
	}
}

.manageLink {
	padding: 0.66rem 0.9rem;
	border-radius: var(--radius-pill);
	background: var(--surface-info);
	color: var(--info);
	font-weight: 600;
	border: 1px solid var(--border-info-soft);

	&:hover {
		text-decoration: none;
		background: var(--surface-info-tint);
	}
}

.emptyState {
	color: var(--text-muted);
	border-style: dashed;
	background: var(--surface-soft);
}

.classroomDetailMetaRow {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.8rem;
	flex-wrap: wrap;
}

.classroomDetailLayout {
	display: grid;
	gap: 1rem;

	@media (min-width: 1100px) {
		grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
		align-items: start;
	}
}

.detailPanel,
.studentCard,
.selectedStudentCard,
.redoAssignmentCard {
	background: var(--surface-panel);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-3xl);
	box-shadow: var(--shadow-soft);
	padding: 1rem;
}

.detailPanel {
	display: grid;
	gap: 1rem;
}

.detailPanelHeader {
	display: grid;
	gap: 0.35rem;

	h2 {
		font-size: 1.15rem;
	}

	p:last-child {
		color: var(--text-muted);
	}
}

.studentList,
.redoAssignmentList {
	display: grid;
	gap: 0.85rem;
}

.studentCard {
	display: grid;
	gap: 0.75rem;
	background: var(--surface-panel-strong);
	border-color: var(--border-soft);
	transition:
		border-color 140ms ease,
		transform 140ms ease,
		box-shadow 140ms ease;

	&:hover {
		text-decoration: none;
		transform: translateY(-1px);
		border-color: var(--border-info-soft);
	}
}

.studentCardSelected {
	border-color: var(--border-info-soft);
	background: color-mix(in srgb, var(--surface-info) 12%, var(--surface-panel-strong) 88%);
}

.studentCardEndangered1 {
	border-color: color-mix(in srgb, var(--danger) 36%, var(--border-soft) 64%);
	background: color-mix(in srgb, var(--surface-danger) 22%, var(--surface-panel-strong) 78%);
}

.studentCardEndangered2 {
	border-color: color-mix(in srgb, var(--warning) 30%, var(--border-soft) 70%);
	background: color-mix(in srgb, var(--surface-warning) 18%, var(--surface-panel-strong) 82%);
}

.studentCardEndangered3 {
	border-color: color-mix(in srgb, var(--info) 22%, var(--border-soft) 78%);
	background: color-mix(in srgb, var(--surface-info) 12%, var(--surface-panel-strong) 88%);
}

.studentCardHeader {
	display: flex;
	align-items: center;
	gap: 0.85rem;

	h3 {
		font-size: 1rem;
		margin-bottom: 0.15rem;
	}

	p {
		color: var(--text-muted);
		word-break: break-word;
	}
}

.studentAvatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 999px;
	background: var(--surface-info);
	color: var(--info);
	font-weight: 700;
	flex-shrink: 0;
}

.studentNote {
	color: var(--text-muted);
	font-size: 0.95rem;
}

.studentScoreLabel {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--text-subtle);
}

.selectedStudentCard {
	display: grid;
	gap: 0.45rem;
	background: color-mix(in srgb, var(--surface-info) 12%, var(--surface-panel) 88%);
	border-color: var(--border-info-soft);

	p,
	small {
		color: var(--text-muted);
	}
}

.statusPill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.42rem 0.72rem;
	border-radius: var(--radius-pill);
	font-size: 0.8rem;
	font-weight: 700;
	white-space: nowrap;
	border: 1px solid transparent;
}

.statusPillReview {
	background: color-mix(in srgb, var(--surface-warning) 24%, white 76%);
	color: var(--warning-strong);
	border-color: color-mix(in srgb, var(--warning) 26%, var(--border-soft) 74%);
}

.statusPillProgress {
	background: color-mix(in srgb, var(--surface-info) 24%, white 76%);
	color: var(--info);
	border-color: color-mix(in srgb, var(--info) 26%, var(--border-soft) 74%);
}

.statusPillMuted {
	background: var(--surface-soft);
	color: var(--text-muted);
	border-color: var(--border-soft);
}

.statusPillSuccess {
	background: color-mix(in srgb, var(--surface-success) 20%, white 80%);
	color: var(--success-strong);
	border-color: color-mix(in srgb, var(--success) 24%, var(--border-soft) 76%);
}

.redoAssignmentCard {
	display: grid;
	gap: 0.9rem;
	background: var(--surface-panel-strong);
	border-color: var(--border-soft);
}
