/* HTML Formatter — scoped under .aah-tool via the shared wrapper. */

.aah-format__panels {
	display: block;
}

.aah-format__col textarea {
	width: 100%;
	min-height: 260px;
	resize: vertical;
	font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
	font-size: 0.92em;
	line-height: 1.55;
}

.aah-format__settings {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	align-items: flex-end;
	margin-top: 0.75rem;
}

.aah-format__field {
	flex: 0 1 220px;
}

.aah-format__check {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0.25rem 0;
	font-weight: 400;
}

.aah-format__check input {
	width: auto;
	margin: 0;
	accent-color: var(--aah-crimson);
}

.aah-format__actions {
	margin-top: 0.5rem;
}

.aah-format__status {
	color: var(--aah-muted);
	font-weight: 600;
}

.aah-format__status:empty {
	display: none;
}

.aah-format__warnings {
	margin-top: 0.5rem;
}

.aah-format__warnings:empty {
	display: none;
}

.aah-format__warnings p {
	margin: 0 0 0.3rem;
}

.aah-format__warnings ul {
	margin: 0;
	padding-left: 1.25rem;
	color: var(--aah-crimson-dark);
	font-weight: 600;
}

/* Desktop: input on the left, output on the right. */
@media (min-width: 900px) {
	.aah-format__panels {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1.5rem;
		align-items: start;
	}
}
