.uaios-copilot-root {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9999;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.uaios-copilot-launcher {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: 999px;
	border: none;
	background: #1d4ed8;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
	cursor: pointer;
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.uaios-copilot-launcher:hover {
	background: #1e40af;
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.35);
	transform: translateY(-1px);
}

.uaios-copilot-launcher:focus-visible {
	outline: 2px solid #fbbf24;
	outline-offset: 2px;
}

.uaios-copilot-launcher__label {
	white-space: nowrap;
}

.uaios-copilot-panel {
	position: fixed;
	right: 20px;
	bottom: 80px;
	width: 360px;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 120px);
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
	border: 1px solid rgba(148, 163, 184, 0.7);
	display: none;
	flex-direction: column;
	overflow: hidden;
}

.uaios-copilot-panel--open {
	display: flex;
}

.uaios-copilot-panel__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 14px 16px 10px;
	border-bottom: 1px solid #e2e8f0;
	background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.uaios-copilot-panel__eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #4f46e5;
	margin-bottom: 4px;
}

.uaios-copilot-panel__title {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
}

.uaios-copilot-panel__close {
	border: none;
	background: transparent;
	color: #64748b;
	font-size: 20px;
	line-height: 1;
	padding: 2px 4px;
	margin-left: 8px;
	cursor: pointer;
}

.uaios-copilot-panel__close:hover {
	color: #0f172a;
}

.uaios-copilot-panel__body {
	display: flex;
	flex-direction: column;
	padding: 10px 14px 12px;
	row-gap: 10px;
	overflow: hidden;
}

.uaios-copilot-panel__helper {
	margin: 0;
	font-size: 12px;
	color: #4b5563;
}

.uaios-copilot-panel__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.uaios-copilot-chip {
	border-radius: 999px;
	border: 1px solid #e5e7eb;
	background: #f9fafb;
	padding: 4px 10px;
	font-size: 11px;
	color: #374151;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.uaios-copilot-chip:hover {
	background: #eef2ff;
	border-color: #4f46e5;
}

.uaios-copilot-panel__messages {
	flex: 1 1 auto;
	min-height: 64px;
	max-height: 140px;
	padding: 8px;
	border-radius: 10px;
	background: #f9fafb;
	border: 1px dashed #cbd5f5;
	overflow-y: auto;
}

.uaios-copilot-message {
	font-size: 12px;
	color: #4b5563;
}

.uaios-copilot-message__text {
	display: inline-block;
}

.uaios-copilot-panel__input {
	margin-top: 4px;
}

.uaios-copilot-input__label {
	display: block;
	margin: 0 0 4px;
	font-size: 11px;
	color: #6b7280;
}

.uaios-copilot-input__row {
	display: flex;
	gap: 6px;
}

.uaios-copilot-input__field {
	flex: 1;
	border-radius: 999px;
	border: 1px solid #e5e7eb;
	padding: 6px 10px;
	font-size: 12px;
	color: #111827;
	background: #f9fafb;
}

.uaios-copilot-input__field:disabled {
	color: #9ca3af;
}

.uaios-copilot-input__send {
	border-radius: 999px;
	border: none;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 600;
	background: #e5e7eb;
	color: #6b7280;
	cursor: default;
}

.uaios-copilot-input__note {
	margin: 4px 0 0;
	font-size: 10px;
	color: #9ca3af;
}

@media (max-width: 768px) {
	.uaios-copilot-root {
		right: 12px;
		bottom: 12px;
	}

	.uaios-copilot-panel {
		right: 0;
		left: 0;
		bottom: 0;
		margin: 0 auto;
		width: auto;
		max-width: none;
		max-height: 60vh;
		border-radius: 16px 16px 0 0;
	}
}

