/* Student question layout */
.student-question {
	margin-bottom: 2em;
	padding-bottom: 1em;
	display: flex;
	flex-direction: column;
}
.question-text {
	font-size: 1.1em;
	margin-bottom: 1em;
	font-weight: 400;
	width: 100%;
}
.options-group {
	display: flex;
	flex-direction: column;
	gap: 1em;
	width: 100%;
}
.option-bubble {
	display: flex;
	align-items: center;
	width: 100%;
}
.option-bubble input[type="radio"],
.option-bubble input[type="checkbox"] {
	width: auto;
	min-width: 24px;
	margin-right: 0.5em;
	margin-top: 0;
}
.option-label {
	display: flex;
	align-items: center;
	font-size: 1em;
	font-weight: 400;
	width: auto;
}
.option-letter {
	font-weight: bold;
	margin-right: 0.5em;
}
.option-text {
	display: inline;
	word-break: break-word;
}

.math-inline-select {
	min-width: 92px;
	padding: 4px 8px;
	border: 1px solid #9ca3af;
	border-radius: 4px;
	font-size: 0.98em;
	background: #fff;
	color: #111827;
	vertical-align: middle;
	margin: 0 4px;
}

.math-dropdown-fallback-row {
	margin-top: 8px;
}

.drag-question-note {
	font-size: 0.96em;
	font-weight: 600;
	margin: 0 0 0.9em;
	color: #374151;
}

.drag-bank {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-bottom: 1rem;
}

.drag-bank-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.drag-bank-inline .drag-item {
	padding: 8px 12px;
	border-radius: 8px;
}

.drag-item {
	padding: 12px 14px;
	background: #f2f7ff;
	border: 2px solid #8eb2e6;
	border-radius: 10px;
	color: #1f4f9a;
	font-weight: 600;
	cursor: grab;
	user-select: none;
}

.drag-item.is-dragging {
	opacity: 0.55;
	cursor: grabbing;
}

.drag-target-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.drag-target-wrap {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.drag-target-title {
	font-size: 1em;
	font-weight: 700;
	color: #374151;
	text-align: center;
}

.drag-target-zone {
	min-height: 180px;
	padding: 10px;
	background: #f9fafb;
	border: 2px dashed #b8c6d9;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.drag-target-zone.drag-over,
.drag-bank.drag-over {
	border-color: #3b82f6;
	background: #eef5ff;
}

.drag-inline-row {
	margin-top: 0.6rem;
	margin-bottom: 0.4rem;
	line-height: 1.7;
}

.drag-inline-zone {
	display: inline-flex;
	vertical-align: middle;
	min-width: 110px;
	min-height: 38px;
	padding: 6px 10px;
	margin: 0 6px;
	background: #f9fafb;
	border: 2px dashed #b8c6d9;
	border-radius: 8px;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.drag-inline-zone.drag-over {
	border-color: #3b82f6;
	background: #eef5ff;
}

.drag-inline-lead {
	font-size: 1.02em;
	color: #374151;
}

.drag-inline-tail {
	font-size: 1.02em;
	color: #374151;
}

.drag-expression-wrap {
	margin-top: 0.8rem;
	margin-bottom: 0.6rem;
	font-size: 1.6rem;
	line-height: 1.8;
	color: #111827;
	word-break: break-word;
}

.drag-expression-zone {
	display: inline-flex;
	vertical-align: middle;
	min-width: 96px;
	min-height: 42px;
	padding: 6px 10px;
	margin: 0 6px;
	background: #f9fafb;
	border: 2px dashed #b8c6d9;
	border-radius: 8px;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.drag-expression-zone.drag-over {
	border-color: #3b82f6;
	background: #eef5ff;
}

.graph-question-card {
	margin: 0.75rem 0 1.25rem 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.graph-question-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #111827;
	text-align: center;
	max-width: 100%;
}

.graph-question-svg {
	width: 100%;
	max-width: 620px;
	height: auto;
	overflow: visible;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 14px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.graph-background {
	fill: #fff;
}

.graph-grid-line {
	stroke: #d8dee9;
	stroke-width: 1;
}

.graph-axis-line {
	stroke: #4b5563;
	stroke-width: 1.5;
}

.graph-tick-label {
	fill: #4b5563;
	font-size: 11px;
	font-family: Arial, sans-serif;
	user-select: none;
}

.graph-point {
	fill: #111827;
	stroke: #1d4ed8;
	stroke-width: 2px;
	cursor: pointer;
	transition: transform 0.12s ease, fill 0.12s ease, stroke 0.12s ease;
	transform-box: fill-box;
	transform-origin: center;
}

.graph-point:hover {
	fill: #2563eb;
	stroke: #1e3a8a;
	transform: scale(1.1);
}

.graph-point.is-selected {
	fill: #dc2626;
	stroke: #991b1b;
	transform: scale(1.1);
}

.graph-question-axis-label {
	font-weight: 700;
	color: #374151;
	font-size: 0.98rem;
	text-align: center;
	max-width: 620px;
}

.graph-question-axis-label-y {
	margin-bottom: -2px;
}

.graph-question-axis-label-x {
	margin-top: -2px;
}

.graph-question-empty {
	padding: 16px;
	border: 1px solid #d1d5db;
	border-radius: 12px;
	background: #f9fafb;
	color: #374151;
}

.number-line-card {
	margin: 0.75rem 0 1.25rem 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.number-line-controls {
	display: grid;
	grid-template-columns: repeat(4, minmax(120px, 1fr));
	gap: 8px;
	width: 100%;
	max-width: 760px;
}

.number-line-ray-btn {
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 8px 10px;
	background: #fff;
	color: #111827;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: border-color 0.12s ease, color 0.12s ease, background-color 0.12s ease;
}

.number-line-ray-btn:hover {
	border-color: #94a3b8;
	background: #f8fafc;
}

.number-line-ray-btn.is-selected {
	border-color: #b91c1c;
	background: #fef2f2;
	color: #991b1b;
}

.number-line-svg {
	width: 100%;
	max-width: 760px;
	height: auto;
	overflow: visible;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 14px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.number-line-axis {
	stroke: #111827;
	stroke-width: 2;
}

.number-line-axis-arrow {
	fill: #111827;
}

.number-line-tick {
	stroke: #111827;
	stroke-width: 2;
}

.number-line-tick-label {
	fill: #111827;
	font-size: 11px;
	font-family: Arial, sans-serif;
	text-anchor: middle;
	user-select: none;
}

.number-line-hit-area {
	fill: transparent;
	cursor: pointer;
}

.number-line-hit-area:focus {
	outline: none;
	stroke: #2563eb;
	stroke-width: 1.5;
}

.number-line-ray {
	stroke: #b91c1c;
	stroke-width: 3;
}

.number-line-ray-arrow {
	fill: #b91c1c;
}

.number-line-endpoint {
	fill: #b91c1c;
	stroke: #7f1d1d;
	stroke-width: 2;
}

.number-line-endpoint.is-open {
	fill: #fff;
}

.number-line-selected-point {
	fill: #ef4444;
	stroke: #7f1d1d;
	stroke-width: 1.5;
}

.number-line-help {
	font-size: 0.95rem;
	color: #4b5563;
	text-align: center;
}

.student-complete-page {
	padding: 22px 26px 40px;
	max-width: 1024px;
	margin: 0 auto;
}

.student-complete-banner {
	margin-top: 14px;
	background: #4f6b83;
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	padding: 16px 14px;
	border-radius: 8px;
}

.student-complete-card {
	margin-top: 32px;
	background: #fff;
	border: 1px solid #cfd6dd;
	border-radius: 8px;
	padding: 44px 68px 36px;
}

.student-complete-card h1 {
	margin: 0 0 20px;
	font-size: 48px;
	line-height: 1.08;
	font-weight: 700;
	color: #2f3a46;
	text-align: center;
}

.student-complete-card p {
	margin: 0 auto;
	max-width: 860px;
	font-size: 18px;
	line-height: 1.55;
	color: #1f2937;
}

.student-complete-actions {
	margin-top: 34px;
	display: flex;
	justify-content: center;
}

.student-complete-submit {
	min-width: 320px;
	padding: 14px 22px;
	border: none;
	border-radius: 12px;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(180deg, #3c8f3f 0%, #2f7332 100%);
	cursor: pointer;
}

.student-complete-submit:hover {
	filter: brightness(1.04);
}

.student-complete-submit:disabled {
	opacity: 1;
	filter: none;
	background: linear-gradient(180deg, #3d7f3f 0%, #2f6e32 100%);
	cursor: wait;
}

@media (max-width: 900px) {
	.student-complete-page {
		padding: 16px 12px 24px;
	}

	.student-complete-banner {
		font-size: 20px;
		padding: 14px 12px;
	}

	.student-complete-card {
		padding: 22px 16px 20px;
	}

	.student-complete-card h1 {
		font-size: 34px;
		margin-bottom: 14px;
	}

	.student-complete-card p {
		font-size: 16px;
	}

	.student-complete-submit {
		min-width: 260px;
		width: 100%;
		max-width: 380px;
		font-size: 22px;
		padding: 14px 16px;
	}
}

.student-report-page {
	max-width: 1024px;
	margin: 0 auto;
	padding: 0 14px 40px;
}

.student-report-note {
	font-size: 17px;
	line-height: 1.35;
	color: #111827;
	border-bottom: 1px solid #9ca3af;
	padding: 8px 2px 18px;
}

.student-report-summary {
	padding: 12px 2px 10px;
}

.student-report-summary h2 {
	margin: 0 0 10px;
	font-size: 44px;
	font-weight: 400;
	color: #47627a;
}

.student-report-summary p {
	margin: 0 0 12px;
	font-size: 20px;
	line-height: 1.35;
	color: #111827;
}

.student-report-summary h3 {
	margin: 12px 0 6px;
	font-size: 42px;
	font-weight: 400;
	color: #374151;
}

.student-report-table-wrap {
	margin-top: 10px;
	overflow-x: auto;
}

.student-report-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 17px;
}

.student-report-table th,
.student-report-table td {
	border: 1px solid #b7bcc1;
	padding: 10px 12px;
	text-align: left;
}

.student-report-table thead th {
	background: #4a6277;
	color: #f3f4f6;
	font-size: 18px;
	font-weight: 700;
}

.student-report-table .student-report-section {
	text-align: center;
	font-size: 22px;
}

@media (max-width: 900px) {
	.student-report-page {
		padding: 0 8px 24px;
	}

	.student-report-note {
		font-size: 15px;
	}

	.student-report-summary h2 {
		font-size: 26px;
	}

	.student-report-summary p {
		font-size: 17px;
	}

	.student-report-summary h3 {
		font-size: 32px;
	}

	.student-report-table {
		font-size: 15px;
	}

	.student-report-table thead th {
		font-size: 16px;
	}

	.student-report-table .student-report-section {
		font-size: 18px;
	}
}

@media (max-width: 768px) {
	.number-line-controls {
		grid-template-columns: repeat(2, minmax(120px, 1fr));
	}
}

/* Drag-sentence question type */
.drag-sentence-paragraph {
	border: 1.5px solid #555;
	border-radius: 6px;
	padding: 12px 16px;
	margin: 0.7em 0 1em 0;
	font-size: 1em;
	line-height: 1.65;
	background: #fff;
	color: #222;
}

.drag-sentence-instruction {
	margin: 0.4em 0 0.8em 0;
	font-size: 1em;
	color: #374151;
}

.drag-sentence-target-wrap {
	margin-top: 1.2em;
	display: flex;
	justify-content: center;
}

.drag-sentence-zone {
	position: relative;
	width: 60%;
	min-height: 90px;
	padding: 20px 24px;
	background: #f3f4f6;
	border: 1.5px solid #d1d5db;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.drag-sentence-zone .drag-sentence-zone-label {
	font-weight: 700;
	font-size: 1.05em;
	color: #6b7280;
	pointer-events: none;
	user-select: none;
	text-align: center;
}

.drag-sentence-zone .drag-item ~ .drag-sentence-zone-label {
	display: none;
}

.drag-sentence-zone.drag-over {
	border-color: #3b82f6;
	background: #eef5ff;
}

/* General Directions Box for Student Exam View */
.general-directions-box {
	background: #f0f6ff;
	border-left: 5px solid #1a237e;
	padding: 1em;
	margin: 1.5em 0;
	color: #1a237e;
	font-size: 1.08em;
	border-radius: 4px;
}
h1{margin-top:0;font-size:22px}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;display:flex;min-height:100vh;align-items:center;justify-content:center;background:#f7f7f8;margin:0}
main{background:white;padding:32px;border-radius:8px;box-shadow:0 6px 22px rgba(0,0,0,0.08);width:520px;max-width:95%}
/* Logo in top-left */
.site-logo{position:absolute;top:20px;left:20px;display:block;width:96px;height:96px}
.site-logo img,.site-logo svg{width:128px;height:80px;display:block}

/* Smaller logo when dashboard is full-width */
main.full .site-logo{top:16px;left:24px;width:64px;height:64px}
main.full .site-logo img, main.full .site-logo svg{width:64px;height:64px}
label{display:block;margin:10px 0;font-size:15px}
input{width:100%;padding:12px;border:1px solid #ddd;border-radius:6px;font-size:15px}
textarea.general-directions,
textarea.article-editor{
	width:100%;
	max-width:100%;
	box-sizing:border-box;
	display:block;
	padding:12px;
	border:1px solid #ddd;
	border-radius:6px;
	font-size:15px;
}
.button-primary, button{width:100%;padding:12px;margin-top:10px;background:white;color:#111;border:1px solid #e5e7eb;border-radius:8px;font-size:15px}
.button-primary:hover, button:hover{background:#f3f4f6}
.error{color:#b91c1c;background:#fee2e2;padding:8px;border-radius:4px}

/* Google sign-in button */
.google-btn{display:block;text-align:center;background:white;color:#111;padding:12px;border-radius:6px;margin-top:12px;text-decoration:none;border:1px solid #e5e7eb}
.google-btn:hover{background:#f3f4f6}
.google-icon{width:18px;height:18px;vertical-align:middle;margin-right:8px;display:inline-block}

/* User info table */
.users-info table{width:100%;border-collapse:collapse;margin-top:12px}
.users-info th,.users-info td{border:1px solid #eee;padding:8px;text-align:left;font-size:13px}
.users-info td{white-space:nowrap}
.users-info select{padding:4px 6px;border-radius:4px;font-size:13px}
.users-info button{padding:2px 6px;margin-left:6px;border-radius:4px;font-size:13px;height:auto;line-height:1;min-width:64px;width:auto;display:inline-block}
.users-info button[title]{font-size:13px}
.users-info form{display:inline-block;margin:0}
.users-info form + form{margin-left:6px}

/* Admin columns for SHSAT / SAT */
.admin-column{margin-top:20px}
.admin-panel{background:#fafafa;padding:12px;border:1px solid #f0f0f0;border-radius:6px;margin-bottom:12px}
/* Top actions like Back buttons on edit pages */
.top-actions{margin-bottom:16px;display:flex;gap:12px;align-items:center;justify-content:space-between}
.top-actions .back-button{display:inline-block;padding:10px 14px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;font-size:16px;color:#0b3d91;text-decoration:none;box-shadow:0 6px 18px rgba(2,6,23,0.06)}
.top-actions .back-button:hover{background:#f3f4f6}
/* Save button on top-actions, red context */
.top-actions .save-button{padding:10px 14px;background:#dc2626;color:#fff;border:1px solid #b91c1c;border-radius:10px;font-size:16px;cursor:pointer;flex:0 0 20%;max-width:20%;min-width:0;text-align:center}
.top-actions .save-button:hover{background:#b91c1c}
/* Larger, more prominent button on full admin pages */
main.full .top-actions .back-button{font-size:18px;padding:12px 18px;border-radius:12px;min-width:180px}
main.full .top-actions .save-button{font-size:18px;padding:12px 12px;border-radius:12px;flex:0 0 20%;max-width:20%;min-width:0}
.form-inline{display:flex;gap:8px}
.form-inline input{flex:1;padding:8px}
.form-inline button{flex:0 0 auto;padding:8px 12px}
/* SAT create form: Title 2/5, Description 2/5, Create 1/5 */
.form-inline.sat-form{display:flex;gap:8px;align-items:center}
.form-inline.sat-form input.title{flex:2 1 0}
.form-inline.sat-form input.description{flex:2 1 0}
.form-inline.sat-form button{flex:1 1 0;min-width:0}
.data-table{width:100%;border-collapse:collapse;margin-top:8px}
.data-table th,.data-table td{border:1px solid #eee;padding:6px;text-align:left;font-size:13px}
/* Fixed table layout with column widths: ID 10%, Title 35%, Description 35%, Actions 20% */
.data-table{table-layout:fixed}
.data-table th:nth-child(1), .data-table td:nth-child(1) { width:10%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.data-table th:nth-child(2), .data-table td:nth-child(2) { width:35%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.data-table th:nth-child(3), .data-table td:nth-child(3) { width:35%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.data-table th:nth-child(4), .data-table td:nth-child(4) { width:20%; }
.data-table td .actions{display:flex;flex-direction:column;gap:8px;align-items:stretch;justify-content:flex-start}
.data-table td .actions form{margin:0}
.data-table td .actions button{padding:8px 10px;border-radius:4px;border:1px solid #e5e7eb;background:#fff;width:100%;min-width:0}
.data-table td .actions button.edit{background:#ebf5ff;border-color:#b6e0ff;color:#064e8a}
.data-table td .actions button.publish{background:#ecfdf5;border-color:#bbf7d0;color:#0f5132}
.data-table td .actions button.view-scores{background:#fef9c3;border-color:#fde68a;color:#78350f}
.data-table td .actions .danger{min-width:0;width:100%}
/* Center the action when it's the only control (e.g., only Delete) */
.data-table td .actions form:only-child{margin-left:auto;margin-right:auto}
.inline-edit{display:inline}
.danger{background:#fee2e2;border:1px solid #fca5a5;color:#b91c1c;padding:8px 12px;border-radius:4px;min-width:160px}

/* Tabs */
.tabs{display:flex;gap:8px;margin:12px 0}
.tab{padding:8px 12px;background:#fff;border:1px solid #e5e7eb;border-radius:6px;text-decoration:none;color:#111}
.tab:hover{background:#f3f4f6}
.tab.active{background:#111;color:#fff;border-color:#111}

/* Arrow-based page navigation */
.page-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0 24px;padding:10px 12px;background:#fff;border:1px solid #e5e7eb;border-radius:12px}
.page-nav-title{flex:1;text-align:center;font-size:20px;font-weight:400;line-height:1.2;letter-spacing:0;color:#111}
main.full .page-nav-title{font-size:20px;font-weight:400}
.page-nav-arrow{display:inline-flex;align-items:center;justify-content:center;min-width:52px;padding:10px 14px;border:1px solid #d1d5db;border-radius:10px;background:#f9fafb;color:#111;text-decoration:none;font-size:22px;line-height:1}
.page-nav-arrow:hover{background:#f3f4f6}
.page-nav-arrow.disabled{color:#9ca3af;border-color:#e5e7eb;background:#f9fafb;pointer-events:none}

/* Larger tabs and buttons on admin/dashboard full pages */
main.full .tab{font-size:18px;padding:12px 18px;border-radius:8px}
main.full .tab:hover{background:#efefef}
main.full .button-primary{padding:12px 18px;font-size:17px;border-radius:10px;min-width:150px}

/* Spacing and larger headings for admin sections */
.users-info th, .users-info td, .data-table th, .data-table td {
	padding: 10px 12px;
	line-height: 1.6;
	font-size: 14px;
}
.data-table td { vertical-align: middle; }
.admin-panel h2, .users-info h2 {
	font-size: 20px;
	margin-bottom: 12px;
	font-weight: 400;
}

/* Keep SHSAT section titles consistent across all edit pages */
.admin-panel .section-block > h2 {
	text-align: left;
	font-weight: 400;
}



/* Centered, larger admin/dashboard container */
/* Stretch admin/dashboard to full site width */
main.full{width:calc(100% - 48px);max-width:none;margin:24px;box-sizing:border-box;padding:28px}
/* adjust inner admin sections when full */
.full .admin-sections{grid-template-columns:1fr 1fr 1.5fr;gap:20px}
@media (max-width:900px){
	main.full{width:calc(100% - 32px);margin:16px}
	.full .admin-sections{grid-template-columns:1fr;}
}

/* Larger title on admin/dashboard pages */
main.full h1{font-size:48px;margin:0 auto 28px;text-align:center;font-weight:700;line-height:1.1}

/* Dashboard spacing: increase line-height and paragraph spacing for admin pages */
main.full p, main.full li {
	line-height: 1.8;
	margin-bottom: 12px;
}

.tabs{display:flex;gap:8px;margin:20px 0 24px}

/* Two-column layout: article and question side by side */
.student-question-row {
  display: flex;
  flex-direction: row;
  gap: 2em;
	align-items: stretch;
	height: 100%;
}
.student-article {
  flex: 1 1 50%;
  max-width: 50%;
  background: #fafafa;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 1em;
	min-height: 0;
	height: calc(100% - 56px);
  overflow-y: auto;
	margin-bottom: 28px;
}
.article-content {
  font-size: 1em;
  line-height: 1.5;
  white-space: pre-wrap;
}
.student-question {
  flex: 1 1 50%;
  max-width: 50%;
}

.student-question.standalone {
  flex: 1 1 100%;
  max-width: 100%;
}

@media (max-width: 900px) {
	.drag-target-grid {
		grid-template-columns: 1fr;
	}
}

/* SHSAT question page */
body.student-test-body {
	margin: 0;
	min-height: 100vh;
	background: #eef0f3;
	display: block;
}

main.full.student-test-page {
	width: calc(100% - 32px);
	max-width: none;
	margin: 16px;
	box-sizing: border-box;
	padding: 0;
	height: calc(100vh - 32px);
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
}

.student-test-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

.student-test-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 26px 10px;
	background: #fff;
}

/* Dark nav bar replacing the white topbar */
.student-test-navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 18px;
	background: #fff;
}

.student-test-navbar-left {
	display: flex;
	align-items: center;
	gap: 8px;
}

.snav-arrow {
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 6px;
	width: 38px;
	height: 34px;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 120ms;
}

.snav-arrow:hover {
	background: #1d4ed8;
}

.snav-review {
	background: transparent;
	color: #374151;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 5px 14px;
	font-size: 13px;
	cursor: pointer;
	transition: background 120ms;
}

.snav-review:hover {
	background: #f3f4f6;
}

.snav-review.active {
	background: rgba(99,179,237,0.25);
	border-color: #63b3ed;
	color: #bee3f8;
}

.student-test-navbar-right {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #1f2937;
	font-size: 14px;
}

.snav-user-icon {
	font-size: 18px;
	opacity: 0.6;
}

.student-test-strip {
	height: 42px;
	background: linear-gradient(#7b7b7b, #6d6d6d);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 2px 3px rgba(0, 0, 0, 0.14);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 18px;
	color: #f3f4f6;
}

.student-test-strip-content {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 15px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.student-test-strip-sep {
	opacity: 0.85;
}

.student-test-strip-icon {
	font-size: 24px;
	line-height: 1;
	opacity: 0.95;
	margin-left: 10px;
}

.student-test-progress-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.student-test-progress-bar {
	position: relative;
	width: 170px;
	height: 8px;
	border-radius: 999px;
	background: rgba(31, 41, 55, 0.45);
	overflow: hidden;
}

.student-test-progress-fill {
	display: block;
	height: 100%;
	width: 0;
	background: #1f2937;
	transition: width 160ms ease;
}

.student-test-intro {
	padding: 24px 28px 0;
}

.student-test-scroll-area {
	flex: 1;
	min-height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding-bottom: 28px;
	overscroll-behavior: contain;
	background: #fff;
}

.student-test-question-shell {
	padding: 34px 28px 0;
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

#question-container {
	flex: 1;
	min-height: 0;
}

.student-test-nav {
	display: flex;
	gap: 12px;
	margin-top: 2em;
}

.student-test-nav button {
	width: auto;
	min-width: 140px;
	flex: 0 0 auto;
}

.student-test-intro h1 {
	font-size: 28px;
	text-align: left;
	margin-bottom: 12px;
}

.student-test-intro h2 {
	font-size: 22px;
	margin-top: 8px;
}

/* SHSAT directions page */
body.student-directions-body {
	margin: 0;
	min-height: 100vh;
	background: #e9ecef;
	display: block;
}

main.full.student-directions-page {
	width: calc(100% - 32px);
	max-width: none;
	margin: 16px;
	height: calc(100vh - 32px);
	padding: 0;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
}

.student-directions-scroll {
	flex: 1;
	min-height: 0;
	overflow: auto;
	padding: 18px;
	background: #e5e5e5;
	border-top: 1px solid #d6d6d6;
	overscroll-behavior: contain;
}

.student-directions-sheet {
	width: min(960px, 100%);
	margin: 0 auto;
	background: #dcdcdc;
	border: 1px solid #cfcfcf;
	border-radius: 4px;
	padding: 16px;
	color: #1f2937;
	font-size: 16px;
	line-height: 1.55;
}

.student-directions-content {
	background: #e8e8e8;
	border: 1px solid #d7d7d7;
	padding: 20px 24px;
}

.student-directions-content h1,
.student-directions-content h2,
.student-directions-content h3,
.student-directions-content h4,
.student-directions-content h5 {
	margin-top: 0;
	line-height: 1.35;
}

.student-directions-content p,
.student-directions-content li,
.student-directions-content div {
	font-size: 1em;
	line-height: 1.7;
}

.student-section-intro-content {
	padding: 48px 44px;
	min-height: 290px;
	background: #ececec;
}

.student-section-intro-content h2 {
	text-align: center;
	font-size: 34px;
	font-weight: 700;
	margin: 0 0 8px;
}

.student-section-intro-content h3 {
	text-align: center;
	font-size: 40px;
	font-weight: 800;
	margin: 0 0 32px;
}

.student-section-intro-content p {
	font-size: 18px;
	line-height: 1.6;
	margin: 0;
}

.student-directions-start-form {
	display: flex;
	justify-content: center;
	padding: 18px 0 8px;
}

.student-directions-start-btn {
	width: auto;
	min-width: 170px;
	padding: 12px 28px;
	font-size: 22px;
	font-weight: 600;
	color: #fff;
	border: 1px solid #28459a;
	border-radius: 8px;
	background: linear-gradient(#4f75df, #2f4ec1);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 2px 6px rgba(47, 78, 193, 0.28);
}

.student-directions-start-btn:hover {
	background: linear-gradient(#5a81ea, #3556cf);
}

@media (max-width: 900px) {
	main.full.student-test-page {
		width: calc(100% - 16px);
		margin: 8px;
		height: calc(100vh - 16px);
	}

	.student-test-topbar,
	.student-test-intro {
		padding-left: 16px;
		padding-right: 16px;
	}

	.student-test-strip {
		padding-left: 12px;
		padding-right: 12px;
	}

	.student-test-strip-content {
		font-size: 15px;
		gap: 8px;
	}

	.student-test-progress-bar {
		width: 110px;
	}

	.student-test-strip-icon {
		font-size: 18px;
	}

	.student-test-question-shell {
		padding-top: 22px;
		padding-left: 16px;
		padding-right: 16px;
	}

	main.full.student-directions-page {
		width: calc(100% - 16px);
		max-width: none;
		margin: 8px;
		height: calc(100vh - 16px);
	}

	.student-directions-scroll {
		padding: 10px;
	}

	.student-directions-content {
		padding: 14px;
	}

	.student-section-intro-content h2 {
		font-size: 26px;
	}

	.student-section-intro-content h3 {
		font-size: 30px;
	}

	.student-section-intro-content p {
		font-size: 16px;
	}
}

/* SHSAT take/start page */
main.full.student-take-page {
	width: 100%;
	max-width: none;
	margin: 0;
	min-height: 100vh;
	padding: 0;
	background:
		radial-gradient(circle at top, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78) 42%, rgba(244, 245, 247, 0.96) 100%),
		linear-gradient(180deg, #f6f7f9 0%, #eceff3 100%);
	box-shadow: none;
	border-radius: 0;
	position: relative;
}

body.student-take-body {
	display: block;
	min-height: 100vh;
	background: #f4f5f7;
	margin: 0;
}

.student-take-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 26px 10px;
	background: #fff;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

.student-take-brand {
	font-size: 28px;
	font-weight: 300;
	letter-spacing: 0.2px;
	color: #4f78b8;
	line-height: 1;
}

.student-take-user {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	color: #4b5563;
	background: linear-gradient(#fff, #f1f2f4);
	border: 1px solid #cfd5dd;
	border-radius: 6px;
	padding: 6px 12px;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.student-take-user-icon {
	font-size: 17px;
	line-height: 1;
}

.student-take-strip {
	height: 42px;
	background: linear-gradient(#7b7b7b, #6d6d6d);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 2px 3px rgba(0, 0, 0, 0.14);
}

.student-take-banner {
	width: min(800px, calc(100% - 64px));
	margin: 52px auto 30px;
	padding: 12px 20px;
	text-align: center;
	font-size: 24px;
	font-weight: 700;
	color: #4b6f91;
	background: #d9ebf8;
	border: 1px solid #c5ddee;
	border-radius: 4px;
}

.student-take-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 0;
	width: min(840px, calc(100% - 64px));
	margin: 0 auto 48px;
	background: rgba(255,255,255,0.88);
	border: 1px solid #d8d8d8;
	border-radius: 6px;
	box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 10px 26px rgba(15, 23, 42, 0.08);
	overflow: hidden;
}

.student-take-details,
.student-take-form-panel {
	padding: 28px 22px 30px;
	background: rgba(248,248,248,0.9);
}

.student-take-details {
	border-right: 1px solid #d7d7d7;
}

.student-take-details h1 {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 16px;
	text-align: left;
	color: #2b2b2b;
}

.student-take-text {
	font-size: 18px;
	line-height: 1.6;
	margin: 0 0 10px;
	color: #494949;
}

.student-take-directions {
	margin-top: 18px;
	padding: 14px 16px;
	border: 1px solid #d7e4f0;
	border-radius: 4px;
	background: #f4faff;
	color: #34506b;
	font-size: 16px;
	line-height: 1.6;
}

.student-take-form-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: rgba(242,242,242,0.92);
}

.student-take-form-panel h2 {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 700;
	color: #2f3d4f;
}

.student-take-form {
	width: 100%;
	max-width: 270px;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px 10px;
	align-items: center;
}

.student-take-form label {
	margin: 0;
	font-size: 18px;
	justify-self: end;
	color: #444;
}

.student-take-form input {
	width: 100%;
	padding: 8px 10px;
	font-size: 16px;
	border: 1px solid #aab1bb;
	border-radius: 4px;
	box-sizing: border-box;
}

.student-take-form button,
.student-take-start {
	grid-column: 2;
	width: 110px;
	justify-self: center;
	margin-top: 6px;
	padding: 12px 18px;
	border: 1px solid #28459a;
	border-radius: 7px;
	background: linear-gradient(#4f75df, #2f4ec1);
	color: #fff;
	font-size: 18px;
	font-weight: 400;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 2px 6px rgba(47, 78, 193, 0.28);
}

.student-take-form button:hover,
.student-take-start:hover {
	background: linear-gradient(#5a81ea, #3556cf);
}

@media (max-width: 900px) {
	.student-take-banner,
	.student-take-card {
		width: calc(100% - 32px);
	}

	.student-take-card {
		grid-template-columns: 1fr;
	}

	.student-take-details {
		border-right: 0;
		border-bottom: 1px solid #d7d7d7;
	}

	.student-take-form {
		max-width: 100%;
	}
}
