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

.in4u-bg-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-bg-ctrl { display: flex; flex-direction: column; gap: 6px; }
.in4u-bg-ctrl > span { font-size: 14px; font-weight: 600; color: #374151; }
.in4u-bg-ctrl select,
.in4u-bg-ctrl input,
.in4u-bg-ctrl textarea {
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 15px;
	background: #fff;
	min-height: 40px;
	font-family: inherit;
}
.in4u-bg-ctrl input[type="number"] { width: 90px; }
.in4u-bg-ctrl input[type="text"] { min-width: 160px; }
.in4u-bg-ctrl.in4u-bg-words-ctrl { flex-basis: 100%; }
.in4u-bg-ctrl textarea { width: 100%; min-height: 70px; resize: vertical; }

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

.in4u-bg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.in4u-bg-card { border: 3px solid #111; border-radius: 10px; padding: 10px; background: #fff; }
.in4u-bg-card-title { text-align: center; font-weight: 800; font-size: 22px; letter-spacing: 2px; margin-bottom: 8px; color: #111; }
.in4u-bg-grid { display: grid; gap: 4px; }
.in4u-bg-head { text-align: center; font-weight: 800; font-size: 20px; color: #2563eb; padding: 2px 0; }
.in4u-bg-cell {
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #111;
	border-radius: 6px;
	font-size: 20px;
	font-weight: 700;
	text-align: center;
	line-height: 1.05;
	padding: 2px;
	word-break: break-word;
}
.in4u-bg-free { font-size: 14px; background: #f3f4f6; color: #374151; }
