/* Suited Tools — visual and responsive polish only. No behavior or data changes. */

/* Keep layout tracks and controls inside their actual viewport. */
.overview-grid > *,
.overview-bottom-grid > *,
.overview-main,
.chart-panel,
.chart-header,
.chart-controls,
.chart-tabs,
.chart-canvas-container,
.feed-layout-grid > *,
.feed-main-stream,
.tools-robinhood-container,
.tools-robinhood-container .tools-bento-grid > *,
.tools-robinhood-container .vault-summary-grid > *,
.tools-robinhood-container .sim-metrics-grid > *,
.tools-robinhood-container .approvals-summary-grid > *,
.tools-robinhood-container .monitors-cards-grid > *,
.tools-robinhood-container .vault-apes-grid > *,
.tools-robinhood-container .sniper-grid > * {
  min-width: 0;
  max-width: 100%;
}

.chart-panel,
.chart-header,
.chart-controls,
.chart-tabs,
.chart-canvas-container,
.tools-robinhood-container .tools-card,
.tools-robinhood-container .rh-flow-header-card,
.tools-robinhood-container .flow-stat-box {
  box-sizing: border-box;
}

.chart-controls {
  flex-wrap: wrap;
}

.chart-tabs > .chart-tab {
  min-width: 0;
}

.chart-canvas-container canvas {
  max-width: 100%;
}

/* Preserve readable labels and prevent icons from being crushed. */
.category-subtitle {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button,
[role="button"] {
  box-sizing: border-box;
}

button svg,
a svg,
[role="button"] svg {
  flex-shrink: 0;
}

img {
  max-width: 100%;
}

.tweet-photo-item,
.tweet-video-preview {
  text-decoration: none;
  color: inherit;
}

.tweet-photo-item img {
  display: block;
}

p,
.preview-whitelist-footnote,
.tools-robinhood-container .section-block-subtitle,
.tools-robinhood-container .rh-flow-desc {
  overflow-wrap: break-word;
}

/* Keep carousel arrows from covering the first and last navigation labels. */
.tab-nav-wrapper:has(.tab-nav-arrow) {
  padding-left: 52px;
  padding-right: 52px;
}

.tab-nav-arrow {
  width: 34px;
  height: 34px;
}

/* This shared footnote is also rendered outside the Whitelist Radar. */
.preview-whitelist-footnote {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 12px 0 0;
  padding: 12px 14px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  line-height: 1.65;
}

.preview-whitelist-footnote strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Tools cards previously inherited unstyled browser text and spacing. */
.tools-robinhood-container .tools-card {
  width: 100%;
  margin-top: 12px;
  padding: 16px;
  color: var(--text-primary);
  background: rgba(13, 19, 33, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.tools-robinhood-container .tools-card h3 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}

.tools-robinhood-container .tools-card p {
  margin: 0 0 8px;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.6;
}

.tools-robinhood-container .tools-card p:last-child {
  margin-bottom: 0;
}

.tools-robinhood-container .tools-card .event-item {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tools-robinhood-container .tools-primary-btn,
.tools-robinhood-container .tools-secondary-btn,
.tools-robinhood-container .flow-ctrl-btn {
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

.tools-robinhood-container .vault-ape-card img,
.tools-robinhood-container .sniper-deal-card img,
.tools-robinhood-container .ape-media-wrapper img,
.tools-robinhood-container .sniper-media img {
  max-width: 100%;
}

@media (max-width: 1200px) {
  .overview-grid,
  .overview-bottom-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (min-width: 768px) {
  .header-connect-btn,
  .header-gate-badge {
    min-height: 32px;
  }

  .tf-btn {
    min-height: 30px;
  }
}

@media (max-width: 767px) {
  /* Comfortable touch targets without changing any click behavior. */
  button {
    min-height: 38px;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  textarea,
  select {
    min-height: 42px;
    font-size: 16px;
  }

  .tab-btn {
    min-height: 40px;
  }

  .tab-nav-arrow {
    width: 38px;
    height: 38px;
  }

  .tab-nav-wrapper:has(.tab-nav-arrow) {
    padding-left: 42px;
    padding-right: 42px;
  }

  .header-connect-btn,
  .header-gate-badge,
  .header-vip-badge,
  .header-wallet-action-btn {
    min-height: 40px;
  }

  .overview-main,
  .chart-panel,
  .chart-header,
  .chart-controls,
  .chart-tabs,
  .chart-canvas-container {
    width: 100%;
  }

  .chart-header {
    align-items: stretch;
  }

  .chart-tabs {
    flex-wrap: wrap;
  }

  .chart-tabs > .chart-tab {
    flex: 1 1 0;
    justify-content: center;
    padding-right: 8px;
    padding-left: 8px;
    text-align: center;
  }

  .chart-controls {
    width: 100%;
    gap: 8px;
    justify-content: space-between;
  }

  .chart-stats-group {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .timeframe-selector {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .timeframe-selector .tf-btn {
    flex: 1 1 44px;
    min-width: 44px;
    min-height: 40px;
  }

  .hud-metric-val {
    min-width: 0;
    flex-wrap: wrap;
  }

  .hud-metric-val .sale-p {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* Feed header: centered identity, contained glow and full-width actions. */
  .feed-hero-glow {
    left: 0;
    width: 100%;
    max-width: 100%;
  }

  .feed-hero-left {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }

  .feed-target-info {
    width: 100%;
    min-width: 0;
    align-items: center;
  }

  .feed-target-title-row,
  .feed-target-meta {
    justify-content: center;
  }

  .feed-target-desc {
    max-width: 100%;
    line-height: 1.55;
  }

  .feed-hero-actions {
    align-items: stretch;
    justify-content: center;
  }

  .feed-hero-actions .feed-action-btn {
    min-height: 42px;
  }

  .feed-hero-actions .feed-action-btn.icon-only {
    flex: 0 0 44px !important;
    justify-content: center !important;
  }

  .main-content button:has(svg:only-child) {
    min-width: 40px;
  }

  .main-content a:has(svg:only-child),
  .whale-mini-btn,
  .sale-link-btn,
  .tweet-action-btn {
    box-sizing: border-box;
    min-width: 36px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    display: inline-flex;
  }

  .indicator-toggle {
    min-width: 40px;
  }

  .preview-whitelist-footnote {
    padding: 12px;
    font-size: 11px;
  }

  .tools-robinhood-container .tools-card {
    padding: 14px;
  }

  .tools-robinhood-container .tools-card h3 {
    font-size: 15px;
  }

  .tools-robinhood-container .tools-primary-btn,
  .tools-robinhood-container .tools-secondary-btn,
  .tools-robinhood-container .flow-ctrl-btn {
    min-height: 44px;
  }
}

@media (max-width: 420px) {
  .chart-tabs > .chart-tab {
    font-size: 11px;
  }

  .chart-canvas-container {
    padding-right: 4px;
    padding-left: 4px;
  }

  .feed-target-title-row {
    gap: 6px;
  }

  .feed-target-title-row h2 {
    margin: 0;
  }

  .feed-target-meta {
    flex-wrap: wrap;
  }
}

/* The measured Capital Flow component also lives outside the Tools container. */
.module-rpc-view {
  box-sizing: border-box;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
}

.module-rpc-view .vault-summary-grid {
  box-sizing: border-box;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  display: grid;
}

.module-rpc-view .vault-summary-grid > *,
.module-rpc-view .rh-flow-title,
.module-rpc-view .rh-flow-desc {
  min-width: 0;
}

.module-rpc-view .rh-flow-header-card {
  flex-wrap: wrap;
}

.module-rpc-view .rh-flow-title {
  flex: 1 1 280px;
  overflow-wrap: anywhere;
}

.module-rpc-view .rh-flow-desc {
  flex: 2 1 360px;
}

.module-rpc-view .rh-flow-header-card > .flow-ctrl-btn {
  flex-shrink: 0;
}

.module-rpc-view .flow-stat-box {
  box-sizing: border-box;
  min-width: 0;
  gap: 6px;
  padding: 16px 18px;
  line-height: 1.5;
}

.module-rpc-view .flow-stat-box .stat-lbl,
.module-rpc-view .flow-stat-box .stat-val {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.module-rpc-view .flow-stat-box .stat-lbl {
  font-size: 10.5px;
}

.module-rpc-view > .tools-card {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 18px;
  color: var(--text-primary);
  background: rgba(13, 19, 33, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.module-rpc-view > .tools-card h3 {
  margin: 0 0 8px;
  line-height: 1.4;
}

.module-rpc-view > .tools-card p {
  margin: 0 0 8px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.module-rpc-view > .tools-card p:last-child {
  margin-bottom: 0;
}

.module-rpc-view .event-item {
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 12px;
  line-height: 1.5;
}

/* Avoid clipping meaningful status, utility and deployer information. */
.rh-card-stats-matrix {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  padding: 12px;
}

.rh-card-stats-matrix .stat-matrix-cell .cell-sub,
.rh-card-stats-matrix .stat-matrix-cell .cell-val,
.rh-modal-stats-grid .modal-stat-card .m-val,
.rh-modal-stats-grid .modal-stat-card .m-sub,
.rh-holder-perk-box .rh-perk-text,
.radar-info-box .info-box-label,
.radar-deployer-tag-badge,
.radar-info-box .radar-deployer-tag-badge .deployer-tag-text {
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  overflow: visible;
  line-height: 1.4;
}

.radar-deployer-tag-badge {
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .module-rpc-view .vault-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .module-rpc-view .rh-flow-header-card {
    align-items: stretch;
    gap: 14px;
    padding: 18px;
  }

  .module-rpc-view .rh-flow-title,
  .module-rpc-view .rh-flow-desc {
    flex-basis: auto;
  }

  .module-rpc-view .rh-flow-header-card > .flow-ctrl-btn {
    justify-content: center;
    width: 100%;
  }

  .module-rpc-view > .tools-card {
    padding: 14px;
  }
}

@media (max-width: 640px) {
  .module-rpc-view .vault-summary-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

/* Give measured data, listings and events clear visual separation. */
.tools-robinhood-container .module-rpc-view .vault-summary-grid,
.tools-robinhood-container .sim-metrics-grid,
.tools-robinhood-container .monitors-cards-grid {
  gap: 14px !important;
}

.tools-robinhood-container .rh-flow-header-card {
  flex-wrap: wrap;
}

.tools-robinhood-container .rh-flow-title-row,
.tools-robinhood-container .section-block-left,
.tools-robinhood-container .section-title-wrap,
.tools-robinhood-container .section-block-right {
  min-width: 0;
}

.tools-robinhood-container .rh-flow-title {
  overflow-wrap: anywhere;
}

.tools-robinhood-container .rh-flow-header-card > .flow-ctrl-btn {
  flex-shrink: 0;
}

.tools-robinhood-container .flow-stat-box {
  min-width: 0;
  gap: 6px;
  padding: 16px 18px;
  line-height: 1.5;
}

.tools-robinhood-container .flow-stat-box .stat-lbl,
.tools-robinhood-container .flow-stat-box .stat-val {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.tools-robinhood-container .event-item {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
  overflow-x: hidden;
  line-height: 1.5;
}

.tools-robinhood-container .event-item > * {
  min-width: 0;
}

.tools-robinhood-container .event-target {
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  overflow: visible;
}

.tools-robinhood-container .ape-info-box,
.tools-robinhood-container .sniper-card-info {
  min-width: 0;
  line-height: 1.5;
}

.tools-robinhood-container .sniper-card-info > span {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.tools-robinhood-container .sniper-card-info > span:last-child:not(.eth-price) {
  font-size: 11.5px;
}

.tools-robinhood-container .monitor-item-card,
.tools-robinhood-container .monitor-top-row,
.tools-robinhood-container .live-stat-line {
  min-width: 0;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .tools-robinhood-container .module-rpc-view .vault-summary-grid,
  .tools-robinhood-container .sim-metrics-grid,
  .tools-robinhood-container .approvals-summary-grid,
  .tools-robinhood-container .monitors-cards-grid,
  .tools-robinhood-container .cost-matrix-grid {
    gap: 12px !important;
  }

  .tools-robinhood-container .rh-flow-header-card {
    align-items: stretch;
    gap: 14px;
    padding: 18px;
  }

  .tools-robinhood-container .rh-flow-header-card > .flow-ctrl-btn {
    justify-content: center;
    width: 100%;
  }

  .tools-robinhood-container .flow-stat-box {
    padding: 14px 16px;
  }

  .rh-swap-title {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }
}

/* Comprehensive typography and container polish. Presentation only. */
.main-content :where(h1, h2, h3, h4, h5, h6, p, li, label, small) {
  max-width: 100%;
  overflow-wrap: break-word;
}

.main-content :where(h1, h2, h3, h4, h5, h6) {
  text-wrap: balance;
}

.main-content :where(input, select, textarea) {
  box-sizing: border-box;
  max-width: 100%;
}

.main-content :where(input, textarea)::placeholder {
  color: var(--text-muted);
  opacity: 1;
  text-overflow: ellipsis;
}

/* NFT descriptions stay complete instead of hiding useful information. */
.rh-card-desc {
  display: block !important;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  line-height: 1.55;
}

.rh-card-body,
.rh-card-title-row,
.rh-card-footer,
.rh-mint-progress-labels {
  min-width: 0;
}

.rh-mint-progress-labels {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 12px;
  line-height: 1.5;
}

.rh-mint-progress-labels > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Keep the forensic measurements in distinct value / label pairs. */
.rh-det-stat-item {
  box-sizing: border-box;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  display: flex;
}

.rh-det-stat-val,
.rh-det-stat-lbl {
  display: block;
  max-width: 100%;
  margin: 0;
  line-height: 1.35;
  white-space: normal;
}

.rh-det-stat-lbl {
  font-size: 10px;
}

/* Small badges remain legible without enlarging their surrounding cards. */
body .app .main-content .rh-token-avatar-fallback.rh-ticker-token-icon {
  font-size: 9px !important;
}

body .app .main-content :is(.cell-label, .info-box-label, .rank-pill, .rh-asset-pill-network-tag, .swap-dex-badge) {
  font-size: 9.5px !important;
}

.rh-v2-copy-btn {
  min-width: 28px;
  min-height: 28px;
}

.rh-v2-disconnect-btn {
  min-height: 28px;
}

/* Forms: consistent fields, visible separation and clear result spacing. */
.tools-robinhood-container .tools-card {
  font-size: 13px;
  line-height: 1.6;
}

.tools-robinhood-container .tools-card :where(h3, h4) {
  max-width: 100%;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.tools-robinhood-container .tools-card > .tools-text-input,
.tools-robinhood-container .tools-card > .tools-select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  line-height: 1.45;
}

.tools-robinhood-container .tools-card > p + .tools-text-input,
.tools-robinhood-container .tools-card > p + .tools-select {
  margin-top: 12px;
}

.tools-robinhood-container .tools-card > .tools-text-input + .tools-text-input,
.tools-robinhood-container .tools-card > .tools-text-input + .tools-select,
.tools-robinhood-container .tools-card > .tools-select + .tools-text-input {
  margin-top: 10px;
}

.tools-robinhood-container .tools-card > .tools-text-input + .tools-primary-btn,
.tools-robinhood-container .tools-card > .tools-select + .tools-primary-btn {
  margin-top: 12px;
}

.tools-robinhood-container .tools-card > .tools-primary-btn + *,
.tools-robinhood-container .tools-card > .tools-secondary-btn + * {
  margin-top: 12px;
}

.tools-robinhood-container .tools-card :where(input, select, textarea):focus-visible {
  outline: 2px solid rgba(0, 214, 143, 0.55);
  outline-offset: 2px;
}

.tools-robinhood-container .monitor-delete-btn {
  min-width: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
}

.tools-robinhood-container .mon-action-btn {
  min-height: 36px;
  padding: 7px 12px;
}

/* A sale and its Ape identifier should read as two clean values, not split words. */
.hud-metric-val:has(.ape-num) {
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  display: flex;
  overflow: visible;
  white-space: normal;
}

.hud-metric-val:has(.ape-num) .ape-num,
.hud-metric-val:has(.ape-num) .sale-p {
  display: block;
  max-width: 100%;
  line-height: 1.45;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .rh-ticker-pause-toggle,
  .rh-speed-chip,
  .rh-layout-btn,
  .rh-sync-charts-btn,
  .slot-swap-btn,
  .slot-reload-btn,
  .rh-chart-quick-reload-link,
  .rh-select-other-token-btn,
  .rh-order-side-btn {
    min-height: 32px;
  }

  .rh-swap-settings-btn,
  .rh-swap-flip-btn {
    min-width: 36px;
    min-height: 36px;
  }

  .rh-swap-quick-bal-btn,
  .rh-balance-set-max-btn,
  .rh-slippage-chip,
  .rh-slippage-options button {
    min-height: 32px;
    padding: 5px 9px !important;
    font-size: 10.5px !important;
  }
}

@media (max-width: 767px) {
  .rh-hero-title {
    max-width: 100%;
    line-height: 1.3 !important;
  }

  .rh-hero-title-main,
  .rh-hero-title-gold {
    display: block;
    max-width: 100%;
    margin-right: 0;
    overflow-wrap: break-word;
  }

  .rh-hero-desc {
    display: block !important;
    max-height: none;
    margin-bottom: 8px !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
  }

  .rh-mint-progress-labels > * {
    flex: 1 1 120px;
  }

  body .app .main-content :is(.rh-kpi-label, .rh-det-stat-lbl, .hud-metric-label, .cell-label, .info-box-label, .rank-pill, .rh-chain-id-chip, .signal-level-tag, .preview-whitelist-status, .rh-asset-pill-network-tag, .swap-dex-badge, .item-district-badge) {
    font-size: 10px !important;
  }

  body .app .main-content :is(.rh-swap-card-label, .rh-swap-balance, .rh-swap-rate-preview, .rh-detail-label, .rh-detail-val, .rh-balance-alert-text, .cell-sub, .deployer-tag-text, .signal-type-tag, .tape-badge, .sync-card-label, .pill-anchor-tag, .info-box-sub-text, .rh-cat-badge, .sale-time, .sub-usd) {
    font-size: 10.5px !important;
  }

  body .app .main-content :is(.rh-speed-chip, .rh-ticker-pause-toggle, .whale-mini-btn, .sale-link-btn) {
    font-size: 10.5px !important;
  }

  .rh-ticker-pause-toggle,
  .rh-speed-chip,
  .rh-layout-btn,
  .rh-sync-charts-btn,
  .slot-swap-btn,
  .slot-reload-btn,
  .rh-chart-quick-reload-link,
  .rh-select-other-token-btn,
  .rh-order-side-btn,
  .rh-swap-quick-bal-btn,
  .rh-balance-set-max-btn,
  .rh-slippage-chip,
  .rh-slippage-options button,
  .signal-action-btn,
  .monitor-delete-btn,
  .mon-action-btn {
    min-height: 38px;
  }

  .rh-swap-settings-btn,
  .rh-swap-flip-btn {
    min-width: 40px;
    min-height: 40px;
  }

  .studio-slider,
  .tools-slider {
    min-height: 28px;
  }

  .tools-robinhood-container .tools-card .tools-text-input,
  .tools-robinhood-container .tools-card .tools-select {
    font-size: 16px !important;
  }

  .tools-robinhood-container .tools-card > .tools-primary-btn:last-of-type {
    width: 100%;
    justify-content: center;
  }

  /* Give whale identity and activity the full row; put utility links below it. */
  .whale-item {
    align-items: flex-start;
  }

  .whale-item-left {
    flex: 1 1 100%;
  }

  .whale-info {
    min-width: 0;
  }

  .whale-action {
    max-width: 100%;
    font-size: 11.5px;
    line-height: 1.55;
    overflow-wrap: break-word;
  }

  .whale-action-detail {
    overflow-wrap: anywhere;
  }

  .whale-item-right {
    box-sizing: border-box;
    width: calc(100% - 42px);
    margin-left: 42px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Preserve field gaps and readable quick controls in every live tool state. */
body .app .main-content .tools-robinhood-container .tools-card > .tools-primary-btn {
  margin-top: 12px !important;
}

body .app .main-content .rh-swap-presets > button {
  box-sizing: border-box;
  height: auto !important;
  min-height: 28px !important;
  padding: 5px 9px !important;
  font-size: 10.5px !important;
}

@media (max-width: 1024px) {
  .tools-robinhood-container .slippage-options button,
  body .app .main-content .rh-swap-presets > button {
    min-height: 32px !important;
    padding: 5px 9px !important;
    font-size: 10.5px !important;
  }
}

@media (max-width: 767px) {
  .tools-robinhood-container .slippage-options button,
  body .app .main-content .rh-swap-presets > button {
    min-height: 38px !important;
  }

  .item-district-badge {
    box-sizing: border-box;
    height: auto;
    min-height: 19px;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }
}

/* Listing metadata and RPC diagnostics: readable, compact and never truncated. */
.tools-robinhood-container .sniper-card-info {
  box-sizing: border-box;
  align-items: stretch;
  gap: 6px;
  padding: 2px;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

.tools-robinhood-container .sniper-card-info > strong {
  max-width: 100%;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.tools-robinhood-container .sniper-card-info > span {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: normal;
  text-wrap: pretty;
}

.tools-robinhood-container .sniper-card-info > span.eth-price {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.tools-robinhood-container .sniper-card-info > span:last-of-type:not(.eth-price) {
  color: var(--text-muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.1px;
  line-height: 1.55;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.tools-robinhood-container .sniper-card-info .sniper-buy-btn {
  box-sizing: border-box;
  width: 100%;
  min-height: 38px;
  margin: 4px 0 0;
  padding: 9px 12px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  display: flex;
  flex-wrap: nowrap;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.tools-robinhood-container .module-rpc-view > p:not(.tools-card) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 12px 14px;
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.035);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tools-robinhood-container .cost-matrix-card > .tools-text-input + .tools-text-input {
  margin-top: 10px;
}

body .app .main-content .tools-robinhood-container .cost-matrix-card > .tools-primary-btn {
  margin-top: 12px !important;
}

@media (min-width: 768px) {
  .tools-robinhood-container .sniper-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .tools-robinhood-container .sniper-card-info {
    padding: 14px;
  }

  .tools-robinhood-container .module-rpc-view > p:not(.tools-card) {
    padding: 11px 12px;
    font-size: 10px;
  }
}

/* Whale Valuator: layout and presentation only. */
.page-whale-valuator .holder-tag {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  min-height: 26px;
  padding: 4px 9px !important;
  border-radius: 6px !important;
  line-height: 1.25 !important;
  white-space: nowrap;
  vertical-align: middle;
}

.page-whale-valuator .wv-table td:nth-child(3) {
  min-width: 106px;
}

.page-whale-valuator .wv-table-wrap {
  scrollbar-color: rgba(0, 214, 143, 0.45) rgba(255, 255, 255, 0.04);
  scrollbar-width: thin;
}

@media (min-width: 1281px) {
  .page-whale-valuator .wv-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .page-whale-valuator .wv-table {
    min-width: 1000px;
  }
}

@media (max-width: 900px) {
  .page-whale-valuator .wv-card-header {
    align-items: stretch;
  }

  .page-whale-valuator .wv-header-title {
    flex-wrap: wrap;
    min-width: 0;
  }

  .page-whale-valuator .wv-search-box {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-height: 40px;
  }

  .page-whale-valuator .wv-mobile-scroll-hint {
    display: none !important;
  }

  .page-whale-valuator .wv-table-wrap {
    overflow: visible;
  }

  .page-whale-valuator .wv-table {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .page-whale-valuator .wv-table thead {
    display: none;
  }

  .page-whale-valuator .wv-table tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
  }

  .page-whale-valuator .wv-table-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-content: start;
    gap: 12px 10px;
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    padding: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
  }

  .page-whale-valuator .wv-table-row:hover {
    background: linear-gradient(145deg, rgba(0, 214, 143, 0.055), rgba(255, 255, 255, 0.018));
    border-color: rgba(0, 214, 143, 0.24);
  }

  .page-whale-valuator .wv-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    font-size: 11.5px;
  }

  .page-whale-valuator .wv-table td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .page-whale-valuator .wv-table td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    overflow: hidden;
  }

  .page-whale-valuator .wv-table td:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
  }

  .page-whale-valuator .wv-rank-badge {
    min-width: 30px;
    height: 28px;
  }

  .page-whale-valuator .wv-wallet-info,
  .page-whale-valuator .wv-wallet-name {
    min-width: 0;
    max-width: 100%;
  }

  .page-whale-valuator .wv-wallet-name > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-whale-valuator .wv-table td:nth-child(4),
  .page-whale-valuator .wv-table td:nth-child(5) {
    box-sizing: border-box;
    padding: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 8px;
  }

  .page-whale-valuator .wv-table td:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .page-whale-valuator .wv-table td:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
  }

  .page-whale-valuator .wv-table td:nth-child(4)::before,
  .page-whale-valuator .wv-table td:nth-child(5)::before,
  .page-whale-valuator .wv-table td:nth-child(6)::before {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 8.5px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.06em;
  }

  .page-whale-valuator .wv-table td:nth-child(4)::before {
    content: "HELD";
  }

  .page-whale-valuator .wv-table td:nth-child(5)::before {
    content: "SUPPLY";
  }

  .page-whale-valuator .wv-table td:nth-child(6) {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0;
  }

  .page-whale-valuator .wv-table td:nth-child(6)::before {
    content: "EST. NET WORTH";
    flex: none;
    margin: 0;
  }

  .page-whale-valuator .wv-net-worth {
    align-items: flex-end;
    min-width: 0;
    text-align: right;
  }

  .page-whale-valuator .wv-net-eth,
  .page-whale-valuator .wv-net-usd {
    overflow-wrap: anywhere;
  }

  .page-whale-valuator .wv-table td:nth-child(7) {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .page-whale-valuator .wv-action-link {
    box-sizing: border-box;
    width: 100%;
    min-height: 36px;
    padding: 7px 9px;
  }

  .page-whale-valuator .wv-action-token {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-whale-valuator .wv-action-icon {
    flex: none;
    margin-left: auto;
  }

  .page-whale-valuator .wv-table td:nth-child(8) {
    grid-column: 1 / -1;
    grid-row: 5;
  }

  .page-whale-valuator .wv-explorer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    white-space: normal;
  }

  .page-whale-valuator .wv-ext-btn {
    box-sizing: border-box;
    min-height: 34px;
    justify-content: center;
    padding: 7px 9px;
  }

  .page-whale-valuator .wv-table tbody tr:has(.wv-empty-cell) {
    display: block;
  }

  .page-whale-valuator .wv-empty-cell {
    padding: 24px !important;
  }
}

@media (max-width: 600px) {
  .page-whale-valuator .wv-table tbody {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }
}

@media (max-width: 400px) {
  .page-whale-valuator .wv-table-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px 8px;
    padding: 10px;
  }

  .page-whale-valuator .holder-tag {
    min-height: 25px;
    padding: 4px 7px !important;
    font-size: 10px !important;
  }
}

/* Keep quote availability messages inside their swap card. */
.rh-swap-card,
.rh-swap-sub-row {
  min-width: 0;
  max-width: 100%;
}

.rh-swap-sub-row {
  flex-wrap: wrap;
  align-items: flex-start;
}

.rh-swap-usd-estimate,
.rh-swap-rate-preview {
  min-width: 0;
  max-width: 100%;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

.rh-swap-rate-preview {
  flex: 1 1 160px;
  text-align: right;
}

@media (max-width: 767px) {
  .rh-swap-rate-preview {
    flex-basis: 100%;
    text-align: left;
  }
}

/* ApeHood holder map: isolated responsive iframe, without changing other modules. */
.apehood-map-page {
  width: 100%;
  max-width: 1600px;
  min-width: 0;
  margin: 0 auto;
  padding: 24px;
}

.apehood-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.apehood-map-heading {
  min-width: 0;
}

.apehood-map-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #fbbf24;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .12em;
}

.apehood-map-heading h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.apehood-map-heading p {
  max-width: 680px;
  margin: 10px 0 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.65;
}

.apehood-map-external {
  box-sizing: border-box;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #f59e0b55;
  border-radius: 10px;
  background: #f59e0b12;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.apehood-map-external:hover {
  border-color: #f59e0b99;
  background: #f59e0b20;
}

.apehood-map-external:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 3px;
}

.apehood-map-frame {
  position: relative;
  width: 100%;
  min-width: 0;
  height: clamp(620px, 76svh, 1100px);
  overflow: hidden;
  border: 1px solid #ffffff14;
  border-radius: 16px;
  background: #090b10;
  box-shadow: 0 18px 60px #00000033;
}

.apehood-map-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #090b10;
}

@media (max-width: 767px) {
  .apehood-map-page {
    padding: 16px;
  }

  .apehood-map-header {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
  }

  .apehood-map-external {
    align-self: flex-start;
  }

  .apehood-map-frame {
    height: max(560px, 72svh);
    border-radius: 12px;
  }
}

@media (max-width: 420px) {
  .apehood-map-page {
    padding: 12px;
  }

  .apehood-map-eyebrow {
    font-size: 10px;
    letter-spacing: .08em;
  }

  .apehood-map-heading p {
    font-size: 13px;
  }
}

/* Size the embedded chart explicitly and mask external DexScreener branding bars. */
.rh-iframe-container {
  display: block !important;
  position: relative !important;
  overflow: hidden !important;
  background: #131722 !important;
  min-height: 0 !important;
}

.rh-dex-iframe {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: -6px !important;
  left: 0 !important;
  width: 100% !important;
  height: calc(100% + 6px) !important;
  min-height: 0 !important;
  border: 0 !important;
  display: block !important;
}

.rh-iframe-status-bar {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  height: 32px !important;
  background: #0a0e17 !important;
  z-index: 6 !important;
}

.rh-iframe-status-bar .rh-chart-quick-reload-link,
.rh-iframe-status-bar .rh-chart-quick-direct-link {
  min-height: 22px !important;
  height: 22px !important;
}

.rh-dex-legend-mask {
  position: absolute;
  top: 45px;
  left: 58px;
  height: 24px;
  max-width: calc(100% - 120px);
  padding: 0 6px 0 4px;
  background: #171b27;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  user-select: none;
  z-index: 4;
  box-sizing: border-box;
  overflow: hidden;
}

.rh-dex-legend-icon {
  width: 17px !important;
  height: 17px !important;
  border-radius: 50% !important;
  flex-shrink: 0;
}

.rh-dex-legend-title {
  color: #d1d4dc;
  font-family: -apple-system, BlinkMacSystemFont, "Trebuchet MS", Roboto, Ubuntu, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
  min-width: 0;
}

.rh-dex-legend-cover {
  display: inline-flex;
  align-items: center;
  width: 226px;
  height: 100%;
  padding-left: 6px;
  background: #171b27;
  flex: 1 0 88px;
  box-sizing: border-box;
}

.rh-dex-legend-dot {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(38, 166, 154, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rh-dex-legend-dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #26a69a;
}

/* Full-dashboard audit: preserve every data field and action without fixed-width tables. */
.fr-table,
.fr-table td,
.fr-table td > a,
.fr-table td > a > div,
.offers-table-wrap,
.offers-table-wrap table,
.offers-table-wrap td,
.offers-table-wrap td > div {
  min-width: 0 !important;
}

.fr-table .token-cell > a {
  flex-wrap: wrap;
}

.rh-kpi-subtitle,
.radar-addresses-grid,
.radar-addresses-grid > *,
.rh-spy-kpi-card,
.rh-spy-kpi-card .kpi-sub-row,
.rh-spy-kpi-card .kpi-sub-row > span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.rh-spy-kpi-card .kpi-sub-row {
  flex-wrap: wrap;
  align-items: flex-start;
  line-height: 1.5;
}

.page-whale-valuator .wv-filter-bar,
.page-whale-valuator .wv-filter-chips {
  min-width: 0;
  max-width: 100%;
}

.page-whale-valuator .wv-filter-chips {
  flex-wrap: wrap;
  overflow: visible;
}

.page-whale-valuator .wv-filter-chip {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}

.wv-mobile-scroll-hint {
  display: none !important;
}

@media (max-width: 900px) {
  .tools-robinhood-container .sticky-pills-row {
    flex-wrap: wrap;
    align-items: stretch;
    overflow-x: visible;
    row-gap: 8px;
  }

  .tools-robinhood-container .sticky-anchor-pill,
  .tools-robinhood-container .sticky-toggle-all-btn {
    flex: 0 1 auto;
    margin-left: 0;
    white-space: normal;
  }

  .page-offers .offers-table-wrap {
    overflow-x: hidden !important;
  }

  .page-offers .offers-table-wrap table,
  .page-offers .offers-table-wrap tbody {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
  }

  .page-offers .offers-table-wrap thead {
    display: none;
  }

  .page-offers .offers-table-wrap tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
  }

  .page-offers .offers-table-wrap tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
  }

  .page-offers .offers-table-wrap td {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 0 !important;
    text-align: left !important;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .page-offers .offers-table-wrap td::before {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .page-offers .offers-table-wrap td:nth-child(1),
  .page-offers .offers-table-wrap td:nth-child(5),
  .page-offers .offers-table-wrap td:nth-child(7) {
    grid-column: 1 / -1;
  }

  .page-offers .offers-table-wrap td:nth-child(1) {
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .page-offers .offers-table-wrap td:nth-child(2)::before { content: "Offer amount"; }
  .page-offers .offers-table-wrap td:nth-child(3)::before { content: "USD value"; }
  .page-offers .offers-table-wrap td:nth-child(4)::before { content: "vs Floor"; }
  .page-offers .offers-table-wrap td:nth-child(5)::before { content: "Bidder wallet"; }
  .page-offers .offers-table-wrap td:nth-child(6)::before { content: "Expires"; }

  .page-offers .offers-table-wrap td:nth-child(7) > div {
    display: flex !important;
    flex-wrap: wrap;
  }

  .page-offers .offers-table-wrap tr:has(td[colspan]) {
    display: block;
  }

  .page-offers .offers-table-wrap td[colspan] {
    padding: 24px 12px !important;
    text-align: center !important;
  }
}

@media (max-width: 767px) {
  .page-live-tape .tape-list-wrap {
    overflow-x: hidden !important;
  }

  .page-live-tape .tape-list {
    width: 100% !important;
    min-width: 0 !important;
  }

  .page-live-tape .tape-list-header {
    display: none !important;
  }

  .page-live-tape .tape-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px;
    align-items: center;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    padding: 14px 12px;
  }

  .page-live-tape .tape-type {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .page-live-tape .tape-token {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    min-width: 0;
  }

  .page-live-tape .tape-addresses {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    overflow: visible !important;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .page-live-tape .tape-row > div:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
    min-width: 0;
  }

  .page-live-tape .tape-row > div:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
    min-width: 0;
  }

  .page-live-tape .tape-token-name,
  .page-live-tape .tape-token-rank {
    white-space: normal;
    overflow-wrap: anywhere;
  }

}

@media (max-width: 900px) {
  .page-floor-rarity .fr-table-wrap {
    overflow-x: hidden !important;
  }

  .page-floor-rarity .fr-table,
  .page-floor-rarity .fr-table tbody {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
  }

  .page-floor-rarity .fr-table thead {
    display: none;
  }

  .page-floor-rarity .fr-table tbody {
    display: grid;
    gap: 12px;
    padding: 12px;
  }

  .page-floor-rarity .fr-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    box-sizing: border-box;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
  }

  .page-floor-rarity .fr-table td {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow-wrap: anywhere;
  }

  .page-floor-rarity .fr-table td::before {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .page-floor-rarity .fr-table td:nth-child(1),
  .page-floor-rarity .fr-table td:nth-child(4),
  .page-floor-rarity .fr-table td:nth-child(7) {
    grid-column: 1 / -1;
  }

  .page-floor-rarity .fr-table td:nth-child(1) {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .page-floor-rarity .fr-table td:nth-child(2)::before { content: "District"; }
  .page-floor-rarity .fr-table td:nth-child(3)::before { content: "Rarity rank"; }
  .page-floor-rarity .fr-table td:nth-child(4)::before { content: "Key traits"; }
  .page-floor-rarity .fr-table td:nth-child(5)::before { content: "Seller"; }
  .page-floor-rarity .fr-table td:nth-child(6)::before { content: "Price"; }

  .page-floor-rarity .fr-table td:nth-child(4) > div {
    max-width: 100% !important;
  }

  .page-floor-rarity .fr-table td:nth-child(2) span,
  .page-floor-rarity .fr-table td:nth-child(3) span {
    white-space: normal !important;
  }

}

@media (max-width: 767px) {
  .page-offers .offers-table-wrap tbody {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .radar-addresses-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 420px) {
  .page-live-tape .tape-row {
    gap: 10px;
    padding: 12px 10px;
  }

  .page-live-tape .tape-token {
    gap: 6px !important;
  }

  .page-live-tape .tape-token-rank {
    display: block;
    margin-left: 0 !important;
  }

  .page-whale-valuator .wv-filter-chip {
    padding: 7px 9px;
    font-size: 10px;
  }
}

/* Keep the chart token picker scrollable without widening its container. */
.rh-multichart-wrapper,
.rh-quick-tokens-bar,
.rh-quick-tokens-scroll {
  min-width: 0;
  max-width: 100%;
}

.rh-quick-tokens-scroll {
  flex: 1 1 auto;
  overscroll-behavior-inline: contain;
}

/* Token market rows become complete cards: no data or action is removed. */
@media (max-width: 1100px) {
  .rh-top-tokens-container,
  .rh-table-responsive-wrapper,
  .rh-top-tokens-table,
  .rh-top-tokens-table tbody,
  .rh-top-tokens-table td,
  .rh-top-tokens-table td > div {
    box-sizing: border-box;
    min-width: 0 !important;
    max-width: 100%;
  }

  .rh-top-tokens-container .rh-table-responsive-wrapper {
    overflow: visible !important;
  }

  .rh-top-tokens-table,
  .rh-top-tokens-table tbody {
    display: block;
    width: 100% !important;
  }

  .rh-top-tokens-table thead {
    display: none;
  }

  .rh-top-tokens-table tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .rh-top-tokens-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
  }

  .rh-top-tokens-table td {
    display: block;
    width: auto !important;
    padding: 0 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .rh-top-tokens-table td::before {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .rh-top-tokens-table .cell-rank {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
  }

  .rh-top-tokens-table .cell-token,
  .rh-top-tokens-table .cell-chart,
  .rh-top-tokens-table .cell-actions,
  .rh-top-tokens-table td[colspan] {
    grid-column: 1 / -1;
  }

  .rh-top-tokens-table .cell-token {
    min-height: 44px;
    padding-right: 40px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }

  .rh-top-tokens-table .cell-price::before { content: "Price"; }
  .rh-top-tokens-table td:nth-child(4)::before { content: "Transactions"; }
  .rh-top-tokens-table td:nth-child(5)::before { content: "Buys"; }
  .rh-top-tokens-table td:nth-child(6)::before { content: "Sells"; }
  .rh-top-tokens-table td:nth-child(7)::before { content: "Volume"; }
  .rh-top-tokens-table td:nth-child(8)::before { content: "Market cap / liquidity"; }
  .rh-top-tokens-table td:nth-child(9)::before { content: "FDV"; }
  .rh-top-tokens-table td:nth-child(10)::before { content: "24 hours"; }
  .rh-top-tokens-table td:nth-child(11)::before { content: "6 hours"; }
  .rh-top-tokens-table td:nth-child(12)::before { content: "1 hour"; }
  .rh-top-tokens-table .cell-chart::before { content: "Live price history"; }

  .rh-top-tokens-table .token-meta-flex,
  .rh-top-tokens-table .token-text-col,
  .rh-top-tokens-table .token-symbol-row,
  .rh-top-tokens-table .token-contract-row {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .rh-top-tokens-table .sparkline-container {
    width: 100% !important;
    max-width: none !important;
  }

  .rh-top-tokens-table .sparkline-svg {
    display: block;
    width: 100%;
    height: 52px;
  }

  .rh-top-tokens-table .actions-flex {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-start !important;
    gap: 8px;
  }

  .rh-top-tokens-table .actions-flex button,
  .rh-top-tokens-table .actions-flex a {
    min-height: 36px;
    margin: 0;
    align-items: center;
    justify-content: center;
  }

  .rh-top-tokens-table tr:has(> td:only-child) {
    display: block;
  }
}

@media (max-width: 600px) {
  .rh-top-tokens-table tbody {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .rh-top-tokens-table tbody tr {
    gap: 11px;
    padding: 14px;
  }
}

/* AI Detective: mobile-only layout polish, with no functional changes. */
@media (max-width: 600px) {
  .rh-ai-detective-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 14px;
    overflow-x: clip;
  }

  .rh-ai-detective-container .rh-detective-header-card {
    width: 100%;
    min-width: 0;
    gap: 16px;
    padding: 16px;
    border-radius: 14px;
  }

  .rh-ai-detective-container .rh-detective-header-left {
    width: 100%;
    min-width: 0;
    gap: 12px;
  }

  .rh-ai-detective-container .rh-detective-header-left > div:last-child {
    min-width: 0;
  }

  .rh-ai-detective-container .rh-detective-bot-badge {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .rh-ai-detective-container .rh-detective-title {
    font-size: 19px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .rh-ai-detective-container .rh-detective-desc {
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .rh-ai-detective-container .rh-detective-tag-row {
    max-width: 100%;
  }

  .rh-ai-detective-container .rh-detective-header-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 10px;
  }

  .rh-ai-detective-container .rh-detective-stat-box {
    width: 100%;
    min-width: 0;
    padding: 10px 8px;
  }

  .rh-ai-detective-container .rh-det-stat-val,
  .rh-ai-detective-container .rh-det-stat-lbl {
    max-width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .rh-ai-detective-container .rh-detective-search-section,
  .rh-ai-detective-container .rh-detective-search-form,
  .rh-ai-detective-container .rh-detective-search-input-wrap {
    width: 100%;
    min-width: 0;
  }

  .rh-ai-detective-container .rh-detective-search-form {
    gap: 10px;
  }

  .rh-ai-detective-container .rh-detective-input {
    min-width: 0;
    font-size: 16px;
  }

  .rh-ai-detective-container .rh-detective-scan-btn {
    min-height: 46px;
  }

  .rh-ai-detective-container .rh-detective-scanning-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }

  .rh-ai-detective-container .scanning-details {
    width: 100%;
    min-width: 0;
  }

  .rh-ai-detective-container .scanning-address {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .rh-ai-detective-container .rh-detective-report-grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    gap: 14px;
  }

  .rh-ai-detective-container .rh-det-score-card {
    width: 100%;
    min-width: 0;
    gap: 14px;
    padding: 16px;
    border-radius: 14px;
  }

  .rh-ai-detective-container .rh-det-score-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .rh-ai-detective-container .score-title-group {
    flex: 1 1 170px;
    min-width: 0;
  }

  .rh-ai-detective-container .score-target-name {
    font-size: 17px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .rh-ai-detective-container .score-badge {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .rh-ai-detective-container .score-metric-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    gap: 14px;
    padding: 14px;
  }

  .rh-ai-detective-container .score-big-num {
    justify-content: center;
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .rh-ai-detective-container .score-big-num .num-val {
    max-width: 100%;
    font-size: 36px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .rh-ai-detective-container .score-details-list {
    width: 100%;
    min-width: 0;
    gap: 0;
  }

  .rh-ai-detective-container .score-details-list .detail-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
  }

  .rh-ai-detective-container .score-details-list .detail-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .rh-ai-detective-container .score-details-list .detail-lbl,
  .rh-ai-detective-container .score-details-list .detail-val {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .rh-ai-detective-container .score-details-list .detail-lbl {
    font-size: 10px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .rh-ai-detective-container .rh-det-executive-summary {
    min-width: 0;
    padding: 14px;
  }

  .rh-ai-detective-container .rh-det-executive-summary .summary-title-row {
    flex-wrap: wrap;
    line-height: 1.4;
  }

  .rh-ai-detective-container .rh-det-executive-summary .summary-text {
    overflow-wrap: anywhere;
  }

  .rh-ai-detective-container .rh-det-actions-bar {
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .rh-ai-detective-container .det-action-btn {
    flex: 1 1 140px;
    justify-content: center;
    min-width: 0;
    min-height: 40px;
    margin-left: 0;
    text-align: center;
  }

  .rh-ai-detective-container .det-action-btn span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .rh-ai-detective-container .rh-det-metrics-quad {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    gap: 10px;
  }

  .rh-ai-detective-container .rh-det-metric-card {
    width: 100%;
    min-width: 0;
    gap: 8px;
    padding: 14px;
  }

  .rh-ai-detective-container .rh-det-metric-card .metric-header {
    min-width: 0;
    gap: 10px;
    margin-bottom: 0;
  }

  .rh-ai-detective-container .rh-det-metric-card .metric-lbl {
    min-width: 0;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .rh-ai-detective-container .rh-det-metric-card .metric-header svg {
    flex-shrink: 0;
  }

  .rh-ai-detective-container .rh-det-metric-card .metric-value {
    max-width: 100%;
    margin-bottom: 0;
    font-size: 20px;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .rh-ai-detective-container .rh-det-metric-card .metric-footer {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    gap: 4px;
    line-height: 1.45;
  }

  .rh-ai-detective-container .rh-det-metric-card .metric-footer > span {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .rh-ai-detective-container .rh-detective-holders-card {
    width: 100%;
    min-width: 0;
    margin-top: 0;
    padding: 14px;
  }

  .rh-ai-detective-container .holders-header {
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .rh-ai-detective-container .holders-table-wrap {
    overflow: visible;
  }

  .rh-ai-detective-container .holders-table,
  .rh-ai-detective-container .holders-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .rh-ai-detective-container .holders-table thead {
    display: none;
  }

  .rh-ai-detective-container .holders-table tbody {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .rh-ai-detective-container .holders-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
  }

  .rh-ai-detective-container .holders-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .rh-ai-detective-container .holders-table td::before {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .rh-ai-detective-container .holders-table td:nth-child(1) {
    position: absolute;
    top: 15px;
    left: 14px;
    color: #94a3b8;
    font-size: 11px;
  }

  .rh-ai-detective-container .holders-table td:nth-child(1)::before,
  .rh-ai-detective-container .holders-table td:nth-child(2)::before,
  .rh-ai-detective-container .holders-table td:nth-child(6)::before {
    display: none;
  }

  .rh-ai-detective-container .holders-table td:nth-child(2) {
    grid-column: 1 / -1;
    padding: 0 38px 12px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .rh-ai-detective-container .holders-table td:nth-child(3)::before { content: "Balance"; }
  .rh-ai-detective-container .holders-table td:nth-child(4)::before { content: "Supply share"; }
  .rh-ai-detective-container .holders-table td:nth-child(5)::before { content: "Status"; }

  .rh-ai-detective-container .holders-table td:nth-child(5) {
    grid-column: 1 / -1;
  }

  .rh-ai-detective-container .holders-table td:nth-child(6) {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .rh-ai-detective-container .holder-name-col,
  .rh-ai-detective-container .holder-label,
  .rh-ai-detective-container .holder-addr {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .rh-ai-detective-container .holder-status-pill {
    max-width: 100%;
    white-space: normal;
    line-height: 1.4;
  }

  .rh-ai-detective-container .holder-link-btn {
    width: 30px;
    height: 30px;
  }

  .rh-ai-detective-container .rh-detective-terminal-card {
    width: 100%;
    min-width: 0;
    border-radius: 14px;
  }

  .rh-ai-detective-container .rh-terminal-header {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    gap: 7px;
    padding: 12px 14px;
  }

  .rh-ai-detective-container .rh-term-head-left {
    align-items: flex-start;
    width: 100%;
    min-width: 0;
  }

  .rh-ai-detective-container .rh-term-head-left > svg,
  .rh-ai-detective-container .rh-term-dot {
    flex-shrink: 0;
    margin-top: 3px;
  }

  .rh-ai-detective-container .rh-term-title {
    min-width: 0;
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .rh-ai-detective-container .rh-term-sub {
    max-width: 100%;
    font-size: 9px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .rh-ai-detective-container .rh-term-suggested-row {
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    gap: 8px;
    padding: 12px 14px;
    overflow: visible;
  }

  .rh-ai-detective-container .rh-term-suggested-row .suggested-lbl {
    flex: 0 0 100%;
    line-height: 1.4;
  }

  .rh-ai-detective-container .rh-term-chip {
    max-width: 100%;
    min-width: 0;
    padding: 7px 10px;
    border-radius: 10px;
    white-space: normal;
    text-align: left;
    line-height: 1.4;
  }

  .rh-ai-detective-container .rh-term-chip span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .rh-ai-detective-container .rh-term-chip .chip-arrow {
    flex-shrink: 0;
  }

  .rh-ai-detective-container .rh-terminal-body {
    min-height: 180px;
    max-height: 420px;
    gap: 12px;
    padding: 14px;
  }

  .rh-ai-detective-container .rh-terminal-message {
    max-width: 96%;
    min-width: 0;
  }

  .rh-ai-detective-container .rh-terminal-message .msg-header {
    flex-wrap: wrap;
  }

  .rh-ai-detective-container .rh-terminal-message .msg-content {
    max-width: 100%;
    min-width: 0;
    padding: 12px;
    overflow-wrap: anywhere;
  }

  .rh-ai-detective-container .rh-terminal-input-bar {
    width: 100%;
    min-width: 0;
    gap: 8px;
    padding: 10px 12px;
  }

  .rh-ai-detective-container .rh-terminal-input-bar .term-prompt {
    flex-shrink: 0;
  }

  .rh-ai-detective-container .rh-terminal-input {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    font-size: 16px;
  }

  .rh-ai-detective-container .rh-terminal-send-btn {
    flex-shrink: 0;
    justify-content: center;
    min-height: 36px;
    padding: 7px 12px;
  }
}

@media (max-width: 360px) {
  .rh-ai-detective-container .rh-detective-header-card,
  .rh-ai-detective-container .rh-det-score-card,
  .rh-ai-detective-container .rh-detective-holders-card {
    padding: 12px;
  }

  .rh-ai-detective-container .rh-detective-bot-badge {
    width: 38px;
    height: 38px;
  }

  .rh-ai-detective-container .score-big-num .num-val {
    font-size: 32px;
  }

  .rh-ai-detective-container .rh-terminal-send-btn {
    padding-inline: 10px;
  }
}

/* Pro Charts: keep Last Sale inside the mobile metrics container. */
@media (max-width: 600px) {
  .page-pro-charts .hud-live-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 12px;
  }

  .page-pro-charts .hud-live-metrics .hud-metric-box:last-child {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .page-pro-charts .hud-live-metrics .hud-metric-box:last-child .hud-metric-val {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 4px 12px;
    overflow: visible;
    white-space: normal;
  }

  .page-pro-charts .hud-live-metrics .hud-metric-box:last-child .ape-num,
  .page-pro-charts .hud-live-metrics .hud-metric-box:last-child .sale-p {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .page-pro-charts .hud-live-metrics .hud-metric-box:last-child .ape-num {
    flex: 1 1 auto;
  }

  .page-pro-charts .hud-live-metrics .hud-metric-box:last-child .sale-p {
    flex: 0 1 auto;
    text-align: right;
  }
}

/* Keep Ecosystem Utility content comfortably inside its container. */
.rh-real-collections-wrapper .rh-holder-perk-box {
  min-height: 56px;
  max-height: none;
  padding: 10px 12px;
}

.rh-real-collections-wrapper .rh-holder-perk-box .rh-perk-label {
  flex-shrink: 0;
  line-height: 1.2;
}

/* Keep the Sweep Engine listings badge on one clean line. */
.sweep-panel .sweep-header {
  flex-wrap: wrap;
  gap: 12px;
}

.sweep-panel .sweep-title {
  min-width: 0;
}

.sweep-panel .active-listings-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  line-height: 1.35;
}

/* Keep the relocated hover metrics directly below the Pro Chart. */
.page-pro-charts > .hud-hover-strip {
  flex: 0 0 auto;
  order: 0;
  width: 100%;
}

/* Balance the Pro Chart legend instead of spreading groups to the edges. */
.page-pro-charts .pro-legend {
  justify-content: center;
  gap: 10px 28px;
}

.page-pro-charts .pro-legend .legend-group {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
}

/* Keep the network fee label and its live quote clearly separated. */
.rh-detail-row.rh-network-fee-row {
  align-items: flex-start;
  gap: 12px;
}

.rh-network-fee-row .rh-detail-label {
  flex: 0 0 auto;
  white-space: nowrap;
}

.rh-network-fee-row .rh-detail-val {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.45;
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
}


/* Ensure desktop tab-nav-inner expands to fit all tabs without cutting off at 1440px */
.tab-nav-inner {
  width: max-content !important;
  min-width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}
.tab-nav .tab-btn {
  flex-shrink: 0;
}

/* Fix token selector modal flex shrinking and wallet chips clipping */
.rh-token-selector-modal {
  display: flex !important;
  flex-direction: column !important;
  max-width: 500px !important;
  max-height: 82vh !important;
  overflow: hidden !important;
}
.selector-modal-header,
.selector-search-wrap,
.selector-tabs-bar,
.selector-live-status-bar,
.selector-quick-wallet-chips {
  flex-shrink: 0 !important;
}
.selector-quick-wallet-chips {
  flex-wrap: wrap !important;
  overflow: visible !important;
  padding: 10px 14px !important;
  gap: 8px !important;
  align-items: center !important;
}
.selector-quick-chips-scroll {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  flex-wrap: wrap !important;
  overflow: visible !important;
  gap: 6px !important;
  align-items: center !important;
}
.selector-quick-chip {
  flex-shrink: 0 !important;
  padding: 4px 10px !important;
}
.selector-token-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}
.selector-token-row {
  flex-shrink: 0 !important;
}

/* Fix mobile Multi-Chart Trading layout, header controls, legend mask, and status bar */
.rh-multichart-wrapper,
.rh-studio-content-layout,
.rh-charts-grid,
.rh-chart-card,
.rh-chart-slot-header,
.rh-iframe-container,
.rh-iframe-status-bar {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

@media (max-width: 1099px) {
  .rh-studio-content-layout,
  .rh-studio-content-layout.with-swap,
  .rh-charts-grid,
  .rh-charts-grid.layout-1,
  .rh-charts-grid.layout-2,
  .rh-charts-grid.layout-4 {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 767px) {
  .rh-chart-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 540px !important;
    min-height: 500px !important;
    overflow: hidden !important;
  }

  .rh-chart-slot-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    width: 100% !important;
  }

  .rh-chart-token-select-wrap {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
  }

  .rh-slot-token-trigger {
    width: 100% !important;
    min-height: 34px !important;
    height: 34px !important;
    justify-content: flex-start !important;
    padding: 4px 10px !important;
  }

  .rh-slot-search-action {
    margin-left: auto !important;
  }

  .rh-slot-metrics {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .rh-slot-metrics .slot-price {
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  .rh-slot-metrics .slot-badge {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .rh-slot-metrics .slot-swap-btn {
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 10px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .rh-slot-metrics .slot-swap-btn span {
    display: inline !important;
  }

  .rh-slot-metrics .slot-reload-btn,
  .rh-slot-metrics .slot-maximize-btn,
  .rh-slot-metrics .slot-popout-btn {
    min-height: 30px !important;
    height: 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    padding: 0 !important;
    border-radius: 7px !important;
    flex-shrink: 0 !important;
  }

  .rh-iframe-container {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 380px !important;
    position: relative !important;
    overflow: hidden !important;
    background: #131722 !important;
  }

  .rh-dex-iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -6px !important;
    width: 100% !important;
    height: calc(100% + 6px) !important;
    min-height: 0 !important;
    border: 0 !important;
    display: block !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  .rh-dex-legend-mask {
    display: inline-flex !important;
    top: 45px !important;
    left: 58px !important;
    height: 24px !important;
    width: 218px !important;
    max-width: calc(100% - 132px) !important;
    padding: 0 6px 0 4px !important;
    gap: 5px !important;
  }

  .rh-dex-legend-title {
    font-size: 12px !important;
    flex: 0 1 auto !important;
  }

  .rh-dex-legend-cover {
    width: auto !important;
    flex: 1 1 20px !important;
    min-width: 20px !important;
  }

  .rh-iframe-status-bar {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    padding: 0 8px !important;
    gap: 6px !important;
    height: 32px !important;
    background: #0a0e17 !important;
    z-index: 6 !important;
  }

  .rh-iframe-status-left {
    max-width: none !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 4px !important;
    font-size: 9.5px !important;
    overflow: hidden !important;
  }

  .rh-iframe-status-left .rh-iframe-addr,
  .rh-iframe-status-left .rh-iframe-sep:nth-of-type(3) {
    display: none !important;
  }

  .rh-iframe-status-right {
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  .rh-iframe-status-bar .rh-chart-quick-reload-link,
  .rh-iframe-status-bar .rh-chart-quick-direct-link {
    min-height: 22px !important;
    height: 22px !important;
    padding: 0 6px !important;
    font-size: 9.5px !important;
  }
}

/* Fix Swap Terminal detail rows and mobile button/input proportions */
.rh-swap-details-box {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: 9px 12px !important;
}

.rh-detail-row {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.rh-detail-row .rh-detail-label {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  line-height: 1.4 !important;
}

.rh-detail-row .rh-detail-val {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  margin-left: auto !important;
  line-height: 1.4 !important;
  text-align: right !important;
  justify-content: flex-end !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
}

.rh-detail-row .rh-detail-val > span {
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .rh-swap-network-pill {
    flex-wrap: wrap !important;
    gap: 4px !important;
  }

  .rh-swap-network-pill .rh-swap-chain-badge,
  .rh-swap-network-pill .rh-swap-live-badge {
    font-size: 9px !important;
    padding: 2px 6px !important;
    white-space: nowrap !important;
  }

  .rh-swap-header-actions .rh-swap-settings-btn,
  .rh-swap-header-actions .rh-swap-close-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    border-radius: 6px !important;
  }

  .rh-swap-wallet-bar .rh-connect-now-btn {
    min-height: 24px !important;
    height: 24px !important;
    padding: 0 8px !important;
  }

  .rh-swap-token-bar {
    padding: 6px 10px !important;
    gap: 8px !important;
  }

  .rh-swap-token-bar .rh-select-other-token-btn {
    min-height: 26px !important;
    height: 26px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    border-radius: 9999px !important;
  }

  .rh-order-side-switch .rh-order-side-btn {
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    border-radius: 9999px !important;
  }

  .rh-swap-card {
    padding: 9px 12px !important;
    gap: 5px !important;
    border-radius: 10px !important;
  }

  .rh-swap-card-label-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-height: 22px !important;
  }

  .rh-swap-balance .rh-swap-quick-bal-btn {
    min-height: 20px !important;
    height: 20px !important;
    padding: 0 7px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .rh-swap-input-row {
    min-height: 30px !important;
    gap: 8px !important;
  }

  .rh-swap-input-row .rh-swap-amount-input {
    min-height: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    font-size: 18px !important;
  }

  .rh-swap-input-row .rh-swap-receive-value {
    min-height: 28px !important;
    height: 28px !important;
    font-size: 18px !important;
  }

  .rh-swap-input-row .rh-asset-selector-pill {
    min-height: 28px !important;
    height: 28px !important;
    padding: 0 8px 0 5px !important;
    border-radius: 9999px !important;
  }

  .rh-swap-sub-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px 8px !important;
    min-height: 22px !important;
  }

  .rh-swap-sub-row .rh-swap-usd-estimate {
    flex: 0 1 auto !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
  }

  .rh-swap-sub-row .rh-swap-rate-preview {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    margin-left: auto !important;
    text-align: right !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  body .app .main-content .rh-swap-presets {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-left: auto !important;
  }

  body .app .main-content .rh-swap-presets > button {
    min-height: 22px !important;
    height: 22px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .rh-swap-flip-divider {
    height: 14px !important;
    margin: -2px 0 !important;
  }

  .rh-swap-flip-divider .rh-swap-flip-btn {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }

  .rh-balance-alert .rh-balance-set-max-btn {
    min-height: 22px !important;
    height: 22px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
    border-radius: 9999px !important;
  }

  .rh-slippage-options .rh-slippage-chip,
  .rh-slippage-options button {
    min-height: 26px !important;
    height: 26px !important;
    padding: 0 8px !important;
    font-size: 10.5px !important;
  }

  .rh-custom-slippage-wrap .rh-custom-slippage-input {
    min-height: 22px !important;
    height: 22px !important;
    font-size: 11px !important;
  }
}


/* ==========================================================================
   SUITED TERMINAL — ULTRA-DARK OBSIDIAN FLAGSHIP BUTTON (PRO-MODE 1ST TAB)
   ========================================================================== */
.tab-nav .tab-btn.rh-alpha-sub-btn.is-suited-terminal-btn {
  position: relative !important;
  background: linear-gradient(135deg, #010204 0%, #060a10 52%, #020306 100%) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 7px !important;
  padding: 5px 11px 5px 8px !important;
  gap: 8px !important;
  margin-top: 7px !important;
  margin-bottom: 2px !important;
  margin-right: 7px !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(16, 185, 129, 0.38) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: visible !important;
}

.tab-nav .tab-btn.rh-alpha-sub-btn.is-suited-terminal-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: radial-gradient(circle at 18% 50%, rgba(16, 185, 129, 0.14) 0%, transparent 68%);
  pointer-events: none;
}

.tab-nav .tab-btn.rh-alpha-sub-btn.is-suited-terminal-btn::after {
  content: "NEW";
  position: absolute;
  top: -6px;
  right: -5px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.5px 5px;
  border-radius: 999px;
  background: #CCFF00;
  color: #000000;
  font-family: 'JetBrains Mono', 'Inter', system-ui, sans-serif;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.72);
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.65),
    0 0 8px rgba(204, 255, 0, 0.45),
    0 0 15px rgba(204, 255, 0, 0.18);
  pointer-events: none;
}

.tab-nav .tab-btn.rh-alpha-sub-btn.is-suited-terminal-btn:hover::after {
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.75),
    0 0 11px rgba(204, 255, 0, 0.65),
    0 0 20px rgba(204, 255, 0, 0.26);
}

@media (max-width: 640px) {
  .tab-nav .tab-btn.rh-alpha-sub-btn.is-suited-terminal-btn {
    min-height: 34px !important;
    margin-top: 5px !important;
    margin-bottom: 2px !important;
  }
}

.tab-nav .tab-btn.rh-alpha-sub-btn.is-suited-terminal-btn:hover {
  background: linear-gradient(135deg, #03060a 0%, #0a111a 52%, #04070d 100%) !important;
  border-color: rgba(52, 211, 153, 0.58) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.96),
    0 0 16px rgba(16, 185, 129, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(52, 211, 153, 0.65) !important;
}

.tab-nav .tab-btn.rh-alpha-sub-btn.is-suited-terminal-btn .suited-terminal-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #000000;
  border: 1px solid rgba(52, 211, 153, 0.42);
  box-shadow: inset 0 0 8px rgba(16, 185, 129, 0.22);
  flex-shrink: 0;
}

.tab-nav .tab-btn.rh-alpha-sub-btn.is-suited-terminal-btn .suited-terminal-icon-wrap svg {
  color: #34d399 !important;
  filter: drop-shadow(0 0 5px rgba(52, 211, 153, 0.55)) !important;
  width: 13px !important;
  height: 13px !important;
}

.tab-nav .tab-btn.rh-alpha-sub-btn.is-suited-terminal-btn .suited-terminal-live-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
  animation: suitedTermDotPulse 1.8s ease-in-out infinite;
}

@keyframes suitedTermDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.tab-nav .tab-btn.rh-alpha-sub-btn.is-suited-terminal-btn .suited-terminal-label {
  color: #f8fafc !important;
  font-weight: 700 !important;
  letter-spacing: 0.015em !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95) !important;
}

.tab-nav .tab-btn.rh-alpha-sub-btn.is-suited-terminal-btn .tab-alpha-badge.suited-terminal-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  background: #000000 !important;
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.42) !important;
  border-radius: 6px !important;
  padding: 2px 6px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  line-height: 1.1 !important;
  box-shadow: inset 0 0 8px rgba(16, 185, 129, 0.18) !important;
}

.tab-nav .tab-btn.rh-alpha-sub-btn.is-suited-terminal-btn .tab-alpha-badge.suited-terminal-badge svg {
  width: 10px !important;
  height: 10px !important;
  color: #34d399 !important;
}
