:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-subtle: #f9fbfe;
  --text: #172033;
  --text-strong: #101827;
  --text-muted: #6f7d94;
  --border: #dce3ed;
  --border-soft: #e8edf4;
  --primary: #285fb5;
  --primary-hover: #214f96;
  --primary-soft: #edf4ff;
  --success: #167548;
  --success-soft: #e8f6ee;
  --code: #28599b;
  --code-hover: #173f79;
  --interactive-hover: rgba(39, 94, 181, 0.07);
  --shadow-sm: 0 4px 16px rgba(26, 43, 72, 0.045);
  --shadow-md: 0 10px 30px rgba(26, 43, 72, 0.07);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(52, 102, 180, 0.035), transparent 34rem), var(--bg);
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select {
  font: inherit;
}
button,
input,
select,
.copyable-code,
.icon-link,
.row-copy-button {
  transition:
    color 0.15s,
    background-color 0.15s,
    border-color 0.15s,
    box-shadow 0.15s,
    opacity 0.15s,
    transform 0.15s;
}
button {
  border: 0;
  border-radius: 8px;
  padding: 10px 15px;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
}
button:hover {
  background: var(--primary-hover);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button.secondary,
.button.secondary {
  color: var(--primary);
  background: var(--primary-soft);
}
button.secondary:hover,
.button.secondary:hover {
  background: #e1ecfc;
}
.shell {
  width: min(1160px, calc(100% - 36px));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--border);
}
.brand {
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
}
nav {
  display: flex;
  gap: 22px;
}
nav a {
  padding: 27px 0 23px;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
}
nav a.active,
nav a:hover {
  color: var(--text);
  border-color: var(--primary);
  text-decoration: none;
}
.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.86rem;
  white-space: nowrap;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.language-picker select {
  min-height: 36px;
  padding: 7px 26px 7px 9px;
  color: #53627a;
  background: #fff;
  font-size: 0.8rem;
}
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #53627a;
  border-radius: 8px;
}
.icon-link:hover {
  color: #172033;
  background: #edf3fc;
  text-decoration: none;
}
.icon-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  color: #53627a;
  background: #edf1f7;
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}
.badge.verified {
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid rgba(22, 117, 72, 0.16);
}
main {
  min-width: 0;
  padding: 64px 0 48px;
}
.eyebrow {
  margin: 0 0 8px;
  color: #5274aa;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1 {
  max-width: 780px;
  margin: 0 0 14px;
  color: #101827;
  font-size: clamp(2.3rem, 6vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
h2 {
  margin: 0;
  color: #152037;
  font-size: 1.15rem;
}
.lede {
  max-width: 690px;
  margin: 0;
  color: #66738a;
  font-size: 1.06rem;
}
.stat-card span,
.stat-card small,
.result-fields dt,
.evidence-summary span,
.bar-row span,
.table-meta,
.muted {
  color: #748198;
  font-size: 0.83rem;
}
code,
.address-label,
.address-link {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  overflow-wrap: anywhere;
}
code {
  color: #315c9b;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 22px;
}
.stat-card,
.panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.stat-card {
  min-width: 0;
  padding: 20px;
}
.stat-card strong {
  display: block;
  margin: 7px 0 1px;
  color: #111b2e;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  overflow-wrap: anywhere;
}
.warning {
  border-color: #e3c889;
  background: #fffdf7;
}
.panel {
  padding: 24px;
  margin: 14px 0;
}
.section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.search-panel {
  max-width: 760px;
  padding: 30px 32px 28px;
  border-radius: var(--radius-lg);
  margin-inline: auto;
  box-shadow:
    0 1px 2px rgba(26, 43, 72, 0.035),
    var(--shadow-md);
}
.search-panel h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.search-row {
  display: flex;
  gap: 9px;
}
.search-row input,
.search-row button {
  min-height: 48px;
}
.search-row button {
  min-width: 92px;
  font-weight: 650;
}
input,
select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--text);
  background: var(--surface-subtle);
  outline: none;
}
input:focus,
select:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(48, 111, 203, 0.27);
  outline-offset: 2px;
}
.search-row input {
  width: 100%;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background-color 0.15s;
}
.search-row input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(39, 94, 181, 0.14);
}
.terminal-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}
.terminal-context > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.terminal-context span {
  color: #748198;
  font-size: 0.83rem;
}
.terminal-context strong {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.terminal-context code {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copyable-code {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 6px;
  margin: -3px -6px;
  border: 0;
  border-radius: 6px;
  color: var(--code);
  background: transparent;
  text-align: left;
  cursor: copy;
}
.copyable-code:hover {
  color: var(--code-hover);
  background: var(--interactive-hover);
}
.copyable-code:active {
  transform: translateY(1px);
}
.copyable-code code {
  pointer-events: none;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.terminal-context .copyable-code {
  overflow: hidden;
}
.terminal-context .copyable-code code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lookup-placeholder,
.lookup-result {
  margin-top: 18px;
}
#lookup-result:empty {
  display: none;
}
.lookup-placeholder,
.muted {
  color: #8994a8;
}
.balance-result {
  margin-top: 26px;
  padding: 24px 0 8px;
  border-top: 1px solid var(--border-soft);
}
.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.address-label {
  font-size: 1.08rem;
  font-weight: 650;
}
.text-button {
  padding: 2px 5px;
  color: #2558a7;
  background: transparent;
  font-size: 0.78rem;
}
.text-button:hover {
  color: #173b75;
  background: #edf3fc;
}
.address-cell {
  display: grid;
  grid-template-columns: minmax(0, auto) 30px;
  align-items: center;
  gap: 4px;
  min-width: 150px;
}
.row-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 4px;
  color: #53627a;
  background: transparent;
  opacity: 0;
}
.row-copy-button:hover {
  color: #172033;
  background: #edf3fc;
}
.row-copy-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
tr:hover .row-copy-button,
tr:focus-within .row-copy-button {
  opacity: 1;
}
.balance {
  display: block;
  margin: 12px 0 24px;
  color: #101827;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-variant-numeric: tabular-nums;
  font-weight: 720;
  letter-spacing: -0.04em;
}
.balance small {
  color: #6c7890;
  font-size: 0.95rem;
  font-weight: 550;
  letter-spacing: 0;
}
.result-fields,
.details {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 9px 18px;
  margin: 0;
}
.result-fields {
  padding: 16px 0;
}
.result-fields dd,
.details dd {
  margin: 0;
  color: var(--text);
  font-weight: 520;
  overflow-wrap: anywhere;
}
.good {
  color: var(--success) !important;
}
.evidence-wrap {
  margin-top: 10px;
  border-top: 1px solid var(--border-soft);
  padding-top: 22px;
}
.evidence-summary {
  display: grid;
  grid-template-columns: 1.25fr 1.25fr 1fr;
  gap: 16px;
}
.evidence-summary div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--surface-subtle);
}
.evidence-summary strong {
  font-size: 1.05rem;
}
details {
  margin-top: 22px;
}
summary {
  color: #2558a7;
  cursor: pointer;
  font-size: 0.88rem;
}
.details {
  margin-top: 15px;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  font-size: 0.86rem;
}
.evidence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.notice {
  border-left: 4px solid #d6a13d;
  padding: 16px 18px;
  color: #59677d;
  background: #fffbf2;
}
.notice strong {
  color: #303b50;
}
.notice p {
  margin: 7px 0 0;
}
.evidence-unavailable {
  color: #9a6b18;
}
.button {
  display: inline-block;
  border-radius: 8px;
  padding: 10px 15px;
  white-space: nowrap;
}
.page-heading {
  margin-bottom: 26px;
}
.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.two-column .panel {
  margin: 0 0 14px;
}
.bar-row {
  margin: 18px 0;
}
.bar-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.bar-row strong {
  color: #35435a;
  font-size: 0.82rem;
  font-weight: 550;
  text-align: right;
}
.bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef1f6;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #5b83c2;
}
.histogram {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  height: 210px;
  padding: 12px 0 0;
  border-bottom: 1px solid #dfe4ee;
}
.histogram-col {
  display: flex;
  align-items: center;
  flex: 1;
  flex-direction: column;
  justify-content: end;
  height: 100%;
  gap: 6px;
  text-align: center;
}
.histogram-bar {
  width: 70%;
  min-height: 6px;
  border-radius: 5px 5px 0 0;
  background: #6c8fc5;
}
.histogram-col span {
  color: #66738a;
  font-size: 0.68rem;
  line-height: 1.1;
}
.histogram-col small {
  color: #8b96a8;
  font-size: 0.7rem;
}
.metric-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px 18px;
  margin-top: 18px;
  color: #748198;
  font-size: 0.83rem;
}
.metric-list strong {
  display: block;
  color: #334057;
  font-size: 0.9rem;
}
.top-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-search {
  flex: 1;
  min-width: 160px;
  margin-left: auto;
}
.filter-search input {
  width: 100%;
}
.page-size {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #748198;
  font-size: 0.84rem;
  white-space: nowrap;
}
.table-panel {
  padding-bottom: 18px;
}
.table-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
th,
td {
  padding: 11px 8px;
  border-bottom: 1px solid #e8ebf1;
  text-align: left;
  white-space: nowrap;
}
th {
  color: #748198;
  font-size: 0.77rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
td strong {
  color: #1c2940;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 0 34px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.83rem;
}
.footer-meta,
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.site-footer strong {
  color: #4f5d73;
}
.footer-links {
  justify-content: end;
  text-align: right;
}
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: #1d2b43;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.15s,
    transform 0.15s;
  pointer-events: none;
}
.toast.visible {
  opacity: 1;
  transform: translateY(0);
}
.fatal {
  padding: 100px 0;
}
.loading {
  padding: 100px 0;
  color: #748198;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 840px) {
  .site-header {
    flex-wrap: wrap;
    gap: 8px 24px;
    padding: 14px 0 0;
  }
  .header-meta {
    width: 100%;
    margin-left: 0;
    padding-bottom: 12px;
  }
  .header-actions {
    margin-left: auto;
  }
  nav a {
    padding: 8px 0 12px;
  }
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-column {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .two-column .panel {
    margin-bottom: 14px;
  }
  .top-controls {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .filter-search {
    flex-basis: 100%;
    margin-left: 0;
  }
}
@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 1160px);
  }
  main {
    padding: 36px 0 32px;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .search-row,
  .terminal-context {
    align-items: stretch;
    flex-direction: column;
  }
  .search-panel {
    padding: 24px 20px 22px;
  }
  .terminal-context {
    grid-template-columns: 1fr;
  }
  .search-row button {
    width: 100%;
  }
  .panel {
    padding: 18px;
  }
  .evidence-summary,
  .result-fields,
  .details {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .evidence-summary {
    gap: 14px;
  }
  .result-fields dt,
  .details dt {
    margin-top: 7px;
  }
  .histogram {
    gap: 2px;
  }
  .histogram-col span {
    font-size: 0.58rem;
  }
  .metric-list {
    grid-template-columns: 1fr;
  }
  .site-footer {
    flex-direction: column;
    padding-bottom: 30px;
  }
  .footer-links {
    justify-content: start;
    text-align: left;
  }
  .row-copy-button {
    opacity: 1;
  }
}
@media (hover: none), (pointer: coarse) {
  .row-copy-button {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms !important;
  }
}
