/* Phone Screen Share portal */
#mdss_root {
	--mdss-accent: #0d9488;
	--mdss-accent-2: #0f766e;
	--mdss-bg: var(--bo-bg, #0b1220);
	--mdss-card: var(--bo-bg-elevated, #111827);
	--mdss-border: var(--bo-border, #1f2937);
	--mdss-text: var(--bo-text, #e5e7eb);
	--mdss-muted: var(--bo-text-muted, #94a3b8);
	color: var(--mdss-text);
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1 1 0;
	width: 100%;
	box-sizing: border-box;
}
#mdss_root * { box-sizing: border-box; }
.mdss-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}
.mdss-hero h1 {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--bo-text-strong, var(--mdss-text));
}
.mdss-hero h1 i { color: var(--mdss-accent); }
.mdss-hero p {
	margin: 6px 0 0;
	font-size: 0.875rem;
	color: var(--mdss-muted);
	max-width: 42rem;
	line-height: 1.45;
}
.mdss-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.mdss-tab {
	border: 1px solid var(--mdss-border);
	background: var(--bo-bg, #0f172a);
	color: var(--mdss-text);
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
}
.mdss-tab.on {
	background: var(--mdss-accent);
	border-color: transparent;
	color: #fff;
}
.mdss-panel { display: none; flex: 1 1 0; min-height: 0; }
.mdss-panel.on { display: flex; flex-direction: column; gap: 12px; }
.mdss-card {
	background: var(--mdss-card);
	border: 1px solid var(--mdss-border);
	border-radius: 16px;
	padding: 16px;
}
.mdss-card h2 {
	margin: 0 0 8px;
	font-size: 1rem;
	font-weight: 700;
}
.mdss-card p.hint {
	margin: 0 0 14px;
	font-size: 13px;
	color: var(--mdss-muted);
	line-height: 1.45;
}
.mdss-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
.mdss-row input[type="text"] {
	flex: 1 1 160px;
	min-width: 0;
	border: 1px solid var(--mdss-border);
	background: var(--bo-bg, #0f172a);
	color: var(--mdss-text);
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 16px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 700;
}
.mdss-btn {
	border: 0;
	border-radius: 12px;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	background: var(--mdss-accent);
	color: #fff;
}
.mdss-btn:hover { filter: brightness(1.06); }
.mdss-btn.ghost {
	background: transparent;
	border: 1px solid var(--mdss-border);
	color: var(--mdss-text);
}
.mdss-btn.danger { background: #b91c1c; }
.mdss-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.mdss-code-big {
	font-size: clamp(1.8rem, 6vw, 2.6rem);
	font-weight: 800;
	letter-spacing: 0.28em;
	text-align: center;
	padding: 8px 0 4px;
	color: var(--bo-text-strong, #f8fafc);
}
.mdss-qr-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 10px 0 4px;
}
#mdss_qr {
	width: 200px;
	height: 200px;
	background: #fff;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
#mdss_qr img, #mdss_qr canvas {
	display: block;
	margin: 0 auto;
}
.mdss-url {
	font-size: 12px;
	color: var(--mdss-muted);
	word-break: break-all;
	text-align: center;
	max-width: 28rem;
}
.mdss-stage {
	position: relative;
	flex: 1 1 0;
	min-height: min(52vh, 480px);
	background: #000;
	border-radius: 16px;
	border: 1px solid var(--mdss-border);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.mdss-stage video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
}
.mdss-stage .mdss-empty {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 24px;
	text-align: center;
	color: #94a3b8;
	pointer-events: none;
}
.mdss-stage .mdss-empty i { font-size: 2rem; opacity: 0.7; }
.mdss-stage.has-video .mdss-empty { display: none; }
.mdss-status {
	font-size: 13px;
	color: var(--mdss-muted);
	min-height: 1.25em;
}
.mdss-status.err { color: #f87171; }
.mdss-status.ok { color: #34d399; }
.mdss-pill-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.mdss-pill {
	border: 1px solid var(--mdss-border);
	background: var(--bo-bg, #0f172a);
	color: var(--mdss-text);
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	min-height: 40px;
}
.mdss-pill.on {
	background: color-mix(in srgb, var(--mdss-accent) 22%, transparent);
	border-color: var(--mdss-accent);
	color: #5eead4;
}
.mdss-live-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
}
.mdss-live-dot {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	color: #f87171;
}
.mdss-live-dot::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
	animation: mdss-pulse 1.4s ease-in-out infinite;
}
@keyframes mdss-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.45; }
}
.mdss-hidden { display: none !important; }
html.md-phone #mdss_root .mdss-tab { flex: 1 1 auto; justify-content: center; }
html.md-phone #mdss_root .mdss-stage { min-height: 48vh; }
