:root {
	color-scheme: dark;
	font-family: Inter, ui-sans-serif, system-ui, sans-serif;
	background: #101827;
	color: #edf2f7;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	min-width: 320px;
	background: #101827;
}
button,
input {
	font: inherit;
}
button {
	cursor: pointer;
}
.shell {
	width: min(1440px, 100%);
	margin: 0 auto;
	padding: 24px;
}
.topbar {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}
.topbar h1 {
	margin: 0;
	font-size: clamp(20px, 3vw, 30px);
}
.muted {
	color: #9aa8bb;
}
.pill {
	border: 1px solid #33445d;
	border-radius: 999px;
	padding: 4px 9px;
	color: #a8e7d5;
	font-size: 12px;
}
.panel {
	background: #182338;
	border: 1px solid #2b3a53;
	border-radius: 16px;
	padding: 16px;
}
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 16px;
}
.stage {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 12px;
}
.tile {
	position: relative;
	min-height: 180px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0b1120;
	border-radius: 12px;
	border: 1px solid #2b3a53;
}
.tile video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tile strong {
	position: absolute;
	inset: auto 10px 10px;
	text-shadow: 0 1px 3px #000;
}
.controls,
.row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.controls {
	margin-top: 14px;
}
button {
	border: 1px solid #3c506e;
	border-radius: 9px;
	padding: 9px 12px;
	color: #f7fafc;
	background: #24334c;
}
button.primary {
	background: #0e9f8e;
	border-color: #0e9f8e;
}
button.danger {
	background: #a33b4f;
	border-color: #a33b4f;
}
button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
input {
	width: 100%;
	border: 1px solid #3c506e;
	border-radius: 8px;
	padding: 9px 10px;
	color: #f7fafc;
	background: #101827;
}
label {
	display: grid;
	gap: 6px;
	color: #b8c4d6;
	font-size: 13px;
}
form {
	display: grid;
	gap: 10px;
}
.side {
	display: grid;
	gap: 12px;
	align-content: start;
}
.chat {
	display: grid;
	gap: 8px;
	max-height: 360px;
	overflow: auto;
}
.message {
	padding: 8px 10px;
	border-radius: 9px;
	background: #22314a;
}
.message small {
	display: block;
	color: #9aa8bb;
	margin-bottom: 3px;
}
.status {
	min-height: 24px;
	color: #a8e7d5;
	font-size: 13px;
}
.room-list,
.participant-list,
.recording-list {
	display: grid;
	gap: 8px;
}
.room-card,
.participant-card,
.recording-card {
	padding: 10px;
	border: 1px solid #33445d;
	border-radius: 10px;
	background: #1e2b42;
}
.room-card.active {
	border-color: #59c9b1;
	box-shadow: inset 0 0 0 1px #59c9b1;
}
a {
	color: #a8e7d5;
}
@media (max-width: 880px) {
	.layout {
		grid-template-columns: 1fr;
	}
	.side {
		order: -1;
	}
	.shell {
		padding: 14px;
	}
}
