.allychat-root {
	--allychat-primary: #425866;
	--allychat-accent: #c9a24a;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99980;
	font-family: system-ui, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.45;
	color: #243038;
}
.allychat-launcher {
	width: 58px;
	height: 58px;
	border: 0;
	border-radius: 50%;
	background: var(--allychat-primary);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 12px 28px -12px rgba(47, 62, 71, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
}
.allychat-launcher:focus-visible { outline: 3px solid var(--allychat-accent); outline-offset: 3px; }
.allychat-panel {
	position: absolute;
	right: 0;
	bottom: 72px;
	width: min(380px, calc(100vw - 24px));
	height: min(560px, calc(100vh - 120px));
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 24px 60px -28px rgba(47, 62, 71, 0.55);
	display: none;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e4e8ee;
}
.allychat-root.is-open .allychat-panel { display: flex; }
.allychat-head {
	background: var(--allychat-primary);
	color: #fff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.allychat-head strong { display: block; font-size: 15px; }
.allychat-head span { display: block; font-size: 12px; opacity: 0.85; }
.allychat-head button {
	background: transparent;
	border: 0;
	color: inherit;
	font-size: 22px;
	cursor: pointer;
	line-height: 1;
}
.allychat-log {
	flex: 1;
	overflow: auto;
	padding: 14px;
	background: #f7f5f0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.allychat-msg {
	max-width: 85%;
	padding: 9px 12px;
	border-radius: 14px;
	white-space: pre-wrap;
	word-break: break-word;
}
.allychat-msg--bot { align-self: flex-start; background: #fff; border: 1px solid #e7ebf1; }
.allychat-msg--me { align-self: flex-end; background: var(--allychat-primary); color: #fff; }
.allychat-sources { font-size: 12px; margin-top: 6px; }
.allychat-sources a { color: var(--allychat-primary); }
.allychat-composer {
	display: flex;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #e7ebf1;
	background: #fff;
}
.allychat-composer input {
	flex: 1;
	border: 1px solid #d5dbe3;
	border-radius: 10px;
	padding: 10px 12px;
}
.allychat-composer button,
.allychat-actions button,
.allychat-lead button {
	border: 0;
	border-radius: 10px;
	padding: 10px 12px;
	background: var(--allychat-accent);
	color: #2f3e47;
	font-weight: 600;
	cursor: pointer;
}
.allychat-actions {
	display: flex;
	gap: 8px;
	padding: 0 10px 10px;
	background: #fff;
}
.allychat-actions a,
.allychat-actions button {
	flex: 1;
	text-align: center;
	text-decoration: none;
	font-size: 13px;
	padding: 8px 10px;
	background: #eef2f5;
	color: var(--allychat-primary);
}
.allychat-lead {
	padding: 10px;
	border-top: 1px solid #e7ebf1;
	background: #fff;
	display: none;
	flex-direction: column;
	gap: 8px;
}
.allychat-lead.is-on { display: flex; }
.allychat-lead input {
	border: 1px solid #d5dbe3;
	border-radius: 8px;
	padding: 8px 10px;
}
.allychat-brand {
	font-size: 11px;
	text-align: center;
	padding: 0 10px 8px;
	color: #8a9099;
	background: #fff;
}
.allychat-brand a { color: inherit; }
.allychat-error { color: #b42318; font-size: 13px; padding: 0 12px 8px; background: #fff; }
@media (max-width: 480px) {
	.allychat-root { right: 12px; bottom: 12px; }
}
