/* 题面里的代码块：等宽、浅底、限高滚动，不要把作业卡撑爆 */
.hw-stem pre {
	margin: 8px 0 12px;
	padding: 12px 14px;
	background: #f7f9fc;
	border: 1px solid #e6edf6;
	border-radius: 12px;
	font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
	font-size: 12.5px;
	line-height: 1.65;
	color: #172033;
	max-height: 360px;
	overflow: auto;
	white-space: pre;
	tab-size: 4;
}
.hw-stem pre code {
	background: none;
	padding: 0;
	border: 0;
	font-size: inherit;
	color: inherit;
}

/* 题面首行的「学年 · 第N题」标签 */
.hw-stem p:first-child {
	display: inline-block;
	margin: 0 0 10px;
	padding: 3px 10px;
	background: linear-gradient(135deg, #eff6ff, #e0f2fe);
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	color: #1d4ed8;
}

/* 答题框：等宽字体，读代码不串行 */
.hw-q textarea.hw-code {
	font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
	font-size: 13px;
	line-height: 1.6;
	tab-size: 4;
	min-height: 180px;
}

/* 答题框右上角的小工具条 */
.akhc-tools {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	font-size: 12px;
	color: #6b7a90;
}
.akhc-btn {
	border: 1px solid #dbe6f5;
	background: #fff;
	color: #2563eb;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	cursor: pointer;
	transition: .16s;
}
.akhc-btn:hover {
	background: #eff6ff;
	border-color: #bfdbfe;
}
.akhc-btn.is-done {
	color: #047857;
	border-color: #a7f3d0;
	background: #ecfdf5;
}
