/* STEP42 — sidebar badge cleanup + dark terminal pair selector */
.gp-terminal-side nav button[data-dashboard-tab="liquiditywalls"]::after {
  content: none !important;
  display: none !important;
}

html,
body,
body.terminal-active,
body.gp-terminal-active {
  color-scheme: dark;
}

body.terminal-active .gp-overview-market--switch,
body.gp-terminal-active .gp-overview-market--switch,
body.terminal-active .gp-overview-market--switch .gp-market-symbol-row,
body.gp-terminal-active .gp-overview-market--switch .gp-market-symbol-row {
  overflow: visible !important;
}

body.terminal-active #gp-market-instrument-select,
body.gp-terminal-active #gp-market-instrument-select,
body.terminal-active .gp-market-instrument-select,
body.gp-terminal-active .gp-market-instrument-select {
  color-scheme: dark !important;
  background-color: #061326 !important;
  background-image: linear-gradient(180deg, rgba(7, 22, 43, 0.98), rgba(2, 8, 18, 0.98)) !important;
  color: #f4fbff !important;
  border-color: rgba(54, 144, 255, 0.36) !important;
}

body.terminal-active #gp-market-instrument-select option,
body.gp-terminal-active #gp-market-instrument-select option,
body.terminal-active .gp-market-instrument-select option,
body.gp-terminal-active .gp-market-instrument-select option {
  background: #061326 !important;
  background-color: #061326 !important;
  color: #eaf6ff !important;
}

body.terminal-active #gp-market-instrument-select option:checked,
body.gp-terminal-active #gp-market-instrument-select option:checked,
body.terminal-active .gp-market-instrument-select option:checked,
body.gp-terminal-active .gp-market-instrument-select option:checked {
  background: #1264d8 !important;
  background-color: #1264d8 !important;
  color: #ffffff !important;
}

body.terminal-active #gp-market-instrument-select option:disabled,
body.gp-terminal-active #gp-market-instrument-select option:disabled,
body.terminal-active .gp-market-instrument-select option:disabled,
body.gp-terminal-active .gp-market-instrument-select option:disabled {
  background: #061326 !important;
  background-color: #061326 !important;
  color: #6f88a6 !important;
}

.gp-market-instrument-shell {
  position: relative;
  z-index: 120;
  width: 100%;
  min-width: 0;
}

.gp-market-instrument-shell > select.gp-market-instrument-select {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 30px !important;
  min-height: 30px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.gp-market-instrument-button {
  width: 100%;
  height: 30px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 9px;
  border: 1px solid rgba(54, 144, 255, 0.36);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(7, 22, 43, 0.98), rgba(2, 8, 18, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 0 0 1px rgba(0, 0, 0, 0.20);
  color: #f4fbff;
  font: 850 11px/1 Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.01em;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gp-market-instrument-button::after {
  content: "▼";
  flex: 0 0 auto;
  color: rgba(153, 190, 226, 0.78);
  font-size: 9px;
  transform: translateY(-1px);
  transition: transform 0.16s ease, color 0.16s ease;
}

.gp-market-instrument-button:hover,
.gp-market-instrument-button:focus-visible,
.gp-market-instrument-shell.is-open .gp-market-instrument-button {
  border-color: rgba(0, 214, 255, 0.62);
  box-shadow: 0 0 0 2px rgba(0, 134, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  outline: none;
}

.gp-market-instrument-shell.is-open .gp-market-instrument-button::after {
  transform: rotate(180deg) translateY(1px);
  color: #8ff7ff;
}

.gp-market-instrument-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: 100%;
  min-width: 142px;
  max-height: 260px;
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid rgba(65, 151, 255, 0.30);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(5, 18, 35, 0.99), rgba(2, 8, 18, 0.99));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(0, 213, 255, 0.08) inset;
  z-index: 10020;
}

.gp-market-instrument-shell.is-open .gp-market-instrument-menu {
  display: grid;
  gap: 3px;
}

.gp-market-instrument-option {
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #eaf6ff;
  font: 800 11px/1 Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  text-align: left;
  cursor: pointer;
}

.gp-market-instrument-option:hover,
.gp-market-instrument-option:focus-visible {
  background: rgba(34, 137, 255, 0.20);
  color: #ffffff;
  outline: none;
}

.gp-market-instrument-option[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(22, 118, 255, 0.95), rgba(0, 184, 255, 0.84));
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10) inset;
}

.gp-market-instrument-option:disabled,
.gp-market-instrument-option[aria-disabled="true"] {
  cursor: not-allowed;
  color: rgba(134, 163, 194, 0.50);
  background: transparent;
}

.gp-market-instrument-menu::-webkit-scrollbar {
  width: 7px;
}

.gp-market-instrument-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
}

.gp-market-instrument-menu::-webkit-scrollbar-thumb {
  background: rgba(72, 158, 255, 0.42);
  border-radius: 999px;
}
