.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ufa100k1-root {
	max-width: 100%;
}

.ufa100k1-chat-panel {
	margin-top: 6px;
	padding: 8px 10px;
	background: #0f172a;
	color: #e2e8f0;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	font-family: system-ui, sans-serif;
	font-size: 12px;
}

.ufa100k1-host-row {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin-bottom: 8px;
	min-height: 36px;
}

.ufa100k1-host-avatar {
	font-size: 22px;
	line-height: 1;
	flex-shrink: 0;
}

.ufa100k1-host-col {
	flex: 1;
	min-width: 0;
}

.ufa100k1-host-name {
	font-size: 11px;
	font-weight: 600;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 2px;
}

.ufa100k1-host-speech {
	font-size: 12px;
	line-height: 1.35;
	color: #fde68a;
	min-height: 1.35em;
	white-space: pre-wrap;
	word-break: break-word;
}

.ufa100k1-chat-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	margin-bottom: 6px;
}

.ufa100k1-chat-toolbar label {
	display: flex;
	align-items: center;
	gap: 4px;
	color: #94a3b8;
	font-size: 11px;
}

.ufa100k1-chat-toolbar select {
	padding: 4px 6px;
	border-radius: 6px;
	border: 1px solid #334155;
	background: #1e293b;
	color: #f1f5f9;
	font-size: 12px;
}

.ufa100k1-chat-input {
	width: 100%;
	min-height: 36px;
	max-height: 72px;
	padding: 6px 8px;
	border-radius: 8px;
	border: 1px solid #334155;
	background: #1e293b;
	color: #f8fafc;
	margin-bottom: 6px;
	box-sizing: border-box;
	font-size: 12px;
}

.ufa100k1-chat-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 6px;
}

.ufa100k1-chat-actions button {
	padding: 5px 10px;
	border-radius: 8px;
	border: 1px solid rgba(251, 191, 36, 0.35);
	background: rgba(251, 191, 36, 0.1);
	color: #fef3c7;
	font-weight: 600;
	font-size: 11px;
	cursor: pointer;
}

.ufa100k1-chat-actions button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.ufa100k1-chat-log {
	max-height: 96px;
	overflow-y: auto;
	padding: 6px 8px;
	background: rgba(0, 0, 0, 0.22);
	border-radius: 6px;
	font-size: 11px;
	line-height: 1.35;
}

.ufa100k1-chat-line {
	margin-bottom: 4px;
}

.ufa100k1-chat-ok {
	color: #86efac;
}

.ufa100k1-chat-hint {
	color: #93c5fd;
}

.ufa100k1-chat-host {
	color: #fde68a;
	white-space: pre-wrap;
}

.ufa100k1-chat-warn {
	color: #fcd34d;
}

.ufa100k1-chat-err {
	color: #fca5a5;
}

.ufa100k1-chat-muted {
	color: #94a3b8;
	font-style: italic;
}

/* Пузыри чата (боковые + ведущий) */
.ufa100k1-chat-bubble {
	display: inline-block;
	max-width: 100%;
	padding: 8px 11px;
	border-radius: 14px;
	font-size: 13px;
	line-height: 1.4;
	word-break: break-word;
	white-space: pre-wrap;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	animation: ufa-bubble-in 0.25s ease-out;
}

@keyframes ufa-bubble-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ufa100k1-bubble-you {
	background: #2563eb;
	color: #eff6ff;
	border-bottom-right-radius: 4px;
}

.ufa100k1-bubble-ai {
	background: #334155;
	color: #f1f5f9;
	border-bottom-left-radius: 4px;
}

.ufa100k1-bubble-ai.ufa100k1-bubble-ok {
	background: #166534;
	color: #dcfce7;
}

.ufa100k1-bubble-ai.ufa100k1-bubble-warn {
	background: #7f1d1d;
	color: #fecaca;
}

.ufa100k1-bubble-host {
	background: linear-gradient(135deg, #422006, #713f12);
	color: #fde68a;
	border: 1px solid rgba(251, 191, 36, 0.5);
	border-radius: 12px;
	width: 100%;
	box-sizing: border-box;
}

.ufa100k1-bubble-system {
	background: rgba(148, 163, 184, 0.15);
	color: #94a3b8;
	font-size: 11px;
	font-style: italic;
	border-radius: 8px;
	align-self: center;
}

.ufa100k1-typing-row {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	background: #334155;
	border-radius: 14px;
	border-bottom-left-radius: 4px;
	color: #94a3b8;
	font-size: 12px;
}

.ufa100k1-typing-dots {
	display: inline-flex;
	gap: 3px;
}

.ufa100k1-typing-dots span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #94a3b8;
	animation: ufa-typing-dot 1.2s ease-in-out infinite;
}

.ufa100k1-typing-dots span:nth-child(2) {
	animation-delay: 0.15s;
}

.ufa100k1-typing-dots span:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes ufa-typing-dot {
	0%,
	80%,
	100% {
		opacity: 0.35;
		transform: scale(0.85);
	}
	40% {
		opacity: 1;
		transform: scale(1);
	}
}
