.autobach-patches {
	padding-top: 2rem;
}

.autobach-patches-heading,
.autobach-patches-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.autobach-patches-heading {
	justify-content: space-between;
}

.autobach-patches-heading h1,
.autobach-patches-heading p {
	margin: 0;
}

.autobach-patches-heading p,
.autobach-patches-empty {
	color: var(--text-light);
}

.autobach-patches-quick-start {
	display: flex;
	align-items: center;
	justify-content: space-between;
	float: none;
	width: 100%;
	gap: 1rem;
	margin: 1.25rem 0 0;
	padding: 0.75rem 1rem;
}

.autobach-patches-quick-start > div > strong {
	font-family: var(--mono-font);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.autobach-patches-quick-start ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 2rem;
	list-style-position: inside;
	margin: 0.35rem 0;
	padding-left: 0;
}

.autobach-patches-quick-start p {
	margin: 0;
}

.autobach-patches-quick-start .button {
	flex: none;
}

.autobach-patches-login {
	margin: 1rem 0 0 auto;
	width: fit-content;
}

.autobach-patches-editor input {
	width: 100%;
}

.autobach-patches-login summary {
	text-align: right;
}

.autobach-patches-login form {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.autobach-patches-login input {
	margin: 0;
	padding: 0.2rem 0.4rem;
	width: 8rem;
}

.autobach-patches-login button {
	margin: 0;
}

.autobach-patches-support-preview {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-top: 1rem;
}

.autobach-patches-support-preview button {
	margin: 0;
}

.autobach-patches-editor {
	margin: 2rem 0;
	padding: 1.25rem 0;
}

.autobach-patches-editor h2 {
	margin: 0 0 1rem;
}

.autobach-patches-list {
	margin-top: 2rem;
	overflow-x: auto;
}

.autobach-patches-list table {
	margin: 0;
	width: 100%;
}

.autobach-patches-list th,
.autobach-patches-list td {
	padding: 0.35rem 0.5rem;
	vertical-align: middle;
}

.autobach-patches-list td:first-child {
	font-weight: bold;
}

.autobach-patches-list time {
	color: var(--text-light);
	white-space: nowrap;
}

.autobach-patches-list .autobach-patches-actions {
	flex-wrap: nowrap;
}

/* simple.css gives buttons a bottom margin; flex gap handles spacing here. */
.autobach-patches-actions form,
.autobach-patches-actions button,
.autobach-patches-actions .button,
.autobach-patches-logout button {
	margin: 0;
}

a.autobach-patches-edit,
a.autobach-patches-update,
.autobach-patches-delete {
	font-size: 0.9rem;
	padding: 0.2rem 0.4rem;
}

a.autobach-patches-update {
	background: #e0b400;
	border-color: #e0b400;
	color: #000;
}

a.button.autobach-patches-update:hover {
	background: #c99f00;
	border-color: #c99f00;
	color: #000;
}

.autobach-patches-delete {
	background: transparent;
	border-color: #a12424;
	color: #a12424;
}

.autobach-patches-error {
	border-color: #a12424;
}

.autobach-patches-success {
	border-color: #277a3b;
}

@media only screen and (max-width: 720px) {
	.autobach-patches-heading {
		align-items: stretch;
		flex-direction: column;
	}

	.autobach-patches-quick-start {
		align-items: flex-start;
		flex-direction: column;
	}

	.autobach-patches-quick-start ol {
		display: block;
	}

	.autobach-patches-published {
		display: none;
	}
}
