html, body {
	margin: 0;
	min-height: 100%;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: #0f172a;
	color: #e5e7eb;
}
header {
	padding: 1rem 1.25rem;
	border-bottom: 1px solid #334155;
}
h1 { margin: 0 0 0.35rem; font-size: 1.25rem; }
p { margin: 0; color: #94a3b8; }
main {
	display: grid;
	grid-template-columns: minmax(18rem, 24rem) 1fr;
	height: calc(100vh - 5rem);
	min-height: 38rem;
}
.controls {
	padding: 1rem;
	border-right: 1px solid #334155;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-height: 0;
}
label, h2 { font-weight: 700; }
textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 12rem;
	resize: vertical;
	border: 1px solid #475569;
	border-radius: 0.5rem;
	padding: 0.75rem;
	background: #020617;
	color: #e5e7eb;
	font: 0.875rem/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
button {
	border: 1px solid #475569;
	border-radius: 0.4rem;
	background: #1e293b;
	color: #f8fafc;
	padding: 0.45rem 0.7rem;
	cursor: pointer;
}
button:hover { background: #334155; }
#log {
	flex: 1;
	min-height: 0;
	overflow: auto;
	margin: 0;
	padding: 0.75rem;
	border-radius: 0.5rem;
	background: #020617;
	border: 1px solid #334155;
	font-size: 0.75rem;
	white-space: pre-wrap;
}
.frame-section { min-width: 0; min-height: 0; }
iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: white;
}
@media (max-width: 860px) {
	main { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; }
	.controls { border-right: 0; border-bottom: 1px solid #334155; }
	.frame-section { height: 42rem; }
}
