/* New issue and editing an issue. Split from files.css so each sheet has one job. Tokens only. */
/* Waiting on you: the answer's controls while the site isn't taking answers (dimmed, still shaped), the error, the phone's order. */
.ab-option.is-off {
	opacity: 0.5;
	cursor: default;
}
.ab-ask textarea:disabled {
	opacity: 0.5;
}
.ab-ask .actions {
	flex-direction: row;
	align-items: center;
	gap: 12px;
}
.ab-ask .actions button:disabled {
	background: var(--ink);
	color: var(--paper);
	border-color: var(--ink);
	opacity: 0.4;
	cursor: default;
}
.ab-ask-error {
	color: var(--fail);
	font-size: 13px;
}
.ab-ask h3 .by {
	margin-left: 6px;
	font-weight: 400;
}

/* New issue, the small size (Design Lead): the lines and the notify list as plain text under their labels. */
.ab-newissue {
	display: flex;
	flex-direction: column;
}
.ab-newissue-lines,
.ab-newissue-notify {
	margin: 0;
}
.ab-newissue p.ab-newissue-chip,
.ab-newissue-chip {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	min-width: 0;
	margin: 0;
}
.ab-newissue-chip code {
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 16px;
	overflow-wrap: anywhere;
}
.ab-newissue-link {
	width: 14px;
	height: 14px;
	flex: none;
	color: var(--muted);
}
.ab-newissue .ab-newissue-at,
.ab-newissue p.ab-newissue-notify,
.ab-newissue-at,
.ab-newissue-notify {
	font-size: 12px;
	line-height: 16px;
	font-weight: 400;
	color: var(--muted);
}
.ab-newissue-notify .ab-agent {
	color: inherit;
	font-size: inherit;
}
.ab-newissue-notify {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 10px;
}
.ab-raise-field input[type="text"] {
	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;
}

/* New issue, the expanded size: a modal over the page. */
.ab-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 48px 16px;
	background: rgb(0 0 0 / 0.6);
	overflow-y: auto;
}
.ab-modal {
	width: 100%;
	max-width: 640px;
	box-sizing: border-box;
	background: var(--surface);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
}
.ab-modal section {
	padding: 14px var(--space-4);
	border-bottom: 1px solid var(--rule);
}
.ab-modal section:last-child {
	border-bottom: 0;
}
.ab-modal 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-modal-hint {
	align-self: flex-end;
	color: var(--muted);
	font-size: 12px;
	line-height: 16px;
}
.ab-modal-row {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 12px;
}
.ab-notify-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.ab-modal-row.is-one {
	grid-template-columns: 1fr;
}
/* Labels in the New issue forms: the chip is as wide as its name, with the × 6px after it; the box is a text box that suggests, so no ▼. */
.ab-label-list li {
	padding: 0;
	background: none;
}
.ab-label-list .ab-chip {
	gap: 6px;
	padding: 0 4px 0 8px;
}
.ab-chip-x {
	margin: 0;
	padding: 0 2px;
	border: 0;
	background: none;
	color: var(--muted);
	font: inherit;
	line-height: inherit;
	cursor: pointer;
}
.ab-chip-x:hover {
	color: var(--ink);
}
.ab-chip-x:focus-visible {
	outline: 2px solid var(--ink);
	border-radius: var(--radius);
}
.ab-label-input::-webkit-calendar-picker-indicator {
	display: none !important;
}
.ab-notify-list li {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0 4px 0 8px;
	border-radius: var(--radius-pill);
	background: var(--wash);
}
.ab-modal input[type="text"] {
	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;
}
@media (max-width: 720px) {
	/* "Recommended by …" sits on its own muted line under the option's text, so neither wraps into the other (Design Lead). */
	.ab-option {
		box-sizing: border-box;
		flex-wrap: wrap;
		align-content: center;
		row-gap: 0;
		padding-top: 8px;
		padding-bottom: 8px;
	}
	.ab-option .text {
		flex: 1;
		min-width: 0;
	}
	.ab-option .tag {
		order: 3;
		flex-basis: 100%;
		margin-left: 28px;
	}
}
.ab-modal-foot {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}
.ab-modal-foot > .is-ghost {
	margin-right: auto;
}

/* Editing an issue (the Edit board): the title and fields in place, Notify with who is told, the red line, Cancel and Save. */
.ab-issue-main h1 {
	display: flex;
	align-items: baseline;
	gap: var(--space-2);
}
.ab-issue-edit {
	margin-left: auto;
	align-self: center;
	flex: none;
}
.ab-edit {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}
.ab-edit-heading {
	margin: var(--space-3) 0 0;
	font: var(--type-heading);
	color: var(--muted);
}
.ab-edit-heading .num {
	font-family: var(--font-mono);
	font-weight: 450;
}
.ab-edit-title input,
.ab-edit-description textarea,
.ab-edit select {
	box-sizing: border-box;
	color: var(--ink);
	background: var(--paper);
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius);
	font: var(--type-ui);
	outline: 0;
}
.ab-edit-title input {
	display: block;
	width: 100%;
	padding: 6px 10px;
	font: var(--type-display);
}
.ab-edit-description {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ab-edit-description textarea {
	width: 100%;
	padding: 8px 10px;
	resize: vertical;
	line-height: 21px;
}
.ab-edit-label {
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	color: var(--muted);
}
.ab-edit input:focus-visible,
.ab-edit textarea:focus-visible,
.ab-edit select:focus-visible {
	box-shadow: 0 0 0 2px var(--select);
}
.ab-edit select {
	height: 28px;
	max-width: 100%;
	padding: 0 8px;
}
.ab-edit .ab-props dt label {
	color: var(--muted);
}
.ab-edit-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 24px;
	max-width: 100%;
	padding: 0 3px 0 9px;
	box-sizing: border-box;
	border-radius: 999px;
	background: var(--wash);
	box-shadow: inset 0 0 0 1px var(--rule);
	font-size: 12px;
	color: var(--ink);
}
.ab-edit-chip.is-fixed {
	padding-right: 9px;
}
.ab-edit-chip .t {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ab-edit-chip button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--muted);
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}
.ab-edit-chip button:hover {
	color: var(--ink);
}
.ab-edit-notify {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-3);
	margin: 0;
	padding: 12px 14px;
	border: 0;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--rule);
}
.ab-edit-tick {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font: var(--type-ui);
	font-weight: 600;
	cursor: pointer;
}
.ab-edit-told {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-width: 0;
}
.ab-edit-quiet {
	color: var(--muted);
	font: var(--type-ui);
}
.ab-edit-error {
	margin: 0;
	color: var(--fail);
	font: var(--type-ui);
}
.ab-edit-actions {
	display: flex;
	justify-content: flex-end;
	gap: var(--space-2);
}
.ab-edit-actions .ab-btn[disabled] {
	cursor: default;
}

@media (max-width: 720px) {
	/* An issue's properties on a phone: the labels take less of the line, each on one, and the values wrap (Design Lead). */
	.ab-props {
		grid-template-columns: max-content minmax(0, 1fr);
		column-gap: 12px;
	}
	.ab-props dt {
		white-space: nowrap;
	}
}
