.in4u-hw { max-width: 820px; margin: 0 auto; font-family: inherit; }

.in4u-hw-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-end;
	background: #f7f8fa;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 14px;
}
.in4u-hw-ctrl { display: flex; flex-direction: column; gap: 6px; }
.in4u-hw-ctrl > span { font-size: 14px; font-weight: 600; color: #374151; }
.in4u-hw-ctrl select,
.in4u-hw-ctrl input {
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 15px;
	background: #fff;
	min-height: 40px;
	font-family: inherit;
}
.in4u-hw-ctrl input[type="number"] { width: 90px; }
.in4u-hw-ctrl input[type="text"] { min-width: 190px; }

.in4u-hw-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.in4u-hw-btn { padding: 10px 18px; border-radius: 8px; border: 1px solid transparent; font-size: 15px; font-weight: 600; cursor: pointer; }
.in4u-hw-btn-primary { background: #2563eb; color: #fff; }
.in4u-hw-btn-primary:hover { background: #1d4ed8; }
.in4u-hw-btn-secondary { background: #fff; color: #1f2937; border-color: #cbd5e1; }
.in4u-hw-btn-secondary:hover { background: #f3f4f6; }
.in4u-hw-btn:disabled { opacity: .6; cursor: default; }
.in4u-hw-status { font-size: 14px; color: #059669; }

.in4u-hw-sheet { border: 1px solid #e5e7eb; border-radius: 10px; padding: 22px; background: #fff; color: #111; }
.in4u-hw-header { border-bottom: 2px solid #111; padding-bottom: 10px; margin-bottom: 16px; }
.in4u-hw-title { margin: 0 0 8px; font-size: 22px; font-weight: 800; text-align: center; }
.in4u-hw-meta { display: flex; justify-content: space-between; font-size: 15px; color: #333; }

.in4u-hw-section { margin: 0 0 22px; }
.in4u-hw-shead { font-size: 17px; font-weight: 700; margin: 0 0 10px; color: #1d4ed8; }
.in4u-hw-inst { font-size: 15px; font-weight: 600; margin: 0 0 10px; }

.in4u-hw-list { margin: 0; padding-inline-start: 26px; }
.in4u-hw-list li { font-size: 18px; margin: 0 0 12px; line-height: 1.9; }
.in4u-hw-prompt, .in4u-hw-scramble { font-weight: 700; }
.in4u-hw-scramble { letter-spacing: 3px; }
.in4u-hw-hint { color: #9ca3af; font-size: 14px; }
.in4u-hw-blankltr { display: inline-block; min-width: 26px; border-bottom: 2px solid #111; text-align: center; }

.in4u-hw-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.in4u-hw-box { width: 40px; height: 40px; border: 2px solid #111; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.in4u-hw-letter { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }

.in4u-hw-bank { font-size: 17px; font-weight: 700; background: #f3f4f6; border-radius: 8px; padding: 10px 12px; }
.in4u-hw-cols { display: flex; gap: 16px; }
.in4u-hw-col { flex: 1; border: 2px solid #111; border-radius: 8px; padding: 10px; min-height: 120px; }
.in4u-hw-colhead { font-weight: 800; text-align: center; border-bottom: 1px solid #111; padding-bottom: 6px; margin-bottom: 8px; }
.in4u-hw-col .in4u-hw-lines { border-bottom: 1px solid #cbd5e1; height: 26px; }
.in4u-hw-col .in4u-hw-ans { font-size: 18px; margin-bottom: 6px; }

.in4u-hw-ans { color: #dc2626; font-weight: 800; }

@media (max-width: 480px) {
	.in4u-hw-list li { font-size: 16px; }
	.in4u-hw-cols { flex-direction: column; }
}
