/* JSON Diff - FileInfo.cn (extends shared tool styles) */
.diff-editors {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

.diff-panel {
	min-width: 0;
}

.diff-panel-label {
	font-size: 14px;
	font-weight: 600;
	color: #1565c0;
	margin-bottom: 6px;
	padding-left: 2px;
}

.diff-editor-wrap {
	border: 2px solid #1976d2;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
}

.diff-editor-wrap .CodeMirror {
	height: 320px;
	font-size: 14px;
	line-height: 1.5;
	font-family: Consolas, Monaco, "Courier New", monospace;
}

.diff-result-wrap {
	border: 2px solid #1976d2;
	border-radius: 4px;
	background: #fff;
	margin-bottom: 20px;
	overflow: hidden;
}

.diff-result-head {
	background: #e3f2fd;
	color: #1565c0;
	font-size: 14px;
	font-weight: 600;
	padding: 8px 12px;
	border-bottom: 1px solid #bbdefb;
}

.diff-result-body {
	padding: 12px;
	max-height: 480px;
	overflow: auto;
	font-family: Consolas, Monaco, "Courier New", monospace;
	font-size: 13px;
	line-height: 1.6;
	text-align: left;
}

.diff-result-body.diff-empty {
	color: #757575;
	text-align: center;
	padding: 24px;
}

/* jsondiffpatch html formatter overrides */
.diff-result-body .jsondiffpatch-delta {
	font-family: inherit;
}

.diff-result-body .jsondiffpatch-added .jsondiffpatch-value,
.diff-result-body .jsondiffpatch-modified .jsondiffpatch-right-value {
	background: #e8f5e9;
}

.diff-result-body .jsondiffpatch-deleted .jsondiffpatch-value,
.diff-result-body .jsondiffpatch-modified .jsondiffpatch-left-value {
	background: #ffebee;
	text-decoration: line-through;
}

.diff-result-body .jsondiffpatch-property-name {
	color: #1565c0;
	font-weight: 600;
}

.diff-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 13px;
	color: #757575;
	margin-bottom: 12px;
}

.diff-legend span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.diff-legend i {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 2px;
	border: 1px solid #e0e0e0;
}

.diff-legend .leg-add i {
	background: #e8f5e9;
}

.diff-legend .leg-del i {
	background: #ffebee;
}

.diff-legend .leg-mod i {
	background: linear-gradient(90deg, #ffebee 50%, #e8f5e9 50%);
}

@media (max-width: 768px) {
	.diff-editors {
		grid-template-columns: 1fr;
	}

	.diff-editor-wrap .CodeMirror {
		height: 240px;
	}
}
