/* WorkingBar, JumpBox, Raise something. Split from files.css so each sheet has one job. Tokens only. */
/* The Files pages' own components (#41), for what abso does not have yet. Design can fold each into the system. Tokens only. */

/* Dots: facts with a "·" between them; the dot leads each item and the first of a line is clipped, so a separator never starts or ends a line. */
.ab-dots {
	display: block;
	min-width: 0;
	overflow: hidden;
}
.ab-dots > .in {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	margin-left: calc(-1 * var(--space-3));
}
.ab-dots > .in > span {
	position: relative;
	padding-left: var(--space-3);
}
.ab-dots > .in > span::before {
	content: "·";
	position: absolute;
	left: var(--space-1);
	color: var(--faint);
}

/* WorkingBar: who has unpublished changes here. */
.ab-working {
	color: var(--muted);
	font-size: 13px;
	line-height: 20px;
}
.ab-working b {
	color: var(--ink);
	font-weight: 600;
}
.ab-working .num {
	font-family: var(--font-mono);
	font-weight: 600;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
}
.ab-working .path {
	font-family: var(--font-mono);
	font-weight: 500;
	color: var(--ink);
}
.ab-working .small {
	font-size: 12px;
	line-height: 16px;
}
.ab-working .places {
	margin-left: var(--space-2);
}
.ab-working-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-1) var(--space-2);
	min-width: 0;
}
.ab-working-row .ab-btn {
	height: 24px;
	padding: 0 var(--space-2);
	margin-left: auto;
}
.ab-working.is-file {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	padding: 7px var(--space-4);
	border-bottom: 1px solid var(--rule);
	background: var(--paper);
}
.ab-working.is-folder {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--space-2) var(--space-6);
	padding: 0 0 10px;
	border-bottom: 1px solid var(--rule);
}
.ab-working.is-folder .label {
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
}
.ab-working.is-folder .rows {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	min-width: 0;
	flex: 1;
}
.ab-working.is-folder .ab-working-row .ab-btn {
	margin-left: var(--space-2);
}
.ab-working .rec {
	margin-right: var(--space-1);
}
@media (max-width: 600px) {
	.ab-working-row .ab-btn {
		margin-left: 0;
	}
}
/*
  The Files pages' own components (#41): the ones the abso system doesn't have yet, so Design can fold them in.
  Tokens only; no hex values. Load after the system's stylesheets.
*/

/* ---------- Go to file (JumpBox): the system's .ab-pop.ab-jump, plus what it does not have: the scrim behind it ---------- */
.ab-jump-scrim {
	position: fixed;
	inset: 0;
	z-index: 20;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 96px 16px 16px;
	box-sizing: border-box;
	background: rgb(0 0 0 / 0.6);
}
.ab-jump-scrim .ab-jump {
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 112px);
}
.ab-jump-scrim .ab-jump ul {
	overflow-y: auto;
}
.ab-jump-scrim .ab-jump li > a {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: inherit;
	text-decoration: none;
}
.ab-jump-none {
	margin: 8px 16px;
	color: var(--muted);
}
.ab-jump .input code {
	font-family: var(--font-mono);
}
@media (max-width: 640px) {
	.ab-jump-scrim {
		padding-top: 16px;
	}
	.ab-jump-scrim .ab-jump {
		max-height: calc(100vh - 32px);
	}
	.ab-jump .input .hint,
	.ab-jump .foot {
		display: none;
	}
}

/* Raise something (F14): the panel for a file or some lines. */
.ab-raise {
	display: flex;
	flex-direction: column;
}
.ab-raise-label {
	padding: 0;
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	color: var(--muted);
}
.ab-raise-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ab-raise-note {
	margin: 0;
	color: var(--muted);
	font-size: 12px;
}
.ab-reach {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
}
.ab-reach legend {
	margin-bottom: 6px;
}
.ab-reach-item {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 8px;
	align-items: baseline;
}
.ab-reach-why {
	grid-column: 2;
	color: var(--muted);
	font-size: 12px;
}
.ab-raise-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ab-raise-field textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	color: var(--ink);
	background: var(--paper);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	padding: 8px;
	resize: vertical;
}
.ab-raise-mention {
	color: var(--muted);
	font-size: 12px;
}
.ab-raise-error {
	margin: 0;
	padding: 8px 12px;
	border-left: 3px solid var(--fail);
	background: var(--wash);
}
.ab-raise-ok {
	margin: 0;
	padding: 8px 12px;
	border-left: 3px solid var(--pass);
	background: var(--wash);
}
.ab-raise-actions {
	display: flex;
	gap: 8px;
}
