:root {
  --black: #000000;
  --white: #ffffff;
  --ink: #ffffff;
  --muted: #9aa0a6;
  --line: #2f3336;
  --panel: #000000;
  --bg: #000000;
  --accent: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: var(--white);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-header {
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 96px;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}

.brand:hover {
  text-decoration: none;
}

.brand-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--black);
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}

.brand-copy {
  display: grid;
}

.brand-copy strong {
  font-size: 26px;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 14px;
}

.header-search {
  display: flex;
  gap: 10px;
}

.header-search input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--black);
  color: var(--white);
  padding: 0 14px;
  font-size: 15px;
}

.header-search input::placeholder {
  color: var(--muted);
}

.header-search button {
  height: 44px;
  border: 1px solid var(--white);
  border-radius: 6px;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
}

.header-search button:hover {
  background: #e7e9ea;
}

.rpc-pill {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--muted);
  white-space: nowrap;
}

.rpc-pill strong {
  color: var(--white);
  font-size: 14px;
}

.hero-panel,
.panel,
.metric-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
}

.hero-panel {
  margin: 32px 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  border-top: 1px solid var(--line);
}

.eyebrow,
.page-title span,
.metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

.hero-copy h1 {
  margin: 6px 0 8px;
  font-size: 36px;
  line-height: 1.1;
}

.hero-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-policy {
  min-width: 180px;
  align-self: center;
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.hero-policy span {
  color: var(--white);
  font-weight: 800;
}

.hero-policy strong {
  font-size: 34px;
  color: var(--white);
}

.hero-policy small {
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.network-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  padding: 18px;
  min-height: 122px;
  display: grid;
  align-content: start;
  gap: 6px;
}

.metric-card strong {
  font-size: 28px;
  line-height: 1.15;
  color: var(--white);
  overflow-wrap: anywhere;
}

.metric-card small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr);
  gap: 24px;
  margin-bottom: 28px;
}

.side-stack {
  display: grid;
  align-content: start;
  gap: 24px;
}

.panel {
  padding: 22px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.lookup-panel {
  margin-bottom: 24px;
}

.panel-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-title h2 {
  margin-bottom: 0;
  font-size: 20px;
  color: var(--white);
}

.panel-title small {
  color: var(--muted);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  color: var(--muted);
  font-size: 12px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  overflow-wrap: anywhere;
}

.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.data-table small {
  color: var(--muted);
}

.lookup-form,
.copy-url {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 12px;
}

.lookup-form input,
.copy-url input {
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  padding: 0 16px;
  font: inherit;
}

.lookup-form input::placeholder {
  color: var(--muted);
}

.lookup-form button,
.copy-url button {
  height: 44px;
  border: 1px solid var(--white);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-weight: 800;
  padding: 0 18px;
  cursor: pointer;
}

.lookup-form button:hover,
.copy-url button:hover {
  background: #e7e9ea;
}

.side-stack .lookup-form {
  grid-template-columns: 1fr;
}

.side-stack .lookup-form button {
  width: 100%;
}

.copy-url input {
  font-size: 13px;
}

.holding-list {
  display: grid;
  gap: 12px;
}

.holding-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--black);
  padding: 16px;
}

.holding-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.asset-symbol {
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.asset-type,
.holding-name {
  color: var(--muted);
}

.asset-type {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.holding-amount {
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.hash-cell,
.mono,
.hash-line,
.json-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}

.detail-list,
.detail-grid {
  display: grid;
  gap: 10px 18px;
  margin: 0;
}

.detail-list {
  grid-template-columns: 130px minmax(0, 1fr);
}

.detail-grid {
  grid-template-columns: 180px minmax(0, 1fr);
}

.detail-list dt,
.detail-grid dt {
  color: var(--muted);
  font-weight: 700;
}

.detail-list dd,
.detail-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.page-title {
  margin: 32px 0 20px;
}

.page-title h1 {
  margin: 6px 0;
  color: var(--white);
  font-size: 32px;
}

.hash-line {
  color: var(--white);
}

.json-block {
  max-height: 540px;
  overflow: auto;
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
}

.empty {
  margin-bottom: 0;
  color: var(--muted);
}

.tx-list {
  display: grid;
  gap: 12px;
}

.tx-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--black);
}

@media (max-width: 860px) {
  .header-inner,
  .metric-grid,
  .content-grid,
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .hero-panel {
    display: grid;
  }

  .rpc-pill {
    white-space: normal;
  }

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

  .detail-grid,
  .detail-list,
  .lookup-form,
  .copy-url {
    grid-template-columns: 1fr;
  }
}
