.text-diff-tool {
	max-width: 1200px;
	margin: 40px auto;
}

.text-diff-tool__inputs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

.text-diff-tool__label {
	display: block;
	font-weight: 700;
	margin-bottom: 8px;
}

.text-diff-tool__textarea {
	width: 100%;
	min-height: 280px;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.7;
	resize: vertical;
	box-sizing: border-box;
	font-family: Consolas, Monaco, monospace;
}

.text-diff-tool__actions {
	display: flex;
	gap: 12px;
	margin-bottom: 30px;
    flex-wrap: wrap;
    border-bottom: 1px dashed #e3e3e3;
    padding-bottom: 17px;
}

.text-diff-tool__button {
	appearance: none;
	border: 0;
	background: #004931;
	color: #fff;
	padding: 10px 18px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
}

.text-diff-tool__button--sub {
	background: #777;
}

.text-diff-tool__legend {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	margin-bottom: 20px;
	font-size: 13px;
}

.text-diff-tool__legend-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.text-diff-tool__legend-color {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.text-diff-tool__legend-color--space {
	background: #fff7bf;
}

.text-diff-tool__legend-color--text {
	background: #ffe07a;
}

.text-diff-tool__legend-color--line {
	background: #ffd1a6;
}

.text-diff-result {
	border: 1px solid #ddd;
	border-radius: 10px;
	overflow: hidden;
}

.text-diff-result__header,
.text-diff-result__row {
	display: grid;
	grid-template-columns: 60px 1fr 1fr;
	font-size: 0.8rem;
}

.text-diff-result__header {
	background: #f5f5f5;
	font-weight: 700;
	line-height: 2;
}

.text-diff-result__header > div,
.text-diff-result__cell,
.text-diff-result__line {
	padding: 0px 12px;
	box-sizing: border-box;
}

.text-diff-result__row:last-child .text-diff-result__cell,
.text-diff-result__row:last-child .text-diff-result__line {
	border-bottom: 0;
}

.text-diff-result__line {
	background: #fafafa;
	text-align: center;
	color: #666;
	font-size: 12px;
}

.text-diff-result__cell {
	white-space: pre-wrap;
	word-break: break-word;
	font-family: Consolas, Monaco, monospace;
	line-height: 1;
	min-height: 19px;
}

.diff-space {
	background: #fff7bf;
}

.diff-text {
	background: #ffe07a;
}

.diff-line-added,
.diff-line-removed {
	background: #ffd1a6;
	display: block;
	padding: 2px 4px;
	border-radius: 4px;
}

.diff-empty {
	color: #bbb;
}
.text-diff-summary {
	display: grid;
	grid-template-columns: repeat(5, minmax(140px, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}

.text-diff-summary__card {
	border: 1px solid #ddd;
	border-radius: 10px;
	padding: 12px;
	background: #fff;
}

.text-diff-summary__label {
	font-size: 12px;
	color: #666;
	margin-bottom: 6px;
}

.text-diff-summary__value {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}
textarea.form-control{
	font-size: 0.8rem;
}
@media (max-width: 768px) {
	.text-diff-tool__inputs {
		grid-template-columns: 1fr;
	}

	.text-diff-result__header,
	.text-diff-result__row {
		grid-template-columns: 44px 1fr 1fr;
	}

	.text-diff-result__cell,
	.text-diff-result__line,
	.text-diff-result__header > div {
		padding: 8px;
		font-size: 12px;
	}
	.text-diff-summary {
		grid-template-columns: repeat(2, minmax(120px, 1fr));
	}
}