:root {
  color-scheme: dark;
  --bg: #0b1019;
  --panel: #131a26;
  --line: #283241;
  --muted: #9faec2;
  --mint: #43dfbf;
  --light: #f0f4fa;
  --hover: #1d2839;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--light);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-variant-numeric: tabular-nums;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover,
.address:hover {
  color: var(--mint);
}
svg[aria-hidden] {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linejoin: round;
  stroke-linecap: round;
  flex: none;
}
h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.022em;
  font-weight: 625;
}
h1 {
  font-size: 1.75rem;
}
h2 {
  font-size: 1.1rem;
}
h3 {
  font-size: 1rem;
}
input,
select,
button,
.ib {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
}
button,
select,
.ib {
  cursor: pointer;
}
button,
.ib,
.pick,
.search,
select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #344154;
  border-radius: 8px;
  min-height: 42px;
  padding: 0 15px;
  font-size: 0.88rem;
  font-weight: 500;
}
button:hover,
.ib:hover {
  background: var(--hover);
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
.primary {
  background: var(--mint);
  border-color: var(--mint);
  color: #072924;
  font-weight: 650;
  height: 44px;
}
.primary:hover {
  background: #82efd8;
}
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
input {
  min-width: 0;
  width: 100%;
}
input::placeholder {
  color: #95a3b9;
}
select option {
  background: var(--panel);
}
.frame {
  width: min(1320px, 92%);
  margin-inline: auto;
}
.group,
.bar,
.heading,
.tools,
.actions,
.line,
footer,
.full,
.end,
#paging,
.tx {
  display: flex;
  align-items: center;
  gap: 16px;
}
.bar,
.tools,
.line,
.heading,
#paging,
.tx {
  justify-content: space-between;
}
header {
  background: #0e141f;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
}
.bar {
  height: 72px;
  gap: 58px;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 1.32rem;
  font-weight: 720;
  letter-spacing: -0.04em;
  color: var(--light) !important;
}
.brand img {
  margin-right: 9px;
}
.brand span,
.positive {
  color: var(--mint);
}
nav {
  display: flex;
  gap: 32px;
  height: 100%;
  color: var(--muted);
}
nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid transparent;
  font-size: 0.94rem;
  font-weight: 550;
}
[data-view="home"] .home,
[data-view="guide"] .guide,
[data-view="change"] .change,
[data-view="watch"] .watch {
  color: var(--mint);
  border-color: currentColor;
}
#wc:not(:empty) {
  font-size: 0.77rem;
  background: var(--hover);
  padding: 2px 5px;
  border-radius: 6px;
}
#language,
#stamp,
.metrics span,
.busy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}
#language {
  margin-left: auto;
}
#stamp,
.source,
small,
.sub,
.dash,
footer,
.metrics span,
#compare {
  color: var(--muted);
}
#stamp.late {
  color: #ffc45a;
}
main {
  min-height: 75vh;
}
.heading {
  margin: 32px 0 24px;
}
.heading .group:first-child {
  gap: 12px;
}
.coin {
  background: #f6971c;
  border-radius: 50%;
  height: 36px;
  width: 36px;
  display: grid;
  place-items: center;
}
.coin svg {
  color: white;
  width: 28px;
  height: 28px;
  stroke-width: 2.45;
}
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
}
.metrics {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 0.9fr;
  padding: 22px 0;
}
.metrics > div {
  padding: 0 28px;
  border-left: 1px solid var(--line);
}
.metrics > div:first-child {
  border: 0;
}
.metrics svg {
  color: var(--mint);
  width: 18px;
  height: 18px;
}
.metrics > div:nth-child(2) svg {
  color: #85adff;
}
.metrics > div:nth-child(3) svg {
  color: #ba9aff;
}
.metrics > div:nth-child(4) svg {
  color: #ffbd65;
}
strong {
  display: block;
  font-size: 1.78rem;
  font-weight: 625;
  letter-spacing: -0.025em;
}
.metrics strong {
  margin-top: 9px;
}
small {
  font-size: 0.85rem;
  letter-spacing: 0;
  font-weight: 500;
}
.charts {
  display: grid;
  grid-template-columns: 1.47fr 1fr;
  gap: 18px;
  margin: 18px 0;
}
.charts .panel {
  min-width: 0;
  padding: 22px 25px 16px;
}
.segments {
  display: flex;
  padding: 3px;
  background: var(--bg);
  border-radius: 8px;
}
.segments button {
  min-height: 28px;
  border: 0;
  font-size: 0.81rem;
  color: var(--muted);
  padding: 0 14px;
  border-radius: 6px;
}
.segments [aria-pressed="true"] {
  color: var(--light);
  background: #2c394c;
}
#readout {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--muted);
  margin: 8px 0 10px;
}
#readout b {
  font-weight: 620;
  color: var(--mint);
  font-size: 1.21rem;
}
#curve {
  height: 195px;
  cursor: crosshair;
  touch-action: pan-y;
}
#curve text {
  fill: var(--muted);
  font-size: 12px;
}
.buckets {
  display: flex;
  flex-direction: column;
}
.buckets h2 {
  line-height: 34px;
}
.viz {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 18px;
  flex: 1;
}
#donut {
  width: min(41%, 182px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
#donut > div {
  background: var(--panel);
  border-radius: 50%;
  width: 72%;
  height: 72%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 3px;
}
#donut strong {
  font-size: 1.5rem;
}
#donut span,
.sub {
  font-size: 0.78rem;
  color: var(--muted);
}
#legend {
  flex: 1;
}
.sub {
  margin: 0 0 6px 6px;
}
#legend button {
  border: 0;
  width: 100%;
  padding: 0 6px;
  min-height: 37px;
  color: #cbd4e1;
  font-size: 0.84rem;
  white-space: nowrap;
  justify-content: flex-start;
}
#legend b {
  margin-left: auto;
  font-weight: 600;
  color: var(--light);
}
#legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--k);
}
#legend [aria-pressed="true"] {
  background: var(--hover);
}
.directory {
  overflow: hidden;
  scroll-margin-top: 84px;
  margin-top: 18px;
}
.tools {
  padding: 20px 24px;
  flex-wrap: wrap;
}
#board small {
  margin-left: 6px;
}
.actions {
  gap: 12px;
}
.search,
.pick {
  background: #0e1520;
  padding: 0 12px;
  color: var(--muted);
}
.search:focus-within,
.pick:focus-within {
  border-color: var(--mint);
}
.search input {
  width: 210px;
  color: var(--light);
  outline: none;
}
.pick {
  position: relative;
  pointer-events: none;
}
.pick select {
  pointer-events: auto;
  margin: 0 -36px;
  padding: 0 36px;
  appearance: none;
  border: 0;
  outline: none;
  color: var(--light);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}
caption {
  text-align: left;
  padding: 0 24px 16px;
}
th {
  background: #192230;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.82rem;
}
td,
th {
  padding: 6px 13px;
  border-bottom: 1px solid var(--line);
  height: 46px;
}
th:first-child,
td:first-child {
  padding-left: 18px;
}
th:last-child,
td:last-child {
  padding-right: 26px;
}
th button {
  color: var(--light);
  min-height: 30px;
  border: 0;
  padding: 0;
  font-size: inherit;
}
th svg {
  color: var(--mint);
}
.num {
  text-align: right;
  white-space: nowrap;
}
tr:hover td {
  background: #172131;
}
.ib {
  width: 44px;
  height: 44px;
  border: 0;
  flex: none;
  padding: 0;
  color: var(--muted);
  vertical-align: middle;
}
.ib[aria-pressed="true"] svg {
  fill: #f9bd55;
  color: #f9bd55;
}
.rank {
  color: var(--muted);
}
.fav {
  width: 64px;
  padding-right: 0;
}
.adr {
  white-space: nowrap;
}
.address,
code,
.tx a,
.initial {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.address {
  padding: 0;
  border: 0;
  background: transparent !important;
  color: #dce6f4;
}
.short {
  display: none;
}
.alias span:not(.dash) {
  display: inline-block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  padding: 4px 9px;
  background: #243143;
  border-radius: 6px;
}
.bal {
  font-weight: 560;
}
.share {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.share i {
  width: 74px;
  height: 5px;
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.share b {
  display: block;
  height: 100%;
  border-radius: 8px;
  min-width: 1px;
}
#paging {
  padding: 16px 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}
#paging .group {
  gap: 2px;
}
.initial {
  overflow-wrap: anywhere;
  white-space: normal;
}
.source,
footer {
  font-size: 0.84rem;
  line-height: 1.7;
}
.source a,
article a,
.tx a,
.line a {
  color: var(--mint);
}
footer {
  padding: 22px 0 36px;
  border-top: 1px solid var(--line);
  margin-top: 42px !important;
  flex-wrap: wrap;
}
footer a:first-child {
  margin-right: auto;
}
#compare,
.empty p {
  line-height: 1.6;
  font-size: 0.94rem;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 50px 12px;
}
article {
  max-width: 760px;
  margin: 48px auto;
  line-height: 1.75;
}
article img {
  float: right;
  margin: 0 0 12px 20px;
}
article h2 {
  margin-top: 32px;
}
article p,
dialog p {
  color: #b6c4d6;
  line-height: 1.7;
}
dl {
  display: grid;
  grid-template-columns: 1fr auto;
  font-size: 0.9rem;
  gap: 10px;
}
dd {
  margin: 0;
  text-align: right;
}
dialog {
  width: min(660px, 94vw);
  max-height: 88dvh;
  border: 1px solid #3a4557;
  background: var(--panel);
  color: var(--light);
  border-radius: 16px;
  padding: 28px;
  overflow: auto;
}
body:has(dialog[open]) {
  overflow: hidden;
}
dialog::backdrop {
  background: #050911b8;
  backdrop-filter: blur(4px);
}
dialog.small {
  max-width: 440px;
}
.dismiss {
  float: right;
  position: sticky;
  top: 0;
  margin: -10px -12px 0 0;
  background: var(--panel);
  z-index: 1;
}
dialog h2 {
  overflow-wrap: anywhere;
}
dialog p,
dialog .line {
  font-size: 0.88rem;
}
.full {
  margin: 22px 0 16px;
  background: var(--bg);
  border-radius: 8px;
  padding: 6px 10px;
  gap: 4px;
  justify-content: space-between;
}
code {
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
dialog .line {
  flex-wrap: wrap;
}
.end {
  justify-content: flex-end;
  margin-top: 26px;
}
.negative,
.danger {
  color: #ff8589;
}
form {
  margin-top: 26px;
}
form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
form input {
  display: block;
  border-radius: 7px;
  padding: 12px;
  border: 1px solid #415069;
  margin-top: 8px;
  background: var(--bg);
  font-size: 1rem;
}
form button,
#more {
  width: 100%;
  margin-top: 16px;
}
#live {
  margin-top: 26px;
}
.summary {
  padding: 20px 0;
  border-block: 1px solid var(--line);
  margin-bottom: 22px;
  line-height: 1.65;
}
.summary span,
.tx div:first-child span,
.tx small {
  display: block;
  font-size: 0.83rem;
  color: var(--muted);
}
.tx {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 0.9rem;
  line-height: 1.65;
  flex-wrap: wrap;
  gap: 6px;
}
.busy svg {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#toast {
  margin: 0 auto;
  inset: 24px 0 auto;
  max-width: 90vw;
  background: #e5f6f2;
  color: #132b2d;
  padding: 13px 22px;
  border: 0;
  border-radius: 9px;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s;
  box-shadow: 0 6px 25px #0004;
}
#toast.exit {
  opacity: 0;
  transform: translateY(-6px);
}
@media (prefers-reduced-motion: reduce) {
  .busy svg {
    animation: pulse 1s alternate infinite;
  }
  @keyframes pulse {
    to {
      opacity: 0.4;
    }
  }
  #toast.exit {
    transform: none;
  }
}
@media (max-width: 1200px) {
  .charts {
    grid-template-columns: 1.15fr 1fr;
  }
  .viz {
    gap: 10px;
  }
  .charts .panel {
    padding: 20px;
  }
  .metrics > div {
    padding: 0 20px;
  }
  .share i {
    width: 44px;
  }
  .wide {
    display: none;
  }
  .short {
    display: inline;
  }
  .alias span:not(.dash) {
    max-width: 110px;
  }
}
@media (max-width: 980px) {
  .charts {
    grid-template-columns: 1fr 1fr;
  }
  .viz {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }
  #donut {
    width: 128px;
  }
  #legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 0 6px;
  }
  #legend button {
    font-size: 0.76rem;
    padding: 0 2px;
    gap: 4px;
  }
  .sub,
  .share i {
    display: none;
  }
  .metrics small {
    display: block;
    margin-top: 4px;
  }
  .metrics > div:last-child small {
    display: inline;
  }
  .bar {
    gap: 24px;
  }
  nav {
    gap: 20px;
  }
  .search input {
    width: 165px;
  }
  td,
  th {
    padding: 5px 6px;
  }
}
@media (max-width: 860px) {
  .bar {
    height: auto;
    flex-wrap: wrap;
    gap: 0;
  }
  .brand {
    height: 56px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  nav {
    order: 3;
    width: 100%;
    height: 42px;
    justify-content: space-between;
    gap: 6px;
  }
  nav a {
    font-size: 0.85rem;
  }
  .heading {
    flex-wrap: wrap;
    margin: 22px 0 18px;
    gap: 14px;
  }
  .heading > .group:last-child {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }
  .heading h1 {
    font-size: 1.5rem;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    padding: 0;
  }
  .metrics > div {
    padding: 16px;
  }
  .metrics > div:nth-child(3) {
    border-left: 0;
  }
  .metrics > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .metrics small {
    display: inline;
  }
  .metrics strong {
    font-size: 1.46rem;
  }
  .metrics span {
    font-size: 0.85rem;
  }
  .charts {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 14px 0;
  }
  .charts .panel {
    padding: 16px;
  }
  .viz {
    flex-direction: row;
    justify-content: center;
    gap: 6%;
    margin: 16px 0 6px;
  }
  #legend {
    display: block;
    max-width: 240px;
  }
  #donut {
    width: min(36%, 160px);
  }
  #legend button {
    font-size: 0.82rem;
    gap: 6px;
  }
  .sub {
    display: block;
    margin-left: 2px;
  }
  .tools,
  .actions {
    width: 100%;
  }
  .tools {
    padding: 16px;
  }
  .actions {
    flex-wrap: wrap;
    gap: 10px;
  }
  .search {
    flex: 1;
  }
  .search input {
    width: 100%;
    font-size: 1rem;
  }
  .directory {
    scroll-margin-top: 106px;
  }
  #table {
    overflow: auto;
  }
  .alias span:not(.dash) {
    max-width: 92px;
  }
  #csv {
    width: 44px;
    height: 44px;
  }
  #csv span {
    display: none;
  }
}
@media (max-width: 760px) {
  table:has(.fav),
  table:has(.fav) tbody,
  table:has(.fav) thead {
    display: block;
  }
  table:has(.fav) tr {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 6px 12px 12px 2px;
  }
  table:has(.fav) thead tr {
    background: #192230;
    padding-block: 4px;
  }
  th:not(:nth-child(3)):not(:has(button)) {
    display: none;
  }
  td,
  th,
  td:first-child,
  td:last-child,
  th:last-child {
    padding: 0;
    height: auto;
    border: 0;
  }
  th:nth-child(3) {
    grid-column: 2;
  }
  .fav {
    width: auto;
    grid-area: 1/1;
  }
  .rank {
    grid-area: 2/1;
    text-align: center;
    font-size: 0.78rem;
  }
  .adr {
    grid-area: 1/2/1/4;
    display: flex;
    align-items: center;
  }
  .alias {
    grid-area: 1/3;
    pointer-events: none;
    text-align: right;
  }
  .alias span:not(.dash) {
    max-width: 84px;
    font-size: 0.76rem;
    padding: 3px 5px;
  }
  .dash {
    display: none;
  }
  .bal {
    grid-area: 2/3;
    text-align: right;
    font-size: 0.88rem;
  }
  .tail {
    grid-area: 2/2;
    text-align: left;
    color: var(--muted);
    white-space: normal;
    font-size: 0.81rem;
    overflow-wrap: anywhere;
    padding-right: 6px;
  }
  .share {
    justify-content: flex-start;
  }
  .share i {
    display: block;
    width: 36px;
  }
  tr:hover td {
    background: transparent;
  }
  #paging {
    justify-content: center;
    padding: 12px;
  }
  #paging .group {
    gap: 0;
  }
  #jump {
    padding-inline: 6px;
  }
}
@media (max-width: 535px) {
  .frame {
    width: calc(100% - 28px);
  }
  #stamp {
    font-size: 0.76rem;
    display: block;
    max-width: 54%;
  }
  #stamp svg {
    display: none;
  }
  .primary {
    padding-inline: 12px;
  }
  .heading .group:first-child {
    gap: 9px;
  }
  .coin {
    width: 32px;
    height: 32px;
  }
  .metrics > div {
    padding: 15px 12px;
  }
  .metrics strong {
    font-size: 1.32rem;
  }
  .metrics small {
    font-size: 0.76rem;
  }
  .metrics > div:nth-child(-n + 2) small {
    display: block;
  }
  #readout {
    font-size: 0.77rem;
    gap: 7px;
    flex-wrap: wrap;
  }
  .segments button {
    padding-inline: 9px;
  }
  h2 {
    font-size: 1.02rem;
  }
  #donut strong {
    font-size: 1.1rem;
  }
  #donut span {
    font-size: 0.74rem;
  }
  .viz {
    gap: 4%;
  }
  #donut {
    width: 35%;
  }
  .search {
    flex: 1 1 100%;
  }
  .pick {
    flex: 1;
  }
  .pick select {
    width: calc(100% + 24px);
  }
  .actions:not(:has(.pick[hidden])) .pick {
    justify-content: space-between;
  }
  .actions:has(.pick[hidden]) .search {
    flex: 1;
  }
  dialog {
    padding: 22px 16px;
  }
  .summary strong {
    font-size: 1.25rem;
  }
  .tx {
    font-size: 0.84rem;
  }
  dl {
    display: block;
  }
  dd {
    text-align: left;
    margin-bottom: 12px;
  }
  #privacy {
    scroll-margin-top: 110px;
  }
}
@media (max-width: 380px) {
  .alias span:not(.dash) {
    max-width: 60px;
  }
  .address {
    font-size: 0.8rem;
  }
  .metrics > div {
    padding: 13px 9px;
  }
  .metrics span {
    gap: 5px;
  }
  .viz {
    flex-direction: column;
  }
  #legend {
    max-width: none;
  }
  #donut {
    width: 126px;
  }
  .share i {
    display: none;
  }
  .bal {
    font-size: 0.815rem;
  }
  nav a {
    font-size: 0.78rem;
  }
  #wc {
    display: none;
  }
}
