.xota-ui-toast-stack {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 10px;
	left: 50%;
	max-width: min(420px, calc(100vw - 32px));
	position: fixed;
	top: 60px;
	transform: translateX(-50%);
	width: 100%;
	z-index: 100000;
}

.xota-ui-toast {
	align-items: flex-start;
	animation: xota-ui-toast-in 0.18s ease-out;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-left: 4px solid #2563eb;
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
	color: #0f172a;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	padding: 13px 12px 13px 16px;
	width: 100%;
}

.xota-ui-toast--leaving {
	animation: xota-ui-toast-out 0.18s ease-in forwards;
}

.xota-ui-toast--success {
	border-left-color: #16a34a;
}

.xota-ui-toast--error {
	border-left-color: #dc2626;
}

.xota-ui-toast--warning {
	border-left-color: #f59e0b;
}

.xota-ui-toast--info {
	border-left-color: #2563eb;
}

.xota-ui-toast__content {
	min-width: 0;
}

.xota-ui-toast__content p {
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}

.xota-ui-toast__close {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: #64748b;
	cursor: pointer;
	display: inline-flex;
	font-size: 20px;
	height: 28px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 28px;
}

.xota-ui-toast__close:hover,
.xota-ui-toast__close:focus-visible {
	background: #f1f5f9;
	color: #0f172a;
	outline: none;
}

.xota-ui-modal-open {
	overflow: hidden;
}

.xota-ui-modal-overlay {
	align-items: center;
	background: rgba(15, 23, 42, 0.52);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: fixed;
	z-index: 100001;
}

.xota-ui-modal {
	animation: xota-ui-modal-in 0.16s ease-out;
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
	color: #0f172a;
	max-width: 460px;
	overflow: hidden;
	width: 100%;
}

.xota-ui-modal__header,
.xota-ui-modal__body,
.xota-ui-modal__footer {
	padding-left: 22px;
	padding-right: 22px;
}

.xota-ui-modal__header {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	padding-top: 22px;
}

.xota-ui-modal__title {
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
	margin: 0;
}

.xota-ui-modal__body {
	max-height: 60vh;
	overflow-y: auto;
	padding-bottom: 20px;
	padding-top: 10px;
}

.xota-ui-modal__body p {
	color: #475569;
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

.xota-ui-modal__footer {
	align-items: center;
	background: #f8fafc;
	border-top: 1px solid #e5e7eb;
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	padding-bottom: 16px;
	padding-top: 16px;
}

.xota-ui-modal__close {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: #64748b;
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 24px;
	height: 32px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 32px;
}

.xota-ui-modal__close:hover,
.xota-ui-modal__close:focus-visible {
	background: #f1f5f9;
	color: #0f172a;
	outline: none;
}

.xota-ui-detail {
	display: grid;
	gap: 10px;
	margin: 0;
}

.xota-ui-detail dt {
	color: #64748b;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 3px;
}

.xota-ui-detail dd {
	color: #0f172a;
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}

.xota-ui-detail pre {
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 12px;
	margin: 0;
	overflow-x: auto;
	padding: 10px;
	white-space: pre-wrap;
	word-break: break-word;
}

.xota-ui-button {
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	min-height: 38px;
	padding: 9px 14px;
}

.xota-ui-button:focus-visible {
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
	outline: none;
}

.xota-ui-button--primary {
	background: #2563eb;
	color: #ffffff;
}

.xota-ui-button--primary:hover {
	background: #1d4ed8;
}

.xota-ui-button--secondary {
	background: #ffffff;
	border-color: #e5e7eb;
	color: #0f172a;
}

.xota-ui-button--secondary:hover {
	border-color: #cbd5e1;
}

.xota-ui-button--danger {
	background: #dc2626;
	color: #ffffff;
}

.xota-ui-button--danger:hover {
	background: #b91c1c;
}

.xota-ui-is-loading {
	cursor: progress;
	opacity: 0.75;
}

@keyframes xota-ui-toast-in {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes xota-ui-toast-out {
	from {
		opacity: 1;
		transform: translateY(0);
	}

	to {
		opacity: 0;
		transform: translateY(-8px);
	}
}

@keyframes xota-ui-modal-in {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.98);
	}

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

@media (max-width: 480px) {
	.xota-ui-modal-overlay {
		align-items: flex-end;
		padding: 12px;
	}

	.xota-ui-modal {
		border-radius: 12px;
	}

	.xota-ui-modal__footer {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.xota-ui-button {
		width: 100%;
	}
}
