/* Server chat archive: compact radio-log presentation. */

.hlx-chat-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
	gap: 24px;
	align-items: stretch;
	margin-bottom: 12px;
	padding: 28px 30px;
	border: 1px solid var(--hlx-line);
	border-radius: var(--hlx-radius-lg);
	background:
		radial-gradient(circle at 94% 12%, rgba(84, 202, 239, 0.11), transparent 23rem),
		linear-gradient(112deg, rgba(84, 202, 239, 0.035), transparent 48%),
		#11151a;
	box-shadow: var(--hlx-shadow);
}

.hlx-chat-hero__copy {
	align-self: center;
	min-width: 0;
}

.hlx-chat-hero .hlx-section-kicker {
	display: block;
	margin-bottom: 7px;
	color: var(--hlx-cyan);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.hlx-chat-hero h1 {
	margin: 0;
	color: var(--hlx-text);
	font-size: clamp(31px, 4vw, 47px);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.03;
}

.hlx-chat-hero__copy p {
	max-width: 590px;
	margin: 13px 0 0;
	color: var(--hlx-muted);
	font-size: 13px;
	line-height: 1.65;
}

.hlx-chat-signal {
	display: grid;
	grid-template-columns: minmax(145px, 0.8fr) minmax(210px, 1.2fr);
	min-width: 0;
	overflow: hidden;
	border: 1px solid rgba(84, 202, 239, 0.21);
	border-left: 3px solid var(--hlx-cyan);
	border-radius: 12px;
	background: rgba(10, 13, 16, 0.6);
}

.hlx-chat-signal__channel {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-content: center;
	gap: 5px 8px;
	min-width: 0;
	padding: 19px;
	border-right: 1px solid var(--hlx-line);
}

.hlx-chat-signal__channel i {
	grid-row: 1 / span 2;
	align-self: start;
	width: 8px;
	height: 8px;
	margin-top: 3px;
	border-radius: 50%;
	background: #5ce77c;
	box-shadow: 0 0 0 4px rgba(92, 231, 124, 0.09), 0 0 14px rgba(92, 231, 124, 0.32);
	animation: hlx-chat-signal 1.6s ease-in-out infinite alternate;
}

.hlx-chat-signal__channel span,
.hlx-chat-signal dt,
.hlx-chat-console__header span,
.hlx-chat-filter label > span,
.hlx-chat-message footer span {
	color: #737f89;
	font-size: 12px;
	font-weight: 760;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hlx-chat-signal__channel strong {
	min-width: 0;
	color: #edf2f4;
	font-size: 12px;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.hlx-chat-signal dl {
	display: grid;
	margin: 0;
}

.hlx-chat-signal dl div {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 9px 14px;
	border-bottom: 1px solid var(--hlx-line);
}

.hlx-chat-signal dl div:last-child { border-bottom: 0; }
.hlx-chat-signal dt,
.hlx-chat-signal dd { margin: 0; }
.hlx-chat-signal dd {
	color: #dbe2e6;
	font: 700 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	text-align: right;
}

@keyframes hlx-chat-signal {
	from { opacity: 0.55; transform: scale(0.88); }
	to { opacity: 1; transform: scale(1); }
}

.hlx-chat-presence {
	min-width: 0;
	margin-bottom: 12px;
	padding: 18px 20px 20px;
	border: 1px solid var(--hlx-line);
	border-radius: var(--hlx-radius-lg);
	background:
		linear-gradient(90deg, rgba(92, 231, 124, .035), transparent 42%),
		#11151a;
	box-shadow: var(--hlx-shadow);
}

.hlx-chat-presence__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 13px;
}

.hlx-chat-presence__header .hlx-section-kicker {
	display: block;
	margin-bottom: 4px;
	color: #72cf88;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .11em;
	text-transform: uppercase;
}

.hlx-chat-presence__header h2 {
	margin: 0;
	color: var(--hlx-text);
	font-size: 19px;
	font-weight: 790;
	letter-spacing: -.025em;
}

.hlx-chat-presence__summary {
	display: grid;
	grid-template-columns: auto auto auto;
	align-items: baseline;
	gap: 6px;
	color: #82908a;
	font: 690 12px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	text-transform: uppercase;
}

.hlx-chat-presence__summary i {
	align-self: center;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #5ce77c;
	box-shadow: 0 0 0 4px rgba(92, 231, 124, .08), 0 0 12px rgba(92, 231, 124, .3);
}

.hlx-chat-presence__summary strong {
	color: #bce8c6;
	font-size: 12px;
}

.hlx-chat-presence__servers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
	gap: 10px;
	min-width: 0;
}

.hlx-chat-presence__server {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--hlx-line);
	border-radius: 10px;
	background: #0d1014;
}

.hlx-chat-presence__server > header {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 9px;
	min-height: 38px;
	padding: 7px 10px;
	border-bottom: 1px solid var(--hlx-line);
	background: rgba(255, 255, 255, .013);
}

.hlx-chat-presence__server > header span {
	color: #66737b;
	font-size: 12px;
	font-weight: 780;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.hlx-chat-presence__server > header strong {
	min-width: 0;
	color: #cbd4d9;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.hlx-chat-presence__server > header em {
	min-width: 22px;
	padding: 3px 5px;
	border: 1px solid rgba(92, 231, 124, .17);
	border-radius: 5px;
	color: #86cf97;
	font: 740 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	text-align: center;
}

.hlx-chat-presence__server ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hlx-chat-presence__player {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.hlx-chat-presence__player::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	bottom: 10px;
	width: 2px;
	border-radius: 0 2px 2px 0;
	background: rgba(92, 231, 124, .34);
}

.hlx-chat-presence__player:last-child { border-bottom: 0; }
.hlx-chat-presence__player.is-selected { background: rgba(92, 231, 124, .045); }
.hlx-chat-presence__player.is-selected::before { background: #5ce77c; box-shadow: 0 0 8px rgba(92, 231, 124, .35); }

.hlx-chat-presence__identity {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 2px 7px;
	min-width: 0;
}

.hlx-chat-presence__identity .hlx-flag { grid-row: 1 / span 2; }
.hlx-chat-presence__identity a,
.hlx-chat-presence__identity strong {
	min-width: 0;
	color: var(--hlx-cyan);
	font-size: 12px;
	font-weight: 750;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.hlx-chat-presence__identity span {
	color: #75828b;
	font-size: 12px;
	font-weight: 680;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.hlx-chat-presence__telemetry {
	display: grid;
	gap: 3px;
	color: #78858d;
	font: 650 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	text-align: right;
	white-space: nowrap;
}

.hlx-chat-presence__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
}

.hlx-chat-presence__actions a {
	padding: 6px 8px;
	border: 1px solid var(--hlx-line-strong);
	border-radius: 6px;
	color: #929fa7;
	font-size: 12px;
	font-weight: 740;
	line-height: 1.2;
	text-align: center;
}

.hlx-chat-presence__actions .hlx-chat-presence__send {
	border-color: rgba(92, 231, 124, .25);
	background: rgba(92, 231, 124, .055);
	color: #91d7a1;
}

.hlx-chat-presence__actions a:hover,
.hlx-chat-presence__actions a:focus-visible {
	border-color: rgba(84, 202, 239, .48);
	color: #e8f8fc;
}

.hlx-chat-presence__empty {
	display: grid;
	gap: 5px;
	padding: 15px;
	border: 1px dashed var(--hlx-line-strong);
	border-radius: 9px;
	color: var(--hlx-muted);
	font-size: 12px;
	line-height: 1.45;
}

.hlx-chat-presence__empty strong { color: #c8d1d6; font-size: 12px; }
.hlx-chat-presence__hint { margin: 11px 0 0; color: #707d85; font-size: 12px; line-height: 1.45; }

#hlx-chat-transmitter-home:empty { display: none; }

.hlx-chat-transmitter {
	position: relative;
	min-width: 0;
	margin-bottom: 12px;
	padding: 18px 20px;
	border: 1px solid var(--hlx-line);
	border-left: 3px solid #4b5963;
	border-radius: var(--hlx-radius-lg);
	background: #11151a;
	box-shadow: var(--hlx-shadow);
}

.hlx-chat-transmitter.is-ready { border-left-color: var(--hlx-cyan); }
.hlx-chat-transmitter.is-replying { border-left-color: #bca0eb; }
.hlx-chat-transmitter.is-private { border-left-color: #5ce77c; }
.hlx-chat-transmitter.is-replying .hlx-chat-compose__route { display: none; }
.hlx-chat-transmitter.is-replying .hlx-chat-transmitter__state { display: none; }
.hlx-chat-transmitter.is-replying .hlx-chat-transmitter__header { padding-right: 36px; }

.hlx-chat-transmitter__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 14px;
}

.hlx-chat-transmitter__header .hlx-section-kicker {
	display: block;
	margin-bottom: 4px;
	color: var(--hlx-cyan);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.hlx-chat-transmitter__header h2 {
	margin: 0;
	color: var(--hlx-text);
	font-size: 19px;
	font-weight: 790;
	letter-spacing: -0.025em;
}

.hlx-chat-transmitter__state {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #85919a;
	font: 720 12px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	text-transform: uppercase;
}

.hlx-chat-transmitter__state i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #59656e;
}

.hlx-chat-transmitter.is-ready .hlx-chat-transmitter__state i {
	background: #5ce77c;
	box-shadow: 0 0 0 4px rgba(92, 231, 124, 0.08);
}

.hlx-chat-transmitter__locked {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 12px;
	border-top: 1px solid var(--hlx-line);
}

.hlx-chat-transmitter__locked p {
	margin: 0;
	color: var(--hlx-muted);
	font-size: 12px;
	line-height: 1.5;
}

.hlx-chat-transmitter__locked a {
	flex: 0 0 auto;
	padding: 8px 12px;
	border: 1px solid var(--hlx-line-strong);
	border-radius: 7px;
	color: #b6c1c8;
	font-size: 12px;
	font-weight: 740;
}

.hlx-chat-delivery-notice {
	margin-bottom: 11px;
	padding: 9px 11px;
	border: 1px solid var(--hlx-line-strong);
	border-radius: 8px;
	font-size: 12px;
	line-height: 1.45;
}

.hlx-chat-delivery-notice.is-success {
	border-color: rgba(92, 231, 124, 0.28);
	background: rgba(92, 231, 124, 0.055);
	color: #a8e8b7;
}

.hlx-chat-delivery-notice.is-error {
	border-color: rgba(241, 113, 113, 0.28);
	background: rgba(241, 113, 113, 0.055);
	color: #eaa2a2;
}

.hlx-chat-compose {
	display: grid;
	gap: 10px;
}

.hlx-chat-compose__route {
	display: grid;
	grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.2fr);
	gap: 9px;
}

.hlx-chat-compose__identity,
.hlx-chat-compose__server,
.hlx-chat-compose__target {
	box-sizing: border-box;
	min-width: 0;
	min-height: 49px;
	border: 1px solid var(--hlx-line);
	border-radius: 9px;
	background: #0d1014;
}

.hlx-chat-compose__identity {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
}

.hlx-chat-compose__identity > span {
	display: grid;
	min-width: 0;
	margin-right: auto;
}

.hlx-chat-compose__identity small,
.hlx-chat-compose__server > span,
.hlx-chat-compose__target > span,
.hlx-chat-compose__message > span {
	color: #727e87;
	font-size: 12px;
	font-weight: 780;
	letter-spacing: 0.075em;
	line-height: 1.35;
	text-transform: uppercase;
}

.hlx-chat-compose__identity strong {
	color: var(--hlx-cyan);
	font-size: 12px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.hlx-chat-compose__identity em {
	flex: 0 0 auto;
	color: #79b989;
	font-size: 12px;
	font-style: normal;
	font-weight: 720;
}

.hlx-chat-compose__server {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	padding: 7px 10px;
}

.hlx-chat-compose__server strong,
.hlx-chat-compose__server select {
	min-width: 0;
	color: #cbd3d8;
	font-size: 12px;
	font-weight: 650;
	overflow-wrap: anywhere;
}

.hlx-chat-compose__server select {
	box-sizing: border-box;
	width: 100%;
	min-height: 34px;
	padding: 6px 9px;
	border: 1px solid var(--hlx-line-strong);
	border-radius: 7px;
	background: #15191e;
	outline: none;
}

.hlx-chat-compose__server select:focus {
	border-color: rgba(84, 202, 239, 0.52);
	box-shadow: 0 0 0 3px rgba(84, 202, 239, 0.07);
}

.hlx-chat-compose__server select:disabled { opacity: 0.72; }

.hlx-chat-compose__target {
	display: grid;
	grid-template-columns: auto minmax(120px, auto) minmax(0, 1fr) auto;
	align-items: center;
	gap: 5px 10px;
	min-height: 43px;
	padding: 8px 10px;
}

.hlx-chat-compose__target strong {
	color: #dce3e7;
	font-size: 12px;
	overflow-wrap: anywhere;
}

.hlx-chat-compose__target q {
	min-width: 0;
	color: #7f8b94;
	font-size: 12px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.hlx-chat-compose__target q::before,
.hlx-chat-compose__target q::after { color: #59656e; }

.hlx-chat-compose__target em {
	min-width: 0;
	color: #71817a;
	font: 650 12px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-style: normal;
	overflow-wrap: anywhere;
}

.hlx-chat-transmitter__close {
	position: absolute;
	top: 13px;
	right: 13px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 26px;
	padding: 0;
	border: 1px solid rgba(188, 160, 235, .16);
	border-radius: 5px;
	background: rgba(188, 160, 235, .045);
	color: #a9a0b8;
	font-size: 18px;
	font-weight: 350;
	line-height: 1;
	cursor: pointer;
}
.hlx-chat-transmitter__close[hidden] { display: none; }

.hlx-chat-transmitter__close:hover,
.hlx-chat-transmitter__close:focus-visible {
	border-color: rgba(188, 160, 235, .52);
	background: rgba(188, 160, 235, .13);
	box-shadow: 0 0 0 3px rgba(188, 160, 235, .06);
	color: #eadffd;
}

.hlx-chat-compose__target.is-replying {
	border-color: rgba(188, 160, 235, 0.25);
	background: rgba(188, 160, 235, 0.035);
}

.hlx-chat-compose__target.is-replying > span,
.hlx-chat-compose__target.is-replying strong { color: #bca0eb; }

.hlx-chat-compose__target.is-private {
	border-color: rgba(92, 231, 124, .24);
	background: rgba(92, 231, 124, .035);
}

.hlx-chat-compose__target.is-private > span,
.hlx-chat-compose__target.is-private strong { color: #8dd69e; }

.hlx-chat-compose__message {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.hlx-chat-compose__message textarea {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 68px;
	max-height: 180px;
	resize: none;
	overflow-y: hidden;
	padding: 11px 12px;
	border: 1px solid var(--hlx-line-strong);
	border-radius: 9px;
	background: #0d1014;
	color: #e3e8eb;
	font-family: Inter, system-ui, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	outline: none;
}

.hlx-chat-compose__message textarea:focus {
	border-color: rgba(84, 202, 239, 0.54);
	box-shadow: 0 0 0 3px rgba(84, 202, 239, 0.07);
}

.hlx-chat-transmitter.is-replying .hlx-chat-compose__message textarea:focus {
	border-color: rgba(188, 160, 235, 0.5);
	box-shadow: 0 0 0 3px rgba(188, 160, 235, 0.07);
}

.hlx-chat-transmitter.is-private .hlx-chat-compose__message textarea:focus {
	border-color: rgba(92, 231, 124, .48);
	box-shadow: 0 0 0 3px rgba(92, 231, 124, .065);
}

.hlx-chat-compose > footer {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
}

.hlx-chat-compose > footer > span {
	color: #68747d;
	font: 650 12px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.hlx-chat-compose__status {
	min-width: 0;
	color: #87939c;
	font-size: 12px;
	line-height: 1.4;
	text-align: right;
	overflow-wrap: anywhere;
}

.hlx-chat-compose__status.is-success { color: #83cd95; }
.hlx-chat-compose__status.is-error { color: #e49494; }

.hlx-chat-compose > footer button {
	min-height: 39px;
	padding: 8px 15px;
	border: 1px solid rgba(84, 202, 239, 0.34);
	border-radius: 8px;
	background: rgba(84, 202, 239, 0.1);
	color: var(--hlx-cyan);
	font-family: Inter, system-ui, sans-serif;
	font-size: 12px;
	font-weight: 780;
	cursor: pointer;
}

.hlx-chat-transmitter.is-replying .hlx-chat-compose > footer button {
	border-color: rgba(188, 160, 235, 0.34);
	background: rgba(188, 160, 235, 0.08);
	color: #c5aaef;
}

.hlx-chat-transmitter.is-private .hlx-chat-compose > footer button {
	border-color: rgba(92, 231, 124, .3);
	background: rgba(92, 231, 124, .075);
	color: #8ed89f;
}

.hlx-chat-compose > footer button:hover,
.hlx-chat-compose > footer button:focus-visible { color: #eefbfe; }
.hlx-chat-compose > footer button:disabled { cursor: wait; opacity: 0.55; }

.hlx-chat-reply-slot {
	position: relative;
	z-index: 3;
	padding: 10px;
	border-bottom: 1px solid var(--hlx-line);
	background: #0c1014;
	list-style: none;
}

.hlx-chat-reply-slot .hlx-chat-transmitter {
	margin: 0;
	box-shadow: none;
}

.hlx-chat-console {
	min-width: 0;
	overflow: hidden;
	margin-bottom: 12px;
	padding: 26px;
	border: 1px solid var(--hlx-line);
	border-radius: var(--hlx-radius-lg);
	background: #11151a;
	box-shadow: var(--hlx-shadow);
}

.hlx-chat-console__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 22px;
	margin-bottom: 18px;
}

.hlx-chat-console__header span {
	display: block;
	margin-bottom: 6px;
	color: var(--hlx-cyan);
}

.hlx-chat-console__header h2 {
	max-width: 720px;
	margin: 0;
	color: var(--hlx-text);
	font-size: clamp(21px, 3vw, 29px);
	font-weight: 790;
	letter-spacing: -0.035em;
	line-height: 1.15;
	overflow-wrap: anywhere;
}

.hlx-chat-console__header p {
	max-width: 390px;
	margin: 0;
	color: var(--hlx-muted);
	font-size: 12px;
	line-height: 1.5;
	text-align: right;
	overflow-wrap: anywhere;
}

.hlx-chat-filter {
	display: grid;
	grid-template-columns: minmax(190px, 1fr) minmax(180px, .9fr) minmax(220px, 1.15fr) auto auto;
	gap: 9px;
	align-items: end;
	margin: 0 0 10px;
	padding: 12px;
	border: 1px solid var(--hlx-line);
	border-radius: 11px;
	background: #0d1014;
}

.hlx-chat-filter label {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.hlx-chat-player-combobox {
	position: relative;
	display: block;
	min-width: 0;
}

.hlx-chat-player-combobox::after {
	content: "⌄";
	position: absolute;
	top: 50%;
	right: 11px;
	color: #6f7d85;
	font: 700 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	pointer-events: none;
	transform: translateY(-58%);
}

.hlx-chat-filter select,
.hlx-chat-filter input[type="search"] {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 42px;
	padding: 8px 11px;
	border: 1px solid var(--hlx-line-strong);
	border-radius: 8px;
	background: #15191e;
	color: var(--hlx-text);
	font-family: Inter, system-ui, sans-serif;
	font-size: 12px;
	font-weight: 620;
	line-height: 1.2;
	outline: none;
}

.hlx-chat-player-combobox input[type="search"] { padding-right: 32px; }

.hlx-chat-filter select:focus,
.hlx-chat-filter input[type="search"]:focus {
	border-color: rgba(84, 202, 239, 0.52);
	box-shadow: 0 0 0 3px rgba(84, 202, 239, 0.07);
}

.hlx-chat-filter button,
.hlx-chat-filter__reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 42px;
	padding: 8px 14px;
	border: 1px solid rgba(84, 202, 239, 0.3);
	border-radius: 8px;
	background: rgba(84, 202, 239, 0.09);
	color: var(--hlx-cyan);
	font-family: Inter, system-ui, sans-serif;
	font-size: 12px;
	font-weight: 760;
	line-height: 1.2;
	text-align: center;
	white-space: normal;
	cursor: pointer;
}

.hlx-chat-filter__reset {
	border-color: var(--hlx-line-strong);
	background: transparent;
	color: #929ca4;
}

.hlx-chat-filter__reset.is-disabled {
	opacity: 0.45;
}

.hlx-chat-filter button:hover,
.hlx-chat-filter button:focus-visible,
.hlx-chat-filter__reset:hover,
.hlx-chat-filter__reset:focus-visible {
	border-color: rgba(84, 202, 239, 0.52);
	color: #e6f8fd;
}

.hlx-chat-filter-status {
	display: flex;
	align-items: center;
	gap: 7px;
	min-height: 31px;
	margin: -1px 2px 8px;
	color: #8e9ba3;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.4;
}

.hlx-chat-filter-status i {
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #5ce77c;
	box-shadow: 0 0 0 4px rgba(92, 231, 124, .065);
}

.hlx-chat-filter-status.is-empty { color: #c1a275; }
.hlx-chat-filter-status.is-empty i { background: #d6a75d; box-shadow: 0 0 0 4px rgba(214, 167, 93, .07); }
.hlx-chat-filter-status.is-error { color: #e49a9a; }
.hlx-chat-filter-status.is-error i { background: #e17f7f; box-shadow: 0 0 0 4px rgba(225, 127, 127, .07); }

.hlx-chat-results {
	position: relative;
	min-width: 0;
}

.hlx-chat-results-loader {
	position: absolute;
	inset: 0;
	z-index: 8;
	display: grid;
	place-items: center;
	align-content: center;
	gap: 8px;
	min-height: 300px;
	padding: 32px;
	border: 1px solid rgba(84, 202, 239, .16);
	border-radius: 10px;
	background:
		radial-gradient(circle at 50% 50%, rgba(84, 202, 239, .08), transparent 18rem),
		repeating-linear-gradient(90deg, rgba(13, 16, 20, .96) 0, rgba(13, 16, 20, .96) 79px, rgba(18, 23, 28, .98) 80px);
	color: var(--hlx-text);
	text-align: center;
}

.hlx-chat-results-loader[hidden] { display: none; }
.hlx-chat-results-loader strong { font-size: 13px; letter-spacing: .01em; }
.hlx-chat-results-loader small { color: var(--hlx-muted); font-size: 12px; }

.hlx-chat-results-loader__signal {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	width: 42px;
	height: 30px;
	margin-bottom: 5px;
	padding: 6px;
	border: 1px solid rgba(84, 202, 239, .22);
	border-radius: 7px;
	background: rgba(84, 202, 239, .055);
}

.hlx-chat-results-loader__signal i {
	display: block;
	width: 7px;
	height: 8px;
	border-radius: 2px 2px 0 0;
	background: var(--hlx-cyan);
	animation: hlx-chat-filter-signal 900ms ease-in-out infinite alternate;
}

.hlx-chat-results-loader__signal i:nth-child(2) { height: 17px; animation-delay: -300ms; }
.hlx-chat-results-loader__signal i:nth-child(3) { height: 12px; animation-delay: -600ms; background: #e6c25a; }

@keyframes hlx-chat-filter-signal {
	from { transform: scaleY(.38); opacity: .5; }
	to { transform: scaleY(1); opacity: 1; }
}

.hlx-chat-console.is-filtering .hlx-chat-filter button { cursor: wait; opacity: .62; }
.hlx-chat-console.is-filtering .hlx-chat-results > :not(.hlx-chat-results-loader) { opacity: .14; pointer-events: none; }

.hlx-chat-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 48px;
	margin-bottom: 1px;
	padding: 8px 12px;
	border: 1px solid var(--hlx-line);
	border-bottom: 0;
	border-radius: 10px 10px 0 0;
	background: rgba(255, 255, 255, 0.012);
}

.hlx-chat-toolbar > div {
	display: flex;
	align-items: baseline;
	gap: 7px;
	min-width: 0;
}

.hlx-chat-toolbar strong {
	color: #edf2f4;
	font: 760 14px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.hlx-chat-toolbar span {
	color: var(--hlx-muted);
	font-size: 12px;
}

.hlx-chat-toolbar > a {
	flex: 0 0 auto;
	color: #9aa6ae;
	font-size: 12px;
	font-weight: 730;
}

.hlx-chat-toolbar > a:hover,
.hlx-chat-toolbar > a:focus-visible { color: var(--hlx-cyan); }

.hlx-chat-toolbar > .hlx-chat-live {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-left: auto;
}

.hlx-chat-live__state {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.hlx-chat-live__state i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #61d985;
	box-shadow: 0 0 0 4px rgba(97, 217, 133, .08), 0 0 10px rgba(97, 217, 133, .35);
}

.hlx-chat-live.is-offline .hlx-chat-live__state i {
	background: #d78989;
	box-shadow: 0 0 0 4px rgba(215, 137, 137, .08);
}

.hlx-chat-live [data-chat-new-count] {
	appearance: none;
	padding: 4px 8px;
	border: 1px solid rgba(84, 202, 239, .35);
	border-radius: 999px;
	background: rgba(84, 202, 239, .1);
	color: #bdefff;
	cursor: pointer;
	font: 760 12px/1.2 Inter, system-ui, sans-serif;
}

.hlx-chat-live [data-chat-new-count]:hover,
.hlx-chat-live [data-chat-new-count]:focus-visible {
	border-color: rgba(84, 202, 239, .65);
	background: rgba(84, 202, 239, .16);
}

.hlx-chat-stream {
	position: relative;
	margin: 0;
	padding: 0;
	border: 1px solid var(--hlx-line);
	border-top: 0;
	border-radius: 0 0 10px 10px;
	background: #0f1317;
	list-style: none;
}

.hlx-chat-stream::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 76px;
	width: 1px;
	background: linear-gradient(180deg, rgba(84, 202, 239, 0.5), rgba(84, 202, 239, 0.08) 16%, rgba(84, 202, 239, 0.08) 84%, transparent);
}

.hlx-chat-stream__date {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 38px;
	padding: 7px 14px 7px 91px;
	border-bottom: 1px solid var(--hlx-line);
	background: #0d1014;
}

.hlx-chat-stream__date::before {
	content: "";
	position: absolute;
	left: 71px;
	width: 11px;
	height: 3px;
	border-radius: 3px;
	background: var(--hlx-cyan);
	box-shadow: 0 0 9px rgba(84, 202, 239, 0.42);
}

.hlx-chat-stream__date time {
	color: #91a0aa;
	font-size: 12px;
	font-weight: 760;
	letter-spacing: 0.065em;
	text-transform: uppercase;
}

.hlx-chat-message {
	position: relative;
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	min-width: 0;
}

.hlx-chat-message__time {
	position: relative;
	display: flex;
	justify-content: flex-end;
	align-items: flex-start;
	padding: 17px 14px 13px 8px;
}

.hlx-chat-message__time time {
	color: #82909a;
	font: 690 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	text-align: right;
}

.hlx-chat-message__time small {
	display: block;
	margin-top: 4px;
	color: #515c65;
	font-size: 12px;
}

.hlx-chat-message__time i {
	position: absolute;
	top: 20px;
	right: -3px;
	z-index: 2;
	width: 5px;
	height: 5px;
	border: 1px solid #0f1317;
	border-radius: 50%;
	background: #59656e;
}

.hlx-chat-message > article {
	min-width: 0;
	padding: 14px 15px 13px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.055);
	transition: background 140ms ease;
}

.hlx-chat-message:last-child > article { border-bottom: 0; }
.hlx-chat-message:hover > article { background: rgba(84, 202, 239, 0.025); }
.hlx-chat-message:hover .hlx-chat-message__time i { background: var(--hlx-cyan); }

.hlx-chat-message header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.hlx-chat-message__speaker {
	display: flex;
	align-items: center;
	min-width: 0;
}

.hlx-chat-message__speaker .hlx-flag {
	flex: 0 0 auto;
	margin-right: 7px;
}

.hlx-chat-message__speaker a {
	min-width: 0;
	color: var(--hlx-cyan);
	font-family: Inter, "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 750;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.hlx-chat-message__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 7px;
	flex: 0 0 auto;
}

.hlx-chat-reply {
	padding: 3px 6px;
	border: 1px solid transparent;
	border-radius: 5px;
	color: #71808a;
	font-size: 12px;
	font-weight: 730;
	line-height: 1.2;
}

.hlx-chat-reply:hover,
.hlx-chat-reply:focus-visible {
	border-color: rgba(84, 202, 239, 0.25);
	color: var(--hlx-cyan);
}

.hlx-chat-channel {
	flex: 0 0 auto;
	padding: 3px 6px;
	border: 1px solid var(--hlx-line-strong);
	border-radius: 5px;
	color: #7b8790;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.07em;
	line-height: 1.2;
	text-transform: uppercase;
}

.hlx-chat-channel.is-team {
	border-color: rgba(230, 194, 90, 0.27);
	background: rgba(230, 194, 90, 0.045);
	color: #d5b858;
}

.hlx-chat-channel.is-squad {
	border-color: rgba(168, 129, 234, 0.28);
	background: rgba(168, 129, 234, 0.05);
	color: #bca0eb;
}

.hlx-chat-channel.is-web {
	border-color: rgba(84, 202, 239, 0.3);
	background: rgba(84, 202, 239, 0.06);
	color: var(--hlx-cyan);
}

.hlx-chat-channel.is-private {
	border-color: rgba(92, 231, 124, .28);
	background: rgba(92, 231, 124, .05);
	color: #87d398;
}

.hlx-chat-message.is-private > article { background: rgba(92, 231, 124, .018); }

.hlx-chat-message p {
	max-width: 900px;
	margin: 7px 0 10px;
	color: #d7dde1;
	font-family: Inter, system-ui, sans-serif;
	font-size: 13px;
	font-weight: 470;
	line-height: 1.55;
	overflow-wrap: anywhere;
	white-space: normal;
}

.hlx-chat-message p em { color: #68737c; }

.hlx-chat-message.is-actionable { cursor: pointer; }

.hlx-chat-message.is-actionable article {
	transition: border-color .16s ease, background-color .16s ease;
}

.hlx-chat-message.is-actionable:hover article {
	background: rgba(103, 176, 214, .055);
	border-color: rgba(103, 176, 214, .3);
}

@keyframes hlx-chat-message-arrival {
	0% { background: rgba(84, 202, 239, .22); border-color: rgba(84, 202, 239, .72); transform: translateY(-5px); }
	45% { background: rgba(84, 202, 239, .1); border-color: rgba(84, 202, 239, .42); }
	100% { background: transparent; border-color: var(--hlx-line); transform: translateY(0); }
}

.hlx-chat-message.is-new article {
	animation: hlx-chat-message-arrival 1.15s ease-out both;
}

.hlx-chat-message.is-actionable:focus-visible {
	outline: 2px solid rgba(185, 226, 255, .8);
	outline-offset: 4px;
}

.hlx-chat-delete { display: inline-flex; }
.hlx-chat-delete button {
	appearance: none;
	background: transparent;
	border: 0;
	color: #d99a9a;
	cursor: pointer;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	padding: 0;
	text-transform: uppercase;
}

.hlx-chat-delete button:hover,
.hlx-chat-delete button:focus-visible { color: #ffb7b7; }
.hlx-chat-delete button:disabled { cursor: wait; opacity: .55; }

.hlx-chat-message footer {
	display: flex;
	align-items: flex-start;
	gap: 8px 20px;
	min-width: 0;
}

.hlx-chat-message footer a {
	display: flex;
	align-items: baseline;
	gap: 6px;
	min-width: 0;
	max-width: 52%;
	color: #7f8b94;
	font: 620 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	overflow-wrap: anywhere;
}

.hlx-chat-message footer a:hover,
.hlx-chat-message footer a:focus-visible { color: var(--hlx-cyan); }
.hlx-chat-message footer span { flex: 0 0 auto; font-size: 12px; }

.hlx-chat-console__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 14px;
}

.hlx-chat-console__footer > span {
	color: var(--hlx-muted);
	font-size: 12px;
}

.hlx-chat-empty {
	display: grid;
	place-items: center;
	min-height: 260px;
	padding: 34px;
	border: 1px dashed var(--hlx-line-strong);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.012);
	text-align: center;
}

.hlx-chat-empty strong { color: #e5eaed; font-size: 14px; }
.hlx-chat-empty span { margin-top: 6px; color: var(--hlx-muted); font-size: 12px; }
.hlx-chat-empty a { margin-top: 15px; font-size: 12px; font-weight: 730; }
.hlx-chat-page-footer { margin-top: 0; }

@media (max-width: 900px) {
	.hlx-chat-hero { grid-template-columns: 1fr; }
	.hlx-chat-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hlx-chat-filter__player,
	.hlx-chat-filter__server,
	.hlx-chat-filter__search { grid-column: span 1; }
}

@media (max-width: 680px) {
	.hlx-chat-hero { padding: 22px; }
	.hlx-chat-signal { grid-template-columns: 1fr; }
	.hlx-chat-signal__channel { border-right: 0; border-bottom: 1px solid var(--hlx-line); }
	.hlx-chat-presence { padding: 16px; }
	.hlx-chat-presence__header { align-items: flex-start; flex-direction: column; gap: 8px; }
	.hlx-chat-presence__player { grid-template-columns: minmax(0, 1fr) auto; }
	.hlx-chat-presence__telemetry { display: flex; grid-column: 1; gap: 8px; padding-left: 23px; text-align: left; }
	.hlx-chat-presence__actions { grid-column: 2; grid-row: 1 / span 2; }
	.hlx-chat-transmitter { padding: 16px; }
	.hlx-chat-transmitter__locked { align-items: flex-start; flex-direction: column; }
	.hlx-chat-compose__route { grid-template-columns: 1fr; }
	.hlx-chat-compose__target { grid-template-columns: auto minmax(0, 1fr) auto; }
	.hlx-chat-compose__target q,
	.hlx-chat-compose__target em { grid-column: 1 / -1; }
	.hlx-chat-console { padding: 18px; }
	.hlx-chat-console__header { align-items: flex-start; flex-direction: column; gap: 7px; }
	.hlx-chat-console__header p { text-align: left; }
	.hlx-chat-filter { grid-template-columns: 1fr; }
	.hlx-chat-filter__player,
	.hlx-chat-filter__server,
	.hlx-chat-filter__search { grid-column: auto; }
	.hlx-chat-filter button,
	.hlx-chat-filter__reset { width: 100%; }
	.hlx-chat-message footer { display: grid; grid-template-columns: 1fr; gap: 5px; }
	.hlx-chat-message footer a { max-width: 100%; }
	.hlx-chat-console__footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
	.hlx-chat-presence { padding: 13px; }
	.hlx-chat-presence__summary { grid-template-columns: auto auto minmax(0, 1fr); }
	.hlx-chat-presence__player { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.hlx-chat-presence__telemetry { grid-column: 1; grid-row: auto; padding-left: 23px; }
	.hlx-chat-presence__actions { grid-column: 1; grid-row: auto; justify-content: flex-start; padding-left: 23px; }
	.hlx-chat-transmitter { padding: 13px; }
	.hlx-chat-transmitter__header { align-items: flex-start; flex-direction: column; gap: 7px; }
	.hlx-chat-compose__identity { align-items: flex-start; flex-wrap: wrap; }
	.hlx-chat-compose__identity > span { flex: 1 1 150px; }
	.hlx-chat-compose__server { grid-template-columns: 1fr; }
	.hlx-chat-compose__target { grid-template-columns: 1fr auto; }
	.hlx-chat-compose__target > span,
	.hlx-chat-compose__target q,
	.hlx-chat-compose__target em { grid-column: 1 / -1; }
	.hlx-chat-compose > footer { grid-template-columns: auto minmax(0, 1fr); }
	.hlx-chat-compose__status { text-align: right; }
	.hlx-chat-compose > footer button { grid-column: 1 / -1; width: 100%; }
	.hlx-chat-reply-slot { padding: 6px; }
	.hlx-chat-console { padding: 13px; }
	.hlx-chat-toolbar { align-items: flex-start; flex-direction: column; gap: 5px; }
	.hlx-chat-toolbar > .hlx-chat-live { justify-content: flex-start; margin-left: 0; }
	.hlx-chat-stream::before { left: 53px; }
	.hlx-chat-stream__date { padding-left: 68px; }
	.hlx-chat-stream__date::before { left: 48px; }
	.hlx-chat-message { grid-template-columns: 53px minmax(0, 1fr); }
	.hlx-chat-message__time { padding: 16px 10px 12px 5px; }
	.hlx-chat-message__time time { font-size: 12px; }
	.hlx-chat-message > article { padding: 13px 11px 12px; }
	.hlx-chat-message header { align-items: flex-start; }
	.hlx-chat-message__actions { align-items: flex-end; flex-direction: column; }
	.hlx-chat-message p { font-size: 12px; }
	.hlx-chat-channel { margin-top: 1px; }
	.hlx-chat-console__footer .hlx-pagination { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.hlx-chat-signal__channel i { animation: none; }
	.hlx-chat-results-loader__signal i { animation: none; }
	.hlx-chat-message > article { transition: none; }
	.hlx-chat-message.is-new article { animation: none; }
}

/* Служебные сообщения — триггеры звуков SaySounds и команды плагинов (message_kind).
   По умолчанию скрыты; переключатель живёт в строке статуса фильтра. */
.hlx-chat-filter-status { flex-wrap: wrap; }

.hlx-chat-filter-status__toggle {
	flex: 0 0 auto;
	padding: 3px 8px;
	border: 1px solid rgba(84, 202, 239, 0.3);
	border-radius: 5px;
	color: var(--hlx-cyan);
	font-size: 12px;
	font-weight: 730;
	line-height: 1.2;
	white-space: nowrap;
}

.hlx-chat-filter-status__toggle:hover,
.hlx-chat-filter-status__toggle:focus-visible {
	border-color: rgba(84, 202, 239, 0.52);
	color: #e6f8fd;
}

.hlx-chat-kind {
	flex: 0 0 auto;
	padding: 3px 6px;
	border: 1px dashed var(--hlx-line-strong);
	border-radius: 5px;
	color: #6f7d85;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.07em;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: help;
}

.hlx-chat-kind.is-trigger { border-color: rgba(230, 194, 90, 0.24); color: #a89468; }
.hlx-chat-kind.is-command { border-color: rgba(140, 164, 222, 0.26); color: #8194b6; }

.hlx-chat-message.is-service .hlx-chat-message__body { color: #7b8790; }
.hlx-chat-message.is-service .hlx-chat-message__time time { color: #5f6b73; }
.hlx-chat-message.is-service .hlx-chat-message__time i { background: #3f484f; }
