:root {
  color-scheme: dark;
  --background: #0d1011;
  --surface: #15191b;
  --raised: #1d2225;
  --line: #30383b;
  --text: #edf1ee;
  --muted: #a9b5af;
  --accent: #c6ed73;
  --buy: #77d8ac;
  --sell: #f29a9e;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font: 14px/1.5 "Segoe UI", system-ui, sans-serif; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled, a[aria-disabled="true"] { opacity: .42; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, .table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.topbar { min-height: 72px; padding: 0 32px; display: flex; align-items: center; gap: 40px; border-bottom: 1px solid var(--line); background: var(--surface); }
.brand { display: flex; gap: 10px; align-items: center; font-size: 17px; white-space: nowrap; }
.brand svg { fill: var(--accent); stroke: none; width: 23px; height: 23px; }
.brand b { font-weight: 600; }
nav { display: flex; align-self: stretch; gap: 30px; }
.tab { color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 22px 0 20px; font-weight: 600; }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.tab span { margin-left: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mode-label { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.mode-dot { width: 6px; height: 6px; background: var(--muted); border-radius: 50%; }
main { max-width: 1720px; margin: 0 auto; padding: 30px 32px 20px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -.025em; }
h2 { font-size: 15px; font-weight: 600; }
.page-heading { display: flex; align-items: flex-end; gap: 24px; justify-content: space-between; margin-bottom: 24px; }
.page-heading p { color: var(--muted); margin-top: 8px; max-width: 68ch; }
.snapshot { display: grid; gap: 4px; text-align: right; flex-shrink: 0; }
.snapshot span { color: var(--muted); font-size: 12px; }
.snapshot strong { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.workspace { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 20px; align-items: start; }
.sidebar, .data-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 20px 18px 14px; }
.network { color: var(--accent); background: #28321e; font-size: 11px; padding: 3px 7px; border-radius: 4px; font-weight: 600; }
.add-form { padding: 0 18px 18px; display: grid; gap: 7px; border-bottom: 1px solid var(--line); }
label { color: var(--muted); font-size: 12px; }
.optional { color: #87948d; margin-left: 4px; }
input, select { min-width: 0; width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; background: var(--background); color: var(--text); }
input::placeholder { color: #96a29c; opacity: 1; }
input:hover, select:hover { border-color: #59655f; }
.add-form label:not(:first-child) { margin-top: 5px; }
.primary, .secondary { min-height: 38px; border-radius: 6px; padding: 8px 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.primary { background: var(--accent); color: #18210e; border: 1px solid var(--accent); }
.primary:hover { background: #d9f7a1; }
.add-form .primary { margin-top: 7px; }
.secondary { background: var(--raised); color: var(--text); border: 1px solid var(--line); }
.secondary:hover:not(:disabled) { background: #2a3235; color: var(--text); }
.text-button { border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 10px 0; }
.text-button:hover { color: var(--accent); }
.address-list { padding: 8px; display: grid; gap: 3px; max-height: 420px; overflow: auto; }
.list-row { display: flex; align-items: center; gap: 4px; border-radius: 6px; }
.list-row.selected { background: #293128; }
.list-select { flex: 1; min-width: 0; padding: 11px 10px; background: transparent; border: 0; color: var(--text); text-align: left; }
.list-select strong { display: block; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-select span { display: block; color: var(--muted); font: 11px/1.8 Consolas, monospace; }
.list-select:hover { background: #ffffff05; border-radius: 6px; }
.remove-address { background: transparent; border: 0; padding: 9px; color: var(--muted); }
.remove-address:hover { color: var(--sell); }
.remove-address svg { width: 15px; height: 15px; }
.list-empty { padding: 14px 10px; color: var(--muted); font-size: 13px; }
#restore-example { margin: 0 18px 10px; }
.sidebar-note { border-top: 1px solid var(--line); padding: 16px 18px; font-size: 12px; color: var(--muted); }
.note-label { color: var(--text); display: block; margin-bottom: 8px; }
.sidebar-note p + p { margin-top: 6px; }
.data-heading { padding: 20px; display: flex; gap: 16px; justify-content: space-between; align-items: center; }
.export-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.selected-info { min-width: 0; }
.selected-line { display: flex; gap: 10px; align-items: center; }
.selected-line h2 { font-size: 18px; overflow-wrap: anywhere; }
.badge { color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; font-size: 11px; white-space: nowrap; }
.selected-address { display: flex; align-items: center; gap: 6px; margin-top: 5px; min-width: 0; }
.selected-address span { font: 12px Consolas, monospace; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { padding: 4px; border: 0; background: transparent; color: var(--muted); display: inline-flex; }
.icon-button:hover { color: var(--accent); }
.icon-button svg { width: 14px; height: 14px; }
.period-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 20px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.filters { padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.filter { display: grid; gap: 5px; width: 115px; }
.search-filter { flex: 1 1 210px; }
.accumulation-filter { display: flex; align-items: center; gap: 6px; min-height: 38px; white-space: nowrap; }
.accumulation-filter input { width: auto; min-height: 0; margin: 0; accent-color: var(--accent); }
.reset-button { padding: 9px 2px; min-height: 38px; }
.results-heading { padding: 0 20px 12px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
#results-count { color: var(--text); }
.table-wrap { overflow: auto; max-height: 590px; border-block: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 950px; font-size: 12px; font-variant-numeric: tabular-nums; }
th { background: #1c2224; position: sticky; top: 0; z-index: 1; color: var(--muted); text-align: left; font-weight: 500; white-space: nowrap; height: 42px; }
th, td { padding: 10px 14px; }
th button { color: inherit; background: transparent; border: 0; padding: 0; font-size: inherit; }
.sort-mark { color: var(--accent); }
td { border-top: 1px solid #252d2f; height: 49px; white-space: nowrap; }
tbody tr:hover { background: #1d2525; }
.address-cell, .hash-cell { font-family: Consolas, monospace; }
.wallet-role { display: block; max-width: 230px; margin-top: 5px; color: var(--muted); white-space: normal; font: 11px/1.4 system-ui, sans-serif; }
#role-filter { width: 205px; }
.movement-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.dex-cell { max-width: 160px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.number-cell { text-align: right; }
.operation { font-size: 11px; border-radius: 4px; padding: 3px 6px; display: inline-block; background: #2b3437; color: #c4cec9; }
.operation.buy { color: var(--buy); background: #19392c; }
.operation.sell { color: var(--sell); background: #3a2428; }
.operation.mixed { color: #e0c287; background: #383123; }
.row-action { color: var(--accent); background: transparent; border: 1px solid #465337; border-radius: 4px; padding: 5px 8px; font-size: 11px; }
.row-action:hover { background: #293522; }
.pagination { padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.pagination div { display: flex; gap: 8px; }
.pagination button { font-size: 12px; }
.table-note { padding: 0 20px 17px; font-size: 11px; color: var(--muted); max-width: 95ch; }
.empty-state { text-align: center; padding: 62px 20px; border-block: 1px solid var(--line); }
.empty-state svg { width: 32px; height: 32px; color: var(--muted); margin-bottom: 12px; }
.empty-state h3 { font-size: 15px; font-weight: 500; }
.empty-state p { color: var(--muted); max-width: 48ch; margin: 8px auto 0; font-size: 13px; }
.error { color: var(--sell); font-size: 12px; }
.error:empty { display: none; }
.data-error { margin: 0 20px 14px; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: #96a39b; font-size: 11px; margin-top: 18px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #e6eddf; color: #192217; border-radius: 7px; padding: 11px 17px; box-shadow: 0 8px 28px #0005; z-index: 10; max-width: calc(100vw - 32px); }
[hidden] { display: none !important; }
body[data-view="tracker"] .screener-only { display: none; }
body[data-view="screener"] .tracker-only { display: none; }
#coverage-note { padding-top: 10px; padding-bottom: 0; }
.login-page { max-width: 440px; margin: 12vh auto; }
body[data-view="tracker"] table { min-width: 710px; }
.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; }
@media (max-width: 1100px) {
  main { padding: 24px 20px 18px; }
  .topbar { padding-inline: 20px; gap: 25px; }
  .workspace { grid-template-columns: 245px minmax(0,1fr); gap: 14px; }
  .period-strip { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 10px 24px; padding: 16px 16px 0; }
  .mode-label { margin-left: auto; font-size: 10px; }
  nav { order: 3; width: 100%; gap: 28px; }
  .tab { padding-block: 10px; }
  main { padding: 22px 14px; }
  .page-heading { display: block; }
  .snapshot { text-align: left; margin-top: 15px; }
  .workspace { grid-template-columns: minmax(0,1fr); }
  .add-form { grid-template-columns: 1fr; }
  .address-list { max-height: 210px; }
  .data-heading { padding: 16px; align-items: start; }
  .data-heading > .secondary { padding-inline: 9px; font-size: 12px; }
  .filters, .period-strip { padding-inline: 16px; }
  .filter { flex: 1 1 90px; }
  .search-filter { flex-basis: 100%; }
  .results-heading { padding-inline: 16px; }
  .table-wrap { max-height: 500px; }
}
@media (prefers-reduced-motion: no-preference) {
  button, a { transition: background-color .12s, color .12s, border-color .12s; }
}
