#mf-market-bar {
	--quote-row-height: clamp(56px, 3.5vw, 68px);
}
#mf-market-bar .mf-indices-flipper {
	position: relative;
	flex: 0 0 clamp(122px, 17vw, 195px);
	height: var(--quote-row-height);
	cursor: pointer;
	border-inline-end: 1px solid #566041;
	background: linear-gradient(120deg, #273a29, #14291f);
}
#mf-market-bar .mf-flip-card {
	position: absolute;
	inset: 0;
	display: none;
	align-content: center;
	gap: 3px;
	padding-inline: clamp(10px, 1.1vw, 16px);
}
#mf-market-bar .mf-flip-card.is-active { display: grid; }
#mf-market-bar :is(.mf-flip-head, .mf-flip-title-wrap, .mf-ticker-head, .mf-flip-dots) {
	display: flex;
	align-items: baseline;
	gap: 7px;
	white-space: nowrap;
}
#mf-market-bar .mf-flip-head { justify-content: space-between; align-items: center; }
#mf-market-bar .mf-flip-dots { gap: 4px; }
#mf-market-bar .mf-flip-dot { width: 5px; height: 5px; border-radius: 50%; background: #627163; }
#mf-market-bar .mf-flip-dot.is-active { background: #e6ca94; }
#mf-market-bar .mf-market-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	align-self: center;
	background: #ff7368;
	box-shadow: 0 0 0 3px #ff73682e;
}
#mf-market-bar .mf-market-status-dot.is-open { background: #51d78a; box-shadow: 0 0 0 3px #51d78a30; }
#mf-market-bar :is(.mf-flip-label, .mf-ticker-sym) {
	color: #e1e5dc;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .025em;
	line-height: 1.28;
}
#mf-market-bar .mf-flip-label { color: #ebcc8d; font-size: 12px; letter-spacing: .065em; }
#mf-market-bar :is(.mf-flip-chg, .mf-ticker-change) { color: #d2dbd1; font-size: 12px; font-weight: 650; }
#mf-market-bar :is(.mf-flip-chg, .mf-ticker-change).is-up { color: #64d69a; }
#mf-market-bar :is(.mf-flip-chg, .mf-ticker-change).is-down { color: #ff8c81; }
#mf-market-bar :is(.mf-flip-val, .mf-ticker-price) {
	color: #fcfaf5;
	font-size: 16px;
	font-weight: 650;
	line-height: 1.3;
	font-variant-numeric: tabular-nums;
}
#mf-market-bar .mf-ticker-item {
	display: grid;
	align-content: center;
	justify-items: start;
	flex: none;
	gap: 2px;
	min-width: clamp(144px, 9vw, 176px);
	min-height: var(--quote-row-height);
	padding: 4px clamp(16px, 1.3vw, 25px);
	border-inline-end: 1px solid #2e4034;
	cursor: pointer;
}
#mf-market-bar .mf-ticker-item:is(:hover, :focus-visible) { background: #233d2e; }
#mf-market-bar .mfx-ticker:has([data-mf-ticker-static]) { overflow-x: auto; scrollbar-width: thin; }
#mf-market-bar [data-mf-ticker-static] > [aria-hidden="true"] { display: none; }
#mf-market-bar :is(.mf-indices-flipper, .mf-ticker-item, .mfx-ticker):focus-visible { outline: 2px solid #dfc086; outline-offset: -3px; }

#mf-quote-modal-dialog {
	--quote-ink: #172237;
	--quote-muted: #50617a;
	--quote-line: #dbe2ec;
	--quote-paper: #f7f9fc;
	width: min(660px, calc(100% - 20px));
	max-height: calc(100dvh - 24px);
	margin: auto;
	padding: 0;
	overflow: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--quote-line);
	border-top: 3px solid #ba965e;
	border-radius: 20px;
	background: white;
	color: var(--quote-ink);
	box-shadow: 0 24px 80px #0b211e54;
}
#mf-quote-modal-dialog::backdrop { background: rgb(12 29 30 / 72%); }
.mf-quote-card {
	display: grid;
	gap: clamp(18px, 3vw, 32px);
	padding: clamp(18px, 3vw, 26px);
}
.mf-quote-header, .mf-range-labels-row, .mf-chart-header, .mf-quote-price-strip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.mf-quote-header { align-items: flex-start; }
.mf-quote-title {
	margin: 8px 0;
	color: var(--quote-ink);
	font-family: Georgia, serif;
	font-size: clamp(23px, 3vw, 28px);
	font-weight: 600;
	line-height: 1.2;
}
.mf-quote-close {
	display: grid;
	flex: 0 0 44px;
	height: 44px;
	place-items: center;
	border: 1px solid var(--quote-line);
	border-radius: 50%;
	background: var(--quote-paper);
	color: var(--quote-muted);
	cursor: pointer;
}
.mf-quote-close:hover { background: #eaf0f5; }
.mf-quote-tags-row, .mf-quote-links-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; }
.mf-quote-tags-row { color: var(--quote-muted); font-size: 12px; }
.mf-quote-badge, .mf-quote-sublink {
	padding: 3px 8px;
	border: 1px solid #b8d8c9;
	border-radius: 5px;
	color: #17633f;
	background: #f2f8f5;
	font-size: 12px;
	line-height: 1.45;
}
.mf-quote-badge { background: #e5f3eb; font-weight: 700; letter-spacing: .055em; }
.mf-quote-sublink:hover { border-color: #367d59; text-decoration: underline; }
.mf-quote-price-strip, .mf-quote-chart-container, .mf-metric-cell {
	padding: 14px 16px;
	border: 1px solid var(--quote-line);
	border-radius: 12px;
	background: var(--quote-paper);
}
.mf-quote-price-strip { flex-wrap: wrap; gap: 14px 22px; font-variant-numeric: tabular-nums; }
.mf-quote-price-row { color: var(--quote-ink); font-size: clamp(25px, 4vw, 30px); font-weight: 700; line-height: 1.15; }
.mf-quote-currency { color: var(--quote-muted); font-size: .77em; }
.mf-quote-change-pill { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; padding: 2px 8px; border-radius: 99px; font-size: 13px; line-height: 1.4; color: var(--quote-muted); }
.mf-quote-change-pill.is-up { background: #e8f7ee; color: #116240; }
.mf-quote-change-pill.is-down { background: #fceeea; color: #99392c; }
.mf-quote-range-card { flex: 1 1 172px; min-width: 0; }
.mf-range-side, .mf-chart-title-wrap, .mf-metric-cell { display: grid; gap: 3px; }
.mf-range-side.is-right { text-align: right; }
.mf-range-label, .mf-metric-title, .mf-chart-title {
	color: var(--quote-muted);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: .035em;
	text-transform: uppercase;
}
.mf-range-value { font-size: 13px; font-weight: 650; }
.mf-range-slider-track { position: relative; height: 6px; margin-top: 6px; border-radius: 3px; background: #dfe6ef; }
.mf-range-slider-fill { height: 100%; border-radius: inherit; background: #16a372; }
.mf-range-slider-thumb { position: absolute; top: -3px; width: 12px; height: 12px; transform: translateX(-50%); border: 2px solid white; border-radius: 50%; background: #1c7251; box-shadow: 0 1px 4px #213d313b; }
.mf-quote-chart-container { padding: 16px; background: white; }
.mf-chart-header { flex-wrap: wrap; color: var(--quote-muted); font-size: 12px; }
.mf-chart-title-wrap { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.mf-chart-title { color: #274463; font-size: 12px; }
.mf-quote-canvas { width: 100%; height: clamp(125px, 18vh, 160px); }
.mf-quote-metrics-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.mf-metric-cell { align-content: start; padding: 9px 12px; }
.mf-metric-val { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mf-quote-footer { display: grid; gap: 12px; padding-top: 12px; border-top: 1px solid var(--quote-line); }
.mf-quote-disclaimer { margin: 0; color: var(--quote-muted); font-size: 12px; line-height: 1.5; }
.mf-quote-actions .mf-btn-gold-gradient {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 99px;
	background: linear-gradient(110deg,#f2dfaf,#c29c53);
	color: #192d23;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .045em;
	text-transform: uppercase;
}
#mf-quote-modal-dialog :is(a,button):focus-visible { outline: 2px solid #246447; outline-offset: 2px; }
@media (max-width: 520px) {
	#mf-market-bar .mf-flip-dots { display: none; }
	.mf-quote-card { gap: 18px; }
}
.mf-quote-metrics-grid[hidden], .mf-quote-range-card[hidden] { display: none; }
#mf-market-bar :is(.mf-ticker-change, .mf-flip-chg).is-unavailable { display: none; }
#mf-quote-modal-dialog[aria-busy="true"] :is(.mf-quote-metrics-grid, .mf-quote-range-card, .mf-quote-chart-container, .mf-quote-change-pill) { display: none; }
