/* EArk Full-Width Live Support Console (`page-templates/live-support.php`)
   Alibaba Cloud Intelligent Service Desk layout + EArk2027 square tech aesthetic (#1677ff / #0a1628 / #00c4b4).
*/

.eark-ls-page,
.eark-ls-page *,
.eark-ls-page *::before,
.eark-ls-page *::after {
	box-sizing: border-box;
}

.site-main.eark-ls-page {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: #f2f5fa;
}

.site-main.eark-ls-page + .site-footer {
	margin-top: 0;
}

.eark-ls-console {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr) 320px;
	width: 100%;
	min-height: calc(100vh - 64px);
	background: #f2f5fa;
	border-top: 1px solid #e2e8f0;
}

/* ==========================================================================
   Left Rail: Channel Switcher, Upmind Client Card & Common Topics
   ========================================================================== */
.eark-ls-sidebar {
	background: #ffffff;
	border-right: 1px solid #e2e8f0;
	padding: 20px 18px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.eark-ls-kicker {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #64748b;
	margin-bottom: 10px;
}

.eark-ls-mode-tabs {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.eark-ls-mode-btn {
	appearance: none;
	width: 100%;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 13px 14px;
	background: #f8fafd;
	border: 1px solid #e2e8f0;
	border-left: 3px solid transparent;
	border-radius: 0;
	text-align: left;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.16s ease, border-color 0.16s ease;
}

.eark-ls-mode-btn:hover {
	background: #f0f6ff;
	border-color: #bfd8ff;
}

.eark-ls-mode-btn.is-active {
	background: #eef5ff;
	border-color: #bfd8ff;
	border-left-color: var(--eark-primary, #1677ff);
}

.eark-ls-mode-icon {
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	border: 1px solid #dbe6ff;
	color: var(--eark-primary, #1677ff);
	flex-shrink: 0;
}

.eark-ls-mode-btn.is-active .eark-ls-mode-icon {
	background: var(--eark-primary, #1677ff);
	border-color: var(--eark-primary, #1677ff);
	color: #ffffff;
}

.eark-ls-mode-copy {
	min-width: 0;
}

.eark-ls-mode-copy strong {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	color: #1d2129;
	margin-bottom: 2px;
}

.eark-ls-mode-copy span {
	display: block;
	font-size: 12px;
	line-height: 1.45;
	color: #64748b;
}

/* Upmind Account Card */
.eark-ls-account-card {
	background: #f8fafd;
	border: 1px solid #e2e8f0;
	padding: 14px;
}

.eark-ls-acct-guest p {
	margin: 0 0 12px;
	font-size: 12.5px;
	line-height: 1.55;
	color: #4e5969;
}

.eark-ls-signin-trigger {
	width: 100%;
	height: 36px;
	line-height: 36px;
	font-size: 13px;
}

.eark-ls-acct-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.eark-ls-acct-avatar {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--eark-primary, #1677ff) 0%, #0a1628 100%);
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
}

.eark-ls-acct-meta {
	min-width: 0;
}

.eark-ls-acct-meta strong {
	display: block;
	font-size: 13.5px;
	color: #1d2129;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.eark-ls-acct-meta span {
	display: block;
	font-size: 12px;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.eark-ls-acct-badges {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}

.eark-ls-status-pill {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.eark-ls-status-pill.is-verified {
	background: #e8faf8;
	border: 1px solid #87e8de;
	color: #008f83;
}

.eark-ls-portal-link {
	font-size: 12px;
	font-weight: 600;
	color: var(--eark-primary, #1677ff);
	text-decoration: none;
}

.eark-ls-portal-link:hover {
	text-decoration: underline;
}

.eark-ls-signout-btn {
	appearance: none;
	width: 100%;
	height: 30px;
	background: #ffffff;
	border: 1px solid #d6e0ee;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	color: #4e5969;
	cursor: pointer;
}

.eark-ls-signout-btn:hover {
	border-color: #94a3b8;
	color: #1d2129;
}

/* Quick Topics */
.eark-ls-quick-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.eark-ls-quick-btn {
	appearance: none;
	width: 100%;
	padding: 9px 11px;
	background: #ffffff;
	border: 1px solid #e7ebf3;
	border-radius: 0;
	text-align: left;
	font-family: inherit;
	font-size: 12.5px;
	line-height: 1.45;
	color: #334155;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.eark-ls-quick-btn:hover {
	background: #f4f8ff;
	border-color: #bfd8ff;
	color: var(--eark-primary, #1677ff);
}

/* ==========================================================================
   Center Main Dialog Stage (Alibaba Cloud Online Service Window)
   ========================================================================== */
.eark-ls-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: calc(100vh - 64px);
	max-height: calc(100vh - 64px);
	background: #f5f7fb;
}

.eark-ls-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 24px;
	background: #ffffff;
	border-bottom: 1px solid #e2e8f0;
	flex-shrink: 0;
}

.eark-ls-agent-id {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.eark-ls-agent-badge {
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #1677ff 0%, #0a1628 100%);
	color: #ffffff;
	flex-shrink: 0;
}

.eark-ls-agent-title-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.eark-ls-agent-title-row h1 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #1d2129;
}

.eark-ls-live-dot {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 8px;
	background: #e8faf8;
	border: 1px solid #87e8de;
	color: #008f83;
	font-size: 11px;
	font-weight: 700;
}

.eark-ls-live-dot i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #00b578;
}

.eark-ls-agent-sub {
	margin: 2px 0 0;
	font-size: 12.5px;
	color: #64748b;
}

.eark-ls-topbar-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.eark-ls-ticket-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	background: #fff7e6;
	border: 1px solid #ffd591;
	color: #d46b08;
	font-size: 12px;
	font-weight: 700;
}

.eark-ls-ticket-pill[hidden] {
	display: none;
}

.eark-ls-ticket-pill.is-answered {
	background: #e8faf8;
	border-color: #87e8de;
	color: #008f83;
}

.eark-ls-reset-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding: 0 12px;
	background: #ffffff;
	border: 1px solid #d6e0ee;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	color: #4e5969;
	cursor: pointer;
}

.eark-ls-reset-btn:hover {
	border-color: var(--eark-primary, #1677ff);
	color: var(--eark-primary, #1677ff);
}

/* Stream Area */
.eark-ls-stream {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 24px 28px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* Alibaba Cloud Welcome Card */
.eark-ls-welcome-card {
	background: #ffffff;
	border: 1px solid #dce6f7;
	border-top: 3px solid var(--eark-primary, #1677ff);
	padding: 22px 24px;
	box-shadow: 0 2px 10px rgba(16, 24, 40, 0.03);
}

.eark-ls-welcome-tag {
	display: inline-block;
	padding: 2px 8px;
	margin-bottom: 8px;
	background: #e8f2ff;
	color: var(--eark-primary, #1677ff);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
}

.eark-ls-welcome-head h2 {
	margin: 0 0 6px;
	font-size: 19px;
	font-weight: 700;
	color: #1d2129;
}

.eark-ls-welcome-head p {
	margin: 0 0 16px;
	font-size: 13.5px;
	line-height: 1.6;
	color: #4e5969;
}

.eark-ls-scenario-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.eark-ls-scenario-card {
	appearance: none;
	padding: 12px 14px;
	background: #f8fafd;
	border: 1px solid #e2e8f0;
	border-radius: 0;
	text-align: left;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.eark-ls-scenario-card:hover {
	background: #eef5ff;
	border-color: #91caff;
}

.eark-ls-scenario-card strong {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	color: #1d2129;
	margin-bottom: 3px;
}

.eark-ls-scenario-card:hover strong {
	color: var(--eark-primary, #1677ff);
}

.eark-ls-scenario-card span {
	display: block;
	font-size: 12px;
	line-height: 1.45;
	color: #64748b;
}

/* Inline Upmind Auth Gate */
.eark-ls-auth-gate[hidden] {
	display: none;
}

.eark-ls-auth-card {
	background: #ffffff;
	border: 1px solid #bfd8ff;
	border-top: 3px solid var(--eark-primary, #1677ff);
	padding: 22px 24px;
	box-shadow: 0 8px 24px rgba(22, 119, 255, 0.08);
}

.eark-ls-auth-badge {
	display: inline-block;
	padding: 2px 8px;
	margin-bottom: 8px;
	background: #fff7e6;
	border: 1px solid #ffd591;
	color: #d46b08;
	font-size: 11px;
	font-weight: 700;
}

.eark-ls-auth-header h3 {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 700;
	color: #1d2129;
}

.eark-ls-auth-header p {
	margin: 0 0 16px;
	font-size: 13.5px;
	line-height: 1.6;
	color: #4e5969;
}

.eark-ls-auth-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 460px;
}

.eark-ls-auth-form[hidden] {
	display: none;
}

.eark-ls-field label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: #334155;
	margin-bottom: 5px;
}

.eark-ls-field input {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 0;
	font-family: inherit;
	font-size: 14px;
	color: #1d2129;
	outline: none;
}

.eark-ls-field input:focus {
	border-color: var(--eark-primary, #1677ff);
}

.eark-ls-otp-row {
	display: flex;
	gap: 8px;
}

.eark-ls-otp-row input {
	flex: 1;
}

.eark-ls-auth-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px;
}

.eark-ls-auth-msg {
	margin-top: 12px;
	padding: 10px 12px;
	font-size: 13px;
	background: #fff2f0;
	border: 1px solid #ffccc7;
	color: #cf1322;
}

.eark-ls-auth-msg.is-success {
	background: #e8faf8;
	border-color: #87e8de;
	color: #008f83;
}

.eark-ls-auth-msg[hidden] {
	display: none;
}

/* Message Thread Bubbles */
.eark-ls-thread {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.eark-ls-msg-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	max-width: 86%;
}

.eark-ls-msg-row.is-user {
	align-self: flex-end;
	flex-direction: row-reverse;
}

.eark-ls-avatar {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
}

.eark-ls-msg-row.is-ai .eark-ls-avatar {
	background: linear-gradient(135deg, #1677ff 0%, #0a1628 100%);
	color: #ffffff;
}

.eark-ls-msg-row.is-engineer .eark-ls-avatar {
	background: #008f83;
	color: #ffffff;
}

.eark-ls-msg-row.is-user .eark-ls-avatar {
	background: #e2e8f0;
	color: #1d2129;
}

.eark-ls-bubble {
	padding: 14px 18px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	font-size: 14px;
	line-height: 1.68;
	color: #1d2129;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.03);
}

.eark-ls-msg-row.is-user .eark-ls-bubble {
	background: var(--eark-primary, #1677ff);
	border-color: var(--eark-primary, #1677ff);
	color: #ffffff;
}

.eark-ls-msg-row.is-engineer .eark-ls-bubble {
	background: #f6ffed;
	border-color: #b7eb8f;
	border-left: 3px solid #00a870;
}

.eark-ls-bubble-tag {
	display: inline-block;
	margin-bottom: 6px;
	padding: 2px 7px;
	background: #e8faf8;
	border: 1px solid #87e8de;
	color: #008f83;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.eark-ls-bubble p {
	margin: 0 0 10px;
}

.eark-ls-bubble p:last-child {
	margin-bottom: 0;
}

.eark-ls-bubble ul,
.eark-ls-bubble ol {
	margin: 0 0 10px;
	padding-left: 18px;
}

.eark-ls-bubble li {
	margin-bottom: 4px;
}

.eark-ls-bubble .eark-btn {
	height: 34px;
	line-height: 34px;
	padding: 0 14px;
	font-size: 13px;
	margin: 6px 6px 2px 0;
}

/* Engineer Dispatch Banner */
.eark-ls-dispatch-banner {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	background: #fffbe6;
	border: 1px solid #ffe58f;
	border-left: 3px solid #faad14;
}

.eark-ls-dispatch-banner[hidden] {
	display: none;
}

.eark-ls-dispatch-pulse {
	display: inline-flex;
	gap: 4px;
	flex-shrink: 0;
}

.eark-ls-dispatch-pulse span {
	width: 7px;
	height: 7px;
	background: #faad14;
	animation: eark-ls-dot 0.9s infinite ease-in-out;
}

.eark-ls-dispatch-pulse span:nth-child(2) { animation-delay: 0.15s; }
.eark-ls-dispatch-pulse span:nth-child(3) { animation-delay: 0.3s; }

.eark-ls-dispatch-copy strong {
	display: block;
	font-size: 13.5px;
	color: #1d2129;
	margin-bottom: 2px;
}

.eark-ls-dispatch-copy p {
	margin: 0;
	font-size: 12.5px;
	color: #4e5969;
}

/* AI Typing */
.eark-ls-typing {
	display: flex;
	align-items: center;
	gap: 12px;
}

.eark-ls-typing[hidden] {
	display: none;
}

.eark-ls-typing-avatar {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #1677ff 0%, #0a1628 100%);
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
}

.eark-ls-typing-bubble {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 16px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	font-size: 13px;
	color: #64748b;
}

.eark-ls-dots {
	display: inline-flex;
	gap: 4px;
}

.eark-ls-dots i {
	display: block;
	width: 6px;
	height: 6px;
	background: var(--eark-primary, #1677ff);
	animation: eark-ls-dot 0.8s infinite ease-in-out;
}

.eark-ls-dots i:nth-child(2) { animation-delay: 0.12s; }
.eark-ls-dots i:nth-child(3) { animation-delay: 0.24s; }

@keyframes eark-ls-dot {
	0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
	40% { transform: translateY(-4px); opacity: 1; }
}

/* Attached Service Pill Bar */
.eark-ls-context-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 24px;
	background: #eef5ff;
	border-top: 1px solid #d6e4ff;
	font-size: 12.5px;
}

.eark-ls-context-bar[hidden] {
	display: none;
}

.eark-ls-context-label {
	color: #4e5969;
	font-weight: 600;
}

.eark-ls-context-chip {
	padding: 2px 8px;
	background: #ffffff;
	border: 1px solid #91caff;
	color: var(--eark-primary, #1677ff);
	font-weight: 700;
}

.eark-ls-context-remove {
	appearance: none;
	background: transparent;
	border: 0;
	font-size: 16px;
	color: #64748b;
	cursor: pointer;
}

/* Composer */
.eark-ls-composer {
	background: #ffffff;
	border-top: 1px solid #e2e8f0;
	padding: 14px 24px 12px;
	flex-shrink: 0;
}

.eark-ls-form {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	padding: 8px 10px 8px 14px;
	transition: border-color 0.16s ease;
}

.eark-ls-form:focus-within {
	border-color: var(--eark-primary, #1677ff);
}

.eark-ls-input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	color: #1d2129;
	resize: none;
	max-height: 120px;
	padding: 4px 0;
	outline: none;
}

.eark-ls-composer-tools {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.eark-ls-escalate-btn {
	appearance: none;
	height: 36px;
	padding: 0 12px;
	background: #f4f8ff;
	border: 1px solid #bfd8ff;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--eark-primary, #1677ff);
	cursor: pointer;
}

.eark-ls-escalate-btn[hidden] {
	display: none;
}

.eark-ls-escalate-btn:hover {
	background: #e8f2ff;
}

.eark-ls-send-btn {
	height: 36px;
	line-height: 36px;
	padding: 0 18px;
	gap: 6px;
}

.eark-ls-composer-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
	font-size: 11.5px;
	color: #86909c;
}

.eark-ls-admin-webhook code {
	background: #f1f5f9;
	padding: 1px 5px;
	font-size: 11px;
	color: #334155;
}

/* ==========================================================================
   Right Inspector Panel: Pre-Sales Solutions OR Upmind Client Assets
   ========================================================================== */
.eark-ls-inspector {
	background: #ffffff;
	border-left: 1px solid #e2e8f0;
	padding: 20px 18px;
	overflow-y: auto;
	height: calc(100vh - 64px);
	max-height: calc(100vh - 64px);
}

.eark-ls-insp-pane {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.eark-ls-insp-pane[hidden] {
	display: none;
}

.eark-ls-insp-card {
	background: #f8fafd;
	border: 1px solid #e2e8f0;
	padding: 16px;
}

.eark-ls-insp-card h3 {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	color: #1d2129;
}

.eark-ls-insp-muted {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: #64748b;
}

.eark-ls-insp-head-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.eark-ls-insp-head-row .eark-ls-kicker {
	margin-bottom: 0;
}

.eark-ls-refresh-assets {
	appearance: none;
	background: #ffffff;
	border: 1px solid #d6e0ee;
	width: 24px;
	height: 24px;
	font-size: 13px;
	color: #4e5969;
	cursor: pointer;
}

.eark-ls-rec-list,
.eark-ls-asset-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 12px;
}

.eark-ls-rec-item,
.eark-ls-asset-item {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	padding: 12px;
}

.eark-ls-rec-item strong,
.eark-ls-asset-item strong {
	display: block;
	font-size: 13.5px;
	color: #1d2129;
	margin-bottom: 3px;
}

.eark-ls-rec-item p {
	margin: 0 0 8px;
	font-size: 12px;
	line-height: 1.5;
	color: #64748b;
}

.eark-ls-rec-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.eark-ls-rec-price {
	font-size: 13px;
	font-weight: 700;
	color: var(--eark-primary, #1677ff);
}

.eark-ls-rec-link {
	font-size: 12px;
	font-weight: 600;
	color: var(--eark-primary, #1677ff);
	text-decoration: none;
}

.eark-ls-asset-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 11.5px;
	color: #64748b;
	margin-top: 4px;
}

.eark-ls-asset-badge {
	padding: 1px 6px;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	background: #e8faf8;
	color: #008f83;
}

.eark-ls-asset-badge.is-warn {
	background: #fff7e6;
	color: #d46b08;
}

.eark-ls-attach-btn {
	appearance: none;
	margin-top: 8px;
	width: 100%;
	height: 28px;
	background: #f4f8ff;
	border: 1px solid #bfd8ff;
	font-family: inherit;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--eark-primary, #1677ff);
	cursor: pointer;
}

.eark-ls-attach-btn:hover {
	background: var(--eark-primary, #1677ff);
	color: #ffffff;
}

.eark-ls-quick-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.eark-ls-quick-links a {
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	text-decoration: none;
}

.eark-ls-quick-links a:hover {
	color: var(--eark-primary, #1677ff);
}

@media (max-width: 1180px) {
	.eark-ls-console {
		grid-template-columns: 250px minmax(0, 1fr);
	}
	.eark-ls-inspector {
		display: none;
	}
}

@media (max-width: 820px) {
	.eark-ls-console {
		grid-template-columns: 1fr;
		min-height: auto;
	}
	.eark-ls-sidebar {
		border-right: 0;
		border-bottom: 1px solid #e2e8f0;
	}
	.eark-ls-mode-tabs {
		flex-direction: row;
	}
	.eark-ls-main {
		height: 78vh;
		max-height: 78vh;
	}
	.eark-ls-scenario-grid {
		grid-template-columns: 1fr;
	}
}

.eark-ls-test-relay-btn {
	appearance: none;
	margin-left: 8px;
	padding: 2px 8px;
	background: #eef5ff;
	border: 1px solid #bfd8ff;
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
	color: var(--eark-primary, #1677ff);
	cursor: pointer;
}

.eark-ls-test-relay-btn:hover {
	background: var(--eark-primary, #1677ff);
	color: #ffffff;
}

/* Interactive AI Quick-Reply Choice Chips */
.eark-ls-reply-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.eark-ls-reply-chip {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 13px;
	background: #f4f8ff;
	border: 1px solid #bfd8ff;
	border-radius: 0;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--eark-primary, #1677ff);
	cursor: pointer;
	text-align: left;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.eark-ls-reply-chip:hover:not(:disabled) {
	background: var(--eark-primary, #1677ff);
	border-color: var(--eark-primary, #1677ff);
	color: #ffffff;
	transform: translateY(-1px);
}

.eark-ls-reply-chip:disabled,
.eark-ls-reply-chips.is-used .eark-ls-reply-chip {
	opacity: 0.55;
	cursor: default;
	pointer-events: none;
}

.eark-ls-asset-sub {
	display: block;
	font-size: 12px;
	color: #64748b;
	margin-top: 2px;
}

/* Live Web Diagnostic Strip */
.eark-ls-diag-box {
	margin-bottom: 10px;
	padding: 10px 12px;
	background: #f8fafd;
	border: 1px solid #d6e4ff;
	border-left: 3px solid #00c4b4;
	font-size: 12px;
}

.eark-ls-diag-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

.eark-ls-diag-head strong {
	font-size: 12px;
	font-weight: 700;
	color: #0a1628;
	letter-spacing: 0.01em;
}

.eark-ls-diag-tag {
	padding: 1px 6px;
	background: #e8faf8;
	border: 1px solid #87e8de;
	color: #008f83;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
}

.eark-ls-diag-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.eark-ls-diag-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	font-size: 11.5px;
	font-weight: 600;
	color: #334155;
}

.eark-ls-diag-pill.is-ok {
	border-color: #b7eb8f;
	background: #f6ffed;
	color: #135200;
}

.eark-ls-diag-pill.is-warn {
	border-color: #ffd591;
	background: #fffbe6;
	color: #ad4e00;
}

.eark-ls-diag-pill.is-err {
	border-color: #ffccc7;
	background: #fff2f0;
	color: #a8071a;
}

/* Double-Confirmation Account Change Card */
.eark-ls-confirm-card {
	margin-top: 12px;
	padding: 14px 16px;
	background: #f8fafd;
	border: 1px solid #bfd8ff;
	border-top: 3px solid var(--eark-primary, #1677ff);
}

.eark-ls-confirm-card.is-resolved {
	border-color: #e2e8f0;
	border-top-color: #94a3b8;
	opacity: 0.88;
}

.eark-ls-confirm-card.is-applied {
	border-color: #b7eb8f;
	border-top-color: #00a870;
	background: #f6ffed;
}

.eark-ls-confirm-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.eark-ls-confirm-badge {
	display: inline-block;
	padding: 2px 7px;
	background: #fff7e6;
	border: 1px solid #ffd591;
	color: #d46b08;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.eark-ls-confirm-card.is-applied .eark-ls-confirm-badge {
	background: #e8faf8;
	border-color: #87e8de;
	color: #008f83;
}

.eark-ls-confirm-title {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #1d2129;
	margin-bottom: 8px;
}

.eark-ls-confirm-rows {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px 10px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	margin-bottom: 10px;
	font-size: 12.5px;
}

.eark-ls-confirm-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
}

.eark-ls-confirm-row span.is-lbl {
	font-weight: 700;
	color: #4e5969;
	min-width: 96px;
}

.eark-ls-confirm-row span.is-old {
	color: #86909c;
	text-decoration: line-through;
}

.eark-ls-confirm-row span.is-new {
	font-weight: 700;
	color: var(--eark-primary, #1677ff);
	word-break: break-all;
}

.eark-ls-confirm-note {
	margin: 0 0 10px;
	font-size: 12px;
	color: #64748b;
}

.eark-ls-confirm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.eark-ls-confirm-actions .eark-btn {
	height: 32px;
	line-height: 32px;
	padding: 0 14px;
	font-size: 12.5px;
	margin: 0;
}

/* Custom Support Desk Avatar Image Support */
.eark-ls-agent-badge.has-photo,
.eark-ls-avatar.has-photo,
.eark-ls-typing-avatar.has-photo {
	padding: 0;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid #dbe6ff;
}

.eark-ls-agent-badge img,
.eark-ls-avatar img,
.eark-ls-typing-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.eark-ls-credit-banner {
	padding: 8px 10px;
	background: #e8faf8;
	border: 1px solid #87e8de;
	font-size: 12px;
	font-weight: 600;
	color: #008f83;
}
