.tbt-edge-finder {
	--ef-bg: #020713;
	--ef-panel: #071121;
	--ef-panel-2: #0b172a;
	--ef-ink: #f7f9fd;
	--ef-muted: #9daabd;
	--ef-gold: #f4d77d;
	--ef-gold-2: #d8aa38;
	--ef-blue: #2d6cff;
	--ef-green: #50d890;
	--ef-red: #ff6b79;
	margin: 0;
	background: var(--ef-bg);
	color: var(--ef-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tbt-edge-finder *,
.tbt-edge-finder *::before,
.tbt-edge-finder *::after {
	box-sizing: border-box;
}

.tbt-ef-shell {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
	padding: 32px 0 56px;
}

.tbt-ef-hero,
.tbt-ef-report-header {
	position: relative;
	overflow: hidden;
	padding: clamp(28px, 6vw, 72px);
	border: 1px solid rgba(216, 170, 56, 0.28);
	border-radius: 26px;
	background:
		radial-gradient(circle at 86% 8%, rgba(45, 108, 255, 0.23), transparent 34%),
		radial-gradient(circle at 8% 100%, rgba(216, 170, 56, 0.12), transparent 32%),
		linear-gradient(145deg, rgba(9, 20, 39, 0.99), rgba(2, 7, 19, 0.99));
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.tbt-ef-topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: clamp(38px, 6vw, 76px);
}

.tbt-ef-topline > p,
.tbt-ef-eyebrow {
	margin: 0;
	color: var(--ef-gold);
	font-size: 0.78rem;
	font-weight: 850;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.tbt-ef-languages {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: rgba(1, 6, 16, 0.55);
}

.tbt-ef-languages button {
	min-width: 43px;
	padding: 8px 11px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ef-muted);
	font: inherit;
	font-size: 0.76rem;
	font-weight: 850;
	cursor: pointer;
}

.tbt-ef-languages button[aria-pressed="true"] {
	background: linear-gradient(135deg, var(--ef-gold), var(--ef-gold-2));
	color: #071121;
}

.tbt-ef-hero h1,
.tbt-ef-report-header h1 {
	max-width: 920px;
	margin: 14px 0 20px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.7rem, 7vw, 6.25rem);
	font-weight: 500;
	letter-spacing: -0.05em;
	line-height: 0.98;
}

.tbt-ef-lede {
	max-width: 760px;
	margin: 0;
	color: #c1cbda;
	font-size: clamp(1rem, 2vw, 1.3rem);
	line-height: 1.65;
}

.tbt-ef-weekly {
	display: inline-flex;
	margin: 18px 0 4px;
	padding: 8px 13px;
	border: 1px solid rgba(230, 187, 79, 0.58);
	border-radius: 999px;
	background: rgba(230, 187, 79, 0.11);
	color: #f4d675;
	font-size: 0.75rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	line-height: 1.35;
	text-transform: uppercase;
}

.tbt-ef-sample-invite {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px;
	align-items: center;
	max-width: 850px;
	margin-top: 30px;
	padding: 22px 24px;
	border: 1px solid rgba(230, 187, 79, 0.5);
	border-radius: 18px;
	background: linear-gradient(125deg, rgba(230, 187, 79, 0.14), rgba(18, 70, 145, 0.17));
	box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
	color: #fff;
	text-decoration: none !important;
}

.tbt-ef-sample-copy { display: grid; gap: 6px; }
.tbt-ef-sample-kicker,
.tbt-ef-upload-intro {
	color: #f4d675;
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}
.tbt-ef-sample-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 500; line-height: 1.15; }
.tbt-ef-sample-copy small { color: #c1cbda; font-size: 0.94rem; line-height: 1.5; }
.tbt-ef-sample-open { white-space: nowrap; padding: 11px 16px; border-radius: 999px; background: linear-gradient(135deg, var(--ef-gold), var(--ef-gold-2)); color: #071121; font-size: 0.8rem; font-weight: 850; }
.tbt-ef-sample-invite:hover { border-color: rgba(244, 214, 117, 0.92); transform: translateY(-1px); }
.tbt-ef-upload-intro { margin: 30px 0 0; }

.tbt-ef-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.tbt-ef-upload,
.tbt-ef-primary,
.tbt-ef-secondary {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 0.92rem;
	font-weight: 850;
	text-decoration: none !important;
	cursor: pointer;
}

.tbt-ef-domain-notice {
	grid-column: 1 / -1;
	max-width: 720px;
	margin: -4px 0 0;
	color: #aeb9ca;
	font-size: 0.84rem;
	line-height: 1.55;
}

.tbt-ef-upload,
.tbt-ef-primary {
	background: linear-gradient(135deg, var(--ef-gold), var(--ef-gold-2));
	box-shadow: 0 12px 28px rgba(216, 170, 56, 0.2);
	color: #071121;
}

.tbt-ef-upload input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

.tbt-ef-secondary {
	border-color: rgba(255, 255, 255, 0.14);
	background: rgba(2, 7, 19, 0.62);
	color: #fff;
}

.tbt-ef-privacy {
	margin: 16px 0 0;
	color: var(--ef-muted);
	font-size: 0.86rem;
}

.tbt-ef-format-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 18px 0 0;
}

.tbt-ef-format-grid article {
	display: flex;
	min-height: 116px;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
	padding: 22px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	background: linear-gradient(145deg, rgba(9, 20, 39, 0.97), rgba(4, 10, 23, 0.97));
}

.tbt-ef-format-grid strong {
	color: var(--ef-gold);
	font-size: 0.82rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tbt-ef-format-grid span {
	color: var(--ef-muted);
	font-size: 0.92rem;
	line-height: 1.5;
}

.tbt-ef-status:not(:empty) {
	margin-top: 18px;
	padding: 14px 16px;
	border: 1px solid rgba(244, 215, 125, 0.25);
	border-radius: 12px;
	background: rgba(216, 170, 56, 0.08);
	color: #e9edf5;
}

.tbt-ef-mapper {
	margin-top: 22px;
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	background: var(--ef-panel);
}

.tbt-ef-section-heading p {
	margin: 0 0 10px;
	color: var(--ef-gold);
	font-size: 0.76rem;
	font-weight: 850;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tbt-ef-section-heading h2 {
	margin: 0 0 8px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.8rem, 4vw, 3rem);
	font-weight: 500;
}

.tbt-ef-section-heading p:last-child {
	max-width: 760px;
	color: var(--ef-muted);
	font-size: 0.95rem;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.6;
	text-transform: none;
}

.tbt-ef-mapping-fields {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 22px 0;
}

.tbt-ef-mapping-fields label {
	display: flex;
	flex-direction: column;
	gap: 7px;
	color: #d7deea;
	font-size: 0.82rem;
	font-weight: 750;
}

.tbt-ef-mapping-fields select {
	width: 100%;
	padding: 11px 34px 11px 12px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 9px;
	background: #030a17;
	color: #fff;
	font: inherit;
}

.tbt-ef-report-mount:not(:empty) {
	margin-top: 24px;
}

.tbt-ef-report-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 28px;
	align-items: end;
}

.tbt-ef-report-header .tbt-ef-topline {
	grid-column: 1 / -1;
	margin-bottom: 18px;
}

.tbt-ef-report-header h1 {
	font-size: clamp(2.5rem, 6vw, 5.2rem);
}

.tbt-ef-report {
	display: grid;
	gap: 18px;
}

.tbt-ef-report-banner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px;
	align-items: center;
	padding: clamp(24px, 4vw, 42px);
	border: 1px solid rgba(216, 170, 56, 0.28);
	border-radius: 22px;
	background:
		radial-gradient(circle at 90% 10%, rgba(45, 108, 255, 0.18), transparent 42%),
		linear-gradient(145deg, #0a1629, #040a17);
}

.tbt-ef-report-banner h2 {
	margin: 8px 0 10px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 4.8vw, 4rem);
	font-weight: 500;
	letter-spacing: -0.035em;
}

.tbt-ef-report-banner p {
	max-width: 760px;
	margin: 0;
	color: #b7c2d2;
	line-height: 1.65;
}

.tbt-ef-report-banner .tbt-ef-limit-note {
	margin-top: 10px;
	color: var(--ef-gold);
	font-size: 0.82rem;
	font-weight: 750;
}

.tbt-ef-confidence {
	display: grid;
	width: 132px;
	height: 132px;
	place-items: center;
	border: 1px solid rgba(244, 215, 125, 0.35);
	border-radius: 50%;
	background: rgba(216, 170, 56, 0.07);
	text-align: center;
}

.tbt-ef-confidence strong {
	display: block;
	color: var(--ef-gold);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2.15rem;
	font-weight: 500;
}

.tbt-ef-confidence span {
	display: block;
	max-width: 88px;
	color: var(--ef-muted);
	font-size: 0.68rem;
	font-weight: 850;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.tbt-ef-kpis {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
}

.tbt-ef-kpi,
.tbt-ef-chart-card,
.tbt-ef-insight,
.tbt-ef-plan {
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 17px;
	background: linear-gradient(145deg, rgba(9, 20, 39, 0.98), rgba(3, 9, 20, 0.98));
}

.tbt-ef-kpi {
	padding: 18px;
}

.tbt-ef-kpi span,
.tbt-ef-card-label {
	display: block;
	margin-bottom: 8px;
	color: var(--ef-muted);
	font-size: 0.7rem;
	font-weight: 850;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tbt-ef-kpi strong {
	display: block;
	font-size: clamp(1.25rem, 2.4vw, 2rem);
	font-weight: 750;
}

.tbt-ef-positive { color: var(--ef-green); }
.tbt-ef-negative { color: var(--ef-red); }

.tbt-ef-chart-grid,
.tbt-ef-insight-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.tbt-ef-chart-card,
.tbt-ef-insight,
.tbt-ef-plan {
	padding: clamp(22px, 3vw, 34px);
}

.tbt-ef-chart-card h3,
.tbt-ef-insight h3,
.tbt-ef-plan h3 {
	margin: 0 0 8px;
	font-size: clamp(1.2rem, 2.5vw, 1.65rem);
}

.tbt-ef-chart-card > p,
.tbt-ef-insight > p,
.tbt-ef-plan > p {
	margin: 0;
	color: var(--ef-muted);
	line-height: 1.65;
}

.tbt-ef-equity {
	width: 100%;
	height: 240px;
	margin-top: 20px;
	overflow: visible;
}

.tbt-ef-equity-grid line {
	stroke: rgba(255, 255, 255, 0.08);
	stroke-width: 1;
}

.tbt-ef-equity-area { fill: url(#tbtEfArea); }
.tbt-ef-equity-line { fill: none; stroke: var(--ef-gold); stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }

.tbt-ef-bars {
	display: grid;
	gap: 14px;
	margin-top: 22px;
}

.tbt-ef-bar-row {
	display: grid;
	grid-template-columns: minmax(95px, 0.8fr) minmax(120px, 2fr) auto;
	gap: 12px;
	align-items: center;
}

.tbt-ef-bar-row > span {
	overflow: hidden;
	color: #dce2eb;
	font-size: 0.85rem;
	font-weight: 750;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tbt-ef-bar-track {
	height: 10px;
	overflow: hidden;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.08);
}

.tbt-ef-bar-fill {
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--ef-gold-2), var(--ef-gold));
}

.tbt-ef-bar-fill.is-negative {
	background: linear-gradient(90deg, #b7324f, var(--ef-red));
}

.tbt-ef-bar-row strong {
	min-width: 70px;
	font-size: 0.86rem;
	text-align: right;
}

.tbt-ef-insight {
	position: relative;
	overflow: hidden;
}

.tbt-ef-insight::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: var(--ef-blue);
	content: "";
}

.tbt-ef-insight.is-edge::before { background: var(--ef-gold); }
.tbt-ef-insight.is-leak::before { background: var(--ef-red); }
.tbt-ef-insight.is-hidden::before { background: var(--ef-green); }

.tbt-ef-plan {
	border-color: rgba(216, 170, 56, 0.28);
	background:
		radial-gradient(circle at 100% 0%, rgba(216, 170, 56, 0.12), transparent 40%),
		linear-gradient(145deg, rgba(10, 22, 42, 0.99), rgba(3, 9, 20, 0.99));
}

.tbt-ef-plan ol {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: edge-plan;
}

.tbt-ef-plan li {
	min-height: 132px;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 13px;
	background: rgba(2, 7, 18, 0.54);
	color: #dce2eb;
	line-height: 1.55;
	counter-increment: edge-plan;
}

.tbt-ef-plan li::before {
	display: block;
	margin-bottom: 12px;
	color: var(--ef-gold);
	content: "0" counter(edge-plan);
	font-size: 0.74rem;
	font-weight: 900;
	letter-spacing: 0.12em;
}

.tbt-ef-method {
	padding: 18px 22px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	color: var(--ef-muted);
	font-size: 0.86rem;
	line-height: 1.6;
}

.tbt-ef-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
}

@media (max-width: 820px) {
	.tbt-ef-shell { width: min(100% - 20px, 1180px); padding-top: 18px; }
	.tbt-ef-hero, .tbt-ef-report-header { padding: 24px 20px; border-radius: 20px; }
	.tbt-ef-topline { align-items: flex-start; flex-direction: column; margin-bottom: 40px; }
	.tbt-ef-format-grid, .tbt-ef-mapping-fields, .tbt-ef-kpis, .tbt-ef-chart-grid, .tbt-ef-insight-grid, .tbt-ef-plan ol { grid-template-columns: 1fr; }
	.tbt-ef-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tbt-ef-report-header { grid-template-columns: 1fr; align-items: start; }
	.tbt-ef-report-banner { grid-template-columns: 1fr; }
	.tbt-ef-confidence { width: 112px; height: 112px; }
	.tbt-ef-bar-row { grid-template-columns: 90px minmax(90px, 1fr) auto; gap: 8px; }
}

@media (max-width: 480px) {
	.tbt-ef-kpis { grid-template-columns: 1fr; }
	.tbt-ef-actions { align-items: stretch; flex-direction: column; }
	.tbt-ef-upload, .tbt-ef-secondary { width: 100%; }
	.tbt-ef-sample-invite { grid-template-columns: 1fr; gap: 16px; padding: 19px; }
	.tbt-ef-sample-open { text-align: center; }
}
