/* Accessible Forms admin stylesheet.
 * Ownership: shared Free + Pro tokens, controls, navigation and admin layouts.
 * Public preview content keeps its own checked appearance (assets/form.css).
 *
 * Sections: foundations + field content; settings; entries; delivery; appearance;
 * placement; management; guided editor; shared disclosures; navigation; supporting
 * controls; list surfaces; workflow feedback; private preview/test controls.
 * Edit a component's existing rule instead of appending a refinement layer.
 * State, responsive and forced-colors rules are intentional cascade variants.
 * See docs/CSS-ARCHITECTURE.md for load order and verification requirements.
 */
body {
	--af-ink: #1d2327;
	--af-muted: #50575e;
	--af-line: #dcdcde;
	--af-soft: #f6f7f7;
	--af-surface: #fff;
	--af-line-soft: #e8eaeb;
	--af-line-strong: #c3c4c7;
	--af-ok-ink: #145c43;
	--af-ok-soft: #eaf5ef;
	--af-warn-ink: #744500;
	--af-warn-soft: #fff3d8;
	--af-error-ink: #9b2427;
	--af-error-soft: #fcecec;
	--af-neutral-ink: #3c434a;
	--af-neutral-soft: #f0f0f1;
	/* Admin roles are separate from the public form's checked appearance settings. */
	--af-admin-text: 13px;
	--af-admin-meta: 13px;
	--af-admin-title: 14px;
	--af-admin-heading: 16px;
	--af-admin-page-title: 26px;
	--af-admin-radius-compact: 4px;
	--af-admin-radius-control: 6px;
	--af-admin-radius-workspace: 8px;
	--af-admin-radius-panel: 12px;
	--af-admin-space-1: 4px;
	--af-admin-space-2: 8px;
	--af-admin-space-3: 12px;
	--af-admin-space-4: 16px;
	--af-admin-space-5: 20px;
	--af-admin-space-6: 24px;
	--af-admin-space-8: 32px;
	--af-admin-touch-target: 44px;
	/* Follow the user's admin color scheme; fall back to classic WordPress blue. */
	--af-accent: var(--wp-admin-theme-color, #2271b1);
	--af-accent-strong: var(--wp-admin-theme-color-darker-20, #135e96);
	--af-accent-soft: rgba(var(--wp-admin-theme-color--rgb, 34, 113, 177), 0.07);
	--af-accent-line: rgba(var(--wp-admin-theme-color--rgb, 34, 113, 177), 0.32);
}
.af-builder,
.af-settings,
.af-entry,
.af-entries {
	color: var(--af-ink, #1d2327);
}
:is(.af-builder, .af-settings, .af-tools, .af-entry, .af-entries, .af-placement) * {
	box-sizing: border-box;
}
.af-builder [hidden],
.af-settings [hidden],
.af-form-picker [hidden] {
	display: none !important;
}
.af-builder h3,
.af-settings h2 {
	text-wrap: balance;
}
.af-builder p,
.af-settings p {
	max-width: 72ch;
}
.af-muted,
.af-builder .description,
.af-settings .description {
	color: var(--af-muted);
	font-size: var(--af-admin-text);
	line-height: 1.6;
}
.af-notice-list {
	list-style: disc;
	margin-inline-start: 2em;
}
.af-builder {
	padding: var(--af-admin-space-2) var(--af-admin-space-3) var(--af-admin-space-3);
}
.af-builder-intro {
	padding: var(--af-admin-space-3) 0 22px;
}
.af-builder-intro h3 {
	font-size: 18px;
	margin: 0 0 var(--af-admin-space-2);
}
.af-builder-intro p {
	color: var(--af-muted);
	margin: 0;
	line-height: 1.65;
}
.af-embed {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	background: var(--af-accent-soft);
	padding: 18px;
	border-radius: var(--af-admin-radius-control);
	margin-bottom: var(--af-admin-space-6);
}
.af-embed p {
	margin: 5px 0 0;
}
.af-embed code {
	background: white;
	border: 1px solid var(--af-accent-line);
	padding: var(--af-admin-space-2) 10px;
	overflow-wrap: anywhere;
}
.af-editor-section {
	border-top: 1px solid var(--af-line);
	padding: var(--af-admin-space-6) 0;
}
.af-editor-section h3 {
	font-size: 15px;
	margin: 0;
}
.af-section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--af-admin-space-3);
	flex-wrap: wrap;
	margin-bottom: var(--af-admin-space-4);
}
.af-builder .form-table {
	margin-top: var(--af-admin-space-2);
}
.af-builder .form-table th {
	width: 170px;
	padding: 18px var(--af-admin-space-5) 18px 0;
}
.af-builder .form-table td {
	padding: 14px 0;
}
.af-builder input[type='text'],
.af-builder select,
.af-builder textarea {
	width: 100%;
	max-width: 100%;
	min-height: 38px;
	border-color: #8c8f94;
	border-radius: var(--af-admin-radius-compact);
}
.af-builder .form-table input {
	max-width: 580px;
}
.af-builder .form-table select {
	max-width: 320px;
}
.af-fields {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.af-field-number {
	color: var(--af-muted);
	font-size: var(--af-admin-meta);
	font-variant-numeric: tabular-nums;
}
.af-field-title {
	font-size: var(--af-admin-title);
	font-weight: 600;
	overflow-wrap: anywhere;
	min-width: 0;
}
.af-field-kind {
	font-size: var(--af-admin-meta);
	color: var(--af-muted);
}
.af-field-required {
	border: 1px solid var(--af-line);
	border-radius: var(--af-admin-radius-compact);
	font-size: var(--af-admin-meta);
	padding: 1px 6px;
	white-space: nowrap;
	color: var(--af-muted);
}
.af-field-body {
	padding: var(--af-admin-space-5);
}
.af-field-body p {
	margin: 0 0 18px;
	max-width: none;
}
.af-field-body label:not(.af-required-control label) {
	display: block;
	font-weight: 600;
	margin-bottom: 7px;
}
.af-field-body .description {
	display: block;
	margin-top: 6px;
}
.af-field-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 18px;
}
.af-field-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--af-admin-space-3);
	border-top: 1px solid var(--af-line);
	padding-top: var(--af-admin-space-4);
	margin-top: var(--af-admin-space-2);
}
.af-builder .button,
.af-builder .button-link {
	min-height: 36px;
}
.af-builder .button[aria-disabled='true'] {
	color: #646970;
	cursor: default;
	background: var(--af-soft);
}
.af-builder .af-remove-field {
	color: #b32d2e;
	text-decoration: none;
}
.af-builder .af-remove-field:hover {
	text-decoration: underline;
}
.af-builder-actions {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: var(--af-admin-space-3) 0 28px;
}
/* A full-width drop-in slot under the last field reads as "add the next one here". */
.af-builder #af-add-field {
	flex: 1;
	justify-content: center;
	min-height: 44px;
	border-style: dashed;
	background: var(--af-surface);
	font-weight: 600;
}
.af-builder #af-add-field::before {
	content: '+';
	/* Decorative: screen readers hear only "Add field". */
	content: '+' / '';
	margin-inline-end: 6px;
	font-size: 18px;
	line-height: 1;
}
.af-builder :focus-visible,
.af-settings :focus-visible,
.af-entry :focus-visible {
	outline: 2px solid var(--af-accent);
	outline-offset: 3px;
}
/* Settings */
.af-settings {
	max-width: none;
}
.af-page-description {
	color: var(--af-muted);
	font-size: var(--af-admin-title);
	line-height: 1.6;
	margin: var(--af-admin-space-2) 0 var(--af-admin-space-6);
}
.af-settings-panel {
	background: var(--af-surface);
	padding: 28px var(--af-admin-space-8);
	border: 1px solid var(--af-line);
	border-top: 0;
}
.af-settings-panel h2 {
	font-size: 18px;
	margin: 0 0 10px;
}
/* Hidden form fields come first, so the first heading is found by type, not position. */
.af-settings-panel h2:not(:first-of-type) {
	border-top: 1px solid var(--af-line);
	padding-top: 28px;
	margin-top: 28px;
}
/* The quick-start section already ends with a divider. */
.af-settings-panel .af-quick-start + h2:not(:first-of-type) {
	border-top: 0;
	padding-top: 0;
	margin-top: 0;
}
.af-settings .form-table {
	margin-top: var(--af-admin-space-4);
}
.af-settings .form-table th {
	width: 210px;
}
.af-settings .form-table td {
	padding-inline-end: 0;
}
.af-settings .regular-text {
	width: min(100%, 400px);
	min-height: 38px;
}
.af-settings textarea {
	max-width: 100%;
}
.af-settings .submit {
	margin-bottom: 0;
	padding-bottom: 0;
}
.af-status-table {
	width: 100%;
	border-collapse: collapse;
	margin: var(--af-admin-space-5) 0 28px;
	border: 1px solid var(--af-line);
	box-shadow: none;
}
.af-status-table tr + tr {
	border-top: 1px solid var(--af-line);
}
.af-status-table th {
	width: 180px;
	text-align: start;
	padding: 18px;
	vertical-align: top;
	background: var(--af-soft);
}
.af-status-table td {
	padding: 18px;
}
.af-status-table .description {
	margin: 6px 0 0;
}
.af-quick-start {
	padding: 0 0 28px;
	border-bottom: 1px solid var(--af-line);
	margin-bottom: 28px;
}
.af-quick-start ol {
	padding-inline-start: 22px;
	line-height: 1.8;
	margin-bottom: var(--af-admin-space-5);
}
.af-service-note {
	padding: var(--af-admin-space-4) 18px;
	border: 1px solid var(--af-accent-line);
	border-radius: var(--af-admin-radius-compact);
	background: var(--af-accent-soft);
	line-height: 1.65;
}
.af-code {
	display: block;
	padding: 18px;
	background: var(--af-soft);
	border: 1px solid var(--af-line);
	border-radius: var(--af-admin-radius-compact);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	font-size: var(--af-admin-meta);
	line-height: 1.8;
}
.af-settings details > summary {
	cursor: pointer;
	padding: var(--af-admin-space-2) 0;
	font-weight: 600;
}
.af-test-email {
	margin-top: var(--af-admin-space-6);
	background: white;
	border: 1px solid var(--af-line);
	padding: 28px var(--af-admin-space-8);
}
/* Entries */
.af-badge {
	display: inline-block;
	padding: 2px var(--af-admin-space-2);
	border-radius: var(--af-admin-radius-compact);
	font-size: var(--af-admin-meta);
	line-height: 1.65;
	white-space: nowrap;
}
.af-badge--ok {
	color: var(--af-ok-ink);
	background: var(--af-ok-soft);
}
.af-badge--warn {
	color: var(--af-warn-ink);
	background: var(--af-warn-soft);
}
.af-badge--spam,
.af-badge--error {
	color: var(--af-error-ink);
	background: var(--af-error-soft);
}
.af-badge--info {
	color: var(--af-accent-strong);
	background: var(--af-accent-soft);
	box-shadow: inset 0 0 0 1px var(--af-accent-line);
}
.af-badge--neutral {
	color: var(--af-neutral-ink);
	background: var(--af-neutral-soft);
}
/* In narrow table columns a tag wraps instead of spilling out of its cell. */
.wp-list-table .af-badge {
	white-space: normal;
}
/* Unread rows: a bar at the start edge and a bold name, rather than a tinted row. */
tr.af-unread th.check-column {
	box-shadow: inset 3px 0 0 var(--af-accent);
}
tr.af-unread .row-title {
	font-weight: 700;
}
.af-unread-label {
	margin-inline-start: 6px;
	vertical-align: 1px;
}
.af-entry-precis,
.af-cell-meta {
	display: block;
	margin-top: var(--af-admin-space-1);
	color: var(--af-muted);
	font-size: var(--af-admin-text);
	line-height: 1.5;
}
.af-cell-meta {
	font-size: var(--af-admin-meta);
}
.af-entries .column-summary .row-title {
	font-size: var(--af-admin-title);
}
.af-entries .wp-list-table td {
	padding-block: var(--af-admin-space-4);
}
.af-entries .column-summary {
	width: 45%;
	overflow-wrap: anywhere;
}
.af-entries .no-items td {
	padding: 48px var(--af-admin-space-6);
	text-align: center;
}
.af-empty-title {
	display: block;
	font-size: 16px;
	margin-bottom: var(--af-admin-space-2);
}
/* Header: title, then the form and time; newer/older links sit at the end of the row. */
.af-entry__nav {
	display: flex;
	gap: var(--af-admin-space-2);
	float: right;
	float: inline-end;
	flex-wrap: wrap;
	margin: 18px 0 0;
}
.af-entry__subtitle {
	clear: left;
	clear: inline-start;
	margin: var(--af-admin-space-1) 0 0;
	color: var(--af-muted);
	font-size: var(--af-admin-title);
}
.af-entry__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
	gap: var(--af-admin-space-6);
	align-items: start;
	margin-top: var(--af-admin-space-5);
}
.af-entry .postbox {
	border: 1px solid var(--af-line);
	box-shadow: none;
	border-radius: var(--af-admin-radius-panel);
}
.af-entry .postbox .hndle {
	padding: var(--af-admin-space-5) var(--af-admin-space-6);
	border-bottom: 1px solid var(--af-line);
	margin: 0;
	font-size: 16px;
	font-weight: 600;
}
.af-entry .postbox .inside {
	padding: var(--af-admin-space-5) var(--af-admin-space-6);
	margin: 0;
}
.af-entry__fields {
	margin: 0;
}
.af-entry__fields dt {
	font-weight: 600;
	color: var(--af-ink);
	margin-top: var(--af-admin-space-6);
	font-size: var(--af-admin-text);
}
.af-entry__fields dt:first-child {
	margin-top: 0;
}
.af-entry__fields dd {
	margin: var(--af-admin-space-2) 0 0;
	padding-bottom: var(--af-admin-space-6);
	border-bottom: 1px solid var(--af-neutral-soft);
	overflow-wrap: anywhere;
	font-size: 16px;
	line-height: 1.65;
	max-width: 75ch;
}
.af-entry__fields dd:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}
.af-entry__meta {
	width: 100%;
	border-collapse: collapse;
}
.af-entry__meta th {
	text-align: start;
	font-weight: 600;
	padding: 7px var(--af-admin-space-3) 7px 0;
	vertical-align: top;
}
.af-entry__meta td {
	padding: 7px 0;
	overflow-wrap: anywhere;
}
.af-entry__actions p {
	margin: 0 0 var(--af-admin-space-3);
}
.af-entry__actions p:last-child {
	margin-bottom: 0;
}
.af-entry__actions p:has(.button-link-delete) {
	margin-top: var(--af-admin-space-4);
	padding-top: var(--af-admin-space-3);
	border-top: 1px solid var(--af-line);
}
.af-entry__actions p:has(.button-link-delete) + .description {
	margin-top: var(--af-admin-space-1);
}
.af-entry .button-link-delete {
	color: #b32d2e;
}
.af-block-preview {
	pointer-events: none;
}
@media (max-width: 1100px) {
	.af-field-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}
}
@media (max-width: 782px) {
	.af-builder {
		padding: var(--af-admin-space-1) 0;
	}
	.af-builder .form-table th {
		width: auto;
		padding: 14px 0 var(--af-admin-space-1);
	}
	.af-builder .form-table td {
		padding: var(--af-admin-space-1) 0 14px;
	}
	.af-field-body {
		padding: var(--af-admin-space-4);
	}
	.af-field-actions {
		align-items: start;
		flex-wrap: wrap;
	}
	.af-settings-panel,
	.af-test-email {
		padding: 22px 18px;
	}
	.af-status-table th,
	.af-status-table td {
		display: block;
		width: auto;
	}
	.af-status-table th {
		padding-bottom: var(--af-admin-space-2);
		background: transparent;
	}
	.af-status-table td {
		padding-top: 0;
	}
	.af-entry__grid {
		grid-template-columns: 1fr;
	}
	.af-builder button,
	.af-builder .button,
	.af-builder .button-link,
	.af-settings input:not([type='radio']):not([type='checkbox']),
	.af-settings select {
		min-height: 44px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.af-builder *,
	.af-settings *,
	.af-entry * {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
@media (forced-colors: active) {
	.af-field-row,
	.af-badge {
		border: 1px solid CanvasText;
	}
	.af-builder :focus-visible,
	.af-settings :focus-visible {
		outline-color: Highlight;
	}
}
/* Delivery settings use two clear groups, with one control per recipient. */
.af-section-description {
	color: var(--af-muted);
	margin: 10px 0 var(--af-admin-space-6);
	line-height: 1.6;
}
.af-delivery-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 36px;
}
.af-delivery-grid h4 {
	margin: 0 0 22px;
	font-size: var(--af-admin-title);
}
.af-delivery-grid section {
	min-width: 0;
}
.af-delivery-grid section + section {
	border-inline-start: 1px solid var(--af-line);
	padding-inline-start: var(--af-admin-space-8);
}
.af-recipients {
	border: 0;
	margin: 0 0 var(--af-admin-space-6);
	padding: 0;
	min-inline-size: 0;
}
.af-recipients legend,
.af-setting > label {
	display: block;
	font-weight: 600;
	margin-bottom: var(--af-admin-space-2);
	padding: 0;
}
.af-recipients > .description {
	margin: 0 0 var(--af-admin-space-4);
}
.af-recipient-row {
	display: flex;
	gap: var(--af-admin-space-3);
	align-items: end;
	margin-bottom: var(--af-admin-space-3);
}
.af-recipient-row > div {
	flex: 1;
	min-width: 0;
}
.af-recipient-row label {
	display: block;
	font-size: var(--af-admin-meta);
	color: var(--af-muted);
	margin-bottom: 6px;
}
.af-builder .af-recipient-row input {
	width: 100%;
	max-width: 100%;
	min-height: 40px;
}
.af-builder input::placeholder {
	color: #646970;
	opacity: 1;
}
.af-recipient-row button {
	color: #b32d2e;
	flex-shrink: 0;
	padding-block: 10px;
	text-decoration: none;
}
.af-recipient-row button:hover {
	text-decoration: underline;
}
.af-setting {
	margin: 0 0 22px;
}
.af-setting .description {
	display: block;
	margin-top: var(--af-admin-space-2);
}
.af-confirmation-preview {
	padding: var(--af-admin-space-4) 18px;
	background: var(--af-soft);
	border-radius: var(--af-admin-radius-compact);
}
.af-confirmation-preview p {
	margin: var(--af-admin-space-2) 0 0;
	line-height: 1.6;
	overflow-wrap: anywhere;
}
.af-editor-links {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 var(--af-admin-space-6);
}
.af-autofill-hint {
	background: var(--af-accent-soft);
	padding: 10px var(--af-admin-space-3);
	border-radius: var(--af-admin-radius-compact);
}
@media (max-width: 1280px) {
	.af-delivery-grid {
		grid-template-columns: 1fr;
		gap: var(--af-admin-space-6);
	}
	.af-delivery-grid section + section {
		border-inline-start: 0;
		border-top: 1px solid var(--af-line);
		padding: var(--af-admin-space-6) 0 0;
	}
}
/* Appearance controls stay compact; the preview uses the public form stylesheet. */
.af-appearance-grid {
	display: grid;
	grid-template-columns: minmax(230px, 1fr) minmax(250px, 1fr);
	gap: var(--af-admin-space-8);
	align-items: start;
}
.af-appearance-controls,
.af-appearance-result {
	min-width: 0;
}
.af-preview-label {
	color: var(--af-muted);
	margin: 0 0 var(--af-admin-space-3);
	font-weight: 600;
}
.af-appearance-preview.af-wrap {
	margin: 0;
	padding: var(--af-admin-space-6);
	border: 1px solid var(--af-border);
}
.af-appearance-preview .af-heading {
	font-size: 1.3em;
}
.af-appearance-preview.af-wrap input.af-input {
	border-color: var(--af-border);
	border-radius: var(--af-radius);
	min-height: 44px;
}
.af-builder .af-appearance-preview :focus-visible {
	outline-color: var(--af-text);
}
.af-contrast-panel {
	margin: 18px 0 14px;
}
.af-contrast-panel > p {
	font-weight: 600;
	line-height: 1.6;
	margin: 0 0 10px;
}
.af-contrast-panel ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.af-contrast-panel li {
	font-size: var(--af-admin-meta);
	line-height: 1.65;
	margin: 0 0 6px;
}
.af-contrast-fail {
	color: #9b2427;
	font-weight: 600;
}
@media (max-width: 1180px) {
	.af-appearance-grid {
		grid-template-columns: 1fr;
		gap: var(--af-admin-space-6);
	}
}
/* Placement keeps page selection and creation in the standard admin workflow. */
.af-placement {
	max-width: none;
	color: var(--af-ink);
}
.af-placement-section {
	margin-top: var(--af-admin-space-6);
	background: var(--af-surface);
	border: 1px solid var(--af-line);
	border-radius: var(--af-admin-radius-control);
	padding: 26px 30px;
}
.af-placement-section h2 {
	margin: 0 0 10px;
	font-size: 18px;
}
.af-placement-section > p {
	max-width: 72ch;
	line-height: 1.7;
	color: var(--af-muted);
}
.af-page-search,
.af-create-page {
	margin: var(--af-admin-space-6) 0 0;
}
.af-page-search label,
.af-create-page label {
	display: block;
	font-weight: 600;
	margin-bottom: var(--af-admin-space-2);
}
.af-page-search > div,
.af-create-page > div {
	display: flex;
	gap: 10px;
	align-items: center;
}
.af-page-search input[type='search'],
.af-create-page input[type='text'] {
	width: min(100%, 420px);
	min-height: 40px;
}
.af-placement .button {
	min-height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: normal;
	text-align: center;
}
.af-page-choices {
	margin: var(--af-admin-space-6) 0 0;
}
.af-page-choices li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--af-admin-space-5);
	padding: 18px 0;
	margin: 0;
	border-top: 1px solid var(--af-line);
}
.af-page-choices strong {
	display: block;
	font-size: var(--af-admin-title);
	overflow-wrap: anywhere;
}
.af-page-choices .af-muted {
	display: block;
	margin-top: 6px;
}
.af-page-choices .button {
	flex-shrink: 0;
}
.af-page-pagination {
	display: flex;
	gap: var(--af-admin-space-3);
	margin-top: 18px;
}
.af-placement-empty {
	padding: var(--af-admin-space-5) 0;
}
.af-placement :focus-visible {
	outline: 2px solid var(--af-accent);
	outline-offset: 3px;
}
@media (max-width: 600px) {
	.af-placement-section {
		padding: var(--af-admin-space-5) var(--af-admin-space-4);
	}
	.af-page-search > div,
	.af-create-page > div,
	.af-page-choices li {
		align-items: stretch;
		flex-direction: column;
	}
	.af-placement .button {
		min-height: 44px;
	}
}
.af-protection-options {
	border: 0;
	padding: 0;
	margin: var(--af-admin-space-6) 0;
	max-width: 760px;
}
.af-protection-options legend {
	font-weight: 600;
	margin-bottom: var(--af-admin-space-3);
}
.af-protection-option {
	display: flex;
	align-items: flex-start;
	gap: var(--af-admin-space-3);
	padding: 18px;
	margin-block: 10px;
	border: 1px solid #8c8f94;
	border-radius: var(--af-admin-radius-compact);
	background: var(--af-surface);
	cursor: pointer;
}
.af-protection-option:has(input:checked) {
	border-color: var(--af-accent);
	box-shadow: inset 3px 0 var(--af-accent);
}
.af-protection-option input {
	flex: none;
	margin: 3px 0 0 !important;
}
.af-protection-description {
	display: block;
	margin-top: 5px;
	color: var(--af-muted);
	line-height: 1.6;
}
.af-settings [data-af-spam-panel] {
	max-width: 900px;
}

/* Form lifecycle and tools: native controls, clear groups and modest density. */
.af-editor-nav {
	display: flex;
	flex-wrap: wrap;
	gap: var(--af-admin-space-1);
	padding: 0 0 var(--af-admin-space-4);
	border-bottom: 1px solid var(--af-line);
	margin-bottom: var(--af-admin-space-5);
}
.af-editor-nav a {
	padding: var(--af-admin-space-2) var(--af-admin-space-3);
	text-decoration: none;
	border-radius: var(--af-admin-radius-compact);
}
.af-editor-nav a:hover {
	background: var(--af-neutral-soft);
}
.af-publish-state {
	padding: var(--af-admin-space-5);
	background: var(--af-accent-soft);
	border: 1px solid #b5cbe3;
	border-radius: var(--af-admin-radius-control);
	margin: var(--af-admin-space-5) 0;
}
.af-options-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--af-admin-space-2) var(--af-admin-space-6);
}
.af-tools-content {
	max-width: none;
	background: var(--af-surface);
	padding: var(--af-admin-space-6);
	border: 1px solid var(--af-line);
	border-top: 0;
	box-sizing: border-box;
}
.af-tools-content > form {
	max-width: 660px;
}
/* Native select menus can size to long options on Firefox/Linux. */
.af-tools select {
	min-width: 0;
	max-width: 100%;
}
.af-tools button.button {
	max-width: 100%;
	height: auto;
	padding-block: var(--af-admin-space-2);
	line-height: 1.4;
	white-space: normal;
	overflow-wrap: anywhere;
}
.af-tools .af-setting input:not([type='checkbox']),
.af-tools .af-setting textarea,
.af-tools .af-setting select,
.af-editor-section .af-setting input:not([type='checkbox']),
.af-editor-section .af-setting textarea,
.af-editor-section .af-setting select {
	width: 100%;
	max-width: 100%;
	min-height: 36px;
}
.af-tools .af-setting label {
	display: block;
	font-weight: 600;
	margin-bottom: var(--af-admin-space-2);
}
.af-inline-choice {
	display: inline-block;
	margin: 6px 18px 6px 0;
}
.af-field-extra h4 {
	font-size: var(--af-admin-text);
	margin: var(--af-admin-space-5) 0 var(--af-admin-space-3);
}
.af-fields-toolbar,
.af-tool-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: var(--af-admin-space-4) 0;
}
.af-fields-toolbar input {
	flex: 1 1 180px;
	min-width: 0;
}
.af-tool-actions form p.submit {
	margin: 0;
	padding: 0;
}
.af-guide li {
	padding: var(--af-admin-space-2) 0;
	max-width: 72ch;
}
.af-tools details > summary {
	padding: var(--af-admin-space-3) 0;
	cursor: pointer;
	font-weight: 600;
}
.af-tools-content th {
	width: 40%;
}
/* Populated reports can contain long titles, paths and translated headings.
   Let table cells reduce their intrinsic width without hiding any content. */
.af-tools-content .widefat th,
.af-tools-content .widefat td,
.af-tools-content .widefat a {
	overflow-wrap: anywhere;
}
.af-tools-content .widefat thead th,
.af-tools-content .widefat thead ~ tbody th {
	width: auto;
}
.af-tools input:focus-visible,
.af-tools button:focus-visible,
.af-tools a:focus-visible,
.af-builder button:focus-visible {
	outline: 2px solid var(--af-accent);
	outline-offset: 3px;
}
.af-entry-workflow {
	margin-top: var(--af-admin-space-6);
}
/* Each part of the entry screen is a card, matching the Submission box. */
.af-entry__main .af-entry-workflow {
	margin-top: var(--af-admin-space-5);
	padding: 0 var(--af-admin-space-6) var(--af-admin-space-5);
	background: var(--af-surface);
	border: 1px solid var(--af-line);
	border-radius: var(--af-admin-radius-control);
}
.af-entry__main .af-entry-workflow > h2 {
	margin: 0 -24px var(--af-admin-space-5);
	padding: 18px var(--af-admin-space-6);
	border-bottom: 1px solid var(--af-line);
	font-size: var(--af-admin-title);
	line-height: 1.4;
}
.af-entry__main > .postbox {
	margin-bottom: 0;
}
/* Sidebar actions: one tidy column, with Trash apart as a destructive link. */
.af-entry__actions .button {
	width: 100%;
	height: auto;
	justify-content: center;
	padding-block: 5px;
	text-align: center;
	/* Long actions such as "Accept and notify original recipients" wrap in the sidebar. */
	white-space: normal;
	line-height: 1.4;
}
.af-entry__actions .button-link-delete {
	padding: var(--af-admin-space-1) 0;
	text-decoration: underline;
}
.af-entry-workflow textarea,
.af-entry-workflow select,
.af-entry-workflow input[type='date'] {
	width: 100%;
}
.af-entry-note {
	padding: var(--af-admin-space-3) 0;
	border-top: 1px solid var(--af-line);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
/* Replies sent to the visitor read differently from internal notes. */
.af-entry-note--reply {
	padding-inline-start: var(--af-admin-space-3);
	border-inline-start: 3px solid var(--af-accent);
	background: var(--af-accent-soft);
}
.af-entry-note__meta {
	display: block;
	color: var(--af-muted);
	font-weight: 400;
	white-space: normal;
}
.af-entry-history {
	width: 100%;
	border-collapse: collapse;
}
.af-entry-history th,
.af-entry-history td {
	text-align: start;
	padding: 10px;
	border-bottom: 1px solid var(--af-line);
	overflow-wrap: anywhere;
}
@media (max-width: 782px) {
	.af-options-grid {
		grid-template-columns: 1fr;
	}
	.af-tools-content {
		padding: var(--af-admin-space-4);
	}
	.af-editor-nav {
		gap: 0;
	}
	.af-entry-history {
		display: block;
		overflow-x: auto;
	}
}
[dir='rtl'] .af-inline-choice {
	margin-inline: 0 18px;
}

/* Guided setup: one task at a time, with native controls and a stable action bar. */
.af-guided-editor #poststuff #post-body {
	margin-right: 0;
	margin-inline-end: 0;
}
/* Native extension metaboxes remain reachable; only publishing moves into Review. */
.af-guided-editor #post-body.columns-2 #postbox-container-1 {
	float: none;
	clear: both;
	width: 100%;
	margin: 0;
}
.af-guided-editor #post-body.columns-2 #side-sortables {
	min-height: 0;
}
.af-guided-editor #side-sortables:empty {
	display: none;
}
.af-guided-editor #poststuff {
	max-width: none;
}
.af-guided-editor #accessible-forms-schema > .postbox-header {
	display: none;
}
.af-guided-editor #accessible-forms-schema > .inside {
	margin: 0;
	padding: 0;
}
.af-guided-editor .af-builder {
	padding: 0;
	max-width: none;
}
/* The server selects the first panel before footer scripts arrive. A normal
   anchor still opens any step if enhancement fails; no-JS shows every section. */
.js .af-builder:not([data-af-flow-ready]) > .af-step-panel:not([data-af-current]) {
	display: none;
}
.js .af-builder:not([data-af-flow-ready]):has(> .af-step-panel:target) > .af-step-panel {
	display: none;
}
.js .af-builder:not([data-af-flow-ready]):has(> .af-step-panel:target) > .af-step-panel:target {
	display: block;
}
.js .af-builder:not([data-af-flow-ready]):not([data-af-current-step='review']) #af-flow-publish {
	display: none;
}
.js .af-builder:not([data-af-flow-ready]):has(> .af-step-panel:not(#af-step-review):target) #af-flow-publish {
	display: none;
}
.js .af-builder:not([data-af-flow-ready]):has(> #af-step-review:target) #af-flow-publish {
	display: inline-flex;
}
.af-flow-heading {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--af-admin-space-2);
	padding: var(--af-admin-space-4) 28px 0;
}
.af-flow-heading p {
	color: var(--af-muted);
	line-height: 1.6;
	margin: 0;
	max-width: 68ch;
}
.af-flow-status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--af-admin-space-2) var(--af-admin-space-3);
}
.af-flow-heading .af-save-status {
	margin: 0;
}
.af-style-state-control {
	display: flex;
	align-items: center;
	gap: var(--af-admin-space-2);
	flex-wrap: wrap;
}
.af-style-state-control[hidden] { display: none; }
.af-subject-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--af-admin-space-2);
	margin-top: var(--af-admin-space-2);
}
.af-subject-tools select { min-width: 0; max-width: 100%; flex: 1 1 180px; }
.af-subject-tools label { margin: 0; }
.af-retention-control select { max-width: 100%; }
.af-retention-control label { display: block; margin-bottom: var(--af-admin-space-1); }
.af-retention-control .description,
.af-retention-control .af-retention-days .description { display: block; margin-top: var(--af-admin-space-2); }
.af-retention-days { margin-top: var(--af-admin-space-3); }
.af-builder .af-retention-days input[type='number'] { width: 7em; max-width: 100%; }
.af-entry-technical { margin-top: var(--af-admin-space-4); }
.af-entry-technical > summary {
	cursor: pointer;
	padding-block: var(--af-admin-space-2);
	border-radius: var(--af-admin-radius-control);
}
.af-subject-tools[hidden] { display: none; }
.af-activity-table td { overflow-wrap: anywhere; }
.af-table-scroll { max-width: 100%; overflow-x: auto; }
.af-table-scroll table { min-width: 640px; }
.af-table-scroll-help { display: none; }
.af-flow-state {
	flex-shrink: 0;
	font-size: var(--af-admin-meta);
	font-weight: 600;
	color: #3c434a;
	padding: 6px 10px;
	background: var(--af-neutral-soft);
	border-radius: var(--af-admin-radius-compact);
}
.af-flow-state[data-state='published'] {
	color: #145c43;
	background: #eaf5ef;
	border: 1px solid #a8cbb9;
}
.af-flow-state[data-state='draft'] {
	color: #744500;
	background: #fff3d8;
	border: 1px solid #d4b579;
}
.af-step-panel {
	padding: 28px;
}
.af-step-panel[hidden],
.af-flow-footer [hidden],
.af-builder [hidden] {
	display: none !important;
}
.af-step-title {
	font-size: 21px !important;
	line-height: 1.3;
	margin: 0 0 22px !important;
	/* WordPress pads every h2 in the edit screen; the title aligns with the content. */
	padding: 0 !important;
	font-weight: 600;
}
.af-step-title:focus {
	outline: none;
}
.af-step-panel > .af-editor-section {
	border-top: 1px solid var(--af-line);
	margin: var(--af-admin-space-6) 0 0;
	padding: var(--af-admin-space-5) 0 0;
}
.af-step-panel > .af-editor-section:first-of-type {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}
.af-step-panel .form-table th {
	width: 145px;
	padding: 10px var(--af-admin-space-4) 10px 0;
}
.af-step-panel .form-table td {
	padding: 10px 0;
}
.af-step-panel .form-table input {
	width: 100%;
}
.af-step-panel .af-delivery,
.af-step-panel .af-appearance {
	margin-top: 0;
	border-top: 0;
	padding-top: 0;
}
.af-review-main > h3 {
	display: none;
}
.af-flow-footer {
	display: flex;
	align-items: center;
	gap: var(--af-admin-space-3);
	padding: 18px 28px;
	border-top: 1px solid var(--af-line);
	background: var(--af-soft);
}
.af-flow-footer .button {
	min-height: 40px;
	padding-inline: var(--af-admin-space-4);
}
.af-flow-footer .af-step-count {
	margin-inline-end: auto;
	color: var(--af-muted);
	font-size: var(--af-admin-meta);
}
/* Native navigation can change sections without updating server step guidance.
   Keep save/publish available and omit guidance that no longer matches the view. */
.no-js .af-flow-footer :is(#af-step-back, #af-step-next, .af-step-count),
.js .af-builder:not([data-af-flow-ready]):has(> .af-step-panel:target:not([data-af-current])) .af-flow-footer :is(#af-step-back, #af-step-next, .af-step-count) {
	display: none;
}
.af-starter-picker {
	border: 1px solid var(--af-line-strong);
	border-radius: 5px;
	padding: 14px 18px;
	background: var(--af-soft);
	margin-bottom: 22px;
}
.af-starter-picker summary,
.af-heading-options summary,
.af-native-publishing > summary {
	cursor: pointer;
	font-weight: 600;
	min-height: 24px;
}
.af-starter-options {
	display: flex;
	flex-wrap: wrap;
	gap: var(--af-admin-space-2);
	margin: 14px 0;
}
.af-heading-options {
	margin-top: var(--af-admin-space-3);
	color: var(--af-muted);
}
.af-heading-options > label {
	display: block;
	margin-top: 14px;
	margin-bottom: var(--af-admin-space-2);
	font-weight: 600;
}
.af-preview-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: var(--af-admin-space-5) 0;
}
.af-preview-toolbar label {
	margin: 0;
	font-weight: 600;
}
.af-preview-setting { display: flex; flex-wrap: wrap; align-items: center; gap: var(--af-admin-space-2); }
/* WordPress styles every h2 in the edit screen; previews keep the public form's heading. */
#poststuff :is(#af-live-preview, .af-appearance-preview) .af-wrap .af-heading,
#poststuff :is(#af-live-preview, .af-appearance-preview) .af-heading {
	padding: 0;
	font-size: 1.5em;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 1em;
}
/* The width and state menus stay compact beside their labels, on one row. */
.af-builder .af-preview-toolbar select {
	width: auto;
	min-width: 10em;
	margin: 0;
}
.af-review-manual {
	margin-top: var(--af-admin-space-6);
	padding: var(--af-admin-space-4) var(--af-admin-space-5);
	border: 1px solid var(--af-line);
	border-radius: var(--af-admin-radius-control);
}
.af-review-author { margin-top: 0; }
.af-builder details.af-review-instructions,
.af-builder details.af-review-instructions[open] {
	border: 0;
	padding: 0;
	margin-block: var(--af-admin-space-2) 0;
	background: transparent;
}
.af-builder details.af-review-instructions > summary,
.af-builder details.af-review-instructions[open] > summary {
	cursor: pointer;
	min-height: 36px;
	width: fit-content;
	max-width: 100%;
	margin: 0;
	padding: var(--af-admin-space-2);
	border: 0;
	border-radius: var(--af-admin-radius-control);
	background: transparent;
	font-weight: 600;
}
.af-builder details.af-review-instructions[open] > summary { margin-bottom: var(--af-admin-space-2); }
.af-review-testing {
	margin-top: var(--af-admin-space-6);
	padding-top: var(--af-admin-space-6);
	border-top: 1px solid var(--af-line);
}
.af-review-testing > h4,
.af-review-next > h4 {
	font-size: var(--af-admin-heading);
	margin: 0 0 var(--af-admin-space-3);
}
.af-review-testing :is(.af-theme-preview, .af-test-record) {
	border: 0;
	border-top: 1px solid var(--af-line);
	border-radius: 0;
	padding: var(--af-admin-space-4) 0 0;
}
.af-review-manual h4 {
	margin: 0 0 var(--af-admin-space-2);
	font-size: var(--af-admin-title);
}
.af-review-manual p {
	margin: 0 0 var(--af-admin-space-2);
}
.af-review-manual ul {
	margin: 0;
	padding-inline-start: 1.25em;
	list-style: disc;
}
.af-review-manual li {
	margin: 0 0 6px;
	line-height: 1.5;
}
.af-publication-confirm {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-height: 44px;
	padding: var(--af-admin-space-3) 0;
	font-weight: 600;
	line-height: 1.6;
}
/* WordPress owns checkbox and checkmark dimensions together, including its
   larger mobile control. The enclosing label provides the 44px click target. */
.af-publication-confirm input[type='checkbox'] {
	flex: none;
	margin: 3px 0 0;
}
.af-review-checks[data-state='blocked'] {
	border-color: #b32d2e;
}
.af-review-checks h4 {
	margin: 0 0 var(--af-admin-space-2);
}
.af-flow-footer button[aria-disabled='true'] {
	opacity: 0.7;
}
.af-review-next {
	margin-top: var(--af-admin-space-6);
	padding: var(--af-admin-space-4) var(--af-admin-space-5);
	border: 1px solid var(--af-line);
	border-radius: var(--af-admin-radius-control);
	background: var(--af-soft);
}
.af-review-next p {
	margin: 0;
}
.af-review-next p + p {
	margin-top: var(--af-admin-space-3);
}
.af-review-next__actions,
.af-review-next__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--af-admin-space-2) var(--af-admin-space-5);
}
#af-live-preview {
	padding: var(--af-admin-space-6);
	border: 1px solid var(--af-line-strong);
	border-radius: 5px;
	background: var(--af-surface);
	overflow-wrap: anywhere;
}
#af-live-preview .af-wrap {
	margin: 0 auto;
}
#af-live-preview.af-preview-narrow .af-wrap {
	max-width: 320px;
}
/* Optional content suggestions: visually quieter than the blocking checks. */
.af-review-advice {
	margin: var(--af-admin-space-4) 0;
	padding: var(--af-admin-space-4) 18px;
	border: 1px solid var(--af-line);
	border-inline-start: 3px solid #dba617;
	border-radius: var(--af-admin-radius-compact);
	background: var(--af-surface);
}
.af-review-advice h4 {
	margin: 0 0 6px;
	font-size: var(--af-admin-title);
}
.af-review-advice ul {
	margin: var(--af-admin-space-3) 0 0;
	padding: 0;
	list-style: none;
}
.af-review-advice li {
	padding: 10px 0;
	border-top: 1px solid var(--af-neutral-soft);
}
.af-review-advice li p {
	margin: 0;
}
.af-review-advice .af-advice-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--af-admin-space-4);
	margin-top: 6px;
}
.af-review-advice .button-link {
	min-block-size: 24px;
}
.af-review-checks {
	background: var(--af-accent-soft);
	border-inline-start: 3px solid var(--af-accent);
	padding: 14px var(--af-admin-space-4);
	margin: var(--af-admin-space-5) 0;
	line-height: 1.6;
}
.af-review-checks ul {
	padding-inline-start: var(--af-admin-space-5);
	list-style: disc;
}
.af-native-publishing {
	border-top: 1px solid var(--af-line);
	margin-top: var(--af-admin-space-6);
	padding-top: var(--af-admin-space-5);
}
.af-native-publishing #submitdiv {
	margin-top: var(--af-admin-space-4);
	max-width: 420px;
}
.af-native-publishing #major-publishing-actions #publishing-action,
.af-native-publishing #minor-publishing-actions {
	display: none;
}
@media (min-width: 1000px) {
	.af-guided-editor .af-appearance-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}
@media (max-width: 782px) {
	.af-flow-heading {
		padding: var(--af-admin-space-3) 18px 0;
		align-items: flex-start;
	}
	.af-flow-state {
		white-space: normal;
	}
	.af-step-panel {
		padding: var(--af-admin-space-4) 18px;
	}
	.af-flow-footer {
		padding: var(--af-admin-space-4) 18px;
		flex-wrap: wrap;
		gap: var(--af-admin-space-2);
	}
	.af-flow-footer .button {
		min-height: 44px;
		padding-inline: var(--af-admin-space-3);
	}
	.af-flow-footer .af-step-count {
		flex: 1;
		white-space: nowrap;
	}
	.af-preview-toolbar {
		align-items: flex-start;
	}
	.af-preview-toolbar label {
		margin: 0;
	}
	.af-preview-setting { flex-direction: column; align-items: flex-start; }
	.af-entry-technical > summary { box-sizing: border-box; min-height: var(--af-admin-touch-target); }
	.af-table-scroll-help { display: block; color: var(--af-muted); font-size: var(--af-admin-meta); }
	.af-step-panel .form-table th {
		width: auto;
	}
	#af-live-preview {
		padding: var(--af-admin-space-3);
	}
}
@media (forced-colors: active) {
	.af-flow-state,
	.af-review-checks {
		border: 1px solid CanvasText;
	}
}
/* The action bar stays in reach while scrolling. It sits below the WordPress
 * admin bar and menus (z-index 9990+), and scroll padding keeps a newly focused
 * control from ending up underneath it. */
.af-guided-editor .af-flow-footer {
	position: sticky;
	bottom: 0;
	z-index: 20;
	background: var(--af-soft);
	border-top: 1px solid #8c8f94;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}
html:has(body.af-guided-editor) {
	scroll-padding-bottom: 96px;
}
@media (max-width: 782px), (max-height: 500px) {
	/* A wrapped action bar must not cover a focused field or a zoomed viewport. */
	.af-guided-editor .af-flow-footer {
		position: static;
	}
	html:has(body.af-guided-editor) {
		scroll-padding-bottom: 16px;
	}
}
@media (forced-colors: active) {
	.af-guided-editor .af-flow-footer {
		background: Canvas;
		border-top-color: CanvasText;
	}
}
.af-confirmation-redirect {
	margin: var(--af-admin-space-5) 0 0;
}
.af-confirmation-redirect > summary,
.af-contrast-details > summary {
	cursor: pointer;
	font-weight: 600;
}
.af-confirmation-redirect .af-setting {
	margin-top: var(--af-admin-space-4);
}
.af-page-picker-search > label {
	display: block;
	font-weight: 600;
	margin: var(--af-admin-space-3) 0 6px;
}
.af-page-picker-search > div {
	display: flex;
	gap: var(--af-admin-space-2);
	flex-wrap: wrap;
}
.af-page-picker-search input {
	flex: 1;
	min-width: 100px;
}
.af-contrast-details ul {
	margin-top: var(--af-admin-space-3);
}
.af-review-summary {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 14px var(--af-admin-space-5);
	margin: var(--af-admin-space-6) 0;
}
.af-review-summary dt {
	font-weight: 600;
}
.af-review-summary dd {
	margin: 0;
	overflow-wrap: anywhere;
}
.af-review-summary a {
	margin-inline-start: var(--af-admin-space-3);
	white-space: nowrap;
}
@media (max-width: 600px) {
	.af-review-summary {
		grid-template-columns: 1fr;
		gap: 6px;
	}
	.af-review-summary dd {
		margin-bottom: 14px;
	}
}
.af-choice-row {
	display: flex;
	align-items: center;
	gap: var(--af-admin-space-3);
	margin: var(--af-admin-space-2) 0;
}
.af-choice-row .af-choice-label {
	flex: 1;
	min-width: 0;
}
.af-choice-row button {
	flex-shrink: 0;
}
.af-paste-choices {
	margin: var(--af-admin-space-4) 0;
}
.af-paste-choices label {
	display: block;
	margin: var(--af-admin-space-3) 0 6px;
}
.af-paste-choices textarea {
	display: block;
	margin-bottom: var(--af-admin-space-2);
	width: 100%;
}
.af-options-row fieldset {
	/* Safari otherwise sizes this group to its choices' intrinsic minimum width. */
	min-inline-size: 0;
}
.af-options-row legend {
	font-weight: 600;
}
.af-inbox-tools {
	margin: var(--af-admin-space-5) 0;
	padding: var(--af-admin-space-4) var(--af-admin-space-5);
	background: var(--af-surface);
	border: 1px solid var(--af-line-strong);
	border-radius: var(--af-admin-radius-compact);
}
.af-inbox-tools > summary {
	font-weight: 600;
	cursor: pointer;
}
.af-inbox-tools .af-setting label {
	display: block;
	margin-bottom: var(--af-admin-space-2);
	font-weight: 600;
}
.af-inbox-tools input[type='text'] {
	width: 100%;
}
.af-inbox-tools .submit {
	margin: var(--af-admin-space-3) 0;
	padding: 0;
}

/* One disclosure and navigation system across the plugin admin. Native details
   preserve keyboard interaction and exposed expanded state without extra JS. */
:is(.af-builder, .af-settings, .af-tools, .af-entry, .af-entries, .af-placement) details {
	border: 1px solid #c3c8cf;
	border-radius: var(--af-admin-radius-control);
	background: var(--af-surface);
	padding: 0 var(--af-admin-space-4);
	margin-block: var(--af-admin-space-4);
	min-width: 0;
	color: var(--af-ink);
}
:is(.af-builder, .af-settings, .af-tools, .af-entry, .af-entries, .af-placement) details > summary {
	display: flex;
	align-items: center;
	gap: var(--af-admin-space-3);
	min-height: 48px;
	margin: 0 -16px;
	padding: 13px var(--af-admin-space-4);
	border-radius: 5px;
	list-style: none;
	cursor: pointer;
	color: #2c3338;
	font-size: var(--af-admin-text);
	font-weight: 600;
	line-height: 1.6;
	text-align: start;
	overflow-wrap: anywhere;
}
:is(.af-builder, .af-settings, .af-tools, .af-entry, .af-entries, .af-placement)
	details
	> summary::-webkit-details-marker {
	display: none;
}
:is(.af-builder, .af-settings, .af-tools, .af-entry, .af-entries, .af-placement) details > summary::marker {
	content: '';
}
:is(.af-builder, .af-settings, .af-tools, .af-entry, .af-entries, .af-placement) details > summary::after {
	content: '';
	display: block;
	width: 7px;
	height: 7px;
	flex: 0 0 7px;
	margin-inline-start: auto;
	margin-inline-end: var(--af-admin-space-1);
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: translateY(-2px) rotate(45deg);
}
:is(.af-builder, .af-settings, .af-tools, .af-entry, .af-entries, .af-placement) details > summary:hover {
	background: #f3f5f7;
}
:is(.af-builder, .af-settings, .af-tools, .af-entry, .af-entries, .af-placement)
	details
	> summary:focus-visible {
	outline: 2px solid var(--af-accent-strong);
	outline-offset: -3px;
	box-shadow: none;
	background: var(--af-accent-soft);
}
:is(.af-builder, .af-settings, .af-tools, .af-entry, .af-entries, .af-placement) details[open] {
	padding-bottom: var(--af-admin-space-4);
}
:is(.af-builder, .af-settings, .af-tools, .af-entry, .af-entries, .af-placement) details[open] > summary {
	border-bottom: 1px solid var(--af-line);
	border-radius: 5px 5px 0 0;
	background: #f6f7f9;
	margin-bottom: 18px;
}
:is(.af-builder, .af-settings, .af-tools, .af-entry, .af-entries, .af-placement)
	details[open]
	> summary::after {
	transform: translateY(2px) rotate(225deg);
}
:is(.af-builder, .af-settings, .af-tools, .af-entry, .af-entries, .af-placement)
	details
	> :last-child:not(summary) {
	margin-bottom: 0;
}
.af-builder details.af-field-row {
	padding: 0;
	margin: 0;
}
.af-builder details.af-field-row > summary {
	margin: 0;
	min-height: 56px;
	padding: 14px 18px;
}
.af-builder details.af-field-row[open] > summary {
	margin-bottom: 0;
}
.af-builder details.af-field-row[open] {
	border-color: #8c98a5;
}
.af-builder .af-field-number {
	width: 24px;
	height: 24px;
	display: grid;
	place-items: center;
	background: #f0f2f4;
	border: 1px solid var(--af-line);
	border-radius: var(--af-admin-radius-compact);
	flex-shrink: 0;
}
.af-builder .af-field-kind {
	margin-inline-start: var(--af-admin-space-1);
}
.af-builder .af-field-required {
	background: var(--af-soft);
}
.af-step-panel > details.af-editor-section {
	margin-top: var(--af-admin-space-5);
	padding: 0 18px;
	border: 1px solid #c3c8cf;
}
.af-step-panel > details.af-editor-section > summary {
	margin-inline: -18px;
	padding-inline: 18px;
}
.af-step-panel > details.af-editor-section[open] {
	padding-bottom: var(--af-admin-space-5);
}
.af-builder .af-field-advanced,
.af-builder .af-paste-choices,
.af-builder .af-heading-options {
	background: #fafbfc;
}
.af-builder .af-field-advanced > summary {
	color: #3c434a;
}
.af-builder details.af-native-publishing {
	margin-top: var(--af-admin-space-6);
}
.af-builder details.af-starter-picker {
	margin-top: 0;
}
.af-contrast-panel details {
	font-size: var(--af-admin-meta);
}
.af-delivery-grid h3 {
	margin: 0 0 var(--af-admin-space-5);
	font-size: 15px;
}

/* Underlined navigation: page links stay links, setup steps keep their sequence. */
.af-flow-nav,
.af-section-nav,
:is(.af-forms-list .wrap, .af-entry-list) .subsubsub,
:is(.af-settings, .af-tools, .af-placement) .nav-tab-wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0 var(--af-admin-space-6);
	padding: 0;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--af-line);
	border-radius: 0;
	box-shadow: none;
}
.af-flow-nav {
	margin: var(--af-admin-space-4) 28px 0;
}
.af-section-nav,
:is(.af-forms-list .wrap, .af-entry-list) .subsubsub,
:is(.af-settings, .af-tools, .af-placement) .nav-tab-wrapper {
	margin: var(--af-admin-space-6) 0 var(--af-admin-space-5);
	width: auto;
	max-width: 100%;
}
:is(.af-settings, .af-tools, .af-placement) .nav-tab-wrapper::after { content: none; }
.af-section-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--af-admin-space-6);
	list-style: none;
	margin: 0;
	padding: 0;
}
.af-section-nav li { margin: 0; }
.af-flow-nav a,
.af-section-nav a,
:is(.af-forms-list .wrap, .af-entry-list) .subsubsub a,
:is(.af-settings, .af-tools, .af-placement) .nav-tab {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: var(--af-admin-space-2);
	min-height: 48px;
	min-width: 0;
	margin: 0;
	padding: var(--af-admin-space-3) 0;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--af-muted);
	font-size: var(--af-admin-title);
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	white-space: normal;
	text-align: start;
	overflow-wrap: anywhere;
	float: none;
	box-sizing: border-box;
}
.af-nav-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: inherit;
}
.af-nav-label { min-width: 0; }
:is(.af-settings, .af-tools, .af-placement) .nav-tab {
	display: grid;
	grid-template-columns: 16px minmax(0, 1fr);
	column-gap: var(--af-admin-space-2);
	row-gap: 0;
}
:is(.af-settings, .af-tools, .af-placement) .nav-tab .af-pending-label {
	grid-column: 2;
}
.af-flow-nav a:hover,
.af-section-nav a:hover,
:is(.af-forms-list .wrap, .af-entry-list) .subsubsub a:hover,
:is(.af-settings, .af-tools, .af-placement) .nav-tab:hover {
	background: transparent;
	color: var(--af-accent-strong);
}
.af-flow-nav a[aria-current='step'],
.af-section-nav a[aria-current='page'],
:is(.af-forms-list .wrap, .af-entry-list) .subsubsub a.current,
:is(.af-settings, .af-tools, .af-placement) .nav-tab-active {
	color: var(--af-ink);
	background: transparent;
	border-bottom-color: var(--af-accent);
	box-shadow: none;
	font-weight: 600;
}
.af-flow-nav a:focus-visible,
.af-section-nav a:focus-visible,
:is(.af-forms-list .wrap, .af-entry-list) .subsubsub a:focus-visible,
:is(.af-settings, .af-tools, .af-placement) .nav-tab:focus-visible {
	outline: 2px solid var(--af-accent-strong);
	outline-offset: 3px;
	box-shadow: none;
}
.af-settings-panel,
.af-tools-content {
	border: 1px solid var(--af-line);
	border-radius: var(--af-admin-radius-control);
}
.af-guided-editor #accessible-forms-schema {
	border-radius: var(--af-admin-radius-workspace);
	box-shadow: 0 2px 8px rgb(29 35 39 / 5%);
}
.af-guided-editor #titlewrap {
	margin-block: var(--af-admin-space-3) var(--af-admin-space-5);
}
.af-guided-editor #title {
	min-height: 52px;
	padding: 10px 14px;
	border-radius: var(--af-admin-radius-control);
	font-size: 22px;
	line-height: 1.4;
}
.af-guided-editor #title-prompt-text {
	padding: 14px;
	font-size: 18px;
}
/* Native controls and readable spacing are shared by tools, entries and settings. */
:is(.post-type-accessible_form #wpbody-content, .af-settings, .af-tools, .af-entry, .af-entries, .af-placement)
	:is(.button, button, input[type='submit'], input[type='button'], input[type='reset'], .page-title-action):not(.af-wrap *) {
	border-radius: var(--af-admin-radius-control);
}
/* The regular accent passes on white, but can fail on WordPress's grey canvas. */
:is(.post-type-accessible_form #wpbody-content, .af-settings, .af-tools, .af-entry, .af-entries, .af-placement)
	:is(.button:not(.button-primary), .page-title-action):not(.af-wrap *):not(:disabled):not([aria-disabled='true']) {
	color: var(--af-accent-strong);
	border-color: var(--af-accent-strong);
}
@media (forced-colors: active) {
	:is(.post-type-accessible_form #wpbody-content, .af-settings, .af-tools, .af-entry, .af-entries, .af-placement)
		:is(.button:not(.button-primary), .page-title-action):not(.af-wrap *):not(:disabled):not([aria-disabled='true']) {
		color: ButtonText;
		border-color: ButtonText;
	}
}
:is(.af-settings, .af-tools, .af-entry, .af-entries, .af-placement) :focus-visible {
	outline: 2px solid var(--af-accent-strong);
	outline-offset: 3px;
}
:is(.af-settings, .af-tools, .af-entry, .af-placement) .button {
	min-height: 40px;
	padding-inline: 14px;
}
.af-autosave-notice {
	margin: var(--af-admin-space-5) 28px 0;
}
.af-team-access {
	border: 1px solid var(--af-line);
	border-radius: var(--af-admin-radius-control);
	padding: 18px;
	margin-top: 22px;
	min-inline-size: 0;
}
.af-team-access legend {
	padding-inline: 6px;
	font-weight: 600;
}
.af-team-search {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: var(--af-admin-space-2);
	margin-block: var(--af-admin-space-4);
}
.af-form-picker {
	max-width: 640px;
	margin-block: var(--af-admin-space-4);
}
.af-form-picker [data-af-picker-tools] > label {
	display: block;
	margin-bottom: var(--af-admin-space-2);
	font-weight: 600;
}
.af-picker-search {
	display: flex;
	flex-wrap: wrap;
	gap: var(--af-admin-space-2);
}
.af-picker-search input {
	flex: 1;
	min-width: 140px;
}
.af-team-search label {
	grid-column: 1 / -1;
	font-weight: 600;
}
.af-team-members {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: var(--af-admin-space-1) var(--af-admin-space-3);
	margin-bottom: 14px;
}
.af-team-members .af-inline-choice {
	display: flex;
	align-items: center;
	min-height: 44px;
	gap: 6px;
	overflow-wrap: anywhere;
}
.af-tools {
	max-width: none;
}
@media (max-width: 782px) {
	.af-flow-nav {
		margin: var(--af-admin-space-3) 18px 0;
	}
	:is(.af-settings, .af-tools, .af-entry, .af-placement) .button {
		min-height: 44px;
	}
	.af-autosave-notice {
		margin-inline: 18px;
	}
	.af-team-search {
		grid-template-columns: 1fr;
	}
	.af-flow-nav,
	:is(.af-settings, .af-tools, .af-placement) .nav-tab-wrapper {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 var(--af-admin-space-5);
	}
	.af-section-nav,
	.af-section-nav ul { gap: 0 var(--af-admin-space-5); }
	.af-builder details.af-field-row > summary {
		gap: var(--af-admin-space-2);
		padding: var(--af-admin-space-3);
		display: grid;
		grid-template-columns: 24px minmax(0, 1fr) auto;
	}
	.af-builder .af-field-title {
		grid-column: 2;
		grid-row: 1;
	}
	.af-builder details.af-field-row > summary::after { grid-column: 3; grid-row: 1; justify-self: end; }
	.af-builder .af-field-kind {
		grid-column: 2;
		margin-inline-start: 0;
	}
	.af-builder .af-field-required {
		justify-self: start;
	}
	.af-builder .af-field-width-badge {
		grid-column: 2 / -1;
	}
	.af-step-panel > details.af-editor-section {
		padding-inline: 14px;
	}
	.af-step-panel > details.af-editor-section > summary {
		margin-inline: -14px;
		padding-inline: 14px;
	}
}
@media (forced-colors: active) {
	:is(.af-builder, .af-settings, .af-tools, .af-entry, .af-entries, .af-placement) details {
		border-color: ButtonText;
	}
	:is(.af-builder, .af-settings, .af-tools, .af-entry, .af-entries, .af-placement) summary:focus-visible {
		outline-color: Highlight;
	}
	.af-flow-nav a[aria-current='step'],
	.af-section-nav a[aria-current='page'],
	:is(.af-settings, .af-tools, .af-placement) .nav-tab-active {
		border-bottom-color: Highlight;
		color: Highlight;
	}
	.af-flow-nav a:focus-visible,
	.af-section-nav a:focus-visible,
	:is(.af-settings, .af-tools, .af-placement) .nav-tab:focus-visible {
		outline-color: Highlight;
	}
}

.af-email-sample {
	border: 1px solid var(--af-line);
	border-radius: 5px;
	background: #fafbfc;
	padding: var(--af-admin-space-5);
	margin: var(--af-admin-space-4) 0;
}
.af-email-sample pre {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	font: inherit;
	line-height: 1.7;
}

/* Forms list: the total, then only the counts that need attention. */
.af-form-total {
	font-weight: 600;
}
.af-form-counts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--af-admin-space-1);
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}
.af-form-counts li {
	margin: 0;
}
.af-form-counts a {
	display: inline-flex;
	text-decoration: underline;
	border-radius: var(--af-admin-radius-compact);
	text-underline-offset: 3px;
}
.af-form-counts a .af-badge {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	border: 1px solid currentColor;
	padding: 3px 8px;
}
.af-form-counts a:hover .af-badge {
	text-decoration: underline;
}
.af-form-counts a:focus {
	box-shadow: 0 0 0 2px var(--af-accent);
	outline: 2px solid transparent;
}

.af-native-publishing #submitdiv > .postbox-header {
	display: none;
}

/* Save errors: a summary that links to each control, and a message beside it. */
.af-error-summary {
	border-left-width: 6px;
}
.af-error-summary:focus {
	outline: 3px solid #1d2327;
	outline-offset: 2px;
}
.af-error-summary h2 {
	font-size: 16px;
	margin: var(--af-admin-space-3) 0 var(--af-admin-space-1);
}
.af-error-summary a,
.af-review-errors a {
	color: #b32d2e;
	font-weight: 600;
}
.af-builder .af-inline-error {
	display: block;
	margin: 6px 0 0;
	color: #b32d2e;
	font-weight: 600;
}
.af-builder input[aria-invalid='true'],
.af-builder select[aria-invalid='true'],
.af-builder textarea[aria-invalid='true'] {
	border-color: #b32d2e;
	box-shadow: 0 0 0 1px #b32d2e;
}
@media (forced-colors: active) {
	.af-builder .af-inline-error {
		color: CanvasText;
	}
	.af-builder input[aria-invalid='true'],
	.af-builder select[aria-invalid='true'],
	.af-builder textarea[aria-invalid='true'] {
		border-width: 3px;
	}
}

/* Field ordering: compact controls on one wrapping row, Duplicate set apart. */
.af-reorder {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
@media (min-width: 783px) {
	.af-builder .af-reorder .button {
		min-height: 30px;
		padding: 0 10px;
		font-size: var(--af-admin-meta);
		line-height: 2.3;
	}
}
.af-builder .af-reorder .af-duplicate-field {
	margin-inline-start: 10px;
}
.af-builder .af-reorder .button[aria-disabled='true'] {
	opacity: 0.6;
	cursor: not-allowed;
}
.af-find-field-note {
	flex-basis: 100%;
	margin: 0;
}

/* Locally kept edits. */
.af-builder .af-autosave-notice {
	margin: 0 0 var(--af-admin-space-4);
}
.af-builder .af-autosave-notice:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

/* Style step preview: the real form markup with example states. */
.af-style-preview-body {
	transition: opacity 0.2s ease;
	/* A sample only: choices and menus ignore readonly, so block pointer input here. */
	pointer-events: none;
}
.af-appearance-preview[aria-busy='true'] .af-style-preview-body {
	opacity: 0.65;
}
.af-appearance-preview .af-demo-focus {
	outline: 3px solid var(--af-text);
	outline-offset: 3px;
}
.af-appearance-preview .af-demo-note {
	display: block;
	margin-top: 6px;
	font-size: 0.8em;
	font-style: italic;
	color: var(--af-text);
}
@media (prefers-reduced-motion: reduce) {
	.af-style-preview-body {
		transition: none;
	}
}
@media (forced-colors: active) {
	.af-appearance-preview .af-demo-focus {
		outline-color: Highlight;
	}
}

/* Plugin notices: one line of explanation, then the actions on their own row. */
.af-mail-notice p {
	max-width: none;
}
.af-notice-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--af-admin-space-2) var(--af-admin-space-4);
}
.af-notice-actions .af-notice-dismiss {
	margin-inline-start: auto;
	color: var(--af-muted);
}


/* Follow-up: progress, assignee and date side by side; the note spans the card. */
.af-entry-workflow form:has(> .af-setting #af-opt-workflow) {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 var(--af-admin-space-4);
	align-items: start;
}
.af-entry-workflow form:has(> .af-setting #af-opt-workflow) > :not(.af-setting:has(select, input[type='date'])) {
	grid-column: 1 / -1;
}
.af-entry-workflow form:has(> .af-setting #af-opt-workflow) > button {
	justify-self: start;
}
@media (max-width: 782px) {
	.af-entry-workflow form:has(> .af-setting #af-opt-workflow) {
		grid-template-columns: minmax(0, 1fr);
	}
}


/* On phones the newer/older links take their own full-width row under the title. */
@media screen and (max-width: 782px) {
	.af-entry__nav {
		float: none;
		margin: 18px 0 0;
	}
	.af-entry__nav .button {
		flex: 1;
		justify-content: center;
		text-align: center;
	}
	.af-entry__subtitle {
		margin-top: var(--af-admin-space-3);
	}
}

/* Placement uses the same controls as the guided editor. */
.af-placement [hidden] { display: none !important; }
.af-placement label:not(.af-placement-toggle), .af-placement legend { display: block; font-weight: 600; margin-bottom: var(--af-admin-space-2); }
.af-placement input[type=text], .af-placement input[type=search], .af-placement select { max-width: 100%; min-height: 40px; }
.af-placement-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--af-admin-space-4); margin-block: var(--af-admin-space-6); }
.af-placement-search > div { flex: 1 1 190px; }
.af-placement-search input, .af-placement-search select { width: 100%; }
.af-placement-section p, .af-placement-section ol { max-width: 75ch; }
.af-placement .af-placement-types { border: 0; padding: 0; margin: var(--af-admin-space-6) 0; }
.af-placement .af-placement-types label { display: inline-flex; align-items: center; gap: var(--af-admin-space-2); min-height: 44px; margin: 0 var(--af-admin-space-6) var(--af-admin-space-2) 0; font-weight: 400; }
.af-placement-toggle { display: inline-flex; align-items: center; gap: var(--af-admin-space-2); min-height: 44px; }
.af-placement .af-placement-types input, .af-placement-toggle input { margin: 0; flex-shrink: 0; }
.af-placement-scope { margin-block: var(--af-admin-space-6); padding: 18px var(--af-admin-space-5); border: 1px solid var(--af-line-strong); border-radius: var(--af-admin-radius-control); background: var(--af-soft); }
.af-placement-scope p:last-child { margin-bottom: 0; }
.af-placement-create { background: var(--af-surface); }
.af-placement-create form { max-width: 640px; }
.af-placement-create input[type=text] { width: 100%; }
.af-placement-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--af-admin-space-3); }
.af-placement-check { background: var(--af-surface); }
#af-check-results li { padding-block: var(--af-admin-space-4); border-bottom: 1px solid var(--af-line); overflow-wrap: anywhere; }
#af-check-results li > span { font-weight: 600; }
#af-check-results a { display: inline-flex; align-items: center; min-height: 40px; }
#af-check-results li:focus { outline: 2px solid var(--af-accent); outline-offset: 3px; }
#af-placement-save-state { margin-bottom: 0; }
.af-confirmation-page-link a { display: inline-flex; align-items: center; min-height: 40px; }
.af-exclusion-search, .af-shortcode-copy { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.af-exclusion-search input, .af-shortcode-copy input { flex: 1 1 240px; }
#af-placement-excluded li, #af-exclusion-results li { display: flex; align-items: center; justify-content: space-between; gap: var(--af-admin-space-4); padding: var(--af-admin-space-3) 0; border-bottom: 1px solid var(--af-line); }
#af-placement-excluded span, #af-exclusion-results span { overflow-wrap: anywhere; }
#af-placement-excluded button, #af-exclusion-results button { flex-shrink: 0; }
.af-placement-instructions li { padding-bottom: var(--af-admin-space-3); line-height: 1.7; }
.af-placement :is(input, select, button, a):focus-visible { outline: 2px solid var(--af-admin-accent, #2271b1); outline-offset: 2px; }
@media (max-width: 600px) {
 .af-placement-search > div, .af-placement-search > button { flex-basis: 100%; }
 .af-placement .button, .af-placement input[type=text], .af-placement input[type=search], .af-placement select { min-height: 44px; }
 #af-placement-excluded li, #af-exclusion-results li { flex-wrap: wrap; gap: var(--af-admin-space-2); }
}
@media (forced-colors: active) { .af-placement :is(input, select, button, a):focus-visible { outline-color: Highlight; } }

/* Style step: grouped cards, one control pattern, and a preview that stays in view. */
.af-guided-editor .af-appearance-grid {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 28px;
}
.af-appearance-controls {
	display: grid;
	gap: var(--af-admin-space-4);
}
.af-style-card {
	background: var(--af-surface);
	border: 1px solid var(--af-line);
	border-radius: var(--af-admin-radius-workspace);
	padding: 18px var(--af-admin-space-5) var(--af-admin-space-5);
}
.af-style-card .af-style-card__title {
	margin: 0 0 var(--af-admin-space-4);
	padding-bottom: var(--af-admin-space-3);
	border-bottom: 1px solid var(--af-neutral-soft);
	font-size: var(--af-admin-title);
	font-weight: 600;
	color: var(--af-ink);
}
.af-style-card > .description {
	margin: 0;
	color: var(--af-muted);
}
.af-choice-group {
	border: 0;
	margin: 0 0 18px;
	padding: 0;
	min-inline-size: 0;
}
.af-style-card > .af-choice-group:last-of-type {
	margin-bottom: 0;
}
.af-style-card > .af-choice-group:last-of-type + .description {
	margin-top: var(--af-admin-space-4);
}
.af-choice-group > legend {
	font-weight: 600;
	font-size: var(--af-admin-text);
	padding: 0;
	margin-bottom: var(--af-admin-space-2);
	color: var(--af-ink);
}
.af-choice-group > .description {
	margin: var(--af-admin-space-2) 0 0;
}
/* Theme cards show each palette's real colors. */
.af-theme-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
	gap: var(--af-admin-space-2);
}
.af-theme-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--af-admin-space-2);
	padding: var(--af-admin-space-2);
	border: 1px solid var(--af-line-strong);
	border-radius: var(--af-admin-radius-workspace);
	background: var(--af-surface);
	cursor: pointer;
}
.af-theme-card input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.af-theme-card:hover {
	border-color: #8c8f94;
}
.af-theme-card:has(input:checked) {
	border-color: var(--af-accent);
	box-shadow: inset 0 0 0 1px var(--af-accent);
	background: var(--af-accent-soft);
}
.af-theme-card:has(input:focus-visible) {
	outline: 2px solid var(--af-accent);
	outline-offset: 2px;
}
.af-theme-swatch {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: auto 12px;
	align-items: center;
	gap: 6px var(--af-admin-space-2);
	height: 58px;
	box-sizing: border-box;
	padding: var(--af-admin-space-2) 10px;
	border-radius: 5px;
	background: var(--af-swatch-bg);
	color: var(--af-swatch-text);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.af-swatch-text {
	font: 600 16px/1 Georgia, serif;
}
.af-swatch-field {
	grid-column: 1 / -1;
	grid-row: 2;
	height: 12px;
	border: 1.5px solid var(--af-swatch-border);
	border-radius: 3px;
	background: var(--af-swatch-bg);
}
.af-swatch-button {
	grid-column: 2;
	grid-row: 1;
	width: 26px;
	height: 12px;
	border-radius: 3px;
	background: var(--af-swatch-button);
}
.af-theme-name {
	font-size: var(--af-admin-meta);
	font-weight: 500;
	line-height: 1.35;
	color: var(--af-ink);
}
.af-theme-card:has(input:checked) .af-theme-name {
	font-weight: 600;
}
/* Preview: a neutral stage, kept in view beside the longer settings column. */
.af-preview-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--af-admin-space-2) var(--af-admin-space-4);
	margin-bottom: 10px;
}
.af-preview-head > div:first-child {
	flex: 1 1 200px;
	min-width: 0;
}
.af-preview-zoom {
	display: flex;
	align-items: center;
	gap: var(--af-admin-space-1);
	flex: none;
}
.af-preview-zoom[hidden] {
	display: none;
}
.af-preview-zoom .button {
	min-width: 36px;
	min-height: 36px;
	padding: 0 10px;
	line-height: 1;
	font-size: var(--af-admin-text);
}
.af-preview-zoom .af-zoom-in,
.af-preview-zoom .af-zoom-out {
	font-size: 18px;
}
.af-preview-zoom .af-zoom-fit[aria-pressed='true'] {
	background: var(--af-accent-soft);
	border-color: var(--af-accent);
	color: var(--af-accent-strong);
	font-weight: 600;
}
.af-zoom-level {
	min-width: 44px;
	text-align: center;
	font-variant-numeric: tabular-nums;
	font-size: var(--af-admin-meta);
	font-weight: 600;
	color: #3c434a;
}
.af-preview-head .af-preview-label {
	margin: 0 0 2px;
	color: var(--af-ink);
}
.af-preview-head .description {
	margin: 0;
}
.af-preview-stage {
	padding: var(--af-admin-space-5);
	border-radius: var(--af-admin-radius-workspace);
	background: var(--af-neutral-soft);
	background-image: radial-gradient(#dcdcde 1px, transparent 1px);
	background-size: 14px 14px;
}
.af-preview-stage .af-appearance-preview.af-wrap {
	border-radius: var(--af-admin-radius-control);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.af-appearance-result .af-contrast-panel {
	margin: 14px 0 0;
	padding: 10px 14px;
	border: 1px solid var(--af-line);
	border-radius: var(--af-admin-radius-workspace);
	background: var(--af-surface);
}
.af-appearance-result .af-contrast-panel > p {
	margin: 0;
}
.af-appearance-result .af-contrast-details,
.af-appearance-result .af-contrast-details[open] {
	margin: var(--af-admin-space-1) 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}
.af-appearance-result .af-contrast-details > summary {
	margin: 0 -8px;
	padding: var(--af-admin-space-1) var(--af-admin-space-2);
	min-height: 32px;
	color: var(--af-accent-strong);
}
.af-appearance-result .af-contrast-details[open] > summary {
	margin-bottom: 6px;
	border-bottom: 0;
	background: none;
}
.af-appearance-result .af-contrast-details .description {
	margin: 10px 0 0;
}
/* With zoom, the stage takes the height left in the column and scrolls when zoomed in. */
.af-preview-stage--zoomable {
	overflow: auto;
	overscroll-behavior: contain;
	height: min(70vh, 720px);
	min-height: 320px;
	box-sizing: border-box;
}
.af-preview-stage--zoomable .af-appearance-preview.af-wrap {
	box-sizing: border-box;
	margin-inline: auto;
}
.af-preview-stage--zoomable:focus-visible {
	outline: 2px solid var(--af-accent);
	outline-offset: 2px;
}
@media (min-width: 1000px) {
	.af-guided-editor .af-appearance-result {
		position: sticky;
		top: 48px;
		max-height: calc(100vh - 170px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}
	.af-guided-editor .af-appearance-result:has(.af-preview-stage--zoomable) {
		display: flex;
		flex-direction: column;
		height: calc(100vh - 170px);
		min-height: 480px;
		max-height: none;
		overflow: visible;
	}
	.af-guided-editor .af-preview-stage--zoomable {
		flex: 1 1 auto;
		height: auto;
		min-height: 240px;
	}
	.af-guided-editor .af-appearance-result .af-contrast-panel {
		flex: none;
		max-height: 40%;
		overflow-y: auto;
	}
}
@media (max-width: 999px) {
	.af-guided-editor .af-appearance-grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 600px) {
	.af-style-card {
		padding: 14px;
	}
	.af-preview-stage {
		padding: 10px;
	}
}
@media (forced-colors: active) {
	.af-theme-card:has(input:checked) {
		border: 3px solid Highlight;
	}
	.af-theme-card:has(input:focus-visible) {
		outline-color: Highlight;
	}
}

/* Forms and Entries share a quiet list surface, retaining WordPress table
   semantics, Screen Options, sorting, bulk actions and mobile row disclosure. */
:is(.af-forms-list .wrap, .af-entry-list) {
	padding-top: var(--af-admin-space-3);
}
:is(.af-forms-list .wrap, .af-entry-list) h1 {
	font-size: var(--af-admin-page-title);
	font-weight: 600;
	line-height: 1.3;
}
:is(.af-forms-list .wrap, .af-entry-list) .page-title-action {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 var(--af-admin-space-3);
	margin-inline-start: 10px;
	vertical-align: middle;
}
.af-entry-list .af-page-description {
	margin-top: 10px;
	color: var(--af-muted);
	line-height: 1.6;
}
:is(.af-forms-list .wrap, .af-entry-list) .subsubsub {
	float: none;
	margin: var(--af-admin-space-6) 0 18px;
}
:is(.af-forms-list .wrap, .af-entry-list) .subsubsub li {
	margin: 0;
	font-size: 0; /* Native separators give way to spacing between the links. */
}
:is(.af-forms-list .wrap, .af-entry-list) .count,
:is(.af-forms-list .wrap, .af-entry-list) .displaying-num {
	color: var(--af-muted);
	font-variant-numeric: tabular-nums;
}
.af-list-toolbar {
	margin-bottom: 18px;
	padding: 18px var(--af-admin-space-5);
	border: 1px solid var(--af-line);
	border-radius: var(--af-admin-radius-panel);
	background: var(--af-surface);
}
:is(.af-forms-list .wrap, .af-entry-list) .search-box {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: var(--af-admin-space-2);
	float: none;
	margin: 0;
}
.af-entry-list .af-list-toolbar .search-box {
	max-width: none;
	align-self: end;
}
:is(.af-forms-list .wrap, .af-entry-list) .search-box > label {
	grid-column: 1 / -1;
	position: static;
	width: auto;
	height: auto;
	margin: 0;
	clip: auto;
	clip-path: none;
	overflow: visible;
	font-size: var(--af-admin-text);
	font-weight: 600;
	line-height: 1.4;
}
:is(.af-forms-list .wrap, .af-entry-list) .search-box input[type='search'] {
	width: 100%;
	min-width: 0;
	margin: 0;
}
:is(.af-forms-list .wrap, .af-entry-list) .search-box input,
.af-entry-filters :is(input, select, .button) {
	min-height: 38px;
	border-radius: var(--af-admin-radius-control);
}
.af-entry-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 14px var(--af-admin-space-3);
}
.af-entry-list .af-list-toolbar {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.2fr);
	gap: var(--af-admin-space-4) var(--af-admin-space-6);
}
.af-more-filters,
.af-entry-list .af-date-shortcuts { grid-column: 1 / -1; }
.af-entry-list details.af-more-filters,
.af-entry-list details.af-more-filters[open] {
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
}
.af-entry-list details.af-more-filters > summary,
.af-entry-list details.af-more-filters[open] > summary {
	cursor: pointer;
	width: fit-content;
	max-width: 100%;
	min-height: 36px;
	margin: 0;
	padding: var(--af-admin-space-2);
	border: 0;
	border-radius: var(--af-admin-radius-control);
	background: transparent;
	font-weight: 600;
	color: var(--af-accent-strong);
}
.af-filter-active-count { color: var(--af-muted); font-weight: 400; }
.af-advanced-filters {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
	gap: var(--af-admin-space-4) var(--af-admin-space-3);
	margin-top: var(--af-admin-space-3);
	padding-top: var(--af-admin-space-4);
	border-top: 1px solid var(--af-line);
}
.af-advanced-filters :is(input, select) {
	min-height: 38px;
	border-radius: var(--af-admin-radius-control);
}
.af-entry-list .af-date-shortcuts { margin-top: 0; }
.af-filter-field {
	/* Normal flow prevents WebKit retaining native option widths in flex/grid fields. */
	display: block;
	flex: 1 1 145px;
	min-width: 0;
}
.af-filter-field:has(#af-filter-form) {
	flex-basis: 220px;
}
.af-filter-field label {
	display: block;
	margin-block-end: var(--af-admin-space-2);
	color: var(--af-ink);
	font-size: var(--af-admin-text);
	font-weight: 600;
	line-height: 1.4;
}
.af-filter-field :is(select, input) {
	width: 100%;
	/* Keep native controls inside their filter field at every width. */
	max-width: 100%;
	min-width: 0;
	margin: 0;
}
.af-filter-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--af-admin-space-2) var(--af-admin-space-3);
	min-height: 38px;
}
.af-filter-actions .button {
	margin: 0;
}
.af-clear-filters {
	display: inline-flex;
	align-items: center;
	padding-block: var(--af-admin-space-2);
	font-size: var(--af-admin-text);
	text-underline-offset: 3px;
}
:is(.af-forms-list .wrap, .af-entry-list) .tablenav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--af-admin-space-3);
	height: auto;
	min-height: 38px;
	margin: 0 0 var(--af-admin-space-3);
	padding: 0;
}
:is(.af-forms-list .wrap, .af-entry-list) .tablenav.bottom {
	margin: var(--af-admin-space-4) 0 0;
}
:is(.af-forms-list .wrap, .af-entry-list) .tablenav > .actions {
	display: flex;
	float: none;
	gap: 6px;
	padding: 0;
}
:is(.af-forms-list .wrap, .af-entry-list) .tablenav .actions :is(select, .button) {
	margin: 0;
	min-height: 38px;
}
:is(.af-forms-list .wrap, .af-entry-list) .tablenav-pages {
	float: none;
	margin: 0;
	margin-inline-start: auto;
	font-variant-numeric: tabular-nums;
}
:is(.af-forms-list .wrap, .af-entry-list) .tablenav > br.clear {
	display: none;
}
:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table {
	border: 1px solid var(--af-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--af-admin-radius-panel);
	box-shadow: none;
}
:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table :is(thead, tfoot) {
	background: var(--af-soft);
}
:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table :is(thead, tfoot) th {
	font-size: var(--af-admin-meta);
	font-weight: 600;
}
/* Sorting is available even when a column is not the current sort key. */
:is(.af-forms-list, .af-entry-list) .wp-list-table .sorting-indicator::before {
	color: var(--af-muted);
}
:is(.af-forms-list, .af-entry-list) .wp-list-table :is(th.sorted.asc .sorting-indicator.asc, th.sorted.desc .sorting-indicator.desc)::before {
	color: var(--af-ink);
}
@media (forced-colors: active) {
	:is(.af-forms-list, .af-entry-list) .wp-list-table .sorting-indicator::before {
		color: CanvasText;
	}
	:is(.af-forms-list, .af-entry-list) .wp-list-table :is(th.sorted.asc .sorting-indicator.desc, th.sorted.desc .sorting-indicator.asc) {
		visibility: hidden;
	}
}
:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table thead > tr > :first-child {
	border-start-start-radius: var(--af-admin-radius-panel);
}
:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table thead > tr > :last-child {
	border-start-end-radius: var(--af-admin-radius-panel);
}
:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table tfoot > tr > :first-child {
	border-end-start-radius: var(--af-admin-radius-panel);
}
:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table tfoot > tr > :last-child {
	border-end-end-radius: var(--af-admin-radius-panel);
}
:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table tbody > tr {
	background: var(--af-surface);
}
:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table tbody > tr:hover {
	background: #fbfcfc;
}
:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table tbody > tr:has(> .check-column input:checked) {
	background: var(--af-accent-soft);
}
:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table tbody > tr > :is(td, th) {
	padding-block: var(--af-admin-space-4);
	border-bottom: 1px solid var(--af-line-soft);
	vertical-align: top;
	line-height: 1.6;
}
:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table tbody > tr:last-child > :is(td, th) {
	border-bottom: 0;
}
:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table tbody > tr > .check-column {
	padding-top: var(--af-admin-space-5);
}
:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table .row-title {
	font-size: var(--af-admin-title);
	font-weight: 600;
	line-height: 1.5;
}
.af-forms-list .wp-list-table .column-title .row-title {
	text-decoration: underline;
	text-underline-offset: 3px;
}
:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table :is(td, th) {
	overflow-wrap: anywhere;
}
:is(.af-forms-list .wrap, .af-entry-list) .row-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--af-admin-space-2);
	left: auto;
	position: static;
	margin-top: var(--af-admin-space-2);
	line-height: 1.8;
}
:is(.af-forms-list .wrap, .af-entry-list) .row-actions > span {
	display: inline-flex;
	max-width: 100%;
	margin: 0;
	font-size: 0;
}
:is(.af-forms-list .wrap, .af-entry-list) .row-actions > span :is(a, button),
.af-forms-list :is(.af-list-action, .af-row-more > summary, .af-shortcode-tools > summary, .af-list-shortcode .af-copy) {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	box-sizing: border-box;
	max-width: 100%;
	min-height: 36px;
	padding: 6px 10px;
	border: 1px solid #8c8f94;
	border-radius: var(--af-admin-radius-control);
	background: var(--af-surface);
	color: var(--af-ink);
	font-size: var(--af-admin-meta);
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
	white-space: normal;
	cursor: pointer;
}
:is(.af-forms-list .wrap, .af-entry-list) .row-actions > span :is(a, button):hover,
.af-forms-list :is(.af-list-action, .af-row-more > summary, .af-shortcode-tools > summary, .af-list-shortcode .af-copy):hover {
	background: var(--af-soft);
	border-color: var(--af-muted);
}
.af-forms-list .wrap .row-actions :is(.trash, .delete) a {
	color: #9b2427;
	border-color: #9b2427;
}
:is(.af-forms-list, .af-entry-list) .row-actions .af-nav-label {
	/* WordPress hides separator spans at mobile widths; action labels stay visible. */
	font-size: inherit;
}
.af-forms-list .row-actions > .af_more {
	flex-basis: 100%;
}
:is(.af-forms-list, .af-entry-list) .row-actions .af-nav-icon,
.af-forms-list :is(.af-list-action, .af-shortcode-tools) .af-nav-icon {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
}
.af-forms-list :is(.af-row-more, .af-shortcode-tools) > summary::-webkit-details-marker {
	display: none;
}
.af-disclosure-icon {
	display: inline-flex;
	margin-inline-start: auto;
}
details[open] > summary > .af-disclosure-icon {
	transform: rotate(180deg);
}
.af-entry-list .column-summary .row-title {
	font-weight: 500;
}
.af-entry-list .af-unread .row-title {
	font-weight: 700;
}
.af-forms-list .column-af_shortcode p {
	margin: 0 0 var(--af-admin-space-2);
}
.af-list-shortcode {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--af-admin-space-2);
}
.af-shortcode-tools > summary {
	cursor: pointer;
	width: fit-content;
	max-width: 100%;
}
.af-shortcode-tools[open] > summary { margin-bottom: var(--af-admin-space-2); }
.af-list-shortcode code {
	min-width: 0;
	padding: var(--af-admin-space-1) 6px;
	border-radius: var(--af-admin-radius-compact);
	background: var(--af-soft);
	font-size: var(--af-admin-meta);
	line-height: 1.5;
	overflow-wrap: anywhere;
}
.af-list-shortcode .af-copy {
	min-height: 28px;
	padding: 0 var(--af-admin-space-2);
	font-size: var(--af-admin-meta);
}
.af-field-count {
	font-size: var(--af-admin-title);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.af-forms-list .column-date {
	color: var(--af-muted);
	font-size: var(--af-admin-meta);
}
:is(.af-forms-list #posts-filter, .af-entry-list) :focus-visible {
	outline: 2px solid var(--af-ink);
	outline-offset: 3px;
}
:is(.af-forms-list #posts-filter, .af-entry-list) ::selection {
	background: var(--af-ink);
	color: var(--af-surface);
}
@media (min-width: 783px) {
	:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table :is(td, th):not(.check-column) {
		padding-inline: 14px;
	}
	:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table th.sortable,
	:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table th.sorted {
		padding: 0;
	}
	:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table th.sortable a,
	:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table th.sorted a {
		padding: 10px 14px;
	}
	.af-forms-list .wp-list-table .column-title { width: auto; }
	.af-forms-list .wp-list-table .column-af_fields { width: 64px; }
	.af-forms-list .wp-list-table .column-af_shortcode { width: 23%; }
	.af-forms-list .wp-list-table .column-af_entries { width: 22%; }
	.af-forms-list .wp-list-table .column-date { width: 13%; }
	.af-entry-list .wp-list-table .column-summary { width: 36%; }
	.af-entry-list .wp-list-table .column-delivery { width: 20%; }
	.af-entry-list .wp-list-table .column-workflow { width: 14%; }
}
@media (min-width: 1100px) {
	.af-forms-list #posts-filter {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
		gap: 0 var(--af-admin-space-5);
	}
	.af-forms-list #posts-filter > .search-box {
		grid-column: 2;
		grid-row: 1;
		align-self: end;
		margin-bottom: var(--af-admin-space-3);
	}
	.af-forms-list #posts-filter > .tablenav.top {
		grid-column: 1;
		grid-row: 1;
		align-self: end;
	}
	.af-forms-list #posts-filter > :is(.wp-list-table, .tablenav.bottom) {
		grid-column: 1 / -1;
	}
}
@media (max-width: 1099px) {
	.af-forms-list #posts-filter > .search-box {
		max-width: 520px;
		margin-bottom: 18px;
	}
}
@media screen and (max-width: 782px) {
	:is(.af-forms-list .wrap, .af-entry-list) h1 { font-size: 24px; }
	.af-list-toolbar { padding: var(--af-admin-space-4); }
	.af-entry-filters {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
	}
	.af-filter-field:has(#af-filter-form), .af-filter-actions { grid-column: 1 / -1; }
	:is(.af-forms-list .wrap, .af-entry-list) .search-box input,
	.af-entry-filters :is(input, select, .button),
	:is(.af-forms-list .wrap, .af-entry-list) .tablenav .actions :is(select, .button) { min-height: 44px; }
	:is(.af-forms-list .wrap, .af-entry-list) .tablenav > .actions {
		flex: 1 1 100%;
		min-width: 0;
	}
	:is(.af-forms-list .wrap, .af-entry-list) .tablenav .actions select {
		flex: 1;
		min-width: 0;
		max-width: none;
	}
	:is(.af-forms-list .wrap, .af-entry-list) .tablenav-pages {
		width: 100%;
		margin: var(--af-admin-space-1) 0;
	}
	:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table tbody > tr > .column-primary {
		padding: var(--af-admin-space-4) 52px var(--af-admin-space-4) var(--af-admin-space-3);
	}
	:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table tbody > tr > td:not(.check-column):not(.column-primary) {
		padding: 10px var(--af-admin-space-3);
		padding-inline-start: 40%;
	}
	:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table tbody > tr > td:not(.check-column):not(.column-primary)::before {
		width: 35%;
		font-size: var(--af-admin-meta);
		font-weight: 600;
	}
	:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table .toggle-row { min-width: 44px; min-height: 44px; }
	/* Keep the native checkbox above the primary cell on narrow table rows. */
	:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table tbody > tr > .check-column { z-index: 1; }
	:is(.af-forms-list .wrap, .af-entry-list) .row-actions > span :is(a, button) {
		min-height: 44px;
	}
	.af-forms-list :is(.af-list-action, .af-row-more > summary, .af-shortcode-tools > summary, .af-list-shortcode .af-copy) { min-height: 44px; }
	.af-clear-filters { min-height: 44px; }
	/* With JavaScript disabled the details are already open and need no toggle. */
	/* Older WordPress versions also use td for the primary cell. Stack it with the details. */
	:is(.no-js.af-forms-list .wrap, .no-js .af-entry-list) .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column):not(.hidden) {
		display: block;
	}
	:is(.no-js.af-forms-list .wrap, .no-js .af-entry-list) .row-actions { display: block; }
	:is(.no-js.af-forms-list .wrap, .no-js .af-entry-list) .toggle-row { display: none; }
}
@media (forced-colors: active) {
	:is(.af-forms-list .wrap, .af-entry-list) .row-actions > span :is(a, button),
	.af-forms-list .wrap .row-actions :is(.trash, .delete) a,
	.af-forms-list :is(.af-list-action, .af-row-more > summary, .af-shortcode-tools > summary, .af-list-shortcode .af-copy) {
		color: ButtonText;
		background: ButtonFace;
		border-color: ButtonText;
	}
	:is(.af-forms-list .wrap, .af-entry-list) .subsubsub a.current { border-color: Highlight; }
	:is(.af-forms-list .wrap, .af-entry-list) .wp-list-table tbody > tr:has(> .check-column input:checked) {
		outline: 1px solid Highlight;
		outline-offset: -1px;
	}
	:is(.af-forms-list #posts-filter, .af-entry-list) :focus-visible { outline-color: Highlight; }
}

/* Clear task feedback and readable entry review, scoped to plugin admin screens. */
.af-save-status, .af-settings-save-status {
    color: var(--af-muted, #50575e);
    font-size: var(--af-admin-text);
    line-height: 1.6;
    margin: var(--af-admin-space-3) 0 var(--af-admin-space-5);
}
.af-save-status { max-width: 75ch; }
.af-pending-label {
    display: block;
    color: var(--af-muted);
    font-size: var(--af-admin-meta);
    font-weight: 500;
    margin-top: 3px;
}
.af-row-more { display: block; width: 100%; font-size: var(--af-admin-meta); color: var(--af-ink); }
.af-row-more > summary { width: fit-content; }
.af-row-more__items { display: flex; flex-wrap: wrap; gap: var(--af-admin-space-2); margin: var(--af-admin-space-2) 0 0; padding: var(--af-admin-space-3); border: 1px solid var(--af-line); border-radius: var(--af-admin-radius-workspace); background: var(--af-soft); }
.af-row-more__items > span { display: inline-flex; }
.af-filter-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 14px 0 18px; }
.af-filter-summary > p { margin: 0; font-weight: 500; }
.af-filter-summary > ul { display: flex; flex-wrap: wrap; gap: var(--af-admin-space-2); margin: 0; }
.af-filter-summary li { margin: 0; }
.af-filter-chip { display: inline-flex; gap: 6px; align-items: center; min-height: 32px; padding: 3px 9px; border: 1px solid var(--af-line-strong); border-radius: var(--af-admin-radius-control); background: var(--af-surface); text-decoration: none; max-width: 100%; overflow-wrap: anywhere; }
.af-filter-chip .dashicons { font-size: 16px; width: 16px; height: 16px; flex-shrink: 0; }
.af-date-shortcuts { display: flex; flex-wrap: wrap; gap: var(--af-admin-space-2) 18px; margin-top: var(--af-admin-space-3); }
.af-date-shortcuts > a { display: inline-flex; min-height: 32px; align-items: center; text-underline-offset: 3px; }
.af-selection-status { padding: 10px 0; font-weight: 600; margin: 0; }
.af-bulk-result { padding-bottom: var(--af-admin-space-3); }
.af-bulk-result form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.af-entry-list [aria-busy="true"] .wp-list-table, .af-forms-list [aria-busy="true"] .wp-list-table { cursor: progress; }
.af-list-recovery { padding: var(--af-admin-space-3) 0; }
.af-entry > h1 { font-size: var(--af-admin-page-title); font-weight: 600; }
.af-entry__nav .button, .af-entry-back { min-height: 36px; }
.af-entry-summary { display: flex; flex-wrap: wrap; gap: var(--af-admin-space-4) 40px; padding: var(--af-admin-space-4) 0; margin: 0; border-block: 1px solid var(--af-line); }
.af-entry-summary dt { font-size: var(--af-admin-meta); color: var(--af-muted); margin-bottom: var(--af-admin-space-1); }
.af-entry-summary dd { font-weight: 600; margin: 0; }
.af-entry__main > .af-entry-workflow { border: 1px solid var(--af-line); border-radius: var(--af-admin-radius-panel); padding: 22px var(--af-admin-space-6); background: var(--af-surface); }
.af-entry-workflow > h2 { font-size: 16px; font-weight: 600; }
.af-notification-history > summary { min-height: 32px; cursor: pointer; color: var(--af-ink); }
.af-notification-history > summary h2 { display: inline; font-size: 16px; font-weight: 600; }
.af-notification-history > div { padding-top: var(--af-admin-space-4); }
.af-setup-progress { border-top: 1px solid var(--af-line); padding: var(--af-admin-space-5) 0; margin-top: var(--af-admin-space-6); }
.af-setup-progress > summary { cursor: pointer; font-weight: 600; min-height: 36px; font-size: 15px; }
.af-setup-progress ol { list-style: none; margin: 18px 0; }
.af-setup-progress li { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: var(--af-admin-space-3) 0; margin: 0; border-bottom: 1px solid var(--af-neutral-soft); }
.af-setup-state { flex: 0 0 70px; font-size: var(--af-admin-meta); font-weight: 600; color: var(--af-muted); }
.af-setup-progress li > a { flex: 1 1 200px; }
.af-setup-progress .button-link { min-height: 32px; }
.af-export-progress { padding: 14px 0 18px; border-top: 1px solid var(--af-line); margin-top: var(--af-admin-space-4); }
.af-export-progress [hidden] { display: none !important; }
.af-export-progress .af-export-error { color: #8a2424; }
.af-export-progress p { overflow-wrap: anywhere; }
.af-export-progress button { margin: var(--af-admin-space-1) var(--af-admin-space-2) var(--af-admin-space-1) 0; }
:is(.af-entry, .af-entry-list, .af-forms-list, .af-builder) :is(summary, .af-filter-chip, .af-date-shortcuts a):focus-visible { outline: 2px solid #1d2327; outline-offset: 3px; }
:is(.af-entry, .af-builder) :is(a, button, input, select, textarea, summary) { scroll-margin-block: 80px; }
@media (max-width: 1000px) {
    .af-entry__grid { grid-template-columns: minmax(0, 1fr); }
    .af-entry__side { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--af-admin-space-5); }
}
@media (max-width: 782px) {
    .af-entry-summary { gap: var(--af-admin-space-4) var(--af-admin-space-6); }
    .af-entry__fields dd { font-size: 16px; }
    .af-entry .postbox .inside, .af-entry__main > .af-entry-workflow { padding: 18px; }
    .af-entry .postbox .hndle { padding: 18px; }
    .af-entry__nav .button, .af-entry-back, .af-row-more > summary, .af-filter-chip, .af-date-shortcuts > a, .af-setup-progress .button-link, .af-export-progress .button, .af-export-progress .button-link { min-height: 44px; }
    .af-entry-history thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .af-entry-history :is(tbody, tr, th, td) { display: block; width: auto; }
    .af-entry-history tr { padding: var(--af-admin-space-3) 0; border-bottom: 1px solid var(--af-line); }
    .af-entry-history :is(th, td) { padding: var(--af-admin-space-1) 0; }
    .af-setup-progress li { gap: var(--af-admin-space-2); }
}
@media (forced-colors: active) {
    .af-filter-chip, .af-entry .postbox, .af-entry__main > .af-entry-workflow { border-color: CanvasText; }
    .af-export-progress .af-export-error, .af-pending-label { color: CanvasText; }
}

/* Native, responsive controls for private theme previews and manual test reports. */
.af-theme-preview > summary,
.af-test-record > details > summary { cursor: pointer; min-height: 44px; box-sizing: border-box; padding-block: var(--af-admin-space-3); font-weight: 600; }
.af-theme-preview label,
.af-test-record label { display: block; margin-block: var(--af-admin-space-4) 6px; font-weight: 600; }
.af-theme-preview :is(select, input),
.af-test-record :is(select, input, textarea) { max-width: 100%; width: 100%; min-height: 44px; box-sizing: border-box; }
#af-test-page-search { margin-block: var(--af-admin-space-4); }
#af-test-page-search input { margin-block-end: var(--af-admin-space-2); }
.af-test-record > details { margin-block-start: var(--af-admin-space-3); }
.af-test-record ol { padding-inline-start: var(--af-admin-space-6); }
.af-test-record ol > li { padding-block: var(--af-admin-space-3); border-block-end: 1px solid var(--af-line); }
.af-test-record :is(p, li) { overflow-wrap: anywhere; }

/* Additional disclosures share native keyboard behavior and comfortable narrow targets. */
@media (max-width: 1000px) {
    .af-entry-list .af-list-toolbar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 782px) {
    .af-builder :is(.button, .button-link, button):not(.af-wrap *) { min-block-size: var(--af-admin-touch-target); }
    .af-builder details.af-review-instructions > summary,
    .af-builder details.af-review-instructions[open] > summary,
    .af-entry-list details.af-more-filters > summary,
    .af-entry-list details.af-more-filters[open] > summary,
    .af-shortcode-tools > summary,
    .af-advanced-filters :is(input, select) { min-height: var(--af-admin-touch-target); }
}
@media (forced-colors: active) {
    .af-more-filters > summary, .af-shortcode-tools > summary { color: LinkText; }
}
