/* Bitcoin / Litecoin Ordinals explorer */
:root {
  --ordx-accent: #2f7a4a;
}

[data-theme='dark'] {
  --ordx-accent: #6aaa7a;
}

.ordx-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--bg-panel-solid);
  color: var(--ltc-muted);
  font-size: 0.86rem;
}

.ordx-status strong {
  color: var(--text);
  font-weight: 600;
}

.ordx-status .ordx-spinner,
.ordx-dl .ordx-spinner {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  vertical-align: -0.12em;
  margin: 0 0.15rem;
}

.ordx-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
}

.ordx-search input {
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--bg-panel-solid);
  color: var(--text);
  font: inherit;
}

.ordx-search input:focus {
  outline: 2px solid rgba(52, 93, 157, 0.35);
  outline-offset: 1px;
}

.ordx-search button,
.ordx-btn,
.ordx-btn--ghost {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--ordx-accent) 42%, var(--border));
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--ordx-accent) 20%, var(--bg-panel-solid));
  color: var(--text);
  font: inherit;
  font-weight: 400;
  font-size: 0.82rem;
  padding: 0.55rem 0.8rem;
  gap: 0.4rem;
  cursor: pointer;
}

.ordx-search button:hover,
.ordx-btn:hover,
.ordx-btn--ghost:hover {
  background: color-mix(in srgb, var(--ordx-accent) 34%, var(--bg-panel-solid));
}

.ordx-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ordx-btn[aria-busy='true'] {
  cursor: wait;
  opacity: 0.85;
}

.ordx-search button .bi,
.ordx-btn .bi {
  font-size: 1.05em;
  line-height: 1;
  opacity: 0.92;
}

.ordx-btn .ordx-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border-top-color: var(--ordx-accent);
}

.ordx-hint {
  margin: -0.35rem 0 1rem;
  color: var(--ltc-muted);
  font-size: 0.82rem;
  text-align: center;
}

.ordx-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--bg-panel-solid);
}

/* Author `display: flex` otherwise beats the UA [hidden] rule → empty bar on
   address / inscription / block pages where type chips are intentionally off. */
.ordx-types[hidden] {
  display: none;
}

.ordx-type {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.32rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--inset-bg);
  color: inherit;
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1.3;
}

.ordx-type:hover {
  border-color: rgba(52, 93, 157, 0.55);
}

.ordx-type.is-on {
  border-color: rgba(52, 93, 157, 0.8);
  background: rgba(52, 93, 157, 0.2);
  font-weight: 600;
}

.ordx-type-count {
  color: var(--ltc-muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
}

.ordx-type.is-on .ordx-type-count {
  color: var(--text);
}

.ordx-lead-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0 0.35rem 0 0;
  padding: 0.12rem 0.5rem 0.12rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  background: rgba(52, 93, 157, 0.08);
  color: var(--ltc-muted);
  font-size: 0.82rem;
  line-height: 1.25;
  white-space: nowrap;
  vertical-align: middle;
}

.ordx-lead-chip .bi {
  color: var(--nav-ico-explorer, #2f7a4a);
  font-size: 0.95em;
  line-height: 1;
}

[data-theme='dark'] .ordx-lead-chip .bi {
  color: #6aaa7a;
}

#ordx-lead,
#opx-lead,
#rnx-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.35rem;
  max-width: none;
}

.ordx-msg {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.55rem;
  border: 1px solid var(--border);
  background: var(--bg-panel-solid);
  color: var(--ltc-muted);
  font-size: 0.92rem;
  text-align: center;
}

.ordx-msg--error {
  border-color: rgba(180, 70, 70, 0.35);
  color: var(--text);
}

.ordx-banner {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(180, 70, 70, 0.35);
  border-radius: 0.55rem;
  background: var(--bg-panel-solid);
  color: var(--text);
  font-size: 0.9rem;
  text-align: center;
}

.ordx-not-found {
  margin: 1.5rem auto 2rem;
  max-width: 36rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--bg-panel-solid);
}

.ordx-not-found__detail {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.45;
}

.ordx-not-found__detail a {
  color: var(--ltc-link, var(--text));
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.ordx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.75rem;
}

.ordx-empty {
  grid-column: 1 / -1;
  margin: 0.5rem 0 1rem;
  color: var(--ltc-muted);
  font-size: 0.9rem;
}

.ordx-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--bg-panel-solid);
  overflow: hidden;
  color: inherit;
}

.ordx-card-link {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  flex: 1;
}

.ordx-card:hover {
  border-color: rgba(52, 93, 157, 0.55);
}

.ordx-card-preview {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: rgba(52, 93, 157, 0.08);
  overflow: hidden;
}

.ordx-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b1020;
}

[data-theme='light'] .ordx-card-preview img {
  background: #e8eef6;
}

.ordx-card-preview span:not(.ordx-card-type-badge):not(.ordx-card-cursed-badge):not(.ordx-card-media-info):not(.ordx-nsfw-badge):not(.ordx-nsfw-warning-badge),
.ordx-preview-miss,
.ordx-preview-snippet {
  padding: 0.5rem;
  color: var(--ltc-muted);
  font-size: 0.75rem;
  text-align: center;
  word-break: break-word;
}

.ordx-card-snippet {
  align-self: stretch;
  justify-self: stretch;
  margin: 0;
  padding: 0.45rem 0.5rem;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
  line-height: 1.3;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  background: transparent;
}

.ordx-preview-pending {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.ordx-preview-pending .ordx-spinner {
  width: 1.6rem;
  height: 1.6rem;
  border-width: 2px;
}

.ordx-nsfw-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 8rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 120, 140, 0.45), transparent 42%),
    radial-gradient(circle at 78% 72%, rgba(120, 160, 255, 0.42), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(180, 120, 220, 0.35), transparent 55%),
    linear-gradient(135deg, #3a2f45 0%, #1f2430 55%, #2a1e28 100%);
  filter: blur(0.2px);
}

.ordx-nsfw-blurred {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 8rem;
  overflow: hidden;
}

.ordx-nsfw-blurred img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Client-side blur too: busts stale clear thumbs cached before server censor. */
  filter: blur(22px);
  transform: scale(1.12);
  transform-origin: center;
}

.ordx-nsfw-badge--overlay {
  position: absolute;
  left: auto;
  top: auto;
  right: 0.45rem;
  bottom: 0.45rem;
  z-index: 2;
  transform: none;
  pointer-events: none;
}

.ordx-nsfw-cover::before {
  content: '';
  position: absolute;
  inset: -12%;
  background: inherit;
  filter: blur(18px) saturate(1.35);
  transform: scale(1.08);
  opacity: 0.95;
}

.ordx-nsfw-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0.22rem;
  background: rgba(180, 20, 30, 0.92);
  color: #ffffff !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Must beat .ordx-nsfw-badge { position: relative } */
.ordx-nsfw-badge.ordx-nsfw-badge--overlay {
  position: absolute;
  left: auto;
  top: auto;
  right: 0.45rem;
  bottom: 0.45rem;
  z-index: 2;
  transform: none;
}

.ordx-nsfw-warning-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0.22rem;
  background: rgba(230, 126, 34, 0.94);
  color: #ffffff !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.ordx-viewer--nsfw {
  display: grid;
  place-items: center;
  min-height: 16rem;
  background: var(--panel-bg, rgba(0, 0, 0, 0.2));
  border-radius: 0.5rem;
  overflow: hidden;
}

.ordx-viewer--nsfw .ordx-nsfw-cover {
  min-height: 16rem;
}

.ordx-viewer--nsfw .ordx-nsfw-blurred {
  /* Shrink-wrap the image so the overlay badge sits on the picture, not the panel. */
  min-height: 0;
  height: auto;
  width: fit-content;
  max-width: 100%;
}

.ordx-viewer--nsfw .ordx-nsfw-blurred img {
  max-height: 70vh;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.ordx-card-media-btn {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  width: 2.85rem;
  height: 2.85rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.88);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  font-size: 1.35rem;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
}

.ordx-card-media-btn i {
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  line-height: 0;
}

.ordx-card-media-btn i::before {
  display: block;
  width: 1em;
  height: 1em;
  line-height: 1;
  vertical-align: 0;
}

.ordx-card-media-btn .bi-play-fill::before {
  transform: translateX(0.08em);
}

.ordx-card-media-btn:hover {
  background: rgba(21, 128, 61, 0.96);
}

.ordx-card-media-btn--off,
.ordx-card-media-btn--off:hover {
  cursor: default;
  background: rgba(185, 28, 28, 0.88);
  color: #fff;
}

.ordx-card-media-info {
  position: absolute;
  left: 0.4rem;
  bottom: 0.4rem;
  max-width: calc(100% - 4.1rem);
  padding: 0.18rem 0.42rem;
  border-radius: 0.55rem;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ordx-card-type-badge {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  z-index: 1;
  padding: 0.18rem 0.42rem;
  border-radius: 0.22rem;
  background: rgba(21, 128, 61, 0.92);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  pointer-events: none;
  white-space: nowrap;
}

.ordx-card-cursed-badge {
  position: absolute;
  left: 0.4rem;
  top: 0.4rem;
  z-index: 1;
  padding: 0.18rem 0.42rem;
  border-radius: 0.22rem;
  background: rgba(180, 90, 20, 0.94);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.25;
  pointer-events: none;
}

.ordx-card-num {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ordx-card-cursed-label {
  padding: 0.18rem 0.42rem;
  border-radius: 0.22rem;
  background: rgba(180, 90, 20, 0.92);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.25;
}

.ordx-card-preview:has(.ordx-card-media-btn) .ordx-card-type-badge {
  bottom: 3.45rem;
}

.ordx-card-meta {
  padding: 0.55rem 0.65rem 0.7rem;
  display: grid;
  gap: 0.2rem;
}

.ordx-card-meta strong {
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.ordx-card-date {
  color: var(--ltc-muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.ordx-card-meta small {
  color: var(--ltc-muted);
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ordx-media-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
}

.ordx-media-modal[hidden] {
  display: none !important;
}

.ordx-media-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.72);
}

.ordx-media-modal__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 52rem);
  max-height: 90vh;
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--bg-panel-solid);
  border: 1px solid var(--border);
}

.ordx-media-modal__close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  z-index: 2;
}

.ordx-media-modal__close i {
  pointer-events: none;
}

.ordx-media-modal__body {
  display: grid;
  place-items: center;
  min-height: 8rem;
}

.ordx-media-modal__body video,
.ordx-media-modal__body audio {
  width: 100%;
  max-height: 75vh;
}

.ordx-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 1rem 0 0;
}

.ordx-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0 0.85rem;
  width: 100%;
}

.ordx-pagination--bottom {
  margin: 1rem 0 0.25rem;
}

.ordx-pagination__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.28rem;
  width: 100%;
}

.ordx-pagination__item .ordx-page-link,
.ordx-pagination__item > span.ordx-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 2.15rem;
  min-height: 2.15rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  background: var(--bg-panel-solid);
  color: var(--text);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  line-height: 1;
}

.ordx-pagination__item a.ordx-page-link:hover {
  background: rgba(52, 93, 157, 0.18);
  border-color: rgba(52, 93, 157, 0.45);
}

.ordx-pagination__item.is-active .ordx-page-link {
  background: rgba(52, 93, 157, 0.28);
  border-color: rgba(52, 93, 157, 0.55);
  font-weight: 700;
}

.ordx-pagination__item.is-disabled .ordx-page-link {
  opacity: 0.45;
  pointer-events: none;
}

.ordx-pagination__item.is-ellipsis .ordx-page-link {
  border-color: transparent;
  background: transparent;
  min-width: 1.5rem;
  color: var(--ltc-muted);
}

.ordx-pagination__edge .ordx-page-link {
  padding-inline: 0.7rem;
}

.ordx-pagination__meta {
  margin: 0;
  text-align: center;
  color: var(--ltc-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.ordx-pagination__meta b {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ordx-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

.ordx-panel {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg-panel-solid);
  padding: 0.85rem;
  min-width: 0;
}

.ordx-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ltc-muted);
}

.ordx-panel > pre,
.ordx-json {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-break: break-all;
  white-space: pre-wrap;
}

.ordx-loading {
  display: grid;
  place-items: center;
  justify-items: center;
  gap: 0.75rem;
  min-height: 14rem;
  padding: 2rem 1rem;
  width: 100%;
}

.ordx-loading-label {
  margin: 0;
  color: var(--ltc-muted);
  font-size: 0.88rem;
  text-align: center;
}

.ordx-spinner {
  box-sizing: border-box;
  width: 2rem;
  height: 2rem;
  border: 2px solid color-mix(in srgb, var(--ltc-muted) 35%, transparent);
  border-top-color: var(--ltc-blue-bright, #4a7fd4);
  border-radius: 50%;
  animation: ordx-spin 0.7s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .ordx-spinner {
    animation: none;
    border-top-color: var(--ltc-muted);
    opacity: 0.75;
  }
}

.ordx-viewer .ordx-loading {
  min-height: 12rem;
  padding: 1.5rem 0.75rem;
}

.ordx-viewer {
  min-height: 16rem;
  display: grid;
  place-items: center;
  border: 1px dashed var(--border);
  border-radius: 0.55rem;
  overflow: auto;
  background: rgba(52, 93, 157, 0.06);
}

.ordx-viewer img,
.ordx-viewer video {
  max-width: 100%;
  max-height: 28rem;
  object-fit: contain;
}

.ordx-viewer audio {
  width: min(100%, 24rem);
}

.ordx-viewer pre {
  margin: 0;
  padding: 0.75rem;
  width: 100%;
  max-height: 28rem;
  overflow: auto;
  font-size: 0.78rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.ordx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.ordx-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 0.75rem;
  margin: 0;
  font-size: 0.9rem;
}

.ordx-dl dt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--ltc-muted);
}

.ordx-dl dt[hidden],
.ordx-dl dd[hidden] {
  display: none !important;
}

.ordx-dl dt .bi {
  flex: 0 0 auto;
  width: 1em;
  font-size: 0.95em;
  line-height: 1;
  opacity: 0.88;
}

.ordx-dl dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-variant-numeric: tabular-nums;
}

.ordx-num-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  line-height: 1;
}

.ordx-num-value {
  line-height: 1;
}

.ordx-num-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.ordx-num-line .ordx-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0.18rem 0.42rem;
  min-height: 0;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  vertical-align: middle;
}

.ordx-dl dd a,
.ordx-dl code {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.ordx-dl a {
  color: var(--ltc-blue-bright, #4a7fd4);
}

.ordx-badge {
  display: inline-block;
  padding: 0.18rem 0.42rem;
  border-radius: 0.22rem;
  border: 1px solid var(--border);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ltc-muted);
}

.ordx-badge[hidden] {
  display: none !important;
}

.ordx-badge--warn,
.ordx-badge--cursed {
  border-color: transparent;
  border-radius: 0.22rem;
  background: rgba(180, 90, 20, 0.92);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ordx-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: -0.35rem 0 0.75rem;
}

.ordx-panel h2 .ordx-badge {
  text-transform: uppercase;
}

.ordx-hex {
  margin-top: 0;
}

.ordx-hex pre {
  margin: 0.5rem 0 0;
  padding: 0.75rem;
  max-height: min(70vh, 40rem);
  overflow: auto;
  border-radius: 0.45rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.16);
  font-size: 0.72rem;
  word-break: break-all;
  white-space: pre-wrap;
}

[data-theme='light'] .ordx-hex pre {
  background: rgba(26, 36, 51, 0.04);
}

.ordx-rail-note {
  margin: 0.75rem 0 0;
  color: var(--ltc-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}
