/* JSON ↔ HTML Converter — scoped under .aah-tool via the shared wrapper. */

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

.aah-jsonhtml__controls label {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-weight: 700;
}

.aah-jsonhtml__controls select,
.aah-jsonhtml__controls input[type="text"] {
	font-weight: 400;
}

.aah-jsonhtml__controls select:disabled {
	opacity: 0.5;
}

.aah-jsonhtml__check {
	flex-direction: row !important;
	align-items: center;
	gap: 0.4rem;
	font-weight: 400;
}

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

.aah-jsonhtml__panels {
	display: flex;
	gap: 1rem;
	align-items: stretch;
	margin-bottom: 0.75rem;
}

.aah-jsonhtml__col {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.aah-jsonhtml__col label {
	font-weight: 700;
}

.aah-jsonhtml__col textarea {
	width: 100%;
	min-height: 320px;
	flex: 1;
	resize: vertical;
	font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
	font-size: 0.9em;
	line-height: 1.5;
}

.aah-jsonhtml__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

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

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

@media (max-width: 700px) {
	.aah-jsonhtml__panels {
		flex-direction: column;
	}
}
