.adchat, .adchat * { box-sizing: border-box; }
.adchat {
	--ad-bg: #ffffff;
	--ad-fg: #1d2327;
	--ad-muted: #646970;
	--ad-line: #dcdcde;
	--ad-accent: #1f2937;
	--ad-accent-fg: #ffffff;
	--ad-bot: #f0f0f1;
	--ad-user: #1f2937;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.4;
	color: var(--ad-fg);
}
@media (prefers-color-scheme: dark) {
	.adchat {
		--ad-bg: #1e1f22;
		--ad-fg: #eceff1;
		--ad-muted: #a0a4a8;
		--ad-line: #3a3c40;
		--ad-accent: #e5e7eb;
		--ad-accent-fg: #111827;
		--ad-bot: #2a2c30;
		--ad-user: #e5e7eb;
	}
}
.adchat-toggle {
	position: fixed; right: 18px; bottom: 18px; z-index: 99998;
	width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--ad-accent); color: var(--ad-accent-fg); font-size: 24px;
	box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.adchat-panel {
	position: fixed; right: 18px; bottom: 86px; z-index: 99999;
	width: 360px; max-width: calc(100vw - 24px); height: 480px; max-height: calc(100vh - 110px);
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--ad-bg); border: 1px solid var(--ad-line); border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.adchat-panel[hidden] { display: none; }
.adchat-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 12px 14px; background: var(--ad-accent); color: var(--ad-accent-fg); font-weight: 600;
}
.adchat-close {
	border: 0; background: transparent; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.adchat-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.adchat-msg {
	max-width: 85%; padding: 8px 12px; border-radius: 12px; white-space: pre-line; word-wrap: break-word;
}
.adchat-bot { align-self: flex-start; background: var(--ad-bot); }
.adchat-user { align-self: flex-end; background: var(--ad-user); color: var(--ad-accent-fg); }
.adchat-cards { align-self: flex-start; display: flex; flex-direction: column; gap: 6px; max-width: 85%; }
.adchat-card {
	display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px;
	border: 1px solid var(--ad-line); border-radius: 10px; text-decoration: none; color: var(--ad-fg);
}
.adchat-card:hover { border-color: var(--ad-accent); }
.adchat-card-title { font-weight: 600; }
.adchat-card-price { white-space: nowrap; color: var(--ad-muted); }
.adchat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; }
.adchat-chip {
	border: 1px solid var(--ad-line); background: transparent; color: var(--ad-fg);
	border-radius: 999px; padding: 5px 10px; font-size: 13px; cursor: pointer;
}
.adchat-chip:hover { border-color: var(--ad-accent); }
.adchat-form { display: flex; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--ad-line); }
.adchat-input {
	flex: 1; min-width: 0; padding: 8px 10px; font-size: 15px; border-radius: 8px;
	border: 1px solid var(--ad-line); background: var(--ad-bg); color: var(--ad-fg);
}
.adchat-send {
	border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer;
	background: var(--ad-accent); color: var(--ad-accent-fg); font-size: 14px;
}
.adchat-notice { padding: 0 12px 10px; font-size: 11px; color: var(--ad-muted); }
