:root {
  color-scheme: light;
  --ink: #172923;
  --muted: #65766f;
  --line: #dfe6e2;
  --green: #196748;
  --canvas: #f5f7f5;
  --sans: "DM Sans", "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", Consolas, "SFMono-Regular", monospace;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
select,
a {
  touch-action: manipulation;
}
button,
select {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #53ae92;
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
}
button {
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
.ico {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: none;
  vertical-align: middle;
}
.shell {
  width: min(1344px, calc(100% - 9vw));
  margin: auto;
}
.top {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav {
  height: 65px;
  display: flex;
  gap: 24px;
  align-items: center;
}
.brand,
.nav-active,
.nav-end,
.plain,
.currency,
.hero-label,
.actions,
.section-title,
.quote-time,
.card-head,
.card-foot,
.listing-top,
.listing-heading,
.search,
.toolbar,
.switch,
.filter,
.list-footer,
.pager,
.footer-brand,
footer a,
.dialog-head {
  display: flex;
  align-items: center;
}
.brand {
  gap: 10px;
}
.brand b {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 23px;
  letter-spacing: -1.05px;
  font-weight: 700;
}
.nav-divider {
  height: 21px;
  width: 1px;
  background: var(--line);
}
.nav-active {
  gap: 8px;
  color: #426554;
  font-weight: 600;
  font-size: 13px;
}
.nav-active .ico {
  width: 15px;
}
.nav-end {
  margin-left: auto;
  gap: 22px;
}
.currency {
  color: #476358;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.currency span,
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #37a77c;
}
.plain {
  padding: 7px;
  background: none;
  border: 0;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}
.plain:hover,
.edit:hover {
  color: var(--green);
  background: #eff6f2;
  border-radius: 6px;
}
main {
  padding: 25px 0 0;
}
.hero {
  color: white;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(103deg, #10362d, #104433 72%, #0c3c31);
  border: 1px solid #123e30;
  border-radius: 16px;
  min-height: 228px;
  display: flex;
  align-items: center;
}
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero-copy {
  padding: 28px 36px 30px;
  max-width: 73%;
}
.hero-label {
  color: #9ae3b9;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 600;
}
.hero-label .ico {
  width: 17px;
  height: 17px;
}
.hero h1 {
  font-size: clamp(30px, 3.25vw, 46px);
  line-height: 1.18;
  margin: 11px 0 10px;
  letter-spacing: 0.012em;
  font-weight: 720;
}
.hero p {
  font-size: 14px;
  line-height: 1.65;
  color: #c3d8cd;
  margin: 0;
  letter-spacing: 0.2px;
}
.actions {
  gap: 11px;
  margin-top: 23px;
  flex-wrap: wrap;
}
.actions button,
.dialog-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  min-height: 39px;
  border-radius: 7px;
  font-size: 13px;
  letter-spacing: 0.1px;
  font-weight: 650;
}
.primary,
.dialog-action {
  background: #a1f4c3;
  border: 1px solid #a1f4c3;
  color: #123c2a;
}
.primary:hover,
.dialog-action:hover {
  background: #c0ffd9;
}
.secondary {
  background: #ffffff08;
  border: 1px solid #729c87;
  color: #ebfff3;
}
.secondary:hover {
  background: #ffffff14;
}
.actions .ico {
  width: 16px;
  height: 16px;
}
.actions button:disabled {
  opacity: 0.72;
}
.spin .ico {
  animation: turn 1.8s linear infinite;
}
@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}
.section-title {
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 13px;
}
h2 {
  font-size: 18px;
  font-weight: 680;
  letter-spacing: 0.02em;
  margin: 0;
}
.quote-time {
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.quote-time .ico {
  width: 14px;
  height: 14px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.card,
.listing {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 2px 4px #19332403;
}
.card {
  padding: 16px 20px 15px;
  min-height: 121px;
}
.card-head {
  gap: 9px;
  font-size: 13px;
  color: #53655c;
  font-weight: 560;
}
.tile-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
}
.tile-icon .ico {
  width: 16px;
  height: 16px;
}
.green {
  color: #25774e;
  background: #e6f4e9;
}
.blue {
  color: #46718c;
  background: #eaf2f6;
}
.red {
  color: #bf6259;
  background: #fbefec;
}
.amber {
  color: #aa7b24;
  background: #fbf3df;
}
.edit {
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #74847b;
  padding: 5px;
}
.edit .ico {
  width: 15px;
  height: 15px;
}
.card-value {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 9px 0 6px;
  line-height: 1.1;
}
.card-value strong {
  font-size: 31px;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  font-weight: 680;
}
.top-unit {
  font-size: 22px;
  letter-spacing: -0.6px;
  font-weight: 530;
}
.unit {
  font-size: 12px;
  color: #748178;
}
.card-foot {
  font-size: 11px;
  gap: 7px;
  color: #79857d;
  letter-spacing: 0.2px;
}
.red-dot {
  background: #c16b60;
}
.amber-dot {
  background: #c19742;
}
.notice {
  display: block;
  white-space: pre-line;
  border: 1px solid #e9d9a7;
  background: #fffaed;
  color: #785d2a;
  padding: 11px 15px;
  border-radius: 8px;
  line-height: 1.65;
  margin: 16px 0 -5px;
  font-size: 13px;
}
[hidden] {
  display: none !important;
}
.listing {
  margin-top: 22px;
  overflow: hidden;
}
.listing-top {
  justify-content: space-between;
  gap: 15px;
  padding: 20px 21px 14px;
}
.listing-heading {
  gap: 10px;
}
.listing-heading .ico {
  color: #3b7457;
  width: 19px;
  height: 19px;
}
.search {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 11px;
  gap: 8px;
  color: #718379;
}
.search:focus-within {
  border-color: #74ab8f;
}
.search .ico {
  width: 15px;
  height: 15px;
}
.search input {
  width: 175px;
  border: 0;
  outline: 0;
  font-size: 12px;
  background: transparent;
  color: var(--ink);
}
.search input::placeholder {
  color: #839188;
}
.toolbar {
  justify-content: space-between;
  padding: 0 21px 15px;
  gap: 14px;
}
.switch {
  border: 1px solid #e4eae5;
  border-radius: 7px;
  padding: 3px;
  background: #f2f5f2;
}
.switch button {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid transparent;
  color: #718078;
  font-size: 12px;
  font-weight: 570;
  border-radius: 5px;
  padding: 5px 11px;
}
.switch .selected {
  border-color: #dce7df;
  background: #fff;
  color: #195b3d;
  box-shadow: 0 1px 3px #183c2810;
}
.switch span {
  border-radius: 4px;
  background: #e6ebe7;
  color: #63776a;
  font: 10px var(--mono);
  padding: 2px 4px;
}
.switch .selected span {
  background: #e7f4ec;
  color: #2d7250;
}
.filter {
  gap: 7px;
  color: #607268;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
}
.filter .ico {
  width: 13px;
  height: 13px;
  pointer-events: none;
}
.filter select {
  border: 0;
  color: inherit;
  background: transparent;
  appearance: none;
  padding: 6px 24px 6px 29px;
  margin: -6px -24px -6px -29px;
  font-size: 12px;
  position: relative;
  z-index: 1;
}
.table-scroll {
  overflow: auto;
  scrollbar-width: thin;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
  text-align: left;
  white-space: nowrap;
}
th {
  background: #f6f8f6;
  color: #738078;
  font-size: 11px;
  font-weight: 570;
  letter-spacing: 0.3px;
  height: 38px;
}
th,
td {
  padding: 0 13px;
  border-bottom: 1px solid #eaf0ea;
}
th:first-child,
td:first-child {
  padding-left: 23px;
  width: 7%;
}
th:last-child,
td:last-child {
  padding-left: 25px;
  padding-right: 22px;
}
th button {
  font: inherit;
  color: inherit;
  border: 0;
  background: transparent;
  padding: 2px 0;
}
th button[data-sort]::after {
  content: "↕";
  font: 10px var(--mono);
  margin-left: 4px;
  color: #829289;
}
th[aria-sort="ascending"] button::after {
  content: "↑";
  color: #28794b;
}
th[aria-sort="descending"] button::after {
  content: "↓";
  color: #28794b;
}
.num {
  text-align: right;
}
.info .ico {
  width: 12px;
  height: 12px;
}
td {
  height: 56px;
  font-size: 13px;
}
td.num,
.rank,
.price {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
tr:hover td {
  background: #f8fbf8;
}
.rank {
  color: #738178;
}
.token {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 265px;
  text-align: left;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 4px 0;
}
.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  color: var(--avatar-ink, #377051);
  background: var(--avatar-bg, #e5f3ea);
  font-size: 11px;
  font-weight: 700;
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: white;
}
.identity {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.token-name {
  font-size: 13px;
  color: #243c2e;
  font-weight: 610;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticker {
  font: 10px var(--mono);
  color: #7a887e;
  letter-spacing: 0.3px;
}
.positive {
  color: #287843;
}
.negative {
  color: #b85050;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 5px;
  color: #64756a;
  background: #f0f3f0;
}
.tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.tag.below {
  color: #aa4a44;
  background: #faeeec;
}
.tag.near,
.tag.touching {
  color: #9b721d;
  background: #fbf2d9;
}
.empty {
  padding: 32px 16px 34px;
  text-align: center;
}
.empty-icon {
  width: 43px;
  height: 43px;
  background: #edf5ee;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  color: #548365;
}
.empty b {
  font-size: 14px;
}
.empty p {
  margin: 7px 0 0;
  color: #728078;
  font-size: 12px;
}
.list-footer {
  justify-content: space-between;
  padding: 12px 22px;
  color: #728078;
  font-size: 12px;
}
.pager {
  gap: 10px;
  font: 11px var(--mono);
}
.pager button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
}
.pager button:disabled {
  opacity: 0.35;
}
.pager .ico {
  width: 13px;
  height: 13px;
}
footer {
  padding: 21px 2px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #78857d;
  font-size: 11px;
}
.footer-brand {
  gap: 5px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
.footer-brand img {
  width: 16px;
  opacity: 0.5;
  filter: grayscale(1);
}
footer a {
  gap: 5px;
}
footer a:hover {
  color: var(--green);
}
footer .ico {
  width: 12px;
  height: 12px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: min(460px, calc(100vw - 30px));
  width: 100%;
  color: var(--ink);
  padding: 23px;
  box-shadow: 0 18px 80px #09271e36;
}
dialog::backdrop {
  background: #10291e70;
}
.dialog-head {
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}
dialog p,
dialog dd,
dialog dt {
  font-size: 13px;
  line-height: 1.65;
}
dialog p {
  color: #52695a;
}
dialog dt {
  color: var(--muted);
}
dialog dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
dialog dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px 18px;
  margin: 0 0 17px;
}
.dialog-action {
  margin-top: 9px;
}
.field {
  display: grid;
  gap: 9px;
  font-size: 13px;
}
.field input {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
@media (min-width: 1560px) {
  .hero {
    min-height: 244px;
  }
}
@media (max-width: 900px) {
  .shell {
    width: calc(100% - 44px);
  }
  .card {
    padding: 14px;
  }
  .metrics {
    gap: 10px;
  }
  .hero-copy {
    max-width: 78%;
    padding-left: 26px;
  }
  .hero p {
    max-width: 430px;
  }
  .hero h1 {
    font-size: 34px;
  }
}
@media (max-width: 650px) {
  .shell {
    width: calc(100% - 28px);
  }
  .nav {
    height: 57px;
    gap: 11px;
  }
  .brand {
    gap: 7px;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .brand b {
    font-size: 20px;
  }
  .nav-divider,
  .nav-active {
    display: none;
  }
  .nav-end {
    gap: 8px;
  }
  .currency {
    font-size: 10px;
    gap: 5px;
  }
  .plain {
    font-size: 12px;
  }
  .hero {
    min-height: 224px;
    border-radius: 12px;
  }
  .hero-copy {
    padding: 20px;
    max-width: 100%;
  }
  .hero-label {
    font-size: 10px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 12px;
    max-width: 78%;
    color: #d0e2d6;
  }
  .hero canvas {
    opacity: 0.55;
  }
  .actions {
    margin-top: 18px;
    gap: 7px;
  }
  .actions button {
    padding: 9px 11px;
    font-size: 12px;
  }
  .section-title {
    margin: 21px 0 11px;
  }
  .quote-time {
    font-size: 10px;
  }
  .quote-time .ico {
    width: 12px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .card {
    min-height: 105px;
    padding: 12px 14px;
  }
  .card-value {
    margin: 7px 0;
  }
  .card-value strong {
    font-size: 26px;
  }
  .card-head {
    font-size: 12px;
  }
  .tile-icon {
    width: 24px;
    height: 24px;
  }
  .card-foot {
    font-size: 10px;
  }
  main {
    padding-top: 15px;
  }
  .listing {
    margin-top: 15px;
  }
  .listing-top {
    padding: 15px 12px 11px;
  }
  .listing-heading {
    gap: 6px;
  }
  h2 {
    font-size: 16px;
  }
  .search {
    padding: 7px;
    gap: 4px;
  }
  .search input {
    width: 115px;
    font-size: 11px;
  }
  .toolbar {
    padding: 0 12px 12px;
    gap: 5px;
  }
  .switch button {
    padding: 5px 7px;
    gap: 4px;
  }
  .filter {
    gap: 4px;
  }
  .list-footer {
    padding: 10px 13px;
  }
  footer {
    padding-top: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.edit {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 11px;
  white-space: nowrap;
}
.edit .ico {
  width: 12px;
}
.empty-tip {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 980px) and (min-width: 651px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card {
    min-height: 105px;
  }
  .card-value {
    margin: 6px 0;
  }
  .hero-copy {
    max-width: 72%;
  }
  table {
    min-width: 675px;
  }
  th,
  td {
    padding: 0 9px;
  }
  th:first-child,
  td:first-child {
    padding-left: 14px;
  }
  th:last-child,
  td:last-child {
    padding-left: 12px;
    padding-right: 14px;
  }
}
@media (max-width: 650px) {
  table {
    min-width: 0;
    table-layout: fixed;
  }
  th:first-child,
  td:first-child,
  th:nth-child(4),
  td:nth-child(4),
  th:nth-child(5),
  td:nth-child(5) {
    display: none;
  }
  th:nth-child(2),
  td:nth-child(2) {
    width: 33%;
    padding-left: 12px;
  }
  th:nth-child(3) {
    width: 24%;
  }
  th:nth-child(6) {
    width: 20%;
  }
  th:last-child,
  td:last-child {
    width: 23%;
    padding: 0 6px;
    text-align: center;
  }
  th,
  td {
    padding: 0 4px;
    font-size: 11px;
  }
  .identity {
    flex: 1;
  }
  .token {
    gap: 6px;
    max-width: 100%;
    min-width: 0;
  }
  .token-name {
    font-size: 12px;
  }
  .avatar {
    height: 23px;
    width: 23px;
    font-size: 9px;
  }
  .tag {
    font-size: 10px;
    padding: 3px 5px;
    gap: 3px;
  }
  .ticker {
    font-size: 9px;
  }
  .edit {
    font-size: 0;
    gap: 0;
  }
  .edit .ico {
    width: 14px;
  }
  .card-head {
    gap: 6px;
  }
}
@media (max-width: 365px) {
  .nav-end .currency {
    display: none;
  }
  .shell {
    width: calc(100% - 20px);
  }
  .avatar {
    display: none;
  }
  .search input {
    width: 102px;
  }
  .filter {
    padding: 6px;
  }
  .hero-copy {
    padding: 16px;
  }
}

.identity {
  grid-template-columns: minmax(0, 1fr);
}
.ticker {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 650px) {
  td.num {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .card-foot span {
    overflow-wrap: anywhere;
  }
  .hero p {
    overflow-wrap: anywhere;
  }
  .edit {
    min-width: 25px;
    min-height: 25px;
  }
}
@media (max-width: 365px) {
  td.num {
    font-size: 10px;
    letter-spacing: -0.15px;
  }
}
