* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 0;
  padding: 1rem;
  background: #0f0f12;
  color: #e4e4e7;
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

header {
  margin-bottom: 2rem;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.subtitle {
  color: #a1a1aa;
  font-size: 0.9rem;
  margin: 0;
}

.inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.inputs.panel {
  gap: 0.75rem;
  align-items: flex-end;
}

.candles-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.candles-controls .field-switch {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.field-switch-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: default;
  font-size: 0.8rem;
  color: #a1a1aa;
}

.field-switch-title {
  flex: 0 0 auto;
}

.candles-mint-resolution-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  width: 100%;
}

.token-only-controls[hidden] {
  display: none !important;
}

#mint {
  min-width: 420px;
}

#walletResolution,
#walletLabel,
#walletSortField,
#walletSortDirection,
#tokenTopPnlResolution,
#tokenTopPnlSortField,
#tokenTopPnlSortDirection {
  min-width: 180px;
}

#walletPage,
#tokenTopPnlPage {
  min-width: 100px;
  max-width: 100px;
}

#walletLimit,
#tokenTopPnlLimit {
  min-width: 120px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-switch {
  min-width: 220px;
}

.field label {
  font-size: 0.8rem;
  color: #a1a1aa;
}

.remote-filters-help {
  margin: 0.5rem 0 0.5rem;
  font-size: 0.8rem;
  color: #a1a1aa;
  flex-basis: 100%;
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
  opacity: 0.85;
  background: #a1a1aa;
  border-radius: 4px;
}

.field-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #a1a1aa;
}

.field-icon.icon-tag::after {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 5a2 2 0 0 1 2-2h6.2a2 2 0 0 1 1.4.6l8.8 8.8a2 2 0 0 1 0 2.8l-6 6a2 2 0 0 1-2.8 0L3.6 12.2A2 2 0 0 1 3 10.8V5Zm2 0v5.8l9 9L20 13.8l-8.8-8.8H5Zm2.5 1.5A1.5 1.5 0 1 0 7.5 9a1.5 1.5 0 0 0 0-3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 5a2 2 0 0 1 2-2h6.2a2 2 0 0 1 1.4.6l8.8 8.8a2 2 0 0 1 0 2.8l-6 6a2 2 0 0 1-2.8 0L3.6 12.2A2 2 0 0 1 3 10.8V5Zm2 0v5.8l9 9L20 13.8l-8.8-8.8H5Zm2.5 1.5A1.5 1.5 0 1 0 7.5 9a1.5 1.5 0 0 0 0-3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.field-icon.icon-grid::after {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h7v7H4V4Zm9 0h7v7h-7V4ZM4 13h7v7H4v-7Zm9 0h7v7h-7v-7Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h7v7H4V4Zm9 0h7v7h-7V4ZM4 13h7v7H4v-7Zm9 0h7v7h-7v-7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.field-icon.icon-user::after {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4.5 4.5 0 1 0-4.5-4.5A4.5 4.5 0 0 0 12 12Zm0-2a2.5 2.5 0 1 1 2.5-2.5A2.5 2.5 0 0 1 12 10Zm0 4c-4.4 0-8 2.2-8 5a1 1 0 0 0 2 0c0-1.4 2.5-3 6-3s6 1.6 6 3a1 1 0 0 0 2 0c0-2.8-3.6-5-8-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4.5 4.5 0 1 0-4.5-4.5A4.5 4.5 0 0 0 12 12Zm0-2a2.5 2.5 0 1 1 2.5-2.5A2.5 2.5 0 0 1 12 10Zm0 4c-4.4 0-8 2.2-8 5a1 1 0 0 0 2 0c0-1.4 2.5-3 6-3s6 1.6 6 3a1 1 0 0 0 2 0c0-2.8-3.6-5-8-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.field-icon.icon-sort::after {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 3a1 1 0 0 1 1 1v14.6l1.3-1.3a1 1 0 0 1 1.4 1.4l-3 3a1 1 0 0 1-1.4 0l-3-3a1 1 0 1 1 1.4-1.4L6 18.6V4a1 1 0 0 1 1-1Zm10 18a1 1 0 0 1-1-1V5.4l-1.3 1.3a1 1 0 1 1-1.4-1.4l3-3a1 1 0 0 1 1.4 0l3 3a1 1 0 1 1-1.4 1.4L18 5.4V20a1 1 0 0 1-1 1Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 3a1 1 0 0 1 1 1v14.6l1.3-1.3a1 1 0 0 1 1.4 1.4l-3 3a1 1 0 0 1-1.4 0l-3-3a1 1 0 1 1 1.4-1.4L6 18.6V4a1 1 0 0 1 1-1Zm10 18a1 1 0 0 1-1-1V5.4l-1.3 1.3a1 1 0 1 1-1.4-1.4l3-3a1 1 0 0 1 1.4 0l3 3a1 1 0 1 1-1.4 1.4L18 5.4V20a1 1 0 0 1-1 1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.field-icon.icon-pages::after {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 3h9a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm0 2v12h9V5H7Zm12 3h1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H9a1 1 0 1 1 0-2h11V10h-1a1 1 0 1 1 0-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 3h9a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm0 2v12h9V5H7Zm12 3h1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H9a1 1 0 1 1 0-2h11V10h-1a1 1 0 1 1 0-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.field-icon.icon-hash::after {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8 3a1 1 0 0 1 1 1v3h6V4a1 1 0 1 1 2 0v3h3a1 1 0 1 1 0 2h-3v6h3a1 1 0 1 1 0 2h-3v3a1 1 0 1 1-2 0v-3H9v3a1 1 0 1 1-2 0v-3H4a1 1 0 1 1 0-2h3V9H4a1 1 0 1 1 0-2h3V4a1 1 0 0 1 1-1Zm1 6v6h6V9H9Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8 3a1 1 0 0 1 1 1v3h6V4a1 1 0 1 1 2 0v3h3a1 1 0 1 1 0 2h-3v6h3a1 1 0 1 1 0 2h-3v3a1 1 0 1 1-2 0v-3H9v3a1 1 0 1 1-2 0v-3H4a1 1 0 1 1 0-2h3V9H4a1 1 0 1 1 0-2h3V4a1 1 0 0 1 1-1Zm1 6v6h6V9H9Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.field input,
.field select {
  padding-left: 34px;
}

.field label .label-icon.field-icon,
.field-switch-header .label-icon.field-icon {
  display: inline-block;
  position: relative;
  left: 0;
  width: 14px;
  height: 14px;
  vertical-align: middle;
  background: none;
  opacity: 1;
}

.field label .label-icon.field-icon::after,
.field-switch-header .label-icon.field-icon::after {
  inset: 0;
  position: absolute;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.field input,
.field select {
  padding: 0.5rem 0.75rem;
  padding-left: 34px;
  font-size: 0.9rem;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  background: #18181b;
  color: #e4e4e7;
  min-width: 400px;
}

.field select {
  min-width: 260px;
  cursor: pointer;
}

.actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #a1a1aa;
}

.loading[hidden] {
  display: none !important;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-height: 1.5em;
}

.section-header h2 {
  margin: 0;
  line-height: 1.5;
}

.section-header--trades {
  justify-content: space-between;
  width: 100%;
}

.section-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.trades-fetch-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0;
}

.remote-top-row {
  flex-wrap: nowrap;
}

.remote-top-row .top-mode-switch {
  flex: 0 0 auto;
  min-width: 0;
}

.remote-top-row .mint-query-field {
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
}

.remote-top-row .wallet-resolution-field {
  flex: 0 0 auto;
  min-width: 0;
}

.remote-top-row .mint-query-field .field-control,
.remote-top-row .mint-query-field input {
  width: 420px;
  min-width: 420px;
}

.remote-top-row .wallet-resolution-field select {
  width: 180px;
  min-width: 180px;
}

@media (max-width: 980px) {
  .remote-top-row {
    flex-wrap: wrap;
  }
}

.trades-fetch-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 1.85rem;
  padding: 0;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  background: #18181b;
  color: #a1a1aa;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.trades-fetch-lock[aria-pressed="true"] {
  background: #ca8a04;
  color: #1c1917;
  border-color: #a16207;
}

.trades-fetch-lock[aria-pressed="false"] {
  background: #90ee90;
  color: #1e6b1e;
  border-color: #6bc96b;
}

.trades-fetch-lock[aria-pressed="false"]:not(.trades-fetch-lock--no-hover):hover {
  background: #ca8a04;
  color: #1c1917;
  border-color: #a16207;
}

.trades-fetch-lock[aria-pressed="false"]:not(.trades-fetch-lock--no-hover):hover .trades-fetch-lock-icon--locked {
  display: block !important;
}

.trades-fetch-lock[aria-pressed="false"]:not(.trades-fetch-lock--no-hover):hover .trades-fetch-lock-icon--unlocked {
  display: none !important;
}

.trades-fetch-lock[aria-pressed="true"]:not(.trades-fetch-lock--no-hover):hover {
  background: #90ee90;
  color: #1e6b1e;
  border-color: #6bc96b;
}

.trades-fetch-lock[aria-pressed="true"]:not(.trades-fetch-lock--no-hover):hover .trades-fetch-lock-icon--locked {
  display: none;
}

.trades-fetch-lock[aria-pressed="true"]:not(.trades-fetch-lock--no-hover):hover .trades-fetch-lock-icon--unlocked {
  display: block !important;
}

.trades-fetch-lock[aria-pressed="false"] .trades-fetch-lock-icon--locked {
  display: none;
}

.trades-fetch-lock[aria-pressed="false"] .trades-fetch-lock-icon--unlocked {
  display: block !important;
}

.trades-fetch-lock-icon--unlocked {
  display: none;
}

.trades-fetch-switch {
  display: inline-flex;
  cursor: pointer;
  user-select: none;
}

.trades-fetch-switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.trades-fetch-switch-track {
  display: flex;
  align-items: center;
  height: 2rem;
  padding: 0 0.25rem;
  border-radius: 6px;
  background: #27272a;
  border: 1px solid #3f3f46;
  position: relative;
  min-width: 7.5rem;
}

.trades-fetch-switch-track::after {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.25rem;
  width: calc(50% - 0.35rem);
  height: calc(100% - 0.5rem);
  border-radius: 6px;
  background: #3b82f6;
  border: 1px solid #3f3f46;
  transition: transform 0.2s ease;
  z-index: 0;
}

.trades-fetch-switch-input:checked + .trades-fetch-switch-track::after {
  transform: translateX(100%);
}

.trades-fetch-switch-option {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: #71717a;
  z-index: 1;
  transition: color 0.2s;
}

.trades-fetch-switch-input:not(:checked) + .trades-fetch-switch-track .trades-fetch-switch-option[data-value="single"] {
  color: #e4e4e7;
}

.trades-fetch-switch-input:checked + .trades-fetch-switch-track .trades-fetch-switch-option[data-value="paged"] {
  color: #e4e4e7;
}

.trades-fetch-switch.trades-fetch-switch--locked {
  pointer-events: none;
  opacity: 0.85;
}

.section-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #a1a1aa;
  line-height: 1.5;
  margin-bottom: 13px;
  margin-left: 13px;
}

.section-loading[hidden] {
  display: none !important;
}

.section-error {
  display: inline-block;
  font-size: 0.9rem;
  color: #f87171;
  border: 3px solid #f87171;
  border-radius: 3px;
  padding: 0.25rem 0.5rem;
  margin-left: 13px;
  margin-bottom: 13px;
}

.section-error[hidden] {
  display: none !important;
}

.loading-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #3f3f46;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: loading-spin 0.7s linear infinite;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  margin: 0;
}

button {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  background: #3b82f6;
  color: #fff;
  cursor: pointer;
}

button:hover {
  background: #2563eb;
}

button:active {
  transform: scale(0.98);
}

.fetch-btn-attention {
  border: 1px solid #22c55e;
  box-shadow: 0 0 0 1px #22c55e;
  animation: fetch-btn-pulse 1.2s ease-in-out infinite;
}

@keyframes fetch-btn-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.8);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.mode-switch {
  min-width: 220px;
  text-align: left;
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #e4e4e7;
}

.mode-switch:hover {
  background: #3f3f46;
}

.panel {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.panel h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: #a1a1aa;
}

.token-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.token-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.token-header .symbol {
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
}

.token-header .name {
  font-size: 0.85rem;
  color: #a1a1aa;
}

.token-stats-groups {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.token-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 640px) {
  .token-stats-row {
    grid-template-columns: 1fr;
  }
}

.token-stats-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.token-stats-group {
  padding: 1rem;
  background: #0f0f12;
  border: 1px solid #27272a;
  border-radius: 6px;
}

.token-stats-group-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem 0;
}

.token-stats-group-title .section-icon {
  width: 1rem;
  height: 1rem;
  color: #3b82f6;
  flex-shrink: 0;
}

.token-stats {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.5rem;
  margin: 0;
  font-size: 0.9rem;
}

.token-stats dt {
  color: #a1a1aa;
  font-weight: 500;
}

.token-stats dd {
  margin: 0;
  word-break: break-all;
}

.token-section a {
  color: #3b82f6;
  text-decoration: none;
}

.token-section a:hover {
  text-decoration: none;
}

.meta {
  font-size: 0.85rem;
  color: #a1a1aa;
  margin: 0 0 0.75rem 0;
}

.trades-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.trades-summary-programs-fullrow {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .trades-summary-grid {
    grid-template-columns: 1fr;
  }
}

.trades-summary-block {
  background: #0f0f12;
  border: 1px solid #27272a;
  border-radius: 6px;
  padding: 1rem;
}

.trades-summary-programs {
  min-width: 0;
}

.trades-summary-programs table {
  table-layout: fixed;
  width: 100%;
}

.trades-summary-programs table col.col-label {
  width: 30%;
}

.trades-summary-programs table col.col-top-market {
  min-width: 12rem;
}

.trades-summary-programs table col.col-count {
  width: 4.5rem;
}

.trades-summary-programs table th:first-child,
.trades-summary-programs table td:first-child {
  width: 30%;
  box-sizing: border-box;
}

.trades-summary-programs table th:last-child,
.trades-summary-programs table td:last-child {
  width: 4.5rem;
  min-width: 4.5rem;
  max-width: 4.5rem;
  text-align: right;
  box-sizing: border-box;
}

.trades-summary-programs table td:nth-child(2) {
  min-width: 0;
}

.trades-summary-programs table td:nth-child(3) {
  white-space: nowrap;
}

.trades-summary-programs a {
  color: #3b82f6;
  text-decoration: none;
}

.trades-summary-programs a:hover {
  text-decoration: none;
}

.trades-summary-quotes a {
  color: #3b82f6;
  text-decoration: none;
}

.trades-summary-quotes a:hover {
  text-decoration: none;
}

.trades-summary-quotes {
  min-width: 0;
}

.trades-summary-block.trades-summary-quotes .trades-summary-table th:last-child,
.trades-summary-block.trades-summary-quotes .trades-summary-table td:last-child {
  text-align: right;
}

.trades-summary-block.trades-summary-markets .trades-summary-table th:last-child,
.trades-summary-block.trades-summary-markets .trades-summary-table td:last-child {
  text-align: right;
}

.trades-summary-markets .trades-summary-table th:first-child,
.trades-summary-markets .trades-summary-table td:first-child {
  width: 42%;
  box-sizing: border-box;
}

.trades-summary-markets a {
  color: #3b82f6;
  text-decoration: none;
}

.trades-summary-markets a:hover {
  text-decoration: none;
}

/* ~20 rows visible, then scroll */
.top-traders-section .table-wrap,
.holders-section .table-wrap {
  max-height: 45rem;
  overflow-y: auto;
}

/* Sticky header row for Top traders and Top holders */
.top-traders-section .table-wrap thead th,
.holders-section .table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #18181b;
  border-bottom: 1px solid #27272a;
  box-shadow: 0 1px 0 #27272a;
}

.top-traders-section a {
  color: #3b82f6;
  text-decoration: none;
}

.top-traders-section a:hover {
  text-decoration: none;
}

.trades-summary-markets {
  min-width: 0;
}

.trades-summary-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem 0;
}

.trades-summary-table {
  font-size: 0.85rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th,
td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #27272a;
}

th {
  color: #a1a1aa;
  font-weight: 500;
}

tr:hover td {
  background: #27272a;
}

.holders-section a {
  color: #3b82f6;
  text-decoration: none;
}

.holders-section a:hover {
  text-decoration: none;
}

td .mono {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.error.panel {
  border-color: #7f1d1d;
  background: #1c1917;
}

#errorText {
  margin: 0;
  font-size: 0.85rem;
  color: #fca5a5;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Numeric columns: right-align header and cells so they line up (Top traders, Holders) */
#topTradersTable th:nth-child(4),
#topTradersTable td:nth-child(4),
#topTradersTable th:nth-child(5),
#topTradersTable td:nth-child(5),
#topTradersTable th:nth-child(6),
#topTradersTable td:nth-child(6) {
  text-align: right !important;
}

#holdersTable th:nth-child(3),
#holdersTable td:nth-child(3) {
  text-align: left !important;
}

#holdersTable th:nth-child(4),
#holdersTable td:nth-child(4),
#holdersTable th:nth-child(5),
#holdersTable td:nth-child(5) {
  text-align: right !important;
}

#tokenTopPnlTable th:nth-child(3),
#tokenTopPnlTable td:nth-child(3),
#tokenTopPnlTable th:nth-child(4),
#tokenTopPnlTable td:nth-child(4),
#tokenTopPnlTable th:nth-child(5),
#tokenTopPnlTable td:nth-child(5),
#tokenTopPnlTable th:nth-child(6),
#tokenTopPnlTable td:nth-child(6) {
  text-align: right !important;
}

/* Scrollbar: black track, grey thumb */
html {
  scrollbar-color: #71717a #000000; /* thumb, track */
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 10px;
}

*::-webkit-scrollbar-track {
  background: #000000;
  border-radius: 999px;
  margin: 4px 0; /* let rounded ends show */
}

*::-webkit-scrollbar-thumb {
  background-color: #71717a;
  border-radius: 999px;
}