.pbchat {
	--pbchat-width: 50%;
	--pbchat-accent: #4fea9f;
	--pbchat-accent-2: #22b877;
	--pbchat-accent-soft: rgba(79, 234, 159, 0.14);
	--pbchat-accent-line: rgba(79, 234, 159, 0.4);
	--pbchat-on: #08150f;
	--pbchat-panel: #16161b;
	--pbchat-panel-2: #1c1c23;
	--pbchat-card: #24242d;
	--pbchat-border: rgba(255, 255, 255, 0.07);
	--pbchat-text: #ececf3;
	--pbchat-muted: rgba(255, 255, 255, 0.45);
}

.pbchat--hidden {
	display: none !important;
}

.pbchat *,
.pbchat *::before,
.pbchat *::after {
	box-sizing: border-box;
}

.pbchat__tab {
	position: fixed;
	z-index: 9998;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border: 1px solid var(--pbchat-border);
	background: linear-gradient(135deg, var(--pbchat-accent), var(--pbchat-accent-2));
	color: var(--pbchat-on);
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 10px 28px rgba(34, 184, 119, 0.35);
	transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.pbchat__tab i {
	font-size: 19px;
}

.pbchat--right .pbchat__tab {
	right: 0;
	border-radius: 14px 0 0 14px;
}

.pbchat--left .pbchat__tab {
	left: 0;
	border-radius: 0 14px 14px 0;
}

.pbchat--right .pbchat__tab:hover {
	transform: translateX(-3px);
}

.pbchat--left .pbchat__tab:hover {
	transform: translateX(3px);
}

.pbchat--top .pbchat__tab {
	top: 90px;
}

.pbchat--middle .pbchat__tab {
	top: 50%;
	transform: translateY(-50%);
}

.pbchat--middle.pbchat--right .pbchat__tab:hover {
	transform: translateY(-50%) translateX(-3px);
}

.pbchat--middle.pbchat--left .pbchat__tab:hover {
	transform: translateY(-50%) translateX(3px);
}

.pbchat--bottom .pbchat__tab {
	bottom: 24px;
}

.pbchat.is-open .pbchat__tab {
	opacity: 0;
	pointer-events: none;
}

.pbchat__tab--glass {
	background: rgba(255, 255, 255, 0.07);
	backdrop-filter: blur(10px);
	border-color: rgba(255, 255, 255, 0.16);
	color: #fff;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32);
}

.pbchat__tab--solid {
	background: var(--pbchat-accent-2);
	border-color: transparent;
}

.pbchat__tab--outline {
	background: rgba(16, 20, 18, 0.86);
	border: 1.5px solid var(--pbchat-accent);
	color: var(--pbchat-accent);
	box-shadow: none;
}

.pbchat__tab--neon {
	background: #0d1a14;
	border: 1.5px solid var(--pbchat-accent);
	color: var(--pbchat-accent);
	box-shadow: 0 0 12px rgba(79, 234, 159, 0.45), inset 0 0 12px rgba(79, 234, 159, 0.14);
}

.pbchat__tab--minimal {
	background: rgba(20, 24, 22, 0.9);
	border-color: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.82);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.pbchat--right .pbchat__tab--shape-pill {
	border-radius: 999px 0 0 999px;
}

.pbchat--left .pbchat__tab--shape-pill {
	border-radius: 0 999px 999px 0;
}

.pbchat__tab--shape-square {
	border-radius: 0 !important;
}

.pbchat__tab--sm {
	padding: 9px 12px;
	font-size: 12px;
	gap: 6px;
}

.pbchat__tab--lg {
	padding: 15px 20px;
	font-size: 14.5px;
	gap: 10px;
}

.pbchat__tab--vertical {
	flex-direction: column;
	gap: 9px;
	padding: 16px 11px;
}

.pbchat__tab--vertical .pbchat__tab-label {
	writing-mode: vertical-rl;
	text-orientation: mixed;
	letter-spacing: 0.06em;
	white-space: nowrap;
}

.pbchat--left .pbchat__tab--vertical .pbchat__tab-label {
	transform: rotate(180deg);
}

.pbchat__tab-dot {
	display: none;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 999px;
	background: #ef4444;
	color: #fff;
	font-size: 10.5px;
	font-weight: 800;
	line-height: 19px;
	text-align: center;
}

.pbchat__tab-dot.is-visible {
	display: inline-block;
	animation: pbchatPulse 1.8s ease-in-out infinite;
}

@keyframes pbchatPulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
	50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.pbchat__overlay {
	position: fixed;
	inset: 0;
	z-index: 9998;
	background: rgba(6, 6, 10, 0.55);
	backdrop-filter: blur(3px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s;
}

.pbchat.is-open .pbchat__overlay {
	opacity: 1;
	visibility: visible;
}

.pbchat__panel {
	position: fixed;
	top: 0;
	bottom: 0;
	z-index: 9999;
	width: var(--pbchat-width);
	max-width: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--pbchat-panel);
	border-left: 1px solid var(--pbchat-border);
	box-shadow: -18px 0 50px rgba(0, 0, 0, 0.45);
	transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
	color: var(--pbchat-text);
	font-size: 13.5px;
}

.pbchat__panel::before {
	content: '';
	position: absolute;
	top: -120px;
	right: -80px;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: var(--pbchat-accent);
	opacity: 0.07;
	filter: blur(70px);
	pointer-events: none;
}

.pbchat--right .pbchat__panel {
	right: 0;
	transform: translateX(100%);
}

.pbchat--left .pbchat__panel {
	left: 0;
	border-left: none;
	border-right: 1px solid var(--pbchat-border);
	transform: translateX(-100%);
}

.pbchat.is-open .pbchat__panel {
	transform: translateX(0);
}

.pbchat__head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	flex: 0 0 auto;
}

.pbchat__head-main {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.pbchat__head-icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background: linear-gradient(135deg, var(--pbchat-accent), var(--pbchat-accent-2));
	color: var(--pbchat-on);
	font-size: 18px;
	flex: 0 0 auto;
}

.pbchat__live {
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #22c55e;
	border: 2px solid var(--pbchat-panel);
}

.pbchat__head-titles {
	min-width: 0;
	line-height: 1.2;
}

.pbchat__head-title {
	font-size: 14px;
	font-weight: 800;
	color: #fff;
}

.pbchat__head-sub {
	overflow: hidden;
	font-size: 11px;
	color: var(--pbchat-muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pbchat__head-actions {
	display: flex;
	gap: 4px;
	flex: 0 0 auto;
}

.pbchat__icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.65);
	font-size: 16px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.pbchat__icon-btn:hover {
	background: rgba(255, 255, 255, 0.11);
	color: #fff;
}

.pbchat__icon-btn.is-off {
	color: rgba(255, 255, 255, 0.28);
}

.pbchat__rooms {
	position: relative;
	display: flex;
	gap: 4px;
	margin: 0 12px 8px;
	padding: 3px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	overflow-x: auto;
	flex: 0 0 auto;
	scrollbar-width: none;
}

.pbchat__rooms:empty {
	display: none;
}

.pbchat__rooms::-webkit-scrollbar {
	display: none;
}

.pbchat__room {
	flex: 1 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 30px;
	padding: 0 12px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: rgba(255, 255, 255, 0.55);
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}

.pbchat__room i {
	font-size: 15px;
}

.pbchat__room:hover {
	color: #fff;
}

.pbchat__room.is-active {
	background: var(--pbchat-card);
	color: #fff;
	box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.6);
}

.pbchat__room.is-active i {
	color: var(--pbchat-accent);
}

.pbchat__pinned {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 12px 6px;
	padding: 6px 6px 6px 10px;
	border-radius: 11px;
	background: rgba(240, 180, 41, 0.1);
	flex: 0 0 auto;
	cursor: pointer;
}

.pbchat__pinned::before {
	content: '';
	position: absolute;
	left: 0;
	top: 7px;
	bottom: 7px;
	width: 3px;
	border-radius: 3px;
	background: #f0b429;
}

.pbchat__pinned-icon {
	color: #f0b429;
	font-size: 15px;
	flex: 0 0 auto;
}

.pbchat__pinned-body {
	min-width: 0;
	flex: 1;
	line-height: 1.25;
}

.pbchat__pinned-author {
	display: block;
	font-size: 11px;
	font-weight: 800;
	color: #f0b429;
}

.pbchat__pinned-text {
	display: block;
	overflow: hidden;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.75);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pbchat__pinned-close {
	width: 24px;
	height: 24px;
	font-size: 13px;
}

.pbchat__stage {
	position: relative;
	flex: 1;
	min-height: 0;
	display: flex;
	border-top: 1px solid var(--pbchat-border);
}

.pbchat__feed {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 10px 12px 8px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.pbchat__feed::-webkit-scrollbar {
	width: 4px;
}

.pbchat__feed::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
}

.pbchat__older {
	align-self: center;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 6px;
	padding: 4px 11px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	color: var(--pbchat-muted);
	font-size: 11.5px;
	font-weight: 700;
	cursor: pointer;
}

.pbchat__empty {
	margin: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	color: var(--pbchat-muted);
	font-size: 12.5px;
	text-align: center;
}

.pbchat__empty-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 18px;
	background: var(--pbchat-accent-soft);
	color: var(--pbchat-accent);
	font-size: 26px;
}

.pbchat__msg {
	position: relative;
	display: flex;
	align-items: flex-end;
	gap: 7px;
	max-width: 88%;
	margin-top: 8px;
	animation: pbchatIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.pbchat__msg:first-child,
.pbchat__older + .pbchat__msg {
	margin-top: 0;
}

.pbchat__msg--cont {
	margin-top: 0;
}

.pbchat__msg.is-leaving {
	opacity: 0;
	transform: scale(0.96);
}

.pbchat__msg.is-flash .pbchat__bubble {
	box-shadow: 0 0 0 2px #f0b429;
}

@keyframes pbchatIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

.pbchat__msg--own {
	margin-left: auto;
	justify-content: flex-end;
}

.pbchat__msg-avatar {
	position: relative;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.pbchat__msg--cont .pbchat__msg-avatar {
	visibility: hidden;
	height: 1px;
}

.pbchat__msg-avatar-img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	background: rgba(255, 255, 255, 0.06);
}

.pbchat__msg-frame {
	position: absolute;
	inset: -1px;
	width: calc(100% + 2px);
	height: calc(100% + 2px);
	object-fit: contain;
	pointer-events: none;
}

.pbchat__bot-face {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: linear-gradient(135deg, #a497ff, #6f5cf2);
	color: #fff;
	font-size: 16px;
}

.pbchat__msg-avatar--bot .pbchat__msg-avatar-img {
	border-radius: 50%;
}

.pbchat__msg-main {
	position: relative;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.pbchat__msg--own .pbchat__msg-main {
	align-items: flex-end;
}

.pbchat__msg-head {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0 0 2px 10px;
	max-width: 100%;
	min-width: 0;
	line-height: 1.3;
}

.pbchat__msg--cont .pbchat__msg-head {
	display: none;
}

.pbchat__msg-login {
	overflow: hidden;
	max-width: 160px;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pbchat__msg-login:hover {
	text-decoration: underline;
}

.pbchat__badges {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	zoom: 0.78;
	flex: 0 0 auto;
}

.pbchat__badges img {
	max-height: 18px;
	width: auto;
}

.pbchat__badges .premium-login-badge {
	margin: 0 0 0 2px !important;
}

.pbchat__tag {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 0 5px;
	border-radius: 5px;
	font-size: 9.5px;
	font-weight: 800;
	line-height: 16px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.pbchat__tag--bot {
	background: rgba(139, 123, 255, 0.2);
	color: #b7acff;
}

.pbchat__tag i {
	font-size: 11px;
}

.pbchat__msg-date {
	font-size: 10px;
	color: rgba(255, 255, 255, 0.32);
}

.pbchat__bubble {
	position: relative;
	max-width: 100%;
	padding: 6px 10px 6px 11px;
	border-radius: 16px 16px 16px 5px;
	background: var(--pbchat-card);
	font-size: 13.5px;
	line-height: 1.42;
	color: var(--pbchat-text);
	word-break: break-word;
	overflow-wrap: anywhere;
}

.pbchat__msg--cont:not(.pbchat__msg--own) .pbchat__bubble {
	border-radius: 5px 16px 16px 5px;
}

.pbchat__time {
	float: right;
	position: relative;
	top: 5px;
	margin: 0 0 0 10px;
	color: rgba(255, 255, 255, 0.36);
	font-size: 10px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	user-select: none;
}

.pbchat__bubble img {
	max-width: 100%;
	border-radius: 9px;
}

.pbchat__bubble .g_sticker,
.pbchat__bubble img.g_sticker,
.pbchat__bubble video.g_sticker {
	width: auto !important;
	height: auto !important;
	max-width: var(--pbchat-sticker, 120px) !important;
	max-height: var(--pbchat-sticker, 120px) !important;
	border-radius: 10px;
	display: block;
}

.pbchat__bubble--sticker {
	padding: 0;
	background: none !important;
	box-shadow: none !important;
}

.pbchat__bubble--sticker .pbchat__time {
	float: none;
	display: inline-block;
	top: 0;
	margin: 4px 0 0;
	padding: 1px 6px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
}

.pbchat__msg--own .pbchat__bubble {
	border-radius: 16px 16px 5px 16px;
	background: linear-gradient(135deg, var(--pbchat-accent), var(--pbchat-accent-2));
	color: var(--pbchat-on);
	box-shadow: 0 6px 16px -10px rgba(79, 234, 159, 0.9);
}

.pbchat__msg--own.pbchat__msg--cont .pbchat__bubble {
	border-radius: 16px 5px 5px 16px;
}

.pbchat__msg--own .pbchat__time {
	color: rgba(8, 21, 15, 0.55);
}

.pbchat__msg--own .pbchat__bubble--sticker .pbchat__time {
	color: #fff;
}

.pbchat__msg--own .pbchat__mention-tag {
	color: var(--pbchat-on);
	text-decoration: underline;
}

.pbchat__msg--mention .pbchat__bubble {
	background: linear-gradient(135deg, rgba(240, 180, 41, 0.2), rgba(240, 180, 41, 0.06)), var(--pbchat-card);
	box-shadow: inset 3px 0 0 #f0b429;
}

.pbchat__msg--pending .pbchat__bubble {
	opacity: 0.65;
}

.pbchat__msg--premium:not(.pbchat__msg--own) .pbchat__bubble {
	box-shadow: 0 0 12px -4px rgba(240, 180, 41, 0.45);
}

.pbchat__msg--premium:not(.pbchat__msg--own) .pbchat__bubble::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1.5px;
	background: conic-gradient(from var(--pbchat-ring, 0deg), #f0b429, #ffe08a, #4fea9f, #56d6ff, #b98bff, #ff9ad5, #f0b429);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
	pointer-events: none;
	animation: pbchatRing 4s linear infinite;
}

@property --pbchat-ring {
	syntax: '<angle>';
	initial-value: 0deg;
	inherits: false;
}

@keyframes pbchatRing {
	to { --pbchat-ring: 360deg; }
}

.pbchat__msg--bot {
	max-width: 94%;
}

.pbchat__msg--bot .pbchat__bubble {
	padding: 0;
	background: transparent;
	box-shadow: none;
}

.pbcb {
	position: relative;
	min-width: 200px;
	padding: 8px 11px;
	border: 1px solid rgba(139, 123, 255, 0.3);
	border-radius: 14px 14px 14px 5px;
	background: linear-gradient(145deg, rgba(139, 123, 255, 0.18), rgba(139, 123, 255, 0.04) 60%), var(--pbchat-card);
	color: var(--pbchat-text);
	overflow: hidden;
}

.pbchat__msg--cont .pbcb {
	border-top-left-radius: 5px;
}

.pbcb__head {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
	font-size: 11.5px;
}

.pbcb__head i {
	color: #b7acff;
	font-size: 15px;
}

.pbcb__head b {
	color: #d7d0ff;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 10.5px;
}

.pbcb__head em {
	margin-left: auto;
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.65);
	font-size: 10px;
	font-style: normal;
	font-weight: 700;
	line-height: 17px;
}

.pbcb__prompt {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
}

.pbcb__prompt--big {
	font-size: 19px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.pbcb__prompt--letters {
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.14em;
	color: #d7d0ff;
}

.pbcb__foot {
	margin-top: 5px;
	color: rgba(255, 255, 255, 0.55);
	font-size: 11px;
}

.pbcb__foot b {
	color: var(--pbchat-accent);
}

.pbcb--hint,
.pbcb--reveal {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	padding: 6px 10px;
	font-size: 12.5px;
}

.pbcb--hint i {
	font-size: 16px;
	color: #f0c14b;
}

.pbcb--hint b,
.pbcb--reveal b {
	color: #fff;
	letter-spacing: 0.04em;
}

.pbcb--reveal {
	border-color: rgba(255, 255, 255, 0.1);
	background: var(--pbchat-card);
	color: rgba(255, 255, 255, 0.7);
}

.pbcb--reveal i {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.45);
}

.pbcb--win {
	border-color: rgba(240, 180, 41, 0.45);
	background: linear-gradient(145deg, rgba(240, 180, 41, 0.22), rgba(240, 180, 41, 0.04) 70%), var(--pbchat-card);
	animation: pbcbWin 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.pbcb--win .pbcb__head i,
.pbcb--win .pbcb__head b {
	color: #ffd56b;
}

@keyframes pbcbWin {
	0% { transform: scale(0.95); }
	60% { transform: scale(1.02); }
	100% { transform: none; }
}

.pbcb__rows {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.pbcb__row {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 3px 6px;
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.05);
	font-size: 12px;
}

.pbcb__place {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.08);
	font-size: 10.5px;
	font-weight: 800;
}

.pbcb__row:first-child .pbcb__place {
	background: rgba(240, 180, 41, 0.3);
	color: #ffd56b;
}

.pbcb__login {
	font-weight: 700;
	color: #fff;
}

.pbcb__score {
	margin-left: auto;
	color: rgba(255, 255, 255, 0.5);
	font-size: 11px;
}

.pbcb__cmds {
	margin-top: 5px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 11.5px;
	line-height: 1.9;
}

.pbcb__cmds code {
	padding: 1px 6px;
	border-radius: 5px;
	background: rgba(139, 123, 255, 0.22);
	color: #d7d0ff;
	font-size: 11px;
}

.pbchat__reactions {
	display: flex;
	gap: 3px;
	margin-top: 2px;
}

.pbchat__reactions.is-empty {
	position: absolute;
	right: -6px;
	bottom: -10px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.pbchat__msg--own .pbchat__reactions.is-empty {
	right: auto;
	left: -6px;
}

.pbchat__msg:hover .pbchat__reactions.is-empty {
	opacity: 1;
	pointer-events: auto;
}

.pbchat__reaction {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	height: 20px;
	padding: 0 7px;
	border: 0;
	border-radius: 999px;
	background: var(--pbchat-panel-2);
	color: rgba(255, 255, 255, 0.6);
	font-size: 10.5px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 0 0 1px var(--pbchat-border);
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.pbchat__reaction i {
	font-size: 12px;
}

.pbchat__reaction:hover:not(:disabled) {
	color: #fff;
}

.pbchat__reaction:active:not(:disabled) {
	transform: scale(0.9);
}

.pbchat__reaction:disabled {
	cursor: default;
}

.pbchat__reaction.is-empty {
	display: none;
}

.pbchat__reactions.is-empty .pbchat__reaction:not(:disabled),
.pbchat__msg:hover .pbchat__reaction.is-empty:not(:disabled) {
	display: inline-flex;
}

.pbchat__reaction.is-active[data-value="1"] {
	background: var(--pbchat-accent-soft);
	color: var(--pbchat-accent);
	box-shadow: 0 0 0 1px var(--pbchat-accent-line);
}

.pbchat__reaction.is-active[data-value="-1"] {
	background: rgba(248, 113, 113, 0.14);
	color: #f87171;
	box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.4);
}

.pbchat__msg-tools {
	position: absolute;
	top: -14px;
	right: 4px;
	z-index: 3;
	display: flex;
	gap: 1px;
	padding: 2px;
	border: 1px solid var(--pbchat-border);
	border-radius: 10px;
	background: var(--pbchat-panel-2);
	box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.8);
	opacity: 0;
	transform: translateY(3px);
	pointer-events: none;
	transition: opacity 0.14s ease, transform 0.14s ease;
}

.pbchat__msg--own .pbchat__msg-tools {
	right: auto;
	left: 4px;
}

.pbchat__msg:hover .pbchat__msg-tools {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.pbchat__msg-tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: rgba(255, 255, 255, 0.65);
	font-size: 13px;
	cursor: pointer;
}

.pbchat__msg-tool:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.pbchat__msg-tool.is-danger:hover {
	background: rgba(248, 113, 113, 0.16);
	color: #f87171;
}

.pbchat__loader {
	margin: auto;
	display: flex;
	gap: 5px;
}

.pbchat__loader span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--pbchat-accent);
	animation: pbchatBounce 1s infinite ease-in-out;
}

.pbchat__loader span:nth-child(2) {
	animation-delay: 0.15s;
}

.pbchat__loader span:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes pbchatBounce {
	0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
	40% { transform: scale(1); opacity: 1; }
}

.pbchat__jump {
	position: absolute;
	right: 12px;
	bottom: 10px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-width: 34px;
	height: 34px;
	padding: 0 9px;
	border: 1px solid var(--pbchat-border);
	border-radius: 999px;
	background: var(--pbchat-panel-2);
	color: #fff;
	font-size: 11.5px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.8);
}

.pbchat__jump i {
	font-size: 19px;
}

.pbchat__jump.has-count {
	background: linear-gradient(135deg, var(--pbchat-accent), var(--pbchat-accent-2));
	color: var(--pbchat-on);
	border-color: transparent;
}

.pbchat__gamebar {
	position: relative;
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 10px 6px;
	padding: 7px 10px;
	border: 1px solid rgba(139, 123, 255, 0.35);
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(139, 123, 255, 0.22), rgba(139, 123, 255, 0.06));
	overflow: hidden;
	flex: 0 0 auto;
	cursor: text;
	animation: pbchatIn 0.25s ease;
}

.pbchat__gamebar-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 9px;
	background: linear-gradient(135deg, #a497ff, #6f5cf2);
	color: #fff;
	font-size: 16px;
	flex: 0 0 auto;
}

.pbchat__gamebar-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
	line-height: 1.25;
}

.pbchat__gamebar-text b {
	color: #fff;
	font-size: 12.5px;
	font-weight: 800;
}

.pbchat__gamebar-text em {
	overflow: hidden;
	color: rgba(255, 255, 255, 0.6);
	font-size: 11px;
	font-style: normal;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pbchat__gamebar-time {
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 11.5px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	flex: 0 0 auto;
}

.pbchat__gamebar.is-ending .pbchat__gamebar-time {
	background: rgba(248, 113, 113, 0.3);
	animation: pbchatPulse 1.2s infinite;
}

.pbchat__gamebar-progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: linear-gradient(90deg, #a497ff, var(--pbchat-accent));
	transform-origin: left center;
	transition: transform 1s linear;
}

.pbchat__typing {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 0 16px 4px;
	color: var(--pbchat-muted);
	font-size: 11px;
	flex: 0 0 auto;
}

.pbchat__typing-dots {
	display: inline-flex;
	gap: 3px;
}

.pbchat__typing-dots span {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--pbchat-accent);
	animation: pbchatTyping 1.2s infinite ease-in-out;
}

.pbchat__typing-dots span:nth-child(2) {
	animation-delay: 0.18s;
}

.pbchat__typing-dots span:nth-child(3) {
	animation-delay: 0.36s;
}

@keyframes pbchatTyping {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
	30% { transform: translateY(-3px); opacity: 1; }
}

.pbchat__mentions {
	display: flex;
	flex-direction: column;
	gap: 1px;
	margin-bottom: 6px;
	padding: 4px;
	border: 1px solid var(--pbchat-border);
	border-radius: 13px;
	background: var(--pbchat-panel);
	max-height: 220px;
	overflow-y: auto;
	box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.9);
	animation: pbchatIn 0.16s ease;
}

.pbchat__popup-title {
	padding: 4px 8px 5px;
	color: var(--pbchat-muted);
	font-size: 10.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.pbchat__mention {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 6px 9px;
	border: none;
	border-radius: 9px;
	background: none;
	color: rgba(255, 255, 255, 0.78);
	font-size: 12.5px;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.pbchat__mention > i {
	color: var(--pbchat-accent);
}

.pbchat__mention:hover,
.pbchat__mention.is-active {
	background: var(--pbchat-accent-soft);
	color: #fff;
}

.pbchat__cmd-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 9px;
	background: rgba(139, 123, 255, 0.2);
	color: #c9c1ff;
	font-size: 16px;
	flex: 0 0 auto;
}

.pbchat__cmd-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}

.pbchat__cmd-text b {
	color: #fff;
	font-size: 12.5px;
}

.pbchat__cmd-text em {
	overflow: hidden;
	color: rgba(255, 255, 255, 0.5);
	font-size: 11px;
	font-style: normal;
	font-weight: 500;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pbchat__cmd.is-active {
	background: rgba(139, 123, 255, 0.16);
}

.pbchat__mention-tag {
	color: var(--pbchat-accent);
	font-weight: 700;
}

.pbchat__mention-tag.is-me {
	padding: 0 4px;
	border-radius: 5px;
	background: rgba(240, 180, 41, 0.2);
	color: #ffd56b;
}

.pbchat__composer {
	flex: 0 0 auto;
	padding: 6px 10px 10px;
}

.pbchat__editing {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 6px;
	padding: 6px 10px;
	border-left: 3px solid var(--pbchat-accent);
	border-radius: 8px;
	background: var(--pbchat-accent-soft);
	color: rgba(255, 255, 255, 0.78);
	font-size: 11.5px;
	font-weight: 700;
}

.pbchat__editing-cancel {
	margin-left: auto;
	border: none;
	background: none;
	color: #f87171;
	font-size: 11.5px;
	font-weight: 700;
	cursor: pointer;
}

.pbchat__input-row {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	padding: 4px;
	border: 1px solid var(--pbchat-border);
	border-radius: 16px;
	background: var(--pbchat-panel-2);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pbchat__input-row:focus-within {
	border-color: var(--pbchat-accent-line);
	box-shadow: 0 0 0 3px rgba(79, 234, 159, 0.1);
}

.pbchat__tool-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 11px;
	background: transparent;
	color: rgba(255, 255, 255, 0.5);
	font-size: 20px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.pbchat__tool-btn:hover {
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
}

.pbchat__field {
	position: relative;
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: flex-end;
}

.pbchat__input {
	flex: 1;
	min-width: 0;
	min-height: 36px;
	max-height: 130px;
	padding: 8px 4px 8px 8px;
	border: 0;
	background: transparent;
	color: var(--pbchat-text);
	font-size: 14px;
	line-height: 1.4;
	resize: none;
	outline: none;
}

.pbchat__input::placeholder {
	color: rgba(255, 255, 255, 0.32);
}

.pbchat__field-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 36px;
	border: 0;
	background: none;
	color: rgba(255, 255, 255, 0.42);
	font-size: 18px;
	cursor: pointer;
	transition: color 0.15s ease;
}

.pbchat__field-btn:hover,
.pbchat__field-btn.is-active {
	color: var(--pbchat-accent);
}

.pbchat__field-btn#pbchat_cmd_btn:hover,
.pbchat__field-btn#pbchat_cmd_btn.is-active {
	color: #b7acff;
}

.pbchat__tool-btn.is-pbsm-open {
	color: var(--pbchat-accent);
	background: var(--pbchat-accent-soft);
}

.pbchat__send {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.35);
	font-size: 17px;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.pbchat__send.is-ready {
	background: linear-gradient(135deg, var(--pbchat-accent), var(--pbchat-accent-2));
	color: var(--pbchat-on);
}

.pbchat__send.is-ready:hover {
	transform: scale(1.05);
}

.pbchat__send:active {
	transform: scale(0.92);
}

.pbchat__composer-meta {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-top: 4px;
	padding: 0 6px;
	font-size: 10px;
	color: rgba(255, 255, 255, 0.28);
}

.pbchat:not(.has-bot-cmds) .pbchat__hint-cmd {
	display: none;
}

.pbchat__counter.is-low {
	color: #f87171;
	font-weight: 700;
}

.pbchat__locked {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 6px 10px 10px;
	padding: 12px 14px;
	border: 1px dashed rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	color: var(--pbchat-muted);
	font-size: 12px;
	text-align: center;
}

.pbchat__sheet {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 12px;
	background: rgba(6, 6, 10, 0.6);
	backdrop-filter: blur(3px);
}

.pbchat__sheet-card {
	width: 100%;
	max-width: 420px;
	padding: 14px;
	border: 1px solid var(--pbchat-border);
	border-radius: 18px;
	background: var(--pbchat-panel-2);
	box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
	animation: pbchatIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.pbchat__sheet-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	color: #fff;
	font-size: 13.5px;
}

.pbchat__sheet-head i {
	color: #f87171;
	font-size: 18px;
}

.pbchat__sheet-head span {
	margin-left: auto;
	font-weight: 800;
	color: var(--pbchat-muted);
}

.pbchat .pbchat__sheet-label {
	position: static;
	top: auto;
	display: block;
	margin: 10px 0 6px;
	font-size: 11px;
	font-weight: 700;
	color: var(--pbchat-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.pbchat__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.pbchat__chips button {
	padding: 5px 10px;
	border: 1px solid var(--pbchat-border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.7);
	font-size: 11.5px;
	font-weight: 700;
	cursor: pointer;
}

.pbchat__chips button.is-active {
	border-color: rgba(248, 113, 113, 0.5);
	background: rgba(248, 113, 113, 0.14);
	color: #fff;
}

.pbchat__sheet-input {
	width: 100%;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--pbchat-border);
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--pbchat-text);
	font-size: 13.5px;
	outline: none;
}

.pbchat .pbchat__sheet-check {
	position: static;
	top: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0 0;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.72);
	cursor: pointer;
}

.pbchat__sheet-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 14px;
}

.pbchat__sheet-btn {
	height: 36px;
	padding: 0 14px;
	border: 1px solid var(--pbchat-border);
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
}

.pbchat__sheet-btn--danger {
	border-color: transparent;
	background: #ef4444;
}

@media (max-width: 1100px) {
	.pbchat__panel {
		width: 75%;
	}
}

@media (max-width: 760px) {
	.pbchat__panel {
		width: 100%;
	}

	.pbchat__msg {
		max-width: 92%;
	}

	.pbchat__tab-label,
	.pbchat__hint {
		display: none;
	}
}

.pbchat__dock-open,
.pbchat__close-dock {
	display: none;
}

html {
	--pbchat-dock-w: 360px;
	--pbchat-dock-mini: 56px;
	--pbchat-dock-cur: 0px;
}

@media (min-width: 1200px) {
	html.pbchat-docked {
		--pbchat-dock-cur: var(--pbchat-dock-mini);
	}

	html.pbchat-dock-open {
		--pbchat-dock-cur: var(--pbchat-dock-w);
	}

	html.pbchat-docked .glx-on:not(.gle-site) {
		padding-right: var(--pbchat-dock-cur);
	}

	html.pbchat-docked .glx-on.glx-side-right:not(.gle-site) {
		padding-right: calc(var(--glx-shift) + var(--pbchat-dock-cur));
	}

	html.pbchat-docked .glx-on.glx-side-right:not(.gle-site) .glx {
		right: var(--pbchat-dock-cur);
		transition: width 0.22s ease, right 0.32s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.pbchat--dock .pbchat__overlay {
		display: none;
	}

	.pbchat--dock .pbchat__panel {
		z-index: 1055;
		width: var(--pbchat-dock-w);
		max-width: none;
		border-left: 1px solid var(--pbchat-border);
		box-shadow: none;
	}

	.pbchat--dock .pbchat__head {
		min-height: 60px;
	}

	.pbchat--dock .pbchat__close-x {
		display: none;
	}

	.pbchat--dock .pbchat__close-dock {
		display: inline-block;
	}

	.pbchat--dock .pbchat__hint {
		display: none;
	}

	html body .pbchat.pbchat--dock .pbchat__tab {
		top: 0;
		right: 0;
		bottom: 0;
		left: auto;
		z-index: 1054;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		gap: 10px;
		width: var(--pbchat-dock-mini);
		height: auto;
		padding: 14px 0;
		border: 0;
		border-left: 1px solid var(--pbchat-border);
		border-radius: 0;
		background: var(--pbchat-panel);
		color: #c9cbd8;
		box-shadow: none;
		transform: none;
		writing-mode: horizontal-tb;
	}

	html body .pbchat.pbchat--dock .pbchat__tab:hover {
		transform: none;
		box-shadow: none;
	}

	.pbchat--dock .pbchat__tab > .bx,
	.pbchat--dock .pbchat__dock-open {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		border: 1px solid var(--pbchat-border);
		border-radius: 11px;
		background: rgba(255, 255, 255, 0.04);
		font-size: 19px;
		transition: border-color 0.18s ease, color 0.18s ease;
	}

	.pbchat--dock .pbchat__tab > .bx {
		border-color: var(--pbchat-accent-line);
		color: var(--pbchat-accent);
	}

	.pbchat--dock .pbchat__tab:hover .pbchat__dock-open {
		border-color: var(--pbchat-accent-line);
		color: var(--pbchat-accent);
	}

	.pbchat--dock .pbchat__tab-label {
		display: none;
	}

	.pbchat--dock .pbchat__tab-dot {
		position: absolute;
		top: 54px;
		right: 6px;
	}

	.pbchat:not(.pbchat--dock) .pbchat__tab {
		visibility: hidden;
		pointer-events: none;
	}

	.pbchat--dock:not(.is-open) .pbchat__panel {
		visibility: hidden;
		border-left-color: transparent;
		transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.32s;
	}

	.pbchat--dock.is-open .pbchat__panel {
		visibility: visible;
		transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pbchat__msg,
	.pbcb--win,
	.pbchat__msg--premium .pbchat__bubble::before {
		animation: none;
	}
}
