.ebh-calculator {
	--ebh-primary: #0f766e;
	--ebh-primary-dark: #115e59;
	--ebh-text: #172126;
	--ebh-muted: #65737c;
	--ebh-border: #d9e2e7;
	--ebh-surface: #ffffff;
	--ebh-soft: #f5f8f8;
	--ebh-accent: #b45309;
	--ebh-danger: #b42318;
	--ebh-shadow: 0 12px 30px rgba(18, 38, 49, 0.10);
	color: var(--ebh-text);
	font-family: inherit;
	margin: 24px 0;
}

.ebh-calculator * {
	box-sizing: border-box;
	letter-spacing: 0;
}

.ebh-theme-dark {
	--ebh-text: #edf6f4;
	--ebh-muted: #b9c9c6;
	--ebh-border: #31514e;
	--ebh-surface: #142321;
	--ebh-soft: #0f1b19;
	--ebh-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.ebh-shell {
	background: var(--ebh-surface);
	border: 1px solid var(--ebh-border);
	border-radius: 8px;
	box-shadow: var(--ebh-shadow);
	overflow: hidden;
}

.ebh-header {
	align-items: flex-start;
	background: linear-gradient(135deg, rgba(15, 118, 110, 0.10), rgba(180, 83, 9, 0.08));
	display: flex;
	gap: 16px;
	justify-content: space-between;
	padding: 22px;
}

.ebh-currency-picker {
	display: flex;
	flex: 0 0 150px;
	flex-direction: column;
	gap: 6px;
}

.ebh-currency-picker span {
	color: var(--ebh-muted);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.ebh-currency-picker select {
	background: var(--ebh-surface);
	border: 1px solid var(--ebh-border);
	border-radius: 8px;
	color: var(--ebh-text);
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	min-height: 42px;
	padding: 8px 10px;
	width: 100%;
}

.ebh-eyebrow {
	color: var(--ebh-primary);
	font-size: 12px;
	font-weight: 700;
	margin: 0 0 6px;
	text-transform: uppercase;
}

.ebh-header h2,
.ebh-panel-intro h3,
.ebh-result-head h3 {
	color: var(--ebh-text);
	line-height: 1.2;
	margin: 0;
}

.ebh-header h2 {
	font-size: 24px;
}

.ebh-header p,
.ebh-panel-intro p {
	color: var(--ebh-muted);
	font-size: 15px;
	line-height: 1.55;
	margin: 8px 0 0;
	max-width: 780px;
}

.ebh-tabs {
	background: var(--ebh-soft);
	border-bottom: 1px solid var(--ebh-border);
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding: 10px;
}

.ebh-tab {
	appearance: none;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 8px;
	color: var(--ebh-muted);
	cursor: pointer;
	flex: 0 0 auto;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	min-height: 38px;
	padding: 8px 12px;
	white-space: nowrap;
}

.ebh-tab.is-active {
	background: var(--ebh-surface);
	border-color: var(--ebh-border);
	color: var(--ebh-primary);
}

.ebh-panel {
	display: none;
	padding: 20px;
}

.ebh-panel.is-active {
	display: block;
}

.ebh-panel-intro {
	margin-bottom: 18px;
}

.ebh-panel-intro h3,
.ebh-result-head h3 {
	font-size: 19px;
}

.ebh-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr;
}

.ebh-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

.ebh-field span,
.ebh-checkbox span {
	color: var(--ebh-text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

.ebh-field em {
	color: var(--ebh-danger);
	font-style: normal;
}

.ebh-field input,
.ebh-field select {
	background: var(--ebh-surface);
	border: 1px solid var(--ebh-border);
	border-radius: 8px;
	color: var(--ebh-text);
	font: inherit;
	font-size: 16px;
	min-height: 46px;
	outline: none;
	padding: 10px 12px;
	width: 100%;
}

.ebh-money-wrap {
	position: relative;
}

.ebh-money-wrap input {
	padding-right: 76px;
}

.ebh-money-unit {
	align-items: center;
	background: var(--ebh-soft);
	border: 1px solid var(--ebh-border);
	border-radius: 6px;
	color: var(--ebh-muted);
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	min-height: 30px;
	padding: 4px 8px;
	position: absolute;
	right: 8px;
	top: 8px;
}

.ebh-help {
	color: var(--ebh-muted);
	display: block;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.45;
}

.ebh-field input:focus,
.ebh-field select:focus {
	border-color: var(--ebh-primary);
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.ebh-checkbox {
	align-items: flex-start;
	background: var(--ebh-soft);
	border: 1px solid var(--ebh-border);
	border-radius: 8px;
	display: flex;
	gap: 10px;
	min-height: 46px;
	padding: 12px;
}

.ebh-checkbox input {
	accent-color: var(--ebh-primary);
	flex: 0 0 auto;
	margin-top: 2px;
}

.ebh-checkbox-full {
	margin-top: 12px;
}

.ebh-form-actions,
.ebh-share-actions,
.ebh-admin-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.ebh-button {
	align-items: center;
	appearance: none;
	background: var(--ebh-surface);
	border: 1px solid var(--ebh-border);
	border-radius: 8px;
	color: var(--ebh-text);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	justify-content: center;
	line-height: 1.2;
	min-height: 42px;
	padding: 10px 14px;
	text-decoration: none;
}

.ebh-button:hover,
.ebh-button:focus {
	border-color: var(--ebh-primary);
	color: var(--ebh-primary);
}

.ebh-button-primary {
	background: var(--ebh-primary);
	border-color: var(--ebh-primary);
	color: #ffffff;
}

.ebh-button-primary:hover,
.ebh-button-primary:focus {
	background: var(--ebh-primary-dark);
	border-color: var(--ebh-primary-dark);
	color: #ffffff;
}

.ebh-button:disabled {
	cursor: wait;
	opacity: 0.65;
}

.ebh-form-error {
	color: var(--ebh-danger);
	font-size: 13px;
	font-weight: 700;
	margin: 0;
	min-height: 18px;
}

.ebh-result {
	border-top: 1px solid var(--ebh-border);
	margin-top: 22px;
	padding-top: 20px;
}

.ebh-result-head {
	align-items: flex-start;
	display: flex;
	justify-content: space-between;
	margin-bottom: 14px;
}

.ebh-advisor-card {
	background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(14, 165, 233, 0.06));
	border: 1px solid var(--ebh-border);
	border-left: 4px solid var(--ebh-primary);
	border-radius: 8px;
	margin-bottom: 14px;
	padding: 13px 15px;
}

.ebh-advisor-card span {
	color: var(--ebh-muted);
	display: block;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0;
	margin-bottom: 4px;
	text-transform: uppercase;
}

.ebh-advisor-card strong {
	color: var(--ebh-text);
	display: block;
	font-size: 17px;
	font-weight: 900;
	line-height: 1.2;
}

.ebh-advisor-card p,
.ebh-advisor-card small {
	color: var(--ebh-muted);
	display: block;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.45;
	margin: 5px 0 0;
}

.ebh-visual {
	margin-bottom: 14px;
}

.ebh-profit-gauge {
	--ebh-score: 50;
	--ebh-gauge-color: #b45309;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.50)),
		var(--ebh-soft);
	border: 1px solid var(--ebh-border);
	border-radius: 8px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70), 0 10px 28px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	padding: 18px;
	position: relative;
}

.ebh-profit-gauge::before {
	background: var(--ebh-gauge-color);
	content: "";
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 4px;
}

.ebh-theme-dark .ebh-profit-gauge {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
		var(--ebh-soft);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ebh-profit-gauge.ebh-tone-excellent,
.ebh-profit-gauge.ebh-tone-good {
	--ebh-gauge-color: #16803f;
}

.ebh-profit-gauge.ebh-tone-watch {
	--ebh-gauge-color: #b7791f;
}

.ebh-profit-gauge.ebh-tone-weak {
	--ebh-gauge-color: #c05621;
}

.ebh-profit-gauge.ebh-tone-danger {
	--ebh-gauge-color: #b42318;
}

.ebh-gauge-top {
	align-items: center;
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr auto;
	margin-bottom: 14px;
}

.ebh-gauge-hero {
	align-items: center;
	display: grid;
	gap: 18px;
	grid-template-columns: 1fr auto;
	margin-bottom: 16px;
	position: relative;
	z-index: 1;
}

.ebh-profit-copy {
	min-width: 0;
}

.ebh-profit-copy span {
	color: var(--ebh-muted);
	display: block;
	font-size: 12px;
	font-weight: 800;
	margin-bottom: 5px;
	text-transform: uppercase;
}

.ebh-profit-copy strong {
	color: var(--ebh-gauge-color);
	font-size: 28px;
	line-height: 1.1;
}

.ebh-gauge-title-row {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ebh-gauge-title-row em {
	background: rgba(15, 118, 110, 0.10);
	background: color-mix(in srgb, var(--ebh-gauge-color) 12%, transparent);
	border: 1px solid rgba(15, 118, 110, 0.28);
	border-color: color-mix(in srgb, var(--ebh-gauge-color) 34%, transparent);
	border-radius: 999px;
	color: var(--ebh-gauge-color);
	font-size: 12px;
	font-style: normal;
	font-weight: 900;
	line-height: 1;
	padding: 7px 10px;
	text-transform: uppercase;
}

.ebh-profit-copy p {
	color: var(--ebh-text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
	margin: 8px 0 0;
	max-width: 760px;
}

.ebh-score-ring {
	align-items: center;
	background:
		radial-gradient(circle at center, var(--ebh-surface) 0 53%, transparent 54%),
		conic-gradient(var(--ebh-gauge-color) calc(var(--ebh-score) * 1%), rgba(100, 116, 139, 0.20) 0);
	border-radius: 50%;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
	display: flex;
	flex-direction: column;
	height: 104px;
	justify-content: center;
	width: 104px;
}

.ebh-score-ring small {
	color: var(--ebh-muted);
	font-size: 10px;
	font-weight: 900;
	line-height: 1.1;
	text-transform: uppercase;
}

.ebh-score-ring strong {
	color: var(--ebh-text);
	font-size: 30px;
	line-height: 1;
}

.ebh-score-ring span {
	color: var(--ebh-muted);
	font-size: 11px;
	font-weight: 900;
	line-height: 1.1;
}

.ebh-gauge-stats {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-bottom: 20px;
	position: relative;
	z-index: 1;
}

.ebh-gauge-stat {
	background: var(--ebh-surface);
	border: 1px solid var(--ebh-border);
	border-radius: 8px;
	min-height: 82px;
	padding: 12px 14px;
}

.ebh-gauge-stat span {
	color: var(--ebh-muted);
	display: block;
	font-size: 11px;
	font-weight: 900;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.ebh-gauge-stat strong {
	color: var(--ebh-text);
	display: block;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.15;
	overflow-wrap: anywhere;
}

.ebh-gauge-stat-primary {
	background: rgba(15, 118, 110, 0.07);
	background: color-mix(in srgb, var(--ebh-gauge-color) 8%, var(--ebh-surface));
	border-color: rgba(15, 118, 110, 0.24);
	border-color: color-mix(in srgb, var(--ebh-gauge-color) 28%, var(--ebh-border));
}

.ebh-gauge-stat-primary strong {
	color: var(--ebh-gauge-color);
	font-size: 24px;
}

.ebh-gauge-number {
	align-items: center;
	background: var(--ebh-surface);
	border: 1px solid var(--ebh-border);
	border-radius: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	justify-content: space-between;
	margin-bottom: 18px;
	padding: 12px 14px;
}

.ebh-gauge-number span {
	color: var(--ebh-muted);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.ebh-gauge-number strong {
	color: var(--ebh-text);
	font-size: 22px;
	font-weight: 900;
	line-height: 1.1;
	overflow-wrap: anywhere;
	text-align: right;
}

.ebh-profit-track {
	background: linear-gradient(90deg, #b42318 0%, #d97706 38%, #eab308 55%, #16a34a 100%);
	border-radius: 999px;
	height: 18px;
	position: relative;
}

.ebh-gauge-track-shell {
	background: rgba(255, 255, 255, 0.52);
	border: 1px solid var(--ebh-border);
	border-radius: 8px;
	padding: 18px 12px 12px;
	position: relative;
	z-index: 1;
}

.ebh-theme-dark .ebh-gauge-track-shell {
	background: rgba(255, 255, 255, 0.04);
}

.ebh-profit-track::before,
.ebh-profit-track::after {
	background: rgba(255, 255, 255, 0.82);
	content: "";
	height: 22px;
	position: absolute;
	top: -3px;
	width: 2px;
	z-index: 1;
}

.ebh-profit-track::before {
	left: 40%;
}

.ebh-profit-track::after {
	left: 70%;
}

.ebh-profit-track i {
	background: rgba(255, 255, 255, 0.86);
	border-radius: 999px;
	display: block;
	height: 6px;
	left: 5px;
	position: absolute;
	right: 5px;
	top: 5px;
}

.ebh-profit-track b {
	background: var(--ebh-surface);
	border: 3px solid var(--ebh-gauge-color);
	border-radius: 999px;
	box-shadow: 0 3px 10px rgba(15, 23, 42, 0.22);
	display: flex;
	height: 36px;
	align-items: center;
	justify-content: center;
	left: calc(var(--ebh-score) * 1%);
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 36px;
	z-index: 2;
}

.ebh-profit-track b::after {
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 8px solid var(--ebh-gauge-color);
	content: "";
	left: 9px;
	position: absolute;
	top: 29px;
}

.ebh-profit-track b span {
	color: var(--ebh-text);
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
}

.ebh-profit-scale {
	color: var(--ebh-muted);
	display: flex;
	font-size: 11px;
	font-weight: 800;
	justify-content: space-between;
	margin-top: 16px;
	text-transform: uppercase;
}

.ebh-profit-scale span {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ebh-profit-scale span:nth-child(2) {
	text-align: center;
}

.ebh-profit-scale span:nth-child(3) {
	text-align: right;
}

.ebh-profit-scale b {
	color: var(--ebh-text);
	font-size: 12px;
}

.ebh-metrics {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr;
	margin-bottom: 14px;
}

.ebh-metric {
	background: var(--ebh-soft);
	border: 1px solid var(--ebh-border);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 84px;
	padding: 14px;
}

.ebh-metric span {
	color: var(--ebh-muted);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.ebh-metric strong {
	color: var(--ebh-text);
	font-size: 20px;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.ebh-metric-score {
	background: rgba(15, 118, 110, 0.12);
	border-color: rgba(15, 118, 110, 0.34);
}

.ebh-commentary {
	background: rgba(180, 83, 9, 0.08);
	border: 1px solid rgba(180, 83, 9, 0.24);
	border-radius: 8px;
	margin-bottom: 14px;
	padding: 14px;
}

.ebh-commentary strong,
.ebh-lists strong {
	display: block;
	font-size: 14px;
	margin-bottom: 6px;
}

.ebh-commentary p {
	color: var(--ebh-text);
	line-height: 1.55;
	margin: 0;
}

.ebh-lists {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr;
	margin-bottom: 14px;
}

.ebh-lists div {
	background: var(--ebh-surface);
	border: 1px solid var(--ebh-border);
	border-radius: 8px;
	padding: 14px;
}

.ebh-lists ul {
	margin: 0;
	padding-left: 18px;
}

.ebh-lists li {
	line-height: 1.45;
	margin: 4px 0;
}

.ebh-disclaimer {
	color: var(--ebh-muted);
	font-size: 12px;
	line-height: 1.5;
	margin: 0 0 14px;
}

.ebh-lead-form {
	background: var(--ebh-soft);
	border: 1px solid var(--ebh-border);
	border-radius: 8px;
	margin-top: 16px;
	padding: 14px;
}

.ebh-lead-copy {
	margin-bottom: 12px;
}

.ebh-lead-copy strong {
	color: var(--ebh-text);
	font-size: 15px;
}

.ebh-powered {
	align-items: center;
	border-top: 1px solid var(--ebh-border);
	color: var(--ebh-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 12px;
	gap: 6px;
	margin-top: 16px;
	padding-top: 12px;
}

.ebh-powered a {
	color: var(--ebh-primary);
	font-weight: 800;
	text-decoration: none;
}

.ebh-powered a:hover,
.ebh-powered a:focus {
	text-decoration: underline;
}

@media (min-width: 720px) {
	.ebh-header {
		padding: 26px;
	}

	.ebh-panel {
		padding: 24px;
	}

	.ebh-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ebh-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ebh-lists {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ebh-checkbox {
		align-self: end;
	}
}

@media (max-width: 520px) {
	.ebh-gauge-top,
	.ebh-gauge-hero {
		grid-template-columns: 1fr;
	}

	.ebh-score-ring {
		height: 78px;
		width: 78px;
	}

	.ebh-score-ring strong {
		font-size: 24px;
	}

	.ebh-gauge-number {
		align-items: flex-start;
		flex-direction: column;
	}

	.ebh-gauge-number strong {
		text-align: left;
	}

	.ebh-profit-copy strong {
		font-size: 24px;
	}
}

@media (max-width: 719px) {
	.ebh-header {
		flex-direction: column;
	}

	.ebh-currency-picker {
		flex: 0 0 auto;
		width: 100%;
	}

	.ebh-gauge-stats {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 1040px) {
	.ebh-metrics {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
