/* ============ Chat agent widget (com_chatagents) — dark theme in the Free Hands palette ============
   The widget reads data-theme="dark" on <body> and switches to .theme-dark; these overrides
   re-skin that dark theme with the template's colours. body[data-theme] gives them higher
   specificity than the widget's own stylesheet, so load order does not matter. */

body[data-theme="dark"] .com-chatagents-agent.theme-dark,
body[data-theme="dark"] .com-chatagents-agents-list.theme-dark,
body[data-theme="dark"] .chatagent-toasts,
body[data-theme="dark"] .chatagent-app.theme-dark {
	--chatagent-accent: #40c896;
	--chatagent-accent-2: #2dd4bf;
	--chatagent-accent-3: #5be0ae;
	--chatagent-accent-4: #34d399;
	--chatagent-surface: #0f1a16;
	--chatagent-canvas: #060b09;
	--chatagent-border: rgba(64, 200, 150, .18);
	--chatagent-text: #e3efe9;
	--chatagent-muted: #8ea89c;
	--chatagent-bubble-bot: #12201b;
	--chatagent-success: #40c896;
	--chatagent-danger: #f87171;
	--chatagent-danger-bg: #2a1214;
	--chatagent-danger-border: #5c2326;
	--chatagent-code-bg: #050907;
	--chatagent-code-text: #d6ebe1;
	--chatagent-code-inline-bg: rgba(64, 200, 150, .14);
	--chatagent-code-inline-color: #5be0ae;
	--chatagent-link: #5be0ae;
	--chatagent-link-user: #04140d;
	--chatagent-orb-1: rgba(64, 200, 150, .35);
	--chatagent-orb-2: rgba(45, 212, 191, .28);
	--chatagent-orb-3: rgba(91, 224, 174, .22);
	--chatagent-aurora: conic-gradient(from 180deg at 50% 0%, rgba(64, 200, 150, .22), rgba(45, 212, 191, .14), rgba(91, 224, 174, .16), rgba(64, 200, 150, .22));
	--chatagent-title-grad: linear-gradient(90deg, #5be0ae, #2dd4bf, #40c896, #5be0ae);
	--chatagent-header-bg: rgba(6, 11, 9, .8);
	--chatagent-grid: rgba(227, 239, 233, .04);
	--chatagent-scroll: rgba(64, 200, 150, .35);
	--chatagent-scroll-hover: rgba(64, 200, 150, .6);
	--chatagent-pulse: rgba(64, 200, 150, .55);
	--chatagent-glow-ring: rgba(64, 200, 150, .45);
	--chatagent-glow-soft: rgba(64, 200, 150, .25);
	--chatagent-glow-strong: rgba(64, 200, 150, .55);
	--chatagent-glow-user: rgba(64, 200, 150, .3);
	--chatagent-glow-code: rgba(64, 200, 150, .25);
	--chatagent-glow-send-a: rgba(64, 200, 150, .45);
	--chatagent-glow-send-b: rgba(45, 212, 191, .5);
	--chatagent-focus-ring: rgba(64, 200, 150, .25);
	--chatagent-quote-bg: rgba(64, 200, 150, .08);
	--chatagent-welcome-bg: linear-gradient(135deg, rgba(64, 200, 150, .12), rgba(45, 212, 191, .08));
	--chatagent-welcome-border: rgba(64, 200, 150, .32);
	--chatagent-placeholder-grad: linear-gradient(135deg, #12201b, #0f1a16);
	--chatagent-halo: rgba(64, 200, 150, .12);
	--chatagent-shadow-app: 0 24px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(64, 200, 150, .14);
	--chatagent-shadow-sm: 0 8px 28px rgba(0, 0, 0, .45);
	--chatagent-shadow-glow: 0 8px 24px rgba(64, 200, 150, .35);
	--chatagent-shadow-chip: 0 2px 8px rgba(0, 0, 0, .4);
	--chatagent-shadow-float: 0 10px 26px rgba(0, 0, 0, .55);
	font-family: var(--vx-font);
}

/* Bright green fills need dark text, like the site's primary buttons */
body[data-theme="dark"] .chatagent-message-user .chatagent-message-bubble,
body[data-theme="dark"] .chatagent-send-btn,
body[data-theme="dark"] .chatagent-form-submit,
body[data-theme="dark"] .chatagent-tool-card-icon,
body[data-theme="dark"] .chatagent-tools-count,
body[data-theme="dark"] #chatagents-app .chatagent-chip:hover,
body[data-theme="dark"] #chatagents-app button.chatagent-new-chat:hover,
body[data-theme="dark"] #chatagents-app .chatagent-scroll-bottom:hover,
body[data-theme="dark"] .chatagent-history-toggle:hover,
body[data-theme="dark"] .chatagent-history-toggle.is-active,
body[data-theme="dark"] .chatagent-history-close:hover {
	color: #04140d;
}
