/**
 * SteadyPost - Admin Styles
 *
 * Shares SteadyBook's design language (the Steady Devs palette): blue
 * gradient primary, emerald accent, white cards on a soft border. Everything
 * is scoped to .wrap.steadypost so no other admin screen is touched.
 */

.wrap.steadypost {
	/* Steady Devs brand palette — same values as SteadyBook's --gbb-admin-*. */
	--sp-primary: #1d4ed8;
	--sp-primary-soft: #2563eb;
	--sp-primary-deep: #1a3fb8;
	--sp-accent: #10b981;
	--sp-surface: #f5f7fb;
	--sp-border: #dbe3f0;
	--sp-border-soft: #e9eef8;
	--sp-input-border: #c8d4ea;
	--sp-text: #0f172a;
	--sp-muted: #64748b;
	--sp-danger: #b3261e;

	max-width: 1260px;
	color: var(--sp-text);
}

.wrap.steadypost,
.wrap.steadypost * {
	box-sizing: border-box;
}

/* ------------------------------------------------------------- headings */

.wrap.steadypost h1 {
	color: var(--sp-text);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 18px;
}

.wrap.steadypost .steadypost-crumb {
	font-size: 14px;
	font-weight: 500;
	color: var(--sp-muted);
	letter-spacing: 0;
}

.wrap.steadypost h2 {
	color: var(--sp-text);
	margin-top: 20px;
	margin-bottom: 12px;
}

/* Section titles get the emerald accent underline, as in SteadyBook. */
.wrap.steadypost .steadypost-section-title {
	position: relative;
	margin-top: 18px;
	padding-bottom: 10px;
	border-bottom: 2px solid #e5eaf6;
}

.wrap.steadypost .steadypost-section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 54px;
	height: 2px;
	background: var(--sp-accent);
}

/* ---------------------------------------------------------------- cards */

.wrap.steadypost .steadypost-card {
	background: #fff;
	border: 1px solid var(--sp-border);
	border-radius: 14px;
	padding: 4px 24px 20px;
	margin: 16px 0 24px;
	box-shadow: 0 8px 22px rgba(10, 30, 26, 0.06);
}

.wrap.steadypost .steadypost-card > .description:first-of-type {
	margin-top: 14px;
}

/* Tables inside a card shouldn't draw their own box. */
.wrap.steadypost .steadypost-card .form-table {
	background: transparent;
	border: 0;
	margin-top: 0;
}

.wrap.steadypost .form-table th {
	width: 220px;
}

.wrap.steadypost .form-table th,
.wrap.steadypost .form-table td {
	border-bottom: 1px solid var(--sp-border-soft);
}

.wrap.steadypost .form-table tr:last-child th,
.wrap.steadypost .form-table tr:last-child td {
	border-bottom: 0;
}

.wrap.steadypost .description {
	color: var(--sp-muted);
}

.wrap.steadypost .form-table .description {
	margin-top: 8px;
}

.wrap.steadypost .steadypost-indent {
	margin: 4px 0 10px 24px;
}

.wrap.steadypost .steadypost-inline-label {
	display: inline-block;
	width: 110px;
	font-weight: 500;
}

/* --------------------------------------------------------------- inputs */

.wrap.steadypost input[type="text"],
.wrap.steadypost input[type="url"],
.wrap.steadypost input[type="number"],
.wrap.steadypost input[type="search"],
.wrap.steadypost textarea,
.wrap.steadypost select {
	border-color: var(--sp-input-border);
	border-radius: 8px;
	color: var(--sp-text);
}

.wrap.steadypost input[type="text"]:focus,
.wrap.steadypost input[type="url"]:focus,
.wrap.steadypost input[type="number"]:focus,
.wrap.steadypost input[type="search"]:focus,
.wrap.steadypost textarea:focus,
.wrap.steadypost select:focus {
	border-color: var(--sp-primary-soft);
	box-shadow: 0 0 0 1px var(--sp-primary-soft);
	outline: 0;
}

.wrap.steadypost input[type="checkbox"],
.wrap.steadypost input[type="radio"] {
	accent-color: var(--sp-primary-soft);
}

.wrap.steadypost .form-table td > label {
	display: inline-block;
	margin-bottom: 4px;
}

/* -------------------------------------------------------------- buttons */

.wrap.steadypost .button {
	border-radius: 8px;
}

.wrap.steadypost .button.button-primary {
	background: linear-gradient(135deg, var(--sp-primary), var(--sp-primary-soft));
	border-color: var(--sp-primary);
	color: #fff;
}

.wrap.steadypost .button.button-primary:hover,
.wrap.steadypost .button.button-primary:focus {
	background: linear-gradient(135deg, var(--sp-primary-deep), var(--sp-primary));
	border-color: var(--sp-primary-deep);
	color: #fff;
}

.wrap.steadypost .button.button-primary:disabled,
.wrap.steadypost .button.button-primary[disabled] {
	background: #a9b9e0 !important; /* WP core forces its own disabled colours. */
	border-color: #a9b9e0 !important;
	color: #fff !important;
}

.wrap.steadypost .button .dashicons {
	margin: 3px 4px 0 -2px;
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.wrap.steadypost #steadypost-stop:not(:disabled) {
	color: var(--sp-danger);
	border-color: #e3b7b4;
	background: #fff6f5;
}

.wrap.steadypost #steadypost-stop:not(:disabled):hover {
	color: #fff;
	background: #c23e3e;
	border-color: #a52f2f;
}

.wrap.steadypost .submit {
	margin-top: 0;
}

/* -------------------------------------------------------------- notices */

.wrap.steadypost .notice {
	border-radius: 8px;
}

.wrap.steadypost .notice.notice-success {
	border-left-color: var(--sp-accent);
}

.wrap.steadypost .notice.notice-error {
	border-left-color: #c23e3e;
}

/* --------------------------------------------------------- import screen */

.wrap.steadypost .steadypost-source {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 16px 0 10px;
}

.wrap.steadypost .steadypost-source-label {
	font-weight: 600;
}

.wrap.steadypost .steadypost-source a {
	max-width: 520px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wrap.steadypost .steadypost-chip {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: #e6edfb;
	color: var(--sp-primary);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.wrap.steadypost .steadypost-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 4px;
}

.wrap.steadypost .steadypost-actions .button {
	min-height: 36px;
	padding: 0 16px;
	line-height: 34px;
}

/* Progress */

.wrap.steadypost .steadypost-progress {
	margin: 18px 0 4px;
}

.wrap.steadypost .steadypost-bar {
	height: 10px;
	border-radius: 999px;
	background: #e5eaf6;
	overflow: hidden;
}

.wrap.steadypost .steadypost-bar > span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--sp-primary-soft), var(--sp-accent));
	transition: width .25s ease;
}

.wrap.steadypost .steadypost-status {
	margin: 10px 0 0;
	color: var(--sp-muted);
}

.wrap.steadypost .steadypost-status.is-done {
	color: #1f6a42;
	font-weight: 600;
}

.wrap.steadypost .steadypost-status.is-error {
	color: var(--sp-danger);
	font-weight: 600;
}

/* Log */

.wrap.steadypost .steadypost-log {
	max-height: 460px;
	overflow-y: auto;
	margin-top: 16px;
	padding: 4px 0;
	border: 1px solid var(--sp-border);
	border-radius: 12px;
	background: #fff;
	font-size: 13px;
	box-shadow: 0 8px 22px rgba(10, 30, 26, 0.06);
}

.wrap.steadypost .steadypost-log-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: baseline;
	padding: 9px 14px;
	border-bottom: 1px solid var(--sp-border-soft);
}

.wrap.steadypost .steadypost-log-row:nth-child(even) {
	background: #fbfcff;
}

.wrap.steadypost .steadypost-log-row:last-child {
	border-bottom: 0;
}

.wrap.steadypost .steadypost-row-num {
	min-width: 44px;
	color: var(--sp-muted);
	font-family: Consolas, Monaco, monospace;
}

/* Status pills — same tints as SteadyBook's .gbb-status-*. */
.wrap.steadypost .steadypost-badge {
	min-width: 76px;
	padding: 2px 10px;
	border-radius: 999px;
	background: #eceff0;
	color: #5c6b68;
	font-size: 11px;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.wrap.steadypost .status-created .steadypost-badge {
	background: #daf2e4;
	color: #1f6a42;
}

.wrap.steadypost .status-updated .steadypost-badge {
	background: #e6edfb;
	color: var(--sp-primary);
}

.wrap.steadypost .status-skipped .steadypost-badge {
	background: #fff4db;
	color: #8a6213;
}

.wrap.steadypost .status-error .steadypost-badge {
	background: #f7dde0;
	color: #7f2a31;
}

/* Dry run: what would happen — outlined rather than filled. */
.wrap.steadypost .status-create .steadypost-badge {
	background: #fff;
	color: #1f6a42;
	box-shadow: inset 0 0 0 1px #9fd8b8;
}

.wrap.steadypost .status-update .steadypost-badge {
	background: #fff;
	color: var(--sp-primary);
	box-shadow: inset 0 0 0 1px #b5c7f0;
}

.wrap.steadypost .steadypost-undo-link {
	font-weight: 600;
}

/* A note row (no badge) from the start of a run. */
.wrap.steadypost .steadypost-log-row.status-skipped:not(:has(.steadypost-badge)) {
	background: #fffaf0;
	color: #8a6213;
}

.wrap.steadypost .steadypost-log-title {
	flex: 1 1 240px;
	font-weight: 600;
}

.wrap.steadypost .steadypost-log-detail {
	flex: 1 1 100%;
	padding-left: 132px;
	color: var(--sp-muted);
}

/* Dry run of an update: field, now, after import. */
.wrap.steadypost .steadypost-changes {
	flex: 1 1 100%;
	margin-left: 132px;
	max-width: calc(100% - 132px);
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 12px;
}

.wrap.steadypost .steadypost-changes th,
.wrap.steadypost .steadypost-changes td {
	padding: 4px 8px;
	border: 1px solid var(--sp-border-soft);
	text-align: left;
	vertical-align: top;
	overflow-wrap: anywhere;
}

.wrap.steadypost .steadypost-changes thead th {
	color: var(--sp-muted);
	font-weight: 600;
}

.wrap.steadypost .steadypost-changes tbody th {
	width: 22%;
	font-weight: 600;
}

.wrap.steadypost .steadypost-changes .is-old {
	background: #fff5f5;
	color: #8a2424;
}

.wrap.steadypost .steadypost-changes .is-new {
	background: #f2fbf4;
	color: #1d6b34;
}

.wrap.steadypost .steadypost-changes .is-empty {
	font-style: italic;
	opacity: .7;
}

/* ------------------------------------------------------ preview picker */

.wrap.steadypost .steadypost-preview-summary {
	margin: 18px 0 6px;
	font-weight: 600;
}

.wrap.steadypost .steadypost-picker-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 10px;
	padding: 10px 12px;
	background: var(--sp-surface);
	border: 1px solid var(--sp-border);
	border-radius: 10px;
}

.wrap.steadypost #steadypost-pick-count {
	padding: 3px 10px;
	border-radius: 999px;
	background: #daf2e4;
	color: #1f6a42;
	font-size: 12px;
}

.wrap.steadypost .steadypost-picker-filter {
	min-width: 220px;
	margin-left: auto;
}

/* All the sheet's columns are shown, so the table scrolls sideways inside
   this box rather than pushing the admin page wider. */
.wrap.steadypost .steadypost-preview-scroll {
	max-width: 100%;
	overflow: auto;
	max-height: 70vh;
	border: 1px solid var(--sp-border);
	border-radius: 12px;
	background: #fff;
}

.wrap.steadypost .steadypost-preview-scroll .steadypost-preview {
	max-width: none;
	margin-top: 0;
	border: 0;
}

.wrap.steadypost .steadypost-preview thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: linear-gradient(180deg, #eef2fb 0%, #e3ebf8 100%);
	color: #1e3a8a;
	font-weight: 600;
	box-shadow: inset 0 -1px 0 #d5deef;
	white-space: nowrap;
}

.wrap.steadypost .steadypost-preview tbody tr:hover td {
	background: #f1f5ff;
}

/* Text columns keep a readable width — the table scrolls sideways inside
   its box instead of squeezing words apart. */
.wrap.steadypost .steadypost-preview td {
	vertical-align: top;
	min-width: 140px;
	max-width: 320px;
	overflow-wrap: break-word;
}

.wrap.steadypost .steadypost-preview td.steadypost-pick-cell,
.wrap.steadypost .steadypost-preview td.steadypost-row-num-cell {
	min-width: 0;
}

.wrap.steadypost .steadypost-cell {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	overflow: hidden;
	white-space: pre-line;
}

.wrap.steadypost .steadypost-pick-cell {
	width: 52px;
	text-align: center;
}

.wrap.steadypost .steadypost-row-num-cell {
	width: 64px;
	white-space: nowrap;
	color: var(--sp-muted);
}

.wrap.steadypost .steadypost-preview th.is-gate {
	color: var(--sp-accent);
}

.wrap.steadypost .steadypost-preview th.is-gate::before {
	content: "\25CF  ";
}

/* Filtered out by the row filter: still selectable, just not pre-ticked. */
.wrap.steadypost .steadypost-preview tr.is-excluded td {
	opacity: 0.55;
}

/* Blocked — no title, so the importer could never make a post from it. */
.wrap.steadypost .steadypost-preview tr.is-blocked td {
	opacity: 0.55;
	background: #fcf0f1;
}

.wrap.steadypost .steadypost-why {
	display: inline-block;
	margin-left: 4px;
	width: 16px;
	height: 16px;
	line-height: 16px;
	text-align: center;
	border-radius: 50%;
	background: #f0b429;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	cursor: help;
}

.wrap.steadypost .steadypost-doc-cell {
	max-width: 320px;
	word-break: break-all;
	font-size: 12px;
}

.wrap.steadypost .steadypost-doc-cell.is-unresolved {
	color: var(--sp-danger);
}

/* --------------------------------------------------- spreadsheet upload */

.wrap.steadypost [hidden] {
	display: none !important;
}

.wrap.steadypost .steadypost-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 16px;
}

.wrap.steadypost .steadypost-step-box {
	padding: 14px 16px;
	background: var(--sp-surface);
	border: 1px solid var(--sp-border);
	border-radius: 12px;
}

.wrap.steadypost .steadypost-step-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
}

.wrap.steadypost .steadypost-step-box .description {
	margin: 0 0 10px;
}

.wrap.steadypost .steadypost-downloads {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin: 0;
}

.wrap.steadypost .steadypost-upload {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wrap.steadypost .steadypost-drop {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 64px;
	padding: 10px;
	border: 2px dashed var(--sp-input-border);
	border-radius: 10px;
	background: #fff;
	color: var(--sp-muted);
	text-align: center;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}

.wrap.steadypost .steadypost-drop:hover,
.wrap.steadypost .steadypost-drop.is-over {
	border-color: var(--sp-primary-soft);
	background: #f1f5ff;
}

.wrap.steadypost .steadypost-drop.has-file {
	border-style: solid;
	border-color: var(--sp-accent);
	color: #1f6a42;
	font-weight: 600;
}

/* The real input covers the zone, so clicking and dropping both just work. */
.wrap.steadypost .steadypost-drop input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.wrap.steadypost .steadypost-upload .button-primary {
	align-self: flex-start;
}

.wrap.steadypost .steadypost-file-current {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 16px 0 0;
	padding: 8px 12px;
	border-radius: 8px;
	background: #ecfaf3;
	color: #1f6a42;
}

.wrap.steadypost .steadypost-file-remove {
	margin-left: auto;
	color: var(--sp-danger);
}

@media (max-width: 1100px) {
	.wrap.steadypost .steadypost-steps {
		grid-template-columns: 1fr;
	}
}

.wrap.steadypost .steadypost-images {
	margin-top: 16px;
	padding: 10px 14px;
	border: 1px dashed var(--sp-border);
	border-radius: 10px;
}

.wrap.steadypost .steadypost-images summary,
.wrap.steadypost .steadypost-mapping-card summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--sp-primary);
}

.wrap.steadypost .steadypost-images-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

/* The mapping card is a <details>: its summary stands in for the title. */
.wrap.steadypost .steadypost-mapping-card {
	padding-top: 16px;
}

.wrap.steadypost .steadypost-mapping-card summary {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--sp-text);
	font-size: 1.3em;
	padding-bottom: 12px;
}

/* display:flex drops the native disclosure marker, so draw one. */
.wrap.steadypost .steadypost-mapping-card summary {
	list-style: none;
}

.wrap.steadypost .steadypost-mapping-card summary::-webkit-details-marker {
	display: none;
}

.wrap.steadypost .steadypost-mapping-card summary::before {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--sp-primary);
	border-bottom: 2px solid var(--sp-primary);
	transform: rotate(-45deg);
	transition: transform .15s ease;
	flex: 0 0 auto;
}

.wrap.steadypost .steadypost-mapping-card[open] summary::before {
	transform: rotate(45deg);
}

.wrap.steadypost .steadypost-mapping-card[open] summary {
	border-bottom: 2px solid #e5eaf6;
	margin-bottom: 4px;
}

.wrap.steadypost .steadypost-mapping-card summary .steadypost-chip {
	font-size: 11px;
}

/* -------------------------------------------------------- overview stats */

.wrap.steadypost .steadypost-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin: 16px 0 8px;
}

.wrap.steadypost .steadypost-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid var(--sp-border);
	border-radius: 14px;
	box-shadow: 0 8px 22px rgba(10, 30, 26, 0.06);
	min-width: 0;
}

.wrap.steadypost .steadypost-stat-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--sp-muted);
}

.wrap.steadypost .steadypost-stat-value {
	font-size: 30px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--sp-text);
	letter-spacing: -0.02em;
}

.wrap.steadypost .steadypost-stat-value.is-text {
	font-size: 20px;
	line-height: 1.5;
}

.wrap.steadypost .steadypost-stat-sub {
	font-size: 12px;
	color: var(--sp-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wrap.steadypost .steadypost-checklist {
	margin: 14px 0 4px 20px;
	line-height: 1.8;
}

@media (max-width: 1100px) {
	.wrap.steadypost .steadypost-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.wrap.steadypost .steadypost-stats {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------- history */

.wrap.steadypost .steadypost-table-scroll {
	overflow-x: auto;
	margin-top: 14px;
	border: 1px solid var(--sp-border);
	border-radius: 12px;
}

.wrap.steadypost .steadypost-runs {
	border: 0;
}

.wrap.steadypost .steadypost-runs thead th {
	background: linear-gradient(180deg, #eef2fb 0%, #e3ebf8 100%);
	color: #1e3a8a;
	font-weight: 600;
}

.wrap.steadypost .steadypost-runs td {
	vertical-align: middle;
}

.wrap.steadypost .steadypost-run-source {
	max-width: 260px;
	overflow-wrap: anywhere;
	color: var(--sp-muted);
}

.wrap.steadypost .steadypost-run-counts {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.wrap.steadypost .steadypost-run-actions {
	white-space: nowrap;
	text-align: right;
}

.wrap.steadypost .steadypost-pill,
.wrap.steadypost .steadypost-state {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: #eceff0;
	color: #5c6b68;
}

.wrap.steadypost .steadypost-pill.status-created,
.wrap.steadypost .steadypost-state.is-finished { background: #daf2e4; color: #1f6a42; }
.wrap.steadypost .steadypost-pill.status-updated,
.wrap.steadypost .steadypost-state.is-running { background: #e6edfb; color: var(--sp-primary); }
.wrap.steadypost .steadypost-pill.status-skipped,
.wrap.steadypost .steadypost-state.is-stopped { background: #fff4db; color: #8a6213; }
.wrap.steadypost .steadypost-pill.status-error { background: #f7dde0; color: #7f2a31; }

/* Destructive buttons, as in SteadyBook. */
.wrap.steadypost .button.button-link-delete {
	color: var(--sp-danger);
	border-color: #e3b7b4;
	background: #fff6f5;
}

.wrap.steadypost .button.button-link-delete:hover,
.wrap.steadypost .button.button-link-delete:focus {
	color: #fff;
	background: #c23e3e;
	border-color: #a52f2f;
}

.wrap.steadypost .steadypost-undo-list {
	margin: 14px 0 8px 20px;
	list-style: disc;
	line-height: 1.7;
}

.wrap.steadypost .steadypost-undo-list .is-warning {
	color: #8a6213;
}

/* ------------------------------------------------------- settings screen */

.wrap.steadypost .steadypost-required {
	color: var(--sp-danger);
}

.wrap.steadypost .steadypost-mapping th {
	width: 240px;
	font-weight: 600;
}

.wrap.steadypost .steadypost-format {
	max-width: 900px;
	margin-top: 12px;
	border: 1px solid var(--sp-border);
	border-radius: 10px;
	overflow: hidden;
}

.wrap.steadypost .steadypost-format.is-compact {
	max-width: 560px;
}

.wrap.steadypost .steadypost-format code {
	white-space: nowrap;
}

.wrap.steadypost .steadypost-auth-ok,
.wrap.steadypost .steadypost-auth-bad {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 0 8px;
	padding: 8px 12px;
	border-radius: 8px;
}

.wrap.steadypost .steadypost-auth-ok {
	background: #ecfaf3;
	color: #1f6a42;
}

.wrap.steadypost .steadypost-auth-bad {
	background: #fdf0f0;
	color: var(--sp-danger);
}

.wrap.steadypost .steadypost-setup {
	margin-top: 12px;
	max-width: 700px;
	padding: 10px 14px;
	background: var(--sp-surface);
	border: 1px solid var(--sp-border);
	border-radius: 10px;
}

.wrap.steadypost .steadypost-setup summary {
	cursor: pointer;
	color: var(--sp-primary);
	font-weight: 600;
}

.wrap.steadypost .steadypost-setup ol {
	margin: 10px 0 6px 18px;
	list-style: decimal;
}

.wrap.steadypost .steadypost-setup li {
	margin-bottom: 6px;
}

/* ------------------------------------------------------------ help screen */

.wrap.steadypost .steadypost-toc {
	max-width: 860px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 4px;
}

.wrap.steadypost .steadypost-toc a {
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--sp-border);
	border-radius: 999px;
	padding: 5px 14px;
	font-size: 13px;
	color: var(--sp-text);
}

.wrap.steadypost .steadypost-toc a:hover,
.wrap.steadypost .steadypost-toc a:focus {
	background: var(--sp-primary-soft);
	border-color: var(--sp-primary-soft);
	color: #fff;
}

.wrap.steadypost.steadypost-help .steadypost-card {
	max-width: 860px;
	padding: 4px 26px 20px;
	scroll-margin-top: 48px;
}

.wrap.steadypost.steadypost-help .steadypost-card h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
}

.wrap.steadypost .steadypost-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--sp-primary), var(--sp-primary-soft));
	color: #fff;
	font-size: 14px;
	font-weight: 600;
}

.wrap.steadypost.steadypost-help p,
.wrap.steadypost.steadypost-help li {
	line-height: 1.7;
	max-width: 75ch;
}

.wrap.steadypost code {
	background: #eef2fb;
	color: #1e3a8a;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 12.5px;
}

/* ------------------------------------------------------------- narrow */

@media (max-width: 782px) {
	.wrap.steadypost .steadypost-card {
		padding: 4px 14px 16px;
	}

	.wrap.steadypost .steadypost-log-detail {
		padding-left: 0;
	}

	.wrap.steadypost .steadypost-changes {
		margin-left: 0;
		max-width: 100%;
	}

	.wrap.steadypost .steadypost-picker-filter {
		margin-left: 0;
		width: 100%;
	}
}
