* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 0;
  padding: 1rem;
  background: #0f0f12;
  color: #e4e4e7;
  min-height: 100vh;
  /* Lock desktop-style layouts site-wide; narrow viewports scroll horizontally. */
  min-width: 1150px;
}

/* Scrollbar: black track, grey thumb */
html {
  overflow-x: auto;
  min-width: 1150px;
  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;
}

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

a:hover {
  text-decoration: none;
}

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

:root {
  --vybe-border: #2a2a32;
  --vybe-surface: #18181b;
  --vybe-surface-elevated: rgba(24, 26, 34, 0.98);
  --vybe-text-muted: #a1a1aa;
  --vybe-accent: #22d3ee;
  --vybe-accent-soft: rgba(34, 211, 238, 0.1);
}

/* Page masthead — title + links in one card */
.page-masthead {
  margin-bottom: 1.35rem;
  padding: 1.5rem 1.45rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--vybe-border);
  background:
    linear-gradient(155deg, rgba(24, 26, 34, 0.98) 0%, rgba(12, 13, 18, 0.99) 50%, rgba(15, 18, 28, 0.98) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 20px 48px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.page-masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.45) 0%, rgba(59, 130, 246, 0.35) 40%, rgba(139, 92, 246, 0.3) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.page-masthead::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, #22d3ee 0%, #3b82f6 55%, #8b5cf6 100%);
}

.page-masthead__head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 1.15rem;
}

.page-masthead__title-block {
  flex: 1 1 280px;
  min-width: 0;
  margin-bottom: 0;
  padding-left: 0.15rem;
}

.page-masthead__visual {
  flex: 0 1 180px;
  max-width: 180px;
  min-width: 0;
  overflow: hidden;
}

.page-masthead__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 900px) {
  .page-masthead__visual {
    flex: 0 1 auto;
    max-width: 180px;
  }
}

@media (max-width: 640px) {
  .page-masthead__visual {
    display: none;
  }
}

.page-masthead__title-block::after {
  content: '';
  position: absolute;
  right: -10%;
  top: -40%;
  width: 50%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.14) 0%, transparent 68%);
  pointer-events: none;
}

.page-masthead__eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.page-masthead__logo {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f4f4f5;
}

.page-masthead__pill {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #67e8f9;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: var(--vybe-accent-soft);
}

.page-masthead__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fafafa;
}

.page-masthead__title-accent {
  background: linear-gradient(105deg, #67e8f9 0%, #60a5fa 45%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-masthead__description {
  margin: 0;
  max-width: 68ch;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #c4c4cc;
  font-weight: 450;
}

.page-masthead__nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(63, 63, 70, 0.35);
}

.page-masthead__nav-row--primary {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 1rem 1.5rem;
  align-items: start;
  width: 100%;
}

.page-masthead__nav-cluster {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1rem 1.5rem;
  min-width: 0;
}

.page-masthead__group--endpoints .page-masthead__btns {
  flex-wrap: nowrap;
}

.page-masthead__group--community {
  justify-self: end;
}

.page-masthead__group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.page-masthead__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #71717a;
}

.page-masthead__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.page-masthead__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 0.85rem;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  text-transform: none;
  transition:
    transform 0.12s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}

.page-masthead__btn-icon {
  flex-shrink: 0;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 3px;
  opacity: 0.95;
  background: currentColor;
  -webkit-mask: no-repeat center / contain;
  mask: no-repeat center / contain;
}

.page-masthead__btn-icon--docs {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
}

.page-masthead__btn-icon--endpoint {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5a2 2 0 0 0 2 2h1'/%3E%3Cpath d='M16 21h1a2 2 0 0 0 2-2v-5a2 2 0 0 1 2-2 2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5a2 2 0 0 0 2 2h1'/%3E%3Cpath d='M16 21h1a2 2 0 0 0 2-2v-5a2 2 0 0 1 2-2 2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1'/%3E%3C/svg%3E");
}

.page-masthead__btn-icon--github {
  border-radius: 50%;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C6.48 2 2 6.58 2 12.26c0 4.5 2.87 8.32 6.84 9.67.5.1.68-.22.68-.48 0-.24-.01-.87-.01-1.7-2.78.62-3.37-1.36-3.37-1.36-.45-1.18-1.12-1.5-1.12-1.5-.92-.65.07-.64.07-.64 1.02.07 1.55 1.07 1.55 1.07.9 1.57 2.36 1.12 2.94.86.09-.67.35-1.12.64-1.38-2.22-.26-4.56-1.14-4.56-5.07 0-1.12.39-2.03 1.03-2.75-.1-.26-.45-1.32.1-2.74 0 0 .84-.27 2.75 1.02A9.3 9.3 0 0 1 12 6.84c.85 0 1.71.12 2.51.34 1.91-1.29 2.75-1.02 2.75-1.02.55 1.42.2 2.48.1 2.74.64.72 1.03 1.63 1.03 2.75 0 3.94-2.34 4.81-4.57 5.07.36.32.68.94.68 1.9 0 1.37-.01 2.47-.01 2.81 0 .27.18.59.69.49A10.03 10.03 0 0 0 22 12.26C22 6.58 17.52 2 12 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C6.48 2 2 6.58 2 12.26c0 4.5 2.87 8.32 6.84 9.67.5.1.68-.22.68-.48 0-.24-.01-.87-.01-1.7-2.78.62-3.37-1.36-3.37-1.36-.45-1.18-1.12-1.5-1.12-1.5-.92-.65.07-.64.07-.64 1.02.07 1.55 1.07 1.55 1.07.9 1.57 2.36 1.12 2.94.86.09-.67.35-1.12.64-1.38-2.22-.26-4.56-1.14-4.56-5.07 0-1.12.39-2.03 1.03-2.75-.1-.26-.45-1.32.1-2.74 0 0 .84-.27 2.75 1.02A9.3 9.3 0 0 1 12 6.84c.85 0 1.71.12 2.51.34 1.91-1.29 2.75-1.02 2.75-1.02.55 1.42.2 2.48.1 2.74.64.72 1.03 1.63 1.03 2.75 0 3.94-2.34 4.81-4.57 5.07.36.32.68.94.68 1.9 0 1.37-.01 2.47-.01 2.81 0 .27.18.59.69.49A10.03 10.03 0 0 0 22 12.26C22 6.58 17.52 2 12 2z'/%3E%3C/svg%3E");
}

.page-masthead__btn-icon--telegram {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm5.894 8.221l-1.97 9.28c-.145.658-.537.818-1.084.508l-3-2.21-1.447 1.394c-.16.16-.295.295-.605.295l.213-3.053 5.56-5.023c.242-.213-.054-.333-.373-.12l-6.87 4.326-2.96-.924c-.64-.203-.658-.64.136-.953l11.566-4.458c.525-.194 1.001.118.832.941z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm5.894 8.221l-1.97 9.28c-.145.658-.537.818-1.084.508l-3-2.21-1.447 1.394c-.16.16-.295.295-.605.295l.213-3.053 5.56-5.023c.242-.213-.054-.333-.373-.12l-6.87 4.326-2.96-.924c-.64-.203-.658-.64.136-.953l11.566-4.458c.525-.194 1.001.118.832.941z'/%3E%3C/svg%3E");
}

.page-masthead__btn-text {
  display: inline;
  text-transform: none;
}

.page-masthead__btn-prefix {
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

.page-masthead__btn-kind {
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.92;
}

.page-masthead__btn--api .page-masthead__btn-kind {
  color: #ddd6fe;
}

.page-masthead__btn--api:hover .page-masthead__btn-kind {
  color: #fff;
}

.page-masthead__btn-icon--x {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M18.9 2H22l-6.8 7.8L23 22h-6.7l-5.2-6.8L5.5 22H2.4l7.3-8.4L1 2h6.8l4.7 6.2L18.9 2zm-1.2 18h1.9L7.1 3.9H5.1L17.7 20z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M18.9 2H22l-6.8 7.8L23 22h-6.7l-5.2-6.8L5.5 22H2.4l7.3-8.4L1 2h6.8l4.7 6.2L18.9 2zm-1.2 18h1.9L7.1 3.9H5.1L17.7 20z'/%3E%3C/svg%3E");
}

.page-masthead__btn--docs {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

.page-masthead__btn--docs:hover {
  background: #3b82f6;
  border-color: #60a5fa;
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
  text-decoration: none;
}

.page-masthead__btn--api {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.32);
  color: #c4b5fd;
}

.page-masthead__btn--api:hover {
  background: #7c3aed;
  border-color: #a78bfa;
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  transform: translateY(-1px);
  text-decoration: none;
}

.page-masthead__btn--github {
  background: rgba(244, 244, 245, 0.06);
  border-color: rgba(161, 161, 170, 0.28);
  color: #e4e4e7;
}

.page-masthead__btn--github:hover {
  background: #fafafa;
  border-color: #fafafa;
  color: #18181b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
  text-decoration: none;
}

.page-masthead__btn--social {
  background: rgba(39, 39, 42, 0.85);
  border-color: #3f3f46;
  color: #d4d4d8;
}

.page-masthead__btn--social:hover {
  background: #3f3f46;
  border-color: #52525b;
  color: #fafafa;
  transform: translateY(-1px);
  text-decoration: none;
}

.page-masthead__btn-icon--demo-trades {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-4l-3 9L9 3l-3 9H2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-4l-3 9L9 3l-3 9H2'/%3E%3C/svg%3E");
}

.page-masthead__btn-icon--demo-ohlc {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M7 16V8M12 20V4M17 14v-4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M7 16V8M12 20V4M17 14v-4'/%3E%3C/svg%3E");
}

.page-masthead__btn-icon--demo-token {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E");
}

.page-masthead__btn-icon--demo-wallet {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2z'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M16 14h.01'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2z'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M16 14h.01'/%3E%3C/svg%3E");
}

.page-masthead__btn-icon--demo-holders {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.page-masthead__btn-icon--demo-traders {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 6l-9.5 9.5-5-5L1 18'/%3E%3Cpath d='M17 6h6v6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 6l-9.5 9.5-5-5L1 18'/%3E%3Cpath d='M17 6h6v6'/%3E%3C/svg%3E");
}

.page-masthead__nav-row--secondary-endpoints {
  width: 100%;
  padding-top: 0.35rem;
}

.page-masthead__group--secondary-endpoints {
  width: 100%;
}

.page-masthead__btns--secondary-endpoints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.page-masthead__btns--secondary-endpoints .page-masthead__btn {
  flex: 1 1 12rem;
  min-width: 0;
  max-width: 100%;
}

.page-masthead__nav-row--related {
  width: 100%;
  padding-top: 0.2rem;
}

.page-masthead__group--related {
  width: 100%;
}

.page-masthead__btns--related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
}

.page-masthead__btns--related .page-masthead__btn {
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  gap: 0;
  padding: 0.58rem 0.82rem;
  white-space: normal;
  line-height: 1.25;
  border: 1px solid transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.page-masthead__btns--related .page-masthead__btn-text {
  flex: 1 1 0%;
  min-width: 0;
  text-align: left;
  font-size: 15pt;
  margin-left: 18px;
}

.page-masthead__demo-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 91px;
  max-width: 91px;
  max-height: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.page-masthead__demo-preview img {
  display: block;
  height: 48px;
  max-height: 48px;
  width: auto;
  max-width: 91px;
  object-fit: cover;
  object-position: top center;
}

.page-masthead__demo-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.page-masthead__btn--demo .page-masthead__btn-icon {
  width: 1rem;
  height: 1rem;
}

.page-masthead__btn--demo .page-masthead__btn-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.page-masthead__btn--demo-trades {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16) 0%, rgba(22, 101, 52, 0.1) 100%);
  border-color: rgba(74, 222, 128, 0.32);
  color: #bbf7d0;
}

.page-masthead__btn--demo-trades .page-masthead__demo-preview {
  background: rgba(34, 197, 94, 0.22);
  color: #4ade80;
}

.page-masthead__btn--demo-trades:hover {
  background: rgba(34, 197, 94, 0.3);
  border-color: rgba(74, 222, 128, 0.55);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.18);
}

.page-masthead__btn--demo-ohlc {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(180, 83, 9, 0.1) 100%);
  border-color: rgba(251, 191, 36, 0.32);
  color: #fde68a;
}

.page-masthead__btn--demo-ohlc .page-masthead__demo-preview {
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
}

.page-masthead__btn--demo-ohlc:hover {
  background: rgba(245, 158, 11, 0.3);
  border-color: rgba(251, 191, 36, 0.55);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.18);
}

.page-masthead__btn--demo-token {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16) 0%, rgba(30, 64, 175, 0.1) 100%);
  border-color: rgba(147, 197, 253, 0.32);
  color: #bfdbfe;
}

.page-masthead__btn--demo-token .page-masthead__demo-preview {
  background: rgba(59, 130, 246, 0.22);
  color: #60a5fa;
}

.page-masthead__btn--demo-token:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(147, 197, 253, 0.55);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.18);
}

.page-masthead__btn--demo-wallet {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.16) 0%, rgba(15, 118, 110, 0.1) 100%);
  border-color: rgba(45, 212, 191, 0.32);
  color: #99f6e4;
}

.page-masthead__btn--demo-wallet .page-masthead__demo-preview {
  background: rgba(20, 184, 166, 0.22);
  color: #2dd4bf;
}

.page-masthead__btn--demo-wallet:hover {
  background: rgba(20, 184, 166, 0.3);
  border-color: rgba(45, 212, 191, 0.55);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.18);
}

.page-masthead__btn--demo-holders {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16) 0%, rgba(91, 33, 182, 0.1) 100%);
  border-color: rgba(196, 181, 253, 0.32);
  color: #ddd6fe;
}

.page-masthead__btn--demo-holders .page-masthead__demo-preview {
  background: rgba(139, 92, 246, 0.22);
  color: #a78bfa;
}

.page-masthead__btn--demo-holders:hover {
  background: rgba(139, 92, 246, 0.3);
  border-color: rgba(196, 181, 253, 0.55);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.18);
}

.page-masthead__btn--demo-traders {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.16) 0%, rgba(190, 18, 60, 0.1) 100%);
  border-color: rgba(251, 113, 133, 0.32);
  color: #fecdd3;
}

.page-masthead__btn--demo-traders .page-masthead__demo-preview {
  background: rgba(244, 63, 94, 0.22);
  color: #fb7185;
}

.page-masthead__btn--demo-traders:hover {
  background: rgba(244, 63, 94, 0.3);
  border-color: rgba(251, 113, 133, 0.55);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.18);
}

.page-masthead__btn--demo-swap {
  background: linear-gradient(135deg, rgba(20, 241, 149, 0.16) 0%, rgba(153, 69, 255, 0.1) 100%);
  border-color: rgba(20, 241, 149, 0.32);
  color: #bbf7d0;
}

.page-masthead__btn--demo-swap .page-masthead__demo-preview {
  background: rgba(20, 241, 149, 0.22);
  color: #14f195;
}

.page-masthead__btn--demo-swap:hover {
  background: rgba(20, 241, 149, 0.3);
  border-color: rgba(20, 241, 149, 0.55);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(20, 241, 149, 0.18);
}
.page-masthead__btn--demo-balances {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16) 0%, rgba(2, 132, 199, 0.1) 100%);
  border-color: rgba(56, 189, 248, 0.32);
  color: #bae6fd;
}

.page-masthead__btn--demo-balances .page-masthead__demo-preview {
  background: rgba(14, 165, 233, 0.22);
  color: #38bdf8;
}

.page-masthead__btn--demo-balances:hover {
  background: rgba(14, 165, 233, 0.3);
  border-color: rgba(56, 189, 248, 0.55);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.18);
}

.page-masthead__btn--demo-defi {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.16) 0%, rgba(194, 65, 12, 0.1) 100%);
  border-color: rgba(251, 146, 60, 0.32);
  color: #fed7aa;
}

.page-masthead__btn--demo-defi .page-masthead__demo-preview {
  background: rgba(249, 115, 22, 0.22);
  color: #fb923c;
}

.page-masthead__btn--demo-defi:hover {
  background: rgba(249, 115, 22, 0.3);
  border-color: rgba(251, 146, 60, 0.55);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.18);
}
.page-masthead__btn--demo-soon {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.12) 0%, rgba(55, 65, 81, 0.08) 100%);
  border-color: rgba(156, 163, 175, 0.22);
  color: #9ca3af;
  cursor: default;
  pointer-events: none;
}

.page-masthead__btn--demo-soon .page-masthead__demo-preview {
  background: rgba(107, 114, 128, 0.18);
}

.page-masthead__btn--demo-soon:hover {
  transform: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}



@media (max-width: 1024px) {
  .page-masthead__btns--related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-masthead__btns--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 400px) {
  .page-masthead__btns--related {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-masthead__nav-row--primary {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .page-masthead__nav-cluster {
    flex-wrap: wrap;
  }

  .page-masthead__group--endpoints .page-masthead__btns {
    flex-wrap: wrap;
  }

  .page-masthead__group--community {
    justify-self: start;
  }
}

/* Content sections — elevated panels with accent stripe */
.panel {
  background: var(--vybe-surface);
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.section-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--vybe-border);
  padding: 1.35rem 1.3rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 20px 48px rgba(0, 0, 0, 0.4);
}

.section-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  z-index: 1;
}

.section-card--remote {
  border-color: rgba(59, 130, 246, 0.32);
  background:
    linear-gradient(155deg, rgba(22, 28, 40, 0.25) 0%, rgba(10, 12, 20, 0.25) 50%, rgba(14, 22, 38, 0.25) 100%),
    linear-gradient(155deg, rgba(24, 26, 34, 0.98) 0%, rgba(12, 13, 18, 0.99) 50%, rgba(15, 18, 28, 0.98) 100%);
  box-shadow: 0 1px 0 rgba(96, 165, 250, 0.02) inset, 0 20px 48px rgba(0, 0, 0, 0.4);
}

.section-card--remote::before {
  background: linear-gradient(180deg, #3b82f6, #22d3ee);
}

.section-card--token {
  border-color: rgba(139, 92, 246, 0.32);
  background:
    linear-gradient(155deg, rgba(28, 24, 38, 0.25) 0%, rgba(11, 10, 18, 0.25) 50%, rgba(20, 16, 34, 0.25) 100%),
    linear-gradient(155deg, rgba(24, 26, 34, 0.98) 0%, rgba(12, 13, 18, 0.99) 50%, rgba(15, 18, 28, 0.98) 100%);
  box-shadow: 0 1px 0 rgba(167, 139, 250, 0.02) inset, 0 20px 48px rgba(0, 0, 0, 0.4);
}

.section-card--token::before {
  background: linear-gradient(180deg, #a78bfa, #8b5cf6);
}

.section-card--chart {
  border-color: rgba(34, 197, 94, 0.32);
  background:
    linear-gradient(155deg, rgba(18, 30, 24, 0.25) 0%, rgba(10, 14, 12, 0.25) 50%, rgba(14, 28, 26, 0.25) 100%),
    linear-gradient(155deg, rgba(24, 26, 34, 0.98) 0%, rgba(12, 13, 18, 0.99) 50%, rgba(15, 18, 28, 0.98) 100%);
  box-shadow: 0 1px 0 rgba(34, 197, 94, 0.02) inset, 0 20px 48px rgba(0, 0, 0, 0.4);
}

.section-card--chart::before {
  background: linear-gradient(180deg, #22c55e, #14b8a6);
}

.section-card--rebuild {
  border-color: rgba(245, 158, 11, 0.32);
  background:
    linear-gradient(155deg, rgba(34, 26, 18, 0.25) 0%, rgba(14, 11, 10, 0.25) 50%, rgba(28, 18, 14, 0.25) 100%),
    linear-gradient(155deg, rgba(24, 26, 34, 0.98) 0%, rgba(12, 13, 18, 0.99) 50%, rgba(15, 18, 28, 0.98) 100%);
  box-shadow: 0 1px 0 rgba(245, 158, 11, 0.02) inset, 0 20px 48px rgba(0, 0, 0, 0.4);
}

.section-card--rebuild::before {
  background: linear-gradient(180deg, #f59e0b, #f97316);
}

.section-card--trades {
  border-color: rgba(96, 165, 250, 0.32);
  background:
    linear-gradient(155deg, rgba(22, 28, 42, 0.25) 0%, rgba(10, 12, 18, 0.25) 50%, rgba(16, 22, 40, 0.25) 100%),
    linear-gradient(155deg, rgba(24, 26, 34, 0.98) 0%, rgba(12, 13, 18, 0.99) 50%, rgba(15, 18, 28, 0.98) 100%);
  box-shadow: 0 1px 0 rgba(96, 165, 250, 0.02) inset, 0 20px 48px rgba(0, 0, 0, 0.4);
}

.section-card--trades::before {
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
}

.section-card > * {
  position: relative;
  z-index: 1;
}

.section-card .section-header {
  gap: 0.5rem 0.75rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.15rem;
}

.section-heading {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0;
  align-self: flex-start;
}

.section-heading .section-header {
  width: 100%;
  min-height: 40px;
  max-height: 40px;
  padding-bottom: 0;
  margin-bottom: 0;
  align-items: center;
  flex-wrap: nowrap;
}

.section-heading .section-lede.meta {
  margin: 0;
  max-width: fit-content;
}

.inputs.panel.section-card--remote {
  row-gap: 0.5rem;
}

.section-header__marker {
  flex-shrink: 0;
  align-self: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3f3f46;
  box-shadow: 0 0 0 3px rgba(63, 63, 70, 0.25);
}

.section-card--remote .section-header__marker {
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.45);
}

.section-card--token .section-header__marker {
  background: #8b5cf6;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.45);
}

.section-card--chart .section-header__marker {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.45);
}

.section-card--rebuild .section-header__marker {
  background: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}

.section-card--trades .section-header__marker {
  background: #60a5fa;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.45);
}

.section-card--trades .section-header {
  border-bottom: none;
}

.section-header__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #f4f4f5;
  text-transform: none;
}

.section-lede.meta {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  max-width: fit-content;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #a1a1aa;
  background: rgba(9, 9, 11, 0.55);
  border: 1px solid rgba(63, 63, 70, 0.35);
  border-radius: 8px;
}

.section-lede.meta strong {
  color: #d4d4d8;
  font-weight: 600;
}

.section-subtitle,
.local-filters-subtitle.section-subtitle {
  margin: 1rem 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #e4e4e7;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(245, 158, 11, 0.6);
}

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

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

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

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

.field input,
.field select {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  background: #0f0f12;
  color: #e4e4e7;
  min-width: 240px;
}

.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 {
  /* default: magnifier */
  content: '';
  position: absolute;
  inset: 0;
  background: #a1a1aa;
  -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='M10 2a8 8 0 1 0 4.9 14.3l4.4 4.4a1 1 0 0 0 1.4-1.4l-4.4-4.4A8 8 0 0 0 10 2Zm0 2a6 6 0 1 1 0 12a6 6 0 0 1 0-12Z'/%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='M10 2a8 8 0 1 0 4.9 14.3l4.4 4.4a1 1 0 0 0 1.4-1.4l-4.4-4.4A8 8 0 0 0 10 2Zm0 2a6 6 0 1 1 0 12a6 6 0 0 1 0-12Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.field-icon.icon-search::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='M10 2a8 8 0 1 0 4.9 14.3l4.4 4.4a1 1 0 0 0 1.4-1.4l-4.4-4.4A8 8 0 0 0 10 2Zm0 2a6 6 0 1 1 0 12a6 6 0 0 1 0-12Z'/%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='M10 2a8 8 0 1 0 4.9 14.3l4.4 4.4a1 1 0 0 0 1.4-1.4l-4.4-4.4A8 8 0 0 0 10 2Zm0 2a6 6 0 1 1 0 12a6 6 0 0 1 0-12Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.field-icon.icon-clock::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 2a10 10 0 1 0 0 20a10 10 0 0 0 0-20Zm0 2a8 8 0 1 1 0 16a8 8 0 0 1 0-16Zm-1 3a1 1 0 0 1 2 0v5l3.3 2a1 1 0 0 1-1 1.7l-3.8-2.3A1 1 0 0 1 11 13V7Z'/%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 2a10 10 0 1 0 0 20a10 10 0 0 0 0-20Zm0 2a8 8 0 1 1 0 16a8 8 0 0 1 0-16Zm-1 3a1 1 0 0 1 2 0v5l3.3 2a1 1 0 0 1-1 1.7l-3.8-2.3A1 1 0 0 1 11 13V7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.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-link::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='M10.6 13.4a1 1 0 0 1 0-1.4l2-2a1 1 0 1 1 1.4 1.4l-2 2a1 1 0 0 1-1.4 0ZM8.5 15.5a4 4 0 0 1 0-5.7l1.4-1.4a4 4 0 0 1 5.7 0a1 1 0 1 1-1.4 1.4a2 2 0 0 0-2.9 0L9.9 11.2a2 2 0 0 0 2.9 2.9a1 1 0 1 1 1.4 1.4a4 4 0 0 1-5.7 0ZM15.5 8.5a4 4 0 0 1 0 5.7l-1.4 1.4a4 4 0 0 1-5.7 0a1 1 0 1 1 1.4-1.4a2 2 0 0 0 2.9 0l1.4-1.4a2 2 0 0 0-2.9-2.9a1 1 0 1 1-1.4-1.4a4 4 0 0 1 5.7 0Z'/%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='M10.6 13.4a1 1 0 0 1 0-1.4l2-2a1 1 0 1 1 1.4 1.4l-2 2a1 1 0 0 1-1.4 0ZM8.5 15.5a4 4 0 0 1 0-5.7l1.4-1.4a4 4 0 0 1 5.7 0a1 1 0 1 1-1.4 1.4a2 2 0 0 0-2.9 0L9.9 11.2a2 2 0 0 0 2.9 2.9a1 1 0 1 1 1.4 1.4a4 4 0 0 1-5.7 0ZM15.5 8.5a4 4 0 0 1 0 5.7l-1.4 1.4a4 4 0 0 1-5.7 0a1 1 0 1 1 1.4-1.4a2 2 0 0 0 2.9 0l1.4-1.4a2 2 0 0 0-2.9-2.9a1 1 0 1 1-1.4-1.4a4 4 0 0 1 5.7 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.field-icon.icon-market::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 4v16h16V4H4zm2 2h12v3l-1 2v9H7v-9l-1-2V6z'/%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 4v16h16V4H4zm2 2h12v3l-1 2v9H7v-9l-1-2V6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.field-icon.icon-dollar::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='M11 2a1 1 0 0 1 2 0v1.1c2.6.3 4.5 1.9 4.8 4.3a1 1 0 1 1-2 .2c-.2-1.7-1.6-2.5-3.8-2.5c-2.2 0-3.5.9-3.5 2.3c0 1.3 1.1 1.9 4 2.5c3.3.8 5.5 2 5.5 5.1c0 2.7-2.1 4.5-5.3 4.9V22a1 1 0 0 1-2 0v-1.1c-2.9-.3-5-2-5.4-4.7a1 1 0 1 1 2-.3c.4 2 2.2 3 4.4 3c2.4 0 3.9-1 3.9-2.6c0-1.6-1.4-2.2-4.5-2.9C8.5 11.6 6.5 10.4 6.5 7.6c0-2.5 1.9-4.2 4.5-4.5V2Z'/%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='M11 2a1 1 0 0 1 2 0v1.1c2.6.3 4.5 1.9 4.8 4.3a1 1 0 1 1-2 .2c-.2-1.7-1.6-2.5-3.8-2.5c-2.2 0-3.5.9-3.5 2.3c0 1.3 1.1 1.9 4 2.5c3.3.8 5.5 2 5.5 5.1c0 2.7-2.1 4.5-5.3 4.9V22a1 1 0 0 1-2 0v-1.1c-2.9-.3-5-2-5.4-4.7a1 1 0 1 1 2-.3c.4 2 2.2 3 4.4 3c2.4 0 3.9-1 3.9-2.6c0-1.6-1.4-2.2-4.5-2.9C8.5 11.6 6.5 10.4 6.5 7.6c0-2.5 1.9-4.2 4.5-4.5V2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.field-icon.icon-scale::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 2a1 1 0 0 1 1 1v2h6a1 1 0 1 1 0 2h-1.1l1.9 4.6a1 1 0 0 1-.1.9c-.7 1-1.9 1.7-3.3 1.7s-2.6-.6-3.3-1.7a1 1 0 0 1-.1-.9L14.9 7H13v13h3a1 1 0 1 1 0 2H8a1 1 0 1 1 0-2h3V7h-1.9l1.9 4.6a1 1 0 0 1-.1.9c-.7 1-1.9 1.7-3.3 1.7S5.1 13.6 4.4 12.6a1 1 0 0 1-.1-.9L6.2 7H5a1 1 0 1 1 0-2h6V3a1 1 0 0 1 1-1Zm3.2 9l1.2-3l1.2 3h-2.4Zm-10.4 0h2.4L6 8l-1.2 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='M12 2a1 1 0 0 1 1 1v2h6a1 1 0 1 1 0 2h-1.1l1.9 4.6a1 1 0 0 1-.1.9c-.7 1-1.9 1.7-3.3 1.7s-2.6-.6-3.3-1.7a1 1 0 0 1-.1-.9L14.9 7H13v13h3a1 1 0 1 1 0 2H8a1 1 0 1 1 0-2h3V7h-1.9l1.9 4.6a1 1 0 0 1-.1.9c-.7 1-1.9 1.7-3.3 1.7S5.1 13.6 4.4 12.6a1 1 0 0 1-.1-.9L6.2 7H5a1 1 0 1 1 0-2h6V3a1 1 0 0 1 1-1Zm3.2 9l1.2-3l1.2 3h-2.4Zm-10.4 0h2.4L6 8l-1.2 3Z'/%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-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-download::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 3a1 1 0 0 1 1 1v9.6l2.3-2.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L11 13.6V4a1 1 0 0 1 1-1Zm-7 16a1 1 0 0 1 1 1v1h12v-1a1 1 0 1 1 2 0v1a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-1a1 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='M12 3a1 1 0 0 1 1 1v9.6l2.3-2.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L11 13.6V4a1 1 0 0 1 1-1Zm-7 16a1 1 0 0 1 1 1v1h12v-1a1 1 0 1 1 2 0v1a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-1a1 1 0 0 1 1-1Z'/%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-info::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 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%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 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.field-icon.icon-pool::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.5 10a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm9 2a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-4.5 9a6 6 0 0 1 0-12 6 6 0 0 1 0 12Z'/%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.5 10a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm9 2a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-4.5 9a6 6 0 0 1 0-12 6 6 0 0 1 0 12Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.field-icon.icon-coins::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 3C7.6 3 4 4.8 4 7s3.6 4 8 4 8-1.8 8-4-3.6-4-8-4Zm0 14c-4.4 0-8 1.8-8 4s3.6 4 8 4 8-1.8 8-4-3.6-4-8-4Z'/%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 3C7.6 3 4 4.8 4 7s3.6 4 8 4 8-1.8 8-4-3.6-4-8-4Zm0 14c-4.4 0-8 1.8-8 4s3.6 4 8 4 8-1.8 8-4-3.6-4-8-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

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

#mintAddress {
  max-width: 406px;
  min-width: 406px;
}

.candles-mint-resolution-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}
.candles-mint-resolution-row .field {
  flex: 1 1 auto;
  min-width: 0;
}
.candles-mint-resolution-row .field:first-child {
  flex: 1 1 auto;
  min-width: 200px;
}
.candles-mint-resolution-row #remoteNoGapsTarget {
  flex: 0 0 auto;
  align-self: flex-end;
}

#limit {
  min-width: 120px;
}

#pageFrom,
#pageTo {
  min-width: 88px;
  max-width: 88px;
}

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

.page-range .field-control {
  flex: 0 0 auto;
}

.page-range-sep {
  color: #a1a1aa;
  font-size: 0.9rem;
  padding: 0 0.1rem;
}

.field input[type='number'] {
  min-width: 100px;
  max-width: 100px;
}

#sort {
  min-width: 166px;
  max-width: 166px;
}

#search,
#localMarket,
#localProgram,
#localSignature,
#localAuthority {
  min-width: 340px;
  max-width: 340px;
}

.local-filters-panel .section-header {
  margin-bottom: 0.75rem;
}
.remote-filters-help {
  margin: 0;
}

.local-filters-help {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: #a1a1aa;
}

.local-filters-help strong {
  font-weight: 600;
}

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

button {
  border: 1px solid #3f3f46;
  background: #27272a;
  color: #e4e4e7;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

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

.loading-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #3f3f46;
  border-top-color: #3b82f6;
  border-radius: 999px;
  animation: spin 1s linear infinite;
}

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

.section-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #a1a1aa;
  margin-left: 12px;
}

/* Masthead-style fetch / export action buttons */
.vybe-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.52rem 0.85rem;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  text-transform: none;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.vybe-action-btn--fetch {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.vybe-action-btn--fetch:hover:not(:disabled) {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
  transform: translateY(-1px);
}

.vybe-action-btn--export {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

.vybe-action-btn--export:hover:not(:disabled) {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
  transform: translateY(-1px);
}

.vybe-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.vybe-action-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.vybe-action-btn__icon {
  flex-shrink: 0;
  width: 0.95rem;
  height: 0.95rem;
  background: currentColor;
  -webkit-mask: no-repeat center / contain;
  mask: no-repeat center / contain;
}

.vybe-action-btn__icon--fetch {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 2a8 8 0 1 0 4.9 14.3l4.4 4.4a1 1 0 0 0 1.4-1.4l-4.4-4.4A8 8 0 0 0 10 2Zm0 2a6 6 0 1 1 0 12a6 6 0 0 1 0-12Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 2a8 8 0 1 0 4.9 14.3l4.4 4.4a1 1 0 0 0 1.4-1.4l-4.4-4.4A8 8 0 0 0 10 2Zm0 2a6 6 0 1 1 0 12a6 6 0 0 1 0-12Z'/%3E%3C/svg%3E");
}

.vybe-action-btn__icon--export {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3a1 1 0 0 1 1 1v9.6l2.3-2.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L11 13.6V4a1 1 0 0 1 1-1Zm-7 16a1 1 0 0 1 1 1v1h12v-1a1 1 0 1 1 2 0v1a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-1a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3a1 1 0 0 1 1 1v9.6l2.3-2.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L11 13.6V4a1 1 0 0 1 1-1Zm-7 16a1 1 0 0 1 1 1v1h12v-1a1 1 0 1 1 2 0v1a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-1a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
}

.vybe-action-btn__icon--export-pages {
  -webkit-mask-image: 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");
  mask-image: 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");
}

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

.vybe-action-btn--fetch.fetch-btn-attention {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #bbf7d0;
}

@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);
  }
}

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

.section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-height: 40px;
  max-height: 40px;
}

.section-header h2,
.section-header__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 40px;
  height: 40px;
}

.section-header .section-loading,
.section-header .section-error,
.section-header .section-warning {
  margin: 0 0 0 6px;
  max-height: 30px;
  align-self: center;
  flex-shrink: 1;
  min-width: 0;
}

.section-error {
  display: inline-block;
  font-size: 0.9rem;
  color: #f87171;
}

.section-card--token .token-meta-header {
  padding: 0.65rem 0.75rem;
  margin-top: 0.35rem;
  border-radius: 10px;
  background: rgba(9, 9, 11, 0.5);
  border: 1px solid rgba(63, 63, 70, 0.35);
}

.section-card--chart .candles-chart-wrapper {
  margin-top: 0.25rem;
  border-radius: 10px;
  border: 1px solid rgba(63, 63, 70, 0.4);
  overflow: hidden;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.summary-box {
  background: #0f0f12;
  border: 1px solid #27272a;
  border-radius: 10px;
  padding: 0.75rem;
}

.summary-box h3 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: #e4e4e7;
  font-weight: 600;
}

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

.section-card--summary {
  border-color: rgba(96, 165, 250, 0.32);
  background:
    linear-gradient(155deg, rgba(22, 28, 42, 0.25) 0%, rgba(10, 12, 18, 0.25) 50%, rgba(16, 22, 40, 0.25) 100%),
    linear-gradient(155deg, rgba(24, 26, 34, 0.98) 0%, rgba(12, 13, 18, 0.99) 50%, rgba(15, 18, 28, 0.98) 100%);
  box-shadow: 0 1px 0 rgba(96, 165, 250, 0.02) inset, 0 20px 48px rgba(0, 0, 0, 0.4);
}

.section-card--summary::before {
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
}

.section-card--summary .section-header__marker {
  background: #60a5fa;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.45);
}

.section-card--summary .section-header {
  border-bottom: none;
}

.summary-box .summary-mini-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.summary-box .table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.summary-box .summary-mini-table--programs col.summary-col-program {
  width: 46%;
}

.summary-box .summary-mini-table--programs col.summary-col-markets-stat,
.summary-box .summary-mini-table--programs col.summary-col-quote-tokens-stat {
  width: 13%;
}

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

.summary-box .summary-mini-table--programs col.summary-col-count {
  width: 94px !important;
  min-width: 94px !important;
}

.summary-box .summary-mini-table--programs thead th:nth-child(4),
.summary-box .summary-mini-table--programs tbody td.summary-cell-count {
  width: 94px !important;
  min-width: 94px !important;
  max-width: 94px !important;
  box-sizing: border-box;
}

.summary-box .summary-mini-table--markets {
  table-layout: fixed;
  width: 100%;
}

.summary-box .summary-mini-table--markets col.summary-col-market {
  width: 75px !important;
}

.summary-box .summary-mini-table--markets col.summary-col-program {
  width: 105px !important;
  min-width: 105px !important;
}

.summary-box .summary-mini-table--markets col.summary-col-pair {
  width: auto;
}

.summary-box .summary-mini-table--markets col.summary-col-count {
  width: 94px !important;
  min-width: 94px !important;
}

.summary-box .summary-mini-table--markets thead th:nth-child(4),
.summary-box .summary-mini-table--markets tbody td.summary-cell-count {
  width: 94px !important;
  min-width: 94px !important;
  max-width: 94px !important;
  box-sizing: border-box;
}

.summary-box .summary-mini-table--markets thead th:nth-child(3),
.summary-box .summary-mini-table--markets tbody td.summary-cell-program {
  width: 105px !important;
  min-width: 105px !important;
  max-width: 105px !important;
  box-sizing: border-box;
  overflow: hidden;
}

.summary-box .summary-mini-table--markets .summary-cell-program .program-dex-chip-link {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.summary-box .summary-mini-table--markets .summary-cell-program .program-dex-chip {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-box .summary-mini-table--markets thead th:first-child,
.summary-box .summary-mini-table--markets tbody td.summary-cell-market {
  width: 75px !important;
  max-width: 75px !important;
  min-width: 0 !important;
  box-sizing: border-box;
  overflow: hidden;
}

.summary-box .summary-mini-table--markets .summary-cell-market .market-cell-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.summary-box .summary-mini-table--markets .summary-cell-market .market-address-label {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: calc(0.58rem * 1.15 * 0.88);
  font-weight: 600;
  border: none;
  padding: 0;
}

.summary-box .summary-mini-table--quotes col.summary-col-symbol {
  width: 20%;
}

.summary-box .summary-mini-table--quotes col.summary-col-mint {
  width: 86px !important;
  min-width: 86px !important;
}

.summary-box .summary-mini-table--quotes thead th:nth-child(2),
.summary-box .summary-mini-table--quotes tbody td.summary-cell-mint {
  width: 86px !important;
  min-width: 86px !important;
  max-width: 86px !important;
  box-sizing: border-box;
  overflow: hidden;
  font-size: calc(0.58rem * 1.15 * 0.88);
}

.summary-box .summary-mini-table--quotes tbody td.summary-cell-mint .market-address-label {
  font-size: calc(0.58rem * 1.15 * 0.88);
}

.summary-box .summary-mini-table--quotes col.summary-col-markets-stat {
  width: 45px !important;
  min-width: 45px !important;
}

.summary-box .summary-mini-table--quotes col.summary-col-programs-stat {
  width: 55px !important;
  min-width: 55px !important;
}

.summary-box .summary-mini-table--quotes thead th:nth-child(3),
.summary-box .summary-mini-table--quotes tbody td:nth-child(3).summary-cell-stat {
  width: 45px !important;
  min-width: 45px !important;
  max-width: 45px !important;
  box-sizing: border-box;
}

.summary-box .summary-mini-table--quotes thead th:nth-child(4),
.summary-box .summary-mini-table--quotes tbody td:nth-child(4).summary-cell-stat {
  width: 55px !important;
  min-width: 55px !important;
  max-width: 55px !important;
  box-sizing: border-box;
}

.summary-box .summary-mini-table--quotes {
  table-layout: fixed;
  width: 100%;
}

.summary-box .summary-mini-table--quotes col.summary-col-count {
  width: 94px !important;
  min-width: 94px !important;
}

.summary-box .summary-mini-table--quotes thead th:nth-child(5),
.summary-box .summary-mini-table--quotes tbody td.summary-cell-count {
  width: 94px !important;
  min-width: 94px !important;
  max-width: 94px !important;
  box-sizing: border-box;
}

.summary-box .summary-mini-table thead th:nth-child(2),
.summary-box .summary-mini-table thead th:nth-child(3),
.summary-box .summary-mini-table--quotes thead th:nth-child(3) {
  white-space: nowrap;
  padding-left: 0.12rem;
  padding-right: 0.12rem;
}

.summary-box .summary-mini-table--programs thead th:nth-child(2),
.summary-box .summary-mini-table--programs tbody td:nth-child(2) {
  padding-right: 0.5rem;
}

.summary-box .summary-mini-table--programs thead th:nth-child(3),
.summary-box .summary-mini-table--programs tbody td:nth-child(3) {
  padding-left: 0.5rem;
}

.summary-box .summary-mini-table .summary-cell-program,
.summary-box .summary-mini-table .summary-cell-market,
.summary-box .summary-mini-table .summary-cell-mint,
.summary-box .summary-mini-table .summary-cell-pair,
.summary-box .summary-mini-table .summary-cell-symbol,
.summary-box .summary-mini-table .summary-cell-stat,
.summary-box .summary-mini-table .summary-cell-count {
  overflow: hidden;
}

.summary-box .summary-mini-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #18181b;
  font-size: calc(0.56rem * 1.15);
  line-height: 1.1;
  font-weight: 500;
  color: #a1a1aa;
  padding: 0.28rem 0.35rem;
  vertical-align: middle;
  border-bottom: 1px solid #3f3f46;
  text-align: left;
}

.summary-box .summary-mini-table thead th:last-child {
  text-align: center;
}

.summary-box .summary-mini-table th,
.summary-box .summary-mini-table td {
  box-sizing: border-box;
}

.summary-box .summary-mini-table td {
  padding: 0.28rem 0.35rem;
  font-size: calc(0.66rem * 1.15);
  vertical-align: middle;
  border-bottom: 1px solid rgba(63, 63, 70, 0.45);
}

.summary-box .summary-mini-table tbody tr:not(.summary-placeholder-row):nth-child(even) td {
  background: rgba(24, 24, 27, 0.55);
}

.summary-box .summary-mini-table tbody tr:not(.summary-placeholder-row):hover td {
  background: rgba(59, 130, 246, 0.1);
}

.summary-box .summary-mini-table .summary-cell-stat {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #d4d4d8;
}

.summary-box .summary-mini-table .summary-cell-count {
  text-align: center;
}

.summary-box .summary-count-cell {
  display: inline-block;
  max-width: 100%;
}

.summary-box .summary-tx-count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12rem;
  font-size: calc(0.5rem * 1.15);
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.summary-box .summary-tx-count-label {
  font-size: 1em;
  font-weight: 600;
}

.summary-box .summary-tx-count-num {
  font-size: 1em;
  font-weight: 600;
}

.summary-box .summary-bar-tier--red .summary-tx-count,
.summary-box .summary-bar-tier--red .summary-tx-count-num,
.summary-box .summary-bar-tier--red .summary-tx-count-label {
  color: #ef4444;
}

.summary-box .summary-bar-tier--orange .summary-tx-count,
.summary-box .summary-bar-tier--orange .summary-tx-count-num,
.summary-box .summary-bar-tier--orange .summary-tx-count-label {
  color: #fb923c;
}

.summary-box .summary-bar-tier--yellow .summary-tx-count,
.summary-box .summary-bar-tier--yellow .summary-tx-count-num,
.summary-box .summary-bar-tier--yellow .summary-tx-count-label {
  color: #facc15;
}

.summary-box .summary-bar-tier--light-green .summary-tx-count,
.summary-box .summary-bar-tier--light-green .summary-tx-count-num,
.summary-box .summary-bar-tier--light-green .summary-tx-count-label {
  color: #86efac;
}

.summary-box .summary-bar-tier--green .summary-tx-count,
.summary-box .summary-bar-tier--green .summary-tx-count-num,
.summary-box .summary-bar-tier--green .summary-tx-count-label {
  color: #22c55e;
}

.summary-box .summary-cell-count .trades-cell-with-volume {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  max-width: 100%;
}

.summary-box .summary-cell-count .trade-volume-bars {
  flex-shrink: 0;
  height: 11px;
  gap: 1.5px;
}

.summary-box .summary-cell-count .trade-volume-bar {
  width: 2.5px;
}

.summary-box .summary-cell-count .trade-volume-bar:nth-child(1) {
  height: 3px;
}

.summary-box .summary-cell-count .trade-volume-bar:nth-child(2) {
  height: 4.5px;
}

.summary-box .summary-cell-count .trade-volume-bar:nth-child(3) {
  height: 6px;
}

.summary-box .summary-cell-count .trade-volume-bar:nth-child(4) {
  height: 7.5px;
}

.summary-box .summary-cell-count .trade-volume-bar:nth-child(5) {
  height: 9px;
}

.summary-box .summary-mini-table .program-dex-chip-link {
  text-decoration: none;
  color: inherit;
}

.summary-box .summary-mini-table .program-dex-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  border: 1px solid currentColor;
  font-weight: 600;
  font-size: 0.58rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-box .summary-mini-table .market-pool-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  border: 1px solid currentColor;
  font-weight: 600;
  font-size: 0.58rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
}

.summary-box .summary-mini-table .market-pool-chip.amount-usdc {
  color: #86efac;
}

.summary-box .summary-mini-table .market-pool-chip.amount-sol {
  color: #c4b5fd;
}

.summary-box .summary-mini-table .market-pool-chip.market-other-yellow {
  color: #facc15;
}

.summary-box .summary-mini-table .market-pool-chip.market-pool-chip--neutral {
  color: #a1a1aa;
}

.summary-box .summary-mini-table .market-address-label.amount-usdc {
  color: #86efac;
}

.summary-box .summary-mini-table .market-address-label.amount-sol {
  color: #c4b5fd;
}

.summary-box .summary-mini-table .market-address-label.market-other-yellow {
  color: #facc15;
}

.summary-box .summary-mini-table .market-address-label.market-pool-chip--neutral {
  color: #a1a1aa;
}

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

.candles-controls .field {
  min-width: 220px;
}

/* Candles source: same switch styling as Authority = fee payer / Top 1k holder labels */
.candles-controls .field-switch {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.candles-controls .field-switch-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: default;
  font-size: 0.8rem;
  color: #a1a1aa;
}
.candles-controls .field-switch-header .field-switch-title {
  flex: 0 0 auto;
}
.candles-controls .field-switch-info.icon-info-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: help;
}
.candles-controls .trades-fetch-switch {
  display: inline-flex;
  cursor: pointer;
  align-items: stretch;
  width: fit-content;
  height: 35px;
}
.candles-controls .trades-fetch-switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.candles-controls .trades-fetch-switch-track {
  display: inline-flex;
  align-items: center;
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  padding: 4px;
  gap: 2px;
}
.candles-controls .trades-fetch-switch-option {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: #a1a1aa;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.candles-controls .trades-fetch-switch-option:hover {
  color: #e4e4e7;
}
.candles-controls .trades-fetch-switch-option[aria-pressed="true"] {
  background: #3b82f6;
  color: #fff;
}
.candles-source-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.candles-source-label {
  display: inline-flex;
  align-items: center;
}
.candles-source-row .field-control {
  position: relative;
  display: flex;
  align-items: center;
}
.candles-source-row .field-control .field-icon {
  position: absolute;
  left: 10px;
}
.candles-source-select {
  min-width: 12rem;
  padding: 0.35rem 0.75rem;
  padding-left: 34px;
  font-size: 0.8rem;
  color: #e4e4e7;
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 0.25rem;
  cursor: pointer;
}
.candles-market-address-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.candles-market-address-wrap[hidden] {
  display: none !important;
}
.candles-market-address-input {
  width: 420px;
  max-width: 420px;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  font-family: ui-monospace, monospace;
  color: #e4e4e7;
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 0.25rem;
}
.candles-pages-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-start;
}
.candles-pages-wrap[hidden] {
  display: none !important;
}
.candles-pages-header,
.candles-chart-quotes-header {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.8rem;
  color: #a1a1aa;
  margin: 0;
  padding: 0;
}
.candles-pages-header .field-switch-title,
.candles-chart-quotes-header .field-switch-title {
  font-size: 0.8rem;
  color: #a1a1aa;
  white-space: nowrap;
}
.candles-pages-input-wrap input {
  width: 50px;
  min-width: 50px;
  padding: 0.25rem 0.35rem;
  font-size: 0.8rem;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  background: #27272a;
  color: #e4e4e7;
  box-sizing: border-box;
}
#candlesResolution {
  width: 124px;
  min-width: 124px;
  box-sizing: border-box;
}
.candles-pages-progress {
  font-size: 0.75rem;
  color: #71717a;
  margin-top: 0.25rem;
  min-height: 1.2em;
}
.section-header .section-header-status.candles-pages-progress {
  margin-top: 0;
  margin-left: 0.75rem;
}
.candles-pages-progress:empty {
  display: none;
}

.candles-chart-quotes-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-start;
  flex-shrink: 0;
}
.candles-chart-quotes-wrap[hidden] {
  display: none !important;
}
.candles-chart-quotes-header {
  flex-shrink: 0;
}
.candles-chart-quotes-slots {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.candles-chart-quote-slot {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  max-width: 7rem;
}
.candles-chart-quote-slot input[type="radio"] {
  width: 14px;
  min-width: 14px;
  height: 14px;
  accent-color: #3b82f6;
  cursor: pointer;
  flex-shrink: 0;
}
.candles-chart-quote-slot select {
  font-size: 0.75rem;
  color: #e4e4e7;
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  padding: 0.15rem 0.25rem;
  width: 5.5rem;
  max-width: 5.5rem;
  min-width: 0;
  cursor: pointer;
  box-sizing: border-box;
}
.candles-chart-quote-slot select:hover {
  border-color: #52525b;
}
.candles-chart-quote-slot select:focus {
  outline: none;
  border-color: #3b82f6;
}

.candles-chart-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.candles-chart {
  height: 650px;
  max-height: 650px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background: #0b0b0f;
  border-radius: 10px;
  border: 1px solid #27272a;
  padding: 0.25rem 0.5rem 0.5rem 0.5rem;
}

.candles-chart-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  pointer-events: none;
  width: 170px;
  height: 160px;
  box-sizing: border-box;
  font-size: 11px;
  line-height: 1.35;
  color: #e4e4e7;
  background: rgba(18, 18, 22, 0.97);
  border: 1px solid rgba(39, 39, 46, 0.8);
  border-radius: 6px;
  padding: 8px 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.candles-chart-overlay .overlay-symbol {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #fafafa;
  margin-bottom: 2px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(63, 63, 70, 0.5);
}

.candles-chart-overlay .overlay-name {
  color: #71717a;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  line-height: 1.3;
}

.candles-chart-overlay .overlay-ohlc,
.candles-chart-overlay .overlay-volume {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 2px 8px;
  align-items: baseline;
  font-size: 10px;
}

.candles-chart-overlay .overlay-ohlc {
  margin-bottom: 4px;
}

.candles-chart-overlay .overlay-ohlc span:nth-child(odd),
.candles-chart-overlay .overlay-volume span:nth-child(odd) {
  color: #71717a;
  font-weight: 500;
  font-size: 10px;
}

.candles-chart-overlay .overlay-ohlc span:nth-child(even),
.candles-chart-overlay .overlay-volume span:nth-child(even) {
  color: #d4d4d8;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.candles-chart-overlay .overlay-volume {
  padding-top: 6px;
  border-top: 1px solid rgba(63, 63, 70, 0.35);
}

.candles-chart-overlay .overlay-hint {
  color: #52525b;
  font-size: 10px;
  margin-top: auto;
  padding-top: 6px;
}

@media (max-width: 768px) {
  .candles-chart {
    height: 280px;
  }
}

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

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

.table-wrap--scroll {
  max-height: 600px;
  overflow: auto;
}

#tradesTable {
  table-layout: fixed;
}

#tradesTable thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #18181b;
  font-size: calc(0.56rem * 1.15);
  line-height: 1.1;
  font-weight: 500;
  color: #a1a1aa;
  padding: 0.28rem 0.26rem;
  vertical-align: middle;
  border-bottom: 1px solid #3f3f46;
  box-shadow: 0 1px 0 #3f3f46, 0 4px 12px rgba(0, 0, 0, 0.35);
}

#tradesTable tbody tr:not(.trades-placeholder-row):nth-child(even) td {
  background: rgba(24, 24, 27, 0.5);
}

#tradesTable tbody tr:not(.trades-placeholder-row):hover td {
  background: rgba(59, 130, 246, 0.09);
  transition: background 0.12s ease;
}

#tradesTable tbody tr:not(.trades-placeholder-row) td {
  border-bottom: 1px solid rgba(63, 63, 70, 0.35);
}

#tradesTable thead th .trades-th-fee-payer-label {
  font-size: 0.75em;
  color: #facc15;
  font-weight: 500;
}

#tradesTable td {
  padding: 0.25rem 0.26rem;
  font-size: calc(0.66rem * 1.15);
  vertical-align: middle;
}

#tradesTable tbody tr.trades-placeholder-row {
  height: 28px;
}

#tradesTable tbody tr.trades-placeholder-row td {
  height: 28px;
  max-height: 28px;
  box-sizing: border-box;
}

#tradesTable th:nth-child(1),
#tradesTable td:nth-child(1) {
  text-align: left;
}

#tradesTable th:not(:nth-child(1)),
#tradesTable td:not(:nth-child(1)) {
  text-align: center;
}

#tradesTable th:nth-child(1),
#tradesTable td:nth-child(1) {
  width: 150px;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tradesTable .trades-date-time {
  font-weight: 700;
}
#tradesTable th:nth-child(2),
#tradesTable td:nth-child(2) {
  width: 58px;
  max-width: 58px;
}

.trade-type-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  padding: 0.08rem 0.42rem;
  border-radius: 4px;
  border: 2px solid currentColor;
  font-weight: 600;
  font-size: 0.58rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.trade-type-side-icon {
  display: inline-block;
  font-size: 0.52rem;
  line-height: 1;
  flex-shrink: 0;
}

.trade-type-side-icon--buy {
  color: #22c55e;
}

.trade-type-side-icon--sell {
  color: #ef4444;
}

.trade-type-chip--buy {
  color: #22c55e;
}

.trade-type-chip--sell {
  color: #ef4444;
}

#tradesTable th:nth-child(3),
#tradesTable td:nth-child(3) {
  width: 38px;
  max-width: 38px;
}

.trade-volume-bars {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 14px;
  vertical-align: middle;
}

.trade-volume-bar {
  display: block;
  width: 3px;
  border-radius: 1px;
  background: #3f3f46;
}

.trade-volume-bar:nth-child(1) { height: 4px; }
.trade-volume-bar:nth-child(2) { height: 6px; }
.trade-volume-bar:nth-child(3) { height: 8px; }
.trade-volume-bar:nth-child(4) { height: 10px; }
.trade-volume-bar:nth-child(5) { height: 12px; }

.trade-volume-bars--buy .trade-volume-bar--active {
  background: #22c55e;
}

.trade-volume-bars--sell .trade-volume-bar--active {
  background: #ef4444;
}

.trades-cell-with-volume {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.trades-cell-with-volume__main {
  min-width: 0;
}

.trades-cell-with-volume__bars {
  flex-shrink: 0;
}

#tradesTable .market-cell-link {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
  max-width: 100%;
  min-width: 0;
}

#tradesTable .market-cell-link .market-pool-chip {
  margin-left: 0;
}

#tradesTable .market-address-label.amount-usdc {
  color: #86efac;
}

#tradesTable .market-address-label.amount-sol {
  color: #c4b5fd;
}

#tradesTable .market-address-label.market-other-yellow {
  color: #facc15;
}

#tradesTable .market-address-label.market-pool-chip--neutral {
  color: #a1a1aa;
}

#tradesTable .market-pool-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.15rem;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  border: 1px solid currentColor;
  font-weight: 600;
  font-size: 0.52rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
  vertical-align: middle;
  white-space: nowrap;
}

#tradesTable .market-pool-chip.amount-usdc {
  color: #86efac;
}

#tradesTable .market-pool-chip.amount-sol {
  color: #c4b5fd;
}

#tradesTable .market-pool-chip.market-other-yellow {
  color: #facc15;
}

#tradesTable .market-pool-chip.market-pool-chip--neutral {
  color: #a1a1aa;
}

#tradesTable .program-dex-chip-link {
  text-decoration: none;
  color: inherit;
}

#tradesTable .program-dex-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  border: 2px solid currentColor;
  font-weight: 600;
  font-size: 0.52rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tradesTable thead th:nth-child(4),
#tradesTable thead th:nth-child(5),
#tradesTable thead th:nth-child(6),
#tradesTable thead th:nth-child(7) {
  font-size: calc(0.56rem * 1.15 - 1pt);
}

#tradesTable tbody td:nth-child(4),
#tradesTable tbody td:nth-child(5),
#tradesTable tbody td:nth-child(6),
#tradesTable tbody td:nth-child(7) {
  font-size: calc(0.66rem * 1.15 - 1pt);
}

#tradesTable tbody td:nth-child(7) .market-pool-chip {
  font-size: calc(0.52rem - 1pt);
}

#tradesTable th:nth-child(4),
#tradesTable td:nth-child(4) {
  width: 90px;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}
#tradesTable th:nth-child(5),
#tradesTable td:nth-child(5) {
  width: 90px;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}
#tradesTable th:nth-child(6),
#tradesTable td:nth-child(6) {
  width: 90px;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tradesTable th:nth-child(4),
#tradesTable th:nth-child(5),
#tradesTable th:nth-child(6) {
  text-align: left;
}

#tradesTable.trades-table--placeholder th:nth-child(4),
#tradesTable.trades-table--placeholder th:nth-child(5),
#tradesTable.trades-table--placeholder th:nth-child(6) {
  text-align: center;
}

#tradesTable tbody tr:not(.trades-placeholder-row) td:nth-child(4),
#tradesTable tbody tr:not(.trades-placeholder-row) td:nth-child(5),
#tradesTable tbody tr:not(.trades-placeholder-row) td:nth-child(6) {
  text-align: left;
}

#tradesTable tbody tr.trades-placeholder-row td:nth-child(1) {
  text-align: left;
}

#tradesTable tbody tr.trades-placeholder-row td:not(:nth-child(1)) {
  text-align: center;
}

#tradesTable:not(.trades-table--placeholder) th:nth-child(7),
#tradesTable:not(.trades-table--placeholder) th:nth-child(8),
#tradesTable:not(.trades-table--placeholder) th:nth-child(9) {
  text-align: left;
}

#tradesTable tbody tr:not(.trades-placeholder-row) td:nth-child(7),
#tradesTable tbody tr:not(.trades-placeholder-row) td:nth-child(8),
#tradesTable tbody tr:not(.trades-placeholder-row) td:nth-child(9) {
  text-align: left;
}

#tradesTable th:nth-child(7),
#tradesTable td:nth-child(7) {
  width: 138px;
  max-width: 138px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tradesTable td:nth-child(7) .trade-volume-bars {
  height: 11px;
  gap: 1.5px;
}

#tradesTable td:nth-child(7) .trade-volume-bar {
  width: 2.5px;
}

#tradesTable td:nth-child(7) .trade-volume-bar:nth-child(1) {
  height: 3px;
}

#tradesTable td:nth-child(7) .trade-volume-bar:nth-child(2) {
  height: 4.5px;
}

#tradesTable td:nth-child(7) .trade-volume-bar:nth-child(3) {
  height: 6px;
}

#tradesTable td:nth-child(7) .trade-volume-bar:nth-child(4) {
  height: 7.5px;
}

#tradesTable td:nth-child(7) .trade-volume-bar:nth-child(5) {
  height: 9px;
}
#tradesTable th:nth-child(8),
#tradesTable td:nth-child(8) {
  width: 118px;
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
#tradesTable th:nth-child(9),
#tradesTable td:nth-child(9) {
  width: 80px;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
#tradesTable td:nth-child(9).authority-fee-payer-double {
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
  vertical-align: middle;
}

#tradesTable td.authority-fee-payer-double .authority-main-value {
  font-size: 0.85em;
  line-height: 1.1;
  display: inline-block;
  max-width: 100%;
}

#tradesTable td:nth-child(9).authority-fee-payer-single {
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  vertical-align: middle;
}

#tradesTable .authority-tier-text.authority-tx-tier--low,
#tradesTable .authority-tier-text.authority-tx-tier--low a {
  color: #22c55e;
}

#tradesTable .authority-tier-text.authority-tx-tier--mid,
#tradesTable .authority-tier-text.authority-tx-tier--mid a {
  color: #facc15;
}

#tradesTable .authority-tier-text.authority-tx-tier--high,
#tradesTable .authority-tier-text.authority-tx-tier--high a {
  color: #fb923c;
}

#tradesTable .authority-tier-text.authority-tx-tier--very-high,
#tradesTable .authority-tier-text.authority-tx-tier--very-high a {
  color: #ef4444;
}

#tradesTable .authority-count-cell.authority-tx-tier--low,
#tradesTable .authority-count-cell.authority-tx-tier--low .authority-tx-count {
  color: #22c55e;
}

#tradesTable .authority-count-cell.authority-tx-tier--mid,
#tradesTable .authority-count-cell.authority-tx-tier--mid .authority-tx-count {
  color: #facc15;
}

#tradesTable .authority-count-cell.authority-tx-tier--high,
#tradesTable .authority-count-cell.authority-tx-tier--high .authority-tx-count {
  color: #fb923c;
}

#tradesTable .authority-count-cell.authority-tx-tier--very-high,
#tradesTable .authority-count-cell.authority-tx-tier--very-high .authority-tx-count {
  color: #ef4444;
}

#tradesTable .authority-tx-count {
  font-variant-numeric: tabular-nums;
  font-weight: inherit;
  font-size: 0.85em;
  line-height: 1.1;
}

#tradesTable .authority-tx-count-num {
  font-size: 1.12em;
  font-weight: 600;
}

#tradesTable .authority-tx-count-label {
  font-size: 0.88em;
  font-weight: inherit;
}

#tradesTable td:nth-child(10) .authority-count-cell {
  font-size: 0.85em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
}

#tradesTable th:nth-child(10),
#tradesTable td:nth-child(10) {
  width: 67px;
  max-width: 67px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

#tradesTable td:nth-child(10) .trades-cell-with-volume {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  vertical-align: middle;
  line-height: 1;
}

#tradesTable td:nth-child(10) .trades-cell-with-volume__bars,
#tradesTable td:nth-child(10) .trades-cell-with-volume__main {
  display: inline-flex;
  align-items: center;
  align-self: center;
}

#tradesTable td:nth-child(10) .trade-volume-bars {
  height: 1.1em;
  align-items: flex-end;
  align-self: center;
}

#tradesTable td:nth-child(10) .trade-volume-bar {
  width: 0.22em;
  border-radius: 0.05em;
}

#tradesTable td:nth-child(10) .trade-volume-bar:nth-child(1) { height: 0.35em; }
#tradesTable td:nth-child(10) .trade-volume-bar:nth-child(2) { height: 0.5em; }
#tradesTable td:nth-child(10) .trade-volume-bar:nth-child(3) { height: 0.65em; }
#tradesTable td:nth-child(10) .trade-volume-bar:nth-child(4) { height: 0.8em; }
#tradesTable td:nth-child(10) .trade-volume-bar:nth-child(5) { height: 0.95em; }

#tradesTable th:nth-child(11),
#tradesTable td:nth-child(11) { width: 24px; max-width: 24px; min-width: 24px; }
#tradesTable .fee-payer-cell {
  font-size: 5pt;
  color: #facc15;
  line-height: 1.1;
  display: block;
}

#tradesTable .fee-payer-cell a,
#tradesTable .fee-payer-cell .holder-label {
  color: #facc15;
  font-size: inherit;
}
#tradesTable .holder-label { color: #94a3b8; font-size: 8pt; margin-right: 2px; }
#tradesTable .amount-usdc { color: #86efac; }
#tradesTable .amount-sol { color: #c4b5fd; }
#tradesTable .amount-other-value { color: #fef08a; }
#tradesTable .amount-other-symbol { color: #facc15; }
#tradesTable .market-other-yellow { color: #facc15; }
#tradesTable .txid-icon { font-size: 1rem; text-decoration: none; }

.trades-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 2.85fr);
  gap: 0.65rem;
  margin: 0.35rem 0 1rem;
}

.trades-summary-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  min-height: 3.5rem;
  padding: 0.65rem 0.8rem 0.7rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(63, 63, 70, 0.5);
  background: linear-gradient(155deg, rgba(28, 28, 34, 0.92) 0%, rgba(14, 14, 17, 0.98) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 6px 18px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.trades-summary-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 10px 0 0 10px;
  opacity: 0.9;
}

.trades-summary-item--count::before {
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
}

.trades-summary-item--programs::before {
  background: linear-gradient(180deg, #a78bfa, #7c3aed);
}

.trades-summary-item--markets::before {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
}

.trades-summary-item--quotes::before {
  background: linear-gradient(180deg, #2dd4bf, #14b8a6);
}

.trades-summary-item--range::before {
  background: linear-gradient(180deg, #38bdf8, #2563eb);
}

.trades-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #71717a;
}

.trades-summary-label .field-icon {
  position: relative;
  left: auto;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 1;
  background: transparent;
  border-radius: 0;
}

.trades-summary-label .field-icon::after {
  background: #71717a;
}

.trades-summary-item--count .trades-summary-label .field-icon::after {
  background: #60a5fa;
}

.trades-summary-item--programs .trades-summary-label .field-icon::after {
  background: #a78bfa;
}

.trades-summary-item--markets .trades-summary-label .field-icon::after {
  background: #fbbf24;
}

.trades-summary-item--quotes .trades-summary-label .field-icon::after {
  background: #2dd4bf;
}

.trades-summary-item--range .trades-summary-label .field-icon::after {
  background: #38bdf8;
}

.trades-summary-value {
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fafafa;
  line-height: 1.15;
}

#tradesSummaryCount.trades-summary-value {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.trades-summary-count-total {
  font-size: 0.5em;
  font-weight: 600;
  color: #a1a1aa;
  letter-spacing: 0.01em;
}

.trades-summary-value--range {
  font-size: 0.76rem;
  font-weight: 600;
  color: #d4d4d8;
  line-height: 1.4;
  letter-spacing: -0.01em;
  word-break: break-word;
}

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

  .trades-summary-item--range {
    grid-column: 1 / -1;
  }
}

table {
  width: 99%;
  border-collapse: collapse;
  font-size: 9pt;
}

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

th {
  color: #a1a1aa;
  font-weight: 600;
  background: #18181b;
}

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

.advanced {
  width: 100%;
  margin-top: 0.75rem;
}

.advanced summary {
  cursor: pointer;
  color: #a1a1aa;
  font-size: 0.9rem;
  user-select: none;
}

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.local-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
}

.local-filters-subtitle {
  width: 100%;
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
}
.local-filters-subtitle + .meta {
  margin-top: 0.2rem;
}

#search,
#localMarket,
#localProgram,
#localSignature,
#localAuthority {
  min-width: 340px;
  max-width: 340px;
}

/* Search | Program contains | Type on one row, aligned. */
.local-filters-global-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex: 1 1 100%;
  min-width: 0;
}

.local-filters-pages-chart-row {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.local-filters-pages-chart-row .candles-pages-wrap,
.local-filters-pages-chart-row .candles-chart-quotes-wrap {
  flex: 0 0 auto;
}
.local-filters-pages-chart-row .field-pages {
  flex: 0 0 auto;
}
.local-filters-pages-chart-row .field-chart-quote {
  flex: 0 0 auto;
}
.local-filters-panel .field.field-lookback {
  min-width: 106px !important;
  max-width: 106px;
}
.local-filters-panel .field.field-wick-deviation {
  max-width: 90px;
  min-width: 90px !important;
}
.local-filters-panel .local-filters-pages-chart-row .field .field-switch-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}
.local-filters-panel .local-filters-pages-chart-row .field .field-control input,
.local-filters-panel .local-filters-pages-chart-row .field .field-control select {
  padding: 0.4rem 0.75rem;
  min-height: 2.25rem;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  background: #18181b;
  color: #fafafa;
  font-size: 0.875rem;
  box-sizing: border-box;
}
.local-filters-panel .local-filters-pages-chart-row .field .field-control select {
  min-width: 130px;
  max-width: 130px;
  cursor: pointer;
}

.local-filters-global-row .field:not(.field-switch) {
  min-width: 136px;
}

.local-filters-global-row .field-search {
  flex: 0 0 340px;
  min-width: 340px;
}

.local-filters-global-row .field-program {
  flex: 0 0 auto;
}

.local-filters-global-row .field-program input {
  width: 100%;
}

.local-filters-global-row .field-type {
  flex: 0 0 auto;
}

/* Same layout as .inputs panel: flex wrap, 3 rows, Search takes half column. */
.local-filters-global {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  width: 100%;
}

.local-filters-global .field-search {
  min-width: 280px;
}

.local-filters-global .field-search input {
  width: 100%;
  min-width: 0;
}

.local-filters-global .field:not(.field-search):not(.field-checkbox) {
  min-width: 146px;
}

/* Same input style as top inputs panel. */
.local-filters-panel .local-filters-global .field-control {
  position: relative;
  display: flex;
  align-items: center;
}

.local-filters-panel .local-filters-global .field-control .field-icon {
  display: block;
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
}

/* Input with suffix (e.g. % inside wick deviation field) */
.field-control-input-suffix {
  position: relative;
}
.field-control-input-suffix .input-suffix {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #71717a;
}
.field-control-input-suffix input {
  padding-right: 1.5rem;
  box-sizing: border-box;
}
#wickLookback {
  width: 86px;
  min-width: 86px;
  max-width: 86px;
  box-sizing: border-box;
  -moz-appearance: textfield;
}
#wickDeviationPct {
  width: 86px;
  min-width: 86px;
  max-width: 86px;
}
.field-control-input-suffix input[type="number"]::-webkit-inner-spin-button,
.field-control-input-suffix input[type="number"]::-webkit-outer-spin-button,
#wickLookback::-webkit-inner-spin-button,
#wickLookback::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.field-control-input-suffix input[type="number"] {
  -moz-appearance: textfield;
}

/* Label icons (in labels next to field text, and in switch headers) */
.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;
}

.local-filters-panel .local-filters-global .field input,
.local-filters-panel .local-filters-global .field select {
  padding-left: 34px;
  padding-right: 0.75rem;
  min-width: 134px;
}

.local-filters-panel .local-filters-global .field-search input {
  min-width: 0;
}

.local-filters-global-row .field-type select {
  min-width: 120px;
  max-width: 134px;
}
.local-filters-row-type-checkbox {
  align-items: flex-end;
  gap: 0;
}
.local-filters-row-type-checkbox .field-type {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 134px;
  margin-right: 0;
}
.local-filters-row-type-checkbox .field-type select {
  min-width: 0;
  max-width: 134px;
}
.local-filters-row-type-checkbox .field-program {
  margin-left: 20px;
}
.local-filters-row-type-checkbox .field-program + .field {
  margin-left: 13px;
}
.local-filters-row-type-checkbox .field-checkbox {
  width: auto;
  flex: 1 1 auto;
  flex-basis: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.local-filters-row-type-checkbox .field-checkbox label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}

/* Switch (trades-fetch-switch style, no lock) */
.local-filters-panel .field-switch {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.local-filters-panel .field-switch-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: default;
  font-size: 0.8rem;
  color: #a1a1aa;
}
.local-filters-panel .field-switch-header .field-switch-title {
  flex: 0 0 auto;
}
.local-filters-panel .field-switch-info.icon-info-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: help;
}
.local-filters-panel .field-switch-info .label-icon.field-icon.icon-info {
  width: 12px;
  height: 12px;
}
.local-filters-panel .trades-fetch-switch {
  display: inline-flex;
  cursor: pointer;
  align-items: stretch;
  width: fit-content;
  height: 35px;
}
.local-filters-panel .trades-fetch-switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.local-filters-panel .trades-fetch-switch-track {
  display: inline-flex;
  align-items: center;
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  padding: 4px;
  gap: 2px;
  min-width: 176px;
}
.local-filters-panel .trades-fetch-switch-option {
  padding: 0.35rem 0rem;
  font-size: 0.8rem;
  color: #a1a1aa;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.local-filters-panel .trades-fetch-switch-option:hover {
  color: #e4e4e7;
}
.local-filters-panel .trades-fetch-switch-option[aria-pressed="true"] {
  background: #3b82f6;
  color: #fff;
}

/* Same switch styling in inputs panel (Top 1k holder labels beside Max pages) */
.inputs.panel .field-switch {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.inputs.panel .field-switch-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: default;
  font-size: 0.8rem;
  color: #a1a1aa;
}
.inputs.panel .field-switch-header .field-switch-title {
  flex: 0 0 auto;
}
.inputs.panel .field-switch-info.icon-info-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: help;
}
.inputs.panel .field-switch-info .label-icon.field-icon.icon-info {
  width: 12px;
  height: 12px;
}
.inputs.panel .trades-fetch-switch {
  display: inline-flex;
  cursor: pointer;
  align-items: stretch;
  width: fit-content;
  height: 35px;
}
.inputs.panel .trades-fetch-switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.inputs.panel .trades-fetch-switch-track {
  display: inline-flex;
  align-items: center;
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  padding: 4px;
  gap: 2px;
  min-width: 204px;
}
.inputs.panel .trades-fetch-switch-option {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: #a1a1aa;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.inputs.panel .trades-fetch-switch-option:hover {
  color: #e4e4e7;
}
.inputs.panel .trades-fetch-switch-option[aria-pressed="true"] {
  background: #3b82f6;
  color: #fff;
}

.local-filters-row-type-checkbox .field-switch {
  min-width: 0;
  justify-content: flex-end;
  margin-right: 14px;
}
.local-filters-row-type-checkbox #localNoGapsTarget .field-switch,
.local-filters-row-type-checkbox #filterWicksWrap {
  max-width: 226px;
  min-width: 90px;
}
.local-filters-row-type-checkbox .field-switch-header {
  align-items: center;
  box-sizing: border-box;
}

/* Checkbox row: full width (when not in type+checkbox row). */
.local-filters-panel .local-filters-global .field-checkbox {
  width: 100%;
  flex-basis: 100%;
}
.local-filters-panel .local-filters-global .field-checkbox label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin: 0;
}
.local-filters-panel .local-filters-global .field-checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  margin: 0;
  flex-shrink: 0;
}

.local-filters-dynamic {
  width: 100%;
  max-height: 250px;
  overflow: auto;
}

.local-filters-dynamic table {
  font-size: 10pt;
  min-width: 100%;
}

.local-filters-dynamic th,
.local-filters-dynamic td {
  padding: 0.2rem 0.35rem;
  white-space: nowrap;
}
.local-filters-dynamic thead th {
  text-align: center;
  position: sticky;
  top: 0;
  background: #18181b;
  z-index: 1;
  box-shadow: 0 1px 0 0 #27272a;
}

.local-filters-dynamic th:first-child,
.local-filters-dynamic td:first-child {
  min-width: 66px;
  max-width: 66px;
}

.local-filters-dynamic th:nth-child(2),
.local-filters-dynamic td:nth-child(2) {
  min-width: 140px;
  max-width: 140px;
}

.local-filters-dynamic td .meta {
  margin: 0;
  font-size: 0.7rem;
}

.local-filters-dynamic .per-quote-exclude,
.local-filters-dynamic .per-quote-exclude-market {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: 1rem;
  margin: 0;
  cursor: pointer;
  border: 1px solid #52525b;
  border-radius: 4px;
  background: #18181b;
  color: #3b82f6;
  accent-color: #3b82f6;
  vertical-align: middle;
}
.local-filters-dynamic .per-quote-exclude:checked,
.local-filters-dynamic .per-quote-exclude-market:checked {
  background: #27272a;
}

.local-filters-dynamic .per-quote-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #a1a1aa;
  cursor: pointer;
}

.local-filters-dynamic tr.per-quote-row-excluded .per-quote-status-text {
  color: #f97373; /* red-ish for Excluded */
}

.local-filters-dynamic tr.per-quote-row-excluded {
  opacity: 0.55;
}

/* Per-quote market sub-rows (one per market within a quote). */
.local-filters-dynamic tr.per-quote-market-row {
  background: rgba(15, 15, 18, 0.6);
}
.local-filters-dynamic tr.per-quote-market-row td {
  padding: 0.25rem 0.35rem;
  font-size: 0.8rem;
  vertical-align: middle;
}
.local-filters-dynamic .per-quote-market-cell {
  padding-left: 0.5rem;
}
.local-filters-dynamic .per-quote-market-check-wrap {
  display: inline-block;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.local-filters-dynamic .per-quote-market-check-wrap input {
  margin: 0;
  vertical-align: middle;
}
.local-filters-dynamic .per-quote-market-indent {
  display: inline-block;
  width: 0.5rem;
  vertical-align: middle;
}
.local-filters-dynamic .per-quote-market-link {
  color: #60a5fa;
  text-decoration: none;
}
.local-filters-dynamic .per-quote-market-link:hover {
  text-decoration: underline;
}
.local-filters-dynamic .per-quote-market-details {
  color: #71717a;
  font-size: 0.75rem;
}
.local-filters-dynamic .per-quote-market-status-cell {
  width: 2rem;
  max-width: 2rem;
  min-width: 2rem;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
}
.local-filters-dynamic .per-quote-market-status-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
}

/* Score cell: high/low vs median %; no cell colour, only row is coloured. */
.local-filters-dynamic .per-quote-wick-cell {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  text-align: center;
  padding-right: 0.5rem;
}
.local-filters-dynamic .per-quote-market-details,
.local-filters-dynamic .per-quote-main-price-cell {
  text-align: center;
}
.local-filters-dynamic .per-quote-market-details:first-of-type {
  padding-left: 1rem;
}

/* Row highlight only: top 5 highest price vs median and top 5 lowest vs median -> red shades. */
.local-filters-dynamic tr.per-quote-market-row.row-high-1 { background: rgba(127, 29, 29, 0.35); }
.local-filters-dynamic tr.per-quote-market-row.row-high-2 { background: rgba(127, 29, 29, 0.28); }
.local-filters-dynamic tr.per-quote-market-row.row-high-3 { background: rgba(127, 29, 29, 0.2); }
.local-filters-dynamic tr.per-quote-market-row.row-high-4 { background: rgba(127, 29, 29, 0.12); }
.local-filters-dynamic tr.per-quote-market-row.row-high-5 { background: rgba(127, 29, 29, 0.08); }
.local-filters-dynamic tr.per-quote-market-row.row-high-6 { background: rgba(127, 29, 29, 0.06); }
.local-filters-dynamic tr.per-quote-market-row.row-high-7 { background: rgba(127, 29, 29, 0.05); }
.local-filters-dynamic tr.per-quote-market-row.row-high-8 { background: rgba(127, 29, 29, 0.04); }
.local-filters-dynamic tr.per-quote-market-row.row-high-9 { background: rgba(127, 29, 29, 0.03); }
.local-filters-dynamic tr.per-quote-market-row.row-high-10 { background: rgba(127, 29, 29, 0.02); }
.local-filters-dynamic tr.per-quote-market-row.row-low-1 { background: rgba(127, 29, 29, 0.35); }
.local-filters-dynamic tr.per-quote-market-row.row-low-2 { background: rgba(127, 29, 29, 0.28); }
.local-filters-dynamic tr.per-quote-market-row.row-low-3 { background: rgba(127, 29, 29, 0.2); }
.local-filters-dynamic tr.per-quote-market-row.row-low-4 { background: rgba(127, 29, 29, 0.12); }
.local-filters-dynamic tr.per-quote-market-row.row-low-5 { background: rgba(127, 29, 29, 0.08); }
.local-filters-dynamic tr.per-quote-market-row.row-low-6 { background: rgba(127, 29, 29, 0.06); }
.local-filters-dynamic tr.per-quote-market-row.row-low-7 { background: rgba(127, 29, 29, 0.05); }
.local-filters-dynamic tr.per-quote-market-row.row-low-8 { background: rgba(127, 29, 29, 0.04); }
.local-filters-dynamic tr.per-quote-market-row.row-low-9 { background: rgba(127, 29, 29, 0.03); }
.local-filters-dynamic tr.per-quote-market-row.row-low-10 { background: rgba(127, 29, 29, 0.02); }

.markets-by-wick-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}
.markets-by-wick-table th,
.markets-by-wick-table td {
  padding: 0.35rem 0.5rem;
  text-align: left;
  border: 1px solid #27272a;
}
.markets-by-wick-table th {
  background: #18181b;
  color: #a1a1aa;
  font-weight: 600;
}

/* Per-quote inputs: same style as .field input (dark theme, border, padding). */
.local-filters-dynamic input[type="number"] {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  background: #0f0f12;
  color: #e4e4e7;
  min-width: 6rem;
  width: 100%;
  box-sizing: border-box;
}

/* Per-quote cell: input wrap + currency label. */
.local-filters-dynamic .per-quote-cell {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.local-filters-dynamic .per-quote-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  background: #0f0f12;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 188px;
}

.local-filters-dynamic .per-quote-input-wrap input[type="number"] {
  border: none;
  border-radius: 6px 0 0 6px;
  min-width: 4rem;
  flex: 1 1 auto;
  padding-right: 0.25rem;
}

.local-filters-dynamic .per-quote-input-wrap.per-quote-wrap-disabled input[type="number"] {
  cursor: not-allowed;
}

.local-filters-dynamic .per-quote-input-wrap.per-quote-wrap-disabled {
  opacity: 0.85;
}

/* Hide native number spinners; we use custom buttons. */
.local-filters-dynamic .per-quote-input-wrap input[type="number"]::-webkit-inner-spin-button,
.local-filters-dynamic .per-quote-input-wrap input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.local-filters-dynamic .per-quote-input-wrap input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.local-filters-dynamic .per-quote-spinners {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-left: 1px solid #3f3f46;
  border-radius: 0 6px 6px 0;
}

.local-filters-dynamic .per-quote-spin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  min-height: 14px;
  padding: 0;
  border: none;
  background: #27272a;
  color: #e4e4e7;
  cursor: pointer;
  font-size: 0.6rem;
  line-height: 1;
  border-radius: 0;
}

.local-filters-dynamic .per-quote-spin-up {
  color: #86efac; /* light green */
}

.local-filters-dynamic .per-quote-spin-down {
  color: #fca5a5; /* light red */
}

.local-filters-dynamic .per-quote-spin:first-child {
  border-radius: 0 6px 0 0;
}

.local-filters-dynamic .per-quote-spin:last-child {
  border-radius: 0 0 6px 0;
}

.local-filters-dynamic .per-quote-spin:hover:not(:disabled) {
  background: #3f3f46;
}

.local-filters-dynamic .per-quote-spin:disabled {
  color: #3f3f46; /* dark grey */
  cursor: not-allowed;
  opacity: 0.7;
}

.local-filters-dynamic .per-quote-spin::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid currentColor;
}

.local-filters-dynamic .per-quote-spin-down::before {
  border-bottom: none;
  border-top: 5px solid currentColor;
}

.local-filters-dynamic .per-quote-currency {
  font-size: 11pt;
  color: #a1a1aa;
  flex-shrink: 0;
  align-self: center;
  padding-right: 0.35rem;
  cursor: default;
}

.local-filters-dynamic .per-quote-input-wrap.per-quote-wrap-disabled .per-quote-currency {
  cursor: not-allowed;
  color: #52525b; /* match dimmed input text */
}

.local-filters-dynamic .per-quote-row-hidden {
  display: none;
}

.local-filters-dynamic .per-quote-input-wrap input[type="number"]::placeholder {
  color: #e4e4e7;
  opacity: 1;
}

/* If a field has BOTH arrows disabled, keep placeholder dim. */
.local-filters-dynamic .per-quote-input-wrap.per-quote-wrap-disabled input[type="number"]::placeholder {
  color: #52525b;
}

.local-filters-dynamic tbody tr.per-quote-placeholder-row td {
  height: 31px;
  max-height: 31px;
  box-sizing: border-box;
  vertical-align: middle;
}

.local-filters-dynamic .per-quote-table--placeholder .per-quote-exclude,
.local-filters-dynamic .per-quote-table--placeholder .per-quote-exclude-market {
  pointer-events: none;
}

.local-filters-dynamic .per-quote-show-all-row td {
  padding: 0.4rem 0.35rem;
  vertical-align: middle;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.local-filters-dynamic .per-quote-show-all-btn {
  font-size: 0.8rem;
  color: #a1a1aa;
  background: transparent;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

.local-filters-dynamic .per-quote-show-all-btn:hover {
  color: #e4e4e7;
  background: #27272a;
  border-color: #52525b;
}

.field-checkbox label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

@media (max-width: 640px) {
  .field input,
  .field select {
    min-width: 100%;
  }
}

/* token-stats-section */
.section-card--token .section-header {
  width: 100%;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.5rem;
}

.token-section-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 48px;
  max-height: 48px;
  margin-bottom: 0.85rem;
  margin-left: 5px;
}

.token-section-intro .token-header {
  margin-bottom: 0;
}

.token-section-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  margin-left: auto;
  flex: 0 1 auto;
  max-width: 100%;
}

.token-section-toolbar .field--mint {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.token-mint-control-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.token-mint-control-row input {
  flex: 0 0 420px;
  width: 420px;
  max-width: 100%;
  min-width: 0;
}

.token-mint-control-row button {
  flex-shrink: 0;
  white-space: nowrap;
}

.token-mint-control-row .loading {
  flex-shrink: 0;
}

.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: auto;
}

.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;
}

@keyframes section-loading-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(59, 130, 246, 0.45),
      0 0 10px rgba(59, 130, 246, 0.35),
      0 0 0 0 rgba(59, 130, 246, 0.55);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(59, 130, 246, 0.55),
      0 0 14px rgba(59, 130, 246, 0.45),
      0 0 0 6px rgba(59, 130, 246, 0);
  }
}

@keyframes section-error-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(248, 113, 113, 0.45),
      0 0 10px rgba(239, 68, 68, 0.35),
      0 0 0 0 rgba(248, 113, 113, 0.55);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(248, 113, 113, 0.55),
      0 0 14px rgba(239, 68, 68, 0.45),
      0 0 0 6px rgba(248, 113, 113, 0);
  }
}

.section-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #93c5fd;
  line-height: 1.5;
  margin-left: 13px;
  padding: 0.35rem 0.65rem;
  border: 1px solid #60a5fa;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 0 10px rgba(59, 130, 246, 0.25);
  animation: section-loading-pulse 1.2s ease-in-out infinite;
}

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

.section-error {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fca5a5;
  line-height: 1.5;
  border: 1px solid #f87171;
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  margin-left: 13px;
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35), 0 0 10px rgba(239, 68, 68, 0.25);
  animation: section-error-pulse 1.2s ease-in-out infinite;
}

.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;
}

.panel {
  background: var(--vybe-surface);
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
}

.section-card.panel {
  background: unset;
  border: unset;
  border-radius: 16px;
  box-shadow: unset;
}

.section-card.panel.section-card--remote {
  border: 1px solid rgba(59, 130, 246, 0.32);
  background:
    linear-gradient(155deg, rgba(22, 28, 40, 0.25) 0%, rgba(10, 12, 20, 0.25) 50%, rgba(14, 22, 38, 0.25) 100%),
    linear-gradient(155deg, rgba(24, 26, 34, 0.98) 0%, rgba(12, 13, 18, 0.99) 50%, rgba(15, 18, 28, 0.98) 100%);
  box-shadow: 0 1px 0 rgba(96, 165, 250, 0.02) inset, 0 20px 48px rgba(0, 0, 0, 0.4);
}

.section-card.panel.section-card--token {
  border: 1px solid rgba(139, 92, 246, 0.32);
  background:
    linear-gradient(155deg, rgba(28, 24, 38, 0.25) 0%, rgba(11, 10, 18, 0.25) 50%, rgba(20, 16, 34, 0.25) 100%),
    linear-gradient(155deg, rgba(24, 26, 34, 0.98) 0%, rgba(12, 13, 18, 0.99) 50%, rgba(15, 18, 28, 0.98) 100%);
  box-shadow: 0 1px 0 rgba(167, 139, 250, 0.02) inset, 0 20px 48px rgba(0, 0, 0, 0.4);
}

.section-card.panel.section-card--chart {
  border: 1px solid rgba(34, 197, 94, 0.32);
  background:
    linear-gradient(155deg, rgba(18, 30, 24, 0.25) 0%, rgba(10, 14, 12, 0.25) 50%, rgba(14, 28, 26, 0.25) 100%),
    linear-gradient(155deg, rgba(24, 26, 34, 0.98) 0%, rgba(12, 13, 18, 0.99) 50%, rgba(15, 18, 28, 0.98) 100%);
  box-shadow: 0 1px 0 rgba(34, 197, 94, 0.02) inset, 0 20px 48px rgba(0, 0, 0, 0.4);
}

.section-card.panel.section-card--summary {
  border: 1px solid rgba(96, 165, 250, 0.32);
  background:
    linear-gradient(155deg, rgba(22, 28, 42, 0.25) 0%, rgba(10, 12, 18, 0.25) 50%, rgba(16, 22, 40, 0.25) 100%),
    linear-gradient(155deg, rgba(24, 26, 34, 0.98) 0%, rgba(12, 13, 18, 0.99) 50%, rgba(15, 18, 28, 0.98) 100%);
  box-shadow: 0 1px 0 rgba(96, 165, 250, 0.02) inset, 0 20px 48px rgba(0, 0, 0, 0.4);
}

.section-card.panel.section-card--rebuild {
  border: 1px solid rgba(245, 158, 11, 0.32);
  background:
    linear-gradient(155deg, rgba(34, 26, 18, 0.25) 0%, rgba(14, 11, 10, 0.25) 50%, rgba(28, 18, 14, 0.25) 100%),
    linear-gradient(155deg, rgba(24, 26, 34, 0.98) 0%, rgba(12, 13, 18, 0.99) 50%, rgba(15, 18, 28, 0.98) 100%);
  box-shadow: 0 1px 0 rgba(245, 158, 11, 0.02) inset, 0 20px 48px rgba(0, 0, 0, 0.4);
}

.section-card.panel.section-card--trades {
  border: 1px solid rgba(96, 165, 250, 0.32);
  background:
    linear-gradient(155deg, rgba(22, 28, 42, 0.25) 0%, rgba(10, 12, 18, 0.25) 50%, rgba(16, 22, 40, 0.25) 100%),
    linear-gradient(155deg, rgba(24, 26, 34, 0.98) 0%, rgba(12, 13, 18, 0.99) 50%, rgba(15, 18, 28, 0.98) 100%);
  box-shadow: 0 1px 0 rgba(96, 165, 250, 0.02) inset, 0 20px 48px rgba(0, 0, 0, 0.4);
}

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

.section-header h2.token-stats-group-title {
  margin-bottom: 0;
}

.token-stats-supply-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
  align-self: stretch;
}

.token-stats-supply-stack > .token-stats-group--supply {
  flex: 0 0 auto;
}

.token-stats-supply-stack > .token-stat-row--lastUpdated {
  flex: 0 0 auto;
}

.token-section-content .token-stat-row--lastUpdated {
  border-color: rgba(129, 140, 248, 0.32);
  background: linear-gradient(165deg, rgba(99, 102, 241, 0.1), rgba(0, 0, 0, 0.28));
}

.token-section-content .token-stat-row--lastUpdated .token-stat-row-icon {
  color: #a5b4fc;
  border-color: rgba(129, 140, 248, 0.38);
  background: rgba(99, 102, 241, 0.14);
}

.token-section-content .token-stat-row--lastUpdated .token-stat-row-value {
  font-weight: 500;
  color: #e4e4e7;
}

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

.token-section-content .token-header {
  margin-bottom: 0;
}

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

.token-header .symbol {
  font-weight: 700;
  font-size: 1.2rem;
  display: block;
  letter-spacing: -0.02em;
  color: #fafafa;
}

.token-header .name {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.12rem;
  letter-spacing: 0.02em;
}

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

.token-section-content .token-stats-groups {
  gap: 0.65rem;
}

.token-section-content .token-stats-row {
  gap: 0.65rem;
}

.token-section-content .token-stats-groups > .token-stats-group,
.token-section-content .token-stats-row .token-stats-group {
  padding: 0.65rem 0.72rem 0.72rem 0.92rem;
  border-radius: 12px;
  background: linear-gradient(165deg, #141418 0%, #0c0c0f 55%, #0a0a0c 100%);
  border: 1px solid #2a2a32;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 12px 40px rgba(0, 0, 0, 0.35);
}

.token-section-content .token-stats-groups .token-stats-group::before {
  width: 3px;
  border-radius: 12px 0 0 12px;
}

.token-section-content .token-stats-group-title {
  flex-shrink: 0;
  margin: 0 0 0.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #d4d4d8;
}

.token-section-content .token-stat-rows {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.token-section-content .token-stat-row {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  min-width: 0;
  padding: 0.42rem 0.48rem 0.42rem 0.42rem;
  border-radius: 8px;
  border: 1px solid #2e2e38;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.28));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.token-section-content .token-stat-row-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.38);
}

.token-section-content .token-stat-row-icon-svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.token-section-content .token-stat-row-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.token-section-content .token-stat-row-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #71717a;
  line-height: 1.2;
}

.token-section-content .token-stat-row-value {
  font-size: 0.8125rem;
  font-weight: 450;
  line-height: 1.35;
  color: #d4d4d8;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.token-section-content .token-stat-usd-value {
  color: #4ade80;
  font-weight: 450;
}

.token-section-content .token-stat-usd-value .token-stat-row-price-num,
.token-section-content .token-stat-usd-value .token-stat-price-neg,
.token-section-content .token-stat-usd-value .token-stat-usd-dollar,
.token-section-content .token-stat-usd-value .token-stat-price-suffix,
.token-section-content .token-stat-usd-value .token-price-zero-run {
  color: inherit;
  font-weight: inherit;
}

.token-section-content .token-stat-row-price-num {
  font-weight: 450;
  color: #d4d4d8;
}

.token-section-content .token-stat-row-price-num--compact {
  letter-spacing: 0.01em;
}

.token-section-content .token-price-zero-run {
  font-size: 0.62em;
  font-weight: 500;
  line-height: 0;
  vertical-align: super;
  margin-left: 0.03em;
  color: #a1a1aa;
}

.token-section-content .token-stat-price-suffix {
  margin-left: 0.28em;
  font-size: 0.72em;
  font-weight: 450;
  color: #94a3b8;
}

.token-section-content .token-stat-price-neg {
  margin-right: 0.06em;
  font-weight: 450;
  color: #d4d4d8;
}

.token-section-content .token-stat-row-value a {
  color: #38bdf8;
  font-weight: 450;
  text-decoration: none;
}

.token-section-content .token-stat-row-value a:hover {
  color: #7dd3fc;
}

.token-section-content .token-stat-row--mint {
  border-color: rgba(56, 189, 248, 0.28);
  background: linear-gradient(165deg, rgba(14, 165, 233, 0.09), rgba(0, 0, 0, 0.28));
}

.token-section-content .token-stat-row--mint .token-stat-row-icon {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.12);
}

.token-section-content .token-stat-row--decimals {
  border-color: rgba(167, 139, 250, 0.28);
  background: linear-gradient(165deg, rgba(139, 92, 246, 0.08), rgba(0, 0, 0, 0.26));
}

.token-section-content .token-stat-row--decimals .token-stat-row-icon {
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.38);
  background: rgba(139, 92, 246, 0.12);
}

.token-section-content .token-stat-row--category {
  border-color: rgba(249, 115, 22, 0.25);
  background: linear-gradient(165deg, rgba(249, 115, 22, 0.07), rgba(0, 0, 0, 0.26));
}

.token-section-content .token-stat-row--category .token-stat-row-icon {
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.35);
  background: rgba(249, 115, 22, 0.1);
}

.token-section-content .token-stat-price-pct {
  margin-left: 0.25em;
  font-weight: 600;
  white-space: nowrap;
}

.token-section-content .token-stat-price-pct-meta {
  margin-left: 0.35em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.22em;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.03em;
  vertical-align: baseline;
}

.token-section-content .token-stat-price-pct-arrow {
  font-size: 1.05em;
  line-height: 1;
}

.token-section-content .token-stat-price-pct-period {
  color: #94a3b8;
  font-weight: 550;
}

.token-section-content .token-stat-row--verified {
  border-color: rgba(52, 211, 153, 0.26);
  background: linear-gradient(165deg, rgba(16, 185, 129, 0.08), rgba(0, 0, 0, 0.26));
}

.token-section-content .token-stat-row--verified .token-stat-row-icon {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.38);
  background: rgba(16, 185, 129, 0.12);
}

.token-section-content .token-stat-row--priceUsd {
  border-color: rgba(56, 189, 248, 0.28);
  background: linear-gradient(165deg, rgba(14, 165, 233, 0.08), rgba(0, 0, 0, 0.26));
}

.token-section-content .token-stat-row--priceUsd .token-stat-row-icon {
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.35);
  background: rgba(14, 165, 233, 0.12);
}

.token-section-content .token-stat-row--marketCap {
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(165deg, rgba(59, 130, 246, 0.08), rgba(0, 0, 0, 0.26));
}

.token-section-content .token-stat-row--marketCap .token-stat-row-icon {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.38);
  background: rgba(37, 99, 235, 0.12);
}

.token-section-content .token-stat-row--price1d {
  border-color: rgba(148, 163, 184, 0.22);
  background: linear-gradient(165deg, rgba(148, 163, 184, 0.06), rgba(0, 0, 0, 0.26));
}

.token-section-content .token-stat-row--price1d .token-stat-row-icon {
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(100, 116, 139, 0.12);
}

.token-section-content .token-stat-row--price7d {
  border-color: rgba(129, 140, 248, 0.28);
  background: linear-gradient(165deg, rgba(99, 102, 241, 0.08), rgba(0, 0, 0, 0.26));
}

.token-section-content .token-stat-row--price7d .token-stat-row-icon {
  color: #a5b4fc;
  border-color: rgba(129, 140, 248, 0.38);
  background: rgba(99, 102, 241, 0.12);
}

.token-section-content .token-stat-row--supply {
  border-color: rgba(52, 211, 153, 0.28);
  background: linear-gradient(165deg, rgba(16, 185, 129, 0.08), rgba(0, 0, 0, 0.26));
}

.token-section-content .token-stat-row--supply .token-stat-row-icon {
  color: #4ade80;
  border-color: rgba(52, 211, 153, 0.38);
  background: rgba(16, 185, 129, 0.12);
}

.token-section-content .token-stat-row--tokenVol24h {
  border-color: rgba(45, 212, 191, 0.28);
  background: linear-gradient(165deg, rgba(20, 184, 166, 0.08), rgba(0, 0, 0, 0.26));
}

.token-section-content .token-stat-row--tokenVol24h .token-stat-row-icon {
  color: #2dd4bf;
  border-color: rgba(45, 212, 191, 0.38);
  background: rgba(13, 148, 136, 0.12);
}

.token-section-content .token-stat-row--usdVol24h {
  border-color: rgba(74, 222, 128, 0.28);
  background: linear-gradient(165deg, rgba(34, 197, 94, 0.08), rgba(0, 0, 0, 0.26));
}

.token-section-content .token-stat-row--usdVol24h .token-stat-row-icon {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.38);
  background: rgba(22, 163, 74, 0.12);
}

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

.token-stats-row.token-stats-row--split-overview {
  grid-template-columns: minmax(0, 26%) minmax(0, 74%);
  align-items: stretch;
}

.token-stats-row--split-overview > .token-stats-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

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

.token-stats-pair-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 56%);
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
  align-items: start;
  align-self: stretch;
}

.token-stats-pair-grid > .token-stats-group,
.token-stats-pair-grid > .token-stats-supply-stack {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.token-stats-pair-grid > .token-stats-supply-stack {
  align-self: stretch;
}

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

.token-stats-groups .token-stats-group {
  position: relative;
  overflow: hidden;
}

.token-stats-group-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #d4d4d8;
  text-transform: none;
  letter-spacing: 0.01em;
  margin: 0;
}

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

.token-stats-group--overview .token-stats-group-title .section-icon {
  color: #f59e0b;
}

.token-stats-group--price .token-stats-group-title .section-icon {
  color: #38bdf8;
}

.token-stats-group--supply .token-stats-group-title .section-icon {
  color: #34d399;
}

.token-stats-groups .token-stats-group::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  opacity: 0.92;
  pointer-events: none;
  border-radius: 12px 0 0 12px;
}

.token-stats-group--overview::before {
  background: linear-gradient(180deg, #fbbf24, #d97706);
}

.token-stats-group--price::before {
  background: linear-gradient(180deg, #38bdf8, #2563eb);
}

.token-stats-group--supply::before {
  background: linear-gradient(180deg, #34d399, #0d9488);
}

.token-section a {
  color: #38bdf8;
  text-decoration: none;
}

.token-section a:hover {
  color: #7dd3fc;
  text-decoration: none;
}

.usd-tone {
  font-variant-numeric: tabular-nums;
}

.usd-tone--positive {
  color: #86efac;
}

.usd-tone--neutral {
  color: rgba(255, 255, 255, 0.5);
}

.usd-tone--negative {
  color: #fca5a5;
}

.section-header--token .section-header__title,
.section-header h2.section-header__title {
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  font-weight: 650;
  color: #f4f4f5;
}

.section-header h2.token-stats-group-title {
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  font-weight: 650;
  color: #f4f4f5;
}
