* { box-sizing: border-box; }
body {
	margin: 0;
	display: grid;
	grid-template-columns: 26rem 1fr;
	height: 100vh;
	font: 14px/1.5 system-ui, sans-serif;
	color: #222;
}
aside {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	padding: 1.25rem;
	background: #1e1e1e;
	color: #ddd;
	min-height: 0;
}
h1 { margin: 0; font-size: 16px; color: #fff; }
p { margin: 0; color: #aaa; }
nav { display: flex; flex-wrap: wrap; gap: .375rem; }
aside button {
	font: inherit;
	font-size: 13px;
	padding: .25rem .625rem;
	border: 1px solid #444;
	border-radius: 4px;
	background: #2a2a2a;
	color: #ddd;
	cursor: pointer;
}
aside button:hover { background: #333; }
nav button[aria-current="true"] { background: #fff; color: #111; border-color: #fff; }
.file span { font-size: 12px; color: #888; font-family: ui-monospace, monospace; }
.file { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
#editor { flex: 1; min-height: 0; }
#editor:not([data-enabled]) { opacity: .5; }
#status { min-height: 3em; font-size: 13px; color: #8c8; }
#status[data-error] { color: #f88; }
main { position: relative; }
iframe { width: 100%; height: 100%; border: 0; display: block; }
#loading {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: #f5f5f5;
	color: #666;
}
#loading[hidden] { display: none; }
