:root {
  color-scheme: dark;
  --bg: #0b0b10;
  --ink: #efeeef;
  --muted: #aaa8ad;
  --quiet: #88858e;
  --line: rgba(230, 227, 239, .14);
  --amber: #debd98;
  --red: #eaa5a1;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 32px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; opacity: .4; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid #ded9e7; outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; background: var(--ink); color: var(--bg); padding: 12px; z-index: 20; }
.skip-link:focus { top: 12px; }
#tunnel { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .76; }
.background-shade { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 47%, rgba(11,11,16,.72) 0%, rgba(11,11,16,.38) 35%, rgba(11,11,16,.08) 72%); }
.has-results .background-shade { background: linear-gradient(rgba(11,11,16,.46), rgba(11,11,16,.91) 540px); }
.site-header { position: absolute; z-index: 2; top: 0; left: 0; width: 100%; padding: 28px 42px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: baseline; font-size: 23px; font-weight: 500; letter-spacing: -1.2px; color: #dbd8de; }
.brand > span { margin-left: 2px; color: #918999; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--quiet); }
.icon-button:hover:not(:disabled) { color: var(--ink); }
.icon-button svg { width: 15px; height: 15px; }
.site-shell { position: relative; z-index: 1; max-width: 1080px; padding: 0 40px; margin: 0 auto; }
.workspace { display: flex; align-items: center; justify-content: center; min-height: 100svh; padding: 120px 0; }
.composer-area { width: 100%; max-width: 700px; transform: translateY(-12px); }
.composer { width: 100%; }
.textarea-wrap { border-bottom: 1px solid rgba(233,227,244,.24); transition: border-color .2s; }
.textarea-wrap:focus-within { border-color: rgba(242,238,249,.65); }
.textarea-wrap.invalid { border-color: var(--red); }
textarea { display: block; width: 100%; min-height: 126px; max-height: 320px; padding: 12px 0 18px; resize: vertical; background: transparent; border: 0; border-radius: 0; outline: none; font: 17px/1.85 var(--mono); overflow-wrap: anywhere; }
textarea:focus-visible { outline: none; }
textarea::placeholder { color: #625d68; opacity: 1; font: 400 24px/1.7 var(--font); letter-spacing: .4px; }
.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 9px; }
.input-tools, .submit-actions { display: flex; align-items: center; gap: 22px; min-width: 0; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: 12px; min-height: 38px; white-space: nowrap; transition: color .18s; }
.text-button:hover:not(:disabled) { color: #fff; }
.text-button svg { width: 14px; height: 14px; }
.address-count { color: var(--quiet); font: 10px var(--mono); white-space: nowrap; }
.scan-button { display: flex; align-items: center; justify-content: flex-end; gap: 18px; min-height: 44px; font-size: 14px; letter-spacing: .4px; white-space: nowrap; }
.scan-button > [data-icon] { transition: transform .18s; }
.scan-button:hover:not(:disabled) > [data-icon] { transform: translateX(4px); }
.scan-button:disabled { opacity: .5; }
.input-feedback { font-size: 11px; color: var(--muted); padding: 10px 0 0; }
.input-feedback.error { color: var(--red); }
.input-feedback .text-button { display: inline; margin-left: 10px; text-decoration: underline; min-height: 0; color: inherit; }
.composer-settings { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-top: 8px; color: var(--quiet); }
.range-options { flex: 1; min-width: 0; }
.range-options > summary { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; font-size: 10px; cursor: pointer; list-style: none; }
.range-options > summary::-webkit-details-marker { display: none; }
.range-options > summary:hover { color: var(--ink); }
.range-options summary svg { width: 12px; height: 12px; transition: transform .18s; }
.range-options[open] summary svg { transform: rotate(180deg); }
.range-content { padding-top: 5px; color: var(--muted); }
.range-content p { font-size: 11px; line-height: 1.9; margin: 8px 0; }
.chain-options { display: flex; flex-wrap: wrap; gap: 5px 22px; margin: 14px 0 17px; }
.chain-option { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; font-size: 11px; cursor: pointer; color: #c4becb; }
.chain-option input { accent-color: #d7d0dd; width: 12px; height: 12px; margin: 0; }
.service-info { display: flex; gap: 16px; color: var(--quiet); }
.shortcut { font-size: 9px; line-height: 32px; white-space: nowrap; }
.notice { color: var(--amber); font-size: 12px; line-height: 1.8; padding-top: 18px; }
.has-results .workspace { min-height: 0; padding: 145px 0 70px; }
.has-results .composer-area { transform: none; }
.results-section { padding-bottom: 70px; }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.results-heading h1 { font-size: 18px; font-weight: 400; margin: 0; }
#result-count { margin-left: 14px; font-size: 11px; color: var(--quiet); }
.result-actions { display: flex; gap: 23px; }
.scan-progress { margin: 20px 0 30px; }
.progress-copy { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--muted); }
#progress-count { font: 11px var(--mono); }
progress { appearance: none; width: 100%; height: 2px; display: block; margin-top: 12px; border: 0; background: var(--line); }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: #c4bbd0; transition: width .2s; }
progress::-moz-progress-bar { background: #c4bbd0; }
.scan-progress p { font-size: 10px; color: var(--quiet); margin: 10px 0 0; }
.discovery-note { font-size: 11px; color: var(--muted); line-height: 1.85; margin: 15px 0 22px; white-space: pre-line; }
.discovery-note.warning { color: var(--amber); }
.asset-contract { display: block; max-width: 100%; color: var(--quiet); font: 9px/1.7 var(--mono); overflow-wrap: anywhere; }
.zero-balance { color: var(--quiet) !important; font-size: 10px !important; }
.summary-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 38px; margin: 40px 0 48px; }
.summary-cell { min-width: 0; }
.summary-cell > span { font-size: 11px; color: var(--muted); }
.summary-cell > span small { font: 9px var(--mono); margin-left: 7px; }
.summary-cell strong { display: block; font: 400 30px/1.4 var(--mono); letter-spacing: -1.4px; margin: 12px 0 8px; overflow-wrap: anywhere; }
.summary-cell strong small { font: 11px var(--font); color: var(--quiet); letter-spacing: 0; }
.summary-cell.total strong { font-size: 39px; }
.summary-cell.total strong.long-value { font-size: clamp(18px, 5.8vw, 27px); }
.summary-cell p { font-size: 10px; color: var(--quiet); margin: 0; }
.result-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.filter-tabs { display: flex; align-items: center; gap: 25px; }
.filter-tabs button { color: var(--quiet); font-size: 12px; min-height: 38px; position: relative; }
.filter-tabs button.active { color: var(--ink); }
.filter-tabs button.active::after { content: ''; position: absolute; bottom: -11px; left: 0; right: 0; height: 1px; background: #dfd7e8; }
.result-search { display: flex; align-items: center; gap: 9px; color: var(--quiet); width: 232px; max-width: 100%; }
.result-search svg { width: 14px; height: 14px; }
.result-search input { width: 100%; min-width: 0; border: 0; padding: 10px 0; background: transparent; font-size: 11px; }
.result-search input::placeholder { color: var(--quiet); }
.wallet-result { border-bottom: 1px solid var(--line); }
.wallet-result > summary { display: flex; align-items: center; gap: 24px; padding: 23px 0; cursor: pointer; list-style: none; }
.wallet-result > summary::-webkit-details-marker { display: none; }
.wallet-avatar { font: 10px var(--mono); color: var(--quiet); flex-shrink: 0; }
.wallet-identity { display: flex; flex-direction: column; min-width: 0; gap: 5px; }
.wallet-address { font: 13px var(--mono); overflow-wrap: anywhere; }
.wallet-meta { font-size: 10px; color: var(--quiet); }
.wallet-value { display: flex; flex-direction: column; align-items: flex-end; margin-left: auto; gap: 4px; min-width: 0; }
.wallet-value strong { font: 400 16px var(--mono); overflow-wrap: anywhere; text-align: right; }
.wallet-value > span { font-size: 9px; color: var(--quiet); }
.wallet-result summary > svg { width: 13px; height: 13px; color: var(--quiet); transition: transform .18s; }
.wallet-result[open] summary > svg { transform: rotate(180deg); }
.wallet-detail { padding: 0 0 24px 37px; }
.full-address { display: flex; align-items: center; gap: 14px; margin-bottom: 15px; color: var(--muted); }
.full-address code { font: 11px/1.8 var(--mono); overflow-wrap: anywhere; word-break: break-all; }
.copy-button { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; color: var(--muted); }
.copy-button svg { width: 13px; height: 13px; }
.asset-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.asset-table th { color: var(--quiet); font-size: 10px; font-weight: 400; text-align: left; padding: 10px 8px 10px 0; }
.asset-table td { padding: 12px 8px 12px 0; color: #d0cad6; vertical-align: top; }
.asset-table th:nth-child(3), .asset-table th:nth-child(4), .asset-table td:nth-child(3), .asset-table td:nth-child(4) { text-align: right; }
.asset-table td:nth-child(3), .asset-table td:nth-child(4) { font: 11px/1.7 var(--mono); overflow-wrap: anywhere; }
.asset-table a { display: inline-flex; align-items: center; gap: 5px; }
.asset-table a:hover { color: white; }
.asset-table a svg { width: 10px; height: 10px; opacity: .6; }
.asset-name { display: block; font-size: 9px; color: var(--quiet); max-width: 180px; }
.status-badge { font-size: 10px; }
.status-badge.partial, .chain-error { color: var(--amber); }
.chain-error { text-align: left !important; font: 11px/1.7 var(--font) !important; overflow-wrap: anywhere; }
.result-footnote { font-size: 10px; line-height: 1.9; color: var(--quiet); max-width: 800px; margin: 24px 0 0; }
.reference-value { color: var(--muted); }
.protocol-records { margin: 0 0 20px; }
.protocol-records > summary { display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; font-size: 12px; color: var(--muted); list-style: none; }
.protocol-records > summary::-webkit-details-marker { display: none; }
.protocol-records > summary > span { margin-left: auto; font: 10px/1.8 var(--mono); }
.protocol-records > summary > svg { width: 12px; height: 12px; flex-shrink: 0; }
.protocol-records[open] > summary > svg { transform: rotate(180deg); }
.protocol-note { font-size: 10px; line-height: 1.8; color: var(--quiet); }
.position-asset { display: block; overflow-wrap: anywhere; }
.no-matches { text-align: center; padding: 50px 0; color: var(--muted); font-size: 12px; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); padding: 11px 20px; max-width: calc(100% - 32px); background: #e1dce6; color: #211c28; z-index: 50; font-size: 12px; }
.noscript { position: fixed; bottom: 0; background: var(--bg); color: var(--ink); padding: 20px; width: 100%; z-index: 99; }
@media (max-width: 720px) {
  .site-header { padding: 19px 22px; }
  .brand { font-size: 21px; }
  .site-shell { padding: 0 24px; }
  .workspace { padding: 100px 0; }
  .composer-area { transform: translateY(-22px); }
  textarea { min-height: 144px; font-size: 14px; }
  textarea::placeholder { font-size: 21px; letter-spacing: 0; }
  .composer-actions { gap: 15px; flex-wrap: wrap; }
  .input-tools { gap: 17px; }
  .submit-actions { margin-left: auto; gap: 15px; }
  .scan-button { gap: 10px; font-size: 13px; }
  .text-button { font-size: 11px; }
  .address-count { display: none; }
  .shortcut { display: none; }
  .composer-settings { margin-top: 6px; }
  .range-options > summary { font-size: 10px; }
  .chain-options { gap: 4px 16px; }
  .has-results .workspace { padding: 118px 0 46px; }
  .results-heading { align-items: flex-start; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
  .results-heading h1 { font-size: 17px; }
  #result-count { font-size: 10px; }
  .result-actions { margin-left: auto; gap: 17px; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; margin: 30px 0 35px; }
  .summary-cell.total { grid-column: 1 / -1; }
  .summary-cell.total strong { font-size: 36px; }
  .summary-cell strong { font-size: 25px; margin: 9px 0 7px; }
  .summary-cell p { font-size: 9px; }
  .result-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .filter-tabs { gap: 28px; }
  .filter-tabs button.active::after { bottom: 0; }
  .result-search { width: 100%; }
  .wallet-result > summary { gap: 12px; padding: 20px 0; }
  .wallet-avatar { font-size: 9px; }
  .wallet-address { font-size: 11px; }
  .wallet-meta { font-size: 9px; }
  .wallet-value strong { font-size: 13px; }
  .wallet-value > span { font-size: 8px; }
  .wallet-result summary > svg { width: 11px; height: 11px; }
  .wallet-detail { padding-left: 0; }
  .full-address code { font-size: 10px; }
  .asset-table { table-layout: fixed; font-size: 10px; }
  .asset-table th { font-size: 9px; padding-right: 4px; }
  .asset-table td { padding-right: 4px; overflow-wrap: anywhere; }
  .asset-table td:nth-child(3), .asset-table td:nth-child(4) { font-size: 9px; }
  .asset-table th:first-child { width: 26%; }
  .asset-table th:nth-child(2) { width: 21%; }
  .asset-table th:nth-child(3) { width: 28%; }
  .asset-table th:nth-child(4) { width: 25%; }
  .asset-table a svg { display: none; }
  .asset-name, .status-badge { font-size: 9px; }
  .result-footnote { font-size: 9px; }
  .results-section { padding-bottom: 40px; }
}
@media (max-width: 360px) {
  .site-shell { padding: 0 19px; }
  textarea::placeholder { font-size: 19px; }
  .input-tools { gap: 13px; }
  .submit-actions { gap: 12px; }
  .scan-button { font-size: 12px; gap: 7px; }
  .wallet-avatar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
