.dexscreener-window {
  width: 100%;
  max-width: 100%;
  height: 100%;
  padding: 0 !important;
  overflow: hidden !important;
  color: #111;
  background: #ece9d8;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 11px;
}

.dexscreener-app,
.dexscreener-app * {
  box-sizing: border-box;
}

.dexscreener-app {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  background: #ece9d8;
  overflow: hidden;
  container-type: inline-size;
  container-name: dexscreener;
}

.dexscreener-menubar {
  display: flex;
  align-items: center;
  min-height: 22px;
  padding: 1px 4px;
  border-bottom: 1px solid #aca899;
  background: #f7f5ef;
  position: relative;
  z-index: 100;
}

.dexscreener-menu-container {
  position: relative;
}

.dexscreener-menu-button {
  min-width: 44px;
  padding: 2px 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #111;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dexscreener-menu-button.is-open,
.dexscreener-menu-button:hover,
.dexscreener-menu-button:focus-visible {
  border-color: #316ac5;
  outline: none;
  background: #c1d2ee;
}

.dexscreener-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 175px;
  background: #fff;
  border: 1px solid #716f64;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
  padding: 2px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.dexscreener-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 4px 14px 4px 10px;
  font-family: inherit;
  font-size: 11px;
  color: #000;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}

.dexscreener-menu-item:hover,
.dexscreener-menu-item:focus-visible {
  background: #316ac5;
  color: #fff;
  outline: none;
}

.dexscreener-menu-separator {
  height: 1px;
  margin: 3px 2px;
  background: #aca899;
  border-bottom: 1px solid #fff;
}

.dexscreener-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 4px 6px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #aca899;
  background: linear-gradient(90deg, #f8f7f2, #e6e2d5);
}

.dexscreener-toolbar button,
.dexscreener-xp-button {
  min-height: 23px;
  padding: 2px 8px;
  white-space: nowrap;
  font: inherit;
  border: 2px outset #ece9d8;
  background: #ece9d8;
  color: #000;
  cursor: pointer;
  border-radius: 0;
}

.dexscreener-toolbar button:hover,
.dexscreener-xp-button:hover {
  background: #f5f2e6;
}

.dexscreener-toolbar button:active,
.dexscreener-xp-button:active,
.dexscreener-toolbar button[aria-pressed="true"] {
  border: 2px inset #ece9d8;
  background: #d4d0c8;
}

.dexscreener-tool-icon {
  display: inline-block;
  margin-right: 4px;
  color: #0758b7;
  font-size: 13px;
  font-weight: bold;
}

.dexscreener-tool-separator {
  width: 2px;
  height: 20px;
  margin: 0 4px;
  border-left: 1px solid #999;
  border-right: 1px solid #fff;
}

.dexscreener-address-panel {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  margin-left: 4px;
}

.dexscreener-address-label {
  font-size: 11px;
  font-weight: bold;
  color: #333;
  white-space: nowrap;
}

.dexscreener-address-value {
  flex: 1;
  min-width: 80px;
  max-width: 220px;
  height: 23px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  background: #fff;
  border: 2px inset #d4d0c8;
  font-family: "Lucida Console", monospace;
  font-size: 11px;
  color: #000080;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dexscreener-address-value:hover,
.dexscreener-address-value:focus-visible {
  outline: 1px dotted #000;
  background: #f0f4ff;
}

.dexscreener-wen-button {
  font-weight: bold;
  color: #000080;
  min-width: 48px;
}

.dexscreener-wen-button:disabled {
  color: #888;
  border: 2px outset #ece9d8;
  background: #ece9d8;
  cursor: not-allowed;
  opacity: 0.65;
}

.dexscreener-address {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  height: 24px;
  margin-left: 3px;
  padding: 0 6px;
  overflow: hidden;
  border: 2px inset #fff;
  color: #333;
  background: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dexscreener-main {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(250px, 3fr);
  flex: 1;
  min-height: 0;
  gap: 6px;
  padding: 5px;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.dexscreener-left,
.dexscreener-side {
  min-width: 0;
  max-width: 100%;
}

.dexscreener-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  overflow: hidden;
}

.dexscreener-side {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.dexscreener-panel {
  border: 1px solid #aca899;
  background: #fff;
  box-shadow: inset 1px 1px #fff;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.dexscreener-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 23px;
  padding: 3px 6px;
  border-bottom: 1px solid #aca899;
  color: #003399;
  background: linear-gradient(90deg, #d6e5fa, #f7f9fc);
  font-weight: bold;
  min-width: 0;
}

.dexscreener-token-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid #7f9db9;
  background: linear-gradient(90deg, #fff, #eef5ff);
  min-width: 0;
  width: 100%;
}

.dexscreener-token-art {
  position: relative;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid #7f9db9;
  border-radius: 4px;
  background: #eaf2ff;
}

.dexscreener-token-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dexscreener-token-art span {
  display: grid;
  position: absolute;
  inset: 0;
  place-items: center;
  color: #0758b7;
  font-weight: bold;
}

.dexscreener-token-copy {
  min-width: 0;
}

.dexscreener-token-name {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}

.dexscreener-token-name strong {
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dexscreener-token-name span,
.dexscreener-muted {
  color: #666;
}

.dexscreener-contract {
  overflow: hidden;
  color: #424242;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dexscreener-price-block {
  min-width: 0;
  text-align: right;
  flex-shrink: 0;
}

.dexscreener-mcap-header {
  color: #143f78;
  font-family: "Lucida Console", monospace;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

.dexscreener-mcap-label {
  font-size: 10px;
  color: #555;
  letter-spacing: 0.5px;
  font-weight: normal;
}

.dexscreener-mcap-val {
  color: #143f78;
}

.dexscreener-header-sub {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 2px;
}

.dexscreener-price-small {
  font-family: "Lucida Console", monospace;
  font-size: 11px;
  color: #555;
  white-space: nowrap;
}

.dexscreener-calc-separator {
  height: 1px;
  margin: 6px 0;
  background: #aca899;
  border-bottom: 1px solid #fff;
}

.dexscreener-price {
  color: #333;
  font-family: "Lucida Console", monospace;
  font-size: 12px;
  font-weight: normal;
}

.dexscreener-change {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 4px;
  font-weight: bold;
}

.dexscreener-positive {
  color: #06720e !important;
  background: #e4f5df;
}

.dexscreener-negative {
  color: #b00000 !important;
  background: #ffe5e0;
}

.dexscreener-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #aca899;
  background: #fff;
  min-width: 0;
  width: 100%;
}

.dexscreener-metric {
  min-width: 0;
  padding: 5px 6px;
  border-right: 1px solid #d4d0c8;
}

.dexscreener-metric:last-child {
  border-right: 0;
}

.dexscreener-metric span {
  display: block;
  margin-bottom: 2px;
  color: #666;
  font-size: 10px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dexscreener-metric strong {
  display: block;
  overflow: hidden;
  font-family: "Lucida Console", monospace;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dexscreener-chart-panel {
  display: flex;
  flex: 1;
  min-height: 250px;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}

.dexscreener-chart-panel .dexscreener-panel-title {
  flex-wrap: wrap;
  gap: 4px;
  row-gap: 3px;
}

.dexscreener-chart-title-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.dexscreener-mode-toggle {
  display: inline-flex;
  border: 1px solid #7f9db9;
  background: #d4d0c8;
  padding: 1px;
  gap: 1px;
}

.dexscreener-mode-btn {
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 7px;
  background: #ece9d8;
  border: 1px outset #fff;
  cursor: pointer;
  color: #333;
  line-height: 1;
  border-radius: 0;
}

.dexscreener-mode-btn.is-active,
.dexscreener-mode-btn[aria-pressed="true"] {
  background: #000080;
  color: #fff;
  border: 1px inset #000040;
}

.dexscreener-chart-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.dexscreener-chart-zoom-group {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin-left: 4px;
}

.dexscreener-zoom-btn {
  min-width: 19px;
  padding: 1px 4px;
  color: #333;
  font: inherit;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 10px;
  font-weight: bold;
  border: 1px outset #fff;
  background: #ece9d8;
  cursor: pointer;
  border-radius: 0;
  line-height: 1.1;
  text-align: center;
}

.dexscreener-zoom-btn:hover:not(:disabled) {
  background: #f5f2e6;
}

.dexscreener-zoom-btn:active:not(:disabled) {
  border: 1px inset #000040;
  background: #000080;
  color: #fff;
}

.dexscreener-zoom-btn:disabled {
  color: #888;
  background: #ece9d8;
  cursor: not-allowed;
  opacity: 0.55;
  border: 1px solid #ccc;
}

.dexscreener-zoom-reset {
  min-width: auto;
  font-size: 9px;
  padding: 1px 4px;
}

.dexscreener-period {
  min-width: 32px;
  padding: 1px 4px;
  color: #333;
  font: inherit;
  font-size: 10px;
  border: 1px outset #fff;
  background: #ece9d8;
  cursor: pointer;
  border-radius: 0;
}

.dexscreener-period:hover:not(:disabled) {
  background: #f5f2e6;
}

.dexscreener-period[aria-pressed="true"] {
  border: 1px inset #000040;
  background: #000080;
  color: #fff;
  font-weight: bold;
}

.dexscreener-period[disabled] {
  color: #888;
  background: #ece9d8;
  cursor: not-allowed;
  opacity: 0.55;
  border: 1px solid #ccc;
}

.dexscreener-chart-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 200px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: #08130e;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.dexscreener-chart-wrap.is-dragging {
  cursor: grabbing;
}

.dexscreener-chart {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  cursor: inherit;
}

.dexscreener-chart-badge {
  position: absolute;
  top: 8px;
  left: 9px;
  padding: 2px 5px;
  border: 1px solid #446756;
  color: #b8f5c6;
  background: rgba(0, 0, 0, .65);
  font-family: "Lucida Console", monospace;
  font-size: 9px;
  pointer-events: none;
}

.dexscreener-chart-note {
  padding: 4px 7px;
  border-top: 1px solid #aca899;
  color: #666;
  background: #f7f5ef;
  font-size: 10px;
}

.dexscreener-tabs {
  display: flex;
  padding-left: 4px;
  border-bottom: 1px solid #7f9db9;
}

.dexscreener-tab {
  position: relative;
  top: 1px;
  min-width: 64px;
  padding: 4px 8px;
  border: 1px solid #7f9db9;
  border-bottom-color: #7f9db9;
  background: #e7e3d6;
  font: inherit;
}

.dexscreener-tab[aria-selected="true"] {
  border-bottom-color: #fff;
  background: #fff;
  font-weight: bold;
}

.dexscreener-tab-panel {
  padding: 7px;
}

.dexscreener-tab-panel[hidden] {
  display: none;
}

.dexscreener-calc-tabs {
  display: flex;
  border-bottom: 1px solid #7f9db9;
  background: #e7e3d6;
  padding: 2px 4px 0;
  gap: 2px;
  min-width: 0;
}

.dexscreener-calc-tab {
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 10px;
  font-weight: normal;
  padding: 3px 5px;
  border: 1px solid #7f9db9;
  border-bottom: none;
  background: #d4d0c8;
  cursor: pointer;
  color: #333;
  border-radius: 0;
  white-space: nowrap;
  flex: 1 1 auto;
  text-align: center;
}

.dexscreener-calc-tab.is-active {
  background: #fff;
  font-weight: bold;
  color: #000080;
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
}

.dexscreener-toggle-group,
.dexscreener-shortcuts {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

.dexscreener-mini-btn {
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 10px;
  padding: 1px 6px;
  border: 2px outset #ece9d8;
  background: #ece9d8;
  cursor: pointer;
  color: #111;
  border-radius: 0;
  line-height: 1.3;
}

.dexscreener-mini-btn:hover {
  background: #f5f2e6;
}

.dexscreener-mini-btn.is-active,
.dexscreener-mini-btn:active {
  border: 2px inset #ece9d8;
  background: #000080;
  color: #fff;
  font-weight: bold;
}

.dexscreener-calc-summary {
  margin-top: 6px;
  padding: 5px 6px;
  background: #f7f5ef;
  border: 1px solid #aca899;
  box-shadow: inset 1px 1px #fff;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dexscreener-calc-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  gap: 6px;
  min-width: 0;
}

.dexscreener-calc-line span {
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}

.dexscreener-calc-line strong {
  font-family: "Lucida Console", monospace;
  font-size: 11px;
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
}

.dexscreener-disclaimer {
  margin-top: 5px;
  font-size: 9px;
  color: #666;
  line-height: 1.3;
  border-top: 1px dotted #ccc;
  padding-top: 3px;
}

/* Order Flow Redesign */
.dexscreener-flow-periods {
  display: flex;
  gap: 2px;
}

.dexscreener-flow-headline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.dexscreener-flow-headline strong {
  color: #000080;
  font-size: 11px;
}

.dexscreener-flow-bar-container {
  margin: 5px 0;
}

.dexscreener-flow-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: bold;
  margin-bottom: 2px;
}

.dexscreener-flow-buy-label {
  color: #06720e;
}

.dexscreener-flow-sell-label {
  color: #b00000;
}

.dexscreener-balance-bar {
  display: flex;
  height: 12px;
  overflow: hidden;
  border: 1px solid #777;
  background: #d54a3f;
}

.dexscreener-balance-buy {
  background: #42a84b;
  min-width: 0;
}

.dexscreener-balance-sell {
  flex: 1;
  background: #d54a3f;
  min-width: 0;
}

.dexscreener-flow-stats {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 5px 0;
  padding: 5px;
  background: #f7f5ef;
  border: 1px solid #aca899;
}

.dexscreener-flow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.dexscreener-flow-row span {
  color: #555;
}

.dexscreener-flow-row strong {
  font-family: "Lucida Console", monospace;
  font-size: 11px;
}

/* Holder Utility: Input Mode Toggle & Sliders */
.dexscreener-input-mode-toggle {
  display: inline-flex;
  border: 1px solid #7f9db9;
  background: #d4d0c8;
  padding: 1px;
  gap: 1px;
}

.dexscreener-mode-switch-btn {
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  background: #ece9d8;
  border: 1px outset #fff;
  cursor: pointer;
  color: #333;
  line-height: 1;
  border-radius: 0;
}

.dexscreener-mode-switch-btn.is-active {
  background: #000080;
  color: #fff;
  border: 1px inset #000040;
}

.dexscreener-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.dexscreener-slider {
  flex: 1;
  accent-color: #000080;
  cursor: pointer;
}

.dexscreener-slider-val {
  font-family: "Lucida Console", monospace;
  font-weight: bold;
  font-size: 11px;
  min-width: 36px;
  text-align: right;
  color: #000080;
}

.dexscreener-impact-notice {
  margin-top: 6px;
  padding: 4px 6px;
  background: #fff8dc;
  border: 1px solid #d4c188;
  font-size: 10px;
  color: #634d00;
  line-height: 1.35;
}

.dexscreener-warning-note {
  margin-top: 5px;
  padding: 4px 6px;
  background: #fff0f0;
  border: 1px solid #e8b0b0;
  font-size: 10px;
  color: #a80000;
  line-height: 1.35;
}

.dexscreener-tagline {
  margin-top: 6px;
  padding: 4px 6px;
  background: #f0f7ff;
  border-left: 3px solid #0055ea;
  font-size: 10px;
  font-style: italic;
  color: #003399;
  line-height: 1.3;
}

.dexscreener-comparison-table-wrap {
  margin-top: 6px;
  border: 1px solid #7f9db9;
  background: #fff;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.dexscreener-comparison-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 10px;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
}

.dexscreener-comparison-table th {
  background: #ece9d8;
  border-bottom: 1px solid #7f9db9;
  border-right: 1px solid #d4d0c8;
  padding: 2px 4px;
  font-weight: bold;
  color: #333;
}

.dexscreener-comparison-table th:last-child {
  border-right: none;
}

.dexscreener-comparison-table th:not(:first-child),
.dexscreener-comparison-table td:not(:first-child) {
  text-align: right;
}

.dexscreener-comparison-table th:nth-child(1),
.dexscreener-comparison-table td:nth-child(1) {
  width: 18%;
  text-align: left;
}

.dexscreener-comparison-table th:nth-child(2),
.dexscreener-comparison-table td:nth-child(2) {
  width: 28%;
  font-family: "Lucida Console", monospace;
}

.dexscreener-comparison-table th:nth-child(3),
.dexscreener-comparison-table td:nth-child(3) {
  width: 27%;
  font-family: "Lucida Console", monospace;
}

.dexscreener-comparison-table th:nth-child(4),
.dexscreener-comparison-table td:nth-child(4) {
  width: 27%;
  font-family: "Lucida Console", monospace;
}

.dexscreener-comparison-table td {
  padding: 3px 4px;
  border-bottom: 1px solid #e0dfdb;
  border-right: 1px solid #f0efe9;
  cursor: pointer;
  white-space: nowrap;
}

.dexscreener-comparison-table td:last-child {
  border-right: none;
}

.dexscreener-comparison-table tr:hover td {
  background: #f5f8ff;
}

.dexscreener-comparison-table tr.is-active td,
.dexscreener-comparison-table tr.is-active-row td {
  background: #000080;
  color: #fff;
  font-weight: bold;
}

.dexscreener-tagline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  background: #f0ede0;
  border: 1px solid #aca899;
  margin-bottom: 6px;
  font-size: 11px;
}

.dexscreener-mini-btn.is-disabled,
.dexscreener-mini-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  border: 2px outset #ece9d8;
  background: #ece9d8;
  color: #888;
}

/* DEX Screener Native Windows XP Help Dialog Content */
.dexscreener-help-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 11px;
  color: #000;
  line-height: 1.4;
}

.dexscreener-help-header {
  border-bottom: 1px solid #aca899;
  padding-bottom: 6px;
  margin-bottom: 2px;
}

.dexscreener-help-title {
  font-size: 13px;
  font-weight: bold;
  color: #000080;
}

.dexscreener-help-subtitle {
  font-size: 11px;
  font-weight: bold;
  color: #333;
  margin-top: 1px;
}

.dexscreener-help-motto {
  margin: 4px 0 0;
  font-style: italic;
  color: #0055ea;
  font-weight: bold;
}

.dexscreener-help-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dexscreener-help-section h4 {
  margin: 0;
  font-size: 11px;
  font-weight: bold;
  color: #111;
}

.dexscreener-help-section p {
  margin: 0;
  color: #333;
  line-height: 1.35;
}

.dexscreener-native-dialog .title-bar-text {
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 11px;
  font-weight: bold;
}

/* Classic Windows XP Fallback Dialog */
.dexscreener-dialog-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 12px;
}

.dexscreener-dialog {
  width: 440px;
  max-width: 100%;
  max-height: 90%;
  background: #ece9d8;
  border: 2px outset #ece9d8;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}

.dexscreener-dialog-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #0055ea 0%, #3a93ff 100%);
  color: #fff;
  font-weight: bold;
  padding: 3px 6px;
  font-size: 11px;
  user-select: none;
}

.dexscreener-dialog-close {
  width: 16px;
  height: 16px;
  background: #d43b27;
  color: #fff;
  border: 1px solid #fff;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  padding: 0;
  border-radius: 2px;
}

.dexscreener-dialog-close:hover {
  background: #e85542;
}

.dexscreener-dialog-body {
  padding: 12px;
  font-size: 11px;
  line-height: 1.45;
  color: #111;
  background: #ece9d8;
  overflow-y: auto;
  max-height: 360px;
}

.dexscreener-dialog-body p {
  margin: 0 0 8px;
}

.dexscreener-dialog-body p:last-child {
  margin-bottom: 0;
}

.dexscreener-dialog-footer {
  display: flex;
  justify-content: flex-end;
  padding: 8px 12px;
  background: #ece9d8;
  border-top: 1px solid #d4d0c8;
}

/* Tables & Information */
.dexscreener-info-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 11px;
}

.dexscreener-info-table th {
  text-align: left;
  width: 90px;
  color: #555;
  font-weight: normal;
  padding: 3px 4px;
  border-bottom: 1px solid #e0dfd6;
  white-space: nowrap;
}

.dexscreener-info-table td {
  padding: 3px 4px;
  font-family: "Lucida Console", monospace;
  border-bottom: 1px solid #e0dfd6;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dexscreener-selectable,
[data-pair-address] {
  display: inline-block;
  max-width: calc(100% - 36px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.dexscreener-tiny-btn {
  margin-left: 6px;
  font-family: Tahoma, sans-serif;
  font-size: 9px;
  padding: 1px 4px;
  border: 1px outset #fff;
  background: #ece9d8;
  cursor: pointer;
  border-radius: 0;
}

.dexscreener-tiny-btn:active {
  border: 1px inset #fff;
}

.dexscreener-table {
  width: 100%;
  border-collapse: collapse;
}

.dexscreener-table th {
  padding: 3px 5px;
  border: 1px outset #fff;
  background: #ece9d8;
  font-weight: bold;
  text-align: left;
  color: #333;
}

.dexscreener-table td {
  padding: 3px 5px;
  border-bottom: 1px solid #e5e5e5;
  font-family: "Lucida Console", monospace;
  font-size: 11px;
}

.dexscreener-table td:not(:first-child) {
  text-align: right;
}

.dexscreener-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 5px;
  min-width: 0;
}

.dexscreener-form-row:first-child {
  margin-top: 0;
}

.dexscreener-form-row label {
  font-size: 11px;
  color: #333;
  white-space: nowrap;
  flex: 0 1 auto;
}

.dexscreener-form-row input {
  min-width: 75px;
  flex: 1 1 auto;
  max-width: 140px;
  height: 22px;
  padding: 2px 4px;
  font: inherit;
  font-size: 11px;
  border: 2px inset #d4d0c8;
  border-radius: 0;
  background: #fff;
  text-align: right;
}

.dexscreener-output {
  min-height: 25px;
  margin-top: 6px;
  padding: 4px 6px;
  overflow: hidden;
  border: 2px inset #fff;
  color: #17406f;
  background: #fff;
  font-family: "Lucida Console", monospace;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dexscreener-link-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dexscreener-link-list a {
  display: block;
  padding: 3px 4px;
  color: #0000ee;
}

.dexscreener-link-list a:hover,
.dexscreener-link-list a:focus-visible {
  color: #fff;
  outline: none;
  background: #316ac5;
}

.dexscreener-about {
  line-height: 1.45;
}

.dexscreener-about p {
  margin: 0 0 7px;
}

.dexscreener-statusbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 2px;
  min-height: 22px;
  padding: 2px;
  border-top: 1px solid #aca899;
  background: #ece9d8;
}

.dexscreener-statusbar span {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 1px 5px;
  overflow: hidden;
  border: 1px inset #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dexscreener-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border: 1px solid #315b34;
  border-radius: 50%;
  background: #48b455;
  box-shadow: inset 1px 1px rgba(255, 255, 255, .7);
}

.dexscreener-app[data-network-state="loading"] .dexscreener-status-dot,
.dexscreener-app[data-network-state="stale"] .dexscreener-status-dot {
  border-color: #876900;
  background: #ffd13b;
}

.dexscreener-app[data-network-state="unavailable"] .dexscreener-status-dot,
.dexscreener-app[data-network-state="offline"] .dexscreener-status-dot {
  border-color: #8c241d;
  background: #e45549;
}

.dexscreener-app[data-compact="true"] .dexscreener-side,
.dexscreener-app[data-compact="true"] .dexscreener-metrics {
  display: none;
}

.dexscreener-app[data-compact="true"] .dexscreener-main {
  grid-template-columns: 1fr;
}

@container dexscreener (max-width: 680px) {
  .dexscreener-main {
    grid-template-columns: 1fr;
  }

  .dexscreener-side {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

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

  .dexscreener-metric:nth-child(2) {
    border-right: 0;
  }

  .dexscreener-metric:nth-child(-n + 2) {
    border-bottom: 1px solid #d4d0c8;
  }
}

@container dexscreener (max-width: 520px) {
  .dexscreener-toolbar {
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    min-height: auto;
  }

  .dexscreener-tool-separator {
    display: none;
  }

  .dexscreener-address-panel {
    order: 3;
    width: 100%;
    flex-basis: 100%;
    margin-left: 0;
  }

  .dexscreener-address-value {
    max-width: none;
  }

  .dexscreener-token-strip {
    grid-template-columns: auto 1fr;
  }

  .dexscreener-price-block {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .dexscreener-main {
    grid-template-columns: 1fr;
  }

  .dexscreener-side {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

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

  .dexscreener-metric:nth-child(2) {
    border-right: 0;
  }

  .dexscreener-metric:nth-child(-n + 2) {
    border-bottom: 1px solid #d4d0c8;
  }
}

@media (max-width: 540px) {
  .dexscreener-toolbar {
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    min-height: auto;
  }

  .dexscreener-tool-separator {
    display: none;
  }

  .dexscreener-address-panel {
    order: 3;
    width: 100%;
    flex-basis: 100%;
    margin-left: 0;
  }

  .dexscreener-address-value {
    max-width: none;
  }

  .dexscreener-token-strip {
    grid-template-columns: auto 1fr;
  }

  .dexscreener-price-block {
    grid-column: 1 / -1;
    text-align: left;
  }

  .dexscreener-statusbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dexscreener-statusbar span:nth-child(2),
  .dexscreener-source-panel {
    display: none;
  }
}

/* Pre-launch preview notice (src/config/xpToken.ts mode: preview): one row
   between the toolbar and the panes. */
.dexscreener-preview-note {
  flex: 0 0 auto;
  margin: 0;
  border-width: 0 0 1px;
}
