:root {
  --bg: #0a0a0a;
  --rail: #0d0d0d;
  --panel: #101010;
  --line: #1e1e1e;
  --ink: #f9f9f9;
  --muted: #bfbfbf;
  --pale: #dddddd;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mast { height: 64px; padding: 0; background: #0b0b0b; }
.mast-inner { width: 100%; height: 100%; padding-inline: clamp(16px, 3.2vw, 46px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mast-home { background: #0b0b0b; }
.mast-home .mast-inner { max-width: 1256px; margin-inline: auto; }
.brand { gap: 10px; font-size: 1.22rem; }
.brand img { border-radius: 5px; }
.mast-center, .mast-work-tools { display: flex; align-items: center; gap: 16px; }
.mast-center { gap: 28px; }
.mast-center a, .mast-center button:not(.cell-button), .home-footer button:not(.cell-button) {
  border: 0; padding: 0; min-height: 40px; background: transparent; color: var(--muted); font-size: .9rem; font-weight: 540;
}
.mast-center a { display: inline-flex; align-items: center; }
.mast-center a:hover, .mast-center button:hover, .home-footer button:hover { color: var(--ink); }
.mast-right a.mast-cta { padding-inline: 18px; min-height: 39px; background: var(--pale); border-color: var(--pale); border-radius: 7px; color: #111111; font-size: .85rem; font-weight: 675; }
.mast-right a.mast-cta:hover { background: #f3f3f3; border-color: #f3f3f3; }
.mast-work-tools { gap: 8px; }

.home { max-width: 1256px; padding: 0 clamp(16px, 3.2vw, 46px); }
.home-hero { display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr); gap: clamp(36px, 6vw, 86px); align-items: center; padding-block: clamp(55px, 7.4vw, 103px) 56px; }
.hero-copy { min-width: 0; }
.hero-network { display: flex; align-items: center; gap: 8px; color: #cecece; font-size: .81rem; font-weight: 560; }
.hero-copy h1 { margin: 17px 0 20px; color: #f9f9f9; max-width: 8.7em; font-size: clamp(3.25rem, 5.85vw, 5.3rem); line-height: .98; font-weight: 650; letter-spacing: -.084em; }
.hero-copy h1 span { color: var(--pale); white-space: nowrap; }
.hero-lede { max-width: 34ch; color: var(--muted); font-size: clamp(1.02rem, 1.8vw, 1.2rem); line-height: 1.47; letter-spacing: -.014em; }
.hero-lookup { position: relative; margin-top: 32px; }
#home-search { display: flex; width: 100%; align-items: center; gap: 8px; border-radius: 10px; padding: 5px; border: 1px solid #292929; background: #101010; }
#home-search:focus-within { border-color: #a4a4a4; }
#home-search input { min-width: 0; flex: 1; padding: 0 9px; min-height: 44px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .93rem; }
#home-search input::placeholder { color: #b2b2b2; }
#home-search button.primary { min-height: 42px; padding-inline: 15px; border-radius: 7px; }
.home-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 15px; color: var(--muted); font-size: .81rem; }
.home-quick > span { margin-right: 4px; }
.home-quick a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 3px 8px 3px 4px; color: #f0f0f0; background: #101010; border: 1px solid #1c1c1c; border-radius: 999px; }
.home-quick a:hover { background: #161616; border-color: #656565; }
.home-quick .avatar { width: 21px; height: 21px; }
.home-quick strong { font-size: .78rem; font-weight: 570; }

.hero-report { min-width: 0; margin: 0; padding: 7px; border: 1px solid #212121; border-radius: 19px; background: #0e0e0e; }
.report-head { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; }
.preview-token { display: flex; align-items: center; gap: 9px; min-width: 0; }
.preview-token .avatar { width: 36px; height: 36px; }
.preview-token strong, .report-heading strong { display: block; color: var(--ink); font-size: .89rem; font-weight: 650; line-height: 1.25; }
.preview-token small, .report-heading span { display: block; font-size: .75rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.report-heading { text-align: right; }
.report-plot { height: clamp(236px, 26vw, 332px); position: relative; overflow: hidden; background: #0c0c0c; border: 1px solid #1b1b1b; border-radius: 12px; }
.report-plot::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(#2d2d2d 1px, transparent 1px); background-size: 18px 18px; opacity: .43; pointer-events: none; }
.report-plot canvas { display: block; position: absolute; width: 100%; height: 100%; inset: 0; }
.report-plot p { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--muted); }
.plot-legend { position: absolute; bottom: 8px; left: 9px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; color: #cbcbcb; background: #0f0f0f; border: 1px solid #1d1d1d; border-radius: 5px; font-size: .71rem; }
.plot-legend i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--pale); background: #2f2f2f; }
.report-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 13px 11px 9px; }
.report-metrics div + div { padding-left: 11px; border-left: 1px solid #202020; }
.report-metrics dt { color: var(--muted); font-size: .75rem; line-height: 1.15; }
.report-metrics dd { margin-top: 3px; color: var(--ink); line-height: 1.16; font-size: clamp(1.18rem, 2.2vw, 1.63rem); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.report-metrics div:first-child dd { color: var(--pale); }
.hero-report figcaption { padding: 3px 11px 7px; }
.report-link { display: inline-flex; align-items: center; min-height: 30px; color: var(--pale); font-size: .79rem; font-weight: 590; }
.report-link:hover { text-decoration: underline; }

.home-tools { padding-block: 27px 35px; border-top: 1px solid #1f1f1f; scroll-margin-top: 80px; }
.home-tools header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.home-tools h2 { font-size: clamp(1.45rem, 3.1vw, 2rem); letter-spacing: -.055em; line-height: 1.12; font-weight: 620; }
.home-tools header a { color: var(--pale); font-size: .87rem; }
.home-tools header a:hover, .tool-directory a:hover { text-decoration: underline; }
.tool-highlights { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; }
.home-tool { min-width: 0; min-height: 143px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; border-radius: 11px; padding: 16px; border: 1px solid #1f1f1f; background: #0f0f0f; }
.home-tool:first-child { background: #121212; border-color: #272727; }
.home-tool:hover { background: #151515; border-color: #656565; }
.home-tool:hover strong { color: var(--pale); }
.home-tool strong { font-size: 1.16rem; font-weight: 620; letter-spacing: -.025em; }
.home-tool span { color: var(--muted); font-size: .9rem; }
.home-tool .tool-kind { color: #d0d0d0; font-size: .76rem; }
.tool-directory { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 21px; padding-block: 15px 0; color: #e0e0e0; }
.tool-directory a { display: inline-flex; align-items: center; min-height: 36px; font-size: .86rem; }
.home-footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 12px 0 19px; color: var(--muted); font-size: .85rem; }
.home-footer span { color: #e2e2e2; font-weight: 550; }

.layout { min-height: calc(100dvh - 64px); }
.rail { top: 64px; min-height: calc(100dvh - 64px); background: #0d0d0d; }
.rail h2 { margin-block: 3px 9px; font-size: .9rem; }
.rail p { margin-top: -4px; }
.recent-token { border-radius: 8px; }
.layout main { padding-top: 22px; }
#search, .wallet-search { background: #0f0f0f; border-color: #222222; }
#tools { margin-block: 12px 21px; gap: clamp(10px, 1.4vw, 22px); }
#tools a { min-height: 44px; padding-inline: 4px; }
#tools a[aria-current] { border-bottom-color: #d5d5d5; color: #f4f4f4; }
.page-title { margin: 8px 0 15px; }
.page-title h1 { font-weight: 625; font-size: clamp(1.55rem, 3vw, 2.3rem); letter-spacing: -.055em; line-height: 1.11; }
.module-title { margin: -2px 0 7px; color: #c7c7c7; }
.intro { padding: clamp(24px, 5.5vh, 52px) clamp(16px,3vw,36px); border: 1px solid var(--line); border-radius: 14px; background: #0f0f0f; }
.intro .home-quick { margin-top: 21px; }
.token-head { margin-bottom: 14px; padding: 3px 0 11px; }
.token-title { gap: 12px; }
.panel { border-radius: 10px; margin-bottom: 13px; }
.panel header { min-height: 47px; padding: 7px 12px; background: #111111; }
.metrics, .risk-hero { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 13px; background: #0f0f0f; overflow: hidden; }
.metrics div, .risk-hero > div { padding: 11px 13px; position: relative; }
.metrics dd { margin-top: 5px; }
.metric-meter { display: block; width: min(92%, 103px); height: 3px; margin-top: 8px; background: #212121; border-radius: 2px; overflow: hidden; }
.metric-meter i { display: block; height: 100%; border-radius: 2px; background: #bbbbbb; }
.grid, .stack { gap: 13px; }
.scanner-grid { grid-template-columns: minmax(0, 1.55fr) minmax(270px, 1fr); }
.scanner-grid .chain-panel .grid { grid-template-columns: minmax(0,1fr); }
.map { background-color: #0c0c0c; background-image: radial-gradient(#212121 1px, transparent 1px); }
.map svg { height: 245px; }
.map circle { fill: #9f9f9f; fill-opacity: .36; }
.map-foot { background: #0f0f0f; }
.creator { padding: 12px; gap: 14px; }
th, td { padding: 9px 11px; }

@media (max-width: 920px) {
  .rail { top: auto; min-height: 0; }
  .rail h2 { margin-block: 2px 4px; }
  .rail p { margin-top: 0; }
  .home-hero { gap: 33px; }
}
@media (max-width: 740px) {
  .home-hero { grid-template-columns: minmax(0,1fr); gap: 28px; padding-block: 45px 32px; }
  .hero-copy h1 { max-width: 11ch; font-size: clamp(3.2rem, 10vw, 4.3rem); }
  .hero-lookup { margin-top: 24px; }
  .report-plot { height: clamp(217px, 52vw, 310px); }
  .scanner-grid { grid-template-columns: minmax(0,1fr); }
  .layout main { padding-top: 14px; }
  .map svg { height: 203px; }
}
@media (max-width: 530px) {
  .mast { height: 57px; }
  .mast-inner { padding-inline: 13px; gap: 7px; }
  .mast-center { display: none; }
  .mast-right a.mast-cta { padding-inline: 10px; min-height: 35px; }
  .home { padding-inline: 15px; }
  .hero-copy h1 { margin-bottom: 14px; }
  .hero-lede { font-size: 1rem; }
  #home-search button.primary { padding-inline: 9px; }
  #home-search input { font-size: .85rem; padding-inline: 5px; }
  .tool-highlights { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .home-tool { min-height: auto; padding: 13px; gap: 4px; }
  .layout { min-height: calc(100dvh - 57px); }
  #tools { gap: 0 5px; margin-block: 9px 16px; }
  #tools a { min-height: 36px; font-size: .75rem; }
  .token-title { gap: 7px; }
  .metrics div, .risk-hero > div { padding: 9px 10px; }
  .metrics div:nth-last-child(-n+2) { border-bottom: 0; }
}
