.navwrap a.nav-item {
  display: inline-flex;
  align-items: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.market-section {
  scroll-margin-top: 24px;
  margin-top: 54px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.section-title h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2.3vw, 2.15rem);
  line-height: 1.16;
  letter-spacing: -0.055em;
  font-weight: 650;
}
.section-title h2 span {
  color: var(--lime);
}
.section-title p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.market-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: none;
  min-height: 35px;
  border: 1px solid #3e483e;
  background: #212721;
  border-radius: 8px;
  font-weight: 650;
  font-size: 0.79rem;
  padding: 6px 12px;
  color: #cbd5c7;
}
.market-refresh .ico {
  width: 15px;
  height: 15px;
}
.market-refresh[aria-pressed='true'] {
  background: #222c20;
  border-color: #43523b;
  color: #cee5be;
}
.market-refresh:hover {
  background: #2d372c;
}
.market-refresh:disabled {
  color: #9aa398;
}
.market-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 20px;
}
.analytics-card,
.feed-card {
  overflow: hidden;
}
.analytics-card {
  display: flex;
  flex-direction: column;
}
.analytics-head,
.feed-head {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 12px;
}
.analytics-head h3 {
  font-size: 1.07rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0;
}
.analytics-body {
  flex: 1;
  min-width: 0;
}
.period-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #bac9b5;
  background: #252d26;
  border: 1px solid #3d463d;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.analytics-head select {
  min-width: 100px;
  max-width: 50%;
  min-height: 32px;
  border: 1px solid #3a443a;
  border-radius: 6px;
  background: #252b25;
  color: #d6dfd3;
  padding: 4px 21px 4px 9px;
  font: inherit;
  font-size: 0.78rem;
}
.data-source {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #303830;
  padding: 8px 20px;
  color: var(--dim);
  font-size: 0.76rem;
  letter-spacing: 0.005em;
}
.data-source a,
.data-source button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
  min-height: 26px;
  padding: 0;
  color: #b2bdb0;
  font-size: 0.76rem;
}
.data-source a:hover,
.data-source button:hover {
  color: var(--lime);
}
.data-source .ico {
  width: 12px;
  height: 12px;
}
.market-empty {
  color: var(--muted);
  line-height: 1.55;
  margin: 16px 20px 25px;
  font-size: 0.88rem;
}
.feed-head {
  border-bottom: 1px solid #303830;
}
.feed-filter {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  background: #111612;
  border: 1px solid #333c33;
  border-radius: 8px;
}
.feed-filter button {
  padding: 5px 12px;
  min-height: 27px;
  border-radius: 5px;
  color: #a5b1a2;
  font-size: 0.78rem;
  font-weight: 650;
}
.feed-filter button[aria-pressed='true'] {
  background: #344230;
  color: #d5efbf;
}
.feed-head > span {
  font-size: 0.77rem;
  color: #aab5a7;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.feed-head > span.fresh::before {
  content: '';
  background: var(--lime);
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.feed-table {
  width: 100%;
  border-spacing: 0;
  font-size: 0.83rem;
  text-align: left;
}
.feed-table th {
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  color: #98a594;
  background: #161c17;
}
.feed-table th,
.feed-table td {
  padding: 12px 14px;
}
.feed-table th:first-child,
.feed-table td:first-child {
  padding-left: 20px;
}
.feed-table th:last-child,
.feed-table td:last-child {
  text-align: right;
  padding-right: 20px;
}
.feed-table tr + tr td {
  border-top: 1px solid #2a322b;
}
.feed-table td {
  height: 58px;
  vertical-align: middle;
}
.feed-table tr:hover td {
  background: #202720;
}
.feed-table strong {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.feed-table small {
  display: block;
  margin-top: 3px;
  color: #9eab9b;
  font-size: 0.75rem;
}
.trade-pair,
.trade-network,
.trade-coins {
  display: flex;
  align-items: center;
}
.trade-pair {
  gap: 11px;
}
.trade-coins {
  flex: none;
  padding-right: 1px;
}
.trade-coins .coin {
  width: 24px;
  height: 24px;
  box-shadow: 0 0 0 2px var(--card);
}
.trade-coins .coin:nth-child(2) {
  margin-left: -8px;
  transform: translateY(4px);
}
.trade-coins .coin-text {
  font-size: 0.6rem;
}
.trade-pair strong,
.trade-value small {
  overflow-wrap: anywhere;
}
.swap-sep {
  color: var(--dim);
  margin-inline: 2px;
}
.trade-network {
  gap: 6px;
  color: #c2cdbf;
}
.trade-network .chain-mark {
  width: 15px;
  height: 15px;
}
.trade-value,
.hash-cell,
.trade-when {
  white-space: nowrap;
}
.hash-cell {
  font-family: ui-monospace, Menlo, monospace;
  color: #bac6b7;
  font-size: 0.8rem;
}
.trade-when time {
  color: var(--muted);
  font-size: 0.79rem;
}
.trade-when a {
  margin-left: 8px;
  color: #a9bd9d;
  padding: 4px;
  display: inline-flex;
  vertical-align: middle;
}
.trade-when .ico {
  width: 14px;
  height: 14px;
}
.feed-card #feed-more {
  color: #cdecba;
}
@media (max-width: 900px) {
  .market-grid {
    gap: 14px;
  }
  .feed-table th,
  .feed-table td {
    padding-inline: 9px;
  }
  .hash-cell,
  .feed-table th:nth-child(4) {
    display: none;
  }
}
@media (max-width: 760px) {
  .market-grid {
    grid-template-columns: 1fr;
  }
  .market-section {
    margin-top: 35px;
  }
  .section-title {
    margin-bottom: 15px;
  }
  .feed-table .trade-network {
    font-size: 0.78rem;
  }
  .feed-table th,
  .feed-table td {
    padding-inline: 6px;
  }
  .feed-table th:first-child,
  .feed-table td:first-child {
    padding-left: 14px;
  }
  .feed-table th:last-child,
  .feed-table td:last-child {
    padding-right: 14px;
  }
  .feed-card .data-source {
    padding-inline: 14px;
  }
}
@media (max-width: 560px) {
  .section-title {
    align-items: flex-start;
    gap: 8px;
  }
  .section-title h2 {
    font-size: 1.64rem;
  }
  .section-title p {
    font-size: 0.83rem;
  }
  .market-refresh {
    font-size: 0.74rem;
    padding: 5px 9px;
    min-height: 31px;
    gap: 5px;
  }
  .analytics-head,
  .feed-head {
    min-height: 54px;
    padding: 12px 14px;
  }
  .analytics-head h3 {
    font-size: 0.99rem;
  }
  .data-source {
    padding-inline: 14px;
  }
  .feed-filter button {
    padding: 4px 9px;
  }
  .feed-head > span {
    font-size: 0.68rem;
    gap: 4px;
  }
  .feed-table th:nth-child(2),
  .feed-table td:nth-child(2) {
    display: none;
  }
  .feed-table td,
  .feed-table th {
    font-size: 0.75rem;
  }
  .trade-pair {
    gap: 6px;
  }
  .trade-coins .coin {
    width: 18px;
    height: 18px;
  }
  .trade-coins .coin:nth-child(2) {
    margin-left: -6px;
  }
  .feed-table small {
    font-size: 0.67rem;
  }
  .trade-when time {
    font-size: 0.68rem;
  }
  .trade-when a {
    margin-left: 1px;
    padding: 3px;
  }
  .trade-when .ico {
    width: 12px;
  }
}
@media (max-width: 560px) {
  .trade-value small {
    max-width: 15ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .trade-pair > div {
    min-width: 0;
  }
  .trade-pair strong {
    word-break: break-word;
  }
}
