#vm-container {
	display: none;
}

body[vm] #seller-info {
	display: none !important;
}


#vm-status {
	display: flex;
	position: absolute;
	top: 0px;
	right: 100%;
	margin-right: -60px;
	line-height: 12px;
	padding: 5px 8px 5px 5px;
	z-index: 10;
	background-color: #000;
	color: #fff;
	font-size: 10px;
	border-radius: 20px;
	white-space: nowrap;
	letter-spacing: 1px;
}

#vm-status > div:first-child {
	width: 12px;
	height: 12px;
	background-color: #868686;
	border-radius: 9999px;
	margin-right: 5px;
}

#vm-meeting-syncoff {
	display: none;
	position: fixed;
	top: 20px;
	left: 120px;
	min-width: 140px;
	height: 40px;
	padding: 0 20px;
	border: 0;
	border-radius: 9999px;
	background-color: rgba(0,0,0,0.88);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	z-index: 12;
	box-shadow: 0 12px 30px rgba(0,0,0,0.22);
	pointer-events: auto;
}

body[vm-role="client"][vm-sync-active="1"] #vm-meeting-syncoff {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

body[vm-role="client"][vm-sync-active="1"] #pano {
	pointer-events: none;
}

#vm-streams {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 180px;
	height: 180px;
	z-index: 1;
}

#vm-streams > div:nth-child(1) {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 9999px;
	overflow: hidden;
	background-color: #000;
	background-position: center;
	background-size: cover;		
}

#remote-stream {
	display: flex;
	position: absolute;
	inset: 0px;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.5);
}

#stream-controls {
	display: none;
	position: absolute;
	inset: 0px;
	background-color: rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(10px);
}

#stream-controls > div {
	display: flex;
	position: absolute;
	inset: 0px;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

#stream-controls > div > div {
	display: flex;
	z-index: 10;
	color: #fff;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	cursor: pointer;
}

#stream-controls > div > [vm-control="end"]{
	font-size: 28px;
	color: rgb(250, 46, 110);
	opacity: 0.5;
	transition: opacity 0.2s ease;
	color: rgb(250, 46, 110);
	position: absolute;
	margin-top: 100px;
}

#stream-controls > div > [vm-control="end"]:hover{
	opacity: 1;
}

#stream-controls > div > [vm-control="end"] i {
	transform: rotate(135deg);
}

#vm-container[vm-mode="1"] #stream-controls > div > [vm-control="end"]{
	opacity: 1;
	transition: unset;
	position: unset;
	margin-top: unset;
	color: rgb(250, 46, 110) !important;
}

#local-stream {
	display: flex;
	position: absolute;
	z-index: 10;
	top: 0;
	right: 0;
	width: 60px;
	aspect-ratio: 1;
	border-radius: 9999px;
	overflow: hidden;
	background-color: #000;
	border: 2px solid rgb(255 255 255 / 0.5);
	align-items: center;
	justify-content: center;
	background-color: #111;
}

#vm-container[vm-mode="1"] #local-stream {
	top: 30px;
	right: 30px;
	width: 160px;
	border: none;
}

#vm-container[vm-mode="1"] #vm-status {
	top: 30px;
	right: unset;
	left: 30px;
	line-height: 20px;
	font-size: 14px;
	padding: 10px 20px 10px 10px;
}

#vm-container[vm-mode="1"] #vm-status > div:first-child {
	width: 20px;
	height: 20px;
	margin-right: 8px;
}

#vm-container[vm-mode="1"] #stream-controls {
	display: block;
	backdrop-filter: unset;
	background-color: unset;
}

#vm-container[vm-mode="1"] #stream-controls > div {
	align-items: end;
	padding-bottom: 30px;
	gap: 20px;
}

#vm-container[vm-mode="1"] #stream-controls > div > div {
	width: 60px;
	height: 60px;
	font-size: 28px;
	background: var(--menu-bg-color);
	color: var(--menu-icon-color);
	border-radius: 40px;
}

#vm-container[vm-mode="1"] #hint-box > div {
	align-items: baseline !important;
}


body[mobile] #vm-container[vm-mode="1"] #vm-status {
	top: 20px;
	left: 20px;
	line-height: 16px;
	font-size: 12px;
	padding: 5px 10px 5px 5px;
}

body[mobile] #vm-container[vm-mode="1"] #vm-status > div:first-child {
	width: 16px;
	height: 16px;
	margin-right: 8px;
}

#remote-stream > div {
	line-height: 1;
	color: rgb(255 255 255 / 0.7);
	padding: 20px;
	text-align: center;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	pointer-events: none;
}

#local-stream > div {
	position: absolute;
	font-size: 10px;
	line-height: 0.7rem;
	color: #fff;
	text-align: center;
	padding: 5px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

div[vm-control="chat"] {
	display: flex;
	position: absolute;
	bottom: 0px;
	right: 0px;
	z-index: 10;
	background-color: #000;
	color: #fff;
	width: 50px;
	height: 50px;
	border-radius: 9999px;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	cursor: pointer;
}

#vm-container[vm-mode="1"] div[vm-control="chat"] {
	bottom: 30px;
	right: 30px;
	width: 60px;
	height: 60px;
}

#ctrl-bar > #ctrl-chat {
	position: relative;
}

body[vm] #vm-container {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

body[vm] #vm-container > * {
	pointer-events: auto;
}

#vm-container[vm-mode="1"] #vm-streams {
	width: unset;
	height: unset;
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	z-index: 5;
}

#vm-container[vm-mode="1"] #vm-streams > div:nth-child(1) {
	border-radius: unset;
}

#vm-status[status="1"] > div:first-child {
	background-color: #22c55e;
}

#stream-controls > div > [vm-control] {
	transition: transform 0.2s ease, opacity 0.2s ease;
}

#stream-controls > div > [vm-control]:hover {
	transform: scale(1.08);
}

#stream-controls > div > [vm-control].stream-off {
	background-color: rgba(255,255,255,0.2);
	border-radius: 9999px;
}

#stream-controls > div > [vm-control].stream-control-hidden {
	display: none !important;
}

#vm-container[vm-mode="1"] #stream-controls > div > [vm-control].stream-control-hidden {
	display: flex !important;
}

#vm-menu {
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: absolute;
	top: 50%;
	right: 20px;
	transform: translateY(-50%);
	width: 40px;
	padding: 8px 0px;
	background: rgba(0,0,0,0.9);
	border-radius: 9999px;
	align-items: center;
	z-index: 1;
}

#vm-menu > [vm-menu] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	font-size: 20px;
	color: #fff;
	cursor: pointer;
	border-radius: 9999px;
	transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

#vm-menu > [vm-menu]:hover,
#vm-menu > [vm-menu][state="1"] {
	transform: scale(1.1);
}

#vm-menu > [vm-menu="sync"] {
	display: none;
}

.gallery-box,
#data-box .data-box-inner {
	box-shadow: 0 18px 50px rgba(0,0,0,0.25);
}

#vm-chat-box {
	display: none;
	position: absolute;
	top: 0px;
	right: 0px;
	bottom: 0px;
	width: min(420px, 100vw);
	height: auto;
	max-height: none;
	background-color: #fff;
	z-index: 6;
	pointer-events: auto;
	overflow: hidden;
	box-shadow: 0 18px 50px rgba(0,0,0,0.25);
	transform: translateX(calc(100% + 24px));
	opacity: 0;
	transition: transform 0.28s ease, opacity 0.22s ease;
}

#vm-chat-box.open {
	transform: translateX(0);
	opacity: 1;
}

.vm-chat-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	padding: 10px;
}

#chat-box-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.vm-chat-heading {
	min-width: 0;
}

.vm-chat-title {
	padding-left: 0;
	padding-right: 0;
}

.vm-chat-divider {
	margin-top: 10px;
	margin-bottom: 14px;
}

#vm-chat-party-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 15px;
	background-color: #f4f4f4;
	margin-bottom: 5px;
	border-radius: 5px;
}

.vm-chat-party-avatar {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 9999px;
	background: var(--avatar-placeholder) center/cover no-repeat #d1d5db;
	box-shadow: 0 0 0 3px rgba(17,24,39,0.06);
}

.vm-chat-party-details {
	min-width: 0;
	flex: 1 1 auto;
}

.vm-chat-party-name {
	font-size: 14px;
	font-weight: bold;
	line-height: 1.2;
	color: #111827;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vm-chat-party-line {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	margin-top: 3px;
	font-size: 12px;
	line-height: 1.25;
	color: #4b5563;
}

.vm-chat-party-line i {
	flex: 0 0 14px;
	width: 14px;
	text-align: center;
	font-size: 13px;
	color: #6b7280;
}

.vm-chat-party-line a {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: inherit;
	text-decoration: none;
}

.vm-chat-party-line a:hover {
	text-decoration: underline;
}

#vm-chat-party-status {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 10px;
	font-weight: bold;
	line-height: 1;
	text-transform: uppercase;
	color: #6b7280;
}

#vm-chat-party-status > div:first-child {
	width: 9px;
	height: 9px;
	border-radius: 9999px;
	background-color: #9ca3af;
}

#vm-chat-party-status[status="1"] {
	color: #047857;
}

#vm-chat-party-status[status="1"] > div:first-child {
	background-color: #05ba69;
}

#chat-box-close {
	flex: none;
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 5px;
	background-color: #000;
	color: #fff;
	cursor: pointer;
}

#vm-lead-prompt {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background-color: rgba(0,0,0,0.45);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 260ms ease, visibility 0s linear 260ms;
	will-change: opacity;
}

#vm-lead-prompt.active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 260ms ease;
}

#vm-lead-prompt-card {
	display: block;
	position: relative !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	width: min(360px, calc(100vw - 40px)) !important;
	padding: 20px;
	box-sizing: border-box;
	background-color: #fff;
	border-radius: 5px !important;
	box-shadow: 0px 12px 30px rgba(0,0,0,0.25);
}

#vm-lead-prompt-intro {
	color: #111827;
}

#vm-lead-prompt-intro > div:nth-child(1) {
	margin-bottom: 10px;
	font-size: 18px;
	font-weight: bold;
}

#vm-lead-prompt-intro > div:nth-child(2) {
	font-size: 14px;
}

#vm-lead-prompt-card form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 20px;
}

.vm-lead-name-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 10px;
}

#vm-lead-prompt-card .field {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.7rem;
	color: #000;
	text-transform: uppercase;
	line-height: 20px;
}

#vm-lead-prompt-card .field > label {
	position: absolute;
	background-color: #fff;
	line-height: 10px;
	border-radius: 5px;
	padding: 0 5px;
	left: 10px;
	top: -4px;
	color: #aaa;
	z-index: 3;
	pointer-events: none;
	font-weight: bold;
	letter-spacing: 1px;
}

#vm-lead-prompt-card input {
	border: solid 1px #ccc;
	border-radius: 5px;
	padding: 9px 10px;
	font-size: 1rem;
	outline: none;
}

#vm-lead-prompt-card .form-actions {
	display: flex;
	padding-top: 4px;
}

#vm-lead-prompt-card .form-actions button {
	width: 100%;
	border: 0;
	border-radius: 5px;
	padding: 12px;
	background-color: #000;
	color: #fff;
	font-size: 1.1rem;
	font-weight: bold;
	cursor: pointer;
	text-transform: uppercase;
}

#vm-lead-prompt-error {
	display: none;
	margin-top: 10px;
	font-size: 12px;
	line-height: 1.4;
	color: #b42318;
}

#vm-lead-prompt-error:not(:empty) {
	display: block;
}

#vm-lead-prompt-card button:disabled,
#vm-lead-prompt-card input:disabled {
	opacity: 0.65;
	cursor: wait;
}

@media (max-width: 600px), (max-height: 600px) and (orientation: landscape) {
	.vm-lead-name-row {
		grid-template-columns: 1fr;
	}
}

.vm-chat-thread-shell {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

.white_fade {
	position: absolute;
	top: 0px;
	left: 0px;
	right: 0px;
	height: 30px;
	background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
	pointer-events: none;
	z-index: 2;
	opacity: 0.9;
}

#chat-thread {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
	overflow-y: auto;
	padding: 0px 20px 0px 10px;
	font-size: 14px;
	line-height: 1.5;
	color: #111827;
}

#chat-thread a {
	color: rgba(0,187,204,1);
	text-decoration: underline;
}

#chat-thread video::-webkit-media-controls-panel {
	display: flex !important;
	opacity: 1 !important;
}

.vm-chat-lead-panel {
	position: relative;
	width: 100%;
}

.vm-chat-lead-card {
	width: 100%;
	padding: 14px;
	border: solid 1px #d1d5db;
	border-radius: 8px;
	background-color: #fff;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
	box-sizing: border-box;
}

.vm-chat-lead-title {
	font-size: 14px;
	font-weight: bold;
	line-height: 1.35;
	color: #111827;
}

.vm-chat-lead-text {
	margin-top: 5px;
	font-size: 12px;
	line-height: 1.4;
	color: #4b5563;
}

#vm-chat-lead-form {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin-top: 12px;
}

.vm-chat-lead-name-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 9px;
}

#vm-chat-lead-form input {
	width: 100%;
	min-width: 0;
	border: solid 1px #c7cbd1;
	border-radius: 5px;
	padding: 10px;
	font-size: 14px;
	line-height: 1.3;
	color: #111827;
	background-color: #fff;
	outline: none;
	box-sizing: border-box;
}

#vm-chat-lead-form input::placeholder {
	color: #9ca3af;
	opacity: 1;
}

#vm-chat-lead-form button {
	width: 100%;
	border: 0;
	border-radius: 5px;
	padding: 11px 12px;
	background-color: #000;
	color: #fff;
	font-size: 14px;
	font-weight: bold;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
}

#vm-chat-lead-form input:disabled,
#vm-chat-lead-form button:disabled {
	opacity: 0.65;
	cursor: wait;
}

.vm-chat-lead-error {
	display: none;
	font-size: 12px;
	line-height: 1.35;
	color: #b42318;
}

.vm-chat-lead-error:not(:empty) {
	display: block;
}

@media (max-width: 600px), (max-height: 600px) and (orientation: landscape) {
	.vm-chat-lead-name-row {
		grid-template-columns: 1fr;
	}
}

#chat-input-area {
	position: relative;
	flex: 0 0 auto;
	margin-top: 14px;
}

#chat-input {
	position: relative;
	padding: 0;
}

#upload-form,
#chat-upload-input {
	display: none;
}

#chat-composer-shell {
	position: relative;
	min-height: 104px;
	padding: 14px;
	border: solid 1px #d1d5db;
	border-radius: 5px;
	background: #fff;
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

#chat-composer-actions {
	position: absolute;
	right: 14px;
	top: 14px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;

}

#chat-input textarea {
	width: 100%;
	min-height: 76px;
	border: 0;
	border-radius: 5px;
	resize: none;
	padding: 0 74px 0 0;
	font-size: 16px;
	line-height: 1.4;
	background: transparent;
	color: #000;
	outline: none;
}

#chat-input textarea::placeholder {
	opacity: 0.2;
}

#vm-chat-disclaimer {
	margin-top: 8px;
	padding: 0 4px;
	font-size: 11px;
	line-height: 1.35;
	text-align: center;
	color: #6b7280;
}

#vm-chat-disclaimer a {
	color: #374151;
	font-weight: bold;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.chat-action-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: solid 1px #d1d5db;
	border-radius: 9999px;
	background-color: #f3f4f6;
	color: #000;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.chat-action-button:hover {
	background-color: #e5e7eb;
	border-color: #9ca3af;
	transform: translateY(-1px);
}

#chat-submit {
	width: 50px;
	height: 50px;
	font-size: 24px;
	padding-top: 2px;
	padding-right: 2px;
	margin-bottom: -2px;
}

#chat-attach {
	font-size: 16px;
	width: 30px;
	height: 30px;	
}

#chat-attach.is-busy {
	opacity: 0.5;
	pointer-events: none;
}

#select-attach-menu {
	display: none;
	position: absolute;
	right: 9px;
	bottom: 109px;
	width: 220px;
	background: #fff;
	color: #000;
	border-radius: 5px 5px 0px 5px;
	border: solid 1px #d1d5db;
	line-height: 1.4;
	box-shadow: 0 18px 30px rgba(15, 23, 42, 0.16);
	z-index: 7;
}

#select-attach-menu > div {
	position: relative;
	padding: 10px;
}

#select-attach-close {
	position: absolute;
	right: -1px;
	bottom: -41px;
	background-color: #fff;
	border-radius: 0px 0px 20px 20px;
	border-width: 0px 1px 1px 1px;
	border-style: solid;
	border-color: #d1d5db;
	font-size: 24px;
	text-align: center;
	cursor: pointer;
}

#select-attach-close > div {
	width: 40px;
	height: 40px;
	line-height: 40px;
	transform: scale(1);
	transition: transform 0.2s ease;
}

#select-attach-close > div:hover {
	transform: scale(1.1);
}

.chat-attach-option {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	width: 100%;
	padding: 10px;
	font-size: 13px;
	font-weight: bold;
	text-transform: uppercase;
	color: #000;
	background-color: #f3f4f6;
	appearance: none;
	border: solid 1px #d1d5db;
	border-radius: 5px;
	cursor: pointer;
	text-align: left;
}

.chat-attach-option i {
	flex: 0 0 18px;
	font-size: 18px;
	line-height: 1;
}

.chat-attach-option span {
	flex: 1 1 auto;
}

.chat-attach-option + .chat-attach-option {
	margin-top: 8px;
}

.chat-attach-option:hover {
	background-color: #ddd;
}

.chat-row {
	position: relative;
	margin-bottom: 5px;
}

#chat-thread > .chat-row.chat-row-drop-in {
	animation: chat-row-drop-in 240ms cubic-bezier(.2, .7, .3, 1) both;
	transform-origin: top center;
}

@keyframes chat-row-drop-in {
	0% {
		opacity: 0;
		transform: translateY(-12px) scale(.985);
	}
	70% {
		opacity: 1;
		transform: translateY(2px) scale(1);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	#chat-thread > .chat-row.chat-row-drop-in {
		animation: none;
	}
}

.chat-row-gap {
	margin-top: 18px;
}

.chat-row:last-child {
	margin-bottom: 0;
}

.chat-row .user-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 34px;
	height: 34px;
	border-radius: 9999px;
	background: var(--avatar-placeholder) center/cover no-repeat #d1d5db;
	box-shadow: 0 0 0 3px rgba(255,255,255,0.9);
}

.chat-user-name {
	padding-left: 46px;
	margin-bottom: 2px;
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #6b7280;
}

.chat-row .user-me {
	position: absolute;
	top: 0;
	right: 0;
	width: 28px;
	height: 28px;
	border-radius: 9999px;
	background: #000;
	color: #fff;
	font-size: 10px;
	line-height: 28px;
	text-align: center;
	box-shadow: 0 0 0 3px rgba(255,255,255,0.9);
}

.unseen {
	position: absolute;
	top: 1px;
	left: 1px;
	width: 12px;
	height: 12px;
	border-radius: 9999px;
	background-color: #f43f5e;
	display: none;
}

#ctrl-chat .unseen {
	top: 12px !important;
	left: 12px !important;
	width: 8px !important;
	height: 8px !important;
}

.chat-bubble {
	position: relative;
	display: inline-block;
	max-width: 70%;
	padding: 12px 14px;
	border: solid 1px #d1d5db;
	border-radius: 18px;
	background-color: #efefef;
	color: #111827;
	word-break: break-word;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.chat-bubble-client {
	display: inline-block;
	margin-left: 46px;
	border-top-left-radius: 5px;
}

.chat-bubble-me {
	display: block;
	width: fit-content;
	margin-left: auto;
	margin-right: 38px;
	border-color: #000;
	border-top-right-radius: 5px;
	background: #000000;
	color: #fff;
	text-align: left;
}

.chat-message-time {
	margin-left: 46px;
	margin-bottom: 8px;
	font-size: 10px;
	line-height: 14px;
	color: #9ca3af;
}

.chat-row.me .chat-message-time {
	margin-left: 0;
	margin-right: 38px;
	margin-bottom: 8px;
	padding-top: 5px;
	text-align: right;
}

.chat-bubble-media {
	text-align: left;
}

.chat-bubble .chat-image-link {
	display: block;
}

.vm-chat-viewing-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: min(260px, 100%);
}

.vm-chat-viewing-title {
	font-weight: 700;
	color: inherit;
}

.vm-chat-viewing-text {
	line-height: 1.4;
}

.vm-chat-viewing-actions,
.vm-chat-viewing-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.vm-chat-viewing-form {
	flex-direction: column;
}

.vm-chat-viewing-form label {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.vm-chat-viewing-form input {
	width: 100%;
	min-height: 38px;
	padding: 8px 10px;
	border: 1px solid rgba(0,0,0,.18);
	border-radius: 5px;
	background: #fff;
	color: #111;
	font: inherit;
}

.vm-chat-viewing-actions button,
.vm-chat-viewing-form button {
	min-height: 36px;
	padding: 8px 12px;
	border: 0;
	border-radius: 5px;
	background: #ff3366;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.vm-chat-viewing-actions button[data-vm-chat-viewing="decline-now"] {
	background: #202020;
}

.vm-chat-viewing-card.is-busy button,
.vm-chat-viewing-card.is-busy input {
	opacity: .65;
	cursor: wait;
}

.vm-chat-viewing-status {
	min-height: 16px;
	font-size: 12px;
	line-height: 1.35;
}

.vm-chat-viewing-status.error {
	color: #d92d20;
}

.chat-bubble img,
.chat-bubble video {
	display: block;
	max-width: 100%;
	border-radius: 5px;
}

.chat-progress-row .chat-bubble {
	min-width: 220px;
}

.chat-upload-label {
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
	margin-bottom: 6px;
	letter-spacing: 0.08em;
}

.chat-upload-file {
	margin-bottom: 10px;
	font-size: 14px;
	line-height: 1.4;
	word-break: break-word;
}

.chat-upload-bar {
	height: 6px;
	background-color: rgba(17,24,39,0.12);
	border-radius: 9999px;
	overflow: hidden;
}

.chat-upload-bar > span {
	display: block;
	width: 0;
	height: 100%;
	background-color: currentColor;
}

.chat-upload-percent {
	margin-top: 8px;
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

#data-box {
	display: none;
	position: absolute;
	min-width: 320px;
	left: 0px;
	right: 0px;
	bottom: 0px;
	z-index: 2;
	padding: 0;
	pointer-events: none;
	overflow: hidden;
}


.data-box-inner {
	position: relative;
	width: 100%;
	max-width: none;
	height: min(540px, calc(100vh - 40px));
	max-height: calc(100vh - 40px);
	margin: 0;
	padding: 10px;
	background-color: #fff;
	pointer-events: auto;
	overflow: hidden;
	transform: translateY(calc(100% + 24px));
	opacity: 0;
	box-shadow: 0px 12px 30px rgba(0,0,0,0.25);
	transition: transform 0.28s ease, opacity 0.22s ease;
}

#data-box.open {
	pointer-events: auto;
}

#data-box.open .data-box-inner {
	transform: translateY(0);
	opacity: 1;
}

.data-box-inner > div,
.gallery-box {
	position: relative;
	color: #111827;
}

.vm-panel {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

.vm-panel > .item-close {
	top: 0;
	right: 0;
}

.item-header {
	font-size: 18px;
	line-height: 30px;
	font-weight: 700;
	padding-right: 48px;
	padding-left: 10px;
}

.item-header-ul {
	height: 1px;
	margin-top: 10px;
	margin-bottom: 10px;
	background-color: #ccc;
}

#data-box .item-content,
.gallery-box .item-content {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding: 5px 20px 5px 10px;
}

.vm-panel-scroll {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding-right: 8px;
}

#vm-notes .item-content {
	overflow-y: auto;
	overflow-x: hidden;
}

.vm-empty-state {
	display: flex;
	min-height: 220px;
	align-items: center;
	justify-content: center;
	padding: 24px;
	border: solid 1px #ccc;
	border-radius: 5px;
	background-color: #efefef;
	color: #444;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

#sa-ysa {
	margin-top: 12px;
	padding: 14px 16px;
	background: #fff;
	border-radius: 5px;
	border: solid 1px #ccc;
	line-height: 1.45;
}

.vm-media-tabs-shell {
	flex: 0 0 auto;
	padding: 0 20px 0 10px;
}

.vm-media-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
	flex-wrap: wrap;
	height: 40px;
}

.vm-media-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding:  0px 10px;
	height: 40px;
	border: solid 1px #ccc;
	border-radius: 5px;
	background-color: #efefef;
	color: #000;
	font-size: 13px;
	font-weight: bold;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.vm-media-tab.active {
	background-color: #ddd;
}

.vm-media-tab i {
	font-size: 22px;
}

.vm-media-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 9999px;
	background: rgba(0,0,0,0.08);
	font-size: 12px;
}

.vm-media-section {
	display: none;
}

.vm-media-section.active {
	display: block;
}

.vm-media-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 14px;
}

.vm-media-card {
	display: flex;
	flex-direction: column;
	padding: 0;
	border: solid 1px #ccc;
	border-radius: 5px;
	background: #efefef;
	overflow: hidden;
	cursor: pointer;
	text-align: left;
	transition: background-color 0.2s ease;
}

.vm-media-card:hover {
	background-color: #ddd;
}

.vm-media-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	background-color: #efefef;
}

.vm-media-thumb-doc {
	background-size: 88px;
}

.vm-media-badge {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border-radius: 9999px;
	background: rgba(0,0,0,0.82);
	color: #fff;
	font-size: 18px;
	font-weight: 600;
}

.vm-media-badge-doc {
	font-size: 11px;
	letter-spacing: 0.08em;
}

.vm-media-meta {
	display: block;
	padding: 10px;
	background: transparent;
	color: #000;
	min-height: 62px;
}

.vm-media-name {
	display: block;
	font-size: 12px;
	line-height: 1.4;
	overflow-wrap: anywhere;
	font-weight: bold;
}

.vm-sa-stack {
	display: grid;
	gap: 14px;
}

.vm-sa-card {
	padding: 14px 16px;
	border-radius: 5px;
	background: #efefef;
	border: solid 1px #ccc;
}

.vm-sa-card h3 {
	margin: 0 0 10px;
	line-height: 1.2;
	font-weight: 700;
}

.vm-sa-body {
	line-height: 1.55;
	color: #222;
}

#vm-notes-editor {
	width: 100%;
	min-height: 100%;
	border: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #111827;
	background: transparent;
	outline: none;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

#vm-notes-editor:empty::before {
	content: attr(data-placeholder);
	color: #6b7280;
}

.gallery-box {
	display: none;
	flex-direction: column;
	position: absolute;
	right: 80px;
	bottom: 20px;
	width: min(520px, calc(100vw - 120px));
	height: min(480px, calc(100vh - 80px));
	padding: 16px 20px 20px;
	background: #fff;
	border-radius: 5px;
	z-index: 6;
	overflow: hidden;
}

.sa-video,
.sa-photo,
.sa-doc {
	background-color: #e5e7eb;
}

.sa-photo .filename,
.sa-video .filename,
.sa-doc .filename {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 6px 10px;
	font-size: 11px;
	line-height: 1.35;
	color: #fff;
	background-color: rgba(0,0,0,0.55);
	overflow-wrap: anywhere;
}

#upload-box {
	z-index: 8;
}

.vm-upload-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.vm-upload-item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	border-radius: 5px;
	background: #f4f4f4;
	color: #000;
	text-decoration: none;
	text-align: left;
	appearance: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
	padding: 5px;
}

.vm-upload-item:hover {
	background-color: #ddd;
}

.vm-upload-icon {
	position: relative;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 4px;
	background-color: #fff;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.vm-upload-icon-preview {
	background-size: cover;
}

.vm-upload-icon-file {
	background-size: 30px 30px;
}

.vm-upload-icon span {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 2px 3px;
	font-size: 9px;
	line-height: 1;
	font-weight: 700;
	text-align: center;
	color: #fff;
	background: rgba(0,0,0,0.62);
}

.vm-upload-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.vm-upload-name {
	font-size: 14px;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vm-upload-size {
	font-size: 12px;
	line-height: 1.3;
	color: #666;
}

.item-close,
.item-return,
.gallery-close {
	position: absolute;
	top: 0;
	right: 0;
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: #fff;
	cursor: pointer;
	border-radius: 5px;
	background-color: #000;
	transition: background-color 0.2s ease;
}

.gallery-close {
	position: absolute;
	top: 12px;
	right: 12px;
	font-size: 14px;
}

.item-return {
	right: 36px;
}

.item-close:hover,
.item-return:hover,
.gallery-close:hover {
	background-color: #222;
}

#pp {
	display: none;
	position: absolute;
	inset: 0;
	padding: 20px;
	background-color: rgba(0,0,0,0.85);
	z-index: 9;
	overflow: hidden;
}

#pp-inner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(90vw, 1100px);
	height: min(90vh, 720px);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

#pp-inner img,
#pp-inner video,
#pp-inner iframe {
	max-width: 100%;
	max-height: 100%;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border: 0;
}

#pp-close,
#pp-cast {
	position: absolute;
	top: 20px;
	width: 60px;
	height: 60px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	background-color: rgba(0,0,0,0.8);
	color: #fff;
	border-radius: 9999px;
	cursor: pointer;
	z-index: 10;
}

#pp-close {
	right: 20px;
}

#pp-cast {
	left: 20px;
	right: auto;
	color: #22d3ee;
}

@media (max-width: 600px) and (orientation: portrait) { 

	body[vm] #ctrl-seller,
	body[vm] #ctrl-fs {
		display: none !important;
	}

	#vm-streams {
		width: 100px;
		height: 100px;
		top: 10px;
		right: 10px;
	}

	[vm-mode="0"] #local-stream {
		display: none !important;
	}

	#vm-status {
		top: 10px;
		right: 75px;
		margin-right: unset;
	}

	#vm-meeting-syncoff {
		top: 10px;
		height: 44px;
		min-width: 132px;
		padding: 0 16px;
		font-size: 12px;
	}

	#stream-controls > div {
		gap: 0px;
	}

	div[vm-control="chat"] {
		display: none;
	}

	body[vm] #ctrl-bar > #ctrl-chat {
		display: flex;
		font-size: 20px;
	}

	#remote-stream > div {
		font-size: 14px;
	}

	#scene-title {
		left: 12px;
		margin-left: unset;
		width: unset;
		text-align: left;
		max-width: 180px;
	}

	#tc-ol {
		left: unset;
	}
}

@media (max-height: 600px) and (orientation: landscape) {

	body[vm] #ctrl-seller,
	body[vm] #ctrl-fs {
		display: none !important;
	}

	#vm-streams {
		left: 10px;
		top: 10px;
		right: unset;
		width: 100px;
		height: 100px;
	}

	[vm-mode="0"] #local-stream {
		display: none !important;
	}

	#vm-status {
		top: 10px;
		right: unset;
		left: 75px;
		margin-right: unset;
	}

	#vm-meeting-syncoff {
		top: 10px;
		height: 44px;
		min-width: 132px;
		padding: 0 16px;
		font-size: 12px;
	}

	#stream-controls > div {
		gap: 0px;
	}

	div[vm-control="chat"] {
		display: none;
	}

	body[vm] #ctrl-bar > #ctrl-chat {
		display: flex;
		font-size: 20px;
	}

	#remote-stream > div {
		font-size: 14px;
	}
}

@media (max-width: 600px) and (orientation: portrait), (max-height: 600px) and (orientation: landscape) {

	#vm-container[vm-mode="1"] #local-stream {
		top: 20px;
		right: 20px;
		width: 100px;
		border: 100px;
	}

	#vm-menu {
		top: 50%;
		right: 12px;
		transform: translateY(-50%);
	}

	#vm-chat-box {
		transform: none;
		transition: opacity 0.22s ease;
	}

	#vm-chat-box.open {
		transform: none;
	}

	#vm-chat-box,
	.gallery-box {
		min-width: 320px;
		top: 0px;
		right: 0px;
		left: 0px;
		bottom: 50px;		
		width: unset;
		height: unset;
	}

	#data-box {
		padding: 0;
		top: 0px;
		bottom: 50px;
	}

	.data-box-inner {
		transform: none;
		transition: opacity 0.22s ease;
		width: 100%;
		height: 100%;
		max-height: none;
		border-radius: 0;
	}

	#data-box.open .data-box-inner {
		transform: none;
	}

	.vm-media-grid {
		grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
	}

	#pp {
		padding: 12px;
	}

	#pp-close {
		right: 12px;
	}

	#pp-cast {
		left: 12px;
	}

	#chat-composer-shell {
		min-height: 96px;
		padding: 12px;
	}

	#chat-input textarea {
		min-height: 68px;
	}

	.vm-media-title {
		display: none;
	}

}
