/* Theme shell: chart UI (MARKET95_CHART)
   Keep styling generic so any provider can reuse it. */

.m95-chart {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 0;
	min-width: 0;
	height: 100%;
	flex: 1 1 auto;
}

.m95-chart__select {
	color-scheme: dark;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	border: 1px solid rgba(255,255,255,.12);
	background-color: rgba(12, 17, 26, .78);
	color: var(--text);
	border-radius: 12px;
	padding: 8px 34px 8px 12px;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0,0,0,.18);
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
	background-image:
		linear-gradient(45deg, transparent 50%, rgba(231,238,247,.65) 50%),
		linear-gradient(135deg, rgba(231,238,247,.65) 50%, transparent 50%);
	background-position:
		calc(100% - 16px) 50%,
		calc(100% - 11px) 50%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
}

.m95-chart__select:hover {
	border-color: rgba(185, 147, 255, .35);
	background-color: rgba(12, 17, 26, .88);
}

.m95-chart__select:focus {
	outline: none;
	border-color: rgba(185, 147, 255, .55);
	box-shadow: 0 0 0 3px rgba(185, 147, 255, .18), 0 8px 20px rgba(0,0,0,.18);
}

.m95-chart__select option {
	background-color: rgba(12, 17, 26, .98);
	color: var(--text);
}

@media (forced-colors: active) {
	.m95-chart__select {
		forced-color-adjust: auto;
		background-color: Canvas;
		color: CanvasText;
		border-color: CanvasText;
		box-shadow: none;
		background-image: none;
	}
}

.m95-chart__priceRow {
	display: flex;
	align-items: center;
	gap: 10px;
}

.m95-chart__priceRow .badge {
	margin-left: 0;
}

.m95-chart__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	min-width: 0;
	padding: 2px 2px 0;
}

.m95-chart__stats {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 140px;
}

.m95-chart__price {
	font-weight: 900;
	font-size: 18px;
	line-height: 1.1;
	letter-spacing: 0.2px;
}

.m95-chart__change {
	font-size: 12px;
	color: var(--muted);
}

.m95-chart__change.is-up {
	color: rgba(47, 214, 125, 0.95);
}

.m95-chart__change.is-down {
	color: rgba(255, 77, 94, 0.95);
}

.m95-chart__controls {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.m95-chart__seg {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: rgba(255,255,255,.02);
	box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

.m95-chart__ranges {
	max-width: min(720px, 100%);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
}

.m95-chart__ranges::-webkit-scrollbar {
	height: 6px;
}

.m95-chart__ranges::-webkit-scrollbar-thumb {
	background: rgba(255,255,255,.12);
	border-radius: 10px;
}

.m95-chart__btn {
	border: 1px solid rgba(255,255,255,.10);
	background: rgba(255,255,255,.02);
	color: var(--muted);
	padding: 6px 10px;
	border-radius: 10px;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, transform .05s ease, color .15s ease;
	white-space: nowrap;
	font-size: 12px;
	line-height: 1;
}

.m95-chart__btn:hover {
	background: rgba(255,255,255,.04);
	border-color: rgba(185, 147, 255, .35);
	color: var(--text);
}

.m95-chart__btn:active {
	transform: translateY(1px);
}

.m95-chart__btn.active {
	background: rgba(185, 147, 255, .18);
	border-color: rgba(185, 147, 255, .55);
	color: var(--text);
}

.m95-chart__wrap {
	position: relative;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: rgba(255,255,255,.01);
	overflow: hidden;
	min-height: 0;
	min-width: 0;
	flex: 1 1 auto;
}

.m95-chart__host {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 180px;
	min-width: 0;
}

.m95-chart__overlay {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 16px;
	color: var(--muted);
	background: linear-gradient(to bottom, rgba(11,15,20,.60), rgba(11,15,20,.35));
	text-align: center;
	font-size: 13px;
	line-height: 1.25;
}

.m95-chart__tip {
	position: absolute;
	pointer-events: none;
	transform: translate(-50%, -110%);
	padding: 8px 10px;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,.10);
	background: rgba(15, 22, 32, 0.92);
	backdrop-filter: blur(10px);
	color: var(--text);
	font-size: 12px;
	line-height: 1.25;
	box-shadow: 0 12px 30px rgba(0,0,0,.35);
	white-space: nowrap;
}
