/* AI 对话页 /ai-chat — 全宽布局，背景与全站一致，仅轻微分割线 */

body.aith-ai-chat-page {
	overflow: hidden;
	height: 100dvh;
	max-height: 100dvh;
}

body.aith-ai-chat-page .site-main,
body.aith-ai-chat-page #primary,
body.aith-ai-chat-page .content-area {
	max-width: none;
	padding: 0;
	margin: 0;
	height: calc(100dvh - var(--aith-header-h, 72px));
	max-height: calc(100dvh - var(--aith-header-h, 72px));
	overflow: hidden;
}

body.aith-ai-chat-page .site-footer {
	display: none;
}

body.aith-ai-chat-page .aith-tool-hub-portal-page {
	min-height: 0;
	height: 100%;
	max-height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

body.aith-ai-chat-page .aith-ai-chat-page__inner,
body.aith-ai-chat-page .aith-tool-hub-portal-page__inner {
	padding: 0;
	height: 100%;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

body.aith-ai-chat-page .aith-ai-chat-page__shell,
body.aith-ai-chat-page .aith-tool-hub-portal-shell {
	flex: 1;
	min-height: 0;
	height: 100%;
	max-height: 100%;
	align-items: stretch;
	overflow: hidden;
}

body.aith-ai-chat-page .aith-ai-chat-page__main,
body.aith-ai-chat-page .aith-tool-hub-portal-shell .aith-tool-hub-portal-main {
	flex: 1;
	min-width: 0;
	min-height: 0;
	height: 100%;
	max-height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.aith-ai-chat {
	--ai-chat-sidebar-w: 248px;
	--ai-chat-sidebar-w-mini: 72px;
	--ai-chat-content-max: min(960px, calc(100% - 48px));
	--ai-chat-stage-pad-x: clamp(20px, 3vw, 32px);
	--ai-chat-output-w: min(58%, 720px);
	--ai-chat-line: rgba(255, 255, 255, 0.06);
	--ai-chat-body-size: 1.0625rem;
	--ai-chat-body-lh: 1.75;
	flex: 1;
	min-width: 0;
	min-height: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.aith-ai-chat__shell {
	display: flex;
	align-items: stretch;
	flex: 1;
	min-height: 0;
	height: 100%;
	border: 0;
	border-radius: 0;
	background: transparent;
	overflow: hidden;
}

.aith-ai-chat__shell.is-sidebar-collapsed {
	--ai-chat-sidebar-w: var(--ai-chat-sidebar-w-mini);
}

.aith-ai-chat__shell.is-sidebar-collapsed .aith-ai-chat__sidebar {
	padding: 0.75rem 0.35rem 0.65rem;
	align-items: center;
	border-right-color: var(--ai-chat-line);
}

.aith-ai-chat__shell.is-sidebar-collapsed .aith-ai-chat__new span:not(.aith-ai-chat__new-ico),
.aith-ai-chat__shell.is-sidebar-collapsed .aith-ai-chat__collapse-label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.aith-ai-chat__shell.is-sidebar-collapsed .aith-ai-chat__history-head,
.aith-ai-chat__shell.is-sidebar-collapsed .aith-ai-chat__history {
	display: none !important;
}

.aith-ai-chat__shell.is-sidebar-collapsed .aith-ai-chat__new,
.aith-ai-chat__shell.is-sidebar-collapsed .aith-ai-chat__collapse {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	min-height: 0;
	margin: 0;
	padding: 0;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
	color: rgba(236, 244, 255, 0.94);
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.aith-ai-chat__shell.is-sidebar-collapsed .aith-ai-chat__new {
	order: 1;
	margin-bottom: 0.55rem;
}

.aith-ai-chat__shell.is-sidebar-collapsed .aith-ai-chat__collapse {
	order: 2;
	gap: 0;
}

.aith-ai-chat__shell.is-sidebar-collapsed .aith-ai-chat__new:hover,
.aith-ai-chat__shell.is-sidebar-collapsed .aith-ai-chat__collapse:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
	color: rgba(248, 250, 252, 0.96);
}

.aith-ai-chat__shell.is-sidebar-collapsed .aith-ai-chat__new-ico,
.aith-ai-chat__shell.is-sidebar-collapsed .aith-ai-chat__collapse-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	pointer-events: none;
	transition: none;
}

.aith-ai-chat__shell.is-sidebar-collapsed .aith-ai-chat__new-ico {
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1;
}

.aith-ai-chat__shell.is-sidebar-collapsed .aith-ai-chat__collapse-ico {
	transform: scaleX(-1);
}

.aith-ai-chat__shell.is-sidebar-collapsed .aith-ai-chat__collapse-ico svg {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
}

.aith-ai-chat__shell.is-sidebar-collapsed .aith-ai-chat__new:hover .aith-ai-chat__new-ico,
.aith-ai-chat__shell.is-sidebar-collapsed .aith-ai-chat__collapse:hover .aith-ai-chat__collapse-ico {
	background: none;
}

/* 对话历史侧栏：透明底 + 一条细分割线 */
.aith-ai-chat__sidebar {
	flex: 0 0 var(--ai-chat-sidebar-w);
	width: var(--ai-chat-sidebar-w);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem 0.75rem 0.75rem;
	border-right: 1px solid var(--ai-chat-line);
	background: transparent;
	transition: width 0.24s ease, flex-basis 0.24s ease, padding 0.24s ease;
	overflow: hidden;
}

.aith-ai-chat__new {
	order: 1;
}

.aith-ai-chat__history-head {
	order: 2;
}

.aith-ai-chat__history {
	order: 3;
}

.aith-ai-chat__collapse {
	order: 4;
}

.aith-ai-chat__history-mini-ico {
	display: none;
}

.aith-ai-chat__history-text {
	display: inline;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aith-ai-chat__new {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	width: 100%;
	margin: 0 0 0.35rem;
	padding: 0.55rem 0.85rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
	color: rgba(236, 244, 255, 0.94);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease;
}

.aith-ai-chat__new:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
}

.aith-ai-chat__new-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.1rem;
	height: 1.1rem;
	font-size: 1rem;
	line-height: 1;
}

.aith-ai-chat__history-head {
	margin: 0.35rem 0 0.25rem;
	padding: 0 0.35rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: rgba(148, 163, 184, 0.65);
	letter-spacing: 0.02em;
}

.aith-ai-chat__history {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 0 2px 0.5rem;
	scrollbar-width: thin;
}

.aith-ai-chat__history-group {
	margin-bottom: 0.65rem;
}

.aith-ai-chat__history-group-title {
	margin: 0 0 0.35rem;
	padding: 0 0.4rem;
	font-size: 0.6875rem;
	font-weight: 600;
	color: rgba(148, 163, 184, 0.48);
}

.aith-ai-chat__history-item {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	width: 100%;
	margin: 0 0 0.2rem;
	padding: 0;
	border: 0;
	background: transparent;
	border-radius: 10px;
}

.aith-ai-chat__history-item.is-active .aith-ai-chat__history-btn {
	background: rgba(255, 255, 255, 0.07);
	color: rgba(248, 250, 252, 0.98);
}

.aith-ai-chat__history-btn {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.48rem 0.55rem;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: rgba(203, 213, 225, 0.88);
	font: inherit;
	font-size: 0.8125rem;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	transition: background 0.16s ease, color 0.16s ease;
}

.aith-ai-chat__history-btn:hover {
	background: rgba(255, 255, 255, 0.05);
	color: rgba(248, 250, 252, 0.96);
}

.aith-ai-chat__history-more {
	flex-shrink: 0;
	width: 1.65rem;
	height: 1.65rem;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: rgba(148, 163, 184, 0.65);
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.16s ease, background 0.16s ease;
}

.aith-ai-chat__history-item:hover .aith-ai-chat__history-more,
.aith-ai-chat__history-item:focus-within .aith-ai-chat__history-more {
	opacity: 1;
}

.aith-ai-chat__history-more:hover {
	background: rgba(255, 255, 255, 0.06);
}

.aith-ai-chat__history-empty {
	margin: 0.5rem 0.35rem;
	font-size: 0.8125rem;
	color: rgba(148, 163, 184, 0.55);
}

.aith-ai-chat__collapse {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.45rem;
	margin-top: auto;
	padding: 0.45rem 0.5rem;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: rgba(148, 163, 184, 0.75);
	font: inherit;
	font-size: 0.8125rem;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.aith-ai-chat__collapse-ico {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 0;
	background: none;
	color: inherit;
	transition: none;
}

.aith-ai-chat__collapse-ico svg {
	display: block;
	width: 1.1rem;
	height: 1.1rem;
}

.aith-ai-chat__collapse:hover {
	background: rgba(255, 255, 255, 0.05);
	color: rgba(226, 232, 240, 0.95);
}

.aith-ai-chat__collapse:hover .aith-ai-chat__collapse-ico {
	background: none;
}

.aith-ai-chat__main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

/* 默认：欢迎区居中 + 底部全宽输入 */
.aith-ai-chat__workspace {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.aith-ai-chat__chat-col {
	flex: 1;
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.aith-ai-chat__output {
	display: none;
}

/* 有输出：图2 分栏（左对话 + 右文档，输入框仍在左下） */
.aith-ai-chat__shell.has-output .aith-ai-chat__main {
	display: grid;
	grid-template-columns: minmax(300px, 40%) minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr) auto;
	min-height: 0;
}

.aith-ai-chat__shell.has-output .aith-ai-chat__workspace {
	display: contents;
}

.aith-ai-chat__shell.has-output .aith-ai-chat__chat-col {
	grid-column: 1;
	grid-row: 1;
	min-height: 0;
	border-right: 1px solid var(--ai-chat-line);
}

.aith-ai-chat__shell.has-output .aith-ai-chat__output {
	display: flex;
	flex-direction: column;
	grid-column: 2;
	grid-row: 1 / -1;
	min-height: 0;
	min-width: 0;
	background: rgba(255, 255, 255, 0.015);
	border-left: 1px solid var(--ai-chat-line);
	transform-origin: left center;
	will-change: transform, opacity;
}

@keyframes aith-ai-chat-output-enter {
	from {
		opacity: 0;
		transform: scale(0.94) translateX(10px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateX(0);
	}
}

.aith-ai-chat__output.is-output-enter {
	animation: aith-ai-chat-output-enter 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.aith-ai-chat__output.is-output-enter .aith-ai-chat__output-panel {
	animation: aith-ai-chat-output-panel-enter 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

@keyframes aith-ai-chat-output-panel-enter {
	from {
		opacity: 0;
		transform: scale(0.97);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.aith-ai-chat__output.is-output-enter,
	.aith-ai-chat__output.is-output-enter .aith-ai-chat__output-panel {
		animation: none;
	}
}

.aith-ai-chat__shell.has-output .aith-ai-chat__composer-wrap {
	grid-column: 1;
	grid-row: 2;
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0 var(--ai-chat-stage-pad-x) clamp(14px, 2vh, 22px);
	border-right: 1px solid var(--ai-chat-line);
	box-sizing: border-box;
}

.aith-ai-chat__shell.has-output .aith-ai-chat__thread,
.aith-ai-chat__shell.has-output .aith-ai-chat__welcome-slot,
.aith-ai-chat__shell.has-output .aith-ai-chat__workbench-slot,
.aith-ai-chat__shell.has-output .aith-ai-chat__ready-slot {
	max-width: 100%;
}

.aith-ai-chat__output-empty {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem 1.5rem;
	text-align: center;
}

.aith-ai-chat__shell.has-output .aith-ai-chat__output-empty {
	display: none;
}

.aith-ai-chat__output-empty-title {
	margin: 0 0 0.45rem;
	font-size: 1rem;
	font-weight: 700;
	color: rgba(226, 232, 240, 0.88);
}

.aith-ai-chat__output-empty-hint {
	margin: 0;
	max-width: 16rem;
	font-size: 0.8125rem;
	line-height: 1.55;
	color: rgba(148, 163, 184, 0.65);
}

.aith-ai-chat__output-panel {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.aith-ai-chat__output-panel[hidden] {
	display: none !important;
}

.aith-ai-chat__output-head {
	padding: 0.65rem 1rem 0.35rem;
	border-bottom: 1px solid var(--ai-chat-line);
	flex-shrink: 0;
}

.aith-ai-chat__output-editor {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.aith-ai-chat__output-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.45rem 0.75rem;
	border-bottom: 1px solid var(--ai-chat-line);
	flex-shrink: 0;
	flex-wrap: wrap;
}

.aith-ai-chat__output-toolbar-group,
.aith-ai-chat__output-toolbar-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.aith-ai-chat__output-fmt {
	min-width: 2rem;
	height: 2rem;
	padding: 0 0.45rem;
	border: 0;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.05);
	color: rgba(226, 232, 240, 0.94);
	font: inherit;
	font-size: 0.875rem;
	line-height: 1;
	cursor: pointer;
}

.aith-ai-chat__output-fmt:hover,
.aith-ai-chat__output-fmt.is-active {
	background: rgba(56, 189, 248, 0.14);
	color: rgba(248, 250, 252, 0.98);
}

.aith-ai-chat__output-u {
	text-decoration: underline;
}

.aith-ai-chat__output-toolbar-sep {
	width: 1px;
	height: 1.25rem;
	margin: 0 0.15rem;
	background: rgba(255, 255, 255, 0.1);
}

.aith-ai-chat__output-mode {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	color: rgba(56, 189, 248, 0.95);
	letter-spacing: 0.02em;
}

.aith-ai-chat__output-title {
	margin: 0.25rem 0 0;
	font-size: 0.9375rem;
	font-weight: 700;
	color: rgba(248, 250, 252, 0.96);
	line-height: 1.35;
}

.aith-ai-chat__output-time {
	margin: 0.2rem 0 0;
	font-size: 0.75rem;
	color: rgba(148, 163, 184, 0.72);
}

.aith-ai-chat__output-tools {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	flex-shrink: 0;
}

.aith-ai-chat__output-tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.05);
	color: rgba(203, 213, 225, 0.92);
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.16s ease, color 0.16s ease;
}

.aith-ai-chat__output-tool svg {
	display: block;
	flex-shrink: 0;
}

.aith-ai-chat__output-tool:hover {
	background: rgba(255, 255, 255, 0.1);
	color: rgba(248, 250, 252, 0.98);
}

.aith-ai-chat__output-body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 1.25rem 1.35rem 1.75rem;
	font-size: var(--ai-chat-body-size);
	line-height: var(--ai-chat-body-lh);
	color: rgba(226, 236, 248, 0.96);
	scrollbar-width: thin;
	outline: none;
}

.aith-ai-chat__output-body:focus {
	box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.2);
}

.aith-ai-chat__output-body.aith-md h1 {
	font-size: 1.45rem;
	margin: 0.85rem 0 0.55rem;
}

.aith-ai-chat__output-body.aith-md h2 {
	font-size: 1.28rem;
	margin: 0.75rem 0 0.5rem;
}

.aith-ai-chat__output-body.aith-md h3 {
	font-size: 1.12rem;
	margin: 0.65rem 0 0.45rem;
	color: rgba(165, 243, 252, 0.98);
}

.aith-ai-chat__output-body.aith-md h4 {
	font-size: 1.02rem;
	margin: 0.55rem 0 0.4rem;
	color: rgba(186, 230, 253, 0.95);
}

.aith-ai-chat__output-body.aith-md p {
	margin: 0.5rem 0;
	font-size: var(--ai-chat-body-size);
}

.aith-ai-chat__output-body.aith-md .aith-md-section {
	font-size: 1.15rem;
	font-weight: 700;
	color: rgba(254, 240, 138, 0.98);
	margin: 0.85rem 0 0.45rem;
}

.aith-ai-chat__output-body.aith-md ul,
.aith-ai-chat__output-body.aith-md ol {
	margin: 0.5rem 0 0.75rem 1.35rem;
	font-size: var(--ai-chat-body-size);
}

.aith-ai-chat__output-body.aith-md li {
	margin: 0.35rem 0;
}

.aith-ai-chat__output-body.aith-md strong {
	color: rgba(254, 240, 138, 0.98);
	font-weight: 700;
}

.aith-ai-chat__output-body.aith-md .aith-md-table-wrap {
	margin: 0.65rem 0 1rem;
	overflow-x: auto;
}

.aith-ai-chat__output-body.aith-md .aith-md-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
}

.aith-ai-chat__output-body.aith-md .aith-md-table th,
.aith-ai-chat__output-body.aith-md .aith-md-table td {
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 0.55rem 0.65rem;
	text-align: left;
	vertical-align: top;
}

.aith-ai-chat__output-body.aith-md .aith-md-table th {
	background: rgba(255, 255, 255, 0.06);
	font-weight: 700;
}

.aith-ai-chat__msg-intro {
	margin: 0;
	font-size: var(--ai-chat-body-size);
	line-height: var(--ai-chat-body-lh);
	color: rgba(203, 213, 225, 0.88);
}

.aith-ai-chat__doc-card {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	max-width: 360px;
	margin: 0.15rem 0 0;
	padding: 0.85rem 0.95rem;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.04);
	text-align: left;
	cursor: pointer;
	transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.aith-ai-chat__doc-card:hover,
.aith-ai-chat__doc-card.is-active {
	border-color: rgba(56, 189, 248, 0.35);
	background: rgba(56, 189, 248, 0.08);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.aith-ai-chat__doc-card-ico {
	flex-shrink: 0;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 10px;
	background: rgba(37, 99, 235, 0.35);
	color: rgba(191, 219, 254, 0.98);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.aith-ai-chat__doc-card-ico svg {
	display: block;
}

.aith-ai-chat__doc-card-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.aith-ai-chat__doc-card-title {
	font-size: var(--ai-chat-body-size);
	font-weight: 700;
	color: rgba(248, 250, 252, 0.96);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.aith-ai-chat__doc-card-time {
	font-size: 0.75rem;
	color: rgba(148, 163, 184, 0.75);
}

.aith-ai-chat__thread-wrap {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: none;
	padding: clamp(20px, 3vh, 36px) var(--ai-chat-stage-pad-x) 12px;
	overflow: hidden;
	box-sizing: border-box;
}

.aith-ai-chat__welcome-slot,
.aith-ai-chat__ready-slot,
.aith-ai-chat__workbench-slot,
.aith-ai-chat__welcome,
.aith-ai-chat__thread,
.aith-ai-chat__followups {
	width: 100%;
	max-width: var(--ai-chat-content-max);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.aith-ai-chat__welcome {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem 1rem;
}

.aith-ai-chat__welcome[hidden] {
	display: none !important;
}

.aith-ai-chat__welcome-title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.5rem, 2.8vw, 2rem);
	font-weight: 700;
	color: rgba(248, 250, 252, 0.96);
	letter-spacing: -0.02em;
}

.aith-ai-chat__welcome-hint {
	margin: 0;
	max-width: 32rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: rgba(148, 163, 184, 0.72);
}

.aith-ai-chat__thread {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding: 0.25rem 0 1rem;
	scrollbar-width: thin;
}

.aith-ai-chat__thread[hidden] {
	display: none !important;
}

.aith-ai-chat__msg {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	max-width: 100%;
}

.aith-ai-chat__msg--user {
	align-self: stretch;
	align-items: stretch;
	width: 100%;
	max-width: none;
	margin: 0;
}

.aith-ai-chat__user-card {
	position: relative;
	overflow: hidden;
	width: 100%;
	border-radius: 0.85rem;
	border: 1px solid rgba(45, 212, 191, 0.26);
	background:
		radial-gradient(circle at 88% 12%, rgba(34, 211, 238, 0.1), transparent 42%),
		radial-gradient(circle at 8% 88%, rgba(99, 102, 241, 0.12), transparent 44%),
		linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(14, 165, 233, 0.08)),
		rgba(15, 23, 42, 0.58);
	box-shadow:
		0 8px 28px rgba(15, 23, 42, 0.24),
		inset 0 1px 0 rgba(255, 255, 255, 0.05);
	padding: clamp(0.85rem, 2vw, 1rem) clamp(0.95rem, 2.2vw, 1.1rem);
	animation: aithAmWbIn 0.45s ease;
}

.aith-ai-chat__user-card-glow {
	position: absolute;
	inset: -35% -15%;
	background: radial-gradient(circle, rgba(34, 211, 238, 0.08), transparent 62%);
	pointer-events: none;
}

.aith-ai-chat__user-card-head {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.75rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.aith-ai-chat__user-card-avatar {
	flex-shrink: 0;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.78rem;
	font-weight: 800;
	color: #ecfeff;
	background: linear-gradient(145deg, #0e7490, #4f46e5);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.12),
		0 4px 14px rgba(15, 23, 42, 0.28);
}

.aith-ai-chat__user-card-meta {
	display: flex;
	flex-direction: column;
	gap: 0.12rem;
	min-width: 0;
}

.aith-ai-chat__user-card-badge {
	font-size: 0.8125rem;
	font-weight: 700;
	color: rgba(248, 250, 252, 0.96);
	line-height: 1.35;
}

.aith-ai-chat__user-card-sub {
	font-size: 0.72rem;
	font-weight: 500;
	color: rgba(148, 163, 184, 0.82);
	line-height: 1.4;
}

.aith-ai-chat__user-card-body {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
}

.aith-ai-chat__user-card.is-text-only .aith-ai-chat__user-card-body {
	display: block;
}

.aith-ai-chat__user-card-media {
	flex-shrink: 0;
	margin: 0;
}

.aith-ai-chat__user-card-media img {
	display: block;
	width: 5.25rem;
	height: 5.25rem;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.32);
}

.aith-ai-chat__user-card-text {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: rgba(241, 245, 249, 0.94);
	white-space: pre-wrap;
	word-break: break-word;
}

.aith-ai-chat__user-card.is-has-image.is-has-text .aith-ai-chat__user-card-text {
	padding-top: 0.15rem;
}

.aith-ai-chat__user-card.is-text-only .aith-ai-chat__user-card-text {
	font-size: var(--ai-chat-body-size);
	line-height: var(--ai-chat-body-lh);
}

@media (max-width: 520px) {
	.aith-ai-chat__user-card.is-has-image.is-has-text .aith-ai-chat__user-card-body {
		flex-direction: column;
	}

	.aith-ai-chat__user-card-media img {
		width: 100%;
		height: auto;
		max-height: 11rem;
	}
}

.aith-ai-chat__msg--assistant {
	align-self: flex-start;
}

.aith-ai-chat__bubble {
	margin: 0;
	padding: 0.72rem 0.92rem;
	border-radius: 14px;
	font-size: var(--ai-chat-body-size);
	line-height: var(--ai-chat-body-lh);
	white-space: pre-wrap;
	word-break: break-word;
}

.aith-ai-chat__msg--assistant .aith-ai-chat__bubble {
	padding-left: 0;
	padding-right: 0;
	background: transparent;
	border: 0;
	color: rgba(226, 236, 248, 0.94);
}

.aith-ai-chat__msg--assistant .aith-ai-chat__bubble strong {
	color: rgba(248, 250, 252, 0.98);
	font-weight: 700;
}

.aith-ai-chat__msg-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.15rem;
	margin-top: 0.35rem;
	opacity: 0.55;
}

.aith-ai-chat__msg:hover .aith-ai-chat__msg-actions,
.aith-ai-chat__msg--error .aith-ai-chat__msg-actions {
	opacity: 1;
}

.aith-ai-chat__bubble--error {
	color: rgba(252, 165, 165, 0.95);
}

.aith-ai-chat__msg-act {
	border: 0;
	border-radius: 8px;
	padding: 0.28rem 0.45rem;
	background: transparent;
	color: rgba(148, 163, 184, 0.9);
	font: inherit;
	font-size: 0.75rem;
	cursor: pointer;
}

.aith-ai-chat__msg-act:hover {
	background: rgba(255, 255, 255, 0.06);
	color: rgba(226, 232, 240, 0.95);
}

.aith-ai-chat__typing {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.875rem;
	color: rgba(148, 163, 184, 0.85);
}

.aith-ai-chat__typing-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(0, 229, 255, 0.75);
	animation: aith-ai-chat-pulse 1s ease-in-out infinite;
}

.aith-ai-chat__typing-dot:nth-child(2) {
	animation-delay: 0.15s;
}

.aith-ai-chat__typing-dot:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes aith-ai-chat-pulse {
	0%,
	100% {
		opacity: 0.35;
		transform: scale(0.85);
	}
	50% {
		opacity: 1;
		transform: scale(1);
	}
}

.aith-ai-chat__followups {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	padding: 0 0 0.75rem;
}

.aith-ai-chat__followups[hidden] {
	display: none !important;
}

.aith-ai-chat__followup {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.42rem 0.72rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.02);
	color: rgba(203, 213, 225, 0.92);
	font: inherit;
	font-size: 0.8125rem;
	line-height: 1.3;
	cursor: pointer;
	transition: border-color 0.16s ease, background 0.16s ease;
}

.aith-ai-chat__followup:hover {
	border-color: rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.05);
}

.aith-ai-chat__followup-ico {
	color: rgba(0, 229, 255, 0.85);
	font-size: 0.75rem;
}

/* ── 底部输入：与聚合页同款，弱化外框光晕 ── */
.aith-ai-chat__composer-wrap {
	flex-shrink: 0;
	width: 100%;
	max-width: var(--ai-chat-content-max);
	margin: 0 auto;
	padding: 0 var(--ai-chat-stage-pad-x) clamp(10px, 1.2vh, 14px);
	box-sizing: border-box;
}

.aith-ai-chat-composer {
	margin: 0;
	max-width: none;
	width: 100%;
}

body.aith-ai-chat-page .aith-ai-chat-composer.aith-tool-hub-portal__prompt-card {
	padding: clamp(14px, 1.8vw, 20px) clamp(16px, 2vw, 22px);
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.02);
	box-shadow: none;
}

body.aith-ai-chat-page .aith-ai-chat-composer.aith-tool-hub-portal__prompt-card:focus-within {
	border-color: rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.03);
	box-shadow: none;
}

body.aith-ai-chat-page .aith-ai-chat__input.aith-tool-hub-portal__prompt-ta {
	min-height: 56px;
	max-height: 160px;
	font-size: 1rem;
	padding-bottom: 0.55rem;
}

.aith-ai-chat__prompt-bar {
	padding-top: 0.35rem !important;
	align-items: center;
}

body.aith-ai-chat-page #aith-ai-chat-upload.aith-tool-hub-portal__upload {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 2.35rem;
	padding: 0.42rem 0.88rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(248, 250, 252, 0.96);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

body.aith-ai-chat-page #aith-ai-chat-upload.aith-tool-hub-portal__upload:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.18);
	color: #fff;
}

body.aith-ai-chat-page #aith-ai-chat-upload .aith-tool-hub-portal__upload-ico svg {
	width: 16px;
	height: 16px;
}

body.aith-ai-chat-page #aith-ai-chat-upload .aith-tool-hub-portal__upload-label {
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
}

body.aith-ai-chat-page #aith-ai-chat-upload.is-has-image {
	width: 2.75rem;
	min-width: 2.75rem;
	height: 2.35rem;
	min-height: 2.35rem;
	padding: 0;
	border-radius: 999px;
	overflow: hidden;
}

body.aith-ai-chat-page #aith-ai-chat-upload.is-has-image .aith-tool-hub-portal__upload-ico,
body.aith-ai-chat-page #aith-ai-chat-upload.is-has-image .aith-tool-hub-portal__upload-label {
	opacity: 0;
	pointer-events: none;
}

body.aith-ai-chat-page #aith-ai-chat-upload.is-has-image .aith-tool-hub-portal__upload-preview {
	display: block !important;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
	border-radius: inherit;
}

.aith-ai-chat__attach-preview {
	padding: 0 0 0.55rem;
}

.aith-ai-chat__attach-preview[hidden] {
	display: none !important;
}

.aith-ai-chat__attach-preview-inner {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.35rem 0.45rem 0.35rem 0.35rem;
	border-radius: 12px;
	border: 1px solid rgba(34, 211, 238, 0.22);
	background: rgba(15, 23, 42, 0.45);
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.28);
}

.aith-ai-chat__attach-preview-img {
	display: block;
	width: 3.25rem;
	height: 3.25rem;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.aith-ai-chat__attach-preview-label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: rgba(165, 243, 252, 0.92);
	white-space: nowrap;
}

.aith-ai-chat__attach-preview-remove {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.65rem;
	height: 1.65rem;
	margin-left: 0.15rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(226, 232, 240, 0.88);
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.16s ease, color 0.16s ease;
}

.aith-ai-chat__attach-preview-remove:hover {
	background: rgba(248, 113, 113, 0.22);
	color: #fecaca;
}

.aith-ai-chat__send-wrap .aith-generate-submit__label {
	font-size: 0.875rem;
}

body.aith-ai-chat-page .aith-ai-chat__send.aith-tool-hub-portal__go {
	min-height: 2.35rem;
	padding: 0.42rem 0.88rem;
	font-size: 0.875rem;
	font-weight: 600;
	box-shadow: 0 4px 16px rgba(0, 229, 255, 0.22);
}

@media (max-width: 900px) {
	.aith-ai-chat {
		--ai-chat-content-max: calc(100% - 24px);
	}

	.aith-ai-chat__shell {
		flex-direction: row;
	}

	.aith-ai-chat__sidebar {
		flex: 0 0 var(--ai-chat-sidebar-w);
		width: var(--ai-chat-sidebar-w);
		max-height: none;
		border-right: 1px solid var(--ai-chat-line);
		border-bottom: 0;
	}

	.aith-ai-chat__shell.is-sidebar-collapsed .aith-ai-chat__sidebar {
		max-height: none;
	}
}

/* ── AI 电商营销 · 对话页大气欢迎区 ── */
.aith-ai-chat--aimarketing .aith-ai-chat__thread-wrap {
	flex: 1;
	min-height: 0;
	align-items: center;
	justify-content: center;
	padding: clamp(12px, 2vh, 28px) var(--ai-chat-stage-pad-x) 4px;
	overflow: hidden;
}

.aith-ai-chat--aimarketing .aith-ai-chat__thread-wrap:has(.aith-ai-chat__welcome-slot:not([hidden])) {
	justify-content: flex-start;
	padding-top: 1rem;
	padding-bottom: 4px;
}

.aith-ai-chat__shell.has-output.aith-ai-chat--aimarketing .aith-ai-chat__thread-wrap,
.aith-ai-chat--aimarketing .aith-ai-chat__thread-wrap:has(.aith-ai-chat__thread:not([hidden])),
.aith-ai-chat--aimarketing .aith-ai-chat__thread-wrap:has(.aith-ai-chat__workbench-slot:not([hidden])),
.aith-ai-chat--aimarketing .aith-ai-chat__thread-wrap:has(.aith-ai-chat__ready-slot:not([hidden])) {
	align-items: center;
	justify-content: flex-start;
	padding: 0.85rem var(--ai-chat-stage-pad-x) 0.5rem;
	overflow-y: auto;
}

.aith-ai-chat__shell.has-output.aith-ai-chat--aimarketing .aith-ai-chat__thread-wrap {
	padding: 0.85rem var(--ai-chat-stage-pad-x) 0.5rem;
}

.aith-ai-chat__welcome-slot {
	width: 100%;
	max-width: var(--ai-chat-content-max);
	margin: 0 auto;
	flex: 0 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	overflow: hidden;
}

.aith-ai-chat__welcome-slot[hidden] {
	display: none !important;
}

.aith-aimarketing-welcome--chat {
	width: 100%;
	padding: 0;
	text-align: center;
}

.aith-aimarketing-welcome--chat .aith-aimarketing-welcome__hero {
	margin: 0 0 0.65rem;
	font-size: clamp(1.75rem, 3.6vw, 2.35rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.03em;
	color: rgba(248, 250, 252, 0.98);
}

.aith-aimarketing-welcome--chat .aith-aimarketing-welcome__lead {
	margin: 0 auto clamp(0.85rem, 2vh, 1.35rem);
	max-width: 34rem;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: rgba(148, 163, 184, 0.78);
}

.aith-aimarketing-examples--chat {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem 0.85rem;
	width: 100%;
	max-width: none;
	margin: 0;
	text-align: left;
}

.aith-aimarketing-example--chat {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: 0.85rem 0.9rem 0.9rem;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.aith-aimarketing-example--chat:hover {
	border-color: rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.045);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.aith-aimarketing-example--chat .aith-aimarketing-example__title {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 700;
	color: rgba(248, 250, 252, 0.96);
	line-height: 1.35;
}

.aith-aimarketing-example--chat .aith-aimarketing-example__badge {
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.94);
	color: #334155;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.72rem;
	font-weight: 800;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.aith-aimarketing-example--chat .aith-aimarketing-example__prompts {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.aith-aimarketing-example--chat .aith-aimarketing-example__prompt {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	width: 100%;
	margin: 0;
	padding: 0.72rem 0.85rem;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.07);
	background: rgba(255, 255, 255, 0.04);
	text-align: left;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: rgba(203, 213, 225, 0.9);
	cursor: pointer;
	transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.aith-aimarketing-example--chat .aith-aimarketing-example__prompt:hover {
	border-color: rgba(0, 229, 255, 0.22);
	background: rgba(0, 229, 255, 0.06);
	color: rgba(248, 250, 252, 0.96);
}

.aith-aimarketing-example--chat .aith-aimarketing-example__prompt-ico {
	flex-shrink: 0;
	display: inline-flex;
	margin-top: 0.1rem;
	color: rgba(56, 189, 248, 0.95);
	filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.45));
}

.aith-aimarketing-example--chat .aith-aimarketing-sparkle {
	display: block;
}

.aith-aimarketing-example--chat .aith-aimarketing-example__prompt-txt {
	flex: 1;
	min-width: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.aith-ai-chat__workbench-slot {
	flex-shrink: 0;
	margin-bottom: 1rem;
}

.aith-ai-chat__workbench-slot[hidden] {
	display: none !important;
}

.aith-ai-chat__ready-slot {
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(8px, 2vh, 24px) 0;
}

.aith-ai-chat__ready-slot[hidden] {
	display: none !important;
}

.aith-aimarketing-ready {
	width: 100%;
}

.aith-aimarketing-ready[hidden] {
	display: none !important;
}

.aith-ai-chat__ready-slot .aith-am-wb--ready {
	position: relative;
	overflow: hidden;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 2.8vw, 1.45rem);
	border-color: rgba(45, 212, 191, 0.32);
	background:
		radial-gradient(circle at 12% 18%, rgba(34, 211, 238, 0.14), transparent 42%),
		radial-gradient(circle at 88% 72%, rgba(99, 102, 241, 0.16), transparent 46%),
		linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(14, 165, 233, 0.1)),
		rgba(15, 23, 42, 0.58);
	box-shadow:
		0 10px 36px rgba(15, 23, 42, 0.32),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
	animation: aithAmWbIn 0.55s ease;
}

.aith-am-wb--ready .aith-am-wb__glow {
	position: absolute;
	inset: -40% -20%;
	background: radial-gradient(circle, rgba(34, 211, 238, 0.12), transparent 62%);
	animation: aithAmReadyGlow 4.5s ease-in-out infinite;
	pointer-events: none;
}

@keyframes aithAmReadyGlow {
	0%, 100% { opacity: 0.55; transform: scale(1); }
	50% { opacity: 1; transform: scale(1.06); }
}

.aith-am-wb--ready .aith-am-wb__avatar-ring {
	border-color: rgba(45, 212, 191, 0.42);
	animation: aithAmReadySpin 5.5s linear infinite;
}

@keyframes aithAmReadySpin {
	to { transform: rotate(360deg); }
}

.aith-am-wb--ready .aith-am-wb__avatar-core {
	background: linear-gradient(145deg, #0891b2, #6366f1);
}

.aith-am-wb--ready .aith-am-wb__badge {
	color: rgba(110, 231, 183, 0.95);
}

.aith-am-wb--ready .aith-am-wb__role {
	font-size: 1.05rem;
	font-weight: 700;
	color: rgba(248, 250, 252, 0.98);
}

.aith-am-wb--ready .aith-am-wb__task {
	font-size: 0.875rem;
	color: rgba(226, 232, 240, 0.92);
}

.aith-am-wb--ready .aith-am-wb__progress-bar {
	width: 100%;
	animation: aithAmReadyProgress 2.4s ease-in-out infinite;
}

@keyframes aithAmReadyProgress {
	0%, 100% { opacity: 0.72; filter: brightness(0.95); }
	50% { opacity: 1; filter: brightness(1.08); }
}

.aith-am-wb--ready .aith-am-wb__ready-thumb {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.aith-am-wb--ready .aith-am-wb__ready-thumb[hidden] {
	display: none !important;
}

.aith-am-wb--ready .aith-am-wb__ready-thumb img {
	display: block;
	width: 3.5rem;
	height: 3.5rem;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.35);
}

.aith-am-wb--ready .aith-am-wb__ready-thumb-label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: rgba(165, 243, 252, 0.9);
}

.aith-ai-chat__workbench-slot .aith-aimarketing-workbench {
	max-width: none;
}

.aith-ai-chat__msg-who {
	font-size: 0.75rem;
	font-weight: 600;
	color: rgba(148, 163, 184, 0.72);
	padding: 0 0.15rem;
}

.aith-ai-chat__bubble.aith-md {
	white-space: normal;
	font-size: var(--ai-chat-body-size);
	line-height: var(--ai-chat-body-lh);
}

.aith-ai-chat__bubble.aith-md p,
.aith-ai-chat__bubble.aith-md li {
	font-size: var(--ai-chat-body-size);
	line-height: var(--ai-chat-body-lh);
}

.aith-ai-chat__unavailable {
	max-width: min(640px, 100%);
	margin: clamp(48px, 12vh, 120px) auto 0;
	padding: 1rem 1.25rem;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
	color: rgba(203, 213, 225, 0.88);
	text-align: center;
	font-size: 0.9375rem;
}

.aith-ai-chat__composer-tools {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.aith-ai-chat__composer-mid {
	flex: 1;
	display: flex;
	justify-content: center;
	min-width: 0;
}

.aith-ai-chat__mode-seg {
	display: inline-flex;
	align-items: center;
	padding: 3px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
}

.aith-ai-chat__mode-btn {
	border: 0;
	background: transparent;
	color: rgba(148, 163, 184, 0.85);
	font: inherit;
	font-size: 0.75rem;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
}

.aith-ai-chat__mode-btn.is-active {
	background: rgba(0, 229, 255, 0.12);
	color: rgba(236, 254, 255, 0.96);
}

.aith-ai-chat__mode-beta {
	margin-left: 0.2rem;
	font-size: 0.625rem;
	opacity: 0.75;
}

.aith-ai-chat__skill-wrap {
	position: relative;
}

.aith-ai-chat__skill-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.38rem 0.65rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
	color: rgba(226, 232, 240, 0.92);
	font: inherit;
	font-size: 0.8125rem;
	cursor: pointer;
}

.aith-ai-chat__skill-btn:hover {
	background: rgba(255, 255, 255, 0.06);
}

.aith-ai-chat__skill-btn-ico {
	display: inline-flex;
	color: rgba(0, 229, 255, 0.85);
}

.aith-ai-chat__skill-pop {
	position: fixed;
	width: min(420px, calc(100vw - 24px));
	max-height: min(70vh, 480px);
	overflow: auto;
	padding: 0.85rem;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(15, 23, 42, 0.98);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.aith-ai-chat__skill-pop-head {
	margin-bottom: 0.35rem;
}

.aith-ai-chat__skill-pop-title {
	font-size: 0.9375rem;
	font-weight: 700;
	color: rgba(248, 250, 252, 0.96);
}

.aith-ai-chat__skill-pop-lead {
	margin: 0 0 0.65rem;
	font-size: 0.8125rem;
	color: rgba(148, 163, 184, 0.75);
}

.aith-ai-chat__skill-pop-tools {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.45rem;
}

.aith-ai-chat__skill-tool {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.55rem 0.65rem;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(255, 255, 255, 0.02);
	color: rgba(226, 232, 240, 0.92);
	font: inherit;
	font-size: 0.8125rem;
	text-align: left;
	cursor: pointer;
}

.aith-ai-chat__skill-tool:hover {
	border-color: rgba(0, 229, 255, 0.25);
	background: rgba(0, 229, 255, 0.06);
}

.aith-ai-chat__skill-tool-ico {
	display: inline-flex;
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	align-items: center;
	justify-content: center;
}

@media (max-width: 900px) {
	.aith-ai-chat__composer-mid {
		display: none;
	}

	.aith-ai-chat__skill-pop-tools {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.aith-aimarketing-examples--chat {
		grid-template-columns: 1fr;
	}

	.aith-aimarketing-welcome--chat .aith-aimarketing-welcome__hero {
		font-size: 1.55rem;
	}
}

@media (max-height: 860px) {
	.aith-aimarketing-welcome--chat .aith-aimarketing-welcome__hero {
		font-size: clamp(1.45rem, 2.6vw, 1.95rem);
		margin-bottom: 0.45rem;
	}

	.aith-aimarketing-welcome--chat .aith-aimarketing-welcome__lead {
		margin-bottom: 0.75rem;
		font-size: 0.875rem;
		line-height: 1.5;
	}

	.aith-aimarketing-examples--chat {
		gap: 0.55rem 0.7rem;
	}

	.aith-aimarketing-example--chat {
		gap: 0.45rem;
		padding: 0.7rem 0.78rem 0.75rem;
	}

	.aith-aimarketing-example--chat .aith-aimarketing-example__prompt {
		padding: 0.42rem 0.5rem;
	}
}

@media (max-width: 900px) {
	.aith-ai-chat__shell.has-output .aith-ai-chat__main {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(0, 38vh) minmax(0, 1fr) auto;
	}

	.aith-ai-chat__shell.has-output .aith-ai-chat__chat-col {
		grid-column: 1;
		grid-row: 1;
		border-right: 0;
		border-bottom: 1px solid var(--ai-chat-line);
	}

	.aith-ai-chat__shell.has-output .aith-ai-chat__output {
		grid-column: 1;
		grid-row: 2;
		border-left: 0;
		min-height: 36vh;
	}

	.aith-ai-chat__shell.has-output .aith-ai-chat__composer-wrap {
		grid-column: 1;
		grid-row: 3;
		border-right: 0;
	}
}
