.ab-bayes-tool {
	max-width: 1200px;
	margin: 0 auto 60px;
	padding: 24px;
	background: #f9f9f9;
	box-sizing: border-box;
}
.ab-card__lift{
	font-size:16px;
	font-weight:600;
	margin-left:6px;
	color:#1a7f37;
}
.ab-bayes-tool__title {
	margin: 0 0 8px;
	font-size: 28px;
	line-height: 1.4;
}

.ab-bayes-tool__lead {
	margin: 0 0 24px;
	line-height: 1.8;
}

.ab-bayes-tool__table-wrap {
	overflow-x: auto;
}

.ab-bayes-tool__table {
	width: 100%;
	border-collapse: collapse;
	min-width: 880px;
	background: #fff;
}
.ab-bayes-tool__table th{
	background: #9ac9b9;
}
.ab-bayes-tool__table th,
.ab-bayes-tool__table td {
	border: 1px solid #ddd;
	padding: 10px;
	text-align: left;
	vertical-align: middle;
}

.ab-bayes-tool__table input {
	width: 100%;
	height: 40px;
	padding: 0 10px;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
}

.ab-row-remove {
	height: 36px;
	padding: 0 12px;
	border: 1px solid #bbb;
	background: #f7f7f7;
	cursor: pointer;
	border-radius: 4px;
}

.ab-row-remove[disabled] {
	opacity: 0.5;
	cursor: default;
}

.ab-bayes-tool__add-row-wrap {
	margin-top: 14px;
	display: flex;
	justify-content: flex-start;
}

.ab-bayes-tool__action {
	margin-top: 20px;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
    padding-bottom: 30px;
}

.ab-btn {
	height: 42px;
	padding: 0 16px;
	border: 1px solid #bbb;
	background: #f7f7f7;
	cursor: pointer;
	border-radius: 6px;
}

.ab-btn--primary {
	background: #004931;
    color: #fff;
    border-color: #004931;
    padding: 0 74px;
}

.ab-bayes-tool__error {
	margin-top: 12px;
	color: #c40000;
	font-weight: 700;
}

.ab-bayes-tool__results {
	margin-top: 32px;
}

.ab-result-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.ab-card {
	padding: 16px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
}

.ab-card__label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	color: #555;
}

.ab-card__value {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4;
}

.ab-result-section {
	margin-top: 28px;
}

.ab-result-section h3 {
	margin: 0 0 12px;
	font-size: 22px;
}

#abNarrative p {
	margin: 0 0 10px;
	line-height: 1.9;
}

#abFormula {
	line-height: 1.9;
	white-space: pre-wrap;
	font-family: monospace;
	font-size: 13px;
	background: #3b3b3b;
	padding: 20px;
	color: #fff;
	margin-top: 12px;
}

@media (max-width: 767px) {
	.ab-bayes-tool {
		padding: 16px;
	}

	.ab-bayes-tool__title {
		font-size: 24px;
	}

	.ab-result-section h3 {
		font-size: 20px;
	}
}