/* HelpingHands AI — front-end chat
   Themed entirely through custom properties, so a child theme can restyle
   everything by overriding .hh-ai { --hh-* } without touching this file.
   Every rule is scoped under .hh-ai so theme resets (button/input/a styles)
   can't outrank it. */

.hh-ai {
	--hh-accent: #c67139;
	--hh-accent-light: #f6a06b;
	--hh-bg: #14100d;
	--hh-surface: #1e1815;
	--hh-side: #1a1512;
	--hh-ink: #f5ead8;
	--hh-muted: rgba(245, 234, 216, .62);
	--hh-line: rgba(245, 234, 216, .12);
	--hh-live: #8fd684;
	--hh-radius: 24px;
	--hh-height: 760px;
	--hh-sidebar-w: 280px;

	position: relative;
	display: flex;
	width: 100%;
	height: var(--hh-height);
	max-height: 90vh;
	overflow: hidden;
	border: 1px solid var(--hh-line);
	border-radius: var(--hh-radius);
	background: var(--hh-bg);
	color: var(--hh-ink);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.55;
	text-align: left;
	isolation: isolate;
}

/* Full-screen when the shortcode is the whole page (e.g. Elementor Canvas). */
body:has(> .hh-ai) { background: #14100d; }
body > .hh-ai {
	height: 100vh;
	height: 100dvh;
	max-height: none;
	border: 0;
	border-radius: 0;
}
/* Logged-in users get the WP admin bar (html margin-top 32px / 46px) — don't overflow the page. */
body.admin-bar > .hh-ai { height: calc(100vh - 32px); height: calc(100dvh - 32px); }
@media screen and (max-width: 782px) {
	body.admin-bar > .hh-ai { height: calc(100vh - 46px); height: calc(100dvh - 46px); }
}

.hh-ai.hh-theme-light {
	--hh-bg: #f5ead8;
	--hh-surface: #fffaf1;
	--hh-side: #ebddc5;
	--hh-ink: #201e1d;
	--hh-muted: rgba(32, 30, 29, .66);
	--hh-line: rgba(32, 30, 29, .16);
	--hh-live: #4f8f46;
}
body:has(> .hh-ai.hh-theme-light) { background: #f5ead8; }

.hh-ai *, .hh-ai *::before, .hh-ai *::after { box-sizing: border-box; }

/* neutralise theme resets on form controls and links */
.hh-ai button, .hh-ai input, .hh-ai textarea {
	margin: 0;
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
	text-transform: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}
.hh-ai a, .hh-ai a:hover, .hh-ai a:active { text-decoration: none; }
.hh-ai svg { display: block; flex: none; }
.hh-ai :focus { outline: none; box-shadow: none; }
.hh-ai :focus-visible { outline: 2px solid var(--hh-accent-light); outline-offset: 2px; box-shadow: none; }

.hh-ai .hh-ai-loading { margin: auto; color: var(--hh-muted); }

/* themed scrollbars */
.hh-ai .hh-scroll, .hh-ai .hh-recents, .hh-ai .hh-sidebar, .hh-ai textarea {
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--hh-accent-light) 30%, transparent) transparent;
}
.hh-ai .hh-scroll:hover, .hh-ai .hh-recents:hover, .hh-ai textarea:hover {
	scrollbar-color: color-mix(in srgb, var(--hh-accent-light) 55%, transparent) transparent;
}
.hh-ai ::-webkit-scrollbar { width: 8px; height: 8px; }
.hh-ai ::-webkit-scrollbar-track { background: transparent; }
.hh-ai ::-webkit-scrollbar-thumb {
	background: color-mix(in srgb, var(--hh-accent-light) 30%, transparent);
	border-radius: 999px; border: 2px solid transparent; background-clip: padding-box;
}
.hh-ai ::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--hh-accent-light) 60%, transparent); }

/* ------------------------------------------------------------- sidebar */

.hh-ai .hh-sidebar {
	flex: none;
	width: var(--hh-sidebar-w);
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 12px;
	background: var(--hh-side);
	border-right: 1px solid var(--hh-line);
	overflow: hidden;
	transition: width .35s cubic-bezier(.2, .7, .3, 1);
}
.hh-ai.hh-collapsed .hh-sidebar { width: 72px; }
.hh-ai.hh-collapsed .hh-sidebar span:not(.hh-mark):not(.hh-chevron),
.hh-ai.hh-collapsed .hh-recents { display: none; }

.hh-ai .hh-brand { display: flex; align-items: center; gap: 10px; padding: 6px 6px 14px; }
.hh-ai .hh-mark {
	flex: none; width: 36px; height: 36px; border-radius: 999px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(140deg, var(--hh-accent-light), var(--hh-accent));
	color: #14100d; font-size: 17px; line-height: 1;
}
.hh-ai .hh-brand-name { font-size: 18px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }

.hh-ai .hh-new, .hh-ai .hh-navitem, .hh-ai .hh-recent, .hh-ai .hh-collapse {
	display: flex; align-items: center; gap: 12px;
	width: 100%; min-height: 42px; text-align: left; white-space: nowrap;
	font-size: 14px; font-weight: 400; line-height: 1.3; color: var(--hh-ink);
	background: transparent; border: 1px solid transparent;
	padding: 10px 12px; border-radius: 999px; cursor: pointer;
	transition: background-color .22s ease, border-color .22s ease, transform .22s ease, color .22s ease;
}
.hh-ai .hh-new {
	font-weight: 600;
	color: var(--hh-ink);
	background: color-mix(in srgb, var(--hh-accent-light) 10%, transparent);
	border-color: color-mix(in srgb, var(--hh-accent-light) 26%, transparent);
	margin-bottom: 8px;
}
.hh-ai .hh-new:hover, .hh-ai .hh-new:focus {
	color: var(--hh-ink);
	background: color-mix(in srgb, var(--hh-accent-light) 20%, transparent);
	border-color: color-mix(in srgb, var(--hh-accent-light) 26%, transparent);
}
.hh-ai .hh-new:hover { transform: translateX(2px); }

.hh-ai .hh-nav { display: flex; flex-direction: column; gap: 2px; }
.hh-ai .hh-navitem { color: var(--hh-muted); }
.hh-ai .hh-navitem:hover, .hh-ai .hh-navitem:focus { background: color-mix(in srgb, var(--hh-ink) 8%, transparent); color: var(--hh-ink); }
.hh-ai .hh-navitem.is-active, .hh-ai .hh-navitem.is-active:hover {
	color: var(--hh-accent-light);
	background: color-mix(in srgb, var(--hh-accent-light) 14%, transparent);
	border-color: color-mix(in srgb, var(--hh-accent-light) 30%, transparent);
	box-shadow: 0 0 22px color-mix(in srgb, var(--hh-accent-light) 14%, transparent);
}

.hh-ai .hh-recents {
	margin: 14px -4px 0; padding: 0 4px 8px;
	flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
	display: flex; flex-direction: column; gap: 2px;
}
.hh-ai .hh-recents-label {
	flex: none;
	font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
	color: var(--hh-muted); padding: 12px 12px 6px;
}
.hh-ai .hh-recents-label:first-child { padding-top: 0; }
.hh-ai .hh-recent-row { position: relative; flex: none; border-radius: 999px; }
.hh-ai .hh-recent { font-size: 13.5px; color: var(--hh-muted); padding-right: 40px; min-height: 38px; }
.hh-ai .hh-recent span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hh-ai .hh-recent:hover, .hh-ai .hh-recent:focus { background: color-mix(in srgb, var(--hh-ink) 8%, transparent); color: var(--hh-ink); }
.hh-ai .hh-recent-row.is-active .hh-recent,
.hh-ai .hh-recent-row.is-active .hh-recent:hover {
	color: var(--hh-ink);
	background: color-mix(in srgb, var(--hh-ink) 11%, transparent);
}
.hh-ai .hh-recent-del {
	position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
	width: 28px; height: 28px; padding: 0; border: 0; border-radius: 999px;
	display: flex; align-items: center; justify-content: center;
	background: transparent; color: var(--hh-muted); cursor: pointer;
	opacity: 0; transition: opacity .15s ease, background-color .15s ease, color .15s ease;
}
.hh-ai .hh-recent-row:hover .hh-recent-del,
.hh-ai .hh-recent-row.is-active .hh-recent-del,
.hh-ai .hh-recent-del:focus-visible { opacity: 1; }
.hh-ai .hh-recent-del:hover, .hh-ai .hh-recent-del:focus {
	color: var(--hh-accent-light);
	background: color-mix(in srgb, var(--hh-ink) 10%, transparent);
}
@media (hover: none) {
	.hh-ai .hh-recent-del { opacity: .7; }
}
.hh-ai .hh-msg.hh-instant { animation: none; }

.hh-ai .hh-foot { flex: none; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--hh-line); }

/* parent brand row ("A brand of VisionaryCue") — same shape as the nav items */
.hh-ai .hh-parent, .hh-ai .hh-parent:focus {
	flex: none; margin: auto 0 8px;
	position: relative;
	display: flex; align-items: center; gap: 11px;
	padding: 7px 12px 7px 7px; border-radius: 14px;
	color: var(--hh-muted); text-decoration: none;
	transition: background-color .22s ease, color .22s ease;
}
.hh-ai .hh-parent:hover { background: color-mix(in srgb, var(--hh-ink) 7%, transparent); color: var(--hh-ink); }
.hh-ai .hh-parent ~ .hh-foot { margin-top: 0; }
.hh-ai .hh-parent-icon {
	flex: none; width: 36px; height: 36px; border-radius: 10px;
	display: flex; align-items: center; justify-content: center;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 4px 14px rgba(110, 60, 190, .28);
	transition: transform .22s ease, box-shadow .22s ease;
}
.hh-ai .hh-parent-icon img { display: block; width: 24px; height: 24px; }
.hh-ai .hh-parent:hover .hh-parent-icon { transform: rotate(-4deg) scale(1.05); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 6px 20px rgba(110, 60, 190, .45); }
.hh-ai .hh-parent-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.hh-ai .hh-parent-text small { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--hh-muted); }
.hh-ai .hh-parent-text b { font-size: 14px; font-weight: 700; color: var(--hh-ink); letter-spacing: -.005em; }
.hh-ai .hh-parent-ext { margin-left: auto; display: flex; opacity: .55; transition: opacity .2s ease, transform .2s ease; }
.hh-ai .hh-parent:hover .hh-parent-ext { opacity: 1; transform: translate(2px, -2px); }
/* collapsed: icon only, centred like the other icons */
.hh-ai.hh-collapsed .hh-parent { padding: 5px; justify-content: center; }
.hh-ai.hh-collapsed .hh-parent:hover::after {
	content: attr(title);
	position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
	background: var(--hh-surface); border: 1px solid var(--hh-line); color: var(--hh-ink);
	padding: 6px 10px; border-radius: 10px; font-size: 12.5px; white-space: nowrap; z-index: 5;
}
.hh-ai .hh-brand, .hh-ai .hh-new, .hh-ai .hh-nav { flex: none; }
.hh-ai .hh-collapse { color: var(--hh-muted); font-size: 13px; }
.hh-ai .hh-collapse:hover, .hh-ai .hh-collapse:focus { background: color-mix(in srgb, var(--hh-ink) 8%, transparent); color: var(--hh-ink); }
.hh-ai .hh-chevron { flex: none; width: 18px; display: flex; justify-content: center; transition: transform .35s ease; }
.hh-ai.hh-collapsed .hh-chevron { transform: rotate(180deg); }

/* tooltips when collapsed */
.hh-ai.hh-collapsed .hh-navitem, .hh-ai.hh-collapsed .hh-new { position: relative; }
.hh-ai.hh-collapsed .hh-sidebar { overflow: visible; }
.hh-ai.hh-collapsed .hh-navitem:hover::after, .hh-ai.hh-collapsed .hh-new:hover::after {
	content: attr(title);
	position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
	background: var(--hh-surface); border: 1px solid var(--hh-line); color: var(--hh-ink);
	padding: 6px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 400; white-space: nowrap; z-index: 5;
}

/* --------------------------------------------------------------- main */

.hh-ai .hh-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.hh-ai .hh-topbar {
	flex: none;
	display: flex; align-items: center; gap: 12px;
	padding: 12px 18px; min-height: 60px; border-bottom: 1px solid var(--hh-line);
	background: color-mix(in srgb, var(--hh-bg) 88%, transparent);
	backdrop-filter: blur(12px);
}
.hh-ai .hh-title { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hh-ai .hh-status {
	flex: none;
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 12px; line-height: 1.4; color: var(--hh-live);
	border: 1px solid color-mix(in srgb, var(--hh-live) 34%, transparent);
	background: color-mix(in srgb, var(--hh-live) 10%, transparent);
	padding: 3px 10px; border-radius: 999px;
}
.hh-ai .hh-dot {
	width: 6px; height: 6px; border-radius: 999px; background: var(--hh-live);
	box-shadow: 0 0 8px var(--hh-live); animation: hh-pulse 2.2s ease-in-out infinite;
}
@keyframes hh-pulse { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.25); } }

.hh-ai .hh-status { margin-right: auto; }
.hh-ai .hh-progress { flex: none; display: flex; align-items: center; gap: 10px; }

/* "Skip to website" in the full-page header */
.hh-ai .hh-skip, .hh-ai .hh-skip:focus {
	flex: none;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 14px 8px 16px; border-radius: 999px;
	font-size: 13.5px; font-weight: 600; line-height: 1.2; white-space: nowrap;
	color: var(--hh-ink);
	background: color-mix(in srgb, var(--hh-accent-light) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--hh-accent-light) 35%, transparent);
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.hh-ai .hh-skip svg { transition: transform .2s ease; }
.hh-ai .hh-skip:hover {
	color: #14100d;
	background: linear-gradient(135deg, var(--hh-accent-light), var(--hh-accent));
	border-color: transparent;
}
.hh-ai .hh-skip:hover svg { transform: translateX(3px); }

/* popup header tools */
.hh-ai .hh-tools { flex: none; display: flex; gap: 6px; }
.hh-ai .hh-iconbtn {
	width: 34px; height: 34px; padding: 0; border-radius: 999px;
	display: flex; align-items: center; justify-content: center;
	background: transparent; border: 1px solid var(--hh-line); color: var(--hh-muted); cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
.hh-ai .hh-iconbtn:hover, .hh-ai .hh-iconbtn:focus { background: color-mix(in srgb, var(--hh-ink) 10%, transparent); color: var(--hh-ink); border-color: var(--hh-line); }
.hh-ai .hh-progress-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--hh-muted); white-space: nowrap; }
.hh-ai .hh-progress-track {
	display: block; width: 110px; height: 4px; border-radius: 999px;
	background: color-mix(in srgb, var(--hh-ink) 14%, transparent); overflow: hidden;
}
.hh-ai .hh-progress-track i {
	display: block; height: 100%; width: 0; border-radius: 999px;
	background: linear-gradient(90deg, var(--hh-accent), var(--hh-accent-light));
	transition: width .5s cubic-bezier(.2, .7, .3, 1);
}

.hh-ai .hh-burger {
	display: none; width: 38px; height: 38px; flex: none; padding: 0;
	align-items: center; justify-content: center;
	background: transparent; border: 1px solid var(--hh-line);
	border-radius: 999px; color: var(--hh-ink); cursor: pointer;
}
.hh-ai .hh-burger:hover, .hh-ai .hh-burger:focus { background: color-mix(in srgb, var(--hh-ink) 8%, transparent); color: var(--hh-ink); border-color: var(--hh-line); }

.hh-ai .hh-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.hh-ai .hh-thread { max-width: 760px; margin: 0 auto; padding: 26px 22px 10px; display: flex; flex-direction: column; gap: 18px; }

.hh-ai .hh-msg { display: flex; gap: 12px; align-items: flex-start; animation: hh-rise .32s ease both; }
.hh-ai .hh-msg.hh-from-user { justify-content: flex-end; }
@keyframes hh-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.hh-ai .hh-avatar {
	flex: none; width: 30px; height: 30px; border-radius: 999px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(140deg, var(--hh-accent-light), var(--hh-accent));
	color: #14100d; font-size: 14px; line-height: 1; margin-top: 2px;
}
.hh-ai .hh-bubble {
	max-width: calc(100% - 42px); padding: 11px 16px; font-size: 15.5px; line-height: 1.55;
	border: 1px solid var(--hh-line); background: var(--hh-surface); color: var(--hh-ink);
	border-radius: 6px 20px 20px 20px; white-space: pre-wrap; overflow-wrap: anywhere;
}
.hh-ai .hh-from-user .hh-bubble {
	max-width: 78%; border-radius: 20px 6px 20px 20px;
	background: color-mix(in srgb, var(--hh-accent) 20%, transparent);
	border-color: color-mix(in srgb, var(--hh-accent-light) 30%, transparent);
}
.hh-ai .hh-bubble img.emoji { vertical-align: -.15em; }
.hh-ai .hh-typing { display: flex; gap: 5px; align-items: center; min-height: 48px; }
.hh-ai .hh-typing i {
	width: 6px; height: 6px; border-radius: 999px; background: var(--hh-accent-light);
	animation: hh-bounce 1.1s infinite;
}
.hh-ai .hh-typing i:nth-child(2) { animation-delay: .15s; }
.hh-ai .hh-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hh-bounce { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* ----------------------------------------------------------- composer */

.hh-ai .hh-composer { flex: none; padding: 10px 22px 16px; background: linear-gradient(180deg, transparent, var(--hh-bg) 40%); }
.hh-ai .hh-composer:empty { display: none; }
.hh-ai .hh-composer-inner { max-width: 760px; margin: 0 auto; }
.hh-ai .hh-choices { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.hh-ai .hh-chip {
	font-size: 14px; font-weight: 600; line-height: 1.3; cursor: pointer; white-space: normal; text-align: center;
	padding: 11px 18px; border-radius: 999px;
	background: var(--hh-surface); border: 1px solid var(--hh-line); color: var(--hh-ink);
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.hh-ai .hh-chip:hover, .hh-ai .hh-chip:focus {
	background: var(--hh-surface); color: var(--hh-ink);
	border-color: color-mix(in srgb, var(--hh-accent-light) 55%, transparent);
}
.hh-ai .hh-chip.is-on, .hh-ai .hh-chip.is-on:hover, .hh-ai .hh-chip.is-on:focus {
	background: color-mix(in srgb, var(--hh-accent-light) 20%, transparent);
	border-color: var(--hh-accent-light);
	color: var(--hh-accent-light);
}
.hh-ai .hh-composer .hh-other {
	display: block; width: 100%; margin: 0 0 10px; font-size: 16px; line-height: 1.4;
	padding: 13px 18px; border-radius: 16px;
	background: var(--hh-surface); border: 1px solid var(--hh-line); color: var(--hh-ink);
}
.hh-ai .hh-composer .hh-other:focus { border-color: color-mix(in srgb, var(--hh-accent-light) 55%, transparent); }
.hh-ai .hh-inputrow {
	display: flex; align-items: flex-end; gap: 10px;
	background: var(--hh-surface); border: 1px solid var(--hh-line);
	border-radius: 24px; padding: 7px 7px 7px 18px;
	transition: border-color .2s ease;
}
.hh-ai .hh-inputrow:focus-within { border-color: color-mix(in srgb, var(--hh-accent-light) 55%, transparent); }
.hh-ai .hh-inputrow .hh-field,
.hh-ai .hh-inputrow .hh-field:focus {
	flex: 1; min-width: 0; width: auto;
	border: 0; border-radius: 0; background: transparent; color: var(--hh-ink);
	font-size: 16px; line-height: 1.5; padding: 8px 0; min-height: 40px; resize: none;
	outline: none; box-shadow: none;
}
.hh-ai .hh-inputrow textarea.hh-field { max-height: 160px; overflow-y: auto; }
.hh-ai .hh-field::placeholder, .hh-ai .hh-other::placeholder { color: var(--hh-muted); opacity: 1; }
.hh-ai .hh-send {
	flex: none; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 999px;
	display: flex; align-items: center; justify-content: center; cursor: pointer;
	background: var(--hh-accent); color: #14100d;
	transition: background-color .2s ease;
}
.hh-ai .hh-send:hover:not(:disabled), .hh-ai .hh-send:focus:not(:disabled) { background: var(--hh-accent-light); color: #14100d; }
.hh-ai .hh-send:disabled, .hh-ai .hh-send-wide:disabled,
.hh-ai .hh-send:disabled:hover, .hh-ai .hh-send-wide:disabled:hover {
	cursor: not-allowed;
	background: color-mix(in srgb, var(--hh-ink) 12%, transparent);
	color: var(--hh-muted);
}
.hh-ai .hh-send-wide {
	font-size: 15px; font-weight: 600; line-height: 1.3; cursor: pointer;
	padding: 12px 26px; border: 0; border-radius: 999px;
	background: var(--hh-accent); color: #14100d;
	transition: background-color .2s ease;
}
.hh-ai .hh-send-wide:hover:not(:disabled), .hh-ai .hh-send-wide:focus:not(:disabled) { background: var(--hh-accent-light); color: #14100d; }
.hh-ai .hh-error { min-height: 18px; margin-top: 4px; font-size: 13px; color: var(--hh-accent-light); }
.hh-ai .hh-hint { text-align: center; font-size: 11.5px; color: var(--hh-muted); margin-top: 2px; }
.hh-ai .hh-browse, .hh-ai .hh-browse:focus { color: var(--hh-accent-light); font-weight: 600; text-decoration: none; }
.hh-ai .hh-hint-text + .hh-browse::before { content: '·'; display: inline-block; margin: 0 8px; color: var(--hh-muted); }
.hh-ai .hh-browse:hover { color: var(--hh-ink); text-decoration: underline; }

/* --------------------------------------------------------- processing */

.hh-ai .hh-processing { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 40px 0; }
.hh-ai .hh-orb { position: relative; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; }
.hh-ai .hh-orb::before {
	content: ''; position: absolute; inset: 0; border-radius: 999px;
	background: conic-gradient(from 0deg, transparent, var(--hh-accent-light), transparent 70%);
	animation: hh-spin 2.4s linear infinite;
}
.hh-ai .hh-orb::after { content: ''; position: absolute; inset: 6px; border-radius: 999px; background: var(--hh-bg); }
.hh-ai .hh-orb span { position: relative; z-index: 1; font-size: 28px; color: var(--hh-accent-light); }
@keyframes hh-spin { to { transform: rotate(360deg); } }
.hh-ai .hh-stage { font-size: 20px; font-weight: 700; text-align: center; }
.hh-ai .hh-bar { width: min(320px, 70%); height: 5px; border-radius: 999px; background: color-mix(in srgb, var(--hh-ink) 12%, transparent); overflow: hidden; }
.hh-ai .hh-bar i {
	display: block; height: 100%; width: 0; border-radius: 999px;
	background: linear-gradient(90deg, var(--hh-accent), var(--hh-accent-light));
	transition: width .6s ease;
}

/* ----------------------------------------------------------- proposal */

.hh-ai .hh-proposal { animation: hh-rise .45s ease both; }
.hh-ai .hh-kicker { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--hh-accent-light); margin-bottom: 8px; }
.hh-ai .hh-proposal h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 700; line-height: 1.15; margin: 0 0 6px; color: var(--hh-ink); }
.hh-ai .hh-proposal h3 { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0 0 10px; color: var(--hh-ink); }
.hh-ai .hh-for { color: var(--hh-muted); margin: 0 0 20px; }
.hh-ai .hh-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.hh-ai .hh-fact { background: var(--hh-surface); border: 1px solid var(--hh-line); border-radius: 18px; padding: 14px 16px; }
.hh-ai .hh-fact span { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--hh-muted); margin-bottom: 4px; }
.hh-ai .hh-fact strong { font-weight: 600; overflow-wrap: anywhere; }
.hh-ai .hh-panel {
	background: linear-gradient(150deg, color-mix(in srgb, var(--hh-accent) 12%, transparent), transparent 70%);
	border: 1px solid var(--hh-line); border-radius: 24px; padding: 24px; margin-bottom: 16px;
}
.hh-ai .hh-panel p { margin: 0 0 18px; color: var(--hh-muted); white-space: pre-wrap; }
.hh-ai .hh-panel p:last-child { margin-bottom: 0; }
.hh-ai .hh-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 22px; }
.hh-ai .hh-cols section { background: var(--hh-surface); border: 1px solid var(--hh-line); border-radius: 22px; padding: 22px; }
.hh-ai .hh-cols ul, .hh-ai .hh-cols ol { margin: 0; padding-left: 18px; color: var(--hh-muted); }
.hh-ai .hh-cols li { margin-bottom: 8px; }
.hh-ai .hh-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 10px; }
.hh-ai .hh-btn {
	font-size: 15px; font-weight: 600; line-height: 1.3; cursor: pointer;
	padding: 13px 24px; border-radius: 999px; border: 1px solid transparent; background: transparent;
	display: inline-flex; align-items: center; justify-content: center;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.hh-ai .hh-btn-primary, .hh-ai .hh-btn-primary:focus { background: var(--hh-accent); color: #14100d; border-color: transparent; }
.hh-ai .hh-btn-primary:hover { background: var(--hh-accent-light); color: #14100d; }
.hh-ai .hh-btn-secondary, .hh-ai .hh-btn-secondary:focus { border-color: var(--hh-line); color: var(--hh-ink); background: transparent; }
.hh-ai .hh-btn-secondary:hover { background: color-mix(in srgb, var(--hh-ink) 8%, transparent); color: var(--hh-ink); }
.hh-ai .hh-btn-ghost, .hh-ai .hh-btn-ghost:focus { color: var(--hh-muted); background: transparent; }
.hh-ai .hh-btn-ghost:hover { color: var(--hh-accent-light); background: transparent; }

/* -------------------------------------------------------------- mobile */

.hh-ai .hh-backdrop {
	position: absolute; inset: 0; z-index: 4; display: none;
	background: rgba(8, 6, 5, .6); backdrop-filter: blur(3px);
}

@media (max-width: 820px) {
	.hh-ai { max-height: none; height: min(var(--hh-height), 85vh); height: min(var(--hh-height), 85dvh); }
	body > .hh-ai { height: 100vh; height: 100dvh; }
	.hh-ai .hh-burger { display: flex; }
	.hh-ai .hh-sidebar,
	.hh-ai.hh-collapsed .hh-sidebar {
		position: absolute; inset: 0 auto 0 0; z-index: 5;
		width: min(var(--hh-sidebar-w), 85%);
		transform: translateX(-102%);
		transition: transform .35s cubic-bezier(.2, .7, .3, 1);
		overflow-y: auto;
	}
	.hh-ai.hh-collapsed .hh-sidebar span:not(.hh-mark):not(.hh-chevron) { display: inline; }
	.hh-ai.hh-collapsed .hh-recents { display: flex; }
	.hh-ai.hh-collapsed .hh-parent { padding: 7px 12px 7px 7px; justify-content: flex-start; }
	.hh-ai.hh-collapsed .hh-parent:hover::after { display: none; }
	.hh-ai.hh-collapsed .hh-sidebar .hh-parent span.hh-parent-text:not(.hh-mark),
	.hh-ai.hh-collapsed .hh-sidebar .hh-parent span.hh-parent-ext:not(.hh-mark) { display: flex; }
	.hh-ai.hh-drawer-open .hh-sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .45); }
	.hh-ai.hh-drawer-open .hh-backdrop { display: block; }
	.hh-ai .hh-foot { display: none; }
	.hh-ai .hh-topbar { padding: 10px 14px; gap: 10px; }
	.hh-ai .hh-progress-track { display: none; }
	.hh-ai .hh-thread { padding: 20px 14px 8px; gap: 14px; }
	.hh-ai .hh-composer { padding: 8px 12px 12px; }
	.hh-ai .hh-bubble { font-size: 15px; }
	.hh-ai .hh-actions .hh-btn, .hh-ai .hh-composer .hh-send-wide { width: 100%; }
	.hh-ai .hh-panel, .hh-ai .hh-cols section { padding: 18px; }
	.hh-ai .hh-cols { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.hh-ai .hh-status { padding: 3px 7px; font-size: 0; gap: 0; }
	.hh-ai .hh-progress-label { letter-spacing: .06em; }
	.hh-ai .hh-progress-label b { display: none; }
	.hh-ai .hh-hint-text, .hh-ai .hh-hint-text + .hh-browse::before { display: none; }
	.hh-ai .hh-hint { font-size: 12.5px; margin-top: 4px; }
	.hh-ai .hh-chip { padding: 10px 14px; font-size: 13.5px; }
}

.hh-ai .hh-skip-short { display: none; }
@media (max-width: 600px) {
	.hh-ai .hh-skip, .hh-ai .hh-skip:focus { padding: 7px 10px 7px 12px; gap: 6px; font-size: 13px; }
	.hh-ai .hh-skip-full { display: none; }
	.hh-ai .hh-skip-short { display: inline; }
	.hh-ai .hh-topbar:has(.hh-skip) .hh-status { display: none; }
	.hh-ai .hh-topbar:has(.hh-skip) .hh-title { margin-right: auto; }
}

/* ------------------------------------------------------- popup chat */

.hh-ai.hh-mode-popup {
	height: 100%; max-height: none;
	border-radius: inherit; border: 0;
	font-size: 14.5px;
}
.hh-ai.hh-mode-popup .hh-topbar { padding: 10px 12px 10px 16px; min-height: 58px; gap: 8px; }
.hh-ai.hh-mode-popup .hh-title { font-size: 15px; }
.hh-ai.hh-mode-popup .hh-status { padding: 3px 7px; font-size: 0; gap: 0; }
.hh-ai.hh-mode-popup .hh-progress-track, .hh-ai.hh-mode-popup .hh-progress-label b { display: none; }
.hh-ai.hh-mode-popup .hh-thread { padding: 18px 14px 8px; gap: 14px; }
.hh-ai.hh-mode-popup .hh-bubble { font-size: 14.5px; padding: 10px 14px; }
.hh-ai.hh-mode-popup .hh-avatar { width: 28px; height: 28px; font-size: 13px; }
.hh-ai.hh-mode-popup .hh-composer { padding: 8px 12px 12px; }
.hh-ai.hh-mode-popup .hh-hint { display: none; }
.hh-ai.hh-mode-popup .hh-chip { padding: 9px 13px; font-size: 13px; }
.hh-ai.hh-mode-popup .hh-choices { gap: 8px; }
.hh-ai.hh-mode-popup .hh-send-wide, .hh-ai.hh-mode-popup .hh-actions .hh-btn { width: 100%; }
.hh-ai.hh-mode-popup .hh-cols { grid-template-columns: 1fr; }
.hh-ai.hh-mode-popup .hh-facts { grid-template-columns: 1fr 1fr; }
.hh-ai.hh-mode-popup .hh-panel, .hh-ai.hh-mode-popup .hh-cols section { padding: 18px; }
.hh-ai.hh-mode-popup .hh-proposal h2 { font-size: 24px; }

/* popup with two options: tabs + welcome screen + chatbot */
.hh-launcher-wrap .hh-popup:not([hidden]) { display: flex; flex-direction: column; }
.hh-launcher-wrap .hh-popup > .hh-ai.hh-mode-popup { flex: 1; min-height: 0; height: auto; }
.hh-launcher-wrap [data-pane][hidden] { display: none !important; }
.hh-launcher-wrap .hh-has-switch .hh-close { display: none; }

.hh-launcher-wrap .hh-switch {
	flex: none; display: flex; align-items: center; gap: 6px;
	padding: 10px 10px 10px 12px; background: #1a1512;
	border-bottom: 1px solid rgba(245, 234, 216, .1);
}
.hh-launcher-wrap .hh-tab,
.hh-launcher-wrap .hh-tab:hover,
.hh-launcher-wrap .hh-tab:focus {
	flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
	margin: 0; padding: 9px 10px; border-radius: 999px;
	font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.2; text-transform: none; white-space: nowrap;
	color: rgba(245, 234, 216, .7); background: transparent; border: 1px solid transparent; box-shadow: none;
	cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.hh-launcher-wrap .hh-tab:hover { color: #f5ead8; background: rgba(245, 234, 216, .06); }
.hh-launcher-wrap .hh-tab.is-on,
.hh-launcher-wrap .hh-tab.is-on:hover {
	color: #f6a06b; background: rgba(246, 160, 107, .12); border-color: rgba(246, 160, 107, .35);
}
.hh-launcher-wrap .hh-popclose,
.hh-launcher-wrap .hh-popclose:hover,
.hh-launcher-wrap .hh-popclose:focus {
	flex: none; width: 34px; height: 34px; margin: 0; padding: 0; border-radius: 999px;
	display: flex; align-items: center; justify-content: center;
	background: transparent; border: 1px solid rgba(245, 234, 216, .12); color: rgba(245, 234, 216, .7); box-shadow: none; cursor: pointer;
}
.hh-launcher-wrap .hh-popclose:hover { background: rgba(245, 234, 216, .08); color: #f5ead8; }
.hh-launcher-wrap .hh-tab:focus-visible, .hh-launcher-wrap .hh-popclose:focus-visible, .hh-launcher-wrap .hh-option:focus-visible { outline: 2px solid #f6a06b; outline-offset: 2px; }

.hh-launcher-wrap .hh-home {
	flex: 1; min-height: 0; overflow-y: auto;
	display: flex; flex-direction: column; gap: 12px;
	padding: 28px 20px 20px; color: #f5ead8;
	background: radial-gradient(circle at 100% 0, rgba(198, 113, 57, .22), transparent 55%), #14100d;
}
.hh-home-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.hh-home-text { margin: 0 0 10px; color: rgba(245, 234, 216, .66); font-size: 15px; }
.hh-launcher-wrap .hh-option,
.hh-launcher-wrap .hh-option:hover,
.hh-launcher-wrap .hh-option:focus {
	display: flex; align-items: center; gap: 14px; width: 100%;
	margin: 0; padding: 16px; border-radius: 18px;
	font: inherit; text-align: left; text-transform: none; white-space: normal; line-height: 1.4;
	color: #f5ead8; background: #1e1815; border: 1px solid rgba(245, 234, 216, .12); box-shadow: none;
	cursor: pointer; transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.hh-launcher-wrap .hh-option:hover { border-color: rgba(246, 160, 107, .5); background: #241d19; transform: translateY(-2px); }
.hh-option-icon {
	flex: none; width: 44px; height: 44px; border-radius: 14px;
	display: flex; align-items: center; justify-content: center; font-size: 20px;
	background: linear-gradient(140deg, #f6a06b, #c67139); color: #14100d;
}
.hh-option-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hh-option-text b { font-size: 15.5px; font-weight: 700; }
.hh-option-text small { font-size: 13px; color: rgba(245, 234, 216, .62); }
.hh-option-go { flex: none; color: #f6a06b; display: flex; transition: transform .2s ease; }
.hh-launcher-wrap .hh-option:hover .hh-option-go { transform: translateX(3px); }

/* "Recommended platform" card — buy or order on WhatsApp from inside the chat */
.hh-ai .hh-prod-row { display: flex; flex-wrap: wrap; gap: 10px; margin: -6px 0 0 42px; animation: hh-rise .35s ease both; }
.hh-ai .hh-prod-in-proposal { margin: 0 0 18px; }
.hh-ai .hh-prod {
	flex: 1 1 240px; max-width: 420px; display: flex; flex-direction: column; gap: 4px;
	padding: 16px 18px; border-radius: 18px; text-align: left;
	background: linear-gradient(150deg, color-mix(in srgb, var(--hh-accent) 16%, transparent), transparent 70%), var(--hh-surface);
	border: 1px solid color-mix(in srgb, var(--hh-accent-light) 35%, transparent);
}
.hh-ai .hh-prod-kicker { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hh-accent-light); }
.hh-ai .hh-prod-name { font-size: 18px; font-weight: 800; color: var(--hh-ink); letter-spacing: -.01em; }
.hh-ai .hh-prod-tag, .hh-ai .hh-prod-price { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--hh-muted); }
.hh-ai .hh-prod-price { color: var(--hh-ink); font-weight: 600; }
.hh-ai .hh-prod-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hh-ai .hh-prod-buy, .hh-ai .hh-prod-buy:hover, .hh-ai .hh-prod-buy:focus,
.hh-ai .hh-prod-wa, .hh-ai .hh-prod-wa:hover, .hh-ai .hh-prod-wa:focus {
	flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.hh-ai .hh-prod-buy, .hh-ai .hh-prod-buy:focus { border: 0; color: #14100d; background: linear-gradient(135deg, var(--hh-accent-light), var(--hh-accent)); box-shadow: 0 8px 20px color-mix(in srgb, var(--hh-accent) 35%, transparent); }
.hh-ai .hh-prod-buy:hover { color: #14100d; background: linear-gradient(135deg, var(--hh-accent-light), var(--hh-accent)); transform: translateY(-1px); box-shadow: 0 12px 26px color-mix(in srgb, var(--hh-accent) 50%, transparent); }
.hh-ai .hh-prod-wa, .hh-ai .hh-prod-wa:focus { color: #8fd684; background: rgba(143, 214, 132, .08); border: 1px solid rgba(143, 214, 132, .35); }
.hh-ai .hh-prod-wa::before { content: ''; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.3 14.2c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.5-3.9-4.7-4.1-.1-.2-1.1-1.5-1.1-2.9s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.2.1.4 0 .6l-.4.6-.4.4c-.1.1-.3.3-.1.6.1.3.6 1.1 1.4 1.8 1 .9 1.8 1.1 2.1 1.3.3.1.4.1.6-.1l.8-1c.2-.3.4-.2.6-.1l1.9.9c.3.1.5.2.5.3.1.2.1.7-.1 1.3z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.3 14.2c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.5-3.9-4.7-4.1-.1-.2-1.1-1.5-1.1-2.9s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.2.1.4 0 .6l-.4.6-.4.4c-.1.1-.3.3-.1.6.1.3.6 1.1 1.4 1.8 1 .9 1.8 1.1 2.1 1.3.3.1.4.1.6-.1l.8-1c.2-.3.4-.2.6-.1l1.9.9c.3.1.5.2.5.3.1.2.1.7-.1 1.3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.hh-ai .hh-prod-wa:hover { color: #b6ee9f; background: rgba(143, 214, 132, .15); border-color: rgba(143, 214, 132, .5); transform: translateY(-1px); }
.hh-ai.hh-mode-popup .hh-prod-row { margin-left: 40px; }
@media (max-width: 480px) { .hh-ai .hh-prod-row { margin-left: 0; } }

/* chatbot pane */
.hh-ai.hh-bot .hh-bubble a { color: var(--hh-accent-light); text-decoration: underline; overflow-wrap: anywhere; }
.hh-ai.hh-bot .hh-bubble strong { font-weight: 700; color: var(--hh-ink); }
.hh-ai.hh-bot .hh-suggest:empty { display: none; }
.hh-ai.hh-bot .hh-suggest .hh-chip { text-align: left; }
.hh-ai.hh-bot .hh-hint { display: block; }

/* ------------------------------------------------- floating launcher */

.hh-launcher-wrap {
	--hh-accent: #c67139;
	--hh-accent-light: #f6a06b;
	position: fixed; bottom: 24px; right: 24px; z-index: 99990;
	display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
	font-family: inherit;
}
.hh-launcher-wrap.hh-pos-left { right: auto; left: 24px; align-items: flex-start; }

.hh-launcher-wrap .hh-launcher,
.hh-launcher-wrap .hh-launcher:hover,
.hh-launcher-wrap .hh-launcher:focus {
	position: relative;
	display: flex; align-items: center; gap: 12px;
	margin: 0; padding: 8px 22px 8px 8px;
	font: inherit; text-align: left; text-transform: none; letter-spacing: normal; white-space: nowrap;
	color: #fff8ee;
	background: linear-gradient(135deg, #2a1d15 0%, #1a1310 100%);
	border: 1px solid color-mix(in srgb, var(--hh-accent-light) 45%, transparent);
	border-radius: 999px;
	box-shadow:
		0 12px 32px rgba(0, 0, 0, .35),
		0 0 0 1px rgba(255, 255, 255, .04) inset,
		0 0 28px color-mix(in srgb, var(--hh-accent) 35%, transparent);
	cursor: pointer;
	transition: transform .25s cubic-bezier(.2, .7, .3, 1.4), box-shadow .25s ease, padding .3s ease;
	-webkit-appearance: none; appearance: none;
}
.hh-launcher-wrap .hh-launcher:hover {
	transform: translateY(-3px);
	box-shadow:
		0 16px 40px rgba(0, 0, 0, .4),
		0 0 0 1px rgba(255, 255, 255, .06) inset,
		0 0 40px color-mix(in srgb, var(--hh-accent) 55%, transparent);
}
.hh-launcher-wrap .hh-launcher:focus-visible { outline: 2px solid var(--hh-accent-light); outline-offset: 3px; }

/* attention ring */
.hh-launcher-wrap .hh-launcher::before {
	content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
	border: 2px solid var(--hh-accent-light);
	animation: hh-ring 2.8s ease-out infinite;
}
@keyframes hh-ring { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.12, 1.35); } }
.hh-launcher-wrap.is-open .hh-launcher::before { animation: none; opacity: 0; }

.hh-launcher-orb {
	position: relative; flex: none; width: 46px; height: 46px; border-radius: 999px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(140deg, var(--hh-accent-light), var(--hh-accent));
	color: #14100d; font-size: 20px; line-height: 1;
	box-shadow: 0 4px 14px color-mix(in srgb, var(--hh-accent) 55%, transparent);
}
.hh-launcher-orb::after {
	content: ''; position: absolute; inset: -4px; border-radius: 999px;
	background: conic-gradient(from 0deg, transparent 0 60%, var(--hh-accent-light) 80%, transparent 100%);
	-webkit-mask: radial-gradient(circle, transparent 60%, #000 62%);
	mask: radial-gradient(circle, transparent 60%, #000 62%);
	animation: hh-spin 3s linear infinite;
}
.hh-launcher-orb span { position: relative; z-index: 1; animation: hh-twinkle 3s ease-in-out infinite; }
@keyframes hh-twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(45deg); } }

.hh-launcher-text { display: flex; flex-direction: column; line-height: 1.2; }
.hh-launcher-text strong { font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: #fff8ee; }
.hh-launcher-text small { font-size: 12px; color: rgba(255, 248, 238, .68); margin-top: 2px; }
.hh-launcher-text small:empty { display: none; }

.hh-launcher-close {
	display: none; width: 46px; height: 46px; border-radius: 999px;
	align-items: center; justify-content: center;
	background: linear-gradient(140deg, var(--hh-accent-light), var(--hh-accent)); color: #14100d;
}
.hh-launcher-wrap.is-open .hh-launcher { padding: 8px; }
.hh-launcher-wrap.is-open .hh-launcher-orb,
.hh-launcher-wrap.is-open .hh-launcher-text { display: none; }
.hh-launcher-wrap.is-open .hh-launcher-close { display: flex; }

/* popup panel */
.hh-launcher-wrap .hh-popup {
	width: 400px; height: min(660px, calc(100vh - 130px)); height: min(660px, calc(100dvh - 130px));
	border-radius: 24px; overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--hh-accent-light) 22%, transparent);
	box-shadow: 0 24px 70px rgba(0, 0, 0, .45), 0 0 50px color-mix(in srgb, var(--hh-accent) 18%, transparent);
	background: #14100d;
	opacity: 0; transform: translateY(16px) scale(.96);
	transform-origin: bottom right;
	transition: opacity .25s ease, transform .3s cubic-bezier(.2, .7, .3, 1);
}
.hh-launcher-wrap.hh-pos-left .hh-popup { transform-origin: bottom left; }
.hh-launcher-wrap.is-open .hh-popup { opacity: 1; transform: none; }
.hh-launcher-wrap .hh-popup[hidden] { display: none; }

@media (max-width: 600px) {
	.hh-launcher-wrap { bottom: 16px; right: 16px; }
	.hh-launcher-wrap.hh-pos-left { left: 16px; }
	.hh-launcher-wrap .hh-launcher, .hh-launcher-wrap .hh-launcher:hover, .hh-launcher-wrap .hh-launcher:focus { padding: 7px 18px 7px 7px; gap: 10px; }
	.hh-launcher-orb, .hh-launcher-close { width: 42px; height: 42px; }
	.hh-launcher-text small { display: none; }
	/* full-screen chat on phones; the header has its own close button */
	.hh-launcher-wrap .hh-popup {
		position: fixed; inset: 0; width: auto; height: 100%;
		border-radius: 0; border: 0;
	}
	.hh-launcher-wrap.is-open .hh-launcher { display: none; }
	html.hh-popup-open, html.hh-popup-open body { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
	.hh-launcher-wrap *, .hh-launcher-wrap *::before, .hh-launcher-wrap *::after {
		animation: none !important;
		transition-duration: .001ms !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hh-ai *, .hh-ai *::before, .hh-ai *::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
	}
}

/* ------------------------------------------------ inline chat (hero) */

.hh-ai.hh-mode-inline {
	height: var(--hh-height); max-height: none;
	border: 1px solid rgba(246, 160, 107, .22); border-radius: 26px;
	background: var(--hh-surface);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 60px rgba(198, 113, 57, .12);
	transition: box-shadow .4s ease, border-color .4s ease;
}
.hh-ai.hh-mode-inline .hh-topbar { background: rgba(20, 16, 13, .35); }
.hh-ai.hh-mode-inline .hh-scroll { background: transparent; }
.hh-ai.hh-mode-inline .hh-composer { background: linear-gradient(to top, var(--hh-surface) 70%, transparent); }
.hh-ai.hh-mode-inline .hh-prod-row { margin-left: 40px; }
.hh-ai.hh-mode-inline.hh-spot { animation: hh-spot 1.6s ease; border-color: rgba(246, 160, 107, .7); }
@keyframes hh-spot {
	0% { box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 0 rgba(246, 160, 107, .55); }
	35% { box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 10px rgba(246, 160, 107, .18), 0 0 70px rgba(246, 160, 107, .35); }
	100% { box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 18px rgba(246, 160, 107, 0), 0 0 60px rgba(198, 113, 57, .12); }
}
@media (max-width: 820px) {
	.hh-ai.hh-mode-inline { height: min(640px, 86vh); height: min(640px, 86dvh); border-radius: 22px; }
	.hh-ai.hh-mode-inline .hh-thread { padding: 16px 12px 6px; gap: 12px; }
	.hh-ai.hh-mode-inline .hh-choices { gap: 6px; }
	.hh-ai.hh-mode-inline .hh-chip { padding: 7px 11px; font-size: 12.5px; }
	.hh-ai.hh-mode-inline .hh-send-wide { padding-top: 11px; padding-bottom: 11px; }
}
@media (prefers-reduced-motion: reduce) { .hh-ai.hh-mode-inline.hh-spot { animation: none; } }

/* goal chips: plain-language goal + product name tag */
.hh-ai .hh-choices.is-tagged { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hh-ai .hh-choices.is-tagged .hh-chip {
	display: flex; align-items: center; gap: 10px; text-align: left;
	padding: 9px 12px; border-radius: 14px; min-height: 52px;
}
.hh-ai .hh-chip-icon { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; background: rgba(246, 160, 107, .1); }
.hh-ai .hh-chip-text { display: flex; flex-direction: column; min-width: 0; }
.hh-ai .hh-chip-text b { font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.hh-ai .hh-chip-text small { margin-top: 2px; font-size: 11px; font-weight: 700; letter-spacing: .03em; color: var(--hh-accent-light); opacity: .85; }
.hh-ai .hh-chip.is-on .hh-chip-icon { background: rgba(246, 160, 107, .25); }
@media (max-width: 420px) {
	.hh-ai .hh-choices.is-tagged { gap: 6px; }
	.hh-ai .hh-choices.is-tagged .hh-chip { padding: 7px 8px; gap: 7px; min-height: 48px; }
	.hh-ai .hh-chip-icon { width: 26px; height: 26px; font-size: 14px; }
	.hh-ai .hh-chip-text b { font-size: 12.5px; }
}
