body.reporter-page {
  margin: 0 !important;
  padding-top: 132px !important;
  overflow-x: hidden;
  color: #f5f5f5;
  background:
    linear-gradient(rgba(4, 7, 9, 0.62), rgba(4, 7, 9, 0.9)),
    url('/images/dxcluster.webp') center / cover fixed !important;
}

body.reporter-page .live-tool-shell.reporter-shell,
.reporter-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 24px !important;
  box-sizing: border-box;
}

body.reporter-page .live-tool-shell.reporter-shell > section {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.reporter-panel,
.reporter-stats > div {
  border: 1px solid rgba(255, 208, 0, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(7, 10, 8, 0.84), rgba(0, 0, 0, 0.7));
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}

.reporter-topbar {
  width: 100%;
  padding: 12px !important;
  box-sizing: border-box;
  border-radius: 0;
}

.reporter-filters {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1fr 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.reporter-field {
  min-width: 0;
}

.reporter-field span,
.reporter-segment > span {
  display: block;
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reporter-field input,
.reporter-field select {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: #0b1117;
  color: #fff;
  padding: 0 10px;
  font-weight: 800;
}

.reporter-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.reporter-segment > span {
  grid-column: 1 / -1;
}

.reporter-segment button,
.reporter-reset {
  height: 40px;
  border: 1px solid rgba(255, 208, 0, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffd000;
  font-weight: 900;
  cursor: pointer;
}

.reporter-segment button[aria-pressed='true'],
.reporter-reset {
  background: #ffd000;
  color: #10140b;
}

.reporter-topbar-bottom {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.5fr);
  gap: 10px;
  align-items: stretch;
  margin-top: 10px;
}

.reporter-statusline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.reporter-statusline span {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  padding: 7px 11px;
}

.reporter-statusline a {
  color: #9cff00;
}

.reporter-band-note {
  border-color: rgba(251, 113, 133, 0.42) !important;
  color: #ffd6df;
}

.reporter-feed--live { color: #9cff00; }
.reporter-feed--stale { color: #ffd000; }
.reporter-feed--down { color: #ff6d6d; }

.reporter-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.reporter-stats > div {
  min-height: 72px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: none;
}

.reporter-stats span {
  display: block;
  color: #9cff00;
  font-weight: 900;
  font-size: 0.82rem;
}

.reporter-stats b {
  display: block;
  margin: 5px 0 2px;
  color: #ffd000;
  font-size: clamp(1.15rem, 1.6vw, 1.65rem);
  line-height: 1;
}

.reporter-stats small {
  color: rgba(255, 255, 255, 0.68);
}

.reporter-map-grid {
  display: block;
  margin-top: 0;
  padding: 0 !important;
}

.reporter-map-panel {
  position: relative;
  min-height: min(760px, calc(100vh - 210px));
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  background: #071019;
  box-shadow: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

#reporterMap,
#reporterGlobe {
  width: 100%;
  height: min(760px, calc(100vh - 210px));
  min-height: 560px;
  display: block;
  background: radial-gradient(circle at 50% 42%, #0a4779 0, #061f39 48%, #01050a 72%);
  margin: 0;
  border: 0;
}

#reporterGlobe .maplibregl-canvas,
#reporterGlobe .maplibregl-canvas-container,
#reporterGlobe .maplibregl-map {
  width: 100% !important;
  height: 100% !important;
}

#reporterMap.is-hidden,
#reporterGlobe.is-hidden {
  display: none;
}

.reporter-map-empty {
  position: absolute;
  inset: auto 18px 18px 18px;
  padding: 13px 15px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 208, 0, 0.32);
  color: #ffd000;
  font-weight: 900;
  text-align: center;
}

.reporter-band-legend {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: min(520px, calc(100% - 28px));
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.66);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.76rem;
  font-weight: 900;
  pointer-events: none;
}

.reporter-band-legend__title {
  color: #ffd000;
  text-transform: uppercase;
}

.reporter-band-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.reporter-band-legend__item i {
  width: 18px;
  height: 4px;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.reporter-table-head h2 {
  margin: 0 0 10px;
  color: #ffd000;
}

.reporter-table-panel {
  margin-top: 0;
  padding: 12px !important;
  border-radius: 0;
}

.reporter-table-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.reporter-table-wrap {
  max-height: 360px;
  overflow: auto;
}

.reporter-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.reporter-table th,
.reporter-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px;
  text-align: left;
  white-space: nowrap;
}

.reporter-table th {
  position: sticky;
  top: 0;
  background: #0a0f13;
  color: #ffd000;
  z-index: 1;
}

.reporter-table tbody tr {
  cursor: pointer;
}

.reporter-table tbody tr:hover,
.reporter-table tbody tr.is-selected {
  background: rgba(156, 255, 0, 0.09);
}

.reporter-banana-marker {
  font-size: 18px;
  text-shadow: 0 0 8px #000;
}

.reporter-home-marker {
  font-size: 28px;
  filter: drop-shadow(0 0 9px rgba(255, 208, 0, 0.9));
}

.reporter-cluster {
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffd000;
  color: #111;
  font-weight: 900;
  border: 2px solid rgba(0, 0, 0, 0.48);
}

.reporter-maplibre-popup .maplibregl-popup-content {
  min-width: 230px;
  border: 1px solid rgba(255, 208, 0, 0.34);
  border-radius: 12px;
  background: rgba(7, 11, 14, 0.96);
  color: #f5f5f5;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.reporter-globe-popup {
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
  line-height: 1.32;
}

.reporter-globe-popup strong {
  color: #ffd000;
}

.reporter-globe-popup span {
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 1180px) {
  .reporter-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .reporter-topbar-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.reporter-page {
    padding-top: 0 !important;
    background-attachment: scroll !important;
  }

  .reporter-shell {
    width: 100% !important;
  }

  .reporter-filters,
  .reporter-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reporter-reset {
    grid-column: 1 / -1;
  }

  #reporterMap,
  #reporterGlobe {
    min-height: 500px;
    height: 500px;
  }

  .reporter-table {
    min-width: 820px;
  }
}

@media (max-width: 560px) {
  .reporter-filters,
  .reporter-stats {
    grid-template-columns: 1fr;
  }
}
