/* Jitsi_Feature */
#jf_head_mic {
	cursor: pointer;
}

#jf_overlay_backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	z-index: 9996;
	display: none;
}

#jf_overlay_backdrop.jf_open {
	display: block;
}

#jf_hub_modal {
	position: fixed;
	inset: 0;
	z-index: 9997;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	pointer-events: none;
}

#jf_hub_modal.jf_open {
	display: flex;
}

/* CodyChat-style light modal (matches Lite / typical white modal chrome) */
.jf_hub_inner {
	pointer-events: auto;
	background: #fff;
	color: #222;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 20px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	width: 100%;
	max-width: 440px;
	max-height: min(85vh, 580px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.jf_hub_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px 14px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	position: relative;
}

.jf_hub_title {
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
	color: #1a1a1a;
	letter-spacing: -0.02em;
}

/* Icon-only close like core .modal_close — no full-width default_btn */
#jf_hub_close.jf_hub_close {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: #777;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, color 0.15s;
}

#jf_hub_close.jf_hub_close:hover {
	background: rgba(0, 0, 0, 0.06);
	color: #222;
}

#jf_hub_close.jf_hub_close .fa {
	pointer-events: none;
}

.jf_hub_body {
	padding: 16px 20px 20px;
	overflow-y: auto;
	flex: 1;
	min-height: 0;
}

#jf_hub_modal .label {
	display: block;
	margin: 0 0 8px 0;
	font-size: 12px;
	font-weight: 600;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.jf_hub_section {
	margin-bottom: 20px;
}

.jf_hub_section:last-child {
	margin-bottom: 0;
}

.jf_hub_list {
	min-height: 1.5em;
}

.jf_hub_row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.jf_hub_row:last-child {
	border-bottom: none;
}

.jf_hub_host {
	flex: 1 1 45%;
	min-width: 0;
	font-weight: 600;
	font-size: 14px;
	color: #222;
}

.jf_hub_meta {
	flex: 1 1 100%;
	font-size: 12px;
	line-height: 1.4;
	color: #666;
}

.jf_hub_row .jf_hub_join {
	flex-shrink: 0;
	margin-left: auto;
}

.jf_hub_empty {
	margin: 6px 0;
	font-size: 13px;
	color: #888;
}

/* Start public + private: one row, shared width (narrower than full stack) */
#jf_hub_modal .jf_btn_row {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 10px;
}

#jf_hub_modal .jf_btn_row .reg_button {
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	max-width: none;
	padding: 10px 12px;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	line-height: 1.25;
	border-radius: 10px;
}

#jf_hub_modal .jf_btn_row #jf_btn_private.default_btn {
	background: #f4f4f4;
	color: #333;
	border: 1px solid #ddd;
}

#jf_hub_modal .jf_btn_row #jf_btn_private.default_btn:hover {
	background: #eaeaea;
}

@media (max-width: 360px) {
	#jf_hub_modal .jf_btn_row {
		flex-wrap: wrap;
	}

	#jf_hub_modal .jf_btn_row .reg_button {
		flex: 1 1 calc(50% - 5px);
		min-width: 120px;
	}
}

#jf_meet_wrap {
	position: fixed;
	width: 420px;
	max-width: calc(100vw - 24px);
	height: 320px;
	max-height: 50vh;
	z-index: 9998;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
	display: none;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: #111;
	/* left/top set by JS when visible (default bottom-right + drag) */
}

#jf_meet_wrap.jf_visible {
	display: block;
}

#jf_meet_inner {
	width: 100%;
	height: calc(100% - 40px);
}

#jf_meet_bar {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 8px;
	background: rgba(0, 0, 0, 0.55);
	gap: 8px;
}

.jf_meet_bar_actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-shrink: 0;
}

/* Meet bar: icon buttons (theme leave = cyan, default end = dark, max = subtle on bar) */
.jf_meet_icon_btn {
	width: 34px;
	height: 34px;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	line-height: 1;
	flex-shrink: 0;
	box-sizing: border-box;
	transition: opacity 0.15s, filter 0.15s;
}

.jf_meet_icon_btn:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.6);
	outline-offset: 2px;
}

.jf_meet_icon_btn:hover {
	opacity: 0.92;
	filter: brightness(1.05);
}

.jf_meet_btn_max {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.jf_meet_btn_min {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

#jf_meet_wrap.jf_meet_minimized {
	display: none !important;
}

/* Footer restore chip: left of #rlist_open when inserted in #my_menu */
#jf_meet_floater.jf_meet_floater {
	display: none !important;
	cursor: pointer;
	box-sizing: border-box;
}

#jf_meet_floater.jf_meet_floater.jf_show:not(.jf_meet_floater_fixed) {
	display: table-cell !important;
}

#jf_meet_floater.jf_meet_floater.jf_show.jf_meet_floater_fixed {
	display: flex !important;
	align-items: center;
	justify-content: center;
	position: fixed;
	right: 48px;
	bottom: env(safe-area-inset-bottom, 0);
	width: 40px;
	height: 50px;
	z-index: 9995;
	background: #222;
	color: #fff;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.35);
}

#jf_meet_floater .jf_meet_floater_icon {
	color: #6cf;
	font-size: 18px;
}

#jf_meet_floater:hover .jf_meet_floater_icon {
	filter: brightness(1.1);
}

.jf_meet_btn_leave {
	background: #03add8;
	color: #fff;
}

.jf_meet_btn_end {
	background: #444;
	color: #fff;
}

#jf_meet_wrap:fullscreen,
#jf_meet_wrap:-webkit-full-screen {
	width: 100vw !important;
	height: 100vh !important;
	max-width: 100% !important;
	max-height: 100% !important;
	border-radius: 0;
	left: 0 !important;
	top: 0 !important;
	right: auto !important;
	bottom: auto !important;
}

#jf_meet_wrap:fullscreen #jf_meet_inner,
#jf_meet_wrap:-webkit-full-screen #jf_meet_inner {
	height: calc(100vh - 40px);
	max-height: calc(100% - 40px);
}

#jf_meet_bar.jf_meet_drag_handle {
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
	touch-action: none;
	-webkit-touch-callout: none;
}

#jf_meet_bar.jf_meet_drag_handle:active {
	cursor: grabbing;
}

#jf_modal_priv {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.45);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

#jf_modal_priv.jf_open {
	display: flex;
}

.jf_modal_box {
	background: #fff;
	color: #222;
	border-radius: 20px;
	padding: 20px;
	width: 360px;
	max-width: 100%;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

#jf_modal_priv .label {
	color: #555;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.jf_inv_search_wrap {
	position: relative;
	margin-top: 8px;
}

.jf_inv_search_row {
	display: flex;
	align-items: stretch;
	gap: 8px;
}

.jf_inv_search_row .full_input {
	flex: 1;
	min-width: 0;
}

.jf_inv_add_btn {
	flex-shrink: 0;
	width: 42px;
	min-height: 42px;
	padding: 0;
	margin: 0;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	background: #f5f5f5;
	color: #333;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.jf_inv_add_btn:hover {
	background: #ebebeb;
}

.jf_invitee_suggest {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	margin-top: 4px;
	max-height: 220px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	z-index: 10001;
}

.jf_inv_suggest_item {
	display: block;
	width: 100%;
	text-align: left;
	padding: 10px 12px;
	margin: 0;
	border: none;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	background: #fff;
	color: #222;
	font-size: 14px;
	cursor: pointer;
	line-height: 1.3;
}

.jf_inv_suggest_item:last-child {
	border-bottom: none;
}

.jf_inv_suggest_item:hover {
	background: rgba(100, 160, 255, 0.1);
}

.jf_invitee_list {
	margin-top: 12px;
	max-height: 180px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.jf_invitee_chip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.jf_invitee_name {
	font-size: 14px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.jf_invitee_rm {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	padding: 0;
	margin: 0;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	background: #fff;
	color: #c62828;
	cursor: pointer;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.jf_invitee_rm:hover {
	background: rgba(198, 40, 40, 0.08);
}

/* Public meeting announcement in main chat (user post) */
#show_chat .jf_public_meet_card {
	font-weight: 700;
	padding: 8px 10px;
	border-radius: 8px;
	background: rgba(100, 160, 255, 0.12);
	border: 1px solid rgba(100, 160, 255, 0.35);
	line-height: 1.35;
}

#show_chat .jf_public_meet_card strong {
	font-weight: 700;
}

#show_chat .jf_public_meet_cta,
#show_chat .jf_public_meet_card .jf_public_join.jf_public_meet_cta {
	color: #e53935;
	font-weight: 700;
	cursor: pointer;
}

/* Userlist mic: same table row as .user_item_icon.icrank — must be table-cell, not flex */
#container_user .user_item .jf_mic_wrap {
	display: table-cell;
	vertical-align: middle;
	width: 24px;
	min-width: 24px;
	max-width: 24px;
	text-align: center;
	font-size: 15px;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

#container_user .user_item .jf_mic_wrap .jf_feature_mic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	line-height: 1;
	vertical-align: middle;
	color: #6cf;
	font-size: 15px;
}

.jf_feature_mic .fa-microphone {
	pointer-events: none;
}
