.cs-lobby {
	margin: 0;
	min-height: 100vh;
	background:
		radial-gradient(circle at 50% 0, rgba(216, 180, 90, .16), transparent 34%),
		#08090b;
	color: #e5e7eb;
	font-family: Arial, "Microsoft YaHei", sans-serif;
}

.cs-lobby * {
	box-sizing: border-box;
}

.lobby-header {
	position: sticky;
	top: 0;
	z-index: 20;
	border-bottom: 1px solid rgba(216, 180, 90, .28);
	background: linear-gradient(180deg, #171923 0%, #101219 100%);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .32);
}

.lobby-shell {
	width: min(1180px, calc(100% - 28px));
	margin: 0 auto;
}

.lobby-header-inner {
	display: flex;
	min-height: 64px;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.lobby-brand {
	color: #f8fafc;
	font-size: 22px;
	font-weight: 900;
	text-decoration: none;
	white-space: nowrap;
}

.lobby-brand span {
	color: #d8b45a;
}

.lobby-nav {
	display: flex;
	gap: 10px;
	align-items: center;
}

.lobby-nav a {
	padding: 8px 12px;
	border-radius: 8px;
	color: #cbd5e1;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

.lobby-nav a.active,
.lobby-nav a:hover {
	background: rgba(216, 180, 90, .12);
	color: #f7e3a7;
}

.lobby-service {
	color: #9ca3af;
	font-size: 13px;
	font-weight: 800;
	white-space: nowrap;
}

.lobby-status {
	position: fixed;
	right: 14px;
	bottom: 14px;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	padding: 0 12px;
	border: 1px solid rgba(216, 180, 90, .26);
	border-radius: 999px;
	background: rgba(16, 18, 25, .94);
	color: #cbd5e1;
	font-size: 12px;
	font-weight: 800;
	box-shadow: 0 10px 26px rgba(0, 0, 0, .34);
}

#status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #64748b;
}

#status-dot.busy {
	background: #f59e0b;
}

#status-dot.ok {
	background: #22c55e;
}

#status-dot.err {
	background: #ef4444;
}

.cs-main {
	min-height: calc(100vh - 72px);
	padding: 22px 0 78px;
}

.cs-login-panel {
	display: flex;
	min-height: calc(100vh - 150px);
	align-items: center;
	justify-content: center;
	padding: 18px;
}

.cs-login-card {
	width: min(420px, 100%);
	padding: 24px;
	border: 1px solid rgba(216, 180, 90, .34);
	border-radius: 8px;
	background: linear-gradient(180deg, #171923 0%, #101219 100%);
	box-shadow: 0 18px 44px rgba(0, 0, 0, .38);
}

.cs-login-heading {
	margin-bottom: 22px;
	text-align: center;
}

.cs-login-heading p,
.cs-toolbar p {
	margin: 0 0 6px;
	color: #d8b45a;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.cs-login-heading h1,
.cs-toolbar h1 {
	margin: 0;
	color: #f8fafc;
	font-size: 24px;
	font-weight: 800;
}

.cs-login-card label {
	display: block;
	margin-bottom: 14px;
	color: #cbd5e1;
	font-size: 13px;
	font-weight: 700;
}

.cs-login-card label span {
	display: block;
	margin-bottom: 7px;
}

.cs-login-card input {
	width: 100%;
	height: 46px;
	padding: 0 13px;
	border: 1px solid #2f3545;
	border-radius: 8px;
	outline: none;
	background: #0b0d13;
	color: #f8fafc;
	font-size: 16px;
}

.cs-login-card input:focus {
	border-color: #d8b45a;
	box-shadow: 0 0 0 3px rgba(216, 180, 90, .15);
}

.cs-primary-btn,
.cs-toolbar-actions button {
	height: 44px;
	border: 0;
	border-radius: 8px;
	font-weight: 800;
	cursor: pointer;
}

.cs-primary-btn {
	width: 100%;
	margin-top: 4px;
	background: linear-gradient(135deg, #f0cf85 0%, #c4993a 100%);
	color: #111318;
	font-size: 16px;
}

.cs-primary-btn:disabled {
	cursor: not-allowed;
	opacity: .58;
}

.cs-error {
	min-height: 20px;
	margin-top: 12px;
	color: #f87171;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.cs-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 16px;
	padding: 0 2px;
}

.cs-toolbar-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.cs-toolbar-actions button {
	min-width: 44px;
	padding: 0 14px;
	border: 1px solid rgba(216, 180, 90, .32);
	background: #171923;
	color: #f8fafc;
}

.cs-table-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
}

.cs-table-card {
	min-height: 196px;
	overflow: hidden;
	border: 1px solid rgba(216, 180, 90, .28);
	border-radius: 8px;
	background: linear-gradient(180deg, #171923 0%, #101219 100%);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
	cursor: pointer;
	transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.cs-table-card:hover {
	transform: translateY(-2px);
	border-color: rgba(216, 180, 90, .62);
	box-shadow: 0 18px 38px rgba(0, 0, 0, .36);
}

.cs-table-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 13px;
	border-bottom: 1px solid rgba(216, 180, 90, .18);
}

.cs-table-title {
	color: #f8fafc;
	font-size: 17px;
	font-weight: 900;
}

.cs-table-state {
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(34, 197, 94, .13);
	color: #86efac;
	font-size: 12px;
	font-weight: 800;
}

.cs-road-wrap {
	height: 96px;
	background: #eef2f7;
}

.cs-road-wrap canvas {
	display: block;
}

.cs-table-meta {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	padding: 8px;
	background: #101219;
}

.cs-table-meta span {
	min-width: 0;
	padding: 7px 3px;
	border-radius: 5px;
	background: #202431;
	color: #cbd5e1;
	font-size: 12px;
	font-weight: 800;
	text-align: center;
}

.cs-empty {
	padding: 28px 14px;
	border: 1px solid rgba(216, 180, 90, .26);
	border-radius: 8px;
	background: #101219;
	color: #cbd5e1;
	text-align: center;
}

@media (max-width: 640px) {
	.lobby-header-inner {
		gap: 10px;
	}

	.lobby-nav {
		display: none;
	}

	.cs-main {
		padding-top: 14px;
	}

	.cs-toolbar {
		align-items: flex-start;
	}

	.cs-login-card {
		padding: 20px;
	}

	.cs-table-grid {
		grid-template-columns: 1fr;
	}
}
