/* Home Bias vs Global Equity — scoped */
/* Width: same pattern as retirement-withdrawal-strategy (.rws-root + .rws-app). */

.hbge-root {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 100% !important;
	display: block !important;
	margin: 0 auto !important;
	padding: 0 !important;
	clear: both !important;
	float: none !important;
	color: #1e1b4b;
	font-size: 1.0625rem;
	line-height: 1.52;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.hbge-card {
	width: 100%;
	max-width: 1040px;
	margin: 0 auto;
	box-sizing: border-box;
	display: block;
	border: 2px solid #4c1d95;
	border-radius: 16px;
	padding: 1.5rem 1.5rem 1.25rem;
	background: linear-gradient(165deg, #ffffff 0%, #f5f3ff 45%, #ede9fe 100%);
	box-shadow: 0 12px 32px rgba(76, 29, 149, 0.14);
}

.hbge-card * {
	box-sizing: border-box;
}

.hbge-eyebrow {
	margin: 0 0 0.4rem;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #7c3aed;
}

.hbge-title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.45rem, 2.5vw, 1.85rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #312e81;
	line-height: 1.15;
}

.hbge-lede {
	margin: 0 0 1.35rem;
	font-size: 1.02rem;
	line-height: 1.58;
	color: #3730a3;
}

.hbge-theory {
	margin: 0 0 1.35rem;
	padding: 1.25rem 1.1rem 1.2rem;
	border-radius: 14px;
	border: 1px solid #c4b5fd;
	background: linear-gradient(135deg, #faf5ff 0%, #fff 55%, #eef2ff 100%);
	box-shadow: 0 6px 20px rgba(67, 56, 202, 0.08);
	text-align: center;
}

.hbge-theory-heading {
	margin: 0 auto 0.65rem;
	font-size: 1.12rem;
	font-weight: 900;
	color: #4c1d95;
	max-width: 36rem;
	line-height: 1.3;
}

.hbge-theory-intro {
	margin: 0 auto 1rem;
	max-width: 40rem;
	font-size: 0.95rem;
	line-height: 1.58;
	color: #4338ca;
	text-align: center;
}

.hbge-theory-stack {
	max-width: 56rem;
	margin: 0 auto;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.hbge-theory-row {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.65rem 0.75rem;
	background: #fff;
	border: 1px solid #e9d5ff;
	border-radius: 12px;
	box-shadow: 0 1px 0 rgba(91, 33, 182, 0.06);
}

.hbge-theory-row--last {
	margin-bottom: 0;
}

.hbge-theory-icon {
	flex-shrink: 0;
	font-size: 1.35rem;
	line-height: 1.2;
	width: 2rem;
	text-align: center;
}

.hbge-theory-body {
	min-width: 0;
	flex: 1;
}

.hbge-theory-row-title {
	margin: 0 0 0.35rem;
	font-size: 0.92rem;
	font-weight: 800;
	color: #5b21b6;
}

.hbge-theory-row-text {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.55;
	color: #4338ca;
}

.hbge-theory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.75rem;
	text-align: left;
	max-width: 56rem;
	margin: 0 auto;
}

.hbge-theory-card {
	background: #fff;
	border: 1px solid #e9d5ff;
	border-radius: 12px;
	padding: 0.85rem 0.95rem;
	text-align: left;
}

.hbge-theory-card--wide {
	grid-column: 1 / -1;
}

.hbge-theory-card-title {
	margin: 0 0 0.4rem;
	font-size: 0.88rem;
	font-weight: 800;
	color: #5b21b6;
}

.hbge-theory-card-text {
	margin: 0;
	font-size: 0.86rem;
	line-height: 1.55;
	color: #4338ca;
}

.hbge-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem 1rem;
	margin-bottom: 1.25rem;
}

.hbge-field--full {
	grid-column: 1 / -1;
}

.hbge-field-hint {
	grid-column: 1 / -1;
	margin: -0.35rem 0 0.5rem;
	padding: 0;
	font-size: 0.82rem;
	line-height: 1.5;
	color: #64748b;
	max-width: 48rem;
}

.hbge-field-hint.hbge-returns-context {
	max-width: none;
	margin: 0.15rem 0 0.65rem;
	padding: 0.85rem 0.95rem 0.95rem;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	background: rgba(248, 250, 252, 0.95);
	color: #475569;
	line-height: 1.55;
}

.hbge-returns-heading {
	margin: 0 0 0.55rem;
	font-size: clamp(1rem, 1.85vw, 1.15rem);
	font-weight: 900;
	letter-spacing: -0.02em;
	color: #312e81;
	line-height: 1.25;
}

.hbge-returns-kicker {
	display: inline;
	margin-right: 0.35rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #5b21b6;
}

.hbge-returns-context-why {
	margin: 0 0 0.65rem;
	font-size: 0.86rem;
	line-height: 1.58;
	color: #475569;
}

.hbge-returns-context-lede {
	margin: 0 0 0.65rem;
	font-size: 0.84rem;
	line-height: 1.58;
	color: #475569;
}

.hbge-returns-table-wrap {
	overflow-x: auto;
	margin: 0 0 0.65rem;
	-webkit-overflow-scrolling: touch;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	background: #fff;
}

.hbge-returns-table {
	width: 100%;
	min-width: 22rem;
	border-collapse: collapse;
	font-size: 0.8rem;
}

.hbge-returns-table th,
.hbge-returns-table td {
	padding: 0.5rem 0.55rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid #e2e8f0;
}

.hbge-returns-table thead th {
	background: #f1f5f9;
	font-weight: 800;
	color: #334155;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.hbge-th-sub {
	display: block;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
	color: #64748b;
	font-size: 0.68rem;
	margin-top: 0.15rem;
}

.hbge-returns-table tbody td {
	color: #334155;
}

.hbge-returns-table-name {
	font-weight: 700;
	color: #1e293b;
}

.hbge-returns-table tbody tr:last-child td {
	border-bottom: none;
}

.hbge-returns-table-src {
	font-size: 0.74rem;
	color: #64748b;
	line-height: 1.45;
	min-width: 11rem;
}

.hbge-returns-context-foot {
	margin: 0 0 0.55rem;
	font-size: 0.8rem;
	color: #475569;
}

.hbge-returns-sources {
	margin: 0;
	padding-left: 1.1rem;
	font-size: 0.76rem;
	color: #64748b;
	line-height: 1.5;
}

.hbge-returns-sources a {
	color: #5b21b6;
	font-weight: 700;
}

@media (max-width: 640px) {
	.hbge-grid {
		grid-template-columns: 1fr;
	}
}

.hbge-field > span {
	display: block;
	font-size: clamp(0.95rem, 1.35vw, 1.08rem);
	font-weight: 900;
	letter-spacing: -0.02em;
	color: #312e81;
	margin-bottom: 0.35rem;
	line-height: 1.3;
}

.hbge-field input,
.hbge-field select {
	width: 100%;
	box-sizing: border-box;
	padding: 0.55rem 0.65rem;
	border-radius: 10px;
	border: 1px solid #c4b5fd;
	font-size: 1rem;
	background: #fff;
}

.hbge-field input[type='range'] {
	padding: 0;
	accent-color: #6d28d9;
}

.hbge-results-showcase {
	margin: 0.35rem 0 1.2rem;
	padding: 1.15rem 1rem 1.2rem;
	border-radius: 18px;
	background: linear-gradient(152deg, #f8fafc 0%, #eef2ff 38%, #faf5ff 72%, #ffffff 100%);
	border: 1px solid #c4b5fd;
	box-shadow:
		0 10px 36px rgba(76, 29, 149, 0.14),
		0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.hbge-compare {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	margin-bottom: 0;
}

@media (max-width: 720px) {
	.hbge-compare {
		grid-template-columns: 1fr;
	}
}

.hbge-scen {
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 0.95rem 0.7rem 0.85rem;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	text-align: center;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
	min-width: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	transition:
		box-shadow 0.2s ease,
		border-color 0.2s ease;
}

.hbge-scen--uk {
	border-color: #c7d2fe;
}

.hbge-scen--global {
	border-color: #a7f3d0;
}

.hbge-scen--mid {
	border: 2px solid #7c3aed;
	background: linear-gradient(165deg, #faf5ff 0%, #ffffff 45%, #f5f3ff 100%);
	box-shadow:
		0 8px 28px rgba(124, 58, 237, 0.22),
		0 0 0 1px rgba(255, 255, 255, 0.6) inset;
	position: relative;
	z-index: 1;
}

.hbge-scen-label {
	font-size: 0.74rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b;
}

.hbge-scen--mid .hbge-scen-label {
	color: #6d28d9;
}

.hbge-scen-val {
	font-size: clamp(1.35rem, 3.8vw, 2.05rem);
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	color: #0f172a;
	margin-top: 0.4rem;
	line-height: 1.1;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.hbge-scen--mid .hbge-scen-val {
	color: #4c1d95;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hbge-scen-sub {
	font-size: 0.82rem;
	font-weight: 700;
	color: #5b21b6;
	margin-top: 0.35rem;
	line-height: 1.35;
}

.hbge-scen-hint {
	font-size: 0.7rem;
	color: #64748b;
	margin-top: 0.45rem;
	line-height: 1.35;
}

.hbge-kpi-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
	gap: 0.65rem;
	margin: 0 0 0.95rem;
}

.hbge-kpi {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	padding: 0.65rem 0.75rem;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 3px 12px rgba(15, 23, 42, 0.07);
	min-width: 0;
}

.hbge-kpi--spotlight {
	grid-column: 1 / -1;
	align-items: center;
	padding: 0.95rem 1rem;
	border: 2px solid #7c3aed;
	background: linear-gradient(125deg, #faf5ff 0%, #ffffff 55%, #ede9fe 100%);
	box-shadow:
		0 8px 28px rgba(124, 58, 237, 0.2),
		0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.hbge-kpi--spotlight .hbge-kpi-icon {
	font-size: 1.65rem;
}

.hbge-kpi--spotlight .hbge-kpi-label {
	font-size: 0.72rem;
	color: #6d28d9;
}

.hbge-kpi--spotlight .hbge-kpi-val {
	font-size: clamp(1.4rem, 4.2vw, 2.15rem);
	color: #4c1d95;
}

.hbge-kpi--side .hbge-kpi-val {
	font-size: clamp(1.05rem, 2.4vw, 1.35rem);
}

.hbge-kpi--addon {
	grid-column: 1 / -1;
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	background: rgba(255, 255, 255, 0.75);
	border-color: #cbd5e1;
}

.hbge-kpi--addon .hbge-kpi-body {
	align-items: center;
}

.hbge-kpi--rate {
	grid-column: 1 / -1;
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
	padding: 0.55rem 0.75rem;
	background: rgba(255, 255, 255, 0.85);
	border-style: dashed;
	border-color: #c4b5fd;
}

.hbge-kpi--rate .hbge-kpi-body {
	align-items: center;
}

.hbge-kpi-icon {
	font-size: 1.25rem;
	line-height: 1;
	flex-shrink: 0;
}

.hbge-kpi-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	max-width: 100%;
	flex: 1;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.hbge-kpi-label {
	font-size: 0.68rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
}

.hbge-kpi-val {
	font-size: 0.98rem;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	color: #312e81;
	white-space: nowrap;
	overflow: visible;
}

.hbge-visuals {
	margin: 1rem 0 0.5rem;
	padding: 1rem 0.85rem 1.1rem;
	border-radius: 14px;
	border: 1px solid #e9d5ff;
	background: linear-gradient(180deg, #fff 0%, #faf5ff 100%);
}

.hbge-visuals-heading {
	margin: 0 auto 0.65rem;
	font-size: clamp(1.08rem, 2.2vw, 1.22rem);
	font-weight: 900;
	color: #4c1d95;
	text-align: center;
	max-width: none;
	line-height: 1.25;
}

.hbge-visuals-summary {
	margin: 0 0 1rem;
	padding: 0.85rem 0.95rem 0.95rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid #e9d5ff;
	box-shadow: 0 2px 12px rgba(67, 56, 202, 0.08);
}

.hbge-visuals-summary .hbge-visuals-lede {
	margin: 0 0 0.55rem;
	font-size: 0.98rem;
	line-height: 1.45;
	color: #312e81;
	text-align: left;
}

.hbge-visuals-list {
	margin: 0;
	padding: 0 0 0 0.15rem;
	list-style: none;
	font-size: 0.9rem;
	line-height: 1.55;
	color: #4338ca;
}

.hbge-visuals-list li {
	position: relative;
	margin: 0 0 0.45rem 0.25rem;
	padding-left: 2.35rem;
	min-height: 1.5em;
}

.hbge-visuals-list li:last-child {
	margin-bottom: 0;
}

.hbge-visuals-kicker {
	position: absolute;
	left: 0;
	top: 0.05rem;
	width: 1.85rem;
	text-align: center;
	font-size: 1.15rem;
	line-height: 1.2;
}

.hbge-visuals-foot {
	margin: 0.65rem 0 0;
	font-size: 0.82rem;
	line-height: 1.45;
	color: #64748b;
	font-weight: 600;
}

.hbge-chart-fallback {
	margin: 0 0 0.75rem;
	padding: 0.6rem 0.75rem;
	border-radius: 10px;
	background: #fef3c7;
	border: 1px solid #fcd34d;
	color: #92400e;
	font-size: 0.88rem;
	font-weight: 700;
}

.hbge-chart-fallback--hidden {
	display: none;
}

.hbge-chart-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1rem;
}

.hbge-chart-card {
	background: #fff;
	border: 1px solid #ddd6fe;
	border-radius: 14px;
	padding: 0.85rem 0.7rem 0.95rem;
	box-shadow:
		0 6px 20px rgba(76, 29, 149, 0.1),
		0 2px 6px rgba(15, 23, 42, 0.04);
}

.hbge-chart-title {
	margin: 0 0 0.25rem;
	font-size: 0.92rem;
	font-weight: 900;
	color: #5b21b6;
}

.hbge-chart-caption {
	margin: 0 0 0.5rem;
	font-size: 0.78rem;
	line-height: 1.45;
	color: #64748b;
}

.hbge-chart-canvas-wrap {
	position: relative;
	width: 100%;
	min-height: 220px;
	height: 260px;
}

.hbge-chart-card:last-child .hbge-chart-canvas-wrap {
	height: 240px;
	max-width: 320px;
	margin: 0 auto;
}

.hbge-gap-panel {
	margin: 0.5rem 0 1.35rem;
	padding: 1.15rem 1.1rem 1.2rem;
	border-radius: 16px;
	border: 1px solid #c4b5fd;
	border-left: 5px solid #7c3aed;
	background: linear-gradient(165deg, #faf5ff 0%, #ffffff 42%, #eef2ff 100%);
	box-shadow: 0 10px 32px rgba(76, 29, 149, 0.16);
}

.hbge-gap-kicker {
	margin: 0 0 0.55rem;
	font-size: clamp(0.88rem, 1.6vw, 1.02rem);
	font-weight: 900;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #5b21b6;
	line-height: 1.25;
}

.hbge-summary-lede {
	margin: 0 0 0.85rem;
	font-size: clamp(0.92rem, 1.5vw, 1.05rem);
	line-height: 1.55;
	font-weight: 700;
	color: #4338ca;
	max-width: 62ch;
}

.hbge-summary-cards {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: 1fr;
}

@media (min-width: 720px) {
	.hbge-summary-cards {
		grid-template-columns: 1fr 1fr;
	}

	.hbge-sum-card--hero {
		grid-column: 1 / -1;
	}
}

.hbge-sum-card {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.85rem 0.9rem;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	background: #fff;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
}

.hbge-sum-card--hero {
	padding: 1rem 1.1rem 1.05rem;
	border: 2px solid #7c3aed;
	background: linear-gradient(145deg, #faf5ff 0%, #ffffff 55%, #f5f3ff 100%);
	box-shadow: 0 8px 24px rgba(124, 58, 237, 0.18);
	align-items: center;
}

.hbge-sum-card--uk {
	border-color: #c7d2fe;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hbge-sum-card--global {
	border-color: #a7f3d0;
	background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.hbge-sum-ico {
	flex-shrink: 0;
	font-size: 1.65rem;
	line-height: 1;
}

.hbge-sum-card--hero .hbge-sum-ico {
	font-size: 2rem;
}

.hbge-sum-body {
	min-width: 0;
	flex: 1;
}

.hbge-sum-title {
	font-size: 0.72rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b;
	margin-bottom: 0.2rem;
}

.hbge-sum-card--hero .hbge-sum-title {
	color: #6d28d9;
	font-size: 0.78rem;
}

.hbge-sum-value {
	font-size: clamp(1.15rem, 2.6vw, 1.55rem);
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	color: #0f172a;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.hbge-sum-card--hero .hbge-sum-value {
	font-size: clamp(1.45rem, 3.8vw, 2.1rem);
	color: #4c1d95;
}

.hbge-sum-sub {
	margin-top: 0.35rem;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.45;
	color: #64748b;
}

/* Screen-reader copy of the full narrative (also used in CSV / copy flow). */
.hbge-gap.hbge-sr-only {
	font-size: 1px;
	line-height: 1;
}

.hbge-details {
	margin-bottom: 0.5rem;
}

.hbge-details summary {
	cursor: pointer;
	font-weight: 700;
	color: #6d28d9;
}

.hbge-mini {
	font-size: 0.82rem;
	line-height: 1.5;
	color: #4b5563;
	margin: 0.5rem 0 0;
}

.hbge-disclaimer {
	font-size: 0.78rem;
	line-height: 1.5;
	color: #6b7280;
	margin: 0.75rem 0 0;
}

.hbge-disclaimer a {
	color: #5b21b6;
	font-weight: 700;
}

.hbge-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hbge-download {
	margin-top: 1rem;
	padding: 1.1rem 1rem;
	border: 2px solid #7c3aed;
	background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
	border-radius: 14px;
	text-align: center;
}

.hbge-download-title {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	color: #312e81;
	font-weight: 900;
}

.hbge-download-intro {
	margin: 0 auto 0.85rem;
	max-width: 42rem;
	font-size: 0.92rem;
	color: #4338ca;
	line-height: 1.5;
}

.hbge-actions {
	display: flex;
	gap: 0.65rem;
	justify-content: center;
	flex-wrap: wrap;
}

.hbge-btn {
	border: 1px solid #c4b5fd;
	background: #fff;
	color: #1e1b4b;
	padding: 0.65rem 1rem;
	border-radius: 10px;
	cursor: pointer;
	font-weight: 700;
	font-size: 0.94rem;
	font-family: inherit;
}

.hbge-btn-primary {
	background: #7c3aed;
	border-color: #7c3aed;
	color: #fff;
	min-width: 220px;
	padding: 0.72rem 1.1rem;
}

.hbge-btn:hover {
	background: #f5f3ff;
}

.hbge-btn-primary:hover {
	background: #6d28d9;
	border-color: #6d28d9;
}

.hbge-copy-note {
	margin: 0.65rem 0 0;
	font-size: 0.88rem;
	color: #4338ca;
	font-weight: 700;
	min-height: 0;
}

.hbge-copy-note--visible {
	min-height: 1.25em;
}

.hbge-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 16px;
	font-size: 1.02rem;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hbge-modal {
	max-width: 540px;
	width: 100%;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.hbge-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	background: linear-gradient(135deg, #5b21b6 0%, #4c1d95 100%);
	color: #fff;
	padding: 18px;
}

.hbge-modal-titlewrap h3 {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 900;
	line-height: 1.25;
}

.hbge-modal-subtitle {
	margin: 6px 0 0;
	font-size: 0.88rem;
	color: #e9d5ff;
	line-height: 1.45;
}

.hbge-close {
	border: none;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1;
}

.hbge-modal-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hbge-modal-status {
	display: none;
	border-radius: 10px;
	padding: 12px 14px;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.45;
	margin-bottom: 4px;
}

.hbge-modal-status.hbge-modal-status--visible {
	display: block;
}

.hbge-modal-status--info {
	background: #f5f3ff;
	border: 1px solid #c4b5fd;
	color: #4c1d95;
}

.hbge-modal-status--ok {
	background: #ecfdf5;
	border: 1px solid #6ee7b7;
	color: #065f46;
}

.hbge-modal-status--err {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.hbge-label {
	font-size: 0.9rem;
	font-weight: 800;
	color: #312e81;
}

.hbge-input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.55rem 0.65rem;
	border-radius: 10px;
	border: 1px solid #c4b5fd;
	font-size: 1rem;
}

.hbge-snapshot-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 8px;
}

.hbge-snapshot-item {
	border: 1px solid #ddd6fe;
	background: #faf5ff;
	border-radius: 8px;
	padding: 9px 10px;
}

.hbge-snapshot-key {
	font-size: 0.72rem;
	font-weight: 800;
	color: #6b7280;
	text-transform: uppercase;
	margin-bottom: 3px;
}

.hbge-snapshot-value {
	font-size: 0.9rem;
	font-weight: 800;
	color: #312e81;
}

.hbge-trust {
	font-size: 0.88rem;
	background: #f5f3ff;
	border: 1px solid #ddd6fe;
	border-radius: 8px;
	padding: 10px;
	margin-top: 8px;
	color: #3730a3;
	line-height: 1.5;
}

.hbge-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 16px 18px;
	background: #faf5ff;
}

@media (max-width: 640px) {
	.hbge-results-showcase {
		padding: 1rem 0.75rem 1.05rem;
		border-radius: 14px;
	}
	.hbge-kpi-strip {
		grid-template-columns: 1fr;
	}
	.hbge-kpi {
		width: 100%;
		box-sizing: border-box;
	}
	.hbge-actions {
		flex-direction: column;
	}
	.hbge-btn,
	.hbge-btn-primary {
		width: 100%;
		min-width: 0;
	}
	.hbge-snapshot-grid {
		grid-template-columns: 1fr;
	}
	.hbge-modal-footer {
		flex-direction: column;
	}
	.hbge-modal-footer .hbge-btn {
		width: 100%;
	}
}
