/* ==== /assets/css/buffer.css ==== */
/* Centered buffering veil (storefront + back office).
 *
 * Single focal point: full-proportion brand lockup over a 2px indeterminate
 * sweep line on a soft translucent surface. No modal box, no radar rings,
 * no text clutter, no duplicate top bar.
 */

#hbg-buffer {
	--buf-backdrop: rgba(246, 247, 249, 0.82);
	--buf-track: rgba(20, 22, 27, 0.1);
	--buf-fill: #5865f2;

	position: fixed;
	inset: 0;
	z-index: 2147483646;
	display: grid;
	place-items: center;
	background: var(--buf-backdrop);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.16s ease, visibility 0s linear 0.16s;
}

#hbg-buffer[data-theme="dark"],
html.dark #hbg-buffer,
body.dark #hbg-buffer,
html[data-theme="dark"] #hbg-buffer {
	--buf-backdrop: rgba(15, 16, 20, 0.84);
	--buf-track: rgba(255, 255, 255, 0.12);
	--buf-fill: #6571ff;
}

#hbg-buffer.is-on {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.12s ease, visibility 0s;
}

#hbg-buffer.is-done {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.hbg-buf-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	transform: translateY(2px);
	transition: transform 0.16s ease;
}

#hbg-buffer.is-on .hbg-buf-unit {
	transform: translateY(0);
}

.hbg-buf-logo {
	display: block;
	width: 96px;
	height: auto;
	user-select: none;
	-webkit-user-drag: none;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}

.hbg-buf-line {
	position: relative;
	width: 80px;
	height: 2px;
	border-radius: 999px;
	background: var(--buf-track);
	overflow: hidden;
}

.hbg-buf-line span {
	position: absolute;
	top: 0;
	bottom: 0;
	left: -45%;
	width: 45%;
	border-radius: inherit;
	background: var(--buf-fill);
	animation: hbg-buf-glide 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes hbg-buf-glide {
	0% {
		left: -45%;
	}
	100% {
		left: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hbg-buf-line span {
		animation: none !important;
		left: 0;
		width: 100%;
		opacity: 0.6;
	}
}

/* ---------------------------------------------------------- tachometer intro */

html.hbg-intro-lock,
html.hbg-intro-lock body {
	overflow: hidden !important;
}

#hbg-intro {
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	display: grid;
	place-items: center;
	overflow: hidden;
	background: radial-gradient(60% 55% at 50% 50%, #0d0b13, #000 70%);
	color: #f4f4f6;
	user-select: none;
	-webkit-user-select: none;
	transition: transform 0.75s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.5s ease;
}

#hbg-intro::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: repeating-linear-gradient(
		180deg,
		transparent 0 2px,
		rgba(255, 255, 255, 0.015) 2px 3px
	);
}

#hbg-intro.is-away {
	transform: translateX(-102%);
	opacity: 0;
	pointer-events: none;
}

.hbg-dash {
	position: relative;
	z-index: 2;
	width: min(360px, 82vw);
	display: flex;
	flex-direction: column;
	align-items: center;
	opacity: 0;
	transition:
		transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
		filter 0.6s ease,
		opacity 0.5s ease;
}

#hbg-intro.is-ready .hbg-dash {
	animation: hbg-ign 0.9s steps(1) forwards 0.15s;
}

@keyframes hbg-ign {
	0% {
		opacity: 0.25;
	}
	12% {
		opacity: 0;
	}
	24% {
		opacity: 0.6;
	}
	34% {
		opacity: 0.1;
	}
	48%,
	100% {
		opacity: 1;
	}
}

#hbg-intro.is-launch .hbg-dash {
	transform: scale(1.35);
	filter: blur(10px);
	opacity: 0;
}

.hbg-shift {
	display: flex;
	gap: 10px;
	margin-bottom: 14px;
}

.hbg-shift i {
	display: block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #1a1922;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
	transition: background 0.06s linear, box-shadow 0.06s linear;
}

.hbg-shift i.g {
	background: #35e39a;
	box-shadow: 0 0 10px rgba(53, 227, 154, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

.hbg-shift i.y {
	background: #ffc24a;
	box-shadow: 0 0 10px rgba(255, 194, 74, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

.hbg-shift i.r {
	background: #ff3b5c;
	box-shadow: 0 0 12px rgba(255, 59, 92, 0.9), inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

.hbg-shift i.v {
	background: #b27cff;
	box-shadow: 0 0 14px rgba(178, 124, 255, 0.95), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.hbg-shift.is-limit i {
	animation: hbg-sfl 0.16s steps(1) 6 alternate;
}

@keyframes hbg-sfl {
	0% {
		background: #b27cff;
		box-shadow: 0 0 14px rgba(178, 124, 255, 0.95);
	}
	100% {
		background: #1a1922;
		box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
	}
}

.hbg-gauge {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	display: grid;
	place-items: center;
	--rv: 0;
}

.hbg-tach {
	width: 100%;
	height: 100%;
	overflow: visible;
}

.hbg-intro-logo {
	position: absolute;
	z-index: 2;
	width: 34%;
	height: auto;
	object-fit: contain;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
	transform: scale(calc(1 + var(--rv) * 0.04));
	filter:
		drop-shadow(0 0 18px rgba(139, 124, 255, calc(0.25 + var(--rv) * 0.55)))
		brightness(calc(1 + var(--rv) * 0.18));
	transition: filter 0.08s linear;
}

#hbgHalo {
	opacity: calc(0.15 + var(--rv) * 0.85);
}

#hbgNeedle {
	transform-origin: 160px 160px;
}

.hbg-tick {
	stroke: rgba(244, 244, 246, 0.25);
	stroke-width: 1.4;
	stroke-linecap: round;
}

.hbg-tick.maj {
	stroke: rgba(244, 244, 246, 0.72);
	stroke-width: 2.2;
}

.hbg-tick.red {
	stroke: rgba(255, 59, 92, 0.58);
}

.hbg-tick.maj.red {
	stroke: #ff6b82;
}

.hbg-tick-num {
	fill: rgba(244, 244, 246, 0.74);
	font-size: 11px;
	font-weight: 700;
	text-anchor: middle;
	dominant-baseline: central;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

.hbg-tick-num.red {
	fill: #ff6b82;
}

#hbg-intro.is-shake .hbg-tach,
#hbg-intro.is-shake .hbg-intro-logo {
	animation: hbg-rumble 0.07s linear infinite;
}

@keyframes hbg-rumble {
	0% {
		transform: translate(0, 0);
	}
	25% {
		transform: translate(1px, -1px);
	}
	50% {
		transform: translate(-1px, 1px);
	}
	75% {
		transform: translate(1px, 1px);
	}
	100% {
		transform: translate(-1px, -1px);
	}
}

.hbg-read {
	position: absolute;
	bottom: 7%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
	pointer-events: none;
}

.hbg-rpm {
	font-size: 44px;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	letter-spacing: -0.02em;
	color: #f4f4f6;
}

.hbg-rpm-sub,
.hbg-istat,
.hbg-istat *,
.hbg-skip-h {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

.hbg-rpm-sub {
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(244, 244, 246, 0.5);
}

.hbg-istat {
	margin-top: 8px;
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(244, 244, 246, 0.78);
}

.hbg-cur {
	animation: hbg-blink 1s steps(2) infinite;
}

@keyframes hbg-blink {
	50% {
		opacity: 0;
	}
}

.hbg-skip-h {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	font-size: 10.5px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(244, 244, 246, 0.42);
	opacity: 0;
	animation: hbg-skip-in 0.6s ease 1.4s forwards;
	cursor: pointer;
	white-space: nowrap;
}

@keyframes hbg-skip-in {
	to {
		opacity: 1;
	}
}

#hbgStreaks {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

#hbgStreaks i {
	position: absolute;
	right: -70vw;
	height: 2px;
	border-radius: 2px;
	animation: hbg-zoom var(--d) cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes hbg-zoom {
	to {
		transform: translateX(-260vw);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	#hbg-intro,
	#hbg-intro * {
		animation: none !important;
		transition: none !important;
	}
}

/* ==== /assets/css/hbg-glass.css ==== */
/* HamzaBG Mods — Liquid Glass surface & interactive elevation layer.
 *
 * Loaded after component stylesheets so every card, filter bar, showcase tile,
 * account panel, footer deck, and overlay shares one cohesive liquid-glass
 * material in both light and dark themes:
 *   - Translucent refractive pane with backdrop blur + saturation
 *   - Top & bottom specular rim bevels (inset 0 1px 0 / inset 0 -1px 0)
 *   - Outer micro-hairline + soft ambient depth shadow
 *   - Diagonal light-source sheen across the glass face
 *   - Smooth spring hover elevation + icon micro-physics
 */

:root {
	--glass-blur: 20px;
	--glass-blur-card: 16px;
	--glass-saturate: 1.8;

	/* Light liquid glass: crisp white refraction, specular top edge, subtle indigo sheen */
	--glass-rgb: 255 255 255;
	--glass-a: 0.72;
	--glass-a-strong: 0.86;
	--glass-a-solid: 0.96;
	--glass-edge-rgb: 255 255 255;
	--glass-edge-a: 0.82;
	--glass-hairline-rgb: 20 22 27;
	--glass-hairline-a: 0.065;
	--glass-highlight:
		inset 0 1px 0 rgba(255, 255, 255, 0.95),
		inset 0 -1px 0 rgba(255, 255, 255, 0.32);
	--glass-shadow:
		0 1px 2px rgba(16, 18, 24, 0.04),
		0 14px 36px -20px rgba(16, 18, 24, 0.16);
	--glass-shadow-hover:
		0 4px 10px rgba(16, 18, 24, 0.06),
		0 24px 52px -22px rgba(101, 113, 255, 0.24),
		0 18px 40px -24px rgba(16, 18, 24, 0.22);
	--glass-tint:
		linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.16) 52%, rgba(101, 113, 255, 0.035) 100%),
		radial-gradient(120% 140% at 10% -20%, rgba(255, 255, 255, 0.65), transparent 56%);
}

body.dark {
	/* Dark liquid glass: deep smoky obsidian pane, crisp top rim reflection */
	--glass-rgb: 22 25 32;
	--glass-a: 0.66;
	--glass-a-strong: 0.82;
	--glass-a-solid: 0.95;
	--glass-edge-rgb: 255 255 255;
	--glass-edge-a: 0.11;
	--glass-hairline-rgb: 255 255 255;
	--glass-hairline-a: 0.07;
	--glass-highlight:
		inset 0 1px 0 rgba(255, 255, 255, 0.13),
		inset 0 -1px 0 rgba(0, 0, 0, 0.36);
	--glass-shadow:
		0 1px 2px rgba(0, 0, 0, 0.38),
		0 18px 44px -22px rgba(0, 0, 0, 0.72);
	--glass-shadow-hover:
		0 6px 16px rgba(0, 0, 0, 0.45),
		0 26px 56px -22px rgba(101, 113, 255, 0.26),
		0 22px 48px -24px rgba(0, 0, 0, 0.82);
	--glass-tint:
		linear-gradient(135deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.012) 50%, rgba(101, 113, 255, 0.04) 100%),
		radial-gradient(120% 140% at 12% -25%, rgba(255, 255, 255, 0.08), transparent 56%);
}

/* Ambient studio light field on storefront pages so glass panes have depth to refract */
body:not(.dark):not(.adm) {
	background-color: #f2f3f7;
	background-image:
		radial-gradient(85% 42% at 50% 0%, rgba(101, 113, 255, 0.065), transparent 72%),
		radial-gradient(60% 40% at 85% 28%, rgba(101, 113, 255, 0.04), transparent 70%);
	background-attachment: fixed;
}

body.dark:not(.adm) {
	background-color: #0e1014 !important;
	background-image:
		radial-gradient(85% 45% at 50% 0%, rgba(101, 113, 255, 0.11), transparent 72%),
		radial-gradient(60% 42% at 85% 30%, rgba(101, 113, 255, 0.055), transparent 70%);
	background-attachment: fixed;
}

.hbg-catalogue,
.hbg-cars,
.hbg-tools,
.hbg-products,
.hbg-custom,
.hbg-about,
.hbg-sec,
.hbg-featured,
.acct-main,
.hbg-cat-head,
.hbg-cars-head,
.hbg-tools-head,
.hbg-products-head,
.hbg-cw-hero {
	background: transparent !important;
}

/* Unified section & card spacing rhythm across storefront */
.hbg-cat-head,
.hbg-cars-head,
.hbg-tools-head,
.hbg-products-head,
.hbg-cw-hero {
	padding-top: calc(var(--sa-nav-h, 82px) + 40px) !important;
	padding-bottom: 44px !important;
}

.hbg-cw-section {
	padding-top: 52px !important;
}

.hbg-cw-service,
.hbg-cw-tier {
	padding: 22px 24px !important;
	border-radius: 18px !important;
}

.hbg-cw-step {
	padding: 20px 22px !important;
	border-radius: 16px !important;
}

.hbg-tally {
	min-height: 114px !important;
	padding: 22px 26px !important;
	border-radius: 18px !important;
}

/* ------------------------------------------------ shared liquid glass card */

.hbg-glass,
.hbg-card,
.hbg-tally,
.hbg-faq__search,
.hbg-faq__item,
.hbg-rv-card,
.hbg-rv-pill,
.hbg-rv-panel,
.hbg-filters,
.hbg-cat-note,
.hbg-cat-empty,
.hbg-products-cta,
.hbg-cars-cta,
.hbg-tools-cta,
.hbg-cars-search input,
.hbg-cw-spec-card,
.hbg-cw-service,
.hbg-cw-tier,
.hbg-cw-step,
.hbg-cw-brief,
.hbg-cw-faq-list details,
.hbg-cw-output,
.hbg-ab-contacts,
.acct-card,
.hbg-cart-perk,
.hbg-cart-steps,
.hbg-tp-aside,
.hbg-tp-related-grid a,
.hbg-tp-qty,
.hbg-tp-thumb {
	isolation: isolate;
	border: 1px solid rgba(255, 255, 255, var(--glass-edge-a)) !important;
	background-color: rgb(var(--glass-rgb) / var(--glass-a)) !important;
	background-image: var(--glass-tint) !important;
	box-shadow:
		var(--glass-highlight),
		0 0 0 1px rgb(var(--glass-hairline-rgb) / var(--glass-hairline-a)),
		var(--glass-shadow) !important;
	-webkit-backdrop-filter: blur(var(--glass-blur-card)) saturate(var(--glass-saturate));
	backdrop-filter: blur(var(--glass-blur-card)) saturate(var(--glass-saturate));
}

body.dark .hbg-glass,
body.dark .hbg-card,
body.dark .hbg-tally,
body.dark .hbg-faq__search,
body.dark .hbg-faq__item,
body.dark .hbg-rv-card,
body.dark .hbg-rv-pill,
body.dark .hbg-rv-panel,
body.dark .hbg-filters,
body.dark .hbg-cat-note,
body.dark .hbg-cat-empty,
body.dark .hbg-products-cta,
body.dark .hbg-cars-cta,
body.dark .hbg-tools-cta,
body.dark .hbg-cars-search input,
body.dark .hbg-cw-spec-card,
body.dark .hbg-cw-service,
body.dark .hbg-cw-tier,
body.dark .hbg-cw-step,
body.dark .hbg-cw-brief,
body.dark .hbg-cw-faq-list details,
body.dark .hbg-cw-output,
body.dark .hbg-ab-contacts,
body.dark .acct-card,
body.dark .hbg-cart-perk,
body.dark .hbg-cart-steps,
body.dark .hbg-tp-aside,
body.dark .hbg-tp-related-grid a,
body.dark .hbg-tp-qty,
body.dark .hbg-tp-thumb {
	border-color: rgba(255, 255, 255, 0.095) !important;
}

/* Interactive hover border illumination (cards stay fixed in place) */
.hbg-card:hover,
.hbg-tally:hover,
.hbg-rv-card:hover,
.hbg-cw-service:hover,
.hbg-cw-tier:hover,
.hbg-cw-step:hover,
.hbg-cart-perk:hover,
.hbg-tp-related-grid a:hover {
	border-color: rgba(101, 113, 255, 0.42) !important;
	background-color: rgb(var(--glass-rgb) / var(--glass-a-strong)) !important;
	box-shadow:
		var(--glass-highlight),
		0 0 0 1px rgba(101, 113, 255, 0.2),
		var(--glass-shadow-hover) !important;
}

.hbg-cw-step,
.hbg-cw-tier,
.hbg-cart-perk {
	transition:
		transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.22s ease,
		box-shadow 0.26s cubic-bezier(0.22, 1, 0.36, 1),
		background-color 0.22s ease;
}

/* Micro-interaction on card icon badges when parent card hovers */
.hbg-tally__icon,
.hbg-cw-service-icon,
.hbg-cart-perk-icon {
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 12px -4px rgba(101, 113, 255, 0.25);
	transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease, background-color 0.22s ease;
}

body.dark .hbg-tally__icon,
body.dark .hbg-cw-service-icon,
body.dark .hbg-cart-perk-icon {
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 16px -6px rgba(101, 113, 255, 0.35);
}

.hbg-tally:hover .hbg-tally__icon,
.hbg-cw-service:hover .hbg-cw-service-icon,
.hbg-cart-perk:hover .hbg-cart-perk-icon {
	transform: scale(1.06) translateY(-1px);
}

/* Featured tier accent glass rim */
.hbg-cw-tier--featured {
	border-color: rgba(101, 113, 255, 0.42) !important;
	background-color: rgb(var(--glass-rgb) / var(--glass-a-strong)) !important;
	box-shadow:
		var(--glass-highlight),
		0 0 0 1px rgba(101, 113, 255, 0.18),
		0 22px 48px -26px rgba(101, 113, 255, 0.45) !important;
}

/* Inner nested glass wells */
.hbg-cw-form,
.acct-card--flush {
	border: 1px solid rgba(255, 255, 255, calc(var(--glass-edge-a) * 0.8)) !important;
	background-color: rgb(var(--glass-rgb) / 0.48) !important;
	box-shadow: var(--glass-highlight) !important;
	-webkit-backdrop-filter: blur(12px) saturate(1.5);
	backdrop-filter: blur(12px) saturate(1.5);
}

body.dark .hbg-cw-form,
body.dark .acct-card--flush {
	border-color: rgba(255, 255, 255, 0.075) !important;
	background-color: rgb(var(--glass-rgb) / 0.46) !important;
}

/* Selected filter chip & thumbnail ring highlights */
.hbg-filter[aria-pressed="true"] {
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 16px -8px rgba(101, 113, 255, 0.55);
}

.hbg-tp-thumb.is-active {
	border-color: rgb(101 113 255 / 0.6) !important;
	box-shadow: 0 0 0 3px rgb(101 113 255 / 0.18) !important;
}

/* Frosted liquid-glass footer deck */
.sa-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.65);
	background-color: rgb(var(--glass-rgb) / 0.64);
	background-image: var(--glass-tint);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
	-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
	backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}

body.dark .sa-footer {
	border-top-color: rgba(255, 255, 255, 0.08);
	background-color: rgba(16, 18, 24, 0.72);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Floating cookie consent & search modal overlays */
.hbg-consent {
	border: 1px solid rgba(255, 255, 255, var(--glass-edge-a));
	background-color: rgb(var(--glass-rgb) / var(--glass-a-strong));
	background-image: var(--glass-tint);
	box-shadow: var(--glass-highlight), 0 0 0 1px rgb(var(--glass-hairline-rgb) / var(--glass-hairline-a)), var(--glass-shadow);
	-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
	backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}

.hbg-search-panel {
	border: 1px solid rgba(255, 255, 255, var(--glass-edge-a));
	background-color: rgb(var(--glass-rgb) / var(--glass-a-strong));
	background-image: var(--glass-tint);
	box-shadow: var(--glass-highlight), 0 0 0 1px rgb(var(--glass-hairline-rgb) / var(--glass-hairline-a)), var(--glass-shadow);
	-webkit-backdrop-filter: blur(26px) saturate(1.75);
	backdrop-filter: blur(26px) saturate(1.75);
}

.hbg-search-field {
	background-color: rgb(var(--glass-rgb) / 0.5);
	-webkit-backdrop-filter: blur(10px) saturate(1.4);
	backdrop-filter: blur(10px) saturate(1.4);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.hbg-glass,
	.hbg-card,
	.acct-card {
		background-color: rgb(var(--glass-rgb) / var(--glass-a-solid)) !important;
	}
}

/* Custom storefront form controls: zero native browser checkboxes, radios, number spinners or search cancel chrome */
body:not(.adm) input[type="number"] {
	-moz-appearance: textfield;
	appearance: textfield;
}

body:not(.adm) input[type="number"]::-webkit-inner-spin-button,
body:not(.adm) input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

body:not(.adm) input[type="search"]::-webkit-search-cancel-button,
body:not(.adm) input[type="search"]::-webkit-search-decoration,
body:not(.adm) input[type="search"]::-webkit-search-results-button,
body:not(.adm) input[type="search"]::-webkit-search-results-decoration {
	-webkit-appearance: none;
	appearance: none;
}

body:not(.adm) input[type="checkbox"],
body:not(.adm) input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	margin: 0;
	flex: 0 0 18px;
	border: 1.5px solid rgba(20, 22, 27, 0.24);
	border-radius: 6px;
	background-color: rgb(var(--glass-rgb) / 0.8);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 12px 12px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
	cursor: pointer;
	transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

body.dark:not(.adm) input[type="checkbox"],
body.dark:not(.adm) input[type="radio"] {
	border-color: rgba(255, 255, 255, 0.24);
	background-color: rgba(22, 25, 32, 0.85);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body:not(.adm) input[type="radio"] {
	border-radius: 999px;
}

body:not(.adm) input[type="checkbox"]:hover,
body:not(.adm) input[type="radio"]:hover {
	border-color: #6571ff;
}

body:not(.adm) input[type="checkbox"]:checked {
	border-color: transparent !important;
	background-color: #6571ff !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 10px -3px rgba(101, 113, 255, 0.48) !important;
}

body:not(.adm) input[type="radio"]:checked {
	border-color: #6571ff !important;
	background-color: #6571ff !important;
	background-image: radial-gradient(circle, #ffffff 0 3.5px, transparent 4px) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 10px -3px rgba(101, 113, 255, 0.48) !important;
}

body:not(.adm) input[type="checkbox"]:focus-visible,
body:not(.adm) input[type="radio"]:focus-visible {
	outline: none;
	border-color: #6571ff;
	box-shadow: 0 0 0 3px rgba(101, 113, 255, 0.28);
}

/* ==== /assets/css/search-overlay.css ==== */
/* Search overlay.
 *
 * One panel over the current page: field, filter row, scrolling product rows
 * and a pager. Tokens are scoped to `#hbg-search` and carry a light and a dark
 * set, the same pair the storefront uses (body.dark is set by theme-init.js
 * before first paint, so a dark session never flashes light).
 *
 * Geometry is fixed: 672px wide, 16px corners, capped at min(80vh, 720px),
 * opened 8vh from the top. Everything inside is flex so the list is the only
 * part that scrolls and the field and pager stay put.
 */

#hbg-search {
	--hs-bg: #ffffff;
	--hs-panel-line: rgba(15, 18, 24, 0.1);
	--hs-ink: #16181d;
	--hs-muted: rgba(22, 24, 29, 0.6);
	--hs-faint: rgba(22, 24, 29, 0.62);
	--hs-badge: rgba(22, 24, 29, 0.72);
	--hs-input: #f6f7f9;
	--hs-input-line: rgba(15, 18, 24, 0.1);
	--hs-row: rgba(15, 18, 24, 0.04);
	--hs-thumb: #eceded;
	--hs-step: #ffffff;
	--hs-step-line: rgba(15, 18, 24, 0.12);
	--hs-step-next: #f1f2f4;
	--hs-step-next-line: rgba(15, 18, 24, 0.16);
	--hs-accent: var(--accent, #6571ff);
	--hs-accent-soft: rgba(101, 113, 255, 0.12);

	position: fixed;
	inset: 0;
	z-index: 2147482900;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 8vh 16px 16px;
	font-family: "Proxima Nova", "proximaNova", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

body.dark #hbg-search {
	--hs-bg: #151515;
	--hs-panel-line: rgba(255, 255, 255, 0.1);
	--hs-ink: #f2f2f2;
	--hs-muted: rgba(255, 255, 255, 0.64);
	--hs-faint: rgba(255, 255, 255, 0.5);
	--hs-badge: rgba(255, 255, 255, 0.72);
	--hs-input: #1a1a1a;
	--hs-input-line: rgba(255, 255, 255, 0.1);
	--hs-row: rgba(255, 255, 255, 0.04);
	--hs-thumb: #0d0d0d;
	--hs-step: #1f1f1f;
	--hs-step-line: rgba(255, 255, 255, 0.12);
	--hs-step-next: #262626;
	--hs-step-next-line: rgba(255, 255, 255, 0.16);
	--hs-accent-soft: rgba(101, 113, 255, 0.18);
}

#hbg-search[hidden] {
	display: none;
}

#hbg-search,
#hbg-search *,
#hbg-search *::before,
#hbg-search *::after {
	box-sizing: border-box;
}

html.hbg-search-open {
	overflow: hidden;
}

/* ------------------------------------------------------------------ scrim */

.hbg-search-scrim {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity 0.18s ease;
}

#hbg-search.is-open .hbg-search-scrim {
	opacity: 1;
}

/* ------------------------------------------------------------------ panel */

.hbg-search-panel {
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	width: min(672px, 100%);
	max-height: min(80vh, 720px);
	overflow: hidden;
	border: 1px solid var(--hs-panel-line);
	border-radius: 16px;
	background: var(--hs-bg);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
	opacity: 0;
	transform: translateY(-8px) scale(0.995);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

#hbg-search.is-open .hbg-search-panel {
	opacity: 1;
	transform: none;
}

/* ------------------------------------------------------------------ field */

.hbg-search-field {
	display: flex;
	flex: none;
	align-items: center;
	gap: 8px;
	padding: 12px;
	border-bottom: 1px solid var(--hs-panel-line);
}

.hbg-search-inputwrap {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}

.hbg-search-glyph {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	color: var(--hs-faint);
	pointer-events: none;
}

.hbg-search-glyph svg {
	width: 18px;
	height: 18px;
	display: block;
}

.hbg-search-field input {
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 12px 0 44px;
	border: 1px solid var(--hs-input-line);
	border-radius: 12px;
	background: var(--hs-input);
	color: var(--hs-ink);
	font: inherit;
	font-size: 14px;
	line-height: 1;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s ease;
}

.hbg-search-field input:focus {
	border-color: var(--hs-accent);
}

.hbg-search-field input::placeholder {
	color: var(--hs-faint);
}

.hbg-search-field input::-webkit-search-cancel-button {
	display: none;
}

.hbg-search-close {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--hs-input-line);
	border-radius: 12px;
	background: var(--hs-input);
	color: var(--hs-faint);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.hbg-search-close:hover {
	background: var(--hs-row);
	color: var(--hs-ink);
}

/* ---------------------------------------------------------------- filters */

.hbg-search-filters {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 12px;
	border-bottom: 1px solid var(--hs-panel-line);
}

.hbg-search-dd {
	position: relative;
	flex: none;
}

.hbg-search-select {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	margin: 0;
	padding: 0 11px 0 12px;
	border: 1px solid var(--hs-input-line);
	border-radius: 12px;
	background: var(--hs-input);
	color: var(--hs-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	outline: none;
	white-space: nowrap;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.hbg-search-select:hover {
	border-color: var(--hs-step-line);
}

.hbg-search-select:focus-visible,
.hbg-search-dd.is-open .hbg-search-select {
	border-color: var(--hs-accent);
}

.hbg-search-dd.is-open .hbg-search-select {
	background: var(--hs-step);
}

.hbg-search-chevron {
	flex: none;
	opacity: 0.5;
	transition: transform 0.16s ease;
}

.hbg-search-dd.is-open .hbg-search-chevron {
	transform: rotate(180deg);
	opacity: 0.8;
}

/* The menu is a real listbox: 6px of padding, 8px-ish rows, one check on the
   current value. It drops from the trigger and stays inside the panel, which
   is the only scrolling ancestor it has to worry about. */
.hbg-search-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 20;
	min-width: 100%;
	max-width: 280px;
	max-height: 264px;
	padding: 6px;
	overflow-y: auto;
	overflow-x: hidden;
	border: 1px solid var(--hs-input-line);
	border-radius: 12px;
	background: var(--hs-bg);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42), 0 2px 6px rgba(0, 0, 0, 0.16);
	overscroll-behavior: contain;
	scrollbar-width: thin;
}

.hbg-search-menu[hidden] {
	display: none;
}

.hbg-search-menu::-webkit-scrollbar {
	width: 8px;
}

.hbg-search-menu::-webkit-scrollbar-thumb {
	border: 2px solid transparent;
	border-radius: 8px;
	background: var(--hs-faint);
	background-clip: content-box;
}

.hbg-search-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 8px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--hs-ink);
	font: inherit;
	font-size: 13.5px;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
	outline: none;
	opacity: 0.78;
	transition: background-color 0.1s ease, opacity 0.1s ease;
}

.hbg-search-option:hover,
.hbg-search-option:focus-visible,
.hbg-search-option:focus {
	background: var(--hs-row);
	opacity: 1;
}

.hbg-search-option[aria-selected="true"] {
	color: var(--hs-accent);
	font-weight: 600;
	opacity: 1;
}

.hbg-search-option-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hbg-search-tick {
	flex: none;
	opacity: 0;
}

.hbg-search-option[aria-selected="true"] .hbg-search-tick {
	opacity: 1;
}

.hbg-search-count {
	margin-left: auto;
	color: var(--hs-faint);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* -------------------------------------------------------------------- rows */

.hbg-search-body {
	flex: 1 1 auto;
	min-height: 0;
	padding: 8px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}

.hbg-search-body::-webkit-scrollbar {
	width: 8px;
}

.hbg-search-body::-webkit-scrollbar-thumb {
	border: 2px solid transparent;
	border-radius: 8px;
	background: var(--hs-faint);
	background-clip: content-box;
}

.hbg-search-body::-webkit-scrollbar-track {
	background: transparent;
}

.hbg-search-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 8px;
	border-radius: 12px;
	color: inherit;
	text-decoration: none;
	outline: none;
	transition: background-color 0.12s ease;
}

.hbg-search-row:hover,
.hbg-search-row.is-active {
	background: var(--hs-row);
}

.hbg-search-row:focus-visible {
	box-shadow: inset 0 0 0 1px var(--hs-accent);
}

.hbg-search-thumb {
	position: relative;
	flex: none;
	width: 72px;
	height: 56px;
	overflow: hidden;
	border-radius: 8px;
	background: var(--hs-thumb);
}

.hbg-search-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hbg-search-thumb--page {
	display: grid;
	place-items: center;
	color: var(--hs-faint);
}

.hbg-search-meta {
	min-width: 0;
	flex: 1 1 auto;
}

.hbg-search-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.hbg-search-title {
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	color: var(--hs-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hbg-search-badge {
	flex: none;
	padding: 2px 6px;
	border-radius: 6px;
	background: var(--hs-row);
	color: var(--hs-badge);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hbg-search-price {
	margin: 4px 0 0;
	color: var(--hs-muted);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.hbg-search-price--quiet {
	color: var(--hs-faint);
	font-size: 12.5px;
}

.hbg-search-body mark {
	padding: 0 1px;
	border-radius: 3px;
	background: var(--hs-accent-soft);
	color: inherit;
}

/* ------------------------------------------------------------ empty + foot */

.hbg-search-empty {
	display: grid;
	flex: none;
	gap: 4px;
	padding: 26px 20px 30px;
	text-align: center;
	color: var(--hs-muted);
	font-size: 13px;
}

.hbg-search-empty[hidden] {
	display: none;
}

.hbg-search-empty strong {
	color: var(--hs-ink);
	font-size: 14.5px;
	font-weight: 600;
}

.hbg-search-foot {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px;
	border-top: 1px solid var(--hs-panel-line);
}

.hbg-search-page {
	color: var(--hs-faint);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.hbg-search-pager {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hbg-search-step {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 12px;
	border: 1px solid var(--hs-step-line);
	border-radius: 12px;
	background: var(--hs-step);
	color: var(--hs-ink);
	font: inherit;
	font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s ease, opacity 0.15s ease;
}

.hbg-search-step--next {
	border-color: var(--hs-step-next-line);
	background: var(--hs-step-next);
}

.hbg-search-step:hover:not(:disabled) {
	filter: brightness(1.12);
}

.hbg-search-step:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* ---------------------------------------------------------------- responsive */

@media (min-width: 640px) {
	.hbg-search-field,
	.hbg-search-filters,
	.hbg-search-foot {
		padding: 16px;
	}

	.hbg-search-body {
		padding: 8px 12px;
	}

	.hbg-search-row {
		gap: 16px;
		padding: 10px 12px;
	}

	.hbg-search-thumb {
		width: 96px;
		height: 64px;
	}

	.hbg-search-title {
		font-size: 16px;
	}
}

@media (max-width: 560px) {
	#hbg-search {
		padding: 12px;
	}

	.hbg-search-panel {
		max-height: calc(100vh - 24px);
	}

	.hbg-search-count {
		order: 3;
		width: 100%;
		margin-left: 0;
	}

	.hbg-search-page {
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hbg-search-scrim,
	.hbg-search-panel,
	.hbg-search-row,
	.hbg-search-step {
		transition: none;
	}
}

/* ==== /assets/css/system.css ==== */
/* HamzaBG Mods — system layer.
 *
 * Loaded last on every surface: the exported static pages, the storefront
 * application routes and the legal pages. One token board, one type scale, one
 * button, one field, one page head. Nothing below the page layer invents a
 * colour again.
 *
 * The prefix is `--hb-` because hbg-ui.css already used it. hbg-ui keeps the
 * card contract; this file owns the deck the cards sit on.
 *
 * DARK: bundle.css ships `body.dark * { border-color: #292929 !important }`.
 * That is the vendor's neutral, so --line in dark is pinned to the same value
 * and components agree with it instead of fighting it. Only a border that is
 * semantically coloured (error, success, accent) is allowed to raise its voice
 * with !important, and it says why where it happens.
 */

/* Guarantee HTML [hidden] always hides elements even when display:flex/grid is set. */
[hidden] {
	display: none !important;
}

/* ================================================================== tokens */

:root {
	/* Ink ramp. Matches admin.css (--adm-text*) 1:1. */
	--hb-ink: #14161b;
	--hb-ink-2: #33363d;
	--hb-muted: #5d626b;
	--hb-faint: #646973;

	/* Surfaces. Matches admin.css (--adm-bg / --adm-surface*) 1:1. */
	--hb-bg: #f2f2f2;
	--hb-bg-2: #f8f8f9;
	--hb-bg-3: #ebebee;
	--hb-card: #ffffff;
	--hb-field: #f8f8f9;
	--hb-inverse: #14161b;
	--hb-on-inverse: #f7f7f8;

	/* Rules. Matches admin.css (--adm-border*). */
	--hb-line: #e6e8ee;
	--hb-line-strong: #d5d8e1;

	/* Brand. One indigo, three weights, one wash. `--hb-accent` is the mark —
	 * borders, gradients, dots. Text and fills take their own token because
	 * white on #6571ff measures 3.92:1, under the 4.5 floor for 14px UI text. */
	--hb-accent: #6571ff;
	--hb-accent-hi: #7a85ff;
	--hb-accent-lo: #515df3;
	--hb-accent-ink: #4a55e0;
	--hb-accent-fill: #515df3;
	--hb-accent-soft: #eef0ff;
	--hb-accent-line: rgb(101 113 255 / 0.42);
	--hb-on-accent: #ffffff;

	/* Status. Paired fg/bg, both measured against the field they land on. */
	--hb-ok: #0b7a55;
	--hb-ok-bg: #eaf6f1;
	--hb-warn: #8a5a00;
	--hb-warn-bg: #fdf3e0;
	--hb-err: #b32d3d;
	--hb-err-bg: #fdeef0;

	/* Shape. Matches admin.css card & control radii. */
	--hb-radius-sm: 10px;
	--hb-radius: 12px;
	--hb-radius-md: 14px;
	--hb-radius-lg: 16px;
	--hb-radius-xl: 20px;
	--hb-radius-pill: 9999px;

	/* Elevation. Matches admin.css shadow ramp. */
	--hb-shadow: 0 1px 3px rgba(17, 19, 32, 0.06), 0 10px 28px -14px rgba(17, 19, 32, 0.14);
	--hb-shadow-lift: 0 4px 12px rgba(17, 19, 32, 0.08), 0 24px 52px -24px rgba(17, 19, 32, 0.24);

	/* Motion. One duration, one curve, for everything that moves. */
	--hb-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--hb-dur: 180ms;

	/* Type. Proxima Nova is the only face the site ships; the display ramp
	 * uses the Bold cut with tighter tracking rather than a second family. */
	--hb-font: "Proxima Nova", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
	--hb-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

	/* Page rhythm. Every shell uses these two numbers, nothing else. */
	--hb-shell: 1200px;
	--hb-shell-narrow: 896px;
	--hb-gutter: 24px;
	--hb-section: 68px;

	/* Focus. One ring, used by every interactive thing on the site. */
	--hb-ring: 0 0 0 3px rgb(101 113 255 / 0.24);
}

body.dark {
	--hb-ink: #f3f4f6;
	--hb-ink-2: #d6d8dd;
	--hb-muted: #b6bac2;
	--hb-faint: #9aa0ab;

	--hb-bg: #151515;
	--hb-bg-2: #1a1c21;
	--hb-bg-3: #202329;
	--hb-card: #181a1f;
	--hb-field: #15171c;
	--hb-inverse: #f3f4f6;
	--hb-on-inverse: #14161b;

	--hb-line: #272a31;
	--hb-line-strong: #363a43;

	--hb-accent-soft: rgb(101 113 255 / 0.16);
	--hb-accent-line: rgb(122 133 255 / 0.46);
	--hb-accent-ink: #b9c0ff;

	--hb-ok: #37c99a;
	--hb-ok-bg: #12271f;
	--hb-warn: #e0a63a;
	--hb-warn-bg: #2b2113;
	--hb-err: #f0707e;
	--hb-err-bg: #2a1519;

	--hb-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 14px 36px -18px rgba(0, 0, 0, 0.7);
	--hb-shadow-lift: 0 4px 12px rgba(0, 0, 0, 0.52), 0 28px 64px -22px rgba(0, 0, 0, 0.85);
}

@media (max-width: 640px) {
	:root {
		--hb-gutter: 20px;
		--hb-section: 52px;
	}
}

/* ------------------------------------------------- legacy prefix aliases */

/* The page sheets were written one at a time, each with its own prefix and its
 * own copy of the same fourteen colours. Rather than rename several thousand
 * lines and risk a regression, the prefixes are bound to the board here. A
 * page file that still reads --cw-line now reads --hb-line and gets dark for
 * free the moment body.dark flips.
 */

.hbg-custom {
	--cw-page: var(--hb-bg);
	--cw-bg: var(--hb-card);
	--cw-ink: var(--hb-ink);
	--cw-muted: var(--hb-muted);
	--cw-faint: var(--hb-faint);
	--cw-line: var(--hb-line);
	--cw-card: var(--hb-card);
	--cw-soft: var(--hb-bg-2);
	--cw-accent: var(--hb-accent);
	--cw-accent-hi: var(--hb-accent-hi);
	--cw-accent-soft: var(--hb-accent-soft);
	--cw-accent-ink: var(--hb-accent-ink);
}

.hbg-tool-page {
	--tp-bg: var(--hb-bg);
	--tp-ink: var(--hb-ink);
	--tp-muted: var(--hb-muted);
	--tp-faint: var(--hb-faint);
	--tp-line: var(--hb-line);
	--tp-card: var(--hb-card);
	--tp-soft: var(--hb-bg-2);
	--tp-accent: var(--hb-accent);
	--tp-accent-hi: var(--hb-accent-hi);
	--tp-accent-soft: var(--hb-accent-soft);
}

/* One helper for labels that exist for assistive tech only. The account
   shells no longer load the theme bundle that used to carry this, so a table
   header or a reply field would otherwise render its label in the flow. */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.acct-main {
	--acct-bg: var(--hb-bg);
	--acct-card: var(--hb-card);
	--acct-ink: var(--hb-ink);
	--acct-muted: var(--hb-muted);
	--acct-line: var(--hb-line);
	--acct-field: var(--hb-field);
	--acct-brand: var(--hb-accent);
	--acct-brand-hi: var(--hb-accent-hi);
	--acct-brand-ink: var(--hb-on-accent);
	--acct-ok: var(--hb-ok);
	--acct-ok-bg: var(--hb-ok-bg);
	--acct-err: var(--hb-err);
	--acct-err-bg: var(--hb-err-bg);
}

.sa-footer {
	--sa-f-bg: var(--hb-bg);
	--sa-f-ink: var(--hb-ink);
	--sa-f-muted: var(--hb-muted);
	--sa-f-faint: var(--hb-faint);
	--sa-f-line: var(--hb-line);
	--sa-f-accent: var(--hb-accent);
}

/* The button contract is consumed by six prefixes. Bind them once. */
:root,
.acct-main,
.hbg-consent {
	--hb-btn-radius: var(--hb-radius);
	--hb-btn-radius-sm: var(--hb-radius-sm);
	--hb-btn-primary: var(--hb-accent-fill);
	--hb-btn-primary-hi: #5f6af8;
	--hb-btn-primary-lo: #434dd8;
	--hb-btn-primary-ink: var(--hb-on-accent);
	--hb-btn-ink-bg: var(--hb-inverse);
	--hb-btn-ink-bg-hi: color-mix(in srgb, var(--hb-inverse) 88%, var(--hb-accent));
	--hb-btn-ink: var(--hb-on-inverse);
	--hb-btn-soft-bg: var(--hb-bg-2);
	--hb-btn-soft-ink: var(--hb-ink);
}

body.dark .acct-main,
body.dark .hbg-consent {
	--hb-btn-ink-bg: var(--hb-inverse);
	--hb-btn-ink-bg-hi: #ffffff;
	--hb-btn-ink: var(--hb-on-inverse);
}

/* ==================================================================== base */

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

html {
	margin: 0;
	padding: 0;
	overflow-x: clip;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

/* `html body` (0,0,2), not `body`: defeats UA 8px body margin and legacy resets. */
html body {
	margin: 0;
	padding: 0;
	background: var(--hb-bg);
	color: var(--hb-ink);
	font-family: var(--hb-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

#page-container {
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	width: 100%;
	background: var(--hb-bg);
}

::selection {
	background: var(--hb-accent-fill);
	color: var(--hb-on-accent);
}

:focus-visible {
	outline: 2px solid var(--hb-accent);
	outline-offset: 2px;
}

/* Theme swaps paint a new palette on every node at once. While the swap class
 * is on <html> (two frames, set by sa-nav.js), transitions are suppressed so
 * the page lands on the new theme instead of animating 80 vendor rules in
 * parallel. */
html.hbg-theme-swap *,
html.hbg-theme-swap *::before,
html.hbg-theme-swap *::after {
	transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* The vendor theme styles every anchor as a link-blue at a specificity the
 * page layer cannot reach cheaply. Components opt back in with their own
 * colour, so the base rule only has to stop the blue bleeding through a
 * heading that happens to be wrapped in an <a>. */
a {
	color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--hb-ink);
	font-family: var(--hb-font);
	font-weight: 700;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

img,
svg,
video {
	max-width: 100%;
}

hr {
	height: 1px;
	margin: 32px 0;
	border: 0;
	background: var(--hb-line);
}

/* Keyboard users land here first. */
.hbg-skip {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 2147483001;
	padding: 12px 18px;
	border-radius: var(--hb-radius);
	background: var(--hb-inverse);
	color: var(--hb-on-inverse);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-200%);
	transition: transform var(--hb-dur) var(--hb-ease);
}

.hbg-skip:focus-visible {
	transform: translateY(0);
}

/* The consent card is fixed, so the page reserves its height instead of the
 * last section hiding behind it. */
body:has(> .hbg-consent:not([hidden])) {
	padding-bottom: 132px;
}

@media (max-width: 640px) {
	body:has(> .hbg-consent:not([hidden])) {
		padding-bottom: 208px;
	}
}

/* =================================================================== shell */

.hbg-shell {
	width: 100%;
	max-width: var(--hb-shell);
	margin: 0 auto;
	padding: 0 var(--hb-gutter);
}

.hbg-shell--narrow {
	max-width: var(--hb-shell-narrow);
}

.hbg-shell--wide {
	max-width: 1400px;
}

/* The policy pages carry Gutenberg palette classes with literal colours
 * (`has-vivid-red-color` is #cf2e2e, 4.4:1 on white and 3.5:1 on the dark
 * field). They are semantic emphasis, so they map to the status tokens that
 * already flip per theme. */
.has-vivid-red-color {
	color: var(--hb-err) !important;
}

.has-vivid-green-color {
	color: var(--hb-ok) !important;
}

.has-vivid-orange-color {
	color: var(--hb-warn) !important;
}

/* ------------------------------------------------------------- page head */

/* One head for every secondary route. The catalogue pages used to ship three
 * different treatments — 90px/800 on cars, 62px/600 on tools, and a bare h1 on
 * the legal pages — which read as three different sites in one navigation.
 *
 * Markup:
 *   <header class="hbg-page-head">
 *     <div class="hbg-shell">
 *       <p class="hbg-page-eyebrow">Workshop</p>
 *       <h1 class="hbg-page-title">Cars<span class="hbg-page-accent">.</span></h1>
 *       <p class="hbg-page-lede">…</p>
 *       <ul class="hbg-page-meta">…</ul>
 *     </div>
 *   </header>
 */

.hbg-page-head {
	position: relative;
	margin-top: 0;
	padding: calc(var(--sa-nav-h, 82px) + 52px) 0 48px;
	border-bottom: 1px solid var(--hb-line);
	background: var(--hb-bg);
	overflow: hidden;
}

/* Blueprint texture: the same grid on every archive, faded at the edges. */
.hbg-page-head::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--hb-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--hb-line) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(82% 78% at 50% 0%, #000 0%, transparent 76%);
	mask-image: radial-gradient(82% 78% at 50% 0%, #000 0%, transparent 76%);
	pointer-events: none;
}

.hbg-page-head > .hbg-shell {
	position: relative;
	z-index: 1;
}

.hbg-page-eyebrow {
	margin: 0 0 18px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--hb-faint);
}

.hbg-page-title {
	margin: 0;
	font-size: clamp(38px, 5.6vw, 68px);
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.045em;
	color: var(--hb-ink);
}

.hbg-page-accent {
	color: var(--hb-accent);
}

.hbg-page-lede {
	margin: 20px 0 0;
	max-width: 60ch;
	font-size: 16px;
	line-height: 1.6;
	color: var(--hb-muted);
}

.hbg-page-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--hb-muted);
}

.hbg-page-meta li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.hbg-page-meta li::before {
	content: "";
	width: 5px;
	height: 5px;
	flex: none;
	border-radius: 50%;
	background: var(--hb-accent-fill);
	opacity: 0.75;
}

/* Section body under a page head. */
.hbg-page-body {
	padding: 40px 0 var(--hb-section);
}

@media (max-width: 760px) {
	.hbg-page-head {
		padding: calc(var(--sa-nav-h, 68px) + 38px) 0 36px;
	}

	.hbg-page-lede {
		font-size: 15px;
	}

	.hbg-page-body {
		padding: 28px 0 56px;
	}
}

/* ================================================================ buttons */

/* One button. The four page-level copies (hbg-btn, acct-btn, hbg-cw-btn,
 * hbg-tp-btn, hbg-ab-btn) had the same forty lines pasted into each file; this
 * is the single definition and the old names now alias onto it. */

.hbg-btn,
.acct-btn,
.hbg-cw-btn,
.hbg-tp-btn,
.hbg-ab-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: var(--hb-btn-radius);
	background: transparent;
	font-family: var(--hb-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
	transition:
		transform var(--hb-dur) var(--hb-ease),
		box-shadow var(--hb-dur) ease,
		background-color var(--hb-dur) ease,
		border-color var(--hb-dur) ease,
		color var(--hb-dur) ease,
		filter var(--hb-dur) ease;
}

.hbg-btn:focus-visible,
.acct-btn:focus-visible,
.hbg-cw-btn:focus-visible,
.hbg-tp-btn:focus-visible,
.hbg-ab-btn:focus-visible {
	outline: 2px solid var(--hb-accent);
	outline-offset: 2px;
}

/* The account shell's base button was the primary one — every form in that
 * set ships `class="acct-btn"` with no modifier. Keep that contract: the fill
 * lands here, and every `--secondary` / `--ghost` / `--soft` rule below is
 * later in the file, so the modifiers still win at equal specificity. */
.acct-btn {
	border-color: transparent;
	background-color: var(--hb-accent-fill);
	background-image: linear-gradient(180deg, var(--hb-btn-primary-hi), var(--hb-btn-primary) 55%, var(--hb-btn-primary-lo));
	color: var(--hb-on-accent);
	box-shadow:
		inset 0 1px 0 rgb(255 255 255 / 0.28),
		inset 0 -1px 0 rgb(33 38 120 / 0.18),
		0 1px 2px rgb(16 18 24 / 0.1),
		0 8px 18px -10px rgb(101 113 255 / 0.65);
}

.acct-btn:hover {
	transform: translateY(-1px);
	color: var(--hb-on-accent);
	filter: saturate(1.06) brightness(1.03);
}

/* Primary */
.hbg-btn--primary,
.acct-btn--primary,
.hbg-cw-btn--primary,
.hbg-tp-btn--primary,
.hbg-ab-btn--primary {
	border-color: transparent;
	background-color: var(--hb-accent-fill);
	background-image: linear-gradient(180deg, var(--hb-btn-primary-hi), var(--hb-btn-primary) 55%, var(--hb-btn-primary-lo));
	color: var(--hb-on-accent);
	box-shadow:
		inset 0 1px 0 rgb(255 255 255 / 0.28),
		inset 0 -1px 0 rgb(33 38 120 / 0.18),
		0 1px 2px rgb(16 18 24 / 0.1),
		0 8px 18px -10px rgb(101 113 255 / 0.65);
}

.hbg-btn--primary:hover,
.acct-btn--primary:hover,
.hbg-cw-btn--primary:hover,
.hbg-tp-btn--primary:hover,
.hbg-ab-btn--primary:hover {
	transform: translateY(-1px);
	color: var(--hb-on-accent);
	filter: saturate(1.06) brightness(1.03);
	box-shadow:
		inset 0 1px 0 rgb(255 255 255 / 0.34),
		inset 0 -1px 0 rgb(33 38 120 / 0.18),
		0 3px 6px rgb(16 18 24 / 0.12),
		0 14px 26px -12px rgb(101 113 255 / 0.75);
}

.hbg-btn--primary:active,
.acct-btn--primary:active,
.hbg-cw-btn--primary:active,
.hbg-tp-btn--primary:active,
.hbg-ab-btn--primary:active {
	transform: translateY(0);
	filter: none;
	box-shadow: inset 0 2px 6px rgb(24 28 90 / 0.24), 0 1px 2px rgb(16 18 24 / 0.12);
}

/* Secondary — ink on paper, paper on ink. */
.hbg-btn--secondary,
.acct-btn--secondary,
.hbg-cw-btn--secondary,
.hbg-tp-btn--secondary,
.hbg-ab-btn--secondary {
	border-color: transparent;
	background-color: var(--hb-btn-ink-bg);
	background-image: none;
	color: var(--hb-btn-ink);
	box-shadow:
		inset 0 1px 0 rgb(255 255 255 / 0.12),
		0 1px 2px rgb(16 18 24 / 0.12),
		0 8px 18px -12px rgb(16 18 24 / 0.55);
}

.hbg-btn--secondary:hover,
.acct-btn--secondary:hover,
.hbg-cw-btn--secondary:hover,
.hbg-tp-btn--secondary:hover,
.hbg-ab-btn--secondary:hover {
	transform: translateY(-1px);
	background-color: var(--hb-btn-ink-bg-hi);
	color: var(--hb-btn-ink);
}

/* Outline / ghost */
.hbg-btn--ghost,
.hbg-btn--outline,
.acct-btn--ghost,
.acct-btn--outline,
.hbg-cw-btn--ghost,
.hbg-cw-btn--outline,
.hbg-tp-btn--ghost,
.hbg-tp-btn--outline,
.hbg-ab-btn--ghost,
.hbg-ab-btn--outline {
	border-color: var(--hb-line-strong);
	background-color: var(--hb-card);
	/* The primary fills with a gradient image, not a colour. A variant that
	   only resets the colour would still paint that gradient. */
	background-image: none;
	color: var(--hb-ink);
	box-shadow: 0 1px 2px rgb(16 18 24 / 0.04);
}

.hbg-btn--ghost:hover,
.hbg-btn--outline:hover,
.acct-btn--ghost:hover,
.acct-btn--outline:hover,
.hbg-cw-btn--ghost:hover,
.hbg-cw-btn--outline:hover,
.hbg-tp-btn--ghost:hover,
.hbg-tp-btn--outline:hover,
.hbg-ab-btn--ghost:hover,
.hbg-ab-btn--outline:hover {
	transform: translateY(-1px);
	border-color: var(--hb-line-strong);
	background-color: var(--hb-bg-2);
	color: var(--hb-ink);
}

/* Soft */
.hbg-btn--soft,
.acct-btn--soft,
.hbg-cw-btn--soft,
.hbg-tp-btn--soft,
.hbg-ab-btn--soft {
	border-color: transparent;
	background-color: var(--hb-bg-2);
	background-image: none;
	color: var(--hb-ink);
}

.hbg-btn--soft:hover,
.acct-btn--soft:hover,
.hbg-cw-btn--soft:hover,
.hbg-tp-btn--soft:hover,
.hbg-ab-btn--soft:hover {
	transform: translateY(-1px);
	background-color: var(--hb-bg-3);
	color: var(--hb-ink);
}

/* Quiet */
.acct-btn--quiet {
	min-height: 36px;
	padding: 0 12px;
	border-color: transparent;
	border-radius: var(--hb-btn-radius-sm, 8px);
	background-color: transparent;
	background-image: none;
	color: var(--hb-muted);
	font-size: 13px;
	box-shadow: none;
}

.acct-btn--quiet:hover {
	transform: none;
	filter: none;
	border-color: transparent;
	background-color: var(--hb-soft);
	color: var(--hb-ink);
	box-shadow: none;
}

.acct-btn--quiet:active {
	transform: none;
	box-shadow: none;
}

/* Danger */
.hbg-btn--danger {
	border-color: transparent;
	background-color: var(--hb-err);
	color: #fff;
}

.hbg-btn--danger:hover {
	transform: translateY(-1px);
	color: #fff;
	filter: brightness(1.05);
}

/* Quiet — used inside cards and table rows. */
.hbg-btn--quiet {
	min-height: 34px;
	padding: 0 12px;
	border-color: transparent;
	border-radius: var(--hb-radius-sm);
	background: transparent;
	color: var(--hb-muted);
	font-size: 13px;
}

.hbg-btn--quiet:hover {
	background: var(--hb-bg-2);
	color: var(--hb-ink);
}

/* Sizes */
.hbg-btn--sm,
.acct-btn--sm,
.hbg-cw-btn--sm,
.hbg-tp-btn--sm,
.hbg-ab-btn--sm {
	min-height: 36px;
	padding: 0 14px;
	border-radius: var(--hb-btn-radius-sm);
	font-size: 13px;
	gap: 6px;
}

.hbg-btn--lg {
	min-height: 52px;
	padding: 0 26px;
	font-size: 15px;
}

.hbg-btn--block,
.acct-btn--block,
.hbg-cw-btn--block,
.hbg-tp-btn--block {
	width: 100%;
}

/* Disabled. Never fake it with pointer-events alone — the control has to read
 * as unavailable and drop out of the tab order for real. */
.hbg-btn[disabled],
.hbg-btn[aria-disabled="true"],
.acct-btn[disabled],
.acct-btn[aria-disabled="true"],
.hbg-cw-btn[disabled],
.hbg-tp-btn[disabled],
.hbg-ab-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
	filter: none;
}

/* Loading. The label stays for width; a spinner takes the icon slot. */
.hbg-btn[data-loading="true"] {
	position: relative;
	color: transparent;
	cursor: progress;
}

.hbg-btn[data-loading="true"]::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border: 2px solid currentcolor;
	border-top-color: transparent;
	border-radius: 50%;
	color: var(--hb-on-accent);
	animation: hbg-spin 0.7s linear infinite;
}

@keyframes hbg-spin {
	to {
		transform: rotate(360deg);
	}
}

/* bundle.css forces a #292929 border onto every element in dark, which repaints
 * a transparent button edge as a hairline. The neutral rules above already use
 * --hb-line, so only the deliberately transparent edges need the weight. */
body.dark .hbg-btn--primary,
body.dark .hbg-btn--secondary,
body.dark .hbg-btn--soft,
body.dark .hbg-btn--danger,
body.dark .acct-btn--primary,
body.dark .acct-btn--secondary,
body.dark .hbg-cw-btn--primary,
body.dark .hbg-cw-btn--secondary,
body.dark .hbg-tp-btn--primary,
body.dark .hbg-tp-btn--secondary,
body.dark .hbg-ab-btn--primary,
body.dark .hbg-ab-btn--secondary {
	border-color: transparent !important;
}

body.dark .hbg-btn--ghost,
body.dark .hbg-btn--outline,
body.dark .acct-btn--ghost,
body.dark .acct-btn--outline,
body.dark .hbg-cw-btn--ghost,
body.dark .hbg-cw-btn--outline,
body.dark .hbg-tp-btn--ghost,
body.dark .hbg-tp-btn--outline,
body.dark .hbg-ab-btn--ghost,
body.dark .hbg-ab-btn--outline {
	border-color: var(--hb-line-strong) !important;
}

/* ================================================================= fields */

/* One field shape. The theme ships its own `input[type="text"]` with a bottom
 * margin and a grey fill; these rules carry enough specificity to replace it
 * without an !important, and the wrapper class keeps the intent readable. */

.hbg-field {
	display: grid;
	gap: 7px;
}

.hbg-label {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--hb-ink);
}

.hbg-label span[aria-hidden="true"] {
	color: var(--hb-err);
}

.hbg-input,
.hbg-select,
.hbg-textarea,
.acct-main .acct-input {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--hb-line);
	border-radius: var(--hb-radius-sm);
	background: var(--hb-field);
	color: var(--hb-ink);
	font-family: var(--hb-font);
	font-size: 14px;
	line-height: 1.4;
	transition: border-color var(--hb-dur) ease, box-shadow var(--hb-dur) ease;
}

.hbg-textarea {
	min-height: 120px;
	resize: vertical;
}

.hbg-select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237a7f88' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}

.hbg-input::placeholder,
.hbg-textarea::placeholder,
.acct-main .acct-input::placeholder {
	color: var(--hb-faint);
	opacity: 1;
}

.hbg-input:hover,
.hbg-select:hover,
.hbg-textarea:hover,
.acct-main .acct-input:hover {
	border-color: var(--hb-line-strong);
}

.hbg-input:focus,
.hbg-select:focus,
.hbg-textarea:focus,
.acct-main .acct-input:focus {
	outline: none;
	border-color: var(--hb-accent);
	box-shadow: var(--hb-ring);
}

.hbg-input:disabled,
.hbg-select:disabled,
.hbg-textarea:disabled {
	background: var(--hb-bg-2);
	color: var(--hb-muted);
	cursor: not-allowed;
}

.hbg-input[aria-invalid="true"],
.hbg-select[aria-invalid="true"],
.hbg-textarea[aria-invalid="true"],
.acct-main .acct-input[aria-invalid="true"] {
	border-color: var(--hb-err);
	box-shadow: 0 0 0 3px rgb(194 38 58 / 0.16);
}

/* Read-only is not disabled — it is content you can copy. */
.hbg-input[readonly] {
	background: var(--hb-bg-2);
	color: var(--hb-ink-2);
}

.hbg-help {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--hb-muted);
}

.hbg-error {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 0;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--hb-err);
}

.hbg-error:empty {
	display: none;
}

.hbg-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--hb-muted);
	cursor: pointer;
}

.hbg-check input {
	flex: none;
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	accent-color: var(--hb-accent);
	cursor: pointer;
}

.hbg-check a {
	color: var(--hb-ink);
	text-underline-offset: 2px;
}

/* ================================================================ badges */

.hbg-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border: 1px solid var(--hb-line);
	border-radius: var(--hb-radius-pill);
	background: var(--hb-bg-2);
	color: var(--hb-ink-2);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.hbg-badge--accent {
	border-color: var(--hb-accent-line);
	background: var(--hb-accent-soft);
	color: var(--hb-accent-ink);
}

.hbg-badge--ok {
	border-color: color-mix(in srgb, var(--hb-ok) 30%, var(--hb-line));
	background: var(--hb-ok-bg);
	color: var(--hb-ok);
}

.hbg-badge--warn {
	border-color: color-mix(in srgb, var(--hb-warn) 30%, var(--hb-line));
	background: var(--hb-warn-bg);
	color: var(--hb-warn);
}

.hbg-badge--err {
	border-color: color-mix(in srgb, var(--hb-err) 30%, var(--hb-line));
	background: var(--hb-err-bg);
	color: var(--hb-err);
}

/* The product card's corner tag lives in hbg-card.css, next to the rest of
 * the card. It used to be pinned here at top/left with a dark blur plate;
 * the card now owns the flag so position, radius and colour move together. */

/* An accent tag for the featured slot, still measured against cover art.
 * Same fill as the base flag so the featured card cannot end up with the
 * light-lavender fill that reads at 1.9:1 under white. */
.hbg-card-tag--accent {
	background: var(--hb-flag-bg);
	color: var(--hb-flag-ink);
}

/* ================================================================= alerts */

.hbg-alert {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--hb-line);
	border-radius: var(--hb-radius-md);
	background: var(--hb-bg-2);
	color: var(--hb-ink);
	font-size: 13.5px;
	line-height: 1.55;
}

.hbg-alert svg {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 1px;
}

.hbg-alert strong {
	font-weight: 700;
}

.hbg-alert--ok {
	border-color: color-mix(in srgb, var(--hb-ok) 34%, var(--hb-line));
	background: var(--hb-ok-bg);
	color: var(--hb-ok);
}

.hbg-alert--warn {
	border-color: color-mix(in srgb, var(--hb-warn) 34%, var(--hb-line));
	background: var(--hb-warn-bg);
	color: var(--hb-warn);
}

.hbg-alert--err {
	border-color: color-mix(in srgb, var(--hb-err) 34%, var(--hb-line));
	background: var(--hb-err-bg);
	color: var(--hb-err);
}

/* Info uses the brand wash. */
.hbg-alert--info {
	border-color: var(--hb-accent-line);
	background: var(--hb-accent-soft);
	color: var(--hb-accent-ink);
}

/* The vendor's dark border sweep would repaint these hairlines neutral. */
body.dark .hbg-alert--ok,
body.dark .hbg-alert--warn,
body.dark .hbg-alert--err,
body.dark .hbg-alert--info {
	border-color: currentcolor !important;
	opacity: 0.95;
}

/* ================================================================== table */

.hbg-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.hbg-table caption {
	margin-bottom: 12px;
	font-size: 13px;
	color: var(--hb-muted);
	text-align: left;
}

.hbg-table th {
	padding: 12px 16px;
	border-bottom: 1px solid var(--hb-line);
	color: var(--hb-faint);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-align: left;
	text-transform: uppercase;
	white-space: nowrap;
}

.hbg-table td {
	padding: 16px;
	border-bottom: 1px solid var(--hb-line);
	color: var(--hb-ink-2);
	vertical-align: middle;
}

.hbg-table tbody tr:last-child td {
	border-bottom: 0;
}

.hbg-table tbody tr:hover td {
	background: var(--hb-bg-2);
}

.hbg-table td strong {
	color: var(--hb-ink);
	font-weight: 600;
}

.hbg-table .hbg-table-num {
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
}

/* Scroll wrapper for narrow screens. */
.hbg-table-scroll {
	overflow-x: auto;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
}

/* =================================================================== tabs */

.hbg-tabs {
	display: flex;
	gap: 4px;
	padding: 4px;
	border: 1px solid var(--hb-line);
	border-radius: var(--hb-radius-pill);
	background: var(--hb-card);
	width: fit-content;
	max-width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
}

.hbg-tabs::-webkit-scrollbar {
	display: none;
}

.hbg-tab {
	padding: 9px 16px;
	border: 0;
	border-radius: var(--hb-radius-pill);
	background: transparent;
	color: var(--hb-muted);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color var(--hb-dur) ease, color var(--hb-dur) ease;
}

.hbg-tab:hover {
	background: var(--hb-bg-2);
	color: var(--hb-ink);
}

.hbg-tab[aria-selected="true"],
.hbg-tab[aria-current="page"],
.hbg-tab.is-active {
	background: var(--hb-accent-fill);
	background-image: linear-gradient(180deg, var(--hb-btn-primary-hi), var(--hb-btn-primary));
	color: var(--hb-on-accent);
}

/* ============================================================ breadcrumbs */

.hbg-crumbs {
	font-size: 12.5px;
	color: var(--hb-faint);
}

.hbg-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hbg-crumbs a {
	color: var(--hb-muted);
	text-decoration: none;
}

.hbg-crumbs a:hover {
	color: var(--hb-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hbg-crumbs [aria-current="page"] {
	color: var(--hb-ink);
}

.hbg-crumbs li + li::before {
	content: "/";
	margin-right: 7px;
	color: var(--hb-line-strong);
}

/* ============================================================ pagination */

.hbg-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
}

.hbg-pager a,
.hbg-pager span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--hb-line);
	border-radius: var(--hb-radius-sm);
	background: var(--hb-card);
	color: var(--hb-ink-2);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color var(--hb-dur) ease, background-color var(--hb-dur) ease;
}

.hbg-pager a:hover {
	border-color: var(--hb-line-strong);
	background: var(--hb-bg-2);
	color: var(--hb-ink);
}

.hbg-pager [aria-current="page"] {
	border-color: transparent;
	background: var(--hb-accent-fill);
	color: var(--hb-on-accent);
}

.hbg-pager [aria-disabled="true"] {
	opacity: 0.45;
	cursor: not-allowed;
}

/* ============================================================ empty state */

.hbg-empty {
	display: grid;
	justify-items: center;
	gap: 12px;
	padding: 64px 24px;
	text-align: center;
}

.hbg-empty-icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border: 1px solid var(--hb-line);
	border-radius: 50%;
	background: var(--hb-bg-2);
	color: var(--hb-muted);
}

.hbg-empty-icon svg {
	display: block;
	width: 26px;
	height: 26px;
}

.hbg-empty-title {
	margin: 6px 0 0;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--hb-ink);
}

.hbg-empty-copy {
	margin: 0;
	max-width: 46ch;
	font-size: 14px;
	line-height: 1.6;
	color: var(--hb-muted);
}

.hbg-empty-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 8px;
}

/* ============================================================== skeleton */

.hbg-skeleton {
	display: block;
	border-radius: var(--hb-radius-sm);
	background: linear-gradient(90deg, var(--hb-bg-2) 25%, var(--hb-bg-3) 37%, var(--hb-bg-2) 63%);
	background-size: 400% 100%;
	animation: hbg-shimmer 1.4s ease-in-out infinite;
}

@keyframes hbg-shimmer {
	0% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0 50%;
	}
}

/* ================================================================ prose */

/* Legal pages shipped with no stylesheet of their own and inherited whatever
 * Elementor had left in bundle.css. This is the reading column: 68 characters,
 * 17px, with rules that survive a machine-generated document. */

.hbg-prose {
	color: var(--hb-ink-2);
	font-size: 16px;
	line-height: 1.72;
}

.hbg-prose > * + * {
	margin-top: 18px;
}

.hbg-prose h2 {
	margin: 48px 0 0;
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.022em;
	color: var(--hb-ink);
}

.hbg-prose h3 {
	margin: 34px 0 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--hb-ink);
}

.hbg-prose h4 {
	margin: 26px 0 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--hb-ink);
}

.hbg-prose p,
.hbg-prose li {
	color: var(--hb-muted);
}

.hbg-prose strong {
	color: var(--hb-ink);
	font-weight: 700;
}

.hbg-prose a {
	color: var(--hb-accent-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.hbg-prose a:hover {
	color: var(--hb-accent);
}

.hbg-prose ul,
.hbg-prose ol {
	margin: 18px 0 0;
	padding-left: 22px;
}

.hbg-prose li + li {
	margin-top: 8px;
}

.hbg-prose li::marker {
	color: var(--hb-accent);
}

.hbg-prose blockquote {
	margin: 28px 0;
	padding: 4px 0 4px 20px;
	border-left: 2px solid var(--hb-accent);
	color: var(--hb-ink-2);
	font-size: 16.5px;
}

.hbg-prose code {
	padding: 2px 6px;
	border: 1px solid var(--hb-line);
	border-radius: 6px;
	background: var(--hb-bg-2);
	font-family: var(--hb-mono);
	font-size: 0.9em;
	color: var(--hb-ink);
}

.hbg-prose pre {
	margin: 24px 0;
	padding: 18px 20px;
	border: 1px solid var(--hb-line);
	border-radius: var(--hb-radius-md);
	background: var(--hb-bg-2);
	overflow-x: auto;
}

.hbg-prose pre code {
	padding: 0;
	border: 0;
	background: none;
	line-height: 1.65;
}

.hbg-prose table {
	width: 100%;
	margin: 24px 0;
	border-collapse: collapse;
	font-size: 14px;
}

.hbg-prose th,
.hbg-prose td {
	padding: 11px 14px;
	border: 1px solid var(--hb-line);
	text-align: left;
	vertical-align: top;
}

.hbg-prose th {
	background: var(--hb-bg-2);
	color: var(--hb-ink);
	font-weight: 600;
}

.hbg-prose hr {
	margin: 40px 0;
}

/* The export wraps policy copy in `.page-content .sh-text-content` and puts an
 * invisible <h1> above it. Both are handled here rather than in markup so the
 * existing files do not need re-exporting. */
.hbg-legal-page #wrapper {
	padding: 44px var(--hb-gutter) 76px;
}

.hbg-legal-page .page-content,
.hbg-legal-page .sh-text-content {
	max-width: 72ch;
	margin: 0 auto;
}

.hbg-legal-page .page-content {
	padding: 0;
}

.hbg-legal-page .page-content > h2:first-child,
.hbg-legal-page .page-content > h2:first-of-type {
	margin-top: 0;
}

/* ============================================================ consent */

/* Docked bottom-left and narrow. The centred 680px card sat directly over the
 * hero CTA on the homepage and over the first product row on every archive, so
 * it now reads as a note in the corner instead of a wall across the page. */
.hbg-consent {
	left: 20px;
	right: auto;
	bottom: 20px;
	width: min(380px, calc(100vw - 40px));
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	padding: 18px;
	border: 1px solid var(--hb-line);
	border-radius: var(--hb-radius-lg);
	background: var(--hb-card);
	color: var(--hb-ink);
	box-shadow: var(--hb-shadow-lift);
	transform: none;
}

.hbg-consent .hbg-consent-body {
	gap: 6px;
}

.hbg-consent.is-leaving {
	transform: translateY(10px);
}

.hbg-consent .hbg-consent-title {
	font-size: 14px;
	line-height: 1.3;
	color: var(--hb-ink);
}

.hbg-consent .hbg-consent-copy {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--hb-muted);
}

.hbg-consent .hbg-consent-copy a {
	color: var(--hb-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hbg-consent .hbg-consent-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hbg-consent .hbg-consent-btn {
	min-height: 38px;
	padding: 0 14px;
	border: 1px solid var(--hb-line-strong);
	border-radius: var(--hb-radius-sm);
	background: var(--hb-card);
	color: var(--hb-ink);
	font-family: var(--hb-font);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background-color var(--hb-dur) ease, border-color var(--hb-dur) ease;
}

.hbg-consent .hbg-consent-btn:hover {
	border-color: var(--hb-line-strong);
	background: var(--hb-bg-2);
}

.hbg-consent .hbg-consent-btn--primary {
	border-color: transparent;
	background: var(--hb-accent-fill);
	color: var(--hb-on-accent);
}

.hbg-consent .hbg-consent-btn--primary:hover {
	border-color: transparent;
	background: var(--hb-accent-hi);
}

@media (max-width: 640px) {
	.hbg-consent {
		left: 12px;
		right: 12px;
		bottom: 12px;
		width: auto;
		padding: 16px;
	}

	.hbg-consent .hbg-consent-btn {
		flex: 1 1 0;
	}
}

/* ============================================================== surfaces */

/* Section wrapper used by the account, custom-work and tool pages so their
 * vertical rhythm matches the archives. */
.hbg-section {
	padding: var(--hb-section) 0;
}

.hbg-section--tight {
	padding: calc(var(--hb-section) * 0.55) 0;
}

.hbg-card-surface {
	border: 1px solid var(--hb-line);
	border-radius: var(--hb-radius-lg);
	background: var(--hb-card);
}

.hbg-divider {
	height: 1px;
	border: 0;
	background: var(--hb-line);
}

/* ================================================================== nav */

/* The bar is a frosted capsule that floats above the continuous page field. */
.sa-nav .sa-nav-glass {
	background-color: color-mix(in srgb, var(--hb-card) 84%, transparent);
}

body.dark .sa-nav .sa-nav-glass {
	background-color: color-mix(in srgb, var(--hb-card) 84%, transparent);
}

.sa-nav-logo img {
	display: block;
	width: auto;
	border-radius: 10px;
	object-fit: contain;
}

/* ============================================================ motion/print */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.hbg-skeleton {
		animation: none;
		background: var(--hb-bg-2);
	}
}

@media print {
	.sa-header,
	.sa-footer,
	.hbg-consent,
	.hbg-skip,
	.sh-back-to-top {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}

	.hbg-page-head {
		margin-top: 0;
		padding-top: 24px;
	}

	.hbg-page-head::before {
		display: none;
	}
}

/* ==== /assets/css/chat-widget.css ==== */
/* HamzaBG Mods — Crisp-style store assistant & Help widget.
 *
 * Scoped cleanly under `.hbg-chat-root` and driven by the site's `--hb-*`
 * theme tokens so both light mode and `body.dark` match the rest of the
 * storefront without inventing parallel colour ramps.
 */

.hbg-chat-root {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9985;
	font-family: var(--hb-font, "Proxima Nova", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif);
	-webkit-font-smoothing: antialiased;
	pointer-events: none;
}

.hbg-chat-root * {
	box-sizing: border-box;
}

body.hbg-chat-mounted .sh-back-to-top {
	right: 86px;
	bottom: 22px;
}

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

.hbg-chat-stack {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	pointer-events: auto;
}

.hbg-chat-toggle {
	position: relative;
	width: 54px;
	height: 54px;
	padding: 0;
	border: 0 !important;
	border-radius: 9999px;
	background: linear-gradient(135deg, #424cd6 0%, #515df3 55%, #6571ff 100%);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 10px 28px -6px rgba(66, 76, 214, 0.55), 0 2px 8px rgba(17, 19, 32, 0.16);
	transition: transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 180ms ease;
}

.hbg-chat-toggle:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px -6px rgba(66, 76, 214, 0.65), 0 4px 12px rgba(17, 19, 32, 0.2);
}

.hbg-chat-toggle:active {
	transform: scale(0.96);
}

.hbg-chat-toggle:focus-visible,
.hbg-chat-discord-fab:focus-visible,
.hbg-chat-icon-btn:focus-visible,
.hbg-chat-send:focus-visible,
.hbg-chat-tab:focus-visible,
.hbg-chat-chip:focus-visible,
.hbg-chat-action:focus-visible,
.hbg-chat-article-card:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgb(101 113 255 / 0.38);
}

.hbg-chat-toggle svg {
	width: 24px;
	height: 24px;
	transition: opacity 140ms ease, transform 160ms ease;
}

.hbg-chat-toggle .hbg-chat-ico-close {
	position: absolute;
	opacity: 0;
	transform: rotate(-45deg) scale(0.75);
}

.hbg-chat-root[data-open="true"] .hbg-chat-toggle .hbg-chat-ico-msg {
	opacity: 0;
	transform: rotate(45deg) scale(0.75);
}

.hbg-chat-root[data-open="true"] .hbg-chat-toggle .hbg-chat-ico-close {
	opacity: 1;
	transform: rotate(0deg) scale(1);
}

.hbg-chat-presence {
	position: absolute;
	right: 2px;
	bottom: 2px;
	width: 12px;
	height: 12px;
	border-radius: 9999px;
	background: #22c55e;
	border: 2px solid #ffffff !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.hbg-chat-root[data-open="true"] .hbg-chat-presence {
	display: none;
}

.hbg-chat-discord-fab {
	width: 42px;
	height: 42px;
	border-radius: 9999px;
	border: 0 !important;
	background: #5865f2;
	color: #ffffff !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-shadow: 0 8px 20px -6px rgba(88, 101, 242, 0.55), 0 2px 6px rgba(17, 19, 32, 0.16);
	transition: transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1), background-color 160ms ease;
}

.hbg-chat-discord-fab:hover {
	transform: translateY(-2px);
	background: #4752c4;
	color: #ffffff !important;
}

.hbg-chat-discord-fab svg {
	width: 20px;
	height: 20px;
}

/* ------------------------------------------------------------------ panel */

.hbg-chat-panel {
	position: fixed;
	right: 20px;
	bottom: 132px;
	width: min(378px, calc(100vw - 24px));
	height: min(560px, calc(100vh - 152px));
	display: flex;
	flex-direction: column;
	border-radius: 18px;
	border: 1px solid var(--hb-line, #e6e8ee);
	background: var(--hb-card, #ffffff);
	color: var(--hb-ink, #14161b);
	box-shadow: 0 22px 54px -14px rgba(17, 19, 32, 0.34), 0 6px 18px -4px rgba(17, 19, 32, 0.14);
	overflow: hidden;
	pointer-events: auto;
	transform-origin: bottom right;
	animation: hbg-chat-pop 190ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.dark .hbg-chat-panel {
	border-color: var(--hb-line, #272a31) !important;
	box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.68), 0 6px 20px rgba(0, 0, 0, 0.45);
}

@keyframes hbg-chat-pop {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* ----------------------------------------------------------------- header */

.hbg-chat-head {
	flex: 0 0 auto;
	padding: 13px 14px 16px;
	color: #ffffff;
	background:
		radial-gradient(120% 90% at 88% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 56%),
		linear-gradient(135deg, #3e47cf 0%, #515df3 56%, #6571ff 100%);
}

.hbg-chat-head-top {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}

.hbg-chat-tabs {
	grid-column: 2;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 3px;
	border-radius: 9999px;
	background: rgba(15, 20, 56, 0.24);
	border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.hbg-chat-tab {
	border: 0 !important;
	background: transparent;
	color: rgba(255, 255, 255, 0.8);
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	padding: 5px 13px;
	border-radius: 9999px;
	cursor: pointer;
	transition: background-color 150ms ease, color 150ms ease;
}

.hbg-chat-tab[aria-selected="true"] {
	background: rgba(255, 255, 255, 0.22);
	color: #ffffff;
}

.hbg-chat-head-actions {
	grid-column: 3;
	justify-self: end;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.hbg-chat-icon-btn {
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0 !important;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 140ms ease;
}

.hbg-chat-icon-btn:hover {
	background: rgba(255, 255, 255, 0.22);
}

.hbg-chat-icon-btn svg {
	width: 15px;
	height: 15px;
}

.hbg-chat-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
}

.hbg-chat-avatars {
	display: inline-flex;
	align-items: center;
}

.hbg-chat-av {
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: 9999px;
	border: 2px solid #515df3 !important;
	background: #14161b;
	color: #ffffff;
	display: grid;
	place-items: center;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(15, 20, 56, 0.28);
}

.hbg-chat-av img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hbg-chat-title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	color: #ffffff;
	letter-spacing: -0.01em;
}

.hbg-chat-sub {
	margin: 0;
	font-size: 12px;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.84);
}

/* ------------------------------------------------------------------- tabs */

.hbg-chat-view {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

/* --------------------------------------------------------------- messages */

.hbg-chat-feed {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 14px 14px 10px;
	background: var(--hb-bg-2, #f8f8f9);
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.hbg-chat-msg {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	max-width: 88%;
	align-self: flex-start;
}

.hbg-chat-msg[data-role="user"] {
	align-self: flex-end;
	flex-direction: row-reverse;
}

.hbg-chat-msg-mark {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	border-radius: 9999px;
	overflow: hidden;
	background: #14161b;
	border: 1px solid rgba(101, 113, 255, 0.34);
	display: grid;
	place-items: center;
	box-shadow: 0 2px 6px rgba(17, 19, 32, 0.22);
}

.hbg-chat-msg-mark img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hbg-chat-msg-col {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.hbg-chat-bubble {
	padding: 10px 13px;
	border-radius: 15px 15px 15px 4px;
	border: 1px solid var(--hb-line, #e6e8ee);
	background: var(--hb-card, #ffffff);
	color: var(--hb-ink-2, #33363d);
	font-size: 13.5px;
	line-height: 1.5;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	box-shadow: 0 1px 3px rgba(17, 19, 32, 0.06);
}

body.dark .hbg-chat-bubble {
	border-color: var(--hb-line, #272a31) !important;
	color: var(--hb-ink, #f3f4f6);
}

.hbg-chat-msg[data-role="user"] .hbg-chat-bubble {
	border-color: transparent !important;
	border-radius: 15px 15px 4px 15px;
	background: #515df3;
	color: #ffffff;
	box-shadow: 0 2px 10px -2px rgb(81 93 243 / 0.36);
}

.hbg-chat-bubble strong {
	font-weight: 700;
	color: inherit;
}

.hbg-chat-bubble code {
	padding: 1px 5px;
	border-radius: 5px;
	font-family: var(--hb-mono, monospace);
	font-size: 0.9em;
	background: var(--hb-bg-3, #ebebee);
	color: var(--hb-ink, #14161b);
}

.hbg-chat-msg[data-role="user"] .hbg-chat-bubble code {
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
}

.hbg-chat-bubble a {
	color: var(--hb-accent-ink, #4a55e0);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hbg-chat-msg[data-role="user"] .hbg-chat-bubble a {
	color: #ffffff;
}

.hbg-chat-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.hbg-chat-action {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 10px;
	border-radius: 9999px;
	border: 1px solid var(--hb-accent-line, rgb(101 113 255 / 0.42)) !important;
	background: var(--hb-accent-soft, #eef0ff);
	color: var(--hb-accent-ink, #4a55e0);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 140ms ease, transform 140ms ease;
}

.hbg-chat-action:hover {
	transform: translateY(-1px);
	color: var(--hb-accent-ink, #4a55e0);
}

.hbg-chat-prompts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 2px;
}

.hbg-chat-chip {
	padding: 6px 11px;
	border-radius: 9999px;
	border: 1px solid var(--hb-line-strong, #d5d8e1);
	background: var(--hb-card, #ffffff);
	color: var(--hb-ink-2, #33363d);
	font: inherit;
	font-size: 12px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.hbg-chat-chip:hover {
	border-color: var(--hb-accent, #6571ff) !important;
	color: var(--hb-accent-ink, #4a55e0);
	background: var(--hb-accent-soft, #eef0ff);
}

.hbg-chat-typing {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 2px;
}

.hbg-chat-typing span {
	width: 6px;
	height: 6px;
	border-radius: 9999px;
	background: var(--hb-faint, #646973);
	animation: hbg-chat-dot 1s infinite ease-in-out;
}

.hbg-chat-typing span:nth-child(2) {
	animation-delay: 140ms;
}

.hbg-chat-typing span:nth-child(3) {
	animation-delay: 280ms;
}

@keyframes hbg-chat-dot {
	0%, 80%, 100% {
		opacity: 0.35;
		transform: translateY(0);
	}
	40% {
		opacity: 1;
		transform: translateY(-3px);
	}
}

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

.hbg-chat-compose {
	flex: 0 0 auto;
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 10px 12px;
	border-top: 1px solid var(--hb-line, #e6e8ee);
	background: var(--hb-card, #ffffff);
}

body.dark .hbg-chat-compose {
	border-top-color: var(--hb-line, #272a31) !important;
}

.hbg-chat-input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 36px;
	max-height: 96px;
	padding: 8px 10px;
	border: 1px solid var(--hb-line, #e6e8ee);
	border-radius: 11px;
	background: var(--hb-field, #f8f8f9);
	color: var(--hb-ink, #14161b);
	font: inherit;
	font-size: 13.5px;
	line-height: 1.4;
	resize: none;
}

.hbg-chat-input:focus {
	outline: none;
	border-color: var(--hb-accent, #6571ff) !important;
	box-shadow: 0 0 0 3px rgb(101 113 255 / 0.18);
}

.hbg-chat-send {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0 !important;
	border-radius: 10px;
	background: #515df3;
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: opacity 140ms ease, background-color 140ms ease;
}

.hbg-chat-send:hover:not(:disabled) {
	background: #424cd6;
}

.hbg-chat-send:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.hbg-chat-send svg {
	width: 17px;
	height: 17px;
}

.hbg-chat-foot {
	flex: 0 0 auto;
	padding: 6px 14px 8px;
	border-top: 1px solid var(--hb-line, #e6e8ee);
	background: var(--hb-bg-2, #f8f8f9);
	font-size: 11.5px;
	color: var(--hb-faint, #646973);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

body.dark .hbg-chat-foot {
	border-top-color: var(--hb-line, #272a31) !important;
}

.hbg-chat-foot a {
	color: var(--hb-accent-ink, #4a55e0);
	font-weight: 600;
	text-decoration: none;
}

.hbg-chat-foot a:hover {
	text-decoration: underline;
}

/* ------------------------------------------------------------------- help */

.hbg-chat-help {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	background: var(--hb-bg-2, #f8f8f9);
}

.hbg-chat-help-search {
	flex: 0 0 auto;
	padding: 12px 14px;
	border-bottom: 1px solid var(--hb-line, #e6e8ee);
	background: var(--hb-card, #ffffff);
}

body.dark .hbg-chat-help-search {
	border-bottom-color: var(--hb-line, #272a31) !important;
}

.hbg-chat-help-input {
	width: 100%;
	height: 36px;
	padding: 0 12px;
	border: 1px solid var(--hb-line, #e6e8ee);
	border-radius: 10px;
	background: var(--hb-field, #f8f8f9);
	color: var(--hb-ink, #14161b);
	font: inherit;
	font-size: 13px;
}

.hbg-chat-help-input:focus {
	outline: none;
	border-color: var(--hb-accent, #6571ff) !important;
	box-shadow: 0 0 0 3px rgb(101 113 255 / 0.18);
}

.hbg-chat-help-list,
.hbg-chat-article-read {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hbg-chat-article-card {
	width: 100%;
	padding: 11px 13px;
	border-radius: 12px;
	border: 1px solid var(--hb-line, #e6e8ee);
	background: var(--hb-card, #ffffff);
	color: var(--hb-ink, #14161b);
	font: inherit;
	text-align: left;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 4px;
	transition: border-color 140ms ease, transform 140ms ease;
}

.hbg-chat-article-card:hover {
	border-color: var(--hb-accent-line, rgb(101 113 255 / 0.42)) !important;
	transform: translateY(-1px);
}

.hbg-chat-article-cat {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hb-accent-ink, #4a55e0);
}

.hbg-chat-article-title {
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.3;
}

.hbg-chat-article-sum {
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--hb-muted, #5d626b);
}

.hbg-chat-back {
	align-self: flex-start;
	padding: 4px 2px;
	border: 0 !important;
	background: none;
	color: var(--hb-accent-ink, #4a55e0);
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
}

.hbg-chat-read-card {
	padding: 14px;
	border-radius: 12px;
	border: 1px solid var(--hb-line, #e6e8ee);
	background: var(--hb-card, #ffffff);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hbg-chat-read-card h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--hb-ink, #14161b);
}

.hbg-chat-read-body {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--hb-ink-2, #33363d);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.hbg-chat-read-body a {
	color: var(--hb-accent-ink, #4a55e0);
	font-weight: 600;
	text-decoration: underline;
}

.hbg-chat-read-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 4px;
}

.hbg-chat-read-ask {
	padding: 6px 11px;
	border-radius: 9999px;
	border: 1px solid var(--hb-line-strong, #d5d8e1);
	background: var(--hb-bg-2, #f8f8f9);
	color: var(--hb-ink, #14161b);
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.hbg-chat-help-empty {
	margin: 18px 0;
	text-align: center;
	font-size: 13px;
	color: var(--hb-faint, #646973);
}

@media (max-width: 520px) {
	.hbg-chat-root {
		right: 14px;
		bottom: 14px;
	}

	body.hbg-chat-mounted .sh-back-to-top {
		right: 76px;
		bottom: 16px;
	}

	.hbg-chat-root[data-open="true"] .hbg-chat-stack {
		display: none;
	}

	.hbg-chat-panel {
		inset: 10px;
		width: auto;
		height: auto;
		max-height: none;
		border-radius: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hbg-chat-toggle,
	.hbg-chat-discord-fab,
	.hbg-chat-panel,
	.hbg-chat-typing span {
		transition: none;
		animation: none;
	}
}
