.toast-container {
	position: fixed;
	top: 1rem;
	right: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	z-index: 9999;
	max-width: min(420px, calc(100vw - 2rem));
}

.toast {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.9rem 1rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
	transform: translateY(-4px);
	opacity: 0;
	animation: toast-in 180ms ease-out forwards;
}

.toast.is-leaving {
	animation: toast-out 180ms ease-in forwards;
}

.toast.is-success { border-left: 5px solid #16a34a; }
.toast.is-error { border-left: 5px solid #dc2626; }
.toast.is-info { border-left: 5px solid #2563eb; }
.toast.is-warning { border-left: 5px solid #d97706; }

.toast-body {
	min-width: 0;
}

.toast-title {
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 0.15rem;
	font-size: 0.95rem;
	line-height: 1.2;
}

.toast-message {
	color: #334155;
	font-size: 0.9rem;
	line-height: 1.35;
	word-break: break-word;
}

.toast-close {
	appearance: none;
	border: 0;
	background: transparent;
	color: #334155;
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1;
	padding: 0.15rem 0.25rem;
	border-radius: 8px;
}

.toast-close:hover {
	background: rgba(15, 23, 42, 0.06);
}

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

@keyframes toast-out {
	from { opacity: 1; transform: translateY(0); }
	to { opacity: 0; transform: translateY(-6px); }
}

@media (max-width: 520px) {
	.toast-container {
		left: 1rem;
		right: 1rem;
		max-width: calc(100vw - 2rem);
	}
}
