#chat-section {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	box-sizing: border-box;
	padding: 20px;
	width: 100%;
	min-height: 0;
}

#chat-messages {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	box-sizing: border-box;
	padding: 0 0 8px;
	width: 100%;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	color: var(--text-secondary);
	font-weight: 600;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: 0.15px;
	word-wrap: anywhere;
	overflow-wrap: break-word;
}

#chat-input-container {
	flex-shrink: 0;
	border-top: 1px solid var(--border);
	padding: 12px;
	width: 100%;
}

#chat-input {
	outline: none;
	border: 1px solid var(--border-strong);

	background: var(--surface-solid);
	padding: 20px;
	width: 100%;
	height: 40px;
	color: var(--text-primary);
	font-size: 14px;
}

.chat-message {
	display: flex;
	flex-direction: column;
	gap: 6px;
	box-sizing: border-box;
	padding: 5px 20px;
	width: 100%;
}

.chat-sender {
	color: var(--text-primary);
	font-weight: 700;
	font-size: 13px;
}

.chat-message.server .chat-sender {
	color: var(--cyan);
}

.chat-message.own .chat-sender {
	color: #9ad37f;
}

.chat-message-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
}

.chat-text {
	display: block;
	margin: 0;
	background: transparent;
	padding: 0;
	max-width: 100%;
	color: var(--text-secondary);
	font-weight: 500;
	font-size: 14px;
	line-height: 20px;
	word-wrap: anywhere;
	white-space: normal;
	overflow-wrap: break-word;
}
