:root {
  color-scheme: dark;
  --bg: #0d1115;
  --panel: #151a20;
  --inset: #10151a;
  --edge: #2b3139;
  --fine: #242b32;
  --text: #eef1f3;
  --secondary: #aeb8c3;
  --muted: #8a97a4;
  --faint: #76838f;
  --mint: #7ae3b8;
  --coral: #ef9298;
  --amber: #e5b774;
  --violet: #b09ce8;
  --blue: #8eb8ef;
  --sans:
    Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei',
    'Noto Sans CJK SC', sans-serif;
  --num: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font: 14px/1.5 var(--sans);
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
a,
input,
select {
  font: inherit;
}
button,
select {
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
  padding: 0;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
button:focus:not(:focus-visible) {
  outline: none;
}
input {
  min-width: 0;
}
input:focus {
  outline: none;
}
input::placeholder {
  color: #83909d;
}
input[type='search']::-webkit-search-cancel-button {
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 650;
}
svg.icon {
  vertical-align: middle;
  display: inline-block;
  flex: none;
}
i[data-icon] {
  font-style: normal;
  display: inline-flex;
  align-items: center;
}
[hidden] {
  display: none !important;
}
::selection {
  background: #305848;
  color: #fff;
}
.up {
  color: var(--mint) !important;
}
.down {
  color: var(--coral) !important;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
}
.small-meta {
  font: 11px var(--num);
  color: var(--muted);
  letter-spacing: 0.045em;
}
.top {
  min-height: 65px;
  background: #11161a;
  border-bottom: 1px solid var(--edge);
}
.topinner {
  max-width: 1536px;
  margin: auto;
  display: flex;
  align-items: stretch;
  padding: 0 clamp(22px, 3.7vw, 65px);
  gap: clamp(24px, 3.8vw, 72px);
  min-height: 65px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 22px;
  font-weight: 660;
  line-height: 1;
  letter-spacing: -0.9px;
  white-space: nowrap;
  color: #f4f5f5;
}
.brand b {
  color: var(--mint);
  font-weight: 550;
}
.brand #brand-mark {
  width: 32px;
  height: 35px;
  display: flex;
  align-items: center;
  color: var(--mint);
}
.logomark {
  width: 100%;
  height: 100%;
  display: block;
}
.primary {
  display: flex;
  align-items: stretch;
  gap: 26px;
}
.primary a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  position: relative;
  padding: 1px 4px 0;
  white-space: nowrap;
}
.primary a[aria-current='page'] {
  color: var(--mint);
}
.primary a[aria-current='page']:after {
  position: absolute;
  bottom: 0;
  left: 1px;
  right: 1px;
  height: 2px;
  content: '';
  background: var(--mint);
}
.primary a:hover,
.help-button:hover,
.footer button:hover {
  color: var(--text);
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
}
.endpoint-btn,
.btn,
.help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #353d44;
  border-radius: 7px;
  background: #1a2026;
  color: #d9e0e5;
  font-size: 12px;
  font-weight: 550;
  min-height: 34px;
  padding: 0 12px;
}
.btn:hover,
.endpoint-btn:hover,
.help-button:hover,
.seg button:hover {
  background: #252d34;
}
.endpoint-btn {
  background: #181f23;
  font-size: 12px;
  letter-spacing: 0.015em;
  gap: 9px;
}
.endpoint-btn #profile-name {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lamp {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 100%;
  background: var(--mint);
  flex: none;
}
.help-button {
  width: 29px;
  padding: 0;
  background: none;
  color: var(--muted);
  border: 0;
  min-height: 32px;
}
.shell {
  max-width: 1536px;
  margin: 0 auto;
  padding: 28px clamp(22px, 3.7vw, 65px) 0;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 14px;
}
.heading-line,
.page-actions,
.heading-wrap,
.stat-label,
.legend,
.form-label,
.row-flex {
  display: flex;
  align-items: center;
}
.heading-line {
  gap: 14px;
}
.page-head h1 {
  font-size: 32px;
  letter-spacing: -0.065em;
  line-height: 1.33;
}
.page-head p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
  letter-spacing: 0.015em;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.1;
  font-size: 10.5px;
  letter-spacing: 0.025em;
  color: var(--mint);
  background: #1b332b;
  border: 1px solid #2c4a3e;
  border-radius: 20px;
  padding: 5px 8px;
}
.status-pill.cached {
  color: var(--amber);
  background: #2b261d;
  border-color: #463a2a;
}
.status-pill.cached .lamp {
  background: var(--amber);
}
.status-pill.offline {
  color: var(--secondary);
  background: var(--inset);
  border-color: var(--edge);
}
.status-pill.offline .lamp {
  background: var(--muted);
}
.page-actions {
  gap: 14px;
}
.timestamp {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.timestamp .icon {
  margin-right: 5px;
  vertical-align: -2px;
}
.is-busy .icon {
  animation: spin 1.35s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 19px;
}
.panel,
.stat-card {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 12px;
  min-width: 0;
}
.stat-card {
  position: relative;
  overflow: hidden;
  padding: 16px 18px 13px;
  min-height: 109px;
}
.stat-card:after {
  content: '';
  position: absolute;
  pointer-events: none;
  inset: 0;
  background: linear-gradient(122deg, transparent 62%, var(--tint, #7ae3b8) 285%);
  opacity: 0.13;
}
.stat-label {
  gap: 7px;
  font-size: 12px;
  color: #bbc3cb;
}
.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 16px;
  top: 15px;
  width: 30px;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--tint) 18%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--tint) 7%, transparent);
  color: var(--tint);
}
.stat-value {
  font-family: var(--sans);
  font-size: clamp(24px, 2.18vw, 34px);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 1.25;
  margin: 8px 0 5px;
  font-variant-numeric: tabular-nums;
}
.stat-foot {
  font-size: 10.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 16px;
}
.stat-foot .dot,
.legend .dot,
.key-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  vertical-align: middle;
  flex: none;
}
.stat-foot b {
  font-weight: 500;
  color: #c0c9d0;
}
.stat-foot .divide {
  color: #53606b;
  padding: 0 2px;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(278px, 1fr);
  gap: 17px;
  align-items: stretch;
  margin-bottom: 20px;
}
.chart-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.chart-head {
  padding: 17px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.instrument {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cb);
  color: var(--cf);
  width: 29px;
  height: 29px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  flex: none;
  box-shadow: inset 0 0 0 1px #ffffff0b;
}
.coin svg {
  width: 72%;
  height: 72%;
}
.coin b {
  font-weight: 700;
  letter-spacing: -0.04em;
}
.coin .btc-glyph {
  font-family: Arial, sans-serif;
  font-size: 22px;
  transform: rotate(10deg);
  font-weight: 700;
}
.coin.big {
  width: 39px;
  height: 39px;
  font-size: 15px;
}
.coin.big .btc-glyph {
  font-size: 31px;
}
.asset-title {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.035em;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.28;
}
.asset-title em {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.01em;
}
.asset-title .icon {
  color: var(--muted);
}
.asset-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  display: block;
}
.seg {
  display: inline-flex;
  padding: 3px;
  background: #10151a;
  border: 1px solid #2a3138;
  border-radius: 7px;
  gap: 2px;
}
.seg button {
  color: var(--muted);
  border-radius: 4px;
  padding: 4px 9px;
  font: 500 11px/1.25 var(--num);
  white-space: nowrap;
}
.seg button.active {
  background: #2b343c;
  color: #f0f4f5;
  box-shadow: 0 1px 2px #0003;
}
.metric-value-line {
  padding: 11px 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 49px;
}
.metric-big {
  font-family: var(--sans);
  font-size: clamp(25px, 2.32vw, 37px);
  font-weight: 590;
  line-height: 1.18;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.change-tag {
  font: 550 11px/1.4 var(--num);
  padding: 3px 6px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border-radius: 4px;
}
.change-tag.up {
  background: #1b322b;
}
.change-tag.down {
  background: #34252b;
}
.substamp {
  font-size: 10px;
  color: var(--muted);
}
.chart-toolbar {
  margin: 10px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  gap: 8px;
  border-bottom: 1px solid var(--fine);
}
.chart-tabs {
  display: flex;
  align-items: stretch;
  gap: 18px;
  min-height: 30px;
}
.chart-tabs button,
.tabline button {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 1px 0 7px;
  position: relative;
  white-space: nowrap;
}
.chart-tabs button.active,
.tabline button.active {
  color: var(--mint);
}
.chart-tabs button.active:after,
.tabline button.active:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--mint);
  border-radius: 2px 2px 0 0;
}
.chart-mode {
  display: flex;
  align-items: center;
  gap: 4px;
}
.chart-mode button {
  padding: 1px 4px;
  color: var(--faint);
  border-radius: 3px;
}
.chart-mode button.active {
  color: var(--mint);
  background: #25342f;
}
.plot {
  position: relative;
  height: clamp(171px, 13.5vw, 215px);
  margin: 9px 14px 0 18px;
  flex-grow: 1;
  min-height: 163px;
  outline-offset: 0 !important;
}
.plot-svg {
  display: block;
  overflow: visible;
}
.gridline {
  stroke: #303842;
  stroke-width: 0.8;
  stroke-dasharray: 3 5;
}
.gridvert {
  stroke: #293139;
  stroke-width: 0.7;
  stroke-dasharray: 3 5;
}
.axis-label,
.last-label {
  fill: #8e9ba7;
  font: 10px var(--num);
  letter-spacing: -0.035em;
}
.last-label {
  fill: #12251d;
  font-weight: 650;
}
.chart-pop {
  position: absolute;
  top: 4px;
  pointer-events: none;
  min-width: 120px;
  max-width: 225px;
  padding: 8px 10px;
  border: 1px solid #46545d;
  border-radius: 6px;
  background: #141d23f5;
  z-index: 2;
  font-size: 11px;
  box-shadow: 0 4px 14px #0004;
}
.chart-pop small {
  display: block;
  color: var(--muted);
  font: 10px var(--num);
  margin-bottom: 5px;
}
.chart-pop div {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.chart-pop b {
  font: 11px var(--num);
}
.chart-pop span {
  color: var(--secondary);
}
.guide {
  stroke: #adc4c5;
  stroke-width: 1;
  stroke-dasharray: 3 3;
  opacity: 0;
}
.chart-caption {
  min-height: 33px;
  margin: 3px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 10px;
}
.legend {
  gap: 12px;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.legend .square {
  width: 7px;
  height: 7px;
  background: #53665f;
  border-radius: 1px;
}
.caption-end {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chart-extra {
  padding: 0 20px 12px;
  color: var(--muted);
  font-size: 11px;
}
.chart-extra .plain-link {
  font-size: 11px;
}
.mode-opts {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 8px 20px -1px;
  color: var(--muted);
  font-size: 11px;
}
.mode-opts .seg button {
  font: 11px var(--sans);
}
.select-mini {
  font-size: 11px;
  border: 1px solid var(--edge);
  border-radius: 4px;
  background: var(--inset);
  padding: 3px 5px;
}
.ranking {
  padding: 16px 18px 0;
  display: flex;
  flex-direction: column;
}
.rank-head,
.list-heading,
.list-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.heading-wrap {
  gap: 9px;
}
.heading-wrap h2,
.wallet-section h2 {
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.04em;
}
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mint {
  color: var(--mint);
}
.amber {
  color: var(--amber);
}
.rank-tabs {
  margin-top: 13px;
  width: 100%;
}
.rank-tabs button {
  font: 12px/1.3 var(--sans);
  padding: 5px 4px;
  flex: 1;
}
.rank-tabs button.active {
  color: var(--mint);
  background: #23352e;
}
.rank-row {
  width: 100%;
  display: grid;
  grid-template-columns: 17px 29px minmax(40px, 1fr) auto;
  gap: 8px;
  align-items: center;
  text-align: left;
  min-height: 43px;
  border-bottom: 1px solid var(--fine);
}
.rank-row:hover,
.data-table tbody tr[data-action]:hover {
  background: #1b232a;
}
.rank-index {
  font: 11px var(--num);
  color: var(--faint);
}
.rank-asset,
.market-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.rank-asset strong,
.market-name strong {
  font: 600 13px/1.35 var(--sans);
  letter-spacing: 0.01em;
}
.rank-asset small,
.market-name small,
.rank-price small {
  color: var(--muted);
  font: 10px/1.35 var(--sans);
  margin-top: 1px;
}
.rank-price {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font: 550 13px var(--num);
}
.rank-price small {
  font: 10px var(--num);
  margin-top: 2px;
}
.rank-row .coin {
  width: 26px;
  height: 26px;
}
.rank-row .coin .btc-glyph {
  font-size: 20px;
}
.rank-foot {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 11px;
  color: var(--muted);
  min-height: 32px;
  margin-top: auto;
}
.rank-foot:hover,
.plain-link:hover {
  color: var(--mint);
}
#rank-items {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 4px;
}
#rank-items .rank-row {
  flex: 1;
}
.market-list {
  overflow: hidden;
  scroll-margin-top: 15px;
}
.list-heading {
  padding: 17px 19px 10px;
}
.count {
  background: #262e36;
  color: #b9c5ce;
  border: 1px solid #323c45;
  border-radius: 5px;
  font: 10px/1 var(--num);
  padding: 4px 6px;
}
.search-box {
  display: flex;
  align-items: center;
  background: #11171c;
  border: 1px solid var(--edge);
  border-radius: 6px;
  height: 32px;
  gap: 8px;
  padding: 0 9px;
  color: var(--muted);
}
.search-box:focus-within {
  border-color: #548b75;
}
.search-box input {
  width: 144px;
  background: none;
  border: 0;
  color: var(--text);
  outline: none;
  font-size: 12px;
}
.search-box input:focus-visible {
  outline: none;
}
.search-box kbd {
  border: 1px solid #343c45;
  border-radius: 3px;
  font: 10px/14px var(--num);
  width: 15px;
  height: 16px;
  text-align: center;
  color: #87939e;
}
.list-filters {
  padding: 0 19px;
  border-bottom: 1px solid var(--fine);
  align-items: stretch;
}
.tabline {
  display: flex;
  gap: 20px;
  align-items: stretch;
  min-height: 35px;
}
.tabline button {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.list-filters > .small-meta {
  align-self: center;
  font: 10px var(--sans);
  letter-spacing: 0;
}
.table-scroll {
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #3f4b55 transparent;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  background: #12181d;
  font-size: 11px;
  font-weight: 450;
  color: #94a2af;
  line-height: 1.4;
}
th,
td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--fine);
}
th button {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font: inherit;
  color: inherit;
  white-space: nowrap;
}
th button.active {
  color: #c7dcd2;
}
th button .icon {
  color: #657480;
}
th button.active .icon {
  color: var(--mint);
}
.data-table td {
  font: 12px var(--num);
  height: 50px;
  font-variant-numeric: tabular-nums;
}
.data-table th,
.data-table td {
  text-align: right;
}
.data-table th.market-col,
.data-table td.market-col {
  text-align: left;
}
.market-col {
  min-width: 145px;
}
.data-table th.favorite-col,
.data-table td.favorite-col {
  text-align: center;
  padding: 0 0 0 12px;
  width: 34px;
}
.data-table th:last-child,
.data-table td:last-child {
  padding-right: 21px;
}
.data-table tbody tr[data-action] {
  cursor: pointer;
}
.market-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}
.market-cell .coin {
  width: 28px;
  height: 28px;
}
.market-name strong {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dex-tag {
  display: inline-block;
  border-radius: 3px;
  font: 9px/1.1 var(--sans);
  font-weight: 500;
  padding: 2px 4px;
  color: #b6a5db;
  background: #2b283a;
}
.star-btn {
  color: #566470;
  padding: 5px;
  margin: 0;
  border-radius: 4px;
  display: inline-flex;
}
.star-btn:hover,
.star-btn.active {
  color: var(--amber);
}
.star-btn.active .icon {
  fill: #d7af685c;
}
.sparkline {
  display: inline-block;
  vertical-align: middle;
}
.pager {
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  gap: 10px;
}
.page-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.page-links button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 25px;
  min-height: 24px;
  border-radius: 4px;
  font: 11px var(--num);
  color: var(--secondary);
}
.page-links button.active,
.page-links button:hover:enabled {
  background: #293930;
  color: var(--mint);
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 53px;
  color: var(--faint);
  font-size: 10px;
}
.footer > span,
.footer button {
  display: flex;
  gap: 6px;
  align-items: center;
}
.foot-sep {
  color: #54616a;
  margin: 0 2px;
}
.notice {
  padding: 9px 13px;
  border: 1px solid #544731;
  border-radius: 7px;
  background: #27241e;
  color: #dec394;
  font-size: 12px;
  margin: 0 0 14px;
}
.notice button {
  color: var(--mint);
  text-decoration: underline;
  margin-left: 7px;
}
.empty {
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 150px;
  height: 100%;
  color: var(--muted);
  padding: 18px 12px;
}
.empty-icon {
  display: grid;
  place-items: center;
  min-width: 39px;
  height: 39px;
  border-radius: 10px;
  color: #9bacb7;
  background: #202b31;
  border: 1px solid #334048;
  margin-bottom: 3px;
}
.empty strong {
  font-size: 14px;
  color: #d5dee4;
  font-weight: 550;
}
.empty small {
  max-width: 42em;
  font-size: 12px;
  line-height: 1.55;
}
.plain-link {
  font: inherit;
  color: var(--mint);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.center {
  display: flex;
  width: max-content;
  margin: -12px auto 6px;
}
.plot > .empty {
  height: 100%;
}
.plot:has(.center) > .empty {
  height: calc(100% - 28px);
}
.observed,
.fund-table {
  max-height: 200px;
  overflow: auto;
}
.observed td,
.fund-table td {
  font: 11px var(--num);
}
.wallet-search-panel {
  padding: 20px;
  margin-bottom: 18px;
}
.form-label {
  gap: 7px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 8px;
}
.field {
  background: #0f151a;
  border: 1px solid #39434c;
  border-radius: 6px;
  color: var(--text);
  padding: 10px 12px;
  width: 100%;
  font-size: 13px;
}
.field:focus {
  border-color: var(--mint);
}
.addr-field {
  font: 13px/1.6 var(--num);
}
#wallet-form {
  display: flex;
  gap: 9px;
}
.primary-btn {
  background: var(--mint);
  border-color: var(--mint);
  color: #103324;
  white-space: nowrap;
  padding: 0 16px;
}
.primary-btn:hover {
  background: #a1f4ce;
  border-color: #a1f4ce;
}
.feedback {
  font-size: 12px;
  margin-top: 8px;
  color: var(--coral);
}
.recent {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}
.recent button,
.label-chip {
  background: #20282e;
  border: 1px solid #323b42;
  border-radius: 5px;
  padding: 3px 7px;
  font: 11px var(--num);
  color: var(--secondary);
}
.recent button:hover {
  color: var(--mint);
}
.wallet-placeholder {
  min-height: 270px;
  display: grid;
  place-items: center;
}
.wallet-placeholder .empty-icon {
  width: 55px;
  height: 55px;
  border-radius: 16px;
  background: #1c322c;
  color: var(--mint);
  border-color: #314c40;
}
.wallet-placeholder .empty-icon svg {
  width: 29px;
  height: 29px;
}
.wallet-section {
  overflow: hidden;
}
.wallet-section > .list-heading {
  min-height: 61px;
}
.wallet-tabs {
  display: flex;
  overflow: auto;
  gap: 20px;
  padding: 0 20px;
  border-bottom: 1px solid var(--edge);
  min-height: 35px;
}
.wallet-tabs button {
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
  padding: 3px 0 9px;
  border-bottom: 2px solid transparent;
}
.wallet-tabs button.active {
  color: var(--mint);
  border-color: var(--mint);
}
.wallet-table td {
  font: 12px/1.5 var(--num);
}
.wallet-table th:first-child,
.wallet-table td:first-child {
  padding-left: 20px;
}
.wallet-note,
.history-note {
  padding: 9px 19px;
  color: var(--muted);
  font-size: 11px;
  border-bottom: 1px solid var(--fine);
}
.wallet-alert {
  color: var(--amber);
}
.wallet-table .direction {
  font: 11px var(--sans);
  border-radius: 4px;
  padding: 3px 6px;
  background: #1b3029;
}
.wallet-table .direction.down {
  background: #33252b;
}
.wallet-table td small {
  display: block;
  color: var(--muted);
}
.watch-mode .stat-grid,
.watch-mode .overview-grid {
  display: none;
}
.watch-mode .list-filters {
  min-height: 35px;
}
.watch-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mint);
  margin: 0 0 21px;
}
.details-link {
  color: var(--mint);
  font-size: 11px;
}
.footer button {
  font-size: inherit;
  color: inherit;
}
.modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
dialog {
  padding: 0;
  background: #171e24;
  color: var(--text);
  border: 1px solid #3d4851;
  border-radius: 14px;
  box-shadow: 0 18px 85px #0009;
  width: min(470px, calc(100% - 26px));
  max-height: 85dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #020609b5;
  backdrop-filter: blur(3px);
}
.modal-inner {
  padding: 22px;
}
.modal-inner h2 {
  font-size: 20px;
  letter-spacing: -0.04em;
}
.modal-inner h3 {
  font-size: 14px;
  margin: 17px 0 5px;
}
.modal-inner p,
.modal-help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.modal-inner p {
  margin-top: 7px;
}
.modal-inner a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 6px;
  color: var(--muted);
  border: 1px solid var(--edge);
}
.icon-btn:hover {
  background: #283138;
}
.profile-list {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.profile-item,
.picker-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
}
.profile-item.active {
  background: #20332c;
  border-color: #355443;
  color: var(--mint);
}
.profile-item:hover,
.picker-row:hover {
  background: #222c32;
}
.profile-item span,
.picker-row span {
  min-width: 0;
}
.profile-item small,
.picker-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px;
}
.profile-item b {
  font-size: 13px;
}
.profile-item > .icon {
  flex: none;
}
.add-form {
  border-top: 1px solid var(--edge);
  padding-top: 14px;
  margin-top: 12px;
}
.add-form .seg {
  margin-bottom: 11px;
}
.add-form .seg button {
  font: 12px var(--sans);
}
.add-form label {
  font-size: 12px;
  color: var(--secondary);
  display: block;
  margin: 8px 0;
}
.add-form label input {
  display: block;
  margin-top: 5px;
}
.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.modal-buttons button {
  min-height: 35px;
}
.modal-search {
  width: 100%;
  margin: 12px 0 8px;
}
.modal-search input {
  width: 100%;
}
.picker-list {
  max-height: 340px;
  overflow: auto;
}
.picker-row {
  border-bottom: 1px solid var(--fine);
  border-radius: 0;
  padding: 8px 4px;
}
.picker-row > span:first-child {
  display: flex;
  gap: 9px;
  align-items: center;
}
.picker-row b {
  font-size: 13px;
}
.picker-row > span:last-child {
  font: 12px var(--num);
}
.modal-inner pre {
  background: var(--inset);
  border: 1px solid var(--edge);
  padding: 12px;
  border-radius: 7px;
  font: 11px/1.6 var(--num);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 50vh;
  overflow: auto;
}
#toast {
  position: fixed;
  bottom: 23px;
  left: 50%;
  transform: translateX(-50%);
  padding: 9px 17px;
  border-radius: 8px;
  background: #25382f;
  border: 1px solid #3f6955;
  color: #d6f6e7;
  font-size: 12px;
  box-shadow: 0 4px 16px #0006;
  z-index: 20;
}
.sub-filter {
  font-size: 11px;
  background: var(--inset);
  border: 1px solid var(--edge);
  color: var(--secondary);
  border-radius: 5px;
  padding: 4px 7px;
}
.skeleton {
  background: #273137;
  animation: fade 1.5s ease-in-out infinite alternate;
  height: 12px;
  border-radius: 5px;
}
@keyframes fade {
  to {
    opacity: 0.35;
  }
}
@media (min-width: 1550px) {
  .plot {
    height: 215px;
  }
  .shell {
    padding-top: 32px;
  }
  .stat-card {
    min-height: 121px;
  }
  .rank-row {
    min-height: 47px;
  }
}
@media (max-width: 1100px) {
  .shell,
  .topinner {
    padding-left: 25px;
    padding-right: 25px;
  }
  .topinner {
    gap: 30px;
  }
  .stat-card {
    padding: 14px 15px 12px;
  }
  .stat-icon {
    right: 12px;
    top: 12px;
    width: 26px;
    height: 26px;
  }
  .stat-icon .icon {
    width: 15px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1.86fr) minmax(250px, 1fr);
    gap: 13px;
  }
  .chart-toolbar {
    margin-left: 16px;
    margin-right: 16px;
  }
  .chart-tabs {
    gap: 13px;
  }
  .chart-head {
    padding-left: 16px;
    padding-right: 16px;
  }
  .metric-value-line {
    padding-left: 16px;
  }
  .ranking {
    padding-left: 14px;
    padding-right: 14px;
  }
  .plot {
    height: 171px;
  }
  .stat-grid {
    gap: 10px;
  }
}
@media (max-width: 780px) {
  .topinner {
    gap: 14px;
    min-height: 57px;
    flex-wrap: wrap;
    padding: 0 17px;
  }
  .top {
    min-height: 57px;
  }
  .brand {
    font-size: 20px;
  }
  .brand #brand-mark {
    width: 28px;
  }
  .primary {
    gap: 10px;
  }
  .primary a {
    font-size: 12px;
    gap: 4px;
  }
  .primary a .icon {
    width: 15px;
  }
  .top-actions {
    gap: 4px;
  }
  .help-button {
    display: none;
  }
  .endpoint-btn {
    min-height: 30px;
    padding: 0 8px;
    font-size: 11px;
  }
  .shell {
    padding: 21px 16px 0;
  }
  .page-head h1 {
    font-size: 27px;
  }
  .page-head {
    margin-bottom: 15px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 13px;
  }
  .stat-card {
    min-height: 96px;
  }
  .stat-value {
    font-size: 26px;
    margin: 5px 0 3px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1.67fr) minmax(205px, 1fr);
    gap: 10px;
    margin-bottom: 14px;
  }
  .chart-mode {
    display: none;
  }
  .chart-toolbar {
    margin-right: 12px;
    margin-left: 12px;
  }
  .chart-tabs {
    gap: 9px;
  }
  .chart-tabs button {
    font-size: 11px;
  }
  .plot {
    margin-left: 11px;
    margin-right: 7px;
    height: 170px;
  }
  .chart-caption {
    margin-left: 12px;
    margin-right: 12px;
  }
  .ranking {
    padding: 13px 11px 0;
  }
  .rank-row {
    grid-template-columns: 14px 23px 1fr auto;
    gap: 5px;
  }
  .rank-row .coin {
    width: 23px;
    height: 23px;
  }
  .rank-asset strong,
  .rank-price {
    font-size: 11px;
  }
  .rank-price small {
    font-size: 9px;
  }
  .chart-head .seg button {
    padding: 4px 6px;
  }
  .search-box input {
    width: 119px;
  }
  .timestamp {
    display: none;
  }
  .data-table {
    min-width: 800px;
  }
  .page-head p {
    font-size: 12px;
  }
}
@media (max-width: 620px) {
  .topinner {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 0;
    padding-top: 8px;
  }
  .brand {
    height: 37px;
  }
  .primary {
    order: 3;
    width: 100%;
    justify-content: space-around;
    gap: 0;
  }
  .primary a {
    height: 37px;
    justify-content: center;
    flex: 1;
  }
  .primary a[aria-current='page']:after {
    left: 12%;
    right: 12%;
  }
  .top-actions {
    margin-left: 0;
  }
  .top {
    min-height: 80px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .page-actions {
    gap: 5px;
  }
  .heading-line {
    gap: 9px;
  }
  .status-pill {
    font-size: 9px;
  }
  .stat-foot {
    font-size: 10px;
  }
  .overview-grid .ranking {
    padding: 14px 15px 0;
  }
  .rank-head .heading-wrap h2,
  .list-heading h2 {
    font-size: 16px;
  }
  .rank-tabs {
    width: 100%;
    margin: 9px 0 0;
  }
  .rank-row {
    min-height: 36px;
    grid-template-columns: 17px 26px 1fr auto;
    gap: 7px;
  }
  .rank-row .coin {
    width: 23px;
    height: 23px;
  }
  .rank-asset {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .rank-foot {
    min-height: 29px;
  }
  .rank-asset strong,
  .rank-price {
    font-size: 12px;
  }
  .rank-price {
    flex-direction: row;
    align-items: center;
    gap: 9px;
  }
  .rank-price small {
    min-width: 54px;
  }
  .chart-card .plot {
    height: 184px;
    min-height: 175px;
  }
  .chart-mode {
    display: flex;
  }
  .chart-tabs {
    gap: 13px;
  }
  .chart-head {
    padding-top: 15px;
  }
  .list-heading {
    padding: 13px 12px 6px;
  }
  .list-filters {
    padding: 0 12px;
  }
  .list-filters .small-meta {
    display: none;
  }
  .list-heading .heading-wrap {
    gap: 5px;
  }
  .list-heading .section-icon {
    display: none;
  }
  .search-box {
    height: 30px;
    gap: 5px;
    padding: 0 7px;
  }
  .search-box input {
    width: 102px;
    font-size: 11px;
  }
  .search-box kbd {
    display: none;
  }
  .tabline {
    gap: 16px;
  }
  .wallet-search-panel {
    padding: 14px;
  }
  .wallet-tabs {
    gap: 15px;
    padding: 0 12px;
  }
  .btn {
    min-height: 32px;
  }
  .wallet-table {
    min-width: 650px;
  }
  .pager {
    padding: 8px 12px;
  }
  .addr-field {
    font-size: 11px;
  }
  #wallet-form {
    flex-direction: column;
  }
  #wallet-form button {
    align-self: flex-start;
  }
  .wallet-section > .list-heading {
    min-height: 54px;
  }
  .page-actions .btn {
    padding: 0 10px;
  }
  .wallet-tabs button {
    font-size: 11px;
  }
  .modal-inner {
    padding: 17px;
  }
  .metric-value-line {
    padding-top: 8px;
    min-height: 41px;
  }
  .metric-big {
    font-size: 29px;
  }
  .chart-toolbar {
    margin-top: 7px;
  }
  .footer {
    min-height: 47px;
  }
}
@media (max-width: 365px) {
  .shell {
    padding: 16px 10px 0;
  }
  .stat-grid {
    gap: 7px;
  }
  .stat-card {
    padding: 12px;
  }
  .stat-icon {
    width: 21px;
    height: 21px;
    right: 7px;
    top: 9px;
  }
  .chart-tabs {
    gap: 9px;
  }
  .chart-mode {
    display: none;
  }
  .heading-line {
    gap: 6px;
  }
  .stat-value {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.heat-scale {
  display: inline-block;
  width: 38px;
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(90deg, #235451, #3f977d, #e3c276);
}

.foot-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.stat-foot b {
  white-space: nowrap;
}
@media (max-width: 620px) {
  .stat-foot {
    gap: 3px;
  }
  .stat-foot .divide {
    padding: 0;
  }
  .foot-group {
    gap: 3px;
  }
}
