.pmqb-math-graph {
	width: 100%;
	max-width: 960px;
	margin: 18px auto;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.pmqb-math-graph canvas,
.pmqb-math-graph svg,
.pmqb-math-graph img {
	display: block;
	max-width: 100%;
	height: auto;
	margin-inline: auto;
}

.pmqb-math-graph iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 480px;
	margin-inline: auto;
	border: 0;
}

.pmqb-math-graph table {
	max-width: 100%;
}

@media (max-width: 600px) {
	.pmqb-math-graph iframe {
		min-height: 360px;
	}
}

/*
 * PG_KATEGORI is stored as Tutor multiple-choice answers with unique IDs.
 * JavaScript progressively presents those native inputs as one radio pair per
 * statement. The native choices are hidden only after a complete table exists.
 */
.pmqb-category-native-hidden {
	display: none !important;
}

.pmqb-category-panel {
	flex: 0 0 100%;
	width: 100%;
	margin-top: 24px;
	color: #172033;
}

.pmqb-category-instruction {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0 0 14px;
	padding: 12px 14px;
	border: 1px solid #dbe7ff;
	border-radius: 12px;
	background: #f5f8ff;
	font-size: 14px;
	line-height: 1.55;
}

.pmqb-category-instruction::before {
	content: "i";
	display: inline-grid;
	flex: 0 0 20px;
	place-items: center;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border-radius: 50%;
	background: #315eea;
	color: #fff;
	font-weight: 700;
	font-style: normal;
}

.pmqb-category-table-wrap {
	overflow-x: auto;
	border: 1px solid #dfe5ef;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(28, 44, 78, .06);
	-webkit-overflow-scrolling: touch;
}

.pmqb-category-table {
	width: 100%;
	min-width: 560px;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
}

.pmqb-category-table th,
.pmqb-category-table td {
	padding: 14px 16px;
	border: 0;
	border-bottom: 1px solid #e8ecf3;
	background: transparent;
	vertical-align: middle;
}

.pmqb-category-table thead th {
	background: #f7f9fc;
	color: #46536a;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
	text-align: center;
}

.pmqb-category-table thead th:first-child {
	width: auto;
	text-align: left;
}

.pmqb-category-table thead th:not(:first-child) {
	width: 118px;
}

.pmqb-category-table tbody tr:last-child td {
	border-bottom: 0;
}

.pmqb-category-statement {
	font-size: 15px;
	line-height: 1.6;
	text-align: left;
}

.pmqb-category-number {
	display: inline-grid;
	place-items: center;
	min-width: 26px;
	height: 26px;
	margin-right: 9px;
	padding: 0 7px;
	border-radius: 8px;
	background: #eef2ff;
	color: #315eea;
	font-size: 12px;
	font-weight: 700;
	vertical-align: top;
}

.pmqb-category-statement-content {
	display: inline;
}

.pmqb-category-choice-cell {
	text-align: center;
}

.pmqb-category-choice {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin: 0;
	border: 1px solid #cfd7e6;
	border-radius: 11px;
	background: #fff;
	cursor: pointer;
	transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.pmqb-category-choice:hover {
	border-color: #315eea;
	background: #f5f7ff;
}

.pmqb-category-choice:focus-within {
	box-shadow: 0 0 0 3px rgba(49, 94, 234, .18);
}

.pmqb-category-choice input {
	display: grid;
	place-content: center;
	width: 20px;
	height: 20px;
	margin: 0;
	border: 2px solid #9aa7bb;
	border-radius: 5px;
	background: #fff;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.pmqb-category-choice input::before {
	content: "✓";
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
	transform: scale(0);
	transition: transform .12s ease;
}

.pmqb-category-choice input:checked {
	border-color: #315eea;
	background: #315eea;
}

.pmqb-category-choice input:checked::before {
	transform: scale(1);
}

.pmqb-category-choice:has(input:checked) {
	border-color: #315eea;
	background: #eaf0ff;
}

@media (max-width: 600px) {
	.pmqb-category-table {
		min-width: 500px;
	}

	.pmqb-category-table th,
	.pmqb-category-table td {
		padding: 12px;
	}

	.pmqb-category-table thead th:not(:first-child) {
		width: 92px;
	}
}
