/* ===================================================================
 * MrBiceps Competition Engine — Console (Этап 3)
 * Тёмная тема, «командный центр»: компактный список + панель фокуса.
 * =================================================================== */

.mce-view-tabs {
	display: flex;
	gap: 8px;
	margin: 16px 0;
}

.mce-view-tab {
	padding: 8px 16px;
	border-radius: 6px;
	background: #eee;
	color: #333;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}

.mce-view-tab.active {
	background: #111827;
	color: #fff;
}

.mce-console {
	background: #0d0f14;
	color: #e6e8ec;
	border-radius: 12px;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mce-console-topbar {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	padding-bottom: 16px;
	border-bottom: 1px solid #23262f;
	margin-bottom: 16px;
}

.mce-console-brand {
	font-weight: 800;
	letter-spacing: 0.5px;
	color: #f2b90c;
	font-size: 16px;
	white-space: nowrap;
}

.mce-console-brand span {
	color: #e6e8ec;
	font-weight: 500;
}

.mce-console-title {
	flex: 1;
	min-width: 200px;
}

.mce-console-title strong {
	display: block;
	font-size: 18px;
	color: #f2b90c;
}

.mce-console-meta {
	font-size: 13px;
	color: #9aa0ac;
}

/* Степпер попыток (1 / 2 / 3) */
.mce-console-steps {
	display: flex;
	gap: 6px;
}

.mce-step {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	background: #171a21;
	color: #6b7280;
}

.mce-step.active {
	background: #f2b90c;
	color: #171a21;
}

.mce-step.done {
	background: #1c2b22;
	color: #35d07f;
}

.mce-btn-tv {
	background: #1f2430;
	color: #e6e8ec;
	border: 1px solid #333a48;
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 13px;
	text-decoration: none;
	white-space: nowrap;
}

.mce-btn-tv:hover {
	border-color: #f2b90c;
	color: #f2b90c;
}

.mce-btn-primary {
	background: #f2b90c;
	color: #171a21;
	border: 0;
	border-radius: 6px;
	padding: 9px 16px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}

.mce-btn-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ---------------- Список + панель фокуса ---------------- */

.mce-console-body {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.mce-console-list-panel {
	width: 300px;
	flex-shrink: 0;
}

.mce-console-tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.mce-cat-tab {
	background: #171a21;
	color: #9aa0ac;
	border: 0;
	border-radius: 6px;
	padding: 7px 12px;
	font-size: 12px;
	cursor: pointer;
}

.mce-cat-tab.active {
	background: #f2b90c;
	color: #111;
	font-weight: 700;
}

.mce-console-search {
	margin-bottom: 12px;
}

.mce-console-search input {
	width: 100%;
	background: #171a21;
	border: 1px solid #2a2f3a;
	border-radius: 6px;
	padding: 9px 12px;
	color: #e6e8ec;
	font-size: 13px;
}

.mce-roster-list {
	background: #0a0b0f;
	border: 1px solid #1c1f26;
	border-radius: 8px;
	overflow: hidden;
	max-height: 640px;
	overflow-y: auto;
}

.mce-roster-empty {
	padding: 16px;
	font-size: 13px;
	color: #9aa0ac;
}

.mce-roster-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-bottom: 1px solid #1c1f26;
	font-size: 13px;
	cursor: pointer;
}

.mce-roster-row:last-child {
	border-bottom: 0;
}

.mce-roster-row:hover {
	background: #12141b;
}

.mce-roster-row.current {
	background: rgba(242, 185, 12, 0.08);
	box-shadow: inset 3px 0 0 #f2b90c;
}

.mce-roster-row-info {
	flex: 1;
	min-width: 0;
}

.mce-roster-row-name {
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mce-roster-row-sub {
	font-size: 11px;
	color: #6b7280;
}

.mce-pill {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 100px;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}

.mce-pill-good {
	background: rgba(53, 208, 127, 0.15);
	color: #35d07f;
}

.mce-pill-bad {
	background: rgba(255, 92, 92, 0.15);
	color: #ff5c5c;
}

.mce-pill-wait {
	background: rgba(255, 255, 255, 0.06);
	color: #9aa0ac;
}

/* ---------------- Панель фокуса ---------------- */

.mce-console-focus {
	flex: 1;
	min-width: 0;
	background: #0a0b0f;
	border: 1px solid #1c1f26;
	border-radius: 8px;
	min-height: 260px;
	display: flex;
	align-items: center;
}

.mce-focus-empty {
	width: 100%;
	text-align: center;
	color: #9aa0ac;
	font-size: 14px;
}

.mce-focus-card {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 28px;
	flex-wrap: wrap;
}

.mce-focus-photo {
	flex-shrink: 0;
}

.mce-avatar {
	width: 34px !important;
	height: 34px !important;
	max-width: 34px !important;
	flex-shrink: 0;
	border-radius: 50%;
	object-fit: cover !important;
	display: inline-block;
}

.mce-avatar-placeholder {
	background: #2a2f3a;
	color: #9aa0ac;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
}

.mce-avatar-lg {
	width: 96px !important;
	height: 96px !important;
	max-width: 96px !important;
	font-size: 28px;
}

.mce-focus-identity {
	min-width: 160px;
}

.mce-focus-name {
	font-size: 22px;
	font-weight: 800;
	color: #fff;
}

.mce-focus-cat {
	color: #f2b90c;
	font-size: 13px;
	font-weight: 600;
	margin-top: 2px;
}

.mce-focus-weight {
	margin-left: auto;
	text-align: center;
}

.mce-focus-weight .l {
	font-size: 11px;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.mce-focus-weight .v {
	font-size: 44px;
	font-weight: 800;
	color: #f2b90c;
	line-height: 1;
}

.mce-focus-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.mce-focus-btn-good,
.mce-focus-btn-bad {
	border: 0;
	border-radius: 8px;
	padding: 15px 20px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.mce-focus-btn-good {
	background: rgba(53, 208, 127, 0.15);
	color: #35d07f;
	border: 1.5px solid #35d07f;
}

.mce-focus-btn-bad {
	background: rgba(255, 92, 92, 0.15);
	color: #ff5c5c;
	border: 1.5px solid #ff5c5c;
}

.mce-btn-tv-small {
	background: #f2b90c;
	color: #111;
	border: 0;
	border-radius: 8px;
	padding: 15px 20px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

/* --- Клиентская фильтрация по категории/поиску --- */
.mce-roster-row[data-hidden="1"] {
	display: none !important;
}

@media (max-width: 900px) {
	.mce-console-body {
		flex-direction: column;
	}
	.mce-console-list-panel {
		width: 100%;
	}
	.mce-focus-weight {
		margin-left: 0;
	}
}

.mce-console-finished-notice {
	background: #0a0b0f;
	border: 1px solid #1c1f26;
	border-radius: 8px;
	padding: 40px;
	text-align: center;
	color: #9aa0ac;
	font-size: 15px;
}
