* {
	box-sizing: border-box;
}
html,
body {
	margin: 0;
	padding: 0;
	height: 100%;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
	background: #0f1221;
	color: #e8ecf1;
	overflow: hidden;
}
.app-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: #1a1f3a;
	border-bottom: 1px solid #2a2f56;
}
.brand {
	font-weight: 700;
}
.controls {
	display: flex;
	gap: 8px;
	align-items: center;
}
.controls select,
.controls button {
	background: #0f1221;
	color: #e8ecf1;
	border: 1px solid #2a2f56;
	border-radius: 6px;
	padding: 6px 10px;
}
.controls button:hover {
	background: #171b30;
}
.layout {
	display: grid;
	grid-template-columns: 1fr 520px;
	gap: 0;
	height: calc(100vh - 56px);
	min-height: 0;
}
.play-area {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 12px;
}
.canvas-mount {
	width: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	border-right: 1px solid #2a2f56;
	height: 100%;
	padding-top: 8px;
}
.canvas-mount canvas {
	/* Force canvas to pin to the top of the mount and ignore any injected styles */
	margin: 0 !important;
	display: block !important;
	align-self: flex-start !important;
	position: relative !important;
	top: 0 !important;
	left: 0 !important;
}
.hint {
	position: absolute;
	bottom: 12px;
	left: 12px;
	font-size: 12px;
	color: #aeb6d0;
}
.code-pane {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	overflow: hidden;
}
.code-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border-bottom: 1px solid #2a2f56;
	background: #121632;
}
.code-header .note {
	font-size: 12px;
	color: #aeb6d0;
}
.code-viewer {
	margin: 0;
	padding: 12px;
	overflow: auto;
	flex: 1;
	min-height: 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Monospace;
	font-size: 13px;
	line-height: 1.4;
	tab-size: 2;
	white-space: pre;
}
