/* Native geographic globe; scoped to Markets so existing graphics stay untouched. */
#marketGlobePanel.market-globe-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--border, #1b2b42);
  border-radius: 18px;
  background: radial-gradient(ellipse at 30% 12%, rgba(19, 165, 202, .10), transparent 55%), radial-gradient(ellipse at 90% 90%, rgba(223, 96, 184, .05), transparent 55%), #07111f !important;
  color: #e8f3fa !important;
}
#marketGlobePanel .market-section-title { position: relative; z-index: 1; margin-bottom: 8px; }
#marketGlobePanel .market-section-title h3 { color: #e8f3fa; }
#marketGlobePanel .market-section-title span { color: #92a8be; }
#marketGlobePanel .market-globe-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: clamp(340px, 36vw, 460px);
  overflow: hidden;
  border-radius: 13px;
  background: radial-gradient(ellipse at 50% 48%, #0c1a2b, #030812 78%);
}
#marketGlobe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  cursor: grab;
  touch-action: none;
  outline-offset: -4px;
  border-radius: 13px;
}
#marketGlobe.is-dragging { cursor: grabbing; }
#marketGlobe.has-exchange-hover:not(.is-dragging) { cursor: pointer; }
#marketGlobe:focus-visible { outline: 2px solid #65dfea; }
#marketGlobePanel .market-globe-zoom {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#marketGlobePanel .market-globe-zoom button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(75, 166, 192, .34);
  border-radius: 10px;
  color: #acecf5;
  background: rgba(7, 23, 40, .87);
  box-shadow: inset 0 1px 0 rgba(149, 226, 244, .05), 0 5px 14px rgba(0, 0, 0, .20);
  font: 400 24px/1 system-ui, sans-serif;
  cursor: pointer;
}
#marketGlobePanel .market-globe-zoom button:hover:not(:disabled) {
  border-color: #65dfea;
  background: #102d42;
  box-shadow: 0 0 14px rgba(48, 190, 219, .12);
}
#marketGlobePanel .market-globe-zoom button:disabled { opacity: .35; cursor: default; }
#marketGlobePanel .market-globe-zoom button:focus-visible { outline: 2px solid #65dfea; outline-offset: 3px; }
#marketGlobePanel .market-globe-tooltip {
  position: absolute;
  z-index: 2;
  max-width: calc(100% - 16px);
  padding: 8px 11px;
  border: 1px solid rgba(85, 204, 224, .30);
  border-radius: 8px;
  background: rgba(5, 14, 27, .96);
  color: #dff9fc;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
  pointer-events: none;
}
#marketGlobePanel .market-globe-tooltip[hidden] { display: none; }
#marketGlobePanel .market-globe-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 12px;
}
#marketGlobePanel .market-globe-controls label { color: #96adc4; font-size: 11px; font-weight: 650; }
#marketGlobeSelect {
  flex: 1 1 160px;
  min-width: 0;
  max-width: 100%;
  min-height: 40px;
  padding: 8px 30px 8px 11px;
  border: 1px solid #2a4059 !important;
  border-radius: 9px;
  background: #0b1b2d !important;
  color: #dcf2f6 !important;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
#marketGlobeSelect option { background: #0b1b2d; color: #dcf2f6; }
#marketGlobeReset {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid #32516b;
  border-radius: 9px;
  background: rgba(15, 43, 59, .65);
  color: #a8edf3;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}
#marketGlobeReset:hover { background: #12334a; border-color: #55c9d6; }
#marketGlobeSelect:focus-visible, #marketGlobeReset:focus-visible { outline: 2px solid #65dfea; outline-offset: 3px; }
#marketGlobeDetail {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 62px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(96, 130, 160, .20);
}
#marketGlobePanel .market-globe-detail-heading, #marketGlobePanel .market-globe-detail-quote {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}
#marketGlobePanel .market-globe-detail-title { color: #eaf3fa; font-size: 13px; font-weight: 720; }
#marketGlobePanel .market-globe-detail-city { color: #99acc2; font-size: 11px; }
#marketGlobePanel .market-globe-detail-quote { color: #9bb0c6; font-size: 11px; }
#marketGlobePanel .market-globe-detail-quote strong { color: #eff7fb; font-size: 16px; font-variant-numeric: tabular-nums; }
#marketGlobePanel .market-globe-detail-copy { color: #93a8bf; font-size: 10px; line-height: 1.6; }
#marketGlobePanel .market-globe-detail-context { display: flex; flex-wrap: wrap; gap: 5px 13px; color: #829bb5; font-size: 10px; line-height: 1.5; }
#marketGlobePanel .market-globe-positive { color: #3fe4b0; }
#marketGlobePanel .market-globe-negative { color: #ff819a; }
#marketGlobeHint { margin: 10px 0 0; color: #819bb4; font-size: 10px; line-height: 1.55; }
@media (max-width: 720px) {
  #marketGlobePanel.market-globe-panel { padding: 15px; }
  #marketGlobePanel .market-globe-stage { height: 340px; }
  #marketGlobePanel .market-globe-zoom { right: 7px; top: 7px; }
  #marketGlobePanel .market-globe-zoom button { width: 44px; height: 44px; }
  #marketGlobePanel .market-globe-controls label { width: 100%; }
  #marketGlobeSelect, #marketGlobeReset { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  #marketGlobePanel *, #marketGlobePanel *::before, #marketGlobePanel *::after { animation: none !important; transition: none !important; }
}
