/* Security players */
.nx-mi-page .nx-mi-player-map-guide {
  display: flex;
  gap: .55rem .8rem;
  flex-wrap: wrap;
  padding: .78rem 1rem 0;
}
.nx-mi-page .nx-mi-player-map-guide span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 34px;
  padding: .35rem .6rem;
  border: 1px solid #e5ebf2;
  border-radius: .72rem;
  background: #fbfdff;
  color: #64748b;
  font-size: .66rem;
  font-weight: 780;
  line-height: 1.6;
}
.nx-mi-page .nx-mi-player-map-guide .is-buy i { color: #0f8a5f; }
.nx-mi-page .nx-mi-player-map-guide .is-sell i { color: #d97706; }
.nx-mi-page .nx-mi-chart-card--players-map,
.nx-mi-page .nx-mi-chart-card--industry-bars {
  margin: .72rem 1rem 1rem;
  border-color: #e2e9f1;
  box-shadow: none;
}
.nx-mi-page .nx-mi-chart--players { min-height: 470px; }
.nx-mi-page .nx-mi-chart--industry { min-height: 520px; }

.nx-mi-page .nx-mi-participation-card {
  display: grid;
  gap: 1.15rem;
  min-height: 100%;
  padding: 1.05rem 1rem 1.15rem;
  background: #fff;
}
.nx-mi-page .nx-mi-participation-row {
  display: grid;
  gap: .48rem;
}
.nx-mi-page .nx-mi-participation-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  color: #526078;
  font-size: .69rem;
  line-height: 1.7;
}
.nx-mi-page .nx-mi-participation-row__head strong {
  color: #1e293b;
  font-size: .75rem;
}
.nx-mi-page .nx-mi-participation-row__head b {
  color: #334155;
  direction: ltr;
  unicode-bidi: isolate;
}
.nx-mi-page .nx-mi-participation-track {
  display: flex;
  direction: ltr;
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f6;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .08);
}
.nx-mi-page .nx-mi-participation-track span {
  display: block;
  height: 100%;
  transition: width .28s ease;
}
.nx-mi-page .nx-mi-participation-track .is-real { background: #0f8a5f; }
.nx-mi-page .nx-mi-participation-track .is-legal { background: #64748b; }
.nx-mi-page .nx-mi-participation-note {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  margin-top: .15rem;
  padding: .75rem .8rem;
  border: 1px solid #e5ebf2;
  border-radius: .82rem;
  background: #f8fafc;
  color: #64748b;
}
.nx-mi-page .nx-mi-participation-note i { color: #2563eb; margin-top: .1rem; }
.nx-mi-page .nx-mi-participation-note p { margin: 0; font-size: .67rem; line-height: 1.85; }

/* Industry ownership heatmap is HTML/CSS, so no second chart library/render pass. */
.nx-mi-page .nx-mi-heatmap-legend {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
  color: #64748b;
  font-size: .63rem;
  font-weight: 780;
}
.nx-mi-page .nx-mi-heatmap-legend i {
  width: 26px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(209,31,69,.78), #eef2f6 50%, rgba(15,138,95,.78));
}
.nx-mi-page .nx-mi-heatmap-legend .is-legal { color: #b91c3b; }
.nx-mi-page .nx-mi-heatmap-legend .is-real { color: #087a49; }
.nx-mi-page .nx-mi-ownership-heatmap-wrap {
  padding: .85rem 1rem 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.nx-mi-page .nx-mi-ownership-heatmap {
  min-width: 880px;
}
.nx-mi-page .nx-mi-heatmap-grid {
  display: grid;
  gap: 5px;
}
.nx-mi-page .nx-mi-heatmap-row {
  display: grid;
  gap: 5px;
  align-items: stretch;
}
.nx-mi-page .nx-mi-heatmap-sector,
.nx-mi-page .nx-mi-heatmap-date,
.nx-mi-page .nx-mi-heatmap-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: .35rem .42rem;
  border-radius: .58rem;
  font-size: .61rem;
  line-height: 1.45;
}
.nx-mi-page .nx-mi-heatmap-sector {
  justify-content: flex-start;
  color: #334155;
  background: #f8fafc;
  font-weight: 850;
  text-align: right;
}
.nx-mi-page .nx-mi-heatmap-row--head .nx-mi-heatmap-sector,
.nx-mi-page .nx-mi-heatmap-date {
  color: #64748b;
  background: #f1f5f9;
  font-weight: 800;
}
.nx-mi-page .nx-mi-heatmap-date {
  flex-direction: column;
  gap: .08rem;
  direction: ltr;
  unicode-bidi: isolate;
}
.nx-mi-page .nx-mi-heatmap-date small { color: #2563eb; font-size: .52rem; }
.nx-mi-page .nx-mi-heatmap-date.is-live,
.nx-mi-page .nx-mi-heatmap-cell.is-live { box-shadow: inset 0 0 0 1px rgba(37,99,235,.35); }
.nx-mi-page .nx-mi-heatmap-cell {
  direction: ltr;
  unicode-bidi: isolate;
  font-weight: 820;
  cursor: default;
  transition: transform .12s ease, box-shadow .12s ease;
}
.nx-mi-page .nx-mi-heatmap-cell:hover,
.nx-mi-page .nx-mi-heatmap-cell:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(15,23,42,.08);
  outline: none;
}
.nx-mi-page .nx-mi-heatmap-cell.is-zero { color: #64748b; background: #f1f5f9; }
.nx-mi-page .nx-mi-heatmap-cell.is-positive { color: #075e43; }
.nx-mi-page .nx-mi-heatmap-cell.is-negative { color: #9f1239; }
.nx-mi-page .nx-mi-heatmap-cell.is-positive.lv-1 { background: rgba(15,138,95,.08); }
.nx-mi-page .nx-mi-heatmap-cell.is-positive.lv-2 { background: rgba(15,138,95,.16); }
.nx-mi-page .nx-mi-heatmap-cell.is-positive.lv-3 { background: rgba(15,138,95,.27); }
.nx-mi-page .nx-mi-heatmap-cell.is-positive.lv-4 { background: rgba(15,138,95,.40); }
.nx-mi-page .nx-mi-heatmap-cell.is-negative.lv-1 { background: rgba(209,31,69,.08); }
.nx-mi-page .nx-mi-heatmap-cell.is-negative.lv-2 { background: rgba(209,31,69,.16); }
.nx-mi-page .nx-mi-heatmap-cell.is-negative.lv-3 { background: rgba(209,31,69,.27); }
.nx-mi-page .nx-mi-heatmap-cell.is-negative.lv-4 { background: rgba(209,31,69,.40); }

@media (max-width: 767.98px) {
  .nx-mi-page .nx-mi-chart-card--players-map,
  .nx-mi-page .nx-mi-chart-card--industry-bars { margin: .62rem .55rem .75rem; }
  .nx-mi-page .nx-mi-chart--players { min-height: 410px; }
  .nx-mi-page .nx-mi-chart--industry { min-height: 470px; }
  .nx-mi-page .nx-mi-player-map-guide { padding: .65rem .65rem 0; }
  .nx-mi-page .nx-mi-player-map-guide span { width: 100%; }
  .nx-mi-page .nx-mi-participation-row__head { align-items: flex-start; flex-direction: column; gap: .18rem; }
  .nx-mi-page .nx-mi-ownership-heatmap-wrap { padding-inline: .55rem; }
  .nx-mi-page .nx-mi-ownership-heatmap { min-width: 790px; }
}

/* V43: scatter tooltips stay attached to hovered points and may escape plot edges. */
.nx-mi-page .nx-mi-panel--players-map,
.nx-mi-page .nx-mi-panel--players-map .nx-mi-chart-card--players-map,
.nx-mi-page .nx-mi-panel--players-map .apexcharts-canvas,
.nx-mi-page .nx-mi-panel--players-map .apexcharts-svg {
  overflow: visible !important;
}
.nx-mi-page .nx-mi-panel--players-map .nx-mi-chart-card--players-map {
  position: relative;
  z-index: 3;
}
.nx-mi-page .nx-mi-panel--players-map .apexcharts-tooltip {
  z-index: 120 !important;
  overflow: visible !important;
  pointer-events: none !important;
}

/* Historical sector context no longer blocks the live page. */
.nx-mi-page .nx-mi-history-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 150px;
  padding: 1rem;
  color: #64748b;
  text-align: right;
}
.nx-mi-page .nx-mi-history-loading strong,
.nx-mi-page .nx-mi-history-loading small { display: block; }
.nx-mi-page .nx-mi-history-loading strong { color: #334155; font-size: .74rem; font-weight: 900; }
.nx-mi-page .nx-mi-history-loading small { margin-top: .12rem; font-size: .64rem; font-weight: 700; }
