.scheduled-changes-record-title-action,
.scheduled-changes-recording-start-overlay,
.scheduled-changes-recording-confirm,
.scheduled-changes-recording-modal,
.scheduled-changes-recording-editor-rail {
	--scheduled-changes-admin-accent: #3858e9;
	--scheduled-changes-admin-accent-dark: #2145e6;
	--scheduled-changes-admin-accent-soft: color-mix(in srgb, var(--scheduled-changes-admin-accent) 12%, #fff);
	--scheduled-changes-admin-accent-ring: #b9c4f8;
	--scheduled-changes-admin-danger: #cc1818;
	--scheduled-changes-admin-danger-soft: #fdecea;
	--scheduled-changes-admin-danger-ink: #9c1212;
	--scheduled-changes-admin-warning: #d18f00;
	--scheduled-changes-admin-warning-soft: #fff8e8;
	--scheduled-changes-admin-warning-ink: #7a4d00;
	--scheduled-changes-admin-glass-bg: rgba(255, 255, 255, 0.72);
	--scheduled-changes-admin-glass-border: rgba(255, 255, 255, 0.85);
	--scheduled-changes-admin-glass-blur: saturate(170%) blur(20px);
	--scheduled-changes-admin-shadow-modal: 0 24px 60px rgba(16, 24, 40, 0.24);
}

.scheduled-changes-record-title-action {
	margin-left: 6px;
}

.scheduled-changes-recording-editor-banner,
.scheduled-changes-recording-editor-status {
	margin-left: 0;
}

.scheduled-changes-recording-editor-banner {
	align-items: flex-start;
	display: flex;
	gap: 12px;
	justify-content: space-between;
}

.scheduled-changes-recording-editor-banner__content {
	min-width: 0;
}

.scheduled-changes-recording-editor-banner p {
	margin-bottom: 0.5em;
}

.scheduled-changes-recording-editor-banner__links {
	color: #646970;
}

.scheduled-changes-recording-editor-banner__warning {
	color: #8a6d3b;
}

.scheduled-changes-recording-editor-banner__actions {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

body.scheduled-changes-recording-active #wpcontent {
	animation: scheduled-changes-recording-frame 2.4s ease-in-out infinite;
	border-radius: 14px 0 0 14px;
	box-shadow:
		inset 0 0 0 2px rgba(204, 24, 24, 0.58),
		0 0 0 0 rgba(204, 24, 24, 0);
	padding-bottom: 128px;
}

.scheduled-changes-recording-editor-rail {
	bottom: 18px;
	left: 180px;
	pointer-events: none;
	position: fixed;
	right: 24px;
	z-index: 99999;
}

.scheduled-changes-recording-editor-rail__inner {
	align-items: center;
	background: var(--scheduled-changes-admin-glass-bg);
	backdrop-filter: var(--scheduled-changes-admin-glass-blur);
	border: 1px solid var(--scheduled-changes-admin-glass-border);
	border-radius: 16px;
	box-shadow: var(--scheduled-changes-admin-shadow-modal);
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(0, 1fr) max-content;
	margin: 0 auto;
	max-width: 1180px;
	padding: 12px;
	pointer-events: auto;
}

.scheduled-changes-recording-editor-rail__status {
	align-items: center;
	background: #fbfbfc;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	color: #5b626a;
	display: flex;
	flex-direction: column;
	font-size: 13px;
	gap: 6px;
	grid-column: 1;
	grid-row: 1;
	height: auto !important;
	justify-content: center;
	line-height: 1.45;
	min-height: 40px;
	min-width: 0;
	padding: 10px 12px;
	width: auto !important;
}

.scheduled-changes-recording-editor-rail__status p,
.scheduled-changes-recording-editor-rail__status ul {
	margin: 0;
}

.scheduled-changes-recording-editor-rail__status ul {
	padding-left: 18px;
}

.scheduled-changes-recording-editor-rail__status .btn {
	justify-self: start;
	margin-top: 2px;
}

.scheduled-changes-recording-editor-rail__status.is-info {
	background: var(--scheduled-changes-admin-accent-soft);
	border-color: var(--scheduled-changes-admin-accent-ring);
	color: #2c3338;
}

.scheduled-changes-recording-editor-rail__status.is-warning {
	background: var(--scheduled-changes-admin-warning-soft);
	border-color: rgba(209, 143, 0, 0.32);
	color: var(--scheduled-changes-admin-warning-ink);
}

.scheduled-changes-recording-editor-rail__status.is-error {
	background: var(--scheduled-changes-admin-danger-soft);
	border-color: rgba(204, 24, 24, 0.26);
	color: var(--scheduled-changes-admin-danger-ink);
	font-weight: 600;
}

.scheduled-changes-recording-editor-rail__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	grid-column: 2;
	grid-row: 1;
	justify-content: flex-end;
}

.scheduled-changes-recording-editor-rail__actions .btn {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 6px;
	cursor: pointer;
	display: inline-flex;
	font-size: 13px;
	font-weight: 600;
	justify-content: center;
	line-height: 1.2;
	min-height: 36px;
	padding: 8px 14px;
	text-decoration: none;
}

.scheduled-changes-recording-editor-rail__actions .btn-primary {
	background: var(--scheduled-changes-admin-accent);
	color: #fff;
}

.scheduled-changes-recording-editor-rail__actions .btn-danger {
	background: #fff;
	border-color: rgba(204, 24, 24, 0.42);
	color: var(--scheduled-changes-admin-danger-ink);
}

.scheduled-changes-recording-save-control.is-disabled,
.scheduled-changes-recording-save-control[aria-disabled="true"],
.scheduled-changes-recording-save-control:disabled {
	cursor: not-allowed;
	opacity: 0.55;
	pointer-events: auto;
}

.scheduled-changes-recording-confirm {
	align-items: center;
	background: rgba(17, 24, 39, 0.42);
	bottom: 0;
	display: flex;
	justify-content: center;
	left: 0;
	padding: 24px;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 100002;
}

.scheduled-changes-recording-confirm__panel {
	background: #fff;
	border: 1px solid #d6dbe8;
	border-radius: 14px;
	box-shadow: 0 22px 70px rgba(17, 24, 39, 0.22);
	max-width: 460px;
	padding: 24px;
	width: 100%;
}

.scheduled-changes-recording-confirm__panel h2 {
	color: #111827;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
}

.scheduled-changes-recording-confirm__panel p {
	color: #4b5563;
	font-size: 14px;
	line-height: 1.6;
	margin: 12px 0 0;
}

.scheduled-changes-recording-confirm__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 20px;
}

body.scheduled-changes-recording-start-overlay-open {
	overflow: hidden;
}

.scheduled-changes-recording-start-overlay {
	align-items: center;
	backdrop-filter: blur(8px);
	background: rgba(17, 24, 39, 0.48);
	bottom: 0;
	display: flex;
	justify-content: center;
	left: 0;
	padding: 24px;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 100001;
}

.scheduled-changes-recording-start-overlay__panel {
	background: #fff;
	border: 1px solid #e4e6f2;
	border-radius: 18px;
	box-shadow: 0 28px 80px rgba(17, 24, 39, 0.26);
	color: #111827;
	max-width: 560px;
	padding: 34px;
	text-align: center;
	width: 100%;
}

.scheduled-changes-recording-start-overlay__eyebrow {
	color: var(--scheduled-changes-admin-accent);
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.scheduled-changes-recording-start-overlay__panel h2 {
	font-size: 28px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.15;
	margin: 0;
}

.scheduled-changes-recording-start-overlay__panel > p {
	color: #667085;
	font-size: 16px;
	line-height: 1.65;
	margin: 16px auto 0;
	max-width: 470px;
}

.scheduled-changes-recording-start-overlay__countdown {
	align-items: baseline;
	background: var(--scheduled-changes-admin-accent-soft);
	border-radius: 12px;
	color: var(--scheduled-changes-admin-accent-dark) !important;
	display: flex;
	font-size: 14px !important;
	font-weight: 600;
	gap: 3px;
	justify-content: center;
	margin-top: 24px !important;
	padding: 13px 16px;
}

.scheduled-changes-recording-start-overlay__countdown strong {
	font-size: 18px;
	font-weight: 600;
}

.scheduled-changes-recording-modal {
	align-items: center;
	background: rgba(0, 0, 0, 0.45);
	bottom: 0;
	display: flex;
	justify-content: center;
	left: 0;
	padding: 2rem;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 100000;
}

.scheduled-changes-recording-modal__panel {
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
	max-width: 520px;
	padding: 1.5rem;
	width: 100%;
}

.scheduled-changes-recording-modal__summary {
	color: #3c434a;
	line-height: 1.5;
}

.scheduled-changes-record-title-action:focus-visible,
.scheduled-changes-recording-start-overlay :focus-visible,
.scheduled-changes-recording-modal :focus-visible {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2271b1;
	outline: 2px solid transparent;
	outline-offset: 2px;
}

.scheduled-changes-recording-modal__form {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scheduled-changes-recording-modal__field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.scheduled-changes-recording-modal__field span {
	font-weight: 600;
}

.scheduled-changes-recording-modal__field input {
	width: 100%;
}

.scheduled-changes-recording-modal__actions,
.scheduled-changes-recording-modal__status {
	grid-column: 1 / -1;
}

.scheduled-changes-recording-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
}

.scheduled-changes-recording-modal__status {
	margin: 0;
}

.scheduled-changes-recording-modal__status.is-error {
	color: #b32d2e;
	font-weight: 600;
}

@keyframes scheduled-changes-recording-frame {

	0%,
	100% {
		box-shadow:
			inset 0 0 0 2px rgba(204, 24, 24, 0.58),
			0 0 0 0 rgba(204, 24, 24, 0);
	}

	50% {
		box-shadow:
			inset 0 0 0 3px rgba(204, 24, 24, 0.9),
			0 0 0 6px rgba(204, 24, 24, 0.1);
	}
}

@media (prefers-reduced-motion: reduce) {

	.scheduled-changes-record-title-action,
	.scheduled-changes-recording-start-overlay *,
	.scheduled-changes-recording-start-overlay *::before,
	.scheduled-changes-recording-start-overlay *::after,
	.scheduled-changes-recording-modal *,
	.scheduled-changes-recording-modal *::before,
	.scheduled-changes-recording-modal *::after,
	.scheduled-changes-recording-editor-rail *,
	.scheduled-changes-recording-editor-rail *::before,
	.scheduled-changes-recording-editor-rail *::after,
	body.scheduled-changes-recording-active #wpcontent {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.001ms !important;
	}
}

@media (max-width: 782px) {

	.scheduled-changes-recording-editor-banner {
		display: block;
	}

	.scheduled-changes-recording-editor-banner__actions {
		justify-content: flex-start;
	}

	.scheduled-changes-recording-editor-rail {
		bottom: 10px;
		left: 10px;
		right: 10px;
	}

	.scheduled-changes-recording-editor-rail__inner {
		grid-template-columns: 1fr;
	}

	.scheduled-changes-recording-editor-rail__actions {
		justify-content: stretch;
	}

	.scheduled-changes-recording-editor-rail__actions .btn {
		flex: 1 1 0;
		justify-content: center;
	}
}

@media (min-width: 783px) and (max-width: 960px) {

	.scheduled-changes-recording-editor-rail {
		left: 58px;
	}
}

body.folded .scheduled-changes-recording-editor-rail {
	left: 58px;
}
