.teacherPage {
	display: grid;
	gap: 1.15rem;
}

.heroCard,
.sectionCard {
	background: var(--surface-panel);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-3xl);
	box-shadow: var(--shadow-soft);
	padding: 1.2rem;
	min-width: 0;

	@include respond(desktop-sm) {
		padding: 1.35rem;
	}
}

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

	@include respond(desktop-md) {
		grid-template-columns: minmax(0, 1.28fr) minmax(18rem, 0.92fr);
		align-items: start;
	}
}

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

.heroSummary {
	display: grid;
	gap: 0.9rem;
	min-width: 0;

	h1 {
		font-size: clamp(1.5rem, 2vw, 2.2rem);
		line-height: 1.05;
		max-width: 18ch;
	}
}

.heroDescription {
	color: var(--text-muted);
	max-width: 58ch;
	line-height: 1.55;
}


.heroActions {
	display: grid;
	gap: 0.8rem;

	@include respond(compact) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.heroAction {
	display: grid;
	gap: 0.3rem;
	min-width: 0;
	padding: 0.95rem 1rem;
	border-radius: var(--radius-lg);
	border: 1px solid var(--border-soft);
	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		transform 160ms ease;

	strong,
	span {
		overflow-wrap: anywhere;
	}

	strong {
		font-size: 0.98rem;
	}

	span {
		font-size: 0.9rem;
		color: var(--text-muted);
	}

	&:hover {
		text-decoration: none;
		transform: translateY(-1px);
	}
}


.heroActionPrimary {
	background: linear-gradient(135deg, color-mix(in srgb, var(--surface-info) 82%, white 18%), var(--surface-info));
	border-color: var(--border-info-emphasis);

	strong {
		color: var(--info);
	}

	span {
		color: color-mix(in srgb, var(--info) 70%, var(--text-muted) 30%);
	}

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

	&:focus-visible {
		outline: 2px solid var(--border-info-strong);
		outline-offset: 2px;
	}
}


.heroActionSecondary {
	background: var(--surface-panel-strong);
	border-color: var(--border-soft);

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

	&:hover {
		background: var(--surface-soft);
		border-color: color-mix(in srgb, var(--border-soft) 72%, var(--info) 28%);
	}
}

.statCardsGrid {
	display: grid;
	gap: 1rem;
	min-width: 0;
}

.statCardsGrid {
	@include respond(desktop-md) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.reviewQueueList,
.assignmentList {
	display: grid;
	gap: 1rem;
	min-width: 0;
}


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

.assignmentList {
	@media (min-width: 1680px) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.statCard {
	padding: 1.05rem;
	border-radius: var(--radius-lg);
	background: linear-gradient(180deg, color-mix(in srgb, var(--surface-panel-strong) 88%, white 12%), var(--surface-panel-strong));
	border: 1px solid var(--border-soft);
	display: grid;
	gap: 0.55rem;
	align-content: start;
	min-height: 8.8rem;

	p {
		color: var(--text-muted);
		font-size: 0.88rem;
		line-height: 1.45;
	}

	@include respond(desktop-md) {
		min-height: 9.2rem;
	}
}

.statValue {
	font-size: 1.7rem;
	line-height: 1;
	letter-spacing: -0.02em;

	@include respond(desktop-md) {
		font-size: 1.76rem;
	}

	@media (min-width: 1280px) {
		font-size: 1.82rem;
	}
}

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

.sectionHeader {
	display: grid;
	gap: 0.4rem;
	margin-bottom: 1.1rem;

	h2 {
		font-size: 1.1rem;
	}

	p {
		color: var(--text-muted);
		max-width: 62ch;
		line-height: 1.5;
	}
}

.listCard,
.assignmentCard {
	display: grid;
	gap: 0.95rem;
	padding: 1.05rem;
	border-radius: var(--radius-lg);
	border: 1px solid var(--border-soft);
	background: linear-gradient(180deg, color-mix(in srgb, var(--surface-panel-strong) 86%, white 14%), var(--surface-panel-strong));
	min-width: 0;
	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		transform 160ms ease,
		box-shadow 160ms ease;
}

.listCard {
	grid-template-columns: minmax(0, 1fr);
	overflow: hidden;

	@media (min-width: 760px) {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr) auto;
		align-items: center;
	}

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

.detailBlock {
	display: grid;
	gap: 0.18rem;
	min-width: 0;
}

.detailKicker {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-subtle);
}

.detailValue {
	color: var(--text-muted);
	overflow-wrap: anywhere;
}

.listLead {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.8rem;
	align-items: center;
	min-width: 0;
}

.listDetails {
	display: grid;
	gap: 0.2rem;
	align-content: center;

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

.avatar {
	width: 2.4rem;
	height: 2.4rem;
	display: grid;
	place-items: center;
	border-radius: var(--radius-pill);
	background: var(--surface-info);
	color: var(--info);
	font-weight: 700;
	font-size: 0.82rem;
	flex-shrink: 0;
}

.itemCopy,
.assignmentCopy {
	display: grid;
	gap: 0.18rem;
	min-width: 0;

	strong,
	p,
	small {
		overflow-wrap: anywhere;
	}

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

.itemMeta {
	display: grid;
	gap: 0.35rem;
	justify-items: start;
	text-align: left;

	@media (min-width: 760px) {
		justify-items: end;
		text-align: right;
	}

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

.emptyState {
	padding: 1rem;
	border-radius: var(--radius-md);
	border: 1px dashed var(--border-soft);
	background: var(--surface-soft);
	color: var(--text-muted);
}

.assignmentMeta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding-top: 0.1rem;
}

.assignmentCard {
	align-content: start;
}

.assignmentCard {
	grid-template-columns: minmax(0, 1fr);
}

.assignmentCard {
	&:hover {
		border-color: color-mix(in srgb, var(--border-soft) 74%, var(--info) 26%);
		box-shadow: var(--shadow-soft);
	}
}

.assignmentHeader {
	display: flex;
	justify-content: space-between;
	align-items: start;
	gap: 0.75rem;
	padding-bottom: 0.1rem;
}

.statusPill,
.metaPill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.38rem 0.62rem;
	border-radius: var(--radius-pill);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	white-space: nowrap;
}

.statusPill {
	text-transform: uppercase;
	border: 1px solid transparent;
}

.metaPill {
	background: var(--surface-soft);
	color: var(--text-muted);
	border: 1px solid var(--border-soft);
	justify-content: flex-start;
}

.statusToneReview {
	background: var(--surface-warning-tint);
	color: var(--warning-text);
	border-color: var(--border-info-strong);
}

.statusToneProgress {
	background: var(--surface-info-soft-tint);
	color: var(--info);
	border-color: var(--border-info-strong);
}

.statusToneDraft {
	background: color-mix(in srgb, var(--surface-soft) 84%, white 16%);
	color: var(--text-muted);
	border-color: var(--border-soft);
}

.statusToneLive {
	background: var(--surface-success-tint);
	color: var(--success-text);
	border-color: var(--border-success-soft);
}

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

.assignmentLink {
	justify-self: start;
	padding: 0.68rem 0.92rem;
	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);
	}
}

@media (max-width: 767px) {
	.heroCard,
	.sectionCard {
		padding: 1rem;
		border-radius: var(--radius-2xl);
	}

	.statCard,
	.listCard,
	.assignmentCard {
		padding: 0.95rem;
	}

	.assignmentHeader {
		flex-direction: column;
		align-items: flex-start;
	}

	.itemMeta {
		gap: 0.45rem;
	}
}
