/* The charts keep the same scale across all three sample patterns. */
.tt-atlas {
	--atlas-text: #e5f0ef;
	--atlas-soft: #a7beca;
	--atlas-rule: rgba(157, 198, 207, .2);
	--atlas-pad: clamp(16px, 3vw, 28px);
	--atlas-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	position: relative;
	isolation: isolate;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid #3d586a;
	border-radius: 15px;
	color: var(--atlas-text);
	background: linear-gradient(116deg, #203346 0%, #18283a 47%, #152333 100%);
	box-shadow: 0 18px 60px -32px rgba(1, 10, 19, .8), inset 0 1px rgba(220, 247, 235, .04);
	text-align: left;
}
.tt-atlas *,
.tt-atlas *::before,
.tt-atlas *::after { box-sizing: border-box; }
.tt-atlas [hidden] { display: none !important; }
.tt-atlas-head,
.tt-atlas-body,
.tt-atlas-foot { position: relative; }
.tt-atlas-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 52px;
	margin: 0;
	padding: 12px var(--atlas-pad);
	border-bottom: 1px solid var(--atlas-rule);
	background: rgba(32, 49, 66, .64);
}
.tt-atlas-title {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: #e0efeb;
	font-family: inherit;
	font-size: 16px;
	font-weight: 650;
	line-height: 1.25;
	letter-spacing: -.025em;
}
.tt-atlas-title svg { display: block; flex: none; color: #a8d3c7; }
.tt-atlas-sample,
.tt-atlas-window,
.tt-atlas-metric,
.tt-atlas-legend,
.tt-atlas-y,
.tt-atlas-vol-tick,
.tt-atlas-time,
.tt-atlas-control-label,
.tt-atlas-static,
.tt-atlas-change { font-family: var(--atlas-mono); }
.tt-atlas-sample {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	padding: 4px 8px;
	border: 1px solid #465f70;
	border-radius: 99px;
	color: #c5d6da;
	font-size: 10px;
	line-height: 1.25;
	white-space: nowrap;
}
.tt-atlas-sample > span {
	display: inline-block;
	width: 5px;
	height: 5px;
	border: 1px solid #b6d4c9;
	transform: rotate(45deg);
}
.tt-atlas-panel { position: relative; padding: 22px var(--atlas-pad) 17px; }
.tt-atlas-summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 12px; }
.tt-atlas p.tt-atlas-metric {
	margin: 0 0 6px;
	color: var(--atlas-soft);
	font-size: 10px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .105em;
	text-transform: uppercase;
}
.tt-atlas-reading { display: flex; align-items: center; gap: 10px; }
.tt-atlas-reading strong {
	color: var(--atlas-text);
	font-size: clamp(36px, 3.4vw, 48px);
	line-height: .93;
	letter-spacing: -.065em;
	font-weight: 570;
	font-variant-numeric: tabular-nums lining-nums;
}
.tt-atlas-change {
	padding: 4px 6px;
	border: 1px solid rgba(155, 201, 183, .22);
	border-radius: 4px;
	color: #c4e6d7;
	background: rgba(121, 185, 167, .09);
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
}
.tt-atlas-window { color: var(--atlas-soft); text-align: right; font-size: 10px; line-height: 1.3; white-space: nowrap; }
.tt-atlas-chart { --atlas-axis: 31px; padding-right: var(--atlas-axis); }
.tt-atlas-price { position: relative; height: clamp(100px, 10.5vw, 143px); }
.tt-atlas-lines, .tt-atlas-vol svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tt-atlas-lines path, .tt-atlas-lines polyline { fill: none; vector-effect: non-scaling-stroke; }
.tt-atlas-guides { stroke: rgba(150, 182, 197, .13); stroke-width: 1; }
.tt-atlas-baseline { stroke: rgba(164, 199, 211, .23); stroke-dasharray: 2 4; stroke-width: 1; }
.tt-atlas-index-line {
	stroke: #c9ebdc;
	stroke-width: 2.3;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.tt-atlas-mean-line { stroke: #7da9bf; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 3 4; }
.tt-atlas-end {
	position: absolute;
	right: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #d4f3dd;
	box-shadow: 0 0 0 3px rgba(160, 216, 189, .2);
	transform: translate(50%, -50%);
}
.tt-atlas-y {
	position: absolute;
	inset: 0 calc(-1 * var(--atlas-axis)) 0 auto;
	width: var(--atlas-axis);
	color: var(--atlas-soft);
	font-size: 10px;
	line-height: 1;
	text-align: right;
}
.tt-atlas-y span { position: absolute; right: 0; transform: translateY(-50%); }
.tt-atlas-y span:nth-child(1) { top: 9.09%; }
.tt-atlas-y span:nth-child(2) { top: 36.36%; }
.tt-atlas-y span:nth-child(3) { top: 63.64%; }
.tt-atlas-y span:nth-child(4) { top: 90.91%; }
.tt-atlas-vol {
	position: relative;
	height: 25px;
	border-top: 1px solid rgba(156, 199, 213, .1);
	border-bottom: 1px solid rgba(156, 199, 213, .19);
}
.tt-atlas-vol-tick { position: absolute; right: calc(-1 * var(--atlas-axis)); top: 0; color: var(--atlas-soft); font-size: 9px; line-height: 1.1; }
.tt-atlas-time { display: flex; justify-content: space-between; margin-top: 5px; color: var(--atlas-soft); font-size: 10px; line-height: 1.25; }
.tt-atlas-legend { display: flex; flex-wrap: wrap; gap: 7px 16px; margin: 15px 0 0; color: #bccdd2; font-size: 10px; line-height: 1.25; }
.tt-atlas-legend span { display: inline-flex; align-items: center; gap: 5px; }
.tt-atlas-line-key, .tt-atlas-mean-key, .tt-atlas-vol-key { display: inline-block; width: 14px; height: 0; }
.tt-atlas-line-key { border-top: 2px solid #c9ebdc; }
.tt-atlas-mean-key { border-top: 1px dashed #83b2c4; }
.tt-atlas-vol-key { height: 7px; background: linear-gradient(90deg, #7197a6 0 23%, transparent 23% 36%, #7197a6 36% 61%, transparent 61% 73%, #7197a6 73%); clip-path: polygon(0 50%, 36% 50%, 36% 22%, 73% 22%, 73% 0, 100% 0, 100% 100%, 0 100%); }
.tt-atlas-foot { padding: 10px var(--atlas-pad); border-top: 1px solid var(--atlas-rule); background: rgba(18, 30, 45, .32); }
.tt-atlas-controls { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tt-atlas-control-label, .tt-atlas-static { color: var(--atlas-soft); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.tt-atlas-buttons { display: flex; gap: 3px; }
.tt-atlas-buttons button {
	appearance: none;
	display: inline-block;
	min-width: 0;
	margin: 0;
	padding: 6px 10px;
	border: 1px solid transparent;
	border-radius: 4px;
	color: #b4c9d0;
	background: transparent;
	font: 500 11px/1.3 var(--atlas-mono);
	letter-spacing: -.025em;
	cursor: pointer;
}
.tt-atlas-buttons button:hover { color: #edf5f1; background: #2b4053; }
.tt-atlas-buttons button[aria-pressed="true"] { border-color: #557383; color: #def1e9; background: #30495b; }
.tt-atlas-buttons button:focus-visible { outline: 2px solid #cfeae0; outline-offset: 2px; }
@media (max-width: 700px) {
	.tt-atlas { --atlas-pad: clamp(15px, 4vw, 23px); }
	.tt-atlas-price { height: clamp(100px, 24vw, 149px); }
	.tt-atlas-buttons button { min-height: 32px; }
	.tt-atlas-panel { padding-top: 18px; }
}
@media (max-width: 360px) {
	.tt-atlas { --atlas-pad: 13px; }
	.tt-atlas-sample, .tt-atlas-window { font-size: 9px; }
	.tt-atlas-legend { gap: 6px 10px; }
	.tt-atlas-buttons { gap: 1px; }
	.tt-atlas-buttons button { padding-inline: 7px; }
}
@media (prefers-reduced-motion: no-preference) {
	.tt-atlas-panel:not([hidden]) .tt-atlas-index-line { stroke-dasharray: 1; stroke-dashoffset: 0; animation: tt-atlas-trace 950ms cubic-bezier(.17,.65,.25,1) 1 both; }
	@keyframes tt-atlas-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}
.tt-atlas-window { min-width: 13ch; font-variant-numeric: tabular-nums; }
.tt-atlas-price[role="slider"] { cursor: crosshair; touch-action: pan-y pinch-zoom; }
.tt-atlas-price[role="slider"]:focus-visible { outline: 1px solid #93bdbf; outline-offset: 3px; }
.tt-atlas-probe {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--atlas-probe-x);
	width: 0;
	pointer-events: none;
	border-left: 1px dashed rgba(190, 224, 220, .56);
}
.tt-atlas-probe::after {
	content: "";
	position: absolute;
	top: var(--atlas-probe-y);
	left: -1px;
	width: 7px;
	height: 7px;
	border: 1.5px solid #d3efdd;
	border-radius: 50%;
	background: #38596a;
	transform: translate(-50%, -50%);
}
