/* FXT AI specialist chart illustrations.
   All sizes are in container query units (cqw) or % of each component's own
   root box, which fills the old image slot and keeps the image aspect ratio.
   Wireframe px -> cqw factors: market reader 0.22978 (648px slot),
   risk monitor 0.24146 (615px slot). */

/* The replacement .fxt-ai-image is a div: flex `items-start` parents shrink-wrap
   it to zero (the old <img> had intrinsic width), so give it the old slot width. */
div.fxt-ai-image {
	width: 100%;
}

.fxt-ai-art {
	position: relative;
	width: 100%;
	container-type: inline-size;
	overflow: hidden;
	font-family: inherit;
	color: #17233c;
}
.fxt-ai-art *,
.fxt-ai-art *::before,
.fxt-ai-art *::after {
	box-sizing: border-box;
}
.fxt-ai-art p,
.fxt-ai-art ul {
	margin: 0;
	padding: 0;
}
.fxt-ai-art ul {
	list-style: none;
}
.fxt-ai-art svg {
	display: block;
	width: 100%;
	height: auto;
}

.fxt-ai-art-market-reader {
	aspect-ratio: 648 / 599;
}
.fxt-ai-art-risk-monitor {
	aspect-ratio: 615 / 577;
}

/* ---------- Market Reader: momentum card ---------- */

.fxt-momentum-card,
.fxt-gauge-card {
	position: absolute;
	z-index: 1;
	overflow: hidden;
}
.fxt-momentum-card {
	left: 0.328cqw;
	top: 8.333cqw;
	width: 55.077cqw;
	height: 63.575cqw;
	border: 0.129cqw solid #dfe5ed;
	border-radius: 1.55cqw;
	background: #f9fafc;
	padding: 2.584cqw;
	box-shadow: 0 0.571cqw 2.286cqw rgb(9 27 74 / 5%), 0 2.298cqw 6.893cqw rgb(9 27 74 / 6%), 0 5.055cqw 12.638cqw rgb(9 27 74 / 3%), 0.5cqw 1.2cqw 6cqw rgb(69 53 254 / 16%);
}
.fxt-momentum-title {
	font-size: 2.134cqw;
	line-height: 1.5;
	font-weight: 700;
	color: #182238;
	text-transform: uppercase;
}
.fxt-momentum-scale {
	color: #718098;
	font-size: 1.421cqw;
	line-height: 1.5;
}
.fxt-momentum-bars {
	position: absolute;
	left: -0.129cqw;
	top: 7.675cqw;
	width: 100%;
	height: 37.41cqw;
}
.fxt-momentum-row {
	position: absolute;
	top: var(--row-top);
	left: 0;
	width: 61.51cqw;
	height: 2.842cqw;
	display: flex;
	align-items: center;
}
.fxt-momentum-label {
	width: 12.405cqw;
	flex: none;
	text-align: right;
	font-size: 1.292cqw;
	line-height: 1.3;
	color: #718098;
}
.fxt-momentum-bar {
	position: absolute;
	left: 13.306cqw;
	top: 0.517cqw;
	height: 1.809cqw;
	width: var(--bar-width);
	background: var(--bar-color);
	border-radius: 0.258cqw;
}
.fxt-momentum-reading {
	position: absolute;
	left: calc(14.081cqw + var(--bar-width));
	top: 0.646cqw;
	font-size: 1.163cqw;
	line-height: 1.4;
	color: #718098;
}
.fxt-momentum-ticks span {
	position: absolute;
	top: 35.019cqw;
	font-size: 1.163cqw;
	line-height: 1.4;
	color: #a2aec2;
}
.fxt-momentum-threshold {
	position: absolute;
	top: 2.139cqw;
	height: 34.5cqw;
	width: 0.129cqw;
	background: currentColor;
}
.fxt-momentum-threshold span {
	position: absolute;
	left: -0.646cqw;
	top: -1.68cqw;
	font-size: 1.163cqw;
	line-height: 1.4;
}
.fxt-threshold-30 { left: 25.876cqw; color: #00b889; }
.fxt-threshold-70 { left: 42.63cqw;  color: #ff3159; }
.fxt-momentum-note {
	position: absolute;
	left: 2.397cqw;
	top: 47.6cqw;
	width: 49.35cqw;
	font-size: 1.55cqw;
	line-height: 1.5;
	color: #718098;
}

/* ---------- Market Reader: gauge card ---------- */

.fxt-gauge-card {
	left: 23.65cqw;
	top: 15.5cqw;
	width: 55.077cqw;
	height: 63.715cqw;
	background: #fff;
	border: 0.286cqw solid #dde4ee;
	border-radius: 2.286cqw;
	padding: 3.142cqw;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.714cqw;
	box-shadow: 0 0.571cqw 2.285cqw rgb(9 27 74 / 9.4%), 0 2.757cqw 7.353cqw rgb(9 27 74 / 6%), 0 5.974cqw 13.787cqw rgb(9 27 74 / 3%), 0.5cqw 1.2cqw 6cqw rgb(69 53 254 / 16%);
}
.fxt-gauge-title {
	font-size: 2.629cqw;
	font-weight: 700;
	line-height: 1.3;
}
.fxt-gauge {
	position: relative;
	flex: none;
	width: 43.998cqw;
	height: 39.424cqw;
	overflow: hidden;
}
.fxt-gauge-trend,
.fxt-gauge-weak,
.fxt-gauge-trendless,
.fxt-gauge-needle,
.fxt-gauge-pivot {
	position: absolute;
	display: block;
}
.fxt-gauge-trend { left: 16.553cqw; top: 2.286cqw; width: 26.48cqw; }
.fxt-gauge-weak { left: 6.363cqw; top: 3.002cqw; width: 11.117cqw; }
.fxt-gauge-trendless { left: 0.96cqw; top: 9.247cqw; width: 8.062cqw; }
.fxt-gauge-needle {
	left: 11.776cqw;
	top: 14.769cqw;
	width: 10.224cqw;
	height: 7.158cqw;
	display: flex;
	align-items: center;
	justify-content: center;
}
.fxt-gauge-needle > span {
	position: relative;
	width: 12.48cqw;
	height: 0;
	flex: none;
	transform: rotate(-145deg);
}
.fxt-gauge-needle svg {
	position: absolute;
	left: 0;
	top: -0.713cqw;
}
.fxt-gauge-pivot { left: 20.573cqw; top: 20.5cqw; width: 2.853cqw; }
.fxt-gauge-value {
	position: absolute;
	left: 50%;
	top: 22.966cqw;
	transform: translateX(-50%);
	width: 17.83cqw;
	text-align: center;
	font-size: 4.992cqw;
	line-height: 1.2;
	font-weight: 700;
	color: #17233c;
}
.fxt-gauge-period {
	position: absolute;
	left: 50%;
	top: 30.814cqw;
	transform: translateX(-50%);
	width: 25.673cqw;
	text-align: center;
	font-size: 1.783cqw;
	line-height: 1.4;
	color: #6e7d9a;
}
.fxt-gauge-legend {
	display: flex;
	flex-direction: column;
	gap: 1.23cqw;
	font-size: 1.967cqw;
	line-height: 1.35;
}
.fxt-gauge-legend-0 { color: #6e7d9a; }
.fxt-gauge-legend-1 { color: #f3a719; }
.fxt-gauge-legend-2 { color: #f04444; }

/* ---------- Risk Monitor: shared profile card ---------- */

.fxt-profile-card {
	position: absolute;
	z-index: 1;
	width: 57.883cqw;
	border: 0.291cqw solid #dde3ec;
	border-radius: 2.327cqw;
	background: #fff;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.454cqw;
	padding: 3.49cqw;
	overflow: hidden;
}
.fxt-profile-head {
	display: flex;
	flex-direction: column;
	gap: 0.873cqw;
	width: 100%;
	flex: none;
}
.fxt-profile-title {
	font-size: 2.909cqw;
	line-height: 1.2;
	font-weight: 700;
	color: #18243b;
}
.fxt-profile-sub {
	font-size: 1.891cqw;
	line-height: 1.35;
	color: #71809b;
}

/* ---------- Risk Monitor: payoff card ---------- */

.fxt-payoff-card {
	left: 0.325cqw;
	top: 8.7805cqw;
	height: 64.282cqw;
	box-shadow: 0 0.582cqw 2.327cqw rgb(10 23 61 / 7%), 0 2.898cqw 7.727cqw rgb(10 23 61 / 5%), 0 5.795cqw 13.522cqw rgb(10 23 61 / 2.5%), 0.5cqw 1.2cqw 6cqw rgb(69 53 254 / 16%);
}
.fxt-payoff-chart {
	position: relative;
	width: 50.612cqw;
	height: 45.969cqw;
	flex: none;
}
.fxt-payoff-column {
	position: absolute;
	top: 0;
	width: 8.145cqw;
	height: 100%;
}
.fxt-payoff-bar {
	position: absolute;
	left: 1.163cqw;
	top: var(--payoff-bar-top);
	width: 5.235cqw;
	height: var(--payoff-bar-height);
	border-radius: 0.582cqw 0.582cqw 0 0;
	background: var(--payoff-color);
}
.fxt-payoff-value {
	position: absolute;
	top: var(--payoff-value-top);
	left: 0;
	width: 100%;
	text-align: center;
	color: #18243b;
	font-size: 1.6cqw;
	line-height: 1.4;
}
.fxt-payoff-label {
	position: absolute;
	top: 44.508cqw;
	left: 0;
	width: 100%;
	text-align: center;
	color: #71809b;
	font-size: 1.513cqw;
	line-height: 1.3;
}
.fxt-payoff-currency {
	position: absolute;
	right: 0.29cqw;
	top: 0;
	color: #71809b;
	font-size: 1.6cqw;
	line-height: 1.4;
}
.fxt-payoff-grid {
	position: absolute;
	left: 1.746cqw;
	width: 43.633cqw;
	height: 0.29cqw;
	background: #e7ecf2;
	pointer-events: none;
}

/* ---------- Risk Monitor: structure card ---------- */

.fxt-structure-card {
	left: 25.618cqw;
	top: 15.205cqw;
	height: 64.606cqw;
	border-width: 0.292cqw;
	border-radius: 2.339cqw;
	padding: 3.508cqw;
	gap: 1.462cqw;
	box-shadow: 0 0.585cqw 2.339cqw rgb(10 23 61 / 7%), 0 2.898cqw 7.727cqw rgb(10 23 61 / 6%), 0 6.278cqw 14.488cqw rgb(10 23 61 / 3%), 0.5cqw 1.2cqw 6cqw rgb(69 53 254 / 16%);
}
.fxt-structure-card .fxt-profile-head { gap: 0.877cqw; }
.fxt-structure-chart {
	position: relative;
	width: 49.694cqw;
	height: 46.191cqw;
	flex: none;
}
.fxt-structure-grid {
	position: absolute;
	top: 2.046cqw;
	width: 0.292cqw;
	height: 39.762cqw;
	background: #e7ecf2;
	pointer-events: none;
}
.fxt-structure-row {
	position: absolute;
	left: 0;
	width: 50.865cqw;
	height: 7.601cqw;
}
.fxt-structure-label {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 24.264cqw;
	text-align: right;
	font-size: 1.608cqw;
	line-height: 1.35;
	color: #71809b;
}
.fxt-structure-bar {
	position: absolute;
	left: 25.769cqw;
	top: var(--metric-bar-top);
	width: var(--metric-width);
	height: 5.553cqw;
	border-radius: 0.585cqw;
	background: var(--metric-color);
}
.fxt-structure-bar > span {
	position: absolute;
	right: 0.966cqw;
	top: 50%;
	transform: translateY(-50%);
	color: #18243b;
	font-size: 1.608cqw;
	line-height: 1.35;
	white-space: nowrap;
}
.fxt-structure-ticks {
	position: absolute;
	left: 24.266cqw;
	top: 44.146cqw;
	width: 26.603cqw;
	display: flex;
	justify-content: space-around;
	font-size: 1.462cqw;
	line-height: 1.4;
	color: #71809b;
}

/* ---------- Trade Mentor: report cards ---------- */

.fxt-ai-art-trade-mentor {
	aspect-ratio: 610 / 571;
}
.fxt-report-card {
	position: absolute;
	z-index: 1;
	width: 58.346cqw;
	height: 63.051cqw;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3.058cqw;
	padding: 3.671cqw;
	border: 0.306cqw solid #dde3ec;
	border-radius: 2.447cqw;
	background: #fff;
	color: #18243b;
	overflow: hidden;
}
.fxt-report-card-1 {
	left: 0.328cqw;
	top: 8.852cqw;
	box-shadow: 0 0.612cqw 2.447cqw rgb(10 23 61 / 7%), 0 2.921cqw 7.79cqw rgb(10 23 61 / 5%), 0 5.843cqw 13.633cqw rgb(10 23 61 / 2.5%), 0.5cqw 1.2cqw 6cqw rgb(69 53 254 / 16%);
}
.fxt-report-card-2 {
	left: 25.037cqw;
	top: 16.445cqw;
	box-shadow: 0 0.612cqw 1.223cqw rgb(10 23 61 / 7%), 0 2.921cqw 7.79cqw rgb(10 23 61 / 6%), 0 6.329cqw 14.606cqw rgb(10 23 61 / 3%), 0.5cqw 1.2cqw 6cqw rgb(69 53 254 / 16%);
}
.fxt-report-title {
	width: 100%;
	font-size: 3.058cqw;
	line-height: 1.2;
	font-weight: 700;
	flex: none;
}
.fxt-report-finding {
	display: flex;
	align-items: stretch;
	gap: 2.447cqw;
	width: 100%;
	flex: none;
}
.fxt-report-finding::before {
	content: "";
	display: block;
	flex: 0 0 0.612cqw;
	min-height: 13.153cqw;
	border-radius: 999px;
	background: var(--finding-accent);
}
.fxt-report-finding-copy {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.918cqw;
}
.fxt-report-finding-title {
	font-weight: 700;
	font-size: 2.233cqw;
	line-height: 1.25;
	color: #18243b;
}
.fxt-report-finding-text {
	font-size: 1.988cqw;
	line-height: 1.35;
	color: #71809b;
}

/* Zero-width metric bar: park the value label just right of the axis origin. */
.fxt-structure-bar.is-zero > span {
	right: auto;
	left: 0.966cqw;
}
