/* ============================================================
 * MISSION CONTROL — War Room Aesthetic
 * Dark, cinematic, immersive. Feels like being at NASA/SpaceX HQ.
 * ============================================================ */

:root {
	--mc-bg: #050a12;
	--mc-panel: #0a1120;
	--mc-border: rgba(0,194,255,0.1);
	--mc-accent: #00c2ff;
	--mc-green: #4ade80;
	--mc-red: #ef4444;
	--mc-text: #e0eaff;
	--mc-dim: #5a6a80;
	--mc-glow: rgba(0,194,255,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.sll-mc-body {
	background: var(--mc-bg); color: var(--mc-text);
	font-family: 'Rajdhani', 'Segoe UI', sans-serif;
	overflow: hidden; height: 100vh; width: 100vw;
}
/* WP admin bar takes 32px on desktop, 46px on mobile */
.admin-bar .sll-mc { height: calc(100vh - 32px); }
@media (max-width: 782px) { .admin-bar .sll-mc { height: calc(100vh - 46px); } }

/* Light mode overrides */
.sll-mc-body--light {
	--mc-bg: #f0f4f8;
	--mc-panel: #ffffff;
	--mc-border: rgba(0,50,100,0.1);
	--mc-accent: #0077cc;
	--mc-green: #059669;
	--mc-red: #dc2626;
	--mc-text: #0a1e3d;
	--mc-dim: #6b7b8d;
	--mc-glow: rgba(0,119,204,0.06);
}
.sll-mc-body--light .sll-mc {
	background: var(--mc-bg);
}
.sll-mc-body--light .sll-mc__header {
	background: rgba(255,255,255,0.95);
	border-bottom-color: rgba(0,0,0,0.08);
}
.sll-mc-body--light .sll-mc__right {
	background: rgba(255,255,255,0.95);
}
.sll-mc-body--light .sll-mc__gauge {
	background: rgba(0,50,100,0.03);
	border-color: rgba(0,50,100,0.08);
}
.sll-mc-body--light .sll-mc__milestone {
	background: rgba(0,0,0,0.02);
	border-color: rgba(0,0,0,0.04);
}
.sll-mc-body--light .sll-mc__milestone--done {
	background: rgba(5,150,105,0.06);
	border-color: rgba(5,150,105,0.15);
}
.sll-mc-body--light .sll-mc__milestone--current {
	background: rgba(0,119,204,0.06);
	border-color: rgba(0,119,204,0.2);
}
.sll-mc-body--light .sll-mc__reactions {
	background: rgba(255,255,255,0.9);
}
.sll-mc-body--light .sll-mc__reaction-btn {
	background: rgba(0,0,0,0.03);
	border-color: rgba(0,0,0,0.06);
}
.sll-mc-body--light .sll-mc__stream-switcher {
	background: rgba(255,255,255,0.9);
}
.sll-mc-body--light .sll-mc__stream-pick {
	background: rgba(0,0,0,0.03);
	border-color: rgba(0,0,0,0.06);
	color: var(--mc-dim);
}
.sll-mc-body--light .sll-mc__stream-pick--active {
	background: rgba(0,119,204,0.08);
	border-color: rgba(0,119,204,0.2);
	color: var(--mc-accent);
}
.sll-mc-body--light .sll-mc__info-row {
	border-bottom-color: rgba(0,0,0,0.04);
}
.sll-mc-body--light .sll-mc__sync-banner {
	background: linear-gradient(90deg, rgba(251,191,36,0.06), rgba(251,191,36,0.02));
	border-color: rgba(251,191,36,0.12);
}

.sll-mc {
	display: flex; flex-direction: column; height: 100vh; max-height: 100vh;
	background: radial-gradient(ellipse at 20% 50%, rgba(0,30,60,0.3), transparent 70%),
	            radial-gradient(ellipse at 80% 20%, rgba(0,50,100,0.15), transparent 60%),
	            var(--mc-bg);
}

/* ============================================================
 * HEADER BAR
 * ============================================================ */
.sll-mc__header {
	display: flex; align-items: center; gap: 12px;
	padding: 8px 16px; height: 48px; flex-shrink: 0;
	background: rgba(0,10,20,0.9);
	border-bottom: 1px solid var(--mc-border);
	backdrop-filter: blur(8px);
}
.sll-mc__back {
	color: var(--mc-dim); text-decoration: none; font-size: 18px;
	width: 32px; height: 32px; display: flex; align-items: center;
	justify-content: center; border-radius: 6px;
	transition: all 0.2s;
}
.sll-mc__back:hover { color: var(--mc-accent); background: var(--mc-glow); }
.sll-mc__header-brand {
	font-family: 'Orbitron', monospace; font-size: 10px; font-weight: 700;
	letter-spacing: 3px; color: var(--mc-accent); flex-shrink: 0;
}
.sll-mc__header-title {
	font-size: 14px; font-weight: 700; color: var(--mc-text);
	flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sll-mc__header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.sll-mc__countdown {
	font-family: 'Orbitron', monospace; font-size: 18px; font-weight: 900;
	color: var(--mc-accent); letter-spacing: 2px;
	text-shadow: 0 0 20px rgba(0,194,255,0.4);
}
.sll-mc__live-badge {
	font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
	padding: 4px 12px; border-radius: 6px;
	background: rgba(239,68,68,0.15); color: var(--mc-red);
	border: 1px solid rgba(239,68,68,0.3);
	animation: mcPulse 2s ease-in-out infinite;
}
.sll-mc__theme-toggle {
	width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--mc-border);
	background: rgba(255,255,255,0.05); color: var(--mc-dim);
	font-size: 16px; cursor: pointer; display: flex; align-items: center;
	justify-content: center; transition: all 0.2s; flex-shrink: 0;
}
.sll-mc__theme-toggle:hover { color: var(--mc-accent); background: var(--mc-glow); }
@keyframes mcPulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.6; }
}

/* ============================================================
 * MAIN GRID
 * ============================================================ */
.sll-mc__grid {
	display: grid; grid-template-columns: 1fr 320px;
	flex: 1; overflow: hidden; min-height: 0;
}

/* ============================================================
 * LEFT PANEL — Streams + Reactions
 * ============================================================ */
.sll-mc__left {
	display: flex; flex-direction: column; overflow: hidden;
	border-right: 1px solid var(--mc-border);
	min-height: 0; /* Allow flexbox to shrink */
}

/* Primary Stream */
.sll-mc__stream-primary {
	flex: 1 1 0; min-height: 0; background: #000;
	position: relative; aspect-ratio: 16/9; max-height: calc(100vh - 200px);
}
.admin-bar .sll-mc__stream-primary { max-height: calc(100vh - 232px); }
.sll-mc__iframe {
	width: 100%; height: 100%; border: none;
	position: absolute; inset: 0;
}
.sll-mc__no-stream {
	display: flex; flex-direction: column; align-items: center;
	justify-content: center; height: 100%; color: var(--mc-dim);
	font-size: 14px; gap: 8px;
}
.sll-mc__no-stream-icon { font-size: 48px; opacity: 0.3; }
.sll-mc__no-stream-sub { font-size: 11px; opacity: 0.5; }

/* Secondary Streams */
.sll-mc__streams-secondary {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2px; max-height: 120px; flex-shrink: 0;
	background: rgba(0,0,0,0.5);
}
.sll-mc__stream-tile {
	position: relative; cursor: pointer; overflow: hidden;
	border: 1px solid transparent; transition: border-color 0.2s;
}
.sll-mc__stream-tile:hover { border-color: var(--mc-accent); }
.sll-mc__iframe--mini { width: 100%; height: 120px; border: none; pointer-events: none; }
.sll-mc__stream-label {
	position: absolute; bottom: 4px; left: 6px;
	font-size: 9px; font-weight: 700; letter-spacing: 1px;
	color: #fff; background: rgba(0,0,0,0.7);
	padding: 2px 6px; border-radius: 3px;
}

/* ============================================================
 * LIFTOFF SYNC BANNER
 * ============================================================ */
.sll-mc__sync-banner {
	display: flex; align-items: center; gap: 10px;
	padding: 6px 12px; flex-shrink: 0;
	background: linear-gradient(90deg, rgba(251,191,36,0.08), rgba(251,191,36,0.03));
	border-top: 1px solid rgba(251,191,36,0.15);
	border-bottom: 1px solid rgba(251,191,36,0.15);
	animation: mcSyncPulse 3s ease-in-out infinite;
}
@keyframes mcSyncPulse {
	0%, 100% { background: linear-gradient(90deg, rgba(251,191,36,0.08), rgba(251,191,36,0.03)); }
	50% { background: linear-gradient(90deg, rgba(251,191,36,0.12), rgba(251,191,36,0.05)); }
}
.sll-mc__sync-banner--done {
	animation: none;
	background: linear-gradient(90deg, rgba(74,222,128,0.08), rgba(74,222,128,0.03));
	border-color: rgba(74,222,128,0.15);
}
.sll-mc__sync-text {
	flex: 1; font-size: 12px; color: rgba(255,255,255,0.7);
}
.sll-mc__sync-text strong { color: #fbbf24; }
.sll-mc__sync-banner--done .sll-mc__sync-text strong { color: #4ade80; }
.sll-mc__sync-btn {
	padding: 8px 20px; border-radius: 8px; border: none;
	background: linear-gradient(135deg, #fbbf24, #f59e0b);
	color: #000; font-family: 'Rajdhani', sans-serif;
	font-size: 14px; font-weight: 800; letter-spacing: 1px;
	cursor: pointer; transition: all 0.2s; white-space: nowrap;
	box-shadow: 0 2px 10px rgba(251,191,36,0.3);
}
.sll-mc__sync-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(251,191,36,0.4);
}
.sll-mc__sync-hint {
	font-size: 9px; color: rgba(255,255,255,0.3); white-space: nowrap;
}
.sll-mc__sync-hint kbd {
	background: rgba(255,255,255,0.1); padding: 1px 5px;
	border-radius: 3px; font-size: 10px; font-weight: 700;
}
@media (max-width: 768px) {
	.sll-mc__sync-banner { flex-wrap: wrap; gap: 8px; }
	.sll-mc__sync-text { flex: 1 1 100%; font-size: 11px; }
	.sll-mc__sync-hint { display: none; }
}

/* ============================================================
 * STREAM SWITCHER
 * ============================================================ */
.sll-mc__stream-switcher {
	display: flex; align-items: center; gap: 8px;
	padding: 4px 12px; background: rgba(0,6,15,0.8);
	border-top: 1px solid var(--mc-border);
	overflow-x: auto; flex-shrink: 0; min-height: 40px;
	scrollbar-width: none;
}
.sll-mc__stream-switcher::-webkit-scrollbar { display: none; }
.sll-mc__stream-switcher-label {
	font-size: 8px; font-weight: 800; letter-spacing: 2px;
	color: var(--mc-dim); white-space: nowrap; flex-shrink: 0;
}
.sll-mc__stream-switcher-list {
	display: flex; gap: 6px;
}
.sll-mc__stream-pick {
	display: flex; align-items: center; gap: 6px;
	padding: 4px 10px 4px 4px; border-radius: 6px;
	background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
	color: var(--mc-dim); font-size: 10px; font-weight: 600;
	cursor: pointer; transition: all 0.15s; white-space: nowrap;
	font-family: inherit;
}
.sll-mc__stream-pick:hover {
	background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12);
	color: var(--mc-text);
}
.sll-mc__stream-pick--active {
	background: rgba(0,194,255,0.1); border-color: rgba(0,194,255,0.25);
	color: var(--mc-accent);
}
.sll-mc__stream-pick-thumb {
	width: 48px; height: 28px; border-radius: 3px; object-fit: cover;
	opacity: 0.7; flex-shrink: 0;
}
.sll-mc__stream-pick--active .sll-mc__stream-pick-thumb { opacity: 1; }
.sll-mc__stream-pick-label { letter-spacing: 0.3px; }

/* ============================================================
 * REACTIONS BAR
 * ============================================================ */
.sll-mc__reactions {
	display: flex; align-items: center; gap: 4px;
	padding: 4px 12px; background: rgba(0,10,20,0.8);
	border-top: 1px solid var(--mc-border);
	border-bottom: 1px solid var(--mc-border);
	position: relative; flex-shrink: 0; min-height: 36px;
}
.sll-mc__reaction-btn {
	font-size: 20px; background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.06); border-radius: 8px;
	padding: 6px 10px; cursor: pointer; transition: all 0.15s;
}
.sll-mc__reaction-btn:hover {
	background: rgba(255,255,255,0.1); transform: scale(1.15);
}
.sll-mc__reaction-btn:active { transform: scale(0.9); }
.sll-mc__reaction-bubbles {
	position: absolute; bottom: 100%; left: 0; right: 0;
	height: 100px; pointer-events: none; overflow: hidden;
}
.sll-mc__bubble {
	position: absolute; bottom: 0; font-size: 24px;
	animation: mcBubbleUp 2s ease-out forwards;
	opacity: 1;
}
@keyframes mcBubbleUp {
	0% { transform: translateY(0) scale(1); opacity: 1; }
	100% { transform: translateY(-100px) scale(0.5); opacity: 0; }
}


/* ============================================================
 * RIGHT PANEL — Telemetry + Milestones
 * ============================================================ */
.sll-mc__right {
	display: flex; flex-direction: column; overflow-y: auto;
	padding: 12px 14px; gap: 10px;
	background: linear-gradient(180deg, rgba(5,10,20,0.95), rgba(10,17,32,0.95));
	scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.sll-mc__section-label {
	font-size: 9px; font-weight: 800; letter-spacing: 3px;
	color: var(--mc-dim); margin-bottom: 2px;
	border-bottom: 1px solid rgba(255,255,255,0.04);
	padding-bottom: 4px;
}

/* Telemetry Header with tabs */
.sll-mc__telem-header {
	display: flex; align-items: center; justify-content: space-between;
	margin-bottom: 6px;
}
.sll-mc__telem-tabs {
	display: flex; gap: 2px; background: rgba(255,255,255,0.03);
	border-radius: 5px; padding: 2px; border: 1px solid rgba(255,255,255,0.05);
}
.sll-mc__telem-tab {
	padding: 3px 10px; border: none; border-radius: 4px;
	font-family: 'Rajdhani', sans-serif; font-size: 9px; font-weight: 800;
	letter-spacing: 1.5px; cursor: pointer; transition: all 0.15s;
	background: transparent; color: var(--mc-dim);
}
.sll-mc__telem-tab:hover { color: var(--mc-text); }
.sll-mc__telem-tab--active {
	background: rgba(0,194,255,0.15); color: var(--mc-accent);
}

/* Playback telemetry note */
.sll-mc__telem-note {
	text-align: center; padding: 10px; border-radius: 8px;
	background: rgba(0,194,255,0.04); border: 1px solid rgba(0,194,255,0.08);
	margin-bottom: 8px;
}
.sll-mc__telem-note-icon { font-size: 20px; margin-bottom: 4px; opacity: 0.4; }
.sll-mc__telem-note-text { font-size: 11px; font-weight: 600; color: var(--mc-dim); }
.sll-mc__telem-note-sub { font-size: 9px; color: var(--mc-dim); opacity: 0.5; margin-top: 2px; }

/* Compact T+ display for playback */
.sll-mc__telem-compact {
	display: flex; gap: 6px;
}
.sll-mc__telem-compact-item {
	flex: 1; text-align: center; padding: 8px 4px; border-radius: 6px;
	background: rgba(0,20,40,0.5); border: 1px solid var(--mc-border);
}
.sll-mc__telem-compact-label {
	display: block; font-size: 7px; font-weight: 800; letter-spacing: 2px;
	color: var(--mc-dim); margin-bottom: 3px;
}
.sll-mc__telem-compact-value {
	display: block; font-family: 'Orbitron', monospace; font-size: 14px;
	font-weight: 900; color: var(--mc-accent); letter-spacing: 1px;
}

/* Live telemetry source note */
.sll-mc__telem-source {
	font-size: 8px; color: var(--mc-dim); text-align: center;
	letter-spacing: 1px; margin-top: 6px; opacity: 0.5;
}

/* Telemetry Gauges */
.sll-mc__telemetry {
	display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.sll-mc__gauge {
	background: rgba(0,20,40,0.5); border: 1px solid var(--mc-border);
	border-radius: 8px; padding: 10px; text-align: center;
	position: relative; overflow: hidden;
}
.sll-mc__gauge-bar {
	width: 100%; height: 4px; background: rgba(255,255,255,0.06);
	border-radius: 2px; margin-bottom: 8px; overflow: hidden;
}
.sll-mc__gauge-fill {
	height: 100%; width: 0%; border-radius: 2px;
	background: linear-gradient(90deg, var(--mc-accent), var(--mc-green));
	transition: width 1s ease;
	box-shadow: 0 0 8px var(--mc-accent);
}
.sll-mc__gauge-value {
	font-family: 'Orbitron', monospace; font-size: 20px; font-weight: 900;
	color: var(--mc-text); letter-spacing: 1px; line-height: 1;
}
.sll-mc__gauge-label {
	font-size: 8px; font-weight: 700; letter-spacing: 2px;
	color: var(--mc-dim); margin-top: 4px;
}

/* Telemetry source label */
.sll-mc__telem-source {
	font-size: 8px; font-weight: 700; letter-spacing: 2px;
	color: var(--mc-dim); text-align: center; margin-top: 6px;
	opacity: 0.5;
}

/* Signal lost state — dim gauges */
.sll-mc__telem--lost .sll-mc__gauge {
	border-color: rgba(251, 191, 36, 0.15);
}
.sll-mc__telem--lost .sll-mc__gauge-fill {
	background: linear-gradient(90deg, #fbbf24, #f59e0b);
	opacity: 0.4;
}

/* AI Activity Feed */
.sll-mc__feed {
	margin-top: 8px;
	border: 1px solid var(--mc-border);
	border-radius: 8px;
	overflow: hidden;
	max-height: 15vh;
	display: flex;
	flex-direction: column;
}
.sll-mc__feed--collapsed {
	max-height: 28px;
}
.sll-mc__feed--collapsed .sll-mc__feed-scroll { display: none; }
.sll-mc__feed--collapsed .sll-mc__feed-chevron { transform: rotate(-90deg); }

.sll-mc__feed-header {
	display: flex; align-items: center; gap: 8px;
	padding: 5px 10px;
	background: rgba(0,20,40,0.6);
	border-bottom: 1px solid var(--mc-border);
	cursor: pointer; user-select: none;
}
.sll-mc__feed-header:hover { background: rgba(0,30,60,0.6); }

.sll-mc__feed-count {
	font-family: 'Orbitron', monospace;
	font-size: 9px; font-weight: 700;
	background: var(--mc-accent); color: #000;
	padding: 1px 5px; border-radius: 4px;
	min-width: 18px; text-align: center;
}
.sll-mc__feed-chevron {
	font-size: 10px; color: var(--mc-dim);
	margin-left: auto;
	transition: transform 0.2s;
}

.sll-mc__feed-scroll {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 4px 0;
	font-size: 10px;
	line-height: 1.4;
	scrollbar-width: thin;
	scrollbar-color: rgba(0,194,255,0.2) transparent;
}
.sll-mc__feed-scroll::-webkit-scrollbar { width: 4px; }
.sll-mc__feed-scroll::-webkit-scrollbar-thumb { background: rgba(0,194,255,0.2); border-radius: 2px; }

.sll-mc__feed-entry {
	padding: 2px 10px;
	display: flex; gap: 6px;
	animation: feedSlideIn 0.3s ease;
}
@keyframes feedSlideIn {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

.sll-mc__feed-time {
	color: var(--mc-dim); font-family: monospace;
	font-size: 9px; white-space: nowrap; flex-shrink: 0;
	min-width: 50px;
}
.sll-mc__feed-dot {
	width: 5px; height: 5px; border-radius: 50%;
	margin-top: 4px; flex-shrink: 0;
}
.sll-mc__feed-dot--video_ai { background: #4ade80; }
.sll-mc__feed-dot--caption { background: #00c2ff; }
.sll-mc__feed-dot--vision { background: #a78bfa; }
.sll-mc__feed-dot--system { background: #fbbf24; }
.sll-mc__feed-dot--estimate { background: #4a6a8a; }

.sll-mc__feed-msg {
	color: rgba(255,255,255,0.6);
	word-break: break-word;
}
.sll-mc__feed-entry--milestone_confirmed .sll-mc__feed-msg { color: #4ade80; font-weight: 600; }
.sll-mc__feed-entry--anomaly .sll-mc__feed-msg { color: #f87171; font-weight: 700; }
.sll-mc__feed-entry--milestone_unknown .sll-mc__feed-msg { color: #a78bfa; }

/* Light mode overrides */
.sll-mc-body--light .sll-mc__feed-header { background: rgba(0,50,100,0.03); }
.sll-mc-body--light .sll-mc__feed-msg { color: rgba(0,0,0,0.5); }
.sll-mc-body--light .sll-mc__feed-entry--milestone_confirmed .sll-mc__feed-msg { color: #16a34a; }

/* Milestones */
.sll-mc__milestones { display: flex; flex-direction: column; gap: 3px; }
.sll-mc__milestone {
	display: flex; align-items: center; gap: 8px;
	padding: 6px 10px; border-radius: 6px;
	background: rgba(255,255,255,0.02);
	border: 1px solid rgba(255,255,255,0.03);
	font-size: 12px; color: var(--mc-dim);
	transition: all 0.3s ease;
}
.sll-mc__milestone--done {
	background: rgba(74,222,128,0.08);
	border-color: rgba(74,222,128,0.15);
	color: var(--mc-green);
}
/* Current position — "you are here" marker */
.sll-mc__milestone--current {
	background: rgba(0,194,255,0.08);
	border-color: rgba(0,194,255,0.25);
	color: var(--mc-accent);
	animation: mcMilestoneGlow 1.5s ease-in-out infinite;
	position: relative;
}
.sll-mc__milestone--current::before {
	content: ''; position: absolute; left: -6px; top: 50%;
	transform: translateY(-50%);
	width: 4px; height: 60%; border-radius: 2px;
	background: var(--mc-accent);
	box-shadow: 0 0 6px var(--mc-accent);
}
/* Current + confirmed = green current marker */
.sll-mc__milestone--current.sll-mc__milestone--done {
	background: rgba(74,222,128,0.1);
	border-color: rgba(74,222,128,0.25);
	color: var(--mc-green);
}
.sll-mc__milestone--current.sll-mc__milestone--done::before {
	background: var(--mc-green);
	box-shadow: 0 0 6px var(--mc-green);
}

.sll-mc__milestone--active {
	background: rgba(0,194,255,0.08);
	border-color: rgba(0,194,255,0.2);
	color: var(--mc-accent);
	animation: mcMilestoneGlow 1s ease-in-out infinite;
}
@keyframes mcMilestoneGlow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(0,194,255,0); }
	50% { box-shadow: 0 0 12px rgba(0,194,255,0.2); }
}
.sll-mc__milestone-icon { font-size: 14px; flex-shrink: 0; width: 18px; text-align: center; }
.sll-mc__milestone-name { font-weight: 600; letter-spacing: 0.5px; flex: 1; }
.sll-mc__milestone-time {
	font-family: 'Orbitron', monospace; font-size: 9px; font-weight: 600;
	color: var(--mc-dim); letter-spacing: 0.5px; flex-shrink: 0;
	opacity: 0.6;
}
.sll-mc__milestone-replay {
	width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
	background: rgba(0,194,255,0.1); border: 1px solid rgba(0,194,255,0.2);
	color: var(--mc-accent); font-size: 10px; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: all 0.2s; padding: 0; line-height: 1;
	order: 9;
}
.sll-mc__milestone-replay:hover {
	background: rgba(0,194,255,0.25); transform: scale(1.15);
	box-shadow: 0 0 8px rgba(0,194,255,0.3);
}

/* Milestone celebration flash */
.sll-mc__milestone--flash {
	animation: mcMilestoneFlash 1.5s ease;
}
@keyframes mcMilestoneFlash {
	0% { background: rgba(74,222,128,0.3); transform: scale(1.03); }
	100% { background: rgba(74,222,128,0.08); transform: scale(1); }
}

/* Expandable milestone — clickable cursor + chevron */
.sll-mc__milestone { cursor: pointer; flex-wrap: wrap; }
.sll-mc__milestone-chevron {
	font-size: 8px; color: var(--mc-dim); opacity: 0.4;
	transition: transform 0.25s ease, opacity 0.25s ease;
	flex-shrink: 0; margin-left: auto; order: 10;
	align-self: center;
}
/* When expanded, pin chevron to top-right (not centered on description) */
.sll-mc__milestone--expanded .sll-mc__milestone-chevron {
	align-self: flex-start; margin-top: 2px;
}
.sll-mc__milestone:hover .sll-mc__milestone-chevron { opacity: 0.8; }
.sll-mc__milestone--expanded .sll-mc__milestone-chevron { transform: rotate(180deg); opacity: 0.8; }

/* Milestone description (hidden by default — !important to override flex) */
.sll-mc__milestone-desc {
	display: none !important; width: 100%;
	padding: 8px 0 4px 26px;
	font-size: 11px; font-weight: 400; line-height: 1.55;
	color: var(--mc-dim); letter-spacing: 0;
	border-top: 1px solid rgba(255,255,255,0.04);
	margin-top: 6px; order: 20;
}
.sll-mc__milestone--expanded .sll-mc__milestone-desc { display: block !important; }

/* HOLD state — yellow */
.sll-mc__milestone--hold {
	background: rgba(250,204,21,0.1) !important;
	border-color: rgba(250,204,21,0.3) !important;
	color: #facc15 !important;
	animation: mcMilestoneHoldPulse 1.5s ease-in-out infinite;
}
.sll-mc__milestone--hold::before {
	background: #facc15 !important; box-shadow: 0 0 8px #facc15 !important;
}
@keyframes mcMilestoneHoldPulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(250,204,21,0); }
	50% { box-shadow: 0 0 16px rgba(250,204,21,0.25); }
}

/* SCRUB state — red, prominent */
.sll-mc__milestone--scrub {
	background: rgba(239,68,68,0.15) !important;
	border-color: rgba(239,68,68,0.4) !important;
	color: var(--mc-red) !important;
	animation: mcMilestoneScrubFlash 1s ease-in-out infinite;
}
.sll-mc__milestone--scrub::before {
	background: var(--mc-red) !important; box-shadow: 0 0 10px var(--mc-red) !important;
}
@keyframes mcMilestoneScrubFlash {
	0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
	50% { box-shadow: 0 0 20px rgba(239,68,68,0.3); }
}

/* FAILURE state — deep red, urgent */
.sll-mc__milestone--failure {
	background: rgba(239,68,68,0.2) !important;
	border-color: rgba(239,68,68,0.5) !important;
	color: #ff4444 !important;
	animation: mcMilestoneFailurePulse 0.8s ease-in-out infinite;
}
.sll-mc__milestone--failure::before {
	background: #ff4444 !important; box-shadow: 0 0 14px #ff4444 !important;
}
@keyframes mcMilestoneFailurePulse {
	0%, 100% { box-shadow: 0 0 4px rgba(255,68,68,0.2); transform: scale(1); }
	50% { box-shadow: 0 0 24px rgba(255,68,68,0.4); transform: scale(1.01); }
}

/* Anomaly Banner — full-width alert */
.sll-mc__anomaly-banner {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 16px; border-radius: 8px;
	margin-top: 8px; font-size: 13px;
	animation: mcAnomalyBannerIn 0.4s ease;
}
.sll-mc__anomaly-banner--scrub {
	background: rgba(239,68,68,0.12);
	border: 2px solid rgba(239,68,68,0.5);
	color: var(--mc-red);
	animation: mcAnomalyBannerIn 0.4s ease, mcAnomalyBannerPulse 2s ease-in-out infinite;
}
.sll-mc__anomaly-banner--hold {
	background: rgba(250,204,21,0.1);
	border: 2px solid rgba(250,204,21,0.4);
	color: #facc15;
}
.sll-mc__anomaly-banner--failure {
	background: rgba(239,68,68,0.18);
	border: 2px solid rgba(255,68,68,0.6);
	color: #ff4444;
	animation: mcAnomalyBannerIn 0.4s ease, mcAnomalyBannerPulse 1.2s ease-in-out infinite;
}
@keyframes mcAnomalyBannerIn {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes mcAnomalyBannerPulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
	50% { box-shadow: 0 0 20px rgba(239,68,68,0.2); }
}
.sll-mc__anomaly-banner-icon { font-size: 28px; flex-shrink: 0; }
.sll-mc__anomaly-banner-title {
	font-size: 14px; font-weight: 800; letter-spacing: 2px;
	text-transform: uppercase;
}
.sll-mc__anomaly-banner-detail {
	font-size: 11px; opacity: 0.8; margin-top: 2px; line-height: 1.4;
}

/* Admin sim anomaly buttons */
.sll-mc__sim-divider {
	border-top: 1px solid rgba(255,255,255,0.08);
	margin: 8px 0;
}
.sll-mc__sim-section-label {
	font-size: 8px; font-weight: 700; letter-spacing: 2px;
	color: var(--mc-dim); margin-bottom: 6px;
}
.sll-mc__sim-btn--hold {
	background: rgba(250,204,21,0.15) !important; border-color: rgba(250,204,21,0.3) !important;
	color: #facc15 !important;
}
.sll-mc__sim-btn--hold:hover { background: rgba(250,204,21,0.3) !important; }
.sll-mc__sim-btn--scrub {
	background: rgba(239,68,68,0.15) !important; border-color: rgba(239,68,68,0.3) !important;
	color: var(--mc-red) !important;
}
.sll-mc__sim-btn--scrub:hover { background: rgba(239,68,68,0.3) !important; }
.sll-mc__sim-btn--failure {
	background: rgba(255,68,68,0.2) !important; border-color: rgba(255,68,68,0.4) !important;
	color: #ff4444 !important;
}
.sll-mc__sim-btn--failure:hover { background: rgba(255,68,68,0.4) !important; }

/* Mission Info */
.sll-mc__info { display: flex; flex-direction: column; gap: 4px; }
.sll-mc__info-row {
	display: flex; justify-content: space-between;
	font-size: 11px; padding: 3px 0;
	border-bottom: 1px solid rgba(255,255,255,0.03);
}
.sll-mc__info-row span:first-child { color: var(--mc-dim); font-weight: 600; letter-spacing: 0.5px; }
.sll-mc__info-row span:last-child { color: var(--mc-text); font-weight: 500; text-align: right; }

/* ============================================================
 * CELEBRATION OVERLAY
 * ============================================================ */
.sll-mc__celebration {
	position: fixed; inset: 0; pointer-events: none; z-index: 100;
}
.sll-mc__celebration--active {
	animation: mcCelebBorder 2s ease;
}
@keyframes mcCelebBorder {
	0% { box-shadow: inset 0 0 60px rgba(74,222,128,0.4); }
	100% { box-shadow: inset 0 0 0 transparent; }
}

/* ============================================================
 * SIMULATION PANEL (Admin)
 * ============================================================ */
.sll-mc__sim-panel {
	position: fixed; top: 48px; left: 0; bottom: 0; z-index: 50;
	background: rgba(10,16,28,0.97); border-right: 1px solid rgba(251,191,36,0.25);
	width: 300px; backdrop-filter: blur(12px);
	box-shadow: 4px 0 24px rgba(0,0,0,0.5), 0 0 15px rgba(251,191,36,0.08);
	display: flex; flex-direction: column;
	transform: translateX(-100%); transition: transform 0.3s ease;
}
.admin-bar .sll-mc__sim-panel { top: 80px; }
.sll-mc__sim-panel--open { transform: translateX(0); }
/* Collapsed tab visible on the left edge */
.sll-mc__sim-tab {
	position: fixed; top: 50%; left: 0; z-index: 49;
	transform: translateY(-50%);
	writing-mode: vertical-rl; text-orientation: mixed;
	background: rgba(10,16,28,0.95); border: 1px solid rgba(251,191,36,0.25);
	border-left: none; border-radius: 0 8px 8px 0;
	padding: 12px 6px; cursor: pointer;
	font-family: 'Rajdhani', sans-serif; font-size: 10px; font-weight: 800;
	letter-spacing: 2px; color: #fbbf24;
	box-shadow: 4px 0 12px rgba(0,0,0,0.4), 0 0 8px rgba(251,191,36,0.1);
	transition: opacity 0.3s, background 0.2s;
}
.sll-mc__sim-tab:hover { background: rgba(251,191,36,0.12); }
.sll-mc__sim-tab--hidden { opacity: 0; pointer-events: none; }
.sll-mc__sim-panel-header {
	display: flex; align-items: center; justify-content: space-between;
	padding: 10px 14px; border-bottom: 1px solid rgba(251,191,36,0.1);
	flex-shrink: 0;
}
.sll-mc__sim-panel-title {
	font-size: 10px; font-weight: 800; letter-spacing: 2px; color: #fbbf24;
}
.sll-mc__sim-panel-close {
	background: none; border: none; color: rgba(255,255,255,0.4);
	font-size: 18px; cursor: pointer; line-height: 1;
}
.sll-mc__sim-panel-close:hover { color: #fff; }
.sll-mc__sim-panel-body { padding: 12px 14px; overflow-y: auto; flex: 1; min-height: 0; }
.sll-mc__sim-status {
	font-size: 10px; font-weight: 700; color: #4ade80;
	letter-spacing: 1px; margin-bottom: 8px; animation: mcPulse 2s infinite;
}
.sll-mc__sim-row {
	display: flex; gap: 6px; margin-bottom: 10px;
}
.sll-mc__sim-btn {
	padding: 8px 14px; border-radius: 6px; border: 1px solid rgba(251,191,36,0.3);
	font-family: 'Rajdhani', sans-serif; font-size: 11px;
	font-weight: 800; letter-spacing: 1px; cursor: pointer;
	background: rgba(251,191,36,0.12); color: #fbbf24;
	transition: all 0.2s; flex-shrink: 0;
}
.sll-mc__sim-btn:hover { background: rgba(251,191,36,0.2); }
.sll-mc__sim-speed {
	flex: 1; padding: 6px 8px; border-radius: 6px;
	background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
	color: var(--mc-text); font-size: 11px; font-family: inherit;
	cursor: pointer;
}
.sll-mc__sim-seek { margin-bottom: 8px; }
.sll-mc__sim-seek label {
	display: block; font-size: 9px; font-weight: 700; letter-spacing: 1px;
	color: var(--mc-dim); margin-bottom: 4px;
}
.sll-mc__sim-seek select {
	width: 100%; padding: 6px 8px; border-radius: 6px;
	background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
	color: var(--mc-text); font-size: 12px; font-family: inherit;
	cursor: pointer;
}
.sll-mc__sim-sync { margin-bottom: 8px; }
.sll-mc__sim-sync label {
	display: block; font-size: 9px; font-weight: 700; letter-spacing: 1px;
	color: var(--mc-dim); margin-bottom: 4px;
}
.sll-mc__sim-hint {
	font-size: 8px; color: rgba(251,191,36,0.3); letter-spacing: 1px;
	text-align: center;
}

/* Collapsible sections inside sim panel */
.sll-mc__sim-section { border-top: 1px solid rgba(255,255,255,0.04); }
.sll-mc__sim-section:first-child { border-top: none; }
.sll-mc__sim-section-toggle {
	display: flex; align-items: center; justify-content: space-between;
	padding: 8px 0; cursor: pointer; user-select: none;
}
.sll-mc__sim-section-toggle:hover .sll-mc__sim-section-label { color: #fcd34d; }
.sll-mc__sim-section-arrow {
	font-size: 10px; color: var(--mc-dim); transition: transform 0.2s;
}
.sll-mc__sim-section--collapsed .sll-mc__sim-section-arrow { transform: rotate(-90deg); }
.sll-mc__sim-section-content { padding-bottom: 8px; }
.sll-mc__sim-section--collapsed .sll-mc__sim-section-content { display: none; }

/* ============================================================
 * SYNC MONITOR (Admin Debug Console)
 * ============================================================ */
.sll-mc__sync-monitor { margin-top: 4px; }
.sll-mc__sync-monitor-header {
	display: flex; align-items: center; justify-content: space-between;
	margin-bottom: 8px;
}
.sll-mc__sync-toggle {
	padding: 3px 10px; border-radius: 4px; font-size: 9px; font-weight: 800;
	letter-spacing: 1px; cursor: pointer; font-family: 'Rajdhani', sans-serif;
	background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
	color: var(--mc-dim); transition: all 0.2s;
}
.sll-mc__sync-toggle--on {
	background: rgba(74,222,128,0.15); border-color: rgba(74,222,128,0.3);
	color: #4ade80;
}
.sll-mc__sync-cards { display: flex; flex-direction: column; gap: 4px; }
.sll-mc__sync-card {
	background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.04);
	border-radius: 6px; padding: 6px 8px; transition: border-color 0.3s;
	cursor: pointer;
}
.sll-mc__sync-card:hover { background: rgba(0,0,0,0.45); }
.sll-mc__sync-card--green { border-color: rgba(74,222,128,0.2); }
.sll-mc__sync-card--yellow { border-color: rgba(251,191,36,0.2); }
.sll-mc__sync-card--red { border-color: rgba(239,68,68,0.2); }
.sll-mc__sync-card-head {
	display: flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 700;
	letter-spacing: 1px;
}
.sll-mc__sync-dot {
	width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.sll-mc__sync-dot--green { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,0.5); }
.sll-mc__sync-dot--yellow { background: #fbbf24; box-shadow: 0 0 6px rgba(251,191,36,0.5); }
.sll-mc__sync-dot--red { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.5); }
.sll-mc__sync-dot--gray { background: #5a6a80; }
.sll-mc__sync-name { color: var(--mc-text); flex-shrink: 0; }
.sll-mc__sync-ago { color: var(--mc-dim); font-weight: 400; margin-left: auto; font-size: 8px; }
.sll-mc__sync-badge {
	font-size: 8px; padding: 1px 5px; border-radius: 3px;
	background: rgba(255,255,255,0.06); color: var(--mc-dim);
	letter-spacing: 0.5px; flex-shrink: 0;
}
.sll-mc__sync-detail {
	font-size: 8px; color: var(--mc-dim); margin-top: 3px; padding-left: 12px;
	line-height: 1.4; font-family: 'Consolas', 'Monaco', monospace;
}
.sll-mc__sync-log {
	display: none; max-height: 150px; overflow-y: auto; background: rgba(0,0,0,0.4);
	border-radius: 4px; padding: 5px; margin-top: 5px;
	font-family: 'Consolas', 'Monaco', monospace; font-size: 9px; line-height: 1.5;
}
.sll-mc__sync-card--expanded .sll-mc__sync-log { display: block; min-height: 60px; }
.sll-mc__sync-card--expanded {
	background: rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.1); cursor: default;
}
.sll-mc__sync-card--expanded .sll-mc__sync-card-head { cursor: pointer; }
.sll-mc__sync-log::-webkit-scrollbar { width: 4px; }
.sll-mc__sync-log::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.sll-mc__sync-entry { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sll-mc__sync-entry-time { color: rgba(255,255,255,0.25); margin-right: 4px; }
.sll-mc__sync-entry-tag { font-weight: 700; margin-right: 4px; }
.sll-mc__sync-entry-tag--video { color: #00c2ff; }
.sll-mc__sync-entry-tag--caption { color: #a78bfa; }
.sll-mc__sync-entry-tag--telemetry { color: #fbbf24; }
.sll-mc__sync-entry-tag--poll { color: #4ade80; }
.sll-mc__sync-entry-tag--news { color: #f472b6; }
.sll-mc__sync-entry-tag--vision { color: #fb923c; }
.sll-mc__sync-entry-tag--transcript { color: #38bdf8; }
.sll-mc__sync-entry-msg { color: rgba(255,255,255,0.6); }
.sll-mc__sync-entry--milestone .sll-mc__sync-entry-msg { color: #4ade80; font-weight: 700; }
.sll-mc__sync-entry--error .sll-mc__sync-entry-msg { color: #ef4444; }

/* ============================================================
 * MOBILE RESPONSIVE
 * ============================================================ */
@media (max-width: 768px) {
	.sll-mc__grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
	}
	.sll-mc__left { border-right: none; border-bottom: 1px solid var(--mc-border); }
	.sll-mc__stream-primary { min-height: 30vh; max-height: 40vh; }
	.sll-mc__streams-secondary { max-height: 80px; }
	.sll-mc__iframe--mini { height: 80px; }
	.sll-mc__right { max-height: 45vh; overflow-y: auto; }
	.sll-mc__header-brand { display: none; }
	.sll-mc__header-title { font-size: 12px; }
	.sll-mc__countdown { font-size: 14px; }
	.sll-mc__telemetry { grid-template-columns: repeat(4, 1fr); }
	.sll-mc__gauge { padding: 6px; }
	.sll-mc__gauge-value { font-size: 14px; }
	.sll-mc__gauge-label { font-size: 7px; }
}

@media (max-width: 480px) {
	.sll-mc__header { padding: 6px 10px; height: 40px; }
	.sll-mc__countdown { font-size: 12px; }
	.sll-mc__live-badge { font-size: 8px; padding: 3px 8px; }
	.sll-mc__stream-primary { min-height: 25vh; }
	.sll-mc__reaction-btn { font-size: 16px; padding: 4px 8px; }
	.sll-mc__telemetry { grid-template-columns: repeat(2, 1fr); }
	.sll-mc__milestone { font-size: 11px; padding: 5px 8px; }
}

/* TV Mode (large screens) */
@media (min-width: 1600px) {
	.sll-mc__header { padding: 12px 24px; height: 56px; }
	.sll-mc__countdown { font-size: 24px; }
	.sll-mc__gauge-value { font-size: 28px; }
	.sll-mc__milestone { font-size: 14px; padding: 8px 14px; }
	.sll-mc__grid { grid-template-columns: 1fr 400px; }
}
