/* bMeet – videochamada 1:1 */

.bmeet,
.bmeet-call,
.bmeet-toasts {
	--bm-font: "Google Sans", Roboto, "Segoe UI", system-ui, -apple-system, sans-serif;
	--bm-primary: #1a73e8;
	--bm-primary-hover: #1765cc;
	--bm-text: #202124;
	--bm-muted: #5f6368;
	--bm-border: #dadce0;
	--bm-dark: #202124;
	--bm-tile: #3c4043;
	--bm-btn: #3c4043;
	--bm-btn-hover: #4a4e51;
	--bm-red: #ea4335;
	--bm-red-hover: #d93025;
	--bm-light: #e8eaed;
	--bm-blue: #8ab4f8;
	font-family: var(--bm-font);
	box-sizing: border-box;
}
.bmeet *,
.bmeet *::before,
.bmeet *::after,
.bmeet-call *,
.bmeet-call *::before,
.bmeet-call *::after {
	box-sizing: border-box;
}
.bmeet [hidden],
.bmeet-call [hidden] {
	display: none !important;
}

/* ---------- Ícones ---------- */
.bmeet-ico {
	display: inline-flex;
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
}
.bmeet-ico svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

/* ---------- Botões e campos (páginas claras) ---------- */
.bmeet .bmeet-btn,
.bmeet-call .bmeet-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 22px;
	margin: 0;
	border: 1px solid transparent;
	border-radius: 999px;
	font: 500 15px/1 var(--bm-font);
	letter-spacing: .01em;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .15s, box-shadow .15s, color .15s;
}
.bmeet .bmeet-btn .bmeet-ico {
	width: 20px;
	height: 20px;
}
.bmeet .bmeet-btn:disabled {
	opacity: .5;
	cursor: default;
}
.bmeet .bmeet-btn-primary {
	background: var(--bm-primary);
	color: #fff;
}
.bmeet .bmeet-btn-primary:hover:not(:disabled),
.bmeet .bmeet-btn-primary:focus-visible {
	background: var(--bm-primary-hover);
	color: #fff;
	box-shadow: 0 1px 3px rgba(60, 64, 67, .3);
}
.bmeet .bmeet-btn-outline {
	background: #fff;
	color: var(--bm-primary);
	border-color: var(--bm-border);
}
.bmeet .bmeet-btn-outline:hover {
	background: #f6fafe;
	color: var(--bm-primary);
}
.bmeet .bmeet-btn-text {
	background: transparent;
	color: var(--bm-primary);
	padding: 0 14px;
}
.bmeet .bmeet-btn-text:hover:not(:disabled) {
	background: rgba(26, 115, 232, .08);
	color: var(--bm-primary);
}
.bmeet .bmeet-btn-wide {
	min-width: 180px;
}

.bmeet .bmeet-input {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--bm-border);
	border-radius: 8px;
	background: #fff;
	color: var(--bm-text);
	font: 400 16px/1 var(--bm-font);
	box-shadow: none;
	outline: none;
}
.bmeet .bmeet-input:focus {
	border-color: var(--bm-primary);
	box-shadow: inset 0 0 0 1px var(--bm-primary);
}

.bmeet .bmeet-title {
	margin: 0 0 10px;
	color: var(--bm-text);
	font: 400 clamp(24px, 4vw, 36px)/1.25 var(--bm-font);
}
.bmeet .bmeet-sub {
	margin: 0 0 28px;
	color: var(--bm-muted);
	font: 400 17px/1.5 var(--bm-font);
}
.bmeet .bmeet-error {
	min-height: 1.4em;
	margin: 12px 0 0;
	color: #d93025;
	font: 400 14px/1.4 var(--bm-font);
}
.bmeet .bmeet-error:empty {
	min-height: 0;
	margin: 0;
}

/* ---------- Tela inicial ---------- */
.bmeet {
	max-width: 1100px;
	margin: 0 auto;
	color: var(--bm-text);
}
.bmeet-card {
	padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 48px);
}
.bmeet-home-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}
.bmeet-join-form {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 300px;
	max-width: 420px;
	margin: 0;
}
.bmeet-input-wrap {
	position: relative;
	flex: 1;
}
.bmeet-input-wrap .bmeet-ico {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--bm-muted);
	pointer-events: none;
}
.bmeet .bmeet-input-wrap .bmeet-input {
	padding-left: 46px;
}
.bmeet-message .bmeet-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
}

/* ---------- Sala de espera ---------- */
.bmeet-lobby {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(24px, 4vw, 56px);
	padding: clamp(16px, 4vw, 40px) 0;
}
.bmeet-preview {
	position: relative;
	flex: 1 1 480px;
	max-width: 720px;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: var(--bm-dark);
	box-shadow: 0 1px 3px rgba(60, 64, 67, .3), 0 4px 8px 3px rgba(60, 64, 67, .15);
}
.bmeet-preview video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bmeet-preview-msg {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	color: #fff;
	text-align: center;
	font: 400 18px/1.4 var(--bm-font);
	pointer-events: none;
}
.bmeet-preview-msg:empty {
	display: none;
}
.bmeet-preview-controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	display: flex;
	justify-content: center;
	gap: 16px;
}
.bmeet-preview-controls .bmeet-round {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .8);
}
.bmeet-preview-controls .bmeet-round:hover:not(:disabled) {
	background: rgba(255, 255, 255, .15);
}
.bmeet-preview-controls .bmeet-round.is-off {
	background: var(--bm-red);
	border-color: var(--bm-red);
}
.bmeet-lobby-side {
	flex: 0 1 340px;
	text-align: center;
}
.bmeet .bmeet-status {
	margin: 0 0 20px;
	color: var(--bm-muted);
	font: 400 15px/1.4 var(--bm-font);
}
.bmeet-lobby-form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin: 0;
}
.bmeet-lobby-link {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 22px;
	color: var(--bm-muted);
}
.bmeet-lobby-link code {
	padding: 4px 8px;
	border-radius: 4px;
	background: #f1f3f4;
	color: var(--bm-text);
	font-size: 14px;
}

/* ---------- Botões redondos ---------- */
.bmeet-round {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--bm-btn);
	color: #fff;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .15s, border-radius .2s;
}
.bmeet-round:hover:not(:disabled) {
	background: var(--bm-btn-hover);
}
.bmeet-round:focus-visible,
.bmeet-icon-btn:focus-visible {
	outline: 2px solid var(--bm-blue);
	outline-offset: 2px;
}
.bmeet-round:disabled {
	opacity: .45;
	cursor: default;
}
.bmeet-round.is-off {
	background: var(--bm-red);
}
.bmeet-round.is-off:hover:not(:disabled) {
	background: var(--bm-red-hover);
}
.bmeet-round.is-active {
	background: var(--bm-blue);
	color: var(--bm-dark);
}
.bmeet-round.bmeet-leave {
	width: 64px;
	border-radius: 24px;
	background: var(--bm-red);
}
.bmeet-round.bmeet-leave:hover {
	background: var(--bm-red-hover);
}

.bmeet-icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	box-shadow: none;
}
.bmeet-icon-btn:hover {
	background: rgba(255, 255, 255, .1);
}

/* ---------- Chamada (tela cheia) ---------- */
html.bmeet-in-call,
html.bmeet-in-call body {
	overflow: hidden !important;
}
.bmeet-call {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	flex-direction: column;
	background: var(--bm-dark);
	color: var(--bm-light);
	font-size: 14px;
	line-height: 1.4;
	text-align: left;
}
.bmeet-main {
	position: relative;
	display: flex;
	flex: 1;
	min-height: 0;
	padding: 16px 16px 0;
	gap: 16px;
}
.bmeet-stage {
	position: relative;
	flex: 1;
	min-width: 0;
}

.bmeet-tile {
	position: absolute;
	overflow: hidden;
	border-radius: 12px;
	background: var(--bm-tile);
}
.bmeet-tile video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity .2s;
}
.bmeet-tile.has-video video {
	opacity: 1;
}
.bmeet-tile.has-video .bmeet-placeholder {
	display: none;
}
.bmeet-mirror {
	transform: scaleX(-1);
}

.bmeet-remote {
	inset: 0;
}
.bmeet-remote video {
	object-fit: contain;
	background: #000;
}
.bmeet-self {
	right: 16px;
	bottom: 16px;
	z-index: 2;
	width: clamp(140px, 22%, 300px);
	aspect-ratio: 16 / 9;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .45);
}
.bmeet-self video {
	object-fit: cover;
}

.bmeet-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 24px;
	text-align: center;
}
.bmeet-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(80px, 14vw, 160px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: #5f6368;
	color: #fff;
	font: 500 clamp(36px, 6vw, 72px)/1 var(--bm-font);
	text-transform: uppercase;
	user-select: none;
}
.bmeet-avatar-sm {
	width: 48px;
	font-size: 22px;
}
.bmeet-placeholder-text {
	color: var(--bm-light);
	font: 400 18px/1.4 var(--bm-font);
}
.bmeet-placeholder-text:empty {
	display: none;
}
.bmeet-remote.is-waiting .bmeet-placeholder-text {
	font-size: 22px;
}
.bmeet-wait {
	width: min(440px, 100%);
	padding: 20px;
	border-radius: 8px;
	background: #fff;
	color: var(--bm-text);
	text-align: left;
}
.bmeet-wait p {
	margin: 0 0 12px;
	color: var(--bm-muted);
	font-size: 14px;
}
.bmeet-wait-link {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px 4px 4px 12px;
	border-radius: 4px;
	background: #f1f3f4;
}
.bmeet-wait-link span {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
}
.bmeet-wait .bmeet-icon-btn {
	color: var(--bm-muted);
}
.bmeet-wait .bmeet-icon-btn:hover {
	background: rgba(0, 0, 0, .06);
}

.bmeet-tag {
	position: absolute;
	left: 12px;
	bottom: 10px;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 6px;
	max-width: calc(100% - 24px);
	color: #fff;
	font-weight: 500;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bmeet-tag:empty {
	display: none;
}
.bmeet-muted {
	display: inline-flex;
	padding: 4px;
	border-radius: 50%;
	background: rgba(32, 33, 36, .6);
}
.bmeet-muted .bmeet-ico {
	width: 16px;
	height: 16px;
}

.bmeet-presenting {
	position: absolute;
	top: 12px;
	left: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(138, 180, 248, .95);
	color: var(--bm-dark);
	font-weight: 500;
	transform: translateX(-50%);
}
.bmeet-presenting .bmeet-ico {
	width: 18px;
	height: 18px;
}

/* ---------- Barra de controles ---------- */
.bmeet-bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	height: 80px;
	padding: 0 16px;
}
.bmeet-bar-left {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	font-size: 16px;
	white-space: nowrap;
	overflow: hidden;
}
.bmeet-sep {
	opacity: .5;
}
.bmeet-code {
	overflow: hidden;
	text-overflow: ellipsis;
}
.bmeet-bar-center {
	display: flex;
	align-items: center;
	gap: 12px;
}
.bmeet-bar-right {
	display: flex;
	justify-content: flex-end;
	gap: 4px;
}
.bmeet-chat-btn.is-on,
.bmeet-call.chat-open .bmeet-chat-btn {
	color: var(--bm-blue);
}
.bmeet-badge {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--bm-blue);
	color: var(--bm-dark);
	font: 600 11px/18px var(--bm-font);
	text-align: center;
}

/* ---------- Chat ---------- */
.bmeet-panel {
	display: none;
	flex-direction: column;
	width: 360px;
	flex: 0 0 360px;
	border-radius: 8px;
	background: #fff;
	color: var(--bm-text);
	overflow: hidden;
}
.bmeet-call.chat-open .bmeet-panel {
	display: flex;
}
.bmeet-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 8px 8px 24px;
}
.bmeet-panel-head h3 {
	margin: 0;
	color: var(--bm-text);
	font: 400 18px/1.4 var(--bm-font);
}
.bmeet-panel .bmeet-icon-btn {
	color: var(--bm-muted);
}
.bmeet-panel .bmeet-icon-btn:hover {
	background: rgba(0, 0, 0, .06);
}
.bmeet-chat-list {
	flex: 1;
	overflow-y: auto;
	padding: 0 24px 12px;
}
.bmeet-chat-info {
	margin: 4px 0 16px;
	padding: 12px;
	border-radius: 8px;
	background: #f1f3f4;
	color: var(--bm-muted);
	font-size: 12px;
	text-align: center;
}
.bmeet-msg {
	margin-bottom: 14px;
}
.bmeet-msg-head {
	display: flex;
	gap: 8px;
	align-items: baseline;
	font-size: 13px;
}
.bmeet-msg-head span {
	color: var(--bm-muted);
	font-size: 12px;
}
.bmeet-msg-text {
	margin-top: 2px;
	font-size: 14px;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
.bmeet-chat-form {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 12px;
	padding: 4px 4px 4px 16px;
	border-radius: 24px;
	background: #f1f3f4;
}
.bmeet-call .bmeet-chat-input {
	flex: 1;
	min-width: 0;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--bm-text);
	font: 400 14px/1 var(--bm-font);
	box-shadow: none;
	outline: none;
}
.bmeet-chat-form .bmeet-icon-btn {
	color: var(--bm-primary);
}

/* ---------- Avisos ---------- */
.bmeet-toasts {
	position: fixed;
	left: 50%;
	bottom: 96px;
	z-index: 2147483001;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	transform: translateX(-50%);
	pointer-events: none;
}
.bmeet-toast {
	max-width: min(90vw, 480px);
	padding: 12px 20px;
	border-radius: 6px;
	background: #323232;
	color: #fff;
	font: 400 14px/1.4 var(--bm-font);
	box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
	animation: bmeet-in .2s ease-out;
	transition: opacity .4s;
}
.bmeet-toast.out {
	opacity: 0;
}
@keyframes bmeet-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 760px) {
	.bmeet-main {
		padding: 8px 8px 0;
	}
	.bmeet-self {
		top: 12px;
		right: 12px;
		bottom: auto;
		width: 30%;
		max-width: 160px;
		aspect-ratio: 3 / 4;
	}
	.bmeet-bar {
		grid-template-columns: 1fr auto;
		height: 72px;
		padding: 0 8px;
	}
	.bmeet-bar-left {
		display: none;
	}
	.bmeet-bar-center {
		gap: 8px;
	}
	.bmeet-round {
		width: 44px;
		height: 44px;
	}
	.bmeet-round.bmeet-leave {
		width: 56px;
	}
	.bmeet-panel {
		position: absolute;
		inset: 8px;
		z-index: 5;
		width: auto;
	}
	.bmeet-wait {
		padding: 16px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.bmeet-toast,
	.bmeet-tile video,
	.bmeet-round {
		animation: none;
		transition: none;
	}
}
