.navbar {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fffbf4;
	backdrop-filter: blur(10px);
	border-bottom: 0;
	box-shadow: none;
}

html:has(body.student-join-page) {
	scrollbar-gutter: auto;
}

body.student-join-page site-navbar,
body.student-join-page > .navbar {
	display: none;
}

body.student-join-page .join-page {
	max-width: none;
	min-height: 100svh;
	padding: 0;
	gap: 0;
}

site-navbar {
	display: block;
	position: relative;
	z-index: 100;
}

body.dark .navbar {
	background: #fffbf4;
	border-bottom: 0;
	box-shadow: none;
}

.nav-inner {
	width: 100%;
	max-width: calc(var(--layout-max-width) + (var(--layout-gutter) * 2));
	margin: 0 auto;
	padding: 4px var(--layout-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s2);
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: 32px;
	min-width: 0;
}

.logo-inline {
	display: flex;
	align-items: baseline;
	gap: 0;
}

.logo-inline .rigby,
.logo-inline .maths {
	margin: 0;
	font-size: 43px;
	letter-spacing: -0.5px;
	line-height: 1;
	color: #000000;
}

.logo-inline .rigby {
	font-weight: 500;
}

.logo-inline .maths {
	font-weight: 300;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	min-width: 0;
}

.nav-link {
	--squircle-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 14px;
	color: rgba(36, 23, 10, 0.74);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	touch-action: manipulation;
	transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
	background: rgba(214, 166, 58, 0.1);
	color: var(--brand-ink);
	transform: translateY(-1px);
	box-shadow: 0 10px 18px rgba(17, 17, 17, 0.05);
}

.nav-link.is-active {
	background: rgba(214, 166, 58, 0.18);
	color: var(--brand-ink);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.nav-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: var(--s2);
}

.navbar[data-auth-state="anonymous"] [data-auth-required] {
	display: none !important;
}

.navbar[data-auth-state="authenticated"] [data-auth-anonymous-only] {
	display: none !important;
}

.nav-btn {
	--squircle-radius: var(--squircle-xs);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 6px 14px;
	border: 1px solid rgba(36, 23, 10, 0.12);
	background: rgba(255, 248, 233, 0.72);
	color: var(--brand-ink);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	touch-action: manipulation;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.nav-grid-toggle {
	background: rgba(255, 248, 233, 0.92);
}

.nav-grid-toggle[aria-pressed="true"] {
	background: rgba(214, 166, 58, 0.18);
	border-color: rgba(214, 166, 58, 0.32);
}

.nav-btn:last-child,
.nav-sign-in {
	background: var(--brand-gold);
	color: var(--brand-ink);
	border-color: transparent;
	box-shadow: none;
}

.nav-auth {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: stretch;
}

.nav-quick-join {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: stretch;
}

.nav-login-panel {
	--squircle-radius: var(--squircle-md);
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: min(320px, calc(100vw - 32px));
	padding: 18px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(17, 17, 17, 0.08);
	box-shadow: 0 26px 60px rgba(60, 66, 87, 0.18);
	z-index: 120;
}

.nav-class-code-panel {
	--squircle-radius: var(--squircle-md);
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: min(260px, calc(100vw - 32px));
	padding: 18px;
	border-radius: var(--squircle-md);
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(17, 17, 17, 0.08);
	box-shadow: 0 26px 60px rgba(60, 66, 87, 0.18);
	z-index: 120;
}

.nav-class-code-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nav-account-menu {
	--squircle-radius: var(--squircle-md);
	display: none;
	position: absolute;
	top: calc(100% - (var(--squircle-xs) * 2));
	right: 0;
	width: 100%;
	padding: calc(var(--squircle-xs) * 2) 0 0;
	border-radius: 0 0 var(--squircle-xs) var(--squircle-xs);
	background: transparent;
	animation: navAccountDrop 0.16s ease;
	transform-origin: top center;
	z-index: 120;
	pointer-events: none;
}

@keyframes navAccountDrop {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.nav-account-menu-inner {
	display: flex;
	flex-direction: column;
	padding: 0;
	border-radius: 0 0 var(--squircle-xs) var(--squircle-xs);
	background: #ffffff;
	border: 1px solid rgba(17, 17, 17, 0.08);
	border-top: 0;
	box-shadow: 0 26px 60px rgba(60, 66, 87, 0.18);
	pointer-events: auto;
}

.nav-auth[data-auth-state="authenticated"]:hover .nav-account-menu {
	display: block !important;
}

.nav-account-menu[data-open="true"] {
	display: block !important;
}

.nav-account-menu-item {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	min-height: 42px;
	padding: 0 14px;
	border: 0;
	border-radius: 0 0 var(--squircle-xs) var(--squircle-xs);
	background: transparent;
	color: var(--text);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.nav-account-menu-item:hover,
.nav-account-menu-item:focus-visible {
	background: rgba(214, 166, 58, 0.08);
}

.nav-login-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nav-login-label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--brand-ink);
}

.nav-login-input {
	min-height: 44px;
	padding: 12px 14px;
	font-size: 15px;
}

.nav-login-remember {
	margin-top: 2px;
	font-size: 14px;
}

.nav-login-submit {
	min-height: 46px;
	margin-top: 4px;
	font-size: 18px;
}

.nav-login-account-link {
	font-size: 14px;
	font-weight: 600;
	color: var(--brand-gold-deep);
	text-align: center;
}

.nav-login-status {
	margin: 2px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--text-secondary);
}

.nav-login-status[data-state="error"] {
	color: #bb3e1e;
}

body.dark .nav-btn {
	color: #fff7e7;
	background: rgba(255, 245, 220, 0.1);
	border-color: rgba(255, 240, 214, 0.12);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dark .nav-btn:last-child,
body.dark .nav-sign-in {
	background: #f2c85c;
	color: var(--brand-ink);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.45),
		0 10px 22px rgba(242, 200, 92, 0.26);
}

body.dark .nav-login-panel {
	background: rgba(24, 24, 24, 0.98);
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
}

body.dark .nav-class-code-panel {
	background: rgba(24, 24, 24, 0.98);
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
}

body.dark .nav-account-menu {
	background: transparent;
}

body.dark .nav-account-menu-inner {
	background: rgba(24, 24, 24, 0.98);
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
}

body.dark .nav-account-menu-item {
	background: transparent;
	color: #fff4db;
}

body.dark .nav-login-label {
	color: #fff4db;
}

body.dark .nav-login-status {
	color: #d7d0c3;
}

body.dark .nav-login-status[data-state="error"] {
	color: #ff9c74;
}

body.dark .nav-login-account-link {
	color: var(--brand-gold-soft);
}

body.dark .nav-link {
	color: rgba(36, 23, 10, 0.74);
}

body.dark .nav-link:hover,
body.dark .nav-link:focus-visible,
body.dark .nav-link.is-active {
	color: var(--brand-ink);
}

.hero {
	position: relative;
	width: min(100%, 1040px);
	margin-inline: auto;
	display: block;
	min-height: auto;
	padding: clamp(28px, 5vw, 56px) 0 clamp(8px, 2vw, 20px);
	background: transparent;
}

.hero-copy,
.section-heading,
.animal-copy {
	display: flex;
	flex-direction: column;
	gap: var(--s2);
}

.hero-copy {
	position: relative;
	z-index: 1;
	max-width: 720px;
	justify-content: flex-start;
	margin: 0 auto;
	align-items: center;
	text-align: center;
}

.hero h1 {
	margin: 0;
	font-size: clamp(52px, 8vw, 92px);
	line-height: 0.92;
	letter-spacing: -0.05em;
	max-width: 9ch;
	color: #111111;
}

.hero-highlight {
	color: var(--brand-rose);
}

.hero-text {
	max-width: 42ch;
	font-size: 20px;
	color: #3f3f3f;
}

body.dark .hero h1 {
	color: #ffffff;
}

body.dark .hero-highlight {
	color: var(--brand-rose);
}

body.dark .hero-text,
body.dark .hero-points li,
body.dark .hero-stage-text,
body.dark .hero-stage-note {
	color: #d0d0d0;
}

body.dark .hero-stage-title {
	color: #ffffff;
}

.hero-points {
	display: none;
}

.hero-points li {
	position: relative;
	padding-left: 22px;
	color: #3f3f3f;
	font-size: 17px;
	line-height: 1.45;
}

.hero-points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--brand-gold), var(--accent-strong));
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s2);
	margin-top: var(--s2);
	justify-content: center;
}

.hero-actions .button.primary {
	background: var(--brand-berry);
	color: #ffffff;
}

.hero-anchor {
	position: absolute;
	width: 1px;
	height: 1px;
}

.anchor-bunny {
	left: -102%;
	bottom: -12%;
}

.anchor-fox {
	left: -134%;
	top: 4%;
}

.anchor-koala {
	right: -18%;
	top: 6%;
}

.anchor-panda {
	right: -14%;
	bottom: -4%;
}

.animal-section {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin-top: -280px;
	padding-top: 280px;
}

.section-heading {
	max-width: 640px;
}

.animal-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
	align-items: start;
}

.animal-card {
	--squircle-radius: var(--squircle-md);
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 320px;
	padding: 22px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 247, 247, 0.95));
	border: 1px solid rgba(17, 17, 17, 0.06);
	box-shadow: 0 26px 60px rgba(60, 66, 87, 0.12);
	overflow: visible;
	opacity: 1;
	z-index: 2;
	transition: box-shadow 0.3s ease;
}

body.dark .animal-card {
	background: linear-gradient(180deg, rgba(34, 34, 34, 0.92), rgba(22, 22, 22, 0.98));
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
}

.animal-card:hover {
	box-shadow: 0 34px 72px rgba(60, 66, 87, 0.16);
}

body.dark .animal-card:hover {
	box-shadow: 0 34px 72px rgba(0, 0, 0, 0.34);
}

.animal-media {
	--squircle-radius: 26px;
	display: grid;
	place-items: center;
	flex: 1;
	min-height: 190px;
	padding: 18px;
	overflow: visible;
	background:
		radial-gradient(circle at top, rgba(255, 189, 115, 0.28), transparent 35%),
		linear-gradient(180deg, rgba(17, 17, 17, 0.02), rgba(17, 17, 17, 0.06));
}

body.dark .animal-media {
	background:
		radial-gradient(circle at top, rgba(255, 189, 115, 0.14), transparent 35%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05));
}

.animal-sprite {
	display: block;
	width: var(--sprite-display-width, 170px);
	height: var(--sprite-display-height, 180px);
	max-width: min(100%, 170px);
	max-height: 180px;
	background-repeat: no-repeat;
	image-rendering: auto;
	filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.14));
	will-change: transform;
	transform-origin: center bottom;
	transform:
		translate3d(
			calc(var(--travel-x, 0px) * var(--journey-progress, 1)),
			calc(var(--travel-y, 0px) * var(--journey-progress, 1)),
			0
		)
		rotate(calc(var(--travel-rotate, 0deg) * var(--journey-progress, 1)))
		scaleX(var(--sprite-flip, 1))
		scale(calc(1 + (var(--travel-scale, 0) * var(--journey-progress, 1))));
	position: relative;
	z-index: 3;
}

.animal-card.is-flipped .animal-sprite {
	--sprite-flip: -1;
}

.auth-shell {
	--squircle-radius: var(--squircle-lg);
	position: relative;
	width: min(100%, 1120px);
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 28px;
	padding: 28px;
	background:
		radial-gradient(circle at top left, rgba(255, 200, 109, 0.24), transparent 28%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 245, 239, 0.98));
	border: 1px solid rgba(17, 17, 17, 0.06);
	box-shadow: 0 28px 70px rgba(60, 66, 87, 0.14);
}

body.dark .auth-shell {
	background:
		radial-gradient(circle at top left, rgba(255, 200, 109, 0.12), transparent 28%),
		linear-gradient(180deg, rgba(27, 27, 27, 0.96), rgba(18, 18, 18, 0.98));
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.auth-panel,
.auth-form-card,
.auth-input,
.auth-alt-button {
	--squircle-radius: var(--squircle-md);
}

.auth-panel,
.auth-form-card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 28px;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(17, 17, 17, 0.06);
}

body.dark .auth-panel,
body.dark .auth-form-card {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.08);
}

.auth-panel {
	justify-content: space-between;
	min-height: 100%;
}

.auth-kicker {
	display: inline-flex;
	align-self: flex-start;
	padding: 10px 14px;
	background: rgba(214, 166, 58, 0.16);
	color: var(--brand-gold-deep);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

body.dark .auth-kicker {
	color: var(--brand-gold-soft);
	background: rgba(214, 166, 58, 0.12);
}

.auth-title {
	margin: 0;
	font-size: clamp(42px, 6vw, 72px);
	line-height: 0.96;
	letter-spacing: -0.05em;
	max-width: 9ch;
	color: var(--heading);
}

.auth-panel .body {
	max-width: 34ch;
}

.auth-points {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.auth-points li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 16px;
	color: var(--text-secondary);
}

.auth-points li::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: var(--brand-gold);
	box-shadow: 0 0 0 5px rgba(214, 166, 58, 0.16);
	flex: 0 0 auto;
}

.auth-form-card {
	justify-content: center;
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.auth-fieldset {
	display: flex;
	flex-direction: column;
	gap: 12px;
	border: 0;
	margin: 0;
	padding: 0;
}

.auth-fieldset[hidden] {
	display: none !important;
}

.auth-label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.auth-label {
	font-size: 15px;
	font-weight: 600;
	color: var(--text);
}

.auth-link {
	font-size: 14px;
	font-weight: 600;
	color: var(--brand-gold-deep);
}

body.dark .auth-link {
	color: var(--brand-gold-soft);
}

.auth-input {
	width: 100%;
	min-height: 58px;
	padding: 0 18px;
	border: 1px solid rgba(17, 17, 17, 0.08);
	background: rgba(255, 255, 255, 0.84);
	color: var(--text);
	font: inherit;
}

.auth-input::placeholder {
	color: var(--text-muted);
}

body.dark .auth-input {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.08);
}

.auth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.auth-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	color: var(--text-secondary);
}

.auth-checkbox > span {
	display: inline-flex;
	min-width: 0;
}

.auth-checkbox input {
	accent-color: var(--brand-gold);
}

.auth-submit {
	width: 100%;
}

.auth-divider {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--text-muted);
	font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(17, 17, 17, 0.08);
}

body.dark .auth-divider::before,
body.dark .auth-divider::after {
	background: rgba(255, 255, 255, 0.08);
}

.auth-alt-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0 18px;
	border: 1px solid rgba(17, 17, 17, 0.08);
	background: transparent;
	color: var(--text);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

body.dark .auth-alt-button {
	border-color: rgba(255, 255, 255, 0.08);
}

.auth-alt-button.is-active {
	border-color: rgba(216, 106, 22, 0.38);
	background: rgba(216, 106, 22, 0.08);
	color: var(--brand-ink);
}

body.dark .auth-alt-button.is-active {
	background: rgba(216, 106, 22, 0.18);
	color: #fff4db;
}

.account-shell {
	width: var(--layout-track-width);
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--grid-gap);
	margin: 0 auto;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

body.dark .account-shell {
	background: transparent;
	border: 0;
	box-shadow: none;
}

.dashboard-sidebar,
.account-panel,
.account-card {
	--squircle-radius: var(--squircle-md);
}

.dashboard-sidebar,
.account-panel {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 24px;
	background: #ffffff;
	border: 1px solid rgba(17, 17, 17, 0.06);
	box-shadow: 0 24px 50px rgba(60, 66, 87, 0.08);
}

body.dark .dashboard-sidebar,
body.dark .account-panel {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

.dashboard-sidebar {
	grid-column: span 3;
	align-self: start;
	position: sticky;
	top: 90px;
	justify-content: flex-start;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

body.dark .dashboard-sidebar {
	background: transparent;
}

.account-panel {
	grid-column: span 9;
	min-width: 0;
	border-radius: var(--squircle-md);
}

.dashboard-sidebar-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 24px;
	border-radius: var(--squircle-md);
	background:
		linear-gradient(180deg, rgba(244, 249, 251, 0.98), rgba(236, 245, 247, 0.94));
	border: 1px solid rgba(17, 17, 17, 0.06);
	box-shadow: 0 24px 50px rgba(60, 66, 87, 0.08);
}

body.dark .dashboard-sidebar-card {
	background:
		linear-gradient(180deg, rgba(30, 35, 39, 0.98), rgba(22, 26, 30, 0.96));
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

.dashboard-sidebar-block {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dashboard-brand {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.dashboard-brand > div:last-child {
	min-width: 0;
}

.dashboard-brand-mark {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	background: linear-gradient(180deg, #f2c85c, #ddb44d);
	color: var(--brand-ink);
	font-family: var(--font-sans);
	font-size: 28px;
	font-weight: 700;
	box-shadow: 0 14px 24px rgba(242, 200, 92, 0.24);
	text-transform: uppercase;
}

.dashboard-brand-name {
	margin: 0;
	font-size: 34px;
	line-height: 0.96;
}

.dashboard-brand-email {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.3;
	color: var(--text-secondary);
	overflow-wrap: anywhere;
}

.dashboard-brand-class-codes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.dashboard-brand-class-codes[hidden] {
	display: none !important;
}

.dashboard-brand-class-codes .dashboard-class-code-button {
	min-height: 32px;
	padding: 0 12px;
	font-size: 12px;
}

.dashboard-nav,
.dashboard-settings-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dashboard-nav-link,
.dashboard-mini-link {
	--squircle-radius: var(--squircle-md);
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	min-height: 46px;
	padding: 0 16px;
	border-radius: var(--squircle-md);
	border: 1px solid rgba(17, 17, 17, 0.06);
	background: rgba(255, 255, 255, 0.56);
	color: var(--text);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.dark .dashboard-nav-link,
body.dark .dashboard-mini-link {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.08);
	color: #fff4db;
}

.dashboard-nav-link:hover,
.dashboard-mini-link:hover,
.dashboard-nav-link:focus-visible,
.dashboard-mini-link:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 12px 22px rgba(17, 17, 17, 0.06);
}

.dashboard-nav-link.is-active {
	background: linear-gradient(180deg, rgba(242, 200, 92, 0.22), rgba(242, 200, 92, 0.12));
	color: var(--brand-ink);
	border-color: rgba(221, 180, 77, 0.2);
}

.dashboard-mini-link-strong {
	background: rgba(214, 166, 58, 0.16);
	color: var(--brand-ink);
}

.dashboard-topbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
}

.dashboard-topbar-copy {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dashboard-title-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
}

.dashboard-topbar-copy .section-title {
	margin: 0;
	font-size: clamp(34px, 4vw, 52px);
	line-height: 0.96;
}

.dashboard-class-codes {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.dashboard-class-code-button {
	--squircle-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 14px;
	border: 1px solid rgba(221, 180, 77, 0.22);
	border-radius: 999px;
	background: rgba(214, 166, 58, 0.14);
	color: var(--brand-ink);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.dashboard-class-code-button:hover,
.dashboard-class-code-button:focus-visible {
	background: rgba(214, 166, 58, 0.22);
	border-color: rgba(221, 180, 77, 0.36);
	transform: translateY(-1px);
}

.dashboard-class-code-button.is-copied {
	background: rgba(92, 181, 92, 0.18);
	border-color: rgba(92, 181, 92, 0.34);
	color: rgba(25, 94, 38, 0.94);
}

body.dark .dashboard-class-code-button {
	background: rgba(214, 166, 58, 0.2);
	border-color: rgba(255, 255, 255, 0.08);
	color: #fff4db;
}

body.dark .dashboard-class-code-button.is-copied {
	background: rgba(92, 181, 92, 0.22);
	border-color: rgba(92, 181, 92, 0.34);
	color: #dcffe4;
}

.dashboard-topbar-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.dashboard-topbar-action {
	border: 0;
	background: transparent;
	border-radius: 999px;
	padding: 0;
	padding: 6px 10px;
	margin-top: 8px;
	color: rgba(17, 17, 17, 0.56);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.01em;
	cursor: pointer;
}

.dashboard-topbar-action:hover,
.dashboard-topbar-action:focus-visible {
	color: rgba(17, 17, 17, 0.84);
}

.dashboard-topbar-action.is-active {
	background: rgba(92, 181, 92, 0.18);
	color: rgba(25, 94, 38, 0.92);
}

.dashboard-topbar-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.dashboard-user-pill {
	--squircle-radius: 999px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 0 16px;
	background: rgba(17, 17, 17, 0.04);
	color: var(--text);
	font-size: 14px;
	font-weight: 600;
}

.dashboard-user-dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: #7ed9b8;
	box-shadow: 0 0 0 4px rgba(126, 217, 184, 0.16);
}

.dashboard-section {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.dashboard-view-stack {
	display: flex;
	flex-direction: column;
	min-height: 640px;
}

.dashboard-view {
	display: none;
	min-width: 0;
	min-height: 100%;
}

.dashboard-view.is-active {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-height: 640px;
}

.account-page[data-account-mode="teacher"] [data-role-scope="admin"] {
	display: none !important;
}

.account-page[data-account-mode="admin"] [data-role-scope="teacher"] {
	display: none !important;
}

.dashboard-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.dashboard-heading .section-title {
	font-size: clamp(26px, 3vw, 40px);
}

.dashboard-main-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.85fr);
	gap: 20px;
}

.admin-main-grid {
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
}

.dashboard-primary-panel,
.dashboard-side-panel {
	--squircle-radius: var(--squircle-md);
	padding: 22px;
	background: rgba(247, 251, 252, 0.8);
	border: 1px solid rgba(17, 17, 17, 0.05);
}

body.dark .dashboard-primary-panel,
body.dark .dashboard-side-panel {
	background: rgba(255, 255, 255, 0.03);
	border-color: rgba(255, 255, 255, 0.06);
}

.dashboard-inline-link {
	color: var(--brand-gold-deep);
	font-size: 14px;
	font-weight: 700;
}

body.dark .dashboard-inline-link {
	color: var(--brand-gold-soft);
}

.account-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.account-grid-overview {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-summary-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.teacher-tools-panel {
	margin-top: 28px;
	padding-top: 28px;
	border-top: 1px solid rgba(36, 23, 10, 0.1);
}

.teacher-tools-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 16px;
}

.teacher-tools-heading .label {
	margin-top: 4px;
	font-size: clamp(22px, 2.5vw, 28px);
}

.teacher-tools-heading .meta {
	max-width: 270px;
	text-align: right;
}

.teacher-tools-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.teacher-tool-link {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 15px;
	border: 1px solid rgba(36, 23, 10, 0.1);
	border-radius: var(--squircle-sm);
	background: #ffffff;
	color: var(--text);
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.teacher-tool-link:hover,
.teacher-tool-link:focus-visible {
	transform: translateY(-2px);
	border-color: rgba(216, 106, 22, 0.35);
	background: #fffaf0;
	box-shadow: 0 12px 24px rgba(60, 66, 87, 0.08);
	outline: none;
}

.teacher-tool-link strong,
.teacher-tool-link small {
	display: block;
}

.teacher-tool-link strong {
	font-size: 15px;
	font-weight: 750;
	line-height: 1.2;
}

.teacher-tool-link small {
	margin-top: 3px;
	font-size: 12px;
	line-height: 1.35;
	color: var(--text-muted);
}

.teacher-tool-icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--brand-lemon);
	color: var(--brand-ink);
	font-size: 13px;
	font-weight: 800;
}

.teacher-tool-arrow {
	font-size: 20px;
	font-weight: 600;
	color: var(--accent-strong);
}

.dashboard-summary-card {
	--squircle-radius: var(--squircle-md);
	display: flex;
	min-height: 170px;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	padding: 22px;
	border-radius: var(--squircle-md);
	background: #ffffff;
	border: 1px solid rgba(17, 17, 17, 0.07);
	box-shadow: 0 16px 34px rgba(60, 66, 87, 0.07);
	color: var(--text);
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dashboard-summary-card:hover,
.dashboard-summary-card:focus-visible {
	transform: translateY(-2px);
	border-color: rgba(214, 166, 58, 0.28);
	background: rgba(255, 248, 233, 0.72);
	box-shadow: 0 22px 42px rgba(60, 66, 87, 0.1);
}

.dashboard-summary-card strong {
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 700;
	line-height: 0.96;
	letter-spacing: -0.05em;
}

.dashboard-summary-action {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 12px;
	border-radius: 999px;
	background: rgba(92, 181, 92, 0.16);
	color: rgba(25, 94, 38, 0.92);
	font-size: 13px;
	font-weight: 700;
}

.dashboard-puzzle-card {
	background: linear-gradient(145deg, rgba(255, 250, 238, 0.98), rgba(245, 251, 246, 0.98));
}

.dashboard-puzzle-card.is-disabled {
	background: rgba(248, 248, 246, 0.94);
}

.dashboard-feature-switch {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
}

.dashboard-feature-switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.dashboard-feature-switch-control {
	position: relative;
	display: inline-block;
	width: 46px;
	height: 27px;
	border: 1px solid rgba(17, 17, 17, 0.15);
	border-radius: 999px;
	background: rgba(17, 17, 17, 0.14);
	transition: background 0.18s ease, border-color 0.18s ease;
}

.dashboard-feature-switch-control::after {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 2px 5px rgba(17, 17, 17, 0.18);
	content: "";
	transition: transform 0.18s ease;
}

.dashboard-feature-switch input:checked + .dashboard-feature-switch-control {
	border-color: rgba(43, 128, 62, 0.48);
	background: #5cb55c;
}

.dashboard-feature-switch input:checked + .dashboard-feature-switch-control::after {
	transform: translateX(19px);
}

.dashboard-feature-switch input:focus-visible + .dashboard-feature-switch-control {
	outline: 3px solid rgba(214, 166, 58, 0.44);
	outline-offset: 3px;
}

.dashboard-feature-switch input:disabled + .dashboard-feature-switch-control {
	opacity: 0.58;
}

.dashboard-puzzle-status {
	min-height: 18px;
	margin: 0;
}

.account-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px;
	border-radius: var(--squircle-md);
	background: linear-gradient(180deg, rgba(241, 249, 251, 0.96), rgba(250, 253, 253, 0.98));
	border: 1px solid rgba(17, 17, 17, 0.06);
	box-shadow: 0 14px 28px rgba(60, 66, 87, 0.05);
}

body.dark .account-card {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.school-overview-card,
.school-action-card {
	gap: 16px;
}

.school-summary-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.school-inline-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.school-action-list {
	display: grid;
	gap: 12px;
}

.school-action-item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 16px;
	border-radius: var(--squircle-md);
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid rgba(17, 17, 17, 0.06);
}

.school-action-item.is-static {
	align-items: center;
}

.school-action-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
}

.school-action-buttons .button,
.school-inline-form .button {
	min-height: 44px;
	padding: 0 18px;
	font-size: 15px;
}

.school-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.school-pending-invites {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 4px;
}

.admin-summary-grid,
.admin-list-grid,
.admin-section-stack {
	display: grid;
	gap: 14px;
}

.admin-summary-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.dark .school-action-item {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.08);
}

.account-mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
	word-break: break-word;
}

.account-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.account-actions-tags {
	align-items: center;
	justify-content: flex-start;
}

.button-compact {
	min-height: 38px;
	padding: 0 18px;
	font-size: 15px;
	font-weight: 600;
}

.tag-select-all-control {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 38px;
	padding: 0 2px;
	color: rgba(36, 23, 10, 0.74);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.tag-select-all-control input[type="checkbox"] {
	accent-color: #5cb55c;
}

.class-builder-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.task-composer {
	max-width: 1080px;
	gap: 22px;
}

.task-composer-progress {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 4px;
	overflow-x: auto;
}

.task-composer-progress span {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 12px;
	border-radius: 999px;
	background: rgba(36, 23, 10, 0.06);
	color: var(--text-muted);
	font-size: 12px;
	font-weight: 850;
	white-space: nowrap;
}

.task-composer-progress span.is-current {
	background: rgba(214, 166, 58, 0.24);
	color: var(--brand-ink);
}

.task-composer-stage {
	display: grid;
	gap: 20px;
}

.task-composer-stage[hidden] {
	display: none;
}

.task-composer-intro,
.task-composer-stage-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
}

.task-composer-intro > div,
.task-composer-stage-heading > div {
	min-width: 0;
}

.task-composer-intro h3,
.task-composer-stage-heading h3 {
	margin: 0;
	color: var(--text);
	font-size: clamp(28px, 4vw, 42px);
	line-height: 0.98;
	letter-spacing: -0.04em;
}

.task-composer-intro .body {
	max-width: 620px;
	margin: 12px 0 0;
}

.task-composer-section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.task-composer-section-heading h4,
.task-composer-browser h4,
.task-composer-review h4 {
	margin: 0;
	color: var(--text);
	font-size: 18px;
	font-weight: 900;
}

.task-composer-section-heading .meta {
	margin: 0;
}

.task-composer-recent-list,
.task-composer-activity-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
	gap: 10px;
}

.task-composer-category-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.task-composer-category,
.task-composer-submenu,
.task-composer-activity-card {
	display: grid;
	gap: 5px;
	min-width: 0;
	border: 1px solid rgba(36, 23, 10, 0.12);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.72);
	color: var(--text);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.task-composer-category:hover,
.task-composer-submenu:hover,
.task-composer-activity-card:hover {
	border-color: rgba(214, 166, 58, 0.78);
	background: rgba(255, 252, 242, 0.96);
	transform: translateY(-1px);
}

.task-composer-category:focus-visible,
.task-composer-submenu:focus-visible,
.task-composer-activity-card:focus-visible,
.task-composer-grade:focus-visible {
	outline: 3px solid rgba(24, 102, 211, 0.38);
	outline-offset: 2px;
}

.task-composer-category {
	min-height: 102px;
	padding: 16px;
}

.task-composer-category span,
.task-composer-submenu span {
	font-size: 16px;
	font-weight: 900;
}

.task-composer-category small,
.task-composer-submenu small,
.task-composer-activity-meta {
	color: var(--text-muted);
	font-size: 12px;
	font-weight: 750;
}

.task-composer-category:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.task-composer-alternate-actions,
.task-composer-build-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.task-composer-browser {
	display: grid;
	gap: 16px;
	padding: 18px;
	border: 1px solid rgba(36, 23, 10, 0.1);
	border-radius: 16px;
	background: rgba(248, 252, 252, 0.76);
}

.task-composer-browser[hidden] {
	display: none;
}

.task-composer-browser-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.task-composer-browser-header .text-button {
	padding-inline: 0;
}

.task-composer-breadcrumb {
	margin: 4px 0;
	color: var(--text-muted);
	font-size: 12px;
	font-weight: 750;
}

.task-composer-submenu-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
	gap: 10px;
}

.task-composer-submenu {
	min-height: 74px;
	padding: 13px 15px;
}

.task-composer-activity-card {
	min-height: 88px;
	padding: 12px;
}

.task-composer-activity-card.is-selected {
	border-color: rgba(78, 161, 90, 0.65);
	background: rgba(220, 243, 222, 0.78);
}

.task-composer-activity-label {
	min-width: 0;
}

.task-composer-activity-label .task-label {
	align-items: flex-start;
	white-space: normal;
}

.task-composer-search {
	display: block;
}

.task-composer-search .auth-input {
	width: 100%;
}

.task-composer-grade-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.task-composer-grade {
	width: 42px;
	height: 38px;
	border: 1px solid rgba(36, 23, 10, 0.12);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.78);
	color: var(--text-secondary);
	font: inherit;
	font-size: 14px;
	font-weight: 900;
	cursor: pointer;
}

.task-composer-grade.is-selected {
	border-color: rgba(214, 166, 58, 0.72);
	background: rgba(214, 166, 58, 0.22);
	color: var(--brand-ink);
}

.task-composer-curriculum-list {
	display: grid;
	gap: 18px;
}

.task-composer-curriculum-list section {
	display: grid;
	gap: 9px;
}

.task-composer-curriculum-list h5 {
	margin: 0;
	color: var(--text-secondary);
	font-size: 13px;
	font-weight: 900;
	text-transform: uppercase;
}

.task-composer-title-field {
	max-width: 680px;
}

.task-composer-fixed-note {
	margin: 0;
	color: var(--text-secondary);
	font-size: 13px;
	font-weight: 800;
}

.task-composer-order-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 18px;
	border: 1px solid rgba(36, 23, 10, 0.1);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.56);
}

.task-composer-order-option > div {
	display: grid;
	gap: 4px;
}

.task-composer-order-option strong {
	font-size: 14px;
	font-weight: 900;
}

.task-composer-order-option > div span {
	max-width: 58ch;
	color: var(--text-secondary);
	font-size: 13px;
	line-height: 1.45;
}

.task-composer-order-option .dashboard-feature-switch {
	flex: 0 0 auto;
}

.task-composer-plan-item {
	grid-template-columns: minmax(0, 1fr) minmax(104px, 132px) minmax(128px, auto) auto;
}

.task-composer-remove {
	border: 0;
	background: transparent;
	color: #aa3750;
	font: inherit;
	font-size: 12px;
	font-weight: 850;
	cursor: pointer;
}

.task-composer-disclosure {
	border: 1px solid rgba(36, 23, 10, 0.1);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.56);
	overflow: clip;
}

.task-composer-disclosure > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 52px;
	padding: 0 16px;
	color: var(--text);
	font-size: 15px;
	font-weight: 900;
	cursor: pointer;
	list-style: none;
}

.task-composer-disclosure > summary::-webkit-details-marker {
	display: none;
}

.task-composer-disclosure > summary::after {
	content: "+";
	color: var(--text-muted);
	font-size: 20px;
	font-weight: 500;
}

.task-composer-disclosure[open] > summary::after {
	content: "−";
}

.task-composer-disclosure > summary span {
	margin-left: auto;
	color: var(--text-muted);
	font-size: 12px;
	font-weight: 750;
}

.task-composer-disclosure-content {
	display: grid;
	gap: 16px;
	padding: 4px 16px 16px;
	border-top: 1px solid rgba(36, 23, 10, 0.08);
}

.task-composer-review {
	display: grid;
	gap: 14px;
	padding: 18px;
	border: 1px solid rgba(214, 166, 58, 0.45);
	border-radius: 16px;
	background: rgba(255, 250, 235, 0.74);
}

.task-composer-review-heading .meta {
	margin: 0 0 4px;
}

.task-composer-review-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
}

.task-composer-review-grid div {
	min-width: 0;
	padding: 10px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.62);
}

.task-composer-review-grid dt {
	color: var(--text-muted);
	font-size: 11px;
	font-weight: 850;
	text-transform: uppercase;
}

.task-composer-review-grid dd {
	margin: 4px 0 0;
	color: var(--text);
	font-size: 14px;
	font-weight: 900;
	overflow-wrap: anywhere;
}

.task-composer-review-activities {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.task-composer-review-activities span {
	display: inline-flex;
	padding: 6px 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.7);
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 800;
}

.class-inline-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.class-inline-form[hidden] {
	display: none !important;
}

.class-inline-grid {
	display: grid;
	grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
	gap: 16px;
}

.student-tag-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 18px;
}

.student-custom-tag-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
}

.class-tag-selection-row {
	display: flex;
	justify-content: flex-end;
}

.student-tag-assignment-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
	align-items: stretch;
	gap: 8px;
}

.student-tag-assignment-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 10px;
	min-height: 74px;
	padding: 10px 12px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(17, 17, 17, 0.06);
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.student-tag-assignment-item:has(input:checked) {
	background: rgba(92, 181, 92, 0.18);
	border-color: rgba(92, 181, 92, 0.34);
	box-shadow: 0 8px 18px rgba(92, 181, 92, 0.1);
}

.student-tag-assignment-item input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	accent-color: #5cb55c;
}

.student-tag-assignment-main {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.student-tag-assignment-item .student-accordion-meta {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2px;
}

.student-tag-assignment-item .student-accordion-name {
	font-size: 16px;
	font-weight: 900;
	line-height: 1.08;
	letter-spacing: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.student-tag-assignment-item .student-accordion-class {
	font-size: 12px;
	font-weight: 800;
	line-height: 1.1;
	color: rgba(36, 23, 10, 0.58);
	text-align: left;
}

.student-row-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-left: auto;
	justify-content: flex-end;
}

.student-tag-assignment-item .student-row-tags {
	gap: 4px;
	margin-left: 0;
	justify-content: flex-start;
}

.student-accordion-toggle .student-row-tags {
	display: grid;
	grid-template-columns: 1fr;
	gap: 5px;
	margin-left: 0;
	justify-content: flex-start;
	align-self: end;
	min-width: 0;
}

.student-row-tag {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(214, 166, 58, 0.14);
	color: rgba(36, 23, 10, 0.78);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.student-tag-assignment-item .student-row-tag {
	max-width: 100%;
	padding: 4px 7px;
	font-size: 10px;
	font-weight: 800;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.student-accordion-toggle .student-row-tag {
	width: fit-content;
	max-width: 100%;
	padding: 4px 7px;
	font-size: 10px;
	font-weight: 800;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.student-row-tag.is-removable {
	border: 0;
	cursor: pointer;
}

.student-row-tag-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 0;
	opacity: 0;
	overflow: hidden;
	transition: width 0.18s ease, opacity 0.18s ease, margin-left 0.18s ease;
}

.student-row-tag.is-removable:hover .student-row-tag-remove,
.student-row-tag.is-removable:focus-visible .student-row-tag-remove {
	width: 10px;
	margin-left: 6px;
	opacity: 1;
}

.student-accordion-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.task-builder-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 360px));
	gap: 16px;
}

.task-build-preview {
	display: grid;
	gap: 12px;
	padding: 14px;
	border: 1px solid rgba(36, 23, 10, 0.1);
	border-radius: 8px;
	background: rgba(248, 252, 252, 0.76);
}

.task-build-empty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
	color: var(--text-secondary);
}

.task-build-empty-title {
	color: var(--text);
	font-size: 15px;
	font-weight: 900;
}

.task-build-empty-copy {
	font-size: 13px;
	font-weight: 750;
}

.task-build-preview-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.task-build-preview-title {
	margin: 0;
	color: var(--text);
	font-size: 18px;
	line-height: 1.15;
}

.task-plan-list {
	display: grid;
	gap: 8px;
}

.task-plan-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(104px, 132px) minmax(128px, auto);
	align-items: center;
	gap: 10px;
	min-height: 58px;
	padding: 8px 10px;
	border: 1px solid rgba(36, 23, 10, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.78);
}

.task-plan-main {
	min-width: 0;
}

.task-plan-main .task-label {
	white-space: normal;
}

.task-plan-control {
	display: grid;
	gap: 5px;
	color: var(--text-secondary);
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
}

.task-plan-control .auth-input {
	min-height: 36px;
	padding: 6px 10px;
	font-size: 15px;
	font-weight: 850;
}

.task-plan-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	min-height: 36px;
	padding: 3px 6px;
	border: 1px solid rgba(36, 23, 10, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.7);
}

.task-plan-star {
	appearance: none;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #8c8e96;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.task-plan-star.is-active {
	color: #15120b;
}

.task-plan-star.is-disabled {
	color: rgba(36, 23, 10, 0.22);
	cursor: not-allowed;
}

.task-plan-fixed-difficulty {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	margin: 0;
	color: var(--text-secondary);
	font-size: 13px;
	font-weight: 850;
	text-transform: none;
}

.task-type-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.task-type-grid[hidden],
[data-task-type-source][hidden] {
	display: none !important;
}

.task-picker-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.task-level-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}

.task-level-filter-option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 12px;
	border-radius: 8px;
	border: 1px solid rgba(36, 23, 10, 0.12);
	background: rgba(255, 255, 255, 0.78);
	color: var(--text-secondary);
	font-size: 14px;
	font-weight: 850;
	cursor: pointer;
}

.task-level-filter-option input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--brand-gold);
}

.task-level-filter-option:has(input:checked) {
	background: rgba(214, 166, 58, 0.18);
	border-color: rgba(214, 166, 58, 0.36);
	color: var(--brand-ink);
}

.task-type-picker {
	display: grid;
	gap: 12px;
	margin-top: 8px;
}

.task-picker-group {
	border: 1px solid rgba(36, 23, 10, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.66);
	overflow: clip;
}

.task-picker-summary {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 0 16px;
	cursor: pointer;
	list-style: none;
}

.task-picker-summary::-webkit-details-marker {
	display: none;
}

.task-picker-summary::before {
	content: "";
	width: 9px;
	height: 9px;
	margin-right: 12px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 0.18s ease;
}

.task-picker-group[open] .task-picker-summary::before {
	transform: rotate(45deg);
}

.task-picker-summary-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	min-width: 0;
}

.task-picker-summary-title {
	color: var(--text);
	font-size: 15px;
	font-weight: 900;
}

.task-picker-summary-count {
	color: var(--text-muted);
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
}

.task-picker-group-body {
	display: grid;
	gap: 14px;
	padding: 4px 16px 16px;
}

.task-picker-subgroup {
	border: 1px solid rgba(36, 23, 10, 0.08);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.5);
	overflow: clip;
}

.task-picker-subgroup-summary {
	display: flex;
	align-items: center;
	min-height: 46px;
	padding: 0 12px;
	cursor: pointer;
	list-style: none;
}

.task-picker-subgroup-summary::-webkit-details-marker {
	display: none;
}

.task-picker-subgroup-summary::before {
	content: "";
	width: 7px;
	height: 7px;
	margin-right: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 0.18s ease;
}

.task-picker-subgroup[open] > .task-picker-subgroup-summary::before {
	transform: rotate(45deg);
}

.task-picker-subgroup .task-picker-summary-title {
	font-size: 14px;
}

.task-picker-subgroup .task-picker-summary-count {
	font-size: 11px;
}

.task-picker-subgroup-body {
	display: grid;
	gap: 10px;
	padding: 2px 12px 12px 28px;
	border-top: 1px solid rgba(36, 23, 10, 0.06);
}

.task-picker-subgroup[data-task-picker-depth="2"],
.task-picker-subgroup[data-task-picker-depth="3"],
.task-picker-subgroup[data-task-picker-depth="4"] {
	background: rgba(248, 252, 252, 0.72);
}

.task-picker-subgroup[data-task-picker-depth="2"] .task-picker-subgroup-body,
.task-picker-subgroup[data-task-picker-depth="3"] .task-picker-subgroup-body,
.task-picker-subgroup[data-task-picker-depth="4"] .task-picker-subgroup-body {
	padding-left: 22px;
}

.task-picker-strand-section {
	display: grid;
	gap: 10px;
}

.task-picker-strand-title {
	margin: 0;
	color: rgba(36, 23, 10, 0.76);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0;
}

.task-picker-option-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 10px;
}

.task-picker-option {
	align-items: center;
	min-height: 44px;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid rgba(36, 23, 10, 0.08);
	background: rgba(255, 255, 255, 0.58);
	cursor: pointer;
}

.task-picker-option:has(input:checked) {
	background: rgba(92, 181, 92, 0.14);
	border-color: rgba(92, 181, 92, 0.3);
}

.task-picker-option input {
	flex: 0 0 auto;
}

.task-picker-option .task-label {
	white-space: normal;
}

.task-picker-option .task-title-label {
	line-height: 1.2;
}

.task-picker-empty {
	margin: 0;
}

.task-student-picker {
	display: grid;
	gap: 10px;
}

.task-student-picker-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.text-button {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--brand-gold-deep);
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}

.task-student-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.task-student-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 30px;
	padding: 5px 9px 5px 11px;
	border: 1px solid rgba(17, 17, 17, 0.06);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.82);
	color: var(--text);
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.task-student-chip.is-muted {
	background: rgba(17, 17, 17, 0.035);
	color: rgba(36, 23, 10, 0.42);
	opacity: 0.68;
}

.task-student-chip.is-selected {
	border-color: rgba(214, 166, 58, 0.24);
	background: rgba(255, 249, 235, 0.92);
}

.task-student-chip span:last-child {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 999px;
	background: rgba(17, 17, 17, 0.08);
	color: rgba(36, 23, 10, 0.68);
	font-size: 12px;
	line-height: 1;
}

.task-list {
	display: grid;
	gap: 14px;
}

.task-card {
	--squircle-radius: var(--squircle-md);
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px;
	border-radius: var(--squircle-md);
	background: rgba(248, 252, 252, 0.96);
	border: 1px solid rgba(17, 17, 17, 0.05);
	box-shadow: 0 12px 28px rgba(60, 66, 87, 0.06);
}

body.dark .task-card {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

body.dark .task-student-chip {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.08);
	color: #fff4db;
}

body.dark .task-student-chip.is-muted {
	background: rgba(255, 255, 255, 0.03);
	color: rgba(255, 244, 219, 0.42);
}

body.dark .task-student-chip.is-selected {
	background: rgba(214, 166, 58, 0.14);
	border-color: rgba(214, 166, 58, 0.24);
}

body.dark .task-student-chip span:last-child {
	background: rgba(255, 255, 255, 0.12);
	color: rgba(255, 244, 219, 0.72);
}

.task-card-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.results-list,
.attempt-question-list {
	display: grid;
	gap: 8px;
}

.result-task-bubble {
	--squircle-radius: 8px;
	display: flex;
	flex-direction: column;
	border-radius: 8px;
	border: 1px solid rgba(17, 17, 17, 0.055);
	background: rgba(255, 255, 255, 0.76);
	overflow: visible;
}

.result-task-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	padding-right: 10px;
}

.result-attempt-card,
.attempt-question-card {
	--squircle-radius: var(--squircle-md);
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px;
	border-radius: var(--squircle-md);
	border: 1px solid rgba(17, 17, 17, 0.06);
	background: rgba(248, 252, 252, 0.96);
	color: var(--text);
	font: inherit;
	text-align: left;
}

.result-attempt-card {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) auto auto;
	align-items: center;
	gap: 10px 16px;
	width: 100%;
	min-height: 54px;
	padding: 10px 12px;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: background 0.18s ease;
}

.result-attempt-card:hover,
.result-attempt-card:focus-visible {
	background: rgba(255, 249, 235, 0.52);
}

.result-attempt-card.is-active {
	background: rgba(255, 249, 235, 0.74);
}

.result-task-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	min-width: 170px;
}

.result-task-actions {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	white-space: nowrap;
}

.result-task-status,
.result-task-action {
	min-height: 32px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 850;
	line-height: 1;
}

.result-task-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 10px;
	background: rgba(225, 247, 228, 0.8);
	color: #286536;
}

.result-task-status.is-closed {
	background: rgba(17, 17, 17, 0.07);
	color: rgba(36, 23, 10, 0.62);
}

.result-task-status.is-draft {
	background: rgba(244, 190, 75, 0.16);
	color: var(--brand-gold-deep);
}

.result-task-action {
	padding: 8px 11px;
	border: 1px solid rgba(203, 145, 38, 0.24);
	background: rgba(255, 255, 255, 0.78);
	color: var(--brand-gold-deep);
	font: inherit;
	cursor: pointer;
}

.result-task-action:hover,
.result-task-action:focus-visible {
	background: rgba(244, 190, 75, 0.18);
}

.result-task-action.is-danger {
	border-color: rgba(196, 42, 79, 0.2);
	background: rgba(255, 245, 249, 0.86);
	color: #a51f45;
}

.result-task-action.is-danger:hover,
.result-task-action.is-danger:focus-visible {
	background: rgba(251, 214, 226, 0.78);
}

.result-task-action:disabled {
	cursor: wait;
	opacity: 0.64;
}

.result-task-summary-line {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.result-task-summary-line .label {
	font-size: 17px;
	line-height: 1.15;
}

.result-task-summary-line .body {
	margin: 0;
	color: rgba(36, 23, 10, 0.58);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.result-expand-label {
	color: var(--brand-gold-deep);
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
}

.results-summary-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.results-task-mini-grid {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
}

.results-summary-item {
	display: inline-flex;
	flex-direction: row;
	align-items: baseline;
	gap: 6px;
	padding: 6px 8px;
	border-radius: 999px;
	background: rgba(17, 17, 17, 0.035);
	white-space: nowrap;
}

.results-summary-item .meta {
	font-size: 11px;
}

.results-summary-item .student-stat-value {
	font-size: 13px;
}

.results-detail {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 18px;
	border-top: 1px solid rgba(17, 17, 17, 0.06);
	background: rgba(255, 255, 255, 0.54);
}

.results-detail[hidden] {
	display: none !important;
}

.results-detail-summary {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.results-overview-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px;
	border-radius: var(--squircle-md);
	border: 1px solid rgba(17, 17, 17, 0.06);
	background: rgba(248, 252, 252, 0.94);
}

.results-overview-heading,
.attempt-snap-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}

.results-overview-heading .body {
	margin: 4px 0 0;
}

.results-overview-actions {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
}

.result-setup-inline {
	position: relative;
}

.result-setup-inline > summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 8px 12px;
	border: 1px solid rgba(17, 17, 17, 0.08);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	color: rgba(36, 23, 10, 0.72);
	font-size: 12px;
	font-weight: 850;
	list-style: none;
	cursor: pointer;
}

.result-setup-inline > summary::-webkit-details-marker {
	display: none;
}

.result-setup-inline > summary:hover,
.result-setup-inline > summary:focus-visible,
.result-setup-inline[open] > summary {
	background: rgba(255, 249, 235, 0.78);
}

.result-setup-panel {
	position: absolute;
	z-index: 20;
	top: calc(100% + 8px);
	right: 0;
	width: min(540px, calc(100vw - 48px));
	max-height: min(460px, 70vh);
	overflow: auto;
	padding: 12px;
	border: 1px solid rgba(17, 17, 17, 0.08);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 22px 44px rgba(60, 66, 87, 0.14);
}

.result-refresh-button {
	min-height: 34px;
	padding: 8px 12px;
	border: 1px solid rgba(203, 145, 38, 0.28);
	border-radius: 999px;
	background: rgba(244, 190, 75, 0.18);
	color: var(--brand-gold-deep);
	font: inherit;
	font-size: 12px;
	font-weight: 850;
	cursor: pointer;
}

.result-refresh-button:hover,
.result-refresh-button:focus-visible {
	background: rgba(244, 190, 75, 0.28);
}

.result-refresh-button:disabled {
	cursor: wait;
	opacity: 0.64;
}

.results-overview-grid,
.attempt-snap-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
	gap: 10px;
}

.results-overview-grid .class-summary-card,
.attempt-snap-stats .class-summary-card {
	gap: 4px;
	padding: 12px;
}

.results-overview-grid .class-summary-card .label,
.attempt-snap-stats .class-summary-card .label {
	font-size: 18px;
	line-height: 1.1;
}

.attempt-snap-title {
	min-width: 0;
}

.student-result-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 10px;
	align-items: start;
}

.student-result-detail {
	min-width: 0;
}

.student-result-detail[open] {
	grid-column: 1 / -1;
}

.student-result-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-height: 124px;
	padding: 14px;
	border-radius: 8px;
	border: 1px solid rgba(17, 17, 17, 0.08);
	background: rgba(255, 255, 255, 0.82);
	color: var(--text);
	cursor: pointer;
	list-style: none;
}

.student-result-card::-webkit-details-marker {
	display: none;
}

.student-result-card:hover,
.student-result-card:focus-visible {
	background: rgba(255, 249, 235, 0.72);
}

.student-result-heading {
	display: block;
}

.student-result-heading strong {
	display: block;
	min-width: 0;
	font-size: 22px;
	line-height: 1.05;
	word-break: break-word;
}

.student-result-metrics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.student-result-metrics.is-test-score {
	grid-template-columns: minmax(0, 1fr);
}

.student-result-metrics span {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.student-result-metrics b {
	overflow: hidden;
	font-size: 20px;
	line-height: 1.1;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.student-result-metrics small {
	color: rgba(36, 23, 10, 0.58);
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
}

.student-result-panel {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 8px;
	padding: 14px;
	border-radius: 8px;
	border: 1px solid rgba(17, 17, 17, 0.07);
	background: rgba(255, 255, 255, 0.74);
}

.student-result-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 4px;
}

.student-result-actions .meta {
	margin: 0;
}

.student-result-detail.is-complete .student-result-card {
	border-color: rgba(62, 152, 77, 0.3);
	background: rgba(244, 252, 246, 0.9);
}

.student-result-detail.is-complete .student-status-pill {
	background: rgba(62, 152, 77, 0.18);
	color: #246532;
}

.student-result-detail.is-in-progress .student-result-card {
	border-color: rgba(214, 166, 58, 0.34);
	background: rgba(255, 249, 235, 0.9);
}

.student-result-detail.is-in-progress .student-status-pill {
	background: rgba(214, 166, 58, 0.2);
	color: #8a620b;
}

.student-result-detail.is-not-started .student-result-card {
	border-color: rgba(215, 69, 110, 0.3);
	background: rgba(255, 247, 249, 0.9);
}

.student-result-detail.is-not-started .student-status-pill {
	background: rgba(215, 69, 110, 0.16);
	color: #9c2548;
}

.question-snap-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
	gap: 8px;
	align-items: start;
}

.question-snap-detail {
	min-width: 0;
}

.question-snap-detail[open] {
	grid-column: 1 / -1;
}

.question-snap-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 112px;
	padding: 12px;
	border-radius: 8px;
	border: 1px solid rgba(17, 17, 17, 0.08);
	background: rgba(255, 255, 255, 0.82);
	color: var(--text);
	cursor: pointer;
	list-style: none;
}

.question-snap-card::-webkit-details-marker {
	display: none;
}

.question-snap-card:hover,
.question-snap-card:focus-visible {
	background: rgba(255, 249, 235, 0.72);
}

.question-snap-detail.is-correct .question-snap-card {
	border-color: rgba(62, 152, 77, 0.28);
}

.question-snap-detail.is-incorrect .question-snap-card {
	border-color: rgba(215, 69, 110, 0.3);
	background: rgba(255, 247, 249, 0.82);
}

.question-snap-detail.is-open .question-snap-card {
	border-color: rgba(80, 140, 210, 0.24);
	background: rgba(247, 251, 255, 0.82);
}

.question-snap-topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.question-snap-topline strong {
	font-size: 17px;
	line-height: 1;
}

.question-snap-topline .student-status-pill {
	min-height: 22px;
	padding: 0 7px;
	font-size: 9px;
	letter-spacing: 0.04em;
}

.question-snap-type {
	display: -webkit-box;
	min-height: 2.4em;
	overflow: hidden;
	color: rgba(36, 23, 10, 0.76);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.question-snap-meta {
	overflow: hidden;
	color: rgba(36, 23, 10, 0.58);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.question-snap-expanded {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 8px;
	padding: 16px;
	border-radius: 8px;
	border: 1px solid rgba(17, 17, 17, 0.07);
	background: rgba(255, 255, 255, 0.84);
}

.question-snap-expanded .student-stat-row {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.result-more-details {
	border-radius: 8px;
	border: 1px solid rgba(17, 17, 17, 0.06);
	background: rgba(255, 255, 255, 0.58);
}

.result-more-details > summary {
	padding: 12px 14px;
	color: rgba(36, 23, 10, 0.72);
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}

.result-more-details[open] {
	padding-bottom: 14px;
}

.result-more-details[open] > .result-json-grid,
.result-more-details[open] > .result-event-section {
	margin: 0 14px 14px;
}

.result-json-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 14px;
}

.result-json-card,
.result-event-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	border-radius: var(--squircle-md);
	border: 1px solid rgba(17, 17, 17, 0.06);
	background: rgba(255, 255, 255, 0.72);
}

.result-data-list {
	display: grid;
	gap: 8px;
}

.result-data-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.result-data-row:first-child {
	padding-top: 0;
	border-top: 0;
}

.result-data-row strong {
	max-width: 68%;
	color: var(--text);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
	text-align: right;
	word-break: break-word;
}

.result-chip-list {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 4px;
}

.result-chip {
	display: inline-flex;
	align-items: center;
	min-height: 20px;
	padding: 3px 7px;
	border-radius: 999px;
	background: rgba(214, 166, 58, 0.14);
	color: rgba(36, 23, 10, 0.78);
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
}

.result-event-section {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.result-event-list {
	display: grid;
	gap: 12px;
}

.results-task-attempts {
	display: grid;
	gap: 18px;
}

.task-attempt-group {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 18px;
	border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.task-attempt-group:first-child {
	padding-top: 0;
	border-top: 0;
}

.attempt-visual-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	border-radius: var(--squircle-md);
	border: 1px solid rgba(17, 17, 17, 0.06);
	background: rgba(255, 252, 245, 0.76);
}

.attempt-crossword-board {
	display: grid;
	grid-template-columns: repeat(var(--crossword-cols), minmax(0, 44px));
	grid-template-rows: repeat(var(--crossword-rows), minmax(0, 44px));
	justify-content: start;
	gap: 0;
	width: fit-content;
}

.attempt-crossword-cell {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 2px solid #151515;
	background: #fffdf8;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	color: #111111;
	box-sizing: border-box;
}

.attempt-crossword-cell.is-empty {
	border-color: transparent;
	background: transparent;
}

.attempt-crossword-cell.is-operator {
	background: #ffffff;
}

.attempt-crossword-cell.is-value {
	background: rgba(224, 183, 79, 0.18);
}

.attempt-crossword-cell.is-answer.is-correct {
	background: rgba(92, 181, 92, 0.2);
}

.attempt-crossword-cell.is-answer.is-incorrect {
	background: rgba(215, 69, 110, 0.18);
}

.attempt-crossword-cell.is-answer.is-unanswered {
	background: rgba(17, 17, 17, 0.05);
}

.attempt-question-card.is-correct {
	border-color: rgba(62, 152, 77, 0.24);
}

.attempt-question-card.is-incorrect {
	border-color: rgba(215, 69, 110, 0.24);
}

body.dark .result-attempt-card,
body.dark .attempt-question-card {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.08);
	color: #fff4db;
}

body.dark .result-task-summary-line .body {
	color: rgba(255, 244, 219, 0.62);
}

body.dark .result-task-status {
	background: rgba(61, 155, 80, 0.2);
	color: #bfe8c5;
}

body.dark .result-task-status.is-closed {
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 244, 219, 0.68);
}

body.dark .result-task-status.is-draft {
	background: rgba(244, 190, 75, 0.16);
	color: #f4d58b;
}

body.dark .result-task-action {
	border-color: rgba(244, 190, 75, 0.22);
	background: rgba(255, 255, 255, 0.06);
	color: #f4d58b;
}

body.dark .result-task-action:hover,
body.dark .result-task-action:focus-visible {
	background: rgba(244, 190, 75, 0.14);
}

body.dark .result-task-action.is-danger {
	border-color: rgba(255, 125, 160, 0.24);
	background: rgba(255, 125, 160, 0.1);
	color: #ff9cb6;
}

body.dark .result-task-action.is-danger:hover,
body.dark .result-task-action.is-danger:focus-visible {
	background: rgba(255, 125, 160, 0.18);
}

body.dark .result-json-card,
body.dark .result-event-card {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.08);
}

body.dark .results-overview-card,
body.dark .student-result-card,
body.dark .student-result-panel,
body.dark .question-snap-card,
body.dark .question-snap-expanded,
body.dark .result-more-details {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.08);
	color: #fff4db;
}

body.dark .result-refresh-button {
	border-color: rgba(244, 190, 75, 0.28);
	background: rgba(244, 190, 75, 0.12);
	color: #f4d58b;
}

body.dark .result-setup-inline > summary {
	border-color: rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.05);
	color: rgba(255, 244, 219, 0.74);
}

body.dark .result-setup-inline > summary:hover,
body.dark .result-setup-inline > summary:focus-visible,
body.dark .result-setup-inline[open] > summary {
	background: rgba(255, 255, 255, 0.08);
}

body.dark .result-setup-panel {
	border-color: rgba(255, 255, 255, 0.08);
	background: rgba(34, 28, 20, 0.98);
	box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
}

body.dark .result-refresh-button:hover,
body.dark .result-refresh-button:focus-visible {
	background: rgba(244, 190, 75, 0.2);
}

body.dark .student-result-card:hover,
body.dark .student-result-card:focus-visible {
	background: rgba(255, 255, 255, 0.07);
}

body.dark .student-result-detail.is-complete .student-result-card {
	border-color: rgba(92, 181, 92, 0.34);
	background: rgba(92, 181, 92, 0.08);
}

body.dark .student-result-detail.is-complete .student-status-pill {
	background: rgba(92, 181, 92, 0.18);
	color: #b9f0c1;
}

body.dark .student-result-detail.is-in-progress .student-result-card {
	border-color: rgba(214, 166, 58, 0.36);
	background: rgba(214, 166, 58, 0.1);
}

body.dark .student-result-detail.is-in-progress .student-status-pill {
	background: rgba(214, 166, 58, 0.18);
	color: #f4d58b;
}

body.dark .student-result-detail.is-not-started .student-result-card {
	border-color: rgba(215, 69, 110, 0.34);
	background: rgba(215, 69, 110, 0.08);
}

body.dark .student-result-detail.is-not-started .student-status-pill {
	background: rgba(215, 69, 110, 0.18);
	color: #ffb7c9;
}

body.dark .student-result-metrics small {
	color: rgba(255, 244, 219, 0.58);
}

body.dark .question-snap-card:hover,
body.dark .question-snap-card:focus-visible,
body.dark .question-snap-detail.is-open .question-snap-card {
	background: rgba(255, 255, 255, 0.07);
}

body.dark .question-snap-detail.is-correct .question-snap-card {
	border-color: rgba(92, 181, 92, 0.3);
}

body.dark .question-snap-detail.is-incorrect .question-snap-card {
	border-color: rgba(215, 69, 110, 0.32);
	background: rgba(215, 69, 110, 0.08);
}

body.dark .question-snap-type {
	color: rgba(255, 244, 219, 0.82);
}

body.dark .question-snap-meta,
body.dark .result-more-details > summary {
	color: rgba(255, 244, 219, 0.62);
}

body.dark .task-attempt-group {
	border-top-color: rgba(255, 255, 255, 0.08);
}

body.dark .attempt-visual-card {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.08);
}

body.dark .result-data-row {
	border-top-color: rgba(255, 255, 255, 0.08);
}

body.dark .result-data-row strong {
	color: #fff4db;
}

body.dark .result-chip {
	background: rgba(214, 166, 58, 0.18);
	color: #fff4db;
}

body.dark .attempt-crossword-cell {
	border-color: rgba(255, 255, 255, 0.84);
	background: rgba(255, 255, 255, 0.06);
	color: #ffffff;
}

body.dark .attempt-crossword-cell.is-empty {
	border-color: transparent;
	background: transparent;
}

body.dark .attempt-crossword-cell.is-value {
	background: rgba(224, 183, 79, 0.18);
}

body.dark .attempt-crossword-cell.is-answer.is-correct {
	background: rgba(92, 181, 92, 0.2);
}

body.dark .attempt-crossword-cell.is-answer.is-incorrect {
	background: rgba(215, 69, 110, 0.18);
}

body.dark .attempt-crossword-cell.is-answer.is-unanswered {
	background: rgba(255, 255, 255, 0.08);
}

body.dark .result-attempt-card.is-active {
	background: rgba(214, 166, 58, 0.12);
}

body.dark .result-task-bubble {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.08);
}

body.dark .results-detail {
	background: rgba(255, 255, 255, 0.03);
	border-color: rgba(255, 255, 255, 0.08);
}

body.dark .results-summary-item {
	background: rgba(255, 255, 255, 0.05);
}

.class-roster-input {
	min-height: 220px;
	padding: 16px 18px;
	resize: vertical;
}

.class-list {
	display: grid;
	gap: 18px;
	overflow: visible;
}

.class-list[hidden] {
	display: none !important;
}

.student-accordion-list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	overflow: visible;
}

.student-accordion-item {
	display: grid;
	gap: 8px;
	min-width: 0;
	position: relative;
}

.student-accordion-toggle {
	--squircle-radius: 8px;
	display: grid;
	align-items: stretch;
	width: 100%;
	min-height: 112px;
	padding: 12px;
	border: 1px solid rgba(17, 17, 17, 0.08);
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 10px 22px rgba(60, 66, 87, 0.055);
	color: var(--text);
	font: inherit;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.student-accordion-toggle .student-accordion-meta {
	display: grid;
	grid-template-rows: auto 1fr;
	align-content: space-between;
	gap: 8px;
	width: 100%;
	min-width: 0;
	min-height: 86px;
}

.student-accordion-toggle:hover,
.student-accordion-toggle:focus-visible {
	border-color: rgba(214, 166, 58, 0.28);
	background: rgba(255, 248, 233, 0.72);
	box-shadow: 0 12px 24px rgba(60, 66, 87, 0.075);
	transform: translateY(-1px);
}

.student-accordion-copy {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.student-accordion-name {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: 0;
}

.student-accordion-class {
	font-size: 12px;
	font-weight: 800;
	line-height: 1.1;
	color: rgba(36, 23, 10, 0.58);
	text-align: left;
}

.student-info-popover {
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	z-index: 30;
	width: min(320px, calc(100vw - 48px));
	max-height: min(420px, calc(100vh - 180px));
	padding: 14px;
	border: 1px solid rgba(17, 17, 17, 0.08);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 18px 38px rgba(60, 66, 87, 0.16);
	color: var(--text);
	opacity: 0;
	overflow-y: auto;
	pointer-events: none;
	transform: translate(-50%, -4px);
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
	visibility: hidden;
}

.student-accordion-item:hover,
.student-accordion-item:focus-within {
	z-index: 25;
}

.student-accordion-item:hover .student-info-popover,
.student-accordion-item:focus-within .student-info-popover {
	opacity: 1;
	transform: translate(-50%, 0);
	visibility: visible;
}

.student-info-popover-title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: 0;
}

.student-info-list {
	display: grid;
	gap: 7px;
	margin: 0;
}

.student-info-row {
	display: grid;
	grid-template-columns: minmax(82px, 0.42fr) minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	min-width: 0;
}

.student-info-row dt,
.student-info-row dd {
	margin: 0;
	min-width: 0;
	font-size: 12px;
	line-height: 1.25;
}

.student-info-row dt {
	color: rgba(36, 23, 10, 0.58);
	font-weight: 800;
}

.student-info-row dd {
	color: var(--text);
	font-weight: 800;
	overflow-wrap: anywhere;
}

.student-profile-page {
	display: grid;
	gap: 16px;
	overflow: visible;
}

.student-profile-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
}

.student-profile-back {
	flex: 0 0 auto;
}

.student-profile-title {
	display: grid;
	gap: 8px;
	min-width: 0;
	text-align: right;
}

.student-profile-title h3 {
	margin: 0;
	font-size: 42px;
	font-weight: 900;
	line-height: 0.94;
	letter-spacing: 0;
}

.student-profile-title .student-row-tags {
	margin-left: 0;
	justify-content: flex-end;
}

.student-profile-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
	gap: 14px;
}

.student-profile-section {
	--squircle-radius: var(--squircle-md);
	display: grid;
	gap: 14px;
	padding: 18px;
	border: 1px solid rgba(17, 17, 17, 0.06);
	border-radius: var(--squircle-md);
	background: rgba(248, 252, 252, 0.96);
	box-shadow: 0 12px 28px rgba(60, 66, 87, 0.06);
}

.student-profile-section h4 {
	margin: 0;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: 0;
}

.student-profile-section .student-dashboard-card {
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.student-task-history {
	display: grid;
	gap: 10px;
}

.student-task-history-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
	gap: 14px;
	align-items: center;
	padding: 14px;
	border: 1px solid rgba(17, 17, 17, 0.06);
	border-radius: 8px;
	background: #ffffff;
}

.student-task-history-card h5 {
	margin: 0 0 5px;
	font-size: 16px;
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: 0;
}

.student-task-history-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.student-task-history-stats span {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.student-task-history-stats strong {
	font-size: 16px;
	font-weight: 900;
	line-height: 1;
	color: var(--text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.student-task-history-stats small {
	color: rgba(36, 23, 10, 0.58);
	font-size: 10px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

@media (max-width: 1180px) {
	.student-accordion-list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.student-accordion-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.student-profile-grid,
	.student-task-history-card {
		grid-template-columns: 1fr;
	}

	.student-task-history-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.student-accordion-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.student-profile-header {
		flex-direction: column;
	}

	.student-profile-title {
		text-align: left;
	}

	.student-profile-title h3 {
		font-size: 34px;
	}

	.student-profile-title .student-row-tags {
		justify-content: flex-start;
	}
}

@media (max-width: 460px) {
	.student-accordion-list {
		grid-template-columns: 1fr;
	}
}

body.dark .student-accordion-toggle {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
	color: #f7f6f2;
}

body.dark .student-accordion-toggle:hover,
body.dark .student-accordion-toggle:focus-visible {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(214, 166, 58, 0.32);
}

body.dark .student-accordion-class {
	color: rgba(247, 246, 242, 0.72);
}

body.dark .student-info-popover,
body.dark .student-profile-section,
body.dark .student-task-history-card {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.1);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
	color: #f7f6f2;
}

body.dark .student-info-row dt,
body.dark .student-task-history-stats small {
	color: rgba(247, 246, 242, 0.66);
}

body.dark .student-info-row dd,
body.dark .student-task-history-stats strong {
	color: #f7f6f2;
}

.class-card {
	--squircle-radius: var(--squircle-md);
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 22px;
	border-radius: var(--squircle-md);
	background: #ffffff;
	border: 1px solid rgba(17, 17, 17, 0.06);
	box-shadow: 0 14px 30px rgba(60, 66, 87, 0.06);
}

body.dark .class-card {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.class-summary-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.class-summary-card {
	--squircle-radius: var(--squircle-md);
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px;
	border-radius: var(--squircle-md);
	background: rgba(241, 249, 251, 0.96);
	border: 1px solid rgba(17, 17, 17, 0.05);
}

body.dark .class-summary-card {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.08);
}

.class-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.class-code-chip {
	--squircle-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px;
	background: rgba(214, 166, 58, 0.14);
	color: var(--brand-ink);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.dark .class-code-chip {
	background: rgba(214, 166, 58, 0.2);
	color: #fff4db;
}

.student-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.student-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.student-dashboard-card {
	--squircle-radius: var(--squircle-md);
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 18px;
	border-radius: var(--squircle-md);
	background: rgba(248, 252, 252, 0.96);
	border: 1px solid rgba(17, 17, 17, 0.05);
	box-shadow: 0 12px 28px rgba(60, 66, 87, 0.06);
}

body.dark .student-dashboard-card {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.student-dashboard-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.student-dashboard-header .label {
	font-size: 20px;
}

.student-task-title {
	min-height: 3em;
}

.student-status-pill {
	--squircle-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 0 12px;
	background: rgba(214, 166, 58, 0.14);
	color: var(--brand-ink);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

body.dark .student-status-pill {
	background: rgba(214, 166, 58, 0.2);
	color: #fff4db;
}

.student-stat-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.student-stat-value {
	margin: 6px 0 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
}

.student-chip {
	--squircle-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 14px;
	background: rgba(17, 17, 17, 0.05);
	color: var(--text);
	font-size: 14px;
	font-weight: 600;
}

body.dark .student-chip {
	background: rgba(255, 255, 255, 0.08);
	color: #fff4db;
}

.student-chip-muted {
	color: var(--text-secondary);
}

.account-inline-link {
	color: var(--brand-gold-deep);
	font-weight: 600;
}

body.dark .account-inline-link {
	color: var(--brand-gold-soft);
}

.account-status[data-state="error"] {
	color: #bb3e1e;
}

body.dark .account-status[data-state="error"] {
	color: #ff9c74;
}

.join-landing {
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(100%, 980px);
	margin: 0 auto;
	padding: 32px var(--layout-gutter);
}

.join-entry-stage,
.join-roster-stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.join-entry-stage[hidden],
.join-roster-stage[hidden] {
	display: none !important;
}

.join-page.is-roster-loaded .join-landing {
	padding-top: clamp(18px, 3svh, 32px);
	padding-bottom: clamp(18px, 3svh, 32px);
	align-items: center;
}

.join-simple-form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	width: 100%;
}

.join-teacher-line {
	margin: 0;
	min-height: 1.3em;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--text-secondary);
}

.join-simple-title {
	margin: 0;
	font-size: clamp(52px, 8vw, 92px);
	line-height: 0.92;
	letter-spacing: -0.05em;
	text-align: center;
	color: var(--heading);
}

.join-simple-code {
	width: min(100%, 360px);
	min-height: 104px;
	padding: 0 24px;
	border: 2px solid rgba(17, 17, 17, 0.08);
	border-radius: var(--squircle-md);
	background: rgba(255, 255, 255, 0.92);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: clamp(34px, 6vw, 54px);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.18em;
	text-align: center;
	text-transform: uppercase;
	box-shadow: 0 24px 44px rgba(60, 66, 87, 0.08);
}

.join-simple-code:focus {
	outline: none;
	border-color: rgba(216, 106, 22, 0.3);
	box-shadow:
		0 0 0 6px rgba(224, 183, 79, 0.14),
		0 24px 44px rgba(60, 66, 87, 0.12);
}

.join-simple-status {
	margin: 0;
	min-height: 1.4em;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--text-secondary);
	text-align: center;
}

.join-simple-status[data-state="error"] {
	color: #bb3e1e;
}

.join-roster-stage {
	position: relative;
	gap: clamp(12px, 2svh, 20px);
	max-width: 1040px;
	margin: 0 auto;
}

.join-roster-welcome {
	margin: 0;
	font-size: clamp(40px, 7vw, 78px);
	line-height: 0.94;
	text-align: center;
	color: var(--heading);
}

.join-roster-secondary {
	margin: -6px 0 0;
	max-width: 32ch;
	font-size: clamp(16px, 2vw, 20px);
	font-weight: 500;
	line-height: 1.25;
	text-align: center;
	color: var(--text-secondary);
}

.join-confirm-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(255, 251, 244, 0.82);
	backdrop-filter: blur(8px);
}

.join-confirm-overlay[hidden] {
	display: none !important;
}

.join-confirm-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	width: min(100%, 420px);
	padding: 28px;
	border-radius: var(--squircle-md);
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(17, 17, 17, 0.08);
	box-shadow: 0 26px 60px rgba(60, 66, 87, 0.18);
}

.join-confirm-copy {
	margin: 0;
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.04em;
	text-align: center;
	color: var(--heading);
}

.join-confirm-lead {
	display: inline-block;
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--heading);
	transition: opacity 0.28s ease;
}

.join-confirm-name {
	display: inline-block;
	font-size: clamp(34px, 5vw, 54px);
	color: #5b9fe8;
	transition: color 0.28s ease;
}

.join-confirm-actions {
	position: relative;
	width: min(100%, 260px);
	height: 48px;
}

.join-confirm-actions .button {
	position: absolute;
	top: 0;
	min-width: 108px;
	transition:
		left 0.42s ease,
		right 0.42s ease,
		transform 0.42s ease,
		opacity 0.24s ease,
		width 0.24s ease,
		padding 0.24s ease,
		margin 0.24s ease,
		border-width 0.24s ease;
}

.join-confirm-actions [data-join-confirm-no] {
	left: 0;
}

.join-confirm-actions [data-join-confirm-yes] {
	right: 0;
}

.join-confirm-card.is-confirmed .join-confirm-name {
	color: #5cb55c;
}

.join-confirm-card.is-confirmed .join-confirm-lead {
	opacity: 0;
}

.join-confirm-card.is-accepting [data-join-confirm-no],
.join-confirm-card.is-rejecting [data-join-confirm-yes] {
	opacity: 0;
	transform: scale(0.92);
	pointer-events: none;
	width: 0;
	min-width: 0;
	padding-left: 0;
	padding-right: 0;
	margin: 0;
	border-width: 0;
	overflow: hidden;
}

.join-confirm-card.is-accepting [data-join-confirm-yes] {
	left: 50%;
	right: auto;
	transform: translateX(-50%);
}

.join-confirm-card.is-rejecting [data-join-confirm-no] {
	left: 50%;
	transform: translateX(-50%);
}

.join-confirm-yes {
	background: #5cb55c;
	color: #ffffff;
	border-color: transparent;
}

.join-confirm-yes-label {
	display: inline-block;
	transition:
		opacity 0.16s ease,
		transform 0.16s ease,
		filter 0.16s ease;
}

.join-confirm-yes.is-label-morph .join-confirm-yes-label {
	opacity: 0;
	transform: scale(0.88);
	filter: blur(6px);
}

.join-confirm-yes:hover,
.join-confirm-yes:focus-visible {
	background: #4aa64a;
}

.join-confirm-actions [data-join-confirm-no] {
	border: 1px solid #111111;
	background: #ffffff;
	color: #111111;
}

.join-confirm-actions [data-join-confirm-no]:hover,
.join-confirm-actions [data-join-confirm-no]:focus-visible {
	background: rgba(215, 69, 110, 0.14);
	border-color: rgba(215, 69, 110, 0.6);
	color: #111111;
}

body.dark .join-confirm-overlay {
	background: rgba(12, 12, 12, 0.58);
}

body.dark .join-confirm-card {
	background: rgba(24, 24, 24, 0.96);
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
}

body.dark .join-confirm-copy {
	color: #fff4db;
}

.dashboard-secondary-input {
	min-height: 108px;
	padding: 16px 18px;
	resize: vertical;
	font-weight: 400;
	line-height: 1.45;
}

.join-roster-title {
	margin: 0;
	font-size: clamp(42px, 6vw, 72px);
	line-height: 0.96;
	letter-spacing: -0.05em;
}

.join-roster-copy {
	margin: 0;
	font-size: 18px;
	line-height: 1.4;
	color: var(--text-secondary);
}

body.dark .join-simple-code {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	box-shadow: 0 24px 44px rgba(0, 0, 0, 0.18);
}

body.dark .join-simple-code:focus {
	border-color: rgba(224, 183, 79, 0.38);
	box-shadow:
		0 0 0 6px rgba(224, 183, 79, 0.14),
		0 24px 44px rgba(0, 0, 0, 0.24);
}

body.dark .join-simple-status[data-state="error"] {
	color: #ff9c74;
}

.student-roster {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: clamp(8px, 1.4svh, 12px);
	width: min(100%, 1040px);
}

.student-name-button {
	--squircle-radius: var(--squircle-md);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(46px, 7svh, 62px);
	padding: 10px 14px;
	border: 1px solid rgba(17, 17, 17, 0.08);
	background: rgba(255, 255, 255, 0.84);
	color: var(--text);
	font: inherit;
	font-size: clamp(15px, 1.6vw, 18px);
	font-weight: 600;
	line-height: 1.1;
	text-align: center;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.student-name-button:hover,
.student-name-button:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 18px 34px rgba(60, 66, 87, 0.12);
	border-color: rgba(216, 106, 22, 0.28);
}

body.dark .student-name-button {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.08);
	color: #fff4db;
}

body.dark .student-name-button:hover,
body.dark .student-name-button:focus-visible {
	box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.question-set-shell {
	min-height: calc(100vh - 180px);
	display: flex;
	align-items: center;
	justify-content: center;
}

.question-set-form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	width: 100%;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.question-preview-tools {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: min(100%, 980px);
	margin: 0 auto 12px;
}

.question-preview-type-list {
	display: grid;
	grid-template-columns: 1fr;
	align-items: start;
	justify-content: center;
	gap: 10px;
	width: 100%;
}

.question-preview-toprow {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	width: 100%;
}

.question-preview-search {
	display: grid;
	gap: 8px;
	flex: 0 0 320px;
	max-width: 320px;
	margin: 0;
}

.question-preview-search-box {
	display: grid;
	grid-template-columns: auto minmax(120px, 1fr);
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border: 1px solid rgba(36, 23, 10, 0.14);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.64);
}

.question-preview-search-panel {
	display: grid;
	gap: 8px;
	width: min(100%, 980px);
	margin: 0 auto;
}

.question-preview-search-panel[hidden] {
	display: none;
}

.question-preview-search-box span {
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.question-preview-search-box input {
	width: 100%;
	min-height: 34px;
	border: 0;
	background: transparent;
	color: var(--text);
	font: inherit;
	font-size: 14px;
	font-weight: 750;
	outline: none;
}

.question-preview-search-meta {
	min-height: 16px;
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 800;
	text-align: center;
}

.question-preview-search-results {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.question-preview-search-results[hidden] {
	display: none;
}

.question-preview-search-result {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid rgba(36, 23, 10, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	color: var(--text);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.question-preview-search-result[hidden] {
	display: none;
}

.question-preview-search-result:hover,
.question-preview-search-result.is-current {
	background: rgba(224, 183, 79, 0.3);
	border-color: rgba(224, 183, 79, 0.9);
}

.question-preview-tools.is-searching-tasks .question-preview-tabs,
.question-preview-tools.is-searching-tasks .question-preview-group,
.question-preview-tools.is-searching-tasks .question-preview-actions,
.question-preview-tools.is-searching-tasks .question-preview-answer,
.question-set-page.is-searching-preview-tasks [data-question-stage] {
	display: none;
}

.question-preview-tabs {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	flex-wrap: wrap;
	flex: 1 1 0;
	min-width: 0;
}

.question-preview-browse-toggle {
	display: inline-flex;
	align-items: center;
	padding: 3px;
	border: 1px solid rgba(36, 23, 10, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.62);
	flex: 0 0 auto;
}

.question-preview-browse-option {
	min-height: 30px;
	padding: 0 11px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--text-secondary);
	font: inherit;
	font-size: 12px;
	font-weight: 850;
	cursor: pointer;
}

.question-preview-browse-option.is-active {
	background: #17120a;
	color: #ffffff;
}

.question-preview-tabs[hidden],
.question-preview-actions[hidden],
.question-preview-answer[hidden] {
	display: none;
}

.question-preview-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 12px;
	border: 1px solid rgba(36, 23, 10, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.54);
	color: var(--text-secondary);
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}

.question-preview-tab.is-active {
	background: #111111;
	border-color: #111111;
	color: #ffffff;
}

@media (max-width: 900px) {
	.question-preview-toprow {
		display: grid;
		grid-template-columns: 1fr;
	}

	.question-preview-search {
		width: 100%;
		max-width: none;
	}

	.question-preview-tabs {
		justify-content: center;
	}
}

.question-preview-subtabs {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.question-preview-subtab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 0 11px;
	border: 1px solid rgba(36, 23, 10, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.42);
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
}

.question-preview-subtab.is-active {
	background: rgba(224, 183, 79, 0.84);
	border-color: rgba(224, 183, 79, 0.9);
	color: #17120a;
}

.question-preview-strategytabs {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	flex-wrap: wrap;
}

.question-preview-strategytab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 0 10px;
	border: 1px solid rgba(210, 106, 25, 0.2);
	border-radius: 999px;
	background: rgba(255, 248, 234, 0.64);
	color: #8b4b17;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
}

.question-preview-strategytab.is-active {
	border-color: #d26a19;
	background: #d26a19;
	color: #ffffff;
}

.question-preview-group {
	display: grid;
	gap: 7px;
	align-content: start;
}

.question-preview-group[hidden] {
	display: none;
}

.question-preview-group-chips {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.question-preview-group-chips:empty {
	display: none;
}

.question-preview-task-catalogue {
	display: grid;
	gap: 12px;
	width: min(100%, 1120px);
	margin: 4px auto 8px;
}

.question-preview-task-catalogue-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 14px;
	padding: 2px 2px 0;
}

.question-preview-task-catalogue-heading h3 {
	margin: 2px 0 0;
	font-size: 19px;
	line-height: 1.1;
}

.question-preview-task-catalogue-heading .meta {
	margin: 0;
}

.question-preview-catalogue-filters {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 7px;
	flex-wrap: wrap;
}

.question-preview-catalogue-filter {
	min-height: 32px;
	padding: 0 11px;
	border: 1px solid rgba(36, 23, 10, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.62);
	color: var(--text-secondary);
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.question-preview-catalogue-filter.is-active {
	border-color: rgba(224, 183, 79, 0.9);
	background: rgba(224, 183, 79, 0.52);
	color: #17120a;
}

.question-preview-task-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 9px;
}

.question-preview-task-card {
	display: grid;
	align-content: start;
	gap: 6px;
	min-height: 114px;
	padding: 13px;
	border: 1px solid rgba(36, 23, 10, 0.14);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.66);
	color: var(--text);
	text-decoration: none;
	transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.question-preview-task-card:hover,
.question-preview-task-card.is-current {
	border-color: rgba(224, 183, 79, 0.9);
	background: rgba(255, 250, 239, 0.96);
	transform: translateY(-2px);
}

.question-preview-task-card[hidden] {
	display: none;
}

.question-preview-task-card-meta,
.question-preview-task-card-group {
	color: var(--text-secondary);
	font-size: 11px;
	font-weight: 850;
}

.question-preview-task-card-meta {
	color: #9a6519;
}

.question-preview-task-card-title {
	display: block;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.3;
}

.question-preview-task-card-group {
	margin-top: auto;
	padding-top: 4px;
}

.question-preview-curriculum {
	display: grid;
	gap: 8px;
	width: min(100%, 1120px);
	margin: 0 auto 8px;
}

.question-preview-curriculum-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	width: min(100%, 1120px);
	margin: 0 auto 10px;
}

.question-preview-grade-filters {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
}

.question-preview-grade-filter-label {
	margin-right: 2px;
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 850;
}

.question-preview-grade-options,
.question-preview-grade-actions {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.question-preview-grade-option,
.question-preview-grade-action {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	border: 1px solid rgba(36, 23, 10, 0.14);
	background: rgba(255, 255, 255, 0.6);
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 850;
	cursor: pointer;
}

.question-preview-grade-option {
	min-width: 34px;
	padding: 0 9px;
	border-radius: 9px;
}

.question-preview-grade-option.is-active {
	background: rgba(224, 183, 79, 0.3);
	border-color: rgba(224, 183, 79, 0.9);
	color: var(--text);
}

.question-preview-grade-action {
	padding: 0 11px;
	border-radius: 999px;
}

.question-preview-grade-action:hover {
	background: rgba(241, 207, 120, 0.22);
	border-color: rgba(224, 183, 79, 0.65);
}

.question-preview-authority-toggle {
	display: flex;
	justify-content: center;
	gap: 6px;
}

.question-preview-authority-option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 16px;
	border: 1px solid rgba(36, 23, 10, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.6);
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 850;
	text-decoration: none;
}

.question-preview-authority-option:hover,
.question-preview-authority-option.is-active {
	background: rgba(224, 183, 79, 0.3);
	border-color: rgba(224, 183, 79, 0.9);
	color: var(--text);
}

.question-preview-curriculum-title {
	margin: 0;
	font-size: 13px;
	font-weight: 900;
	text-align: left;
	color: var(--text-secondary);
}

.question-preview-curriculum-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.question-preview-curriculum-source {
	font-size: 12px;
	font-weight: 800;
	color: var(--text-secondary);
}

.question-preview-curriculum-table {
	display: grid;
	gap: 7px;
	align-content: start;
	grid-auto-rows: max-content;
}

.question-preview-curriculum-table.is-scrollable {
	max-height: 620px;
	overflow-y: auto;
	padding-right: 4px;
}

.question-preview-curriculum-table.is-scrollable::-webkit-scrollbar {
	width: 10px;
}

.question-preview-curriculum-table.is-scrollable::-webkit-scrollbar-track {
	background: rgba(36, 23, 10, 0.06);
	border-radius: 999px;
}

.question-preview-curriculum-table.is-scrollable::-webkit-scrollbar-thumb {
	background: rgba(36, 23, 10, 0.28);
	border-radius: 999px;
	border: 2px solid transparent;
	background-clip: padding-box;
}

.question-preview-curriculum-point[hidden] {
	display: none;
}

.question-preview-curriculum-point {
	scroll-margin-top: 64px;
	border: 1px solid rgba(36, 23, 10, 0.14);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.45);
	overflow: hidden;
	transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.question-preview-curriculum-point[open] {
	border-color: var(--brand-gold);
	background: rgba(241, 207, 120, 0.18);
	box-shadow: inset 0 0 0 1px rgba(224, 183, 79, 0.18);
}

.question-preview-curriculum-point[open] .question-preview-curriculum-summary {
	background: rgba(241, 207, 120, 0.22);
}

.question-preview-curriculum-summary {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	cursor: pointer;
	list-style: none;
}

.question-preview-curriculum-summary::-webkit-details-marker {
	display: none;
}

.question-preview-curriculum-summary::before {
	content: "▸";
	font-size: 12px;
	color: var(--text-secondary);
	transition: transform 0.15s ease;
}

.question-preview-curriculum-point[open] .question-preview-curriculum-summary::before {
	color: var(--brand-gold-deep);
	transform: rotate(90deg);
}

.question-preview-curriculum-point[open] .question-preview-curriculum-code,
.question-preview-curriculum-point[open] .question-preview-curriculum-grade {
	border-color: rgba(224, 183, 79, 0.7);
	background: rgba(255, 251, 244, 0.86);
}

.question-joke-key-wrap {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 14px;
}

.question-joke-key-title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-secondary);
}

.question-joke-key-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	background: transparent;
	border: 3px solid #111111;
}

.question-joke-key-table th,
.question-joke-key-table td {
	border: 2px solid #111111;
	padding: 2px 1px;
	text-align: center;
	font-size: 13px;
	line-height: 1.2;
}

.question-joke-key-table th {
	font-weight: 800;
	background: transparent;
}

.question-joke-key-table td {
	font-weight: 700;
	background: transparent;
}

.question-joke-key-table tr:nth-child(2) th,
.question-joke-key-table tr:nth-child(2) td,
.question-joke-key-table tr:nth-child(4) th,
.question-joke-key-table tr:nth-child(4) td {
	border-bottom-width: 4px;
}

.question-joke-key-letter-chip {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	min-height: 30px;
	padding: 2px 8px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(36, 23, 10, 0.14);
	font-weight: 800;
	color: var(--text);
}

.question-joke-key-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 30px;
	font-size: 17px;
	font-weight: 900;
	line-height: 1;
	color: var(--text);
	background: transparent;
}

.question-joke-answer-grid {
	--joke-cell-width: 88px;
	--joke-cell-equation-height: 46px;
	--joke-equation-font-size: 22px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	align-items: flex-end;
	align-content: flex-start;
}

.question-joke-word {
	display: inline-flex;
	flex-wrap: nowrap;
	gap: 8px;
	align-items: flex-end;
	white-space: nowrap;
	min-width: 0;
}

.question-joke-word-gap {
	display: inline-block;
	width: 20px;
	min-width: 20px;
	height: 1px;
}

.question-joke-letter-bank {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.question-joke-letter-tile {
	min-width: 38px;
	height: 38px;
	border: 2px solid rgba(36, 23, 10, 0.28);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.9);
	font-size: 18px;
	font-weight: 800;
	color: var(--text);
	cursor: grab;
}

.question-joke-letter-tile:active {
	cursor: grabbing;
}

.question-joke-letter-tile.is-active {
	border-color: rgba(224, 183, 79, 0.95);
	background: rgba(255, 248, 228, 0.96);
}

.question-joke-letter-tile.is-dragging {
	opacity: 0.72;
	box-shadow: 0 10px 20px rgba(36, 23, 10, 0.16);
}

.question-joke-cell {
	display: grid;
	grid-template-rows: auto auto;
	width: var(--joke-cell-width);
	border: 1px solid rgba(36, 23, 10, 0.24);
	background: rgba(255, 255, 255, 0.5);
}

.question-joke-cell.is-correct {
	border-color: rgba(47, 135, 83, 0.85);
	background: rgba(225, 245, 231, 0.9);
}

.question-joke-cell.is-drop-target {
	border-color: rgba(224, 183, 79, 0.95);
	box-shadow: inset 0 0 0 2px rgba(224, 183, 79, 0.26);
}

.question-joke-cell-equation {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--joke-cell-equation-height);
	height: var(--joke-cell-equation-height);
	padding: 0 4px;
	font-size: var(--joke-equation-font-size);
	font-weight: 700;
	background: rgba(188, 137, 198, 0.14);
	border-bottom: 1px solid rgba(36, 23, 10, 0.24);
	line-height: 1;
	white-space: nowrap;
	overflow: hidden;
}

.question-joke-cell-input {
	width: 100%;
	min-height: 48px;
	border: 0;
	background: transparent;
	text-align: center;
	font-size: 28px;
	font-weight: 800;
	color: var(--text);
	text-transform: uppercase;
}

.question-joke-cell-input:focus {
	outline: 2px solid rgba(224, 183, 79, 0.95);
	outline-offset: -2px;
}

.question-joke-separator {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	min-width: 12px;
	font-size: 28px;
	font-weight: 700;
	color: var(--text-secondary);
}

.question-joke-fraction {
	display: inline-grid;
	grid-template-rows: auto 2px auto;
	align-items: center;
	justify-items: center;
	min-width: 0.8em;
	margin: 0 2px;
	vertical-align: middle;
}

.question-joke-fraction-num,
.question-joke-fraction-den {
	font-size: 0.62em;
	line-height: 1;
}

.question-joke-fraction-bar {
	width: 100%;
	background: currentColor;
	height: 2px;
}

.question-number-joke-letter-hunt {
	width: min(100%, 1060px);
	gap: 24px;
}

.question-number-joke-letter-hunt .question-measurement-title {
	max-width: 14ch;
	text-align: center;
}

.question-joke-hunt-answer-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 22px;
	width: min(100%, 980px);
	margin: 0 auto 8px;
}

.question-joke-hunt-word {
	display: inline-flex;
	gap: 8px;
	white-space: nowrap;
}

.question-joke-hunt-slot {
	min-width: 42px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 6px;
	border: 2px solid #111111;
	background: rgba(255, 255, 255, 0.38);
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
}

.question-joke-hunt-clue-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	flex-wrap: wrap;
	width: 100%;
	margin-top: 8px;
	position: relative;
}

.question-joke-hunt-clue-row .question-equals {
	position: static;
	transform: none;
	font-size: var(--question-font-size);
	line-height: var(--question-line-height);
}

.question-joke-hunt-clue {
	min-height: 0;
	min-width: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	font-size: var(--question-font-size);
	font-weight: 700;
	line-height: var(--question-line-height);
	letter-spacing: var(--question-letter-spacing);
	color: #111111;
	text-align: right;
}

.question-joke-reveal-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(17, 17, 17, 0.55);
	z-index: 30;
}

.question-joke-reveal-card {
	width: min(640px, 100%);
	border: 1px solid rgba(224, 183, 79, 0.46);
	background: rgba(255, 251, 244, 0.98);
	box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
	padding: 22px 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-align: center;
}

.question-joke-reveal-kicker {
	margin: 0;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--brand-gold-deep);
}

.question-joke-reveal-setup {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: var(--text);
}

.question-joke-reveal-punchline {
	margin: 0;
	font-size: 32px;
	font-weight: 900;
	color: var(--brand-ink);
}

.question-joke-reveal-actions {
	display: flex;
	justify-content: center;
	margin-top: 8px;
}

.question-algebra-pattern {
	width: min(100%, 1040px);
	gap: 28px;
}

.question-algebra-pattern .question-measurement-title {
	max-width: 15ch;
}

.algebra-rule-text {
	margin: -6px 0 0;
	color: var(--brand-muted);
	font-size: clamp(1.15rem, 2vw, 1.55rem);
	font-weight: 900;
	text-align: center;
}

.algebra-pattern-row,
.algebra-choice-row,
.algebra-instruction-row {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
	width: 100%;
}

.algebra-pattern-row.is-compact {
	gap: 8px;
	width: auto;
}

.algebra-pattern-tile,
.algebra-pattern-blank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 74px;
	height: 74px;
	border: 4px solid #111111;
	background: #ffffff;
	color: #111111;
	font-size: 20px;
	font-weight: 900;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
}

.algebra-pattern-tile span {
	padding: 0 6px;
	font-size: 16px;
	line-height: 1.05;
	text-transform: none;
}

.algebra-pattern-tile.is-card {
	width: 98px;
	height: 74px;
	border-radius: 10px;
}

.algebra-pattern-tile.is-card span {
	font-size: 18px;
}

.algebra-pattern-tile.is-circle {
	border-radius: 50%;
}

.algebra-pattern-tile.is-square,
.algebra-pattern-tile.is-card,
.algebra-pattern-blank {
	border-radius: 10px;
}

.algebra-pattern-tile.is-triangle {
	width: 0;
	height: 0;
	border-top: 0;
	border-right: 42px solid transparent;
	border-bottom: 74px solid #111111;
	border-left: 42px solid transparent;
	background: transparent;
	position: relative;
}

.algebra-pattern-tile.is-triangle::after {
	content: "";
	position: absolute;
	left: -33px;
	top: 8px;
	width: 0;
	height: 0;
	border-top: 0;
	border-right: 33px solid transparent;
	border-bottom: 58px solid var(--algebra-tile-fill, #ffffff);
	border-left: 33px solid transparent;
}

.algebra-pattern-tile.is-red {
	--algebra-tile-fill: #f07575;
	background: #f07575;
}

.algebra-pattern-tile.is-blue {
	--algebra-tile-fill: #7db7f0;
	background: #7db7f0;
}

.algebra-pattern-tile.is-gold {
	--algebra-tile-fill: #f4d26e;
	background: #f4d26e;
}

.algebra-pattern-tile.is-green {
	--algebra-tile-fill: #8fd08f;
	background: #8fd08f;
}

.algebra-pattern-tile.is-purple {
	--algebra-tile-fill: #c9a4df;
	background: #c9a4df;
}

.algebra-pattern-tile.is-orange {
	--algebra-tile-fill: #f2a45f;
	background: #f2a45f;
}

.algebra-pattern-tile.is-white {
	--algebra-tile-fill: #ffffff;
	background: #ffffff;
}

.algebra-pattern-blank {
	background: rgba(255, 255, 255, 0.38);
	border-style: dashed;
}

.algebra-choice-row {
	gap: 18px;
}

.algebra-choice-row.has-sequences {
	flex-direction: column;
	gap: 12px;
}

.algebra-choice-row.has-text {
	align-items: stretch;
}

.algebra-choice-button {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 104px;
	min-height: 104px;
	padding: 12px;
	border: 3px solid rgba(17, 17, 17, 0.18);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.75);
	cursor: pointer;
}

.algebra-choice-button.is-text {
	min-width: 150px;
	min-height: 72px;
	padding: 14px 18px;
	color: #111111;
	font-size: clamp(1.35rem, 2.8vw, 2rem);
	font-weight: 950;
	line-height: 1.08;
	text-align: center;
}

.algebra-choice-button.is-sequence {
	width: min(100%, 640px);
	min-height: 86px;
	justify-content: center;
}

.algebra-choice-button:hover,
.algebra-choice-button:focus-visible,
.algebra-grid-cell:hover,
.algebra-grid-cell:focus-visible,
.algebra-track-cell:hover,
.algebra-track-cell:focus-visible {
	outline: none;
	border-color: #111111;
}

.algebra-choice-button.is-selected,
.algebra-grid-cell.is-selected,
.algebra-track-cell.is-selected {
	border-color: #111111;
	background: rgba(244, 210, 110, 0.24);
}

.algebra-instruction-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 92px;
	min-height: 50px;
	padding: 0 18px;
	border: 3px solid #111111;
	border-radius: 999px;
	background: #ffffff;
	font-size: 22px;
	font-weight: 900;
	color: #111111;
}

.algebra-grid {
	display: grid;
	grid-template-columns: repeat(var(--algebra-grid-size), minmax(72px, 92px));
	gap: 8px;
	justify-content: center;
}

.algebra-grid-cell,
.algebra-track-cell {
	appearance: none;
	position: relative;
	display: grid;
	place-items: center;
	width: 92px;
	height: 92px;
	border: 3px solid #111111;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
}

.algebra-token {
	display: block;
	width: 46px;
	height: 46px;
	border: 4px solid #111111;
	border-radius: 50%;
	background: #f4d26e;
}

.algebra-track {
	display: grid;
	grid-template-columns: repeat(10, minmax(54px, 74px));
	gap: 7px;
	justify-content: center;
	max-width: 100%;
}

.algebra-track-cell {
	width: 74px;
	height: 74px;
}

.algebra-dice {
	display: grid;
	grid-template-columns: repeat(3, 18px);
	grid-template-rows: repeat(3, 18px);
	gap: 8px;
	width: 102px;
	height: 102px;
	padding: 14px;
	border: 4px solid #111111;
	border-radius: 14px;
	background: #ffffff;
}

.algebra-dice span {
	display: block;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: transparent;
}

.algebra-dice span.is-on {
	background: #111111;
}

.question-balance-seesaw {
	width: min(100%, 1080px);
	gap: 24px;
}

.question-balance-seesaw .question-measurement-title {
	max-width: 16ch;
}

.balance-seesaw-stage {
	position: relative;
	width: min(92vw, 760px);
	height: clamp(250px, 33vw, 330px);
	margin: 0 auto;
}

.balance-seesaw-beam {
	position: absolute;
	top: 58%;
	left: 7%;
	right: 7%;
	height: 34px;
	border: 5px solid #111111;
	border-radius: 12px;
	background: #f7d66f;
	box-shadow: 0 12px 0 rgba(17, 17, 17, 0.08);
}

.balance-seesaw-pivot {
	position: absolute;
	top: calc(58% + 28px);
	left: 50%;
	width: 0;
	height: 0;
	transform: translateX(-50%);
	border-right: 78px solid transparent;
	border-bottom: 118px solid #111111;
	border-left: 78px solid transparent;
}

.balance-seesaw-pivot::after {
	content: "";
	position: absolute;
	top: 12px;
	left: -58px;
	width: 0;
	height: 0;
	border-right: 58px solid transparent;
	border-bottom: 88px solid #f5efe2;
	border-left: 58px solid transparent;
}

.balance-seesaw-side {
	position: absolute;
	top: 8%;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 34%;
	min-height: 132px;
}

.balance-seesaw-side.is-left {
	left: 8%;
}

.balance-seesaw-side.is-right {
	right: 8%;
}

.balance-seesaw-items {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 12px;
	min-height: 94px;
}

.balance-seesaw-item {
	display: inline-flex;
	align-items: flex-end;
	filter: drop-shadow(0 8px 0 rgba(17, 17, 17, 0.08));
}

.algebra-pattern-tile.is-balance-token,
.algebra-pattern-tile.is-balance-choice {
	width: 68px;
	height: 68px;
	border-width: 4px;
}

.algebra-pattern-tile.is-triangle.is-balance-token,
.algebra-pattern-tile.is-triangle.is-balance-choice {
	width: 0;
	height: 0;
	border-top: 0;
	border-right-width: 39px;
	border-bottom-width: 68px;
	border-left-width: 39px;
	background: transparent;
}

.algebra-pattern-tile.is-triangle.is-balance-token::after,
.algebra-pattern-tile.is-triangle.is-balance-choice::after {
	left: -30px;
	top: 7px;
	border-right-width: 30px;
	border-bottom-width: 52px;
	border-left-width: 30px;
}

.balance-seesaw-unknown {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	border: 4px dashed #111111;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.72);
	color: #111111;
	font-size: 42px;
	font-weight: 950;
	line-height: 1;
}

.algebra-choice-row.has-balance-items {
	gap: 16px;
}

.algebra-choice-button.is-balance-item {
	min-width: 116px;
	min-height: 94px;
	padding: 12px 18px;
}

.question-post-task-puzzle {
	position: relative;
}

.question-post-task-puzzle.is-sudoku {
	width: min(100%, 760px);
	margin: 0 auto;
}

.question-post-task-puzzle-menu {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	width: min(100%, 880px);
	margin: 0 auto;
}

.post-task-puzzle-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	width: min(100%, 760px);
	margin: 0 auto -4px;
}

.question-puzzle-back {
	border-color: rgba(17, 17, 17, 0.16);
	background: rgba(255, 255, 255, 0.72);
	color: var(--brand-muted);
}

.post-task-puzzle-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 18px;
	border-radius: 999px;
	background: rgba(224, 183, 79, 0.2);
	color: var(--brand-ink);
	font-size: 18px;
	font-weight: 950;
	text-transform: uppercase;
}

.post-task-puzzle-feedback {
	min-height: 32px;
	margin: -6px 0 0;
	color: var(--brand-muted);
	font-size: clamp(1.05rem, 1.8vw, 1.35rem);
	font-weight: 900;
	text-align: center;
}

.post-task-puzzle-actions {
	display: flex;
	justify-content: center;
	min-height: 54px;
}

.post-task-puzzle-picker {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	width: min(100%, 820px);
}

.post-task-puzzle-card {
	appearance: none;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: space-between;
	gap: 16px;
	min-height: 160px;
	padding: 22px;
	border: 3px solid rgba(17, 17, 17, 0.14);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.78);
	color: var(--brand-ink);
	text-align: left;
	cursor: pointer;
}

.post-task-puzzle-card-copy {
	display: grid;
	gap: 8px;
}

.post-task-puzzle-card-title {
	font-size: clamp(1.45rem, 2.5vw, 2rem);
	font-weight: 950;
	line-height: 1;
}

.post-task-puzzle-card-copy small {
	color: var(--brand-muted);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.25;
}

.post-task-puzzle-preview {
	display: grid;
	place-items: center;
	width: 100%;
	min-height: 92px;
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(245, 239, 226, 0.88);
	overflow: hidden;
}

.post-task-puzzle-preview.is-seesaw .balance-seesaw-stage {
	width: 280px;
	height: 120px;
	margin: 0 auto;
}

.post-task-puzzle-preview.is-seesaw .balance-seesaw-side {
	top: 0;
	min-height: 62px;
}

.post-task-puzzle-preview.is-seesaw .balance-seesaw-items {
	gap: 6px;
	min-height: 54px;
}

.post-task-puzzle-preview.is-seesaw .algebra-pattern-tile.is-balance-token {
	width: 34px;
	height: 34px;
	border-width: 3px;
}

.post-task-puzzle-preview.is-seesaw .algebra-pattern-tile.is-triangle.is-balance-token {
	width: 0;
	height: 0;
	border-right-width: 19px;
	border-bottom-width: 34px;
	border-left-width: 19px;
}

.post-task-puzzle-preview.is-seesaw .algebra-pattern-tile.is-triangle.is-balance-token::after {
	left: -14px;
	top: 4px;
	border-right-width: 14px;
	border-bottom-width: 26px;
	border-left-width: 14px;
}

.post-task-puzzle-preview.is-seesaw .balance-seesaw-unknown {
	width: 34px;
	height: 34px;
	border-width: 3px;
	border-radius: 9px;
	font-size: 22px;
}

.post-task-puzzle-preview.is-seesaw .balance-seesaw-beam {
	top: 58%;
	left: 10%;
	right: 10%;
	height: 16px;
	border-width: 3px;
	border-radius: 8px;
	box-shadow: 0 6px 0 rgba(17, 17, 17, 0.08);
}

.post-task-puzzle-preview.is-seesaw .balance-seesaw-pivot {
	top: calc(58% + 13px);
	border-right-width: 36px;
	border-bottom-width: 54px;
	border-left-width: 36px;
}

.post-task-puzzle-preview.is-seesaw .balance-seesaw-pivot::after {
	top: 6px;
	left: -26px;
	border-right-width: 26px;
	border-bottom-width: 40px;
	border-left-width: 26px;
}

.post-task-puzzle-preview.is-sudoku .mini-sudoku {
	grid-template-columns: repeat(4, 24px);
	grid-template-rows: repeat(4, 24px);
	border-width: 3px;
}

.post-task-puzzle-preview.is-sudoku .mini-sudoku-cell {
	width: 24px;
	height: 24px;
	border-width: 1px;
	font-size: 0.95rem;
}

.post-task-puzzle-preview.is-sudoku .mini-sudoku-cell:nth-child(2),
.post-task-puzzle-preview.is-sudoku .mini-sudoku-cell:nth-child(6),
.post-task-puzzle-preview.is-sudoku .mini-sudoku-cell:nth-child(10),
.post-task-puzzle-preview.is-sudoku .mini-sudoku-cell:nth-child(14) {
	border-right-width: 3px;
}

.post-task-puzzle-preview.is-sudoku .mini-sudoku-cell:nth-child(n + 5):nth-child(-n + 8) {
	border-bottom-width: 3px;
}

.post-task-puzzle-preview.is-sudoku .mini-sudoku-cell.is-target {
	box-shadow: inset 0 0 0 2px rgba(224, 183, 79, 0.46);
}

.post-task-puzzle-preview.is-who-am-i .who-am-i-clues {
	grid-template-columns: 1fr;
	gap: 6px;
	width: 100%;
	max-width: 240px;
}

.post-task-puzzle-preview.is-who-am-i .who-am-i-clue {
	min-height: 0;
	padding: 7px 9px;
	gap: 8px;
	border-width: 2px;
	border-radius: 8px;
}

.post-task-puzzle-preview.is-who-am-i .who-am-i-clue span {
	width: 20px;
	height: 20px;
	font-size: 0.72rem;
}

.post-task-puzzle-preview.is-who-am-i .who-am-i-clue p {
	font-size: 0.76rem;
	line-height: 1.15;
}

.post-task-puzzle-card:hover,
.post-task-puzzle-card:focus-visible {
	outline: none;
	border-color: var(--brand-gold);
	background: rgba(255, 248, 228, 0.9);
}

.puzzle-choice-row {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 16px;
	width: 100%;
}

.puzzle-number-choice {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 108px;
	min-height: 82px;
	padding: 12px 20px;
	border: 3px solid rgba(17, 17, 17, 0.18);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.76);
	color: #111111;
	font-size: clamp(2rem, 5vw, 3.4rem);
	font-weight: 950;
	line-height: 1;
	cursor: pointer;
}

.puzzle-number-choice:hover,
.puzzle-number-choice:focus-visible {
	outline: none;
	border-color: #111111;
}

.puzzle-number-choice.is-selected {
	border-color: #111111;
	background: rgba(244, 210, 110, 0.22);
}

.mini-sudoku {
	display: grid;
	grid-template-columns: repeat(4, minmax(58px, 86px));
	grid-template-rows: repeat(4, minmax(58px, 86px));
	justify-content: center;
	width: max-content;
	max-width: 100%;
	margin: 0 auto;
	border: 5px solid #111111;
	background: #111111;
}

.mini-sudoku-cell {
	display: grid;
	place-items: center;
	width: clamp(58px, 10vw, 86px);
	height: clamp(58px, 10vw, 86px);
	border: 2px solid #111111;
	background: #ffffff;
	color: #111111;
	font-size: clamp(2rem, 5vw, 3.2rem);
	font-weight: 950;
	line-height: 1;
}

.mini-sudoku-cell:nth-child(2),
.mini-sudoku-cell:nth-child(6),
.mini-sudoku-cell:nth-child(10),
.mini-sudoku-cell:nth-child(14) {
	border-right-width: 5px;
}

.mini-sudoku-cell:nth-child(n + 5):nth-child(-n + 8) {
	border-bottom-width: 5px;
}

.mini-sudoku-cell.is-target {
	background: rgba(244, 210, 110, 0.38);
	box-shadow: inset 0 0 0 5px rgba(224, 183, 79, 0.42);
}

.mini-sudoku-rule {
	max-width: 560px;
	margin: -6px auto 0;
	color: var(--brand-muted);
	font-size: clamp(1rem, 1.7vw, 1.25rem);
	font-weight: 850;
	line-height: 1.25;
	text-align: center;
}

.who-am-i-clues {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	width: min(100%, 720px);
	margin: 0 auto;
}

.who-am-i-clue {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 12px;
	min-height: 80px;
	padding: 16px 18px;
	border: 3px solid rgba(17, 17, 17, 0.12);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.76);
}

.who-am-i-clue span {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: rgba(224, 183, 79, 0.28);
	color: var(--brand-ink);
	font-size: 18px;
	font-weight: 950;
}

.who-am-i-clue p {
	margin: 0;
	color: #111111;
	font-size: clamp(1.1rem, 2vw, 1.45rem);
	font-weight: 900;
	line-height: 1.12;
}

.algebra-choice-button.is-correct,
.puzzle-number-choice.is-correct {
	border-color: #59b96c;
	background: rgba(89, 185, 108, 0.16);
}

.algebra-choice-button.is-incorrect,
.puzzle-number-choice.is-incorrect {
	border-color: #d04747;
	background: rgba(208, 71, 71, 0.12);
}

.part-whole-model {
	display: grid;
	grid-template-rows: auto auto;
	width: min(100%, 520px);
	margin: 0 auto;
	border: 4px solid #111111;
	border-radius: 16px;
	background: transparent;
	overflow: hidden;
}

.part-whole-cell {
	display: grid;
	place-items: center;
	min-height: 86px;
	color: #111111;
	font-size: clamp(2rem, 5vw, 3.4rem);
	font-weight: 950;
	line-height: 1;
}

.part-whole-cell.is-whole {
	border-bottom: 4px solid #111111;
}

.part-whole-row {
	display: grid;
	grid-template-columns: repeat(var(--part-count, 2), minmax(0, 1fr));
}

.part-whole-cell.is-part + .part-whole-cell.is-part {
	border-left: 4px solid #111111;
}

.part-whole-placeholder {
	color: rgba(17, 17, 17, 0.34);
}

.bar-model {
	display: grid;
	gap: 8px;
	width: min(100%, 560px);
	margin: 0 auto;
	color: #111111;
}

.bar-model-total {
	display: grid;
	place-items: center;
	min-height: 72px;
	border: 4px solid #111111;
	border-radius: 8px;
	background: #fffdf8;
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
}

.bar-model-row {
	display: flex;
	width: 100%;
	min-height: 88px;
	border: 4px solid #111111;
	border-radius: 8px;
	background: #fffdf8;
	overflow: hidden;
}

.bar-model-segment {
	display: grid;
	flex: 1 1 var(--segment-basis, 50%);
	place-items: center;
	min-width: 80px;
	padding: 16px;
	background: transparent;
	color: #111111;
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
}

.bar-model-segment + .bar-model-segment {
	border-left: 4px solid #111111;
}

.bar-model-segment.is-unknown {
	background: rgba(241, 207, 120, 0.28);
	color: rgba(17, 17, 17, 0.48);
}

.bar-model-placeholder {
	color: rgba(17, 17, 17, 0.34);
}

.question-algebra-magic {
	width: min(100%, 760px);
}

.question-algebra-magic .question-measurement-title {
	max-width: 18ch;
}

.algebra-magic-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(88px, 124px));
	gap: 0;
	border: 4px solid #111111;
	background: transparent;
}

.algebra-magic-cell,
.algebra-magic-corner {
	display: grid;
	place-items: center;
	min-height: 108px;
	background: transparent;
	color: #111111;
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 950;
	line-height: 1;
}

.algebra-magic-cell {
	border-right: 3px solid #111111;
	border-bottom: 3px solid #111111;
}

.algebra-magic-cell:nth-child(3n) {
	border-right: 0;
}

.algebra-magic-cell:nth-last-child(-n + 3) {
	border-bottom: 0;
}

.algebra-magic-input {
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 0;
	background: rgba(241, 207, 120, 0.18);
	box-shadow: inset 0 0 0 4px var(--brand-gold);
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 950;
	text-align: center;
	color: #111111;
	caret-color: #111111;
}

.algebra-magic-input::placeholder {
	color: rgba(17, 17, 17, 0.34);
	opacity: 1;
}

.algebra-magic-input:focus {
	outline: none;
	background: rgba(241, 207, 120, 0.28);
	box-shadow: inset 0 0 0 5px var(--brand-gold), 0 0 0 4px rgba(225, 184, 73, 0.24);
}

.question-preview-curriculum-code {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 22px;
	padding: 0 8px;
	border: 1px solid rgba(36, 23, 10, 0.18);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 900;
	color: var(--text-secondary);
	background: rgba(255, 255, 255, 0.72);
}

.question-preview-curriculum-grade {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 22px;
	padding: 0 8px;
	border: 1px solid rgba(36, 23, 10, 0.18);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 900;
	color: var(--text-secondary);
	background: rgba(255, 255, 255, 0.72);
}

.question-preview-curriculum-name {
	flex: 1;
	font-size: 13px;
	font-weight: 800;
	color: var(--text);
}

.question-preview-curriculum-count {
	margin-left: auto;
	font-size: 11px;
	font-weight: 800;
	color: var(--text-secondary);
	white-space: nowrap;
	opacity: 0.8;
}

.question-preview-curriculum-elabs {
	display: grid;
	gap: 8px;
	padding: 0 10px 10px;
}

.question-preview-curriculum-elab {
	display: block;
	padding: 6px;
	border-radius: 8px;
	border: 1px solid rgba(36, 23, 10, 0.1);
	background: rgba(255, 255, 255, 0.5);
}

.question-preview-curriculum-elab-block {
	display: grid;
	gap: 8px;
}

.question-preview-curriculum-elab-text {
	margin: 0;
	padding: 8px 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.45;
	color: var(--text-secondary);
}

.question-preview-curriculum-elab-text.is-taskable-later {
	color: #b42318;
}

.question-preview-curriculum-empty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 36px;
	padding-right: 10px;
}

.question-preview-curriculum-empty-meta {
	font-size: 11px;
	font-weight: 800;
	color: var(--text-secondary);
	white-space: nowrap;
	opacity: 0.7;
}

.question-preview-curriculum-empty.is-taskable-later .question-preview-curriculum-empty-meta {
	color: #b42318;
	opacity: 1;
}

.question-preview-curriculum-elab-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 36px;
	padding: 8px 10px;
	border: 1px solid rgba(36, 23, 10, 0.14);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.72);
	color: var(--text);
	text-decoration: none;
}

.question-preview-curriculum-elab-link:hover {
	background: rgba(224, 183, 79, 0.3);
}

.question-preview-curriculum-elab-link-text {
	font-size: 12px;
	font-weight: 700;
	color: var(--text-secondary);
}

.question-preview-curriculum-elab-link-meta {
	font-size: 11px;
	font-weight: 800;
	color: var(--text-secondary);
	opacity: 0.85;
	white-space: nowrap;
}

.question-preview-curriculum-task-row {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.question-preview-curriculum-task {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 10px;
	border: 1px solid rgba(36, 23, 10, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	color: var(--text);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

.question-preview-curriculum-task:hover {
	background: rgba(224, 183, 79, 0.3);
}

.question-preview-curriculum-task.is-current {
	background: rgba(224, 183, 79, 0.3);
	border-color: rgba(224, 183, 79, 0.9);
}

.question-preview-curriculum-task.has-attention {
	background: rgba(186, 58, 58, 0.12);
	border-color: rgba(186, 58, 58, 0.34);
}

.question-preview-curriculum-task.has-attention:hover,
.question-preview-curriculum-task.has-attention.is-current {
	background: rgba(186, 58, 58, 0.2);
	border-color: rgba(186, 58, 58, 0.48);
}

.question-preview-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid rgba(36, 23, 10, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.54);
	color: var(--text);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.question-preview-chip.has-attention {
	background: rgba(186, 58, 58, 0.12);
	border-color: rgba(186, 58, 58, 0.34);
}

.question-preview-chip.has-attention.is-active,
.question-preview-chip.has-attention:hover {
	background: rgba(186, 58, 58, 0.2);
	border-color: rgba(186, 58, 58, 0.48);
}

.task-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	white-space: nowrap;
}

.task-purpose-bubble {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	color: #ffffff;
	font-size: 12px;
	font-weight: 900;
	line-height: 1;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
	box-shadow:
		inset 0 0 0 2px rgba(255, 255, 255, 0.32),
		0 0 0 2px rgba(255, 255, 255, 0.86),
		0 5px 12px rgba(36, 23, 10, 0.13);
}

.task-label-u .task-purpose-bubble {
	background: linear-gradient(135deg, #2f73bd, #54a7e8);
}

.task-label-f .task-purpose-bubble {
	background: linear-gradient(135deg, #348955, #65bd7c);
}

.task-label-p .task-purpose-bubble {
	background: linear-gradient(135deg, #b56718, #e2a33f);
}

.task-label-r .task-purpose-bubble {
	background: linear-gradient(135deg, #7649ad, #ad7bd3);
}

.task-grade-label {
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 900;
}

.task-strand-label {
	color: var(--text);
	font-size: 12px;
	font-weight: 900;
}

.task-title-label {
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 750;
}

.question-preview-chip.is-active {
	background: var(--gold);
	border-color: transparent;
	color: #1b1508;
}

.question-preview-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.question-builder-preview-tools {
	align-items: stretch;
}

.task-preview-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid rgba(36, 23, 10, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.72);
}

.task-preview-title {
	margin: 0;
	color: var(--text);
	font-size: 20px;
	line-height: 1.15;
}

.task-preview-plan-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
}

.task-preview-plan-pill {
	display: inline-grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	padding: 7px 10px;
	border: 1px solid rgba(36, 23, 10, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.7);
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 800;
}

.task-preview-plan-pill .task-label {
	white-space: normal;
}

.task-preview-plan-pill strong {
	color: var(--text);
	white-space: nowrap;
}

.task-preview-question-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	gap: 8px;
	width: 100%;
	max-height: 220px;
	overflow: auto;
	padding: 8px;
	border: 1px solid rgba(36, 23, 10, 0.1);
	border-radius: 8px;
	background: rgba(248, 252, 252, 0.72);
}

.task-preview-question-chip {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	min-height: 58px;
	padding: 7px 8px;
	border: 1px solid rgba(36, 23, 10, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.72);
	color: var(--text);
	text-align: left;
	cursor: pointer;
}

.task-preview-question-chip.is-active {
	background: rgba(224, 183, 79, 0.26);
	border-color: rgba(224, 183, 79, 0.82);
}

.task-preview-question-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #111111;
	color: #ffffff;
	font-size: 13px;
	font-weight: 900;
}

.task-preview-question-copy {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.task-preview-question-copy strong,
.task-preview-question-copy small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.task-preview-question-copy strong {
	font-size: 12px;
	font-weight: 900;
}

.task-preview-question-copy small {
	color: var(--text-secondary);
	font-size: 11px;
	font-weight: 700;
}

.question-preview-export {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 4px 6px 4px 12px;
	border: 1px solid rgba(36, 23, 10, 0.14);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.64);
	color: var(--text-secondary);
	font-size: 13px;
	font-weight: 800;
}

.question-preview-export select {
	min-height: 32px;
	max-width: 190px;
	padding: 4px 32px 4px 10px;
	border: 1px solid rgba(36, 23, 10, 0.14);
	border-radius: 6px;
	background: #ffffff;
	color: var(--text);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.question-preview-export input {
	width: 64px;
	min-height: 32px;
	padding: 4px 8px;
	border: 1px solid rgba(36, 23, 10, 0.14);
	border-radius: 6px;
	background: #ffffff;
	color: var(--text);
	font: inherit;
	font-size: 14px;
}

.question-preview-difficulty {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border: 1px solid rgba(36, 23, 10, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.54);
}

.question-preview-star {
	appearance: none;
	border: 0;
	background: transparent;
	color: #8c8e96;
	font-size: 20px;
	line-height: 1;
	padding: 2px 3px;
	cursor: pointer;
}

.question-preview-star.is-active {
	color: #111111;
}

.question-preview-star.is-disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.question-preview-answer {
	min-height: 20px;
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--text-secondary);
}

.question-preview-answer.is-revealed {
	color: #111111;
	font-size: clamp(18px, 2.4vw, 30px);
}

.question-set-page.is-presentation-mode {
	padding-top: clamp(14px, 2vw, 28px);
}

.question-set-page.is-presentation-mode .question-set-shell {
	min-height: calc(100vh - 120px);
	align-items: stretch;
}

.question-set-page.is-presentation-mode .question-set-form {
	justify-content: flex-start;
	gap: clamp(14px, 2vw, 24px);
}

.question-set-page.is-presentation-mode .question-preview-tools {
	width: min(100%, 1120px);
	margin-bottom: 0;
}

.question-set-page.is-presentation-mode .question-preview-type-list {
	display: none;
}

.question-set-page.is-presentation-mode .question-preview-actions {
	width: min(100%, 820px);
	justify-content: center;
	padding: 10px;
	border: 1px solid rgba(36, 23, 10, 0.1);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.72);
	box-shadow: 0 18px 45px rgba(36, 23, 10, 0.08);
}

.question-set-page.is-presentation-mode .question-preview-answer {
	min-height: clamp(28px, 4vw, 44px);
	text-align: center;
}

body.is-student-fullscreen-preview {
	overflow: hidden;
	background: var(--bg);
}

body.is-student-fullscreen-preview site-navbar {
	display: none;
}

body.is-student-question-session site-navbar {
	display: none;
}

body.is-student-question-session {
	overflow: hidden;
	overscroll-behavior: none;
}

.question-set-page.is-student-question-session {
	max-width: none;
	min-height: 100vh;
	min-height: 100dvh;
	height: 100vh;
	height: 100dvh;
	padding: 0 var(--layout-gutter);
	gap: 0;
	overflow: hidden;
}

.question-set-page.is-student-question-session .question-set-shell {
	min-height: 100vh;
	min-height: 100dvh;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
}

.question-set-page.is-student-question-session .question-set-form {
	justify-content: center;
	min-height: 100vh;
	min-height: 100dvh;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
}

.question-set-page.is-student-question-session .question-single {
	width: min(100%, 1120px);
	max-width: min(100%, 1120px);
	height: 100%;
	min-height: 0;
	padding: clamp(8px, 1.6vh, 18px) 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.question-set-page.is-student-question-session .question-single.has-fast-fact-test {
	overflow: visible;
}

.question-set-page.is-student-question-session .question-measurement {
	gap: clamp(12px, 2vh, 22px);
	padding-block: clamp(10px, 2vh, 18px);
}

.question-set-page.is-student-question-session .question-measurement-title {
	font-size: clamp(30px, 4.8vw, 54px);
}

.question-set-page.is-student-question-session .question-post-task-puzzle {
	gap: clamp(8px, 1.4vh, 14px);
}

.question-set-page.is-student-question-session .post-task-puzzle-bar {
	gap: 8px;
	width: min(100%, 700px);
	margin-bottom: 0;
}

.question-set-page.is-student-question-session .question-puzzle-back {
	min-height: 34px;
	padding: 6px 12px;
	font-size: 0.82rem;
}

.question-set-page.is-student-question-session .post-task-puzzle-label {
	min-height: 34px;
	padding: 0 12px;
	font-size: 0.9rem;
}

.question-set-page.is-student-question-session .question-post-task-puzzle .question-measurement-title {
	max-width: 16ch;
	font-size: clamp(24px, 3.8vw, 40px);
}

.question-set-page.is-student-question-session .post-task-puzzle-feedback {
	min-height: 24px;
	font-size: clamp(0.92rem, 1.5vw, 1.05rem);
}

.question-set-page.is-student-question-session .puzzle-choice-row {
	gap: 10px;
}

.question-set-page.is-student-question-session .puzzle-number-choice {
	min-width: 88px;
	min-height: 64px;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.question-set-page.is-student-question-session .question-post-task-puzzle.is-sudoku .question-measurement-title {
	max-width: 13ch;
	font-size: clamp(22px, 3.2vw, 32px);
}

.question-set-page.is-student-question-session .question-post-task-puzzle.is-sudoku .mini-sudoku {
	grid-template-columns: repeat(4, 52px);
	grid-template-rows: repeat(4, 52px);
}

.question-set-page.is-student-question-session .question-post-task-puzzle.is-sudoku .mini-sudoku-cell {
	width: 52px;
	height: 52px;
	font-size: 1.7rem;
}

.question-set-page.is-student-question-session .question-post-task-puzzle.is-sudoku .mini-sudoku-rule {
	max-width: 420px;
	font-size: clamp(0.86rem, 1.4vw, 0.96rem);
}

.question-set-page.is-student-question-session .question-post-task-puzzle.is-sudoku .puzzle-number-choice {
	min-width: 72px;
	min-height: 56px;
	font-size: 1.45rem;
}

.question-single.is-task-menu {
	display: flex;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	padding: 0;
}

.student-task-menu {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 100%;
	height: 100%;
	min-height: 100%;
	min-width: 0;
	overflow: hidden;
}

.student-task-reel {
	display: flex;
	gap: 10px;
	width: max-content;
	max-width: 100%;
	padding: 14px;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: rgba(36, 23, 10, 0.22) transparent;
}

.student-task-menu-footer {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	justify-content: center;
	width: 100%;
	padding: 8px 14px calc(16px + env(safe-area-inset-bottom, 0px));
	pointer-events: none;
}

.student-task-puzzle-button {
	min-width: 116px;
	min-height: 42px;
	padding: 10px 18px;
	border-color: rgba(36, 23, 10, 0.08);
	background: rgba(255, 255, 255, 0.68);
	color: rgba(36, 23, 10, 0.62);
	box-shadow: 0 8px 20px rgba(60, 66, 87, 0.05);
	font-size: clamp(0.88rem, 1.2vw, 0.98rem);
	font-weight: 800;
	pointer-events: auto;
}

.student-task-puzzle-button:hover,
.student-task-puzzle-button:focus-visible {
	border-color: rgba(36, 23, 10, 0.14);
	background: rgba(255, 255, 255, 0.82);
	color: rgba(36, 23, 10, 0.78);
	box-shadow: 0 10px 22px rgba(60, 66, 87, 0.08);
}

.student-task-reel-item {
	flex: 0 0 220px;
	scroll-snap-align: center;
}

.student-task-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 160px;
	padding: 20px 16px 24px;
	overflow: hidden;
	border: 1px solid rgba(36, 23, 10, 0.14);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--text);
	font: inherit;
	text-align: center;
	box-shadow: 0 14px 28px rgba(60, 66, 87, 0.08);
	cursor: pointer;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.student-task-tile::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 7px;
	background: var(--brand-gold);
	content: "";
}

.student-task-tile.is-in_progress::after {
	background: var(--brand-berry);
}

.student-task-tile:hover,
.student-task-tile:focus-visible {
	border-color: rgba(186, 60, 95, 0.52);
	box-shadow: 0 18px 34px rgba(60, 66, 87, 0.13);
	transform: translateY(-3px);
}

.student-task-tile:focus-visible {
	outline: 3px solid rgba(224, 183, 79, 0.35);
	outline-offset: 2px;
}

.student-task-tile.is-completed,
.student-task-tile.is-closed {
	border-color: rgba(70, 70, 70, 0.12);
	background: #e5e5e5;
	color: #737373;
	box-shadow: none;
	cursor: default;
	filter: grayscale(1);
}

.student-task-tile.is-completed::after,
.student-task-tile.is-closed::after {
	background: #a5a5a5;
}

.student-task-state {
	font-size: 12px;
	font-weight: 850;
	line-height: 1;
	text-transform: uppercase;
}

.student-task-name {
	display: -webkit-box;
	overflow: hidden;
	font-size: 20px;
	font-weight: 850;
	line-height: 1.12;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.student-task-detail {
	font-size: 13px;
	font-weight: 650;
	line-height: 1.2;
	color: var(--text-secondary);
}

.student-task-tile.is-completed .student-task-detail,
.student-task-tile.is-closed .student-task-detail {
	color: #737373;
}

body.dark .student-task-tile {
	border-color: rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.08);
	color: #fff4db;
}

body.dark .student-task-tile .student-task-detail {
	color: rgba(255, 244, 219, 0.68);
}

body.dark .student-task-tile.is-completed,
body.dark .student-task-tile.is-closed {
	border-color: rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.42);
}

body.dark .student-task-tile.is-completed .student-task-detail,
body.dark .student-task-tile.is-closed .student-task-detail {
	color: rgba(255, 255, 255, 0.38);
}

.question-set-page.is-student-fullscreen-preview {
	max-width: none;
	min-height: 100vh;
	padding: 0;
	gap: 0;
}

.question-set-page.is-student-fullscreen-preview .question-set-shell {
	width: 100vw;
	min-height: 100vh;
	padding: clamp(18px, 3vw, 42px);
	align-items: center;
}

.question-set-page.is-student-fullscreen-preview .question-set-form {
	justify-content: center;
	gap: 0;
	min-height: calc(100vh - clamp(36px, 6vw, 84px));
}

.question-set-page.is-student-fullscreen-preview .question-preview-tools,
.question-set-page.is-student-fullscreen-preview .question-preview-answer {
	display: none !important;
}

.question-set-page.is-student-fullscreen-preview .question-single {
	width: min(100%, 1120px);
	max-width: min(100%, 1120px);
	min-height: min(82vh, 680px);
	padding: clamp(16px, 2.5vw, 34px);
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.question-single {
	--question-font-size: clamp(52px, 8vw, 92px);
	--question-line-height: 0.92;
	--question-letter-spacing: -0.05em;
	position: relative;
	display: flex;
	align-items: center;
	width: var(--layout-track-width);
	max-width: var(--layout-track-width);
	margin: 0 auto;
	padding: 18px 0;
	border-radius: var(--squircle-lg);
	transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.question-set-page.is-presentation-mode .question-single {
	--question-font-size: clamp(54px, 8.4vw, 118px);
	--question-line-height: 0.98;
	--question-letter-spacing: 0;
	width: min(100%, 1120px);
	max-width: min(100%, 1120px);
	min-height: clamp(340px, 54vh, 600px);
	padding: clamp(18px, 2.5vw, 36px);
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.question-single.is-pptx-capture-stage {
	--question-font-size: 96px;
	--question-line-height: 0.98;
	--question-letter-spacing: 0;
	width: 1280px !important;
	max-width: none !important;
	min-height: 720px !important;
	margin: 0 auto !important;
	padding: 34px 48px 42px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #fffbf2 !important;
	box-shadow: none !important;
	overflow: hidden !important;
}

.question-set-page.is-presentation-mode .question-measurement {
	gap: clamp(10px, 1.6vh, 20px);
	padding-block: clamp(8px, 1.6vh, 18px);
}

.question-set-page.is-presentation-mode .question-number-ten-frame {
	gap: clamp(10px, 1.5vh, 18px);
}

.question-set-page.is-presentation-mode .question-number-ten-frame .question-measurement-title {
	font-size: clamp(32px, 4.4vw, 52px);
}

.question-set-page.is-presentation-mode .ten-frame-visual {
	width: min(68vw, 500px);
}

.question-set-page.is-presentation-mode .measurement-choice-row {
	gap: clamp(14px, 2.4vw, 28px);
}

.question-set-page.is-presentation-mode .measurement-choice-button {
	min-width: clamp(96px, 12vw, 128px);
	padding: 10px 18px;
}

.question-set-page.is-presentation-mode .question-single button[type="submit"] {
	display: none;
}

.question-set-page.is-presentation-mode .question-inline-input {
	pointer-events: none;
}

.question-single.is-presenting-answer {
	background: rgba(241, 207, 120, 0.22);
	box-shadow: 0 0 0 6px rgba(241, 207, 120, 0.16), 0 24px 70px rgba(36, 23, 10, 0.09);
}

.question-single .is-presentation-answer {
	border-color: #111111;
	background: #111111;
	color: #ffffff;
	box-shadow: 0 0 0 5px rgba(17, 17, 17, 0.12);
}

.question-single.has-fast-fact-strategy {
	flex-direction: column;
	gap: clamp(18px, 3vw, 28px);
}

.fast-fact-strategy-card {
	display: grid;
	gap: 5px;
	width: min(100% - 32px, 560px);
	padding: 14px 18px;
	border: 1px solid rgba(224, 183, 79, 0.58);
	border-radius: 18px;
	background: rgba(241, 207, 120, 0.18);
	text-align: center;
}

.fast-fact-strategy-kicker {
	margin: 0;
	color: var(--accent-strong);
	font-size: 11px;
	font-weight: 850;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.fast-fact-strategy-title {
	margin: 0;
	color: var(--heading);
	font-size: clamp(20px, 3vw, 26px);
	line-height: 1.15;
}

.fast-fact-strategy-hint {
	margin: 0;
	color: var(--text-secondary);
	font-size: clamp(14px, 2vw, 16px);
	font-weight: 600;
}

.fast-fact-equation {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

.fast-fact-test-timer {
	position: absolute;
	top: clamp(14px, 2vw, 28px);
	right: clamp(14px, 2vw, 28px);
	display: flex;
	align-items: center;
	gap: 4px;
	height: 30px;
}

/* Timed facts use the bare question layout, not the clipped squircle stage. */
.question-single.has-fast-fact-test {
	border-radius: 0;
	overflow: visible;
}

.fast-fact-test-choice {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: clamp(12px, 2vw, 20px);
	padding-top: clamp(8px, 1.5vh, 16px);
}

.fast-fact-test-choice-prompt {
	margin: 0;
	color: var(--heading);
	font-size: clamp(2.2rem, 6vw, 4.2rem);
	font-weight: 900;
	letter-spacing: -0.04em;
	line-height: 1;
	text-align: center;
}

.fast-fact-test-choice-grid {
	display: grid;
	gap: clamp(8px, 1.4vw, 12px);
	width: min(1040px, 96vw);
	margin-top: auto;
	margin-inline: auto;
}

.fast-fact-test-choice-row {
	display: grid;
	grid-template-columns: repeat(9, minmax(0, 1fr));
	gap: clamp(6px, 1vw, 10px);
}

.fast-fact-test-choice-button.measurement-choice-button {
	width: 100%;
	min-width: 0;
	padding: clamp(10px, 1.4vw, 14px) 0;
	border-radius: 16px;
	font-size: clamp(0.9rem, 1.8vw, 1.25rem);
	line-height: 1;
	transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.fast-fact-test-choice-button.measurement-choice-button.is-answer-submitting {
	border-color: rgba(224, 183, 79, 0.96);
	background: #f9e8a8;
	box-shadow: 0 0 0 5px rgba(224, 183, 79, 0.22), 0 10px 18px rgba(99, 70, 18, 0.14);
	transform: scale(0.97);
	animation: fast-fact-choice-acknowledge 260ms ease-out;
}

.fast-fact-test-choice-grid.is-answer-submitting .fast-fact-test-choice-button:not(.is-answer-submitting) {
	opacity: 0.58;
}

.fast-fact-test-choice-button.measurement-choice-button:disabled {
	cursor: default;
}

@keyframes fast-fact-choice-acknowledge {
	0% {
		transform: scale(1);
	}
	55% {
		transform: scale(1.06);
	}
	100% {
		transform: scale(0.97);
	}
}

@media (max-width: 720px) {
	.fast-fact-test-choice {
		gap: 10px;
		padding-top: 6px;
	}

	.fast-fact-test-choice-prompt {
		font-size: clamp(1.8rem, 8vw, 2.7rem);
	}

	.fast-fact-test-choice-row {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.fast-fact-test-choice-row:last-child {
		grid-template-columns: repeat(8, minmax(0, 1fr));
	}

	.fast-fact-test-choice-button.measurement-choice-button {
		padding: 10px 0;
		border-radius: 14px;
		font-size: clamp(0.8rem, 3vw, 1.05rem);
	}
}

@media (min-width: 721px) {
	.fast-fact-test-choice {
		position: relative;
		min-height: min(74vh, 760px);
		padding-bottom: clamp(88px, 11vh, 150px);
	}

	.fast-fact-test-choice-prompt {
		position: absolute;
		top: 50%;
		left: 0;
		width: 100%;
		transform: translateY(-50%);
	}
}

.fast-fact-test-timer img {
	width: 26px;
	height: 30px;
	object-fit: contain;
}

.fast-fact-test-insights {
	display: grid;
	gap: 10px;
	padding: 14px;
	border: 1px solid rgba(214, 168, 63, 0.42);
	border-radius: 12px;
	background: rgba(255, 249, 232, 0.72);
}

.fast-fact-test-insights-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 12px;
}

.fast-fact-test-insights-heading .meta,
.fast-fact-test-insights-heading .label {
	margin: 0;
}

.fast-fact-test-insights-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
	gap: 8px;
}

.fast-fact-test-strategy-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 8px;
}

.fast-fact-test-insight {
	display: grid;
	gap: 3px;
	padding: 10px;
	border: 1px solid rgba(36, 23, 10, 0.12);
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.72);
}

.fast-fact-test-insight.is-incorrect {
	border-color: rgba(180, 35, 24, 0.35);
	background: rgba(255, 239, 236, 0.78);
}

.fast-fact-test-insight strong {
	font-size: 16px;
}

.fast-fact-test-insight span,
.fast-fact-test-insight small {
	color: var(--text-secondary);
	font-size: 11px;
	font-weight: 750;
}

.fast-fact-test-insight b {
	font-size: 13px;
}

.fast-fact-test-strategy-card {
	display: grid;
	gap: 3px;
	padding: 11px;
	border: 1px solid rgba(36, 23, 10, 0.12);
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.72);
}

.fast-fact-test-strategy-card strong {
	font-size: 16px;
}

.fast-fact-test-strategy-card span,
.fast-fact-test-strategy-card small {
	color: var(--text-secondary);
	font-size: 11px;
	font-weight: 750;
}

.fast-fact-test-strategy-card b {
	font-size: 13px;
}

.fast-fact-game {
	display: grid;
	justify-items: center;
	gap: clamp(13px, 2.2vh, 20px);
	width: min(100% - 28px, 640px);
	padding: clamp(8px, 2vw, 16px);
}

.fast-fact-game.is-ten-frame-fill {
	gap: clamp(16px, 3vh, 26px);
}

.fast-fact-make-ten-frame {
	width: min(78vw, 360px);
}

.fast-fact-game.is-strategy-sort {
	gap: clamp(12px, 2vh, 20px);
	width: min(100% - 28px, 900px);
}

.fast-fact-game.is-strategy-sort .fast-fact-game-title {
	max-width: min(100%, 840px);
	font-size: clamp(26px, 3.2vw, 40px);
	line-height: 1.04;
	text-align: center;
}

.fast-fact-sort-card {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(12px, 2.4vw, 22px);
	min-width: min(100%, 250px);
	margin: clamp(6px, 1.2vh, 12px) 0 clamp(20px, 4vh, 46px);
	padding: clamp(12px, 2.4vw, 18px) clamp(22px, 4vw, 34px);
	border: 3px solid #17120a;
	border-radius: 8px;
	background: #fffdf8;
	box-shadow: 0 14px 0 rgba(23, 18, 10, 0.08);
	color: var(--heading);
	cursor: grab;
	font-size: clamp(40px, 5.4vw, 58px);
	font-weight: 850;
	line-height: 1;
	touch-action: none;
	transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.fast-fact-sort-card:focus-visible {
	outline: 4px solid rgba(224, 183, 79, 0.5);
	outline-offset: 6px;
}

.fast-fact-sort-card.is-dragging {
	cursor: grabbing;
	opacity: 0.72;
	transform: scale(0.98) rotate(-1deg);
}

.fast-fact-sort-card.is-sorted {
	transform: translateY(3px) scale(0.98);
}

.fast-fact-sort-buckets {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(12px, 2vw, 18px);
	margin: 0 auto;
	width: min(100%, 820px);
}

.fast-fact-sort-buckets.has-3-buckets {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	width: min(100%, 640px);
}

.fast-fact-sort-bucket {
	position: relative;
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 8px;
	min-height: clamp(92px, 10vw, 118px);
	padding: 20px 12px 12px;
	border: 3px solid #17120a;
	border-radius: 8px 8px 18px 18px;
	background: #fff7e6;
	color: #17120a;
	font: inherit;
	cursor: pointer;
	transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.fast-fact-sort-bucket:hover,
.fast-fact-sort-bucket:focus-visible,
.fast-fact-sort-bucket.is-drop-target {
	outline: none;
	transform: translateY(-3px);
	box-shadow: 0 14px 0 rgba(23, 18, 10, 0.1);
}

.fast-fact-sort-bucket.is-counting_on {
	background: #fff3c7;
}

.fast-fact-sort-bucket.is-doubles {
	background: #f6edff;
}

.fast-fact-sort-bucket.is-selected {
	background: #f1cf78;
	box-shadow: 0 0 0 6px rgba(224, 183, 79, 0.28);
}

.fast-fact-sort-bucket.is-bridging_to_10 {
	background: #e9f6ff;
}

.fast-fact-sort-bucket.is-bridging_to_10.is-selected {
	background: #bfe2ff;
	box-shadow: 0 0 0 6px rgba(69, 163, 241, 0.2);
}

.fast-fact-sort-bucket.is-friends_of_10 {
	background: #eaf7ef;
}

.fast-fact-sort-bucket.is-friends_of_10.is-selected {
	background: #c7ebd4;
	box-shadow: 0 0 0 6px rgba(56, 155, 91, 0.2);
}

.fast-fact-sort-bucket.is-doubles.is-selected {
	background: #e3c9ff;
	box-shadow: 0 0 0 6px rgba(145, 91, 204, 0.2);
}

.fast-fact-sort-bucket-lip {
	position: absolute;
	top: -11px;
	left: 12%;
	width: 76%;
	height: 18px;
	border: 3px solid #17120a;
	border-radius: 999px;
	background: inherit;
}

.fast-fact-sort-bucket strong {
	position: relative;
	z-index: 1;
	font-size: clamp(20px, 2.6vw, 28px);
	font-weight: 850;
	line-height: 1.05;
	text-align: center;
}

.fast-fact-sort-bucket small {
	position: relative;
	z-index: 1;
	color: rgba(23, 18, 10, 0.68);
	font-size: clamp(15px, 2vw, 18px);
	font-weight: 750;
	line-height: 1.15;
	text-align: center;
	text-transform: lowercase;
}

.fast-fact-pop-equation {
	margin: 0;
	color: var(--heading);
	font-size: clamp(44px, 7vw, 62px);
	font-weight: 850;
	letter-spacing: 0;
	line-height: 1;
}

.fast-fact-double-bubbles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	width: min(100%, 430px);
}

.fast-fact-double-bubble-group {
	display: flex;
	align-content: center;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	min-height: 112px;
	padding: 14px;
	border: 3px solid #17120a;
	border-radius: 8px;
	background: #fffdf8;
}

.fast-fact-bubble {
	display: block;
	width: 28px;
	height: 28px;
	border: 3px solid #17120a;
	border-radius: 50%;
	background: #f1cf78;
}

.fast-fact-double-bubble-group:nth-child(2) .fast-fact-bubble {
	background: #45a3f1;
}

.fast-fact-game.is-counter-slide {
	gap: clamp(18px, 3vh, 30px);
	position: relative;
	width: min(100% - 28px, 1120px);
	text-align: center;
}

.fast-fact-game.is-counter-slide .question-prompt-row {
	--question-speech-size: 52px;
	display: grid;
	grid-template-columns: var(--question-speech-size) minmax(0, max-content) var(--question-speech-size);
	align-items: center;
	justify-content: center;
	gap: clamp(10px, 2vw, 18px);
	width: 100%;
	max-width: 100%;
}

.fast-fact-game.is-counter-slide .question-prompt-row::after {
	content: "";
	display: block;
	width: var(--question-speech-size);
	height: var(--question-speech-size);
}

.fast-fact-game.is-counter-slide .question-speech-button {
	align-self: center;
}

.fast-fact-game.is-counter-slide .fast-fact-game-title {
	min-width: 0;
	margin: 0;
	text-align: center;
}

.fast-fact-drag-workspace {
	--fast-fact-cell-size: clamp(48px, 6.6vw, 68px);
	--fast-fact-frame-counter-size: clamp(36px, 5vw, 52px);
	--fast-fact-loose-counter-size: clamp(38px, 5.5vw, 54px);
	position: relative;
	display: flex;
	align-items: start;
	justify-content: center;
	gap: clamp(36px, 8vw, 76px);
	width: 100%;
}

.fast-fact-bridge-intro {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(12px, 2.6vw, 24px);
	color: #000000;
	font-size: clamp(50px, 7.4vw, 78px);
	font-weight: 850;
	line-height: 1;
	pointer-events: none;
	transform: translate(-50%, -50%);
	transition: opacity 0.12s ease;
}

.fast-fact-bridge-intro.is-moving {
	opacity: 0;
}

.fast-fact-bridge-intro[hidden] {
	display: none;
}

.fast-fact-frame-bank,
.fast-fact-counter-bank {
	display: grid;
	justify-items: center;
	gap: 8px;
}

.fast-fact-drag-plus {
	position: absolute;
	bottom: 0;
	left: var(--bridge-plus-left, 50%);
	z-index: 1;
	display: grid;
	place-items: end center;
	color: var(--heading);
	font-size: clamp(40px, 6vw, 56px);
	font-weight: 850;
	line-height: 1;
	pointer-events: none;
	transform: translateX(-50%);
	transition: opacity 0.16s ease;
}

.fast-fact-game.is-counter-slide.is-bridge-intro .fast-fact-drag-frame,
.fast-fact-game.is-counter-slide.is-bridge-intro .fast-fact-counter-bracket {
	opacity: 0;
	transform: translateY(10px) scale(0.98);
}

.fast-fact-game.is-counter-slide.is-bridge-assembling .fast-fact-drag-frame,
.fast-fact-game.is-counter-slide.is-bridge-assembling .fast-fact-counter-bracket {
	opacity: 1;
	transform: translateY(0) scale(1);
	transition: opacity 0.32s ease, transform 0.32s ease;
}

.fast-fact-game.is-counter-slide.is-bridge-intro .fast-fact-drag-cell.is-filled span,
.fast-fact-game.is-counter-slide.is-bridge-intro .fast-fact-drag-counter {
	opacity: 0;
	transform: scale(0.72);
}

.fast-fact-game.is-counter-slide.is-bridge-assembling .fast-fact-drag-cell.is-filled span,
.fast-fact-game.is-counter-slide.is-bridge-assembling .fast-fact-drag-counter {
	animation: fast-fact-bridge-counter-pop 0.42s cubic-bezier(0.2, 0.78, 0.25, 1) forwards;
	animation-delay: calc(140ms + (var(--counter-index, 0) * 38ms));
}

.fast-fact-game.is-counter-slide.is-bridge-intro .fast-fact-frame-bank p,
.fast-fact-game.is-counter-slide.is-bridge-intro .fast-fact-counter-bank p,
.fast-fact-game.is-counter-slide.is-bridge-intro .fast-fact-drag-plus {
	opacity: 0;
}

.fast-fact-drag-frame {
	display: grid;
	grid-template-columns: repeat(5, var(--fast-fact-cell-size));
	grid-template-rows: repeat(2, var(--fast-fact-cell-size));
	border: 2px solid #252525;
	background: #ffffff;
	transition: box-shadow 0.16s ease, border-color 0.16s ease;
}

.fast-fact-drag-frame.is-ready {
	border-color: #45a3f1;
	box-shadow: 0 0 0 7px rgba(69, 163, 241, 0.12);
}

.fast-fact-drag-cell {
	display: grid;
	place-items: center;
	border-right: 1px solid rgba(17, 17, 17, 0.72);
	border-bottom: 1px solid rgba(17, 17, 17, 0.72);
}

.fast-fact-drag-cell:nth-child(5n) {
	border-right: 0;
}

.fast-fact-drag-cell:nth-child(n + 6) {
	border-bottom: 0;
}

.fast-fact-drag-cell span {
	display: block;
	width: var(--fast-fact-frame-counter-size);
	height: var(--fast-fact-frame-counter-size);
	border-radius: 50%;
	background: #fac274;
}

.fast-fact-drag-cell.is-new span {
	animation: fast-fact-counter-settle 0.52s ease-out forwards;
}

@keyframes fast-fact-counter-settle {
	from {
		background: #45a3f1;
		transform: scale(1.08);
	}
	to {
		background: #fac274;
		transform: scale(1);
	}
}

@keyframes fast-fact-bridge-counter-pop {
	0% {
		opacity: 0;
		transform: scale(0.72);
	}
	70% {
		opacity: 1;
		transform: scale(1.08);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

.fast-fact-counter-bank {
	min-width: clamp(170px, 26vw, 255px);
}

.fast-fact-counter-row {
	display: flex;
	align-items: end;
	gap: clamp(7px, 1.3vw, 13px);
	height: calc(4px + (var(--fast-fact-cell-size) * 2));
	box-sizing: border-box;
	padding-bottom: calc(2px + ((var(--fast-fact-cell-size) - var(--fast-fact-loose-counter-size)) / 2));
}

.fast-fact-drag-counter {
	appearance: none;
	width: var(--fast-fact-loose-counter-size);
	height: var(--fast-fact-loose-counter-size);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #45a3f1;
	cursor: grab;
	touch-action: none;
	transform: translate(var(--drag-x, 0), var(--drag-y, 0));
	transition: background 0.42s ease, opacity 0.2s ease;
}

.fast-fact-drag-counter:hover,
.fast-fact-drag-counter:focus-visible {
	outline: 3px solid rgba(69, 163, 241, 0.34);
	outline-offset: 4px;
}

.fast-fact-drag-counter.is-dragging {
	position: relative;
	z-index: 2;
	cursor: grabbing;
	box-shadow: 0 12px 22px rgba(34, 101, 159, 0.28);
}

.fast-fact-drag-counter.is-placed {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: none;
}

.fast-fact-counter-bracket {
	position: relative;
	display: block;
	width: 100%;
	height: 15px;
	border-bottom: 3px solid #281c50;
	border-radius: 0 0 5px 5px;
}

.fast-fact-counter-bracket::before,
.fast-fact-counter-bracket::after {
	content: "";
	position: absolute;
	bottom: -3px;
	width: 3px;
	height: 14px;
	background: #281c50;
}

.fast-fact-counter-bracket::before {
	left: 0;
}

.fast-fact-counter-bracket::after {
	right: 0;
}

.fast-fact-frame-bank p,
.fast-fact-counter-bank p {
	margin: 0;
	color: var(--heading);
	font-size: clamp(40px, 6vw, 56px);
	font-weight: 850;
	line-height: 1;
	transition: opacity 0.16s ease;
}

.fast-fact-frame-bank p.has-moved-to-equation,
.fast-fact-counter-bank p.has-moved-to-equation,
.fast-fact-drag-plus.has-moved-to-equation {
	opacity: 0;
	transition: none;
}

.fast-fact-frame-bank .fast-fact-counter-bracket {
	width: calc(100% - 2px);
}

.fast-fact-drag-reveal {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(14px, 3vw, 24px);
	min-height: 86px;
}

.fast-fact-drag-reveal[hidden] {
	visibility: hidden;
}

.fast-fact-drag-equation {
	display: flex;
	align-items: center;
	gap: clamp(8px, 1.7vw, 16px);
	margin: 0;
	color: var(--heading);
	font-size: clamp(40px, 6vw, 56px);
	font-weight: 850;
	line-height: 1;
}

.fast-fact-equation-number,
.fast-fact-equation-symbol,
.fast-fact-drag-answer {
	opacity: 0;
	transition: opacity 0.24s ease;
}

.fast-fact-equation-number {
	display: block;
	line-height: 1;
}

.fast-fact-drag-reveal.is-landed .fast-fact-equation-number {
	opacity: 1;
	transition: none;
}

.fast-fact-drag-reveal.is-complete .fast-fact-equation-symbol,
.fast-fact-drag-reveal.is-complete .fast-fact-drag-answer {
	opacity: 1;
}

.fast-fact-flying-number {
	position: fixed;
	z-index: 80;
	display: block;
	color: var(--heading);
	font-size: clamp(40px, 6vw, 56px);
	font-weight: 850;
	line-height: 1;
	text-align: center;
	pointer-events: none;
}

.fast-fact-drag-answer .question-inline-input {
	width: clamp(94px, 13vw, 125px);
	min-height: clamp(72px, 10vw, 88px);
	font-size: clamp(40px, 6vw, 56px);
}

.fast-fact-game-title {
	margin: -5px 0 0;
	color: var(--heading);
	font-size: clamp(30px, 4.5vw, 42px);
	line-height: 1;
}

.fast-fact-game-prompt {
	margin: 0;
	color: var(--text-secondary);
	font-size: clamp(15px, 2vw, 18px);
	font-weight: 650;
	text-align: center;
}

.fast-fact-game-prompt strong {
	color: var(--heading);
	font-size: 1.12em;
}

.fast-fact-game-choices {
	display: flex;
	justify-content: center;
	gap: clamp(9px, 2vw, 15px);
	flex-wrap: wrap;
}

.fast-fact-game-choice.measurement-choice-button {
	min-width: clamp(84px, 14vw, 118px);
	padding: 11px 17px;
	border-radius: 14px;
	font-size: clamp(22px, 3vw, 30px);
}

.fast-fact-game.is-frog-hops {
	--hop-first-color: #d0252a;
	--hop-first-shadow: rgba(208, 37, 42, 0.24);
	--hop-final-color: #45a3f1;
	--hop-final-shadow: rgba(69, 163, 241, 0.24);
}

.fast-fact-hop-question {
	display: flex;
	align-items: baseline;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.16em;
	margin: 0;
	color: var(--heading);
	font-size: clamp(38px, 6vw, 56px);
	font-weight: 850;
	line-height: 1;
}

.fast-fact-hop-question.is-split {
	font-size: clamp(32px, 5vw, 48px);
}

.fast-fact-hop-split-part {
	display: inline-flex;
	gap: 0.08em;
}

.fast-fact-hop-split-part.is-to-ten {
	color: var(--hop-first-color);
}

.fast-fact-hop-split-part.is-after-ten {
	color: var(--hop-final-color);
}

.fast-fact-hop-split-part [data-frog-hop-missing] {
	display: inline-block;
	min-width: 0.65em;
	text-align: center;
}

.fast-fact-hop-split-part [data-frog-hop-missing].is-revealed {
	animation: frog-hop-missing-reveal 0.42s ease;
}

.fast-fact-hop-line {
	display: grid;
	width: min(100%, 680px);
	padding-top: clamp(148px, 17vh, 190px);
}

.fast-fact-hop-track {
	position: relative;
	display: block;
	margin: 0 22px;
	height: 98px;
	border-top: 4px solid #17120a;
	color: var(--heading);
	font-size: clamp(16px, 2.3vw, 22px);
	font-weight: 850;
}

.fast-fact-hop-ticks {
	position: absolute;
	inset: 0;
}

.fast-fact-hop-trail {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s ease;
}

.fast-fact-hop-trail span {
	position: absolute;
	left: var(--dot-position);
	bottom: calc(100% + 5px + var(--dot-y, 0px));
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: rgba(17, 17, 17, 0.42);
	opacity: 0;
	transform: translate(-50%, 50%) scale(0.72);
	transition: opacity 0.2s ease, transform 0.24s ease;
	transition-delay: calc(var(--dot-index, 0) * 16ms);
}

.fast-fact-hop-trail.is-first span {
	background: var(--hop-first-color);
}

.fast-fact-hop-trail.is-final span {
	background: var(--hop-final-color);
}

.fast-fact-game.is-frog-hops.is-hop-first-complete .fast-fact-hop-trail.is-first,
.fast-fact-game.is-frog-hops.is-hop-final-complete .fast-fact-hop-trail.is-final {
	opacity: 1;
}

.fast-fact-game.is-frog-hops.is-hop-first-complete .fast-fact-hop-trail.is-first span,
.fast-fact-game.is-frog-hops.is-hop-final-complete .fast-fact-hop-trail.is-final span {
	opacity: 1;
	transform: translate(-50%, 50%) scale(1);
}

.fast-fact-hop-step-segments {
	position: absolute;
	inset: 0;
	z-index: 1;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s ease;
}

.fast-fact-hop-step-segments span {
	position: absolute;
	top: -13px;
	left: calc(var(--segment-left) + 8px);
	width: calc(var(--segment-width) - 16px);
	height: 7px;
	border-radius: 999px;
	box-shadow: 0 2px 0 rgba(23, 18, 10, 0.16);
	opacity: 0;
	transform: scaleX(0);
	transform-origin: left center;
	transition: opacity 0.18s ease, transform 0.24s ease;
	transition-delay: calc(var(--segment-index, 0) * 58ms);
}

.fast-fact-hop-step-segments.is-first span {
	background: var(--hop-first-color);
	box-shadow: 0 2px 0 rgba(208, 37, 42, 0.16);
}

.fast-fact-hop-step-segments.is-final span {
	background: var(--hop-final-color);
	box-shadow: 0 2px 0 rgba(69, 163, 241, 0.16);
}

.fast-fact-game.is-frog-hops.is-hop-first-complete .fast-fact-hop-step-segments.is-first,
.fast-fact-game.is-frog-hops.is-hop-final-complete .fast-fact-hop-step-segments.is-final {
	opacity: 1;
}

.fast-fact-game.is-frog-hops.is-hop-first-complete .fast-fact-hop-step-segments.is-first span,
.fast-fact-game.is-frog-hops.is-hop-final-complete .fast-fact-hop-step-segments.is-final span {
	opacity: 1;
	transform: scaleX(1);
}

.fast-fact-hop-shadow {
	position: absolute;
	top: -11px;
	left: var(--frog-shadow-position, var(--start-position));
	z-index: 1;
	width: clamp(26px, 4vw, 38px);
	height: 12px;
	border-radius: 999px;
	background: rgba(17, 17, 17, 0.18);
	box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.04);
	pointer-events: none;
	transform: translateX(-50%) scaleX(var(--frog-shadow-scale, 1));
	transition: left 0.2s ease, background 0.16s ease, transform 0.16s ease, width 0.16s ease;
}

.fast-fact-game.is-frog-hops.is-hop-dragging .fast-fact-hop-shadow {
	transition: background 0.16s ease, transform 0.08s ease, width 0.16s ease;
}

.fast-fact-game.is-frog-hops.is-hop-dragging .fast-fact-hop-shadow {
	background: var(--hop-first-shadow);
}

.fast-fact-game.is-frog-hops.is-hop-final-phase .fast-fact-hop-shadow {
	background: var(--hop-final-shadow);
}

.fast-fact-game.is-frog-hops.is-hop-final-phase.is-hop-dragging .fast-fact-hop-shadow,
.fast-fact-game.is-frog-hops.is-hop-final-complete .fast-fact-hop-shadow {
	background: var(--hop-final-shadow);
}

.fast-fact-game.is-frog-hops.is-hop-wrong .fast-fact-hop-shadow {
	animation: frog-hop-shadow-wrong 0.46s ease;
	background: rgba(207, 57, 57, 0.4);
	box-shadow: 0 0 0 8px rgba(207, 57, 57, 0.12);
}

.fast-fact-hop-tick {
	position: absolute;
	top: 0;
	left: var(--tick-position);
	z-index: 2;
	display: block;
	width: 42px;
	padding-top: 17px;
	text-align: center;
	transform: translateX(-50%);
}

.fast-fact-hop-tick::before {
	content: "";
	position: absolute;
	top: -11px;
	left: 50%;
	width: 4px;
	height: 15px;
	border-radius: 3px;
	background: #17120a;
	transform: translateX(-50%);
}

.fast-fact-hop-tick.is-hop-start,
.fast-fact-hop-tick.is-hop-ten,
.fast-fact-hop-tick.is-hop-finish {
	font-size: clamp(21px, 3vw, 28px);
}

.fast-fact-hop-frog {
	appearance: none;
	position: absolute;
	left: var(--frog-position, var(--start-position));
	bottom: calc(100% + clamp(14px, 2.6vh, 26px));
	z-index: 3;
	width: clamp(50px, 8.5vw, 66px);
	height: clamp(50px, 8.5vw, 66px);
	padding: 0;
	border: 0;
	background: transparent;
	cursor: grab;
	touch-action: none;
	transform: translateX(-50%) translateY(var(--frog-y, 0px));
	transition: left 0.2s ease, filter 0.16s ease, transform 0.16s ease;
}

.fast-fact-hop-frog img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	pointer-events: none;
	transform: scaleX(-1);
	user-select: none;
}

.fast-fact-hop-frog:hover,
.fast-fact-hop-frog:focus-visible,
.fast-fact-hop-frog.is-dragging {
	outline: none;
	filter: drop-shadow(0 10px 0 rgba(17, 17, 17, 0.1));
	transform: translateX(-50%) translateY(calc(var(--frog-y, 0px) - 2px));
}

.fast-fact-hop-frog.is-dragging {
	cursor: grabbing;
	transition: filter 0.16s ease, transform 0.16s ease;
}

.fast-fact-hop-frog.is-wrong {
	animation: frog-hop-wrong 0.46s ease;
}

.fast-fact-hop-frog.is-at-ten,
.fast-fact-hop-frog.is-finished {
	cursor: default;
}

.fast-fact-hop-frog:disabled {
	opacity: 1;
}

@keyframes frog-hop-wrong {
	0%,
	100% {
		filter: none;
		transform: translateX(-50%) translateY(var(--frog-y, 0px));
	}

	25% {
		filter: drop-shadow(0 0 10px rgba(207, 57, 57, 0.72));
		transform: translateX(calc(-50% - 6px)) translateY(var(--frog-y, 0px));
	}

	55% {
		filter: drop-shadow(0 0 14px rgba(207, 57, 57, 0.82));
		transform: translateX(calc(-50% + 6px)) translateY(var(--frog-y, 0px));
	}

	78% {
		filter: drop-shadow(0 0 10px rgba(207, 57, 57, 0.56));
		transform: translateX(calc(-50% - 3px)) translateY(var(--frog-y, 0px));
	}
}

@keyframes frog-hop-shadow-wrong {
	0%,
	100% {
		background: rgba(207, 57, 57, 0.3);
		box-shadow: 0 0 0 6px rgba(207, 57, 57, 0.1);
	}

	45%,
	70% {
		background: rgba(207, 57, 57, 0.44);
		box-shadow: 0 0 0 9px rgba(207, 57, 57, 0.14);
	}
}

@keyframes frog-hop-missing-reveal {
	0% {
		transform: translateY(-0.14em) scale(0.78);
		opacity: 0.2;
	}

	55% {
		transform: translateY(0) scale(1.12);
		opacity: 1;
	}

	100% {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
}

.fast-fact-game.is-frog-hops.is-hop-locked .fast-fact-game-choices {
	display: none;
}

.fast-fact-bond-board {
	--bond-piece-size: clamp(62px, 8vw, 84px);
	position: relative;
	display: grid;
	gap: clamp(44px, 7vw, 60px);
	width: min(100%, 640px);
	padding-top: 5px;
}

.fast-fact-bond-row {
	display: grid;
	align-items: center;
	justify-content: center;
	margin: 0;
	color: var(--heading);
	font-size: var(--question-font-size);
	font-weight: 700;
	line-height: var(--question-line-height);
	letter-spacing: var(--question-letter-spacing);
	text-align: center;
}

.fast-fact-bond-row.is-original {
	grid-template-columns: minmax(54px, auto) minmax(45px, auto) var(--bond-piece-size) minmax(45px, auto) var(--bond-piece-size);
}

.fast-fact-bond-row.is-rewrite {
	grid-template-columns: var(--bond-piece-size) auto var(--bond-piece-size);
	column-gap: clamp(16px, 3vw, 28px);
}

.fast-fact-bond-row.is-original .is-left {
	grid-column: 1;
}

.fast-fact-bond-row.is-original .is-plus {
	grid-column: 2;
}

.fast-fact-bond-whole {
	grid-column: 3;
}

.fast-fact-bond-row.is-original .is-equals {
	grid-column: 4;
}

.fast-fact-bond-row.is-original .is-total {
	grid-column: 5;
}

.fast-fact-bond-row.is-rewrite .fast-fact-bond-target:first-of-type {
	grid-column: 1;
}

.fast-fact-bond-row.is-rewrite .is-plus {
	grid-column: 2;
}

.fast-fact-bond-row.is-rewrite .fast-fact-bond-target.is-leftover {
	grid-column: 3;
}

.fast-fact-bond-lines {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

.fast-fact-bond-lines path {
	fill: none;
	stroke: rgba(61, 34, 95, 0.58);
	stroke-width: 3;
	stroke-linecap: round;
}

.fast-fact-bond-target {
	display: grid;
	place-items: center;
	width: var(--bond-piece-size);
	height: var(--bond-piece-size);
	border: 4px dashed #d26a19;
	border-radius: 50%;
	color: #d26a19;
	font-size: clamp(36px, 5vw, 54px);
	font-weight: 750;
	letter-spacing: 0;
	line-height: 1;
	background: #fff5e8;
	z-index: 1;
}

.fast-fact-bond-target.is-leftover {
	border-color: #a5263d;
	color: #a5263d;
	background: #fff0f3;
}

.fast-fact-game.is-number-bonds .fast-fact-game-choice.measurement-choice-button {
	min-width: clamp(98px, 13vw, 142px);
	padding: 10px 14px;
	border: 2px solid rgba(34, 34, 34, 0.18);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.82);
	color: #252525;
	font-size: clamp(19px, 2.4vw, 30px);
	font-weight: 700;
}

.fast-fact-game.is-number-bonds .fast-fact-game-choice.measurement-choice-button.is-selected {
	border-color: rgba(34, 34, 34, 0.56);
	background: #ffffff;
}

.fast-fact-match-original {
	display: inline-block;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--heading);
	font-size: var(--question-font-size);
	font-weight: 700;
	line-height: var(--question-line-height);
	letter-spacing: var(--question-letter-spacing);
}

.fast-fact-match-arrow {
	color: var(--text-secondary);
	font-size: clamp(16px, 2vw, 20px);
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

.question-side {
	flex: 0 0 50%;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.question-side-left {
	justify-content: flex-end;
	padding-right: clamp(44px, 6vw, 88px);
}

.question-side-right {
	justify-content: flex-start;
	padding-left: clamp(44px, 6vw, 88px);
}

.question-single.is-correct {
	background: rgba(92, 181, 92, 0.18);
	box-shadow: 0 0 0 6px rgba(92, 181, 92, 0.1);
}

.question-single.is-incorrect {
	background: rgba(215, 69, 110, 0.18);
	box-shadow: 0 0 0 6px rgba(215, 69, 110, 0.1);
}

.question-prompt-row {
	display: inline-flex;
	align-items: flex-start;
	justify-content: flex-end;
	gap: clamp(10px, 2vw, 18px);
	max-width: 100%;
}

.question-side-left .question-prompt-row {
	width: 100%;
}

.question-prompt {
	margin: 0;
	font-size: var(--question-font-size);
	line-height: var(--question-line-height);
	letter-spacing: var(--question-letter-spacing);
	color: #111111;
	text-align: right;
}

.question-speech-button {
	flex: 0 0 auto;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 2px solid rgba(17, 17, 17, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.86);
	color: #151515;
	line-height: 0;
	box-shadow: 0 12px 26px rgba(60, 66, 87, 0.1);
	cursor: pointer;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.question-speech-button:hover,
.question-speech-button:focus-visible {
	border-color: rgba(17, 17, 17, 0.28);
	background: #ffffff;
	transform: translateY(-1px);
}

.question-speech-button svg {
	width: 28px;
	height: 28px;
	fill: currentColor;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.question-speech-button.is-loading,
.question-speech-button.is-playing {
	border-color: rgba(224, 183, 79, 0.64);
	background: #f4d26e;
	color: #18130a;
}

.question-speech-button.is-error {
	border-color: rgba(215, 69, 110, 0.4);
	background: rgba(215, 69, 110, 0.12);
	color: #7a2434;
}

.question-equals {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: inline-block;
	pointer-events: none;
	font-size: var(--question-font-size);
	line-height: var(--question-line-height);
	letter-spacing: var(--question-letter-spacing);
	font-weight: 700;
	color: #111111;
}

.question-inline-answer {
	display: inline-flex;
	align-items: center;
}

.question-inline-input {
	width: clamp(140px, 18vw, 220px);
	min-height: clamp(88px, 14vw, 132px);
	padding: 0 24px;
	border: 2px solid rgba(17, 17, 17, 0.1);
	background: rgba(255, 255, 255, 0.92);
	font-size: clamp(40px, 7vw, 84px);
	font-weight: 700;
	text-align: center;
	box-shadow: 0 24px 44px rgba(60, 66, 87, 0.08);
}

.question-inline-input:focus {
	outline: none;
	border-color: rgba(216, 106, 22, 0.3);
	box-shadow:
		0 0 0 6px rgba(224, 183, 79, 0.14),
		0 24px 44px rgba(60, 66, 87, 0.12);
}

.question-set-page.is-complete .question-inline-input {
	display: none;
}

.question-complete {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	width: 100%;
	min-height: 220px;
	text-align: center;
}

.question-complete-with-puzzle .question-prompt {
	margin: 0;
}

.question-puzzle-button {
	min-width: 180px;
	min-height: 68px;
	font-size: clamp(1.25rem, 2vw, 1.65rem);
	font-weight: 950;
}

.question-crossword {
	display: flex;
	flex-direction: column;
	gap: 28px;
	width: min(100%, 760px);
	margin: 0 auto;
	padding: clamp(24px, 4vw, 40px);
	border: 0;
	background: transparent;
	box-shadow: none;
}

.question-crossword .question-prompt-row {
	justify-content: center;
	width: 100%;
}

.question-crossword-title {
	margin: 0;
	font-size: clamp(40px, 6vw, 68px);
	line-height: 0.96;
	letter-spacing: -0.05em;
	text-align: center;
	color: var(--heading);
}

.question-crossword-board {
	display: grid;
	grid-template-columns: repeat(var(--crossword-cols), minmax(0, var(--crossword-cell-size, 78px)));
	grid-template-rows: repeat(var(--crossword-rows), minmax(0, var(--crossword-cell-size, 78px)));
	justify-content: center;
	gap: 0;
	width: fit-content;
	margin: 0 auto;
}

.question-crossword-cell {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--crossword-cell-size, 78px);
	height: var(--crossword-cell-size, 78px);
	border: 2px solid #151515;
	background: #fffdf8;
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 700;
	line-height: 1;
	color: #111111;
	box-sizing: border-box;
}

.question-crossword-cell.is-empty {
	border-color: transparent;
	background: transparent;
}

.question-crossword-cell.is-operator {
	background: #ffffff;
}

.question-crossword-cell.is-value {
	background: rgba(224, 183, 79, 0.16);
}

.question-crossword-blank {
	padding: 0;
}

.question-crossword-input {
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 700;
	line-height: 1;
	text-align: center;
	color: #111111;
}

.question-crossword-input:focus {
	outline: none;
	background: rgba(224, 183, 79, 0.18);
}

.question-crossword-note {
	margin: 0;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	color: var(--text-secondary);
}

.question-task-intro {
	display: grid;
	place-items: center;
	gap: 18px;
	width: min(100%, 980px);
	margin: 0 auto;
	text-align: center;
	outline: 0;
}

.question-task-secondary {
	max-width: 34ch;
	margin: 0;
	font-size: clamp(24px, 3vw, 36px);
	font-weight: 400;
	line-height: 1.12;
	color: rgba(36, 23, 10, 0.78);
}

body.dark .question-prompt {
	color: #ffffff;
}

body.dark .question-equals {
	color: #ffffff;
}

body.dark .question-inline-input {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	box-shadow: 0 24px 44px rgba(0, 0, 0, 0.18);
}

body.dark .question-inline-input:focus {
	border-color: rgba(224, 183, 79, 0.38);
	box-shadow:
		0 0 0 6px rgba(224, 183, 79, 0.14),
		0 24px 44px rgba(0, 0, 0, 0.24);
}

body.dark .question-preview-chip {
	border-color: rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.06);
	color: #fff4db;
}

body.dark .task-grade-label,
body.dark .task-title-label {
	color: rgba(255, 255, 255, 0.68);
}

body.dark .task-strand-label {
	color: rgba(255, 255, 255, 0.88);
}

body.dark .question-preview-chip.is-active {
	background: var(--gold);
	color: #1b1508;
}

body.dark .question-preview-tab {
	border-color: rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 244, 219, 0.78);
}

body.dark .question-preview-tab.is-active {
	background: #ffffff;
	border-color: #ffffff;
	color: #111111;
}

body.dark .question-preview-strategytab {
	border-color: rgba(224, 183, 79, 0.38);
	background: rgba(224, 183, 79, 0.1);
	color: rgba(255, 244, 219, 0.84);
}

body.dark .question-preview-strategytab.is-active {
	border-color: #d26a19;
	background: #d26a19;
	color: #ffffff;
}

body.dark .question-preview-export {
	border-color: rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 244, 219, 0.78);
}

body.dark .question-preview-export select {
	border-color: rgba(255, 255, 255, 0.16);
	background: #251f14;
	color: #fff4db;
}

body.dark .question-preview-export input {
	border-color: rgba(255, 255, 255, 0.16);
	background: #251f14;
	color: #fff4db;
}

body.dark .question-preview-answer {
	color: rgba(255, 244, 219, 0.74);
}

body.dark .fast-fact-strategy-card {
	border-color: rgba(224, 183, 79, 0.38);
	background: rgba(224, 183, 79, 0.12);
}

body.dark .fast-fact-strategy-title {
	color: #fff4db;
}

body.dark .fast-fact-strategy-hint {
	color: rgba(255, 244, 219, 0.74);
}

body.dark .fast-fact-game {
	color: #fff4db;
}

body.dark .fast-fact-game-title,
body.dark .fast-fact-hop-track {
	color: #fff4db;
}

body.dark .fast-fact-pop-equation {
	color: #fff4db;
}

body.dark .fast-fact-sort-card {
	border-color: #fff4db;
	background: rgba(255, 244, 219, 0.04);
	color: #fff4db;
	box-shadow: 0 14px 0 rgba(255, 244, 219, 0.06);
}

body.dark .fast-fact-sort-card:focus-visible {
	outline-color: rgba(224, 183, 79, 0.55);
}

body.dark .fast-fact-sort-bucket {
	border-color: #fff4db;
	background: rgba(224, 183, 79, 0.18);
	color: #fff4db;
}

body.dark .fast-fact-sort-bucket.is-counting_on {
	background: rgba(224, 183, 79, 0.2);
}

body.dark .fast-fact-sort-bucket.is-doubles {
	background: rgba(145, 91, 204, 0.22);
}

body.dark .fast-fact-sort-bucket.is-bridging_to_10 {
	background: rgba(69, 163, 241, 0.14);
}

body.dark .fast-fact-sort-bucket.is-friends_of_10 {
	background: rgba(56, 155, 91, 0.18);
}

body.dark .fast-fact-sort-bucket.is-selected {
	background: rgba(224, 183, 79, 0.35);
}

body.dark .fast-fact-sort-bucket.is-drop-target {
	box-shadow: 0 14px 0 rgba(255, 244, 219, 0.08);
}

body.dark .fast-fact-sort-bucket.is-doubles.is-selected {
	background: rgba(145, 91, 204, 0.38);
}

body.dark .fast-fact-sort-bucket.is-bridging_to_10.is-selected {
	background: rgba(69, 163, 241, 0.32);
}

body.dark .fast-fact-sort-bucket.is-friends_of_10.is-selected {
	background: rgba(56, 155, 91, 0.34);
}

body.dark .fast-fact-sort-bucket-lip {
	border-color: #fff4db;
}

body.dark .fast-fact-sort-bucket small {
	color: rgba(255, 244, 219, 0.72);
}

body.dark .fast-fact-game-prompt,
body.dark .fast-fact-bond-target small {
	color: rgba(255, 244, 219, 0.76);
}

body.dark .fast-fact-double-bubble-group {
	border-color: #fff4db;
	background: rgba(255, 244, 219, 0.04);
}

body.dark .fast-fact-bubble {
	border-color: #fff4db;
}

body.dark .fast-fact-hop-track {
	border-color: #fff4db;
}

body.dark .fast-fact-hop-trail.is-first span {
	background: #ff6b71;
}

body.dark .fast-fact-hop-trail.is-final span {
	background: #6ebeff;
}

body.dark .fast-fact-hop-step-segments.is-first span {
	background: #ff6b71;
	box-shadow: 0 2px 0 rgba(255, 107, 113, 0.18);
}

body.dark .fast-fact-hop-step-segments.is-final span {
	background: #6ebeff;
	box-shadow: 0 2px 0 rgba(110, 190, 255, 0.18);
}

body.dark .fast-fact-hop-shadow {
	background: rgba(255, 244, 219, 0.2);
}

body.dark .fast-fact-hop-tick::before {
	background: #fff4db;
}

body.dark .fast-fact-bond-root {
	background: #e0b74f;
	color: #17120a;
}

body.dark .fast-fact-match-original {
	color: #fff4db;
}

body.dark .fast-fact-bond-lines path {
	stroke: rgba(224, 183, 79, 0.7);
}

body.dark .fast-fact-bond-target {
	background: #251f14;
}

body.dark .fast-fact-bond-target.is-leftover {
	background: #28151c;
}

body.dark .fast-fact-game.is-number-bonds .fast-fact-game-choice.measurement-choice-button {
	border-color: rgba(255, 244, 219, 0.22);
	background: rgba(255, 255, 255, 0.06);
	color: #fff4db;
}

body.dark .fast-fact-game.is-number-bonds .fast-fact-game-choice.measurement-choice-button.is-selected {
	border-color: rgba(255, 244, 219, 0.62);
	background: rgba(255, 255, 255, 0.14);
}

body.dark .fast-fact-drag-frame {
	border-color: #fff4db;
	background: rgba(255, 244, 219, 0.04);
}

body.dark .fast-fact-drag-cell {
	border-color: rgba(255, 244, 219, 0.58);
}

body.dark .fast-fact-counter-bracket {
	border-bottom-color: #e0b74f;
}

body.dark .fast-fact-counter-bracket::before,
body.dark .fast-fact-counter-bracket::after {
	background: #e0b74f;
}

body.dark .question-crossword {
	background: transparent;
	box-shadow: none;
}

body.dark .question-crossword-title,
body.dark .question-crossword-note {
	color: #fff4db;
}

body.dark .question-crossword-cell {
	border-color: rgba(255, 255, 255, 0.84);
	background: rgba(255, 255, 255, 0.06);
	color: #ffffff;
}

body.dark .question-crossword-cell.is-empty {
	border-color: transparent;
	background: transparent;
}

body.dark .question-crossword-cell.is-operator {
	background: rgba(255, 255, 255, 0.03);
}

body.dark .question-crossword-cell.is-value {
	background: rgba(224, 183, 79, 0.18);
}

body.dark .question-crossword-input {
	background: transparent;
	color: #ffffff;
}

body.dark .question-crossword-input:focus {
	background: rgba(224, 183, 79, 0.18);
}

.test-section {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.app-section {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.app-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.app-card,
.app-thumbnail,
.app-store-link {
	--squircle-radius: var(--squircle-md);
}

.app-card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	height: 100%;
	padding: 24px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(17, 17, 17, 0.06);
	box-shadow: 0 20px 48px rgba(60, 66, 87, 0.1);
	cursor: pointer;
	transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

body.dark .app-card {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.app-card:focus-visible {
	outline: 3px solid rgba(216, 106, 22, 0.35);
	outline-offset: 4px;
}

.app-card:hover,
.app-card:focus-visible {
	transform: translateY(-8px) scale(1.02);
	box-shadow: 0 28px 60px rgba(60, 66, 87, 0.16);
}

body.dark .app-card:hover,
body.dark .app-card:focus-visible {
	box-shadow: 0 28px 60px rgba(0, 0, 0, 0.3);
}

.app-thumbnail {
	display: grid;
	place-items: center;
	padding: 18px;
	min-height: 220px;
	background:
		radial-gradient(circle at top, rgba(255, 189, 115, 0.24), transparent 45%),
		linear-gradient(180deg, rgba(17, 17, 17, 0.02), rgba(17, 17, 17, 0.06));
}

body.dark .app-thumbnail {
	background:
		radial-gradient(circle at top, rgba(255, 189, 115, 0.14), transparent 45%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05));
}

.app-thumbnail img {
	display: block;
	width: min(100%, 240px);
	height: auto;
	border-radius: 22%;
	box-shadow:
		0 20px 28px rgba(0, 0, 0, 0.18),
		0 0 0 1px rgba(17, 17, 17, 0.05);
	filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.14));
	transition:
		transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.32s ease,
		filter 0.32s ease;
	transition-delay: 0s;
	transform-origin: center center;
}

.app-card:hover .app-thumbnail img,
.app-card:focus-within .app-thumbnail img {
	transform: translateY(-5px) scale(1.05);
	box-shadow:
		0 28px 36px rgba(0, 0, 0, 0.22),
		0 0 0 1px rgba(17, 17, 17, 0.05);
	filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.16));
	transition-delay: 0.08s;
}

body.dark .app-thumbnail img {
	box-shadow:
		0 20px 28px rgba(0, 0, 0, 0.28),
		0 0 0 1px rgba(255, 255, 255, 0.08);
}

.app-copy {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 14px;
	align-items: flex-start;
}

.app-store-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	align-self: center;
}

.app-store-badge {
	display: block;
	width: 160px;
	height: auto;
}

.app-coming-soon {
	margin: 4px auto 0;
	padding: 10px 18px;
	border-radius: 999px;
	background: rgba(214, 166, 58, 0.14);
	color: var(--brand-ink);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

body.dark .app-coming-soon {
	background: rgba(214, 166, 58, 0.2);
	color: #fff4db;
}

.test-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.test-tile,
.test-band,
.test-chip {
	--squircle-radius: var(--squircle-md);
}

.test-tile,
.test-band {
	padding: 28px;
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(17, 17, 17, 0.06);
	box-shadow: 0 20px 48px rgba(60, 66, 87, 0.1);
}

body.dark .test-tile,
body.dark .test-band {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.test-band {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 24px;
	align-items: center;
}

.test-copy {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.test-stack {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-content: flex-start;
}

.test-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 18px;
	background: rgba(214, 166, 58, 0.14);
	color: var(--brand-ink);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

body.dark .test-chip {
	background: rgba(214, 166, 58, 0.2);
	color: #fff4db;
}

@media (prefers-reduced-motion: reduce) {
	.animal-sprite {
		transform: none;
	}
}

@media (max-width: 600px) {
	.result-task-shell {
		grid-template-columns: 1fr;
		padding: 0 0 10px;
	}

	.result-attempt-card {
		grid-template-columns: 1fr;
		align-items: flex-start;
	}

	.result-task-footer,
	.results-task-mini-grid {
		justify-content: flex-start;
	}

	.result-task-actions {
		justify-content: flex-start;
		padding: 0 12px;
		flex-wrap: wrap;
	}

	.results-overview-heading,
	.attempt-snap-header {
		flex-direction: column;
	}

	.results-overview-actions {
		justify-content: flex-start;
	}

	.result-setup-panel {
		position: fixed;
		inset: auto 14px 14px;
		width: auto;
		max-height: 70vh;
	}

	.question-snap-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.student-result-grid {
		grid-template-columns: 1fr;
	}

	.question-snap-expanded .student-stat-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nav-inner {
		padding-inline: var(--s2);
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.nav-brand {
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.nav-links {
		width: 100%;
		display: grid;
		grid-column: 1 / -1;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.logo-inline .rigby,
	.logo-inline .maths {
		font-size: 28px;
	}

	.nav-actions {
		width: 100%;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		justify-content: flex-start;
		gap: 8px;
	}

	.nav-quick-join,
	.nav-auth {
		width: 100%;
	}

	.nav-link,
	.nav-btn {
		width: 100%;
		min-height: 40px;
		padding-inline: 10px;
		white-space: normal;
		text-align: center;
	}

	.nav-login-panel,
	.nav-class-code-panel {
		left: 0;
		right: auto;
		width: min(calc(100vw - 24px), 320px);
	}

	.hero {
		padding: 28px;
	}

	.auth-shell {
		grid-template-columns: 1fr;
		padding: 18px;
	}

	.account-shell {
		grid-template-columns: 1fr;
		padding: 0;
	}

	.account-page .dashboard-sidebar,
	.account-page .account-panel {
		grid-column: 1 / -1;
	}

	.join-shell {
		grid-template-columns: 1fr;
		padding: 18px;
	}

	.question-single {
		flex-direction: column;
		width: 100%;
		max-width: 100%;
		margin-left: 0;
	}

	.question-crossword {
		width: 100%;
		padding: 22px 18px;
	}

	.question-crossword-board {
		--crossword-cell-size: min(16vw, 64px);
	}

	.question-side {
		flex: 0 0 auto;
		width: 100%;
		justify-content: center;
		padding-inline: 0;
	}

	.question-preview-type-list {
		grid-template-columns: 1fr;
	}

	.question-equals {
		position: static;
		transform: none;
	}

	.algebra-pattern-tile,
	.algebra-pattern-blank {
		width: 58px;
		height: 58px;
		border-width: 3px;
	}

	.algebra-pattern-tile.is-card {
		width: 76px;
		height: 58px;
	}

	.algebra-pattern-tile.is-card span {
		font-size: 14px;
	}

	.algebra-pattern-tile.is-triangle {
		border-right-width: 32px;
		border-bottom-width: 58px;
		border-left-width: 32px;
	}

	.algebra-pattern-tile.is-triangle::after {
		left: -25px;
		top: 7px;
		border-right-width: 25px;
		border-bottom-width: 45px;
		border-left-width: 25px;
	}

	.algebra-choice-button {
		min-width: 82px;
		min-height: 82px;
	}

	.balance-seesaw-stage {
		width: min(94vw, 520px);
		height: 260px;
	}

	.balance-seesaw-side {
		top: 13%;
		width: 38%;
		min-height: 108px;
	}

	.balance-seesaw-side.is-left {
		left: 3%;
	}

	.balance-seesaw-side.is-right {
		right: 3%;
	}

	.balance-seesaw-items {
		gap: 7px;
		min-height: 74px;
	}

	.balance-seesaw-beam {
		top: 56%;
		left: 2%;
		right: 2%;
		height: 28px;
		border-width: 4px;
	}

	.balance-seesaw-pivot {
		top: calc(56% + 24px);
		border-right-width: 56px;
		border-bottom-width: 86px;
		border-left-width: 56px;
	}

	.balance-seesaw-pivot::after {
		top: 9px;
		left: -41px;
		border-right-width: 41px;
		border-bottom-width: 62px;
		border-left-width: 41px;
	}

	.algebra-pattern-tile.is-balance-token,
	.algebra-pattern-tile.is-balance-choice,
	.balance-seesaw-unknown {
		width: 52px;
		height: 52px;
		border-width: 3px;
	}

	.algebra-pattern-tile.is-triangle.is-balance-token,
	.algebra-pattern-tile.is-triangle.is-balance-choice {
		border-right-width: 30px;
		border-bottom-width: 52px;
		border-left-width: 30px;
	}

	.algebra-pattern-tile.is-triangle.is-balance-token::after,
	.algebra-pattern-tile.is-triangle.is-balance-choice::after {
		left: -23px;
		top: 6px;
		border-right-width: 23px;
		border-bottom-width: 40px;
		border-left-width: 23px;
	}

	.balance-seesaw-unknown {
		border-radius: 11px;
		font-size: 32px;
	}

	.algebra-choice-button.is-balance-item {
		min-width: 82px;
		min-height: 78px;
		padding: 10px;
	}

	.post-task-puzzle-picker,
	.who-am-i-clues {
		grid-template-columns: 1fr;
	}

	.post-task-puzzle-card {
		min-height: 112px;
		padding: 18px;
	}

	.puzzle-number-choice {
		min-width: 74px;
		min-height: 68px;
		font-size: 2rem;
	}

	.mini-sudoku {
		grid-template-columns: repeat(4, 58px);
		grid-template-rows: repeat(4, 58px);
	}

	.mini-sudoku-cell {
		width: 58px;
		height: 58px;
		font-size: 2rem;
	}

	.who-am-i-clue {
		min-height: 68px;
	}

	.algebra-grid {
		grid-template-columns: repeat(var(--algebra-grid-size), minmax(58px, 72px));
	}

	.algebra-grid-cell,
	.algebra-track-cell {
		width: 64px;
		height: 64px;
	}

	.algebra-track {
		grid-template-columns: repeat(5, minmax(54px, 64px));
	}

	.dashboard-sidebar {
		position: static;
	}

	.dashboard-topbar,
	.dashboard-main-grid {
		display: flex;
		flex-direction: column;
	}

	.dashboard-topbar {
		align-items: flex-start;
	}

	.dashboard-topbar-side {
		align-items: flex-start;
	}

	.hero h1 {
		max-width: none;
	}

	.hero-anchor {
		display: none;
	}

	.animal-grid {
		grid-template-columns: 1fr;
	}

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

	.dashboard-summary-grid {
		grid-template-columns: 1fr;
	}

	.student-roster {
		grid-template-columns: 1fr;
	}

	body.student-join-page .student-roster {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 7px;
	}

	body.student-join-page .join-roster-stage {
		gap: 10px;
	}

	body.student-join-page .join-roster-welcome {
		font-size: clamp(34px, 12vw, 54px);
	}

	body.student-join-page .join-roster-secondary {
		font-size: 15px;
		line-height: 1.15;
	}

	body.student-join-page .student-name-button {
		min-height: 38px;
		padding: 7px 8px;
		font-size: clamp(12px, 3.4vw, 14px);
	}

	.class-summary-grid,
	.student-dashboard-grid,
	.student-stat-row {
		grid-template-columns: 1fr;
	}

	.student-accordion-toggle {
		grid-template-columns: 1fr;
	}

	.student-accordion-class {
		text-align: left;
	}

	.animal-section {
		margin-top: 0;
		padding-top: 0;
	}

	.animal-card {
		transform: none;
	}

	.auth-panel,
	.auth-form-card {
		padding: 22px;
	}

	.test-grid,
	.test-band,
	.app-grid {
		grid-template-columns: 1fr;
	}

	.task-builder-grid {
		grid-template-columns: 1fr;
	}

	.task-plan-item {
		grid-template-columns: 1fr;
		align-items: stretch;
	}

	.task-build-empty,
	.task-build-preview-heading {
		align-items: stretch;
		flex-direction: column;
	}

	.task-preview-header {
		align-items: stretch;
		flex-direction: column;
	}

	.task-preview-plan-pill {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 900px) {
	.student-task-reel {
		padding-inline: 8px;
	}

	.student-task-reel-item {
		flex-basis: 176px;
	}

	.student-task-tile {
		min-height: 142px;
		padding: 16px 12px 21px;
	}

	.student-task-name {
		font-size: 17px;
	}

	.question-single {
		flex-direction: column;
		padding-top: 0;
	}

	.fast-fact-equation {
		flex-direction: column;
		gap: 12px;
	}

	.fast-fact-game {
		padding-inline: 12px;
	}

	.fast-fact-sort-buckets {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: min(100%, 500px);
	}

	.fast-fact-sort-bucket {
		min-height: 96px;
	}

	.fast-fact-double-bubbles {
		grid-template-columns: 1fr;
		width: min(100%, 270px);
	}

	.fast-fact-double-bubble-group {
		min-height: 86px;
	}

	.fast-fact-hop-line {
		width: min(100%, 390px);
	}

	.fast-fact-drag-workspace {
		flex-direction: column;
		gap: 22px;
	}

	.fast-fact-drag-plus {
		top: 50%;
		bottom: auto;
		transform: translate(-50%, -50%);
	}

	.fast-fact-counter-bank {
		padding-top: 0;
	}

	.fast-fact-counter-row {
		height: auto;
		padding-bottom: 0;
	}

	.question-crossword-title {
		font-size: clamp(34px, 9vw, 52px);
	}

	.question-crossword-board {
		--crossword-cell-size: min(17vw, 58px);
	}

	.hero {
		flex-direction: column;
		min-height: auto;
	}

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

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

	.auth-shell {
		grid-template-columns: 1fr;
	}

	.test-grid,
	.test-band,
	.app-grid {
		grid-template-columns: 1fr;
	}

	.animal-section {
		margin-top: 0;
		padding-top: 0;
	}

	.animal-card {
		transform: none;
	}

	.animal-sprite {
		transform: none;
	}
}

@media (max-width: 560px) {
	.task-composer-progress {
		margin-inline: -4px;
		padding-inline: 4px;
	}

	.task-composer-category-grid,
	.task-composer-review-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.task-composer-category {
		min-height: 84px;
		padding: 13px;
	}

	.task-composer-stage-heading,
	.task-composer-browser-header {
		align-items: stretch;
		flex-direction: column;
	}

	.task-composer-stage-heading .button,
	.task-composer-browser-header > .text-button {
		align-self: flex-start;
	}

	.task-composer-build-actions {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.task-composer-build-actions .button {
		width: 100%;
	}

	.task-composer-order-option {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
	}

	.fast-fact-sort-buckets {
		grid-template-columns: 1fr;
		width: min(100%, 320px);
	}
}
