@media (min-width: 921px) and (hover: hover) and (pointer: fine) {
	#mcastMobileGuest {
		display: none !important;
	}
}

.mcast-mobile {
	--mobile-blue: #1967e9;
	--mobile-ink: #111827;
	--mobile-muted: #5f6876;
	--mobile-line: #d9dee8;
	--mobile-dark: #0d1118;
	--mobile-stage: #10141c;
	--mobile-panel: #f4f6fa;
	position: fixed;
	inset: 0;
	z-index: 2147483100;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	overflow: hidden;
	background: #fff;
	color: var(--mobile-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mcast-mobile *,
.mcast-mobile *::before,
.mcast-mobile *::after {
	box-sizing: border-box;
}

.mcast-mobile [hidden] {
	display: none !important;
}

.mcast-mobile [data-mobile-step] {
	display: none;
}

.mcast-mobile[data-step="permission"] [data-mobile-step="permission"],
.mcast-mobile[data-step="setup"] [data-mobile-step="setup"],
.mcast-mobile[data-step="backstage"] [data-mobile-step="backstage"],
.mcast-mobile[data-step="goodbye"] [data-mobile-step="goodbye"] {
	display: flex;
}

.mcast-mobile__light-screen,
.mcast-mobile__setup,
.mcast-mobile__backstage,
.mcast-mobile__goodbye {
	position: absolute;
	inset: 0;
	min-height: 100vh;
	min-height: 100dvh;
}

.mcast-mobile__goodbye {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: calc(32px + env(safe-area-inset-top)) 28px calc(32px + env(safe-area-inset-bottom));
	text-align: center;
	background: linear-gradient(180deg, #fff, #f6f8fb);
}

.mcast-mobile__goodbye-mark {
	width: 72px;
	height: 72px;
	margin-bottom: 10px;
	background: center / contain no-repeat url("../../media/mcast-apple-touch-icon.png");
	filter: drop-shadow(0 14px 28px rgba(25, 103, 233, .18));
}

.mcast-mobile__goodbye-brand {
	margin: 0;
	color: var(--mobile-blue);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.mcast-mobile__goodbye h1 {
	margin: 0;
	font-size: clamp(30px, 8vw, 40px);
	line-height: 1.08;
}

.mcast-mobile__goodbye > p:last-child {
	max-width: 440px;
	margin: 0;
	color: var(--mobile-muted);
	font-size: 17px;
	line-height: 1.5;
}

.mcast-mobile__light-screen {
	flex-direction: column;
	background: #fff;
}

.mcast-mobile__light-top,
.mcast-mobile__dark-top {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: calc(6px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 6px max(12px, env(safe-area-inset-left));
	flex: 0 0 auto;
}

.mcast-mobile__brand {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	flex: 0 0 auto;
	color: var(--mobile-ink);
	font-size: 13px;
	font-weight: 850;
}

.mcast-mobile__brand--dark {
	color: #fff;
}


.mcast-mobile__logo {
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	border-radius: 8px;
	background: center / contain no-repeat url("../../media/mcast-apple-touch-icon.png"), linear-gradient(135deg, #ff3d6e, #ffb000);
}

.mcast-mobile__notice-rail {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-width: 0;
	flex: 1 1 auto;
}

.mcast-mobile__notice-rail:empty {
	display: none;
}

.mcast-mobile__notice-rail.has-notice {
	order: initial;
	width: auto;
	flex: 1 1 0;
	justify-content: stretch;
}

.mcast-mobile__notice-rail .mcast-guest-ui__toast {
	max-width: 100%;
	padding: 6px 8px;
	font-size: 11px;
}

.mcast-mobile__notice-rail .mcast-guest-ui__toast > span:last-child {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.mcast-mobile__footer-rail {
	width: 100%;
	max-height: 62dvh;
	flex: 0 0 auto;
	background: #fff;
	overflow: auto;
	z-index: 18;
}

.mcast-mobile__footer-rail--backstage {
	background: var(--mobile-dark);
}

.mcast-mobile__ghost-button {
	min-width: 44px;
	min-height: 36px;
	border: 0;
	background: transparent;
	color: var(--mobile-muted);
	font: inherit;
	font-weight: 850;
}

.mcast-mobile__permission-center {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 28px 28px calc(44px + env(safe-area-inset-bottom));
}
.mcast-mobile__permission-center h1,
.mcast-mobile__setup-copy h1 {
	margin: 0;
	color: var(--mobile-ink);
	font-size: clamp(30px, 8vw, 38px);
	line-height: 1.08;
	letter-spacing: 0;
	font-weight: 850;
}

.mcast-mobile__permission-center p,
.mcast-mobile__setup-copy p {
	margin: 12px 0 0;
	color: #2f3541;
	font-size: 18px;
	line-height: 1.36;
	font-weight: 550;
}

.mcast-mobile__permission-center {
	gap: 22px;
}

.mcast-mobile__permission-center span {
	color: var(--mobile-muted);
	font-size: 18px;
	font-weight: 650;
}

.mcast-mobile__primary {
	width: 100%;
	min-height: 58px;
	border: 0;
	border-radius: 7px;
	background: var(--mobile-blue);
	color: #fff;
	font: inherit;
	font-size: 20px;
	font-weight: 850;
	box-shadow: 0 10px 24px rgba(25, 103, 233, .18);
}

.mcast-mobile__primary:disabled {
	opacity: .68;
}

.mcast-mobile__setup {
	flex-direction: column;
	background: #fff;
	overflow: hidden;
}

.mcast-mobile__setup-scroll {
	flex: 1;
	min-height: 0;
	display: grid;
	align-content: start;
	gap: 8px;
	gap: clamp(6px, 1.2dvh, 12px);
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	padding: 10px 16px 8px;
	padding: clamp(8px, 1.5dvh, 14px) 16px max(8px, env(safe-area-inset-bottom));
}

.mcast-mobile__setup-copy {
	text-align: center;
	margin: 0;
}

.mcast-mobile__setup-copy h1 {
	font-size: 26px;
	font-size: clamp(23px, 6.4vw, 30px);
	line-height: 1.05;
}

.mcast-mobile__setup-copy p {
	margin-top: 4px;
	font-size: 15px;
	font-size: clamp(14px, 3.8vw, 16px);
	line-height: 1.22;
}

.mcast-mobile__setup-card {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(112px, .72fr);
	height: 150px;
	height: clamp(132px, 22dvh, 174px);
	min-height: 0;
	border: 1px solid var(--mobile-line);
	border-radius: 7px;
	overflow: hidden;
	background: #f8fafc;
}

.mcast-mobile__setup-preview,
.mcast-mobile__self-preview {
	position: relative;
	overflow: hidden;
	background: #101114;
}

.mcast-mobile__setup-preview {
	height: 100%;
	min-height: 0;
}

.mcast-mobile__setup-preview video,
.mcast-mobile__self-preview video {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	transform: none !important;
	background: #101114;
}

.mcast-mobile__setup-preview video {
	position: absolute !important;
	inset: 0 !important;
}

#mcastMobileGuest[data-experience="remote_camera"] .mcast-mobile__setup-preview video,
#mcastMobileGuest[data-experience="remote_camera"] .mcast-mobile__self-preview video {
	object-fit: contain !important;
	background: #000;
}

.mcast-mobile__setup-preview video.mcast-mobile-video-corrected,
.mcast-mobile__self-preview video.mcast-mobile-video-corrected {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	width: var(--mcast-mobile-corrected-width, 100%) !important;
	height: var(--mcast-mobile-corrected-height, 100%) !important;
	transform: translate(-50%, -50%) rotate(90deg) !important;
	transform-origin: center center !important;
}

.mcast-mobile__setup-preview video.mcast-mobile-video-corrected.mcast-mobile-video-mirrored,
.mcast-mobile__self-preview video.mcast-mobile-video-corrected.mcast-mobile-video-mirrored {
	transform: translate(-50%, -50%) rotate(90deg) scaleX(-1) !important;
}

.mcast-mobile__setup-preview video.mcast-mobile-video-mirrored:not(.mcast-mobile-video-corrected),
.mcast-mobile__self-preview video.mcast-mobile-video-mirrored:not(.mcast-mobile-video-corrected) {
	transform: scaleX(-1) !important;
}

.mcast-mobile__preview-empty {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: rgba(255, 255, 255, .72);
	font-size: 13px;
	font-weight: 800;
}

.mcast-mobile.has-preview .mcast-mobile__preview-empty {
	display: none;
}

.mcast-mobile__mic-panel {
	display: grid;
	place-items: center;
	align-content: center;
	min-height: 0;
	gap: 6px;
	gap: clamp(4px, .8dvh, 7px);
	padding: 7px 6px;
	overflow: hidden;
	background: #f8fafc;
	color: #168036;
	text-align: center;
}

.mcast-mobile__mic-icon {
	width: 20px;
	height: 27px;
	border: 3px solid #66717f;
	border-top: 0;
	border-radius: 0 0 18px 18px;
}

.mcast-mobile__mic-meter {
	position: relative;
	width: 28px;
	height: 56px;
	height: clamp(46px, 8dvh, 64px);
	border: 2px solid #c8ced7;
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}

.mcast-mobile__mic-meter i {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 20%;
	background: #168036;
	transition: height .08s linear;
}

.mcast-mobile__mic-panel strong {
	font-size: 13px;
	font-size: clamp(12px, 3.4vw, 14px);
	line-height: 1.1;
}

.mcast-mobile__setup-controls {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 8px;
	width: max-content;
	max-width: 100%;
	padding: 6px;
	margin: 0 auto;
	border: 1px solid var(--mobile-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 26px rgba(15, 23, 42, .12);
}

.mcast-mobile__tool {
	width: 44px;
	min-width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 11px;
	border: 1px solid var(--mobile-line);
	border-radius: 10px;
	background: transparent;
	color: #3f4653;
	font: inherit;
	font-size: 12px;
	font-weight: 750;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
}

.mcast-mobile__tool svg,
.mcast-mobile__control svg {
	display: block;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mcast-mobile__tool span,
.mcast-mobile__control span {
	display: none;
}

.mcast-mobile__tool.is-off {
	color: #b91c1c;
}

.mcast-mobile__settings {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--mobile-line);
	border-radius: 12px;
	background: #f8fafc;
}

.mcast-mobile.is-audio-only .mcast-mobile__setup-controls {
	grid-template-columns: repeat(2, 1fr);
}

.mcast-mobile.is-screen-only .mcast-mobile__setup-controls {
	grid-template-columns: 1fr;
}

.mcast-mobile > .mcast-mobile__settings {
	position: fixed;
	left: max(12px, env(safe-area-inset-left));
	right: max(12px, env(safe-area-inset-right));
	top: max(12px, env(safe-area-inset-top));
	bottom: max(12px, env(safe-area-inset-bottom));
	z-index: 42;
	grid-template-rows: auto auto minmax(0, 1fr) auto;
	max-height: 720px;
	max-width: 620px;
	margin: auto;
	overflow: hidden;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 28px 90px rgba(15, 23, 42, .28);
}

.mcast-mobile.is-settings-open::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 41;
	background: rgba(15, 23, 42, .56);
}

.mcast-mobile__settings-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--mobile-line);
}

.mcast-mobile__settings-head strong {
	color: var(--mobile-ink);
	font-size: 18px;
}

.mcast-mobile__settings-head button {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--mobile-line);
	border-radius: 10px;
	background: #fff;
	color: #475467;
	font: inherit;
	font-size: 23px;
}

.mcast-mobile__settings[hidden] {
	display: none;
}

.mcast-mobile__settings-tabs {
	display: flex;
	gap: 4px;
	padding: 8px 12px;
	background: #f6f8fc;
	border-bottom: 1px solid var(--mobile-line);
}

.mcast-mobile__settings-tabs button {
	flex: 1;
	min-height: 44px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #5f6876;
	font: inherit;
	font-size: 14px;
	font-weight: 750;
}

.mcast-mobile__settings-tabs button[aria-selected="true"] {
	color: #1458ce;
	background: #e3ecff;
}

.mcast-mobile__settings-content {
	display: grid;
	align-content: start;
	gap: 9px;
	min-height: 0;
	padding: 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.mcast-mobile__settings-preview {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 80px;
	max-height: 300px;
	margin-bottom: 8px;
	overflow: hidden;
	border-radius: 10px;
	background: #10141c;
}

.mcast-mobile__settings-preview video {
	position: absolute !important;
	inset: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	transform: none !important;
}

.mcast-mobile__settings-preview video.is-mirrored {
	transform: scaleX(-1) !important;
}

.mcast-mobile__settings-preview video.is-camera-off { visibility: hidden; }

.mcast-mobile__settings-preview > span {
	position: absolute;
	bottom: 8px;
	left: 10px;
	padding: 4px 8px;
	border-radius: 6px;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 11px;
}

.mcast-mobile__settings-meter {
	display: grid;
	gap: 8px;
	padding: 16px;
	margin: 4px 0 12px;
	border-radius: 10px;
	background: #f5f7fb;
	font-size: 13px;
	color: #5f6876;
}

.mcast-mobile__settings-meter [role="meter"] {
	height: 9px;
	overflow: hidden;
	border-radius: 6px;
	background: #dde4ee;
}

.mcast-mobile__settings-meter i {
	display: block;
	height: 100%;
	width: 0;
	background: #15803d;
	transition: width .1s linear;
}

.mcast-mobile__settings-status {
	margin: 0;
	padding: 12px 16px;
	border-top: 1px solid var(--mobile-line);
	background: #f8fafc;
	color: #5f6876;
	font-size: 12px;
	line-height: 1.4;
}

.mcast-mobile__settings label,
.mcast-mobile__name-field span {
	color: #434b58;
	font-size: 14px;
	font-weight: 650;
}

.mcast-mobile__identity-fields {
	display: grid;
	gap: 10px;
}

.mcast-mobile__settings select,
.mcast-mobile__name-field input {
	width: 100%;
	min-height: 44px;
	min-height: clamp(44px, 6.5dvh, 48px);
	border: 1px solid #9ea6b2;
	border-radius: 6px;
	background: #fff;
	color: var(--mobile-ink);
	font: inherit;
	font-size: 17px;
	padding: 0 40px 0 12px;
}

.mcast-mobile__name-field input { padding-right: 12px; }

.mcast-mobile__settings-options {
	display: grid;
	gap: 12px;
	margin-top: 8px;
	padding-top: 14px;
	border-top: 1px solid var(--mobile-line);
}

.mcast-mobile__settings-options label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
}

.mcast-mobile__settings-options p {
	margin: 0;
	color: var(--mobile-muted);
	font-size: 12px;
	line-height: 1.45;
}

.mcast-mobile button:focus-visible,
.mcast-mobile select:focus-visible,
.mcast-mobile input:focus-visible {
	outline: 3px solid #76a6ff;
	outline-offset: 2px;
}

.mcast-mobile__settings-options input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--mobile-blue);
}

.mcast-mobile.is-audio-only .mcast-mobile__setup-card,
.mcast-mobile.is-screen-only .mcast-mobile__setup-card {
	grid-template-columns: 1fr;
}

.mcast-mobile.is-audio-only .mcast-mobile__setup-preview {
	display: none;
}

.mcast-mobile.is-screen-only .mcast-mobile__setup-preview video,
.mcast-mobile.is-screen-only .mcast-mobile__self-preview video {
	object-fit: contain !important;
}

.mcast-mobile__info {
	margin: 0 6px;
	text-align: center;
	color: #4b5563;
	font-size: 13px;
	font-size: clamp(12px, 3.4vw, 14px);
	line-height: 1.25;
	font-weight: 500;
}

.mcast-mobile__name-field {
	display: grid;
	gap: 4px;
	margin: 0;
}

.mcast-mobile__setup-scroll > .mcast-mobile__primary {
	min-height: 44px;
	min-height: clamp(44px, 7dvh, 52px);
	font-size: 17px;
}

.mcast-mobile__terms {
	margin: 0 6px;
	color: #5f6876;
	text-align: center;
	font-size: 11px;
	line-height: 1.2;
}

.mcast-mobile__backstage {
	flex-direction: column;
	background: var(--mobile-panel);
	color: var(--mobile-ink);
	overflow: hidden;
}

.mcast-mobile__dark-top {
	min-height: calc(40px + env(safe-area-inset-top));
	background: #fff;
	color: var(--mobile-ink);
	padding-bottom: 6px;
}

.mcast-mobile__brand--dark {
	color: var(--mobile-ink);
}


.mcast-mobile__backstage-layout {
	flex: 1;
	min-height: 0;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
}

.mcast-mobile__stage-area {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 14px;
	background: var(--mobile-panel);
}

.mcast-mobile__stage-card {
	position: relative;
	width: 100%;
	height: min(100%, calc((100vw - 28px) * 9 / 16));
	max-width: 1200px;
	min-height: 60px;
	border-radius: 10px;
	overflow: hidden;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, .025), transparent 38%),
		#101114;
}

.mcast-mobile__stage-mark {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 18px;
	color: #f1f5f9;
	text-align: center;
	font-size: 14px;
}

.mcast-mobile__stage-mark span {
	max-width: 240px;
	color: #a4aebf;
	font-size: 12px;
	line-height: 1.4;
}

.mcast-mobile.has-native-return .mcast-mobile__stage-mark {
	display: none;
}

.mcast-mobile__stage-card video[data-mcast-native-return="true"] {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: contain !important;
	background: #050914;
}

.mcast-mobile__side {
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	padding: 10px 14px;
	overflow-x: auto;
	border-top: 1px solid #e1e6ef;
	background: #fff;
	scrollbar-width: thin;
}

.mcast-mobile__self-preview {
	width: 124px;
	flex: 0 0 124px;
	aspect-ratio: 16 / 10;
	border: 2px solid #367be9;
	border-radius: 9px;
	background: #111827;
	box-shadow: none;
}

.mcast-mobile__guest-tiles { display: flex; gap: 12px; }
.mcast-mobile__guest-tiles:empty { display: none; }

.mcast-mobile__guest-tile {
	position: relative;
	width: 124px;
	flex: 0 0 124px;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 9px;
	background: #111827;
}

.mcast-mobile__guest-tile video {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
}

.mcast-mobile__presence {
	min-width: 145px;
	max-width: 220px;
	margin: 0;
	color: #657287;
	font-size: 12px;
	line-height: 1.45;
}

.mcast-mobile__self-preview span,
.mcast-mobile__guest-tile span {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 5px 7px;
	background: rgba(0, 0, 0, .42);
	color: #fff;
	font-size: 14px;
	font-weight: 750;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mcast-mobile__bottom-bar {
	position: relative;
	z-index: 20;
	display: flex;
	justify-content: center;
	gap: 10px;
	width: 100%;
	flex: 0 0 auto;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	background: #fff;
	border-top: 1px solid #e1e6ef;
}

.mcast-mobile.is-audio-only .mcast-mobile__bottom-bar {
	grid-template-columns: repeat(3, 1fr);
}

.mcast-mobile.is-screen-only .mcast-mobile__bottom-bar {
	grid-template-columns: repeat(2, 1fr);
}

.mcast-mobile__control {
	width: 44px;
	min-width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 12px;
	border: 0;
	border-radius: 8px;
	background: #f0f3f8;
	color: #334155;
	font: inherit;
	font-size: 11px;
	font-weight: 800;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	box-shadow: none;
}

.mcast-mobile__control.is-off {
	background: #fef2f2;
	color: #b91c1c;
}

.mcast-mobile__tool.is-unavailable,
.mcast-mobile__control.is-unavailable {
	background: #dc2626;
	color: #fff;
	cursor: not-allowed;
	opacity: 1;
}

.mcast-mobile__control--leave {
	background: #dc2626;
	color: #fff;
}

@media (orientation: landscape) and (max-width: 920px), (orientation: landscape) and (hover: none) {
	#mcastMobileCameraSettings {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 8px 16px;
	}

	#mcastMobileCameraSettings > .mcast-mobile__settings-preview {
		grid-column: 1;
		grid-row: 1 / span 5;
		aspect-ratio: auto;
		height: 100%;
		min-height: 120px;
		margin: 0;
	}

	#mcastMobileCameraSettings > label,
	#mcastMobileCameraSettings > select,
	#mcastMobileCameraSettings > .mcast-mobile__settings-options {
		grid-column: 2;
	}

	.mcast-mobile__setup .mcast-mobile__light-top {
		flex-wrap: nowrap;
		gap: 8px;
		padding: 6px 12px;
		padding-top: calc(6px + env(safe-area-inset-top));
		padding-right: calc(12px + env(safe-area-inset-right));
		padding-left: calc(12px + env(safe-area-inset-left));
	}

	.mcast-mobile__setup .mcast-mobile__brand {
		gap: 7px;
		font-size: 14px;
	}

	.mcast-mobile__setup .mcast-mobile__logo {
		width: 34px;
		height: 34px;
		border-radius: 9px;
	}

	.mcast-mobile__setup .mcast-mobile__notice-rail.has-notice {
		order: initial;
		width: auto;
		flex: 1 1 auto;
		justify-content: flex-end;
	}

	.mcast-mobile__setup .mcast-mobile__notice-rail .mcast-guest-ui__toast {
		padding: 6px 8px;
		font-size: 11px;
	}

	.mcast-mobile__setup .mcast-mobile__notice-rail .mcast-guest-ui__toast > span:last-child {
		-webkit-line-clamp: 1;
	}

	.mcast-mobile__setup-scroll {
		grid-template-columns: minmax(0, 1.2fr) minmax(230px, .8fr);
		grid-template-areas:
			"copy info"
			"card name"
			"card enter"
			"tools terms";
		grid-template-rows: auto auto auto auto;
		align-content: center;
		padding-right: 12px;
		padding-left: 12px;
		padding-right: calc(12px + env(safe-area-inset-right));
		padding-left: calc(12px + env(safe-area-inset-left));
	}

	.mcast-mobile__setup-copy {
		grid-area: copy;
		align-self: center;
	}

	.mcast-mobile__setup-card {
		grid-area: card;
		height: auto;
		min-height: 0;
	}

	.mcast-mobile__setup-controls {
		grid-area: tools;
	}

	.mcast-mobile__info {
		grid-area: info;
		align-self: center;
	}

	.mcast-mobile__identity-fields {
		grid-area: name;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mcast-mobile__setup-scroll > .mcast-mobile__primary {
		grid-area: enter;
	}

	.mcast-mobile__terms {
		grid-area: terms;
		align-self: center;
	}

	.mcast-mobile__dark-top {
		position: relative;
		z-index: 14;
		width: 100%;
		min-height: calc(40px + env(safe-area-inset-top));
		padding-top: calc(6px + env(safe-area-inset-top));
		padding-bottom: 6px;
		background: rgba(255, 255, 255, .96);
	}

	.mcast-mobile__backstage-layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: minmax(0, 1fr) auto;
		gap: 0;
	}

	.mcast-mobile__stage-area {
		min-height: 0;
		padding: 8px 14px;
	}

	.mcast-mobile__side {
		padding: 8px 14px;
	}

	.mcast-mobile__self-preview {
		width: 96px;
		flex-basis: 96px;
		margin: 0;
	}

	.mcast-mobile__guest-tile { width: 96px; flex-basis: 96px; }

	.mcast-mobile__bottom-bar {
		grid-template-columns: repeat(4, minmax(72px, 104px));
		justify-content: center;
		padding-top: 8px;
		padding-bottom: calc(8px + env(safe-area-inset-bottom));
	}

	.mcast-mobile__control {
		min-height: 44px;
	}
}

@media (orientation: landscape) and (max-height: 380px) {
	.mcast-mobile__setup-scroll {
		grid-template-areas:
			"card name"
			"card enter"
			"tools terms";
		grid-template-rows: minmax(0, 1fr) auto auto;
		align-content: stretch;
	}

	.mcast-mobile__setup-copy,
	.mcast-mobile__info {
		display: none;
	}

	.mcast-mobile__setup-card {
		height: 100%;
		max-height: 174px;
		align-self: center;
	}
}

@media (orientation: portrait) and (max-height: 620px) {
	.mcast-mobile__info {
		display: none;
	}
}

@media (orientation: portrait) and (max-height: 540px) {
	.mcast-mobile__setup-scroll {
		gap: 4px;
		padding-top: 4px;
		padding-bottom: 4px;
		padding-bottom: max(4px, env(safe-area-inset-bottom));
	}

	.mcast-mobile__setup-copy p {
		display: none;
	}

	.mcast-mobile__setup-copy h1 {
		font-size: 22px;
		line-height: 1;
	}

	.mcast-mobile__setup-card {
		height: 120px;
	}

	.mcast-mobile__tool {
		height: 44px;
		min-height: 44px;
		gap: 2px;
		padding: 0;
		font-size: 11px;
	}

	.mcast-mobile__mic-panel {
		gap: 3px;
		padding: 4px;
	}

	.mcast-mobile__mic-icon {
		width: 16px;
		height: 21px;
		border-width: 2px;
		border-top: 0;
	}

	.mcast-mobile__mic-meter {
		width: 24px;
		height: 34px;
	}

	.mcast-mobile__mic-panel strong {
		font-size: 11px;
	}
}

@media (max-height: 520px) {
	.mcast-mobile__setup-scroll:focus-within {
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.mcast-mobile__setup-scroll:focus-within::-webkit-scrollbar {
		display: none;
	}
}

@media (max-width: 360px) {
	.mcast-mobile__setup-scroll {
		padding-left: 14px;
		padding-right: 14px;
	}

	.mcast-mobile__setup-card {
		grid-template-columns: minmax(0, 1.35fr) 104px;
	}

	.mcast-mobile__bottom-bar {
		gap: 6px;
		padding-left: 8px;
		padding-right: 8px;
	}
}

/* Remote sources use their own presentation without changing guest room layouts. */
#mcastMobileGuest.is-remote-source {
	--mobile-ink: #172033;
	--mobile-muted: #667085;
	--mobile-line: #e1e6ee;
	--mobile-panel: #f5f7fb;
	background: var(--mobile-panel);
}

#mcastMobileGuest.is-remote-source .mcast-mobile__light-screen,
#mcastMobileGuest.is-remote-source .mcast-mobile__setup,
#mcastMobileGuest.is-remote-source .mcast-mobile__backstage,
#mcastMobileGuest.is-remote-source .mcast-mobile__goodbye {
	background: var(--mobile-panel);
}

#mcastMobileGuest.is-remote-source .mcast-mobile__light-top,
#mcastMobileGuest.is-remote-source .mcast-mobile__dark-top {
	min-height: calc(44px + env(safe-area-inset-top));
	border-bottom: 1px solid var(--mobile-line);
	background: #fff;
}

#mcastMobileGuest.is-remote-source .mcast-mobile__brand { font-weight: 700; }

#mcastMobileGuest.is-remote-source .mcast-mobile__permission-center {
	justify-content: flex-start;
	gap: 18px;
	width: 100%;
	max-width: 520px;
	min-height: 0;
	margin: 0 auto;
	padding: 28px 24px max(24px, env(safe-area-inset-bottom));
	overflow-y: auto;
	overscroll-behavior: contain;
}

#mcastMobileGuest.is-remote-source .mcast-mobile__permission-center > * { flex-shrink: 0; }

#mcastMobileGuest.is-remote-source .mcast-mobile__source-icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-top: auto;
	border: 1px solid #dde6f5;
	border-radius: 18px;
	background: #ebf2ff;
	color: var(--mobile-blue);
}

#mcastMobileGuest.is-remote-source .mcast-mobile__source-icon svg,
#mcastMobileGuest.is-remote-source .mcast-mobile__mic-icon svg,
#mcastMobileGuest.is-remote-source .mcast-mobile__source-camera-off svg {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

#mcastMobileGuest.is-remote-source .mcast-mobile__permission-center h1,
#mcastMobileGuest.is-remote-source .mcast-mobile__setup-copy h1,
#mcastMobileGuest.is-remote-source .mcast-mobile__source-copy h1 {
	margin: 0;
	font-size: clamp(24px, 6.6vw, 30px);
	line-height: 1.2;
	letter-spacing: -.025em;
	font-weight: 700;
}

#mcastMobileGuest.is-remote-source .mcast-mobile__permission-center p,
#mcastMobileGuest.is-remote-source .mcast-mobile__setup-copy p,
#mcastMobileGuest.is-remote-source .mcast-mobile__source-copy p {
	margin: 0;
	color: var(--mobile-muted);
	font-size: 14px;
	line-height: 1.5;
	font-weight: 400;
}

#mcastMobileGuest.is-remote-source .mcast-mobile__primary {
	min-height: 48px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 650;
	box-shadow: none;
}

#mcastMobileGuest.is-remote-source .mcast-mobile__screen-choices {
	width: 100%;
	padding: 10px 8px;
	border: 1px solid var(--mobile-line);
	border-radius: 10px;
	background: #fff;
	color: #475467;
	font-size: 13px;
}

#mcastMobileGuest.is-remote-source .mcast-mobile__screen-audio {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--mobile-line);
	border-radius: 12px;
	background: #fff;
	text-align: left;
}

#mcastMobileGuest.is-remote-source .mcast-mobile__screen-audio label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
}

#mcastMobileGuest.is-remote-source .mcast-mobile__screen-audio input {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--mobile-blue);
}

#mcastMobileGuest.is-remote-source .mcast-mobile__screen-audio p {
	margin: 8px 0 0 28px;
	font-size: 12px;
}

#mcastMobileGuest.is-remote-source .mcast-source-link {
	margin: 0;
	color: var(--mobile-muted);
	font-size: 11px;
	line-height: 1.5;
	text-decoration: none;
}

#mcastMobileGuest.is-remote-source .mcast-source-link:hover { text-decoration: underline; }
#mcastMobileGuest.is-remote-source .mcast-mobile__permission-center > .mcast-source-link { margin-bottom: auto; }

#mcastMobileGuest.is-remote-source .mcast-mobile__setup-scroll {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	padding: 20px 20px max(20px, env(safe-area-inset-bottom));
}

#mcastMobileGuest.is-remote-source .mcast-mobile__setup-scroll > * { flex: 0 0 auto; }
#mcastMobileGuest.is-remote-source .mcast-mobile__setup-copy { display: block; margin-top: auto; }
#mcastMobileGuest.is-remote-source .mcast-mobile__setup-copy p { display: block; margin-top: 7px; }
#mcastMobileGuest.is-remote-source .mcast-mobile__setup-scroll > .mcast-source-link { margin-bottom: auto; }

#mcastMobileGuest.is-remote-source .mcast-mobile__setup-card {
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	height: auto;
	max-height: none;
	border: 0;
	border-radius: 0;
	overflow: visible;
	background: transparent;
}

#mcastMobileGuest.is-remote-source .mcast-mobile__setup-preview,
#mcastMobileGuest.is-remote-source .mcast-mobile__self-preview {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 1px solid #d8dee8;
	border-radius: 14px;
	background: #111827;
	box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
}

#mcastMobileGuest.is-remote-source .mcast-mobile__self-preview video {
	position: absolute !important;
	inset: 0 !important;
}

#mcastMobileGuest.is-remote-source .mcast-mobile__self-preview > span { display: none; }

#mcastMobileGuest.is-remote-source .mcast-mobile__preview-empty {
	padding: 16px;
	color: #b9c3d3;
	font-weight: 500;
	text-align: center;
}

#mcastMobileGuest.is-remote-source .mcast-mobile__source-camera-off { display: none; }
#mcastMobileGuest.is-remote-source .is-camera-off .mcast-mobile__source-camera-off {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #111827;
	color: #cbd5e1;
	font-size: 13px;
}

#mcastMobileGuest.is-remote-source .mcast-mobile__mic-panel {
	grid-template-columns: 24px minmax(0, 1fr);
	gap: 6px 12px;
	padding: 12px 16px;
	border: 1px solid var(--mobile-line);
	border-radius: 12px;
	background: #fff;
	color: var(--mobile-muted);
	text-align: left;
}

#mcastMobileGuest.is-remote-source .mcast-mobile__mic-icon {
	grid-row: 1 / span 2;
	width: 24px;
	height: 24px;
	border: 0;
	border-radius: 0;
	color: #667085;
}

#mcastMobileGuest.is-remote-source .mcast-mobile__mic-icon svg { width: 24px; height: 24px; }
#mcastMobileGuest.is-remote-source .mcast-mobile__mic-meter {
	width: 100%;
	height: 7px;
	border: 0;
	border-radius: 4px;
	background: #e8edf3;
}

#mcastMobileGuest.is-remote-source .mcast-mobile__mic-meter i {
	width: 0;
	height: 100%;
	right: auto;
	border-radius: inherit;
	background: #16a36c;
	transition: width .1s linear;
}

#mcastMobileGuest.is-remote-source .mcast-mobile__mic-panel strong {
	width: 100%;
	font-size: 12px;
	line-height: 1.4;
	font-weight: 400;
}

#mcastMobileGuest.is-remote-source.is-audio-only .mcast-mobile__mic-panel {
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	min-height: 176px;
	padding: 24px;
	text-align: center;
}

#mcastMobileGuest.is-remote-source.is-audio-only .mcast-mobile__mic-icon {
	display: grid;
	place-items: center;
	grid-row: auto;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: #ebf2ff;
	color: var(--mobile-blue);
}

#mcastMobileGuest.is-remote-source .mcast-mobile__setup-controls {
	gap: 10px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

#mcastMobileGuest.is-remote-source .mcast-mobile__tool,
#mcastMobileGuest.is-remote-source .mcast-mobile__control {
	border: 1px solid var(--mobile-line);
	border-radius: 11px;
	background: #fff;
	color: #475467;
}

#mcastMobileGuest.is-remote-source .mcast-mobile__tool.is-off,
#mcastMobileGuest.is-remote-source .mcast-mobile__control.is-off {
	border-color: #fed7d7;
	background: #fff1f2;
	color: #c43143;
}

#mcastMobileGuest.is-remote-source .mcast-mobile__tool.is-unavailable,
#mcastMobileGuest.is-remote-source .mcast-mobile__control.is-unavailable {
	border-color: var(--mobile-line);
	background: #f0f2f6;
	color: #98a2b3;
}

#mcastMobileGuest.is-remote-source .mcast-mobile__info { display: block; margin: 0; font-size: 12px; line-height: 1.5; }

#mcastMobileGuest.is-remote-source .mcast-mobile__backstage-layout {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	padding: 24px 20px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

#mcastMobileGuest.is-remote-source .mcast-mobile__backstage-layout > * { flex: 0 0 auto; }
#mcastMobileGuest.is-remote-source .mcast-mobile__source-copy { margin-top: auto; text-align: center; }
#mcastMobileGuest.is-remote-source .mcast-mobile__source-copy h1 { margin-top: 12px; }
#mcastMobileGuest.is-remote-source .mcast-mobile__source-copy p { margin-top: 8px; }
#mcastMobileGuest.is-remote-source .mcast-mobile__source-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 9px;
	border: 1px solid #cdebdc;
	border-radius: 20px;
	background: #ecf9f1;
	color: #16764a;
	font-size: 11px;
	font-weight: 600;
}

#mcastMobileGuest.is-remote-source .mcast-mobile__source-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
#mcastMobileGuest.is-remote-source .mcast-mobile__stage-area { display: block; padding: 0; background: transparent; }
#mcastMobileGuest.is-remote-source .mcast-mobile__stage-card { display: none; }
#mcastMobileGuest.is-remote-source.is-audio-only .mcast-mobile__stage-area { display: none; }
#mcastMobileGuest.is-remote-source .mcast-mobile__backstage-layout > .mcast-source-link { margin-bottom: auto; }
#mcastMobileGuest.is-remote-source .mcast-mobile__bottom-bar { gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
#mcastMobileGuest.is-remote-source .mcast-mobile__control--leave { border-color: #e34646; background: #e34646; color: #fff; }

#mcastMobileGuest.is-remote-source > .mcast-mobile__settings { border-radius: 16px; box-shadow: 0 24px 72px rgba(15, 23, 42, .22); }
#mcastMobileGuest.is-remote-source .mcast-mobile__settings-head strong { font-size: 17px; font-weight: 650; }
#mcastMobileGuest.is-remote-source .mcast-mobile__settings-tabs button { font-weight: 600; }
#mcastMobileGuest.is-remote-source .mcast-mobile__settings-content { gap: 10px; padding: 18px; }
#mcastMobileGuest.is-remote-source .mcast-mobile__settings label { font-size: 13px; font-weight: 500; }
#mcastMobileGuest.is-remote-source .mcast-mobile__settings select { min-width: 0; min-height: 44px; border-color: #cfd6e2; border-radius: 9px; font-size: 16px; }
#mcastMobileGuest.is-remote-source .mcast-mobile__screen-hint { margin: 0; color: var(--mobile-muted); font-size: 13px; line-height: 1.6; }
#mcastMobileGuest.is-remote-source .mcast-mobile__goodbye h1 { font-size: 28px; line-height: 1.2; font-weight: 700; }
#mcastMobileGuest.is-remote-source .mcast-mobile__goodbye > p:last-of-type { color: var(--mobile-muted); font-size: 14px; }
#mcastMobileGuest.is-remote-source .mcast-mobile__goodbye .mcast-source-link { margin-top: 16px; }

@media (orientation: landscape) and (max-width: 920px), (orientation: landscape) and (hover: none) {
	#mcastMobileGuest.is-remote-source .mcast-mobile__permission-center { max-width: 600px; gap: 12px; padding: 20px 24px; }
	#mcastMobileGuest.is-remote-source .mcast-mobile__source-icon { width: 48px; height: 48px; border-radius: 14px; }
	#mcastMobileGuest.is-remote-source.is-screen-only .mcast-mobile__permission-center {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-areas: "icon choices" "heading audio" "message action" "license license";
		align-content: safe center;
		gap: 12px 28px;
		max-width: 780px;
	}
	#mcastMobileGuest.is-remote-source.is-screen-only .mcast-mobile__source-icon { grid-area: icon; justify-self: center; margin: 0; }
	#mcastMobileGuest.is-remote-source.is-screen-only #mcastMobilePermissionTitle { grid-area: heading; }
	#mcastMobileGuest.is-remote-source.is-screen-only #mcastMobilePermissionMessage { grid-area: message; }
	#mcastMobileGuest.is-remote-source.is-screen-only .mcast-mobile__screen-choices { grid-area: choices; align-self: center; }
	#mcastMobileGuest.is-remote-source.is-screen-only .mcast-mobile__screen-audio { grid-area: audio; align-self: center; }
	#mcastMobileGuest.is-remote-source.is-screen-only #mcastMobileAllowButton { grid-area: action; align-self: center; }
	#mcastMobileGuest.is-remote-source.is-screen-only .mcast-mobile__permission-center > .mcast-source-link { grid-area: license; margin: 0; }
	#mcastMobileGuest.is-remote-source .mcast-mobile__setup-scroll {
		display: grid;
		grid-template-columns: minmax(0, 1.25fr) minmax(230px, .85fr);
		grid-template-areas: "card copy" "card info" "card tools" "card enter" "license license";
		grid-template-rows: auto auto auto auto auto;
		align-content: safe center;
		gap: 10px 24px;
		max-width: 960px;
		padding: 16px max(24px, env(safe-area-inset-right)) 12px max(24px, env(safe-area-inset-left));
	}
	#mcastMobileGuest.is-remote-source .mcast-mobile__setup-card { grid-area: card; align-self: center; min-height: 0; }
	#mcastMobileGuest.is-remote-source .mcast-mobile__setup-copy { grid-area: copy; margin: 0; }
	#mcastMobileGuest.is-remote-source .mcast-mobile__setup-copy h1 { font-size: 24px; }
	#mcastMobileGuest.is-remote-source .mcast-mobile__setup-copy p { font-size: 13px; }
	#mcastMobileGuest.is-remote-source .mcast-mobile__setup-controls { grid-area: tools; }
	#mcastMobileGuest.is-remote-source .mcast-mobile__setup-scroll > .mcast-mobile__primary { grid-area: enter; }
	#mcastMobileGuest.is-remote-source .mcast-mobile__setup-scroll > .mcast-source-link { grid-area: license; margin: 0; }
	#mcastMobileGuest.is-remote-source .mcast-mobile__backstage-layout {
		display: grid;
		grid-template-columns: minmax(0, 1.25fr) minmax(230px, .85fr);
		grid-template-areas: "preview copy" "preview meter" "license license";
		grid-template-rows: auto auto auto;
		align-content: safe center;
		gap: 12px 24px;
		max-width: 960px;
		padding: 12px max(24px, env(safe-area-inset-right)) 10px max(24px, env(safe-area-inset-left));
	}
	#mcastMobileGuest.is-remote-source .mcast-mobile__stage-area { grid-area: preview; align-self: center; }
	#mcastMobileGuest.is-remote-source .mcast-mobile__source-copy { grid-area: copy; margin: 0; align-self: center; }
	#mcastMobileGuest.is-remote-source .mcast-mobile__backstage-layout > .mcast-mobile__mic-panel { grid-area: meter; }
	#mcastMobileGuest.is-remote-source .mcast-mobile__backstage-layout > .mcast-source-link { grid-area: license; margin: 0; }
	#mcastMobileGuest.is-remote-source.is-audio-only .mcast-mobile__backstage-layout { grid-template-areas: "meter copy" "license license"; grid-template-rows: auto auto; }
	#mcastMobileGuest.is-remote-source.is-screen-only .mcast-mobile__backstage-layout { grid-template-areas: "preview copy" "license license"; grid-template-rows: auto auto; }
	#mcastMobileGuest.is-remote-source .mcast-mobile__bottom-bar { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
	#mcastMobileGuest.is-remote-source .mcast-mobile__setup-scroll,
	#mcastMobileGuest.is-remote-source .mcast-mobile__backstage-layout { gap: 12px; padding-right: 16px; padding-left: 16px; }
	#mcastMobileGuest.is-remote-source .mcast-mobile__permission-center { padding-right: 20px; padding-left: 20px; }
}
