:root {
  --market-bg: #0b1423;
  --market-header: #111d2ff2;
  --market-surface: #142135;
  --market-panel: #18283d;
  --market-tint: #1c2e45;
  --market-hover: #253b55;
  --market-edge: #364c67;
  --market-rule: #2a3c54;
  --market-text: #e8f0fb;
  --market-strong: #f7faff;
  --market-muted: #b2c2d6;
  --market-accent: #99d3fc;
  --market-accent-strong: #d4eeff;
  --market-accent-fill: #213d57;
  --market-focus: #a4ddff;
  --market-gold: #ffda94;
  --market-gold-title: #ffedc8;
  --market-gold-muted: #e3cda6;
  --market-gold-bg: #2c241c;
  --market-gold-tint: #3e3224;
  --market-gold-hover: #483925;
  --market-gold-edge: #745a37;
  --market-rise: #a0ebce;
  --market-rise-bg: #1c4039;
  --market-rise-tint: #1b765837;
  --market-fall: #ffb2b9;
  --market-fall-bg: #4b2c3b;
  --market-fall-tint: #9d43503b;
  --market-hero: linear-gradient(135deg, #1e3a59, #16283f 57%, #142236);
  --market-gold-hero: linear-gradient(145deg, #403222, #2c241c 68%);
  --market-glow-one: #1b497775;
  --market-glow-two: #24536659;
  --market-glow-three: #34456b4d;
  --market-grid: #93bfe214;
  --market-shadow: 0 10px 28px #03081431;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --market-bg: #eef4fa;
  --market-header: #ffffffed;
  --market-surface: #ffffff;
  --market-panel: #f5f9fd;
  --market-tint: #e8f0fa;
  --market-hover: #dce9f7;
  --market-edge: #b7c9df;
  --market-rule: #d6e2ef;
  --market-text: #20364c;
  --market-strong: #142c44;
  --market-muted: #4d637b;
  --market-accent: #20598c;
  --market-accent-strong: #194a77;
  --market-accent-fill: #deedf9;
  --market-focus: #23689c;
  --market-gold: #765018;
  --market-gold-title: #5f3d12;
  --market-gold-muted: #795929;
  --market-gold-bg: #fff8eb;
  --market-gold-tint: #f8e9cb;
  --market-gold-hover: #f4e3bd;
  --market-gold-edge: #d3b276;
  --market-rise: #176144;
  --market-rise-bg: #d9eee2;
  --market-rise-tint: #87c9a748;
  --market-fall: #8e3044;
  --market-fall-bg: #f8e4e7;
  --market-fall-tint: #dd929f41;
  --market-hero: linear-gradient(135deg, #e4f1fc, #f3f8fd 60%, #f9fcff);
  --market-gold-hero: linear-gradient(145deg, #faedcf, #fff9ed 68%);
  --market-glow-one: #add0f6b3;
  --market-glow-two: #acd9df85;
  --market-glow-three: #c1cbee7a;
  --market-grid: #416e9f19;
  --market-shadow: 0 9px 24px #36587d14;
  color-scheme: light;
}
:root:has(.market-home, .market-reading) { background: var(--market-bg); }
:is(.market-home, .market-reading) {
  --page: var(--market-bg);
  --surface: var(--market-surface);
  --ink: var(--market-text);
  --ink-strong: var(--market-strong);
  --muted: var(--market-muted);
  --green: var(--market-accent);
  --green-dark: var(--market-accent-strong);
  --green-light: var(--market-accent-fill);
  --line: var(--market-edge);
  --lime: var(--market-accent);
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--page);
  color: var(--ink);
}
:is(.market-home, .market-reading) :focus-visible { outline-color: var(--market-focus); }
:is(.market-home, .market-reading) .skip-link { color: var(--market-strong); background: var(--market-accent-fill); }
:is(.market-home, .market-reading) .page-width { width: min(1450px, calc(100% - clamp(32px, 7vw, 110px))); margin-inline: auto; }

.market-atmosphere { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.market-atmosphere::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 19%, var(--market-bg) 92%); }
.ambient-glow { position: absolute; width: 68vw; height: 68vh; border-radius: 50%; }
.ambient-glow--one { inset: -31vh auto auto -16vw; background: radial-gradient(ellipse, var(--market-glow-one), transparent 72%); animation: souq-aurora-one 34s ease-in-out infinite alternate; }
.ambient-glow--two { inset: -22vh -21vw auto auto; background: radial-gradient(ellipse, var(--market-glow-two), transparent 73%); animation: souq-aurora-two 38s ease-in-out infinite alternate; }
.ambient-glow--three { inset: 21vh auto auto 21vw; background: radial-gradient(ellipse, var(--market-glow-three), transparent 71%); animation: souq-aurora-three 42s ease-in-out infinite alternate; }
.ambient-grid {
  position: absolute;
  inset: -45px 0 18%;
  opacity: .42;
  background-image: linear-gradient(var(--market-grid) 1px, transparent 1px), linear-gradient(90deg, var(--market-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 6%, #0008 43%, transparent 85%);
  animation: souq-grid-drift 44s linear infinite;
}
.ambient-orbit { display: none; }
.market-reading .market-atmosphere { opacity: .68; }
@keyframes souq-aurora-one { to { transform: translate(12vw, 8vh) scale(1.1); } }
@keyframes souq-aurora-two { to { transform: translate(-9vw, 10vh) scale(1.13); } }
@keyframes souq-aurora-three { to { transform: translate(8vw, -9vh) scale(1.08); } }
@keyframes souq-grid-drift { to { transform: translateY(44px); } }
@keyframes souq-trend-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes souq-chevron-drift {
  0%, 100% { opacity: .11; transform: translateY(0) rotate(var(--direction-angle)); }
  50% { opacity: .23; transform: translateY(var(--direction-offset)) rotate(var(--direction-angle)); }
}

:is(.market-home, .market-reading) .site-header { background: var(--market-header); border-color: var(--market-rule); backdrop-filter: blur(14px); }
:is(.market-home, .market-reading) .header-content { min-height: 66px; gap: 15px; }
:is(.market-home, .market-reading) .brand-mark { width: 41px; height: 41px; color: #d0eeff; background: linear-gradient(140deg, #235284, #173b62); box-shadow: inset 0 0 0 1px #8bc0ee61; }
:is(.market-home, .market-reading) .brand-mark .icon { width: 33px; height: 33px; }
:is(.market-home, .market-reading) .brand-text strong { color: var(--market-strong); font-size: 21px; }
:is(.market-home, .market-reading) .brand-text small { color: var(--market-muted); }
:is(.market-home, .market-reading) .nav-link { color: var(--market-muted); font-size: 14px; }
:is(.market-home, .market-reading) .nav-link:is(:hover, .is-active, [aria-current]) { color: var(--market-strong); background: var(--market-tint); }
.market-home .dashboard-nav .dashboard-guides-link { color: var(--market-accent-strong); border-color: var(--market-edge); background: var(--market-accent-fill); }
.market-home .dashboard-nav .dashboard-guides-link:hover { background: var(--market-hover); }
:is(.market-home, .market-reading) .header-actions { align-items: center; flex-shrink: 0; gap: 7px; min-width: 0; }
:is(.market-home, .market-reading) .icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--market-edge);
  border-radius: 10px;
  color: var(--market-accent-strong);
  background: var(--market-panel);
  transition: background .18s ease, border-color .18s ease;
}
:is(.market-home, .market-reading) .icon-button:hover { color: var(--market-strong); border-color: var(--market-accent); background: var(--market-accent-fill); }
:is(.market-home, .market-reading) .icon-button .icon { width: 19px; height: 19px; }
:is(.market-home, .market-reading) .icon-button[hidden], .icon-button [hidden] { display: none !important; }
html[data-motion='paused'] :is(.market-home, .market-reading) .icon-button#motion-toggle { color: var(--market-gold); border-color: var(--market-gold-edge); background: var(--market-gold-bg); }
:is(.market-home, .market-reading) .icon-button#telegram-link { color: var(--market-accent); }
:is(.market-home, .market-reading) .icon-button[aria-disabled='true'] { opacity: .6; cursor: default; }

.market-home .intro { padding-block: 30px 26px; gap: 24px; }
.market-home .intro .eyebrow, .hero-market-line { color: var(--market-accent); }
.market-home .eyebrow-line { background: var(--market-accent); }
.market-home .intro h1 { margin-block: 5px 4px; font-size: clamp(29px, 3.5vw, 46px); }
.market-home .intro-copy { max-width: 66ch; color: var(--market-muted); font-size: 15px; }
.market-home .market-control { width: min(100%, 390px); }
.market-home .market-caption { align-items: baseline; flex-wrap: wrap; }
.market-home .market-caption label { color: var(--market-strong); font-size: 13px; }
.market-home .market-badge { color: var(--market-accent); font-size: 12px; }
.market-home .market-badge::before { background: var(--market-accent); box-shadow: none; }
.market-home .market-flag { color: var(--market-accent); }
.market-home .market-input select, .market-home .locate-button, .country-trigger { min-height: 46px; color: var(--market-strong); border: 1px solid var(--market-edge); border-radius: 10px; background: var(--market-surface); }
.market-home .market-input select { padding-inline: 41px 35px; }
.market-home .market-input option { color: var(--market-strong); background: var(--market-surface); }
.market-home .locate-button, .market-home .market-control .freshness { color: var(--market-accent); }
.market-home .locate-button:is(:hover, [aria-pressed='true']), .country-trigger:hover, .country-trigger[aria-expanded='true'] { border-color: var(--market-accent); background: var(--market-accent-fill); }
.market-home .market-control .freshness { margin-block-start: 7px; max-width: none; color: var(--market-muted); font-size: 12px; }
.market-home #market-refresh { color: var(--market-accent-strong); background: var(--market-accent-fill); }
.market-home #market-refresh:hover { background: var(--market-hover); }
.country-picker { min-width: 0; position: relative; }
.market-input .select-chevron[hidden], .market-input .market-flag[hidden], .market-home .market-input select[hidden], .country-options[hidden] { display: none; }
.country-trigger { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 11px; text-align: start; }
.country-trigger-label, .country-option-label { flex: 1; min-width: 0; color: var(--market-strong); font-size: 14px; line-height: 1.55; font-weight: 700; overflow-wrap: anywhere; }
.country-trigger-chevron { width: 17px; height: 17px; flex: 0 0 auto; color: var(--market-accent); }
.country-trigger[aria-expanded='true'] .country-trigger-chevron { transform: rotate(180deg); }
.country-flag { display: block; width: 22px; height: 22px; flex: 0 0 auto; }
.country-options {
  position: absolute;
  inset-block-start: calc(100% + 6px);
  inset-inline-start: 0;
  z-index: 20;
  width: 100%;
  max-height: min(350px, 52vh);
  overflow-y: auto;
  padding: 5px;
  border: 1px solid var(--market-edge);
  border-radius: 12px;
  background: var(--market-surface);
  box-shadow: var(--market-shadow);
  scrollbar-color: var(--market-edge) var(--market-surface);
}
.country-option { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 42px; padding: 6px 9px; border: 0; border-radius: 7px; color: var(--market-text); background: transparent; text-align: start; }
.country-option:is(:hover, :focus-visible, [aria-selected='true']) { background: var(--market-accent-fill); }
.country-option:focus-visible { outline-offset: -2px; }
.country-option[aria-selected='true']::after { content: '✓'; color: var(--market-accent); font-weight: 800; }

.market-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: 'hero currencies' 'gold currencies';
  grid-template-rows: max-content minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 2vw, 24px);
  margin-block: 4px 22px;
}
.market-stage > * { min-width: 0; }
.dollar-hero {
  grid-area: hero;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(20px, 2.35vw, 34px);
  border: 1px solid var(--market-edge);
  border-radius: 18px;
  background: var(--market-hero);
  box-shadow: var(--market-shadow);
}
.dollar-hero[data-direction='up'] { --direction-angle: 45deg; --direction-offset: -9px; --direction-color: var(--market-rise); --direction-tint: var(--market-rise-tint); }
.dollar-hero[data-direction='down'] { --direction-angle: 225deg; --direction-offset: 9px; --direction-color: var(--market-fall); --direction-tint: var(--market-fall-tint); }
.hero-direction-overlay { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: 0; }
.dollar-hero:is([data-direction='up'], [data-direction='down']) .hero-direction-overlay { opacity: 1; color: var(--direction-color); background: radial-gradient(ellipse at 50% 120%, var(--direction-tint), transparent 72%), linear-gradient(110deg, var(--direction-tint), transparent 55%); }
.direction-chevron { position: absolute; width: 67px; height: 67px; border: solid currentColor; border-width: 7px 0 0 7px; border-radius: 3px; opacity: .14; transform: rotate(var(--direction-angle, 45deg)); }
.dollar-hero:is([data-direction='up'], [data-direction='down']) .direction-chevron { animation: souq-chevron-drift 6.8s var(--direction-delay, 0s) ease-in-out infinite; }
.direction-chevron:nth-child(1) { inset-inline-end: 12%; inset-block-start: 18%; }
.direction-chevron:nth-child(2) { --direction-delay: -.7s; inset-inline-end: 24%; inset-block-start: 32%; width: 45px; height: 45px; border-width: 5px 0 0 5px; }
.direction-chevron:nth-child(3) { --direction-delay: -1.3s; inset-inline-end: 6%; inset-block-start: 46%; width: 33px; height: 33px; border-width: 4px 0 0 4px; }
.hero-market-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; line-height: 1.6; font-weight: 750; }
.hero-market-line .icon { width: 16px; height: 16px; }
.hero-pulse { display: inline-block; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--direction-color, var(--market-accent)); box-shadow: 0 0 0 3px var(--market-accent-fill); }
.hero-country { display: inline-flex; align-items: center; gap: 5px 7px; flex-wrap: wrap; padding: 2px 9px; border: 1px solid var(--market-edge); border-radius: 12px; color: var(--market-strong); background: var(--market-panel); }
.hero-country .country-flag { width: 16px; height: 16px; }
#hero-country-flag:empty { display: none; }
.hero-headline { display: flex; align-items: center; gap: 12px; margin-block-start: 10px; }
.hero-dollar-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--market-edge); border-radius: 11px; color: var(--market-accent-strong); background: var(--market-accent-fill); font: 800 26px/1 var(--numeric); }
.hero-pair { margin: 0 0 2px; color: var(--market-strong); font-size: clamp(23px, 2.45vw, 38px); font-weight: 850; line-height: 1.32; text-wrap: balance; }
.hero-caption { max-width: 65ch; color: var(--market-muted); font-size: 14px; line-height: 1.6; }
.hero-quote { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; width: fit-content; max-width: 100%; margin-block: 14px 5px; position: relative; z-index: 1; }
#hero-rate { color: var(--market-strong); font: 800 clamp(44px, 5.75vw, 88px)/1.06 var(--numeric); font-variant-numeric: tabular-nums; letter-spacing: -.052em; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; transition: text-shadow .24s ease; }
#hero-rate.is-updating { text-shadow: 0 0 20px var(--market-accent-fill); }
#hero-quote-currency { color: var(--market-accent); font: 750 clamp(14px, 1.6vw, 20px)/1.25 var(--numeric); direction: ltr; unicode-bidi: isolate; }
.hero-observation, .hero-source { position: relative; z-index: 1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; color: var(--market-muted); font-size: 13px; line-height: 1.6; }
.hero-observation { min-height: 24px; margin-block-end: 3px; }
.hero-change { padding: 2px 7px; border-radius: 5px; color: var(--market-muted); background: var(--market-tint); font-weight: 800; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.hero-change[data-direction='up'] { color: var(--market-rise); background: var(--market-rise-bg); }
.hero-change[data-direction='down'] { color: var(--market-fall); background: var(--market-fall-bg); }
.hero-change:empty { display: none; }
.hero-source a { color: var(--market-accent); text-decoration: underline; text-underline-offset: 3px; }
.hero-source a:hover { color: var(--market-strong); }
#hero-observed:is([data-status='stale'], [data-status='unavailable']) { color: var(--market-gold); }
.hero-sparkline { position: absolute; inset-block-start: 111px; right: 19px; z-index: 0; width: min(36%, 254px); height: 92px; overflow: visible; opacity: .7; pointer-events: none; mask-image: linear-gradient(90deg, transparent, #000 24%); }
[dir='rtl'] .hero-sparkline { left: 19px; right: auto; mask-image: linear-gradient(270deg, transparent, #000 24%); }
.hero-trend-area { fill: var(--market-accent); fill-opacity: .14; }
.hero-trend-line { stroke: var(--direction-color, var(--market-accent)); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero-trend-line[pathLength='1'] { stroke-dasharray: 1; animation: souq-trend-draw 1.3s ease-out both; }

.currency-rail { grid-area: currencies; align-self: start; }
.gold-panel { grid-area: gold; }
.market-home :is(.table-panel, .tools-panel) { border-color: var(--market-edge); background: var(--market-surface); box-shadow: var(--market-shadow); }
.market-home .table-heading { padding: 18px 19px; gap: 12px; }
.market-home .tool-icon { width: 42px; height: 42px; color: var(--market-accent-strong); background: var(--market-accent-fill); }
.market-home .tool-eyebrow { color: var(--market-accent); font-size: 12px; }
.market-home :is(.table-heading, .tool-header) h2 { color: var(--market-strong); font-size: clamp(21px, 2vw, 27px); }
.market-home .table-panel table { table-layout: auto; font-size: 15px; font-variant-numeric: tabular-nums; }
.market-home .table-panel :is(th, td) { padding-block: 11px; padding-inline: 14px; line-height: 1.55; }
.market-home .table-panel :is(th, td):first-child { padding-inline-start: 19px; }
.market-home .table-panel :is(th, td):last-child { padding-inline-end: 19px; }
.market-home .table-panel :is(th, td):not(:first-child) { text-align: center; }
.market-home .table-panel thead th { color: var(--market-accent-strong); background: var(--market-tint); font-size: 13px; white-space: normal; }
.market-home .table-panel :is(tbody th, td) { border-bottom-color: var(--market-rule); }
.market-home .table-panel tbody tr:nth-child(even) { background: var(--market-panel); }
.market-home .table-panel tbody tr:hover { background: var(--market-hover); }
.market-home .table-panel .number { color: var(--market-strong); }
.market-home .rate-identity { flex-wrap: wrap; gap: 4px 8px; }
.market-home .rate-label { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 3px 7px; }
.market-home .rate-code { color: var(--market-accent-strong); background: var(--market-accent-fill); font-size: 11px; }
.market-home .rate-name { color: var(--market-text); font-size: 15px; }
.market-home :is(.flat, .muted, .table-empty) { color: var(--market-muted); }
.market-home .up { color: var(--market-rise); }
.market-home .down { color: var(--market-fall); }
.market-home .source-info { color: var(--market-muted); padding: 11px 18px; font-size: 12px; }
.market-home .source-info a[href] { color: var(--market-accent); }
.market-home .source-info a[href]:hover { color: var(--market-strong); }
.currency-rail .table-scroll { max-height: none; overflow-x: auto; }
.market-home .gold-panel { border-color: var(--market-gold-edge); background: var(--market-gold-hero); }
.market-home .gold-panel .tool-icon { color: var(--market-gold); background: var(--market-gold-tint); }
.market-home .gold-panel .tool-eyebrow { color: var(--market-gold-muted); }
.market-home .gold-panel .table-heading h2 { color: var(--market-gold-title); }
.market-home .gold-panel thead th { color: var(--market-gold-title); background: var(--market-gold-tint); }
.market-home .gold-panel :is(tbody th, td) { border-bottom-color: var(--market-gold-edge); }
.market-home .gold-panel tbody tr:nth-child(even) { background: var(--market-gold-bg); }
.market-home .gold-panel tbody tr:hover { background: var(--market-gold-hover); }
.market-home .gold-panel .number, .market-home .gold-panel .source-info a[href] { color: var(--market-gold); }
.market-home .gold-panel :is(.source-info, .muted) { color: var(--market-gold-muted); }
.market-home .gold-panel .source-info a[href]:hover { color: var(--market-gold-title); }

.market-home .analysis-grid { gap: 18px; margin-block-start: 0; }
.market-home .chart-panel { color: var(--market-text); background: var(--market-hero); border-color: var(--market-edge); }
.market-home .chart-eyebrow { color: var(--market-accent); font-size: 12px; }
.market-home .chart-header h2 { color: var(--market-strong); }
.market-home :is(.chart-periods, .chart-key button) { background: var(--market-panel); border-color: var(--market-edge); }
.market-home :is(.chart-periods button, .chart-key button) { color: var(--market-text); font-size: 12px; }
.market-home :is(.chart-periods button, .chart-key button):hover { background: var(--market-hover); }
.market-home :is(.chart-periods, .chart-key) :is(button.is-active, button[aria-pressed='true']) { color: var(--market-accent-strong); background: var(--market-accent-fill); border-color: var(--market-edge); }
.market-home .chart-grid { stroke: var(--market-rule); }
.market-home .chart-placeholder i { border-top-color: var(--market-edge); }
.market-home :is(.chart-axis-label, .chart-point-label) { fill: var(--market-muted); }
.market-home :is(.chart-line, .chart-focus) { stroke: var(--market-accent); }
.market-home .chart-marker { fill: var(--market-accent); }
.market-home :is(.chart-footer, .chart-empty) { color: var(--market-muted); border-color: var(--market-edge); font-size: 12px; }
.market-home :is(.converter-form, .gold-calc) :is(input, select) { min-height: 43px; background: var(--market-panel); border-color: var(--market-edge); color: var(--market-strong); font-size: 14px; }
.market-home :is(.converter-form, .gold-calc) label, .market-home .tool-note { font-size: 13px; }
.market-home .swap-button { color: var(--market-accent-strong); background: var(--market-accent-fill); }
.market-home .swap-button:hover { background: var(--market-hover); }
.market-home .conversion-result { background: var(--market-accent-fill); color: var(--market-accent-strong); }
.market-home .conversion-result > span { font-size: 13px; }
.market-home .gold-calc { margin: 16px 0 0; padding: 14px; background: var(--market-gold-bg); border-color: var(--market-gold-edge); }
.market-home .gold-calc h3, .market-home .gold-calc h3 .icon { color: var(--market-gold-title); }
.market-home .gold-calc h3 { font-size: 16px; }
.market-home .gold-calc :is(input, select) { background: var(--market-gold-tint); border-color: var(--market-gold-edge); }
.market-home .gold-calc label { color: var(--market-gold-muted); }
.market-home .gold-calc .conversion-result { color: var(--market-gold-title); background: var(--market-gold-tint); }

.market-home :is(.dashboard-price-note, .methodology) { color: var(--market-muted); font-size: 13px; }
.market-home :is(.dashboard-price-note, .methodology) a { color: var(--market-accent); }
.market-home .dashboard-price-note { margin-block: 0 19px; }
.market-home :is(.dashboard-guides, .dashboard-reading, .market-directory), :is(.market-home, .market-reading) .reading-card { background: var(--market-surface); border-color: var(--market-edge); }
.market-home .dashboard-steps div { background: var(--market-panel); }
.market-home .dashboard-steps dt::before { background: var(--market-accent-fill); color: var(--market-accent-strong); }
:is(.market-home, .market-reading) .reading-card:is(:hover, :focus-within) { border-color: var(--market-accent); }
.market-home .reading-card-symbol { background: var(--market-accent-fill); color: var(--market-accent-strong); }
.market-home .reading-card-symbol--gold { background: var(--market-gold-tint); color: var(--market-gold); }
:is(.market-home, .market-reading) .reading-action { background: var(--market-accent-fill); color: var(--market-accent-strong); border-color: var(--market-edge); }
:is(.market-home, .market-reading) .reading-action:hover { background: var(--market-hover); border-color: var(--market-accent); }
.market-home .market-links a { border-color: var(--market-edge); background: var(--market-panel); }
.market-home .market-links a:is(:hover, .is-active) { border-color: var(--market-accent); background: var(--market-accent-fill); }
:is(.market-home, .market-reading) .site-footer { background: var(--market-header); border-color: var(--market-rule); }
:is(.market-home, .market-reading) .footer-links a:hover { color: var(--market-accent); }
.market-reading .reading-header { color: var(--market-strong); border-color: var(--market-edge); background: var(--market-hero); }
.market-reading .reading-header p:not(.reading-kicker), .market-reading .breadcrumb li + li::before { color: var(--market-muted); }
.market-reading :is(.reading-kicker, .breadcrumb a, .reading-meta a) { color: var(--market-accent); }
.market-reading :is(.reading-body, .reading-sources, .reading-related) { color: var(--market-text); border-color: var(--market-edge); background: var(--market-surface); }
.market-reading :is(.reading-body code, .reading-body kbd, .reading-body pre, .reading-body blockquote, .reading-tags a, .reading-tags span) { color: var(--market-text); background: var(--market-panel); border-color: var(--market-edge); }
.market-reading .reading-body thead th { color: var(--market-strong); background: var(--market-tint); }
.market-reading .reading-body tbody tr:nth-child(even) { background: var(--market-panel); }

@media (max-width: 1020px) {
  :is(.market-home, .market-reading) .page-width { width: calc(100% - 38px); }
  :is(.market-home, .market-reading) .header-content { gap: 10px; }
  :is(.market-home, .market-reading) .nav-link { padding-inline: 8px; }
}
@media (max-width: 880px) {
  .market-stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'hero' 'currencies' 'gold'; grid-template-rows: auto; }
  .market-home .analysis-grid { grid-template-columns: minmax(0, 1fr); }
  .market-home .market-control { width: min(100%, 340px); }
}
@media (max-width: 760px) {
  :is(.market-home, .market-reading) .page-width { width: calc(100% - 28px); }
  :is(.market-home, .market-reading) .header-content { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; padding-block: 7px 5px; }
  :is(.market-home, .market-reading) .main-nav { grid-row: 2; grid-column: 1 / -1; display: flex; justify-content: space-between; width: 100%; gap: 3px; }
  :is(.market-home, .market-reading) .nav-link { padding: 5px 4px; text-align: center; font-size: clamp(11px, 2.6vw, 13px); }
  :is(.market-home, .market-reading) .brand-mark { width: 36px; height: 36px; }
  :is(.market-home, .market-reading) .brand-mark .icon { width: 28px; height: 28px; }
  :is(.market-home, .market-reading) .brand-text strong { font-size: 17px; }
  :is(.market-home, .market-reading) .brand { gap: 7px; }
  :is(.market-home, .market-reading) .header-actions { gap: 5px; }
  :is(.market-home, .market-reading) .icon-button { width: 36px; height: 36px; }
  :is(.market-home, .market-reading) .icon-button .icon { width: 17px; height: 17px; }
  .market-home .intro { display: grid; gap: 13px; padding-block: 18px 15px; }
  .market-home .market-control { width: min(100%, 390px); }
  .dollar-hero { border-radius: 15px; }
  #hero-rate { font-size: clamp(42px, 10vw, 65px); }
  .hero-sparkline { inset-block-start: 104px; width: min(35%, 210px); height: 73px; opacity: .47; }
  .direction-chevron:nth-child(1) { width: 53px; height: 53px; }
  .market-home .table-panel :is(th, td) { padding-inline: 8px; }
  .market-home .table-panel :is(th, td):first-child { padding-inline-start: 12px; }
  .market-home .table-panel :is(th, td):last-child { padding-inline-end: 12px; }
}
@media (max-width: 430px) {
  :is(.market-home, .market-reading) .icon-button { width: 34px; height: 36px; }
  .hero-sparkline { opacity: .28; }
  .direction-chevron:nth-child(2) { inset-inline-end: 15%; }
  .market-home .table-panel table, .market-home .rate-name { font-size: 13px; }
  .market-home .table-panel thead th { font-size: 12px; }
  .market-home .rate-identity { gap: 3px 5px; }
}
html[data-motion='paused'] :is(.market-home, .market-reading) * { animation: none !important; transition: none !important; }
html[data-motion='paused'] { scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion='running']) { scroll-behavior: auto !important; }
  html:not([data-motion='running']) :is(.market-home, .market-reading) * { animation: none !important; transition: none !important; }
}
