/**
 * Backup & Restore admin (WP PowerSuite).
 *
 * @package BackupRestore
 */

.wpps-br-wrap {
	--wpps-br-accent: var(--wpps-accent, var(--wp-admin-theme-color, #2271b1));
	--wpps-br-accent-hover: var(--wpps-accent-hover, var(--wp-admin-theme-color-darker-10, #135e96));
	--wpps-br-accent-bg: color-mix(in srgb, var(--wp-admin-theme-color, #2271b1) 12%, #fff);
	--wpps-br-accent-border: color-mix(in srgb, var(--wp-admin-theme-color, #2271b1) 45%, #fff);
	--wpps-br-accent-shadow: color-mix(in srgb, var(--wp-admin-theme-color, #2271b1) 12%, transparent);
	--wpps-br-accent-ring: color-mix(in srgb, var(--wp-admin-theme-color, #2271b1) 40%, transparent);
	--wpps-br-border: #c3c4c7;
	--wpps-br-divider: #dcdcde;
	--wpps-br-muted: #646970;
	--wpps-br-muted-strong: #50575e;
	--wpps-br-text: #1d2327;
	--wpps-br-bg: #f0f0f1;
	--wpps-br-surface: #f6f7f7;
	--wpps-br-white: #fff;
	--wpps-br-success: #00a32a;
	--wpps-br-warning: #dba617;
	--wpps-br-danger: #d63638;
	--wpps-br-orange: var(--wpps-br-danger);
	--wpps-br-dialog-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	margin: 20px 20px 20px 0;
}

.wpps-br-page-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px 24px;
	margin-bottom: 4px;
	padding: 20px 22px;
	background: var(--wpps-br-white);
	border: 1px solid var(--wpps-br-border);
	border-radius: 0;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.wpps-br-page-hero__text {
	flex: 1 1 280px;
	min-width: 0;
}

.wpps-br-page-title {
	margin: 0 0 8px;
	font-size: 23px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.wpps-br-page-lead {
	margin: 0;
	max-width: 52rem;
	font-size: 14px;
	line-height: 1.55;
	color: var(--wpps-br-muted-strong);
}

.wpps-br-page-hero__meta {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: flex-end;
}

.wpps-br-pill {
	display: inline-flex;
	align-items: center;
	padding: 5px 11px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	border-radius: 999px;
	border: 1px solid var(--wpps-br-border);
	background: var(--wpps-br-white);
	color: var(--wpps-br-muted-strong);
}

.wpps-br-pill--version {
	font-variant-numeric: tabular-nums;
	border-style: dashed;
}

.wpps-br-progress-status-line {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--wpps-br-text);
	min-height: 1.5em;
}

.wpps-br-upload-busy {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 16px;
	padding: 14px 16px;
	background: var(--wpps-br-accent-bg);
	border: 1px solid var(--wpps-br-accent-border);
	border-left-width: 4px;
	border-radius: 6px;
}

.wpps-br-upload-busy[hidden] {
	display: none !important;
}

.wpps-br-upload-busy__spinner {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	border: 2px solid var(--wpps-br-accent-border);
	border-top-color: var(--wpps-br-accent);
	border-radius: 50%;
	animation: wpps-br-upload-busy-spin 0.75s linear infinite;
}

.wpps-br-upload-busy__title {
	display: block;
	font-size: 14px;
	margin-bottom: 4px;
}

.wpps-br-upload-busy__detail {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--wpps-br-muted-strong);
}

.wpps-br-upload-busy__text-wrap {
	min-width: 0;
	flex: 1;
}

@keyframes wpps-br-upload-busy-spin {
	to {
		transform: rotate(360deg);
	}
}

.wpps-br-plupload-ui--busy {
	opacity: 0.72;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

/* Restore wizard: three-step rail + panes */
.wpps-br-restore-rail {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 0;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	counter-reset: wpps-br-rail;
	border: 1px solid var(--wpps-br-border);
	border-radius: 0;
	overflow: hidden;
	background: var(--wpps-br-white);
}

.wpps-br-restore-rail__step {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 12px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--wpps-br-muted-strong);
	background: var(--wpps-br-surface);
	border-right: 1px solid var(--wpps-br-border);
}

.wpps-br-restore-rail__step:last-child {
	border-right: none;
}

.wpps-br-restore-rail__step--active {
	background: var(--wpps-br-white);
	color: var(--wpps-br-text);
	box-shadow: inset 0 3px 0 var(--wp-admin-theme-color, var(--wpps-br-accent));
}

.wpps-br-restore-rail__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 700;
	background: var(--wpps-br-divider);
	color: var(--wpps-br-text);
}

.wpps-br-restore-rail__step--active .wpps-br-restore-rail__num {
	background: var(--wp-admin-theme-color, var(--wpps-br-accent));
	color: var(--wpps-br-white);
}

.wpps-br-restore-verify-block {
	margin-top: 8px;
	padding: 16px 18px;
	background: #fafafa;
	border: 1px solid var(--wpps-br-border);
	border-radius: 6px;
}

#wpps-br-restore-step-verify .wpps-br-restore-verify-block {
	margin-top: 0;
}

.wpps-br-restore-verify-heading {
	margin: 0 0 8px;
	font-size: 14px;
}

.wpps-br-restore-verify-subhead {
	margin: 16px 0 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--wpps-br-text);
}

.wpps-br-restore-parts-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 12px 0 8px;
}

.wpps-br-restore-parts-wrap .wpps-br-restore-verify-subhead--parts {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wpps-br-muted-strong);
}

.wpps-br-restore-prepare-list-host {
	flex: 1 1 auto;
	min-width: 0;
}

/* Backup parts: compact pills (not full-width checklist rows) */
.wpps-br-verify-parts-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpps-br-verify-parts-strip__item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	max-width: 100%;
	margin: 0;
	padding: 4px 10px 4px 7px;
	border: 1px solid var(--wpps-br-border);
	border-radius: 999px;
	background: var(--wpps-br-white);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
	cursor: help;
	line-height: 1.2;
}

.wpps-br-verify-parts-strip__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.wpps-br-verify-parts-strip__icon .dashicons {
	width: 14px;
	height: 14px;
	font-size: 14px;
	line-height: 1;
}

.wpps-br-verify-parts-strip__icon--pass {
	color: var(--wpps-br-success);
}

.wpps-br-verify-parts-strip__icon--fail {
	color: var(--wpps-br-danger);
}

.wpps-br-verify-parts-strip__label {
	font-size: 12px;
	font-weight: 600;
	color: var(--wpps-br-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 11rem;
}

.wpps-br-restore-server-acc {
	margin-top: 12px;
	border: 1px solid var(--wpps-br-border);
	border-radius: 6px;
	background: #fafafa;
	overflow: hidden;
}

.wpps-br-restore-server-acc[hidden] {
	display: none !important;
}

.wpps-br-restore-server-acc__summary {
	cursor: pointer;
	padding: 10px 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--wpps-br-text);
	background: var(--wpps-br-white);
}

.wpps-br-restore-server-acc .wpps-br-restore-server-checks {
	margin: 0;
	padding: 10px 12px 12px;
	background: #fafafa;
	border-top: 1px solid var(--wpps-br-border);
}

/* Restore verify: compact checklist (icon + heading; detail in tooltip) */
.wpps-br-verify-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wpps-br-verify-checklist__item {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid var(--wpps-br-border);
	border-radius: 6px;
	background: var(--wpps-br-white);
	cursor: help;
}

.wpps-br-verify-checklist__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
}

.wpps-br-verify-checklist__icon .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
	line-height: 1;
}

.wpps-br-verify-checklist__icon--pass {
	color: var(--wpps-br-success);
}

.wpps-br-verify-checklist__icon--fail {
	color: var(--wpps-br-danger);
}

.wpps-br-verify-checklist__label {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--wpps-br-text);
}

.wpps-br-restore-prepare-actions {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: flex-end;
}

.wpps-br-restore-run-panel {
	padding: 16px 18px;
	background: var(--wpps-br-surface);
	border: 1px solid var(--wpps-br-border);
	border-radius: 6px;
	margin-bottom: 12px;
}

.wpps-br-restore-status-line {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--wpps-br-text);
	min-height: 1.5em;
}

.wpps-br-restore-pane--progress .wpps-br-restore-run-actions {
	margin-top: 8px;
}

/* Restore complete — celebration */
.wpps-br-restore-complete-panel {
	padding: 8px 0 4px;
}

.wpps-br-restore-complete-panel[hidden] {
	display: none !important;
}

.wpps-br-restore-celebrate {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 28px 20px 4px;
	max-width: 32rem;
	margin: 0 auto;
}

.wpps-br-restore-celebrate__burst {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	margin: 0 0 20px;
	border-radius: 50%;
	background: linear-gradient(
		145deg,
		var(--wpps-br-accent-bg) 0%,
		color-mix(in srgb, var(--wp-admin-theme-color, #2271b1) 18%, #fff) 45%,
		color-mix(in srgb, var(--wp-admin-theme-color, #2271b1) 22%, #fff) 100%
	);
	box-shadow:
		0 0 0 1px var(--wpps-br-accent-shadow) inset,
		0 8px 24px var(--wpps-br-accent-shadow);
	animation: wpps-br-celebrate-pop 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.wpps-br-restore-celebrate__emoji {
	display: block;
	font-size: 42px;
	line-height: 1;
	animation: wpps-br-celebrate-wiggle 1.2s ease-in-out 0.2s both;
}

@keyframes wpps-br-celebrate-pop {
	from {
		opacity: 0;
		transform: scale(0.65);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes wpps-br-celebrate-wiggle {
	0%,
	100% {
		transform: rotate(0deg) scale(1);
	}

	20% {
		transform: rotate(-8deg) scale(1.05);
	}

	40% {
		transform: rotate(8deg) scale(1.05);
	}

	60% {
		transform: rotate(-4deg) scale(1.02);
	}

	80% {
		transform: rotate(4deg) scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpps-br-restore-celebrate__burst,
	.wpps-br-restore-celebrate__emoji {
		animation: none;
	}
}

.wpps-br-restore-celebrate__title {
	margin: 0 0 8px;
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--wpps-br-text);
}

.wpps-br-restore-celebrate__lead {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--wpps-br-muted-strong);
	max-width: 26rem;
}

.wpps-br-restore-celebrate__hint {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--wpps-br-muted);
	max-width: 28rem;
}

.wpps-br-restore-celebrate__hint:empty {
	display: none;
}

.wpps-br-restore-complete-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 10px;
	margin: 20px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--wpps-br-border);
}

.wpps-br-restore-complete-actions .button,
.wpps-br-restore-complete-actions a.button {
	margin: 0;
	min-height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wpps-br-restore-intro {
	margin: 0 0 16px;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--wpps-br-muted-strong);
}

.wpps-br-restore-fieldset {
	border: 1px solid var(--wpps-br-border);
	border-radius: 4px;
	padding: 12px 16px 16px;
	margin: 0 0 20px;
	background: #fcfcfc;
}

.wpps-br-restore-legend {
	font-weight: 600;
	padding: 0 6px;
	margin: 0 0 10px;
}

.wpps-br-restore-checkboxes .wpps-br-restore-row {
	margin: 0 0 8px;
}

.wpps-br-restore-checkboxes label {
	font-weight: 500;
	cursor: pointer;
}

/* Restore wizard (legacy dot styles — superseded by wpps-br-restore-rail) */
.wpps-br-dialog--restore-wizard {
	max-width: min(96vw, 900px);
}

.wpps-br-dialog--restore-wizard .wpps-br-dialog__body {
	padding-bottom: 8px;
}

.wpps-br-restore-steps {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 0 0 20px;
}

.wpps-br-restore-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--wpps-br-border);
	transition: background 0.15s ease;
}

.wpps-br-restore-dot--active {
	background: var(--wpps-br-muted-strong);
}

.wpps-br-restore-step-heading {
	margin: 0 0 8px;
	font-size: 1rem;
}

.wpps-br-restore-step-desc {
	margin: 0 0 16px;
	font-size: 0.875rem;
	color: var(--wpps-br-muted-strong);
	line-height: 1.55;
}

.wpps-br-dialog__actions--spread {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 20px;
	margin-bottom: 0;
}

.wpps-br-restore-prepare-loading {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	font-size: 13px;
	color: var(--wpps-br-muted-strong);
}

/* display:flex above beats attribute [hidden] at equal specificity — force hide when precheck finishes */
.wpps-br-restore-prepare-loading[hidden] {
	display: none !important;
}

.wpps-br-restore-prepare-success {
	margin-bottom: 16px;
	padding: 12px 14px;
	background: #edfaef;
	border: 1px solid var(--wpps-br-success);
	border-left-width: 4px;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--wpps-br-text);
}

.wpps-br-restore-prepare-success[hidden] {
	display: none !important;
}

.wpps-br-restore-prepare-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: none;
	overflow: visible;
}

.wpps-br-restore-back-nav {
	margin: 8px 0 0;
}

.wpps-br-restore-back-link {
	font-weight: 600;
	text-decoration: none;
	font-size: 14px;
}

.wpps-br-restore-screen .wpps-page-hero {
	margin-bottom: 12px;
}

.wpps-br-restore-flow-sheet {
	background: var(--wpps-br-white);
	border: 1px solid var(--wpps-br-border);
	border-radius: 0;
	padding: 20px 24px 24px;
	margin-top: 0;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.wpps-br-restore-flow-head {
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--wpps-br-border);
}

.wpps-br-restore-page-title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

.wpps-br-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.wpps-br-overlay[hidden] {
	display: none !important;
}

.wpps-br-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(16, 20, 24, 0.55);
}

.wpps-br-overlay__dialog {
	position: relative;
	width: 100%;
	max-width: 520px;
	margin: auto;
	background: var(--wpps-br-white);
	border: 1px solid var(--wpps-br-border);
	border-radius: 10px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
	padding: 22px 24px;
}

.wpps-br-overlay__title {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--wpps-br-text);
}

.wpps-br-overlay__body {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--wpps-br-text);
	white-space: pre-wrap;
	max-height: min(48vh, 320px);
	overflow: auto;
}

.wpps-br-overlay__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
	margin: 0;
}

.wpps-br-modal--log .wpps-br-dialog--log-dark {
	max-width: min(96vw, 900px);
	width: 100%;
	background: #1d2327;
	color: #c8d0d5;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.wpps-br-dialog__header--log-dark {
	border-bottom: 1px solid #2c3338;
}

.wpps-br-dialog__header--log-dark .wpps-br-dialog__title {
	color: #f0f0f1;
}

.wpps-br-dialog__body--log-dark {
	padding: 0;
}

.wpps-br-log-text-modal-pre {
	display: block;
	margin: 0;
	padding: 16px 18px;
	max-height: min(70vh, 560px);
	overflow: auto;
	background: #1d2327;
	color: #c8d0d5;
	font-size: 12px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-break: break-word;
	font-family: Consolas, Monaco, monospace;
}

.wpps-br-modal--log .wpps-br-dialog__close {
	color: #c8d0d5;
}

.wpps-br-modal--log .wpps-br-dialog__close:focus,
.wpps-br-modal--log .wpps-br-dialog__close:hover {
	color: var(--wpps-br-white);
}

.wpps-br-prepare-item {
	border: 1px solid var(--wpps-br-border);
	border-radius: 4px;
	padding: 10px 12px;
	background: #fcfcfc;
}

.wpps-br-prepare-item--ok {
	border-left: 3px solid var(--wpps-br-success);
}

.wpps-br-prepare-item--error {
	border-left: 3px solid var(--wpps-br-orange);
	background: #fcf0f1;
}

.wpps-br-prepare-item--warn {
	border-left: 3px solid var(--wpps-br-warning);
	background: #fcf9e8;
}

.wpps-br-prepare-item__title {
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 4px;
}

.wpps-br-prepare-item__detail {
	font-size: 12px;
	color: var(--wpps-br-muted-strong);
	line-height: 1.45;
}

.wpps-br-prepare-item__bar {
	height: 4px;
	background: #e0e0e0;
	border-radius: 2px;
	margin-top: 8px;
	overflow: hidden;
}

.wpps-br-prepare-item--ok .wpps-br-prepare-item__fill {
	display: block;
	height: 100%;
	width: 100%;
	background: var(--wpps-br-accent);
	border-radius: 2px;
}

.wpps-br-prepare-item--error .wpps-br-prepare-item__fill {
	width: 0;
}

.wpps-br-prepare-item--warn .wpps-br-prepare-item__fill {
	display: block;
	height: 100%;
	width: 100%;
	background: var(--wpps-br-warning);
	border-radius: 2px;
}

.wpps-br-restore-prepare-block {
	padding: 10px 12px;
	background: #fcf0f1;
	border: 1px solid var(--wpps-br-danger);
	border-radius: 4px;
	font-size: 13px;
	margin-top: 12px;
	color: var(--wpps-br-text);
}

.wpps-br-restore-prepare-warn {
	padding: 10px 12px;
	background: #fcf9e8;
	border: 1px solid var(--wpps-br-warning);
	border-radius: 4px;
	font-size: 13px;
	margin-top: 12px;
	color: var(--wpps-br-text);
}

.wpps-br-restore-final-summary {
	font-size: 13px;
	line-height: 1.6;
	margin: 0 0 12px;
}

.wpps-br-restore-final-caution {
	font-size: 12px;
	color: var(--wpps-br-muted-strong);
	margin: 0 0 8px;
	line-height: 1.5;
}

.wpps-br-restore-pane--progress .wpps-br-restore-step-heading {
	display: none;
}

.wpps-br-restore-modal-lead {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--wpps-br-text);
}

.wpps-br-restore-progress-subhead {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--wpps-br-muted-strong);
}

.wpps-br-restore-progress-grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 20px;
	align-items: start;
	margin-bottom: 8px;
}

@media (max-width: 782px) {
	.wpps-br-restore-progress-grid {
		grid-template-columns: 1fr;
	}
}

.wpps-br-restore-progress-grid--log-expanded {
	grid-template-columns: 1fr;
}

.wpps-br-restore-progress-grid--log-expanded .wpps-br-restore-progress-primary {
	display: none;
}

.wpps-br-restore-progress-grid--log-expanded .wpps-br-restore-progress-logcol {
	grid-column: 1 / -1;
}

.wpps-br-restore-progress-grid--log-expanded .wpps-br-restore-modal-log {
	min-height: min(55vh, 420px);
}

.wpps-br-restore-modal-phases {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.wpps-br-phase {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 0;
	font-size: 13px;
	border-bottom: 1px solid var(--wpps-br-bg);
	color: var(--wpps-br-text);
}

.wpps-br-phase:last-child {
	border-bottom: none;
}

.wpps-br-phase__icon {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wpps-br-phase__icon .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
}

.wpps-br-phase--pending .dashicons {
	color: #a7aaad;
}

.wpps-br-phase--active .dashicons {
	color: var(--wp-admin-theme-color, var(--wpps-br-accent));
}

.wpps-br-phase--active .dashicons-update {
	animation: wpps-br-phase-spin 0.9s linear infinite;
}

.wpps-br-phase--done .dashicons {
	color: var(--wpps-br-success);
}

@keyframes wpps-br-phase-spin {
	to {
		transform: rotate(360deg);
	}
}

.wpps-br-restore-modal-track-wrap.wpps-br-progress-bar-row {
	margin-bottom: 12px;
}

.wpps-br-restore-modal-track.wpps-br-progress-track {
	margin-bottom: 0;
	flex: 1;
	height: 24px;
}

.wpps-br-restore-modal-fill.wpps-br-progress-fill {
	background: var(--wp-admin-theme-color, var(--wpps-br-accent));
}

.wpps-br-restore-log-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.wpps-br-restore-log-expand .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
}

.wpps-br-restore-modal-log {
	margin: 0;
	padding: 12px 14px;
	min-height: 220px;
	max-height: min(40vh, 360px);
	overflow: auto;
	background: #1d2327;
	color: #c8d0d5;
	font-size: 12px;
	line-height: 1.45;
	border-radius: 4px;
	border: 1px solid #2c3338;
	white-space: pre-wrap;
	word-break: break-word;
}

.wpps-br-restore-modal-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0;
	font-size: 13px;
	color: var(--wpps-br-muted-strong);
}

.wpps-br-restore-modal-meta__activity {
	flex: 1 1 auto;
	min-width: 0;
}

.wpps-br-restore-modal-meta__actions {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.wpps-br-restore-step3-actions {
	margin-top: 16px;
}

.wpps-br-tabs .nav-tab-disabled {
	cursor: not-allowed;
	opacity: 0.55;
	pointer-events: none;
}

.wpps-br-settings .wpps-br-settings-includes {
	margin: 0;
}

.wpps-br-settings .wpps-br-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 600;
}

.wpps-br-settings .wpps-br-fieldset {
	border: none;
	padding: 0;
	margin: 0;
}

/* Settings tab — full width + layout + flat typography */
.wpps-br-tab-panel--settings {
	width: 100%;
	max-width: none;
	margin-top: 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

.wpps-br-settings-page-form {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.wpps-br-settings-layout {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
}

.wpps-br-settings-layout__top {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	width: 100%;
	align-items: stretch;
}

@media (min-width: 1100px) {
	.wpps-br-settings-layout__top {
		grid-template-columns: minmax(320px, 42%) 1fr;
		gap: 24px;
	}
}

.wpps-br-settings-retain-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	width: 100%;
}

@media (min-width: 900px) {
	.wpps-br-settings-retain-grid {
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}
}

.wpps-br-settings-emails-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	width: 100%;
}

@media (min-width: 960px) {
	.wpps-br-settings-emails-row {
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}
}

/* Settings tab cards: no radius / shadow / top ribbon */
.wpps-br-tab-panel--settings .wpps-br-settings-card.wpps-br-card {
	margin-bottom: 0;
	padding: 0;
	border-radius: 0;
	border: 1px solid var(--wpps-br-border);
	box-shadow: none;
	overflow: hidden;
	background: var(--wpps-br-white);
}

.wpps-br-tab-panel--settings .wpps-br-settings-card .wpps-br-sched-header {
	margin: 0;
	padding: 18px 22px 16px;
	background: var(--wpps-br-white);
	border-bottom: 1px solid var(--wpps-br-border);
	align-items: center;
}

.wpps-br-tab-panel--settings .wpps-br-settings-card .wpps-br-sched-body {
	margin-top: 0;
	padding: 20px 22px 22px;
}

.wpps-br-tab-panel--settings .wpps-br-settings-card--compact .wpps-br-sched-body {
	padding-top: 16px;
}

.wpps-br-tab-panel--settings .wpps-br-settings-card__title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--wpps-br-text);
	letter-spacing: normal;
	line-height: 1.4;
}

.wpps-br-tab-panel--settings .wpps-br-settings-card__lead {
	margin: 7px 0 0;
	font-size: 13px;
	line-height: 1.5;
	max-width: none;
	color: var(--wpps-br-muted-strong);
}

.wpps-br-settings-include-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wpps-br-tab-panel--settings .wpps-br-settings-tile {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	min-height: 0;
	padding: 10px 12px;
	background: var(--wpps-br-surface);
	border: 1px solid var(--wpps-br-border);
	border-radius: 0;
	line-height: 1.45;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
	box-shadow: none;
}

.wpps-br-tab-panel--settings .wpps-br-settings-tile:hover {
	background: var(--wpps-br-white);
	border-color: var(--wpps-br-border);
}

.wpps-br-tab-panel--settings .wpps-br-settings-tile:has(input:checked) {
	background: var(--wpps-br-accent-bg);
	border-color: var(--wpps-br-accent);
	border-left-width: 3px;
	border-left-color: var(--wpps-br-accent);
	padding-left: 10px;
	box-shadow: none;
}

.wpps-br-tab-panel--settings .wpps-br-settings-tile__text {
	font-size: 14px;
	font-weight: 400;
	color: var(--wpps-br-text);
}

.wpps-br-settings-tile input {
	margin-top: 3px;
	flex-shrink: 0;
}

.wpps-br-settings-exclude-stack {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.wpps-br-settings-exclude-block + .wpps-br-settings-exclude-block {
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px dashed #e2e4e7;
}

.wpps-br-settings-exclude-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 4px;
	color: var(--wpps-br-text);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.wpps-br-tab-panel--settings .wpps-br-settings-exclude-label {
	font-size: 14px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
}

.wpps-br-settings-exclude-hint {
	margin: 0 0 10px;
	font-size: 12px;
	line-height: 1.5;
}

.wpps-br-settings-textarea {
	display: block;
	width: 100%;
	max-width: none;
	font-size: 12px;
	line-height: 1.5;
	padding: 10px 12px;
	border-radius: 6px;
	border-color: #c6c9cc;
	box-sizing: border-box;
	background: #fcfcfd;
}

.wpps-br-settings-textarea:focus {
	border-color: var(--wpps-br-accent);
	box-shadow: 0 0 0 1px var(--wpps-br-accent);
	outline: none;
}

.wpps-br-tab-panel--settings .wpps-br-settings-card--compact .wpps-br-sched-header {
	padding-bottom: 14px;
}

.wpps-br-settings-number-label {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 14px;
	font-weight: 500;
	color: var(--wpps-br-text);
}

.wpps-br-settings-number-label input.small-text {
	min-width: 4.5em;
	padding: 4px 8px;
	border-radius: 4px;
}

.wpps-br-tab-panel--settings .wpps-br-settings-number-label input.small-text {
	border-radius: 0;
}

.wpps-br-tab-panel--settings .wpps-br-sched-section__label {
	width: 96px;
	font-size: 14px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
	color: var(--wpps-br-muted-strong);
}

.wpps-br-tab-panel--settings .wpps-br-sched-textarea {
	width: 100%;
	max-width: none;
	border-radius: 0;
	font-size: 13px;
}

.wpps-br-tab-panel--settings .wpps-br-settings-textarea {
	border-radius: 0;
	font-size: 13px;
}

.wpps-br-tab-panel--settings .wpps-br-sched-hint {
	font-size: 13px;
}

.wpps-br-tab-panel--settings .wpps-br-settings-exclude-hint {
	font-size: 13px;
}

.wpps-br-settings-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 4px;
	padding: 16px 20px;
	background: var(--wpps-br-white);
	border: 1px solid var(--wpps-br-border);
	border-radius: 0;
	box-shadow: none;
}

.wpps-br-settings-actions .button-large {
	min-height: 38px;
	padding-left: 18px;
	padding-right: 18px;
}

.wpps-br-tab-panel {
	margin-top: 20px;
}

.wpps-br-schedule-card {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: flex-start;
	justify-content: space-between;
	background: var(--wpps-br-white);
	border: 1px solid var(--wpps-br-border);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	padding: 24px;
	margin-bottom: 20px;
}

.wpps-br-schedule-left {
	flex: 1 1 280px;
}

.wpps-br-schedule-left h3 {
	margin-top: 0;
}

.wpps-br-schedule-right {
	flex: 0 0 auto;
	text-align: center;
}

.wpps-br-time-box {
	display: inline-block;
	margin-top: 16px;
	padding: 10px 14px;
	background: var(--wpps-br-bg);
	border: 1px solid var(--wpps-br-border);
	border-radius: 4px;
	font-size: 13px;
	color: var(--wpps-br-text);
}

.wpps-br-muted {
	color: var(--wpps-br-muted);
	font-size: 13px;
}

.wpps-br-upload-panel {
	margin-top: 16px;
	padding: 16px 18px;
	background: var(--wpps-br-bg);
	border: 1px solid var(--wpps-br-border);
	border-radius: 3px;
}

.wpps-br-upload-heading {
	margin: 0 0 8px;
	font-size: 14px;
}

.wpps-br-upload-form .regular-text {
	max-width: 28rem;
}

.wpps-br-upload-advanced {
	margin: 12px 0 16px;
	padding: 10px 12px;
	background: var(--wpps-br-white);
	border: 1px solid var(--wpps-br-border);
	border-radius: 3px;
}

.wpps-br-upload-advanced-summary {
	cursor: pointer;
	font-weight: 600;
	user-select: none;
}

.wpps-br-upload-advanced-summary::-webkit-details-marker {
	display: none;
}

.wpps-br-upload-advanced[open] .wpps-br-upload-advanced-summary {
	margin-bottom: 10px;
}

.wpps-br-upload-options {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	margin: 14px 0 16px;
	align-items: flex-end;
}

.wpps-br-upload-option {
	margin: 0;
}

.wpps-br-plupload-ui {
	margin-top: 4px;
}

.wpps-br-plupload-drop {
	margin: 0;
	padding: 28px 20px;
	text-align: center;
	background: var(--wpps-br-white);
	border: 2px dashed var(--wpps-br-border);
	border-radius: 4px;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.wpps-br-plupload-drop:hover,
.wpps-br-plupload-drop:focus {
	border-color: var(--wpps-br-accent);
	background: var(--wpps-br-accent-bg);
	outline: none;
}

.wpps-br-plupload-drop__text {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--wpps-br-muted-strong);
}


.wpps-br-upload-fallback-details {
	margin-top: 18px;
}

.wpps-br-upload-fallback-summary {
	cursor: pointer;
	font-weight: 600;
	user-select: none;
}

.wpps-br-upload-fallback-summary::-webkit-details-marker {
	display: none;
}

.wpps-br-upload-progress {
	margin-top: 14px;
	max-width: 28rem;
}

.wpps-br-upload-progress__label {
	margin: 0 0 6px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--wpps-br-muted-strong);
}

.wpps-br-upload-progress__track {
	height: 10px;
	background: var(--wpps-br-divider);
	border-radius: 5px;
	overflow: hidden;
}

.wpps-br-upload-progress__bar {
	height: 100%;
	width: 0%;
	background: var(--wp-admin-theme-color, var(--wpps-br-accent));
	border-radius: 5px;
	transition: width 0.12s ease-out, opacity 0.2s ease-out;
}

.wpps-br-upload-progress--indeterminate .wpps-br-upload-progress__bar {
	opacity: 0.45;
	animation: wpps-br-upload-pulse 1s ease-in-out infinite;
}

@keyframes wpps-br-upload-pulse {
	50% {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpps-br-phase--active .dashicons-update {
		animation: none;
	}
	.wpps-br-upload-progress--indeterminate .wpps-br-upload-progress__bar {
		animation: none;
		opacity: 0.7;
	}
	.wpps-br-upload-busy__spinner {
		animation: none;
		border-color: var(--wpps-br-accent);
		opacity: 0.85;
	}
}

.wpps-br-card {
	background: var(--wpps-br-white);
	border: 1px solid var(--wpps-br-border);
	padding: 20px 24px;
	margin-bottom: 20px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	border-radius: 0;
}

.wpps-br-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}

.wpps-br-card-head h3 {
	margin: 0;
	font-size: 14px;
}

.wpps-br-stuck-lock {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.45;
}

.wpps-br-log-view .wpps-br-log-pre {
	max-height: 360px;
	overflow: auto;
	background: var(--wpps-br-surface);
	padding: 12px;
	border: 1px solid var(--wpps-br-border);
	font-size: 12px;
}

.wpps-br-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	margin-left: 8px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	color: var(--wpps-br-white);
	background: #d48a5c;
	border-radius: 999px;
	vertical-align: middle;
}

.wpps-br-disk {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.wpps-br-actions-row {
	font-size: 13px;
	margin-bottom: 12px;
}

.wpps-br-actions-row .button-link:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.wpps-br-sep {
	color: #aaa;
	margin: 0 4px;
	user-select: none;
}

.wpps-br-table .check-column {
	width: 2.2em;
}

.wpps-br-parts .button {
	margin: 0 4px 4px 0;
}

.wpps-br-part-trigger--active {
	box-shadow: 0 0 0 1px var(--wpps-br-accent);
	border-color: var(--wpps-br-accent);
	color: var(--wpps-br-accent);
}

/* Updraft-style component panel */
.wpps-br-part-panel {
	position: relative;
	margin-bottom: 16px;
	padding: 16px 40px 16px 16px;
	background: var(--wpps-br-surface);
	border: 1px dashed var(--wpps-br-border);
	border-radius: 3px;
}

.wpps-br-part-panel__close {
	position: absolute;
	top: 8px;
	right: 10px;
	padding: 4px 8px;
	font-size: 20px;
	line-height: 1;
	color: var(--wpps-br-muted);
	background: transparent;
	border: none;
	cursor: pointer;
	border-radius: 2px;
}

.wpps-br-part-panel__close:hover,
.wpps-br-part-panel__close:focus {
	color: var(--wpps-br-text);
	background: rgba(0, 0, 0, 0.06);
}

.wpps-br-part-panel__status {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.5;
}

.wpps-br-part-panel__loading {
	margin: 0;
	font-size: 13px;
	color: var(--wpps-br-muted);
}

.wpps-br-part-panel__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

/* Shared dialog shell (matches Code Snippet / PowerSuite module modals) */
.wpps-br-dialog {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: 90vh;
	background: var(--wpps-br-white);
	border-radius: 4px;
	box-shadow: var(--wpps-br-dialog-shadow);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	z-index: 1;
}

.wpps-br-dialog--browse {
	max-width: min(96vw, 920px);
	max-height: min(92vh, 820px);
	width: 100%;
}

.wpps-br-dialog__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	border-bottom: 1px solid var(--wpps-br-border);
	flex-shrink: 0;
}

.wpps-br-dialog__title {
	margin: 0;
	padding-right: 8px;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--wpps-br-text);
	flex: 1;
	min-width: 0;
}

.wpps-br-dialog__close {
	flex: 0 0 auto;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: var(--wpps-br-muted-strong);
	cursor: pointer;
	padding: 0 4px;
	transition: color 0.2s;
}

.wpps-br-dialog__close:hover,
.wpps-br-dialog__close:focus {
	color: var(--wpps-br-text);
}

.wpps-br-dialog__body {
	padding: 24px;
	overflow-y: auto;
	flex: 1;
	min-height: 0;
}

.wpps-br-dialog__intro {
	margin: 0 0 16px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--wpps-br-text);
}

.wpps-br-dialog__field {
	margin: 20px 0 0;
}

.wpps-br-dialog__actions {
	margin: 20px 0 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

/* Backup scope: Code Snippet “code type” card pattern */
.wpps-br-scope-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.wpps-br-scope-card {
	position: relative;
	display: flex;
	margin: 0;
	padding: 20px;
	border: 2px solid var(--wpps-br-border);
	border-radius: 4px;
	background: var(--wpps-br-white);
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.wpps-br-scope-card:hover {
	border-color: var(--wpps-br-accent);
	background: #f8fafc;
	box-shadow: 0 2px 8px var(--wpps-br-accent-shadow);
}

.wpps-br-scope-card:has(.wpps-br-scope-card__input:checked) {
	border-color: var(--wpps-br-accent);
	background: var(--wpps-br-accent-bg);
	box-shadow: 0 0 0 1px var(--wpps-br-accent);
}

.wpps-br-scope-card:focus-within {
	outline: 2px solid var(--wpps-br-accent);
	outline-offset: 2px;
}

.wpps-br-scope-card:focus-within:not(:has(.wpps-br-scope-card__input:checked)) {
	box-shadow: 0 0 0 2px var(--wpps-br-accent-ring);
}

.wpps-br-scope-card--span {
	grid-column: 1 / -1;
}

.wpps-br-scope-card__input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wpps-br-scope-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	gap: 8px;
	pointer-events: none;
}

.wpps-br-scope-card__title {
	display: block;
	font-size: 1rem;
	font-weight: 600;
	color: var(--wpps-br-text);
}

.wpps-br-scope-card__desc {
	display: block;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--wpps-br-muted-strong);
}

@media (max-width: 600px) {
	.wpps-br-scope-grid {
		grid-template-columns: 1fr;
	}

	.wpps-br-scope-card--span {
		grid-column: auto;
	}
}

/* Browse archive: file-manager layout (toolbar + list/detail table). */
.wpps-br-dialog__body.wpps-br-browse-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	padding: 0;
	overflow: hidden;
}

.wpps-br-browse-notice {
	margin: 0 16px 0;
	padding: 8px 10px;
	font-size: 12px;
	line-height: 1.45;
	color: var(--wpps-br-muted-strong);
	background: #fcf9e8;
	border: 1px solid var(--wpps-br-warning);
	border-radius: 3px;
	flex-shrink: 0;
}

.wpps-br-dialog__body.wpps-br-browse-body > .wpps-br-browse-notice:not([hidden]) {
	margin-top: 12px;
	margin-bottom: 8px;
}

.wpps-br-fm-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	flex-shrink: 0;
	padding: 10px 16px 12px;
	border-bottom: 1px solid var(--wpps-br-border);
	background: var(--wpps-br-surface);
}

.wpps-br-fm-toolbar__start {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1;
}

.wpps-br-fm-toolbar #wpps-br-fm-up {
	flex-shrink: 0;
}

.wpps-br-fm-breadcrumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 2px 4px;
	margin: 0;
	min-width: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--wpps-br-text);
}

.wpps-br-fm-crumb {
	display: inline;
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--wpps-br-accent);
	font-size: inherit;
	font-family: inherit;
	line-height: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	max-width: 100%;
	text-align: left;
}

.wpps-br-fm-crumb:hover,
.wpps-br-fm-crumb:focus {
	color: var(--wpps-br-accent-hover);
}

.wpps-br-fm-crumb--current {
	color: var(--wpps-br-text);
	font-weight: 600;
	cursor: default;
	text-decoration: none;
}

.wpps-br-fm-crumb-sep {
	color: #787c82;
	user-select: none;
	padding: 0 2px;
}

.wpps-br-fm-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	min-width: 0;
	padding: 12px 16px 16px;
	overflow: hidden;
}

.wpps-br-fm-table-wrap {
	flex: 1;
	min-height: 200px;
	max-height: min(58vh, 560px);
	overflow: auto;
	border: 1px solid var(--wpps-br-border);
	border-radius: 4px;
	background: var(--wpps-br-white);
	-webkit-overflow-scrolling: touch;
}

.wpps-br-fm-table {
	margin: 0;
	border: 0;
	box-shadow: none;
	table-layout: fixed;
	width: 100%;
}

.wpps-br-fm-table thead th {
	font-size: 12px;
	font-weight: 600;
	padding: 8px 10px;
	position: sticky;
	top: 0;
	background: var(--wpps-br-bg);
	z-index: 1;
	border-bottom: 1px solid var(--wpps-br-border);
}

.wpps-br-fm-col-name {
	width: auto;
}

.wpps-br-fm-col-size {
	width: 6.5rem;
	text-align: right;
}

.wpps-br-fm-col-type {
	width: 5rem;
	text-align: left;
}

.wpps-br-fm-table tbody td {
	font-size: 13px;
	padding: 6px 10px;
	vertical-align: middle;
	border-bottom: 1px solid #f0f0f1;
}

.wpps-br-fm-table tbody tr:last-child td {
	border-bottom: none;
}

.wpps-br-fm-row {
	cursor: pointer;
	transition: background 0.1s;
}

.wpps-br-fm-row:hover {
	background: var(--wpps-br-surface);
}

.wpps-br-fm-row--selected {
	background: var(--wpps-br-accent-bg) !important;
}

.wpps-br-fm-cell-name {
	min-width: 0;
}

.wpps-br-fm-name-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.wpps-br-fm-icon {
	flex: 0 0 auto;
	color: #8c8f94;
	line-height: 0;
}

.wpps-br-fm-icon--folder {
	color: var(--wpps-br-accent);
}

.wpps-br-fm-icon svg {
	display: block;
	width: 18px;
	height: 18px;
}

.wpps-br-fm-name-text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--wpps-br-text);
}

.wpps-br-fm-cell-size {
	text-align: right;
	color: var(--wpps-br-muted);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.wpps-br-fm-cell-type {
	color: var(--wpps-br-muted);
	font-size: 12px;
}

.wpps-br-fm-empty {
	text-align: center;
	color: var(--wpps-br-muted);
	padding: 20px 16px !important;
}

.wpps-br-fm-status {
	margin: 10px 0 0;
	padding: 0;
	font-size: 12px;
	line-height: 1.45;
	color: var(--wpps-br-muted-strong);
	min-height: 1.35em;
	word-break: break-word;
}

.wpps-br-fm-sql {
	padding: 20px 24px 24px;
	flex: 1;
	min-height: 0;
	overflow: auto;
}

.wpps-br-fm-sql__meta {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--wpps-br-text);
}

.wpps-br-fm-sql__hint {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--wpps-br-muted-strong);
	max-width: 42rem;
}

.wpps-br-fm-sql__actions {
	margin: 0;
}

.wpps-br-browse-empty {
	margin: 0;
	padding: 20px 24px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--wpps-br-muted);
	text-align: center;
}

.wpps-br-bulk {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.wpps-br-incremental-hint {
	margin-top: 12px;
	max-width: 220px;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

/* Modal */
.wpps-br-modal[hidden] {
	display: none;
}

.wpps-br-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.wpps-br-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	cursor: pointer;
}

.wpps-br-progress {
	margin-top: 12px;
}

.wpps-br-backup-now.button-hero {
	min-width: 200px;
	background: var(--wpps-br-accent);
	border-color: var(--wpps-br-accent);
	text-shadow: none;
	box-shadow: none;
}

.wpps-br-backup-now.button-hero:hover,
.wpps-br-backup-now.button-hero:focus {
	background: var(--wpps-br-accent-hover);
	border-color: var(--wpps-br-accent-hover);
}

/* Live progress (during backup) */
.wpps-br-progress-card {
	padding-bottom: 16px;
}

.wpps-br-progress-head {
	margin-bottom: 10px;
	font-size: 13px;
	color: var(--wpps-br-text);
}

.wpps-br-progress-bar-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.wpps-br-progress-bar-row .wpps-br-progress-track {
	flex: 1;
	margin-bottom: 0;
}

.wpps-br-progress-pct {
	font-size: 13px;
	font-weight: 600;
	color: var(--wpps-br-text);
	min-width: 3.25em;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.wpps-br-progress-track {
	position: relative;
	height: 32px;
	background: var(--wpps-br-divider);
	border-radius: 4px;
	overflow: hidden;
	border: 1px solid var(--wpps-br-border);
	margin-bottom: 10px;
}

.wpps-br-progress-fill {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0;
	background: var(--wp-admin-theme-color, var(--wpps-br-accent));
	transition: width 0.25s ease-out;
	border-radius: 3px 0 0 3px;
}

.wpps-br-progress-label {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 0 12px;
	font-size: 12px;
	font-weight: 600;
	color: var(--wpps-br-text);
	text-shadow: 0 0 2px #fff, 0 0 4px #fff;
	text-align: center;
	line-height: 1.25;
}

.wpps-br-progress-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	font-size: 13px;
	margin: 0;
	color: var(--wpps-br-muted-strong);
}

.wpps-br-progress-meta__activity {
	flex: 1 1 auto;
	min-width: 0;
}

.wpps-br-progress-meta__actions {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.wpps-br-progress-meta__btn {
	margin: 0;
	min-height: 30px;
	height: 30px;
	padding: 0 12px;
	font-size: 13px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	box-sizing: border-box;
	white-space: nowrap;
}

.wpps-br-live-log {
	max-height: 220px;
	overflow: auto;
	margin: 12px 0 0;
	padding: 12px;
	background: var(--wpps-br-surface);
	border: 1px solid var(--wpps-br-border);
	font-size: 11px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-break: break-word;
	font-family: Consolas, Monaco, monospace;
}

.wpps-br-backup-live-log-wrap {
	margin-top: 4px;
}

.wpps-br-backup-live-log-title {
	margin: 14px 0 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--wpps-br-text);
}

.wpps-br-progress-card .wpps-br-backup-live-log-pre,
.wpps-br-restore-run-panel .wpps-br-backup-live-log-pre {
	max-height: min(45vh, 420px);
	margin-top: 0;
}

.wpps-br-delete {
	color: #b32d2e;
	border-color: var(--wpps-br-danger);
}

.wpps-br-delete:hover,
.wpps-br-delete:focus {
	color: var(--wpps-br-white);
	background: #d63638;
	border-color: var(--wpps-br-danger);
}

/* ── Logs accordion (matches code-snippet accordion style) ── */
.wpps-br-accordion {
	margin-top: 16px;
	background: var(--wpps-br-white);
	border: 1px solid var(--wpps-br-border, #c3c4c7);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}
.wpps-br-accordion-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 16px 20px;
	background: none;
	border: none;
	font-size: 1rem;
	font-weight: 600;
	color: var(--wpps-br-text);
	text-align: left;
	cursor: pointer;
	transition: background 0.2s;
}
.wpps-br-accordion-header:hover {
	background: var(--wpps-br-surface);
}
.wpps-br-accordion-title {
	display: flex;
	align-items: center;
	gap: 8px;
}
.wpps-br-accordion-chevron {
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: #787c82;
	transition: transform 0.2s;
}
.wpps-br-accordion.is-open .wpps-br-accordion-chevron {
	transform: rotate(180deg);
}
.wpps-br-accordion-body {
	overflow: hidden;
}
.wpps-br-accordion:not(.is-open) .wpps-br-accordion-body {
	display: none;
}
.wpps-br-accordion.is-open .wpps-br-accordion-body {
	padding: 0 20px 20px;
	border-top: 1px solid var(--wpps-br-border, #c3c4c7);
	margin-top: -1px;
	padding-top: 20px;
}
.wpps-br-activity-log-filters {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 8px 0 12px;
}
.wpps-br-activity-filter-label {
	font-weight: 600;
	margin-right: 2px;
}
.wpps-br-activity-filter.is-active {
	background: var(--wpps-br-accent, var(--wp-admin-theme-color, #2271b1));
	color: var(--wpps-br-white);
	border-color: var(--wpps-br-accent, var(--wp-admin-theme-color, #2271b1));
}
.wpps-br-activity-clear {
	margin-left: auto !important;
	color: #b32d2e;
	border-color: var(--wpps-br-danger);
}
.wpps-br-activity-clear:hover,
.wpps-br-activity-clear:focus {
	color: var(--wpps-br-white);
	background: #d63638;
	border-color: var(--wpps-br-danger);
}
.wpps-br-activity-log-table {
	font-size: 13px;
}
.wpps-br-al-col-type { width: 80px; }
.wpps-br-al-col-time { width: 150px; white-space: nowrap; }
.wpps-br-al-col-id { width: 180px; }
.wpps-br-al-col-size { width: 80px; white-space: nowrap; }
.wpps-br-al-col-actions { width: 220px; white-space: nowrap; }
.wpps-br-al-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	line-height: 1.4;
}
.wpps-br-al-badge--backup {
	background: #dff0d8;
	color: #3c763d;
}
.wpps-br-al-badge--restore {
	background: #d9edf7;
	color: #31708f;
}
.wpps-br-al-badge--upload {
	background: #fcf8e3;
	color: #8a6d3b;
}
.wpps-br-al-badge--unknown {
	background: #eee;
	color: #666;
}
.wpps-br-activity-log-table tr.wpps-br-al-hidden {
	display: none;
}

/* ── Bundle timeline ────────────────────────────────────────────── */
.wpps-br-bundle-timeline {
	margin: 4px 0 8px;
}
.wpps-br-btl-step {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--wpps-br-muted);
	border-left: 2px solid #e0e0e0;
	margin-left: 9px;
	padding-left: 16px;
	position: relative;
}
.wpps-br-btl-step:first-child { padding-top: 0; }
.wpps-br-btl-step:last-child  { border-left-color: transparent; }
.wpps-br-btl-step::before {
	content: '';
	position: absolute;
	left: -7px;
	top: 50%;
	transform: translateY(-50%);
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #e0e0e0;
	border: 2px solid #fff;
	box-sizing: border-box;
}
.wpps-br-btl-step:first-child::before { top: 6px; transform: none; }
.wpps-br-btl-step:last-child::before  { top: 6px; transform: none; }
.wpps-br-btl-step--done {
	color: var(--wpps-br-text);
	border-left-color: #46b450;
}
.wpps-br-btl-step--done::before {
	background: #46b450;
}
.wpps-br-btl-step--active {
	color: var(--wpps-br-accent);
	font-weight: 500;
	border-left-color: var(--wpps-br-accent);
}
.wpps-br-btl-step--active::before {
	background: var(--wpps-br-accent);
	animation: wpps-btl-pulse 1.4s ease-in-out infinite;
}
@keyframes wpps-btl-pulse {
	0%, 100% { box-shadow: 0 0 0 0 var(--wpps-br-accent-ring); }
	50%      { box-shadow: 0 0 0 5px transparent; }
}
.wpps-br-btl-icon {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.wpps-br-btl-icon .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 18px;
}
.wpps-br-btl-label {
	flex: 1;
	min-width: 0;
}
.wpps-br-btl-time {
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
	font-size: 12px;
	color: var(--wpps-br-muted);
	white-space: nowrap;
}
.wpps-br-btl-parts {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin: 2px 0 4px 37px;
}
.wpps-br-btl-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	background: var(--wpps-br-bg);
	border-radius: 10px;
	font-size: 11px;
	color: var(--wpps-br-muted-strong);
	line-height: 1.5;
}
.wpps-br-btl-chip-size {
	color: var(--wpps-br-muted);
}

/* ── Restore complete: Elementor notice ─────────────────────────────── */
.wpps-br-restore-elementor-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #fff8e5;
	border-left: 4px solid #dba617;
	padding: 12px 16px;
	border-radius: 4px;
	margin: 14px 0;
	font-size: 13px;
	color: #6b5300;
	text-align: left;
}
.wpps-br-restore-elementor-notice .dashicons {
	flex-shrink: 0;
	margin-top: 2px;
	color: #dba617;
}
.wpps-br-restore-elementor-notice p {
	margin: 4px 0 0;
	font-weight: 400;
}

/* ── Schedule tab ──────────────────────────────────────────────────── */
.wpps-br-sched {
}
.wpps-br-sched-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}
.wpps-br-sched-header__text {
	flex: 1;
	min-width: 0;
}

/* toggle switch */
.wpps-br-sched-toggle {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 24px;
	flex-shrink: 0;
	cursor: pointer;
}
.wpps-br-sched-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}
.wpps-br-sched-toggle__slider {
	position: absolute;
	inset: 0;
	background: #c3c4c7;
	border-radius: 24px;
	transition: background 0.2s;
}
.wpps-br-sched-toggle__slider::before {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	left: 3px;
	top: 3px;
	background: var(--wpps-br-white);
	border-radius: 50%;
	transition: transform 0.2s;
	box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.wpps-br-sched-toggle input:checked + .wpps-br-sched-toggle__slider {
	background: var(--wpps-br-accent);
}
.wpps-br-sched-toggle input:checked + .wpps-br-sched-toggle__slider::before {
	transform: translateX(18px);
}
.wpps-br-sched-toggle input:focus-visible + .wpps-br-sched-toggle__slider {
	box-shadow: 0 0 0 2px var(--wpps-br-accent);
}

/* next-run banner */
.wpps-br-sched-next {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 6px;
	margin-top: 16px;
	font-size: 13px;
	line-height: 1.4;
}
.wpps-br-sched-next .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}
.wpps-br-sched-next--active {
	background: #edf7ed;
	color: #1e4620;
}
.wpps-br-sched-next--warn {
	background: #fff8e5;
	color: #8a6d3b;
}
.wpps-br-sched-countdown {
	margin-left: auto;
	padding: 2px 10px;
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	background: rgba(30, 70, 32, 0.1);
	border-radius: 10px;
	white-space: nowrap;
}

/* body / sections */
.wpps-br-sched-body {
	margin-top: 20px;
}
.wpps-br-sched-section {
	display: flex;
	align-items: flex-start;
	gap: 0;
	padding: 14px 0;
	border-top: 1px solid #f0f0f1;
}
.wpps-br-sched-section:first-child {
	border-top: none;
	padding-top: 0;
}
.wpps-br-sched-section__label {
	width: 80px;
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wpps-br-muted-strong);
	padding-top: 7px;
}
.wpps-br-sched-section__fields {
	flex: 1;
	min-width: 0;
}

/* inline "When" row */
.wpps-br-sched-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}
.wpps-br-sched-inline-field {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--wpps-br-muted-strong);
}
.wpps-br-sched-select {
	min-width: 110px;
	padding: 5px 8px;
	font-size: 13px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background: var(--wpps-br-white);
}
.wpps-br-sched-select--narrow {
	min-width: 60px;
}
.wpps-br-sched-time {
	width: 100px;
	padding: 5px 8px;
	font-size: 13px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
}
.wpps-br-sched-hint {
	margin: 6px 0 0;
	font-size: 12px;
	color: #8c8f94;
}

/* Schedule: site time + timezone inline */
.wpps-br-sched-clocks {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--wpps-br-muted-strong);
}

.wpps-br-sched-clocks__time {
	font-weight: 600;
	color: var(--wpps-br-text);
	font-variant-numeric: tabular-nums;
}

.wpps-br-sched-clocks__sep {
	color: #c3c4c7;
	font-weight: 300;
	user-select: none;
}

.wpps-br-sched-clocks__tz {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
}

.wpps-br-sched-clocks__tz-id {
	margin: 0;
	padding: 2px 8px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--wpps-br-text);
	background: var(--wpps-br-bg);
	border: 1px solid #dcdcde;
	border-radius: 4px;
}

.wpps-br-sched-clocks__offset {
	font-size: 12px;
	color: var(--wpps-br-muted);
	font-variant-numeric: tabular-nums;
}

.wpps-br-sched-hint--tz-detail {
	margin-top: 10px;
	max-width: 640px;
	font-size: 12px;
	line-height: 1.55;
	color: var(--wpps-br-muted);
}

.wpps-br-sched-hint--tz-detail a {
	text-decoration: none;
}

.wpps-br-sched-hint--tz-detail a:hover,
.wpps-br-sched-hint--tz-detail a:focus {
	text-decoration: underline;
}

.wpps-br-sched-hint--tz-detail code {
	font-size: 11px;
	padding: 1px 5px;
	background: var(--wpps-br-surface);
	border-radius: 3px;
}

/* backup type pills */
.wpps-br-sched-type-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.wpps-br-sched-type-pill {
	position: relative;
	cursor: pointer;
}
.wpps-br-sched-type-pill input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.wpps-br-sched-type-pill__text {
	display: inline-block;
	padding: 6px 16px;
	font-size: 13px;
	font-weight: 500;
	border: 1px solid var(--wpps-br-border);
	border-radius: 20px;
	background: var(--wpps-br-white);
	color: var(--wpps-br-muted-strong);
	transition: all 0.15s;
	user-select: none;
}
.wpps-br-sched-type-pill input:checked + .wpps-br-sched-type-pill__text {
	background: var(--wpps-br-accent);
	border-color: var(--wpps-br-accent);
	color: var(--wpps-br-white);
}
.wpps-br-sched-type-pill input:focus-visible + .wpps-br-sched-type-pill__text {
	box-shadow: 0 0 0 2px var(--wpps-br-accent-ring);
}
.wpps-br-sched-type-pill__text:hover {
	border-color: var(--wpps-br-accent);
	color: var(--wpps-br-accent);
}
.wpps-br-sched-type-pill input:checked + .wpps-br-sched-type-pill__text:hover {
	color: var(--wpps-br-white);
}

/* email textarea */
.wpps-br-sched-textarea {
	width: 100%;
	max-width: 360px;
	padding: 8px 10px;
	font-size: 13px;
	font-family: inherit;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	resize: vertical;
}
