/* DiffView, Compare, overlaps, dashed change marks. Split from files.css so each sheet has one job. Tokens only. */
/* ---------- DiffView (Compare): old and new numbers, the author stripe on added lines, + and - on the washes ---------- */
.code.diff.ab-diff .line {
	grid-template-columns: 44px 44px 3px 14px 1fr;
}
.ab-dl-who {
	align-self: stretch;
	width: 3px;
}
.ab-dl-who.is-set {
	background: var(--c);
	border-radius: 2px;
}

/* ---------- Compare's bar: the two versions, a swap, the totals, the versions in between ---------- */
.ab-compare-bar {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 12px;
}
.ab-compare-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}
.ab-compare-form h1 {
	margin-right: 8px;
	font: var(--type-heading);
}
.ab-compare-form label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	font-size: 12px;
}
.ab-compare-form input[name] {
	width: 6ch;
	box-sizing: content-box;
	padding: 3px 8px;
	border: 1px solid var(--faint);
	border-radius: 6px;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: 13px;
}
.ab-compare-form input[name]:focus-visible,
.ab-compare-swap:focus-visible,
.ab-compare-go:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}
.ab-compare-swap,
.ab-compare-go {
	height: 28px;
	padding: 0 10px;
	border: 1px solid var(--faint);
	border-radius: 6px;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}
.ab-compare-swap:hover,
.ab-compare-go:hover:not(:disabled) {
	border-color: var(--muted);
}
.ab-compare-go:disabled {
	color: var(--muted);
	cursor: not-allowed;
}
.ab-compare-sum {
	margin-left: auto;
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: 13px;
}
.ab-compare-between {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin: 0;
	font-size: 13px;
}
.ab-compare-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--wash);
	color: var(--ink);
	text-decoration: none;
	line-height: 24px;
}
.ab-compare-chip:hover {
	box-shadow: inset 0 0 0 1px var(--faint);
}

/* Overlaps (F22): where two agents' unpublished changes would collide, as of a version. One quiet line under the WorkingBar. */
.ab-overlaps {
	padding: 7px var(--space-4);
	border-bottom: 1px solid var(--rule);
	background: var(--paper);
	color: var(--muted);
	font-size: 13px;
	line-height: 20px;
}
.ab-overlaps-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-1) var(--space-2);
}
.ab-overlaps-row > span {
	min-width: 0;
	flex: 1 1 320px;
}
.ab-overlaps-row .ab-mark {
	margin-right: 4px;
}
.ab-overlaps-row .ab-btn {
	height: 24px;
	padding: 0 var(--space-2);
	margin-left: auto;
}
.ab-overlaps code,
.ab-overlap-panel code {
	font-family: var(--font-mono);
	color: var(--ink);
}
.ab-overlap-panel {
	display: flex;
	flex-direction: column;
	min-height: 0;
}
.ab-overlap-panel .ab-panel-head h2 {
	margin: 0;
	font-size: 15px;
	line-height: 20px;
	font-weight: 650;
}
.ab-overlap-panel-body {
	flex: 1;
	min-height: 0;
	overflow: auto;
}
.ab-overlap-panel-body p {
	margin: 0;
	font-size: 13px;
	line-height: 20px;
}
.ab-overlap-panel-body .path {
	font-family: var(--font-mono);
	font-weight: 500;
}
.ab-overlap-sides {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	margin-top: var(--space-2);
}
.ab-overlap-side .who {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	color: var(--ink);
	font-size: 12px;
	line-height: 16px;
}
.ab-overlap-side pre {
	margin: 4px 0 0;
	padding: var(--space-2);
	overflow-x: auto;
	border-radius: var(--radius);
	box-shadow: inset 0 0 0 1px var(--rule);
	background: var(--surface);
	color: var(--syn-plain);
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 18px;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
/* After the dashed marks in a listing or the tree. */
.ab-collide {
	color: var(--muted);
	font-size: 12px;
	line-height: 16px;
	white-space: nowrap;
}
/* In the code: a line both agents have unpublished gets two 2px dashed bars in the change-mark column, one in each colour. */
.ab-line .chg.is-overlap {
	position: relative;
	margin-left: 0;
	border: 0;
	background: none;
}
.ab-line .chg.is-overlap::before,
.ab-line .chg.is-overlap::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 0;
	border-left: 2px dashed;
}
.ab-line .chg.is-overlap::before {
	left: 0;
	border-color: var(--ca);
}
.ab-line .chg.is-overlap::after {
	left: 3px;
	border-color: var(--cb);
}
