:root {
  color-scheme: light;
  --farm-bg-top: #e8f5d0;
  --farm-bg-mid: #d4e8a8;
  --farm-bg-bottom: #c5e085;
  --cream: var(--farm-bg-top);
  --card: #fff;
  --inset: #f4fce8;
  --ink: #1a1a2e;
  --muted: #3c3c3b;
  --faint: #6b7280;
  --barn: #6e369b;
  --barn-d: #5a2d80;
  --gold: #ffd700;
  --green: #2c9d44;
  --green-d: #2c5530;
  --line: rgba(110, 54, 155, 0.18);
  --line-soft: rgba(110, 54, 155, 0.1);
  --swap-w: 480px;
  --explorer-w: 1180px;
  --page-bottom-pad: 24px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  background: linear-gradient(to bottom right, var(--farm-bg-top), var(--farm-bg-mid), var(--farm-bg-bottom));
  color: rgba(0, 0, 0, 0.72);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 65% 40% at 12% 0%, rgba(110, 54, 155, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 100%, rgba(44, 157, 68, 0.12), transparent 50%),
    linear-gradient(to bottom right, var(--farm-bg-top), var(--farm-bg-mid), var(--farm-bg-bottom));
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
tr[tabindex]:focus-visible,
.pool-card:focus-visible,
.token-link:focus-visible {
  outline: 3px solid rgba(110, 54, 155, 0.34);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: 10px;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--swap-w);
  margin: 0 auto;
  width: 100%;
}

.header-inner-wide {
  max-width: var(--explorer-w);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--inset);
  border: 1px solid var(--line-soft);
  color: var(--barn);
  font-size: 1.35rem;
  box-shadow: 0 2px 10px rgba(110, 54, 155, 0.12);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-family: "Permanent Marker", cursive;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.1;
}

.brand-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--barn);
}

.header-tools {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 20px 16px calc(var(--page-bottom-pad) + env(safe-area-inset-bottom));
}

.main-wide {
  max-width: var(--explorer-w);
  margin: 0 auto;
}

.main > * {
  width: 100%;
  max-width: var(--swap-w);
}

.main-wide > .widget-shell,
.main-wide > .explorer-shell,
.main-wide > .stats-card,
.main-wide > .intent-strip,
.main-wide > .controls-card,
.main-wide > .breadcrumb {
  max-width: 100%;
}

.kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--barn);
}

.screen-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
}

.screen-title span {
  color: var(--barn);
}

.sub {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.card-flat {
  border-color: var(--line-soft);
  box-shadow: 0 4px 16px rgba(110, 54, 155, 0.06);
}

.card-inset {
  background: var(--inset);
  border-color: var(--line-soft);
}

.page-intro {
  text-align: left;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.field,
.search-box,
.sort-box {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.field-compact {
  min-width: 140px;
}

input,
select {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 12px) 19px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.input-with-unit {
  position: relative;
}

.input-with-unit input {
  padding-right: 52px;
}

.input-with-unit span {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--faint);
  font-size: 12px;
  pointer-events: none;
  text-transform: uppercase;
}

.btn,
.icon-button {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
}

.btn-primary {
  background: var(--barn);
  color: #fff;
  box-shadow: 0 8px 20px rgba(110, 54, 155, 0.18);
}

.btn-primary:hover {
  background: var(--barn-d);
}

.btn-primary:active {
  transform: scale(0.985);
}

.btn-secondary {
  background: #fff;
  border-color: var(--line-soft);
  color: var(--muted);
}

.btn-secondary[aria-pressed="true"] {
  border-color: rgba(110, 54, 155, 0.35);
  background: rgba(110, 54, 155, 0.1);
  color: var(--barn-d);
}

.btn:disabled,
.icon-button:disabled {
  opacity: 0.48;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  padding: 0;
  place-items: center;
  background: #fff;
  border-color: var(--line-soft);
  color: var(--ink);
  font-size: 1.1rem;
}

.intent-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-soft);
  box-shadow: 0 4px 16px rgba(110, 54, 155, 0.06);
}

.intent-strip--neutral {
  background: var(--inset);
}

.intent-strip-kicker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--barn);
  margin-bottom: 2px;
}

.intent-strip-msg {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.status-pill.live .intent-strip-msg {
  color: var(--green-d);
}

.status-pill.error .intent-strip-msg {
  color: #c0392b;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--faint);
  flex-shrink: 0;
}

.status-pill.live .pulse-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(44, 157, 68, 0.18);
  animation: pulse 1.8s ease infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.75;
  }
}

.progress-wrap {
  flex: 1;
  min-width: 120px;
  max-width: 420px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.progress-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line-soft);
}

#progressBar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--barn), #9b6bc4);
  transition: width 240ms ease;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a,
.breadcrumb button {
  border: 0;
  background: transparent;
  color: var(--barn);
  font: inherit;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}

.breadcrumb .sep {
  color: var(--faint);
}

.stats-card {
  margin: 0;
}

.stats-title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stats-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

.stat,
.stat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--inset);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px 8px;
}

.stat-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--barn);
  line-height: 1.1;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.stat-foot {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--faint);
}

.widget-shell,
.explorer-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line-soft);
  box-shadow:
    0 1px 2px rgba(110, 54, 155, 0.05),
    0 12px 40px rgba(110, 54, 155, 0.1);
}

.pool-view-shell {
  padding: 18px;
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 10px;
}

.panel-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.panel-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  min-width: 200px;
}

.search-box i {
  position: absolute;
  left: 12px;
  bottom: 14px;
  color: var(--faint);
  pointer-events: none;
}

.search-box input {
  padding-left: 36px;
}

.table-shell {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--line-soft);
  background: var(--inset);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
  padding: 12px 14px;
  white-space: nowrap;
}

tbody td {
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 14px;
  vertical-align: middle;
}

tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

tbody tr:hover {
  background: rgba(110, 54, 155, 0.06);
}

.number-cell {
  white-space: nowrap;
}

.sub-number {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 11px;
}

.pool-identity {
  display: grid;
  gap: 4px;
  min-width: 160px;
}

.pool-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--ink);
  font-weight: 600;
}

.pool-meta {
  color: var(--faint);
  font-size: 11px;
}

.pool-address {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  word-break: break-all;
}

.detail-stats .pool-account-row {
  grid-column: 1 / -1;
}

.detail-stats .pool-account-row .pool-address {
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
}

.token-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.token-link:hover {
  color: var(--barn);
}

.token-icon,
.asset-badge {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--inset);
  border: 1px solid var(--line-soft);
  color: var(--barn-d);
  font-size: 0.62rem;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}

.token-icon.large {
  width: 56px;
  height: 56px;
  font-size: 0.9rem;
}

.token-icon img,
.asset-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.token-icon.xrp,
.asset-badge.xrp {
  background: #fff;
  border-color: rgba(44, 157, 68, 0.25);
  color: var(--green-d);
}

.token-icon.xrp img,
.asset-badge.xrp img {
  object-fit: contain;
  padding: 3px;
}

.pool-type-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pool-type-tag.subpool {
  background: rgba(110, 54, 155, 0.1);
  color: var(--barn-d);
}

.chart-legend .chart-legend-icon,
.chart-legend .token-icon {
  width: 14px;
  height: 14px;
  margin-right: 2px;
  vertical-align: -2px;
}

.chart-legend .token-icon {
  display: inline-grid;
}

.pool-cards {
  display: none;
  gap: 12px;
  padding: 12px 14px 16px;
}

.pool-card {
  display: grid;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--card);
  padding: 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(110, 54, 155, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pool-card:hover {
  border-color: rgba(110, 54, 155, 0.22);
  box-shadow: 0 8px 20px rgba(110, 54, 155, 0.1);
  transform: translateY(-1px);
}

.pool-card:focus-visible {
  outline: 2px solid var(--barn);
  outline-offset: 2px;
}

.pool-card-head {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.pool-card-pair {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-weight: 700;
}

.pool-card-pair .token-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  min-width: 0;
  white-space: nowrap;
}

.pool-card-pair .token-link span {
  font-size: 0.92rem;
  font-weight: 700;
}

.pool-card-pair .token-icon {
  width: 24px;
  height: 24px;
  font-size: 0.55rem;
}

.pool-card-sep {
  flex-shrink: 0;
  color: var(--faint);
  font-weight: 500;
  font-size: 0.9rem;
}

.pool-card-account {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  min-width: 0;
  color: var(--faint);
  font-size: 0.72rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pool-card-account code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--inset);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 2px 6px;
}

.pool-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pool-card-stat {
  display: grid;
  gap: 3px;
  padding: 10px 10px 9px;
  border-radius: 10px;
  background: var(--inset);
  border: 1px solid var(--line-soft);
  min-width: 0;
}

.pool-card-stat span {
  display: block;
  color: var(--faint);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pool-card-stat strong {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 18px 18px;
}

.pagination button {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.pagination button.active,
.pagination button:hover:not(:disabled) {
  border-color: rgba(110, 54, 155, 0.35);
  background: rgba(110, 54, 155, 0.1);
  color: var(--barn-d);
}

.empty-state {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 36px 20px;
  color: var(--muted);
  text-align: center;
}

.placeholder-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--inset);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--barn);
}

.empty-state h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.token-card,
.token-hero {
  margin-bottom: 16px;
  padding: 0;
  overflow: hidden;
  border-color: var(--line-soft);
  box-shadow: 0 10px 28px rgba(110, 54, 155, 0.08);
}

.token-card-shell {
  display: grid;
}

.token-card-hero {
  padding: 18px 20px 16px;
  background:
    radial-gradient(circle at top right, rgba(110, 54, 155, 0.1), transparent 48%),
    linear-gradient(180deg, var(--card), var(--inset));
  border-bottom: 1px solid var(--line-soft);
}

.token-card-identity {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px 16px;
  align-items: start;
}

.token-card-icon-wrap .token-icon,
.token-card-icon-wrap .xrplmeta-icon--hero {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(26, 26, 46, 0.12);
}

.token-card-identity-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.token-card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
}

.token-card-title-row h2 {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.token-card-pools-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-soft);
  width: fit-content;
}

.token-card-pools-pill i {
  color: var(--barn);
  font-size: 0.9rem;
}

.token-card-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.token-card-tags {
  margin-top: 0;
}

.token-card-quote {
  margin: 4px 0 0;
  padding: 10px 12px;
  border-left: 3px solid rgba(110, 54, 155, 0.22);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  font-style: italic;
  background: rgba(255, 255, 255, 0.55);
}

.token-card-hero .report-identity-grid {
  margin-top: 14px;
}

.token-card-section {
  padding: 16px 20px;
}

.token-card-section--dex {
  background: rgba(44, 157, 68, 0.04);
  border-bottom: 1px solid var(--line-soft);
}

.token-card-section--amm {
  background: var(--card);
}

.token-card-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.token-card-section-label > .ti {
  color: var(--barn);
  font-size: 0.95rem;
  text-transform: none;
}

.token-dex-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.token-stat-card {
  display: grid;
  gap: 4px;
  padding: 12px 12px 10px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: var(--card);
  box-shadow: 0 2px 8px rgba(44, 157, 68, 0.06);
  min-height: 88px;
}

.token-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(44, 157, 68, 0.1);
  color: var(--green-d);
}

.token-stat-icon .ti {
  font-size: 0.95rem;
}

.token-stat-card strong {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.2;
}

.token-stat-card span:last-child {
  font-size: 0.74rem;
  color: var(--faint);
  line-height: 1.3;
}

.token-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.token-social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--card);
  color: var(--barn-d);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.token-social-link i {
  font-size: 1rem;
}

.token-social-link:hover {
  background: rgba(110, 54, 155, 0.08);
  border-color: rgba(110, 54, 155, 0.22);
  transform: translateY(-1px);
}

.token-amm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.token-amm-stat {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: var(--inset);
}

.token-amm-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(110, 54, 155, 0.1);
  color: var(--barn);
}

.token-amm-stat-val {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.token-amm-stat-foot {
  font-size: 0.76rem;
  color: var(--faint);
  line-height: 1.35;
}

.token-amm-stat-foot .quality-tag {
  margin-top: 2px;
}

.token-amm-stat-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}

@media (max-width: 760px) {
  .token-card-identity {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .token-dex-grid,
  .token-amm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.quality-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.2;
  border: 1px solid transparent;
}

.quality-tag strong {
  font-size: 12px;
  font-weight: 700;
}

.quality-tag .quality-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.quality-tag.good {
  color: #1f6b3f;
  background: #e8f8ee;
  border-color: #b9e3c8;
}

.quality-tag.warn {
  color: #8a6118;
  background: #fff5df;
  border-color: #f0d59b;
}

.quality-tag.bad {
  color: #9f2d2d;
  background: #fdeeee;
  border-color: #f2bcbc;
}

.quality-tag.neutral {
  color: var(--muted);
  background: var(--inset);
  border-color: var(--line-soft);
}

.token-card h2,
.token-hero h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
}

.token-card p,
.token-hero p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.pool-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.pool-detail-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.pool-detail-header .issuer {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.45;
  max-width: min(100%, 520px);
}

.pool-detail-header .price-block {
  margin-left: auto;
  text-align: right;
}

.pool-detail-header .price-block strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.pool-detail-header .price-block span {
  color: var(--faint);
  font-size: 12px;
}

.stats-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px;
}

.stats-grid-pool {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

@media (min-width: 1100px) {
  .stats-grid-pool {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.stats-grid-pool .stat-val {
  font-size: 18px;
}

.stats-grid-pool .stat-label {
  font-size: 10px;
}

.stat-tile span,
.stat-tile strong {
  display: block;
}

.stat-tile span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-tile strong {
  margin-top: 4px;
  font-size: 16px;
  color: var(--ink);
}

.chart-card {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fcf2, #ffffff);
  padding: 14px;
}

.chart-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.pool-chart-untracked {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.pool-chart-untracked strong {
  color: var(--ink);
}

.chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.chart-heading-split {
  align-items: start;
  flex-wrap: wrap;
}

.chart-collapse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  padding: 0;
}

.chart-legend {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  flex-wrap: wrap;
}

.chart-legend-pill {
  --legend-color: #9b6bc4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--legend-color) 34%, #ffffff);
  background: color-mix(in srgb, var(--legend-color) 14%, #ffffff);
  color: var(--ink);
  font-weight: 600;
}

.chart-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--legend-color);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--legend-color) 40%, #ffffff);
  flex-shrink: 0;
}

.chart-legend-axis {
  font-size: 10px;
  font-weight: 500;
  color: var(--faint);
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.chart-range {
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fff;
  padding: 4px;
}

.chart-range button {
  min-width: 40px;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.chart-range button[aria-selected="true"] {
  background: rgba(110, 54, 155, 0.12);
  color: var(--barn-d);
}

.pool-chart-card {
  margin-top: 4px;
}

.pool-chart-plot {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, var(--inset));
  padding: 8px;
  overflow: hidden;
}

#poolAssetChart {
  display: block;
  width: 100%;
  height: 360px;
  min-height: 300px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 12px;
  margin-top: 14px;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.detail-stats div {
  background: var(--inset);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px;
}

.detail-stats dt {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-stats dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}

.activity-log h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.activity-item {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 0;
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-item strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.activity-item span {
  color: var(--muted);
  font-size: 12px;
}

.activity-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(110, 54, 155, 0.1);
  color: var(--barn);
}

.toast {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 50;
  max-width: min(420px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 12px 40px rgba(110, 54, 155, 0.14);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 13px;
}

@media (max-width: 479px) {
  .main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .header-inner-wide {
    flex-direction: column;
    align-items: stretch;
  }

  .header-tools {
    justify-content: stretch;
  }

  .header-tools .btn {
    flex: 1;
  }

  .controls-grid {
    grid-template-columns: 1fr;
  }

  .intent-strip {
    flex-wrap: wrap;
  }

  .panel-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .table-shell {
    display: none;
  }

  .pool-cards {
    display: grid;
  }

  .stats-grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid-3,
  .stats-grid-pool {
    grid-template-columns: 1fr 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .pool-detail-header .price-block {
    margin-left: 0;
    text-align: left;
    width: 100%;
  }

  .widget-shell,
  .explorer-shell {
    border-radius: 16px;
  }
}

@media (min-width: 768px) {
  .header {
    padding: 20px 24px 14px;
  }

  .main {
    padding-top: 28px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 20px;
  }

  .stats-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) {
  .main > .page-intro,
  .main > .controls-card {
    max-width: 100%;
  }
}

.wallet-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.btn-small {
  padding: 6px 10px;
  font-size: 0.86rem;
}

.btn-wallet span {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gate-banner {
  margin-bottom: 16px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(110, 54, 155, 0.08), rgba(44, 157, 68, 0.08));
}

.gate-banner h3 {
  margin: 0 0 8px;
  color: var(--ink);
}

.gate-banner p {
  margin: 0 0 12px;
  color: var(--muted);
}

.gate-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gate-banner-status {
  color: #9a3412;
  font-size: 0.92rem;
}

.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(26, 26, 46, 0.45);
}

.wallet-modal.wallet-modal--payment {
  z-index: 1100;
}

.wallet-modal-card {
  position: relative;
  width: min(100%, 360px);
  padding: 24px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 18px 50px rgba(26, 26, 46, 0.18);
  text-align: center;
}

.wallet-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--faint);
}

.wallet-modal-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.wallet-modal-qr {
  display: block;
  margin: 16px auto;
  border-radius: 12px;
  background: #fff;
}

.wallet-modal-deeplink {
  display: inline-flex;
  margin-top: 8px;
}

.pool-analysis-card {
  margin-top: 16px;
}

.pool-analysis-content {
  padding: 0 16px 16px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.analysis-stat {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 12px;
  background: var(--inset);
}

.analysis-label {
  font-size: 0.82rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.insights-panel {
  margin-bottom: 16px;
  padding: 18px 20px;
}

.insights-panel-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.insights-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.insights-panel-actions .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.insights-panel-copy h3 {
  margin: 0 0 6px;
  color: var(--ink);
}

.insights-panel-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.insights-panel-bullets {
  margin: 6px 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.insights-panel-bullets li + li {
  margin-top: 3px;
}

.insights-panel-meta {
  margin: 6px 0 0;
  color: var(--faint);
  font-size: 0.78rem;
}

.insights-queue-status {
  margin-top: 8px;
}

.insights-queue-note {
  margin: 0 0 6px;
  color: var(--barn-d);
  font-size: 0.82rem;
  font-weight: 600;
}

.insights-queue-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.insights-queue-failed {
  margin: 8px 0 0;
  color: #9b1c31;
  font-size: 0.82rem;
  line-height: 1.45;
}

.insights-queue-failed .btn-compact {
  margin-top: 6px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.insights-disclaimer,
.insights-disclaimer-inline {
  margin: 6px 0 0;
  color: var(--faint);
  font-size: 0.78rem;
  line-height: 1.4;
}

.insights-cluster-summary p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.wallet-modal-card.insights-modal-card,
.wallet-modal-card.reports-modal-card {
  width: min(calc(100vw - 24px), 1280px);
  max-width: calc(100vw - 24px);
  min-width: min(100%, 720px);
  min-height: 320px;
  max-height: min(94vh, 1200px);
  resize: both;
  overflow: auto;
  text-align: left;
}

.insights-modal-resize-hint {
  margin: -4px 0 10px;
  color: var(--faint);
  font-size: 0.76rem;
}

.reports-detail-wrap {
  margin-top: 12px;
}

.reports-detail-wrap .btn {
  margin-bottom: 10px;
}

.insights-progress {
  margin-top: 16px;
}

.insights-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--inset);
  overflow: hidden;
}

.insights-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--barn), var(--green));
  transition: width 0.25s ease;
}

.insights-report-shell {
  margin-top: 16px;
  max-width: 100%;
  overflow-x: hidden;
}

.insights-report-card {
  display: grid;
  gap: 14px;
  padding: 4px 0 8px;
  max-width: 100%;
  min-width: 0;
}

.insights-report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at top right, rgba(110, 54, 155, 0.12), transparent 42%),
    linear-gradient(180deg, var(--card), var(--inset));
}

.insights-report-hero--unified {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.insights-report-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(110, 54, 155, 0.1), transparent 45%),
    linear-gradient(180deg, var(--card), var(--inset));
}

.insights-report-hero-dex {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line-soft);
  background: rgba(44, 157, 68, 0.04);
}

.insights-report-hero-dex .token-card-section--dex {
  margin: 0;
}

.insights-report-hero-dex .token-card-section-label {
  margin-bottom: 8px;
}

.insights-report-hero-dex .xrplmeta-attribution {
  margin-top: 10px;
}

.insights-report-identity {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: start;
  margin-top: 4px;
}

.insights-report-identity-icon {
  grid-row: 1 / span 3;
}

.insights-report-identity-icon .token-icon,
.insights-report-identity-icon .xrplmeta-icon--hero {
  width: 56px;
  height: 56px;
}

.insights-report-identity-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.insights-report-identity-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.insights-report-identity-title-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  min-width: 0;
}

.insights-report-identity-title h4 {
  margin: 0;
}

.insights-report-identity-title .verdict-tag-wrap {
  flex-shrink: 0;
  max-width: min(220px, 42vw);
}

.insights-report-identity-title .verdict-tag {
  text-transform: none;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  line-height: 1.35;
  white-space: normal;
  text-align: right;
  padding: 5px 10px;
}

.insights-report-identity-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.report-ticker-pill,
.report-meta-pill,
.report-meta-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
}

.report-ticker-pill {
  padding: 3px 10px;
  color: var(--barn-d);
  background: rgba(110, 54, 155, 0.1);
  border-color: rgba(110, 54, 155, 0.16);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-meta-pill {
  padding: 4px 10px;
  color: var(--muted);
  background: var(--card);
  border-color: var(--line-soft);
}

.report-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.report-meta-tag--kyc {
  padding: 3px 9px;
  color: var(--green-d);
  background: #e8f8ee;
  border-color: #b9e3c8;
}

.report-meta-tag--domain {
  padding: 3px 9px;
  color: var(--faint);
  background: var(--inset);
  border-color: var(--line-soft);
  font-weight: 500;
}

.insights-report-desc {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid rgba(110, 54, 155, 0.22);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  font-style: italic;
  background: rgba(255, 255, 255, 0.55);
}

.report-identity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.report-identity-chip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 118px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: var(--card);
  box-shadow: 0 2px 8px rgba(110, 54, 155, 0.04);
}

.report-identity-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
}

.report-identity-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.report-identity-token {
  font-size: 1.12rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.report-identity-value,
.report-identity-hex {
  display: block;
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--muted);
  background: var(--inset);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 7px 9px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
  user-select: all;
}

.report-identity-hex {
  font-size: 0.7rem;
  color: var(--faint);
}

.report-identity-muted {
  color: var(--faint);
  font-size: 0.88rem;
}

.report-identity-foot {
  margin-top: auto;
  min-height: 18px;
  display: flex;
  align-items: flex-end;
}

.report-identity-foot-note {
  font-size: 0.72rem;
  color: var(--faint);
}

.report-identity-link {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--barn);
  text-decoration: none;
}

.report-identity-link:hover {
  text-decoration: underline;
}

.verdict-tag-wrap {
  position: relative;
  display: inline-flex;
}

.verdict-tag-wrap:focus-visible {
  outline: 2px solid var(--barn);
  outline-offset: 2px;
  border-radius: 999px;
}

.verdict-tag-wrap .verdict-tag {
  cursor: help;
}

.verdict-tag-tip {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  width: min(300px, 72vw);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: var(--card);
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.12);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: normal;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.verdict-tag-wrap:hover .verdict-tag-tip,
.verdict-tag-wrap:focus-within .verdict-tag-tip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 760px) {
  .insights-report-identity-title {
    flex-direction: column;
    align-items: stretch;
  }

  .insights-report-identity-title .verdict-tag-wrap {
    max-width: 100%;
  }

  .insights-report-identity-title .verdict-tag {
    text-align: left;
  }

  .verdict-tag-tip {
    right: auto;
    left: 0;
  }

  .report-identity-grid {
    grid-template-columns: 1fr;
  }

  .report-identity-chip {
    min-height: 0;
  }
}

.insights-report-hero-copy h4,
.insights-report-identity-title h4 {
  margin: 2px 0 6px;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.insights-report-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.insights-report-meta,
.insights-report-cache {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.insights-report-pool {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.insights-report-pool span {
  color: var(--faint);
  margin-right: 6px;
}

.insights-report-pool code {
  font-size: 0.78rem;
  word-break: break-all;
}

.insights-report-section {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: var(--card);
  min-width: 0;
  overflow: hidden;
}

.insights-report-section--impact {
  background:
    linear-gradient(180deg, rgba(44, 157, 68, 0.05), transparent 55%),
    var(--card);
}

.insights-report-section--callout {
  background: rgba(110, 54, 155, 0.06);
  border-color: rgba(110, 54, 155, 0.18);
}

.insights-report-section--callout p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.insights-section-head {
  margin-bottom: 12px;
}

.insights-section-head h5 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  color: var(--ink);
}

.insights-section-head p {
  margin: 0;
  color: var(--faint);
  font-size: 0.84rem;
  line-height: 1.4;
}

.insights-impact-bar {
  display: flex;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--inset);
  border: 1px solid var(--line-soft);
}

.insights-impact-seg {
  display: block;
  height: 100%;
  min-width: 2px;
}

.insights-impact-seg--single {
  background: linear-gradient(90deg, #f97316, #ea580c);
}

.insights-impact-seg--payment {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.insights-impact-seg--other {
  background: linear-gradient(90deg, #8b5cf6, #6d28d9);
}

.insights-impact-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.insights-liquidity-bar {
  display: flex;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--inset);
  border: 1px solid var(--line-soft);
  margin-top: 12px;
}

.insights-liquidity-seg {
  display: block;
  height: 100%;
  min-width: 2px;
}

.insights-liquidity-seg--xrp {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.insights-liquidity-seg--sub {
  background: linear-gradient(90deg, #8b5cf6, #6d28d9);
}

.insights-liquidity-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 10px;
}

.insights-liquidity-row--xrp {
  background: rgba(44, 157, 68, 0.06);
}

.insights-pool-kind {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--faint);
  background: var(--inset);
}

.insights-impact-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.insights-impact-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

.insights-impact-dot--single {
  background: #ea580c;
}

.insights-impact-dot--payment {
  background: #16a34a;
}

.insights-impact-dot--other {
  background: #6d28d9;
}

.insights-price-summary {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--inset);
  border: 1px solid var(--line-soft);
}

.insights-price-summary div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.insights-price-summary span {
  color: var(--faint);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.insights-price-summary strong {
  font-size: 1.15rem;
  color: var(--ink);
}

.insights-price-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.insights-price-summary--up strong {
  color: var(--green-d);
}

.insights-price-summary--down strong {
  color: #b91c1c;
}

.insights-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 10px;
}

.insights-metrics-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.insights-metric-card {
  padding: 12px;
  border-radius: 12px;
  background: var(--inset);
  border: 1px solid var(--line-soft);
}

.insights-metric-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.insights-metric-card-top i {
  color: var(--barn);
  font-size: 0.95rem;
}

.insights-metric-card strong {
  font-size: 1.08rem;
  color: var(--ink);
}

.insights-metric-card span {
  display: block;
  font-size: 0.8rem;
  color: var(--faint);
}

.insights-cluster-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.insights-cluster-stat {
  padding: 12px;
  border-radius: 12px;
  background: var(--inset);
  border: 1px solid var(--line-soft);
}

.insights-cluster-stat strong {
  display: block;
  font-size: 1rem;
  color: var(--ink);
  text-transform: capitalize;
}

.insights-cluster-stat span {
  font-size: 0.78rem;
  color: var(--faint);
}

.insights-narrative {
  padding: 14px;
  border-radius: 12px;
  background: var(--inset);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  line-height: 1.6;
}

.insights-narrative p {
  margin: 0 0 12px;
  font-size: 0.94rem;
}

.insights-narrative p:last-child {
  margin-bottom: 0;
}

.insights-narrative-disclaimer {
  margin-top: 14px !important;
  padding-top: 12px;
  border-top: 1px dashed var(--line-soft);
  color: var(--faint) !important;
  font-size: 0.82rem !important;
}

.insights-narrative-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.insights-report-footer {
  padding: 0 4px 4px;
}

.insights-report-footer p {
  margin: 0;
  color: var(--faint);
  font-size: 0.8rem;
  line-height: 1.45;
}

.insights-attribution-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.35);
  color: var(--ink);
}

.insights-attribution-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.86rem;
}

.insights-attribution-note p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.insights-report-section--holders {
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.05), transparent 55%),
    var(--card);
}

.insights-holder-summary {
  margin-bottom: 12px;
}

.insights-holder-observations {
  margin: 0 0 14px;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.insights-holder-observations li + li {
  margin-top: 6px;
}

.insights-holder-shift {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  max-width: 11rem;
  vertical-align: middle;
}

.insights-holder-shift--up {
  color: #166534;
  background: rgba(34, 197, 94, 0.14);
}

.insights-holder-shift--down {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.12);
}

.insights-holder-shift--steady {
  color: var(--muted);
  background: var(--inset);
}

.insights-holder-shift--rebalance {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.14);
}

.insights-holder-row--rebalance {
  background: rgba(59, 130, 246, 0.04);
}

.insights-holder-table code {
  font-size: 0.78rem;
}

.insights-holder-legend {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.insights-holder-address-cell {
  width: auto;
}

.insights-holder-address {
  display: inline;
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: nowrap;
}

.insights-holder-badges {
  display: inline-block;
  min-width: 2.2em;
  font-size: 0.9rem;
  vertical-align: top;
}

.insights-holder-subsection {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.insights-holder-subsection--token-deep {
  margin-top: 24px;
  padding-top: 20px;
}

.insights-deep-upsell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.06);
}

.insights-deep-upsell strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.insights-deep-upsell p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 52ch;
}

.insights-report-section--holders-deep {
  border-color: rgba(59, 130, 246, 0.22);
}

.insights-deep-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 12px;
}

@media (min-width: 1180px) {
  .insights-deep-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.insights-deep-grid h6,
.insights-report-section--holders-deep h6 {
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: var(--ink);
}

.insights-report-section--depth {
  background:
    linear-gradient(180deg, rgba(44, 157, 68, 0.06), transparent 60%),
    var(--card);
}

.insights-depth-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.insights-depth-stat {
  padding: 12px;
  border-radius: 12px;
  background: var(--inset);
  border: 1px solid var(--line-soft);
}

.insights-depth-stat span {
  display: block;
  font-size: 0.76rem;
  color: var(--faint);
  margin-bottom: 4px;
}

.insights-depth-stat strong {
  font-size: 1rem;
  color: var(--ink);
}

.insights-depth-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
}

.insights-depth-tone--good {
  background: rgba(44, 157, 68, 0.14);
  color: var(--green-d);
}

.insights-depth-tone--warn {
  background: rgba(234, 88, 12, 0.12);
  color: #c2410c;
}

.insights-depth-tone--bad {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.insights-depth-tone--neutral {
  background: rgba(110, 54, 155, 0.1);
  color: var(--barn);
}

.insights-trend-head {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.insights-trend-head strong {
  display: block;
  color: var(--ink);
}

.insights-trend-head span,
.insights-trend-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.insights-trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  min-height: 120px;
  padding: 10px 8px 0;
  border-radius: 12px;
  background: var(--inset);
  border: 1px solid var(--line-soft);
  overflow-x: auto;
}

.insights-trend-bar {
  display: flex;
  flex: 1 0 28px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 28px;
  height: 110px;
}

.insights-trend-bar span {
  display: block;
  width: 100%;
  max-width: 22px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--barn), rgba(110, 54, 155, 0.55));
}

.insights-trend-bar em {
  margin-top: 6px;
  font-size: 0.62rem;
  font-style: normal;
  color: var(--faint);
  text-align: center;
  line-height: 1.2;
}

.insights-subpool-table-wrap {
  overflow-x: auto;
  min-width: 0;
}

.insights-subpool-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  table-layout: auto;
}

.insights-subpool-table th,
.insights-subpool-table td {
  padding: 8px 8px;
  text-align: left;
  vertical-align: middle;
}

.insights-subpool-table tbody tr {
  border-bottom: 1px solid var(--line-soft);
}

.insights-subpool-table tbody td {
  border-bottom: none;
}

.insights-holder-table .col-rank {
  width: 2.25rem;
  padding-right: 4px;
  text-align: right;
  color: var(--faint);
  font-size: 0.8rem;
  white-space: nowrap;
}

.insights-holder-table .col-address {
  width: auto;
  min-width: 7.5rem;
  max-width: 11rem;
}

.insights-holder-table .col-usd,
.insights-holder-table .col-pct,
.insights-holder-table .col-delta {
  width: 1%;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.insights-holder-table .col-shift,
.insights-holder-table .col-context {
  width: 1%;
  white-space: nowrap;
}

.insights-holder-table .col-flow {
  min-width: 6.5rem;
  max-width: 12rem;
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: normal;
}

.insights-holder-table .insights-flow-mix {
  font-size: 0.78rem;
  line-height: 1.35;
}

.insights-holder-table--movers .col-address {
  max-width: 10rem;
}

.insights-holder-table--with-context .col-context {
  min-width: 6.5rem;
  max-width: 9rem;
  white-space: normal;
}

.insights-subpool-table th {
  color: var(--faint);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reports-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.report-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: var(--card);
}

.report-row-main {
  display: grid;
  gap: 4px;
}

.report-row-actions {
  display: flex;
  gap: 8px;
}

.verdict-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.verdict-tag--high {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.verdict-tag--elevated {
  background: rgba(234, 88, 12, 0.12);
  color: #c2410c;
}

.verdict-tag--organic {
  background: rgba(44, 157, 68, 0.14);
  color: var(--green-d);
}

.verdict-tag--mixed {
  background: rgba(110, 54, 155, 0.12);
  color: var(--barn);
}

.analysis-table-wrap {
  margin-top: 14px;
}

.analysis-table-wrap h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.analysis-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.analysis-table th,
.analysis-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}

/* XRPL Meta enrichment */
.insights-report-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.insights-report-symbol,
.token-symbol-sub {
  margin: 2px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

.insights-report-section--xrplmeta {
  background:
    linear-gradient(180deg, rgba(110, 54, 155, 0.04), transparent 60%),
    var(--card);
}

.xrplmeta-panel {
  display: grid;
  gap: 12px;
}

.xrplmeta-panel--compact {
  margin-top: 4px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: var(--inset);
}

.xrplmeta-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.xrplmeta-panel-head h6 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--ink);
}

.xrplmeta-panel-head strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
}

.xrplmeta-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  background: var(--card);
  flex-shrink: 0;
}

.xrplmeta-icon--large {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.xrplmeta-icon--hero {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.xrplmeta-trust-wrap {
  position: relative;
  display: inline-flex;
  margin-top: 6px;
}

.xrplmeta-trust-wrap:focus-visible {
  outline: 2px solid var(--barn);
  outline-offset: 2px;
  border-radius: 999px;
}

.xrplmeta-trust {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: help;
}

.xrplmeta-trust-tip {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 20;
  width: min(280px, 70vw);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: var(--card);
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.12);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.xrplmeta-trust-tip a {
  color: var(--barn);
  text-decoration: none;
}

.xrplmeta-trust-tip a:hover {
  text-decoration: underline;
}

.xrplmeta-trust-wrap:hover .xrplmeta-trust-tip,
.xrplmeta-trust-wrap:focus-within .xrplmeta-trust-tip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.info-tip {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--card);
  color: var(--faint);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  position: relative;
}

.info-tip::after {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  z-index: 20;
  width: max-content;
  max-width: min(260px, 70vw);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: var(--card);
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.12);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.info-tip:hover::after,
.info-tip:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.xrplmeta-trust--0 {
  color: var(--faint);
  background: var(--inset);
  border-color: var(--line-soft);
}

.xrplmeta-trust--1 {
  color: #8a6118;
  background: #fff5df;
  border-color: #f0d59b;
}

.xrplmeta-trust--2,
.xrplmeta-trust--3 {
  color: #1f6b3f;
  background: #e8f8ee;
  border-color: #b9e3c8;
}

.xrplmeta-domain,
.xrplmeta-issuer {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--faint);
  line-height: 1.4;
}

.xrplmeta-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.xrplmeta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.xrplmeta-links a {
  font-size: 0.84rem;
  color: var(--barn);
  text-decoration: none;
}

.xrplmeta-links a:hover {
  text-decoration: underline;
}

.xrplmeta-attribution {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--faint);
}

.xrplmeta-attribution a {
  color: var(--barn);
  text-decoration: none;
}

.xrplmeta-attribution a:hover {
  text-decoration: underline;
}