/* Chat rooms — Chat Room + Call Box */

.m4t .chat-section {
	position: relative;
	overflow: hidden;
	border-top: 1px solid var(--line);
	background:
		radial-gradient(720px 500px at 16% 34%, rgba(0, 226, 138, 0.18), transparent 62%),
		radial-gradient(650px 470px at 84% 28%, rgba(74, 132, 255, 0.16), transparent 64%),
		radial-gradient(520px 320px at 50% 104%, rgba(0, 226, 138, 0.08), transparent 70%),
		var(--bg);
}

.m4t .chat-section::before {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
	background-size: 72px 72px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 78%);
	mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 78%);
	content: '';
	pointer-events: none;
}

.m4t .chat-section > .wrap {
	position: relative;
	z-index: 1;
}

.m4t .chat-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.m4t .chat-panel {
	display: flex;
	flex-direction: column;
	height: 672px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(94, 112, 140, 0.62), rgba(52, 67, 88, 0.58));
	-webkit-backdrop-filter: blur(20px) saturate(150%);
	backdrop-filter: blur(20px) saturate(150%);
	box-shadow:
		0 30px 70px rgba(0, 0, 0, 0.42),
		inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.m4t .chat-panel {
		background: linear-gradient(180deg, #121a26, #0b1119);
	}
}

.m4t .chat-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.06);
}

.m4t .chat-mark {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(0, 226, 138, 0.18);
	border-radius: 10px;
	background: rgba(0, 226, 138, 0.08);
	color: var(--green);
}

.m4t .chat-mark svg {
	width: 19px;
	height: 19px;
}

.m4t .chat-mark-calls {
	border-color: rgba(255, 200, 87, 0.2);
	background: rgba(255, 200, 87, 0.08);
	color: var(--amber);
}

.m4t .chat-title {
	font-size: 15px;
	letter-spacing: -0.01em;
}

.m4t .chat-sub {
	margin-top: 2px;
	font-size: 11.5px;
	color: var(--muted-2);
}

.m4t .chat-live {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	font-family: 'JetBrains Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--green);
}

.m4t .chat-live i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--green);
	animation: m4t-pulse 2s ease-in-out infinite;
}

.m4t .chat-live-amber {
	color: var(--amber);
}

.m4t .chat-live-amber i {
	background: var(--amber);
}

.m4t .chat-log {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 14px;
	overflow-y: auto;
	padding: 16px;
	scrollbar-width: thin;
	scrollbar-color: #1c2634 transparent;
}

.m4t .chat-log::-webkit-scrollbar {
	width: 8px;
}

.m4t .chat-log::-webkit-scrollbar-thumb {
	border-radius: 8px;
	background: #1c2634;
}

.m4t .chat-empty {
	margin: auto;
	max-width: 220px;
	font-size: 12.5px;
	line-height: 1.6;
	text-align: center;
	color: var(--muted-2);
}

.m4t .chat-msg {
	display: flex;
	gap: 10px;
	animation: m4t-msg-in 0.25s ease both;
}

@keyframes m4t-msg-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.m4t .chat-avatar {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: hsl(var(--hue, 150) 60% 52%);
	color: #04120b;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.m4t .chat-avatar-photo {
	display: block;
	object-fit: cover;
	background: #1a2330;
}

.m4t .chat-msg.is-own .chat-avatar {
	background: var(--green);
}

.m4t .chat-msg-body {
	min-width: 0;
	flex: 1;
}

.m4t .chat-meta {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 2px;
}

.m4t .chat-name {
	font-size: 12.5px;
	font-weight: 600;
	color: #dce4f0;
}

.m4t .chat-msg.is-own .chat-name {
	color: var(--green);
}

.m4t .chat-time {
	font-family: 'JetBrains Mono', monospace;
	font-size: 10px;
	color: var(--muted-2);
}

.m4t .chat-text {
	font-size: 13.5px;
	line-height: 1.5;
	color: #c7d2e2;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.m4t .chat-message-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
}

.m4t .chat-reaction-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.m4t .chat-reaction-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 1px 6px;
	border: 1px solid var(--line);
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--muted);
	font: inherit;
	font-size: 10px;
	line-height: 1.5;
	cursor: pointer;
	transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.m4t .chat-reaction-chip:hover {
	border-color: rgba(0, 226, 138, 0.35);
	background: rgba(0, 226, 138, 0.08);
}

.m4t .chat-reaction-chip.is-active {
	border-color: rgba(0, 226, 138, 0.4);
	background: rgba(0, 226, 138, 0.12);
}

.m4t .chat-chip-emoji {
	font-size: 11px;
	line-height: 1;
}

.m4t .chat-chip-count {
	font-family: 'JetBrains Mono', monospace;
	font-size: 9.5px;
	letter-spacing: 0.02em;
	color: var(--muted);
}

.m4t .chat-reaction-chip.is-active .chat-chip-count {
	color: var(--green);
}

.m4t .chat-react-wrap {
	position: relative;
	display: inline-flex;
}

.m4t .chat-react-trigger {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--muted-2);
	cursor: pointer;
	transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.m4t .chat-react-trigger:hover {
	border-color: rgba(0, 226, 138, 0.35);
	background: rgba(0, 226, 138, 0.08);
	color: var(--green);
}

.m4t .chat-react-trigger svg {
	width: 13px;
	height: 13px;
}

.m4t .chat-react-popup {
	position: absolute;
	bottom: calc(100% + 6px);
	left: 0;
	z-index: 12;
	display: flex;
	gap: 2px;
	padding: 5px;
	border: 1px solid var(--line-2);
	border-radius: 10px;
	background: #0b1119;
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.m4t .chat-react-popup[hidden] {
	display: none;
}

.m4t .chat-react-option {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 7px;
	background: transparent;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s, transform 0.15s;
}

.m4t .chat-react-option:hover {
	background: rgba(255, 255, 255, 0.07);
	transform: translateY(-1px);
}

.m4t .chat-react-option.is-selected {
	background: rgba(0, 226, 138, 0.16);
	box-shadow: inset 0 0 0 1px rgba(0, 226, 138, 0.35);
}

.m4t .chat-form {
	position: relative;
	padding: 12px;
	border-top: 1px solid var(--line);
	background: rgba(44, 58, 76, 0.6);
}

.m4t .chat-compose-row {
	display: flex;
	align-items: flex-end;
	gap: 10px;
}

.m4t .chat-compose-row textarea {
	flex: 1;
	min-height: 40px;
	max-height: 108px;
	padding: 9px 12px;
	resize: none;
	border: 1px solid var(--line-2);
	border-radius: 10px;
	background: #070b11;
	color: var(--text);
	font-family: inherit;
	font-size: 13.5px;
	line-height: 1.4;
}

.m4t .chat-compose-row textarea:focus {
	outline: none;
	border-color: rgba(0, 226, 138, 0.45);
	box-shadow: 0 0 0 3px rgba(0, 226, 138, 0.08);
}

.m4t .chat-compose-row textarea::placeholder {
	color: #4e5b6d;
}

.m4t .chat-send {
	flex-shrink: 0;
	height: 38px;
	padding: 0 16px;
	border-radius: 10px;
	font-size: 13px;
}

.m4t .chat-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 16px;
	margin-top: 8px;
}

.m4t .chat-tool {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--muted-2);
	cursor: pointer;
	transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.m4t .chat-tool:hover {
	border-color: rgba(0, 226, 138, 0.35);
	background: rgba(0, 226, 138, 0.08);
	color: var(--green);
}

.m4t .chat-tool svg {
	width: 15px;
	height: 15px;
}

.m4t .chat-emoji-popup {
	position: absolute;
	bottom: 88px;
	left: 12px;
	z-index: 15;
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 3px;
	width: 360px;
	max-height: 280px;
	overflow-y: auto;
	padding: 8px;
	border: 1px solid var(--line-2);
	border-radius: 12px;
	background: #0b1119;
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
	scrollbar-width: thin;
	scrollbar-color: #1c2634 transparent;
}

.m4t .chat-emoji-popup[hidden] {
	display: none;
}

.m4t .chat-emoji-item {
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 1;
	padding: 2px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
}

.m4t .chat-emoji-item:hover {
	background: rgba(255, 255, 255, 0.07);
}

.m4t .chat-emoji-item img {
	width: auto;
	height: auto;
	max-width: 40px;
	max-height: 40px;
	object-fit: contain;
}

.m4t .chat-emoji {
	display: inline-block;
	width: auto;
	height: auto;
	max-width: none;
	max-height: none;
	margin: 2px;
	vertical-align: middle;
}

.m4t .chat-media-link {
	color: var(--green);
	text-decoration: underline;
	text-underline-offset: 2px;
	overflow-wrap: anywhere;
}

.m4t .chat-media-img {
	display: block;
	max-width: 360px;
	max-height: 360px;
	margin-top: 4px;
	border: 1px solid var(--line-2);
	border-radius: 10px;
	cursor: zoom-in;
}

.m4t .chat-as {
	font-size: 11px;
	color: var(--muted-2);
}

.m4t .chat-as b {
	font-weight: 600;
	color: #9aa8bc;
}

.m4t .chat-status {
	margin-left: auto;
	font-size: 11.5px;
	color: var(--muted-2);
}

.m4t .chat-status.is-error {
	color: var(--red);
}

.m4t .chat-locked {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 16px;
	border-top: 1px solid var(--line);
	background: rgba(44, 58, 76, 0.55);
}

.m4t .chat-locked > div:not(.chat-locked-actions) {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.m4t .chat-locked strong {
	font-size: 12.5px;
	font-weight: 600;
}

.m4t .chat-locked span {
	font-size: 11.5px;
	color: var(--muted-2);
}

.m4t .chat-locked .btn {
	margin-left: auto;
	height: 36px;
	font-size: 12.5px;
}

.m4t .chat-locked-actions {
	display: flex;
	flex-shrink: 0;
	flex-wrap: wrap;
	gap: 8px;
	margin-left: auto;
}

.m4t .chat-locked-actions .btn {
	margin-left: 0;
}

.m4t .chat-note {
	margin-top: 22px;
	font-size: 12px;
	color: var(--muted-2);
	text-align: center;
}

.m4t .chat-note a {
	text-decoration: underline;
	text-underline-offset: 3px;
	color: var(--green);
}

@media (max-width: 980px) {
	.m4t .chat-grid {
		grid-template-columns: 1fr;
	}

	.m4t .chat-panel {
		height: 576px;
	}
}

@media (max-width: 640px) {
	.m4t .chat-panel {
		height: 552px;
	}

	.m4t .chat-log {
		padding: 14px;
	}

	.m4t .chat-locked {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.m4t .chat-locked .btn {
		margin-left: 0;
		width: 100%;
	}

	.m4t .chat-locked-actions {
		width: 100%;
		margin-left: 0;
	}

	.m4t .chat-locked-actions .btn {
		flex: 1;
		width: auto;
	}
}

.m4t .chat-form-calls .chat-emoji-toggle,
.m4t .chat-form-calls .chat-emoji-popup,
.m4t .chat-panel[data-room="calls"] .chat-react-wrap {
	display: none;
}

.m4t-lightbox {
	position: fixed;
	inset: 0;
	z-index: 500;
	display: grid;
	place-items: center;
	padding: 32px;
	background: rgba(3, 6, 10, 0.9);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.m4t-lightbox[hidden] {
	display: none;
}

.m4t-lightbox img {
	max-width: min(92vw, 1100px);
	max-height: 86vh;
	border: 1px solid var(--line-2);
	border-radius: 12px;
	background: #0b1119;
	box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.m4t-lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--line-2);
	border-radius: 10px;
	background: rgba(11, 17, 25, 0.8);
	color: var(--text);
	cursor: pointer;
}

.m4t-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.1);
}

.m4t-lightbox-close svg {
	width: 16px;
	height: 16px;
}

body.m4t-lightbox-open {
	overflow: hidden;
}
/* Light chat panels */
.m4t .chat-panel {
	background: #f4f7fb;
	border: 1px solid rgba(255, 255, 255, 0.45);
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.m4t .chat-head {
	position: relative;
	background: linear-gradient(180deg, #1c2636, #141c28);
	border-bottom: 0;
}

.m4t .chat-head::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	background: rgba(255, 255, 255, 0.06);
	content: '';
}

.m4t .chat-panel[data-room="chat"] .chat-head::after {
	background: rgba(0, 226, 138, 0.55);
}

.m4t .chat-panel[data-room="calls"] .chat-head::after {
	background: rgba(255, 200, 87, 0.55);
}

.m4t .chat-title {
	color: #ffffff;
}

.m4t .chat-sub {
	color: #a9b6c7;
}

.m4t .chat-mark {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.14);
	color: var(--green);
}

.m4t .chat-mark-calls {
	color: var(--amber);
	border-color: rgba(255, 200, 87, 0.3);
	background: rgba(255, 200, 87, 0.1);
}

.m4t .chat-log {
	background:
		radial-gradient(520px 200px at 50% 0%, #ffffff, rgba(255, 255, 255, 0) 75%),
		#f7f9fc;
	scrollbar-color: #cbd5e1 transparent;
}

.m4t .chat-log::-webkit-scrollbar-thumb {
	background: #cbd5e1;
}

.m4t .chat-empty {
	color: #7c8ba0;
}

.m4t .chat-name {
	color: #1f2937;
}

.m4t .chat-time {
	color: #8c9aad;
}

.m4t .chat-text {
	color: #374151;
}

.m4t .chat-msg.is-own .chat-name {
	color: #0b8f5a;
}

.m4t .chat-msg.is-own .chat-text {
	color: #1f2937;
}

.m4t .chat-reaction-chip {
	border-color: #dbe3ed;
	background: #ffffff;
	color: #5b6b80;
}

.m4t .chat-reaction-chip:hover {
	border-color: #9be3c3;
	background: #f0fdf7;
}

.m4t .chat-reaction-chip.is-active {
	border-color: #9be3c3;
	background: #e8fbf2;
}

.m4t .chat-chip-count {
	color: #7c8ba0;
}

.m4t .chat-reaction-chip.is-active .chat-chip-count {
	color: #0b8f5a;
}

.m4t .chat-react-trigger {
	border-color: #dbe3ed;
	background: #ffffff;
	color: #64748b;
}

.m4t .chat-react-trigger:hover {
	border-color: #9be3c3;
	background: #f0fdf7;
	color: #0b8f5a;
}

.m4t .chat-react-popup {
	border-color: #dbe3ed;
	background: #ffffff;
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.m4t .chat-react-option:hover {
	background: #eef3f9;
}

.m4t .chat-react-option.is-selected {
	background: #e8fbf2;
	box-shadow: inset 0 0 0 1px rgba(11, 143, 90, 0.35);
}

.m4t .chat-form {
	border-top: 1px solid #dde5ee;
	background: #eaf0f7;
}

.m4t .chat-compose-row textarea {
	border-color: #d3dde8;
	background: #ffffff;
	color: #1f2937;
}

.m4t .chat-compose-row textarea::placeholder {
	color: #94a3b8;
}

.m4t .chat-as {
	color: #64748b;
}

.m4t .chat-as b {
	color: #334155;
}

.m4t .chat-status {
	color: #64748b;
}

.m4t .chat-tool {
	border-color: #d3dde8;
	background: #ffffff;
	color: #64748b;
}

.m4t .chat-tool:hover {
	border-color: #9be3c3;
	background: #f0fdf7;
	color: #0b8f5a;
}

.m4t .chat-locked {
	border-top: 1px solid #dde5ee;
	background: #eaf0f7;
}

.m4t .chat-locked strong {
	color: #1f2937;
}

.m4t .chat-locked span {
	color: #64748b;
}

.m4t .chat-locked .btn-ghost {
	border-color: #cfd9e5;
	background: #ffffff;
	color: #334155;
}

.m4t .chat-locked .btn-ghost:hover {
	border-color: #b9c6d6;
	background: #f7fafd;
}

.m4t .chat-media-img {
	border-color: #dbe3ed;
}

.m4t .chat-media-link {
	color: #0b8f5a;
}

.m4t .chat-emoji-popup {
	border-color: #dbe3ed;
	background: #ffffff;
	box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
}

.m4t .chat-emoji-item:hover {
	background: #eef3f9;
}
/* Glossy chat theme */
.m4t .chat-panel {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(230, 237, 245, 0.94) 10%, #dbe3ee 100%);
	border: 1px solid rgba(255, 255, 255, 0.58);
	box-shadow:
		0 30px 70px rgba(0, 0, 0, 0.38),
		inset 0 1px 0 rgba(255, 255, 255, 0.95),
		inset 0 -1px 0 rgba(255, 255, 255, 0.35);
}

.m4t .chat-head {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 46%),
		linear-gradient(180deg, #2b374a 0%, #1a2331 55%, #141d29 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.m4t .chat-sub {
	color: #c7d2e1;
}

.m4t .chat-log {
	background:
		radial-gradient(680px 220px at 50% -50px, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 72%),
		linear-gradient(180deg, #e9eff7 0%, #e1e8f1 45%, #d9e2ed 100%);
}

.m4t .chat-name {
	color: #0f172a;
	font-weight: 700;
}

.m4t .chat-text {
	color: #1f2937;
}

.m4t .chat-time {
	color: #4b5563;
}

.m4t .chat-empty {
	color: #556274;
}

.m4t .chat-msg.is-own .chat-name {
	color: #067a4b;
}

.m4t .chat-msg.is-own .chat-text {
	color: #111827;
}

.m4t .chat-avatar {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.m4t .chat-reaction-chip {
	border-color: #c3cfdd;
	background: #f4f8fc;
	color: #334155;
}

.m4t .chat-chip-count {
	color: #475569;
}

.m4t .chat-reaction-chip.is-active {
	border-color: #7ed3ae;
	background: #e2f8ee;
}

.m4t .chat-reaction-chip.is-active .chat-chip-count {
	color: #067a4b;
}

.m4t .chat-react-trigger {
	border-color: #c3cfdd;
	background: #f4f8fc;
	color: #475569;
}

.m4t .chat-form {
	border-top: 1px solid #c3cfdd;
	background: linear-gradient(180deg, #dde6f0 0%, #d5dfea 100%);
}

.m4t .chat-compose-row textarea {
	border-color: #b9c7d6;
	background: #ffffff;
	color: #0f172a;
}

.m4t .chat-compose-row textarea::placeholder {
	color: #6b7a8d;
}

.m4t .chat-as {
	color: #475569;
}

.m4t .chat-as b {
	color: #1f2937;
}

.m4t .chat-status {
	color: #475569;
}

.m4t .chat-tool {
	border-color: #c3cfdd;
	background: #ffffff;
	color: #475569;
}

.m4t .chat-locked {
	border-top: 1px solid #c3cfdd;
	background: linear-gradient(180deg, #dde6f0 0%, #d5dfea 100%);
}

.m4t .chat-locked strong {
	color: #0f172a;
}

.m4t .chat-locked span {
	color: #475569;
}

.m4t .chat-locked .btn-ghost {
	border-color: #b9c7d6;
	background: #ffffff;
	color: #1f2937;
}

.m4t .chat-media-img {
	border-color: #c3cfdd;
}

.m4t .chat-emoji-popup {
	border-color: #c3cfdd;
	background: #eef3f9;
	box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
}
/* Glossy pass 2 */
.m4t .chat-panel {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 30%),
		linear-gradient(180deg, #eef3f9 0%, #d8e1ec 12%, #cfd9e6 100%);
	border: 1px solid rgba(255, 255, 255, 0.62);
	box-shadow:
		0 30px 70px rgba(0, 0, 0, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.95),
		inset 0 -1px 0 rgba(255, 255, 255, 0.4);
}

.m4t .chat-head {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 48%),
		linear-gradient(180deg, #2c394c 0%, #1a2331 55%, #121a25 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.m4t .chat-log {
	background:
		radial-gradient(660px 200px at 50% -60px, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 70%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 32%),
		linear-gradient(180deg, #e0e8f1 0%, #d7e0eb 50%, #d1dbe7 100%);
}

.m4t .chat-form,
.m4t .chat-locked {
	border-top: 1px solid #bccadb;
	background: linear-gradient(180deg, #ccd7e4 0%, #c5d1df 100%);
}

.m4t .chat-compose-row textarea {
	border-color: #aebdcd;
	background: #ffffff;
}

.m4t .chat-tool {
	width: 32px;
	height: 32px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: linear-gradient(180deg, #1bf5a4 0%, #00c878 100%);
	color: #04120b;
	box-shadow:
		0 4px 12px rgba(0, 226, 138, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.m4t .chat-tool:hover {
	border-color: rgba(0, 0, 0, 0.12);
	background: linear-gradient(180deg, #2bffb4 0%, #00e28a 100%);
	color: #04120b;
}

.m4t .chat-tool svg {
	width: 16px;
	height: 16px;
}

.m4t .chat-upload-btn {
	background: linear-gradient(180deg, #ffd97a 0%, #f5a623 100%);
	box-shadow:
		0 4px 12px rgba(245, 166, 35, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.m4t .chat-upload-btn:hover {
	background: linear-gradient(180deg, #ffe49a 0%, #ffb63a 100%);
}
/* Colorful composer tools */
.m4t .chat-tool {
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: linear-gradient(180deg, #b9a7ff 0%, #7c5cf0 100%);
	color: #ffffff;
	box-shadow:
		0 4px 12px rgba(124, 92, 240, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.m4t .chat-tool:hover {
	border-color: rgba(255, 255, 255, 0.32);
	background: linear-gradient(180deg, #c9bbff 0%, #8f74ff 100%);
	color: #ffffff;
}

.m4t .chat-upload-btn {
	border-color: rgba(255, 255, 255, 0.22);
	background: linear-gradient(180deg, #ffd97a 0%, #f5a623 100%);
	color: #3a2600;
	box-shadow:
		0 4px 12px rgba(245, 166, 35, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.m4t .chat-upload-btn:hover {
	border-color: rgba(255, 255, 255, 0.32);
	background: linear-gradient(180deg, #ffe49a 0%, #ffb63a 100%);
	color: #3a2600;
}
/* Blended glass theme */
.m4t .chat-panel {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 32%),
		linear-gradient(180deg, rgba(17, 25, 36, 0.62), rgba(9, 14, 20, 0.5));
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	border: 1px solid rgba(255, 255, 255, 0.16);
	box-shadow:
		0 30px 70px rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.m4t .chat-head {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 58%),
		rgba(10, 16, 24, 0.45);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.m4t .chat-title {
	color: #ffffff;
}

.m4t .chat-sub {
	color: #aab9cc;
}

.m4t .chat-mark {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.14);
}

.m4t .chat-log {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 36%),
		rgba(8, 13, 19, 0.22);
	scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.m4t .chat-log::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.18);
}

.m4t .chat-empty {
	color: #8494a9;
}

.m4t .chat-name {
	color: #eaf0f8;
	font-weight: 700;
}

.m4t .chat-text {
	color: #c9d4e3;
}

.m4t .chat-time {
	color: #8fa0b5;
}

.m4t .chat-msg.is-own .chat-name {
	color: var(--green);
}

.m4t .chat-msg.is-own .chat-text {
	color: #e2eaf4;
}

.m4t .chat-avatar {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.m4t .chat-reaction-chip {
	border-color: rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.05);
	color: #c3cfdf;
}

.m4t .chat-chip-count {
	color: #9fb0c5;
}

.m4t .chat-reaction-chip:hover {
	border-color: rgba(0, 226, 138, 0.4);
	background: rgba(0, 226, 138, 0.1);
}

.m4t .chat-reaction-chip.is-active {
	border-color: rgba(0, 226, 138, 0.45);
	background: rgba(0, 226, 138, 0.14);
}

.m4t .chat-reaction-chip.is-active .chat-chip-count {
	color: var(--green);
}

.m4t .chat-react-trigger {
	border-color: rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.05);
	color: #9fb0c5;
}

.m4t .chat-react-trigger:hover {
	border-color: rgba(0, 226, 138, 0.4);
	background: rgba(0, 226, 138, 0.1);
	color: var(--green);
}

.m4t .chat-react-popup {
	border-color: rgba(255, 255, 255, 0.16);
	background: rgba(12, 18, 26, 0.95);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.m4t .chat-react-option:hover {
	background: rgba(255, 255, 255, 0.08);
}

.m4t .chat-react-option.is-selected {
	background: rgba(0, 226, 138, 0.16);
	box-shadow: inset 0 0 0 1px rgba(0, 226, 138, 0.35);
}

.m4t .chat-form,
.m4t .chat-locked {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(8, 13, 19, 0.42);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.m4t .chat-compose-row textarea {
	border-color: rgba(255, 255, 255, 0.16);
	background: rgba(6, 10, 16, 0.55);
	color: #e6edf7;
}

.m4t .chat-compose-row textarea::placeholder {
	color: #7d8da3;
}

.m4t .chat-compose-row textarea:focus {
	border-color: rgba(0, 226, 138, 0.5);
	box-shadow: 0 0 0 3px rgba(0, 226, 138, 0.08);
}

.m4t .chat-as {
	color: #8494a9;
}

.m4t .chat-as b {
	color: #c3cfdf;
}

.m4t .chat-status {
	color: #8494a9;
}

.m4t .chat-locked strong {
	color: #eaf0f8;
}

.m4t .chat-locked span {
	color: #8494a9;
}

.m4t .chat-locked .btn-ghost {
	border-color: rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.04);
	color: #e6edf7;
}

.m4t .chat-locked .btn-ghost:hover {
	border-color: rgba(255, 255, 255, 0.32);
	background: rgba(255, 255, 255, 0.08);
}

.m4t .chat-media-img {
	border-color: rgba(255, 255, 255, 0.16);
}

.m4t .chat-media-link {
	color: var(--green);
}

.m4t .chat-emoji-popup {
	border-color: rgba(255, 255, 255, 0.16);
	background: rgba(12, 18, 26, 0.95);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

.m4t .chat-emoji-item:hover {
	background: rgba(255, 255, 255, 0.08);
}
/* Theme system */
.m4t-body {
	--ct-bg1: rgba(17, 25, 36, 0.62);
	--ct-bg2: rgba(9, 14, 20, 0.5);
	--ct-head: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 58%), rgba(10, 16, 24, 0.45);
	--ct-border: rgba(255, 255, 255, 0.16);
	--ct-title: #ffffff;
	--ct-sub: #aab9cc;
	--ct-name: #eaf0f8;
	--ct-text: #c9d4e3;
	--ct-time: #8fa0b5;
	--ct-muted: #8494a9;
	--ct-accent: #00e28a;
	--ct-accent2: #ffc857;
	--ct-log: rgba(8, 13, 19, 0.22);
	--ct-composer: rgba(8, 13, 19, 0.42);
	--ct-input: rgba(6, 10, 16, 0.55);
	--ct-input-border: rgba(255, 255, 255, 0.16);
	--ct-input-text: #e6edf7;
	--ct-placeholder: #7d8da3;
	--ct-chip-bg: rgba(255, 255, 255, 0.05);
	--ct-chip-border: rgba(255, 255, 255, 0.15);
	--ct-chip-text: #c3cfdf;
	--ct-chip-count: #9fb0c5;
	--ct-popup: rgba(12, 18, 26, 0.95);
	--ct-popup-border: rgba(255, 255, 255, 0.16);
	--ct-ghost-border: rgba(255, 255, 255, 0.2);
	--ct-ghost-bg: rgba(255, 255, 255, 0.04);
	--ct-ghost-text: #e6edf7;
}

.m4t-theme-emerald {
	--ct-bg1: rgba(12, 40, 32, 0.64);
	--ct-bg2: rgba(6, 20, 16, 0.54);
	--ct-head: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 58%), rgba(8, 28, 22, 0.5);
	--ct-border: rgba(120, 255, 200, 0.22);
	--ct-title: #eafff7;
	--ct-sub: #a9c9bb;
	--ct-name: #e6fff5;
	--ct-text: #c6e6d9;
	--ct-time: #8fb5a5;
	--ct-muted: #7fa393;
	--ct-accent: #35f0a9;
	--ct-accent2: #9be3c3;
	--ct-log: rgba(5, 18, 14, 0.26);
	--ct-composer: rgba(5, 18, 14, 0.44);
	--ct-input: rgba(4, 14, 11, 0.58);
	--ct-input-border: rgba(120, 255, 200, 0.2);
	--ct-chip-bg: rgba(53, 240, 169, 0.08);
	--ct-chip-border: rgba(120, 255, 200, 0.2);
	--ct-chip-text: #b7e6d3;
	--ct-chip-count: #8fc4ae;
	--ct-popup: rgba(8, 24, 19, 0.96);
	--ct-popup-border: rgba(120, 255, 200, 0.2);
}

.m4t-theme-ocean {
	--ct-bg1: rgba(12, 30, 48, 0.66);
	--ct-bg2: rgba(6, 16, 28, 0.56);
	--ct-head: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 58%), rgba(8, 22, 36, 0.5);
	--ct-border: rgba(125, 211, 252, 0.22);
	--ct-title: #eaf6ff;
	--ct-sub: #a9c6dd;
	--ct-name: #e5f4ff;
	--ct-text: #c6ddef;
	--ct-time: #8aa8c2;
	--ct-muted: #7d99b0;
	--ct-accent: #38bdf8;
	--ct-accent2: #7dd3fc;
	--ct-log: rgba(4, 12, 22, 0.26);
	--ct-composer: rgba(4, 12, 22, 0.44);
	--ct-input: rgba(3, 10, 18, 0.58);
	--ct-input-border: rgba(125, 211, 252, 0.2);
	--ct-chip-bg: rgba(56, 189, 248, 0.08);
	--ct-chip-border: rgba(125, 211, 252, 0.22);
	--ct-chip-text: #b6d6ea;
	--ct-chip-count: #8fb2ca;
	--ct-popup: rgba(7, 18, 30, 0.96);
	--ct-popup-border: rgba(125, 211, 252, 0.2);
}

.m4t-theme-violet {
	--ct-bg1: rgba(30, 20, 46, 0.66);
	--ct-bg2: rgba(14, 9, 24, 0.58);
	--ct-head: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 58%), rgba(22, 14, 34, 0.5);
	--ct-border: rgba(196, 181, 253, 0.24);
	--ct-title: #f4efff;
	--ct-sub: #c3b8d9;
	--ct-name: #f1eaff;
	--ct-text: #ded4f2;
	--ct-time: #a99cbf;
	--ct-muted: #9a8cae;
	--ct-accent: #c4b5fd;
	--ct-accent2: #a78bfa;
	--ct-log: rgba(12, 7, 20, 0.26);
	--ct-composer: rgba(12, 7, 20, 0.44);
	--ct-input: rgba(9, 5, 16, 0.58);
	--ct-input-border: rgba(196, 181, 253, 0.22);
	--ct-chip-bg: rgba(196, 181, 253, 0.09);
	--ct-chip-border: rgba(196, 181, 253, 0.24);
	--ct-chip-text: #d8cff0;
	--ct-chip-count: #b3a6cc;
	--ct-popup: rgba(18, 12, 28, 0.96);
	--ct-popup-border: rgba(196, 181, 253, 0.22);
}

.m4t-theme-amber {
	--ct-bg1: rgba(42, 30, 16, 0.68);
	--ct-bg2: rgba(20, 13, 6, 0.58);
	--ct-head: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 58%), rgba(30, 20, 10, 0.5);
	--ct-border: rgba(255, 200, 87, 0.24);
	--ct-title: #fff6e6;
	--ct-sub: #d8c4a2;
	--ct-name: #fff3df;
	--ct-text: #ecd9ba;
	--ct-time: #bda985;
	--ct-muted: #a8977b;
	--ct-accent: #ffc857;
	--ct-accent2: #ffd97a;
	--ct-log: rgba(16, 10, 4, 0.26);
	--ct-composer: rgba(16, 10, 4, 0.44);
	--ct-input: rgba(12, 7, 3, 0.58);
	--ct-input-border: rgba(255, 200, 87, 0.22);
	--ct-chip-bg: rgba(255, 200, 87, 0.09);
	--ct-chip-border: rgba(255, 200, 87, 0.24);
	--ct-chip-text: #e8d6b4;
	--ct-chip-count: #c5b28f;
	--ct-popup: rgba(26, 18, 9, 0.96);
	--ct-popup-border: rgba(255, 200, 87, 0.22);
}

.m4t-theme-graphite {
	--ct-bg1: rgba(28, 31, 35, 0.68);
	--ct-bg2: rgba(12, 14, 16, 0.58);
	--ct-head: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 58%), rgba(18, 20, 23, 0.5);
	--ct-border: rgba(203, 213, 225, 0.2);
	--ct-title: #f1f5f9;
	--ct-sub: #aab6c4;
	--ct-name: #eef2f7;
	--ct-text: #d3dbe4;
	--ct-time: #97a4b3;
	--ct-muted: #8b98a6;
	--ct-accent: #cbd5e1;
	--ct-accent2: #94a3b8;
	--ct-log: rgba(10, 12, 14, 0.26);
	--ct-composer: rgba(10, 12, 14, 0.44);
	--ct-input: rgba(7, 9, 11, 0.58);
	--ct-input-border: rgba(203, 213, 225, 0.2);
	--ct-chip-bg: rgba(203, 213, 225, 0.07);
	--ct-chip-border: rgba(203, 213, 225, 0.18);
	--ct-chip-text: #c9d3de;
	--ct-chip-count: #9daab8;
	--ct-popup: rgba(16, 18, 21, 0.96);
	--ct-popup-border: rgba(203, 213, 225, 0.18);
}

.m4t-theme-rose {
	--ct-bg1: rgba(44, 18, 30, 0.68);
	--ct-bg2: rgba(22, 8, 14, 0.58);
	--ct-head: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 58%), rgba(32, 12, 22, 0.5);
	--ct-border: rgba(251, 113, 133, 0.24);
	--ct-title: #fff0f4;
	--ct-sub: #d8b7c4;
	--ct-name: #ffe9f0;
	--ct-text: #eccbd7;
	--ct-time: #bb93a3;
	--ct-muted: #a88794;
	--ct-accent: #fb7185;
	--ct-accent2: #f9a8d4;
	--ct-log: rgba(18, 6, 12, 0.26);
	--ct-composer: rgba(18, 6, 12, 0.44);
	--ct-input: rgba(14, 4, 9, 0.58);
	--ct-input-border: rgba(251, 113, 133, 0.22);
	--ct-chip-bg: rgba(251, 113, 133, 0.09);
	--ct-chip-border: rgba(251, 113, 133, 0.24);
	--ct-chip-text: #e8c3ce;
	--ct-chip-count: #c4a0ad;
	--ct-popup: rgba(28, 10, 18, 0.96);
	--ct-popup-border: rgba(251, 113, 133, 0.22);
}

.m4t-theme-frosted {
	--ct-bg1: rgba(244, 247, 251, 0.97);
	--ct-bg2: rgba(216, 225, 236, 0.97);
	--ct-head: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 46%), linear-gradient(180deg, #2b374a, #141d29);
	--ct-border: rgba(255, 255, 255, 0.65);
	--ct-title: #ffffff;
	--ct-sub: #a9b6c7;
	--ct-name: #0f172a;
	--ct-text: #1f2937;
	--ct-time: #4b5563;
	--ct-muted: #556274;
	--ct-accent: #00b374;
	--ct-accent2: #f5a623;
	--ct-log: #eef3f9;
	--ct-composer: #eaf0f7;
	--ct-input: #ffffff;
	--ct-input-border: #c3cfdd;
	--ct-input-text: #0f172a;
	--ct-placeholder: #6b7a8d;
	--ct-chip-bg: #ffffff;
	--ct-chip-border: #c3cfdd;
	--ct-chip-text: #334155;
	--ct-chip-count: #475569;
	--ct-popup: #ffffff;
	--ct-popup-border: #dbe3ed;
	--ct-ghost-border: #c3cfdd;
	--ct-ghost-bg: #ffffff;
	--ct-ghost-text: #1f2937;
}

.m4t .chat-panel {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 32%),
		linear-gradient(180deg, var(--ct-bg1), var(--ct-bg2));
	border-color: var(--ct-border);
}

.m4t .chat-head {
	background: var(--ct-head);
}

.m4t .chat-title {
	color: var(--ct-title);
}

.m4t .chat-sub {
	color: var(--ct-sub);
}

.m4t .chat-log {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 36%),
		var(--ct-log);
}

.m4t .chat-name {
	color: var(--ct-name);
}

.m4t .chat-text {
	color: var(--ct-text);
}

.m4t .chat-time {
	color: var(--ct-time);
}

.m4t .chat-empty {
	color: var(--ct-muted);
}

.m4t .chat-msg.is-own .chat-name {
	color: var(--ct-accent);
}

.m4t .chat-msg.is-own .chat-text {
	color: var(--ct-text);
}

.m4t .chat-reaction-chip {
	background: var(--ct-chip-bg);
	border-color: var(--ct-chip-border);
	color: var(--ct-chip-text);
}

.m4t .chat-chip-count {
	color: var(--ct-chip-count);
}

.m4t .chat-react-trigger {
	background: var(--ct-chip-bg);
	border-color: var(--ct-chip-border);
	color: var(--ct-chip-count);
}

.m4t .chat-form,
.m4t .chat-locked {
	background: var(--ct-composer);
	border-top-color: var(--ct-border);
}

.m4t .chat-compose-row textarea {
	background: var(--ct-input);
	border-color: var(--ct-input-border);
	color: var(--ct-input-text);
}

.m4t .chat-compose-row textarea::placeholder {
	color: var(--ct-placeholder);
}

.m4t .chat-as,
.m4t .chat-status {
	color: var(--ct-muted);
}

.m4t .chat-as b {
	color: var(--ct-text);
}

.m4t .chat-locked strong {
	color: var(--ct-title);
}

.m4t .chat-locked span {
	color: var(--ct-muted);
}

.m4t .chat-locked .btn-ghost {
	background: var(--ct-ghost-bg);
	border-color: var(--ct-ghost-border);
	color: var(--ct-ghost-text);
}

.m4t .chat-media-img {
	border-color: var(--ct-border);
}

.m4t .chat-emoji-popup,
.m4t .chat-react-popup {
	background: var(--ct-popup);
	border-color: var(--ct-popup-border);
}

.m4t .chat-panel[data-room="chat"] .chat-head::after {
	background: var(--ct-accent);
}

.m4t .chat-panel[data-room="calls"] .chat-head::after {
	background: var(--ct-accent2);
}

/* Theme dock */
.theme-dock {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 150;
}

.theme-dock-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: rgba(10, 16, 24, 0.92);
	color: #e6edf7;
	font: inherit;
	font-size: 12.5px;
	cursor: pointer;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.theme-dock-toggle:hover {
	border-color: rgba(0, 226, 138, 0.4);
}

.theme-dock-toggle svg {
	width: 15px;
	height: 15px;
	color: #00e28a;
}

.theme-dock-panel {
	position: absolute;
	bottom: 52px;
	left: 0;
	width: 340px;
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 14px;
	background: rgba(10, 16, 24, 0.96);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.theme-dock-panel[hidden] {
	display: none;
}

.theme-dock-head {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 10px;
}

.theme-dock-head strong {
	color: #ffffff;
	font-size: 13px;
}

.theme-dock-head span {
	color: #8494a9;
	font-size: 11px;
}

.theme-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 7px;
}

.theme-swatch {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.03);
	color: #c3cfdf;
	font: inherit;
	font-size: 11.5px;
	text-align: left;
	cursor: pointer;
}

.theme-swatch:hover {
	border-color: rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.06);
}

.theme-swatch.is-active {
	border-color: #00e28a;
	box-shadow: 0 0 0 1px rgba(0, 226, 138, 0.35);
}

.theme-swatch-chip {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 7px;
}

.theme-swatch-midnight .theme-swatch-chip {
	background: linear-gradient(135deg, #26384e, #0b1118);
}

.theme-swatch-emerald .theme-swatch-chip {
	background: linear-gradient(135deg, #1b6a52, #071b14);
}

.theme-swatch-ocean .theme-swatch-chip {
	background: linear-gradient(135deg, #1f5a86, #061726);
}

.theme-swatch-violet .theme-swatch-chip {
	background: linear-gradient(135deg, #5b3fa0, #140a24);
}

.theme-swatch-amber .theme-swatch-chip {
	background: linear-gradient(135deg, #8a5a17, #1e1206);
}

.theme-swatch-graphite .theme-swatch-chip {
	background: linear-gradient(135deg, #4a5563, #101316);
}

.theme-swatch-rose .theme-swatch-chip {
	background: linear-gradient(135deg, #8a2c48, #200a12);
}

.theme-swatch-frosted .theme-swatch-chip {
	background: linear-gradient(135deg, #f4f7fb, #dbe3ee);
}

@media (max-width: 640px) {
	.theme-dock {
		left: 12px;
		bottom: 12px;
	}

	.theme-dock-panel {
		width: min(340px, calc(100vw - 24px));
	}
}

.m4t .chat-disabled {
	max-width: 620px;
	margin: 0 auto;
	padding: 40px;
	border: 1px solid var(--line-2);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.03);
	text-align: center;
}

.m4t .chat-disabled h2 {
	font-size: 24px;
	margin-bottom: 8px;
}

.m4t .chat-disabled p {
	color: var(--muted-2);
}

.m4t .chat-mod-actions {
	display: inline-flex;
	gap: 4px;
	margin-left: 6px;
	opacity: 0;
	transition: opacity 0.15s;
}

.m4t .chat-msg:hover .chat-mod-actions {
	opacity: 1;
}

.m4t .chat-mod {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: transparent;
	color: var(--muted-2);
	cursor: pointer;
}

.m4t .chat-mod:hover {
	border-color: rgba(255, 100, 100, 0.5);
	color: #ff7b7b;
}

.m4t .chat-mod svg {
	width: 12px;
	height: 12px;
}
/* Sound toggle */
.m4t .chat-sound-row {
	display: flex;
	justify-content: center;
	margin-top: 14px;
}

.m4t .chat-sound-toggle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--muted-2);
	font: inherit;
	font-size: 11.5px;
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.m4t .chat-sound-toggle:hover {
	border-color: rgba(0, 226, 138, 0.4);
	background: rgba(0, 226, 138, 0.08);
	color: var(--green);
}

.m4t .chat-sound-toggle.is-muted {
	color: var(--muted);
	opacity: 0.8;
}

.m4t .chat-sound-icon {
	display: inline-flex;
	width: 14px;
	height: 14px;
}

.m4t .chat-sound-icon svg {
	width: 14px;
	height: 14px;
}

.m4t .chat-sound-head {
	flex-shrink: 0;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border-color: rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
	color: #9fb0c5;
}

.m4t .chat-sound-head:hover {
	border-color: rgba(0, 226, 138, 0.45);
	background: rgba(0, 226, 138, 0.12);
	color: var(--green);
}

.m4t .chat-sound-head.is-muted {
	color: #7d8da3;
	opacity: 0.75;
}
/* Likes and top members */
.m4t .account-likes {
	display: block;
	margin-top: 5px;
	color: var(--muted-2);
	font-size: 11.5px;
}

.m4t .account-likes b {
	color: var(--green);
	font-weight: 700;
}

.m4t .likes-board {
	padding-top: 0;
}

.m4t .likes-card {
	max-width: 720px;
	margin: 0 auto;
	padding: 18px;
	border: 1px solid var(--line-2);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.03);
}

.m4t .likes-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}

.m4t .likes-tab {
	padding: 7px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: transparent;
	color: var(--muted-2);
	font: inherit;
	font-size: 12px;
	cursor: pointer;
	transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.m4t .likes-tab:hover {
	border-color: rgba(0, 226, 138, 0.35);
	color: var(--green);
}

.m4t .likes-tab.is-active {
	border-color: rgba(0, 226, 138, 0.5);
	background: rgba(0, 226, 138, 0.12);
	color: var(--green);
}

.m4t .likes-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.m4t .likes-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.02);
}

.m4t .likes-rank {
	width: 22px;
	flex-shrink: 0;
	color: var(--muted-2);
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	text-align: center;
}

.m4t .likes-item:nth-child(1) .likes-rank {
	color: #ffd166;
}

.m4t .likes-item:nth-child(2) .likes-rank {
	color: #cbd5e1;
}

.m4t .likes-item:nth-child(3) .likes-rank {
	color: #d98b5f;
}

.m4t .likes-avatar {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	overflow: hidden;
	border-radius: 50%;
	background: hsl(var(--hue, 150) 60% 52%);
	color: #04120b;
	font-size: 11px;
	font-weight: 700;
}

.m4t .likes-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.m4t .likes-name {
	flex: 1;
	color: var(--text);
	font-size: 13.5px;
	font-weight: 600;
}

.m4t .likes-count {
	color: var(--green);
	font-family: 'JetBrains Mono', monospace;
	font-size: 11.5px;
	white-space: nowrap;
}

.m4t .likes-empty {
	padding: 18px;
	color: var(--muted-2);
	text-align: center;
}

.m4t .likes-empty[hidden] {
	display: none;
}
/* Call Box tabs */
.m4t .calls-tabs {
	display: flex;
	flex-shrink: 0;
	gap: 2px;
	overflow-x: auto;
	padding: 0 12px;
	border-bottom: 1px solid var(--line);
	background: rgba(0, 0, 0, 0.12);
	scrollbar-width: none;
}

.m4t .calls-tabs::-webkit-scrollbar {
	display: none;
}

.m4t .calls-tab {
	position: relative;
	padding: 11px 14px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: var(--muted-2);
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s;
}

.m4t .calls-tab:hover {
	color: var(--text);
}

.m4t .calls-tab.is-active {
	border-bottom-color: var(--green);
	color: var(--green);
}

.m4t .calls-tab.is-active::before {
	position: absolute;
	top: 0;
	left: 50%;
	border: 5px solid transparent;
	border-top-color: var(--green);
	content: '';
	transform: translateX(-50%);
}

.m4t .calls-pane {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

.m4t .calls-pane[hidden] {
	display: none;
}

.m4t .calls-pane[data-calls-pane="market"],
.m4t .calls-pane[data-calls-pane="chart"],
.m4t .calls-pane[data-calls-pane="calendar"] {
	padding: 16px;
	overflow-y: auto;
}

.m4t .calls-quotes {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.m4t .calls-quote {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
}

.m4t .cq-name {
	color: var(--muted-2);
	font-family: 'JetBrains Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.m4t .cq-price {
	color: var(--text);
	font-family: 'JetBrains Mono', monospace;
	font-size: 18px;
}

.m4t .cq-change {
	font-family: 'JetBrains Mono', monospace;
	font-size: 11.5px;
}

.m4t .cq-change.up {
	color: var(--green);
}

.m4t .cq-change.down {
	color: #ff7b7b;
}

.m4t .calls-note {
	margin: 12px 0 0;
	color: var(--muted-2);
	font-size: 11px;
}

.m4t .calls-chart {
	overflow: hidden;
	flex: 1;
	min-height: 360px;
	border-radius: 12px;
	background: #0b1118;
}

.m4t .calls-chart iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 360px;
	border: 0;
}

.m4t .calls-calendar {
	flex: 1;
	min-height: 380px;
}

.m4t .calls-calendar .tradingview-widget-container {
	height: 100%;
	min-height: 380px;
}

.m4t .calls-loading {
	padding: 24px;
	color: var(--muted-2);
	font-size: 12px;
	text-align: center;
}

@media (max-width: 480px) {
	.m4t .calls-quotes {
		grid-template-columns: 1fr;
	}
}

.m4t .calls-chart {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
}

.m4t .calls-chart-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	color: var(--muted-2);
	font-family: 'JetBrains Mono', monospace;
	font-size: 10.5px;
}

.m4t .calls-chart-last {
	font-size: 13px;
	font-weight: 700;
}

.m4t .calls-chart-last small {
	margin-left: 4px;
	font-size: 10px;
	font-weight: 600;
}

.m4t .calls-chart svg {
	display: block;
	flex: 1;
	width: 100%;
	min-height: 280px;
}
/* Call Box pane contrast */
.m4t .cq-price {
	color: var(--ct-text, var(--text));
}

.m4t .cq-name,
.m4t .calls-note {
	color: var(--ct-muted, var(--muted-2));
}

.m4t .calls-quote {
	border-color: var(--ct-border, var(--line));
}

.m4t .calls-chart-head {
	color: #9fb0c5;
}

.m4t .calls-calendar {
	padding: 8px;
	border-radius: 12px;
	background: #0b1118;
}
/* Economic calendar */
.m4t .calls-calendar {
	padding: 0;
	background: transparent;
}

.m4t .econ-day {
	margin-bottom: 10px;
}

.m4t .econ-day-head {
	padding: 8px 4px;
	border-bottom: 1px solid rgba(130, 145, 165, 0.28);
	color: var(--ct-text, var(--text));
	font-size: 12px;
	font-weight: 700;
}

.m4t .econ-row {
	padding: 8px 4px;
	border-bottom: 1px solid rgba(130, 145, 165, 0.28);
}

.m4t .econ-top {
	display: flex;
	align-items: center;
	gap: 8px;
}

.m4t .econ-time {
	flex-shrink: 0;
	width: 40px;
	color: var(--ct-muted, var(--muted-2));
	font-family: 'JetBrains Mono', monospace;
	font-size: 10.5px;
}

.m4t .econ-country {
	flex-shrink: 0;
	min-width: 28px;
	padding: 2px 5px;
	border: 1px solid rgba(130, 145, 165, 0.35);
	border-radius: 4px;
	color: var(--ct-text, var(--text));
	font-family: 'JetBrains Mono', monospace;
	font-size: 9.5px;
	text-align: center;
}

.m4t .econ-title {
	flex: 1;
	color: var(--ct-text, var(--text));
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.35;
}

.m4t .econ-dot {
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #9aa8b8;
}

.m4t .econ-row.imp-1 .econ-dot {
	background: #ff6b6b;
	box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.15);
}

.m4t .econ-row.imp-0 .econ-dot {
	background: #ffc857;
}

.m4t .econ-values {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 5px 0 0 76px;
	color: var(--ct-muted, var(--muted-2));
	font-family: 'JetBrains Mono', monospace;
	font-size: 10.5px;
}

.m4t .econ-values b {
	margin-right: 3px;
	color: var(--ct-text, var(--text));
	font-size: 9px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.m4t .econ-values .is-actual {
	color: var(--ct-text, var(--text));
}

.m4t .econ-values .is-actual b {
	color: var(--green);
}

.m4t .econ-empty {
	padding: 20px;
	color: var(--ct-muted, var(--muted-2));
	text-align: center;
	font-size: 12px;
}
/* Live presence */
.m4t .chat-presence-row {
	grid-column: 2;
	justify-self: end;
	margin-top: 8px;
}

.m4t .chat-presence {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--muted-2);
	font-size: 11.5px;
}

.m4t .chat-presence b {
	color: var(--text);
	font-weight: 700;
}

.m4t .presence-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--green);
	animation: m4t-presence-pulse 2s ease-out infinite;
}

@keyframes m4t-presence-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(0, 226, 138, 0.45);
	}
	70% {
		box-shadow: 0 0 0 6px rgba(0, 226, 138, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(0, 226, 138, 0);
	}
}

@media (max-width: 900px) {
	.m4t .chat-presence-row {
		grid-column: 1;
		justify-self: start;
	}
}
/* Presence readability */
.m4t .chat-presence-row {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	max-width: 100%;
}

.m4t .chat-presence {
	padding: 7px 12px;
	color: #c3cfdf;
	font-size: 12.5px;
}

.m4t .chat-presence b {
	color: #ffffff;
}

.m4t .chat-presence [data-presence-total] {
	color: var(--green);
}

.m4t .chat-presence-names {
	max-width: 520px;
	color: #9fb0c5;
	font-size: 12px;
	line-height: 1.5;
	text-align: right;
}

.m4t .presence-names-label {
	color: #e6edf7;
	font-weight: 600;
}

@media (max-width: 900px) {
	.m4t .chat-presence-row {
		align-items: flex-start;
	}

	.m4t .chat-presence-names {
		text-align: left;
	}
}
/* Admin traffic monitor */
.traffic-monitor {
	position: fixed;
	top: 96px;
	right: 16px;
	z-index: 140;
	width: 300px;
	font-family: inherit;
}

.traffic-card {
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 14px;
	background: rgba(10, 16, 24, 0.95);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.traffic-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.traffic-title {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #eaf0f8;
	font-size: 12.5px;
	font-weight: 700;
}

.traffic-title b {
	color: #35f0a9;
	font-family: 'JetBrains Mono', monospace;
}

.traffic-live-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #00e28a;
	animation: m4t-presence-pulse 2s ease-out infinite;
}

.traffic-toggle {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.05);
	color: #c3cfdf;
	font: inherit;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}

.traffic-toggle:hover {
	border-color: rgba(0, 226, 138, 0.4);
	color: #00e28a;
}

.traffic-body {
	max-height: 62vh;
	overflow-y: auto;
	padding: 8px;
	scrollbar-width: thin;
}

.traffic-monitor.is-collapsed .traffic-body {
	display: none;
}

.traffic-empty {
	margin: 0;
	padding: 14px 6px;
	color: #8494a9;
	font-size: 11.5px;
	text-align: center;
}

.traffic-empty[hidden] {
	display: none;
}

.traffic-row {
	padding: 8px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.traffic-row:last-child {
	border-bottom: 0;
}

.traffic-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.traffic-name {
	overflow: hidden;
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.traffic-badge {
	flex-shrink: 0;
	padding: 1px 5px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 4px;
	color: #9fb0c5;
	font-family: 'JetBrains Mono', monospace;
	font-size: 8.5px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.traffic-badge.is-member {
	border-color: rgba(0, 226, 138, 0.4);
	color: #35f0a9;
}

.traffic-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin-top: 3px;
	color: #9fb0c5;
	font-size: 10.5px;
}

.traffic-ip {
	font-family: 'JetBrains Mono', monospace;
	color: #c3cfdf;
}

.traffic-loc {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.traffic-ago {
	margin-top: 3px;
	color: #7d8da3;
	font-family: 'JetBrains Mono', monospace;
	font-size: 9.5px;
}

@media (max-width: 900px) {
	.traffic-monitor {
		top: 80px;
		right: 12px;
		width: calc(100vw - 24px);
		max-width: 320px;
	}
}
/* Structured calls */
.chat-call-form .chat-call-row {
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
}

.chat-call-form .chat-call-field {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	color: var(--ct-muted, var(--muted-2));
	font-size: 9.5px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.chat-call-form .chat-call-field select,
.chat-call-form .chat-call-field input {
	width: 100%;
	padding: 7px 8px;
	border: 1px solid var(--ct-input-border, rgba(255, 255, 255, 0.16));
	border-radius: 7px;
	background: var(--ct-input, rgba(6, 10, 16, 0.55));
	color: var(--ct-input-text, #e6edf7);
	font: inherit;
	font-size: 12px;
	text-transform: none;
}

.chat-call-form .chat-call-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 2px;
}

.chat-call-card {
	min-width: 210px;
	margin-top: 5px;
	padding: 10px;
	border: 1px solid var(--ct-border, var(--line-2));
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
}

.chat-call-head {
	display: flex;
	align-items: center;
	gap: 8px;
}

.chat-call-side {
	padding: 2px 6px;
	border-radius: 4px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.05em;
}

.chat-call-side.buy {
	background: rgba(0, 226, 138, 0.16);
	color: #35f0a9;
}

.chat-call-side.sell {
	background: rgba(255, 107, 107, 0.16);
	color: #ff8a8a;
}

.chat-call-name {
	color: var(--ct-text, var(--text));
	font-size: 12.5px;
	font-weight: 700;
}

.chat-call-state {
	margin-left: auto;
	color: var(--ct-muted, var(--muted-2));
	font-family: 'JetBrains Mono', monospace;
	font-size: 9px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.chat-call-card[data-status="target"] .chat-call-state {
	color: #35f0a9;
}

.chat-call-card[data-status="sl"] .chat-call-state {
	color: #ff8a8a;
}

.chat-call-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
	margin-top: 8px;
}

.chat-call-grid small {
	display: block;
	color: var(--ct-muted, var(--muted-2));
	font-family: 'JetBrains Mono', monospace;
	font-size: 8.5px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.chat-call-grid b {
	color: var(--ct-text, var(--text));
	font-family: 'JetBrains Mono', monospace;
	font-size: 11.5px;
}

.chat-call-foot {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}

.chat-call-pl {
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}

.chat-call-pl.up {
	color: #35f0a9;
}

.chat-call-pl.down {
	color: #ff8a8a;
}

.chat-call-progress {
	overflow: hidden;
	flex: 1;
	height: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
}

.chat-call-progress i {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: #35f0a9;
	transition: width 0.4s ease;
}

.chat-call-card[data-status="sl"] .chat-call-progress i {
	background: #ff8a8a;
}

@media (max-width: 480px) {
	.chat-call-card {
		min-width: 0;
	}

	.chat-call-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
/* Call card theme contrast */
.m4t .chat-call-card {
	background: var(--ct-chip-bg, #ffffff);
	border-color: var(--ct-border, var(--line-2));
}

.m4t .chat-call-grid b {
	color: var(--ct-text, var(--text));
}

.m4t .chat-call-state {
	color: var(--ct-muted, var(--muted-2));
}
/* Call instrument typeahead */
.m4t .chat-call-instrument-field {
	position: relative;
}

.m4t .call-instrument-box {
	position: relative;
}

.m4t .call-instrument-results {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 25;
	max-height: 220px;
	overflow-y: auto;
	margin-top: 4px;
	padding: 4px;
	border: 1px solid var(--ct-border, rgba(255, 255, 255, 0.18));
	border-radius: 8px;
	background: var(--ct-popup, #121821);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.m4t .call-instrument-results[hidden] {
	display: none;
}

.m4t .call-instrument-results button {
	display: block;
	width: 100%;
	padding: 7px 8px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--ct-text, #e6edf7);
	font: inherit;
	font-size: 12px;
	text-align: left;
	cursor: pointer;
}

.m4t .call-instrument-results button:hover,
.m4t .call-instrument-results button:focus {
	background: rgba(0, 226, 138, 0.14);
	color: var(--ct-text, #e6edf7);
	outline: none;
}
/* SL / target points or value */
.m4t .chat-call-form .call-input-mode {
	display: flex;
	gap: 5px;
}

.m4t .chat-call-form .call-input-mode input {
	flex: 1;
	min-width: 0;
}

.m4t .chat-call-form .call-input-mode select {
	flex: 0 0 82px;
	width: 82px;
	padding: 7px 4px;
}
/* Call form instrument type filter + hours note */
.m4t .chat-call-form .call-instrument-type {
	width: 100%;
	margin-top: 4px;
	padding: 5px 6px;
	border: 1px solid var(--ct-input-border, rgba(255,255,255,.16));
	border-radius: 6px;
	background: var(--ct-input, rgba(6,10,16,.55));
	color: var(--ct-input-text, #e6edf7);
	font: inherit;
	font-size: 11px;
}

.m4t .call-hours-note {
	margin: 8px 0 0;
	color: var(--ct-muted, var(--muted-2));
	font-size: 10.5px;
	line-height: 1.4;
}

@media (max-width: 640px) {
	.m4t .chat-call-row,
	.m4t .chat-call-row-3 {
		flex-direction: column;
		gap: 8px;
	}

	.m4t .chat-call-row .chat-call-field,
	.m4t .chat-call-row-3 .chat-call-field {
		width: 100%;
	}

	.m4t .chat-call-form .chat-call-field input,
	.m4t .chat-call-form .chat-call-field select {
		min-height: 42px;
		font-size: 13px;
	}

	.m4t .chat-call-form .call-input-mode select {
		flex: 0 0 96px;
		width: 96px;
	}

	.m4t .chat-call-form .chat-call-actions .chat-send {
		width: 100%;
	}
}
.m4t .chat-call-type {
	padding: 2px 5px;
	border: 1px solid var(--ct-border, rgba(255,255,255,.14));
	border-radius: 4px;
	color: var(--ct-muted, var(--muted-2));
	font-family: 'JetBrains Mono', monospace;
	font-size: 8.5px;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.m4t .chat-call-card[data-status="expired"] .chat-call-state {
	color: var(--ct-muted, var(--muted-2));
}

.m4t .chat-call-card[data-status="expired"] .chat-call-progress i {
	background: var(--ct-muted, #8fa0b5);
}
