.atx-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(17, 17, 17, 0.55);
	opacity: 0;
	transition: opacity 0.2s ease;
	box-sizing: border-box;
}

.atx-overlay.atx-visible { opacity: 1; }

.atx-modal {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 32px 28px 24px;
	background: #fff;
	color: #1d2327;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	font-size: 16px;
	line-height: 1.55;
	transform: translateY(12px) scale(0.98);
	transition: transform 0.2s ease;
	box-sizing: border-box;
}

.atx-overlay.atx-visible .atx-modal { transform: none; }

.atx-close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #50575e;
	font-size: 28px;
	line-height: 36px;
	cursor: pointer;
}

.atx-close:hover,
.atx-close:focus-visible { background: #f0f0f1; color: #1d2327; outline: none; }

.atx-modal .atx-title {
	margin: 0 32px 12px 0;
	font-size: 22px;
	line-height: 1.3;
}

.atx-content h2 { font-size: 20px; margin: 16px 0 8px; line-height: 1.3; }
.atx-content h3 { font-size: 17px; margin: 14px 0 6px; line-height: 1.3; }
.atx-content p { margin: 0 0 10px; }
.atx-content a { color: #2271b1; text-decoration: underline; word-break: break-word; }
.atx-content a:hover,
.atx-content a:focus { color: #135e96; }
.atx-content > :last-child { margin-bottom: 0; }

@media (max-width: 480px) {
	.atx-modal { padding: 28px 18px 18px; }
}
