@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;
	}
}
