:root {
  --bg: #000;
  --rail: #050505;
  --panel: #080808;
  --ink: #fafafa;
  --muted: #aaa;
  --line: #262626;
  --pale: #f4f4f4;
  --accent: #fff;
  --accent-bright: #fff;
  --accent-ink: #070707;
  --control: #101010;
  --control-hover: #202020;
  --green: #63cbb2;
  --red: #ed7881;
  --warn: #efbc9a;
}

.mast, .mast-home { background: #101010; border-bottom-color: #1c1c1c; }
.brand { color: var(--ink); }
.brand:hover { color: var(--accent-bright); }
.mast-right a.mast-cta, #home-search button.primary, #search button.primary, .wallet-search button.primary {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700;
}
.mast-right a.mast-cta:hover, #home-search button.primary:hover, #search button.primary:hover, .wallet-search button.primary:hover {
  background: #d0d0d0; border-color: #d0d0d0;
}
.hero-copy h1 span { color: #bfbfbf; }
.hero-network { color: #cfcfcf; }
.hero-report { background: #121212; border-color: #222222; }
.report-plot { border-color: #1c1c1c; background: #0e0e0e; }
.report-plot::before { content: none; }
.report-metrics, .home-footer, .home-tools { border-color: var(--line); }
.report-metrics div + div { border-color: #202020; }
.report-link { color: #dfdfdf; }
.home-tool { border-color: #202020; background: #111111; }
.home-tool:first-child, .home-tool:hover { background: #171717; border-color: #2f2f2f; }
#home-search { background: #141414; border-color: #232323; }
.home-quick a { background: #141414; border-color: #222222; }

.layout { grid-template-columns: 205px minmax(0,1fr); grid-template-rows: 1fr auto; }
.rail { background: #0e0e0e; border-right-color: #1c1c1c; padding: 15px 10px; min-height: calc(100dvh - 95px); }
.rail-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-inline: 6px; }
.rail-heading h2 { padding: 0; margin: 0; color: #efefef; font-size: .86rem; font-weight: 625; }
.rail-heading button.rail-add:not(.cell-button) { min-width: 26px; min-height: 26px; padding: 0; font-size: 1.08rem; line-height: 1; }
.recent-list { margin-top: 10px; gap: 3px; }
.recent-token { position: relative; min-height: 49px; gap: 9px; padding: 6px 7px; }
.recent-token > span:nth-child(2) { display: grid; min-width: 0; line-height: 1.17; flex: 1; }
.recent-token > span:last-child { flex: 1; }
.recent-token time { color: #bebebe; font: .62rem var(--mono); max-width: 60px; }
.recent-token:hover { background: #171717; border-color: #232323; }
.recent-token[aria-current] { border-color: #242424; background: #181818; }
.recent-token[aria-current] strong { color: #f6f6f6; }

.layout main { max-width: 1720px; padding: 16px clamp(14px,2vw,28px) 24px; }
#search { background: #141414; border-color: #232323; padding-left: 13px; gap: 11px; border-radius: 9px; }
#search:focus-within, .wallet-search:focus-within { border-color: #a9a9a9; box-shadow: 0 0 0 1px #a9a9a943; }
#search input, .wallet-search input { font-family: var(--mono); font-size: .84rem; }
kbd { color: #d0d0d0; white-space: nowrap; font: .68rem var(--mono); background: #1c1c1c; border: 1px solid #272727; padding: 3px 6px; border-radius: 4px; }
.matches { border-color: #2d2d2d; background: #171717; box-shadow: 0 14px 42px #08080880; }
.matches button:hover { background: #202020; border-color: #343434; }
.matches button:focus-visible { outline-offset: -2px; }
#tools { gap: 4px; padding: 3px; margin: 12px 0 16px; background: #0e0e0e; border: 1px solid #1e1e1e; border-radius: 8px; }
#tools a { min-height: 36px; padding-inline: clamp(7px,1vw,15px); border: 1px solid transparent; border-radius: 5px; color: #c7c7c7; font-size: .83rem; }
#tools a:hover { color: #f9f9f9; background: #191919; }
#tools a[aria-current] { color: #f7f7f7; background: #1d1d1d; border-color: #626262; font-weight: 655; }
#tools a:focus-visible { outline-offset: -2px; }
.workspace-status { grid-column: 1 / -1; position: sticky; bottom: 0; z-index: 6; min-height: 31px; padding: 3px clamp(10px,2.35vw,32px); display: flex; align-items:center; gap: 16px; background: #101010; border-top: 1px solid #1d1d1d; color: #c5c5c5; font-size: .73rem; }
.workspace-status span:first-child { color: #e1e1e1; }
#rpc-status::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; margin-bottom: 1px; border-radius: 50%; background: #838383; }
#rpc-status.ready::before { background: #b2b2b2; }
#scan-status { margin-left: auto; }

.control, button.control:not(.cell-button), .token-head .mint-copy:not(.cell-button) {
  display: inline-flex; min-height: 31px; align-items: center; justify-content: center; gap: 6px;
  padding: 4px 9px; border: 1px solid #272727; border-radius: 6px; background: var(--control); color: #f4f4f4;
  white-space: nowrap; font-size: .79rem; font-weight: 600; text-align: center;
}
.control:hover, button.control:not(.cell-button):hover, .token-head .mint-copy:not(.cell-button):hover { border-color: #666666; background: var(--control-hover); color: #f9f9f9; }
button.control:not(.cell-button):active { background: #272727; }
button.control:not(.cell-button):disabled { border-color: #222222; background: #191919; color: #aeaeae; cursor: default; opacity: .72; }
button.control[aria-busy="true"]:not(.cell-button) { cursor: progress; opacity: 1; }
button.control[aria-busy="true"]::before { content: ''; border: 1px solid #d6d6d67d; border-top-color: #f9f9f9; border-radius: 50%; width: 10px; height: 10px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
button.control.watch-control:not(.cell-button) { background: #ababab; border-color: #b0b0b0; color: var(--accent-ink); font-weight: 700; }
button.control.watch-control:not(.cell-button):hover { background: #cecece; border-color: #cecece; }
button.control[aria-pressed="true"][data-action="unwatch"]:not(.cell-button) { background: #181818; border-color: #666666; color: #e8e8e8; }

.token-head { min-height: 84px; padding: 11px 14px; margin-bottom: 12px; flex-wrap: wrap; background: #111111; border: 1px solid #202020; border-radius: 9px; }
.token-title { gap: 10px; }
.token-title-row { display: flex; align-items: baseline; gap: 7px; }
.token-title h1 { font-size: clamp(1.55rem,3.3vw,2.2rem); font-weight: 655; line-height: 1.01; }
.ticker { color: #c9c9c9; font: .76rem var(--mono); white-space: nowrap; }
.token-head .avatar.large { border-color: #606060; background: #1c1c1c; }
.token-head .mint-copy:not(.cell-button) { min-height: 24px; gap: 6px; padding: 2px 6px; color: #e1e1e1; font: .68rem var(--mono); background: #0e0e0e; }
.token-source { font: .71rem var(--sans); color: #bebebe; }
.quote { margin-right: 7px; }
.quote strong { font: 650 1.1rem var(--mono); letter-spacing: -.04em; }
.quote small span { color: var(--muted); margin-left: 3px; }
.token-actions { display: flex; align-items: center; gap: 6px; }
.snapshot-notice { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; padding: 6px 10px; margin-bottom: 9px; background: #181818; border: 1px solid #2c2c2c; color: #d2d2d2; border-radius: 6px; font-size: .75rem; }
.snapshot-notice span:first-child { color: #f6f6f6; font-weight: 650; }
.snapshot-notice time { border-left: 1px solid #323232; padding-left: 9px; }
.snapshot-notice span:last-child { margin-left: auto; }
.metrics, .risk-hero { margin-bottom: 13px; border-color: #202020; background: #121212; }
.metrics div, .risk-hero > div { border-color: #202020; padding: 11px 13px; }
.metrics div:first-child { background: transparent; }
.metrics dt, .risk-hero p { color: #c0c0c0; }
.metrics dd { color: #f9f9f9; }
.metrics div:first-child dd { color: #e3e3e3; }
.metric-meter { background: #252525; }
.metric-meter i { background: #acacac; }
.risk-meter, .risk-coverage { display: block; max-width: 166px; width: 100%; height: 8px; margin-top: 7px; accent-color: var(--accent); }

.scanner-grid { grid-template-columns: minmax(0,1.85fr) minmax(280px,1fr); gap: 13px; }
.panel { border-color: #202020; background: var(--panel); }
.panel header { background: #141414; border-color: #1e1e1e; padding: 7px 11px; min-height: 43px; }
.panel header h2 { font-weight: 650; color: #f9f9f9; }
.panel header .muted, .source-tag { color: #c3c3c3; font-size: .72rem; }
.source-tag, .subtle-count { padding: 3px 6px; border-radius: 5px; background: #181818; border: 1px solid #262626; }
.subtle-count { color: #dfdfdf; font: .7rem var(--mono); }
.graph-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 9px; background: #131313; border-bottom: 1px solid #1e1e1e; }
.segmented, .graph-tools { display: flex; align-items: center; gap: 5px; }
.segmented { padding: 2px; background: #101010; border: 1px solid #222222; border-radius: 6px; gap: 2px; }
.segmented button.control:not(.cell-button) { min-height: 26px; border-color: transparent; background: none; color: #c0c0c0; padding: 3px 8px; }
.segmented button.control[aria-pressed="true"]:not(.cell-button) { color: #f9f9f9; background: #242424; border-color: #666666; }
.segmented button.control:not(.cell-button):hover { background: #1e1e1e; color: #f5f5f5; }
.group-select { position: relative; display: flex; }
.group-select select { appearance: none; min-height: 31px; border: 1px solid #272727; border-radius: 6px; color: #f0f0f0; background: #191919; padding: 3px 22px 3px 8px; font-size: .77rem; }
.group-select::after { content: ''; width: 5px; height: 5px; border-right: 1px solid #cecece; border-bottom: 1px solid #cecece; position: absolute; top: 45%; right: 8px; transform: rotate(45deg); pointer-events: none; }
.graph-stage { position: relative; border-bottom: 0; overflow: hidden; background: #0e0e0e; }
.graph-stage svg { width: 100%; max-width: none; height: clamp(268px,33vw,355px); touch-action: pan-y; cursor: grab; }
.graph-stage svg.panning, .graph-stage svg.panning circle { cursor: grabbing; }
.graph-stage line { stroke: #919191; stroke-opacity: .34; stroke-width: 1; }
.graph-stage line.active-edge { stroke: #bababa; stroke-opacity: .84; stroke-width: 1.15; }
.graph-stage circle { fill: #232323; fill-opacity: 1; stroke: #878787; stroke-width: 1; }
.graph-stage circle.near-wallet { fill: #313131; stroke: #c3c3c3; }
.graph-stage circle.has-holdings { fill: #6c6c6c; }
.graph-stage circle[aria-pressed="true"] { fill: #cccccc; stroke: #f9f9f9; stroke-width: 1.8; }
.graph-stage circle:hover { fill: #adadad; stroke: #f5f5f5; }
.graph-stage circle:focus-visible { outline-offset: 2px; }
.graph-zoom, .map-legend { position: absolute; bottom: 8px; right: 8px; display: inline-flex; align-items: center; gap: 3px; border: 1px solid #222222; background: #101010; color: #e3e3e3; border-radius: 6px; padding: 3px; }
.graph-zoom button.control:not(.cell-button) { min-height: 25px; min-width: 25px; padding: 2px 4px; border-color: #242424; font-size: .72rem; }
.graph-zoom span { padding-inline: 4px; font: .63rem var(--mono); min-width: 33px; text-align: center; }
.map-legend { right: auto; left: 8px; bottom: 9px; padding: 5px 7px; font-size: .69rem; }
.map-legend i, .group-pick i, .counterparty i, .coverage-list i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #999999; }
.map-foot { border-color: #202020; padding: 6px 9px; background: #141414; color: #c8c8c8; }
.wallet-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 7px 9px; color: #cacaca; border-bottom: 1px solid #202020; font: .72rem var(--mono); }
.inline-search { display: flex; align-items: center; flex: 1; min-width: 0; gap: 8px; }
.inline-search input { min-width: 0; width: 100%; max-width: 360px; padding: 6px 7px; color: var(--ink); background: #121212; border: 1px solid #242424; border-radius: 4px; }
.wallet-list-scroll { max-height: 302px; scrollbar-width: thin; }
.wallet-list-scroll thead { position: sticky; top: 0; }
.group-pick { display: inline-flex; align-items: center; gap: 6px; }
.inspector-body { padding: 10px; }
.wallet-identity { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 6px 7px; border: 1px solid #232323; border-radius: 7px; background: #131313; }
.picked-wallet { flex: none; width: 12px; height: 12px; background: #bcbcbc; border: 1px solid #f0f0f0; border-radius: 50%; }
.wallet-identity code { flex: 1; min-width: 0; line-height: 1.35; overflow-wrap: anywhere; color: #f8f8f8; font: .73rem var(--mono); }
.wallet-identity button.control:not(.cell-button) { min-height: 25px; padding: 2px 6px; }
.wallet-insights { display: grid; grid-template-columns: repeat(auto-fit,minmax(75px,1fr)); gap: 6px; margin-block: 8px; }
.wallet-insights div { border: 1px solid #202020; border-radius: 6px; background: #141414; padding: 8px; }
.wallet-insights dt { color: #c3c3c3; font-size: .73rem; }
.wallet-insights dd { margin-top: 2px; color: #f9f9f9; font-weight: 650; font-size: 1.03rem; font-variant-numeric: tabular-nums; }
.counterparties { padding-block: 5px 7px; }
.counterparties h3 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; color: #d4d4d4; font-size: .76rem; font-weight: 600; }
.counterparties h3 span { color: #c1c1c1; font: .66rem var(--mono); }
.counterparties > div { display: flex; flex-wrap: wrap; gap: 4px; }
.counterparties button.counterparty:not(.cell-button) { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; background: #191919; border: 1px solid #252525; padding: 2px 5px; font: .68rem var(--mono); }
.counterparties button.counterparty:hover { background: #222222; }
.counterparty i { width: 5px; height: 5px; }
.inspector-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
a.inspect-link { background: #1f1f1f; border-color: #343434; color: #f9f9f9; }
a.inspect-link:hover { background: #272727; }
.coverage-list > div { display: flex; justify-content: space-between; gap: 7px; padding: 8px 10px; border-bottom: 1px solid #1e1e1e; font-size: .79rem; }
.coverage-list > div:last-child { border: 0; }
.coverage-list dt { color: #d3d3d3; }
.coverage-list dd { display: inline-flex; align-items: center; gap: 4px; color: #d4d4d4; }
.coverage-list dd.available { color: #c1e1d1; }
.coverage-list dd.available i { background: #a4d0b9; }
.coverage-list dd.unavailable i { background: #c892a8; }
.coverage-list dd.no-links i { background: #bbbbbb; }

th, td { border-color: #1e1e1e; }
th { color: #c7c7c7; background: #141414; }
tbody tr:hover, tbody tr.selected { background: #191919; }
.data-link, .cell-button { color: #d7d7d7; }
.cell-button[aria-pressed="true"] { color: #f9f9f9; font-weight: 650; }
.filters { border-color: #202020; background: #131313; }
.filters input:not([type=checkbox]), .filters select, .wallet-search { background: #161616; border-color: #272727; }
.filter-end { display: flex; align-items: center; gap: 6px; padding-left: 2px; margin-left: auto; color: #c8c8c8; font: .72rem var(--mono); }
dialog { border-color: #2f2f2f; background: #161616; }
.toast { color: #f9f9f9; background: #1f1f1f; border-color: #666666; }
:focus-visible { outline-color: #cccccc; }

@media (max-width: 920px) {
  .rail { padding: 7px 12px; min-height: auto; }
  .rail-heading { padding: 0; }
  .recent-list { margin-top: 6px; }
  .recent-token { min-height: 32px; }
  .recent-token time { display: none; }
}
@media (max-width: 725px) {
  .scanner-grid { grid-template-columns: minmax(0,1fr); }
  .scanner-grid > .stack:last-child { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .scanner-grid > .stack:last-child > .panel:nth-child(3) { grid-column: 1/-1; }
  .scanner-grid > .stack:last-child > .liquidity-panel { grid-column: 1/-1; }
}
@media (max-width: 530px) {
  .layout main { padding: 10px 9px 16px; }
  .rail { padding: 6px 10px; }
  .rail-heading h2 { font-size: .8rem; }
  #search { gap: 7px; padding-left: 9px; }
  #search input { font-size: .74rem; }
  #lookup-shortcut { display: none; }
  #tools { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px; margin-block: 8px 11px; }
  #tools a { min-height: 36px; justify-content: center; padding: 3px; font-size: .72rem; white-space: normal; text-align: center; line-height: 1.17; }
  .token-head { padding: 8px; gap: 7px; }
  .token-title { gap: 6px; }
  .token-title h1 { font-size: 1.42rem; }
  .ticker { font-size: .69rem; }
  .token-source { display: none; }
  .token-actions { width: 100%; justify-content: flex-end; padding-top: 4px; }
  .quote strong { font-size: .86rem; }
  .snapshot-notice span:last-child { margin-left: 0; }
  .scanner-grid > .stack:last-child { grid-template-columns: minmax(0,1fr); }
  .graph-stage svg { height: 239px; }
  .workspace-status { position: static; flex-wrap: wrap; min-height: 30px; gap: 3px 9px; }
  #scan-status { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  button.control[aria-busy="true"]::before { animation: none; }
}
.feed-status { display: inline-flex; align-items: center; gap: 5px; color: #c9c9c9; font-size: .73rem; white-space: nowrap; }
.feed-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #a3a3a3; }
.feed-status.streaming { color: #b6ddc9; }
.feed-status.streaming::before { background: #9ed3b7; }
.filters .launch-query input { width: 168px; max-width: 100%; }
@media (max-width: 530px) {
  .filters .launch-query input { width: 128px; }
  .panel header .actions { flex-wrap: wrap; justify-content: flex-end; }
}

.scanner-tabs { width: max-content; margin: 0 0 10px; }
.scanner-tabs button.control:not(.cell-button) { min-height: 31px; padding-inline: 11px; }
.graph-stage .map-legend { background: #161616; border-color: #242424; color: #d8d8d8; }
.graph-stage .map-legend i { background: var(--cluster); }
.graph-stage line { stroke: color-mix(in srgb,var(--cluster),#bababa 35%); stroke-opacity: .4; stroke-width: .9; }
.graph-stage line.active-edge { stroke: var(--cluster); stroke-opacity: .8; }
.graph-stage circle { fill: color-mix(in srgb,var(--cluster),#0e0e0e 65%); stroke: color-mix(in srgb,var(--cluster),#ababab 35%); }
.graph-stage circle.has-holdings { fill: color-mix(in srgb,var(--cluster),#0e0e0e 33%); }
.graph-stage circle.near-wallet { stroke: color-mix(in srgb,var(--cluster),#f2f2f2 28%); }
.graph-stage circle[aria-pressed="true"] { fill: var(--cluster); stroke: #f2f2f2; stroke-width: 1.6; }
.graph-stage circle:hover { fill: color-mix(in srgb,var(--cluster),white 25%); }
.graph-zoom { background: #161616; border-color: #252525; color: #e0e0e0; }
.graph-zoom button.control:not(.cell-button) { border-color: #282828; }
.graph-tools button[aria-pressed="true"] { color: #e2e2e2; }

.chart-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 44px; padding: 5px 8px; border-bottom: 1px solid #202020; background: #121212; }
.chart-pair, .pool-label b { display: inline-flex; align-items: center; gap: 5px; color: #f9f9f9; }
.chart-pair b { display: inline-flex; align-items: center; gap: 4px; font-size: .86rem; }
.chart-pair b span, .pool-label b span { color: #929292; }
.chart-venue { color: #bfbfbf; font-size: .73rem; text-transform: capitalize; margin-right: 4px; }
.chart-intervals { gap: 1px; }
.chart-intervals button.control:not(.cell-button) { font: .7rem var(--mono); padding-inline: 6px; }
.chart-denomination { margin-left: auto; padding-right: 2px; color: #c5c5c5; font: .71rem var(--mono); }
.pair-icons { display: inline-flex; align-items: center; flex: none; padding-right: 2px; }
.pair-icons .avatar { width: 22px; height: 22px; border: 1px solid #626262; background: #232323; }
.pair-icons .avatar + .avatar { margin-left: -6px; border: 1px solid #626262; }
.chart-body { --chart-height: clamp(302px, calc(100dvh - 630px), 432px); position: relative; min-height: var(--chart-height); background: #0e0e0e; }
#candle-host { width: 100%; height: var(--chart-height); }
.candle-readout { display: flex; flex-wrap: wrap; gap: 2px 7px; position: absolute; top: 7px; left: 9px; z-index: 2; font: .67rem var(--mono); color: #c0c0c0; pointer-events: none; }
.candle-readout b { color: #72c3b6; font-weight: 550; }
.candle-readout.candle-down b { color: #e57781; }
.chart-foot { padding: 5px 8px; display: flex; justify-content: space-between; gap: 8px; color: #c0c0c0; border-top: 1px solid #1e1e1e; font-size: .70rem; }
.chart-foot a:hover { color: #e8e8e8; text-decoration: underline; }
.pool-rows { display: grid; }
button.pool-row:not(.cell-button) { display: flex; justify-content: flex-start; gap: 7px; min-height: 46px;
  border: 0; border-bottom: 1px solid #1c1c1c; border-radius: 0; background: #111111; padding: 6px 9px; text-align: left; }
button.pool-row:last-child:not(.cell-button) { border-bottom: 0; }
button.pool-row[aria-pressed="true"]:not(.cell-button) { background: #161616; }
button.pool-row:not(.cell-button):hover { background: #1c1c1c; }
.pool-label { display: grid; gap: 2px; min-width: 0; flex: 1; }
.pool-label b { overflow: hidden; text-overflow: ellipsis; font: 600 .78rem var(--sans); }
.pool-label small, .pool-value small { color: #b8b8b8; font-size: .68rem; text-transform: capitalize; }
.pool-value { display: grid; justify-items: end; gap: 1px; }
.pool-value b { color: #f9f9f9; font: .74rem var(--mono); }
@media (max-width: 530px) {
  .chart-body { --chart-height: 310px; }
  .chart-intervals button.control:not(.cell-button) { padding-inline: 3px; }
  .chart-foot { font-size: .63rem; }
}


.mast, .mast-home, .rail, .workspace-status { background: #000; border-color: #252525; }
.hero-copy h1, .hero-copy h1 span, .brand { color: #fff; }
.hero-network, .report-link, .tool-directory a { color: #e0e0e0; }
.hero-report, .home-tool, .home-tool:first-child { background: #080808; border-color: #272727; }
.report-plot { background: #000; }
.home-tool:hover, .home-quick a:hover { background: #151515; border-color: #4a4a4a; }
.mast-right a.mast-cta:hover, #home-search button.primary:hover, #search button.primary:hover, .wallet-search button.primary:hover {
  background: #dddddd; border-color: #dddddd; color: #000;
}
#home-search, #search, .wallet-search { background: #070707; border-color: #2f2f2f; }
#search:focus-within, .wallet-search:focus-within, #home-search:focus-within { border-color: #aaa; box-shadow: none; }
#tools { padding: 0 0 0 2px; gap: 10px; background: transparent; border: 0; border-bottom: 1px solid #272727; border-radius: 0; margin-block: 7px 11px; }
#tools a { border: 0; border-bottom: 2px solid transparent; border-radius: 0; min-height: 37px; padding-inline: clamp(5px,.65vw,13px); color: #ababab; }
#tools a[aria-current] { color: #fff; background: transparent; border-bottom-color: #fff; }
#tools a:hover { color: #fff; background: #101010; }
.recent-token { border-radius: 5px; }
.recent-token[aria-current] { background: #101010; border-color: #272727; }
.panel, .token-head, .metrics, .risk-hero { border-color: #272727; border-radius: 5px; background: #080808; }
.panel header { background: #080808; border-color: #242424; min-height: 37px; }
.panel header h2 { font-size: .88rem; color: #f5f5f5; }
.token-head { min-height: 69px; margin-bottom: 9px; }
.token-title h1 { font-size: clamp(1.42rem,2.4vw,2rem); }
.metrics, .risk-hero { margin-bottom: 9px; }
.metrics div, .risk-hero > div { padding: 7px 10px; }
.metrics dd, .metrics div:first-child dd { color: #fff; font-size: 1.26rem; }
button.control.watch-control:not(.cell-button) { background: #f4f4f4; border-color: #f4f4f4; color: #080808; }
button.control.watch-control:not(.cell-button):hover { background: #d8d8d8; border-color: #d8d8d8; color: #080808; }
button.control[aria-pressed="true"][data-action="unwatch"]:not(.cell-button) { background: #141414; border-color: #505050; color: #fff; }
.control, button.control:not(.cell-button), .token-head .mint-copy:not(.cell-button) { border-radius: 4px; }
.scanner-tabs { margin-bottom: 8px; }
.segmented { padding: 1px; border-color: #303030; background: #060606; border-radius: 4px; }
.segmented button.control[aria-pressed="true"]:not(.cell-button) { background: #242424; border-color: #393939; color: #fff; }
.graph-stage, .chart-body { background: #000; }
.graph-stage circle[aria-pressed="true"] { stroke: #fff; }
.graph-stage .map-legend, .graph-zoom, .graph-toolbar, .chart-controls, .map-foot { background: #080808; border-color: #272727; }
button.pool-row:not(.cell-button) { background: #080808; min-height: 42px; border-color: #222; }
button.pool-row[aria-pressed="true"]:not(.cell-button) { background: #121212; }
button.pool-row:not(.cell-button):hover { background: #151515; }
.pool-label b, .pool-value b { color: #fff; }
.pool-depth { display: block; width: clamp(43px,6vw,88px); height: 2px; margin-top: 4px; background: #2b2b2b; }
.pool-depth i { display: block; height: 100%; background: #969696; }
button.pool-row[aria-pressed="true"] .pool-depth i { background: #eee; }
.scanner-grid { gap: 9px; }
.stack { gap: 9px; }
.chart-body { --chart-height: clamp(332px,calc(100dvh - 568px),510px); }
.source-tag, .subtle-count { border-radius: 3px; }
.chart-summary { display: flex; gap: 5px; align-items: center; color: #b8b8b8; font-size: .73rem; white-space: nowrap; }
.chart-summary b { color: #f4f4f4; font: 550 .78rem var(--mono); }
.chart-summary b.negative { color: var(--red); }
.chart-summary b.positive { color: var(--green); }
.chart-caption { padding: 6px 9px; color: #aaa; font-size: .67rem; border-top: 1px solid #222; }
.volume-wrap, .pnl-history { padding: 10px 9px 7px; }
.volume-bars { display: flex; align-items: flex-end; gap: 2px; height: 55px; border-bottom: 1px solid #353535; }
.volume-bars i { width: 100%; height: var(--bar-height); background: #828282; }
.volume-bars i:last-child { background: #f1f1f1; }
.volume-bars i:hover { background: #fff; }
.volume-axis { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; gap: 4px; color: #a8a8a8; font: .62rem var(--mono); }
.activity-chart { padding: 8px 9px 9px; }
.activity-values { display: flex; justify-content: space-between; margin-bottom: 7px; color: #c1c1c1; font-size: .75rem; }
.activity-values b { color: #f4f4f4; margin-right: 3px; font: .80rem var(--mono); }
.activity-values i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 5px; background: #37aa94; }
.activity-values i.sell-dot { background: #d46f77; }
.activity-split { display: flex; width: 100%; background: #242424; height: 5px; gap: 2px; }
.activity-split i:first-child { background: #37aa94; }
.activity-split i:last-child { background: #d46f77; }
.activity-intervals button.control:not(.cell-button) { min-height: 23px; padding: 2px 4px; font: .66rem var(--mono); }
.holder-bars { display: grid; gap: 5px; padding: 8px 9px; }
.holder-bars > div { display: grid; grid-template-columns: 13px minmax(64px,1.2fr) minmax(34px,1fr) 43px; align-items: center; gap: 5px; }
.holder-bars .rank { color: #a0a0a0; font: .69rem var(--mono); }
.holder-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e5e5e5; font: .68rem var(--mono); }
.holder-bars b { text-align: right; font: .67rem var(--mono); color: #f4f4f4; }
.horizontal-bar { display: block; background: #222; height: 3px; }
.horizontal-bar i { display: block; height: 100%; background: #c7c7c7; }
.pnl-history svg { display: block; width: 100%; height: 105px; }
.pnl-history line { stroke: #555; stroke-dasharray: 4 4; }
.pnl-history polyline { stroke: #f0f0f0; stroke-width: 1.4; fill: none; }
@media (max-width: 530px) {
  #tools { gap: 2px 4px; }
  #tools a { min-height: 32px; padding-inline: 0; }
  .chart-body { --chart-height: 309px; }
  .token-head { min-height: 60px; }
}
