.vmafp-toast-root {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 99999;
	display: grid;
	gap: 0.75rem;
	max-width: min(24rem, calc(100vw - 2rem));
}

.vmafp-toast {
	padding: 0.85rem 1rem;
	border-radius: 0.75rem;
	color: #fff;
	background: #1d2327;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.vmafp-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.vmafp-toast--success {
	background: #0f6d3d;
}

.vmafp-toast--error {
	background: #b32d2e;
}

.vmafp-toast--info {
	background: #1d4ed8;
}

.vmafp-loading-overlay {
	position: fixed;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(15, 23, 42, 0.35);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	z-index: 99998;
}

.vmafp-loading-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

.vmafp-overlay__panel {
	display: grid;
	justify-items: center;
	gap: 0.75rem;
	padding: 1.25rem 1.5rem;
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.vmafp-spinner,
.button.is-loading::after,
.vmafp-is-loading::after {
	width: 1.25rem;
	height: 1.25rem;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: currentColor;
	border-radius: 50%;
	animation: vmafp-spin 0.8s linear infinite;
}

.vmafp-spinner {
	border-color: rgba(29, 35, 39, 0.15);
	border-top-color: #2271b1;
}

.vmafp-is-loading {
	position: relative;
	pointer-events: none;
}

.vmafp-hidden {
	display: none !important;
}

.vmafp-admin-wrap {
	max-width: 1200px;
}

.vmafp-admin-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 1rem 0 1.5rem;
	padding: 1.5rem;
	border-radius: 1rem;
	background: linear-gradient(135deg, #f6f7f7 0%, #eef3f8 100%);
}

.vmafp-admin-hero h1 {
	margin: 0 0 0.5rem;
}

.vmafp-admin-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.vmafp-admin-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1rem;
}

.vmafp-card {
	padding: 1.25rem;
	border: 1px solid #dcdcde;
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.vmafp-card--wide {
	grid-column: 1 / -1;
}

.vmafp-status-list,
.vmafp-system-list,
.vmafp-conflict-results ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vmafp-status-list li,
.vmafp-system-list li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid #f0f0f1;
}

.vmafp-status-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.vmafp-status-badge.is-healthy {
	background: #d5f5e1;
	color: #0f6d3d;
}

.vmafp-status-badge.is-error {
	background: #f8d7da;
	color: #842029;
}

.vmafp-admin-notices {
	position: sticky;
	top: 2rem;
	z-index: 20;
	display: grid;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.vmafp-admin-notice {
	padding: 0.85rem 1rem;
	border-left: 4px solid #2271b1;
	border-radius: 0.5rem;
	background: #fff;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.vmafp-admin-notice.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.vmafp-admin-notice--success {
	border-left-color: #0f6d3d;
}

.vmafp-admin-notice--error {
	border-left-color: #b32d2e;
}

.vmafp-table-wrap {
	overflow-x: auto;
}

@keyframes vmafp-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 782px) {
	.vmafp-admin-hero,
	.vmafp-admin-hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.vmafp-toast-root {
		left: 1rem;
		right: 1rem;
	}
}
