body {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 2.2rem;
	background: #fff;
	color: #000;
	min-height: 100vh;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}
.wrap {
	width: min(900px, 100%);
	margin-top: auto;
	margin-bottom: auto;
	margin-left: auto;
	margin-right: auto;
}
#question {
	margin: 0 0 18px;
	line-height: 1.35;
}
.row {
	display: flex;
	width: 100%;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}
.control-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 6px 0 0;
}
.control-btn {
	background: #f5f5f5;
	border-radius: 8px;
	height: 28px;
	min-width: 32px;
	padding: 6px 10px;
	font-size: 14px;
	text-align: center;
}
.control-btn:hover {
	background: #e5e5e5;
}
#answerMQ .mq-editable-field {
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid #000;
	min-width: 320px;
	font-size: 18px;
}
button {
	all: unset;
	padding: 6px 8px;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	color: #000;
	min-width: 110px;
	font-family: Georgia, "Times New Roman", Times, serif;
	height: 42px;
	text-align: center;
}
#submit {
	background: #3030f3;
	color: rgb(255, 255, 255);
	width: 180px;
}
#submit:hover {
	background: rgb(32, 32, 177);
}
#next {
	background: #f5f5f5;
	color: #000;
	width: 140px;
}
#next:hover {
	background: #e5e5e5;
}
#msg,
#hint,
#preview {
	margin-top: 14px;
	min-height: 28px;
	font-size: 1.2rem;
}
#hint,
#preview {
	color: #909090;
	margin-left: auto;
	margin-right: 20px;
	margin-bottom: auto;
	margin-top: 0;
}
#hint {
	margin: 14px 20px 0 auto;
	text-align: right;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}
#hint ul {
	margin: 4px 0 0;
	padding: 0 0 0 16px;
}
#hint li {
	margin: 2px 0;
	text-align: left;
}
#hint .hint-label {
	font-weight: 600;

	display: inline-block;
	margin-right: 8px;
}
#preview {
	line-height: 1.2;
}
.unit-accent {
	color: #6161c2;
}
[data-tooltip] {
	position: relative;
	cursor: default;
}
[data-tooltip]::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: calc(100% + 5px);
	left: 50%;
	transform: translateX(-50%);
	background: #222;
	color: #fff;
	padding: 3px 8px;
	border-radius: 5px;
	font-size: 14px;
	font-family: Georgia, "Times New Roman", Times, serif;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.12s;
	z-index: 200;
}
[data-tooltip]:hover::after {
	opacity: 1;
}
.top-nav {
	font-family: Arial, sans-serif;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 20px;
	border-bottom: 1px solid #e0e0e0;
	position: sticky;
	top: 0;
	background: #fff;
	width: 100%;
	box-sizing: border-box;
	justify-content: flex-start;
}
.top-nav a {
	color: #111;
	text-decoration: none;
}
.top-nav a:hover {
	text-decoration: underline;
}
.main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}
.err {
	color: #c30000;
}
.ok {
	color: #0a7a2a;
}
hr {
	border: none;
	border-top: 1px solid #000;
	margin: 18px 0;
}
.mjx-chtml .unit[data-unit] {
	cursor: pointer;
}
