:root {
  color-scheme: dark;
  --bg: #07100f;
  --surface: #0d1917;
  --surface-2: #12231f;
  --line: #203a34;
  --text: #eefbf5;
  --muted: #91aaa2;
  --green: #69f0ae;
  --green-2: #19c77a;
  --amber: #ffc857;
  --red: #ff7085;
  --radius: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 80% -10%, #12352d 0, transparent 34rem), var(--bg); }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button { cursor: pointer; }

.warning { padding: 7px 20px; background: #3a2b09; border-bottom: 1px solid #6d5112; color: #ffe6a6; text-align: center; font-size: 12px; font-weight: 750; letter-spacing: .055em; }
.site-header { min-height: 76px; padding: 14px max(20px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: auto minmax(260px, 540px) auto; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); background: rgba(7, 16, 15, .88); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 760; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #052017; background: linear-gradient(145deg, #8bffc6, #2bdc8a); box-shadow: 0 0 24px rgba(43, 220, 138, .18); font-weight: 900; }
.search { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.search:focus-within { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(25, 199, 122, .12); }
.search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; padding: 10px 13px; color: var(--text); }
.search button { border: 0; border-left: 1px solid var(--line); background: var(--surface-2); color: var(--text); padding: 0 14px; }
.network-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.network-badge, .health, .status { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 10px; white-space: nowrap; font-size: 12px; font-weight: 700; }
.network-badge { border: 1px solid #2d6453; color: #a9f5d1; background: #102a23; }
.health { color: var(--muted); }
.health i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.health.online { color: #a9f5d1; }
.health.online i { background: var(--green); box-shadow: 0 0 8px var(--green); }
.health.offline { color: #ff9aaa; }
.health.offline i { background: var(--red); }

.page { width: min(1180px, calc(100% - 40px)); min-height: calc(100vh - 190px); margin: 38px auto 60px; }
.eyebrow { margin: 0 0 7px; color: var(--green); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; }
h1 { margin: 0; font-size: clamp(28px, 4vw, 46px); letter-spacing: -.045em; line-height: 1.1; }
h2 { margin: 0; font-size: 18px; }
.lede { margin: 10px 0 0; color: var(--muted); max-width: 680px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.updated { color: var(--muted); font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.stat, .card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(18, 35, 31, .94), rgba(10, 22, 19, .96)); border-radius: var(--radius); }
.stat { padding: 18px; }
.stat-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.stat-value { display: block; margin-top: 7px; font-size: 23px; font-weight: 760; overflow-wrap: anywhere; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card { min-width: 0; overflow: hidden; }
.card + .card, .stack > .card + .card { margin-top: 18px; }
.grid .card + .card { margin-top: 0; }
.card-header { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-body { padding: 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 11px 16px; color: var(--muted); text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
td { padding: 13px 16px; border-top: 1px solid var(--line); white-space: nowrap; }
tbody tr:hover { background: rgba(105, 240, 174, .025); }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .94em; }
.muted { color: var(--muted); }
.value-list { margin: 0; display: grid; grid-template-columns: minmax(140px, 220px) 1fr; }
.value-list dt, .value-list dd { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.value-list dt { color: var(--muted); font-size: 12px; }
.value-list dd { overflow-wrap: anywhere; }
.value-list dt:last-of-type, .value-list dd:last-of-type { border-bottom: 0; }
.inline { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; }
.copy { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); }
.copy:hover { color: var(--green); border-color: #346b5a; }
.copy.copied { color: var(--green); }
.status.success { color: #a9f5d1; background: #123a2d; }
.status.failed { color: #ffacb8; background: #451824; }
.status.pending { color: #ffe199; background: #46360f; }
.status.confirmed { color: #b6d6ff; background: #162f4b; }
.calldata, pre { margin: 0; padding: 14px; max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; background: #07110f; color: #c9ddd6; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.6 "SFMono-Regular", Consolas, monospace; }
.calldata-meta { margin-bottom: 10px; }
.anchor-card { border: 1px solid #377b63; background: linear-gradient(145deg, #123a2d, #0c241d); }
.anchor-card .card-header { color: #aff8d4; }
details summary { cursor: pointer; padding: 16px 18px; font-weight: 700; }
details pre { border: 0; border-top: 1px solid var(--line); border-radius: 0; max-height: 620px; }
.empty { color: var(--muted); padding: 28px 18px; text-align: center; }
.state { min-height: 340px; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); }
.state h1 { color: var(--text); font-size: 27px; }
.state p { max-width: 560px; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--green); animation: spin .8s linear infinite; }
.retry { margin-top: 9px; padding: 9px 15px; border: 1px solid #377b63; border-radius: 8px; color: var(--text); background: #123a2d; }
.error-code { font-size: 64px; line-height: 1; color: var(--red); font-weight: 850; }
footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 850px) {
  .site-header { grid-template-columns: 1fr auto; gap: 12px; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .network-tools .health { display: none; }
  .stats, .grid { grid-template-columns: 1fr; }
  .grid .card + .card { margin-top: 0; }
}
@media (max-width: 560px) {
  .warning { padding-inline: 12px; }
  .site-header { padding: 12px 14px; }
  .brand span:last-child { display: none; }
  .page { width: calc(100% - 24px); margin-top: 26px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .value-list { grid-template-columns: 1fr; }
  .value-list dt { padding-bottom: 3px; border-bottom: 0; }
  .value-list dd { padding-top: 3px; }
  footer { width: calc(100% - 24px); flex-direction: column; gap: 7px; }
}
