.dpa-ai-support {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 99999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dpa-ai-support__launcher {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0 18px;
	height: 58px;
	border: 0;
	border-radius: 999px;
	background: #111111;
	color: #ffffff;
	box-shadow: 0 14px 40px rgba(17, 17, 17, 0.18);
	cursor: pointer;
}

.dpa-ai-support__launcher:hover {
	background: #000000;
}

.dpa-ai-support__launcher-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.dpa-ai-support__launcher-text {
	font-size: 15px;
	font-weight: 600;
}

.dpa-ai-support__panel {
	position: absolute;
	right: 0;
	bottom: 74px;
	width: 380px;
	max-width: calc(100vw - 24px);
	height: min(620px, calc(100vh - 110px));
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #d9d9d9;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.dpa-ai-support__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	background: linear-gradient(180deg, #121212 0%, #1f1f1f 100%);
	color: #ffffff;
}

.dpa-ai-support__title {
	font-size: 16px;
	font-weight: 700;
}

.dpa-ai-support__subtitle {
	margin-top: 4px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.72);
}

.dpa-ai-support__header-actions {
	display: flex;
	gap: 8px;
}

.dpa-ai-support__icon-btn {
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	font-size: 16px;
	cursor: pointer;
}

.dpa-ai-support__messages {
	flex: 1;
	padding: 16px;
	overflow-y: auto;
	background: #f5f5f5;
}

.dpa-ai-support__message {
	display: flex;
	margin-bottom: 12px;
}

.dpa-ai-support__message--user {
	justify-content: flex-end;
}

.dpa-ai-support__message--assistant,
.dpa-ai-support__message--human,
.dpa-ai-support__message--system {
	justify-content: flex-start;
}

.dpa-ai-support__bubble {
	max-width: 82%;
	padding: 12px 14px;
	border-radius: 16px;
	line-height: 1.6;
	word-break: break-word;
	font-size: 14px;
}

.dpa-ai-support__message--user .dpa-ai-support__bubble {
	background: #111111;
	color: #ffffff;
	border-bottom-right-radius: 6px;
}

.dpa-ai-support__message--assistant .dpa-ai-support__bubble,
.dpa-ai-support__message--human .dpa-ai-support__bubble,
.dpa-ai-support__message--system .dpa-ai-support__bubble {
	background: #ffffff;
	color: #111111;
	border: 1px solid #e4e4e4;
	border-bottom-left-radius: 6px;
}

.dpa-ai-support__message--human .dpa-ai-support__bubble {
	background: #eef6ee;
	border-color: #cfe2cf;
}

.dpa-ai-support__typing {
	color: #666666;
	font-size: 13px;
}

.dpa-ai-support__composer {
	padding: 14px 16px 16px;
	background: #ffffff;
	border-top: 1px solid #e8e8e8;
}

.dpa-ai-support__input {
	width: 100%;
	min-height: 52px;
	max-height: 120px;
	padding: 12px 14px;
	border: 1px solid #d9d9d9;
	border-radius: 14px;
	resize: vertical;
	font-size: 14px;
	line-height: 1.5;
	background: #ffffff;
	color: #111111;
}

.dpa-ai-support__composer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
}

.dpa-ai-support__hint {
	font-size: 12px;
	color: #6b7280;
}

.dpa-ai-support__send {
	min-width: 84px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: #111111;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.dpa-ai-support__send[disabled] {
	background: #9ca3af;
	cursor: not-allowed;
}

@media (max-width: 640px) {
	.dpa-ai-support {
		right: 12px;
		left: 12px;
		bottom: 12px;
	}

	.dpa-ai-support__launcher {
		margin-left: auto;
	}

	.dpa-ai-support__panel {
		left: 0;
		right: 0;
		width: auto;
		max-width: none;
		height: min(72vh, 560px);
	}

	.dpa-ai-support__bubble {
		max-width: 90%;
	}

	.dpa-ai-support__composer-row {
		align-items: flex-end;
	}
}
