.tfiber-ajax-toast-stack {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 100050;
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: min(420px, calc(100vw - 32px));
	pointer-events: none;
}

.tfiber-ajax-toast {
	pointer-events: auto;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 10px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
	background: #7f1d1d;
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	animation: tfiber-ajax-toast-in 0.2s ease-out;
}

.tfiber-ajax-toast__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tfiber-ajax-toast__hint {
	display: block;
	font-size: 12px;
	opacity: 0.9;
	word-break: break-word;
}

.tfiber-ajax-toast__details-toggle {
	align-self: flex-start;
	border: 0;
	background: rgba(255, 255, 255, 0.14);
	color: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 6px;
	text-decoration: underline;
}

.tfiber-ajax-toast__details-toggle:hover {
	background: rgba(255, 255, 255, 0.22);
}

.tfiber-ajax-toast__details-toggle:disabled {
	opacity: 0.7;
	cursor: wait;
}

.tfiber-ajax-toast__details {
	margin-top: 2px;
	padding: 8px 10px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.22);
	font-size: 12px;
	line-height: 1.45;
	word-break: break-word;
	max-height: 200px;
	overflow: auto;
}

.tfiber-ajax-toast__details-line + .tfiber-ajax-toast__details-line {
	margin-top: 4px;
}

.tfiber-ajax-toast.is-dismissed {
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.tfiber-ajax-toast__text {
	flex: 1;
	min-width: 0;
}

.tfiber-ajax-toast__dismiss {
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.85;
	padding: 0 2px;
}

.tfiber-ajax-toast__dismiss:hover {
	opacity: 1;
}

@keyframes tfiber-ajax-toast-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Connection-loss banner (also in public.css on jobs table pages) */
.tfiber-jobs-connection-popup {
	align-items: center;
	background:
		radial-gradient(circle at 16% 0%, rgba(255, 180, 84, 0.34), transparent 36%),
		linear-gradient(135deg, rgba(127, 29, 29, 0.98), rgba(30, 41, 59, 0.97));
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 18px;
	box-shadow: 0 18px 46px rgba(15, 23, 42, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.14);
	color: #f8fafc;
	display: flex;
	gap: 12px;
	max-width: min(380px, calc(100vw - 24px));
	opacity: 0;
	padding: 13px 14px;
	pointer-events: none;
	position: fixed;
	right: 16px;
	top: 18px;
	transform: translateY(-10px);
	transition: opacity 160ms ease, transform 160ms ease;
	z-index: 100003;
}

.tfiber-jobs-connection-popup.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.tfiber-jobs-connection-popup > div {
	display: grid;
	gap: 3px;
}

.tfiber-jobs-connection-popup strong {
	color: #ffb454;
	font-size: 14px;
	font-weight: 900;
	text-transform: uppercase;
}

.tfiber-jobs-connection-popup span {
	color: #fff7ed;
	font-size: 13px;
	font-weight: 800;
}

.tfiber-jobs-connection-popup .tfiber-connection-queued {
	color: #fde68a;
	font-size: 12px;
	font-weight: 800;
}

.tfiber-jobs-connection-popup.is-syncing {
	background:
		radial-gradient(circle at 16% 0%, rgba(110, 231, 183, 0.28), transparent 36%),
		linear-gradient(135deg, rgba(6, 78, 59, 0.98), rgba(30, 41, 59, 0.97));
}

.tfiber-jobs-connection-popup.is-syncing strong {
	color: #6ee7b7;
}

.tfiber-jobs-connection-popup .tfiber-connection-dismiss {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font-size: 18px;
	font-weight: 900;
	height: 28px;
	line-height: 24px;
	width: 28px;
}
