/**
 * ============================================================
 *  文件名   ：app.css
 *  作用功能 ：赤兔AI智能聚合引擎（cheetoo）用户端控制台与智能对话工作台样式（严格遵循翊象UI v1.0 规范）
 * ------------------------------------------------------------
 *  作者     ：Renvir
 *  邮箱     ：pinenetcn@gmail.com
 *  公司     ：威海市颜翊网络科技有限公司
 *  日期     ：2026年10月26日 14:00
 *  版权     ：Copyright © 2026 威海市颜翊网络科技有限公司
 * ============================================================
 */
.ct-nav-label {
	padding: 0 12px;
	margin: 16px 0 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--yx-text-tertiary, #868e96);
}
.ct-nav-label:first-child {
	margin-top: 0;
}
.ct-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.ct-nav a.yx-menu-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	text-decoration: none;
	color: var(--yx-text-secondary, #5c5f66);
	border-radius: var(--yx-radius-md, 8px);
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.2s ease, color 0.2s ease;
	margin-bottom: 4px;
}
.ct-nav a.yx-menu-item:hover {
	background: var(--yx-bg-hover, #f8f9fa);
	color: var(--yx-text-primary, #161823);
}
.ct-nav a.yx-menu-item.is-active, .ct-nav a.yx-menu-item.active {
	color: var(--yx-brand-primary, #3964fe);
	background: var(--yx-brand-primary-light, #ebf0ff);
	font-weight: 600;
}
.ct-sidebar-bottom {
	margin-top: auto;
	color: var(--yx-text-tertiary, #868e96);
	font-size: 12px;
}
.ct-locale {
	width: auto;
	min-width: 108px;
	flex-shrink: 0;
	background: var(--yx-bg-paper, #ffffff);
	border: 1px solid var(--yx-border-base, #e9ecef);
	border-radius: var(--yx-radius-md, 8px);
	padding: 4px 10px;
	height: 32px;
	color: var(--yx-text-primary, #161823);
	font-size: 12px;
}
.ct-main {
	width: 100%;
	max-width: 1480px;
	margin: 0 auto;
	flex: 1;
}
.ct-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 20px;
}
.ct-heading h1 {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 6px;
	color: var(--yx-text-primary, #161823);
}
.ct-heading p {
	margin: 0;
	color: var(--yx-text-secondary, #5c5f66);
	font-size: 14px;
}
.ct-scrim {
	position: fixed;
	inset: 0;
	border: 0;
	background: rgba(22, 24, 35, 0.48);
	z-index: 95;
}
.ct-footer {
	padding: 20px 24px;
	color: var(--yx-text-tertiary, #868e96);
	font-size: 12px;
	display: flex;
	justify-content: center;
	gap: 8px 18px;
	flex-wrap: wrap;
}
.ct-footer a {
	color: inherit;
	text-decoration: none;
}
.ct-footer a:hover {
	color: var(--yx-brand-primary, #3964fe);
}

/* ============================================================
 *  智能对话工作台（重构版：左侧会话管理 + 右侧流式气泡工作区）
 * ============================================================ */
.ct-chat-layout {
	display: grid;
	grid-template-columns: 272px minmax(0, 1fr);
	height: calc(100vh - 205px);
	min-height: 580px;
	overflow: hidden;
	padding: 0 !important;
	background: var(--yx-bg-paper, #ffffff);
}
.ct-conversations {
	border-right: 1px solid var(--yx-border-light, #f1f3f5);
	padding: 18px 14px;
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: var(--yx-bg-paper, #ffffff);
}
.ct-conversations-header {
	margin-bottom: 14px;
	flex-shrink: 0;
}
.ct-conversations-header .ct-button {
	width: 100%;
	justify-content: center;
	height: 40px;
	font-weight: 600;
}
.ct-conversations-list {
	flex: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-right: 2px;
}
.ct-conversation-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	border-radius: var(--yx-radius-md, 8px);
	padding: 2px 6px 2px 2px;
	transition: background-color 0.15s ease;
}
.ct-conversation-item:hover {
	background: var(--yx-bg-hover, #f8f9fa);
}
.ct-conversation-item.is-active {
	background: var(--yx-brand-primary-light, #ebf0ff);
}
.ct-conversation {
	flex: 1;
	min-width: 0;
	background: none;
	border: 0;
	text-align: left;
	padding: 9px 10px;
	border-radius: var(--yx-radius-md, 8px);
	cursor: pointer;
	color: var(--yx-text-secondary, #5c5f66);
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.ct-conversation-title {
	font-size: 13px;
	font-weight: 500;
	color: var(--yx-text-primary, #161823);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}
.ct-conversation-time {
	font-size: 11px;
	color: var(--yx-text-tertiary, #868e96);
	display: block;
}
.ct-conversation-item.is-active .ct-conversation-title {
	color: var(--yx-brand-primary, #3964fe);
	font-weight: 600;
}
.ct-conversation-delete {
	opacity: 0;
	border: 0;
	background: transparent;
	color: var(--yx-text-tertiary, #868e96);
	width: 26px;
	height: 26px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: opacity 0.15s, background-color 0.15s, color 0.15s;
}
.ct-conversation-item:hover .ct-conversation-delete,
.ct-conversation-delete:focus-visible {
	opacity: 1;
}
.ct-conversation-delete:hover {
	background: var(--yx-danger-bg, #ffeef0);
	color: var(--yx-danger, #ff3141);
}

.ct-chat-main {
	display: flex;
	flex-direction: column;
	min-height: 0;
	min-width: 0;
	background: var(--yx-bg-paper, #ffffff);
}
.ct-chat-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 24px;
	border-bottom: 1px solid var(--yx-border-light, #f1f3f5);
	gap: 16px;
	flex-wrap: wrap;
	flex-shrink: 0;
}
.ct-chat-selectors {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.ct-assist-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 12px;
	border: 1px solid var(--yx-border-base, #dce1e8);
	border-radius: var(--yx-radius-md, 8px);
	background: var(--yx-bg-hover, #f4f6f9);
	color: var(--yx-text-secondary, #64748b);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	user-select: none;
	transition: border-color 0.18s, background-color 0.18s, color 0.18s, opacity 0.18s;
}
.ct-assist-pill.is-unchecked {
	opacity: 0.78;
}
.ct-assist-pill.is-checked,
.ct-assist-pill:has(input:checked) {
	border-color: rgba(var(--yx-brand-primary-rgb, 57, 100, 254), 0.45);
	background: var(--yx-brand-primary-light, #ebf0ff);
	color: var(--yx-brand-primary, #3964fe);
	font-weight: 600;
	opacity: 1;
}
.ct-assist-pill input {
	width: 15px;
	height: 15px;
	margin: 0;
	accent-color: var(--yx-brand-primary, #3964fe);
	cursor: pointer;
}
.ct-model-assist-box {
	width: 100%;
	padding: 12px 14px;
	margin: 0 0 16px;
	border-radius: var(--yx-radius-md, 8px);
	background: var(--yx-bg-hover, #f8f9fa);
	border: 1px solid var(--yx-border-light, #f1f3f5);
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ct-model-assist-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--yx-text-secondary, #5c5f66);
}
.ct-model-assist-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
}
.ct-model-assist-checks .ct-checkbox {
	align-items: center;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--yx-text-primary, #161823);
}
.ct-model-assist-checks .ct-checkbox input {
	margin-top: 0;
}
.ct-assist-manager-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.ct-category-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}
.ct-category-tabs {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px;
	background: var(--yx-bg-hover, #f1f3f5);
	border: 1px solid var(--yx-border-light, #e9ecef);
	border-radius: 12px;
	flex-wrap: wrap;
}
.ct-category-tab {
	border: 0;
	background: transparent;
	color: var(--yx-text-secondary, #5c5f66);
	font-size: 13px;
	font-weight: 600;
	padding: 7px 14px;
	border-radius: 9px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.18s ease;
}
.ct-category-tab:hover {
	color: var(--yx-text-primary, #161823);
}
.ct-category-tab.is-active {
	background: var(--yx-bg-paper, #ffffff);
	color: var(--yx-brand-primary, #3964fe);
	box-shadow: 0 2px 6px rgba(22, 24, 35, 0.08);
}
.ct-category-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	background: rgba(57, 100, 254, 0.1);
	color: var(--yx-brand-primary, #3964fe);
}
.ct-assist-manager-card {
	padding: 16px 18px;
	border: 1px solid var(--yx-border-light, #f1f3f5);
	border-radius: var(--yx-radius-lg, 12px);
	background: var(--yx-bg-hover, #f8f9fa);
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ct-assist-manager-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.ct-chat-toolbar select {
	width: auto;
	min-width: 210px;
	max-width: 280px;
	font-size: 13px;
	height: 36px;
	min-height: 36px;
	padding: 4px 12px;
}
.ct-messages {
	flex: 1;
	overflow-y: auto;
	padding: 24px 28px;
	scroll-behavior: smooth;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.ct-chat-welcome {
	text-align: center;
	max-width: 680px;
	margin: auto;
	padding: 28px 16px;
}
.ct-chat-welcome h2 {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--yx-text-primary, #161823);
	margin: 0 0 8px;
}
.ct-chat-welcome p {
	font-size: 14px;
	color: var(--yx-text-secondary, #5c5f66);
	margin: 0 auto 24px;
	max-width: 480px;
}
.ct-welcome-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	text-align: left;
}
.ct-welcome-card {
	padding: 14px 16px;
	border: 1px solid var(--yx-border-light, #f1f3f5);
	border-radius: var(--yx-radius-lg, 12px);
	background: var(--yx-bg-hover, #f8f9fa);
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ct-welcome-card:hover {
	border-color: var(--yx-brand-primary, #3964fe);
	background: var(--yx-brand-primary-light, #ebf0ff);
	transform: translateY(-1px);
}
.ct-welcome-card strong {
	font-size: 13px;
	font-weight: 600;
	color: var(--yx-text-primary, #161823);
}
.ct-welcome-card span {
	font-size: 12px;
	color: var(--yx-text-secondary, #5c5f66);
	line-height: 1.5;
}

/* 消息行与气泡样式 */
.ct-msg-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
}
.ct-msg-row.is-user {
	flex-direction: row-reverse;
}
.ct-msg-avatar {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	flex-shrink: 0;
	margin-top: 2px;
}
.ct-msg-row.is-assistant .ct-msg-avatar {
	background: var(--yx-brand-primary, #3964fe);
	color: #ffffff;
}
.ct-msg-row.is-user .ct-msg-avatar {
	background: var(--yx-brand-primary-light, #ebf0ff);
	color: var(--yx-brand-primary, #3964fe);
}
.ct-msg-col {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: min(82%, 820px);
	min-width: 0;
}
.ct-msg-row.is-user .ct-msg-col {
	align-items: flex-end;
	max-width: min(74%, 660px);
}
.ct-msg-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--yx-text-tertiary, #868e96);
	padding: 0 2px;
}
.ct-msg-author {
	font-weight: 600;
	color: var(--yx-text-secondary, #5c5f66);
}
.ct-msg-bubble {
	width: fit-content;
	max-width: 100%;
	padding: 14px 18px;
	border-radius: 16px;
	font-size: 14px;
	line-height: 1.75;
	overflow-wrap: anywhere;
	word-break: break-word;
}
.ct-msg-row.is-user .ct-msg-bubble {
	background: var(--yx-brand-primary, #3964fe);
	color: #ffffff;
	border-bottom-right-radius: 4px;
	white-space: pre-wrap;
}
.ct-msg-row.is-assistant .ct-msg-bubble {
	background: var(--yx-bg-hover, #f8f9fa);
	border: 1px solid var(--yx-border-light, #f1f3f5);
	color: var(--yx-text-primary, #161823);
	border-top-left-radius: 4px;
}
.ct-msg-row.is-error .ct-msg-bubble {
	background: var(--yx-danger-bg, #ffeef0);
	border-color: rgba(255, 49, 65, 0.28);
	color: var(--yx-danger, #ff3141);
}

/* AI 正在思考波浪动画 */
.ct-typing-indicator {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--yx-text-secondary, #5c5f66);
	font-size: 13px;
}
.ct-typing-dots {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.ct-typing-dots i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--yx-brand-primary, #3964fe);
	display: inline-block;
	animation: ct-dot-pulse 1.3s infinite ease-in-out;
}
.ct-typing-dots i:nth-child(2) {
	animation-delay: 0.2s;
}
.ct-typing-dots i:nth-child(3) {
	animation-delay: 0.4s;
}
@keyframes ct-dot-pulse {
	0%, 80%, 100% { transform: scale(0.65); opacity: 0.45; }
	40% { transform: scale(1); opacity: 1; }
}

/* 消息底部操作栏（复制、重新生成、Token统计） */
.ct-msg-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 2px;
	flex-wrap: wrap;
}
.ct-msg-action-btn {
	border: 0;
	background: transparent;
	color: var(--yx-text-tertiary, #868e96);
	font-size: 12px;
	padding: 3px 8px;
	border-radius: 6px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: background-color 0.15s, color 0.15s;
}
.ct-msg-action-btn:hover {
	background: var(--yx-bg-hover, #f8f9fa);
	color: var(--yx-brand-primary, #3964fe);
}
.ct-msg-tokens {
	font-size: 11px;
	color: var(--yx-text-tertiary, #868e96);
}

/* Markdown 富文本排版 */
.ct-msg-bubble p {
	margin: 0 0 10px;
}
.ct-msg-bubble p:last-child {
	margin-bottom: 0;
}
.ct-msg-bubble hr.ct-md-hr {
	border: 0;
	height: 1px;
	background: var(--yx-border-base, #e9ecef);
	margin: 14px 0;
}
.ct-msg-bubble h3, .ct-msg-bubble h4, .ct-msg-bubble h5 {
	margin: 14px 0 8px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--yx-text-primary, #161823);
}
.ct-msg-bubble h3:first-child, .ct-msg-bubble h4:first-child {
	margin-top: 0;
}
.ct-msg-bubble ul, .ct-msg-bubble ol {
	padding-left: 20px;
	margin: 8px 0;
}
.ct-msg-bubble li {
	margin: 4px 0;
}
.ct-msg-bubble blockquote {
	margin: 10px 0;
	padding: 8px 14px;
	border-left: 3px solid var(--yx-brand-primary, #3964fe);
	background: rgba(var(--yx-brand-primary-rgb, 57, 100, 254), 0.06);
	border-radius: 0 8px 8px 0;
	color: var(--yx-text-secondary, #5c5f66);
}
.ct-code-block {
	margin: 12px 0;
	border: 1px solid var(--yx-border-base, #e9ecef);
	border-radius: var(--yx-radius-md, 8px);
	overflow: hidden;
	background: #161823;
	color: #f4f4f6;
}
.ct-code-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 12px;
	background: rgba(255, 255, 255, 0.06);
	font-size: 12px;
	color: #adb5bd;
}
.ct-code-copy {
	border: 0;
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 4px;
	cursor: pointer;
}
.ct-code-copy:hover {
	background: var(--yx-brand-primary, #3964fe);
}
.ct-msg-bubble pre {
	margin: 0;
	padding: 14px;
	overflow-x: auto;
	white-space: pre;
	background: #161823;
	color: #f4f4f6;
}
.ct-msg-bubble code {
	font: 12.5px/1.65 var(--yx-font-mono, Consolas, monospace);
}
.ct-msg-bubble :not(pre) > code {
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(var(--yx-brand-primary-rgb, 57, 100, 254), 0.1);
	color: var(--yx-brand-primary, #3964fe);
	font-size: 12.5px;
}

/* 底部输入编辑器 */
.ct-composer {
	padding: 14px 24px 18px;
	border-top: 1px solid var(--yx-border-light, #f1f3f5);
	background: var(--yx-bg-paper, #ffffff);
	flex-shrink: 0;
}
.ct-composer-box {
	border: 1px solid var(--yx-border-base, #e9ecef);
	border-radius: var(--yx-radius-lg, 12px);
	padding: 12px 14px;
	background: var(--yx-bg-paper, #ffffff);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.ct-composer-box:focus-within {
	border-color: var(--yx-brand-primary, #3964fe);
	box-shadow: 0 0 0 3px rgba(var(--yx-brand-primary-rgb, 57, 100, 254), 0.12);
}
.ct-composer textarea {
	width: 100%;
	resize: none;
	border: 0;
	outline: none;
	min-height: 48px;
	max-height: 160px;
	background: none;
	color: var(--yx-text-primary, #161823);
	font: inherit;
	font-size: 14px;
	line-height: 1.6;
}
.ct-composer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 8px;
	font-size: 12px;
	color: var(--yx-text-tertiary, #868e96);
}

.ct-message-list {
	display: flex;
	flex-direction: column;
}
.ct-notification {
	padding: 20px 0;
	border-bottom: 1px solid var(--yx-border-light, #f1f3f5);
}
.ct-notification:last-child {
	border-bottom: 0;
}
.ct-notification h3 {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 8px;
	color: var(--yx-text-primary, #161823);
}
.ct-notification p {
	font-size: 14px;
	color: var(--yx-text-secondary, #5c5f66);
	white-space: pre-wrap;
	margin: 0 0 10px;
}
.ct-notification time {
	font-size: 12px;
	color: var(--yx-text-tertiary, #868e96);
}
.ct-kyc {
	z-index: 1400;
}
.ct-kyc .ct-modal-card {
	max-width: 500px;
}
.ct-itinerary {
	padding: 24px;
	border: 1px solid var(--yx-border-light, #f1f3f5);
	border-radius: var(--yx-radius-xl, 16px);
	background: var(--yx-bg-paper, #ffffff);
	margin: 0 0 20px;
	max-width: 92%;
	font-size: 13px;
	line-height: 1.85;
	color: var(--yx-text-primary, #161823);
}
.ct-trip-overview {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	padding: 18px 0;
	margin: 16px 0;
	border-top: 1px solid var(--yx-border-light, #f1f3f5);
	border-bottom: 1px solid var(--yx-border-light, #f1f3f5);
}
.ct-trip-day {
	padding: 0 0 10px 18px;
	border-left: 2px solid var(--yx-brand-primary, #3964fe);
	margin: 18px 0;
}
.ct-policy-modal .ct-modal-card {
	width: min(100%, 900px);
	max-height: calc(100vh - 32px);
}
.ct-policy-reading {
	max-width: none;
	margin: 0;
	padding: 0;
	line-height: 1.85;
	overflow-wrap: anywhere;
}
.ct-policy-status {
	padding: 12px 15px;
	border: 1px solid rgba(255, 49, 65, 0.25);
	border-radius: var(--yx-radius-md, 8px);
	background: var(--yx-danger-bg, #ffeef0);
	color: var(--yx-danger, #ff3141);
}
.ct-ui-switch {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 22px;
	cursor: pointer;
}
.ct-ui-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}
.ct-ui-switch i {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: var(--yx-border-dark, #cbd5e1);
	transition: background 0.2s;
}
.ct-ui-switch i::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #ffffff;
	transition: transform 0.2s;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.ct-ui-switch input:checked + i {
	background: var(--yx-brand-primary, #3964fe);
}
.ct-ui-switch input:checked + i::before {
	transform: translateX(18px);
}
.ct-gateway-banner-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ct-gateway-banner-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--yx-text-primary, #1f2533);
}
.ct-gateway-banner-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 14px;
	border-radius: 8px;
	border: 1px solid var(--yx-border-base, #e4e7ed);
	background: var(--yx-bg-hover, #f7f8fa);
}
.ct-gateway-banner-box code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 13.5px;
	color: var(--yx-text-primary, #1f2533);
	background: transparent;
	padding: 0;
}
.ct-key-inline-box {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 10px;
	border-radius: 8px;
	background: var(--yx-bg-hover, #f4f6fa);
	border: 1px solid var(--yx-border-base, #e4e7ed);
	max-width: none;
	white-space: nowrap;
}
.ct-key-inline-box code {
	font-size: 12.5px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	color: var(--yx-text-primary, #1f2533);
	background: transparent;
	padding: 0;
	user-select: all;
	white-space: nowrap;
	flex-shrink: 0;
}
.ct-key-mini-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0 !important;
	width: 26px;
	height: 26px;
	min-width: 26px;
	border: 1px solid var(--yx-border-base, rgba(148, 163, 184, 0.28));
	background: var(--yx-bg-surface, rgba(255, 255, 255, 0.08));
	padding: 0;
	cursor: pointer;
	color: var(--yx-text-primary, #475569);
	line-height: 1;
	opacity: 0.92;
	border-radius: 6px;
	transition: all 0.15s ease;
}
.ct-key-mini-icon svg {
	width: 14px !important;
	height: 14px !important;
	min-width: 14px !important;
	max-width: none !important;
	flex-shrink: 0 !important;
	display: block;
}
.ct-key-mini-icon:hover {
	opacity: 1;
	color: var(--yx-brand-primary, #3964fe);
	border-color: var(--yx-brand-primary, #3964fe);
	background: rgba(57, 100, 254, 0.12);
}
.ct-concurrency-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 28px;
	padding: 0 8px;
	border-radius: 6px;
	background: var(--yx-bg-hover, #f2f4f7);
	border: 1px solid var(--yx-border-base, transparent);
	font-weight: 700;
	font-size: 13px;
	color: var(--yx-text-primary, #1f2533);
}
.ct-usage-stack {
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-size: 13px;
	line-height: 1.35;
	color: var(--yx-text-secondary, #5a6478);
}
.ct-usage-stack strong {
	color: var(--yx-text-primary, #1f2533);
	font-weight: 600;
}
.ct-key-op-group {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.ct-key-op-btn {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 6px 8px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--yx-text-secondary, #475569);
	font-size: 12px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}
.ct-key-op-btn:hover {
	background: var(--yx-bg-subtle, #f1f5f9);
	color: var(--yx-brand-primary, #3964fe);
}
.ct-key-op-btn.is-danger:hover {
	background: #fee2e2;
	color: #dc2626;
}
.ct-keys-table th,
.ct-keys-table td {
	max-width: none !important;
	white-space: nowrap;
	vertical-align: middle;
}
.ct-msg-bubble .ct-table th,
.ct-msg-bubble .ct-table td {
	max-width: none !important;
	white-space: normal;
	word-break: break-word;
	vertical-align: top;
	line-height: 1.65;
}
.ct-thinking-effort-select {
	appearance: auto;
	width: auto !important;
	min-width: 0 !important;
	max-width: 96px;
	flex: none;
	border: 0 !important;
	border-left: 1px solid rgba(57, 100, 254, 0.22) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	color: inherit;
	font-size: 12px;
	font-weight: 600;
	padding: 0 2px 0 6px !important;
	margin-left: 2px;
	min-height: 20px !important;
	height: 20px !important;
	cursor: pointer;
	outline: none;
}
.ct-assist-pill.is-unchecked .ct-thinking-effort-select {
	border-left-color: var(--yx-border-base, #cbd5e1);
	color: var(--yx-text-secondary, #64748b);
}
.ct-thinking-box {
	margin: 0 0 12px;
	border: none;
	background: transparent;
	font-size: 13px;
}
.ct-thinking-box summary {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 11px;
	margin-bottom: 4px;
	border-radius: 8px;
	background: rgba(79, 110, 247, 0.07);
	border: 1px solid rgba(79, 110, 247, 0.16);
	cursor: pointer;
	user-select: none;
	font-weight: 600;
	font-size: 13px;
	color: var(--yx-brand-primary, #4f6ef7);
	list-style: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.ct-thinking-box summary:hover {
	background: rgba(79, 110, 247, 0.12);
	border-color: rgba(79, 110, 247, 0.28);
}
.ct-thinking-box summary::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--yx-brand-primary, #4f6ef7);
	flex-shrink: 0;
}
.ct-thinking-box summary svg {
	color: var(--yx-brand-primary, #4f6ef7);
}
.ct-thinking-box summary::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 3px;
	border-right: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	vertical-align: middle;
}
.ct-thinking-box:not([open]) summary::after {
	transform: rotate(-45deg);
}
.ct-thinking-box summary::-webkit-details-marker {
	display: none;
}
.ct-thinking-body {
	position: relative;
	margin: 4px 0 8px 0;
	padding: 10px 14px;
	border-left: 3px solid rgba(79, 110, 247, 0.42);
	border-radius: 0 10px 10px 0;
	background: rgba(15, 23, 42, 0.03);
	color: var(--yx-text-secondary, #64748b);
	font-size: 13px;
	line-height: 1.72;
	white-space: normal;
	max-height: 360px;
	overflow-y: auto;
	overflow-x: hidden;
}
.ct-thinking-body p {
	margin: 0 0 6px !important;
	padding: 0 !important;
	text-indent: 0 !important;
	color: var(--yx-text-secondary, #64748b);
	font-size: 13px;
	line-height: 1.72;
}
.ct-thinking-body p:last-child {
	margin-bottom: 0 !important;
}
.ct-thinking-body strong {
	color: var(--yx-text-primary, #334155);
	font-weight: 600;
}
.ct-thinking-body ul,
.ct-thinking-body ol {
	margin: 4px 0 6px !important;
	padding-left: 18px !important;
}
.ct-thinking-body li {
	margin: 2px 0 !important;
}
.ct-file-cards-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 8px;
}
.ct-msg-row.is-user .ct-file-cards-list {
	justify-content: flex-end;
}
.ct-file-card {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 210px;
	max-width: 320px;
	padding: 12px 16px;
	border-radius: 14px;
	border: 1px solid var(--yx-border-base, #e5e7eb);
	background: var(--yx-bg-surface, #ffffff);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
	color: var(--yx-text-primary, #1e293b);
	text-decoration: none;
	transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
	position: relative;
}
.ct-file-card.is-downloadable {
	cursor: pointer;
}
.ct-file-card.is-downloadable:hover {
	border-color: var(--yx-brand-primary, #4f6ef7);
	box-shadow: 0 4px 14px rgba(79, 110, 247, 0.12);
	transform: translateY(-1px);
}
.ct-file-card-icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: #4f6ef7;
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 11px;
	font-weight: 700;
	overflow: hidden;
}
.ct-file-card-icon.is-zip {
	background: #f59e0b;
}
.ct-file-card-icon.is-csv {
	background: #10b981;
}
.ct-file-card-icon.is-code {
	background: #6366f1;
}
.ct-file-card-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ct-file-card-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
	text-align: left;
}
.ct-file-card-name {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--yx-text-primary, #1e293b);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.35;
}
.ct-file-card-meta {
	font-size: 12px;
	color: var(--yx-text-tertiary, #94a3b8);
	margin-top: 2px;
	line-height: 1.3;
}
.ct-file-card-dl {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: rgba(79, 110, 247, 0.08);
	color: var(--yx-brand-primary, #4f6ef7);
	flex-shrink: 0;
}
.ct-file-card-remove {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 1px solid var(--yx-border-base, #cbd5e1);
	background: var(--yx-bg-surface, #ffffff);
	color: var(--yx-text-secondary, #475569);
	font-size: 13px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}
.ct-file-card-remove:hover {
	background: #ef4444;
	color: #ffffff;
	border-color: #ef4444;
}
.ct-generated-files-bar {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed var(--yx-border-base, #e2e8f0);
}
.ct-generated-files-title {
	font-size: 12px;
	font-weight: 600;
	color: var(--yx-text-secondary, #64748b);
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.ct-composer-box {
	position: relative;
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.ct-composer-box.is-dragover {
	border-color: var(--yx-brand-primary, #4f6ef7) !important;
	box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.16) !important;
	background: rgba(79, 110, 247, 0.03) !important;
}
.ct-composer-attachments {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 8px 4px 6px;
}
.ct-composer-attachments:empty {
	display: none;
}
.ct-composer-tools {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.ct-composer-upload-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	border-radius: 8px;
	border: 1px solid var(--yx-border-base, #e2e8f0);
	background: var(--yx-bg-surface, #ffffff);
	color: var(--yx-text-secondary, #475569);
	font-size: 12.5px;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.ct-composer-upload-btn:hover {
	border-color: var(--yx-brand-primary, #4f6ef7);
	color: var(--yx-brand-primary, #4f6ef7);
	background: rgba(79, 110, 247, 0.04);
}
html[data-theme="dark"] .ct-thinking-body {
	background: rgba(255, 255, 255, 0.04);
	border-left-color: rgba(103, 158, 254, 0.55);
}
html[data-theme="dark"] .ct-thinking-body strong {
	color: var(--yx-text-primary, #f9fafb);
}
html[data-theme="dark"] .ct-key-op-btn.is-danger:hover {
	background: rgba(239, 68, 68, 0.16);
}
.ct-multiselect {
	position: relative;
	width: 100%;
	user-select: none;
}
.ct-multiselect-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 42px;
	padding: 5px 10px;
	border-radius: 10px;
	border: 1px solid var(--yx-border-base, #cbd5e1);
	background: var(--yx-bg-surface, #ffffff);
	cursor: pointer;
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.ct-multiselect-trigger:hover {
	border-color: var(--yx-brand-primary, #4f6ef7);
}
.ct-multiselect.is-open .ct-multiselect-trigger {
	border-color: var(--yx-brand-primary, #4f6ef7);
	box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.14);
}
.ct-multiselect-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	flex: 1;
	min-width: 0;
}
.ct-multiselect-placeholder {
	color: var(--yx-text-tertiary, #94a3b8);
	font-size: 13.5px;
	padding: 2px 2px;
}
.ct-multiselect-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 8px 3px 10px;
	border-radius: 6px;
	background: rgba(79, 110, 247, 0.1);
	border: 1px solid rgba(79, 110, 247, 0.24);
	color: var(--yx-brand-primary, #4f6ef7);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.35;
	max-width: 100%;
}
.ct-multiselect-tag-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ct-multiselect-tag-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 4px;
	border: none;
	background: transparent;
	color: currentColor;
	opacity: 0.7;
	cursor: pointer;
	padding: 0;
	font-size: 14px;
	line-height: 1;
	transition: opacity 0.15s ease, background 0.15s ease;
}
.ct-multiselect-tag-remove:hover {
	opacity: 1;
	background: rgba(79, 110, 247, 0.18);
}
.ct-multiselect-right {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	color: var(--yx-text-tertiary, #64748b);
}
.ct-multiselect-count {
	font-size: 12px;
	font-weight: 500;
	color: var(--yx-text-tertiary, #64748b);
	background: var(--yx-bg-subtle, #f1f5f9);
	padding: 2px 7px;
	border-radius: 999px;
}
.ct-multiselect-arrow {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}
.ct-multiselect.is-open .ct-multiselect-arrow {
	transform: rotate(180deg);
	color: var(--yx-brand-primary, #4f6ef7);
}
.ct-multiselect-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 80;
	border-radius: 12px;
	border: 1px solid var(--yx-border-base, #e2e8f0);
	background: var(--yx-bg-surface, #ffffff);
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
	overflow: hidden;
}
.ct-multiselect-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 10px;
	border-bottom: 1px solid var(--yx-border-base, #f1f5f9);
	background: var(--yx-bg-subtle, #f8fafc);
}
.ct-multiselect-search {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--yx-border-base, #e2e8f0);
	border-radius: 7px;
	padding: 5px 9px;
	font-size: 12.5px;
	background: var(--yx-bg-surface, #ffffff);
	color: var(--yx-text-primary, #0f172a);
	outline: none;
}
.ct-multiselect-search:focus {
	border-color: var(--yx-brand-primary, #4f6ef7);
}
.ct-multiselect-actions {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}
.ct-multiselect-act-btn {
	border: none;
	background: transparent;
	color: var(--yx-brand-primary, #4f6ef7);
	font-size: 12px;
	font-weight: 600;
	padding: 4px 7px;
	border-radius: 6px;
	cursor: pointer;
}
.ct-multiselect-act-btn:hover {
	background: rgba(79, 110, 247, 0.1);
}
.ct-multiselect-list {
	max-height: 210px;
	overflow-y: auto;
	padding: 6px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.ct-multiselect-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13.5px;
	color: var(--yx-text-primary, #1e293b);
	transition: background 0.14s ease, color 0.14s ease;
}
.ct-multiselect-item:hover {
	background: var(--yx-bg-subtle, #f1f5f9);
}
.ct-multiselect-item.is-selected {
	background: rgba(79, 110, 247, 0.07);
	color: var(--yx-brand-primary, #4f6ef7);
	font-weight: 600;
}
.ct-multiselect-item-left {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	flex: 1;
}
.ct-multiselect-check {
	width: 17px;
	height: 17px;
	border-radius: 5px;
	border: 1.5px solid var(--yx-border-base, #cbd5e1);
	background: var(--yx-bg-surface, #ffffff);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #ffffff;
	transition: background 0.14s ease, border-color 0.14s ease;
}
.ct-multiselect-item.is-selected .ct-multiselect-check {
	background: var(--yx-brand-primary, #4f6ef7);
	border-color: var(--yx-brand-primary, #4f6ef7);
}
.ct-multiselect-item-sub {
	font-size: 11.5px;
	color: var(--yx-text-tertiary, #94a3b8);
	font-weight: 400;
	flex-shrink: 0;
}
.ct-multiselect-empty {
	padding: 14px 10px;
	text-align: center;
	font-size: 12.5px;
	color: var(--yx-text-tertiary, #94a3b8);
}
.ct-table-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-bottom: 6px;
}
.ct-typewriter-cursor {
	display: inline-block;
	width: 7px;
	height: 15px;
	margin-left: 3px;
	vertical-align: -2px;
	background: var(--yx-brand-primary, #3964fe);
	border-radius: 2px;
	animation: ct-blink 0.85s steps(2, start) infinite;
}
@keyframes ct-blink {
	to {
		visibility: hidden;
	}
}
.ct-feed-panel {
	padding: 20px 24px;
}
.ct-feed-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--yx-border-light, #f1f5f9);
}
.ct-feed-summary {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.ct-feed-count {
	font-size: 14px;
	font-weight: 600;
	color: var(--yx-text-primary, #1e293b);
}
.ct-feed-unread-pill,
.ct-feed-allread-pill,
.ct-feed-pinned-pill {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}
.ct-feed-unread-pill {
	background: rgba(239, 68, 68, 0.1);
	color: #ef4444;
}
.ct-feed-allread-pill {
	background: rgba(34, 197, 94, 0.1);
	color: #16a34a;
}
.ct-feed-pinned-pill {
	background: rgba(79, 110, 247, 0.1);
	color: var(--yx-brand-primary, #3964fe);
}
.ct-feed-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.ct-feed-card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px 20px !important;
	border-radius: 14px !important;
	border: 1px solid var(--yx-border-base, #e2e8f0) !important;
	background: var(--yx-bg-surface, #ffffff) !important;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
	cursor: pointer;
	margin: 0 !important;
}
.ct-feed-card:hover {
	border-color: var(--yx-brand-primary, #3964fe) !important;
	box-shadow: 0 6px 20px rgba(57, 100, 254, 0.08);
	transform: translateY(-1px);
}
.ct-feed-card.is-unread {
	border-left: 4px solid var(--yx-brand-primary, #3964fe) !important;
}
.ct-feed-card.is-pinned {
	border-left: 4px solid #f59e0b !important;
}
.ct-feed-card.is-urgent-card {
	border-left: 4px solid #ef4444 !important;
}
.ct-feed-card-icon {
	position: relative;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--yx-bg-subtle, #f1f5f9);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
}
.ct-unread-dot {
	position: absolute;
	top: -3px;
	right: -3px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ef4444;
	border: 2px solid var(--yx-bg-surface, #ffffff);
}
.ct-feed-card-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ct-feed-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.ct-feed-card-titles {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	min-width: 0;
	flex: 1;
}
.ct-feed-card-title {
	margin: 0 !important;
	font-size: 15.5px !important;
	font-weight: 700 !important;
	color: var(--yx-text-primary, #0f172a) !important;
	line-height: 1.4;
}
.ct-feed-card-time {
	font-size: 12.5px;
	color: var(--yx-text-tertiary, #94a3b8);
	white-space: nowrap;
	flex-shrink: 0;
}
.ct-feed-card-excerpt {
	margin: 2px 0 4px !important;
	font-size: 13.5px !important;
	line-height: 1.68 !important;
	color: var(--yx-text-secondary, #475569) !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ct-feed-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding-top: 6px;
	border-top: 1px dashed var(--yx-border-light, #f1f5f9);
}
.ct-feed-detail-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	margin-left: -10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--yx-brand-primary, #3964fe);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, gap 0.15s ease;
}
.ct-feed-detail-link:hover {
	background: rgba(57, 100, 254, 0.08);
	gap: 8px;
}
.ct-feed-badge,
.ct-feed-pin-tag,
.ct-feed-priority-tag,
.ct-feed-status-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}
.ct-feed-badge {
	background: rgba(57, 100, 254, 0.1);
	color: var(--yx-brand-primary, #3964fe);
}
.ct-feed-badge.is-security {
	background: rgba(239, 68, 68, 0.12);
	color: #ef4444;
}
.ct-feed-badge.is-maintenance {
	background: rgba(245, 158, 11, 0.12);
	color: #d97706;
}
.ct-feed-badge.is-operation,
.ct-feed-badge.is-finance {
	background: rgba(16, 185, 129, 0.12);
	color: #059669;
}
.ct-feed-pin-tag {
	background: rgba(245, 158, 11, 0.14);
	color: #d97706;
}
.ct-feed-priority-tag.is-urgent {
	background: rgba(239, 68, 68, 0.14);
	color: #ef4444;
}
.ct-feed-priority-tag.is-important {
	background: rgba(245, 158, 11, 0.14);
	color: #d97706;
}
.ct-feed-priority-tag.is-normal {
	background: var(--yx-bg-subtle, #f1f5f9);
	color: var(--yx-text-secondary, #64748b);
}
.ct-feed-status-tag.is-unread {
	background: rgba(57, 100, 254, 0.12);
	color: var(--yx-brand-primary, #3964fe);
}
.ct-feed-status-tag.is-read {
	background: var(--yx-bg-subtle, #f1f5f9);
	color: var(--yx-text-tertiary, #94a3b8);
}
.ct-detail-view {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.ct-detail-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--yx-border-light, #f1f5f9);
}
.ct-detail-article {
	padding: 8px 4px 12px;
}
.ct-detail-header {
	padding-bottom: 18px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--yx-border-base, #e2e8f0);
}
.ct-detail-badges {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}
.ct-detail-title {
	margin: 0 0 12px !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	color: var(--yx-text-primary, #0f172a) !important;
}
.ct-detail-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--yx-text-tertiary, #64748b);
}
.ct-detail-body {
	font-size: 15px;
	line-height: 1.85;
	color: var(--yx-text-primary, #1e293b);
	word-break: break-word;
}
.ct-detail-body p {
	margin: 0 0 14px;
}
.ct-detail-body p:last-child {
	margin-bottom: 0;
}
.ct-detail-footer {
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px dashed var(--yx-border-base, #e2e8f0);
	display: flex;
	justify-content: flex-end;
}
.ct-kb-modal-wrap {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.ct-kb-modal-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--yx-bg-subtle, #f8fafc);
	border: 1px solid var(--yx-border-base, #e2e8f0);
}
.ct-kb-count-pill {
	font-size: 12px;
	font-weight: 600;
	color: var(--yx-text-secondary, #475569);
	background: var(--yx-bg-surface, #ffffff);
	border: 1px solid var(--yx-border-base, #e2e8f0);
	padding: 4px 10px;
	border-radius: 999px;
}
.ct-kb-section-card {
	border: 1px solid var(--yx-border-base, #e2e8f0);
	border-radius: 12px;
	background: var(--yx-bg-surface, #ffffff);
	overflow: hidden;
}
.ct-kb-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	padding: 12px 16px;
	background: var(--yx-bg-subtle, #f8fafc);
	border-bottom: 1px solid var(--yx-border-light, #f1f5f9);
}
.ct-kb-section-head h4 {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--yx-text-primary, #0f172a);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.ct-kb-section-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(57, 100, 254, 0.12);
	color: var(--yx-brand-primary, #3964fe);
	font-size: 11.5px;
	font-weight: 700;
}
.ct-kb-item-list {
	display: flex;
	flex-direction: column;
}
.ct-kb-item-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--yx-border-light, #f1f5f9);
}
.ct-kb-item-row:last-child {
	border-bottom: none;
}
.ct-kb-item-main {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1;
}
.ct-kb-item-icon {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: var(--yx-bg-subtle, #f1f5f9);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	flex-shrink: 0;
}
.ct-kb-item-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.ct-kb-item-title {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--yx-text-primary, #1e293b);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ct-kb-item-sub {
	font-size: 12px;
	color: var(--yx-text-tertiary, #94a3b8);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ct-kb-empty-compact {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 18px;
}
.ct-kb-empty-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(57, 100, 254, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
}
.ct-kb-empty-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.ct-kb-empty-text strong {
	font-size: 13.5px;
	color: var(--yx-text-primary, #1e293b);
}
.ct-kb-empty-text span {
	font-size: 12.5px;
	color: var(--yx-text-tertiary, #64748b);
}
.ct-kb-empty-inline {
	padding: 14px 16px;
	font-size: 12.5px;
	color: var(--yx-text-tertiary, #94a3b8);
	text-align: center;
}
.ct-kb-modal-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--yx-border-light, #f1f5f9);
}
.ct-kb-bind-hint {
	padding: 10px 14px;
	border-radius: 10px;
	background: rgba(57, 100, 254, 0.07);
	border: 1px solid rgba(57, 100, 254, 0.16);
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--yx-text-secondary, #334155);
}
.ct-kb-bind-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 300px;
	overflow-y: auto;
	padding: 2px;
}
.ct-kb-bind-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1.5px solid var(--yx-border-base, #e2e8f0);
	background: var(--yx-bg-surface, #ffffff);
	cursor: pointer;
	transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
	user-select: none;
}
.ct-kb-bind-item:hover {
	border-color: var(--yx-brand-primary, #3964fe);
	background: var(--yx-bg-subtle, #f8fafc);
}
.ct-kb-bind-item.is-selected {
	border-color: var(--yx-brand-primary, #3964fe);
	background: rgba(57, 100, 254, 0.06);
	box-shadow: 0 2px 10px rgba(57, 100, 254, 0.08);
}
.ct-kb-bind-item input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.ct-kb-bind-check {
	width: 20px;
	height: 20px;
	border-radius: 6px;
	border: 1.5px solid var(--yx-border-base, #cbd5e1);
	background: var(--yx-bg-surface, #ffffff);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: transparent;
	flex-shrink: 0;
	transition: all 0.15s ease;
}
.ct-kb-bind-item.is-selected .ct-kb-bind-check {
	background: var(--yx-brand-primary, #3964fe);
	border-color: var(--yx-brand-primary, #3964fe);
	color: #ffffff;
}
.ct-kb-bind-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgba(57, 100, 254, 0.1);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	flex-shrink: 0;
}
.ct-kb-bind-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}
.ct-kb-bind-name {
	font-size: 14px;
	font-weight: 700;
	color: var(--yx-text-primary, #0f172a);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ct-kb-bind-desc {
	font-size: 12px;
	color: var(--yx-text-tertiary, #64748b);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ct-kb-bind-tag {
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 11.5px;
	font-weight: 600;
	background: var(--yx-bg-subtle, #f1f5f9);
	color: var(--yx-text-secondary, #475569);
	flex-shrink: 0;
}
@media (max-width: 1024px) {
	.ct-cards[style*="repeat(4"] {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}
@media (max-width: 800px) {
	.ct-cards[style*="repeat(4"] {
		grid-template-columns: 1fr !important;
	}
	.ct-chat-layout {
		grid-template-columns: 1fr;
		min-height: 540px;
		height: calc(100vh - 180px);
	}
	.ct-conversations {
		display: none;
	}
	.ct-welcome-grid {
		grid-template-columns: 1fr;
	}
	.ct-msg-col,
	.ct-msg-row.is-user .ct-msg-col {
		max-width: 90%;
	}
}
