#tab-mapper #uploadCard {
  text-align: center;
}

#tab-mapper #uploadCard > p {
  max-width: 620px;
  margin-inline: auto;
}

#tab-mapper #uploadCard .upload-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

#tab-hex .hex-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

#tab-hex .hex-head-left {
  flex: 1 1 auto;
  min-width: 0;
}

#tab-hex .hex-head-left h1 {
  display: flex;
  align-items: center;
  gap: 14px;
}

#tab-hex .hex-head-left p {
  max-width: 660px;
  margin-bottom: 0;
}

#tab-hex .hex-head-right {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

#tab-hex .hex-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

#tab-hex .hex-top > .hex-card {
  box-sizing: border-box;
  min-width: 0;
  height: 100%;
}

#tab-hex #soDropCard {
  display: grid;
  place-items: center;
  text-align: center;
}

#tab-hex .hex-top > .hex-card:not(#soDropCard) {
  text-align: center;
}

#tab-hex .jump-input {
  display: flex;
  align-items: center;
}

#tab-hex .jump-input input {
  min-width: 0;
}

#tab-hex .hex-out > .row:first-child {
  align-items: center;
  gap: 16px;
}

#tab-hex .hex-out > .row:first-child > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#tab-hex .hex-out > .row:nth-child(2) {
  align-items: center;
  gap: 10px;
}

#dumpViewerWrap {
  min-width: 0;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b0b10;
}

#dumpViewerWrap > .row:first-child {
  padding: 12px 14px 4px;
}

#dumpViewerWrap .viewer-head {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 12px;
  border-block: 1px solid var(--line);
  background: #17171e;
  color: #ff666c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .8px;
}

#viewerCode {
  height: min(68vh, 720px);
  min-height: 360px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #09090d;
  color: #d7d7e0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.55;
  scrollbar-color: #555560 #111116;
  scrollbar-width: thin;
}

#viewerCode .vline {
  display: grid;
  grid-template-columns: 78px max-content;
  min-width: 100%;
  min-height: 24px;
  border-bottom: 1px solid #ffffff08;
  white-space: pre;
}

#viewerCode .vline > span:last-child {
  min-width: max-content;
  padding: 2px 14px 2px 0;
}

#viewerCode .ln {
  position: sticky;
  left: 0;
  z-index: 1;
  padding: 2px 12px 2px 8px;
  border-right: 1px solid var(--line);
  background: #111116;
  color: #777784;
  text-align: right;
  user-select: none;
}

#viewerCode .vline:hover {
  background: #ffffff08;
}

#viewerCode .vline.hit {
  background: #ffb02012;
}

#viewerCode .vline.cur {
  background: #ff202822;
  box-shadow: inset 3px 0 var(--red);
}

#viewerCode mark {
  border-radius: 2px;
  background: #ffca58;
  color: #17120a;
}

#viewerCode > .muted {
  padding: 10px 14px !important;
  border-top: 1px solid var(--line);
  background: #111116;
}

#viewerCode .vspacer {
  min-width: 1px;
  pointer-events: none;
}

@media (max-width: 720px) {
  #tab-hex .hex-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  #tab-hex .hex-head-right {
    width: 100%;
    justify-content: flex-start;
  }

  #tab-hex .hex-top {
    grid-template-columns: minmax(0, 1fr);
  }

  #tab-hex .hex-out > .row:first-child {
    align-items: flex-start;
    flex-direction: column;
  }

  #viewerCode {
    height: 65vh;
    min-height: 280px;
  }

  #dumpViewerWrap .viewer-head,
  #viewerCode .vline {
    grid-template-columns: 64px max-content;
  }
}
