.page-application-email .ae-top-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: flex-end;
}

.page-application-email .nd-chart-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
}

.ae-template-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ae-template-pill {
	border: 1px solid var(--border-color-light, rgba(255, 255, 255, 0.12));
	background: transparent;
	color: var(--default-color);
	border-radius: 999px;
	padding: 0.4rem 0.9rem;
	font-size: 0.82rem;
	font-weight: 600;
}

.ae-preview-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.75rem;
}

.ae-complete {
	display: flex;
	gap: 0.4rem;
	align-items: baseline;
	font-size: 0.82rem;
}

.ae-preview-stage {
	background: #edf0f4;
	border-radius: 16px;
	padding: 1rem;
}

.ae-sheet {
	background: #fff;
	color: #1b2430;
	border-radius: 14px;
	box-shadow: 0 14px 32px rgba(16, 24, 40, 0.1);
	overflow: hidden;
	min-height: 280px;
}

.ae-empty {
	padding: 2rem 1.4rem;
	color: #5b6673;
	font-size: 0.95rem;
}

.ae-mail-head {
	padding: 1rem 1.2rem;
	background: #f6f8fb;
	border-bottom: 1px solid #e4e9ef;
}

.ae-mail-row {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 0.6rem;
	align-items: start;
	margin-bottom: 0.45rem;
	font-size: 0.86rem;
}

.ae-mail-row:last-child {
	margin-bottom: 0;
}

.ae-mail-row span {
	color: #667384;
	font-weight: 600;
}

.ae-mail-row strong {
	color: #1b2430;
	font-weight: 700;
	word-break: break-word;
}

.ae-mail-body {
	padding: 1.2rem 1.25rem 1.4rem;
	font-size: 0.95rem;
	line-height: 1.55;
}

.ae-greeting {
	margin: 0 0 0.85rem;
	font-weight: 600;
}

.ae-copy {
	white-space: pre-wrap;
}

.ae-sign {
	margin-top: 1.25rem;
	line-height: 1.45;
}

.ae-sign-meta {
	color: #5b6673;
	font-size: 0.84rem;
}

@media (min-width: 1200px) {
	.ae-preview-col {
		position: sticky;
		top: 88px;
		align-self: flex-start;
	}
}

@media (max-width: 767.98px) {
	.page-application-email .ae-top-actions {
		justify-content: flex-start;
	}
}
