/* ИИ чат-бот Эйми — WPBot-like chrome (proacton.ru Aimy) */

.aimy-chat-root {
	position: fixed;
	z-index: 99999;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 14.5px;
	line-height: 1.55;
	color: #37424c;
	box-sizing: border-box;
	--aimy-accent: #2b6de5;
	--aimy-accent-soft: color-mix(in srgb, var(--aimy-accent) 12%, transparent);
	--aimy-soft: color-mix(in srgb, var(--aimy-accent) 6%, transparent);
	--aimy-user-bg: color-mix(in srgb, var(--aimy-accent) 6%, transparent);
	--aimy-user-text: #1a2240;
	--aimy-msg-bg: #f7fafb;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 3px;
}

.aimy-chat-root--bottom-left,
.aimy-chat-root--top-left {
	align-items: flex-start;
}

.aimy-chat-root *,
.aimy-chat-root *::before,
.aimy-chat-root *::after {
	box-sizing: border-box;
}

.aimy-chat-root[hidden] {
	display: none !important;
}

/* —— External greeting bubble —— */
.aimy-chat-bubble-outer {
	position: relative;
	max-width: min(280px, calc(100vw - 120px));
	order: 1;
	overflow: visible;
	transform-origin: 80% 100%;
	margin-bottom: -7px;
}

.aimy-chat-bubble-outer--sway {
	animation: aimy-bubble-sway 3.2s ease-in-out 1;
}

.aimy-chat-root--bottom-left .aimy-chat-bubble-outer,
.aimy-chat-root--top-left .aimy-chat-bubble-outer {
	transform-origin: 20% 100%;
}

.aimy-chat-root[data-open='1'] .aimy-chat-bubble-outer,
.aimy-chat-bubble-outer[hidden] {
	display: none !important;
}

.aimy-chat-bubble-outer-inner {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border-radius: 16px;
	padding: 7px 8px;
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
	border: 1px solid rgba(226, 232, 240, 0.9);
}

.aimy-chat-bubble-outer-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: #f1f5f9;
}

.aimy-chat-bubble-outer-text {
	font-size: 13.5px;
	line-height: 1.45;
	color: #334155;
	padding: 0;
	min-width: 0;
}

.aimy-chat-bubble-outer-text p {
	margin: 0 0 0.35em;
}

.aimy-chat-bubble-outer-text p:last-child {
	margin-bottom: 0;
}

.aimy-chat-bubble-outer-close {
	position: absolute !important;
	/* Как на proacton: контроллер top:-16px; right:-12px — не зависит от высоты текста */
	top: -16px !important;
	right: -12px !important;
	left: auto !important;
	bottom: auto !important;
	width: 30px !important;
	height: 30px !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #7d8999 !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 600;
	font-family: inherit;
	line-height: 20px !important;
	text-align: center !important;
	cursor: pointer;
	padding: 5px !important;
	margin: 0 !important;
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	box-shadow: none;
	box-sizing: border-box !important;
	z-index: 2;
	transition: background-color 0.15s ease, opacity 0.15s ease;
}

.aimy-chat-bubble-outer:hover .aimy-chat-bubble-outer-close,
.aimy-chat-bubble-outer:focus-within .aimy-chat-bubble-outer-close {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}

.aimy-chat-bubble-outer-close:hover,
.aimy-chat-bubble-outer-close:focus-visible {
	background: #5f6a76 !important;
}

@keyframes aimy-bubble-sway {
	0%,
	100% {
		transform: translateY(0) rotate(0deg);
	}
	25% {
		transform: translateY(-4px) rotate(-1.2deg);
	}
	50% {
		transform: translateY(-2px) rotate(0.6deg);
	}
	75% {
		transform: translateY(-5px) rotate(-0.8deg);
	}
}

/* —— Launcher —— */
.aimy-chat-launcher {
	order: 2;
	width: auto;
	height: auto;
	min-width: 0;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	overflow: visible;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.aimy-chat-launcher img {
	width: 72px;
	height: 72px;
	max-width: 72px;
	max-height: 72px;
	object-fit: contain;
	object-position: center;
	display: block;
	background: transparent !important;
	border: 0;
	border-radius: 0;
	box-shadow: none !important;
}

/* —— Panel —— */
.aimy-chat-panel {
	position: absolute;
	width: min(380px, calc(100vw - 24px));
	max-height: min(560px, calc(100vh - 100px));
	order: 0;
}

.aimy-chat-root--bottom-right .aimy-chat-panel,
.aimy-chat-root--bottom-left .aimy-chat-panel {
	bottom: 72px;
}

.aimy-chat-root--top-right .aimy-chat-panel,
.aimy-chat-root--top-left .aimy-chat-panel {
	top: 72px;
}

.aimy-chat-root--bottom-right .aimy-chat-panel,
.aimy-chat-root--top-right .aimy-chat-panel {
	right: 0;
}

.aimy-chat-root--bottom-left .aimy-chat-panel,
.aimy-chat-root--top-left .aimy-chat-panel {
	left: 0;
}

.aimy-chat-root[data-wide='1'] .aimy-chat-panel {
	width: min(560px, calc(100vw - 24px));
	max-height: min(720px, calc(100vh - 80px));
}

.aimy-chat-panel[hidden] {
	display: none !important;
}

.aimy-chat-box {
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--aimy-accent) 8%, transparent), rgba(247, 250, 251, 0.95)),
		radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--aimy-accent) 8%, transparent), transparent 42%),
		radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--aimy-accent) 8%, transparent), transparent 36%),
		var(--aimy-msg-bg);
	border: 0;
	border-radius: 14px;
	box-shadow: 0 16px 48px rgba(10, 24, 28, 0.28);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	max-height: inherit;
	min-height: 420px;
}

/* —— White header with control buttons —— */
.aimy-chat-header {
	background: #fff !important;
	color: var(--aimy-accent);
	padding: 10px 12px;
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
	border-bottom: 1px solid color-mix(in srgb, var(--aimy-accent) 18%, transparent);
}

.aimy-chat-header-spacer {
	flex: 1;
	min-width: 8px;
}

.aimy-chat-header-btn {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--aimy-accent);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.aimy-chat-header-btn:hover,
.aimy-chat-header-btn:focus-visible {
	background: var(--aimy-accent-soft);
	color: color-mix(in srgb, var(--aimy-accent) 78%, #000);
}

.aimy-chat-header-btn:active {
	transform: scale(0.94);
}

.aimy-chat-header-btn svg {
	display: block;
	stroke: currentColor;
}

.aimy-chat-root[data-wide='1'] .aimy-chat-expand svg {
	transform: rotate(180deg);
}

/* —— Messages —— */
.aimy-chat-messages {
	height: min(340px, calc(100vh - 260px));
	min-height: 260px;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 16px 14px;
	background: transparent;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: stretch;
	gap: 10px;
	flex: 1 1 auto;
}

.aimy-chat-root[data-wide='1'] .aimy-chat-messages {
	height: min(420px, calc(100vh - 240px));
}

.aimy-chat-msg {
	display: flex;
	gap: 10px;
	max-width: 92%;
	align-items: flex-start;
}

.aimy-chat-msg--user {
	align-self: flex-end;
	flex-direction: row-reverse;
}

.aimy-chat-msg--welcome.aimy-chat-welcome-play .aimy-chat-bubble--bot {
	animation: aimy-welcome-pop 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.aimy-chat-welcome-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
	flex: 1 1 auto;
}

.aimy-chat-welcome-body .aimy-chat-bubble {
	max-width: 100%;
}

.aimy-chat-msg--welcome {
	max-width: 100%;
	width: 100%;
	flex: 0 0 auto;
}

#aimy-chat-root .aimy-chat-quick-wrap,
.aimy-chat-root .aimy-chat-quick-wrap {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 8px;
	width: calc(100% - 50px);
	max-width: calc(100% - 50px);
	margin: 0 0 4px 50px;
	padding: 0 !important;
	flex: 0 0 auto;
	align-self: flex-start;
	box-sizing: border-box;
}

#aimy-chat-root .aimy-chat-quick-btn,
.aimy-chat-root .aimy-chat-quick-btn {
	display: inline-flex !important;
	align-items: center;
	width: auto !important;
	max-width: 100%;
	margin: 0 !important;
	border: 1px solid color-mix(in srgb, var(--aimy-accent) 35%, transparent);
	border-radius: 999px;
	background: #fff;
	color: var(--aimy-accent);
	padding: 7px 12px;
	font-size: 13px;
	line-height: 1.2;
	cursor: pointer;
	font-family: inherit;
	white-space: normal;
	text-align: left;
}

.aimy-chat-quick-btn:hover,
.aimy-chat-quick-btn:focus-visible {
	background: var(--aimy-soft);
	outline: none;
}

@keyframes aimy-welcome-pop {
	from {
		opacity: 0;
		transform: scale(0.94) translateY(4px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.aimy-chat-msg .aimy-chat-avatar {
	width: 40px;
	height: 40px;
	aspect-ratio: 1;
	max-height: none;
	object-fit: cover;
	object-position: center;
	border-radius: 50%;
	border: 0;
	background: #fff;
	flex-shrink: 0;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.aimy-chat-bubble {
	padding: 11px 14px;
	border-radius: 16px;
	font-size: 14px;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
}

.aimy-chat-bubble--bot {
	background: #fff;
	color: #37424c;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
	border-top-left-radius: 6px;
}

.aimy-chat-bubble--bot ul.aimy-chat-md-list {
	list-style: disc;
}

.aimy-chat-bubble--bot ol.aimy-chat-md-list {
	list-style: decimal;
}

.aimy-chat-bubble--bot .aimy-chat-md-list {
	margin: 0.4em 0 0.45em 1.15em;
	padding: 0;
}

.aimy-chat-bubble--bot .aimy-chat-md-list li {
	margin: 0.15em 0;
}

.aimy-chat-bubble--bot strong {
	font-weight: 700;
}

.aimy-chat-bubble--bot a {
	color: var(--aimy-accent);
	font-weight: 600;
	text-decoration: none;
}

.aimy-chat-bubble--bot a:hover {
	text-decoration: underline;
}

.aimy-chat-bubble--user {
	background: var(--aimy-user-bg);
	color: var(--aimy-user-text);
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
	border: 1px solid color-mix(in srgb, var(--aimy-accent) 18%, transparent);
	border-top-right-radius: 6px;
}

/* —— Compose: pill input + tools below —— */
.aimy-chat-compose {
	background: #fff;
	flex-shrink: 0;
	padding: 12px 14px 14px;
	border-top: 1px solid color-mix(in srgb, var(--aimy-accent) 12%, transparent);
}

.aimy-chat-form {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.aimy-chat-previews {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 2px;
}

.aimy-chat-previews[hidden] {
	display: none !important;
}

.aimy-chat-preview {
	position: relative;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	background: #fff;
}

.aimy-chat-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.aimy-chat-preview-remove {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 20px;
	height: 20px;
	border: 0;
	border-radius: 50%;
	background: rgba(26, 32, 44, 0.72);
	color: #fff;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.aimy-chat-editor-wrap {
	position: relative;
	display: flex;
	align-items: center;
	background: #fff;
	border-radius: 999px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
	padding: 4px 4px 4px 16px;
	min-height: 48px;
	height: 48px;
	overflow: visible;
}

.aimy-chat-input {
	flex: 1;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	font-size: 14.5px;
	font-family: inherit;
	outline: none !important;
	min-width: 0;
	height: 40px !important;
	line-height: 40px !important;
	margin: 0 !important;
	background: transparent !important;
	color: #2d3748;
	box-shadow: none !important;
}

.aimy-chat-input::placeholder {
	color: #94a3b8;
}

.aimy-chat-send {
	flex: 0 0 auto;
	width: 60px;
	height: 60px;
	min-width: 60px;
	padding: 0 !important;
	margin: 0;
	border: 0 !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: var(--aimy-accent) !important;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.aimy-chat-send:hover:not(:disabled),
.aimy-chat-send:focus-visible {
	color: color-mix(in srgb, var(--aimy-accent) 78%, #000) !important;
	background: var(--aimy-accent-soft) !important;
}

.aimy-chat-send:disabled {
	opacity: 0.4 !important;
	pointer-events: none;
	cursor: not-allowed;
}

.aimy-chat-send svg {
	display: block;
	width: 30px;
	height: 30px;
}

.aimy-chat-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
	width: 100%;
	min-height: 48px;
	padding: 0 4px 6px;
	margin: 0;
	box-sizing: border-box;
}

.aimy-chat-toolbar-left,
.aimy-chat-toolbar-right {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 48px;
}

.aimy-chat-toolbar-right {
	gap: 0;
	padding-right: 6px;
}

.aimy-chat-toolbar-right[hidden] {
	display: none !important;
}

.aimy-chat-msg-btn {
	width: 40px;
	height: 40px;
	min-width: 40px;
	background: transparent !important;
	transition: transform 0.15s ease;
}

.aimy-chat-msg-btn:hover,
.aimy-chat-msg-btn:focus-visible {
	background: transparent !important;
	transform: scale(1.12);
}

.aimy-chat-msg-btn:active {
	transform: scale(1.04);
}

.aimy-chat-msg-btn img {
	display: block;
	width: 22px;
	height: 22px;
	object-fit: contain;
}

.aimy-chat-msg-btn[data-aimy-msg='tg'] img {
	width: 25px;
	height: 25px;
}

.aimy-chat-handoff {
	padding: 0 10px 8px;
	box-sizing: border-box;
}

.aimy-chat-handoff[hidden] {
	display: none !important;
}

.aimy-chat-handoff-ask {
	margin: 0 0 8px;
	font-size: 13.5px;
	line-height: 1.35;
	color: #334155;
}

.aimy-chat-handoff-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 6px;
}

#aimy-chat-root .aimy-chat-handoff-go,
#aimy-chat-root .aimy-chat-handoff-cancel,
.aimy-chat-root .aimy-chat-handoff-go,
.aimy-chat-root .aimy-chat-handoff-cancel {
	flex: 0 0 auto;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 40px;
	/* Extra bottom padding lifts the glyph box optically into center */
	padding: 0 12px 3px !important;
	border: 0 !important;
	border-radius: 999px !important;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	line-height: 1 !important;
	letter-spacing: 0;
	cursor: pointer;
	white-space: nowrap;
	vertical-align: middle;
	transition: background 0.18s ease, color 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.aimy-chat-handoff-go {
	background: var(--aimy-accent) !important;
	color: #fff !important;
}

.aimy-chat-handoff-go:hover,
.aimy-chat-handoff-go:focus-visible {
	filter: brightness(1.1);
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
	transform: none !important;
}

.aimy-chat-handoff-go:active {
	filter: brightness(0.95);
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.16);
	transform: none !important;
}

.aimy-chat-handoff-cancel {
	background: transparent !important;
	color: #64748b !important;
}

.aimy-chat-handoff-cancel:hover,
.aimy-chat-handoff-cancel:focus-visible {
	color: #334155 !important;
	background: #f1f5f9 !important;
}

.aimy-chat-handoff-cancel:active {
	background: #e2e8f0 !important;
}

.aimy-chat-form.is-handoff .aimy-chat-editor-wrap {
	display: none;
}

.aimy-chat-tool-btn,
.aimy-chat-tool-btn *,
.aimy-chat-attach-btn,
.aimy-chat-attach-btn * {
	cursor: pointer !important;
}

.aimy-chat-tool-btn {
	position: relative;
	width: 48px;
	height: 48px;
	min-width: 48px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--aimy-accent);
	cursor: pointer !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.aimy-chat-tool-btn:hover,
.aimy-chat-tool-btn:focus-visible {
	color: var(--aimy-accent);
	background: var(--aimy-accent-soft);
	transform: translateY(-1px);
}

.aimy-chat-tool-btn svg {
	display: block;
	width: 24px;
	height: 24px;
	stroke: currentColor;
	fill: none;
}

.aimy-chat-attach-btn input[type='file'] {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	opacity: 0;
	pointer-events: none;
}

.aimy-chat-msg-images {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 6px;
}

.aimy-chat-msg-image {
	display: block;
	max-width: 180px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
}

.aimy-chat-msg-image img {
	display: block;
	width: 100%;
	height: auto;
}

.aimy-chat-msg-text {
	white-space: pre-wrap;
}

.aimy-chat-typing {
	color: #64748b;
	font-style: italic;
	font-size: 13.5px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: center;
	background: #fff;
	padding: 10px 14px;
	border-radius: 16px;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.aimy-chat-dots {
	display: inline-block;
	width: 1.2em;
	text-align: left;
	vertical-align: bottom;
	margin-left: 2px;
}

.aimy-chat-dots::after {
	content: '';
	animation: aimyTypingDots 1.4s steps(4, end) infinite;
}

@keyframes aimyTypingDots {
	0% {
		content: '';
	}
	25% {
		content: '.';
	}
	50% {
		content: '..';
	}
	75% {
		content: '...';
	}
	100% {
		content: '';
	}
}

.aimy-chat-error {
	color: #e53e3e;
	font-size: 13px;
	padding-left: 50px;
	align-self: stretch;
	max-width: 100%;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* —— Region screenshot (proacton.ru style) —— */
body.aimy-chat-capturing {
	cursor: crosshair !important;
}

body.aimy-chat-capturing .aimy-chat-root {
	visibility: hidden !important;
	pointer-events: none !important;
}

.aimy-chat-capture-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	cursor: crosshair;
}

.aimy-chat-capture-dim {
	position: absolute;
	inset: 0;
	background: rgb(10 12 20 / 0.42);
}

.aimy-chat-capture-hint {
	position: absolute;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: 999px;
	background: rgba(20, 22, 30, 0.88);
	color: #fff;
	font-size: 14px;
	line-height: 1.3;
	pointer-events: auto;
	white-space: nowrap;
}

.aimy-chat-capture-cancel-top {
	border: 0;
	border-radius: 999px;
	padding: 6px 12px;
	background: #fff;
	color: #1a1a1a;
	cursor: pointer;
	font-size: 13px;
}

.aimy-chat-capture-selection {
	position: absolute;
	box-shadow: 0 0 0 1px var(--aimy-accent, #2b6de5), 0 0 0 9999px rgb(10 12 20 / 0.5);
	border-radius: 4px;
	pointer-events: none;
}

.aimy-chat-capture-actions {
	position: absolute;
	right: 0;
	bottom: -48px;
	display: flex;
	gap: 8px;
	pointer-events: auto;
}

.aimy-chat-capture-confirm {
	background: var(--aimy-accent, #2b6de5);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 9px 14px;
	cursor: pointer;
}

.aimy-chat-capture-cancel {
	background: #fff;
	border: 0;
	border-radius: 999px;
	padding: 9px 14px;
	cursor: pointer;
}

.aimy-chat-capture-flash {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	background: #fff;
	opacity: 0.55;
	pointer-events: none;
	animation: aimy-chat-capture-flash-anim 0.36s ease-out forwards;
}

@keyframes aimy-chat-capture-flash-anim {
	from {
		opacity: 0.55;
	}
	to {
		opacity: 0;
	}
}

@media (max-width: 480px) {
	.aimy-chat-panel {
		width: calc(100vw - 16px);
	}

	/* Same 8px gap on both sides whatever the corner offset is. */
	.aimy-chat-root--bottom-right .aimy-chat-panel,
	.aimy-chat-root--top-right .aimy-chat-panel {
		right: calc(8px - var(--aimy-ox, 8px));
	}

	.aimy-chat-root--bottom-left .aimy-chat-panel,
	.aimy-chat-root--top-left .aimy-chat-panel {
		left: calc(8px - var(--aimy-ox, 8px));
	}

	.aimy-chat-messages {
		height: min(260px, calc(100vh - 250px));
		padding: 12px;
	}

	.aimy-chat-bubble-outer {
		max-width: calc(100vw - 100px);
	}

	.aimy-chat-capture-hint {
		white-space: normal;
		max-width: calc(100vw - 24px);
	}
}
