:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  color: #17212f;
  background: #f7f8fa;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #a9c5f9; outline-offset: 2px; }
.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; }

.site-shell { max-width: 1840px; margin: 0 auto; padding: 0 40px; }
.topbar { height: 65px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e2e7ee; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 7px; background: #17263a; color: white; font-size: 15px; font-weight: 800; letter-spacing: -.08em; }
.github-link { color: #5c6d81; font-size: 13px; font-weight: 600; }
.github-link:hover { color: #125fb0; }
.github-link span { margin-left: 3px; }

.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 29px 0 25px; }
.eyebrow { color: #7b8999; margin: 0 0 10px; font-size: 10px; font-weight: 750; letter-spacing: .14em; }
.eyebrow span { color: #afbac6; padding: 0 4px; }
h1 { margin: 0; font-size: clamp(27px, 2.2vw, 36px); line-height: 1.15; letter-spacing: -.045em; font-weight: 740; }
.page-description { margin: 9px 0 0; color: #69788a; font-size: 14px; line-height: 1.45; }
.header-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex-shrink: 0; }
.updated { color: #8995a4; font-size: 11px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 37px; padding: 8px 13px; border-radius: 8px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.button-primary { border: 1px solid #1c5d9f; background: #1e64aa; color: white; box-shadow: 0 1px 2px #13396829; }
.button-primary:hover:not(:disabled) { background: #14518e; }
.button-primary:disabled { opacity: .6; cursor: wait; }
.button-primary span { font-size: 18px; line-height: .6; }
.button-subtle { border: 1px solid transparent; color: #64758a; background: transparent; }
.button-subtle:hover { color: #174e88; background: #edf4fb; }
.button-outline { background: white; color: #344c67; border: 1px solid #d7dfe8; }
.button-outline:hover:not(:disabled) { border-color: #85b2dd; color: #135594; background: #f7fbff; }
.button-outline:disabled { opacity: .45; cursor: not-allowed; }

.catalog { background: white; border: 1px solid #e1e6ed; border-radius: 12px; box-shadow: 0 3px 20px #263b5310; overflow: hidden; }
.catalog-summary { min-height: 66px; padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e9edf2; }
.summary-counts { display: flex; align-items: center; gap: 18px; color: #708093; font-size: 13px; white-space: nowrap; }
.summary-counts strong { color: #1d2939; font-size: 18px; font-weight: 750; margin-right: 4px; font-variant-numeric: tabular-nums; }
.summary-divider { height: 20px; width: 1px; background: #dfe5eb; }
.overall-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 100px; background: #eaf7ef; color: #287044; font-size: 11px; font-weight: 700; white-space: nowrap; }
.overall-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.overall-status.waiting { background: #edf2f8; color: #5f7186; }
.overall-status.partial { background: #fff4df; color: #99620e; }
.overall-status.error { background: #fff0f0; color: #a23a42; }

.filter-panel { position: relative; z-index: 5; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 16px 22px 14px; }
.field { position: relative; display: block; min-width: 145px; }
.search-field { flex: 1 1 300px; max-width: 455px; min-width: 240px; }
.search-icon { position: absolute; z-index: 1; left: 13px; top: 50%; transform: translateY(-53%); color: #8796a7; font-size: 24px; line-height: 1; pointer-events: none; }
.field input, .field select, .advanced-fields input, .advanced-fields select { height: 39px; width: 100%; border: 1px solid #d7dfe8; background: white; border-radius: 8px; padding: 0 12px; color: #263648; font-size: 13px; outline: none; }
.field input:focus, .field select:focus, .advanced-fields input:focus, .advanced-fields select:focus { border-color: #6c9dcb; box-shadow: 0 0 0 3px #dcebf9; }
.field input::placeholder, .advanced-fields input::placeholder { color: #9aa7b5; }
.search-field input { padding-left: 39px; }
.more-filters { position: relative; }
.more-filters summary { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 39px; padding: 0 11px; border: 1px solid #d7dfe8; border-radius: 8px; color: #4c5e72; background: white; font-size: 13px; font-weight: 620; white-space: nowrap; cursor: pointer; list-style: none; }
.more-filters summary::-webkit-details-marker { display: none; }
.more-filters[open] summary { border-color: #7da6ce; color: #175b9b; background: #f7fbff; }
.more-filters[open] summary span { transform: rotate(180deg); }
.advanced-fields { position: absolute; z-index: 4; top: 46px; right: 0; display: grid; gap: 13px; width: 288px; padding: 18px; border: 1px solid #dce3ea; border-radius: 10px; background: white; box-shadow: 0 12px 38px #243b581c; }
.advanced-fields label { display: grid; gap: 6px; color: #56677a; font-size: 12px; font-weight: 650; }
.advanced-fields input, .advanced-fields select { font-weight: 400; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 22px 13px; }
.list-caption { display: flex; align-items: center; gap: 16px; color: #66788b; font-size: 13px; }
.caption-hint { color: #9aa6b2; font-size: 12px; }
.mobile-hint { display: none; }

.table-wrap { overflow: auto; max-height: min(70vh, 900px); border-top: 1px solid #e7ecf2; outline-offset: -3px; }
table { width: 100%; min-width: 1530px; border-collapse: separate; border-spacing: 0; table-layout: auto; }
thead th { position: sticky; top: 0; z-index: 2; height: 48px; padding: 0 14px; background: #f8fafc; border-bottom: 1px solid #dfe6ed; color: #68788b; font-size: 12px; font-weight: 700; white-space: nowrap; text-align: left; }
thead th:first-child, tbody td:first-child { padding-left: 22px; }
thead th:last-child, tbody td:last-child { padding-right: 22px; }
thead th:first-child { left: 0; z-index: 4; box-shadow: 1px 0 0 #e6ebf0; }
thead th button { display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; border: 0; background: none; color: inherit; padding: 12px 0; font-size: inherit; font-weight: inherit; white-space: nowrap; }
thead th.numeric button { justify-content: flex-end; width: 100%; }
thead th button:hover, thead th[aria-sort="ascending"] button, thead th[aria-sort="descending"] button { color: #145a9a; }
.sort-icon { font-size: 13px; color: #b0bcc8; }
thead th[aria-sort="ascending"] .sort-icon, thead th[aria-sort="descending"] .sort-icon { color: #145a9a; font-weight: 800; }
tbody td { height: 64px; padding: 10px 14px; border-bottom: 1px solid #edf0f4; color: #344354; font-size: 14px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f4f8fc; }
tbody td:first-child { position: sticky; left: 0; z-index: 1; background: white; box-shadow: 1px 0 0 #edf0f4; }
tbody tr:hover td:first-child { background: #f4f8fc; }
.contract { color: #172b44; font-size: 15px; font-weight: 750; white-space: nowrap; }
.token { color: #344455; font-weight: 650; }
.type { font-size: 12px; color: #607287; white-space: nowrap; }
.badge { display: inline-block; border-radius: 5px; padding: 5px 8px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge.usdm { background: #fff3dc; color: #946006; }
.badge.coinm { background: #e7f3f8; color: #216d8b; }
.numeric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.volume-unit { color: #9ba7b4; font-size: 11px; font-weight: 500; }
.positive { color: #16814d; font-weight: 680; }
.negative { color: #cb4552; font-weight: 680; }
.muted { color: #94a2af; }
.links { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-width: 228px; }
.links a { padding: 4px 6px; border-radius: 5px; color: #2e659a; background: #edf5fc; font-size: 11px; font-weight: 650; white-space: nowrap; }
.links a:hover { color: #fff; background: #2169aa; }
.empty-state { height: 150px; text-align: center; color: #8393a3; font-size: 14px; }
.table-footer { min-height: 55px; padding: 10px 22px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #e6ebf0; color: #8090a1; font-size: 12px; }
.pager { display: flex; align-items: center; gap: 10px; }
.pager button { width: 30px; height: 30px; border: 1px solid #dce4eb; border-radius: 7px; background: white; color: #4d627a; font-size: 15px; }
.pager button:hover:not(:disabled) { background: #eff6fd; border-color: #85add2; }
.pager button:disabled { color: #bac5ce; cursor: not-allowed; }
.pager span { min-width: 45px; text-align: center; font-variant-numeric: tabular-nums; }

.data-details { margin: 15px 2px 0; font-size: 12px; color: #66788a; }
.data-details details summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-weight: 650; }
.data-details details summary::-webkit-details-marker { display: none; }
.data-details details summary strong { color: #344c63; }
.data-details details[open] summary span { transform: rotate(180deg); }
.source-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.source-chip { padding: 5px 8px; border: 1px solid #d8e1ea; border-radius: 5px; color: #657789; background: white; }
.source-chip.ok { color: #23754d; border-color: #badfcc; }
.source-chip.failed { color: #b24450; border-color: #e7b7bb; }
.source-chip.loading { color: #a67a23; border-color: #eadbb6; }
.notice { margin: 10px 0 0; line-height: 1.5; color: #8997a5; }
.notice.warn { color: #9b6714; }
footer { padding: 25px 0 35px; color: #a2acb8; font-size: 11px; }

@media (max-width: 1100px) {
  .site-shell { padding: 0 24px; }
  .page-header { align-items: flex-start; }
  .filter-panel { gap: 8px; }
  .search-field { max-width: none; flex-basis: 100%; }
  .field:not(.search-field) { flex: 1 1 155px; }
}
@media (max-width: 650px) {
  .site-shell { padding: 0 12px; }
  .topbar { height: 55px; }
  .page-header { flex-direction: column; align-items: stretch; gap: 14px; padding: 23px 2px 20px; }
  .page-description { font-size: 13px; }
  .header-actions { flex-direction: row; align-items: center; justify-content: space-between; }
  .updated { text-align: right; }
  .catalog-summary { align-items: flex-start; flex-direction: column; gap: 12px; padding: 15px; }
  .summary-counts { gap: 9px; font-size: 11px; }
  .summary-counts strong { font-size: 16px; }
  .filter-panel { padding: 12px 15px; }
  .field:not(.search-field) { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .more-filters { flex: 1; }
  .more-filters summary { justify-content: flex-start; }
  .advanced-fields { left: auto; right: 0; width: min(288px, calc(100vw - 54px)); }
  .list-toolbar { padding: 0 15px 12px; align-items: flex-start; }
  .list-caption { flex-direction: column; align-items: flex-start; gap: 2px; }
  .desktop-hint { display: none; }
  .mobile-hint { display: block; font-size: 11px; }
  .table-wrap { max-height: 66vh; }
  .table-footer { padding: 10px 15px; }
}
