:root {
  color-scheme: dark;
  --bg: #08090b;
  --panel: #101318;
  --panel-2: #151922;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f7fb;
  --muted: rgba(244, 247, 251, 0.58);
  --faint: rgba(244, 247, 251, 0.36);
  --accent: #ee4d5f;
  --accent-2: #28d0a6;
  --warn: #e0b447;
  --font: "Satoshi", "Geist", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 12% -10%, rgba(238, 77, 95, 0.22), transparent 32rem),
    radial-gradient(circle at 92% 12%, rgba(40, 208, 166, 0.13), transparent 29rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1500px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 34px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.eyebrow,
.panel-kicker,
.field span,
.compact-field span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(34px, 5vw, 66px);
  line-height: 0.92;
}

h2 {
  font-size: 24px;
  line-height: 1.05;
}

.status-pill {
  min-width: 118px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.status-pill.is-loading { color: var(--warn); }
.status-pill.is-ok { color: var(--accent-2); }
.status-pill.is-error { color: var(--accent); }

.control-band {
  position: relative;
  z-index: 30;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 19, 24, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.search-form {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 10px;
}

.field,
.compact-field {
  display: grid;
  gap: 7px;
}

.field input,
.field select,
.compact-field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.field input,
.field select {
  height: 48px;
  padding: 0 14px;
}

.field input {
  font-family: var(--mono);
}

.field input:focus,
.field select:focus,
.compact-field input:focus {
  border-color: rgba(238, 77, 95, 0.6);
  background: rgba(255, 255, 255, 0.075);
}

.field--network {
  position: relative;
}

.network-select-native {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.network-picker {
  position: relative;
}

.network-picker__button {
  width: 100%;
  height: 48px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.16s ease;
}

.network-picker__button:hover,
.network-picker__button:focus-visible,
.network-picker.is-open .network-picker__button {
  border-color: rgba(238, 77, 95, 0.54);
  background: rgba(255, 255, 255, 0.078);
}

.network-picker__button:active {
  transform: translateY(1px) scale(0.99);
}

.network-picker__icon,
.network-option img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

.network-picker__icon {
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.network-picker__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.network-picker__text {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.network-picker__text strong,
.network-option strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-picker__text small,
.network-option small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.1;
}

.network-picker__chevron {
  width: 9px;
  height: 9px;
  justify-self: end;
  border-right: 2px solid rgba(244, 247, 251, 0.62);
  border-bottom: 2px solid rgba(244, 247, 251, 0.62);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease;
}

.network-picker.is-open .network-picker__chevron {
  border-color: var(--text);
  transform: translateY(2px) rotate(225deg);
}

.network-picker__menu {
  position: absolute;
  left: 0;
  right: auto;
  top: calc(100% + 8px);
  z-index: 40;
  display: grid;
  gap: 4px;
  width: min(248px, calc(100vw - 48px));
  max-height: 336px;
  padding: 7px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(12, 14, 19, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 22px 54px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.network-picker.is-open .network-picker__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.network-option {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  outline: none;
  background: transparent;
  color: var(--text);
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.network-option:hover,
.network-option:focus-visible {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.network-option.is-active {
  border-color: rgba(238, 77, 95, 0.4);
  background: rgba(238, 77, 95, 0.14);
}

.ghost-btn,
.segmented button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.ghost-btn:active,
.segmented button:active {
  transform: translateY(1px) scale(0.99);
}

.filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.segmented button {
  min-width: 54px;
  height: 34px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.segmented button.is-active {
  color: #fff;
  border-color: rgba(238, 77, 95, 0.44);
  background: rgba(238, 77, 95, 0.22);
}

.compact-field input {
  width: 108px;
  height: 34px;
  padding: 0 10px;
  font-family: var(--mono);
}

.ghost-btn {
  height: 34px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.metric {
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.metric span {
  display: block;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}

.metric strong {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 20px;
  letter-spacing: 0;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 14px;
}

.map-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(16, 19, 24, 0.78);
  backdrop-filter: blur(18px);
}

.map-panel {
  min-height: 690px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 140px),
    rgba(10, 11, 13, 0.92);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 0;
}

.scan-rail {
  margin: 12px 20px 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.scan-rail[hidden] {
  display: none;
}

.scan-rail__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.scan-rail__line strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
}

.scan-rail__phase {
  color: var(--warn);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.scan-rail__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.scan-rail__meta span,
.scan-rail__meta b {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
}

.scan-rail__meta b {
  color: var(--text);
}

.scan-progress {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
}

.scan-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--warn), var(--accent), var(--accent-2));
  transform: scaleX(var(--scan-ratio, 0));
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.scan-progress--rail {
  height: 6px;
  margin-top: 10px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.map-action {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.map-action:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.map-action:active {
  transform: scale(0.96);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

.dot--resolved { background: var(--accent); }
.dot--raw { background: var(--warn); }
.dot--mev { background: #8f99a8; }

.bubble-stage {
  position: relative;
  height: 640px;
  margin-top: 8px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    #0b0c0e;
  background-size: 54px 54px;
  box-shadow: inset 0 28px 70px rgba(0, 0, 0, 0.28);
  touch-action: none;
}

.bubble-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.035), transparent 0 42%, rgba(0, 0, 0, 0.22) 100%);
}

.empty-state,
.loading-state,
.error-state {
  position: absolute;
  inset: 42px;
  display: grid;
  place-content: center;
  gap: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong,
.loading-state strong,
.error-state strong {
  color: var(--text);
  font-size: 22px;
}

.empty-state--rich {
  padding: 24px;
}

.empty-state--rich p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.empty-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.empty-stats span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}

.empty-stats b {
  color: var(--text);
}

.error-state strong { color: var(--accent); }

.scanner-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 42px;
}

.scanner-overlay::before {
  content: "";
  position: absolute;
  inset: 42px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.72;
  animation: scan-field 2.7s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.scanner-card {
  position: relative;
  width: min(520px, 100%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: rgba(12, 14, 19, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 26px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.scanner-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.scanner-card__top strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.scanner-card__top span {
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 900;
}

.scanner-visual {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 18px 0;
}

.scanner-orbit {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.scanner-orbit::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent);
  border-right-color: var(--accent-2);
  animation: scan-spin 1.4s linear infinite;
}

.scanner-orbit i {
  position: absolute;
  inset: 26px;
  border-radius: 999px;
  border: 1px solid rgba(224, 180, 71, 0.24);
}

.scanner-orbit i:nth-child(2) {
  inset: 40px;
  border-color: rgba(40, 208, 166, 0.22);
}

.scanner-orbit span {
  position: relative;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 900;
}

.scanner-readout {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.scanner-readout span {
  color: var(--warn);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.scanner-readout strong {
  font-family: var(--mono);
  font-size: 28px;
  line-height: 1;
}

.scanner-readout small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

@keyframes scan-spin {
  to { transform: rotate(360deg); }
}

@keyframes scan-field {
  50% { opacity: 0.42; transform: scale(0.992); }
}

.bubble {
  position: absolute;
  display: grid;
  place-items: center;
  left: 0;
  top: 0;
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  border-radius: 999px;
  border: 2px solid rgba(255, 87, 104, calc(0.34 + var(--intensity) * 0.34));
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.34), transparent 0 10%),
    radial-gradient(circle at 52% 56%, rgba(77, 13, 20, 0.76), rgba(15, 7, 9, 0.82) 58%, rgba(238, 77, 95, calc(0.58 + var(--intensity) * 0.38)) 72%, rgba(255, 63, 82, 0.94) 100%);
  box-shadow:
    inset 0 0 calc(var(--r) * 0.18) rgba(255, 255, 255, 0.16),
    inset 0 calc(var(--r) * -0.28) calc(var(--r) * 0.55) rgba(0, 0, 0, 0.5),
    0 0 calc(var(--r) * 0.32) rgba(255, 70, 88, calc(0.22 + var(--intensity) * 0.2)),
    0 12px 34px rgba(0, 0, 0, 0.34);
  transform: translate(calc(var(--x) - var(--r)), calc(var(--y) - var(--r))) scale(var(--scale, 1));
  transition: border-color 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  will-change: transform;
}

.bubble.is-raw {
  border-color: rgba(224, 180, 71, 0.68);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.3), transparent 0 10%),
    radial-gradient(circle at 52% 56%, rgba(59, 40, 8, 0.8), rgba(15, 10, 5, 0.82) 58%, rgba(224, 180, 71, 0.82) 74%, rgba(238, 189, 63, 0.94) 100%);
  box-shadow:
    inset 0 0 calc(var(--r) * 0.18) rgba(255, 255, 255, 0.15),
    inset 0 calc(var(--r) * -0.28) calc(var(--r) * 0.55) rgba(0, 0, 0, 0.5),
    0 0 calc(var(--r) * 0.3) rgba(224, 180, 71, 0.28),
    0 12px 34px rgba(0, 0, 0, 0.34);
}

.bubble.is-mev {
  filter: saturate(0.62) grayscale(0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.bubble.is-selected {
  --scale: 1.055;
  border-color: rgba(255, 255, 255, 0.74);
  filter: brightness(1.12);
  z-index: 4;
}

.bubble.is-dragging {
  --scale: 1.08;
  cursor: grabbing;
  z-index: 8;
  transition: border-color 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.bubble:hover {
  --scale: 1.04;
  z-index: 5;
  cursor: grab;
}

.bubble::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 0 calc(var(--r) * 0.44) rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.bubble::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 32%, transparent 70%, rgba(255, 255, 255, 0.08));
  mix-blend-mode: screen;
  pointer-events: none;
}

.bubble__inner {
  display: grid;
  place-items: center;
  position: relative;
  width: 84%;
  text-align: center;
  pointer-events: none;
  z-index: 1;
}

.bubble__wallet {
  font-family: var(--mono);
  font-size: clamp(10px, calc(var(--r) * 0.12), 17px);
  color: rgba(255, 255, 255, 0.76);
}

.bubble__usd {
  margin-top: 1px;
  font-family: var(--mono);
  font-weight: 900;
  font-size: clamp(20px, calc(var(--r) * 0.36), 58px);
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.56);
}

.bubble__meta {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--mono);
  font-size: clamp(10px, calc(var(--r) * 0.105), 15px);
}

.bubble__share {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--mono);
  font-size: clamp(12px, calc(var(--r) * 0.16), 23px);
}

.side-panel {
  display: grid;
  grid-template-rows: minmax(250px, auto) 1fr;
  gap: 12px;
  padding: 14px;
}

.details {
  min-height: 250px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.details-empty {
  height: 230px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.detail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-title strong {
  font-family: var(--mono);
  font-size: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.badge--resolved {
  color: var(--accent-2);
  border-color: rgba(40, 208, 166, 0.34);
}

.badge--raw {
  color: var(--warn);
  border-color: rgba(224, 180, 71, 0.34);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-cell {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.detail-cell span {
  display: block;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.detail-cell strong {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 15px;
  word-break: break-word;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.detail-actions a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
}

.leaderboard {
  min-height: 320px;
}

.leaderboard-rows {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  max-height: 338px;
  overflow: auto;
  padding-right: 4px;
}

.leader-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 9px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.leader-row.is-active {
  border-color: rgba(238, 77, 95, 0.54);
  background: rgba(238, 77, 95, 0.12);
}

.leader-rank {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.leader-wallet {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
}

.leader-sub {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}

.leader-usd {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .side-panel {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100vw - 20px, 1500px);
    padding-top: 18px;
  }

  .topbar {
    display: grid;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
  }

  .map-panel {
    min-height: 560px;
  }

  .bubble-stage {
    height: 500px;
  }

  .panel-head,
  .side-panel {
    display: grid;
  }

  .scan-rail__line,
  .scanner-visual {
    grid-template-columns: 1fr;
  }

  .scan-rail__line {
    display: grid;
  }

  .scan-rail__meta {
    justify-content: flex-start;
  }

  .scanner-overlay {
    padding: 24px;
  }

  .scanner-overlay::before {
    inset: 24px;
  }

  .scanner-orbit {
    width: 112px;
    height: 112px;
  }

  .side-panel {
    grid-template-columns: 1fr;
  }
}
